diff --git a/.gitignore b/.gitignore index a6f07c8c..fc26ef95 100644 --- a/.gitignore +++ b/.gitignore @@ -16,15 +16,17 @@ junit.xml node_modules/* !node_modules/@actions/ !node_modules/@actions/core/ +!node_modules/@actions/exec/ !node_modules/@actions/glob/ !node_modules/@actions/http-client/ +!node_modules/@actions/io/ !node_modules/@fastify/ !node_modules/@fastify/busboy/ -!node_modules/balanced-match/ -!node_modules/brace-expansion/ +!node_modules/@isaacs/ +!node_modules/@isaacs/balanced-match/ +!node_modules/@isaacs/brace-expansion/ !node_modules/minimatch/ !node_modules/semver/ !node_modules/tunnel/ !node_modules/undici/ -!node_modules/uuid/ # diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..209e3ef4 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +20 diff --git a/node_modules/@actions/core/README.md b/node_modules/@actions/core/README.md index 8a471430..ac8ced92 100644 --- a/node_modules/@actions/core/README.md +++ b/node_modules/@actions/core/README.md @@ -333,3 +333,154 @@ toPlatformPath('/foo/bar') // => \foo\bar // On a Linux runner. toPlatformPath('\\foo\\bar') // => /foo/bar ``` + +#### Platform helper + +Provides shorthands for getting information about platform action is running on. + +```js +import { platform } from '@actions/core' + +/* equals to a call of os.platform() */ +platform.platform // 'win32' | 'darwin' | 'linux' | 'freebsd' | 'openbsd' | 'android' | 'cygwin' | 'sunos' + +/* equals to a call of os.arch() */ +platform.arch // 'x64' | 'arm' | 'arm64' | 'ia32' | 'mips' | 'mipsel' | 'ppc' | 'ppc64' | 'riscv64' | 's390' | 's390x' + +/* common shorthands for platform-specific logic */ +platform.isWindows // true +platform.isMacOS // false +platform.isLinux // false + +/* run platform-specific script to get more details about the exact platform, works on Windows, MacOS and Linux */ +const { + name, // Microsoft Windows 11 Enterprise + version, // 10.0.22621 +} = await platform.getDetails() +``` + +#### Populating job summary + +These methods can be used to populate a [job summary](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary). A job summary is a buffer that can be added to throughout your job via `core.summary` methods. + +Job summaries when complete must be written to the summary buffer file via the `core.summary.write()` method. + +All methods except `addRaw()` utilize the `addRaw()` method to append to the buffer, followed by an EOL using the `addEOL()` method. + +```typescript + +// Write raw text, optionally add an EOL after the content, defaults to false +core.summary.addRaw('Some content here :speech_balloon:', true) +// Output: Some content here :speech_balloon:\n + +// Add an operating system-specific end-of-line marker +core.summary.addEOL() +// Output (POSIX): \n +// Output (Windows): \r\n + +// Add a codeblock with an optional language for syntax highlighting +core.summary.addCodeBlock('console.log(\'hello world\')', 'javascript') +// Output:
console.log('hello world')
+ +// Add a list, second parameter indicates if list is ordered, defaults to false +core.summary.addList(['item1','item2','item3'], true) +// Output:
  1. item1
  2. item2
  3. item3
+ +// Add a collapsible HTML details element +core.summary.addDetails('Label', 'Some detail that will be collapsed') +// Output:
LabelSome detail that will be collapsed
+ +// Add an image, image options parameter is optional, you can supply one of or both width and height in pixels +core.summary.addImage('example.png', 'alt description of img', {width: '100', height: '100'}) +// Output: alt description of img + +// Add an HTML section heading element, optionally pass a level that translates to 'hX' ie. h2. Defaults to h1 +core.summary.addHeading('My Heading', '2') +// Output:

My Heading

+ +// Add an HTML thematic break
+core.summary.addSeparator() +// Output:
+ +// Add an HTML line break
+core.summary.addBreak() +// Output:
+ +// Add an HTML blockquote with an optional citation +core.summary.addQuote('To be or not to be', 'Shakespeare') +// Output:
To be or not to be
+ +// Add an HTML anchor tag +core.summary.addLink('click here', 'https://github.com') +// Output: click here + +``` + +Tables are added using the `addTable()` method, and an array of `SummaryTableRow`. + +```typescript + +export type SummaryTableRow = (SummaryTableCell | string)[] + +export interface SummaryTableCell { + /** + * Cell content + */ + data: string + /** + * Render cell as header + * (optional) default: false + */ + header?: boolean + /** + * Number of columns the cell extends + * (optional) default: '1' + */ + colspan?: string + /** + * Number of rows the cell extends + * (optional) default: '1' + */ + rowspan?: string +} + +``` + +For example + +```typescript + +const tableData = [ + {data: 'Header1', header: true}, + {data: 'Header2', header: true}, + {data: 'Header3', header: true}, + {data: 'MyData1'}, + {data: 'MyData2'}, + {data: 'MyData3'} +] + +// Add an HTML table +core.summary.addTable([tableData]) +// Output:
Header1Header2Header3
MyData1MyData2MyData3
+ +``` + +In addition to job summary content, there are utility functions for interfacing with the buffer. + +```typescript + +// Empties the summary buffer AND wipes the summary file on disk +core.summary.clear() + +// Returns the current summary buffer as a string +core.summary.stringify() + +// If the summary buffer is empty +core.summary.isEmptyBuffer() + +// Resets the summary buffer without writing to the summary file on disk +core.summary.emptyBuffer() + +// Writes text in the buffer to the summary buffer file and empties the buffer, optionally overwriting all existing content in the summary file with buffer contents. Defaults to false. +core.summary.write({overwrite: true}) +``` \ No newline at end of file diff --git a/node_modules/@actions/core/lib/command.js b/node_modules/@actions/core/lib/command.js index 0b28c66b..728a0149 100644 --- a/node_modules/@actions/core/lib/command.js +++ b/node_modules/@actions/core/lib/command.js @@ -1,7 +1,11 @@ "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; @@ -14,7 +18,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; @@ -76,13 +80,13 @@ class Command { } } function escapeData(s) { - return utils_1.toCommandValue(s) + return (0, utils_1.toCommandValue)(s) .replace(/%/g, '%25') .replace(/\r/g, '%0D') .replace(/\n/g, '%0A'); } function escapeProperty(s) { - return utils_1.toCommandValue(s) + return (0, utils_1.toCommandValue)(s) .replace(/%/g, '%25') .replace(/\r/g, '%0D') .replace(/\n/g, '%0A') diff --git a/node_modules/@actions/core/lib/command.js.map b/node_modules/@actions/core/lib/command.js.map index 51c7c637..476bcf64 100644 --- a/node_modules/@actions/core/lib/command.js.map +++ b/node_modules/@actions/core/lib/command.js.map @@ -1 +1 @@ -{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAwB;AACxB,mCAAsC;AAWtC;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,OAAe,EACf,UAA6B,EAC7B,OAAY;IAEZ,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;IACrD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AAC/C,CAAC;AAPD,oCAOC;AAED,SAAgB,KAAK,CAAC,IAAY,EAAE,OAAO,GAAG,EAAE;IAC9C,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACjC,CAAC;AAFD,sBAEC;AAED,MAAM,UAAU,GAAG,IAAI,CAAA;AAEvB,MAAM,OAAO;IAKX,YAAY,OAAe,EAAE,UAA6B,EAAE,OAAe;QACzE,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,iBAAiB,CAAA;SAC5B;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,QAAQ;QACN,IAAI,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC,OAAO,CAAA;QAE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;oBACvC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;oBAChC,IAAI,GAAG,EAAE;wBACP,IAAI,KAAK,EAAE;4BACT,KAAK,GAAG,KAAK,CAAA;yBACd;6BAAM;4BACL,MAAM,IAAI,GAAG,CAAA;yBACd;wBAED,MAAM,IAAI,GAAG,GAAG,IAAI,cAAc,CAAC,GAAG,CAAC,EAAE,CAAA;qBAC1C;iBACF;aACF;SACF;QAED,MAAM,IAAI,GAAG,UAAU,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAA;QACpD,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAED,SAAS,UAAU,CAAC,CAAM;IACxB,OAAO,IAAA,sBAAc,EAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AAC1B,CAAC;AAED,SAAS,cAAc,CAAC,CAAM;IAC5B,OAAO,IAAA,sBAAc,EAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;AACzB,CAAC"} \ No newline at end of file diff --git a/node_modules/@actions/core/lib/core.d.ts b/node_modules/@actions/core/lib/core.d.ts index ceecdd32..a0803d7a 100644 --- a/node_modules/@actions/core/lib/core.d.ts +++ b/node_modules/@actions/core/lib/core.d.ts @@ -196,3 +196,7 @@ export { markdownSummary } from './summary'; * Path exports */ export { toPosixPath, toWin32Path, toPlatformPath } from './path-utils'; +/** + * Platform utilities exports + */ +export * as platform from './platform'; diff --git a/node_modules/@actions/core/lib/core.js b/node_modules/@actions/core/lib/core.js index 48df6ad0..8f85466d 100644 --- a/node_modules/@actions/core/lib/core.js +++ b/node_modules/@actions/core/lib/core.js @@ -1,7 +1,11 @@ "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; @@ -14,7 +18,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; @@ -28,7 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; +exports.platform = exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = exports.markdownSummary = exports.summary = exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; const command_1 = require("./command"); const file_command_1 = require("./file-command"); const utils_1 = require("./utils"); @@ -48,7 +52,7 @@ var ExitCode; * A code indicating that the action was a failure */ ExitCode[ExitCode["Failure"] = 1] = "Failure"; -})(ExitCode = exports.ExitCode || (exports.ExitCode = {})); +})(ExitCode || (exports.ExitCode = ExitCode = {})); //----------------------------------------------------------------------- // Variables //----------------------------------------------------------------------- @@ -59,13 +63,13 @@ var ExitCode; */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function exportVariable(name, val) { - const convertedVal = utils_1.toCommandValue(val); + const convertedVal = (0, utils_1.toCommandValue)(val); process.env[name] = convertedVal; const filePath = process.env['GITHUB_ENV'] || ''; if (filePath) { - return file_command_1.issueFileCommand('ENV', file_command_1.prepareKeyValueMessage(name, val)); + return (0, file_command_1.issueFileCommand)('ENV', (0, file_command_1.prepareKeyValueMessage)(name, val)); } - command_1.issueCommand('set-env', { name }, convertedVal); + (0, command_1.issueCommand)('set-env', { name }, convertedVal); } exports.exportVariable = exportVariable; /** @@ -73,7 +77,7 @@ exports.exportVariable = exportVariable; * @param secret value of the secret */ function setSecret(secret) { - command_1.issueCommand('add-mask', {}, secret); + (0, command_1.issueCommand)('add-mask', {}, secret); } exports.setSecret = setSecret; /** @@ -83,10 +87,10 @@ exports.setSecret = setSecret; function addPath(inputPath) { const filePath = process.env['GITHUB_PATH'] || ''; if (filePath) { - file_command_1.issueFileCommand('PATH', inputPath); + (0, file_command_1.issueFileCommand)('PATH', inputPath); } else { - command_1.issueCommand('add-path', {}, inputPath); + (0, command_1.issueCommand)('add-path', {}, inputPath); } process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; } @@ -161,10 +165,10 @@ exports.getBooleanInput = getBooleanInput; function setOutput(name, value) { const filePath = process.env['GITHUB_OUTPUT'] || ''; if (filePath) { - return file_command_1.issueFileCommand('OUTPUT', file_command_1.prepareKeyValueMessage(name, value)); + return (0, file_command_1.issueFileCommand)('OUTPUT', (0, file_command_1.prepareKeyValueMessage)(name, value)); } process.stdout.write(os.EOL); - command_1.issueCommand('set-output', { name }, utils_1.toCommandValue(value)); + (0, command_1.issueCommand)('set-output', { name }, (0, utils_1.toCommandValue)(value)); } exports.setOutput = setOutput; /** @@ -173,7 +177,7 @@ exports.setOutput = setOutput; * */ function setCommandEcho(enabled) { - command_1.issue('echo', enabled ? 'on' : 'off'); + (0, command_1.issue)('echo', enabled ? 'on' : 'off'); } exports.setCommandEcho = setCommandEcho; //----------------------------------------------------------------------- @@ -204,7 +208,7 @@ exports.isDebug = isDebug; * @param message debug message */ function debug(message) { - command_1.issueCommand('debug', {}, message); + (0, command_1.issueCommand)('debug', {}, message); } exports.debug = debug; /** @@ -213,7 +217,7 @@ exports.debug = debug; * @param properties optional properties to add to the annotation. */ function error(message, properties = {}) { - command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); + (0, command_1.issueCommand)('error', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); } exports.error = error; /** @@ -222,7 +226,7 @@ exports.error = error; * @param properties optional properties to add to the annotation. */ function warning(message, properties = {}) { - command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); + (0, command_1.issueCommand)('warning', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); } exports.warning = warning; /** @@ -231,7 +235,7 @@ exports.warning = warning; * @param properties optional properties to add to the annotation. */ function notice(message, properties = {}) { - command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); + (0, command_1.issueCommand)('notice', (0, utils_1.toCommandProperties)(properties), message instanceof Error ? message.toString() : message); } exports.notice = notice; /** @@ -250,14 +254,14 @@ exports.info = info; * @param name The name of the output group */ function startGroup(name) { - command_1.issue('group', name); + (0, command_1.issue)('group', name); } exports.startGroup = startGroup; /** * End an output group. */ function endGroup() { - command_1.issue('endgroup'); + (0, command_1.issue)('endgroup'); } exports.endGroup = endGroup; /** @@ -295,9 +299,9 @@ exports.group = group; function saveState(name, value) { const filePath = process.env['GITHUB_STATE'] || ''; if (filePath) { - return file_command_1.issueFileCommand('STATE', file_command_1.prepareKeyValueMessage(name, value)); + return (0, file_command_1.issueFileCommand)('STATE', (0, file_command_1.prepareKeyValueMessage)(name, value)); } - command_1.issueCommand('save-state', { name }, utils_1.toCommandValue(value)); + (0, command_1.issueCommand)('save-state', { name }, (0, utils_1.toCommandValue)(value)); } exports.saveState = saveState; /** @@ -333,4 +337,8 @@ var path_utils_1 = require("./path-utils"); Object.defineProperty(exports, "toPosixPath", { enumerable: true, get: function () { return path_utils_1.toPosixPath; } }); Object.defineProperty(exports, "toWin32Path", { enumerable: true, get: function () { return path_utils_1.toWin32Path; } }); Object.defineProperty(exports, "toPlatformPath", { enumerable: true, get: function () { return path_utils_1.toPlatformPath; } }); +/** + * Platform utilities exports + */ +exports.platform = __importStar(require("./platform")); //# sourceMappingURL=core.js.map \ No newline at end of file diff --git a/node_modules/@actions/core/lib/core.js.map b/node_modules/@actions/core/lib/core.js.map index 99f7fd85..12617183 100644 --- a/node_modules/@actions/core/lib/core.js.map +++ b/node_modules/@actions/core/lib/core.js.map @@ -1 +1 @@ -{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA6C;AAC7C,iDAAuE;AACvE,mCAA2D;AAE3D,uCAAwB;AACxB,2CAA4B;AAE5B,6CAAuC;AAavC;;GAEG;AACH,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB;;OAEG;IACH,6CAAW,CAAA;IAEX;;OAEG;IACH,6CAAW,CAAA;AACb,CAAC,EAVW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAUnB;AAuCD,yEAAyE;AACzE,YAAY;AACZ,yEAAyE;AAEzE;;;;GAIG;AACH,8DAA8D;AAC9D,SAAgB,cAAc,CAAC,IAAY,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,eAAe,OAAA;AAEvB;;GAEG;AACH,2CAAqE;AAA7D,yGAAA,WAAW,OAAA;AAAE,yGAAA,WAAW,OAAA;AAAE,4GAAA,cAAc,OAAA;AAEhD;;GAEG;AACH,uDAAsC"} \ No newline at end of file diff --git a/node_modules/@actions/core/lib/file-command.js b/node_modules/@actions/core/lib/file-command.js index 2d0d738f..e4cae444 100644 --- a/node_modules/@actions/core/lib/file-command.js +++ b/node_modules/@actions/core/lib/file-command.js @@ -2,7 +2,11 @@ // For internal use, subject to change. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; @@ -15,7 +19,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; @@ -23,9 +27,9 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.prepareKeyValueMessage = exports.issueFileCommand = void 0; // We use any as a valid input type /* eslint-disable @typescript-eslint/no-explicit-any */ +const crypto = __importStar(require("crypto")); const fs = __importStar(require("fs")); const os = __importStar(require("os")); -const uuid_1 = require("uuid"); const utils_1 = require("./utils"); function issueFileCommand(command, message) { const filePath = process.env[`GITHUB_${command}`]; @@ -35,14 +39,14 @@ function issueFileCommand(command, message) { if (!fs.existsSync(filePath)) { throw new Error(`Missing file at path: ${filePath}`); } - fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, { + fs.appendFileSync(filePath, `${(0, utils_1.toCommandValue)(message)}${os.EOL}`, { encoding: 'utf8' }); } exports.issueFileCommand = issueFileCommand; function prepareKeyValueMessage(key, value) { - const delimiter = `ghadelimiter_${uuid_1.v4()}`; - const convertedValue = utils_1.toCommandValue(value); + const delimiter = `ghadelimiter_${crypto.randomUUID()}`; + const convertedValue = (0, utils_1.toCommandValue)(value); // These should realistically never happen, but just in case someone finds a // way to exploit uuid generation let's not allow keys or values that contain // the delimiter. diff --git a/node_modules/@actions/core/lib/file-command.js.map b/node_modules/@actions/core/lib/file-command.js.map index b1a9d54d..8510a573 100644 --- a/node_modules/@actions/core/lib/file-command.js.map +++ b/node_modules/@actions/core/lib/file-command.js.map @@ -1 +1 @@ -{"version":3,"file":"file-command.js","sourceRoot":"","sources":["../src/file-command.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;;;;;;;;;;;;;;;;;;;;AAEvC,mCAAmC;AACnC,uDAAuD;AAEvD,uCAAwB;AACxB,uCAAwB;AACxB,+BAAiC;AACjC,mCAAsC;AAEtC,SAAgB,gBAAgB,CAAC,OAAe,EAAE,OAAY;IAC5D,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,OAAO,EAAE,CAAC,CAAA;IACjD,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CACb,wDAAwD,OAAO,EAAE,CAClE,CAAA;KACF;IACD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QAC5B,MAAM,IAAI,KAAK,CAAC,yBAAyB,QAAQ,EAAE,CAAC,CAAA;KACrD;IAED,EAAE,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,sBAAc,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;QACjE,QAAQ,EAAE,MAAM;KACjB,CAAC,CAAA;AACJ,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,sBAAc,EAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;QACjE,QAAQ,EAAE,MAAM;KACjB,CAAC,CAAA;AACJ,CAAC;AAdD,4CAcC;AAED,SAAgB,sBAAsB,CAAC,GAAW,EAAE,KAAU;IAC5D,MAAM,SAAS,GAAG,gBAAgB,MAAM,CAAC,UAAU,EAAE,EAAE,CAAA;IACvD,MAAM,cAAc,GAAG,IAAA,sBAAc,EAAC,KAAK,CAAC,CAAA;IAE5C,4EAA4E;IAC5E,6EAA6E;IAC7E,iBAAiB;IACjB,IAAI,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QAC3B,MAAM,IAAI,KAAK,CACb,4DAA4D,SAAS,GAAG,CACzE,CAAA;KACF;IAED,IAAI,cAAc,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QACtC,MAAM,IAAI,KAAK,CACb,6DAA6D,SAAS,GAAG,CAC1E,CAAA;KACF;IAED,OAAO,GAAG,GAAG,KAAK,SAAS,GAAG,EAAE,CAAC,GAAG,GAAG,cAAc,GAAG,EAAE,CAAC,GAAG,GAAG,SAAS,EAAE,CAAA;AAC9E,CAAC;AApBD,wDAoBC"} \ No newline at end of file diff --git a/node_modules/@actions/core/lib/oidc-utils.js b/node_modules/@actions/core/lib/oidc-utils.js index 092e93d7..f8895d08 100644 --- a/node_modules/@actions/core/lib/oidc-utils.js +++ b/node_modules/@actions/core/lib/oidc-utils.js @@ -62,9 +62,9 @@ class OidcClient { const encodedAudience = encodeURIComponent(audience); id_token_url = `${id_token_url}&audience=${encodedAudience}`; } - core_1.debug(`ID token url is ${id_token_url}`); + (0, core_1.debug)(`ID token url is ${id_token_url}`); const id_token = yield OidcClient.getCall(id_token_url); - core_1.setSecret(id_token); + (0, core_1.setSecret)(id_token); return id_token; } catch (error) { diff --git a/node_modules/@actions/core/lib/oidc-utils.js.map b/node_modules/@actions/core/lib/oidc-utils.js.map index 22506b80..f144099c 100644 --- a/node_modules/@actions/core/lib/oidc-utils.js.map +++ b/node_modules/@actions/core/lib/oidc-utils.js.map @@ -1 +1 @@ -{"version":3,"file":"oidc-utils.js","sourceRoot":"","sources":["../src/oidc-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,sDAA+C;AAC/C,wDAAqE;AACrE,iCAAuC;AAKvC,MAAa,UAAU;IACb,MAAM,CAAC,gBAAgB,CAC7B,UAAU,GAAG,IAAI,EACjB,QAAQ,GAAG,EAAE;QAEb,MAAM,cAAc,GAAmB;YACrC,YAAY,EAAE,UAAU;YACxB,UAAU,EAAE,QAAQ;SACrB,CAAA;QAED,OAAO,IAAI,wBAAU,CACnB,qBAAqB,EACrB,CAAC,IAAI,8BAAuB,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,CAAC,EAC3D,cAAc,CACf,CAAA;IACH,CAAC;IAEO,MAAM,CAAC,eAAe;QAC5B,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAA;QAC3D,IAAI,CAAC,KAAK,EAAE;YACV,MAAM,IAAI,KAAK,CACb,2DAA2D,CAC5D,CAAA;SACF;QACD,OAAO,KAAK,CAAA;IACd,CAAC;IAEO,MAAM,CAAC,aAAa;QAC1B,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAA;QAC9D,IAAI,CAAC,UAAU,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAA;SAC3E;QACD,OAAO,UAAU,CAAA;IACnB,CAAC;IAEO,MAAM,CAAO,OAAO,CAAC,YAAoB;;;YAC/C,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,EAAE,CAAA;YAEhD,MAAM,GAAG,GAAG,MAAM,UAAU;iBACzB,OAAO,CAAgB,YAAY,CAAC;iBACpC,KAAK,CAAC,KAAK,CAAC,EAAE;gBACb,MAAM,IAAI,KAAK,CACb;uBACa,KAAK,CAAC,UAAU;yBACd,KAAK,CAAC,OAAO,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G,YAAY,aAAa,eAAe,EAAE,CAAA;iBAC7D;gBAED,IAAA,YAAK,EAAC,mBAAmB,YAAY,EAAE,CAAC,CAAA;gBAExC,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;gBACvD,IAAA,gBAAS,EAAC,QAAQ,CAAC,CAAA;gBACnB,OAAO,QAAQ,CAAA;aAChB;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,IAAI,KAAK,CAAC,kBAAkB,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;aACnD;QACH,CAAC;KAAA;CACF;AAzED,gCAyEC"} \ No newline at end of file diff --git a/node_modules/@actions/core/lib/path-utils.js b/node_modules/@actions/core/lib/path-utils.js index 7251c829..d13f4ec8 100644 --- a/node_modules/@actions/core/lib/path-utils.js +++ b/node_modules/@actions/core/lib/path-utils.js @@ -1,7 +1,11 @@ "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; @@ -14,7 +18,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? ( var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; diff --git a/node_modules/@actions/core/lib/path-utils.js.map b/node_modules/@actions/core/lib/path-utils.js.map index 7ab1cace..b2960085 100644 --- a/node_modules/@actions/core/lib/path-utils.js.map +++ b/node_modules/@actions/core/lib/path-utils.js.map @@ -1 +1 @@ -{"version":3,"file":"path-utils.js","sourceRoot":"","sources":["../src/path-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4B;AAE5B;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,OAAO,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA;AAClC,CAAC;AAFD,kCAEC;AAED;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,OAAO,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;AAClC,CAAC;AAFD,kCAEC;AAED;;;;;;;GAOG;AACH,SAAgB,cAAc,CAAC,GAAW;IACxC,OAAO,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAA;AACxC,CAAC;AAFD,wCAEC"} \ No newline at end of file +{"version":3,"file":"path-utils.js","sourceRoot":"","sources":["../src/path-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4B;AAE5B;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,OAAO,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA;AAClC,CAAC;AAFD,kCAEC;AAED;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,OAAO,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;AAClC,CAAC;AAFD,kCAEC;AAED;;;;;;;GAOG;AACH,SAAgB,cAAc,CAAC,GAAW;IACxC,OAAO,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAA;AACxC,CAAC;AAFD,wCAEC"} \ No newline at end of file diff --git a/node_modules/@actions/core/lib/platform.d.ts b/node_modules/@actions/core/lib/platform.d.ts new file mode 100644 index 00000000..34dbd93b --- /dev/null +++ b/node_modules/@actions/core/lib/platform.d.ts @@ -0,0 +1,15 @@ +/// +export declare const platform: NodeJS.Platform; +export declare const arch: string; +export declare const isWindows: boolean; +export declare const isMacOS: boolean; +export declare const isLinux: boolean; +export declare function getDetails(): Promise<{ + name: string; + platform: string; + arch: string; + version: string; + isWindows: boolean; + isMacOS: boolean; + isLinux: boolean; +}>; diff --git a/node_modules/@actions/core/lib/platform.js b/node_modules/@actions/core/lib/platform.js new file mode 100644 index 00000000..c6b58c53 --- /dev/null +++ b/node_modules/@actions/core/lib/platform.js @@ -0,0 +1,94 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getDetails = exports.isLinux = exports.isMacOS = exports.isWindows = exports.arch = exports.platform = void 0; +const os_1 = __importDefault(require("os")); +const exec = __importStar(require("@actions/exec")); +const getWindowsInfo = () => __awaiter(void 0, void 0, void 0, function* () { + const { stdout: version } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"', undefined, { + silent: true + }); + const { stdout: name } = yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"', undefined, { + silent: true + }); + return { + name: name.trim(), + version: version.trim() + }; +}); +const getMacOsInfo = () => __awaiter(void 0, void 0, void 0, function* () { + var _a, _b, _c, _d; + const { stdout } = yield exec.getExecOutput('sw_vers', undefined, { + silent: true + }); + const version = (_b = (_a = stdout.match(/ProductVersion:\s*(.+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : ''; + const name = (_d = (_c = stdout.match(/ProductName:\s*(.+)/)) === null || _c === void 0 ? void 0 : _c[1]) !== null && _d !== void 0 ? _d : ''; + return { + name, + version + }; +}); +const getLinuxInfo = () => __awaiter(void 0, void 0, void 0, function* () { + const { stdout } = yield exec.getExecOutput('lsb_release', ['-i', '-r', '-s'], { + silent: true + }); + const [name, version] = stdout.trim().split('\n'); + return { + name, + version + }; +}); +exports.platform = os_1.default.platform(); +exports.arch = os_1.default.arch(); +exports.isWindows = exports.platform === 'win32'; +exports.isMacOS = exports.platform === 'darwin'; +exports.isLinux = exports.platform === 'linux'; +function getDetails() { + return __awaiter(this, void 0, void 0, function* () { + return Object.assign(Object.assign({}, (yield (exports.isWindows + ? getWindowsInfo() + : exports.isMacOS + ? getMacOsInfo() + : getLinuxInfo()))), { platform: exports.platform, + arch: exports.arch, + isWindows: exports.isWindows, + isMacOS: exports.isMacOS, + isLinux: exports.isLinux }); + }); +} +exports.getDetails = getDetails; +//# sourceMappingURL=platform.js.map \ No newline at end of file diff --git a/node_modules/@actions/core/lib/platform.js.map b/node_modules/@actions/core/lib/platform.js.map new file mode 100644 index 00000000..976102b0 --- /dev/null +++ b/node_modules/@actions/core/lib/platform.js.map @@ -0,0 +1 @@ +{"version":3,"file":"platform.js","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAmB;AACnB,oDAAqC;AAErC,MAAM,cAAc,GAAG,GAAmD,EAAE;IAC1E,MAAM,EAAC,MAAM,EAAE,OAAO,EAAC,GAAG,MAAM,IAAI,CAAC,aAAa,CAChD,kFAAkF,EAClF,SAAS,EACT;QACE,MAAM,EAAE,IAAI;KACb,CACF,CAAA;IAED,MAAM,EAAC,MAAM,EAAE,IAAI,EAAC,GAAG,MAAM,IAAI,CAAC,aAAa,CAC7C,kFAAkF,EAClF,SAAS,EACT;QACE,MAAM,EAAE,IAAI;KACb,CACF,CAAA;IAED,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE;QACjB,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE;KACxB,CAAA;AACH,CAAC,CAAA,CAAA;AAED,MAAM,YAAY,GAAG,GAGlB,EAAE;;IACH,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE;QAC9D,MAAM,EAAE,IAAI;KACb,CAAC,CAAA;IAEF,MAAM,OAAO,GAAG,MAAA,MAAA,MAAM,CAAC,KAAK,CAAC,wBAAwB,CAAC,0CAAG,CAAC,CAAC,mCAAI,EAAE,CAAA;IACjE,MAAM,IAAI,GAAG,MAAA,MAAA,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,0CAAG,CAAC,CAAC,mCAAI,EAAE,CAAA;IAE3D,OAAO;QACL,IAAI;QACJ,OAAO;KACR,CAAA;AACH,CAAC,CAAA,CAAA;AAED,MAAM,YAAY,GAAG,GAGlB,EAAE;IACH,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,aAAa,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE;QAC3E,MAAM,EAAE,IAAI;KACb,CAAC,CAAA;IAEF,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IAEjD,OAAO;QACL,IAAI;QACJ,OAAO;KACR,CAAA;AACH,CAAC,CAAA,CAAA;AAEY,QAAA,QAAQ,GAAG,YAAE,CAAC,QAAQ,EAAE,CAAA;AACxB,QAAA,IAAI,GAAG,YAAE,CAAC,IAAI,EAAE,CAAA;AAChB,QAAA,SAAS,GAAG,gBAAQ,KAAK,OAAO,CAAA;AAChC,QAAA,OAAO,GAAG,gBAAQ,KAAK,QAAQ,CAAA;AAC/B,QAAA,OAAO,GAAG,gBAAQ,KAAK,OAAO,CAAA;AAE3C,SAAsB,UAAU;;QAS9B,uCACK,CAAC,MAAM,CAAC,iBAAS;YAClB,CAAC,CAAC,cAAc,EAAE;YAClB,CAAC,CAAC,eAAO;gBACT,CAAC,CAAC,YAAY,EAAE;gBAChB,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC,KACpB,QAAQ,EAAR,gBAAQ;YACR,IAAI,EAAJ,YAAI;YACJ,SAAS,EAAT,iBAAS;YACT,OAAO,EAAP,eAAO;YACP,OAAO,EAAP,eAAO,IACR;IACH,CAAC;CAAA;AArBD,gCAqBC"} \ No newline at end of file diff --git a/node_modules/@actions/core/lib/summary.d.ts b/node_modules/@actions/core/lib/summary.d.ts index bb792555..0ea4384a 100644 --- a/node_modules/@actions/core/lib/summary.d.ts +++ b/node_modules/@actions/core/lib/summary.d.ts @@ -1,6 +1,6 @@ export declare const SUMMARY_ENV_VAR = "GITHUB_STEP_SUMMARY"; export declare const SUMMARY_DOCS_URL = "https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary"; -export declare type SummaryTableRow = (SummaryTableCell | string)[]; +export type SummaryTableRow = (SummaryTableCell | string)[]; export interface SummaryTableCell { /** * Cell content diff --git a/node_modules/@actions/core/lib/summary.js.map b/node_modules/@actions/core/lib/summary.js.map index d598f264..96373515 100644 --- a/node_modules/@actions/core/lib/summary.js.map +++ b/node_modules/@actions/core/lib/summary.js.map @@ -1 +1 @@ -{"version":3,"file":"summary.js","sourceRoot":"","sources":["../src/summary.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2BAAsB;AACtB,2BAAsC;AACtC,MAAM,EAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAC,GAAG,aAAQ,CAAA;AAEnC,QAAA,eAAe,GAAG,qBAAqB,CAAA;AACvC,QAAA,gBAAgB,GAC3B,2GAA2G,CAAA;AA+C7G,MAAM,OAAO;IAIX;QACE,IAAI,CAAC,OAAO,GAAG,EAAE,CAAA;IACnB,CAAC;IAED;;;;;OAKG;IACW,QAAQ;;YACpB,IAAI,IAAI,CAAC,SAAS,EAAE;gBAClB,OAAO,IAAI,CAAC,SAAS,CAAA;aACtB;YAED,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAe,CAAC,CAAA;YAChD,IAAI,CAAC,WAAW,EAAE;gBAChB,MAAM,IAAI,KAAK,CACb,4CAA4C,uBAAe,6DAA6D,CACzH,CAAA;aACF;YAED,IAAI;gBACF,MAAM,MAAM,CAAC,WAAW,EAAE,cAAS,CAAC,IAAI,GAAG,cAAS,CAAC,IAAI,CAAC,CAAA;aAC3D;YAAC,WAAM;gBACN,MAAM,IAAI,KAAK,CACb,mCAAmC,WAAW,0DAA0D,CACzG,CAAA;aACF;YAED,IAAI,CAAC,SAAS,GAAG,WAAW,CAAA;YAC5B,OAAO,IAAI,CAAC,SAAS,CAAA;QACvB,CAAC;KAAA;IAED;;;;;;;;OAQG;IACK,IAAI,C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AU,EAAE,IAAI,CAAC,CAAA;QAC3C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;OAIG;IACH,YAAY;QACV,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;QACrC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;OAIG;IACH,QAAQ;QACN,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;QACrC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,IAAY,EAAE,IAAa;QAClC,MAAM,KAAK,qBACN,CAAC,IAAI,IAAI,EAAC,IAAI,EAAC,CAAC,CACpB,CAAA;QACD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;QACpD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,IAAY,EAAE,IAAY;QAChC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,EAAC,IAAI,EAAC,CAAC,CAAA;QAC5C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;CACF;AAED,MAAM,QAAQ,GAAG,IAAI,OAAO,EAAE,CAAA;AAE9B;;GAEG;AACU,QAAA,eAAe,GAAG,QAAQ,CAAA;AAC1B,QAAA,OAAO,GAAG,QAAQ,CAAA"} \ No newline at end of file diff --git a/node_modules/@actions/core/package.json b/node_modules/@actions/core/package.json index 1558268c..6d60010e 100644 --- a/node_modules/@actions/core/package.json +++ b/node_modules/@actions/core/package.json @@ -1,6 +1,6 @@ { "name": "@actions/core", - "version": "1.10.1", + "version": "1.11.1", "description": "Actions core lib", "keywords": [ "github", @@ -36,11 +36,10 @@ "url": "https://github.com/actions/toolkit/issues" }, "dependencies": { - "@actions/http-client": "^2.0.1", - "uuid": "^8.3.2" + "@actions/exec": "^1.1.1", + "@actions/http-client": "^2.0.1" }, "devDependencies": { - "@types/node": "^12.0.2", - "@types/uuid": "^8.3.4" + "@types/node": "^16.18.112" } } \ No newline at end of file diff --git a/node_modules/@actions/exec/LICENSE.md b/node_modules/@actions/exec/LICENSE.md new file mode 100644 index 00000000..dbae2edb --- /dev/null +++ b/node_modules/@actions/exec/LICENSE.md @@ -0,0 +1,9 @@ +The MIT License (MIT) + +Copyright 2019 GitHub + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/@actions/exec/README.md b/node_modules/@actions/exec/README.md new file mode 100644 index 00000000..53a6bf52 --- /dev/null +++ b/node_modules/@actions/exec/README.md @@ -0,0 +1,57 @@ +# `@actions/exec` + +## Usage + +#### Basic + +You can use this package to execute tools in a cross platform way: + +```js +const exec = require('@actions/exec'); + +await exec.exec('node index.js'); +``` + +#### Args + +You can also pass in arg arrays: + +```js +const exec = require('@actions/exec'); + +await exec.exec('node', ['index.js', 'foo=bar']); +``` + +#### Output/options + +Capture output or specify [other options](https://github.com/actions/toolkit/blob/d9347d4ab99fd507c0b9104b2cf79fb44fcc827d/packages/exec/src/interfaces.ts#L5): + +```js +const exec = require('@actions/exec'); + +let myOutput = ''; +let myError = ''; + +const options = {}; +options.listeners = { + stdout: (data: Buffer) => { + myOutput += data.toString(); + }, + stderr: (data: Buffer) => { + myError += data.toString(); + } +}; +options.cwd = './lib'; + +await exec.exec('node', ['index.js', 'foo=bar'], options); +``` + +#### Exec tools not in the PATH + +You can specify the full path for tools not in the PATH: + +```js +const exec = require('@actions/exec'); + +await exec.exec('"/path/to/my-tool"', ['arg1']); +``` diff --git a/node_modules/@actions/exec/lib/exec.d.ts b/node_modules/@actions/exec/lib/exec.d.ts new file mode 100644 index 00000000..baedcdb6 --- /dev/null +++ b/node_modules/@actions/exec/lib/exec.d.ts @@ -0,0 +1,24 @@ +import { ExecOptions, ExecOutput, ExecListeners } from './interfaces'; +export { ExecOptions, ExecOutput, ExecListeners }; +/** + * Exec a command. + * Output will be streamed to the live console. + * Returns promise with return code + * + * @param commandLine command to execute (can include additional args). Must be correctly escaped. + * @param args optional arguments for tool. Escaping is handled by the lib. + * @param options optional exec options. See ExecOptions + * @returns Promise exit code + */ +export declare function exec(commandLine: string, args?: string[], options?: ExecOptions): Promise; +/** + * Exec a command and get the output. + * Output will be streamed to the live console. + * Returns promise with the exit code and collected stdout and stderr + * + * @param commandLine command to execute (can include additional args). Must be correctly escaped. + * @param args optional arguments for tool. Escaping is handled by the lib. + * @param options optional exec options. See ExecOptions + * @returns Promise exit code, stdout, and stderr + */ +export declare function getExecOutput(commandLine: string, args?: string[], options?: ExecOptions): Promise; diff --git a/node_modules/@actions/exec/lib/exec.js b/node_modules/@actions/exec/lib/exec.js new file mode 100644 index 00000000..72c7a9cc --- /dev/null +++ b/node_modules/@actions/exec/lib/exec.js @@ -0,0 +1,103 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getExecOutput = exports.exec = void 0; +const string_decoder_1 = require("string_decoder"); +const tr = __importStar(require("./toolrunner")); +/** + * Exec a command. + * Output will be streamed to the live console. + * Returns promise with return code + * + * @param commandLine command to execute (can include additional args). Must be correctly escaped. + * @param args optional arguments for tool. Escaping is handled by the lib. + * @param options optional exec options. See ExecOptions + * @returns Promise exit code + */ +function exec(commandLine, args, options) { + return __awaiter(this, void 0, void 0, function* () { + const commandArgs = tr.argStringToArray(commandLine); + if (commandArgs.length === 0) { + throw new Error(`Parameter 'commandLine' cannot be null or empty.`); + } + // Path to tool to execute should be first arg + const toolPath = commandArgs[0]; + args = commandArgs.slice(1).concat(args || []); + const runner = new tr.ToolRunner(toolPath, args, options); + return runner.exec(); + }); +} +exports.exec = exec; +/** + * Exec a command and get the output. + * Output will be streamed to the live console. + * Returns promise with the exit code and collected stdout and stderr + * + * @param commandLine command to execute (can include additional args). Must be correctly escaped. + * @param args optional arguments for tool. Escaping is handled by the lib. + * @param options optional exec options. See ExecOptions + * @returns Promise exit code, stdout, and stderr + */ +function getExecOutput(commandLine, args, options) { + var _a, _b; + return __awaiter(this, void 0, void 0, function* () { + let stdout = ''; + let stderr = ''; + //Using string decoder covers the case where a mult-byte character is split + const stdoutDecoder = new string_decoder_1.StringDecoder('utf8'); + const stderrDecoder = new string_decoder_1.StringDecoder('utf8'); + const originalStdoutListener = (_a = options === null || options === void 0 ? void 0 : options.listeners) === null || _a === void 0 ? void 0 : _a.stdout; + const originalStdErrListener = (_b = options === null || options === void 0 ? void 0 : options.listeners) === null || _b === void 0 ? void 0 : _b.stderr; + const stdErrListener = (data) => { + stderr += stderrDecoder.write(data); + if (originalStdErrListener) { + originalStdErrListener(data); + } + }; + const stdOutListener = (data) => { + stdout += stdoutDecoder.write(data); + if (originalStdoutListener) { + originalStdoutListener(data); + } + }; + const listeners = Object.assign(Object.assign({}, options === null || options === void 0 ? void 0 : options.listeners), { stdout: stdOutListener, stderr: stdErrListener }); + const exitCode = yield exec(commandLine, args, Object.assign(Object.assign({}, options), { listeners })); + //flush any remaining characters + stdout += stdoutDecoder.end(); + stderr += stderrDecoder.end(); + return { + exitCode, + stdout, + stderr + }; + }); +} +exports.getExecOutput = getExecOutput; +//# sourceMappingURL=exec.js.map \ No newline at end of file diff --git a/node_modules/@actions/exec/lib/exec.js.map b/node_modules/@actions/exec/lib/exec.js.map new file mode 100644 index 00000000..07626365 --- /dev/null +++ b/node_modules/@actions/exec/lib/exec.js.map @@ -0,0 +1 @@ +{"version":3,"file":"exec.js","sourceRoot":"","sources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AAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;YACnC,IAAI,sBAAsB,EAAE;gBAC1B,sBAAsB,CAAC,IAAI,CAAC,CAAA;aAC7B;QACH,CAAC,CAAA;QAED,MAAM,cAAc,GAAG,CAAC,IAAY,EAAQ,EAAE;YAC5C,MAAM,IAAI,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;YACnC,IAAI,sBAAsB,EAAE;gBAC1B,sBAAsB,CAAC,IAAI,CAAC,CAAA;aAC7B;QACH,CAAC,CAAA;QAED,MAAM,SAAS,mCACV,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,KACrB,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,cAAc,GACvB,CAAA;QAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW,EAAE,IAAI,kCAAM,OAAO,KAAE,SAAS,IAAE,CAAA;QAEvE,gCAAgC;QAChC,MAAM,IAAI,aAAa,CAAC,GAAG,EAAE,CAAA;QAC7B,MAAM,IAAI,aAAa,CAAC,GAAG,EAAE,CAAA;QAE7B,OAAO;YACL,QAAQ;YACR,MAAM;YACN,MAAM;SACP,CAAA;;CACF;AA9CD,sCA8CC"} \ No newline at end of file diff --git a/node_modules/@actions/exec/lib/interfaces.d.ts b/node_modules/@actions/exec/lib/interfaces.d.ts new file mode 100644 index 00000000..8ae20e48 --- /dev/null +++ b/node_modules/@actions/exec/lib/interfaces.d.ts @@ -0,0 +1,57 @@ +/// +import * as stream from 'stream'; +/** + * Interface for exec options + */ +export interface ExecOptions { + /** optional working directory. defaults to current */ + cwd?: string; + /** optional envvar dictionary. defaults to current process's env */ + env?: { + [key: string]: string; + }; + /** optional. defaults to false */ + silent?: boolean; + /** optional out stream to use. Defaults to process.stdout */ + outStream?: stream.Writable; + /** optional err stream to use. Defaults to process.stderr */ + errStream?: stream.Writable; + /** optional. whether to skip quoting/escaping arguments if needed. defaults to false. */ + windowsVerbatimArguments?: boolean; + /** optional. whether to fail if output to stderr. defaults to false */ + failOnStdErr?: boolean; + /** optional. defaults to failing on non zero. ignore will not fail leaving it up to the caller */ + ignoreReturnCode?: boolean; + /** optional. How long in ms to wait for STDIO streams to close after the exit event of the process before terminating. defaults to 10000 */ + delay?: number; + /** optional. input to write to the process on STDIN. */ + input?: Buffer; + /** optional. Listeners for output. Callback functions that will be called on these events */ + listeners?: ExecListeners; +} +/** + * Interface for the output of getExecOutput() + */ +export interface ExecOutput { + /**The exit code of the process */ + exitCode: number; + /**The entire stdout of the process as a string */ + stdout: string; + /**The entire stderr of the process as a string */ + stderr: string; +} +/** + * The user defined listeners for an exec call + */ +export interface ExecListeners { + /** A call back for each buffer of stdout */ + stdout?: (data: Buffer) => void; + /** A call back for each buffer of stderr */ + stderr?: (data: Buffer) => void; + /** A call back for each line of stdout */ + stdline?: (data: string) => void; + /** A call back for each line of stderr */ + errline?: (data: string) => void; + /** A call back for each debug log */ + debug?: (data: string) => void; +} diff --git a/node_modules/@actions/exec/lib/interfaces.js b/node_modules/@actions/exec/lib/interfaces.js new file mode 100644 index 00000000..db919115 --- /dev/null +++ b/node_modules/@actions/exec/lib/interfaces.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=interfaces.js.map \ No newline at end of file diff --git a/node_modules/@actions/exec/lib/interfaces.js.map b/node_modules/@actions/exec/lib/interfaces.js.map new file mode 100644 index 00000000..8fb5f7d1 --- /dev/null +++ b/node_modules/@actions/exec/lib/interfaces.js.map @@ -0,0 +1 @@ +{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@actions/exec/lib/toolrunner.d.ts b/node_modules/@actions/exec/lib/toolrunner.d.ts new file mode 100644 index 00000000..9bbbb1ea --- /dev/null +++ b/node_modules/@actions/exec/lib/toolrunner.d.ts @@ -0,0 +1,37 @@ +/// +import * as events from 'events'; +import * as im from './interfaces'; +export declare class ToolRunner extends events.EventEmitter { + constructor(toolPath: string, args?: string[], options?: im.ExecOptions); + private toolPath; + private args; + private options; + private _debug; + private _getCommandString; + private _processLineBuffer; + private _getSpawnFileName; + private _getSpawnArgs; + private _endsWith; + private _isCmdFile; + private _windowsQuoteCmdArg; + private _uvQuoteCmdArg; + private _cloneExecOptions; + private _getSpawnOptions; + /** + * Exec a tool. + * Output will be streamed to the live console. + * Returns promise with return code + * + * @param tool path to tool to exec + * @param options optional exec options. See ExecOptions + * @returns number + */ + exec(): Promise; +} +/** + * Convert an arg string to an array of args. Handles escaping + * + * @param argString string of arguments + * @returns string[] array of arguments + */ +export declare function argStringToArray(argString: string): string[]; diff --git a/node_modules/@actions/exec/lib/toolrunner.js b/node_modules/@actions/exec/lib/toolrunner.js new file mode 100644 index 00000000..e456a729 --- /dev/null +++ b/node_modules/@actions/exec/lib/toolrunner.js @@ -0,0 +1,618 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.argStringToArray = exports.ToolRunner = void 0; +const os = __importStar(require("os")); +const events = __importStar(require("events")); +const child = __importStar(require("child_process")); +const path = __importStar(require("path")); +const io = __importStar(require("@actions/io")); +const ioUtil = __importStar(require("@actions/io/lib/io-util")); +const timers_1 = require("timers"); +/* eslint-disable @typescript-eslint/unbound-method */ +const IS_WINDOWS = process.platform === 'win32'; +/* + * Class for running command line tools. Handles quoting and arg parsing in a platform agnostic way. + */ +class ToolRunner extends events.EventEmitter { + constructor(toolPath, args, options) { + super(); + if (!toolPath) { + throw new Error("Parameter 'toolPath' cannot be null or empty."); + } + this.toolPath = toolPath; + this.args = args || []; + this.options = options || {}; + } + _debug(message) { + if (this.options.listeners && this.options.listeners.debug) { + this.options.listeners.debug(message); + } + } + _getCommandString(options, noPrefix) { + const toolPath = this._getSpawnFileName(); + const args = this._getSpawnArgs(options); + let cmd = noPrefix ? '' : '[command]'; // omit prefix when piped to a second tool + if (IS_WINDOWS) { + // Windows + cmd file + if (this._isCmdFile()) { + cmd += toolPath; + for (const a of args) { + cmd += ` ${a}`; + } + } + // Windows + verbatim + else if (options.windowsVerbatimArguments) { + cmd += `"${toolPath}"`; + for (const a of args) { + cmd += ` ${a}`; + } + } + // Windows (regular) + else { + cmd += this._windowsQuoteCmdArg(toolPath); + for (const a of args) { + cmd += ` ${this._windowsQuoteCmdArg(a)}`; + } + } + } + else { + // OSX/Linux - this can likely be improved with some form of quoting. + // creating processes on Unix is fundamentally different than Windows. + // on Unix, execvp() takes an arg array. + cmd += toolPath; + for (const a of args) { + cmd += ` ${a}`; + } + } + return cmd; + } + _processLineBuffer(data, strBuffer, onLine) { + try { + let s = strBuffer + data.toString(); + let n = s.indexOf(os.EOL); + while (n > -1) { + const line = s.substring(0, n); + onLine(line); + // the rest of the string ... + s = s.substring(n + os.EOL.length); + n = s.indexOf(os.EOL); + } + return s; + } + catch (err) { + // streaming lines to console is best effort. Don't fail a build. + this._debug(`error processing line. Failed with error ${err}`); + return ''; + } + } + _getSpawnFileName() { + if (IS_WINDOWS) { + if (this._isCmdFile()) { + return process.env['COMSPEC'] || 'cmd.exe'; + } + } + return this.toolPath; + } + _getSpawnArgs(options) { + if (IS_WINDOWS) { + if (this._isCmdFile()) { + let argline = `/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`; + for (const a of this.args) { + argline += ' '; + argline += options.windowsVerbatimArguments + ? a + : this._windowsQuoteCmdArg(a); + } + argline += '"'; + return [argline]; + } + } + return this.args; + } + _endsWith(str, end) { + return str.endsWith(end); + } + _isCmdFile() { + const upperToolPath = this.toolPath.toUpperCase(); + return (this._endsWith(upperToolPath, '.CMD') || + this._endsWith(upperToolPath, '.BAT')); + } + _windowsQuoteCmdArg(arg) { + // for .exe, apply the normal quoting rules that libuv applies + if (!this._isCmdFile()) { + return this._uvQuoteCmdArg(arg); + } + // otherwise apply quoting rules specific to the cmd.exe command line parser. + // the libuv rules are generic and are not designed specifically for cmd.exe + // command line parser. + // + // for a detailed description of the cmd.exe command line parser, refer to + // http://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts/7970912#7970912 + // need quotes for empty arg + if (!arg) { + return '""'; + } + // determine whether the arg needs to be quoted + const cmdSpecialChars = [ + ' ', + '\t', + '&', + '(', + ')', + '[', + ']', + '{', + '}', + '^', + '=', + ';', + '!', + "'", + '+', + ',', + '`', + '~', + '|', + '<', + '>', + '"' + ]; + let needsQuotes = false; + for (const char of arg) { + if (cmdSpecialChars.some(x => x === char)) { + needsQuotes = true; + break; + } + } + // short-circuit if quotes not needed + if (!needsQuotes) { + return arg; + } + // the following quoting rules are very similar to the rules that by libuv applies. + // + // 1) wrap the string in quotes + // + // 2) double-up quotes - i.e. " => "" + // + // this is different from the libuv quoting rules. libuv replaces " with \", which unfortunately + // doesn't work well with a cmd.exe command line. + // + // note, replacing " with "" also works well if the arg is passed to a downstream .NET console app. + // for example, the command line: + // foo.exe "myarg:""my val""" + // is parsed by a .NET console app into an arg array: + // [ "myarg:\"my val\"" ] + // which is the same end result when applying libuv quoting rules. although the actual + // command line from libuv quoting rules would look like: + // foo.exe "myarg:\"my val\"" + // + // 3) double-up slashes that precede a quote, + // e.g. hello \world => "hello \world" + // hello\"world => "hello\\""world" + // hello\\"world => "hello\\\\""world" + // hello world\ => "hello world\\" + // + // technically this is not required for a cmd.exe command line, or the batch argument parser. + // the reasons for including this as a .cmd quoting rule are: + // + // a) this is optimized for the scenario where the argument is passed from the .cmd file to an + // external program. many programs (e.g. .NET console apps) rely on the slash-doubling rule. + // + // b) it's what we've been doing previously (by deferring to node default behavior) and we + // haven't heard any complaints about that aspect. + // + // note, a weakness of the quoting rules chosen here, is that % is not escaped. in fact, % cannot be + // escaped when used on the command line directly - even though within a .cmd file % can be escaped + // by using %%. + // + // the saving grace is, on the command line, %var% is left as-is if var is not defined. this contrasts + // the line parsing rules within a .cmd file, where if var is not defined it is replaced with nothing. + // + // one option that was explored was replacing % with ^% - i.e. %var% => ^%var^%. this hack would + // often work, since it is unlikely that var^ would exist, and the ^ character is removed when the + // variable is used. the problem, however, is that ^ is not removed when %* is used to pass the args + // to an external program. + // + // an unexplored potential solution for the % escaping problem, is to create a wrapper .cmd file. + // % can be escaped within a .cmd file. + let reverse = '"'; + let quoteHit = true; + for (let i = arg.length; i > 0; i--) { + // walk the string in reverse + reverse += arg[i - 1]; + if (quoteHit && arg[i - 1] === '\\') { + reverse += '\\'; // double the slash + } + else if (arg[i - 1] === '"') { + quoteHit = true; + reverse += '"'; // double the quote + } + else { + quoteHit = false; + } + } + reverse += '"'; + return reverse + .split('') + .reverse() + .join(''); + } + _uvQuoteCmdArg(arg) { + // Tool runner wraps child_process.spawn() and needs to apply the same quoting as + // Node in certain cases where the undocumented spawn option windowsVerbatimArguments + // is used. + // + // Since this function is a port of quote_cmd_arg from Node 4.x (technically, lib UV, + // see https://github.com/nodejs/node/blob/v4.x/deps/uv/src/win/process.c for details), + // pasting copyright notice from Node within this function: + // + // Copyright Joyent, Inc. and other Node contributors. All rights reserved. + // + // Permission is hereby granted, free of charge, to any person obtaining a copy + // of this software and associated documentation files (the "Software"), to + // deal in the Software without restriction, including without limitation the + // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + // sell copies of the Software, and to permit persons to whom the Software is + // furnished to do so, subject to the following conditions: + // + // The above copyright notice and this permission notice shall be included in + // all copies or substantial portions of the Software. + // + // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + // IN THE SOFTWARE. + if (!arg) { + // Need double quotation for empty argument + return '""'; + } + if (!arg.includes(' ') && !arg.includes('\t') && !arg.includes('"')) { + // No quotation needed + return arg; + } + if (!arg.includes('"') && !arg.includes('\\')) { + // No embedded double quotes or backslashes, so I can just wrap + // quote marks around the whole thing. + return `"${arg}"`; + } + // Expected input/output: + // input : hello"world + // output: "hello\"world" + // input : hello""world + // output: "hello\"\"world" + // input : hello\world + // output: hello\world + // input : hello\\world + // output: hello\\world + // input : hello\"world + // output: "hello\\\"world" + // input : hello\\"world + // output: "hello\\\\\"world" + // input : hello world\ + // output: "hello world\\" - note the comment in libuv actually reads "hello world\" + // but it appears the comment is wrong, it should be "hello world\\" + let reverse = '"'; + let quoteHit = true; + for (let i = arg.length; i > 0; i--) { + // walk the string in reverse + reverse += arg[i - 1]; + if (quoteHit && arg[i - 1] === '\\') { + reverse += '\\'; + } + else if (arg[i - 1] === '"') { + quoteHit = true; + reverse += '\\'; + } + else { + quoteHit = false; + } + } + reverse += '"'; + return reverse + .split('') + .reverse() + .join(''); + } + _cloneExecOptions(options) { + options = options || {}; + const result = { + cwd: options.cwd || process.cwd(), + env: options.env || process.env, + silent: options.silent || false, + windowsVerbatimArguments: options.windowsVerbatimArguments || false, + failOnStdErr: options.failOnStdErr || false, + ignoreReturnCode: options.ignoreReturnCode || false, + delay: options.delay || 10000 + }; + result.outStream = options.outStream || process.stdout; + result.errStream = options.errStream || process.stderr; + return result; + } + _getSpawnOptions(options, toolPath) { + options = options || {}; + const result = {}; + result.cwd = options.cwd; + result.env = options.env; + result['windowsVerbatimArguments'] = + options.windowsVerbatimArguments || this._isCmdFile(); + if (options.windowsVerbatimArguments) { + result.argv0 = `"${toolPath}"`; + } + return result; + } + /** + * Exec a tool. + * Output will be streamed to the live console. + * Returns promise with return code + * + * @param tool path to tool to exec + * @param options optional exec options. See ExecOptions + * @returns number + */ + exec() { + return __awaiter(this, void 0, void 0, function* () { + // root the tool path if it is unrooted and contains relative pathing + if (!ioUtil.isRooted(this.toolPath) && + (this.toolPath.includes('/') || + (IS_WINDOWS && this.toolPath.includes('\\')))) { + // prefer options.cwd if it is specified, however options.cwd may also need to be rooted + this.toolPath = path.resolve(process.cwd(), this.options.cwd || process.cwd(), this.toolPath); + } + // if the tool is only a file name, then resolve it from the PATH + // otherwise verify it exists (add extension on Windows if necessary) + this.toolPath = yield io.which(this.toolPath, true); + return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { + this._debug(`exec tool: ${this.toolPath}`); + this._debug('arguments:'); + for (const arg of this.args) { + this._debug(` ${arg}`); + } + const optionsNonNull = this._cloneExecOptions(this.options); + if (!optionsNonNull.silent && optionsNonNull.outStream) { + optionsNonNull.outStream.write(this._getCommandString(optionsNonNull) + os.EOL); + } + const state = new ExecState(optionsNonNull, this.toolPath); + state.on('debug', (message) => { + this._debug(message); + }); + if (this.options.cwd && !(yield ioUtil.exists(this.options.cwd))) { + return reject(new Error(`The cwd: ${this.options.cwd} does not exist!`)); + } + const fileName = this._getSpawnFileName(); + const cp = child.spawn(fileName, this._getSpawnArgs(optionsNonNull), this._getSpawnOptions(this.options, fileName)); + let stdbuffer = ''; + if (cp.stdout) { + cp.stdout.on('data', (data) => { + if (this.options.listeners && this.options.listeners.stdout) { + this.options.listeners.stdout(data); + } + if (!optionsNonNull.silent && optionsNonNull.outStream) { + optionsNonNull.outStream.write(data); + } + stdbuffer = this._processLineBuffer(data, stdbuffer, (line) => { + if (this.options.listeners && this.options.listeners.stdline) { + this.options.listeners.stdline(line); + } + }); + }); + } + let errbuffer = ''; + if (cp.stderr) { + cp.stderr.on('data', (data) => { + state.processStderr = true; + if (this.options.listeners && this.options.listeners.stderr) { + this.options.listeners.stderr(data); + } + if (!optionsNonNull.silent && + optionsNonNull.errStream && + optionsNonNull.outStream) { + const s = optionsNonNull.failOnStdErr + ? optionsNonNull.errStream + : optionsNonNull.outStream; + s.write(data); + } + errbuffer = this._processLineBuffer(data, errbuffer, (line) => { + if (this.options.listeners && this.options.listeners.errline) { + this.options.listeners.errline(line); + } + }); + }); + } + cp.on('error', (err) => { + state.processError = err.message; + state.processExited = true; + state.processClosed = true; + state.CheckComplete(); + }); + cp.on('exit', (code) => { + state.processExitCode = code; + state.processExited = true; + this._debug(`Exit code ${code} received from tool '${this.toolPath}'`); + state.CheckComplete(); + }); + cp.on('close', (code) => { + state.processExitCode = code; + state.processExited = true; + state.processClosed = true; + this._debug(`STDIO streams have closed for tool '${this.toolPath}'`); + state.CheckComplete(); + }); + state.on('done', (error, exitCode) => { + if (stdbuffer.length > 0) { + this.emit('stdline', stdbuffer); + } + if (errbuffer.length > 0) { + this.emit('errline', errbuffer); + } + cp.removeAllListeners(); + if (error) { + reject(error); + } + else { + resolve(exitCode); + } + }); + if (this.options.input) { + if (!cp.stdin) { + throw new Error('child process missing stdin'); + } + cp.stdin.end(this.options.input); + } + })); + }); + } +} +exports.ToolRunner = ToolRunner; +/** + * Convert an arg string to an array of args. Handles escaping + * + * @param argString string of arguments + * @returns string[] array of arguments + */ +function argStringToArray(argString) { + const args = []; + let inQuotes = false; + let escaped = false; + let arg = ''; + function append(c) { + // we only escape double quotes. + if (escaped && c !== '"') { + arg += '\\'; + } + arg += c; + escaped = false; + } + for (let i = 0; i < argString.length; i++) { + const c = argString.charAt(i); + if (c === '"') { + if (!escaped) { + inQuotes = !inQuotes; + } + else { + append(c); + } + continue; + } + if (c === '\\' && escaped) { + append(c); + continue; + } + if (c === '\\' && inQuotes) { + escaped = true; + continue; + } + if (c === ' ' && !inQuotes) { + if (arg.length > 0) { + args.push(arg); + arg = ''; + } + continue; + } + append(c); + } + if (arg.length > 0) { + args.push(arg.trim()); + } + return args; +} +exports.argStringToArray = argStringToArray; +class ExecState extends events.EventEmitter { + constructor(options, toolPath) { + super(); + this.processClosed = false; // tracks whether the process has exited and stdio is closed + this.processError = ''; + this.processExitCode = 0; + this.processExited = false; // tracks whether the process has exited + this.processStderr = false; // tracks whether stderr was written to + this.delay = 10000; // 10 seconds + this.done = false; + this.timeout = null; + if (!toolPath) { + throw new Error('toolPath must not be empty'); + } + this.options = options; + this.toolPath = toolPath; + if (options.delay) { + this.delay = options.delay; + } + } + CheckComplete() { + if (this.done) { + return; + } + if (this.processClosed) { + this._setResult(); + } + else if (this.processExited) { + this.timeout = timers_1.setTimeout(ExecState.HandleTimeout, this.delay, this); + } + } + _debug(message) { + this.emit('debug', message); + } + _setResult() { + // determine whether there is an error + let error; + if (this.processExited) { + if (this.processError) { + error = new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`); + } + else if (this.processExitCode !== 0 && !this.options.ignoreReturnCode) { + error = new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`); + } + else if (this.processStderr && this.options.failOnStdErr) { + error = new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`); + } + } + // clear the timeout + if (this.timeout) { + clearTimeout(this.timeout); + this.timeout = null; + } + this.done = true; + this.emit('done', error, this.processExitCode); + } + static HandleTimeout(state) { + if (state.done) { + return; + } + if (!state.processClosed && state.processExited) { + const message = `The STDIO streams did not close within ${state.delay / + 1000} seconds of the exit event from process '${state.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`; + state._debug(message); + } + state._setResult(); + } +} +//# sourceMappingURL=toolrunner.js.map \ No newline at end of file diff --git a/node_modules/@actions/exec/lib/toolrunner.js.map b/node_modules/@actions/exec/lib/toolrunner.js.map new file mode 100644 index 00000000..6eaf1830 --- /dev/null +++ b/node_modules/@actions/exec/lib/toolrunner.js.map @@ -0,0 +1 @@ +{"version":3,"file":"toolrunner.js","sourceRoot":"","sources":["../src/toolrunner.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAwB;AACxB,+CAAgC;AAChC,qDAAsC;AACtC,2CAA4B;AAG5B,gDAAiC;AACjC,gEAAiD;AACjD,mCAAiC;AAEjC,sDAAsD;AAEtD,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAA;AAE/C;;GAEG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,YAAY;IACjD,YAAY,QAAgB,EAAE,IAAe,EAAE,OAAwB;QACrE,KAAK,EAAE,CAAA;QAEP,IAAI,CAAC,QAAQ,EAAE;YACb,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAA;SACjE;QAED,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAA;QACtB,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAA;IAC9B,CAAC;IAMO,MAAM,CAAC,OAAe;QAC5B,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,E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,CAAA;IACpB,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/@actions/exec/package.json b/node_modules/@actions/exec/package.json new file mode 100644 index 00000000..bc4d77a2 --- /dev/null +++ b/node_modules/@actions/exec/package.json @@ -0,0 +1,41 @@ +{ + "name": "@actions/exec", + "version": "1.1.1", + "description": "Actions exec lib", + "keywords": [ + "github", + "actions", + "exec" + ], + "homepage": "https://github.com/actions/toolkit/tree/main/packages/exec", + "license": "MIT", + "main": "lib/exec.js", + "types": "lib/exec.d.ts", + "directories": { + "lib": "lib", + "test": "__tests__" + }, + "files": [ + "lib", + "!.DS_Store" + ], + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/actions/toolkit.git", + "directory": "packages/exec" + }, + "scripts": { + "audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", + "test": "echo \"Error: run tests from root\" && exit 1", + "tsc": "tsc" + }, + "bugs": { + "url": "https://github.com/actions/toolkit/issues" + }, + "dependencies": { + "@actions/io": "^1.0.1" + } +} diff --git a/node_modules/@actions/glob/node_modules/@actions/core/LICENSE.md b/node_modules/@actions/glob/node_modules/@actions/core/LICENSE.md new file mode 100644 index 00000000..dbae2edb --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/LICENSE.md @@ -0,0 +1,9 @@ +The MIT License (MIT) + +Copyright 2019 GitHub + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/@actions/glob/node_modules/@actions/core/README.md b/node_modules/@actions/glob/node_modules/@actions/core/README.md new file mode 100644 index 00000000..8a471430 --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/README.md @@ -0,0 +1,335 @@ +# `@actions/core` + +> Core functions for setting results, logging, registering secrets and exporting variables across actions + +## Usage + +### Import the package + +```js +// javascript +const core = require('@actions/core'); + +// typescript +import * as core from '@actions/core'; +``` + +#### Inputs/Outputs + +Action inputs can be read with `getInput` which returns a `string` or `getBooleanInput` which parses a boolean based on the [yaml 1.2 specification](https://yaml.org/spec/1.2/spec.html#id2804923). If `required` set to be false, the input should have a default value in `action.yml`. + +Outputs can be set with `setOutput` which makes them available to be mapped into inputs of other actions to ensure they are decoupled. + +```js +const myInput = core.getInput('inputName', { required: true }); +const myBooleanInput = core.getBooleanInput('booleanInputName', { required: true }); +const myMultilineInput = core.getMultilineInput('multilineInputName', { required: true }); +core.setOutput('outputKey', 'outputVal'); +``` + +#### Exporting variables + +Since each step runs in a separate process, you can use `exportVariable` to add it to this step and future steps environment blocks. + +```js +core.exportVariable('envVar', 'Val'); +``` + +#### Setting a secret + +Setting a secret registers the secret with the runner to ensure it is masked in logs. + +```js +core.setSecret('myPassword'); +``` + +#### PATH Manipulation + +To make a tool's path available in the path for the remainder of the job (without altering the machine or containers state), use `addPath`. The runner will prepend the path given to the jobs PATH. + +```js +core.addPath('/path/to/mytool'); +``` + +#### Exit codes + +You should use this library to set the failing exit code for your action. If status is not set and the script runs to completion, that will lead to a success. + +```js +const core = require('@actions/core'); + +try { + // Do stuff +} +catch (err) { + // setFailed logs the message and sets a failing exit code + core.setFailed(`Action failed with error ${err}`); +} +``` + +Note that `setNeutral` is not yet implemented in actions V2 but equivalent functionality is being planned. + +#### Logging + +Finally, this library provides some utilities for logging. Note that debug logging is hidden from the logs by default. This behavior can be toggled by enabling the [Step Debug Logs](../../docs/action-debugging.md#step-debug-logs). + +```js +const core = require('@actions/core'); + +const myInput = core.getInput('input'); +try { + core.debug('Inside try block'); + + if (!myInput) { + core.warning('myInput was not set'); + } + + if (core.isDebug()) { + // curl -v https://github.com + } else { + // curl https://github.com + } + + // Do stuff + core.info('Output to the actions build log') + + core.notice('This is a message that will also emit an annotation') +} +catch (err) { + core.error(`Error ${err}, action may still succeed though`); +} +``` + +This library can also wrap chunks of output in foldable groups. + +```js +const core = require('@actions/core') + +// Manually wrap output +core.startGroup('Do some function') +doSomeFunction() +core.endGroup() + +// Wrap an asynchronous function call +const result = await core.group('Do something async', async () => { + const response = await doSomeHTTPRequest() + return response +}) +``` + +#### Annotations + +This library has 3 methods that will produce [annotations](https://docs.github.com/en/rest/reference/checks#create-a-check-run). +```js +core.error('This is a bad error, action may still succeed though.') + +core.warning('Something went wrong, but it\'s not bad enough to fail the build.') + +core.notice('Something happened that you might want to know about.') +``` + +These will surface to the UI in the Actions page and on Pull Requests. They look something like this: + +![Annotations Image](../../docs/assets/annotations.png) + +These annotations can also be attached to particular lines and columns of your source files to show exactly where a problem is occuring. + +These options are: +```typescript +export interface AnnotationProperties { + /** + * A title for the annotation. + */ + title?: string + + /** + * The name of the file for which the annotation should be created. + */ + file?: string + + /** + * The start line for the annotation. + */ + startLine?: number + + /** + * The end line for the annotation. Defaults to `startLine` when `startLine` is provided. + */ + endLine?: number + + /** + * The start column for the annotation. Cannot be sent when `startLine` and `endLine` are different values. + */ + startColumn?: number + + /** + * The end column for the annotation. Cannot be sent when `startLine` and `endLine` are different values. + * Defaults to `startColumn` when `startColumn` is provided. + */ + endColumn?: number +} +``` + +#### Styling output + +Colored output is supported in the Action logs via standard [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code). 3/4 bit, 8 bit and 24 bit colors are all supported. + +Foreground colors: + +```js +// 3/4 bit +core.info('\u001b[35mThis foreground will be magenta') + +// 8 bit +core.info('\u001b[38;5;6mThis foreground will be cyan') + +// 24 bit +core.info('\u001b[38;2;255;0;0mThis foreground will be bright red') +``` + +Background colors: + +```js +// 3/4 bit +core.info('\u001b[43mThis background will be yellow'); + +// 8 bit +core.info('\u001b[48;5;6mThis background will be cyan') + +// 24 bit +core.info('\u001b[48;2;255;0;0mThis background will be bright red') +``` + +Special styles: + +```js +core.info('\u001b[1mBold text') +core.info('\u001b[3mItalic text') +core.info('\u001b[4mUnderlined text') +``` + +ANSI escape codes can be combined with one another: + +```js +core.info('\u001b[31;46mRed foreground with a cyan background and \u001b[1mbold text at the end'); +``` + +> Note: Escape codes reset at the start of each line + +```js +core.info('\u001b[35mThis foreground will be magenta') +core.info('This foreground will reset to the default') +``` + +Manually typing escape codes can be a little difficult, but you can use third party modules such as [ansi-styles](https://github.com/chalk/ansi-styles). + +```js +const style = require('ansi-styles'); +core.info(style.color.ansi16m.hex('#abcdef') + 'Hello world!') +``` + +#### Action state + +You can use this library to save state and get state for sharing information between a given wrapper action: + +**action.yml**: + +```yaml +name: 'Wrapper action sample' +inputs: + name: + default: 'GitHub' +runs: + using: 'node12' + main: 'main.js' + post: 'cleanup.js' +``` + +In action's `main.js`: + +```js +const core = require('@actions/core'); + +core.saveState("pidToKill", 12345); +``` + +In action's `cleanup.js`: + +```js +const core = require('@actions/core'); + +var pid = core.getState("pidToKill"); + +process.kill(pid); +``` + +#### OIDC Token + +You can use these methods to interact with the GitHub OIDC provider and get a JWT ID token which would help to get access token from third party cloud providers. + +**Method Name**: getIDToken() + +**Inputs** + +audience : optional + +**Outputs** + +A [JWT](https://jwt.io/) ID Token + +In action's `main.ts`: +```js +const core = require('@actions/core'); +async function getIDTokenAction(): Promise { + + const audience = core.getInput('audience', {required: false}) + + const id_token1 = await core.getIDToken() // ID Token with default audience + const id_token2 = await core.getIDToken(audience) // ID token with custom audience + + // this id_token can be used to get access token from third party cloud providers +} +getIDTokenAction() +``` + +In action's `actions.yml`: + +```yaml +name: 'GetIDToken' +description: 'Get ID token from Github OIDC provider' +inputs: + audience: + description: 'Audience for which the ID token is intended for' + required: false +outputs: + id_token1: + description: 'ID token obtained from OIDC provider' + id_token2: + description: 'ID token obtained from OIDC provider' +runs: + using: 'node12' + main: 'dist/index.js' +``` + +#### Filesystem path helpers + +You can use these methods to manipulate file paths across operating systems. + +The `toPosixPath` function converts input paths to Posix-style (Linux) paths. +The `toWin32Path` function converts input paths to Windows-style paths. These +functions work independently of the underlying runner operating system. + +```js +toPosixPath('\\foo\\bar') // => /foo/bar +toWin32Path('/foo/bar') // => \foo\bar +``` + +The `toPlatformPath` function converts input paths to the expected value on the runner's operating system. + +```js +// On a Windows runner. +toPlatformPath('/foo/bar') // => \foo\bar + +// On a Linux runner. +toPlatformPath('\\foo\\bar') // => /foo/bar +``` diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/command.d.ts b/node_modules/@actions/glob/node_modules/@actions/core/lib/command.d.ts new file mode 100644 index 00000000..53f8f4b8 --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/command.d.ts @@ -0,0 +1,15 @@ +export interface CommandProperties { + [key: string]: any; +} +/** + * Commands + * + * Command Format: + * ::name key=value,key=value::message + * + * Examples: + * ::warning::This is the message + * ::set-env name=MY_VAR::some value + */ +export declare function issueCommand(command: string, properties: CommandProperties, message: any): void; +export declare function issue(name: string, message?: string): void; diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/command.js b/node_modules/@actions/glob/node_modules/@actions/core/lib/command.js new file mode 100644 index 00000000..0b28c66b --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/command.js @@ -0,0 +1,92 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.issue = exports.issueCommand = void 0; +const os = __importStar(require("os")); +const utils_1 = require("./utils"); +/** + * Commands + * + * Command Format: + * ::name key=value,key=value::message + * + * Examples: + * ::warning::This is the message + * ::set-env name=MY_VAR::some value + */ +function issueCommand(command, properties, message) { + const cmd = new Command(command, properties, message); + process.stdout.write(cmd.toString() + os.EOL); +} +exports.issueCommand = issueCommand; +function issue(name, message = '') { + issueCommand(name, {}, message); +} +exports.issue = issue; +const CMD_STRING = '::'; +class Command { + constructor(command, properties, message) { + if (!command) { + command = 'missing.command'; + } + this.command = command; + this.properties = properties; + this.message = message; + } + toString() { + let cmdStr = CMD_STRING + this.command; + if (this.properties && Object.keys(this.properties).length > 0) { + cmdStr += ' '; + let first = true; + for (const key in this.properties) { + if (this.properties.hasOwnProperty(key)) { + const val = this.properties[key]; + if (val) { + if (first) { + first = false; + } + else { + cmdStr += ','; + } + cmdStr += `${key}=${escapeProperty(val)}`; + } + } + } + } + cmdStr += `${CMD_STRING}${escapeData(this.message)}`; + return cmdStr; + } +} +function escapeData(s) { + return utils_1.toCommandValue(s) + .replace(/%/g, '%25') + .replace(/\r/g, '%0D') + .replace(/\n/g, '%0A'); +} +function escapeProperty(s) { + return utils_1.toCommandValue(s) + .replace(/%/g, '%25') + .replace(/\r/g, '%0D') + .replace(/\n/g, '%0A') + .replace(/:/g, '%3A') + .replace(/,/g, '%2C'); +} +//# sourceMappingURL=command.js.map \ No newline at end of file diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/command.js.map b/node_modules/@actions/glob/node_modules/@actions/core/lib/command.js.map new file mode 100644 index 00000000..51c7c637 --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/command.js.map @@ -0,0 +1 @@ +{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAwB;AACxB,mCAAsC;AAWtC;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,OAAe,EACf,UAA6B,EAC7B,OAAY;IAEZ,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;IACrD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AAC/C,CAAC;AAPD,oCAOC;AAED,SAAgB,KAAK,CAAC,IAAY,EAAE,OAAO,GAAG,EAAE;IAC9C,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACjC,CAAC;AAFD,sBAEC;AAED,MAAM,UAAU,GAAG,IAAI,CAAA;AAEvB,MAAM,OAAO;IAKX,YAAY,OAAe,EAAE,UAA6B,EAAE,OAAe;QACzE,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,iBAAiB,CAAA;SAC5B;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,QAAQ;QACN,IAAI,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC,OAAO,CAAA;QAEtC,IAAI,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YAC9D,MAAM,IAAI,GAAG,CAAA;YACb,IAAI,KAAK,GAAG,IAAI,CAAA;YAChB,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE;gBACjC,IAAI,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;oBACvC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;oBAChC,IAAI,GAAG,EAAE;wBACP,IAAI,KAAK,EAAE;4BACT,KAAK,GAAG,KAAK,CAAA;yBACd;6BAAM;4BACL,MAAM,IAAI,GAAG,CAAA;yBACd;wBAED,MAAM,IAAI,GAAG,GAAG,IAAI,cAAc,CAAC,GAAG,CAAC,EAAE,CAAA;qBAC1C;iBACF;aACF;SACF;QAED,MAAM,IAAI,GAAG,UAAU,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAA;QACpD,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAED,SAAS,UAAU,CAAC,CAAM;IACxB,OAAO,sBAAc,CAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AAC1B,CAAC;AAED,SAAS,cAAc,CAAC,CAAM;IAC5B,OAAO,sBAAc,CAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;AACzB,CAAC"} \ No newline at end of file diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/core.d.ts b/node_modules/@actions/glob/node_modules/@actions/core/lib/core.d.ts new file mode 100644 index 00000000..ceecdd32 --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/core.d.ts @@ -0,0 +1,198 @@ +/** + * Interface for getInput options + */ +export interface InputOptions { + /** Optional. Whether the input is required. If required and not present, will throw. Defaults to false */ + required?: boolean; + /** Optional. Whether leading/trailing whitespace will be trimmed for the input. Defaults to true */ + trimWhitespace?: boolean; +} +/** + * The code to exit an action + */ +export declare enum ExitCode { + /** + * A code indicating that the action was successful + */ + Success = 0, + /** + * A code indicating that the action was a failure + */ + Failure = 1 +} +/** + * Optional properties that can be sent with annotation commands (notice, error, and warning) + * See: https://docs.github.com/en/rest/reference/checks#create-a-check-run for more information about annotations. + */ +export interface AnnotationProperties { + /** + * A title for the annotation. + */ + title?: string; + /** + * The path of the file for which the annotation should be created. + */ + file?: string; + /** + * The start line for the annotation. + */ + startLine?: number; + /** + * The end line for the annotation. Defaults to `startLine` when `startLine` is provided. + */ + endLine?: number; + /** + * The start column for the annotation. Cannot be sent when `startLine` and `endLine` are different values. + */ + startColumn?: number; + /** + * The end column for the annotation. Cannot be sent when `startLine` and `endLine` are different values. + * Defaults to `startColumn` when `startColumn` is provided. + */ + endColumn?: number; +} +/** + * Sets env variable for this action and future actions in the job + * @param name the name of the variable to set + * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify + */ +export declare function exportVariable(name: string, val: any): void; +/** + * Registers a secret which will get masked from logs + * @param secret value of the secret + */ +export declare function setSecret(secret: string): void; +/** + * Prepends inputPath to the PATH (for this action and future actions) + * @param inputPath + */ +export declare function addPath(inputPath: string): void; +/** + * Gets the value of an input. + * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed. + * Returns an empty string if the value is not defined. + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns string + */ +export declare function getInput(name: string, options?: InputOptions): string; +/** + * Gets the values of an multiline input. Each value is also trimmed. + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns string[] + * + */ +export declare function getMultilineInput(name: string, options?: InputOptions): string[]; +/** + * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification. + * Support boolean input list: `true | True | TRUE | false | False | FALSE` . + * The return value is also in boolean type. + * ref: https://yaml.org/spec/1.2/spec.html#id2804923 + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns boolean + */ +export declare function getBooleanInput(name: string, options?: InputOptions): boolean; +/** + * Sets the value of an output. + * + * @param name name of the output to set + * @param value value to store. Non-string values will be converted to a string via JSON.stringify + */ +export declare function setOutput(name: string, value: any): void; +/** + * Enables or disables the echoing of commands into stdout for the rest of the step. + * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set. + * + */ +export declare function setCommandEcho(enabled: boolean): void; +/** + * Sets the action status to failed. + * When the action exits it will be with an exit code of 1 + * @param message add error issue message + */ +export declare function setFailed(message: string | Error): void; +/** + * Gets whether Actions Step Debug is on or not + */ +export declare function isDebug(): boolean; +/** + * Writes debug message to user log + * @param message debug message + */ +export declare function debug(message: string): void; +/** + * Adds an error issue + * @param message error issue message. Errors will be converted to string via toString() + * @param properties optional properties to add to the annotation. + */ +export declare function error(message: string | Error, properties?: AnnotationProperties): void; +/** + * Adds a warning issue + * @param message warning issue message. Errors will be converted to string via toString() + * @param properties optional properties to add to the annotation. + */ +export declare function warning(message: string | Error, properties?: AnnotationProperties): void; +/** + * Adds a notice issue + * @param message notice issue message. Errors will be converted to string via toString() + * @param properties optional properties to add to the annotation. + */ +export declare function notice(message: string | Error, properties?: AnnotationProperties): void; +/** + * Writes info to log with console.log. + * @param message info message + */ +export declare function info(message: string): void; +/** + * Begin an output group. + * + * Output until the next `groupEnd` will be foldable in this group + * + * @param name The name of the output group + */ +export declare function startGroup(name: string): void; +/** + * End an output group. + */ +export declare function endGroup(): void; +/** + * Wrap an asynchronous function call in a group. + * + * Returns the same type as the function itself. + * + * @param name The name of the group + * @param fn The function to wrap in the group + */ +export declare function group(name: string, fn: () => Promise): Promise; +/** + * Saves state for current action, the state can only be retrieved by this action's post job execution. + * + * @param name name of the state to store + * @param value value to store. Non-string values will be converted to a string via JSON.stringify + */ +export declare function saveState(name: string, value: any): void; +/** + * Gets the value of an state set by this action's main execution. + * + * @param name name of the state to get + * @returns string + */ +export declare function getState(name: string): string; +export declare function getIDToken(aud?: string): Promise; +/** + * Summary exports + */ +export { summary } from './summary'; +/** + * @deprecated use core.summary + */ +export { markdownSummary } from './summary'; +/** + * Path exports + */ +export { toPosixPath, toWin32Path, toPlatformPath } from './path-utils'; diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/core.js b/node_modules/@actions/glob/node_modules/@actions/core/lib/core.js new file mode 100644 index 00000000..48df6ad0 --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/core.js @@ -0,0 +1,336 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; +const command_1 = require("./command"); +const file_command_1 = require("./file-command"); +const utils_1 = require("./utils"); +const os = __importStar(require("os")); +const path = __importStar(require("path")); +const oidc_utils_1 = require("./oidc-utils"); +/** + * The code to exit an action + */ +var ExitCode; +(function (ExitCode) { + /** + * A code indicating that the action was successful + */ + ExitCode[ExitCode["Success"] = 0] = "Success"; + /** + * A code indicating that the action was a failure + */ + ExitCode[ExitCode["Failure"] = 1] = "Failure"; +})(ExitCode = exports.ExitCode || (exports.ExitCode = {})); +//----------------------------------------------------------------------- +// Variables +//----------------------------------------------------------------------- +/** + * Sets env variable for this action and future actions in the job + * @param name the name of the variable to set + * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function exportVariable(name, val) { + const convertedVal = utils_1.toCommandValue(val); + process.env[name] = convertedVal; + const filePath = process.env['GITHUB_ENV'] || ''; + if (filePath) { + return file_command_1.issueFileCommand('ENV', file_command_1.prepareKeyValueMessage(name, val)); + } + command_1.issueCommand('set-env', { name }, convertedVal); +} +exports.exportVariable = exportVariable; +/** + * Registers a secret which will get masked from logs + * @param secret value of the secret + */ +function setSecret(secret) { + command_1.issueCommand('add-mask', {}, secret); +} +exports.setSecret = setSecret; +/** + * Prepends inputPath to the PATH (for this action and future actions) + * @param inputPath + */ +function addPath(inputPath) { + const filePath = process.env['GITHUB_PATH'] || ''; + if (filePath) { + file_command_1.issueFileCommand('PATH', inputPath); + } + else { + command_1.issueCommand('add-path', {}, inputPath); + } + process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; +} +exports.addPath = addPath; +/** + * Gets the value of an input. + * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed. + * Returns an empty string if the value is not defined. + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns string + */ +function getInput(name, options) { + const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || ''; + if (options && options.required && !val) { + throw new Error(`Input required and not supplied: ${name}`); + } + if (options && options.trimWhitespace === false) { + return val; + } + return val.trim(); +} +exports.getInput = getInput; +/** + * Gets the values of an multiline input. Each value is also trimmed. + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns string[] + * + */ +function getMultilineInput(name, options) { + const inputs = getInput(name, options) + .split('\n') + .filter(x => x !== ''); + if (options && options.trimWhitespace === false) { + return inputs; + } + return inputs.map(input => input.trim()); +} +exports.getMultilineInput = getMultilineInput; +/** + * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification. + * Support boolean input list: `true | True | TRUE | false | False | FALSE` . + * The return value is also in boolean type. + * ref: https://yaml.org/spec/1.2/spec.html#id2804923 + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns boolean + */ +function getBooleanInput(name, options) { + const trueValue = ['true', 'True', 'TRUE']; + const falseValue = ['false', 'False', 'FALSE']; + const val = getInput(name, options); + if (trueValue.includes(val)) + return true; + if (falseValue.includes(val)) + return false; + throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` + + `Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); +} +exports.getBooleanInput = getBooleanInput; +/** + * Sets the value of an output. + * + * @param name name of the output to set + * @param value value to store. Non-string values will be converted to a string via JSON.stringify + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function setOutput(name, value) { + const filePath = process.env['GITHUB_OUTPUT'] || ''; + if (filePath) { + return file_command_1.issueFileCommand('OUTPUT', file_command_1.prepareKeyValueMessage(name, value)); + } + process.stdout.write(os.EOL); + command_1.issueCommand('set-output', { name }, utils_1.toCommandValue(value)); +} +exports.setOutput = setOutput; +/** + * Enables or disables the echoing of commands into stdout for the rest of the step. + * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set. + * + */ +function setCommandEcho(enabled) { + command_1.issue('echo', enabled ? 'on' : 'off'); +} +exports.setCommandEcho = setCommandEcho; +//----------------------------------------------------------------------- +// Results +//----------------------------------------------------------------------- +/** + * Sets the action status to failed. + * When the action exits it will be with an exit code of 1 + * @param message add error issue message + */ +function setFailed(message) { + process.exitCode = ExitCode.Failure; + error(message); +} +exports.setFailed = setFailed; +//----------------------------------------------------------------------- +// Logging Commands +//----------------------------------------------------------------------- +/** + * Gets whether Actions Step Debug is on or not + */ +function isDebug() { + return process.env['RUNNER_DEBUG'] === '1'; +} +exports.isDebug = isDebug; +/** + * Writes debug message to user log + * @param message debug message + */ +function debug(message) { + command_1.issueCommand('debug', {}, message); +} +exports.debug = debug; +/** + * Adds an error issue + * @param message error issue message. Errors will be converted to string via toString() + * @param properties optional properties to add to the annotation. + */ +function error(message, properties = {}) { + command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); +} +exports.error = error; +/** + * Adds a warning issue + * @param message warning issue message. Errors will be converted to string via toString() + * @param properties optional properties to add to the annotation. + */ +function warning(message, properties = {}) { + command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); +} +exports.warning = warning; +/** + * Adds a notice issue + * @param message notice issue message. Errors will be converted to string via toString() + * @param properties optional properties to add to the annotation. + */ +function notice(message, properties = {}) { + command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); +} +exports.notice = notice; +/** + * Writes info to log with console.log. + * @param message info message + */ +function info(message) { + process.stdout.write(message + os.EOL); +} +exports.info = info; +/** + * Begin an output group. + * + * Output until the next `groupEnd` will be foldable in this group + * + * @param name The name of the output group + */ +function startGroup(name) { + command_1.issue('group', name); +} +exports.startGroup = startGroup; +/** + * End an output group. + */ +function endGroup() { + command_1.issue('endgroup'); +} +exports.endGroup = endGroup; +/** + * Wrap an asynchronous function call in a group. + * + * Returns the same type as the function itself. + * + * @param name The name of the group + * @param fn The function to wrap in the group + */ +function group(name, fn) { + return __awaiter(this, void 0, void 0, function* () { + startGroup(name); + let result; + try { + result = yield fn(); + } + finally { + endGroup(); + } + return result; + }); +} +exports.group = group; +//----------------------------------------------------------------------- +// Wrapper action state +//----------------------------------------------------------------------- +/** + * Saves state for current action, the state can only be retrieved by this action's post job execution. + * + * @param name name of the state to store + * @param value value to store. Non-string values will be converted to a string via JSON.stringify + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function saveState(name, value) { + const filePath = process.env['GITHUB_STATE'] || ''; + if (filePath) { + return file_command_1.issueFileCommand('STATE', file_command_1.prepareKeyValueMessage(name, value)); + } + command_1.issueCommand('save-state', { name }, utils_1.toCommandValue(value)); +} +exports.saveState = saveState; +/** + * Gets the value of an state set by this action's main execution. + * + * @param name name of the state to get + * @returns string + */ +function getState(name) { + return process.env[`STATE_${name}`] || ''; +} +exports.getState = getState; +function getIDToken(aud) { + return __awaiter(this, void 0, void 0, function* () { + return yield oidc_utils_1.OidcClient.getIDToken(aud); + }); +} +exports.getIDToken = getIDToken; +/** + * Summary exports + */ +var summary_1 = require("./summary"); +Object.defineProperty(exports, "summary", { enumerable: true, get: function () { return summary_1.summary; } }); +/** + * @deprecated use core.summary + */ +var summary_2 = require("./summary"); +Object.defineProperty(exports, "markdownSummary", { enumerable: true, get: function () { return summary_2.markdownSummary; } }); +/** + * Path exports + */ +var path_utils_1 = require("./path-utils"); +Object.defineProperty(exports, "toPosixPath", { enumerable: true, get: function () { return path_utils_1.toPosixPath; } }); +Object.defineProperty(exports, "toWin32Path", { enumerable: true, get: function () { return path_utils_1.toWin32Path; } }); +Object.defineProperty(exports, "toPlatformPath", { enumerable: true, get: function () { return path_utils_1.toPlatformPath; } }); +//# sourceMappingURL=core.js.map \ No newline at end of file diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/core.js.map b/node_modules/@actions/glob/node_modules/@actions/core/lib/core.js.map new file mode 100644 index 00000000..99f7fd85 --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/core.js.map @@ -0,0 +1 @@ +{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA6C;AAC7C,iDAAuE;AACvE,mCAA2D;AAE3D,uCAAwB;AACxB,2CAA4B;AAE5B,6CAAuC;AAavC;;GAEG;AACH,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB;;OAEG;IACH,6CAAW,CAAA;IAEX;;OAEG;IACH,6CAAW,CAAA;AACb,CAAC,EAVW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAUnB;AAuCD,yEAAyE;AACzE,YAAY;AACZ,yEAAyE;AAEzE;;;;GAIG;AACH,8DAA8D;AAC9D,SAAgB,cAAc,CAAC,IAAY,EAAE,GAAQ;IACnD,MAAM,YAAY,GAAG,sBAAc,CAAC,GAAG,CAAC,CAAA;IACxC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,YAAY,CAAA;IAEhC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAA;IAChD,IAAI,QAAQ,EAAE;QACZ,OAAO,+BAAgB,CAAC,KAAK,EAAE,qCAAsB,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAA;KAClE;IAED,sBAAY,CAAC,SAAS,EAAE,EAAC,IAAI,EAAC,EAAE,YAAY,CAAC,CAAA;AAC/C,CAAC;AAVD,wCAUC;AAED;;;GAGG;AACH,SAAgB,SAAS,CAAC,MAAc;IACtC,sBAAY,CAAC,UAAU,EAAE,EAAE,EAAE,MAAM,CAAC,CAAA;AACtC,CAAC;AAFD,8BAEC;AAED;;;GAGG;AACH,SAAgB,OAAO,CAAC,SAAiB;IACvC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,EAAE,CAAA;IACjD,IAAI,QAAQ,EAAE;QACZ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C,UAAU,CAAC,GAAG,CAAC,CAAA;IACzC,CAAC;CAAA;AAFD,gCAEC;AAED;;GAEG;AACH,qCAAiC;AAAzB,kGAAA,OAAO,OAAA;AAEf;;GAEG;AACH,qCAAyC;AAAjC,0GAAA,eAAe,OAAA;AAEvB;;GAEG;AACH,2CAAqE;AAA7D,yGAAA,WAAW,OAAA;AAAE,yGAAA,WAAW,OAAA;AAAE,4GAAA,cAAc,OAAA"} \ No newline at end of file diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/file-command.d.ts b/node_modules/@actions/glob/node_modules/@actions/core/lib/file-command.d.ts new file mode 100644 index 00000000..2d1f2f42 --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/file-command.d.ts @@ -0,0 +1,2 @@ +export declare function issueFileCommand(command: string, message: any): void; +export declare function prepareKeyValueMessage(key: string, value: any): string; diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/file-command.js b/node_modules/@actions/glob/node_modules/@actions/core/lib/file-command.js new file mode 100644 index 00000000..2d0d738f --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/file-command.js @@ -0,0 +1,58 @@ +"use strict"; +// For internal use, subject to change. +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.prepareKeyValueMessage = exports.issueFileCommand = void 0; +// We use any as a valid input type +/* eslint-disable @typescript-eslint/no-explicit-any */ +const fs = __importStar(require("fs")); +const os = __importStar(require("os")); +const uuid_1 = require("uuid"); +const utils_1 = require("./utils"); +function issueFileCommand(command, message) { + const filePath = process.env[`GITHUB_${command}`]; + if (!filePath) { + throw new Error(`Unable to find environment variable for file command ${command}`); + } + if (!fs.existsSync(filePath)) { + throw new Error(`Missing file at path: ${filePath}`); + } + fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, { + encoding: 'utf8' + }); +} +exports.issueFileCommand = issueFileCommand; +function prepareKeyValueMessage(key, value) { + const delimiter = `ghadelimiter_${uuid_1.v4()}`; + const convertedValue = utils_1.toCommandValue(value); + // These should realistically never happen, but just in case someone finds a + // way to exploit uuid generation let's not allow keys or values that contain + // the delimiter. + if (key.includes(delimiter)) { + throw new Error(`Unexpected input: name should not contain the delimiter "${delimiter}"`); + } + if (convertedValue.includes(delimiter)) { + throw new Error(`Unexpected input: value should not contain the delimiter "${delimiter}"`); + } + return `${key}<<${delimiter}${os.EOL}${convertedValue}${os.EOL}${delimiter}`; +} +exports.prepareKeyValueMessage = prepareKeyValueMessage; +//# sourceMappingURL=file-command.js.map \ No newline at end of file diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/file-command.js.map b/node_modules/@actions/glob/node_modules/@actions/core/lib/file-command.js.map new file mode 100644 index 00000000..b1a9d54d --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/file-command.js.map @@ -0,0 +1 @@ +{"version":3,"file":"file-command.js","sourceRoot":"","sources":["../src/file-command.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;;;;;;;;;;;;;;;;;;;;AAEvC,mCAAmC;AACnC,uDAAuD;AAEvD,uCAAwB;AACxB,uCAAwB;AACxB,+BAAiC;AACjC,mCAAsC;AAEtC,SAAgB,gBAAgB,CAAC,OAAe,EAAE,OAAY;IAC5D,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,OAAO,EAAE,CAAC,CAAA;IACjD,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CACb,wDAAwD,OAAO,EAAE,CAClE,CAAA;KACF;IACD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QAC5B,MAAM,IAAI,KAAK,CAAC,yBAAyB,QAAQ,EAAE,CAAC,CAAA;KACrD;IAED,EAAE,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,sBAAc,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;QACjE,QAAQ,EAAE,MAAM;KACjB,CAAC,CAAA;AACJ,CAAC;AAdD,4CAcC;AAED,SAAgB,sBAAsB,CAAC,GAAW,EAAE,KAAU;IAC5D,MAAM,SAAS,GAAG,gBAAgB,SAAM,EAAE,EAAE,CAAA;IAC5C,MAAM,cAAc,GAAG,sBAAc,CAAC,KAAK,CAAC,CAAA;IAE5C,4EAA4E;IAC5E,6EAA6E;IAC7E,iBAAiB;IACjB,IAAI,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QAC3B,MAAM,IAAI,KAAK,CACb,4DAA4D,SAAS,GAAG,CACzE,CAAA;KACF;IAED,IAAI,cAAc,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;QACtC,MAAM,IAAI,KAAK,CACb,6DAA6D,SAAS,GAAG,CAC1E,CAAA;KACF;IAED,OAAO,GAAG,GAAG,KAAK,SAAS,GAAG,EAAE,CAAC,GAAG,GAAG,cAAc,GAAG,EAAE,CAAC,GAAG,GAAG,SAAS,EAAE,CAAA;AAC9E,CAAC;AApBD,wDAoBC"} \ No newline at end of file diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/oidc-utils.d.ts b/node_modules/@actions/glob/node_modules/@actions/core/lib/oidc-utils.d.ts new file mode 100644 index 00000000..657c7f4a --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/oidc-utils.d.ts @@ -0,0 +1,7 @@ +export declare class OidcClient { + private static createHttpClient; + private static getRequestToken; + private static getIDTokenUrl; + private static getCall; + static getIDToken(audience?: string): Promise; +} diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/oidc-utils.js b/node_modules/@actions/glob/node_modules/@actions/core/lib/oidc-utils.js new file mode 100644 index 00000000..092e93d7 --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/oidc-utils.js @@ -0,0 +1,77 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OidcClient = void 0; +const http_client_1 = require("@actions/http-client"); +const auth_1 = require("@actions/http-client/lib/auth"); +const core_1 = require("./core"); +class OidcClient { + static createHttpClient(allowRetry = true, maxRetry = 10) { + const requestOptions = { + allowRetries: allowRetry, + maxRetries: maxRetry + }; + return new http_client_1.HttpClient('actions/oidc-client', [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions); + } + static getRequestToken() { + const token = process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN']; + if (!token) { + throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable'); + } + return token; + } + static getIDTokenUrl() { + const runtimeUrl = process.env['ACTIONS_ID_TOKEN_REQUEST_URL']; + if (!runtimeUrl) { + throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable'); + } + return runtimeUrl; + } + static getCall(id_token_url) { + var _a; + return __awaiter(this, void 0, void 0, function* () { + const httpclient = OidcClient.createHttpClient(); + const res = yield httpclient + .getJson(id_token_url) + .catch(error => { + throw new Error(`Failed to get ID Token. \n + Error Code : ${error.statusCode}\n + Error Message: ${error.message}`); + }); + const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; + if (!id_token) { + throw new Error('Response json body do not have ID Token field'); + } + return id_token; + }); + } + static getIDToken(audience) { + return __awaiter(this, void 0, void 0, function* () { + try { + // New ID Token is requested from action service + let id_token_url = OidcClient.getIDTokenUrl(); + if (audience) { + const encodedAudience = encodeURIComponent(audience); + id_token_url = `${id_token_url}&audience=${encodedAudience}`; + } + core_1.debug(`ID token url is ${id_token_url}`); + const id_token = yield OidcClient.getCall(id_token_url); + core_1.setSecret(id_token); + return id_token; + } + catch (error) { + throw new Error(`Error message: ${error.message}`); + } + }); + } +} +exports.OidcClient = OidcClient; +//# sourceMappingURL=oidc-utils.js.map \ No newline at end of file diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/oidc-utils.js.map b/node_modules/@actions/glob/node_modules/@actions/core/lib/oidc-utils.js.map new file mode 100644 index 00000000..22506b80 --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/oidc-utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"oidc-utils.js","sourceRoot":"","sources":["../src/oidc-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,sDAA+C;AAC/C,wDAAqE;AACrE,iCAAuC;AAKvC,MAAa,UAAU;IACb,MAAM,CAAC,gBAAgB,CAC7B,UAAU,GAAG,IAAI,EACjB,QAAQ,GAAG,EAAE;QAEb,MAAM,cAAc,GAAmB;YACrC,YAAY,EAAE,UAAU;YACxB,UAAU,EAAE,QAAQ;SACrB,CAAA;QAED,OAAO,IAAI,wBAAU,CACnB,qBAAqB,EACrB,CAAC,IAAI,8BAAuB,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,CAAC,EAC3D,cAAc,CACf,CAAA;IACH,CAAC;IAEO,MAAM,CAAC,eAAe;QAC5B,MAAM,KAAK,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GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;gBACvD,gBAAS,CAAC,QAAQ,CAAC,CAAA;gBACnB,OAAO,QAAQ,CAAA;aAChB;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,IAAI,KAAK,CAAC,kBAAkB,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;aACnD;QACH,CAAC;KAAA;CACF;AAzED,gCAyEC"} \ No newline at end of file diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/path-utils.d.ts b/node_modules/@actions/glob/node_modules/@actions/core/lib/path-utils.d.ts new file mode 100644 index 00000000..1fee9f39 --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/path-utils.d.ts @@ -0,0 +1,25 @@ +/** + * toPosixPath converts the given path to the posix form. On Windows, \\ will be + * replaced with /. + * + * @param pth. Path to transform. + * @return string Posix path. + */ +export declare function toPosixPath(pth: string): string; +/** + * toWin32Path converts the given path to the win32 form. On Linux, / will be + * replaced with \\. + * + * @param pth. Path to transform. + * @return string Win32 path. + */ +export declare function toWin32Path(pth: string): string; +/** + * toPlatformPath converts the given path to a platform-specific path. It does + * this by replacing instances of / and \ with the platform-specific path + * separator. + * + * @param pth The path to platformize. + * @return string The platform-specific path. + */ +export declare function toPlatformPath(pth: string): string; diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/path-utils.js b/node_modules/@actions/glob/node_modules/@actions/core/lib/path-utils.js new file mode 100644 index 00000000..7251c829 --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/path-utils.js @@ -0,0 +1,58 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0; +const path = __importStar(require("path")); +/** + * toPosixPath converts the given path to the posix form. On Windows, \\ will be + * replaced with /. + * + * @param pth. Path to transform. + * @return string Posix path. + */ +function toPosixPath(pth) { + return pth.replace(/[\\]/g, '/'); +} +exports.toPosixPath = toPosixPath; +/** + * toWin32Path converts the given path to the win32 form. On Linux, / will be + * replaced with \\. + * + * @param pth. Path to transform. + * @return string Win32 path. + */ +function toWin32Path(pth) { + return pth.replace(/[/]/g, '\\'); +} +exports.toWin32Path = toWin32Path; +/** + * toPlatformPath converts the given path to a platform-specific path. It does + * this by replacing instances of / and \ with the platform-specific path + * separator. + * + * @param pth The path to platformize. + * @return string The platform-specific path. + */ +function toPlatformPath(pth) { + return pth.replace(/[/\\]/g, path.sep); +} +exports.toPlatformPath = toPlatformPath; +//# sourceMappingURL=path-utils.js.map \ No newline at end of file diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/path-utils.js.map b/node_modules/@actions/glob/node_modules/@actions/core/lib/path-utils.js.map new file mode 100644 index 00000000..7ab1cace --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/path-utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"path-utils.js","sourceRoot":"","sources":["../src/path-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4B;AAE5B;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,OAAO,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA;AAClC,CAAC;AAFD,kCAEC;AAED;;;;;;GAMG;AACH,SAAgB,WAAW,CAAC,GAAW;IACrC,OAAO,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;AAClC,CAAC;AAFD,kCAEC;AAED;;;;;;;GAOG;AACH,SAAgB,cAAc,CAAC,GAAW;IACxC,OAAO,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAA;AACxC,CAAC;AAFD,wCAEC"} \ No newline at end of file diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/summary.d.ts b/node_modules/@actions/glob/node_modules/@actions/core/lib/summary.d.ts new file mode 100644 index 00000000..bb792555 --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/summary.d.ts @@ -0,0 +1,202 @@ +export declare const SUMMARY_ENV_VAR = "GITHUB_STEP_SUMMARY"; +export declare const SUMMARY_DOCS_URL = "https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary"; +export declare type SummaryTableRow = (SummaryTableCell | string)[]; +export interface SummaryTableCell { + /** + * Cell content + */ + data: string; + /** + * Render cell as header + * (optional) default: false + */ + header?: boolean; + /** + * Number of columns the cell extends + * (optional) default: '1' + */ + colspan?: string; + /** + * Number of rows the cell extends + * (optional) default: '1' + */ + rowspan?: string; +} +export interface SummaryImageOptions { + /** + * The width of the image in pixels. Must be an integer without a unit. + * (optional) + */ + width?: string; + /** + * The height of the image in pixels. Must be an integer without a unit. + * (optional) + */ + height?: string; +} +export interface SummaryWriteOptions { + /** + * Replace all existing content in summary file with buffer contents + * (optional) default: false + */ + overwrite?: boolean; +} +declare class Summary { + private _buffer; + private _filePath?; + constructor(); + /** + * Finds the summary file path from the environment, rejects if env var is not found or file does not exist + * Also checks r/w permissions. + * + * @returns step summary file path + */ + private filePath; + /** + * Wraps content in an HTML tag, adding any HTML attributes + * + * @param {string} tag HTML tag to wrap + * @param {string | null} content content within the tag + * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add + * + * @returns {string} content wrapped in HTML element + */ + private wrap; + /** + * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default. + * + * @param {SummaryWriteOptions} [options] (optional) options for write operation + * + * @returns {Promise} summary instance + */ + write(options?: SummaryWriteOptions): Promise; + /** + * Clears the summary buffer and wipes the summary file + * + * @returns {Summary} summary instance + */ + clear(): Promise; + /** + * Returns the current summary buffer as a string + * + * @returns {string} string of summary buffer + */ + stringify(): string; + /** + * If the summary buffer is empty + * + * @returns {boolen} true if the buffer is empty + */ + isEmptyBuffer(): boolean; + /** + * Resets the summary buffer without writing to summary file + * + * @returns {Summary} summary instance + */ + emptyBuffer(): Summary; + /** + * Adds raw text to the summary buffer + * + * @param {string} text content to add + * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false) + * + * @returns {Summary} summary instance + */ + addRaw(text: string, addEOL?: boolean): Summary; + /** + * Adds the operating system-specific end-of-line marker to the buffer + * + * @returns {Summary} summary instance + */ + addEOL(): Summary; + /** + * Adds an HTML codeblock to the summary buffer + * + * @param {string} code content to render within fenced code block + * @param {string} lang (optional) language to syntax highlight code + * + * @returns {Summary} summary instance + */ + addCodeBlock(code: string, lang?: string): Summary; + /** + * Adds an HTML list to the summary buffer + * + * @param {string[]} items list of items to render + * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false) + * + * @returns {Summary} summary instance + */ + addList(items: string[], ordered?: boolean): Summary; + /** + * Adds an HTML table to the summary buffer + * + * @param {SummaryTableCell[]} rows table rows + * + * @returns {Summary} summary instance + */ + addTable(rows: SummaryTableRow[]): Summary; + /** + * Adds a collapsable HTML details element to the summary buffer + * + * @param {string} label text for the closed state + * @param {string} content collapsable content + * + * @returns {Summary} summary instance + */ + addDetails(label: string, content: string): Summary; + /** + * Adds an HTML image tag to the summary buffer + * + * @param {string} src path to the image you to embed + * @param {string} alt text description of the image + * @param {SummaryImageOptions} options (optional) addition image attributes + * + * @returns {Summary} summary instance + */ + addImage(src: string, alt: string, options?: SummaryImageOptions): Summary; + /** + * Adds an HTML section heading element + * + * @param {string} text heading text + * @param {number | string} [level=1] (optional) the heading level, default: 1 + * + * @returns {Summary} summary instance + */ + addHeading(text: string, level?: number | string): Summary; + /** + * Adds an HTML thematic break (
) to the summary buffer + * + * @returns {Summary} summary instance + */ + addSeparator(): Summary; + /** + * Adds an HTML line break (
) to the summary buffer + * + * @returns {Summary} summary instance + */ + addBreak(): Summary; + /** + * Adds an HTML blockquote to the summary buffer + * + * @param {string} text quote text + * @param {string} cite (optional) citation url + * + * @returns {Summary} summary instance + */ + addQuote(text: string, cite?: string): Summary; + /** + * Adds an HTML anchor tag to the summary buffer + * + * @param {string} text link text/content + * @param {string} href hyperlink + * + * @returns {Summary} summary instance + */ + addLink(text: string, href: string): Summary; +} +/** + * @deprecated use `core.summary` + */ +export declare const markdownSummary: Summary; +export declare const summary: Summary; +export {}; diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/summary.js b/node_modules/@actions/glob/node_modules/@actions/core/lib/summary.js new file mode 100644 index 00000000..04a335b8 --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/summary.js @@ -0,0 +1,283 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0; +const os_1 = require("os"); +const fs_1 = require("fs"); +const { access, appendFile, writeFile } = fs_1.promises; +exports.SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY'; +exports.SUMMARY_DOCS_URL = 'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary'; +class Summary { + constructor() { + this._buffer = ''; + } + /** + * Finds the summary file path from the environment, rejects if env var is not found or file does not exist + * Also checks r/w permissions. + * + * @returns step summary file path + */ + filePath() { + return __awaiter(this, void 0, void 0, function* () { + if (this._filePath) { + return this._filePath; + } + const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR]; + if (!pathFromEnv) { + throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`); + } + try { + yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK); + } + catch (_a) { + throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`); + } + this._filePath = pathFromEnv; + return this._filePath; + }); + } + /** + * Wraps content in an HTML tag, adding any HTML attributes + * + * @param {string} tag HTML tag to wrap + * @param {string | null} content content within the tag + * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add + * + * @returns {string} content wrapped in HTML element + */ + wrap(tag, content, attrs = {}) { + const htmlAttrs = Object.entries(attrs) + .map(([key, value]) => ` ${key}="${value}"`) + .join(''); + if (!content) { + return `<${tag}${htmlAttrs}>`; + } + return `<${tag}${htmlAttrs}>${content}`; + } + /** + * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default. + * + * @param {SummaryWriteOptions} [options] (optional) options for write operation + * + * @returns {Promise} summary instance + */ + write(options) { + return __awaiter(this, void 0, void 0, function* () { + const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite); + const filePath = yield this.filePath(); + const writeFunc = overwrite ? writeFile : appendFile; + yield writeFunc(filePath, this._buffer, { encoding: 'utf8' }); + return this.emptyBuffer(); + }); + } + /** + * Clears the summary buffer and wipes the summary file + * + * @returns {Summary} summary instance + */ + clear() { + return __awaiter(this, void 0, void 0, function* () { + return this.emptyBuffer().write({ overwrite: true }); + }); + } + /** + * Returns the current summary buffer as a string + * + * @returns {string} string of summary buffer + */ + stringify() { + return this._buffer; + } + /** + * If the summary buffer is empty + * + * @returns {boolen} true if the buffer is empty + */ + isEmptyBuffer() { + return this._buffer.length === 0; + } + /** + * Resets the summary buffer without writing to summary file + * + * @returns {Summary} summary instance + */ + emptyBuffer() { + this._buffer = ''; + return this; + } + /** + * Adds raw text to the summary buffer + * + * @param {string} text content to add + * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false) + * + * @returns {Summary} summary instance + */ + addRaw(text, addEOL = false) { + this._buffer += text; + return addEOL ? this.addEOL() : this; + } + /** + * Adds the operating system-specific end-of-line marker to the buffer + * + * @returns {Summary} summary instance + */ + addEOL() { + return this.addRaw(os_1.EOL); + } + /** + * Adds an HTML codeblock to the summary buffer + * + * @param {string} code content to render within fenced code block + * @param {string} lang (optional) language to syntax highlight code + * + * @returns {Summary} summary instance + */ + addCodeBlock(code, lang) { + const attrs = Object.assign({}, (lang && { lang })); + const element = this.wrap('pre', this.wrap('code', code), attrs); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML list to the summary buffer + * + * @param {string[]} items list of items to render + * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false) + * + * @returns {Summary} summary instance + */ + addList(items, ordered = false) { + const tag = ordered ? 'ol' : 'ul'; + const listItems = items.map(item => this.wrap('li', item)).join(''); + const element = this.wrap(tag, listItems); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML table to the summary buffer + * + * @param {SummaryTableCell[]} rows table rows + * + * @returns {Summary} summary instance + */ + addTable(rows) { + const tableBody = rows + .map(row => { + const cells = row + .map(cell => { + if (typeof cell === 'string') { + return this.wrap('td', cell); + } + const { header, data, colspan, rowspan } = cell; + const tag = header ? 'th' : 'td'; + const attrs = Object.assign(Object.assign({}, (colspan && { colspan })), (rowspan && { rowspan })); + return this.wrap(tag, data, attrs); + }) + .join(''); + return this.wrap('tr', cells); + }) + .join(''); + const element = this.wrap('table', tableBody); + return this.addRaw(element).addEOL(); + } + /** + * Adds a collapsable HTML details element to the summary buffer + * + * @param {string} label text for the closed state + * @param {string} content collapsable content + * + * @returns {Summary} summary instance + */ + addDetails(label, content) { + const element = this.wrap('details', this.wrap('summary', label) + content); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML image tag to the summary buffer + * + * @param {string} src path to the image you to embed + * @param {string} alt text description of the image + * @param {SummaryImageOptions} options (optional) addition image attributes + * + * @returns {Summary} summary instance + */ + addImage(src, alt, options) { + const { width, height } = options || {}; + const attrs = Object.assign(Object.assign({}, (width && { width })), (height && { height })); + const element = this.wrap('img', null, Object.assign({ src, alt }, attrs)); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML section heading element + * + * @param {string} text heading text + * @param {number | string} [level=1] (optional) the heading level, default: 1 + * + * @returns {Summary} summary instance + */ + addHeading(text, level) { + const tag = `h${level}`; + const allowedTag = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(tag) + ? tag + : 'h1'; + const element = this.wrap(allowedTag, text); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML thematic break (
) to the summary buffer + * + * @returns {Summary} summary instance + */ + addSeparator() { + const element = this.wrap('hr', null); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML line break (
) to the summary buffer + * + * @returns {Summary} summary instance + */ + addBreak() { + const element = this.wrap('br', null); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML blockquote to the summary buffer + * + * @param {string} text quote text + * @param {string} cite (optional) citation url + * + * @returns {Summary} summary instance + */ + addQuote(text, cite) { + const attrs = Object.assign({}, (cite && { cite })); + const element = this.wrap('blockquote', text, attrs); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML anchor tag to the summary buffer + * + * @param {string} text link text/content + * @param {string} href hyperlink + * + * @returns {Summary} summary instance + */ + addLink(text, href) { + const element = this.wrap('a', text, { href }); + return this.addRaw(element).addEOL(); + } +} +const _summary = new Summary(); +/** + * @deprecated use `core.summary` + */ +exports.markdownSummary = _summary; +exports.summary = _summary; +//# sourceMappingURL=summary.js.map \ No newline at end of file diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/summary.js.map b/node_modules/@actions/glob/node_modules/@actions/core/lib/summary.js.map new file mode 100644 index 00000000..d598f264 --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/summary.js.map @@ -0,0 +1 @@ +{"version":3,"file":"summary.js","sourceRoot":"","sources":["../src/summary.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2BAAsB;AACtB,2BAAsC;AACtC,MAAM,EAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAC,GAAG,aAAQ,CAAA;AAEnC,QAAA,eAAe,GAAG,qBAAqB,CAAA;AACvC,QAAA,gBAAgB,GAC3B,2GAA2G,CAAA;AA+C7G,MAAM,OAAO;IAIX;QACE,IAAI,CAAC,OAAO,GAAG,EAAE,CAAA;IACnB,CAAC;IAED;;;;;OAKG;IACW,QAAQ;;YACpB,IAAI,IAAI,CAAC,SAAS,EAAE;gBAClB,OAAO,IAAI,CAAC,SAAS,CAAA;aACtB;YAED,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAe,CAAC,CAAA;YAChD,IAAI,CAAC,WAAW,EAAE;gBAChB,MAAM,IAAI,KAAK,CACb,4CAA4C,uBAAe,6DAA6D,CACzH,CAAA;aACF;YAED,IAAI;gBACF,MAAM,MAAM,CAAC,WAAW,EAAE,cAAS,CAAC,IAAI,GAAG,cAAS,CAAC,IAAI,CAAC,CAAA;aAC3D;YAAC,WAAM;gBACN,MAAM,IAAI,KAAK,CACb,mCAAmC,WAAW,0DAA0D,CACzG,CAAA;aACF;YAED,IAAI,CAAC,SAAS,GAAG,WAAW,CAAA;YAC5B,OAAO,IAAI,CAAC,SAAS,CAAA;QACvB,CAAC;KAAA;IAED;;;;;;;;OAQG;IACK,IAAI,CACV,GAAW,EACX,OAAsB,EACtB,QAAuC,EAAE;QAEzC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,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IAAa;QAClC,MAAM,KAAK,qBACN,CAAC,IAAI,IAAI,EAAC,IAAI,EAAC,CAAC,CACpB,CAAA;QACD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;QACpD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,IAAY,EAAE,IAAY;QAChC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,EAAC,IAAI,EAAC,CAAC,CAAA;QAC5C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;IACtC,CAAC;CACF;AAED,MAAM,QAAQ,GAAG,IAAI,OAAO,EAAE,CAAA;AAE9B;;GAEG;AACU,QAAA,eAAe,GAAG,QAAQ,CAAA;AAC1B,QAAA,OAAO,GAAG,QAAQ,CAAA"} \ No newline at end of file diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/utils.d.ts b/node_modules/@actions/glob/node_modules/@actions/core/lib/utils.d.ts new file mode 100644 index 00000000..3b9e28d5 --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/utils.d.ts @@ -0,0 +1,14 @@ +import { AnnotationProperties } from './core'; +import { CommandProperties } from './command'; +/** + * Sanitizes an input into a string so it can be passed into issueCommand safely + * @param input input to sanitize into a string + */ +export declare function toCommandValue(input: any): string; +/** + * + * @param annotationProperties + * @returns The command properties to send with the actual annotation command + * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646 + */ +export declare function toCommandProperties(annotationProperties: AnnotationProperties): CommandProperties; diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/utils.js b/node_modules/@actions/glob/node_modules/@actions/core/lib/utils.js new file mode 100644 index 00000000..9b5ca44b --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/utils.js @@ -0,0 +1,40 @@ +"use strict"; +// We use any as a valid input type +/* eslint-disable @typescript-eslint/no-explicit-any */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.toCommandProperties = exports.toCommandValue = void 0; +/** + * Sanitizes an input into a string so it can be passed into issueCommand safely + * @param input input to sanitize into a string + */ +function toCommandValue(input) { + if (input === null || input === undefined) { + return ''; + } + else if (typeof input === 'string' || input instanceof String) { + return input; + } + return JSON.stringify(input); +} +exports.toCommandValue = toCommandValue; +/** + * + * @param annotationProperties + * @returns The command properties to send with the actual annotation command + * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646 + */ +function toCommandProperties(annotationProperties) { + if (!Object.keys(annotationProperties).length) { + return {}; + } + return { + title: annotationProperties.title, + file: annotationProperties.file, + line: annotationProperties.startLine, + endLine: annotationProperties.endLine, + col: annotationProperties.startColumn, + endColumn: annotationProperties.endColumn + }; +} +exports.toCommandProperties = toCommandProperties; +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/node_modules/@actions/glob/node_modules/@actions/core/lib/utils.js.map b/node_modules/@actions/glob/node_modules/@actions/core/lib/utils.js.map new file mode 100644 index 00000000..8211bb7e --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/lib/utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA,mCAAmC;AACnC,uDAAuD;;;AAKvD;;;GAGG;AACH,SAAgB,cAAc,CAAC,KAAU;IACvC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;QACzC,OAAO,EAAE,CAAA;KACV;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,YAAY,MAAM,EAAE;QAC/D,OAAO,KAAe,CAAA;KACvB;IACD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;AAC9B,CAAC;AAPD,wCAOC;AAED;;;;;GAKG;AACH,SAAgB,mBAAmB,CACjC,oBAA0C;IAE1C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,MAAM,EAAE;QAC7C,OAAO,EAAE,CAAA;KACV;IAED,OAAO;QACL,KAAK,EAAE,oBAAoB,CAAC,KAAK;QACjC,IAAI,EAAE,oBAAoB,CAAC,IAAI;QAC/B,IAAI,EAAE,oBAAoB,CAAC,SAAS;QACpC,OAAO,EAAE,oBAAoB,CAAC,OAAO;QACrC,GAAG,EAAE,oBAAoB,CAAC,WAAW;QACrC,SAAS,EAAE,oBAAoB,CAAC,SAAS;KAC1C,CAAA;AACH,CAAC;AAfD,kDAeC"} \ No newline at end of file diff --git a/node_modules/@actions/glob/node_modules/@actions/core/package.json b/node_modules/@actions/glob/node_modules/@actions/core/package.json new file mode 100644 index 00000000..1558268c --- /dev/null +++ b/node_modules/@actions/glob/node_modules/@actions/core/package.json @@ -0,0 +1,46 @@ +{ + "name": "@actions/core", + "version": "1.10.1", + "description": "Actions core lib", + "keywords": [ + "github", + "actions", + "core" + ], + "homepage": "https://github.com/actions/toolkit/tree/main/packages/core", + "license": "MIT", + "main": "lib/core.js", + "types": "lib/core.d.ts", + "directories": { + "lib": "lib", + "test": "__tests__" + }, + "files": [ + "lib", + "!.DS_Store" + ], + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/actions/toolkit.git", + "directory": "packages/core" + }, + "scripts": { + "audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", + "test": "echo \"Error: run tests from root\" && exit 1", + "tsc": "tsc -p tsconfig.json" + }, + "bugs": { + "url": "https://github.com/actions/toolkit/issues" + }, + "dependencies": { + "@actions/http-client": "^2.0.1", + "uuid": "^8.3.2" + }, + "devDependencies": { + "@types/node": "^12.0.2", + "@types/uuid": "^8.3.4" + } +} \ No newline at end of file diff --git a/node_modules/@actions/io/LICENSE.md b/node_modules/@actions/io/LICENSE.md new file mode 100644 index 00000000..dbae2edb --- /dev/null +++ b/node_modules/@actions/io/LICENSE.md @@ -0,0 +1,9 @@ +The MIT License (MIT) + +Copyright 2019 GitHub + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/@actions/io/README.md b/node_modules/@actions/io/README.md new file mode 100644 index 00000000..9aadf2f9 --- /dev/null +++ b/node_modules/@actions/io/README.md @@ -0,0 +1,53 @@ +# `@actions/io` + +> Core functions for cli filesystem scenarios + +## Usage + +#### mkdir -p + +Recursively make a directory. Follows rules specified in [man mkdir](https://linux.die.net/man/1/mkdir) with the `-p` option specified: + +```js +const io = require('@actions/io'); + +await io.mkdirP('path/to/make'); +``` + +#### cp/mv + +Copy or move files or folders. Follows rules specified in [man cp](https://linux.die.net/man/1/cp) and [man mv](https://linux.die.net/man/1/mv): + +```js +const io = require('@actions/io'); + +// Recursive must be true for directories +const options = { recursive: true, force: false } + +await io.cp('path/to/directory', 'path/to/dest', options); +await io.mv('path/to/file', 'path/to/dest'); +``` + +#### rm -rf + +Remove a file or folder recursively. Follows rules specified in [man rm](https://linux.die.net/man/1/rm) with the `-r` and `-f` rules specified. + +```js +const io = require('@actions/io'); + +await io.rmRF('path/to/directory'); +await io.rmRF('path/to/file'); +``` + +#### which + +Get the path to a tool and resolves via paths. Follows the rules specified in [man which](https://linux.die.net/man/1/which). + +```js +const exec = require('@actions/exec'); +const io = require('@actions/io'); + +const pythonPath: string = await io.which('python', true) + +await exec.exec(`"${pythonPath}"`, ['main.py']); +``` diff --git a/node_modules/@actions/io/lib/io-util.d.ts b/node_modules/@actions/io/lib/io-util.d.ts new file mode 100644 index 00000000..0241e72b --- /dev/null +++ b/node_modules/@actions/io/lib/io-util.d.ts @@ -0,0 +1,21 @@ +/// +import * as fs from 'fs'; +export declare const chmod: typeof fs.promises.chmod, copyFile: typeof fs.promises.copyFile, lstat: typeof fs.promises.lstat, mkdir: typeof fs.promises.mkdir, open: typeof fs.promises.open, readdir: typeof fs.promises.readdir, readlink: typeof fs.promises.readlink, rename: typeof fs.promises.rename, rm: typeof fs.promises.rm, rmdir: typeof fs.promises.rmdir, stat: typeof fs.promises.stat, symlink: typeof fs.promises.symlink, unlink: typeof fs.promises.unlink; +export declare const IS_WINDOWS: boolean; +export declare const UV_FS_O_EXLOCK = 268435456; +export declare const READONLY: number; +export declare function exists(fsPath: string): Promise; +export declare function isDirectory(fsPath: string, useStat?: boolean): Promise; +/** + * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like: + * \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases). + */ +export declare function isRooted(p: string): boolean; +/** + * Best effort attempt to determine whether a file exists and is executable. + * @param filePath file path to check + * @param extensions additional file extensions to try + * @return if file exists and is executable, returns the file path. otherwise empty string. + */ +export declare function tryGetExecutablePath(filePath: string, extensions: string[]): Promise; +export declare function getCmdPath(): string; diff --git a/node_modules/@actions/io/lib/io-util.js b/node_modules/@actions/io/lib/io-util.js new file mode 100644 index 00000000..f12e5b0d --- /dev/null +++ b/node_modules/@actions/io/lib/io-util.js @@ -0,0 +1,183 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var _a; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.READONLY = exports.UV_FS_O_EXLOCK = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rm = exports.rename = exports.readlink = exports.readdir = exports.open = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0; +const fs = __importStar(require("fs")); +const path = __importStar(require("path")); +_a = fs.promises +// export const {open} = 'fs' +, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.open = _a.open, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rm = _a.rm, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink; +// export const {open} = 'fs' +exports.IS_WINDOWS = process.platform === 'win32'; +// See https://github.com/nodejs/node/blob/d0153aee367422d0858105abec186da4dff0a0c5/deps/uv/include/uv/win.h#L691 +exports.UV_FS_O_EXLOCK = 0x10000000; +exports.READONLY = fs.constants.O_RDONLY; +function exists(fsPath) { + return __awaiter(this, void 0, void 0, function* () { + try { + yield exports.stat(fsPath); + } + catch (err) { + if (err.code === 'ENOENT') { + return false; + } + throw err; + } + return true; + }); +} +exports.exists = exists; +function isDirectory(fsPath, useStat = false) { + return __awaiter(this, void 0, void 0, function* () { + const stats = useStat ? yield exports.stat(fsPath) : yield exports.lstat(fsPath); + return stats.isDirectory(); + }); +} +exports.isDirectory = isDirectory; +/** + * On OSX/Linux, true if path starts with '/'. On Windows, true for paths like: + * \, \hello, \\hello\share, C:, and C:\hello (and corresponding alternate separator cases). + */ +function isRooted(p) { + p = normalizeSeparators(p); + if (!p) { + throw new Error('isRooted() parameter "p" cannot be empty'); + } + if (exports.IS_WINDOWS) { + return (p.startsWith('\\') || /^[A-Z]:/i.test(p) // e.g. \ or \hello or \\hello + ); // e.g. C: or C:\hello + } + return p.startsWith('/'); +} +exports.isRooted = isRooted; +/** + * Best effort attempt to determine whether a file exists and is executable. + * @param filePath file path to check + * @param extensions additional file extensions to try + * @return if file exists and is executable, returns the file path. otherwise empty string. + */ +function tryGetExecutablePath(filePath, extensions) { + return __awaiter(this, void 0, void 0, function* () { + let stats = undefined; + try { + // test file exists + stats = yield exports.stat(filePath); + } + catch (err) { + if (err.code !== 'ENOENT') { + // eslint-disable-next-line no-console + console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`); + } + } + if (stats && stats.isFile()) { + if (exports.IS_WINDOWS) { + // on Windows, test for valid extension + const upperExt = path.extname(filePath).toUpperCase(); + if (extensions.some(validExt => validExt.toUpperCase() === upperExt)) { + return filePath; + } + } + else { + if (isUnixExecutable(stats)) { + return filePath; + } + } + } + // try each extension + const originalFilePath = filePath; + for (const extension of extensions) { + filePath = originalFilePath + extension; + stats = undefined; + try { + stats = yield exports.stat(filePath); + } + catch (err) { + if (err.code !== 'ENOENT') { + // eslint-disable-next-line no-console + console.log(`Unexpected error attempting to determine if executable file exists '${filePath}': ${err}`); + } + } + if (stats && stats.isFile()) { + if (exports.IS_WINDOWS) { + // preserve the case of the actual file (since an extension was appended) + try { + const directory = path.dirname(filePath); + const upperName = path.basename(filePath).toUpperCase(); + for (const actualName of yield exports.readdir(directory)) { + if (upperName === actualName.toUpperCase()) { + filePath = path.join(directory, actualName); + break; + } + } + } + catch (err) { + // eslint-disable-next-line no-console + console.log(`Unexpected error attempting to determine the actual case of the file '${filePath}': ${err}`); + } + return filePath; + } + else { + if (isUnixExecutable(stats)) { + return filePath; + } + } + } + } + return ''; + }); +} +exports.tryGetExecutablePath = tryGetExecutablePath; +function normalizeSeparators(p) { + p = p || ''; + if (exports.IS_WINDOWS) { + // convert slashes on Windows + p = p.replace(/\//g, '\\'); + // remove redundant slashes + return p.replace(/\\\\+/g, '\\'); + } + // remove redundant slashes + return p.replace(/\/\/+/g, '/'); +} +// on Mac/Linux, test the execute bit +// R W X R W X R W X +// 256 128 64 32 16 8 4 2 1 +function isUnixExecutable(stats) { + return ((stats.mode & 1) > 0 || + ((stats.mode & 8) > 0 && stats.gid === process.getgid()) || + ((stats.mode & 64) > 0 && stats.uid === process.getuid())); +} +// Get the path of cmd.exe in windows +function getCmdPath() { + var _a; + return (_a = process.env['COMSPEC']) !== null && _a !== void 0 ? _a : `cmd.exe`; +} +exports.getCmdPath = getCmdPath; +//# sourceMappingURL=io-util.js.map \ No newline at end of file diff --git a/node_modules/@actions/io/lib/io-util.js.map b/node_modules/@actions/io/lib/io-util.js.map new file mode 100644 index 00000000..9a587b30 --- /dev/null +++ b/node_modules/@actions/io/lib/io-util.js.map @@ -0,0 +1 @@ +{"version":3,"file":"io-util.js","sourceRoot":"","sources":["../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CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;KACjC;IAED,2BAA2B;IAC3B,OAAO,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAA;AACjC,CAAC;AAED,qCAAqC;AACrC,6BAA6B;AAC7B,6BAA6B;AAC7B,SAAS,gBAAgB,CAAC,KAAe;IACvC,OAAO,CACL,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC;QACpB,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC;QACxD,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,GAAG,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAC1D,CAAA;AACH,CAAC;AAED,qCAAqC;AACrC,SAAgB,UAAU;;IACxB,aAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,mCAAI,SAAS,CAAA;AAC5C,CAAC;AAFD,gCAEC"} \ No newline at end of file diff --git a/node_modules/@actions/io/lib/io.d.ts b/node_modules/@actions/io/lib/io.d.ts new file mode 100644 index 00000000..a674522f --- /dev/null +++ b/node_modules/@actions/io/lib/io.d.ts @@ -0,0 +1,64 @@ +/** + * Interface for cp/mv options + */ +export interface CopyOptions { + /** Optional. Whether to recursively copy all subdirectories. Defaults to false */ + recursive?: boolean; + /** Optional. Whether to overwrite existing files in the destination. Defaults to true */ + force?: boolean; + /** Optional. Whether to copy the source directory along with all the files. Only takes effect when recursive=true and copying a directory. Default is true*/ + copySourceDirectory?: boolean; +} +/** + * Interface for cp/mv options + */ +export interface MoveOptions { + /** Optional. Whether to overwrite existing files in the destination. Defaults to true */ + force?: boolean; +} +/** + * Copies a file or folder. + * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js + * + * @param source source path + * @param dest destination path + * @param options optional. See CopyOptions. + */ +export declare function cp(source: string, dest: string, options?: CopyOptions): Promise; +/** + * Moves a path. + * + * @param source source path + * @param dest destination path + * @param options optional. See MoveOptions. + */ +export declare function mv(source: string, dest: string, options?: MoveOptions): Promise; +/** + * Remove a path recursively with force + * + * @param inputPath path to remove + */ +export declare function rmRF(inputPath: string): Promise; +/** + * Make a directory. Creates the full path with folders in between + * Will throw if it fails + * + * @param fsPath path to create + * @returns Promise + */ +export declare function mkdirP(fsPath: string): Promise; +/** + * Returns path of a tool had the tool actually been invoked. Resolves via paths. + * If you check and the tool does not exist, it will throw. + * + * @param tool name of the tool + * @param check whether to check if tool exists + * @returns Promise path to tool + */ +export declare function which(tool: string, check?: boolean): Promise; +/** + * Returns a list of all occurrences of the given tool on the system path. + * + * @returns Promise the paths of the tool + */ +export declare function findInPath(tool: string): Promise; diff --git a/node_modules/@actions/io/lib/io.js b/node_modules/@actions/io/lib/io.js new file mode 100644 index 00000000..15f7d7cf --- /dev/null +++ b/node_modules/@actions/io/lib/io.js @@ -0,0 +1,299 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.findInPath = exports.which = exports.mkdirP = exports.rmRF = exports.mv = exports.cp = void 0; +const assert_1 = require("assert"); +const path = __importStar(require("path")); +const ioUtil = __importStar(require("./io-util")); +/** + * Copies a file or folder. + * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js + * + * @param source source path + * @param dest destination path + * @param options optional. See CopyOptions. + */ +function cp(source, dest, options = {}) { + return __awaiter(this, void 0, void 0, function* () { + const { force, recursive, copySourceDirectory } = readCopyOptions(options); + const destStat = (yield ioUtil.exists(dest)) ? yield ioUtil.stat(dest) : null; + // Dest is an existing file, but not forcing + if (destStat && destStat.isFile() && !force) { + return; + } + // If dest is an existing directory, should copy inside. + const newDest = destStat && destStat.isDirectory() && copySourceDirectory + ? path.join(dest, path.basename(source)) + : dest; + if (!(yield ioUtil.exists(source))) { + throw new Error(`no such file or directory: ${source}`); + } + const sourceStat = yield ioUtil.stat(source); + if (sourceStat.isDirectory()) { + if (!recursive) { + throw new Error(`Failed to copy. ${source} is a directory, but tried to copy without recursive flag.`); + } + else { + yield cpDirRecursive(source, newDest, 0, force); + } + } + else { + if (path.relative(source, newDest) === '') { + // a file cannot be copied to itself + throw new Error(`'${newDest}' and '${source}' are the same file`); + } + yield copyFile(source, newDest, force); + } + }); +} +exports.cp = cp; +/** + * Moves a path. + * + * @param source source path + * @param dest destination path + * @param options optional. See MoveOptions. + */ +function mv(source, dest, options = {}) { + return __awaiter(this, void 0, void 0, function* () { + if (yield ioUtil.exists(dest)) { + let destExists = true; + if (yield ioUtil.isDirectory(dest)) { + // If dest is directory copy src into dest + dest = path.join(dest, path.basename(source)); + destExists = yield ioUtil.exists(dest); + } + if (destExists) { + if (options.force == null || options.force) { + yield rmRF(dest); + } + else { + throw new Error('Destination already exists'); + } + } + } + yield mkdirP(path.dirname(dest)); + yield ioUtil.rename(source, dest); + }); +} +exports.mv = mv; +/** + * Remove a path recursively with force + * + * @param inputPath path to remove + */ +function rmRF(inputPath) { + return __awaiter(this, void 0, void 0, function* () { + if (ioUtil.IS_WINDOWS) { + // Check for invalid characters + // https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file + if (/[*"<>|]/.test(inputPath)) { + throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows'); + } + } + try { + // note if path does not exist, error is silent + yield ioUtil.rm(inputPath, { + force: true, + maxRetries: 3, + recursive: true, + retryDelay: 300 + }); + } + catch (err) { + throw new Error(`File was unable to be removed ${err}`); + } + }); +} +exports.rmRF = rmRF; +/** + * Make a directory. Creates the full path with folders in between + * Will throw if it fails + * + * @param fsPath path to create + * @returns Promise + */ +function mkdirP(fsPath) { + return __awaiter(this, void 0, void 0, function* () { + assert_1.ok(fsPath, 'a path argument must be provided'); + yield ioUtil.mkdir(fsPath, { recursive: true }); + }); +} +exports.mkdirP = mkdirP; +/** + * Returns path of a tool had the tool actually been invoked. Resolves via paths. + * If you check and the tool does not exist, it will throw. + * + * @param tool name of the tool + * @param check whether to check if tool exists + * @returns Promise path to tool + */ +function which(tool, check) { + return __awaiter(this, void 0, void 0, function* () { + if (!tool) { + throw new Error("parameter 'tool' is required"); + } + // recursive when check=true + if (check) { + const result = yield which(tool, false); + if (!result) { + if (ioUtil.IS_WINDOWS) { + throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`); + } + else { + throw new Error(`Unable to locate executable file: ${tool}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`); + } + } + return result; + } + const matches = yield findInPath(tool); + if (matches && matches.length > 0) { + return matches[0]; + } + return ''; + }); +} +exports.which = which; +/** + * Returns a list of all occurrences of the given tool on the system path. + * + * @returns Promise the paths of the tool + */ +function findInPath(tool) { + return __awaiter(this, void 0, void 0, function* () { + if (!tool) { + throw new Error("parameter 'tool' is required"); + } + // build the list of extensions to try + const extensions = []; + if (ioUtil.IS_WINDOWS && process.env['PATHEXT']) { + for (const extension of process.env['PATHEXT'].split(path.delimiter)) { + if (extension) { + extensions.push(extension); + } + } + } + // if it's rooted, return it if exists. otherwise return empty. + if (ioUtil.isRooted(tool)) { + const filePath = yield ioUtil.tryGetExecutablePath(tool, extensions); + if (filePath) { + return [filePath]; + } + return []; + } + // if any path separators, return empty + if (tool.includes(path.sep)) { + return []; + } + // build the list of directories + // + // Note, technically "where" checks the current directory on Windows. From a toolkit perspective, + // it feels like we should not do this. Checking the current directory seems like more of a use + // case of a shell, and the which() function exposed by the toolkit should strive for consistency + // across platforms. + const directories = []; + if (process.env.PATH) { + for (const p of process.env.PATH.split(path.delimiter)) { + if (p) { + directories.push(p); + } + } + } + // find all matches + const matches = []; + for (const directory of directories) { + const filePath = yield ioUtil.tryGetExecutablePath(path.join(directory, tool), extensions); + if (filePath) { + matches.push(filePath); + } + } + return matches; + }); +} +exports.findInPath = findInPath; +function readCopyOptions(options) { + const force = options.force == null ? true : options.force; + const recursive = Boolean(options.recursive); + const copySourceDirectory = options.copySourceDirectory == null + ? true + : Boolean(options.copySourceDirectory); + return { force, recursive, copySourceDirectory }; +} +function cpDirRecursive(sourceDir, destDir, currentDepth, force) { + return __awaiter(this, void 0, void 0, function* () { + // Ensure there is not a run away recursive copy + if (currentDepth >= 255) + return; + currentDepth++; + yield mkdirP(destDir); + const files = yield ioUtil.readdir(sourceDir); + for (const fileName of files) { + const srcFile = `${sourceDir}/${fileName}`; + const destFile = `${destDir}/${fileName}`; + const srcFileStat = yield ioUtil.lstat(srcFile); + if (srcFileStat.isDirectory()) { + // Recurse + yield cpDirRecursive(srcFile, destFile, currentDepth, force); + } + else { + yield copyFile(srcFile, destFile, force); + } + } + // Change the mode for the newly created directory + yield ioUtil.chmod(destDir, (yield ioUtil.stat(sourceDir)).mode); + }); +} +// Buffered file copy +function copyFile(srcFile, destFile, force) { + return __awaiter(this, void 0, void 0, function* () { + if ((yield ioUtil.lstat(srcFile)).isSymbolicLink()) { + // unlink/re-link it + try { + yield ioUtil.lstat(destFile); + yield ioUtil.unlink(destFile); + } + catch (e) { + // Try to override file permission + if (e.code === 'EPERM') { + yield ioUtil.chmod(destFile, '0666'); + yield ioUtil.unlink(destFile); + } + // other errors = it doesn't exist, no work to do + } + // Copy over symlink + const symlinkFull = yield ioUtil.readlink(srcFile); + yield ioUtil.symlink(symlinkFull, destFile, ioUtil.IS_WINDOWS ? 'junction' : null); + } + else if (!(yield ioUtil.exists(destFile)) || force) { + yield ioUtil.copyFile(srcFile, destFile); + } + }); +} +//# sourceMappingURL=io.js.map \ No newline at end of file diff --git a/node_modules/@actions/io/lib/io.js.map b/node_modules/@actions/io/lib/io.js.map new file mode 100644 index 00000000..4021d289 --- /dev/null +++ b/node_modules/@actions/io/lib/io.js.map @@ -0,0 +1 @@ +{"version":3,"file":"io.js","sourceRoot":"","sources":["../src/io.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAyB;AACzB,2CAA4B;AAC5B,kDAAmC;AAsBnC;;;;;;;GAOG;AACH,SAAsB,EAAE,CACtB,MAAc,EACd,IAAY,EACZ,UAAuB,EAAE;;QAEzB,MAAM,EAAC,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAC,GAAG,eAAe,CAAC,OAAO,CAAC,CAAA;QAExE,MAAM,QAAQ,GAAG,CAAC,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;QAC7E,4CAA4C;QAC5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AK,CAAC,OAAO,EAAE,CAAC,MAAM,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;IAClE,CAAC;CAAA;AAED,qBAAqB;AACrB,SAAe,QAAQ,CACrB,OAAe,EACf,QAAgB,EAChB,KAAc;;QAEd,IAAI,CAAC,MAAM,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,EAAE,EAAE;YAClD,oBAAoB;YACpB,IAAI;gBACF,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;gBAC5B,MAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;aAC9B;YAAC,OAAO,CAAC,EAAE;gBACV,kCAAkC;gBAClC,IAAI,CAAC,CAAC,IAAI,KAAK,OAAO,EAAE;oBACtB,MAAM,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;oBACpC,MAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;iBAC9B;gBACD,iDAAiD;aAClD;YAED,oBAAoB;YACpB,MAAM,WAAW,GAAW,MAAM,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;YAC1D,MAAM,MAAM,CAAC,OAAO,CAClB,WAAW,EACX,QAAQ,EACR,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CACtC,CAAA;SACF;aAAM,IAAI,CAAC,CAAC,MAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,KAAK,EAAE;YACpD,MAAM,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;SACzC;IACH,CAAC;CAAA"} \ No newline at end of file diff --git a/node_modules/@actions/io/package.json b/node_modules/@actions/io/package.json new file mode 100644 index 00000000..e8c8d8fb --- /dev/null +++ b/node_modules/@actions/io/package.json @@ -0,0 +1,37 @@ +{ + "name": "@actions/io", + "version": "1.1.3", + "description": "Actions io lib", + "keywords": [ + "github", + "actions", + "io" + ], + "homepage": "https://github.com/actions/toolkit/tree/main/packages/io", + "license": "MIT", + "main": "lib/io.js", + "types": "lib/io.d.ts", + "directories": { + "lib": "lib", + "test": "__tests__" + }, + "files": [ + "lib" + ], + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/actions/toolkit.git", + "directory": "packages/io" + }, + "scripts": { + "audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", + "test": "echo \"Error: run tests from root\" && exit 1", + "tsc": "tsc" + }, + "bugs": { + "url": "https://github.com/actions/toolkit/issues" + } +} diff --git a/node_modules/@ampproject/remapping/dist/remapping.mjs b/node_modules/@ampproject/remapping/dist/remapping.mjs deleted file mode 100644 index f3875999..00000000 --- a/node_modules/@ampproject/remapping/dist/remapping.mjs +++ /dev/null @@ -1,197 +0,0 @@ -import { decodedMappings, traceSegment, TraceMap } from '@jridgewell/trace-mapping'; -import { GenMapping, maybeAddSegment, setSourceContent, setIgnore, toDecodedMap, toEncodedMap } from '@jridgewell/gen-mapping'; - -const SOURCELESS_MAPPING = /* #__PURE__ */ SegmentObject('', -1, -1, '', null, false); -const EMPTY_SOURCES = []; -function SegmentObject(source, line, column, name, content, ignore) { - return { source, line, column, name, content, ignore }; -} -function Source(map, sources, source, content, ignore) { - return { - map, - sources, - source, - content, - ignore, - }; -} -/** - * MapSource represents a single sourcemap, with the ability to trace mappings into its child nodes - * (which may themselves be SourceMapTrees). - */ -function MapSource(map, sources) { - return Source(map, sources, '', null, false); -} -/** - * A "leaf" node in the sourcemap tree, representing an original, unmodified source file. Recursive - * segment tracing ends at the `OriginalSource`. - */ -function OriginalSource(source, content, ignore) { - return Source(null, EMPTY_SOURCES, source, content, ignore); -} -/** - * traceMappings is only called on the root level SourceMapTree, and begins the process of - * resolving each mapping in terms of the original source files. - */ -function traceMappings(tree) { - // TODO: Eventually support sourceRoot, which has to be removed because the sources are already - // fully resolved. We'll need to make sources relative to the sourceRoot before adding them. - const gen = new GenMapping({ file: tree.map.file }); - const { sources: rootSources, map } = tree; - const rootNames = map.names; - const rootMappings = decodedMappings(map); - for (let i = 0; i < rootMappings.length; i++) { - const segments = rootMappings[i]; - for (let j = 0; j < segments.length; j++) { - const segment = segments[j]; - const genCol = segment[0]; - let traced = SOURCELESS_MAPPING; - // 1-length segments only move the current generated column, there's no source information - // to gather from it. - if (segment.length !== 1) { - const source = rootSources[segment[1]]; - traced = originalPositionFor(source, segment[2], segment[3], segment.length === 5 ? rootNames[segment[4]] : ''); - // If the trace is invalid, then the trace ran into a sourcemap that doesn't contain a - // respective segment into an original source. - if (traced == null) - continue; - } - const { column, line, name, content, source, ignore } = traced; - maybeAddSegment(gen, i, genCol, source, line, column, name); - if (source && content != null) - setSourceContent(gen, source, content); - if (ignore) - setIgnore(gen, source, true); - } - } - return gen; -} -/** - * originalPositionFor is only called on children SourceMapTrees. It recurses down into its own - * child SourceMapTrees, until we find the original source map. - */ -function originalPositionFor(source, line, column, name) { - if (!source.map) { - return SegmentObject(source.source, line, column, name, source.content, source.ignore); - } - const segment = traceSegment(source.map, line, column); - // If we couldn't find a segment, then this doesn't exist in the sourcemap. - if (segment == null) - return null; - // 1-length segments only move the current generated column, there's no source information - // to gather from it. - if (segment.length === 1) - return SOURCELESS_MAPPING; - return originalPositionFor(source.sources[segment[1]], segment[2], segment[3], segment.length === 5 ? source.map.names[segment[4]] : name); -} - -function asArray(value) { - if (Array.isArray(value)) - return value; - return [value]; -} -/** - * Recursively builds a tree structure out of sourcemap files, with each node - * being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of - * `OriginalSource`s and `SourceMapTree`s. - * - * Every sourcemap is composed of a collection of source files and mappings - * into locations of those source files. When we generate a `SourceMapTree` for - * the sourcemap, we attempt to load each source file's own sourcemap. If it - * does not have an associated sourcemap, it is considered an original, - * unmodified source file. - */ -function buildSourceMapTree(input, loader) { - const maps = asArray(input).map((m) => new TraceMap(m, '')); - const map = maps.pop(); - for (let i = 0; i < maps.length; i++) { - if (maps[i].sources.length > 1) { - throw new Error(`Transformation map ${i} must have exactly one source file.\n` + - 'Did you specify these with the most recent transformation maps first?'); - } - } - let tree = build(map, loader, '', 0); - for (let i = maps.length - 1; i >= 0; i--) { - tree = MapSource(maps[i], [tree]); - } - return tree; -} -function build(map, loader, importer, importerDepth) { - const { resolvedSources, sourcesContent, ignoreList } = map; - const depth = importerDepth + 1; - const children = resolvedSources.map((sourceFile, i) => { - // The loading context gives the loader more information about why this file is being loaded - // (eg, from which importer). It also allows the loader to override the location of the loaded - // sourcemap/original source, or to override the content in the sourcesContent field if it's - // an unmodified source file. - const ctx = { - importer, - depth, - source: sourceFile || '', - content: undefined, - ignore: undefined, - }; - // Use the provided loader callback to retrieve the file's sourcemap. - // TODO: We should eventually support async loading of sourcemap files. - const sourceMap = loader(ctx.source, ctx); - const { source, content, ignore } = ctx; - // If there is a sourcemap, then we need to recurse into it to load its source files. - if (sourceMap) - return build(new TraceMap(sourceMap, source), loader, source, depth); - // Else, it's an unmodified source file. - // The contents of this unmodified source file can be overridden via the loader context, - // allowing it to be explicitly null or a string. If it remains undefined, we fall back to - // the importing sourcemap's `sourcesContent` field. - const sourceContent = content !== undefined ? content : sourcesContent ? sourcesContent[i] : null; - const ignored = ignore !== undefined ? ignore : ignoreList ? ignoreList.includes(i) : false; - return OriginalSource(source, sourceContent, ignored); - }); - return MapSource(map, children); -} - -/** - * A SourceMap v3 compatible sourcemap, which only includes fields that were - * provided to it. - */ -class SourceMap { - constructor(map, options) { - const out = options.decodedMappings ? toDecodedMap(map) : toEncodedMap(map); - this.version = out.version; // SourceMap spec says this should be first. - this.file = out.file; - this.mappings = out.mappings; - this.names = out.names; - this.ignoreList = out.ignoreList; - this.sourceRoot = out.sourceRoot; - this.sources = out.sources; - if (!options.excludeContent) { - this.sourcesContent = out.sourcesContent; - } - } - toString() { - return JSON.stringify(this); - } -} - -/** - * Traces through all the mappings in the root sourcemap, through the sources - * (and their sourcemaps), all the way back to the original source location. - * - * `loader` will be called every time we encounter a source file. If it returns - * a sourcemap, we will recurse into that sourcemap to continue the trace. If - * it returns a falsey value, that source file is treated as an original, - * unmodified source file. - * - * Pass `excludeContent` to exclude any self-containing source file content - * from the output sourcemap. - * - * Pass `decodedMappings` to receive a SourceMap with decoded (instead of - * VLQ encoded) mappings. - */ -function remapping(input, loader, options) { - const opts = typeof options === 'object' ? options : { excludeContent: !!options, decodedMappings: false }; - const tree = buildSourceMapTree(input, loader); - return new SourceMap(traceMappings(tree), opts); -} - -export { remapping as default }; -//# sourceMappingURL=remapping.mjs.map diff --git a/node_modules/@ampproject/remapping/dist/remapping.mjs.map b/node_modules/@ampproject/remapping/dist/remapping.mjs.map deleted file mode 100644 index 0eb007bf..00000000 --- a/node_modules/@ampproject/remapping/dist/remapping.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"remapping.mjs","sources":["../src/source-map-tree.ts","../src/build-source-map-tree.ts","../src/source-map.ts","../src/remapping.ts"],"sourcesContent":["import { GenMapping, maybeAddSegment, setIgnore, setSourceContent } from '@jridgewell/gen-mapping';\nimport { traceSegment, decodedMappings } from '@jridgewell/trace-mapping';\n\nimport type { TraceMap } from '@jridgewell/trace-mapping';\n\nexport type SourceMapSegmentObject = {\n column: number;\n line: number;\n name: string;\n source: string;\n content: string | null;\n ignore: boolean;\n};\n\nexport type OriginalSource = {\n map: null;\n sources: Sources[];\n source: string;\n content: string | null;\n ignore: boolean;\n};\n\nexport type MapSource = {\n map: TraceMap;\n sources: Sources[];\n source: string;\n content: null;\n ignore: false;\n};\n\nexport type Sources = OriginalSource | MapSource;\n\nconst SOURCELESS_MAPPING = /* #__PURE__ */ SegmentObject('', -1, -1, '', null, false);\nconst EMPTY_SOURCES: Sources[] = [];\n\nfunction SegmentObject(\n source: string,\n line: number,\n column: number,\n name: string,\n content: string | null,\n ignore: boolean\n): SourceMapSegmentObject {\n return { source, line, column, name, content, ignore };\n}\n\nfunction Source(\n map: TraceMap,\n sources: Sources[],\n source: '',\n content: null,\n ignore: false\n): MapSource;\nfunction Source(\n map: null,\n sources: Sources[],\n source: string,\n content: string | null,\n ignore: boolean\n): OriginalSource;\nfunction Source(\n map: TraceMap | null,\n sources: Sources[],\n source: string | '',\n content: string | null,\n ignore: boolean\n): Sources {\n return {\n map,\n sources,\n source,\n content,\n ignore,\n } as any;\n}\n\n/**\n * MapSource represents a single sourcemap, with the ability to trace mappings into its child nodes\n * (which may themselves be SourceMapTrees).\n */\nexport function MapSource(map: TraceMap, sources: Sources[]): MapSource {\n return Source(map, sources, '', null, false);\n}\n\n/**\n * A \"leaf\" node in the sourcemap tree, representing an original, unmodified source file. Recursive\n * segment tracing ends at the `OriginalSource`.\n */\nexport function OriginalSource(\n source: string,\n content: string | null,\n ignore: boolean\n): OriginalSource {\n return Source(null, EMPTY_SOURCES, source, content, ignore);\n}\n\n/**\n * traceMappings is only called on the root level SourceMapTree, and begins the process of\n * resolving each mapping in terms of the original source files.\n */\nexport function traceMappings(tree: MapSource): GenMapping {\n // TODO: Eventually support sourceRoot, which has to be removed because the sources are already\n // fully resolved. We'll need to make sources relative to the sourceRoot before adding them.\n const gen = new GenMapping({ file: tree.map.file });\n const { sources: rootSources, map } = tree;\n const rootNames = map.names;\n const rootMappings = decodedMappings(map);\n\n for (let i = 0; i < rootMappings.length; i++) {\n const segments = rootMappings[i];\n\n for (let j = 0; j < segments.length; j++) {\n const segment = segments[j];\n const genCol = segment[0];\n let traced: SourceMapSegmentObject | null = SOURCELESS_MAPPING;\n\n // 1-length segments only move the current generated column, there's no source information\n // to gather from it.\n if (segment.length !== 1) {\n const source = rootSources[segment[1]];\n traced = originalPositionFor(\n source,\n segment[2],\n segment[3],\n segment.length === 5 ? rootNames[segment[4]] : ''\n );\n\n // If the trace is invalid, then the trace ran into a sourcemap that doesn't contain a\n // respective segment into an original source.\n if (traced == null) continue;\n }\n\n const { column, line, name, content, source, ignore } = traced;\n\n maybeAddSegment(gen, i, genCol, source, line, column, name);\n if (source && content != null) setSourceContent(gen, source, content);\n if (ignore) setIgnore(gen, source, true);\n }\n }\n\n return gen;\n}\n\n/**\n * originalPositionFor is only called on children SourceMapTrees. It recurses down into its own\n * child SourceMapTrees, until we find the original source map.\n */\nexport function originalPositionFor(\n source: Sources,\n line: number,\n column: number,\n name: string\n): SourceMapSegmentObject | null {\n if (!source.map) {\n return SegmentObject(source.source, line, column, name, source.content, source.ignore);\n }\n\n const segment = traceSegment(source.map, line, column);\n\n // If we couldn't find a segment, then this doesn't exist in the sourcemap.\n if (segment == null) return null;\n // 1-length segments only move the current generated column, there's no source information\n // to gather from it.\n if (segment.length === 1) return SOURCELESS_MAPPING;\n\n return originalPositionFor(\n source.sources[segment[1]],\n segment[2],\n segment[3],\n segment.length === 5 ? source.map.names[segment[4]] : name\n );\n}\n","import { TraceMap } from '@jridgewell/trace-mapping';\n\nimport { OriginalSource, MapSource } from './source-map-tree';\n\nimport type { Sources, MapSource as MapSourceType } from './source-map-tree';\nimport type { SourceMapInput, SourceMapLoader, LoaderContext } from './types';\n\nfunction asArray(value: T | T[]): T[] {\n if (Array.isArray(value)) return value;\n return [value];\n}\n\n/**\n * Recursively builds a tree structure out of sourcemap files, with each node\n * being either an `OriginalSource` \"leaf\" or a `SourceMapTree` composed of\n * `OriginalSource`s and `SourceMapTree`s.\n *\n * Every sourcemap is composed of a collection of source files and mappings\n * into locations of those source files. When we generate a `SourceMapTree` for\n * the sourcemap, we attempt to load each source file's own sourcemap. If it\n * does not have an associated sourcemap, it is considered an original,\n * unmodified source file.\n */\nexport default function buildSourceMapTree(\n input: SourceMapInput | SourceMapInput[],\n loader: SourceMapLoader\n): MapSourceType {\n const maps = asArray(input).map((m) => new TraceMap(m, ''));\n const map = maps.pop()!;\n\n for (let i = 0; i < maps.length; i++) {\n if (maps[i].sources.length > 1) {\n throw new Error(\n `Transformation map ${i} must have exactly one source file.\\n` +\n 'Did you specify these with the most recent transformation maps first?'\n );\n }\n }\n\n let tree = build(map, loader, '', 0);\n for (let i = maps.length - 1; i >= 0; i--) {\n tree = MapSource(maps[i], [tree]);\n }\n return tree;\n}\n\nfunction build(\n map: TraceMap,\n loader: SourceMapLoader,\n importer: string,\n importerDepth: number\n): MapSourceType {\n const { resolvedSources, sourcesContent, ignoreList } = map;\n\n const depth = importerDepth + 1;\n const children = resolvedSources.map((sourceFile: string | null, i: number): Sources => {\n // The loading context gives the loader more information about why this file is being loaded\n // (eg, from which importer). It also allows the loader to override the location of the loaded\n // sourcemap/original source, or to override the content in the sourcesContent field if it's\n // an unmodified source file.\n const ctx: LoaderContext = {\n importer,\n depth,\n source: sourceFile || '',\n content: undefined,\n ignore: undefined,\n };\n\n // Use the provided loader callback to retrieve the file's sourcemap.\n // TODO: We should eventually support async loading of sourcemap files.\n const sourceMap = loader(ctx.source, ctx);\n\n const { source, content, ignore } = ctx;\n\n // If there is a sourcemap, then we need to recurse into it to load its source files.\n if (sourceMap) return build(new TraceMap(sourceMap, source), loader, source, depth);\n\n // Else, it's an unmodified source file.\n // The contents of this unmodified source file can be overridden via the loader context,\n // allowing it to be explicitly null or a string. If it remains undefined, we fall back to\n // the importing sourcemap's `sourcesContent` field.\n const sourceContent =\n content !== undefined ? content : sourcesContent ? sourcesContent[i] : null;\n const ignored = ignore !== undefined ? ignore : ignoreList ? ignoreList.includes(i) : false;\n return OriginalSource(source, sourceContent, ignored);\n });\n\n return MapSource(map, children);\n}\n","import { toDecodedMap, toEncodedMap } from '@jridgewell/gen-mapping';\n\nimport type { GenMapping } from '@jridgewell/gen-mapping';\nimport type { DecodedSourceMap, EncodedSourceMap, Options } from './types';\n\n/**\n * A SourceMap v3 compatible sourcemap, which only includes fields that were\n * provided to it.\n */\nexport default class SourceMap {\n declare file?: string | null;\n declare mappings: EncodedSourceMap['mappings'] | DecodedSourceMap['mappings'];\n declare sourceRoot?: string;\n declare names: string[];\n declare sources: (string | null)[];\n declare sourcesContent?: (string | null)[];\n declare version: 3;\n declare ignoreList: number[] | undefined;\n\n constructor(map: GenMapping, options: Options) {\n const out = options.decodedMappings ? toDecodedMap(map) : toEncodedMap(map);\n this.version = out.version; // SourceMap spec says this should be first.\n this.file = out.file;\n this.mappings = out.mappings as SourceMap['mappings'];\n this.names = out.names as SourceMap['names'];\n this.ignoreList = out.ignoreList as SourceMap['ignoreList'];\n this.sourceRoot = out.sourceRoot;\n\n this.sources = out.sources as SourceMap['sources'];\n if (!options.excludeContent) {\n this.sourcesContent = out.sourcesContent as SourceMap['sourcesContent'];\n }\n }\n\n toString(): string {\n return JSON.stringify(this);\n }\n}\n","import buildSourceMapTree from './build-source-map-tree';\nimport { traceMappings } from './source-map-tree';\nimport SourceMap from './source-map';\n\nimport type { SourceMapInput, SourceMapLoader, Options } from './types';\nexport type {\n SourceMapSegment,\n EncodedSourceMap,\n EncodedSourceMap as RawSourceMap,\n DecodedSourceMap,\n SourceMapInput,\n SourceMapLoader,\n LoaderContext,\n Options,\n} from './types';\nexport type { SourceMap };\n\n/**\n * Traces through all the mappings in the root sourcemap, through the sources\n * (and their sourcemaps), all the way back to the original source location.\n *\n * `loader` will be called every time we encounter a source file. If it returns\n * a sourcemap, we will recurse into that sourcemap to continue the trace. If\n * it returns a falsey value, that source file is treated as an original,\n * unmodified source file.\n *\n * Pass `excludeContent` to exclude any self-containing source file content\n * from the output sourcemap.\n *\n * Pass `decodedMappings` to receive a SourceMap with decoded (instead of\n * VLQ encoded) mappings.\n */\nexport default function remapping(\n input: SourceMapInput | SourceMapInput[],\n loader: SourceMapLoader,\n options?: boolean | Options\n): SourceMap {\n const opts =\n typeof options === 'object' ? options : { excludeContent: !!options, decodedMappings: false };\n const tree = buildSourceMapTree(input, loader);\n return new SourceMap(traceMappings(tree), opts);\n}\n"],"names":[],"mappings":";;;AAgCA,MAAM,kBAAkB,mBAAmB,aAAa,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;AACtF,MAAM,aA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B,CAAC;AACnD,QAAA,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE;AAC3B,YAAA,IAAI,CAAC,cAAc,GAAG,GAAG,CAAC,cAA6C,CAAC;AACzE,SAAA;KACF;IAED,QAAQ,GAAA;AACN,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;KAC7B;AACF;;ACpBD;;;;;;;;;;;;;;AAcG;AACqB,SAAA,SAAS,CAC/B,KAAwC,EACxC,MAAuB,EACvB,OAA2B,EAAA;IAE3B,MAAM,IAAI,GACR,OAAO,OAAO,KAAK,QAAQ,GAAG,OAAO,GAAG,EAAE,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC;IAChG,MAAM,IAAI,GAAG,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC/C,OAAO,IAAI,SAAS,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;AAClD;;;;"} \ No newline at end of file diff --git a/node_modules/@ampproject/remapping/dist/remapping.umd.js b/node_modules/@ampproject/remapping/dist/remapping.umd.js deleted file mode 100644 index 6b7b3bb5..00000000 --- a/node_modules/@ampproject/remapping/dist/remapping.umd.js +++ /dev/null @@ -1,202 +0,0 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@jridgewell/trace-mapping'), require('@jridgewell/gen-mapping')) : - typeof define === 'function' && define.amd ? define(['@jridgewell/trace-mapping', '@jridgewell/gen-mapping'], factory) : - (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.remapping = factory(global.traceMapping, global.genMapping)); -})(this, (function (traceMapping, genMapping) { 'use strict'; - - const SOURCELESS_MAPPING = /* #__PURE__ */ SegmentObject('', -1, -1, '', null, false); - const EMPTY_SOURCES = []; - function SegmentObject(source, line, column, name, content, ignore) { - return { source, line, column, name, content, ignore }; - } - function Source(map, sources, source, content, ignore) { - return { - map, - sources, - source, - content, - ignore, - }; - } - /** - * MapSource represents a single sourcemap, with the ability to trace mappings into its child nodes - * (which may themselves be SourceMapTrees). - */ - function MapSource(map, sources) { - return Source(map, sources, '', null, false); - } - /** - * A "leaf" node in the sourcemap tree, representing an original, unmodified source file. Recursive - * segment tracing ends at the `OriginalSource`. - */ - function OriginalSource(source, content, ignore) { - return Source(null, EMPTY_SOURCES, source, content, ignore); - } - /** - * traceMappings is only called on the root level SourceMapTree, and begins the process of - * resolving each mapping in terms of the original source files. - */ - function traceMappings(tree) { - // TODO: Eventually support sourceRoot, which has to be removed because the sources are already - // fully resolved. We'll need to make sources relative to the sourceRoot before adding them. - const gen = new genMapping.GenMapping({ file: tree.map.file }); - const { sources: rootSources, map } = tree; - const rootNames = map.names; - const rootMappings = traceMapping.decodedMappings(map); - for (let i = 0; i < rootMappings.length; i++) { - const segments = rootMappings[i]; - for (let j = 0; j < segments.length; j++) { - const segment = segments[j]; - const genCol = segment[0]; - let traced = SOURCELESS_MAPPING; - // 1-length segments only move the current generated column, there's no source information - // to gather from it. - if (segment.length !== 1) { - const source = rootSources[segment[1]]; - traced = originalPositionFor(source, segment[2], segment[3], segment.length === 5 ? rootNames[segment[4]] : ''); - // If the trace is invalid, then the trace ran into a sourcemap that doesn't contain a - // respective segment into an original source. - if (traced == null) - continue; - } - const { column, line, name, content, source, ignore } = traced; - genMapping.maybeAddSegment(gen, i, genCol, source, line, column, name); - if (source && content != null) - genMapping.setSourceContent(gen, source, content); - if (ignore) - genMapping.setIgnore(gen, source, true); - } - } - return gen; - } - /** - * originalPositionFor is only called on children SourceMapTrees. It recurses down into its own - * child SourceMapTrees, until we find the original source map. - */ - function originalPositionFor(source, line, column, name) { - if (!source.map) { - return SegmentObject(source.source, line, column, name, source.content, source.ignore); - } - const segment = traceMapping.traceSegment(source.map, line, column); - // If we couldn't find a segment, then this doesn't exist in the sourcemap. - if (segment == null) - return null; - // 1-length segments only move the current generated column, there's no source information - // to gather from it. - if (segment.length === 1) - return SOURCELESS_MAPPING; - return originalPositionFor(source.sources[segment[1]], segment[2], segment[3], segment.length === 5 ? source.map.names[segment[4]] : name); - } - - function asArray(value) { - if (Array.isArray(value)) - return value; - return [value]; - } - /** - * Recursively builds a tree structure out of sourcemap files, with each node - * being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of - * `OriginalSource`s and `SourceMapTree`s. - * - * Every sourcemap is composed of a collection of source files and mappings - * into locations of those source files. When we generate a `SourceMapTree` for - * the sourcemap, we attempt to load each source file's own sourcemap. If it - * does not have an associated sourcemap, it is considered an original, - * unmodified source file. - */ - function buildSourceMapTree(input, loader) { - const maps = asArray(input).map((m) => new traceMapping.TraceMap(m, '')); - const map = maps.pop(); - for (let i = 0; i < maps.length; i++) { - if (maps[i].sources.length > 1) { - throw new Error(`Transformation map ${i} must have exactly one source file.\n` + - 'Did you specify these with the most recent transformation maps first?'); - } - } - let tree = build(map, loader, '', 0); - for (let i = maps.length - 1; i >= 0; i--) { - tree = MapSource(maps[i], [tree]); - } - return tree; - } - function build(map, loader, importer, importerDepth) { - const { resolvedSources, sourcesContent, ignoreList } = map; - const depth = importerDepth + 1; - const children = resolvedSources.map((sourceFile, i) => { - // The loading context gives the loader more information about why this file is being loaded - // (eg, from which importer). It also allows the loader to override the location of the loaded - // sourcemap/original source, or to override the content in the sourcesContent field if it's - // an unmodified source file. - const ctx = { - importer, - depth, - source: sourceFile || '', - content: undefined, - ignore: undefined, - }; - // Use the provided loader callback to retrieve the file's sourcemap. - // TODO: We should eventually support async loading of sourcemap files. - const sourceMap = loader(ctx.source, ctx); - const { source, content, ignore } = ctx; - // If there is a sourcemap, then we need to recurse into it to load its source files. - if (sourceMap) - return build(new traceMapping.TraceMap(sourceMap, source), loader, source, depth); - // Else, it's an unmodified source file. - // The contents of this unmodified source file can be overridden via the loader context, - // allowing it to be explicitly null or a string. If it remains undefined, we fall back to - // the importing sourcemap's `sourcesContent` field. - const sourceContent = content !== undefined ? content : sourcesContent ? sourcesContent[i] : null; - const ignored = ignore !== undefined ? ignore : ignoreList ? ignoreList.includes(i) : false; - return OriginalSource(source, sourceContent, ignored); - }); - return MapSource(map, children); - } - - /** - * A SourceMap v3 compatible sourcemap, which only includes fields that were - * provided to it. - */ - class SourceMap { - constructor(map, options) { - const out = options.decodedMappings ? genMapping.toDecodedMap(map) : genMapping.toEncodedMap(map); - this.version = out.version; // SourceMap spec says this should be first. - this.file = out.file; - this.mappings = out.mappings; - this.names = out.names; - this.ignoreList = out.ignoreList; - this.sourceRoot = out.sourceRoot; - this.sources = out.sources; - if (!options.excludeContent) { - this.sourcesContent = out.sourcesContent; - } - } - toString() { - return JSON.stringify(this); - } - } - - /** - * Traces through all the mappings in the root sourcemap, through the sources - * (and their sourcemaps), all the way back to the original source location. - * - * `loader` will be called every time we encounter a source file. If it returns - * a sourcemap, we will recurse into that sourcemap to continue the trace. If - * it returns a falsey value, that source file is treated as an original, - * unmodified source file. - * - * Pass `excludeContent` to exclude any self-containing source file content - * from the output sourcemap. - * - * Pass `decodedMappings` to receive a SourceMap with decoded (instead of - * VLQ encoded) mappings. - */ - function remapping(input, loader, options) { - const opts = typeof options === 'object' ? options : { excludeContent: !!options, decodedMappings: false }; - const tree = buildSourceMapTree(input, loader); - return new SourceMap(traceMappings(tree), opts); - } - - return remapping; - -})); -//# sourceMappingURL=remapping.umd.js.map diff --git a/node_modules/@ampproject/remapping/dist/remapping.umd.js.map b/node_modules/@ampproject/remapping/dist/remapping.umd.js.map deleted file mode 100644 index d3f0f87d..00000000 --- a/node_modules/@ampproject/remapping/dist/remapping.umd.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"remapping.umd.js","sources":["../src/source-map-tree.ts","../src/build-source-map-tree.ts","../src/source-map.ts","../src/remapping.ts"],"sourcesContent":["import { GenMapping, maybeAddSegment, setIgnore, setSourceContent } from '@jridgewell/gen-mapping';\nimport { traceSegment, decodedMappings } from '@jridgewell/trace-mapping';\n\nimport type { TraceMap } from '@jridgewell/trace-mapping';\n\nexport type SourceMapSegmentObject = {\n column: number;\n line: number;\n name: string;\n source: string;\n content: string | null;\n ignore: boolean;\n};\n\nexport type OriginalSource = {\n map: null;\n sources: Sources[];\n source: string;\n content: string | null;\n ignore: boolean;\n};\n\nexport type MapSource = {\n map: TraceMap;\n sources: Sources[];\n source: string;\n content: null;\n ignore: false;\n};\n\nexport type Sources = OriginalSource | MapSource;\n\nconst SOURCELESS_MAPPING = /* #__PURE__ */ SegmentObject('', -1, -1, '', null, false);\nconst EMPTY_SOURCES: Sources[] = [];\n\nfunction SegmentObject(\n source: string,\n line: number,\n column: number,\n name: string,\n content: string | null,\n ignore: boolean\n): SourceMapSegmentObject {\n return { source, line, column, name, content, ignore };\n}\n\nfunction Source(\n map: TraceMap,\n sources: Sources[],\n source: '',\n content: null,\n ignore: false\n): MapSource;\nfunction Source(\n map: null,\n sources: Sources[],\n source: string,\n content: string | null,\n ignore: boolean\n): OriginalSource;\nfunction Source(\n map: TraceMap | null,\n sources: Sources[],\n source: string | '',\n content: string | null,\n ignore: boolean\n): Sources {\n return {\n map,\n sources,\n source,\n content,\n ignore,\n } as any;\n}\n\n/**\n * MapSource represents a single sourcemap, with the ability to trace mappings into its child nodes\n * (which may themselves be SourceMapTrees).\n */\nexport function MapSource(map: TraceMap, sources: Sources[]): MapSource {\n return Source(map, sources, '', null, false);\n}\n\n/**\n * A \"leaf\" node in the sourcemap tree, representing an original, unmodified source file. Recursive\n * segment tracing ends at the `OriginalSource`.\n */\nexport function OriginalSource(\n source: string,\n content: string | null,\n ignore: boolean\n): OriginalSource {\n return Source(null, EMPTY_SOURCES, source, content, ignore);\n}\n\n/**\n * traceMappings is only called on the root level SourceMapTree, and begins the process of\n * resolving each mapping in terms of the original source files.\n */\nexport function traceMappings(tree: MapSource): GenMapping {\n // TODO: Eventually support sourceRoot, which has to be removed because the sources are already\n // fully resolved. We'll need to make sources relative to the sourceRoot before adding them.\n const gen = new GenMapping({ file: tree.map.file });\n const { sources: rootSources, map } = tree;\n const rootNames = map.names;\n const rootMappings = decodedMappings(map);\n\n for (let i = 0; i < rootMappings.length; i++) {\n const segments = rootMappings[i];\n\n for (let j = 0; j < segments.length; j++) {\n const segment = segments[j];\n const genCol = segment[0];\n let traced: SourceMapSegmentObject | null = SOURCELESS_MAPPING;\n\n // 1-length segments only move the current generated column, there's no source information\n // to gather from it.\n if (segment.length !== 1) {\n const source = rootSources[segment[1]];\n traced = originalPositionFor(\n source,\n segment[2],\n segment[3],\n segment.length === 5 ? rootNames[segment[4]] : ''\n );\n\n // If the trace is invalid, then the trace ran into a sourcemap that doesn't contain a\n // respective segment into an original source.\n if (traced == null) continue;\n }\n\n const { column, line, name, content, source, ignore } = traced;\n\n maybeAddSegment(gen, i, genCol, source, line, column, name);\n if (source && content != null) setSourceContent(gen, source, content);\n if (ignore) setIgnore(gen, source, true);\n }\n }\n\n return gen;\n}\n\n/**\n * originalPositionFor is only called on children SourceMapTrees. It recurses down into its own\n * child SourceMapTrees, until we find the original source map.\n */\nexport function originalPositionFor(\n source: Sources,\n line: number,\n column: number,\n name: string\n): SourceMapSegmentObject | null {\n if (!source.map) {\n return SegmentObject(source.source, line, column, name, source.content, source.ignore);\n }\n\n const segment = traceSegment(source.map, line, column);\n\n // If we couldn't find a segment, then this doesn't exist in the sourcemap.\n if (segment == null) return null;\n // 1-length segments only move the current generated column, there's no source information\n // to gather from it.\n if (segment.length === 1) return SOURCELESS_MAPPING;\n\n return originalPositionFor(\n source.sources[segment[1]],\n segment[2],\n segment[3],\n segment.length === 5 ? source.map.names[segment[4]] : name\n );\n}\n","import { TraceMap } from '@jridgewell/trace-mapping';\n\nimport { OriginalSource, MapSource } from './source-map-tree';\n\nimport type { Sources, MapSource as MapSourceType } from './source-map-tree';\nimport type { SourceMapInput, SourceMapLoader, LoaderContext } from './types';\n\nfunction asArray(value: T | T[]): T[] {\n if (Array.isArray(value)) return value;\n return [value];\n}\n\n/**\n * Recursively builds a tree structure out of sourcemap files, with each node\n * being either an `OriginalSource` \"leaf\" or a `SourceMapTree` composed of\n * `OriginalSource`s and `SourceMapTree`s.\n *\n * Every sourcemap is composed of a collection of source files and mappings\n * into locations of those source files. When we generate a `SourceMapTree` for\n * the sourcemap, we attempt to load each source file's own sourcemap. If it\n * does not have an associated sourcemap, it is considered an original,\n * unmodified source file.\n */\nexport default function buildSourceMapTree(\n input: SourceMapInput | SourceMapInput[],\n loader: SourceMapLoader\n): MapSourceType {\n const maps = asArray(input).map((m) => new TraceMap(m, ''));\n const map = maps.pop()!;\n\n for (let i = 0; i < maps.length; i++) {\n if (maps[i].sources.length > 1) {\n throw new Error(\n `Transformation map ${i} must have exactly one source file.\\n` +\n 'Did you specify these with the most recent transformation maps first?'\n );\n }\n }\n\n let tree = build(map, loader, '', 0);\n for (let i = maps.length - 1; i >= 0; i--) {\n tree = MapSource(maps[i], [tree]);\n }\n return tree;\n}\n\nfunction build(\n map: TraceMap,\n loader: SourceMapLoader,\n importer: string,\n importerDepth: number\n): MapSourceType {\n const { resolvedSources, sourcesContent, ignoreList } = map;\n\n const depth = importerDepth + 1;\n const children = resolvedSources.map((sourceFile: string | null, i: number): Sources => {\n // The loading context gives the loader more information about why this file is being loaded\n // (eg, from which importer). It also allows the loader to override the location of the loaded\n // sourcemap/original source, or to override the content in the sourcesContent field if it's\n // an unmodified source file.\n const ctx: LoaderContext = {\n importer,\n depth,\n source: sourceFile || '',\n content: undefined,\n ignore: undefined,\n };\n\n // Use the provided loader callback to retrieve the file's sourcemap.\n // TODO: We should eventually support async loading of sourcemap files.\n const sourceMap = loader(ctx.source, ctx);\n\n const { source, content, ignore } = ctx;\n\n // If there is a sourcemap, then we need to recurse into it to load its source files.\n if (sourceMap) return build(new TraceMap(sourceMap, source), loader, source, depth);\n\n // Else, it's an unmodified source file.\n // The contents of this unmodified source file can be overridden via the loader context,\n // allowing it to be explicitly null or a string. If it remains undefined, we fall back to\n // the importing sourcemap's `sourcesContent` field.\n const sourceContent =\n content !== undefined ? content : sourcesContent ? sourcesContent[i] : null;\n const ignored = ignore !== undefined ? ignore : ignoreList ? ignoreList.includes(i) : false;\n return OriginalSource(source, sourceContent, ignored);\n });\n\n return MapSource(map, children);\n}\n","import { toDecodedMap, toEncodedMap } from '@jridgewell/gen-mapping';\n\nimport type { GenMapping } from '@jridgewell/gen-mapping';\nimport type { DecodedSourceMap, EncodedSourceMap, Options } from './types';\n\n/**\n * A SourceMap v3 compatible sourcemap, which only includes fields that were\n * provided to it.\n */\nexport default class SourceMap {\n declare file?: string | null;\n declare mappings: EncodedSourceMap['mappings'] | DecodedSourceMap['mappings'];\n declare sourceRoot?: string;\n declare names: string[];\n declare sources: (string | null)[];\n declare sourcesContent?: (string | null)[];\n declare version: 3;\n declare ignoreList: number[] | undefined;\n\n constructor(map: GenMapping, options: Options) {\n const out = options.decodedMappings ? toDecodedMap(map) : toEncodedMap(map);\n this.version = out.version; // SourceMap spec says this should be first.\n this.file = out.file;\n this.mappings = out.mappings as SourceMap['mappings'];\n this.names = out.names as SourceMap['names'];\n this.ignoreList = out.ignoreList as SourceMap['ignoreList'];\n this.sourceRoot = out.sourceRoot;\n\n this.sources = out.sources as SourceMap['sources'];\n if (!options.excludeContent) {\n this.sourcesContent = out.sourcesContent as SourceMap['sourcesContent'];\n }\n }\n\n toString(): string {\n return JSON.stringify(this);\n }\n}\n","import buildSourceMapTree from './build-source-map-tree';\nimport { traceMappings } from './source-map-tree';\nimport SourceMap from './source-map';\n\nimport type { SourceMapInput, SourceMapLoader, Options } from './types';\nexport type {\n SourceMapSegment,\n EncodedSourceMap,\n EncodedSourceMap as RawSourceMap,\n DecodedSourceMap,\n SourceMapInput,\n SourceMapLoader,\n LoaderContext,\n Options,\n} from './types';\nexport type { SourceMap };\n\n/**\n * Traces through all the mappings in the root sourcemap, through the sources\n * (and their sourcemaps), all the way back to the original source location.\n *\n * `loader` will be called every time we encounter a source file. If it returns\n * a sourcemap, we will recurse into that sourcemap to continue the trace. If\n * it returns a falsey value, that source file is treated as an original,\n * unmodified source file.\n *\n * Pass `excludeContent` to exclude any self-containing source file content\n * from the output sourcemap.\n *\n * Pass `decodedMappings` to receive a SourceMap with decoded (instead of\n * VLQ encoded) mappings.\n */\nexport default function remapping(\n input: SourceMapInput | SourceMapInput[],\n loader: SourceMapLoader,\n options?: boolean | Options\n): SourceMap {\n const opts =\n typeof options === 'object' ? options : { excludeContent: !!options, decodedMappings: false };\n const tree = buildSourceMapTree(input, loader);\n return new SourceMap(traceMappings(tree), opts);\n}\n"],"names":["GenMapping","decodedMappings","maybeAddSegment","setSourceContent","setIgnore","traceSegment","TraceMap","toDecodedMap","toEncodedMap"],"mappings":";;;;;;IAgCA,MAAM,kBAAkB,mBAAmB,aAAa,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IACtF,MAAM,aAAa,GAAc,EAAE,CAAC;IAEpC,SAAS,aAAa,CACpB,MAAc,EACd,IAAY,EACZ,MAAc,EACd,IAAY,EACZ,OAAsB,EACtB,MAAe,EAAA;IAEf,IAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IACzD,CAAC;IAgBD,SAAS,MAAM,CACb,GAAoB,EACpB,OAAkB,EAClB,MAAmB,EACnB,OAAsB,EACtB,MAAe,EAAA;QAEf,OAAO;YACL,GAAG;YACH,OAAO;YACP,MAAM;YACN,OAAO;YACP,MAAM;SACA,CAAC;IACX,CAAC;IAED;;;IAGG;IACa,SAAA,SAAS,CAAC,GAAa,EAAE,OAAkB,EAAA;IACzD,IAAA,OAAO,MAAM,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IAC/C,CAAC;IAED;;;IAGG;aACa,cAAc,CAC5B,MAAc,EACd,OAAsB,EACtB,MAAe,EAAA;IAEf,IAAA,OAAO,MAAM,CAAC,IAAI,EAAE,aAAa,EAAE,MAAM,EAA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/node_modules/@ampproject/remapping/dist/types/build-source-map-tree.d.ts deleted file mode 100644 index f87fceab..00000000 --- a/node_modules/@ampproject/remapping/dist/types/build-source-map-tree.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { MapSource as MapSourceType } from './source-map-tree'; -import type { SourceMapInput, SourceMapLoader } from './types'; -/** - * Recursively builds a tree structure out of sourcemap files, with each node - * being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of - * `OriginalSource`s and `SourceMapTree`s. - * - * Every sourcemap is composed of a collection of source files and mappings - * into locations of those source files. When we generate a `SourceMapTree` for - * the sourcemap, we attempt to load each source file's own sourcemap. If it - * does not have an associated sourcemap, it is considered an original, - * unmodified source file. - */ -export default function buildSourceMapTree(input: SourceMapInput | SourceMapInput[], loader: SourceMapLoader): MapSourceType; diff --git a/node_modules/@ampproject/remapping/dist/types/remapping.d.ts b/node_modules/@ampproject/remapping/dist/types/remapping.d.ts deleted file mode 100644 index 771fe307..00000000 --- a/node_modules/@ampproject/remapping/dist/types/remapping.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import SourceMap from './source-map'; -import type { SourceMapInput, SourceMapLoader, Options } from './types'; -export type { SourceMapSegment, EncodedSourceMap, EncodedSourceMap as RawSourceMap, DecodedSourceMap, SourceMapInput, SourceMapLoader, LoaderContext, Options, } from './types'; -export type { SourceMap }; -/** - * Traces through all the mappings in the root sourcemap, through the sources - * (and their sourcemaps), all the way back to the original source location. - * - * `loader` will be called every time we encounter a source file. If it returns - * a sourcemap, we will recurse into that sourcemap to continue the trace. If - * it returns a falsey value, that source file is treated as an original, - * unmodified source file. - * - * Pass `excludeContent` to exclude any self-containing source file content - * from the output sourcemap. - * - * Pass `decodedMappings` to receive a SourceMap with decoded (instead of - * VLQ encoded) mappings. - */ -export default function remapping(input: SourceMapInput | SourceMapInput[], loader: SourceMapLoader, options?: boolean | Options): SourceMap; diff --git a/node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts b/node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts deleted file mode 100644 index 935bc698..00000000 --- a/node_modules/@ampproject/remapping/dist/types/source-map-tree.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { GenMapping } from '@jridgewell/gen-mapping'; -import type { TraceMap } from '@jridgewell/trace-mapping'; -export declare type SourceMapSegmentObject = { - column: number; - line: number; - name: string; - source: string; - content: string | null; - ignore: boolean; -}; -export declare type OriginalSource = { - map: null; - sources: Sources[]; - source: string; - content: string | null; - ignore: boolean; -}; -export declare type MapSource = { - map: TraceMap; - sources: Sources[]; - source: string; - content: null; - ignore: false; -}; -export declare type Sources = OriginalSource | MapSource; -/** - * MapSource represents a single sourcemap, with the ability to trace mappings into its child nodes - * (which may themselves be SourceMapTrees). - */ -export declare function MapSource(map: TraceMap, sources: Sources[]): MapSource; -/** - * A "leaf" node in the sourcemap tree, representing an original, unmodified source file. Recursive - * segment tracing ends at the `OriginalSource`. - */ -export declare function OriginalSource(source: string, content: string | null, ignore: boolean): OriginalSource; -/** - * traceMappings is only called on the root level SourceMapTree, and begins the process of - * resolving each mapping in terms of the original source files. - */ -export declare function traceMappings(tree: MapSource): GenMapping; -/** - * originalPositionFor is only called on children SourceMapTrees. It recurses down into its own - * child SourceMapTrees, until we find the original source map. - */ -export declare function originalPositionFor(source: Sources, line: number, column: number, name: string): SourceMapSegmentObject | null; diff --git a/node_modules/@ampproject/remapping/dist/types/source-map.d.ts b/node_modules/@ampproject/remapping/dist/types/source-map.d.ts deleted file mode 100644 index cbd7f0af..00000000 --- a/node_modules/@ampproject/remapping/dist/types/source-map.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type { GenMapping } from '@jridgewell/gen-mapping'; -import type { DecodedSourceMap, EncodedSourceMap, Options } from './types'; -/** - * A SourceMap v3 compatible sourcemap, which only includes fields that were - * provided to it. - */ -export default class SourceMap { - file?: string | null; - mappings: EncodedSourceMap['mappings'] | DecodedSourceMap['mappings']; - sourceRoot?: string; - names: string[]; - sources: (string | null)[]; - sourcesContent?: (string | null)[]; - version: 3; - ignoreList: number[] | undefined; - constructor(map: GenMapping, options: Options); - toString(): string; -} diff --git a/node_modules/@ampproject/remapping/dist/types/types.d.ts b/node_modules/@ampproject/remapping/dist/types/types.d.ts deleted file mode 100644 index 4d78c4bc..00000000 --- a/node_modules/@ampproject/remapping/dist/types/types.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { SourceMapInput } from '@jridgewell/trace-mapping'; -export type { SourceMapSegment, DecodedSourceMap, EncodedSourceMap, } from '@jridgewell/trace-mapping'; -export type { SourceMapInput }; -export declare type LoaderContext = { - readonly importer: string; - readonly depth: number; - source: string; - content: string | null | undefined; - ignore: boolean | undefined; -}; -export declare type SourceMapLoader = (file: string, ctx: LoaderContext) => SourceMapInput | null | undefined | void; -export declare type Options = { - excludeContent?: boolean; - decodedMappings?: boolean; -}; diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/CHANGELOG.md b/node_modules/@bcoe/v8-coverage/dist/lib/CHANGELOG.md deleted file mode 100644 index 7300dec3..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/CHANGELOG.md +++ /dev/null @@ -1,250 +0,0 @@ -## Next - -- **[Breaking change]** Replace `OutModules` enum by custom compiler option `mjsModule`. -- **[Breaking change]** Drop support for Pug, Sass, Angular & Webpack. -- **[Feature]** Expose custom registries for each target. -- **[Feature]** Add `dist.tscOptions` for `lib` target to override options for - distribution builds. -- **[Feature]** Native ESM tests with mocha. -- **[Fix]** Disable deprecated TsLint rules from the default config -- **[Fix]** Remove use of experimental `fs/promises` module. -- **[Internal]** Fix continuous deployment script (stop confusing PRs to master - with push to master) -- **[Internal]** Update dependencies -- **[Internal]** Fix deprecated Mocha types. - -## 0.17.1 (2017-05-03) - -- **[Fix]** Update dependencies, remove `std/esm` warning. - -## 0.17.0 (2017-04-22) - -- **[Breaking change]** Update dependencies. Use `esm` instead of `@std/esm`, update Typescript to `2.8.3`. -- **[Fix]** Fix Node processes spawn on Windows (Mocha, Nyc) - -## 0.16.2 (2017-02-07) - -- **[Fix]** Fix Typedoc generation: use `tsconfig.json` generated for the lib. -- **[Fix]** Write source map for `.mjs` files -- **[Fix]** Copy sources to `_src` when publishing a lib (#87). -- **[Internal]** Restore continuous deployment of documentation. - -## 0.16.1 (2017-01-20) - -- **[Feature]** Support `mocha` tests on `.mjs` files (using `@std/esm`). Enabled by default - if `outModules` is configured to emit `.mjs`. **You currently need to add - `"@std/esm": {"esm": "cjs"}` to your `package.json`.** - -## 0.16.0 (2017-01-09) - -- **[Breaking change]** Enable `allowSyntheticDefaultImports` and `esModuleInterop` by default -- **[Fix]** Allow deep module imports in default Tslint rules -- **[Fix]** Drop dependency on deprecated `gulp-util` -- **[Internal]** Replace most custom typings by types from `@types` - -## 0.15.8 (2017-12-05) - -- **[Fix]** Exit with non-zero code if command tested with coverage fails -- **[Fix]** Solve duplicated error message when using the `run` mocha task. -- **[Fix]** Exit with non-zero code when building scripts fails. - -## 0.15.7 (2017-11-29) - -- **[Feature]** Add `coverage` task to `mocha` target, use it for the default task - -## 0.15.6 (2017-11-29) - -- **[Fix]** Fix path to source in source maps. -- **[Fix]** Disable `number-literal-format` in default Tslint rules. It enforced uppercase for hex. -- **[Internal]** Enable integration with Greenkeeper. -- **[Internal]** Enable integration with Codecov -- **[Internal]** Enable code coverage - -## 0.15.5 (2017-11-10) - -- **[Feature]** Enable the following TsLint rules: `no-duplicate-switch-case`, `no-implicit-dependencies`, - `no-return-await` -- **[Internal]** Update self-dependency `0.15.4`, this restores the README on _npm_ -- **[Internal]** Add homepage and author fields to package.json - -## 0.15.4 (2017-11-10) - -- **[Fix]** Add support for custom additional copy for distribution builds. [#49](https://github.com/demurgos/turbo-gulp/issues/49) -- **[Internal]** Update self-dependency to `turbo-gulp` -- **[Internal]** Add link to license in `README.md` - -## 0.15.3 (2017-11-09) - -**Rename to `turbo-gulp`**. This package was previously named `demurgos-web-build-tools`. -This version is fully compatible: you can just change the name of your dependency. - -## 0.15.2 (2017-11-09) - -**The package is prepared to be renamed `turbo-gulp`.** -This is the last version released as `demurgos-web-build-tools`. - -- **[Feature]** Add support for watch mode for library targets. -- **[Fix]** Disable experimental support for `*.mjs` by default. -- **[Fix]** Do not emit duplicate TS errors - -## 0.15.1 (2017-10-19) - -- **[Feature]** Add experimental support for `*.mjs` files -- **[Fix]** Fix support of releases from Continuous Deployment using Travis. - -## 0.15.0 (2017-10-18) - -- **[Fix]** Add error handling for git deployment. -- **[Internal]** Enable continuous deployment of the `master` branch. - -## 0.15.0-beta.11 (2017-08-29) - -- **[Feature]** Add `LibTarget.dist.copySrc` option to disable copy of source files to the dist directory. - This allows to prevent issues with missing custom typings. -- **[Fix]** Mark `deploy` property of `LibTarget.typedoc` as optional. -- **[Internal]** Update self-dependency to `v0.15.0-beta.10`. - -## 0.15.0-beta.10 (2017-08-28) - -- **[Breaking]** Update Tslint rules to use `tslint@5.7.0`. -- **[Fix]** Set `allowJs` to false in default TSC options. -- **[Fix]** Do not pipe output of git commands to stdout. -- **[Internal]** Update self-dependency to `v0.15.0-beta.9`. - -## 0.15.0-beta.9 (2017-08-28) - -- **[Breaking]** Drop old-style `test` target. -- **[Breaking]** Drop old-style `node` target. -- **[Feature]** Add `mocha` target to run tests in `spec.ts` files. -- **[Feature]** Add `node` target to build and run top-level Node applications. -- **[Feature]** Provide `generateNodeTasks`, `generateLibTasks` and `generateMochaTasks` functions. - They create the tasks but do not register them. -- **[Fix]** Run `clean` before `dist`, if defined. -- **[Fix]** Run `dist` before `publish`. - -## 0.15.0-beta.8 (2017-08-26) - -- **[Fix]** Remove auth token and registry options for `:dist:publish`. It is better served - by configuring the environment appropriately. - -## 0.15.0-beta.7 (2017-08-26) - -- **[Feature]** Add `clean` task to `lib` targets. -- **[Fix]** Ensure that `gitHead` is defined when publishing a package to npm. - -## 0.15.0-beta.6 (2017-08-22) - -- **[Feature]** Add support for Typedoc deployment to a remote git branch (such as `gh-pages`) -- **[Feature]** Add support for `copy` tasks in new library target. -- **[Fix]** Resolve absolute paths when compiling scripts with custom typings. - -## 0.15.0-beta.5 (2017-08-14) - -- **[Fix]** Fix package entry for the main module. - -## 0.15.0-beta.4 (2017-08-14) - -- **[Breaking]** Drop ES5 build exposed to browsers with the `browser` field in `package.json`. -- **[Feature]** Introduce first new-style target (`LibTarget`). it supports typedoc generation, dev builds and - simple distribution. - -## 0.15.0-beta.3 (2017-08-11) - -- **[Breaking]** Update default lib target to use target-specific `srcDir`. -- **[Feature]** Allow to complete `srcDir` in target. -- **[Feature]** Add experimental library distribution supporting deep requires. - -## 0.15.0-beta.2 (2017-08-10) - -- **[Fix]** Default to CommonJS for project tsconfig.json -- **[Fix]** Add Typescript configuration for default project. -- **[Internal]** Update self-dependency to `0.15.0-beta.1`. - -## 0.15.0-beta.1 (2017-08-09) - -- **[Feature]** Support typed TSLint rules. -- **[Internal]** Update gulpfile.ts to use build tools `0.15.0-beta.0`. -- **[Fix]** Fix regressions caused by `0.15.0-beta.0` (missing type definition). - -## 0.15.0-beta.0 (2017-08-09) - -- **[Breaking]** Expose option interfaces directly in the main module instead of the `config` namespace. -- **[Breaking]** Rename `DEFAULT_PROJECT_OPTIONS` to `DEFAULT_PROJECT`. -- **[Feature]** Emit project-wide `tsconfig.json`. -- **[Internal]** Convert gulpfile to Typescript, use `ts-node` to run it. -- **[Internal]** Update dependencies - -## 0.14.3 (2017-07-16) - -- **[Feature]** Add `:lint:fix` project task to fix some lint errors. - -## 0.14.2 (2017-07-10) - -- **[Internal]** Update dependencies: add `package-lock.json` and update `tslint`. - -## 0.14.1 (2017-06-17) - -- **[Internal]** Update dependencies. -- **[Internal]** Drop dependency on _Bluebird_. -- **[Internal]** Drop dependency on _typings_. - -## 0.14.0 (2017-05-10) - -- **[Breaking]** Enforce trailing commas by default for multiline objects -- **[Feature]** Allow bump from either `master` or a branch with the same name as the tag (exampel: `v1.2.3`) -- **[Feature]** Support TSLint 8, allow to extend the default rules -- **[Patch]** Allow mergeable namespaces - -# 0.13.1 - -- **[Patch]** Allow namespaces in the default TS-Lint config - -# 0.13.0 - -- **[Breaking]** Major overhaul of the angular target. The server build no longer depends on the client. -- **[Breaking]** Update to `gulp@4` (from `gulp@3`) -- **[Breaking]** Update to `tslint@7` (from `tslint@6`), add stricter default rules -- **[Breaking]** Update signature of targetGenerators and project tasks: it only uses - `ProjectOptions` and `Target` now, the additional options are embedded in those two objects. -- **[Breaking]** Remove `:install`, `:instal:npm` and `:install:typings`. Use the `prepare` script in - your `package.json` file instead. -- Add `:tslint.json` project task to generate configuration for `tslint` -- Add first class support for processing of `pug` and `sass` files, similar to `copy` -- Implement end-to-end tests -- Enable `emitDecoratorMetadata` in default typescript options. -- Allow configuration of `:lint` with the `tslintOptions` property of the project configuration. -- Add `:watch` tasks for incremental builds. - -# 0.12.3 - -- Support `templateUrl` and `styleUrls` in angular modules. - -# 0.12.2 - -- Add `:build:copy` task. It copies user-defined files. - -# 0.12.1 - -- Fix `:watch` task. - -# 0.12.0 - -- **[Breaking]**: Change naming convention for tasks. The names primary part is - the target, then the action (`lib:build` instead of `build:lib`) to group - the tasks per target. -- **[Breaking]**: Use `typeRoots` instead of `definitions` in configuration to - specify Typescript definition files. -- Generate `tsconfig.json` file (mainly for editors) -- Implement the `test` target to run unit-tests with `mocha`. - -# 0.11.2 - -- Target `angular`: Add `build::assets:sass` for `.scss` files (Sassy CSS) - -# 0.11.1 - -- Rename project to `web-build-tools` (`demurgos-web-build-tools` on _npm_) -- Target `angular`: Add `build::assets`, `build::pug` and `build::static`. -- Update `gulp-typescript`: solve error message during compilation -- Targets `node` and `angular`: `build::scripts` now include in-lined source maps -- Target `node`: `watch:` to support incremental builds diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/LICENSE.md b/node_modules/@bcoe/v8-coverage/dist/lib/LICENSE.md deleted file mode 100644 index d588b5c3..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright © 2015-2017 Charles Samborski - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/README.md b/node_modules/@bcoe/v8-coverage/dist/lib/README.md deleted file mode 100644 index eea761b9..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# V8 Coverage - -[![npm](https://img.shields.io/npm/v/@c88/v8-coverage.svg?maxAge=2592000)](https://www.npmjs.com/package/@c88/v8-coverage) -[![GitHub repository](https://img.shields.io/badge/Github-demurgos%2Fv8--coverage-blue.svg)](https://github.com/demurgos/v8-coverage) -[![Build status (Travis)](https://img.shields.io/travis/demurgos/v8-coverage/master.svg?maxAge=2592000)](https://travis-ci.org/demurgos/v8-coverage) -[![Build status (AppVeyor)](https://ci.appveyor.com/api/projects/status/qgcbdffyb9e09d0e?svg=true)](https://ci.appveyor.com/project/demurgos/v8-coverage) -[![Codecov](https://codecov.io/gh/demurgos/v8-coverage/branch/master/graph/badge.svg)](https://codecov.io/gh/demurgos/v8-coverage) - -## License - -[MIT License](./LICENSE.md) diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/_src/ascii.ts b/node_modules/@bcoe/v8-coverage/dist/lib/_src/ascii.ts deleted file mode 100644 index 5a52b911..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/_src/ascii.ts +++ /dev/null @@ -1,146 +0,0 @@ -import { compareRangeCovs } from "./compare"; -import { RangeCov } from "./types"; - -interface ReadonlyRangeTree { - readonly start: number; - readonly end: number; - readonly count: number; - readonly children: ReadonlyRangeTree[]; -} - -export function emitForest(trees: ReadonlyArray): string { - return emitForestLines(trees).join("\n"); -} - -export function emitForestLines(trees: ReadonlyArray): string[] { - const colMap: Map = getColMap(trees); - const header: string = emitOffsets(colMap); - return [header, ...trees.map(tree => emitTree(tree, colMap).join("\n"))]; -} - -function getColMap(trees: Iterable): Map { - const eventSet: Set = new Set(); - for (const tree of trees) { - const stack: ReadonlyRangeTree[] = [tree]; - while (stack.length > 0) { - const cur: ReadonlyRangeTree = stack.pop()!; - eventSet.add(cur.start); - eventSet.add(cur.end); - for (const child of cur.children) { - stack.push(child); - } - } - } - const events: number[] = [...eventSet]; - events.sort((a, b) => a - b); - let maxDigits: number = 1; - for (const event of events) { - maxDigits = Math.max(maxDigits, event.toString(10).length); - } - const colWidth: number = maxDigits + 3; - const colMap: Map = new Map(); - for (const [i, event] of events.entries()) { - colMap.set(event, i * colWidth); - } - return colMap; -} - -function emitTree(tree: ReadonlyRangeTree, colMap: Map): string[] { - const layers: ReadonlyRangeTree[][] = []; - let nextLayer: ReadonlyRangeTree[] = [tree]; - while (nextLayer.length > 0) { - const layer: ReadonlyRangeTree[] = nextLayer; - layers.push(layer); - nextLayer = []; - for (const node of layer) { - for (const child of node.children) { - nextLayer.push(child); - } - } - } - return layers.map(layer => emitTreeLayer(layer, colMap)); -} - -export function parseFunctionRanges(text: string, offsetMap: Map): RangeCov[] { - const result: RangeCov[] = []; - for (const line of text.split("\n")) { - for (const range of parseTreeLayer(line, offsetMap)) { - result.push(range); - } - } - result.sort(compareRangeCovs); - return result; -} - -/** - * - * @param layer Sorted list of disjoint trees. - * @param colMap - */ -function emitTreeLayer(layer: ReadonlyRangeTree[], colMap: Map): string { - const line: string[] = []; - let curIdx: number = 0; - for (const {start, end, count} of layer) { - const startIdx: number = colMap.get(start)!; - const endIdx: number = colMap.get(end)!; - if (startIdx > curIdx) { - line.push(" ".repeat(startIdx - curIdx)); - } - line.push(emitRange(count, endIdx - startIdx)); - curIdx = endIdx; - } - return line.join(""); -} - -function parseTreeLayer(text: string, offsetMap: Map): RangeCov[] { - const result: RangeCov[] = []; - const regex: RegExp = /\[(\d+)-*\)/gs; - while (true) { - const match: RegExpMatchArray | null = regex.exec(text); - if (match === null) { - break; - } - const startIdx: number = match.index!; - const endIdx: number = startIdx + match[0].length; - const count: number = parseInt(match[1], 10); - const startOffset: number | undefined = offsetMap.get(startIdx); - const endOffset: number | undefined = offsetMap.get(endIdx); - if (startOffset === undefined || endOffset === undefined) { - throw new Error(`Invalid offsets for: ${JSON.stringify(text)}`); - } - result.push({startOffset, endOffset, count}); - } - return result; -} - -function emitRange(count: number, len: number): string { - const rangeStart: string = `[${count.toString(10)}`; - const rangeEnd: string = ")"; - const hyphensLen: number = len - (rangeStart.length + rangeEnd.length); - const hyphens: string = "-".repeat(Math.max(0, hyphensLen)); - return `${rangeStart}${hyphens}${rangeEnd}`; -} - -function emitOffsets(colMap: Map): string { - let line: string = ""; - for (const [event, col] of colMap) { - if (line.length < col) { - line += " ".repeat(col - line.length); - } - line += event.toString(10); - } - return line; -} - -export function parseOffsets(text: string): Map { - const result: Map = new Map(); - const regex: RegExp = /\d+/gs; - while (true) { - const match: RegExpExecArray | null = regex.exec(text); - if (match === null) { - break; - } - result.set(match.index, parseInt(match[0], 10)); - } - return result; -} diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/_src/clone.ts b/node_modules/@bcoe/v8-coverage/dist/lib/_src/clone.ts deleted file mode 100644 index 1a910193..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/_src/clone.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { FunctionCov, ProcessCov, RangeCov, ScriptCov } from "./types"; - -/** - * Creates a deep copy of a process coverage. - * - * @param processCov Process coverage to clone. - * @return Cloned process coverage. - */ -export function cloneProcessCov(processCov: Readonly): ProcessCov { - const result: ScriptCov[] = []; - for (const scriptCov of processCov.result) { - result.push(cloneScriptCov(scriptCov)); - } - - return { - result, - }; -} - -/** - * Creates a deep copy of a script coverage. - * - * @param scriptCov Script coverage to clone. - * @return Cloned script coverage. - */ -export function cloneScriptCov(scriptCov: Readonly): ScriptCov { - const functions: FunctionCov[] = []; - for (const functionCov of scriptCov.functions) { - functions.push(cloneFunctionCov(functionCov)); - } - - return { - scriptId: scriptCov.scriptId, - url: scriptCov.url, - functions, - }; -} - -/** - * Creates a deep copy of a function coverage. - * - * @param functionCov Function coverage to clone. - * @return Cloned function coverage. - */ -export function cloneFunctionCov(functionCov: Readonly): FunctionCov { - const ranges: RangeCov[] = []; - for (const rangeCov of functionCov.ranges) { - ranges.push(cloneRangeCov(rangeCov)); - } - - return { - functionName: functionCov.functionName, - ranges, - isBlockCoverage: functionCov.isBlockCoverage, - }; -} - -/** - * Creates a deep copy of a function coverage. - * - * @param rangeCov Range coverage to clone. - * @return Cloned range coverage. - */ -export function cloneRangeCov(rangeCov: Readonly): RangeCov { - return { - startOffset: rangeCov.startOffset, - endOffset: rangeCov.endOffset, - count: rangeCov.count, - }; -} diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/_src/compare.ts b/node_modules/@bcoe/v8-coverage/dist/lib/_src/compare.ts deleted file mode 100644 index 8f5614c2..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/_src/compare.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { FunctionCov, RangeCov, ScriptCov } from "./types"; - -/** - * Compares two script coverages. - * - * The result corresponds to the comparison of their `url` value (alphabetical sort). - */ -export function compareScriptCovs(a: Readonly, b: Readonly): number { - if (a.url === b.url) { - return 0; - } else if (a.url < b.url) { - return -1; - } else { - return 1; - } -} - -/** - * Compares two function coverages. - * - * The result corresponds to the comparison of the root ranges. - */ -export function compareFunctionCovs(a: Readonly, b: Readonly): number { - return compareRangeCovs(a.ranges[0], b.ranges[0]); -} - -/** - * Compares two range coverages. - * - * The ranges are first ordered by ascending `startOffset` and then by - * descending `endOffset`. - * This corresponds to a pre-order tree traversal. - */ -export function compareRangeCovs(a: Readonly, b: Readonly): number { - if (a.startOffset !== b.startOffset) { - return a.startOffset - b.startOffset; - } else { - return b.endOffset - a.endOffset; - } -} diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/_src/index.ts b/node_modules/@bcoe/v8-coverage/dist/lib/_src/index.ts deleted file mode 100644 index f92bdf3d..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/_src/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export { emitForest, emitForestLines, parseFunctionRanges, parseOffsets } from "./ascii"; -export { cloneFunctionCov, cloneProcessCov, cloneScriptCov, cloneRangeCov } from "./clone"; -export { compareScriptCovs, compareFunctionCovs, compareRangeCovs } from "./compare"; -export { mergeFunctionCovs, mergeProcessCovs, mergeScriptCovs } from "./merge"; -export { RangeTree } from "./range-tree"; -export { ProcessCov, ScriptCov, FunctionCov, RangeCov } from "./types"; diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/_src/merge.ts b/node_modules/@bcoe/v8-coverage/dist/lib/_src/merge.ts deleted file mode 100644 index 64d19184..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/_src/merge.ts +++ /dev/null @@ -1,343 +0,0 @@ -import { - deepNormalizeScriptCov, - normalizeFunctionCov, - normalizeProcessCov, - normalizeRangeTree, - normalizeScriptCov, -} from "./normalize"; -import { RangeTree } from "./range-tree"; -import { FunctionCov, ProcessCov, Range, RangeCov, ScriptCov } from "./types"; - -/** - * Merges a list of process coverages. - * - * The result is normalized. - * The input values may be mutated, it is not safe to use them after passing - * them to this function. - * The computation is synchronous. - * - * @param processCovs Process coverages to merge. - * @return Merged process coverage. - */ -export function mergeProcessCovs(processCovs: ReadonlyArray): ProcessCov { - if (processCovs.length === 0) { - return {result: []}; - } - - const urlToScripts: Map = new Map(); - for (const processCov of processCovs) { - for (const scriptCov of processCov.result) { - let scriptCovs: ScriptCov[] | undefined = urlToScripts.get(scriptCov.url); - if (scriptCovs === undefined) { - scriptCovs = []; - urlToScripts.set(scriptCov.url, scriptCovs); - } - scriptCovs.push(scriptCov); - } - } - - const result: ScriptCov[] = []; - for (const scripts of urlToScripts.values()) { - // assert: `scripts.length > 0` - result.push(mergeScriptCovs(scripts)!); - } - const merged: ProcessCov = {result}; - - normalizeProcessCov(merged); - return merged; -} - -/** - * Merges a list of matching script coverages. - * - * Scripts are matching if they have the same `url`. - * The result is normalized. - * The input values may be mutated, it is not safe to use them after passing - * them to this function. - * The computation is synchronous. - * - * @param scriptCovs Process coverages to merge. - * @return Merged script coverage, or `undefined` if the input list was empty. - */ -export function mergeScriptCovs(scriptCovs: ReadonlyArray): ScriptCov | undefined { - if (scriptCovs.length === 0) { - return undefined; - } else if (scriptCovs.length === 1) { - const merged: ScriptCov = scriptCovs[0]; - deepNormalizeScriptCov(merged); - return merged; - } - - const first: ScriptCov = scriptCovs[0]; - const scriptId: string = first.scriptId; - const url: string = first.url; - - const rangeToFuncs: Map = new Map(); - for (const scriptCov of scriptCovs) { - for (const funcCov of scriptCov.functions) { - const rootRange: string = stringifyFunctionRootRange(funcCov); - let funcCovs: FunctionCov[] | undefined = rangeToFuncs.get(rootRange); - - if (funcCovs === undefined || - // if the entry in rangeToFuncs is function-level granularity and - // the new coverage is block-level, prefer block-level. - (!funcCovs[0].isBlockCoverage && funcCov.isBlockCoverage)) { - funcCovs = []; - rangeToFuncs.set(rootRange, funcCovs); - } else if (funcCovs[0].isBlockCoverage && !funcCov.isBlockCoverage) { - // if the entry in rangeToFuncs is block-level granularity, we should - // not append function level granularity. - continue; - } - funcCovs.push(funcCov); - } - } - - const functions: FunctionCov[] = []; - for (const funcCovs of rangeToFuncs.values()) { - // assert: `funcCovs.length > 0` - functions.push(mergeFunctionCovs(funcCovs)!); - } - - const merged: ScriptCov = {scriptId, url, functions}; - normalizeScriptCov(merged); - return merged; -} - -/** - * Returns a string representation of the root range of the function. - * - * This string can be used to match function with same root range. - * The string is derived from the start and end offsets of the root range of - * the function. - * This assumes that `ranges` is non-empty (true for valid function coverages). - * - * @param funcCov Function coverage with the range to stringify - * @internal - */ -function stringifyFunctionRootRange(funcCov: Readonly): string { - const rootRange: RangeCov = funcCov.ranges[0]; - return `${rootRange.startOffset.toString(10)};${rootRange.endOffset.toString(10)}`; -} - -/** - * Merges a list of matching function coverages. - * - * Functions are matching if their root ranges have the same span. - * The result is normalized. - * The input values may be mutated, it is not safe to use them after passing - * them to this function. - * The computation is synchronous. - * - * @param funcCovs Function coverages to merge. - * @return Merged function coverage, or `undefined` if the input list was empty. - */ -export function mergeFunctionCovs(funcCovs: ReadonlyArray): FunctionCov | undefined { - if (funcCovs.length === 0) { - return undefined; - } else if (funcCovs.length === 1) { - const merged: FunctionCov = funcCovs[0]; - normalizeFunctionCov(merged); - return merged; - } - - const functionName: string = funcCovs[0].functionName; - - const trees: RangeTree[] = []; - for (const funcCov of funcCovs) { - // assert: `fn.ranges.length > 0` - // assert: `fn.ranges` is sorted - trees.push(RangeTree.fromSortedRanges(funcCov.ranges)!); - } - - // assert: `trees.length > 0` - const mergedTree: RangeTree = mergeRangeTrees(trees)!; - normalizeRangeTree(mergedTree); - const ranges: RangeCov[] = mergedTree.toRanges(); - const isBlockCoverage: boolean = !(ranges.length === 1 && ranges[0].count === 0); - - const merged: FunctionCov = {functionName, ranges, isBlockCoverage}; - // assert: `merged` is normalized - return merged; -} - -/** - * @precondition Same `start` and `end` for all the trees - */ -function mergeRangeTrees(trees: ReadonlyArray): RangeTree | undefined { - if (trees.length <= 1) { - return trees[0]; - } - const first: RangeTree = trees[0]; - let delta: number = 0; - for (const tree of trees) { - delta += tree.delta; - } - const children: RangeTree[] = mergeRangeTreeChildren(trees); - return new RangeTree(first.start, first.end, delta, children); -} - -class RangeTreeWithParent { - readonly parentIndex: number; - readonly tree: RangeTree; - - constructor(parentIndex: number, tree: RangeTree) { - this.parentIndex = parentIndex; - this.tree = tree; - } -} - -class StartEvent { - readonly offset: number; - readonly trees: RangeTreeWithParent[]; - - constructor(offset: number, trees: RangeTreeWithParent[]) { - this.offset = offset; - this.trees = trees; - } - - static compare(a: StartEvent, b: StartEvent): number { - return a.offset - b.offset; - } -} - -class StartEventQueue { - private readonly queue: StartEvent[]; - private nextIndex: number; - private pendingOffset: number; - private pendingTrees: RangeTreeWithParent[] | undefined; - - private constructor(queue: StartEvent[]) { - this.queue = queue; - this.nextIndex = 0; - this.pendingOffset = 0; - this.pendingTrees = undefined; - } - - static fromParentTrees(parentTrees: ReadonlyArray): StartEventQueue { - const startToTrees: Map = new Map(); - for (const [parentIndex, parentTree] of parentTrees.entries()) { - for (const child of parentTree.children) { - let trees: RangeTreeWithParent[] | undefined = startToTrees.get(child.start); - if (trees === undefined) { - trees = []; - startToTrees.set(child.start, trees); - } - trees.push(new RangeTreeWithParent(parentIndex, child)); - } - } - const queue: StartEvent[] = []; - for (const [startOffset, trees] of startToTrees) { - queue.push(new StartEvent(startOffset, trees)); - } - queue.sort(StartEvent.compare); - return new StartEventQueue(queue); - } - - setPendingOffset(offset: number): void { - this.pendingOffset = offset; - } - - pushPendingTree(tree: RangeTreeWithParent): void { - if (this.pendingTrees === undefined) { - this.pendingTrees = []; - } - this.pendingTrees.push(tree); - } - - next(): StartEvent | undefined { - const pendingTrees: RangeTreeWithParent[] | undefined = this.pendingTrees; - const nextEvent: StartEvent | undefined = this.queue[this.nextIndex]; - if (pendingTrees === undefined) { - this.nextIndex++; - return nextEvent; - } else if (nextEvent === undefined) { - this.pendingTrees = undefined; - return new StartEvent(this.pendingOffset, pendingTrees); - } else { - if (this.pendingOffset < nextEvent.offset) { - this.pendingTrees = undefined; - return new StartEvent(this.pendingOffset, pendingTrees); - } else { - if (this.pendingOffset === nextEvent.offset) { - this.pendingTrees = undefined; - for (const tree of pendingTrees) { - nextEvent.trees.push(tree); - } - } - this.nextIndex++; - return nextEvent; - } - } - } -} - -function mergeRangeTreeChildren(parentTrees: ReadonlyArray): RangeTree[] { - const result: RangeTree[] = []; - const startEventQueue: StartEventQueue = StartEventQueue.fromParentTrees(parentTrees); - const parentToNested: Map = new Map(); - let openRange: Range | undefined; - - while (true) { - const event: StartEvent | undefined = startEventQueue.next(); - if (event === undefined) { - break; - } - - if (openRange !== undefined && openRange.end <= event.offset) { - result.push(nextChild(openRange, parentToNested)); - openRange = undefined; - } - - if (openRange === undefined) { - let openRangeEnd: number = event.offset + 1; - for (const {parentIndex, tree} of event.trees) { - openRangeEnd = Math.max(openRangeEnd, tree.end); - insertChild(parentToNested, parentIndex, tree); - } - startEventQueue.setPendingOffset(openRangeEnd); - openRange = {start: event.offset, end: openRangeEnd}; - } else { - for (const {parentIndex, tree} of event.trees) { - if (tree.end > openRange.end) { - const right: RangeTree = tree.split(openRange.end); - startEventQueue.pushPendingTree(new RangeTreeWithParent(parentIndex, right)); - } - insertChild(parentToNested, parentIndex, tree); - } - } - } - if (openRange !== undefined) { - result.push(nextChild(openRange, parentToNested)); - } - - return result; -} - -function insertChild(parentToNested: Map, parentIndex: number, tree: RangeTree): void { - let nested: RangeTree[] | undefined = parentToNested.get(parentIndex); - if (nested === undefined) { - nested = []; - parentToNested.set(parentIndex, nested); - } - nested.push(tree); -} - -function nextChild(openRange: Range, parentToNested: Map): RangeTree { - const matchingTrees: RangeTree[] = []; - - for (const nested of parentToNested.values()) { - if (nested.length === 1 && nested[0].start === openRange.start && nested[0].end === openRange.end) { - matchingTrees.push(nested[0]); - } else { - matchingTrees.push(new RangeTree( - openRange.start, - openRange.end, - 0, - nested, - )); - } - } - parentToNested.clear(); - return mergeRangeTrees(matchingTrees)!; -} diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/_src/normalize.ts b/node_modules/@bcoe/v8-coverage/dist/lib/_src/normalize.ts deleted file mode 100644 index 02691161..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/_src/normalize.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { compareFunctionCovs, compareRangeCovs, compareScriptCovs } from "./compare"; -import { RangeTree } from "./range-tree"; -import { FunctionCov, ProcessCov, ScriptCov } from "./types"; - -/** - * Normalizes a process coverage. - * - * Sorts the scripts alphabetically by `url`. - * Reassigns script ids: the script at index `0` receives `"0"`, the script at - * index `1` receives `"1"` etc. - * This does not normalize the script coverages. - * - * @param processCov Process coverage to normalize. - */ -export function normalizeProcessCov(processCov: ProcessCov): void { - processCov.result.sort(compareScriptCovs); - for (const [scriptId, scriptCov] of processCov.result.entries()) { - scriptCov.scriptId = scriptId.toString(10); - } -} - -/** - * Normalizes a process coverage deeply. - * - * Normalizes the script coverages deeply, then normalizes the process coverage - * itself. - * - * @param processCov Process coverage to normalize. - */ -export function deepNormalizeProcessCov(processCov: ProcessCov): void { - for (const scriptCov of processCov.result) { - deepNormalizeScriptCov(scriptCov); - } - normalizeProcessCov(processCov); -} - -/** - * Normalizes a script coverage. - * - * Sorts the function by root range (pre-order sort). - * This does not normalize the function coverages. - * - * @param scriptCov Script coverage to normalize. - */ -export function normalizeScriptCov(scriptCov: ScriptCov): void { - scriptCov.functions.sort(compareFunctionCovs); -} - -/** - * Normalizes a script coverage deeply. - * - * Normalizes the function coverages deeply, then normalizes the script coverage - * itself. - * - * @param scriptCov Script coverage to normalize. - */ -export function deepNormalizeScriptCov(scriptCov: ScriptCov): void { - for (const funcCov of scriptCov.functions) { - normalizeFunctionCov(funcCov); - } - normalizeScriptCov(scriptCov); -} - -/** - * Normalizes a function coverage. - * - * Sorts the ranges (pre-order sort). - * TODO: Tree-based normalization of the ranges. - * - * @param funcCov Function coverage to normalize. - */ -export function normalizeFunctionCov(funcCov: FunctionCov): void { - funcCov.ranges.sort(compareRangeCovs); - const tree: RangeTree = RangeTree.fromSortedRanges(funcCov.ranges)!; - normalizeRangeTree(tree); - funcCov.ranges = tree.toRanges(); -} - -/** - * @internal - */ -export function normalizeRangeTree(tree: RangeTree): void { - tree.normalize(); -} diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/_src/range-tree.ts b/node_modules/@bcoe/v8-coverage/dist/lib/_src/range-tree.ts deleted file mode 100644 index 941ec82e..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/_src/range-tree.ts +++ /dev/null @@ -1,156 +0,0 @@ -import { RangeCov } from "./types"; - -export class RangeTree { - start: number; - end: number; - delta: number; - children: RangeTree[]; - - constructor( - start: number, - end: number, - delta: number, - children: RangeTree[], - ) { - this.start = start; - this.end = end; - this.delta = delta; - this.children = children; - } - - /** - * @precodition `ranges` are well-formed and pre-order sorted - */ - static fromSortedRanges(ranges: ReadonlyArray): RangeTree | undefined { - let root: RangeTree | undefined; - // Stack of parent trees and parent counts. - const stack: [RangeTree, number][] = []; - for (const range of ranges) { - const node: RangeTree = new RangeTree(range.startOffset, range.endOffset, range.count, []); - if (root === undefined) { - root = node; - stack.push([node, range.count]); - continue; - } - let parent: RangeTree; - let parentCount: number; - while (true) { - [parent, parentCount] = stack[stack.length - 1]; - // assert: `top !== undefined` (the ranges are sorted) - if (range.startOffset < parent.end) { - break; - } else { - stack.pop(); - } - } - node.delta -= parentCount; - parent.children.push(node); - stack.push([node, range.count]); - } - return root; - } - - normalize(): void { - const children: RangeTree[] = []; - let curEnd: number; - let head: RangeTree | undefined; - const tail: RangeTree[] = []; - for (const child of this.children) { - if (head === undefined) { - head = child; - } else if (child.delta === head.delta && child.start === curEnd!) { - tail.push(child); - } else { - endChain(); - head = child; - } - curEnd = child.end; - } - if (head !== undefined) { - endChain(); - } - - if (children.length === 1) { - const child: RangeTree = children[0]; - if (child.start === this.start && child.end === this.end) { - this.delta += child.delta; - this.children = child.children; - // `.lazyCount` is zero for both (both are after normalization) - return; - } - } - - this.children = children; - - function endChain(): void { - if (tail.length !== 0) { - head!.end = tail[tail.length - 1].end; - for (const tailTree of tail) { - for (const subChild of tailTree.children) { - subChild.delta += tailTree.delta - head!.delta; - head!.children.push(subChild); - } - } - tail.length = 0; - } - head!.normalize(); - children.push(head!); - } - } - - /** - * @precondition `tree.start < value && value < tree.end` - * @return RangeTree Right part - */ - split(value: number): RangeTree { - let leftChildLen: number = this.children.length; - let mid: RangeTree | undefined; - - // TODO(perf): Binary search (check overhead) - for (let i: number = 0; i < this.children.length; i++) { - const child: RangeTree = this.children[i]; - if (child.start < value && value < child.end) { - mid = child.split(value); - leftChildLen = i + 1; - break; - } else if (child.start >= value) { - leftChildLen = i; - break; - } - } - - const rightLen: number = this.children.length - leftChildLen; - const rightChildren: RangeTree[] = this.children.splice(leftChildLen, rightLen); - if (mid !== undefined) { - rightChildren.unshift(mid); - } - const result: RangeTree = new RangeTree( - value, - this.end, - this.delta, - rightChildren, - ); - this.end = value; - return result; - } - - /** - * Get the range coverages corresponding to the tree. - * - * The ranges are pre-order sorted. - */ - toRanges(): RangeCov[] { - const ranges: RangeCov[] = []; - // Stack of parent trees and counts. - const stack: [RangeTree, number][] = [[this, 0]]; - while (stack.length > 0) { - const [cur, parentCount]: [RangeTree, number] = stack.pop()!; - const count: number = parentCount + cur.delta; - ranges.push({startOffset: cur.start, endOffset: cur.end, count}); - for (let i: number = cur.children.length - 1; i >= 0; i--) { - stack.push([cur.children[i], count]); - } - } - return ranges; - } -} diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/_src/types.ts b/node_modules/@bcoe/v8-coverage/dist/lib/_src/types.ts deleted file mode 100644 index cc2cfc57..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/_src/types.ts +++ /dev/null @@ -1,26 +0,0 @@ -export interface ProcessCov { - result: ScriptCov[]; -} - -export interface ScriptCov { - scriptId: string; - url: string; - functions: FunctionCov[]; -} - -export interface FunctionCov { - functionName: string; - ranges: RangeCov[]; - isBlockCoverage: boolean; -} - -export interface Range { - readonly start: number; - readonly end: number; -} - -export interface RangeCov { - startOffset: number; - endOffset: number; - count: number; -} diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/ascii.d.ts b/node_modules/@bcoe/v8-coverage/dist/lib/ascii.d.ts deleted file mode 100644 index a56836df..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/ascii.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { RangeCov } from "./types"; -interface ReadonlyRangeTree { - readonly start: number; - readonly end: number; - readonly count: number; - readonly children: ReadonlyRangeTree[]; -} -export declare function emitForest(trees: ReadonlyArray): string; -export declare function emitForestLines(trees: ReadonlyArray): string[]; -export declare function parseFunctionRanges(text: string, offsetMap: Map): RangeCov[]; -export declare function parseOffsets(text: string): Map; -export {}; diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/ascii.js b/node_modules/@bcoe/v8-coverage/dist/lib/ascii.js deleted file mode 100644 index f26caad9..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/ascii.js +++ /dev/null @@ -1,136 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const compare_1 = require("./compare"); -function emitForest(trees) { - return emitForestLines(trees).join("\n"); -} -exports.emitForest = emitForest; -function emitForestLines(trees) { - const colMap = getColMap(trees); - const header = emitOffsets(colMap); - return [header, ...trees.map(tree => emitTree(tree, colMap).join("\n"))]; -} -exports.emitForestLines = emitForestLines; -function getColMap(trees) { - const eventSet = new Set(); - for (const tree of trees) { - const stack = [tree]; - while (stack.length > 0) { - const cur = stack.pop(); - eventSet.add(cur.start); - eventSet.add(cur.end); - for (const child of cur.children) { - stack.push(child); - } - } - } - const events = [...eventSet]; - events.sort((a, b) => a - b); - let maxDigits = 1; - for (const event of events) { - maxDigits = Math.max(maxDigits, event.toString(10).length); - } - const colWidth = maxDigits + 3; - const colMap = new Map(); - for (const [i, event] of events.entries()) { - colMap.set(event, i * colWidth); - } - return colMap; -} -function emitTree(tree, colMap) { - const layers = []; - let nextLayer = [tree]; - while (nextLayer.length > 0) { - const layer = nextLayer; - layers.push(layer); - nextLayer = []; - for (const node of layer) { - for (const child of node.children) { - nextLayer.push(child); - } - } - } - return layers.map(layer => emitTreeLayer(layer, colMap)); -} -function parseFunctionRanges(text, offsetMap) { - const result = []; - for (const line of text.split("\n")) { - for (const range of parseTreeLayer(line, offsetMap)) { - result.push(range); - } - } - result.sort(compare_1.compareRangeCovs); - return result; -} -exports.parseFunctionRanges = parseFunctionRanges; -/** - * - * @param layer Sorted list of disjoint trees. - * @param colMap - */ -function emitTreeLayer(layer, colMap) { - const line = []; - let curIdx = 0; - for (const { start, end, count } of layer) { - const startIdx = colMap.get(start); - const endIdx = colMap.get(end); - if (startIdx > curIdx) { - line.push(" ".repeat(startIdx - curIdx)); - } - line.push(emitRange(count, endIdx - startIdx)); - curIdx = endIdx; - } - return line.join(""); -} -function parseTreeLayer(text, offsetMap) { - const result = []; - const regex = /\[(\d+)-*\)/gs; - while (true) { - const match = regex.exec(text); - if (match === null) { - break; - } - const startIdx = match.index; - const endIdx = startIdx + match[0].length; - const count = parseInt(match[1], 10); - const startOffset = offsetMap.get(startIdx); - const endOffset = offsetMap.get(endIdx); - if (startOffset === undefined || endOffset === undefined) { - throw new Error(`Invalid offsets for: ${JSON.stringify(text)}`); - } - result.push({ startOffset, endOffset, count }); - } - return result; -} -function emitRange(count, len) { - const rangeStart = `[${count.toString(10)}`; - const rangeEnd = ")"; - const hyphensLen = len - (rangeStart.length + rangeEnd.length); - const hyphens = "-".repeat(Math.max(0, hyphensLen)); - return `${rangeStart}${hyphens}${rangeEnd}`; -} -function emitOffsets(colMap) { - let line = ""; - for (const [event, col] of colMap) { - if (line.length < col) { - line += " ".repeat(col - line.length); - } - line += event.toString(10); - } - return line; -} -function parseOffsets(text) { - const result = new Map(); - const regex = /\d+/gs; - while (true) { - const match = regex.exec(text); - if (match === null) { - break; - } - result.set(match.index, parseInt(match[0], 10)); - } - return result; -} -exports.parseOffsets = parseOffsets; - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbI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xNYXA6IE1hcDxudW1iZXIsIG51bWJlcj4pOiBzdHJpbmcge1xuICBsZXQgbGluZTogc3RyaW5nID0gXCJcIjtcbiAgZm9yIChjb25zdCBbZXZlbnQsIGNvbF0gb2YgY29sTWFwKSB7XG4gICAgaWYgKGxpbmUubGVuZ3RoIDwgY29sKSB7XG4gICAgICBsaW5lICs9IFwiIFwiLnJlcGVhdChjb2wgLSBsaW5lLmxlbmd0aCk7XG4gICAgfVxuICAgIGxpbmUgKz0gZXZlbnQudG9TdHJpbmcoMTApO1xuICB9XG4gIHJldHVybiBsaW5lO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gcGFyc2VPZmZzZXRzKHRleHQ6IHN0cmluZyk6IE1hcDxudW1iZXIsIG51bWJlcj4ge1xuICBjb25zdCByZXN1bHQ6IE1hcDxudW1iZXIsIG51bWJlcj4gPSBuZXcgTWFwKCk7XG4gIGNvbnN0IHJlZ2V4OiBSZWdFeHAgPSAvXFxkKy9ncztcbiAgd2hpbGUgKHRydWUpIHtcbiAgICBjb25zdCBtYXRjaDogUmVnRXhwRXhlY0FycmF5IHwgbnVsbCA9IHJlZ2V4LmV4ZWModGV4dCk7XG4gICAgaWYgKG1hdGNoID09PSBudWxsKSB7XG4gICAgICBicmVhaztcbiAgICB9XG4gICAgcmVzdWx0LnNldChtYXRjaC5pbmRleCwgcGFyc2VJbnQobWF0Y2hbMF0sIDEwKSk7XG4gIH1cbiAgcmV0dXJuIHJlc3VsdDtcbn1cbiJdLCJzb3VyY2VSb290IjoiIn0= diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/ascii.mjs b/node_modules/@bcoe/v8-coverage/dist/lib/ascii.mjs deleted file mode 100644 index 050b3190..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/ascii.mjs +++ /dev/null @@ -1,130 +0,0 @@ -import { compareRangeCovs } from "./compare"; -export function emitForest(trees) { - return emitForestLines(trees).join("\n"); -} -export function emitForestLines(trees) { - const colMap = getColMap(trees); - const header = emitOffsets(colMap); - return [header, ...trees.map(tree => emitTree(tree, colMap).join("\n"))]; -} -function getColMap(trees) { - const eventSet = new Set(); - for (const tree of trees) { - const stack = [tree]; - while (stack.length > 0) { - const cur = stack.pop(); - eventSet.add(cur.start); - eventSet.add(cur.end); - for (const child of cur.children) { - stack.push(child); - } - } - } - const events = [...eventSet]; - events.sort((a, b) => a - b); - let maxDigits = 1; - for (const event of events) { - maxDigits = Math.max(maxDigits, event.toString(10).length); - } - const colWidth = maxDigits + 3; - const colMap = new Map(); - for (const [i, event] of events.entries()) { - colMap.set(event, i * colWidth); - } - return colMap; -} -function emitTree(tree, colMap) { - const layers = []; - let nextLayer = [tree]; - while (nextLayer.length > 0) { - const layer = nextLayer; - layers.push(layer); - nextLayer = []; - for (const node of layer) { - for (const child of node.children) { - nextLayer.push(child); - } - } - } - return layers.map(layer => emitTreeLayer(layer, colMap)); -} -export function parseFunctionRanges(text, offsetMap) { - const result = []; - for (const line of text.split("\n")) { - for (const range of parseTreeLayer(line, offsetMap)) { - result.push(range); - } - } - result.sort(compareRangeCovs); - return result; -} -/** - * - * @param layer Sorted list of disjoint trees. - * @param colMap - */ -function emitTreeLayer(layer, colMap) { - const line = []; - let curIdx = 0; - for (const { start, end, count } of layer) { - const startIdx = colMap.get(start); - const endIdx = colMap.get(end); - if (startIdx > curIdx) { - line.push(" ".repeat(startIdx - curIdx)); - } - line.push(emitRange(count, endIdx - startIdx)); - curIdx = endIdx; - } - return line.join(""); -} -function parseTreeLayer(text, offsetMap) { - const result = []; - const regex = /\[(\d+)-*\)/gs; - while (true) { - const match = regex.exec(text); - if (match === null) { - break; - } - const startIdx = match.index; - const endIdx = startIdx + match[0].length; - const count = parseInt(match[1], 10); - const startOffset = offsetMap.get(startIdx); - const endOffset = offsetMap.get(endIdx); - if (startOffset === undefined || endOffset === undefined) { - throw new Error(`Invalid offsets for: ${JSON.stringify(text)}`); - } - result.push({ startOffset, endOffset, count }); - } - return result; -} -function emitRange(count, len) { - const rangeStart = `[${count.toString(10)}`; - const rangeEnd = ")"; - const hyphensLen = len - (rangeStart.length + rangeEnd.length); - const hyphens = "-".repeat(Math.max(0, hyphensLen)); - return `${rangeStart}${hyphens}${rangeEnd}`; -} -function emitOffsets(colMap) { - let line = ""; - for (const [event, col] of colMap) { - if (line.length < col) { - line += " ".repeat(col - line.length); - } - line += event.toString(10); - } - return line; -} -export function parseOffsets(text) { - const result = new Map(); - const regex = /\d+/gs; - while (true) { - const match = regex.exec(text); - if (match === null) { - break; - } - result.set(match.index, parseInt(match[0], 10)); - } - return result; -} - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIl9zcmMvYXNjaWkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sV0FBVyxDQUFDO0FBVTdDLE1BQU0sVUFBVSxVQUFVLENBQUMsS0FBdUM7SUFDaEUsT0FBTyxlQUFlLENBQUMsS0FBSyxDQUFDLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO0FBQzNDLENBQUM7QUFFRCxNQUFNLFVBQVUsZUFBZSxDQUFDLEtBQXVDO0lBQ3JFLE1BQU0sTUFBTSxHQUF3QixTQUFTLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDckQsTUFBTSxNQUFNLEdBQVcsV0FBVyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBQzNDLE9BQU8sQ0FBQyxNQUFNLEVBQUUsR0FBRyxLQUFLLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsUUFBUSxDQUFDLElBQUksRUFBRSxNQUFNLENBQUMsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDO0FBQzNFLENBQUM7QUFFRCxTQUFTLFNBQVMsQ0FBQyxLQUFrQztJQUNuRCxNQUFNLFFBQVEsR0FBZ0IsSUFBSSxHQUF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2VJbnQobWF0Y2hbMF0sIDEwKSk7XG4gIH1cbiAgcmV0dXJuIHJlc3VsdDtcbn1cbiJdLCJzb3VyY2VSb290IjoiIn0= diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/clone.d.ts b/node_modules/@bcoe/v8-coverage/dist/lib/clone.d.ts deleted file mode 100644 index a0820325..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/clone.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { FunctionCov, ProcessCov, RangeCov, ScriptCov } from "./types"; -/** - * Creates a deep copy of a process coverage. - * - * @param processCov Process coverage to clone. - * @return Cloned process coverage. - */ -export declare function cloneProcessCov(processCov: Readonly): ProcessCov; -/** - * Creates a deep copy of a script coverage. - * - * @param scriptCov Script coverage to clone. - * @return Cloned script coverage. - */ -export declare function cloneScriptCov(scriptCov: Readonly): ScriptCov; -/** - * Creates a deep copy of a function coverage. - * - * @param functionCov Function coverage to clone. - * @return Cloned function coverage. - */ -export declare function cloneFunctionCov(functionCov: Readonly): FunctionCov; -/** - * Creates a deep copy of a function coverage. - * - * @param rangeCov Range coverage to clone. - * @return Cloned range coverage. - */ -export declare function cloneRangeCov(rangeCov: Readonly): RangeCov; diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/clone.js b/node_modules/@bcoe/v8-coverage/dist/lib/clone.js deleted file mode 100644 index 4e8a823d..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/clone.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * Creates a deep copy of a process coverage. - * - * @param processCov Process coverage to clone. - * @return Cloned process coverage. - */ -function cloneProcessCov(processCov) { - const result = []; - for (const scriptCov of processCov.result) { - result.push(cloneScriptCov(scriptCov)); - } - return { - result, - }; -} -exports.cloneProcessCov = cloneProcessCov; -/** - * Creates a deep copy of a script coverage. - * - * @param scriptCov Script coverage to clone. - * @return Cloned script coverage. - */ -function cloneScriptCov(scriptCov) { - const functions = []; - for (const functionCov of scriptCov.functions) { - functions.push(cloneFunctionCov(functionCov)); - } - return { - scriptId: scriptCov.scriptId, - url: scriptCov.url, - functions, - }; -} -exports.cloneScriptCov = cloneScriptCov; -/** - * Creates a deep copy of a function coverage. - * - * @param functionCov Function coverage to clone. - * @return Cloned function coverage. - */ -function cloneFunctionCov(functionCov) { - const ranges = []; - for (const rangeCov of functionCov.ranges) { - ranges.push(cloneRangeCov(rangeCov)); - } - return { - functionName: functionCov.functionName, - ranges, - isBlockCoverage: functionCov.isBlockCoverage, - }; -} -exports.cloneFunctionCov = cloneFunctionCov; -/** - * Creates a deep copy of a function coverage. - * - * @param rangeCov Range coverage to clone. - * @return Cloned range coverage. - */ -function cloneRangeCov(rangeCov) { - return { - startOffset: rangeCov.startOffset, - endOffset: rangeCov.endOffset, - count: rangeCov.count, - }; -} -exports.cloneRangeCov = cloneRangeCov; - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIl9zcmMvY2xvbmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFFQTs7Ozs7R0FLRztBQUNILFNBQWdCLGVBQWUsQ0FBQyxVQUFnQztJQUM5RCxNQUFNLE1BQU0sR0FBZ0IsRUFBRSxDQUFDO0lBQy9CLEtBQUssTUFBTSxTQUFTLElBQUksVUFBVSxDQUFDLE1BQU0sRUFBRTtRQUN6QyxNQUFNLENBQUMsSUFBSSxDQUFDLGNBQWMsQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDO0tBQ3hDO0lBRUQsT0FBTztRQUNMLE1BQU07S0FDUCxDQUFDO0FBQ0osQ0FBQztBQVRELDBDQVNDO0FBRUQ7Ozs7O0dBS0c7QUFDSCxTQUFnQixjQUFjLENBQUMsU0FBOEI7SUFDM0QsTUFBTSxTQUFTLEdBQWtCLEVBQUUsQ0FBQztJQUNwQyxLQUFLLE1BQU0sV0FBVyxJQUFJLFNBQVMsQ0FBQyxT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JuIHtcbiAgICBzdGFydE9mZnNldDogcmFuZ2VDb3Yuc3RhcnRPZmZzZXQsXG4gICAgZW5kT2Zmc2V0OiByYW5nZUNvdi5lbmRPZmZzZXQsXG4gICAgY291bnQ6IHJhbmdlQ292LmNvdW50LFxuICB9O1xufVxuIl0sInNvdXJjZVJvb3QiOiIifQ== diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/clone.mjs b/node_modules/@bcoe/v8-coverage/dist/lib/clone.mjs deleted file mode 100644 index 87482d6b..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/clone.mjs +++ /dev/null @@ -1,64 +0,0 @@ -/** - * Creates a deep copy of a process coverage. - * - * @param processCov Process coverage to clone. - * @return Cloned process coverage. - */ -export function cloneProcessCov(processCov) { - const result = []; - for (const scriptCov of processCov.result) { - result.push(cloneScriptCov(scriptCov)); - } - return { - result, - }; -} -/** - * Creates a deep copy of a script coverage. - * - * @param scriptCov Script coverage to clone. - * @return Cloned script coverage. - */ -export function cloneScriptCov(scriptCov) { - const functions = []; - for (const functionCov of scriptCov.functions) { - functions.push(cloneFunctionCov(functionCov)); - } - return { - scriptId: scriptCov.scriptId, - url: scriptCov.url, - functions, - }; -} -/** - * Creates a deep copy of a function coverage. - * - * @param functionCov Function coverage to clone. - * @return Cloned function coverage. - */ -export function cloneFunctionCov(functionCov) { - const ranges = []; - for (const rangeCov of functionCov.ranges) { - ranges.push(cloneRangeCov(rangeCov)); - } - return { - functionName: functionCov.functionName, - ranges, - isBlockCoverage: functionCov.isBlockCoverage, - }; -} -/** - * Creates a deep copy of a function coverage. - * - * @param rangeCov Range coverage to clone. - * @return Cloned range coverage. - */ -export function cloneRangeCov(rangeCov) { - return { - startOffset: rangeCov.startOffset, - endOffset: rangeCov.endOffset, - count: rangeCov.count, - }; -} - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIl9zcmMvY2xvbmUudHMiXSwibmFtZXMiOltdLCJtYXB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iBmdW5jdGlvbkNvdi5mdW5jdGlvbk5hbWUsXG4gICAgcmFuZ2VzLFxuICAgIGlzQmxvY2tDb3ZlcmFnZTogZnVuY3Rpb25Db3YuaXNCbG9ja0NvdmVyYWdlLFxuICB9O1xufVxuXG4vKipcbiAqIENyZWF0ZXMgYSBkZWVwIGNvcHkgb2YgYSBmdW5jdGlvbiBjb3ZlcmFnZS5cbiAqXG4gKiBAcGFyYW0gcmFuZ2VDb3YgUmFuZ2UgY292ZXJhZ2UgdG8gY2xvbmUuXG4gKiBAcmV0dXJuIENsb25lZCByYW5nZSBjb3ZlcmFnZS5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGNsb25lUmFuZ2VDb3YocmFuZ2VDb3Y6IFJlYWRvbmx5PFJhbmdlQ292Pik6IFJhbmdlQ292IHtcbiAgcmV0dXJuIHtcbiAgICBzdGFydE9mZnNldDogcmFuZ2VDb3Yuc3RhcnRPZmZzZXQsXG4gICAgZW5kT2Zmc2V0OiByYW5nZUNvdi5lbmRPZmZzZXQsXG4gICAgY291bnQ6IHJhbmdlQ292LmNvdW50LFxuICB9O1xufVxuIl0sInNvdXJjZVJvb3QiOiIifQ== diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/compare.d.ts b/node_modules/@bcoe/v8-coverage/dist/lib/compare.d.ts deleted file mode 100644 index 5fee68bd..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/compare.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { FunctionCov, RangeCov, ScriptCov } from "./types"; -/** - * Compares two script coverages. - * - * The result corresponds to the comparison of their `url` value (alphabetical sort). - */ -export declare function compareScriptCovs(a: Readonly, b: Readonly): number; -/** - * Compares two function coverages. - * - * The result corresponds to the comparison of the root ranges. - */ -export declare function compareFunctionCovs(a: Readonly, b: Readonly): number; -/** - * Compares two range coverages. - * - * The ranges are first ordered by ascending `startOffset` and then by - * descending `endOffset`. - * This corresponds to a pre-order tree traversal. - */ -export declare function compareRangeCovs(a: Readonly, b: Readonly): number; diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/compare.js b/node_modules/@bcoe/v8-coverage/dist/lib/compare.js deleted file mode 100644 index c723ea0a..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/compare.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * Compares two script coverages. - * - * The result corresponds to the comparison of their `url` value (alphabetical sort). - */ -function compareScriptCovs(a, b) { - if (a.url === b.url) { - return 0; - } - else if (a.url < b.url) { - return -1; - } - else { - return 1; - } -} -exports.compareScriptCovs = compareScriptCovs; -/** - * Compares two function coverages. - * - * The result corresponds to the comparison of the root ranges. - */ -function compareFunctionCovs(a, b) { - return compareRangeCovs(a.ranges[0], b.ranges[0]); -} -exports.compareFunctionCovs = compareFunctionCovs; -/** - * Compares two range coverages. - * - * The ranges are first ordered by ascending `startOffset` and then by - * descending `endOffset`. - * This corresponds to a pre-order tree traversal. - */ -function compareRangeCovs(a, b) { - if (a.startOffset !== b.startOffset) { - return a.startOffset - b.startOffset; - } - else { - return b.endOffset - a.endOffset; - } -} -exports.compareRangeCovs = compareRangeCovs; - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIl9zcmMvY29tcGFyZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUVBOzs7O0dBSUc7QUFDSCxTQUFnQixpQkFBaUIsQ0FBQyxDQUFzQixFQUFFLENBQXNCO0lBQzlFLElBQUksQ0FBQyxDQUFDLEdBQUcsS0FBSyxDQUFDLENBQUMsR0FBRyxFQUFFO1FBQ25CLE9BQU8sQ0FBQyxDQUFDO0tBQ1Y7U0FBTSxJQUFJLENBQUMsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxDQUFDLEdBQUcsRUFBRTtRQUN4QixPQUFPLENBQUMsQ0FBQyxDQUFDO0tBQ1g7U0FBTTtRQUNMLE9BQU8sQ0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ZW5kT2Zmc2V0IC0gYS5lbmRPZmZzZXQ7XG4gIH1cbn1cbiJdLCJzb3VyY2VSb290IjoiIn0= diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/compare.mjs b/node_modules/@bcoe/v8-coverage/dist/lib/compare.mjs deleted file mode 100644 index c03be82b..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/compare.mjs +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Compares two script coverages. - * - * The result corresponds to the comparison of their `url` value (alphabetical sort). - */ -export function compareScriptCovs(a, b) { - if (a.url === b.url) { - return 0; - } - else if (a.url < b.url) { - return -1; - } - else { - return 1; - } -} -/** - * Compares two function coverages. - * - * The result corresponds to the comparison of the root ranges. - */ -export function compareFunctionCovs(a, b) { - return compareRangeCovs(a.ranges[0], b.ranges[0]); -} -/** - * Compares two range coverages. - * - * The ranges are first ordered by ascending `startOffset` and then by - * descending `endOffset`. - * This corresponds to a pre-order tree traversal. - */ -export function compareRangeCovs(a, b) { - if (a.startOffset !== b.startOffset) { - return a.startOffset - b.startOffset; - } - else { - return b.endOffset - a.endOffset; - } -} - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIl9zcmMvY29tcGFyZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQTs7OztHQUlHO0FBQ0gsTUFBTSxVQUFVLGlCQUFpQixDQUFDLENBQXNCLEVBQUUsQ0FBc0I7SUFDOUUsSUFBSSxDQUFDLENBQUMsR0FBRyxLQUFLLENBQUMsQ0FBQyxHQUFHLEVBQUU7UUFDbkIsT0FBTyxDQUFDLENBQUM7S0FDVjtTQUFNLElBQUksQ0FBQyxDQUFDLEdBQUcsR0FBRyxDQUFDLENBQUMsR0FBRyxFQUFFO1FBQ3hCLE9BQU8sQ0FBQyxDQUFDLENBQUM7S0FDWDtTQUFNO1FBQ0wsT0FBTyxDQUFDLENBQUM7S0FDVjtBQUNILENBQUM7QUFF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6IiJ9 diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/index.d.ts b/node_modules/@bcoe/v8-coverage/dist/lib/index.d.ts deleted file mode 100644 index f92bdf3d..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export { emitForest, emitForestLines, parseFunctionRanges, parseOffsets } from "./ascii"; -export { cloneFunctionCov, cloneProcessCov, cloneScriptCov, cloneRangeCov } from "./clone"; -export { compareScriptCovs, compareFunctionCovs, compareRangeCovs } from "./compare"; -export { mergeFunctionCovs, mergeProcessCovs, mergeScriptCovs } from "./merge"; -export { RangeTree } from "./range-tree"; -export { ProcessCov, ScriptCov, FunctionCov, RangeCov } from "./types"; diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/index.js b/node_modules/@bcoe/v8-coverage/dist/lib/index.js deleted file mode 100644 index 450362d9..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/index.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var ascii_1 = require("./ascii"); -exports.emitForest = ascii_1.emitForest; -exports.emitForestLines = ascii_1.emitForestLines; -exports.parseFunctionRanges = ascii_1.parseFunctionRanges; -exports.parseOffsets = ascii_1.parseOffsets; -var clone_1 = require("./clone"); -exports.cloneFunctionCov = clone_1.cloneFunctionCov; -exports.cloneProcessCov = clone_1.cloneProcessCov; -exports.cloneScriptCov = clone_1.cloneScriptCov; -exports.cloneRangeCov = clone_1.cloneRangeCov; -var compare_1 = require("./compare"); -exports.compareScriptCovs = compare_1.compareScriptCovs; -exports.compareFunctionCovs = compare_1.compareFunctionCovs; -exports.compareRangeCovs = compare_1.compareRangeCovs; -var merge_1 = require("./merge"); -exports.mergeFunctionCovs = merge_1.mergeFunctionCovs; -exports.mergeProcessCovs = merge_1.mergeProcessCovs; -exports.mergeScriptCovs = merge_1.mergeScriptCovs; -var range_tree_1 = require("./range-tree"); -exports.RangeTree = range_tree_1.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NvdnMgfSBmcm9tIFwiLi9jb21wYXJlXCI7XG5leHBvcnQgeyBtZXJnZUZ1bmN0aW9uQ292cywgbWVyZ2VQcm9jZXNzQ292cywgbWVyZ2VTY3JpcHRDb3ZzIH0gZnJvbSBcIi4vbWVyZ2VcIjtcbmV4cG9ydCB7IFJhbmdlVHJlZSB9IGZyb20gXCIuL3JhbmdlLXRyZWVcIjtcbmV4cG9ydCB7IFByb2Nlc3NDb3YsIFNjcmlwdENvdiwgRnVuY3Rpb25Db3YsIFJhbmdlQ292IH0gZnJvbSBcIi4vdHlwZXNcIjtcbiJdLCJzb3VyY2VSb290IjoiIn0= diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/index.mjs b/node_modules/@bcoe/v8-coverage/dist/lib/index.mjs deleted file mode 100644 index 30d8ce1f..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/index.mjs +++ /dev/null @@ -1,7 +0,0 @@ -export { emitForest, emitForestLines, parseFunctionRanges, parseOffsets } from "./ascii"; -export { cloneFunctionCov, cloneProcessCov, cloneScriptCov, cloneRangeCov } from "./clone"; -export { compareScriptCovs, compareFunctionCovs, compareRangeCovs } from "./compare"; -export { mergeFunctionCovs, mergeProcessCovs, mergeScriptCovs } from "./merge"; -export { RangeTree } from "./range-tree"; - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIl9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxlQUFlLEVBQUUsbUJBQW1CLEVBQUUsWUFBWSxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBQ3pGLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxlQUFlLEVBQUUsY0FBYyxFQUFFLGFBQWEsRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUMzRixPQUFPLEVBQUUsaUJBQWlCLEVBQUUsbUJBQW1CLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFDckYsT0FBTyxFQUFFLGlCQUFpQixFQUFFLGdCQUFnQixFQUFFLGVBQWUsRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUMvRSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sY0FBYyxDQUFDIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgZW1pdEZvcmVzdCwgZW1pdEZvcmVzdExpbmVzLCBwYXJzZUZ1bmN0aW9uUmFuZ2VzLCBwYXJzZU9mZnNldHMgfSBmcm9tIFwiLi9hc2NpaVwiO1xuZXhwb3J0IHsgY2xvbmVGdW5jdGlvbkNvdiwgY2xvbmVQcm9jZXNzQ292LCBjbG9uZVNjcmlwdENvdiwgY2xvbmVSYW5nZUNvdiB9IGZyb20gXCIuL2Nsb25lXCI7XG5leHBvcnQgeyBjb21wYXJlU2NyaXB0Q292cywgY29tcGFyZUZ1bmN0aW9uQ292cywgY29tcGFyZVJhbmdlQ292cyB9IGZyb20gXCIuL2NvbXBhcmVcIjtcbmV4cG9ydCB7IG1lcmdlRnVuY3Rpb25Db3ZzLCBtZXJnZVByb2Nlc3NDb3ZzLCBtZXJnZVNjcmlwdENvdnMgfSBmcm9tIFwiLi9tZXJnZVwiO1xuZXhwb3J0IHsgUmFuZ2VUcmVlIH0gZnJvbSBcIi4vcmFuZ2UtdHJlZVwiO1xuZXhwb3J0IHsgUHJvY2Vzc0NvdiwgU2NyaXB0Q292LCBGdW5jdGlvbkNvdiwgUmFuZ2VDb3YgfSBmcm9tIFwiLi90eXBlc1wiO1xuIl0sInNvdXJjZVJvb3QiOiIifQ== diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/merge.d.ts b/node_modules/@bcoe/v8-coverage/dist/lib/merge.d.ts deleted file mode 100644 index 5095383f..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/merge.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { FunctionCov, ProcessCov, ScriptCov } from "./types"; -/** - * Merges a list of process coverages. - * - * The result is normalized. - * The input values may be mutated, it is not safe to use them after passing - * them to this function. - * The computation is synchronous. - * - * @param processCovs Process coverages to merge. - * @return Merged process coverage. - */ -export declare function mergeProcessCovs(processCovs: ReadonlyArray): ProcessCov; -/** - * Merges a list of matching script coverages. - * - * Scripts are matching if they have the same `url`. - * The result is normalized. - * The input values may be mutated, it is not safe to use them after passing - * them to this function. - * The computation is synchronous. - * - * @param scriptCovs Process coverages to merge. - * @return Merged script coverage, or `undefined` if the input list was empty. - */ -export declare function mergeScriptCovs(scriptCovs: ReadonlyArray): ScriptCov | undefined; -/** - * Merges a list of matching function coverages. - * - * Functions are matching if their root ranges have the same span. - * The result is normalized. - * The input values may be mutated, it is not safe to use them after passing - * them to this function. - * The computation is synchronous. - * - * @param funcCovs Function coverages to merge. - * @return Merged function coverage, or `undefined` if the input list was empty. - */ -export declare function mergeFunctionCovs(funcCovs: ReadonlyArray): FunctionCov | undefined; diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/merge.js b/node_modules/@bcoe/v8-coverage/dist/lib/merge.js deleted file mode 100644 index c2b5a8cd..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/merge.js +++ /dev/null @@ -1,302 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const normalize_1 = require("./normalize"); -const range_tree_1 = require("./range-tree"); -/** - * Merges a list of process coverages. - * - * The result is normalized. - * The input values may be mutated, it is not safe to use them after passing - * them to this function. - * The computation is synchronous. - * - * @param processCovs Process coverages to merge. - * @return Merged process coverage. - */ -function mergeProcessCovs(processCovs) { - if (processCovs.length === 0) { - return { result: [] }; - } - const urlToScripts = new Map(); - for (const processCov of processCovs) { - for (const scriptCov of processCov.result) { - let scriptCovs = urlToScripts.get(scriptCov.url); - if (scriptCovs === undefined) { - scriptCovs = []; - urlToScripts.set(scriptCov.url, scriptCovs); - } - scriptCovs.push(scriptCov); - } - } - const result = []; - for (const scripts of urlToScripts.values()) { - // assert: `scripts.length > 0` - result.push(mergeScriptCovs(scripts)); - } - const merged = { result }; - normalize_1.normalizeProcessCov(merged); - return merged; -} -exports.mergeProcessCovs = mergeProcessCovs; -/** - * Merges a list of matching script coverages. - * - * Scripts are matching if they have the same `url`. - * The result is normalized. - * The input values may be mutated, it is not safe to use them after passing - * them to this function. - * The computation is synchronous. - * - * @param scriptCovs Process coverages to merge. - * @return Merged script coverage, or `undefined` if the input list was empty. - */ -function mergeScriptCovs(scriptCovs) { - if (scriptCovs.length === 0) { - return undefined; - } - else if (scriptCovs.length === 1) { - const merged = scriptCovs[0]; - normalize_1.deepNormalizeScriptCov(merged); - return merged; - } - const first = scriptCovs[0]; - const scriptId = first.scriptId; - const url = first.url; - const rangeToFuncs = new Map(); - for (const scriptCov of scriptCovs) { - for (const funcCov of scriptCov.functions) { - const rootRange = stringifyFunctionRootRange(funcCov); - let funcCovs = rangeToFuncs.get(rootRange); - if (funcCovs === undefined || - // if the entry in rangeToFuncs is function-level granularity and - // the new coverage is block-level, prefer block-level. - (!funcCovs[0].isBlockCoverage && funcCov.isBlockCoverage)) { - funcCovs = []; - rangeToFuncs.set(rootRange, funcCovs); - } - else if (funcCovs[0].isBlockCoverage && !funcCov.isBlockCoverage) { - // if the entry in rangeToFuncs is block-level granularity, we should - // not append function level granularity. - continue; - } - funcCovs.push(funcCov); - } - } - const functions = []; - for (const funcCovs of rangeToFuncs.values()) { - // assert: `funcCovs.length > 0` - functions.push(mergeFunctionCovs(funcCovs)); - } - const merged = { scriptId, url, functions }; - normalize_1.normalizeScriptCov(merged); - return merged; -} -exports.mergeScriptCovs = mergeScriptCovs; -/** - * Returns a string representation of the root range of the function. - * - * This string can be used to match function with same root range. - * The string is derived from the start and end offsets of the root range of - * the function. - * This assumes that `ranges` is non-empty (true for valid function coverages). - * - * @param funcCov Function coverage with the range to stringify - * @internal - */ -function stringifyFunctionRootRange(funcCov) { - const rootRange = funcCov.ranges[0]; - return `${rootRange.startOffset.toString(10)};${rootRange.endOffset.toString(10)}`; -} -/** - * Merges a list of matching function coverages. - * - * Functions are matching if their root ranges have the same span. - * The result is normalized. - * The input values may be mutated, it is not safe to use them after passing - * them to this function. - * The computation is synchronous. - * - * @param funcCovs Function coverages to merge. - * @return Merged function coverage, or `undefined` if the input list was empty. - */ -function mergeFunctionCovs(funcCovs) { - if (funcCovs.length === 0) { - return undefined; - } - else if (funcCovs.length === 1) { - const merged = funcCovs[0]; - normalize_1.normalizeFunctionCov(merged); - return merged; - } - const functionName = funcCovs[0].functionName; - const trees = []; - for (const funcCov of funcCovs) { - // assert: `fn.ranges.length > 0` - // assert: `fn.ranges` is sorted - trees.push(range_tree_1.RangeTree.fromSortedRanges(funcCov.ranges)); - } - // assert: `trees.length > 0` - const mergedTree = mergeRangeTrees(trees); - normalize_1.normalizeRangeTree(mergedTree); - const ranges = mergedTree.toRanges(); - const isBlockCoverage = !(ranges.length === 1 && ranges[0].count === 0); - const merged = { functionName, ranges, isBlockCoverage }; - // assert: `merged` is normalized - return merged; -} -exports.mergeFunctionCovs = mergeFunctionCovs; -/** - * @precondition Same `start` and `end` for all the trees - */ -function mergeRangeTrees(trees) { - if (trees.length <= 1) { - return trees[0]; - } - const first = trees[0]; - let delta = 0; - for (const tree of trees) { - delta += tree.delta; - } - const children = mergeRangeTreeChildren(trees); - return new range_tree_1.RangeTree(first.start, first.end, delta, children); -} -class RangeTreeWithParent { - constructor(parentIndex, tree) { - this.parentIndex = parentIndex; - this.tree = tree; - } -} -class StartEvent { - constructor(offset, trees) { - this.offset = offset; - this.trees = trees; - } - static compare(a, b) { - return a.offset - b.offset; - } -} -class StartEventQueue { - constructor(queue) { - this.queue = queue; - this.nextIndex = 0; - this.pendingOffset = 0; - this.pendingTrees = undefined; - } - static fromParentTrees(parentTrees) { - const startToTrees = new Map(); - for (const [parentIndex, parentTree] of parentTrees.entries()) { - for (const child of parentTree.children) { - let trees = startToTrees.get(child.start); - if (trees === undefined) { - trees = []; - startToTrees.set(child.start, trees); - } - trees.push(new RangeTreeWithParent(parentIndex, child)); - } - } - const queue = []; - for (const [startOffset, trees] of startToTrees) { - queue.push(new StartEvent(startOffset, trees)); - } - queue.sort(StartEvent.compare); - return new StartEventQueue(queue); - } - setPendingOffset(offset) { - this.pendingOffset = offset; - } - pushPendingTree(tree) { - if (this.pendingTrees === undefined) { - this.pendingTrees = []; - } - this.pendingTrees.push(tree); - } - next() { - const pendingTrees = this.pendingTrees; - const nextEvent = this.queue[this.nextIndex]; - if (pendingTrees === undefined) { - this.nextIndex++; - return nextEvent; - } - else if (nextEvent === undefined) { - this.pendingTrees = undefined; - return new StartEvent(this.pendingOffset, pendingTrees); - } - else { - if (this.pendingOffset < nextEvent.offset) { - this.pendingTrees = undefined; - return new StartEvent(this.pendingOffset, pendingTrees); - } - else { - if (this.pendingOffset === nextEvent.offset) { - this.pendingTrees = undefined; - for (const tree of pendingTrees) { - nextEvent.trees.push(tree); - } - } - this.nextIndex++; - return nextEvent; - } - } - } -} -function mergeRangeTreeChildren(parentTrees) { - const result = []; - const startEventQueue = StartEventQueue.fromParentTrees(parentTrees); - const parentToNested = new Map(); - let openRange; - while (true) { - const event = startEventQueue.next(); - if (event === undefined) { - break; - } - if (openRange !== undefined && openRange.end <= event.offset) { - result.push(nextChild(openRange, parentToNested)); - openRange = undefined; - } - if (openRange === undefined) { - let openRangeEnd = event.offset + 1; - for (const { parentIndex, tree } of event.trees) { - openRangeEnd = Math.max(openRangeEnd, tree.end); - insertChild(parentToNested, parentIndex, tree); - } - startEventQueue.setPendingOffset(openRangeEnd); - openRange = { start: event.offset, end: openRangeEnd }; - } - else { - for (const { parentIndex, tree } of event.trees) { - if (tree.end > openRange.end) { - const right = tree.split(openRange.end); - startEventQueue.pushPendingTree(new RangeTreeWithParent(parentIndex, right)); - } - insertChild(parentToNested, parentIndex, tree); - } - } - } - if (openRange !== undefined) { - result.push(nextChild(openRange, parentToNested)); - } - return result; -} -function insertChild(parentToNested, parentIndex, tree) { - let nested = parentToNested.get(parentIndex); - if (nested === undefined) { - nested = []; - parentToNested.set(parentIndex, nested); - } - nested.push(tree); -} -function nextChild(openRange, parentToNested) { - const matchingTrees = []; - for (const nested of parentToNested.values()) { - if (nested.length === 1 && nested[0].start === openRange.start && nested[0].end === openRange.end) { - matchingTrees.push(nested[0]); - } - else { - matchingTrees.push(new range_tree_1.RangeTree(openRange.start, openRange.end, 0, nested)); - } - } - parentToNested.clear(); - return mergeRangeTrees(matchingTrees); -} - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIl9zcmMvbWVyZ2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FNcUI7QUFDckIsNkNBQXlDO0FBR3pDOzs7Ozs7Ozs7O0dBVUc7QUFDSCxTQUFnQixnQkFBZ0IsQ0FBQyxXQUFzQztJQUNyRSxJQUFJLFdBQVcsQ0FBQyxNQUFNLEtBQUssQ0FBQyxFQUFFO1FBQzVCLE9BQU8sRUFBQyxNQUFNLEVBQUUsRUFBRSxFQUFDLENBQUM7S0FDckI7SUFFRCxNQUFNLFlBQVksR0FBNkIsSUFBSSxHQUFHLEVBQUUsQ0FBQztJQUN6RCxLQUFLLE1BQU0sVUFBVSxJQUFJLFdBQVcsRUFBRTtRQUNwQyxLQUFLLE1BQU0sU0FBUyxJQUFJLFVBQVUsQ0FBQyxNQUFNLEVBQUU7WUFDekMsSUFBSSxVQUFVLEdBQTRCLFlBQVksQ0FBQyxHQUFHLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxDQUFDO1lBQzFFLElBQUksVUFBVSxLQUFLLFNBQVMsRUFBRTtnQkFDNUIsVUFBVSxHQUFHLEVBQUUsQ0FBQztnQkFDaEIsWUFBWSxDQUFDLEdBQUcsQ0FBQyxTQUFTLENBQUMsR0FBRyxFQUFFLFVBQVUsQ0FBQyxDQUFDO2FBQzdDO1lBQ0QsVUF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nZSwgcGFyZW50VG9OZXN0ZWQ6IE1hcDxudW1iZXIsIFJhbmdlVHJlZVtdPik6IFJhbmdlVHJlZSB7XG4gIGNvbnN0IG1hdGNoaW5nVHJlZXM6IFJhbmdlVHJlZVtdID0gW107XG5cbiAgZm9yIChjb25zdCBuZXN0ZWQgb2YgcGFyZW50VG9OZXN0ZWQudmFsdWVzKCkpIHtcbiAgICBpZiAobmVzdGVkLmxlbmd0aCA9PT0gMSAmJiBuZXN0ZWRbMF0uc3RhcnQgPT09IG9wZW5SYW5nZS5zdGFydCAmJiBuZXN0ZWRbMF0uZW5kID09PSBvcGVuUmFuZ2UuZW5kKSB7XG4gICAgICBtYXRjaGluZ1RyZWVzLnB1c2gobmVzdGVkWzBdKTtcbiAgICB9IGVsc2Uge1xuICAgICAgbWF0Y2hpbmdUcmVlcy5wdXNoKG5ldyBSYW5nZVRyZWUoXG4gICAgICAgIG9wZW5SYW5nZS5zdGFydCxcbiAgICAgICAgb3BlblJhbmdlLmVuZCxcbiAgICAgICAgMCxcbiAgICAgICAgbmVzdGVkLFxuICAgICAgKSk7XG4gICAgfVxuICB9XG4gIHBhcmVudFRvTmVzdGVkLmNsZWFyKCk7XG4gIHJldHVybiBtZXJnZVJhbmdlVHJlZXMobWF0Y2hpbmdUcmVlcykhO1xufVxuIl0sInNvdXJjZVJvb3QiOiIifQ== diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/merge.mjs b/node_modules/@bcoe/v8-coverage/dist/lib/merge.mjs deleted file mode 100644 index 242fce91..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/merge.mjs +++ /dev/null @@ -1,297 +0,0 @@ -import { deepNormalizeScriptCov, normalizeFunctionCov, normalizeProcessCov, normalizeRangeTree, normalizeScriptCov, } from "./normalize"; -import { RangeTree } from "./range-tree"; -/** - * Merges a list of process coverages. - * - * The result is normalized. - * The input values may be mutated, it is not safe to use them after passing - * them to this function. - * The computation is synchronous. - * - * @param processCovs Process coverages to merge. - * @return Merged process coverage. - */ -export function mergeProcessCovs(processCovs) { - if (processCovs.length === 0) { - return { result: [] }; - } - const urlToScripts = new Map(); - for (const processCov of processCovs) { - for (const scriptCov of processCov.result) { - let scriptCovs = urlToScripts.get(scriptCov.url); - if (scriptCovs === undefined) { - scriptCovs = []; - urlToScripts.set(scriptCov.url, scriptCovs); - } - scriptCovs.push(scriptCov); - } - } - const result = []; - for (const scripts of urlToScripts.values()) { - // assert: `scripts.length > 0` - result.push(mergeScriptCovs(scripts)); - } - const merged = { result }; - normalizeProcessCov(merged); - return merged; -} -/** - * Merges a list of matching script coverages. - * - * Scripts are matching if they have the same `url`. - * The result is normalized. - * The input values may be mutated, it is not safe to use them after passing - * them to this function. - * The computation is synchronous. - * - * @param scriptCovs Process coverages to merge. - * @return Merged script coverage, or `undefined` if the input list was empty. - */ -export function mergeScriptCovs(scriptCovs) { - if (scriptCovs.length === 0) { - return undefined; - } - else if (scriptCovs.length === 1) { - const merged = scriptCovs[0]; - deepNormalizeScriptCov(merged); - return merged; - } - const first = scriptCovs[0]; - const scriptId = first.scriptId; - const url = first.url; - const rangeToFuncs = new Map(); - for (const scriptCov of scriptCovs) { - for (const funcCov of scriptCov.functions) { - const rootRange = stringifyFunctionRootRange(funcCov); - let funcCovs = rangeToFuncs.get(rootRange); - if (funcCovs === undefined || - // if the entry in rangeToFuncs is function-level granularity and - // the new coverage is block-level, prefer block-level. - (!funcCovs[0].isBlockCoverage && funcCov.isBlockCoverage)) { - funcCovs = []; - rangeToFuncs.set(rootRange, funcCovs); - } - else if (funcCovs[0].isBlockCoverage && !funcCov.isBlockCoverage) { - // if the entry in rangeToFuncs is block-level granularity, we should - // not append function level granularity. - continue; - } - funcCovs.push(funcCov); - } - } - const functions = []; - for (const funcCovs of rangeToFuncs.values()) { - // assert: `funcCovs.length > 0` - functions.push(mergeFunctionCovs(funcCovs)); - } - const merged = { scriptId, url, functions }; - normalizeScriptCov(merged); - return merged; -} -/** - * Returns a string representation of the root range of the function. - * - * This string can be used to match function with same root range. - * The string is derived from the start and end offsets of the root range of - * the function. - * This assumes that `ranges` is non-empty (true for valid function coverages). - * - * @param funcCov Function coverage with the range to stringify - * @internal - */ -function stringifyFunctionRootRange(funcCov) { - const rootRange = funcCov.ranges[0]; - return `${rootRange.startOffset.toString(10)};${rootRange.endOffset.toString(10)}`; -} -/** - * Merges a list of matching function coverages. - * - * Functions are matching if their root ranges have the same span. - * The result is normalized. - * The input values may be mutated, it is not safe to use them after passing - * them to this function. - * The computation is synchronous. - * - * @param funcCovs Function coverages to merge. - * @return Merged function coverage, or `undefined` if the input list was empty. - */ -export function mergeFunctionCovs(funcCovs) { - if (funcCovs.length === 0) { - return undefined; - } - else if (funcCovs.length === 1) { - const merged = funcCovs[0]; - normalizeFunctionCov(merged); - return merged; - } - const functionName = funcCovs[0].functionName; - const trees = []; - for (const funcCov of funcCovs) { - // assert: `fn.ranges.length > 0` - // assert: `fn.ranges` is sorted - trees.push(RangeTree.fromSortedRanges(funcCov.ranges)); - } - // assert: `trees.length > 0` - const mergedTree = mergeRangeTrees(trees); - normalizeRangeTree(mergedTree); - const ranges = mergedTree.toRanges(); - const isBlockCoverage = !(ranges.length === 1 && ranges[0].count === 0); - const merged = { functionName, ranges, isBlockCoverage }; - // assert: `merged` is normalized - return merged; -} -/** - * @precondition Same `start` and `end` for all the trees - */ -function mergeRangeTrees(trees) { - if (trees.length <= 1) { - return trees[0]; - } - const first = trees[0]; - let delta = 0; - for (const tree of trees) { - delta += tree.delta; - } - const children = mergeRangeTreeChildren(trees); - return new RangeTree(first.start, first.end, delta, children); -} -class RangeTreeWithParent { - constructor(parentIndex, tree) { - this.parentIndex = parentIndex; - this.tree = tree; - } -} -class StartEvent { - constructor(offset, trees) { - this.offset = offset; - this.trees = trees; - } - static compare(a, b) { - return a.offset - b.offset; - } -} -class StartEventQueue { - constructor(queue) { - this.queue = queue; - this.nextIndex = 0; - this.pendingOffset = 0; - this.pendingTrees = undefined; - } - static fromParentTrees(parentTrees) { - const startToTrees = new Map(); - for (const [parentIndex, parentTree] of parentTrees.entries()) { - for (const child of parentTree.children) { - let trees = startToTrees.get(child.start); - if (trees === undefined) { - trees = []; - startToTrees.set(child.start, trees); - } - trees.push(new RangeTreeWithParent(parentIndex, child)); - } - } - const queue = []; - for (const [startOffset, trees] of startToTrees) { - queue.push(new StartEvent(startOffset, trees)); - } - queue.sort(StartEvent.compare); - return new StartEventQueue(queue); - } - setPendingOffset(offset) { - this.pendingOffset = offset; - } - pushPendingTree(tree) { - if (this.pendingTrees === undefined) { - this.pendingTrees = []; - } - this.pendingTrees.push(tree); - } - next() { - const pendingTrees = this.pendingTrees; - const nextEvent = this.queue[this.nextIndex]; - if (pendingTrees === undefined) { - this.nextIndex++; - return nextEvent; - } - else if (nextEvent === undefined) { - this.pendingTrees = undefined; - return new StartEvent(this.pendingOffset, pendingTrees); - } - else { - if (this.pendingOffset < nextEvent.offset) { - this.pendingTrees = undefined; - return new StartEvent(this.pendingOffset, pendingTrees); - } - else { - if (this.pendingOffset === nextEvent.offset) { - this.pendingTrees = undefined; - for (const tree of pendingTrees) { - nextEvent.trees.push(tree); - } - } - this.nextIndex++; - return nextEvent; - } - } - } -} -function mergeRangeTreeChildren(parentTrees) { - const result = []; - const startEventQueue = StartEventQueue.fromParentTrees(parentTrees); - const parentToNested = new Map(); - let openRange; - while (true) { - const event = startEventQueue.next(); - if (event === undefined) { - break; - } - if (openRange !== undefined && openRange.end <= event.offset) { - result.push(nextChild(openRange, parentToNested)); - openRange = undefined; - } - if (openRange === undefined) { - let openRangeEnd = event.offset + 1; - for (const { parentIndex, tree } of event.trees) { - openRangeEnd = Math.max(openRangeEnd, tree.end); - insertChild(parentToNested, parentIndex, tree); - } - startEventQueue.setPendingOffset(openRangeEnd); - openRange = { start: event.offset, end: openRangeEnd }; - } - else { - for (const { parentIndex, tree } of event.trees) { - if (tree.end > openRange.end) { - const right = tree.split(openRange.end); - startEventQueue.pushPendingTree(new RangeTreeWithParent(parentIndex, right)); - } - insertChild(parentToNested, parentIndex, tree); - } - } - } - if (openRange !== undefined) { - result.push(nextChild(openRange, parentToNested)); - } - return result; -} -function insertChild(parentToNested, parentIndex, tree) { - let nested = parentToNested.get(parentIndex); - if (nested === undefined) { - nested = []; - parentToNested.set(parentIndex, nested); - } - nested.push(tree); -} -function nextChild(openRange, parentToNested) { - const matchingTrees = []; - for (const nested of parentToNested.values()) { - if (nested.length === 1 && nested[0].start === openRange.start && nested[0].end === openRange.end) { - matchingTrees.push(nested[0]); - } - else { - matchingTrees.push(new RangeTree(openRange.start, openRange.end, 0, nested)); - } - } - parentToNested.clear(); - return mergeRangeTrees(matchingTrees); -} - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIl9zcmMvbWVyZ2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLHNCQUFzQixFQUN0QixvQkFBb0IsRUFDcEIsbUJBQW1CLEVBQ25CLGtCQUFrQixFQUNsQixrQkFBa0IsR0FDbkIsTUFBTSxhQUFhLENBQUM7QUFDckIsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUd6Qzs7Ozs7Ozs7OztHQVVHO0FBQ0gsTUFBTSxVQUFVLGdCQUFnQixDQUFDLFdBQXNDO0lBQ3JFLElBQUksV0FBVyxDQUFDLE1BQU0sS0FBSyxDQUFDLEVBQUU7UUFDNUIsT0FBTyxFQUFDLE1BQU0sRUFBRSxFQUFFLEVBQUMsQ0FBQztLQUNyQjtJQUVELE1BQU0sWUFBWSxHQUE2QixJQUFJLEdBQUcsRUFBRSxDQUFDO0lBQ3pELEtBQUssTUFBTSxVQUFVLElBQUksV0FBVyxFQUFFO1FBQ3BDLEtBQUssTUFBTSxTQUFTLElBQUksVUFBVSxDQUFDLE1BQU0sRUFBRTtZQUN6QyxJQUFJLFVBQVUsR0FBNEIsWUFBWSxDQUFDLEdBQUcsQ0FBQyxT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mRleCk7XG4gIGlmIChuZXN0ZWQgPT09IHVuZGVmaW5lZCkge1xuICAgIG5lc3RlZCA9IFtdO1xuICAgIHBhcmVudFRvTmVzdGVkLnNldChwYXJlbnRJbmRleCwgbmVzdGVkKTtcbiAgfVxuICBuZXN0ZWQucHVzaCh0cmVlKTtcbn1cblxuZnVuY3Rpb24gbmV4dENoaWxkKG9wZW5SYW5nZTogUmFuZ2UsIHBhcmVudFRvTmVzdGVkOiBNYXA8bnVtYmVyLCBSYW5nZVRyZWVbXT4pOiBSYW5nZVRyZWUge1xuICBjb25zdCBtYXRjaGluZ1RyZWVzOiBSYW5nZVRyZWVbXSA9IFtdO1xuXG4gIGZvciAoY29uc3QgbmVzdGVkIG9mIHBhcmVudFRvTmVzdGVkLnZhbHVlcygpKSB7XG4gICAgaWYgKG5lc3RlZC5sZW5ndGggPT09IDEgJiYgbmVzdGVkWzBdLnN0YXJ0ID09PSBvcGVuUmFuZ2Uuc3RhcnQgJiYgbmVzdGVkWzBdLmVuZCA9PT0gb3BlblJhbmdlLmVuZCkge1xuICAgICAgbWF0Y2hpbmdUcmVlcy5wdXNoKG5lc3RlZFswXSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIG1hdGNoaW5nVHJlZXMucHVzaChuZXcgUmFuZ2VUcmVlKFxuICAgICAgICBvcGVuUmFuZ2Uuc3RhcnQsXG4gICAgICAgIG9wZW5SYW5nZS5lbmQsXG4gICAgICAgIDAsXG4gICAgICAgIG5lc3RlZCxcbiAgICAgICkpO1xuICAgIH1cbiAgfVxuICBwYXJlbnRUb05lc3RlZC5jbGVhcigpO1xuICByZXR1cm4gbWVyZ2VSYW5nZVRyZWVzKG1hdGNoaW5nVHJlZXMpITtcbn1cbiJdLCJzb3VyY2VSb290IjoiIn0= diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/normalize.d.ts b/node_modules/@bcoe/v8-coverage/dist/lib/normalize.d.ts deleted file mode 100644 index db9f0f8f..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/normalize.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { RangeTree } from "./range-tree"; -import { FunctionCov, ProcessCov, ScriptCov } from "./types"; -/** - * Normalizes a process coverage. - * - * Sorts the scripts alphabetically by `url`. - * Reassigns script ids: the script at index `0` receives `"0"`, the script at - * index `1` receives `"1"` etc. - * This does not normalize the script coverages. - * - * @param processCov Process coverage to normalize. - */ -export declare function normalizeProcessCov(processCov: ProcessCov): void; -/** - * Normalizes a process coverage deeply. - * - * Normalizes the script coverages deeply, then normalizes the process coverage - * itself. - * - * @param processCov Process coverage to normalize. - */ -export declare function deepNormalizeProcessCov(processCov: ProcessCov): void; -/** - * Normalizes a script coverage. - * - * Sorts the function by root range (pre-order sort). - * This does not normalize the function coverages. - * - * @param scriptCov Script coverage to normalize. - */ -export declare function normalizeScriptCov(scriptCov: ScriptCov): void; -/** - * Normalizes a script coverage deeply. - * - * Normalizes the function coverages deeply, then normalizes the script coverage - * itself. - * - * @param scriptCov Script coverage to normalize. - */ -export declare function deepNormalizeScriptCov(scriptCov: ScriptCov): void; -/** - * Normalizes a function coverage. - * - * Sorts the ranges (pre-order sort). - * TODO: Tree-based normalization of the ranges. - * - * @param funcCov Function coverage to normalize. - */ -export declare function normalizeFunctionCov(funcCov: FunctionCov): void; -/** - * @internal - */ -export declare function normalizeRangeTree(tree: RangeTree): void; diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/normalize.js b/node_modules/@bcoe/v8-coverage/dist/lib/normalize.js deleted file mode 100644 index 92df2b6f..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/normalize.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const compare_1 = require("./compare"); -const range_tree_1 = require("./range-tree"); -/** - * Normalizes a process coverage. - * - * Sorts the scripts alphabetically by `url`. - * Reassigns script ids: the script at index `0` receives `"0"`, the script at - * index `1` receives `"1"` etc. - * This does not normalize the script coverages. - * - * @param processCov Process coverage to normalize. - */ -function normalizeProcessCov(processCov) { - processCov.result.sort(compare_1.compareScriptCovs); - for (const [scriptId, scriptCov] of processCov.result.entries()) { - scriptCov.scriptId = scriptId.toString(10); - } -} -exports.normalizeProcessCov = normalizeProcessCov; -/** - * Normalizes a process coverage deeply. - * - * Normalizes the script coverages deeply, then normalizes the process coverage - * itself. - * - * @param processCov Process coverage to normalize. - */ -function deepNormalizeProcessCov(processCov) { - for (const scriptCov of processCov.result) { - deepNormalizeScriptCov(scriptCov); - } - normalizeProcessCov(processCov); -} -exports.deepNormalizeProcessCov = deepNormalizeProcessCov; -/** - * Normalizes a script coverage. - * - * Sorts the function by root range (pre-order sort). - * This does not normalize the function coverages. - * - * @param scriptCov Script coverage to normalize. - */ -function normalizeScriptCov(scriptCov) { - scriptCov.functions.sort(compare_1.compareFunctionCovs); -} -exports.normalizeScriptCov = normalizeScriptCov; -/** - * Normalizes a script coverage deeply. - * - * Normalizes the function coverages deeply, then normalizes the script coverage - * itself. - * - * @param scriptCov Script coverage to normalize. - */ -function deepNormalizeScriptCov(scriptCov) { - for (const funcCov of scriptCov.functions) { - normalizeFunctionCov(funcCov); - } - normalizeScriptCov(scriptCov); -} -exports.deepNormalizeScriptCov = deepNormalizeScriptCov; -/** - * Normalizes a function coverage. - * - * Sorts the ranges (pre-order sort). - * TODO: Tree-based normalization of the ranges. - * - * @param funcCov Function coverage to normalize. - */ -function normalizeFunctionCov(funcCov) { - funcCov.ranges.sort(compare_1.compareRangeCovs); - const tree = range_tree_1.RangeTree.fromSortedRanges(funcCov.ranges); - normalizeRangeTree(tree); - funcCov.ranges = tree.toRanges(); -} -exports.normalizeFunctionCov = normalizeFunctionCov; -/** - * @internal - */ -function normalizeRangeTree(tree) { - tree.normalize(); -} -exports.normalizeRangeTree = normalizeRangeTree; - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIl9zcmMvbm9ybWFsaXplLnRzIl0sIm5hbWVzIjp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0aW9uIGNvdmVyYWdlLlxuICpcbiAqIFNvcnRzIHRoZSByYW5nZXMgKHByZS1vcmRlciBzb3J0KS5cbiAqIFRPRE86IFRyZWUtYmFzZWQgbm9ybWFsaXphdGlvbiBvZiB0aGUgcmFuZ2VzLlxuICpcbiAqIEBwYXJhbSBmdW5jQ292IEZ1bmN0aW9uIGNvdmVyYWdlIHRvIG5vcm1hbGl6ZS5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIG5vcm1hbGl6ZUZ1bmN0aW9uQ292KGZ1bmNDb3Y6IEZ1bmN0aW9uQ292KTogdm9pZCB7XG4gIGZ1bmNDb3YucmFuZ2VzLnNvcnQoY29tcGFyZVJhbmdlQ292cyk7XG4gIGNvbnN0IHRyZWU6IFJhbmdlVHJlZSA9IFJhbmdlVHJlZS5mcm9tU29ydGVkUmFuZ2VzKGZ1bmNDb3YucmFuZ2VzKSE7XG4gIG5vcm1hbGl6ZVJhbmdlVHJlZSh0cmVlKTtcbiAgZnVuY0Nvdi5yYW5nZXMgPSB0cmVlLnRvUmFuZ2VzKCk7XG59XG5cbi8qKlxuICogQGludGVybmFsXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBub3JtYWxpemVSYW5nZVRyZWUodHJlZTogUmFuZ2VUcmVlKTogdm9pZCB7XG4gIHRyZWUubm9ybWFsaXplKCk7XG59XG4iXSwic291cmNlUm9vdCI6IiJ9 diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/normalize.mjs b/node_modules/@bcoe/v8-coverage/dist/lib/normalize.mjs deleted file mode 100644 index 2c477eb0..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/normalize.mjs +++ /dev/null @@ -1,79 +0,0 @@ -import { compareFunctionCovs, compareRangeCovs, compareScriptCovs } from "./compare"; -import { RangeTree } from "./range-tree"; -/** - * Normalizes a process coverage. - * - * Sorts the scripts alphabetically by `url`. - * Reassigns script ids: the script at index `0` receives `"0"`, the script at - * index `1` receives `"1"` etc. - * This does not normalize the script coverages. - * - * @param processCov Process coverage to normalize. - */ -export function normalizeProcessCov(processCov) { - processCov.result.sort(compareScriptCovs); - for (const [scriptId, scriptCov] of processCov.result.entries()) { - scriptCov.scriptId = scriptId.toString(10); - } -} -/** - * Normalizes a process coverage deeply. - * - * Normalizes the script coverages deeply, then normalizes the process coverage - * itself. - * - * @param processCov Process coverage to normalize. - */ -export function deepNormalizeProcessCov(processCov) { - for (const scriptCov of processCov.result) { - deepNormalizeScriptCov(scriptCov); - } - normalizeProcessCov(processCov); -} -/** - * Normalizes a script coverage. - * - * Sorts the function by root range (pre-order sort). - * This does not normalize the function coverages. - * - * @param scriptCov Script coverage to normalize. - */ -export function normalizeScriptCov(scriptCov) { - scriptCov.functions.sort(compareFunctionCovs); -} -/** - * Normalizes a script coverage deeply. - * - * Normalizes the function coverages deeply, then normalizes the script coverage - * itself. - * - * @param scriptCov Script coverage to normalize. - */ -export function deepNormalizeScriptCov(scriptCov) { - for (const funcCov of scriptCov.functions) { - normalizeFunctionCov(funcCov); - } - normalizeScriptCov(scriptCov); -} -/** - * Normalizes a function coverage. - * - * Sorts the ranges (pre-order sort). - * TODO: Tree-based normalization of the ranges. - * - * @param funcCov Function coverage to normalize. - */ -export function normalizeFunctionCov(funcCov) { - funcCov.ranges.sort(compareRangeCovs); - const tree = RangeTree.fromSortedRanges(funcCov.ranges); - normalizeRangeTree(tree); - funcCov.ranges = tree.toRanges(); -} -/** - * @internal - */ -export function normalizeRangeTree(tree) { - tree.normalize(); -} - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIl9zcmMvbm9ybWFsaXplLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxnQkFBZ0IsRUFBRSxpQkFBaUIsRUFBRSxNQUFNLFdBQVcsQ0FBQztBQUNyRixPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sY0FBYyxDQUF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6YXRpb24gb2YgdGhlIHJhbmdlcy5cbiAqXG4gKiBAcGFyYW0gZnVuY0NvdiBGdW5jdGlvbiBjb3ZlcmFnZSB0byBub3JtYWxpemUuXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBub3JtYWxpemVGdW5jdGlvbkNvdihmdW5jQ292OiBGdW5jdGlvbkNvdik6IHZvaWQge1xuICBmdW5jQ292LnJhbmdlcy5zb3J0KGNvbXBhcmVSYW5nZUNvdnMpO1xuICBjb25zdCB0cmVlOiBSYW5nZVRyZWUgPSBSYW5nZVRyZWUuZnJvbVNvcnRlZFJhbmdlcyhmdW5jQ292LnJhbmdlcykhO1xuICBub3JtYWxpemVSYW5nZVRyZWUodHJlZSk7XG4gIGZ1bmNDb3YucmFuZ2VzID0gdHJlZS50b1JhbmdlcygpO1xufVxuXG4vKipcbiAqIEBpbnRlcm5hbFxuICovXG5leHBvcnQgZnVuY3Rpb24gbm9ybWFsaXplUmFuZ2VUcmVlKHRyZWU6IFJhbmdlVHJlZSk6IHZvaWQge1xuICB0cmVlLm5vcm1hbGl6ZSgpO1xufVxuIl0sInNvdXJjZVJvb3QiOiIifQ== diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/package.json b/node_modules/@bcoe/v8-coverage/dist/lib/package.json deleted file mode 100644 index d81b33cf..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "@bcoe/v8-coverage", - "version": "0.2.3", - "description": "Helper functions for V8 coverage files.", - "author": "Charles Samborski (https://demurgos.net)", - "license": "MIT", - "main": "index", - "types": "index.d.ts", - "repository": { - "type": "git", - "url": "git://github.com/demurgos/v8-coverage.git" - }, - "homepage": "https://demurgos.github.io/v8-coverage", - "devDependencies": { - "@types/chai": "^4.1.4", - "@types/gulp": "^4.0.5", - "@types/minimist": "^1.2.0", - "@types/mocha": "^5.2.2", - "@types/node": "^10.5.4", - "chai": "^4.1.2", - "codecov": "^3.0.2", - "gulp": "^4.0.0", - "gulp-cli": "^2.0.1", - "minimist": "^1.2.0", - "pre-commit": "^1.2.2", - "ts-node": "^8.3.0", - "turbo-gulp": "^0.20.1" - }, - "nyc": { - "include": [ - "build/test/lib/**/*.js", - "build/test/lib/**/*.mjs" - ], - "reporter": [ - "text", - "html" - ], - "extension": [ - ".mjs" - ] - }, - "gitHead": "529387e2bd3e0ba0b9336d80ec563aee593331e1", - "private": false -} \ No newline at end of file diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/range-tree.d.ts b/node_modules/@bcoe/v8-coverage/dist/lib/range-tree.d.ts deleted file mode 100644 index f7e18e87..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/range-tree.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { RangeCov } from "./types"; -export declare class RangeTree { - start: number; - end: number; - delta: number; - children: RangeTree[]; - constructor(start: number, end: number, delta: number, children: RangeTree[]); - /** - * @precodition `ranges` are well-formed and pre-order sorted - */ - static fromSortedRanges(ranges: ReadonlyArray): RangeTree | undefined; - normalize(): void; - /** - * @precondition `tree.start < value && value < tree.end` - * @return RangeTree Right part - */ - split(value: number): RangeTree; - /** - * Get the range coverages corresponding to the tree. - * - * The ranges are pre-order sorted. - */ - toRanges(): RangeCov[]; -} diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/range-tree.js b/node_modules/@bcoe/v8-coverage/dist/lib/range-tree.js deleted file mode 100644 index f392cf19..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/range-tree.js +++ /dev/null @@ -1,139 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -class RangeTree { - constructor(start, end, delta, children) { - this.start = start; - this.end = end; - this.delta = delta; - this.children = children; - } - /** - * @precodition `ranges` are well-formed and pre-order sorted - */ - static fromSortedRanges(ranges) { - let root; - // Stack of parent trees and parent counts. - const stack = []; - for (const range of ranges) { - const node = new RangeTree(range.startOffset, range.endOffset, range.count, []); - if (root === undefined) { - root = node; - stack.push([node, range.count]); - continue; - } - let parent; - let parentCount; - while (true) { - [parent, parentCount] = stack[stack.length - 1]; - // assert: `top !== undefined` (the ranges are sorted) - if (range.startOffset < parent.end) { - break; - } - else { - stack.pop(); - } - } - node.delta -= parentCount; - parent.children.push(node); - stack.push([node, range.count]); - } - return root; - } - normalize() { - const children = []; - let curEnd; - let head; - const tail = []; - for (const child of this.children) { - if (head === undefined) { - head = child; - } - else if (child.delta === head.delta && child.start === curEnd) { - tail.push(child); - } - else { - endChain(); - head = child; - } - curEnd = child.end; - } - if (head !== undefined) { - endChain(); - } - if (children.length === 1) { - const child = children[0]; - if (child.start === this.start && child.end === this.end) { - this.delta += child.delta; - this.children = child.children; - // `.lazyCount` is zero for both (both are after normalization) - return; - } - } - this.children = children; - function endChain() { - if (tail.length !== 0) { - head.end = tail[tail.length - 1].end; - for (const tailTree of tail) { - for (const subChild of tailTree.children) { - subChild.delta += tailTree.delta - head.delta; - head.children.push(subChild); - } - } - tail.length = 0; - } - head.normalize(); - children.push(head); - } - } - /** - * @precondition `tree.start < value && value < tree.end` - * @return RangeTree Right part - */ - split(value) { - let leftChildLen = this.children.length; - let mid; - // TODO(perf): Binary search (check overhead) - for (let i = 0; i < this.children.length; i++) { - const child = this.children[i]; - if (child.start < value && value < child.end) { - mid = child.split(value); - leftChildLen = i + 1; - break; - } - else if (child.start >= value) { - leftChildLen = i; - break; - } - } - const rightLen = this.children.length - leftChildLen; - const rightChildren = this.children.splice(leftChildLen, rightLen); - if (mid !== undefined) { - rightChildren.unshift(mid); - } - const result = new RangeTree(value, this.end, this.delta, rightChildren); - this.end = value; - return result; - } - /** - * Get the range coverages corresponding to the tree. - * - * The ranges are pre-order sorted. - */ - toRanges() { - const ranges = []; - // Stack of parent trees and counts. - const stack = [[this, 0]]; - while (stack.length > 0) { - const [cur, parentCount] = stack.pop(); - const count = parentCount + cur.delta; - ranges.push({ startOffset: cur.start, endOffset: cur.end, count }); - for (let i = cur.children.length - 1; i >= 0; i--) { - stack.push([cur.children[i], count]); - } - } - return ranges; - } -} -exports.RangeTree = RangeTree; - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIl9zcmMvcmFuZ2UtdHJlZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUVBLE1BQWEsU0FBUztJQU1wQixZQUNFLEtBQWEsRUFDYixHQUFXLEVBQ1gsS0FBYSxFQUNiLFFBQXFCO1FBRXJCLElBQUksQ0FBQyxLQUFLLEdBQUcsS0FBSyxDQUFDO1FBQ25CLElBQUksQ0FBQyxHQUFHLEdBQUcsR0FBRyxDQUFDO1FBQ2YsSUFBSSxDQUFDLEtBQUssR0FBRyxLQUFLLENBQUM7UUFDbkIsSUFBSSxDQUFDLFFBQVEsR0FBRyxRQUFRLENBQUM7SUFDM0IsQ0FBQztJQUVEOztPQUVHO0lBQ0gsTUFBTSxDQUFDLGdCQUFnQixDQUFDLE1BQStCO1FBQ3JELElBQUksSUFBMkIsQ0FBQztRQUNoQywyQ0FBMkM7UUFDM0MsTUFBTSxLQUFLLEdBQTBCLEVBQUUsQ0FBQztRQUN4QyxLQUFLLE1BQU0sS0FBSyxJQUFJLE1BQU0sRUFBRTtZQUMxQixNQUFNLElBQUksR0FBYyxJQUFJLFNBQVMsQ0FBQyxLQUFLLENBQUMsV0FBVyxFQUFFLEtBQUssQ0FBQyxTQUFTLEVBQUUsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztZQUMzRixJQUFJLElBQUksS0FBSyxTQUFTLEVBQUU7Z0JBQ3RCLElBQUksR0FBRyxJQUFJLENBQUM7Z0JBQ1osS0FBSyxDQUFDLElBQUksQ0FBQyxDQUFDLElBQUksRUFBRSxLQUFLLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQztnQkFDaEMsU0FBUzthQUNWO1lBQ0QsSUFBSSxNQUFpQixDQUFDO1lBQ3RCLElBQUksV0FBbUIsQ0FBQztZQUN4QixPQ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uXG4gICAqL1xuICB0b1JhbmdlcygpOiBSYW5nZUNvdltdIHtcbiAgICBjb25zdCByYW5nZXM6IFJhbmdlQ292W10gPSBbXTtcbiAgICAvLyBTdGFjayBvZiBwYXJlbnQgdHJlZXMgYW5kIGNvdW50cy5cbiAgICBjb25zdCBzdGFjazogW1JhbmdlVHJlZSwgbnVtYmVyXVtdID0gW1t0aGlzLCAwXV07XG4gICAgd2hpbGUgKHN0YWNrLmxlbmd0aCA+IDApIHtcbiAgICAgIGNvbnN0IFtjdXIsIHBhcmVudENvdW50XTogW1JhbmdlVHJlZSwgbnVtYmVyXSA9IHN0YWNrLnBvcCgpITtcbiAgICAgIGNvbnN0IGNvdW50OiBudW1iZXIgPSBwYXJlbnRDb3VudCArIGN1ci5kZWx0YTtcbiAgICAgIHJhbmdlcy5wdXNoKHtzdGFydE9mZnNldDogY3VyLnN0YXJ0LCBlbmRPZmZzZXQ6IGN1ci5lbmQsIGNvdW50fSk7XG4gICAgICBmb3IgKGxldCBpOiBudW1iZXIgPSBjdXIuY2hpbGRyZW4ubGVuZ3RoIC0gMTsgaSA+PSAwOyBpLS0pIHtcbiAgICAgICAgc3RhY2sucHVzaChbY3VyLmNoaWxkcmVuW2ldLCBjb3VudF0pO1xuICAgICAgfVxuICAgIH1cbiAgICByZXR1cm4gcmFuZ2VzO1xuICB9XG59XG4iXSwic291cmNlUm9vdCI6IiJ9 diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/range-tree.mjs b/node_modules/@bcoe/v8-coverage/dist/lib/range-tree.mjs deleted file mode 100644 index 73f13dd9..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/range-tree.mjs +++ /dev/null @@ -1,136 +0,0 @@ -export class RangeTree { - constructor(start, end, delta, children) { - this.start = start; - this.end = end; - this.delta = delta; - this.children = children; - } - /** - * @precodition `ranges` are well-formed and pre-order sorted - */ - static fromSortedRanges(ranges) { - let root; - // Stack of parent trees and parent counts. - const stack = []; - for (const range of ranges) { - const node = new RangeTree(range.startOffset, range.endOffset, range.count, []); - if (root === undefined) { - root = node; - stack.push([node, range.count]); - continue; - } - let parent; - let parentCount; - while (true) { - [parent, parentCount] = stack[stack.length - 1]; - // assert: `top !== undefined` (the ranges are sorted) - if (range.startOffset < parent.end) { - break; - } - else { - stack.pop(); - } - } - node.delta -= parentCount; - parent.children.push(node); - stack.push([node, range.count]); - } - return root; - } - normalize() { - const children = []; - let curEnd; - let head; - const tail = []; - for (const child of this.children) { - if (head === undefined) { - head = child; - } - else if (child.delta === head.delta && child.start === curEnd) { - tail.push(child); - } - else { - endChain(); - head = child; - } - curEnd = child.end; - } - if (head !== undefined) { - endChain(); - } - if (children.length === 1) { - const child = children[0]; - if (child.start === this.start && child.end === this.end) { - this.delta += child.delta; - this.children = child.children; - // `.lazyCount` is zero for both (both are after normalization) - return; - } - } - this.children = children; - function endChain() { - if (tail.length !== 0) { - head.end = tail[tail.length - 1].end; - for (const tailTree of tail) { - for (const subChild of tailTree.children) { - subChild.delta += tailTree.delta - head.delta; - head.children.push(subChild); - } - } - tail.length = 0; - } - head.normalize(); - children.push(head); - } - } - /** - * @precondition `tree.start < value && value < tree.end` - * @return RangeTree Right part - */ - split(value) { - let leftChildLen = this.children.length; - let mid; - // TODO(perf): Binary search (check overhead) - for (let i = 0; i < this.children.length; i++) { - const child = this.children[i]; - if (child.start < value && value < child.end) { - mid = child.split(value); - leftChildLen = i + 1; - break; - } - else if (child.start >= value) { - leftChildLen = i; - break; - } - } - const rightLen = this.children.length - leftChildLen; - const rightChildren = this.children.splice(leftChildLen, rightLen); - if (mid !== undefined) { - rightChildren.unshift(mid); - } - const result = new RangeTree(value, this.end, this.delta, rightChildren); - this.end = value; - return result; - } - /** - * Get the range coverages corresponding to the tree. - * - * The ranges are pre-order sorted. - */ - toRanges() { - const ranges = []; - // Stack of parent trees and counts. - const stack = [[this, 0]]; - while (stack.length > 0) { - const [cur, parentCount] = stack.pop(); - const count = parentCount + cur.delta; - ranges.push({ startOffset: cur.start, endOffset: cur.end, count }); - for (let i = cur.children.length - 1; i >= 0; i--) { - stack.push([cur.children[i], count]); - } - } - return ranges; - } -} - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIl9zcmMvcmFuZ2UtdHJlZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLE9BQU8sU0FBUztJQU1wQixZQUNFLEtBQWEsRUFDYixHQUFXLEVBQ1gsS0FBYSxFQUNiLFFBQXFCO1FBRXJCLElBQUksQ0FBQyxLQUFLLEdBQUcsS0FBSyxDQUFDO1FBQ25CLElBQUksQ0FBQyxHQUFHLEdBQUcsR0FBRyxDQUFDO1FBQ2YsSUFBSSxDQUFDLEtBQUssR0FBRyxLQUFLLENBQUM7UUFDbkIsSUFBSSxDQUFDLFFBQVEsR0FBRyxRQUFRLENBQUM7SUFDM0IsQ0FBQztJQUVEOztPQUVHO0lBQ0gsTUFBTSxDQUFDLGdCQUFnQixDQUFDLE1BQStCO1FBQ3JELElBQUksSUFBMkIsQ0FBQztRQUNoQywyQ0FBMkM7UUFDM0MsTUFBTSxLQUFLLEdBQTBCLEVBQUUsQ0FBQztRQUN4QyxLQUFLLE1BQU0sS0FBSyxJQUFJLE1BQU0sRUFBRTtZQUMxQixNQUFNLElBQUksR0FBYyxJQUFJLFNBQVMsQ0FBQyxLQUFLLENBQUMsV0FBVyxFQUFFLEtBQUssQ0FBQyxTQUFTLEVBQUUsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztZQUMzRixJQUFJLElBQUksS0FBSyxTQUFTLEVBQUU7Z0JBQ3RCLElBQUksR0FBRyxJQUFJLENBQUM7Z0JBQ1osS0FBSyxDQUFDLElBQUksQ0FBQyxDQUFDLElBQUksRUFBRSxLQUFLLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQztnQkFDaEMsU0FBUzthQUNWO1lBQ0QsSUFBSSxNQUFpQixDQUFDO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RlZC5cbiAgICovXG4gIHRvUmFuZ2VzKCk6IFJhbmdlQ292W10ge1xuICAgIGNvbnN0IHJhbmdlczogUmFuZ2VDb3ZbXSA9IFtdO1xuICAgIC8vIFN0YWNrIG9mIHBhcmVudCB0cmVlcyBhbmQgY291bnRzLlxuICAgIGNvbnN0IHN0YWNrOiBbUmFuZ2VUcmVlLCBudW1iZXJdW10gPSBbW3RoaXMsIDBdXTtcbiAgICB3aGlsZSAoc3RhY2subGVuZ3RoID4gMCkge1xuICAgICAgY29uc3QgW2N1ciwgcGFyZW50Q291bnRdOiBbUmFuZ2VUcmVlLCBudW1iZXJdID0gc3RhY2sucG9wKCkhO1xuICAgICAgY29uc3QgY291bnQ6IG51bWJlciA9IHBhcmVudENvdW50ICsgY3VyLmRlbHRhO1xuICAgICAgcmFuZ2VzLnB1c2goe3N0YXJ0T2Zmc2V0OiBjdXIuc3RhcnQsIGVuZE9mZnNldDogY3VyLmVuZCwgY291bnR9KTtcbiAgICAgIGZvciAobGV0IGk6IG51bWJlciA9IGN1ci5jaGlsZHJlbi5sZW5ndGggLSAxOyBpID49IDA7IGktLSkge1xuICAgICAgICBzdGFjay5wdXNoKFtjdXIuY2hpbGRyZW5baV0sIGNvdW50XSk7XG4gICAgICB9XG4gICAgfVxuICAgIHJldHVybiByYW5nZXM7XG4gIH1cbn1cbiJdLCJzb3VyY2VSb290IjoiIn0= diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/tsconfig.json b/node_modules/@bcoe/v8-coverage/dist/lib/tsconfig.json deleted file mode 100644 index aff36e90..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/tsconfig.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "compilerOptions": { - "allowJs": false, - "allowSyntheticDefaultImports": true, - "allowUnreachableCode": false, - "allowUnusedLabels": false, - "alwaysStrict": true, - "charset": "utf8", - "checkJs": false, - "declaration": true, - "disableSizeLimit": false, - "downlevelIteration": false, - "emitBOM": false, - "emitDecoratorMetadata": true, - "esModuleInterop": true, - "experimentalDecorators": true, - "forceConsistentCasingInFileNames": true, - "importHelpers": false, - "inlineSourceMap": false, - "inlineSources": false, - "isolatedModules": false, - "lib": [ - "es2017", - "esnext.asynciterable" - ], - "locale": "en-us", - "module": "commonjs", - "moduleResolution": "node", - "newLine": "lf", - "noEmit": false, - "noEmitHelpers": false, - "noEmitOnError": true, - "noErrorTruncation": true, - "noFallthroughCasesInSwitch": true, - "noImplicitAny": true, - "noImplicitReturns": true, - "noImplicitThis": true, - "noStrictGenericChecks": false, - "noUnusedLocals": true, - "noUnusedParameters": true, - "noImplicitUseStrict": false, - "noLib": false, - "noResolve": false, - "preserveConstEnums": true, - "removeComments": false, - "skipLibCheck": true, - "sourceMap": true, - "strict": true, - "strictNullChecks": true, - "suppressExcessPropertyErrors": false, - "suppressImplicitAnyIndexErrors": false, - "target": "es2017", - "traceResolution": false, - "rootDir": "", - "outDir": "../../build/lib", - "typeRoots": [] - }, - "include": [ - "**/*.ts" - ], - "exclude": [] -} diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/types.d.ts b/node_modules/@bcoe/v8-coverage/dist/lib/types.d.ts deleted file mode 100644 index 1d44190a..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/types.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -export interface ProcessCov { - result: ScriptCov[]; -} -export interface ScriptCov { - scriptId: string; - url: string; - functions: FunctionCov[]; -} -export interface FunctionCov { - functionName: string; - ranges: RangeCov[]; - isBlockCoverage: boolean; -} -export interface Range { - readonly start: number; - readonly end: number; -} -export interface RangeCov { - startOffset: number; - endOffset: number; - count: number; -} diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/types.js b/node_modules/@bcoe/v8-coverage/dist/lib/types.js deleted file mode 100644 index 9f4533d1..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/types.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIl9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJ0eXBlcy5qcyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgUHJvY2Vzc0NvdiB7XG4gIHJlc3VsdDogU2NyaXB0Q292W107XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgU2NyaXB0Q292IHtcbiAgc2NyaXB0SWQ6IHN0cmluZztcbiAgdXJsOiBzdHJpbmc7XG4gIGZ1bmN0aW9uczogRnVuY3Rpb25Db3ZbXTtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBGdW5jdGlvbkNvdiB7XG4gIGZ1bmN0aW9uTmFtZTogc3RyaW5nO1xuICByYW5nZXM6IFJhbmdlQ292W107XG4gIGlzQmxvY2tDb3ZlcmFnZTogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBSYW5nZSB7XG4gIHJlYWRvbmx5IHN0YXJ0OiBudW1iZXI7XG4gIHJlYWRvbmx5IGVuZDogbnVtYmVyO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIFJhbmdlQ292IHtcbiAgc3RhcnRPZmZzZXQ6IG51bWJlcjtcbiAgZW5kT2Zmc2V0OiBudW1iZXI7XG4gIGNvdW50OiBudW1iZXI7XG59XG4iXSwic291cmNlUm9vdCI6IiJ9 diff --git a/node_modules/@bcoe/v8-coverage/dist/lib/types.mjs b/node_modules/@bcoe/v8-coverage/dist/lib/types.mjs deleted file mode 100644 index d5b9746a..00000000 --- a/node_modules/@bcoe/v8-coverage/dist/lib/types.mjs +++ /dev/null @@ -1,3 +0,0 @@ - - -//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIl9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJ0eXBlcy5qcyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgUHJvY2Vzc0NvdiB7XG4gIHJlc3VsdDogU2NyaXB0Q292W107XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgU2NyaXB0Q292IHtcbiAgc2NyaXB0SWQ6IHN0cmluZztcbiAgdXJsOiBzdHJpbmc7XG4gIGZ1bmN0aW9uczogRnVuY3Rpb25Db3ZbXTtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBGdW5jdGlvbkNvdiB7XG4gIGZ1bmN0aW9uTmFtZTogc3RyaW5nO1xuICByYW5nZXM6IFJhbmdlQ292W107XG4gIGlzQmxvY2tDb3ZlcmFnZTogYm9vbGVhbjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBSYW5nZSB7XG4gIHJlYWRvbmx5IHN0YXJ0OiBudW1iZXI7XG4gIHJlYWRvbmx5IGVuZDogbnVtYmVyO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIFJhbmdlQ292IHtcbiAgc3RhcnRPZmZzZXQ6IG51bWJlcjtcbiAgZW5kT2Zmc2V0OiBudW1iZXI7XG4gIGNvdW50OiBudW1iZXI7XG59XG4iXSwic291cmNlUm9vdCI6IiJ9 diff --git a/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs b/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs deleted file mode 100644 index 64e66666..00000000 --- a/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs +++ /dev/null @@ -1,1104 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var util = require('util'); -var path = require('path'); -var Ajv = require('ajv'); -var globals = require('globals'); - -function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } - -var util__default = /*#__PURE__*/_interopDefaultLegacy(util); -var path__default = /*#__PURE__*/_interopDefaultLegacy(path); -var Ajv__default = /*#__PURE__*/_interopDefaultLegacy(Ajv); -var globals__default = /*#__PURE__*/_interopDefaultLegacy(globals); - -/** - * @fileoverview Config file operations. This file must be usable in the browser, - * so no Node-specific code can be here. - * @author Nicholas C. Zakas - */ - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - -const RULE_SEVERITY_STRINGS = ["off", "warn", "error"], - RULE_SEVERITY = RULE_SEVERITY_STRINGS.reduce((map, value, index) => { - map[value] = index; - return map; - }, {}), - VALID_SEVERITIES = [0, 1, 2, "off", "warn", "error"]; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Normalizes the severity value of a rule's configuration to a number - * @param {(number|string|[number, ...*]|[string, ...*])} ruleConfig A rule's configuration value, generally - * received from the user. A valid config value is either 0, 1, 2, the string "off" (treated the same as 0), - * the string "warn" (treated the same as 1), the string "error" (treated the same as 2), or an array - * whose first element is one of the above values. Strings are matched case-insensitively. - * @returns {(0|1|2)} The numeric severity value if the config value was valid, otherwise 0. - */ -function getRuleSeverity(ruleConfig) { - const severityValue = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig; - - if (severityValue === 0 || severityValue === 1 || severityValue === 2) { - return severityValue; - } - - if (typeof severityValue === "string") { - return RULE_SEVERITY[severityValue.toLowerCase()] || 0; - } - - return 0; -} - -/** - * Converts old-style severity settings (0, 1, 2) into new-style - * severity settings (off, warn, error) for all rules. Assumption is that severity - * values have already been validated as correct. - * @param {Object} config The config object to normalize. - * @returns {void} - */ -function normalizeToStrings(config) { - - if (config.rules) { - Object.keys(config.rules).forEach(ruleId => { - const ruleConfig = config.rules[ruleId]; - - if (typeof ruleConfig === "number") { - config.rules[ruleId] = RULE_SEVERITY_STRINGS[ruleConfig] || RULE_SEVERITY_STRINGS[0]; - } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === "number") { - ruleConfig[0] = RULE_SEVERITY_STRINGS[ruleConfig[0]] || RULE_SEVERITY_STRINGS[0]; - } - }); - } -} - -/** - * Determines if the severity for the given rule configuration represents an error. - * @param {int|string|Array} ruleConfig The configuration for an individual rule. - * @returns {boolean} True if the rule represents an error, false if not. - */ -function isErrorSeverity(ruleConfig) { - return getRuleSeverity(ruleConfig) === 2; -} - -/** - * Checks whether a given config has valid severity or not. - * @param {number|string|Array} ruleConfig The configuration for an individual rule. - * @returns {boolean} `true` if the configuration has valid severity. - */ -function isValidSeverity(ruleConfig) { - let severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig; - - if (typeof severity === "string") { - severity = severity.toLowerCase(); - } - return VALID_SEVERITIES.indexOf(severity) !== -1; -} - -/** - * Checks whether every rule of a given config has valid severity or not. - * @param {Object} config The configuration for rules. - * @returns {boolean} `true` if the configuration has valid severity. - */ -function isEverySeverityValid(config) { - return Object.keys(config).every(ruleId => isValidSeverity(config[ruleId])); -} - -/** - * Normalizes a value for a global in a config - * @param {(boolean|string|null)} configuredValue The value given for a global in configuration or in - * a global directive comment - * @returns {("readable"|"writeable"|"off")} The value normalized as a string - * @throws Error if global value is invalid - */ -function normalizeConfigGlobal(configuredValue) { - switch (configuredValue) { - case "off": - return "off"; - - case true: - case "true": - case "writeable": - case "writable": - return "writable"; - - case null: - case false: - case "false": - case "readable": - case "readonly": - return "readonly"; - - default: - throw new Error(`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`); - } -} - -var ConfigOps = { - __proto__: null, - getRuleSeverity: getRuleSeverity, - normalizeToStrings: normalizeToStrings, - isErrorSeverity: isErrorSeverity, - isValidSeverity: isValidSeverity, - isEverySeverityValid: isEverySeverityValid, - normalizeConfigGlobal: normalizeConfigGlobal -}; - -/** - * @fileoverview Provide the function that emits deprecation warnings. - * @author Toru Nagashima - */ - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - -// Defitions for deprecation warnings. -const deprecationWarningMessages = { - ESLINT_LEGACY_ECMAFEATURES: - "The 'ecmaFeatures' config file property is deprecated and has no effect.", - ESLINT_PERSONAL_CONFIG_LOAD: - "'~/.eslintrc.*' config files have been deprecated. " + - "Please use a config file per project or the '--config' option.", - ESLINT_PERSONAL_CONFIG_SUPPRESS: - "'~/.eslintrc.*' config files have been deprecated. " + - "Please remove it or add 'root:true' to the config files in your " + - "projects in order to avoid loading '~/.eslintrc.*' accidentally." -}; - -const sourceFileErrorCache = new Set(); - -/** - * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted - * for each unique file path, but repeated invocations with the same file path have no effect. - * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active. - * @param {string} source The name of the configuration source to report the warning for. - * @param {string} errorCode The warning message to show. - * @returns {void} - */ -function emitDeprecationWarning(source, errorCode) { - const cacheKey = JSON.stringify({ source, errorCode }); - - if (sourceFileErrorCache.has(cacheKey)) { - return; - } - sourceFileErrorCache.add(cacheKey); - - const rel = path__default["default"].relative(process.cwd(), source); - const message = deprecationWarningMessages[errorCode]; - - process.emitWarning( - `${message} (found in "${rel}")`, - "DeprecationWarning", - errorCode - ); -} - -/** - * @fileoverview The instance of Ajv validator. - * @author Evgeny Poberezkin - */ - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -/* - * Copied from ajv/lib/refs/json-schema-draft-04.json - * The MIT License (MIT) - * Copyright (c) 2015-2017 Evgeny Poberezkin - */ -const metaSchema = { - id: "http://json-schema.org/draft-04/schema#", - $schema: "http://json-schema.org/draft-04/schema#", - description: "Core schema meta-schema", - definitions: { - schemaArray: { - type: "array", - minItems: 1, - items: { $ref: "#" } - }, - positiveInteger: { - type: "integer", - minimum: 0 - }, - positiveIntegerDefault0: { - allOf: [{ $ref: "#/definitions/positiveInteger" }, { default: 0 }] - }, - simpleTypes: { - enum: ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - stringArray: { - type: "array", - items: { type: "string" }, - minItems: 1, - uniqueItems: true - } - }, - type: "object", - properties: { - id: { - type: "string" - }, - $schema: { - type: "string" - }, - title: { - type: "string" - }, - description: { - type: "string" - }, - default: { }, - multipleOf: { - type: "number", - minimum: 0, - exclusiveMinimum: true - }, - maximum: { - type: "number" - }, - exclusiveMaximum: { - type: "boolean", - default: false - }, - minimum: { - type: "number" - }, - exclusiveMinimum: { - type: "boolean", - default: false - }, - maxLength: { $ref: "#/definitions/positiveInteger" }, - minLength: { $ref: "#/definitions/positiveIntegerDefault0" }, - pattern: { - type: "string", - format: "regex" - }, - additionalItems: { - anyOf: [ - { type: "boolean" }, - { $ref: "#" } - ], - default: { } - }, - items: { - anyOf: [ - { $ref: "#" }, - { $ref: "#/definitions/schemaArray" } - ], - default: { } - }, - maxItems: { $ref: "#/definitions/positiveInteger" }, - minItems: { $ref: "#/definitions/positiveIntegerDefault0" }, - uniqueItems: { - type: "boolean", - default: false - }, - maxProperties: { $ref: "#/definitions/positiveInteger" }, - minProperties: { $ref: "#/definitions/positiveIntegerDefault0" }, - required: { $ref: "#/definitions/stringArray" }, - additionalProperties: { - anyOf: [ - { type: "boolean" }, - { $ref: "#" } - ], - default: { } - }, - definitions: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - properties: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - patternProperties: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - dependencies: { - type: "object", - additionalProperties: { - anyOf: [ - { $ref: "#" }, - { $ref: "#/definitions/stringArray" } - ] - } - }, - enum: { - type: "array", - minItems: 1, - uniqueItems: true - }, - type: { - anyOf: [ - { $ref: "#/definitions/simpleTypes" }, - { - type: "array", - items: { $ref: "#/definitions/simpleTypes" }, - minItems: 1, - uniqueItems: true - } - ] - }, - format: { type: "string" }, - allOf: { $ref: "#/definitions/schemaArray" }, - anyOf: { $ref: "#/definitions/schemaArray" }, - oneOf: { $ref: "#/definitions/schemaArray" }, - not: { $ref: "#" } - }, - dependencies: { - exclusiveMaximum: ["maximum"], - exclusiveMinimum: ["minimum"] - }, - default: { } -}; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -var ajvOrig = (additionalOptions = {}) => { - const ajv = new Ajv__default["default"]({ - meta: false, - useDefaults: true, - validateSchema: false, - missingRefs: "ignore", - verbose: true, - schemaId: "auto", - ...additionalOptions - }); - - ajv.addMetaSchema(metaSchema); - // eslint-disable-next-line no-underscore-dangle - ajv._opts.defaultMeta = metaSchema.id; - - return ajv; -}; - -/** - * @fileoverview Defines a schema for configs. - * @author Sylvan Mably - */ - -const baseConfigProperties = { - $schema: { type: "string" }, - env: { type: "object" }, - extends: { $ref: "#/definitions/stringOrStrings" }, - globals: { type: "object" }, - overrides: { - type: "array", - items: { $ref: "#/definitions/overrideConfig" }, - additionalItems: false - }, - parser: { type: ["string", "null"] }, - parserOptions: { type: "object" }, - plugins: { type: "array" }, - processor: { type: "string" }, - rules: { type: "object" }, - settings: { type: "object" }, - noInlineConfig: { type: "boolean" }, - reportUnusedDisableDirectives: { type: "boolean" }, - - ecmaFeatures: { type: "object" } // deprecated; logs a warning when used -}; - -const configSchema = { - definitions: { - stringOrStrings: { - oneOf: [ - { type: "string" }, - { - type: "array", - items: { type: "string" }, - additionalItems: false - } - ] - }, - stringOrStringsRequired: { - oneOf: [ - { type: "string" }, - { - type: "array", - items: { type: "string" }, - additionalItems: false, - minItems: 1 - } - ] - }, - - // Config at top-level. - objectConfig: { - type: "object", - properties: { - root: { type: "boolean" }, - ignorePatterns: { $ref: "#/definitions/stringOrStrings" }, - ...baseConfigProperties - }, - additionalProperties: false - }, - - // Config in `overrides`. - overrideConfig: { - type: "object", - properties: { - excludedFiles: { $ref: "#/definitions/stringOrStrings" }, - files: { $ref: "#/definitions/stringOrStringsRequired" }, - ...baseConfigProperties - }, - required: ["files"], - additionalProperties: false - } - }, - - $ref: "#/definitions/objectConfig" -}; - -/** - * @fileoverview Defines environment settings and globals. - * @author Elan Shanker - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Get the object that has difference. - * @param {Record} current The newer object. - * @param {Record} prev The older object. - * @returns {Record} The difference object. - */ -function getDiff(current, prev) { - const retv = {}; - - for (const [key, value] of Object.entries(current)) { - if (!Object.hasOwnProperty.call(prev, key)) { - retv[key] = value; - } - } - - return retv; -} - -const newGlobals2015 = getDiff(globals__default["default"].es2015, globals__default["default"].es5); // 19 variables such as Promise, Map, ... -const newGlobals2017 = { - Atomics: false, - SharedArrayBuffer: false -}; -const newGlobals2020 = { - BigInt: false, - BigInt64Array: false, - BigUint64Array: false, - globalThis: false -}; - -const newGlobals2021 = { - AggregateError: false, - FinalizationRegistry: false, - WeakRef: false -}; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** @type {Map} */ -var environments = new Map(Object.entries({ - - // Language - builtin: { - globals: globals__default["default"].es5 - }, - es6: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 6 - } - }, - es2015: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 6 - } - }, - es2016: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 7 - } - }, - es2017: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 8 - } - }, - es2018: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 9 - } - }, - es2019: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 10 - } - }, - es2020: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 }, - parserOptions: { - ecmaVersion: 11 - } - }, - es2021: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 12 - } - }, - es2022: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 13 - } - }, - es2023: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 14 - } - }, - es2024: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 15 - } - }, - - // Platforms - browser: { - globals: globals__default["default"].browser - }, - node: { - globals: globals__default["default"].node, - parserOptions: { - ecmaFeatures: { - globalReturn: true - } - } - }, - "shared-node-browser": { - globals: globals__default["default"]["shared-node-browser"] - }, - worker: { - globals: globals__default["default"].worker - }, - serviceworker: { - globals: globals__default["default"].serviceworker - }, - - // Frameworks - commonjs: { - globals: globals__default["default"].commonjs, - parserOptions: { - ecmaFeatures: { - globalReturn: true - } - } - }, - amd: { - globals: globals__default["default"].amd - }, - mocha: { - globals: globals__default["default"].mocha - }, - jasmine: { - globals: globals__default["default"].jasmine - }, - jest: { - globals: globals__default["default"].jest - }, - phantomjs: { - globals: globals__default["default"].phantomjs - }, - jquery: { - globals: globals__default["default"].jquery - }, - qunit: { - globals: globals__default["default"].qunit - }, - prototypejs: { - globals: globals__default["default"].prototypejs - }, - shelljs: { - globals: globals__default["default"].shelljs - }, - meteor: { - globals: globals__default["default"].meteor - }, - mongo: { - globals: globals__default["default"].mongo - }, - protractor: { - globals: globals__default["default"].protractor - }, - applescript: { - globals: globals__default["default"].applescript - }, - nashorn: { - globals: globals__default["default"].nashorn - }, - atomtest: { - globals: globals__default["default"].atomtest - }, - embertest: { - globals: globals__default["default"].embertest - }, - webextensions: { - globals: globals__default["default"].webextensions - }, - greasemonkey: { - globals: globals__default["default"].greasemonkey - } -})); - -/** - * @fileoverview Validates configs. - * @author Brandon Mills - */ - -const ajv = ajvOrig(); - -const ruleValidators = new WeakMap(); -const noop = Function.prototype; - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ -let validateSchema; -const severityMap = { - error: 2, - warn: 1, - off: 0 -}; - -const validated = new WeakSet(); - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -class ConfigValidator { - constructor({ builtInRules = new Map() } = {}) { - this.builtInRules = builtInRules; - } - - /** - * Gets a complete options schema for a rule. - * @param {{create: Function, schema: (Array|null)}} rule A new-style rule object - * @returns {Object} JSON Schema for the rule's options. - */ - getRuleOptionsSchema(rule) { - if (!rule) { - return null; - } - - const schema = rule.schema || rule.meta && rule.meta.schema; - - // Given a tuple of schemas, insert warning level at the beginning - if (Array.isArray(schema)) { - if (schema.length) { - return { - type: "array", - items: schema, - minItems: 0, - maxItems: schema.length - }; - } - return { - type: "array", - minItems: 0, - maxItems: 0 - }; - - } - - // Given a full schema, leave it alone - return schema || null; - } - - /** - * Validates a rule's severity and returns the severity value. Throws an error if the severity is invalid. - * @param {options} options The given options for the rule. - * @returns {number|string} The rule's severity value - */ - validateRuleSeverity(options) { - const severity = Array.isArray(options) ? options[0] : options; - const normSeverity = typeof severity === "string" ? severityMap[severity.toLowerCase()] : severity; - - if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) { - return normSeverity; - } - - throw new Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util__default["default"].inspect(severity).replace(/'/gu, "\"").replace(/\n/gu, "")}').\n`); - - } - - /** - * Validates the non-severity options passed to a rule, based on its schema. - * @param {{create: Function}} rule The rule to validate - * @param {Array} localOptions The options for the rule, excluding severity - * @returns {void} - */ - validateRuleSchema(rule, localOptions) { - if (!ruleValidators.has(rule)) { - const schema = this.getRuleOptionsSchema(rule); - - if (schema) { - ruleValidators.set(rule, ajv.compile(schema)); - } - } - - const validateRule = ruleValidators.get(rule); - - if (validateRule) { - validateRule(localOptions); - if (validateRule.errors) { - throw new Error(validateRule.errors.map( - error => `\tValue ${JSON.stringify(error.data)} ${error.message}.\n` - ).join("")); - } - } - } - - /** - * Validates a rule's options against its schema. - * @param {{create: Function}|null} rule The rule that the config is being validated for - * @param {string} ruleId The rule's unique name. - * @param {Array|number} options The given options for the rule. - * @param {string|null} source The name of the configuration source to report in any errors. If null or undefined, - * no source is prepended to the message. - * @returns {void} - */ - validateRuleOptions(rule, ruleId, options, source = null) { - try { - const severity = this.validateRuleSeverity(options); - - if (severity !== 0) { - this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []); - } - } catch (err) { - const enhancedMessage = `Configuration for rule "${ruleId}" is invalid:\n${err.message}`; - - if (typeof source === "string") { - throw new Error(`${source}:\n\t${enhancedMessage}`); - } else { - throw new Error(enhancedMessage); - } - } - } - - /** - * Validates an environment object - * @param {Object} environment The environment config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded environments. - * @returns {void} - */ - validateEnvironment( - environment, - source, - getAdditionalEnv = noop - ) { - - // not having an environment is ok - if (!environment) { - return; - } - - Object.keys(environment).forEach(id => { - const env = getAdditionalEnv(id) || environments.get(id) || null; - - if (!env) { - const message = `${source}:\n\tEnvironment key "${id}" is unknown\n`; - - throw new Error(message); - } - }); - } - - /** - * Validates a rules config object - * @param {Object} rulesConfig The rules config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(ruleId:string): Object} getAdditionalRule A map from strings to loaded rules - * @returns {void} - */ - validateRules( - rulesConfig, - source, - getAdditionalRule = noop - ) { - if (!rulesConfig) { - return; - } - - Object.keys(rulesConfig).forEach(id => { - const rule = getAdditionalRule(id) || this.builtInRules.get(id) || null; - - this.validateRuleOptions(rule, id, rulesConfig[id], source); - }); - } - - /** - * Validates a `globals` section of a config file - * @param {Object} globalsConfig The `globals` section - * @param {string|null} source The name of the configuration source to report in the event of an error. - * @returns {void} - */ - validateGlobals(globalsConfig, source = null) { - if (!globalsConfig) { - return; - } - - Object.entries(globalsConfig) - .forEach(([configuredGlobal, configuredValue]) => { - try { - normalizeConfigGlobal(configuredValue); - } catch (err) { - throw new Error(`ESLint configuration of global '${configuredGlobal}' in ${source} is invalid:\n${err.message}`); - } - }); - } - - /** - * Validate `processor` configuration. - * @param {string|undefined} processorName The processor name. - * @param {string} source The name of config file. - * @param {function(id:string): Processor} getProcessor The getter of defined processors. - * @returns {void} - */ - validateProcessor(processorName, source, getProcessor) { - if (processorName && !getProcessor(processorName)) { - throw new Error(`ESLint configuration of processor in '${source}' is invalid: '${processorName}' was not found.`); - } - } - - /** - * Formats an array of schema validation errors. - * @param {Array} errors An array of error messages to format. - * @returns {string} Formatted error message - */ - formatErrors(errors) { - return errors.map(error => { - if (error.keyword === "additionalProperties") { - const formattedPropertyPath = error.dataPath.length ? `${error.dataPath.slice(1)}.${error.params.additionalProperty}` : error.params.additionalProperty; - - return `Unexpected top-level property "${formattedPropertyPath}"`; - } - if (error.keyword === "type") { - const formattedField = error.dataPath.slice(1); - const formattedExpectedType = Array.isArray(error.schema) ? error.schema.join("/") : error.schema; - const formattedValue = JSON.stringify(error.data); - - return `Property "${formattedField}" is the wrong type (expected ${formattedExpectedType} but got \`${formattedValue}\`)`; - } - - const field = error.dataPath[0] === "." ? error.dataPath.slice(1) : error.dataPath; - - return `"${field}" ${error.message}. Value: ${JSON.stringify(error.data)}`; - }).map(message => `\t- ${message}.\n`).join(""); - } - - /** - * Validates the top level properties of the config object. - * @param {Object} config The config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @returns {void} - */ - validateConfigSchema(config, source = null) { - validateSchema = validateSchema || ajv.compile(configSchema); - - if (!validateSchema(config)) { - throw new Error(`ESLint configuration in ${source} is invalid:\n${this.formatErrors(validateSchema.errors)}`); - } - - if (Object.hasOwnProperty.call(config, "ecmaFeatures")) { - emitDeprecationWarning(source, "ESLINT_LEGACY_ECMAFEATURES"); - } - } - - /** - * Validates an entire config object. - * @param {Object} config The config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(ruleId:string): Object} [getAdditionalRule] A map from strings to loaded rules. - * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded envs. - * @returns {void} - */ - validate(config, source, getAdditionalRule, getAdditionalEnv) { - this.validateConfigSchema(config, source); - this.validateRules(config.rules, source, getAdditionalRule); - this.validateEnvironment(config.env, source, getAdditionalEnv); - this.validateGlobals(config.globals, source); - - for (const override of config.overrides || []) { - this.validateRules(override.rules, source, getAdditionalRule); - this.validateEnvironment(override.env, source, getAdditionalEnv); - this.validateGlobals(config.globals, source); - } - } - - /** - * Validate config array object. - * @param {ConfigArray} configArray The config array to validate. - * @returns {void} - */ - validateConfigArray(configArray) { - const getPluginEnv = Map.prototype.get.bind(configArray.pluginEnvironments); - const getPluginProcessor = Map.prototype.get.bind(configArray.pluginProcessors); - const getPluginRule = Map.prototype.get.bind(configArray.pluginRules); - - // Validate. - for (const element of configArray) { - if (validated.has(element)) { - continue; - } - validated.add(element); - - this.validateEnvironment(element.env, element.name, getPluginEnv); - this.validateGlobals(element.globals, element.name); - this.validateProcessor(element.processor, element.name, getPluginProcessor); - this.validateRules(element.rules, element.name, getPluginRule); - } - } - -} - -/** - * @fileoverview Common helpers for naming of plugins, formatters and configs - */ - -const NAMESPACE_REGEX = /^@.*\//iu; - -/** - * Brings package name to correct format based on prefix - * @param {string} name The name of the package. - * @param {string} prefix Can be either "eslint-plugin", "eslint-config" or "eslint-formatter" - * @returns {string} Normalized name of the package - * @private - */ -function normalizePackageName(name, prefix) { - let normalizedName = name; - - /** - * On Windows, name can come in with Windows slashes instead of Unix slashes. - * Normalize to Unix first to avoid errors later on. - * https://github.com/eslint/eslint/issues/5644 - */ - if (normalizedName.includes("\\")) { - normalizedName = normalizedName.replace(/\\/gu, "/"); - } - - if (normalizedName.charAt(0) === "@") { - - /** - * it's a scoped package - * package name is the prefix, or just a username - */ - const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, "u"), - scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, "u"); - - if (scopedPackageShortcutRegex.test(normalizedName)) { - normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`); - } else if (!scopedPackageNameRegex.test(normalizedName.split("/")[1])) { - - /** - * for scoped packages, insert the prefix after the first / unless - * the path is already @scope/eslint or @scope/eslint-xxx-yyy - */ - normalizedName = normalizedName.replace(/^@([^/]+)\/(.*)$/u, `@$1/${prefix}-$2`); - } - } else if (!normalizedName.startsWith(`${prefix}-`)) { - normalizedName = `${prefix}-${normalizedName}`; - } - - return normalizedName; -} - -/** - * Removes the prefix from a fullname. - * @param {string} fullname The term which may have the prefix. - * @param {string} prefix The prefix to remove. - * @returns {string} The term without prefix. - */ -function getShorthandName(fullname, prefix) { - if (fullname[0] === "@") { - let matchResult = new RegExp(`^(@[^/]+)/${prefix}$`, "u").exec(fullname); - - if (matchResult) { - return matchResult[1]; - } - - matchResult = new RegExp(`^(@[^/]+)/${prefix}-(.+)$`, "u").exec(fullname); - if (matchResult) { - return `${matchResult[1]}/${matchResult[2]}`; - } - } else if (fullname.startsWith(`${prefix}-`)) { - return fullname.slice(prefix.length + 1); - } - - return fullname; -} - -/** - * Gets the scope (namespace) of a term. - * @param {string} term The term which may have the namespace. - * @returns {string} The namespace of the term if it has one. - */ -function getNamespaceFromTerm(term) { - const match = term.match(NAMESPACE_REGEX); - - return match ? match[0] : ""; -} - -var naming = { - __proto__: null, - normalizePackageName: normalizePackageName, - getShorthandName: getShorthandName, - getNamespaceFromTerm: getNamespaceFromTerm -}; - -/** - * @fileoverview Package exports for @eslint/eslintrc - * @author Nicholas C. Zakas - */ - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -const Legacy = { - environments, - - // shared - ConfigOps, - ConfigValidator, - naming -}; - -exports.Legacy = Legacy; -//# sourceMappingURL=eslintrc-universal.cjs.map diff --git a/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map b/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map deleted file mode 100644 index 12895a6c..00000000 --- a/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"eslintrc-universal.cjs","sources":["../lib/shared/config-ops.js","../lib/shared/deprecation-warnings.js","../lib/shared/ajv.js","../conf/config-schema.js","../conf/environments.js","../lib/shared/config-validator.js","../lib/shared/naming.js","../lib/index-universal.js"],"sourcesContent":["/**\n * @fileoverview Config file operations. This file must be usable in the browser,\n * so no Node-specific code can be here.\n * @author Nicholas C. Zakas\n */\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\n\nconst RULE_SEVERITY_STRINGS = [\"off\", \"warn\", \"error\"],\n RULE_SEVERITY = RULE_SEVERITY_STRINGS.reduce((map, value, index) => {\n map[value] = index;\n return map;\n }, {}),\n VALID_SEVERITIES = [0, 1, 2, \"off\", \"warn\", \"error\"];\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/**\n * Normalizes the severity value of a rule's configuration to a number\n * @param {(number|string|[number, ...*]|[string, ...*])} ruleConfig A rule's configuration value, generally\n * received from the user. A valid config value is either 0, 1, 2, the string \"off\" (treated the same as 0),\n * the string \"warn\" (treated the same as 1), the string \"error\" (treated the same as 2), or an array\n * whose first element is one of the above values. Strings are matched case-insensitively.\n * @returns {(0|1|2)} The numeric severity value if the config value was valid, otherwise 0.\n */\nfunction getRuleSeverity(ruleConfig) {\n const severityValue = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;\n\n if (severityValue === 0 || severityValue === 1 || severityValue === 2) {\n return severityValue;\n }\n\n if (typeof severityValue === \"string\") {\n return RULE_SEVERITY[severityValue.toLowerCase()] || 0;\n }\n\n return 0;\n}\n\n/**\n * Converts old-style severity settings (0, 1, 2) into new-style\n * severity settings (off, warn, error) for all rules. Assumption is that severity\n * values have already been validated as correct.\n * @param {Object} config The config object to normalize.\n * @returns {void}\n */\nfunction normalizeToStrings(config) {\n\n if (config.rules) {\n Object.keys(config.rules).forEach(ruleId => {\n const ruleConfig = config.rules[ruleId];\n\n if (typeof ruleConfig === \"number\") {\n config.rules[ruleId] = RULE_SEVERITY_STRINGS[ruleConfig] || RULE_SEVERITY_STRINGS[0];\n } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === \"number\") {\n ruleConfig[0] = RULE_SEVERITY_STRINGS[ruleConfig[0]] || RULE_SEVERITY_STRINGS[0];\n }\n });\n }\n}\n\n/**\n * Determines if the severity for the given rule configuration represents an error.\n * @param {int|string|Array} ruleConfig The configuration for an individual rule.\n * @returns {boolean} True if the rule represents an error, false if not.\n */\nfunction isErrorSeverity(ruleConfig) {\n return getRuleSeverity(ruleConfig) === 2;\n}\n\n/**\n * Checks whether a given config has valid severity or not.\n * @param {number|string|Array} ruleConfig The configuration for an individual rule.\n * @returns {boolean} `true` if the configuration has valid severity.\n */\nfunction isValidSeverity(ruleConfig) {\n let severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;\n\n if (typeof severity === \"string\") {\n severity = severity.toLowerCase();\n }\n return VALID_SEVERITIES.indexOf(severity) !== -1;\n}\n\n/**\n * Checks whether every rule of a given config has valid severity or not.\n * @param {Object} config The configuration for rules.\n * @returns {boolean} `true` if the configuration has valid severity.\n */\nfunction isEverySeverityValid(config) {\n return Object.keys(config).every(ruleId => isValidSeverity(config[ruleId]));\n}\n\n/**\n * Normalizes a value for a global in a config\n * @param {(boolean|string|null)} configuredValue The value given for a global in configuration or in\n * a global directive comment\n * @returns {(\"readable\"|\"writeable\"|\"off\")} The value normalized as a string\n * @throws Error if global value is invalid\n */\nfunction normalizeConfigGlobal(configuredValue) {\n switch (configuredValue) {\n case \"off\":\n return \"off\";\n\n case true:\n case \"true\":\n case \"writeable\":\n case \"writable\":\n return \"writable\";\n\n case null:\n case false:\n case \"false\":\n case \"readable\":\n case \"readonly\":\n return \"readonly\";\n\n default:\n throw new Error(`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`);\n }\n}\n\nexport {\n getRuleSeverity,\n normalizeToStrings,\n isErrorSeverity,\n isValidSeverity,\n isEverySeverityValid,\n normalizeConfigGlobal\n};\n","/**\n * @fileoverview Provide the function that emits deprecation warnings.\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport path from \"path\";\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\n\n// Defitions for deprecation warnings.\nconst deprecationWarningMessages = {\n ESLINT_LEGACY_ECMAFEATURES:\n \"The 'ecmaFeatures' config file property is deprecated and has no effect.\",\n ESLINT_PERSONAL_CONFIG_LOAD:\n \"'~/.eslintrc.*' config files have been deprecated. \" +\n \"Please use a config file per project or the '--config' option.\",\n ESLINT_PERSONAL_CONFIG_SUPPRESS:\n \"'~/.eslintrc.*' config files have been deprecated. \" +\n \"Please remove it or add 'root:true' to the config files in your \" +\n \"projects in order to avoid loading '~/.eslintrc.*' accidentally.\"\n};\n\nconst sourceFileErrorCache = new Set();\n\n/**\n * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted\n * for each unique file path, but repeated invocations with the same file path have no effect.\n * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active.\n * @param {string} source The name of the configuration source to report the warning for.\n * @param {string} errorCode The warning message to show.\n * @returns {void}\n */\nfunction emitDeprecationWarning(source, errorCode) {\n const cacheKey = JSON.stringify({ source, errorCode });\n\n if (sourceFileErrorCache.has(cacheKey)) {\n return;\n }\n sourceFileErrorCache.add(cacheKey);\n\n const rel = path.relative(process.cwd(), source);\n const message = deprecationWarningMessages[errorCode];\n\n process.emitWarning(\n `${message} (found in \"${rel}\")`,\n \"DeprecationWarning\",\n errorCode\n );\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport {\n emitDeprecationWarning\n};\n","/**\n * @fileoverview The instance of Ajv validator.\n * @author Evgeny Poberezkin\n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport Ajv from \"ajv\";\n\n//-----------------------------------------------------------------------------\n// Helpers\n//-----------------------------------------------------------------------------\n\n/*\n * Copied from ajv/lib/refs/json-schema-draft-04.json\n * The MIT License (MIT)\n * Copyright (c) 2015-2017 Evgeny Poberezkin\n */\nconst metaSchema = {\n id: \"http://json-schema.org/draft-04/schema#\",\n $schema: \"http://json-schema.org/draft-04/schema#\",\n description: \"Core schema meta-schema\",\n definitions: {\n schemaArray: {\n type: \"array\",\n minItems: 1,\n items: { $ref: \"#\" }\n },\n positiveInteger: {\n type: \"integer\",\n minimum: 0\n },\n positiveIntegerDefault0: {\n allOf: [{ $ref: \"#/definitions/positiveInteger\" }, { default: 0 }]\n },\n simpleTypes: {\n enum: [\"array\", \"boolean\", \"integer\", \"null\", \"number\", \"object\", \"string\"]\n },\n stringArray: {\n type: \"array\",\n items: { type: \"string\" },\n minItems: 1,\n uniqueItems: true\n }\n },\n type: \"object\",\n properties: {\n id: {\n type: \"string\"\n },\n $schema: {\n type: \"string\"\n },\n title: {\n type: \"string\"\n },\n description: {\n type: \"string\"\n },\n default: { },\n multipleOf: {\n type: \"number\",\n minimum: 0,\n exclusiveMinimum: true\n },\n maximum: {\n type: \"number\"\n },\n exclusiveMaximum: {\n type: \"boolean\",\n default: false\n },\n minimum: {\n type: \"number\"\n },\n exclusiveMinimum: {\n type: \"boolean\",\n default: false\n },\n maxLength: { $ref: \"#/definitions/positiveInteger\" },\n minLength: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n pattern: {\n type: \"string\",\n format: \"regex\"\n },\n additionalItems: {\n anyOf: [\n { type: \"boolean\" },\n { $ref: \"#\" }\n ],\n default: { }\n },\n items: {\n anyOf: [\n { $ref: \"#\" },\n { $ref: \"#/definitions/schemaArray\" }\n ],\n default: { }\n },\n maxItems: { $ref: \"#/definitions/positiveInteger\" },\n minItems: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n uniqueItems: {\n type: \"boolean\",\n default: false\n },\n maxProperties: { $ref: \"#/definitions/positiveInteger\" },\n minProperties: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n required: { $ref: \"#/definitions/stringArray\" },\n additionalProperties: {\n anyOf: [\n { type: \"boolean\" },\n { $ref: \"#\" }\n ],\n default: { }\n },\n definitions: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n properties: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n patternProperties: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n dependencies: {\n type: \"object\",\n additionalProperties: {\n anyOf: [\n { $ref: \"#\" },\n { $ref: \"#/definitions/stringArray\" }\n ]\n }\n },\n enum: {\n type: \"array\",\n minItems: 1,\n uniqueItems: true\n },\n type: {\n anyOf: [\n { $ref: \"#/definitions/simpleTypes\" },\n {\n type: \"array\",\n items: { $ref: \"#/definitions/simpleTypes\" },\n minItems: 1,\n uniqueItems: true\n }\n ]\n },\n format: { type: \"string\" },\n allOf: { $ref: \"#/definitions/schemaArray\" },\n anyOf: { $ref: \"#/definitions/schemaArray\" },\n oneOf: { $ref: \"#/definitions/schemaArray\" },\n not: { $ref: \"#\" }\n },\n dependencies: {\n exclusiveMaximum: [\"maximum\"],\n exclusiveMinimum: [\"minimum\"]\n },\n default: { }\n};\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport default (additionalOptions = {}) => {\n const ajv = new Ajv({\n meta: false,\n useDefaults: true,\n validateSchema: false,\n missingRefs: \"ignore\",\n verbose: true,\n schemaId: \"auto\",\n ...additionalOptions\n });\n\n ajv.addMetaSchema(metaSchema);\n // eslint-disable-next-line no-underscore-dangle\n ajv._opts.defaultMeta = metaSchema.id;\n\n return ajv;\n};\n","/**\n * @fileoverview Defines a schema for configs.\n * @author Sylvan Mably\n */\n\nconst baseConfigProperties = {\n $schema: { type: \"string\" },\n env: { type: \"object\" },\n extends: { $ref: \"#/definitions/stringOrStrings\" },\n globals: { type: \"object\" },\n overrides: {\n type: \"array\",\n items: { $ref: \"#/definitions/overrideConfig\" },\n additionalItems: false\n },\n parser: { type: [\"string\", \"null\"] },\n parserOptions: { type: \"object\" },\n plugins: { type: \"array\" },\n processor: { type: \"string\" },\n rules: { type: \"object\" },\n settings: { type: \"object\" },\n noInlineConfig: { type: \"boolean\" },\n reportUnusedDisableDirectives: { type: \"boolean\" },\n\n ecmaFeatures: { type: \"object\" } // deprecated; logs a warning when used\n};\n\nconst configSchema = {\n definitions: {\n stringOrStrings: {\n oneOf: [\n { type: \"string\" },\n {\n type: \"array\",\n items: { type: \"string\" },\n additionalItems: false\n }\n ]\n },\n stringOrStringsRequired: {\n oneOf: [\n { type: \"string\" },\n {\n type: \"array\",\n items: { type: \"string\" },\n additionalItems: false,\n minItems: 1\n }\n ]\n },\n\n // Config at top-level.\n objectConfig: {\n type: \"object\",\n properties: {\n root: { type: \"boolean\" },\n ignorePatterns: { $ref: \"#/definitions/stringOrStrings\" },\n ...baseConfigProperties\n },\n additionalProperties: false\n },\n\n // Config in `overrides`.\n overrideConfig: {\n type: \"object\",\n properties: {\n excludedFiles: { $ref: \"#/definitions/stringOrStrings\" },\n files: { $ref: \"#/definitions/stringOrStringsRequired\" },\n ...baseConfigProperties\n },\n required: [\"files\"],\n additionalProperties: false\n }\n },\n\n $ref: \"#/definitions/objectConfig\"\n};\n\nexport default configSchema;\n","/**\n * @fileoverview Defines environment settings and globals.\n * @author Elan Shanker\n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport globals from \"globals\";\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n/**\n * Get the object that has difference.\n * @param {Record} current The newer object.\n * @param {Record} prev The older object.\n * @returns {Record} The difference object.\n */\nfunction getDiff(current, prev) {\n const retv = {};\n\n for (const [key, value] of Object.entries(current)) {\n if (!Object.hasOwnProperty.call(prev, key)) {\n retv[key] = value;\n }\n }\n\n return retv;\n}\n\nconst newGlobals2015 = getDiff(globals.es2015, globals.es5); // 19 variables such as Promise, Map, ...\nconst newGlobals2017 = {\n Atomics: false,\n SharedArrayBuffer: false\n};\nconst newGlobals2020 = {\n BigInt: false,\n BigInt64Array: false,\n BigUint64Array: false,\n globalThis: false\n};\n\nconst newGlobals2021 = {\n AggregateError: false,\n FinalizationRegistry: false,\n WeakRef: false\n};\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/** @type {Map} */\nexport default new Map(Object.entries({\n\n // Language\n builtin: {\n globals: globals.es5\n },\n es6: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 6\n }\n },\n es2015: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 6\n }\n },\n es2016: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 7\n }\n },\n es2017: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 8\n }\n },\n es2018: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 9\n }\n },\n es2019: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 10\n }\n },\n es2020: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 },\n parserOptions: {\n ecmaVersion: 11\n }\n },\n es2021: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 12\n }\n },\n es2022: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 13\n }\n },\n es2023: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 14\n }\n },\n es2024: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 15\n }\n },\n\n // Platforms\n browser: {\n globals: globals.browser\n },\n node: {\n globals: globals.node,\n parserOptions: {\n ecmaFeatures: {\n globalReturn: true\n }\n }\n },\n \"shared-node-browser\": {\n globals: globals[\"shared-node-browser\"]\n },\n worker: {\n globals: globals.worker\n },\n serviceworker: {\n globals: globals.serviceworker\n },\n\n // Frameworks\n commonjs: {\n globals: globals.commonjs,\n parserOptions: {\n ecmaFeatures: {\n globalReturn: true\n }\n }\n },\n amd: {\n globals: globals.amd\n },\n mocha: {\n globals: globals.mocha\n },\n jasmine: {\n globals: globals.jasmine\n },\n jest: {\n globals: globals.jest\n },\n phantomjs: {\n globals: globals.phantomjs\n },\n jquery: {\n globals: globals.jquery\n },\n qunit: {\n globals: globals.qunit\n },\n prototypejs: {\n globals: globals.prototypejs\n },\n shelljs: {\n globals: globals.shelljs\n },\n meteor: {\n globals: globals.meteor\n },\n mongo: {\n globals: globals.mongo\n },\n protractor: {\n globals: globals.protractor\n },\n applescript: {\n globals: globals.applescript\n },\n nashorn: {\n globals: globals.nashorn\n },\n atomtest: {\n globals: globals.atomtest\n },\n embertest: {\n globals: globals.embertest\n },\n webextensions: {\n globals: globals.webextensions\n },\n greasemonkey: {\n globals: globals.greasemonkey\n }\n}));\n","/**\n * @fileoverview Validates configs.\n * @author Brandon Mills\n */\n\n/* eslint class-methods-use-this: \"off\" */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport util from \"util\";\nimport * as ConfigOps from \"./config-ops.js\";\nimport { emitDeprecationWarning } from \"./deprecation-warnings.js\";\nimport ajvOrig from \"./ajv.js\";\nimport configSchema from \"../../conf/config-schema.js\";\nimport BuiltInEnvironments from \"../../conf/environments.js\";\n\nconst ajv = ajvOrig();\n\nconst ruleValidators = new WeakMap();\nconst noop = Function.prototype;\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\nlet validateSchema;\nconst severityMap = {\n error: 2,\n warn: 1,\n off: 0\n};\n\nconst validated = new WeakSet();\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\nexport default class ConfigValidator {\n constructor({ builtInRules = new Map() } = {}) {\n this.builtInRules = builtInRules;\n }\n\n /**\n * Gets a complete options schema for a rule.\n * @param {{create: Function, schema: (Array|null)}} rule A new-style rule object\n * @returns {Object} JSON Schema for the rule's options.\n */\n getRuleOptionsSchema(rule) {\n if (!rule) {\n return null;\n }\n\n const schema = rule.schema || rule.meta && rule.meta.schema;\n\n // Given a tuple of schemas, insert warning level at the beginning\n if (Array.isArray(schema)) {\n if (schema.length) {\n return {\n type: \"array\",\n items: schema,\n minItems: 0,\n maxItems: schema.length\n };\n }\n return {\n type: \"array\",\n minItems: 0,\n maxItems: 0\n };\n\n }\n\n // Given a full schema, leave it alone\n return schema || null;\n }\n\n /**\n * Validates a rule's severity and returns the severity value. Throws an error if the severity is invalid.\n * @param {options} options The given options for the rule.\n * @returns {number|string} The rule's severity value\n */\n validateRuleSeverity(options) {\n const severity = Array.isArray(options) ? options[0] : options;\n const normSeverity = typeof severity === \"string\" ? severityMap[severity.toLowerCase()] : severity;\n\n if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) {\n return normSeverity;\n }\n\n throw new Error(`\\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util.inspect(severity).replace(/'/gu, \"\\\"\").replace(/\\n/gu, \"\")}').\\n`);\n\n }\n\n /**\n * Validates the non-severity options passed to a rule, based on its schema.\n * @param {{create: Function}} rule The rule to validate\n * @param {Array} localOptions The options for the rule, excluding severity\n * @returns {void}\n */\n validateRuleSchema(rule, localOptions) {\n if (!ruleValidators.has(rule)) {\n const schema = this.getRuleOptionsSchema(rule);\n\n if (schema) {\n ruleValidators.set(rule, ajv.compile(schema));\n }\n }\n\n const validateRule = ruleValidators.get(rule);\n\n if (validateRule) {\n validateRule(localOptions);\n if (validateRule.errors) {\n throw new Error(validateRule.errors.map(\n error => `\\tValue ${JSON.stringify(error.data)} ${error.message}.\\n`\n ).join(\"\"));\n }\n }\n }\n\n /**\n * Validates a rule's options against its schema.\n * @param {{create: Function}|null} rule The rule that the config is being validated for\n * @param {string} ruleId The rule's unique name.\n * @param {Array|number} options The given options for the rule.\n * @param {string|null} source The name of the configuration source to report in any errors. If null or undefined,\n * no source is prepended to the message.\n * @returns {void}\n */\n validateRuleOptions(rule, ruleId, options, source = null) {\n try {\n const severity = this.validateRuleSeverity(options);\n\n if (severity !== 0) {\n this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []);\n }\n } catch (err) {\n const enhancedMessage = `Configuration for rule \"${ruleId}\" is invalid:\\n${err.message}`;\n\n if (typeof source === \"string\") {\n throw new Error(`${source}:\\n\\t${enhancedMessage}`);\n } else {\n throw new Error(enhancedMessage);\n }\n }\n }\n\n /**\n * Validates an environment object\n * @param {Object} environment The environment config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded environments.\n * @returns {void}\n */\n validateEnvironment(\n environment,\n source,\n getAdditionalEnv = noop\n ) {\n\n // not having an environment is ok\n if (!environment) {\n return;\n }\n\n Object.keys(environment).forEach(id => {\n const env = getAdditionalEnv(id) || BuiltInEnvironments.get(id) || null;\n\n if (!env) {\n const message = `${source}:\\n\\tEnvironment key \"${id}\" is unknown\\n`;\n\n throw new Error(message);\n }\n });\n }\n\n /**\n * Validates a rules config object\n * @param {Object} rulesConfig The rules config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(ruleId:string): Object} getAdditionalRule A map from strings to loaded rules\n * @returns {void}\n */\n validateRules(\n rulesConfig,\n source,\n getAdditionalRule = noop\n ) {\n if (!rulesConfig) {\n return;\n }\n\n Object.keys(rulesConfig).forEach(id => {\n const rule = getAdditionalRule(id) || this.builtInRules.get(id) || null;\n\n this.validateRuleOptions(rule, id, rulesConfig[id], source);\n });\n }\n\n /**\n * Validates a `globals` section of a config file\n * @param {Object} globalsConfig The `globals` section\n * @param {string|null} source The name of the configuration source to report in the event of an error.\n * @returns {void}\n */\n validateGlobals(globalsConfig, source = null) {\n if (!globalsConfig) {\n return;\n }\n\n Object.entries(globalsConfig)\n .forEach(([configuredGlobal, configuredValue]) => {\n try {\n ConfigOps.normalizeConfigGlobal(configuredValue);\n } catch (err) {\n throw new Error(`ESLint configuration of global '${configuredGlobal}' in ${source} is invalid:\\n${err.message}`);\n }\n });\n }\n\n /**\n * Validate `processor` configuration.\n * @param {string|undefined} processorName The processor name.\n * @param {string} source The name of config file.\n * @param {function(id:string): Processor} getProcessor The getter of defined processors.\n * @returns {void}\n */\n validateProcessor(processorName, source, getProcessor) {\n if (processorName && !getProcessor(processorName)) {\n throw new Error(`ESLint configuration of processor in '${source}' is invalid: '${processorName}' was not found.`);\n }\n }\n\n /**\n * Formats an array of schema validation errors.\n * @param {Array} errors An array of error messages to format.\n * @returns {string} Formatted error message\n */\n formatErrors(errors) {\n return errors.map(error => {\n if (error.keyword === \"additionalProperties\") {\n const formattedPropertyPath = error.dataPath.length ? `${error.dataPath.slice(1)}.${error.params.additionalProperty}` : error.params.additionalProperty;\n\n return `Unexpected top-level property \"${formattedPropertyPath}\"`;\n }\n if (error.keyword === \"type\") {\n const formattedField = error.dataPath.slice(1);\n const formattedExpectedType = Array.isArray(error.schema) ? error.schema.join(\"/\") : error.schema;\n const formattedValue = JSON.stringify(error.data);\n\n return `Property \"${formattedField}\" is the wrong type (expected ${formattedExpectedType} but got \\`${formattedValue}\\`)`;\n }\n\n const field = error.dataPath[0] === \".\" ? error.dataPath.slice(1) : error.dataPath;\n\n return `\"${field}\" ${error.message}. Value: ${JSON.stringify(error.data)}`;\n }).map(message => `\\t- ${message}.\\n`).join(\"\");\n }\n\n /**\n * Validates the top level properties of the config object.\n * @param {Object} config The config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @returns {void}\n */\n validateConfigSchema(config, source = null) {\n validateSchema = validateSchema || ajv.compile(configSchema);\n\n if (!validateSchema(config)) {\n throw new Error(`ESLint configuration in ${source} is invalid:\\n${this.formatErrors(validateSchema.errors)}`);\n }\n\n if (Object.hasOwnProperty.call(config, \"ecmaFeatures\")) {\n emitDeprecationWarning(source, \"ESLINT_LEGACY_ECMAFEATURES\");\n }\n }\n\n /**\n * Validates an entire config object.\n * @param {Object} config The config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(ruleId:string): Object} [getAdditionalRule] A map from strings to loaded rules.\n * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded envs.\n * @returns {void}\n */\n validate(config, source, getAdditionalRule, getAdditionalEnv) {\n this.validateConfigSchema(config, source);\n this.validateRules(config.rules, source, getAdditionalRule);\n this.validateEnvironment(config.env, source, getAdditionalEnv);\n this.validateGlobals(config.globals, source);\n\n for (const override of config.overrides || []) {\n this.validateRules(override.rules, source, getAdditionalRule);\n this.validateEnvironment(override.env, source, getAdditionalEnv);\n this.validateGlobals(config.globals, source);\n }\n }\n\n /**\n * Validate config array object.\n * @param {ConfigArray} configArray The config array to validate.\n * @returns {void}\n */\n validateConfigArray(configArray) {\n const getPluginEnv = Map.prototype.get.bind(configArray.pluginEnvironments);\n const getPluginProcessor = Map.prototype.get.bind(configArray.pluginProcessors);\n const getPluginRule = Map.prototype.get.bind(configArray.pluginRules);\n\n // Validate.\n for (const element of configArray) {\n if (validated.has(element)) {\n continue;\n }\n validated.add(element);\n\n this.validateEnvironment(element.env, element.name, getPluginEnv);\n this.validateGlobals(element.globals, element.name);\n this.validateProcessor(element.processor, element.name, getPluginProcessor);\n this.validateRules(element.rules, element.name, getPluginRule);\n }\n }\n\n}\n","/**\n * @fileoverview Common helpers for naming of plugins, formatters and configs\n */\n\nconst NAMESPACE_REGEX = /^@.*\\//iu;\n\n/**\n * Brings package name to correct format based on prefix\n * @param {string} name The name of the package.\n * @param {string} prefix Can be either \"eslint-plugin\", \"eslint-config\" or \"eslint-formatter\"\n * @returns {string} Normalized name of the package\n * @private\n */\nfunction normalizePackageName(name, prefix) {\n let normalizedName = name;\n\n /**\n * On Windows, name can come in with Windows slashes instead of Unix slashes.\n * Normalize to Unix first to avoid errors later on.\n * https://github.com/eslint/eslint/issues/5644\n */\n if (normalizedName.includes(\"\\\\\")) {\n normalizedName = normalizedName.replace(/\\\\/gu, \"/\");\n }\n\n if (normalizedName.charAt(0) === \"@\") {\n\n /**\n * it's a scoped package\n * package name is the prefix, or just a username\n */\n const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, \"u\"),\n scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, \"u\");\n\n if (scopedPackageShortcutRegex.test(normalizedName)) {\n normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`);\n } else if (!scopedPackageNameRegex.test(normalizedName.split(\"/\")[1])) {\n\n /**\n * for scoped packages, insert the prefix after the first / unless\n * the path is already @scope/eslint or @scope/eslint-xxx-yyy\n */\n normalizedName = normalizedName.replace(/^@([^/]+)\\/(.*)$/u, `@$1/${prefix}-$2`);\n }\n } else if (!normalizedName.startsWith(`${prefix}-`)) {\n normalizedName = `${prefix}-${normalizedName}`;\n }\n\n return normalizedName;\n}\n\n/**\n * Removes the prefix from a fullname.\n * @param {string} fullname The term which may have the prefix.\n * @param {string} prefix The prefix to remove.\n * @returns {string} The term without prefix.\n */\nfunction getShorthandName(fullname, prefix) {\n if (fullname[0] === \"@\") {\n let matchResult = new RegExp(`^(@[^/]+)/${prefix}$`, \"u\").exec(fullname);\n\n if (matchResult) {\n return matchResult[1];\n }\n\n matchResult = new RegExp(`^(@[^/]+)/${prefix}-(.+)$`, \"u\").exec(fullname);\n if (matchResult) {\n return `${matchResult[1]}/${matchResult[2]}`;\n }\n } else if (fullname.startsWith(`${prefix}-`)) {\n return fullname.slice(prefix.length + 1);\n }\n\n return fullname;\n}\n\n/**\n * Gets the scope (namespace) of a term.\n * @param {string} term The term which may have the namespace.\n * @returns {string} The namespace of the term if it has one.\n */\nfunction getNamespaceFromTerm(term) {\n const match = term.match(NAMESPACE_REGEX);\n\n return match ? match[0] : \"\";\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport {\n normalizePackageName,\n getShorthandName,\n getNamespaceFromTerm\n};\n","/**\n * @fileoverview Package exports for @eslint/eslintrc\n * @author Nicholas C. Zakas\n */\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport * as ConfigOps from \"./shared/config-ops.js\";\nimport ConfigValidator from \"./shared/config-validator.js\";\nimport * as naming from \"./shared/naming.js\";\nimport environments from \"../conf/environments.js\";\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\nconst Legacy = {\n environments,\n\n // shared\n ConfigOps,\n ConfigValidator,\n naming\n};\n\nexport {\n Legacy\n};\n"],"names":["path","Ajv","globals","util","BuiltInEnvironments","ConfigOps.normalizeConfigGlobal"],"mappings":";;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,qBAAqB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC;AACtD,IAAI,aAAa,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,KAAK;AACxE,QAAQ,GAAG,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;AAC3B,QAAQ,OAAO,GAAG,CAAC;AACnB,KAAK,EAAE,EAAE,CAAC;AACV,IAAI,gBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,eAAe,CAAC,UAAU,EAAE;AACrC,IAAI,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC;AACjF;AACA,IAAI,IAAI,aAAa,KAAK,CAAC,IAAI,aAAa,KAAK,CAAC,IAAI,aAAa,KAAK,CAAC,EAAE;AAC3E,QAAQ,OAAO,aAAa,CAAC;AAC7B,KAAK;AACL;AACA,IAAI,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE;AAC3C,QAAQ,OAAO,aAAa,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,CAAC;AAC/D,KAAK;AACL;AACA,IAAI,OAAO,CAAC,CAAC;AACb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,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;AAC9C;AACA,IAAI,OAAO,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;AACjC;;;;;;;;;ACrFA;AACA;AACA;AACA;AASA;AACA;AACA;AACA;AACA;AACK,MAAC,MAAM,GAAG;AACf,IAAI,YAAY;AAChB;AACA;AACA,IAAI,SAAS;AACb,IAAI,eAAe;AACnB,IAAI,MAAM;AACV;;;;"} \ No newline at end of file diff --git a/node_modules/@eslint/eslintrc/dist/eslintrc.cjs b/node_modules/@eslint/eslintrc/dist/eslintrc.cjs deleted file mode 100644 index eb2ed8d3..00000000 --- a/node_modules/@eslint/eslintrc/dist/eslintrc.cjs +++ /dev/null @@ -1,4344 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var debugOrig = require('debug'); -var fs = require('fs'); -var importFresh = require('import-fresh'); -var Module = require('module'); -var path = require('path'); -var stripComments = require('strip-json-comments'); -var assert = require('assert'); -var ignore = require('ignore'); -var util = require('util'); -var minimatch = require('minimatch'); -var Ajv = require('ajv'); -var globals = require('globals'); -var os = require('os'); - -function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } - -var debugOrig__default = /*#__PURE__*/_interopDefaultLegacy(debugOrig); -var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs); -var importFresh__default = /*#__PURE__*/_interopDefaultLegacy(importFresh); -var Module__default = /*#__PURE__*/_interopDefaultLegacy(Module); -var path__default = /*#__PURE__*/_interopDefaultLegacy(path); -var stripComments__default = /*#__PURE__*/_interopDefaultLegacy(stripComments); -var assert__default = /*#__PURE__*/_interopDefaultLegacy(assert); -var ignore__default = /*#__PURE__*/_interopDefaultLegacy(ignore); -var util__default = /*#__PURE__*/_interopDefaultLegacy(util); -var minimatch__default = /*#__PURE__*/_interopDefaultLegacy(minimatch); -var Ajv__default = /*#__PURE__*/_interopDefaultLegacy(Ajv); -var globals__default = /*#__PURE__*/_interopDefaultLegacy(globals); -var os__default = /*#__PURE__*/_interopDefaultLegacy(os); - -/** - * @fileoverview `IgnorePattern` class. - * - * `IgnorePattern` class has the set of glob patterns and the base path. - * - * It provides two static methods. - * - * - `IgnorePattern.createDefaultIgnore(cwd)` - * Create the default predicate function. - * - `IgnorePattern.createIgnore(ignorePatterns)` - * Create the predicate function from multiple `IgnorePattern` objects. - * - * It provides two properties and a method. - * - * - `patterns` - * The glob patterns that ignore to lint. - * - `basePath` - * The base path of the glob patterns. If absolute paths existed in the - * glob patterns, those are handled as relative paths to the base path. - * - `getPatternsRelativeTo(basePath)` - * Get `patterns` as modified for a given base path. It modifies the - * absolute paths in the patterns as prepending the difference of two base - * paths. - * - * `ConfigArrayFactory` creates `IgnorePattern` objects when it processes - * `ignorePatterns` properties. - * - * @author Toru Nagashima - */ - -const debug$3 = debugOrig__default["default"]("eslintrc:ignore-pattern"); - -/** @typedef {ReturnType} Ignore */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Get the path to the common ancestor directory of given paths. - * @param {string[]} sourcePaths The paths to calculate the common ancestor. - * @returns {string} The path to the common ancestor directory. - */ -function getCommonAncestorPath(sourcePaths) { - let result = sourcePaths[0]; - - for (let i = 1; i < sourcePaths.length; ++i) { - const a = result; - const b = sourcePaths[i]; - - // Set the shorter one (it's the common ancestor if one includes the other). - result = a.length < b.length ? a : b; - - // Set the common ancestor. - for (let j = 0, lastSepPos = 0; j < a.length && j < b.length; ++j) { - if (a[j] !== b[j]) { - result = a.slice(0, lastSepPos); - break; - } - if (a[j] === path__default["default"].sep) { - lastSepPos = j; - } - } - } - - let resolvedResult = result || path__default["default"].sep; - - // if Windows common ancestor is root of drive must have trailing slash to be absolute. - if (resolvedResult && resolvedResult.endsWith(":") && process.platform === "win32") { - resolvedResult += path__default["default"].sep; - } - return resolvedResult; -} - -/** - * Make relative path. - * @param {string} from The source path to get relative path. - * @param {string} to The destination path to get relative path. - * @returns {string} The relative path. - */ -function relative(from, to) { - const relPath = path__default["default"].relative(from, to); - - if (path__default["default"].sep === "/") { - return relPath; - } - return relPath.split(path__default["default"].sep).join("/"); -} - -/** - * Get the trailing slash if existed. - * @param {string} filePath The path to check. - * @returns {string} The trailing slash if existed. - */ -function dirSuffix(filePath) { - const isDir = ( - filePath.endsWith(path__default["default"].sep) || - (process.platform === "win32" && filePath.endsWith("/")) - ); - - return isDir ? "/" : ""; -} - -const DefaultPatterns = Object.freeze(["/**/node_modules/*"]); -const DotPatterns = Object.freeze([".*", "!.eslintrc.*", "!../"]); - -//------------------------------------------------------------------------------ -// Public -//------------------------------------------------------------------------------ - -class IgnorePattern { - - /** - * The default patterns. - * @type {string[]} - */ - static get DefaultPatterns() { - return DefaultPatterns; - } - - /** - * Create the default predicate function. - * @param {string} cwd The current working directory. - * @returns {((filePath:string, dot:boolean) => boolean) & {basePath:string; patterns:string[]}} - * The preficate function. - * The first argument is an absolute path that is checked. - * The second argument is the flag to not ignore dotfiles. - * If the predicate function returned `true`, it means the path should be ignored. - */ - static createDefaultIgnore(cwd) { - return this.createIgnore([new IgnorePattern(DefaultPatterns, cwd)]); - } - - /** - * Create the predicate function from multiple `IgnorePattern` objects. - * @param {IgnorePattern[]} ignorePatterns The list of ignore patterns. - * @returns {((filePath:string, dot?:boolean) => boolean) & {basePath:string; patterns:string[]}} - * The preficate function. - * The first argument is an absolute path that is checked. - * The second argument is the flag to not ignore dotfiles. - * If the predicate function returned `true`, it means the path should be ignored. - */ - static createIgnore(ignorePatterns) { - debug$3("Create with: %o", ignorePatterns); - - const basePath = getCommonAncestorPath(ignorePatterns.map(p => p.basePath)); - const patterns = [].concat( - ...ignorePatterns.map(p => p.getPatternsRelativeTo(basePath)) - ); - const ig = ignore__default["default"]({ allowRelativePaths: true }).add([...DotPatterns, ...patterns]); - const dotIg = ignore__default["default"]({ allowRelativePaths: true }).add(patterns); - - debug$3(" processed: %o", { basePath, patterns }); - - return Object.assign( - (filePath, dot = false) => { - assert__default["default"](path__default["default"].isAbsolute(filePath), "'filePath' should be an absolute path."); - const relPathRaw = relative(basePath, filePath); - const relPath = relPathRaw && (relPathRaw + dirSuffix(filePath)); - const adoptedIg = dot ? dotIg : ig; - const result = relPath !== "" && adoptedIg.ignores(relPath); - - debug$3("Check", { filePath, dot, relativePath: relPath, result }); - return result; - }, - { basePath, patterns } - ); - } - - /** - * Initialize a new `IgnorePattern` instance. - * @param {string[]} patterns The glob patterns that ignore to lint. - * @param {string} basePath The base path of `patterns`. - */ - constructor(patterns, basePath) { - assert__default["default"](path__default["default"].isAbsolute(basePath), "'basePath' should be an absolute path."); - - /** - * The glob patterns that ignore to lint. - * @type {string[]} - */ - this.patterns = patterns; - - /** - * The base path of `patterns`. - * @type {string} - */ - this.basePath = basePath; - - /** - * If `true` then patterns which don't start with `/` will match the paths to the outside of `basePath`. Defaults to `false`. - * - * It's set `true` for `.eslintignore`, `package.json`, and `--ignore-path` for backward compatibility. - * It's `false` as-is for `ignorePatterns` property in config files. - * @type {boolean} - */ - this.loose = false; - } - - /** - * Get `patterns` as modified for a given base path. It modifies the - * absolute paths in the patterns as prepending the difference of two base - * paths. - * @param {string} newBasePath The base path. - * @returns {string[]} Modifired patterns. - */ - getPatternsRelativeTo(newBasePath) { - assert__default["default"](path__default["default"].isAbsolute(newBasePath), "'newBasePath' should be an absolute path."); - const { basePath, loose, patterns } = this; - - if (newBasePath === basePath) { - return patterns; - } - const prefix = `/${relative(newBasePath, basePath)}`; - - return patterns.map(pattern => { - const negative = pattern.startsWith("!"); - const head = negative ? "!" : ""; - const body = negative ? pattern.slice(1) : pattern; - - if (body.startsWith("/") || body.startsWith("../")) { - return `${head}${prefix}${body}`; - } - return loose ? pattern : `${head}${prefix}/**/${body}`; - }); - } -} - -/** - * @fileoverview `ExtractedConfig` class. - * - * `ExtractedConfig` class expresses a final configuration for a specific file. - * - * It provides one method. - * - * - `toCompatibleObjectAsConfigFileContent()` - * Convert this configuration to the compatible object as the content of - * config files. It converts the loaded parser and plugins to strings. - * `CLIEngine#getConfigForFile(filePath)` method uses this method. - * - * `ConfigArray#extractConfig(filePath)` creates a `ExtractedConfig` instance. - * - * @author Toru Nagashima - */ - -// For VSCode intellisense -/** @typedef {import("../../shared/types").ConfigData} ConfigData */ -/** @typedef {import("../../shared/types").GlobalConf} GlobalConf */ -/** @typedef {import("../../shared/types").SeverityConf} SeverityConf */ -/** @typedef {import("./config-dependency").DependentParser} DependentParser */ -/** @typedef {import("./config-dependency").DependentPlugin} DependentPlugin */ - -/** - * Check if `xs` starts with `ys`. - * @template T - * @param {T[]} xs The array to check. - * @param {T[]} ys The array that may be the first part of `xs`. - * @returns {boolean} `true` if `xs` starts with `ys`. - */ -function startsWith(xs, ys) { - return xs.length >= ys.length && ys.every((y, i) => y === xs[i]); -} - -/** - * The class for extracted config data. - */ -class ExtractedConfig { - constructor() { - - /** - * The config name what `noInlineConfig` setting came from. - * @type {string} - */ - this.configNameOfNoInlineConfig = ""; - - /** - * Environments. - * @type {Record} - */ - this.env = {}; - - /** - * Global variables. - * @type {Record} - */ - this.globals = {}; - - /** - * The glob patterns that ignore to lint. - * @type {(((filePath:string, dot?:boolean) => boolean) & { basePath:string; patterns:string[] }) | undefined} - */ - this.ignores = void 0; - - /** - * The flag that disables directive comments. - * @type {boolean|undefined} - */ - this.noInlineConfig = void 0; - - /** - * Parser definition. - * @type {DependentParser|null} - */ - this.parser = null; - - /** - * Options for the parser. - * @type {Object} - */ - this.parserOptions = {}; - - /** - * Plugin definitions. - * @type {Record} - */ - this.plugins = {}; - - /** - * Processor ID. - * @type {string|null} - */ - this.processor = null; - - /** - * The flag that reports unused `eslint-disable` directive comments. - * @type {boolean|undefined} - */ - this.reportUnusedDisableDirectives = void 0; - - /** - * Rule settings. - * @type {Record} - */ - this.rules = {}; - - /** - * Shared settings. - * @type {Object} - */ - this.settings = {}; - } - - /** - * Convert this config to the compatible object as a config file content. - * @returns {ConfigData} The converted object. - */ - toCompatibleObjectAsConfigFileContent() { - const { - /* eslint-disable no-unused-vars */ - configNameOfNoInlineConfig: _ignore1, - processor: _ignore2, - /* eslint-enable no-unused-vars */ - ignores, - ...config - } = this; - - config.parser = config.parser && config.parser.filePath; - config.plugins = Object.keys(config.plugins).filter(Boolean).reverse(); - config.ignorePatterns = ignores ? ignores.patterns : []; - - // Strip the default patterns from `ignorePatterns`. - if (startsWith(config.ignorePatterns, IgnorePattern.DefaultPatterns)) { - config.ignorePatterns = - config.ignorePatterns.slice(IgnorePattern.DefaultPatterns.length); - } - - return config; - } -} - -/** - * @fileoverview `ConfigArray` class. - * - * `ConfigArray` class expresses the full of a configuration. It has the entry - * config file, base config files that were extended, loaded parsers, and loaded - * plugins. - * - * `ConfigArray` class provides three properties and two methods. - * - * - `pluginEnvironments` - * - `pluginProcessors` - * - `pluginRules` - * The `Map` objects that contain the members of all plugins that this - * config array contains. Those map objects don't have mutation methods. - * Those keys are the member ID such as `pluginId/memberName`. - * - `isRoot()` - * If `true` then this configuration has `root:true` property. - * - `extractConfig(filePath)` - * Extract the final configuration for a given file. This means merging - * every config array element which that `criteria` property matched. The - * `filePath` argument must be an absolute path. - * - * `ConfigArrayFactory` provides the loading logic of config files. - * - * @author Toru Nagashima - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -// Define types for VSCode IntelliSense. -/** @typedef {import("../../shared/types").Environment} Environment */ -/** @typedef {import("../../shared/types").GlobalConf} GlobalConf */ -/** @typedef {import("../../shared/types").RuleConf} RuleConf */ -/** @typedef {import("../../shared/types").Rule} Rule */ -/** @typedef {import("../../shared/types").Plugin} Plugin */ -/** @typedef {import("../../shared/types").Processor} Processor */ -/** @typedef {import("./config-dependency").DependentParser} DependentParser */ -/** @typedef {import("./config-dependency").DependentPlugin} DependentPlugin */ -/** @typedef {import("./override-tester")["OverrideTester"]} OverrideTester */ - -/** - * @typedef {Object} ConfigArrayElement - * @property {string} name The name of this config element. - * @property {string} filePath The path to the source file of this config element. - * @property {InstanceType|null} criteria The tester for the `files` and `excludedFiles` of this config element. - * @property {Record|undefined} env The environment settings. - * @property {Record|undefined} globals The global variable settings. - * @property {IgnorePattern|undefined} ignorePattern The ignore patterns. - * @property {boolean|undefined} noInlineConfig The flag that disables directive comments. - * @property {DependentParser|undefined} parser The parser loader. - * @property {Object|undefined} parserOptions The parser options. - * @property {Record|undefined} plugins The plugin loaders. - * @property {string|undefined} processor The processor name to refer plugin's processor. - * @property {boolean|undefined} reportUnusedDisableDirectives The flag to report unused `eslint-disable` comments. - * @property {boolean|undefined} root The flag to express root. - * @property {Record|undefined} rules The rule settings - * @property {Object|undefined} settings The shared settings. - * @property {"config" | "ignore" | "implicit-processor"} type The element type. - */ - -/** - * @typedef {Object} ConfigArrayInternalSlots - * @property {Map} cache The cache to extract configs. - * @property {ReadonlyMap|null} envMap The map from environment ID to environment definition. - * @property {ReadonlyMap|null} processorMap The map from processor ID to environment definition. - * @property {ReadonlyMap|null} ruleMap The map from rule ID to rule definition. - */ - -/** @type {WeakMap} */ -const internalSlotsMap$2 = new class extends WeakMap { - get(key) { - let value = super.get(key); - - if (!value) { - value = { - cache: new Map(), - envMap: null, - processorMap: null, - ruleMap: null - }; - super.set(key, value); - } - - return value; - } -}(); - -/** - * Get the indices which are matched to a given file. - * @param {ConfigArrayElement[]} elements The elements. - * @param {string} filePath The path to a target file. - * @returns {number[]} The indices. - */ -function getMatchedIndices(elements, filePath) { - const indices = []; - - for (let i = elements.length - 1; i >= 0; --i) { - const element = elements[i]; - - if (!element.criteria || (filePath && element.criteria.test(filePath))) { - indices.push(i); - } - } - - return indices; -} - -/** - * Check if a value is a non-null object. - * @param {any} x The value to check. - * @returns {boolean} `true` if the value is a non-null object. - */ -function isNonNullObject(x) { - return typeof x === "object" && x !== null; -} - -/** - * Merge two objects. - * - * Assign every property values of `y` to `x` if `x` doesn't have the property. - * If `x`'s property value is an object, it does recursive. - * @param {Object} target The destination to merge - * @param {Object|undefined} source The source to merge. - * @returns {void} - */ -function mergeWithoutOverwrite(target, source) { - if (!isNonNullObject(source)) { - return; - } - - for (const key of Object.keys(source)) { - if (key === "__proto__") { - continue; - } - - if (isNonNullObject(target[key])) { - mergeWithoutOverwrite(target[key], source[key]); - } else if (target[key] === void 0) { - if (isNonNullObject(source[key])) { - target[key] = Array.isArray(source[key]) ? [] : {}; - mergeWithoutOverwrite(target[key], source[key]); - } else if (source[key] !== void 0) { - target[key] = source[key]; - } - } - } -} - -/** - * The error for plugin conflicts. - */ -class PluginConflictError extends Error { - - /** - * Initialize this error object. - * @param {string} pluginId The plugin ID. - * @param {{filePath:string, importerName:string}[]} plugins The resolved plugins. - */ - constructor(pluginId, plugins) { - super(`Plugin "${pluginId}" was conflicted between ${plugins.map(p => `"${p.importerName}"`).join(" and ")}.`); - this.messageTemplate = "plugin-conflict"; - this.messageData = { pluginId, plugins }; - } -} - -/** - * Merge plugins. - * `target`'s definition is prior to `source`'s. - * @param {Record} target The destination to merge - * @param {Record|undefined} source The source to merge. - * @returns {void} - */ -function mergePlugins(target, source) { - if (!isNonNullObject(source)) { - return; - } - - for (const key of Object.keys(source)) { - if (key === "__proto__") { - continue; - } - const targetValue = target[key]; - const sourceValue = source[key]; - - // Adopt the plugin which was found at first. - if (targetValue === void 0) { - if (sourceValue.error) { - throw sourceValue.error; - } - target[key] = sourceValue; - } else if (sourceValue.filePath !== targetValue.filePath) { - throw new PluginConflictError(key, [ - { - filePath: targetValue.filePath, - importerName: targetValue.importerName - }, - { - filePath: sourceValue.filePath, - importerName: sourceValue.importerName - } - ]); - } - } -} - -/** - * Merge rule configs. - * `target`'s definition is prior to `source`'s. - * @param {Record} target The destination to merge - * @param {Record|undefined} source The source to merge. - * @returns {void} - */ -function mergeRuleConfigs(target, source) { - if (!isNonNullObject(source)) { - return; - } - - for (const key of Object.keys(source)) { - if (key === "__proto__") { - continue; - } - const targetDef = target[key]; - const sourceDef = source[key]; - - // Adopt the rule config which was found at first. - if (targetDef === void 0) { - if (Array.isArray(sourceDef)) { - target[key] = [...sourceDef]; - } else { - target[key] = [sourceDef]; - } - - /* - * If the first found rule config is severity only and the current rule - * config has options, merge the severity and the options. - */ - } else if ( - targetDef.length === 1 && - Array.isArray(sourceDef) && - sourceDef.length >= 2 - ) { - targetDef.push(...sourceDef.slice(1)); - } - } -} - -/** - * Create the extracted config. - * @param {ConfigArray} instance The config elements. - * @param {number[]} indices The indices to use. - * @returns {ExtractedConfig} The extracted config. - */ -function createConfig(instance, indices) { - const config = new ExtractedConfig(); - const ignorePatterns = []; - - // Merge elements. - for (const index of indices) { - const element = instance[index]; - - // Adopt the parser which was found at first. - if (!config.parser && element.parser) { - if (element.parser.error) { - throw element.parser.error; - } - config.parser = element.parser; - } - - // Adopt the processor which was found at first. - if (!config.processor && element.processor) { - config.processor = element.processor; - } - - // Adopt the noInlineConfig which was found at first. - if (config.noInlineConfig === void 0 && element.noInlineConfig !== void 0) { - config.noInlineConfig = element.noInlineConfig; - config.configNameOfNoInlineConfig = element.name; - } - - // Adopt the reportUnusedDisableDirectives which was found at first. - if (config.reportUnusedDisableDirectives === void 0 && element.reportUnusedDisableDirectives !== void 0) { - config.reportUnusedDisableDirectives = element.reportUnusedDisableDirectives; - } - - // Collect ignorePatterns - if (element.ignorePattern) { - ignorePatterns.push(element.ignorePattern); - } - - // Merge others. - mergeWithoutOverwrite(config.env, element.env); - mergeWithoutOverwrite(config.globals, element.globals); - mergeWithoutOverwrite(config.parserOptions, element.parserOptions); - mergeWithoutOverwrite(config.settings, element.settings); - mergePlugins(config.plugins, element.plugins); - mergeRuleConfigs(config.rules, element.rules); - } - - // Create the predicate function for ignore patterns. - if (ignorePatterns.length > 0) { - config.ignores = IgnorePattern.createIgnore(ignorePatterns.reverse()); - } - - return config; -} - -/** - * Collect definitions. - * @template T, U - * @param {string} pluginId The plugin ID for prefix. - * @param {Record} defs The definitions to collect. - * @param {Map} map The map to output. - * @param {function(T): U} [normalize] The normalize function for each value. - * @returns {void} - */ -function collect(pluginId, defs, map, normalize) { - if (defs) { - const prefix = pluginId && `${pluginId}/`; - - for (const [key, value] of Object.entries(defs)) { - map.set( - `${prefix}${key}`, - normalize ? normalize(value) : value - ); - } - } -} - -/** - * Normalize a rule definition. - * @param {Function|Rule} rule The rule definition to normalize. - * @returns {Rule} The normalized rule definition. - */ -function normalizePluginRule(rule) { - return typeof rule === "function" ? { create: rule } : rule; -} - -/** - * Delete the mutation methods from a given map. - * @param {Map} map The map object to delete. - * @returns {void} - */ -function deleteMutationMethods(map) { - Object.defineProperties(map, { - clear: { configurable: true, value: void 0 }, - delete: { configurable: true, value: void 0 }, - set: { configurable: true, value: void 0 } - }); -} - -/** - * Create `envMap`, `processorMap`, `ruleMap` with the plugins in the config array. - * @param {ConfigArrayElement[]} elements The config elements. - * @param {ConfigArrayInternalSlots} slots The internal slots. - * @returns {void} - */ -function initPluginMemberMaps(elements, slots) { - const processed = new Set(); - - slots.envMap = new Map(); - slots.processorMap = new Map(); - slots.ruleMap = new Map(); - - for (const element of elements) { - if (!element.plugins) { - continue; - } - - for (const [pluginId, value] of Object.entries(element.plugins)) { - const plugin = value.definition; - - if (!plugin || processed.has(pluginId)) { - continue; - } - processed.add(pluginId); - - collect(pluginId, plugin.environments, slots.envMap); - collect(pluginId, plugin.processors, slots.processorMap); - collect(pluginId, plugin.rules, slots.ruleMap, normalizePluginRule); - } - } - - deleteMutationMethods(slots.envMap); - deleteMutationMethods(slots.processorMap); - deleteMutationMethods(slots.ruleMap); -} - -/** - * Create `envMap`, `processorMap`, `ruleMap` with the plugins in the config array. - * @param {ConfigArray} instance The config elements. - * @returns {ConfigArrayInternalSlots} The extracted config. - */ -function ensurePluginMemberMaps(instance) { - const slots = internalSlotsMap$2.get(instance); - - if (!slots.ruleMap) { - initPluginMemberMaps(instance, slots); - } - - return slots; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * The Config Array. - * - * `ConfigArray` instance contains all settings, parsers, and plugins. - * You need to call `ConfigArray#extractConfig(filePath)` method in order to - * extract, merge and get only the config data which is related to an arbitrary - * file. - * @extends {Array} - */ -class ConfigArray extends Array { - - /** - * Get the plugin environments. - * The returned map cannot be mutated. - * @type {ReadonlyMap} The plugin environments. - */ - get pluginEnvironments() { - return ensurePluginMemberMaps(this).envMap; - } - - /** - * Get the plugin processors. - * The returned map cannot be mutated. - * @type {ReadonlyMap} The plugin processors. - */ - get pluginProcessors() { - return ensurePluginMemberMaps(this).processorMap; - } - - /** - * Get the plugin rules. - * The returned map cannot be mutated. - * @returns {ReadonlyMap} The plugin rules. - */ - get pluginRules() { - return ensurePluginMemberMaps(this).ruleMap; - } - - /** - * Check if this config has `root` flag. - * @returns {boolean} `true` if this config array is root. - */ - isRoot() { - for (let i = this.length - 1; i >= 0; --i) { - const root = this[i].root; - - if (typeof root === "boolean") { - return root; - } - } - return false; - } - - /** - * Extract the config data which is related to a given file. - * @param {string} filePath The absolute path to the target file. - * @returns {ExtractedConfig} The extracted config data. - */ - extractConfig(filePath) { - const { cache } = internalSlotsMap$2.get(this); - const indices = getMatchedIndices(this, filePath); - const cacheKey = indices.join(","); - - if (!cache.has(cacheKey)) { - cache.set(cacheKey, createConfig(this, indices)); - } - - return cache.get(cacheKey); - } - - /** - * Check if a given path is an additional lint target. - * @param {string} filePath The absolute path to the target file. - * @returns {boolean} `true` if the file is an additional lint target. - */ - isAdditionalTargetPath(filePath) { - for (const { criteria, type } of this) { - if ( - type === "config" && - criteria && - !criteria.endsWithWildcard && - criteria.test(filePath) - ) { - return true; - } - } - return false; - } -} - -/** - * Get the used extracted configs. - * CLIEngine will use this method to collect used deprecated rules. - * @param {ConfigArray} instance The config array object to get. - * @returns {ExtractedConfig[]} The used extracted configs. - * @private - */ -function getUsedExtractedConfigs(instance) { - const { cache } = internalSlotsMap$2.get(instance); - - return Array.from(cache.values()); -} - -/** - * @fileoverview `ConfigDependency` class. - * - * `ConfigDependency` class expresses a loaded parser or plugin. - * - * If the parser or plugin was loaded successfully, it has `definition` property - * and `filePath` property. Otherwise, it has `error` property. - * - * When `JSON.stringify()` converted a `ConfigDependency` object to a JSON, it - * omits `definition` property. - * - * `ConfigArrayFactory` creates `ConfigDependency` objects when it loads parsers - * or plugins. - * - * @author Toru Nagashima - */ - -/** - * The class is to store parsers or plugins. - * This class hides the loaded object from `JSON.stringify()` and `console.log`. - * @template T - */ -class ConfigDependency { - - /** - * Initialize this instance. - * @param {Object} data The dependency data. - * @param {T} [data.definition] The dependency if the loading succeeded. - * @param {T} [data.original] The original, non-normalized dependency if the loading succeeded. - * @param {Error} [data.error] The error object if the loading failed. - * @param {string} [data.filePath] The actual path to the dependency if the loading succeeded. - * @param {string} data.id The ID of this dependency. - * @param {string} data.importerName The name of the config file which loads this dependency. - * @param {string} data.importerPath The path to the config file which loads this dependency. - */ - constructor({ - definition = null, - original = null, - error = null, - filePath = null, - id, - importerName, - importerPath - }) { - - /** - * The loaded dependency if the loading succeeded. - * @type {T|null} - */ - this.definition = definition; - - /** - * The original dependency as loaded directly from disk if the loading succeeded. - * @type {T|null} - */ - this.original = original; - - /** - * The error object if the loading failed. - * @type {Error|null} - */ - this.error = error; - - /** - * The loaded dependency if the loading succeeded. - * @type {string|null} - */ - this.filePath = filePath; - - /** - * The ID of this dependency. - * @type {string} - */ - this.id = id; - - /** - * The name of the config file which loads this dependency. - * @type {string} - */ - this.importerName = importerName; - - /** - * The path to the config file which loads this dependency. - * @type {string} - */ - this.importerPath = importerPath; - } - - // eslint-disable-next-line jsdoc/require-description - /** - * @returns {Object} a JSON compatible object. - */ - toJSON() { - const obj = this[util__default["default"].inspect.custom](); - - // Display `error.message` (`Error#message` is unenumerable). - if (obj.error instanceof Error) { - obj.error = { ...obj.error, message: obj.error.message }; - } - - return obj; - } - - // eslint-disable-next-line jsdoc/require-description - /** - * @returns {Object} an object to display by `console.log()`. - */ - [util__default["default"].inspect.custom]() { - const { - definition: _ignore1, // eslint-disable-line no-unused-vars - original: _ignore2, // eslint-disable-line no-unused-vars - ...obj - } = this; - - return obj; - } -} - -/** - * @fileoverview `OverrideTester` class. - * - * `OverrideTester` class handles `files` property and `excludedFiles` property - * of `overrides` config. - * - * It provides one method. - * - * - `test(filePath)` - * Test if a file path matches the pair of `files` property and - * `excludedFiles` property. The `filePath` argument must be an absolute - * path. - * - * `ConfigArrayFactory` creates `OverrideTester` objects when it processes - * `overrides` properties. - * - * @author Toru Nagashima - */ - -const { Minimatch } = minimatch__default["default"]; - -const minimatchOpts = { dot: true, matchBase: true }; - -/** - * @typedef {Object} Pattern - * @property {InstanceType[] | null} includes The positive matchers. - * @property {InstanceType[] | null} excludes The negative matchers. - */ - -/** - * Normalize a given pattern to an array. - * @param {string|string[]|undefined} patterns A glob pattern or an array of glob patterns. - * @returns {string[]|null} Normalized patterns. - * @private - */ -function normalizePatterns(patterns) { - if (Array.isArray(patterns)) { - return patterns.filter(Boolean); - } - if (typeof patterns === "string" && patterns) { - return [patterns]; - } - return []; -} - -/** - * Create the matchers of given patterns. - * @param {string[]} patterns The patterns. - * @returns {InstanceType[] | null} The matchers. - */ -function toMatcher(patterns) { - if (patterns.length === 0) { - return null; - } - return patterns.map(pattern => { - if (/^\.[/\\]/u.test(pattern)) { - return new Minimatch( - pattern.slice(2), - - // `./*.js` should not match with `subdir/foo.js` - { ...minimatchOpts, matchBase: false } - ); - } - return new Minimatch(pattern, minimatchOpts); - }); -} - -/** - * Convert a given matcher to string. - * @param {Pattern} matchers The matchers. - * @returns {string} The string expression of the matcher. - */ -function patternToJson({ includes, excludes }) { - return { - includes: includes && includes.map(m => m.pattern), - excludes: excludes && excludes.map(m => m.pattern) - }; -} - -/** - * The class to test given paths are matched by the patterns. - */ -class OverrideTester { - - /** - * Create a tester with given criteria. - * If there are no criteria, returns `null`. - * @param {string|string[]} files The glob patterns for included files. - * @param {string|string[]} excludedFiles The glob patterns for excluded files. - * @param {string} basePath The path to the base directory to test paths. - * @returns {OverrideTester|null} The created instance or `null`. - */ - static create(files, excludedFiles, basePath) { - const includePatterns = normalizePatterns(files); - const excludePatterns = normalizePatterns(excludedFiles); - let endsWithWildcard = false; - - if (includePatterns.length === 0) { - return null; - } - - // Rejects absolute paths or relative paths to parents. - for (const pattern of includePatterns) { - if (path__default["default"].isAbsolute(pattern) || pattern.includes("..")) { - throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`); - } - if (pattern.endsWith("*")) { - endsWithWildcard = true; - } - } - for (const pattern of excludePatterns) { - if (path__default["default"].isAbsolute(pattern) || pattern.includes("..")) { - throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`); - } - } - - const includes = toMatcher(includePatterns); - const excludes = toMatcher(excludePatterns); - - return new OverrideTester( - [{ includes, excludes }], - basePath, - endsWithWildcard - ); - } - - /** - * Combine two testers by logical and. - * If either of the testers was `null`, returns the other tester. - * The `basePath` property of the two must be the same value. - * @param {OverrideTester|null} a A tester. - * @param {OverrideTester|null} b Another tester. - * @returns {OverrideTester|null} Combined tester. - */ - static and(a, b) { - if (!b) { - return a && new OverrideTester( - a.patterns, - a.basePath, - a.endsWithWildcard - ); - } - if (!a) { - return new OverrideTester( - b.patterns, - b.basePath, - b.endsWithWildcard - ); - } - - assert__default["default"].strictEqual(a.basePath, b.basePath); - return new OverrideTester( - a.patterns.concat(b.patterns), - a.basePath, - a.endsWithWildcard || b.endsWithWildcard - ); - } - - /** - * Initialize this instance. - * @param {Pattern[]} patterns The matchers. - * @param {string} basePath The base path. - * @param {boolean} endsWithWildcard If `true` then a pattern ends with `*`. - */ - constructor(patterns, basePath, endsWithWildcard = false) { - - /** @type {Pattern[]} */ - this.patterns = patterns; - - /** @type {string} */ - this.basePath = basePath; - - /** @type {boolean} */ - this.endsWithWildcard = endsWithWildcard; - } - - /** - * Test if a given path is matched or not. - * @param {string} filePath The absolute path to the target file. - * @returns {boolean} `true` if the path was matched. - */ - test(filePath) { - if (typeof filePath !== "string" || !path__default["default"].isAbsolute(filePath)) { - throw new Error(`'filePath' should be an absolute path, but got ${filePath}.`); - } - const relativePath = path__default["default"].relative(this.basePath, filePath); - - return this.patterns.every(({ includes, excludes }) => ( - (!includes || includes.some(m => m.match(relativePath))) && - (!excludes || !excludes.some(m => m.match(relativePath))) - )); - } - - // eslint-disable-next-line jsdoc/require-description - /** - * @returns {Object} a JSON compatible object. - */ - toJSON() { - if (this.patterns.length === 1) { - return { - ...patternToJson(this.patterns[0]), - basePath: this.basePath - }; - } - return { - AND: this.patterns.map(patternToJson), - basePath: this.basePath - }; - } - - // eslint-disable-next-line jsdoc/require-description - /** - * @returns {Object} an object to display by `console.log()`. - */ - [util__default["default"].inspect.custom]() { - return this.toJSON(); - } -} - -/** - * @fileoverview `ConfigArray` class. - * @author Toru Nagashima - */ - -/** - * @fileoverview Config file operations. This file must be usable in the browser, - * so no Node-specific code can be here. - * @author Nicholas C. Zakas - */ - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - -const RULE_SEVERITY_STRINGS = ["off", "warn", "error"], - RULE_SEVERITY = RULE_SEVERITY_STRINGS.reduce((map, value, index) => { - map[value] = index; - return map; - }, {}), - VALID_SEVERITIES = [0, 1, 2, "off", "warn", "error"]; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * Normalizes the severity value of a rule's configuration to a number - * @param {(number|string|[number, ...*]|[string, ...*])} ruleConfig A rule's configuration value, generally - * received from the user. A valid config value is either 0, 1, 2, the string "off" (treated the same as 0), - * the string "warn" (treated the same as 1), the string "error" (treated the same as 2), or an array - * whose first element is one of the above values. Strings are matched case-insensitively. - * @returns {(0|1|2)} The numeric severity value if the config value was valid, otherwise 0. - */ -function getRuleSeverity(ruleConfig) { - const severityValue = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig; - - if (severityValue === 0 || severityValue === 1 || severityValue === 2) { - return severityValue; - } - - if (typeof severityValue === "string") { - return RULE_SEVERITY[severityValue.toLowerCase()] || 0; - } - - return 0; -} - -/** - * Converts old-style severity settings (0, 1, 2) into new-style - * severity settings (off, warn, error) for all rules. Assumption is that severity - * values have already been validated as correct. - * @param {Object} config The config object to normalize. - * @returns {void} - */ -function normalizeToStrings(config) { - - if (config.rules) { - Object.keys(config.rules).forEach(ruleId => { - const ruleConfig = config.rules[ruleId]; - - if (typeof ruleConfig === "number") { - config.rules[ruleId] = RULE_SEVERITY_STRINGS[ruleConfig] || RULE_SEVERITY_STRINGS[0]; - } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === "number") { - ruleConfig[0] = RULE_SEVERITY_STRINGS[ruleConfig[0]] || RULE_SEVERITY_STRINGS[0]; - } - }); - } -} - -/** - * Determines if the severity for the given rule configuration represents an error. - * @param {int|string|Array} ruleConfig The configuration for an individual rule. - * @returns {boolean} True if the rule represents an error, false if not. - */ -function isErrorSeverity(ruleConfig) { - return getRuleSeverity(ruleConfig) === 2; -} - -/** - * Checks whether a given config has valid severity or not. - * @param {number|string|Array} ruleConfig The configuration for an individual rule. - * @returns {boolean} `true` if the configuration has valid severity. - */ -function isValidSeverity(ruleConfig) { - let severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig; - - if (typeof severity === "string") { - severity = severity.toLowerCase(); - } - return VALID_SEVERITIES.indexOf(severity) !== -1; -} - -/** - * Checks whether every rule of a given config has valid severity or not. - * @param {Object} config The configuration for rules. - * @returns {boolean} `true` if the configuration has valid severity. - */ -function isEverySeverityValid(config) { - return Object.keys(config).every(ruleId => isValidSeverity(config[ruleId])); -} - -/** - * Normalizes a value for a global in a config - * @param {(boolean|string|null)} configuredValue The value given for a global in configuration or in - * a global directive comment - * @returns {("readable"|"writeable"|"off")} The value normalized as a string - * @throws Error if global value is invalid - */ -function normalizeConfigGlobal(configuredValue) { - switch (configuredValue) { - case "off": - return "off"; - - case true: - case "true": - case "writeable": - case "writable": - return "writable"; - - case null: - case false: - case "false": - case "readable": - case "readonly": - return "readonly"; - - default: - throw new Error(`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`); - } -} - -var ConfigOps = { - __proto__: null, - getRuleSeverity: getRuleSeverity, - normalizeToStrings: normalizeToStrings, - isErrorSeverity: isErrorSeverity, - isValidSeverity: isValidSeverity, - isEverySeverityValid: isEverySeverityValid, - normalizeConfigGlobal: normalizeConfigGlobal -}; - -/** - * @fileoverview Provide the function that emits deprecation warnings. - * @author Toru Nagashima - */ - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ - -// Defitions for deprecation warnings. -const deprecationWarningMessages = { - ESLINT_LEGACY_ECMAFEATURES: - "The 'ecmaFeatures' config file property is deprecated and has no effect.", - ESLINT_PERSONAL_CONFIG_LOAD: - "'~/.eslintrc.*' config files have been deprecated. " + - "Please use a config file per project or the '--config' option.", - ESLINT_PERSONAL_CONFIG_SUPPRESS: - "'~/.eslintrc.*' config files have been deprecated. " + - "Please remove it or add 'root:true' to the config files in your " + - "projects in order to avoid loading '~/.eslintrc.*' accidentally." -}; - -const sourceFileErrorCache = new Set(); - -/** - * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted - * for each unique file path, but repeated invocations with the same file path have no effect. - * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active. - * @param {string} source The name of the configuration source to report the warning for. - * @param {string} errorCode The warning message to show. - * @returns {void} - */ -function emitDeprecationWarning(source, errorCode) { - const cacheKey = JSON.stringify({ source, errorCode }); - - if (sourceFileErrorCache.has(cacheKey)) { - return; - } - sourceFileErrorCache.add(cacheKey); - - const rel = path__default["default"].relative(process.cwd(), source); - const message = deprecationWarningMessages[errorCode]; - - process.emitWarning( - `${message} (found in "${rel}")`, - "DeprecationWarning", - errorCode - ); -} - -/** - * @fileoverview The instance of Ajv validator. - * @author Evgeny Poberezkin - */ - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -/* - * Copied from ajv/lib/refs/json-schema-draft-04.json - * The MIT License (MIT) - * Copyright (c) 2015-2017 Evgeny Poberezkin - */ -const metaSchema = { - id: "http://json-schema.org/draft-04/schema#", - $schema: "http://json-schema.org/draft-04/schema#", - description: "Core schema meta-schema", - definitions: { - schemaArray: { - type: "array", - minItems: 1, - items: { $ref: "#" } - }, - positiveInteger: { - type: "integer", - minimum: 0 - }, - positiveIntegerDefault0: { - allOf: [{ $ref: "#/definitions/positiveInteger" }, { default: 0 }] - }, - simpleTypes: { - enum: ["array", "boolean", "integer", "null", "number", "object", "string"] - }, - stringArray: { - type: "array", - items: { type: "string" }, - minItems: 1, - uniqueItems: true - } - }, - type: "object", - properties: { - id: { - type: "string" - }, - $schema: { - type: "string" - }, - title: { - type: "string" - }, - description: { - type: "string" - }, - default: { }, - multipleOf: { - type: "number", - minimum: 0, - exclusiveMinimum: true - }, - maximum: { - type: "number" - }, - exclusiveMaximum: { - type: "boolean", - default: false - }, - minimum: { - type: "number" - }, - exclusiveMinimum: { - type: "boolean", - default: false - }, - maxLength: { $ref: "#/definitions/positiveInteger" }, - minLength: { $ref: "#/definitions/positiveIntegerDefault0" }, - pattern: { - type: "string", - format: "regex" - }, - additionalItems: { - anyOf: [ - { type: "boolean" }, - { $ref: "#" } - ], - default: { } - }, - items: { - anyOf: [ - { $ref: "#" }, - { $ref: "#/definitions/schemaArray" } - ], - default: { } - }, - maxItems: { $ref: "#/definitions/positiveInteger" }, - minItems: { $ref: "#/definitions/positiveIntegerDefault0" }, - uniqueItems: { - type: "boolean", - default: false - }, - maxProperties: { $ref: "#/definitions/positiveInteger" }, - minProperties: { $ref: "#/definitions/positiveIntegerDefault0" }, - required: { $ref: "#/definitions/stringArray" }, - additionalProperties: { - anyOf: [ - { type: "boolean" }, - { $ref: "#" } - ], - default: { } - }, - definitions: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - properties: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - patternProperties: { - type: "object", - additionalProperties: { $ref: "#" }, - default: { } - }, - dependencies: { - type: "object", - additionalProperties: { - anyOf: [ - { $ref: "#" }, - { $ref: "#/definitions/stringArray" } - ] - } - }, - enum: { - type: "array", - minItems: 1, - uniqueItems: true - }, - type: { - anyOf: [ - { $ref: "#/definitions/simpleTypes" }, - { - type: "array", - items: { $ref: "#/definitions/simpleTypes" }, - minItems: 1, - uniqueItems: true - } - ] - }, - format: { type: "string" }, - allOf: { $ref: "#/definitions/schemaArray" }, - anyOf: { $ref: "#/definitions/schemaArray" }, - oneOf: { $ref: "#/definitions/schemaArray" }, - not: { $ref: "#" } - }, - dependencies: { - exclusiveMaximum: ["maximum"], - exclusiveMinimum: ["minimum"] - }, - default: { } -}; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -var ajvOrig = (additionalOptions = {}) => { - const ajv = new Ajv__default["default"]({ - meta: false, - useDefaults: true, - validateSchema: false, - missingRefs: "ignore", - verbose: true, - schemaId: "auto", - ...additionalOptions - }); - - ajv.addMetaSchema(metaSchema); - // eslint-disable-next-line no-underscore-dangle - ajv._opts.defaultMeta = metaSchema.id; - - return ajv; -}; - -/** - * @fileoverview Defines a schema for configs. - * @author Sylvan Mably - */ - -const baseConfigProperties = { - $schema: { type: "string" }, - env: { type: "object" }, - extends: { $ref: "#/definitions/stringOrStrings" }, - globals: { type: "object" }, - overrides: { - type: "array", - items: { $ref: "#/definitions/overrideConfig" }, - additionalItems: false - }, - parser: { type: ["string", "null"] }, - parserOptions: { type: "object" }, - plugins: { type: "array" }, - processor: { type: "string" }, - rules: { type: "object" }, - settings: { type: "object" }, - noInlineConfig: { type: "boolean" }, - reportUnusedDisableDirectives: { type: "boolean" }, - - ecmaFeatures: { type: "object" } // deprecated; logs a warning when used -}; - -const configSchema = { - definitions: { - stringOrStrings: { - oneOf: [ - { type: "string" }, - { - type: "array", - items: { type: "string" }, - additionalItems: false - } - ] - }, - stringOrStringsRequired: { - oneOf: [ - { type: "string" }, - { - type: "array", - items: { type: "string" }, - additionalItems: false, - minItems: 1 - } - ] - }, - - // Config at top-level. - objectConfig: { - type: "object", - properties: { - root: { type: "boolean" }, - ignorePatterns: { $ref: "#/definitions/stringOrStrings" }, - ...baseConfigProperties - }, - additionalProperties: false - }, - - // Config in `overrides`. - overrideConfig: { - type: "object", - properties: { - excludedFiles: { $ref: "#/definitions/stringOrStrings" }, - files: { $ref: "#/definitions/stringOrStringsRequired" }, - ...baseConfigProperties - }, - required: ["files"], - additionalProperties: false - } - }, - - $ref: "#/definitions/objectConfig" -}; - -/** - * @fileoverview Defines environment settings and globals. - * @author Elan Shanker - */ - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -/** - * Get the object that has difference. - * @param {Record} current The newer object. - * @param {Record} prev The older object. - * @returns {Record} The difference object. - */ -function getDiff(current, prev) { - const retv = {}; - - for (const [key, value] of Object.entries(current)) { - if (!Object.hasOwnProperty.call(prev, key)) { - retv[key] = value; - } - } - - return retv; -} - -const newGlobals2015 = getDiff(globals__default["default"].es2015, globals__default["default"].es5); // 19 variables such as Promise, Map, ... -const newGlobals2017 = { - Atomics: false, - SharedArrayBuffer: false -}; -const newGlobals2020 = { - BigInt: false, - BigInt64Array: false, - BigUint64Array: false, - globalThis: false -}; - -const newGlobals2021 = { - AggregateError: false, - FinalizationRegistry: false, - WeakRef: false -}; - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** @type {Map} */ -var environments = new Map(Object.entries({ - - // Language - builtin: { - globals: globals__default["default"].es5 - }, - es6: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 6 - } - }, - es2015: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 6 - } - }, - es2016: { - globals: newGlobals2015, - parserOptions: { - ecmaVersion: 7 - } - }, - es2017: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 8 - } - }, - es2018: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 9 - } - }, - es2019: { - globals: { ...newGlobals2015, ...newGlobals2017 }, - parserOptions: { - ecmaVersion: 10 - } - }, - es2020: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 }, - parserOptions: { - ecmaVersion: 11 - } - }, - es2021: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 12 - } - }, - es2022: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 13 - } - }, - es2023: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 14 - } - }, - es2024: { - globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 }, - parserOptions: { - ecmaVersion: 15 - } - }, - - // Platforms - browser: { - globals: globals__default["default"].browser - }, - node: { - globals: globals__default["default"].node, - parserOptions: { - ecmaFeatures: { - globalReturn: true - } - } - }, - "shared-node-browser": { - globals: globals__default["default"]["shared-node-browser"] - }, - worker: { - globals: globals__default["default"].worker - }, - serviceworker: { - globals: globals__default["default"].serviceworker - }, - - // Frameworks - commonjs: { - globals: globals__default["default"].commonjs, - parserOptions: { - ecmaFeatures: { - globalReturn: true - } - } - }, - amd: { - globals: globals__default["default"].amd - }, - mocha: { - globals: globals__default["default"].mocha - }, - jasmine: { - globals: globals__default["default"].jasmine - }, - jest: { - globals: globals__default["default"].jest - }, - phantomjs: { - globals: globals__default["default"].phantomjs - }, - jquery: { - globals: globals__default["default"].jquery - }, - qunit: { - globals: globals__default["default"].qunit - }, - prototypejs: { - globals: globals__default["default"].prototypejs - }, - shelljs: { - globals: globals__default["default"].shelljs - }, - meteor: { - globals: globals__default["default"].meteor - }, - mongo: { - globals: globals__default["default"].mongo - }, - protractor: { - globals: globals__default["default"].protractor - }, - applescript: { - globals: globals__default["default"].applescript - }, - nashorn: { - globals: globals__default["default"].nashorn - }, - atomtest: { - globals: globals__default["default"].atomtest - }, - embertest: { - globals: globals__default["default"].embertest - }, - webextensions: { - globals: globals__default["default"].webextensions - }, - greasemonkey: { - globals: globals__default["default"].greasemonkey - } -})); - -/** - * @fileoverview Validates configs. - * @author Brandon Mills - */ - -const ajv = ajvOrig(); - -const ruleValidators = new WeakMap(); -const noop = Function.prototype; - -//------------------------------------------------------------------------------ -// Private -//------------------------------------------------------------------------------ -let validateSchema; -const severityMap = { - error: 2, - warn: 1, - off: 0 -}; - -const validated = new WeakSet(); - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -class ConfigValidator { - constructor({ builtInRules = new Map() } = {}) { - this.builtInRules = builtInRules; - } - - /** - * Gets a complete options schema for a rule. - * @param {{create: Function, schema: (Array|null)}} rule A new-style rule object - * @returns {Object} JSON Schema for the rule's options. - */ - getRuleOptionsSchema(rule) { - if (!rule) { - return null; - } - - const schema = rule.schema || rule.meta && rule.meta.schema; - - // Given a tuple of schemas, insert warning level at the beginning - if (Array.isArray(schema)) { - if (schema.length) { - return { - type: "array", - items: schema, - minItems: 0, - maxItems: schema.length - }; - } - return { - type: "array", - minItems: 0, - maxItems: 0 - }; - - } - - // Given a full schema, leave it alone - return schema || null; - } - - /** - * Validates a rule's severity and returns the severity value. Throws an error if the severity is invalid. - * @param {options} options The given options for the rule. - * @returns {number|string} The rule's severity value - */ - validateRuleSeverity(options) { - const severity = Array.isArray(options) ? options[0] : options; - const normSeverity = typeof severity === "string" ? severityMap[severity.toLowerCase()] : severity; - - if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) { - return normSeverity; - } - - throw new Error(`\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util__default["default"].inspect(severity).replace(/'/gu, "\"").replace(/\n/gu, "")}').\n`); - - } - - /** - * Validates the non-severity options passed to a rule, based on its schema. - * @param {{create: Function}} rule The rule to validate - * @param {Array} localOptions The options for the rule, excluding severity - * @returns {void} - */ - validateRuleSchema(rule, localOptions) { - if (!ruleValidators.has(rule)) { - const schema = this.getRuleOptionsSchema(rule); - - if (schema) { - ruleValidators.set(rule, ajv.compile(schema)); - } - } - - const validateRule = ruleValidators.get(rule); - - if (validateRule) { - validateRule(localOptions); - if (validateRule.errors) { - throw new Error(validateRule.errors.map( - error => `\tValue ${JSON.stringify(error.data)} ${error.message}.\n` - ).join("")); - } - } - } - - /** - * Validates a rule's options against its schema. - * @param {{create: Function}|null} rule The rule that the config is being validated for - * @param {string} ruleId The rule's unique name. - * @param {Array|number} options The given options for the rule. - * @param {string|null} source The name of the configuration source to report in any errors. If null or undefined, - * no source is prepended to the message. - * @returns {void} - */ - validateRuleOptions(rule, ruleId, options, source = null) { - try { - const severity = this.validateRuleSeverity(options); - - if (severity !== 0) { - this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []); - } - } catch (err) { - const enhancedMessage = `Configuration for rule "${ruleId}" is invalid:\n${err.message}`; - - if (typeof source === "string") { - throw new Error(`${source}:\n\t${enhancedMessage}`); - } else { - throw new Error(enhancedMessage); - } - } - } - - /** - * Validates an environment object - * @param {Object} environment The environment config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded environments. - * @returns {void} - */ - validateEnvironment( - environment, - source, - getAdditionalEnv = noop - ) { - - // not having an environment is ok - if (!environment) { - return; - } - - Object.keys(environment).forEach(id => { - const env = getAdditionalEnv(id) || environments.get(id) || null; - - if (!env) { - const message = `${source}:\n\tEnvironment key "${id}" is unknown\n`; - - throw new Error(message); - } - }); - } - - /** - * Validates a rules config object - * @param {Object} rulesConfig The rules config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(ruleId:string): Object} getAdditionalRule A map from strings to loaded rules - * @returns {void} - */ - validateRules( - rulesConfig, - source, - getAdditionalRule = noop - ) { - if (!rulesConfig) { - return; - } - - Object.keys(rulesConfig).forEach(id => { - const rule = getAdditionalRule(id) || this.builtInRules.get(id) || null; - - this.validateRuleOptions(rule, id, rulesConfig[id], source); - }); - } - - /** - * Validates a `globals` section of a config file - * @param {Object} globalsConfig The `globals` section - * @param {string|null} source The name of the configuration source to report in the event of an error. - * @returns {void} - */ - validateGlobals(globalsConfig, source = null) { - if (!globalsConfig) { - return; - } - - Object.entries(globalsConfig) - .forEach(([configuredGlobal, configuredValue]) => { - try { - normalizeConfigGlobal(configuredValue); - } catch (err) { - throw new Error(`ESLint configuration of global '${configuredGlobal}' in ${source} is invalid:\n${err.message}`); - } - }); - } - - /** - * Validate `processor` configuration. - * @param {string|undefined} processorName The processor name. - * @param {string} source The name of config file. - * @param {function(id:string): Processor} getProcessor The getter of defined processors. - * @returns {void} - */ - validateProcessor(processorName, source, getProcessor) { - if (processorName && !getProcessor(processorName)) { - throw new Error(`ESLint configuration of processor in '${source}' is invalid: '${processorName}' was not found.`); - } - } - - /** - * Formats an array of schema validation errors. - * @param {Array} errors An array of error messages to format. - * @returns {string} Formatted error message - */ - formatErrors(errors) { - return errors.map(error => { - if (error.keyword === "additionalProperties") { - const formattedPropertyPath = error.dataPath.length ? `${error.dataPath.slice(1)}.${error.params.additionalProperty}` : error.params.additionalProperty; - - return `Unexpected top-level property "${formattedPropertyPath}"`; - } - if (error.keyword === "type") { - const formattedField = error.dataPath.slice(1); - const formattedExpectedType = Array.isArray(error.schema) ? error.schema.join("/") : error.schema; - const formattedValue = JSON.stringify(error.data); - - return `Property "${formattedField}" is the wrong type (expected ${formattedExpectedType} but got \`${formattedValue}\`)`; - } - - const field = error.dataPath[0] === "." ? error.dataPath.slice(1) : error.dataPath; - - return `"${field}" ${error.message}. Value: ${JSON.stringify(error.data)}`; - }).map(message => `\t- ${message}.\n`).join(""); - } - - /** - * Validates the top level properties of the config object. - * @param {Object} config The config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @returns {void} - */ - validateConfigSchema(config, source = null) { - validateSchema = validateSchema || ajv.compile(configSchema); - - if (!validateSchema(config)) { - throw new Error(`ESLint configuration in ${source} is invalid:\n${this.formatErrors(validateSchema.errors)}`); - } - - if (Object.hasOwnProperty.call(config, "ecmaFeatures")) { - emitDeprecationWarning(source, "ESLINT_LEGACY_ECMAFEATURES"); - } - } - - /** - * Validates an entire config object. - * @param {Object} config The config object to validate. - * @param {string} source The name of the configuration source to report in any errors. - * @param {function(ruleId:string): Object} [getAdditionalRule] A map from strings to loaded rules. - * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded envs. - * @returns {void} - */ - validate(config, source, getAdditionalRule, getAdditionalEnv) { - this.validateConfigSchema(config, source); - this.validateRules(config.rules, source, getAdditionalRule); - this.validateEnvironment(config.env, source, getAdditionalEnv); - this.validateGlobals(config.globals, source); - - for (const override of config.overrides || []) { - this.validateRules(override.rules, source, getAdditionalRule); - this.validateEnvironment(override.env, source, getAdditionalEnv); - this.validateGlobals(config.globals, source); - } - } - - /** - * Validate config array object. - * @param {ConfigArray} configArray The config array to validate. - * @returns {void} - */ - validateConfigArray(configArray) { - const getPluginEnv = Map.prototype.get.bind(configArray.pluginEnvironments); - const getPluginProcessor = Map.prototype.get.bind(configArray.pluginProcessors); - const getPluginRule = Map.prototype.get.bind(configArray.pluginRules); - - // Validate. - for (const element of configArray) { - if (validated.has(element)) { - continue; - } - validated.add(element); - - this.validateEnvironment(element.env, element.name, getPluginEnv); - this.validateGlobals(element.globals, element.name); - this.validateProcessor(element.processor, element.name, getPluginProcessor); - this.validateRules(element.rules, element.name, getPluginRule); - } - } - -} - -/** - * @fileoverview Common helpers for naming of plugins, formatters and configs - */ - -const NAMESPACE_REGEX = /^@.*\//iu; - -/** - * Brings package name to correct format based on prefix - * @param {string} name The name of the package. - * @param {string} prefix Can be either "eslint-plugin", "eslint-config" or "eslint-formatter" - * @returns {string} Normalized name of the package - * @private - */ -function normalizePackageName(name, prefix) { - let normalizedName = name; - - /** - * On Windows, name can come in with Windows slashes instead of Unix slashes. - * Normalize to Unix first to avoid errors later on. - * https://github.com/eslint/eslint/issues/5644 - */ - if (normalizedName.includes("\\")) { - normalizedName = normalizedName.replace(/\\/gu, "/"); - } - - if (normalizedName.charAt(0) === "@") { - - /** - * it's a scoped package - * package name is the prefix, or just a username - */ - const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, "u"), - scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, "u"); - - if (scopedPackageShortcutRegex.test(normalizedName)) { - normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`); - } else if (!scopedPackageNameRegex.test(normalizedName.split("/")[1])) { - - /** - * for scoped packages, insert the prefix after the first / unless - * the path is already @scope/eslint or @scope/eslint-xxx-yyy - */ - normalizedName = normalizedName.replace(/^@([^/]+)\/(.*)$/u, `@$1/${prefix}-$2`); - } - } else if (!normalizedName.startsWith(`${prefix}-`)) { - normalizedName = `${prefix}-${normalizedName}`; - } - - return normalizedName; -} - -/** - * Removes the prefix from a fullname. - * @param {string} fullname The term which may have the prefix. - * @param {string} prefix The prefix to remove. - * @returns {string} The term without prefix. - */ -function getShorthandName(fullname, prefix) { - if (fullname[0] === "@") { - let matchResult = new RegExp(`^(@[^/]+)/${prefix}$`, "u").exec(fullname); - - if (matchResult) { - return matchResult[1]; - } - - matchResult = new RegExp(`^(@[^/]+)/${prefix}-(.+)$`, "u").exec(fullname); - if (matchResult) { - return `${matchResult[1]}/${matchResult[2]}`; - } - } else if (fullname.startsWith(`${prefix}-`)) { - return fullname.slice(prefix.length + 1); - } - - return fullname; -} - -/** - * Gets the scope (namespace) of a term. - * @param {string} term The term which may have the namespace. - * @returns {string} The namespace of the term if it has one. - */ -function getNamespaceFromTerm(term) { - const match = term.match(NAMESPACE_REGEX); - - return match ? match[0] : ""; -} - -var naming = { - __proto__: null, - normalizePackageName: normalizePackageName, - getShorthandName: getShorthandName, - getNamespaceFromTerm: getNamespaceFromTerm -}; - -/** - * Utility for resolving a module relative to another module - * @author Teddy Katz - */ - -/* - * `Module.createRequire` is added in v12.2.0. It supports URL as well. - * We only support the case where the argument is a filepath, not a URL. - */ -const createRequire = Module__default["default"].createRequire; - -/** - * Resolves a Node module relative to another module - * @param {string} moduleName The name of a Node module, or a path to a Node module. - * @param {string} relativeToPath An absolute path indicating the module that `moduleName` should be resolved relative to. This must be - * a file rather than a directory, but the file need not actually exist. - * @returns {string} The absolute path that would result from calling `require.resolve(moduleName)` in a file located at `relativeToPath` - */ -function resolve(moduleName, relativeToPath) { - try { - return createRequire(relativeToPath).resolve(moduleName); - } catch (error) { - - // This `if` block is for older Node.js than 12.0.0. We can remove this block in the future. - if ( - typeof error === "object" && - error !== null && - error.code === "MODULE_NOT_FOUND" && - !error.requireStack && - error.message.includes(moduleName) - ) { - error.message += `\nRequire stack:\n- ${relativeToPath}`; - } - throw error; - } -} - -var ModuleResolver = { - __proto__: null, - resolve: resolve -}; - -/** - * @fileoverview The factory of `ConfigArray` objects. - * - * This class provides methods to create `ConfigArray` instance. - * - * - `create(configData, options)` - * Create a `ConfigArray` instance from a config data. This is to handle CLI - * options except `--config`. - * - `loadFile(filePath, options)` - * Create a `ConfigArray` instance from a config file. This is to handle - * `--config` option. If the file was not found, throws the following error: - * - If the filename was `*.js`, a `MODULE_NOT_FOUND` error. - * - If the filename was `package.json`, an IO error or an - * `ESLINT_CONFIG_FIELD_NOT_FOUND` error. - * - Otherwise, an IO error such as `ENOENT`. - * - `loadInDirectory(directoryPath, options)` - * Create a `ConfigArray` instance from a config file which is on a given - * directory. This tries to load `.eslintrc.*` or `package.json`. If not - * found, returns an empty `ConfigArray`. - * - `loadESLintIgnore(filePath)` - * Create a `ConfigArray` instance from a config file that is `.eslintignore` - * format. This is to handle `--ignore-path` option. - * - `loadDefaultESLintIgnore()` - * Create a `ConfigArray` instance from `.eslintignore` or `package.json` in - * the current working directory. - * - * `ConfigArrayFactory` class has the responsibility that loads configuration - * files, including loading `extends`, `parser`, and `plugins`. The created - * `ConfigArray` instance has the loaded `extends`, `parser`, and `plugins`. - * - * But this class doesn't handle cascading. `CascadingConfigArrayFactory` class - * handles cascading and hierarchy. - * - * @author Toru Nagashima - */ - -const require$1 = Module.createRequire(require('url').pathToFileURL(__filename).toString()); - -const debug$2 = debugOrig__default["default"]("eslintrc:config-array-factory"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -const configFilenames = [ - ".eslintrc.js", - ".eslintrc.cjs", - ".eslintrc.yaml", - ".eslintrc.yml", - ".eslintrc.json", - ".eslintrc", - "package.json" -]; - -// Define types for VSCode IntelliSense. -/** @typedef {import("./shared/types").ConfigData} ConfigData */ -/** @typedef {import("./shared/types").OverrideConfigData} OverrideConfigData */ -/** @typedef {import("./shared/types").Parser} Parser */ -/** @typedef {import("./shared/types").Plugin} Plugin */ -/** @typedef {import("./shared/types").Rule} Rule */ -/** @typedef {import("./config-array/config-dependency").DependentParser} DependentParser */ -/** @typedef {import("./config-array/config-dependency").DependentPlugin} DependentPlugin */ -/** @typedef {ConfigArray[0]} ConfigArrayElement */ - -/** - * @typedef {Object} ConfigArrayFactoryOptions - * @property {Map} [additionalPluginPool] The map for additional plugins. - * @property {string} [cwd] The path to the current working directory. - * @property {string} [resolvePluginsRelativeTo] A path to the directory that plugins should be resolved from. Defaults to `cwd`. - * @property {Map} builtInRules The rules that are built in to ESLint. - * @property {Object} [resolver=ModuleResolver] The module resolver object. - * @property {string} eslintAllPath The path to the definitions for eslint:all. - * @property {Function} getEslintAllConfig Returns the config data for eslint:all. - * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. - * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended. - */ - -/** - * @typedef {Object} ConfigArrayFactoryInternalSlots - * @property {Map} additionalPluginPool The map for additional plugins. - * @property {string} cwd The path to the current working directory. - * @property {string | undefined} resolvePluginsRelativeTo An absolute path the the directory that plugins should be resolved from. - * @property {Map} builtInRules The rules that are built in to ESLint. - * @property {Object} [resolver=ModuleResolver] The module resolver object. - * @property {string} eslintAllPath The path to the definitions for eslint:all. - * @property {Function} getEslintAllConfig Returns the config data for eslint:all. - * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. - * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended. - */ - -/** - * @typedef {Object} ConfigArrayFactoryLoadingContext - * @property {string} filePath The path to the current configuration. - * @property {string} matchBasePath The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @property {string} name The name of the current configuration. - * @property {string} pluginBasePath The base path to resolve plugins. - * @property {"config" | "ignore" | "implicit-processor"} type The type of the current configuration. This is `"config"` in normal. This is `"ignore"` if it came from `.eslintignore`. This is `"implicit-processor"` if it came from legacy file-extension processors. - */ - -/** - * @typedef {Object} ConfigArrayFactoryLoadingContext - * @property {string} filePath The path to the current configuration. - * @property {string} matchBasePath The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @property {string} name The name of the current configuration. - * @property {"config" | "ignore" | "implicit-processor"} type The type of the current configuration. This is `"config"` in normal. This is `"ignore"` if it came from `.eslintignore`. This is `"implicit-processor"` if it came from legacy file-extension processors. - */ - -/** @type {WeakMap} */ -const internalSlotsMap$1 = new WeakMap(); - -/** @type {WeakMap} */ -const normalizedPlugins = new WeakMap(); - -/** - * Check if a given string is a file path. - * @param {string} nameOrPath A module name or file path. - * @returns {boolean} `true` if the `nameOrPath` is a file path. - */ -function isFilePath(nameOrPath) { - return ( - /^\.{1,2}[/\\]/u.test(nameOrPath) || - path__default["default"].isAbsolute(nameOrPath) - ); -} - -/** - * Convenience wrapper for synchronously reading file contents. - * @param {string} filePath The filename to read. - * @returns {string} The file contents, with the BOM removed. - * @private - */ -function readFile(filePath) { - return fs__default["default"].readFileSync(filePath, "utf8").replace(/^\ufeff/u, ""); -} - -/** - * Loads a YAML configuration from a file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadYAMLConfigFile(filePath) { - debug$2(`Loading YAML config file: ${filePath}`); - - // lazy load YAML to improve performance when not used - const yaml = require$1("js-yaml"); - - try { - - // empty YAML file can be null, so always use - return yaml.load(readFile(filePath)) || {}; - } catch (e) { - debug$2(`Error reading YAML file: ${filePath}`); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Loads a JSON configuration from a file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadJSONConfigFile(filePath) { - debug$2(`Loading JSON config file: ${filePath}`); - - try { - return JSON.parse(stripComments__default["default"](readFile(filePath))); - } catch (e) { - debug$2(`Error reading JSON file: ${filePath}`); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - e.messageTemplate = "failed-to-read-json"; - e.messageData = { - path: filePath, - message: e.message - }; - throw e; - } -} - -/** - * Loads a legacy (.eslintrc) configuration from a file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadLegacyConfigFile(filePath) { - debug$2(`Loading legacy config file: ${filePath}`); - - // lazy load YAML to improve performance when not used - const yaml = require$1("js-yaml"); - - try { - return yaml.load(stripComments__default["default"](readFile(filePath))) || /* istanbul ignore next */ {}; - } catch (e) { - debug$2("Error reading YAML file: %s\n%o", filePath, e); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Loads a JavaScript configuration from a file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadJSConfigFile(filePath) { - debug$2(`Loading JS config file: ${filePath}`); - try { - return importFresh__default["default"](filePath); - } catch (e) { - debug$2(`Error reading JavaScript file: ${filePath}`); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Loads a configuration from a package.json file. - * @param {string} filePath The filename to load. - * @returns {ConfigData} The configuration object from the file. - * @throws {Error} If the file cannot be read. - * @private - */ -function loadPackageJSONConfigFile(filePath) { - debug$2(`Loading package.json config file: ${filePath}`); - try { - const packageData = loadJSONConfigFile(filePath); - - if (!Object.hasOwnProperty.call(packageData, "eslintConfig")) { - throw Object.assign( - new Error("package.json file doesn't have 'eslintConfig' field."), - { code: "ESLINT_CONFIG_FIELD_NOT_FOUND" } - ); - } - - return packageData.eslintConfig; - } catch (e) { - debug$2(`Error reading package.json file: ${filePath}`); - e.message = `Cannot read config file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Loads a `.eslintignore` from a file. - * @param {string} filePath The filename to load. - * @returns {string[]} The ignore patterns from the file. - * @private - */ -function loadESLintIgnoreFile(filePath) { - debug$2(`Loading .eslintignore file: ${filePath}`); - - try { - return readFile(filePath) - .split(/\r?\n/gu) - .filter(line => line.trim() !== "" && !line.startsWith("#")); - } catch (e) { - debug$2(`Error reading .eslintignore file: ${filePath}`); - e.message = `Cannot read .eslintignore file: ${filePath}\nError: ${e.message}`; - throw e; - } -} - -/** - * Creates an error to notify about a missing config to extend from. - * @param {string} configName The name of the missing config. - * @param {string} importerName The name of the config that imported the missing config - * @param {string} messageTemplate The text template to source error strings from. - * @returns {Error} The error object to throw - * @private - */ -function configInvalidError(configName, importerName, messageTemplate) { - return Object.assign( - new Error(`Failed to load config "${configName}" to extend from.`), - { - messageTemplate, - messageData: { configName, importerName } - } - ); -} - -/** - * Loads a configuration file regardless of the source. Inspects the file path - * to determine the correctly way to load the config file. - * @param {string} filePath The path to the configuration. - * @returns {ConfigData|null} The configuration information. - * @private - */ -function loadConfigFile(filePath) { - switch (path__default["default"].extname(filePath)) { - case ".js": - case ".cjs": - return loadJSConfigFile(filePath); - - case ".json": - if (path__default["default"].basename(filePath) === "package.json") { - return loadPackageJSONConfigFile(filePath); - } - return loadJSONConfigFile(filePath); - - case ".yaml": - case ".yml": - return loadYAMLConfigFile(filePath); - - default: - return loadLegacyConfigFile(filePath); - } -} - -/** - * Write debug log. - * @param {string} request The requested module name. - * @param {string} relativeTo The file path to resolve the request relative to. - * @param {string} filePath The resolved file path. - * @returns {void} - */ -function writeDebugLogForLoading(request, relativeTo, filePath) { - /* istanbul ignore next */ - if (debug$2.enabled) { - let nameAndVersion = null; - - try { - const packageJsonPath = resolve( - `${request}/package.json`, - relativeTo - ); - const { version = "unknown" } = require$1(packageJsonPath); - - nameAndVersion = `${request}@${version}`; - } catch (error) { - debug$2("package.json was not found:", error.message); - nameAndVersion = request; - } - - debug$2("Loaded: %s (%s)", nameAndVersion, filePath); - } -} - -/** - * Create a new context with default values. - * @param {ConfigArrayFactoryInternalSlots} slots The internal slots. - * @param {"config" | "ignore" | "implicit-processor" | undefined} providedType The type of the current configuration. Default is `"config"`. - * @param {string | undefined} providedName The name of the current configuration. Default is the relative path from `cwd` to `filePath`. - * @param {string | undefined} providedFilePath The path to the current configuration. Default is empty string. - * @param {string | undefined} providedMatchBasePath The type of the current configuration. Default is the directory of `filePath` or `cwd`. - * @returns {ConfigArrayFactoryLoadingContext} The created context. - */ -function createContext( - { cwd, resolvePluginsRelativeTo }, - providedType, - providedName, - providedFilePath, - providedMatchBasePath -) { - const filePath = providedFilePath - ? path__default["default"].resolve(cwd, providedFilePath) - : ""; - const matchBasePath = - (providedMatchBasePath && path__default["default"].resolve(cwd, providedMatchBasePath)) || - (filePath && path__default["default"].dirname(filePath)) || - cwd; - const name = - providedName || - (filePath && path__default["default"].relative(cwd, filePath)) || - ""; - const pluginBasePath = - resolvePluginsRelativeTo || - (filePath && path__default["default"].dirname(filePath)) || - cwd; - const type = providedType || "config"; - - return { filePath, matchBasePath, name, pluginBasePath, type }; -} - -/** - * Normalize a given plugin. - * - Ensure the object to have four properties: configs, environments, processors, and rules. - * - Ensure the object to not have other properties. - * @param {Plugin} plugin The plugin to normalize. - * @returns {Plugin} The normalized plugin. - */ -function normalizePlugin(plugin) { - - // first check the cache - let normalizedPlugin = normalizedPlugins.get(plugin); - - if (normalizedPlugin) { - return normalizedPlugin; - } - - normalizedPlugin = { - configs: plugin.configs || {}, - environments: plugin.environments || {}, - processors: plugin.processors || {}, - rules: plugin.rules || {} - }; - - // save the reference for later - normalizedPlugins.set(plugin, normalizedPlugin); - - return normalizedPlugin; -} - -//------------------------------------------------------------------------------ -// Public Interface -//------------------------------------------------------------------------------ - -/** - * The factory of `ConfigArray` objects. - */ -class ConfigArrayFactory { - - /** - * Initialize this instance. - * @param {ConfigArrayFactoryOptions} [options] The map for additional plugins. - */ - constructor({ - additionalPluginPool = new Map(), - cwd = process.cwd(), - resolvePluginsRelativeTo, - builtInRules, - resolver = ModuleResolver, - eslintAllPath, - getEslintAllConfig, - eslintRecommendedPath, - getEslintRecommendedConfig - } = {}) { - internalSlotsMap$1.set(this, { - additionalPluginPool, - cwd, - resolvePluginsRelativeTo: - resolvePluginsRelativeTo && - path__default["default"].resolve(cwd, resolvePluginsRelativeTo), - builtInRules, - resolver, - eslintAllPath, - getEslintAllConfig, - eslintRecommendedPath, - getEslintRecommendedConfig - }); - } - - /** - * Create `ConfigArray` instance from a config data. - * @param {ConfigData|null} configData The config data to create. - * @param {Object} [options] The options. - * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @param {string} [options.filePath] The path to this config data. - * @param {string} [options.name] The config name. - * @returns {ConfigArray} Loaded config. - */ - create(configData, { basePath, filePath, name } = {}) { - if (!configData) { - return new ConfigArray(); - } - - const slots = internalSlotsMap$1.get(this); - const ctx = createContext(slots, "config", name, filePath, basePath); - const elements = this._normalizeConfigData(configData, ctx); - - return new ConfigArray(...elements); - } - - /** - * Load a config file. - * @param {string} filePath The path to a config file. - * @param {Object} [options] The options. - * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @param {string} [options.name] The config name. - * @returns {ConfigArray} Loaded config. - */ - loadFile(filePath, { basePath, name } = {}) { - const slots = internalSlotsMap$1.get(this); - const ctx = createContext(slots, "config", name, filePath, basePath); - - return new ConfigArray(...this._loadConfigData(ctx)); - } - - /** - * Load the config file on a given directory if exists. - * @param {string} directoryPath The path to a directory. - * @param {Object} [options] The options. - * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`. - * @param {string} [options.name] The config name. - * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist. - */ - loadInDirectory(directoryPath, { basePath, name } = {}) { - const slots = internalSlotsMap$1.get(this); - - for (const filename of configFilenames) { - const ctx = createContext( - slots, - "config", - name, - path__default["default"].join(directoryPath, filename), - basePath - ); - - if (fs__default["default"].existsSync(ctx.filePath) && fs__default["default"].statSync(ctx.filePath).isFile()) { - let configData; - - try { - configData = loadConfigFile(ctx.filePath); - } catch (error) { - if (!error || error.code !== "ESLINT_CONFIG_FIELD_NOT_FOUND") { - throw error; - } - } - - if (configData) { - debug$2(`Config file found: ${ctx.filePath}`); - return new ConfigArray( - ...this._normalizeConfigData(configData, ctx) - ); - } - } - } - - debug$2(`Config file not found on ${directoryPath}`); - return new ConfigArray(); - } - - /** - * Check if a config file on a given directory exists or not. - * @param {string} directoryPath The path to a directory. - * @returns {string | null} The path to the found config file. If not found then null. - */ - static getPathToConfigFileInDirectory(directoryPath) { - for (const filename of configFilenames) { - const filePath = path__default["default"].join(directoryPath, filename); - - if (fs__default["default"].existsSync(filePath)) { - if (filename === "package.json") { - try { - loadPackageJSONConfigFile(filePath); - return filePath; - } catch { /* ignore */ } - } else { - return filePath; - } - } - } - return null; - } - - /** - * Load `.eslintignore` file. - * @param {string} filePath The path to a `.eslintignore` file to load. - * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist. - */ - loadESLintIgnore(filePath) { - const slots = internalSlotsMap$1.get(this); - const ctx = createContext( - slots, - "ignore", - void 0, - filePath, - slots.cwd - ); - const ignorePatterns = loadESLintIgnoreFile(ctx.filePath); - - return new ConfigArray( - ...this._normalizeESLintIgnoreData(ignorePatterns, ctx) - ); - } - - /** - * Load `.eslintignore` file in the current working directory. - * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist. - */ - loadDefaultESLintIgnore() { - const slots = internalSlotsMap$1.get(this); - const eslintIgnorePath = path__default["default"].resolve(slots.cwd, ".eslintignore"); - const packageJsonPath = path__default["default"].resolve(slots.cwd, "package.json"); - - if (fs__default["default"].existsSync(eslintIgnorePath)) { - return this.loadESLintIgnore(eslintIgnorePath); - } - if (fs__default["default"].existsSync(packageJsonPath)) { - const data = loadJSONConfigFile(packageJsonPath); - - if (Object.hasOwnProperty.call(data, "eslintIgnore")) { - if (!Array.isArray(data.eslintIgnore)) { - throw new Error("Package.json eslintIgnore property requires an array of paths"); - } - const ctx = createContext( - slots, - "ignore", - "eslintIgnore in package.json", - packageJsonPath, - slots.cwd - ); - - return new ConfigArray( - ...this._normalizeESLintIgnoreData(data.eslintIgnore, ctx) - ); - } - } - - return new ConfigArray(); - } - - /** - * Load a given config file. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} Loaded config. - * @private - */ - _loadConfigData(ctx) { - return this._normalizeConfigData(loadConfigFile(ctx.filePath), ctx); - } - - /** - * Normalize a given `.eslintignore` data to config array elements. - * @param {string[]} ignorePatterns The patterns to ignore files. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - *_normalizeESLintIgnoreData(ignorePatterns, ctx) { - const elements = this._normalizeObjectConfigData( - { ignorePatterns }, - ctx - ); - - // Set `ignorePattern.loose` flag for backward compatibility. - for (const element of elements) { - if (element.ignorePattern) { - element.ignorePattern.loose = true; - } - yield element; - } - } - - /** - * Normalize a given config to an array. - * @param {ConfigData} configData The config data to normalize. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _normalizeConfigData(configData, ctx) { - const validator = new ConfigValidator(); - - validator.validateConfigSchema(configData, ctx.name || ctx.filePath); - return this._normalizeObjectConfigData(configData, ctx); - } - - /** - * Normalize a given config to an array. - * @param {ConfigData|OverrideConfigData} configData The config data to normalize. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - *_normalizeObjectConfigData(configData, ctx) { - const { files, excludedFiles, ...configBody } = configData; - const criteria = OverrideTester.create( - files, - excludedFiles, - ctx.matchBasePath - ); - const elements = this._normalizeObjectConfigDataBody(configBody, ctx); - - // Apply the criteria to every element. - for (const element of elements) { - - /* - * Merge the criteria. - * This is for the `overrides` entries that came from the - * configurations of `overrides[].extends`. - */ - element.criteria = OverrideTester.and(criteria, element.criteria); - - /* - * Remove `root` property to ignore `root` settings which came from - * `extends` in `overrides`. - */ - if (element.criteria) { - element.root = void 0; - } - - yield element; - } - } - - /** - * Normalize a given config to an array. - * @param {ConfigData} configData The config data to normalize. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - *_normalizeObjectConfigDataBody( - { - env, - extends: extend, - globals, - ignorePatterns, - noInlineConfig, - parser: parserName, - parserOptions, - plugins: pluginList, - processor, - reportUnusedDisableDirectives, - root, - rules, - settings, - overrides: overrideList = [] - }, - ctx - ) { - const extendList = Array.isArray(extend) ? extend : [extend]; - const ignorePattern = ignorePatterns && new IgnorePattern( - Array.isArray(ignorePatterns) ? ignorePatterns : [ignorePatterns], - ctx.matchBasePath - ); - - // Flatten `extends`. - for (const extendName of extendList.filter(Boolean)) { - yield* this._loadExtends(extendName, ctx); - } - - // Load parser & plugins. - const parser = parserName && this._loadParser(parserName, ctx); - const plugins = pluginList && this._loadPlugins(pluginList, ctx); - - // Yield pseudo config data for file extension processors. - if (plugins) { - yield* this._takeFileExtensionProcessors(plugins, ctx); - } - - // Yield the config data except `extends` and `overrides`. - yield { - - // Debug information. - type: ctx.type, - name: ctx.name, - filePath: ctx.filePath, - - // Config data. - criteria: null, - env, - globals, - ignorePattern, - noInlineConfig, - parser, - parserOptions, - plugins, - processor, - reportUnusedDisableDirectives, - root, - rules, - settings - }; - - // Flatten `overries`. - for (let i = 0; i < overrideList.length; ++i) { - yield* this._normalizeObjectConfigData( - overrideList[i], - { ...ctx, name: `${ctx.name}#overrides[${i}]` } - ); - } - } - - /** - * Load configs of an element in `extends`. - * @param {string} extendName The name of a base config. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _loadExtends(extendName, ctx) { - debug$2("Loading {extends:%j} relative to %s", extendName, ctx.filePath); - try { - if (extendName.startsWith("eslint:")) { - return this._loadExtendedBuiltInConfig(extendName, ctx); - } - if (extendName.startsWith("plugin:")) { - return this._loadExtendedPluginConfig(extendName, ctx); - } - return this._loadExtendedShareableConfig(extendName, ctx); - } catch (error) { - error.message += `\nReferenced from: ${ctx.filePath || ctx.name}`; - throw error; - } - } - - /** - * Load configs of an element in `extends`. - * @param {string} extendName The name of a base config. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _loadExtendedBuiltInConfig(extendName, ctx) { - const { - eslintAllPath, - getEslintAllConfig, - eslintRecommendedPath, - getEslintRecommendedConfig - } = internalSlotsMap$1.get(this); - - if (extendName === "eslint:recommended") { - const name = `${ctx.name} » ${extendName}`; - - if (getEslintRecommendedConfig) { - if (typeof getEslintRecommendedConfig !== "function") { - throw new Error(`getEslintRecommendedConfig must be a function instead of '${getEslintRecommendedConfig}'`); - } - return this._normalizeConfigData(getEslintRecommendedConfig(), { ...ctx, name, filePath: "" }); - } - return this._loadConfigData({ - ...ctx, - name, - filePath: eslintRecommendedPath - }); - } - if (extendName === "eslint:all") { - const name = `${ctx.name} » ${extendName}`; - - if (getEslintAllConfig) { - if (typeof getEslintAllConfig !== "function") { - throw new Error(`getEslintAllConfig must be a function instead of '${getEslintAllConfig}'`); - } - return this._normalizeConfigData(getEslintAllConfig(), { ...ctx, name, filePath: "" }); - } - return this._loadConfigData({ - ...ctx, - name, - filePath: eslintAllPath - }); - } - - throw configInvalidError(extendName, ctx.name, "extend-config-missing"); - } - - /** - * Load configs of an element in `extends`. - * @param {string} extendName The name of a base config. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _loadExtendedPluginConfig(extendName, ctx) { - const slashIndex = extendName.lastIndexOf("/"); - - if (slashIndex === -1) { - throw configInvalidError(extendName, ctx.filePath, "plugin-invalid"); - } - - const pluginName = extendName.slice("plugin:".length, slashIndex); - const configName = extendName.slice(slashIndex + 1); - - if (isFilePath(pluginName)) { - throw new Error("'extends' cannot use a file path for plugins."); - } - - const plugin = this._loadPlugin(pluginName, ctx); - const configData = - plugin.definition && - plugin.definition.configs[configName]; - - if (configData) { - return this._normalizeConfigData(configData, { - ...ctx, - filePath: plugin.filePath || ctx.filePath, - name: `${ctx.name} » plugin:${plugin.id}/${configName}` - }); - } - - throw plugin.error || configInvalidError(extendName, ctx.filePath, "extend-config-missing"); - } - - /** - * Load configs of an element in `extends`. - * @param {string} extendName The name of a base config. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The normalized config. - * @private - */ - _loadExtendedShareableConfig(extendName, ctx) { - const { cwd, resolver } = internalSlotsMap$1.get(this); - const relativeTo = ctx.filePath || path__default["default"].join(cwd, "__placeholder__.js"); - let request; - - if (isFilePath(extendName)) { - request = extendName; - } else if (extendName.startsWith(".")) { - request = `./${extendName}`; // For backward compatibility. A ton of tests depended on this behavior. - } else { - request = normalizePackageName( - extendName, - "eslint-config" - ); - } - - let filePath; - - try { - filePath = resolver.resolve(request, relativeTo); - } catch (error) { - /* istanbul ignore else */ - if (error && error.code === "MODULE_NOT_FOUND") { - throw configInvalidError(extendName, ctx.filePath, "extend-config-missing"); - } - throw error; - } - - writeDebugLogForLoading(request, relativeTo, filePath); - return this._loadConfigData({ - ...ctx, - filePath, - name: `${ctx.name} » ${request}` - }); - } - - /** - * Load given plugins. - * @param {string[]} names The plugin names to load. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {Record} The loaded parser. - * @private - */ - _loadPlugins(names, ctx) { - return names.reduce((map, name) => { - if (isFilePath(name)) { - throw new Error("Plugins array cannot includes file paths."); - } - const plugin = this._loadPlugin(name, ctx); - - map[plugin.id] = plugin; - - return map; - }, {}); - } - - /** - * Load a given parser. - * @param {string} nameOrPath The package name or the path to a parser file. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {DependentParser} The loaded parser. - */ - _loadParser(nameOrPath, ctx) { - debug$2("Loading parser %j from %s", nameOrPath, ctx.filePath); - - const { cwd, resolver } = internalSlotsMap$1.get(this); - const relativeTo = ctx.filePath || path__default["default"].join(cwd, "__placeholder__.js"); - - try { - const filePath = resolver.resolve(nameOrPath, relativeTo); - - writeDebugLogForLoading(nameOrPath, relativeTo, filePath); - - return new ConfigDependency({ - definition: require$1(filePath), - filePath, - id: nameOrPath, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } catch (error) { - - // If the parser name is "espree", load the espree of ESLint. - if (nameOrPath === "espree") { - debug$2("Fallback espree."); - return new ConfigDependency({ - definition: require$1("espree"), - filePath: require$1.resolve("espree"), - id: nameOrPath, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - - debug$2("Failed to load parser '%s' declared in '%s'.", nameOrPath, ctx.name); - error.message = `Failed to load parser '${nameOrPath}' declared in '${ctx.name}': ${error.message}`; - - return new ConfigDependency({ - error, - id: nameOrPath, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - } - - /** - * Load a given plugin. - * @param {string} name The plugin name to load. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {DependentPlugin} The loaded plugin. - * @private - */ - _loadPlugin(name, ctx) { - debug$2("Loading plugin %j from %s", name, ctx.filePath); - - const { additionalPluginPool, resolver } = internalSlotsMap$1.get(this); - const request = normalizePackageName(name, "eslint-plugin"); - const id = getShorthandName(request, "eslint-plugin"); - const relativeTo = path__default["default"].join(ctx.pluginBasePath, "__placeholder__.js"); - - if (name.match(/\s+/u)) { - const error = Object.assign( - new Error(`Whitespace found in plugin name '${name}'`), - { - messageTemplate: "whitespace-found", - messageData: { pluginName: request } - } - ); - - return new ConfigDependency({ - error, - id, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - - // Check for additional pool. - const plugin = - additionalPluginPool.get(request) || - additionalPluginPool.get(id); - - if (plugin) { - return new ConfigDependency({ - definition: normalizePlugin(plugin), - original: plugin, - filePath: "", // It's unknown where the plugin came from. - id, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - - let filePath; - let error; - - try { - filePath = resolver.resolve(request, relativeTo); - } catch (resolveError) { - error = resolveError; - /* istanbul ignore else */ - if (error && error.code === "MODULE_NOT_FOUND") { - error.messageTemplate = "plugin-missing"; - error.messageData = { - pluginName: request, - resolvePluginsRelativeTo: ctx.pluginBasePath, - importerName: ctx.name - }; - } - } - - if (filePath) { - try { - writeDebugLogForLoading(request, relativeTo, filePath); - - const startTime = Date.now(); - const pluginDefinition = require$1(filePath); - - debug$2(`Plugin ${filePath} loaded in: ${Date.now() - startTime}ms`); - - return new ConfigDependency({ - definition: normalizePlugin(pluginDefinition), - original: pluginDefinition, - filePath, - id, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } catch (loadError) { - error = loadError; - } - } - - debug$2("Failed to load plugin '%s' declared in '%s'.", name, ctx.name); - error.message = `Failed to load plugin '${name}' declared in '${ctx.name}': ${error.message}`; - return new ConfigDependency({ - error, - id, - importerName: ctx.name, - importerPath: ctx.filePath - }); - } - - /** - * Take file expression processors as config array elements. - * @param {Record} plugins The plugin definitions. - * @param {ConfigArrayFactoryLoadingContext} ctx The loading context. - * @returns {IterableIterator} The config array elements of file expression processors. - * @private - */ - *_takeFileExtensionProcessors(plugins, ctx) { - for (const pluginId of Object.keys(plugins)) { - const processors = - plugins[pluginId] && - plugins[pluginId].definition && - plugins[pluginId].definition.processors; - - if (!processors) { - continue; - } - - for (const processorId of Object.keys(processors)) { - if (processorId.startsWith(".")) { - yield* this._normalizeObjectConfigData( - { - files: [`*${processorId}`], - processor: `${pluginId}/${processorId}` - }, - { - ...ctx, - type: "implicit-processor", - name: `${ctx.name}#processors["${pluginId}/${processorId}"]` - } - ); - } - } - } - } -} - -/** - * @fileoverview `CascadingConfigArrayFactory` class. - * - * `CascadingConfigArrayFactory` class has a responsibility: - * - * 1. Handles cascading of config files. - * - * It provides two methods: - * - * - `getConfigArrayForFile(filePath)` - * Get the corresponded configuration of a given file. This method doesn't - * throw even if the given file didn't exist. - * - `clearCache()` - * Clear the internal cache. You have to call this method when - * `additionalPluginPool` was updated if `baseConfig` or `cliConfig` depends - * on the additional plugins. (`CLIEngine#addPlugin()` method calls this.) - * - * @author Toru Nagashima - */ - -const debug$1 = debugOrig__default["default"]("eslintrc:cascading-config-array-factory"); - -//------------------------------------------------------------------------------ -// Helpers -//------------------------------------------------------------------------------ - -// Define types for VSCode IntelliSense. -/** @typedef {import("./shared/types").ConfigData} ConfigData */ -/** @typedef {import("./shared/types").Parser} Parser */ -/** @typedef {import("./shared/types").Plugin} Plugin */ -/** @typedef {import("./shared/types").Rule} Rule */ -/** @typedef {ReturnType} ConfigArray */ - -/** - * @typedef {Object} CascadingConfigArrayFactoryOptions - * @property {Map} [additionalPluginPool] The map for additional plugins. - * @property {ConfigData} [baseConfig] The config by `baseConfig` option. - * @property {ConfigData} [cliConfig] The config by CLI options (`--env`, `--global`, `--ignore-pattern`, `--parser`, `--parser-options`, `--plugin`, and `--rule`). CLI options overwrite the setting in config files. - * @property {string} [cwd] The base directory to start lookup. - * @property {string} [ignorePath] The path to the alternative file of `.eslintignore`. - * @property {string[]} [rulePaths] The value of `--rulesdir` option. - * @property {string} [specificConfigPath] The value of `--config` option. - * @property {boolean} [useEslintrc] if `false` then it doesn't load config files. - * @property {Function} loadRules The function to use to load rules. - * @property {Map} builtInRules The rules that are built in to ESLint. - * @property {Object} [resolver=ModuleResolver] The module resolver object. - * @property {string} eslintAllPath The path to the definitions for eslint:all. - * @property {Function} getEslintAllConfig Returns the config data for eslint:all. - * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. - * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended. - */ - -/** - * @typedef {Object} CascadingConfigArrayFactoryInternalSlots - * @property {ConfigArray} baseConfigArray The config array of `baseConfig` option. - * @property {ConfigData} baseConfigData The config data of `baseConfig` option. This is used to reset `baseConfigArray`. - * @property {ConfigArray} cliConfigArray The config array of CLI options. - * @property {ConfigData} cliConfigData The config data of CLI options. This is used to reset `cliConfigArray`. - * @property {ConfigArrayFactory} configArrayFactory The factory for config arrays. - * @property {Map} configCache The cache from directory paths to config arrays. - * @property {string} cwd The base directory to start lookup. - * @property {WeakMap} finalizeCache The cache from config arrays to finalized config arrays. - * @property {string} [ignorePath] The path to the alternative file of `.eslintignore`. - * @property {string[]|null} rulePaths The value of `--rulesdir` option. This is used to reset `baseConfigArray`. - * @property {string|null} specificConfigPath The value of `--config` option. This is used to reset `cliConfigArray`. - * @property {boolean} useEslintrc if `false` then it doesn't load config files. - * @property {Function} loadRules The function to use to load rules. - * @property {Map} builtInRules The rules that are built in to ESLint. - * @property {Object} [resolver=ModuleResolver] The module resolver object. - * @property {string} eslintAllPath The path to the definitions for eslint:all. - * @property {Function} getEslintAllConfig Returns the config data for eslint:all. - * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. - * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended. - */ - -/** @type {WeakMap} */ -const internalSlotsMap = new WeakMap(); - -/** - * Create the config array from `baseConfig` and `rulePaths`. - * @param {CascadingConfigArrayFactoryInternalSlots} slots The slots. - * @returns {ConfigArray} The config array of the base configs. - */ -function createBaseConfigArray({ - configArrayFactory, - baseConfigData, - rulePaths, - cwd, - loadRules -}) { - const baseConfigArray = configArrayFactory.create( - baseConfigData, - { name: "BaseConfig" } - ); - - /* - * Create the config array element for the default ignore patterns. - * This element has `ignorePattern` property that ignores the default - * patterns in the current working directory. - */ - baseConfigArray.unshift(configArrayFactory.create( - { ignorePatterns: IgnorePattern.DefaultPatterns }, - { name: "DefaultIgnorePattern" } - )[0]); - - /* - * Load rules `--rulesdir` option as a pseudo plugin. - * Use a pseudo plugin to define rules of `--rulesdir`, so we can validate - * the rule's options with only information in the config array. - */ - if (rulePaths && rulePaths.length > 0) { - baseConfigArray.push({ - type: "config", - name: "--rulesdir", - filePath: "", - plugins: { - "": new ConfigDependency({ - definition: { - rules: rulePaths.reduce( - (map, rulesPath) => Object.assign( - map, - loadRules(rulesPath, cwd) - ), - {} - ) - }, - filePath: "", - id: "", - importerName: "--rulesdir", - importerPath: "" - }) - } - }); - } - - return baseConfigArray; -} - -/** - * Create the config array from CLI options. - * @param {CascadingConfigArrayFactoryInternalSlots} slots The slots. - * @returns {ConfigArray} The config array of the base configs. - */ -function createCLIConfigArray({ - cliConfigData, - configArrayFactory, - cwd, - ignorePath, - specificConfigPath -}) { - const cliConfigArray = configArrayFactory.create( - cliConfigData, - { name: "CLIOptions" } - ); - - cliConfigArray.unshift( - ...(ignorePath - ? configArrayFactory.loadESLintIgnore(ignorePath) - : configArrayFactory.loadDefaultESLintIgnore()) - ); - - if (specificConfigPath) { - cliConfigArray.unshift( - ...configArrayFactory.loadFile( - specificConfigPath, - { name: "--config", basePath: cwd } - ) - ); - } - - return cliConfigArray; -} - -/** - * The error type when there are files matched by a glob, but all of them have been ignored. - */ -class ConfigurationNotFoundError extends Error { - - // eslint-disable-next-line jsdoc/require-description - /** - * @param {string} directoryPath The directory path. - */ - constructor(directoryPath) { - super(`No ESLint configuration found in ${directoryPath}.`); - this.messageTemplate = "no-config-found"; - this.messageData = { directoryPath }; - } -} - -/** - * This class provides the functionality that enumerates every file which is - * matched by given glob patterns and that configuration. - */ -class CascadingConfigArrayFactory { - - /** - * Initialize this enumerator. - * @param {CascadingConfigArrayFactoryOptions} options The options. - */ - constructor({ - additionalPluginPool = new Map(), - baseConfig: baseConfigData = null, - cliConfig: cliConfigData = null, - cwd = process.cwd(), - ignorePath, - resolvePluginsRelativeTo, - rulePaths = [], - specificConfigPath = null, - useEslintrc = true, - builtInRules = new Map(), - loadRules, - resolver, - eslintRecommendedPath, - getEslintRecommendedConfig, - eslintAllPath, - getEslintAllConfig - } = {}) { - const configArrayFactory = new ConfigArrayFactory({ - additionalPluginPool, - cwd, - resolvePluginsRelativeTo, - builtInRules, - resolver, - eslintRecommendedPath, - getEslintRecommendedConfig, - eslintAllPath, - getEslintAllConfig - }); - - internalSlotsMap.set(this, { - baseConfigArray: createBaseConfigArray({ - baseConfigData, - configArrayFactory, - cwd, - rulePaths, - loadRules - }), - baseConfigData, - cliConfigArray: createCLIConfigArray({ - cliConfigData, - configArrayFactory, - cwd, - ignorePath, - specificConfigPath - }), - cliConfigData, - configArrayFactory, - configCache: new Map(), - cwd, - finalizeCache: new WeakMap(), - ignorePath, - rulePaths, - specificConfigPath, - useEslintrc, - builtInRules, - loadRules - }); - } - - /** - * The path to the current working directory. - * This is used by tests. - * @type {string} - */ - get cwd() { - const { cwd } = internalSlotsMap.get(this); - - return cwd; - } - - /** - * Get the config array of a given file. - * If `filePath` was not given, it returns the config which contains only - * `baseConfigData` and `cliConfigData`. - * @param {string} [filePath] The file path to a file. - * @param {Object} [options] The options. - * @param {boolean} [options.ignoreNotFoundError] If `true` then it doesn't throw `ConfigurationNotFoundError`. - * @returns {ConfigArray} The config array of the file. - */ - getConfigArrayForFile(filePath, { ignoreNotFoundError = false } = {}) { - const { - baseConfigArray, - cliConfigArray, - cwd - } = internalSlotsMap.get(this); - - if (!filePath) { - return new ConfigArray(...baseConfigArray, ...cliConfigArray); - } - - const directoryPath = path__default["default"].dirname(path__default["default"].resolve(cwd, filePath)); - - debug$1(`Load config files for ${directoryPath}.`); - - return this._finalizeConfigArray( - this._loadConfigInAncestors(directoryPath), - directoryPath, - ignoreNotFoundError - ); - } - - /** - * Set the config data to override all configs. - * Require to call `clearCache()` method after this method is called. - * @param {ConfigData} configData The config data to override all configs. - * @returns {void} - */ - setOverrideConfig(configData) { - const slots = internalSlotsMap.get(this); - - slots.cliConfigData = configData; - } - - /** - * Clear config cache. - * @returns {void} - */ - clearCache() { - const slots = internalSlotsMap.get(this); - - slots.baseConfigArray = createBaseConfigArray(slots); - slots.cliConfigArray = createCLIConfigArray(slots); - slots.configCache.clear(); - } - - /** - * Load and normalize config files from the ancestor directories. - * @param {string} directoryPath The path to a leaf directory. - * @param {boolean} configsExistInSubdirs `true` if configurations exist in subdirectories. - * @returns {ConfigArray} The loaded config. - * @private - */ - _loadConfigInAncestors(directoryPath, configsExistInSubdirs = false) { - const { - baseConfigArray, - configArrayFactory, - configCache, - cwd, - useEslintrc - } = internalSlotsMap.get(this); - - if (!useEslintrc) { - return baseConfigArray; - } - - let configArray = configCache.get(directoryPath); - - // Hit cache. - if (configArray) { - debug$1(`Cache hit: ${directoryPath}.`); - return configArray; - } - debug$1(`No cache found: ${directoryPath}.`); - - const homePath = os__default["default"].homedir(); - - // Consider this is root. - if (directoryPath === homePath && cwd !== homePath) { - debug$1("Stop traversing because of considered root."); - if (configsExistInSubdirs) { - const filePath = ConfigArrayFactory.getPathToConfigFileInDirectory(directoryPath); - - if (filePath) { - emitDeprecationWarning( - filePath, - "ESLINT_PERSONAL_CONFIG_SUPPRESS" - ); - } - } - return this._cacheConfig(directoryPath, baseConfigArray); - } - - // Load the config on this directory. - try { - configArray = configArrayFactory.loadInDirectory(directoryPath); - } catch (error) { - /* istanbul ignore next */ - if (error.code === "EACCES") { - debug$1("Stop traversing because of 'EACCES' error."); - return this._cacheConfig(directoryPath, baseConfigArray); - } - throw error; - } - - if (configArray.length > 0 && configArray.isRoot()) { - debug$1("Stop traversing because of 'root:true'."); - configArray.unshift(...baseConfigArray); - return this._cacheConfig(directoryPath, configArray); - } - - // Load from the ancestors and merge it. - const parentPath = path__default["default"].dirname(directoryPath); - const parentConfigArray = parentPath && parentPath !== directoryPath - ? this._loadConfigInAncestors( - parentPath, - configsExistInSubdirs || configArray.length > 0 - ) - : baseConfigArray; - - if (configArray.length > 0) { - configArray.unshift(...parentConfigArray); - } else { - configArray = parentConfigArray; - } - - // Cache and return. - return this._cacheConfig(directoryPath, configArray); - } - - /** - * Freeze and cache a given config. - * @param {string} directoryPath The path to a directory as a cache key. - * @param {ConfigArray} configArray The config array as a cache value. - * @returns {ConfigArray} The `configArray` (frozen). - */ - _cacheConfig(directoryPath, configArray) { - const { configCache } = internalSlotsMap.get(this); - - Object.freeze(configArray); - configCache.set(directoryPath, configArray); - - return configArray; - } - - /** - * Finalize a given config array. - * Concatenate `--config` and other CLI options. - * @param {ConfigArray} configArray The parent config array. - * @param {string} directoryPath The path to the leaf directory to find config files. - * @param {boolean} ignoreNotFoundError If `true` then it doesn't throw `ConfigurationNotFoundError`. - * @returns {ConfigArray} The loaded config. - * @private - */ - _finalizeConfigArray(configArray, directoryPath, ignoreNotFoundError) { - const { - cliConfigArray, - configArrayFactory, - finalizeCache, - useEslintrc, - builtInRules - } = internalSlotsMap.get(this); - - let finalConfigArray = finalizeCache.get(configArray); - - if (!finalConfigArray) { - finalConfigArray = configArray; - - // Load the personal config if there are no regular config files. - if ( - useEslintrc && - configArray.every(c => !c.filePath) && - cliConfigArray.every(c => !c.filePath) // `--config` option can be a file. - ) { - const homePath = os__default["default"].homedir(); - - debug$1("Loading the config file of the home directory:", homePath); - - const personalConfigArray = configArrayFactory.loadInDirectory( - homePath, - { name: "PersonalConfig" } - ); - - if ( - personalConfigArray.length > 0 && - !directoryPath.startsWith(homePath) - ) { - const lastElement = - personalConfigArray[personalConfigArray.length - 1]; - - emitDeprecationWarning( - lastElement.filePath, - "ESLINT_PERSONAL_CONFIG_LOAD" - ); - } - - finalConfigArray = finalConfigArray.concat(personalConfigArray); - } - - // Apply CLI options. - if (cliConfigArray.length > 0) { - finalConfigArray = finalConfigArray.concat(cliConfigArray); - } - - // Validate rule settings and environments. - const validator = new ConfigValidator({ - builtInRules - }); - - validator.validateConfigArray(finalConfigArray); - - // Cache it. - Object.freeze(finalConfigArray); - finalizeCache.set(configArray, finalConfigArray); - - debug$1( - "Configuration was determined: %o on %s", - finalConfigArray, - directoryPath - ); - } - - // At least one element (the default ignore patterns) exists. - if (!ignoreNotFoundError && useEslintrc && finalConfigArray.length <= 1) { - throw new ConfigurationNotFoundError(directoryPath); - } - - return finalConfigArray; - } -} - -/** - * @fileoverview Compatibility class for flat config. - * @author Nicholas C. Zakas - */ - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -/** @typedef {import("../../shared/types").Environment} Environment */ -/** @typedef {import("../../shared/types").Processor} Processor */ - -const debug = debugOrig__default["default"]("eslintrc:flat-compat"); -const cafactory = Symbol("cafactory"); - -/** - * Translates an ESLintRC-style config object into a flag-config-style config - * object. - * @param {Object} eslintrcConfig An ESLintRC-style config object. - * @param {Object} options Options to help translate the config. - * @param {string} options.resolveConfigRelativeTo To the directory to resolve - * configs from. - * @param {string} options.resolvePluginsRelativeTo The directory to resolve - * plugins from. - * @param {ReadOnlyMap} options.pluginEnvironments A map of plugin environment - * names to objects. - * @param {ReadOnlyMap} options.pluginProcessors A map of plugin processor - * names to objects. - * @returns {Object} A flag-config-style config object. - */ -function translateESLintRC(eslintrcConfig, { - resolveConfigRelativeTo, - resolvePluginsRelativeTo, - pluginEnvironments, - pluginProcessors -}) { - - const flatConfig = {}; - const configs = []; - const languageOptions = {}; - const linterOptions = {}; - const keysToCopy = ["settings", "rules", "processor"]; - const languageOptionsKeysToCopy = ["globals", "parser", "parserOptions"]; - const linterOptionsKeysToCopy = ["noInlineConfig", "reportUnusedDisableDirectives"]; - - // copy over simple translations - for (const key of keysToCopy) { - if (key in eslintrcConfig && typeof eslintrcConfig[key] !== "undefined") { - flatConfig[key] = eslintrcConfig[key]; - } - } - - // copy over languageOptions - for (const key of languageOptionsKeysToCopy) { - if (key in eslintrcConfig && typeof eslintrcConfig[key] !== "undefined") { - - // create the languageOptions key in the flat config - flatConfig.languageOptions = languageOptions; - - if (key === "parser") { - debug(`Resolving parser '${languageOptions[key]}' relative to ${resolveConfigRelativeTo}`); - - if (eslintrcConfig[key].error) { - throw eslintrcConfig[key].error; - } - - languageOptions[key] = eslintrcConfig[key].definition; - continue; - } - - // clone any object values that are in the eslintrc config - if (eslintrcConfig[key] && typeof eslintrcConfig[key] === "object") { - languageOptions[key] = { - ...eslintrcConfig[key] - }; - } else { - languageOptions[key] = eslintrcConfig[key]; - } - } - } - - // copy over linterOptions - for (const key of linterOptionsKeysToCopy) { - if (key in eslintrcConfig && typeof eslintrcConfig[key] !== "undefined") { - flatConfig.linterOptions = linterOptions; - linterOptions[key] = eslintrcConfig[key]; - } - } - - // move ecmaVersion a level up - if (languageOptions.parserOptions) { - - if ("ecmaVersion" in languageOptions.parserOptions) { - languageOptions.ecmaVersion = languageOptions.parserOptions.ecmaVersion; - delete languageOptions.parserOptions.ecmaVersion; - } - - if ("sourceType" in languageOptions.parserOptions) { - languageOptions.sourceType = languageOptions.parserOptions.sourceType; - delete languageOptions.parserOptions.sourceType; - } - - // check to see if we even need parserOptions anymore and remove it if not - if (Object.keys(languageOptions.parserOptions).length === 0) { - delete languageOptions.parserOptions; - } - } - - // overrides - if (eslintrcConfig.criteria) { - flatConfig.files = [absoluteFilePath => eslintrcConfig.criteria.test(absoluteFilePath)]; - } - - // translate plugins - if (eslintrcConfig.plugins && typeof eslintrcConfig.plugins === "object") { - debug(`Translating plugins: ${eslintrcConfig.plugins}`); - - flatConfig.plugins = {}; - - for (const pluginName of Object.keys(eslintrcConfig.plugins)) { - - debug(`Translating plugin: ${pluginName}`); - debug(`Resolving plugin '${pluginName} relative to ${resolvePluginsRelativeTo}`); - - const { original: plugin, error } = eslintrcConfig.plugins[pluginName]; - - if (error) { - throw error; - } - - flatConfig.plugins[pluginName] = plugin; - - // create a config for any processors - if (plugin.processors) { - for (const processorName of Object.keys(plugin.processors)) { - if (processorName.startsWith(".")) { - debug(`Assigning processor: ${pluginName}/${processorName}`); - - configs.unshift({ - files: [`**/*${processorName}`], - processor: pluginProcessors.get(`${pluginName}/${processorName}`) - }); - } - - } - } - } - } - - // translate env - must come after plugins - if (eslintrcConfig.env && typeof eslintrcConfig.env === "object") { - for (const envName of Object.keys(eslintrcConfig.env)) { - - // only add environments that are true - if (eslintrcConfig.env[envName]) { - debug(`Translating environment: ${envName}`); - - if (environments.has(envName)) { - - // built-in environments should be defined first - configs.unshift(...translateESLintRC({ - criteria: eslintrcConfig.criteria, - ...environments.get(envName) - }, { - resolveConfigRelativeTo, - resolvePluginsRelativeTo - })); - } else if (pluginEnvironments.has(envName)) { - - // if the environment comes from a plugin, it should come after the plugin config - configs.push(...translateESLintRC({ - criteria: eslintrcConfig.criteria, - ...pluginEnvironments.get(envName) - }, { - resolveConfigRelativeTo, - resolvePluginsRelativeTo - })); - } - } - } - } - - // only add if there are actually keys in the config - if (Object.keys(flatConfig).length > 0) { - configs.push(flatConfig); - } - - return configs; -} - - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -/** - * A compatibility class for working with configs. - */ -class FlatCompat { - - constructor({ - baseDirectory = process.cwd(), - resolvePluginsRelativeTo = baseDirectory, - recommendedConfig, - allConfig - } = {}) { - this.baseDirectory = baseDirectory; - this.resolvePluginsRelativeTo = resolvePluginsRelativeTo; - this[cafactory] = new ConfigArrayFactory({ - cwd: baseDirectory, - resolvePluginsRelativeTo, - getEslintAllConfig: () => { - - if (!allConfig) { - throw new TypeError("Missing parameter 'allConfig' in FlatCompat constructor."); - } - - return allConfig; - }, - getEslintRecommendedConfig: () => { - - if (!recommendedConfig) { - throw new TypeError("Missing parameter 'recommendedConfig' in FlatCompat constructor."); - } - - return recommendedConfig; - } - }); - } - - /** - * Translates an ESLintRC-style config into a flag-config-style config. - * @param {Object} eslintrcConfig The ESLintRC-style config object. - * @returns {Object} A flag-config-style config object. - */ - config(eslintrcConfig) { - const eslintrcArray = this[cafactory].create(eslintrcConfig, { - basePath: this.baseDirectory - }); - - const flatArray = []; - let hasIgnorePatterns = false; - - eslintrcArray.forEach(configData => { - if (configData.type === "config") { - hasIgnorePatterns = hasIgnorePatterns || configData.ignorePattern; - flatArray.push(...translateESLintRC(configData, { - resolveConfigRelativeTo: path__default["default"].join(this.baseDirectory, "__placeholder.js"), - resolvePluginsRelativeTo: path__default["default"].join(this.resolvePluginsRelativeTo, "__placeholder.js"), - pluginEnvironments: eslintrcArray.pluginEnvironments, - pluginProcessors: eslintrcArray.pluginProcessors - })); - } - }); - - // combine ignorePatterns to emulate ESLintRC behavior better - if (hasIgnorePatterns) { - flatArray.unshift({ - ignores: [filePath => { - - // Compute the final config for this file. - // This filters config array elements by `files`/`excludedFiles` then merges the elements. - const finalConfig = eslintrcArray.extractConfig(filePath); - - // Test the `ignorePattern` properties of the final config. - return Boolean(finalConfig.ignores) && finalConfig.ignores(filePath); - }] - }); - } - - return flatArray; - } - - /** - * Translates the `env` section of an ESLintRC-style config. - * @param {Object} envConfig The `env` section of an ESLintRC config. - * @returns {Object[]} An array of flag-config objects representing the environments. - */ - env(envConfig) { - return this.config({ - env: envConfig - }); - } - - /** - * Translates the `extends` section of an ESLintRC-style config. - * @param {...string} configsToExtend The names of the configs to load. - * @returns {Object[]} An array of flag-config objects representing the config. - */ - extends(...configsToExtend) { - return this.config({ - extends: configsToExtend - }); - } - - /** - * Translates the `plugins` section of an ESLintRC-style config. - * @param {...string} plugins The names of the plugins to load. - * @returns {Object[]} An array of flag-config objects representing the plugins. - */ - plugins(...plugins) { - return this.config({ - plugins - }); - } -} - -/** - * @fileoverview Package exports for @eslint/eslintrc - * @author Nicholas C. Zakas - */ - -//----------------------------------------------------------------------------- -// Exports -//----------------------------------------------------------------------------- - -const Legacy = { - ConfigArray, - createConfigArrayFactoryContext: createContext, - CascadingConfigArrayFactory, - ConfigArrayFactory, - ConfigDependency, - ExtractedConfig, - IgnorePattern, - OverrideTester, - getUsedExtractedConfigs, - environments, - - // shared - ConfigOps, - ConfigValidator, - ModuleResolver, - naming -}; - -exports.FlatCompat = FlatCompat; -exports.Legacy = Legacy; -//# sourceMappingURL=eslintrc.cjs.map diff --git a/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map b/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map deleted file mode 100644 index c4f4fced..00000000 --- a/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"eslintrc.cjs","sources":["../lib/config-array/ignore-pattern.js","../lib/config-array/extracted-config.js","../lib/config-array/config-array.js","../lib/config-array/config-dependency.js","../lib/config-array/override-tester.js","../lib/config-array/index.js","../lib/shared/config-ops.js","../lib/shared/deprecation-warnings.js","../lib/shared/ajv.js","../conf/config-schema.js","../conf/environments.js","../lib/shared/config-validator.js","../lib/shared/naming.js","../lib/shared/relative-module-resolver.js","../lib/config-array-factory.js","../lib/cascading-config-array-factory.js","../lib/flat-compat.js","../lib/index.js"],"sourcesContent":["/**\n * @fileoverview `IgnorePattern` class.\n *\n * `IgnorePattern` class has the set of glob patterns and the base path.\n *\n * It provides two static methods.\n *\n * - `IgnorePattern.createDefaultIgnore(cwd)`\n * Create the default predicate function.\n * - `IgnorePattern.createIgnore(ignorePatterns)`\n * Create the predicate function from multiple `IgnorePattern` objects.\n *\n * It provides two properties and a method.\n *\n * - `patterns`\n * The glob patterns that ignore to lint.\n * - `basePath`\n * The base path of the glob patterns. If absolute paths existed in the\n * glob patterns, those are handled as relative paths to the base path.\n * - `getPatternsRelativeTo(basePath)`\n * Get `patterns` as modified for a given base path. It modifies the\n * absolute paths in the patterns as prepending the difference of two base\n * paths.\n *\n * `ConfigArrayFactory` creates `IgnorePattern` objects when it processes\n * `ignorePatterns` properties.\n *\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport assert from \"assert\";\nimport path from \"path\";\nimport ignore from \"ignore\";\nimport debugOrig from \"debug\";\n\nconst debug = debugOrig(\"eslintrc:ignore-pattern\");\n\n/** @typedef {ReturnType} Ignore */\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n/**\n * Get the path to the common ancestor directory of given paths.\n * @param {string[]} sourcePaths The paths to calculate the common ancestor.\n * @returns {string} The path to the common ancestor directory.\n */\nfunction getCommonAncestorPath(sourcePaths) {\n let result = sourcePaths[0];\n\n for (let i = 1; i < sourcePaths.length; ++i) {\n const a = result;\n const b = sourcePaths[i];\n\n // Set the shorter one (it's the common ancestor if one includes the other).\n result = a.length < b.length ? a : b;\n\n // Set the common ancestor.\n for (let j = 0, lastSepPos = 0; j < a.length && j < b.length; ++j) {\n if (a[j] !== b[j]) {\n result = a.slice(0, lastSepPos);\n break;\n }\n if (a[j] === path.sep) {\n lastSepPos = j;\n }\n }\n }\n\n let resolvedResult = result || path.sep;\n\n // if Windows common ancestor is root of drive must have trailing slash to be absolute.\n if (resolvedResult && resolvedResult.endsWith(\":\") && process.platform === \"win32\") {\n resolvedResult += path.sep;\n }\n return resolvedResult;\n}\n\n/**\n * Make relative path.\n * @param {string} from The source path to get relative path.\n * @param {string} to The destination path to get relative path.\n * @returns {string} The relative path.\n */\nfunction relative(from, to) {\n const relPath = path.relative(from, to);\n\n if (path.sep === \"/\") {\n return relPath;\n }\n return relPath.split(path.sep).join(\"/\");\n}\n\n/**\n * Get the trailing slash if existed.\n * @param {string} filePath The path to check.\n * @returns {string} The trailing slash if existed.\n */\nfunction dirSuffix(filePath) {\n const isDir = (\n filePath.endsWith(path.sep) ||\n (process.platform === \"win32\" && filePath.endsWith(\"/\"))\n );\n\n return isDir ? \"/\" : \"\";\n}\n\nconst DefaultPatterns = Object.freeze([\"/**/node_modules/*\"]);\nconst DotPatterns = Object.freeze([\".*\", \"!.eslintrc.*\", \"!../\"]);\n\n//------------------------------------------------------------------------------\n// Public\n//------------------------------------------------------------------------------\n\nclass IgnorePattern {\n\n /**\n * The default patterns.\n * @type {string[]}\n */\n static get DefaultPatterns() {\n return DefaultPatterns;\n }\n\n /**\n * Create the default predicate function.\n * @param {string} cwd The current working directory.\n * @returns {((filePath:string, dot:boolean) => boolean) & {basePath:string; patterns:string[]}}\n * The preficate function.\n * The first argument is an absolute path that is checked.\n * The second argument is the flag to not ignore dotfiles.\n * If the predicate function returned `true`, it means the path should be ignored.\n */\n static createDefaultIgnore(cwd) {\n return this.createIgnore([new IgnorePattern(DefaultPatterns, cwd)]);\n }\n\n /**\n * Create the predicate function from multiple `IgnorePattern` objects.\n * @param {IgnorePattern[]} ignorePatterns The list of ignore patterns.\n * @returns {((filePath:string, dot?:boolean) => boolean) & {basePath:string; patterns:string[]}}\n * The preficate function.\n * The first argument is an absolute path that is checked.\n * The second argument is the flag to not ignore dotfiles.\n * If the predicate function returned `true`, it means the path should be ignored.\n */\n static createIgnore(ignorePatterns) {\n debug(\"Create with: %o\", ignorePatterns);\n\n const basePath = getCommonAncestorPath(ignorePatterns.map(p => p.basePath));\n const patterns = [].concat(\n ...ignorePatterns.map(p => p.getPatternsRelativeTo(basePath))\n );\n const ig = ignore({ allowRelativePaths: true }).add([...DotPatterns, ...patterns]);\n const dotIg = ignore({ allowRelativePaths: true }).add(patterns);\n\n debug(\" processed: %o\", { basePath, patterns });\n\n return Object.assign(\n (filePath, dot = false) => {\n assert(path.isAbsolute(filePath), \"'filePath' should be an absolute path.\");\n const relPathRaw = relative(basePath, filePath);\n const relPath = relPathRaw && (relPathRaw + dirSuffix(filePath));\n const adoptedIg = dot ? dotIg : ig;\n const result = relPath !== \"\" && adoptedIg.ignores(relPath);\n\n debug(\"Check\", { filePath, dot, relativePath: relPath, result });\n return result;\n },\n { basePath, patterns }\n );\n }\n\n /**\n * Initialize a new `IgnorePattern` instance.\n * @param {string[]} patterns The glob patterns that ignore to lint.\n * @param {string} basePath The base path of `patterns`.\n */\n constructor(patterns, basePath) {\n assert(path.isAbsolute(basePath), \"'basePath' should be an absolute path.\");\n\n /**\n * The glob patterns that ignore to lint.\n * @type {string[]}\n */\n this.patterns = patterns;\n\n /**\n * The base path of `patterns`.\n * @type {string}\n */\n this.basePath = basePath;\n\n /**\n * If `true` then patterns which don't start with `/` will match the paths to the outside of `basePath`. Defaults to `false`.\n *\n * It's set `true` for `.eslintignore`, `package.json`, and `--ignore-path` for backward compatibility.\n * It's `false` as-is for `ignorePatterns` property in config files.\n * @type {boolean}\n */\n this.loose = false;\n }\n\n /**\n * Get `patterns` as modified for a given base path. It modifies the\n * absolute paths in the patterns as prepending the difference of two base\n * paths.\n * @param {string} newBasePath The base path.\n * @returns {string[]} Modifired patterns.\n */\n getPatternsRelativeTo(newBasePath) {\n assert(path.isAbsolute(newBasePath), \"'newBasePath' should be an absolute path.\");\n const { basePath, loose, patterns } = this;\n\n if (newBasePath === basePath) {\n return patterns;\n }\n const prefix = `/${relative(newBasePath, basePath)}`;\n\n return patterns.map(pattern => {\n const negative = pattern.startsWith(\"!\");\n const head = negative ? \"!\" : \"\";\n const body = negative ? pattern.slice(1) : pattern;\n\n if (body.startsWith(\"/\") || body.startsWith(\"../\")) {\n return `${head}${prefix}${body}`;\n }\n return loose ? pattern : `${head}${prefix}/**/${body}`;\n });\n }\n}\n\nexport { IgnorePattern };\n","/**\n * @fileoverview `ExtractedConfig` class.\n *\n * `ExtractedConfig` class expresses a final configuration for a specific file.\n *\n * It provides one method.\n *\n * - `toCompatibleObjectAsConfigFileContent()`\n * Convert this configuration to the compatible object as the content of\n * config files. It converts the loaded parser and plugins to strings.\n * `CLIEngine#getConfigForFile(filePath)` method uses this method.\n *\n * `ConfigArray#extractConfig(filePath)` creates a `ExtractedConfig` instance.\n *\n * @author Toru Nagashima \n */\n\nimport { IgnorePattern } from \"./ignore-pattern.js\";\n\n// For VSCode intellisense\n/** @typedef {import(\"../../shared/types\").ConfigData} ConfigData */\n/** @typedef {import(\"../../shared/types\").GlobalConf} GlobalConf */\n/** @typedef {import(\"../../shared/types\").SeverityConf} SeverityConf */\n/** @typedef {import(\"./config-dependency\").DependentParser} DependentParser */\n/** @typedef {import(\"./config-dependency\").DependentPlugin} DependentPlugin */\n\n/**\n * Check if `xs` starts with `ys`.\n * @template T\n * @param {T[]} xs The array to check.\n * @param {T[]} ys The array that may be the first part of `xs`.\n * @returns {boolean} `true` if `xs` starts with `ys`.\n */\nfunction startsWith(xs, ys) {\n return xs.length >= ys.length && ys.every((y, i) => y === xs[i]);\n}\n\n/**\n * The class for extracted config data.\n */\nclass ExtractedConfig {\n constructor() {\n\n /**\n * The config name what `noInlineConfig` setting came from.\n * @type {string}\n */\n this.configNameOfNoInlineConfig = \"\";\n\n /**\n * Environments.\n * @type {Record}\n */\n this.env = {};\n\n /**\n * Global variables.\n * @type {Record}\n */\n this.globals = {};\n\n /**\n * The glob patterns that ignore to lint.\n * @type {(((filePath:string, dot?:boolean) => boolean) & { basePath:string; patterns:string[] }) | undefined}\n */\n this.ignores = void 0;\n\n /**\n * The flag that disables directive comments.\n * @type {boolean|undefined}\n */\n this.noInlineConfig = void 0;\n\n /**\n * Parser definition.\n * @type {DependentParser|null}\n */\n this.parser = null;\n\n /**\n * Options for the parser.\n * @type {Object}\n */\n this.parserOptions = {};\n\n /**\n * Plugin definitions.\n * @type {Record}\n */\n this.plugins = {};\n\n /**\n * Processor ID.\n * @type {string|null}\n */\n this.processor = null;\n\n /**\n * The flag that reports unused `eslint-disable` directive comments.\n * @type {boolean|undefined}\n */\n this.reportUnusedDisableDirectives = void 0;\n\n /**\n * Rule settings.\n * @type {Record}\n */\n this.rules = {};\n\n /**\n * Shared settings.\n * @type {Object}\n */\n this.settings = {};\n }\n\n /**\n * Convert this config to the compatible object as a config file content.\n * @returns {ConfigData} The converted object.\n */\n toCompatibleObjectAsConfigFileContent() {\n const {\n /* eslint-disable no-unused-vars */\n configNameOfNoInlineConfig: _ignore1,\n processor: _ignore2,\n /* eslint-enable no-unused-vars */\n ignores,\n ...config\n } = this;\n\n config.parser = config.parser && config.parser.filePath;\n config.plugins = Object.keys(config.plugins).filter(Boolean).reverse();\n config.ignorePatterns = ignores ? ignores.patterns : [];\n\n // Strip the default patterns from `ignorePatterns`.\n if (startsWith(config.ignorePatterns, IgnorePattern.DefaultPatterns)) {\n config.ignorePatterns =\n config.ignorePatterns.slice(IgnorePattern.DefaultPatterns.length);\n }\n\n return config;\n }\n}\n\nexport { ExtractedConfig };\n","/**\n * @fileoverview `ConfigArray` class.\n *\n * `ConfigArray` class expresses the full of a configuration. It has the entry\n * config file, base config files that were extended, loaded parsers, and loaded\n * plugins.\n *\n * `ConfigArray` class provides three properties and two methods.\n *\n * - `pluginEnvironments`\n * - `pluginProcessors`\n * - `pluginRules`\n * The `Map` objects that contain the members of all plugins that this\n * config array contains. Those map objects don't have mutation methods.\n * Those keys are the member ID such as `pluginId/memberName`.\n * - `isRoot()`\n * If `true` then this configuration has `root:true` property.\n * - `extractConfig(filePath)`\n * Extract the final configuration for a given file. This means merging\n * every config array element which that `criteria` property matched. The\n * `filePath` argument must be an absolute path.\n *\n * `ConfigArrayFactory` provides the loading logic of config files.\n *\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport { ExtractedConfig } from \"./extracted-config.js\";\nimport { IgnorePattern } from \"./ignore-pattern.js\";\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n// Define types for VSCode IntelliSense.\n/** @typedef {import(\"../../shared/types\").Environment} Environment */\n/** @typedef {import(\"../../shared/types\").GlobalConf} GlobalConf */\n/** @typedef {import(\"../../shared/types\").RuleConf} RuleConf */\n/** @typedef {import(\"../../shared/types\").Rule} Rule */\n/** @typedef {import(\"../../shared/types\").Plugin} Plugin */\n/** @typedef {import(\"../../shared/types\").Processor} Processor */\n/** @typedef {import(\"./config-dependency\").DependentParser} DependentParser */\n/** @typedef {import(\"./config-dependency\").DependentPlugin} DependentPlugin */\n/** @typedef {import(\"./override-tester\")[\"OverrideTester\"]} OverrideTester */\n\n/**\n * @typedef {Object} ConfigArrayElement\n * @property {string} name The name of this config element.\n * @property {string} filePath The path to the source file of this config element.\n * @property {InstanceType|null} criteria The tester for the `files` and `excludedFiles` of this config element.\n * @property {Record|undefined} env The environment settings.\n * @property {Record|undefined} globals The global variable settings.\n * @property {IgnorePattern|undefined} ignorePattern The ignore patterns.\n * @property {boolean|undefined} noInlineConfig The flag that disables directive comments.\n * @property {DependentParser|undefined} parser The parser loader.\n * @property {Object|undefined} parserOptions The parser options.\n * @property {Record|undefined} plugins The plugin loaders.\n * @property {string|undefined} processor The processor name to refer plugin's processor.\n * @property {boolean|undefined} reportUnusedDisableDirectives The flag to report unused `eslint-disable` comments.\n * @property {boolean|undefined} root The flag to express root.\n * @property {Record|undefined} rules The rule settings\n * @property {Object|undefined} settings The shared settings.\n * @property {\"config\" | \"ignore\" | \"implicit-processor\"} type The element type.\n */\n\n/**\n * @typedef {Object} ConfigArrayInternalSlots\n * @property {Map} cache The cache to extract configs.\n * @property {ReadonlyMap|null} envMap The map from environment ID to environment definition.\n * @property {ReadonlyMap|null} processorMap The map from processor ID to environment definition.\n * @property {ReadonlyMap|null} ruleMap The map from rule ID to rule definition.\n */\n\n/** @type {WeakMap} */\nconst internalSlotsMap = new class extends WeakMap {\n get(key) {\n let value = super.get(key);\n\n if (!value) {\n value = {\n cache: new Map(),\n envMap: null,\n processorMap: null,\n ruleMap: null\n };\n super.set(key, value);\n }\n\n return value;\n }\n}();\n\n/**\n * Get the indices which are matched to a given file.\n * @param {ConfigArrayElement[]} elements The elements.\n * @param {string} filePath The path to a target file.\n * @returns {number[]} The indices.\n */\nfunction getMatchedIndices(elements, filePath) {\n const indices = [];\n\n for (let i = elements.length - 1; i >= 0; --i) {\n const element = elements[i];\n\n if (!element.criteria || (filePath && element.criteria.test(filePath))) {\n indices.push(i);\n }\n }\n\n return indices;\n}\n\n/**\n * Check if a value is a non-null object.\n * @param {any} x The value to check.\n * @returns {boolean} `true` if the value is a non-null object.\n */\nfunction isNonNullObject(x) {\n return typeof x === \"object\" && x !== null;\n}\n\n/**\n * Merge two objects.\n *\n * Assign every property values of `y` to `x` if `x` doesn't have the property.\n * If `x`'s property value is an object, it does recursive.\n * @param {Object} target The destination to merge\n * @param {Object|undefined} source The source to merge.\n * @returns {void}\n */\nfunction mergeWithoutOverwrite(target, source) {\n if (!isNonNullObject(source)) {\n return;\n }\n\n for (const key of Object.keys(source)) {\n if (key === \"__proto__\") {\n continue;\n }\n\n if (isNonNullObject(target[key])) {\n mergeWithoutOverwrite(target[key], source[key]);\n } else if (target[key] === void 0) {\n if (isNonNullObject(source[key])) {\n target[key] = Array.isArray(source[key]) ? [] : {};\n mergeWithoutOverwrite(target[key], source[key]);\n } else if (source[key] !== void 0) {\n target[key] = source[key];\n }\n }\n }\n}\n\n/**\n * The error for plugin conflicts.\n */\nclass PluginConflictError extends Error {\n\n /**\n * Initialize this error object.\n * @param {string} pluginId The plugin ID.\n * @param {{filePath:string, importerName:string}[]} plugins The resolved plugins.\n */\n constructor(pluginId, plugins) {\n super(`Plugin \"${pluginId}\" was conflicted between ${plugins.map(p => `\"${p.importerName}\"`).join(\" and \")}.`);\n this.messageTemplate = \"plugin-conflict\";\n this.messageData = { pluginId, plugins };\n }\n}\n\n/**\n * Merge plugins.\n * `target`'s definition is prior to `source`'s.\n * @param {Record} target The destination to merge\n * @param {Record|undefined} source The source to merge.\n * @returns {void}\n */\nfunction mergePlugins(target, source) {\n if (!isNonNullObject(source)) {\n return;\n }\n\n for (const key of Object.keys(source)) {\n if (key === \"__proto__\") {\n continue;\n }\n const targetValue = target[key];\n const sourceValue = source[key];\n\n // Adopt the plugin which was found at first.\n if (targetValue === void 0) {\n if (sourceValue.error) {\n throw sourceValue.error;\n }\n target[key] = sourceValue;\n } else if (sourceValue.filePath !== targetValue.filePath) {\n throw new PluginConflictError(key, [\n {\n filePath: targetValue.filePath,\n importerName: targetValue.importerName\n },\n {\n filePath: sourceValue.filePath,\n importerName: sourceValue.importerName\n }\n ]);\n }\n }\n}\n\n/**\n * Merge rule configs.\n * `target`'s definition is prior to `source`'s.\n * @param {Record} target The destination to merge\n * @param {Record|undefined} source The source to merge.\n * @returns {void}\n */\nfunction mergeRuleConfigs(target, source) {\n if (!isNonNullObject(source)) {\n return;\n }\n\n for (const key of Object.keys(source)) {\n if (key === \"__proto__\") {\n continue;\n }\n const targetDef = target[key];\n const sourceDef = source[key];\n\n // Adopt the rule config which was found at first.\n if (targetDef === void 0) {\n if (Array.isArray(sourceDef)) {\n target[key] = [...sourceDef];\n } else {\n target[key] = [sourceDef];\n }\n\n /*\n * If the first found rule config is severity only and the current rule\n * config has options, merge the severity and the options.\n */\n } else if (\n targetDef.length === 1 &&\n Array.isArray(sourceDef) &&\n sourceDef.length >= 2\n ) {\n targetDef.push(...sourceDef.slice(1));\n }\n }\n}\n\n/**\n * Create the extracted config.\n * @param {ConfigArray} instance The config elements.\n * @param {number[]} indices The indices to use.\n * @returns {ExtractedConfig} The extracted config.\n */\nfunction createConfig(instance, indices) {\n const config = new ExtractedConfig();\n const ignorePatterns = [];\n\n // Merge elements.\n for (const index of indices) {\n const element = instance[index];\n\n // Adopt the parser which was found at first.\n if (!config.parser && element.parser) {\n if (element.parser.error) {\n throw element.parser.error;\n }\n config.parser = element.parser;\n }\n\n // Adopt the processor which was found at first.\n if (!config.processor && element.processor) {\n config.processor = element.processor;\n }\n\n // Adopt the noInlineConfig which was found at first.\n if (config.noInlineConfig === void 0 && element.noInlineConfig !== void 0) {\n config.noInlineConfig = element.noInlineConfig;\n config.configNameOfNoInlineConfig = element.name;\n }\n\n // Adopt the reportUnusedDisableDirectives which was found at first.\n if (config.reportUnusedDisableDirectives === void 0 && element.reportUnusedDisableDirectives !== void 0) {\n config.reportUnusedDisableDirectives = element.reportUnusedDisableDirectives;\n }\n\n // Collect ignorePatterns\n if (element.ignorePattern) {\n ignorePatterns.push(element.ignorePattern);\n }\n\n // Merge others.\n mergeWithoutOverwrite(config.env, element.env);\n mergeWithoutOverwrite(config.globals, element.globals);\n mergeWithoutOverwrite(config.parserOptions, element.parserOptions);\n mergeWithoutOverwrite(config.settings, element.settings);\n mergePlugins(config.plugins, element.plugins);\n mergeRuleConfigs(config.rules, element.rules);\n }\n\n // Create the predicate function for ignore patterns.\n if (ignorePatterns.length > 0) {\n config.ignores = IgnorePattern.createIgnore(ignorePatterns.reverse());\n }\n\n return config;\n}\n\n/**\n * Collect definitions.\n * @template T, U\n * @param {string} pluginId The plugin ID for prefix.\n * @param {Record} defs The definitions to collect.\n * @param {Map} map The map to output.\n * @param {function(T): U} [normalize] The normalize function for each value.\n * @returns {void}\n */\nfunction collect(pluginId, defs, map, normalize) {\n if (defs) {\n const prefix = pluginId && `${pluginId}/`;\n\n for (const [key, value] of Object.entries(defs)) {\n map.set(\n `${prefix}${key}`,\n normalize ? normalize(value) : value\n );\n }\n }\n}\n\n/**\n * Normalize a rule definition.\n * @param {Function|Rule} rule The rule definition to normalize.\n * @returns {Rule} The normalized rule definition.\n */\nfunction normalizePluginRule(rule) {\n return typeof rule === \"function\" ? { create: rule } : rule;\n}\n\n/**\n * Delete the mutation methods from a given map.\n * @param {Map} map The map object to delete.\n * @returns {void}\n */\nfunction deleteMutationMethods(map) {\n Object.defineProperties(map, {\n clear: { configurable: true, value: void 0 },\n delete: { configurable: true, value: void 0 },\n set: { configurable: true, value: void 0 }\n });\n}\n\n/**\n * Create `envMap`, `processorMap`, `ruleMap` with the plugins in the config array.\n * @param {ConfigArrayElement[]} elements The config elements.\n * @param {ConfigArrayInternalSlots} slots The internal slots.\n * @returns {void}\n */\nfunction initPluginMemberMaps(elements, slots) {\n const processed = new Set();\n\n slots.envMap = new Map();\n slots.processorMap = new Map();\n slots.ruleMap = new Map();\n\n for (const element of elements) {\n if (!element.plugins) {\n continue;\n }\n\n for (const [pluginId, value] of Object.entries(element.plugins)) {\n const plugin = value.definition;\n\n if (!plugin || processed.has(pluginId)) {\n continue;\n }\n processed.add(pluginId);\n\n collect(pluginId, plugin.environments, slots.envMap);\n collect(pluginId, plugin.processors, slots.processorMap);\n collect(pluginId, plugin.rules, slots.ruleMap, normalizePluginRule);\n }\n }\n\n deleteMutationMethods(slots.envMap);\n deleteMutationMethods(slots.processorMap);\n deleteMutationMethods(slots.ruleMap);\n}\n\n/**\n * Create `envMap`, `processorMap`, `ruleMap` with the plugins in the config array.\n * @param {ConfigArray} instance The config elements.\n * @returns {ConfigArrayInternalSlots} The extracted config.\n */\nfunction ensurePluginMemberMaps(instance) {\n const slots = internalSlotsMap.get(instance);\n\n if (!slots.ruleMap) {\n initPluginMemberMaps(instance, slots);\n }\n\n return slots;\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/**\n * The Config Array.\n *\n * `ConfigArray` instance contains all settings, parsers, and plugins.\n * You need to call `ConfigArray#extractConfig(filePath)` method in order to\n * extract, merge and get only the config data which is related to an arbitrary\n * file.\n * @extends {Array}\n */\nclass ConfigArray extends Array {\n\n /**\n * Get the plugin environments.\n * The returned map cannot be mutated.\n * @type {ReadonlyMap} The plugin environments.\n */\n get pluginEnvironments() {\n return ensurePluginMemberMaps(this).envMap;\n }\n\n /**\n * Get the plugin processors.\n * The returned map cannot be mutated.\n * @type {ReadonlyMap} The plugin processors.\n */\n get pluginProcessors() {\n return ensurePluginMemberMaps(this).processorMap;\n }\n\n /**\n * Get the plugin rules.\n * The returned map cannot be mutated.\n * @returns {ReadonlyMap} The plugin rules.\n */\n get pluginRules() {\n return ensurePluginMemberMaps(this).ruleMap;\n }\n\n /**\n * Check if this config has `root` flag.\n * @returns {boolean} `true` if this config array is root.\n */\n isRoot() {\n for (let i = this.length - 1; i >= 0; --i) {\n const root = this[i].root;\n\n if (typeof root === \"boolean\") {\n return root;\n }\n }\n return false;\n }\n\n /**\n * Extract the config data which is related to a given file.\n * @param {string} filePath The absolute path to the target file.\n * @returns {ExtractedConfig} The extracted config data.\n */\n extractConfig(filePath) {\n const { cache } = internalSlotsMap.get(this);\n const indices = getMatchedIndices(this, filePath);\n const cacheKey = indices.join(\",\");\n\n if (!cache.has(cacheKey)) {\n cache.set(cacheKey, createConfig(this, indices));\n }\n\n return cache.get(cacheKey);\n }\n\n /**\n * Check if a given path is an additional lint target.\n * @param {string} filePath The absolute path to the target file.\n * @returns {boolean} `true` if the file is an additional lint target.\n */\n isAdditionalTargetPath(filePath) {\n for (const { criteria, type } of this) {\n if (\n type === \"config\" &&\n criteria &&\n !criteria.endsWithWildcard &&\n criteria.test(filePath)\n ) {\n return true;\n }\n }\n return false;\n }\n}\n\n/**\n * Get the used extracted configs.\n * CLIEngine will use this method to collect used deprecated rules.\n * @param {ConfigArray} instance The config array object to get.\n * @returns {ExtractedConfig[]} The used extracted configs.\n * @private\n */\nfunction getUsedExtractedConfigs(instance) {\n const { cache } = internalSlotsMap.get(instance);\n\n return Array.from(cache.values());\n}\n\n\nexport {\n ConfigArray,\n getUsedExtractedConfigs\n};\n","/**\n * @fileoverview `ConfigDependency` class.\n *\n * `ConfigDependency` class expresses a loaded parser or plugin.\n *\n * If the parser or plugin was loaded successfully, it has `definition` property\n * and `filePath` property. Otherwise, it has `error` property.\n *\n * When `JSON.stringify()` converted a `ConfigDependency` object to a JSON, it\n * omits `definition` property.\n *\n * `ConfigArrayFactory` creates `ConfigDependency` objects when it loads parsers\n * or plugins.\n *\n * @author Toru Nagashima \n */\n\nimport util from \"util\";\n\n/**\n * The class is to store parsers or plugins.\n * This class hides the loaded object from `JSON.stringify()` and `console.log`.\n * @template T\n */\nclass ConfigDependency {\n\n /**\n * Initialize this instance.\n * @param {Object} data The dependency data.\n * @param {T} [data.definition] The dependency if the loading succeeded.\n * @param {T} [data.original] The original, non-normalized dependency if the loading succeeded.\n * @param {Error} [data.error] The error object if the loading failed.\n * @param {string} [data.filePath] The actual path to the dependency if the loading succeeded.\n * @param {string} data.id The ID of this dependency.\n * @param {string} data.importerName The name of the config file which loads this dependency.\n * @param {string} data.importerPath The path to the config file which loads this dependency.\n */\n constructor({\n definition = null,\n original = null,\n error = null,\n filePath = null,\n id,\n importerName,\n importerPath\n }) {\n\n /**\n * The loaded dependency if the loading succeeded.\n * @type {T|null}\n */\n this.definition = definition;\n\n /**\n * The original dependency as loaded directly from disk if the loading succeeded.\n * @type {T|null}\n */\n this.original = original;\n\n /**\n * The error object if the loading failed.\n * @type {Error|null}\n */\n this.error = error;\n\n /**\n * The loaded dependency if the loading succeeded.\n * @type {string|null}\n */\n this.filePath = filePath;\n\n /**\n * The ID of this dependency.\n * @type {string}\n */\n this.id = id;\n\n /**\n * The name of the config file which loads this dependency.\n * @type {string}\n */\n this.importerName = importerName;\n\n /**\n * The path to the config file which loads this dependency.\n * @type {string}\n */\n this.importerPath = importerPath;\n }\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @returns {Object} a JSON compatible object.\n */\n toJSON() {\n const obj = this[util.inspect.custom]();\n\n // Display `error.message` (`Error#message` is unenumerable).\n if (obj.error instanceof Error) {\n obj.error = { ...obj.error, message: obj.error.message };\n }\n\n return obj;\n }\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @returns {Object} an object to display by `console.log()`.\n */\n [util.inspect.custom]() {\n const {\n definition: _ignore1, // eslint-disable-line no-unused-vars\n original: _ignore2, // eslint-disable-line no-unused-vars\n ...obj\n } = this;\n\n return obj;\n }\n}\n\n/** @typedef {ConfigDependency} DependentParser */\n/** @typedef {ConfigDependency} DependentPlugin */\n\nexport { ConfigDependency };\n","/**\n * @fileoverview `OverrideTester` class.\n *\n * `OverrideTester` class handles `files` property and `excludedFiles` property\n * of `overrides` config.\n *\n * It provides one method.\n *\n * - `test(filePath)`\n * Test if a file path matches the pair of `files` property and\n * `excludedFiles` property. The `filePath` argument must be an absolute\n * path.\n *\n * `ConfigArrayFactory` creates `OverrideTester` objects when it processes\n * `overrides` properties.\n *\n * @author Toru Nagashima \n */\n\nimport assert from \"assert\";\nimport path from \"path\";\nimport util from \"util\";\nimport minimatch from \"minimatch\";\n\nconst { Minimatch } = minimatch;\n\nconst minimatchOpts = { dot: true, matchBase: true };\n\n/**\n * @typedef {Object} Pattern\n * @property {InstanceType[] | null} includes The positive matchers.\n * @property {InstanceType[] | null} excludes The negative matchers.\n */\n\n/**\n * Normalize a given pattern to an array.\n * @param {string|string[]|undefined} patterns A glob pattern or an array of glob patterns.\n * @returns {string[]|null} Normalized patterns.\n * @private\n */\nfunction normalizePatterns(patterns) {\n if (Array.isArray(patterns)) {\n return patterns.filter(Boolean);\n }\n if (typeof patterns === \"string\" && patterns) {\n return [patterns];\n }\n return [];\n}\n\n/**\n * Create the matchers of given patterns.\n * @param {string[]} patterns The patterns.\n * @returns {InstanceType[] | null} The matchers.\n */\nfunction toMatcher(patterns) {\n if (patterns.length === 0) {\n return null;\n }\n return patterns.map(pattern => {\n if (/^\\.[/\\\\]/u.test(pattern)) {\n return new Minimatch(\n pattern.slice(2),\n\n // `./*.js` should not match with `subdir/foo.js`\n { ...minimatchOpts, matchBase: false }\n );\n }\n return new Minimatch(pattern, minimatchOpts);\n });\n}\n\n/**\n * Convert a given matcher to string.\n * @param {Pattern} matchers The matchers.\n * @returns {string} The string expression of the matcher.\n */\nfunction patternToJson({ includes, excludes }) {\n return {\n includes: includes && includes.map(m => m.pattern),\n excludes: excludes && excludes.map(m => m.pattern)\n };\n}\n\n/**\n * The class to test given paths are matched by the patterns.\n */\nclass OverrideTester {\n\n /**\n * Create a tester with given criteria.\n * If there are no criteria, returns `null`.\n * @param {string|string[]} files The glob patterns for included files.\n * @param {string|string[]} excludedFiles The glob patterns for excluded files.\n * @param {string} basePath The path to the base directory to test paths.\n * @returns {OverrideTester|null} The created instance or `null`.\n */\n static create(files, excludedFiles, basePath) {\n const includePatterns = normalizePatterns(files);\n const excludePatterns = normalizePatterns(excludedFiles);\n let endsWithWildcard = false;\n\n if (includePatterns.length === 0) {\n return null;\n }\n\n // Rejects absolute paths or relative paths to parents.\n for (const pattern of includePatterns) {\n if (path.isAbsolute(pattern) || pattern.includes(\"..\")) {\n throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`);\n }\n if (pattern.endsWith(\"*\")) {\n endsWithWildcard = true;\n }\n }\n for (const pattern of excludePatterns) {\n if (path.isAbsolute(pattern) || pattern.includes(\"..\")) {\n throw new Error(`Invalid override pattern (expected relative path not containing '..'): ${pattern}`);\n }\n }\n\n const includes = toMatcher(includePatterns);\n const excludes = toMatcher(excludePatterns);\n\n return new OverrideTester(\n [{ includes, excludes }],\n basePath,\n endsWithWildcard\n );\n }\n\n /**\n * Combine two testers by logical and.\n * If either of the testers was `null`, returns the other tester.\n * The `basePath` property of the two must be the same value.\n * @param {OverrideTester|null} a A tester.\n * @param {OverrideTester|null} b Another tester.\n * @returns {OverrideTester|null} Combined tester.\n */\n static and(a, b) {\n if (!b) {\n return a && new OverrideTester(\n a.patterns,\n a.basePath,\n a.endsWithWildcard\n );\n }\n if (!a) {\n return new OverrideTester(\n b.patterns,\n b.basePath,\n b.endsWithWildcard\n );\n }\n\n assert.strictEqual(a.basePath, b.basePath);\n return new OverrideTester(\n a.patterns.concat(b.patterns),\n a.basePath,\n a.endsWithWildcard || b.endsWithWildcard\n );\n }\n\n /**\n * Initialize this instance.\n * @param {Pattern[]} patterns The matchers.\n * @param {string} basePath The base path.\n * @param {boolean} endsWithWildcard If `true` then a pattern ends with `*`.\n */\n constructor(patterns, basePath, endsWithWildcard = false) {\n\n /** @type {Pattern[]} */\n this.patterns = patterns;\n\n /** @type {string} */\n this.basePath = basePath;\n\n /** @type {boolean} */\n this.endsWithWildcard = endsWithWildcard;\n }\n\n /**\n * Test if a given path is matched or not.\n * @param {string} filePath The absolute path to the target file.\n * @returns {boolean} `true` if the path was matched.\n */\n test(filePath) {\n if (typeof filePath !== \"string\" || !path.isAbsolute(filePath)) {\n throw new Error(`'filePath' should be an absolute path, but got ${filePath}.`);\n }\n const relativePath = path.relative(this.basePath, filePath);\n\n return this.patterns.every(({ includes, excludes }) => (\n (!includes || includes.some(m => m.match(relativePath))) &&\n (!excludes || !excludes.some(m => m.match(relativePath)))\n ));\n }\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @returns {Object} a JSON compatible object.\n */\n toJSON() {\n if (this.patterns.length === 1) {\n return {\n ...patternToJson(this.patterns[0]),\n basePath: this.basePath\n };\n }\n return {\n AND: this.patterns.map(patternToJson),\n basePath: this.basePath\n };\n }\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @returns {Object} an object to display by `console.log()`.\n */\n [util.inspect.custom]() {\n return this.toJSON();\n }\n}\n\nexport { OverrideTester };\n","/**\n * @fileoverview `ConfigArray` class.\n * @author Toru Nagashima \n */\n\nimport { ConfigArray, getUsedExtractedConfigs } from \"./config-array.js\";\nimport { ConfigDependency } from \"./config-dependency.js\";\nimport { ExtractedConfig } from \"./extracted-config.js\";\nimport { IgnorePattern } from \"./ignore-pattern.js\";\nimport { OverrideTester } from \"./override-tester.js\";\n\nexport {\n ConfigArray,\n ConfigDependency,\n ExtractedConfig,\n IgnorePattern,\n OverrideTester,\n getUsedExtractedConfigs\n};\n","/**\n * @fileoverview Config file operations. This file must be usable in the browser,\n * so no Node-specific code can be here.\n * @author Nicholas C. Zakas\n */\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\n\nconst RULE_SEVERITY_STRINGS = [\"off\", \"warn\", \"error\"],\n RULE_SEVERITY = RULE_SEVERITY_STRINGS.reduce((map, value, index) => {\n map[value] = index;\n return map;\n }, {}),\n VALID_SEVERITIES = [0, 1, 2, \"off\", \"warn\", \"error\"];\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/**\n * Normalizes the severity value of a rule's configuration to a number\n * @param {(number|string|[number, ...*]|[string, ...*])} ruleConfig A rule's configuration value, generally\n * received from the user. A valid config value is either 0, 1, 2, the string \"off\" (treated the same as 0),\n * the string \"warn\" (treated the same as 1), the string \"error\" (treated the same as 2), or an array\n * whose first element is one of the above values. Strings are matched case-insensitively.\n * @returns {(0|1|2)} The numeric severity value if the config value was valid, otherwise 0.\n */\nfunction getRuleSeverity(ruleConfig) {\n const severityValue = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;\n\n if (severityValue === 0 || severityValue === 1 || severityValue === 2) {\n return severityValue;\n }\n\n if (typeof severityValue === \"string\") {\n return RULE_SEVERITY[severityValue.toLowerCase()] || 0;\n }\n\n return 0;\n}\n\n/**\n * Converts old-style severity settings (0, 1, 2) into new-style\n * severity settings (off, warn, error) for all rules. Assumption is that severity\n * values have already been validated as correct.\n * @param {Object} config The config object to normalize.\n * @returns {void}\n */\nfunction normalizeToStrings(config) {\n\n if (config.rules) {\n Object.keys(config.rules).forEach(ruleId => {\n const ruleConfig = config.rules[ruleId];\n\n if (typeof ruleConfig === \"number\") {\n config.rules[ruleId] = RULE_SEVERITY_STRINGS[ruleConfig] || RULE_SEVERITY_STRINGS[0];\n } else if (Array.isArray(ruleConfig) && typeof ruleConfig[0] === \"number\") {\n ruleConfig[0] = RULE_SEVERITY_STRINGS[ruleConfig[0]] || RULE_SEVERITY_STRINGS[0];\n }\n });\n }\n}\n\n/**\n * Determines if the severity for the given rule configuration represents an error.\n * @param {int|string|Array} ruleConfig The configuration for an individual rule.\n * @returns {boolean} True if the rule represents an error, false if not.\n */\nfunction isErrorSeverity(ruleConfig) {\n return getRuleSeverity(ruleConfig) === 2;\n}\n\n/**\n * Checks whether a given config has valid severity or not.\n * @param {number|string|Array} ruleConfig The configuration for an individual rule.\n * @returns {boolean} `true` if the configuration has valid severity.\n */\nfunction isValidSeverity(ruleConfig) {\n let severity = Array.isArray(ruleConfig) ? ruleConfig[0] : ruleConfig;\n\n if (typeof severity === \"string\") {\n severity = severity.toLowerCase();\n }\n return VALID_SEVERITIES.indexOf(severity) !== -1;\n}\n\n/**\n * Checks whether every rule of a given config has valid severity or not.\n * @param {Object} config The configuration for rules.\n * @returns {boolean} `true` if the configuration has valid severity.\n */\nfunction isEverySeverityValid(config) {\n return Object.keys(config).every(ruleId => isValidSeverity(config[ruleId]));\n}\n\n/**\n * Normalizes a value for a global in a config\n * @param {(boolean|string|null)} configuredValue The value given for a global in configuration or in\n * a global directive comment\n * @returns {(\"readable\"|\"writeable\"|\"off\")} The value normalized as a string\n * @throws Error if global value is invalid\n */\nfunction normalizeConfigGlobal(configuredValue) {\n switch (configuredValue) {\n case \"off\":\n return \"off\";\n\n case true:\n case \"true\":\n case \"writeable\":\n case \"writable\":\n return \"writable\";\n\n case null:\n case false:\n case \"false\":\n case \"readable\":\n case \"readonly\":\n return \"readonly\";\n\n default:\n throw new Error(`'${configuredValue}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`);\n }\n}\n\nexport {\n getRuleSeverity,\n normalizeToStrings,\n isErrorSeverity,\n isValidSeverity,\n isEverySeverityValid,\n normalizeConfigGlobal\n};\n","/**\n * @fileoverview Provide the function that emits deprecation warnings.\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport path from \"path\";\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\n\n// Defitions for deprecation warnings.\nconst deprecationWarningMessages = {\n ESLINT_LEGACY_ECMAFEATURES:\n \"The 'ecmaFeatures' config file property is deprecated and has no effect.\",\n ESLINT_PERSONAL_CONFIG_LOAD:\n \"'~/.eslintrc.*' config files have been deprecated. \" +\n \"Please use a config file per project or the '--config' option.\",\n ESLINT_PERSONAL_CONFIG_SUPPRESS:\n \"'~/.eslintrc.*' config files have been deprecated. \" +\n \"Please remove it or add 'root:true' to the config files in your \" +\n \"projects in order to avoid loading '~/.eslintrc.*' accidentally.\"\n};\n\nconst sourceFileErrorCache = new Set();\n\n/**\n * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted\n * for each unique file path, but repeated invocations with the same file path have no effect.\n * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active.\n * @param {string} source The name of the configuration source to report the warning for.\n * @param {string} errorCode The warning message to show.\n * @returns {void}\n */\nfunction emitDeprecationWarning(source, errorCode) {\n const cacheKey = JSON.stringify({ source, errorCode });\n\n if (sourceFileErrorCache.has(cacheKey)) {\n return;\n }\n sourceFileErrorCache.add(cacheKey);\n\n const rel = path.relative(process.cwd(), source);\n const message = deprecationWarningMessages[errorCode];\n\n process.emitWarning(\n `${message} (found in \"${rel}\")`,\n \"DeprecationWarning\",\n errorCode\n );\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport {\n emitDeprecationWarning\n};\n","/**\n * @fileoverview The instance of Ajv validator.\n * @author Evgeny Poberezkin\n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport Ajv from \"ajv\";\n\n//-----------------------------------------------------------------------------\n// Helpers\n//-----------------------------------------------------------------------------\n\n/*\n * Copied from ajv/lib/refs/json-schema-draft-04.json\n * The MIT License (MIT)\n * Copyright (c) 2015-2017 Evgeny Poberezkin\n */\nconst metaSchema = {\n id: \"http://json-schema.org/draft-04/schema#\",\n $schema: \"http://json-schema.org/draft-04/schema#\",\n description: \"Core schema meta-schema\",\n definitions: {\n schemaArray: {\n type: \"array\",\n minItems: 1,\n items: { $ref: \"#\" }\n },\n positiveInteger: {\n type: \"integer\",\n minimum: 0\n },\n positiveIntegerDefault0: {\n allOf: [{ $ref: \"#/definitions/positiveInteger\" }, { default: 0 }]\n },\n simpleTypes: {\n enum: [\"array\", \"boolean\", \"integer\", \"null\", \"number\", \"object\", \"string\"]\n },\n stringArray: {\n type: \"array\",\n items: { type: \"string\" },\n minItems: 1,\n uniqueItems: true\n }\n },\n type: \"object\",\n properties: {\n id: {\n type: \"string\"\n },\n $schema: {\n type: \"string\"\n },\n title: {\n type: \"string\"\n },\n description: {\n type: \"string\"\n },\n default: { },\n multipleOf: {\n type: \"number\",\n minimum: 0,\n exclusiveMinimum: true\n },\n maximum: {\n type: \"number\"\n },\n exclusiveMaximum: {\n type: \"boolean\",\n default: false\n },\n minimum: {\n type: \"number\"\n },\n exclusiveMinimum: {\n type: \"boolean\",\n default: false\n },\n maxLength: { $ref: \"#/definitions/positiveInteger\" },\n minLength: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n pattern: {\n type: \"string\",\n format: \"regex\"\n },\n additionalItems: {\n anyOf: [\n { type: \"boolean\" },\n { $ref: \"#\" }\n ],\n default: { }\n },\n items: {\n anyOf: [\n { $ref: \"#\" },\n { $ref: \"#/definitions/schemaArray\" }\n ],\n default: { }\n },\n maxItems: { $ref: \"#/definitions/positiveInteger\" },\n minItems: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n uniqueItems: {\n type: \"boolean\",\n default: false\n },\n maxProperties: { $ref: \"#/definitions/positiveInteger\" },\n minProperties: { $ref: \"#/definitions/positiveIntegerDefault0\" },\n required: { $ref: \"#/definitions/stringArray\" },\n additionalProperties: {\n anyOf: [\n { type: \"boolean\" },\n { $ref: \"#\" }\n ],\n default: { }\n },\n definitions: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n properties: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n patternProperties: {\n type: \"object\",\n additionalProperties: { $ref: \"#\" },\n default: { }\n },\n dependencies: {\n type: \"object\",\n additionalProperties: {\n anyOf: [\n { $ref: \"#\" },\n { $ref: \"#/definitions/stringArray\" }\n ]\n }\n },\n enum: {\n type: \"array\",\n minItems: 1,\n uniqueItems: true\n },\n type: {\n anyOf: [\n { $ref: \"#/definitions/simpleTypes\" },\n {\n type: \"array\",\n items: { $ref: \"#/definitions/simpleTypes\" },\n minItems: 1,\n uniqueItems: true\n }\n ]\n },\n format: { type: \"string\" },\n allOf: { $ref: \"#/definitions/schemaArray\" },\n anyOf: { $ref: \"#/definitions/schemaArray\" },\n oneOf: { $ref: \"#/definitions/schemaArray\" },\n not: { $ref: \"#\" }\n },\n dependencies: {\n exclusiveMaximum: [\"maximum\"],\n exclusiveMinimum: [\"minimum\"]\n },\n default: { }\n};\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport default (additionalOptions = {}) => {\n const ajv = new Ajv({\n meta: false,\n useDefaults: true,\n validateSchema: false,\n missingRefs: \"ignore\",\n verbose: true,\n schemaId: \"auto\",\n ...additionalOptions\n });\n\n ajv.addMetaSchema(metaSchema);\n // eslint-disable-next-line no-underscore-dangle\n ajv._opts.defaultMeta = metaSchema.id;\n\n return ajv;\n};\n","/**\n * @fileoverview Defines a schema for configs.\n * @author Sylvan Mably\n */\n\nconst baseConfigProperties = {\n $schema: { type: \"string\" },\n env: { type: \"object\" },\n extends: { $ref: \"#/definitions/stringOrStrings\" },\n globals: { type: \"object\" },\n overrides: {\n type: \"array\",\n items: { $ref: \"#/definitions/overrideConfig\" },\n additionalItems: false\n },\n parser: { type: [\"string\", \"null\"] },\n parserOptions: { type: \"object\" },\n plugins: { type: \"array\" },\n processor: { type: \"string\" },\n rules: { type: \"object\" },\n settings: { type: \"object\" },\n noInlineConfig: { type: \"boolean\" },\n reportUnusedDisableDirectives: { type: \"boolean\" },\n\n ecmaFeatures: { type: \"object\" } // deprecated; logs a warning when used\n};\n\nconst configSchema = {\n definitions: {\n stringOrStrings: {\n oneOf: [\n { type: \"string\" },\n {\n type: \"array\",\n items: { type: \"string\" },\n additionalItems: false\n }\n ]\n },\n stringOrStringsRequired: {\n oneOf: [\n { type: \"string\" },\n {\n type: \"array\",\n items: { type: \"string\" },\n additionalItems: false,\n minItems: 1\n }\n ]\n },\n\n // Config at top-level.\n objectConfig: {\n type: \"object\",\n properties: {\n root: { type: \"boolean\" },\n ignorePatterns: { $ref: \"#/definitions/stringOrStrings\" },\n ...baseConfigProperties\n },\n additionalProperties: false\n },\n\n // Config in `overrides`.\n overrideConfig: {\n type: \"object\",\n properties: {\n excludedFiles: { $ref: \"#/definitions/stringOrStrings\" },\n files: { $ref: \"#/definitions/stringOrStringsRequired\" },\n ...baseConfigProperties\n },\n required: [\"files\"],\n additionalProperties: false\n }\n },\n\n $ref: \"#/definitions/objectConfig\"\n};\n\nexport default configSchema;\n","/**\n * @fileoverview Defines environment settings and globals.\n * @author Elan Shanker\n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport globals from \"globals\";\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n/**\n * Get the object that has difference.\n * @param {Record} current The newer object.\n * @param {Record} prev The older object.\n * @returns {Record} The difference object.\n */\nfunction getDiff(current, prev) {\n const retv = {};\n\n for (const [key, value] of Object.entries(current)) {\n if (!Object.hasOwnProperty.call(prev, key)) {\n retv[key] = value;\n }\n }\n\n return retv;\n}\n\nconst newGlobals2015 = getDiff(globals.es2015, globals.es5); // 19 variables such as Promise, Map, ...\nconst newGlobals2017 = {\n Atomics: false,\n SharedArrayBuffer: false\n};\nconst newGlobals2020 = {\n BigInt: false,\n BigInt64Array: false,\n BigUint64Array: false,\n globalThis: false\n};\n\nconst newGlobals2021 = {\n AggregateError: false,\n FinalizationRegistry: false,\n WeakRef: false\n};\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/** @type {Map} */\nexport default new Map(Object.entries({\n\n // Language\n builtin: {\n globals: globals.es5\n },\n es6: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 6\n }\n },\n es2015: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 6\n }\n },\n es2016: {\n globals: newGlobals2015,\n parserOptions: {\n ecmaVersion: 7\n }\n },\n es2017: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 8\n }\n },\n es2018: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 9\n }\n },\n es2019: {\n globals: { ...newGlobals2015, ...newGlobals2017 },\n parserOptions: {\n ecmaVersion: 10\n }\n },\n es2020: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020 },\n parserOptions: {\n ecmaVersion: 11\n }\n },\n es2021: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 12\n }\n },\n es2022: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 13\n }\n },\n es2023: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 14\n }\n },\n es2024: {\n globals: { ...newGlobals2015, ...newGlobals2017, ...newGlobals2020, ...newGlobals2021 },\n parserOptions: {\n ecmaVersion: 15\n }\n },\n\n // Platforms\n browser: {\n globals: globals.browser\n },\n node: {\n globals: globals.node,\n parserOptions: {\n ecmaFeatures: {\n globalReturn: true\n }\n }\n },\n \"shared-node-browser\": {\n globals: globals[\"shared-node-browser\"]\n },\n worker: {\n globals: globals.worker\n },\n serviceworker: {\n globals: globals.serviceworker\n },\n\n // Frameworks\n commonjs: {\n globals: globals.commonjs,\n parserOptions: {\n ecmaFeatures: {\n globalReturn: true\n }\n }\n },\n amd: {\n globals: globals.amd\n },\n mocha: {\n globals: globals.mocha\n },\n jasmine: {\n globals: globals.jasmine\n },\n jest: {\n globals: globals.jest\n },\n phantomjs: {\n globals: globals.phantomjs\n },\n jquery: {\n globals: globals.jquery\n },\n qunit: {\n globals: globals.qunit\n },\n prototypejs: {\n globals: globals.prototypejs\n },\n shelljs: {\n globals: globals.shelljs\n },\n meteor: {\n globals: globals.meteor\n },\n mongo: {\n globals: globals.mongo\n },\n protractor: {\n globals: globals.protractor\n },\n applescript: {\n globals: globals.applescript\n },\n nashorn: {\n globals: globals.nashorn\n },\n atomtest: {\n globals: globals.atomtest\n },\n embertest: {\n globals: globals.embertest\n },\n webextensions: {\n globals: globals.webextensions\n },\n greasemonkey: {\n globals: globals.greasemonkey\n }\n}));\n","/**\n * @fileoverview Validates configs.\n * @author Brandon Mills\n */\n\n/* eslint class-methods-use-this: \"off\" */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport util from \"util\";\nimport * as ConfigOps from \"./config-ops.js\";\nimport { emitDeprecationWarning } from \"./deprecation-warnings.js\";\nimport ajvOrig from \"./ajv.js\";\nimport configSchema from \"../../conf/config-schema.js\";\nimport BuiltInEnvironments from \"../../conf/environments.js\";\n\nconst ajv = ajvOrig();\n\nconst ruleValidators = new WeakMap();\nconst noop = Function.prototype;\n\n//------------------------------------------------------------------------------\n// Private\n//------------------------------------------------------------------------------\nlet validateSchema;\nconst severityMap = {\n error: 2,\n warn: 1,\n off: 0\n};\n\nconst validated = new WeakSet();\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\nexport default class ConfigValidator {\n constructor({ builtInRules = new Map() } = {}) {\n this.builtInRules = builtInRules;\n }\n\n /**\n * Gets a complete options schema for a rule.\n * @param {{create: Function, schema: (Array|null)}} rule A new-style rule object\n * @returns {Object} JSON Schema for the rule's options.\n */\n getRuleOptionsSchema(rule) {\n if (!rule) {\n return null;\n }\n\n const schema = rule.schema || rule.meta && rule.meta.schema;\n\n // Given a tuple of schemas, insert warning level at the beginning\n if (Array.isArray(schema)) {\n if (schema.length) {\n return {\n type: \"array\",\n items: schema,\n minItems: 0,\n maxItems: schema.length\n };\n }\n return {\n type: \"array\",\n minItems: 0,\n maxItems: 0\n };\n\n }\n\n // Given a full schema, leave it alone\n return schema || null;\n }\n\n /**\n * Validates a rule's severity and returns the severity value. Throws an error if the severity is invalid.\n * @param {options} options The given options for the rule.\n * @returns {number|string} The rule's severity value\n */\n validateRuleSeverity(options) {\n const severity = Array.isArray(options) ? options[0] : options;\n const normSeverity = typeof severity === \"string\" ? severityMap[severity.toLowerCase()] : severity;\n\n if (normSeverity === 0 || normSeverity === 1 || normSeverity === 2) {\n return normSeverity;\n }\n\n throw new Error(`\\tSeverity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${util.inspect(severity).replace(/'/gu, \"\\\"\").replace(/\\n/gu, \"\")}').\\n`);\n\n }\n\n /**\n * Validates the non-severity options passed to a rule, based on its schema.\n * @param {{create: Function}} rule The rule to validate\n * @param {Array} localOptions The options for the rule, excluding severity\n * @returns {void}\n */\n validateRuleSchema(rule, localOptions) {\n if (!ruleValidators.has(rule)) {\n const schema = this.getRuleOptionsSchema(rule);\n\n if (schema) {\n ruleValidators.set(rule, ajv.compile(schema));\n }\n }\n\n const validateRule = ruleValidators.get(rule);\n\n if (validateRule) {\n validateRule(localOptions);\n if (validateRule.errors) {\n throw new Error(validateRule.errors.map(\n error => `\\tValue ${JSON.stringify(error.data)} ${error.message}.\\n`\n ).join(\"\"));\n }\n }\n }\n\n /**\n * Validates a rule's options against its schema.\n * @param {{create: Function}|null} rule The rule that the config is being validated for\n * @param {string} ruleId The rule's unique name.\n * @param {Array|number} options The given options for the rule.\n * @param {string|null} source The name of the configuration source to report in any errors. If null or undefined,\n * no source is prepended to the message.\n * @returns {void}\n */\n validateRuleOptions(rule, ruleId, options, source = null) {\n try {\n const severity = this.validateRuleSeverity(options);\n\n if (severity !== 0) {\n this.validateRuleSchema(rule, Array.isArray(options) ? options.slice(1) : []);\n }\n } catch (err) {\n const enhancedMessage = `Configuration for rule \"${ruleId}\" is invalid:\\n${err.message}`;\n\n if (typeof source === \"string\") {\n throw new Error(`${source}:\\n\\t${enhancedMessage}`);\n } else {\n throw new Error(enhancedMessage);\n }\n }\n }\n\n /**\n * Validates an environment object\n * @param {Object} environment The environment config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded environments.\n * @returns {void}\n */\n validateEnvironment(\n environment,\n source,\n getAdditionalEnv = noop\n ) {\n\n // not having an environment is ok\n if (!environment) {\n return;\n }\n\n Object.keys(environment).forEach(id => {\n const env = getAdditionalEnv(id) || BuiltInEnvironments.get(id) || null;\n\n if (!env) {\n const message = `${source}:\\n\\tEnvironment key \"${id}\" is unknown\\n`;\n\n throw new Error(message);\n }\n });\n }\n\n /**\n * Validates a rules config object\n * @param {Object} rulesConfig The rules config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(ruleId:string): Object} getAdditionalRule A map from strings to loaded rules\n * @returns {void}\n */\n validateRules(\n rulesConfig,\n source,\n getAdditionalRule = noop\n ) {\n if (!rulesConfig) {\n return;\n }\n\n Object.keys(rulesConfig).forEach(id => {\n const rule = getAdditionalRule(id) || this.builtInRules.get(id) || null;\n\n this.validateRuleOptions(rule, id, rulesConfig[id], source);\n });\n }\n\n /**\n * Validates a `globals` section of a config file\n * @param {Object} globalsConfig The `globals` section\n * @param {string|null} source The name of the configuration source to report in the event of an error.\n * @returns {void}\n */\n validateGlobals(globalsConfig, source = null) {\n if (!globalsConfig) {\n return;\n }\n\n Object.entries(globalsConfig)\n .forEach(([configuredGlobal, configuredValue]) => {\n try {\n ConfigOps.normalizeConfigGlobal(configuredValue);\n } catch (err) {\n throw new Error(`ESLint configuration of global '${configuredGlobal}' in ${source} is invalid:\\n${err.message}`);\n }\n });\n }\n\n /**\n * Validate `processor` configuration.\n * @param {string|undefined} processorName The processor name.\n * @param {string} source The name of config file.\n * @param {function(id:string): Processor} getProcessor The getter of defined processors.\n * @returns {void}\n */\n validateProcessor(processorName, source, getProcessor) {\n if (processorName && !getProcessor(processorName)) {\n throw new Error(`ESLint configuration of processor in '${source}' is invalid: '${processorName}' was not found.`);\n }\n }\n\n /**\n * Formats an array of schema validation errors.\n * @param {Array} errors An array of error messages to format.\n * @returns {string} Formatted error message\n */\n formatErrors(errors) {\n return errors.map(error => {\n if (error.keyword === \"additionalProperties\") {\n const formattedPropertyPath = error.dataPath.length ? `${error.dataPath.slice(1)}.${error.params.additionalProperty}` : error.params.additionalProperty;\n\n return `Unexpected top-level property \"${formattedPropertyPath}\"`;\n }\n if (error.keyword === \"type\") {\n const formattedField = error.dataPath.slice(1);\n const formattedExpectedType = Array.isArray(error.schema) ? error.schema.join(\"/\") : error.schema;\n const formattedValue = JSON.stringify(error.data);\n\n return `Property \"${formattedField}\" is the wrong type (expected ${formattedExpectedType} but got \\`${formattedValue}\\`)`;\n }\n\n const field = error.dataPath[0] === \".\" ? error.dataPath.slice(1) : error.dataPath;\n\n return `\"${field}\" ${error.message}. Value: ${JSON.stringify(error.data)}`;\n }).map(message => `\\t- ${message}.\\n`).join(\"\");\n }\n\n /**\n * Validates the top level properties of the config object.\n * @param {Object} config The config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @returns {void}\n */\n validateConfigSchema(config, source = null) {\n validateSchema = validateSchema || ajv.compile(configSchema);\n\n if (!validateSchema(config)) {\n throw new Error(`ESLint configuration in ${source} is invalid:\\n${this.formatErrors(validateSchema.errors)}`);\n }\n\n if (Object.hasOwnProperty.call(config, \"ecmaFeatures\")) {\n emitDeprecationWarning(source, \"ESLINT_LEGACY_ECMAFEATURES\");\n }\n }\n\n /**\n * Validates an entire config object.\n * @param {Object} config The config object to validate.\n * @param {string} source The name of the configuration source to report in any errors.\n * @param {function(ruleId:string): Object} [getAdditionalRule] A map from strings to loaded rules.\n * @param {function(envId:string): Object} [getAdditionalEnv] A map from strings to loaded envs.\n * @returns {void}\n */\n validate(config, source, getAdditionalRule, getAdditionalEnv) {\n this.validateConfigSchema(config, source);\n this.validateRules(config.rules, source, getAdditionalRule);\n this.validateEnvironment(config.env, source, getAdditionalEnv);\n this.validateGlobals(config.globals, source);\n\n for (const override of config.overrides || []) {\n this.validateRules(override.rules, source, getAdditionalRule);\n this.validateEnvironment(override.env, source, getAdditionalEnv);\n this.validateGlobals(config.globals, source);\n }\n }\n\n /**\n * Validate config array object.\n * @param {ConfigArray} configArray The config array to validate.\n * @returns {void}\n */\n validateConfigArray(configArray) {\n const getPluginEnv = Map.prototype.get.bind(configArray.pluginEnvironments);\n const getPluginProcessor = Map.prototype.get.bind(configArray.pluginProcessors);\n const getPluginRule = Map.prototype.get.bind(configArray.pluginRules);\n\n // Validate.\n for (const element of configArray) {\n if (validated.has(element)) {\n continue;\n }\n validated.add(element);\n\n this.validateEnvironment(element.env, element.name, getPluginEnv);\n this.validateGlobals(element.globals, element.name);\n this.validateProcessor(element.processor, element.name, getPluginProcessor);\n this.validateRules(element.rules, element.name, getPluginRule);\n }\n }\n\n}\n","/**\n * @fileoverview Common helpers for naming of plugins, formatters and configs\n */\n\nconst NAMESPACE_REGEX = /^@.*\\//iu;\n\n/**\n * Brings package name to correct format based on prefix\n * @param {string} name The name of the package.\n * @param {string} prefix Can be either \"eslint-plugin\", \"eslint-config\" or \"eslint-formatter\"\n * @returns {string} Normalized name of the package\n * @private\n */\nfunction normalizePackageName(name, prefix) {\n let normalizedName = name;\n\n /**\n * On Windows, name can come in with Windows slashes instead of Unix slashes.\n * Normalize to Unix first to avoid errors later on.\n * https://github.com/eslint/eslint/issues/5644\n */\n if (normalizedName.includes(\"\\\\\")) {\n normalizedName = normalizedName.replace(/\\\\/gu, \"/\");\n }\n\n if (normalizedName.charAt(0) === \"@\") {\n\n /**\n * it's a scoped package\n * package name is the prefix, or just a username\n */\n const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, \"u\"),\n scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, \"u\");\n\n if (scopedPackageShortcutRegex.test(normalizedName)) {\n normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`);\n } else if (!scopedPackageNameRegex.test(normalizedName.split(\"/\")[1])) {\n\n /**\n * for scoped packages, insert the prefix after the first / unless\n * the path is already @scope/eslint or @scope/eslint-xxx-yyy\n */\n normalizedName = normalizedName.replace(/^@([^/]+)\\/(.*)$/u, `@$1/${prefix}-$2`);\n }\n } else if (!normalizedName.startsWith(`${prefix}-`)) {\n normalizedName = `${prefix}-${normalizedName}`;\n }\n\n return normalizedName;\n}\n\n/**\n * Removes the prefix from a fullname.\n * @param {string} fullname The term which may have the prefix.\n * @param {string} prefix The prefix to remove.\n * @returns {string} The term without prefix.\n */\nfunction getShorthandName(fullname, prefix) {\n if (fullname[0] === \"@\") {\n let matchResult = new RegExp(`^(@[^/]+)/${prefix}$`, \"u\").exec(fullname);\n\n if (matchResult) {\n return matchResult[1];\n }\n\n matchResult = new RegExp(`^(@[^/]+)/${prefix}-(.+)$`, \"u\").exec(fullname);\n if (matchResult) {\n return `${matchResult[1]}/${matchResult[2]}`;\n }\n } else if (fullname.startsWith(`${prefix}-`)) {\n return fullname.slice(prefix.length + 1);\n }\n\n return fullname;\n}\n\n/**\n * Gets the scope (namespace) of a term.\n * @param {string} term The term which may have the namespace.\n * @returns {string} The namespace of the term if it has one.\n */\nfunction getNamespaceFromTerm(term) {\n const match = term.match(NAMESPACE_REGEX);\n\n return match ? match[0] : \"\";\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport {\n normalizePackageName,\n getShorthandName,\n getNamespaceFromTerm\n};\n","/**\n * Utility for resolving a module relative to another module\n * @author Teddy Katz\n */\n\nimport Module from \"module\";\n\n/*\n * `Module.createRequire` is added in v12.2.0. It supports URL as well.\n * We only support the case where the argument is a filepath, not a URL.\n */\nconst createRequire = Module.createRequire;\n\n/**\n * Resolves a Node module relative to another module\n * @param {string} moduleName The name of a Node module, or a path to a Node module.\n * @param {string} relativeToPath An absolute path indicating the module that `moduleName` should be resolved relative to. This must be\n * a file rather than a directory, but the file need not actually exist.\n * @returns {string} The absolute path that would result from calling `require.resolve(moduleName)` in a file located at `relativeToPath`\n */\nfunction resolve(moduleName, relativeToPath) {\n try {\n return createRequire(relativeToPath).resolve(moduleName);\n } catch (error) {\n\n // This `if` block is for older Node.js than 12.0.0. We can remove this block in the future.\n if (\n typeof error === \"object\" &&\n error !== null &&\n error.code === \"MODULE_NOT_FOUND\" &&\n !error.requireStack &&\n error.message.includes(moduleName)\n ) {\n error.message += `\\nRequire stack:\\n- ${relativeToPath}`;\n }\n throw error;\n }\n}\n\nexport {\n resolve\n};\n","/**\n * @fileoverview The factory of `ConfigArray` objects.\n *\n * This class provides methods to create `ConfigArray` instance.\n *\n * - `create(configData, options)`\n * Create a `ConfigArray` instance from a config data. This is to handle CLI\n * options except `--config`.\n * - `loadFile(filePath, options)`\n * Create a `ConfigArray` instance from a config file. This is to handle\n * `--config` option. If the file was not found, throws the following error:\n * - If the filename was `*.js`, a `MODULE_NOT_FOUND` error.\n * - If the filename was `package.json`, an IO error or an\n * `ESLINT_CONFIG_FIELD_NOT_FOUND` error.\n * - Otherwise, an IO error such as `ENOENT`.\n * - `loadInDirectory(directoryPath, options)`\n * Create a `ConfigArray` instance from a config file which is on a given\n * directory. This tries to load `.eslintrc.*` or `package.json`. If not\n * found, returns an empty `ConfigArray`.\n * - `loadESLintIgnore(filePath)`\n * Create a `ConfigArray` instance from a config file that is `.eslintignore`\n * format. This is to handle `--ignore-path` option.\n * - `loadDefaultESLintIgnore()`\n * Create a `ConfigArray` instance from `.eslintignore` or `package.json` in\n * the current working directory.\n *\n * `ConfigArrayFactory` class has the responsibility that loads configuration\n * files, including loading `extends`, `parser`, and `plugins`. The created\n * `ConfigArray` instance has the loaded `extends`, `parser`, and `plugins`.\n *\n * But this class doesn't handle cascading. `CascadingConfigArrayFactory` class\n * handles cascading and hierarchy.\n *\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport debugOrig from \"debug\";\nimport fs from \"fs\";\nimport importFresh from \"import-fresh\";\nimport { createRequire } from \"module\";\nimport path from \"path\";\nimport stripComments from \"strip-json-comments\";\n\nimport {\n ConfigArray,\n ConfigDependency,\n IgnorePattern,\n OverrideTester\n} from \"./config-array/index.js\";\nimport ConfigValidator from \"./shared/config-validator.js\";\nimport * as naming from \"./shared/naming.js\";\nimport * as ModuleResolver from \"./shared/relative-module-resolver.js\";\n\nconst require = createRequire(import.meta.url);\n\nconst debug = debugOrig(\"eslintrc:config-array-factory\");\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\nconst configFilenames = [\n \".eslintrc.js\",\n \".eslintrc.cjs\",\n \".eslintrc.yaml\",\n \".eslintrc.yml\",\n \".eslintrc.json\",\n \".eslintrc\",\n \"package.json\"\n];\n\n// Define types for VSCode IntelliSense.\n/** @typedef {import(\"./shared/types\").ConfigData} ConfigData */\n/** @typedef {import(\"./shared/types\").OverrideConfigData} OverrideConfigData */\n/** @typedef {import(\"./shared/types\").Parser} Parser */\n/** @typedef {import(\"./shared/types\").Plugin} Plugin */\n/** @typedef {import(\"./shared/types\").Rule} Rule */\n/** @typedef {import(\"./config-array/config-dependency\").DependentParser} DependentParser */\n/** @typedef {import(\"./config-array/config-dependency\").DependentPlugin} DependentPlugin */\n/** @typedef {ConfigArray[0]} ConfigArrayElement */\n\n/**\n * @typedef {Object} ConfigArrayFactoryOptions\n * @property {Map} [additionalPluginPool] The map for additional plugins.\n * @property {string} [cwd] The path to the current working directory.\n * @property {string} [resolvePluginsRelativeTo] A path to the directory that plugins should be resolved from. Defaults to `cwd`.\n * @property {Map} builtInRules The rules that are built in to ESLint.\n * @property {Object} [resolver=ModuleResolver] The module resolver object.\n * @property {string} eslintAllPath The path to the definitions for eslint:all.\n * @property {Function} getEslintAllConfig Returns the config data for eslint:all.\n * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.\n * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.\n */\n\n/**\n * @typedef {Object} ConfigArrayFactoryInternalSlots\n * @property {Map} additionalPluginPool The map for additional plugins.\n * @property {string} cwd The path to the current working directory.\n * @property {string | undefined} resolvePluginsRelativeTo An absolute path the the directory that plugins should be resolved from.\n * @property {Map} builtInRules The rules that are built in to ESLint.\n * @property {Object} [resolver=ModuleResolver] The module resolver object.\n * @property {string} eslintAllPath The path to the definitions for eslint:all.\n * @property {Function} getEslintAllConfig Returns the config data for eslint:all.\n * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.\n * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.\n */\n\n/**\n * @typedef {Object} ConfigArrayFactoryLoadingContext\n * @property {string} filePath The path to the current configuration.\n * @property {string} matchBasePath The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @property {string} name The name of the current configuration.\n * @property {string} pluginBasePath The base path to resolve plugins.\n * @property {\"config\" | \"ignore\" | \"implicit-processor\"} type The type of the current configuration. This is `\"config\"` in normal. This is `\"ignore\"` if it came from `.eslintignore`. This is `\"implicit-processor\"` if it came from legacy file-extension processors.\n */\n\n/**\n * @typedef {Object} ConfigArrayFactoryLoadingContext\n * @property {string} filePath The path to the current configuration.\n * @property {string} matchBasePath The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @property {string} name The name of the current configuration.\n * @property {\"config\" | \"ignore\" | \"implicit-processor\"} type The type of the current configuration. This is `\"config\"` in normal. This is `\"ignore\"` if it came from `.eslintignore`. This is `\"implicit-processor\"` if it came from legacy file-extension processors.\n */\n\n/** @type {WeakMap} */\nconst internalSlotsMap = new WeakMap();\n\n/** @type {WeakMap} */\nconst normalizedPlugins = new WeakMap();\n\n/**\n * Check if a given string is a file path.\n * @param {string} nameOrPath A module name or file path.\n * @returns {boolean} `true` if the `nameOrPath` is a file path.\n */\nfunction isFilePath(nameOrPath) {\n return (\n /^\\.{1,2}[/\\\\]/u.test(nameOrPath) ||\n path.isAbsolute(nameOrPath)\n );\n}\n\n/**\n * Convenience wrapper for synchronously reading file contents.\n * @param {string} filePath The filename to read.\n * @returns {string} The file contents, with the BOM removed.\n * @private\n */\nfunction readFile(filePath) {\n return fs.readFileSync(filePath, \"utf8\").replace(/^\\ufeff/u, \"\");\n}\n\n/**\n * Loads a YAML configuration from a file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadYAMLConfigFile(filePath) {\n debug(`Loading YAML config file: ${filePath}`);\n\n // lazy load YAML to improve performance when not used\n const yaml = require(\"js-yaml\");\n\n try {\n\n // empty YAML file can be null, so always use\n return yaml.load(readFile(filePath)) || {};\n } catch (e) {\n debug(`Error reading YAML file: ${filePath}`);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Loads a JSON configuration from a file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadJSONConfigFile(filePath) {\n debug(`Loading JSON config file: ${filePath}`);\n\n try {\n return JSON.parse(stripComments(readFile(filePath)));\n } catch (e) {\n debug(`Error reading JSON file: ${filePath}`);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n e.messageTemplate = \"failed-to-read-json\";\n e.messageData = {\n path: filePath,\n message: e.message\n };\n throw e;\n }\n}\n\n/**\n * Loads a legacy (.eslintrc) configuration from a file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadLegacyConfigFile(filePath) {\n debug(`Loading legacy config file: ${filePath}`);\n\n // lazy load YAML to improve performance when not used\n const yaml = require(\"js-yaml\");\n\n try {\n return yaml.load(stripComments(readFile(filePath))) || /* istanbul ignore next */ {};\n } catch (e) {\n debug(\"Error reading YAML file: %s\\n%o\", filePath, e);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Loads a JavaScript configuration from a file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadJSConfigFile(filePath) {\n debug(`Loading JS config file: ${filePath}`);\n try {\n return importFresh(filePath);\n } catch (e) {\n debug(`Error reading JavaScript file: ${filePath}`);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Loads a configuration from a package.json file.\n * @param {string} filePath The filename to load.\n * @returns {ConfigData} The configuration object from the file.\n * @throws {Error} If the file cannot be read.\n * @private\n */\nfunction loadPackageJSONConfigFile(filePath) {\n debug(`Loading package.json config file: ${filePath}`);\n try {\n const packageData = loadJSONConfigFile(filePath);\n\n if (!Object.hasOwnProperty.call(packageData, \"eslintConfig\")) {\n throw Object.assign(\n new Error(\"package.json file doesn't have 'eslintConfig' field.\"),\n { code: \"ESLINT_CONFIG_FIELD_NOT_FOUND\" }\n );\n }\n\n return packageData.eslintConfig;\n } catch (e) {\n debug(`Error reading package.json file: ${filePath}`);\n e.message = `Cannot read config file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Loads a `.eslintignore` from a file.\n * @param {string} filePath The filename to load.\n * @returns {string[]} The ignore patterns from the file.\n * @private\n */\nfunction loadESLintIgnoreFile(filePath) {\n debug(`Loading .eslintignore file: ${filePath}`);\n\n try {\n return readFile(filePath)\n .split(/\\r?\\n/gu)\n .filter(line => line.trim() !== \"\" && !line.startsWith(\"#\"));\n } catch (e) {\n debug(`Error reading .eslintignore file: ${filePath}`);\n e.message = `Cannot read .eslintignore file: ${filePath}\\nError: ${e.message}`;\n throw e;\n }\n}\n\n/**\n * Creates an error to notify about a missing config to extend from.\n * @param {string} configName The name of the missing config.\n * @param {string} importerName The name of the config that imported the missing config\n * @param {string} messageTemplate The text template to source error strings from.\n * @returns {Error} The error object to throw\n * @private\n */\nfunction configInvalidError(configName, importerName, messageTemplate) {\n return Object.assign(\n new Error(`Failed to load config \"${configName}\" to extend from.`),\n {\n messageTemplate,\n messageData: { configName, importerName }\n }\n );\n}\n\n/**\n * Loads a configuration file regardless of the source. Inspects the file path\n * to determine the correctly way to load the config file.\n * @param {string} filePath The path to the configuration.\n * @returns {ConfigData|null} The configuration information.\n * @private\n */\nfunction loadConfigFile(filePath) {\n switch (path.extname(filePath)) {\n case \".js\":\n case \".cjs\":\n return loadJSConfigFile(filePath);\n\n case \".json\":\n if (path.basename(filePath) === \"package.json\") {\n return loadPackageJSONConfigFile(filePath);\n }\n return loadJSONConfigFile(filePath);\n\n case \".yaml\":\n case \".yml\":\n return loadYAMLConfigFile(filePath);\n\n default:\n return loadLegacyConfigFile(filePath);\n }\n}\n\n/**\n * Write debug log.\n * @param {string} request The requested module name.\n * @param {string} relativeTo The file path to resolve the request relative to.\n * @param {string} filePath The resolved file path.\n * @returns {void}\n */\nfunction writeDebugLogForLoading(request, relativeTo, filePath) {\n /* istanbul ignore next */\n if (debug.enabled) {\n let nameAndVersion = null;\n\n try {\n const packageJsonPath = ModuleResolver.resolve(\n `${request}/package.json`,\n relativeTo\n );\n const { version = \"unknown\" } = require(packageJsonPath);\n\n nameAndVersion = `${request}@${version}`;\n } catch (error) {\n debug(\"package.json was not found:\", error.message);\n nameAndVersion = request;\n }\n\n debug(\"Loaded: %s (%s)\", nameAndVersion, filePath);\n }\n}\n\n/**\n * Create a new context with default values.\n * @param {ConfigArrayFactoryInternalSlots} slots The internal slots.\n * @param {\"config\" | \"ignore\" | \"implicit-processor\" | undefined} providedType The type of the current configuration. Default is `\"config\"`.\n * @param {string | undefined} providedName The name of the current configuration. Default is the relative path from `cwd` to `filePath`.\n * @param {string | undefined} providedFilePath The path to the current configuration. Default is empty string.\n * @param {string | undefined} providedMatchBasePath The type of the current configuration. Default is the directory of `filePath` or `cwd`.\n * @returns {ConfigArrayFactoryLoadingContext} The created context.\n */\nfunction createContext(\n { cwd, resolvePluginsRelativeTo },\n providedType,\n providedName,\n providedFilePath,\n providedMatchBasePath\n) {\n const filePath = providedFilePath\n ? path.resolve(cwd, providedFilePath)\n : \"\";\n const matchBasePath =\n (providedMatchBasePath && path.resolve(cwd, providedMatchBasePath)) ||\n (filePath && path.dirname(filePath)) ||\n cwd;\n const name =\n providedName ||\n (filePath && path.relative(cwd, filePath)) ||\n \"\";\n const pluginBasePath =\n resolvePluginsRelativeTo ||\n (filePath && path.dirname(filePath)) ||\n cwd;\n const type = providedType || \"config\";\n\n return { filePath, matchBasePath, name, pluginBasePath, type };\n}\n\n/**\n * Normalize a given plugin.\n * - Ensure the object to have four properties: configs, environments, processors, and rules.\n * - Ensure the object to not have other properties.\n * @param {Plugin} plugin The plugin to normalize.\n * @returns {Plugin} The normalized plugin.\n */\nfunction normalizePlugin(plugin) {\n\n // first check the cache\n let normalizedPlugin = normalizedPlugins.get(plugin);\n\n if (normalizedPlugin) {\n return normalizedPlugin;\n }\n\n normalizedPlugin = {\n configs: plugin.configs || {},\n environments: plugin.environments || {},\n processors: plugin.processors || {},\n rules: plugin.rules || {}\n };\n\n // save the reference for later\n normalizedPlugins.set(plugin, normalizedPlugin);\n\n return normalizedPlugin;\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\n/**\n * The factory of `ConfigArray` objects.\n */\nclass ConfigArrayFactory {\n\n /**\n * Initialize this instance.\n * @param {ConfigArrayFactoryOptions} [options] The map for additional plugins.\n */\n constructor({\n additionalPluginPool = new Map(),\n cwd = process.cwd(),\n resolvePluginsRelativeTo,\n builtInRules,\n resolver = ModuleResolver,\n eslintAllPath,\n getEslintAllConfig,\n eslintRecommendedPath,\n getEslintRecommendedConfig\n } = {}) {\n internalSlotsMap.set(this, {\n additionalPluginPool,\n cwd,\n resolvePluginsRelativeTo:\n resolvePluginsRelativeTo &&\n path.resolve(cwd, resolvePluginsRelativeTo),\n builtInRules,\n resolver,\n eslintAllPath,\n getEslintAllConfig,\n eslintRecommendedPath,\n getEslintRecommendedConfig\n });\n }\n\n /**\n * Create `ConfigArray` instance from a config data.\n * @param {ConfigData|null} configData The config data to create.\n * @param {Object} [options] The options.\n * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @param {string} [options.filePath] The path to this config data.\n * @param {string} [options.name] The config name.\n * @returns {ConfigArray} Loaded config.\n */\n create(configData, { basePath, filePath, name } = {}) {\n if (!configData) {\n return new ConfigArray();\n }\n\n const slots = internalSlotsMap.get(this);\n const ctx = createContext(slots, \"config\", name, filePath, basePath);\n const elements = this._normalizeConfigData(configData, ctx);\n\n return new ConfigArray(...elements);\n }\n\n /**\n * Load a config file.\n * @param {string} filePath The path to a config file.\n * @param {Object} [options] The options.\n * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @param {string} [options.name] The config name.\n * @returns {ConfigArray} Loaded config.\n */\n loadFile(filePath, { basePath, name } = {}) {\n const slots = internalSlotsMap.get(this);\n const ctx = createContext(slots, \"config\", name, filePath, basePath);\n\n return new ConfigArray(...this._loadConfigData(ctx));\n }\n\n /**\n * Load the config file on a given directory if exists.\n * @param {string} directoryPath The path to a directory.\n * @param {Object} [options] The options.\n * @param {string} [options.basePath] The base path to resolve relative paths in `overrides[].files`, `overrides[].excludedFiles`, and `ignorePatterns`.\n * @param {string} [options.name] The config name.\n * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist.\n */\n loadInDirectory(directoryPath, { basePath, name } = {}) {\n const slots = internalSlotsMap.get(this);\n\n for (const filename of configFilenames) {\n const ctx = createContext(\n slots,\n \"config\",\n name,\n path.join(directoryPath, filename),\n basePath\n );\n\n if (fs.existsSync(ctx.filePath) && fs.statSync(ctx.filePath).isFile()) {\n let configData;\n\n try {\n configData = loadConfigFile(ctx.filePath);\n } catch (error) {\n if (!error || error.code !== \"ESLINT_CONFIG_FIELD_NOT_FOUND\") {\n throw error;\n }\n }\n\n if (configData) {\n debug(`Config file found: ${ctx.filePath}`);\n return new ConfigArray(\n ...this._normalizeConfigData(configData, ctx)\n );\n }\n }\n }\n\n debug(`Config file not found on ${directoryPath}`);\n return new ConfigArray();\n }\n\n /**\n * Check if a config file on a given directory exists or not.\n * @param {string} directoryPath The path to a directory.\n * @returns {string | null} The path to the found config file. If not found then null.\n */\n static getPathToConfigFileInDirectory(directoryPath) {\n for (const filename of configFilenames) {\n const filePath = path.join(directoryPath, filename);\n\n if (fs.existsSync(filePath)) {\n if (filename === \"package.json\") {\n try {\n loadPackageJSONConfigFile(filePath);\n return filePath;\n } catch { /* ignore */ }\n } else {\n return filePath;\n }\n }\n }\n return null;\n }\n\n /**\n * Load `.eslintignore` file.\n * @param {string} filePath The path to a `.eslintignore` file to load.\n * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist.\n */\n loadESLintIgnore(filePath) {\n const slots = internalSlotsMap.get(this);\n const ctx = createContext(\n slots,\n \"ignore\",\n void 0,\n filePath,\n slots.cwd\n );\n const ignorePatterns = loadESLintIgnoreFile(ctx.filePath);\n\n return new ConfigArray(\n ...this._normalizeESLintIgnoreData(ignorePatterns, ctx)\n );\n }\n\n /**\n * Load `.eslintignore` file in the current working directory.\n * @returns {ConfigArray} Loaded config. An empty `ConfigArray` if any config doesn't exist.\n */\n loadDefaultESLintIgnore() {\n const slots = internalSlotsMap.get(this);\n const eslintIgnorePath = path.resolve(slots.cwd, \".eslintignore\");\n const packageJsonPath = path.resolve(slots.cwd, \"package.json\");\n\n if (fs.existsSync(eslintIgnorePath)) {\n return this.loadESLintIgnore(eslintIgnorePath);\n }\n if (fs.existsSync(packageJsonPath)) {\n const data = loadJSONConfigFile(packageJsonPath);\n\n if (Object.hasOwnProperty.call(data, \"eslintIgnore\")) {\n if (!Array.isArray(data.eslintIgnore)) {\n throw new Error(\"Package.json eslintIgnore property requires an array of paths\");\n }\n const ctx = createContext(\n slots,\n \"ignore\",\n \"eslintIgnore in package.json\",\n packageJsonPath,\n slots.cwd\n );\n\n return new ConfigArray(\n ...this._normalizeESLintIgnoreData(data.eslintIgnore, ctx)\n );\n }\n }\n\n return new ConfigArray();\n }\n\n /**\n * Load a given config file.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} Loaded config.\n * @private\n */\n _loadConfigData(ctx) {\n return this._normalizeConfigData(loadConfigFile(ctx.filePath), ctx);\n }\n\n /**\n * Normalize a given `.eslintignore` data to config array elements.\n * @param {string[]} ignorePatterns The patterns to ignore files.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n *_normalizeESLintIgnoreData(ignorePatterns, ctx) {\n const elements = this._normalizeObjectConfigData(\n { ignorePatterns },\n ctx\n );\n\n // Set `ignorePattern.loose` flag for backward compatibility.\n for (const element of elements) {\n if (element.ignorePattern) {\n element.ignorePattern.loose = true;\n }\n yield element;\n }\n }\n\n /**\n * Normalize a given config to an array.\n * @param {ConfigData} configData The config data to normalize.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _normalizeConfigData(configData, ctx) {\n const validator = new ConfigValidator();\n\n validator.validateConfigSchema(configData, ctx.name || ctx.filePath);\n return this._normalizeObjectConfigData(configData, ctx);\n }\n\n /**\n * Normalize a given config to an array.\n * @param {ConfigData|OverrideConfigData} configData The config data to normalize.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n *_normalizeObjectConfigData(configData, ctx) {\n const { files, excludedFiles, ...configBody } = configData;\n const criteria = OverrideTester.create(\n files,\n excludedFiles,\n ctx.matchBasePath\n );\n const elements = this._normalizeObjectConfigDataBody(configBody, ctx);\n\n // Apply the criteria to every element.\n for (const element of elements) {\n\n /*\n * Merge the criteria.\n * This is for the `overrides` entries that came from the\n * configurations of `overrides[].extends`.\n */\n element.criteria = OverrideTester.and(criteria, element.criteria);\n\n /*\n * Remove `root` property to ignore `root` settings which came from\n * `extends` in `overrides`.\n */\n if (element.criteria) {\n element.root = void 0;\n }\n\n yield element;\n }\n }\n\n /**\n * Normalize a given config to an array.\n * @param {ConfigData} configData The config data to normalize.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n *_normalizeObjectConfigDataBody(\n {\n env,\n extends: extend,\n globals,\n ignorePatterns,\n noInlineConfig,\n parser: parserName,\n parserOptions,\n plugins: pluginList,\n processor,\n reportUnusedDisableDirectives,\n root,\n rules,\n settings,\n overrides: overrideList = []\n },\n ctx\n ) {\n const extendList = Array.isArray(extend) ? extend : [extend];\n const ignorePattern = ignorePatterns && new IgnorePattern(\n Array.isArray(ignorePatterns) ? ignorePatterns : [ignorePatterns],\n ctx.matchBasePath\n );\n\n // Flatten `extends`.\n for (const extendName of extendList.filter(Boolean)) {\n yield* this._loadExtends(extendName, ctx);\n }\n\n // Load parser & plugins.\n const parser = parserName && this._loadParser(parserName, ctx);\n const plugins = pluginList && this._loadPlugins(pluginList, ctx);\n\n // Yield pseudo config data for file extension processors.\n if (plugins) {\n yield* this._takeFileExtensionProcessors(plugins, ctx);\n }\n\n // Yield the config data except `extends` and `overrides`.\n yield {\n\n // Debug information.\n type: ctx.type,\n name: ctx.name,\n filePath: ctx.filePath,\n\n // Config data.\n criteria: null,\n env,\n globals,\n ignorePattern,\n noInlineConfig,\n parser,\n parserOptions,\n plugins,\n processor,\n reportUnusedDisableDirectives,\n root,\n rules,\n settings\n };\n\n // Flatten `overries`.\n for (let i = 0; i < overrideList.length; ++i) {\n yield* this._normalizeObjectConfigData(\n overrideList[i],\n { ...ctx, name: `${ctx.name}#overrides[${i}]` }\n );\n }\n }\n\n /**\n * Load configs of an element in `extends`.\n * @param {string} extendName The name of a base config.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _loadExtends(extendName, ctx) {\n debug(\"Loading {extends:%j} relative to %s\", extendName, ctx.filePath);\n try {\n if (extendName.startsWith(\"eslint:\")) {\n return this._loadExtendedBuiltInConfig(extendName, ctx);\n }\n if (extendName.startsWith(\"plugin:\")) {\n return this._loadExtendedPluginConfig(extendName, ctx);\n }\n return this._loadExtendedShareableConfig(extendName, ctx);\n } catch (error) {\n error.message += `\\nReferenced from: ${ctx.filePath || ctx.name}`;\n throw error;\n }\n }\n\n /**\n * Load configs of an element in `extends`.\n * @param {string} extendName The name of a base config.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _loadExtendedBuiltInConfig(extendName, ctx) {\n const {\n eslintAllPath,\n getEslintAllConfig,\n eslintRecommendedPath,\n getEslintRecommendedConfig\n } = internalSlotsMap.get(this);\n\n if (extendName === \"eslint:recommended\") {\n const name = `${ctx.name} » ${extendName}`;\n\n if (getEslintRecommendedConfig) {\n if (typeof getEslintRecommendedConfig !== \"function\") {\n throw new Error(`getEslintRecommendedConfig must be a function instead of '${getEslintRecommendedConfig}'`);\n }\n return this._normalizeConfigData(getEslintRecommendedConfig(), { ...ctx, name, filePath: \"\" });\n }\n return this._loadConfigData({\n ...ctx,\n name,\n filePath: eslintRecommendedPath\n });\n }\n if (extendName === \"eslint:all\") {\n const name = `${ctx.name} » ${extendName}`;\n\n if (getEslintAllConfig) {\n if (typeof getEslintAllConfig !== \"function\") {\n throw new Error(`getEslintAllConfig must be a function instead of '${getEslintAllConfig}'`);\n }\n return this._normalizeConfigData(getEslintAllConfig(), { ...ctx, name, filePath: \"\" });\n }\n return this._loadConfigData({\n ...ctx,\n name,\n filePath: eslintAllPath\n });\n }\n\n throw configInvalidError(extendName, ctx.name, \"extend-config-missing\");\n }\n\n /**\n * Load configs of an element in `extends`.\n * @param {string} extendName The name of a base config.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _loadExtendedPluginConfig(extendName, ctx) {\n const slashIndex = extendName.lastIndexOf(\"/\");\n\n if (slashIndex === -1) {\n throw configInvalidError(extendName, ctx.filePath, \"plugin-invalid\");\n }\n\n const pluginName = extendName.slice(\"plugin:\".length, slashIndex);\n const configName = extendName.slice(slashIndex + 1);\n\n if (isFilePath(pluginName)) {\n throw new Error(\"'extends' cannot use a file path for plugins.\");\n }\n\n const plugin = this._loadPlugin(pluginName, ctx);\n const configData =\n plugin.definition &&\n plugin.definition.configs[configName];\n\n if (configData) {\n return this._normalizeConfigData(configData, {\n ...ctx,\n filePath: plugin.filePath || ctx.filePath,\n name: `${ctx.name} » plugin:${plugin.id}/${configName}`\n });\n }\n\n throw plugin.error || configInvalidError(extendName, ctx.filePath, \"extend-config-missing\");\n }\n\n /**\n * Load configs of an element in `extends`.\n * @param {string} extendName The name of a base config.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The normalized config.\n * @private\n */\n _loadExtendedShareableConfig(extendName, ctx) {\n const { cwd, resolver } = internalSlotsMap.get(this);\n const relativeTo = ctx.filePath || path.join(cwd, \"__placeholder__.js\");\n let request;\n\n if (isFilePath(extendName)) {\n request = extendName;\n } else if (extendName.startsWith(\".\")) {\n request = `./${extendName}`; // For backward compatibility. A ton of tests depended on this behavior.\n } else {\n request = naming.normalizePackageName(\n extendName,\n \"eslint-config\"\n );\n }\n\n let filePath;\n\n try {\n filePath = resolver.resolve(request, relativeTo);\n } catch (error) {\n /* istanbul ignore else */\n if (error && error.code === \"MODULE_NOT_FOUND\") {\n throw configInvalidError(extendName, ctx.filePath, \"extend-config-missing\");\n }\n throw error;\n }\n\n writeDebugLogForLoading(request, relativeTo, filePath);\n return this._loadConfigData({\n ...ctx,\n filePath,\n name: `${ctx.name} » ${request}`\n });\n }\n\n /**\n * Load given plugins.\n * @param {string[]} names The plugin names to load.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {Record} The loaded parser.\n * @private\n */\n _loadPlugins(names, ctx) {\n return names.reduce((map, name) => {\n if (isFilePath(name)) {\n throw new Error(\"Plugins array cannot includes file paths.\");\n }\n const plugin = this._loadPlugin(name, ctx);\n\n map[plugin.id] = plugin;\n\n return map;\n }, {});\n }\n\n /**\n * Load a given parser.\n * @param {string} nameOrPath The package name or the path to a parser file.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {DependentParser} The loaded parser.\n */\n _loadParser(nameOrPath, ctx) {\n debug(\"Loading parser %j from %s\", nameOrPath, ctx.filePath);\n\n const { cwd, resolver } = internalSlotsMap.get(this);\n const relativeTo = ctx.filePath || path.join(cwd, \"__placeholder__.js\");\n\n try {\n const filePath = resolver.resolve(nameOrPath, relativeTo);\n\n writeDebugLogForLoading(nameOrPath, relativeTo, filePath);\n\n return new ConfigDependency({\n definition: require(filePath),\n filePath,\n id: nameOrPath,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n } catch (error) {\n\n // If the parser name is \"espree\", load the espree of ESLint.\n if (nameOrPath === \"espree\") {\n debug(\"Fallback espree.\");\n return new ConfigDependency({\n definition: require(\"espree\"),\n filePath: require.resolve(\"espree\"),\n id: nameOrPath,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n\n debug(\"Failed to load parser '%s' declared in '%s'.\", nameOrPath, ctx.name);\n error.message = `Failed to load parser '${nameOrPath}' declared in '${ctx.name}': ${error.message}`;\n\n return new ConfigDependency({\n error,\n id: nameOrPath,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n }\n\n /**\n * Load a given plugin.\n * @param {string} name The plugin name to load.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {DependentPlugin} The loaded plugin.\n * @private\n */\n _loadPlugin(name, ctx) {\n debug(\"Loading plugin %j from %s\", name, ctx.filePath);\n\n const { additionalPluginPool, resolver } = internalSlotsMap.get(this);\n const request = naming.normalizePackageName(name, \"eslint-plugin\");\n const id = naming.getShorthandName(request, \"eslint-plugin\");\n const relativeTo = path.join(ctx.pluginBasePath, \"__placeholder__.js\");\n\n if (name.match(/\\s+/u)) {\n const error = Object.assign(\n new Error(`Whitespace found in plugin name '${name}'`),\n {\n messageTemplate: \"whitespace-found\",\n messageData: { pluginName: request }\n }\n );\n\n return new ConfigDependency({\n error,\n id,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n\n // Check for additional pool.\n const plugin =\n additionalPluginPool.get(request) ||\n additionalPluginPool.get(id);\n\n if (plugin) {\n return new ConfigDependency({\n definition: normalizePlugin(plugin),\n original: plugin,\n filePath: \"\", // It's unknown where the plugin came from.\n id,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n\n let filePath;\n let error;\n\n try {\n filePath = resolver.resolve(request, relativeTo);\n } catch (resolveError) {\n error = resolveError;\n /* istanbul ignore else */\n if (error && error.code === \"MODULE_NOT_FOUND\") {\n error.messageTemplate = \"plugin-missing\";\n error.messageData = {\n pluginName: request,\n resolvePluginsRelativeTo: ctx.pluginBasePath,\n importerName: ctx.name\n };\n }\n }\n\n if (filePath) {\n try {\n writeDebugLogForLoading(request, relativeTo, filePath);\n\n const startTime = Date.now();\n const pluginDefinition = require(filePath);\n\n debug(`Plugin ${filePath} loaded in: ${Date.now() - startTime}ms`);\n\n return new ConfigDependency({\n definition: normalizePlugin(pluginDefinition),\n original: pluginDefinition,\n filePath,\n id,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n } catch (loadError) {\n error = loadError;\n }\n }\n\n debug(\"Failed to load plugin '%s' declared in '%s'.\", name, ctx.name);\n error.message = `Failed to load plugin '${name}' declared in '${ctx.name}': ${error.message}`;\n return new ConfigDependency({\n error,\n id,\n importerName: ctx.name,\n importerPath: ctx.filePath\n });\n }\n\n /**\n * Take file expression processors as config array elements.\n * @param {Record} plugins The plugin definitions.\n * @param {ConfigArrayFactoryLoadingContext} ctx The loading context.\n * @returns {IterableIterator} The config array elements of file expression processors.\n * @private\n */\n *_takeFileExtensionProcessors(plugins, ctx) {\n for (const pluginId of Object.keys(plugins)) {\n const processors =\n plugins[pluginId] &&\n plugins[pluginId].definition &&\n plugins[pluginId].definition.processors;\n\n if (!processors) {\n continue;\n }\n\n for (const processorId of Object.keys(processors)) {\n if (processorId.startsWith(\".\")) {\n yield* this._normalizeObjectConfigData(\n {\n files: [`*${processorId}`],\n processor: `${pluginId}/${processorId}`\n },\n {\n ...ctx,\n type: \"implicit-processor\",\n name: `${ctx.name}#processors[\"${pluginId}/${processorId}\"]`\n }\n );\n }\n }\n }\n }\n}\n\nexport { ConfigArrayFactory, createContext };\n","/**\n * @fileoverview `CascadingConfigArrayFactory` class.\n *\n * `CascadingConfigArrayFactory` class has a responsibility:\n *\n * 1. Handles cascading of config files.\n *\n * It provides two methods:\n *\n * - `getConfigArrayForFile(filePath)`\n * Get the corresponded configuration of a given file. This method doesn't\n * throw even if the given file didn't exist.\n * - `clearCache()`\n * Clear the internal cache. You have to call this method when\n * `additionalPluginPool` was updated if `baseConfig` or `cliConfig` depends\n * on the additional plugins. (`CLIEngine#addPlugin()` method calls this.)\n *\n * @author Toru Nagashima \n */\n\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport debugOrig from \"debug\";\nimport os from \"os\";\nimport path from \"path\";\n\nimport { ConfigArrayFactory } from \"./config-array-factory.js\";\nimport {\n ConfigArray,\n ConfigDependency,\n IgnorePattern\n} from \"./config-array/index.js\";\nimport ConfigValidator from \"./shared/config-validator.js\";\nimport { emitDeprecationWarning } from \"./shared/deprecation-warnings.js\";\n\nconst debug = debugOrig(\"eslintrc:cascading-config-array-factory\");\n\n//------------------------------------------------------------------------------\n// Helpers\n//------------------------------------------------------------------------------\n\n// Define types for VSCode IntelliSense.\n/** @typedef {import(\"./shared/types\").ConfigData} ConfigData */\n/** @typedef {import(\"./shared/types\").Parser} Parser */\n/** @typedef {import(\"./shared/types\").Plugin} Plugin */\n/** @typedef {import(\"./shared/types\").Rule} Rule */\n/** @typedef {ReturnType} ConfigArray */\n\n/**\n * @typedef {Object} CascadingConfigArrayFactoryOptions\n * @property {Map} [additionalPluginPool] The map for additional plugins.\n * @property {ConfigData} [baseConfig] The config by `baseConfig` option.\n * @property {ConfigData} [cliConfig] The config by CLI options (`--env`, `--global`, `--ignore-pattern`, `--parser`, `--parser-options`, `--plugin`, and `--rule`). CLI options overwrite the setting in config files.\n * @property {string} [cwd] The base directory to start lookup.\n * @property {string} [ignorePath] The path to the alternative file of `.eslintignore`.\n * @property {string[]} [rulePaths] The value of `--rulesdir` option.\n * @property {string} [specificConfigPath] The value of `--config` option.\n * @property {boolean} [useEslintrc] if `false` then it doesn't load config files.\n * @property {Function} loadRules The function to use to load rules.\n * @property {Map} builtInRules The rules that are built in to ESLint.\n * @property {Object} [resolver=ModuleResolver] The module resolver object.\n * @property {string} eslintAllPath The path to the definitions for eslint:all.\n * @property {Function} getEslintAllConfig Returns the config data for eslint:all.\n * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.\n * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.\n */\n\n/**\n * @typedef {Object} CascadingConfigArrayFactoryInternalSlots\n * @property {ConfigArray} baseConfigArray The config array of `baseConfig` option.\n * @property {ConfigData} baseConfigData The config data of `baseConfig` option. This is used to reset `baseConfigArray`.\n * @property {ConfigArray} cliConfigArray The config array of CLI options.\n * @property {ConfigData} cliConfigData The config data of CLI options. This is used to reset `cliConfigArray`.\n * @property {ConfigArrayFactory} configArrayFactory The factory for config arrays.\n * @property {Map} configCache The cache from directory paths to config arrays.\n * @property {string} cwd The base directory to start lookup.\n * @property {WeakMap} finalizeCache The cache from config arrays to finalized config arrays.\n * @property {string} [ignorePath] The path to the alternative file of `.eslintignore`.\n * @property {string[]|null} rulePaths The value of `--rulesdir` option. This is used to reset `baseConfigArray`.\n * @property {string|null} specificConfigPath The value of `--config` option. This is used to reset `cliConfigArray`.\n * @property {boolean} useEslintrc if `false` then it doesn't load config files.\n * @property {Function} loadRules The function to use to load rules.\n * @property {Map} builtInRules The rules that are built in to ESLint.\n * @property {Object} [resolver=ModuleResolver] The module resolver object.\n * @property {string} eslintAllPath The path to the definitions for eslint:all.\n * @property {Function} getEslintAllConfig Returns the config data for eslint:all.\n * @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended.\n * @property {Function} getEslintRecommendedConfig Returns the config data for eslint:recommended.\n */\n\n/** @type {WeakMap} */\nconst internalSlotsMap = new WeakMap();\n\n/**\n * Create the config array from `baseConfig` and `rulePaths`.\n * @param {CascadingConfigArrayFactoryInternalSlots} slots The slots.\n * @returns {ConfigArray} The config array of the base configs.\n */\nfunction createBaseConfigArray({\n configArrayFactory,\n baseConfigData,\n rulePaths,\n cwd,\n loadRules\n}) {\n const baseConfigArray = configArrayFactory.create(\n baseConfigData,\n { name: \"BaseConfig\" }\n );\n\n /*\n * Create the config array element for the default ignore patterns.\n * This element has `ignorePattern` property that ignores the default\n * patterns in the current working directory.\n */\n baseConfigArray.unshift(configArrayFactory.create(\n { ignorePatterns: IgnorePattern.DefaultPatterns },\n { name: \"DefaultIgnorePattern\" }\n )[0]);\n\n /*\n * Load rules `--rulesdir` option as a pseudo plugin.\n * Use a pseudo plugin to define rules of `--rulesdir`, so we can validate\n * the rule's options with only information in the config array.\n */\n if (rulePaths && rulePaths.length > 0) {\n baseConfigArray.push({\n type: \"config\",\n name: \"--rulesdir\",\n filePath: \"\",\n plugins: {\n \"\": new ConfigDependency({\n definition: {\n rules: rulePaths.reduce(\n (map, rulesPath) => Object.assign(\n map,\n loadRules(rulesPath, cwd)\n ),\n {}\n )\n },\n filePath: \"\",\n id: \"\",\n importerName: \"--rulesdir\",\n importerPath: \"\"\n })\n }\n });\n }\n\n return baseConfigArray;\n}\n\n/**\n * Create the config array from CLI options.\n * @param {CascadingConfigArrayFactoryInternalSlots} slots The slots.\n * @returns {ConfigArray} The config array of the base configs.\n */\nfunction createCLIConfigArray({\n cliConfigData,\n configArrayFactory,\n cwd,\n ignorePath,\n specificConfigPath\n}) {\n const cliConfigArray = configArrayFactory.create(\n cliConfigData,\n { name: \"CLIOptions\" }\n );\n\n cliConfigArray.unshift(\n ...(ignorePath\n ? configArrayFactory.loadESLintIgnore(ignorePath)\n : configArrayFactory.loadDefaultESLintIgnore())\n );\n\n if (specificConfigPath) {\n cliConfigArray.unshift(\n ...configArrayFactory.loadFile(\n specificConfigPath,\n { name: \"--config\", basePath: cwd }\n )\n );\n }\n\n return cliConfigArray;\n}\n\n/**\n * The error type when there are files matched by a glob, but all of them have been ignored.\n */\nclass ConfigurationNotFoundError extends Error {\n\n // eslint-disable-next-line jsdoc/require-description\n /**\n * @param {string} directoryPath The directory path.\n */\n constructor(directoryPath) {\n super(`No ESLint configuration found in ${directoryPath}.`);\n this.messageTemplate = \"no-config-found\";\n this.messageData = { directoryPath };\n }\n}\n\n/**\n * This class provides the functionality that enumerates every file which is\n * matched by given glob patterns and that configuration.\n */\nclass CascadingConfigArrayFactory {\n\n /**\n * Initialize this enumerator.\n * @param {CascadingConfigArrayFactoryOptions} options The options.\n */\n constructor({\n additionalPluginPool = new Map(),\n baseConfig: baseConfigData = null,\n cliConfig: cliConfigData = null,\n cwd = process.cwd(),\n ignorePath,\n resolvePluginsRelativeTo,\n rulePaths = [],\n specificConfigPath = null,\n useEslintrc = true,\n builtInRules = new Map(),\n loadRules,\n resolver,\n eslintRecommendedPath,\n getEslintRecommendedConfig,\n eslintAllPath,\n getEslintAllConfig\n } = {}) {\n const configArrayFactory = new ConfigArrayFactory({\n additionalPluginPool,\n cwd,\n resolvePluginsRelativeTo,\n builtInRules,\n resolver,\n eslintRecommendedPath,\n getEslintRecommendedConfig,\n eslintAllPath,\n getEslintAllConfig\n });\n\n internalSlotsMap.set(this, {\n baseConfigArray: createBaseConfigArray({\n baseConfigData,\n configArrayFactory,\n cwd,\n rulePaths,\n loadRules\n }),\n baseConfigData,\n cliConfigArray: createCLIConfigArray({\n cliConfigData,\n configArrayFactory,\n cwd,\n ignorePath,\n specificConfigPath\n }),\n cliConfigData,\n configArrayFactory,\n configCache: new Map(),\n cwd,\n finalizeCache: new WeakMap(),\n ignorePath,\n rulePaths,\n specificConfigPath,\n useEslintrc,\n builtInRules,\n loadRules\n });\n }\n\n /**\n * The path to the current working directory.\n * This is used by tests.\n * @type {string}\n */\n get cwd() {\n const { cwd } = internalSlotsMap.get(this);\n\n return cwd;\n }\n\n /**\n * Get the config array of a given file.\n * If `filePath` was not given, it returns the config which contains only\n * `baseConfigData` and `cliConfigData`.\n * @param {string} [filePath] The file path to a file.\n * @param {Object} [options] The options.\n * @param {boolean} [options.ignoreNotFoundError] If `true` then it doesn't throw `ConfigurationNotFoundError`.\n * @returns {ConfigArray} The config array of the file.\n */\n getConfigArrayForFile(filePath, { ignoreNotFoundError = false } = {}) {\n const {\n baseConfigArray,\n cliConfigArray,\n cwd\n } = internalSlotsMap.get(this);\n\n if (!filePath) {\n return new ConfigArray(...baseConfigArray, ...cliConfigArray);\n }\n\n const directoryPath = path.dirname(path.resolve(cwd, filePath));\n\n debug(`Load config files for ${directoryPath}.`);\n\n return this._finalizeConfigArray(\n this._loadConfigInAncestors(directoryPath),\n directoryPath,\n ignoreNotFoundError\n );\n }\n\n /**\n * Set the config data to override all configs.\n * Require to call `clearCache()` method after this method is called.\n * @param {ConfigData} configData The config data to override all configs.\n * @returns {void}\n */\n setOverrideConfig(configData) {\n const slots = internalSlotsMap.get(this);\n\n slots.cliConfigData = configData;\n }\n\n /**\n * Clear config cache.\n * @returns {void}\n */\n clearCache() {\n const slots = internalSlotsMap.get(this);\n\n slots.baseConfigArray = createBaseConfigArray(slots);\n slots.cliConfigArray = createCLIConfigArray(slots);\n slots.configCache.clear();\n }\n\n /**\n * Load and normalize config files from the ancestor directories.\n * @param {string} directoryPath The path to a leaf directory.\n * @param {boolean} configsExistInSubdirs `true` if configurations exist in subdirectories.\n * @returns {ConfigArray} The loaded config.\n * @private\n */\n _loadConfigInAncestors(directoryPath, configsExistInSubdirs = false) {\n const {\n baseConfigArray,\n configArrayFactory,\n configCache,\n cwd,\n useEslintrc\n } = internalSlotsMap.get(this);\n\n if (!useEslintrc) {\n return baseConfigArray;\n }\n\n let configArray = configCache.get(directoryPath);\n\n // Hit cache.\n if (configArray) {\n debug(`Cache hit: ${directoryPath}.`);\n return configArray;\n }\n debug(`No cache found: ${directoryPath}.`);\n\n const homePath = os.homedir();\n\n // Consider this is root.\n if (directoryPath === homePath && cwd !== homePath) {\n debug(\"Stop traversing because of considered root.\");\n if (configsExistInSubdirs) {\n const filePath = ConfigArrayFactory.getPathToConfigFileInDirectory(directoryPath);\n\n if (filePath) {\n emitDeprecationWarning(\n filePath,\n \"ESLINT_PERSONAL_CONFIG_SUPPRESS\"\n );\n }\n }\n return this._cacheConfig(directoryPath, baseConfigArray);\n }\n\n // Load the config on this directory.\n try {\n configArray = configArrayFactory.loadInDirectory(directoryPath);\n } catch (error) {\n /* istanbul ignore next */\n if (error.code === \"EACCES\") {\n debug(\"Stop traversing because of 'EACCES' error.\");\n return this._cacheConfig(directoryPath, baseConfigArray);\n }\n throw error;\n }\n\n if (configArray.length > 0 && configArray.isRoot()) {\n debug(\"Stop traversing because of 'root:true'.\");\n configArray.unshift(...baseConfigArray);\n return this._cacheConfig(directoryPath, configArray);\n }\n\n // Load from the ancestors and merge it.\n const parentPath = path.dirname(directoryPath);\n const parentConfigArray = parentPath && parentPath !== directoryPath\n ? this._loadConfigInAncestors(\n parentPath,\n configsExistInSubdirs || configArray.length > 0\n )\n : baseConfigArray;\n\n if (configArray.length > 0) {\n configArray.unshift(...parentConfigArray);\n } else {\n configArray = parentConfigArray;\n }\n\n // Cache and return.\n return this._cacheConfig(directoryPath, configArray);\n }\n\n /**\n * Freeze and cache a given config.\n * @param {string} directoryPath The path to a directory as a cache key.\n * @param {ConfigArray} configArray The config array as a cache value.\n * @returns {ConfigArray} The `configArray` (frozen).\n */\n _cacheConfig(directoryPath, configArray) {\n const { configCache } = internalSlotsMap.get(this);\n\n Object.freeze(configArray);\n configCache.set(directoryPath, configArray);\n\n return configArray;\n }\n\n /**\n * Finalize a given config array.\n * Concatenate `--config` and other CLI options.\n * @param {ConfigArray} configArray The parent config array.\n * @param {string} directoryPath The path to the leaf directory to find config files.\n * @param {boolean} ignoreNotFoundError If `true` then it doesn't throw `ConfigurationNotFoundError`.\n * @returns {ConfigArray} The loaded config.\n * @private\n */\n _finalizeConfigArray(configArray, directoryPath, ignoreNotFoundError) {\n const {\n cliConfigArray,\n configArrayFactory,\n finalizeCache,\n useEslintrc,\n builtInRules\n } = internalSlotsMap.get(this);\n\n let finalConfigArray = finalizeCache.get(configArray);\n\n if (!finalConfigArray) {\n finalConfigArray = configArray;\n\n // Load the personal config if there are no regular config files.\n if (\n useEslintrc &&\n configArray.every(c => !c.filePath) &&\n cliConfigArray.every(c => !c.filePath) // `--config` option can be a file.\n ) {\n const homePath = os.homedir();\n\n debug(\"Loading the config file of the home directory:\", homePath);\n\n const personalConfigArray = configArrayFactory.loadInDirectory(\n homePath,\n { name: \"PersonalConfig\" }\n );\n\n if (\n personalConfigArray.length > 0 &&\n !directoryPath.startsWith(homePath)\n ) {\n const lastElement =\n personalConfigArray[personalConfigArray.length - 1];\n\n emitDeprecationWarning(\n lastElement.filePath,\n \"ESLINT_PERSONAL_CONFIG_LOAD\"\n );\n }\n\n finalConfigArray = finalConfigArray.concat(personalConfigArray);\n }\n\n // Apply CLI options.\n if (cliConfigArray.length > 0) {\n finalConfigArray = finalConfigArray.concat(cliConfigArray);\n }\n\n // Validate rule settings and environments.\n const validator = new ConfigValidator({\n builtInRules\n });\n\n validator.validateConfigArray(finalConfigArray);\n\n // Cache it.\n Object.freeze(finalConfigArray);\n finalizeCache.set(configArray, finalConfigArray);\n\n debug(\n \"Configuration was determined: %o on %s\",\n finalConfigArray,\n directoryPath\n );\n }\n\n // At least one element (the default ignore patterns) exists.\n if (!ignoreNotFoundError && useEslintrc && finalConfigArray.length <= 1) {\n throw new ConfigurationNotFoundError(directoryPath);\n }\n\n return finalConfigArray;\n }\n}\n\n//------------------------------------------------------------------------------\n// Public Interface\n//------------------------------------------------------------------------------\n\nexport { CascadingConfigArrayFactory };\n","/**\n * @fileoverview Compatibility class for flat config.\n * @author Nicholas C. Zakas\n */\n\n//-----------------------------------------------------------------------------\n// Requirements\n//-----------------------------------------------------------------------------\n\nimport createDebug from \"debug\";\nimport path from \"path\";\n\nimport environments from \"../conf/environments.js\";\nimport { ConfigArrayFactory } from \"./config-array-factory.js\";\n\n//-----------------------------------------------------------------------------\n// Helpers\n//-----------------------------------------------------------------------------\n\n/** @typedef {import(\"../../shared/types\").Environment} Environment */\n/** @typedef {import(\"../../shared/types\").Processor} Processor */\n\nconst debug = createDebug(\"eslintrc:flat-compat\");\nconst cafactory = Symbol(\"cafactory\");\n\n/**\n * Translates an ESLintRC-style config object into a flag-config-style config\n * object.\n * @param {Object} eslintrcConfig An ESLintRC-style config object.\n * @param {Object} options Options to help translate the config.\n * @param {string} options.resolveConfigRelativeTo To the directory to resolve\n * configs from.\n * @param {string} options.resolvePluginsRelativeTo The directory to resolve\n * plugins from.\n * @param {ReadOnlyMap} options.pluginEnvironments A map of plugin environment\n * names to objects.\n * @param {ReadOnlyMap} options.pluginProcessors A map of plugin processor\n * names to objects.\n * @returns {Object} A flag-config-style config object.\n */\nfunction translateESLintRC(eslintrcConfig, {\n resolveConfigRelativeTo,\n resolvePluginsRelativeTo,\n pluginEnvironments,\n pluginProcessors\n}) {\n\n const flatConfig = {};\n const configs = [];\n const languageOptions = {};\n const linterOptions = {};\n const keysToCopy = [\"settings\", \"rules\", \"processor\"];\n const languageOptionsKeysToCopy = [\"globals\", \"parser\", \"parserOptions\"];\n const linterOptionsKeysToCopy = [\"noInlineConfig\", \"reportUnusedDisableDirectives\"];\n\n // copy over simple translations\n for (const key of keysToCopy) {\n if (key in eslintrcConfig && typeof eslintrcConfig[key] !== \"undefined\") {\n flatConfig[key] = eslintrcConfig[key];\n }\n }\n\n // copy over languageOptions\n for (const key of languageOptionsKeysToCopy) {\n if (key in eslintrcConfig && typeof eslintrcConfig[key] !== \"undefined\") {\n\n // create the languageOptions key in the flat config\n flatConfig.languageOptions = languageOptions;\n\n if (key === \"parser\") {\n debug(`Resolving parser '${languageOptions[key]}' relative to ${resolveConfigRelativeTo}`);\n\n if (eslintrcConfig[key].error) {\n throw eslintrcConfig[key].error;\n }\n\n languageOptions[key] = eslintrcConfig[key].definition;\n continue;\n }\n\n // clone any object values that are in the eslintrc config\n if (eslintrcConfig[key] && typeof eslintrcConfig[key] === \"object\") {\n languageOptions[key] = {\n ...eslintrcConfig[key]\n };\n } else {\n languageOptions[key] = eslintrcConfig[key];\n }\n }\n }\n\n // copy over linterOptions\n for (const key of linterOptionsKeysToCopy) {\n if (key in eslintrcConfig && typeof eslintrcConfig[key] !== \"undefined\") {\n flatConfig.linterOptions = linterOptions;\n linterOptions[key] = eslintrcConfig[key];\n }\n }\n\n // move ecmaVersion a level up\n if (languageOptions.parserOptions) {\n\n if (\"ecmaVersion\" in languageOptions.parserOptions) {\n languageOptions.ecmaVersion = languageOptions.parserOptions.ecmaVersion;\n delete languageOptions.parserOptions.ecmaVersion;\n }\n\n if (\"sourceType\" in languageOptions.parserOptions) {\n languageOptions.sourceType = languageOptions.parserOptions.sourceType;\n delete languageOptions.parserOptions.sourceType;\n }\n\n // check to see if we even need parserOptions anymore and remove it if not\n if (Object.keys(languageOptions.parserOptions).length === 0) {\n delete languageOptions.parserOptions;\n }\n }\n\n // overrides\n if (eslintrcConfig.criteria) {\n flatConfig.files = [absoluteFilePath => eslintrcConfig.criteria.test(absoluteFilePath)];\n }\n\n // translate plugins\n if (eslintrcConfig.plugins && typeof eslintrcConfig.plugins === \"object\") {\n debug(`Translating plugins: ${eslintrcConfig.plugins}`);\n\n flatConfig.plugins = {};\n\n for (const pluginName of Object.keys(eslintrcConfig.plugins)) {\n\n debug(`Translating plugin: ${pluginName}`);\n debug(`Resolving plugin '${pluginName} relative to ${resolvePluginsRelativeTo}`);\n\n const { original: plugin, error } = eslintrcConfig.plugins[pluginName];\n\n if (error) {\n throw error;\n }\n\n flatConfig.plugins[pluginName] = plugin;\n\n // create a config for any processors\n if (plugin.processors) {\n for (const processorName of Object.keys(plugin.processors)) {\n if (processorName.startsWith(\".\")) {\n debug(`Assigning processor: ${pluginName}/${processorName}`);\n\n configs.unshift({\n files: [`**/*${processorName}`],\n processor: pluginProcessors.get(`${pluginName}/${processorName}`)\n });\n }\n\n }\n }\n }\n }\n\n // translate env - must come after plugins\n if (eslintrcConfig.env && typeof eslintrcConfig.env === \"object\") {\n for (const envName of Object.keys(eslintrcConfig.env)) {\n\n // only add environments that are true\n if (eslintrcConfig.env[envName]) {\n debug(`Translating environment: ${envName}`);\n\n if (environments.has(envName)) {\n\n // built-in environments should be defined first\n configs.unshift(...translateESLintRC({\n criteria: eslintrcConfig.criteria,\n ...environments.get(envName)\n }, {\n resolveConfigRelativeTo,\n resolvePluginsRelativeTo\n }));\n } else if (pluginEnvironments.has(envName)) {\n\n // if the environment comes from a plugin, it should come after the plugin config\n configs.push(...translateESLintRC({\n criteria: eslintrcConfig.criteria,\n ...pluginEnvironments.get(envName)\n }, {\n resolveConfigRelativeTo,\n resolvePluginsRelativeTo\n }));\n }\n }\n }\n }\n\n // only add if there are actually keys in the config\n if (Object.keys(flatConfig).length > 0) {\n configs.push(flatConfig);\n }\n\n return configs;\n}\n\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\n/**\n * A compatibility class for working with configs.\n */\nclass FlatCompat {\n\n constructor({\n baseDirectory = process.cwd(),\n resolvePluginsRelativeTo = baseDirectory,\n recommendedConfig,\n allConfig\n } = {}) {\n this.baseDirectory = baseDirectory;\n this.resolvePluginsRelativeTo = resolvePluginsRelativeTo;\n this[cafactory] = new ConfigArrayFactory({\n cwd: baseDirectory,\n resolvePluginsRelativeTo,\n getEslintAllConfig: () => {\n\n if (!allConfig) {\n throw new TypeError(\"Missing parameter 'allConfig' in FlatCompat constructor.\");\n }\n\n return allConfig;\n },\n getEslintRecommendedConfig: () => {\n\n if (!recommendedConfig) {\n throw new TypeError(\"Missing parameter 'recommendedConfig' in FlatCompat constructor.\");\n }\n\n return recommendedConfig;\n }\n });\n }\n\n /**\n * Translates an ESLintRC-style config into a flag-config-style config.\n * @param {Object} eslintrcConfig The ESLintRC-style config object.\n * @returns {Object} A flag-config-style config object.\n */\n config(eslintrcConfig) {\n const eslintrcArray = this[cafactory].create(eslintrcConfig, {\n basePath: this.baseDirectory\n });\n\n const flatArray = [];\n let hasIgnorePatterns = false;\n\n eslintrcArray.forEach(configData => {\n if (configData.type === \"config\") {\n hasIgnorePatterns = hasIgnorePatterns || configData.ignorePattern;\n flatArray.push(...translateESLintRC(configData, {\n resolveConfigRelativeTo: path.join(this.baseDirectory, \"__placeholder.js\"),\n resolvePluginsRelativeTo: path.join(this.resolvePluginsRelativeTo, \"__placeholder.js\"),\n pluginEnvironments: eslintrcArray.pluginEnvironments,\n pluginProcessors: eslintrcArray.pluginProcessors\n }));\n }\n });\n\n // combine ignorePatterns to emulate ESLintRC behavior better\n if (hasIgnorePatterns) {\n flatArray.unshift({\n ignores: [filePath => {\n\n // Compute the final config for this file.\n // This filters config array elements by `files`/`excludedFiles` then merges the elements.\n const finalConfig = eslintrcArray.extractConfig(filePath);\n\n // Test the `ignorePattern` properties of the final config.\n return Boolean(finalConfig.ignores) && finalConfig.ignores(filePath);\n }]\n });\n }\n\n return flatArray;\n }\n\n /**\n * Translates the `env` section of an ESLintRC-style config.\n * @param {Object} envConfig The `env` section of an ESLintRC config.\n * @returns {Object[]} An array of flag-config objects representing the environments.\n */\n env(envConfig) {\n return this.config({\n env: envConfig\n });\n }\n\n /**\n * Translates the `extends` section of an ESLintRC-style config.\n * @param {...string} configsToExtend The names of the configs to load.\n * @returns {Object[]} An array of flag-config objects representing the config.\n */\n extends(...configsToExtend) {\n return this.config({\n extends: configsToExtend\n });\n }\n\n /**\n * Translates the `plugins` section of an ESLintRC-style config.\n * @param {...string} plugins The names of the plugins to load.\n * @returns {Object[]} An array of flag-config objects representing the plugins.\n */\n plugins(...plugins) {\n return this.config({\n plugins\n });\n }\n}\n\nexport { FlatCompat };\n","/**\n * @fileoverview Package exports for @eslint/eslintrc\n * @author Nicholas C. Zakas\n */\n//------------------------------------------------------------------------------\n// Requirements\n//------------------------------------------------------------------------------\n\nimport {\n ConfigArrayFactory,\n createContext as createConfigArrayFactoryContext\n} from \"./config-array-factory.js\";\n\nimport { CascadingConfigArrayFactory } from \"./cascading-config-array-factory.js\";\nimport * as ModuleResolver from \"./shared/relative-module-resolver.js\";\nimport { ConfigArray, getUsedExtractedConfigs } from \"./config-array/index.js\";\nimport { ConfigDependency } from \"./config-array/config-dependency.js\";\nimport { ExtractedConfig } from \"./config-array/extracted-config.js\";\nimport { IgnorePattern } from \"./config-array/ignore-pattern.js\";\nimport { OverrideTester } from \"./config-array/override-tester.js\";\nimport * as ConfigOps from \"./shared/config-ops.js\";\nimport ConfigValidator from \"./shared/config-validator.js\";\nimport * as naming from \"./shared/naming.js\";\nimport { FlatCompat } from \"./flat-compat.js\";\nimport environments from \"../conf/environments.js\";\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\nconst Legacy = {\n ConfigArray,\n createConfigArrayFactoryContext,\n CascadingConfigArrayFactory,\n ConfigArrayFactory,\n ConfigDependency,\n ExtractedConfig,\n IgnorePattern,\n OverrideTester,\n getUsedExtractedConfigs,\n environments,\n\n // shared\n ConfigOps,\n ConfigValidator,\n ModuleResolver,\n naming\n};\n\nexport {\n\n Legacy,\n\n FlatCompat\n\n};\n"],"names":["debug","debugOrig","path","ignore","assert","internalSlotsMap","util","minimatch","Ajv","globals","BuiltInEnvironments","ConfigOps.normalizeConfigGlobal","Module","require","createRequire","fs","stripComments","importFresh","ModuleResolver.resolve","naming.normalizePackageName","naming.getShorthandName","os","createDebug","createConfigArrayFactoryContext"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAUA;AACA,MAAMA,OAAK,GAAGC,6BAAS,CAAC,yBAAyB,CAAC,CAAC;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,qBAAqB,CAAC,WAAW,EAAE;AAC5C,IAAI,IAAI,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;AAChC;AACA,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;AACjD,QAAQ,MAAM,CAAC,GAAG,MAAM,CAAC;AACzB,QAAQ,MAAM,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;AACjC;AACA;AACA,QAAQ,MAAM,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,CAAC;AAC7C;AACA;AACA,QAAQ,KAAK,IAAI,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AAC,QAAQ,CAAC,UAAU,CAAC;AAC9C,UAAU;AACV,YAAY,KAAK,CAAC,OAAO,IAAI,CAAC,oBAAoB,EAAE,cAAc,CAAC,CAAC,CAAC;AACrE,SAAS;AACT,QAAQ,MAAM,KAAK,CAAC;AACpB,KAAK;AACL;;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAsBA;AACA,MAAMC,SAAO,GAAGC,oBAAa,CAAC,mDAAe,CAAC,CAAC;AAC/C;AACA,MAAMd,OAAK,GAAGC,6BAAS,CAAC,+BAA+B,CAAC,CAAC;AACzD;AACA;AACA;AACA;AACA;AACA,MAAM,eAAe,GAAG;AACxB,IAAI,cAAc;AAClB,IAAI,eAAe;AACnB,IAAI,gBAAgB;AACpB,IAAI,eAAe;AACnB,IAAI,gBAAgB;AACpB,IAAI,WAAW;AACf,IAAI,cAAc;AAClB,CAAC,CAAC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMI,kBAAgB,GAAG,IAAI,OAAO,EAAE,CAAC;AACvC;AACA;AACA,MAAM,iBAAiB,GAAG,IAAI,OAAO,EAAE,CAAC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,UAAU,CAAC,UAAU,EAAE;AAChC,IAAI;AACJ,QAAQ,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC;AACzC,QAAQH,wBAAI,CAAC,UAAU,CAAC,UA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,CAAC;AAClB,aAAa,CAAC,CAAC;AACf,SAAS;AACT;AACA,QAAQ,OAAO,SAAS,CAAC;AACzB,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,GAAG,CAAC,SAAS,EAAE;AACnB,QAAQ,OAAO,IAAI,CAAC,MAAM,CAAC;AAC3B,YAAY,GAAG,EAAE,SAAS;AAC1B,SAAS,CAAC,CAAC;AACX,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,OAAO,CAAC,GAAG,eAAe,EAAE;AAChC,QAAQ,OAAO,IAAI,CAAC,MAAM,CAAC;AAC3B,YAAY,OAAO,EAAE,eAAe;AACpC,SAAS,CAAC,CAAC;AACX,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,OAAO,CAAC,GAAG,OAAO,EAAE;AACxB,QAAQ,OAAO,IAAI,CAAC,MAAM,CAAC;AAC3B,YAAY,OAAO;AACnB,SAAS,CAAC,CAAC;AACX,KAAK;AACL;;AC3TA;AACA;AACA;AACA;AAsBA;AACA;AACA;AACA;AACA;AACK,MAAC,MAAM,GAAG;AACf,IAAI,WAAW;AACf,qCAAIqB,aAA+B;AACnC,IAAI,2BAA2B;AAC/B,IAAI,kBAAkB;AACtB,IAAI,gBAAgB;AACpB,IAAI,eAAe;AACnB,IAAI,aAAa;AACjB,IAAI,cAAc;AAClB,IAAI,uBAAuB;AAC3B,IAAI,YAAY;AAChB;AACA;AACA,IAAI,SAAS;AACb,IAAI,eAAe;AACnB,IAAI,cAAc;AAClB,IAAI,MAAM;AACV;;;;;"} \ No newline at end of file diff --git a/node_modules/@humanwhocodes/module-importer/dist/module-importer.cjs b/node_modules/@humanwhocodes/module-importer/dist/module-importer.cjs deleted file mode 100644 index 779e0cf6..00000000 --- a/node_modules/@humanwhocodes/module-importer/dist/module-importer.cjs +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var module$1 = require('module'); -var url = require('url'); -var path = require('path'); - -/** - * @fileoverview Universal module importer - */ - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -const __filename$1 = url.fileURLToPath((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('module-importer.cjs', document.baseURI).href))); -const __dirname$1 = path.dirname(__filename$1); -const require$1 = module$1.createRequire(__dirname$1 + "/"); -const { ModuleImporter } = require$1("./module-importer.cjs"); - -exports.ModuleImporter = ModuleImporter; diff --git a/node_modules/@humanwhocodes/module-importer/dist/module-importer.d.cts b/node_modules/@humanwhocodes/module-importer/dist/module-importer.d.cts deleted file mode 100644 index a1acbb6d..00000000 --- a/node_modules/@humanwhocodes/module-importer/dist/module-importer.d.cts +++ /dev/null @@ -1,27 +0,0 @@ -export class ModuleImporter { - /** - * Creates a new instance. - * @param {string} [cwd] The current working directory to resolve from. - */ - constructor(cwd?: string); - /** - * The base directory from which paths should be resolved. - * @type {string} - */ - cwd: string; - /** - * Resolves a module based on its name or location. - * @param {string} specifier Either an npm package name or - * relative file path. - * @returns {string|undefined} The location of the import. - * @throws {Error} If specifier cannot be located. - */ - resolve(specifier: string): string | undefined; - /** - * Imports a module based on its name or location. - * @param {string} specifier Either an npm package name or - * relative file path. - * @returns {Promise} The module's object. - */ - import(specifier: string): Promise; -} diff --git a/node_modules/@humanwhocodes/module-importer/dist/module-importer.d.ts b/node_modules/@humanwhocodes/module-importer/dist/module-importer.d.ts deleted file mode 100644 index 498f0a24..00000000 --- a/node_modules/@humanwhocodes/module-importer/dist/module-importer.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { ModuleImporter }; -import { ModuleImporter } from "./module-importer.cjs"; diff --git a/node_modules/@humanwhocodes/module-importer/dist/module-importer.js b/node_modules/@humanwhocodes/module-importer/dist/module-importer.js deleted file mode 100644 index 26e052da..00000000 --- a/node_modules/@humanwhocodes/module-importer/dist/module-importer.js +++ /dev/null @@ -1,18 +0,0 @@ -import { createRequire } from 'module'; -import { fileURLToPath } from 'url'; -import { dirname } from 'path'; - -/** - * @fileoverview Universal module importer - */ - -//----------------------------------------------------------------------------- -// Helpers -//----------------------------------------------------------------------------- - -const __filename = fileURLToPath(import.meta.url); -const __dirname = dirname(__filename); -const require = createRequire(__dirname + "/"); -const { ModuleImporter } = require("./module-importer.cjs"); - -export { ModuleImporter }; diff --git a/node_modules/@isaacs/cliui/LICENSE.txt b/node_modules/@isaacs/cliui/LICENSE.txt new file mode 100644 index 00000000..c7e27478 --- /dev/null +++ b/node_modules/@isaacs/cliui/LICENSE.txt @@ -0,0 +1,14 @@ +Copyright (c) 2015, Contributors + +Permission to use, copy, modify, and/or distribute this software +for any purpose with or without fee is hereby granted, provided +that the above copyright notice and this permission notice +appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE +LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES +OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/@isaacs/cliui/README.md b/node_modules/@isaacs/cliui/README.md new file mode 100644 index 00000000..48806426 --- /dev/null +++ b/node_modules/@isaacs/cliui/README.md @@ -0,0 +1,143 @@ +# @isaacs/cliui + +Temporary fork of [cliui](http://npm.im/cliui). + +![ci](https://github.com/yargs/cliui/workflows/ci/badge.svg) +[![NPM version](https://img.shields.io/npm/v/cliui.svg)](https://www.npmjs.com/package/cliui) +[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) +![nycrc config on GitHub](https://img.shields.io/nycrc/yargs/cliui) + +easily create complex multi-column command-line-interfaces. + +## Example + +```js +const ui = require('cliui')() + +ui.div('Usage: $0 [command] [options]') + +ui.div({ + text: 'Options:', + padding: [2, 0, 1, 0] +}) + +ui.div( + { + text: "-f, --file", + width: 20, + padding: [0, 4, 0, 4] + }, + { + text: "the file to load." + + chalk.green("(if this description is long it wraps).") + , + width: 20 + }, + { + text: chalk.red("[required]"), + align: 'right' + } +) + +console.log(ui.toString()) +``` + +## Deno/ESM Support + +As of `v7` `cliui` supports [Deno](https://github.com/denoland/deno) and +[ESM](https://nodejs.org/api/esm.html#esm_ecmascript_modules): + +```typescript +import cliui from "https://deno.land/x/cliui/deno.ts"; + +const ui = cliui({}) + +ui.div('Usage: $0 [command] [options]') + +ui.div({ + text: 'Options:', + padding: [2, 0, 1, 0] +}) + +ui.div({ + text: "-f, --file", + width: 20, + padding: [0, 4, 0, 4] +}) + +console.log(ui.toString()) +``` + + + +## Layout DSL + +cliui exposes a simple layout DSL: + +If you create a single `ui.div`, passing a string rather than an +object: + +* `\n`: characters will be interpreted as new rows. +* `\t`: characters will be interpreted as new columns. +* `\s`: characters will be interpreted as padding. + +**as an example...** + +```js +var ui = require('./')({ + width: 60 +}) + +ui.div( + 'Usage: node ./bin/foo.js\n' + + ' \t provide a regex\n' + + ' \t provide a glob\t [required]' +) + +console.log(ui.toString()) +``` + +**will output:** + +```shell +Usage: node ./bin/foo.js + provide a regex + provide a glob [required] +``` + +## Methods + +```js +cliui = require('cliui') +``` + +### cliui({width: integer}) + +Specify the maximum width of the UI being generated. +If no width is provided, cliui will try to get the current window's width and use it, and if that doesn't work, width will be set to `80`. + +### cliui({wrap: boolean}) + +Enable or disable the wrapping of text in a column. + +### cliui.div(column, column, column) + +Create a row with any number of columns, a column +can either be a string, or an object with the following +options: + +* **text:** some text to place in the column. +* **width:** the width of a column. +* **align:** alignment, `right` or `center`. +* **padding:** `[top, right, bottom, left]`. +* **border:** should a border be placed around the div? + +### cliui.span(column, column, column) + +Similar to `div`, except the next row will be appended without +a new line being created. + +### cliui.resetOutput() + +Resets the UI elements of the current cliui instance, maintaining the values +set for `width` and `wrap`. diff --git a/node_modules/@isaacs/cliui/build/index.cjs b/node_modules/@isaacs/cliui/build/index.cjs new file mode 100644 index 00000000..aca2b850 --- /dev/null +++ b/node_modules/@isaacs/cliui/build/index.cjs @@ -0,0 +1,317 @@ +'use strict'; + +const align = { + right: alignRight, + center: alignCenter +}; +const top = 0; +const right = 1; +const bottom = 2; +const left = 3; +class UI { + constructor(opts) { + var _a; + this.width = opts.width; + /* c8 ignore start */ + this.wrap = (_a = opts.wrap) !== null && _a !== void 0 ? _a : true; + /* c8 ignore stop */ + this.rows = []; + } + span(...args) { + const cols = this.div(...args); + cols.span = true; + } + resetOutput() { + this.rows = []; + } + div(...args) { + if (args.length === 0) { + this.div(''); + } + if (this.wrap && this.shouldApplyLayoutDSL(...args) && typeof args[0] === 'string') { + return this.applyLayoutDSL(args[0]); + } + const cols = args.map(arg => { + if (typeof arg === 'string') { + return this.colFromString(arg); + } + return arg; + }); + this.rows.push(cols); + return cols; + } + shouldApplyLayoutDSL(...args) { + return args.length === 1 && typeof args[0] === 'string' && + /[\t\n]/.test(args[0]); + } + applyLayoutDSL(str) { + const rows = str.split('\n').map(row => row.split('\t')); + let leftColumnWidth = 0; + // simple heuristic for layout, make sure the + // second column lines up along the left-hand. + // don't allow the first column to take up more + // than 50% of the screen. + rows.forEach(columns => { + if (columns.length > 1 && mixin.stringWidth(columns[0]) > leftColumnWidth) { + leftColumnWidth = Math.min(Math.floor(this.width * 0.5), mixin.stringWidth(columns[0])); + } + }); + // generate a table: + // replacing ' ' with padding calculations. + // using the algorithmically generated width. + rows.forEach(columns => { + this.div(...columns.map((r, i) => { + return { + text: r.trim(), + padding: this.measurePadding(r), + width: (i === 0 && columns.length > 1) ? leftColumnWidth : undefined + }; + })); + }); + return this.rows[this.rows.length - 1]; + } + colFromString(text) { + return { + text, + padding: this.measurePadding(text) + }; + } + measurePadding(str) { + // measure padding without ansi escape codes + const noAnsi = mixin.stripAnsi(str); + return [0, noAnsi.match(/\s*$/)[0].length, 0, noAnsi.match(/^\s*/)[0].length]; + } + toString() { + const lines = []; + this.rows.forEach(row => { + this.rowToString(row, lines); + }); + // don't display any lines with the + // hidden flag set. + return lines + .filter(line => !line.hidden) + .map(line => line.text) + .join('\n'); + } + rowToString(row, lines) { + this.rasterize(row).forEach((rrow, r) => { + let str = ''; + rrow.forEach((col, c) => { + const { width } = row[c]; // the width with padding. + const wrapWidth = this.negatePadding(row[c]); // the width without padding. + let ts = col; // temporary string used during alignment/padding. + if (wrapWidth > mixin.stringWidth(col)) { + ts += ' '.repeat(wrapWidth - mixin.stringWidth(col)); + } + // align the string within its column. + if (row[c].align && row[c].align !== 'left' && this.wrap) { + const fn = align[row[c].align]; + ts = fn(ts, wrapWidth); + if (mixin.stringWidth(ts) < wrapWidth) { + /* c8 ignore start */ + const w = width || 0; + /* c8 ignore stop */ + ts += ' '.repeat(w - mixin.stringWidth(ts) - 1); + } + } + // apply border and padding to string. + const padding = row[c].padding || [0, 0, 0, 0]; + if (padding[left]) { + str += ' '.repeat(padding[left]); + } + str += addBorder(row[c], ts, '| '); + str += ts; + str += addBorder(row[c], ts, ' |'); + if (padding[right]) { + str += ' '.repeat(padding[right]); + } + // if prior row is span, try to render the + // current row on the prior line. + if (r === 0 && lines.length > 0) { + str = this.renderInline(str, lines[lines.length - 1]); + } + }); + // remove trailing whitespace. + lines.push({ + text: str.replace(/ +$/, ''), + span: row.span + }); + }); + return lines; + } + // if the full 'source' can render in + // the target line, do so. + renderInline(source, previousLine) { + const match = source.match(/^ */); + /* c8 ignore start */ + const leadingWhitespace = match ? match[0].length : 0; + /* c8 ignore stop */ + const target = previousLine.text; + const targetTextWidth = mixin.stringWidth(target.trimEnd()); + if (!previousLine.span) { + return source; + } + // if we're not applying wrapping logic, + // just always append to the span. + if (!this.wrap) { + previousLine.hidden = true; + return target + source; + } + if (leadingWhitespace < targetTextWidth) { + return source; + } + previousLine.hidden = true; + return target.trimEnd() + ' '.repeat(leadingWhitespace - targetTextWidth) + source.trimStart(); + } + rasterize(row) { + const rrows = []; + const widths = this.columnWidths(row); + let wrapped; + // word wrap all columns, and create + // a data-structure that is easy to rasterize. + row.forEach((col, c) => { + // leave room for left and right padding. + col.width = widths[c]; + if (this.wrap) { + wrapped = mixin.wrap(col.text, this.negatePadding(col), { hard: true }).split('\n'); + } + else { + wrapped = col.text.split('\n'); + } + if (col.border) { + wrapped.unshift('.' + '-'.repeat(this.negatePadding(col) + 2) + '.'); + wrapped.push("'" + '-'.repeat(this.negatePadding(col) + 2) + "'"); + } + // add top and bottom padding. + if (col.padding) { + wrapped.unshift(...new Array(col.padding[top] || 0).fill('')); + wrapped.push(...new Array(col.padding[bottom] || 0).fill('')); + } + wrapped.forEach((str, r) => { + if (!rrows[r]) { + rrows.push([]); + } + const rrow = rrows[r]; + for (let i = 0; i < c; i++) { + if (rrow[i] === undefined) { + rrow.push(''); + } + } + rrow.push(str); + }); + }); + return rrows; + } + negatePadding(col) { + /* c8 ignore start */ + let wrapWidth = col.width || 0; + /* c8 ignore stop */ + if (col.padding) { + wrapWidth -= (col.padding[left] || 0) + (col.padding[right] || 0); + } + if (col.border) { + wrapWidth -= 4; + } + return wrapWidth; + } + columnWidths(row) { + if (!this.wrap) { + return row.map(col => { + return col.width || mixin.stringWidth(col.text); + }); + } + let unset = row.length; + let remainingWidth = this.width; + // column widths can be set in config. + const widths = row.map(col => { + if (col.width) { + unset--; + remainingWidth -= col.width; + return col.width; + } + return undefined; + }); + // any unset widths should be calculated. + /* c8 ignore start */ + const unsetWidth = unset ? Math.floor(remainingWidth / unset) : 0; + /* c8 ignore stop */ + return widths.map((w, i) => { + if (w === undefined) { + return Math.max(unsetWidth, _minWidth(row[i])); + } + return w; + }); + } +} +function addBorder(col, ts, style) { + if (col.border) { + if (/[.']-+[.']/.test(ts)) { + return ''; + } + if (ts.trim().length !== 0) { + return style; + } + return ' '; + } + return ''; +} +// calculates the minimum width of +// a column, based on padding preferences. +function _minWidth(col) { + const padding = col.padding || []; + const minWidth = 1 + (padding[left] || 0) + (padding[right] || 0); + if (col.border) { + return minWidth + 4; + } + return minWidth; +} +function getWindowWidth() { + /* c8 ignore start */ + if (typeof process === 'object' && process.stdout && process.stdout.columns) { + return process.stdout.columns; + } + return 80; +} +/* c8 ignore stop */ +function alignRight(str, width) { + str = str.trim(); + const strWidth = mixin.stringWidth(str); + if (strWidth < width) { + return ' '.repeat(width - strWidth) + str; + } + return str; +} +function alignCenter(str, width) { + str = str.trim(); + const strWidth = mixin.stringWidth(str); + /* c8 ignore start */ + if (strWidth >= width) { + return str; + } + /* c8 ignore stop */ + return ' '.repeat((width - strWidth) >> 1) + str; +} +let mixin; +function cliui(opts, _mixin) { + mixin = _mixin; + return new UI({ + /* c8 ignore start */ + width: (opts === null || opts === void 0 ? void 0 : opts.width) || getWindowWidth(), + wrap: opts === null || opts === void 0 ? void 0 : opts.wrap + /* c8 ignore stop */ + }); +} + +// Bootstrap cliui with CommonJS dependencies: +const stringWidth = require('string-width-cjs'); +const stripAnsi = require('strip-ansi-cjs'); +const wrap = require('wrap-ansi-cjs'); +function ui(opts) { + return cliui(opts, { + stringWidth, + stripAnsi, + wrap + }); +} + +module.exports = ui; diff --git a/node_modules/@isaacs/cliui/build/index.d.cts b/node_modules/@isaacs/cliui/build/index.d.cts new file mode 100644 index 00000000..4567f945 --- /dev/null +++ b/node_modules/@isaacs/cliui/build/index.d.cts @@ -0,0 +1,43 @@ +interface UIOptions { + width: number; + wrap?: boolean; + rows?: string[]; +} +interface Column { + text: string; + width?: number; + align?: "right" | "left" | "center"; + padding: number[]; + border?: boolean; +} +interface ColumnArray extends Array { + span: boolean; +} +interface Line { + hidden?: boolean; + text: string; + span?: boolean; +} +declare class UI { + width: number; + wrap: boolean; + rows: ColumnArray[]; + constructor(opts: UIOptions); + span(...args: ColumnArray): void; + resetOutput(): void; + div(...args: (Column | string)[]): ColumnArray; + private shouldApplyLayoutDSL; + private applyLayoutDSL; + private colFromString; + private measurePadding; + toString(): string; + rowToString(row: ColumnArray, lines: Line[]): Line[]; + // if the full 'source' can render in + // the target line, do so. + private renderInline; + private rasterize; + private negatePadding; + private columnWidths; +} +declare function ui(opts: UIOptions): UI; +export { ui as default }; diff --git a/node_modules/@isaacs/cliui/build/lib/index.js b/node_modules/@isaacs/cliui/build/lib/index.js new file mode 100644 index 00000000..587b5ecd --- /dev/null +++ b/node_modules/@isaacs/cliui/build/lib/index.js @@ -0,0 +1,302 @@ +'use strict'; +const align = { + right: alignRight, + center: alignCenter +}; +const top = 0; +const right = 1; +const bottom = 2; +const left = 3; +export class UI { + constructor(opts) { + var _a; + this.width = opts.width; + /* c8 ignore start */ + this.wrap = (_a = opts.wrap) !== null && _a !== void 0 ? _a : true; + /* c8 ignore stop */ + this.rows = []; + } + span(...args) { + const cols = this.div(...args); + cols.span = true; + } + resetOutput() { + this.rows = []; + } + div(...args) { + if (args.length === 0) { + this.div(''); + } + if (this.wrap && this.shouldApplyLayoutDSL(...args) && typeof args[0] === 'string') { + return this.applyLayoutDSL(args[0]); + } + const cols = args.map(arg => { + if (typeof arg === 'string') { + return this.colFromString(arg); + } + return arg; + }); + this.rows.push(cols); + return cols; + } + shouldApplyLayoutDSL(...args) { + return args.length === 1 && typeof args[0] === 'string' && + /[\t\n]/.test(args[0]); + } + applyLayoutDSL(str) { + const rows = str.split('\n').map(row => row.split('\t')); + let leftColumnWidth = 0; + // simple heuristic for layout, make sure the + // second column lines up along the left-hand. + // don't allow the first column to take up more + // than 50% of the screen. + rows.forEach(columns => { + if (columns.length > 1 && mixin.stringWidth(columns[0]) > leftColumnWidth) { + leftColumnWidth = Math.min(Math.floor(this.width * 0.5), mixin.stringWidth(columns[0])); + } + }); + // generate a table: + // replacing ' ' with padding calculations. + // using the algorithmically generated width. + rows.forEach(columns => { + this.div(...columns.map((r, i) => { + return { + text: r.trim(), + padding: this.measurePadding(r), + width: (i === 0 && columns.length > 1) ? leftColumnWidth : undefined + }; + })); + }); + return this.rows[this.rows.length - 1]; + } + colFromString(text) { + return { + text, + padding: this.measurePadding(text) + }; + } + measurePadding(str) { + // measure padding without ansi escape codes + const noAnsi = mixin.stripAnsi(str); + return [0, noAnsi.match(/\s*$/)[0].length, 0, noAnsi.match(/^\s*/)[0].length]; + } + toString() { + const lines = []; + this.rows.forEach(row => { + this.rowToString(row, lines); + }); + // don't display any lines with the + // hidden flag set. + return lines + .filter(line => !line.hidden) + .map(line => line.text) + .join('\n'); + } + rowToString(row, lines) { + this.rasterize(row).forEach((rrow, r) => { + let str = ''; + rrow.forEach((col, c) => { + const { width } = row[c]; // the width with padding. + const wrapWidth = this.negatePadding(row[c]); // the width without padding. + let ts = col; // temporary string used during alignment/padding. + if (wrapWidth > mixin.stringWidth(col)) { + ts += ' '.repeat(wrapWidth - mixin.stringWidth(col)); + } + // align the string within its column. + if (row[c].align && row[c].align !== 'left' && this.wrap) { + const fn = align[row[c].align]; + ts = fn(ts, wrapWidth); + if (mixin.stringWidth(ts) < wrapWidth) { + /* c8 ignore start */ + const w = width || 0; + /* c8 ignore stop */ + ts += ' '.repeat(w - mixin.stringWidth(ts) - 1); + } + } + // apply border and padding to string. + const padding = row[c].padding || [0, 0, 0, 0]; + if (padding[left]) { + str += ' '.repeat(padding[left]); + } + str += addBorder(row[c], ts, '| '); + str += ts; + str += addBorder(row[c], ts, ' |'); + if (padding[right]) { + str += ' '.repeat(padding[right]); + } + // if prior row is span, try to render the + // current row on the prior line. + if (r === 0 && lines.length > 0) { + str = this.renderInline(str, lines[lines.length - 1]); + } + }); + // remove trailing whitespace. + lines.push({ + text: str.replace(/ +$/, ''), + span: row.span + }); + }); + return lines; + } + // if the full 'source' can render in + // the target line, do so. + renderInline(source, previousLine) { + const match = source.match(/^ */); + /* c8 ignore start */ + const leadingWhitespace = match ? match[0].length : 0; + /* c8 ignore stop */ + const target = previousLine.text; + const targetTextWidth = mixin.stringWidth(target.trimEnd()); + if (!previousLine.span) { + return source; + } + // if we're not applying wrapping logic, + // just always append to the span. + if (!this.wrap) { + previousLine.hidden = true; + return target + source; + } + if (leadingWhitespace < targetTextWidth) { + return source; + } + previousLine.hidden = true; + return target.trimEnd() + ' '.repeat(leadingWhitespace - targetTextWidth) + source.trimStart(); + } + rasterize(row) { + const rrows = []; + const widths = this.columnWidths(row); + let wrapped; + // word wrap all columns, and create + // a data-structure that is easy to rasterize. + row.forEach((col, c) => { + // leave room for left and right padding. + col.width = widths[c]; + if (this.wrap) { + wrapped = mixin.wrap(col.text, this.negatePadding(col), { hard: true }).split('\n'); + } + else { + wrapped = col.text.split('\n'); + } + if (col.border) { + wrapped.unshift('.' + '-'.repeat(this.negatePadding(col) + 2) + '.'); + wrapped.push("'" + '-'.repeat(this.negatePadding(col) + 2) + "'"); + } + // add top and bottom padding. + if (col.padding) { + wrapped.unshift(...new Array(col.padding[top] || 0).fill('')); + wrapped.push(...new Array(col.padding[bottom] || 0).fill('')); + } + wrapped.forEach((str, r) => { + if (!rrows[r]) { + rrows.push([]); + } + const rrow = rrows[r]; + for (let i = 0; i < c; i++) { + if (rrow[i] === undefined) { + rrow.push(''); + } + } + rrow.push(str); + }); + }); + return rrows; + } + negatePadding(col) { + /* c8 ignore start */ + let wrapWidth = col.width || 0; + /* c8 ignore stop */ + if (col.padding) { + wrapWidth -= (col.padding[left] || 0) + (col.padding[right] || 0); + } + if (col.border) { + wrapWidth -= 4; + } + return wrapWidth; + } + columnWidths(row) { + if (!this.wrap) { + return row.map(col => { + return col.width || mixin.stringWidth(col.text); + }); + } + let unset = row.length; + let remainingWidth = this.width; + // column widths can be set in config. + const widths = row.map(col => { + if (col.width) { + unset--; + remainingWidth -= col.width; + return col.width; + } + return undefined; + }); + // any unset widths should be calculated. + /* c8 ignore start */ + const unsetWidth = unset ? Math.floor(remainingWidth / unset) : 0; + /* c8 ignore stop */ + return widths.map((w, i) => { + if (w === undefined) { + return Math.max(unsetWidth, _minWidth(row[i])); + } + return w; + }); + } +} +function addBorder(col, ts, style) { + if (col.border) { + if (/[.']-+[.']/.test(ts)) { + return ''; + } + if (ts.trim().length !== 0) { + return style; + } + return ' '; + } + return ''; +} +// calculates the minimum width of +// a column, based on padding preferences. +function _minWidth(col) { + const padding = col.padding || []; + const minWidth = 1 + (padding[left] || 0) + (padding[right] || 0); + if (col.border) { + return minWidth + 4; + } + return minWidth; +} +function getWindowWidth() { + /* c8 ignore start */ + if (typeof process === 'object' && process.stdout && process.stdout.columns) { + return process.stdout.columns; + } + return 80; +} +/* c8 ignore stop */ +function alignRight(str, width) { + str = str.trim(); + const strWidth = mixin.stringWidth(str); + if (strWidth < width) { + return ' '.repeat(width - strWidth) + str; + } + return str; +} +function alignCenter(str, width) { + str = str.trim(); + const strWidth = mixin.stringWidth(str); + /* c8 ignore start */ + if (strWidth >= width) { + return str; + } + /* c8 ignore stop */ + return ' '.repeat((width - strWidth) >> 1) + str; +} +let mixin; +export function cliui(opts, _mixin) { + mixin = _mixin; + return new UI({ + /* c8 ignore start */ + width: (opts === null || opts === void 0 ? void 0 : opts.width) || getWindowWidth(), + wrap: opts === null || opts === void 0 ? void 0 : opts.wrap + /* c8 ignore stop */ + }); +} diff --git a/node_modules/@isaacs/cliui/index.mjs b/node_modules/@isaacs/cliui/index.mjs new file mode 100644 index 00000000..5177519a --- /dev/null +++ b/node_modules/@isaacs/cliui/index.mjs @@ -0,0 +1,14 @@ +// Bootstrap cliui with ESM dependencies: +import { cliui } from './build/lib/index.js' + +import stringWidth from 'string-width' +import stripAnsi from 'strip-ansi' +import wrap from 'wrap-ansi' + +export default function ui (opts) { + return cliui(opts, { + stringWidth, + stripAnsi, + wrap + }) +} diff --git a/node_modules/@isaacs/cliui/node_modules/ansi-regex/index.d.ts b/node_modules/@isaacs/cliui/node_modules/ansi-regex/index.d.ts new file mode 100644 index 00000000..50ef64dc --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/ansi-regex/index.d.ts @@ -0,0 +1,33 @@ +export interface Options { + /** + Match only the first ANSI escape. + + @default false + */ + readonly onlyFirst: boolean; +} + +/** +Regular expression for matching ANSI escape codes. + +@example +``` +import ansiRegex from 'ansi-regex'; + +ansiRegex().test('\u001B[4mcake\u001B[0m'); +//=> true + +ansiRegex().test('cake'); +//=> false + +'\u001B[4mcake\u001B[0m'.match(ansiRegex()); +//=> ['\u001B[4m', '\u001B[0m'] + +'\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true})); +//=> ['\u001B[4m'] + +'\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex()); +//=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007'] +``` +*/ +export default function ansiRegex(options?: Options): RegExp; diff --git a/node_modules/@isaacs/cliui/node_modules/ansi-regex/index.js b/node_modules/@isaacs/cliui/node_modules/ansi-regex/index.js new file mode 100644 index 00000000..130a0929 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/ansi-regex/index.js @@ -0,0 +1,8 @@ +export default function ansiRegex({onlyFirst = false} = {}) { + const pattern = [ + '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)', + '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))' + ].join('|'); + + return new RegExp(pattern, onlyFirst ? undefined : 'g'); +} diff --git a/node_modules/@isaacs/cliui/node_modules/ansi-regex/license b/node_modules/@isaacs/cliui/node_modules/ansi-regex/license new file mode 100644 index 00000000..fa7ceba3 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/ansi-regex/license @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/@isaacs/cliui/node_modules/ansi-regex/package.json b/node_modules/@isaacs/cliui/node_modules/ansi-regex/package.json new file mode 100644 index 00000000..7bbb563b --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/ansi-regex/package.json @@ -0,0 +1,58 @@ +{ + "name": "ansi-regex", + "version": "6.0.1", + "description": "Regular expression for matching ANSI escape codes", + "license": "MIT", + "repository": "chalk/ansi-regex", + "funding": "https://github.com/chalk/ansi-regex?sponsor=1", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "type": "module", + "exports": "./index.js", + "engines": { + "node": ">=12" + }, + "scripts": { + "test": "xo && ava && tsd", + "view-supported": "node fixtures/view-codes.js" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "text", + "regex", + "regexp", + "re", + "match", + "test", + "find", + "pattern" + ], + "devDependencies": { + "ava": "^3.15.0", + "tsd": "^0.14.0", + "xo": "^0.38.2" + } +} diff --git a/node_modules/@isaacs/cliui/node_modules/ansi-regex/readme.md b/node_modules/@isaacs/cliui/node_modules/ansi-regex/readme.md new file mode 100644 index 00000000..0e17e238 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/ansi-regex/readme.md @@ -0,0 +1,72 @@ +# ansi-regex + +> Regular expression for matching [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) + +## Install + +``` +$ npm install ansi-regex +``` + +## Usage + +```js +import ansiRegex from 'ansi-regex'; + +ansiRegex().test('\u001B[4mcake\u001B[0m'); +//=> true + +ansiRegex().test('cake'); +//=> false + +'\u001B[4mcake\u001B[0m'.match(ansiRegex()); +//=> ['\u001B[4m', '\u001B[0m'] + +'\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true})); +//=> ['\u001B[4m'] + +'\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex()); +//=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007'] +``` + +## API + +### ansiRegex(options?) + +Returns a regex for matching ANSI escape codes. + +#### options + +Type: `object` + +##### onlyFirst + +Type: `boolean`\ +Default: `false` *(Matches any ANSI escape codes in a string)* + +Match only the first ANSI escape. + +## FAQ + +### Why do you test for codes not in the ECMA 48 standard? + +Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. We test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them. + +On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out. + +## Maintainers + +- [Sindre Sorhus](https://github.com/sindresorhus) +- [Josh Junon](https://github.com/qix-) + +--- + +
+ + Get professional support for this package with a Tidelift subscription + +
+ + Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. +
+
diff --git a/node_modules/@isaacs/cliui/node_modules/emoji-regex/LICENSE-MIT.txt b/node_modules/@isaacs/cliui/node_modules/emoji-regex/LICENSE-MIT.txt new file mode 100644 index 00000000..a41e0a7e --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/emoji-regex/LICENSE-MIT.txt @@ -0,0 +1,20 @@ +Copyright Mathias Bynens + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/@isaacs/cliui/node_modules/emoji-regex/README.md b/node_modules/@isaacs/cliui/node_modules/emoji-regex/README.md new file mode 100644 index 00000000..6d630827 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/emoji-regex/README.md @@ -0,0 +1,137 @@ +# emoji-regex [![Build status](https://travis-ci.org/mathiasbynens/emoji-regex.svg?branch=main)](https://travis-ci.org/mathiasbynens/emoji-regex) + +_emoji-regex_ offers a regular expression to match all emoji symbols and sequences (including textual representations of emoji) as per the Unicode Standard. + +This repository contains a script that generates this regular expression based on [Unicode data](https://github.com/node-unicode/node-unicode-data). Because of this, the regular expression can easily be updated whenever new emoji are added to the Unicode standard. + +## Installation + +Via [npm](https://www.npmjs.com/): + +```bash +npm install emoji-regex +``` + +In [Node.js](https://nodejs.org/): + +```js +const emojiRegex = require('emoji-regex/RGI_Emoji.js'); +// Note: because the regular expression has the global flag set, this module +// exports a function that returns the regex rather than exporting the regular +// expression itself, to make it impossible to (accidentally) mutate the +// original regular expression. + +const text = ` +\u{231A}: ⌚ default emoji presentation character (Emoji_Presentation) +\u{2194}\u{FE0F}: ↔️ default text presentation character rendered as emoji +\u{1F469}: 👩 emoji modifier base (Emoji_Modifier_Base) +\u{1F469}\u{1F3FF}: 👩🏿 emoji modifier base followed by a modifier +`; + +const regex = emojiRegex(); +let match; +while (match = regex.exec(text)) { + const emoji = match[0]; + console.log(`Matched sequence ${ emoji } — code points: ${ [...emoji].length }`); +} +``` + +Console output: + +``` +Matched sequence ⌚ — code points: 1 +Matched sequence ⌚ — code points: 1 +Matched sequence ↔️ — code points: 2 +Matched sequence ↔️ — code points: 2 +Matched sequence 👩 — code points: 1 +Matched sequence 👩 — code points: 1 +Matched sequence 👩🏿 — code points: 2 +Matched sequence 👩🏿 — code points: 2 +``` + +## Regular expression flavors + +The package comes with three distinct regular expressions: + +```js +// This is the recommended regular expression to use. It matches all +// emoji recommended for general interchange, as defined via the +// `RGI_Emoji` property in the Unicode Standard. +// https://unicode.org/reports/tr51/#def_rgi_set +// When in doubt, use this! +const emojiRegexRGI = require('emoji-regex/RGI_Emoji.js'); + +// This is the old regular expression, prior to `RGI_Emoji` being +// standardized. In addition to all `RGI_Emoji` sequences, it matches +// some emoji you probably don’t want to match (such as emoji component +// symbols that are not meant to be used separately). +const emojiRegex = require('emoji-regex/index.js'); + +// This regular expression matches even more emoji than the previous +// one, including emoji that render as text instead of icons (i.e. +// emoji that are not `Emoji_Presentation` symbols and that aren’t +// forced to render as emoji by a variation selector). +const emojiRegexText = require('emoji-regex/text.js'); +``` + +Additionally, in environments which support ES2015 Unicode escapes, you may `require` ES2015-style versions of the regexes: + +```js +const emojiRegexRGI = require('emoji-regex/es2015/RGI_Emoji.js'); +const emojiRegex = require('emoji-regex/es2015/index.js'); +const emojiRegexText = require('emoji-regex/es2015/text.js'); +``` + +## For maintainers + +### How to update emoji-regex after new Unicode Standard releases + +1. Update the Unicode data dependency in `package.json` by running the following commands: + + ```sh + # Example: updating from Unicode v12 to Unicode v13. + npm uninstall @unicode/unicode-12.0.0 + npm install @unicode/unicode-13.0.0 --save-dev + ```` + +1. Generate the new output: + + ```sh + npm run build + ``` + +1. Verify that tests still pass: + + ```sh + npm test + ``` + +1. Send a pull request with the changes, and get it reviewed & merged. + +1. On the `main` branch, bump the emoji-regex version number in `package.json`: + + ```sh + npm version patch -m 'Release v%s' + ``` + + Instead of `patch`, use `minor` or `major` [as needed](https://semver.org/). + + Note that this produces a Git commit + tag. + +1. Push the release commit and tag: + + ```sh + git push + ``` + + Our CI then automatically publishes the new release to npm. + +## Author + +| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | +|---| +| [Mathias Bynens](https://mathiasbynens.be/) | + +## License + +_emoji-regex_ is available under the [MIT](https://mths.be/mit) license. diff --git a/node_modules/@isaacs/cliui/node_modules/emoji-regex/RGI_Emoji.d.ts b/node_modules/@isaacs/cliui/node_modules/emoji-regex/RGI_Emoji.d.ts new file mode 100644 index 00000000..89a651fb --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/emoji-regex/RGI_Emoji.d.ts @@ -0,0 +1,5 @@ +declare module 'emoji-regex/RGI_Emoji' { + function emojiRegex(): RegExp; + + export = emojiRegex; +} diff --git a/node_modules/@isaacs/cliui/node_modules/emoji-regex/RGI_Emoji.js b/node_modules/@isaacs/cliui/node_modules/emoji-regex/RGI_Emoji.js new file mode 100644 index 00000000..3fbe9241 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/emoji-regex/RGI_Emoji.js @@ -0,0 +1,6 @@ +"use strict"; + +module.exports = function () { + // https://mths.be/emoji + return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E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F-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\u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[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]/g; +}; diff --git a/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/RGI_Emoji.d.ts b/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/RGI_Emoji.d.ts new file mode 100644 index 00000000..bf0f154b --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/RGI_Emoji.d.ts @@ -0,0 +1,5 @@ +declare module 'emoji-regex/es2015/RGI_Emoji' { + function emojiRegex(): RegExp; + + export = emojiRegex; +} diff --git a/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/RGI_Emoji.js b/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/RGI_Emoji.js new file mode 100644 index 00000000..ecf32f17 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/RGI_Emoji.js @@ -0,0 +1,6 @@ +"use strict"; + +module.exports = () => { + // https://mths.be/emoji + return /\u{1F3F4}\u{E0067}\u{E0062}(?:\u{E0077}\u{E006C}\u{E0073}|\u{E0073}\u{E0063}\u{E0074}|\u{E0065}\u{E006E}\u{E0067})\u{E007F}|(?:\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}-\u{1F3FE}]|(?:\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}-\u{1F3FD}\u{1F3FF}]|(?:\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}\u{1F3FC}\u{1F3FE}\u{1F3FF}]|(?:\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}\u{1F3FD}-\u{1F3FF}]|(?:\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FC}-\u{1F3FF}]|\u{1F468}(?:\u{1F3FB}(?:\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FF}]|\u{1F468}[\u{1F3FB}-\u{1F3FF}])|\u{1F91D}\u200D\u{1F468}[\u{1F3FC}-\u{1F3FF}]|[\u2695\u2696\u2708]\uFE0F|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]))?|[\u{1F3FC}-\u{1F3FF}]\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FF}]|\u{1F468}[\u{1F3FB}-\u{1F3FF}])|\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F468}|[\u{1F468}\u{1F469}]\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FF}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FE}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FE}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FD}\u{1F3FF}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FD}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}\u{1F3FC}\u{1F3FE}\u{1F3FF}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FC}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}\u{1F3FD}-\u{1F3FF}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|(?:\u{1F3FF}\u200D[\u2695\u2696\u2708]|\u{1F3FE}\u200D[\u2695\u2696\u2708]|\u{1F3FD}\u200D[\u2695\u2696\u2708]|\u{1F3FC}\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:[\u{1F468}\u{1F469}]\u200D[\u{1F466}\u{1F467}]|[\u{1F466}\u{1F467}])|\u{1F3FF}|\u{1F3FE}|\u{1F3FD}|\u{1F3FC})?|(?:\u{1F469}(?:\u{1F3FB}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}])|[\u{1F3FC}-\u{1F3FF}]\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}]))|\u{1F9D1}[\u{1F3FB}-\u{1F3FF}]\u200D\u{1F91D}\u200D\u{1F9D1})[\u{1F3FB}-\u{1F3FF}]|\u{1F469}\u200D\u{1F469}\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\u{1F469}(?:\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}])|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FF}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9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u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FE}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F384}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FD}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F384}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FC}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F384}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FB}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F384}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F469}\u200D\u{1F466}\u200D\u{1F466}|\u{1F469}\u200D\u{1F469}\u200D[\u{1F466}\u{1F467}]|\u{1F469}\u200D\u{1F467}\u200D[\u{1F466}\u{1F467}]|(?:\u{1F441}\uFE0F\u200D\u{1F5E8}|\u{1F9D1}(?:\u{1F3FF}\u200D[\u2695\u2696\u2708]|\u{1F3FE}\u200D[\u2695\u2696\u2708]|\u{1F3FD}\u200D[\u2695\u2696\u2708]|\u{1F3FC}\u200D[\u2695\u2696\u2708]|\u{1F3FB}\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\u{1F469}(?:\u{1F3FF}\u200D[\u2695\u2696\u2708]|\u{1F3FE}\u200D[\u2695\u2696\u2708]|\u{1F3FD}\u200D[\u2695\u2696\u2708]|\u{1F3FC}\u200D[\u2695\u2696\u2708]|\u{1F3FB}\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\u{1F636}\u200D\u{1F32B}|\u{1F3F3}\uFE0F\u200D\u26A7|\u{1F43B}\u200D\u2744|(?:[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F470}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}][\u{1F3FB}-\u{1F3FF}]|[\u{1F46F}\u{1F93C}\u{1F9DE}\u{1F9DF}])\u200D[\u2640\u2642]|[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}][\uFE0F\u{1F3FB}-\u{1F3FF}]\u200D[\u2640\u2642]|\u{1F3F4}\u200D\u2620|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F470}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}]\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299\u{1F170}\u{1F171}\u{1F17E}\u{1F17F}\u{1F202}\u{1F237}\u{1F321}\u{1F324}-\u{1F32C}\u{1F336}\u{1F37D}\u{1F396}\u{1F397}\u{1F399}-\u{1F39B}\u{1F39E}\u{1F39F}\u{1F3CD}\u{1F3CE}\u{1F3D4}-\u{1F3DF}\u{1F3F5}\u{1F3F7}\u{1F43F}\u{1F4FD}\u{1F549}\u{1F54A}\u{1F56F}\u{1F570}\u{1F573}\u{1F576}-\u{1F579}\u{1F587}\u{1F58A}-\u{1F58D}\u{1F5A5}\u{1F5A8}\u{1F5B1}\u{1F5B2}\u{1F5BC}\u{1F5C2}-\u{1F5C4}\u{1F5D1}-\u{1F5D3}\u{1F5DC}-\u{1F5DE}\u{1F5E1}\u{1F5E3}\u{1F5E8}\u{1F5EF}\u{1F5F3}\u{1F5FA}\u{1F6CB}\u{1F6CD}-\u{1F6CF}\u{1F6E0}-\u{1F6E5}\u{1F6E9}\u{1F6F0}\u{1F6F3}])\uFE0F|\u{1F3F3}\uFE0F\u200D\u{1F308}|\u{1F469}\u200D\u{1F467}|\u{1F469}\u200D\u{1F466}|\u{1F635}\u200D\u{1F4AB}|\u{1F62E}\u200D\u{1F4A8}|\u{1F415}\u200D\u{1F9BA}|\u{1F9D1}(?:\u{1F3FF}|\u{1F3FE}|\u{1F3F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20E3|\u2764\uFE0F|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F470}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}][\u{1F3FB}-\u{1F3FF}]|[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}][\uFE0F\u{1F3FB}-\u{1F3FF}]|\u{1F3F4}|[\u270A\u270B\u{1F385}\u{1F3C2}\u{1F3C7}\u{1F442}\u{1F443}\u{1F446}-\u{1F450}\u{1F466}\u{1F467}\u{1F46B}-\u{1F46D}\u{1F472}\u{1F474}-\u{1F476}\u{1F478}\u{1F47C}\u{1F483}\u{1F485}\u{1F48F}\u{1F491}\u{1F4AA}\u{1F57A}\u{1F595}\u{1F596}\u{1F64C}\u{1F64F}\u{1F6C0}\u{1F6CC}\u{1F90C}\u{1F90F}\u{1F918}-\u{1F91C}\u{1F91E}\u{1F91F}\u{1F930}-\u{1F934}\u{1F936}\u{1F977}\u{1F9B5}\u{1F9B6}\u{1F9BB}\u{1F9D2}\u{1F9D3}\u{1F9D5}][\u{1F3FB}-\u{1F3FF}]|[\u261D\u270C\u270D\u{1F574}\u{1F590}][\uFE0F\u{1F3FB}-\u{1F3FF}]|[\u270A\u270B\u{1F385}\u{1F3C2}\u{1F3C7}\u{1F408}\u{1F415}\u{1F43B}\u{1F442}\u{1F443}\u{1F446}-\u{1F450}\u{1F466}\u{1F467}\u{1F46B}-\u{1F46D}\u{1F472}\u{1F474}-\u{1F476}\u{1F478}\u{1F47C}\u{1F483}\u{1F485}\u{1F48F}\u{1F491}\u{1F4AA}\u{1F57A}\u{1F595}\u{1F596}\u{1F62E}\u{1F635}\u{1F636}\u{1F64C}\u{1F64F}\u{1F6C0}\u{1F6CC}\u{1F90C}\u{1F90F}\u{1F918}-\u{1F91C}\u{1F91E}\u{1F91F}\u{1F930}-\u{1F934}\u{1F936}\u{1F977}\u{1F9B5}\u{1F9B6}\u{1F9BB}\u{1F9D2}\u{1F9D3}\u{1F9D5}]|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F470}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}]|[\u{1F46F}\u{1F93C}\u{1F9DE}\u{1F9DF}]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55\u{1F004}\u{1F0CF}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F201}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F236}\u{1F238}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F320}\u{1F32D}-\u{1F335}\u{1F337}-\u{1F37C}\u{1F37E}-\u{1F384}\u{1F386}-\u{1F393}\u{1F3A0}-\u{1F3C1}\u{1F3C5}\u{1F3C6}\u{1F3C8}\u{1F3C9}\u{1F3CF}-\u{1F3D3}\u{1F3E0}-\u{1F3F0}\u{1F3F8}-\u{1F407}\u{1F409}-\u{1F414}\u{1F416}-\u{1F43A}\u{1F43C}-\u{1F43E}\u{1F440}\u{1F444}\u{1F445}\u{1F451}-\u{1F465}\u{1F46A}\u{1F479}-\u{1F47B}\u{1F47D}-\u{1F480}\u{1F484}\u{1F488}-\u{1F48E}\u{1F490}\u{1F492}-\u{1F4A9}\u{1F4AB}-\u{1F4FC}\u{1F4FF}-\u{1F53D}\u{1F54B}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F5A4}\u{1F5FB}-\u{1F62D}\u{1F62F}-\u{1F634}\u{1F637}-\u{1F644}\u{1F648}-\u{1F64A}\u{1F680}-\u{1F6A2}\u{1F6A4}-\u{1F6B3}\u{1F6B7}-\u{1F6BF}\u{1F6C1}-\u{1F6C5}\u{1F6D0}-\u{1F6D2}\u{1F6D5}-\u{1F6D7}\u{1F6EB}\u{1F6EC}\u{1F6F4}-\u{1F6FC}\u{1F7E0}-\u{1F7EB}\u{1F90D}\u{1F90E}\u{1F910}-\u{1F917}\u{1F91D}\u{1F920}-\u{1F925}\u{1F927}-\u{1F92F}\u{1F93A}\u{1F93F}-\u{1F945}\u{1F947}-\u{1F976}\u{1F978}\u{1F97A}-\u{1F9B4}\u{1F9B7}\u{1F9BA}\u{1F9BC}-\u{1F9CB}\u{1F9D0}\u{1F9E0}-\u{1F9FF}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7A}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAA8}\u{1FAB0}-\u{1FAB6}\u{1FAC0}-\u{1FAC2}\u{1FAD0}-\u{1FAD6}]/gu; +}; diff --git a/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/index.d.ts b/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/index.d.ts new file mode 100644 index 00000000..823dfa65 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/index.d.ts @@ -0,0 +1,5 @@ +declare module 'emoji-regex/es2015' { + function emojiRegex(): RegExp; + + export = emojiRegex; +} diff --git a/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/index.js b/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/index.js new file mode 100644 index 00000000..1a4fc8d0 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/index.js @@ -0,0 +1,6 @@ +"use strict"; + +module.exports = () => { + // https://mths.be/emoji + return /\u{1F3F4}\u{E0067}\u{E0062}(?:\u{E0077}\u{E006C}\u{E0073}|\u{E0073}\u{E0063}\u{E0074}|\u{E0065}\u{E006E}\u{E0067})\u{E007F}|(?:\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}-\u{1F3FE}]|(?:\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}-\u{1F3FD}\u{1F3FF}]|(?:\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}\u{1F3FC}\u{1F3FE}\u{1F3FF}]|(?:\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}\u{1F3FD}-\u{1F3FF}]|(?:\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FC}-\u{1F3FF}]|\u{1F468}(?:\u{1F3FB}(?:\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FF}]|\u{1F468}[\u{1F3FB}-\u{1F3FF}])|\u{1F91D}\u200D\u{1F468}[\u{1F3FC}-\u{1F3FF}]|[\u2695\u2696\u2708]\uFE0F|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]))?|[\u{1F3FC}-\u{1F3FF}]\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FF}]|\u{1F468}[\u{1F3FB}-\u{1F3FF}])|\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F468}|[\u{1F468}\u{1F469}]\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FF}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FE}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FE}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FD}\u{1F3FF}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FD}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}\u{1F3FC}\u{1F3FE}\u{1F3FF}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FC}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}\u{1F3FD}-\u{1F3FF}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|(?:\u{1F3FF}\u200D[\u2695\u2696\u2708]|\u{1F3FE}\u200D[\u2695\u2696\u2708]|\u{1F3FD}\u200D[\u2695\u2696\u2708]|\u{1F3FC}\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:[\u{1F468}\u{1F469}]\u200D[\u{1F466}\u{1F467}]|[\u{1F466}\u{1F467}])|\u{1F3FF}|\u{1F3FE}|\u{1F3FD}|\u{1F3FC})?|(?:\u{1F469}(?:\u{1F3FB}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}])|[\u{1F3FC}-\u{1F3FF}]\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}]))|\u{1F9D1}[\u{1F3FB}-\u{1F3FF}]\u200D\u{1F91D}\u200D\u{1F9D1})[\u{1F3FB}-\u{1F3FF}]|\u{1F469}\u200D\u{1F469}\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\u{1F469}(?:\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}])|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FF}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FE}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FD}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FC}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FB}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F9D1}(?:\u200D(?:\u{1F91D}\u200D\u{1F9D1}|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F384}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FF}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F384}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FE}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F384}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FD}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F384}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FC}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F384}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FB}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F384}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F469}\u200D\u{1F466}\u200D\u{1F466}|\u{1F469}\u200D\u{1F469}\u200D[\u{1F466}\u{1F467}]|\u{1F469}\u200D\u{1F467}\u200D[\u{1F466}\u{1F467}]|(?:\u{1F441}\uFE0F\u200D\u{1F5E8}|\u{1F9D1}(?:\u{1F3FF}\u200D[\u2695\u2696\u2708]|\u{1F3FE}\u200D[\u2695\u2696\u2708]|\u{1F3FD}\u200D[\u2695\u2696\u2708]|\u{1F3FC}\u200D[\u2695\u2696\u2708]|\u{1F3FB}\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\u{1F469}(?:\u{1F3FF}\u200D[\u2695\u2696\u2708]|\u{1F3FE}\u200D[\u2695\u2696\u2708]|\u{1F3FD}\u200D[\u2695\u2696\u2708]|\u{1F3FC}\u200D[\u2695\u2696\u2708]|\u{1F3FB}\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\u{1F636}\u200D\u{1F32B}|\u{1F3F3}\uFE0F\u200D\u26A7|\u{1F43B}\u200D\u2744|(?:[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F470}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}][\u{1F3FB}-\u{1F3FF}]|[\u{1F46F}\u{1F93C}\u{1F9DE}\u{1F9DF}])\u200D[\u2640\u2642]|[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}][\uFE0F\u{1F3FB}-\u{1F3FF}]\u200D[\u2640\u2642]|\u{1F3F4}\u200D\u2620|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F470}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}]\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299\u{1F170}\u{1F171}\u{1F17E}\u{1F17F}\u{1F202}\u{1F237}\u{1F321}\u{1F324}-\u{1F32C}\u{1F336}\u{1F37D}\u{1F396}\u{1F397}\u{1F399}-\u{1F39B}\u{1F39E}\u{1F39F}\u{1F3CD}\u{1F3CE}\u{1F3D4}-\u{1F3DF}\u{1F3F5}\u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485}\u{1F48F}\u{1F491}\u{1F4AA}\u{1F57A}\u{1F595}\u{1F596}\u{1F64C}\u{1F64F}\u{1F6C0}\u{1F6CC}\u{1F90C}\u{1F90F}\u{1F918}-\u{1F91C}\u{1F91E}\u{1F91F}\u{1F930}-\u{1F934}\u{1F936}\u{1F977}\u{1F9B5}\u{1F9B6}\u{1F9BB}\u{1F9D2}\u{1F9D3}\u{1F9D5}][\u{1F3FB}-\u{1F3FF}]|[\u261D\u270C\u270D\u{1F574}\u{1F590}][\uFE0F\u{1F3FB}-\u{1F3FF}]|[\u270A\u270B\u{1F385}\u{1F3C2}\u{1F3C7}\u{1F408}\u{1F415}\u{1F43B}\u{1F442}\u{1F443}\u{1F446}-\u{1F450}\u{1F466}\u{1F467}\u{1F46B}-\u{1F46D}\u{1F472}\u{1F474}-\u{1F476}\u{1F478}\u{1F47C}\u{1F483}\u{1F485}\u{1F48F}\u{1F491}\u{1F4AA}\u{1F57A}\u{1F595}\u{1F596}\u{1F62E}\u{1F635}\u{1F636}\u{1F64C}\u{1F64F}\u{1F6C0}\u{1F6CC}\u{1F90C}\u{1F90F}\u{1F918}-\u{1F91C}\u{1F91E}\u{1F91F}\u{1F930}-\u{1F934}\u{1F936}\u{1F977}\u{1F9B5}\u{1F9B6}\u{1F9BB}\u{1F9D2}\u{1F9D3}\u{1F9D5}]|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F470}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}]|[\u{1F46F}\u{1F93C}\u{1F9DE}\u{1F9DF}]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55\u{1F004}\u{1F0CF}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F201}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F236}\u{1F238}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F320}\u{1F32D}-\u{1F335}\u{1F337}-\u{1F37C}\u{1F37E}-\u{1F384}\u{1F386}-\u{1F393}\u{1F3A0}-\u{1F3C1}\u{1F3C5}\u{1F3C6}\u{1F3C8}\u{1F3C9}\u{1F3CF}-\u{1F3D3}\u{1F3E0}-\u{1F3F0}\u{1F3F8}-\u{1F407}\u{1F409}-\u{1F414}\u{1F416}-\u{1F43A}\u{1F43C}-\u{1F43E}\u{1F440}\u{1F444}\u{1F445}\u{1F451}-\u{1F465}\u{1F46A}\u{1F479}-\u{1F47B}\u{1F47D}-\u{1F480}\u{1F484}\u{1F488}-\u{1F48E}\u{1F490}\u{1F492}-\u{1F4A9}\u{1F4AB}-\u{1F4FC}\u{1F4FF}-\u{1F53D}\u{1F54B}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F5A4}\u{1F5FB}-\u{1F62D}\u{1F62F}-\u{1F634}\u{1F637}-\u{1F644}\u{1F648}-\u{1F64A}\u{1F680}-\u{1F6A2}\u{1F6A4}-\u{1F6B3}\u{1F6B7}-\u{1F6BF}\u{1F6C1}-\u{1F6C5}\u{1F6D0}-\u{1F6D2}\u{1F6D5}-\u{1F6D7}\u{1F6EB}\u{1F6EC}\u{1F6F4}-\u{1F6FC}\u{1F7E0}-\u{1F7EB}\u{1F90D}\u{1F90E}\u{1F910}-\u{1F917}\u{1F91D}\u{1F920}-\u{1F925}\u{1F927}-\u{1F92F}\u{1F93A}\u{1F93F}-\u{1F945}\u{1F947}-\u{1F976}\u{1F978}\u{1F97A}-\u{1F9B4}\u{1F9B7}\u{1F9BA}\u{1F9BC}-\u{1F9CB}\u{1F9D0}\u{1F9E0}-\u{1F9FF}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7A}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAA8}\u{1FAB0}-\u{1FAB6}\u{1FAC0}-\u{1FAC2}\u{1FAD0}-\u{1FAD6}]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55\u{1F004}\u{1F0CF}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F1E6}-\u{1F1FF}\u{1F201}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F236}\u{1F238}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F320}\u{1F32D}-\u{1F335}\u{1F337}-\u{1F37C}\u{1F37E}-\u{1F393}\u{1F3A0}-\u{1F3CA}\u{1F3CF}-\u{1F3D3}\u{1F3E0}-\u{1F3F0}\u{1F3F4}\u{1F3F8}-\u{1F43E}\u{1F440}\u{1F442}-\u{1F4FC}\u{1F4FF}-\u{1F53D}\u{1F54B}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F57A}\u{1F595}\u{1F596}\u{1F5A4}\u{1F5FB}-\u{1F64F}\u{1F680}-\u{1F6C5}\u{1F6CC}\u{1F6D0}-\u{1F6D2}\u{1F6D5}-\u{1F6D7}\u{1F6EB}\u{1F6EC}\u{1F6F4}-\u{1F6FC}\u{1F7E0}-\u{1F7EB}\u{1F90C}-\u{1F93A}\u{1F93C}-\u{1F945}\u{1F947}-\u{1F978}\u{1F97A}-\u{1F9CB}\u{1F9CD}-\u{1F9FF}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7A}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAA8}\u{1FAB0}-\u{1FAB6}\u{1FAC0}-\u{1FAC2}\u{1FAD0}-\u{1FAD6}]|[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299\u{1F004}\u{1F0CF}\u{1F170}\u{1F171}\u{1F17E}\u{1F17F}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F1E6}-\u{1F1FF}\u{1F201}\u{1F202}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F321}\u{1F324}-\u{1F393}\u{1F396}\u{1F397}\u{1F399}-\u{1F39B}\u{1F39E}-\u{1F3F0}\u{1F3F3}-\u{1F3F5}\u{1F3F7}-\u{1F4FD}\u{1F4FF}-\u{1F53D}\u{1F549}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F56F}\u{1F570}\u{1F573}-\u{1F57A}\u{1F587}\u{1F58A}-\u{1F58D}\u{1F590}\u{1F595}\u{1F596}\u{1F5A4}\u{1F5A5}\u{1F5A8}\u{1F5B1}\u{1F5B2}\u{1F5BC}\u{1F5C2}-\u{1F5C4}\u{1F5D1}-\u{1F5D3}\u{1F5DC}-\u{1F5DE}\u{1F5E1}\u{1F5E3}\u{1F5E8}\u{1F5EF}\u{1F5F3}\u{1F5FA}-\u{1F64F}\u{1F680}-\u{1F6C5}\u{1F6CB}-\u{1F6D2}\u{1F6D5}-\u{1F6D7}\u{1F6E0}-\u{1F6E5}\u{1F6E9}\u{1F6EB}\u{1F6EC}\u{1F6F0}\u{1F6F3}-\u{1F6FC}\u{1F7E0}-\u{1F7EB}\u{1F90C}-\u{1F93A}\u{1F93C}-\u{1F945}\u{1F947}-\u{1F978}\u{1F97A}-\u{1F9CB}\u{1F9CD}-\u{1F9FF}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7A}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAA8}\u{1FAB0}-\u{1FAB6}\u{1FAC0}-\u{1FAC2}\u{1FAD0}-\u{1FAD6}]\uFE0F|[\u261D\u26F9\u270A-\u270D\u{1F385}\u{1F3C2}-\u{1F3C4}\u{1F3C7}\u{1F3CA}-\u{1F3CC}\u{1F442}\u{1F443}\u{1F446}-\u{1F450}\u{1F466}-\u{1F478}\u{1F47C}\u{1F481}-\u{1F483}\u{1F485}-\u{1F487}\u{1F48F}\u{1F491}\u{1F4AA}\u{1F574}\u{1F575}\u{1F57A}\u{1F590}\u{1F595}\u{1F596}\u{1F645}-\u{1F647}\u{1F64B}-\u{1F64F}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F6C0}\u{1F6CC}\u{1F90C}\u{1F90F}\u{1F918}-\u{1F91F}\u{1F926}\u{1F930}-\u{1F939}\u{1F93C}-\u{1F93E}\u{1F977}\u{1F9B5}\u{1F9B6}\u{1F9B8}\u{1F9B9}\u{1F9BB}\u{1F9CD}-\u{1F9CF}\u{1F9D1}-\u{1F9DD}]/gu; +}; diff --git a/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/text.d.ts b/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/text.d.ts new file mode 100644 index 00000000..ccc2f9ad --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/text.d.ts @@ -0,0 +1,5 @@ +declare module 'emoji-regex/es2015/text' { + function emojiRegex(): RegExp; + + export = emojiRegex; +} diff --git a/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/text.js b/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/text.js new file mode 100644 index 00000000..8e9f9857 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/emoji-regex/es2015/text.js @@ -0,0 +1,6 @@ +"use strict"; + +module.exports = () => { + // https://mths.be/emoji + return /\u{1F3F4}\u{E0067}\u{E0062}(?:\u{E0077}\u{E006C}\u{E0073}|\u{E0073}\u{E0063}\u{E0074}|\u{E0065}\u{E006E}\u{E0067})\u{E007F}|(?:\u{1F9D1}\u{1F3FF}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FF}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}-\u{1F3FE}]|(?:\u{1F9D1}\u{1F3FE}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FE}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}-\u{1F3FD}\u{1F3FF}]|(?:\u{1F9D1}\u{1F3FD}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FD}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}\u{1F3FC}\u{1F3FE}\u{1F3FF}]|(?:\u{1F9D1}\u{1F3FC}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FC}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FB}\u{1F3FD}-\u{1F3FF}]|(?:\u{1F9D1}\u{1F3FB}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F9D1}|\u{1F469}\u{1F3FB}\u200D\u{1F91D}\u200D[\u{1F468}\u{1F469}])[\u{1F3FC}-\u{1F3FF}]|\u{1F468}(?:\u{1F3FB}(?:\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FF}]|\u{1F468}[\u{1F3FB}-\u{1F3FF}])|\u{1F91D}\u200D\u{1F468}[\u{1F3FC}-\u{1F3FF}]|[\u2695\u2696\u2708]\uFE0F|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]))?|[\u{1F3FC}-\u{1F3FF}]\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FF}]|\u{1F468}[\u{1F3FB}-\u{1F3FF}])|\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D)?\u{1F468}|[\u{1F468}\u{1F469}]\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FF}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FE}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FE}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}-\u{1F3FD}\u{1F3FF}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FD}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}\u{1F3FC}\u{1F3FE}\u{1F3FF}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FC}\u200D(?:\u{1F91D}\u200D\u{1F468}[\u{1F3FB}\u{1F3FD}-\u{1F3FF}]|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|(?:\u{1F3FF}\u200D[\u2695\u2696\u2708]|\u{1F3FE}\u200D[\u2695\u2696\u2708]|\u{1F3FD}\u200D[\u2695\u2696\u2708]|\u{1F3FC}\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:[\u{1F468}\u{1F469}]\u200D[\u{1F466}\u{1F467}]|[\u{1F466}\u{1F467}])|\u{1F3FF}|\u{1F3FE}|\u{1F3FD}|\u{1F3FC})?|(?:\u{1F469}(?:\u{1F3FB}\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}])|[\u{1F3FC}-\u{1F3FF}]\u200D\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}]))|\u{1F9D1}[\u{1F3FB}-\u{1F3FF}]\u200D\u{1F91D}\u200D\u{1F9D1})[\u{1F3FB}-\u{1F3FF}]|\u{1F469}\u200D\u{1F469}\u200D(?:\u{1F466}\u200D\u{1F466}|\u{1F467}\u200D[\u{1F466}\u{1F467}])|\u{1F469}(?:\u200D(?:\u2764\uFE0F\u200D(?:\u{1F48B}\u200D[\u{1F468}\u{1F469}]|[\u{1F468}\u{1F469}])|[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F3FF}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FE}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9B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F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FD}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F384}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FC}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F384}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}]|\u{1F3FB}\u200D[\u{1F33E}\u{1F373}\u{1F37C}\u{1F384}\u{1F393}\u{1F3A4}\u{1F3A8}\u{1F3EB}\u{1F3ED}\u{1F4BB}\u{1F4BC}\u{1F527}\u{1F52C}\u{1F680}\u{1F692}\u{1F9AF}-\u{1F9B3}\u{1F9BC}\u{1F9BD}])|\u{1F469}\u200D\u{1F466}\u200D\u{1F466}|\u{1F469}\u200D\u{1F469}\u200D[\u{1F466}\u{1F467}]|\u{1F469}\u200D\u{1F467}\u200D[\u{1F466}\u{1F467}]|(?:\u{1F441}\uFE0F\u200D\u{1F5E8}|\u{1F9D1}(?:\u{1F3FF}\u200D[\u2695\u2696\u2708]|\u{1F3FE}\u200D[\u2695\u2696\u2708]|\u{1F3FD}\u200D[\u2695\u2696\u2708]|\u{1F3FC}\u200D[\u2695\u2696\u2708]|\u{1F3FB}\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\u{1F469}(?:\u{1F3FF}\u200D[\u2695\u2696\u2708]|\u{1F3FE}\u200D[\u2695\u2696\u2708]|\u{1F3FD}\u200D[\u2695\u2696\u2708]|\u{1F3FC}\u200D[\u2695\u2696\u2708]|\u{1F3FB}\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\u{1F636}\u200D\u{1F32B}|\u{1F3F3}\uFE0F\u200D\u26A7|\u{1F43B}\u200D\u2744|(?:[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F470}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}][\u{1F3FB}-\u{1F3FF}]|[\u{1F46F}\u{1F93C}\u{1F9DE}\u{1F9DF}])\u200D[\u2640\u2642]|[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}][\uFE0F\u{1F3FB}-\u{1F3FF}]\u200D[\u2640\u2642]|\u{1F3F4}\u200D\u2620|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F470}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}]\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299\u{1F170}\u{1F171}\u{1F17E}\u{1F17F}\u{1F202}\u{1F237}\u{1F321}\u{1F324}-\u{1F32C}\u{1F336}\u{1F37D}\u{1F396}\u{1F397}\u{1F399}-\u{1F39B}\u{1F39E}\u{1F39F}\u{1F3CD}\u{1F3CE}\u{1F3D4}-\u{1F3DF}\u{1F3F5}\u{1F3F7}\u{1F43F}\u{1F4FD}\u{1F549}\u{1F54A}\u{1F56F}\u{1F570}\u{1F573}\u{1F576}-\u{1F579}\u{1F587}\u{1F58A}-\u{1F58D}\u{1F5A5}\u{1F5A8}\u{1F5B1}\u{1F5B2}\u{1F5BC}\u{1F5C2}-\u{1F5C4}\u{1F5D1}-\u{1F5D3}\u{1F5DC}-\u{1F5DE}\u{1F5E1}\u{1F5E3}\u{1F5E8}\u{1F5EF}\u{1F5F3}\u{1F5FA}\u{1F6CB}\u{1F6CD}-\u{1F6CF}\u{1F6E0}-\u{1F6E5}\u{1F6E9}\u{1F6F0}\u{1F6F3}])\uFE0F|\u{1F3F3}\uFE0F\u200D\u{1F308}|\u{1F469}\u200D\u{1F467}|\u{1F469}\u200D\u{1F466}|\u{1F635}\u200D\u{1F4AB}|\u{1F62E}\u200D\u{1F4A8}|\u{1F415}\u200D\u{1F9BA}|\u{1F9D1}(?:\u{1F3FF}|\u{1F3FE}|\u{1F3FD}|\u{1F3FC}|\u{1F3FB})?|\u{1F469}(?:\u{1F3FF}|\u{1F3FE}|\u{1F3FD}|\u{1F3FC}|\u{1F3FB})?|\u{1F1FD}\u{1F1F0}|\u{1F1F6}\u{1F1E6}|\u{1F1F4}\u{1F1F2}|\u{1F408}\u200D\u2B1B|\u2764\uFE0F\u200D[\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{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}][\u{1F3FB}-\u{1F3FF}]|[\u26F9\u{1F3CB}\u{1F3CC}\u{1F575}][\uFE0F\u{1F3FB}-\u{1F3FF}]|\u{1F3F4}|[\u270A\u270B\u{1F385}\u{1F3C2}\u{1F3C7}\u{1F442}\u{1F443}\u{1F446}-\u{1F450}\u{1F466}\u{1F467}\u{1F46B}-\u{1F46D}\u{1F472}\u{1F474}-\u{1F476}\u{1F478}\u{1F47C}\u{1F483}\u{1F485}\u{1F48F}\u{1F491}\u{1F4AA}\u{1F57A}\u{1F595}\u{1F596}\u{1F64C}\u{1F64F}\u{1F6C0}\u{1F6CC}\u{1F90C}\u{1F90F}\u{1F918}-\u{1F91C}\u{1F91E}\u{1F91F}\u{1F930}-\u{1F934}\u{1F936}\u{1F977}\u{1F9B5}\u{1F9B6}\u{1F9BB}\u{1F9D2}\u{1F9D3}\u{1F9D5}][\u{1F3FB}-\u{1F3FF}]|[\u261D\u270C\u270D\u{1F574}\u{1F590}][\uFE0F\u{1F3FB}-\u{1F3FF}]|[\u270A\u270B\u{1F385}\u{1F3C2}\u{1F3C7}\u{1F408}\u{1F415}\u{1F43B}\u{1F442}\u{1F443}\u{1F446}-\u{1F450}\u{1F466}\u{1F467}\u{1F46B}-\u{1F46D}\u{1F472}\u{1F474}-\u{1F476}\u{1F478}\u{1F47C}\u{1F483}\u{1F485}\u{1F48F}\u{1F491}\u{1F4AA}\u{1F57A}\u{1F595}\u{1F596}\u{1F62E}\u{1F635}\u{1F636}\u{1F64C}\u{1F64F}\u{1F6C0}\u{1F6CC}\u{1F90C}\u{1F90F}\u{1F918}-\u{1F91C}\u{1F91E}\u{1F91F}\u{1F930}-\u{1F934}\u{1F936}\u{1F977}\u{1F9B5}\u{1F9B6}\u{1F9BB}\u{1F9D2}\u{1F9D3}\u{1F9D5}]|[\u{1F3C3}\u{1F3C4}\u{1F3CA}\u{1F46E}\u{1F470}\u{1F471}\u{1F473}\u{1F477}\u{1F481}\u{1F482}\u{1F486}\u{1F487}\u{1F645}-\u{1F647}\u{1F64B}\u{1F64D}\u{1F64E}\u{1F6A3}\u{1F6B4}-\u{1F6B6}\u{1F926}\u{1F935}\u{1F937}-\u{1F939}\u{1F93D}\u{1F93E}\u{1F9B8}\u{1F9B9}\u{1F9CD}-\u{1F9CF}\u{1F9D4}\u{1F9D6}-\u{1F9DD}]|[\u{1F46F}\u{1F93C}\u{1F9DE}\u{1F9DF}]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55\u{1F004}\u{1F0CF}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F201}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F236}\u{1F238}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F320}\u{1F32D}-\u{1F335}\u{1F337}-\u{1F37C}\u{1F37E}-\u{1F384}\u{1F386}-\u{1F393}\u{1F3A0}-\u{1F3C1}\u{1F3C5}\u{1F3C6}\u{1F3C8}\u{1F3C9}\u{1F3CF}-\u{1F3D3}\u{1F3E0}-\u{1F3F0}\u{1F3F8}-\u{1F407}\u{1F409}-\u{1F414}\u{1F416}-\u{1F43A}\u{1F43C}-\u{1F43E}\u{1F440}\u{1F444}\u{1F445}\u{1F451}-\u{1F465}\u{1F46A}\u{1F479}-\u{1F47B}\u{1F47D}-\u{1F480}\u{1F484}\u{1F488}-\u{1F48E}\u{1F490}\u{1F492}-\u{1F4A9}\u{1F4AB}-\u{1F4FC}\u{1F4FF}-\u{1F53D}\u{1F54B}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F5A4}\u{1F5FB}-\u{1F62D}\u{1F62F}-\u{1F634}\u{1F637}-\u{1F644}\u{1F648}-\u{1F64A}\u{1F680}-\u{1F6A2}\u{1F6A4}-\u{1F6B3}\u{1F6B7}-\u{1F6BF}\u{1F6C1}-\u{1F6C5}\u{1F6D0}-\u{1F6D2}\u{1F6D5}-\u{1F6D7}\u{1F6EB}\u{1F6EC}\u{1F6F4}-\u{1F6FC}\u{1F7E0}-\u{1F7EB}\u{1F90D}\u{1F90E}\u{1F910}-\u{1F917}\u{1F91D}\u{1F920}-\u{1F925}\u{1F927}-\u{1F92F}\u{1F93A}\u{1F93F}-\u{1F945}\u{1F947}-\u{1F976}\u{1F978}\u{1F97A}-\u{1F9B4}\u{1F9B7}\u{1F9BA}\u{1F9BC}-\u{1F9CB}\u{1F9D0}\u{1F9E0}-\u{1F9FF}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7A}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAA8}\u{1FAB0}-\u{1FAB6}\u{1FAC0}-\u{1FAC2}\u{1FAD0}-\u{1FAD6}]|[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299\u{1F004}\u{1F0CF}\u{1F170}\u{1F171}\u{1F17E}\u{1F17F}\u{1F18E}\u{1F191}-\u{1F19A}\u{1F1E6}-\u{1F1FF}\u{1F201}\u{1F202}\u{1F21A}\u{1F22F}\u{1F232}-\u{1F23A}\u{1F250}\u{1F251}\u{1F300}-\u{1F321}\u{1F324}-\u{1F393}\u{1F396}\u{1F397}\u{1F399}-\u{1F39B}\u{1F39E}-\u{1F3F0}\u{1F3F3}-\u{1F3F5}\u{1F3F7}-\u{1F4FD}\u{1F4FF}-\u{1F53D}\u{1F549}-\u{1F54E}\u{1F550}-\u{1F567}\u{1F56F}\u{1F570}\u{1F573}-\u{1F57A}\u{1F587}\u{1F58A}-\u{1F58D}\u{1F590}\u{1F595}\u{1F596}\u{1F5A4}\u{1F5A5}\u{1F5A8}\u{1F5B1}\u{1F5B2}\u{1F5BC}\u{1F5C2}-\u{1F5C4}\u{1F5D1}-\u{1F5D3}\u{1F5DC}-\u{1F5DE}\u{1F5E1}\u{1F5E3}\u{1F5E8}\u{1F5EF}\u{1F5F3}\u{1F5FA}-\u{1F64F}\u{1F680}-\u{1F6C5}\u{1F6CB}-\u{1F6D2}\u{1F6D5}-\u{1F6D7}\u{1F6E0}-\u{1F6E5}\u{1F6E9}\u{1F6EB}\u{1F6EC}\u{1F6F0}\u{1F6F3}-\u{1F6FC}\u{1F7E0}-\u{1F7EB}\u{1F90C}-\u{1F93A}\u{1F93C}-\u{1F945}\u{1F947}-\u{1F978}\u{1F97A}-\u{1F9CB}\u{1F9CD}-\u{1F9FF}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7A}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAA8}\u{1FAB0}-\u{1FAB6}\u{1FAC0}-\u{1FAC2}\u{1FAD0}-\u{1FAD6}]\uFE0F?/gu; +}; diff --git a/node_modules/@isaacs/cliui/node_modules/emoji-regex/index.d.ts b/node_modules/@isaacs/cliui/node_modules/emoji-regex/index.d.ts new file mode 100644 index 00000000..8f235c9a --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/emoji-regex/index.d.ts @@ -0,0 +1,5 @@ +declare module 'emoji-regex' { + function emojiRegex(): RegExp; + + export = emojiRegex; +} diff --git a/node_modules/@isaacs/cliui/node_modules/emoji-regex/index.js b/node_modules/@isaacs/cliui/node_modules/emoji-regex/index.js new file mode 100644 index 00000000..c0490d4c --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/emoji-regex/index.js @@ -0,0 +1,6 @@ +"use strict"; + +module.exports = function () { + // https://mths.be/emoji + return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD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4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD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uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g; +}; diff --git a/node_modules/@isaacs/cliui/node_modules/emoji-regex/package.json b/node_modules/@isaacs/cliui/node_modules/emoji-regex/package.json new file mode 100644 index 00000000..eac892a1 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/emoji-regex/package.json @@ -0,0 +1,52 @@ +{ + "name": "emoji-regex", + "version": "9.2.2", + "description": "A regular expression to match all Emoji-only symbols as per the Unicode Standard.", + "homepage": "https://mths.be/emoji-regex", + "main": "index.js", + "types": "index.d.ts", + "keywords": [ + "unicode", + "regex", + "regexp", + "regular expressions", + "code points", + "symbols", + "characters", + "emoji" + ], + "license": "MIT", + "author": { + "name": "Mathias Bynens", + "url": "https://mathiasbynens.be/" + }, + "repository": { + "type": "git", + "url": "https://github.com/mathiasbynens/emoji-regex.git" + }, + "bugs": "https://github.com/mathiasbynens/emoji-regex/issues", + "files": [ + "LICENSE-MIT.txt", + "index.js", + "index.d.ts", + "RGI_Emoji.js", + "RGI_Emoji.d.ts", + "text.js", + "text.d.ts", + "es2015" + ], + "scripts": { + "build": "rm -rf -- es2015; babel src -d .; NODE_ENV=es2015 babel src es2015_types -D -d ./es2015; node script/inject-sequences.js", + "test": "mocha", + "test:watch": "npm run test -- --watch" + }, + "devDependencies": { + "@babel/cli": "^7.4.4", + "@babel/core": "^7.4.4", + "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", + "@babel/preset-env": "^7.4.4", + "@unicode/unicode-13.0.0": "^1.0.3", + "mocha": "^6.1.4", + "regexgen": "^1.3.0" + } +} diff --git a/node_modules/@isaacs/cliui/node_modules/emoji-regex/text.d.ts b/node_modules/@isaacs/cliui/node_modules/emoji-regex/text.d.ts new file mode 100644 index 00000000..c3a01254 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/emoji-regex/text.d.ts @@ -0,0 +1,5 @@ +declare module 'emoji-regex/text' { + function emojiRegex(): RegExp; + + export = emojiRegex; +} diff --git a/node_modules/@isaacs/cliui/node_modules/emoji-regex/text.js b/node_modules/@isaacs/cliui/node_modules/emoji-regex/text.js new file mode 100644 index 00000000..9bc63ce7 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/emoji-regex/text.js @@ -0,0 +1,6 @@ +"use strict"; + +module.exports = function () { + // https://mths.be/emoji + return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\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\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83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D83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F?/g; +}; diff --git a/node_modules/@isaacs/cliui/node_modules/string-width/index.d.ts b/node_modules/@isaacs/cliui/node_modules/string-width/index.d.ts new file mode 100644 index 00000000..aed9fdff --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/string-width/index.d.ts @@ -0,0 +1,29 @@ +export interface Options { + /** + Count [ambiguous width characters](https://www.unicode.org/reports/tr11/#Ambiguous) as having narrow width (count of 1) instead of wide width (count of 2). + + @default true + */ + readonly ambiguousIsNarrow: boolean; +} + +/** +Get the visual width of a string - the number of columns required to display it. + +Some Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) and use double the normal width. [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) are stripped and doesn't affect the width. + +@example +``` +import stringWidth from 'string-width'; + +stringWidth('a'); +//=> 1 + +stringWidth('古'); +//=> 2 + +stringWidth('\u001B[1m古\u001B[22m'); +//=> 2 +``` +*/ +export default function stringWidth(string: string, options?: Options): number; diff --git a/node_modules/@isaacs/cliui/node_modules/string-width/index.js b/node_modules/@isaacs/cliui/node_modules/string-width/index.js new file mode 100644 index 00000000..9294488f --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/string-width/index.js @@ -0,0 +1,54 @@ +import stripAnsi from 'strip-ansi'; +import eastAsianWidth from 'eastasianwidth'; +import emojiRegex from 'emoji-regex'; + +export default function stringWidth(string, options = {}) { + if (typeof string !== 'string' || string.length === 0) { + return 0; + } + + options = { + ambiguousIsNarrow: true, + ...options + }; + + string = stripAnsi(string); + + if (string.length === 0) { + return 0; + } + + string = string.replace(emojiRegex(), ' '); + + const ambiguousCharacterWidth = options.ambiguousIsNarrow ? 1 : 2; + let width = 0; + + for (const character of string) { + const codePoint = character.codePointAt(0); + + // Ignore control characters + if (codePoint <= 0x1F || (codePoint >= 0x7F && codePoint <= 0x9F)) { + continue; + } + + // Ignore combining characters + if (codePoint >= 0x300 && codePoint <= 0x36F) { + continue; + } + + const code = eastAsianWidth.eastAsianWidth(character); + switch (code) { + case 'F': + case 'W': + width += 2; + break; + case 'A': + width += ambiguousCharacterWidth; + break; + default: + width += 1; + } + } + + return width; +} diff --git a/node_modules/@isaacs/cliui/node_modules/string-width/license b/node_modules/@isaacs/cliui/node_modules/string-width/license new file mode 100644 index 00000000..fa7ceba3 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/string-width/license @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/@isaacs/cliui/node_modules/string-width/package.json b/node_modules/@isaacs/cliui/node_modules/string-width/package.json new file mode 100644 index 00000000..f46d6770 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/string-width/package.json @@ -0,0 +1,59 @@ +{ + "name": "string-width", + "version": "5.1.2", + "description": "Get the visual width of a string - the number of columns required to display it", + "license": "MIT", + "repository": "sindresorhus/string-width", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "type": "module", + "exports": "./index.js", + "engines": { + "node": ">=12" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "string", + "character", + "unicode", + "width", + "visual", + "column", + "columns", + "fullwidth", + "full-width", + "full", + "ansi", + "escape", + "codes", + "cli", + "command-line", + "terminal", + "console", + "cjk", + "chinese", + "japanese", + "korean", + "fixed-width" + ], + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "devDependencies": { + "ava": "^3.15.0", + "tsd": "^0.14.0", + "xo": "^0.38.2" + } +} diff --git a/node_modules/@isaacs/cliui/node_modules/string-width/readme.md b/node_modules/@isaacs/cliui/node_modules/string-width/readme.md new file mode 100644 index 00000000..52910df1 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/string-width/readme.md @@ -0,0 +1,67 @@ +# string-width + +> Get the visual width of a string - the number of columns required to display it + +Some Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) and use double the normal width. [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) are stripped and doesn't affect the width. + +Useful to be able to measure the actual width of command-line output. + +## Install + +``` +$ npm install string-width +``` + +## Usage + +```js +import stringWidth from 'string-width'; + +stringWidth('a'); +//=> 1 + +stringWidth('古'); +//=> 2 + +stringWidth('\u001B[1m古\u001B[22m'); +//=> 2 +``` + +## API + +### stringWidth(string, options?) + +#### string + +Type: `string` + +The string to be counted. + +#### options + +Type: `object` + +##### ambiguousIsNarrow + +Type: `boolean`\ +Default: `false` + +Count [ambiguous width characters](https://www.unicode.org/reports/tr11/#Ambiguous) as having narrow width (count of 1) instead of wide width (count of 2). + +## Related + +- [string-width-cli](https://github.com/sindresorhus/string-width-cli) - CLI for this module +- [string-length](https://github.com/sindresorhus/string-length) - Get the real length of a string +- [widest-line](https://github.com/sindresorhus/widest-line) - Get the visual width of the widest line in a string + +--- + +
+ + Get professional support for this package with a Tidelift subscription + +
+ + Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. +
+
diff --git a/node_modules/@isaacs/cliui/node_modules/strip-ansi/index.d.ts b/node_modules/@isaacs/cliui/node_modules/strip-ansi/index.d.ts new file mode 100644 index 00000000..44e954d0 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/strip-ansi/index.d.ts @@ -0,0 +1,15 @@ +/** +Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string. + +@example +``` +import stripAnsi from 'strip-ansi'; + +stripAnsi('\u001B[4mUnicorn\u001B[0m'); +//=> 'Unicorn' + +stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007'); +//=> 'Click' +``` +*/ +export default function stripAnsi(string: string): string; diff --git a/node_modules/@isaacs/cliui/node_modules/strip-ansi/index.js b/node_modules/@isaacs/cliui/node_modules/strip-ansi/index.js new file mode 100644 index 00000000..ba19750e --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/strip-ansi/index.js @@ -0,0 +1,14 @@ +import ansiRegex from 'ansi-regex'; + +const regex = ansiRegex(); + +export default function stripAnsi(string) { + if (typeof string !== 'string') { + throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``); + } + + // Even though the regex is global, we don't need to reset the `.lastIndex` + // because unlike `.exec()` and `.test()`, `.replace()` does it automatically + // and doing it manually has a performance penalty. + return string.replace(regex, ''); +} diff --git a/node_modules/@isaacs/cliui/node_modules/strip-ansi/license b/node_modules/@isaacs/cliui/node_modules/strip-ansi/license new file mode 100644 index 00000000..fa7ceba3 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/strip-ansi/license @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/@isaacs/cliui/node_modules/strip-ansi/package.json b/node_modules/@isaacs/cliui/node_modules/strip-ansi/package.json new file mode 100644 index 00000000..e1f455c3 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/strip-ansi/package.json @@ -0,0 +1,57 @@ +{ + "name": "strip-ansi", + "version": "7.1.0", + "description": "Strip ANSI escape codes from a string", + "license": "MIT", + "repository": "chalk/strip-ansi", + "funding": "https://github.com/chalk/strip-ansi?sponsor=1", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "type": "module", + "exports": "./index.js", + "engines": { + "node": ">=12" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "strip", + "trim", + "remove", + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "devDependencies": { + "ava": "^3.15.0", + "tsd": "^0.17.0", + "xo": "^0.44.0" + } +} diff --git a/node_modules/@isaacs/cliui/node_modules/strip-ansi/readme.md b/node_modules/@isaacs/cliui/node_modules/strip-ansi/readme.md new file mode 100644 index 00000000..56278510 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/strip-ansi/readme.md @@ -0,0 +1,41 @@ +# strip-ansi + +> Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string + +## Install + +``` +$ npm install strip-ansi +``` + +## Usage + +```js +import stripAnsi from 'strip-ansi'; + +stripAnsi('\u001B[4mUnicorn\u001B[0m'); +//=> 'Unicorn' + +stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007'); +//=> 'Click' +``` + +## strip-ansi for enterprise + +Available as part of the Tidelift Subscription. + +The maintainers of strip-ansi and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-strip-ansi?utm_source=npm-strip-ansi&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) + +## Related + +- [strip-ansi-cli](https://github.com/chalk/strip-ansi-cli) - CLI for this module +- [strip-ansi-stream](https://github.com/chalk/strip-ansi-stream) - Streaming version of this module +- [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes +- [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes +- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right + +## Maintainers + +- [Sindre Sorhus](https://github.com/sindresorhus) +- [Josh Junon](https://github.com/qix-) + diff --git a/node_modules/@isaacs/cliui/node_modules/wrap-ansi/index.d.ts b/node_modules/@isaacs/cliui/node_modules/wrap-ansi/index.d.ts new file mode 100644 index 00000000..95471cad --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/wrap-ansi/index.d.ts @@ -0,0 +1,41 @@ +export type Options = { + /** + By default the wrap is soft, meaning long words may extend past the column width. Setting this to `true` will make it hard wrap at the column width. + + @default false + */ + readonly hard?: boolean; + + /** + By default, an attempt is made to split words at spaces, ensuring that they don't extend past the configured columns. If wordWrap is `false`, each column will instead be completely filled splitting words as necessary. + + @default true + */ + readonly wordWrap?: boolean; + + /** + Whitespace on all lines is removed by default. Set this option to `false` if you don't want to trim. + + @default true + */ + readonly trim?: boolean; +}; + +/** +Wrap words to the specified column width. + +@param string - String with ANSI escape codes. Like one styled by [`chalk`](https://github.com/chalk/chalk). Newline characters will be normalized to `\n`. +@param columns - Number of columns to wrap the text to. + +@example +``` +import chalk from 'chalk'; +import wrapAnsi from 'wrap-ansi'; + +const input = 'The quick brown ' + chalk.red('fox jumped over ') + + 'the lazy ' + chalk.green('dog and then ran away with the unicorn.'); + +console.log(wrapAnsi(input, 20)); +``` +*/ +export default function wrapAnsi(string: string, columns: number, options?: Options): string; diff --git a/node_modules/@isaacs/cliui/node_modules/wrap-ansi/index.js b/node_modules/@isaacs/cliui/node_modules/wrap-ansi/index.js new file mode 100755 index 00000000..d80c74c1 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/wrap-ansi/index.js @@ -0,0 +1,214 @@ +import stringWidth from 'string-width'; +import stripAnsi from 'strip-ansi'; +import ansiStyles from 'ansi-styles'; + +const ESCAPES = new Set([ + '\u001B', + '\u009B', +]); + +const END_CODE = 39; +const ANSI_ESCAPE_BELL = '\u0007'; +const ANSI_CSI = '['; +const ANSI_OSC = ']'; +const ANSI_SGR_TERMINATOR = 'm'; +const ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`; + +const wrapAnsiCode = code => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`; +const wrapAnsiHyperlink = uri => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${uri}${ANSI_ESCAPE_BELL}`; + +// Calculate the length of words split on ' ', ignoring +// the extra characters added by ansi escape codes +const wordLengths = string => string.split(' ').map(character => stringWidth(character)); + +// Wrap a long word across multiple rows +// Ansi escape codes do not count towards length +const wrapWord = (rows, word, columns) => { + const characters = [...word]; + + let isInsideEscape = false; + let isInsideLinkEscape = false; + let visible = stringWidth(stripAnsi(rows[rows.length - 1])); + + for (const [index, character] of characters.entries()) { + const characterLength = stringWidth(character); + + if (visible + characterLength <= columns) { + rows[rows.length - 1] += character; + } else { + rows.push(character); + visible = 0; + } + + if (ESCAPES.has(character)) { + isInsideEscape = true; + isInsideLinkEscape = characters.slice(index + 1).join('').startsWith(ANSI_ESCAPE_LINK); + } + + if (isInsideEscape) { + if (isInsideLinkEscape) { + if (character === ANSI_ESCAPE_BELL) { + isInsideEscape = false; + isInsideLinkEscape = false; + } + } else if (character === ANSI_SGR_TERMINATOR) { + isInsideEscape = false; + } + + continue; + } + + visible += characterLength; + + if (visible === columns && index < characters.length - 1) { + rows.push(''); + visible = 0; + } + } + + // It's possible that the last row we copy over is only + // ansi escape characters, handle this edge-case + if (!visible && rows[rows.length - 1].length > 0 && rows.length > 1) { + rows[rows.length - 2] += rows.pop(); + } +}; + +// Trims spaces from a string ignoring invisible sequences +const stringVisibleTrimSpacesRight = string => { + const words = string.split(' '); + let last = words.length; + + while (last > 0) { + if (stringWidth(words[last - 1]) > 0) { + break; + } + + last--; + } + + if (last === words.length) { + return string; + } + + return words.slice(0, last).join(' ') + words.slice(last).join(''); +}; + +// The wrap-ansi module can be invoked in either 'hard' or 'soft' wrap mode +// +// 'hard' will never allow a string to take up more than columns characters +// +// 'soft' allows long words to expand past the column length +const exec = (string, columns, options = {}) => { + if (options.trim !== false && string.trim() === '') { + return ''; + } + + let returnValue = ''; + let escapeCode; + let escapeUrl; + + const lengths = wordLengths(string); + let rows = ['']; + + for (const [index, word] of string.split(' ').entries()) { + if (options.trim !== false) { + rows[rows.length - 1] = rows[rows.length - 1].trimStart(); + } + + let rowLength = stringWidth(rows[rows.length - 1]); + + if (index !== 0) { + if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) { + // If we start with a new word but the current row length equals the length of the columns, add a new row + rows.push(''); + rowLength = 0; + } + + if (rowLength > 0 || options.trim === false) { + rows[rows.length - 1] += ' '; + rowLength++; + } + } + + // In 'hard' wrap mode, the length of a line is never allowed to extend past 'columns' + if (options.hard && lengths[index] > columns) { + const remainingColumns = (columns - rowLength); + const breaksStartingThisLine = 1 + Math.floor((lengths[index] - remainingColumns - 1) / columns); + const breaksStartingNextLine = Math.floor((lengths[index] - 1) / columns); + if (breaksStartingNextLine < breaksStartingThisLine) { + rows.push(''); + } + + wrapWord(rows, word, columns); + continue; + } + + if (rowLength + lengths[index] > columns && rowLength > 0 && lengths[index] > 0) { + if (options.wordWrap === false && rowLength < columns) { + wrapWord(rows, word, columns); + continue; + } + + rows.push(''); + } + + if (rowLength + lengths[index] > columns && options.wordWrap === false) { + wrapWord(rows, word, columns); + continue; + } + + rows[rows.length - 1] += word; + } + + if (options.trim !== false) { + rows = rows.map(row => stringVisibleTrimSpacesRight(row)); + } + + const pre = [...rows.join('\n')]; + + for (const [index, character] of pre.entries()) { + returnValue += character; + + if (ESCAPES.has(character)) { + const {groups} = new RegExp(`(?:\\${ANSI_CSI}(?\\d+)m|\\${ANSI_ESCAPE_LINK}(?.*)${ANSI_ESCAPE_BELL})`).exec(pre.slice(index).join('')) || {groups: {}}; + if (groups.code !== undefined) { + const code = Number.parseFloat(groups.code); + escapeCode = code === END_CODE ? undefined : code; + } else if (groups.uri !== undefined) { + escapeUrl = groups.uri.length === 0 ? undefined : groups.uri; + } + } + + const code = ansiStyles.codes.get(Number(escapeCode)); + + if (pre[index + 1] === '\n') { + if (escapeUrl) { + returnValue += wrapAnsiHyperlink(''); + } + + if (escapeCode && code) { + returnValue += wrapAnsiCode(code); + } + } else if (character === '\n') { + if (escapeCode && code) { + returnValue += wrapAnsiCode(escapeCode); + } + + if (escapeUrl) { + returnValue += wrapAnsiHyperlink(escapeUrl); + } + } + } + + return returnValue; +}; + +// For each newline, invoke the method separately +export default function wrapAnsi(string, columns, options) { + return String(string) + .normalize() + .replace(/\r\n/g, '\n') + .split('\n') + .map(line => exec(line, columns, options)) + .join('\n'); +} diff --git a/node_modules/@isaacs/cliui/node_modules/wrap-ansi/license b/node_modules/@isaacs/cliui/node_modules/wrap-ansi/license new file mode 100644 index 00000000..fa7ceba3 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/wrap-ansi/license @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/@isaacs/cliui/node_modules/wrap-ansi/package.json b/node_modules/@isaacs/cliui/node_modules/wrap-ansi/package.json new file mode 100644 index 00000000..198a5dbc --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/wrap-ansi/package.json @@ -0,0 +1,69 @@ +{ + "name": "wrap-ansi", + "version": "8.1.0", + "description": "Wordwrap a string with ANSI escape codes", + "license": "MIT", + "repository": "chalk/wrap-ansi", + "funding": "https://github.com/chalk/wrap-ansi?sponsor=1", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "type": "module", + "exports": { + "types": "./index.d.ts", + "default": "./index.js" + }, + "engines": { + "node": ">=12" + }, + "scripts": { + "test": "xo && nyc ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "wrap", + "break", + "wordwrap", + "wordbreak", + "linewrap", + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "devDependencies": { + "ava": "^3.15.0", + "chalk": "^4.1.2", + "coveralls": "^3.1.1", + "has-ansi": "^5.0.1", + "nyc": "^15.1.0", + "tsd": "^0.25.0", + "xo": "^0.44.0" + } +} diff --git a/node_modules/@isaacs/cliui/node_modules/wrap-ansi/readme.md b/node_modules/@isaacs/cliui/node_modules/wrap-ansi/readme.md new file mode 100644 index 00000000..21f6fed7 --- /dev/null +++ b/node_modules/@isaacs/cliui/node_modules/wrap-ansi/readme.md @@ -0,0 +1,91 @@ +# wrap-ansi + +> Wordwrap a string with [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) + +## Install + +``` +$ npm install wrap-ansi +``` + +## Usage + +```js +import chalk from 'chalk'; +import wrapAnsi from 'wrap-ansi'; + +const input = 'The quick brown ' + chalk.red('fox jumped over ') + + 'the lazy ' + chalk.green('dog and then ran away with the unicorn.'); + +console.log(wrapAnsi(input, 20)); +``` + + + +## API + +### wrapAnsi(string, columns, options?) + +Wrap words to the specified column width. + +#### string + +Type: `string` + +String with ANSI escape codes. Like one styled by [`chalk`](https://github.com/chalk/chalk). Newline characters will be normalized to `\n`. + +#### columns + +Type: `number` + +Number of columns to wrap the text to. + +#### options + +Type: `object` + +##### hard + +Type: `boolean`\ +Default: `false` + +By default the wrap is soft, meaning long words may extend past the column width. Setting this to `true` will make it hard wrap at the column width. + +##### wordWrap + +Type: `boolean`\ +Default: `true` + +By default, an attempt is made to split words at spaces, ensuring that they don't extend past the configured columns. If wordWrap is `false`, each column will instead be completely filled splitting words as necessary. + +##### trim + +Type: `boolean`\ +Default: `true` + +Whitespace on all lines is removed by default. Set this option to `false` if you don't want to trim. + +## Related + +- [slice-ansi](https://github.com/chalk/slice-ansi) - Slice a string with ANSI escape codes +- [cli-truncate](https://github.com/sindresorhus/cli-truncate) - Truncate a string to a specific width in the terminal +- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right +- [jsesc](https://github.com/mathiasbynens/jsesc) - Generate ASCII-only output from Unicode strings. Useful for creating test fixtures. + +## Maintainers + +- [Sindre Sorhus](https://github.com/sindresorhus) +- [Josh Junon](https://github.com/qix-) +- [Benjamin Coe](https://github.com/bcoe) + +--- + +
+ + Get professional support for this package with a Tidelift subscription + +
+ + Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. +
+
diff --git a/node_modules/@isaacs/cliui/package.json b/node_modules/@isaacs/cliui/package.json new file mode 100644 index 00000000..7a952532 --- /dev/null +++ b/node_modules/@isaacs/cliui/package.json @@ -0,0 +1,86 @@ +{ + "name": "@isaacs/cliui", + "version": "8.0.2", + "description": "easily create complex multi-column command-line-interfaces", + "main": "build/index.cjs", + "exports": { + ".": [ + { + "import": "./index.mjs", + "require": "./build/index.cjs" + }, + "./build/index.cjs" + ] + }, + "type": "module", + "module": "./index.mjs", + "scripts": { + "check": "standardx '**/*.ts' && standardx '**/*.js' && standardx '**/*.cjs'", + "fix": "standardx --fix '**/*.ts' && standardx --fix '**/*.js' && standardx --fix '**/*.cjs'", + "pretest": "rimraf build && tsc -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs", + "test": "c8 mocha ./test/*.cjs", + "test:esm": "c8 mocha ./test/**/*.mjs", + "postest": "check", + "coverage": "c8 report --check-coverage", + "precompile": "rimraf build", + "compile": "tsc", + "postcompile": "npm run build:cjs", + "build:cjs": "rollup -c", + "prepare": "npm run compile" + }, + "repository": "yargs/cliui", + "standard": { + "ignore": [ + "**/example/**" + ], + "globals": [ + "it" + ] + }, + "keywords": [ + "cli", + "command-line", + "layout", + "design", + "console", + "wrap", + "table" + ], + "author": "Ben Coe ", + "license": "ISC", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "devDependencies": { + "@types/node": "^14.0.27", + "@typescript-eslint/eslint-plugin": "^4.0.0", + "@typescript-eslint/parser": "^4.0.0", + "c8": "^7.3.0", + "chai": "^4.2.0", + "chalk": "^4.1.0", + "cross-env": "^7.0.2", + "eslint": "^7.6.0", + "eslint-plugin-import": "^2.22.0", + "eslint-plugin-node": "^11.1.0", + "gts": "^3.0.0", + "mocha": "^10.0.0", + "rimraf": "^3.0.2", + "rollup": "^2.23.1", + "rollup-plugin-ts": "^3.0.2", + "standardx": "^7.0.0", + "typescript": "^4.0.0" + }, + "files": [ + "build", + "index.mjs", + "!*.d.ts" + ], + "engines": { + "node": ">=12" + } +} diff --git a/node_modules/@isaacs/string-locale-compare/LICENSE b/node_modules/@isaacs/string-locale-compare/LICENSE new file mode 100644 index 00000000..05eeeb88 --- /dev/null +++ b/node_modules/@isaacs/string-locale-compare/LICENSE @@ -0,0 +1,15 @@ +The ISC License + +Copyright (c) Isaac Z. Schlueter + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/@isaacs/string-locale-compare/README.md b/node_modules/@isaacs/string-locale-compare/README.md new file mode 100644 index 00000000..eeee0db7 --- /dev/null +++ b/node_modules/@isaacs/string-locale-compare/README.md @@ -0,0 +1,31 @@ +# @isaacs/string-locale-compare + +Compare strings with Intl.Collator if available, falling back to +String.localeCompare otherwise. + +This also forces the use of a specific locale, to avoid using the system +locale, which is non-deterministic. + +## USAGE + +```js +const stringLocaleCompare = require('@isaacs/string-locale-compare') + +myArrayOfStrings.sort(stringLocaleCompare('en')) + +// can also pass extra options +myArrayOfNumericStrings.sort(stringLocaleCompare('en', { numeric: true })) +``` + +## API + +`stringLocaleCompare(locale, [options])` + +Locale is required, must be a valid locale string. + +Options is optional. The following options are supported: + +* `sensitivity` +* `numeric` +* `ignorePunctuation` +* `caseFirst` diff --git a/node_modules/@isaacs/string-locale-compare/index.js b/node_modules/@isaacs/string-locale-compare/index.js new file mode 100644 index 00000000..0f68ab67 --- /dev/null +++ b/node_modules/@isaacs/string-locale-compare/index.js @@ -0,0 +1,42 @@ +const hasIntl = typeof Intl === 'object' && !!Intl +const Collator = hasIntl && Intl.Collator +const cache = new Map() + +const collatorCompare = (locale, opts) => { + const collator = new Collator(locale, opts) + return (a, b) => collator.compare(a, b) +} + +const localeCompare = (locale, opts) => (a, b) => a.localeCompare(b, locale, opts) + +const knownOptions = [ + 'sensitivity', + 'numeric', + 'ignorePunctuation', + 'caseFirst', +] + +const { hasOwnProperty } = Object.prototype + +module.exports = (locale, options = {}) => { + if (!locale || typeof locale !== 'string') + throw new TypeError('locale required') + + const opts = knownOptions.reduce((opts, k) => { + if (hasOwnProperty.call(options, k)) { + opts[k] = options[k] + } + return opts + }, {}) + const key = `${locale}\n${JSON.stringify(opts)}` + + if (cache.has(key)) + return cache.get(key) + + const compare = hasIntl + ? collatorCompare(locale, opts) + : localeCompare(locale, opts) + cache.set(key, compare) + + return compare +} diff --git a/node_modules/@isaacs/string-locale-compare/package.json b/node_modules/@isaacs/string-locale-compare/package.json new file mode 100644 index 00000000..58de848a --- /dev/null +++ b/node_modules/@isaacs/string-locale-compare/package.json @@ -0,0 +1,28 @@ +{ + "name": "@isaacs/string-locale-compare", + "version": "1.1.0", + "files": [ + "index.js" + ], + "main": "index.js", + "description": "Compare strings with Intl.Collator if available, falling back to String.localeCompare otherwise", + "repository": { + "type": "git", + "url": "git+https://github.com/isaacs/string-locale-compare" + }, + "author": "Isaac Z. Schlueter (https://izs.me)", + "license": "ISC", + "scripts": { + "test": "tap", + "snap": "tap", + "preversion": "npm test", + "postversion": "npm publish", + "prepublishOnly": "git push origin --follow-tags" + }, + "tap": { + "check-coverage": true + }, + "devDependencies": { + "tap": "^15.0.9" + } +} diff --git a/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs b/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs deleted file mode 100644 index 5d38e383..00000000 --- a/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs +++ /dev/null @@ -1,230 +0,0 @@ -import { SetArray, put, remove } from '@jridgewell/set-array'; -import { encode } from '@jridgewell/sourcemap-codec'; -import { TraceMap, decodedMappings } from '@jridgewell/trace-mapping'; - -const COLUMN = 0; -const SOURCES_INDEX = 1; -const SOURCE_LINE = 2; -const SOURCE_COLUMN = 3; -const NAMES_INDEX = 4; - -const NO_NAME = -1; -/** - * Provides the state to generate a sourcemap. - */ -class GenMapping { - constructor({ file, sourceRoot } = {}) { - this._names = new SetArray(); - this._sources = new SetArray(); - this._sourcesContent = []; - this._mappings = []; - this.file = file; - this.sourceRoot = sourceRoot; - this._ignoreList = new SetArray(); - } -} -/** - * Typescript doesn't allow friend access to private fields, so this just casts the map into a type - * with public access modifiers. - */ -function cast(map) { - return map; -} -function addSegment(map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) { - return addSegmentInternal(false, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content); -} -function addMapping(map, mapping) { - return addMappingInternal(false, map, mapping); -} -/** - * Same as `addSegment`, but will only add the segment if it generates useful information in the - * resulting map. This only works correctly if segments are added **in order**, meaning you should - * not add a segment with a lower generated line/column than one that came before. - */ -const maybeAddSegment = (map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) => { - return addSegmentInternal(true, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content); -}; -/** - * Same as `addMapping`, but will only add the mapping if it generates useful information in the - * resulting map. This only works correctly if mappings are added **in order**, meaning you should - * not add a mapping with a lower generated line/column than one that came before. - */ -const maybeAddMapping = (map, mapping) => { - return addMappingInternal(true, map, mapping); -}; -/** - * Adds/removes the content of the source file to the source map. - */ -function setSourceContent(map, source, content) { - const { _sources: sources, _sourcesContent: sourcesContent } = cast(map); - const index = put(sources, source); - sourcesContent[index] = content; -} -function setIgnore(map, source, ignore = true) { - const { _sources: sources, _sourcesContent: sourcesContent, _ignoreList: ignoreList } = cast(map); - const index = put(sources, source); - if (index === sourcesContent.length) - sourcesContent[index] = null; - if (ignore) - put(ignoreList, index); - else - remove(ignoreList, index); -} -/** - * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ -function toDecodedMap(map) { - const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names, _ignoreList: ignoreList, } = cast(map); - removeEmptyFinalLines(mappings); - return { - version: 3, - file: map.file || undefined, - names: names.array, - sourceRoot: map.sourceRoot || undefined, - sources: sources.array, - sourcesContent, - mappings, - ignoreList: ignoreList.array, - }; -} -/** - * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ -function toEncodedMap(map) { - const decoded = toDecodedMap(map); - return Object.assign(Object.assign({}, decoded), { mappings: encode(decoded.mappings) }); -} -/** - * Constructs a new GenMapping, using the already present mappings of the input. - */ -function fromMap(input) { - const map = new TraceMap(input); - const gen = new GenMapping({ file: map.file, sourceRoot: map.sourceRoot }); - putAll(cast(gen)._names, map.names); - putAll(cast(gen)._sources, map.sources); - cast(gen)._sourcesContent = map.sourcesContent || map.sources.map(() => null); - cast(gen)._mappings = decodedMappings(map); - if (map.ignoreList) - putAll(cast(gen)._ignoreList, map.ignoreList); - return gen; -} -/** - * Returns an array of high-level mapping objects for every recorded segment, which could then be - * passed to the `source-map` library. - */ -function allMappings(map) { - const out = []; - const { _mappings: mappings, _sources: sources, _names: names } = cast(map); - for (let i = 0; i < mappings.length; i++) { - const line = mappings[i]; - for (let j = 0; j < line.length; j++) { - const seg = line[j]; - const generated = { line: i + 1, column: seg[COLUMN] }; - let source = undefined; - let original = undefined; - let name = undefined; - if (seg.length !== 1) { - source = sources.array[seg[SOURCES_INDEX]]; - original = { line: seg[SOURCE_LINE] + 1, column: seg[SOURCE_COLUMN] }; - if (seg.length === 5) - name = names.array[seg[NAMES_INDEX]]; - } - out.push({ generated, source, original, name }); - } - } - return out; -} -// This split declaration is only so that terser can elminiate the static initialization block. -function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) { - const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names, } = cast(map); - const line = getLine(mappings, genLine); - const index = getColumnIndex(line, genColumn); - if (!source) { - if (skipable && skipSourceless(line, index)) - return; - return insert(line, index, [genColumn]); - } - const sourcesIndex = put(sources, source); - const namesIndex = name ? put(names, name) : NO_NAME; - if (sourcesIndex === sourcesContent.length) - sourcesContent[sourcesIndex] = content !== null && content !== void 0 ? content : null; - if (skipable && skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex)) { - return; - } - return insert(line, index, name - ? [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex] - : [genColumn, sourcesIndex, sourceLine, sourceColumn]); -} -function getLine(mappings, index) { - for (let i = mappings.length; i <= index; i++) { - mappings[i] = []; - } - return mappings[index]; -} -function getColumnIndex(line, genColumn) { - let index = line.length; - for (let i = index - 1; i >= 0; index = i--) { - const current = line[i]; - if (genColumn >= current[COLUMN]) - break; - } - return index; -} -function insert(array, index, value) { - for (let i = array.length; i > index; i--) { - array[i] = array[i - 1]; - } - array[index] = value; -} -function removeEmptyFinalLines(mappings) { - const { length } = mappings; - let len = length; - for (let i = len - 1; i >= 0; len = i, i--) { - if (mappings[i].length > 0) - break; - } - if (len < length) - mappings.length = len; -} -function putAll(setarr, array) { - for (let i = 0; i < array.length; i++) - put(setarr, array[i]); -} -function skipSourceless(line, index) { - // The start of a line is already sourceless, so adding a sourceless segment to the beginning - // doesn't generate any useful information. - if (index === 0) - return true; - const prev = line[index - 1]; - // If the previous segment is also sourceless, then adding another sourceless segment doesn't - // genrate any new information. Else, this segment will end the source/named segment and point to - // a sourceless position, which is useful. - return prev.length === 1; -} -function skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex) { - // A source/named segment at the start of a line gives position at that genColumn - if (index === 0) - return false; - const prev = line[index - 1]; - // If the previous segment is sourceless, then we're transitioning to a source. - if (prev.length === 1) - return false; - // If the previous segment maps to the exact same source position, then this segment doesn't - // provide any new position information. - return (sourcesIndex === prev[SOURCES_INDEX] && - sourceLine === prev[SOURCE_LINE] && - sourceColumn === prev[SOURCE_COLUMN] && - namesIndex === (prev.length === 5 ? prev[NAMES_INDEX] : NO_NAME)); -} -function addMappingInternal(skipable, map, mapping) { - const { generated, source, original, name, content } = mapping; - if (!source) { - return addSegmentInternal(skipable, map, generated.line - 1, generated.column, null, null, null, null, null); - } - return addSegmentInternal(skipable, map, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content); -} - -export { GenMapping, addMapping, addSegment, allMappings, fromMap, maybeAddMapping, maybeAddSegment, setIgnore, setSourceContent, toDecodedMap, toEncodedMap }; -//# sourceMappingURL=gen-mapping.mjs.map diff --git a/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs.map b/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs.map deleted file mode 100644 index 6290b970..00000000 --- a/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gen-mapping.mjs","sources":["../src/sourcemap-segment.ts","../src/gen-mapping.ts"],"sourcesContent":["type GeneratedColumn = number;\ntype SourcesIndex = number;\ntype SourceLine = number;\ntype SourceColumn = number;\ntype NamesIndex = number;\n\nexport type SourceMapSegment =\n | [GeneratedColumn]\n | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn]\n | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];\n\nexport const COLUMN = 0;\nexport const SOURCES_INDEX = 1;\nexport const SOURCE_LINE = 2;\nexport const SOURCE_COLUMN = 3;\nexport const NAMES_INDEX = 4;\n","import { SetArray, put, remove } from '@jridgewell/set-array';\nimport { encode } from '@jridgewell/sourcemap-codec';\nimport { TraceMap, decodedMappings } from '@jridgewell/trace-mapping';\n\nimport {\n COLUMN,\n SOURCES_INDEX,\n SOURCE_LINE,\n SOURCE_COLUMN,\n NAMES_INDEX,\n} from './sourcemap-segment';\n\nimport type { SourceMapInput } from '@jridgewell/trace-mapping';\nimport type { SourceMapSegment } from './sourcemap-segment';\nimport type { DecodedSourceMap, EncodedSourceMap, Pos, Mapping } from './types';\n\nexport type { DecodedSourceMap, EncodedSourceMap, Mapping };\n\nexport type Options = {\n file?: string | null;\n sourceRoot?: string | null;\n};\n\nconst NO_NAME = -1;\n\n/**\n * Provides the state to generate a sourcemap.\n */\nexport class GenMapping {\n private declare _names: SetArray;\n private declare _sources: SetArray;\n private declare _sourcesContent: (string | null)[];\n private declare _mappings: SourceMapSegment[][];\n private declare _ignoreList: SetArray;\n declare file: string | null | undefined;\n declare sourceRoot: string | null | undefined;\n\n constructor({ file, sourceRoot }: Options = {}) {\n this._names = new SetArray();\n this._sources = new SetArray();\n this._sourcesContent = [];\n this._mappings = [];\n this.file = file;\n this.sourceRoot = sourceRoot;\n this._ignoreList = new SetArray();\n }\n}\n\ninterface PublicMap {\n _names: GenMapping['_names'];\n _sources: GenMapping['_sources'];\n _sourcesContent: GenMapping['_sourcesContent'];\n _mappings: GenMapping['_mappings'];\n _ignoreList: GenMapping['_ignoreList'];\n}\n\n/**\n * Typescript doesn't allow friend access to private fields, so this just casts the map into a type\n * with public access modifiers.\n */\nfunction cast(map: unknown): PublicMap {\n return map as any;\n}\n\n/**\n * A low-level API to associate a generated position with an original source position. Line and\n * column here are 0-based, unlike `addMapping`.\n */\nexport function addSegment(\n map: GenMapping,\n genLine: number,\n genColumn: number,\n source?: null,\n sourceLine?: null,\n sourceColumn?: null,\n name?: null,\n content?: null,\n): void;\nexport function addSegment(\n map: GenMapping,\n genLine: number,\n genColumn: number,\n source: string,\n sourceLine: number,\n sourceColumn: number,\n name?: null,\n content?: string | null,\n): void;\nexport function addSegment(\n map: GenMapping,\n genLine: number,\n genColumn: number,\n source: string,\n sourceLine: number,\n sourceColumn: number,\n name: string,\n content?: string | null,\n): void;\nexport function addSegment(\n map: GenMapping,\n genLine: number,\n genColumn: number,\n source?: string | null,\n sourceLine?: number | null,\n sourceColumn?: number | null,\n name?: string | null,\n content?: string | null,\n): void {\n return addSegmentInternal(\n false,\n map,\n genLine,\n genColumn,\n source,\n sourceLine,\n sourceColumn,\n name,\n content,\n );\n}\n\n/**\n * A high-level API to associate a generated position with an original source position. Line is\n * 1-based, but column is 0-based, due to legacy behavior in `source-map` library.\n */\nexport function addMapping(\n map: GenMapping,\n mapping: {\n generated: Pos;\n source?: null;\n original?: null;\n name?: null;\n content?: null;\n },\n): void;\nexport function addMapping(\n map: GenMapping,\n mapping: {\n generated: Pos;\n source: string;\n original: Pos;\n name?: null;\n content?: string | null;\n },\n): void;\nexport function addMapping(\n map: GenMapping,\n mapping: {\n generated: Pos;\n source: string;\n original: Pos;\n name: string;\n content?: string | null;\n },\n): void;\nexport function addMapping(\n map: GenMapping,\n mapping: {\n generated: Pos;\n source?: string | null;\n original?: Pos | null;\n name?: string | null;\n content?: string | null;\n },\n): void {\n return addMappingInternal(false, map, mapping as Parameters[2]);\n}\n\n/**\n * Same as `addSegment`, but will only add the segment if it generates useful information in the\n * resulting map. This only works correctly if segments are added **in order**, meaning you should\n * not add a segment with a lower generated line/column than one that came before.\n */\nexport const maybeAddSegment: typeof addSegment = (\n map,\n genLine,\n genColumn,\n source,\n sourceLine,\n sourceColumn,\n name,\n content,\n) => {\n return addSegmentInternal(\n true,\n map,\n genLine,\n genColumn,\n source,\n sourceLine,\n sourceColumn,\n name,\n content,\n );\n};\n\n/**\n * Same as `addMapping`, but will only add the mapping if it generates useful information in the\n * resulting map. This only works correctly if mappings are added **in order**, meaning you should\n * not add a mapping with a lower generated line/column than one that came before.\n */\nexport const maybeAddMapping: typeof addMapping = (map, mapping) => {\n return addMappingInternal(true, map, mapping as Parameters[2]);\n};\n\n/**\n * Adds/removes the content of the source file to the source map.\n */\nexport function setSourceContent(map: GenMapping, source: string, content: string | null): void {\n const { _sources: sources, _sourcesContent: sourcesContent } = cast(map);\n const index = put(sources, source);\n sourcesContent[index] = content;\n}\n\nexport function setIgnore(map: GenMapping, source: string, ignore = true) {\n const { _sources: sources, _sourcesContent: sourcesContent, _ignoreList: ignoreList } = cast(map);\n const index = put(sources, source);\n if (index === sourcesContent.length) sourcesContent[index] = null;\n if (ignore) put(ignoreList, index);\n else remove(ignoreList, index);\n}\n\n/**\n * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects\n * a sourcemap, or to JSON.stringify.\n */\nexport function toDecodedMap(map: GenMapping): DecodedSourceMap {\n const {\n _mappings: mappings,\n _sources: sources,\n _sourcesContent: sourcesContent,\n _names: names,\n _ignoreList: ignoreList,\n } = cast(map);\n removeEmptyFinalLines(mappings);\n\n return {\n version: 3,\n file: map.file || undefined,\n names: names.array,\n sourceRoot: map.sourceRoot || undefined,\n sources: sources.array,\n sourcesContent,\n mappings,\n ignoreList: ignoreList.array,\n };\n}\n\n/**\n * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects\n * a sourcemap, or to JSON.stringify.\n */\nexport function toEncodedMap(map: GenMapping): EncodedSourceMap {\n const decoded = toDecodedMap(map);\n return {\n ...decoded,\n mappings: encode(decoded.mappings as SourceMapSegment[][]),\n };\n}\n\n/**\n * Constructs a new GenMapping, using the already present mappings of the input.\n */\nexport function fromMap(input: SourceMapInput): GenMapping {\n const map = new TraceMap(input);\n const gen = new GenMapping({ file: map.file, sourceRoot: map.sourceRoot });\n\n putAll(cast(gen)._names, map.names);\n putAll(cast(gen)._sources, map.sources as string[]);\n cast(gen)._sourcesContent = map.sourcesContent || map.sources.map(() => null);\n cast(gen)._mappings = decodedMappings(map) as GenMapping['_mappings'];\n if (map.ignoreList) putAll(cast(gen)._ignoreList, map.ignoreList);\n\n return gen;\n}\n\n/**\n * Returns an array of high-level mapping objects for every recorded segment, which could then be\n * passed to the `source-map` library.\n */\nexport function allMappings(map: GenMapping): Mapping[] {\n const out: Mapping[] = [];\n const { _mappings: mappings, _sources: sources, _names: names } = cast(map);\n\n for (let i = 0; i < mappings.length; i++) {\n const line = mappings[i];\n for (let j = 0; j < line.length; j++) {\n const seg = line[j];\n\n const generated = { line: i + 1, column: seg[COLUMN] };\n let source: string | undefined = undefined;\n let original: Pos | undefined = undefined;\n let name: string | undefined = undefined;\n\n if (seg.length !== 1) {\n source = sources.array[seg[SOURCES_INDEX]];\n original = { line: seg[SOURCE_LINE] + 1, column: seg[SOURCE_COLUMN] };\n\n if (seg.length === 5) name = names.array[seg[NAMES_INDEX]];\n }\n\n out.push({ generated, source, original, name } as Mapping);\n }\n }\n\n return out;\n}\n\n// This split declaration is only so that terser can elminiate the static initialization block.\nfunction addSegmentInternal(\n skipable: boolean,\n map: GenMapping,\n genLine: number,\n genColumn: number,\n source: S,\n sourceLine: S extends string ? number : null | undefined,\n sourceColumn: S extends string ? number : null | undefined,\n name: S extends string ? string | null | undefined : null | undefined,\n content: S extends string ? string | null | undefined : null | undefined,\n): void {\n const {\n _mappings: mappings,\n _sources: sources,\n _sourcesContent: sourcesContent,\n _names: names,\n } = cast(map);\n const line = getLine(mappings, genLine);\n const index = getColumnIndex(line, genColumn);\n\n if (!source) {\n if (skipable && skipSourceless(line, index)) return;\n return insert(line, index, [genColumn]);\n }\n\n // Sigh, TypeScript can't figure out sourceLine and sourceColumn aren't nullish if source\n // isn't nullish.\n assert(sourceLine);\n assert(sourceColumn);\n\n const sourcesIndex = put(sources, source);\n const namesIndex = name ? put(names, name) : NO_NAME;\n if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content ?? null;\n\n if (skipable && skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex)) {\n return;\n }\n\n return insert(\n line,\n index,\n name\n ? [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex]\n : [genColumn, sourcesIndex, sourceLine, sourceColumn],\n );\n}\n\nfunction assert(_val: unknown): asserts _val is T {\n // noop.\n}\n\nfunction getLine(mappings: SourceMapSegment[][], index: number): SourceMapSegment[] {\n for (let i = mappings.length; i <= index; i++) {\n mappings[i] = [];\n }\n return mappings[index];\n}\n\nfunction getColumnIndex(line: SourceMapSegment[], genColumn: number): number {\n let index = line.length;\n for (let i = index - 1; i >= 0; index = i--) {\n const current = line[i];\n if (genColumn >= current[COLUMN]) break;\n }\n return index;\n}\n\nfunction insert(array: T[], index: number, value: T) {\n for (let i = array.length; i > index; i--) {\n array[i] = array[i - 1];\n }\n array[index] = value;\n}\n\nfunction removeEmptyFinalLines(mappings: SourceMapSegment[][]) {\n const { length } = mappings;\n let len = length;\n for (let i = len - 1; i >= 0; len = i, i--) {\n if (mappings[i].length > 0) break;\n }\n if (len < length) mappings.length = len;\n}\n\nfunction putAll(setarr: SetArray, array: T[]) {\n for (let i = 0; i < array.length; i++) put(setarr, array[i]);\n}\n\nfunction skipSourceless(line: SourceMapSegment[], index: number): boolean {\n // The start of a line is already sourceless, so adding a sourceless segment to the beginning\n // doesn't generate any useful information.\n if (index === 0) return true;\n\n const prev = line[index - 1];\n // If the previous segment is also sourceless, then adding another sourceless segment doesn't\n // genrate any new information. Else, this segment will end the source/named segment and point to\n // a sourceless position, which is useful.\n return prev.length === 1;\n}\n\nfunction skipSource(\n line: SourceMapSegment[],\n index: number,\n sourcesIndex: number,\n sourceLine: number,\n sourceColumn: number,\n namesIndex: number,\n): boolean {\n // A source/named segment at the start of a line gives position at that genColumn\n if (index === 0) return false;\n\n const prev = line[index - 1];\n\n // If the previous segment is sourceless, then we're transitioning to a source.\n if (prev.length === 1) return false;\n\n // If the previous segment maps to the exact same source position, then this segment doesn't\n // provide any new position information.\n return (\n sourcesIndex === prev[SOURCES_INDEX] &&\n sourceLine === prev[SOURCE_LINE] &&\n sourceColumn === prev[SOURCE_COLUMN] &&\n namesIndex === (prev.length === 5 ? prev[NAMES_INDEX] : NO_NAME)\n );\n}\n\nfunction addMappingInternal(\n skipable: boolean,\n map: GenMapping,\n mapping: {\n generated: Pos;\n source: S;\n original: S extends string ? Pos : null | undefined;\n name: S extends string ? string | null | undefined : null | undefined;\n content: S extends string ? string | null | undefined : null | undefined;\n },\n) {\n const { generated, source, original, name, content } = mapping;\n if (!source) {\n return addSegmentInternal(\n skipable,\n map,\n generated.line - 1,\n generated.column,\n null,\n null,\n null,\n null,\n null,\n );\n }\n assert(original);\n return addSegmentInternal(\n skipable,\n map,\n generated.line - 1,\n generated.column,\n source as string,\n original.line - 1,\n original.column,\n name,\n content,\n );\n}\n"],"names":[],"mappings":";;;;AAWO,MAAM,MAAM,GAAG,CAAC,CAAC;AACjB,MAAM,aAAa,GAAG,CAAC,CAAC;AACxB,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,aAAa,GAAG,CAAC,CAAC;AACxB,MAAM,WAAW,GAAG,CAAC;;ACQ5B,MAAM,OAAO,GAAG,CAAC,CAAC,CAAC;AAEnB;;AAEG;MACU,UAAU,CAAA;AASrB,IAAA,WAAA,CAAY,EAAE,IAAI,EAAE,UAAU,KAAc,EAAE,EAAA;AAC5C,QAAA,IAAI,CAAC,MAAM,GAAG,IAAI,QAAQ,EAAE,CAAC;AAC7B,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;AAC/B,QAAA,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;AAC1B,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;AACpB,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;AACjB,QAAA,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;AAC7B,QAAA,IAAI,CAAC,WAAW,GAAG,IAAI,QAAQ,EAAE,CAAC;KACnC;AACF,CAAA;AAUD;;;AAGG;AACH,SAAS,IAAI,CAAC,GAAY,EAAA;AACxB,IAAA,OAAO,GAAU,CAAC;AACpB,CAAC;SAoCe,UAAU,CACxB,GAAe,EACf,OAAe,EACf,SAAiB,EACjB,MAAsB,EACtB,UAA0B,EAC1B,YAA4B,EAC5B,IAAoB,EACpB,OAAuB,EAAA;IAEvB,OAAO,kBAAkB,CACvB,KAAK,EACL,GAAG,EACH,OAAO,EACP,SAAS,EACT,MAAM,EACN,UAAU,EACV,YAAY,EACZ,IAAI,EACJ,OAAO,CACR,CAAC;AACJ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KAAA;AAED,IAAA,OAAO,kBAAkB,CACvB,QAAQ,EACR,GAAG,EACH,SAAS,CAAC,IAAI,GAAG,CAAC,EAClB,SAAS,CAAC,MAAM,EAChB,MAAgB,EAChB,QAAQ,CAAC,IAAI,GAAG,CAAC,EACjB,QAAQ,CAAC,MAAM,EACf,IAAI,EACJ,OAAO,CACR,CAAC;AACJ;;;;"} \ No newline at end of file diff --git a/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js b/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js deleted file mode 100644 index 3bf18f3a..00000000 --- a/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js +++ /dev/null @@ -1,246 +0,0 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@jridgewell/set-array'), require('@jridgewell/sourcemap-codec'), require('@jridgewell/trace-mapping')) : - typeof define === 'function' && define.amd ? define(['exports', '@jridgewell/set-array', '@jridgewell/sourcemap-codec', '@jridgewell/trace-mapping'], factory) : - (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.genMapping = {}, global.setArray, global.sourcemapCodec, global.traceMapping)); -})(this, (function (exports, setArray, sourcemapCodec, traceMapping) { 'use strict'; - - const COLUMN = 0; - const SOURCES_INDEX = 1; - const SOURCE_LINE = 2; - const SOURCE_COLUMN = 3; - const NAMES_INDEX = 4; - - const NO_NAME = -1; - /** - * Provides the state to generate a sourcemap. - */ - class GenMapping { - constructor({ file, sourceRoot } = {}) { - this._names = new setArray.SetArray(); - this._sources = new setArray.SetArray(); - this._sourcesContent = []; - this._mappings = []; - this.file = file; - this.sourceRoot = sourceRoot; - this._ignoreList = new setArray.SetArray(); - } - } - /** - * Typescript doesn't allow friend access to private fields, so this just casts the map into a type - * with public access modifiers. - */ - function cast(map) { - return map; - } - function addSegment(map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) { - return addSegmentInternal(false, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content); - } - function addMapping(map, mapping) { - return addMappingInternal(false, map, mapping); - } - /** - * Same as `addSegment`, but will only add the segment if it generates useful information in the - * resulting map. This only works correctly if segments are added **in order**, meaning you should - * not add a segment with a lower generated line/column than one that came before. - */ - const maybeAddSegment = (map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) => { - return addSegmentInternal(true, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content); - }; - /** - * Same as `addMapping`, but will only add the mapping if it generates useful information in the - * resulting map. This only works correctly if mappings are added **in order**, meaning you should - * not add a mapping with a lower generated line/column than one that came before. - */ - const maybeAddMapping = (map, mapping) => { - return addMappingInternal(true, map, mapping); - }; - /** - * Adds/removes the content of the source file to the source map. - */ - function setSourceContent(map, source, content) { - const { _sources: sources, _sourcesContent: sourcesContent } = cast(map); - const index = setArray.put(sources, source); - sourcesContent[index] = content; - } - function setIgnore(map, source, ignore = true) { - const { _sources: sources, _sourcesContent: sourcesContent, _ignoreList: ignoreList } = cast(map); - const index = setArray.put(sources, source); - if (index === sourcesContent.length) - sourcesContent[index] = null; - if (ignore) - setArray.put(ignoreList, index); - else - setArray.remove(ignoreList, index); - } - /** - * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ - function toDecodedMap(map) { - const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names, _ignoreList: ignoreList, } = cast(map); - removeEmptyFinalLines(mappings); - return { - version: 3, - file: map.file || undefined, - names: names.array, - sourceRoot: map.sourceRoot || undefined, - sources: sources.array, - sourcesContent, - mappings, - ignoreList: ignoreList.array, - }; - } - /** - * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ - function toEncodedMap(map) { - const decoded = toDecodedMap(map); - return Object.assign(Object.assign({}, decoded), { mappings: sourcemapCodec.encode(decoded.mappings) }); - } - /** - * Constructs a new GenMapping, using the already present mappings of the input. - */ - function fromMap(input) { - const map = new traceMapping.TraceMap(input); - const gen = new GenMapping({ file: map.file, sourceRoot: map.sourceRoot }); - putAll(cast(gen)._names, map.names); - putAll(cast(gen)._sources, map.sources); - cast(gen)._sourcesContent = map.sourcesContent || map.sources.map(() => null); - cast(gen)._mappings = traceMapping.decodedMappings(map); - if (map.ignoreList) - putAll(cast(gen)._ignoreList, map.ignoreList); - return gen; - } - /** - * Returns an array of high-level mapping objects for every recorded segment, which could then be - * passed to the `source-map` library. - */ - function allMappings(map) { - const out = []; - const { _mappings: mappings, _sources: sources, _names: names } = cast(map); - for (let i = 0; i < mappings.length; i++) { - const line = mappings[i]; - for (let j = 0; j < line.length; j++) { - const seg = line[j]; - const generated = { line: i + 1, column: seg[COLUMN] }; - let source = undefined; - let original = undefined; - let name = undefined; - if (seg.length !== 1) { - source = sources.array[seg[SOURCES_INDEX]]; - original = { line: seg[SOURCE_LINE] + 1, column: seg[SOURCE_COLUMN] }; - if (seg.length === 5) - name = names.array[seg[NAMES_INDEX]]; - } - out.push({ generated, source, original, name }); - } - } - return out; - } - // This split declaration is only so that terser can elminiate the static initialization block. - function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) { - const { _mappings: mappings, _sources: sources, _sourcesContent: sourcesContent, _names: names, } = cast(map); - const line = getLine(mappings, genLine); - const index = getColumnIndex(line, genColumn); - if (!source) { - if (skipable && skipSourceless(line, index)) - return; - return insert(line, index, [genColumn]); - } - const sourcesIndex = setArray.put(sources, source); - const namesIndex = name ? setArray.put(names, name) : NO_NAME; - if (sourcesIndex === sourcesContent.length) - sourcesContent[sourcesIndex] = content !== null && content !== void 0 ? content : null; - if (skipable && skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex)) { - return; - } - return insert(line, index, name - ? [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex] - : [genColumn, sourcesIndex, sourceLine, sourceColumn]); - } - function getLine(mappings, index) { - for (let i = mappings.length; i <= index; i++) { - mappings[i] = []; - } - return mappings[index]; - } - function getColumnIndex(line, genColumn) { - let index = line.length; - for (let i = index - 1; i >= 0; index = i--) { - const current = line[i]; - if (genColumn >= current[COLUMN]) - break; - } - return index; - } - function insert(array, index, value) { - for (let i = array.length; i > index; i--) { - array[i] = array[i - 1]; - } - array[index] = value; - } - function removeEmptyFinalLines(mappings) { - const { length } = mappings; - let len = length; - for (let i = len - 1; i >= 0; len = i, i--) { - if (mappings[i].length > 0) - break; - } - if (len < length) - mappings.length = len; - } - function putAll(setarr, array) { - for (let i = 0; i < array.length; i++) - setArray.put(setarr, array[i]); - } - function skipSourceless(line, index) { - // The start of a line is already sourceless, so adding a sourceless segment to the beginning - // doesn't generate any useful information. - if (index === 0) - return true; - const prev = line[index - 1]; - // If the previous segment is also sourceless, then adding another sourceless segment doesn't - // genrate any new information. Else, this segment will end the source/named segment and point to - // a sourceless position, which is useful. - return prev.length === 1; - } - function skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex) { - // A source/named segment at the start of a line gives position at that genColumn - if (index === 0) - return false; - const prev = line[index - 1]; - // If the previous segment is sourceless, then we're transitioning to a source. - if (prev.length === 1) - return false; - // If the previous segment maps to the exact same source position, then this segment doesn't - // provide any new position information. - return (sourcesIndex === prev[SOURCES_INDEX] && - sourceLine === prev[SOURCE_LINE] && - sourceColumn === prev[SOURCE_COLUMN] && - namesIndex === (prev.length === 5 ? prev[NAMES_INDEX] : NO_NAME)); - } - function addMappingInternal(skipable, map, mapping) { - const { generated, source, original, name, content } = mapping; - if (!source) { - return addSegmentInternal(skipable, map, generated.line - 1, generated.column, null, null, null, null, null); - } - return addSegmentInternal(skipable, map, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content); - } - - exports.GenMapping = GenMapping; - exports.addMapping = addMapping; - exports.addSegment = addSegment; - exports.allMappings = allMappings; - exports.fromMap = fromMap; - exports.maybeAddMapping = maybeAddMapping; - exports.maybeAddSegment = maybeAddSegment; - exports.setIgnore = setIgnore; - exports.setSourceContent = setSourceContent; - exports.toDecodedMap = toDecodedMap; - exports.toEncodedMap = toEncodedMap; - - Object.defineProperty(exports, '__esModule', { value: true }); - -})); -//# sourceMappingURL=gen-mapping.umd.js.map diff --git a/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js.map b/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js.map deleted file mode 100644 index 72172ac7..00000000 --- a/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"gen-mapping.umd.js","sources":["../src/sourcemap-segment.ts","../src/gen-mapping.ts"],"sourcesContent":["type GeneratedColumn = number;\ntype SourcesIndex = number;\ntype SourceLine = number;\ntype SourceColumn = number;\ntype NamesIndex = number;\n\nexport type SourceMapSegment =\n | [GeneratedColumn]\n | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn]\n | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];\n\nexport const COLUMN = 0;\nexport const SOURCES_INDEX = 1;\nexport const SOURCE_LINE = 2;\nexport const SOURCE_COLUMN = 3;\nexport const NAMES_INDEX = 4;\n","import { SetArray, put, remove } from '@jridgewell/set-array';\nimport { encode } from '@jridgewell/sourcemap-codec';\nimport { TraceMap, decodedMappings } from '@jridgewell/trace-mapping';\n\nimport {\n COLUMN,\n SOURCES_INDEX,\n SOURCE_LINE,\n SOURCE_COLUMN,\n NAMES_INDEX,\n} from './sourcemap-segment';\n\nimport type { SourceMapInput } from '@jridgewell/trace-mapping';\nimport type { SourceMapSegment } from './sourcemap-segment';\nimport type { DecodedSourceMap, EncodedSourceMap, Pos, Mapping } from './types';\n\nexport type { DecodedSourceMap, EncodedSourceMap, Mapping };\n\nexport type Options = {\n file?: string | null;\n sourceRoot?: string | null;\n};\n\nconst NO_NAME = -1;\n\n/**\n * Provides the state to generate a sourcemap.\n */\nexport class GenMapping {\n private declare _names: SetArray;\n private declare _sources: SetArray;\n private declare _sourcesContent: (string | null)[];\n private declare _mappings: SourceMapSegment[][];\n private declare _ignoreList: SetArray;\n declare file: string | null | undefined;\n declare sourceRoot: string | null | undefined;\n\n constructor({ file, sourceRoot }: Options = {}) {\n this._names = new SetArray();\n this._sources = new SetArray();\n this._sourcesContent = [];\n this._mappings = [];\n this.file = file;\n this.sourceRoot = sourceRoot;\n this._ignoreList = new SetArray();\n }\n}\n\ninterface PublicMap {\n _names: GenMapping['_names'];\n _sources: GenMapping['_sources'];\n _sourcesContent: GenMapping['_sourcesContent'];\n _mappings: GenMapping['_mappings'];\n _ignoreList: GenMapping['_ignoreList'];\n}\n\n/**\n * Typescript doesn't allow friend access to private fields, so this just casts the map into a type\n * with public access modifiers.\n */\nfunction cast(map: unknown): PublicMap {\n return map as any;\n}\n\n/**\n * A low-level API to associate a generated position with an original source position. Line and\n * column here are 0-based, unlike `addMapping`.\n */\nexport function addSegment(\n map: GenMapping,\n genLine: number,\n genColumn: number,\n source?: null,\n sourceLine?: null,\n sourceColumn?: null,\n name?: null,\n content?: null,\n): void;\nexport function addSegment(\n map: GenMapping,\n genLine: number,\n genColumn: number,\n source: string,\n sourceLine: number,\n sourceColumn: number,\n name?: null,\n content?: string | null,\n): void;\nexport function addSegment(\n map: GenMapping,\n genLine: number,\n genColumn: number,\n source: string,\n sourceLine: number,\n sourceColumn: number,\n name: string,\n content?: string | null,\n): void;\nexport function addSegment(\n map: GenMapping,\n genLine: number,\n genColumn: number,\n source?: string | null,\n sourceLine?: number | null,\n sourceColumn?: number | null,\n name?: string | null,\n content?: string | null,\n): void {\n return addSegmentInternal(\n false,\n map,\n genLine,\n genColumn,\n source,\n sourceLine,\n sourceColumn,\n name,\n content,\n );\n}\n\n/**\n * A high-level API to associate a generated position with an original source position. Line is\n * 1-based, but column is 0-based, due to legacy behavior in `source-map` library.\n */\nexport function addMapping(\n map: GenMapping,\n mapping: {\n generated: Pos;\n source?: null;\n original?: null;\n name?: null;\n content?: null;\n },\n): void;\nexport function addMapping(\n map: GenMapping,\n mapping: {\n generated: Pos;\n source: string;\n original: Pos;\n name?: null;\n content?: string | null;\n },\n): void;\nexport function addMapping(\n map: GenMapping,\n mapping: {\n generated: Pos;\n source: string;\n original: Pos;\n name: string;\n content?: string | null;\n },\n): void;\nexport function addMapping(\n map: GenMapping,\n mapping: {\n generated: Pos;\n source?: string | null;\n original?: Pos | null;\n name?: string | null;\n content?: string | null;\n },\n): void {\n return addMappingInternal(false, map, mapping as Parameters[2]);\n}\n\n/**\n * Same as `addSegment`, but will only add the segment if it generates useful information in the\n * resulting map. This only works correctly if segments are added **in order**, meaning you should\n * not add a segment with a lower generated line/column than one that came before.\n */\nexport const maybeAddSegment: typeof addSegment = (\n map,\n genLine,\n genColumn,\n source,\n sourceLine,\n sourceColumn,\n name,\n content,\n) => {\n return addSegmentInternal(\n true,\n map,\n genLine,\n genColumn,\n source,\n sourceLine,\n sourceColumn,\n name,\n content,\n );\n};\n\n/**\n * Same as `addMapping`, but will only add the mapping if it generates useful information in the\n * resulting map. This only works correctly if mappings are added **in order**, meaning you should\n * not add a mapping with a lower generated line/column than one that came before.\n */\nexport const maybeAddMapping: typeof addMapping = (map, mapping) => {\n return addMappingInternal(true, map, mapping as Parameters[2]);\n};\n\n/**\n * Adds/removes the content of the source file to the source map.\n */\nexport function setSourceContent(map: GenMapping, source: string, content: string | null): void {\n const { _sources: sources, _sourcesContent: sourcesContent } = cast(map);\n const index = put(sources, source);\n sourcesContent[index] = content;\n}\n\nexport function setIgnore(map: GenMapping, source: string, ignore = true) {\n const { _sources: sources, _sourcesContent: sourcesContent, _ignoreList: ignoreList } = cast(map);\n const index = put(sources, source);\n if (index === sourcesContent.length) sourcesContent[index] = null;\n if (ignore) put(ignoreList, index);\n else remove(ignoreList, index);\n}\n\n/**\n * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects\n * a sourcemap, or to JSON.stringify.\n */\nexport function toDecodedMap(map: GenMapping): DecodedSourceMap {\n const {\n _mappings: mappings,\n _sources: sources,\n _sourcesContent: sourcesContent,\n _names: names,\n _ignoreList: ignoreList,\n } = cast(map);\n removeEmptyFinalLines(mappings);\n\n return {\n version: 3,\n file: map.file || undefined,\n names: names.array,\n sourceRoot: map.sourceRoot || undefined,\n sources: sources.array,\n sourcesContent,\n mappings,\n ignoreList: ignoreList.array,\n };\n}\n\n/**\n * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects\n * a sourcemap, or to JSON.stringify.\n */\nexport function toEncodedMap(map: GenMapping): EncodedSourceMap {\n const decoded = toDecodedMap(map);\n return {\n ...decoded,\n mappings: encode(decoded.mappings as SourceMapSegment[][]),\n };\n}\n\n/**\n * Constructs a new GenMapping, using the already present mappings of the input.\n */\nexport function fromMap(input: SourceMapInput): GenMapping {\n const map = new TraceMap(input);\n const gen = new GenMapping({ file: map.file, sourceRoot: map.sourceRoot });\n\n putAll(cast(gen)._names, map.names);\n putAll(cast(gen)._sources, map.sources as string[]);\n cast(gen)._sourcesContent = map.sourcesContent || map.sources.map(() => null);\n cast(gen)._mappings = decodedMappings(map) as GenMapping['_mappings'];\n if (map.ignoreList) putAll(cast(gen)._ignoreList, map.ignoreList);\n\n return gen;\n}\n\n/**\n * Returns an array of high-level mapping objects for every recorded segment, which could then be\n * passed to the `source-map` library.\n */\nexport function allMappings(map: GenMapping): Mapping[] {\n const out: Mapping[] = [];\n const { _mappings: mappings, _sources: sources, _names: names } = cast(map);\n\n for (let i = 0; i < mappings.length; i++) {\n const line = mappings[i];\n for (let j = 0; j < line.length; j++) {\n const seg = line[j];\n\n const generated = { line: i + 1, column: seg[COLUMN] };\n let source: string | undefined = undefined;\n let original: Pos | undefined = undefined;\n let name: string | undefined = undefined;\n\n if (seg.length !== 1) {\n source = sources.array[seg[SOURCES_INDEX]];\n original = { line: seg[SOURCE_LINE] + 1, column: seg[SOURCE_COLUMN] };\n\n if (seg.length === 5) name = names.array[seg[NAMES_INDEX]];\n }\n\n out.push({ generated, source, original, name } as Mapping);\n }\n }\n\n return out;\n}\n\n// This split declaration is only so that terser can elminiate the static initialization block.\nfunction addSegmentInternal(\n skipable: boolean,\n map: GenMapping,\n genLine: number,\n genColumn: number,\n source: S,\n sourceLine: S extends string ? number : null | undefined,\n sourceColumn: S extends string ? number : null | undefined,\n name: S extends string ? string | null | undefined : null | undefined,\n content: S extends string ? string | null | undefined : null | undefined,\n): void {\n const {\n _mappings: mappings,\n _sources: sources,\n _sourcesContent: sourcesContent,\n _names: names,\n } = cast(map);\n const line = getLine(mappings, genLine);\n const index = getColumnIndex(line, genColumn);\n\n if (!source) {\n if (skipable && skipSourceless(line, index)) return;\n return insert(line, index, [genColumn]);\n }\n\n // Sigh, TypeScript can't figure out sourceLine and sourceColumn aren't nullish if source\n // isn't nullish.\n assert(sourceLine);\n assert(sourceColumn);\n\n const sourcesIndex = put(sources, source);\n const namesIndex = name ? put(names, name) : NO_NAME;\n if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content ?? null;\n\n if (skipable && skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex)) {\n return;\n }\n\n return insert(\n line,\n index,\n name\n ? [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex]\n : [genColumn, sourcesIndex, sourceLine, sourceColumn],\n );\n}\n\nfunction assert(_val: unknown): asserts _val is T {\n // noop.\n}\n\nfunction getLine(mappings: SourceMapSegment[][], index: number): SourceMapSegment[] {\n for (let i = mappings.length; i <= index; i++) {\n mappings[i] = [];\n }\n return mappings[index];\n}\n\nfunction getColumnIndex(line: SourceMapSegment[], genColumn: number): number {\n let index = line.length;\n for (let i = index - 1; i >= 0; index = i--) {\n const current = line[i];\n if (genColumn >= current[COLUMN]) break;\n }\n return index;\n}\n\nfunction insert(array: T[], index: number, value: T) {\n for (let i = array.length; i > index; i--) {\n array[i] = array[i - 1];\n }\n array[index] = value;\n}\n\nfunction removeEmptyFinalLines(mappings: SourceMapSegment[][]) {\n const { length } = mappings;\n let len = length;\n for (let i = len - 1; i >= 0; len = i, i--) {\n if (mappings[i].length > 0) break;\n }\n if (len < length) mappings.length = len;\n}\n\nfunction putAll(setarr: SetArray, array: T[]) {\n for (let i = 0; i < array.length; i++) put(setarr, array[i]);\n}\n\nfunction skipSourceless(line: SourceMapSegment[], index: number): boolean {\n // The start of a line is already sourceless, so adding a sourceless segment to the beginning\n // doesn't generate any useful information.\n if (index === 0) return true;\n\n const prev = line[index - 1];\n // If the previous segment is also sourceless, then adding another sourceless segment doesn't\n // genrate any new information. Else, this segment will end the source/named segment and point to\n // a sourceless position, which is useful.\n return prev.length === 1;\n}\n\nfunction skipSource(\n line: SourceMapSegment[],\n index: number,\n sourcesIndex: number,\n sourceLine: number,\n sourceColumn: number,\n namesIndex: number,\n): boolean {\n // A source/named segment at the start of a line gives position at that genColumn\n if (index === 0) return false;\n\n const prev = line[index - 1];\n\n // If the previous segment is sourceless, then we're transitioning to a source.\n if (prev.length === 1) return false;\n\n // If the previous segment maps to the exact same source position, then this segment doesn't\n // provide any new position information.\n return (\n sourcesIndex === prev[SOURCES_INDEX] &&\n sourceLine === prev[SOURCE_LINE] &&\n sourceColumn === prev[SOURCE_COLUMN] &&\n namesIndex === (prev.length === 5 ? prev[NAMES_INDEX] : NO_NAME)\n );\n}\n\nfunction addMappingInternal(\n skipable: boolean,\n map: GenMapping,\n mapping: {\n generated: Pos;\n source: S;\n original: S extends string ? Pos : null | undefined;\n name: S extends string ? string | null | undefined : null | undefined;\n content: S extends string ? string | null | undefined : null | undefined;\n },\n) {\n const { generated, source, original, name, content } = mapping;\n if (!source) {\n return addSegmentInternal(\n skipable,\n map,\n generated.line - 1,\n generated.column,\n null,\n null,\n null,\n null,\n null,\n );\n }\n assert(original);\n return addSegmentInternal(\n skipable,\n map,\n generated.line - 1,\n generated.column,\n source as string,\n original.line - 1,\n original.column,\n name,\n content,\n );\n}\n"],"names":["SetArray","put","remove","encode","TraceMap","decodedMappings"],"mappings":";;;;;;IAWO,MAAM,MAAM,GAAG,CAAC,CAAC;IACjB,MAAM,aAAa,GAAG,CAAC,CAAC;IACxB,MAAM,WAAW,GAAG,CAAC,CAAC;IACtB,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;;;;;;"} \ No newline at end of file diff --git a/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts b/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts deleted file mode 100644 index 398a6956..00000000 --- a/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +++ /dev/null @@ -1,88 +0,0 @@ -import type { SourceMapInput } from '@jridgewell/trace-mapping'; -import type { DecodedSourceMap, EncodedSourceMap, Pos, Mapping } from './types'; -export type { DecodedSourceMap, EncodedSourceMap, Mapping }; -export declare type Options = { - file?: string | null; - sourceRoot?: string | null; -}; -/** - * Provides the state to generate a sourcemap. - */ -export declare class GenMapping { - private _names; - private _sources; - private _sourcesContent; - private _mappings; - private _ignoreList; - file: string | null | undefined; - sourceRoot: string | null | undefined; - constructor({ file, sourceRoot }?: Options); -} -/** - * A low-level API to associate a generated position with an original source position. Line and - * column here are 0-based, unlike `addMapping`. - */ -export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source?: null, sourceLine?: null, sourceColumn?: null, name?: null, content?: null): void; -export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source: string, sourceLine: number, sourceColumn: number, name?: null, content?: string | null): void; -export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source: string, sourceLine: number, sourceColumn: number, name: string, content?: string | null): void; -/** - * A high-level API to associate a generated position with an original source position. Line is - * 1-based, but column is 0-based, due to legacy behavior in `source-map` library. - */ -export declare function addMapping(map: GenMapping, mapping: { - generated: Pos; - source?: null; - original?: null; - name?: null; - content?: null; -}): void; -export declare function addMapping(map: GenMapping, mapping: { - generated: Pos; - source: string; - original: Pos; - name?: null; - content?: string | null; -}): void; -export declare function addMapping(map: GenMapping, mapping: { - generated: Pos; - source: string; - original: Pos; - name: string; - content?: string | null; -}): void; -/** - * Same as `addSegment`, but will only add the segment if it generates useful information in the - * resulting map. This only works correctly if segments are added **in order**, meaning you should - * not add a segment with a lower generated line/column than one that came before. - */ -export declare const maybeAddSegment: typeof addSegment; -/** - * Same as `addMapping`, but will only add the mapping if it generates useful information in the - * resulting map. This only works correctly if mappings are added **in order**, meaning you should - * not add a mapping with a lower generated line/column than one that came before. - */ -export declare const maybeAddMapping: typeof addMapping; -/** - * Adds/removes the content of the source file to the source map. - */ -export declare function setSourceContent(map: GenMapping, source: string, content: string | null): void; -export declare function setIgnore(map: GenMapping, source: string, ignore?: boolean): void; -/** - * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ -export declare function toDecodedMap(map: GenMapping): DecodedSourceMap; -/** - * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ -export declare function toEncodedMap(map: GenMapping): EncodedSourceMap; -/** - * Constructs a new GenMapping, using the already present mappings of the input. - */ -export declare function fromMap(input: SourceMapInput): GenMapping; -/** - * Returns an array of high-level mapping objects for every recorded segment, which could then be - * passed to the `source-map` library. - */ -export declare function allMappings(map: GenMapping): Mapping[]; diff --git a/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts b/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts deleted file mode 100644 index e187ba98..00000000 --- a/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -declare type GeneratedColumn = number; -declare type SourcesIndex = number; -declare type SourceLine = number; -declare type SourceColumn = number; -declare type NamesIndex = number; -export declare type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex]; -export declare const COLUMN = 0; -export declare const SOURCES_INDEX = 1; -export declare const SOURCE_LINE = 2; -export declare const SOURCE_COLUMN = 3; -export declare const NAMES_INDEX = 4; -export {}; diff --git a/node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts b/node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts deleted file mode 100644 index 7f0ab15f..00000000 --- a/node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import type { SourceMapSegment } from './sourcemap-segment'; -export interface SourceMapV3 { - file?: string | null; - names: readonly string[]; - sourceRoot?: string; - sources: readonly (string | null)[]; - sourcesContent?: readonly (string | null)[]; - version: 3; - ignoreList?: readonly number[]; -} -export interface EncodedSourceMap extends SourceMapV3 { - mappings: string; -} -export interface DecodedSourceMap extends SourceMapV3 { - mappings: readonly SourceMapSegment[][]; -} -export interface Pos { - line: number; - column: number; -} -export declare type Mapping = { - generated: Pos; - source: undefined; - original: undefined; - name: undefined; -} | { - generated: Pos; - source: string; - original: Pos; - name: string; -} | { - generated: Pos; - source: string; - original: Pos; - name: undefined; -}; diff --git a/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs b/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs deleted file mode 100644 index e958e881..00000000 --- a/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +++ /dev/null @@ -1,232 +0,0 @@ -// Matches the scheme of a URL, eg "http://" -const schemeRegex = /^[\w+.-]+:\/\//; -/** - * Matches the parts of a URL: - * 1. Scheme, including ":", guaranteed. - * 2. User/password, including "@", optional. - * 3. Host, guaranteed. - * 4. Port, including ":", optional. - * 5. Path, including "/", optional. - * 6. Query, including "?", optional. - * 7. Hash, including "#", optional. - */ -const urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/; -/** - * File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start - * with a leading `/`, they can have a domain (but only if they don't start with a Windows drive). - * - * 1. Host, optional. - * 2. Path, which may include "/", guaranteed. - * 3. Query, including "?", optional. - * 4. Hash, including "#", optional. - */ -const fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i; -function isAbsoluteUrl(input) { - return schemeRegex.test(input); -} -function isSchemeRelativeUrl(input) { - return input.startsWith('//'); -} -function isAbsolutePath(input) { - return input.startsWith('/'); -} -function isFileUrl(input) { - return input.startsWith('file:'); -} -function isRelative(input) { - return /^[.?#]/.test(input); -} -function parseAbsoluteUrl(input) { - const match = urlRegex.exec(input); - return makeUrl(match[1], match[2] || '', match[3], match[4] || '', match[5] || '/', match[6] || '', match[7] || ''); -} -function parseFileUrl(input) { - const match = fileRegex.exec(input); - const path = match[2]; - return makeUrl('file:', '', match[1] || '', '', isAbsolutePath(path) ? path : '/' + path, match[3] || '', match[4] || ''); -} -function makeUrl(scheme, user, host, port, path, query, hash) { - return { - scheme, - user, - host, - port, - path, - query, - hash, - type: 7 /* Absolute */, - }; -} -function parseUrl(input) { - if (isSchemeRelativeUrl(input)) { - const url = parseAbsoluteUrl('http:' + input); - url.scheme = ''; - url.type = 6 /* SchemeRelative */; - return url; - } - if (isAbsolutePath(input)) { - const url = parseAbsoluteUrl('http://foo.com' + input); - url.scheme = ''; - url.host = ''; - url.type = 5 /* AbsolutePath */; - return url; - } - if (isFileUrl(input)) - return parseFileUrl(input); - if (isAbsoluteUrl(input)) - return parseAbsoluteUrl(input); - const url = parseAbsoluteUrl('http://foo.com/' + input); - url.scheme = ''; - url.host = ''; - url.type = input - ? input.startsWith('?') - ? 3 /* Query */ - : input.startsWith('#') - ? 2 /* Hash */ - : 4 /* RelativePath */ - : 1 /* Empty */; - return url; -} -function stripPathFilename(path) { - // If a path ends with a parent directory "..", then it's a relative path with excess parent - // paths. It's not a file, so we can't strip it. - if (path.endsWith('/..')) - return path; - const index = path.lastIndexOf('/'); - return path.slice(0, index + 1); -} -function mergePaths(url, base) { - normalizePath(base, base.type); - // If the path is just a "/", then it was an empty path to begin with (remember, we're a relative - // path). - if (url.path === '/') { - url.path = base.path; - } - else { - // Resolution happens relative to the base path's directory, not the file. - url.path = stripPathFilename(base.path) + url.path; - } -} -/** - * The path can have empty directories "//", unneeded parents "foo/..", or current directory - * "foo/.". We need to normalize to a standard representation. - */ -function normalizePath(url, type) { - const rel = type <= 4 /* RelativePath */; - const pieces = url.path.split('/'); - // We need to preserve the first piece always, so that we output a leading slash. The item at - // pieces[0] is an empty string. - let pointer = 1; - // Positive is the number of real directories we've output, used for popping a parent directory. - // Eg, "foo/bar/.." will have a positive 2, and we can decrement to be left with just "foo". - let positive = 0; - // We need to keep a trailing slash if we encounter an empty directory (eg, splitting "foo/" will - // generate `["foo", ""]` pieces). And, if we pop a parent directory. But once we encounter a - // real directory, we won't need to append, unless the other conditions happen again. - let addTrailingSlash = false; - for (let i = 1; i < pieces.length; i++) { - const piece = pieces[i]; - // An empty directory, could be a trailing slash, or just a double "//" in the path. - if (!piece) { - addTrailingSlash = true; - continue; - } - // If we encounter a real directory, then we don't need to append anymore. - addTrailingSlash = false; - // A current directory, which we can always drop. - if (piece === '.') - continue; - // A parent directory, we need to see if there are any real directories we can pop. Else, we - // have an excess of parents, and we'll need to keep the "..". - if (piece === '..') { - if (positive) { - addTrailingSlash = true; - positive--; - pointer--; - } - else if (rel) { - // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute - // URL, protocol relative URL, or an absolute path, we don't need to keep excess. - pieces[pointer++] = piece; - } - continue; - } - // We've encountered a real directory. Move it to the next insertion pointer, which accounts for - // any popped or dropped directories. - pieces[pointer++] = piece; - positive++; - } - let path = ''; - for (let i = 1; i < pointer; i++) { - path += '/' + pieces[i]; - } - if (!path || (addTrailingSlash && !path.endsWith('/..'))) { - path += '/'; - } - url.path = path; -} -/** - * Attempts to resolve `input` URL/path relative to `base`. - */ -function resolve(input, base) { - if (!input && !base) - return ''; - const url = parseUrl(input); - let inputType = url.type; - if (base && inputType !== 7 /* Absolute */) { - const baseUrl = parseUrl(base); - const baseType = baseUrl.type; - switch (inputType) { - case 1 /* Empty */: - url.hash = baseUrl.hash; - // fall through - case 2 /* Hash */: - url.query = baseUrl.query; - // fall through - case 3 /* Query */: - case 4 /* RelativePath */: - mergePaths(url, baseUrl); - // fall through - case 5 /* AbsolutePath */: - // The host, user, and port are joined, you can't copy one without the others. - url.user = baseUrl.user; - url.host = baseUrl.host; - url.port = baseUrl.port; - // fall through - case 6 /* SchemeRelative */: - // The input doesn't have a schema at least, so we need to copy at least that over. - url.scheme = baseUrl.scheme; - } - if (baseType > inputType) - inputType = baseType; - } - normalizePath(url, inputType); - const queryHash = url.query + url.hash; - switch (inputType) { - // This is impossible, because of the empty checks at the start of the function. - // case UrlType.Empty: - case 2 /* Hash */: - case 3 /* Query */: - return queryHash; - case 4 /* RelativePath */: { - // The first char is always a "/", and we need it to be relative. - const path = url.path.slice(1); - if (!path) - return queryHash || '.'; - if (isRelative(base || input) && !isRelative(path)) { - // If base started with a leading ".", or there is no base and input started with a ".", - // then we need to ensure that the relative path starts with a ".". We don't know if - // relative starts with a "..", though, so check before prepending. - return './' + path + queryHash; - } - return path + queryHash; - } - case 5 /* AbsolutePath */: - return url.path + queryHash; - default: - return url.scheme + '//' + url.user + url.host + url.port + url.path + queryHash; - } -} - -export { resolve as default }; -//# sourceMappingURL=resolve-uri.mjs.map diff --git a/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map b/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map deleted file mode 100644 index 1de97d01..00000000 --- a/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"resolve-uri.mjs","sources":["../src/resolve-uri.ts"],"sourcesContent":["// Matches the scheme of a URL, eg \"http://\"\nconst schemeRegex = /^[\\w+.-]+:\\/\\//;\n\n/**\n * Matches the parts of a URL:\n * 1. Scheme, including \":\", guaranteed.\n * 2. User/password, including \"@\", optional.\n * 3. Host, guaranteed.\n * 4. Port, including \":\", optional.\n * 5. Path, including \"/\", optional.\n * 6. Query, including \"?\", optional.\n * 7. Hash, including \"#\", optional.\n */\nconst urlRegex = /^([\\w+.-]+:)\\/\\/([^@/#?]*@)?([^:/#?]*)(:\\d+)?(\\/[^#?]*)?(\\?[^#]*)?(#.*)?/;\n\n/**\n * File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start\n * with a leading `/`, they can have a domain (but only if they don't start with a Windows drive).\n *\n * 1. Host, optional.\n * 2. Path, which may include \"/\", guaranteed.\n * 3. Query, including \"?\", optional.\n * 4. Hash, including \"#\", optional.\n */\nconst fileRegex = /^file:(?:\\/\\/((?![a-z]:)[^/#?]*)?)?(\\/?[^#?]*)(\\?[^#]*)?(#.*)?/i;\n\ntype Url = {\n scheme: string;\n user: string;\n host: string;\n port: string;\n path: string;\n query: string;\n hash: string;\n type: UrlType;\n};\n\nconst enum UrlType {\n Empty = 1,\n Hash = 2,\n Query = 3,\n RelativePath = 4,\n AbsolutePath = 5,\n SchemeRelative = 6,\n Absolute = 7,\n}\n\nfunction isAbsoluteUrl(input: string): boolean {\n return schemeRegex.test(input);\n}\n\nfunction isSchemeRelativeUrl(input: string): boolean {\n return input.startsWith('//');\n}\n\nfunction isAbsolutePath(input: string): boolean {\n return input.startsWith('/');\n}\n\nfunction isFileUrl(input: string): boolean {\n return input.startsWith('file:');\n}\n\nfunction isRelative(input: string): boolean {\n return /^[.?#]/.test(input);\n}\n\nfunction parseAbsoluteUrl(input: string): Url {\n const match = urlRegex.exec(input)!;\n return makeUrl(\n match[1],\n match[2] || '',\n match[3],\n match[4] || '',\n match[5] || '/',\n match[6] || '',\n match[7] || '',\n );\n}\n\nfunction parseFileUrl(input: string): Url {\n const match = fileRegex.exec(input)!;\n const path = match[2];\n return makeUrl(\n 'file:',\n '',\n match[1] || '',\n '',\n isAbsolutePath(path) ? path : '/' + path,\n match[3] || '',\n match[4] || '',\n );\n}\n\nfunction makeUrl(\n scheme: string,\n user: string,\n host: string,\n port: string,\n path: string,\n query: string,\n hash: string,\n): Url {\n return {\n scheme,\n user,\n host,\n port,\n path,\n query,\n hash,\n type: UrlType.Absolute,\n };\n}\n\nfunction parseUrl(input: string): Url {\n if (isSchemeRelativeUrl(input)) {\n const url = parseAbsoluteUrl('http:' + input);\n url.scheme = '';\n url.type = UrlType.SchemeRelative;\n return url;\n }\n\n if (isAbsolutePath(input)) {\n const url = parseAbsoluteUrl('http://foo.com' + input);\n url.scheme = '';\n url.host = '';\n url.type = UrlType.AbsolutePath;\n return url;\n }\n\n if (isFileUrl(input)) return parseFileUrl(input);\n\n if (isAbsoluteUrl(input)) return parseAbsoluteUrl(input);\n\n const url = parseAbsoluteUrl('http://foo.com/' + input);\n url.scheme = '';\n url.host = '';\n url.type = input\n ? input.startsWith('?')\n ? UrlType.Query\n : input.startsWith('#')\n ? UrlType.Hash\n : UrlType.RelativePath\n : UrlType.Empty;\n return url;\n}\n\nfunction stripPathFilename(path: string): string {\n // If a path ends with a parent directory \"..\", then it's a relative path with excess parent\n // paths. It's not a file, so we can't strip it.\n if (path.endsWith('/..')) return path;\n const index = path.lastIndexOf('/');\n return path.slice(0, index + 1);\n}\n\nfunction mergePaths(url: Url, base: Url) {\n normalizePath(base, base.type);\n\n // If the path is just a \"/\", then it was an empty path to begin with (remember, we're a relative\n // path).\n if (url.path === '/') {\n url.path = base.path;\n } else {\n // Resolution happens relative to the base path's directory, not the file.\n url.path = stripPathFilename(base.path) + url.path;\n }\n}\n\n/**\n * The path can have empty directories \"//\", unneeded parents \"foo/..\", or current directory\n * \"foo/.\". We need to normalize to a standard representation.\n */\nfunction normalizePath(url: Url, type: UrlType) {\n const rel = type <= UrlType.RelativePath;\n const pieces = url.path.split('/');\n\n // We need to preserve the first piece always, so that we output a leading slash. The item at\n // pieces[0] is an empty string.\n let pointer = 1;\n\n // Positive is the number of real directories we've output, used for popping a parent directory.\n // Eg, \"foo/bar/..\" will have a positive 2, and we can decrement to be left with just \"foo\".\n let positive = 0;\n\n // We need to keep a trailing slash if we encounter an empty directory (eg, splitting \"foo/\" will\n // generate `[\"foo\", \"\"]` pieces). And, if we pop a parent directory. But once we encounter a\n // real directory, we won't need to append, unless the other conditions happen again.\n let addTrailingSlash = false;\n\n for (let i = 1; i < pieces.length; i++) {\n const piece = pieces[i];\n\n // An empty directory, could be a trailing slash, or just a double \"//\" in the path.\n if (!piece) {\n addTrailingSlash = true;\n continue;\n }\n\n // If we encounter a real directory, then we don't need to append anymore.\n addTrailingSlash = false;\n\n // A current directory, which we can always drop.\n if (piece === '.') continue;\n\n // A parent directory, we need to see if there are any real directories we can pop. Else, we\n // have an excess of parents, and we'll need to keep the \"..\".\n if (piece === '..') {\n if (positive) {\n addTrailingSlash = true;\n positive--;\n pointer--;\n } else if (rel) {\n // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute\n // URL, protocol relative URL, or an absolute path, we don't need to keep excess.\n pieces[pointer++] = piece;\n }\n continue;\n }\n\n // We've encountered a real directory. Move it to the next insertion pointer, which accounts for\n // any popped or dropped directories.\n pieces[pointer++] = piece;\n positive++;\n }\n\n let path = '';\n for (let i = 1; i < pointer; i++) {\n path += '/' + pieces[i];\n }\n if (!path || (addTrailingSlash && !path.endsWith('/..'))) {\n path += '/';\n }\n url.path = path;\n}\n\n/**\n * Attempts to resolve `input` URL/path relative to `base`.\n */\nexport default function resolve(input: string, base: string | undefined): string {\n if (!input && !base) return '';\n\n const url = parseUrl(input);\n let inputType = url.type;\n\n if (base && inputType !== UrlType.Absolute) {\n const baseUrl = parseUrl(base);\n const baseType = baseUrl.type;\n\n switch (inputType) {\n case UrlType.Empty:\n url.hash = baseUrl.hash;\n // fall through\n\n case UrlType.Hash:\n url.query = baseUrl.query;\n // fall through\n\n case UrlType.Query:\n case UrlType.RelativePath:\n mergePaths(url, baseUrl);\n // fall through\n\n case UrlType.AbsolutePath:\n // The host, user, and port are joined, you can't copy one without the others.\n url.user = baseUrl.user;\n url.host = baseUrl.host;\n url.port = baseUrl.port;\n // fall through\n\n case UrlType.SchemeRelative:\n // The input doesn't have a schema at least, so we need to copy at least that over.\n url.scheme = baseUrl.scheme;\n }\n if (baseType > inputType) inputType = baseType;\n }\n\n normalizePath(url, inputType);\n\n const queryHash = url.query + url.hash;\n switch (inputType) {\n // This is impossible, because of the empty checks at the start of the function.\n // case UrlType.Empty:\n\n case UrlType.Hash:\n case UrlType.Query:\n return queryHash;\n\n case UrlType.RelativePath: {\n // The first char is always a \"/\", and we need it to be relative.\n const path = url.path.slice(1);\n\n if (!path) return queryHash || '.';\n\n if (isRelative(base || input) && !isRelative(path)) {\n // If base started with a leading \".\", or there is no base and input started with a \".\",\n // then we need to ensure that the relative path starts with a \".\". We don't know if\n // relative starts with a \"..\", though, so check before prepending.\n return './' + path + queryHash;\n }\n\n return path + queryHash;\n }\n\n case UrlType.AbsolutePath:\n return url.path + queryHash;\n\n default:\n return url.scheme + '//' + url.user + url.host + url.port + url.path + queryHash;\n }\n}\n"],"names":[],"mappings":"AAAA;AACA,MAAM,WAAW,GAAG,gBAAgB,CAAC;AAErC;;;;;;;;;;AAUA,MAAM,QAAQ,GAAG,0EAA0E,CAAC;AAE5F;;;;;;;;;AASA,MAAM,SAAS,GAAG,iEAAiE,CAAC;AAuBpF,SAAS,aAAa,CAAC,KAAa;IAClC,OAAO,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACjC,CAAC;AAED,SAAS,mBAAmB,CAAC,KAAa;IACxC,OAAO,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;AAED,SAAS,cAAc,CAAC,KAAa;IACnC,OAAO,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;AAC/B,CAAC;AAED,SAAS,SAAS,CAAC,KAAa;IAC9B,OAAO,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;AACnC,CAAC;AAED,SAAS,UAAU,CAAC,KAAa;IAC/B,OAAO,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAa;IACrC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAE,CAAC;IACpC,OAAO,OAAO,CACZ,KAAK,CAAC,CAAC,CAA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G,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAE/B,IAAI,CAAC,IAAI;gBAAE,OAAO,SAAS,IAAI,GAAG,CAAC;YAEnC,IAAI,UAAU,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;;;;gBAIlD,OAAO,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;aAChC;YAED,OAAO,IAAI,GAAG,SAAS,CAAC;SACzB;QAED;YACE,OAAO,GAAG,CAAC,IAAI,GAAG,SAAS,CAAC;QAE9B;YACE,OAAO,GAAG,CAAC,MAAM,GAAG,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,SAAS,CAAC;KACpF;AACH;;;;"} \ No newline at end of file diff --git a/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js b/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js deleted file mode 100644 index a783049b..00000000 --- a/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +++ /dev/null @@ -1,240 +0,0 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : - typeof define === 'function' && define.amd ? define(factory) : - (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.resolveURI = factory()); -})(this, (function () { 'use strict'; - - // Matches the scheme of a URL, eg "http://" - const schemeRegex = /^[\w+.-]+:\/\//; - /** - * Matches the parts of a URL: - * 1. Scheme, including ":", guaranteed. - * 2. User/password, including "@", optional. - * 3. Host, guaranteed. - * 4. Port, including ":", optional. - * 5. Path, including "/", optional. - * 6. Query, including "?", optional. - * 7. Hash, including "#", optional. - */ - const urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/; - /** - * File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start - * with a leading `/`, they can have a domain (but only if they don't start with a Windows drive). - * - * 1. Host, optional. - * 2. Path, which may include "/", guaranteed. - * 3. Query, including "?", optional. - * 4. Hash, including "#", optional. - */ - const fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i; - function isAbsoluteUrl(input) { - return schemeRegex.test(input); - } - function isSchemeRelativeUrl(input) { - return input.startsWith('//'); - } - function isAbsolutePath(input) { - return input.startsWith('/'); - } - function isFileUrl(input) { - return input.startsWith('file:'); - } - function isRelative(input) { - return /^[.?#]/.test(input); - } - function parseAbsoluteUrl(input) { - const match = urlRegex.exec(input); - return makeUrl(match[1], match[2] || '', match[3], match[4] || '', match[5] || '/', match[6] || '', match[7] || ''); - } - function parseFileUrl(input) { - const match = fileRegex.exec(input); - const path = match[2]; - return makeUrl('file:', '', match[1] || '', '', isAbsolutePath(path) ? path : '/' + path, match[3] || '', match[4] || ''); - } - function makeUrl(scheme, user, host, port, path, query, hash) { - return { - scheme, - user, - host, - port, - path, - query, - hash, - type: 7 /* Absolute */, - }; - } - function parseUrl(input) { - if (isSchemeRelativeUrl(input)) { - const url = parseAbsoluteUrl('http:' + input); - url.scheme = ''; - url.type = 6 /* SchemeRelative */; - return url; - } - if (isAbsolutePath(input)) { - const url = parseAbsoluteUrl('http://foo.com' + input); - url.scheme = ''; - url.host = ''; - url.type = 5 /* AbsolutePath */; - return url; - } - if (isFileUrl(input)) - return parseFileUrl(input); - if (isAbsoluteUrl(input)) - return parseAbsoluteUrl(input); - const url = parseAbsoluteUrl('http://foo.com/' + input); - url.scheme = ''; - url.host = ''; - url.type = input - ? input.startsWith('?') - ? 3 /* Query */ - : input.startsWith('#') - ? 2 /* Hash */ - : 4 /* RelativePath */ - : 1 /* Empty */; - return url; - } - function stripPathFilename(path) { - // If a path ends with a parent directory "..", then it's a relative path with excess parent - // paths. It's not a file, so we can't strip it. - if (path.endsWith('/..')) - return path; - const index = path.lastIndexOf('/'); - return path.slice(0, index + 1); - } - function mergePaths(url, base) { - normalizePath(base, base.type); - // If the path is just a "/", then it was an empty path to begin with (remember, we're a relative - // path). - if (url.path === '/') { - url.path = base.path; - } - else { - // Resolution happens relative to the base path's directory, not the file. - url.path = stripPathFilename(base.path) + url.path; - } - } - /** - * The path can have empty directories "//", unneeded parents "foo/..", or current directory - * "foo/.". We need to normalize to a standard representation. - */ - function normalizePath(url, type) { - const rel = type <= 4 /* RelativePath */; - const pieces = url.path.split('/'); - // We need to preserve the first piece always, so that we output a leading slash. The item at - // pieces[0] is an empty string. - let pointer = 1; - // Positive is the number of real directories we've output, used for popping a parent directory. - // Eg, "foo/bar/.." will have a positive 2, and we can decrement to be left with just "foo". - let positive = 0; - // We need to keep a trailing slash if we encounter an empty directory (eg, splitting "foo/" will - // generate `["foo", ""]` pieces). And, if we pop a parent directory. But once we encounter a - // real directory, we won't need to append, unless the other conditions happen again. - let addTrailingSlash = false; - for (let i = 1; i < pieces.length; i++) { - const piece = pieces[i]; - // An empty directory, could be a trailing slash, or just a double "//" in the path. - if (!piece) { - addTrailingSlash = true; - continue; - } - // If we encounter a real directory, then we don't need to append anymore. - addTrailingSlash = false; - // A current directory, which we can always drop. - if (piece === '.') - continue; - // A parent directory, we need to see if there are any real directories we can pop. Else, we - // have an excess of parents, and we'll need to keep the "..". - if (piece === '..') { - if (positive) { - addTrailingSlash = true; - positive--; - pointer--; - } - else if (rel) { - // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute - // URL, protocol relative URL, or an absolute path, we don't need to keep excess. - pieces[pointer++] = piece; - } - continue; - } - // We've encountered a real directory. Move it to the next insertion pointer, which accounts for - // any popped or dropped directories. - pieces[pointer++] = piece; - positive++; - } - let path = ''; - for (let i = 1; i < pointer; i++) { - path += '/' + pieces[i]; - } - if (!path || (addTrailingSlash && !path.endsWith('/..'))) { - path += '/'; - } - url.path = path; - } - /** - * Attempts to resolve `input` URL/path relative to `base`. - */ - function resolve(input, base) { - if (!input && !base) - return ''; - const url = parseUrl(input); - let inputType = url.type; - if (base && inputType !== 7 /* Absolute */) { - const baseUrl = parseUrl(base); - const baseType = baseUrl.type; - switch (inputType) { - case 1 /* Empty */: - url.hash = baseUrl.hash; - // fall through - case 2 /* Hash */: - url.query = baseUrl.query; - // fall through - case 3 /* Query */: - case 4 /* RelativePath */: - mergePaths(url, baseUrl); - // fall through - case 5 /* AbsolutePath */: - // The host, user, and port are joined, you can't copy one without the others. - url.user = baseUrl.user; - url.host = baseUrl.host; - url.port = baseUrl.port; - // fall through - case 6 /* SchemeRelative */: - // The input doesn't have a schema at least, so we need to copy at least that over. - url.scheme = baseUrl.scheme; - } - if (baseType > inputType) - inputType = baseType; - } - normalizePath(url, inputType); - const queryHash = url.query + url.hash; - switch (inputType) { - // This is impossible, because of the empty checks at the start of the function. - // case UrlType.Empty: - case 2 /* Hash */: - case 3 /* Query */: - return queryHash; - case 4 /* RelativePath */: { - // The first char is always a "/", and we need it to be relative. - const path = url.path.slice(1); - if (!path) - return queryHash || '.'; - if (isRelative(base || input) && !isRelative(path)) { - // If base started with a leading ".", or there is no base and input started with a ".", - // then we need to ensure that the relative path starts with a ".". We don't know if - // relative starts with a "..", though, so check before prepending. - return './' + path + queryHash; - } - return path + queryHash; - } - case 5 /* AbsolutePath */: - return url.path + queryHash; - default: - return url.scheme + '//' + url.user + url.host + url.port + url.path + queryHash; - } - } - - return resolve; - -})); -//# sourceMappingURL=resolve-uri.umd.js.map diff --git a/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map b/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map deleted file mode 100644 index 70a37f21..00000000 --- a/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"resolve-uri.umd.js","sources":["../src/resolve-uri.ts"],"sourcesContent":["// Matches the scheme of a URL, eg \"http://\"\nconst schemeRegex = /^[\\w+.-]+:\\/\\//;\n\n/**\n * Matches the parts of a URL:\n * 1. Scheme, including \":\", guaranteed.\n * 2. User/password, including \"@\", optional.\n * 3. Host, guaranteed.\n * 4. Port, including \":\", optional.\n * 5. Path, including \"/\", optional.\n * 6. Query, including \"?\", optional.\n * 7. Hash, including \"#\", optional.\n */\nconst urlRegex = /^([\\w+.-]+:)\\/\\/([^@/#?]*@)?([^:/#?]*)(:\\d+)?(\\/[^#?]*)?(\\?[^#]*)?(#.*)?/;\n\n/**\n * File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start\n * with a leading `/`, they can have a domain (but only if they don't start with a Windows drive).\n *\n * 1. Host, optional.\n * 2. Path, which may include \"/\", guaranteed.\n * 3. Query, including \"?\", optional.\n * 4. Hash, including \"#\", optional.\n */\nconst fileRegex = /^file:(?:\\/\\/((?![a-z]:)[^/#?]*)?)?(\\/?[^#?]*)(\\?[^#]*)?(#.*)?/i;\n\ntype Url = {\n scheme: string;\n user: string;\n host: string;\n port: string;\n path: string;\n query: string;\n hash: string;\n type: UrlType;\n};\n\nconst enum UrlType {\n Empty = 1,\n Hash = 2,\n Query = 3,\n RelativePath = 4,\n AbsolutePath = 5,\n SchemeRelative = 6,\n Absolute = 7,\n}\n\nfunction isAbsoluteUrl(input: string): boolean {\n return schemeRegex.test(input);\n}\n\nfunction isSchemeRelativeUrl(input: string): boolean {\n return input.startsWith('//');\n}\n\nfunction isAbsolutePath(input: string): boolean {\n return input.startsWith('/');\n}\n\nfunction isFileUrl(input: string): boolean {\n return input.startsWith('file:');\n}\n\nfunction isRelative(input: string): boolean {\n return /^[.?#]/.test(input);\n}\n\nfunction parseAbsoluteUrl(input: string): Url {\n const match = urlRegex.exec(input)!;\n return makeUrl(\n match[1],\n match[2] || '',\n match[3],\n match[4] || '',\n match[5] || '/',\n match[6] || '',\n match[7] || '',\n );\n}\n\nfunction parseFileUrl(input: string): Url {\n const match = fileRegex.exec(input)!;\n const path = match[2];\n return makeUrl(\n 'file:',\n '',\n match[1] || '',\n '',\n isAbsolutePath(path) ? path : '/' + path,\n match[3] || '',\n match[4] || '',\n );\n}\n\nfunction makeUrl(\n scheme: string,\n user: string,\n host: string,\n port: string,\n path: string,\n query: string,\n hash: string,\n): Url {\n return {\n scheme,\n user,\n host,\n port,\n path,\n query,\n hash,\n type: UrlType.Absolute,\n };\n}\n\nfunction parseUrl(input: string): Url {\n if (isSchemeRelativeUrl(input)) {\n const url = parseAbsoluteUrl('http:' + input);\n url.scheme = '';\n url.type = UrlType.SchemeRelative;\n return url;\n }\n\n if (isAbsolutePath(input)) {\n const url = parseAbsoluteUrl('http://foo.com' + input);\n url.scheme = '';\n url.host = '';\n url.type = UrlType.AbsolutePath;\n return url;\n }\n\n if (isFileUrl(input)) return parseFileUrl(input);\n\n if (isAbsoluteUrl(input)) return parseAbsoluteUrl(input);\n\n const url = parseAbsoluteUrl('http://foo.com/' + input);\n url.scheme = '';\n url.host = '';\n url.type = input\n ? input.startsWith('?')\n ? UrlType.Query\n : input.startsWith('#')\n ? UrlType.Hash\n : UrlType.RelativePath\n : UrlType.Empty;\n return url;\n}\n\nfunction stripPathFilename(path: string): string {\n // If a path ends with a parent directory \"..\", then it's a relative path with excess parent\n // paths. It's not a file, so we can't strip it.\n if (path.endsWith('/..')) return path;\n const index = path.lastIndexOf('/');\n return path.slice(0, index + 1);\n}\n\nfunction mergePaths(url: Url, base: Url) {\n normalizePath(base, base.type);\n\n // If the path is just a \"/\", then it was an empty path to begin with (remember, we're a relative\n // path).\n if (url.path === '/') {\n url.path = base.path;\n } else {\n // Resolution happens relative to the base path's directory, not the file.\n url.path = stripPathFilename(base.path) + url.path;\n }\n}\n\n/**\n * The path can have empty directories \"//\", unneeded parents \"foo/..\", or current directory\n * \"foo/.\". We need to normalize to a standard representation.\n */\nfunction normalizePath(url: Url, type: UrlType) {\n const rel = type <= UrlType.RelativePath;\n const pieces = url.path.split('/');\n\n // We need to preserve the first piece always, so that we output a leading slash. The item at\n // pieces[0] is an empty string.\n let pointer = 1;\n\n // Positive is the number of real directories we've output, used for popping a parent directory.\n // Eg, \"foo/bar/..\" will have a positive 2, and we can decrement to be left with just \"foo\".\n let positive = 0;\n\n // We need to keep a trailing slash if we encounter an empty directory (eg, splitting \"foo/\" will\n // generate `[\"foo\", \"\"]` pieces). And, if we pop a parent directory. But once we encounter a\n // real directory, we won't need to append, unless the other conditions happen again.\n let addTrailingSlash = false;\n\n for (let i = 1; i < pieces.length; i++) {\n const piece = pieces[i];\n\n // An empty directory, could be a trailing slash, or just a double \"//\" in the path.\n if (!piece) {\n addTrailingSlash = true;\n continue;\n }\n\n // If we encounter a real directory, then we don't need to append anymore.\n addTrailingSlash = false;\n\n // A current directory, which we can always drop.\n if (piece === '.') continue;\n\n // A parent directory, we need to see if there are any real directories we can pop. Else, we\n // have an excess of parents, and we'll need to keep the \"..\".\n if (piece === '..') {\n if (positive) {\n addTrailingSlash = true;\n positive--;\n pointer--;\n } else if (rel) {\n // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute\n // URL, protocol relative URL, or an absolute path, we don't need to keep excess.\n pieces[pointer++] = piece;\n }\n continue;\n }\n\n // We've encountered a real directory. Move it to the next insertion pointer, which accounts for\n // any popped or dropped directories.\n pieces[pointer++] = piece;\n positive++;\n }\n\n let path = '';\n for (let i = 1; i < pointer; i++) {\n path += '/' + pieces[i];\n }\n if (!path || (addTrailingSlash && !path.endsWith('/..'))) {\n path += '/';\n }\n url.path = path;\n}\n\n/**\n * Attempts to resolve `input` URL/path relative to `base`.\n */\nexport default function resolve(input: string, base: string | undefined): string {\n if (!input && !base) return '';\n\n const url = parseUrl(input);\n let inputType = url.type;\n\n if (base && inputType !== UrlType.Absolute) {\n const baseUrl = parseUrl(base);\n const baseType = baseUrl.type;\n\n switch (inputType) {\n case UrlType.Empty:\n url.hash = baseUrl.hash;\n // fall through\n\n case UrlType.Hash:\n url.query = baseUrl.query;\n // fall through\n\n case UrlType.Query:\n case UrlType.RelativePath:\n mergePaths(url, baseUrl);\n // fall through\n\n case UrlType.AbsolutePath:\n // The host, user, and port are joined, you can't copy one without the others.\n url.user = baseUrl.user;\n url.host = baseUrl.host;\n url.port = baseUrl.port;\n // fall through\n\n case UrlType.SchemeRelative:\n // The input doesn't have a schema at least, so we need to copy at least that over.\n url.scheme = baseUrl.scheme;\n }\n if (baseType > inputType) inputType = baseType;\n }\n\n normalizePath(url, inputType);\n\n const queryHash = url.query + url.hash;\n switch (inputType) {\n // This is impossible, because of the empty checks at the start of the function.\n // case UrlType.Empty:\n\n case UrlType.Hash:\n case UrlType.Query:\n return queryHash;\n\n case UrlType.RelativePath: {\n // The first char is always a \"/\", and we need it to be relative.\n const path = url.path.slice(1);\n\n if (!path) return queryHash || '.';\n\n if (isRelative(base || input) && !isRelative(path)) {\n // If base started with a leading \".\", or there is no base and input started with a \".\",\n // then we need to ensure that the relative path starts with a \".\". We don't know if\n // relative starts with a \"..\", though, so check before prepending.\n return './' + path + queryHash;\n }\n\n return path + queryHash;\n }\n\n case UrlType.AbsolutePath:\n return url.path + queryHash;\n\n default:\n return url.scheme + '//' + url.user + url.host + url.port + url.path + queryHash;\n }\n}\n"],"names":[],"mappings":";;;;;;IAAA;IACA,MAAM,WAAW,GAAG,gBAAgB,CAAC;IAErC;;;;;;;;;;IAUA,MAAM,QAAQ,GAAG,0EAA0E,CAAC;IAE5F;;;;;;;;;IASA,MAAM,SAAS,GAAG,iEAAiE,CAAC;IAuBpF,SAAS,aAAa,CAAC,KAAa;QAClC,OAAO,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAED,SAAS,mBAAmB,CAAC,KAAa;QACxC,OAAO,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;IAED,SAAS,cAAc,CAAC,KAAa;QACnC,OAAO,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IAC/B,CAAC;IAED,SAAS,SAAS,CAAC,KAAa;QAC9B,OAAO,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAA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GAAG,SAAS;gBAAE,SAAS,GAAG,QAAQ,CAAC;SAChD;QAED,aAAa,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;QAE9B,MAAM,SAAS,GAAG,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC;QACvC,QAAQ,SAAS;;;YAIf,kBAAkB;YAClB;gBACE,OAAO,SAAS,CAAC;YAEnB,2BAA2B;;gBAEzB,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBAE/B,IAAI,CAAC,IAAI;oBAAE,OAAO,SAAS,IAAI,GAAG,CAAC;gBAEnC,IAAI,UAAU,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;;;;oBAIlD,OAAO,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;iBAChC;gBAED,OAAO,IAAI,GAAG,SAAS,CAAC;aACzB;YAED;gBACE,OAAO,GAAG,CAAC,IAAI,GAAG,SAAS,CAAC;YAE9B;gBACE,OAAO,GAAG,CAAC,MAAM,GAAG,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,SAAS,CAAC;SACpF;IACH;;;;;;;;"} \ No newline at end of file diff --git a/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts b/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts deleted file mode 100644 index b7f0b3b2..00000000 --- a/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Attempts to resolve `input` URL/path relative to `base`. - */ -export default function resolve(input: string, base: string | undefined): string; diff --git a/node_modules/@jridgewell/set-array/dist/set-array.mjs b/node_modules/@jridgewell/set-array/dist/set-array.mjs deleted file mode 100644 index 8a2d60b8..00000000 --- a/node_modules/@jridgewell/set-array/dist/set-array.mjs +++ /dev/null @@ -1,69 +0,0 @@ -/** - * SetArray acts like a `Set` (allowing only one occurrence of a string `key`), but provides the - * index of the `key` in the backing array. - * - * This is designed to allow synchronizing a second array with the contents of the backing array, - * like how in a sourcemap `sourcesContent[i]` is the source content associated with `source[i]`, - * and there are never duplicates. - */ -class SetArray { - constructor() { - this._indexes = { __proto__: null }; - this.array = []; - } -} -/** - * Typescript doesn't allow friend access to private fields, so this just casts the set into a type - * with public access modifiers. - */ -function cast(set) { - return set; -} -/** - * Gets the index associated with `key` in the backing array, if it is already present. - */ -function get(setarr, key) { - return cast(setarr)._indexes[key]; -} -/** - * Puts `key` into the backing array, if it is not already present. Returns - * the index of the `key` in the backing array. - */ -function put(setarr, key) { - // The key may or may not be present. If it is present, it's a number. - const index = get(setarr, key); - if (index !== undefined) - return index; - const { array, _indexes: indexes } = cast(setarr); - const length = array.push(key); - return (indexes[key] = length - 1); -} -/** - * Pops the last added item out of the SetArray. - */ -function pop(setarr) { - const { array, _indexes: indexes } = cast(setarr); - if (array.length === 0) - return; - const last = array.pop(); - indexes[last] = undefined; -} -/** - * Removes the key, if it exists in the set. - */ -function remove(setarr, key) { - const index = get(setarr, key); - if (index === undefined) - return; - const { array, _indexes: indexes } = cast(setarr); - for (let i = index + 1; i < array.length; i++) { - const k = array[i]; - array[i - 1] = k; - indexes[k]--; - } - indexes[key] = undefined; - array.pop(); -} - -export { SetArray, get, pop, put, remove }; -//# sourceMappingURL=set-array.mjs.map diff --git a/node_modules/@jridgewell/set-array/dist/set-array.mjs.map b/node_modules/@jridgewell/set-array/dist/set-array.mjs.map deleted file mode 100644 index 9276dfa2..00000000 --- a/node_modules/@jridgewell/set-array/dist/set-array.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"set-array.mjs","sources":["../src/set-array.ts"],"sourcesContent":["type Key = string | number | symbol;\n\n/**\n * SetArray acts like a `Set` (allowing only one occurrence of a string `key`), but provides the\n * index of the `key` in the backing array.\n *\n * This is designed to allow synchronizing a second array with the contents of the backing array,\n * like how in a sourcemap `sourcesContent[i]` is the source content associated with `source[i]`,\n * and there are never duplicates.\n */\nexport class SetArray {\n private declare _indexes: Record;\n declare array: readonly T[];\n\n constructor() {\n this._indexes = { __proto__: null } as any;\n this.array = [];\n }\n}\n\ninterface PublicSet {\n array: T[];\n _indexes: SetArray['_indexes'];\n}\n\n/**\n * Typescript doesn't allow friend access to private fields, so this just casts the set into a type\n * with public access modifiers.\n */\nfunction cast(set: SetArray): PublicSet {\n return set as any;\n}\n\n/**\n * Gets the index associated with `key` in the backing array, if it is already present.\n */\nexport function get(setarr: SetArray, key: T): number | undefined {\n return cast(setarr)._indexes[key];\n}\n\n/**\n * Puts `key` into the backing array, if it is not already present. Returns\n * the index of the `key` in the backing array.\n */\nexport function put(setarr: SetArray, key: T): number {\n // The key may or may not be present. If it is present, it's a number.\n const index = get(setarr, key);\n if (index !== undefined) return index;\n\n const { array, _indexes: indexes } = cast(setarr);\n\n const length = array.push(key);\n return (indexes[key] = length - 1);\n}\n\n/**\n * Pops the last added item out of the SetArray.\n */\nexport function pop(setarr: SetArray): void {\n const { array, _indexes: indexes } = cast(setarr);\n if (array.length === 0) return;\n\n const last = array.pop()!;\n indexes[last] = undefined;\n}\n\n/**\n * Removes the key, if it exists in the set.\n */\nexport function remove(setarr: SetArray, key: T): void {\n const index = get(setarr, key);\n if (index === undefined) return;\n\n const { array, _indexes: indexes } = cast(setarr);\n for (let i = index + 1; i < array.length; i++) {\n const k = array[i];\n array[i - 1] = k;\n indexes[k]!--;\n }\n indexes[key] = undefined;\n array.pop();\n}\n"],"names":[],"mappings":"AAEA;;;;;;;;MAQa,QAAQ;IAInB;QACE,IAAI,CAAC,QAAQ,GAAG,EAAE,SAAS,EAAE,IAAI,EAAS,CAAC;QAC3C,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;KACjB;CACF;AAOD;;;;AAIA,SAAS,IAAI,CAAgB,GAAgB;IAC3C,OAAO,GAAU,CAAC;A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GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QACnB,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;QACjB,OAAO,CAAC,CAAC,CAAE,EAAE,CAAC;KACf;IACD,OAAO,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;IACzB,KAAK,CAAC,GAAG,EAAE,CAAC;AACd;;;;"} \ No newline at end of file diff --git a/node_modules/@jridgewell/set-array/dist/set-array.umd.js b/node_modules/@jridgewell/set-array/dist/set-array.umd.js deleted file mode 100644 index ab498cc1..00000000 --- a/node_modules/@jridgewell/set-array/dist/set-array.umd.js +++ /dev/null @@ -1,83 +0,0 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : - typeof define === 'function' && define.amd ? define(['exports'], factory) : - (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.setArray = {})); -})(this, (function (exports) { 'use strict'; - - /** - * SetArray acts like a `Set` (allowing only one occurrence of a string `key`), but provides the - * index of the `key` in the backing array. - * - * This is designed to allow synchronizing a second array with the contents of the backing array, - * like how in a sourcemap `sourcesContent[i]` is the source content associated with `source[i]`, - * and there are never duplicates. - */ - class SetArray { - constructor() { - this._indexes = { __proto__: null }; - this.array = []; - } - } - /** - * Typescript doesn't allow friend access to private fields, so this just casts the set into a type - * with public access modifiers. - */ - function cast(set) { - return set; - } - /** - * Gets the index associated with `key` in the backing array, if it is already present. - */ - function get(setarr, key) { - return cast(setarr)._indexes[key]; - } - /** - * Puts `key` into the backing array, if it is not already present. Returns - * the index of the `key` in the backing array. - */ - function put(setarr, key) { - // The key may or may not be present. If it is present, it's a number. - const index = get(setarr, key); - if (index !== undefined) - return index; - const { array, _indexes: indexes } = cast(setarr); - const length = array.push(key); - return (indexes[key] = length - 1); - } - /** - * Pops the last added item out of the SetArray. - */ - function pop(setarr) { - const { array, _indexes: indexes } = cast(setarr); - if (array.length === 0) - return; - const last = array.pop(); - indexes[last] = undefined; - } - /** - * Removes the key, if it exists in the set. - */ - function remove(setarr, key) { - const index = get(setarr, key); - if (index === undefined) - return; - const { array, _indexes: indexes } = cast(setarr); - for (let i = index + 1; i < array.length; i++) { - const k = array[i]; - array[i - 1] = k; - indexes[k]--; - } - indexes[key] = undefined; - array.pop(); - } - - exports.SetArray = SetArray; - exports.get = get; - exports.pop = pop; - exports.put = put; - exports.remove = remove; - - Object.defineProperty(exports, '__esModule', { value: true }); - -})); -//# sourceMappingURL=set-array.umd.js.map diff --git a/node_modules/@jridgewell/set-array/dist/set-array.umd.js.map b/node_modules/@jridgewell/set-array/dist/set-array.umd.js.map deleted file mode 100644 index 9edb8bc5..00000000 --- a/node_modules/@jridgewell/set-array/dist/set-array.umd.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"set-array.umd.js","sources":["../src/set-array.ts"],"sourcesContent":["type Key = string | number | symbol;\n\n/**\n * SetArray acts like a `Set` (allowing only one occurrence of a string `key`), but provides the\n * index of the `key` in the backing array.\n *\n * This is designed to allow synchronizing a second array with the contents of the backing array,\n * like how in a sourcemap `sourcesContent[i]` is the source content associated with `source[i]`,\n * and there are never duplicates.\n */\nexport class SetArray {\n private declare _indexes: Record;\n declare array: readonly T[];\n\n constructor() {\n this._indexes = { __proto__: null } as any;\n this.array = [];\n }\n}\n\ninterface PublicSet {\n array: T[];\n _indexes: SetArray['_indexes'];\n}\n\n/**\n * Typescript doesn't allow friend access to private fields, so this just casts the set into a type\n * with public access modifiers.\n */\nfunction cast(set: SetArray): PublicSet {\n return set as any;\n}\n\n/**\n * Gets the index associated with `key` in the backing array, if it is already present.\n */\nexport function get(setarr: SetArray, key: T): number | undefined {\n return cast(setarr)._indexes[key];\n}\n\n/**\n * Puts `key` into the backing array, if it is not already present. Returns\n * the index of the `key` in the backing array.\n */\nexport function put(setarr: SetArray, key: T): number {\n // The key may or may not be present. If it is present, it's a number.\n const index = get(setarr, key);\n if (index !== undefined) return index;\n\n const { array, _indexes: indexes } = cast(setarr);\n\n const length = array.push(key);\n return (indexes[key] = length - 1);\n}\n\n/**\n * Pops the last added item out of the SetArray.\n */\nexport function pop(setarr: SetArray): void {\n const { array, _indexes: indexes } = cast(setarr);\n if (array.length === 0) return;\n\n const last = array.pop()!;\n indexes[last] = undefined;\n}\n\n/**\n * Removes the key, if it exists in the set.\n */\nexport function remove(setarr: SetArray, key: T): void {\n const index = get(setarr, key);\n if (index === undefined) return;\n\n const { array, _indexes: indexes } = cast(setarr);\n for (let i = index + 1; i < array.length; i++) {\n const k = array[i];\n array[i - 1] = k;\n indexes[k]!--;\n }\n indexes[key] = undefined;\n array.pop();\n}\n"],"names":[],"mappings":";;;;;;IAEA;;;;;;;;UAQa,QAAQ;QAInB;YACE,IAAI,CAAC,QAAQ,GAAG,EAAE,SAAS,EAAE,IAAI,EAAS,CAAC;YAC3C,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;SACjB;KACF;IAOD;;;;IAIA,SAAS,IAAI,CAAgB,GAAgB;QAC3C,OAAO,GAAU,CAAC;IACpB,CAAC;IAED;;;aAGgB,GAAG,CAAgB,MAAmB,EAAE,GAAM;QAC5D,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;IAED;;;;aAIgB,GAAG,CAAgB,MAAmB,EAAE,GAAM;;QAE5D,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC/B,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO,KAAK,CAAC;QAEtC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;QAElD,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC/B,QAAQ,OAAO,CAAC,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE;IACrC,CAAC;IAED;;;aAGgB,GAAG,CAAgB,MAAmB;QACpD,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;QAClD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO;QAE/B,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,EAAG,CAAC;QAC1B,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IAC5B,CAAC;IAED;;;aAGgB,MAAM,CAAgB,MAAmB,EAAE,GAAM;QAC/D,MAAM,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC/B,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO;QAEhC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;QAClD,KAAK,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC7C,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YACnB,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;YACjB,OAAO,CAAC,CAAC,CAAE,EAAE,CAAC;SACf;QACD,OAAO,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;QACzB,KAAK,CAAC,GAAG,EAAE,CAAC;IACd;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/node_modules/@jridgewell/set-array/dist/types/set-array.d.ts b/node_modules/@jridgewell/set-array/dist/types/set-array.d.ts deleted file mode 100644 index 5f68e5db..00000000 --- a/node_modules/@jridgewell/set-array/dist/types/set-array.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -declare type Key = string | number | symbol; -/** - * SetArray acts like a `Set` (allowing only one occurrence of a string `key`), but provides the - * index of the `key` in the backing array. - * - * This is designed to allow synchronizing a second array with the contents of the backing array, - * like how in a sourcemap `sourcesContent[i]` is the source content associated with `source[i]`, - * and there are never duplicates. - */ -export declare class SetArray { - private _indexes; - array: readonly T[]; - constructor(); -} -/** - * Gets the index associated with `key` in the backing array, if it is already present. - */ -export declare function get(setarr: SetArray, key: T): number | undefined; -/** - * Puts `key` into the backing array, if it is not already present. Returns - * the index of the `key` in the backing array. - */ -export declare function put(setarr: SetArray, key: T): number; -/** - * Pops the last added item out of the SetArray. - */ -export declare function pop(setarr: SetArray): void; -/** - * Removes the key, if it exists in the set. - */ -export declare function remove(setarr: SetArray, key: T): void; -export {}; diff --git a/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs b/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs deleted file mode 100644 index 60e17b3d..00000000 --- a/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +++ /dev/null @@ -1,424 +0,0 @@ -const comma = ','.charCodeAt(0); -const semicolon = ';'.charCodeAt(0); -const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; -const intToChar = new Uint8Array(64); // 64 possible chars. -const charToInt = new Uint8Array(128); // z is 122 in ASCII -for (let i = 0; i < chars.length; i++) { - const c = chars.charCodeAt(i); - intToChar[i] = c; - charToInt[c] = i; -} -function decodeInteger(reader, relative) { - let value = 0; - let shift = 0; - let integer = 0; - do { - const c = reader.next(); - integer = charToInt[c]; - value |= (integer & 31) << shift; - shift += 5; - } while (integer & 32); - const shouldNegate = value & 1; - value >>>= 1; - if (shouldNegate) { - value = -0x80000000 | -value; - } - return relative + value; -} -function encodeInteger(builder, num, relative) { - let delta = num - relative; - delta = delta < 0 ? (-delta << 1) | 1 : delta << 1; - do { - let clamped = delta & 0b011111; - delta >>>= 5; - if (delta > 0) - clamped |= 0b100000; - builder.write(intToChar[clamped]); - } while (delta > 0); - return num; -} -function hasMoreVlq(reader, max) { - if (reader.pos >= max) - return false; - return reader.peek() !== comma; -} - -const bufLength = 1024 * 16; -// Provide a fallback for older environments. -const td = typeof TextDecoder !== 'undefined' - ? /* #__PURE__ */ new TextDecoder() - : typeof Buffer !== 'undefined' - ? { - decode(buf) { - const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength); - return out.toString(); - }, - } - : { - decode(buf) { - let out = ''; - for (let i = 0; i < buf.length; i++) { - out += String.fromCharCode(buf[i]); - } - return out; - }, - }; -class StringWriter { - constructor() { - this.pos = 0; - this.out = ''; - this.buffer = new Uint8Array(bufLength); - } - write(v) { - const { buffer } = this; - buffer[this.pos++] = v; - if (this.pos === bufLength) { - this.out += td.decode(buffer); - this.pos = 0; - } - } - flush() { - const { buffer, out, pos } = this; - return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out; - } -} -class StringReader { - constructor(buffer) { - this.pos = 0; - this.buffer = buffer; - } - next() { - return this.buffer.charCodeAt(this.pos++); - } - peek() { - return this.buffer.charCodeAt(this.pos); - } - indexOf(char) { - const { buffer, pos } = this; - const idx = buffer.indexOf(char, pos); - return idx === -1 ? buffer.length : idx; - } -} - -const EMPTY = []; -function decodeOriginalScopes(input) { - const { length } = input; - const reader = new StringReader(input); - const scopes = []; - const stack = []; - let line = 0; - for (; reader.pos < length; reader.pos++) { - line = decodeInteger(reader, line); - const column = decodeInteger(reader, 0); - if (!hasMoreVlq(reader, length)) { - const last = stack.pop(); - last[2] = line; - last[3] = column; - continue; - } - const kind = decodeInteger(reader, 0); - const fields = decodeInteger(reader, 0); - const hasName = fields & 0b0001; - const scope = (hasName ? [line, column, 0, 0, kind, decodeInteger(reader, 0)] : [line, column, 0, 0, kind]); - let vars = EMPTY; - if (hasMoreVlq(reader, length)) { - vars = []; - do { - const varsIndex = decodeInteger(reader, 0); - vars.push(varsIndex); - } while (hasMoreVlq(reader, length)); - } - scope.vars = vars; - scopes.push(scope); - stack.push(scope); - } - return scopes; -} -function encodeOriginalScopes(scopes) { - const writer = new StringWriter(); - for (let i = 0; i < scopes.length;) { - i = _encodeOriginalScopes(scopes, i, writer, [0]); - } - return writer.flush(); -} -function _encodeOriginalScopes(scopes, index, writer, state) { - const scope = scopes[index]; - const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope; - if (index > 0) - writer.write(comma); - state[0] = encodeInteger(writer, startLine, state[0]); - encodeInteger(writer, startColumn, 0); - encodeInteger(writer, kind, 0); - const fields = scope.length === 6 ? 0b0001 : 0; - encodeInteger(writer, fields, 0); - if (scope.length === 6) - encodeInteger(writer, scope[5], 0); - for (const v of vars) { - encodeInteger(writer, v, 0); - } - for (index++; index < scopes.length;) { - const next = scopes[index]; - const { 0: l, 1: c } = next; - if (l > endLine || (l === endLine && c >= endColumn)) { - break; - } - index = _encodeOriginalScopes(scopes, index, writer, state); - } - writer.write(comma); - state[0] = encodeInteger(writer, endLine, state[0]); - encodeInteger(writer, endColumn, 0); - return index; -} -function decodeGeneratedRanges(input) { - const { length } = input; - const reader = new StringReader(input); - const ranges = []; - const stack = []; - let genLine = 0; - let definitionSourcesIndex = 0; - let definitionScopeIndex = 0; - let callsiteSourcesIndex = 0; - let callsiteLine = 0; - let callsiteColumn = 0; - let bindingLine = 0; - let bindingColumn = 0; - do { - const semi = reader.indexOf(';'); - let genColumn = 0; - for (; reader.pos < semi; reader.pos++) { - genColumn = decodeInteger(reader, genColumn); - if (!hasMoreVlq(reader, semi)) { - const last = stack.pop(); - last[2] = genLine; - last[3] = genColumn; - continue; - } - const fields = decodeInteger(reader, 0); - const hasDefinition = fields & 0b0001; - const hasCallsite = fields & 0b0010; - const hasScope = fields & 0b0100; - let callsite = null; - let bindings = EMPTY; - let range; - if (hasDefinition) { - const defSourcesIndex = decodeInteger(reader, definitionSourcesIndex); - definitionScopeIndex = decodeInteger(reader, definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0); - definitionSourcesIndex = defSourcesIndex; - range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex]; - } - else { - range = [genLine, genColumn, 0, 0]; - } - range.isScope = !!hasScope; - if (hasCallsite) { - const prevCsi = callsiteSourcesIndex; - const prevLine = callsiteLine; - callsiteSourcesIndex = decodeInteger(reader, callsiteSourcesIndex); - const sameSource = prevCsi === callsiteSourcesIndex; - callsiteLine = decodeInteger(reader, sameSource ? callsiteLine : 0); - callsiteColumn = decodeInteger(reader, sameSource && prevLine === callsiteLine ? callsiteColumn : 0); - callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn]; - } - range.callsite = callsite; - if (hasMoreVlq(reader, semi)) { - bindings = []; - do { - bindingLine = genLine; - bindingColumn = genColumn; - const expressionsCount = decodeInteger(reader, 0); - let expressionRanges; - if (expressionsCount < -1) { - expressionRanges = [[decodeInteger(reader, 0)]]; - for (let i = -1; i > expressionsCount; i--) { - const prevBl = bindingLine; - bindingLine = decodeInteger(reader, bindingLine); - bindingColumn = decodeInteger(reader, bindingLine === prevBl ? bindingColumn : 0); - const expression = decodeInteger(reader, 0); - expressionRanges.push([expression, bindingLine, bindingColumn]); - } - } - else { - expressionRanges = [[expressionsCount]]; - } - bindings.push(expressionRanges); - } while (hasMoreVlq(reader, semi)); - } - range.bindings = bindings; - ranges.push(range); - stack.push(range); - } - genLine++; - reader.pos = semi + 1; - } while (reader.pos < length); - return ranges; -} -function encodeGeneratedRanges(ranges) { - if (ranges.length === 0) - return ''; - const writer = new StringWriter(); - for (let i = 0; i < ranges.length;) { - i = _encodeGeneratedRanges(ranges, i, writer, [0, 0, 0, 0, 0, 0, 0]); - } - return writer.flush(); -} -function _encodeGeneratedRanges(ranges, index, writer, state) { - const range = ranges[index]; - const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, isScope, callsite, bindings, } = range; - if (state[0] < startLine) { - catchupLine(writer, state[0], startLine); - state[0] = startLine; - state[1] = 0; - } - else if (index > 0) { - writer.write(comma); - } - state[1] = encodeInteger(writer, range[1], state[1]); - const fields = (range.length === 6 ? 0b0001 : 0) | (callsite ? 0b0010 : 0) | (isScope ? 0b0100 : 0); - encodeInteger(writer, fields, 0); - if (range.length === 6) { - const { 4: sourcesIndex, 5: scopesIndex } = range; - if (sourcesIndex !== state[2]) { - state[3] = 0; - } - state[2] = encodeInteger(writer, sourcesIndex, state[2]); - state[3] = encodeInteger(writer, scopesIndex, state[3]); - } - if (callsite) { - const { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite; - if (sourcesIndex !== state[4]) { - state[5] = 0; - state[6] = 0; - } - else if (callLine !== state[5]) { - state[6] = 0; - } - state[4] = encodeInteger(writer, sourcesIndex, state[4]); - state[5] = encodeInteger(writer, callLine, state[5]); - state[6] = encodeInteger(writer, callColumn, state[6]); - } - if (bindings) { - for (const binding of bindings) { - if (binding.length > 1) - encodeInteger(writer, -binding.length, 0); - const expression = binding[0][0]; - encodeInteger(writer, expression, 0); - let bindingStartLine = startLine; - let bindingStartColumn = startColumn; - for (let i = 1; i < binding.length; i++) { - const expRange = binding[i]; - bindingStartLine = encodeInteger(writer, expRange[1], bindingStartLine); - bindingStartColumn = encodeInteger(writer, expRange[2], bindingStartColumn); - encodeInteger(writer, expRange[0], 0); - } - } - } - for (index++; index < ranges.length;) { - const next = ranges[index]; - const { 0: l, 1: c } = next; - if (l > endLine || (l === endLine && c >= endColumn)) { - break; - } - index = _encodeGeneratedRanges(ranges, index, writer, state); - } - if (state[0] < endLine) { - catchupLine(writer, state[0], endLine); - state[0] = endLine; - state[1] = 0; - } - else { - writer.write(comma); - } - state[1] = encodeInteger(writer, endColumn, state[1]); - return index; -} -function catchupLine(writer, lastLine, line) { - do { - writer.write(semicolon); - } while (++lastLine < line); -} - -function decode(mappings) { - const { length } = mappings; - const reader = new StringReader(mappings); - const decoded = []; - let genColumn = 0; - let sourcesIndex = 0; - let sourceLine = 0; - let sourceColumn = 0; - let namesIndex = 0; - do { - const semi = reader.indexOf(';'); - const line = []; - let sorted = true; - let lastCol = 0; - genColumn = 0; - while (reader.pos < semi) { - let seg; - genColumn = decodeInteger(reader, genColumn); - if (genColumn < lastCol) - sorted = false; - lastCol = genColumn; - if (hasMoreVlq(reader, semi)) { - sourcesIndex = decodeInteger(reader, sourcesIndex); - sourceLine = decodeInteger(reader, sourceLine); - sourceColumn = decodeInteger(reader, sourceColumn); - if (hasMoreVlq(reader, semi)) { - namesIndex = decodeInteger(reader, namesIndex); - seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex]; - } - else { - seg = [genColumn, sourcesIndex, sourceLine, sourceColumn]; - } - } - else { - seg = [genColumn]; - } - line.push(seg); - reader.pos++; - } - if (!sorted) - sort(line); - decoded.push(line); - reader.pos = semi + 1; - } while (reader.pos <= length); - return decoded; -} -function sort(line) { - line.sort(sortComparator); -} -function sortComparator(a, b) { - return a[0] - b[0]; -} -function encode(decoded) { - const writer = new StringWriter(); - let sourcesIndex = 0; - let sourceLine = 0; - let sourceColumn = 0; - let namesIndex = 0; - for (let i = 0; i < decoded.length; i++) { - const line = decoded[i]; - if (i > 0) - writer.write(semicolon); - if (line.length === 0) - continue; - let genColumn = 0; - for (let j = 0; j < line.length; j++) { - const segment = line[j]; - if (j > 0) - writer.write(comma); - genColumn = encodeInteger(writer, segment[0], genColumn); - if (segment.length === 1) - continue; - sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex); - sourceLine = encodeInteger(writer, segment[2], sourceLine); - sourceColumn = encodeInteger(writer, segment[3], sourceColumn); - if (segment.length === 4) - continue; - namesIndex = encodeInteger(writer, segment[4], namesIndex); - } - } - return writer.flush(); -} - -export { decode, decodeGeneratedRanges, decodeOriginalScopes, encode, encodeGeneratedRanges, encodeOriginalScopes }; -//# sourceMappingURL=sourcemap-codec.mjs.map diff --git a/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map b/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map deleted file mode 100644 index 73882288..00000000 --- a/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sourcemap-codec.mjs","sources":["../src/vlq.ts","../src/strings.ts","../src/scopes.ts","../src/sourcemap-codec.ts"],"sourcesContent":["import type { StringReader, StringWriter } from './strings';\n\nexport const comma = ','.charCodeAt(0);\nexport const semicolon = ';'.charCodeAt(0);\n\nconst chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\nconst intToChar = new Uint8Array(64); // 64 possible chars.\nconst charToInt = new Uint8Array(128); // z is 122 in ASCII\n\nfor (let i = 0; i < chars.length; i++) {\n const c = chars.charCodeAt(i);\n intToChar[i] = c;\n charToInt[c] = i;\n}\n\nexport function decodeInteger(reader: StringReader, relative: number): number {\n let value = 0;\n let shift = 0;\n let integer = 0;\n\n do {\n const c = reader.next();\n integer = charToInt[c];\n value |= (integer & 31) << shift;\n shift += 5;\n } while (integer & 32);\n\n const shouldNegate = value & 1;\n value >>>= 1;\n\n if (shouldNegate) {\n value = -0x80000000 | -value;\n }\n\n return relative + value;\n}\n\nexport function encodeInteger(builder: StringWriter, num: number, relative: number): number {\n let delta = num - relative;\n\n delta = delta < 0 ? (-delta << 1) | 1 : delta << 1;\n do {\n let clamped = delta & 0b011111;\n delta >>>= 5;\n if (delta > 0) clamped |= 0b100000;\n builder.write(intToChar[clamped]);\n } while (delta > 0);\n\n return num;\n}\n\nexport function hasMoreVlq(reader: StringReader, max: number) {\n if (reader.pos >= max) return false;\n return reader.peek() !== comma;\n}\n","const bufLength = 1024 * 16;\n\n// Provide a fallback for older environments.\nconst td =\n typeof TextDecoder !== 'undefined'\n ? /* #__PURE__ */ new TextDecoder()\n : typeof Buffer !== 'undefined'\n ? {\n decode(buf: Uint8Array): string {\n const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);\n return out.toString();\n },\n }\n : {\n decode(buf: Uint8Array): string {\n let out = '';\n for (let i = 0; i < buf.length; i++) {\n out += String.fromCharCode(buf[i]);\n }\n return out;\n },\n };\n\nexport class StringWriter {\n pos = 0;\n private out = '';\n private buffer = new Uint8Array(bufLength);\n\n write(v: number): void {\n const { buffer } = this;\n buffer[this.pos++] = v;\n if (this.pos === bufLength) {\n this.out += td.decode(buffer);\n this.pos = 0;\n }\n }\n\n flush(): string {\n const { buffer, out, pos } = this;\n return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;\n }\n}\n\nexport class StringReader {\n pos = 0;\n private declare buffer: string;\n\n constructor(buffer: string) {\n this.buffer = buffer;\n }\n\n next(): number {\n return this.buffer.charCodeAt(this.pos++);\n }\n\n peek(): number {\n return this.buffer.charCodeAt(this.pos);\n }\n\n indexOf(char: string): number {\n const { buffer, pos } = this;\n const idx = buffer.indexOf(char, pos);\n return idx === -1 ? buffer.length : idx;\n }\n}\n","import { StringReader, StringWriter } from './strings';\nimport { comma, decodeInteger, encodeInteger, hasMoreVlq, semicolon } from './vlq';\n\nconst EMPTY: any[] = [];\n\ntype Line = number;\ntype Column = number;\ntype Kind = number;\ntype Name = number;\ntype Var = number;\ntype SourcesIndex = number;\ntype ScopesIndex = number;\n\ntype Mix = (A & O) | (B & O);\n\nexport type OriginalScope = Mix<\n [Line, Column, Line, Column, Kind],\n [Line, Column, Line, Column, Kind, Name],\n { vars: Var[] }\n>;\n\nexport type GeneratedRange = Mix<\n [Line, Column, Line, Column],\n [Line, Column, Line, Column, SourcesIndex, ScopesIndex],\n {\n callsite: CallSite | null;\n bindings: Binding[];\n isScope: boolean;\n }\n>;\nexport type CallSite = [SourcesIndex, Line, Column];\ntype Binding = BindingExpressionRange[];\nexport type BindingExpressionRange = [Name] | [Name, Line, Column];\n\nexport function decodeOriginalScopes(input: string): OriginalScope[] {\n const { length } = input;\n const reader = new StringReader(input);\n const scopes: OriginalScope[] = [];\n const stack: OriginalScope[] = [];\n let line = 0;\n\n for (; reader.pos < length; reader.pos++) {\n line = decodeInteger(reader, line);\n const column = decodeInteger(reader, 0);\n\n if (!hasMoreVlq(reader, length)) {\n const last = stack.pop()!;\n last[2] = line;\n last[3] = column;\n continue;\n }\n\n const kind = decodeInteger(reader, 0);\n const fields = decodeInteger(reader, 0);\n const hasName = fields & 0b0001;\n\n const scope: OriginalScope = (\n hasName ? [line, column, 0, 0, kind, decodeInteger(reader, 0)] : [line, column, 0, 0, kind]\n ) as OriginalScope;\n\n let vars: Var[] = EMPTY;\n if (hasMoreVlq(reader, length)) {\n vars = [];\n do {\n const varsIndex = decodeInteger(reader, 0);\n vars.push(varsIndex);\n } while (hasMoreVlq(reader, length));\n }\n scope.vars = vars;\n\n scopes.push(scope);\n stack.push(scope);\n }\n\n return scopes;\n}\n\nexport function encodeOriginalScopes(scopes: OriginalScope[]): string {\n const writer = new StringWriter();\n\n for (let i = 0; i < scopes.length; ) {\n i = _encodeOriginalScopes(scopes, i, writer, [0]);\n }\n\n return writer.flush();\n}\n\nfunction _encodeOriginalScopes(\n scopes: OriginalScope[],\n index: number,\n writer: StringWriter,\n state: [\n number, // GenColumn\n ],\n): number {\n const scope = scopes[index];\n const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope;\n\n if (index > 0) writer.write(comma);\n\n state[0] = encodeInteger(writer, startLine, state[0]);\n encodeInteger(writer, startColumn, 0);\n encodeInteger(writer, kind, 0);\n\n const fields = scope.length === 6 ? 0b0001 : 0;\n encodeInteger(writer, fields, 0);\n if (scope.length === 6) encodeInteger(writer, scope[5], 0);\n\n for (const v of vars) {\n encodeInteger(writer, v, 0);\n }\n\n for (index++; index < scopes.length; ) {\n const next = scopes[index];\n const { 0: l, 1: c } = next;\n if (l > endLine || (l === endLine && c >= endColumn)) {\n break;\n }\n index = _encodeOriginalScopes(scopes, index, writer, state);\n }\n\n writer.write(comma);\n state[0] = encodeInteger(writer, endLine, state[0]);\n encodeInteger(writer, endColumn, 0);\n\n return index;\n}\n\nexport function decodeGeneratedRanges(input: string): GeneratedRange[] {\n const { length } = input;\n const reader = new StringReader(input);\n const ranges: GeneratedRange[] = [];\n const stack: GeneratedRange[] = [];\n\n let genLine = 0;\n let definitionSourcesIndex = 0;\n let definitionScopeIndex = 0;\n let callsiteSourcesIndex = 0;\n let callsiteLine = 0;\n let callsiteColumn = 0;\n let bindingLine = 0;\n let bindingColumn = 0;\n\n do {\n const semi = reader.indexOf(';');\n let genColumn = 0;\n\n for (; reader.pos < semi; reader.pos++) {\n genColumn = decodeInteger(reader, genColumn);\n\n if (!hasMoreVlq(reader, semi)) {\n const last = stack.pop()!;\n last[2] = genLine;\n last[3] = genColumn;\n continue;\n }\n\n const fields = decodeInteger(reader, 0);\n const hasDefinition = fields & 0b0001;\n const hasCallsite = fields & 0b0010;\n const hasScope = fields & 0b0100;\n\n let callsite: CallSite | null = null;\n let bindings: Binding[] = EMPTY;\n let range: GeneratedRange;\n if (hasDefinition) {\n const defSourcesIndex = decodeInteger(reader, definitionSourcesIndex);\n definitionScopeIndex = decodeInteger(\n reader,\n definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0,\n );\n\n definitionSourcesIndex = defSourcesIndex;\n range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex] as GeneratedRange;\n } else {\n range = [genLine, genColumn, 0, 0] as GeneratedRange;\n }\n\n range.isScope = !!hasScope;\n\n if (hasCallsite) {\n const prevCsi = callsiteSourcesIndex;\n const prevLine = callsiteLine;\n callsiteSourcesIndex = decodeInteger(reader, callsiteSourcesIndex);\n const sameSource = prevCsi === callsiteSourcesIndex;\n callsiteLine = decodeInteger(reader, sameSource ? callsiteLine : 0);\n callsiteColumn = decodeInteger(\n reader,\n sameSource && prevLine === callsiteLine ? callsiteColumn : 0,\n );\n\n callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn];\n }\n range.callsite = callsite;\n\n if (hasMoreVlq(reader, semi)) {\n bindings = [];\n do {\n bindingLine = genLine;\n bindingColumn = genColumn;\n const expressionsCount = decodeInteger(reader, 0);\n let expressionRanges: BindingExpressionRange[];\n if (expressionsCount < -1) {\n expressionRanges = [[decodeInteger(reader, 0)]];\n for (let i = -1; i > expressionsCount; i--) {\n const prevBl = bindingLine;\n bindingLine = decodeInteger(reader, bindingLine);\n bindingColumn = decodeInteger(reader, bindingLine === prevBl ? bindingColumn : 0);\n const expression = decodeInteger(reader, 0);\n expressionRanges.push([expression, bindingLine, bindingColumn]);\n }\n } else {\n expressionRanges = [[expressionsCount]];\n }\n bindings.push(expressionRanges);\n } while (hasMoreVlq(reader, semi));\n }\n range.bindings = bindings;\n\n ranges.push(range);\n stack.push(range);\n }\n\n genLine++;\n reader.pos = semi + 1;\n } while (reader.pos < length);\n\n return ranges;\n}\n\nexport function encodeGeneratedRanges(ranges: GeneratedRange[]): string {\n if (ranges.length === 0) return '';\n\n const writer = new StringWriter();\n\n for (let i = 0; i < ranges.length; ) {\n i = _encodeGeneratedRanges(ranges, i, writer, [0, 0, 0, 0, 0, 0, 0]);\n }\n\n return writer.flush();\n}\n\nfunction _encodeGeneratedRanges(\n ranges: GeneratedRange[],\n index: number,\n writer: StringWriter,\n state: [\n number, // GenLine\n number, // GenColumn\n number, // DefSourcesIndex\n number, // DefScopesIndex\n number, // CallSourcesIndex\n number, // CallLine\n number, // CallColumn\n ],\n): number {\n const range = ranges[index];\n const {\n 0: startLine,\n 1: startColumn,\n 2: endLine,\n 3: endColumn,\n isScope,\n callsite,\n bindings,\n } = range;\n\n if (state[0] < startLine) {\n catchupLine(writer, state[0], startLine);\n state[0] = startLine;\n state[1] = 0;\n } else if (index > 0) {\n writer.write(comma);\n }\n\n state[1] = encodeInteger(writer, range[1], state[1]);\n\n const fields =\n (range.length === 6 ? 0b0001 : 0) | (callsite ? 0b0010 : 0) | (isScope ? 0b0100 : 0);\n encodeInteger(writer, fields, 0);\n\n if (range.length === 6) {\n const { 4: sourcesIndex, 5: scopesIndex } = range;\n if (sourcesIndex !== state[2]) {\n state[3] = 0;\n }\n state[2] = encodeInteger(writer, sourcesIndex, state[2]);\n state[3] = encodeInteger(writer, scopesIndex, state[3]);\n }\n\n if (callsite) {\n const { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite!;\n if (sourcesIndex !== state[4]) {\n state[5] = 0;\n state[6] = 0;\n } else if (callLine !== state[5]) {\n state[6] = 0;\n }\n state[4] = encodeInteger(writer, sourcesIndex, state[4]);\n state[5] = encodeInteger(writer, callLine, state[5]);\n state[6] = encodeInteger(writer, callColumn, state[6]);\n }\n\n if (bindings) {\n for (const binding of bindings) {\n if (binding.length > 1) encodeInteger(writer, -binding.length, 0);\n const expression = binding[0][0];\n encodeInteger(writer, expression, 0);\n let bindingStartLine = startLine;\n let bindingStartColumn = startColumn;\n for (let i = 1; i < binding.length; i++) {\n const expRange = binding[i];\n bindingStartLine = encodeInteger(writer, expRange[1]!, bindingStartLine);\n bindingStartColumn = encodeInteger(writer, expRange[2]!, bindingStartColumn);\n encodeInteger(writer, expRange[0]!, 0);\n }\n }\n }\n\n for (index++; index < ranges.length; ) {\n const next = ranges[index];\n const { 0: l, 1: c } = next;\n if (l > endLine || (l === endLine && c >= endColumn)) {\n break;\n }\n index = _encodeGeneratedRanges(ranges, index, writer, state);\n }\n\n if (state[0] < endLine) {\n catchupLine(writer, state[0], endLine);\n state[0] = endLine;\n state[1] = 0;\n } else {\n writer.write(comma);\n }\n state[1] = encodeInteger(writer, endColumn, state[1]);\n\n return index;\n}\n\nfunction catchupLine(writer: StringWriter, lastLine: number, line: number) {\n do {\n writer.write(semicolon);\n } while (++lastLine < line);\n}\n","import { comma, decodeInteger, encodeInteger, hasMoreVlq, semicolon } from './vlq';\nimport { StringWriter, StringReader } from './strings';\n\nexport {\n decodeOriginalScopes,\n encodeOriginalScopes,\n decodeGeneratedRanges,\n encodeGeneratedRanges,\n} from './scopes';\nexport type { OriginalScope, GeneratedRange, CallSite, BindingExpressionRange } from './scopes';\n\nexport type SourceMapSegment =\n | [number]\n | [number, number, number, number]\n | [number, number, number, number, number];\nexport type SourceMapLine = SourceMapSegment[];\nexport type SourceMapMappings = SourceMapLine[];\n\nexport function decode(mappings: string): SourceMapMappings {\n const { length } = mappings;\n const reader = new StringReader(mappings);\n const decoded: SourceMapMappings = [];\n let genColumn = 0;\n let sourcesIndex = 0;\n let sourceLine = 0;\n let sourceColumn = 0;\n let namesIndex = 0;\n\n do {\n const semi = reader.indexOf(';');\n const line: SourceMapLine = [];\n let sorted = true;\n let lastCol = 0;\n genColumn = 0;\n\n while (reader.pos < semi) {\n let seg: SourceMapSegment;\n\n genColumn = decodeInteger(reader, genColumn);\n if (genColumn < lastCol) sorted = false;\n lastCol = genColumn;\n\n if (hasMoreVlq(reader, semi)) {\n sourcesIndex = decodeInteger(reader, sourcesIndex);\n sourceLine = decodeInteger(reader, sourceLine);\n sourceColumn = decodeInteger(reader, sourceColumn);\n\n if (hasMoreVlq(reader, semi)) {\n namesIndex = decodeInteger(reader, namesIndex);\n seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];\n } else {\n seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];\n }\n } else {\n seg = [genColumn];\n }\n\n line.push(seg);\n reader.pos++;\n }\n\n if (!sorted) sort(line);\n decoded.push(line);\n reader.pos = semi + 1;\n } while (reader.pos <= length);\n\n return decoded;\n}\n\nfunction sort(line: SourceMapSegment[]) {\n line.sort(sortComparator);\n}\n\nfunction sortComparator(a: SourceMapSegment, b: SourceMapSegment): number {\n return a[0] - b[0];\n}\n\nexport function encode(decoded: SourceMapMappings): string;\nexport function encode(decoded: Readonly): string;\nexport function encode(decoded: Readonly): string {\n const writer = new StringWriter();\n let sourcesIndex = 0;\n let sourceLine = 0;\n let sourceColumn = 0;\n let namesIndex = 0;\n\n for (let i = 0; i < decoded.length; i++) {\n const line = decoded[i];\n if (i > 0) writer.write(semicolon);\n if (line.length === 0) continue;\n\n let genColumn = 0;\n\n for (let j = 0; j < line.length; j++) {\n const segment = line[j];\n if (j > 0) writer.write(comma);\n\n genColumn = encodeInteger(writer, segment[0], genColumn);\n\n if (segment.length === 1) continue;\n sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);\n sourceLine = encodeInteger(writer, segment[2], sourceLine);\n sourceColumn = encodeInteger(writer, segment[3], sourceColumn);\n\n if (segment.length === 4)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AM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC;YAC/D,UAAU,GAAG,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;YAC3D,YAAY,GAAG,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC;YAE/D,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;gBAAE,SAAS;YACnC,UAAU,GAAG,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;SAC5D;KACF;IAED,OAAO,MAAM,CAAC,KAAK,EAAE,CAAC;AACxB;;;;"} \ No newline at end of file diff --git a/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js b/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js deleted file mode 100644 index 93caf176..00000000 --- a/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +++ /dev/null @@ -1,439 +0,0 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : - typeof define === 'function' && define.amd ? define(['exports'], factory) : - (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.sourcemapCodec = {})); -})(this, (function (exports) { 'use strict'; - - const comma = ','.charCodeAt(0); - const semicolon = ';'.charCodeAt(0); - const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; - const intToChar = new Uint8Array(64); // 64 possible chars. - const charToInt = new Uint8Array(128); // z is 122 in ASCII - for (let i = 0; i < chars.length; i++) { - const c = chars.charCodeAt(i); - intToChar[i] = c; - charToInt[c] = i; - } - function decodeInteger(reader, relative) { - let value = 0; - let shift = 0; - let integer = 0; - do { - const c = reader.next(); - integer = charToInt[c]; - value |= (integer & 31) << shift; - shift += 5; - } while (integer & 32); - const shouldNegate = value & 1; - value >>>= 1; - if (shouldNegate) { - value = -0x80000000 | -value; - } - return relative + value; - } - function encodeInteger(builder, num, relative) { - let delta = num - relative; - delta = delta < 0 ? (-delta << 1) | 1 : delta << 1; - do { - let clamped = delta & 0b011111; - delta >>>= 5; - if (delta > 0) - clamped |= 0b100000; - builder.write(intToChar[clamped]); - } while (delta > 0); - return num; - } - function hasMoreVlq(reader, max) { - if (reader.pos >= max) - return false; - return reader.peek() !== comma; - } - - const bufLength = 1024 * 16; - // Provide a fallback for older environments. - const td = typeof TextDecoder !== 'undefined' - ? /* #__PURE__ */ new TextDecoder() - : typeof Buffer !== 'undefined' - ? { - decode(buf) { - const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength); - return out.toString(); - }, - } - : { - decode(buf) { - let out = ''; - for (let i = 0; i < buf.length; i++) { - out += String.fromCharCode(buf[i]); - } - return out; - }, - }; - class StringWriter { - constructor() { - this.pos = 0; - this.out = ''; - this.buffer = new Uint8Array(bufLength); - } - write(v) { - const { buffer } = this; - buffer[this.pos++] = v; - if (this.pos === bufLength) { - this.out += td.decode(buffer); - this.pos = 0; - } - } - flush() { - const { buffer, out, pos } = this; - return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out; - } - } - class StringReader { - constructor(buffer) { - this.pos = 0; - this.buffer = buffer; - } - next() { - return this.buffer.charCodeAt(this.pos++); - } - peek() { - return this.buffer.charCodeAt(this.pos); - } - indexOf(char) { - const { buffer, pos } = this; - const idx = buffer.indexOf(char, pos); - return idx === -1 ? buffer.length : idx; - } - } - - const EMPTY = []; - function decodeOriginalScopes(input) { - const { length } = input; - const reader = new StringReader(input); - const scopes = []; - const stack = []; - let line = 0; - for (; reader.pos < length; reader.pos++) { - line = decodeInteger(reader, line); - const column = decodeInteger(reader, 0); - if (!hasMoreVlq(reader, length)) { - const last = stack.pop(); - last[2] = line; - last[3] = column; - continue; - } - const kind = decodeInteger(reader, 0); - const fields = decodeInteger(reader, 0); - const hasName = fields & 0b0001; - const scope = (hasName ? [line, column, 0, 0, kind, decodeInteger(reader, 0)] : [line, column, 0, 0, kind]); - let vars = EMPTY; - if (hasMoreVlq(reader, length)) { - vars = []; - do { - const varsIndex = decodeInteger(reader, 0); - vars.push(varsIndex); - } while (hasMoreVlq(reader, length)); - } - scope.vars = vars; - scopes.push(scope); - stack.push(scope); - } - return scopes; - } - function encodeOriginalScopes(scopes) { - const writer = new StringWriter(); - for (let i = 0; i < scopes.length;) { - i = _encodeOriginalScopes(scopes, i, writer, [0]); - } - return writer.flush(); - } - function _encodeOriginalScopes(scopes, index, writer, state) { - const scope = scopes[index]; - const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope; - if (index > 0) - writer.write(comma); - state[0] = encodeInteger(writer, startLine, state[0]); - encodeInteger(writer, startColumn, 0); - encodeInteger(writer, kind, 0); - const fields = scope.length === 6 ? 0b0001 : 0; - encodeInteger(writer, fields, 0); - if (scope.length === 6) - encodeInteger(writer, scope[5], 0); - for (const v of vars) { - encodeInteger(writer, v, 0); - } - for (index++; index < scopes.length;) { - const next = scopes[index]; - const { 0: l, 1: c } = next; - if (l > endLine || (l === endLine && c >= endColumn)) { - break; - } - index = _encodeOriginalScopes(scopes, index, writer, state); - } - writer.write(comma); - state[0] = encodeInteger(writer, endLine, state[0]); - encodeInteger(writer, endColumn, 0); - return index; - } - function decodeGeneratedRanges(input) { - const { length } = input; - const reader = new StringReader(input); - const ranges = []; - const stack = []; - let genLine = 0; - let definitionSourcesIndex = 0; - let definitionScopeIndex = 0; - let callsiteSourcesIndex = 0; - let callsiteLine = 0; - let callsiteColumn = 0; - let bindingLine = 0; - let bindingColumn = 0; - do { - const semi = reader.indexOf(';'); - let genColumn = 0; - for (; reader.pos < semi; reader.pos++) { - genColumn = decodeInteger(reader, genColumn); - if (!hasMoreVlq(reader, semi)) { - const last = stack.pop(); - last[2] = genLine; - last[3] = genColumn; - continue; - } - const fields = decodeInteger(reader, 0); - const hasDefinition = fields & 0b0001; - const hasCallsite = fields & 0b0010; - const hasScope = fields & 0b0100; - let callsite = null; - let bindings = EMPTY; - let range; - if (hasDefinition) { - const defSourcesIndex = decodeInteger(reader, definitionSourcesIndex); - definitionScopeIndex = decodeInteger(reader, definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0); - definitionSourcesIndex = defSourcesIndex; - range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex]; - } - else { - range = [genLine, genColumn, 0, 0]; - } - range.isScope = !!hasScope; - if (hasCallsite) { - const prevCsi = callsiteSourcesIndex; - const prevLine = callsiteLine; - callsiteSourcesIndex = decodeInteger(reader, callsiteSourcesIndex); - const sameSource = prevCsi === callsiteSourcesIndex; - callsiteLine = decodeInteger(reader, sameSource ? callsiteLine : 0); - callsiteColumn = decodeInteger(reader, sameSource && prevLine === callsiteLine ? callsiteColumn : 0); - callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn]; - } - range.callsite = callsite; - if (hasMoreVlq(reader, semi)) { - bindings = []; - do { - bindingLine = genLine; - bindingColumn = genColumn; - const expressionsCount = decodeInteger(reader, 0); - let expressionRanges; - if (expressionsCount < -1) { - expressionRanges = [[decodeInteger(reader, 0)]]; - for (let i = -1; i > expressionsCount; i--) { - const prevBl = bindingLine; - bindingLine = decodeInteger(reader, bindingLine); - bindingColumn = decodeInteger(reader, bindingLine === prevBl ? bindingColumn : 0); - const expression = decodeInteger(reader, 0); - expressionRanges.push([expression, bindingLine, bindingColumn]); - } - } - else { - expressionRanges = [[expressionsCount]]; - } - bindings.push(expressionRanges); - } while (hasMoreVlq(reader, semi)); - } - range.bindings = bindings; - ranges.push(range); - stack.push(range); - } - genLine++; - reader.pos = semi + 1; - } while (reader.pos < length); - return ranges; - } - function encodeGeneratedRanges(ranges) { - if (ranges.length === 0) - return ''; - const writer = new StringWriter(); - for (let i = 0; i < ranges.length;) { - i = _encodeGeneratedRanges(ranges, i, writer, [0, 0, 0, 0, 0, 0, 0]); - } - return writer.flush(); - } - function _encodeGeneratedRanges(ranges, index, writer, state) { - const range = ranges[index]; - const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, isScope, callsite, bindings, } = range; - if (state[0] < startLine) { - catchupLine(writer, state[0], startLine); - state[0] = startLine; - state[1] = 0; - } - else if (index > 0) { - writer.write(comma); - } - state[1] = encodeInteger(writer, range[1], state[1]); - const fields = (range.length === 6 ? 0b0001 : 0) | (callsite ? 0b0010 : 0) | (isScope ? 0b0100 : 0); - encodeInteger(writer, fields, 0); - if (range.length === 6) { - const { 4: sourcesIndex, 5: scopesIndex } = range; - if (sourcesIndex !== state[2]) { - state[3] = 0; - } - state[2] = encodeInteger(writer, sourcesIndex, state[2]); - state[3] = encodeInteger(writer, scopesIndex, state[3]); - } - if (callsite) { - const { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite; - if (sourcesIndex !== state[4]) { - state[5] = 0; - state[6] = 0; - } - else if (callLine !== state[5]) { - state[6] = 0; - } - state[4] = encodeInteger(writer, sourcesIndex, state[4]); - state[5] = encodeInteger(writer, callLine, state[5]); - state[6] = encodeInteger(writer, callColumn, state[6]); - } - if (bindings) { - for (const binding of bindings) { - if (binding.length > 1) - encodeInteger(writer, -binding.length, 0); - const expression = binding[0][0]; - encodeInteger(writer, expression, 0); - let bindingStartLine = startLine; - let bindingStartColumn = startColumn; - for (let i = 1; i < binding.length; i++) { - const expRange = binding[i]; - bindingStartLine = encodeInteger(writer, expRange[1], bindingStartLine); - bindingStartColumn = encodeInteger(writer, expRange[2], bindingStartColumn); - encodeInteger(writer, expRange[0], 0); - } - } - } - for (index++; index < ranges.length;) { - const next = ranges[index]; - const { 0: l, 1: c } = next; - if (l > endLine || (l === endLine && c >= endColumn)) { - break; - } - index = _encodeGeneratedRanges(ranges, index, writer, state); - } - if (state[0] < endLine) { - catchupLine(writer, state[0], endLine); - state[0] = endLine; - state[1] = 0; - } - else { - writer.write(comma); - } - state[1] = encodeInteger(writer, endColumn, state[1]); - return index; - } - function catchupLine(writer, lastLine, line) { - do { - writer.write(semicolon); - } while (++lastLine < line); - } - - function decode(mappings) { - const { length } = mappings; - const reader = new StringReader(mappings); - const decoded = []; - let genColumn = 0; - let sourcesIndex = 0; - let sourceLine = 0; - let sourceColumn = 0; - let namesIndex = 0; - do { - const semi = reader.indexOf(';'); - const line = []; - let sorted = true; - let lastCol = 0; - genColumn = 0; - while (reader.pos < semi) { - let seg; - genColumn = decodeInteger(reader, genColumn); - if (genColumn < lastCol) - sorted = false; - lastCol = genColumn; - if (hasMoreVlq(reader, semi)) { - sourcesIndex = decodeInteger(reader, sourcesIndex); - sourceLine = decodeInteger(reader, sourceLine); - sourceColumn = decodeInteger(reader, sourceColumn); - if (hasMoreVlq(reader, semi)) { - namesIndex = decodeInteger(reader, namesIndex); - seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex]; - } - else { - seg = [genColumn, sourcesIndex, sourceLine, sourceColumn]; - } - } - else { - seg = [genColumn]; - } - line.push(seg); - reader.pos++; - } - if (!sorted) - sort(line); - decoded.push(line); - reader.pos = semi + 1; - } while (reader.pos <= length); - return decoded; - } - function sort(line) { - line.sort(sortComparator); - } - function sortComparator(a, b) { - return a[0] - b[0]; - } - function encode(decoded) { - const writer = new StringWriter(); - let sourcesIndex = 0; - let sourceLine = 0; - let sourceColumn = 0; - let namesIndex = 0; - for (let i = 0; i < decoded.length; i++) { - const line = decoded[i]; - if (i > 0) - writer.write(semicolon); - if (line.length === 0) - continue; - let genColumn = 0; - for (let j = 0; j < line.length; j++) { - const segment = line[j]; - if (j > 0) - writer.write(comma); - genColumn = encodeInteger(writer, segment[0], genColumn); - if (segment.length === 1) - continue; - sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex); - sourceLine = encodeInteger(writer, segment[2], sourceLine); - sourceColumn = encodeInteger(writer, segment[3], sourceColumn); - if (segment.length === 4) - continue; - namesIndex = encodeInteger(writer, segment[4], namesIndex); - } - } - return writer.flush(); - } - - exports.decode = decode; - exports.decodeGeneratedRanges = decodeGeneratedRanges; - exports.decodeOriginalScopes = decodeOriginalScopes; - exports.encode = encode; - exports.encodeGeneratedRanges = encodeGeneratedRanges; - exports.encodeOriginalScopes = encodeOriginalScopes; - - Object.defineProperty(exports, '__esModule', { value: true }); - -})); -//# sourceMappingURL=sourcemap-codec.umd.js.map diff --git a/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map b/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map deleted file mode 100644 index 65b36746..00000000 --- a/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sourcemap-codec.umd.js","sources":["../src/vlq.ts","../src/strings.ts","../src/scopes.ts","../src/sourcemap-codec.ts"],"sourcesContent":["import type { StringReader, StringWriter } from './strings';\n\nexport const comma = ','.charCodeAt(0);\nexport const semicolon = ';'.charCodeAt(0);\n\nconst chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\nconst intToChar = new Uint8Array(64); // 64 possible chars.\nconst charToInt = new Uint8Array(128); // z is 122 in ASCII\n\nfor (let i = 0; i < chars.length; i++) {\n const c = chars.charCodeAt(i);\n intToChar[i] = c;\n charToInt[c] = i;\n}\n\nexport function decodeInteger(reader: StringReader, relative: number): number {\n let value = 0;\n let shift = 0;\n let integer = 0;\n\n do {\n const c = reader.next();\n integer = charToInt[c];\n value |= (integer & 31) << shift;\n shift += 5;\n } while (integer & 32);\n\n const shouldNegate = value & 1;\n value >>>= 1;\n\n if (shouldNegate) {\n value = -0x80000000 | -value;\n }\n\n return relative + value;\n}\n\nexport function encodeInteger(builder: StringWriter, num: number, relative: number): number {\n let delta = num - relative;\n\n delta = delta < 0 ? (-delta << 1) | 1 : delta << 1;\n do {\n let clamped = delta & 0b011111;\n delta >>>= 5;\n if (delta > 0) clamped |= 0b100000;\n builder.write(intToChar[clamped]);\n } while (delta > 0);\n\n return num;\n}\n\nexport function hasMoreVlq(reader: StringReader, max: number) {\n if (reader.pos >= max) return false;\n return reader.peek() !== comma;\n}\n","const bufLength = 1024 * 16;\n\n// Provide a fallback for older environments.\nconst td =\n typeof TextDecoder !== 'undefined'\n ? /* #__PURE__ */ new TextDecoder()\n : typeof Buffer !== 'undefined'\n ? {\n decode(buf: Uint8Array): string {\n const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);\n return out.toString();\n },\n }\n : {\n decode(buf: Uint8Array): string {\n let out = '';\n for (let i = 0; i < buf.length; i++) {\n out += String.fromCharCode(buf[i]);\n }\n return out;\n },\n };\n\nexport class StringWriter {\n pos = 0;\n private out = '';\n private buffer = new Uint8Array(bufLength);\n\n write(v: number): void {\n const { buffer } = this;\n buffer[this.pos++] = v;\n if (this.pos === bufLength) {\n this.out += td.decode(buffer);\n this.pos = 0;\n }\n }\n\n flush(): string {\n const { buffer, out, pos } = this;\n return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;\n }\n}\n\nexport class StringReader {\n pos = 0;\n private declare buffer: string;\n\n constructor(buffer: string) {\n this.buffer = buffer;\n }\n\n next(): number {\n return this.buffer.charCodeAt(this.pos++);\n }\n\n peek(): number {\n return this.buffer.charCodeAt(this.pos);\n }\n\n indexOf(char: string): number {\n const { buffer, pos } = this;\n const idx = buffer.indexOf(char, pos);\n return idx === -1 ? buffer.length : idx;\n }\n}\n","import { StringReader, StringWriter } from './strings';\nimport { comma, decodeInteger, encodeInteger, hasMoreVlq, semicolon } from './vlq';\n\nconst EMPTY: any[] = [];\n\ntype Line = number;\ntype Column = number;\ntype Kind = number;\ntype Name = number;\ntype Var = number;\ntype SourcesIndex = number;\ntype ScopesIndex = number;\n\ntype Mix = (A & O) | (B & O);\n\nexport type OriginalScope = Mix<\n [Line, Column, Line, Column, Kind],\n [Line, Column, Line, Column, Kind, Name],\n { vars: Var[] }\n>;\n\nexport type GeneratedRange = Mix<\n [Line, Column, Line, Column],\n [Line, Column, Line, Column, SourcesIndex, ScopesIndex],\n {\n callsite: CallSite | null;\n bindings: Binding[];\n isScope: boolean;\n }\n>;\nexport type CallSite = [SourcesIndex, Line, Column];\ntype Binding = BindingExpressionRange[];\nexport type BindingExpressionRange = [Name] | [Name, Line, Column];\n\nexport function decodeOriginalScopes(input: string): OriginalScope[] {\n const { length } = input;\n const reader = new StringReader(input);\n const scopes: OriginalScope[] = [];\n const stack: OriginalScope[] = [];\n let line = 0;\n\n for (; reader.pos < length; reader.pos++) {\n line = decodeInteger(reader, line);\n const column = decodeInteger(reader, 0);\n\n if (!hasMoreVlq(reader, length)) {\n const last = stack.pop()!;\n last[2] = line;\n last[3] = column;\n continue;\n }\n\n const kind = decodeInteger(reader, 0);\n const fields = decodeInteger(reader, 0);\n const hasName = fields & 0b0001;\n\n const scope: OriginalScope = (\n hasName ? [line, column, 0, 0, kind, decodeInteger(reader, 0)] : [line, column, 0, 0, kind]\n ) as OriginalScope;\n\n let vars: Var[] = EMPTY;\n if (hasMoreVlq(reader, length)) {\n vars = [];\n do {\n const varsIndex = decodeInteger(reader, 0);\n vars.push(varsIndex);\n } while (hasMoreVlq(reader, length));\n }\n scope.vars = vars;\n\n scopes.push(scope);\n stack.push(scope);\n }\n\n return scopes;\n}\n\nexport function encodeOriginalScopes(scopes: OriginalScope[]): string {\n const writer = new StringWriter();\n\n for (let i = 0; i < scopes.length; ) {\n i = _encodeOriginalScopes(scopes, i, writer, [0]);\n }\n\n return writer.flush();\n}\n\nfunction _encodeOriginalScopes(\n scopes: OriginalScope[],\n index: number,\n writer: StringWriter,\n state: [\n number, // GenColumn\n ],\n): number {\n const scope = scopes[index];\n const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope;\n\n if (index > 0) writer.write(comma);\n\n state[0] = encodeInteger(writer, startLine, state[0]);\n encodeInteger(writer, startColumn, 0);\n encodeInteger(writer, kind, 0);\n\n const fields = scope.length === 6 ? 0b0001 : 0;\n encodeInteger(writer, fields, 0);\n if (scope.length === 6) encodeInteger(writer, scope[5], 0);\n\n for (const v of vars) {\n encodeInteger(writer, v, 0);\n }\n\n for (index++; index < scopes.length; ) {\n const next = scopes[index];\n const { 0: l, 1: c } = next;\n if (l > endLine || (l === endLine && c >= endColumn)) {\n break;\n }\n index = _encodeOriginalScopes(scopes, index, writer, state);\n }\n\n writer.write(comma);\n state[0] = encodeInteger(writer, endLine, state[0]);\n encodeInteger(writer, endColumn, 0);\n\n return index;\n}\n\nexport function decodeGeneratedRanges(input: string): GeneratedRange[] {\n const { length } = input;\n const reader = new StringReader(input);\n const ranges: GeneratedRange[] = [];\n const stack: GeneratedRange[] = [];\n\n let genLine = 0;\n let definitionSourcesIndex = 0;\n let definitionScopeIndex = 0;\n let callsiteSourcesIndex = 0;\n let callsiteLine = 0;\n let callsiteColumn = 0;\n let bindingLine = 0;\n let bindingColumn = 0;\n\n do {\n const semi = reader.indexOf(';');\n let genColumn = 0;\n\n for (; reader.pos < semi; reader.pos++) {\n genColumn = decodeInteger(reader, genColumn);\n\n if (!hasMoreVlq(reader, semi)) {\n const last = stack.pop()!;\n last[2] = genLine;\n last[3] = genColumn;\n continue;\n }\n\n const fields = decodeInteger(reader, 0);\n const hasDefinition = fields & 0b0001;\n const hasCallsite = fields & 0b0010;\n const hasScope = fields & 0b0100;\n\n let callsite: CallSite | null = null;\n let bindings: Binding[] = EMPTY;\n let range: GeneratedRange;\n if (hasDefinition) {\n const defSourcesIndex = decodeInteger(reader, definitionSourcesIndex);\n definitionScopeIndex = decodeInteger(\n reader,\n definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0,\n );\n\n definitionSourcesIndex = defSourcesIndex;\n range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex] as GeneratedRange;\n } else {\n range = [genLine, genColumn, 0, 0] as GeneratedRange;\n }\n\n range.isScope = !!hasScope;\n\n if (hasCallsite) {\n const prevCsi = callsiteSourcesIndex;\n const prevLine = callsiteLine;\n callsiteSourcesIndex = decodeInteger(reader, callsiteSourcesIndex);\n const sameSource = prevCsi === callsiteSourcesIndex;\n callsiteLine = decodeInteger(reader, sameSource ? callsiteLine : 0);\n callsiteColumn = decodeInteger(\n reader,\n sameSource && prevLine === callsiteLine ? callsiteColumn : 0,\n );\n\n callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn];\n }\n range.callsite = callsite;\n\n if (hasMoreVlq(reader, semi)) {\n bindings = [];\n do {\n bindingLine = genLine;\n bindingColumn = genColumn;\n const expressionsCount = decodeInteger(reader, 0);\n let expressionRanges: BindingExpressionRange[];\n if (expressionsCount < -1) {\n expressionRanges = [[decodeInteger(reader, 0)]];\n for (let i = -1; i > expressionsCount; i--) {\n const prevBl = bindingLine;\n bindingLine = decodeInteger(reader, bindingLine);\n bindingColumn = decodeInteger(reader, bindingLine === prevBl ? bindingColumn : 0);\n const expression = decodeInteger(reader, 0);\n expressionRanges.push([expression, bindingLine, bindingColumn]);\n }\n } else {\n expressionRanges = [[expressionsCount]];\n }\n bindings.push(expressionRanges);\n } while (hasMoreVlq(reader, semi));\n }\n range.bindings = bindings;\n\n ranges.push(range);\n stack.push(range);\n }\n\n genLine++;\n reader.pos = semi + 1;\n } while (reader.pos < length);\n\n return ranges;\n}\n\nexport function encodeGeneratedRanges(ranges: GeneratedRange[]): string {\n if (ranges.length === 0) return '';\n\n const writer = new StringWriter();\n\n for (let i = 0; i < ranges.length; ) {\n i = _encodeGeneratedRanges(ranges, i, writer, [0, 0, 0, 0, 0, 0, 0]);\n }\n\n return writer.flush();\n}\n\nfunction _encodeGeneratedRanges(\n ranges: GeneratedRange[],\n index: number,\n writer: StringWriter,\n state: [\n number, // GenLine\n number, // GenColumn\n number, // DefSourcesIndex\n number, // DefScopesIndex\n number, // CallSourcesIndex\n number, // CallLine\n number, // CallColumn\n ],\n): number {\n const range = ranges[index];\n const {\n 0: startLine,\n 1: startColumn,\n 2: endLine,\n 3: endColumn,\n isScope,\n callsite,\n bindings,\n } = range;\n\n if (state[0] < startLine) {\n catchupLine(writer, state[0], startLine);\n state[0] = startLine;\n state[1] = 0;\n } else if (index > 0) {\n writer.write(comma);\n }\n\n state[1] = encodeInteger(writer, range[1], state[1]);\n\n const fields =\n (range.length === 6 ? 0b0001 : 0) | (callsite ? 0b0010 : 0) | (isScope ? 0b0100 : 0);\n encodeInteger(writer, fields, 0);\n\n if (range.length === 6) {\n const { 4: sourcesIndex, 5: scopesIndex } = range;\n if (sourcesIndex !== state[2]) {\n state[3] = 0;\n }\n state[2] = encodeInteger(writer, sourcesIndex, state[2]);\n state[3] = encodeInteger(writer, scopesIndex, state[3]);\n }\n\n if (callsite) {\n const { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite!;\n if (sourcesIndex !== state[4]) {\n state[5] = 0;\n state[6] = 0;\n } else if (callLine !== state[5]) {\n state[6] = 0;\n }\n state[4] = encodeInteger(writer, sourcesIndex, state[4]);\n state[5] = encodeInteger(writer, callLine, state[5]);\n state[6] = encodeInteger(writer, callColumn, state[6]);\n }\n\n if (bindings) {\n for (const binding of bindings) {\n if (binding.length > 1) encodeInteger(writer, -binding.length, 0);\n const expression = binding[0][0];\n encodeInteger(writer, expression, 0);\n let bindingStartLine = startLine;\n let bindingStartColumn = startColumn;\n for (let i = 1; i < binding.length; i++) {\n const expRange = binding[i];\n bindingStartLine = encodeInteger(writer, expRange[1]!, bindingStartLine);\n bindingStartColumn = encodeInteger(writer, expRange[2]!, bindingStartColumn);\n encodeInteger(writer, expRange[0]!, 0);\n }\n }\n }\n\n for (index++; index < ranges.length; ) {\n const next = ranges[index];\n const { 0: l, 1: c } = next;\n if (l > endLine || (l === endLine && c >= endColumn)) {\n break;\n }\n index = _encodeGeneratedRanges(ranges, index, writer, state);\n }\n\n if (state[0] < endLine) {\n catchupLine(writer, state[0], endLine);\n state[0] = endLine;\n state[1] = 0;\n } else {\n writer.write(comma);\n }\n state[1] = encodeInteger(writer, endColumn, state[1]);\n\n return index;\n}\n\nfunction catchupLine(writer: StringWriter, lastLine: number, line: number) {\n do {\n writer.write(semicolon);\n } while (++lastLine < line);\n}\n","import { comma, decodeInteger, encodeInteger, hasMoreVlq, semicolon } from './vlq';\nimport { StringWriter, StringReader } from './strings';\n\nexport {\n decodeOriginalScopes,\n encodeOriginalScopes,\n decodeGeneratedRanges,\n encodeGeneratedRanges,\n} from './scopes';\nexport type { OriginalScope, GeneratedRange, CallSite, BindingExpressionRange } from './scopes';\n\nexport type SourceMapSegment =\n | [number]\n | [number, number, number, number]\n | [number, number, number, number, number];\nexport type SourceMapLine = SourceMapSegment[];\nexport type SourceMapMappings = SourceMapLine[];\n\nexport function decode(mappings: string): SourceMapMappings {\n const { length } = mappings;\n const reader = new StringReader(mappings);\n const decoded: SourceMapMappings = [];\n let genColumn = 0;\n let sourcesIndex = 0;\n let sourceLine = 0;\n let sourceColumn = 0;\n let namesIndex = 0;\n\n do {\n const semi = reader.indexOf(';');\n const line: SourceMapLine = [];\n let sorted = true;\n let lastCol = 0;\n genColumn = 0;\n\n while (reader.pos < semi) {\n let seg: SourceMapSegment;\n\n genColumn = decodeInteger(reader, genColumn);\n if (genColumn < lastCol) sorted = false;\n lastCol = genColumn;\n\n if (hasMoreVlq(reader, semi)) {\n sourcesIndex = decodeInteger(reader, sourcesIndex);\n sourceLine = decodeInteger(reader, sourceLine);\n sourceColumn = decodeInteger(reader, sourceColumn);\n\n if (hasMoreVlq(reader, semi)) {\n namesIndex = decodeInteger(reader, namesIndex);\n seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];\n } else {\n seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];\n }\n } else {\n seg = [genColumn];\n }\n\n line.push(seg);\n reader.pos++;\n }\n\n if (!sorted) sort(line);\n decoded.push(line);\n reader.pos = semi + 1;\n } while (reader.pos <= length);\n\n return decoded;\n}\n\nfunction sort(line: SourceMapSegment[]) {\n line.sort(sortComparator);\n}\n\nfunction sortComparator(a: SourceMapSegment, b: SourceMapSegment): number {\n return a[0] - b[0];\n}\n\nexport function encode(decoded: SourceMapMappings): string;\nexport function encode(decoded: Readonly): string;\nexport function encode(decoded: Readonly): string {\n const writer = new StringWriter();\n let sourcesIndex = 0;\n let sourceLine = 0;\n let sourceColumn = 0;\n let namesIndex = 0;\n\n for (let i = 0; i < decoded.length; i++) {\n const line = decoded[i];\n if (i > 0) writer.write(semicolon);\n if (line.length === 0) continue;\n\n let genColumn = 0;\n\n for (let j = 0; j < line.length; j++) {\n const segment = line[j];\n if (j > 0) writer.write(comma);\n\n genColumn = encodeInteger(writer, segment[0], genColumn);\n\n if (segment.length === 1) continue;\n sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);\n sourceLine = encodeInteger(writer, segment[2], sourceLine);\n sourceColumn = encodeInteger(writer, segment[3], sourceColumn);\n\n if (segment.length === 4) continue;\n namesIndex = encodeInteger(writer, segment[4], namesIndex);\n }\n }\n\n return writer.flush();\n}\n"],"names":[],"mappings":";;;;;;IAEO,MAAM,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAChC,MAAM,SAAS,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAE3C,MAAM,KAAK,GAAG,kEAAkE,CAAC;IACjF,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;IACrC,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC;IAEtC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACrC,MAAM,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAC9B,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QACjB,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;KAClB;aAEe,aAAa,CAAC,MAAoB,EAAE,QAAgB;QAClE,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,IAAI,OAAO,GAA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AC,KAAK,CAAC,SAAS,CAAC,CAAC;YACnC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;gBAAE,SAAS;YAEhC,IAAI,SAAS,GAAG,CAAC,CAAC;YAElB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACpC,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;gBACxB,IAAI,CAAC,GAAG,CAAC;oBAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBAE/B,SAAS,GAAG,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;gBAEzD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;oBAAE,SAAS;gBACnC,YAAY,GAAG,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC;gBAC/D,UAAU,GAAG,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;gBAC3D,YAAY,GAAG,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC;gBAE/D,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;oBAAE,SAAS;gBACnC,UAAU,GAAG,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;aAC5D;SACF;QAED,OAAO,MAAM,CAAC,KAAK,EAAE,CAAC;IACxB;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts b/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts deleted file mode 100644 index d156fabd..00000000 --- a/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -declare type Line = number; -declare type Column = number; -declare type Kind = number; -declare type Name = number; -declare type Var = number; -declare type SourcesIndex = number; -declare type ScopesIndex = number; -declare type Mix = (A & O) | (B & O); -export declare type OriginalScope = Mix<[ - Line, - Column, - Line, - Column, - Kind -], [ - Line, - Column, - Line, - Column, - Kind, - Name -], { - vars: Var[]; -}>; -export declare type GeneratedRange = Mix<[ - Line, - Column, - Line, - Column -], [ - Line, - Column, - Line, - Column, - SourcesIndex, - ScopesIndex -], { - callsite: CallSite | null; - bindings: Binding[]; - isScope: boolean; -}>; -export declare type CallSite = [SourcesIndex, Line, Column]; -declare type Binding = BindingExpressionRange[]; -export declare type BindingExpressionRange = [Name] | [Name, Line, Column]; -export declare function decodeOriginalScopes(input: string): OriginalScope[]; -export declare function encodeOriginalScopes(scopes: OriginalScope[]): string; -export declare function decodeGeneratedRanges(input: string): GeneratedRange[]; -export declare function encodeGeneratedRanges(ranges: GeneratedRange[]): string; -export {}; diff --git a/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts b/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts deleted file mode 100644 index 336e658f..00000000 --- a/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export { decodeOriginalScopes, encodeOriginalScopes, decodeGeneratedRanges, encodeGeneratedRanges, } from './scopes'; -export type { OriginalScope, GeneratedRange, CallSite, BindingExpressionRange } from './scopes'; -export declare type SourceMapSegment = [number] | [number, number, number, number] | [number, number, number, number, number]; -export declare type SourceMapLine = SourceMapSegment[]; -export declare type SourceMapMappings = SourceMapLine[]; -export declare function decode(mappings: string): SourceMapMappings; -export declare function encode(decoded: SourceMapMappings): string; -export declare function encode(decoded: Readonly): string; diff --git a/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts b/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts deleted file mode 100644 index 78bd88eb..00000000 --- a/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -export declare class StringWriter { - pos: number; - private out; - private buffer; - write(v: number): void; - flush(): string; -} -export declare class StringReader { - pos: number; - private buffer; - constructor(buffer: string); - next(): number; - peek(): number; - indexOf(char: string): number; -} diff --git a/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts b/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts deleted file mode 100644 index 450ee572..00000000 --- a/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { StringReader, StringWriter } from './strings'; -export declare const comma: number; -export declare const semicolon: number; -export declare function decodeInteger(reader: StringReader, relative: number): number; -export declare function encodeInteger(builder: StringWriter, num: number, relative: number): number; -export declare function hasMoreVlq(reader: StringReader, max: number): boolean; diff --git a/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs b/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs deleted file mode 100644 index 8238e0ae..00000000 --- a/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +++ /dev/null @@ -1,580 +0,0 @@ -import { encode, decode } from '@jridgewell/sourcemap-codec'; -import resolveUri from '@jridgewell/resolve-uri'; - -function resolve(input, base) { - // The base is always treated as a directory, if it's not empty. - // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327 - // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401 - if (base && !base.endsWith('/')) - base += '/'; - return resolveUri(input, base); -} - -/** - * Removes everything after the last "/", but leaves the slash. - */ -function stripFilename(path) { - if (!path) - return ''; - const index = path.lastIndexOf('/'); - return path.slice(0, index + 1); -} - -const COLUMN = 0; -const SOURCES_INDEX = 1; -const SOURCE_LINE = 2; -const SOURCE_COLUMN = 3; -const NAMES_INDEX = 4; -const REV_GENERATED_LINE = 1; -const REV_GENERATED_COLUMN = 2; - -function maybeSort(mappings, owned) { - const unsortedIndex = nextUnsortedSegmentLine(mappings, 0); - if (unsortedIndex === mappings.length) - return mappings; - // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If - // not, we do not want to modify the consumer's input array. - if (!owned) - mappings = mappings.slice(); - for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) { - mappings[i] = sortSegments(mappings[i], owned); - } - return mappings; -} -function nextUnsortedSegmentLine(mappings, start) { - for (let i = start; i < mappings.length; i++) { - if (!isSorted(mappings[i])) - return i; - } - return mappings.length; -} -function isSorted(line) { - for (let j = 1; j < line.length; j++) { - if (line[j][COLUMN] < line[j - 1][COLUMN]) { - return false; - } - } - return true; -} -function sortSegments(line, owned) { - if (!owned) - line = line.slice(); - return line.sort(sortComparator); -} -function sortComparator(a, b) { - return a[COLUMN] - b[COLUMN]; -} - -let found = false; -/** - * A binary search implementation that returns the index if a match is found. - * If no match is found, then the left-index (the index associated with the item that comes just - * before the desired index) is returned. To maintain proper sort order, a splice would happen at - * the next index: - * - * ```js - * const array = [1, 3]; - * const needle = 2; - * const index = binarySearch(array, needle, (item, needle) => item - needle); - * - * assert.equal(index, 0); - * array.splice(index + 1, 0, needle); - * assert.deepEqual(array, [1, 2, 3]); - * ``` - */ -function binarySearch(haystack, needle, low, high) { - while (low <= high) { - const mid = low + ((high - low) >> 1); - const cmp = haystack[mid][COLUMN] - needle; - if (cmp === 0) { - found = true; - return mid; - } - if (cmp < 0) { - low = mid + 1; - } - else { - high = mid - 1; - } - } - found = false; - return low - 1; -} -function upperBound(haystack, needle, index) { - for (let i = index + 1; i < haystack.length; index = i++) { - if (haystack[i][COLUMN] !== needle) - break; - } - return index; -} -function lowerBound(haystack, needle, index) { - for (let i = index - 1; i >= 0; index = i--) { - if (haystack[i][COLUMN] !== needle) - break; - } - return index; -} -function memoizedState() { - return { - lastKey: -1, - lastNeedle: -1, - lastIndex: -1, - }; -} -/** - * This overly complicated beast is just to record the last tested line/column and the resulting - * index, allowing us to skip a few tests if mappings are monotonically increasing. - */ -function memoizedBinarySearch(haystack, needle, state, key) { - const { lastKey, lastNeedle, lastIndex } = state; - let low = 0; - let high = haystack.length - 1; - if (key === lastKey) { - if (needle === lastNeedle) { - found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle; - return lastIndex; - } - if (needle >= lastNeedle) { - // lastIndex may be -1 if the previous needle was not found. - low = lastIndex === -1 ? 0 : lastIndex; - } - else { - high = lastIndex; - } - } - state.lastKey = key; - state.lastNeedle = needle; - return (state.lastIndex = binarySearch(haystack, needle, low, high)); -} - -// Rebuilds the original source files, with mappings that are ordered by source line/column instead -// of generated line/column. -function buildBySources(decoded, memos) { - const sources = memos.map(buildNullArray); - for (let i = 0; i < decoded.length; i++) { - const line = decoded[i]; - for (let j = 0; j < line.length; j++) { - const seg = line[j]; - if (seg.length === 1) - continue; - const sourceIndex = seg[SOURCES_INDEX]; - const sourceLine = seg[SOURCE_LINE]; - const sourceColumn = seg[SOURCE_COLUMN]; - const originalSource = sources[sourceIndex]; - const originalLine = (originalSource[sourceLine] || (originalSource[sourceLine] = [])); - const memo = memos[sourceIndex]; - // The binary search either found a match, or it found the left-index just before where the - // segment should go. Either way, we want to insert after that. And there may be multiple - // generated segments associated with an original location, so there may need to move several - // indexes before we find where we need to insert. - let index = upperBound(originalLine, sourceColumn, memoizedBinarySearch(originalLine, sourceColumn, memo, sourceLine)); - memo.lastIndex = ++index; - insert(originalLine, index, [sourceColumn, i, seg[COLUMN]]); - } - } - return sources; -} -function insert(array, index, value) { - for (let i = array.length; i > index; i--) { - array[i] = array[i - 1]; - } - array[index] = value; -} -// Null arrays allow us to use ordered index keys without actually allocating contiguous memory like -// a real array. We use a null-prototype object to avoid prototype pollution and deoptimizations. -// Numeric properties on objects are magically sorted in ascending order by the engine regardless of -// the insertion order. So, by setting any numeric keys, even out of order, we'll get ascending -// order when iterating with for-in. -function buildNullArray() { - return { __proto__: null }; -} - -const AnyMap = function (map, mapUrl) { - const parsed = parse(map); - if (!('sections' in parsed)) { - return new TraceMap(parsed, mapUrl); - } - const mappings = []; - const sources = []; - const sourcesContent = []; - const names = []; - const ignoreList = []; - recurse(parsed, mapUrl, mappings, sources, sourcesContent, names, ignoreList, 0, 0, Infinity, Infinity); - const joined = { - version: 3, - file: parsed.file, - names, - sources, - sourcesContent, - mappings, - ignoreList, - }; - return presortedDecodedMap(joined); -}; -function parse(map) { - return typeof map === 'string' ? JSON.parse(map) : map; -} -function recurse(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) { - const { sections } = input; - for (let i = 0; i < sections.length; i++) { - const { map, offset } = sections[i]; - let sl = stopLine; - let sc = stopColumn; - if (i + 1 < sections.length) { - const nextOffset = sections[i + 1].offset; - sl = Math.min(stopLine, lineOffset + nextOffset.line); - if (sl === stopLine) { - sc = Math.min(stopColumn, columnOffset + nextOffset.column); - } - else if (sl < stopLine) { - sc = columnOffset + nextOffset.column; - } - } - addSection(map, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset + offset.line, columnOffset + offset.column, sl, sc); - } -} -function addSection(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) { - const parsed = parse(input); - if ('sections' in parsed) - return recurse(...arguments); - const map = new TraceMap(parsed, mapUrl); - const sourcesOffset = sources.length; - const namesOffset = names.length; - const decoded = decodedMappings(map); - const { resolvedSources, sourcesContent: contents, ignoreList: ignores } = map; - append(sources, resolvedSources); - append(names, map.names); - if (contents) - append(sourcesContent, contents); - else - for (let i = 0; i < resolvedSources.length; i++) - sourcesContent.push(null); - if (ignores) - for (let i = 0; i < ignores.length; i++) - ignoreList.push(ignores[i] + sourcesOffset); - for (let i = 0; i < decoded.length; i++) { - const lineI = lineOffset + i; - // We can only add so many lines before we step into the range that the next section's map - // controls. When we get to the last line, then we'll start checking the segments to see if - // they've crossed into the column range. But it may not have any columns that overstep, so we - // still need to check that we don't overstep lines, too. - if (lineI > stopLine) - return; - // The out line may already exist in mappings (if we're continuing the line started by a - // previous section). Or, we may have jumped ahead several lines to start this section. - const out = getLine(mappings, lineI); - // On the 0th loop, the section's column offset shifts us forward. On all other lines (since the - // map can be multiple lines), it doesn't. - const cOffset = i === 0 ? columnOffset : 0; - const line = decoded[i]; - for (let j = 0; j < line.length; j++) { - const seg = line[j]; - const column = cOffset + seg[COLUMN]; - // If this segment steps into the column range that the next section's map controls, we need - // to stop early. - if (lineI === stopLine && column >= stopColumn) - return; - if (seg.length === 1) { - out.push([column]); - continue; - } - const sourcesIndex = sourcesOffset + seg[SOURCES_INDEX]; - const sourceLine = seg[SOURCE_LINE]; - const sourceColumn = seg[SOURCE_COLUMN]; - out.push(seg.length === 4 - ? [column, sourcesIndex, sourceLine, sourceColumn] - : [column, sourcesIndex, sourceLine, sourceColumn, namesOffset + seg[NAMES_INDEX]]); - } - } -} -function append(arr, other) { - for (let i = 0; i < other.length; i++) - arr.push(other[i]); -} -function getLine(arr, index) { - for (let i = arr.length; i <= index; i++) - arr[i] = []; - return arr[index]; -} - -const LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)'; -const COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)'; -const LEAST_UPPER_BOUND = -1; -const GREATEST_LOWER_BOUND = 1; -class TraceMap { - constructor(map, mapUrl) { - const isString = typeof map === 'string'; - if (!isString && map._decodedMemo) - return map; - const parsed = (isString ? JSON.parse(map) : map); - const { version, file, names, sourceRoot, sources, sourcesContent } = parsed; - this.version = version; - this.file = file; - this.names = names || []; - this.sourceRoot = sourceRoot; - this.sources = sources; - this.sourcesContent = sourcesContent; - this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || undefined; - const from = resolve(sourceRoot || '', stripFilename(mapUrl)); - this.resolvedSources = sources.map((s) => resolve(s || '', from)); - const { mappings } = parsed; - if (typeof mappings === 'string') { - this._encoded = mappings; - this._decoded = undefined; - } - else { - this._encoded = undefined; - this._decoded = maybeSort(mappings, isString); - } - this._decodedMemo = memoizedState(); - this._bySources = undefined; - this._bySourceMemos = undefined; - } -} -/** - * Typescript doesn't allow friend access to private fields, so this just casts the map into a type - * with public access modifiers. - */ -function cast(map) { - return map; -} -/** - * Returns the encoded (VLQ string) form of the SourceMap's mappings field. - */ -function encodedMappings(map) { - var _a; - var _b; - return ((_a = (_b = cast(map))._encoded) !== null && _a !== void 0 ? _a : (_b._encoded = encode(cast(map)._decoded))); -} -/** - * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field. - */ -function decodedMappings(map) { - var _a; - return ((_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded))); -} -/** - * A low-level API to find the segment associated with a generated line/column (think, from a - * stack trace). Line and column here are 0-based, unlike `originalPositionFor`. - */ -function traceSegment(map, line, column) { - const decoded = decodedMappings(map); - // It's common for parent source maps to have pointers to lines that have no - // mapping (like a "//# sourceMappingURL=") at the end of the child file. - if (line >= decoded.length) - return null; - const segments = decoded[line]; - const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, GREATEST_LOWER_BOUND); - return index === -1 ? null : segments[index]; -} -/** - * A higher-level API to find the source/line/column associated with a generated line/column - * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in - * `source-map` library. - */ -function originalPositionFor(map, needle) { - let { line, column, bias } = needle; - line--; - if (line < 0) - throw new Error(LINE_GTR_ZERO); - if (column < 0) - throw new Error(COL_GTR_EQ_ZERO); - const decoded = decodedMappings(map); - // It's common for parent source maps to have pointers to lines that have no - // mapping (like a "//# sourceMappingURL=") at the end of the child file. - if (line >= decoded.length) - return OMapping(null, null, null, null); - const segments = decoded[line]; - const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND); - if (index === -1) - return OMapping(null, null, null, null); - const segment = segments[index]; - if (segment.length === 1) - return OMapping(null, null, null, null); - const { names, resolvedSources } = map; - return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null); -} -/** - * Finds the generated line/column position of the provided source/line/column source position. - */ -function generatedPositionFor(map, needle) { - const { source, line, column, bias } = needle; - return generatedPosition(map, source, line, column, bias || GREATEST_LOWER_BOUND, false); -} -/** - * Finds all generated line/column positions of the provided source/line/column source position. - */ -function allGeneratedPositionsFor(map, needle) { - const { source, line, column, bias } = needle; - // SourceMapConsumer uses LEAST_UPPER_BOUND for some reason, so we follow suit. - return generatedPosition(map, source, line, column, bias || LEAST_UPPER_BOUND, true); -} -/** - * Iterates each mapping in generated position order. - */ -function eachMapping(map, cb) { - const decoded = decodedMappings(map); - const { names, resolvedSources } = map; - for (let i = 0; i < decoded.length; i++) { - const line = decoded[i]; - for (let j = 0; j < line.length; j++) { - const seg = line[j]; - const generatedLine = i + 1; - const generatedColumn = seg[0]; - let source = null; - let originalLine = null; - let originalColumn = null; - let name = null; - if (seg.length !== 1) { - source = resolvedSources[seg[1]]; - originalLine = seg[2] + 1; - originalColumn = seg[3]; - } - if (seg.length === 5) - name = names[seg[4]]; - cb({ - generatedLine, - generatedColumn, - source, - originalLine, - originalColumn, - name, - }); - } - } -} -function sourceIndex(map, source) { - const { sources, resolvedSources } = map; - let index = sources.indexOf(source); - if (index === -1) - index = resolvedSources.indexOf(source); - return index; -} -/** - * Retrieves the source content for a particular source, if its found. Returns null if not. - */ -function sourceContentFor(map, source) { - const { sourcesContent } = map; - if (sourcesContent == null) - return null; - const index = sourceIndex(map, source); - return index === -1 ? null : sourcesContent[index]; -} -/** - * Determines if the source is marked to ignore by the source map. - */ -function isIgnored(map, source) { - const { ignoreList } = map; - if (ignoreList == null) - return false; - const index = sourceIndex(map, source); - return index === -1 ? false : ignoreList.includes(index); -} -/** - * A helper that skips sorting of the input map's mappings array, which can be expensive for larger - * maps. - */ -function presortedDecodedMap(map, mapUrl) { - const tracer = new TraceMap(clone(map, []), mapUrl); - cast(tracer)._decoded = map.mappings; - return tracer; -} -/** - * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ -function decodedMap(map) { - return clone(map, decodedMappings(map)); -} -/** - * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ -function encodedMap(map) { - return clone(map, encodedMappings(map)); -} -function clone(map, mappings) { - return { - version: map.version, - file: map.file, - names: map.names, - sourceRoot: map.sourceRoot, - sources: map.sources, - sourcesContent: map.sourcesContent, - mappings, - ignoreList: map.ignoreList || map.x_google_ignoreList, - }; -} -function OMapping(source, line, column, name) { - return { source, line, column, name }; -} -function GMapping(line, column) { - return { line, column }; -} -function traceSegmentInternal(segments, memo, line, column, bias) { - let index = memoizedBinarySearch(segments, column, memo, line); - if (found) { - index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index); - } - else if (bias === LEAST_UPPER_BOUND) - index++; - if (index === -1 || index === segments.length) - return -1; - return index; -} -function sliceGeneratedPositions(segments, memo, line, column, bias) { - let min = traceSegmentInternal(segments, memo, line, column, GREATEST_LOWER_BOUND); - // We ignored the bias when tracing the segment so that we're guarnateed to find the first (in - // insertion order) segment that matched. Even if we did respect the bias when tracing, we would - // still need to call `lowerBound()` to find the first segment, which is slower than just looking - // for the GREATEST_LOWER_BOUND to begin with. The only difference that matters for us is when the - // binary search didn't match, in which case GREATEST_LOWER_BOUND just needs to increment to - // match LEAST_UPPER_BOUND. - if (!found && bias === LEAST_UPPER_BOUND) - min++; - if (min === -1 || min === segments.length) - return []; - // We may have found the segment that started at an earlier column. If this is the case, then we - // need to slice all generated segments that match _that_ column, because all such segments span - // to our desired column. - const matchedColumn = found ? column : segments[min][COLUMN]; - // The binary search is not guaranteed to find the lower bound when a match wasn't found. - if (!found) - min = lowerBound(segments, matchedColumn, min); - const max = upperBound(segments, matchedColumn, min); - const result = []; - for (; min <= max; min++) { - const segment = segments[min]; - result.push(GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN])); - } - return result; -} -function generatedPosition(map, source, line, column, bias, all) { - var _a; - line--; - if (line < 0) - throw new Error(LINE_GTR_ZERO); - if (column < 0) - throw new Error(COL_GTR_EQ_ZERO); - const { sources, resolvedSources } = map; - let sourceIndex = sources.indexOf(source); - if (sourceIndex === -1) - sourceIndex = resolvedSources.indexOf(source); - if (sourceIndex === -1) - return all ? [] : GMapping(null, null); - const generated = ((_a = cast(map))._bySources || (_a._bySources = buildBySources(decodedMappings(map), (cast(map)._bySourceMemos = sources.map(memoizedState))))); - const segments = generated[sourceIndex][line]; - if (segments == null) - return all ? [] : GMapping(null, null); - const memo = cast(map)._bySourceMemos[sourceIndex]; - if (all) - return sliceGeneratedPositions(segments, memo, line, column, bias); - const index = traceSegmentInternal(segments, memo, line, column, bias); - if (index === -1) - return GMapping(null, null); - const segment = segments[index]; - return GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]); -} - -export { AnyMap, GREATEST_LOWER_BOUND, LEAST_UPPER_BOUND, TraceMap, allGeneratedPositionsFor, decodedMap, decodedMappings, eachMapping, encodedMap, encodedMappings, generatedPositionFor, isIgnored, originalPositionFor, presortedDecodedMap, sourceContentFor, traceSegment }; -//# sourceMappingURL=trace-mapping.mjs.map diff --git a/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map b/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map deleted file mode 100644 index 016e4ee4..00000000 --- a/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"trace-mapping.mjs","sources":["../src/resolve.ts","../src/strip-filename.ts","../src/sourcemap-segment.ts","../src/sort.ts","../src/binary-search.ts","../src/by-source.ts","../src/any-map.ts","../src/trace-mapping.ts"],"sourcesContent":["import resolveUri from '@jridgewell/resolve-uri';\n\nexport default function resolve(input: string, base: string | undefined): string {\n // The base is always treated as a directory, if it's not empty.\n // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327\n // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401\n if (base && !base.endsWith('/')) base += '/';\n\n return resolveUri(input, base);\n}\n","/**\n * Removes everything after the last \"/\", but leaves the slash.\n */\nexport default function stripFilename(path: string | undefined | null): string {\n if (!path) return '';\n const index = path.lastIndexOf('/');\n return path.slice(0, index + 1);\n}\n","type GeneratedColumn = number;\ntype SourcesIndex = number;\ntype SourceLine = number;\ntype SourceColumn = number;\ntype NamesIndex = number;\n\ntype GeneratedLine = number;\n\nexport type SourceMapSegment =\n | [GeneratedColumn]\n | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn]\n | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];\n\nexport type ReverseSegment = [SourceColumn, GeneratedLine, GeneratedColumn];\n\nexport const COLUMN = 0;\nexport const SOURCES_INDEX = 1;\nexport const SOURCE_LINE = 2;\nexport const SOURCE_COLUMN = 3;\nexport const NAMES_INDEX = 4;\n\nexport const REV_GENERATED_LINE = 1;\nexport const REV_GENERATED_COLUMN = 2;\n","import { COLUMN } from './sourcemap-segment';\n\nimport type { SourceMapSegment } from './sourcemap-segment';\n\nexport default function maybeSort(\n mappings: SourceMapSegment[][],\n owned: boolean,\n): SourceMapSegment[][] {\n const unsortedIndex = nextUnsortedSegmentLine(mappings, 0);\n if (unsortedIndex === mappings.length) return mappings;\n\n // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If\n // not, we do not want to modify the consumer's input array.\n if (!owned) mappings = mappings.slice();\n\n for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) {\n mappings[i] = sortSegments(mappings[i], owned);\n }\n return mappings;\n}\n\nfunction nextUnsortedSegmentLine(mappings: SourceMapSegment[][], start: number): number {\n for (let i = start; i < mappings.length; i++) {\n if (!isSorted(mappings[i])) return i;\n }\n return mappings.length;\n}\n\nfunction isSorted(line: SourceMapSegment[]): boolean {\n for (let j = 1; j < line.length; j++) {\n if (line[j][COLUMN] < line[j - 1][COLUMN]) {\n return false;\n }\n }\n return true;\n}\n\nfunction sortSegments(line: SourceMapSegment[], owned: boolean): SourceMapSegment[] {\n if (!owned) line = line.slice();\n return line.sort(sortComparator);\n}\n\nfunction sortComparator(a: SourceMapSegment, b: SourceMapSegment): number {\n return a[COLUMN] - b[COLUMN];\n}\n","import type { SourceMapSegment, ReverseSegment } from './sourcemap-segment';\nimport { COLUMN } from './sourcemap-segment';\n\nexport type MemoState = {\n lastKey: number;\n lastNeedle: number;\n lastIndex: number;\n};\n\nexport let found = false;\n\n/**\n * A binary search implementation that returns the index if a match is found.\n * If no match is found, then the left-index (the index associated with the item that comes just\n * before the desired index) is returned. To maintain proper sort order, a splice would happen at\n * the next index:\n *\n * ```js\n * const array = [1, 3];\n * const needle = 2;\n * const index = binarySearch(array, needle, (item, needle) => item - needle);\n *\n * assert.equal(index, 0);\n * array.splice(index + 1, 0, needle);\n * assert.deepEqual(array, [1, 2, 3]);\n * ```\n */\nexport function binarySearch(\n haystack: SourceMapSegment[] | ReverseSegment[],\n needle: number,\n low: number,\n high: number,\n): number {\n while (low <= high) {\n const mid = low + ((high - low) >> 1);\n const cmp = haystack[mid][COLUMN] - needle;\n\n if (cmp === 0) {\n found = true;\n return mid;\n }\n\n if (cmp < 0) {\n low = mid + 1;\n } else {\n high = mid - 1;\n }\n }\n\n found = false;\n return low - 1;\n}\n\nexport function upperBound(\n haystack: SourceMapSegment[] | ReverseSegment[],\n needle: number,\n index: number,\n): number {\n for (let i = index + 1; i < haystack.length; index = i++) {\n if (haystack[i][COLUMN] !== needle) break;\n }\n return index;\n}\n\nexport function lowerBound(\n haystack: SourceMapSegment[] | ReverseSegment[],\n needle: number,\n index: number,\n): number {\n for (let i = index - 1; i >= 0; index = i--) {\n if (haystack[i][COLUMN] !== needle) break;\n }\n return index;\n}\n\nexport function memoizedState(): MemoState {\n return {\n lastKey: -1,\n lastNeedle: -1,\n lastIndex: -1,\n };\n}\n\n/**\n * This overly complicated beast is just to record the last tested line/column and the resulting\n * index, allowing us to skip a few tests if mappings are monotonically increasing.\n */\nexport function memoizedBinarySearch(\n haystack: SourceMapSegment[] | ReverseSegment[],\n needle: number,\n state: MemoState,\n key: number,\n): number {\n const { lastKey, lastNeedle, lastIndex } = state;\n\n let low = 0;\n let high = haystack.length - 1;\n if (key === lastKey) {\n if (needle === lastNeedle) {\n found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle;\n return lastIndex;\n }\n\n if (needle >= lastNeedle) {\n // lastIndex may be -1 if the previous needle was not found.\n low = lastIndex === -1 ? 0 : lastIndex;\n } else {\n high = lastIndex;\n }\n }\n state.lastKey = key;\n state.lastNeedle = needle;\n\n return (state.lastIndex = binarySearch(haystack, needle, low, high));\n}\n","import { COLUMN, SOURCES_INDEX, SOURCE_LINE, SOURCE_COLUMN } from './sourcemap-segment';\nimport { memoizedBinarySearch, upperBound } from './binary-search';\n\nimport type { ReverseSegment, SourceMapSegment } from './sourcemap-segment';\nimport type { MemoState } from './binary-search';\n\nexport type Source = {\n __proto__: null;\n [line: number]: Exclude[];\n};\n\n// Rebuilds the original source files, with mappings that are ordered by source line/column instead\n// of generated line/column.\nexport default function buildBySources(\n decoded: readonly SourceMapSegment[][],\n memos: MemoState[],\n): Source[] {\n const sources: Source[] = memos.map(buildNullArray);\n\n for (let i = 0; i < decoded.length; i++) {\n const line = decoded[i];\n for (let j = 0; j < line.length; j++) {\n const seg = line[j];\n if (seg.length === 1) continue;\n\n const sourceIndex = seg[SOURCES_INDEX];\n const sourceLine = seg[SOURCE_LINE];\n const sourceColumn = seg[SOURCE_COLUMN];\n const originalSource = sources[sourceIndex];\n const originalLine = (originalSource[sourceLine] ||= []);\n const memo = memos[sourceIndex];\n\n // The binary search either found a match, or it found the left-index just before where the\n // segment should go. Either way, we want to insert after that. And there may be multiple\n // generated segments associated with an original location, so there may need to move several\n // indexes before we find where we need to insert.\n let index = upperBound(\n originalLine,\n sourceColumn,\n memoizedBinarySearch(originalLine, sourceColumn, memo, sourceLine),\n );\n\n memo.lastIndex = ++index;\n insert(originalLine, index, [sourceColumn, i, seg[COLUMN]]);\n }\n }\n\n return sources;\n}\n\nfunction insert(array: T[], index: number, value: T) {\n for (let i = array.length; i > index; i--) {\n array[i] = array[i - 1];\n }\n array[index] = value;\n}\n\n// Null arrays allow us to use ordered index keys without actually allocating contiguous memory like\n// a real array. We use a null-prototype object to avoid prototype pollution and deoptimizations.\n// Numeric properties on objects are magically sorted in ascending order by the engine regardless of\n// the insertion order. So, by setting any numeric keys, even out of order, we'll get ascending\n// order when iterating with for-in.\nfunction buildNullArray(): T {\n return { __proto__: null } as T;\n}\n","import { TraceMap, presortedDecodedMap, decodedMappings } from './trace-mapping';\nimport {\n COLUMN,\n SOURCES_INDEX,\n SOURCE_LINE,\n SOURCE_COLUMN,\n NAMES_INDEX,\n} from './sourcemap-segment';\n\nimport type {\n DecodedSourceMap,\n DecodedSourceMapXInput,\n EncodedSourceMapXInput,\n SectionedSourceMapXInput,\n SectionedSourceMapInput,\n SectionXInput,\n} from './types';\nimport type { SourceMapSegment } from './sourcemap-segment';\n\ntype AnyMap = {\n new (map: SectionedSourceMapInput, mapUrl?: string | null): TraceMap;\n (map: SectionedSourceMapInput, mapUrl?: string | null): TraceMap;\n};\n\nexport const AnyMap: AnyMap = function (map, mapUrl) {\n const parsed = parse(map);\n\n if (!('sections' in parsed)) {\n return new TraceMap(parsed as DecodedSourceMapXInput | EncodedSourceMapXInput, mapUrl);\n }\n\n const mappings: SourceMapSegment[][] = [];\n const sources: string[] = [];\n const sourcesContent: (string | null)[] = [];\n const names: string[] = [];\n const ignoreList: number[] = [];\n\n recurse(\n parsed,\n mapUrl,\n mappings,\n sources,\n sourcesContent,\n names,\n ignoreList,\n 0,\n 0,\n Infinity,\n Infinity,\n );\n\n const joined: DecodedSourceMap = {\n version: 3,\n file: parsed.file,\n names,\n sources,\n sourcesContent,\n mappings,\n ignoreList,\n };\n\n return presortedDecodedMap(joined);\n} as AnyMap;\n\nfunction parse(map: T): Exclude {\n return typeof map === 'string' ? JSON.parse(map) : map;\n}\n\nfunction recurse(\n input: SectionedSourceMapXInput,\n mapUrl: string | null | undefined,\n mappings: SourceMapSegment[][],\n sources: string[],\n sourcesContent: (string | null)[],\n names: string[],\n ignoreList: number[],\n lineOffset: number,\n columnOffset: number,\n stopLine: number,\n stopColumn: number,\n) {\n const { sections } = input;\n for (let i = 0; i < sections.length; i++) {\n const { map, offset } = sections[i];\n\n let sl = stopLine;\n let sc = stopColumn;\n if (i + 1 < sections.length) {\n const nextOffset = sections[i + 1].offset;\n sl = Math.min(stopLine, lineOffset + nextOffset.line);\n\n if (sl === stopLine) {\n sc = Math.min(stopColumn, columnOffset + nextOffset.column);\n } else if (sl < stopLine) {\n sc = columnOffset + nextOffset.column;\n }\n }\n\n addSection(\n map,\n mapUrl,\n mappings,\n sources,\n sourcesContent,\n names,\n ignoreList,\n lineOffset + offset.line,\n columnOffset + offset.column,\n sl,\n sc,\n );\n }\n}\n\nfunction addSection(\n input: SectionXInput['map'],\n mapUrl: string | null | undefined,\n mappings: SourceMapSegment[][],\n sources: string[],\n sourcesContent: (string | null)[],\n names: string[],\n ignoreList: number[],\n lineOffset: number,\n columnOffset: number,\n stopLine: number,\n stopColumn: number,\n) {\n const parsed = parse(input);\n if ('sections' in parsed) return recurse(...(arguments as unknown as Parameters));\n\n const map = new TraceMap(parsed, mapUrl);\n const sourcesOffset = sources.length;\n const namesOffset = names.length;\n const decoded = decodedMappings(map);\n const { resolvedSources, sourcesContent: contents, ignoreList: ignores } = map;\n\n append(sources, resolvedSources);\n append(names, map.names);\n\n if (contents) append(sourcesContent, contents);\n else for (let i = 0; i < resolvedSources.length; i++) sourcesContent.push(null);\n\n if (ignores) for (let i = 0; i < ignores.length; i++) ignoreList.push(ignores[i] + sourcesOffset);\n\n for (let i = 0; i < decoded.length; i++) {\n const lineI = lineOffset + i;\n\n // We can only add so many lines before we step into the range that the next section's map\n // controls. When we get to the last line, then we'll start checking the segments to see if\n // they've crossed into the column range. But it may not have any columns that overstep, so we\n // still need to check that we don't overstep lines, too.\n if (lineI > stopLine) return;\n\n // The out line may already exist in mappings (if we're continuing the line started by a\n // previous section). Or, we may have jumped ahead several lines to start this section.\n const out = getLine(mappings, lineI);\n // On the 0th loop, the section's column offset shifts us forward. On all other lines (since the\n // map can be multiple lines), it doesn't.\n const cOffset = i === 0 ? columnOffset : 0;\n\n const line = decoded[i];\n for (let j = 0; j < line.length; j++) {\n const seg = line[j];\n const column = cOffset + seg[COLUMN];\n\n // If this segment steps into the column range that the next section's map controls, we need\n // to stop early.\n if (lineI === stopLine && column >= stopColumn) return;\n\n if (seg.length === 1) {\n out.push([column]);\n continue;\n }\n\n const sourcesIndex = sourcesOffset + seg[SOURCES_INDEX];\n const sourceLine = seg[SOURCE_LINE];\n const sourceColumn = seg[SOURCE_COLUMN];\n out.push(\n seg.length === 4\n ? [column, sourcesIndex, sourceLine, sourceColumn]\n : [column, sourcesIndex, sourceLine, sourceColumn, namesOffset + seg[NAMES_INDEX]],\n );\n }\n }\n}\n\nfunction append(arr: T[], other: T[]) {\n for (let i = 0; i < other.length; i++) arr.push(other[i]);\n}\n\nfunction getLine(arr: T[][], index: number): T[] {\n for (let i = arr.length; i <= index; i++) arr[i] = [];\n return arr[index];\n}\n","import { encode, decode } from '@jridgewell/sourcemap-codec';\n\nimport resolve from './resolve';\nimport stripFilename from './strip-filename';\nimport maybeSort from './sort';\nimport buildBySources from './by-source';\nimport {\n memoizedState,\n memoizedBinarySearch,\n upperBound,\n lowerBound,\n found as bsFound,\n} from './binary-search';\nimport {\n COLUMN,\n SOURCES_INDEX,\n SOURCE_LINE,\n SOURCE_COLUMN,\n NAMES_INDEX,\n REV_GENERATED_LINE,\n REV_GENERATED_COLUMN,\n} from './sourcemap-segment';\n\nimport type { SourceMapSegment, ReverseSegment } from './sourcemap-segment';\nimport type {\n SourceMapV3,\n DecodedSourceMap,\n EncodedSourceMap,\n InvalidOriginalMapping,\n OriginalMapping,\n InvalidGeneratedMapping,\n GeneratedMapping,\n SourceMapInput,\n Needle,\n SourceNeedle,\n SourceMap,\n EachMapping,\n Bias,\n XInput,\n} from './types';\nimport type { Source } from './by-source';\nimport type { MemoState } from './binary-search';\n\nexport type { SourceMapSegment } from './sourcemap-segment';\nexport type {\n SourceMap,\n DecodedSourceMap,\n EncodedSourceMap,\n Section,\n SectionedSourceMap,\n SourceMapV3,\n Bias,\n EachMapping,\n GeneratedMapping,\n InvalidGeneratedMapping,\n InvalidOriginalMapping,\n Needle,\n OriginalMapping,\n OriginalMapping as Mapping,\n SectionedSourceMapInput,\n SourceMapInput,\n SourceNeedle,\n XInput,\n EncodedSourceMapXInput,\n DecodedSourceMapXInput,\n SectionedSourceMapXInput,\n SectionXInput,\n} from './types';\n\ninterface PublicMap {\n _encoded: TraceMap['_encoded'];\n _decoded: TraceMap['_decoded'];\n _decodedMemo: TraceMap['_decodedMemo'];\n _bySources: TraceMap['_bySources'];\n _bySourceMemos: TraceMap['_bySourceMemos'];\n}\n\nconst LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)';\nconst COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)';\n\nexport const LEAST_UPPER_BOUND = -1;\nexport const GREATEST_LOWER_BOUND = 1;\n\nexport { AnyMap } from './any-map';\n\nexport class TraceMap implements SourceMap {\n declare version: SourceMapV3['version'];\n declare file: SourceMapV3['file'];\n declare names: SourceMapV3['names'];\n declare sourceRoot: SourceMapV3['sourceRoot'];\n declare sources: SourceMapV3['sources'];\n declare sourcesContent: SourceMapV3['sourcesContent'];\n declare ignoreList: SourceMapV3['ignoreList'];\n\n declare resolvedSources: string[];\n private declare _encoded: string | undefined;\n\n private declare _decoded: SourceMapSegment[][] | undefined;\n private declare _decodedMemo: MemoState;\n\n private declare _bySources: Source[] | undefined;\n private declare _bySourceMemos: MemoState[] | undefined;\n\n constructor(map: SourceMapInput, mapUrl?: string | null) {\n const isString = typeof map === 'string';\n\n if (!isString && (map as unknown as { _decodedMemo: any })._decodedMemo) return map as TraceMap;\n\n const parsed = (isString ? JSON.parse(map) : map) as DecodedSourceMap | EncodedSourceMap;\n\n const { version, file, names, sourceRoot, sources, sourcesContent } = parsed;\n this.version = version;\n this.file = file;\n this.names = names || [];\n this.sourceRoot = sourceRoot;\n this.sources = sources;\n this.sourcesContent = sourcesContent;\n this.ignoreList = parsed.ignoreList || (parsed as XInput).x_google_ignoreList || undefined;\n\n const from = resolve(sourceRoot || '', stripFilename(mapUrl));\n this.resolvedSources = sources.map((s) => resolve(s || '', from));\n\n const { mappings } = parsed;\n if (typeof mappings === 'string') {\n this._encoded = mappings;\n this._decoded = undefined;\n } else {\n this._encoded = undefined;\n this._decoded = maybeSort(mappings, isString);\n }\n\n this._decodedMemo = memoizedState();\n this._bySources = undefined;\n this._bySourceMemos = undefined;\n }\n}\n\n/**\n * Typescript doesn't allow friend access to private fields, so this just casts the map into a type\n * with public access modifiers.\n */\nfunction cast(map: unknown): PublicMap {\n return map as any;\n}\n\n/**\n * Returns the encoded (VLQ string) form of the SourceMap's mappings field.\n */\nexport function encodedMappings(map: TraceMap): EncodedSourceMap['mappings'] {\n return (cast(map)._encoded ??= encode(cast(map)._decoded!));\n}\n\n/**\n * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field.\n */\nexport function decodedMappings(map: TraceMap): Readonly {\n return (cast(map)._decoded ||= decode(cast(map)._encoded!));\n}\n\n/**\n * A low-level API to find the segment associated with a generated line/column (think, from a\n * stack trace). Line and column here are 0-based, unlike `originalPositionFor`.\n */\nexport function traceSegment(\n map: TraceMap,\n line: number,\n column: number,\n): Readonly | null {\n const decoded = decodedMappings(map);\n\n // It's common for parent source maps to have pointers to lines that have no\n // mapping (like a \"//# sourceMappingURL=\") at the end of the child file.\n if (line >= decoded.length) return null;\n\n const segments = decoded[line];\n const index = traceSegmentInternal(\n segments,\n cast(map)._decodedMemo,\n line,\n column,\n GREATEST_LOWER_BOUND,\n );\n\n return index === -1 ? null : segments[index];\n}\n\n/**\n * A higher-level API to find the source/line/column associated with a generated line/column\n * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in\n * `source-map` library.\n */\nexport function originalPositionFor(\n map: TraceMap,\n needle: Needle,\n): OriginalMapping | InvalidOriginalMapping {\n let { line, column, bias } = needle;\n line--;\n if (line < 0) throw new Error(LINE_GTR_ZERO);\n if (column < 0) throw new Error(COL_GTR_EQ_ZERO);\n\n const decoded = decodedMappings(map);\n\n // It's common for parent source maps to have pointers to lines that have no\n // mapping (like a \"//# sourceMappingURL=\") at the end of the child file.\n if (line >= decoded.length) return OMapping(null, null, null, null);\n\n const segments = decoded[line];\n const index = traceSegmentInternal(\n segments,\n cast(map)._decodedMemo,\n line,\n column,\n bias || GREATEST_LOWER_BOUND,\n );\n\n if (index === -1) return OMapping(null, null, null, null);\n\n const segment = segments[index];\n if (segment.length === 1) return OMapping(null, null, null, null);\n\n const { names, resolvedSources } = map;\n return OMapping(\n resolvedSources[segment[SOURCES_INDEX]],\n segment[SOURCE_LINE] + 1,\n segment[SOURCE_COLUMN],\n segment.length === 5 ? names[segment[NAMES_INDEX]] : null,\n );\n}\n\n/**\n * Finds the generated line/column position of the provided source/line/column source position.\n */\nexport function generatedPositionFor(\n map: TraceMap,\n needle: SourceNeedle,\n): GeneratedMapping | InvalidGeneratedMapping {\n const { source, line, column, bias } = needle;\n return generatedPosition(map, source, line, column, bias || GREATEST_LOWER_BOUND, false);\n}\n\n/**\n * Finds all generated line/column positions of the provided source/line/column source position.\n */\nexport function allGeneratedPositionsFor(map: TraceMap, needle: SourceNeedle): GeneratedMapping[] {\n const { source, line, column, bias } = needle;\n // SourceMapConsumer uses LEAST_UPPER_BOUND for some reason, so we follow suit.\n return generatedPosition(map, source, line, column, bias || LEAST_UPPER_BOUND, true);\n}\n\n/**\n * Iterates each mapping in generated position order.\n */\nexport function eachMapping(map: TraceMap, cb: (mapping: EachMapping) => void): void {\n const decoded = decodedMappings(map);\n const { names, resolvedSources } = map;\n\n for (let i = 0; i < decoded.length; i++) {\n const line = decoded[i];\n for (let j = 0; j < line.length; j++) {\n const seg = line[j];\n\n const generatedLine = i + 1;\n const generatedColumn = seg[0];\n let source = null;\n let originalLine = null;\n let originalColumn = null;\n let name = null;\n if (seg.length !== 1) {\n source = resolvedSources[seg[1]];\n originalLine = seg[2] + 1;\n originalColumn = seg[3];\n }\n if (seg.length === 5) name = names[seg[4]];\n\n cb({\n generatedLine,\n generatedColumn,\n source,\n originalLine,\n originalColumn,\n name,\n } as EachMapping);\n }\n }\n}\n\nfunction sourceIndex(map: TraceMap, source: string): number {\n const { sources, resolvedSources } = map;\n let index = sources.indexOf(source);\n if (index === -1) index = resolvedSources.indexOf(source);\n return index;\n}\n\n/**\n * Retrieves the source content for a particular source, if its found. Returns null if not.\n */\nexport function sourceContentFor(map: TraceMap, source: string): string | null {\n const { sourcesContent } = map;\n if (sourcesContent == null) return null;\n const index = sourceIndex(map, source);\n return index === -1 ? null : sourcesContent[index];\n}\n\n/**\n * Determines if the source is marked to ignore by the source map.\n */\nexport function isIgnored(map: TraceMap, source: string): boolean {\n const { ignoreList } = map;\n if (ignoreList == null) return false;\n const index = sourceIndex(map, source);\n return index === -1 ? false : ignoreList.includes(index);\n}\n\n/**\n * A helper that skips sorting of the input map's mappings array, which can be expensive for larger\n * maps.\n */\nexport function presortedDecodedMap(map: DecodedSourceMap, mapUrl?: string): TraceMap {\n const tracer = new TraceMap(clone(map, []), mapUrl);\n cast(tracer)._decoded = map.mappings;\n return tracer;\n}\n\n/**\n * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects\n * a sourcemap, or to JSON.stringify.\n */\nexport function decodedMap(\n map: TraceMap,\n): Omit & { mappings: readonly SourceMapSegment[][] } {\n return clone(map, decodedMappings(map));\n}\n\n/**\n * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects\n * a sourcemap, or to JSON.stringify.\n */\nexport function encodedMap(map: TraceMap): EncodedSourceMap {\n return clone(map, encodedMappings(map));\n}\n\nfunction clone(\n map: TraceMap | DecodedSourceMap,\n mappings: T,\n): T extends string ? EncodedSourceMap : DecodedSourceMap {\n return {\n version: map.version,\n file: map.file,\n names: map.names,\n sourceRoot: map.sourceRoot,\n sources: map.sources,\n sourcesContent: map.sourcesContent,\n mappings,\n ignoreList: map.ignoreList || (map as XInput).x_google_ignoreList,\n } as any;\n}\n\nfunction OMapping(source: null, line: null, column: null, name: null): InvalidOriginalMapping;\nfunction OMapping(\n source: string,\n line: number,\n column: number,\n name: string | null,\n): OriginalMapping;\nfunction OMapping(\n source: string | null,\n line: number | null,\n column: number | null,\n name: string | null,\n): OriginalMapping | InvalidOriginalMapping {\n return { source, line, column, name } as any;\n}\n\nfunction GMapping(line: null, column: null): InvalidGeneratedMapping;\nfunction GMapping(line: number, column: number): GeneratedMapping;\nfunction GMapping(\n line: number | null,\n column: number | null,\n): GeneratedMapping | InvalidGeneratedMapping {\n return { line, column } as any;\n}\n\nfunction traceSegmentInternal(\n segments: SourceMapSegment[],\n memo: MemoState,\n line: number,\n column: number,\n bias: Bias,\n): number;\nfunction traceSegmentInternal(\n segments: ReverseSegment[],\n memo: MemoState,\n line: number,\n column: number,\n bias: Bias,\n): number;\nfunction traceSegmentInternal(\n segments: SourceMapSegment[] | ReverseSegment[],\n memo: MemoState,\n line: number,\n column: number,\n bias: Bias,\n): number {\n let index = memoizedBinarySearch(segments, column, memo, line);\n if (bsFound) {\n index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index);\n } else if (bias === LEAST_UPPER_BOUND) index++;\n\n if (index === -1 || index === segments.length) return -1;\n return index;\n}\n\nfunction sliceGeneratedPositions(\n segments: ReverseSegment[],\n memo: MemoState,\n line: number,\n column: number,\n bias: Bias,\n): GeneratedMapping[] {\n let min = traceSegmentInternal(segments, memo, line, column, GREATEST_LOWER_BOUND);\n\n // We ignored the bias when tracing the segment so that we're guarnateed to find the first (in\n // insertion order) segment that matched. Even if we did respect the bias when tracing, we would\n // still need to call `lowerBound()` to find the first segment, which is slower than just looking\n // for the GREATEST_LOWER_BOUND to begin with. The only difference that matters for us is when the\n // binary search didn't match, in which case GREATEST_LOWER_BOUND just needs to increment to\n // match LEAST_UPPER_BOUND.\n if (!bsFound && bias === LEAST_UPPER_BOUND) min++;\n\n if (min === -1 || min === segments.length) return [];\n\n // We may have found the segment that started at an earlier column. If this is the case, then we\n // need to slice all generated segments that match _that_ column, because all such segments span\n // to our desired column.\n const matchedColumn = bsFound ? column : segments[min][COLUMN];\n\n // The binary search is not guaranteed to find the lower bound when a match wasn't found.\n if (!bsFound) min = lowerBound(segments, matchedColumn, min);\n const max = upperBound(segments, matchedColumn, min);\n\n const result = [];\n for (; min <= max; min++) {\n const segment = segments[min];\n result.push(GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]));\n }\n return result;\n}\n\nfunction generatedPosition(\n map: TraceMap,\n source: string,\n line: number,\n column: number,\n bias: Bias,\n all: false,\n): GeneratedMapping | InvalidGeneratedMapping;\nfunction generatedPosition(\n map: TraceMap,\n source: string,\n line: number,\n column: number,\n bias: Bias,\n all: true,\n): GeneratedMapping[];\nfunction generatedPosition(\n map: TraceMap,\n source: string,\n line: number,\n column: number,\n bias: Bias,\n all: boolean,\n): GeneratedMapping | InvalidGeneratedMapping | GeneratedMapping[] {\n line--;\n if (line < 0) throw new Error(LINE_GTR_ZERO);\n if (column < 0) throw new Error(COL_GTR_EQ_ZERO);\n\n const { sources, resolvedSources } = map;\n let sourceIndex = sources.indexOf(source);\n if (sourceIndex === -1) sourceIndex = resolvedSources.indexOf(source);\n if (sourceIndex === -1) return all ? [] : GMapping(null, null);\n\n const generated = (cast(map)._bySources ||= buildBySources(\n decodedMappings(map),\n (cast(map)._bySourceMemos = sources.map(memoizedState)),\n ));\n\n const segments = generated[sourceIndex][line];\n if (segments == null) return all ? [] : GMapping(null, null);\n\n const memo = cast(map)._bySourceMemos![sourceIndex];\n\n if (all) return sliceGeneratedPositions(segments, memo, line, column, bias);\n\n const index = traceSegmentInternal(segments, memo, line, column, bias);\n if (index === -1) return GMapping(null, null);\n\n const segment = segments[index];\n return GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]);\n}\n"],"names":["bsFound"],"mappings":";;;AAEc,SAAU,OAAO,CAAC,KAAa,EAAE,IAAwB,EAAA;;;;IAIrE,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,IAAI,IAAI,GAAG,CAAC;AAE7C,IAAA,OAAO,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AACjC;;ACTA;;AAEG;AACqB,SAAA,aAAa,CAAC,IAA+B,EAAA;AACnE,IAAA,IAAI,CAAC,IAAI;AAAE,QAAA,OAAO,EAAE,CAAC;IACrB,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACpC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;AAClC;;ACQO,MAAM,MAAM,GAAG,CAAC,CAAC;AACjB,MAAM,aAAa,GAAG,CAAC,CAAC;AACxB,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,aAAa,GAAG,CAAC,CAAC;AACxB,MAAM,WAAW,GAAG,CAAC,CAAC;AAEtB,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAC7B,MAAM,oBAAoB,GAAG,CAAC;;AClBvB,SAAU,SAAS,CAC/B,QAA8B,EAC9B,KAAc,EAAA;IAEd,MAAM,aAAa,GAAG,uBAAuB,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;AAC3D,IAAA,IAAI,aAAa,KAAK,QAAQ,CAAC,MAAM;AAAE,QAAA,OAAO,QAAQ,CAAC;;;AAIvD,IAAA,IAAI,CAAC,KAAK;AAAE,QAAA,QAAQ,GAAG,QAAQ,CAAC,K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ace-mapping.umd.js b/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js deleted file mode 100644 index 3be0f36e..00000000 --- a/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +++ /dev/null @@ -1,600 +0,0 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@jridgewell/sourcemap-codec'), require('@jridgewell/resolve-uri')) : - typeof define === 'function' && define.amd ? define(['exports', '@jridgewell/sourcemap-codec', '@jridgewell/resolve-uri'], factory) : - (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.traceMapping = {}, global.sourcemapCodec, global.resolveURI)); -})(this, (function (exports, sourcemapCodec, resolveUri) { 'use strict'; - - function resolve(input, base) { - // The base is always treated as a directory, if it's not empty. - // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327 - // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401 - if (base && !base.endsWith('/')) - base += '/'; - return resolveUri(input, base); - } - - /** - * Removes everything after the last "/", but leaves the slash. - */ - function stripFilename(path) { - if (!path) - return ''; - const index = path.lastIndexOf('/'); - return path.slice(0, index + 1); - } - - const COLUMN = 0; - const SOURCES_INDEX = 1; - const SOURCE_LINE = 2; - const SOURCE_COLUMN = 3; - const NAMES_INDEX = 4; - const REV_GENERATED_LINE = 1; - const REV_GENERATED_COLUMN = 2; - - function maybeSort(mappings, owned) { - const unsortedIndex = nextUnsortedSegmentLine(mappings, 0); - if (unsortedIndex === mappings.length) - return mappings; - // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If - // not, we do not want to modify the consumer's input array. - if (!owned) - mappings = mappings.slice(); - for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) { - mappings[i] = sortSegments(mappings[i], owned); - } - return mappings; - } - function nextUnsortedSegmentLine(mappings, start) { - for (let i = start; i < mappings.length; i++) { - if (!isSorted(mappings[i])) - return i; - } - return mappings.length; - } - function isSorted(line) { - for (let j = 1; j < line.length; j++) { - if (line[j][COLUMN] < line[j - 1][COLUMN]) { - return false; - } - } - return true; - } - function sortSegments(line, owned) { - if (!owned) - line = line.slice(); - return line.sort(sortComparator); - } - function sortComparator(a, b) { - return a[COLUMN] - b[COLUMN]; - } - - let found = false; - /** - * A binary search implementation that returns the index if a match is found. - * If no match is found, then the left-index (the index associated with the item that comes just - * before the desired index) is returned. To maintain proper sort order, a splice would happen at - * the next index: - * - * ```js - * const array = [1, 3]; - * const needle = 2; - * const index = binarySearch(array, needle, (item, needle) => item - needle); - * - * assert.equal(index, 0); - * array.splice(index + 1, 0, needle); - * assert.deepEqual(array, [1, 2, 3]); - * ``` - */ - function binarySearch(haystack, needle, low, high) { - while (low <= high) { - const mid = low + ((high - low) >> 1); - const cmp = haystack[mid][COLUMN] - needle; - if (cmp === 0) { - found = true; - return mid; - } - if (cmp < 0) { - low = mid + 1; - } - else { - high = mid - 1; - } - } - found = false; - return low - 1; - } - function upperBound(haystack, needle, index) { - for (let i = index + 1; i < haystack.length; index = i++) { - if (haystack[i][COLUMN] !== needle) - break; - } - return index; - } - function lowerBound(haystack, needle, index) { - for (let i = index - 1; i >= 0; index = i--) { - if (haystack[i][COLUMN] !== needle) - break; - } - return index; - } - function memoizedState() { - return { - lastKey: -1, - lastNeedle: -1, - lastIndex: -1, - }; - } - /** - * This overly complicated beast is just to record the last tested line/column and the resulting - * index, allowing us to skip a few tests if mappings are monotonically increasing. - */ - function memoizedBinarySearch(haystack, needle, state, key) { - const { lastKey, lastNeedle, lastIndex } = state; - let low = 0; - let high = haystack.length - 1; - if (key === lastKey) { - if (needle === lastNeedle) { - found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle; - return lastIndex; - } - if (needle >= lastNeedle) { - // lastIndex may be -1 if the previous needle was not found. - low = lastIndex === -1 ? 0 : lastIndex; - } - else { - high = lastIndex; - } - } - state.lastKey = key; - state.lastNeedle = needle; - return (state.lastIndex = binarySearch(haystack, needle, low, high)); - } - - // Rebuilds the original source files, with mappings that are ordered by source line/column instead - // of generated line/column. - function buildBySources(decoded, memos) { - const sources = memos.map(buildNullArray); - for (let i = 0; i < decoded.length; i++) { - const line = decoded[i]; - for (let j = 0; j < line.length; j++) { - const seg = line[j]; - if (seg.length === 1) - continue; - const sourceIndex = seg[SOURCES_INDEX]; - const sourceLine = seg[SOURCE_LINE]; - const sourceColumn = seg[SOURCE_COLUMN]; - const originalSource = sources[sourceIndex]; - const originalLine = (originalSource[sourceLine] || (originalSource[sourceLine] = [])); - const memo = memos[sourceIndex]; - // The binary search either found a match, or it found the left-index just before where the - // segment should go. Either way, we want to insert after that. And there may be multiple - // generated segments associated with an original location, so there may need to move several - // indexes before we find where we need to insert. - let index = upperBound(originalLine, sourceColumn, memoizedBinarySearch(originalLine, sourceColumn, memo, sourceLine)); - memo.lastIndex = ++index; - insert(originalLine, index, [sourceColumn, i, seg[COLUMN]]); - } - } - return sources; - } - function insert(array, index, value) { - for (let i = array.length; i > index; i--) { - array[i] = array[i - 1]; - } - array[index] = value; - } - // Null arrays allow us to use ordered index keys without actually allocating contiguous memory like - // a real array. We use a null-prototype object to avoid prototype pollution and deoptimizations. - // Numeric properties on objects are magically sorted in ascending order by the engine regardless of - // the insertion order. So, by setting any numeric keys, even out of order, we'll get ascending - // order when iterating with for-in. - function buildNullArray() { - return { __proto__: null }; - } - - const AnyMap = function (map, mapUrl) { - const parsed = parse(map); - if (!('sections' in parsed)) { - return new TraceMap(parsed, mapUrl); - } - const mappings = []; - const sources = []; - const sourcesContent = []; - const names = []; - const ignoreList = []; - recurse(parsed, mapUrl, mappings, sources, sourcesContent, names, ignoreList, 0, 0, Infinity, Infinity); - const joined = { - version: 3, - file: parsed.file, - names, - sources, - sourcesContent, - mappings, - ignoreList, - }; - return presortedDecodedMap(joined); - }; - function parse(map) { - return typeof map === 'string' ? JSON.parse(map) : map; - } - function recurse(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) { - const { sections } = input; - for (let i = 0; i < sections.length; i++) { - const { map, offset } = sections[i]; - let sl = stopLine; - let sc = stopColumn; - if (i + 1 < sections.length) { - const nextOffset = sections[i + 1].offset; - sl = Math.min(stopLine, lineOffset + nextOffset.line); - if (sl === stopLine) { - sc = Math.min(stopColumn, columnOffset + nextOffset.column); - } - else if (sl < stopLine) { - sc = columnOffset + nextOffset.column; - } - } - addSection(map, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset + offset.line, columnOffset + offset.column, sl, sc); - } - } - function addSection(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) { - const parsed = parse(input); - if ('sections' in parsed) - return recurse(...arguments); - const map = new TraceMap(parsed, mapUrl); - const sourcesOffset = sources.length; - const namesOffset = names.length; - const decoded = decodedMappings(map); - const { resolvedSources, sourcesContent: contents, ignoreList: ignores } = map; - append(sources, resolvedSources); - append(names, map.names); - if (contents) - append(sourcesContent, contents); - else - for (let i = 0; i < resolvedSources.length; i++) - sourcesContent.push(null); - if (ignores) - for (let i = 0; i < ignores.length; i++) - ignoreList.push(ignores[i] + sourcesOffset); - for (let i = 0; i < decoded.length; i++) { - const lineI = lineOffset + i; - // We can only add so many lines before we step into the range that the next section's map - // controls. When we get to the last line, then we'll start checking the segments to see if - // they've crossed into the column range. But it may not have any columns that overstep, so we - // still need to check that we don't overstep lines, too. - if (lineI > stopLine) - return; - // The out line may already exist in mappings (if we're continuing the line started by a - // previous section). Or, we may have jumped ahead several lines to start this section. - const out = getLine(mappings, lineI); - // On the 0th loop, the section's column offset shifts us forward. On all other lines (since the - // map can be multiple lines), it doesn't. - const cOffset = i === 0 ? columnOffset : 0; - const line = decoded[i]; - for (let j = 0; j < line.length; j++) { - const seg = line[j]; - const column = cOffset + seg[COLUMN]; - // If this segment steps into the column range that the next section's map controls, we need - // to stop early. - if (lineI === stopLine && column >= stopColumn) - return; - if (seg.length === 1) { - out.push([column]); - continue; - } - const sourcesIndex = sourcesOffset + seg[SOURCES_INDEX]; - const sourceLine = seg[SOURCE_LINE]; - const sourceColumn = seg[SOURCE_COLUMN]; - out.push(seg.length === 4 - ? [column, sourcesIndex, sourceLine, sourceColumn] - : [column, sourcesIndex, sourceLine, sourceColumn, namesOffset + seg[NAMES_INDEX]]); - } - } - } - function append(arr, other) { - for (let i = 0; i < other.length; i++) - arr.push(other[i]); - } - function getLine(arr, index) { - for (let i = arr.length; i <= index; i++) - arr[i] = []; - return arr[index]; - } - - const LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)'; - const COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)'; - const LEAST_UPPER_BOUND = -1; - const GREATEST_LOWER_BOUND = 1; - class TraceMap { - constructor(map, mapUrl) { - const isString = typeof map === 'string'; - if (!isString && map._decodedMemo) - return map; - const parsed = (isString ? JSON.parse(map) : map); - const { version, file, names, sourceRoot, sources, sourcesContent } = parsed; - this.version = version; - this.file = file; - this.names = names || []; - this.sourceRoot = sourceRoot; - this.sources = sources; - this.sourcesContent = sourcesContent; - this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || undefined; - const from = resolve(sourceRoot || '', stripFilename(mapUrl)); - this.resolvedSources = sources.map((s) => resolve(s || '', from)); - const { mappings } = parsed; - if (typeof mappings === 'string') { - this._encoded = mappings; - this._decoded = undefined; - } - else { - this._encoded = undefined; - this._decoded = maybeSort(mappings, isString); - } - this._decodedMemo = memoizedState(); - this._bySources = undefined; - this._bySourceMemos = undefined; - } - } - /** - * Typescript doesn't allow friend access to private fields, so this just casts the map into a type - * with public access modifiers. - */ - function cast(map) { - return map; - } - /** - * Returns the encoded (VLQ string) form of the SourceMap's mappings field. - */ - function encodedMappings(map) { - var _a; - var _b; - return ((_a = (_b = cast(map))._encoded) !== null && _a !== void 0 ? _a : (_b._encoded = sourcemapCodec.encode(cast(map)._decoded))); - } - /** - * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field. - */ - function decodedMappings(map) { - var _a; - return ((_a = cast(map))._decoded || (_a._decoded = sourcemapCodec.decode(cast(map)._encoded))); - } - /** - * A low-level API to find the segment associated with a generated line/column (think, from a - * stack trace). Line and column here are 0-based, unlike `originalPositionFor`. - */ - function traceSegment(map, line, column) { - const decoded = decodedMappings(map); - // It's common for parent source maps to have pointers to lines that have no - // mapping (like a "//# sourceMappingURL=") at the end of the child file. - if (line >= decoded.length) - return null; - const segments = decoded[line]; - const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, GREATEST_LOWER_BOUND); - return index === -1 ? null : segments[index]; - } - /** - * A higher-level API to find the source/line/column associated with a generated line/column - * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in - * `source-map` library. - */ - function originalPositionFor(map, needle) { - let { line, column, bias } = needle; - line--; - if (line < 0) - throw new Error(LINE_GTR_ZERO); - if (column < 0) - throw new Error(COL_GTR_EQ_ZERO); - const decoded = decodedMappings(map); - // It's common for parent source maps to have pointers to lines that have no - // mapping (like a "//# sourceMappingURL=") at the end of the child file. - if (line >= decoded.length) - return OMapping(null, null, null, null); - const segments = decoded[line]; - const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND); - if (index === -1) - return OMapping(null, null, null, null); - const segment = segments[index]; - if (segment.length === 1) - return OMapping(null, null, null, null); - const { names, resolvedSources } = map; - return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null); - } - /** - * Finds the generated line/column position of the provided source/line/column source position. - */ - function generatedPositionFor(map, needle) { - const { source, line, column, bias } = needle; - return generatedPosition(map, source, line, column, bias || GREATEST_LOWER_BOUND, false); - } - /** - * Finds all generated line/column positions of the provided source/line/column source position. - */ - function allGeneratedPositionsFor(map, needle) { - const { source, line, column, bias } = needle; - // SourceMapConsumer uses LEAST_UPPER_BOUND for some reason, so we follow suit. - return generatedPosition(map, source, line, column, bias || LEAST_UPPER_BOUND, true); - } - /** - * Iterates each mapping in generated position order. - */ - function eachMapping(map, cb) { - const decoded = decodedMappings(map); - const { names, resolvedSources } = map; - for (let i = 0; i < decoded.length; i++) { - const line = decoded[i]; - for (let j = 0; j < line.length; j++) { - const seg = line[j]; - const generatedLine = i + 1; - const generatedColumn = seg[0]; - let source = null; - let originalLine = null; - let originalColumn = null; - let name = null; - if (seg.length !== 1) { - source = resolvedSources[seg[1]]; - originalLine = seg[2] + 1; - originalColumn = seg[3]; - } - if (seg.length === 5) - name = names[seg[4]]; - cb({ - generatedLine, - generatedColumn, - source, - originalLine, - originalColumn, - name, - }); - } - } - } - function sourceIndex(map, source) { - const { sources, resolvedSources } = map; - let index = sources.indexOf(source); - if (index === -1) - index = resolvedSources.indexOf(source); - return index; - } - /** - * Retrieves the source content for a particular source, if its found. Returns null if not. - */ - function sourceContentFor(map, source) { - const { sourcesContent } = map; - if (sourcesContent == null) - return null; - const index = sourceIndex(map, source); - return index === -1 ? null : sourcesContent[index]; - } - /** - * Determines if the source is marked to ignore by the source map. - */ - function isIgnored(map, source) { - const { ignoreList } = map; - if (ignoreList == null) - return false; - const index = sourceIndex(map, source); - return index === -1 ? false : ignoreList.includes(index); - } - /** - * A helper that skips sorting of the input map's mappings array, which can be expensive for larger - * maps. - */ - function presortedDecodedMap(map, mapUrl) { - const tracer = new TraceMap(clone(map, []), mapUrl); - cast(tracer)._decoded = map.mappings; - return tracer; - } - /** - * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ - function decodedMap(map) { - return clone(map, decodedMappings(map)); - } - /** - * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ - function encodedMap(map) { - return clone(map, encodedMappings(map)); - } - function clone(map, mappings) { - return { - version: map.version, - file: map.file, - names: map.names, - sourceRoot: map.sourceRoot, - sources: map.sources, - sourcesContent: map.sourcesContent, - mappings, - ignoreList: map.ignoreList || map.x_google_ignoreList, - }; - } - function OMapping(source, line, column, name) { - return { source, line, column, name }; - } - function GMapping(line, column) { - return { line, column }; - } - function traceSegmentInternal(segments, memo, line, column, bias) { - let index = memoizedBinarySearch(segments, column, memo, line); - if (found) { - index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index); - } - else if (bias === LEAST_UPPER_BOUND) - index++; - if (index === -1 || index === segments.length) - return -1; - return index; - } - function sliceGeneratedPositions(segments, memo, line, column, bias) { - let min = traceSegmentInternal(segments, memo, line, column, GREATEST_LOWER_BOUND); - // We ignored the bias when tracing the segment so that we're guarnateed to find the first (in - // insertion order) segment that matched. Even if we did respect the bias when tracing, we would - // still need to call `lowerBound()` to find the first segment, which is slower than just looking - // for the GREATEST_LOWER_BOUND to begin with. The only difference that matters for us is when the - // binary search didn't match, in which case GREATEST_LOWER_BOUND just needs to increment to - // match LEAST_UPPER_BOUND. - if (!found && bias === LEAST_UPPER_BOUND) - min++; - if (min === -1 || min === segments.length) - return []; - // We may have found the segment that started at an earlier column. If this is the case, then we - // need to slice all generated segments that match _that_ column, because all such segments span - // to our desired column. - const matchedColumn = found ? column : segments[min][COLUMN]; - // The binary search is not guaranteed to find the lower bound when a match wasn't found. - if (!found) - min = lowerBound(segments, matchedColumn, min); - const max = upperBound(segments, matchedColumn, min); - const result = []; - for (; min <= max; min++) { - const segment = segments[min]; - result.push(GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN])); - } - return result; - } - function generatedPosition(map, source, line, column, bias, all) { - var _a; - line--; - if (line < 0) - throw new Error(LINE_GTR_ZERO); - if (column < 0) - throw new Error(COL_GTR_EQ_ZERO); - const { sources, resolvedSources } = map; - let sourceIndex = sources.indexOf(source); - if (sourceIndex === -1) - sourceIndex = resolvedSources.indexOf(source); - if (sourceIndex === -1) - return all ? [] : GMapping(null, null); - const generated = ((_a = cast(map))._bySources || (_a._bySources = buildBySources(decodedMappings(map), (cast(map)._bySourceMemos = sources.map(memoizedState))))); - const segments = generated[sourceIndex][line]; - if (segments == null) - return all ? [] : GMapping(null, null); - const memo = cast(map)._bySourceMemos[sourceIndex]; - if (all) - return sliceGeneratedPositions(segments, memo, line, column, bias); - const index = traceSegmentInternal(segments, memo, line, column, bias); - if (index === -1) - return GMapping(null, null); - const segment = segments[index]; - return GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]); - } - - exports.AnyMap = AnyMap; - exports.GREATEST_LOWER_BOUND = GREATEST_LOWER_BOUND; - exports.LEAST_UPPER_BOUND = LEAST_UPPER_BOUND; - exports.TraceMap = TraceMap; - exports.allGeneratedPositionsFor = allGeneratedPositionsFor; - exports.decodedMap = decodedMap; - exports.decodedMappings = decodedMappings; - exports.eachMapping = eachMapping; - exports.encodedMap = encodedMap; - exports.encodedMappings = encodedMappings; - exports.generatedPositionFor = generatedPositionFor; - exports.isIgnored = isIgnored; - exports.originalPositionFor = originalPositionFor; - exports.presortedDecodedMap = presortedDecodedMap; - exports.sourceContentFor = sourceContentFor; - exports.traceSegment = traceSegment; - -})); -//# sourceMappingURL=trace-mapping.umd.js.map diff --git a/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map b/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map deleted file mode 100644 index c6716eaf..00000000 --- a/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"trace-mapping.umd.js","sources":["../src/resolve.ts","../src/strip-filename.ts","../src/sourcemap-segment.ts","../src/sort.ts","../src/binary-search.ts","../src/by-source.ts","../src/any-map.ts","../src/trace-mapping.ts"],"sourcesContent":["import resolveUri from '@jridgewell/resolve-uri';\n\nexport default function resolve(input: string, base: string | undefined): string {\n // The base is always treated as a directory, if it's not empty.\n // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327\n // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401\n if (base && !base.endsWith('/')) base += '/';\n\n return resolveUri(input, base);\n}\n","/**\n * Removes everything after the last \"/\", but leaves the slash.\n */\nexport default function stripFilename(path: string | undefined | null): string {\n if (!path) return '';\n const index = path.lastIndexOf('/');\n return path.slice(0, index + 1);\n}\n","type GeneratedColumn = number;\ntype SourcesIndex = number;\ntype SourceLine = number;\ntype SourceColumn = number;\ntype NamesIndex = number;\n\ntype GeneratedLine = number;\n\nexport type SourceMapSegment =\n | [GeneratedColumn]\n | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn]\n | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];\n\nexport type ReverseSegment = [SourceColumn, GeneratedLine, GeneratedColumn];\n\nexport const COLUMN = 0;\nexport const SOURCES_INDEX = 1;\nexport const SOURCE_LINE = 2;\nexport const SOURCE_COLUMN = 3;\nexport const NAMES_INDEX = 4;\n\nexport const REV_GENERATED_LINE = 1;\nexport const REV_GENERATED_COLUMN = 2;\n","import { COLUMN } from './sourcemap-segment';\n\nimport type { SourceMapSegment } from './sourcemap-segment';\n\nexport default function maybeSort(\n mappings: SourceMapSegment[][],\n owned: boolean,\n): SourceMapSegment[][] {\n const unsortedIndex = nextUnsortedSegmentLine(mappings, 0);\n if (unsortedIndex === mappings.length) return mappings;\n\n // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If\n // not, we do not want to modify the consumer's input array.\n if (!owned) mappings = mappings.slice();\n\n for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) {\n mappings[i] = sortSegments(mappings[i], owned);\n }\n return mappings;\n}\n\nfunction nextUnsortedSegmentLine(mappings: SourceMapSegment[][], start: number): number {\n for (let i = start; i < mappings.length; i++) {\n if (!isSorted(mappings[i])) return i;\n }\n return mappings.length;\n}\n\nfunction isSorted(line: SourceMapSegment[]): boolean {\n for (let j = 1; j < line.length; j++) {\n if (line[j][COLUMN] < line[j - 1][COLUMN]) {\n return false;\n }\n }\n return true;\n}\n\nfunction sortSegments(line: SourceMapSegment[], owned: boolean): SourceMapSegment[] {\n if (!owned) line = line.slice();\n return line.sort(sortComparator);\n}\n\nfunction sortComparator(a: SourceMapSegment, b: SourceMapSegment): number {\n return a[COLUMN] - b[COLUMN];\n}\n","import type { SourceMapSegment, ReverseSegment } from './sourcemap-segment';\nimport { COLUMN } from './sourcemap-segment';\n\nexport type MemoState = {\n lastKey: number;\n lastNeedle: number;\n lastIndex: number;\n};\n\nexport let found = false;\n\n/**\n * A binary search implementation that returns the index if a match is found.\n * If no match is found, then the left-index (the index associated with the item that comes just\n * before the desired index) is returned. To maintain proper sort order, a splice would happen at\n * the next index:\n *\n * ```js\n * const array = [1, 3];\n * const needle = 2;\n * const index = binarySearch(array, needle, (item, needle) => item - needle);\n *\n * assert.equal(index, 0);\n * array.splice(index + 1, 0, needle);\n * assert.deepEqual(array, [1, 2, 3]);\n * ```\n */\nexport function binarySearch(\n haystack: SourceMapSegment[] | ReverseSegment[],\n needle: number,\n low: number,\n high: number,\n): number {\n while (low <= high) {\n const mid = low + ((high - low) >> 1);\n const cmp = haystack[mid][COLUMN] - needle;\n\n if (cmp === 0) {\n found = true;\n return mid;\n }\n\n if (cmp < 0) {\n low = mid + 1;\n } else {\n high = mid - 1;\n }\n }\n\n found = false;\n return low - 1;\n}\n\nexport function upperBound(\n haystack: SourceMapSegment[] | ReverseSegment[],\n needle: number,\n index: number,\n): number {\n for (let i = index + 1; i < haystack.length; index = i++) {\n if (haystack[i][COLUMN] !== needle) break;\n }\n return index;\n}\n\nexport function lowerBound(\n haystack: SourceMapSegment[] | ReverseSegment[],\n needle: number,\n index: number,\n): number {\n for (let i = index - 1; i >= 0; index = i--) {\n if (haystack[i][COLUMN] !== needle) break;\n }\n return index;\n}\n\nexport function memoizedState(): MemoState {\n return {\n lastKey: -1,\n lastNeedle: -1,\n lastIndex: -1,\n };\n}\n\n/**\n * This overly complicated beast is just to record the last tested line/column and the resulting\n * index, allowing us to skip a few tests if mappings are monotonically increasing.\n */\nexport function memoizedBinarySearch(\n haystack: SourceMapSegment[] | ReverseSegment[],\n needle: number,\n state: MemoState,\n key: number,\n): number {\n const { lastKey, lastNeedle, lastIndex } = state;\n\n let low = 0;\n let high = haystack.length - 1;\n if (key === lastKey) {\n if (needle === lastNeedle) {\n found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle;\n return lastIndex;\n }\n\n if (needle >= lastNeedle) {\n // lastIndex may be -1 if the previous needle was not found.\n low = lastIndex === -1 ? 0 : lastIndex;\n } else {\n high = lastIndex;\n }\n }\n state.lastKey = key;\n state.lastNeedle = needle;\n\n return (state.lastIndex = binarySearch(haystack, needle, low, high));\n}\n","import { COLUMN, SOURCES_INDEX, SOURCE_LINE, SOURCE_COLUMN } from './sourcemap-segment';\nimport { memoizedBinarySearch, upperBound } from './binary-search';\n\nimport type { ReverseSegment, SourceMapSegment } from './sourcemap-segment';\nimport type { MemoState } from './binary-search';\n\nexport type Source = {\n __proto__: null;\n [line: number]: Exclude[];\n};\n\n// Rebuilds the original source files, with mappings that are ordered by source line/column instead\n// of generated line/column.\nexport default function buildBySources(\n decoded: readonly SourceMapSegment[][],\n memos: MemoState[],\n): Source[] {\n const sources: Source[] = memos.map(buildNullArray);\n\n for (let i = 0; i < decoded.length; i++) {\n const line = decoded[i];\n for (let j = 0; j < line.length; j++) {\n const seg = line[j];\n if (seg.length === 1) continue;\n\n const sourceIndex = seg[SOURCES_INDEX];\n const sourceLine = seg[SOURCE_LINE];\n const sourceColumn = seg[SOURCE_COLUMN];\n const originalSource = sources[sourceIndex];\n const originalLine = (originalSource[sourceLine] ||= []);\n const memo = memos[sourceIndex];\n\n // The binary search either found a match, or it found the left-index just before where the\n // segment should go. Either way, we want to insert after that. And there may be multiple\n // generated segments associated with an original location, so there may need to move several\n // indexes before we find where we need to insert.\n let index = upperBound(\n originalLine,\n sourceColumn,\n memoizedBinarySearch(originalLine, sourceColumn, memo, sourceLine),\n );\n\n memo.lastIndex = ++index;\n insert(originalLine, index, [sourceColumn, i, seg[COLUMN]]);\n }\n }\n\n return sources;\n}\n\nfunction insert(array: T[], index: number, value: T) {\n for (let i = array.length; i > index; i--) {\n array[i] = array[i - 1];\n }\n array[index] = value;\n}\n\n// Null arrays allow us to use ordered index keys without actually allocating contiguous memory like\n// a real array. We use a null-prototype object to avoid prototype pollution and deoptimizations.\n// Numeric properties on objects are magically sorted in ascending order by the engine regardless of\n// the insertion order. So, by setting any numeric keys, even out of order, we'll get ascending\n// order when iterating with for-in.\nfunction buildNullArray(): T {\n return { __proto__: null } as T;\n}\n","import { TraceMap, presortedDecodedMap, decodedMappings } from './trace-mapping';\nimport {\n COLUMN,\n SOURCES_INDEX,\n SOURCE_LINE,\n SOURCE_COLUMN,\n NAMES_INDEX,\n} from './sourcemap-segment';\n\nimport type {\n DecodedSourceMap,\n DecodedSourceMapXInput,\n EncodedSourceMapXInput,\n SectionedSourceMapXInput,\n SectionedSourceMapInput,\n SectionXInput,\n} from './types';\nimport type { SourceMapSegment } from './sourcemap-segment';\n\ntype AnyMap = {\n new (map: SectionedSourceMapInput, mapUrl?: string | null): TraceMap;\n (map: SectionedSourceMapInput, mapUrl?: string | null): TraceMap;\n};\n\nexport const AnyMap: AnyMap = function (map, mapUrl) {\n const parsed = parse(map);\n\n if (!('sections' in parsed)) {\n return new TraceMap(parsed as DecodedSourceMapXInput | EncodedSourceMapXInput, mapUrl);\n }\n\n const mappings: SourceMapSegment[][] = [];\n const sources: string[] = [];\n const sourcesContent: (string | null)[] = [];\n const names: string[] = [];\n const ignoreList: number[] = [];\n\n recurse(\n parsed,\n mapUrl,\n mappings,\n sources,\n sourcesContent,\n names,\n ignoreList,\n 0,\n 0,\n Infinity,\n Infinity,\n );\n\n const joined: DecodedSourceMap = {\n version: 3,\n file: parsed.file,\n names,\n sources,\n sourcesContent,\n mappings,\n ignoreList,\n };\n\n return presortedDecodedMap(joined);\n} as AnyMap;\n\nfunction parse(map: T): Exclude {\n return typeof map === 'string' ? JSON.parse(map) : map;\n}\n\nfunction recurse(\n input: SectionedSourceMapXInput,\n mapUrl: string | null | undefined,\n mappings: SourceMapSegment[][],\n sources: string[],\n sourcesContent: (string | null)[],\n names: string[],\n ignoreList: number[],\n lineOffset: number,\n columnOffset: number,\n stopLine: number,\n stopColumn: number,\n) {\n const { sections } = input;\n for (let i = 0; i < sections.length; i++) {\n const { map, offset } = sections[i];\n\n let sl = stopLine;\n let sc = stopColumn;\n if (i + 1 < sections.length) {\n const nextOffset = sections[i + 1].offset;\n sl = Math.min(stopLine, lineOffset + nextOffset.line);\n\n if (sl === stopLine) {\n sc = Math.min(stopColumn, columnOffset + nextOffset.column);\n } else if (sl < stopLine) {\n sc = columnOffset + nextOffset.column;\n }\n }\n\n addSection(\n map,\n mapUrl,\n mappings,\n sources,\n sourcesContent,\n names,\n ignoreList,\n lineOffset + offset.line,\n columnOffset + offset.column,\n sl,\n sc,\n );\n }\n}\n\nfunction addSection(\n input: SectionXInput['map'],\n mapUrl: string | null | undefined,\n mappings: SourceMapSegment[][],\n sources: string[],\n sourcesContent: (string | null)[],\n names: string[],\n ignoreList: number[],\n lineOffset: number,\n columnOffset: number,\n stopLine: number,\n stopColumn: number,\n) {\n const parsed = parse(input);\n if ('sections' in parsed) return recurse(...(arguments as unknown as Parameters));\n\n const map = new TraceMap(parsed, mapUrl);\n const sourcesOffset = sources.length;\n const namesOffset = names.length;\n const decoded = decodedMappings(map);\n const { resolvedSources, sourcesContent: contents, ignoreList: ignores } = map;\n\n append(sources, resolvedSources);\n append(names, map.names);\n\n if (contents) append(sourcesContent, contents);\n else for (let i = 0; i < resolvedSources.length; i++) sourcesContent.push(null);\n\n if (ignores) for (let i = 0; i < ignores.length; i++) ignoreList.push(ignores[i] + sourcesOffset);\n\n for (let i = 0; i < decoded.length; i++) {\n const lineI = lineOffset + i;\n\n // We can only add so many lines before we step into the range that the next section's map\n // controls. When we get to the last line, then we'll start checking the segments to see if\n // they've crossed into the column range. But it may not have any columns that overstep, so we\n // still need to check that we don't overstep lines, too.\n if (lineI > stopLine) return;\n\n // The out line may already exist in mappings (if we're continuing the line started by a\n // previous section). Or, we may have jumped ahead several lines to start this section.\n const out = getLine(mappings, lineI);\n // On the 0th loop, the section's column offset shifts us forward. On all other lines (since the\n // map can be multiple lines), it doesn't.\n const cOffset = i === 0 ? columnOffset : 0;\n\n const line = decoded[i];\n for (let j = 0; j < line.length; j++) {\n const seg = line[j];\n const column = cOffset + seg[COLUMN];\n\n // If this segment steps into the column range that the next section's map controls, we need\n // to stop early.\n if (lineI === stopLine && column >= stopColumn) return;\n\n if (seg.length === 1) {\n out.push([column]);\n continue;\n }\n\n const sourcesIndex = sourcesOffset + seg[SOURCES_INDEX];\n const sourceLine = seg[SOURCE_LINE];\n const sourceColumn = seg[SOURCE_COLUMN];\n out.push(\n seg.length === 4\n ? [column, sourcesIndex, sourceLine, sourceColumn]\n : [column, sourcesIndex, sourceLine, sourceColumn, namesOffset + seg[NAMES_INDEX]],\n );\n }\n }\n}\n\nfunction append(arr: T[], other: T[]) {\n for (let i = 0; i < other.length; i++) arr.push(other[i]);\n}\n\nfunction getLine(arr: T[][], index: number): T[] {\n for (let i = arr.length; i <= index; i++) arr[i] = [];\n return arr[index];\n}\n","import { encode, decode } from '@jridgewell/sourcemap-codec';\n\nimport resolve from './resolve';\nimport stripFilename from './strip-filename';\nimport maybeSort from './sort';\nimport buildBySources from './by-source';\nimport {\n memoizedState,\n memoizedBinarySearch,\n upperBound,\n lowerBound,\n found as bsFound,\n} from './binary-search';\nimport {\n COLUMN,\n SOURCES_INDEX,\n SOURCE_LINE,\n SOURCE_COLUMN,\n NAMES_INDEX,\n REV_GENERATED_LINE,\n REV_GENERATED_COLUMN,\n} from './sourcemap-segment';\n\nimport type { SourceMapSegment, ReverseSegment } from './sourcemap-segment';\nimport type {\n SourceMapV3,\n DecodedSourceMap,\n EncodedSourceMap,\n InvalidOriginalMapping,\n OriginalMapping,\n InvalidGeneratedMapping,\n GeneratedMapping,\n SourceMapInput,\n Needle,\n SourceNeedle,\n SourceMap,\n EachMapping,\n Bias,\n XInput,\n} from './types';\nimport type { Source } from './by-source';\nimport type { MemoState } from './binary-search';\n\nexport type { SourceMapSegment } from './sourcemap-segment';\nexport type {\n SourceMap,\n DecodedSourceMap,\n EncodedSourceMap,\n Section,\n SectionedSourceMap,\n SourceMapV3,\n Bias,\n EachMapping,\n GeneratedMapping,\n InvalidGeneratedMapping,\n InvalidOriginalMapping,\n Needle,\n OriginalMapping,\n OriginalMapping as Mapping,\n SectionedSourceMapInput,\n SourceMapInput,\n SourceNeedle,\n XInput,\n EncodedSourceMapXInput,\n DecodedSourceMapXInput,\n SectionedSourceMapXInput,\n SectionXInput,\n} from './types';\n\ninterface PublicMap {\n _encoded: TraceMap['_encoded'];\n _decoded: TraceMap['_decoded'];\n _decodedMemo: TraceMap['_decodedMemo'];\n _bySources: TraceMap['_bySources'];\n _bySourceMemos: TraceMap['_bySourceMemos'];\n}\n\nconst LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)';\nconst COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)';\n\nexport const LEAST_UPPER_BOUND = -1;\nexport const GREATEST_LOWER_BOUND = 1;\n\nexport { AnyMap } from './any-map';\n\nexport class TraceMap implements SourceMap {\n declare version: SourceMapV3['version'];\n declare file: SourceMapV3['file'];\n declare names: SourceMapV3['names'];\n declare sourceRoot: SourceMapV3['sourceRoot'];\n declare sources: SourceMapV3['sources'];\n declare sourcesContent: SourceMapV3['sourcesContent'];\n declare ignoreList: SourceMapV3['ignoreList'];\n\n declare resolvedSources: string[];\n private declare _encoded: string | undefined;\n\n private declare _decoded: SourceMapSegment[][] | undefined;\n private declare _decodedMemo: MemoState;\n\n private declare _bySources: Source[] | undefined;\n private declare _bySourceMemos: MemoState[] | undefined;\n\n constructor(map: SourceMapInput, mapUrl?: string | null) {\n const isString = typeof map === 'string';\n\n if (!isString && (map as unknown as { _decodedMemo: any })._decodedMemo) return map as TraceMap;\n\n const parsed = (isString ? JSON.parse(map) : map) as DecodedSourceMap | EncodedSourceMap;\n\n const { version, file, names, sourceRoot, sources, sourcesContent } = parsed;\n this.version = version;\n this.file = file;\n this.names = names || [];\n this.sourceRoot = sourceRoot;\n this.sources = sources;\n this.sourcesContent = sourcesContent;\n this.ignoreList = parsed.ignoreList || (parsed as XInput).x_google_ignoreList || undefined;\n\n const from = resolve(sourceRoot || '', stripFilename(mapUrl));\n this.resolvedSources = sources.map((s) => resolve(s || '', from));\n\n const { mappings } = parsed;\n if (typeof mappings === 'string') {\n this._encoded = mappings;\n this._decoded = undefined;\n } else {\n this._encoded = undefined;\n this._decoded = maybeSort(mappings, isString);\n }\n\n this._decodedMemo = memoizedState();\n this._bySources = undefined;\n this._bySourceMemos = undefined;\n }\n}\n\n/**\n * Typescript doesn't allow friend access to private fields, so this just casts the map into a type\n * with public access modifiers.\n */\nfunction cast(map: unknown): PublicMap {\n return map as any;\n}\n\n/**\n * Returns the encoded (VLQ string) form of the SourceMap's mappings field.\n */\nexport function encodedMappings(map: TraceMap): EncodedSourceMap['mappings'] {\n return (cast(map)._encoded ??= encode(cast(map)._decoded!));\n}\n\n/**\n * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field.\n */\nexport function decodedMappings(map: TraceMap): Readonly {\n return (cast(map)._decoded ||= decode(cast(map)._encoded!));\n}\n\n/**\n * A low-level API to find the segment associated with a generated line/column (think, from a\n * stack trace). Line and column here are 0-based, unlike `originalPositionFor`.\n */\nexport function traceSegment(\n map: TraceMap,\n line: number,\n column: number,\n): Readonly | null {\n const decoded = decodedMappings(map);\n\n // It's common for parent source maps to have pointers to lines that have no\n // mapping (like a \"//# sourceMappingURL=\") at the end of the child file.\n if (line >= decoded.length) return null;\n\n const segments = decoded[line];\n const index = traceSegmentInternal(\n segments,\n cast(map)._decodedMemo,\n line,\n column,\n GREATEST_LOWER_BOUND,\n );\n\n return index === -1 ? null : segments[index];\n}\n\n/**\n * A higher-level API to find the source/line/column associated with a generated line/column\n * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in\n * `source-map` library.\n */\nexport function originalPositionFor(\n map: TraceMap,\n needle: Needle,\n): OriginalMapping | InvalidOriginalMapping {\n let { line, column, bias } = needle;\n line--;\n if (line < 0) throw new Error(LINE_GTR_ZERO);\n if (column < 0) throw new Error(COL_GTR_EQ_ZERO);\n\n const decoded = decodedMappings(map);\n\n // It's common for parent source maps to have pointers to lines that have no\n // mapping (like a \"//# sourceMappingURL=\") at the end of the child file.\n if (line >= decoded.length) return OMapping(null, null, null, null);\n\n const segments = decoded[line];\n const index = traceSegmentInternal(\n segments,\n cast(map)._decodedMemo,\n line,\n column,\n bias || GREATEST_LOWER_BOUND,\n );\n\n if (index === -1) return OMapping(null, null, null, null);\n\n const segment = segments[index];\n if (segment.length === 1) return OMapping(null, null, null, null);\n\n const { names, resolvedSources } = map;\n return OMapping(\n resolvedSources[segment[SOURCES_INDEX]],\n segment[SOURCE_LINE] + 1,\n segment[SOURCE_COLUMN],\n segment.length === 5 ? names[segment[NAMES_INDEX]] : null,\n );\n}\n\n/**\n * Finds the generated line/column position of the provided source/line/column source position.\n */\nexport function generatedPositionFor(\n map: TraceMap,\n needle: SourceNeedle,\n): GeneratedMapping | InvalidGeneratedMapping {\n const { source, line, column, bias } = needle;\n return generatedPosition(map, source, line, column, bias || GREATEST_LOWER_BOUND, false);\n}\n\n/**\n * Finds all generated line/column positions of the provided source/line/column source position.\n */\nexport function allGeneratedPositionsFor(map: TraceMap, needle: SourceNeedle): GeneratedMapping[] {\n const { source, line, column, bias } = needle;\n // SourceMapConsumer uses LEAST_UPPER_BOUND for some reason, so we follow suit.\n return generatedPosition(map, source, line, column, bias || LEAST_UPPER_BOUND, true);\n}\n\n/**\n * Iterates each mapping in generated position order.\n */\nexport function eachMapping(map: TraceMap, cb: (mapping: EachMapping) => void): void {\n const decoded = decodedMappings(map);\n const { names, resolvedSources } = map;\n\n for (let i = 0; i < decoded.length; i++) {\n const line = decoded[i];\n for (let j = 0; j < line.length; j++) {\n const seg = line[j];\n\n const generatedLine = i + 1;\n const generatedColumn = seg[0];\n let source = null;\n let originalLine = null;\n let originalColumn = null;\n let name = null;\n if (seg.length !== 1) {\n source = resolvedSources[seg[1]];\n originalLine = seg[2] + 1;\n originalColumn = seg[3];\n }\n if (seg.length === 5) name = names[seg[4]];\n\n cb({\n generatedLine,\n generatedColumn,\n source,\n originalLine,\n originalColumn,\n name,\n } as EachMapping);\n }\n }\n}\n\nfunction sourceIndex(map: TraceMap, source: string): number {\n const { sources, resolvedSources } = map;\n let index = sources.indexOf(source);\n if (index === -1) index = resolvedSources.indexOf(source);\n return index;\n}\n\n/**\n * Retrieves the source content for a particular source, if its found. Returns null if not.\n */\nexport function sourceContentFor(map: TraceMap, source: string): string | null {\n const { sourcesContent } = map;\n if (sourcesContent == null) return null;\n const index = sourceIndex(map, source);\n return index === -1 ? null : sourcesContent[index];\n}\n\n/**\n * Determines if the source is marked to ignore by the source map.\n */\nexport function isIgnored(map: TraceMap, source: string): boolean {\n const { ignoreList } = map;\n if (ignoreList == null) return false;\n const index = sourceIndex(map, source);\n return index === -1 ? false : ignoreList.includes(index);\n}\n\n/**\n * A helper that skips sorting of the input map's mappings array, which can be expensive for larger\n * maps.\n */\nexport function presortedDecodedMap(map: DecodedSourceMap, mapUrl?: string): TraceMap {\n const tracer = new TraceMap(clone(map, []), mapUrl);\n cast(tracer)._decoded = map.mappings;\n return tracer;\n}\n\n/**\n * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects\n * a sourcemap, or to JSON.stringify.\n */\nexport function decodedMap(\n map: TraceMap,\n): Omit & { mappings: readonly SourceMapSegment[][] } {\n return clone(map, decodedMappings(map));\n}\n\n/**\n * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects\n * a sourcemap, or to JSON.stringify.\n */\nexport function encodedMap(map: TraceMap): EncodedSourceMap {\n return clone(map, encodedMappings(map));\n}\n\nfunction clone(\n map: TraceMap | DecodedSourceMap,\n mappings: T,\n): T extends string ? EncodedSourceMap : DecodedSourceMap {\n return {\n version: map.version,\n file: map.file,\n names: map.names,\n sourceRoot: map.sourceRoot,\n sources: map.sources,\n sourcesContent: map.sourcesContent,\n mappings,\n ignoreList: map.ignoreList || (map as XInput).x_google_ignoreList,\n } as any;\n}\n\nfunction OMapping(source: null, line: null, column: null, name: null): InvalidOriginalMapping;\nfunction OMapping(\n source: string,\n line: number,\n column: number,\n name: string | null,\n): OriginalMapping;\nfunction OMapping(\n source: string | null,\n line: number | null,\n column: number | null,\n name: string | null,\n): OriginalMapping | InvalidOriginalMapping {\n return { source, line, column, name } as any;\n}\n\nfunction GMapping(line: null, column: null): InvalidGeneratedMapping;\nfunction GMapping(line: number, column: number): GeneratedMapping;\nfunction GMapping(\n line: number | null,\n column: number | null,\n): GeneratedMapping | InvalidGeneratedMapping {\n return { line, column } as any;\n}\n\nfunction traceSegmentInternal(\n segments: SourceMapSegment[],\n memo: MemoState,\n line: number,\n column: number,\n bias: Bias,\n): number;\nfunction traceSegmentInternal(\n segments: ReverseSegment[],\n memo: MemoState,\n line: number,\n column: number,\n bias: Bias,\n): number;\nfunction traceSegmentInternal(\n segments: SourceMapSegment[] | ReverseSegment[],\n memo: MemoState,\n line: number,\n column: number,\n bias: Bias,\n): number {\n let index = memoizedBinarySearch(segments, column, memo, line);\n if (bsFound) {\n index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index);\n } else if (bias === LEAST_UPPER_BOUND) index++;\n\n if (index === -1 || index === segments.length) return -1;\n return index;\n}\n\nfunction sliceGeneratedPositions(\n segments: ReverseSegment[],\n memo: MemoState,\n line: number,\n column: number,\n bias: Bias,\n): GeneratedMapping[] {\n let min = traceSegmentInternal(segments, memo, line, column, GREATEST_LOWER_BOUND);\n\n // We ignored the bias when tracing the segment so that we're guarnateed to find the first (in\n // insertion order) segment that matched. Even if we did respect the bias when tracing, we would\n // still need to call `lowerBound()` to find the first segment, which is slower than just looking\n // for the GREATEST_LOWER_BOUND to begin with. The only difference that matters for us is when the\n // binary search didn't match, in which case GREATEST_LOWER_BOUND just needs to increment to\n // match LEAST_UPPER_BOUND.\n if (!bsFound && bias === LEAST_UPPER_BOUND) min++;\n\n if (min === -1 || min === segments.length) return [];\n\n // We may have found the segment that started at an earlier column. If this is the case, then we\n // need to slice all generated segments that match _that_ column, because all such segments span\n // to our desired column.\n const matchedColumn = bsFound ? column : segments[min][COLUMN];\n\n // The binary search is not guaranteed to find the lower bound when a match wasn't found.\n if (!bsFound) min = lowerBound(segments, matchedColumn, min);\n const max = upperBound(segments, matchedColumn, min);\n\n const result = [];\n for (; min <= max; min++) {\n const segment = segments[min];\n result.push(GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]));\n }\n return result;\n}\n\nfunction generatedPosition(\n map: TraceMap,\n source: string,\n line: number,\n column: number,\n bias: Bias,\n all: false,\n): GeneratedMapping | InvalidGeneratedMapping;\nfunction generatedPosition(\n map: TraceMap,\n source: string,\n line: number,\n column: number,\n bias: Bias,\n all: true,\n): GeneratedMapping[];\nfunction generatedPosition(\n map: TraceMap,\n source: string,\n line: number,\n column: number,\n bias: Bias,\n all: boolean,\n): GeneratedMapping | InvalidGeneratedMapping | GeneratedMapping[] {\n line--;\n if (line < 0) throw new Error(LINE_GTR_ZERO);\n if (column < 0) throw new Error(COL_GTR_EQ_ZERO);\n\n const { sources, resolvedSources } = map;\n let sourceIndex = sources.indexOf(source);\n if (sourceIndex === -1) sourceIndex = resolvedSources.indexOf(source);\n if (sourceIndex === -1) return all ? [] : GMapping(null, null);\n\n const generated = (cast(map)._bySources ||= buildBySources(\n decodedMappings(map),\n (cast(map)._bySourceMemos = sources.map(memoizedState)),\n ));\n\n const segments = generated[sourceIndex][line];\n if (segments == null) return all ? [] : GMapping(null, null);\n\n const memo = cast(map)._bySourceMemos![sourceIndex];\n\n if (all) return sliceGeneratedPositions(segments, memo, line, column, bias);\n\n const index = traceSegmentInternal(segments, memo, line, column, bias);\n if (index === -1) return GMapping(null, null);\n\n const segment = segments[index];\n return GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]);\n}\n"],"names":["encode","decode","bsFound"],"mappings":";;;;;;IAEc,SAAU,OAAO,CAAC,KAAa,EAAE,IAAwB,EAAA;;;;QAIrE,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC;YAAE,IAAI,IAAI,GAAG,CAAC;IAE7C,IAAA,OAAO,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACjC;;ICTA;;IAEG;IACqB,SAAA,aAAa,CAAC,IAA+B,EAAA;IACnE,IAAA,IAAI,CAAC,IAAI;IAAE,QAAA,OAAO,EAAE,CAAC;QACrB,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACpC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;IAClC;;ICQO,MAAM,MAAM,GAAG,CAAC,CAAC;IACjB,MAAM,aAAa,GAAG,CAAC,CAAC;IACxB,MAAM,WAAW,GAAG,CAAC,CAAC;IACtB,MAAM,aAAa,GAAG,CAAC,CAAC;IACxB,MAAM,WAAW,GAAG,CAAC,CAAC;IAEtB,MAAM,kBAAkB,GAAG,CAAC,CAAC;IAC7B,MAAM,oBAAoB,GAAG,CAAC;;IClBvB,SAAU,SAAS,CAC/B,QAA8B,EAC9B,KAAc,EAAA;QAEd,MAAM,aAAa,GAAG,uBAAuB,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IAC3D,IAAA,IAAI,aAAa,KAAK,QAAQ,CAAC,MAAM;IAAE,QAAA,OAAO,QAAQ,CAAC;;;IAIvD,IAAA,IAAI,CAAC,KAAK;IAAE,QAAA,QAAQ,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC;QAExC,KAAK,IAAI,CAAC,GAAG,aAAa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types/any-map.d.ts b/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts deleted file mode 100644 index ec775fbe..00000000 --- a/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { TraceMap } from './trace-mapping'; -import type { SectionedSourceMapInput } from './types'; -type AnyMap = { - new (map: SectionedSourceMapInput, mapUrl?: string | null): TraceMap; - (map: SectionedSourceMapInput, mapUrl?: string | null): TraceMap; -}; -export declare const AnyMap: AnyMap; -export {}; diff --git a/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts b/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts deleted file mode 100644 index ecb2873c..00000000 --- a/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type { SourceMapSegment, ReverseSegment } from './sourcemap-segment'; -export type MemoState = { - lastKey: number; - lastNeedle: number; - lastIndex: number; -}; -export declare let found: boolean; -/** - * A binary search implementation that returns the index if a match is found. - * If no match is found, then the left-index (the index associated with the item that comes just - * before the desired index) is returned. To maintain proper sort order, a splice would happen at - * the next index: - * - * ```js - * const array = [1, 3]; - * const needle = 2; - * const index = binarySearch(array, needle, (item, needle) => item - needle); - * - * assert.equal(index, 0); - * array.splice(index + 1, 0, needle); - * assert.deepEqual(array, [1, 2, 3]); - * ``` - */ -export declare function binarySearch(haystack: SourceMapSegment[] | ReverseSegment[], needle: number, low: number, high: number): number; -export declare function upperBound(haystack: SourceMapSegment[] | ReverseSegment[], needle: number, index: number): number; -export declare function lowerBound(haystack: SourceMapSegment[] | ReverseSegment[], needle: number, index: number): number; -export declare function memoizedState(): MemoState; -/** - * This overly complicated beast is just to record the last tested line/column and the resulting - * index, allowing us to skip a few tests if mappings are monotonically increasing. - */ -export declare function memoizedBinarySearch(haystack: SourceMapSegment[] | ReverseSegment[], needle: number, state: MemoState, key: number): number; diff --git a/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts b/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts deleted file mode 100644 index a91751cd..00000000 --- a/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { ReverseSegment, SourceMapSegment } from './sourcemap-segment'; -import type { MemoState } from './binary-search'; -export type Source = { - __proto__: null; - [line: number]: Exclude[]; -}; -export default function buildBySources(decoded: readonly SourceMapSegment[][], memos: MemoState[]): Source[]; diff --git a/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts b/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts deleted file mode 100644 index cf7d4f8a..00000000 --- a/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function resolve(input: string, base: string | undefined): string; diff --git a/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts b/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts deleted file mode 100644 index 2bfb5dc1..00000000 --- a/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { SourceMapSegment } from './sourcemap-segment'; -export default function maybeSort(mappings: SourceMapSegment[][], owned: boolean): SourceMapSegment[][]; diff --git a/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts b/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts deleted file mode 100644 index 6d4d318d..00000000 --- a/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -type GeneratedColumn = number; -type SourcesIndex = number; -type SourceLine = number; -type SourceColumn = number; -type NamesIndex = number; -type GeneratedLine = number; -export type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex]; -export type ReverseSegment = [SourceColumn, GeneratedLine, GeneratedColumn]; -export declare const COLUMN = 0; -export declare const SOURCES_INDEX = 1; -export declare const SOURCE_LINE = 2; -export declare const SOURCE_COLUMN = 3; -export declare const NAMES_INDEX = 4; -export declare const REV_GENERATED_LINE = 1; -export declare const REV_GENERATED_COLUMN = 2; -export {}; diff --git a/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts b/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts deleted file mode 100644 index bead5c12..00000000 --- a/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Removes everything after the last "/", but leaves the slash. - */ -export default function stripFilename(path: string | undefined | null): string; diff --git a/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts b/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts deleted file mode 100644 index f618ec36..00000000 --- a/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +++ /dev/null @@ -1,79 +0,0 @@ -import type { SourceMapSegment } from './sourcemap-segment'; -import type { SourceMapV3, DecodedSourceMap, EncodedSourceMap, InvalidOriginalMapping, OriginalMapping, InvalidGeneratedMapping, GeneratedMapping, SourceMapInput, Needle, SourceNeedle, SourceMap, EachMapping } from './types'; -export type { SourceMapSegment } from './sourcemap-segment'; -export type { SourceMap, DecodedSourceMap, EncodedSourceMap, Section, SectionedSourceMap, SourceMapV3, Bias, EachMapping, GeneratedMapping, InvalidGeneratedMapping, InvalidOriginalMapping, Needle, OriginalMapping, OriginalMapping as Mapping, SectionedSourceMapInput, SourceMapInput, SourceNeedle, XInput, EncodedSourceMapXInput, DecodedSourceMapXInput, SectionedSourceMapXInput, SectionXInput, } from './types'; -export declare const LEAST_UPPER_BOUND = -1; -export declare const GREATEST_LOWER_BOUND = 1; -export { AnyMap } from './any-map'; -export declare class TraceMap implements SourceMap { - version: SourceMapV3['version']; - file: SourceMapV3['file']; - names: SourceMapV3['names']; - sourceRoot: SourceMapV3['sourceRoot']; - sources: SourceMapV3['sources']; - sourcesContent: SourceMapV3['sourcesContent']; - ignoreList: SourceMapV3['ignoreList']; - resolvedSources: string[]; - private _encoded; - private _decoded; - private _decodedMemo; - private _bySources; - private _bySourceMemos; - constructor(map: SourceMapInput, mapUrl?: string | null); -} -/** - * Returns the encoded (VLQ string) form of the SourceMap's mappings field. - */ -export declare function encodedMappings(map: TraceMap): EncodedSourceMap['mappings']; -/** - * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field. - */ -export declare function decodedMappings(map: TraceMap): Readonly; -/** - * A low-level API to find the segment associated with a generated line/column (think, from a - * stack trace). Line and column here are 0-based, unlike `originalPositionFor`. - */ -export declare function traceSegment(map: TraceMap, line: number, column: number): Readonly | null; -/** - * A higher-level API to find the source/line/column associated with a generated line/column - * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in - * `source-map` library. - */ -export declare function originalPositionFor(map: TraceMap, needle: Needle): OriginalMapping | InvalidOriginalMapping; -/** - * Finds the generated line/column position of the provided source/line/column source position. - */ -export declare function generatedPositionFor(map: TraceMap, needle: SourceNeedle): GeneratedMapping | InvalidGeneratedMapping; -/** - * Finds all generated line/column positions of the provided source/line/column source position. - */ -export declare function allGeneratedPositionsFor(map: TraceMap, needle: SourceNeedle): GeneratedMapping[]; -/** - * Iterates each mapping in generated position order. - */ -export declare function eachMapping(map: TraceMap, cb: (mapping: EachMapping) => void): void; -/** - * Retrieves the source content for a particular source, if its found. Returns null if not. - */ -export declare function sourceContentFor(map: TraceMap, source: string): string | null; -/** - * Determines if the source is marked to ignore by the source map. - */ -export declare function isIgnored(map: TraceMap, source: string): boolean; -/** - * A helper that skips sorting of the input map's mappings array, which can be expensive for larger - * maps. - */ -export declare function presortedDecodedMap(map: DecodedSourceMap, mapUrl?: string): TraceMap; -/** - * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ -export declare function decodedMap(map: TraceMap): Omit & { - mappings: readonly SourceMapSegment[][]; -}; -/** - * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ -export declare function encodedMap(map: TraceMap): EncodedSourceMap; diff --git a/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts b/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts deleted file mode 100644 index a94e6b25..00000000 --- a/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +++ /dev/null @@ -1,99 +0,0 @@ -import type { SourceMapSegment } from './sourcemap-segment'; -import type { GREATEST_LOWER_BOUND, LEAST_UPPER_BOUND, TraceMap } from './trace-mapping'; -export interface SourceMapV3 { - file?: string | null; - names: string[]; - sourceRoot?: string; - sources: (string | null)[]; - sourcesContent?: (string | null)[]; - version: 3; - ignoreList?: number[]; -} -export interface EncodedSourceMap extends SourceMapV3 { - mappings: string; -} -export interface DecodedSourceMap extends SourceMapV3 { - mappings: SourceMapSegment[][]; -} -export interface Section { - offset: { - line: number; - column: number; - }; - map: EncodedSourceMap | DecodedSourceMap | SectionedSourceMap; -} -export interface SectionedSourceMap { - file?: string | null; - sections: Section[]; - version: 3; -} -export type OriginalMapping = { - source: string | null; - line: number; - column: number; - name: string | null; -}; -export type InvalidOriginalMapping = { - source: null; - line: null; - column: null; - name: null; -}; -export type GeneratedMapping = { - line: number; - column: number; -}; -export type InvalidGeneratedMapping = { - line: null; - column: null; -}; -export type Bias = typeof GREATEST_LOWER_BOUND | typeof LEAST_UPPER_BOUND; -export type XInput = { - x_google_ignoreList?: SourceMapV3['ignoreList']; -}; -export type EncodedSourceMapXInput = EncodedSourceMap & XInput; -export type DecodedSourceMapXInput = DecodedSourceMap & XInput; -export type SectionedSourceMapXInput = Omit & { - sections: SectionXInput[]; -}; -export type SectionXInput = Omit & { - map: SectionedSourceMapInput; -}; -export type SourceMapInput = string | EncodedSourceMapXInput | DecodedSourceMapXInput | TraceMap; -export type SectionedSourceMapInput = SourceMapInput | SectionedSourceMapXInput; -export type Needle = { - line: number; - column: number; - bias?: Bias; -}; -export type SourceNeedle = { - source: string; - line: number; - column: number; - bias?: Bias; -}; -export type EachMapping = { - generatedLine: number; - generatedColumn: number; - source: null; - originalLine: null; - originalColumn: null; - name: null; -} | { - generatedLine: number; - generatedColumn: number; - source: string | null; - originalLine: number; - originalColumn: number; - name: string | null; -}; -export declare abstract class SourceMap { - version: SourceMapV3['version']; - file: SourceMapV3['file']; - names: SourceMapV3['names']; - sourceRoot: SourceMapV3['sourceRoot']; - sources: SourceMapV3['sources']; - sourcesContent: SourceMapV3['sourcesContent']; - resolvedSources: SourceMapV3['sources']; - ignoreList: SourceMapV3['ignoreList']; -} diff --git a/node_modules/@myparcel-eslint/eslint-config-es6/dist/index.d.mts b/node_modules/@myparcel-eslint/eslint-config-es6/dist/index.d.mts deleted file mode 100644 index ab5cc716..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-es6/dist/index.d.mts +++ /dev/null @@ -1,11 +0,0 @@ -import { Linter } from 'eslint'; - -declare const noMagicNumbers: Linter.RuleLevelAndOptions; -declare const arrowSpacing: Linter.RuleLevelAndOptions; -declare const noUselessConstructor: Linter.RuleEntry; -declare const preferTemplate: Linter.RuleEntry; -declare const requireAwait: Linter.RuleEntry; -declare const templateCurlySpacing: Linter.RuleEntry; -declare const config: Linter.Config; - -export { arrowSpacing, config, noMagicNumbers, noUselessConstructor, preferTemplate, requireAwait, templateCurlySpacing }; diff --git a/node_modules/@myparcel-eslint/eslint-config-es6/dist/index.d.ts b/node_modules/@myparcel-eslint/eslint-config-es6/dist/index.d.ts deleted file mode 100644 index ab5cc716..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-es6/dist/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Linter } from 'eslint'; - -declare const noMagicNumbers: Linter.RuleLevelAndOptions; -declare const arrowSpacing: Linter.RuleLevelAndOptions; -declare const noUselessConstructor: Linter.RuleEntry; -declare const preferTemplate: Linter.RuleEntry; -declare const requireAwait: Linter.RuleEntry; -declare const templateCurlySpacing: Linter.RuleEntry; -declare const config: Linter.Config; - -export { arrowSpacing, config, noMagicNumbers, noUselessConstructor, preferTemplate, requireAwait, templateCurlySpacing }; diff --git a/node_modules/@myparcel-eslint/eslint-config-es6/dist/index.js b/node_modules/@myparcel-eslint/eslint-config-es6/dist/index.js deleted file mode 100644 index a713b132..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-es6/dist/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var t=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var g=(e,r)=>{for(var o in r)t(e,o,{get:r[o],enumerable:!0})},d=(e,r,o,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of w(r))!m.call(e,n)&&n!==o&&t(e,n,{get:()=>r[n],enumerable:!(s=u(r,n))||s.enumerable});return e};var y=e=>d(t({},"__esModule",{value:!0}),e);var x={};g(x,{arrowSpacing:()=>i,config:()=>b,noMagicNumbers:()=>a,noUselessConstructor:()=>f,preferTemplate:()=>c,requireAwait:()=>p,templateCurlySpacing:()=>l});module.exports=y(x);var a=["warn",{ignore:[-1,0,1,100],detectObjects:!0,enforceConst:!0}],i=["warn",{before:!0,after:!0}],f="off",c="warn",p="warn",l="warn",b={extends:"@myparcel-eslint/eslint-config",parserOptions:{ecmaVersion:6},rules:{"arrow-body-style":"off","arrow-parens":"warn","arrow-spacing":i,"constructor-super":"off","func-names":["warn","as-needed"],"generator-star-spacing":"off","no-async-promise-executor":"warn","no-await-in-loop":"off","no-class-assign":"off","no-confusing-arrow":"warn","no-const-assign":"warn","no-dupe-class-members":"warn","no-duplicate-imports":"warn","no-magic-numbers":a,"no-new-symbol":"off","no-restricted-imports":"off","no-return-await":"warn","no-this-before-super":"off","no-useless-computed-key":"off","no-useless-constructor":f,"no-useless-rename":"warn","no-var":"warn","object-shorthand":"warn","prefer-arrow-callback":"warn","prefer-const":"warn","prefer-destructuring":["warn",{VariableDeclarator:{array:!1,object:!0},AssignmentExpression:{array:!1,object:!1}}],"prefer-numeric-literals":"off","prefer-rest-params":"off","prefer-spread":"warn","prefer-template":c,"require-await":p,"require-yield":"off","rest-spread-spacing":"off","sort-imports":"warn","symbol-description":"off","template-curly-spacing":l,"yield-star-spacing":"off"}};0&&(module.exports={arrowSpacing,config,noMagicNumbers,noUselessConstructor,preferTemplate,requireAwait,templateCurlySpacing}); diff --git a/node_modules/@myparcel-eslint/eslint-config-es6/dist/index.mjs b/node_modules/@myparcel-eslint/eslint-config-es6/dist/index.mjs deleted file mode 100644 index d3466a28..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-es6/dist/index.mjs +++ /dev/null @@ -1 +0,0 @@ -var r=["warn",{ignore:[-1,0,1,100],detectObjects:!0,enforceConst:!0}],e=["warn",{before:!0,after:!0}],n="off",o="warn",t="warn",s="warn",a={extends:"@myparcel-eslint/eslint-config",parserOptions:{ecmaVersion:6},rules:{"arrow-body-style":"off","arrow-parens":"warn","arrow-spacing":e,"constructor-super":"off","func-names":["warn","as-needed"],"generator-star-spacing":"off","no-async-promise-executor":"warn","no-await-in-loop":"off","no-class-assign":"off","no-confusing-arrow":"warn","no-const-assign":"warn","no-dupe-class-members":"warn","no-duplicate-imports":"warn","no-magic-numbers":r,"no-new-symbol":"off","no-restricted-imports":"off","no-return-await":"warn","no-this-before-super":"off","no-useless-computed-key":"off","no-useless-constructor":n,"no-useless-rename":"warn","no-var":"warn","object-shorthand":"warn","prefer-arrow-callback":"warn","prefer-const":"warn","prefer-destructuring":["warn",{VariableDeclarator:{array:!1,object:!0},AssignmentExpression:{array:!1,object:!1}}],"prefer-numeric-literals":"off","prefer-rest-params":"off","prefer-spread":"warn","prefer-template":o,"require-await":t,"require-yield":"off","rest-spread-spacing":"off","sort-imports":"warn","symbol-description":"off","template-curly-spacing":s,"yield-star-spacing":"off"}};export{e as arrowSpacing,a as config,r as noMagicNumbers,n as noUselessConstructor,o as preferTemplate,t as requireAwait,s as templateCurlySpacing}; diff --git a/node_modules/@myparcel-eslint/eslint-config-esnext/dist/index.d.mts b/node_modules/@myparcel-eslint/eslint-config-esnext/dist/index.d.mts deleted file mode 100644 index 8d7beb09..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-esnext/dist/index.d.mts +++ /dev/null @@ -1,5 +0,0 @@ -import { ESLint } from 'eslint'; - -declare const config: ESLint.ConfigData; - -export { config }; diff --git a/node_modules/@myparcel-eslint/eslint-config-esnext/dist/index.d.ts b/node_modules/@myparcel-eslint/eslint-config-esnext/dist/index.d.ts deleted file mode 100644 index 8d7beb09..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-esnext/dist/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { ESLint } from 'eslint'; - -declare const config: ESLint.ConfigData; - -export { config }; diff --git a/node_modules/@myparcel-eslint/eslint-config-esnext/dist/index.js b/node_modules/@myparcel-eslint/eslint-config-esnext/dist/index.js deleted file mode 100644 index 42ec7780..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-esnext/dist/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var o=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var p=(e,t)=>{for(var i in t)o(e,i,{get:t[i],enumerable:!0})},f=(e,t,i,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of a(t))!c.call(e,n)&&n!==i&&o(e,n,{get:()=>t[n],enumerable:!(s=r(t,n))||s.enumerable});return e};var l=e=>f(o({},"__esModule",{value:!0}),e);var g={};p(g,{config:()=>m});module.exports=l(g);var m={extends:"@myparcel-eslint/eslint-config-es6",parserOptions:{ecmaVersion:"latest"}};0&&(module.exports={config}); diff --git a/node_modules/@myparcel-eslint/eslint-config-esnext/dist/index.mjs b/node_modules/@myparcel-eslint/eslint-config-esnext/dist/index.mjs deleted file mode 100644 index 9280771f..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-esnext/dist/index.mjs +++ /dev/null @@ -1 +0,0 @@ -var t={extends:"@myparcel-eslint/eslint-config-es6",parserOptions:{ecmaVersion:"latest"}};export{t as config}; diff --git a/node_modules/@myparcel-eslint/eslint-config-node/dist/index.d.mts b/node_modules/@myparcel-eslint/eslint-config-node/dist/index.d.mts deleted file mode 100644 index 8d7beb09..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-node/dist/index.d.mts +++ /dev/null @@ -1,5 +0,0 @@ -import { ESLint } from 'eslint'; - -declare const config: ESLint.ConfigData; - -export { config }; diff --git a/node_modules/@myparcel-eslint/eslint-config-node/dist/index.d.ts b/node_modules/@myparcel-eslint/eslint-config-node/dist/index.d.ts deleted file mode 100644 index 8d7beb09..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-node/dist/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { ESLint } from 'eslint'; - -declare const config: ESLint.ConfigData; - -export { config }; diff --git a/node_modules/@myparcel-eslint/eslint-config-node/dist/index.js b/node_modules/@myparcel-eslint/eslint-config-node/dist/index.js deleted file mode 100644 index 74ca727b..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-node/dist/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var e=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var g=(o,n)=>{for(var i in n)e(o,i,{get:n[i],enumerable:!0})},m=(o,n,i,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of a(n))!c.call(o,t)&&t!==i&&e(o,t,{get:()=>n[t],enumerable:!(r=f(n,t))||r.enumerable});return o};var p=o=>m(e({},"__esModule",{value:!0}),o);var L={};g(L,{config:()=>E});module.exports=p(L);var E={env:{node:!0}};0&&(module.exports={config}); diff --git a/node_modules/@myparcel-eslint/eslint-config-node/dist/index.mjs b/node_modules/@myparcel-eslint/eslint-config-node/dist/index.mjs deleted file mode 100644 index 6257d37a..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-node/dist/index.mjs +++ /dev/null @@ -1 +0,0 @@ -var n={env:{node:!0}};export{n as config}; diff --git a/node_modules/@myparcel-eslint/eslint-config-prettier-typescript/dist/index.d.mts b/node_modules/@myparcel-eslint/eslint-config-prettier-typescript/dist/index.d.mts deleted file mode 100644 index 8d7beb09..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-prettier-typescript/dist/index.d.mts +++ /dev/null @@ -1,5 +0,0 @@ -import { ESLint } from 'eslint'; - -declare const config: ESLint.ConfigData; - -export { config }; diff --git a/node_modules/@myparcel-eslint/eslint-config-prettier-typescript/dist/index.d.ts b/node_modules/@myparcel-eslint/eslint-config-prettier-typescript/dist/index.d.ts deleted file mode 100644 index 8d7beb09..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-prettier-typescript/dist/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { ESLint } from 'eslint'; - -declare const config: ESLint.ConfigData; - -export { config }; diff --git a/node_modules/@myparcel-eslint/eslint-config-prettier-typescript/dist/index.js b/node_modules/@myparcel-eslint/eslint-config-prettier-typescript/dist/index.js deleted file mode 100644 index 7e99e8f5..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-prettier-typescript/dist/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var o=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var q=(n,e)=>{for(var t in e)o(n,t,{get:e[t],enumerable:!0})},P=(n,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of j(e))!C.call(n,r)&&r!==t&&o(n,r,{get:()=>e[r],enumerable:!(a=S(e,r))||a.enumerable});return n};var O=n=>P(o({},"__esModule",{value:!0}),n);var D={};q(D,{config:()=>M});module.exports=O(D);var i=["warn","1tbs"];var p=["warn","always-multiline"],l=["warn",{before:!1,after:!0}];var c=["warn","never"],f=["warn",2,{SwitchCase:1}];var y="warn",u="warn";var w="warn",m="warn",d="warn";var x="off",b="warn",g=["warn",{ignoreRestSiblings:!0}],L="off";var v=["warn","single"],E=["warn","always"];var k=["warn",{ignore:[-1,0,1,100],detectObjects:!0,enforceConst:!0}];var h="off";var R="warn";var A={"brace-style":"off",camelcase:"off","comma-dangle":"off","comma-spacing":"off","func-call-spacing":"off",indent:"off","no-array-constructor":"off","no-dupe-class-members":"off","no-empty-function":"off","no-extra-parens":"off","no-extra-semi":"off","no-implied-eval":"off","no-magic-numbers":"off","no-throw-literal":"off","no-undef":"off","no-unused-expressions":"off","no-unused-vars":"off","no-use-before-define":"off","no-useless-constructor":"off","padding-line-between-statements":"off",quotes:"off","require-await":"off",semi:"off","space-before-function-paren":"off"},s={project:"tsconfig.json",tsconfigRootDir:"."},T={extends:["@myparcel-eslint/eslint-config-esnext","plugin:@typescript-eslint/eslint-recommended","plugin:@typescript-eslint/recommended"],parser:"@typescript-eslint/parser",parserOptions:s,plugins:["@typescript-eslint"],rules:{...A,"@typescript-eslint/adjacent-overload-signatures":"warn","@typescript-eslint/array-type":"warn","@typescript-eslint/await-thenable":"warn","@typescript-eslint/ban-ts-comment":"warn","@typescript-eslint/ban-tslint-comment":"off","@typescript-eslint/ban-types":"warn","@typescript-eslint/brace-style":i,"@typescript-eslint/class-literal-property-style":"off","@typescript-eslint/comma-dangle":p,"@typescript-eslint/comma-spacing":l,"@typescript-eslint/consistent-indexed-object-style":"warn","@typescript-eslint/consistent-type-assertions":"warn","@typescript-eslint/consistent-type-definitions":"off","@typescript-eslint/consistent-type-exports":["warn",{fixMixedExportsWithInlineTypeSpecifier:!0}],"@typescript-eslint/consistent-type-imports":["warn",{prefer:"type-imports",fixStyle:"inline-type-imports"}],"@typescript-eslint/default-param-last":"warn","@typescript-eslint/dot-notation":"off","@typescript-eslint/explicit-function-return-type":"warn","@typescript-eslint/explicit-member-accessibility":"warn","@typescript-eslint/explicit-module-boundary-types":"warn","@typescript-eslint/func-call-spacing":c,"@typescript-eslint/indent":f,"@typescript-eslint/init-declarations":"off","@typescript-eslint/keyword-spacing":"off","@typescript-eslint/lines-between-class-members":"off","@typescript-eslint/member-delimiter-style":"warn","@typescript-eslint/member-ordering":["warn",{default:["public-field","protected-field","private-field","public-get","protected-get","private-get","public-set","protected-set","private-set","public-method","protected-method","private-method"]}],"@typescript-eslint/method-signature-style":"off","@typescript-eslint/naming-convention":["warn",{selector:"default",format:["strictCamelCase"],filter:{regex:"^_$",match:!1}},{selector:"variable",format:["strictCamelCase","UPPER_CASE"],filter:{regex:"^_$",match:!1}},{selector:"property",format:["camelCase","PascalCase"]},{selector:["classProperty","objectLiteralProperty","typeProperty","classMethod","objectLiteralMethod","typeMethod","accessor","enumMember"],format:null,modifiers:["requiresQuotes"]},{selector:["objectLiteralProperty"],format:null},{selector:["typeLike","enumMember"],format:["StrictPascalCase"]},{selector:"property",modifiers:["private"],format:["strictCamelCase"],leadingUnderscore:"allow"},{selector:"typeParameter",format:null}],"@typescript-eslint/no-array-constructor":y,"@typescript-eslint/no-base-to-string":"off","@typescript-eslint/no-confusing-non-null-assertion":"off","@typescript-eslint/no-confusing-void-expression":"off","@typescript-eslint/no-dupe-class-members":"off","@typescript-eslint/no-duplicate-imports":"off","@typescript-eslint/no-dynamic-delete":"warn","@typescript-eslint/no-empty-function":u,"@typescript-eslint/no-empty-interface":"warn","@typescript-eslint/no-explicit-any":"warn","@typescript-eslint/no-extra-non-null-assertion":"warn","@typescript-eslint/no-extra-parens":w,"@typescript-eslint/no-extra-semi":m,"@typescript-eslint/no-extraneous-class":"warn","@typescript-eslint/no-floating-promises":"warn","@typescript-eslint/no-for-in-array":"warn","@typescript-eslint/no-implicit-any-catch":"off","@typescript-eslint/no-implied-eval":d,"@typescript-eslint/no-inferrable-types":"warn","@typescript-eslint/no-invalid-this":"off","@typescript-eslint/no-invalid-void-type":"off","@typescript-eslint/no-loop-func":"off","@typescript-eslint/no-loss-of-precision":"off","@typescript-eslint/no-magic-numbers":["warn",{...k[1]??[],ignoreEnums:!0,ignoreNumericLiteralTypes:!0,ignoreReadonlyClassProperties:!0}],"@typescript-eslint/no-meaningless-void-operator":"off","@typescript-eslint/no-misused-new":"warn","@typescript-eslint/no-misused-promises":"warn","@typescript-eslint/no-namespace":"warn","@typescript-eslint/no-non-null-asserted-nullish-coalescing":"off","@typescript-eslint/no-non-null-asserted-optional-chain":"warn","@typescript-eslint/no-non-null-assertion":"warn","@typescript-eslint/no-parameter-properties":"warn","@typescript-eslint/no-redeclare":"off","@typescript-eslint/no-require-imports":"off","@typescript-eslint/no-restricted-imports":"off","@typescript-eslint/no-shadow":"off","@typescript-eslint/no-this-alias":"warn","@typescript-eslint/no-throw-literal":x,"@typescript-eslint/no-type-alias":"off","@typescript-eslint/no-unnecessary-boolean-literal-compare":"off","@typescript-eslint/no-unnecessary-condition":"off","@typescript-eslint/no-unnecessary-qualifier":"warn","@typescript-eslint/no-unnecessary-type-arguments":"warn","@typescript-eslint/no-unnecessary-type-assertion":"warn","@typescript-eslint/no-unnecessary-type-constraint":"off","@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unused-expressions":b,"@typescript-eslint/no-unused-vars":g,"@typescript-eslint/no-use-before-define":L,"@typescript-eslint/no-useless-constructor":h,"@typescript-eslint/no-var-requires":"warn","@typescript-eslint/non-nullable-type-assertion-style":"off","@typescript-eslint/object-curly-spacing":"off","@typescript-eslint/padding-line-between-statements":["warn",{blankLine:"always",prev:"export",next:"*"},{blankLine:"always",prev:"export",next:"export"},{blankLine:"always",prev:"import",next:"*"},{blankLine:"never",prev:"import",next:"import"},{blankLine:"always",prev:"block-like",next:"*"},{blankLine:"always",prev:"*",next:"block"},{blankLine:"always",prev:"block",next:"*"},{blankLine:"always",prev:"*",next:"if"},{blankLine:"always",prev:"if",next:"*"},{blankLine:"always",prev:"*",next:["interface","type"]},{blankLine:"always",prev:["interface","type"],next:"*"}],"@typescript-eslint/prefer-as-const":"off","@typescript-eslint/prefer-enum-initializers":"off","@typescript-eslint/prefer-for-of":"warn","@typescript-eslint/prefer-function-type":"warn","@typescript-eslint/prefer-includes":"warn","@typescript-eslint/prefer-literal-enum-member":"off","@typescript-eslint/prefer-namespace-keyword":"warn","@typescript-eslint/prefer-nullish-coalescing":"warn","@typescript-eslint/prefer-optional-chain":"warn","@typescript-eslint/prefer-readonly":"off","@typescript-eslint/prefer-readonly-parameter-types":"off","@typescript-eslint/prefer-reduce-type-parameter":"off","@typescript-eslint/prefer-regexp-exec":"warn","@typescript-eslint/prefer-return-this-type":"off","@typescript-eslint/prefer-string-starts-ends-with":"warn","@typescript-eslint/prefer-ts-expect-error":"off","@typescript-eslint/promise-function-async":"off","@typescript-eslint/quotes":v,"@typescript-eslint/require-array-sort-compare":"off","@typescript-eslint/require-await":R,"@typescript-eslint/restrict-plus-operands":"warn","@typescript-eslint/restrict-template-expressions":"off","@typescript-eslint/return-await":"warn","@typescript-eslint/semi":E,"@typescript-eslint/sort-type-union-intersection-members":"off","@typescript-eslint/space-before-function-paren":["warn",{anonymous:"never",named:"never",asyncArrow:"always"}],"@typescript-eslint/space-infix-ops":"off","@typescript-eslint/strict-boolean-expressions":"off","@typescript-eslint/switch-exhaustiveness-check":"off","@typescript-eslint/triple-slash-reference":"warn","@typescript-eslint/type-annotation-spacing":"warn","@typescript-eslint/typedef":["warn",{arrowParameter:!1,objectDestructuring:!1,variableDeclarationIgnoreFunction:!0}],"@typescript-eslint/unbound-method":"off","@typescript-eslint/unified-signatures":"warn"},settings:{jsdoc:{mode:"typescript"}}};var M={parserOptions:s,extends:["@myparcel-eslint/eslint-config-typescript","@myparcel-eslint/eslint-config-prettier"]};0&&(module.exports={config}); diff --git a/node_modules/@myparcel-eslint/eslint-config-prettier-typescript/dist/index.mjs b/node_modules/@myparcel-eslint/eslint-config-prettier-typescript/dist/index.mjs deleted file mode 100644 index f61564ce..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-prettier-typescript/dist/index.mjs +++ /dev/null @@ -1 +0,0 @@ -var n=["warn","1tbs"];var r=["warn","always-multiline"],t=["warn",{before:!1,after:!0}];var o=["warn","never"],s=["warn",2,{SwitchCase:1}];var a="warn",i="warn";var p="warn",l="warn",c="warn";var f="off",y="warn",u=["warn",{ignoreRestSiblings:!0}],w="off";var m=["warn","single"],d=["warn","always"];var x=["warn",{ignore:[-1,0,1,100],detectObjects:!0,enforceConst:!0}];var b="off";var g="warn";var L={"brace-style":"off",camelcase:"off","comma-dangle":"off","comma-spacing":"off","func-call-spacing":"off",indent:"off","no-array-constructor":"off","no-dupe-class-members":"off","no-empty-function":"off","no-extra-parens":"off","no-extra-semi":"off","no-implied-eval":"off","no-magic-numbers":"off","no-throw-literal":"off","no-undef":"off","no-unused-expressions":"off","no-unused-vars":"off","no-use-before-define":"off","no-useless-constructor":"off","padding-line-between-statements":"off",quotes:"off","require-await":"off",semi:"off","space-before-function-paren":"off"},e={project:"tsconfig.json",tsconfigRootDir:"."},R={extends:["@myparcel-eslint/eslint-config-esnext","plugin:@typescript-eslint/eslint-recommended","plugin:@typescript-eslint/recommended"],parser:"@typescript-eslint/parser",parserOptions:e,plugins:["@typescript-eslint"],rules:{...L,"@typescript-eslint/adjacent-overload-signatures":"warn","@typescript-eslint/array-type":"warn","@typescript-eslint/await-thenable":"warn","@typescript-eslint/ban-ts-comment":"warn","@typescript-eslint/ban-tslint-comment":"off","@typescript-eslint/ban-types":"warn","@typescript-eslint/brace-style":n,"@typescript-eslint/class-literal-property-style":"off","@typescript-eslint/comma-dangle":r,"@typescript-eslint/comma-spacing":t,"@typescript-eslint/consistent-indexed-object-style":"warn","@typescript-eslint/consistent-type-assertions":"warn","@typescript-eslint/consistent-type-definitions":"off","@typescript-eslint/consistent-type-exports":["warn",{fixMixedExportsWithInlineTypeSpecifier:!0}],"@typescript-eslint/consistent-type-imports":["warn",{prefer:"type-imports",fixStyle:"inline-type-imports"}],"@typescript-eslint/default-param-last":"warn","@typescript-eslint/dot-notation":"off","@typescript-eslint/explicit-function-return-type":"warn","@typescript-eslint/explicit-member-accessibility":"warn","@typescript-eslint/explicit-module-boundary-types":"warn","@typescript-eslint/func-call-spacing":o,"@typescript-eslint/indent":s,"@typescript-eslint/init-declarations":"off","@typescript-eslint/keyword-spacing":"off","@typescript-eslint/lines-between-class-members":"off","@typescript-eslint/member-delimiter-style":"warn","@typescript-eslint/member-ordering":["warn",{default:["public-field","protected-field","private-field","public-get","protected-get","private-get","public-set","protected-set","private-set","public-method","protected-method","private-method"]}],"@typescript-eslint/method-signature-style":"off","@typescript-eslint/naming-convention":["warn",{selector:"default",format:["strictCamelCase"],filter:{regex:"^_$",match:!1}},{selector:"variable",format:["strictCamelCase","UPPER_CASE"],filter:{regex:"^_$",match:!1}},{selector:"property",format:["camelCase","PascalCase"]},{selector:["classProperty","objectLiteralProperty","typeProperty","classMethod","objectLiteralMethod","typeMethod","accessor","enumMember"],format:null,modifiers:["requiresQuotes"]},{selector:["objectLiteralProperty"],format:null},{selector:["typeLike","enumMember"],format:["StrictPascalCase"]},{selector:"property",modifiers:["private"],format:["strictCamelCase"],leadingUnderscore:"allow"},{selector:"typeParameter",format:null}],"@typescript-eslint/no-array-constructor":a,"@typescript-eslint/no-base-to-string":"off","@typescript-eslint/no-confusing-non-null-assertion":"off","@typescript-eslint/no-confusing-void-expression":"off","@typescript-eslint/no-dupe-class-members":"off","@typescript-eslint/no-duplicate-imports":"off","@typescript-eslint/no-dynamic-delete":"warn","@typescript-eslint/no-empty-function":i,"@typescript-eslint/no-empty-interface":"warn","@typescript-eslint/no-explicit-any":"warn","@typescript-eslint/no-extra-non-null-assertion":"warn","@typescript-eslint/no-extra-parens":p,"@typescript-eslint/no-extra-semi":l,"@typescript-eslint/no-extraneous-class":"warn","@typescript-eslint/no-floating-promises":"warn","@typescript-eslint/no-for-in-array":"warn","@typescript-eslint/no-implicit-any-catch":"off","@typescript-eslint/no-implied-eval":c,"@typescript-eslint/no-inferrable-types":"warn","@typescript-eslint/no-invalid-this":"off","@typescript-eslint/no-invalid-void-type":"off","@typescript-eslint/no-loop-func":"off","@typescript-eslint/no-loss-of-precision":"off","@typescript-eslint/no-magic-numbers":["warn",{...x[1]??[],ignoreEnums:!0,ignoreNumericLiteralTypes:!0,ignoreReadonlyClassProperties:!0}],"@typescript-eslint/no-meaningless-void-operator":"off","@typescript-eslint/no-misused-new":"warn","@typescript-eslint/no-misused-promises":"warn","@typescript-eslint/no-namespace":"warn","@typescript-eslint/no-non-null-asserted-nullish-coalescing":"off","@typescript-eslint/no-non-null-asserted-optional-chain":"warn","@typescript-eslint/no-non-null-assertion":"warn","@typescript-eslint/no-parameter-properties":"warn","@typescript-eslint/no-redeclare":"off","@typescript-eslint/no-require-imports":"off","@typescript-eslint/no-restricted-imports":"off","@typescript-eslint/no-shadow":"off","@typescript-eslint/no-this-alias":"warn","@typescript-eslint/no-throw-literal":f,"@typescript-eslint/no-type-alias":"off","@typescript-eslint/no-unnecessary-boolean-literal-compare":"off","@typescript-eslint/no-unnecessary-condition":"off","@typescript-eslint/no-unnecessary-qualifier":"warn","@typescript-eslint/no-unnecessary-type-arguments":"warn","@typescript-eslint/no-unnecessary-type-assertion":"warn","@typescript-eslint/no-unnecessary-type-constraint":"off","@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unused-expressions":y,"@typescript-eslint/no-unused-vars":u,"@typescript-eslint/no-use-before-define":w,"@typescript-eslint/no-useless-constructor":b,"@typescript-eslint/no-var-requires":"warn","@typescript-eslint/non-nullable-type-assertion-style":"off","@typescript-eslint/object-curly-spacing":"off","@typescript-eslint/padding-line-between-statements":["warn",{blankLine:"always",prev:"export",next:"*"},{blankLine:"always",prev:"export",next:"export"},{blankLine:"always",prev:"import",next:"*"},{blankLine:"never",prev:"import",next:"import"},{blankLine:"always",prev:"block-like",next:"*"},{blankLine:"always",prev:"*",next:"block"},{blankLine:"always",prev:"block",next:"*"},{blankLine:"always",prev:"*",next:"if"},{blankLine:"always",prev:"if",next:"*"},{blankLine:"always",prev:"*",next:["interface","type"]},{blankLine:"always",prev:["interface","type"],next:"*"}],"@typescript-eslint/prefer-as-const":"off","@typescript-eslint/prefer-enum-initializers":"off","@typescript-eslint/prefer-for-of":"warn","@typescript-eslint/prefer-function-type":"warn","@typescript-eslint/prefer-includes":"warn","@typescript-eslint/prefer-literal-enum-member":"off","@typescript-eslint/prefer-namespace-keyword":"warn","@typescript-eslint/prefer-nullish-coalescing":"warn","@typescript-eslint/prefer-optional-chain":"warn","@typescript-eslint/prefer-readonly":"off","@typescript-eslint/prefer-readonly-parameter-types":"off","@typescript-eslint/prefer-reduce-type-parameter":"off","@typescript-eslint/prefer-regexp-exec":"warn","@typescript-eslint/prefer-return-this-type":"off","@typescript-eslint/prefer-string-starts-ends-with":"warn","@typescript-eslint/prefer-ts-expect-error":"off","@typescript-eslint/promise-function-async":"off","@typescript-eslint/quotes":m,"@typescript-eslint/require-array-sort-compare":"off","@typescript-eslint/require-await":g,"@typescript-eslint/restrict-plus-operands":"warn","@typescript-eslint/restrict-template-expressions":"off","@typescript-eslint/return-await":"warn","@typescript-eslint/semi":d,"@typescript-eslint/sort-type-union-intersection-members":"off","@typescript-eslint/space-before-function-paren":["warn",{anonymous:"never",named:"never",asyncArrow:"always"}],"@typescript-eslint/space-infix-ops":"off","@typescript-eslint/strict-boolean-expressions":"off","@typescript-eslint/switch-exhaustiveness-check":"off","@typescript-eslint/triple-slash-reference":"warn","@typescript-eslint/type-annotation-spacing":"warn","@typescript-eslint/typedef":["warn",{arrowParameter:!1,objectDestructuring:!1,variableDeclarationIgnoreFunction:!0}],"@typescript-eslint/unbound-method":"off","@typescript-eslint/unified-signatures":"warn"},settings:{jsdoc:{mode:"typescript"}}};var C={parserOptions:e,extends:["@myparcel-eslint/eslint-config-typescript","@myparcel-eslint/eslint-config-prettier"]};export{C as config}; diff --git a/node_modules/@myparcel-eslint/eslint-config-prettier/dist/index.d.mts b/node_modules/@myparcel-eslint/eslint-config-prettier/dist/index.d.mts deleted file mode 100644 index 8d7beb09..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-prettier/dist/index.d.mts +++ /dev/null @@ -1,5 +0,0 @@ -import { ESLint } from 'eslint'; - -declare const config: ESLint.ConfigData; - -export { config }; diff --git a/node_modules/@myparcel-eslint/eslint-config-prettier/dist/index.d.ts b/node_modules/@myparcel-eslint/eslint-config-prettier/dist/index.d.ts deleted file mode 100644 index 8d7beb09..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-prettier/dist/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { ESLint } from 'eslint'; - -declare const config: ESLint.ConfigData; - -export { config }; diff --git a/node_modules/@myparcel-eslint/eslint-config-prettier/dist/index.js b/node_modules/@myparcel-eslint/eslint-config-prettier/dist/index.js deleted file mode 100644 index 1455d25b..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-prettier/dist/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var r=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var l=(f,e)=>{for(var o in e)r(f,o,{get:e[o],enumerable:!0})},s=(f,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of a(e))!p.call(f,n)&&n!==o&&r(f,n,{get:()=>e[n],enumerable:!(i=t(e,n))||i.enumerable});return f};var c=f=>s(r({},"__esModule",{value:!0}),f);var b={};l(b,{config:()=>u});module.exports=c(b);var u={plugins:["prettier"],extends:["plugin:prettier/recommended"],rules:{"prettier/prettier":["warn",{printWidth:120}],"array-bracket-newline":"off","array-element-newline":"off","function-call-argument-newline":"off","function-paren-newline":"off","implicit-arrow-linebreak":"off","newline-after-var":"off","newline-before-return":"off","newline-per-chained-call":"off","no-extra-parens":"off","no-mixed-spaces-and-tabs":"off","no-multi-spaces":"off","no-multiple-empty-lines":"off","no-tabs":"off","no-trailing-spaces":"off","no-whitespace-before-property":"off","object-curly-newline":"off","object-property-newline":"off","operator-linebreak":"off",quotes:"off",semi:"off","space-before-blocks":"off","space-before-function-paren":"off","space-in-parens":"off","space-infix-ops":"off","space-unary-ops":"off"}};0&&(module.exports={config}); diff --git a/node_modules/@myparcel-eslint/eslint-config-prettier/dist/index.mjs b/node_modules/@myparcel-eslint/eslint-config-prettier/dist/index.mjs deleted file mode 100644 index 176848af..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-prettier/dist/index.mjs +++ /dev/null @@ -1 +0,0 @@ -var e={plugins:["prettier"],extends:["plugin:prettier/recommended"],rules:{"prettier/prettier":["warn",{printWidth:120}],"array-bracket-newline":"off","array-element-newline":"off","function-call-argument-newline":"off","function-paren-newline":"off","implicit-arrow-linebreak":"off","newline-after-var":"off","newline-before-return":"off","newline-per-chained-call":"off","no-extra-parens":"off","no-mixed-spaces-and-tabs":"off","no-multi-spaces":"off","no-multiple-empty-lines":"off","no-tabs":"off","no-trailing-spaces":"off","no-whitespace-before-property":"off","object-curly-newline":"off","object-property-newline":"off","operator-linebreak":"off",quotes:"off",semi:"off","space-before-blocks":"off","space-before-function-paren":"off","space-in-parens":"off","space-infix-ops":"off","space-unary-ops":"off"}};export{e as config}; diff --git a/node_modules/@myparcel-eslint/eslint-config-typescript/dist/index.d.mts b/node_modules/@myparcel-eslint/eslint-config-typescript/dist/index.d.mts deleted file mode 100644 index 3a14800b..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-typescript/dist/index.d.mts +++ /dev/null @@ -1,6 +0,0 @@ -import { Linter } from 'eslint'; - -declare const parserOptions: Linter.ParserOptions | undefined; -declare const config: Linter.Config; - -export { config, parserOptions }; diff --git a/node_modules/@myparcel-eslint/eslint-config-typescript/dist/index.d.ts b/node_modules/@myparcel-eslint/eslint-config-typescript/dist/index.d.ts deleted file mode 100644 index 3a14800b..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-typescript/dist/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Linter } from 'eslint'; - -declare const parserOptions: Linter.ParserOptions | undefined; -declare const config: Linter.Config; - -export { config, parserOptions }; diff --git a/node_modules/@myparcel-eslint/eslint-config-typescript/dist/index.js b/node_modules/@myparcel-eslint/eslint-config-typescript/dist/index.js deleted file mode 100644 index b75dce98..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-typescript/dist/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var o=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var q=(n,e)=>{for(var t in e)o(n,t,{get:e[t],enumerable:!0})},P=(n,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of S(e))!C.call(n,r)&&r!==t&&o(n,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return n};var A=n=>P(o({},"__esModule",{value:!0}),n);var B={};q(B,{config:()=>M,parserOptions:()=>R});module.exports=A(B);var a=["warn","1tbs"];var i=["warn","always-multiline"],p=["warn",{before:!1,after:!0}];var l=["warn","never"],c=["warn",2,{SwitchCase:1}];var f="warn",y="warn";var u="warn",w="warn",m="warn";var d="off",x="warn",b=["warn",{ignoreRestSiblings:!0}],g="off";var L=["warn","single"],v=["warn","always"];var E=["warn",{ignore:[-1,0,1,100],detectObjects:!0,enforceConst:!0}];var k="off";var h="warn";var O={"brace-style":"off",camelcase:"off","comma-dangle":"off","comma-spacing":"off","func-call-spacing":"off",indent:"off","no-array-constructor":"off","no-dupe-class-members":"off","no-empty-function":"off","no-extra-parens":"off","no-extra-semi":"off","no-implied-eval":"off","no-magic-numbers":"off","no-throw-literal":"off","no-undef":"off","no-unused-expressions":"off","no-unused-vars":"off","no-use-before-define":"off","no-useless-constructor":"off","padding-line-between-statements":"off",quotes:"off","require-await":"off",semi:"off","space-before-function-paren":"off"},R={project:"tsconfig.json",tsconfigRootDir:"."},M={extends:["@myparcel-eslint/eslint-config-esnext","plugin:@typescript-eslint/eslint-recommended","plugin:@typescript-eslint/recommended"],parser:"@typescript-eslint/parser",parserOptions:R,plugins:["@typescript-eslint"],rules:{...O,"@typescript-eslint/adjacent-overload-signatures":"warn","@typescript-eslint/array-type":"warn","@typescript-eslint/await-thenable":"warn","@typescript-eslint/ban-ts-comment":"warn","@typescript-eslint/ban-tslint-comment":"off","@typescript-eslint/ban-types":"warn","@typescript-eslint/brace-style":a,"@typescript-eslint/class-literal-property-style":"off","@typescript-eslint/comma-dangle":i,"@typescript-eslint/comma-spacing":p,"@typescript-eslint/consistent-indexed-object-style":"warn","@typescript-eslint/consistent-type-assertions":"warn","@typescript-eslint/consistent-type-definitions":"off","@typescript-eslint/consistent-type-exports":["warn",{fixMixedExportsWithInlineTypeSpecifier:!0}],"@typescript-eslint/consistent-type-imports":["warn",{prefer:"type-imports",fixStyle:"inline-type-imports"}],"@typescript-eslint/default-param-last":"warn","@typescript-eslint/dot-notation":"off","@typescript-eslint/explicit-function-return-type":"warn","@typescript-eslint/explicit-member-accessibility":"warn","@typescript-eslint/explicit-module-boundary-types":"warn","@typescript-eslint/func-call-spacing":l,"@typescript-eslint/indent":c,"@typescript-eslint/init-declarations":"off","@typescript-eslint/keyword-spacing":"off","@typescript-eslint/lines-between-class-members":"off","@typescript-eslint/member-delimiter-style":"warn","@typescript-eslint/member-ordering":["warn",{default:["public-field","protected-field","private-field","public-get","protected-get","private-get","public-set","protected-set","private-set","public-method","protected-method","private-method"]}],"@typescript-eslint/method-signature-style":"off","@typescript-eslint/naming-convention":["warn",{selector:"default",format:["strictCamelCase"],filter:{regex:"^_$",match:!1}},{selector:"variable",format:["strictCamelCase","UPPER_CASE"],filter:{regex:"^_$",match:!1}},{selector:"property",format:["camelCase","PascalCase"]},{selector:["classProperty","objectLiteralProperty","typeProperty","classMethod","objectLiteralMethod","typeMethod","accessor","enumMember"],format:null,modifiers:["requiresQuotes"]},{selector:["objectLiteralProperty"],format:null},{selector:["typeLike","enumMember"],format:["StrictPascalCase"]},{selector:"property",modifiers:["private"],format:["strictCamelCase"],leadingUnderscore:"allow"},{selector:"typeParameter",format:null}],"@typescript-eslint/no-array-constructor":f,"@typescript-eslint/no-base-to-string":"off","@typescript-eslint/no-confusing-non-null-assertion":"off","@typescript-eslint/no-confusing-void-expression":"off","@typescript-eslint/no-dupe-class-members":"off","@typescript-eslint/no-duplicate-imports":"off","@typescript-eslint/no-dynamic-delete":"warn","@typescript-eslint/no-empty-function":y,"@typescript-eslint/no-empty-interface":"warn","@typescript-eslint/no-explicit-any":"warn","@typescript-eslint/no-extra-non-null-assertion":"warn","@typescript-eslint/no-extra-parens":u,"@typescript-eslint/no-extra-semi":w,"@typescript-eslint/no-extraneous-class":"warn","@typescript-eslint/no-floating-promises":"warn","@typescript-eslint/no-for-in-array":"warn","@typescript-eslint/no-implicit-any-catch":"off","@typescript-eslint/no-implied-eval":m,"@typescript-eslint/no-inferrable-types":"warn","@typescript-eslint/no-invalid-this":"off","@typescript-eslint/no-invalid-void-type":"off","@typescript-eslint/no-loop-func":"off","@typescript-eslint/no-loss-of-precision":"off","@typescript-eslint/no-magic-numbers":["warn",{...E[1]??[],ignoreEnums:!0,ignoreNumericLiteralTypes:!0,ignoreReadonlyClassProperties:!0}],"@typescript-eslint/no-meaningless-void-operator":"off","@typescript-eslint/no-misused-new":"warn","@typescript-eslint/no-misused-promises":"warn","@typescript-eslint/no-namespace":"warn","@typescript-eslint/no-non-null-asserted-nullish-coalescing":"off","@typescript-eslint/no-non-null-asserted-optional-chain":"warn","@typescript-eslint/no-non-null-assertion":"warn","@typescript-eslint/no-parameter-properties":"warn","@typescript-eslint/no-redeclare":"off","@typescript-eslint/no-require-imports":"off","@typescript-eslint/no-restricted-imports":"off","@typescript-eslint/no-shadow":"off","@typescript-eslint/no-this-alias":"warn","@typescript-eslint/no-throw-literal":d,"@typescript-eslint/no-type-alias":"off","@typescript-eslint/no-unnecessary-boolean-literal-compare":"off","@typescript-eslint/no-unnecessary-condition":"off","@typescript-eslint/no-unnecessary-qualifier":"warn","@typescript-eslint/no-unnecessary-type-arguments":"warn","@typescript-eslint/no-unnecessary-type-assertion":"warn","@typescript-eslint/no-unnecessary-type-constraint":"off","@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unused-expressions":x,"@typescript-eslint/no-unused-vars":b,"@typescript-eslint/no-use-before-define":g,"@typescript-eslint/no-useless-constructor":k,"@typescript-eslint/no-var-requires":"warn","@typescript-eslint/non-nullable-type-assertion-style":"off","@typescript-eslint/object-curly-spacing":"off","@typescript-eslint/padding-line-between-statements":["warn",{blankLine:"always",prev:"export",next:"*"},{blankLine:"always",prev:"export",next:"export"},{blankLine:"always",prev:"import",next:"*"},{blankLine:"never",prev:"import",next:"import"},{blankLine:"always",prev:"block-like",next:"*"},{blankLine:"always",prev:"*",next:"block"},{blankLine:"always",prev:"block",next:"*"},{blankLine:"always",prev:"*",next:"if"},{blankLine:"always",prev:"if",next:"*"},{blankLine:"always",prev:"*",next:["interface","type"]},{blankLine:"always",prev:["interface","type"],next:"*"}],"@typescript-eslint/prefer-as-const":"off","@typescript-eslint/prefer-enum-initializers":"off","@typescript-eslint/prefer-for-of":"warn","@typescript-eslint/prefer-function-type":"warn","@typescript-eslint/prefer-includes":"warn","@typescript-eslint/prefer-literal-enum-member":"off","@typescript-eslint/prefer-namespace-keyword":"warn","@typescript-eslint/prefer-nullish-coalescing":"warn","@typescript-eslint/prefer-optional-chain":"warn","@typescript-eslint/prefer-readonly":"off","@typescript-eslint/prefer-readonly-parameter-types":"off","@typescript-eslint/prefer-reduce-type-parameter":"off","@typescript-eslint/prefer-regexp-exec":"warn","@typescript-eslint/prefer-return-this-type":"off","@typescript-eslint/prefer-string-starts-ends-with":"warn","@typescript-eslint/prefer-ts-expect-error":"off","@typescript-eslint/promise-function-async":"off","@typescript-eslint/quotes":L,"@typescript-eslint/require-array-sort-compare":"off","@typescript-eslint/require-await":h,"@typescript-eslint/restrict-plus-operands":"warn","@typescript-eslint/restrict-template-expressions":"off","@typescript-eslint/return-await":"warn","@typescript-eslint/semi":v,"@typescript-eslint/sort-type-union-intersection-members":"off","@typescript-eslint/space-before-function-paren":["warn",{anonymous:"never",named:"never",asyncArrow:"always"}],"@typescript-eslint/space-infix-ops":"off","@typescript-eslint/strict-boolean-expressions":"off","@typescript-eslint/switch-exhaustiveness-check":"off","@typescript-eslint/triple-slash-reference":"warn","@typescript-eslint/type-annotation-spacing":"warn","@typescript-eslint/typedef":["warn",{arrowParameter:!1,objectDestructuring:!1,variableDeclarationIgnoreFunction:!0}],"@typescript-eslint/unbound-method":"off","@typescript-eslint/unified-signatures":"warn"},settings:{jsdoc:{mode:"typescript"}}};0&&(module.exports={config,parserOptions}); diff --git a/node_modules/@myparcel-eslint/eslint-config-typescript/dist/index.mjs b/node_modules/@myparcel-eslint/eslint-config-typescript/dist/index.mjs deleted file mode 100644 index 033db48d..00000000 --- a/node_modules/@myparcel-eslint/eslint-config-typescript/dist/index.mjs +++ /dev/null @@ -1 +0,0 @@ -var e=["warn","1tbs"];var n=["warn","always-multiline"],r=["warn",{before:!1,after:!0}];var t=["warn","never"],o=["warn",2,{SwitchCase:1}];var s="warn",a="warn";var i="warn",p="warn",l="warn";var c="off",f="warn",y=["warn",{ignoreRestSiblings:!0}],u="off";var w=["warn","single"],m=["warn","always"];var d=["warn",{ignore:[-1,0,1,100],detectObjects:!0,enforceConst:!0}];var x="off";var b="warn";var g={"brace-style":"off",camelcase:"off","comma-dangle":"off","comma-spacing":"off","func-call-spacing":"off",indent:"off","no-array-constructor":"off","no-dupe-class-members":"off","no-empty-function":"off","no-extra-parens":"off","no-extra-semi":"off","no-implied-eval":"off","no-magic-numbers":"off","no-throw-literal":"off","no-undef":"off","no-unused-expressions":"off","no-unused-vars":"off","no-use-before-define":"off","no-useless-constructor":"off","padding-line-between-statements":"off",quotes:"off","require-await":"off",semi:"off","space-before-function-paren":"off"},L={project:"tsconfig.json",tsconfigRootDir:"."},R={extends:["@myparcel-eslint/eslint-config-esnext","plugin:@typescript-eslint/eslint-recommended","plugin:@typescript-eslint/recommended"],parser:"@typescript-eslint/parser",parserOptions:L,plugins:["@typescript-eslint"],rules:{...g,"@typescript-eslint/adjacent-overload-signatures":"warn","@typescript-eslint/array-type":"warn","@typescript-eslint/await-thenable":"warn","@typescript-eslint/ban-ts-comment":"warn","@typescript-eslint/ban-tslint-comment":"off","@typescript-eslint/ban-types":"warn","@typescript-eslint/brace-style":e,"@typescript-eslint/class-literal-property-style":"off","@typescript-eslint/comma-dangle":n,"@typescript-eslint/comma-spacing":r,"@typescript-eslint/consistent-indexed-object-style":"warn","@typescript-eslint/consistent-type-assertions":"warn","@typescript-eslint/consistent-type-definitions":"off","@typescript-eslint/consistent-type-exports":["warn",{fixMixedExportsWithInlineTypeSpecifier:!0}],"@typescript-eslint/consistent-type-imports":["warn",{prefer:"type-imports",fixStyle:"inline-type-imports"}],"@typescript-eslint/default-param-last":"warn","@typescript-eslint/dot-notation":"off","@typescript-eslint/explicit-function-return-type":"warn","@typescript-eslint/explicit-member-accessibility":"warn","@typescript-eslint/explicit-module-boundary-types":"warn","@typescript-eslint/func-call-spacing":t,"@typescript-eslint/indent":o,"@typescript-eslint/init-declarations":"off","@typescript-eslint/keyword-spacing":"off","@typescript-eslint/lines-between-class-members":"off","@typescript-eslint/member-delimiter-style":"warn","@typescript-eslint/member-ordering":["warn",{default:["public-field","protected-field","private-field","public-get","protected-get","private-get","public-set","protected-set","private-set","public-method","protected-method","private-method"]}],"@typescript-eslint/method-signature-style":"off","@typescript-eslint/naming-convention":["warn",{selector:"default",format:["strictCamelCase"],filter:{regex:"^_$",match:!1}},{selector:"variable",format:["strictCamelCase","UPPER_CASE"],filter:{regex:"^_$",match:!1}},{selector:"property",format:["camelCase","PascalCase"]},{selector:["classProperty","objectLiteralProperty","typeProperty","classMethod","objectLiteralMethod","typeMethod","accessor","enumMember"],format:null,modifiers:["requiresQuotes"]},{selector:["objectLiteralProperty"],format:null},{selector:["typeLike","enumMember"],format:["StrictPascalCase"]},{selector:"property",modifiers:["private"],format:["strictCamelCase"],leadingUnderscore:"allow"},{selector:"typeParameter",format:null}],"@typescript-eslint/no-array-constructor":s,"@typescript-eslint/no-base-to-string":"off","@typescript-eslint/no-confusing-non-null-assertion":"off","@typescript-eslint/no-confusing-void-expression":"off","@typescript-eslint/no-dupe-class-members":"off","@typescript-eslint/no-duplicate-imports":"off","@typescript-eslint/no-dynamic-delete":"warn","@typescript-eslint/no-empty-function":a,"@typescript-eslint/no-empty-interface":"warn","@typescript-eslint/no-explicit-any":"warn","@typescript-eslint/no-extra-non-null-assertion":"warn","@typescript-eslint/no-extra-parens":i,"@typescript-eslint/no-extra-semi":p,"@typescript-eslint/no-extraneous-class":"warn","@typescript-eslint/no-floating-promises":"warn","@typescript-eslint/no-for-in-array":"warn","@typescript-eslint/no-implicit-any-catch":"off","@typescript-eslint/no-implied-eval":l,"@typescript-eslint/no-inferrable-types":"warn","@typescript-eslint/no-invalid-this":"off","@typescript-eslint/no-invalid-void-type":"off","@typescript-eslint/no-loop-func":"off","@typescript-eslint/no-loss-of-precision":"off","@typescript-eslint/no-magic-numbers":["warn",{...d[1]??[],ignoreEnums:!0,ignoreNumericLiteralTypes:!0,ignoreReadonlyClassProperties:!0}],"@typescript-eslint/no-meaningless-void-operator":"off","@typescript-eslint/no-misused-new":"warn","@typescript-eslint/no-misused-promises":"warn","@typescript-eslint/no-namespace":"warn","@typescript-eslint/no-non-null-asserted-nullish-coalescing":"off","@typescript-eslint/no-non-null-asserted-optional-chain":"warn","@typescript-eslint/no-non-null-assertion":"warn","@typescript-eslint/no-parameter-properties":"warn","@typescript-eslint/no-redeclare":"off","@typescript-eslint/no-require-imports":"off","@typescript-eslint/no-restricted-imports":"off","@typescript-eslint/no-shadow":"off","@typescript-eslint/no-this-alias":"warn","@typescript-eslint/no-throw-literal":c,"@typescript-eslint/no-type-alias":"off","@typescript-eslint/no-unnecessary-boolean-literal-compare":"off","@typescript-eslint/no-unnecessary-condition":"off","@typescript-eslint/no-unnecessary-qualifier":"warn","@typescript-eslint/no-unnecessary-type-arguments":"warn","@typescript-eslint/no-unnecessary-type-assertion":"warn","@typescript-eslint/no-unnecessary-type-constraint":"off","@typescript-eslint/no-unsafe-argument":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-return":"off","@typescript-eslint/no-unused-expressions":f,"@typescript-eslint/no-unused-vars":y,"@typescript-eslint/no-use-before-define":u,"@typescript-eslint/no-useless-constructor":x,"@typescript-eslint/no-var-requires":"warn","@typescript-eslint/non-nullable-type-assertion-style":"off","@typescript-eslint/object-curly-spacing":"off","@typescript-eslint/padding-line-between-statements":["warn",{blankLine:"always",prev:"export",next:"*"},{blankLine:"always",prev:"export",next:"export"},{blankLine:"always",prev:"import",next:"*"},{blankLine:"never",prev:"import",next:"import"},{blankLine:"always",prev:"block-like",next:"*"},{blankLine:"always",prev:"*",next:"block"},{blankLine:"always",prev:"block",next:"*"},{blankLine:"always",prev:"*",next:"if"},{blankLine:"always",prev:"if",next:"*"},{blankLine:"always",prev:"*",next:["interface","type"]},{blankLine:"always",prev:["interface","type"],next:"*"}],"@typescript-eslint/prefer-as-const":"off","@typescript-eslint/prefer-enum-initializers":"off","@typescript-eslint/prefer-for-of":"warn","@typescript-eslint/prefer-function-type":"warn","@typescript-eslint/prefer-includes":"warn","@typescript-eslint/prefer-literal-enum-member":"off","@typescript-eslint/prefer-namespace-keyword":"warn","@typescript-eslint/prefer-nullish-coalescing":"warn","@typescript-eslint/prefer-optional-chain":"warn","@typescript-eslint/prefer-readonly":"off","@typescript-eslint/prefer-readonly-parameter-types":"off","@typescript-eslint/prefer-reduce-type-parameter":"off","@typescript-eslint/prefer-regexp-exec":"warn","@typescript-eslint/prefer-return-this-type":"off","@typescript-eslint/prefer-string-starts-ends-with":"warn","@typescript-eslint/prefer-ts-expect-error":"off","@typescript-eslint/promise-function-async":"off","@typescript-eslint/quotes":w,"@typescript-eslint/require-array-sort-compare":"off","@typescript-eslint/require-await":b,"@typescript-eslint/restrict-plus-operands":"warn","@typescript-eslint/restrict-template-expressions":"off","@typescript-eslint/return-await":"warn","@typescript-eslint/semi":m,"@typescript-eslint/sort-type-union-intersection-members":"off","@typescript-eslint/space-before-function-paren":["warn",{anonymous:"never",named:"never",asyncArrow:"always"}],"@typescript-eslint/space-infix-ops":"off","@typescript-eslint/strict-boolean-expressions":"off","@typescript-eslint/switch-exhaustiveness-check":"off","@typescript-eslint/triple-slash-reference":"warn","@typescript-eslint/type-annotation-spacing":"warn","@typescript-eslint/typedef":["warn",{arrowParameter:!1,objectDestructuring:!1,variableDeclarationIgnoreFunction:!0}],"@typescript-eslint/unbound-method":"off","@typescript-eslint/unified-signatures":"warn"},settings:{jsdoc:{mode:"typescript"}}};export{R as config,L as parserOptions}; diff --git a/node_modules/@myparcel-eslint/eslint-config/dist/index.d.mts b/node_modules/@myparcel-eslint/eslint-config/dist/index.d.mts deleted file mode 100644 index 813d8f37..00000000 --- a/node_modules/@myparcel-eslint/eslint-config/dist/index.d.mts +++ /dev/null @@ -1,56 +0,0 @@ -import { Linter, ESLint } from 'eslint'; - -declare const arrayBracketNewline: Linter.RuleEntry; -declare const arrayBracketSpacing: Linter.RuleEntry; -declare const blockSpacing: Linter.RuleEntry; -declare const braceStyle: Linter.RuleEntry; -declare const camelcase: Linter.RuleEntry; -declare const commaDangle: Linter.RuleEntry; -declare const commaSpacing: Linter.RuleEntry; -declare const commaStyle: Linter.RuleEntry; -declare const dotLocation: Linter.RuleEntry; -declare const dotNotation: Linter.RuleEntry; -declare const eqeqeq: Linter.RuleEntry; -declare const funcCallSpacing: Linter.RuleEntry; -declare const indent: Linter.RuleEntry; -declare const keySpacing: Linter.RuleEntry; -declare const keywordSpacing: Linter.RuleEntry; -declare const maxLen: Linter.RuleEntry; -declare const noArrayConstructor: Linter.RuleEntry; -declare const noEmptyFunction: Linter.RuleEntry; -declare const noEmptyPattern: Linter.RuleEntry; -declare const noExtraParens: Linter.RuleEntry; -declare const noExtraSemi: Linter.RuleEntry; -declare const noImpliedEval: Linter.RuleEntry; -declare const noIrregularWhitespace: Linter.RuleEntry; -declare const noLossOfPrecision: Linter.RuleEntry; -declare const noMisleadingCharacterClass: Linter.RuleEntry; -declare const noMixedOperators: Linter.RuleEntry; -declare const noMixedRequires: Linter.RuleEntry; -declare const noMixedSpacesAndTabs: Linter.RuleEntry; -declare const noMultiAssign: Linter.RuleEntry; -declare const noMultiSpaces: Linter.RuleEntry; -declare const noMultiStr: Linter.RuleEntry; -declare const noRestrictedSyntax: Linter.RuleEntry; -declare const noSparseArrays: Linter.RuleEntry; -declare const noThrowLiteral: Linter.RuleEntry; -declare const noUnusedExpressions: Linter.RuleEntry; -declare const noUnusedVars: Linter.RuleEntry; -declare const noUseBeforeDefine: Linter.RuleEntry; -declare const objectCurlyNewline: Linter.RuleEntry; -declare const objectCurlySpacing: Linter.RuleEntry; -declare const objectPropertyNewline: Linter.RuleEntry; -declare const operatorLinebreak: Linter.RuleEntry; -declare const quotes: Linter.RuleEntry; -declare const semi: Linter.RuleEntry; -declare const sortKeys: Linter.RuleEntry; -declare const sortVars: Linter.RuleEntry; -declare const spaceBeforeBlocks: Linter.RuleEntry; -declare const spaceBeforeFunctionParen: Linter.RuleEntry; -declare const spaceInParens: Linter.RuleEntry; -declare const spaceInfixOps: Linter.RuleEntry; -declare const spaceUnaryOps: Linter.RuleEntry; -declare const spacedComment: Linter.RuleEntry; -declare const config: ESLint.ConfigData; - -export { arrayBracketNewline, arrayBracketSpacing, blockSpacing, braceStyle, camelcase, commaDangle, commaSpacing, commaStyle, config, dotLocation, dotNotation, eqeqeq, funcCallSpacing, indent, keySpacing, keywordSpacing, maxLen, noArrayConstructor, noEmptyFunction, noEmptyPattern, noExtraParens, noExtraSemi, noImpliedEval, noIrregularWhitespace, noLossOfPrecision, noMisleadingCharacterClass, noMixedOperators, noMixedRequires, noMixedSpacesAndTabs, noMultiAssign, noMultiSpaces, noMultiStr, noRestrictedSyntax, noSparseArrays, noThrowLiteral, noUnusedExpressions, noUnusedVars, noUseBeforeDefine, objectCurlyNewline, objectCurlySpacing, objectPropertyNewline, operatorLinebreak, quotes, semi, sortKeys, sortVars, spaceBeforeBlocks, spaceBeforeFunctionParen, spaceInParens, spaceInfixOps, spaceUnaryOps, spacedComment }; diff --git a/node_modules/@myparcel-eslint/eslint-config/dist/index.d.ts b/node_modules/@myparcel-eslint/eslint-config/dist/index.d.ts deleted file mode 100644 index 813d8f37..00000000 --- a/node_modules/@myparcel-eslint/eslint-config/dist/index.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { Linter, ESLint } from 'eslint'; - -declare const arrayBracketNewline: Linter.RuleEntry; -declare const arrayBracketSpacing: Linter.RuleEntry; -declare const blockSpacing: Linter.RuleEntry; -declare const braceStyle: Linter.RuleEntry; -declare const camelcase: Linter.RuleEntry; -declare const commaDangle: Linter.RuleEntry; -declare const commaSpacing: Linter.RuleEntry; -declare const commaStyle: Linter.RuleEntry; -declare const dotLocation: Linter.RuleEntry; -declare const dotNotation: Linter.RuleEntry; -declare const eqeqeq: Linter.RuleEntry; -declare const funcCallSpacing: Linter.RuleEntry; -declare const indent: Linter.RuleEntry; -declare const keySpacing: Linter.RuleEntry; -declare const keywordSpacing: Linter.RuleEntry; -declare const maxLen: Linter.RuleEntry; -declare const noArrayConstructor: Linter.RuleEntry; -declare const noEmptyFunction: Linter.RuleEntry; -declare const noEmptyPattern: Linter.RuleEntry; -declare const noExtraParens: Linter.RuleEntry; -declare const noExtraSemi: Linter.RuleEntry; -declare const noImpliedEval: Linter.RuleEntry; -declare const noIrregularWhitespace: Linter.RuleEntry; -declare const noLossOfPrecision: Linter.RuleEntry; -declare const noMisleadingCharacterClass: Linter.RuleEntry; -declare const noMixedOperators: Linter.RuleEntry; -declare const noMixedRequires: Linter.RuleEntry; -declare const noMixedSpacesAndTabs: Linter.RuleEntry; -declare const noMultiAssign: Linter.RuleEntry; -declare const noMultiSpaces: Linter.RuleEntry; -declare const noMultiStr: Linter.RuleEntry; -declare const noRestrictedSyntax: Linter.RuleEntry; -declare const noSparseArrays: Linter.RuleEntry; -declare const noThrowLiteral: Linter.RuleEntry; -declare const noUnusedExpressions: Linter.RuleEntry; -declare const noUnusedVars: Linter.RuleEntry; -declare const noUseBeforeDefine: Linter.RuleEntry; -declare const objectCurlyNewline: Linter.RuleEntry; -declare const objectCurlySpacing: Linter.RuleEntry; -declare const objectPropertyNewline: Linter.RuleEntry; -declare const operatorLinebreak: Linter.RuleEntry; -declare const quotes: Linter.RuleEntry; -declare const semi: Linter.RuleEntry; -declare const sortKeys: Linter.RuleEntry; -declare const sortVars: Linter.RuleEntry; -declare const spaceBeforeBlocks: Linter.RuleEntry; -declare const spaceBeforeFunctionParen: Linter.RuleEntry; -declare const spaceInParens: Linter.RuleEntry; -declare const spaceInfixOps: Linter.RuleEntry; -declare const spaceUnaryOps: Linter.RuleEntry; -declare const spacedComment: Linter.RuleEntry; -declare const config: ESLint.ConfigData; - -export { arrayBracketNewline, arrayBracketSpacing, blockSpacing, braceStyle, camelcase, commaDangle, commaSpacing, commaStyle, config, dotLocation, dotNotation, eqeqeq, funcCallSpacing, indent, keySpacing, keywordSpacing, maxLen, noArrayConstructor, noEmptyFunction, noEmptyPattern, noExtraParens, noExtraSemi, noImpliedEval, noIrregularWhitespace, noLossOfPrecision, noMisleadingCharacterClass, noMixedOperators, noMixedRequires, noMixedSpacesAndTabs, noMultiAssign, noMultiSpaces, noMultiStr, noRestrictedSyntax, noSparseArrays, noThrowLiteral, noUnusedExpressions, noUnusedVars, noUseBeforeDefine, objectCurlyNewline, objectCurlySpacing, objectPropertyNewline, operatorLinebreak, quotes, semi, sortKeys, sortVars, spaceBeforeBlocks, spaceBeforeFunctionParen, spaceInParens, spaceInfixOps, spaceUnaryOps, spacedComment }; diff --git a/node_modules/@myparcel-eslint/eslint-config/dist/index.js b/node_modules/@myparcel-eslint/eslint-config/dist/index.js deleted file mode 100644 index 7b829e3c..00000000 --- a/node_modules/@myparcel-eslint/eslint-config/dist/index.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";var a=Object.defineProperty;var on=Object.getOwnPropertyDescriptor;var an=Object.getOwnPropertyNames;var tn=Object.prototype.hasOwnProperty;var sn=(e,n)=>{for(var o in n)a(e,o,{get:n[o],enumerable:!0})},ln=(e,n,o,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of an(n))!tn.call(e,r)&&r!==o&&a(e,r,{get:()=>n[r],enumerable:!(t=on(n,r))||t.enumerable});return e};var cn=e=>ln(a({},"__esModule",{value:!0}),e);var pn={};sn(pn,{arrayBracketNewline:()=>s,arrayBracketSpacing:()=>i,blockSpacing:()=>l,braceStyle:()=>c,camelcase:()=>f,commaDangle:()=>p,commaSpacing:()=>w,commaStyle:()=>u,config:()=>fn,dotLocation:()=>m,dotNotation:()=>y,eqeqeq:()=>x,funcCallSpacing:()=>d,indent:()=>b,keySpacing:()=>g,keywordSpacing:()=>L,maxLen:()=>E,noArrayConstructor:()=>k,noEmptyFunction:()=>v,noEmptyPattern:()=>R,noExtraParens:()=>h,noExtraSemi:()=>S,noImpliedEval:()=>j,noIrregularWhitespace:()=>C,noLossOfPrecision:()=>q,noMisleadingCharacterClass:()=>O,noMixedOperators:()=>B,noMixedRequires:()=>A,noMixedSpacesAndTabs:()=>P,noMultiAssign:()=>M,noMultiSpaces:()=>D,noMultiStr:()=>I,noRestrictedSyntax:()=>F,noSparseArrays:()=>N,noThrowLiteral:()=>U,noUnusedExpressions:()=>z,noUnusedVars:()=>T,noUseBeforeDefine:()=>V,objectCurlyNewline:()=>K,objectCurlySpacing:()=>W,objectPropertyNewline:()=>_,operatorLinebreak:()=>$,quotes:()=>G,semi:()=>H,sortKeys:()=>J,sortVars:()=>Q,spaceBeforeBlocks:()=>X,spaceBeforeFunctionParen:()=>Y,spaceInParens:()=>Z,spaceInfixOps:()=>nn,spaceUnaryOps:()=>en,spacedComment:()=>rn});module.exports=cn(pn);var s=["warn","consistent"],i=["warn","never"],l="warn",c=["warn","1tbs"],f=["warn",{ignoreDestructuring:!0,ignoreImports:!0,properties:"never"}],p=["warn","always-multiline"],w=["warn",{before:!1,after:!0}],u="warn",m=["warn","property"],y="warn",x=["warn","smart"],d=["warn","never"],b=["warn",2,{SwitchCase:1}],g="warn",L=["warn",{before:!0,after:!0}],E=["warn",120],k="warn",v="warn",R="warn",h="warn",S="warn",j="warn",C="warn",q="warn",O="off",B="warn",A="off",P="warn",M="warn",D="warn",I="off",F="warn",N="off",U="off",z="warn",T=["warn",{ignoreRestSiblings:!0}],V="off",K=["warn",{ObjectExpression:{consistent:!0},ObjectPattern:{consistent:!0},ImportDeclaration:{consistent:!0},ExportDeclaration:"never"}],W=["warn","never"],_=["warn",{allowAllPropertiesOnSameLine:!0}],$=["warn","before"],G=["warn","single"],H=["warn","always"],J="off",Q="off",X=["warn","always"],Y=["warn","never"],Z=["warn","never"],nn="warn",en=["warn",{words:!0,nonwords:!1}],rn=["warn","always",{block:{balanced:!0},markers:["/"]}],fn={env:{browser:!0},rules:{"accessor-pairs":"off","array-bracket-newline":s,"array-bracket-spacing":i,"array-callback-return":"warn","array-element-newline":["warn","consistent"],"block-scoped-var":"warn","block-spacing":l,"brace-style":c,"callback-return":"off",camelcase:f,"capitalized-comments":"off","class-methods-use-this":"warn","comma-dangle":p,"comma-spacing":w,"comma-style":u,complexity:["warn",{max:10}],"computed-property-spacing":["warn","never"],"consistent-return":"off","consistent-this":["warn","self"],curly:"warn","default-case":"off","default-case-last":"warn","default-param-last":"warn","dot-location":m,"dot-notation":y,"eol-last":"warn",eqeqeq:x,"for-direction":"warn","func-call-spacing":d,"func-name-matching":"off","func-names":"off","func-style":["warn","declaration",{allowArrowFunctions:!0}],"function-call-argument-newline":["warn","consistent"],"function-paren-newline":["warn","consistent"],"getter-return":"off","global-require":"off","grouped-accessor-pairs":"warn","guard-for-in":"off","handle-callback-err":"off","id-blacklist":"off","id-denylist":"off","id-length":["warn",{exceptions:["$","_","i","e","a","b","x","y","z"]}],"id-match":"off","implicit-arrow-linebreak":["warn","beside"],indent:b,"indent-legacy":"off","init-declarations":"off","jsx-quotes":"off","key-spacing":g,"keyword-spacing":L,"line-comment-position":["warn",{position:"above"}],"linebreak-style":["warn","unix"],"lines-around-comment":["warn",{afterBlockComment:!1,afterLineComment:!1,allowArrayEnd:!1,allowArrayStart:!0,allowBlockEnd:!1,allowBlockStart:!0,allowClassEnd:!1,allowClassStart:!0,allowObjectEnd:!1,allowObjectStart:!0,beforeBlockComment:!0}],"lines-around-directive":"warn","lines-between-class-members":["warn","always",{exceptAfterSingleLine:!0}],"max-classes-per-file":"warn","max-depth":["warn",{max:3}],"max-len":E,"max-lines":"off","max-lines-per-function":["warn",{max:50,skipComments:!0}],"max-nested-callbacks":["warn",{max:3}],"max-params":["warn",4],"max-statements":"off","max-statements-per-line":"warn","multiline-comment-style":"off","multiline-ternary":["warn","always-multiline"],"new-cap":["warn"],"new-parens":"warn","newline-after-var":"off","newline-before-return":"off","newline-per-chained-call":"off","no-alert":"warn","no-array-constructor":k,"no-bitwise":"warn","no-buffer-constructor":"warn","no-caller":"warn","no-case-declarations":"warn","no-catch-shadow":"warn","no-compare-neg-zero":"warn","no-cond-assign":"warn","no-console":"warn","no-constant-condition":"warn","no-constructor-return":"warn","no-continue":"off","no-control-regex":"off","no-debugger":"error","no-delete-var":"warn","no-div-regex":"off","no-dupe-args":"warn","no-dupe-else-if":"warn","no-dupe-keys":"warn","no-duplicate-case":"warn","no-else-return":"warn","no-empty":"warn","no-empty-character-class":"warn","no-empty-function":v,"no-empty-pattern":R,"no-eq-null":"warn","no-eval":"warn","no-ex-assign":"warn","no-extend-native":"warn","no-extra-bind":"warn","no-extra-boolean-cast":"warn","no-extra-label":"warn","no-extra-parens":h,"no-extra-semi":S,"no-fallthrough":"off","no-floating-decimal":"warn","no-func-assign":"warn","no-global-assign":"warn","no-implicit-coercion":["warn",{boolean:!1}],"no-implicit-globals":"warn","no-implied-eval":j,"no-import-assign":"warn","no-inline-comments":"warn","no-inner-declarations":"off","no-invalid-regexp":"warn","no-invalid-this":"warn","no-irregular-whitespace":C,"no-iterator":"warn","no-label-var":"warn","no-labels":"off","no-lone-blocks":"off","no-lonely-if":"warn","no-loop-func":"off","no-loss-of-precision":q,"no-magic-numbers":["warn",{ignore:[-1,0,1,100,1e3],detectObjects:!0}],"no-misleading-character-class":O,"no-mixed-operators":B,"no-mixed-requires":A,"no-mixed-spaces-and-tabs":P,"no-multi-assign":M,"no-multi-spaces":D,"no-multi-str":I,"no-multiple-empty-lines":["warn",{max:1,maxBOF:0,maxEOF:0}],"no-native-reassign":"off","no-negated-condition":"warn","no-negated-in-lhs":"off","no-nested-ternary":"warn","no-new":"off","no-new-func":"off","no-new-object":"warn","no-new-require":"off","no-new-wrappers":"off","no-nonoctal-decimal-escape":"warn","no-obj-calls":"off","no-octal":"off","no-octal-escape":"off","no-param-reassign":"off","no-path-concat":"off","no-plusplus":"off","no-process-env":"off","no-process-exit":"off","no-promise-executor-return":"warn","no-proto":"off","no-prototype-builtins":"off","no-redeclare":"off","no-regex-spaces":"warn","no-restricted-exports":"warn","no-restricted-globals":"warn","no-restricted-modules":"warn","no-restricted-properties":"warn","no-restricted-syntax":F,"no-return-assign":"warn","no-script-url":"off","no-self-assign":"off","no-self-compare":"off","no-sequences":"warn","no-setter-return":"warn","no-shadow":"off","no-shadow-restricted-names":"off","no-spaced-func":"off","no-sparse-arrays":N,"no-sync":"off","no-tabs":"warn","no-template-curly-in-string":"warn","no-ternary":"off","no-throw-literal":U,"no-trailing-spaces":"warn","no-undef":"warn","no-undef-init":"off","no-undefined":"off","no-underscore-dangle":["warn",{allowAfterThis:!0}],"no-unexpected-multiline":"warn","no-unmodified-loop-condition":"warn","no-unneeded-ternary":"warn","no-unreachable":"warn","no-unreachable-loop":"warn","no-unsafe-finally":"off","no-unsafe-negation":"off","no-unsafe-optional-chaining":"warn","no-unused-expressions":z,"no-unused-labels":"warn","no-unused-private-class-members":"warn","no-unused-vars":T,"no-use-before-define":V,"no-useless-backreference":"warn","no-useless-call":"warn","no-useless-catch":"warn","no-useless-concat":"warn","no-useless-escape":"warn","no-useless-return":"warn","no-void":"off","no-warning-comments":"off","no-whitespace-before-property":"warn","no-with":"warn","nonblock-statement-body-position":"off","object-curly-newline":K,"object-curly-spacing":W,"object-property-newline":_,"one-var":["warn","never"],"one-var-declaration-per-line":["warn","always"],"operator-assignment":"warn","operator-linebreak":$,"padded-blocks":["warn",{blocks:"never",switches:"never",classes:"never"}],"padding-line-between-statements":["warn",{blankLine:"always",prev:"cjs-import",next:"*"},{blankLine:"never",prev:"cjs-import",next:"cjs-import"},{blankLine:"always",prev:"*",next:"cjs-export"},{blankLine:"never",prev:"cjs-export",next:"cjs-export"},{blankLine:"always",prev:"export",next:"*"},{blankLine:"always",prev:"export",next:"export"},{blankLine:"always",prev:"import",next:"*"},{blankLine:"never",prev:"import",next:"import"},{blankLine:"always",prev:"*",next:"block-like"},{blankLine:"always",prev:"block-like",next:"*"},{blankLine:"always",prev:"*",next:"block"},{blankLine:"always",prev:"block",next:"*"},{blankLine:"always",prev:"*",next:"if"},{blankLine:"always",prev:"if",next:"*"}],"prefer-exponentiation-operator":"warn","prefer-named-capture-group":"off","prefer-object-spread":"warn","prefer-promise-reject-errors":"off","prefer-reflect":"off","prefer-regex-literals":"warn","quote-props":["warn","as-needed"],quotes:G,radix:["warn","as-needed"],"require-atomic-updates":"off","require-unicode-regexp":"off",semi:H,"semi-spacing":"warn","semi-style":["warn","last"],"sort-keys":J,"sort-vars":Q,"space-before-blocks":X,"space-before-function-paren":Y,"space-in-parens":Z,"space-infix-ops":nn,"space-unary-ops":en,"spaced-comment":rn,strict:"off","switch-colon-spacing":"warn","template-tag-spacing":"off","unicode-bom":"off","use-isnan":"off","valid-typeof":"warn","vars-on-top":"warn","wrap-iife":"off","wrap-regex":"warn",yoda:["warn","never"]}};0&&(module.exports={arrayBracketNewline,arrayBracketSpacing,blockSpacing,braceStyle,camelcase,commaDangle,commaSpacing,commaStyle,config,dotLocation,dotNotation,eqeqeq,funcCallSpacing,indent,keySpacing,keywordSpacing,maxLen,noArrayConstructor,noEmptyFunction,noEmptyPattern,noExtraParens,noExtraSemi,noImpliedEval,noIrregularWhitespace,noLossOfPrecision,noMisleadingCharacterClass,noMixedOperators,noMixedRequires,noMixedSpacesAndTabs,noMultiAssign,noMultiSpaces,noMultiStr,noRestrictedSyntax,noSparseArrays,noThrowLiteral,noUnusedExpressions,noUnusedVars,noUseBeforeDefine,objectCurlyNewline,objectCurlySpacing,objectPropertyNewline,operatorLinebreak,quotes,semi,sortKeys,sortVars,spaceBeforeBlocks,spaceBeforeFunctionParen,spaceInParens,spaceInfixOps,spaceUnaryOps,spacedComment}); diff --git a/node_modules/@myparcel-eslint/eslint-config/dist/index.mjs b/node_modules/@myparcel-eslint/eslint-config/dist/index.mjs deleted file mode 100644 index ee45a462..00000000 --- a/node_modules/@myparcel-eslint/eslint-config/dist/index.mjs +++ /dev/null @@ -1 +0,0 @@ -var n=["warn","consistent"],e=["warn","never"],r="warn",o=["warn","1tbs"],a=["warn",{ignoreDestructuring:!0,ignoreImports:!0,properties:"never"}],t=["warn","always-multiline"],s=["warn",{before:!1,after:!0}],i="warn",l=["warn","property"],c="warn",f=["warn","smart"],p=["warn","never"],w=["warn",2,{SwitchCase:1}],u="warn",m=["warn",{before:!0,after:!0}],y=["warn",120],x="warn",d="warn",b="warn",g="warn",L="warn",E="warn",k="warn",v="warn",R="off",h="warn",S="off",j="warn",C="warn",q="warn",O="off",B="warn",A="off",P="off",M="warn",D=["warn",{ignoreRestSiblings:!0}],I="off",F=["warn",{ObjectExpression:{consistent:!0},ObjectPattern:{consistent:!0},ImportDeclaration:{consistent:!0},ExportDeclaration:"never"}],N=["warn","never"],U=["warn",{allowAllPropertiesOnSameLine:!0}],z=["warn","before"],T=["warn","single"],V=["warn","always"],K="off",W="off",_=["warn","always"],$=["warn","never"],G=["warn","never"],H="warn",J=["warn",{words:!0,nonwords:!1}],Q=["warn","always",{block:{balanced:!0},markers:["/"]}],X={env:{browser:!0},rules:{"accessor-pairs":"off","array-bracket-newline":n,"array-bracket-spacing":e,"array-callback-return":"warn","array-element-newline":["warn","consistent"],"block-scoped-var":"warn","block-spacing":r,"brace-style":o,"callback-return":"off",camelcase:a,"capitalized-comments":"off","class-methods-use-this":"warn","comma-dangle":t,"comma-spacing":s,"comma-style":i,complexity:["warn",{max:10}],"computed-property-spacing":["warn","never"],"consistent-return":"off","consistent-this":["warn","self"],curly:"warn","default-case":"off","default-case-last":"warn","default-param-last":"warn","dot-location":l,"dot-notation":c,"eol-last":"warn",eqeqeq:f,"for-direction":"warn","func-call-spacing":p,"func-name-matching":"off","func-names":"off","func-style":["warn","declaration",{allowArrowFunctions:!0}],"function-call-argument-newline":["warn","consistent"],"function-paren-newline":["warn","consistent"],"getter-return":"off","global-require":"off","grouped-accessor-pairs":"warn","guard-for-in":"off","handle-callback-err":"off","id-blacklist":"off","id-denylist":"off","id-length":["warn",{exceptions:["$","_","i","e","a","b","x","y","z"]}],"id-match":"off","implicit-arrow-linebreak":["warn","beside"],indent:w,"indent-legacy":"off","init-declarations":"off","jsx-quotes":"off","key-spacing":u,"keyword-spacing":m,"line-comment-position":["warn",{position:"above"}],"linebreak-style":["warn","unix"],"lines-around-comment":["warn",{afterBlockComment:!1,afterLineComment:!1,allowArrayEnd:!1,allowArrayStart:!0,allowBlockEnd:!1,allowBlockStart:!0,allowClassEnd:!1,allowClassStart:!0,allowObjectEnd:!1,allowObjectStart:!0,beforeBlockComment:!0}],"lines-around-directive":"warn","lines-between-class-members":["warn","always",{exceptAfterSingleLine:!0}],"max-classes-per-file":"warn","max-depth":["warn",{max:3}],"max-len":y,"max-lines":"off","max-lines-per-function":["warn",{max:50,skipComments:!0}],"max-nested-callbacks":["warn",{max:3}],"max-params":["warn",4],"max-statements":"off","max-statements-per-line":"warn","multiline-comment-style":"off","multiline-ternary":["warn","always-multiline"],"new-cap":["warn"],"new-parens":"warn","newline-after-var":"off","newline-before-return":"off","newline-per-chained-call":"off","no-alert":"warn","no-array-constructor":x,"no-bitwise":"warn","no-buffer-constructor":"warn","no-caller":"warn","no-case-declarations":"warn","no-catch-shadow":"warn","no-compare-neg-zero":"warn","no-cond-assign":"warn","no-console":"warn","no-constant-condition":"warn","no-constructor-return":"warn","no-continue":"off","no-control-regex":"off","no-debugger":"error","no-delete-var":"warn","no-div-regex":"off","no-dupe-args":"warn","no-dupe-else-if":"warn","no-dupe-keys":"warn","no-duplicate-case":"warn","no-else-return":"warn","no-empty":"warn","no-empty-character-class":"warn","no-empty-function":d,"no-empty-pattern":b,"no-eq-null":"warn","no-eval":"warn","no-ex-assign":"warn","no-extend-native":"warn","no-extra-bind":"warn","no-extra-boolean-cast":"warn","no-extra-label":"warn","no-extra-parens":g,"no-extra-semi":L,"no-fallthrough":"off","no-floating-decimal":"warn","no-func-assign":"warn","no-global-assign":"warn","no-implicit-coercion":["warn",{boolean:!1}],"no-implicit-globals":"warn","no-implied-eval":E,"no-import-assign":"warn","no-inline-comments":"warn","no-inner-declarations":"off","no-invalid-regexp":"warn","no-invalid-this":"warn","no-irregular-whitespace":k,"no-iterator":"warn","no-label-var":"warn","no-labels":"off","no-lone-blocks":"off","no-lonely-if":"warn","no-loop-func":"off","no-loss-of-precision":v,"no-magic-numbers":["warn",{ignore:[-1,0,1,100,1e3],detectObjects:!0}],"no-misleading-character-class":R,"no-mixed-operators":h,"no-mixed-requires":S,"no-mixed-spaces-and-tabs":j,"no-multi-assign":C,"no-multi-spaces":q,"no-multi-str":O,"no-multiple-empty-lines":["warn",{max:1,maxBOF:0,maxEOF:0}],"no-native-reassign":"off","no-negated-condition":"warn","no-negated-in-lhs":"off","no-nested-ternary":"warn","no-new":"off","no-new-func":"off","no-new-object":"warn","no-new-require":"off","no-new-wrappers":"off","no-nonoctal-decimal-escape":"warn","no-obj-calls":"off","no-octal":"off","no-octal-escape":"off","no-param-reassign":"off","no-path-concat":"off","no-plusplus":"off","no-process-env":"off","no-process-exit":"off","no-promise-executor-return":"warn","no-proto":"off","no-prototype-builtins":"off","no-redeclare":"off","no-regex-spaces":"warn","no-restricted-exports":"warn","no-restricted-globals":"warn","no-restricted-modules":"warn","no-restricted-properties":"warn","no-restricted-syntax":B,"no-return-assign":"warn","no-script-url":"off","no-self-assign":"off","no-self-compare":"off","no-sequences":"warn","no-setter-return":"warn","no-shadow":"off","no-shadow-restricted-names":"off","no-spaced-func":"off","no-sparse-arrays":A,"no-sync":"off","no-tabs":"warn","no-template-curly-in-string":"warn","no-ternary":"off","no-throw-literal":P,"no-trailing-spaces":"warn","no-undef":"warn","no-undef-init":"off","no-undefined":"off","no-underscore-dangle":["warn",{allowAfterThis:!0}],"no-unexpected-multiline":"warn","no-unmodified-loop-condition":"warn","no-unneeded-ternary":"warn","no-unreachable":"warn","no-unreachable-loop":"warn","no-unsafe-finally":"off","no-unsafe-negation":"off","no-unsafe-optional-chaining":"warn","no-unused-expressions":M,"no-unused-labels":"warn","no-unused-private-class-members":"warn","no-unused-vars":D,"no-use-before-define":I,"no-useless-backreference":"warn","no-useless-call":"warn","no-useless-catch":"warn","no-useless-concat":"warn","no-useless-escape":"warn","no-useless-return":"warn","no-void":"off","no-warning-comments":"off","no-whitespace-before-property":"warn","no-with":"warn","nonblock-statement-body-position":"off","object-curly-newline":F,"object-curly-spacing":N,"object-property-newline":U,"one-var":["warn","never"],"one-var-declaration-per-line":["warn","always"],"operator-assignment":"warn","operator-linebreak":z,"padded-blocks":["warn",{blocks:"never",switches:"never",classes:"never"}],"padding-line-between-statements":["warn",{blankLine:"always",prev:"cjs-import",next:"*"},{blankLine:"never",prev:"cjs-import",next:"cjs-import"},{blankLine:"always",prev:"*",next:"cjs-export"},{blankLine:"never",prev:"cjs-export",next:"cjs-export"},{blankLine:"always",prev:"export",next:"*"},{blankLine:"always",prev:"export",next:"export"},{blankLine:"always",prev:"import",next:"*"},{blankLine:"never",prev:"import",next:"import"},{blankLine:"always",prev:"*",next:"block-like"},{blankLine:"always",prev:"block-like",next:"*"},{blankLine:"always",prev:"*",next:"block"},{blankLine:"always",prev:"block",next:"*"},{blankLine:"always",prev:"*",next:"if"},{blankLine:"always",prev:"if",next:"*"}],"prefer-exponentiation-operator":"warn","prefer-named-capture-group":"off","prefer-object-spread":"warn","prefer-promise-reject-errors":"off","prefer-reflect":"off","prefer-regex-literals":"warn","quote-props":["warn","as-needed"],quotes:T,radix:["warn","as-needed"],"require-atomic-updates":"off","require-unicode-regexp":"off",semi:V,"semi-spacing":"warn","semi-style":["warn","last"],"sort-keys":K,"sort-vars":W,"space-before-blocks":_,"space-before-function-paren":$,"space-in-parens":G,"space-infix-ops":H,"space-unary-ops":J,"spaced-comment":Q,strict:"off","switch-colon-spacing":"warn","template-tag-spacing":"off","unicode-bom":"off","use-isnan":"off","valid-typeof":"warn","vars-on-top":"warn","wrap-iife":"off","wrap-regex":"warn",yoda:["warn","never"]}};export{n as arrayBracketNewline,e as arrayBracketSpacing,r as blockSpacing,o as braceStyle,a as camelcase,t as commaDangle,s as commaSpacing,i as commaStyle,X as config,l as dotLocation,c as dotNotation,f as eqeqeq,p as funcCallSpacing,w as indent,u as keySpacing,m as keywordSpacing,y as maxLen,x as noArrayConstructor,d as noEmptyFunction,b as noEmptyPattern,g as noExtraParens,L as noExtraSemi,E as noImpliedEval,k as noIrregularWhitespace,v as noLossOfPrecision,R as noMisleadingCharacterClass,h as noMixedOperators,S as noMixedRequires,j as noMixedSpacesAndTabs,C as noMultiAssign,q as noMultiSpaces,O as noMultiStr,B as noRestrictedSyntax,A as noSparseArrays,P as noThrowLiteral,M as noUnusedExpressions,D as noUnusedVars,I as noUseBeforeDefine,F as objectCurlyNewline,N as objectCurlySpacing,U as objectPropertyNewline,z as operatorLinebreak,T as quotes,V as semi,K as sortKeys,W as sortVars,_ as spaceBeforeBlocks,$ as spaceBeforeFunctionParen,G as spaceInParens,H as spaceInfixOps,J as spaceUnaryOps,Q as spacedComment}; diff --git a/node_modules/@npmcli/agent/node_modules/socks-proxy-agent/dist/index.d.ts b/node_modules/@npmcli/agent/node_modules/socks-proxy-agent/dist/index.d.ts deleted file mode 100644 index ad79b8a9..00000000 --- a/node_modules/@npmcli/agent/node_modules/socks-proxy-agent/dist/index.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/// -/// -/// -import { SocksProxy } from 'socks'; -import { Agent, AgentConnectOpts } from 'agent-base'; -import * as net from 'net'; -import * as http from 'http'; -import { URL } from 'url'; -type SocksSocketOptions = Omit; -export type SocksProxyAgentOptions = Omit & { - socketOptions?: SocksSocketOptions; -} & http.AgentOptions; -export declare class SocksProxyAgent extends Agent { - static protocols: readonly ["socks", "socks4", "socks4a", "socks5", "socks5h"]; - readonly shouldLookup: boolean; - readonly proxy: SocksProxy; - timeout: number | null; - socketOptions: SocksSocketOptions | null; - constructor(uri: string | URL, opts?: SocksProxyAgentOptions); - /** - * Initiates a SOCKS connection to the specified SOCKS proxy server, - * which in turn connects to the specified remote host and port. - */ - connect(req: http.ClientRequest, opts: AgentConnectOpts): Promise; -} -export {}; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@npmcli/agent/node_modules/socks-proxy-agent/dist/index.d.ts.map b/node_modules/@npmcli/agent/node_modules/socks-proxy-agent/dist/index.d.ts.map deleted file mode 100644 index 958b6160..00000000 --- a/node_modules/@npmcli/agent/node_modules/socks-proxy-agent/dist/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,OAAO,EAAe,UAAU,EAAsB,MAAM,OAAO,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGrD,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAkE1B,KAAK,kBAAkB,GAAG,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAEvE,MAAM,MAAM,sBAAsB,GAAG,IAAI,CACxC,UAAU,EAEV,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAC9D,GAAG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAC;CACnC,GACA,IAAI,CAAC,YAAY,CAAC;AAEnB,qBAAa,eAAgB,SAAQ,KAAK;IACzC,MAAM,CAAC,SAAS,+DAML;IAEX,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,aAAa,EAAE,kBAAkB,GAAG,IAAI,CAAC;gBAE7B,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,sBAAsB;IAY5D;;;OAGG;IACG,OAAO,CACZ,GAAG,EAAE,IAAI,CAAC,aAAa,EACvB,IAAI,EAAE,gBAAgB,GACpB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC;CAyEtB"} \ No newline at end of file diff --git a/node_modules/@npmcli/agent/node_modules/socks-proxy-agent/dist/index.js b/node_modules/@npmcli/agent/node_modules/socks-proxy-agent/dist/index.js deleted file mode 100644 index a9b5db2d..00000000 --- a/node_modules/@npmcli/agent/node_modules/socks-proxy-agent/dist/index.js +++ /dev/null @@ -1,185 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SocksProxyAgent = void 0; -const socks_1 = require("socks"); -const agent_base_1 = require("agent-base"); -const debug_1 = __importDefault(require("debug")); -const dns = __importStar(require("dns")); -const tls = __importStar(require("tls")); -const url_1 = require("url"); -const debug = (0, debug_1.default)('socks-proxy-agent'); -function parseSocksURL(url) { - let lookup = false; - let type = 5; - const host = url.hostname; - // From RFC 1928, Section 3: https://tools.ietf.org/html/rfc1928#section-3 - // "The SOCKS service is conventionally located on TCP port 1080" - const port = parseInt(url.port, 10) || 1080; - // figure out if we want socks v4 or v5, based on the "protocol" used. - // Defaults to 5. - switch (url.protocol.replace(':', '')) { - case 'socks4': - lookup = true; - type = 4; - break; - // pass through - case 'socks4a': - type = 4; - break; - case 'socks5': - lookup = true; - type = 5; - break; - // pass through - case 'socks': // no version specified, default to 5h - type = 5; - break; - case 'socks5h': - type = 5; - break; - default: - throw new TypeError(`A "socks" protocol must be specified! Got: ${String(url.protocol)}`); - } - const proxy = { - host, - port, - type, - }; - if (url.username) { - Object.defineProperty(proxy, 'userId', { - value: decodeURIComponent(url.username), - enumerable: false, - }); - } - if (url.password != null) { - Object.defineProperty(proxy, 'password', { - value: decodeURIComponent(url.password), - enumerable: false, - }); - } - return { lookup, proxy }; -} -class SocksProxyAgent extends agent_base_1.Agent { - constructor(uri, opts) { - super(opts); - const url = typeof uri === 'string' ? new url_1.URL(uri) : uri; - const { proxy, lookup } = parseSocksURL(url); - this.shouldLookup = lookup; - this.proxy = proxy; - this.timeout = opts?.timeout ?? null; - this.socketOptions = opts?.socketOptions ?? null; - } - /** - * Initiates a SOCKS connection to the specified SOCKS proxy server, - * which in turn connects to the specified remote host and port. - */ - async connect(req, opts) { - const { shouldLookup, proxy, timeout } = this; - if (!opts.host) { - throw new Error('No `host` defined!'); - } - let { host } = opts; - const { port, lookup: lookupFn = dns.lookup } = opts; - if (shouldLookup) { - // Client-side DNS resolution for "4" and "5" socks proxy versions. - host = await new Promise((resolve, reject) => { - // Use the request's custom lookup, if one was configured: - lookupFn(host, {}, (err, res) => { - if (err) { - reject(err); - } - else { - resolve(res); - } - }); - }); - } - const socksOpts = { - proxy, - destination: { - host, - port: typeof port === 'number' ? port : parseInt(port, 10), - }, - command: 'connect', - timeout: timeout ?? undefined, - // @ts-expect-error the type supplied by socks for socket_options is wider - // than necessary since socks will always override the host and port - socket_options: this.socketOptions ?? undefined, - }; - const cleanup = (tlsSocket) => { - req.destroy(); - socket.destroy(); - if (tlsSocket) - tlsSocket.destroy(); - }; - debug('Creating socks proxy connection: %o', socksOpts); - const { socket } = await socks_1.SocksClient.createConnection(socksOpts); - debug('Successfully created socks proxy connection'); - if (timeout !== null) { - socket.setTimeout(timeout); - socket.on('timeout', () => cleanup()); - } - if (opts.secureEndpoint) { - // The proxy is connecting to a TLS server, so upgrade - // this socket connection to a TLS connection. - debug('Upgrading socket connection to TLS'); - const servername = opts.servername || opts.host; - const tlsSocket = tls.connect({ - ...omit(opts, 'host', 'path', 'port'), - socket, - servername, - }); - tlsSocket.once('error', (error) => { - debug('Socket TLS error', error.message); - cleanup(tlsSocket); - }); - return tlsSocket; - } - return socket; - } -} -SocksProxyAgent.protocols = [ - 'socks', - 'socks4', - 'socks4a', - 'socks5', - 'socks5h', -]; -exports.SocksProxyAgent = SocksProxyAgent; -function omit(obj, ...keys) { - const ret = {}; - let key; - for (key in obj) { - if (!keys.includes(key)) { - ret[key] = obj[key]; - } - } - return ret; -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@npmcli/agent/node_modules/socks-proxy-agent/dist/index.js.map b/node_modules/@npmcli/agent/node_modules/socks-proxy-agent/dist/index.js.map deleted file mode 100644 index 20f190d2..00000000 --- a/node_modules/@npmcli/agent/node_modules/socks-proxy-agent/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAoE;AACpE,2CAAqD;AACrD,kDAAgC;AAChC,yCAA2B;AAE3B,yCAA2B;AAE3B,6BAA0B;AAE1B,MAAM,KAAK,GAAG,IAAA,eAAW,EAAC,mBAAmB,CAAC,CAAC;AAE/C,SAAS,aAAa,CAAC,GAAQ;IAC9B,IAAI,MAAM,GAAG,KAAK,CAAC;IACnB,IAAI,IAAI,GAAuB,CAAC,CAAC;IACjC,MAAM,IAAI,GAAG,GAAG,CAAC,QAAQ,CAAC;IAE1B,0EAA0E;IAC1E,iEAAiE;IACjE,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC;IAE5C,sEAAsE;IACtE,iBAAiB;IACjB,QAAQ,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE;QACtC,KAAK,QAAQ;YACZ,MAAM,GAAG,IAAI,CAAC;YACd,IAAI,GAAG,CAAC,CAAC;YACT,MAAM;QACP,eAAe;QACf,KAAK,SAAS;YACb,IAAI,GAAG,CAAC,CAAC;YACT,MAAM;QACP,KAAK,QAAQ;YACZ,MAAM,GAAG,IAAI,CAAC;YACd,IAAI,GAAG,CAAC,CAAC;YACT,MAAM;QACP,eAA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,GAAM,EACN,GAAG,IAAO;IAIV,MAAM,GAAG,GAAG,EAAkD,CAAC;IAC/D,IAAI,GAAqB,CAAC;IAC1B,KAAK,GAAG,IAAI,GAAG,EAAE;QAChB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACxB,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;SACpB;KACD;IACD,OAAO,GAAG,CAAC;AACZ,CAAC"} \ No newline at end of file diff --git a/node_modules/@pnpm/config.env-replace/dist/env-replace.d.ts b/node_modules/@pnpm/config.env-replace/dist/env-replace.d.ts deleted file mode 100644 index d65f04fd..00000000 --- a/node_modules/@pnpm/config.env-replace/dist/env-replace.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare function envReplace(settingValue: string, env: NodeJS.ProcessEnv): string; diff --git a/node_modules/@pnpm/config.env-replace/dist/env-replace.docs.mdx b/node_modules/@pnpm/config.env-replace/dist/env-replace.docs.mdx deleted file mode 100644 index 355abcb2..00000000 --- a/node_modules/@pnpm/config.env-replace/dist/env-replace.docs.mdx +++ /dev/null @@ -1,18 +0,0 @@ ---- -labels: ['configuration'] -description: 'A function for repacing env variables in configuration settings' ---- - -API: - -```ts -function envReplace(settingValue: string, env: NodeJS.ProcessEnv): string; -``` - -Usage: - -```ts -import { envReplace } from '@pnpm/config.env-replace' - -envReplace('${foo}', process.env) -``` diff --git a/node_modules/@pnpm/config.env-replace/dist/env-replace.js b/node_modules/@pnpm/config.env-replace/dist/env-replace.js deleted file mode 100644 index 52ac3763..00000000 --- a/node_modules/@pnpm/config.env-replace/dist/env-replace.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.envReplace = void 0; -const ENV_EXPR = /(? %s', (settingValue, expected) => { - const actual = (0, env_replace_1.envReplace)(settingValue, ENV); - expect(actual).toEqual(expected); -}); -test('fail when the env variable is not found', () => { - expect(() => (0, env_replace_1.envReplace)('${baz}', ENV)).toThrow(`Failed to replace env in config: \${baz}`); - expect(() => (0, env_replace_1.envReplace)('${foo-}', ENV)).toThrow(`Failed to replace env in config: \${foo-}`); - expect(() => (0, env_replace_1.envReplace)('${foo:-}', ENV)).toThrow(`Failed to replace env in config: \${foo:-}`); -}); -//# sourceMappingURL=env-replace.spec.js.map \ No newline at end of file diff --git a/node_modules/@pnpm/config.env-replace/dist/env-replace.spec.js.map b/node_modules/@pnpm/config.env-replace/dist/env-replace.spec.js.map deleted file mode 100644 index abdf484b..00000000 --- a/node_modules/@pnpm/config.env-replace/dist/env-replace.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"env-replace.spec.js","sourceRoot":"","sources":["../env-replace.spec.ts"],"names":[],"mappings":";;AAAA,+CAA2C;AAE3C,MAAM,GAAG,GAAG;IACV,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,EAAE;CACR,CAAA;AAED,IAAI,CAAC,IAAI,CAAC;IACR,CAAC,gBAAgB,EAAE,sBAAsB,CAAC;IAC1C,CAAC,UAAU,EAAE,QAAQ,CAAC;IACtB,CAAC,UAAU,EAAE,QAAQ,CAAC;IACtB,CAAC,YAAY,EAAE,aAAa,CAAC;IAC7B,CAAC,+CAA+C,EAAE,sBAAsB,CAAC;IACzE,CAAC,8CAA8C,EAAE,kBAAkB,CAAC;IACpE,CAAC,yDAAyD,EAAE,0CAA0C,CAAC;CACxG,CAAC,CAAC,kBAAkB,EAAE,CAAC,YAAY,EAAE,QAAQ,EAAE,EAAE;IAChD,MAAM,MAAM,GAAG,IAAA,wBAAU,EAAC,YAAY,EAAE,GAAG,CAAC,CAAC;IAC7C,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AACnC,CAAC,CAAC,CAAA;AAEF,IAAI,CAAC,yCAAyC,EAAE,GAAG,EAAE;IACnD,MAAM,CAAC,GAAG,EAAE,CAAC,IAAA,wBAAU,EAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,0CAA0C,CAAC,CAAC;IAC5F,MAAM,CAAC,GAAG,EAAE,CAAC,IAAA,wBAAU,EAAC,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,2CAA2C,CAAC,CAAC;IAC9F,MAAM,CAAC,GAAG,EAAE,CAAC,IAAA,wBAAU,EAAC,UAAU,EAAE,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,4CAA4C,CAAC,CAAC;AAClG,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/node_modules/@pnpm/config.env-replace/dist/index.d.ts b/node_modules/@pnpm/config.env-replace/dist/index.d.ts deleted file mode 100644 index f3a18b53..00000000 --- a/node_modules/@pnpm/config.env-replace/dist/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { envReplace } from './env-replace'; diff --git a/node_modules/@pnpm/config.env-replace/dist/index.js b/node_modules/@pnpm/config.env-replace/dist/index.js deleted file mode 100644 index 1ec22269..00000000 --- a/node_modules/@pnpm/config.env-replace/dist/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.envReplace = void 0; -var env_replace_1 = require("./env-replace"); -Object.defineProperty(exports, "envReplace", { enumerable: true, get: function () { return env_replace_1.envReplace; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@pnpm/config.env-replace/dist/index.js.map b/node_modules/@pnpm/config.env-replace/dist/index.js.map deleted file mode 100644 index 5a2f091a..00000000 --- a/node_modules/@pnpm/config.env-replace/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,6CAA2C;AAAlC,yGAAA,UAAU,OAAA"} \ No newline at end of file diff --git a/node_modules/@pnpm/config.env-replace/dist/preview-1680634751300.js b/node_modules/@pnpm/config.env-replace/dist/preview-1680634751300.js deleted file mode 100644 index 0e3769e3..00000000 --- a/node_modules/@pnpm/config.env-replace/dist/preview-1680634751300.js +++ /dev/null @@ -1,7 +0,0 @@ -; -import * as overview_0 from '/Users/zoltan/Library/Caches/Bit/capsules/05f6140f72f7d4c5be56111dbe63734e37f4e9e4/pnpm.config_env-replace@1.1.0/dist/env-replace.docs.mdx'; - -export const compositions = []; -export const overview = [overview_0]; - -export const compositions_metadata = {"compositions":[]}; diff --git a/node_modules/@pnpm/config.env-replace/dist/tsconfig.json b/node_modules/@pnpm/config.env-replace/dist/tsconfig.json deleted file mode 100644 index 3bb63d45..00000000 --- a/node_modules/@pnpm/config.env-replace/dist/tsconfig.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "compilerOptions": { - "lib": [ - "es2019", - "DOM", - "ES6", - "DOM.Iterable" - ], - "target": "es2015", - "module": "CommonJS", - "jsx": "react", - "allowJs": true, - "composite": true, - "declaration": true, - "sourceMap": true, - "skipLibCheck": true, - "experimentalDecorators": true, - "outDir": "dist", - "moduleResolution": "node", - "esModuleInterop": true, - "rootDir": ".", - "resolveJsonModule": true - }, - "exclude": [ - "dist", - "package.json" - ], - "include": [ - "**/*", - "**/*.json" - ] -} diff --git a/node_modules/@pnpm/network.ca-file/dist/ca-file.d.ts b/node_modules/@pnpm/network.ca-file/dist/ca-file.d.ts deleted file mode 100644 index 18bab372..00000000 --- a/node_modules/@pnpm/network.ca-file/dist/ca-file.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function readCAFileSync(filePath: string): string[] | undefined; diff --git a/node_modules/@pnpm/network.ca-file/dist/ca-file.docs.mdx b/node_modules/@pnpm/network.ca-file/dist/ca-file.docs.mdx deleted file mode 100644 index 1002c20c..00000000 --- a/node_modules/@pnpm/network.ca-file/dist/ca-file.docs.mdx +++ /dev/null @@ -1,12 +0,0 @@ ---- -labels: ['ca', 'certificate authority'] -description: 'A component for reading the certificate authority data from a text file' ---- - -API: - -```ts -import { readCAFileSync } from '@pnpm/network.ca-file' - -readCAFileSync('cafile.txt') -``` diff --git a/node_modules/@pnpm/network.ca-file/dist/ca-file.js b/node_modules/@pnpm/network.ca-file/dist/ca-file.js deleted file mode 100644 index c5893f5e..00000000 --- a/node_modules/@pnpm/network.ca-file/dist/ca-file.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.readCAFileSync = void 0; -const graceful_fs_1 = __importDefault(require("graceful-fs")); -function readCAFileSync(filePath) { - try { - const contents = graceful_fs_1.default.readFileSync(filePath, 'utf8'); - const delim = '-----END CERTIFICATE-----'; - const output = contents - .split(delim) - .filter((ca) => Boolean(ca.trim())) - .map((ca) => `${ca.trimLeft()}${delim}`); - return output; - } - catch (err) { - if (err.code === 'ENOENT') - return undefined; - throw err; - } -} -exports.readCAFileSync = readCAFileSync; -//# sourceMappingURL=ca-file.js.map \ No newline at end of file diff --git a/node_modules/@pnpm/network.ca-file/dist/ca-file.js.map b/node_modules/@pnpm/network.ca-file/dist/ca-file.js.map deleted file mode 100644 index b233c86f..00000000 --- a/node_modules/@pnpm/network.ca-file/dist/ca-file.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ca-file.js","sourceRoot":"","sources":["../ca-file.ts"],"names":[],"mappings":";;;;;;AAAA,8DAA4B;AAE5B,SAAgB,cAAc,CAAE,QAAgB;IAC9C,IAAI;QACF,MAAM,QAAQ,GAAG,qBAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;QAClD,MAAM,KAAK,GAAG,2BAA2B,CAAA;QACzC,MAAM,MAAM,GAAG,QAAQ;aACpB,KAAK,CAAC,KAAK,CAAC;aACZ,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;aAClC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,EAAE,CAAC,CAAA;QAC1C,OAAO,MAAM,CAAA;KACd;IAAC,OAAO,GAAG,EAAE;QACZ,IAAI,GAAG,CAAC,IAAI,KAAK,QAAQ;YAAE,OAAO,SAAS,CAAA;QAC3C,MAAM,GAAG,CAAA;KACV;AACH,CAAC;AAbD,wCAaC"} \ No newline at end of file diff --git a/node_modules/@pnpm/network.ca-file/dist/ca-file.spec.d.ts b/node_modules/@pnpm/network.ca-file/dist/ca-file.spec.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@pnpm/network.ca-file/dist/ca-file.spec.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@pnpm/network.ca-file/dist/ca-file.spec.js b/node_modules/@pnpm/network.ca-file/dist/ca-file.spec.js deleted file mode 100644 index 70f56ec1..00000000 --- a/node_modules/@pnpm/network.ca-file/dist/ca-file.spec.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const path_1 = __importDefault(require("path")); -const ca_file_1 = require("./ca-file"); -it('should read CA file', () => { - expect((0, ca_file_1.readCAFileSync)(path_1.default.join(__dirname, 'fixtures/ca-file1.txt'))).toStrictEqual([ - `-----BEGIN CERTIFICATE----- -XXXX ------END CERTIFICATE-----`, - `-----BEGIN CERTIFICATE----- -YYYY ------END CERTIFICATE-----`, - `-----BEGIN CERTIFICATE----- -ZZZZ ------END CERTIFICATE-----`, - ]); -}); -it('should not fail when the file does not exist', () => { - expect((0, ca_file_1.readCAFileSync)(path_1.default.join(__dirname, 'not-exists.txt'))).toEqual(undefined); -}); -//# sourceMappingURL=ca-file.spec.js.map \ No newline at end of file diff --git a/node_modules/@pnpm/network.ca-file/dist/ca-file.spec.js.map b/node_modules/@pnpm/network.ca-file/dist/ca-file.spec.js.map deleted file mode 100644 index aae41ef6..00000000 --- a/node_modules/@pnpm/network.ca-file/dist/ca-file.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ca-file.spec.js","sourceRoot":"","sources":["../ca-file.spec.ts"],"names":[],"mappings":";;;;;AAAA,gDAAuB;AACvB,uCAA2C;AAE3C,EAAE,CAAC,qBAAqB,EAAE,GAAG,EAAE;IAC7B,MAAM,CAAC,IAAA,wBAAc,EAAC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,uBAAuB,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC;QAClF;;0BAEsB;QACtB;;0BAEsB;QACtB;;0BAEsB;KACvB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,8CAA8C,EAAE,GAAG,EAAE;IACtD,MAAM,CAAC,IAAA,wBAAc,EAAC,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;AACnF,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/node_modules/@pnpm/network.ca-file/dist/fixtures/ca-file1.txt b/node_modules/@pnpm/network.ca-file/dist/fixtures/ca-file1.txt deleted file mode 100644 index c8be1bae..00000000 --- a/node_modules/@pnpm/network.ca-file/dist/fixtures/ca-file1.txt +++ /dev/null @@ -1,14 +0,0 @@ ------BEGIN CERTIFICATE----- -XXXX ------END CERTIFICATE----- - ------BEGIN CERTIFICATE----- -YYYY ------END CERTIFICATE----- - - ------BEGIN CERTIFICATE----- -ZZZZ ------END CERTIFICATE----- - - diff --git a/node_modules/@pnpm/network.ca-file/dist/index.d.ts b/node_modules/@pnpm/network.ca-file/dist/index.d.ts deleted file mode 100644 index baaa4789..00000000 --- a/node_modules/@pnpm/network.ca-file/dist/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './ca-file'; diff --git a/node_modules/@pnpm/network.ca-file/dist/index.js b/node_modules/@pnpm/network.ca-file/dist/index.js deleted file mode 100644 index 721e4dfe..00000000 --- a/node_modules/@pnpm/network.ca-file/dist/index.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./ca-file"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@pnpm/network.ca-file/dist/index.js.map b/node_modules/@pnpm/network.ca-file/dist/index.js.map deleted file mode 100644 index 02505dbe..00000000 --- a/node_modules/@pnpm/network.ca-file/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB"} \ No newline at end of file diff --git a/node_modules/@pnpm/network.ca-file/dist/tsconfig.json b/node_modules/@pnpm/network.ca-file/dist/tsconfig.json deleted file mode 100644 index 3bb63d45..00000000 --- a/node_modules/@pnpm/network.ca-file/dist/tsconfig.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "compilerOptions": { - "lib": [ - "es2019", - "DOM", - "ES6", - "DOM.Iterable" - ], - "target": "es2015", - "module": "CommonJS", - "jsx": "react", - "allowJs": true, - "composite": true, - "declaration": true, - "sourceMap": true, - "skipLibCheck": true, - "experimentalDecorators": true, - "outDir": "dist", - "moduleResolution": "node", - "esModuleInterop": true, - "rootDir": ".", - "resolveJsonModule": true - }, - "exclude": [ - "dist", - "package.json" - ], - "include": [ - "**/*", - "**/*.json" - ] -} diff --git a/node_modules/@sec-ant/readable-stream/dist/core/asyncIterablePrototype.d.ts b/node_modules/@sec-ant/readable-stream/dist/core/asyncIterablePrototype.d.ts deleted file mode 100644 index 98d20c25..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/core/asyncIterablePrototype.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const AsyncIterablePrototype: object; diff --git a/node_modules/@sec-ant/readable-stream/dist/core/asyncIterator.d.ts b/node_modules/@sec-ant/readable-stream/dist/core/asyncIterator.d.ts deleted file mode 100644 index 658d943c..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/core/asyncIterator.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * the implementer that does all the heavy works - */ -declare class ReadableStreamAsyncIterableIteratorImpl implements AsyncIterator { - #private; - constructor(reader: ReadableStreamDefaultReader, preventCancel: boolean); - next(): Promise>; - return(value?: TReturn): Promise>; -} -declare const implementSymbol: unique symbol; -/** - * declare `ReadableStreamAsyncIterableIterator` interaface - */ -interface ReadableStreamAsyncIterableIterator extends AsyncIterableIterator { - [implementSymbol]: ReadableStreamAsyncIterableIteratorImpl; -} -export interface ReadableStreamIteratorOptions { - preventCancel?: boolean; -} -/** - * Get an async iterable iterator from a readable stream - * @param this - * @param readableStreamIteratorOptions - * @returns - */ -export declare function asyncIterator(this: ReadableStream, { preventCancel }?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterableIterator; -export {}; diff --git a/node_modules/@sec-ant/readable-stream/dist/core/fromAnyIterable.d.ts b/node_modules/@sec-ant/readable-stream/dist/core/fromAnyIterable.d.ts deleted file mode 100644 index 1d5bafb8..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/core/fromAnyIterable.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Create a new readable stream from an async iterable or a sync iterable - * @param iterable - * @returns a readable stream - */ -export declare function fromAnyIterable(iterable: Iterable | AsyncIterable): ReadableStream; diff --git a/node_modules/@sec-ant/readable-stream/dist/index/asyncIterator.d.ts b/node_modules/@sec-ant/readable-stream/dist/index/asyncIterator.d.ts deleted file mode 100644 index e10ed798..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/index/asyncIterator.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import "../polyfill/asyncIterator.js"; -export * from "../ponyfill/asyncIterator.js"; diff --git a/node_modules/@sec-ant/readable-stream/dist/index/asyncIterator.js b/node_modules/@sec-ant/readable-stream/dist/index/asyncIterator.js deleted file mode 100644 index 240ad006..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/index/asyncIterator.js +++ /dev/null @@ -1,5 +0,0 @@ -import "../polyfill/asyncIterator.js"; -import { asyncIterator as a } from "../ponyfill/asyncIterator.js"; -export { - a as asyncIterator -}; diff --git a/node_modules/@sec-ant/readable-stream/dist/index/fromAnyIterable.d.ts b/node_modules/@sec-ant/readable-stream/dist/index/fromAnyIterable.d.ts deleted file mode 100644 index 35eb64b7..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/index/fromAnyIterable.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import "../polyfill/fromAnyIterable.js"; -export * from "../ponyfill/fromAnyIterable.js"; diff --git a/node_modules/@sec-ant/readable-stream/dist/index/fromAnyIterable.js b/node_modules/@sec-ant/readable-stream/dist/index/fromAnyIterable.js deleted file mode 100644 index a9080876..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/index/fromAnyIterable.js +++ /dev/null @@ -1,5 +0,0 @@ -import "../polyfill/fromAnyIterable.js"; -import { fromAnyIterable as m } from "../ponyfill/fromAnyIterable.js"; -export { - m as fromAnyIterable -}; diff --git a/node_modules/@sec-ant/readable-stream/dist/index/index.d.ts b/node_modules/@sec-ant/readable-stream/dist/index/index.d.ts deleted file mode 100644 index f7aa2353..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/index/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./asyncIterator.js"; -export * from "./fromAnyIterable.js"; diff --git a/node_modules/@sec-ant/readable-stream/dist/index/index.js b/node_modules/@sec-ant/readable-stream/dist/index/index.js deleted file mode 100644 index 92a4b567..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/index/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import "../polyfill/asyncIterator.js"; -import { asyncIterator as m } from "../ponyfill/asyncIterator.js"; -import "../polyfill/fromAnyIterable.js"; -import { fromAnyIterable as a } from "../ponyfill/fromAnyIterable.js"; -export { - m as asyncIterator, - a as fromAnyIterable -}; diff --git a/node_modules/@sec-ant/readable-stream/dist/polyfill/asyncIterator.d.ts b/node_modules/@sec-ant/readable-stream/dist/polyfill/asyncIterator.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/polyfill/asyncIterator.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@sec-ant/readable-stream/dist/polyfill/asyncIterator.js b/node_modules/@sec-ant/readable-stream/dist/polyfill/asyncIterator.js deleted file mode 100644 index 32eeb3a2..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/polyfill/asyncIterator.js +++ /dev/null @@ -1,3 +0,0 @@ -import { asyncIterator as e } from "../ponyfill/asyncIterator.js"; -ReadableStream.prototype.values ??= ReadableStream.prototype[Symbol.asyncIterator] ??= e; -ReadableStream.prototype[Symbol.asyncIterator] ??= ReadableStream.prototype.values; diff --git a/node_modules/@sec-ant/readable-stream/dist/polyfill/fromAnyIterable.d.ts b/node_modules/@sec-ant/readable-stream/dist/polyfill/fromAnyIterable.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/polyfill/fromAnyIterable.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@sec-ant/readable-stream/dist/polyfill/fromAnyIterable.js b/node_modules/@sec-ant/readable-stream/dist/polyfill/fromAnyIterable.js deleted file mode 100644 index b66554aa..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/polyfill/fromAnyIterable.js +++ /dev/null @@ -1,2 +0,0 @@ -import { fromAnyIterable as r } from "../ponyfill/fromAnyIterable.js"; -ReadableStream.from ??= r; diff --git a/node_modules/@sec-ant/readable-stream/dist/polyfill/index.d.ts b/node_modules/@sec-ant/readable-stream/dist/polyfill/index.d.ts deleted file mode 100644 index 2397cf8f..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/polyfill/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import "./asyncIterator.js"; -import "./fromAnyIterable.js"; diff --git a/node_modules/@sec-ant/readable-stream/dist/polyfill/index.js b/node_modules/@sec-ant/readable-stream/dist/polyfill/index.js deleted file mode 100644 index 115aff10..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/polyfill/index.js +++ /dev/null @@ -1,4 +0,0 @@ -import "./asyncIterator.js"; -import "./fromAnyIterable.js"; -import "../ponyfill/asyncIterator.js"; -import "../ponyfill/fromAnyIterable.js"; diff --git a/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.d.ts b/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.d.ts deleted file mode 100644 index a7228ed8..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { asyncIterator, type ReadableStreamIteratorOptions, } from "../core/asyncIterator.js"; diff --git a/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.js b/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.js deleted file mode 100644 index 374fb09a..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.js +++ /dev/null @@ -1,89 +0,0 @@ -const a = Object.getPrototypeOf( - Object.getPrototypeOf( - /* istanbul ignore next */ - async function* () { - } - ).prototype -); -class c { - #t; - #n; - #r = !1; - #e = void 0; - constructor(e, t) { - this.#t = e, this.#n = t; - } - next() { - const e = () => this.#s(); - return this.#e = this.#e ? this.#e.then(e, e) : e(), this.#e; - } - return(e) { - const t = () => this.#i(e); - return this.#e ? this.#e.then(t, t) : t(); - } - async #s() { - if (this.#r) - return { - done: !0, - value: void 0 - }; - let e; - try { - e = await this.#t.read(); - } catch (t) { - throw this.#e = void 0, this.#r = !0, this.#t.releaseLock(), t; - } - return e.done && (this.#e = void 0, this.#r = !0, this.#t.releaseLock()), e; - } - async #i(e) { - if (this.#r) - return { - done: !0, - value: e - }; - if (this.#r = !0, !this.#n) { - const t = this.#t.cancel(e); - return this.#t.releaseLock(), await t, { - done: !0, - value: e - }; - } - return this.#t.releaseLock(), { - done: !0, - value: e - }; - } -} -const n = Symbol(); -function i() { - return this[n].next(); -} -Object.defineProperty(i, "name", { value: "next" }); -function o(r) { - return this[n].return(r); -} -Object.defineProperty(o, "name", { value: "return" }); -const u = Object.create(a, { - next: { - enumerable: !0, - configurable: !0, - writable: !0, - value: i - }, - return: { - enumerable: !0, - configurable: !0, - writable: !0, - value: o - } -}); -function h({ preventCancel: r = !1 } = {}) { - const e = this.getReader(), t = new c( - e, - r - ), s = Object.create(u); - return s[n] = t, s; -} -export { - h as asyncIterator -}; diff --git a/node_modules/@sec-ant/readable-stream/dist/ponyfill/fromAnyIterable.d.ts b/node_modules/@sec-ant/readable-stream/dist/ponyfill/fromAnyIterable.d.ts deleted file mode 100644 index 6cc03328..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/ponyfill/fromAnyIterable.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { fromAnyIterable } from "../core/fromAnyIterable.js"; diff --git a/node_modules/@sec-ant/readable-stream/dist/ponyfill/fromAnyIterable.js b/node_modules/@sec-ant/readable-stream/dist/ponyfill/fromAnyIterable.js deleted file mode 100644 index 1d9e5d50..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/ponyfill/fromAnyIterable.js +++ /dev/null @@ -1,34 +0,0 @@ -function c(n) { - const t = a(n); - return new ReadableStream( - { - async pull(e) { - const { value: r, done: o } = await t.next(); - o ? e.close() : e.enqueue(r); - }, - async cancel(e) { - if (typeof t.return == "function" && typeof await t.return(e) != "object") - throw new TypeError("return() fulfills with a non-object."); - return e; - } - }, - new CountQueuingStrategy({ - highWaterMark: 0 - }) - ); -} -function a(n) { - let t = n[Symbol.asyncIterator]?.bind(n); - if (t === void 0) { - const r = n[Symbol.iterator](), o = { - [Symbol.iterator]: () => r - }; - t = async function* () { - return yield* o; - }; - } - return t(); -} -export { - c as fromAnyIterable -}; diff --git a/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.d.ts b/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.d.ts deleted file mode 100644 index f7aa2353..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./asyncIterator.js"; -export * from "./fromAnyIterable.js"; diff --git a/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.js b/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.js deleted file mode 100644 index 0d6779a5..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.js +++ /dev/null @@ -1,6 +0,0 @@ -import { asyncIterator as e } from "./asyncIterator.js"; -import { fromAnyIterable as a } from "./fromAnyIterable.js"; -export { - e as asyncIterator, - a as fromAnyIterable -}; diff --git a/node_modules/@sec-ant/readable-stream/dist/types/async-iterator.d.ts b/node_modules/@sec-ant/readable-stream/dist/types/async-iterator.d.ts deleted file mode 100644 index 0a92fc41..00000000 --- a/node_modules/@sec-ant/readable-stream/dist/types/async-iterator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { ReadableStreamIteratorOptions } from "../core/asyncIterator.js"; -/** - * augment global readable stream interface - */ -declare global { - // biome-ignore lint/suspicious/noExplicitAny: to be compatible with lib.dom.d.ts - interface ReadableStream { - [Symbol.asyncIterator](): AsyncIterableIterator; - values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator; - } -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/base.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/base.d.ts deleted file mode 100644 index 6f3cb27b..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/base.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/// -import type { Bundle } from '@sigstore/bundle'; -import type { Signature, Signer } from '../signer'; -import type { Witness } from '../witness'; -export interface BundleBuilderOptions { - signer: Signer; - witnesses: Witness[]; -} -export interface Artifact { - data: Buffer; - type?: string; -} -export interface BundleBuilder { - create: (artifact: Artifact) => Promise; -} -export declare abstract class BaseBundleBuilder implements BundleBuilder { - protected signer: Signer; - private witnesses; - constructor(options: BundleBuilderOptions); - create(artifact: Artifact): Promise; - protected prepare(artifact: Artifact): Promise; - protected abstract package(artifact: Artifact, signature: Signature): Promise; -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/base.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/base.js deleted file mode 100644 index 61d5eba4..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/base.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BaseBundleBuilder = void 0; -// BaseBundleBuilder is a base class for BundleBuilder implementations. It -// provides a the basic wokflow for signing and witnessing an artifact. -// Subclasses must implement the `package` method to assemble a valid bundle -// with the generated signature and verification material. -class BaseBundleBuilder { - constructor(options) { - this.signer = options.signer; - this.witnesses = options.witnesses; - } - // Executes the signing/witnessing process for the given artifact. - async create(artifact) { - const signature = await this.prepare(artifact).then((blob) => this.signer.sign(blob)); - const bundle = await this.package(artifact, signature); - // Invoke all of the witnesses in parallel - const verificationMaterials = await Promise.all(this.witnesses.map((witness) => witness.testify(bundle.content, publicKey(signature.key)))); - // Collect the verification material from all of the witnesses - const tlogEntryList = []; - const timestampList = []; - verificationMaterials.forEach(({ tlogEntries, rfc3161Timestamps }) => { - tlogEntryList.push(...(tlogEntries ?? [])); - timestampList.push(...(rfc3161Timestamps ?? [])); - }); - // Merge the collected verification material into the bundle - bundle.verificationMaterial.tlogEntries = tlogEntryList; - bundle.verificationMaterial.timestampVerificationData = { - rfc3161Timestamps: timestampList, - }; - return bundle; - } - // Override this function to apply any pre-signing transformations to the - // artifact. The returned buffer will be signed by the signer. The default - // implementation simply returns the artifact data. - async prepare(artifact) { - return artifact.data; - } -} -exports.BaseBundleBuilder = BaseBundleBuilder; -// Extracts the public key from a KeyMaterial. Returns either the public key -// or the certificate, depending on the type of key material. -function publicKey(key) { - switch (key.$case) { - case 'publicKey': - return key.publicKey; - case 'x509Certificate': - return key.certificate; - } -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/bundle.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/bundle.d.ts deleted file mode 100644 index 54a06a87..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/bundle.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import * as sigstore from '@sigstore/bundle'; -import type { Signature } from '../signer'; -import type { Artifact } from './base'; -export declare function toMessageSignatureBundle(artifact: Artifact, signature: Signature): sigstore.BundleWithMessageSignature; -export declare function toDSSEBundle(artifact: Required, signature: Signature, singleCertificate?: boolean): sigstore.BundleWithDsseEnvelope; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/bundle.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/bundle.js deleted file mode 100644 index 7c2ca916..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/bundle.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toDSSEBundle = exports.toMessageSignatureBundle = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const sigstore = __importStar(require("@sigstore/bundle")); -const util_1 = require("../util"); -// Helper functions for assembling the parts of a Sigstore bundle -// Message signature bundle - $case: 'messageSignature' -function toMessageSignatureBundle(artifact, signature) { - const digest = util_1.crypto.hash(artifact.data); - return sigstore.toMessageSignatureBundle({ - digest, - signature: signature.signature, - certificate: signature.key.$case === 'x509Certificate' - ? util_1.pem.toDER(signature.key.certificate) - : undefined, - keyHint: signature.key.$case === 'publicKey' ? signature.key.hint : undefined, - }); -} -exports.toMessageSignatureBundle = toMessageSignatureBundle; -// DSSE envelope bundle - $case: 'dsseEnvelope' -function toDSSEBundle(artifact, signature, singleCertificate) { - return sigstore.toDSSEBundle({ - artifact: artifact.data, - artifactType: artifact.type, - signature: signature.signature, - certificate: signature.key.$case === 'x509Certificate' - ? util_1.pem.toDER(signature.key.certificate) - : undefined, - keyHint: signature.key.$case === 'publicKey' ? signature.key.hint : undefined, - singleCertificate, - }); -} -exports.toDSSEBundle = toDSSEBundle; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/dsse.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/dsse.d.ts deleted file mode 100644 index 1234f7a2..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/dsse.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/// -import { Artifact, BaseBundleBuilder, BundleBuilderOptions } from './base'; -import type { BundleWithDsseEnvelope } from '@sigstore/bundle'; -import type { Signature } from '../signer'; -type DSSEBundleBuilderOptions = BundleBuilderOptions & { - singleCertificate?: boolean; -}; -export declare class DSSEBundleBuilder extends BaseBundleBuilder { - private singleCertificate?; - constructor(options: DSSEBundleBuilderOptions); - protected prepare(artifact: Artifact): Promise; - protected package(artifact: Artifact, signature: Signature): Promise; -} -export {}; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/dsse.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/dsse.js deleted file mode 100644 index 621700df..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/dsse.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DSSEBundleBuilder = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const util_1 = require("../util"); -const base_1 = require("./base"); -const bundle_1 = require("./bundle"); -// BundleBuilder implementation for DSSE wrapped attestations -class DSSEBundleBuilder extends base_1.BaseBundleBuilder { - constructor(options) { - super(options); - this.singleCertificate = options.singleCertificate ?? false; - } - // DSSE requires the artifact to be pre-encoded with the payload type - // before the signature is generated. - async prepare(artifact) { - const a = artifactDefaults(artifact); - return util_1.dsse.preAuthEncoding(a.type, a.data); - } - // Packages the artifact and signature into a DSSE bundle - async package(artifact, signature) { - return (0, bundle_1.toDSSEBundle)(artifactDefaults(artifact), signature, this.singleCertificate); - } -} -exports.DSSEBundleBuilder = DSSEBundleBuilder; -// Defaults the artifact type to an empty string if not provided -function artifactDefaults(artifact) { - return { - ...artifact, - type: artifact.type ?? '', - }; -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/index.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/index.d.ts deleted file mode 100644 index 0df3584f..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { Artifact, BundleBuilder, BundleBuilderOptions } from './base'; -export { DSSEBundleBuilder } from './dsse'; -export { MessageSignatureBundleBuilder } from './message'; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/index.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/index.js deleted file mode 100644 index d67c8c32..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/index.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageSignatureBundleBuilder = exports.DSSEBundleBuilder = void 0; -var dsse_1 = require("./dsse"); -Object.defineProperty(exports, "DSSEBundleBuilder", { enumerable: true, get: function () { return dsse_1.DSSEBundleBuilder; } }); -var message_1 = require("./message"); -Object.defineProperty(exports, "MessageSignatureBundleBuilder", { enumerable: true, get: function () { return message_1.MessageSignatureBundleBuilder; } }); diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/message.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/message.d.ts deleted file mode 100644 index 461b76bf..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/message.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Artifact, BaseBundleBuilder, BundleBuilderOptions } from './base'; -import type { BundleWithMessageSignature } from '@sigstore/bundle'; -import type { Signature } from '../signer'; -export declare class MessageSignatureBundleBuilder extends BaseBundleBuilder { - constructor(options: BundleBuilderOptions); - protected package(artifact: Artifact, signature: Signature): Promise; -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/message.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/message.js deleted file mode 100644 index e3991f42..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/bundler/message.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageSignatureBundleBuilder = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const base_1 = require("./base"); -const bundle_1 = require("./bundle"); -// BundleBuilder implementation for raw message signatures -class MessageSignatureBundleBuilder extends base_1.BaseBundleBuilder { - constructor(options) { - super(options); - } - async package(artifact, signature) { - return (0, bundle_1.toMessageSignatureBundle)(artifact, signature); - } -} -exports.MessageSignatureBundleBuilder = MessageSignatureBundleBuilder; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/error.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/error.d.ts deleted file mode 100644 index 96d5969d..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/error.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -type InternalErrorCode = 'TLOG_FETCH_ENTRY_ERROR' | 'TLOG_CREATE_ENTRY_ERROR' | 'CA_CREATE_SIGNING_CERTIFICATE_ERROR' | 'TSA_CREATE_TIMESTAMP_ERROR' | 'IDENTITY_TOKEN_READ_ERROR' | 'IDENTITY_TOKEN_PARSE_ERROR'; -export declare class InternalError extends Error { - code: InternalErrorCode; - cause: any | undefined; - constructor({ code, message, cause, }: { - code: InternalErrorCode; - message: string; - cause?: any; - }); -} -export declare function internalError(err: unknown, code: InternalErrorCode, message: string): never; -export {}; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/error.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/error.js deleted file mode 100644 index d57e4567..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/error.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.internalError = exports.InternalError = void 0; -const error_1 = require("./external/error"); -class InternalError extends Error { - constructor({ code, message, cause, }) { - super(message); - this.name = this.constructor.name; - this.cause = cause; - this.code = code; - } -} -exports.InternalError = InternalError; -function internalError(err, code, message) { - if (err instanceof error_1.HTTPError) { - message += ` - ${err.message}`; - } - throw new InternalError({ - code: code, - message: message, - cause: err, - }); -} -exports.internalError = internalError; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/error.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/error.d.ts deleted file mode 100644 index 3a9452b5..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/error.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export declare class HTTPError extends Error { - statusCode: number; - location?: string; - constructor({ status, message, location, }: { - status: number; - message: string; - location?: string; - }); -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/error.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/error.js deleted file mode 100644 index a6a65ade..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/error.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.HTTPError = void 0; -class HTTPError extends Error { - constructor({ status, message, location, }) { - super(`(${status}) ${message}`); - this.statusCode = status; - this.location = location; - } -} -exports.HTTPError = HTTPError; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/fetch.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/fetch.d.ts deleted file mode 100644 index 421cb237..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/fetch.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import fetch, { FetchOptions } from 'make-fetch-happen'; -type Response = Awaited>; -export declare function fetchWithRetry(url: string, options: FetchOptions): Promise; -export {}; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/fetch.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/fetch.js deleted file mode 100644 index b2d81bde..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/fetch.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fetchWithRetry = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const http2_1 = require("http2"); -const make_fetch_happen_1 = __importDefault(require("make-fetch-happen")); -const proc_log_1 = require("proc-log"); -const promise_retry_1 = __importDefault(require("promise-retry")); -const util_1 = require("../util"); -const error_1 = require("./error"); -const { HTTP2_HEADER_LOCATION, HTTP2_HEADER_CONTENT_TYPE, HTTP2_HEADER_USER_AGENT, HTTP_STATUS_INTERNAL_SERVER_ERROR, HTTP_STATUS_TOO_MANY_REQUESTS, HTTP_STATUS_REQUEST_TIMEOUT, } = http2_1.constants; -async function fetchWithRetry(url, options) { - return (0, promise_retry_1.default)(async (retry, attemptNum) => { - const method = options.method || 'POST'; - const headers = { - [HTTP2_HEADER_USER_AGENT]: util_1.ua.getUserAgent(), - ...options.headers, - }; - const response = await (0, make_fetch_happen_1.default)(url, { - method, - headers, - body: options.body, - timeout: options.timeout, - retry: false, // We're handling retries ourselves - }).catch((reason) => { - proc_log_1.log.http('fetch', `${method} ${url} attempt ${attemptNum} failed with ${reason}`); - return retry(reason); - }); - if (response.ok) { - return response; - } - else { - const error = await errorFromResponse(response); - proc_log_1.log.http('fetch', `${method} ${url} attempt ${attemptNum} failed with ${response.status}`); - if (retryable(response.status)) { - return retry(error); - } - else { - throw error; - } - } - }, retryOpts(options.retry)); -} -exports.fetchWithRetry = fetchWithRetry; -// Translate a Response into an HTTPError instance. This will attempt to parse -// the response body for a message, but will default to the statusText if none -// is found. -const errorFromResponse = async (response) => { - let message = response.statusText; - const location = response.headers?.get(HTTP2_HEADER_LOCATION) || undefined; - const contentType = response.headers?.get(HTTP2_HEADER_CONTENT_TYPE); - // If response type is JSON, try to parse the body for a message - if (contentType?.includes('application/json')) { - try { - const body = await response.json(); - message = body.message || message; - } - catch (e) { - // ignore - } - } - return new error_1.HTTPError({ - status: response.status, - message: message, - location: location, - }); -}; -// Determine if a status code is retryable. This includes 5xx errors, 408, and -// 429. -const retryable = (status) => [HTTP_STATUS_REQUEST_TIMEOUT, HTTP_STATUS_TOO_MANY_REQUESTS].includes(status) || status >= HTTP_STATUS_INTERNAL_SERVER_ERROR; -// Normalize the retry options to the format expected by promise-retry -const retryOpts = (retry) => { - if (typeof retry === 'boolean') { - return { retries: retry ? 1 : 0 }; - } - else if (typeof retry === 'number') { - return { retries: retry }; - } - else { - return { retries: 0, ...retry }; - } -}; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/fulcio.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/fulcio.d.ts deleted file mode 100644 index a8d0cc38..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/fulcio.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import type { FetchOptions } from '../types/fetch'; -export type FulcioOptions = { - baseURL: string; -} & FetchOptions; -export interface SigningCertificateRequest { - credentials: { - oidcIdentityToken: string; - }; - publicKeyRequest: { - publicKey: { - algorithm: string; - content: string; - }; - proofOfPossession: string; - }; -} -export interface SigningCertificateResponse { - signedCertificateEmbeddedSct?: { - chain: { - certificates: string[]; - }; - }; - signedCertificateDetachedSct?: { - chain: { - certificates: string[]; - }; - signedCertificateTimestamp: string; - }; -} -/** - * Fulcio API client. - */ -export declare class Fulcio { - private options; - constructor(options: FulcioOptions); - createSigningCertificate(request: SigningCertificateRequest): Promise; -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/fulcio.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/fulcio.js deleted file mode 100644 index de6a1ad9..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/fulcio.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Fulcio = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const fetch_1 = require("./fetch"); -/** - * Fulcio API client. - */ -class Fulcio { - constructor(options) { - this.options = options; - } - async createSigningCertificate(request) { - const { baseURL, retry, timeout } = this.options; - const url = `${baseURL}/api/v2/signingCert`; - const response = await (0, fetch_1.fetchWithRetry)(url, { - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify(request), - timeout, - retry, - }); - return response.json(); - } -} -exports.Fulcio = Fulcio; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/rekor.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/rekor.d.ts deleted file mode 100644 index f46789a8..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/rekor.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type { LogEntry, ProposedDSSEEntry, ProposedEntry, ProposedHashedRekordEntry, ProposedIntotoEntry } from '@sigstore/rekor-types'; -import type { FetchOptions } from '../types/fetch'; -export type { ProposedDSSEEntry, ProposedEntry, ProposedHashedRekordEntry, ProposedIntotoEntry, }; -export type Entry = { - uuid: string; -} & LogEntry[string]; -export type RekorOptions = { - baseURL: string; -} & FetchOptions; -/** - * Rekor API client. - */ -export declare class Rekor { - private options; - constructor(options: RekorOptions); - /** - * Create a new entry in the Rekor log. - * @param propsedEntry {ProposedEntry} Data to create a new entry - * @returns {Promise} The created entry - */ - createEntry(propsedEntry: ProposedEntry): Promise; - /** - * Get an entry from the Rekor log. - * @param uuid {string} The UUID of the entry to retrieve - * @returns {Promise} The retrieved entry - */ - getEntry(uuid: string): Promise; -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/rekor.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/rekor.js deleted file mode 100644 index bb59a126..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/rekor.js +++ /dev/null @@ -1,80 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Rekor = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const fetch_1 = require("./fetch"); -/** - * Rekor API client. - */ -class Rekor { - constructor(options) { - this.options = options; - } - /** - * Create a new entry in the Rekor log. - * @param propsedEntry {ProposedEntry} Data to create a new entry - * @returns {Promise} The created entry - */ - async createEntry(propsedEntry) { - const { baseURL, timeout, retry } = this.options; - const url = `${baseURL}/api/v1/log/entries`; - const response = await (0, fetch_1.fetchWithRetry)(url, { - headers: { - 'Content-Type': 'application/json', - Accept: 'application/json', - }, - body: JSON.stringify(propsedEntry), - timeout, - retry, - }); - const data = await response.json(); - return entryFromResponse(data); - } - /** - * Get an entry from the Rekor log. - * @param uuid {string} The UUID of the entry to retrieve - * @returns {Promise} The retrieved entry - */ - async getEntry(uuid) { - const { baseURL, timeout, retry } = this.options; - const url = `${baseURL}/api/v1/log/entries/${uuid}`; - const response = await (0, fetch_1.fetchWithRetry)(url, { - method: 'GET', - headers: { - Accept: 'application/json', - }, - timeout, - retry, - }); - const data = await response.json(); - return entryFromResponse(data); - } -} -exports.Rekor = Rekor; -// Unpack the response from the Rekor API into a more convenient format. -function entryFromResponse(data) { - const entries = Object.entries(data); - if (entries.length != 1) { - throw new Error('Received multiple entries in Rekor response'); - } - // Grab UUID and entry data from the response - const [uuid, entry] = entries[0]; - return { - ...entry, - uuid, - }; -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/tsa.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/tsa.d.ts deleted file mode 100644 index 81bb1012..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/tsa.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/// -import type { FetchOptions } from '../types/fetch'; -export interface TimestampRequest { - artifactHash: string; - hashAlgorithm: string; - certificates?: boolean; - nonce?: number; - tsaPolicyOID?: string; -} -export type TimestampAuthorityOptions = { - baseURL: string; -} & FetchOptions; -export declare class TimestampAuthority { - private options; - constructor(options: TimestampAuthorityOptions); - createTimestamp(request: TimestampRequest): Promise; -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/tsa.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/tsa.js deleted file mode 100644 index a948ba9c..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/external/tsa.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TimestampAuthority = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const fetch_1 = require("./fetch"); -class TimestampAuthority { - constructor(options) { - this.options = options; - } - async createTimestamp(request) { - const { baseURL, timeout, retry } = this.options; - const url = `${baseURL}/api/v1/timestamp`; - const response = await (0, fetch_1.fetchWithRetry)(url, { - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify(request), - timeout, - retry, - }); - return response.buffer(); - } -} -exports.TimestampAuthority = TimestampAuthority; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/identity/ci.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/identity/ci.d.ts deleted file mode 100644 index 7d70f344..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/identity/ci.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { IdentityProvider } from './provider'; -/** - * CIContextProvider is a composite identity provider which will iterate - * over all of the CI-specific providers and return the token from the first - * one that resolves. - */ -export declare class CIContextProvider implements IdentityProvider { - private audience; - constructor(audience?: string); - getToken(): Promise; -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/identity/ci.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/identity/ci.js deleted file mode 100644 index d7913395..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/identity/ci.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CIContextProvider = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const make_fetch_happen_1 = __importDefault(require("make-fetch-happen")); -// Collection of all the CI-specific providers we have implemented -const providers = [getGHAToken, getEnv]; -/** - * CIContextProvider is a composite identity provider which will iterate - * over all of the CI-specific providers and return the token from the first - * one that resolves. - */ -class CIContextProvider { - /* istanbul ignore next */ - constructor(audience = 'sigstore') { - this.audience = audience; - } - // Invoke all registered ProviderFuncs and return the value of whichever one - // resolves first. - async getToken() { - return Promise.any(providers.map((getToken) => getToken(this.audience))).catch(() => Promise.reject('CI: no tokens available')); - } -} -exports.CIContextProvider = CIContextProvider; -/** - * getGHAToken can retrieve an OIDC token when running in a GitHub Actions - * workflow - */ -async function getGHAToken(audience) { - // Check to see if we're running in GitHub Actions - if (!process.env.ACTIONS_ID_TOKEN_REQUEST_URL || - !process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN) { - return Promise.reject('no token available'); - } - // Construct URL to request token w/ appropriate audience - const url = new URL(process.env.ACTIONS_ID_TOKEN_REQUEST_URL); - url.searchParams.append('audience', audience); - const response = await (0, make_fetch_happen_1.default)(url.href, { - retry: 2, - headers: { - Accept: 'application/json', - Authorization: `Bearer ${process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN}`, - }, - }); - return response.json().then((data) => data.value); -} -/** - * getEnv can retrieve an OIDC token from an environment variable. - * This matches the behavior of https://github.com/sigstore/cosign/tree/main/pkg/providers/envvar - */ -async function getEnv() { - if (!process.env.SIGSTORE_ID_TOKEN) { - return Promise.reject('no token available'); - } - return process.env.SIGSTORE_ID_TOKEN; -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/identity/index.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/identity/index.d.ts deleted file mode 100644 index 70d88eb5..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/identity/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { CIContextProvider } from './ci'; -export type { IdentityProvider } from './provider'; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/identity/index.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/identity/index.js deleted file mode 100644 index 1c1223b4..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/identity/index.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CIContextProvider = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -var ci_1 = require("./ci"); -Object.defineProperty(exports, "CIContextProvider", { enumerable: true, get: function () { return ci_1.CIContextProvider; } }); diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/identity/provider.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/identity/provider.d.ts deleted file mode 100644 index f5f4d9b3..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/identity/provider.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export interface IdentityProvider { - getToken: () => Promise; -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/identity/provider.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/identity/provider.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/identity/provider.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/index.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/index.d.ts deleted file mode 100644 index 93dba87c..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export type { Bundle } from '@sigstore/bundle'; -export { DSSEBundleBuilder, MessageSignatureBundleBuilder } from './bundler'; -export type { Artifact, BundleBuilder, BundleBuilderOptions } from './bundler'; -export { InternalError } from './error'; -export { CIContextProvider } from './identity'; -export type { IdentityProvider } from './identity'; -export { DEFAULT_FULCIO_URL, FulcioSigner } from './signer'; -export type { FulcioSignerOptions, Signature, Signer } from './signer'; -export { DEFAULT_REKOR_URL, RekorWitness, TSAWitness } from './witness'; -export type { RekorWitnessOptions, SignatureBundle, TSAWitnessOptions, VerificationMaterial, Witness, } from './witness'; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/index.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/index.js deleted file mode 100644 index 383b7608..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/index.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSAWitness = exports.RekorWitness = exports.DEFAULT_REKOR_URL = exports.FulcioSigner = exports.DEFAULT_FULCIO_URL = exports.CIContextProvider = exports.InternalError = exports.MessageSignatureBundleBuilder = exports.DSSEBundleBuilder = void 0; -var bundler_1 = require("./bundler"); -Object.defineProperty(exports, "DSSEBundleBuilder", { enumerable: true, get: function () { return bundler_1.DSSEBundleBuilder; } }); -Object.defineProperty(exports, "MessageSignatureBundleBuilder", { enumerable: true, get: function () { return bundler_1.MessageSignatureBundleBuilder; } }); -var error_1 = require("./error"); -Object.defineProperty(exports, "InternalError", { enumerable: true, get: function () { return error_1.InternalError; } }); -var identity_1 = require("./identity"); -Object.defineProperty(exports, "CIContextProvider", { enumerable: true, get: function () { return identity_1.CIContextProvider; } }); -var signer_1 = require("./signer"); -Object.defineProperty(exports, "DEFAULT_FULCIO_URL", { enumerable: true, get: function () { return signer_1.DEFAULT_FULCIO_URL; } }); -Object.defineProperty(exports, "FulcioSigner", { enumerable: true, get: function () { return signer_1.FulcioSigner; } }); -var witness_1 = require("./witness"); -Object.defineProperty(exports, "DEFAULT_REKOR_URL", { enumerable: true, get: function () { return witness_1.DEFAULT_REKOR_URL; } }); -Object.defineProperty(exports, "RekorWitness", { enumerable: true, get: function () { return witness_1.RekorWitness; } }); -Object.defineProperty(exports, "TSAWitness", { enumerable: true, get: function () { return witness_1.TSAWitness; } }); diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/fulcio/ca.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/fulcio/ca.d.ts deleted file mode 100644 index 5c179b7d..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/fulcio/ca.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -import type { FetchOptions } from '../../types/fetch'; -export interface CA { - createSigningCertificate: (identityToken: string, publicKey: string, challenge: Buffer) => Promise; -} -export type CAClientOptions = { - fulcioBaseURL: string; -} & FetchOptions; -export declare class CAClient implements CA { - private fulcio; - constructor(options: CAClientOptions); - createSigningCertificate(identityToken: string, publicKey: string, challenge: Buffer): Promise; -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/fulcio/ca.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/fulcio/ca.js deleted file mode 100644 index 81b421ea..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/fulcio/ca.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CAClient = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const error_1 = require("../../error"); -const fulcio_1 = require("../../external/fulcio"); -class CAClient { - constructor(options) { - this.fulcio = new fulcio_1.Fulcio({ - baseURL: options.fulcioBaseURL, - retry: options.retry, - timeout: options.timeout, - }); - } - async createSigningCertificate(identityToken, publicKey, challenge) { - const request = toCertificateRequest(identityToken, publicKey, challenge); - try { - const resp = await this.fulcio.createSigningCertificate(request); - // Account for the fact that the response may contain either a - // signedCertificateEmbeddedSct or a signedCertificateDetachedSct. - const cert = resp.signedCertificateEmbeddedSct - ? resp.signedCertificateEmbeddedSct - : resp.signedCertificateDetachedSct; - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - return cert.chain.certificates; - } - catch (err) { - (0, error_1.internalError)(err, 'CA_CREATE_SIGNING_CERTIFICATE_ERROR', 'error creating signing certificate'); - } - } -} -exports.CAClient = CAClient; -function toCertificateRequest(identityToken, publicKey, challenge) { - return { - credentials: { - oidcIdentityToken: identityToken, - }, - publicKeyRequest: { - publicKey: { - algorithm: 'ECDSA', - content: publicKey, - }, - proofOfPossession: challenge.toString('base64'), - }, - }; -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/fulcio/ephemeral.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/fulcio/ephemeral.d.ts deleted file mode 100644 index a23acc5c..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/fulcio/ephemeral.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/// -import type { Signature, Signer } from '../signer'; -export declare class EphemeralSigner implements Signer { - private keypair; - constructor(); - sign(data: Buffer): Promise; -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/fulcio/ephemeral.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/fulcio/ephemeral.js deleted file mode 100644 index 481aa5c3..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/fulcio/ephemeral.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EphemeralSigner = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const crypto_1 = __importDefault(require("crypto")); -const EC_KEYPAIR_TYPE = 'ec'; -const P256_CURVE = 'P-256'; -// Signer implementation which uses an ephemeral keypair to sign artifacts. -// The private key lives only in memory and is tied to the lifetime of the -// EphemeralSigner instance. -class EphemeralSigner { - constructor() { - this.keypair = crypto_1.default.generateKeyPairSync(EC_KEYPAIR_TYPE, { - namedCurve: P256_CURVE, - }); - } - async sign(data) { - const signature = crypto_1.default.sign(null, data, this.keypair.privateKey); - const publicKey = this.keypair.publicKey - .export({ format: 'pem', type: 'spki' }) - .toString('ascii'); - return { - signature: signature, - key: { $case: 'publicKey', publicKey }, - }; - } -} -exports.EphemeralSigner = EphemeralSigner; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/fulcio/index.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/fulcio/index.d.ts deleted file mode 100644 index 11ec4041..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/fulcio/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/// -import { CAClientOptions } from './ca'; -import type { IdentityProvider } from '../../identity'; -import type { Signature, Signer } from '../signer'; -export declare const DEFAULT_FULCIO_URL = "https://fulcio.sigstore.dev"; -export type FulcioSignerOptions = { - identityProvider: IdentityProvider; - keyHolder?: Signer; -} & Partial; -export declare class FulcioSigner implements Signer { - private ca; - private identityProvider; - private keyHolder; - constructor(options: FulcioSignerOptions); - sign(data: Buffer): Promise; - private getIdentityToken; -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/fulcio/index.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/fulcio/index.js deleted file mode 100644 index 89a43254..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/fulcio/index.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FulcioSigner = exports.DEFAULT_FULCIO_URL = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const error_1 = require("../../error"); -const util_1 = require("../../util"); -const ca_1 = require("./ca"); -const ephemeral_1 = require("./ephemeral"); -exports.DEFAULT_FULCIO_URL = 'https://fulcio.sigstore.dev'; -// Signer implementation which can be used to decorate another signer -// with a Fulcio-issued signing certificate for the signer's public key. -// Must be instantiated with an identity provider which can provide a JWT -// which represents the identity to be bound to the signing certificate. -class FulcioSigner { - constructor(options) { - this.ca = new ca_1.CAClient({ - ...options, - fulcioBaseURL: options.fulcioBaseURL || /* istanbul ignore next */ exports.DEFAULT_FULCIO_URL, - }); - this.identityProvider = options.identityProvider; - this.keyHolder = options.keyHolder || new ephemeral_1.EphemeralSigner(); - } - async sign(data) { - // Retrieve identity token from the supplied identity provider - const identityToken = await this.getIdentityToken(); - // Extract challenge claim from OIDC token - let subject; - try { - subject = util_1.oidc.extractJWTSubject(identityToken); - } - catch (err) { - throw new error_1.InternalError({ - code: 'IDENTITY_TOKEN_PARSE_ERROR', - message: `invalid identity token: ${identityToken}`, - cause: err, - }); - } - // Construct challenge value by signing the subject claim - const challenge = await this.keyHolder.sign(Buffer.from(subject)); - if (challenge.key.$case !== 'publicKey') { - throw new error_1.InternalError({ - code: 'CA_CREATE_SIGNING_CERTIFICATE_ERROR', - message: 'unexpected format for signing key', - }); - } - // Create signing certificate - const certificates = await this.ca.createSigningCertificate(identityToken, challenge.key.publicKey, challenge.signature); - // Generate artifact signature - const signature = await this.keyHolder.sign(data); - // Specifically returning only the first certificate in the chain - // as the key. - return { - signature: signature.signature, - key: { - $case: 'x509Certificate', - certificate: certificates[0], - }, - }; - } - async getIdentityToken() { - try { - return await this.identityProvider.getToken(); - } - catch (err) { - throw new error_1.InternalError({ - code: 'IDENTITY_TOKEN_READ_ERROR', - message: 'error retrieving identity token', - cause: err, - }); - } - } -} -exports.FulcioSigner = FulcioSigner; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/index.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/index.d.ts deleted file mode 100644 index cee836b1..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { DEFAULT_FULCIO_URL, FulcioSigner, FulcioSignerOptions, } from './fulcio'; -export type { KeyMaterial, Signature, Signer } from './signer'; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/index.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/index.js deleted file mode 100644 index e2087767..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/index.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -/* istanbul ignore file */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FulcioSigner = exports.DEFAULT_FULCIO_URL = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -var fulcio_1 = require("./fulcio"); -Object.defineProperty(exports, "DEFAULT_FULCIO_URL", { enumerable: true, get: function () { return fulcio_1.DEFAULT_FULCIO_URL; } }); -Object.defineProperty(exports, "FulcioSigner", { enumerable: true, get: function () { return fulcio_1.FulcioSigner; } }); diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/signer.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/signer.d.ts deleted file mode 100644 index 4537d064..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/signer.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -export type KeyMaterial = { - $case: 'x509Certificate'; - certificate: string; -} | { - $case: 'publicKey'; - publicKey: string; - hint?: string; -}; -export type Signature = { - signature: Buffer; - key: KeyMaterial; -}; -export interface Signer { - sign: (data: Buffer) => Promise; -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/signer.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/signer.js deleted file mode 100644 index b92c5418..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/signer/signer.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/types/fetch.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/types/fetch.d.ts deleted file mode 100644 index 510aeee6..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/types/fetch.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { MakeFetchHappenOptions } from 'make-fetch-happen'; -export type Retry = MakeFetchHappenOptions['retry']; -export type FetchOptions = { - retry?: Retry; - timeout?: number | undefined; -}; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/types/fetch.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/types/fetch.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/types/fetch.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/util/index.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/util/index.d.ts deleted file mode 100644 index 4724fc19..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/util/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { crypto, dsse, encoding, json, pem } from '@sigstore/core'; -export * as oidc from './oidc'; -export * as ua from './ua'; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/util/index.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/util/index.js deleted file mode 100644 index f467c915..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/util/index.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ua = exports.oidc = exports.pem = exports.json = exports.encoding = exports.dsse = exports.crypto = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -var core_1 = require("@sigstore/core"); -Object.defineProperty(exports, "crypto", { enumerable: true, get: function () { return core_1.crypto; } }); -Object.defineProperty(exports, "dsse", { enumerable: true, get: function () { return core_1.dsse; } }); -Object.defineProperty(exports, "encoding", { enumerable: true, get: function () { return core_1.encoding; } }); -Object.defineProperty(exports, "json", { enumerable: true, get: function () { return core_1.json; } }); -Object.defineProperty(exports, "pem", { enumerable: true, get: function () { return core_1.pem; } }); -exports.oidc = __importStar(require("./oidc")); -exports.ua = __importStar(require("./ua")); diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/util/oidc.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/util/oidc.d.ts deleted file mode 100644 index b4513891..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/util/oidc.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function extractJWTSubject(jwt: string): string; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/util/oidc.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/util/oidc.js deleted file mode 100644 index 2f5947d7..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/util/oidc.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.extractJWTSubject = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const core_1 = require("@sigstore/core"); -function extractJWTSubject(jwt) { - const parts = jwt.split('.', 3); - const payload = JSON.parse(core_1.encoding.base64Decode(parts[1])); - switch (payload.iss) { - case 'https://accounts.google.com': - case 'https://oauth2.sigstore.dev/auth': - return payload.email; - default: - return payload.sub; - } -} -exports.extractJWTSubject = extractJWTSubject; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/util/ua.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/util/ua.d.ts deleted file mode 100644 index b60e2e9c..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/util/ua.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const getUserAgent: () => string; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/util/ua.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/util/ua.js deleted file mode 100644 index c142330e..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/util/ua.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getUserAgent = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const os_1 = __importDefault(require("os")); -// Format User-Agent: / () -// source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent -const getUserAgent = () => { - // eslint-disable-next-line @typescript-eslint/no-var-requires - const packageVersion = require('../../package.json').version; - const nodeVersion = process.version; - const platformName = os_1.default.platform(); - const archName = os_1.default.arch(); - return `sigstore-js/${packageVersion} (Node ${nodeVersion}) (${platformName}/${archName})`; -}; -exports.getUserAgent = getUserAgent; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/index.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/index.d.ts deleted file mode 100644 index 438201bb..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { DEFAULT_REKOR_URL, RekorWitness, RekorWitnessOptions } from './tlog'; -export { TSAWitness, TSAWitnessOptions } from './tsa'; -export type { SignatureBundle, VerificationMaterial, Witness } from './witness'; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/index.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/index.js deleted file mode 100644 index 72677c39..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/index.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -/* istanbul ignore file */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSAWitness = exports.RekorWitness = exports.DEFAULT_REKOR_URL = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -var tlog_1 = require("./tlog"); -Object.defineProperty(exports, "DEFAULT_REKOR_URL", { enumerable: true, get: function () { return tlog_1.DEFAULT_REKOR_URL; } }); -Object.defineProperty(exports, "RekorWitness", { enumerable: true, get: function () { return tlog_1.RekorWitness; } }); -var tsa_1 = require("./tsa"); -Object.defineProperty(exports, "TSAWitness", { enumerable: true, get: function () { return tsa_1.TSAWitness; } }); diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tlog/client.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tlog/client.d.ts deleted file mode 100644 index 711ffa10..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tlog/client.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { Entry, ProposedEntry } from '../../external/rekor'; -import type { FetchOptions } from '../../types/fetch'; -export type { Entry, ProposedEntry }; -export interface TLog { - createEntry: (proposedEntry: ProposedEntry) => Promise; -} -export type TLogClientOptions = { - rekorBaseURL: string; - fetchOnConflict?: boolean; -} & FetchOptions; -export declare class TLogClient implements TLog { - private rekor; - private fetchOnConflict; - constructor(options: TLogClientOptions); - createEntry(proposedEntry: ProposedEntry): Promise; -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tlog/client.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tlog/client.js deleted file mode 100644 index 22c895f2..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tlog/client.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TLogClient = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const error_1 = require("../../error"); -const error_2 = require("../../external/error"); -const rekor_1 = require("../../external/rekor"); -class TLogClient { - constructor(options) { - this.fetchOnConflict = options.fetchOnConflict ?? false; - this.rekor = new rekor_1.Rekor({ - baseURL: options.rekorBaseURL, - retry: options.retry, - timeout: options.timeout, - }); - } - async createEntry(proposedEntry) { - let entry; - try { - entry = await this.rekor.createEntry(proposedEntry); - } - catch (err) { - // If the entry already exists, fetch it (if enabled) - if (entryExistsError(err) && this.fetchOnConflict) { - // Grab the UUID of the existing entry from the location header - /* istanbul ignore next */ - const uuid = err.location.split('/').pop() || ''; - try { - entry = await this.rekor.getEntry(uuid); - } - catch (err) { - (0, error_1.internalError)(err, 'TLOG_FETCH_ENTRY_ERROR', 'error fetching tlog entry'); - } - } - else { - (0, error_1.internalError)(err, 'TLOG_CREATE_ENTRY_ERROR', 'error creating tlog entry'); - } - } - return entry; - } -} -exports.TLogClient = TLogClient; -function entryExistsError(value) { - return (value instanceof error_2.HTTPError && - value.statusCode === 409 && - value.location !== undefined); -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tlog/entry.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tlog/entry.d.ts deleted file mode 100644 index 5c0a054f..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tlog/entry.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ProposedEntry } from '../../external/rekor'; -import type { SignatureBundle } from '../witness'; -export declare function toProposedEntry(content: SignatureBundle, publicKey: string, entryType?: 'dsse' | 'intoto'): ProposedEntry; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tlog/entry.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tlog/entry.js deleted file mode 100644 index c237523a..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tlog/entry.js +++ /dev/null @@ -1,136 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toProposedEntry = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const bundle_1 = require("@sigstore/bundle"); -const util_1 = require("../../util"); -function toProposedEntry(content, publicKey, -// TODO: Remove this parameter once have completely switched to 'dsse' entries -entryType = 'intoto') { - switch (content.$case) { - case 'dsseEnvelope': - // TODO: Remove this conditional once have completely switched to 'dsse' entries - if (entryType === 'dsse') { - return toProposedDSSEEntry(content.dsseEnvelope, publicKey); - } - return toProposedIntotoEntry(content.dsseEnvelope, publicKey); - case 'messageSignature': - return toProposedHashedRekordEntry(content.messageSignature, publicKey); - } -} -exports.toProposedEntry = toProposedEntry; -// Returns a properly formatted Rekor "hashedrekord" entry for the given digest -// and signature -function toProposedHashedRekordEntry(messageSignature, publicKey) { - const hexDigest = messageSignature.messageDigest.digest.toString('hex'); - const b64Signature = messageSignature.signature.toString('base64'); - const b64Key = util_1.encoding.base64Encode(publicKey); - return { - apiVersion: '0.0.1', - kind: 'hashedrekord', - spec: { - data: { - hash: { - algorithm: 'sha256', - value: hexDigest, - }, - }, - signature: { - content: b64Signature, - publicKey: { - content: b64Key, - }, - }, - }, - }; -} -// Returns a properly formatted Rekor "dsse" entry for the given DSSE envelope -// and signature -function toProposedDSSEEntry(envelope, publicKey) { - const envelopeJSON = JSON.stringify((0, bundle_1.envelopeToJSON)(envelope)); - const encodedKey = util_1.encoding.base64Encode(publicKey); - return { - apiVersion: '0.0.1', - kind: 'dsse', - spec: { - proposedContent: { - envelope: envelopeJSON, - verifiers: [encodedKey], - }, - }, - }; -} -// Returns a properly formatted Rekor "intoto" entry for the given DSSE -// envelope and signature -function toProposedIntotoEntry(envelope, publicKey) { - // Calculate the value for the payloadHash field in the Rekor entry - const payloadHash = util_1.crypto.hash(envelope.payload).toString('hex'); - // Calculate the value for the hash field in the Rekor entry - const envelopeHash = calculateDSSEHash(envelope, publicKey); - // Collect values for re-creating the DSSE envelope. - // Double-encode payload and signature cause that's what Rekor expects - const payload = util_1.encoding.base64Encode(envelope.payload.toString('base64')); - const sig = util_1.encoding.base64Encode(envelope.signatures[0].sig.toString('base64')); - const keyid = envelope.signatures[0].keyid; - const encodedKey = util_1.encoding.base64Encode(publicKey); - // Create the envelope portion of the entry. Note the inclusion of the - // publicKey in the signature struct is not a standard part of a DSSE - // envelope, but is required by Rekor. - const dsse = { - payloadType: envelope.payloadType, - payload: payload, - signatures: [{ sig, publicKey: encodedKey }], - }; - // If the keyid is an empty string, Rekor seems to remove it altogether. We - // need to do the same here so that we can properly recreate the entry for - // verification. - if (keyid.length > 0) { - dsse.signatures[0].keyid = keyid; - } - return { - apiVersion: '0.0.2', - kind: 'intoto', - spec: { - content: { - envelope: dsse, - hash: { algorithm: 'sha256', value: envelopeHash }, - payloadHash: { algorithm: 'sha256', value: payloadHash }, - }, - }, - }; -} -// Calculates the hash of a DSSE envelope for inclusion in a Rekor entry. -// There is no standard way to do this, so the scheme we're using as as -// follows: -// * payload is base64 encoded -// * signature is base64 encoded (only the first signature is used) -// * keyid is included ONLY if it is NOT an empty string -// * The resulting JSON is canonicalized and hashed to a hex string -function calculateDSSEHash(envelope, publicKey) { - const dsse = { - payloadType: envelope.payloadType, - payload: envelope.payload.toString('base64'), - signatures: [ - { sig: envelope.signatures[0].sig.toString('base64'), publicKey }, - ], - }; - // If the keyid is an empty string, Rekor seems to remove it altogether. - if (envelope.signatures[0].keyid.length > 0) { - dsse.signatures[0].keyid = envelope.signatures[0].keyid; - } - return util_1.crypto.hash(util_1.json.canonicalize(dsse)).toString('hex'); -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tlog/index.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tlog/index.d.ts deleted file mode 100644 index 77dd16df..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tlog/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { TLogClientOptions } from './client'; -import type { TransparencyLogEntry } from '@sigstore/bundle'; -import type { SignatureBundle, Witness } from '../witness'; -export declare const DEFAULT_REKOR_URL = "https://rekor.sigstore.dev"; -type TransparencyLogEntries = { - tlogEntries: TransparencyLogEntry[]; -}; -export type RekorWitnessOptions = Partial & { - entryType?: 'dsse' | 'intoto'; -}; -export declare class RekorWitness implements Witness { - private tlog; - private entryType?; - constructor(options: RekorWitnessOptions); - testify(content: SignatureBundle, publicKey: string): Promise; -} -export {}; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tlog/index.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tlog/index.js deleted file mode 100644 index 6197b09d..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tlog/index.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RekorWitness = exports.DEFAULT_REKOR_URL = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const util_1 = require("../../util"); -const client_1 = require("./client"); -const entry_1 = require("./entry"); -exports.DEFAULT_REKOR_URL = 'https://rekor.sigstore.dev'; -class RekorWitness { - constructor(options) { - this.entryType = options.entryType; - this.tlog = new client_1.TLogClient({ - ...options, - rekorBaseURL: options.rekorBaseURL || /* istanbul ignore next */ exports.DEFAULT_REKOR_URL, - }); - } - async testify(content, publicKey) { - const proposedEntry = (0, entry_1.toProposedEntry)(content, publicKey, this.entryType); - const entry = await this.tlog.createEntry(proposedEntry); - return toTransparencyLogEntry(entry); - } -} -exports.RekorWitness = RekorWitness; -function toTransparencyLogEntry(entry) { - const logID = Buffer.from(entry.logID, 'hex'); - // Parse entry body so we can extract the kind and version. - const bodyJSON = util_1.encoding.base64Decode(entry.body); - const entryBody = JSON.parse(bodyJSON); - const promise = entry?.verification?.signedEntryTimestamp - ? inclusionPromise(entry.verification.signedEntryTimestamp) - : undefined; - const proof = entry?.verification?.inclusionProof - ? inclusionProof(entry.verification.inclusionProof) - : undefined; - const tlogEntry = { - logIndex: entry.logIndex.toString(), - logId: { - keyId: logID, - }, - integratedTime: entry.integratedTime.toString(), - kindVersion: { - kind: entryBody.kind, - version: entryBody.apiVersion, - }, - inclusionPromise: promise, - inclusionProof: proof, - canonicalizedBody: Buffer.from(entry.body, 'base64'), - }; - return { - tlogEntries: [tlogEntry], - }; -} -function inclusionPromise(promise) { - return { - signedEntryTimestamp: Buffer.from(promise, 'base64'), - }; -} -function inclusionProof(proof) { - return { - logIndex: proof.logIndex.toString(), - treeSize: proof.treeSize.toString(), - rootHash: Buffer.from(proof.rootHash, 'hex'), - hashes: proof.hashes.map((h) => Buffer.from(h, 'hex')), - checkpoint: { - envelope: proof.checkpoint, - }, - }; -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tsa/client.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tsa/client.d.ts deleted file mode 100644 index e0f6fd51..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tsa/client.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -import type { FetchOptions } from '../../types/fetch'; -export interface TSA { - createTimestamp: (signature: Buffer) => Promise; -} -export type TSAClientOptions = { - tsaBaseURL: string; -} & FetchOptions; -export declare class TSAClient implements TSA { - private tsa; - constructor(options: TSAClientOptions); - createTimestamp(signature: Buffer): Promise; -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tsa/client.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tsa/client.js deleted file mode 100644 index a334deb0..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tsa/client.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSAClient = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const error_1 = require("../../error"); -const tsa_1 = require("../../external/tsa"); -const util_1 = require("../../util"); -class TSAClient { - constructor(options) { - this.tsa = new tsa_1.TimestampAuthority({ - baseURL: options.tsaBaseURL, - retry: options.retry, - timeout: options.timeout, - }); - } - async createTimestamp(signature) { - const request = { - artifactHash: util_1.crypto.hash(signature).toString('base64'), - hashAlgorithm: 'sha256', - }; - try { - return await this.tsa.createTimestamp(request); - } - catch (err) { - (0, error_1.internalError)(err, 'TSA_CREATE_TIMESTAMP_ERROR', 'error creating timestamp'); - } - } -} -exports.TSAClient = TSAClient; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tsa/index.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tsa/index.d.ts deleted file mode 100644 index 46261b21..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tsa/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { TSAClientOptions } from './client'; -import type { RFC3161SignedTimestamp } from '@sigstore/bundle'; -import type { SignatureBundle, Witness } from '../witness'; -type RFC3161SignedTimestamps = { - rfc3161Timestamps: RFC3161SignedTimestamp[]; -}; -export type TSAWitnessOptions = TSAClientOptions; -export declare class TSAWitness implements Witness { - private tsa; - constructor(options: TSAWitnessOptions); - testify(content: SignatureBundle): Promise; -} -export {}; diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tsa/index.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tsa/index.js deleted file mode 100644 index d4f5c7c8..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/tsa/index.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSAWitness = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const client_1 = require("./client"); -class TSAWitness { - constructor(options) { - this.tsa = new client_1.TSAClient({ - tsaBaseURL: options.tsaBaseURL, - retry: options.retry, - timeout: options.timeout, - }); - } - async testify(content) { - const signature = extractSignature(content); - const timestamp = await this.tsa.createTimestamp(signature); - return { - rfc3161Timestamps: [{ signedTimestamp: timestamp }], - }; - } -} -exports.TSAWitness = TSAWitness; -function extractSignature(content) { - switch (content.$case) { - case 'dsseEnvelope': - return content.dsseEnvelope.signatures[0].sig; - case 'messageSignature': - return content.messageSignature.signature; - } -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/witness.d.ts b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/witness.d.ts deleted file mode 100644 index a9236faf..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/witness.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { Bundle, RFC3161SignedTimestamp, TransparencyLogEntry } from '@sigstore/bundle'; -export type SignatureBundle = Bundle['content']; -export type VerificationMaterial = { - tlogEntries?: TransparencyLogEntry[]; - rfc3161Timestamps?: RFC3161SignedTimestamp[]; -}; -export interface Witness { - testify: (signature: SignatureBundle, publicKey: string) => Promise; -} diff --git a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/witness.js b/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/witness.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@semantic-release/npm/node_modules/@sigstore/sign/dist/witness/witness.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@semantic-release/npm/node_modules/cidr-regex/dist/index.d.ts b/node_modules/@semantic-release/npm/node_modules/cidr-regex/dist/index.d.ts deleted file mode 100644 index c11d3920..00000000 --- a/node_modules/@semantic-release/npm/node_modules/cidr-regex/dist/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -type Options = { - /** - Only match an exact string. Useful with `RegExp#test()` to check if a string is an IP address. *(`false` matches any IP address in a string)* - - @default false - */ - readonly exact?: boolean; -}; -declare const cidrRegex: { - ({ exact }?: Options): RegExp; - v4({ exact }?: Options): RegExp; - v6({ exact }?: Options): RegExp; -}; -export declare const v4: ({ exact }?: Options) => RegExp; -export declare const v6: ({ exact }?: Options) => RegExp; -export default cidrRegex; diff --git a/node_modules/@semantic-release/npm/node_modules/cidr-regex/dist/index.js b/node_modules/@semantic-release/npm/node_modules/cidr-regex/dist/index.js deleted file mode 100644 index 2817f65e..00000000 --- a/node_modules/@semantic-release/npm/node_modules/cidr-regex/dist/index.js +++ /dev/null @@ -1,15 +0,0 @@ -import ipRegex from "ip-regex"; -const defaultOpts = { exact: false }; -const v4str = `${ipRegex.v4().source}\\/(3[0-2]|[12]?[0-9])`; -const v6str = `${ipRegex.v6().source}\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])`; -const v4exact = new RegExp(`^${v4str}$`); -const v6exact = new RegExp(`^${v6str}$`); -const v46exact = new RegExp(`(?:^${v4str}$)|(?:^${v6str}$)`); -const cidrRegex = ({ exact } = defaultOpts) => exact ? v46exact : new RegExp(`(?:${v4str})|(?:${v6str})`, "g"); -const v4 = cidrRegex.v4 = ({ exact } = defaultOpts) => exact ? v4exact : new RegExp(v4str, "g"); -const v6 = cidrRegex.v6 = ({ exact } = defaultOpts) => exact ? v6exact : new RegExp(v6str, "g"); -export { - cidrRegex as default, - v4, - v6 -}; diff --git a/node_modules/@semantic-release/npm/node_modules/is-cidr/dist/index.d.ts b/node_modules/@semantic-release/npm/node_modules/is-cidr/dist/index.d.ts deleted file mode 100644 index 498009e7..00000000 --- a/node_modules/@semantic-release/npm/node_modules/is-cidr/dist/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -declare const isCidr: { - (str: string): 4 | 6 | 0; - v4(str: string): boolean; - v6(str: string): boolean; -}; -export declare const v4: (str: string) => boolean; -export declare const v6: (str: string) => boolean; -export default isCidr; diff --git a/node_modules/@semantic-release/npm/node_modules/is-cidr/dist/index.js b/node_modules/@semantic-release/npm/node_modules/is-cidr/dist/index.js deleted file mode 100644 index 35fba31c..00000000 --- a/node_modules/@semantic-release/npm/node_modules/is-cidr/dist/index.js +++ /dev/null @@ -1,11 +0,0 @@ -import { v4 as v4$1, v6 as v6$1 } from "cidr-regex"; -const re4 = v4$1({ exact: true }); -const re6 = v6$1({ exact: true }); -const isCidr = (str) => re4.test(str) ? 4 : re6.test(str) ? 6 : 0; -const v4 = isCidr.v4 = (str) => re4.test(str); -const v6 = isCidr.v6 = (str) => re6.test(str); -export { - isCidr as default, - v4, - v6 -}; diff --git a/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/commonjs/index.d.ts b/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/commonjs/index.d.ts deleted file mode 100644 index b9a20622..00000000 --- a/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/commonjs/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export type Step = () => Promise; -export type Options = { - limit?: number; - rejectLate?: boolean; -}; -export declare const callLimit: (queue: Step[], { limit, rejectLate }?: Options) => Promise; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/commonjs/index.d.ts.map b/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/commonjs/index.d.ts.map deleted file mode 100644 index d9ef62d2..00000000 --- a/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/commonjs/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAYA,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI,MAAM,OAAO,CAAC,CAAC,CAAC,CAAA;AAEtC,MAAM,MAAM,OAAO,GAAG;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,SAAS,gEAEc,OAAO,qBAsDvC,CAAA"} \ No newline at end of file diff --git a/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/commonjs/index.js b/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/commonjs/index.js deleted file mode 100644 index 6ce5cfce..00000000 --- a/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/commonjs/index.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.callLimit = void 0; -const os = __importStar(require("node:os")); -// availableParallelism available only since node v19, for older versions use -// cpus() cpus() can return an empty list if /proc is not mounted, use 1 in -// this case -/* c8 ignore start */ -const defLimit = 'availableParallelism' in os - ? Math.max(1, os.availableParallelism() - 1) - : Math.max(1, os.cpus().length - 1); -const callLimit = (queue, { limit = defLimit, rejectLate } = {}) => new Promise((res, rej) => { - let active = 0; - let current = 0; - const results = []; - // Whether or not we rejected, distinct from the rejection just in case the rejection itself is falsey - let rejected = false; - let rejection; - const reject = (er) => { - if (rejected) - return; - rejected = true; - rejection ??= er; - if (!rejectLate) - rej(rejection); - }; - let resolved = false; - const resolve = () => { - if (resolved || active > 0) - return; - resolved = true; - res(results); - }; - const run = () => { - const c = current++; - if (c >= queue.length) - return rejected ? reject() : resolve(); - active++; - const step = queue[c]; - /* c8 ignore start */ - if (!step) - throw new Error('walked off queue'); - /* c8 ignore stop */ - results[c] = step() - .then(result => { - active--; - results[c] = result; - return result; - }, er => { - active--; - reject(er); - }) - .then(result => { - if (rejected && active === 0) - return rej(rejection); - run(); - return result; - }); - }; - for (let i = 0; i < limit; i++) - run(); -}); -exports.callLimit = callLimit; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/commonjs/index.js.map b/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/commonjs/index.js.map deleted file mode 100644 index 8a39bc15..00000000 --- a/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/commonjs/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA6B;AAC7B,6EAA6E;AAC7E,2EAA2E;AAC3E,YAAY;AAEZ,qBAAqB;AACrB,MAAM,QAAQ,GACZ,sBAAsB,IAAI,EAAE;IAC1B,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,oBAAoB,EAAE,GAAG,CAAC,CAAC;IAC5C,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAG,EAA+B,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;AAU9D,MAAM,SAAS,GAAG,CACvB,KAAgB,EAChB,EAAE,KAAK,GAAG,QAAQ,EAAE,UAAU,KAAc,EAAE,EAC9C,EAAE,CACF,IAAI,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;IACvB,IA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MAAM,CAAC,EAAE,CAAC,CAAA;QACZ,CAAC,CACF;aACA,IAAI,CAAC,MAAM,CAAC,EAAE;YACb,IAAI,QAAQ,IAAI,MAAM,KAAK,CAAC;gBAAE,OAAO,GAAG,CAAC,SAAS,CAAC,CAAA;YACnD,GAAG,EAAE,CAAA;YACL,OAAO,MAAM,CAAA;QACf,CAAC,CAAC,CAAA;IACN,CAAC,CAAA;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE;QAAE,GAAG,EAAE,CAAA;AACvC,CAAC,CAAC,CAAA;AAxDS,QAAA,SAAS,aAwDlB","sourcesContent":["import * as os from 'node:os'\n// availableParallelism available only since node v19, for older versions use\n// cpus() cpus() can return an empty list if /proc is not mounted, use 1 in\n// this case\n\n/* c8 ignore start */\nconst defLimit =\n 'availableParallelism' in os\n ? Math.max(1, os.availableParallelism() - 1)\n : Math.max(1, (os as typeof import('node:os')).cpus().length - 1)\n/* c8 ignore stop */\n\nexport type Step = () => Promise\n\nexport type Options = {\n limit?: number\n rejectLate?: boolean\n}\n\nexport const callLimit = (\n queue: Step[],\n { limit = defLimit, rejectLate }: Options = {},\n) =>\n new Promise((res, rej) => {\n let active = 0\n let current = 0\n const results: (T | void | Promise)[] = []\n\n // Whether or not we rejected, distinct from the rejection just in case the rejection itself is falsey\n let rejected = false\n let rejection: unknown\n const reject = (er?: unknown) => {\n if (rejected) return\n rejected = true\n rejection ??= er\n if (!rejectLate) rej(rejection)\n }\n\n let resolved = false\n const resolve = () => {\n if (resolved || active > 0) return\n resolved = true\n res(results)\n }\n\n const run = () => {\n const c = current++\n if (c >= queue.length) return rejected ? reject() : resolve()\n\n active++\n const step = queue[c]\n /* c8 ignore start */\n if (!step) throw new Error('walked off queue')\n /* c8 ignore stop */\n\n results[c] = step()\n .then(\n result => {\n active--\n results[c] = result\n return result\n },\n er => {\n active--\n reject(er)\n },\n )\n .then(result => {\n if (rejected && active === 0) return rej(rejection)\n run()\n return result\n })\n }\n\n for (let i = 0; i < limit; i++) run()\n })\n"]} \ No newline at end of file diff --git a/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/commonjs/package.json b/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/commonjs/package.json deleted file mode 100644 index 5bbefffb..00000000 --- a/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/commonjs/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "commonjs" -} diff --git a/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/esm/index.d.ts b/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/esm/index.d.ts deleted file mode 100644 index b9a20622..00000000 --- a/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/esm/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export type Step = () => Promise; -export type Options = { - limit?: number; - rejectLate?: boolean; -}; -export declare const callLimit: (queue: Step[], { limit, rejectLate }?: Options) => Promise; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/esm/index.d.ts.map b/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/esm/index.d.ts.map deleted file mode 100644 index d9ef62d2..00000000 --- a/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/esm/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAYA,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI,MAAM,OAAO,CAAC,CAAC,CAAC,CAAA;AAEtC,MAAM,MAAM,OAAO,GAAG;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,SAAS,gEAEc,OAAO,qBAsDvC,CAAA"} \ No newline at end of file diff --git a/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/esm/index.js b/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/esm/index.js deleted file mode 100644 index 03009992..00000000 --- a/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/esm/index.js +++ /dev/null @@ -1,60 +0,0 @@ -import * as os from 'node:os'; -// availableParallelism available only since node v19, for older versions use -// cpus() cpus() can return an empty list if /proc is not mounted, use 1 in -// this case -/* c8 ignore start */ -const defLimit = 'availableParallelism' in os - ? Math.max(1, os.availableParallelism() - 1) - : Math.max(1, os.cpus().length - 1); -export const callLimit = (queue, { limit = defLimit, rejectLate } = {}) => new Promise((res, rej) => { - let active = 0; - let current = 0; - const results = []; - // Whether or not we rejected, distinct from the rejection just in case the rejection itself is falsey - let rejected = false; - let rejection; - const reject = (er) => { - if (rejected) - return; - rejected = true; - rejection ??= er; - if (!rejectLate) - rej(rejection); - }; - let resolved = false; - const resolve = () => { - if (resolved || active > 0) - return; - resolved = true; - res(results); - }; - const run = () => { - const c = current++; - if (c >= queue.length) - return rejected ? reject() : resolve(); - active++; - const step = queue[c]; - /* c8 ignore start */ - if (!step) - throw new Error('walked off queue'); - /* c8 ignore stop */ - results[c] = step() - .then(result => { - active--; - results[c] = result; - return result; - }, er => { - active--; - reject(er); - }) - .then(result => { - if (rejected && active === 0) - return rej(rejection); - run(); - return result; - }); - }; - for (let i = 0; i < limit; i++) - run(); -}); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/esm/index.js.map b/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/esm/index.js.map deleted file mode 100644 index fee6a855..00000000 --- a/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/esm/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAA;AAC7B,6EAA6E;AAC7E,2EAA2E;AAC3E,YAAY;AAEZ,qBAAqB;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C,CAAC,OAAO,EAAE,CAAA;QAE7D,MAAM,EAAE,CAAA;QACR,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;QACrB,qBAAqB;QACrB,IAAI,CAAC,IAAI;YAAE,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAA;QAC9C,oBAAoB;QAEpB,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE;aAChB,IAAI,CACH,MAAM,CAAC,EAAE;YACP,MAAM,EAAE,CAAA;YACR,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAAA;YACnB,OAAO,MAAM,CAAA;QACf,CAAC,EACD,EAAE,CAAC,EAAE;YACH,MAAM,EAAE,CAAA;YACR,MAAM,CAAC,EAAE,CAAC,CAAA;QACZ,CAAC,CACF;aACA,IAAI,CAAC,MAAM,CAAC,EAAE;YACb,IAAI,QAAQ,IAAI,MAAM,KAAK,CAAC;gBAAE,OAAO,GAAG,CAAC,SAAS,CAAC,CAAA;YACnD,GAAG,EAAE,CAAA;YACL,OAAO,MAAM,CAAA;QACf,CAAC,CAAC,CAAA;IACN,CAAC,CAAA;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE;QAAE,GAAG,EAAE,CAAA;AACvC,CAAC,CAAC,CAAA","sourcesContent":["import * as os from 'node:os'\n// availableParallelism available only since node v19, for older versions use\n// cpus() cpus() can return an empty list if /proc is not mounted, use 1 in\n// this case\n\n/* c8 ignore start */\nconst defLimit =\n 'availableParallelism' in os\n ? Math.max(1, os.availableParallelism() - 1)\n : Math.max(1, (os as typeof import('node:os')).cpus().length - 1)\n/* c8 ignore stop */\n\nexport type Step = () => Promise\n\nexport type Options = {\n limit?: number\n rejectLate?: boolean\n}\n\nexport const callLimit = (\n queue: Step[],\n { limit = defLimit, rejectLate }: Options = {},\n) =>\n new Promise((res, rej) => {\n let active = 0\n let current = 0\n const results: (T | void | Promise)[] = []\n\n // Whether or not we rejected, distinct from the rejection just in case the rejection itself is falsey\n let rejected = false\n let rejection: unknown\n const reject = (er?: unknown) => {\n if (rejected) return\n rejected = true\n rejection ??= er\n if (!rejectLate) rej(rejection)\n }\n\n let resolved = false\n const resolve = () => {\n if (resolved || active > 0) return\n resolved = true\n res(results)\n }\n\n const run = () => {\n const c = current++\n if (c >= queue.length) return rejected ? reject() : resolve()\n\n active++\n const step = queue[c]\n /* c8 ignore start */\n if (!step) throw new Error('walked off queue')\n /* c8 ignore stop */\n\n results[c] = step()\n .then(\n result => {\n active--\n results[c] = result\n return result\n },\n er => {\n active--\n reject(er)\n },\n )\n .then(result => {\n if (rejected && active === 0) return rej(rejection)\n run()\n return result\n })\n }\n\n for (let i = 0; i < limit; i++) run()\n })\n"]} \ No newline at end of file diff --git a/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/esm/package.json b/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/esm/package.json deleted file mode 100644 index 3dbc1ca5..00000000 --- a/node_modules/@semantic-release/npm/node_modules/promise-call-limit/dist/esm/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "module" -} diff --git a/node_modules/@semantic-release/npm/node_modules/sigstore/dist/config.d.ts b/node_modules/@semantic-release/npm/node_modules/sigstore/dist/config.d.ts deleted file mode 100644 index de8ac83b..00000000 --- a/node_modules/@semantic-release/npm/node_modules/sigstore/dist/config.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -/// -import { DSSEBundleBuilder, IdentityProvider, MessageSignatureBundleBuilder } from '@sigstore/sign'; -import { KeyFinderFunc, VerificationPolicy } from '@sigstore/verify'; -import type { MakeFetchHappenOptions } from 'make-fetch-happen'; -type Retry = MakeFetchHappenOptions['retry']; -type FetchOptions = { - retry?: Retry; - timeout?: number | undefined; -}; -type KeySelector = (hint: string) => string | Buffer | undefined; -export type SignOptions = { - fulcioURL?: string; - identityProvider?: IdentityProvider; - identityToken?: string; - rekorURL?: string; - tlogUpload?: boolean; - tsaServerURL?: string; -} & FetchOptions; -export type VerifyOptions = { - ctLogThreshold?: number; - tlogThreshold?: number; - certificateIssuer?: string; - certificateIdentityEmail?: string; - certificateIdentityURI?: string; - certificateOIDs?: Record; - keySelector?: KeySelector; - tufMirrorURL?: string; - tufRootPath?: string; - tufCachePath?: string; - tufForceCache?: boolean; -} & FetchOptions; -export declare const DEFAULT_RETRY: Retry; -export declare const DEFAULT_TIMEOUT = 5000; -export declare function createBundleBuilder(bundleType: 'messageSignature', options: SignOptions): MessageSignatureBundleBuilder; -export declare function createBundleBuilder(bundleType: 'dsseEnvelope', options: SignOptions): DSSEBundleBuilder; -export declare function createKeyFinder(keySelector: KeySelector): KeyFinderFunc; -export declare function createVerificationPolicy(options: VerifyOptions): VerificationPolicy; -export {}; diff --git a/node_modules/@semantic-release/npm/node_modules/sigstore/dist/config.js b/node_modules/@semantic-release/npm/node_modules/sigstore/dist/config.js deleted file mode 100644 index b4f0eea7..00000000 --- a/node_modules/@semantic-release/npm/node_modules/sigstore/dist/config.js +++ /dev/null @@ -1,116 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createVerificationPolicy = exports.createKeyFinder = exports.createBundleBuilder = exports.DEFAULT_TIMEOUT = exports.DEFAULT_RETRY = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const core_1 = require("@sigstore/core"); -const sign_1 = require("@sigstore/sign"); -const verify_1 = require("@sigstore/verify"); -exports.DEFAULT_RETRY = { retries: 2 }; -exports.DEFAULT_TIMEOUT = 5000; -function createBundleBuilder(bundleType, options) { - const bundlerOptions = { - signer: initSigner(options), - witnesses: initWitnesses(options), - }; - switch (bundleType) { - case 'messageSignature': - return new sign_1.MessageSignatureBundleBuilder(bundlerOptions); - case 'dsseEnvelope': - return new sign_1.DSSEBundleBuilder(bundlerOptions); - } -} -exports.createBundleBuilder = createBundleBuilder; -// Translates the public KeySelector type into the KeyFinderFunc type needed by -// the verifier. -function createKeyFinder(keySelector) { - return (hint) => { - const key = keySelector(hint); - if (!key) { - throw new verify_1.VerificationError({ - code: 'PUBLIC_KEY_ERROR', - message: `key not found: ${hint}`, - }); - } - return { - publicKey: core_1.crypto.createPublicKey(key), - validFor: () => true, - }; - }; -} -exports.createKeyFinder = createKeyFinder; -function createVerificationPolicy(options) { - const policy = {}; - const san = options.certificateIdentityEmail || options.certificateIdentityURI; - if (san) { - policy.subjectAlternativeName = san; - } - if (options.certificateIssuer) { - policy.extensions = { issuer: options.certificateIssuer }; - } - return policy; -} -exports.createVerificationPolicy = createVerificationPolicy; -// Instantiate the FulcioSigner based on the supplied options. -function initSigner(options) { - return new sign_1.FulcioSigner({ - fulcioBaseURL: options.fulcioURL, - identityProvider: options.identityProvider || initIdentityProvider(options), - retry: options.retry ?? exports.DEFAULT_RETRY, - timeout: options.timeout ?? exports.DEFAULT_TIMEOUT, - }); -} -// Instantiate an identity provider based on the supplied options. If an -// explicit identity token is provided, use that. Otherwise, use the CI -// context provider. -function initIdentityProvider(options) { - const token = options.identityToken; - if (token) { - /* istanbul ignore next */ - return { getToken: () => Promise.resolve(token) }; - } - else { - return new sign_1.CIContextProvider('sigstore'); - } -} -// Instantiate a collection of witnesses based on the supplied options. -function initWitnesses(options) { - const witnesses = []; - if (isRekorEnabled(options)) { - witnesses.push(new sign_1.RekorWitness({ - rekorBaseURL: options.rekorURL, - fetchOnConflict: false, - retry: options.retry ?? exports.DEFAULT_RETRY, - timeout: options.timeout ?? exports.DEFAULT_TIMEOUT, - })); - } - if (isTSAEnabled(options)) { - witnesses.push(new sign_1.TSAWitness({ - tsaBaseURL: options.tsaServerURL, - retry: options.retry ?? exports.DEFAULT_RETRY, - timeout: options.timeout ?? exports.DEFAULT_TIMEOUT, - })); - } - return witnesses; -} -// Type assertion to ensure that Rekor is enabled -function isRekorEnabled(options) { - return options.tlogUpload !== false; -} -// Type assertion to ensure that TSA is enabled -function isTSAEnabled(options) { - return options.tsaServerURL !== undefined; -} diff --git a/node_modules/@semantic-release/npm/node_modules/sigstore/dist/index.d.ts b/node_modules/@semantic-release/npm/node_modules/sigstore/dist/index.d.ts deleted file mode 100644 index 68be2765..00000000 --- a/node_modules/@semantic-release/npm/node_modules/sigstore/dist/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export { ValidationError } from '@sigstore/bundle'; -export { DEFAULT_FULCIO_URL, DEFAULT_REKOR_URL, InternalError, } from '@sigstore/sign'; -export { TUFError } from '@sigstore/tuf'; -export { PolicyError, VerificationError } from '@sigstore/verify'; -export { attest, createVerifier, sign, verify } from './sigstore'; -export type { SerializedBundle as Bundle } from '@sigstore/bundle'; -export type { IdentityProvider } from '@sigstore/sign'; -export type { SignOptions, VerifyOptions } from './config'; -export type { BundleVerifier } from './sigstore'; diff --git a/node_modules/@semantic-release/npm/node_modules/sigstore/dist/index.js b/node_modules/@semantic-release/npm/node_modules/sigstore/dist/index.js deleted file mode 100644 index 7f6a5cf8..00000000 --- a/node_modules/@semantic-release/npm/node_modules/sigstore/dist/index.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.verify = exports.sign = exports.createVerifier = exports.attest = exports.VerificationError = exports.PolicyError = exports.TUFError = exports.InternalError = exports.DEFAULT_REKOR_URL = exports.DEFAULT_FULCIO_URL = exports.ValidationError = void 0; -/* -Copyright 2022 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -var bundle_1 = require("@sigstore/bundle"); -Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return bundle_1.ValidationError; } }); -var sign_1 = require("@sigstore/sign"); -Object.defineProperty(exports, "DEFAULT_FULCIO_URL", { enumerable: true, get: function () { return sign_1.DEFAULT_FULCIO_URL; } }); -Object.defineProperty(exports, "DEFAULT_REKOR_URL", { enumerable: true, get: function () { return sign_1.DEFAULT_REKOR_URL; } }); -Object.defineProperty(exports, "InternalError", { enumerable: true, get: function () { return sign_1.InternalError; } }); -var tuf_1 = require("@sigstore/tuf"); -Object.defineProperty(exports, "TUFError", { enumerable: true, get: function () { return tuf_1.TUFError; } }); -var verify_1 = require("@sigstore/verify"); -Object.defineProperty(exports, "PolicyError", { enumerable: true, get: function () { return verify_1.PolicyError; } }); -Object.defineProperty(exports, "VerificationError", { enumerable: true, get: function () { return verify_1.VerificationError; } }); -var sigstore_1 = require("./sigstore"); -Object.defineProperty(exports, "attest", { enumerable: true, get: function () { return sigstore_1.attest; } }); -Object.defineProperty(exports, "createVerifier", { enumerable: true, get: function () { return sigstore_1.createVerifier; } }); -Object.defineProperty(exports, "sign", { enumerable: true, get: function () { return sigstore_1.sign; } }); -Object.defineProperty(exports, "verify", { enumerable: true, get: function () { return sigstore_1.verify; } }); diff --git a/node_modules/@semantic-release/npm/node_modules/sigstore/dist/sigstore.d.ts b/node_modules/@semantic-release/npm/node_modules/sigstore/dist/sigstore.d.ts deleted file mode 100644 index f0a4697a..00000000 --- a/node_modules/@semantic-release/npm/node_modules/sigstore/dist/sigstore.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/// -import { SerializedBundle } from '@sigstore/bundle'; -import * as config from './config'; -export declare function sign(payload: Buffer, options?: config.SignOptions): Promise; -export declare function attest(payload: Buffer, payloadType: string, options?: config.SignOptions): Promise; -export declare function verify(bundle: SerializedBundle, options?: config.VerifyOptions): Promise; -export declare function verify(bundle: SerializedBundle, data: Buffer, options?: config.VerifyOptions): Promise; -export interface BundleVerifier { - verify(bundle: SerializedBundle, data?: Buffer): void; -} -export declare function createVerifier(options?: config.VerifyOptions): Promise; diff --git a/node_modules/@semantic-release/npm/node_modules/sigstore/dist/sigstore.js b/node_modules/@semantic-release/npm/node_modules/sigstore/dist/sigstore.js deleted file mode 100644 index 3f6d895f..00000000 --- a/node_modules/@semantic-release/npm/node_modules/sigstore/dist/sigstore.js +++ /dev/null @@ -1,103 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createVerifier = exports.verify = exports.attest = exports.sign = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const bundle_1 = require("@sigstore/bundle"); -const tuf = __importStar(require("@sigstore/tuf")); -const verify_1 = require("@sigstore/verify"); -const config = __importStar(require("./config")); -async function sign(payload, -/* istanbul ignore next */ -options = {}) { - const bundler = config.createBundleBuilder('messageSignature', options); - const bundle = await bundler.create({ data: payload }); - return (0, bundle_1.bundleToJSON)(bundle); -} -exports.sign = sign; -async function attest(payload, payloadType, -/* istanbul ignore next */ -options = {}) { - const bundler = config.createBundleBuilder('dsseEnvelope', options); - const bundle = await bundler.create({ data: payload, type: payloadType }); - return (0, bundle_1.bundleToJSON)(bundle); -} -exports.attest = attest; -async function verify(bundle, dataOrOptions, options) { - let data; - if (Buffer.isBuffer(dataOrOptions)) { - data = dataOrOptions; - } - else { - options = dataOrOptions; - } - return createVerifier(options).then((verifier) => verifier.verify(bundle, data)); -} -exports.verify = verify; -async function createVerifier( -/* istanbul ignore next */ -options = {}) { - const trustedRoot = await tuf.getTrustedRoot({ - mirrorURL: options.tufMirrorURL, - rootPath: options.tufRootPath, - cachePath: options.tufCachePath, - forceCache: options.tufForceCache, - retry: options.retry ?? config.DEFAULT_RETRY, - timeout: options.timeout ?? config.DEFAULT_TIMEOUT, - }); - const keyFinder = options.keySelector - ? config.createKeyFinder(options.keySelector) - : undefined; - const trustMaterial = (0, verify_1.toTrustMaterial)(trustedRoot, keyFinder); - const verifierOptions = { - ctlogThreshold: options.ctLogThreshold, - tlogThreshold: options.tlogThreshold, - }; - const verifier = new verify_1.Verifier(trustMaterial, verifierOptions); - const policy = config.createVerificationPolicy(options); - return { - verify: (bundle, payload) => { - const deserializedBundle = (0, bundle_1.bundleFromJSON)(bundle); - const signedEntity = (0, verify_1.toSignedEntity)(deserializedBundle, payload); - verifier.verify(signedEntity, policy); - return; - }, - }; -} -exports.createVerifier = createVerifier; diff --git a/node_modules/@sigstore/bundle/dist/build.d.ts b/node_modules/@sigstore/bundle/dist/build.d.ts deleted file mode 100644 index 5432dc32..00000000 --- a/node_modules/@sigstore/bundle/dist/build.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/// -import type { BundleWithDsseEnvelope, BundleWithMessageSignature } from './bundle'; -type VerificationMaterialOptions = { - certificate?: Buffer; - keyHint?: string; - singleCertificate?: boolean; -}; -type MessageSignatureBundleOptions = { - digest: Buffer; - signature: Buffer; -} & VerificationMaterialOptions; -type DSSEBundleOptions = { - artifact: Buffer; - artifactType: string; - signature: Buffer; -} & VerificationMaterialOptions; -export declare function toMessageSignatureBundle(options: MessageSignatureBundleOptions): BundleWithMessageSignature; -export declare function toDSSEBundle(options: DSSEBundleOptions): BundleWithDsseEnvelope; -export {}; diff --git a/node_modules/@sigstore/bundle/dist/build.js b/node_modules/@sigstore/bundle/dist/build.js deleted file mode 100644 index 65c71b10..00000000 --- a/node_modules/@sigstore/bundle/dist/build.js +++ /dev/null @@ -1,101 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toDSSEBundle = exports.toMessageSignatureBundle = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const protobuf_specs_1 = require("@sigstore/protobuf-specs"); -const bundle_1 = require("./bundle"); -// Message signature bundle - $case: 'messageSignature' -function toMessageSignatureBundle(options) { - return { - mediaType: options.singleCertificate - ? bundle_1.BUNDLE_V03_MEDIA_TYPE - : bundle_1.BUNDLE_V02_MEDIA_TYPE, - content: { - $case: 'messageSignature', - messageSignature: { - messageDigest: { - algorithm: protobuf_specs_1.HashAlgorithm.SHA2_256, - digest: options.digest, - }, - signature: options.signature, - }, - }, - verificationMaterial: toVerificationMaterial(options), - }; -} -exports.toMessageSignatureBundle = toMessageSignatureBundle; -// DSSE envelope bundle - $case: 'dsseEnvelope' -function toDSSEBundle(options) { - return { - mediaType: options.singleCertificate - ? bundle_1.BUNDLE_V03_MEDIA_TYPE - : bundle_1.BUNDLE_V02_MEDIA_TYPE, - content: { - $case: 'dsseEnvelope', - dsseEnvelope: toEnvelope(options), - }, - verificationMaterial: toVerificationMaterial(options), - }; -} -exports.toDSSEBundle = toDSSEBundle; -function toEnvelope(options) { - return { - payloadType: options.artifactType, - payload: options.artifact, - signatures: [toSignature(options)], - }; -} -function toSignature(options) { - return { - keyid: options.keyHint || '', - sig: options.signature, - }; -} -// Verification material -function toVerificationMaterial(options) { - return { - content: toKeyContent(options), - tlogEntries: [], - timestampVerificationData: { rfc3161Timestamps: [] }, - }; -} -function toKeyContent(options) { - if (options.certificate) { - if (options.singleCertificate) { - return { - $case: 'certificate', - certificate: { rawBytes: options.certificate }, - }; - } - else { - return { - $case: 'x509CertificateChain', - x509CertificateChain: { - certificates: [{ rawBytes: options.certificate }], - }, - }; - } - } - else { - return { - $case: 'publicKey', - publicKey: { - hint: options.keyHint || '', - }, - }; - } -} diff --git a/node_modules/@sigstore/bundle/dist/bundle.d.ts b/node_modules/@sigstore/bundle/dist/bundle.d.ts deleted file mode 100644 index 8de40d57..00000000 --- a/node_modules/@sigstore/bundle/dist/bundle.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -import type { Bundle as ProtoBundle, InclusionProof as ProtoInclusionProof, MessageSignature as ProtoMessageSignature, TransparencyLogEntry as ProtoTransparencyLogEntry, VerificationMaterial as ProtoVerificationMaterial } from '@sigstore/protobuf-specs'; -import type { WithRequired } from './utility'; -export declare const BUNDLE_V01_MEDIA_TYPE = "application/vnd.dev.sigstore.bundle+json;version=0.1"; -export declare const BUNDLE_V02_MEDIA_TYPE = "application/vnd.dev.sigstore.bundle+json;version=0.2"; -export declare const BUNDLE_V03_LEGACY_MEDIA_TYPE = "application/vnd.dev.sigstore.bundle+json;version=0.3"; -export declare const BUNDLE_V03_MEDIA_TYPE = "application/vnd.dev.sigstore.bundle.v0.3+json"; -type DsseEnvelopeContent = Extract; -type MessageSignatureContent = Extract; -export type MessageSignature = WithRequired; -export type VerificationMaterial = WithRequired; -export type TransparencyLogEntry = WithRequired; -export type InclusionProof = WithRequired; -export type TLogEntryWithInclusionPromise = WithRequired; -export type TLogEntryWithInclusionProof = TransparencyLogEntry & { - inclusionProof: InclusionProof; -}; -export type Bundle = ProtoBundle & { - verificationMaterial: VerificationMaterial & { - tlogEntries: TransparencyLogEntry[]; - }; - content: (MessageSignatureContent & { - messageSignature: MessageSignature; - }) | DsseEnvelopeContent; -}; -export type BundleV01 = Bundle & { - verificationMaterial: Bundle['verificationMaterial'] & { - tlogEntries: TLogEntryWithInclusionPromise[]; - }; -}; -export type BundleLatest = Bundle & { - verificationMaterial: Bundle['verificationMaterial'] & { - tlogEntries: TLogEntryWithInclusionProof[]; - }; -}; -export type BundleWithCertificateChain = Bundle & { - verificationMaterial: Bundle['verificationMaterial'] & { - content: Extract; - }; -}; -export type BundleWithSingleCertificate = Bundle & { - verificationMaterial: Bundle['verificationMaterial'] & { - content: Extract; - }; -}; -export type BundleWithPublicKey = Bundle & { - verificationMaterial: Bundle['verificationMaterial'] & { - content: Extract; - }; -}; -export type BundleWithMessageSignature = Bundle & { - content: Extract; -}; -export type BundleWithDsseEnvelope = Bundle & { - content: Extract; -}; -export declare function isBundleWithCertificateChain(b: Bundle): b is BundleWithCertificateChain; -export declare function isBundleWithPublicKey(b: Bundle): b is BundleWithPublicKey; -export declare function isBundleWithMessageSignature(b: Bundle): b is BundleWithMessageSignature; -export declare function isBundleWithDsseEnvelope(b: Bundle): b is BundleWithDsseEnvelope; -export {}; diff --git a/node_modules/@sigstore/bundle/dist/bundle.js b/node_modules/@sigstore/bundle/dist/bundle.js deleted file mode 100644 index dbd35df2..00000000 --- a/node_modules/@sigstore/bundle/dist/bundle.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isBundleWithDsseEnvelope = exports.isBundleWithMessageSignature = exports.isBundleWithPublicKey = exports.isBundleWithCertificateChain = exports.BUNDLE_V03_MEDIA_TYPE = exports.BUNDLE_V03_LEGACY_MEDIA_TYPE = exports.BUNDLE_V02_MEDIA_TYPE = exports.BUNDLE_V01_MEDIA_TYPE = void 0; -exports.BUNDLE_V01_MEDIA_TYPE = 'application/vnd.dev.sigstore.bundle+json;version=0.1'; -exports.BUNDLE_V02_MEDIA_TYPE = 'application/vnd.dev.sigstore.bundle+json;version=0.2'; -exports.BUNDLE_V03_LEGACY_MEDIA_TYPE = 'application/vnd.dev.sigstore.bundle+json;version=0.3'; -exports.BUNDLE_V03_MEDIA_TYPE = 'application/vnd.dev.sigstore.bundle.v0.3+json'; -// Type guards for bundle variants. -function isBundleWithCertificateChain(b) { - return b.verificationMaterial.content.$case === 'x509CertificateChain'; -} -exports.isBundleWithCertificateChain = isBundleWithCertificateChain; -function isBundleWithPublicKey(b) { - return b.verificationMaterial.content.$case === 'publicKey'; -} -exports.isBundleWithPublicKey = isBundleWithPublicKey; -function isBundleWithMessageSignature(b) { - return b.content.$case === 'messageSignature'; -} -exports.isBundleWithMessageSignature = isBundleWithMessageSignature; -function isBundleWithDsseEnvelope(b) { - return b.content.$case === 'dsseEnvelope'; -} -exports.isBundleWithDsseEnvelope = isBundleWithDsseEnvelope; diff --git a/node_modules/@sigstore/bundle/dist/error.d.ts b/node_modules/@sigstore/bundle/dist/error.d.ts deleted file mode 100644 index 3ffcf064..00000000 --- a/node_modules/@sigstore/bundle/dist/error.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare class ValidationError extends Error { - fields: string[]; - constructor(message: string, fields: string[]); -} diff --git a/node_modules/@sigstore/bundle/dist/error.js b/node_modules/@sigstore/bundle/dist/error.js deleted file mode 100644 index f8429532..00000000 --- a/node_modules/@sigstore/bundle/dist/error.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ValidationError = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -class ValidationError extends Error { - constructor(message, fields) { - super(message); - this.fields = fields; - } -} -exports.ValidationError = ValidationError; diff --git a/node_modules/@sigstore/bundle/dist/index.d.ts b/node_modules/@sigstore/bundle/dist/index.d.ts deleted file mode 100644 index 508b734b..00000000 --- a/node_modules/@sigstore/bundle/dist/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export { toDSSEBundle, toMessageSignatureBundle } from './build'; -export { BUNDLE_V01_MEDIA_TYPE, BUNDLE_V02_MEDIA_TYPE, BUNDLE_V03_LEGACY_MEDIA_TYPE, BUNDLE_V03_MEDIA_TYPE, isBundleWithCertificateChain, isBundleWithDsseEnvelope, isBundleWithMessageSignature, isBundleWithPublicKey, } from './bundle'; -export { ValidationError } from './error'; -export { bundleFromJSON, bundleToJSON, envelopeFromJSON, envelopeToJSON, } from './serialized'; -export { assertBundle, assertBundleLatest, assertBundleV01, assertBundleV02, isBundleV01, } from './validate'; -export type { Envelope, PublicKeyIdentifier, RFC3161SignedTimestamp, Signature, TimestampVerificationData, X509Certificate, X509CertificateChain, } from '@sigstore/protobuf-specs'; -export type { Bundle, BundleLatest, BundleV01, BundleWithCertificateChain, BundleWithDsseEnvelope, BundleWithMessageSignature, BundleWithPublicKey, BundleWithSingleCertificate, InclusionProof, MessageSignature, TLogEntryWithInclusionPromise, TLogEntryWithInclusionProof, TransparencyLogEntry, VerificationMaterial, } from './bundle'; -export type { SerializedBundle, SerializedEnvelope } from './serialized'; diff --git a/node_modules/@sigstore/bundle/dist/index.js b/node_modules/@sigstore/bundle/dist/index.js deleted file mode 100644 index 1b012aca..00000000 --- a/node_modules/@sigstore/bundle/dist/index.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isBundleV01 = exports.assertBundleV02 = exports.assertBundleV01 = exports.assertBundleLatest = exports.assertBundle = exports.envelopeToJSON = exports.envelopeFromJSON = exports.bundleToJSON = exports.bundleFromJSON = exports.ValidationError = exports.isBundleWithPublicKey = exports.isBundleWithMessageSignature = exports.isBundleWithDsseEnvelope = exports.isBundleWithCertificateChain = exports.BUNDLE_V03_MEDIA_TYPE = exports.BUNDLE_V03_LEGACY_MEDIA_TYPE = exports.BUNDLE_V02_MEDIA_TYPE = exports.BUNDLE_V01_MEDIA_TYPE = exports.toMessageSignatureBundle = exports.toDSSEBundle = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -var build_1 = require("./build"); -Object.defineProperty(exports, "toDSSEBundle", { enumerable: true, get: function () { return build_1.toDSSEBundle; } }); -Object.defineProperty(exports, "toMessageSignatureBundle", { enumerable: true, get: function () { return build_1.toMessageSignatureBundle; } }); -var bundle_1 = require("./bundle"); -Object.defineProperty(exports, "BUNDLE_V01_MEDIA_TYPE", { enumerable: true, get: function () { return bundle_1.BUNDLE_V01_MEDIA_TYPE; } }); -Object.defineProperty(exports, "BUNDLE_V02_MEDIA_TYPE", { enumerable: true, get: function () { return bundle_1.BUNDLE_V02_MEDIA_TYPE; } }); -Object.defineProperty(exports, "BUNDLE_V03_LEGACY_MEDIA_TYPE", { enumerable: true, get: function () { return bundle_1.BUNDLE_V03_LEGACY_MEDIA_TYPE; } }); -Object.defineProperty(exports, "BUNDLE_V03_MEDIA_TYPE", { enumerable: true, get: function () { return bundle_1.BUNDLE_V03_MEDIA_TYPE; } }); -Object.defineProperty(exports, "isBundleWithCertificateChain", { enumerable: true, get: function () { return bundle_1.isBundleWithCertificateChain; } }); -Object.defineProperty(exports, "isBundleWithDsseEnvelope", { enumerable: true, get: function () { return bundle_1.isBundleWithDsseEnvelope; } }); -Object.defineProperty(exports, "isBundleWithMessageSignature", { enumerable: true, get: function () { return bundle_1.isBundleWithMessageSignature; } }); -Object.defineProperty(exports, "isBundleWithPublicKey", { enumerable: true, get: function () { return bundle_1.isBundleWithPublicKey; } }); -var error_1 = require("./error"); -Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return error_1.ValidationError; } }); -var serialized_1 = require("./serialized"); -Object.defineProperty(exports, "bundleFromJSON", { enumerable: true, get: function () { return serialized_1.bundleFromJSON; } }); -Object.defineProperty(exports, "bundleToJSON", { enumerable: true, get: function () { return serialized_1.bundleToJSON; } }); -Object.defineProperty(exports, "envelopeFromJSON", { enumerable: true, get: function () { return serialized_1.envelopeFromJSON; } }); -Object.defineProperty(exports, "envelopeToJSON", { enumerable: true, get: function () { return serialized_1.envelopeToJSON; } }); -var validate_1 = require("./validate"); -Object.defineProperty(exports, "assertBundle", { enumerable: true, get: function () { return validate_1.assertBundle; } }); -Object.defineProperty(exports, "assertBundleLatest", { enumerable: true, get: function () { return validate_1.assertBundleLatest; } }); -Object.defineProperty(exports, "assertBundleV01", { enumerable: true, get: function () { return validate_1.assertBundleV01; } }); -Object.defineProperty(exports, "assertBundleV02", { enumerable: true, get: function () { return validate_1.assertBundleV02; } }); -Object.defineProperty(exports, "isBundleV01", { enumerable: true, get: function () { return validate_1.isBundleV01; } }); diff --git a/node_modules/@sigstore/bundle/dist/serialized.d.ts b/node_modules/@sigstore/bundle/dist/serialized.d.ts deleted file mode 100644 index 3327405d..00000000 --- a/node_modules/@sigstore/bundle/dist/serialized.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { Envelope } from '@sigstore/protobuf-specs'; -import { Bundle } from './bundle'; -import type { OneOf } from './utility'; -export declare const bundleFromJSON: (obj: unknown) => Bundle; -export declare const bundleToJSON: (bundle: Bundle) => SerializedBundle; -export declare const envelopeFromJSON: (obj: unknown) => Envelope; -export declare const envelopeToJSON: (envelope: Envelope) => SerializedEnvelope; -type SerializedTLogEntry = { - logIndex: string; - logId: { - keyId: string; - }; - kindVersion: { - kind: string; - version: string; - } | undefined; - integratedTime: string; - inclusionPromise: { - signedEntryTimestamp: string; - } | undefined; - inclusionProof: { - logIndex: string; - rootHash: string; - treeSize: string; - hashes: string[]; - checkpoint: { - envelope: string; - }; - } | undefined; - canonicalizedBody: string; -}; -type SerializedTimestampVerificationData = { - rfc3161Timestamps: { - signedTimestamp: string; - }[]; -}; -type SerializedMessageSignature = { - messageDigest: { - algorithm: string; - digest: string; - } | undefined; - signature: string; -}; -export type SerializedEnvelope = { - payload: string; - payloadType: string; - signatures: { - sig: string; - keyid: string; - }[]; -}; -export type SerializedBundle = { - mediaType: string; - verificationMaterial: (OneOf<{ - x509CertificateChain: { - certificates: { - rawBytes: string; - }[]; - }; - publicKey: { - hint: string; - }; - certificate: { - rawBytes: string; - }; - }> | undefined) & { - tlogEntries: SerializedTLogEntry[]; - timestampVerificationData: SerializedTimestampVerificationData | undefined; - }; -} & OneOf<{ - dsseEnvelope: SerializedEnvelope; - messageSignature: SerializedMessageSignature; -}>; -export {}; diff --git a/node_modules/@sigstore/bundle/dist/serialized.js b/node_modules/@sigstore/bundle/dist/serialized.js deleted file mode 100644 index be0d2a2d..00000000 --- a/node_modules/@sigstore/bundle/dist/serialized.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.envelopeToJSON = exports.envelopeFromJSON = exports.bundleToJSON = exports.bundleFromJSON = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const protobuf_specs_1 = require("@sigstore/protobuf-specs"); -const bundle_1 = require("./bundle"); -const validate_1 = require("./validate"); -const bundleFromJSON = (obj) => { - const bundle = protobuf_specs_1.Bundle.fromJSON(obj); - switch (bundle.mediaType) { - case bundle_1.BUNDLE_V01_MEDIA_TYPE: - (0, validate_1.assertBundleV01)(bundle); - break; - case bundle_1.BUNDLE_V02_MEDIA_TYPE: - (0, validate_1.assertBundleV02)(bundle); - break; - default: - (0, validate_1.assertBundleLatest)(bundle); - break; - } - return bundle; -}; -exports.bundleFromJSON = bundleFromJSON; -const bundleToJSON = (bundle) => { - return protobuf_specs_1.Bundle.toJSON(bundle); -}; -exports.bundleToJSON = bundleToJSON; -const envelopeFromJSON = (obj) => { - return protobuf_specs_1.Envelope.fromJSON(obj); -}; -exports.envelopeFromJSON = envelopeFromJSON; -const envelopeToJSON = (envelope) => { - return protobuf_specs_1.Envelope.toJSON(envelope); -}; -exports.envelopeToJSON = envelopeToJSON; diff --git a/node_modules/@sigstore/bundle/dist/utility.d.ts b/node_modules/@sigstore/bundle/dist/utility.d.ts deleted file mode 100644 index df993d50..00000000 --- a/node_modules/@sigstore/bundle/dist/utility.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -type ValueOf = Obj[keyof Obj]; -type OneOnly = { - [key in Exclude]: undefined; -} & { - [key in K]: Obj[K]; -}; -type OneOfByKey = { - [key in keyof Obj]: OneOnly; -}; -export type OneOf = ValueOf>; -export type WithRequired = T & { - [P in K]-?: NonNullable; -}; -export {}; diff --git a/node_modules/@sigstore/bundle/dist/utility.js b/node_modules/@sigstore/bundle/dist/utility.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@sigstore/bundle/dist/utility.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@sigstore/bundle/dist/validate.d.ts b/node_modules/@sigstore/bundle/dist/validate.d.ts deleted file mode 100644 index aec46d99..00000000 --- a/node_modules/@sigstore/bundle/dist/validate.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { Bundle as ProtoBundle } from '@sigstore/protobuf-specs'; -import type { Bundle, BundleLatest, BundleV01 } from './bundle'; -export declare function assertBundle(b: ProtoBundle): asserts b is Bundle; -export declare function assertBundleV01(b: ProtoBundle): asserts b is BundleV01; -export declare function isBundleV01(b: Bundle): b is BundleV01; -export declare function assertBundleV02(b: ProtoBundle): asserts b is BundleLatest; -export declare function assertBundleLatest(b: ProtoBundle): asserts b is BundleLatest; diff --git a/node_modules/@sigstore/bundle/dist/validate.js b/node_modules/@sigstore/bundle/dist/validate.js deleted file mode 100644 index 67079cd1..00000000 --- a/node_modules/@sigstore/bundle/dist/validate.js +++ /dev/null @@ -1,199 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.assertBundleLatest = exports.assertBundleV02 = exports.isBundleV01 = exports.assertBundleV01 = exports.assertBundle = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const error_1 = require("./error"); -// Performs basic validation of a Sigstore bundle to ensure that all required -// fields are populated. This is not a complete validation of the bundle, but -// rather a check that the bundle is in a valid state to be processed by the -// rest of the code. -function assertBundle(b) { - const invalidValues = validateBundleBase(b); - if (invalidValues.length > 0) { - throw new error_1.ValidationError('invalid bundle', invalidValues); - } -} -exports.assertBundle = assertBundle; -// Asserts that the given bundle conforms to the v0.1 bundle format. -function assertBundleV01(b) { - const invalidValues = []; - invalidValues.push(...validateBundleBase(b)); - invalidValues.push(...validateInclusionPromise(b)); - if (invalidValues.length > 0) { - throw new error_1.ValidationError('invalid v0.1 bundle', invalidValues); - } -} -exports.assertBundleV01 = assertBundleV01; -// Type guard to determine if Bundle is a v0.1 bundle. -function isBundleV01(b) { - try { - assertBundleV01(b); - return true; - } - catch (e) { - return false; - } -} -exports.isBundleV01 = isBundleV01; -// Asserts that the given bundle conforms to the v0.2 bundle format. -function assertBundleV02(b) { - const invalidValues = []; - invalidValues.push(...validateBundleBase(b)); - invalidValues.push(...validateInclusionProof(b)); - if (invalidValues.length > 0) { - throw new error_1.ValidationError('invalid v0.2 bundle', invalidValues); - } -} -exports.assertBundleV02 = assertBundleV02; -// Asserts that the given bundle conforms to the newest (0.3) bundle format. -function assertBundleLatest(b) { - const invalidValues = []; - invalidValues.push(...validateBundleBase(b)); - invalidValues.push(...validateInclusionProof(b)); - invalidValues.push(...validateNoCertificateChain(b)); - if (invalidValues.length > 0) { - throw new error_1.ValidationError('invalid bundle', invalidValues); - } -} -exports.assertBundleLatest = assertBundleLatest; -function validateBundleBase(b) { - const invalidValues = []; - // Media type validation - if (b.mediaType === undefined || - (!b.mediaType.match(/^application\/vnd\.dev\.sigstore\.bundle\+json;version=\d\.\d/) && - !b.mediaType.match(/^application\/vnd\.dev\.sigstore\.bundle\.v\d\.\d\+json/))) { - invalidValues.push('mediaType'); - } - // Content-related validation - if (b.content === undefined) { - invalidValues.push('content'); - } - else { - switch (b.content.$case) { - case 'messageSignature': - if (b.content.messageSignature.messageDigest === undefined) { - invalidValues.push('content.messageSignature.messageDigest'); - } - else { - if (b.content.messageSignature.messageDigest.digest.length === 0) { - invalidValues.push('content.messageSignature.messageDigest.digest'); - } - } - if (b.content.messageSignature.signature.length === 0) { - invalidValues.push('content.messageSignature.signature'); - } - break; - case 'dsseEnvelope': - if (b.content.dsseEnvelope.payload.length === 0) { - invalidValues.push('content.dsseEnvelope.payload'); - } - if (b.content.dsseEnvelope.signatures.length !== 1) { - invalidValues.push('content.dsseEnvelope.signatures'); - } - else { - if (b.content.dsseEnvelope.signatures[0].sig.length === 0) { - invalidValues.push('content.dsseEnvelope.signatures[0].sig'); - } - } - break; - } - } - // Verification material-related validation - if (b.verificationMaterial === undefined) { - invalidValues.push('verificationMaterial'); - } - else { - if (b.verificationMaterial.content === undefined) { - invalidValues.push('verificationMaterial.content'); - } - else { - switch (b.verificationMaterial.content.$case) { - case 'x509CertificateChain': - if (b.verificationMaterial.content.x509CertificateChain.certificates - .length === 0) { - invalidValues.push('verificationMaterial.content.x509CertificateChain.certificates'); - } - b.verificationMaterial.content.x509CertificateChain.certificates.forEach((cert, i) => { - if (cert.rawBytes.length === 0) { - invalidValues.push(`verificationMaterial.content.x509CertificateChain.certificates[${i}].rawBytes`); - } - }); - break; - case 'certificate': - if (b.verificationMaterial.content.certificate.rawBytes.length === 0) { - invalidValues.push('verificationMaterial.content.certificate.rawBytes'); - } - break; - } - } - if (b.verificationMaterial.tlogEntries === undefined) { - invalidValues.push('verificationMaterial.tlogEntries'); - } - else { - if (b.verificationMaterial.tlogEntries.length > 0) { - b.verificationMaterial.tlogEntries.forEach((entry, i) => { - if (entry.logId === undefined) { - invalidValues.push(`verificationMaterial.tlogEntries[${i}].logId`); - } - if (entry.kindVersion === undefined) { - invalidValues.push(`verificationMaterial.tlogEntries[${i}].kindVersion`); - } - }); - } - } - } - return invalidValues; -} -// Necessary for V01 bundles -function validateInclusionPromise(b) { - const invalidValues = []; - if (b.verificationMaterial && - b.verificationMaterial.tlogEntries?.length > 0) { - b.verificationMaterial.tlogEntries.forEach((entry, i) => { - if (entry.inclusionPromise === undefined) { - invalidValues.push(`verificationMaterial.tlogEntries[${i}].inclusionPromise`); - } - }); - } - return invalidValues; -} -// Necessary for V02 and later bundles -function validateInclusionProof(b) { - const invalidValues = []; - if (b.verificationMaterial && - b.verificationMaterial.tlogEntries?.length > 0) { - b.verificationMaterial.tlogEntries.forEach((entry, i) => { - if (entry.inclusionProof === undefined) { - invalidValues.push(`verificationMaterial.tlogEntries[${i}].inclusionProof`); - } - else { - if (entry.inclusionProof.checkpoint === undefined) { - invalidValues.push(`verificationMaterial.tlogEntries[${i}].inclusionProof.checkpoint`); - } - } - }); - } - return invalidValues; -} -// Necessary for V03 and later bundles -function validateNoCertificateChain(b) { - const invalidValues = []; - if (b.verificationMaterial?.content?.$case === 'x509CertificateChain') { - invalidValues.push('verificationMaterial.content.$case'); - } - return invalidValues; -} diff --git a/node_modules/@sigstore/core/dist/asn1/error.d.ts b/node_modules/@sigstore/core/dist/asn1/error.d.ts deleted file mode 100644 index fcd908f4..00000000 --- a/node_modules/@sigstore/core/dist/asn1/error.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare class ASN1ParseError extends Error { -} -export declare class ASN1TypeError extends Error { -} diff --git a/node_modules/@sigstore/core/dist/asn1/error.js b/node_modules/@sigstore/core/dist/asn1/error.js deleted file mode 100644 index 17d93b0f..00000000 --- a/node_modules/@sigstore/core/dist/asn1/error.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ASN1TypeError = exports.ASN1ParseError = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -class ASN1ParseError extends Error { -} -exports.ASN1ParseError = ASN1ParseError; -class ASN1TypeError extends Error { -} -exports.ASN1TypeError = ASN1TypeError; diff --git a/node_modules/@sigstore/core/dist/asn1/index.d.ts b/node_modules/@sigstore/core/dist/asn1/index.d.ts deleted file mode 100644 index da45453d..00000000 --- a/node_modules/@sigstore/core/dist/asn1/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { ASN1Obj } from './obj'; diff --git a/node_modules/@sigstore/core/dist/asn1/index.js b/node_modules/@sigstore/core/dist/asn1/index.js deleted file mode 100644 index 348b2ea4..00000000 --- a/node_modules/@sigstore/core/dist/asn1/index.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ASN1Obj = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -var obj_1 = require("./obj"); -Object.defineProperty(exports, "ASN1Obj", { enumerable: true, get: function () { return obj_1.ASN1Obj; } }); diff --git a/node_modules/@sigstore/core/dist/asn1/length.d.ts b/node_modules/@sigstore/core/dist/asn1/length.d.ts deleted file mode 100644 index 97c7114a..00000000 --- a/node_modules/@sigstore/core/dist/asn1/length.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/// -import { ByteStream } from '../stream'; -export declare function decodeLength(stream: ByteStream): number; -export declare function encodeLength(len: number): Buffer; diff --git a/node_modules/@sigstore/core/dist/asn1/length.js b/node_modules/@sigstore/core/dist/asn1/length.js deleted file mode 100644 index 36fdaf5b..00000000 --- a/node_modules/@sigstore/core/dist/asn1/length.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.encodeLength = exports.decodeLength = void 0; -const error_1 = require("./error"); -// Decodes the length of a DER-encoded ANS.1 element from the supplied stream. -// https://learn.microsoft.com/en-us/windows/win32/seccertenroll/about-encoded-length-and-value-bytes -function decodeLength(stream) { - const buf = stream.getUint8(); - // If the most significant bit is UNSET the length is just the value of the - // byte. - if ((buf & 0x80) === 0x00) { - return buf; - } - // Otherwise, the lower 7 bits of the first byte indicate the number of bytes - // that follow to encode the length. - const byteCount = buf & 0x7f; - // Ensure the encoded length can safely fit in a JS number. - if (byteCount > 6) { - throw new error_1.ASN1ParseError('length exceeds 6 byte limit'); - } - // Iterate over the bytes that encode the length. - let len = 0; - for (let i = 0; i < byteCount; i++) { - len = len * 256 + stream.getUint8(); - } - // This is a valid ASN.1 length encoding, but we don't support it. - if (len === 0) { - throw new error_1.ASN1ParseError('indefinite length encoding not supported'); - } - return len; -} -exports.decodeLength = decodeLength; -// Translates the supplied value to a DER-encoded length. -function encodeLength(len) { - if (len < 128) { - return Buffer.from([len]); - } - // Bitwise operations on large numbers are not supported in JS, so we need to - // use BigInts. - let val = BigInt(len); - const bytes = []; - while (val > 0n) { - bytes.unshift(Number(val & 255n)); - val = val >> 8n; - } - return Buffer.from([0x80 | bytes.length, ...bytes]); -} -exports.encodeLength = encodeLength; diff --git a/node_modules/@sigstore/core/dist/asn1/obj.d.ts b/node_modules/@sigstore/core/dist/asn1/obj.d.ts deleted file mode 100644 index de54996c..00000000 --- a/node_modules/@sigstore/core/dist/asn1/obj.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/// -import { ASN1Tag } from './tag'; -export declare class ASN1Obj { - readonly tag: ASN1Tag; - readonly subs: ASN1Obj[]; - readonly value: Buffer; - constructor(tag: ASN1Tag, value: Buffer, subs: ASN1Obj[]); - static parseBuffer(buf: Buffer): ASN1Obj; - toDER(): Buffer; - toBoolean(): boolean; - toInteger(): bigint; - toOID(): string; - toDate(): Date; - toBitString(): number[]; -} diff --git a/node_modules/@sigstore/core/dist/asn1/obj.js b/node_modules/@sigstore/core/dist/asn1/obj.js deleted file mode 100644 index 5f9ac9cd..00000000 --- a/node_modules/@sigstore/core/dist/asn1/obj.js +++ /dev/null @@ -1,152 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ASN1Obj = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const stream_1 = require("../stream"); -const error_1 = require("./error"); -const length_1 = require("./length"); -const parse_1 = require("./parse"); -const tag_1 = require("./tag"); -class ASN1Obj { - constructor(tag, value, subs) { - this.tag = tag; - this.value = value; - this.subs = subs; - } - // Constructs an ASN.1 object from a Buffer of DER-encoded bytes. - static parseBuffer(buf) { - return parseStream(new stream_1.ByteStream(buf)); - } - toDER() { - const valueStream = new stream_1.ByteStream(); - if (this.subs.length > 0) { - for (const sub of this.subs) { - valueStream.appendView(sub.toDER()); - } - } - else { - valueStream.appendView(this.value); - } - const value = valueStream.buffer; - // Concat tag/length/value - const obj = new stream_1.ByteStream(); - obj.appendChar(this.tag.toDER()); - obj.appendView((0, length_1.encodeLength)(value.length)); - obj.appendView(value); - return obj.buffer; - } - ///////////////////////////////////////////////////////////////////////////// - // Convenience methods for parsing ASN.1 primitives into JS types - // Returns the ASN.1 object's value as a boolean. Throws an error if the - // object is not a boolean. - toBoolean() { - if (!this.tag.isBoolean()) { - throw new error_1.ASN1TypeError('not a boolean'); - } - return (0, parse_1.parseBoolean)(this.value); - } - // Returns the ASN.1 object's value as a BigInt. Throws an error if the - // object is not an integer. - toInteger() { - if (!this.tag.isInteger()) { - throw new error_1.ASN1TypeError('not an integer'); - } - return (0, parse_1.parseInteger)(this.value); - } - // Returns the ASN.1 object's value as an OID string. Throws an error if the - // object is not an OID. - toOID() { - if (!this.tag.isOID()) { - throw new error_1.ASN1TypeError('not an OID'); - } - return (0, parse_1.parseOID)(this.value); - } - // Returns the ASN.1 object's value as a Date. Throws an error if the object - // is not either a UTCTime or a GeneralizedTime. - toDate() { - switch (true) { - case this.tag.isUTCTime(): - return (0, parse_1.parseTime)(this.value, true); - case this.tag.isGeneralizedTime(): - return (0, parse_1.parseTime)(this.value, false); - default: - throw new error_1.ASN1TypeError('not a date'); - } - } - // Returns the ASN.1 object's value as a number[] where each number is the - // value of a bit in the bit string. Throws an error if the object is not a - // bit string. - toBitString() { - if (!this.tag.isBitString()) { - throw new error_1.ASN1TypeError('not a bit string'); - } - return (0, parse_1.parseBitString)(this.value); - } -} -exports.ASN1Obj = ASN1Obj; -///////////////////////////////////////////////////////////////////////////// -// Internal stream parsing functions -function parseStream(stream) { - // Parse tag, length, and value from stream - const tag = new tag_1.ASN1Tag(stream.getUint8()); - const len = (0, length_1.decodeLength)(stream); - const value = stream.slice(stream.position, len); - const start = stream.position; - let subs = []; - // If the object is constructed, parse its children. Sometimes, children - // are embedded in OCTESTRING objects, so we need to check those - // for children as well. - if (tag.constructed) { - subs = collectSubs(stream, len); - } - else if (tag.isOctetString()) { - // Attempt to parse children of OCTETSTRING objects. If anything fails, - // assume the object is not constructed and treat as primitive. - try { - subs = collectSubs(stream, len); - } - catch (e) { - // Fail silently and treat as primitive - } - } - // If there are no children, move stream cursor to the end of the object - if (subs.length === 0) { - stream.seek(start + len); - } - return new ASN1Obj(tag, value, subs); -} -function collectSubs(stream, len) { - // Calculate end of object content - const end = stream.position + len; - // Make sure there are enough bytes left in the stream. This should never - // happen, cause it'll get caught when the stream is sliced in parseStream. - // Leaving as an extra check just in case. - /* istanbul ignore if */ - if (end > stream.length) { - throw new error_1.ASN1ParseError('invalid length'); - } - // Parse all children - const subs = []; - while (stream.position < end) { - subs.push(parseStream(stream)); - } - // When we're done parsing children, we should be at the end of the object - if (stream.position !== end) { - throw new error_1.ASN1ParseError('invalid length'); - } - return subs; -} diff --git a/node_modules/@sigstore/core/dist/asn1/parse.d.ts b/node_modules/@sigstore/core/dist/asn1/parse.d.ts deleted file mode 100644 index 35989d55..00000000 --- a/node_modules/@sigstore/core/dist/asn1/parse.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/// -export declare function parseInteger(buf: Buffer): bigint; -export declare function parseStringASCII(buf: Buffer): string; -export declare function parseTime(buf: Buffer, shortYear: boolean): Date; -export declare function parseOID(buf: Buffer): string; -export declare function parseBoolean(buf: Buffer): boolean; -export declare function parseBitString(buf: Buffer): number[]; diff --git a/node_modules/@sigstore/core/dist/asn1/parse.js b/node_modules/@sigstore/core/dist/asn1/parse.js deleted file mode 100644 index 482c7239..00000000 --- a/node_modules/@sigstore/core/dist/asn1/parse.js +++ /dev/null @@ -1,125 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseBitString = exports.parseBoolean = exports.parseOID = exports.parseTime = exports.parseStringASCII = exports.parseInteger = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const RE_TIME_SHORT_YEAR = /^(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\.\d{3})?Z$/; -const RE_TIME_LONG_YEAR = /^(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\.\d{3})?Z$/; -// Parse a BigInt from the DER-encoded buffer -// https://learn.microsoft.com/en-us/windows/win32/seccertenroll/about-integer -function parseInteger(buf) { - let pos = 0; - const end = buf.length; - let val = buf[pos]; - const neg = val > 0x7f; - // Consume any padding bytes - const pad = neg ? 0xff : 0x00; - while (val == pad && ++pos < end) { - val = buf[pos]; - } - // Calculate remaining bytes to read - const len = end - pos; - if (len === 0) - return BigInt(neg ? -1 : 0); - // Handle two's complement for negative numbers - val = neg ? val - 256 : val; - // Parse remaining bytes - let n = BigInt(val); - for (let i = pos + 1; i < end; ++i) { - n = n * BigInt(256) + BigInt(buf[i]); - } - return n; -} -exports.parseInteger = parseInteger; -// Parse an ASCII string from the DER-encoded buffer -// https://learn.microsoft.com/en-us/windows/win32/seccertenroll/about-basic-types#boolean -function parseStringASCII(buf) { - return buf.toString('ascii'); -} -exports.parseStringASCII = parseStringASCII; -// Parse a Date from the DER-encoded buffer -// https://www.rfc-editor.org/rfc/rfc5280#section-4.1.2.5.1 -function parseTime(buf, shortYear) { - const timeStr = parseStringASCII(buf); - // Parse the time string into matches - captured groups start at index 1 - const m = shortYear - ? RE_TIME_SHORT_YEAR.exec(timeStr) - : RE_TIME_LONG_YEAR.exec(timeStr); - if (!m) { - throw new Error('invalid time'); - } - // Translate dates with a 2-digit year to 4 digits per the spec - if (shortYear) { - let year = Number(m[1]); - year += year >= 50 ? 1900 : 2000; - m[1] = year.toString(); - } - // Translate to ISO8601 format and parse - return new Date(`${m[1]}-${m[2]}-${m[3]}T${m[4]}:${m[5]}:${m[6]}Z`); -} -exports.parseTime = parseTime; -// Parse an OID from the DER-encoded buffer -// https://learn.microsoft.com/en-us/windows/win32/seccertenroll/about-object-identifier -function parseOID(buf) { - let pos = 0; - const end = buf.length; - // Consume first byte which encodes the first two OID components - let n = buf[pos++]; - const first = Math.floor(n / 40); - const second = n % 40; - let oid = `${first}.${second}`; - // Consume remaining bytes - let val = 0; - for (; pos < end; ++pos) { - n = buf[pos]; - val = (val << 7) + (n & 0x7f); - // If the left-most bit is NOT set, then this is the last byte in the - // sequence and we can add the value to the OID and reset the accumulator - if ((n & 0x80) === 0) { - oid += `.${val}`; - val = 0; - } - } - return oid; -} -exports.parseOID = parseOID; -// Parse a boolean from the DER-encoded buffer -// https://learn.microsoft.com/en-us/windows/win32/seccertenroll/about-basic-types#boolean -function parseBoolean(buf) { - return buf[0] !== 0; -} -exports.parseBoolean = parseBoolean; -// Parse a bit string from the DER-encoded buffer -// https://learn.microsoft.com/en-us/windows/win32/seccertenroll/about-bit-string -function parseBitString(buf) { - // First byte tell us how many unused bits are in the last byte - const unused = buf[0]; - const start = 1; - const end = buf.length; - const bits = []; - for (let i = start; i < end; ++i) { - const byte = buf[i]; - // The skip value is only used for the last byte - const skip = i === end - 1 ? unused : 0; - // Iterate over each bit in the byte (most significant first) - for (let j = 7; j >= skip; --j) { - // Read the bit and add it to the bit string - bits.push((byte >> j) & 0x01); - } - } - return bits; -} -exports.parseBitString = parseBitString; diff --git a/node_modules/@sigstore/core/dist/asn1/tag.d.ts b/node_modules/@sigstore/core/dist/asn1/tag.d.ts deleted file mode 100644 index a00014b1..00000000 --- a/node_modules/@sigstore/core/dist/asn1/tag.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export declare class ASN1Tag { - readonly number: number; - readonly constructed: boolean; - readonly class: number; - constructor(enc: number); - isUniversal(): boolean; - isContextSpecific(num?: number): boolean; - isBoolean(): boolean; - isInteger(): boolean; - isBitString(): boolean; - isOctetString(): boolean; - isOID(): boolean; - isUTCTime(): boolean; - isGeneralizedTime(): boolean; - toDER(): number; -} diff --git a/node_modules/@sigstore/core/dist/asn1/tag.js b/node_modules/@sigstore/core/dist/asn1/tag.js deleted file mode 100644 index 84dd938d..00000000 --- a/node_modules/@sigstore/core/dist/asn1/tag.js +++ /dev/null @@ -1,86 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ASN1Tag = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const error_1 = require("./error"); -const UNIVERSAL_TAG = { - BOOLEAN: 0x01, - INTEGER: 0x02, - BIT_STRING: 0x03, - OCTET_STRING: 0x04, - OBJECT_IDENTIFIER: 0x06, - SEQUENCE: 0x10, - SET: 0x11, - PRINTABLE_STRING: 0x13, - UTC_TIME: 0x17, - GENERALIZED_TIME: 0x18, -}; -const TAG_CLASS = { - UNIVERSAL: 0x00, - APPLICATION: 0x01, - CONTEXT_SPECIFIC: 0x02, - PRIVATE: 0x03, -}; -// https://learn.microsoft.com/en-us/windows/win32/seccertenroll/about-encoded-tag-bytes -class ASN1Tag { - constructor(enc) { - // Bits 0 through 4 are the tag number - this.number = enc & 0x1f; - // Bit 5 is the constructed bit - this.constructed = (enc & 0x20) === 0x20; - // Bit 6 & 7 are the class - this.class = enc >> 6; - if (this.number === 0x1f) { - throw new error_1.ASN1ParseError('long form tags not supported'); - } - if (this.class === TAG_CLASS.UNIVERSAL && this.number === 0x00) { - throw new error_1.ASN1ParseError('unsupported tag 0x00'); - } - } - isUniversal() { - return this.class === TAG_CLASS.UNIVERSAL; - } - isContextSpecific(num) { - const res = this.class === TAG_CLASS.CONTEXT_SPECIFIC; - return num !== undefined ? res && this.number === num : res; - } - isBoolean() { - return this.isUniversal() && this.number === UNIVERSAL_TAG.BOOLEAN; - } - isInteger() { - return this.isUniversal() && this.number === UNIVERSAL_TAG.INTEGER; - } - isBitString() { - return this.isUniversal() && this.number === UNIVERSAL_TAG.BIT_STRING; - } - isOctetString() { - return this.isUniversal() && this.number === UNIVERSAL_TAG.OCTET_STRING; - } - isOID() { - return (this.isUniversal() && this.number === UNIVERSAL_TAG.OBJECT_IDENTIFIER); - } - isUTCTime() { - return this.isUniversal() && this.number === UNIVERSAL_TAG.UTC_TIME; - } - isGeneralizedTime() { - return this.isUniversal() && this.number === UNIVERSAL_TAG.GENERALIZED_TIME; - } - toDER() { - return this.number | (this.constructed ? 0x20 : 0x00) | (this.class << 6); - } -} -exports.ASN1Tag = ASN1Tag; diff --git a/node_modules/@sigstore/core/dist/crypto.d.ts b/node_modules/@sigstore/core/dist/crypto.d.ts deleted file mode 100644 index 22291b2a..00000000 --- a/node_modules/@sigstore/core/dist/crypto.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// -/// -import crypto, { BinaryLike } from 'crypto'; -export type { KeyObject } from 'crypto'; -export declare function createPublicKey(key: string | Buffer, type?: 'spki' | 'pkcs1'): crypto.KeyObject; -export declare function digest(algorithm: string, ...data: BinaryLike[]): Buffer; -export declare function hash(...data: BinaryLike[]): Buffer; -export declare function verify(data: Buffer, key: crypto.KeyLike, signature: Buffer, algorithm?: string): boolean; -export declare function bufferEqual(a: Buffer, b: Buffer): boolean; diff --git a/node_modules/@sigstore/core/dist/crypto.js b/node_modules/@sigstore/core/dist/crypto.js deleted file mode 100644 index dbe65b16..00000000 --- a/node_modules/@sigstore/core/dist/crypto.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bufferEqual = exports.verify = exports.hash = exports.digest = exports.createPublicKey = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const crypto_1 = __importDefault(require("crypto")); -const SHA256_ALGORITHM = 'sha256'; -function createPublicKey(key, type = 'spki') { - if (typeof key === 'string') { - return crypto_1.default.createPublicKey(key); - } - else { - return crypto_1.default.createPublicKey({ key, format: 'der', type: type }); - } -} -exports.createPublicKey = createPublicKey; -function digest(algorithm, ...data) { - const hash = crypto_1.default.createHash(algorithm); - for (const d of data) { - hash.update(d); - } - return hash.digest(); -} -exports.digest = digest; -// TODO: deprecate this in favor of digest() -function hash(...data) { - const hash = crypto_1.default.createHash(SHA256_ALGORITHM); - for (const d of data) { - hash.update(d); - } - return hash.digest(); -} -exports.hash = hash; -function verify(data, key, signature, algorithm) { - // The try/catch is to work around an issue in Node 14.x where verify throws - // an error in some scenarios if the signature is invalid. - try { - return crypto_1.default.verify(algorithm, data, key, signature); - } - catch (e) { - /* istanbul ignore next */ - return false; - } -} -exports.verify = verify; -function bufferEqual(a, b) { - try { - return crypto_1.default.timingSafeEqual(a, b); - } - catch { - /* istanbul ignore next */ - return false; - } -} -exports.bufferEqual = bufferEqual; diff --git a/node_modules/@sigstore/core/dist/dsse.d.ts b/node_modules/@sigstore/core/dist/dsse.d.ts deleted file mode 100644 index 839b9c03..00000000 --- a/node_modules/@sigstore/core/dist/dsse.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare function preAuthEncoding(payloadType: string, payload: Buffer): Buffer; diff --git a/node_modules/@sigstore/core/dist/dsse.js b/node_modules/@sigstore/core/dist/dsse.js deleted file mode 100644 index a78783c9..00000000 --- a/node_modules/@sigstore/core/dist/dsse.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.preAuthEncoding = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const PAE_PREFIX = 'DSSEv1'; -// DSSE Pre-Authentication Encoding -function preAuthEncoding(payloadType, payload) { - const prefix = [ - PAE_PREFIX, - payloadType.length, - payloadType, - payload.length, - '', - ].join(' '); - return Buffer.concat([Buffer.from(prefix, 'ascii'), payload]); -} -exports.preAuthEncoding = preAuthEncoding; diff --git a/node_modules/@sigstore/core/dist/encoding.d.ts b/node_modules/@sigstore/core/dist/encoding.d.ts deleted file mode 100644 index 46e0e465..00000000 --- a/node_modules/@sigstore/core/dist/encoding.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function base64Encode(str: string): string; -export declare function base64Decode(str: string): string; diff --git a/node_modules/@sigstore/core/dist/encoding.js b/node_modules/@sigstore/core/dist/encoding.js deleted file mode 100644 index b020ac4d..00000000 --- a/node_modules/@sigstore/core/dist/encoding.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.base64Decode = exports.base64Encode = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const BASE64_ENCODING = 'base64'; -const UTF8_ENCODING = 'utf-8'; -function base64Encode(str) { - return Buffer.from(str, UTF8_ENCODING).toString(BASE64_ENCODING); -} -exports.base64Encode = base64Encode; -function base64Decode(str) { - return Buffer.from(str, BASE64_ENCODING).toString(UTF8_ENCODING); -} -exports.base64Decode = base64Decode; diff --git a/node_modules/@sigstore/core/dist/index.d.ts b/node_modules/@sigstore/core/dist/index.d.ts deleted file mode 100644 index 6fa56165..00000000 --- a/node_modules/@sigstore/core/dist/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export { ASN1Obj } from './asn1'; -export * as crypto from './crypto'; -export * as dsse from './dsse'; -export * as encoding from './encoding'; -export * as json from './json'; -export * as pem from './pem'; -export { RFC3161Timestamp } from './rfc3161'; -export { ByteStream } from './stream'; -export { EXTENSION_OID_SCT, X509Certificate, X509SCTExtension } from './x509'; diff --git a/node_modules/@sigstore/core/dist/index.js b/node_modules/@sigstore/core/dist/index.js deleted file mode 100644 index ac35e86a..00000000 --- a/node_modules/@sigstore/core/dist/index.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.X509SCTExtension = exports.X509Certificate = exports.EXTENSION_OID_SCT = exports.ByteStream = exports.RFC3161Timestamp = exports.pem = exports.json = exports.encoding = exports.dsse = exports.crypto = exports.ASN1Obj = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -var asn1_1 = require("./asn1"); -Object.defineProperty(exports, "ASN1Obj", { enumerable: true, get: function () { return asn1_1.ASN1Obj; } }); -exports.crypto = __importStar(require("./crypto")); -exports.dsse = __importStar(require("./dsse")); -exports.encoding = __importStar(require("./encoding")); -exports.json = __importStar(require("./json")); -exports.pem = __importStar(require("./pem")); -var rfc3161_1 = require("./rfc3161"); -Object.defineProperty(exports, "RFC3161Timestamp", { enumerable: true, get: function () { return rfc3161_1.RFC3161Timestamp; } }); -var stream_1 = require("./stream"); -Object.defineProperty(exports, "ByteStream", { enumerable: true, get: function () { return stream_1.ByteStream; } }); -var x509_1 = require("./x509"); -Object.defineProperty(exports, "EXTENSION_OID_SCT", { enumerable: true, get: function () { return x509_1.EXTENSION_OID_SCT; } }); -Object.defineProperty(exports, "X509Certificate", { enumerable: true, get: function () { return x509_1.X509Certificate; } }); -Object.defineProperty(exports, "X509SCTExtension", { enumerable: true, get: function () { return x509_1.X509SCTExtension; } }); diff --git a/node_modules/@sigstore/core/dist/json.d.ts b/node_modules/@sigstore/core/dist/json.d.ts deleted file mode 100644 index ed331817..00000000 --- a/node_modules/@sigstore/core/dist/json.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function canonicalize(object: any): string; diff --git a/node_modules/@sigstore/core/dist/json.js b/node_modules/@sigstore/core/dist/json.js deleted file mode 100644 index a50df723..00000000 --- a/node_modules/@sigstore/core/dist/json.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.canonicalize = void 0; -// JSON canonicalization per https://github.com/cyberphone/json-canonicalization -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function canonicalize(object) { - let buffer = ''; - if (object === null || typeof object !== 'object' || object.toJSON != null) { - // Primitives or toJSONable objects - buffer += JSON.stringify(object); - } - else if (Array.isArray(object)) { - // Array - maintain element order - buffer += '['; - let first = true; - object.forEach((element) => { - if (!first) { - buffer += ','; - } - first = false; - // recursive call - buffer += canonicalize(element); - }); - buffer += ']'; - } - else { - // Object - Sort properties before serializing - buffer += '{'; - let first = true; - Object.keys(object) - .sort() - .forEach((property) => { - if (!first) { - buffer += ','; - } - first = false; - buffer += JSON.stringify(property); - buffer += ':'; - // recursive call - buffer += canonicalize(object[property]); - }); - buffer += '}'; - } - return buffer; -} -exports.canonicalize = canonicalize; diff --git a/node_modules/@sigstore/core/dist/oid.d.ts b/node_modules/@sigstore/core/dist/oid.d.ts deleted file mode 100644 index 9e418714..00000000 --- a/node_modules/@sigstore/core/dist/oid.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const ECDSA_SIGNATURE_ALGOS: Record; -export declare const SHA2_HASH_ALGOS: Record; diff --git a/node_modules/@sigstore/core/dist/oid.js b/node_modules/@sigstore/core/dist/oid.js deleted file mode 100644 index ac7a6430..00000000 --- a/node_modules/@sigstore/core/dist/oid.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SHA2_HASH_ALGOS = exports.ECDSA_SIGNATURE_ALGOS = void 0; -exports.ECDSA_SIGNATURE_ALGOS = { - '1.2.840.10045.4.3.1': 'sha224', - '1.2.840.10045.4.3.2': 'sha256', - '1.2.840.10045.4.3.3': 'sha384', - '1.2.840.10045.4.3.4': 'sha512', -}; -exports.SHA2_HASH_ALGOS = { - '2.16.840.1.101.3.4.2.1': 'sha256', - '2.16.840.1.101.3.4.2.2': 'sha384', - '2.16.840.1.101.3.4.2.3': 'sha512', -}; diff --git a/node_modules/@sigstore/core/dist/pem.d.ts b/node_modules/@sigstore/core/dist/pem.d.ts deleted file mode 100644 index 6910679c..00000000 --- a/node_modules/@sigstore/core/dist/pem.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/// -export declare function toDER(certificate: string): Buffer; -export declare function fromDER(certificate: Buffer, type?: string): string; diff --git a/node_modules/@sigstore/core/dist/pem.js b/node_modules/@sigstore/core/dist/pem.js deleted file mode 100644 index f35bc383..00000000 --- a/node_modules/@sigstore/core/dist/pem.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromDER = exports.toDER = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const PEM_HEADER = /-----BEGIN (.*)-----/; -const PEM_FOOTER = /-----END (.*)-----/; -function toDER(certificate) { - let der = ''; - certificate.split('\n').forEach((line) => { - if (line.match(PEM_HEADER) || line.match(PEM_FOOTER)) { - return; - } - der += line; - }); - return Buffer.from(der, 'base64'); -} -exports.toDER = toDER; -// Translates a DER-encoded buffer into a PEM-encoded string. Standard PEM -// encoding dictates that each certificate should have a trailing newline after -// the footer. -function fromDER(certificate, type = 'CERTIFICATE') { - // Base64-encode the certificate. - const der = certificate.toString('base64'); - // Split the certificate into lines of 64 characters. - const lines = der.match(/.{1,64}/g) || ''; - return [`-----BEGIN ${type}-----`, ...lines, `-----END ${type}-----`] - .join('\n') - .concat('\n'); -} -exports.fromDER = fromDER; diff --git a/node_modules/@sigstore/core/dist/rfc3161/error.d.ts b/node_modules/@sigstore/core/dist/rfc3161/error.d.ts deleted file mode 100644 index 87010747..00000000 --- a/node_modules/@sigstore/core/dist/rfc3161/error.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare class RFC3161TimestampVerificationError extends Error { -} diff --git a/node_modules/@sigstore/core/dist/rfc3161/error.js b/node_modules/@sigstore/core/dist/rfc3161/error.js deleted file mode 100644 index b9b549b0..00000000 --- a/node_modules/@sigstore/core/dist/rfc3161/error.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RFC3161TimestampVerificationError = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -class RFC3161TimestampVerificationError extends Error { -} -exports.RFC3161TimestampVerificationError = RFC3161TimestampVerificationError; diff --git a/node_modules/@sigstore/core/dist/rfc3161/index.d.ts b/node_modules/@sigstore/core/dist/rfc3161/index.d.ts deleted file mode 100644 index 514400b0..00000000 --- a/node_modules/@sigstore/core/dist/rfc3161/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { RFC3161Timestamp } from './timestamp'; diff --git a/node_modules/@sigstore/core/dist/rfc3161/index.js b/node_modules/@sigstore/core/dist/rfc3161/index.js deleted file mode 100644 index b77ecf1c..00000000 --- a/node_modules/@sigstore/core/dist/rfc3161/index.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RFC3161Timestamp = void 0; -var timestamp_1 = require("./timestamp"); -Object.defineProperty(exports, "RFC3161Timestamp", { enumerable: true, get: function () { return timestamp_1.RFC3161Timestamp; } }); diff --git a/node_modules/@sigstore/core/dist/rfc3161/timestamp.d.ts b/node_modules/@sigstore/core/dist/rfc3161/timestamp.d.ts deleted file mode 100644 index 74395a39..00000000 --- a/node_modules/@sigstore/core/dist/rfc3161/timestamp.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -/// -/// -import { ASN1Obj } from '../asn1'; -import * as crypto from '../crypto'; -import { TSTInfo } from './tstinfo'; -export declare class RFC3161Timestamp { - root: ASN1Obj; - constructor(asn1: ASN1Obj); - static parse(der: Buffer): RFC3161Timestamp; - get status(): bigint; - get contentType(): string; - get eContentType(): string; - get signingTime(): Date; - get signerIssuer(): Buffer; - get signerSerialNumber(): Buffer; - get signerDigestAlgorithm(): string; - get signatureAlgorithm(): string; - get signatureValue(): Buffer; - get tstInfo(): TSTInfo; - verify(data: Buffer, publicKey: crypto.KeyObject): void; - private verifyMessageDigest; - private verifySignature; - private get pkiStatusInfoObj(); - private get timeStampTokenObj(); - private get contentTypeObj(); - private get signedDataObj(); - private get encapContentInfoObj(); - private get signerInfosObj(); - private get signerInfoObj(); - private get eContentTypeObj(); - private get eContentObj(); - private get signedAttrsObj(); - private get messageDigestAttributeObj(); - private get signerSidObj(); - private get signerDigestAlgorithmObj(); - private get signatureAlgorithmObj(); - private get signatureValueObj(); -} diff --git a/node_modules/@sigstore/core/dist/rfc3161/timestamp.js b/node_modules/@sigstore/core/dist/rfc3161/timestamp.js deleted file mode 100644 index 3e61fc1a..00000000 --- a/node_modules/@sigstore/core/dist/rfc3161/timestamp.js +++ /dev/null @@ -1,201 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RFC3161Timestamp = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const asn1_1 = require("../asn1"); -const crypto = __importStar(require("../crypto")); -const oid_1 = require("../oid"); -const error_1 = require("./error"); -const tstinfo_1 = require("./tstinfo"); -const OID_PKCS9_CONTENT_TYPE_SIGNED_DATA = '1.2.840.113549.1.7.2'; -const OID_PKCS9_CONTENT_TYPE_TSTINFO = '1.2.840.113549.1.9.16.1.4'; -const OID_PKCS9_MESSAGE_DIGEST_KEY = '1.2.840.113549.1.9.4'; -class RFC3161Timestamp { - constructor(asn1) { - this.root = asn1; - } - static parse(der) { - const asn1 = asn1_1.ASN1Obj.parseBuffer(der); - return new RFC3161Timestamp(asn1); - } - get status() { - return this.pkiStatusInfoObj.subs[0].toInteger(); - } - get contentType() { - return this.contentTypeObj.toOID(); - } - get eContentType() { - return this.eContentTypeObj.toOID(); - } - get signingTime() { - return this.tstInfo.genTime; - } - get signerIssuer() { - return this.signerSidObj.subs[0].value; - } - get signerSerialNumber() { - return this.signerSidObj.subs[1].value; - } - get signerDigestAlgorithm() { - const oid = this.signerDigestAlgorithmObj.subs[0].toOID(); - return oid_1.SHA2_HASH_ALGOS[oid]; - } - get signatureAlgorithm() { - const oid = this.signatureAlgorithmObj.subs[0].toOID(); - return oid_1.ECDSA_SIGNATURE_ALGOS[oid]; - } - get signatureValue() { - return this.signatureValueObj.value; - } - get tstInfo() { - // Need to unpack tstInfo from an OCTET STRING - return new tstinfo_1.TSTInfo(this.eContentObj.subs[0].subs[0]); - } - verify(data, publicKey) { - if (!this.timeStampTokenObj) { - throw new error_1.RFC3161TimestampVerificationError('timeStampToken is missing'); - } - // Check for expected ContentInfo content type - if (this.contentType !== OID_PKCS9_CONTENT_TYPE_SIGNED_DATA) { - throw new error_1.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`); - } - // Check for expected encapsulated content type - if (this.eContentType !== OID_PKCS9_CONTENT_TYPE_TSTINFO) { - throw new error_1.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`); - } - // Check that the tstInfo references the correct artifact - this.tstInfo.verify(data); - // Check that the signed message digest matches the tstInfo - this.verifyMessageDigest(); - // Check that the signature is valid for the signed attributes - this.verifySignature(publicKey); - } - verifyMessageDigest() { - // Check that the tstInfo matches the signed data - const tstInfoDigest = crypto.digest(this.signerDigestAlgorithm, this.tstInfo.raw); - const expectedDigest = this.messageDigestAttributeObj.subs[1].subs[0].value; - if (!crypto.bufferEqual(tstInfoDigest, expectedDigest)) { - throw new error_1.RFC3161TimestampVerificationError('signed data does not match tstInfo'); - } - } - verifySignature(key) { - // Encode the signed attributes for verification - const signedAttrs = this.signedAttrsObj.toDER(); - signedAttrs[0] = 0x31; // Change context-specific tag to SET - // Check that the signature is valid for the signed attributes - const verified = crypto.verify(signedAttrs, key, this.signatureValue, this.signatureAlgorithm); - if (!verified) { - throw new error_1.RFC3161TimestampVerificationError('signature verification failed'); - } - } - // https://www.rfc-editor.org/rfc/rfc3161#section-2.4.2 - get pkiStatusInfoObj() { - // pkiStatusInfo is the first element of the timestamp response sequence - return this.root.subs[0]; - } - // https://www.rfc-editor.org/rfc/rfc3161#section-2.4.2 - get timeStampTokenObj() { - // timeStampToken is the first element of the timestamp response sequence - return this.root.subs[1]; - } - // https://datatracker.ietf.org/doc/html/rfc5652#section-3 - get contentTypeObj() { - return this.timeStampTokenObj.subs[0]; - } - // https://www.rfc-editor.org/rfc/rfc5652#section-3 - get signedDataObj() { - const obj = this.timeStampTokenObj.subs.find((sub) => sub.tag.isContextSpecific(0x00)); - return obj.subs[0]; - } - // https://datatracker.ietf.org/doc/html/rfc5652#section-5.1 - get encapContentInfoObj() { - return this.signedDataObj.subs[2]; - } - // https://datatracker.ietf.org/doc/html/rfc5652#section-5.1 - get signerInfosObj() { - // SignerInfos is the last element of the signed data sequence - const sd = this.signedDataObj; - return sd.subs[sd.subs.length - 1]; - } - // https://www.rfc-editor.org/rfc/rfc5652#section-5.1 - get signerInfoObj() { - // Only supporting one signer - return this.signerInfosObj.subs[0]; - } - // https://datatracker.ietf.org/doc/html/rfc5652#section-5.2 - get eContentTypeObj() { - return this.encapContentInfoObj.subs[0]; - } - // https://datatracker.ietf.org/doc/html/rfc5652#section-5.2 - get eContentObj() { - return this.encapContentInfoObj.subs[1]; - } - // https://datatracker.ietf.org/doc/html/rfc5652#section-5.3 - get signedAttrsObj() { - const signedAttrs = this.signerInfoObj.subs.find((sub) => sub.tag.isContextSpecific(0x00)); - return signedAttrs; - } - // https://datatracker.ietf.org/doc/html/rfc5652#section-5.3 - get messageDigestAttributeObj() { - const messageDigest = this.signedAttrsObj.subs.find((sub) => sub.subs[0].tag.isOID() && - sub.subs[0].toOID() === OID_PKCS9_MESSAGE_DIGEST_KEY); - return messageDigest; - } - // https://datatracker.ietf.org/doc/html/rfc5652#section-5.3 - get signerSidObj() { - return this.signerInfoObj.subs[1]; - } - // https://datatracker.ietf.org/doc/html/rfc5652#section-5.3 - get signerDigestAlgorithmObj() { - // Signature is the 2nd element of the signerInfoObj object - return this.signerInfoObj.subs[2]; - } - // https://datatracker.ietf.org/doc/html/rfc5652#section-5.3 - get signatureAlgorithmObj() { - // Signature is the 4th element of the signerInfoObj object - return this.signerInfoObj.subs[4]; - } - // https://datatracker.ietf.org/doc/html/rfc5652#section-5.3 - get signatureValueObj() { - // Signature is the 6th element of the signerInfoObj object - return this.signerInfoObj.subs[5]; - } -} -exports.RFC3161Timestamp = RFC3161Timestamp; diff --git a/node_modules/@sigstore/core/dist/rfc3161/tstinfo.d.ts b/node_modules/@sigstore/core/dist/rfc3161/tstinfo.d.ts deleted file mode 100644 index 4c609c02..00000000 --- a/node_modules/@sigstore/core/dist/rfc3161/tstinfo.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -import { ASN1Obj } from '../asn1'; -export declare class TSTInfo { - root: ASN1Obj; - constructor(asn1: ASN1Obj); - get version(): bigint; - get genTime(): Date; - get messageImprintHashAlgorithm(): string; - get messageImprintHashedMessage(): Buffer; - get raw(): Buffer; - verify(data: Buffer): void; - private get messageImprintObj(); -} diff --git a/node_modules/@sigstore/core/dist/rfc3161/tstinfo.js b/node_modules/@sigstore/core/dist/rfc3161/tstinfo.js deleted file mode 100644 index dc8e4fb3..00000000 --- a/node_modules/@sigstore/core/dist/rfc3161/tstinfo.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSTInfo = void 0; -const crypto = __importStar(require("../crypto")); -const oid_1 = require("../oid"); -const error_1 = require("./error"); -class TSTInfo { - constructor(asn1) { - this.root = asn1; - } - get version() { - return this.root.subs[0].toInteger(); - } - get genTime() { - return this.root.subs[4].toDate(); - } - get messageImprintHashAlgorithm() { - const oid = this.messageImprintObj.subs[0].subs[0].toOID(); - return oid_1.SHA2_HASH_ALGOS[oid]; - } - get messageImprintHashedMessage() { - return this.messageImprintObj.subs[1].value; - } - get raw() { - return this.root.toDER(); - } - verify(data) { - const digest = crypto.digest(this.messageImprintHashAlgorithm, data); - if (!crypto.bufferEqual(digest, this.messageImprintHashedMessage)) { - throw new error_1.RFC3161TimestampVerificationError('message imprint does not match artifact'); - } - } - // https://www.rfc-editor.org/rfc/rfc3161#section-2.4.2 - get messageImprintObj() { - return this.root.subs[2]; - } -} -exports.TSTInfo = TSTInfo; diff --git a/node_modules/@sigstore/core/dist/stream.d.ts b/node_modules/@sigstore/core/dist/stream.d.ts deleted file mode 100644 index ea13cae8..00000000 --- a/node_modules/@sigstore/core/dist/stream.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/// -export declare class ByteStream { - private static BLOCK_SIZE; - private buf; - private view; - private start; - constructor(buffer?: ArrayBuffer); - get buffer(): Buffer; - get length(): number; - get position(): number; - seek(position: number): void; - slice(start: number, len: number): Buffer; - appendChar(char: number): void; - appendUint16(num: number): void; - appendUint24(num: number): void; - appendView(view: Uint8Array): void; - getBlock(size: number): Buffer; - getUint8(): number; - getUint16(): number; - private ensureCapacity; - private realloc; -} diff --git a/node_modules/@sigstore/core/dist/stream.js b/node_modules/@sigstore/core/dist/stream.js deleted file mode 100644 index 0a24f858..00000000 --- a/node_modules/@sigstore/core/dist/stream.js +++ /dev/null @@ -1,115 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ByteStream = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -class StreamError extends Error { -} -class ByteStream { - constructor(buffer) { - this.start = 0; - if (buffer) { - this.buf = buffer; - this.view = Buffer.from(buffer); - } - else { - this.buf = new ArrayBuffer(0); - this.view = Buffer.from(this.buf); - } - } - get buffer() { - return this.view.subarray(0, this.start); - } - get length() { - return this.view.byteLength; - } - get position() { - return this.start; - } - seek(position) { - this.start = position; - } - // Returns a Buffer containing the specified number of bytes starting at the - // given start position. - slice(start, len) { - const end = start + len; - if (end > this.length) { - throw new StreamError('request past end of buffer'); - } - return this.view.subarray(start, end); - } - appendChar(char) { - this.ensureCapacity(1); - this.view[this.start] = char; - this.start += 1; - } - appendUint16(num) { - this.ensureCapacity(2); - const value = new Uint16Array([num]); - const view = new Uint8Array(value.buffer); - this.view[this.start] = view[1]; - this.view[this.start + 1] = view[0]; - this.start += 2; - } - appendUint24(num) { - this.ensureCapacity(3); - const value = new Uint32Array([num]); - const view = new Uint8Array(value.buffer); - this.view[this.start] = view[2]; - this.view[this.start + 1] = view[1]; - this.view[this.start + 2] = view[0]; - this.start += 3; - } - appendView(view) { - this.ensureCapacity(view.length); - this.view.set(view, this.start); - this.start += view.length; - } - getBlock(size) { - if (size <= 0) { - return Buffer.alloc(0); - } - if (this.start + size > this.view.length) { - throw new Error('request past end of buffer'); - } - const result = this.view.subarray(this.start, this.start + size); - this.start += size; - return result; - } - getUint8() { - return this.getBlock(1)[0]; - } - getUint16() { - const block = this.getBlock(2); - return (block[0] << 8) | block[1]; - } - ensureCapacity(size) { - if (this.start + size > this.view.byteLength) { - const blockSize = ByteStream.BLOCK_SIZE + (size > ByteStream.BLOCK_SIZE ? size : 0); - this.realloc(this.view.byteLength + blockSize); - } - } - realloc(size) { - const newArray = new ArrayBuffer(size); - const newView = Buffer.from(newArray); - // Copy the old buffer into the new one - newView.set(this.view); - this.buf = newArray; - this.view = newView; - } -} -exports.ByteStream = ByteStream; -ByteStream.BLOCK_SIZE = 1024; diff --git a/node_modules/@sigstore/core/dist/x509/cert.d.ts b/node_modules/@sigstore/core/dist/x509/cert.d.ts deleted file mode 100644 index d32ea230..00000000 --- a/node_modules/@sigstore/core/dist/x509/cert.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -/// -import { ASN1Obj } from '../asn1'; -import { X509AuthorityKeyIDExtension, X509BasicConstraintsExtension, X509Extension, X509KeyUsageExtension, X509SCTExtension, X509SubjectAlternativeNameExtension, X509SubjectKeyIDExtension } from './ext'; -export declare const EXTENSION_OID_SCT = "1.3.6.1.4.1.11129.2.4.2"; -export declare class X509Certificate { - root: ASN1Obj; - constructor(asn1: ASN1Obj); - static parse(cert: Buffer | string): X509Certificate; - get tbsCertificate(): ASN1Obj; - get version(): string; - get serialNumber(): Buffer; - get notBefore(): Date; - get notAfter(): Date; - get issuer(): Buffer; - get subject(): Buffer; - get publicKey(): Buffer; - get signatureAlgorithm(): string; - get signatureValue(): Buffer; - get subjectAltName(): string | undefined; - get extensions(): ASN1Obj[]; - get extKeyUsage(): X509KeyUsageExtension | undefined; - get extBasicConstraints(): X509BasicConstraintsExtension | undefined; - get extSubjectAltName(): X509SubjectAlternativeNameExtension | undefined; - get extAuthorityKeyID(): X509AuthorityKeyIDExtension | undefined; - get extSubjectKeyID(): X509SubjectKeyIDExtension | undefined; - get extSCT(): X509SCTExtension | undefined; - get isCA(): boolean; - extension(oid: string): X509Extension | undefined; - verify(issuerCertificate?: X509Certificate): boolean; - validForDate(date: Date): boolean; - equals(other: X509Certificate): boolean; - clone(): X509Certificate; - private findExtension; - private get tbsCertificateObj(); - private get signatureAlgorithmObj(); - private get signatureValueObj(); - private get versionObj(); - private get serialNumberObj(); - private get issuerObj(); - private get validityObj(); - private get subjectObj(); - private get subjectPublicKeyInfoObj(); - private get extensionsObj(); -} diff --git a/node_modules/@sigstore/core/dist/x509/cert.js b/node_modules/@sigstore/core/dist/x509/cert.js deleted file mode 100644 index 16c0c40d..00000000 --- a/node_modules/@sigstore/core/dist/x509/cert.js +++ /dev/null @@ -1,226 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.X509Certificate = exports.EXTENSION_OID_SCT = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const asn1_1 = require("../asn1"); -const crypto = __importStar(require("../crypto")); -const oid_1 = require("../oid"); -const pem = __importStar(require("../pem")); -const ext_1 = require("./ext"); -const EXTENSION_OID_SUBJECT_KEY_ID = '2.5.29.14'; -const EXTENSION_OID_KEY_USAGE = '2.5.29.15'; -const EXTENSION_OID_SUBJECT_ALT_NAME = '2.5.29.17'; -const EXTENSION_OID_BASIC_CONSTRAINTS = '2.5.29.19'; -const EXTENSION_OID_AUTHORITY_KEY_ID = '2.5.29.35'; -exports.EXTENSION_OID_SCT = '1.3.6.1.4.1.11129.2.4.2'; -class X509Certificate { - constructor(asn1) { - this.root = asn1; - } - static parse(cert) { - const der = typeof cert === 'string' ? pem.toDER(cert) : cert; - const asn1 = asn1_1.ASN1Obj.parseBuffer(der); - return new X509Certificate(asn1); - } - get tbsCertificate() { - return this.tbsCertificateObj; - } - get version() { - // version number is the first element of the version context specific tag - const ver = this.versionObj.subs[0].toInteger(); - return `v${(ver + BigInt(1)).toString()}`; - } - get serialNumber() { - return this.serialNumberObj.value; - } - get notBefore() { - // notBefore is the first element of the validity sequence - return this.validityObj.subs[0].toDate(); - } - get notAfter() { - // notAfter is the second element of the validity sequence - return this.validityObj.subs[1].toDate(); - } - get issuer() { - return this.issuerObj.value; - } - get subject() { - return this.subjectObj.value; - } - get publicKey() { - return this.subjectPublicKeyInfoObj.toDER(); - } - get signatureAlgorithm() { - const oid = this.signatureAlgorithmObj.subs[0].toOID(); - return oid_1.ECDSA_SIGNATURE_ALGOS[oid]; - } - get signatureValue() { - // Signature value is a bit string, so we need to skip the first byte - return this.signatureValueObj.value.subarray(1); - } - get subjectAltName() { - const ext = this.extSubjectAltName; - return ext?.uri || ext?.rfc822Name; - } - get extensions() { - // The extension list is the first (and only) element of the extensions - // context specific tag - const extSeq = this.extensionsObj?.subs[0]; - return extSeq?.subs || /* istanbul ignore next */ []; - } - get extKeyUsage() { - const ext = this.findExtension(EXTENSION_OID_KEY_USAGE); - return ext ? new ext_1.X509KeyUsageExtension(ext) : undefined; - } - get extBasicConstraints() { - const ext = this.findExtension(EXTENSION_OID_BASIC_CONSTRAINTS); - return ext ? new ext_1.X509BasicConstraintsExtension(ext) : undefined; - } - get extSubjectAltName() { - const ext = this.findExtension(EXTENSION_OID_SUBJECT_ALT_NAME); - return ext ? new ext_1.X509SubjectAlternativeNameExtension(ext) : undefined; - } - get extAuthorityKeyID() { - const ext = this.findExtension(EXTENSION_OID_AUTHORITY_KEY_ID); - return ext ? new ext_1.X509AuthorityKeyIDExtension(ext) : undefined; - } - get extSubjectKeyID() { - const ext = this.findExtension(EXTENSION_OID_SUBJECT_KEY_ID); - return ext - ? new ext_1.X509SubjectKeyIDExtension(ext) - : /* istanbul ignore next */ undefined; - } - get extSCT() { - const ext = this.findExtension(exports.EXTENSION_OID_SCT); - return ext ? new ext_1.X509SCTExtension(ext) : undefined; - } - get isCA() { - const ca = this.extBasicConstraints?.isCA || false; - // If the KeyUsage extension is present, keyCertSign must be set - if (this.extKeyUsage) { - ca && this.extKeyUsage.keyCertSign; - } - return ca; - } - extension(oid) { - const ext = this.findExtension(oid); - return ext ? new ext_1.X509Extension(ext) : undefined; - } - verify(issuerCertificate) { - // Use the issuer's public key if provided, otherwise use the subject's - const publicKey = issuerCertificate?.publicKey || this.publicKey; - const key = crypto.createPublicKey(publicKey); - return crypto.verify(this.tbsCertificate.toDER(), key, this.signatureValue, this.signatureAlgorithm); - } - validForDate(date) { - return this.notBefore <= date && date <= this.notAfter; - } - equals(other) { - return this.root.toDER().equals(other.root.toDER()); - } - // Creates a copy of the certificate with a new buffer - clone() { - const der = this.root.toDER(); - const clone = Buffer.alloc(der.length); - der.copy(clone); - return X509Certificate.parse(clone); - } - findExtension(oid) { - // Find the extension with the given OID. The OID will always be the first - // element of the extension sequence - return this.extensions.find((ext) => ext.subs[0].toOID() === oid); - } - ///////////////////////////////////////////////////////////////////////////// - // The following properties use the documented x509 structure to locate the - // desired ASN.1 object - // https://www.rfc-editor.org/rfc/rfc5280#section-4.1 - // https://www.rfc-editor.org/rfc/rfc5280#section-4.1.1.1 - get tbsCertificateObj() { - // tbsCertificate is the first element of the certificate sequence - return this.root.subs[0]; - } - // https://www.rfc-editor.org/rfc/rfc5280#section-4.1.1.2 - get signatureAlgorithmObj() { - // signatureAlgorithm is the second element of the certificate sequence - return this.root.subs[1]; - } - // https://www.rfc-editor.org/rfc/rfc5280#section-4.1.1.3 - get signatureValueObj() { - // signatureValue is the third element of the certificate sequence - return this.root.subs[2]; - } - // https://www.rfc-editor.org/rfc/rfc5280#section-4.1.2.1 - get versionObj() { - // version is the first element of the tbsCertificate sequence - return this.tbsCertificateObj.subs[0]; - } - // https://www.rfc-editor.org/rfc/rfc5280#section-4.1.2.2 - get serialNumberObj() { - // serialNumber is the second element of the tbsCertificate sequence - return this.tbsCertificateObj.subs[1]; - } - // https://www.rfc-editor.org/rfc/rfc5280#section-4.1.2.4 - get issuerObj() { - // issuer is the fourth element of the tbsCertificate sequence - return this.tbsCertificateObj.subs[3]; - } - // https://www.rfc-editor.org/rfc/rfc5280#section-4.1.2.5 - get validityObj() { - // version is the fifth element of the tbsCertificate sequence - return this.tbsCertificateObj.subs[4]; - } - // https://www.rfc-editor.org/rfc/rfc5280#section-4.1.2.6 - get subjectObj() { - // subject is the sixth element of the tbsCertificate sequence - return this.tbsCertificateObj.subs[5]; - } - // https://www.rfc-editor.org/rfc/rfc5280#section-4.1.2.7 - get subjectPublicKeyInfoObj() { - // subjectPublicKeyInfo is the seventh element of the tbsCertificate sequence - return this.tbsCertificateObj.subs[6]; - } - // Extensions can't be located by index because their position varies. Instead, - // we need to find the extensions context specific tag - // https://www.rfc-editor.org/rfc/rfc5280#section-4.1.2.9 - get extensionsObj() { - return this.tbsCertificateObj.subs.find((sub) => sub.tag.isContextSpecific(0x03)); - } -} -exports.X509Certificate = X509Certificate; diff --git a/node_modules/@sigstore/core/dist/x509/ext.d.ts b/node_modules/@sigstore/core/dist/x509/ext.d.ts deleted file mode 100644 index fca739a4..00000000 --- a/node_modules/@sigstore/core/dist/x509/ext.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -/// -import { ASN1Obj } from '../asn1'; -import { SignedCertificateTimestamp } from './sct'; -export declare class X509Extension { - protected root: ASN1Obj; - constructor(asn1: ASN1Obj); - get oid(): string; - get critical(): boolean; - get value(): Buffer; - get valueObj(): ASN1Obj; - protected get extnValueObj(): ASN1Obj; -} -export declare class X509BasicConstraintsExtension extends X509Extension { - get isCA(): boolean; - get pathLenConstraint(): bigint | undefined; - private get sequence(); -} -export declare class X509KeyUsageExtension extends X509Extension { - get digitalSignature(): boolean; - get keyCertSign(): boolean; - get crlSign(): boolean; - private get bitString(); -} -export declare class X509SubjectAlternativeNameExtension extends X509Extension { - get rfc822Name(): string | undefined; - get uri(): string | undefined; - otherName(oid: string): string | undefined; - private findGeneralName; - private get generalNames(); -} -export declare class X509AuthorityKeyIDExtension extends X509Extension { - get keyIdentifier(): Buffer | undefined; - private findSequenceMember; - private get sequence(); -} -export declare class X509SubjectKeyIDExtension extends X509Extension { - get keyIdentifier(): Buffer; -} -export declare class X509SCTExtension extends X509Extension { - constructor(asn1: ASN1Obj); - get signedCertificateTimestamps(): SignedCertificateTimestamp[]; -} diff --git a/node_modules/@sigstore/core/dist/x509/ext.js b/node_modules/@sigstore/core/dist/x509/ext.js deleted file mode 100644 index 1d481261..00000000 --- a/node_modules/@sigstore/core/dist/x509/ext.js +++ /dev/null @@ -1,145 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.X509SCTExtension = exports.X509SubjectKeyIDExtension = exports.X509AuthorityKeyIDExtension = exports.X509SubjectAlternativeNameExtension = exports.X509KeyUsageExtension = exports.X509BasicConstraintsExtension = exports.X509Extension = void 0; -const stream_1 = require("../stream"); -const sct_1 = require("./sct"); -// https://www.rfc-editor.org/rfc/rfc5280#section-4.1 -class X509Extension { - constructor(asn1) { - this.root = asn1; - } - get oid() { - return this.root.subs[0].toOID(); - } - get critical() { - // The critical field is optional and will be the second element of the - // extension sequence if present. Default to false if not present. - return this.root.subs.length === 3 ? this.root.subs[1].toBoolean() : false; - } - get value() { - return this.extnValueObj.value; - } - get valueObj() { - return this.extnValueObj; - } - get extnValueObj() { - // The extnValue field will be the last element of the extension sequence - return this.root.subs[this.root.subs.length - 1]; - } -} -exports.X509Extension = X509Extension; -// https://www.rfc-editor.org/rfc/rfc5280#section-4.2.1.9 -class X509BasicConstraintsExtension extends X509Extension { - get isCA() { - return this.sequence.subs[0]?.toBoolean() ?? false; - } - get pathLenConstraint() { - return this.sequence.subs.length > 1 - ? this.sequence.subs[1].toInteger() - : undefined; - } - // The extnValue field contains a single sequence wrapping the isCA and - // pathLenConstraint. - get sequence() { - return this.extnValueObj.subs[0]; - } -} -exports.X509BasicConstraintsExtension = X509BasicConstraintsExtension; -// https://www.rfc-editor.org/rfc/rfc5280#section-4.2.1.3 -class X509KeyUsageExtension extends X509Extension { - get digitalSignature() { - return this.bitString[0] === 1; - } - get keyCertSign() { - return this.bitString[5] === 1; - } - get crlSign() { - return this.bitString[6] === 1; - } - // The extnValue field contains a single bit string which is a bit mask - // indicating which key usages are enabled. - get bitString() { - return this.extnValueObj.subs[0].toBitString(); - } -} -exports.X509KeyUsageExtension = X509KeyUsageExtension; -// https://www.rfc-editor.org/rfc/rfc5280#section-4.2.1.6 -class X509SubjectAlternativeNameExtension extends X509Extension { - get rfc822Name() { - return this.findGeneralName(0x01)?.value.toString('ascii'); - } - get uri() { - return this.findGeneralName(0x06)?.value.toString('ascii'); - } - // Retrieve the value of an otherName with the given OID. - otherName(oid) { - const otherName = this.findGeneralName(0x00); - if (otherName === undefined) { - return undefined; - } - // The otherName is a sequence containing an OID and a value. - // Need to check that the OID matches the one we're looking for. - const otherNameOID = otherName.subs[0].toOID(); - if (otherNameOID !== oid) { - return undefined; - } - // The otherNameValue is a sequence containing the actual value. - const otherNameValue = otherName.subs[1]; - return otherNameValue.subs[0].value.toString('ascii'); - } - findGeneralName(tag) { - return this.generalNames.find((gn) => gn.tag.isContextSpecific(tag)); - } - // The extnValue field contains a sequence of GeneralNames. - get generalNames() { - return this.extnValueObj.subs[0].subs; - } -} -exports.X509SubjectAlternativeNameExtension = X509SubjectAlternativeNameExtension; -// https://www.rfc-editor.org/rfc/rfc5280#section-4.2.1.1 -class X509AuthorityKeyIDExtension extends X509Extension { - get keyIdentifier() { - return this.findSequenceMember(0x00)?.value; - } - findSequenceMember(tag) { - return this.sequence.subs.find((el) => el.tag.isContextSpecific(tag)); - } - // The extnValue field contains a single sequence wrapping the keyIdentifier - get sequence() { - return this.extnValueObj.subs[0]; - } -} -exports.X509AuthorityKeyIDExtension = X509AuthorityKeyIDExtension; -// https://www.rfc-editor.org/rfc/rfc5280#section-4.2.1.2 -class X509SubjectKeyIDExtension extends X509Extension { - get keyIdentifier() { - return this.extnValueObj.subs[0].value; - } -} -exports.X509SubjectKeyIDExtension = X509SubjectKeyIDExtension; -// https://www.rfc-editor.org/rfc/rfc6962#section-3.3 -class X509SCTExtension extends X509Extension { - constructor(asn1) { - super(asn1); - } - get signedCertificateTimestamps() { - const buf = this.extnValueObj.subs[0].value; - const stream = new stream_1.ByteStream(buf); - // The overall list length is encoded in the first two bytes -- note this - // is the length of the list in bytes, NOT the number of SCTs in the list - const end = stream.getUint16() + 2; - const sctList = []; - while (stream.position < end) { - // Read the length of the next SCT - const sctLength = stream.getUint16(); - // Slice out the bytes for the next SCT and parse it - const sct = stream.getBlock(sctLength); - sctList.push(sct_1.SignedCertificateTimestamp.parse(sct)); - } - if (stream.position !== end) { - throw new Error('SCT list length does not match actual length'); - } - return sctList; - } -} -exports.X509SCTExtension = X509SCTExtension; diff --git a/node_modules/@sigstore/core/dist/x509/index.d.ts b/node_modules/@sigstore/core/dist/x509/index.d.ts deleted file mode 100644 index 39d8ad47..00000000 --- a/node_modules/@sigstore/core/dist/x509/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { EXTENSION_OID_SCT, X509Certificate } from './cert'; -export { X509SCTExtension } from './ext'; diff --git a/node_modules/@sigstore/core/dist/x509/index.js b/node_modules/@sigstore/core/dist/x509/index.js deleted file mode 100644 index cdd77e58..00000000 --- a/node_modules/@sigstore/core/dist/x509/index.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.X509SCTExtension = exports.X509Certificate = exports.EXTENSION_OID_SCT = void 0; -var cert_1 = require("./cert"); -Object.defineProperty(exports, "EXTENSION_OID_SCT", { enumerable: true, get: function () { return cert_1.EXTENSION_OID_SCT; } }); -Object.defineProperty(exports, "X509Certificate", { enumerable: true, get: function () { return cert_1.X509Certificate; } }); -var ext_1 = require("./ext"); -Object.defineProperty(exports, "X509SCTExtension", { enumerable: true, get: function () { return ext_1.X509SCTExtension; } }); diff --git a/node_modules/@sigstore/core/dist/x509/sct.d.ts b/node_modules/@sigstore/core/dist/x509/sct.d.ts deleted file mode 100644 index c4253cb8..00000000 --- a/node_modules/@sigstore/core/dist/x509/sct.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/// -/// -import * as crypto from '../crypto'; -interface SCTOptions { - version: number; - logID: Buffer; - timestamp: Buffer; - extensions: Buffer; - hashAlgorithm: number; - signatureAlgorithm: number; - signature: Buffer; -} -export declare class SignedCertificateTimestamp { - readonly version: number; - readonly logID: Buffer; - readonly timestamp: Buffer; - readonly extensions: Buffer; - readonly hashAlgorithm: number; - readonly signatureAlgorithm: number; - readonly signature: Buffer; - constructor(options: SCTOptions); - get datetime(): Date; - get algorithm(): string; - verify(preCert: Buffer, key: crypto.KeyObject): boolean; - static parse(buf: Buffer): SignedCertificateTimestamp; -} -export {}; diff --git a/node_modules/@sigstore/core/dist/x509/sct.js b/node_modules/@sigstore/core/dist/x509/sct.js deleted file mode 100644 index 1603059c..00000000 --- a/node_modules/@sigstore/core/dist/x509/sct.js +++ /dev/null @@ -1,141 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SignedCertificateTimestamp = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const crypto = __importStar(require("../crypto")); -const stream_1 = require("../stream"); -class SignedCertificateTimestamp { - constructor(options) { - this.version = options.version; - this.logID = options.logID; - this.timestamp = options.timestamp; - this.extensions = options.extensions; - this.hashAlgorithm = options.hashAlgorithm; - this.signatureAlgorithm = options.signatureAlgorithm; - this.signature = options.signature; - } - get datetime() { - return new Date(Number(this.timestamp.readBigInt64BE())); - } - // Returns the hash algorithm used to generate the SCT's signature. - // https://www.rfc-editor.org/rfc/rfc5246#section-7.4.1.4.1 - get algorithm() { - switch (this.hashAlgorithm) { - /* istanbul ignore next */ - case 0: - return 'none'; - /* istanbul ignore next */ - case 1: - return 'md5'; - /* istanbul ignore next */ - case 2: - return 'sha1'; - /* istanbul ignore next */ - case 3: - return 'sha224'; - case 4: - return 'sha256'; - /* istanbul ignore next */ - case 5: - return 'sha384'; - /* istanbul ignore next */ - case 6: - return 'sha512'; - /* istanbul ignore next */ - default: - return 'unknown'; - } - } - verify(preCert, key) { - // Assemble the digitally-signed struct (the data over which the signature - // was generated). - // https://www.rfc-editor.org/rfc/rfc6962#section-3.2 - const stream = new stream_1.ByteStream(); - stream.appendChar(this.version); - stream.appendChar(0x00); // SignatureType = certificate_timestamp(0) - stream.appendView(this.timestamp); - stream.appendUint16(0x01); // LogEntryType = precert_entry(1) - stream.appendView(preCert); - stream.appendUint16(this.extensions.byteLength); - /* istanbul ignore next - extensions are very uncommon */ - if (this.extensions.byteLength > 0) { - stream.appendView(this.extensions); - } - return crypto.verify(stream.buffer, key, this.signature, this.algorithm); - } - // Parses a SignedCertificateTimestamp from a buffer. SCTs are encoded using - // TLS encoding which means the fields and lengths of most fields are - // specified as part of the SCT and TLS specs. - // https://www.rfc-editor.org/rfc/rfc6962#section-3.2 - // https://www.rfc-editor.org/rfc/rfc5246#section-7.4.1.4.1 - static parse(buf) { - const stream = new stream_1.ByteStream(buf); - // Version - enum { v1(0), (255) } - const version = stream.getUint8(); - // Log ID - struct { opaque key_id[32]; } - const logID = stream.getBlock(32); - // Timestamp - uint64 - const timestamp = stream.getBlock(8); - // Extensions - opaque extensions<0..2^16-1>; - const extenstionLength = stream.getUint16(); - const extensions = stream.getBlock(extenstionLength); - // Hash algo - enum { sha256(4), . . . (255) } - const hashAlgorithm = stream.getUint8(); - // Signature algo - enum { anonymous(0), rsa(1), dsa(2), ecdsa(3), (255) } - const signatureAlgorithm = stream.getUint8(); - // Signature - opaque signature<0..2^16-1>; - const sigLength = stream.getUint16(); - const signature = stream.getBlock(sigLength); - // Check that we read the entire buffer - if (stream.position !== buf.length) { - throw new Error('SCT buffer length mismatch'); - } - return new SignedCertificateTimestamp({ - version, - logID, - timestamp, - extensions, - hashAlgorithm, - signatureAlgorithm, - signature, - }); - } -} -exports.SignedCertificateTimestamp = SignedCertificateTimestamp; diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/envelope.d.ts b/node_modules/@sigstore/protobuf-specs/dist/__generated__/envelope.d.ts deleted file mode 100644 index e9a6deca..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/envelope.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -/// -/** An authenticated message of arbitrary type. */ -export interface Envelope { - /** - * Message to be signed. (In JSON, this is encoded as base64.) - * REQUIRED. - */ - payload: Buffer; - /** - * String unambiguously identifying how to interpret payload. - * REQUIRED. - */ - payloadType: string; - /** - * Signature over: - * PAE(type, payload) - * Where PAE is defined as: - * PAE(type, payload) = "DSSEv1" + SP + LEN(type) + SP + type + SP + LEN(payload) + SP + payload - * + = concatenation - * SP = ASCII space [0x20] - * "DSSEv1" = ASCII [0x44, 0x53, 0x53, 0x45, 0x76, 0x31] - * LEN(s) = ASCII decimal encoding of the byte length of s, with no leading zeros - * REQUIRED (length >= 1). - */ - signatures: Signature[]; -} -export interface Signature { - /** - * Signature itself. (In JSON, this is encoded as base64.) - * REQUIRED. - */ - sig: Buffer; - /** - * Unauthenticated* hint identifying which public key was used. - * OPTIONAL. - */ - keyid: string; -} -export declare const Envelope: { - fromJSON(object: any): Envelope; - toJSON(message: Envelope): unknown; -}; -export declare const Signature: { - fromJSON(object: any): Signature; - toJSON(message: Signature): unknown; -}; diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/envelope.js b/node_modules/@sigstore/protobuf-specs/dist/__generated__/envelope.js deleted file mode 100644 index 0c367a83..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/envelope.js +++ /dev/null @@ -1,89 +0,0 @@ -"use strict"; -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Signature = exports.Envelope = void 0; -function createBaseEnvelope() { - return { payload: Buffer.alloc(0), payloadType: "", signatures: [] }; -} -exports.Envelope = { - fromJSON(object) { - return { - payload: isSet(object.payload) ? Buffer.from(bytesFromBase64(object.payload)) : Buffer.alloc(0), - payloadType: isSet(object.payloadType) ? String(object.payloadType) : "", - signatures: Array.isArray(object?.signatures) ? object.signatures.map((e) => exports.Signature.fromJSON(e)) : [], - }; - }, - toJSON(message) { - const obj = {}; - message.payload !== undefined && - (obj.payload = base64FromBytes(message.payload !== undefined ? message.payload : Buffer.alloc(0))); - message.payloadType !== undefined && (obj.payloadType = message.payloadType); - if (message.signatures) { - obj.signatures = message.signatures.map((e) => e ? exports.Signature.toJSON(e) : undefined); - } - else { - obj.signatures = []; - } - return obj; - }, -}; -function createBaseSignature() { - return { sig: Buffer.alloc(0), keyid: "" }; -} -exports.Signature = { - fromJSON(object) { - return { - sig: isSet(object.sig) ? Buffer.from(bytesFromBase64(object.sig)) : Buffer.alloc(0), - keyid: isSet(object.keyid) ? String(object.keyid) : "", - }; - }, - toJSON(message) { - const obj = {}; - message.sig !== undefined && (obj.sig = base64FromBytes(message.sig !== undefined ? message.sig : Buffer.alloc(0))); - message.keyid !== undefined && (obj.keyid = message.keyid); - return obj; - }, -}; -var tsProtoGlobalThis = (() => { - if (typeof globalThis !== "undefined") { - return globalThis; - } - if (typeof self !== "undefined") { - return self; - } - if (typeof window !== "undefined") { - return window; - } - if (typeof global !== "undefined") { - return global; - } - throw "Unable to locate global object"; -})(); -function bytesFromBase64(b64) { - if (tsProtoGlobalThis.Buffer) { - return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); - } - else { - const bin = tsProtoGlobalThis.atob(b64); - const arr = new Uint8Array(bin.length); - for (let i = 0; i < bin.length; ++i) { - arr[i] = bin.charCodeAt(i); - } - return arr; - } -} -function base64FromBytes(arr) { - if (tsProtoGlobalThis.Buffer) { - return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); - } - else { - const bin = []; - arr.forEach((byte) => { - bin.push(String.fromCharCode(byte)); - }); - return tsProtoGlobalThis.btoa(bin.join("")); - } -} -function isSet(value) { - return value !== null && value !== undefined; -} diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/events.d.ts b/node_modules/@sigstore/protobuf-specs/dist/__generated__/events.d.ts deleted file mode 100644 index 993e7b7d..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/events.d.ts +++ /dev/null @@ -1,71 +0,0 @@ -/// -import { Any } from "./google/protobuf/any"; -export interface CloudEvent { - /** Required Attributes */ - id: string; - /** URI-reference */ - source: string; - specVersion: string; - type: string; - /** Optional & Extension Attributes */ - attributes: { - [key: string]: CloudEvent_CloudEventAttributeValue; - }; - data?: { - $case: "binaryData"; - binaryData: Buffer; - } | { - $case: "textData"; - textData: string; - } | { - $case: "protoData"; - protoData: Any; - }; -} -export interface CloudEvent_AttributesEntry { - key: string; - value: CloudEvent_CloudEventAttributeValue | undefined; -} -export interface CloudEvent_CloudEventAttributeValue { - attr?: { - $case: "ceBoolean"; - ceBoolean: boolean; - } | { - $case: "ceInteger"; - ceInteger: number; - } | { - $case: "ceString"; - ceString: string; - } | { - $case: "ceBytes"; - ceBytes: Buffer; - } | { - $case: "ceUri"; - ceUri: string; - } | { - $case: "ceUriRef"; - ceUriRef: string; - } | { - $case: "ceTimestamp"; - ceTimestamp: Date; - }; -} -export interface CloudEventBatch { - events: CloudEvent[]; -} -export declare const CloudEvent: { - fromJSON(object: any): CloudEvent; - toJSON(message: CloudEvent): unknown; -}; -export declare const CloudEvent_AttributesEntry: { - fromJSON(object: any): CloudEvent_AttributesEntry; - toJSON(message: CloudEvent_AttributesEntry): unknown; -}; -export declare const CloudEvent_CloudEventAttributeValue: { - fromJSON(object: any): CloudEvent_CloudEventAttributeValue; - toJSON(message: CloudEvent_CloudEventAttributeValue): unknown; -}; -export declare const CloudEventBatch: { - fromJSON(object: any): CloudEventBatch; - toJSON(message: CloudEventBatch): unknown; -}; diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/events.js b/node_modules/@sigstore/protobuf-specs/dist/__generated__/events.js deleted file mode 100644 index 073093b8..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/events.js +++ /dev/null @@ -1,185 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CloudEventBatch = exports.CloudEvent_CloudEventAttributeValue = exports.CloudEvent_AttributesEntry = exports.CloudEvent = void 0; -/* eslint-disable */ -const any_1 = require("./google/protobuf/any"); -const timestamp_1 = require("./google/protobuf/timestamp"); -function createBaseCloudEvent() { - return { id: "", source: "", specVersion: "", type: "", attributes: {}, data: undefined }; -} -exports.CloudEvent = { - fromJSON(object) { - return { - id: isSet(object.id) ? String(object.id) : "", - source: isSet(object.source) ? String(object.source) : "", - specVersion: isSet(object.specVersion) ? String(object.specVersion) : "", - type: isSet(object.type) ? String(object.type) : "", - attributes: isObject(object.attributes) - ? Object.entries(object.attributes).reduce((acc, [key, value]) => { - acc[key] = exports.CloudEvent_CloudEventAttributeValue.fromJSON(value); - return acc; - }, {}) - : {}, - data: isSet(object.binaryData) - ? { $case: "binaryData", binaryData: Buffer.from(bytesFromBase64(object.binaryData)) } - : isSet(object.textData) - ? { $case: "textData", textData: String(object.textData) } - : isSet(object.protoData) - ? { $case: "protoData", protoData: any_1.Any.fromJSON(object.protoData) } - : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.id !== undefined && (obj.id = message.id); - message.source !== undefined && (obj.source = message.source); - message.specVersion !== undefined && (obj.specVersion = message.specVersion); - message.type !== undefined && (obj.type = message.type); - obj.attributes = {}; - if (message.attributes) { - Object.entries(message.attributes).forEach(([k, v]) => { - obj.attributes[k] = exports.CloudEvent_CloudEventAttributeValue.toJSON(v); - }); - } - message.data?.$case === "binaryData" && - (obj.binaryData = message.data?.binaryData !== undefined ? base64FromBytes(message.data?.binaryData) : undefined); - message.data?.$case === "textData" && (obj.textData = message.data?.textData); - message.data?.$case === "protoData" && - (obj.protoData = message.data?.protoData ? any_1.Any.toJSON(message.data?.protoData) : undefined); - return obj; - }, -}; -function createBaseCloudEvent_AttributesEntry() { - return { key: "", value: undefined }; -} -exports.CloudEvent_AttributesEntry = { - fromJSON(object) { - return { - key: isSet(object.key) ? String(object.key) : "", - value: isSet(object.value) ? exports.CloudEvent_CloudEventAttributeValue.fromJSON(object.value) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.key !== undefined && (obj.key = message.key); - message.value !== undefined && - (obj.value = message.value ? exports.CloudEvent_CloudEventAttributeValue.toJSON(message.value) : undefined); - return obj; - }, -}; -function createBaseCloudEvent_CloudEventAttributeValue() { - return { attr: undefined }; -} -exports.CloudEvent_CloudEventAttributeValue = { - fromJSON(object) { - return { - attr: isSet(object.ceBoolean) - ? { $case: "ceBoolean", ceBoolean: Boolean(object.ceBoolean) } - : isSet(object.ceInteger) - ? { $case: "ceInteger", ceInteger: Number(object.ceInteger) } - : isSet(object.ceString) - ? { $case: "ceString", ceString: String(object.ceString) } - : isSet(object.ceBytes) - ? { $case: "ceBytes", ceBytes: Buffer.from(bytesFromBase64(object.ceBytes)) } - : isSet(object.ceUri) - ? { $case: "ceUri", ceUri: String(object.ceUri) } - : isSet(object.ceUriRef) - ? { $case: "ceUriRef", ceUriRef: String(object.ceUriRef) } - : isSet(object.ceTimestamp) - ? { $case: "ceTimestamp", ceTimestamp: fromJsonTimestamp(object.ceTimestamp) } - : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.attr?.$case === "ceBoolean" && (obj.ceBoolean = message.attr?.ceBoolean); - message.attr?.$case === "ceInteger" && (obj.ceInteger = Math.round(message.attr?.ceInteger)); - message.attr?.$case === "ceString" && (obj.ceString = message.attr?.ceString); - message.attr?.$case === "ceBytes" && - (obj.ceBytes = message.attr?.ceBytes !== undefined ? base64FromBytes(message.attr?.ceBytes) : undefined); - message.attr?.$case === "ceUri" && (obj.ceUri = message.attr?.ceUri); - message.attr?.$case === "ceUriRef" && (obj.ceUriRef = message.attr?.ceUriRef); - message.attr?.$case === "ceTimestamp" && (obj.ceTimestamp = message.attr?.ceTimestamp.toISOString()); - return obj; - }, -}; -function createBaseCloudEventBatch() { - return { events: [] }; -} -exports.CloudEventBatch = { - fromJSON(object) { - return { events: Array.isArray(object?.events) ? object.events.map((e) => exports.CloudEvent.fromJSON(e)) : [] }; - }, - toJSON(message) { - const obj = {}; - if (message.events) { - obj.events = message.events.map((e) => e ? exports.CloudEvent.toJSON(e) : undefined); - } - else { - obj.events = []; - } - return obj; - }, -}; -var tsProtoGlobalThis = (() => { - if (typeof globalThis !== "undefined") { - return globalThis; - } - if (typeof self !== "undefined") { - return self; - } - if (typeof window !== "undefined") { - return window; - } - if (typeof global !== "undefined") { - return global; - } - throw "Unable to locate global object"; -})(); -function bytesFromBase64(b64) { - if (tsProtoGlobalThis.Buffer) { - return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); - } - else { - const bin = tsProtoGlobalThis.atob(b64); - const arr = new Uint8Array(bin.length); - for (let i = 0; i < bin.length; ++i) { - arr[i] = bin.charCodeAt(i); - } - return arr; - } -} -function base64FromBytes(arr) { - if (tsProtoGlobalThis.Buffer) { - return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); - } - else { - const bin = []; - arr.forEach((byte) => { - bin.push(String.fromCharCode(byte)); - }); - return tsProtoGlobalThis.btoa(bin.join("")); - } -} -function fromTimestamp(t) { - let millis = Number(t.seconds) * 1000; - millis += t.nanos / 1000000; - return new Date(millis); -} -function fromJsonTimestamp(o) { - if (o instanceof Date) { - return o; - } - else if (typeof o === "string") { - return new Date(o); - } - else { - return fromTimestamp(timestamp_1.Timestamp.fromJSON(o)); - } -} -function isObject(value) { - return typeof value === "object" && value !== null; -} -function isSet(value) { - return value !== null && value !== undefined; -} diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/api/field_behavior.d.ts b/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/api/field_behavior.d.ts deleted file mode 100644 index 1b4ed47a..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/api/field_behavior.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * An indicator of the behavior of a given field (for example, that a field - * is required in requests, or given as output but ignored as input). - * This **does not** change the behavior in protocol buffers itself; it only - * denotes the behavior and may affect how API tooling handles the field. - * - * Note: This enum **may** receive new values in the future. - */ -export declare enum FieldBehavior { - /** FIELD_BEHAVIOR_UNSPECIFIED - Conventional default for enums. Do not use this. */ - FIELD_BEHAVIOR_UNSPECIFIED = 0, - /** - * OPTIONAL - Specifically denotes a field as optional. - * While all fields in protocol buffers are optional, this may be specified - * for emphasis if appropriate. - */ - OPTIONAL = 1, - /** - * REQUIRED - Denotes a field as required. - * This indicates that the field **must** be provided as part of the request, - * and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - */ - REQUIRED = 2, - /** - * OUTPUT_ONLY - Denotes a field as output only. - * This indicates that the field is provided in responses, but including the - * field in a request does nothing (the server *must* ignore it and - * *must not* throw an error as a result of the field's presence). - */ - OUTPUT_ONLY = 3, - /** - * INPUT_ONLY - Denotes a field as input only. - * This indicates that the field is provided in requests, and the - * corresponding field is not included in output. - */ - INPUT_ONLY = 4, - /** - * IMMUTABLE - Denotes a field as immutable. - * This indicates that the field may be set once in a request to create a - * resource, but may not be changed thereafter. - */ - IMMUTABLE = 5, - /** - * UNORDERED_LIST - Denotes that a (repeated) field is an unordered list. - * This indicates that the service may provide the elements of the list - * in any arbitrary order, rather than the order the user originally - * provided. Additionally, the list's order may or may not be stable. - */ - UNORDERED_LIST = 6 -} -export declare function fieldBehaviorFromJSON(object: any): FieldBehavior; -export declare function fieldBehaviorToJSON(object: FieldBehavior): string; diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/api/field_behavior.js b/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/api/field_behavior.js deleted file mode 100644 index da627499..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/api/field_behavior.js +++ /dev/null @@ -1,119 +0,0 @@ -"use strict"; -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fieldBehaviorToJSON = exports.fieldBehaviorFromJSON = exports.FieldBehavior = void 0; -/** - * An indicator of the behavior of a given field (for example, that a field - * is required in requests, or given as output but ignored as input). - * This **does not** change the behavior in protocol buffers itself; it only - * denotes the behavior and may affect how API tooling handles the field. - * - * Note: This enum **may** receive new values in the future. - */ -var FieldBehavior; -(function (FieldBehavior) { - /** FIELD_BEHAVIOR_UNSPECIFIED - Conventional default for enums. Do not use this. */ - FieldBehavior[FieldBehavior["FIELD_BEHAVIOR_UNSPECIFIED"] = 0] = "FIELD_BEHAVIOR_UNSPECIFIED"; - /** - * OPTIONAL - Specifically denotes a field as optional. - * While all fields in protocol buffers are optional, this may be specified - * for emphasis if appropriate. - */ - FieldBehavior[FieldBehavior["OPTIONAL"] = 1] = "OPTIONAL"; - /** - * REQUIRED - Denotes a field as required. - * This indicates that the field **must** be provided as part of the request, - * and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - */ - FieldBehavior[FieldBehavior["REQUIRED"] = 2] = "REQUIRED"; - /** - * OUTPUT_ONLY - Denotes a field as output only. - * This indicates that the field is provided in responses, but including the - * field in a request does nothing (the server *must* ignore it and - * *must not* throw an error as a result of the field's presence). - */ - FieldBehavior[FieldBehavior["OUTPUT_ONLY"] = 3] = "OUTPUT_ONLY"; - /** - * INPUT_ONLY - Denotes a field as input only. - * This indicates that the field is provided in requests, and the - * corresponding field is not included in output. - */ - FieldBehavior[FieldBehavior["INPUT_ONLY"] = 4] = "INPUT_ONLY"; - /** - * IMMUTABLE - Denotes a field as immutable. - * This indicates that the field may be set once in a request to create a - * resource, but may not be changed thereafter. - */ - FieldBehavior[FieldBehavior["IMMUTABLE"] = 5] = "IMMUTABLE"; - /** - * UNORDERED_LIST - Denotes that a (repeated) field is an unordered list. - * This indicates that the service may provide the elements of the list - * in any arbitrary order, rather than the order the user originally - * provided. Additionally, the list's order may or may not be stable. - */ - FieldBehavior[FieldBehavior["UNORDERED_LIST"] = 6] = "UNORDERED_LIST"; -})(FieldBehavior = exports.FieldBehavior || (exports.FieldBehavior = {})); -function fieldBehaviorFromJSON(object) { - switch (object) { - case 0: - case "FIELD_BEHAVIOR_UNSPECIFIED": - return FieldBehavior.FIELD_BEHAVIOR_UNSPECIFIED; - case 1: - case "OPTIONAL": - return FieldBehavior.OPTIONAL; - case 2: - case "REQUIRED": - return FieldBehavior.REQUIRED; - case 3: - case "OUTPUT_ONLY": - return FieldBehavior.OUTPUT_ONLY; - case 4: - case "INPUT_ONLY": - return FieldBehavior.INPUT_ONLY; - case 5: - case "IMMUTABLE": - return FieldBehavior.IMMUTABLE; - case 6: - case "UNORDERED_LIST": - return FieldBehavior.UNORDERED_LIST; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldBehavior"); - } -} -exports.fieldBehaviorFromJSON = fieldBehaviorFromJSON; -function fieldBehaviorToJSON(object) { - switch (object) { - case FieldBehavior.FIELD_BEHAVIOR_UNSPECIFIED: - return "FIELD_BEHAVIOR_UNSPECIFIED"; - case FieldBehavior.OPTIONAL: - return "OPTIONAL"; - case FieldBehavior.REQUIRED: - return "REQUIRED"; - case FieldBehavior.OUTPUT_ONLY: - return "OUTPUT_ONLY"; - case FieldBehavior.INPUT_ONLY: - return "INPUT_ONLY"; - case FieldBehavior.IMMUTABLE: - return "IMMUTABLE"; - case FieldBehavior.UNORDERED_LIST: - return "UNORDERED_LIST"; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldBehavior"); - } -} -exports.fieldBehaviorToJSON = fieldBehaviorToJSON; -var tsProtoGlobalThis = (() => { - if (typeof globalThis !== "undefined") { - return globalThis; - } - if (typeof self !== "undefined") { - return self; - } - if (typeof window !== "undefined") { - return window; - } - if (typeof global !== "undefined") { - return global; - } - throw "Unable to locate global object"; -})(); diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/any.d.ts b/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/any.d.ts deleted file mode 100644 index d971da31..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/any.d.ts +++ /dev/null @@ -1,122 +0,0 @@ -/// -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := anypb.New(foo) - * if err != nil { - * ... - * } - * ... - * foo := &pb.Foo{} - * if err := any.UnmarshalTo(foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * JSON - * - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ -export interface Any { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - typeUrl: string; - /** Must be a valid serialized protocol buffer of the above specified type. */ - value: Buffer; -} -export declare const Any: { - fromJSON(object: any): Any; - toJSON(message: Any): unknown; -}; diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/any.js b/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/any.js deleted file mode 100644 index 6b3f3c97..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/any.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Any = void 0; -function createBaseAny() { - return { typeUrl: "", value: Buffer.alloc(0) }; -} -exports.Any = { - fromJSON(object) { - return { - typeUrl: isSet(object.typeUrl) ? String(object.typeUrl) : "", - value: isSet(object.value) ? Buffer.from(bytesFromBase64(object.value)) : Buffer.alloc(0), - }; - }, - toJSON(message) { - const obj = {}; - message.typeUrl !== undefined && (obj.typeUrl = message.typeUrl); - message.value !== undefined && - (obj.value = base64FromBytes(message.value !== undefined ? message.value : Buffer.alloc(0))); - return obj; - }, -}; -var tsProtoGlobalThis = (() => { - if (typeof globalThis !== "undefined") { - return globalThis; - } - if (typeof self !== "undefined") { - return self; - } - if (typeof window !== "undefined") { - return window; - } - if (typeof global !== "undefined") { - return global; - } - throw "Unable to locate global object"; -})(); -function bytesFromBase64(b64) { - if (tsProtoGlobalThis.Buffer) { - return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); - } - else { - const bin = tsProtoGlobalThis.atob(b64); - const arr = new Uint8Array(bin.length); - for (let i = 0; i < bin.length; ++i) { - arr[i] = bin.charCodeAt(i); - } - return arr; - } -} -function base64FromBytes(arr) { - if (tsProtoGlobalThis.Buffer) { - return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); - } - else { - const bin = []; - arr.forEach((byte) => { - bin.push(String.fromCharCode(byte)); - }); - return tsProtoGlobalThis.btoa(bin.join("")); - } -} -function isSet(value) { - return value !== null && value !== undefined; -} diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/descriptor.d.ts b/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/descriptor.d.ts deleted file mode 100644 index ef43bf01..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/descriptor.d.ts +++ /dev/null @@ -1,939 +0,0 @@ -/// -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - */ -export interface FileDescriptorSet { - file: FileDescriptorProto[]; -} -/** Describes a complete .proto file. */ -export interface FileDescriptorProto { - /** file name, relative to root of source tree */ - name: string; - /** e.g. "foo", "foo.bar", etc. */ - package: string; - /** Names of files imported by this file. */ - dependency: string[]; - /** Indexes of the public imported files in the dependency list above. */ - publicDependency: number[]; - /** - * Indexes of the weak imported files in the dependency list. - * For Google-internal migration only. Do not use. - */ - weakDependency: number[]; - /** All top-level definitions in this file. */ - messageType: DescriptorProto[]; - enumType: EnumDescriptorProto[]; - service: ServiceDescriptorProto[]; - extension: FieldDescriptorProto[]; - options: FileOptions | undefined; - /** - * This field contains optional information about the original source code. - * You may safely remove this entire field without harming runtime - * functionality of the descriptors -- the information is needed only by - * development tools. - */ - sourceCodeInfo: SourceCodeInfo | undefined; - /** - * The syntax of the proto file. - * The supported values are "proto2" and "proto3". - */ - syntax: string; -} -/** Describes a message type. */ -export interface DescriptorProto { - name: string; - field: FieldDescriptorProto[]; - extension: FieldDescriptorProto[]; - nestedType: DescriptorProto[]; - enumType: EnumDescriptorProto[]; - extensionRange: DescriptorProto_ExtensionRange[]; - oneofDecl: OneofDescriptorProto[]; - options: MessageOptions | undefined; - reservedRange: DescriptorProto_ReservedRange[]; - /** - * Reserved field names, which may not be used by fields in the same message. - * A given name may only be reserved once. - */ - reservedName: string[]; -} -export interface DescriptorProto_ExtensionRange { - /** Inclusive. */ - start: number; - /** Exclusive. */ - end: number; - options: ExtensionRangeOptions | undefined; -} -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - */ -export interface DescriptorProto_ReservedRange { - /** Inclusive. */ - start: number; - /** Exclusive. */ - end: number; -} -export interface ExtensionRangeOptions { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -/** Describes a field within a message. */ -export interface FieldDescriptorProto { - name: string; - number: number; - label: FieldDescriptorProto_Label; - /** - * If type_name is set, this need not be set. If both this and type_name - * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - */ - type: FieldDescriptorProto_Type; - /** - * For message and enum types, this is the name of the type. If the name - * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - * rules are used to find the type (i.e. first the nested types within this - * message are searched, then within the parent, on up to the root - * namespace). - */ - typeName: string; - /** - * For extensions, this is the name of the type being extended. It is - * resolved in the same manner as type_name. - */ - extendee: string; - /** - * For numeric types, contains the original text representation of the value. - * For booleans, "true" or "false". - * For strings, contains the default text contents (not escaped in any way). - * For bytes, contains the C escaped value. All bytes >= 128 are escaped. - */ - defaultValue: string; - /** - * If set, gives the index of a oneof in the containing type's oneof_decl - * list. This field is a member of that oneof. - */ - oneofIndex: number; - /** - * JSON name of this field. The value is set by protocol compiler. If the - * user has set a "json_name" option on this field, that option's value - * will be used. Otherwise, it's deduced from the field's name by converting - * it to camelCase. - */ - jsonName: string; - options: FieldOptions | undefined; - /** - * If true, this is a proto3 "optional". When a proto3 field is optional, it - * tracks presence regardless of field type. - * - * When proto3_optional is true, this field must be belong to a oneof to - * signal to old proto3 clients that presence is tracked for this field. This - * oneof is known as a "synthetic" oneof, and this field must be its sole - * member (each proto3 optional field gets its own synthetic oneof). Synthetic - * oneofs exist in the descriptor only, and do not generate any API. Synthetic - * oneofs must be ordered after all "real" oneofs. - * - * For message fields, proto3_optional doesn't create any semantic change, - * since non-repeated message fields always track presence. However it still - * indicates the semantic detail of whether the user wrote "optional" or not. - * This can be useful for round-tripping the .proto file. For consistency we - * give message fields a synthetic oneof also, even though it is not required - * to track presence. This is especially important because the parser can't - * tell if a field is a message or an enum, so it must always create a - * synthetic oneof. - * - * Proto2 optional fields do not set this flag, because they already indicate - * optional with `LABEL_OPTIONAL`. - */ - proto3Optional: boolean; -} -export declare enum FieldDescriptorProto_Type { - /** - * TYPE_DOUBLE - 0 is reserved for errors. - * Order is weird for historical reasons. - */ - TYPE_DOUBLE = 1, - TYPE_FLOAT = 2, - /** - * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - * negative values are likely. - */ - TYPE_INT64 = 3, - TYPE_UINT64 = 4, - /** - * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - * negative values are likely. - */ - TYPE_INT32 = 5, - TYPE_FIXED64 = 6, - TYPE_FIXED32 = 7, - TYPE_BOOL = 8, - TYPE_STRING = 9, - /** - * TYPE_GROUP - Tag-delimited aggregate. - * Group type is deprecated and not supported in proto3. However, Proto3 - * implementations should still be able to parse the group wire format and - * treat group fields as unknown fields. - */ - TYPE_GROUP = 10, - /** TYPE_MESSAGE - Length-delimited aggregate. */ - TYPE_MESSAGE = 11, - /** TYPE_BYTES - New in version 2. */ - TYPE_BYTES = 12, - TYPE_UINT32 = 13, - TYPE_ENUM = 14, - TYPE_SFIXED32 = 15, - TYPE_SFIXED64 = 16, - /** TYPE_SINT32 - Uses ZigZag encoding. */ - TYPE_SINT32 = 17, - /** TYPE_SINT64 - Uses ZigZag encoding. */ - TYPE_SINT64 = 18 -} -export declare function fieldDescriptorProto_TypeFromJSON(object: any): FieldDescriptorProto_Type; -export declare function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Type): string; -export declare enum FieldDescriptorProto_Label { - /** LABEL_OPTIONAL - 0 is reserved for errors */ - LABEL_OPTIONAL = 1, - LABEL_REQUIRED = 2, - LABEL_REPEATED = 3 -} -export declare function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptorProto_Label; -export declare function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_Label): string; -/** Describes a oneof. */ -export interface OneofDescriptorProto { - name: string; - options: OneofOptions | undefined; -} -/** Describes an enum type. */ -export interface EnumDescriptorProto { - name: string; - value: EnumValueDescriptorProto[]; - options: EnumOptions | undefined; - /** - * Range of reserved numeric values. Reserved numeric values may not be used - * by enum values in the same enum declaration. Reserved ranges may not - * overlap. - */ - reservedRange: EnumDescriptorProto_EnumReservedRange[]; - /** - * Reserved enum value names, which may not be reused. A given name may only - * be reserved once. - */ - reservedName: string[]; -} -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - */ -export interface EnumDescriptorProto_EnumReservedRange { - /** Inclusive. */ - start: number; - /** Inclusive. */ - end: number; -} -/** Describes a value within an enum. */ -export interface EnumValueDescriptorProto { - name: string; - number: number; - options: EnumValueOptions | undefined; -} -/** Describes a service. */ -export interface ServiceDescriptorProto { - name: string; - method: MethodDescriptorProto[]; - options: ServiceOptions | undefined; -} -/** Describes a method of a service. */ -export interface MethodDescriptorProto { - name: string; - /** - * Input and output type names. These are resolved in the same way as - * FieldDescriptorProto.type_name, but must refer to a message type. - */ - inputType: string; - outputType: string; - options: MethodOptions | undefined; - /** Identifies if client streams multiple client messages */ - clientStreaming: boolean; - /** Identifies if server streams multiple server messages */ - serverStreaming: boolean; -} -export interface FileOptions { - /** - * Sets the Java package where classes generated from this .proto will be - * placed. By default, the proto package is used, but this is often - * inappropriate because proto packages do not normally start with backwards - * domain names. - */ - javaPackage: string; - /** - * Controls the name of the wrapper Java class generated for the .proto file. - * That class will always contain the .proto file's getDescriptor() method as - * well as any top-level extensions defined in the .proto file. - * If java_multiple_files is disabled, then all the other classes from the - * .proto file will be nested inside the single wrapper outer class. - */ - javaOuterClassname: string; - /** - * If enabled, then the Java code generator will generate a separate .java - * file for each top-level message, enum, and service defined in the .proto - * file. Thus, these types will *not* be nested inside the wrapper class - * named by java_outer_classname. However, the wrapper class will still be - * generated to contain the file's getDescriptor() method as well as any - * top-level extensions defined in the file. - */ - javaMultipleFiles: boolean; - /** - * This option does nothing. - * - * @deprecated - */ - javaGenerateEqualsAndHash: boolean; - /** - * If set true, then the Java2 code generator will generate code that - * throws an exception whenever an attempt is made to assign a non-UTF-8 - * byte sequence to a string field. - * Message reflection will do the same. - * However, an extension field still accepts non-UTF-8 byte sequences. - * This option has no effect on when used with the lite runtime. - */ - javaStringCheckUtf8: boolean; - optimizeFor: FileOptions_OptimizeMode; - /** - * Sets the Go package where structs generated from this .proto will be - * placed. If omitted, the Go package will be derived from the following: - * - The basename of the package import path, if provided. - * - Otherwise, the package statement in the .proto file, if present. - * - Otherwise, the basename of the .proto file, without extension. - */ - goPackage: string; - /** - * Should generic services be generated in each language? "Generic" services - * are not specific to any particular RPC system. They are generated by the - * main code generators in each language (without additional plugins). - * Generic services were the only kind of service generation supported by - * early versions of google.protobuf. - * - * Generic services are now considered deprecated in favor of using plugins - * that generate code specific to your particular RPC system. Therefore, - * these default to false. Old code which depends on generic services should - * explicitly set them to true. - */ - ccGenericServices: boolean; - javaGenericServices: boolean; - pyGenericServices: boolean; - phpGenericServices: boolean; - /** - * Is this file deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for everything in the file, or it will be completely ignored; in the very - * least, this is a formalization for deprecating files. - */ - deprecated: boolean; - /** - * Enables the use of arenas for the proto messages in this file. This applies - * only to generated classes for C++. - */ - ccEnableArenas: boolean; - /** - * Sets the objective c class prefix which is prepended to all objective c - * generated classes from this .proto. There is no default. - */ - objcClassPrefix: string; - /** Namespace for generated classes; defaults to the package. */ - csharpNamespace: string; - /** - * By default Swift generators will take the proto package and CamelCase it - * replacing '.' with underscore and use that to prefix the types/symbols - * defined. When this options is provided, they will use this value instead - * to prefix the types/symbols defined. - */ - swiftPrefix: string; - /** - * Sets the php class prefix which is prepended to all php generated classes - * from this .proto. Default is empty. - */ - phpClassPrefix: string; - /** - * Use this option to change the namespace of php generated classes. Default - * is empty. When this option is empty, the package name will be used for - * determining the namespace. - */ - phpNamespace: string; - /** - * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be - * used for determining the namespace. - */ - phpMetadataNamespace: string; - /** - * Use this option to change the package of ruby generated classes. Default - * is empty. When this option is not set, the package name will be used for - * determining the ruby package. - */ - rubyPackage: string; - /** - * The parser stores options it doesn't recognize here. - * See the documentation for the "Options" section above. - */ - uninterpretedOption: UninterpretedOption[]; -} -/** Generated classes can be optimized for speed or code size. */ -export declare enum FileOptions_OptimizeMode { - /** SPEED - Generate complete code for parsing, serialization, */ - SPEED = 1, - /** CODE_SIZE - etc. */ - CODE_SIZE = 2, - /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */ - LITE_RUNTIME = 3 -} -export declare function fileOptions_OptimizeModeFromJSON(object: any): FileOptions_OptimizeMode; -export declare function fileOptions_OptimizeModeToJSON(object: FileOptions_OptimizeMode): string; -export interface MessageOptions { - /** - * Set true to use the old proto1 MessageSet wire format for extensions. - * This is provided for backwards-compatibility with the MessageSet wire - * format. You should not use this for any other reason: It's less - * efficient, has fewer features, and is more complicated. - * - * The message must be defined exactly as follows: - * message Foo { - * option message_set_wire_format = true; - * extensions 4 to max; - * } - * Note that the message cannot have any defined fields; MessageSets only - * have extensions. - * - * All extensions of your type must be singular messages; e.g. they cannot - * be int32s, enums, or repeated messages. - * - * Because this is an option, the above two restrictions are not enforced by - * the protocol compiler. - */ - messageSetWireFormat: boolean; - /** - * Disables the generation of the standard "descriptor()" accessor, which can - * conflict with a field of the same name. This is meant to make migration - * from proto1 easier; new code should avoid fields named "descriptor". - */ - noStandardDescriptorAccessor: boolean; - /** - * Is this message deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the message, or it will be completely ignored; in the very least, - * this is a formalization for deprecating messages. - */ - deprecated: boolean; - /** - * Whether the message is an automatically generated map entry type for the - * maps field. - * - * For maps fields: - * map map_field = 1; - * The parsed descriptor looks like: - * message MapFieldEntry { - * option map_entry = true; - * optional KeyType key = 1; - * optional ValueType value = 2; - * } - * repeated MapFieldEntry map_field = 1; - * - * Implementations may choose not to generate the map_entry=true message, but - * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementations still need to work as - * if the field is a repeated message field. - * - * NOTE: Do not set the option in .proto files. Always use the maps syntax - * instead. The option should only be implicitly set by the proto compiler - * parser. - */ - mapEntry: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface FieldOptions { - /** - * The ctype option instructs the C++ code generator to use a different - * representation of the field than it normally would. See the specific - * options below. This option is not yet implemented in the open source - * release -- sorry, we'll try to include it in a future version! - */ - ctype: FieldOptions_CType; - /** - * The packed option can be enabled for repeated primitive fields to enable - * a more efficient representation on the wire. Rather than repeatedly - * writing the tag and type for each element, the entire array is encoded as - * a single length-delimited blob. In proto3, only explicit setting it to - * false will avoid using packed encoding. - */ - packed: boolean; - /** - * The jstype option determines the JavaScript type used for values of the - * field. The option is permitted only for 64 bit integral and fixed types - * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - * is represented as JavaScript string, which avoids loss of precision that - * can happen when a large value is converted to a floating point JavaScript. - * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - * use the JavaScript "number" type. The behavior of the default option - * JS_NORMAL is implementation dependent. - * - * This option is an enum to permit additional types to be added, e.g. - * goog.math.Integer. - */ - jstype: FieldOptions_JSType; - /** - * Should this field be parsed lazily? Lazy applies only to message-type - * fields. It means that when the outer message is initially parsed, the - * inner message's contents will not be parsed but instead stored in encoded - * form. The inner message will actually be parsed when it is first accessed. - * - * This is only a hint. Implementations are free to choose whether to use - * eager or lazy parsing regardless of the value of this option. However, - * setting this option true suggests that the protocol author believes that - * using lazy parsing on this field is worth the additional bookkeeping - * overhead typically needed to implement it. - * - * This option does not affect the public interface of any generated code; - * all method signatures remain the same. Furthermore, thread-safety of the - * interface is not affected by this option; const methods remain safe to - * call from multiple threads concurrently, while non-const methods continue - * to require exclusive access. - * - * Note that implementations may choose not to check required fields within - * a lazy sub-message. That is, calling IsInitialized() on the outer message - * may return true even if the inner message has missing required fields. - * This is necessary because otherwise the inner message would have to be - * parsed in order to perform the check, defeating the purpose of lazy - * parsing. An implementation which chooses not to check required fields - * must be consistent about it. That is, for any particular sub-message, the - * implementation must either *always* check its required fields, or *never* - * check its required fields, regardless of whether or not the message has - * been parsed. - * - * As of 2021, lazy does no correctness checks on the byte stream during - * parsing. This may lead to crashes if and when an invalid byte stream is - * finally parsed upon access. - * - * TODO(b/211906113): Enable validation on lazy fields. - */ - lazy: boolean; - /** - * unverified_lazy does no correctness checks on the byte stream. This should - * only be used where lazy with verification is prohibitive for performance - * reasons. - */ - unverifiedLazy: boolean; - /** - * Is this field deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for accessors, or it will be completely ignored; in the very least, this - * is a formalization for deprecating fields. - */ - deprecated: boolean; - /** For Google-internal migration only. Do not use. */ - weak: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export declare enum FieldOptions_CType { - /** STRING - Default mode. */ - STRING = 0, - CORD = 1, - STRING_PIECE = 2 -} -export declare function fieldOptions_CTypeFromJSON(object: any): FieldOptions_CType; -export declare function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string; -export declare enum FieldOptions_JSType { - /** JS_NORMAL - Use the default type. */ - JS_NORMAL = 0, - /** JS_STRING - Use JavaScript strings. */ - JS_STRING = 1, - /** JS_NUMBER - Use JavaScript numbers. */ - JS_NUMBER = 2 -} -export declare function fieldOptions_JSTypeFromJSON(object: any): FieldOptions_JSType; -export declare function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string; -export interface OneofOptions { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface EnumOptions { - /** - * Set this option to true to allow mapping different tag names to the same - * value. - */ - allowAlias: boolean; - /** - * Is this enum deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum, or it will be completely ignored; in the very least, this - * is a formalization for deprecating enums. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface EnumValueOptions { - /** - * Is this enum value deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum value, or it will be completely ignored; in the very least, - * this is a formalization for deprecating enum values. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface ServiceOptions { - /** - * Is this service deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the service, or it will be completely ignored; in the very least, - * this is a formalization for deprecating services. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface MethodOptions { - /** - * Is this method deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the method, or it will be completely ignored; in the very least, - * this is a formalization for deprecating methods. - */ - deprecated: boolean; - idempotencyLevel: MethodOptions_IdempotencyLevel; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -/** - * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - * or neither? HTTP based RPC implementation may choose GET verb for safe - * methods, and PUT verb for idempotent methods instead of the default POST. - */ -export declare enum MethodOptions_IdempotencyLevel { - IDEMPOTENCY_UNKNOWN = 0, - /** NO_SIDE_EFFECTS - implies idempotent */ - NO_SIDE_EFFECTS = 1, - /** IDEMPOTENT - idempotent, but may have side effects */ - IDEMPOTENT = 2 -} -export declare function methodOptions_IdempotencyLevelFromJSON(object: any): MethodOptions_IdempotencyLevel; -export declare function methodOptions_IdempotencyLevelToJSON(object: MethodOptions_IdempotencyLevel): string; -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - */ -export interface UninterpretedOption { - name: UninterpretedOption_NamePart[]; - /** - * The value of the uninterpreted option, in whatever type the tokenizer - * identified it as during parsing. Exactly one of these should be set. - */ - identifierValue: string; - positiveIntValue: string; - negativeIntValue: string; - doubleValue: number; - stringValue: Buffer; - aggregateValue: string; -} -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents - * "foo.(bar.baz).moo". - */ -export interface UninterpretedOption_NamePart { - namePart: string; - isExtension: boolean; -} -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - */ -export interface SourceCodeInfo { - /** - * A Location identifies a piece of source code in a .proto file which - * corresponds to a particular definition. This information is intended - * to be useful to IDEs, code indexers, documentation generators, and similar - * tools. - * - * For example, say we have a file like: - * message Foo { - * optional string foo = 1; - * } - * Let's look at just the field definition: - * optional string foo = 1; - * ^ ^^ ^^ ^ ^^^ - * a bc de f ghi - * We have the following locations: - * span path represents - * [a,i) [ 4, 0, 2, 0 ] The whole field definition. - * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - * - * Notes: - * - A location may refer to a repeated field itself (i.e. not to any - * particular index within it). This is used whenever a set of elements are - * logically enclosed in a single code segment. For example, an entire - * extend block (possibly containing multiple extension definitions) will - * have an outer location whose path refers to the "extensions" repeated - * field without an index. - * - Multiple locations may have the same path. This happens when a single - * logical declaration is spread out across multiple places. The most - * obvious example is the "extend" block again -- there may be multiple - * extend blocks in the same scope, each of which will have the same path. - * - A location's span is not always a subset of its parent's span. For - * example, the "extendee" of an extension declaration appears at the - * beginning of the "extend" block and is shared by all extensions within - * the block. - * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendant. For example, a "group" defines - * both a type and a field in a single declaration. Thus, the locations - * corresponding to the type and field and their components will overlap. - * - Code which tries to interpret locations should probably be designed to - * ignore those that it doesn't understand, as more types of locations could - * be recorded in the future. - */ - location: SourceCodeInfo_Location[]; -} -export interface SourceCodeInfo_Location { - /** - * Identifies which part of the FileDescriptorProto was defined at this - * location. - * - * Each element is a field number or an index. They form a path from - * the root FileDescriptorProto to the place where the definition occurs. - * For example, this path: - * [ 4, 3, 2, 7, 1 ] - * refers to: - * file.message_type(3) // 4, 3 - * .field(7) // 2, 7 - * .name() // 1 - * This is because FileDescriptorProto.message_type has field number 4: - * repeated DescriptorProto message_type = 4; - * and DescriptorProto.field has field number 2: - * repeated FieldDescriptorProto field = 2; - * and FieldDescriptorProto.name has field number 1: - * optional string name = 1; - * - * Thus, the above path gives the location of a field name. If we removed - * the last element: - * [ 4, 3, 2, 7 ] - * this path refers to the whole field declaration (from the beginning - * of the label to the terminating semicolon). - */ - path: number[]; - /** - * Always has exactly three or four elements: start line, start column, - * end line (optional, otherwise assumed same as start line), end column. - * These are packed into a single field for efficiency. Note that line - * and column numbers are zero-based -- typically you will want to add - * 1 to each before displaying to a user. - */ - span: number[]; - /** - * If this SourceCodeInfo represents a complete declaration, these are any - * comments appearing before and after the declaration which appear to be - * attached to the declaration. - * - * A series of line comments appearing on consecutive lines, with no other - * tokens appearing on those lines, will be treated as a single comment. - * - * leading_detached_comments will keep paragraphs of comments that appear - * before (but not connected to) the current element. Each paragraph, - * separated by empty lines, will be one comment element in the repeated - * field. - * - * Only the comment content is provided; comment markers (e.g. //) are - * stripped out. For block comments, leading whitespace and an asterisk - * will be stripped from the beginning of each line other than the first. - * Newlines are included in the output. - * - * Examples: - * - * optional int32 foo = 1; // Comment attached to foo. - * // Comment attached to bar. - * optional int32 bar = 2; - * - * optional string baz = 3; - * // Comment attached to baz. - * // Another line attached to baz. - * - * // Comment attached to moo. - * // - * // Another line attached to moo. - * optional double moo = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to moo or corge because there are blank lines separating it from - * // both. - * - * // Detached comment for corge paragraph 2. - * - * optional string corge = 5; - * /* Block comment attached - * * to corge. Leading asterisks - * * will be removed. * / - * /* Block comment attached to - * * grault. * / - * optional int32 grault = 6; - * - * // ignored detached comments. - */ - leadingComments: string; - trailingComments: string; - leadingDetachedComments: string[]; -} -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - */ -export interface GeneratedCodeInfo { - /** - * An Annotation connects some span of text in generated code to an element - * of its generating .proto file. - */ - annotation: GeneratedCodeInfo_Annotation[]; -} -export interface GeneratedCodeInfo_Annotation { - /** - * Identifies the element in the original source .proto file. This field - * is formatted the same as SourceCodeInfo.Location.path. - */ - path: number[]; - /** Identifies the filesystem path to the original source .proto. */ - sourceFile: string; - /** - * Identifies the starting offset in bytes in the generated code - * that relates to the identified object. - */ - begin: number; - /** - * Identifies the ending offset in bytes in the generated code that - * relates to the identified offset. The end offset should be one past - * the last relevant byte (so the length of the text = end - begin). - */ - end: number; -} -export declare const FileDescriptorSet: { - fromJSON(object: any): FileDescriptorSet; - toJSON(message: FileDescriptorSet): unknown; -}; -export declare const FileDescriptorProto: { - fromJSON(object: any): FileDescriptorProto; - toJSON(message: FileDescriptorProto): unknown; -}; -export declare const DescriptorProto: { - fromJSON(object: any): DescriptorProto; - toJSON(message: DescriptorProto): unknown; -}; -export declare const DescriptorProto_ExtensionRange: { - fromJSON(object: any): DescriptorProto_ExtensionRange; - toJSON(message: DescriptorProto_ExtensionRange): unknown; -}; -export declare const DescriptorProto_ReservedRange: { - fromJSON(object: any): DescriptorProto_ReservedRange; - toJSON(message: DescriptorProto_ReservedRange): unknown; -}; -export declare const ExtensionRangeOptions: { - fromJSON(object: any): ExtensionRangeOptions; - toJSON(message: ExtensionRangeOptions): unknown; -}; -export declare const FieldDescriptorProto: { - fromJSON(object: any): FieldDescriptorProto; - toJSON(message: FieldDescriptorProto): unknown; -}; -export declare const OneofDescriptorProto: { - fromJSON(object: any): OneofDescriptorProto; - toJSON(message: OneofDescriptorProto): unknown; -}; -export declare const EnumDescriptorProto: { - fromJSON(object: any): EnumDescriptorProto; - toJSON(message: EnumDescriptorProto): unknown; -}; -export declare const EnumDescriptorProto_EnumReservedRange: { - fromJSON(object: any): EnumDescriptorProto_EnumReservedRange; - toJSON(message: EnumDescriptorProto_EnumReservedRange): unknown; -}; -export declare const EnumValueDescriptorProto: { - fromJSON(object: any): EnumValueDescriptorProto; - toJSON(message: EnumValueDescriptorProto): unknown; -}; -export declare const ServiceDescriptorProto: { - fromJSON(object: any): ServiceDescriptorProto; - toJSON(message: ServiceDescriptorProto): unknown; -}; -export declare const MethodDescriptorProto: { - fromJSON(object: any): MethodDescriptorProto; - toJSON(message: MethodDescriptorProto): unknown; -}; -export declare const FileOptions: { - fromJSON(object: any): FileOptions; - toJSON(message: FileOptions): unknown; -}; -export declare const MessageOptions: { - fromJSON(object: any): MessageOptions; - toJSON(message: MessageOptions): unknown; -}; -export declare const FieldOptions: { - fromJSON(object: any): FieldOptions; - toJSON(message: FieldOptions): unknown; -}; -export declare const OneofOptions: { - fromJSON(object: any): OneofOptions; - toJSON(message: OneofOptions): unknown; -}; -export declare const EnumOptions: { - fromJSON(object: any): EnumOptions; - toJSON(message: EnumOptions): unknown; -}; -export declare const EnumValueOptions: { - fromJSON(object: any): EnumValueOptions; - toJSON(message: EnumValueOptions): unknown; -}; -export declare const ServiceOptions: { - fromJSON(object: any): ServiceOptions; - toJSON(message: ServiceOptions): unknown; -}; -export declare const MethodOptions: { - fromJSON(object: any): MethodOptions; - toJSON(message: MethodOptions): unknown; -}; -export declare const UninterpretedOption: { - fromJSON(object: any): UninterpretedOption; - toJSON(message: UninterpretedOption): unknown; -}; -export declare const UninterpretedOption_NamePart: { - fromJSON(object: any): UninterpretedOption_NamePart; - toJSON(message: UninterpretedOption_NamePart): unknown; -}; -export declare const SourceCodeInfo: { - fromJSON(object: any): SourceCodeInfo; - toJSON(message: SourceCodeInfo): unknown; -}; -export declare const SourceCodeInfo_Location: { - fromJSON(object: any): SourceCodeInfo_Location; - toJSON(message: SourceCodeInfo_Location): unknown; -}; -export declare const GeneratedCodeInfo: { - fromJSON(object: any): GeneratedCodeInfo; - toJSON(message: GeneratedCodeInfo): unknown; -}; -export declare const GeneratedCodeInfo_Annotation: { - fromJSON(object: any): GeneratedCodeInfo_Annotation; - toJSON(message: GeneratedCodeInfo_Annotation): unknown; -}; diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/descriptor.js b/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/descriptor.js deleted file mode 100644 index d429aac8..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/descriptor.js +++ /dev/null @@ -1,1308 +0,0 @@ -"use strict"; -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.MethodOptions = exports.ServiceOptions = exports.EnumValueOptions = exports.EnumOptions = exports.OneofOptions = exports.FieldOptions = exports.MessageOptions = exports.FileOptions = exports.MethodDescriptorProto = exports.ServiceDescriptorProto = exports.EnumValueDescriptorProto = exports.EnumDescriptorProto_EnumReservedRange = exports.EnumDescriptorProto = exports.OneofDescriptorProto = exports.FieldDescriptorProto = exports.ExtensionRangeOptions = exports.DescriptorProto_ReservedRange = exports.DescriptorProto_ExtensionRange = exports.DescriptorProto = exports.FileDescriptorProto = exports.FileDescriptorSet = exports.methodOptions_IdempotencyLevelToJSON = exports.methodOptions_IdempotencyLevelFromJSON = exports.MethodOptions_IdempotencyLevel = exports.fieldOptions_JSTypeToJSON = exports.fieldOptions_JSTypeFromJSON = exports.FieldOptions_JSType = exports.fieldOptions_CTypeToJSON = exports.fieldOptions_CTypeFromJSON = exports.FieldOptions_CType = exports.fileOptions_OptimizeModeToJSON = exports.fileOptions_OptimizeModeFromJSON = exports.FileOptions_OptimizeMode = exports.fieldDescriptorProto_LabelToJSON = exports.fieldDescriptorProto_LabelFromJSON = exports.FieldDescriptorProto_Label = exports.fieldDescriptorProto_TypeToJSON = exports.fieldDescriptorProto_TypeFromJSON = exports.FieldDescriptorProto_Type = void 0; -var FieldDescriptorProto_Type; -(function (FieldDescriptorProto_Type) { - /** - * TYPE_DOUBLE - 0 is reserved for errors. - * Order is weird for historical reasons. - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_DOUBLE"] = 1] = "TYPE_DOUBLE"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FLOAT"] = 2] = "TYPE_FLOAT"; - /** - * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - * negative values are likely. - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT64"] = 3] = "TYPE_INT64"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT64"] = 4] = "TYPE_UINT64"; - /** - * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - * negative values are likely. - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT32"] = 5] = "TYPE_INT32"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED64"] = 6] = "TYPE_FIXED64"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED32"] = 7] = "TYPE_FIXED32"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BOOL"] = 8] = "TYPE_BOOL"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_STRING"] = 9] = "TYPE_STRING"; - /** - * TYPE_GROUP - Tag-delimited aggregate. - * Group type is deprecated and not supported in proto3. However, Proto3 - * implementations should still be able to parse the group wire format and - * treat group fields as unknown fields. - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_GROUP"] = 10] = "TYPE_GROUP"; - /** TYPE_MESSAGE - Length-delimited aggregate. */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_MESSAGE"] = 11] = "TYPE_MESSAGE"; - /** TYPE_BYTES - New in version 2. */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BYTES"] = 12] = "TYPE_BYTES"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT32"] = 13] = "TYPE_UINT32"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_ENUM"] = 14] = "TYPE_ENUM"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED32"] = 15] = "TYPE_SFIXED32"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED64"] = 16] = "TYPE_SFIXED64"; - /** TYPE_SINT32 - Uses ZigZag encoding. */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT32"] = 17] = "TYPE_SINT32"; - /** TYPE_SINT64 - Uses ZigZag encoding. */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT64"] = 18] = "TYPE_SINT64"; -})(FieldDescriptorProto_Type = exports.FieldDescriptorProto_Type || (exports.FieldDescriptorProto_Type = {})); -function fieldDescriptorProto_TypeFromJSON(object) { - switch (object) { - case 1: - case "TYPE_DOUBLE": - return FieldDescriptorProto_Type.TYPE_DOUBLE; - case 2: - case "TYPE_FLOAT": - return FieldDescriptorProto_Type.TYPE_FLOAT; - case 3: - case "TYPE_INT64": - return FieldDescriptorProto_Type.TYPE_INT64; - case 4: - case "TYPE_UINT64": - return FieldDescriptorProto_Type.TYPE_UINT64; - case 5: - case "TYPE_INT32": - return FieldDescriptorProto_Type.TYPE_INT32; - case 6: - case "TYPE_FIXED64": - return FieldDescriptorProto_Type.TYPE_FIXED64; - case 7: - case "TYPE_FIXED32": - return FieldDescriptorProto_Type.TYPE_FIXED32; - case 8: - case "TYPE_BOOL": - return FieldDescriptorProto_Type.TYPE_BOOL; - case 9: - case "TYPE_STRING": - return FieldDescriptorProto_Type.TYPE_STRING; - case 10: - case "TYPE_GROUP": - return FieldDescriptorProto_Type.TYPE_GROUP; - case 11: - case "TYPE_MESSAGE": - return FieldDescriptorProto_Type.TYPE_MESSAGE; - case 12: - case "TYPE_BYTES": - return FieldDescriptorProto_Type.TYPE_BYTES; - case 13: - case "TYPE_UINT32": - return FieldDescriptorProto_Type.TYPE_UINT32; - case 14: - case "TYPE_ENUM": - return FieldDescriptorProto_Type.TYPE_ENUM; - case 15: - case "TYPE_SFIXED32": - return FieldDescriptorProto_Type.TYPE_SFIXED32; - case 16: - case "TYPE_SFIXED64": - return FieldDescriptorProto_Type.TYPE_SFIXED64; - case 17: - case "TYPE_SINT32": - return FieldDescriptorProto_Type.TYPE_SINT32; - case 18: - case "TYPE_SINT64": - return FieldDescriptorProto_Type.TYPE_SINT64; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldDescriptorProto_Type"); - } -} -exports.fieldDescriptorProto_TypeFromJSON = fieldDescriptorProto_TypeFromJSON; -function fieldDescriptorProto_TypeToJSON(object) { - switch (object) { - case FieldDescriptorProto_Type.TYPE_DOUBLE: - return "TYPE_DOUBLE"; - case FieldDescriptorProto_Type.TYPE_FLOAT: - return "TYPE_FLOAT"; - case FieldDescriptorProto_Type.TYPE_INT64: - return "TYPE_INT64"; - case FieldDescriptorProto_Type.TYPE_UINT64: - return "TYPE_UINT64"; - case FieldDescriptorProto_Type.TYPE_INT32: - return "TYPE_INT32"; - case FieldDescriptorProto_Type.TYPE_FIXED64: - return "TYPE_FIXED64"; - case FieldDescriptorProto_Type.TYPE_FIXED32: - return "TYPE_FIXED32"; - case FieldDescriptorProto_Type.TYPE_BOOL: - return "TYPE_BOOL"; - case FieldDescriptorProto_Type.TYPE_STRING: - return "TYPE_STRING"; - case FieldDescriptorProto_Type.TYPE_GROUP: - return "TYPE_GROUP"; - case FieldDescriptorProto_Type.TYPE_MESSAGE: - return "TYPE_MESSAGE"; - case FieldDescriptorProto_Type.TYPE_BYTES: - return "TYPE_BYTES"; - case FieldDescriptorProto_Type.TYPE_UINT32: - return "TYPE_UINT32"; - case FieldDescriptorProto_Type.TYPE_ENUM: - return "TYPE_ENUM"; - case FieldDescriptorProto_Type.TYPE_SFIXED32: - return "TYPE_SFIXED32"; - case FieldDescriptorProto_Type.TYPE_SFIXED64: - return "TYPE_SFIXED64"; - case FieldDescriptorProto_Type.TYPE_SINT32: - return "TYPE_SINT32"; - case FieldDescriptorProto_Type.TYPE_SINT64: - return "TYPE_SINT64"; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldDescriptorProto_Type"); - } -} -exports.fieldDescriptorProto_TypeToJSON = fieldDescriptorProto_TypeToJSON; -var FieldDescriptorProto_Label; -(function (FieldDescriptorProto_Label) { - /** LABEL_OPTIONAL - 0 is reserved for errors */ - FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_OPTIONAL"] = 1] = "LABEL_OPTIONAL"; - FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REQUIRED"] = 2] = "LABEL_REQUIRED"; - FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REPEATED"] = 3] = "LABEL_REPEATED"; -})(FieldDescriptorProto_Label = exports.FieldDescriptorProto_Label || (exports.FieldDescriptorProto_Label = {})); -function fieldDescriptorProto_LabelFromJSON(object) { - switch (object) { - case 1: - case "LABEL_OPTIONAL": - return FieldDescriptorProto_Label.LABEL_OPTIONAL; - case 2: - case "LABEL_REQUIRED": - return FieldDescriptorProto_Label.LABEL_REQUIRED; - case 3: - case "LABEL_REPEATED": - return FieldDescriptorProto_Label.LABEL_REPEATED; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldDescriptorProto_Label"); - } -} -exports.fieldDescriptorProto_LabelFromJSON = fieldDescriptorProto_LabelFromJSON; -function fieldDescriptorProto_LabelToJSON(object) { - switch (object) { - case FieldDescriptorProto_Label.LABEL_OPTIONAL: - return "LABEL_OPTIONAL"; - case FieldDescriptorProto_Label.LABEL_REQUIRED: - return "LABEL_REQUIRED"; - case FieldDescriptorProto_Label.LABEL_REPEATED: - return "LABEL_REPEATED"; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldDescriptorProto_Label"); - } -} -exports.fieldDescriptorProto_LabelToJSON = fieldDescriptorProto_LabelToJSON; -/** Generated classes can be optimized for speed or code size. */ -var FileOptions_OptimizeMode; -(function (FileOptions_OptimizeMode) { - /** SPEED - Generate complete code for parsing, serialization, */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["SPEED"] = 1] = "SPEED"; - /** CODE_SIZE - etc. */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["CODE_SIZE"] = 2] = "CODE_SIZE"; - /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME"; -})(FileOptions_OptimizeMode = exports.FileOptions_OptimizeMode || (exports.FileOptions_OptimizeMode = {})); -function fileOptions_OptimizeModeFromJSON(object) { - switch (object) { - case 1: - case "SPEED": - return FileOptions_OptimizeMode.SPEED; - case 2: - case "CODE_SIZE": - return FileOptions_OptimizeMode.CODE_SIZE; - case 3: - case "LITE_RUNTIME": - return FileOptions_OptimizeMode.LITE_RUNTIME; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FileOptions_OptimizeMode"); - } -} -exports.fileOptions_OptimizeModeFromJSON = fileOptions_OptimizeModeFromJSON; -function fileOptions_OptimizeModeToJSON(object) { - switch (object) { - case FileOptions_OptimizeMode.SPEED: - return "SPEED"; - case FileOptions_OptimizeMode.CODE_SIZE: - return "CODE_SIZE"; - case FileOptions_OptimizeMode.LITE_RUNTIME: - return "LITE_RUNTIME"; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FileOptions_OptimizeMode"); - } -} -exports.fileOptions_OptimizeModeToJSON = fileOptions_OptimizeModeToJSON; -var FieldOptions_CType; -(function (FieldOptions_CType) { - /** STRING - Default mode. */ - FieldOptions_CType[FieldOptions_CType["STRING"] = 0] = "STRING"; - FieldOptions_CType[FieldOptions_CType["CORD"] = 1] = "CORD"; - FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE"; -})(FieldOptions_CType = exports.FieldOptions_CType || (exports.FieldOptions_CType = {})); -function fieldOptions_CTypeFromJSON(object) { - switch (object) { - case 0: - case "STRING": - return FieldOptions_CType.STRING; - case 1: - case "CORD": - return FieldOptions_CType.CORD; - case 2: - case "STRING_PIECE": - return FieldOptions_CType.STRING_PIECE; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldOptions_CType"); - } -} -exports.fieldOptions_CTypeFromJSON = fieldOptions_CTypeFromJSON; -function fieldOptions_CTypeToJSON(object) { - switch (object) { - case FieldOptions_CType.STRING: - return "STRING"; - case FieldOptions_CType.CORD: - return "CORD"; - case FieldOptions_CType.STRING_PIECE: - return "STRING_PIECE"; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldOptions_CType"); - } -} -exports.fieldOptions_CTypeToJSON = fieldOptions_CTypeToJSON; -var FieldOptions_JSType; -(function (FieldOptions_JSType) { - /** JS_NORMAL - Use the default type. */ - FieldOptions_JSType[FieldOptions_JSType["JS_NORMAL"] = 0] = "JS_NORMAL"; - /** JS_STRING - Use JavaScript strings. */ - FieldOptions_JSType[FieldOptions_JSType["JS_STRING"] = 1] = "JS_STRING"; - /** JS_NUMBER - Use JavaScript numbers. */ - FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER"; -})(FieldOptions_JSType = exports.FieldOptions_JSType || (exports.FieldOptions_JSType = {})); -function fieldOptions_JSTypeFromJSON(object) { - switch (object) { - case 0: - case "JS_NORMAL": - return FieldOptions_JSType.JS_NORMAL; - case 1: - case "JS_STRING": - return FieldOptions_JSType.JS_STRING; - case 2: - case "JS_NUMBER": - return FieldOptions_JSType.JS_NUMBER; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldOptions_JSType"); - } -} -exports.fieldOptions_JSTypeFromJSON = fieldOptions_JSTypeFromJSON; -function fieldOptions_JSTypeToJSON(object) { - switch (object) { - case FieldOptions_JSType.JS_NORMAL: - return "JS_NORMAL"; - case FieldOptions_JSType.JS_STRING: - return "JS_STRING"; - case FieldOptions_JSType.JS_NUMBER: - return "JS_NUMBER"; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldOptions_JSType"); - } -} -exports.fieldOptions_JSTypeToJSON = fieldOptions_JSTypeToJSON; -/** - * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - * or neither? HTTP based RPC implementation may choose GET verb for safe - * methods, and PUT verb for idempotent methods instead of the default POST. - */ -var MethodOptions_IdempotencyLevel; -(function (MethodOptions_IdempotencyLevel) { - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = 0] = "IDEMPOTENCY_UNKNOWN"; - /** NO_SIDE_EFFECTS - implies idempotent */ - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["NO_SIDE_EFFECTS"] = 1] = "NO_SIDE_EFFECTS"; - /** IDEMPOTENT - idempotent, but may have side effects */ - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT"; -})(MethodOptions_IdempotencyLevel = exports.MethodOptions_IdempotencyLevel || (exports.MethodOptions_IdempotencyLevel = {})); -function methodOptions_IdempotencyLevelFromJSON(object) { - switch (object) { - case 0: - case "IDEMPOTENCY_UNKNOWN": - return MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN; - case 1: - case "NO_SIDE_EFFECTS": - return MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS; - case 2: - case "IDEMPOTENT": - return MethodOptions_IdempotencyLevel.IDEMPOTENT; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum MethodOptions_IdempotencyLevel"); - } -} -exports.methodOptions_IdempotencyLevelFromJSON = methodOptions_IdempotencyLevelFromJSON; -function methodOptions_IdempotencyLevelToJSON(object) { - switch (object) { - case MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN: - return "IDEMPOTENCY_UNKNOWN"; - case MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS: - return "NO_SIDE_EFFECTS"; - case MethodOptions_IdempotencyLevel.IDEMPOTENT: - return "IDEMPOTENT"; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum MethodOptions_IdempotencyLevel"); - } -} -exports.methodOptions_IdempotencyLevelToJSON = methodOptions_IdempotencyLevelToJSON; -function createBaseFileDescriptorSet() { - return { file: [] }; -} -exports.FileDescriptorSet = { - fromJSON(object) { - return { file: Array.isArray(object?.file) ? object.file.map((e) => exports.FileDescriptorProto.fromJSON(e)) : [] }; - }, - toJSON(message) { - const obj = {}; - if (message.file) { - obj.file = message.file.map((e) => e ? exports.FileDescriptorProto.toJSON(e) : undefined); - } - else { - obj.file = []; - } - return obj; - }, -}; -function createBaseFileDescriptorProto() { - return { - name: "", - package: "", - dependency: [], - publicDependency: [], - weakDependency: [], - messageType: [], - enumType: [], - service: [], - extension: [], - options: undefined, - sourceCodeInfo: undefined, - syntax: "", - }; -} -exports.FileDescriptorProto = { - fromJSON(object) { - return { - name: isSet(object.name) ? String(object.name) : "", - package: isSet(object.package) ? String(object.package) : "", - dependency: Array.isArray(object?.dependency) ? object.dependency.map((e) => String(e)) : [], - publicDependency: Array.isArray(object?.publicDependency) - ? object.publicDependency.map((e) => Number(e)) - : [], - weakDependency: Array.isArray(object?.weakDependency) ? object.weakDependency.map((e) => Number(e)) : [], - messageType: Array.isArray(object?.messageType) - ? object.messageType.map((e) => exports.DescriptorProto.fromJSON(e)) - : [], - enumType: Array.isArray(object?.enumType) ? object.enumType.map((e) => exports.EnumDescriptorProto.fromJSON(e)) : [], - service: Array.isArray(object?.service) ? object.service.map((e) => exports.ServiceDescriptorProto.fromJSON(e)) : [], - extension: Array.isArray(object?.extension) - ? object.extension.map((e) => exports.FieldDescriptorProto.fromJSON(e)) - : [], - options: isSet(object.options) ? exports.FileOptions.fromJSON(object.options) : undefined, - sourceCodeInfo: isSet(object.sourceCodeInfo) ? exports.SourceCodeInfo.fromJSON(object.sourceCodeInfo) : undefined, - syntax: isSet(object.syntax) ? String(object.syntax) : "", - }; - }, - toJSON(message) { - const obj = {}; - message.name !== undefined && (obj.name = message.name); - message.package !== undefined && (obj.package = message.package); - if (message.dependency) { - obj.dependency = message.dependency.map((e) => e); - } - else { - obj.dependency = []; - } - if (message.publicDependency) { - obj.publicDependency = message.publicDependency.map((e) => Math.round(e)); - } - else { - obj.publicDependency = []; - } - if (message.weakDependency) { - obj.weakDependency = message.weakDependency.map((e) => Math.round(e)); - } - else { - obj.weakDependency = []; - } - if (message.messageType) { - obj.messageType = message.messageType.map((e) => e ? exports.DescriptorProto.toJSON(e) : undefined); - } - else { - obj.messageType = []; - } - if (message.enumType) { - obj.enumType = message.enumType.map((e) => e ? exports.EnumDescriptorProto.toJSON(e) : undefined); - } - else { - obj.enumType = []; - } - if (message.service) { - obj.service = message.service.map((e) => e ? exports.ServiceDescriptorProto.toJSON(e) : undefined); - } - else { - obj.service = []; - } - if (message.extension) { - obj.extension = message.extension.map((e) => e ? exports.FieldDescriptorProto.toJSON(e) : undefined); - } - else { - obj.extension = []; - } - message.options !== undefined && (obj.options = message.options ? exports.FileOptions.toJSON(message.options) : undefined); - message.sourceCodeInfo !== undefined && - (obj.sourceCodeInfo = message.sourceCodeInfo ? exports.SourceCodeInfo.toJSON(message.sourceCodeInfo) : undefined); - message.syntax !== undefined && (obj.syntax = message.syntax); - return obj; - }, -}; -function createBaseDescriptorProto() { - return { - name: "", - field: [], - extension: [], - nestedType: [], - enumType: [], - extensionRange: [], - oneofDecl: [], - options: undefined, - reservedRange: [], - reservedName: [], - }; -} -exports.DescriptorProto = { - fromJSON(object) { - return { - name: isSet(object.name) ? String(object.name) : "", - field: Array.isArray(object?.field) ? object.field.map((e) => exports.FieldDescriptorProto.fromJSON(e)) : [], - extension: Array.isArray(object?.extension) - ? object.extension.map((e) => exports.FieldDescriptorProto.fromJSON(e)) - : [], - nestedType: Array.isArray(object?.nestedType) - ? object.nestedType.map((e) => exports.DescriptorProto.fromJSON(e)) - : [], - enumType: Array.isArray(object?.enumType) ? object.enumType.map((e) => exports.EnumDescriptorProto.fromJSON(e)) : [], - extensionRange: Array.isArray(object?.extensionRange) - ? object.extensionRange.map((e) => exports.DescriptorProto_ExtensionRange.fromJSON(e)) - : [], - oneofDecl: Array.isArray(object?.oneofDecl) - ? object.oneofDecl.map((e) => exports.OneofDescriptorProto.fromJSON(e)) - : [], - options: isSet(object.options) ? exports.MessageOptions.fromJSON(object.options) : undefined, - reservedRange: Array.isArray(object?.reservedRange) - ? object.reservedRange.map((e) => exports.DescriptorProto_ReservedRange.fromJSON(e)) - : [], - reservedName: Array.isArray(object?.reservedName) ? object.reservedName.map((e) => String(e)) : [], - }; - }, - toJSON(message) { - const obj = {}; - message.name !== undefined && (obj.name = message.name); - if (message.field) { - obj.field = message.field.map((e) => e ? exports.FieldDescriptorProto.toJSON(e) : undefined); - } - else { - obj.field = []; - } - if (message.extension) { - obj.extension = message.extension.map((e) => e ? exports.FieldDescriptorProto.toJSON(e) : undefined); - } - else { - obj.extension = []; - } - if (message.nestedType) { - obj.nestedType = message.nestedType.map((e) => e ? exports.DescriptorProto.toJSON(e) : undefined); - } - else { - obj.nestedType = []; - } - if (message.enumType) { - obj.enumType = message.enumType.map((e) => e ? exports.EnumDescriptorProto.toJSON(e) : undefined); - } - else { - obj.enumType = []; - } - if (message.extensionRange) { - obj.extensionRange = message.extensionRange.map((e) => e ? exports.DescriptorProto_ExtensionRange.toJSON(e) : undefined); - } - else { - obj.extensionRange = []; - } - if (message.oneofDecl) { - obj.oneofDecl = message.oneofDecl.map((e) => e ? exports.OneofDescriptorProto.toJSON(e) : undefined); - } - else { - obj.oneofDecl = []; - } - message.options !== undefined && - (obj.options = message.options ? exports.MessageOptions.toJSON(message.options) : undefined); - if (message.reservedRange) { - obj.reservedRange = message.reservedRange.map((e) => e ? exports.DescriptorProto_ReservedRange.toJSON(e) : undefined); - } - else { - obj.reservedRange = []; - } - if (message.reservedName) { - obj.reservedName = message.reservedName.map((e) => e); - } - else { - obj.reservedName = []; - } - return obj; - }, -}; -function createBaseDescriptorProto_ExtensionRange() { - return { start: 0, end: 0, options: undefined }; -} -exports.DescriptorProto_ExtensionRange = { - fromJSON(object) { - return { - start: isSet(object.start) ? Number(object.start) : 0, - end: isSet(object.end) ? Number(object.end) : 0, - options: isSet(object.options) ? exports.ExtensionRangeOptions.fromJSON(object.options) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.start !== undefined && (obj.start = Math.round(message.start)); - message.end !== undefined && (obj.end = Math.round(message.end)); - message.options !== undefined && - (obj.options = message.options ? exports.ExtensionRangeOptions.toJSON(message.options) : undefined); - return obj; - }, -}; -function createBaseDescriptorProto_ReservedRange() { - return { start: 0, end: 0 }; -} -exports.DescriptorProto_ReservedRange = { - fromJSON(object) { - return { start: isSet(object.start) ? Number(object.start) : 0, end: isSet(object.end) ? Number(object.end) : 0 }; - }, - toJSON(message) { - const obj = {}; - message.start !== undefined && (obj.start = Math.round(message.start)); - message.end !== undefined && (obj.end = Math.round(message.end)); - return obj; - }, -}; -function createBaseExtensionRangeOptions() { - return { uninterpretedOption: [] }; -} -exports.ExtensionRangeOptions = { - fromJSON(object) { - return { - uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e) => exports.UninterpretedOption.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined); - } - else { - obj.uninterpretedOption = []; - } - return obj; - }, -}; -function createBaseFieldDescriptorProto() { - return { - name: "", - number: 0, - label: 1, - type: 1, - typeName: "", - extendee: "", - defaultValue: "", - oneofIndex: 0, - jsonName: "", - options: undefined, - proto3Optional: false, - }; -} -exports.FieldDescriptorProto = { - fromJSON(object) { - return { - name: isSet(object.name) ? String(object.name) : "", - number: isSet(object.number) ? Number(object.number) : 0, - label: isSet(object.label) ? fieldDescriptorProto_LabelFromJSON(object.label) : 1, - type: isSet(object.type) ? fieldDescriptorProto_TypeFromJSON(object.type) : 1, - typeName: isSet(object.typeName) ? String(object.typeName) : "", - extendee: isSet(object.extendee) ? String(object.extendee) : "", - defaultValue: isSet(object.defaultValue) ? String(object.defaultValue) : "", - oneofIndex: isSet(object.oneofIndex) ? Number(object.oneofIndex) : 0, - jsonName: isSet(object.jsonName) ? String(object.jsonName) : "", - options: isSet(object.options) ? exports.FieldOptions.fromJSON(object.options) : undefined, - proto3Optional: isSet(object.proto3Optional) ? Boolean(object.proto3Optional) : false, - }; - }, - toJSON(message) { - const obj = {}; - message.name !== undefined && (obj.name = message.name); - message.number !== undefined && (obj.number = Math.round(message.number)); - message.label !== undefined && (obj.label = fieldDescriptorProto_LabelToJSON(message.label)); - message.type !== undefined && (obj.type = fieldDescriptorProto_TypeToJSON(message.type)); - message.typeName !== undefined && (obj.typeName = message.typeName); - message.extendee !== undefined && (obj.extendee = message.extendee); - message.defaultValue !== undefined && (obj.defaultValue = message.defaultValue); - message.oneofIndex !== undefined && (obj.oneofIndex = Math.round(message.oneofIndex)); - message.jsonName !== undefined && (obj.jsonName = message.jsonName); - message.options !== undefined && (obj.options = message.options ? exports.FieldOptions.toJSON(message.options) : undefined); - message.proto3Optional !== undefined && (obj.proto3Optional = message.proto3Optional); - return obj; - }, -}; -function createBaseOneofDescriptorProto() { - return { name: "", options: undefined }; -} -exports.OneofDescriptorProto = { - fromJSON(object) { - return { - name: isSet(object.name) ? String(object.name) : "", - options: isSet(object.options) ? exports.OneofOptions.fromJSON(object.options) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.name !== undefined && (obj.name = message.name); - message.options !== undefined && (obj.options = message.options ? exports.OneofOptions.toJSON(message.options) : undefined); - return obj; - }, -}; -function createBaseEnumDescriptorProto() { - return { name: "", value: [], options: undefined, reservedRange: [], reservedName: [] }; -} -exports.EnumDescriptorProto = { - fromJSON(object) { - return { - name: isSet(object.name) ? String(object.name) : "", - value: Array.isArray(object?.value) ? object.value.map((e) => exports.EnumValueDescriptorProto.fromJSON(e)) : [], - options: isSet(object.options) ? exports.EnumOptions.fromJSON(object.options) : undefined, - reservedRange: Array.isArray(object?.reservedRange) - ? object.reservedRange.map((e) => exports.EnumDescriptorProto_EnumReservedRange.fromJSON(e)) - : [], - reservedName: Array.isArray(object?.reservedName) - ? object.reservedName.map((e) => String(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - message.name !== undefined && (obj.name = message.name); - if (message.value) { - obj.value = message.value.map((e) => e ? exports.EnumValueDescriptorProto.toJSON(e) : undefined); - } - else { - obj.value = []; - } - message.options !== undefined && (obj.options = message.options ? exports.EnumOptions.toJSON(message.options) : undefined); - if (message.reservedRange) { - obj.reservedRange = message.reservedRange.map((e) => e ? exports.EnumDescriptorProto_EnumReservedRange.toJSON(e) : undefined); - } - else { - obj.reservedRange = []; - } - if (message.reservedName) { - obj.reservedName = message.reservedName.map((e) => e); - } - else { - obj.reservedName = []; - } - return obj; - }, -}; -function createBaseEnumDescriptorProto_EnumReservedRange() { - return { start: 0, end: 0 }; -} -exports.EnumDescriptorProto_EnumReservedRange = { - fromJSON(object) { - return { start: isSet(object.start) ? Number(object.start) : 0, end: isSet(object.end) ? Number(object.end) : 0 }; - }, - toJSON(message) { - const obj = {}; - message.start !== undefined && (obj.start = Math.round(message.start)); - message.end !== undefined && (obj.end = Math.round(message.end)); - return obj; - }, -}; -function createBaseEnumValueDescriptorProto() { - return { name: "", number: 0, options: undefined }; -} -exports.EnumValueDescriptorProto = { - fromJSON(object) { - return { - name: isSet(object.name) ? String(object.name) : "", - number: isSet(object.number) ? Number(object.number) : 0, - options: isSet(object.options) ? exports.EnumValueOptions.fromJSON(object.options) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.name !== undefined && (obj.name = message.name); - message.number !== undefined && (obj.number = Math.round(message.number)); - message.options !== undefined && - (obj.options = message.options ? exports.EnumValueOptions.toJSON(message.options) : undefined); - return obj; - }, -}; -function createBaseServiceDescriptorProto() { - return { name: "", method: [], options: undefined }; -} -exports.ServiceDescriptorProto = { - fromJSON(object) { - return { - name: isSet(object.name) ? String(object.name) : "", - method: Array.isArray(object?.method) ? object.method.map((e) => exports.MethodDescriptorProto.fromJSON(e)) : [], - options: isSet(object.options) ? exports.ServiceOptions.fromJSON(object.options) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.name !== undefined && (obj.name = message.name); - if (message.method) { - obj.method = message.method.map((e) => e ? exports.MethodDescriptorProto.toJSON(e) : undefined); - } - else { - obj.method = []; - } - message.options !== undefined && - (obj.options = message.options ? exports.ServiceOptions.toJSON(message.options) : undefined); - return obj; - }, -}; -function createBaseMethodDescriptorProto() { - return { - name: "", - inputType: "", - outputType: "", - options: undefined, - clientStreaming: false, - serverStreaming: false, - }; -} -exports.MethodDescriptorProto = { - fromJSON(object) { - return { - name: isSet(object.name) ? String(object.name) : "", - inputType: isSet(object.inputType) ? String(object.inputType) : "", - outputType: isSet(object.outputType) ? String(object.outputType) : "", - options: isSet(object.options) ? exports.MethodOptions.fromJSON(object.options) : undefined, - clientStreaming: isSet(object.clientStreaming) ? Boolean(object.clientStreaming) : false, - serverStreaming: isSet(object.serverStreaming) ? Boolean(object.serverStreaming) : false, - }; - }, - toJSON(message) { - const obj = {}; - message.name !== undefined && (obj.name = message.name); - message.inputType !== undefined && (obj.inputType = message.inputType); - message.outputType !== undefined && (obj.outputType = message.outputType); - message.options !== undefined && - (obj.options = message.options ? exports.MethodOptions.toJSON(message.options) : undefined); - message.clientStreaming !== undefined && (obj.clientStreaming = message.clientStreaming); - message.serverStreaming !== undefined && (obj.serverStreaming = message.serverStreaming); - return obj; - }, -}; -function createBaseFileOptions() { - return { - javaPackage: "", - javaOuterClassname: "", - javaMultipleFiles: false, - javaGenerateEqualsAndHash: false, - javaStringCheckUtf8: false, - optimizeFor: 1, - goPackage: "", - ccGenericServices: false, - javaGenericServices: false, - pyGenericServices: false, - phpGenericServices: false, - deprecated: false, - ccEnableArenas: false, - objcClassPrefix: "", - csharpNamespace: "", - swiftPrefix: "", - phpClassPrefix: "", - phpNamespace: "", - phpMetadataNamespace: "", - rubyPackage: "", - uninterpretedOption: [], - }; -} -exports.FileOptions = { - fromJSON(object) { - return { - javaPackage: isSet(object.javaPackage) ? String(object.javaPackage) : "", - javaOuterClassname: isSet(object.javaOuterClassname) ? String(object.javaOuterClassname) : "", - javaMultipleFiles: isSet(object.javaMultipleFiles) ? Boolean(object.javaMultipleFiles) : false, - javaGenerateEqualsAndHash: isSet(object.javaGenerateEqualsAndHash) - ? Boolean(object.javaGenerateEqualsAndHash) - : false, - javaStringCheckUtf8: isSet(object.javaStringCheckUtf8) ? Boolean(object.javaStringCheckUtf8) : false, - optimizeFor: isSet(object.optimizeFor) ? fileOptions_OptimizeModeFromJSON(object.optimizeFor) : 1, - goPackage: isSet(object.goPackage) ? String(object.goPackage) : "", - ccGenericServices: isSet(object.ccGenericServices) ? Boolean(object.ccGenericServices) : false, - javaGenericServices: isSet(object.javaGenericServices) ? Boolean(object.javaGenericServices) : false, - pyGenericServices: isSet(object.pyGenericServices) ? Boolean(object.pyGenericServices) : false, - phpGenericServices: isSet(object.phpGenericServices) ? Boolean(object.phpGenericServices) : false, - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - ccEnableArenas: isSet(object.ccEnableArenas) ? Boolean(object.ccEnableArenas) : false, - objcClassPrefix: isSet(object.objcClassPrefix) ? String(object.objcClassPrefix) : "", - csharpNamespace: isSet(object.csharpNamespace) ? String(object.csharpNamespace) : "", - swiftPrefix: isSet(object.swiftPrefix) ? String(object.swiftPrefix) : "", - phpClassPrefix: isSet(object.phpClassPrefix) ? String(object.phpClassPrefix) : "", - phpNamespace: isSet(object.phpNamespace) ? String(object.phpNamespace) : "", - phpMetadataNamespace: isSet(object.phpMetadataNamespace) ? String(object.phpMetadataNamespace) : "", - rubyPackage: isSet(object.rubyPackage) ? String(object.rubyPackage) : "", - uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e) => exports.UninterpretedOption.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - message.javaPackage !== undefined && (obj.javaPackage = message.javaPackage); - message.javaOuterClassname !== undefined && (obj.javaOuterClassname = message.javaOuterClassname); - message.javaMultipleFiles !== undefined && (obj.javaMultipleFiles = message.javaMultipleFiles); - message.javaGenerateEqualsAndHash !== undefined && - (obj.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash); - message.javaStringCheckUtf8 !== undefined && (obj.javaStringCheckUtf8 = message.javaStringCheckUtf8); - message.optimizeFor !== undefined && (obj.optimizeFor = fileOptions_OptimizeModeToJSON(message.optimizeFor)); - message.goPackage !== undefined && (obj.goPackage = message.goPackage); - message.ccGenericServices !== undefined && (obj.ccGenericServices = message.ccGenericServices); - message.javaGenericServices !== undefined && (obj.javaGenericServices = message.javaGenericServices); - message.pyGenericServices !== undefined && (obj.pyGenericServices = message.pyGenericServices); - message.phpGenericServices !== undefined && (obj.phpGenericServices = message.phpGenericServices); - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - message.ccEnableArenas !== undefined && (obj.ccEnableArenas = message.ccEnableArenas); - message.objcClassPrefix !== undefined && (obj.objcClassPrefix = message.objcClassPrefix); - message.csharpNamespace !== undefined && (obj.csharpNamespace = message.csharpNamespace); - message.swiftPrefix !== undefined && (obj.swiftPrefix = message.swiftPrefix); - message.phpClassPrefix !== undefined && (obj.phpClassPrefix = message.phpClassPrefix); - message.phpNamespace !== undefined && (obj.phpNamespace = message.phpNamespace); - message.phpMetadataNamespace !== undefined && (obj.phpMetadataNamespace = message.phpMetadataNamespace); - message.rubyPackage !== undefined && (obj.rubyPackage = message.rubyPackage); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined); - } - else { - obj.uninterpretedOption = []; - } - return obj; - }, -}; -function createBaseMessageOptions() { - return { - messageSetWireFormat: false, - noStandardDescriptorAccessor: false, - deprecated: false, - mapEntry: false, - uninterpretedOption: [], - }; -} -exports.MessageOptions = { - fromJSON(object) { - return { - messageSetWireFormat: isSet(object.messageSetWireFormat) ? Boolean(object.messageSetWireFormat) : false, - noStandardDescriptorAccessor: isSet(object.noStandardDescriptorAccessor) - ? Boolean(object.noStandardDescriptorAccessor) - : false, - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - mapEntry: isSet(object.mapEntry) ? Boolean(object.mapEntry) : false, - uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e) => exports.UninterpretedOption.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - message.messageSetWireFormat !== undefined && (obj.messageSetWireFormat = message.messageSetWireFormat); - message.noStandardDescriptorAccessor !== undefined && - (obj.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor); - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - message.mapEntry !== undefined && (obj.mapEntry = message.mapEntry); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined); - } - else { - obj.uninterpretedOption = []; - } - return obj; - }, -}; -function createBaseFieldOptions() { - return { - ctype: 0, - packed: false, - jstype: 0, - lazy: false, - unverifiedLazy: false, - deprecated: false, - weak: false, - uninterpretedOption: [], - }; -} -exports.FieldOptions = { - fromJSON(object) { - return { - ctype: isSet(object.ctype) ? fieldOptions_CTypeFromJSON(object.ctype) : 0, - packed: isSet(object.packed) ? Boolean(object.packed) : false, - jstype: isSet(object.jstype) ? fieldOptions_JSTypeFromJSON(object.jstype) : 0, - lazy: isSet(object.lazy) ? Boolean(object.lazy) : false, - unverifiedLazy: isSet(object.unverifiedLazy) ? Boolean(object.unverifiedLazy) : false, - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - weak: isSet(object.weak) ? Boolean(object.weak) : false, - uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e) => exports.UninterpretedOption.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - message.ctype !== undefined && (obj.ctype = fieldOptions_CTypeToJSON(message.ctype)); - message.packed !== undefined && (obj.packed = message.packed); - message.jstype !== undefined && (obj.jstype = fieldOptions_JSTypeToJSON(message.jstype)); - message.lazy !== undefined && (obj.lazy = message.lazy); - message.unverifiedLazy !== undefined && (obj.unverifiedLazy = message.unverifiedLazy); - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - message.weak !== undefined && (obj.weak = message.weak); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined); - } - else { - obj.uninterpretedOption = []; - } - return obj; - }, -}; -function createBaseOneofOptions() { - return { uninterpretedOption: [] }; -} -exports.OneofOptions = { - fromJSON(object) { - return { - uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e) => exports.UninterpretedOption.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined); - } - else { - obj.uninterpretedOption = []; - } - return obj; - }, -}; -function createBaseEnumOptions() { - return { allowAlias: false, deprecated: false, uninterpretedOption: [] }; -} -exports.EnumOptions = { - fromJSON(object) { - return { - allowAlias: isSet(object.allowAlias) ? Boolean(object.allowAlias) : false, - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e) => exports.UninterpretedOption.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - message.allowAlias !== undefined && (obj.allowAlias = message.allowAlias); - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined); - } - else { - obj.uninterpretedOption = []; - } - return obj; - }, -}; -function createBaseEnumValueOptions() { - return { deprecated: false, uninterpretedOption: [] }; -} -exports.EnumValueOptions = { - fromJSON(object) { - return { - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e) => exports.UninterpretedOption.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined); - } - else { - obj.uninterpretedOption = []; - } - return obj; - }, -}; -function createBaseServiceOptions() { - return { deprecated: false, uninterpretedOption: [] }; -} -exports.ServiceOptions = { - fromJSON(object) { - return { - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e) => exports.UninterpretedOption.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined); - } - else { - obj.uninterpretedOption = []; - } - return obj; - }, -}; -function createBaseMethodOptions() { - return { deprecated: false, idempotencyLevel: 0, uninterpretedOption: [] }; -} -exports.MethodOptions = { - fromJSON(object) { - return { - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - idempotencyLevel: isSet(object.idempotencyLevel) - ? methodOptions_IdempotencyLevelFromJSON(object.idempotencyLevel) - : 0, - uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e) => exports.UninterpretedOption.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - message.idempotencyLevel !== undefined && - (obj.idempotencyLevel = methodOptions_IdempotencyLevelToJSON(message.idempotencyLevel)); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined); - } - else { - obj.uninterpretedOption = []; - } - return obj; - }, -}; -function createBaseUninterpretedOption() { - return { - name: [], - identifierValue: "", - positiveIntValue: "0", - negativeIntValue: "0", - doubleValue: 0, - stringValue: Buffer.alloc(0), - aggregateValue: "", - }; -} -exports.UninterpretedOption = { - fromJSON(object) { - return { - name: Array.isArray(object?.name) ? object.name.map((e) => exports.UninterpretedOption_NamePart.fromJSON(e)) : [], - identifierValue: isSet(object.identifierValue) ? String(object.identifierValue) : "", - positiveIntValue: isSet(object.positiveIntValue) ? String(object.positiveIntValue) : "0", - negativeIntValue: isSet(object.negativeIntValue) ? String(object.negativeIntValue) : "0", - doubleValue: isSet(object.doubleValue) ? Number(object.doubleValue) : 0, - stringValue: isSet(object.stringValue) ? Buffer.from(bytesFromBase64(object.stringValue)) : Buffer.alloc(0), - aggregateValue: isSet(object.aggregateValue) ? String(object.aggregateValue) : "", - }; - }, - toJSON(message) { - const obj = {}; - if (message.name) { - obj.name = message.name.map((e) => e ? exports.UninterpretedOption_NamePart.toJSON(e) : undefined); - } - else { - obj.name = []; - } - message.identifierValue !== undefined && (obj.identifierValue = message.identifierValue); - message.positiveIntValue !== undefined && (obj.positiveIntValue = message.positiveIntValue); - message.negativeIntValue !== undefined && (obj.negativeIntValue = message.negativeIntValue); - message.doubleValue !== undefined && (obj.doubleValue = message.doubleValue); - message.stringValue !== undefined && - (obj.stringValue = base64FromBytes(message.stringValue !== undefined ? message.stringValue : Buffer.alloc(0))); - message.aggregateValue !== undefined && (obj.aggregateValue = message.aggregateValue); - return obj; - }, -}; -function createBaseUninterpretedOption_NamePart() { - return { namePart: "", isExtension: false }; -} -exports.UninterpretedOption_NamePart = { - fromJSON(object) { - return { - namePart: isSet(object.namePart) ? String(object.namePart) : "", - isExtension: isSet(object.isExtension) ? Boolean(object.isExtension) : false, - }; - }, - toJSON(message) { - const obj = {}; - message.namePart !== undefined && (obj.namePart = message.namePart); - message.isExtension !== undefined && (obj.isExtension = message.isExtension); - return obj; - }, -}; -function createBaseSourceCodeInfo() { - return { location: [] }; -} -exports.SourceCodeInfo = { - fromJSON(object) { - return { - location: Array.isArray(object?.location) - ? object.location.map((e) => exports.SourceCodeInfo_Location.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - if (message.location) { - obj.location = message.location.map((e) => e ? exports.SourceCodeInfo_Location.toJSON(e) : undefined); - } - else { - obj.location = []; - } - return obj; - }, -}; -function createBaseSourceCodeInfo_Location() { - return { path: [], span: [], leadingComments: "", trailingComments: "", leadingDetachedComments: [] }; -} -exports.SourceCodeInfo_Location = { - fromJSON(object) { - return { - path: Array.isArray(object?.path) ? object.path.map((e) => Number(e)) : [], - span: Array.isArray(object?.span) ? object.span.map((e) => Number(e)) : [], - leadingComments: isSet(object.leadingComments) ? String(object.leadingComments) : "", - trailingComments: isSet(object.trailingComments) ? String(object.trailingComments) : "", - leadingDetachedComments: Array.isArray(object?.leadingDetachedComments) - ? object.leadingDetachedComments.map((e) => String(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - if (message.path) { - obj.path = message.path.map((e) => Math.round(e)); - } - else { - obj.path = []; - } - if (message.span) { - obj.span = message.span.map((e) => Math.round(e)); - } - else { - obj.span = []; - } - message.leadingComments !== undefined && (obj.leadingComments = message.leadingComments); - message.trailingComments !== undefined && (obj.trailingComments = message.trailingComments); - if (message.leadingDetachedComments) { - obj.leadingDetachedComments = message.leadingDetachedComments.map((e) => e); - } - else { - obj.leadingDetachedComments = []; - } - return obj; - }, -}; -function createBaseGeneratedCodeInfo() { - return { annotation: [] }; -} -exports.GeneratedCodeInfo = { - fromJSON(object) { - return { - annotation: Array.isArray(object?.annotation) - ? object.annotation.map((e) => exports.GeneratedCodeInfo_Annotation.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - if (message.annotation) { - obj.annotation = message.annotation.map((e) => e ? exports.GeneratedCodeInfo_Annotation.toJSON(e) : undefined); - } - else { - obj.annotation = []; - } - return obj; - }, -}; -function createBaseGeneratedCodeInfo_Annotation() { - return { path: [], sourceFile: "", begin: 0, end: 0 }; -} -exports.GeneratedCodeInfo_Annotation = { - fromJSON(object) { - return { - path: Array.isArray(object?.path) ? object.path.map((e) => Number(e)) : [], - sourceFile: isSet(object.sourceFile) ? String(object.sourceFile) : "", - begin: isSet(object.begin) ? Number(object.begin) : 0, - end: isSet(object.end) ? Number(object.end) : 0, - }; - }, - toJSON(message) { - const obj = {}; - if (message.path) { - obj.path = message.path.map((e) => Math.round(e)); - } - else { - obj.path = []; - } - message.sourceFile !== undefined && (obj.sourceFile = message.sourceFile); - message.begin !== undefined && (obj.begin = Math.round(message.begin)); - message.end !== undefined && (obj.end = Math.round(message.end)); - return obj; - }, -}; -var tsProtoGlobalThis = (() => { - if (typeof globalThis !== "undefined") { - return globalThis; - } - if (typeof self !== "undefined") { - return self; - } - if (typeof window !== "undefined") { - return window; - } - if (typeof global !== "undefined") { - return global; - } - throw "Unable to locate global object"; -})(); -function bytesFromBase64(b64) { - if (tsProtoGlobalThis.Buffer) { - return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); - } - else { - const bin = tsProtoGlobalThis.atob(b64); - const arr = new Uint8Array(bin.length); - for (let i = 0; i < bin.length; ++i) { - arr[i] = bin.charCodeAt(i); - } - return arr; - } -} -function base64FromBytes(arr) { - if (tsProtoGlobalThis.Buffer) { - return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); - } - else { - const bin = []; - arr.forEach((byte) => { - bin.push(String.fromCharCode(byte)); - }); - return tsProtoGlobalThis.btoa(bin.join("")); - } -} -function isSet(value) { - return value !== null && value !== undefined; -} diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/timestamp.d.ts b/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/timestamp.d.ts deleted file mode 100644 index 1ab812b4..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/timestamp.d.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * Example 5: Compute Timestamp from Java `Instant.now()`. - * - * Instant now = Instant.now(); - * - * Timestamp timestamp = - * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - * .setNanos(now.getNano()).build(); - * - * Example 6: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D - * ) to obtain a formatter capable of generating timestamps in this format. - */ -export interface Timestamp { - /** - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - */ - seconds: string; - /** - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - */ - nanos: number; -} -export declare const Timestamp: { - fromJSON(object: any): Timestamp; - toJSON(message: Timestamp): unknown; -}; diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/timestamp.js b/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/timestamp.js deleted file mode 100644 index 159135fe..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/timestamp.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Timestamp = void 0; -function createBaseTimestamp() { - return { seconds: "0", nanos: 0 }; -} -exports.Timestamp = { - fromJSON(object) { - return { - seconds: isSet(object.seconds) ? String(object.seconds) : "0", - nanos: isSet(object.nanos) ? Number(object.nanos) : 0, - }; - }, - toJSON(message) { - const obj = {}; - message.seconds !== undefined && (obj.seconds = message.seconds); - message.nanos !== undefined && (obj.nanos = Math.round(message.nanos)); - return obj; - }, -}; -function isSet(value) { - return value !== null && value !== undefined; -} diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_bundle.d.ts b/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_bundle.d.ts deleted file mode 100644 index ce623854..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_bundle.d.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { Envelope } from "./envelope"; -import { MessageSignature, PublicKeyIdentifier, RFC3161SignedTimestamp, X509Certificate, X509CertificateChain } from "./sigstore_common"; -import { TransparencyLogEntry } from "./sigstore_rekor"; -/** - * Various timestamped counter signatures over the artifacts signature. - * Currently only RFC3161 signatures are provided. More formats may be added - * in the future. - */ -export interface TimestampVerificationData { - /** - * A list of RFC3161 signed timestamps provided by the user. - * This can be used when the entry has not been stored on a - * transparency log, or in conjunction for a stronger trust model. - * Clients MUST verify the hashed message in the message imprint - * against the signature in the bundle. - */ - rfc3161Timestamps: RFC3161SignedTimestamp[]; -} -/** - * VerificationMaterial captures details on the materials used to verify - * signatures. This message may be embedded in a DSSE envelope as a signature - * extension. Specifically, the `ext` field of the extension will expect this - * message when the signature extension is for Sigstore. This is identified by - * the `kind` field in the extension, which must be set to - * application/vnd.dev.sigstore.verificationmaterial;version=0.1 for Sigstore. - * When used as a DSSE extension, if the `public_key` field is used to indicate - * the key identifier, it MUST match the `keyid` field of the signature the - * extension is attached to. - */ -export interface VerificationMaterial { - content?: { - $case: "publicKey"; - publicKey: PublicKeyIdentifier; - } | { - $case: "x509CertificateChain"; - x509CertificateChain: X509CertificateChain; - } | { - $case: "certificate"; - certificate: X509Certificate; - }; - /** - * An inclusion proof and an optional signed timestamp from the log. - * Client verification libraries MAY provide an option to support v0.1 - * bundles for backwards compatibility, which may contain an inclusion - * promise and not an inclusion proof. In this case, the client MUST - * validate the promise. - * Verifiers SHOULD NOT allow v0.1 bundles if they're used in an - * ecosystem which never produced them. - */ - tlogEntries: TransparencyLogEntry[]; - /** - * Timestamp may also come from - * tlog_entries.inclusion_promise.signed_entry_timestamp. - */ - timestampVerificationData: TimestampVerificationData | undefined; -} -export interface Bundle { - /** - * MUST be application/vnd.dev.sigstore.bundle.v0.3+json when - * when encoded as JSON. - * Clients must to be able to accept media type using the previously - * defined formats: - * * application/vnd.dev.sigstore.bundle+json;version=0.1 - * * application/vnd.dev.sigstore.bundle+json;version=0.2 - * * application/vnd.dev.sigstore.bundle+json;version=0.3 - */ - mediaType: string; - /** - * When a signer is identified by a X.509 certificate, a verifier MUST - * verify that the signature was computed at the time the certificate - * was valid as described in the Sigstore client spec: "Verification - * using a Bundle". - * - * If the verification material contains a public key identifier - * (key hint) and the `content` is a DSSE envelope, the key hints - * MUST be exactly the same in the verification material and in the - * DSSE envelope. - */ - verificationMaterial: VerificationMaterial | undefined; - content?: { - $case: "messageSignature"; - messageSignature: MessageSignature; - } | { - $case: "dsseEnvelope"; - dsseEnvelope: Envelope; - }; -} -export declare const TimestampVerificationData: { - fromJSON(object: any): TimestampVerificationData; - toJSON(message: TimestampVerificationData): unknown; -}; -export declare const VerificationMaterial: { - fromJSON(object: any): VerificationMaterial; - toJSON(message: VerificationMaterial): unknown; -}; -export declare const Bundle: { - fromJSON(object: any): Bundle; - toJSON(message: Bundle): unknown; -}; diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_bundle.js b/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_bundle.js deleted file mode 100644 index 3773867f..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_bundle.js +++ /dev/null @@ -1,112 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Bundle = exports.VerificationMaterial = exports.TimestampVerificationData = void 0; -/* eslint-disable */ -const envelope_1 = require("./envelope"); -const sigstore_common_1 = require("./sigstore_common"); -const sigstore_rekor_1 = require("./sigstore_rekor"); -function createBaseTimestampVerificationData() { - return { rfc3161Timestamps: [] }; -} -exports.TimestampVerificationData = { - fromJSON(object) { - return { - rfc3161Timestamps: Array.isArray(object?.rfc3161Timestamps) - ? object.rfc3161Timestamps.map((e) => sigstore_common_1.RFC3161SignedTimestamp.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - if (message.rfc3161Timestamps) { - obj.rfc3161Timestamps = message.rfc3161Timestamps.map((e) => e ? sigstore_common_1.RFC3161SignedTimestamp.toJSON(e) : undefined); - } - else { - obj.rfc3161Timestamps = []; - } - return obj; - }, -}; -function createBaseVerificationMaterial() { - return { content: undefined, tlogEntries: [], timestampVerificationData: undefined }; -} -exports.VerificationMaterial = { - fromJSON(object) { - return { - content: isSet(object.publicKey) - ? { $case: "publicKey", publicKey: sigstore_common_1.PublicKeyIdentifier.fromJSON(object.publicKey) } - : isSet(object.x509CertificateChain) - ? { - $case: "x509CertificateChain", - x509CertificateChain: sigstore_common_1.X509CertificateChain.fromJSON(object.x509CertificateChain), - } - : isSet(object.certificate) - ? { $case: "certificate", certificate: sigstore_common_1.X509Certificate.fromJSON(object.certificate) } - : undefined, - tlogEntries: Array.isArray(object?.tlogEntries) - ? object.tlogEntries.map((e) => sigstore_rekor_1.TransparencyLogEntry.fromJSON(e)) - : [], - timestampVerificationData: isSet(object.timestampVerificationData) - ? exports.TimestampVerificationData.fromJSON(object.timestampVerificationData) - : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.content?.$case === "publicKey" && - (obj.publicKey = message.content?.publicKey ? sigstore_common_1.PublicKeyIdentifier.toJSON(message.content?.publicKey) : undefined); - message.content?.$case === "x509CertificateChain" && - (obj.x509CertificateChain = message.content?.x509CertificateChain - ? sigstore_common_1.X509CertificateChain.toJSON(message.content?.x509CertificateChain) - : undefined); - message.content?.$case === "certificate" && - (obj.certificate = message.content?.certificate - ? sigstore_common_1.X509Certificate.toJSON(message.content?.certificate) - : undefined); - if (message.tlogEntries) { - obj.tlogEntries = message.tlogEntries.map((e) => e ? sigstore_rekor_1.TransparencyLogEntry.toJSON(e) : undefined); - } - else { - obj.tlogEntries = []; - } - message.timestampVerificationData !== undefined && - (obj.timestampVerificationData = message.timestampVerificationData - ? exports.TimestampVerificationData.toJSON(message.timestampVerificationData) - : undefined); - return obj; - }, -}; -function createBaseBundle() { - return { mediaType: "", verificationMaterial: undefined, content: undefined }; -} -exports.Bundle = { - fromJSON(object) { - return { - mediaType: isSet(object.mediaType) ? String(object.mediaType) : "", - verificationMaterial: isSet(object.verificationMaterial) - ? exports.VerificationMaterial.fromJSON(object.verificationMaterial) - : undefined, - content: isSet(object.messageSignature) - ? { $case: "messageSignature", messageSignature: sigstore_common_1.MessageSignature.fromJSON(object.messageSignature) } - : isSet(object.dsseEnvelope) - ? { $case: "dsseEnvelope", dsseEnvelope: envelope_1.Envelope.fromJSON(object.dsseEnvelope) } - : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.mediaType !== undefined && (obj.mediaType = message.mediaType); - message.verificationMaterial !== undefined && (obj.verificationMaterial = message.verificationMaterial - ? exports.VerificationMaterial.toJSON(message.verificationMaterial) - : undefined); - message.content?.$case === "messageSignature" && (obj.messageSignature = message.content?.messageSignature - ? sigstore_common_1.MessageSignature.toJSON(message.content?.messageSignature) - : undefined); - message.content?.$case === "dsseEnvelope" && - (obj.dsseEnvelope = message.content?.dsseEnvelope ? envelope_1.Envelope.toJSON(message.content?.dsseEnvelope) : undefined); - return obj; - }, -}; -function isSet(value) { - return value !== null && value !== undefined; -} diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_common.d.ts b/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_common.d.ts deleted file mode 100644 index bf669e7f..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_common.d.ts +++ /dev/null @@ -1,290 +0,0 @@ -/// -/** - * Only a subset of the secure hash standard algorithms are supported. - * See for more - * details. - * UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force - * any proto JSON serialization to emit the used hash algorithm, as default - * option is to *omit* the default value of an enum (which is the first - * value, represented by '0'. - */ -export declare enum HashAlgorithm { - HASH_ALGORITHM_UNSPECIFIED = 0, - SHA2_256 = 1, - SHA2_384 = 2, - SHA2_512 = 3, - SHA3_256 = 4, - SHA3_384 = 5 -} -export declare function hashAlgorithmFromJSON(object: any): HashAlgorithm; -export declare function hashAlgorithmToJSON(object: HashAlgorithm): string; -/** - * Details of a specific public key, capturing the the key encoding method, - * and signature algorithm. - * - * PublicKeyDetails captures the public key/hash algorithm combinations - * recommended in the Sigstore ecosystem. - * - * This is modelled as a linear set as we want to provide a small number of - * opinionated options instead of allowing every possible permutation. - * - * Any changes to this enum MUST be reflected in the algorithm registry. - * See: docs/algorithm-registry.md - * - * To avoid the possibility of contradicting formats such as PKCS1 with - * ED25519 the valid permutations are listed as a linear set instead of a - * cartesian set (i.e one combined variable instead of two, one for encoding - * and one for the signature algorithm). - */ -export declare enum PublicKeyDetails { - PUBLIC_KEY_DETAILS_UNSPECIFIED = 0, - /** - * PKCS1_RSA_PKCS1V5 - RSA - * - * @deprecated - */ - PKCS1_RSA_PKCS1V5 = 1, - /** - * PKCS1_RSA_PSS - See RFC8017 - * - * @deprecated - */ - PKCS1_RSA_PSS = 2, - /** @deprecated */ - PKIX_RSA_PKCS1V5 = 3, - /** @deprecated */ - PKIX_RSA_PSS = 4, - /** PKIX_RSA_PKCS1V15_2048_SHA256 - RSA public key in PKIX format, PKCS#1v1.5 signature */ - PKIX_RSA_PKCS1V15_2048_SHA256 = 9, - PKIX_RSA_PKCS1V15_3072_SHA256 = 10, - PKIX_RSA_PKCS1V15_4096_SHA256 = 11, - /** PKIX_RSA_PSS_2048_SHA256 - RSA public key in PKIX format, RSASSA-PSS signature */ - PKIX_RSA_PSS_2048_SHA256 = 16, - PKIX_RSA_PSS_3072_SHA256 = 17, - PKIX_RSA_PSS_4096_SHA256 = 18, - /** - * PKIX_ECDSA_P256_HMAC_SHA_256 - ECDSA - * - * @deprecated - */ - PKIX_ECDSA_P256_HMAC_SHA_256 = 6, - /** PKIX_ECDSA_P256_SHA_256 - See NIST FIPS 186-4 */ - PKIX_ECDSA_P256_SHA_256 = 5, - PKIX_ECDSA_P384_SHA_384 = 12, - PKIX_ECDSA_P521_SHA_512 = 13, - /** PKIX_ED25519 - Ed 25519 */ - PKIX_ED25519 = 7, - PKIX_ED25519_PH = 8, - /** - * LMS_SHA256 - LMS and LM-OTS - * - * These keys and signatures may be used by private Sigstore - * deployments, but are not currently supported by the public - * good instance. - * - * USER WARNING: LMS and LM-OTS are both stateful signature schemes. - * Using them correctly requires discretion and careful consideration - * to ensure that individual secret keys are not used more than once. - * In addition, LM-OTS is a single-use scheme, meaning that it - * MUST NOT be used for more than one signature per LM-OTS key. - * If you cannot maintain these invariants, you MUST NOT use these - * schemes. - */ - LMS_SHA256 = 14, - LMOTS_SHA256 = 15 -} -export declare function publicKeyDetailsFromJSON(object: any): PublicKeyDetails; -export declare function publicKeyDetailsToJSON(object: PublicKeyDetails): string; -export declare enum SubjectAlternativeNameType { - SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED = 0, - EMAIL = 1, - URI = 2, - /** - * OTHER_NAME - OID 1.3.6.1.4.1.57264.1.7 - * See https://github.com/sigstore/fulcio/blob/main/docs/oid-info.md#1361415726417--othername-san - * for more details. - */ - OTHER_NAME = 3 -} -export declare function subjectAlternativeNameTypeFromJSON(object: any): SubjectAlternativeNameType; -export declare function subjectAlternativeNameTypeToJSON(object: SubjectAlternativeNameType): string; -/** - * HashOutput captures a digest of a 'message' (generic octet sequence) - * and the corresponding hash algorithm used. - */ -export interface HashOutput { - algorithm: HashAlgorithm; - /** - * This is the raw octets of the message digest as computed by - * the hash algorithm. - */ - digest: Buffer; -} -/** MessageSignature stores the computed signature over a message. */ -export interface MessageSignature { - /** - * Message digest can be used to identify the artifact. - * Clients MUST NOT attempt to use this digest to verify the associated - * signature; it is intended solely for identification. - */ - messageDigest: HashOutput | undefined; - /** - * The raw bytes as returned from the signature algorithm. - * The signature algorithm (and so the format of the signature bytes) - * are determined by the contents of the 'verification_material', - * either a key-pair or a certificate. If using a certificate, the - * certificate contains the required information on the signature - * algorithm. - * When using a key pair, the algorithm MUST be part of the public - * key, which MUST be communicated out-of-band. - */ - signature: Buffer; -} -/** LogId captures the identity of a transparency log. */ -export interface LogId { - /** The unique identity of the log, represented by its public key. */ - keyId: Buffer; -} -/** This message holds a RFC 3161 timestamp. */ -export interface RFC3161SignedTimestamp { - /** - * Signed timestamp is the DER encoded TimeStampResponse. - * See https://www.rfc-editor.org/rfc/rfc3161.html#section-2.4.2 - */ - signedTimestamp: Buffer; -} -export interface PublicKey { - /** - * DER-encoded public key, encoding method is specified by the - * key_details attribute. - */ - rawBytes?: Buffer | undefined; - /** Key encoding and signature algorithm to use for this key. */ - keyDetails: PublicKeyDetails; - /** Optional validity period for this key, *inclusive* of the endpoints. */ - validFor?: TimeRange | undefined; -} -/** - * PublicKeyIdentifier can be used to identify an (out of band) delivered - * key, to verify a signature. - */ -export interface PublicKeyIdentifier { - /** - * Optional unauthenticated hint on which key to use. - * The format of the hint must be agreed upon out of band by the - * signer and the verifiers, and so is not subject to this - * specification. - * Example use-case is to specify the public key to use, from a - * trusted key-ring. - * Implementors are RECOMMENDED to derive the value from the public - * key as described in RFC 6962. - * See: - */ - hint: string; -} -/** An ASN.1 OBJECT IDENTIFIER */ -export interface ObjectIdentifier { - id: number[]; -} -/** An OID and the corresponding (byte) value. */ -export interface ObjectIdentifierValuePair { - oid: ObjectIdentifier | undefined; - value: Buffer; -} -export interface DistinguishedName { - organization: string; - commonName: string; -} -export interface X509Certificate { - /** DER-encoded X.509 certificate. */ - rawBytes: Buffer; -} -export interface SubjectAlternativeName { - type: SubjectAlternativeNameType; - identity?: { - $case: "regexp"; - regexp: string; - } | { - $case: "value"; - value: string; - }; -} -/** - * A collection of X.509 certificates. - * - * This "chain" can be used in multiple contexts, such as providing a root CA - * certificate within a TUF root of trust or multiple untrusted certificates for - * the purpose of chain building. - */ -export interface X509CertificateChain { - /** - * One or more DER-encoded certificates. - * - * In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence - * has an imposed order. Unless explicitly specified, there is otherwise no - * guaranteed order. - */ - certificates: X509Certificate[]; -} -/** - * The time range is closed and includes both the start and end times, - * (i.e., [start, end]). - * End is optional to be able to capture a period that has started but - * has no known end. - */ -export interface TimeRange { - start: Date | undefined; - end?: Date | undefined; -} -export declare const HashOutput: { - fromJSON(object: any): HashOutput; - toJSON(message: HashOutput): unknown; -}; -export declare const MessageSignature: { - fromJSON(object: any): MessageSignature; - toJSON(message: MessageSignature): unknown; -}; -export declare const LogId: { - fromJSON(object: any): LogId; - toJSON(message: LogId): unknown; -}; -export declare const RFC3161SignedTimestamp: { - fromJSON(object: any): RFC3161SignedTimestamp; - toJSON(message: RFC3161SignedTimestamp): unknown; -}; -export declare const PublicKey: { - fromJSON(object: any): PublicKey; - toJSON(message: PublicKey): unknown; -}; -export declare const PublicKeyIdentifier: { - fromJSON(object: any): PublicKeyIdentifier; - toJSON(message: PublicKeyIdentifier): unknown; -}; -export declare const ObjectIdentifier: { - fromJSON(object: any): ObjectIdentifier; - toJSON(message: ObjectIdentifier): unknown; -}; -export declare const ObjectIdentifierValuePair: { - fromJSON(object: any): ObjectIdentifierValuePair; - toJSON(message: ObjectIdentifierValuePair): unknown; -}; -export declare const DistinguishedName: { - fromJSON(object: any): DistinguishedName; - toJSON(message: DistinguishedName): unknown; -}; -export declare const X509Certificate: { - fromJSON(object: any): X509Certificate; - toJSON(message: X509Certificate): unknown; -}; -export declare const SubjectAlternativeName: { - fromJSON(object: any): SubjectAlternativeName; - toJSON(message: SubjectAlternativeName): unknown; -}; -export declare const X509CertificateChain: { - fromJSON(object: any): X509CertificateChain; - toJSON(message: X509CertificateChain): unknown; -}; -export declare const TimeRange: { - fromJSON(object: any): TimeRange; - toJSON(message: TimeRange): unknown; -}; diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_common.js b/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_common.js deleted file mode 100644 index c6f9baa9..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_common.js +++ /dev/null @@ -1,588 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TimeRange = exports.X509CertificateChain = exports.SubjectAlternativeName = exports.X509Certificate = exports.DistinguishedName = exports.ObjectIdentifierValuePair = exports.ObjectIdentifier = exports.PublicKeyIdentifier = exports.PublicKey = exports.RFC3161SignedTimestamp = exports.LogId = exports.MessageSignature = exports.HashOutput = exports.subjectAlternativeNameTypeToJSON = exports.subjectAlternativeNameTypeFromJSON = exports.SubjectAlternativeNameType = exports.publicKeyDetailsToJSON = exports.publicKeyDetailsFromJSON = exports.PublicKeyDetails = exports.hashAlgorithmToJSON = exports.hashAlgorithmFromJSON = exports.HashAlgorithm = void 0; -/* eslint-disable */ -const timestamp_1 = require("./google/protobuf/timestamp"); -/** - * Only a subset of the secure hash standard algorithms are supported. - * See for more - * details. - * UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force - * any proto JSON serialization to emit the used hash algorithm, as default - * option is to *omit* the default value of an enum (which is the first - * value, represented by '0'. - */ -var HashAlgorithm; -(function (HashAlgorithm) { - HashAlgorithm[HashAlgorithm["HASH_ALGORITHM_UNSPECIFIED"] = 0] = "HASH_ALGORITHM_UNSPECIFIED"; - HashAlgorithm[HashAlgorithm["SHA2_256"] = 1] = "SHA2_256"; - HashAlgorithm[HashAlgorithm["SHA2_384"] = 2] = "SHA2_384"; - HashAlgorithm[HashAlgorithm["SHA2_512"] = 3] = "SHA2_512"; - HashAlgorithm[HashAlgorithm["SHA3_256"] = 4] = "SHA3_256"; - HashAlgorithm[HashAlgorithm["SHA3_384"] = 5] = "SHA3_384"; -})(HashAlgorithm = exports.HashAlgorithm || (exports.HashAlgorithm = {})); -function hashAlgorithmFromJSON(object) { - switch (object) { - case 0: - case "HASH_ALGORITHM_UNSPECIFIED": - return HashAlgorithm.HASH_ALGORITHM_UNSPECIFIED; - case 1: - case "SHA2_256": - return HashAlgorithm.SHA2_256; - case 2: - case "SHA2_384": - return HashAlgorithm.SHA2_384; - case 3: - case "SHA2_512": - return HashAlgorithm.SHA2_512; - case 4: - case "SHA3_256": - return HashAlgorithm.SHA3_256; - case 5: - case "SHA3_384": - return HashAlgorithm.SHA3_384; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum HashAlgorithm"); - } -} -exports.hashAlgorithmFromJSON = hashAlgorithmFromJSON; -function hashAlgorithmToJSON(object) { - switch (object) { - case HashAlgorithm.HASH_ALGORITHM_UNSPECIFIED: - return "HASH_ALGORITHM_UNSPECIFIED"; - case HashAlgorithm.SHA2_256: - return "SHA2_256"; - case HashAlgorithm.SHA2_384: - return "SHA2_384"; - case HashAlgorithm.SHA2_512: - return "SHA2_512"; - case HashAlgorithm.SHA3_256: - return "SHA3_256"; - case HashAlgorithm.SHA3_384: - return "SHA3_384"; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum HashAlgorithm"); - } -} -exports.hashAlgorithmToJSON = hashAlgorithmToJSON; -/** - * Details of a specific public key, capturing the the key encoding method, - * and signature algorithm. - * - * PublicKeyDetails captures the public key/hash algorithm combinations - * recommended in the Sigstore ecosystem. - * - * This is modelled as a linear set as we want to provide a small number of - * opinionated options instead of allowing every possible permutation. - * - * Any changes to this enum MUST be reflected in the algorithm registry. - * See: docs/algorithm-registry.md - * - * To avoid the possibility of contradicting formats such as PKCS1 with - * ED25519 the valid permutations are listed as a linear set instead of a - * cartesian set (i.e one combined variable instead of two, one for encoding - * and one for the signature algorithm). - */ -var PublicKeyDetails; -(function (PublicKeyDetails) { - PublicKeyDetails[PublicKeyDetails["PUBLIC_KEY_DETAILS_UNSPECIFIED"] = 0] = "PUBLIC_KEY_DETAILS_UNSPECIFIED"; - /** - * PKCS1_RSA_PKCS1V5 - RSA - * - * @deprecated - */ - PublicKeyDetails[PublicKeyDetails["PKCS1_RSA_PKCS1V5"] = 1] = "PKCS1_RSA_PKCS1V5"; - /** - * PKCS1_RSA_PSS - See RFC8017 - * - * @deprecated - */ - PublicKeyDetails[PublicKeyDetails["PKCS1_RSA_PSS"] = 2] = "PKCS1_RSA_PSS"; - /** @deprecated */ - PublicKeyDetails[PublicKeyDetails["PKIX_RSA_PKCS1V5"] = 3] = "PKIX_RSA_PKCS1V5"; - /** @deprecated */ - PublicKeyDetails[PublicKeyDetails["PKIX_RSA_PSS"] = 4] = "PKIX_RSA_PSS"; - /** PKIX_RSA_PKCS1V15_2048_SHA256 - RSA public key in PKIX format, PKCS#1v1.5 signature */ - PublicKeyDetails[PublicKeyDetails["PKIX_RSA_PKCS1V15_2048_SHA256"] = 9] = "PKIX_RSA_PKCS1V15_2048_SHA256"; - PublicKeyDetails[PublicKeyDetails["PKIX_RSA_PKCS1V15_3072_SHA256"] = 10] = "PKIX_RSA_PKCS1V15_3072_SHA256"; - PublicKeyDetails[PublicKeyDetails["PKIX_RSA_PKCS1V15_4096_SHA256"] = 11] = "PKIX_RSA_PKCS1V15_4096_SHA256"; - /** PKIX_RSA_PSS_2048_SHA256 - RSA public key in PKIX format, RSASSA-PSS signature */ - PublicKeyDetails[PublicKeyDetails["PKIX_RSA_PSS_2048_SHA256"] = 16] = "PKIX_RSA_PSS_2048_SHA256"; - PublicKeyDetails[PublicKeyDetails["PKIX_RSA_PSS_3072_SHA256"] = 17] = "PKIX_RSA_PSS_3072_SHA256"; - PublicKeyDetails[PublicKeyDetails["PKIX_RSA_PSS_4096_SHA256"] = 18] = "PKIX_RSA_PSS_4096_SHA256"; - /** - * PKIX_ECDSA_P256_HMAC_SHA_256 - ECDSA - * - * @deprecated - */ - PublicKeyDetails[PublicKeyDetails["PKIX_ECDSA_P256_HMAC_SHA_256"] = 6] = "PKIX_ECDSA_P256_HMAC_SHA_256"; - /** PKIX_ECDSA_P256_SHA_256 - See NIST FIPS 186-4 */ - PublicKeyDetails[PublicKeyDetails["PKIX_ECDSA_P256_SHA_256"] = 5] = "PKIX_ECDSA_P256_SHA_256"; - PublicKeyDetails[PublicKeyDetails["PKIX_ECDSA_P384_SHA_384"] = 12] = "PKIX_ECDSA_P384_SHA_384"; - PublicKeyDetails[PublicKeyDetails["PKIX_ECDSA_P521_SHA_512"] = 13] = "PKIX_ECDSA_P521_SHA_512"; - /** PKIX_ED25519 - Ed 25519 */ - PublicKeyDetails[PublicKeyDetails["PKIX_ED25519"] = 7] = "PKIX_ED25519"; - PublicKeyDetails[PublicKeyDetails["PKIX_ED25519_PH"] = 8] = "PKIX_ED25519_PH"; - /** - * LMS_SHA256 - LMS and LM-OTS - * - * These keys and signatures may be used by private Sigstore - * deployments, but are not currently supported by the public - * good instance. - * - * USER WARNING: LMS and LM-OTS are both stateful signature schemes. - * Using them correctly requires discretion and careful consideration - * to ensure that individual secret keys are not used more than once. - * In addition, LM-OTS is a single-use scheme, meaning that it - * MUST NOT be used for more than one signature per LM-OTS key. - * If you cannot maintain these invariants, you MUST NOT use these - * schemes. - */ - PublicKeyDetails[PublicKeyDetails["LMS_SHA256"] = 14] = "LMS_SHA256"; - PublicKeyDetails[PublicKeyDetails["LMOTS_SHA256"] = 15] = "LMOTS_SHA256"; -})(PublicKeyDetails = exports.PublicKeyDetails || (exports.PublicKeyDetails = {})); -function publicKeyDetailsFromJSON(object) { - switch (object) { - case 0: - case "PUBLIC_KEY_DETAILS_UNSPECIFIED": - return PublicKeyDetails.PUBLIC_KEY_DETAILS_UNSPECIFIED; - case 1: - case "PKCS1_RSA_PKCS1V5": - return PublicKeyDetails.PKCS1_RSA_PKCS1V5; - case 2: - case "PKCS1_RSA_PSS": - return PublicKeyDetails.PKCS1_RSA_PSS; - case 3: - case "PKIX_RSA_PKCS1V5": - return PublicKeyDetails.PKIX_RSA_PKCS1V5; - case 4: - case "PKIX_RSA_PSS": - return PublicKeyDetails.PKIX_RSA_PSS; - case 9: - case "PKIX_RSA_PKCS1V15_2048_SHA256": - return PublicKeyDetails.PKIX_RSA_PKCS1V15_2048_SHA256; - case 10: - case "PKIX_RSA_PKCS1V15_3072_SHA256": - return PublicKeyDetails.PKIX_RSA_PKCS1V15_3072_SHA256; - case 11: - case "PKIX_RSA_PKCS1V15_4096_SHA256": - return PublicKeyDetails.PKIX_RSA_PKCS1V15_4096_SHA256; - case 16: - case "PKIX_RSA_PSS_2048_SHA256": - return PublicKeyDetails.PKIX_RSA_PSS_2048_SHA256; - case 17: - case "PKIX_RSA_PSS_3072_SHA256": - return PublicKeyDetails.PKIX_RSA_PSS_3072_SHA256; - case 18: - case "PKIX_RSA_PSS_4096_SHA256": - return PublicKeyDetails.PKIX_RSA_PSS_4096_SHA256; - case 6: - case "PKIX_ECDSA_P256_HMAC_SHA_256": - return PublicKeyDetails.PKIX_ECDSA_P256_HMAC_SHA_256; - case 5: - case "PKIX_ECDSA_P256_SHA_256": - return PublicKeyDetails.PKIX_ECDSA_P256_SHA_256; - case 12: - case "PKIX_ECDSA_P384_SHA_384": - return PublicKeyDetails.PKIX_ECDSA_P384_SHA_384; - case 13: - case "PKIX_ECDSA_P521_SHA_512": - return PublicKeyDetails.PKIX_ECDSA_P521_SHA_512; - case 7: - case "PKIX_ED25519": - return PublicKeyDetails.PKIX_ED25519; - case 8: - case "PKIX_ED25519_PH": - return PublicKeyDetails.PKIX_ED25519_PH; - case 14: - case "LMS_SHA256": - return PublicKeyDetails.LMS_SHA256; - case 15: - case "LMOTS_SHA256": - return PublicKeyDetails.LMOTS_SHA256; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum PublicKeyDetails"); - } -} -exports.publicKeyDetailsFromJSON = publicKeyDetailsFromJSON; -function publicKeyDetailsToJSON(object) { - switch (object) { - case PublicKeyDetails.PUBLIC_KEY_DETAILS_UNSPECIFIED: - return "PUBLIC_KEY_DETAILS_UNSPECIFIED"; - case PublicKeyDetails.PKCS1_RSA_PKCS1V5: - return "PKCS1_RSA_PKCS1V5"; - case PublicKeyDetails.PKCS1_RSA_PSS: - return "PKCS1_RSA_PSS"; - case PublicKeyDetails.PKIX_RSA_PKCS1V5: - return "PKIX_RSA_PKCS1V5"; - case PublicKeyDetails.PKIX_RSA_PSS: - return "PKIX_RSA_PSS"; - case PublicKeyDetails.PKIX_RSA_PKCS1V15_2048_SHA256: - return "PKIX_RSA_PKCS1V15_2048_SHA256"; - case PublicKeyDetails.PKIX_RSA_PKCS1V15_3072_SHA256: - return "PKIX_RSA_PKCS1V15_3072_SHA256"; - case PublicKeyDetails.PKIX_RSA_PKCS1V15_4096_SHA256: - return "PKIX_RSA_PKCS1V15_4096_SHA256"; - case PublicKeyDetails.PKIX_RSA_PSS_2048_SHA256: - return "PKIX_RSA_PSS_2048_SHA256"; - case PublicKeyDetails.PKIX_RSA_PSS_3072_SHA256: - return "PKIX_RSA_PSS_3072_SHA256"; - case PublicKeyDetails.PKIX_RSA_PSS_4096_SHA256: - return "PKIX_RSA_PSS_4096_SHA256"; - case PublicKeyDetails.PKIX_ECDSA_P256_HMAC_SHA_256: - return "PKIX_ECDSA_P256_HMAC_SHA_256"; - case PublicKeyDetails.PKIX_ECDSA_P256_SHA_256: - return "PKIX_ECDSA_P256_SHA_256"; - case PublicKeyDetails.PKIX_ECDSA_P384_SHA_384: - return "PKIX_ECDSA_P384_SHA_384"; - case PublicKeyDetails.PKIX_ECDSA_P521_SHA_512: - return "PKIX_ECDSA_P521_SHA_512"; - case PublicKeyDetails.PKIX_ED25519: - return "PKIX_ED25519"; - case PublicKeyDetails.PKIX_ED25519_PH: - return "PKIX_ED25519_PH"; - case PublicKeyDetails.LMS_SHA256: - return "LMS_SHA256"; - case PublicKeyDetails.LMOTS_SHA256: - return "LMOTS_SHA256"; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum PublicKeyDetails"); - } -} -exports.publicKeyDetailsToJSON = publicKeyDetailsToJSON; -var SubjectAlternativeNameType; -(function (SubjectAlternativeNameType) { - SubjectAlternativeNameType[SubjectAlternativeNameType["SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED"] = 0] = "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED"; - SubjectAlternativeNameType[SubjectAlternativeNameType["EMAIL"] = 1] = "EMAIL"; - SubjectAlternativeNameType[SubjectAlternativeNameType["URI"] = 2] = "URI"; - /** - * OTHER_NAME - OID 1.3.6.1.4.1.57264.1.7 - * See https://github.com/sigstore/fulcio/blob/main/docs/oid-info.md#1361415726417--othername-san - * for more details. - */ - SubjectAlternativeNameType[SubjectAlternativeNameType["OTHER_NAME"] = 3] = "OTHER_NAME"; -})(SubjectAlternativeNameType = exports.SubjectAlternativeNameType || (exports.SubjectAlternativeNameType = {})); -function subjectAlternativeNameTypeFromJSON(object) { - switch (object) { - case 0: - case "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED": - return SubjectAlternativeNameType.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED; - case 1: - case "EMAIL": - return SubjectAlternativeNameType.EMAIL; - case 2: - case "URI": - return SubjectAlternativeNameType.URI; - case 3: - case "OTHER_NAME": - return SubjectAlternativeNameType.OTHER_NAME; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum SubjectAlternativeNameType"); - } -} -exports.subjectAlternativeNameTypeFromJSON = subjectAlternativeNameTypeFromJSON; -function subjectAlternativeNameTypeToJSON(object) { - switch (object) { - case SubjectAlternativeNameType.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED: - return "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED"; - case SubjectAlternativeNameType.EMAIL: - return "EMAIL"; - case SubjectAlternativeNameType.URI: - return "URI"; - case SubjectAlternativeNameType.OTHER_NAME: - return "OTHER_NAME"; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum SubjectAlternativeNameType"); - } -} -exports.subjectAlternativeNameTypeToJSON = subjectAlternativeNameTypeToJSON; -function createBaseHashOutput() { - return { algorithm: 0, digest: Buffer.alloc(0) }; -} -exports.HashOutput = { - fromJSON(object) { - return { - algorithm: isSet(object.algorithm) ? hashAlgorithmFromJSON(object.algorithm) : 0, - digest: isSet(object.digest) ? Buffer.from(bytesFromBase64(object.digest)) : Buffer.alloc(0), - }; - }, - toJSON(message) { - const obj = {}; - message.algorithm !== undefined && (obj.algorithm = hashAlgorithmToJSON(message.algorithm)); - message.digest !== undefined && - (obj.digest = base64FromBytes(message.digest !== undefined ? message.digest : Buffer.alloc(0))); - return obj; - }, -}; -function createBaseMessageSignature() { - return { messageDigest: undefined, signature: Buffer.alloc(0) }; -} -exports.MessageSignature = { - fromJSON(object) { - return { - messageDigest: isSet(object.messageDigest) ? exports.HashOutput.fromJSON(object.messageDigest) : undefined, - signature: isSet(object.signature) ? Buffer.from(bytesFromBase64(object.signature)) : Buffer.alloc(0), - }; - }, - toJSON(message) { - const obj = {}; - message.messageDigest !== undefined && - (obj.messageDigest = message.messageDigest ? exports.HashOutput.toJSON(message.messageDigest) : undefined); - message.signature !== undefined && - (obj.signature = base64FromBytes(message.signature !== undefined ? message.signature : Buffer.alloc(0))); - return obj; - }, -}; -function createBaseLogId() { - return { keyId: Buffer.alloc(0) }; -} -exports.LogId = { - fromJSON(object) { - return { keyId: isSet(object.keyId) ? Buffer.from(bytesFromBase64(object.keyId)) : Buffer.alloc(0) }; - }, - toJSON(message) { - const obj = {}; - message.keyId !== undefined && - (obj.keyId = base64FromBytes(message.keyId !== undefined ? message.keyId : Buffer.alloc(0))); - return obj; - }, -}; -function createBaseRFC3161SignedTimestamp() { - return { signedTimestamp: Buffer.alloc(0) }; -} -exports.RFC3161SignedTimestamp = { - fromJSON(object) { - return { - signedTimestamp: isSet(object.signedTimestamp) - ? Buffer.from(bytesFromBase64(object.signedTimestamp)) - : Buffer.alloc(0), - }; - }, - toJSON(message) { - const obj = {}; - message.signedTimestamp !== undefined && - (obj.signedTimestamp = base64FromBytes(message.signedTimestamp !== undefined ? message.signedTimestamp : Buffer.alloc(0))); - return obj; - }, -}; -function createBasePublicKey() { - return { rawBytes: undefined, keyDetails: 0, validFor: undefined }; -} -exports.PublicKey = { - fromJSON(object) { - return { - rawBytes: isSet(object.rawBytes) ? Buffer.from(bytesFromBase64(object.rawBytes)) : undefined, - keyDetails: isSet(object.keyDetails) ? publicKeyDetailsFromJSON(object.keyDetails) : 0, - validFor: isSet(object.validFor) ? exports.TimeRange.fromJSON(object.validFor) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.rawBytes !== undefined && - (obj.rawBytes = message.rawBytes !== undefined ? base64FromBytes(message.rawBytes) : undefined); - message.keyDetails !== undefined && (obj.keyDetails = publicKeyDetailsToJSON(message.keyDetails)); - message.validFor !== undefined && - (obj.validFor = message.validFor ? exports.TimeRange.toJSON(message.validFor) : undefined); - return obj; - }, -}; -function createBasePublicKeyIdentifier() { - return { hint: "" }; -} -exports.PublicKeyIdentifier = { - fromJSON(object) { - return { hint: isSet(object.hint) ? String(object.hint) : "" }; - }, - toJSON(message) { - const obj = {}; - message.hint !== undefined && (obj.hint = message.hint); - return obj; - }, -}; -function createBaseObjectIdentifier() { - return { id: [] }; -} -exports.ObjectIdentifier = { - fromJSON(object) { - return { id: Array.isArray(object?.id) ? object.id.map((e) => Number(e)) : [] }; - }, - toJSON(message) { - const obj = {}; - if (message.id) { - obj.id = message.id.map((e) => Math.round(e)); - } - else { - obj.id = []; - } - return obj; - }, -}; -function createBaseObjectIdentifierValuePair() { - return { oid: undefined, value: Buffer.alloc(0) }; -} -exports.ObjectIdentifierValuePair = { - fromJSON(object) { - return { - oid: isSet(object.oid) ? exports.ObjectIdentifier.fromJSON(object.oid) : undefined, - value: isSet(object.value) ? Buffer.from(bytesFromBase64(object.value)) : Buffer.alloc(0), - }; - }, - toJSON(message) { - const obj = {}; - message.oid !== undefined && (obj.oid = message.oid ? exports.ObjectIdentifier.toJSON(message.oid) : undefined); - message.value !== undefined && - (obj.value = base64FromBytes(message.value !== undefined ? message.value : Buffer.alloc(0))); - return obj; - }, -}; -function createBaseDistinguishedName() { - return { organization: "", commonName: "" }; -} -exports.DistinguishedName = { - fromJSON(object) { - return { - organization: isSet(object.organization) ? String(object.organization) : "", - commonName: isSet(object.commonName) ? String(object.commonName) : "", - }; - }, - toJSON(message) { - const obj = {}; - message.organization !== undefined && (obj.organization = message.organization); - message.commonName !== undefined && (obj.commonName = message.commonName); - return obj; - }, -}; -function createBaseX509Certificate() { - return { rawBytes: Buffer.alloc(0) }; -} -exports.X509Certificate = { - fromJSON(object) { - return { rawBytes: isSet(object.rawBytes) ? Buffer.from(bytesFromBase64(object.rawBytes)) : Buffer.alloc(0) }; - }, - toJSON(message) { - const obj = {}; - message.rawBytes !== undefined && - (obj.rawBytes = base64FromBytes(message.rawBytes !== undefined ? message.rawBytes : Buffer.alloc(0))); - return obj; - }, -}; -function createBaseSubjectAlternativeName() { - return { type: 0, identity: undefined }; -} -exports.SubjectAlternativeName = { - fromJSON(object) { - return { - type: isSet(object.type) ? subjectAlternativeNameTypeFromJSON(object.type) : 0, - identity: isSet(object.regexp) - ? { $case: "regexp", regexp: String(object.regexp) } - : isSet(object.value) - ? { $case: "value", value: String(object.value) } - : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.type !== undefined && (obj.type = subjectAlternativeNameTypeToJSON(message.type)); - message.identity?.$case === "regexp" && (obj.regexp = message.identity?.regexp); - message.identity?.$case === "value" && (obj.value = message.identity?.value); - return obj; - }, -}; -function createBaseX509CertificateChain() { - return { certificates: [] }; -} -exports.X509CertificateChain = { - fromJSON(object) { - return { - certificates: Array.isArray(object?.certificates) - ? object.certificates.map((e) => exports.X509Certificate.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - if (message.certificates) { - obj.certificates = message.certificates.map((e) => e ? exports.X509Certificate.toJSON(e) : undefined); - } - else { - obj.certificates = []; - } - return obj; - }, -}; -function createBaseTimeRange() { - return { start: undefined, end: undefined }; -} -exports.TimeRange = { - fromJSON(object) { - return { - start: isSet(object.start) ? fromJsonTimestamp(object.start) : undefined, - end: isSet(object.end) ? fromJsonTimestamp(object.end) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.start !== undefined && (obj.start = message.start.toISOString()); - message.end !== undefined && (obj.end = message.end.toISOString()); - return obj; - }, -}; -var tsProtoGlobalThis = (() => { - if (typeof globalThis !== "undefined") { - return globalThis; - } - if (typeof self !== "undefined") { - return self; - } - if (typeof window !== "undefined") { - return window; - } - if (typeof global !== "undefined") { - return global; - } - throw "Unable to locate global object"; -})(); -function bytesFromBase64(b64) { - if (tsProtoGlobalThis.Buffer) { - return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); - } - else { - const bin = tsProtoGlobalThis.atob(b64); - const arr = new Uint8Array(bin.length); - for (let i = 0; i < bin.length; ++i) { - arr[i] = bin.charCodeAt(i); - } - return arr; - } -} -function base64FromBytes(arr) { - if (tsProtoGlobalThis.Buffer) { - return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); - } - else { - const bin = []; - arr.forEach((byte) => { - bin.push(String.fromCharCode(byte)); - }); - return tsProtoGlobalThis.btoa(bin.join("")); - } -} -function fromTimestamp(t) { - let millis = Number(t.seconds) * 1000; - millis += t.nanos / 1000000; - return new Date(millis); -} -function fromJsonTimestamp(o) { - if (o instanceof Date) { - return o; - } - else if (typeof o === "string") { - return new Date(o); - } - else { - return fromTimestamp(timestamp_1.Timestamp.fromJSON(o)); - } -} -function isSet(value) { - return value !== null && value !== undefined; -} diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_rekor.d.ts b/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_rekor.d.ts deleted file mode 100644 index 7751d616..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_rekor.d.ts +++ /dev/null @@ -1,148 +0,0 @@ -/// -import { LogId } from "./sigstore_common"; -/** KindVersion contains the entry's kind and api version. */ -export interface KindVersion { - /** - * Kind is the type of entry being stored in the log. - * See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types - */ - kind: string; - /** The specific api version of the type. */ - version: string; -} -/** - * The checkpoint MUST contain an origin string as a unique log identifier, - * the tree size, and the root hash. It MAY also be followed by optional data, - * and clients MUST NOT assume optional data. The checkpoint MUST also contain - * a signature over the root hash (tree head). The checkpoint MAY contain additional - * signatures, but the first SHOULD be the signature from the log. Checkpoint contents - * are concatenated with newlines into a single string. - * The checkpoint format is described in - * https://github.com/transparency-dev/formats/blob/main/log/README.md - * and https://github.com/C2SP/C2SP/blob/main/tlog-checkpoint.md. - * An example implementation can be found in https://github.com/sigstore/rekor/blob/main/pkg/util/signed_note.go - */ -export interface Checkpoint { - envelope: string; -} -/** - * InclusionProof is the proof returned from the transparency log. Can - * be used for offline or online verification against the log. - */ -export interface InclusionProof { - /** The index of the entry in the tree it was written to. */ - logIndex: string; - /** - * The hash digest stored at the root of the merkle tree at the time - * the proof was generated. - */ - rootHash: Buffer; - /** The size of the merkle tree at the time the proof was generated. */ - treeSize: string; - /** - * A list of hashes required to compute the inclusion proof, sorted - * in order from leaf to root. - * Note that leaf and root hashes are not included. - * The root hash is available separately in this message, and the - * leaf hash should be calculated by the client. - */ - hashes: Buffer[]; - /** - * Signature of the tree head, as of the time of this proof was - * generated. See above info on 'Checkpoint' for more details. - */ - checkpoint: Checkpoint | undefined; -} -/** - * The inclusion promise is calculated by Rekor. It's calculated as a - * signature over a canonical JSON serialization of the persisted entry, the - * log ID, log index and the integration timestamp. - * See https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/api/entries.go#L54 - * The format of the signature depends on the transparency log's public key. - * If the signature algorithm requires a hash function and/or a signature - * scheme (e.g. RSA) those has to be retrieved out-of-band from the log's - * operators, together with the public key. - * This is used to verify the integration timestamp's value and that the log - * has promised to include the entry. - */ -export interface InclusionPromise { - signedEntryTimestamp: Buffer; -} -/** - * TransparencyLogEntry captures all the details required from Rekor to - * reconstruct an entry, given that the payload is provided via other means. - * This type can easily be created from the existing response from Rekor. - * Future iterations could rely on Rekor returning the minimal set of - * attributes (excluding the payload) that are required for verifying the - * inclusion promise. The inclusion promise (called SignedEntryTimestamp in - * the response from Rekor) is similar to a Signed Certificate Timestamp - * as described here https://www.rfc-editor.org/rfc/rfc6962.html#section-3.2. - */ -export interface TransparencyLogEntry { - /** The global index of the entry, used when querying the log by index. */ - logIndex: string; - /** The unique identifier of the log. */ - logId: LogId | undefined; - /** - * The kind (type) and version of the object associated with this - * entry. These values are required to construct the entry during - * verification. - */ - kindVersion: KindVersion | undefined; - /** The UNIX timestamp from the log when the entry was persisted. */ - integratedTime: string; - /** - * The inclusion promise/signed entry timestamp from the log. - * Required for v0.1 bundles, and MUST be verified. - * Optional for >= v0.2 bundles, and SHOULD be verified when present. - * Also may be used as a signed timestamp. - */ - inclusionPromise: InclusionPromise | undefined; - /** - * The inclusion proof can be used for offline or online verification - * that the entry was appended to the log, and that the log has not been - * altered. - */ - inclusionProof: InclusionProof | undefined; - /** - * Optional. The canonicalized transparency log entry, used to - * reconstruct the Signed Entry Timestamp (SET) during verification. - * The contents of this field are the same as the `body` field in - * a Rekor response, meaning that it does **not** include the "full" - * canonicalized form (of log index, ID, etc.) which are - * exposed as separate fields. The verifier is responsible for - * combining the `canonicalized_body`, `log_index`, `log_id`, - * and `integrated_time` into the payload that the SET's signature - * is generated over. - * This field is intended to be used in cases where the SET cannot be - * produced determinisitically (e.g. inconsistent JSON field ordering, - * differing whitespace, etc). - * - * If set, clients MUST verify that the signature referenced in the - * `canonicalized_body` matches the signature provided in the - * `Bundle.content`. - * If not set, clients are responsible for constructing an equivalent - * payload from other sources to verify the signature. - */ - canonicalizedBody: Buffer; -} -export declare const KindVersion: { - fromJSON(object: any): KindVersion; - toJSON(message: KindVersion): unknown; -}; -export declare const Checkpoint: { - fromJSON(object: any): Checkpoint; - toJSON(message: Checkpoint): unknown; -}; -export declare const InclusionProof: { - fromJSON(object: any): InclusionProof; - toJSON(message: InclusionProof): unknown; -}; -export declare const InclusionPromise: { - fromJSON(object: any): InclusionPromise; - toJSON(message: InclusionPromise): unknown; -}; -export declare const TransparencyLogEntry: { - fromJSON(object: any): TransparencyLogEntry; - toJSON(message: TransparencyLogEntry): unknown; -}; diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_rekor.js b/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_rekor.js deleted file mode 100644 index 398193b2..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_rekor.js +++ /dev/null @@ -1,167 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TransparencyLogEntry = exports.InclusionPromise = exports.InclusionProof = exports.Checkpoint = exports.KindVersion = void 0; -/* eslint-disable */ -const sigstore_common_1 = require("./sigstore_common"); -function createBaseKindVersion() { - return { kind: "", version: "" }; -} -exports.KindVersion = { - fromJSON(object) { - return { - kind: isSet(object.kind) ? String(object.kind) : "", - version: isSet(object.version) ? String(object.version) : "", - }; - }, - toJSON(message) { - const obj = {}; - message.kind !== undefined && (obj.kind = message.kind); - message.version !== undefined && (obj.version = message.version); - return obj; - }, -}; -function createBaseCheckpoint() { - return { envelope: "" }; -} -exports.Checkpoint = { - fromJSON(object) { - return { envelope: isSet(object.envelope) ? String(object.envelope) : "" }; - }, - toJSON(message) { - const obj = {}; - message.envelope !== undefined && (obj.envelope = message.envelope); - return obj; - }, -}; -function createBaseInclusionProof() { - return { logIndex: "0", rootHash: Buffer.alloc(0), treeSize: "0", hashes: [], checkpoint: undefined }; -} -exports.InclusionProof = { - fromJSON(object) { - return { - logIndex: isSet(object.logIndex) ? String(object.logIndex) : "0", - rootHash: isSet(object.rootHash) ? Buffer.from(bytesFromBase64(object.rootHash)) : Buffer.alloc(0), - treeSize: isSet(object.treeSize) ? String(object.treeSize) : "0", - hashes: Array.isArray(object?.hashes) ? object.hashes.map((e) => Buffer.from(bytesFromBase64(e))) : [], - checkpoint: isSet(object.checkpoint) ? exports.Checkpoint.fromJSON(object.checkpoint) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.logIndex !== undefined && (obj.logIndex = message.logIndex); - message.rootHash !== undefined && - (obj.rootHash = base64FromBytes(message.rootHash !== undefined ? message.rootHash : Buffer.alloc(0))); - message.treeSize !== undefined && (obj.treeSize = message.treeSize); - if (message.hashes) { - obj.hashes = message.hashes.map((e) => base64FromBytes(e !== undefined ? e : Buffer.alloc(0))); - } - else { - obj.hashes = []; - } - message.checkpoint !== undefined && - (obj.checkpoint = message.checkpoint ? exports.Checkpoint.toJSON(message.checkpoint) : undefined); - return obj; - }, -}; -function createBaseInclusionPromise() { - return { signedEntryTimestamp: Buffer.alloc(0) }; -} -exports.InclusionPromise = { - fromJSON(object) { - return { - signedEntryTimestamp: isSet(object.signedEntryTimestamp) - ? Buffer.from(bytesFromBase64(object.signedEntryTimestamp)) - : Buffer.alloc(0), - }; - }, - toJSON(message) { - const obj = {}; - message.signedEntryTimestamp !== undefined && - (obj.signedEntryTimestamp = base64FromBytes(message.signedEntryTimestamp !== undefined ? message.signedEntryTimestamp : Buffer.alloc(0))); - return obj; - }, -}; -function createBaseTransparencyLogEntry() { - return { - logIndex: "0", - logId: undefined, - kindVersion: undefined, - integratedTime: "0", - inclusionPromise: undefined, - inclusionProof: undefined, - canonicalizedBody: Buffer.alloc(0), - }; -} -exports.TransparencyLogEntry = { - fromJSON(object) { - return { - logIndex: isSet(object.logIndex) ? String(object.logIndex) : "0", - logId: isSet(object.logId) ? sigstore_common_1.LogId.fromJSON(object.logId) : undefined, - kindVersion: isSet(object.kindVersion) ? exports.KindVersion.fromJSON(object.kindVersion) : undefined, - integratedTime: isSet(object.integratedTime) ? String(object.integratedTime) : "0", - inclusionPromise: isSet(object.inclusionPromise) ? exports.InclusionPromise.fromJSON(object.inclusionPromise) : undefined, - inclusionProof: isSet(object.inclusionProof) ? exports.InclusionProof.fromJSON(object.inclusionProof) : undefined, - canonicalizedBody: isSet(object.canonicalizedBody) - ? Buffer.from(bytesFromBase64(object.canonicalizedBody)) - : Buffer.alloc(0), - }; - }, - toJSON(message) { - const obj = {}; - message.logIndex !== undefined && (obj.logIndex = message.logIndex); - message.logId !== undefined && (obj.logId = message.logId ? sigstore_common_1.LogId.toJSON(message.logId) : undefined); - message.kindVersion !== undefined && - (obj.kindVersion = message.kindVersion ? exports.KindVersion.toJSON(message.kindVersion) : undefined); - message.integratedTime !== undefined && (obj.integratedTime = message.integratedTime); - message.inclusionPromise !== undefined && - (obj.inclusionPromise = message.inclusionPromise ? exports.InclusionPromise.toJSON(message.inclusionPromise) : undefined); - message.inclusionProof !== undefined && - (obj.inclusionProof = message.inclusionProof ? exports.InclusionProof.toJSON(message.inclusionProof) : undefined); - message.canonicalizedBody !== undefined && - (obj.canonicalizedBody = base64FromBytes(message.canonicalizedBody !== undefined ? message.canonicalizedBody : Buffer.alloc(0))); - return obj; - }, -}; -var tsProtoGlobalThis = (() => { - if (typeof globalThis !== "undefined") { - return globalThis; - } - if (typeof self !== "undefined") { - return self; - } - if (typeof window !== "undefined") { - return window; - } - if (typeof global !== "undefined") { - return global; - } - throw "Unable to locate global object"; -})(); -function bytesFromBase64(b64) { - if (tsProtoGlobalThis.Buffer) { - return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); - } - else { - const bin = tsProtoGlobalThis.atob(b64); - const arr = new Uint8Array(bin.length); - for (let i = 0; i < bin.length; ++i) { - arr[i] = bin.charCodeAt(i); - } - return arr; - } -} -function base64FromBytes(arr) { - if (tsProtoGlobalThis.Buffer) { - return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); - } - else { - const bin = []; - arr.forEach((byte) => { - bin.push(String.fromCharCode(byte)); - }); - return tsProtoGlobalThis.btoa(bin.join("")); - } -} -function isSet(value) { - return value !== null && value !== undefined; -} diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_trustroot.d.ts b/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_trustroot.d.ts deleted file mode 100644 index ede7e2bc..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_trustroot.d.ts +++ /dev/null @@ -1,215 +0,0 @@ -import { DistinguishedName, HashAlgorithm, LogId, PublicKey, TimeRange, X509CertificateChain } from "./sigstore_common"; -/** - * TransparencyLogInstance describes the immutable parameters from a - * transparency log. - * See https://www.rfc-editor.org/rfc/rfc9162.html#name-log-parameters - * for more details. - * The included parameters are the minimal set required to identify a log, - * and verify an inclusion proof/promise. - */ -export interface TransparencyLogInstance { - /** The base URL at which can be used to URLs for the client. */ - baseUrl: string; - /** The hash algorithm used for the Merkle Tree. */ - hashAlgorithm: HashAlgorithm; - /** - * The public key used to verify signatures generated by the log. - * This attribute contains the signature algorithm used by the log. - */ - publicKey: PublicKey | undefined; - /** - * The unique identifier for this transparency log. - * Represented as the SHA-256 hash of the log's public key, - * calculated over the DER encoding of the key represented as - * SubjectPublicKeyInfo. - * See https://www.rfc-editor.org/rfc/rfc6962#section-3.2 - */ - logId: LogId | undefined; - /** - * The checkpoint key identifier for the log used in a checkpoint. - * Optional, not provided for logs that do not generate checkpoints. - * For logs that do generate checkpoints, if not set, assume - * log_id equals checkpoint_key_id. - * Follows the specification described here - * for ECDSA and Ed25519 signatures: - * https://github.com/C2SP/C2SP/blob/main/signed-note.md#signatures - * For RSA signatures, the key ID will match the ECDSA format, the - * hashed DER-encoded SPKI public key. Publicly witnessed logs MUST NOT - * use RSA-signed checkpoints, since witnesses do not support - * RSA signatures. - * This is provided for convenience. Clients can also calculate the - * checkpoint key ID given the log's public key. - * SHOULD be set for logs generating Ed25519 signatures. - * SHOULD be 4 bytes long, as a truncated hash. - */ - checkpointKeyId: LogId | undefined; -} -/** - * CertificateAuthority enlists the information required to identify which - * CA to use and perform signature verification. - */ -export interface CertificateAuthority { - /** - * The root certificate MUST be self-signed, and so the subject and - * issuer are the same. - */ - subject: DistinguishedName | undefined; - /** - * The URI identifies the certificate authority. - * - * It is RECOMMENDED that the URI is the base URL for the certificate - * authority, that can be provided to any SDK/client provided - * by the certificate authority to interact with the certificate - * authority. - */ - uri: string; - /** - * The certificate chain for this CA. The last certificate in the chain - * MUST be the trust anchor. The trust anchor MAY be a self-signed root - * CA certificate or MAY be an intermediate CA certificate. - */ - certChain: X509CertificateChain | undefined; - /** - * The time the *entire* chain was valid. This is at max the - * longest interval when *all* certificates in the chain were valid, - * but it MAY be shorter. Clients MUST check timestamps against *both* - * the `valid_for` time range *and* the entire certificate chain. - * - * The TimeRange should be considered valid *inclusive* of the - * endpoints. - */ - validFor: TimeRange | undefined; -} -/** - * TrustedRoot describes the client's complete set of trusted entities. - * How the TrustedRoot is populated is not specified, but can be a - * combination of many sources such as TUF repositories, files on disk etc. - * - * The TrustedRoot is not meant to be used for any artifact verification, only - * to capture the complete/global set of trusted verification materials. - * When verifying an artifact, based on the artifact and policies, a selection - * of keys/authorities are expected to be extracted and provided to the - * verification function. This way the set of keys/authorities can be kept to - * a minimal set by the policy to gain better control over what signatures - * that are allowed. - * - * The embedded transparency logs, CT logs, CAs and TSAs MUST include any - * previously used instance -- otherwise signatures made in the past cannot - * be verified. - * - * All the listed instances SHOULD be sorted by the 'valid_for' in ascending - * order, that is, the oldest instance first. Only the last instance is - * allowed to have their 'end' timestamp unset. All previous instances MUST - * have a closed interval of validity. The last instance MAY have a closed - * interval. Clients MUST accept instances that overlaps in time, if not - * clients may experience problems during rotations of verification - * materials. - * - * To be able to manage planned rotations of either transparency logs or - * certificate authorities, clienst MUST accept lists of instances where - * the last instance have a 'valid_for' that belongs to the future. - * This should not be a problem as clients SHOULD first seek the trust root - * for a suitable instance before creating a per artifact trust root (that - * is, a sub-set of the complete trust root) that is used for verification. - */ -export interface TrustedRoot { - /** - * MUST be application/vnd.dev.sigstore.trustedroot.v0.1+json - * when encoded as JSON. - * Clients MUST be able to process and parse content with the media - * type defined in the old format: - * application/vnd.dev.sigstore.trustedroot+json;version=0.1 - */ - mediaType: string; - /** A set of trusted Rekor servers. */ - tlogs: TransparencyLogInstance[]; - /** - * A set of trusted certificate authorities (e.g Fulcio), and any - * intermediate certificates they provide. - * If a CA is issuing multiple intermediate certificate, each - * combination shall be represented as separate chain. I.e, a single - * root cert may appear in multiple chains but with different - * intermediate and/or leaf certificates. - * The certificates are intended to be used for verifying artifact - * signatures. - */ - certificateAuthorities: CertificateAuthority[]; - /** A set of trusted certificate transparency logs. */ - ctlogs: TransparencyLogInstance[]; - /** A set of trusted timestamping authorities. */ - timestampAuthorities: CertificateAuthority[]; -} -/** - * SigningConfig represents the trusted entities/state needed by Sigstore - * signing. In particular, it primarily contains service URLs that a Sigstore - * signer may need to connect to for the online aspects of signing. - */ -export interface SigningConfig { - /** - * A URL to a Fulcio-compatible CA, capable of receiving - * Certificate Signing Requests (CSRs) and responding with - * issued certificates. - * - * This URL **MUST** be the "base" URL for the CA, which clients - * should construct an appropriate CSR endpoint on top of. - * For example, if `ca_url` is `https://example.com/ca`, then - * the client **MAY** construct the CSR endpoint as - * `https://example.com/ca/api/v2/signingCert`. - */ - caUrl: string; - /** - * A URL to an OpenID Connect identity provider. - * - * This URL **MUST** be the "base" URL for the OIDC IdP, which clients - * should perform well-known OpenID Connect discovery against. - */ - oidcUrl: string; - /** - * One or more URLs to Rekor-compatible transparency log. - * - * Each URL **MUST** be the "base" URL for the transparency log, - * which clients should construct appropriate API endpoints on top of. - */ - tlogUrls: string[]; - /** - * One ore more URLs to RFC 3161 Time Stamping Authority (TSA). - * - * Each URL **MUST** be the **full** URL for the TSA, meaning that it - * should be suitable for submitting Time Stamp Requests (TSRs) to - * via HTTP, per RFC 3161. - */ - tsaUrls: string[]; -} -/** - * ClientTrustConfig describes the complete state needed by a client - * to perform both signing and verification operations against a particular - * instance of Sigstore. - */ -export interface ClientTrustConfig { - /** MUST be application/vnd.dev.sigstore.clienttrustconfig.v0.1+json */ - mediaType: string; - /** The root of trust, which MUST be present. */ - trustedRoot: TrustedRoot | undefined; - /** Configuration for signing clients, which MUST be present. */ - signingConfig: SigningConfig | undefined; -} -export declare const TransparencyLogInstance: { - fromJSON(object: any): TransparencyLogInstance; - toJSON(message: TransparencyLogInstance): unknown; -}; -export declare const CertificateAuthority: { - fromJSON(object: any): CertificateAuthority; - toJSON(message: CertificateAuthority): unknown; -}; -export declare const TrustedRoot: { - fromJSON(object: any): TrustedRoot; - toJSON(message: TrustedRoot): unknown; -}; -export declare const SigningConfig: { - fromJSON(object: any): SigningConfig; - toJSON(message: SigningConfig): unknown; -}; -export declare const ClientTrustConfig: { - fromJSON(object: any): ClientTrustConfig; - toJSON(message: ClientTrustConfig): unknown; -}; diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_trustroot.js b/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_trustroot.js deleted file mode 100644 index 8791aba2..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_trustroot.js +++ /dev/null @@ -1,158 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ClientTrustConfig = exports.SigningConfig = exports.TrustedRoot = exports.CertificateAuthority = exports.TransparencyLogInstance = void 0; -/* eslint-disable */ -const sigstore_common_1 = require("./sigstore_common"); -function createBaseTransparencyLogInstance() { - return { baseUrl: "", hashAlgorithm: 0, publicKey: undefined, logId: undefined, checkpointKeyId: undefined }; -} -exports.TransparencyLogInstance = { - fromJSON(object) { - return { - baseUrl: isSet(object.baseUrl) ? String(object.baseUrl) : "", - hashAlgorithm: isSet(object.hashAlgorithm) ? (0, sigstore_common_1.hashAlgorithmFromJSON)(object.hashAlgorithm) : 0, - publicKey: isSet(object.publicKey) ? sigstore_common_1.PublicKey.fromJSON(object.publicKey) : undefined, - logId: isSet(object.logId) ? sigstore_common_1.LogId.fromJSON(object.logId) : undefined, - checkpointKeyId: isSet(object.checkpointKeyId) ? sigstore_common_1.LogId.fromJSON(object.checkpointKeyId) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.baseUrl !== undefined && (obj.baseUrl = message.baseUrl); - message.hashAlgorithm !== undefined && (obj.hashAlgorithm = (0, sigstore_common_1.hashAlgorithmToJSON)(message.hashAlgorithm)); - message.publicKey !== undefined && - (obj.publicKey = message.publicKey ? sigstore_common_1.PublicKey.toJSON(message.publicKey) : undefined); - message.logId !== undefined && (obj.logId = message.logId ? sigstore_common_1.LogId.toJSON(message.logId) : undefined); - message.checkpointKeyId !== undefined && - (obj.checkpointKeyId = message.checkpointKeyId ? sigstore_common_1.LogId.toJSON(message.checkpointKeyId) : undefined); - return obj; - }, -}; -function createBaseCertificateAuthority() { - return { subject: undefined, uri: "", certChain: undefined, validFor: undefined }; -} -exports.CertificateAuthority = { - fromJSON(object) { - return { - subject: isSet(object.subject) ? sigstore_common_1.DistinguishedName.fromJSON(object.subject) : undefined, - uri: isSet(object.uri) ? String(object.uri) : "", - certChain: isSet(object.certChain) ? sigstore_common_1.X509CertificateChain.fromJSON(object.certChain) : undefined, - validFor: isSet(object.validFor) ? sigstore_common_1.TimeRange.fromJSON(object.validFor) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.subject !== undefined && - (obj.subject = message.subject ? sigstore_common_1.DistinguishedName.toJSON(message.subject) : undefined); - message.uri !== undefined && (obj.uri = message.uri); - message.certChain !== undefined && - (obj.certChain = message.certChain ? sigstore_common_1.X509CertificateChain.toJSON(message.certChain) : undefined); - message.validFor !== undefined && - (obj.validFor = message.validFor ? sigstore_common_1.TimeRange.toJSON(message.validFor) : undefined); - return obj; - }, -}; -function createBaseTrustedRoot() { - return { mediaType: "", tlogs: [], certificateAuthorities: [], ctlogs: [], timestampAuthorities: [] }; -} -exports.TrustedRoot = { - fromJSON(object) { - return { - mediaType: isSet(object.mediaType) ? String(object.mediaType) : "", - tlogs: Array.isArray(object?.tlogs) ? object.tlogs.map((e) => exports.TransparencyLogInstance.fromJSON(e)) : [], - certificateAuthorities: Array.isArray(object?.certificateAuthorities) - ? object.certificateAuthorities.map((e) => exports.CertificateAuthority.fromJSON(e)) - : [], - ctlogs: Array.isArray(object?.ctlogs) - ? object.ctlogs.map((e) => exports.TransparencyLogInstance.fromJSON(e)) - : [], - timestampAuthorities: Array.isArray(object?.timestampAuthorities) - ? object.timestampAuthorities.map((e) => exports.CertificateAuthority.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - message.mediaType !== undefined && (obj.mediaType = message.mediaType); - if (message.tlogs) { - obj.tlogs = message.tlogs.map((e) => e ? exports.TransparencyLogInstance.toJSON(e) : undefined); - } - else { - obj.tlogs = []; - } - if (message.certificateAuthorities) { - obj.certificateAuthorities = message.certificateAuthorities.map((e) => e ? exports.CertificateAuthority.toJSON(e) : undefined); - } - else { - obj.certificateAuthorities = []; - } - if (message.ctlogs) { - obj.ctlogs = message.ctlogs.map((e) => e ? exports.TransparencyLogInstance.toJSON(e) : undefined); - } - else { - obj.ctlogs = []; - } - if (message.timestampAuthorities) { - obj.timestampAuthorities = message.timestampAuthorities.map((e) => e ? exports.CertificateAuthority.toJSON(e) : undefined); - } - else { - obj.timestampAuthorities = []; - } - return obj; - }, -}; -function createBaseSigningConfig() { - return { caUrl: "", oidcUrl: "", tlogUrls: [], tsaUrls: [] }; -} -exports.SigningConfig = { - fromJSON(object) { - return { - caUrl: isSet(object.caUrl) ? String(object.caUrl) : "", - oidcUrl: isSet(object.oidcUrl) ? String(object.oidcUrl) : "", - tlogUrls: Array.isArray(object?.tlogUrls) ? object.tlogUrls.map((e) => String(e)) : [], - tsaUrls: Array.isArray(object?.tsaUrls) ? object.tsaUrls.map((e) => String(e)) : [], - }; - }, - toJSON(message) { - const obj = {}; - message.caUrl !== undefined && (obj.caUrl = message.caUrl); - message.oidcUrl !== undefined && (obj.oidcUrl = message.oidcUrl); - if (message.tlogUrls) { - obj.tlogUrls = message.tlogUrls.map((e) => e); - } - else { - obj.tlogUrls = []; - } - if (message.tsaUrls) { - obj.tsaUrls = message.tsaUrls.map((e) => e); - } - else { - obj.tsaUrls = []; - } - return obj; - }, -}; -function createBaseClientTrustConfig() { - return { mediaType: "", trustedRoot: undefined, signingConfig: undefined }; -} -exports.ClientTrustConfig = { - fromJSON(object) { - return { - mediaType: isSet(object.mediaType) ? String(object.mediaType) : "", - trustedRoot: isSet(object.trustedRoot) ? exports.TrustedRoot.fromJSON(object.trustedRoot) : undefined, - signingConfig: isSet(object.signingConfig) ? exports.SigningConfig.fromJSON(object.signingConfig) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.mediaType !== undefined && (obj.mediaType = message.mediaType); - message.trustedRoot !== undefined && - (obj.trustedRoot = message.trustedRoot ? exports.TrustedRoot.toJSON(message.trustedRoot) : undefined); - message.signingConfig !== undefined && - (obj.signingConfig = message.signingConfig ? exports.SigningConfig.toJSON(message.signingConfig) : undefined); - return obj; - }, -}; -function isSet(value) { - return value !== null && value !== undefined; -} diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_verification.d.ts b/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_verification.d.ts deleted file mode 100644 index 078a98f6..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_verification.d.ts +++ /dev/null @@ -1,189 +0,0 @@ -/// -import { Bundle } from "./sigstore_bundle"; -import { ObjectIdentifierValuePair, PublicKey, SubjectAlternativeName } from "./sigstore_common"; -import { TrustedRoot } from "./sigstore_trustroot"; -/** The identity of a X.509 Certificate signer. */ -export interface CertificateIdentity { - /** The X.509v3 issuer extension (OID 1.3.6.1.4.1.57264.1.1) */ - issuer: string; - san: SubjectAlternativeName | undefined; - /** - * An unordered list of OIDs that must be verified. - * All OID/values provided in this list MUST exactly match against - * the values in the certificate for verification to be successful. - */ - oids: ObjectIdentifierValuePair[]; -} -export interface CertificateIdentities { - identities: CertificateIdentity[]; -} -export interface PublicKeyIdentities { - publicKeys: PublicKey[]; -} -/** - * A light-weight set of options/policies for identifying trusted signers, - * used during verification of a single artifact. - */ -export interface ArtifactVerificationOptions { - signers?: { - $case: "certificateIdentities"; - certificateIdentities: CertificateIdentities; - } | { - $case: "publicKeys"; - publicKeys: PublicKeyIdentities; - }; - /** - * Optional options for artifact transparency log verification. - * If none is provided, the default verification options are: - * Threshold: 1 - * Online verification: false - * Disable: false - */ - tlogOptions?: ArtifactVerificationOptions_TlogOptions | undefined; - /** - * Optional options for certificate transparency log verification. - * If none is provided, the default verification options are: - * Threshold: 1 - * Disable: false - */ - ctlogOptions?: ArtifactVerificationOptions_CtlogOptions | undefined; - /** - * Optional options for certificate signed timestamp verification. - * If none is provided, the default verification options are: - * Threshold: 0 - * Disable: true - */ - tsaOptions?: ArtifactVerificationOptions_TimestampAuthorityOptions | undefined; - /** - * Optional options for integrated timestamp verification. - * If none is provided, the default verification options are: - * Threshold: 0 - * Disable: true - */ - integratedTsOptions?: ArtifactVerificationOptions_TlogIntegratedTimestampOptions | undefined; - /** - * Optional options for observed timestamp verification. - * If none is provided, the default verification options are: - * Threshold 1 - * Disable: false - */ - observerOptions?: ArtifactVerificationOptions_ObserverTimestampOptions | undefined; -} -export interface ArtifactVerificationOptions_TlogOptions { - /** Number of transparency logs the entry must appear on. */ - threshold: number; - /** Perform an online inclusion proof. */ - performOnlineVerification: boolean; - /** Disable verification for transparency logs. */ - disable: boolean; -} -export interface ArtifactVerificationOptions_CtlogOptions { - /** - * The number of ct transparency logs the certificate must - * appear on. - */ - threshold: number; - /** Disable ct transparency log verification */ - disable: boolean; -} -export interface ArtifactVerificationOptions_TimestampAuthorityOptions { - /** The number of signed timestamps that are expected. */ - threshold: number; - /** Disable signed timestamp verification. */ - disable: boolean; -} -export interface ArtifactVerificationOptions_TlogIntegratedTimestampOptions { - /** The number of integrated timestamps that are expected. */ - threshold: number; - /** Disable integrated timestamp verification. */ - disable: boolean; -} -export interface ArtifactVerificationOptions_ObserverTimestampOptions { - /** - * The number of external observers of the timestamp. - * This is a union of RFC3161 signed timestamps, and - * integrated timestamps from a transparency log, that - * could include additional timestamp sources in the - * future. - */ - threshold: number; - /** Disable observer timestamp verification. */ - disable: boolean; -} -export interface Artifact { - data?: { - $case: "artifactUri"; - artifactUri: string; - } | { - $case: "artifact"; - artifact: Buffer; - }; -} -/** - * Input captures all that is needed to call the bundle verification method, - * to verify a single artifact referenced by the bundle. - */ -export interface Input { - /** - * The verification materials provided during a bundle verification. - * The running process is usually preloaded with a "global" - * dev.sisgtore.trustroot.TrustedRoot.v1 instance. Prior to - * verifying an artifact (i.e a bundle), and/or based on current - * policy, some selection is expected to happen, to filter out the - * exact certificate authority to use, which transparency logs are - * relevant etc. The result should b ecaptured in the - * `artifact_trust_root`. - */ - artifactTrustRoot: TrustedRoot | undefined; - artifactVerificationOptions: ArtifactVerificationOptions | undefined; - bundle: Bundle | undefined; - /** - * If the bundle contains a message signature, the artifact must be - * provided. - */ - artifact?: Artifact | undefined; -} -export declare const CertificateIdentity: { - fromJSON(object: any): CertificateIdentity; - toJSON(message: CertificateIdentity): unknown; -}; -export declare const CertificateIdentities: { - fromJSON(object: any): CertificateIdentities; - toJSON(message: CertificateIdentities): unknown; -}; -export declare const PublicKeyIdentities: { - fromJSON(object: any): PublicKeyIdentities; - toJSON(message: PublicKeyIdentities): unknown; -}; -export declare const ArtifactVerificationOptions: { - fromJSON(object: any): ArtifactVerificationOptions; - toJSON(message: ArtifactVerificationOptions): unknown; -}; -export declare const ArtifactVerificationOptions_TlogOptions: { - fromJSON(object: any): ArtifactVerificationOptions_TlogOptions; - toJSON(message: ArtifactVerificationOptions_TlogOptions): unknown; -}; -export declare const ArtifactVerificationOptions_CtlogOptions: { - fromJSON(object: any): ArtifactVerificationOptions_CtlogOptions; - toJSON(message: ArtifactVerificationOptions_CtlogOptions): unknown; -}; -export declare const ArtifactVerificationOptions_TimestampAuthorityOptions: { - fromJSON(object: any): ArtifactVerificationOptions_TimestampAuthorityOptions; - toJSON(message: ArtifactVerificationOptions_TimestampAuthorityOptions): unknown; -}; -export declare const ArtifactVerificationOptions_TlogIntegratedTimestampOptions: { - fromJSON(object: any): ArtifactVerificationOptions_TlogIntegratedTimestampOptions; - toJSON(message: ArtifactVerificationOptions_TlogIntegratedTimestampOptions): unknown; -}; -export declare const ArtifactVerificationOptions_ObserverTimestampOptions: { - fromJSON(object: any): ArtifactVerificationOptions_ObserverTimestampOptions; - toJSON(message: ArtifactVerificationOptions_ObserverTimestampOptions): unknown; -}; -export declare const Artifact: { - fromJSON(object: any): Artifact; - toJSON(message: Artifact): unknown; -}; -export declare const Input: { - fromJSON(object: any): Input; - toJSON(message: Input): unknown; -}; diff --git a/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_verification.js b/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_verification.js deleted file mode 100644 index 4af83c5a..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_verification.js +++ /dev/null @@ -1,324 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Input = exports.Artifact = exports.ArtifactVerificationOptions_ObserverTimestampOptions = exports.ArtifactVerificationOptions_TlogIntegratedTimestampOptions = exports.ArtifactVerificationOptions_TimestampAuthorityOptions = exports.ArtifactVerificationOptions_CtlogOptions = exports.ArtifactVerificationOptions_TlogOptions = exports.ArtifactVerificationOptions = exports.PublicKeyIdentities = exports.CertificateIdentities = exports.CertificateIdentity = void 0; -/* eslint-disable */ -const sigstore_bundle_1 = require("./sigstore_bundle"); -const sigstore_common_1 = require("./sigstore_common"); -const sigstore_trustroot_1 = require("./sigstore_trustroot"); -function createBaseCertificateIdentity() { - return { issuer: "", san: undefined, oids: [] }; -} -exports.CertificateIdentity = { - fromJSON(object) { - return { - issuer: isSet(object.issuer) ? String(object.issuer) : "", - san: isSet(object.san) ? sigstore_common_1.SubjectAlternativeName.fromJSON(object.san) : undefined, - oids: Array.isArray(object?.oids) ? object.oids.map((e) => sigstore_common_1.ObjectIdentifierValuePair.fromJSON(e)) : [], - }; - }, - toJSON(message) { - const obj = {}; - message.issuer !== undefined && (obj.issuer = message.issuer); - message.san !== undefined && (obj.san = message.san ? sigstore_common_1.SubjectAlternativeName.toJSON(message.san) : undefined); - if (message.oids) { - obj.oids = message.oids.map((e) => e ? sigstore_common_1.ObjectIdentifierValuePair.toJSON(e) : undefined); - } - else { - obj.oids = []; - } - return obj; - }, -}; -function createBaseCertificateIdentities() { - return { identities: [] }; -} -exports.CertificateIdentities = { - fromJSON(object) { - return { - identities: Array.isArray(object?.identities) - ? object.identities.map((e) => exports.CertificateIdentity.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - if (message.identities) { - obj.identities = message.identities.map((e) => e ? exports.CertificateIdentity.toJSON(e) : undefined); - } - else { - obj.identities = []; - } - return obj; - }, -}; -function createBasePublicKeyIdentities() { - return { publicKeys: [] }; -} -exports.PublicKeyIdentities = { - fromJSON(object) { - return { - publicKeys: Array.isArray(object?.publicKeys) ? object.publicKeys.map((e) => sigstore_common_1.PublicKey.fromJSON(e)) : [], - }; - }, - toJSON(message) { - const obj = {}; - if (message.publicKeys) { - obj.publicKeys = message.publicKeys.map((e) => e ? sigstore_common_1.PublicKey.toJSON(e) : undefined); - } - else { - obj.publicKeys = []; - } - return obj; - }, -}; -function createBaseArtifactVerificationOptions() { - return { - signers: undefined, - tlogOptions: undefined, - ctlogOptions: undefined, - tsaOptions: undefined, - integratedTsOptions: undefined, - observerOptions: undefined, - }; -} -exports.ArtifactVerificationOptions = { - fromJSON(object) { - return { - signers: isSet(object.certificateIdentities) - ? { - $case: "certificateIdentities", - certificateIdentities: exports.CertificateIdentities.fromJSON(object.certificateIdentities), - } - : isSet(object.publicKeys) - ? { $case: "publicKeys", publicKeys: exports.PublicKeyIdentities.fromJSON(object.publicKeys) } - : undefined, - tlogOptions: isSet(object.tlogOptions) - ? exports.ArtifactVerificationOptions_TlogOptions.fromJSON(object.tlogOptions) - : undefined, - ctlogOptions: isSet(object.ctlogOptions) - ? exports.ArtifactVerificationOptions_CtlogOptions.fromJSON(object.ctlogOptions) - : undefined, - tsaOptions: isSet(object.tsaOptions) - ? exports.ArtifactVerificationOptions_TimestampAuthorityOptions.fromJSON(object.tsaOptions) - : undefined, - integratedTsOptions: isSet(object.integratedTsOptions) - ? exports.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.fromJSON(object.integratedTsOptions) - : undefined, - observerOptions: isSet(object.observerOptions) - ? exports.ArtifactVerificationOptions_ObserverTimestampOptions.fromJSON(object.observerOptions) - : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.signers?.$case === "certificateIdentities" && - (obj.certificateIdentities = message.signers?.certificateIdentities - ? exports.CertificateIdentities.toJSON(message.signers?.certificateIdentities) - : undefined); - message.signers?.$case === "publicKeys" && (obj.publicKeys = message.signers?.publicKeys - ? exports.PublicKeyIdentities.toJSON(message.signers?.publicKeys) - : undefined); - message.tlogOptions !== undefined && (obj.tlogOptions = message.tlogOptions - ? exports.ArtifactVerificationOptions_TlogOptions.toJSON(message.tlogOptions) - : undefined); - message.ctlogOptions !== undefined && (obj.ctlogOptions = message.ctlogOptions - ? exports.ArtifactVerificationOptions_CtlogOptions.toJSON(message.ctlogOptions) - : undefined); - message.tsaOptions !== undefined && (obj.tsaOptions = message.tsaOptions - ? exports.ArtifactVerificationOptions_TimestampAuthorityOptions.toJSON(message.tsaOptions) - : undefined); - message.integratedTsOptions !== undefined && (obj.integratedTsOptions = message.integratedTsOptions - ? exports.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.toJSON(message.integratedTsOptions) - : undefined); - message.observerOptions !== undefined && (obj.observerOptions = message.observerOptions - ? exports.ArtifactVerificationOptions_ObserverTimestampOptions.toJSON(message.observerOptions) - : undefined); - return obj; - }, -}; -function createBaseArtifactVerificationOptions_TlogOptions() { - return { threshold: 0, performOnlineVerification: false, disable: false }; -} -exports.ArtifactVerificationOptions_TlogOptions = { - fromJSON(object) { - return { - threshold: isSet(object.threshold) ? Number(object.threshold) : 0, - performOnlineVerification: isSet(object.performOnlineVerification) - ? Boolean(object.performOnlineVerification) - : false, - disable: isSet(object.disable) ? Boolean(object.disable) : false, - }; - }, - toJSON(message) { - const obj = {}; - message.threshold !== undefined && (obj.threshold = Math.round(message.threshold)); - message.performOnlineVerification !== undefined && - (obj.performOnlineVerification = message.performOnlineVerification); - message.disable !== undefined && (obj.disable = message.disable); - return obj; - }, -}; -function createBaseArtifactVerificationOptions_CtlogOptions() { - return { threshold: 0, disable: false }; -} -exports.ArtifactVerificationOptions_CtlogOptions = { - fromJSON(object) { - return { - threshold: isSet(object.threshold) ? Number(object.threshold) : 0, - disable: isSet(object.disable) ? Boolean(object.disable) : false, - }; - }, - toJSON(message) { - const obj = {}; - message.threshold !== undefined && (obj.threshold = Math.round(message.threshold)); - message.disable !== undefined && (obj.disable = message.disable); - return obj; - }, -}; -function createBaseArtifactVerificationOptions_TimestampAuthorityOptions() { - return { threshold: 0, disable: false }; -} -exports.ArtifactVerificationOptions_TimestampAuthorityOptions = { - fromJSON(object) { - return { - threshold: isSet(object.threshold) ? Number(object.threshold) : 0, - disable: isSet(object.disable) ? Boolean(object.disable) : false, - }; - }, - toJSON(message) { - const obj = {}; - message.threshold !== undefined && (obj.threshold = Math.round(message.threshold)); - message.disable !== undefined && (obj.disable = message.disable); - return obj; - }, -}; -function createBaseArtifactVerificationOptions_TlogIntegratedTimestampOptions() { - return { threshold: 0, disable: false }; -} -exports.ArtifactVerificationOptions_TlogIntegratedTimestampOptions = { - fromJSON(object) { - return { - threshold: isSet(object.threshold) ? Number(object.threshold) : 0, - disable: isSet(object.disable) ? Boolean(object.disable) : false, - }; - }, - toJSON(message) { - const obj = {}; - message.threshold !== undefined && (obj.threshold = Math.round(message.threshold)); - message.disable !== undefined && (obj.disable = message.disable); - return obj; - }, -}; -function createBaseArtifactVerificationOptions_ObserverTimestampOptions() { - return { threshold: 0, disable: false }; -} -exports.ArtifactVerificationOptions_ObserverTimestampOptions = { - fromJSON(object) { - return { - threshold: isSet(object.threshold) ? Number(object.threshold) : 0, - disable: isSet(object.disable) ? Boolean(object.disable) : false, - }; - }, - toJSON(message) { - const obj = {}; - message.threshold !== undefined && (obj.threshold = Math.round(message.threshold)); - message.disable !== undefined && (obj.disable = message.disable); - return obj; - }, -}; -function createBaseArtifact() { - return { data: undefined }; -} -exports.Artifact = { - fromJSON(object) { - return { - data: isSet(object.artifactUri) - ? { $case: "artifactUri", artifactUri: String(object.artifactUri) } - : isSet(object.artifact) - ? { $case: "artifact", artifact: Buffer.from(bytesFromBase64(object.artifact)) } - : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.data?.$case === "artifactUri" && (obj.artifactUri = message.data?.artifactUri); - message.data?.$case === "artifact" && - (obj.artifact = message.data?.artifact !== undefined ? base64FromBytes(message.data?.artifact) : undefined); - return obj; - }, -}; -function createBaseInput() { - return { - artifactTrustRoot: undefined, - artifactVerificationOptions: undefined, - bundle: undefined, - artifact: undefined, - }; -} -exports.Input = { - fromJSON(object) { - return { - artifactTrustRoot: isSet(object.artifactTrustRoot) ? sigstore_trustroot_1.TrustedRoot.fromJSON(object.artifactTrustRoot) : undefined, - artifactVerificationOptions: isSet(object.artifactVerificationOptions) - ? exports.ArtifactVerificationOptions.fromJSON(object.artifactVerificationOptions) - : undefined, - bundle: isSet(object.bundle) ? sigstore_bundle_1.Bundle.fromJSON(object.bundle) : undefined, - artifact: isSet(object.artifact) ? exports.Artifact.fromJSON(object.artifact) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.artifactTrustRoot !== undefined && - (obj.artifactTrustRoot = message.artifactTrustRoot ? sigstore_trustroot_1.TrustedRoot.toJSON(message.artifactTrustRoot) : undefined); - message.artifactVerificationOptions !== undefined && - (obj.artifactVerificationOptions = message.artifactVerificationOptions - ? exports.ArtifactVerificationOptions.toJSON(message.artifactVerificationOptions) - : undefined); - message.bundle !== undefined && (obj.bundle = message.bundle ? sigstore_bundle_1.Bundle.toJSON(message.bundle) : undefined); - message.artifact !== undefined && (obj.artifact = message.artifact ? exports.Artifact.toJSON(message.artifact) : undefined); - return obj; - }, -}; -var tsProtoGlobalThis = (() => { - if (typeof globalThis !== "undefined") { - return globalThis; - } - if (typeof self !== "undefined") { - return self; - } - if (typeof window !== "undefined") { - return window; - } - if (typeof global !== "undefined") { - return global; - } - throw "Unable to locate global object"; -})(); -function bytesFromBase64(b64) { - if (tsProtoGlobalThis.Buffer) { - return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); - } - else { - const bin = tsProtoGlobalThis.atob(b64); - const arr = new Uint8Array(bin.length); - for (let i = 0; i < bin.length; ++i) { - arr[i] = bin.charCodeAt(i); - } - return arr; - } -} -function base64FromBytes(arr) { - if (tsProtoGlobalThis.Buffer) { - return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); - } - else { - const bin = []; - arr.forEach((byte) => { - bin.push(String.fromCharCode(byte)); - }); - return tsProtoGlobalThis.btoa(bin.join("")); - } -} -function isSet(value) { - return value !== null && value !== undefined; -} diff --git a/node_modules/@sigstore/protobuf-specs/dist/index.d.ts b/node_modules/@sigstore/protobuf-specs/dist/index.d.ts deleted file mode 100644 index f87f0aba..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from './__generated__/envelope'; -export * from './__generated__/sigstore_bundle'; -export * from './__generated__/sigstore_common'; -export * from './__generated__/sigstore_rekor'; -export * from './__generated__/sigstore_trustroot'; -export * from './__generated__/sigstore_verification'; diff --git a/node_modules/@sigstore/protobuf-specs/dist/index.js b/node_modules/@sigstore/protobuf-specs/dist/index.js deleted file mode 100644 index eafb768c..00000000 --- a/node_modules/@sigstore/protobuf-specs/dist/index.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -__exportStar(require("./__generated__/envelope"), exports); -__exportStar(require("./__generated__/sigstore_bundle"), exports); -__exportStar(require("./__generated__/sigstore_common"), exports); -__exportStar(require("./__generated__/sigstore_rekor"), exports); -__exportStar(require("./__generated__/sigstore_trustroot"), exports); -__exportStar(require("./__generated__/sigstore_verification"), exports); diff --git a/node_modules/@sigstore/sign/dist/bundler/base.d.ts b/node_modules/@sigstore/sign/dist/bundler/base.d.ts deleted file mode 100644 index 6f3cb27b..00000000 --- a/node_modules/@sigstore/sign/dist/bundler/base.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/// -import type { Bundle } from '@sigstore/bundle'; -import type { Signature, Signer } from '../signer'; -import type { Witness } from '../witness'; -export interface BundleBuilderOptions { - signer: Signer; - witnesses: Witness[]; -} -export interface Artifact { - data: Buffer; - type?: string; -} -export interface BundleBuilder { - create: (artifact: Artifact) => Promise; -} -export declare abstract class BaseBundleBuilder implements BundleBuilder { - protected signer: Signer; - private witnesses; - constructor(options: BundleBuilderOptions); - create(artifact: Artifact): Promise; - protected prepare(artifact: Artifact): Promise; - protected abstract package(artifact: Artifact, signature: Signature): Promise; -} diff --git a/node_modules/@sigstore/sign/dist/bundler/base.js b/node_modules/@sigstore/sign/dist/bundler/base.js deleted file mode 100644 index 61d5eba4..00000000 --- a/node_modules/@sigstore/sign/dist/bundler/base.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BaseBundleBuilder = void 0; -// BaseBundleBuilder is a base class for BundleBuilder implementations. It -// provides a the basic wokflow for signing and witnessing an artifact. -// Subclasses must implement the `package` method to assemble a valid bundle -// with the generated signature and verification material. -class BaseBundleBuilder { - constructor(options) { - this.signer = options.signer; - this.witnesses = options.witnesses; - } - // Executes the signing/witnessing process for the given artifact. - async create(artifact) { - const signature = await this.prepare(artifact).then((blob) => this.signer.sign(blob)); - const bundle = await this.package(artifact, signature); - // Invoke all of the witnesses in parallel - const verificationMaterials = await Promise.all(this.witnesses.map((witness) => witness.testify(bundle.content, publicKey(signature.key)))); - // Collect the verification material from all of the witnesses - const tlogEntryList = []; - const timestampList = []; - verificationMaterials.forEach(({ tlogEntries, rfc3161Timestamps }) => { - tlogEntryList.push(...(tlogEntries ?? [])); - timestampList.push(...(rfc3161Timestamps ?? [])); - }); - // Merge the collected verification material into the bundle - bundle.verificationMaterial.tlogEntries = tlogEntryList; - bundle.verificationMaterial.timestampVerificationData = { - rfc3161Timestamps: timestampList, - }; - return bundle; - } - // Override this function to apply any pre-signing transformations to the - // artifact. The returned buffer will be signed by the signer. The default - // implementation simply returns the artifact data. - async prepare(artifact) { - return artifact.data; - } -} -exports.BaseBundleBuilder = BaseBundleBuilder; -// Extracts the public key from a KeyMaterial. Returns either the public key -// or the certificate, depending on the type of key material. -function publicKey(key) { - switch (key.$case) { - case 'publicKey': - return key.publicKey; - case 'x509Certificate': - return key.certificate; - } -} diff --git a/node_modules/@sigstore/sign/dist/bundler/bundle.d.ts b/node_modules/@sigstore/sign/dist/bundler/bundle.d.ts deleted file mode 100644 index 805c9df9..00000000 --- a/node_modules/@sigstore/sign/dist/bundler/bundle.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import * as sigstore from '@sigstore/bundle'; -import type { Signature } from '../signer'; -import type { Artifact } from './base'; -export declare function toMessageSignatureBundle(artifact: Artifact, signature: Signature): sigstore.BundleWithMessageSignature; -export declare function toDSSEBundle(artifact: Required, signature: Signature): sigstore.BundleWithDsseEnvelope; diff --git a/node_modules/@sigstore/sign/dist/bundler/bundle.js b/node_modules/@sigstore/sign/dist/bundler/bundle.js deleted file mode 100644 index f01aac25..00000000 --- a/node_modules/@sigstore/sign/dist/bundler/bundle.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toDSSEBundle = exports.toMessageSignatureBundle = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const sigstore = __importStar(require("@sigstore/bundle")); -const util_1 = require("../util"); -// Helper functions for assembling the parts of a Sigstore bundle -// Message signature bundle - $case: 'messageSignature' -function toMessageSignatureBundle(artifact, signature) { - const digest = util_1.crypto.hash(artifact.data); - return sigstore.toMessageSignatureBundle({ - digest, - signature: signature.signature, - certificate: signature.key.$case === 'x509Certificate' - ? util_1.pem.toDER(signature.key.certificate) - : undefined, - keyHint: signature.key.$case === 'publicKey' ? signature.key.hint : undefined, - }); -} -exports.toMessageSignatureBundle = toMessageSignatureBundle; -// DSSE envelope bundle - $case: 'dsseEnvelope' -function toDSSEBundle(artifact, signature) { - return sigstore.toDSSEBundle({ - artifact: artifact.data, - artifactType: artifact.type, - signature: signature.signature, - certificate: signature.key.$case === 'x509Certificate' - ? util_1.pem.toDER(signature.key.certificate) - : undefined, - keyHint: signature.key.$case === 'publicKey' ? signature.key.hint : undefined, - }); -} -exports.toDSSEBundle = toDSSEBundle; diff --git a/node_modules/@sigstore/sign/dist/bundler/dsse.d.ts b/node_modules/@sigstore/sign/dist/bundler/dsse.d.ts deleted file mode 100644 index 8c74d32d..00000000 --- a/node_modules/@sigstore/sign/dist/bundler/dsse.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// -import { Artifact, BaseBundleBuilder, BundleBuilderOptions } from './base'; -import type { BundleWithDsseEnvelope } from '@sigstore/bundle'; -import type { Signature } from '../signer'; -export declare class DSSEBundleBuilder extends BaseBundleBuilder { - constructor(options: BundleBuilderOptions); - protected prepare(artifact: Artifact): Promise; - protected package(artifact: Artifact, signature: Signature): Promise; -} diff --git a/node_modules/@sigstore/sign/dist/bundler/dsse.js b/node_modules/@sigstore/sign/dist/bundler/dsse.js deleted file mode 100644 index 486d289a..00000000 --- a/node_modules/@sigstore/sign/dist/bundler/dsse.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DSSEBundleBuilder = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const util_1 = require("../util"); -const base_1 = require("./base"); -const bundle_1 = require("./bundle"); -// BundleBuilder implementation for DSSE wrapped attestations -class DSSEBundleBuilder extends base_1.BaseBundleBuilder { - constructor(options) { - super(options); - } - // DSSE requires the artifact to be pre-encoded with the payload type - // before the signature is generated. - async prepare(artifact) { - const a = artifactDefaults(artifact); - return util_1.dsse.preAuthEncoding(a.type, a.data); - } - // Packages the artifact and signature into a DSSE bundle - async package(artifact, signature) { - return (0, bundle_1.toDSSEBundle)(artifactDefaults(artifact), signature); - } -} -exports.DSSEBundleBuilder = DSSEBundleBuilder; -// Defaults the artifact type to an empty string if not provided -function artifactDefaults(artifact) { - return { - ...artifact, - type: artifact.type ?? '', - }; -} diff --git a/node_modules/@sigstore/sign/dist/bundler/index.d.ts b/node_modules/@sigstore/sign/dist/bundler/index.d.ts deleted file mode 100644 index 0df3584f..00000000 --- a/node_modules/@sigstore/sign/dist/bundler/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export type { Artifact, BundleBuilder, BundleBuilderOptions } from './base'; -export { DSSEBundleBuilder } from './dsse'; -export { MessageSignatureBundleBuilder } from './message'; diff --git a/node_modules/@sigstore/sign/dist/bundler/index.js b/node_modules/@sigstore/sign/dist/bundler/index.js deleted file mode 100644 index d67c8c32..00000000 --- a/node_modules/@sigstore/sign/dist/bundler/index.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageSignatureBundleBuilder = exports.DSSEBundleBuilder = void 0; -var dsse_1 = require("./dsse"); -Object.defineProperty(exports, "DSSEBundleBuilder", { enumerable: true, get: function () { return dsse_1.DSSEBundleBuilder; } }); -var message_1 = require("./message"); -Object.defineProperty(exports, "MessageSignatureBundleBuilder", { enumerable: true, get: function () { return message_1.MessageSignatureBundleBuilder; } }); diff --git a/node_modules/@sigstore/sign/dist/bundler/message.d.ts b/node_modules/@sigstore/sign/dist/bundler/message.d.ts deleted file mode 100644 index 461b76bf..00000000 --- a/node_modules/@sigstore/sign/dist/bundler/message.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Artifact, BaseBundleBuilder, BundleBuilderOptions } from './base'; -import type { BundleWithMessageSignature } from '@sigstore/bundle'; -import type { Signature } from '../signer'; -export declare class MessageSignatureBundleBuilder extends BaseBundleBuilder { - constructor(options: BundleBuilderOptions); - protected package(artifact: Artifact, signature: Signature): Promise; -} diff --git a/node_modules/@sigstore/sign/dist/bundler/message.js b/node_modules/@sigstore/sign/dist/bundler/message.js deleted file mode 100644 index e3991f42..00000000 --- a/node_modules/@sigstore/sign/dist/bundler/message.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageSignatureBundleBuilder = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const base_1 = require("./base"); -const bundle_1 = require("./bundle"); -// BundleBuilder implementation for raw message signatures -class MessageSignatureBundleBuilder extends base_1.BaseBundleBuilder { - constructor(options) { - super(options); - } - async package(artifact, signature) { - return (0, bundle_1.toMessageSignatureBundle)(artifact, signature); - } -} -exports.MessageSignatureBundleBuilder = MessageSignatureBundleBuilder; diff --git a/node_modules/@sigstore/sign/dist/error.d.ts b/node_modules/@sigstore/sign/dist/error.d.ts deleted file mode 100644 index 08089537..00000000 --- a/node_modules/@sigstore/sign/dist/error.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -type InternalErrorCode = 'TLOG_FETCH_ENTRY_ERROR' | 'TLOG_CREATE_ENTRY_ERROR' | 'CA_CREATE_SIGNING_CERTIFICATE_ERROR' | 'TSA_CREATE_TIMESTAMP_ERROR' | 'IDENTITY_TOKEN_READ_ERROR'; -export declare class InternalError extends Error { - code: InternalErrorCode; - cause: any | undefined; - constructor({ code, message, cause, }: { - code: InternalErrorCode; - message: string; - cause?: any; - }); -} -export {}; diff --git a/node_modules/@sigstore/sign/dist/error.js b/node_modules/@sigstore/sign/dist/error.js deleted file mode 100644 index b52ea7ee..00000000 --- a/node_modules/@sigstore/sign/dist/error.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.InternalError = void 0; -class InternalError extends Error { - constructor({ code, message, cause, }) { - super(message); - this.name = this.constructor.name; - this.cause = cause; - this.code = code; - } -} -exports.InternalError = InternalError; diff --git a/node_modules/@sigstore/sign/dist/external/error.d.ts b/node_modules/@sigstore/sign/dist/external/error.d.ts deleted file mode 100644 index 87a4bc54..00000000 --- a/node_modules/@sigstore/sign/dist/external/error.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import fetch from 'make-fetch-happen'; -type Response = Awaited>; -export declare class HTTPError extends Error { - response: Response; - statusCode: number; - location?: string; - constructor(response: Response); -} -export declare const checkStatus: (response: Response) => Response; -export {}; diff --git a/node_modules/@sigstore/sign/dist/external/error.js b/node_modules/@sigstore/sign/dist/external/error.js deleted file mode 100644 index d1e1c3df..00000000 --- a/node_modules/@sigstore/sign/dist/external/error.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.checkStatus = exports.HTTPError = void 0; -class HTTPError extends Error { - constructor(response) { - super(`HTTP Error: ${response.status} ${response.statusText}`); - this.response = response; - this.statusCode = response.status; - this.location = response.headers?.get('Location') || undefined; - } -} -exports.HTTPError = HTTPError; -const checkStatus = (response) => { - if (response.ok) { - return response; - } - else { - throw new HTTPError(response); - } -}; -exports.checkStatus = checkStatus; diff --git a/node_modules/@sigstore/sign/dist/external/fulcio.d.ts b/node_modules/@sigstore/sign/dist/external/fulcio.d.ts deleted file mode 100644 index 64b0fc5e..00000000 --- a/node_modules/@sigstore/sign/dist/external/fulcio.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import type { FetchOptions } from '../types/fetch'; -export type FulcioOptions = { - baseURL: string; -} & FetchOptions; -export interface SigningCertificateRequest { - credentials: { - oidcIdentityToken: string; - }; - publicKeyRequest: { - publicKey: { - algorithm: string; - content: string; - }; - proofOfPossession: string; - }; -} -export interface SigningCertificateResponse { - signedCertificateEmbeddedSct?: { - chain: { - certificates: string[]; - }; - }; - signedCertificateDetachedSct?: { - chain: { - certificates: string[]; - }; - signedCertificateTimestamp: string; - }; -} -/** - * Fulcio API client. - */ -export declare class Fulcio { - private fetch; - private baseUrl; - constructor(options: FulcioOptions); - createSigningCertificate(request: SigningCertificateRequest): Promise; -} diff --git a/node_modules/@sigstore/sign/dist/external/fulcio.js b/node_modules/@sigstore/sign/dist/external/fulcio.js deleted file mode 100644 index b27637c2..00000000 --- a/node_modules/@sigstore/sign/dist/external/fulcio.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Fulcio = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const make_fetch_happen_1 = __importDefault(require("make-fetch-happen")); -const util_1 = require("../util"); -const error_1 = require("./error"); -/** - * Fulcio API client. - */ -class Fulcio { - constructor(options) { - this.fetch = make_fetch_happen_1.default.defaults({ - retry: options.retry, - timeout: options.timeout, - headers: { - 'Content-Type': 'application/json', - 'User-Agent': util_1.ua.getUserAgent(), - }, - }); - this.baseUrl = options.baseURL; - } - async createSigningCertificate(request) { - const url = `${this.baseUrl}/api/v2/signingCert`; - const response = await this.fetch(url, { - method: 'POST', - body: JSON.stringify(request), - }); - (0, error_1.checkStatus)(response); - const data = await response.json(); - return data; - } -} -exports.Fulcio = Fulcio; diff --git a/node_modules/@sigstore/sign/dist/external/rekor.d.ts b/node_modules/@sigstore/sign/dist/external/rekor.d.ts deleted file mode 100644 index 4341aa61..00000000 --- a/node_modules/@sigstore/sign/dist/external/rekor.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import type { LogEntry, ProposedDSSEEntry, ProposedEntry, ProposedHashedRekordEntry, ProposedIntotoEntry, SearchIndex, SearchLogQuery } from '@sigstore/rekor-types'; -import type { FetchOptions } from '../types/fetch'; -export type { ProposedDSSEEntry, ProposedEntry, ProposedHashedRekordEntry, ProposedIntotoEntry, SearchIndex, SearchLogQuery, }; -export type Entry = { - uuid: string; -} & LogEntry[string]; -export type RekorOptions = { - baseURL: string; -} & FetchOptions; -/** - * Rekor API client. - */ -export declare class Rekor { - private fetch; - private baseUrl; - constructor(options: RekorOptions); - /** - * Create a new entry in the Rekor log. - * @param propsedEntry {ProposedEntry} Data to create a new entry - * @returns {Promise} The created entry - */ - createEntry(propsedEntry: ProposedEntry): Promise; - /** - * Get an entry from the Rekor log. - * @param uuid {string} The UUID of the entry to retrieve - * @returns {Promise} The retrieved entry - */ - getEntry(uuid: string): Promise; - /** - * Search the Rekor log index for entries matching the given query. - * @param opts {SearchIndex} Options to search the Rekor log - * @returns {Promise} UUIDs of matching entries - */ - searchIndex(opts: SearchIndex): Promise; - /** - * Search the Rekor logs for matching the given query. - * @param opts {SearchLogQuery} Query to search the Rekor log - * @returns {Promise} List of matching entries - */ - searchLog(opts: SearchLogQuery): Promise; -} diff --git a/node_modules/@sigstore/sign/dist/external/rekor.js b/node_modules/@sigstore/sign/dist/external/rekor.js deleted file mode 100644 index 9b4e66b6..00000000 --- a/node_modules/@sigstore/sign/dist/external/rekor.js +++ /dev/null @@ -1,115 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Rekor = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const make_fetch_happen_1 = __importDefault(require("make-fetch-happen")); -const util_1 = require("../util"); -const error_1 = require("./error"); -/** - * Rekor API client. - */ -class Rekor { - constructor(options) { - this.fetch = make_fetch_happen_1.default.defaults({ - retry: options.retry, - timeout: options.timeout, - headers: { - Accept: 'application/json', - 'User-Agent': util_1.ua.getUserAgent(), - }, - }); - this.baseUrl = options.baseURL; - } - /** - * Create a new entry in the Rekor log. - * @param propsedEntry {ProposedEntry} Data to create a new entry - * @returns {Promise} The created entry - */ - async createEntry(propsedEntry) { - const url = `${this.baseUrl}/api/v1/log/entries`; - const response = await this.fetch(url, { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify(propsedEntry), - }); - (0, error_1.checkStatus)(response); - const data = await response.json(); - return entryFromResponse(data); - } - /** - * Get an entry from the Rekor log. - * @param uuid {string} The UUID of the entry to retrieve - * @returns {Promise} The retrieved entry - */ - async getEntry(uuid) { - const url = `${this.baseUrl}/api/v1/log/entries/${uuid}`; - const response = await this.fetch(url); - (0, error_1.checkStatus)(response); - const data = await response.json(); - return entryFromResponse(data); - } - /** - * Search the Rekor log index for entries matching the given query. - * @param opts {SearchIndex} Options to search the Rekor log - * @returns {Promise} UUIDs of matching entries - */ - async searchIndex(opts) { - const url = `${this.baseUrl}/api/v1/index/retrieve`; - const response = await this.fetch(url, { - method: 'POST', - body: JSON.stringify(opts), - headers: { 'Content-Type': 'application/json' }, - }); - (0, error_1.checkStatus)(response); - const data = await response.json(); - return data; - } - /** - * Search the Rekor logs for matching the given query. - * @param opts {SearchLogQuery} Query to search the Rekor log - * @returns {Promise} List of matching entries - */ - async searchLog(opts) { - const url = `${this.baseUrl}/api/v1/log/entries/retrieve`; - const response = await this.fetch(url, { - method: 'POST', - body: JSON.stringify(opts), - headers: { 'Content-Type': 'application/json' }, - }); - (0, error_1.checkStatus)(response); - const rawData = await response.json(); - const data = rawData.map((d) => entryFromResponse(d)); - return data; - } -} -exports.Rekor = Rekor; -// Unpack the response from the Rekor API into a more convenient format. -function entryFromResponse(data) { - const entries = Object.entries(data); - if (entries.length != 1) { - throw new Error('Received multiple entries in Rekor response'); - } - // Grab UUID and entry data from the response - const [uuid, entry] = entries[0]; - return { - ...entry, - uuid, - }; -} diff --git a/node_modules/@sigstore/sign/dist/external/tsa.d.ts b/node_modules/@sigstore/sign/dist/external/tsa.d.ts deleted file mode 100644 index 9b5f3115..00000000 --- a/node_modules/@sigstore/sign/dist/external/tsa.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/// -import type { FetchOptions } from '../types/fetch'; -export interface TimestampRequest { - artifactHash: string; - hashAlgorithm: string; - certificates?: boolean; - nonce?: number; - tsaPolicyOID?: string; -} -export type TimestampAuthorityOptions = { - baseURL: string; -} & FetchOptions; -export declare class TimestampAuthority { - private fetch; - private baseUrl; - constructor(options: TimestampAuthorityOptions); - createTimestamp(request: TimestampRequest): Promise; -} diff --git a/node_modules/@sigstore/sign/dist/external/tsa.js b/node_modules/@sigstore/sign/dist/external/tsa.js deleted file mode 100644 index 5277d7d3..00000000 --- a/node_modules/@sigstore/sign/dist/external/tsa.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TimestampAuthority = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const make_fetch_happen_1 = __importDefault(require("make-fetch-happen")); -const util_1 = require("../util"); -const error_1 = require("./error"); -class TimestampAuthority { - constructor(options) { - this.fetch = make_fetch_happen_1.default.defaults({ - retry: options.retry, - timeout: options.timeout, - headers: { - 'Content-Type': 'application/json', - 'User-Agent': util_1.ua.getUserAgent(), - }, - }); - this.baseUrl = options.baseURL; - } - async createTimestamp(request) { - const url = `${this.baseUrl}/api/v1/timestamp`; - const response = await this.fetch(url, { - method: 'POST', - body: JSON.stringify(request), - }); - (0, error_1.checkStatus)(response); - return response.buffer(); - } -} -exports.TimestampAuthority = TimestampAuthority; diff --git a/node_modules/@sigstore/sign/dist/identity/ci.d.ts b/node_modules/@sigstore/sign/dist/identity/ci.d.ts deleted file mode 100644 index 7d70f344..00000000 --- a/node_modules/@sigstore/sign/dist/identity/ci.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { IdentityProvider } from './provider'; -/** - * CIContextProvider is a composite identity provider which will iterate - * over all of the CI-specific providers and return the token from the first - * one that resolves. - */ -export declare class CIContextProvider implements IdentityProvider { - private audience; - constructor(audience?: string); - getToken(): Promise; -} diff --git a/node_modules/@sigstore/sign/dist/identity/ci.js b/node_modules/@sigstore/sign/dist/identity/ci.js deleted file mode 100644 index 6397aa51..00000000 --- a/node_modules/@sigstore/sign/dist/identity/ci.js +++ /dev/null @@ -1,76 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CIContextProvider = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const make_fetch_happen_1 = __importDefault(require("make-fetch-happen")); -const util_1 = require("../util"); -// Collection of all the CI-specific providers we have implemented -const providers = [getGHAToken, getEnv]; -/** - * CIContextProvider is a composite identity provider which will iterate - * over all of the CI-specific providers and return the token from the first - * one that resolves. - */ -class CIContextProvider { - /* istanbul ignore next */ - constructor(audience = 'sigstore') { - this.audience = audience; - } - // Invoke all registered ProviderFuncs and return the value of whichever one - // resolves first. - async getToken() { - return util_1.promise - .promiseAny(providers.map((getToken) => getToken(this.audience))) - .catch(() => Promise.reject('CI: no tokens available')); - } -} -exports.CIContextProvider = CIContextProvider; -/** - * getGHAToken can retrieve an OIDC token when running in a GitHub Actions - * workflow - */ -async function getGHAToken(audience) { - // Check to see if we're running in GitHub Actions - if (!process.env.ACTIONS_ID_TOKEN_REQUEST_URL || - !process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN) { - return Promise.reject('no token available'); - } - // Construct URL to request token w/ appropriate audience - const url = new URL(process.env.ACTIONS_ID_TOKEN_REQUEST_URL); - url.searchParams.append('audience', audience); - const response = await (0, make_fetch_happen_1.default)(url.href, { - retry: 2, - headers: { - Accept: 'application/json', - Authorization: `Bearer ${process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN}`, - }, - }); - return response.json().then((data) => data.value); -} -/** - * getEnv can retrieve an OIDC token from an environment variable. - * This matches the behavior of https://github.com/sigstore/cosign/tree/main/pkg/providers/envvar - */ -async function getEnv() { - if (!process.env.SIGSTORE_ID_TOKEN) { - return Promise.reject('no token available'); - } - return process.env.SIGSTORE_ID_TOKEN; -} diff --git a/node_modules/@sigstore/sign/dist/identity/index.d.ts b/node_modules/@sigstore/sign/dist/identity/index.d.ts deleted file mode 100644 index 70d88eb5..00000000 --- a/node_modules/@sigstore/sign/dist/identity/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { CIContextProvider } from './ci'; -export type { IdentityProvider } from './provider'; diff --git a/node_modules/@sigstore/sign/dist/identity/index.js b/node_modules/@sigstore/sign/dist/identity/index.js deleted file mode 100644 index 1c1223b4..00000000 --- a/node_modules/@sigstore/sign/dist/identity/index.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CIContextProvider = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -var ci_1 = require("./ci"); -Object.defineProperty(exports, "CIContextProvider", { enumerable: true, get: function () { return ci_1.CIContextProvider; } }); diff --git a/node_modules/@sigstore/sign/dist/identity/provider.d.ts b/node_modules/@sigstore/sign/dist/identity/provider.d.ts deleted file mode 100644 index f5f4d9b3..00000000 --- a/node_modules/@sigstore/sign/dist/identity/provider.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export interface IdentityProvider { - getToken: () => Promise; -} diff --git a/node_modules/@sigstore/sign/dist/identity/provider.js b/node_modules/@sigstore/sign/dist/identity/provider.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@sigstore/sign/dist/identity/provider.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@sigstore/sign/dist/index.d.ts b/node_modules/@sigstore/sign/dist/index.d.ts deleted file mode 100644 index c467b885..00000000 --- a/node_modules/@sigstore/sign/dist/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export type { Bundle } from '@sigstore/bundle'; -export { DSSEBundleBuilder, MessageSignatureBundleBuilder } from './bundler'; -export type { Artifact, BundleBuilder, BundleBuilderOptions } from './bundler'; -export { InternalError } from './error'; -export { CIContextProvider } from './identity'; -export type { IdentityProvider } from './identity'; -export { FulcioSigner } from './signer'; -export type { FulcioSignerOptions, Signature, Signer } from './signer'; -export { RekorWitness, TSAWitness } from './witness'; -export type { RekorWitnessOptions, SignatureBundle, TSAWitnessOptions, VerificationMaterial, Witness, } from './witness'; diff --git a/node_modules/@sigstore/sign/dist/index.js b/node_modules/@sigstore/sign/dist/index.js deleted file mode 100644 index f6d97c67..00000000 --- a/node_modules/@sigstore/sign/dist/index.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSAWitness = exports.RekorWitness = exports.FulcioSigner = exports.CIContextProvider = exports.InternalError = exports.MessageSignatureBundleBuilder = exports.DSSEBundleBuilder = void 0; -var bundler_1 = require("./bundler"); -Object.defineProperty(exports, "DSSEBundleBuilder", { enumerable: true, get: function () { return bundler_1.DSSEBundleBuilder; } }); -Object.defineProperty(exports, "MessageSignatureBundleBuilder", { enumerable: true, get: function () { return bundler_1.MessageSignatureBundleBuilder; } }); -var error_1 = require("./error"); -Object.defineProperty(exports, "InternalError", { enumerable: true, get: function () { return error_1.InternalError; } }); -var identity_1 = require("./identity"); -Object.defineProperty(exports, "CIContextProvider", { enumerable: true, get: function () { return identity_1.CIContextProvider; } }); -var signer_1 = require("./signer"); -Object.defineProperty(exports, "FulcioSigner", { enumerable: true, get: function () { return signer_1.FulcioSigner; } }); -var witness_1 = require("./witness"); -Object.defineProperty(exports, "RekorWitness", { enumerable: true, get: function () { return witness_1.RekorWitness; } }); -Object.defineProperty(exports, "TSAWitness", { enumerable: true, get: function () { return witness_1.TSAWitness; } }); diff --git a/node_modules/@sigstore/sign/dist/signer/fulcio/ca.d.ts b/node_modules/@sigstore/sign/dist/signer/fulcio/ca.d.ts deleted file mode 100644 index 5c179b7d..00000000 --- a/node_modules/@sigstore/sign/dist/signer/fulcio/ca.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -import type { FetchOptions } from '../../types/fetch'; -export interface CA { - createSigningCertificate: (identityToken: string, publicKey: string, challenge: Buffer) => Promise; -} -export type CAClientOptions = { - fulcioBaseURL: string; -} & FetchOptions; -export declare class CAClient implements CA { - private fulcio; - constructor(options: CAClientOptions); - createSigningCertificate(identityToken: string, publicKey: string, challenge: Buffer): Promise; -} diff --git a/node_modules/@sigstore/sign/dist/signer/fulcio/ca.js b/node_modules/@sigstore/sign/dist/signer/fulcio/ca.js deleted file mode 100644 index 9c0af0e9..00000000 --- a/node_modules/@sigstore/sign/dist/signer/fulcio/ca.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CAClient = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const error_1 = require("../../error"); -const fulcio_1 = require("../../external/fulcio"); -class CAClient { - constructor(options) { - this.fulcio = new fulcio_1.Fulcio({ - baseURL: options.fulcioBaseURL, - retry: options.retry, - timeout: options.timeout, - }); - } - async createSigningCertificate(identityToken, publicKey, challenge) { - const request = toCertificateRequest(identityToken, publicKey, challenge); - try { - const resp = await this.fulcio.createSigningCertificate(request); - // Account for the fact that the response may contain either a - // signedCertificateEmbeddedSct or a signedCertificateDetachedSct. - const cert = resp.signedCertificateEmbeddedSct - ? resp.signedCertificateEmbeddedSct - : resp.signedCertificateDetachedSct; - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - return cert.chain.certificates; - } - catch (err) { - throw new error_1.InternalError({ - code: 'CA_CREATE_SIGNING_CERTIFICATE_ERROR', - message: 'error creating signing certificate', - cause: err, - }); - } - } -} -exports.CAClient = CAClient; -function toCertificateRequest(identityToken, publicKey, challenge) { - return { - credentials: { - oidcIdentityToken: identityToken, - }, - publicKeyRequest: { - publicKey: { - algorithm: 'ECDSA', - content: publicKey, - }, - proofOfPossession: challenge.toString('base64'), - }, - }; -} diff --git a/node_modules/@sigstore/sign/dist/signer/fulcio/ephemeral.d.ts b/node_modules/@sigstore/sign/dist/signer/fulcio/ephemeral.d.ts deleted file mode 100644 index a23acc5c..00000000 --- a/node_modules/@sigstore/sign/dist/signer/fulcio/ephemeral.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/// -import type { Signature, Signer } from '../signer'; -export declare class EphemeralSigner implements Signer { - private keypair; - constructor(); - sign(data: Buffer): Promise; -} diff --git a/node_modules/@sigstore/sign/dist/signer/fulcio/ephemeral.js b/node_modules/@sigstore/sign/dist/signer/fulcio/ephemeral.js deleted file mode 100644 index 481aa5c3..00000000 --- a/node_modules/@sigstore/sign/dist/signer/fulcio/ephemeral.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EphemeralSigner = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const crypto_1 = __importDefault(require("crypto")); -const EC_KEYPAIR_TYPE = 'ec'; -const P256_CURVE = 'P-256'; -// Signer implementation which uses an ephemeral keypair to sign artifacts. -// The private key lives only in memory and is tied to the lifetime of the -// EphemeralSigner instance. -class EphemeralSigner { - constructor() { - this.keypair = crypto_1.default.generateKeyPairSync(EC_KEYPAIR_TYPE, { - namedCurve: P256_CURVE, - }); - } - async sign(data) { - const signature = crypto_1.default.sign(null, data, this.keypair.privateKey); - const publicKey = this.keypair.publicKey - .export({ format: 'pem', type: 'spki' }) - .toString('ascii'); - return { - signature: signature, - key: { $case: 'publicKey', publicKey }, - }; - } -} -exports.EphemeralSigner = EphemeralSigner; diff --git a/node_modules/@sigstore/sign/dist/signer/fulcio/index.d.ts b/node_modules/@sigstore/sign/dist/signer/fulcio/index.d.ts deleted file mode 100644 index 6b280733..00000000 --- a/node_modules/@sigstore/sign/dist/signer/fulcio/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -import { CAClientOptions } from './ca'; -import type { IdentityProvider } from '../../identity'; -import type { Signature, Signer } from '../signer'; -export type FulcioSignerOptions = { - identityProvider: IdentityProvider; - keyHolder?: Signer; -} & CAClientOptions; -export declare class FulcioSigner implements Signer { - private ca; - private identityProvider; - private keyHolder; - constructor(options: FulcioSignerOptions); - sign(data: Buffer): Promise; - private getIdentityToken; -} diff --git a/node_modules/@sigstore/sign/dist/signer/fulcio/index.js b/node_modules/@sigstore/sign/dist/signer/fulcio/index.js deleted file mode 100644 index b2eff7e1..00000000 --- a/node_modules/@sigstore/sign/dist/signer/fulcio/index.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FulcioSigner = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const error_1 = require("../../error"); -const util_1 = require("../../util"); -const ca_1 = require("./ca"); -const ephemeral_1 = require("./ephemeral"); -// Signer implementation which can be used to decorate another signer -// with a Fulcio-issued signing certificate for the signer's public key. -// Must be instantiated with an identity provider which can provide a JWT -// which represents the identity to be bound to the signing certificate. -class FulcioSigner { - constructor(options) { - this.ca = new ca_1.CAClient(options); - this.identityProvider = options.identityProvider; - this.keyHolder = options.keyHolder || new ephemeral_1.EphemeralSigner(); - } - async sign(data) { - // Retrieve identity token from the supplied identity provider - const identityToken = await this.getIdentityToken(); - // Extract challenge claim from OIDC token - const subject = util_1.oidc.extractJWTSubject(identityToken); - // Construct challenge value by signing the subject claim - const challenge = await this.keyHolder.sign(Buffer.from(subject)); - if (challenge.key.$case !== 'publicKey') { - throw new error_1.InternalError({ - code: 'CA_CREATE_SIGNING_CERTIFICATE_ERROR', - message: 'unexpected format for signing key', - }); - } - // Create signing certificate - const certificates = await this.ca.createSigningCertificate(identityToken, challenge.key.publicKey, challenge.signature); - // Generate artifact signature - const signature = await this.keyHolder.sign(data); - // Specifically returning only the first certificate in the chain - // as the key. - return { - signature: signature.signature, - key: { - $case: 'x509Certificate', - certificate: certificates[0], - }, - }; - } - async getIdentityToken() { - try { - return await this.identityProvider.getToken(); - } - catch (err) { - throw new error_1.InternalError({ - code: 'IDENTITY_TOKEN_READ_ERROR', - message: 'error retrieving identity token', - cause: err, - }); - } - } -} -exports.FulcioSigner = FulcioSigner; diff --git a/node_modules/@sigstore/sign/dist/signer/index.d.ts b/node_modules/@sigstore/sign/dist/signer/index.d.ts deleted file mode 100644 index 946b6252..00000000 --- a/node_modules/@sigstore/sign/dist/signer/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { FulcioSigner, FulcioSignerOptions } from './fulcio'; -export type { KeyMaterial, Signature, Signer } from './signer'; diff --git a/node_modules/@sigstore/sign/dist/signer/index.js b/node_modules/@sigstore/sign/dist/signer/index.js deleted file mode 100644 index 4f64adf4..00000000 --- a/node_modules/@sigstore/sign/dist/signer/index.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FulcioSigner = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -var fulcio_1 = require("./fulcio"); -Object.defineProperty(exports, "FulcioSigner", { enumerable: true, get: function () { return fulcio_1.FulcioSigner; } }); diff --git a/node_modules/@sigstore/sign/dist/signer/signer.d.ts b/node_modules/@sigstore/sign/dist/signer/signer.d.ts deleted file mode 100644 index 4537d064..00000000 --- a/node_modules/@sigstore/sign/dist/signer/signer.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -export type KeyMaterial = { - $case: 'x509Certificate'; - certificate: string; -} | { - $case: 'publicKey'; - publicKey: string; - hint?: string; -}; -export type Signature = { - signature: Buffer; - key: KeyMaterial; -}; -export interface Signer { - sign: (data: Buffer) => Promise; -} diff --git a/node_modules/@sigstore/sign/dist/signer/signer.js b/node_modules/@sigstore/sign/dist/signer/signer.js deleted file mode 100644 index b92c5418..00000000 --- a/node_modules/@sigstore/sign/dist/signer/signer.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@sigstore/sign/dist/types/fetch.d.ts b/node_modules/@sigstore/sign/dist/types/fetch.d.ts deleted file mode 100644 index 510aeee6..00000000 --- a/node_modules/@sigstore/sign/dist/types/fetch.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { MakeFetchHappenOptions } from 'make-fetch-happen'; -export type Retry = MakeFetchHappenOptions['retry']; -export type FetchOptions = { - retry?: Retry; - timeout?: number | undefined; -}; diff --git a/node_modules/@sigstore/sign/dist/types/fetch.js b/node_modules/@sigstore/sign/dist/types/fetch.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@sigstore/sign/dist/types/fetch.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@sigstore/sign/dist/util/crypto.d.ts b/node_modules/@sigstore/sign/dist/util/crypto.d.ts deleted file mode 100644 index 22dfff21..00000000 --- a/node_modules/@sigstore/sign/dist/util/crypto.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/// -/// -import { BinaryLike } from 'crypto'; -export declare function hash(data: BinaryLike, algorithm?: string): Buffer; diff --git a/node_modules/@sigstore/sign/dist/util/crypto.js b/node_modules/@sigstore/sign/dist/util/crypto.js deleted file mode 100644 index 11aad2fb..00000000 --- a/node_modules/@sigstore/sign/dist/util/crypto.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.hash = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const crypto_1 = __importDefault(require("crypto")); -const SHA256_ALGORITHM = 'sha256'; -function hash(data, algorithm = SHA256_ALGORITHM) { - return crypto_1.default.createHash(algorithm).update(data).digest(); -} -exports.hash = hash; diff --git a/node_modules/@sigstore/sign/dist/util/dsse.d.ts b/node_modules/@sigstore/sign/dist/util/dsse.d.ts deleted file mode 100644 index 839b9c03..00000000 --- a/node_modules/@sigstore/sign/dist/util/dsse.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare function preAuthEncoding(payloadType: string, payload: Buffer): Buffer; diff --git a/node_modules/@sigstore/sign/dist/util/dsse.js b/node_modules/@sigstore/sign/dist/util/dsse.js deleted file mode 100644 index befcdbdc..00000000 --- a/node_modules/@sigstore/sign/dist/util/dsse.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.preAuthEncoding = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const PAE_PREFIX = 'DSSEv1'; -// DSSE Pre-Authentication Encoding -function preAuthEncoding(payloadType, payload) { - const prefix = Buffer.from(`${PAE_PREFIX} ${payloadType.length} ${payloadType} ${payload.length} `, 'ascii'); - return Buffer.concat([prefix, payload]); -} -exports.preAuthEncoding = preAuthEncoding; diff --git a/node_modules/@sigstore/sign/dist/util/encoding.d.ts b/node_modules/@sigstore/sign/dist/util/encoding.d.ts deleted file mode 100644 index 46e0e465..00000000 --- a/node_modules/@sigstore/sign/dist/util/encoding.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function base64Encode(str: string): string; -export declare function base64Decode(str: string): string; diff --git a/node_modules/@sigstore/sign/dist/util/encoding.js b/node_modules/@sigstore/sign/dist/util/encoding.js deleted file mode 100644 index b020ac4d..00000000 --- a/node_modules/@sigstore/sign/dist/util/encoding.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.base64Decode = exports.base64Encode = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const BASE64_ENCODING = 'base64'; -const UTF8_ENCODING = 'utf-8'; -function base64Encode(str) { - return Buffer.from(str, UTF8_ENCODING).toString(BASE64_ENCODING); -} -exports.base64Encode = base64Encode; -function base64Decode(str) { - return Buffer.from(str, BASE64_ENCODING).toString(UTF8_ENCODING); -} -exports.base64Decode = base64Decode; diff --git a/node_modules/@sigstore/sign/dist/util/index.d.ts b/node_modules/@sigstore/sign/dist/util/index.d.ts deleted file mode 100644 index 786a1963..00000000 --- a/node_modules/@sigstore/sign/dist/util/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * as crypto from './crypto'; -export * as dsse from './dsse'; -export * as encoding from './encoding'; -export * as json from './json'; -export * as oidc from './oidc'; -export * as pem from './pem'; -export * as promise from './promise'; -export * as ua from './ua'; diff --git a/node_modules/@sigstore/sign/dist/util/index.js b/node_modules/@sigstore/sign/dist/util/index.js deleted file mode 100644 index 1073ede3..00000000 --- a/node_modules/@sigstore/sign/dist/util/index.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ua = exports.promise = exports.pem = exports.oidc = exports.json = exports.encoding = exports.dsse = exports.crypto = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -exports.crypto = __importStar(require("./crypto")); -exports.dsse = __importStar(require("./dsse")); -exports.encoding = __importStar(require("./encoding")); -exports.json = __importStar(require("./json")); -exports.oidc = __importStar(require("./oidc")); -exports.pem = __importStar(require("./pem")); -exports.promise = __importStar(require("./promise")); -exports.ua = __importStar(require("./ua")); diff --git a/node_modules/@sigstore/sign/dist/util/json.d.ts b/node_modules/@sigstore/sign/dist/util/json.d.ts deleted file mode 100644 index ed331817..00000000 --- a/node_modules/@sigstore/sign/dist/util/json.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function canonicalize(object: any): string; diff --git a/node_modules/@sigstore/sign/dist/util/json.js b/node_modules/@sigstore/sign/dist/util/json.js deleted file mode 100644 index 69176ad7..00000000 --- a/node_modules/@sigstore/sign/dist/util/json.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.canonicalize = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -// JSON canonicalization per https://github.com/cyberphone/json-canonicalization -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function canonicalize(object) { - let buffer = ''; - if (object === null || typeof object !== 'object' || object.toJSON != null) { - // Primitives or toJSONable objects - buffer += JSON.stringify(object); - } - else if (Array.isArray(object)) { - // Array - maintain element order - buffer += '['; - let first = true; - object.forEach((element) => { - if (!first) { - buffer += ','; - } - first = false; - // recursive call - buffer += canonicalize(element); - }); - buffer += ']'; - } - else { - // Object - Sort properties before serializing - buffer += '{'; - let first = true; - Object.keys(object) - .sort() - .forEach((property) => { - if (!first) { - buffer += ','; - } - first = false; - buffer += JSON.stringify(property); - buffer += ':'; - // recursive call - buffer += canonicalize(object[property]); - }); - buffer += '}'; - } - return buffer; -} -exports.canonicalize = canonicalize; diff --git a/node_modules/@sigstore/sign/dist/util/oidc.d.ts b/node_modules/@sigstore/sign/dist/util/oidc.d.ts deleted file mode 100644 index b4513891..00000000 --- a/node_modules/@sigstore/sign/dist/util/oidc.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function extractJWTSubject(jwt: string): string; diff --git a/node_modules/@sigstore/sign/dist/util/oidc.js b/node_modules/@sigstore/sign/dist/util/oidc.js deleted file mode 100644 index 8b49f3bb..00000000 --- a/node_modules/@sigstore/sign/dist/util/oidc.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.extractJWTSubject = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const enc = __importStar(require("./encoding")); -function extractJWTSubject(jwt) { - const parts = jwt.split('.', 3); - const payload = JSON.parse(enc.base64Decode(parts[1])); - switch (payload.iss) { - case 'https://accounts.google.com': - case 'https://oauth2.sigstore.dev/auth': - return payload.email; - default: - return payload.sub; - } -} -exports.extractJWTSubject = extractJWTSubject; diff --git a/node_modules/@sigstore/sign/dist/util/pem.d.ts b/node_modules/@sigstore/sign/dist/util/pem.d.ts deleted file mode 100644 index be3504e9..00000000 --- a/node_modules/@sigstore/sign/dist/util/pem.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare function toDER(certificate: string): Buffer; diff --git a/node_modules/@sigstore/sign/dist/util/pem.js b/node_modules/@sigstore/sign/dist/util/pem.js deleted file mode 100644 index 36eeebd2..00000000 --- a/node_modules/@sigstore/sign/dist/util/pem.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toDER = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const PEM_HEADER = /-----BEGIN (.*)-----/; -const PEM_FOOTER = /-----END (.*)-----/; -function toDER(certificate) { - const lines = certificate - .split('\n') - .map((line) => line.match(PEM_HEADER) || line.match(PEM_FOOTER) ? '' : line); - return Buffer.from(lines.join(''), 'base64'); -} -exports.toDER = toDER; diff --git a/node_modules/@sigstore/sign/dist/util/promise.d.ts b/node_modules/@sigstore/sign/dist/util/promise.d.ts deleted file mode 100644 index bbc501a8..00000000 --- a/node_modules/@sigstore/sign/dist/util/promise.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const promiseAny: (values: Iterable>) => Promise; diff --git a/node_modules/@sigstore/sign/dist/util/promise.js b/node_modules/@sigstore/sign/dist/util/promise.js deleted file mode 100644 index f9c7659c..00000000 --- a/node_modules/@sigstore/sign/dist/util/promise.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.promiseAny = void 0; -// Implementation of Promise.any (not available until Node v15). -// We're basically inverting the logic of Promise.all and taking advantage -// of the fact that Promise.all will return early on the first rejection. -// By reversing the resolve/reject logic we can use this to return early -// on the first resolved promise. -const promiseAny = async (values) => { - return Promise.all([...values].map((promise) => new Promise((resolve, reject) => promise.then(reject, resolve)))).then((errors) => Promise.reject(errors), (value) => Promise.resolve(value)); -}; -exports.promiseAny = promiseAny; diff --git a/node_modules/@sigstore/sign/dist/util/ua.d.ts b/node_modules/@sigstore/sign/dist/util/ua.d.ts deleted file mode 100644 index b60e2e9c..00000000 --- a/node_modules/@sigstore/sign/dist/util/ua.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const getUserAgent: () => string; diff --git a/node_modules/@sigstore/sign/dist/util/ua.js b/node_modules/@sigstore/sign/dist/util/ua.js deleted file mode 100644 index c142330e..00000000 --- a/node_modules/@sigstore/sign/dist/util/ua.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getUserAgent = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const os_1 = __importDefault(require("os")); -// Format User-Agent: / () -// source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent -const getUserAgent = () => { - // eslint-disable-next-line @typescript-eslint/no-var-requires - const packageVersion = require('../../package.json').version; - const nodeVersion = process.version; - const platformName = os_1.default.platform(); - const archName = os_1.default.arch(); - return `sigstore-js/${packageVersion} (Node ${nodeVersion}) (${platformName}/${archName})`; -}; -exports.getUserAgent = getUserAgent; diff --git a/node_modules/@sigstore/sign/dist/witness/index.d.ts b/node_modules/@sigstore/sign/dist/witness/index.d.ts deleted file mode 100644 index ea631b68..00000000 --- a/node_modules/@sigstore/sign/dist/witness/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { RekorWitness, RekorWitnessOptions } from './tlog'; -export { TSAWitness, TSAWitnessOptions } from './tsa'; -export type { SignatureBundle, VerificationMaterial, Witness } from './witness'; diff --git a/node_modules/@sigstore/sign/dist/witness/index.js b/node_modules/@sigstore/sign/dist/witness/index.js deleted file mode 100644 index 7218ea41..00000000 --- a/node_modules/@sigstore/sign/dist/witness/index.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSAWitness = exports.RekorWitness = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -var tlog_1 = require("./tlog"); -Object.defineProperty(exports, "RekorWitness", { enumerable: true, get: function () { return tlog_1.RekorWitness; } }); -var tsa_1 = require("./tsa"); -Object.defineProperty(exports, "TSAWitness", { enumerable: true, get: function () { return tsa_1.TSAWitness; } }); diff --git a/node_modules/@sigstore/sign/dist/witness/tlog/client.d.ts b/node_modules/@sigstore/sign/dist/witness/tlog/client.d.ts deleted file mode 100644 index 711ffa10..00000000 --- a/node_modules/@sigstore/sign/dist/witness/tlog/client.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { Entry, ProposedEntry } from '../../external/rekor'; -import type { FetchOptions } from '../../types/fetch'; -export type { Entry, ProposedEntry }; -export interface TLog { - createEntry: (proposedEntry: ProposedEntry) => Promise; -} -export type TLogClientOptions = { - rekorBaseURL: string; - fetchOnConflict?: boolean; -} & FetchOptions; -export declare class TLogClient implements TLog { - private rekor; - private fetchOnConflict; - constructor(options: TLogClientOptions); - createEntry(proposedEntry: ProposedEntry): Promise; -} diff --git a/node_modules/@sigstore/sign/dist/witness/tlog/client.js b/node_modules/@sigstore/sign/dist/witness/tlog/client.js deleted file mode 100644 index 3c1b5212..00000000 --- a/node_modules/@sigstore/sign/dist/witness/tlog/client.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TLogClient = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const error_1 = require("../../error"); -const error_2 = require("../../external/error"); -const rekor_1 = require("../../external/rekor"); -class TLogClient { - constructor(options) { - this.fetchOnConflict = options.fetchOnConflict ?? false; - this.rekor = new rekor_1.Rekor({ - baseURL: options.rekorBaseURL, - retry: options.retry, - timeout: options.timeout, - }); - } - async createEntry(proposedEntry) { - let entry; - try { - entry = await this.rekor.createEntry(proposedEntry); - } - catch (err) { - // If the entry already exists, fetch it (if enabled) - if (entryExistsError(err) && this.fetchOnConflict) { - // Grab the UUID of the existing entry from the location header - /* istanbul ignore next */ - const uuid = err.location.split('/').pop() || ''; - try { - entry = await this.rekor.getEntry(uuid); - } - catch (err) { - throw new error_1.InternalError({ - code: 'TLOG_FETCH_ENTRY_ERROR', - message: 'error fetching tlog entry', - cause: err, - }); - } - } - else { - throw new error_1.InternalError({ - code: 'TLOG_CREATE_ENTRY_ERROR', - message: 'error creating tlog entry', - cause: err, - }); - } - } - return entry; - } -} -exports.TLogClient = TLogClient; -function entryExistsError(value) { - return (value instanceof error_2.HTTPError && - value.statusCode === 409 && - value.location !== undefined); -} diff --git a/node_modules/@sigstore/sign/dist/witness/tlog/entry.d.ts b/node_modules/@sigstore/sign/dist/witness/tlog/entry.d.ts deleted file mode 100644 index 5c0a054f..00000000 --- a/node_modules/@sigstore/sign/dist/witness/tlog/entry.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ProposedEntry } from '../../external/rekor'; -import type { SignatureBundle } from '../witness'; -export declare function toProposedEntry(content: SignatureBundle, publicKey: string, entryType?: 'dsse' | 'intoto'): ProposedEntry; diff --git a/node_modules/@sigstore/sign/dist/witness/tlog/entry.js b/node_modules/@sigstore/sign/dist/witness/tlog/entry.js deleted file mode 100644 index c237523a..00000000 --- a/node_modules/@sigstore/sign/dist/witness/tlog/entry.js +++ /dev/null @@ -1,136 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toProposedEntry = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const bundle_1 = require("@sigstore/bundle"); -const util_1 = require("../../util"); -function toProposedEntry(content, publicKey, -// TODO: Remove this parameter once have completely switched to 'dsse' entries -entryType = 'intoto') { - switch (content.$case) { - case 'dsseEnvelope': - // TODO: Remove this conditional once have completely switched to 'dsse' entries - if (entryType === 'dsse') { - return toProposedDSSEEntry(content.dsseEnvelope, publicKey); - } - return toProposedIntotoEntry(content.dsseEnvelope, publicKey); - case 'messageSignature': - return toProposedHashedRekordEntry(content.messageSignature, publicKey); - } -} -exports.toProposedEntry = toProposedEntry; -// Returns a properly formatted Rekor "hashedrekord" entry for the given digest -// and signature -function toProposedHashedRekordEntry(messageSignature, publicKey) { - const hexDigest = messageSignature.messageDigest.digest.toString('hex'); - const b64Signature = messageSignature.signature.toString('base64'); - const b64Key = util_1.encoding.base64Encode(publicKey); - return { - apiVersion: '0.0.1', - kind: 'hashedrekord', - spec: { - data: { - hash: { - algorithm: 'sha256', - value: hexDigest, - }, - }, - signature: { - content: b64Signature, - publicKey: { - content: b64Key, - }, - }, - }, - }; -} -// Returns a properly formatted Rekor "dsse" entry for the given DSSE envelope -// and signature -function toProposedDSSEEntry(envelope, publicKey) { - const envelopeJSON = JSON.stringify((0, bundle_1.envelopeToJSON)(envelope)); - const encodedKey = util_1.encoding.base64Encode(publicKey); - return { - apiVersion: '0.0.1', - kind: 'dsse', - spec: { - proposedContent: { - envelope: envelopeJSON, - verifiers: [encodedKey], - }, - }, - }; -} -// Returns a properly formatted Rekor "intoto" entry for the given DSSE -// envelope and signature -function toProposedIntotoEntry(envelope, publicKey) { - // Calculate the value for the payloadHash field in the Rekor entry - const payloadHash = util_1.crypto.hash(envelope.payload).toString('hex'); - // Calculate the value for the hash field in the Rekor entry - const envelopeHash = calculateDSSEHash(envelope, publicKey); - // Collect values for re-creating the DSSE envelope. - // Double-encode payload and signature cause that's what Rekor expects - const payload = util_1.encoding.base64Encode(envelope.payload.toString('base64')); - const sig = util_1.encoding.base64Encode(envelope.signatures[0].sig.toString('base64')); - const keyid = envelope.signatures[0].keyid; - const encodedKey = util_1.encoding.base64Encode(publicKey); - // Create the envelope portion of the entry. Note the inclusion of the - // publicKey in the signature struct is not a standard part of a DSSE - // envelope, but is required by Rekor. - const dsse = { - payloadType: envelope.payloadType, - payload: payload, - signatures: [{ sig, publicKey: encodedKey }], - }; - // If the keyid is an empty string, Rekor seems to remove it altogether. We - // need to do the same here so that we can properly recreate the entry for - // verification. - if (keyid.length > 0) { - dsse.signatures[0].keyid = keyid; - } - return { - apiVersion: '0.0.2', - kind: 'intoto', - spec: { - content: { - envelope: dsse, - hash: { algorithm: 'sha256', value: envelopeHash }, - payloadHash: { algorithm: 'sha256', value: payloadHash }, - }, - }, - }; -} -// Calculates the hash of a DSSE envelope for inclusion in a Rekor entry. -// There is no standard way to do this, so the scheme we're using as as -// follows: -// * payload is base64 encoded -// * signature is base64 encoded (only the first signature is used) -// * keyid is included ONLY if it is NOT an empty string -// * The resulting JSON is canonicalized and hashed to a hex string -function calculateDSSEHash(envelope, publicKey) { - const dsse = { - payloadType: envelope.payloadType, - payload: envelope.payload.toString('base64'), - signatures: [ - { sig: envelope.signatures[0].sig.toString('base64'), publicKey }, - ], - }; - // If the keyid is an empty string, Rekor seems to remove it altogether. - if (envelope.signatures[0].keyid.length > 0) { - dsse.signatures[0].keyid = envelope.signatures[0].keyid; - } - return util_1.crypto.hash(util_1.json.canonicalize(dsse)).toString('hex'); -} diff --git a/node_modules/@sigstore/sign/dist/witness/tlog/index.d.ts b/node_modules/@sigstore/sign/dist/witness/tlog/index.d.ts deleted file mode 100644 index 188377e7..00000000 --- a/node_modules/@sigstore/sign/dist/witness/tlog/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { TLogClientOptions } from './client'; -import type { TransparencyLogEntry } from '@sigstore/bundle'; -import type { SignatureBundle, Witness } from '../witness'; -type TransparencyLogEntries = { - tlogEntries: TransparencyLogEntry[]; -}; -export type RekorWitnessOptions = TLogClientOptions; -export declare class RekorWitness implements Witness { - private tlog; - constructor(options: RekorWitnessOptions); - testify(content: SignatureBundle, publicKey: string): Promise; -} -export {}; diff --git a/node_modules/@sigstore/sign/dist/witness/tlog/index.js b/node_modules/@sigstore/sign/dist/witness/tlog/index.js deleted file mode 100644 index 7d5487c2..00000000 --- a/node_modules/@sigstore/sign/dist/witness/tlog/index.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RekorWitness = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const util_1 = require("../../util"); -const client_1 = require("./client"); -const entry_1 = require("./entry"); -class RekorWitness { - constructor(options) { - this.tlog = new client_1.TLogClient(options); - } - async testify(content, publicKey) { - const proposedEntry = (0, entry_1.toProposedEntry)(content, publicKey); - const entry = await this.tlog.createEntry(proposedEntry); - return toTransparencyLogEntry(entry); - } -} -exports.RekorWitness = RekorWitness; -function toTransparencyLogEntry(entry) { - const logID = Buffer.from(entry.logID, 'hex'); - // Parse entry body so we can extract the kind and version. - const bodyJSON = util_1.encoding.base64Decode(entry.body); - const entryBody = JSON.parse(bodyJSON); - const promise = entry?.verification?.signedEntryTimestamp - ? inclusionPromise(entry.verification.signedEntryTimestamp) - : undefined; - const proof = entry?.verification?.inclusionProof - ? inclusionProof(entry.verification.inclusionProof) - : undefined; - const tlogEntry = { - logIndex: entry.logIndex.toString(), - logId: { - keyId: logID, - }, - integratedTime: entry.integratedTime.toString(), - kindVersion: { - kind: entryBody.kind, - version: entryBody.apiVersion, - }, - inclusionPromise: promise, - inclusionProof: proof, - canonicalizedBody: Buffer.from(entry.body, 'base64'), - }; - return { - tlogEntries: [tlogEntry], - }; -} -function inclusionPromise(promise) { - return { - signedEntryTimestamp: Buffer.from(promise, 'base64'), - }; -} -function inclusionProof(proof) { - return { - logIndex: proof.logIndex.toString(), - treeSize: proof.treeSize.toString(), - rootHash: Buffer.from(proof.rootHash, 'hex'), - hashes: proof.hashes.map((h) => Buffer.from(h, 'hex')), - checkpoint: { - envelope: proof.checkpoint, - }, - }; -} diff --git a/node_modules/@sigstore/sign/dist/witness/tsa/client.d.ts b/node_modules/@sigstore/sign/dist/witness/tsa/client.d.ts deleted file mode 100644 index e0f6fd51..00000000 --- a/node_modules/@sigstore/sign/dist/witness/tsa/client.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -import type { FetchOptions } from '../../types/fetch'; -export interface TSA { - createTimestamp: (signature: Buffer) => Promise; -} -export type TSAClientOptions = { - tsaBaseURL: string; -} & FetchOptions; -export declare class TSAClient implements TSA { - private tsa; - constructor(options: TSAClientOptions); - createTimestamp(signature: Buffer): Promise; -} diff --git a/node_modules/@sigstore/sign/dist/witness/tsa/client.js b/node_modules/@sigstore/sign/dist/witness/tsa/client.js deleted file mode 100644 index d2a76104..00000000 --- a/node_modules/@sigstore/sign/dist/witness/tsa/client.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSAClient = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const error_1 = require("../../error"); -const tsa_1 = require("../../external/tsa"); -const util_1 = require("../../util"); -class TSAClient { - constructor(options) { - this.tsa = new tsa_1.TimestampAuthority({ - baseURL: options.tsaBaseURL, - retry: options.retry, - timeout: options.timeout, - }); - } - async createTimestamp(signature) { - const request = { - artifactHash: util_1.crypto.hash(signature).toString('base64'), - hashAlgorithm: 'sha256', - }; - try { - return await this.tsa.createTimestamp(request); - } - catch (err) { - throw new error_1.InternalError({ - code: 'TSA_CREATE_TIMESTAMP_ERROR', - message: 'error creating timestamp', - cause: err, - }); - } - } -} -exports.TSAClient = TSAClient; diff --git a/node_modules/@sigstore/sign/dist/witness/tsa/index.d.ts b/node_modules/@sigstore/sign/dist/witness/tsa/index.d.ts deleted file mode 100644 index 46261b21..00000000 --- a/node_modules/@sigstore/sign/dist/witness/tsa/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { TSAClientOptions } from './client'; -import type { RFC3161SignedTimestamp } from '@sigstore/bundle'; -import type { SignatureBundle, Witness } from '../witness'; -type RFC3161SignedTimestamps = { - rfc3161Timestamps: RFC3161SignedTimestamp[]; -}; -export type TSAWitnessOptions = TSAClientOptions; -export declare class TSAWitness implements Witness { - private tsa; - constructor(options: TSAWitnessOptions); - testify(content: SignatureBundle): Promise; -} -export {}; diff --git a/node_modules/@sigstore/sign/dist/witness/tsa/index.js b/node_modules/@sigstore/sign/dist/witness/tsa/index.js deleted file mode 100644 index d4f5c7c8..00000000 --- a/node_modules/@sigstore/sign/dist/witness/tsa/index.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSAWitness = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const client_1 = require("./client"); -class TSAWitness { - constructor(options) { - this.tsa = new client_1.TSAClient({ - tsaBaseURL: options.tsaBaseURL, - retry: options.retry, - timeout: options.timeout, - }); - } - async testify(content) { - const signature = extractSignature(content); - const timestamp = await this.tsa.createTimestamp(signature); - return { - rfc3161Timestamps: [{ signedTimestamp: timestamp }], - }; - } -} -exports.TSAWitness = TSAWitness; -function extractSignature(content) { - switch (content.$case) { - case 'dsseEnvelope': - return content.dsseEnvelope.signatures[0].sig; - case 'messageSignature': - return content.messageSignature.signature; - } -} diff --git a/node_modules/@sigstore/sign/dist/witness/witness.d.ts b/node_modules/@sigstore/sign/dist/witness/witness.d.ts deleted file mode 100644 index a9236faf..00000000 --- a/node_modules/@sigstore/sign/dist/witness/witness.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { Bundle, RFC3161SignedTimestamp, TransparencyLogEntry } from '@sigstore/bundle'; -export type SignatureBundle = Bundle['content']; -export type VerificationMaterial = { - tlogEntries?: TransparencyLogEntry[]; - rfc3161Timestamps?: RFC3161SignedTimestamp[]; -}; -export interface Witness { - testify: (signature: SignatureBundle, publicKey: string) => Promise; -} diff --git a/node_modules/@sigstore/sign/dist/witness/witness.js b/node_modules/@sigstore/sign/dist/witness/witness.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@sigstore/sign/dist/witness/witness.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/build.d.ts b/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/build.d.ts deleted file mode 100644 index 54f58663..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/build.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/// -import type { BundleWithDsseEnvelope, BundleWithMessageSignature } from './bundle'; -type VerificationMaterialOptions = { - certificate?: Buffer; - keyHint?: string; -}; -type MessageSignatureBundleOptions = { - digest: Buffer; - signature: Buffer; -} & VerificationMaterialOptions; -type DSSEBundleOptions = { - artifact: Buffer; - artifactType: string; - signature: Buffer; -} & VerificationMaterialOptions; -export declare function toMessageSignatureBundle(options: MessageSignatureBundleOptions): BundleWithMessageSignature; -export declare function toDSSEBundle(options: DSSEBundleOptions): BundleWithDsseEnvelope; -export {}; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/build.js b/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/build.js deleted file mode 100644 index 0ccea62e..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/build.js +++ /dev/null @@ -1,89 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toDSSEBundle = exports.toMessageSignatureBundle = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const protobuf_specs_1 = require("@sigstore/protobuf-specs"); -const bundle_1 = require("./bundle"); -// Message signature bundle - $case: 'messageSignature' -function toMessageSignatureBundle(options) { - return { - mediaType: bundle_1.BUNDLE_V01_MEDIA_TYPE, - content: { - $case: 'messageSignature', - messageSignature: { - messageDigest: { - algorithm: protobuf_specs_1.HashAlgorithm.SHA2_256, - digest: options.digest, - }, - signature: options.signature, - }, - }, - verificationMaterial: toVerificationMaterial(options), - }; -} -exports.toMessageSignatureBundle = toMessageSignatureBundle; -// DSSE envelope bundle - $case: 'dsseEnvelope' -function toDSSEBundle(options) { - return { - mediaType: bundle_1.BUNDLE_V01_MEDIA_TYPE, - content: { - $case: 'dsseEnvelope', - dsseEnvelope: toEnvelope(options), - }, - verificationMaterial: toVerificationMaterial(options), - }; -} -exports.toDSSEBundle = toDSSEBundle; -function toEnvelope(options) { - return { - payloadType: options.artifactType, - payload: options.artifact, - signatures: [toSignature(options)], - }; -} -function toSignature(options) { - return { - keyid: options.keyHint || '', - sig: options.signature, - }; -} -// Verification material -function toVerificationMaterial(options) { - return { - content: toKeyContent(options), - tlogEntries: [], - timestampVerificationData: { rfc3161Timestamps: [] }, - }; -} -function toKeyContent(options) { - if (options.certificate) { - return { - $case: 'x509CertificateChain', - x509CertificateChain: { - certificates: [{ rawBytes: options.certificate }], - }, - }; - } - else { - return { - $case: 'publicKey', - publicKey: { - hint: options.keyHint || '', - }, - }; - } -} diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/bundle.d.ts b/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/bundle.d.ts deleted file mode 100644 index 94e8a885..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/bundle.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -import type { Bundle as ProtoBundle, InclusionProof as ProtoInclusionProof, MessageSignature as ProtoMessageSignature, TransparencyLogEntry as ProtoTransparencyLogEntry, VerificationMaterial as ProtoVerificationMaterial } from '@sigstore/protobuf-specs'; -import type { WithRequired } from './utility'; -export declare const BUNDLE_V01_MEDIA_TYPE = "application/vnd.dev.sigstore.bundle+json;version=0.1"; -export declare const BUNDLE_V02_MEDIA_TYPE = "application/vnd.dev.sigstore.bundle+json;version=0.2"; -type DsseEnvelopeContent = Extract; -type MessageSignatureContent = Extract; -export type MessageSignature = WithRequired; -export type VerificationMaterial = WithRequired; -export type TransparencyLogEntry = WithRequired; -export type InclusionProof = WithRequired; -export type TLogEntryWithInclusionPromise = WithRequired; -export type TLogEntryWithInclusionProof = TransparencyLogEntry & { - inclusionProof: InclusionProof; -}; -export type Bundle = ProtoBundle & { - verificationMaterial: VerificationMaterial & { - tlogEntries: TransparencyLogEntry[]; - }; - content: (MessageSignatureContent & { - messageSignature: MessageSignature; - }) | DsseEnvelopeContent; -}; -export type BundleV01 = Bundle & { - verificationMaterial: Bundle['verificationMaterial'] & { - tlogEntries: TLogEntryWithInclusionPromise[]; - }; -}; -export type BundleLatest = Bundle & { - verificationMaterial: Bundle['verificationMaterial'] & { - tlogEntries: TLogEntryWithInclusionProof[]; - }; -}; -export type BundleWithCertificateChain = Bundle & { - verificationMaterial: Bundle['verificationMaterial'] & { - content: Extract; - }; -}; -export type BundleWithPublicKey = Bundle & { - verificationMaterial: Bundle['verificationMaterial'] & { - content: Extract; - }; -}; -export type BundleWithMessageSignature = Bundle & { - content: Extract; -}; -export type BundleWithDsseEnvelope = Bundle & { - content: Extract; -}; -export declare function isBundleWithCertificateChain(b: Bundle): b is BundleWithCertificateChain; -export declare function isBundleWithPublicKey(b: Bundle): b is BundleWithPublicKey; -export declare function isBundleWithMessageSignature(b: Bundle): b is BundleWithMessageSignature; -export declare function isBundleWithDsseEnvelope(b: Bundle): b is BundleWithDsseEnvelope; -export {}; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/bundle.js b/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/bundle.js deleted file mode 100644 index 8c01e2d1..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/bundle.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isBundleWithDsseEnvelope = exports.isBundleWithMessageSignature = exports.isBundleWithPublicKey = exports.isBundleWithCertificateChain = exports.BUNDLE_V02_MEDIA_TYPE = exports.BUNDLE_V01_MEDIA_TYPE = void 0; -exports.BUNDLE_V01_MEDIA_TYPE = 'application/vnd.dev.sigstore.bundle+json;version=0.1'; -exports.BUNDLE_V02_MEDIA_TYPE = 'application/vnd.dev.sigstore.bundle+json;version=0.2'; -// Type guards for bundle variants. -function isBundleWithCertificateChain(b) { - return b.verificationMaterial.content.$case === 'x509CertificateChain'; -} -exports.isBundleWithCertificateChain = isBundleWithCertificateChain; -function isBundleWithPublicKey(b) { - return b.verificationMaterial.content.$case === 'publicKey'; -} -exports.isBundleWithPublicKey = isBundleWithPublicKey; -function isBundleWithMessageSignature(b) { - return b.content.$case === 'messageSignature'; -} -exports.isBundleWithMessageSignature = isBundleWithMessageSignature; -function isBundleWithDsseEnvelope(b) { - return b.content.$case === 'dsseEnvelope'; -} -exports.isBundleWithDsseEnvelope = isBundleWithDsseEnvelope; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/error.d.ts b/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/error.d.ts deleted file mode 100644 index 3ffcf064..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/error.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare class ValidationError extends Error { - fields: string[]; - constructor(message: string, fields: string[]); -} diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/error.js b/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/error.js deleted file mode 100644 index f8429532..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/error.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ValidationError = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -class ValidationError extends Error { - constructor(message, fields) { - super(message); - this.fields = fields; - } -} -exports.ValidationError = ValidationError; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/index.d.ts b/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/index.d.ts deleted file mode 100644 index 3fea414a..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export { toDSSEBundle, toMessageSignatureBundle } from './build'; -export { BUNDLE_V01_MEDIA_TYPE, BUNDLE_V02_MEDIA_TYPE, isBundleWithCertificateChain, isBundleWithDsseEnvelope, isBundleWithMessageSignature, isBundleWithPublicKey, } from './bundle'; -export { ValidationError } from './error'; -export { bundleFromJSON, bundleToJSON, envelopeFromJSON, envelopeToJSON, } from './serialized'; -export { assertBundle, assertBundleLatest, assertBundleV01, isBundleV01, } from './validate'; -export type { Envelope, PublicKeyIdentifier, RFC3161SignedTimestamp, Signature, TimestampVerificationData, X509Certificate, X509CertificateChain, } from '@sigstore/protobuf-specs'; -export type { Bundle, BundleLatest, BundleV01, BundleWithCertificateChain, BundleWithDsseEnvelope, BundleWithMessageSignature, BundleWithPublicKey, InclusionProof, MessageSignature, TLogEntryWithInclusionPromise, TLogEntryWithInclusionProof, TransparencyLogEntry, VerificationMaterial, } from './bundle'; -export type { SerializedBundle, SerializedEnvelope } from './serialized'; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/index.js b/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/index.js deleted file mode 100644 index b016a16d..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/index.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isBundleV01 = exports.assertBundleV01 = exports.assertBundleLatest = exports.assertBundle = exports.envelopeToJSON = exports.envelopeFromJSON = exports.bundleToJSON = exports.bundleFromJSON = exports.ValidationError = exports.isBundleWithPublicKey = exports.isBundleWithMessageSignature = exports.isBundleWithDsseEnvelope = exports.isBundleWithCertificateChain = exports.BUNDLE_V02_MEDIA_TYPE = exports.BUNDLE_V01_MEDIA_TYPE = exports.toMessageSignatureBundle = exports.toDSSEBundle = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -var build_1 = require("./build"); -Object.defineProperty(exports, "toDSSEBundle", { enumerable: true, get: function () { return build_1.toDSSEBundle; } }); -Object.defineProperty(exports, "toMessageSignatureBundle", { enumerable: true, get: function () { return build_1.toMessageSignatureBundle; } }); -var bundle_1 = require("./bundle"); -Object.defineProperty(exports, "BUNDLE_V01_MEDIA_TYPE", { enumerable: true, get: function () { return bundle_1.BUNDLE_V01_MEDIA_TYPE; } }); -Object.defineProperty(exports, "BUNDLE_V02_MEDIA_TYPE", { enumerable: true, get: function () { return bundle_1.BUNDLE_V02_MEDIA_TYPE; } }); -Object.defineProperty(exports, "isBundleWithCertificateChain", { enumerable: true, get: function () { return bundle_1.isBundleWithCertificateChain; } }); -Object.defineProperty(exports, "isBundleWithDsseEnvelope", { enumerable: true, get: function () { return bundle_1.isBundleWithDsseEnvelope; } }); -Object.defineProperty(exports, "isBundleWithMessageSignature", { enumerable: true, get: function () { return bundle_1.isBundleWithMessageSignature; } }); -Object.defineProperty(exports, "isBundleWithPublicKey", { enumerable: true, get: function () { return bundle_1.isBundleWithPublicKey; } }); -var error_1 = require("./error"); -Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return error_1.ValidationError; } }); -var serialized_1 = require("./serialized"); -Object.defineProperty(exports, "bundleFromJSON", { enumerable: true, get: function () { return serialized_1.bundleFromJSON; } }); -Object.defineProperty(exports, "bundleToJSON", { enumerable: true, get: function () { return serialized_1.bundleToJSON; } }); -Object.defineProperty(exports, "envelopeFromJSON", { enumerable: true, get: function () { return serialized_1.envelopeFromJSON; } }); -Object.defineProperty(exports, "envelopeToJSON", { enumerable: true, get: function () { return serialized_1.envelopeToJSON; } }); -var validate_1 = require("./validate"); -Object.defineProperty(exports, "assertBundle", { enumerable: true, get: function () { return validate_1.assertBundle; } }); -Object.defineProperty(exports, "assertBundleLatest", { enumerable: true, get: function () { return validate_1.assertBundleLatest; } }); -Object.defineProperty(exports, "assertBundleV01", { enumerable: true, get: function () { return validate_1.assertBundleV01; } }); -Object.defineProperty(exports, "isBundleV01", { enumerable: true, get: function () { return validate_1.isBundleV01; } }); diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/serialized.d.ts b/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/serialized.d.ts deleted file mode 100644 index 4935718e..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/serialized.d.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { Envelope } from '@sigstore/protobuf-specs'; -import type { Bundle } from './bundle'; -import type { OneOf } from './utility'; -export declare const bundleFromJSON: (obj: unknown) => Bundle; -export declare const bundleToJSON: (bundle: Bundle) => SerializedBundle; -export declare const envelopeFromJSON: (obj: unknown) => Envelope; -export declare const envelopeToJSON: (envelope: Envelope) => SerializedEnvelope; -type SerializedTLogEntry = { - logIndex: string; - logId: { - keyId: string; - }; - kindVersion: { - kind: string; - version: string; - } | undefined; - integratedTime: string; - inclusionPromise: { - signedEntryTimestamp: string; - } | undefined; - inclusionProof: { - logIndex: string; - rootHash: string; - treeSize: string; - hashes: string[]; - checkpoint: { - envelope: string; - }; - } | undefined; - canonicalizedBody: string; -}; -type SerializedTimestampVerificationData = { - rfc3161Timestamps: { - signedTimestamp: string; - }[]; -}; -type SerializedMessageSignature = { - messageDigest: { - algorithm: string; - digest: string; - } | undefined; - signature: string; -}; -export type SerializedEnvelope = { - payload: string; - payloadType: string; - signatures: { - sig: string; - keyid: string; - }[]; -}; -export type SerializedBundle = { - mediaType: string; - verificationMaterial: (OneOf<{ - x509CertificateChain: { - certificates: { - rawBytes: string; - }[]; - }; - publicKey: { - hint: string; - }; - }> | undefined) & { - tlogEntries: SerializedTLogEntry[]; - timestampVerificationData: SerializedTimestampVerificationData | undefined; - }; -} & OneOf<{ - dsseEnvelope: SerializedEnvelope; - messageSignature: SerializedMessageSignature; -}>; -export {}; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/serialized.js b/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/serialized.js deleted file mode 100644 index f1073358..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/serialized.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.envelopeToJSON = exports.envelopeFromJSON = exports.bundleToJSON = exports.bundleFromJSON = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const protobuf_specs_1 = require("@sigstore/protobuf-specs"); -const validate_1 = require("./validate"); -const bundleFromJSON = (obj) => { - const bundle = protobuf_specs_1.Bundle.fromJSON(obj); - (0, validate_1.assertBundle)(bundle); - return bundle; -}; -exports.bundleFromJSON = bundleFromJSON; -const bundleToJSON = (bundle) => { - return protobuf_specs_1.Bundle.toJSON(bundle); -}; -exports.bundleToJSON = bundleToJSON; -const envelopeFromJSON = (obj) => { - return protobuf_specs_1.Envelope.fromJSON(obj); -}; -exports.envelopeFromJSON = envelopeFromJSON; -const envelopeToJSON = (envelope) => { - return protobuf_specs_1.Envelope.toJSON(envelope); -}; -exports.envelopeToJSON = envelopeToJSON; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/utility.d.ts b/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/utility.d.ts deleted file mode 100644 index df993d50..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/utility.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -type ValueOf = Obj[keyof Obj]; -type OneOnly = { - [key in Exclude]: undefined; -} & { - [key in K]: Obj[K]; -}; -type OneOfByKey = { - [key in keyof Obj]: OneOnly; -}; -export type OneOf = ValueOf>; -export type WithRequired = T & { - [P in K]-?: NonNullable; -}; -export {}; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/utility.js b/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/utility.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/utility.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/validate.d.ts b/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/validate.d.ts deleted file mode 100644 index b7e20482..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/validate.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { Bundle as ProtoBundle } from '@sigstore/protobuf-specs'; -import type { Bundle, BundleLatest, BundleV01 } from './bundle'; -export declare function assertBundle(b: ProtoBundle): asserts b is Bundle; -export declare function assertBundleV01(b: Bundle): asserts b is BundleV01; -export declare function isBundleV01(b: Bundle): b is BundleV01; -export declare function assertBundleLatest(b: ProtoBundle): asserts b is BundleLatest; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/validate.js b/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/validate.js deleted file mode 100644 index 015b6dfc..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/bundle/dist/validate.js +++ /dev/null @@ -1,160 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.assertBundleLatest = exports.isBundleV01 = exports.assertBundleV01 = exports.assertBundle = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const bundle_1 = require("./bundle"); -const error_1 = require("./error"); -// Performs basic validation of a Sigstore bundle to ensure that all required -// fields are populated. This is not a complete validation of the bundle, but -// rather a check that the bundle is in a valid state to be processed by the -// rest of the code. -function assertBundle(b) { - const invalidValues = []; - // Media type validation - if (b.mediaType === undefined || - !b.mediaType.startsWith('application/vnd.dev.sigstore.bundle+json;version=')) { - invalidValues.push('mediaType'); - } - // Content-related validation - if (b.content === undefined) { - invalidValues.push('content'); - } - else { - switch (b.content.$case) { - case 'messageSignature': - if (b.content.messageSignature.messageDigest === undefined) { - invalidValues.push('content.messageSignature.messageDigest'); - } - else { - if (b.content.messageSignature.messageDigest.digest.length === 0) { - invalidValues.push('content.messageSignature.messageDigest.digest'); - } - } - if (b.content.messageSignature.signature.length === 0) { - invalidValues.push('content.messageSignature.signature'); - } - break; - case 'dsseEnvelope': - if (b.content.dsseEnvelope.payload.length === 0) { - invalidValues.push('content.dsseEnvelope.payload'); - } - if (b.content.dsseEnvelope.signatures.length !== 1) { - invalidValues.push('content.dsseEnvelope.signatures'); - } - else { - if (b.content.dsseEnvelope.signatures[0].sig.length === 0) { - invalidValues.push('content.dsseEnvelope.signatures[0].sig'); - } - } - break; - } - } - // Verification material-related validation - if (b.verificationMaterial === undefined) { - invalidValues.push('verificationMaterial'); - } - else { - if (b.verificationMaterial.content === undefined) { - invalidValues.push('verificationMaterial.content'); - } - else { - switch (b.verificationMaterial.content.$case) { - case 'x509CertificateChain': - if (b.verificationMaterial.content.x509CertificateChain.certificates - .length === 0) { - invalidValues.push('verificationMaterial.content.x509CertificateChain.certificates'); - } - b.verificationMaterial.content.x509CertificateChain.certificates.forEach((cert, i) => { - if (cert.rawBytes.length === 0) { - invalidValues.push(`verificationMaterial.content.x509CertificateChain.certificates[${i}].rawBytes`); - } - }); - break; - } - } - if (b.verificationMaterial.tlogEntries === undefined) { - invalidValues.push('verificationMaterial.tlogEntries'); - } - else { - if (b.verificationMaterial.tlogEntries.length > 0) { - b.verificationMaterial.tlogEntries.forEach((entry, i) => { - if (entry.logId === undefined) { - invalidValues.push(`verificationMaterial.tlogEntries[${i}].logId`); - } - if (entry.kindVersion === undefined) { - invalidValues.push(`verificationMaterial.tlogEntries[${i}].kindVersion`); - } - }); - } - } - } - if (invalidValues.length > 0) { - throw new error_1.ValidationError('invalid bundle', invalidValues); - } -} -exports.assertBundle = assertBundle; -// Asserts that the given bundle conforms to the v0.1 bundle format. -function assertBundleV01(b) { - const invalidValues = []; - if (b.mediaType && b.mediaType !== bundle_1.BUNDLE_V01_MEDIA_TYPE) { - invalidValues.push('mediaType'); - } - if (b.verificationMaterial && - b.verificationMaterial.tlogEntries?.length > 0) { - b.verificationMaterial.tlogEntries.forEach((entry, i) => { - if (entry.inclusionPromise === undefined) { - invalidValues.push(`verificationMaterial.tlogEntries[${i}].inclusionPromise`); - } - }); - } - if (invalidValues.length > 0) { - throw new error_1.ValidationError('invalid v0.1 bundle', invalidValues); - } -} -exports.assertBundleV01 = assertBundleV01; -// Type guard to determine if Bundle is a v0.1 bundle. -function isBundleV01(b) { - try { - assertBundleV01(b); - return true; - } - catch (e) { - return false; - } -} -exports.isBundleV01 = isBundleV01; -// Asserts that the given bundle conforms to the newest (0.2) bundle format. -function assertBundleLatest(b) { - const invalidValues = []; - if (b.verificationMaterial && - b.verificationMaterial.tlogEntries?.length > 0) { - b.verificationMaterial.tlogEntries.forEach((entry, i) => { - if (entry.inclusionProof === undefined) { - invalidValues.push(`verificationMaterial.tlogEntries[${i}].inclusionProof`); - } - else { - if (entry.inclusionProof.checkpoint === undefined) { - invalidValues.push(`verificationMaterial.tlogEntries[${i}].inclusionProof.checkpoint`); - } - } - }); - } - if (invalidValues.length > 0) { - throw new error_1.ValidationError('invalid v0.2 bundle', invalidValues); - } -} -exports.assertBundleLatest = assertBundleLatest; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/envelope.d.ts b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/envelope.d.ts deleted file mode 100644 index e9a6deca..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/envelope.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -/// -/** An authenticated message of arbitrary type. */ -export interface Envelope { - /** - * Message to be signed. (In JSON, this is encoded as base64.) - * REQUIRED. - */ - payload: Buffer; - /** - * String unambiguously identifying how to interpret payload. - * REQUIRED. - */ - payloadType: string; - /** - * Signature over: - * PAE(type, payload) - * Where PAE is defined as: - * PAE(type, payload) = "DSSEv1" + SP + LEN(type) + SP + type + SP + LEN(payload) + SP + payload - * + = concatenation - * SP = ASCII space [0x20] - * "DSSEv1" = ASCII [0x44, 0x53, 0x53, 0x45, 0x76, 0x31] - * LEN(s) = ASCII decimal encoding of the byte length of s, with no leading zeros - * REQUIRED (length >= 1). - */ - signatures: Signature[]; -} -export interface Signature { - /** - * Signature itself. (In JSON, this is encoded as base64.) - * REQUIRED. - */ - sig: Buffer; - /** - * Unauthenticated* hint identifying which public key was used. - * OPTIONAL. - */ - keyid: string; -} -export declare const Envelope: { - fromJSON(object: any): Envelope; - toJSON(message: Envelope): unknown; -}; -export declare const Signature: { - fromJSON(object: any): Signature; - toJSON(message: Signature): unknown; -}; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/envelope.js b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/envelope.js deleted file mode 100644 index 0c367a83..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/envelope.js +++ /dev/null @@ -1,89 +0,0 @@ -"use strict"; -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Signature = exports.Envelope = void 0; -function createBaseEnvelope() { - return { payload: Buffer.alloc(0), payloadType: "", signatures: [] }; -} -exports.Envelope = { - fromJSON(object) { - return { - payload: isSet(object.payload) ? Buffer.from(bytesFromBase64(object.payload)) : Buffer.alloc(0), - payloadType: isSet(object.payloadType) ? String(object.payloadType) : "", - signatures: Array.isArray(object?.signatures) ? object.signatures.map((e) => exports.Signature.fromJSON(e)) : [], - }; - }, - toJSON(message) { - const obj = {}; - message.payload !== undefined && - (obj.payload = base64FromBytes(message.payload !== undefined ? message.payload : Buffer.alloc(0))); - message.payloadType !== undefined && (obj.payloadType = message.payloadType); - if (message.signatures) { - obj.signatures = message.signatures.map((e) => e ? exports.Signature.toJSON(e) : undefined); - } - else { - obj.signatures = []; - } - return obj; - }, -}; -function createBaseSignature() { - return { sig: Buffer.alloc(0), keyid: "" }; -} -exports.Signature = { - fromJSON(object) { - return { - sig: isSet(object.sig) ? Buffer.from(bytesFromBase64(object.sig)) : Buffer.alloc(0), - keyid: isSet(object.keyid) ? String(object.keyid) : "", - }; - }, - toJSON(message) { - const obj = {}; - message.sig !== undefined && (obj.sig = base64FromBytes(message.sig !== undefined ? message.sig : Buffer.alloc(0))); - message.keyid !== undefined && (obj.keyid = message.keyid); - return obj; - }, -}; -var tsProtoGlobalThis = (() => { - if (typeof globalThis !== "undefined") { - return globalThis; - } - if (typeof self !== "undefined") { - return self; - } - if (typeof window !== "undefined") { - return window; - } - if (typeof global !== "undefined") { - return global; - } - throw "Unable to locate global object"; -})(); -function bytesFromBase64(b64) { - if (tsProtoGlobalThis.Buffer) { - return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); - } - else { - const bin = tsProtoGlobalThis.atob(b64); - const arr = new Uint8Array(bin.length); - for (let i = 0; i < bin.length; ++i) { - arr[i] = bin.charCodeAt(i); - } - return arr; - } -} -function base64FromBytes(arr) { - if (tsProtoGlobalThis.Buffer) { - return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); - } - else { - const bin = []; - arr.forEach((byte) => { - bin.push(String.fromCharCode(byte)); - }); - return tsProtoGlobalThis.btoa(bin.join("")); - } -} -function isSet(value) { - return value !== null && value !== undefined; -} diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/events.d.ts b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/events.d.ts deleted file mode 100644 index 993e7b7d..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/events.d.ts +++ /dev/null @@ -1,71 +0,0 @@ -/// -import { Any } from "./google/protobuf/any"; -export interface CloudEvent { - /** Required Attributes */ - id: string; - /** URI-reference */ - source: string; - specVersion: string; - type: string; - /** Optional & Extension Attributes */ - attributes: { - [key: string]: CloudEvent_CloudEventAttributeValue; - }; - data?: { - $case: "binaryData"; - binaryData: Buffer; - } | { - $case: "textData"; - textData: string; - } | { - $case: "protoData"; - protoData: Any; - }; -} -export interface CloudEvent_AttributesEntry { - key: string; - value: CloudEvent_CloudEventAttributeValue | undefined; -} -export interface CloudEvent_CloudEventAttributeValue { - attr?: { - $case: "ceBoolean"; - ceBoolean: boolean; - } | { - $case: "ceInteger"; - ceInteger: number; - } | { - $case: "ceString"; - ceString: string; - } | { - $case: "ceBytes"; - ceBytes: Buffer; - } | { - $case: "ceUri"; - ceUri: string; - } | { - $case: "ceUriRef"; - ceUriRef: string; - } | { - $case: "ceTimestamp"; - ceTimestamp: Date; - }; -} -export interface CloudEventBatch { - events: CloudEvent[]; -} -export declare const CloudEvent: { - fromJSON(object: any): CloudEvent; - toJSON(message: CloudEvent): unknown; -}; -export declare const CloudEvent_AttributesEntry: { - fromJSON(object: any): CloudEvent_AttributesEntry; - toJSON(message: CloudEvent_AttributesEntry): unknown; -}; -export declare const CloudEvent_CloudEventAttributeValue: { - fromJSON(object: any): CloudEvent_CloudEventAttributeValue; - toJSON(message: CloudEvent_CloudEventAttributeValue): unknown; -}; -export declare const CloudEventBatch: { - fromJSON(object: any): CloudEventBatch; - toJSON(message: CloudEventBatch): unknown; -}; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/events.js b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/events.js deleted file mode 100644 index 073093b8..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/events.js +++ /dev/null @@ -1,185 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CloudEventBatch = exports.CloudEvent_CloudEventAttributeValue = exports.CloudEvent_AttributesEntry = exports.CloudEvent = void 0; -/* eslint-disable */ -const any_1 = require("./google/protobuf/any"); -const timestamp_1 = require("./google/protobuf/timestamp"); -function createBaseCloudEvent() { - return { id: "", source: "", specVersion: "", type: "", attributes: {}, data: undefined }; -} -exports.CloudEvent = { - fromJSON(object) { - return { - id: isSet(object.id) ? String(object.id) : "", - source: isSet(object.source) ? String(object.source) : "", - specVersion: isSet(object.specVersion) ? String(object.specVersion) : "", - type: isSet(object.type) ? String(object.type) : "", - attributes: isObject(object.attributes) - ? Object.entries(object.attributes).reduce((acc, [key, value]) => { - acc[key] = exports.CloudEvent_CloudEventAttributeValue.fromJSON(value); - return acc; - }, {}) - : {}, - data: isSet(object.binaryData) - ? { $case: "binaryData", binaryData: Buffer.from(bytesFromBase64(object.binaryData)) } - : isSet(object.textData) - ? { $case: "textData", textData: String(object.textData) } - : isSet(object.protoData) - ? { $case: "protoData", protoData: any_1.Any.fromJSON(object.protoData) } - : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.id !== undefined && (obj.id = message.id); - message.source !== undefined && (obj.source = message.source); - message.specVersion !== undefined && (obj.specVersion = message.specVersion); - message.type !== undefined && (obj.type = message.type); - obj.attributes = {}; - if (message.attributes) { - Object.entries(message.attributes).forEach(([k, v]) => { - obj.attributes[k] = exports.CloudEvent_CloudEventAttributeValue.toJSON(v); - }); - } - message.data?.$case === "binaryData" && - (obj.binaryData = message.data?.binaryData !== undefined ? base64FromBytes(message.data?.binaryData) : undefined); - message.data?.$case === "textData" && (obj.textData = message.data?.textData); - message.data?.$case === "protoData" && - (obj.protoData = message.data?.protoData ? any_1.Any.toJSON(message.data?.protoData) : undefined); - return obj; - }, -}; -function createBaseCloudEvent_AttributesEntry() { - return { key: "", value: undefined }; -} -exports.CloudEvent_AttributesEntry = { - fromJSON(object) { - return { - key: isSet(object.key) ? String(object.key) : "", - value: isSet(object.value) ? exports.CloudEvent_CloudEventAttributeValue.fromJSON(object.value) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.key !== undefined && (obj.key = message.key); - message.value !== undefined && - (obj.value = message.value ? exports.CloudEvent_CloudEventAttributeValue.toJSON(message.value) : undefined); - return obj; - }, -}; -function createBaseCloudEvent_CloudEventAttributeValue() { - return { attr: undefined }; -} -exports.CloudEvent_CloudEventAttributeValue = { - fromJSON(object) { - return { - attr: isSet(object.ceBoolean) - ? { $case: "ceBoolean", ceBoolean: Boolean(object.ceBoolean) } - : isSet(object.ceInteger) - ? { $case: "ceInteger", ceInteger: Number(object.ceInteger) } - : isSet(object.ceString) - ? { $case: "ceString", ceString: String(object.ceString) } - : isSet(object.ceBytes) - ? { $case: "ceBytes", ceBytes: Buffer.from(bytesFromBase64(object.ceBytes)) } - : isSet(object.ceUri) - ? { $case: "ceUri", ceUri: String(object.ceUri) } - : isSet(object.ceUriRef) - ? { $case: "ceUriRef", ceUriRef: String(object.ceUriRef) } - : isSet(object.ceTimestamp) - ? { $case: "ceTimestamp", ceTimestamp: fromJsonTimestamp(object.ceTimestamp) } - : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.attr?.$case === "ceBoolean" && (obj.ceBoolean = message.attr?.ceBoolean); - message.attr?.$case === "ceInteger" && (obj.ceInteger = Math.round(message.attr?.ceInteger)); - message.attr?.$case === "ceString" && (obj.ceString = message.attr?.ceString); - message.attr?.$case === "ceBytes" && - (obj.ceBytes = message.attr?.ceBytes !== undefined ? base64FromBytes(message.attr?.ceBytes) : undefined); - message.attr?.$case === "ceUri" && (obj.ceUri = message.attr?.ceUri); - message.attr?.$case === "ceUriRef" && (obj.ceUriRef = message.attr?.ceUriRef); - message.attr?.$case === "ceTimestamp" && (obj.ceTimestamp = message.attr?.ceTimestamp.toISOString()); - return obj; - }, -}; -function createBaseCloudEventBatch() { - return { events: [] }; -} -exports.CloudEventBatch = { - fromJSON(object) { - return { events: Array.isArray(object?.events) ? object.events.map((e) => exports.CloudEvent.fromJSON(e)) : [] }; - }, - toJSON(message) { - const obj = {}; - if (message.events) { - obj.events = message.events.map((e) => e ? exports.CloudEvent.toJSON(e) : undefined); - } - else { - obj.events = []; - } - return obj; - }, -}; -var tsProtoGlobalThis = (() => { - if (typeof globalThis !== "undefined") { - return globalThis; - } - if (typeof self !== "undefined") { - return self; - } - if (typeof window !== "undefined") { - return window; - } - if (typeof global !== "undefined") { - return global; - } - throw "Unable to locate global object"; -})(); -function bytesFromBase64(b64) { - if (tsProtoGlobalThis.Buffer) { - return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); - } - else { - const bin = tsProtoGlobalThis.atob(b64); - const arr = new Uint8Array(bin.length); - for (let i = 0; i < bin.length; ++i) { - arr[i] = bin.charCodeAt(i); - } - return arr; - } -} -function base64FromBytes(arr) { - if (tsProtoGlobalThis.Buffer) { - return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); - } - else { - const bin = []; - arr.forEach((byte) => { - bin.push(String.fromCharCode(byte)); - }); - return tsProtoGlobalThis.btoa(bin.join("")); - } -} -function fromTimestamp(t) { - let millis = Number(t.seconds) * 1000; - millis += t.nanos / 1000000; - return new Date(millis); -} -function fromJsonTimestamp(o) { - if (o instanceof Date) { - return o; - } - else if (typeof o === "string") { - return new Date(o); - } - else { - return fromTimestamp(timestamp_1.Timestamp.fromJSON(o)); - } -} -function isObject(value) { - return typeof value === "object" && value !== null; -} -function isSet(value) { - return value !== null && value !== undefined; -} diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/api/field_behavior.d.ts b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/api/field_behavior.d.ts deleted file mode 100644 index 1b4ed47a..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/api/field_behavior.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -/** - * An indicator of the behavior of a given field (for example, that a field - * is required in requests, or given as output but ignored as input). - * This **does not** change the behavior in protocol buffers itself; it only - * denotes the behavior and may affect how API tooling handles the field. - * - * Note: This enum **may** receive new values in the future. - */ -export declare enum FieldBehavior { - /** FIELD_BEHAVIOR_UNSPECIFIED - Conventional default for enums. Do not use this. */ - FIELD_BEHAVIOR_UNSPECIFIED = 0, - /** - * OPTIONAL - Specifically denotes a field as optional. - * While all fields in protocol buffers are optional, this may be specified - * for emphasis if appropriate. - */ - OPTIONAL = 1, - /** - * REQUIRED - Denotes a field as required. - * This indicates that the field **must** be provided as part of the request, - * and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - */ - REQUIRED = 2, - /** - * OUTPUT_ONLY - Denotes a field as output only. - * This indicates that the field is provided in responses, but including the - * field in a request does nothing (the server *must* ignore it and - * *must not* throw an error as a result of the field's presence). - */ - OUTPUT_ONLY = 3, - /** - * INPUT_ONLY - Denotes a field as input only. - * This indicates that the field is provided in requests, and the - * corresponding field is not included in output. - */ - INPUT_ONLY = 4, - /** - * IMMUTABLE - Denotes a field as immutable. - * This indicates that the field may be set once in a request to create a - * resource, but may not be changed thereafter. - */ - IMMUTABLE = 5, - /** - * UNORDERED_LIST - Denotes that a (repeated) field is an unordered list. - * This indicates that the service may provide the elements of the list - * in any arbitrary order, rather than the order the user originally - * provided. Additionally, the list's order may or may not be stable. - */ - UNORDERED_LIST = 6 -} -export declare function fieldBehaviorFromJSON(object: any): FieldBehavior; -export declare function fieldBehaviorToJSON(object: FieldBehavior): string; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/api/field_behavior.js b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/api/field_behavior.js deleted file mode 100644 index da627499..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/api/field_behavior.js +++ /dev/null @@ -1,119 +0,0 @@ -"use strict"; -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fieldBehaviorToJSON = exports.fieldBehaviorFromJSON = exports.FieldBehavior = void 0; -/** - * An indicator of the behavior of a given field (for example, that a field - * is required in requests, or given as output but ignored as input). - * This **does not** change the behavior in protocol buffers itself; it only - * denotes the behavior and may affect how API tooling handles the field. - * - * Note: This enum **may** receive new values in the future. - */ -var FieldBehavior; -(function (FieldBehavior) { - /** FIELD_BEHAVIOR_UNSPECIFIED - Conventional default for enums. Do not use this. */ - FieldBehavior[FieldBehavior["FIELD_BEHAVIOR_UNSPECIFIED"] = 0] = "FIELD_BEHAVIOR_UNSPECIFIED"; - /** - * OPTIONAL - Specifically denotes a field as optional. - * While all fields in protocol buffers are optional, this may be specified - * for emphasis if appropriate. - */ - FieldBehavior[FieldBehavior["OPTIONAL"] = 1] = "OPTIONAL"; - /** - * REQUIRED - Denotes a field as required. - * This indicates that the field **must** be provided as part of the request, - * and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - */ - FieldBehavior[FieldBehavior["REQUIRED"] = 2] = "REQUIRED"; - /** - * OUTPUT_ONLY - Denotes a field as output only. - * This indicates that the field is provided in responses, but including the - * field in a request does nothing (the server *must* ignore it and - * *must not* throw an error as a result of the field's presence). - */ - FieldBehavior[FieldBehavior["OUTPUT_ONLY"] = 3] = "OUTPUT_ONLY"; - /** - * INPUT_ONLY - Denotes a field as input only. - * This indicates that the field is provided in requests, and the - * corresponding field is not included in output. - */ - FieldBehavior[FieldBehavior["INPUT_ONLY"] = 4] = "INPUT_ONLY"; - /** - * IMMUTABLE - Denotes a field as immutable. - * This indicates that the field may be set once in a request to create a - * resource, but may not be changed thereafter. - */ - FieldBehavior[FieldBehavior["IMMUTABLE"] = 5] = "IMMUTABLE"; - /** - * UNORDERED_LIST - Denotes that a (repeated) field is an unordered list. - * This indicates that the service may provide the elements of the list - * in any arbitrary order, rather than the order the user originally - * provided. Additionally, the list's order may or may not be stable. - */ - FieldBehavior[FieldBehavior["UNORDERED_LIST"] = 6] = "UNORDERED_LIST"; -})(FieldBehavior = exports.FieldBehavior || (exports.FieldBehavior = {})); -function fieldBehaviorFromJSON(object) { - switch (object) { - case 0: - case "FIELD_BEHAVIOR_UNSPECIFIED": - return FieldBehavior.FIELD_BEHAVIOR_UNSPECIFIED; - case 1: - case "OPTIONAL": - return FieldBehavior.OPTIONAL; - case 2: - case "REQUIRED": - return FieldBehavior.REQUIRED; - case 3: - case "OUTPUT_ONLY": - return FieldBehavior.OUTPUT_ONLY; - case 4: - case "INPUT_ONLY": - return FieldBehavior.INPUT_ONLY; - case 5: - case "IMMUTABLE": - return FieldBehavior.IMMUTABLE; - case 6: - case "UNORDERED_LIST": - return FieldBehavior.UNORDERED_LIST; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldBehavior"); - } -} -exports.fieldBehaviorFromJSON = fieldBehaviorFromJSON; -function fieldBehaviorToJSON(object) { - switch (object) { - case FieldBehavior.FIELD_BEHAVIOR_UNSPECIFIED: - return "FIELD_BEHAVIOR_UNSPECIFIED"; - case FieldBehavior.OPTIONAL: - return "OPTIONAL"; - case FieldBehavior.REQUIRED: - return "REQUIRED"; - case FieldBehavior.OUTPUT_ONLY: - return "OUTPUT_ONLY"; - case FieldBehavior.INPUT_ONLY: - return "INPUT_ONLY"; - case FieldBehavior.IMMUTABLE: - return "IMMUTABLE"; - case FieldBehavior.UNORDERED_LIST: - return "UNORDERED_LIST"; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldBehavior"); - } -} -exports.fieldBehaviorToJSON = fieldBehaviorToJSON; -var tsProtoGlobalThis = (() => { - if (typeof globalThis !== "undefined") { - return globalThis; - } - if (typeof self !== "undefined") { - return self; - } - if (typeof window !== "undefined") { - return window; - } - if (typeof global !== "undefined") { - return global; - } - throw "Unable to locate global object"; -})(); diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/any.d.ts b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/any.d.ts deleted file mode 100644 index d971da31..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/any.d.ts +++ /dev/null @@ -1,122 +0,0 @@ -/// -/** - * `Any` contains an arbitrary serialized protocol buffer message along with a - * URL that describes the type of the serialized message. - * - * Protobuf library provides support to pack/unpack Any values in the form - * of utility functions or additional generated methods of the Any type. - * - * Example 1: Pack and unpack a message in C++. - * - * Foo foo = ...; - * Any any; - * any.PackFrom(foo); - * ... - * if (any.UnpackTo(&foo)) { - * ... - * } - * - * Example 2: Pack and unpack a message in Java. - * - * Foo foo = ...; - * Any any = Any.pack(foo); - * ... - * if (any.is(Foo.class)) { - * foo = any.unpack(Foo.class); - * } - * - * Example 3: Pack and unpack a message in Python. - * - * foo = Foo(...) - * any = Any() - * any.Pack(foo) - * ... - * if any.Is(Foo.DESCRIPTOR): - * any.Unpack(foo) - * ... - * - * Example 4: Pack and unpack a message in Go - * - * foo := &pb.Foo{...} - * any, err := anypb.New(foo) - * if err != nil { - * ... - * } - * ... - * foo := &pb.Foo{} - * if err := any.UnmarshalTo(foo); err != nil { - * ... - * } - * - * The pack methods provided by protobuf library will by default use - * 'type.googleapis.com/full.type.name' as the type URL and the unpack - * methods only use the fully qualified type name after the last '/' - * in the type URL, for example "foo.bar.com/x/y.z" will yield type - * name "y.z". - * - * JSON - * - * The JSON representation of an `Any` value uses the regular - * representation of the deserialized, embedded message, with an - * additional field `@type` which contains the type URL. Example: - * - * package google.profile; - * message Person { - * string first_name = 1; - * string last_name = 2; - * } - * - * { - * "@type": "type.googleapis.com/google.profile.Person", - * "firstName": , - * "lastName": - * } - * - * If the embedded message type is well-known and has a custom JSON - * representation, that representation will be embedded adding a field - * `value` which holds the custom JSON in addition to the `@type` - * field. Example (for message [google.protobuf.Duration][]): - * - * { - * "@type": "type.googleapis.com/google.protobuf.Duration", - * "value": "1.212s" - * } - */ -export interface Any { - /** - * A URL/resource name that uniquely identifies the type of the serialized - * protocol buffer message. This string must contain at least - * one "/" character. The last segment of the URL's path must represent - * the fully qualified name of the type (as in - * `path/google.protobuf.Duration`). The name should be in a canonical form - * (e.g., leading "." is not accepted). - * - * In practice, teams usually precompile into the binary all types that they - * expect it to use in the context of Any. However, for URLs which use the - * scheme `http`, `https`, or no scheme, one can optionally set up a type - * server that maps type URLs to message definitions as follows: - * - * * If no scheme is provided, `https` is assumed. - * * An HTTP GET on the URL must yield a [google.protobuf.Type][] - * value in binary format, or produce an error. - * * Applications are allowed to cache lookup results based on the - * URL, or have them precompiled into a binary to avoid any - * lookup. Therefore, binary compatibility needs to be preserved - * on changes to types. (Use versioned type names to manage - * breaking changes.) - * - * Note: this functionality is not currently available in the official - * protobuf release, and it is not used for type URLs beginning with - * type.googleapis.com. - * - * Schemes other than `http`, `https` (or the empty scheme) might be - * used with implementation specific semantics. - */ - typeUrl: string; - /** Must be a valid serialized protocol buffer of the above specified type. */ - value: Buffer; -} -export declare const Any: { - fromJSON(object: any): Any; - toJSON(message: Any): unknown; -}; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/any.js b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/any.js deleted file mode 100644 index 6b3f3c97..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/any.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Any = void 0; -function createBaseAny() { - return { typeUrl: "", value: Buffer.alloc(0) }; -} -exports.Any = { - fromJSON(object) { - return { - typeUrl: isSet(object.typeUrl) ? String(object.typeUrl) : "", - value: isSet(object.value) ? Buffer.from(bytesFromBase64(object.value)) : Buffer.alloc(0), - }; - }, - toJSON(message) { - const obj = {}; - message.typeUrl !== undefined && (obj.typeUrl = message.typeUrl); - message.value !== undefined && - (obj.value = base64FromBytes(message.value !== undefined ? message.value : Buffer.alloc(0))); - return obj; - }, -}; -var tsProtoGlobalThis = (() => { - if (typeof globalThis !== "undefined") { - return globalThis; - } - if (typeof self !== "undefined") { - return self; - } - if (typeof window !== "undefined") { - return window; - } - if (typeof global !== "undefined") { - return global; - } - throw "Unable to locate global object"; -})(); -function bytesFromBase64(b64) { - if (tsProtoGlobalThis.Buffer) { - return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); - } - else { - const bin = tsProtoGlobalThis.atob(b64); - const arr = new Uint8Array(bin.length); - for (let i = 0; i < bin.length; ++i) { - arr[i] = bin.charCodeAt(i); - } - return arr; - } -} -function base64FromBytes(arr) { - if (tsProtoGlobalThis.Buffer) { - return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); - } - else { - const bin = []; - arr.forEach((byte) => { - bin.push(String.fromCharCode(byte)); - }); - return tsProtoGlobalThis.btoa(bin.join("")); - } -} -function isSet(value) { - return value !== null && value !== undefined; -} diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/descriptor.d.ts b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/descriptor.d.ts deleted file mode 100644 index ef43bf01..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/descriptor.d.ts +++ /dev/null @@ -1,939 +0,0 @@ -/// -/** - * The protocol compiler can output a FileDescriptorSet containing the .proto - * files it parses. - */ -export interface FileDescriptorSet { - file: FileDescriptorProto[]; -} -/** Describes a complete .proto file. */ -export interface FileDescriptorProto { - /** file name, relative to root of source tree */ - name: string; - /** e.g. "foo", "foo.bar", etc. */ - package: string; - /** Names of files imported by this file. */ - dependency: string[]; - /** Indexes of the public imported files in the dependency list above. */ - publicDependency: number[]; - /** - * Indexes of the weak imported files in the dependency list. - * For Google-internal migration only. Do not use. - */ - weakDependency: number[]; - /** All top-level definitions in this file. */ - messageType: DescriptorProto[]; - enumType: EnumDescriptorProto[]; - service: ServiceDescriptorProto[]; - extension: FieldDescriptorProto[]; - options: FileOptions | undefined; - /** - * This field contains optional information about the original source code. - * You may safely remove this entire field without harming runtime - * functionality of the descriptors -- the information is needed only by - * development tools. - */ - sourceCodeInfo: SourceCodeInfo | undefined; - /** - * The syntax of the proto file. - * The supported values are "proto2" and "proto3". - */ - syntax: string; -} -/** Describes a message type. */ -export interface DescriptorProto { - name: string; - field: FieldDescriptorProto[]; - extension: FieldDescriptorProto[]; - nestedType: DescriptorProto[]; - enumType: EnumDescriptorProto[]; - extensionRange: DescriptorProto_ExtensionRange[]; - oneofDecl: OneofDescriptorProto[]; - options: MessageOptions | undefined; - reservedRange: DescriptorProto_ReservedRange[]; - /** - * Reserved field names, which may not be used by fields in the same message. - * A given name may only be reserved once. - */ - reservedName: string[]; -} -export interface DescriptorProto_ExtensionRange { - /** Inclusive. */ - start: number; - /** Exclusive. */ - end: number; - options: ExtensionRangeOptions | undefined; -} -/** - * Range of reserved tag numbers. Reserved tag numbers may not be used by - * fields or extension ranges in the same message. Reserved ranges may - * not overlap. - */ -export interface DescriptorProto_ReservedRange { - /** Inclusive. */ - start: number; - /** Exclusive. */ - end: number; -} -export interface ExtensionRangeOptions { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -/** Describes a field within a message. */ -export interface FieldDescriptorProto { - name: string; - number: number; - label: FieldDescriptorProto_Label; - /** - * If type_name is set, this need not be set. If both this and type_name - * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. - */ - type: FieldDescriptorProto_Type; - /** - * For message and enum types, this is the name of the type. If the name - * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping - * rules are used to find the type (i.e. first the nested types within this - * message are searched, then within the parent, on up to the root - * namespace). - */ - typeName: string; - /** - * For extensions, this is the name of the type being extended. It is - * resolved in the same manner as type_name. - */ - extendee: string; - /** - * For numeric types, contains the original text representation of the value. - * For booleans, "true" or "false". - * For strings, contains the default text contents (not escaped in any way). - * For bytes, contains the C escaped value. All bytes >= 128 are escaped. - */ - defaultValue: string; - /** - * If set, gives the index of a oneof in the containing type's oneof_decl - * list. This field is a member of that oneof. - */ - oneofIndex: number; - /** - * JSON name of this field. The value is set by protocol compiler. If the - * user has set a "json_name" option on this field, that option's value - * will be used. Otherwise, it's deduced from the field's name by converting - * it to camelCase. - */ - jsonName: string; - options: FieldOptions | undefined; - /** - * If true, this is a proto3 "optional". When a proto3 field is optional, it - * tracks presence regardless of field type. - * - * When proto3_optional is true, this field must be belong to a oneof to - * signal to old proto3 clients that presence is tracked for this field. This - * oneof is known as a "synthetic" oneof, and this field must be its sole - * member (each proto3 optional field gets its own synthetic oneof). Synthetic - * oneofs exist in the descriptor only, and do not generate any API. Synthetic - * oneofs must be ordered after all "real" oneofs. - * - * For message fields, proto3_optional doesn't create any semantic change, - * since non-repeated message fields always track presence. However it still - * indicates the semantic detail of whether the user wrote "optional" or not. - * This can be useful for round-tripping the .proto file. For consistency we - * give message fields a synthetic oneof also, even though it is not required - * to track presence. This is especially important because the parser can't - * tell if a field is a message or an enum, so it must always create a - * synthetic oneof. - * - * Proto2 optional fields do not set this flag, because they already indicate - * optional with `LABEL_OPTIONAL`. - */ - proto3Optional: boolean; -} -export declare enum FieldDescriptorProto_Type { - /** - * TYPE_DOUBLE - 0 is reserved for errors. - * Order is weird for historical reasons. - */ - TYPE_DOUBLE = 1, - TYPE_FLOAT = 2, - /** - * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - * negative values are likely. - */ - TYPE_INT64 = 3, - TYPE_UINT64 = 4, - /** - * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - * negative values are likely. - */ - TYPE_INT32 = 5, - TYPE_FIXED64 = 6, - TYPE_FIXED32 = 7, - TYPE_BOOL = 8, - TYPE_STRING = 9, - /** - * TYPE_GROUP - Tag-delimited aggregate. - * Group type is deprecated and not supported in proto3. However, Proto3 - * implementations should still be able to parse the group wire format and - * treat group fields as unknown fields. - */ - TYPE_GROUP = 10, - /** TYPE_MESSAGE - Length-delimited aggregate. */ - TYPE_MESSAGE = 11, - /** TYPE_BYTES - New in version 2. */ - TYPE_BYTES = 12, - TYPE_UINT32 = 13, - TYPE_ENUM = 14, - TYPE_SFIXED32 = 15, - TYPE_SFIXED64 = 16, - /** TYPE_SINT32 - Uses ZigZag encoding. */ - TYPE_SINT32 = 17, - /** TYPE_SINT64 - Uses ZigZag encoding. */ - TYPE_SINT64 = 18 -} -export declare function fieldDescriptorProto_TypeFromJSON(object: any): FieldDescriptorProto_Type; -export declare function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Type): string; -export declare enum FieldDescriptorProto_Label { - /** LABEL_OPTIONAL - 0 is reserved for errors */ - LABEL_OPTIONAL = 1, - LABEL_REQUIRED = 2, - LABEL_REPEATED = 3 -} -export declare function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptorProto_Label; -export declare function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_Label): string; -/** Describes a oneof. */ -export interface OneofDescriptorProto { - name: string; - options: OneofOptions | undefined; -} -/** Describes an enum type. */ -export interface EnumDescriptorProto { - name: string; - value: EnumValueDescriptorProto[]; - options: EnumOptions | undefined; - /** - * Range of reserved numeric values. Reserved numeric values may not be used - * by enum values in the same enum declaration. Reserved ranges may not - * overlap. - */ - reservedRange: EnumDescriptorProto_EnumReservedRange[]; - /** - * Reserved enum value names, which may not be reused. A given name may only - * be reserved once. - */ - reservedName: string[]; -} -/** - * Range of reserved numeric values. Reserved values may not be used by - * entries in the same enum. Reserved ranges may not overlap. - * - * Note that this is distinct from DescriptorProto.ReservedRange in that it - * is inclusive such that it can appropriately represent the entire int32 - * domain. - */ -export interface EnumDescriptorProto_EnumReservedRange { - /** Inclusive. */ - start: number; - /** Inclusive. */ - end: number; -} -/** Describes a value within an enum. */ -export interface EnumValueDescriptorProto { - name: string; - number: number; - options: EnumValueOptions | undefined; -} -/** Describes a service. */ -export interface ServiceDescriptorProto { - name: string; - method: MethodDescriptorProto[]; - options: ServiceOptions | undefined; -} -/** Describes a method of a service. */ -export interface MethodDescriptorProto { - name: string; - /** - * Input and output type names. These are resolved in the same way as - * FieldDescriptorProto.type_name, but must refer to a message type. - */ - inputType: string; - outputType: string; - options: MethodOptions | undefined; - /** Identifies if client streams multiple client messages */ - clientStreaming: boolean; - /** Identifies if server streams multiple server messages */ - serverStreaming: boolean; -} -export interface FileOptions { - /** - * Sets the Java package where classes generated from this .proto will be - * placed. By default, the proto package is used, but this is often - * inappropriate because proto packages do not normally start with backwards - * domain names. - */ - javaPackage: string; - /** - * Controls the name of the wrapper Java class generated for the .proto file. - * That class will always contain the .proto file's getDescriptor() method as - * well as any top-level extensions defined in the .proto file. - * If java_multiple_files is disabled, then all the other classes from the - * .proto file will be nested inside the single wrapper outer class. - */ - javaOuterClassname: string; - /** - * If enabled, then the Java code generator will generate a separate .java - * file for each top-level message, enum, and service defined in the .proto - * file. Thus, these types will *not* be nested inside the wrapper class - * named by java_outer_classname. However, the wrapper class will still be - * generated to contain the file's getDescriptor() method as well as any - * top-level extensions defined in the file. - */ - javaMultipleFiles: boolean; - /** - * This option does nothing. - * - * @deprecated - */ - javaGenerateEqualsAndHash: boolean; - /** - * If set true, then the Java2 code generator will generate code that - * throws an exception whenever an attempt is made to assign a non-UTF-8 - * byte sequence to a string field. - * Message reflection will do the same. - * However, an extension field still accepts non-UTF-8 byte sequences. - * This option has no effect on when used with the lite runtime. - */ - javaStringCheckUtf8: boolean; - optimizeFor: FileOptions_OptimizeMode; - /** - * Sets the Go package where structs generated from this .proto will be - * placed. If omitted, the Go package will be derived from the following: - * - The basename of the package import path, if provided. - * - Otherwise, the package statement in the .proto file, if present. - * - Otherwise, the basename of the .proto file, without extension. - */ - goPackage: string; - /** - * Should generic services be generated in each language? "Generic" services - * are not specific to any particular RPC system. They are generated by the - * main code generators in each language (without additional plugins). - * Generic services were the only kind of service generation supported by - * early versions of google.protobuf. - * - * Generic services are now considered deprecated in favor of using plugins - * that generate code specific to your particular RPC system. Therefore, - * these default to false. Old code which depends on generic services should - * explicitly set them to true. - */ - ccGenericServices: boolean; - javaGenericServices: boolean; - pyGenericServices: boolean; - phpGenericServices: boolean; - /** - * Is this file deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for everything in the file, or it will be completely ignored; in the very - * least, this is a formalization for deprecating files. - */ - deprecated: boolean; - /** - * Enables the use of arenas for the proto messages in this file. This applies - * only to generated classes for C++. - */ - ccEnableArenas: boolean; - /** - * Sets the objective c class prefix which is prepended to all objective c - * generated classes from this .proto. There is no default. - */ - objcClassPrefix: string; - /** Namespace for generated classes; defaults to the package. */ - csharpNamespace: string; - /** - * By default Swift generators will take the proto package and CamelCase it - * replacing '.' with underscore and use that to prefix the types/symbols - * defined. When this options is provided, they will use this value instead - * to prefix the types/symbols defined. - */ - swiftPrefix: string; - /** - * Sets the php class prefix which is prepended to all php generated classes - * from this .proto. Default is empty. - */ - phpClassPrefix: string; - /** - * Use this option to change the namespace of php generated classes. Default - * is empty. When this option is empty, the package name will be used for - * determining the namespace. - */ - phpNamespace: string; - /** - * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be - * used for determining the namespace. - */ - phpMetadataNamespace: string; - /** - * Use this option to change the package of ruby generated classes. Default - * is empty. When this option is not set, the package name will be used for - * determining the ruby package. - */ - rubyPackage: string; - /** - * The parser stores options it doesn't recognize here. - * See the documentation for the "Options" section above. - */ - uninterpretedOption: UninterpretedOption[]; -} -/** Generated classes can be optimized for speed or code size. */ -export declare enum FileOptions_OptimizeMode { - /** SPEED - Generate complete code for parsing, serialization, */ - SPEED = 1, - /** CODE_SIZE - etc. */ - CODE_SIZE = 2, - /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */ - LITE_RUNTIME = 3 -} -export declare function fileOptions_OptimizeModeFromJSON(object: any): FileOptions_OptimizeMode; -export declare function fileOptions_OptimizeModeToJSON(object: FileOptions_OptimizeMode): string; -export interface MessageOptions { - /** - * Set true to use the old proto1 MessageSet wire format for extensions. - * This is provided for backwards-compatibility with the MessageSet wire - * format. You should not use this for any other reason: It's less - * efficient, has fewer features, and is more complicated. - * - * The message must be defined exactly as follows: - * message Foo { - * option message_set_wire_format = true; - * extensions 4 to max; - * } - * Note that the message cannot have any defined fields; MessageSets only - * have extensions. - * - * All extensions of your type must be singular messages; e.g. they cannot - * be int32s, enums, or repeated messages. - * - * Because this is an option, the above two restrictions are not enforced by - * the protocol compiler. - */ - messageSetWireFormat: boolean; - /** - * Disables the generation of the standard "descriptor()" accessor, which can - * conflict with a field of the same name. This is meant to make migration - * from proto1 easier; new code should avoid fields named "descriptor". - */ - noStandardDescriptorAccessor: boolean; - /** - * Is this message deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the message, or it will be completely ignored; in the very least, - * this is a formalization for deprecating messages. - */ - deprecated: boolean; - /** - * Whether the message is an automatically generated map entry type for the - * maps field. - * - * For maps fields: - * map map_field = 1; - * The parsed descriptor looks like: - * message MapFieldEntry { - * option map_entry = true; - * optional KeyType key = 1; - * optional ValueType value = 2; - * } - * repeated MapFieldEntry map_field = 1; - * - * Implementations may choose not to generate the map_entry=true message, but - * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementations still need to work as - * if the field is a repeated message field. - * - * NOTE: Do not set the option in .proto files. Always use the maps syntax - * instead. The option should only be implicitly set by the proto compiler - * parser. - */ - mapEntry: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface FieldOptions { - /** - * The ctype option instructs the C++ code generator to use a different - * representation of the field than it normally would. See the specific - * options below. This option is not yet implemented in the open source - * release -- sorry, we'll try to include it in a future version! - */ - ctype: FieldOptions_CType; - /** - * The packed option can be enabled for repeated primitive fields to enable - * a more efficient representation on the wire. Rather than repeatedly - * writing the tag and type for each element, the entire array is encoded as - * a single length-delimited blob. In proto3, only explicit setting it to - * false will avoid using packed encoding. - */ - packed: boolean; - /** - * The jstype option determines the JavaScript type used for values of the - * field. The option is permitted only for 64 bit integral and fixed types - * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING - * is represented as JavaScript string, which avoids loss of precision that - * can happen when a large value is converted to a floating point JavaScript. - * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to - * use the JavaScript "number" type. The behavior of the default option - * JS_NORMAL is implementation dependent. - * - * This option is an enum to permit additional types to be added, e.g. - * goog.math.Integer. - */ - jstype: FieldOptions_JSType; - /** - * Should this field be parsed lazily? Lazy applies only to message-type - * fields. It means that when the outer message is initially parsed, the - * inner message's contents will not be parsed but instead stored in encoded - * form. The inner message will actually be parsed when it is first accessed. - * - * This is only a hint. Implementations are free to choose whether to use - * eager or lazy parsing regardless of the value of this option. However, - * setting this option true suggests that the protocol author believes that - * using lazy parsing on this field is worth the additional bookkeeping - * overhead typically needed to implement it. - * - * This option does not affect the public interface of any generated code; - * all method signatures remain the same. Furthermore, thread-safety of the - * interface is not affected by this option; const methods remain safe to - * call from multiple threads concurrently, while non-const methods continue - * to require exclusive access. - * - * Note that implementations may choose not to check required fields within - * a lazy sub-message. That is, calling IsInitialized() on the outer message - * may return true even if the inner message has missing required fields. - * This is necessary because otherwise the inner message would have to be - * parsed in order to perform the check, defeating the purpose of lazy - * parsing. An implementation which chooses not to check required fields - * must be consistent about it. That is, for any particular sub-message, the - * implementation must either *always* check its required fields, or *never* - * check its required fields, regardless of whether or not the message has - * been parsed. - * - * As of 2021, lazy does no correctness checks on the byte stream during - * parsing. This may lead to crashes if and when an invalid byte stream is - * finally parsed upon access. - * - * TODO(b/211906113): Enable validation on lazy fields. - */ - lazy: boolean; - /** - * unverified_lazy does no correctness checks on the byte stream. This should - * only be used where lazy with verification is prohibitive for performance - * reasons. - */ - unverifiedLazy: boolean; - /** - * Is this field deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for accessors, or it will be completely ignored; in the very least, this - * is a formalization for deprecating fields. - */ - deprecated: boolean; - /** For Google-internal migration only. Do not use. */ - weak: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export declare enum FieldOptions_CType { - /** STRING - Default mode. */ - STRING = 0, - CORD = 1, - STRING_PIECE = 2 -} -export declare function fieldOptions_CTypeFromJSON(object: any): FieldOptions_CType; -export declare function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string; -export declare enum FieldOptions_JSType { - /** JS_NORMAL - Use the default type. */ - JS_NORMAL = 0, - /** JS_STRING - Use JavaScript strings. */ - JS_STRING = 1, - /** JS_NUMBER - Use JavaScript numbers. */ - JS_NUMBER = 2 -} -export declare function fieldOptions_JSTypeFromJSON(object: any): FieldOptions_JSType; -export declare function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string; -export interface OneofOptions { - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface EnumOptions { - /** - * Set this option to true to allow mapping different tag names to the same - * value. - */ - allowAlias: boolean; - /** - * Is this enum deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum, or it will be completely ignored; in the very least, this - * is a formalization for deprecating enums. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface EnumValueOptions { - /** - * Is this enum value deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the enum value, or it will be completely ignored; in the very least, - * this is a formalization for deprecating enum values. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface ServiceOptions { - /** - * Is this service deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the service, or it will be completely ignored; in the very least, - * this is a formalization for deprecating services. - */ - deprecated: boolean; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -export interface MethodOptions { - /** - * Is this method deprecated? - * Depending on the target platform, this can emit Deprecated annotations - * for the method, or it will be completely ignored; in the very least, - * this is a formalization for deprecating methods. - */ - deprecated: boolean; - idempotencyLevel: MethodOptions_IdempotencyLevel; - /** The parser stores options it doesn't recognize here. See above. */ - uninterpretedOption: UninterpretedOption[]; -} -/** - * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - * or neither? HTTP based RPC implementation may choose GET verb for safe - * methods, and PUT verb for idempotent methods instead of the default POST. - */ -export declare enum MethodOptions_IdempotencyLevel { - IDEMPOTENCY_UNKNOWN = 0, - /** NO_SIDE_EFFECTS - implies idempotent */ - NO_SIDE_EFFECTS = 1, - /** IDEMPOTENT - idempotent, but may have side effects */ - IDEMPOTENT = 2 -} -export declare function methodOptions_IdempotencyLevelFromJSON(object: any): MethodOptions_IdempotencyLevel; -export declare function methodOptions_IdempotencyLevelToJSON(object: MethodOptions_IdempotencyLevel): string; -/** - * A message representing a option the parser does not recognize. This only - * appears in options protos created by the compiler::Parser class. - * DescriptorPool resolves these when building Descriptor objects. Therefore, - * options protos in descriptor objects (e.g. returned by Descriptor::options(), - * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions - * in them. - */ -export interface UninterpretedOption { - name: UninterpretedOption_NamePart[]; - /** - * The value of the uninterpreted option, in whatever type the tokenizer - * identified it as during parsing. Exactly one of these should be set. - */ - identifierValue: string; - positiveIntValue: string; - negativeIntValue: string; - doubleValue: number; - stringValue: Buffer; - aggregateValue: string; -} -/** - * The name of the uninterpreted option. Each string represents a segment in - * a dot-separated name. is_extension is true iff a segment represents an - * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents - * "foo.(bar.baz).moo". - */ -export interface UninterpretedOption_NamePart { - namePart: string; - isExtension: boolean; -} -/** - * Encapsulates information about the original source file from which a - * FileDescriptorProto was generated. - */ -export interface SourceCodeInfo { - /** - * A Location identifies a piece of source code in a .proto file which - * corresponds to a particular definition. This information is intended - * to be useful to IDEs, code indexers, documentation generators, and similar - * tools. - * - * For example, say we have a file like: - * message Foo { - * optional string foo = 1; - * } - * Let's look at just the field definition: - * optional string foo = 1; - * ^ ^^ ^^ ^ ^^^ - * a bc de f ghi - * We have the following locations: - * span path represents - * [a,i) [ 4, 0, 2, 0 ] The whole field definition. - * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). - * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). - * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). - * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). - * - * Notes: - * - A location may refer to a repeated field itself (i.e. not to any - * particular index within it). This is used whenever a set of elements are - * logically enclosed in a single code segment. For example, an entire - * extend block (possibly containing multiple extension definitions) will - * have an outer location whose path refers to the "extensions" repeated - * field without an index. - * - Multiple locations may have the same path. This happens when a single - * logical declaration is spread out across multiple places. The most - * obvious example is the "extend" block again -- there may be multiple - * extend blocks in the same scope, each of which will have the same path. - * - A location's span is not always a subset of its parent's span. For - * example, the "extendee" of an extension declaration appears at the - * beginning of the "extend" block and is shared by all extensions within - * the block. - * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendant. For example, a "group" defines - * both a type and a field in a single declaration. Thus, the locations - * corresponding to the type and field and their components will overlap. - * - Code which tries to interpret locations should probably be designed to - * ignore those that it doesn't understand, as more types of locations could - * be recorded in the future. - */ - location: SourceCodeInfo_Location[]; -} -export interface SourceCodeInfo_Location { - /** - * Identifies which part of the FileDescriptorProto was defined at this - * location. - * - * Each element is a field number or an index. They form a path from - * the root FileDescriptorProto to the place where the definition occurs. - * For example, this path: - * [ 4, 3, 2, 7, 1 ] - * refers to: - * file.message_type(3) // 4, 3 - * .field(7) // 2, 7 - * .name() // 1 - * This is because FileDescriptorProto.message_type has field number 4: - * repeated DescriptorProto message_type = 4; - * and DescriptorProto.field has field number 2: - * repeated FieldDescriptorProto field = 2; - * and FieldDescriptorProto.name has field number 1: - * optional string name = 1; - * - * Thus, the above path gives the location of a field name. If we removed - * the last element: - * [ 4, 3, 2, 7 ] - * this path refers to the whole field declaration (from the beginning - * of the label to the terminating semicolon). - */ - path: number[]; - /** - * Always has exactly three or four elements: start line, start column, - * end line (optional, otherwise assumed same as start line), end column. - * These are packed into a single field for efficiency. Note that line - * and column numbers are zero-based -- typically you will want to add - * 1 to each before displaying to a user. - */ - span: number[]; - /** - * If this SourceCodeInfo represents a complete declaration, these are any - * comments appearing before and after the declaration which appear to be - * attached to the declaration. - * - * A series of line comments appearing on consecutive lines, with no other - * tokens appearing on those lines, will be treated as a single comment. - * - * leading_detached_comments will keep paragraphs of comments that appear - * before (but not connected to) the current element. Each paragraph, - * separated by empty lines, will be one comment element in the repeated - * field. - * - * Only the comment content is provided; comment markers (e.g. //) are - * stripped out. For block comments, leading whitespace and an asterisk - * will be stripped from the beginning of each line other than the first. - * Newlines are included in the output. - * - * Examples: - * - * optional int32 foo = 1; // Comment attached to foo. - * // Comment attached to bar. - * optional int32 bar = 2; - * - * optional string baz = 3; - * // Comment attached to baz. - * // Another line attached to baz. - * - * // Comment attached to moo. - * // - * // Another line attached to moo. - * optional double moo = 4; - * - * // Detached comment for corge. This is not leading or trailing comments - * // to moo or corge because there are blank lines separating it from - * // both. - * - * // Detached comment for corge paragraph 2. - * - * optional string corge = 5; - * /* Block comment attached - * * to corge. Leading asterisks - * * will be removed. * / - * /* Block comment attached to - * * grault. * / - * optional int32 grault = 6; - * - * // ignored detached comments. - */ - leadingComments: string; - trailingComments: string; - leadingDetachedComments: string[]; -} -/** - * Describes the relationship between generated code and its original source - * file. A GeneratedCodeInfo message is associated with only one generated - * source file, but may contain references to different source .proto files. - */ -export interface GeneratedCodeInfo { - /** - * An Annotation connects some span of text in generated code to an element - * of its generating .proto file. - */ - annotation: GeneratedCodeInfo_Annotation[]; -} -export interface GeneratedCodeInfo_Annotation { - /** - * Identifies the element in the original source .proto file. This field - * is formatted the same as SourceCodeInfo.Location.path. - */ - path: number[]; - /** Identifies the filesystem path to the original source .proto. */ - sourceFile: string; - /** - * Identifies the starting offset in bytes in the generated code - * that relates to the identified object. - */ - begin: number; - /** - * Identifies the ending offset in bytes in the generated code that - * relates to the identified offset. The end offset should be one past - * the last relevant byte (so the length of the text = end - begin). - */ - end: number; -} -export declare const FileDescriptorSet: { - fromJSON(object: any): FileDescriptorSet; - toJSON(message: FileDescriptorSet): unknown; -}; -export declare const FileDescriptorProto: { - fromJSON(object: any): FileDescriptorProto; - toJSON(message: FileDescriptorProto): unknown; -}; -export declare const DescriptorProto: { - fromJSON(object: any): DescriptorProto; - toJSON(message: DescriptorProto): unknown; -}; -export declare const DescriptorProto_ExtensionRange: { - fromJSON(object: any): DescriptorProto_ExtensionRange; - toJSON(message: DescriptorProto_ExtensionRange): unknown; -}; -export declare const DescriptorProto_ReservedRange: { - fromJSON(object: any): DescriptorProto_ReservedRange; - toJSON(message: DescriptorProto_ReservedRange): unknown; -}; -export declare const ExtensionRangeOptions: { - fromJSON(object: any): ExtensionRangeOptions; - toJSON(message: ExtensionRangeOptions): unknown; -}; -export declare const FieldDescriptorProto: { - fromJSON(object: any): FieldDescriptorProto; - toJSON(message: FieldDescriptorProto): unknown; -}; -export declare const OneofDescriptorProto: { - fromJSON(object: any): OneofDescriptorProto; - toJSON(message: OneofDescriptorProto): unknown; -}; -export declare const EnumDescriptorProto: { - fromJSON(object: any): EnumDescriptorProto; - toJSON(message: EnumDescriptorProto): unknown; -}; -export declare const EnumDescriptorProto_EnumReservedRange: { - fromJSON(object: any): EnumDescriptorProto_EnumReservedRange; - toJSON(message: EnumDescriptorProto_EnumReservedRange): unknown; -}; -export declare const EnumValueDescriptorProto: { - fromJSON(object: any): EnumValueDescriptorProto; - toJSON(message: EnumValueDescriptorProto): unknown; -}; -export declare const ServiceDescriptorProto: { - fromJSON(object: any): ServiceDescriptorProto; - toJSON(message: ServiceDescriptorProto): unknown; -}; -export declare const MethodDescriptorProto: { - fromJSON(object: any): MethodDescriptorProto; - toJSON(message: MethodDescriptorProto): unknown; -}; -export declare const FileOptions: { - fromJSON(object: any): FileOptions; - toJSON(message: FileOptions): unknown; -}; -export declare const MessageOptions: { - fromJSON(object: any): MessageOptions; - toJSON(message: MessageOptions): unknown; -}; -export declare const FieldOptions: { - fromJSON(object: any): FieldOptions; - toJSON(message: FieldOptions): unknown; -}; -export declare const OneofOptions: { - fromJSON(object: any): OneofOptions; - toJSON(message: OneofOptions): unknown; -}; -export declare const EnumOptions: { - fromJSON(object: any): EnumOptions; - toJSON(message: EnumOptions): unknown; -}; -export declare const EnumValueOptions: { - fromJSON(object: any): EnumValueOptions; - toJSON(message: EnumValueOptions): unknown; -}; -export declare const ServiceOptions: { - fromJSON(object: any): ServiceOptions; - toJSON(message: ServiceOptions): unknown; -}; -export declare const MethodOptions: { - fromJSON(object: any): MethodOptions; - toJSON(message: MethodOptions): unknown; -}; -export declare const UninterpretedOption: { - fromJSON(object: any): UninterpretedOption; - toJSON(message: UninterpretedOption): unknown; -}; -export declare const UninterpretedOption_NamePart: { - fromJSON(object: any): UninterpretedOption_NamePart; - toJSON(message: UninterpretedOption_NamePart): unknown; -}; -export declare const SourceCodeInfo: { - fromJSON(object: any): SourceCodeInfo; - toJSON(message: SourceCodeInfo): unknown; -}; -export declare const SourceCodeInfo_Location: { - fromJSON(object: any): SourceCodeInfo_Location; - toJSON(message: SourceCodeInfo_Location): unknown; -}; -export declare const GeneratedCodeInfo: { - fromJSON(object: any): GeneratedCodeInfo; - toJSON(message: GeneratedCodeInfo): unknown; -}; -export declare const GeneratedCodeInfo_Annotation: { - fromJSON(object: any): GeneratedCodeInfo_Annotation; - toJSON(message: GeneratedCodeInfo_Annotation): unknown; -}; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/descriptor.js b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/descriptor.js deleted file mode 100644 index d429aac8..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/descriptor.js +++ /dev/null @@ -1,1308 +0,0 @@ -"use strict"; -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GeneratedCodeInfo_Annotation = exports.GeneratedCodeInfo = exports.SourceCodeInfo_Location = exports.SourceCodeInfo = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.MethodOptions = exports.ServiceOptions = exports.EnumValueOptions = exports.EnumOptions = exports.OneofOptions = exports.FieldOptions = exports.MessageOptions = exports.FileOptions = exports.MethodDescriptorProto = exports.ServiceDescriptorProto = exports.EnumValueDescriptorProto = exports.EnumDescriptorProto_EnumReservedRange = exports.EnumDescriptorProto = exports.OneofDescriptorProto = exports.FieldDescriptorProto = exports.ExtensionRangeOptions = exports.DescriptorProto_ReservedRange = exports.DescriptorProto_ExtensionRange = exports.DescriptorProto = exports.FileDescriptorProto = exports.FileDescriptorSet = exports.methodOptions_IdempotencyLevelToJSON = exports.methodOptions_IdempotencyLevelFromJSON = exports.MethodOptions_IdempotencyLevel = exports.fieldOptions_JSTypeToJSON = exports.fieldOptions_JSTypeFromJSON = exports.FieldOptions_JSType = exports.fieldOptions_CTypeToJSON = exports.fieldOptions_CTypeFromJSON = exports.FieldOptions_CType = exports.fileOptions_OptimizeModeToJSON = exports.fileOptions_OptimizeModeFromJSON = exports.FileOptions_OptimizeMode = exports.fieldDescriptorProto_LabelToJSON = exports.fieldDescriptorProto_LabelFromJSON = exports.FieldDescriptorProto_Label = exports.fieldDescriptorProto_TypeToJSON = exports.fieldDescriptorProto_TypeFromJSON = exports.FieldDescriptorProto_Type = void 0; -var FieldDescriptorProto_Type; -(function (FieldDescriptorProto_Type) { - /** - * TYPE_DOUBLE - 0 is reserved for errors. - * Order is weird for historical reasons. - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_DOUBLE"] = 1] = "TYPE_DOUBLE"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FLOAT"] = 2] = "TYPE_FLOAT"; - /** - * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if - * negative values are likely. - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT64"] = 3] = "TYPE_INT64"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT64"] = 4] = "TYPE_UINT64"; - /** - * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if - * negative values are likely. - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_INT32"] = 5] = "TYPE_INT32"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED64"] = 6] = "TYPE_FIXED64"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_FIXED32"] = 7] = "TYPE_FIXED32"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BOOL"] = 8] = "TYPE_BOOL"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_STRING"] = 9] = "TYPE_STRING"; - /** - * TYPE_GROUP - Tag-delimited aggregate. - * Group type is deprecated and not supported in proto3. However, Proto3 - * implementations should still be able to parse the group wire format and - * treat group fields as unknown fields. - */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_GROUP"] = 10] = "TYPE_GROUP"; - /** TYPE_MESSAGE - Length-delimited aggregate. */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_MESSAGE"] = 11] = "TYPE_MESSAGE"; - /** TYPE_BYTES - New in version 2. */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_BYTES"] = 12] = "TYPE_BYTES"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_UINT32"] = 13] = "TYPE_UINT32"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_ENUM"] = 14] = "TYPE_ENUM"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED32"] = 15] = "TYPE_SFIXED32"; - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SFIXED64"] = 16] = "TYPE_SFIXED64"; - /** TYPE_SINT32 - Uses ZigZag encoding. */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT32"] = 17] = "TYPE_SINT32"; - /** TYPE_SINT64 - Uses ZigZag encoding. */ - FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_SINT64"] = 18] = "TYPE_SINT64"; -})(FieldDescriptorProto_Type = exports.FieldDescriptorProto_Type || (exports.FieldDescriptorProto_Type = {})); -function fieldDescriptorProto_TypeFromJSON(object) { - switch (object) { - case 1: - case "TYPE_DOUBLE": - return FieldDescriptorProto_Type.TYPE_DOUBLE; - case 2: - case "TYPE_FLOAT": - return FieldDescriptorProto_Type.TYPE_FLOAT; - case 3: - case "TYPE_INT64": - return FieldDescriptorProto_Type.TYPE_INT64; - case 4: - case "TYPE_UINT64": - return FieldDescriptorProto_Type.TYPE_UINT64; - case 5: - case "TYPE_INT32": - return FieldDescriptorProto_Type.TYPE_INT32; - case 6: - case "TYPE_FIXED64": - return FieldDescriptorProto_Type.TYPE_FIXED64; - case 7: - case "TYPE_FIXED32": - return FieldDescriptorProto_Type.TYPE_FIXED32; - case 8: - case "TYPE_BOOL": - return FieldDescriptorProto_Type.TYPE_BOOL; - case 9: - case "TYPE_STRING": - return FieldDescriptorProto_Type.TYPE_STRING; - case 10: - case "TYPE_GROUP": - return FieldDescriptorProto_Type.TYPE_GROUP; - case 11: - case "TYPE_MESSAGE": - return FieldDescriptorProto_Type.TYPE_MESSAGE; - case 12: - case "TYPE_BYTES": - return FieldDescriptorProto_Type.TYPE_BYTES; - case 13: - case "TYPE_UINT32": - return FieldDescriptorProto_Type.TYPE_UINT32; - case 14: - case "TYPE_ENUM": - return FieldDescriptorProto_Type.TYPE_ENUM; - case 15: - case "TYPE_SFIXED32": - return FieldDescriptorProto_Type.TYPE_SFIXED32; - case 16: - case "TYPE_SFIXED64": - return FieldDescriptorProto_Type.TYPE_SFIXED64; - case 17: - case "TYPE_SINT32": - return FieldDescriptorProto_Type.TYPE_SINT32; - case 18: - case "TYPE_SINT64": - return FieldDescriptorProto_Type.TYPE_SINT64; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldDescriptorProto_Type"); - } -} -exports.fieldDescriptorProto_TypeFromJSON = fieldDescriptorProto_TypeFromJSON; -function fieldDescriptorProto_TypeToJSON(object) { - switch (object) { - case FieldDescriptorProto_Type.TYPE_DOUBLE: - return "TYPE_DOUBLE"; - case FieldDescriptorProto_Type.TYPE_FLOAT: - return "TYPE_FLOAT"; - case FieldDescriptorProto_Type.TYPE_INT64: - return "TYPE_INT64"; - case FieldDescriptorProto_Type.TYPE_UINT64: - return "TYPE_UINT64"; - case FieldDescriptorProto_Type.TYPE_INT32: - return "TYPE_INT32"; - case FieldDescriptorProto_Type.TYPE_FIXED64: - return "TYPE_FIXED64"; - case FieldDescriptorProto_Type.TYPE_FIXED32: - return "TYPE_FIXED32"; - case FieldDescriptorProto_Type.TYPE_BOOL: - return "TYPE_BOOL"; - case FieldDescriptorProto_Type.TYPE_STRING: - return "TYPE_STRING"; - case FieldDescriptorProto_Type.TYPE_GROUP: - return "TYPE_GROUP"; - case FieldDescriptorProto_Type.TYPE_MESSAGE: - return "TYPE_MESSAGE"; - case FieldDescriptorProto_Type.TYPE_BYTES: - return "TYPE_BYTES"; - case FieldDescriptorProto_Type.TYPE_UINT32: - return "TYPE_UINT32"; - case FieldDescriptorProto_Type.TYPE_ENUM: - return "TYPE_ENUM"; - case FieldDescriptorProto_Type.TYPE_SFIXED32: - return "TYPE_SFIXED32"; - case FieldDescriptorProto_Type.TYPE_SFIXED64: - return "TYPE_SFIXED64"; - case FieldDescriptorProto_Type.TYPE_SINT32: - return "TYPE_SINT32"; - case FieldDescriptorProto_Type.TYPE_SINT64: - return "TYPE_SINT64"; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldDescriptorProto_Type"); - } -} -exports.fieldDescriptorProto_TypeToJSON = fieldDescriptorProto_TypeToJSON; -var FieldDescriptorProto_Label; -(function (FieldDescriptorProto_Label) { - /** LABEL_OPTIONAL - 0 is reserved for errors */ - FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_OPTIONAL"] = 1] = "LABEL_OPTIONAL"; - FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REQUIRED"] = 2] = "LABEL_REQUIRED"; - FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REPEATED"] = 3] = "LABEL_REPEATED"; -})(FieldDescriptorProto_Label = exports.FieldDescriptorProto_Label || (exports.FieldDescriptorProto_Label = {})); -function fieldDescriptorProto_LabelFromJSON(object) { - switch (object) { - case 1: - case "LABEL_OPTIONAL": - return FieldDescriptorProto_Label.LABEL_OPTIONAL; - case 2: - case "LABEL_REQUIRED": - return FieldDescriptorProto_Label.LABEL_REQUIRED; - case 3: - case "LABEL_REPEATED": - return FieldDescriptorProto_Label.LABEL_REPEATED; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldDescriptorProto_Label"); - } -} -exports.fieldDescriptorProto_LabelFromJSON = fieldDescriptorProto_LabelFromJSON; -function fieldDescriptorProto_LabelToJSON(object) { - switch (object) { - case FieldDescriptorProto_Label.LABEL_OPTIONAL: - return "LABEL_OPTIONAL"; - case FieldDescriptorProto_Label.LABEL_REQUIRED: - return "LABEL_REQUIRED"; - case FieldDescriptorProto_Label.LABEL_REPEATED: - return "LABEL_REPEATED"; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldDescriptorProto_Label"); - } -} -exports.fieldDescriptorProto_LabelToJSON = fieldDescriptorProto_LabelToJSON; -/** Generated classes can be optimized for speed or code size. */ -var FileOptions_OptimizeMode; -(function (FileOptions_OptimizeMode) { - /** SPEED - Generate complete code for parsing, serialization, */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["SPEED"] = 1] = "SPEED"; - /** CODE_SIZE - etc. */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["CODE_SIZE"] = 2] = "CODE_SIZE"; - /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */ - FileOptions_OptimizeMode[FileOptions_OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME"; -})(FileOptions_OptimizeMode = exports.FileOptions_OptimizeMode || (exports.FileOptions_OptimizeMode = {})); -function fileOptions_OptimizeModeFromJSON(object) { - switch (object) { - case 1: - case "SPEED": - return FileOptions_OptimizeMode.SPEED; - case 2: - case "CODE_SIZE": - return FileOptions_OptimizeMode.CODE_SIZE; - case 3: - case "LITE_RUNTIME": - return FileOptions_OptimizeMode.LITE_RUNTIME; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FileOptions_OptimizeMode"); - } -} -exports.fileOptions_OptimizeModeFromJSON = fileOptions_OptimizeModeFromJSON; -function fileOptions_OptimizeModeToJSON(object) { - switch (object) { - case FileOptions_OptimizeMode.SPEED: - return "SPEED"; - case FileOptions_OptimizeMode.CODE_SIZE: - return "CODE_SIZE"; - case FileOptions_OptimizeMode.LITE_RUNTIME: - return "LITE_RUNTIME"; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FileOptions_OptimizeMode"); - } -} -exports.fileOptions_OptimizeModeToJSON = fileOptions_OptimizeModeToJSON; -var FieldOptions_CType; -(function (FieldOptions_CType) { - /** STRING - Default mode. */ - FieldOptions_CType[FieldOptions_CType["STRING"] = 0] = "STRING"; - FieldOptions_CType[FieldOptions_CType["CORD"] = 1] = "CORD"; - FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE"; -})(FieldOptions_CType = exports.FieldOptions_CType || (exports.FieldOptions_CType = {})); -function fieldOptions_CTypeFromJSON(object) { - switch (object) { - case 0: - case "STRING": - return FieldOptions_CType.STRING; - case 1: - case "CORD": - return FieldOptions_CType.CORD; - case 2: - case "STRING_PIECE": - return FieldOptions_CType.STRING_PIECE; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldOptions_CType"); - } -} -exports.fieldOptions_CTypeFromJSON = fieldOptions_CTypeFromJSON; -function fieldOptions_CTypeToJSON(object) { - switch (object) { - case FieldOptions_CType.STRING: - return "STRING"; - case FieldOptions_CType.CORD: - return "CORD"; - case FieldOptions_CType.STRING_PIECE: - return "STRING_PIECE"; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldOptions_CType"); - } -} -exports.fieldOptions_CTypeToJSON = fieldOptions_CTypeToJSON; -var FieldOptions_JSType; -(function (FieldOptions_JSType) { - /** JS_NORMAL - Use the default type. */ - FieldOptions_JSType[FieldOptions_JSType["JS_NORMAL"] = 0] = "JS_NORMAL"; - /** JS_STRING - Use JavaScript strings. */ - FieldOptions_JSType[FieldOptions_JSType["JS_STRING"] = 1] = "JS_STRING"; - /** JS_NUMBER - Use JavaScript numbers. */ - FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER"; -})(FieldOptions_JSType = exports.FieldOptions_JSType || (exports.FieldOptions_JSType = {})); -function fieldOptions_JSTypeFromJSON(object) { - switch (object) { - case 0: - case "JS_NORMAL": - return FieldOptions_JSType.JS_NORMAL; - case 1: - case "JS_STRING": - return FieldOptions_JSType.JS_STRING; - case 2: - case "JS_NUMBER": - return FieldOptions_JSType.JS_NUMBER; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldOptions_JSType"); - } -} -exports.fieldOptions_JSTypeFromJSON = fieldOptions_JSTypeFromJSON; -function fieldOptions_JSTypeToJSON(object) { - switch (object) { - case FieldOptions_JSType.JS_NORMAL: - return "JS_NORMAL"; - case FieldOptions_JSType.JS_STRING: - return "JS_STRING"; - case FieldOptions_JSType.JS_NUMBER: - return "JS_NUMBER"; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum FieldOptions_JSType"); - } -} -exports.fieldOptions_JSTypeToJSON = fieldOptions_JSTypeToJSON; -/** - * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, - * or neither? HTTP based RPC implementation may choose GET verb for safe - * methods, and PUT verb for idempotent methods instead of the default POST. - */ -var MethodOptions_IdempotencyLevel; -(function (MethodOptions_IdempotencyLevel) { - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENCY_UNKNOWN"] = 0] = "IDEMPOTENCY_UNKNOWN"; - /** NO_SIDE_EFFECTS - implies idempotent */ - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["NO_SIDE_EFFECTS"] = 1] = "NO_SIDE_EFFECTS"; - /** IDEMPOTENT - idempotent, but may have side effects */ - MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT"; -})(MethodOptions_IdempotencyLevel = exports.MethodOptions_IdempotencyLevel || (exports.MethodOptions_IdempotencyLevel = {})); -function methodOptions_IdempotencyLevelFromJSON(object) { - switch (object) { - case 0: - case "IDEMPOTENCY_UNKNOWN": - return MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN; - case 1: - case "NO_SIDE_EFFECTS": - return MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS; - case 2: - case "IDEMPOTENT": - return MethodOptions_IdempotencyLevel.IDEMPOTENT; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum MethodOptions_IdempotencyLevel"); - } -} -exports.methodOptions_IdempotencyLevelFromJSON = methodOptions_IdempotencyLevelFromJSON; -function methodOptions_IdempotencyLevelToJSON(object) { - switch (object) { - case MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN: - return "IDEMPOTENCY_UNKNOWN"; - case MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS: - return "NO_SIDE_EFFECTS"; - case MethodOptions_IdempotencyLevel.IDEMPOTENT: - return "IDEMPOTENT"; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum MethodOptions_IdempotencyLevel"); - } -} -exports.methodOptions_IdempotencyLevelToJSON = methodOptions_IdempotencyLevelToJSON; -function createBaseFileDescriptorSet() { - return { file: [] }; -} -exports.FileDescriptorSet = { - fromJSON(object) { - return { file: Array.isArray(object?.file) ? object.file.map((e) => exports.FileDescriptorProto.fromJSON(e)) : [] }; - }, - toJSON(message) { - const obj = {}; - if (message.file) { - obj.file = message.file.map((e) => e ? exports.FileDescriptorProto.toJSON(e) : undefined); - } - else { - obj.file = []; - } - return obj; - }, -}; -function createBaseFileDescriptorProto() { - return { - name: "", - package: "", - dependency: [], - publicDependency: [], - weakDependency: [], - messageType: [], - enumType: [], - service: [], - extension: [], - options: undefined, - sourceCodeInfo: undefined, - syntax: "", - }; -} -exports.FileDescriptorProto = { - fromJSON(object) { - return { - name: isSet(object.name) ? String(object.name) : "", - package: isSet(object.package) ? String(object.package) : "", - dependency: Array.isArray(object?.dependency) ? object.dependency.map((e) => String(e)) : [], - publicDependency: Array.isArray(object?.publicDependency) - ? object.publicDependency.map((e) => Number(e)) - : [], - weakDependency: Array.isArray(object?.weakDependency) ? object.weakDependency.map((e) => Number(e)) : [], - messageType: Array.isArray(object?.messageType) - ? object.messageType.map((e) => exports.DescriptorProto.fromJSON(e)) - : [], - enumType: Array.isArray(object?.enumType) ? object.enumType.map((e) => exports.EnumDescriptorProto.fromJSON(e)) : [], - service: Array.isArray(object?.service) ? object.service.map((e) => exports.ServiceDescriptorProto.fromJSON(e)) : [], - extension: Array.isArray(object?.extension) - ? object.extension.map((e) => exports.FieldDescriptorProto.fromJSON(e)) - : [], - options: isSet(object.options) ? exports.FileOptions.fromJSON(object.options) : undefined, - sourceCodeInfo: isSet(object.sourceCodeInfo) ? exports.SourceCodeInfo.fromJSON(object.sourceCodeInfo) : undefined, - syntax: isSet(object.syntax) ? String(object.syntax) : "", - }; - }, - toJSON(message) { - const obj = {}; - message.name !== undefined && (obj.name = message.name); - message.package !== undefined && (obj.package = message.package); - if (message.dependency) { - obj.dependency = message.dependency.map((e) => e); - } - else { - obj.dependency = []; - } - if (message.publicDependency) { - obj.publicDependency = message.publicDependency.map((e) => Math.round(e)); - } - else { - obj.publicDependency = []; - } - if (message.weakDependency) { - obj.weakDependency = message.weakDependency.map((e) => Math.round(e)); - } - else { - obj.weakDependency = []; - } - if (message.messageType) { - obj.messageType = message.messageType.map((e) => e ? exports.DescriptorProto.toJSON(e) : undefined); - } - else { - obj.messageType = []; - } - if (message.enumType) { - obj.enumType = message.enumType.map((e) => e ? exports.EnumDescriptorProto.toJSON(e) : undefined); - } - else { - obj.enumType = []; - } - if (message.service) { - obj.service = message.service.map((e) => e ? exports.ServiceDescriptorProto.toJSON(e) : undefined); - } - else { - obj.service = []; - } - if (message.extension) { - obj.extension = message.extension.map((e) => e ? exports.FieldDescriptorProto.toJSON(e) : undefined); - } - else { - obj.extension = []; - } - message.options !== undefined && (obj.options = message.options ? exports.FileOptions.toJSON(message.options) : undefined); - message.sourceCodeInfo !== undefined && - (obj.sourceCodeInfo = message.sourceCodeInfo ? exports.SourceCodeInfo.toJSON(message.sourceCodeInfo) : undefined); - message.syntax !== undefined && (obj.syntax = message.syntax); - return obj; - }, -}; -function createBaseDescriptorProto() { - return { - name: "", - field: [], - extension: [], - nestedType: [], - enumType: [], - extensionRange: [], - oneofDecl: [], - options: undefined, - reservedRange: [], - reservedName: [], - }; -} -exports.DescriptorProto = { - fromJSON(object) { - return { - name: isSet(object.name) ? String(object.name) : "", - field: Array.isArray(object?.field) ? object.field.map((e) => exports.FieldDescriptorProto.fromJSON(e)) : [], - extension: Array.isArray(object?.extension) - ? object.extension.map((e) => exports.FieldDescriptorProto.fromJSON(e)) - : [], - nestedType: Array.isArray(object?.nestedType) - ? object.nestedType.map((e) => exports.DescriptorProto.fromJSON(e)) - : [], - enumType: Array.isArray(object?.enumType) ? object.enumType.map((e) => exports.EnumDescriptorProto.fromJSON(e)) : [], - extensionRange: Array.isArray(object?.extensionRange) - ? object.extensionRange.map((e) => exports.DescriptorProto_ExtensionRange.fromJSON(e)) - : [], - oneofDecl: Array.isArray(object?.oneofDecl) - ? object.oneofDecl.map((e) => exports.OneofDescriptorProto.fromJSON(e)) - : [], - options: isSet(object.options) ? exports.MessageOptions.fromJSON(object.options) : undefined, - reservedRange: Array.isArray(object?.reservedRange) - ? object.reservedRange.map((e) => exports.DescriptorProto_ReservedRange.fromJSON(e)) - : [], - reservedName: Array.isArray(object?.reservedName) ? object.reservedName.map((e) => String(e)) : [], - }; - }, - toJSON(message) { - const obj = {}; - message.name !== undefined && (obj.name = message.name); - if (message.field) { - obj.field = message.field.map((e) => e ? exports.FieldDescriptorProto.toJSON(e) : undefined); - } - else { - obj.field = []; - } - if (message.extension) { - obj.extension = message.extension.map((e) => e ? exports.FieldDescriptorProto.toJSON(e) : undefined); - } - else { - obj.extension = []; - } - if (message.nestedType) { - obj.nestedType = message.nestedType.map((e) => e ? exports.DescriptorProto.toJSON(e) : undefined); - } - else { - obj.nestedType = []; - } - if (message.enumType) { - obj.enumType = message.enumType.map((e) => e ? exports.EnumDescriptorProto.toJSON(e) : undefined); - } - else { - obj.enumType = []; - } - if (message.extensionRange) { - obj.extensionRange = message.extensionRange.map((e) => e ? exports.DescriptorProto_ExtensionRange.toJSON(e) : undefined); - } - else { - obj.extensionRange = []; - } - if (message.oneofDecl) { - obj.oneofDecl = message.oneofDecl.map((e) => e ? exports.OneofDescriptorProto.toJSON(e) : undefined); - } - else { - obj.oneofDecl = []; - } - message.options !== undefined && - (obj.options = message.options ? exports.MessageOptions.toJSON(message.options) : undefined); - if (message.reservedRange) { - obj.reservedRange = message.reservedRange.map((e) => e ? exports.DescriptorProto_ReservedRange.toJSON(e) : undefined); - } - else { - obj.reservedRange = []; - } - if (message.reservedName) { - obj.reservedName = message.reservedName.map((e) => e); - } - else { - obj.reservedName = []; - } - return obj; - }, -}; -function createBaseDescriptorProto_ExtensionRange() { - return { start: 0, end: 0, options: undefined }; -} -exports.DescriptorProto_ExtensionRange = { - fromJSON(object) { - return { - start: isSet(object.start) ? Number(object.start) : 0, - end: isSet(object.end) ? Number(object.end) : 0, - options: isSet(object.options) ? exports.ExtensionRangeOptions.fromJSON(object.options) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.start !== undefined && (obj.start = Math.round(message.start)); - message.end !== undefined && (obj.end = Math.round(message.end)); - message.options !== undefined && - (obj.options = message.options ? exports.ExtensionRangeOptions.toJSON(message.options) : undefined); - return obj; - }, -}; -function createBaseDescriptorProto_ReservedRange() { - return { start: 0, end: 0 }; -} -exports.DescriptorProto_ReservedRange = { - fromJSON(object) { - return { start: isSet(object.start) ? Number(object.start) : 0, end: isSet(object.end) ? Number(object.end) : 0 }; - }, - toJSON(message) { - const obj = {}; - message.start !== undefined && (obj.start = Math.round(message.start)); - message.end !== undefined && (obj.end = Math.round(message.end)); - return obj; - }, -}; -function createBaseExtensionRangeOptions() { - return { uninterpretedOption: [] }; -} -exports.ExtensionRangeOptions = { - fromJSON(object) { - return { - uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e) => exports.UninterpretedOption.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined); - } - else { - obj.uninterpretedOption = []; - } - return obj; - }, -}; -function createBaseFieldDescriptorProto() { - return { - name: "", - number: 0, - label: 1, - type: 1, - typeName: "", - extendee: "", - defaultValue: "", - oneofIndex: 0, - jsonName: "", - options: undefined, - proto3Optional: false, - }; -} -exports.FieldDescriptorProto = { - fromJSON(object) { - return { - name: isSet(object.name) ? String(object.name) : "", - number: isSet(object.number) ? Number(object.number) : 0, - label: isSet(object.label) ? fieldDescriptorProto_LabelFromJSON(object.label) : 1, - type: isSet(object.type) ? fieldDescriptorProto_TypeFromJSON(object.type) : 1, - typeName: isSet(object.typeName) ? String(object.typeName) : "", - extendee: isSet(object.extendee) ? String(object.extendee) : "", - defaultValue: isSet(object.defaultValue) ? String(object.defaultValue) : "", - oneofIndex: isSet(object.oneofIndex) ? Number(object.oneofIndex) : 0, - jsonName: isSet(object.jsonName) ? String(object.jsonName) : "", - options: isSet(object.options) ? exports.FieldOptions.fromJSON(object.options) : undefined, - proto3Optional: isSet(object.proto3Optional) ? Boolean(object.proto3Optional) : false, - }; - }, - toJSON(message) { - const obj = {}; - message.name !== undefined && (obj.name = message.name); - message.number !== undefined && (obj.number = Math.round(message.number)); - message.label !== undefined && (obj.label = fieldDescriptorProto_LabelToJSON(message.label)); - message.type !== undefined && (obj.type = fieldDescriptorProto_TypeToJSON(message.type)); - message.typeName !== undefined && (obj.typeName = message.typeName); - message.extendee !== undefined && (obj.extendee = message.extendee); - message.defaultValue !== undefined && (obj.defaultValue = message.defaultValue); - message.oneofIndex !== undefined && (obj.oneofIndex = Math.round(message.oneofIndex)); - message.jsonName !== undefined && (obj.jsonName = message.jsonName); - message.options !== undefined && (obj.options = message.options ? exports.FieldOptions.toJSON(message.options) : undefined); - message.proto3Optional !== undefined && (obj.proto3Optional = message.proto3Optional); - return obj; - }, -}; -function createBaseOneofDescriptorProto() { - return { name: "", options: undefined }; -} -exports.OneofDescriptorProto = { - fromJSON(object) { - return { - name: isSet(object.name) ? String(object.name) : "", - options: isSet(object.options) ? exports.OneofOptions.fromJSON(object.options) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.name !== undefined && (obj.name = message.name); - message.options !== undefined && (obj.options = message.options ? exports.OneofOptions.toJSON(message.options) : undefined); - return obj; - }, -}; -function createBaseEnumDescriptorProto() { - return { name: "", value: [], options: undefined, reservedRange: [], reservedName: [] }; -} -exports.EnumDescriptorProto = { - fromJSON(object) { - return { - name: isSet(object.name) ? String(object.name) : "", - value: Array.isArray(object?.value) ? object.value.map((e) => exports.EnumValueDescriptorProto.fromJSON(e)) : [], - options: isSet(object.options) ? exports.EnumOptions.fromJSON(object.options) : undefined, - reservedRange: Array.isArray(object?.reservedRange) - ? object.reservedRange.map((e) => exports.EnumDescriptorProto_EnumReservedRange.fromJSON(e)) - : [], - reservedName: Array.isArray(object?.reservedName) - ? object.reservedName.map((e) => String(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - message.name !== undefined && (obj.name = message.name); - if (message.value) { - obj.value = message.value.map((e) => e ? exports.EnumValueDescriptorProto.toJSON(e) : undefined); - } - else { - obj.value = []; - } - message.options !== undefined && (obj.options = message.options ? exports.EnumOptions.toJSON(message.options) : undefined); - if (message.reservedRange) { - obj.reservedRange = message.reservedRange.map((e) => e ? exports.EnumDescriptorProto_EnumReservedRange.toJSON(e) : undefined); - } - else { - obj.reservedRange = []; - } - if (message.reservedName) { - obj.reservedName = message.reservedName.map((e) => e); - } - else { - obj.reservedName = []; - } - return obj; - }, -}; -function createBaseEnumDescriptorProto_EnumReservedRange() { - return { start: 0, end: 0 }; -} -exports.EnumDescriptorProto_EnumReservedRange = { - fromJSON(object) { - return { start: isSet(object.start) ? Number(object.start) : 0, end: isSet(object.end) ? Number(object.end) : 0 }; - }, - toJSON(message) { - const obj = {}; - message.start !== undefined && (obj.start = Math.round(message.start)); - message.end !== undefined && (obj.end = Math.round(message.end)); - return obj; - }, -}; -function createBaseEnumValueDescriptorProto() { - return { name: "", number: 0, options: undefined }; -} -exports.EnumValueDescriptorProto = { - fromJSON(object) { - return { - name: isSet(object.name) ? String(object.name) : "", - number: isSet(object.number) ? Number(object.number) : 0, - options: isSet(object.options) ? exports.EnumValueOptions.fromJSON(object.options) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.name !== undefined && (obj.name = message.name); - message.number !== undefined && (obj.number = Math.round(message.number)); - message.options !== undefined && - (obj.options = message.options ? exports.EnumValueOptions.toJSON(message.options) : undefined); - return obj; - }, -}; -function createBaseServiceDescriptorProto() { - return { name: "", method: [], options: undefined }; -} -exports.ServiceDescriptorProto = { - fromJSON(object) { - return { - name: isSet(object.name) ? String(object.name) : "", - method: Array.isArray(object?.method) ? object.method.map((e) => exports.MethodDescriptorProto.fromJSON(e)) : [], - options: isSet(object.options) ? exports.ServiceOptions.fromJSON(object.options) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.name !== undefined && (obj.name = message.name); - if (message.method) { - obj.method = message.method.map((e) => e ? exports.MethodDescriptorProto.toJSON(e) : undefined); - } - else { - obj.method = []; - } - message.options !== undefined && - (obj.options = message.options ? exports.ServiceOptions.toJSON(message.options) : undefined); - return obj; - }, -}; -function createBaseMethodDescriptorProto() { - return { - name: "", - inputType: "", - outputType: "", - options: undefined, - clientStreaming: false, - serverStreaming: false, - }; -} -exports.MethodDescriptorProto = { - fromJSON(object) { - return { - name: isSet(object.name) ? String(object.name) : "", - inputType: isSet(object.inputType) ? String(object.inputType) : "", - outputType: isSet(object.outputType) ? String(object.outputType) : "", - options: isSet(object.options) ? exports.MethodOptions.fromJSON(object.options) : undefined, - clientStreaming: isSet(object.clientStreaming) ? Boolean(object.clientStreaming) : false, - serverStreaming: isSet(object.serverStreaming) ? Boolean(object.serverStreaming) : false, - }; - }, - toJSON(message) { - const obj = {}; - message.name !== undefined && (obj.name = message.name); - message.inputType !== undefined && (obj.inputType = message.inputType); - message.outputType !== undefined && (obj.outputType = message.outputType); - message.options !== undefined && - (obj.options = message.options ? exports.MethodOptions.toJSON(message.options) : undefined); - message.clientStreaming !== undefined && (obj.clientStreaming = message.clientStreaming); - message.serverStreaming !== undefined && (obj.serverStreaming = message.serverStreaming); - return obj; - }, -}; -function createBaseFileOptions() { - return { - javaPackage: "", - javaOuterClassname: "", - javaMultipleFiles: false, - javaGenerateEqualsAndHash: false, - javaStringCheckUtf8: false, - optimizeFor: 1, - goPackage: "", - ccGenericServices: false, - javaGenericServices: false, - pyGenericServices: false, - phpGenericServices: false, - deprecated: false, - ccEnableArenas: false, - objcClassPrefix: "", - csharpNamespace: "", - swiftPrefix: "", - phpClassPrefix: "", - phpNamespace: "", - phpMetadataNamespace: "", - rubyPackage: "", - uninterpretedOption: [], - }; -} -exports.FileOptions = { - fromJSON(object) { - return { - javaPackage: isSet(object.javaPackage) ? String(object.javaPackage) : "", - javaOuterClassname: isSet(object.javaOuterClassname) ? String(object.javaOuterClassname) : "", - javaMultipleFiles: isSet(object.javaMultipleFiles) ? Boolean(object.javaMultipleFiles) : false, - javaGenerateEqualsAndHash: isSet(object.javaGenerateEqualsAndHash) - ? Boolean(object.javaGenerateEqualsAndHash) - : false, - javaStringCheckUtf8: isSet(object.javaStringCheckUtf8) ? Boolean(object.javaStringCheckUtf8) : false, - optimizeFor: isSet(object.optimizeFor) ? fileOptions_OptimizeModeFromJSON(object.optimizeFor) : 1, - goPackage: isSet(object.goPackage) ? String(object.goPackage) : "", - ccGenericServices: isSet(object.ccGenericServices) ? Boolean(object.ccGenericServices) : false, - javaGenericServices: isSet(object.javaGenericServices) ? Boolean(object.javaGenericServices) : false, - pyGenericServices: isSet(object.pyGenericServices) ? Boolean(object.pyGenericServices) : false, - phpGenericServices: isSet(object.phpGenericServices) ? Boolean(object.phpGenericServices) : false, - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - ccEnableArenas: isSet(object.ccEnableArenas) ? Boolean(object.ccEnableArenas) : false, - objcClassPrefix: isSet(object.objcClassPrefix) ? String(object.objcClassPrefix) : "", - csharpNamespace: isSet(object.csharpNamespace) ? String(object.csharpNamespace) : "", - swiftPrefix: isSet(object.swiftPrefix) ? String(object.swiftPrefix) : "", - phpClassPrefix: isSet(object.phpClassPrefix) ? String(object.phpClassPrefix) : "", - phpNamespace: isSet(object.phpNamespace) ? String(object.phpNamespace) : "", - phpMetadataNamespace: isSet(object.phpMetadataNamespace) ? String(object.phpMetadataNamespace) : "", - rubyPackage: isSet(object.rubyPackage) ? String(object.rubyPackage) : "", - uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e) => exports.UninterpretedOption.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - message.javaPackage !== undefined && (obj.javaPackage = message.javaPackage); - message.javaOuterClassname !== undefined && (obj.javaOuterClassname = message.javaOuterClassname); - message.javaMultipleFiles !== undefined && (obj.javaMultipleFiles = message.javaMultipleFiles); - message.javaGenerateEqualsAndHash !== undefined && - (obj.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash); - message.javaStringCheckUtf8 !== undefined && (obj.javaStringCheckUtf8 = message.javaStringCheckUtf8); - message.optimizeFor !== undefined && (obj.optimizeFor = fileOptions_OptimizeModeToJSON(message.optimizeFor)); - message.goPackage !== undefined && (obj.goPackage = message.goPackage); - message.ccGenericServices !== undefined && (obj.ccGenericServices = message.ccGenericServices); - message.javaGenericServices !== undefined && (obj.javaGenericServices = message.javaGenericServices); - message.pyGenericServices !== undefined && (obj.pyGenericServices = message.pyGenericServices); - message.phpGenericServices !== undefined && (obj.phpGenericServices = message.phpGenericServices); - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - message.ccEnableArenas !== undefined && (obj.ccEnableArenas = message.ccEnableArenas); - message.objcClassPrefix !== undefined && (obj.objcClassPrefix = message.objcClassPrefix); - message.csharpNamespace !== undefined && (obj.csharpNamespace = message.csharpNamespace); - message.swiftPrefix !== undefined && (obj.swiftPrefix = message.swiftPrefix); - message.phpClassPrefix !== undefined && (obj.phpClassPrefix = message.phpClassPrefix); - message.phpNamespace !== undefined && (obj.phpNamespace = message.phpNamespace); - message.phpMetadataNamespace !== undefined && (obj.phpMetadataNamespace = message.phpMetadataNamespace); - message.rubyPackage !== undefined && (obj.rubyPackage = message.rubyPackage); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined); - } - else { - obj.uninterpretedOption = []; - } - return obj; - }, -}; -function createBaseMessageOptions() { - return { - messageSetWireFormat: false, - noStandardDescriptorAccessor: false, - deprecated: false, - mapEntry: false, - uninterpretedOption: [], - }; -} -exports.MessageOptions = { - fromJSON(object) { - return { - messageSetWireFormat: isSet(object.messageSetWireFormat) ? Boolean(object.messageSetWireFormat) : false, - noStandardDescriptorAccessor: isSet(object.noStandardDescriptorAccessor) - ? Boolean(object.noStandardDescriptorAccessor) - : false, - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - mapEntry: isSet(object.mapEntry) ? Boolean(object.mapEntry) : false, - uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e) => exports.UninterpretedOption.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - message.messageSetWireFormat !== undefined && (obj.messageSetWireFormat = message.messageSetWireFormat); - message.noStandardDescriptorAccessor !== undefined && - (obj.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor); - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - message.mapEntry !== undefined && (obj.mapEntry = message.mapEntry); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined); - } - else { - obj.uninterpretedOption = []; - } - return obj; - }, -}; -function createBaseFieldOptions() { - return { - ctype: 0, - packed: false, - jstype: 0, - lazy: false, - unverifiedLazy: false, - deprecated: false, - weak: false, - uninterpretedOption: [], - }; -} -exports.FieldOptions = { - fromJSON(object) { - return { - ctype: isSet(object.ctype) ? fieldOptions_CTypeFromJSON(object.ctype) : 0, - packed: isSet(object.packed) ? Boolean(object.packed) : false, - jstype: isSet(object.jstype) ? fieldOptions_JSTypeFromJSON(object.jstype) : 0, - lazy: isSet(object.lazy) ? Boolean(object.lazy) : false, - unverifiedLazy: isSet(object.unverifiedLazy) ? Boolean(object.unverifiedLazy) : false, - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - weak: isSet(object.weak) ? Boolean(object.weak) : false, - uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e) => exports.UninterpretedOption.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - message.ctype !== undefined && (obj.ctype = fieldOptions_CTypeToJSON(message.ctype)); - message.packed !== undefined && (obj.packed = message.packed); - message.jstype !== undefined && (obj.jstype = fieldOptions_JSTypeToJSON(message.jstype)); - message.lazy !== undefined && (obj.lazy = message.lazy); - message.unverifiedLazy !== undefined && (obj.unverifiedLazy = message.unverifiedLazy); - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - message.weak !== undefined && (obj.weak = message.weak); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined); - } - else { - obj.uninterpretedOption = []; - } - return obj; - }, -}; -function createBaseOneofOptions() { - return { uninterpretedOption: [] }; -} -exports.OneofOptions = { - fromJSON(object) { - return { - uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e) => exports.UninterpretedOption.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined); - } - else { - obj.uninterpretedOption = []; - } - return obj; - }, -}; -function createBaseEnumOptions() { - return { allowAlias: false, deprecated: false, uninterpretedOption: [] }; -} -exports.EnumOptions = { - fromJSON(object) { - return { - allowAlias: isSet(object.allowAlias) ? Boolean(object.allowAlias) : false, - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e) => exports.UninterpretedOption.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - message.allowAlias !== undefined && (obj.allowAlias = message.allowAlias); - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined); - } - else { - obj.uninterpretedOption = []; - } - return obj; - }, -}; -function createBaseEnumValueOptions() { - return { deprecated: false, uninterpretedOption: [] }; -} -exports.EnumValueOptions = { - fromJSON(object) { - return { - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e) => exports.UninterpretedOption.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined); - } - else { - obj.uninterpretedOption = []; - } - return obj; - }, -}; -function createBaseServiceOptions() { - return { deprecated: false, uninterpretedOption: [] }; -} -exports.ServiceOptions = { - fromJSON(object) { - return { - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e) => exports.UninterpretedOption.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined); - } - else { - obj.uninterpretedOption = []; - } - return obj; - }, -}; -function createBaseMethodOptions() { - return { deprecated: false, idempotencyLevel: 0, uninterpretedOption: [] }; -} -exports.MethodOptions = { - fromJSON(object) { - return { - deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - idempotencyLevel: isSet(object.idempotencyLevel) - ? methodOptions_IdempotencyLevelFromJSON(object.idempotencyLevel) - : 0, - uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e) => exports.UninterpretedOption.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - message.deprecated !== undefined && (obj.deprecated = message.deprecated); - message.idempotencyLevel !== undefined && - (obj.idempotencyLevel = methodOptions_IdempotencyLevelToJSON(message.idempotencyLevel)); - if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => e ? exports.UninterpretedOption.toJSON(e) : undefined); - } - else { - obj.uninterpretedOption = []; - } - return obj; - }, -}; -function createBaseUninterpretedOption() { - return { - name: [], - identifierValue: "", - positiveIntValue: "0", - negativeIntValue: "0", - doubleValue: 0, - stringValue: Buffer.alloc(0), - aggregateValue: "", - }; -} -exports.UninterpretedOption = { - fromJSON(object) { - return { - name: Array.isArray(object?.name) ? object.name.map((e) => exports.UninterpretedOption_NamePart.fromJSON(e)) : [], - identifierValue: isSet(object.identifierValue) ? String(object.identifierValue) : "", - positiveIntValue: isSet(object.positiveIntValue) ? String(object.positiveIntValue) : "0", - negativeIntValue: isSet(object.negativeIntValue) ? String(object.negativeIntValue) : "0", - doubleValue: isSet(object.doubleValue) ? Number(object.doubleValue) : 0, - stringValue: isSet(object.stringValue) ? Buffer.from(bytesFromBase64(object.stringValue)) : Buffer.alloc(0), - aggregateValue: isSet(object.aggregateValue) ? String(object.aggregateValue) : "", - }; - }, - toJSON(message) { - const obj = {}; - if (message.name) { - obj.name = message.name.map((e) => e ? exports.UninterpretedOption_NamePart.toJSON(e) : undefined); - } - else { - obj.name = []; - } - message.identifierValue !== undefined && (obj.identifierValue = message.identifierValue); - message.positiveIntValue !== undefined && (obj.positiveIntValue = message.positiveIntValue); - message.negativeIntValue !== undefined && (obj.negativeIntValue = message.negativeIntValue); - message.doubleValue !== undefined && (obj.doubleValue = message.doubleValue); - message.stringValue !== undefined && - (obj.stringValue = base64FromBytes(message.stringValue !== undefined ? message.stringValue : Buffer.alloc(0))); - message.aggregateValue !== undefined && (obj.aggregateValue = message.aggregateValue); - return obj; - }, -}; -function createBaseUninterpretedOption_NamePart() { - return { namePart: "", isExtension: false }; -} -exports.UninterpretedOption_NamePart = { - fromJSON(object) { - return { - namePart: isSet(object.namePart) ? String(object.namePart) : "", - isExtension: isSet(object.isExtension) ? Boolean(object.isExtension) : false, - }; - }, - toJSON(message) { - const obj = {}; - message.namePart !== undefined && (obj.namePart = message.namePart); - message.isExtension !== undefined && (obj.isExtension = message.isExtension); - return obj; - }, -}; -function createBaseSourceCodeInfo() { - return { location: [] }; -} -exports.SourceCodeInfo = { - fromJSON(object) { - return { - location: Array.isArray(object?.location) - ? object.location.map((e) => exports.SourceCodeInfo_Location.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - if (message.location) { - obj.location = message.location.map((e) => e ? exports.SourceCodeInfo_Location.toJSON(e) : undefined); - } - else { - obj.location = []; - } - return obj; - }, -}; -function createBaseSourceCodeInfo_Location() { - return { path: [], span: [], leadingComments: "", trailingComments: "", leadingDetachedComments: [] }; -} -exports.SourceCodeInfo_Location = { - fromJSON(object) { - return { - path: Array.isArray(object?.path) ? object.path.map((e) => Number(e)) : [], - span: Array.isArray(object?.span) ? object.span.map((e) => Number(e)) : [], - leadingComments: isSet(object.leadingComments) ? String(object.leadingComments) : "", - trailingComments: isSet(object.trailingComments) ? String(object.trailingComments) : "", - leadingDetachedComments: Array.isArray(object?.leadingDetachedComments) - ? object.leadingDetachedComments.map((e) => String(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - if (message.path) { - obj.path = message.path.map((e) => Math.round(e)); - } - else { - obj.path = []; - } - if (message.span) { - obj.span = message.span.map((e) => Math.round(e)); - } - else { - obj.span = []; - } - message.leadingComments !== undefined && (obj.leadingComments = message.leadingComments); - message.trailingComments !== undefined && (obj.trailingComments = message.trailingComments); - if (message.leadingDetachedComments) { - obj.leadingDetachedComments = message.leadingDetachedComments.map((e) => e); - } - else { - obj.leadingDetachedComments = []; - } - return obj; - }, -}; -function createBaseGeneratedCodeInfo() { - return { annotation: [] }; -} -exports.GeneratedCodeInfo = { - fromJSON(object) { - return { - annotation: Array.isArray(object?.annotation) - ? object.annotation.map((e) => exports.GeneratedCodeInfo_Annotation.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - if (message.annotation) { - obj.annotation = message.annotation.map((e) => e ? exports.GeneratedCodeInfo_Annotation.toJSON(e) : undefined); - } - else { - obj.annotation = []; - } - return obj; - }, -}; -function createBaseGeneratedCodeInfo_Annotation() { - return { path: [], sourceFile: "", begin: 0, end: 0 }; -} -exports.GeneratedCodeInfo_Annotation = { - fromJSON(object) { - return { - path: Array.isArray(object?.path) ? object.path.map((e) => Number(e)) : [], - sourceFile: isSet(object.sourceFile) ? String(object.sourceFile) : "", - begin: isSet(object.begin) ? Number(object.begin) : 0, - end: isSet(object.end) ? Number(object.end) : 0, - }; - }, - toJSON(message) { - const obj = {}; - if (message.path) { - obj.path = message.path.map((e) => Math.round(e)); - } - else { - obj.path = []; - } - message.sourceFile !== undefined && (obj.sourceFile = message.sourceFile); - message.begin !== undefined && (obj.begin = Math.round(message.begin)); - message.end !== undefined && (obj.end = Math.round(message.end)); - return obj; - }, -}; -var tsProtoGlobalThis = (() => { - if (typeof globalThis !== "undefined") { - return globalThis; - } - if (typeof self !== "undefined") { - return self; - } - if (typeof window !== "undefined") { - return window; - } - if (typeof global !== "undefined") { - return global; - } - throw "Unable to locate global object"; -})(); -function bytesFromBase64(b64) { - if (tsProtoGlobalThis.Buffer) { - return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); - } - else { - const bin = tsProtoGlobalThis.atob(b64); - const arr = new Uint8Array(bin.length); - for (let i = 0; i < bin.length; ++i) { - arr[i] = bin.charCodeAt(i); - } - return arr; - } -} -function base64FromBytes(arr) { - if (tsProtoGlobalThis.Buffer) { - return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); - } - else { - const bin = []; - arr.forEach((byte) => { - bin.push(String.fromCharCode(byte)); - }); - return tsProtoGlobalThis.btoa(bin.join("")); - } -} -function isSet(value) { - return value !== null && value !== undefined; -} diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/timestamp.d.ts b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/timestamp.d.ts deleted file mode 100644 index 1ab812b4..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/timestamp.d.ts +++ /dev/null @@ -1,110 +0,0 @@ -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * Example 5: Compute Timestamp from Java `Instant.now()`. - * - * Instant now = Instant.now(); - * - * Timestamp timestamp = - * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - * .setNanos(now.getNano()).build(); - * - * Example 6: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D - * ) to obtain a formatter capable of generating timestamps in this format. - */ -export interface Timestamp { - /** - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - */ - seconds: string; - /** - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - */ - nanos: number; -} -export declare const Timestamp: { - fromJSON(object: any): Timestamp; - toJSON(message: Timestamp): unknown; -}; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/timestamp.js b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/timestamp.js deleted file mode 100644 index 159135fe..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/timestamp.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -/* eslint-disable */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Timestamp = void 0; -function createBaseTimestamp() { - return { seconds: "0", nanos: 0 }; -} -exports.Timestamp = { - fromJSON(object) { - return { - seconds: isSet(object.seconds) ? String(object.seconds) : "0", - nanos: isSet(object.nanos) ? Number(object.nanos) : 0, - }; - }, - toJSON(message) { - const obj = {}; - message.seconds !== undefined && (obj.seconds = message.seconds); - message.nanos !== undefined && (obj.nanos = Math.round(message.nanos)); - return obj; - }, -}; -function isSet(value) { - return value !== null && value !== undefined; -} diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_bundle.d.ts b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_bundle.d.ts deleted file mode 100644 index 3eba506c..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_bundle.d.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { Envelope } from "./envelope"; -import { MessageSignature, PublicKeyIdentifier, RFC3161SignedTimestamp, X509CertificateChain } from "./sigstore_common"; -import { TransparencyLogEntry } from "./sigstore_rekor"; -/** - * Various timestamped counter signatures over the artifacts signature. - * Currently only RFC3161 signatures are provided. More formats may be added - * in the future. - */ -export interface TimestampVerificationData { - /** - * A list of RFC3161 signed timestamps provided by the user. - * This can be used when the entry has not been stored on a - * transparency log, or in conjunction for a stronger trust model. - * Clients MUST verify the hashed message in the message imprint - * against the signature in the bundle. - */ - rfc3161Timestamps: RFC3161SignedTimestamp[]; -} -/** - * VerificationMaterial captures details on the materials used to verify - * signatures. - */ -export interface VerificationMaterial { - content?: { - $case: "publicKey"; - publicKey: PublicKeyIdentifier; - } | { - $case: "x509CertificateChain"; - x509CertificateChain: X509CertificateChain; - }; - /** - * An inclusion proof and an optional signed timestamp from the log. - * Client verification libraries MAY provide an option to support v0.1 - * bundles for backwards compatibility, which may contain an inclusion - * promise and not an inclusion proof. In this case, the client MUST - * validate the promise. - * Verifiers SHOULD NOT allow v0.1 bundles if they're used in an - * ecosystem which never produced them. - */ - tlogEntries: TransparencyLogEntry[]; - /** - * Timestamp may also come from - * tlog_entries.inclusion_promise.signed_entry_timestamp. - */ - timestampVerificationData: TimestampVerificationData | undefined; -} -export interface Bundle { - /** - * MUST be application/vnd.dev.sigstore.bundle+json;version=0.1 - * or application/vnd.dev.sigstore.bundle+json;version=0.2 - * when encoded as JSON. - */ - mediaType: string; - /** - * When a signer is identified by a X.509 certificate, a verifier MUST - * verify that the signature was computed at the time the certificate - * was valid as described in the Sigstore client spec: "Verification - * using a Bundle". - * - */ - verificationMaterial: VerificationMaterial | undefined; - content?: { - $case: "messageSignature"; - messageSignature: MessageSignature; - } | { - $case: "dsseEnvelope"; - dsseEnvelope: Envelope; - }; -} -export declare const TimestampVerificationData: { - fromJSON(object: any): TimestampVerificationData; - toJSON(message: TimestampVerificationData): unknown; -}; -export declare const VerificationMaterial: { - fromJSON(object: any): VerificationMaterial; - toJSON(message: VerificationMaterial): unknown; -}; -export declare const Bundle: { - fromJSON(object: any): Bundle; - toJSON(message: Bundle): unknown; -}; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_bundle.js b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_bundle.js deleted file mode 100644 index 1ef3e1b3..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_bundle.js +++ /dev/null @@ -1,106 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Bundle = exports.VerificationMaterial = exports.TimestampVerificationData = void 0; -/* eslint-disable */ -const envelope_1 = require("./envelope"); -const sigstore_common_1 = require("./sigstore_common"); -const sigstore_rekor_1 = require("./sigstore_rekor"); -function createBaseTimestampVerificationData() { - return { rfc3161Timestamps: [] }; -} -exports.TimestampVerificationData = { - fromJSON(object) { - return { - rfc3161Timestamps: Array.isArray(object?.rfc3161Timestamps) - ? object.rfc3161Timestamps.map((e) => sigstore_common_1.RFC3161SignedTimestamp.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - if (message.rfc3161Timestamps) { - obj.rfc3161Timestamps = message.rfc3161Timestamps.map((e) => e ? sigstore_common_1.RFC3161SignedTimestamp.toJSON(e) : undefined); - } - else { - obj.rfc3161Timestamps = []; - } - return obj; - }, -}; -function createBaseVerificationMaterial() { - return { content: undefined, tlogEntries: [], timestampVerificationData: undefined }; -} -exports.VerificationMaterial = { - fromJSON(object) { - return { - content: isSet(object.publicKey) - ? { $case: "publicKey", publicKey: sigstore_common_1.PublicKeyIdentifier.fromJSON(object.publicKey) } - : isSet(object.x509CertificateChain) - ? { - $case: "x509CertificateChain", - x509CertificateChain: sigstore_common_1.X509CertificateChain.fromJSON(object.x509CertificateChain), - } - : undefined, - tlogEntries: Array.isArray(object?.tlogEntries) - ? object.tlogEntries.map((e) => sigstore_rekor_1.TransparencyLogEntry.fromJSON(e)) - : [], - timestampVerificationData: isSet(object.timestampVerificationData) - ? exports.TimestampVerificationData.fromJSON(object.timestampVerificationData) - : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.content?.$case === "publicKey" && - (obj.publicKey = message.content?.publicKey ? sigstore_common_1.PublicKeyIdentifier.toJSON(message.content?.publicKey) : undefined); - message.content?.$case === "x509CertificateChain" && - (obj.x509CertificateChain = message.content?.x509CertificateChain - ? sigstore_common_1.X509CertificateChain.toJSON(message.content?.x509CertificateChain) - : undefined); - if (message.tlogEntries) { - obj.tlogEntries = message.tlogEntries.map((e) => e ? sigstore_rekor_1.TransparencyLogEntry.toJSON(e) : undefined); - } - else { - obj.tlogEntries = []; - } - message.timestampVerificationData !== undefined && - (obj.timestampVerificationData = message.timestampVerificationData - ? exports.TimestampVerificationData.toJSON(message.timestampVerificationData) - : undefined); - return obj; - }, -}; -function createBaseBundle() { - return { mediaType: "", verificationMaterial: undefined, content: undefined }; -} -exports.Bundle = { - fromJSON(object) { - return { - mediaType: isSet(object.mediaType) ? String(object.mediaType) : "", - verificationMaterial: isSet(object.verificationMaterial) - ? exports.VerificationMaterial.fromJSON(object.verificationMaterial) - : undefined, - content: isSet(object.messageSignature) - ? { $case: "messageSignature", messageSignature: sigstore_common_1.MessageSignature.fromJSON(object.messageSignature) } - : isSet(object.dsseEnvelope) - ? { $case: "dsseEnvelope", dsseEnvelope: envelope_1.Envelope.fromJSON(object.dsseEnvelope) } - : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.mediaType !== undefined && (obj.mediaType = message.mediaType); - message.verificationMaterial !== undefined && (obj.verificationMaterial = message.verificationMaterial - ? exports.VerificationMaterial.toJSON(message.verificationMaterial) - : undefined); - message.content?.$case === "messageSignature" && (obj.messageSignature = message.content?.messageSignature - ? sigstore_common_1.MessageSignature.toJSON(message.content?.messageSignature) - : undefined); - message.content?.$case === "dsseEnvelope" && - (obj.dsseEnvelope = message.content?.dsseEnvelope ? envelope_1.Envelope.toJSON(message.content?.dsseEnvelope) : undefined); - return obj; - }, -}; -function isSet(value) { - return value !== null && value !== undefined; -} diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_common.d.ts b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_common.d.ts deleted file mode 100644 index c30abbef..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_common.d.ts +++ /dev/null @@ -1,245 +0,0 @@ -/// -/** - * Only a subset of the secure hash standard algorithms are supported. - * See for more - * details. - * UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force - * any proto JSON serialization to emit the used hash algorithm, as default - * option is to *omit* the default value of an enum (which is the first - * value, represented by '0'. - */ -export declare enum HashAlgorithm { - HASH_ALGORITHM_UNSPECIFIED = 0, - SHA2_256 = 1 -} -export declare function hashAlgorithmFromJSON(object: any): HashAlgorithm; -export declare function hashAlgorithmToJSON(object: HashAlgorithm): string; -/** - * Details of a specific public key, capturing the the key encoding method, - * and signature algorithm. - * To avoid the possibility of contradicting formats such as PKCS1 with - * ED25519 the valid permutations are listed as a linear set instead of a - * cartesian set (i.e one combined variable instead of two, one for encoding - * and one for the signature algorithm). - */ -export declare enum PublicKeyDetails { - PUBLIC_KEY_DETAILS_UNSPECIFIED = 0, - /** PKCS1_RSA_PKCS1V5 - RSA */ - PKCS1_RSA_PKCS1V5 = 1, - /** PKCS1_RSA_PSS - See RFC8017 */ - PKCS1_RSA_PSS = 2, - PKIX_RSA_PKCS1V5 = 3, - PKIX_RSA_PSS = 4, - /** PKIX_ECDSA_P256_SHA_256 - ECDSA */ - PKIX_ECDSA_P256_SHA_256 = 5, - /** PKIX_ECDSA_P256_HMAC_SHA_256 - See RFC6979 */ - PKIX_ECDSA_P256_HMAC_SHA_256 = 6, - /** PKIX_ED25519 - Ed 25519 */ - PKIX_ED25519 = 7 -} -export declare function publicKeyDetailsFromJSON(object: any): PublicKeyDetails; -export declare function publicKeyDetailsToJSON(object: PublicKeyDetails): string; -export declare enum SubjectAlternativeNameType { - SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED = 0, - EMAIL = 1, - URI = 2, - /** - * OTHER_NAME - OID 1.3.6.1.4.1.57264.1.7 - * See https://github.com/sigstore/fulcio/blob/main/docs/oid-info.md#1361415726417--othername-san - * for more details. - */ - OTHER_NAME = 3 -} -export declare function subjectAlternativeNameTypeFromJSON(object: any): SubjectAlternativeNameType; -export declare function subjectAlternativeNameTypeToJSON(object: SubjectAlternativeNameType): string; -/** - * HashOutput captures a digest of a 'message' (generic octet sequence) - * and the corresponding hash algorithm used. - */ -export interface HashOutput { - algorithm: HashAlgorithm; - /** - * This is the raw octets of the message digest as computed by - * the hash algorithm. - */ - digest: Buffer; -} -/** MessageSignature stores the computed signature over a message. */ -export interface MessageSignature { - /** - * Message digest can be used to identify the artifact. - * Clients MUST NOT attempt to use this digest to verify the associated - * signature; it is intended solely for identification. - */ - messageDigest: HashOutput | undefined; - /** - * The raw bytes as returned from the signature algorithm. - * The signature algorithm (and so the format of the signature bytes) - * are determined by the contents of the 'verification_material', - * either a key-pair or a certificate. If using a certificate, the - * certificate contains the required information on the signature - * algorithm. - * When using a key pair, the algorithm MUST be part of the public - * key, which MUST be communicated out-of-band. - */ - signature: Buffer; -} -/** LogId captures the identity of a transparency log. */ -export interface LogId { - /** - * The unique id of the log, represented as the SHA-256 hash - * of the log's public key, calculated over the DER encoding - * of the key represented as SubjectPublicKeyInfo. - * See https://www.rfc-editor.org/rfc/rfc6962#section-3.2 - */ - keyId: Buffer; -} -/** This message holds a RFC 3161 timestamp. */ -export interface RFC3161SignedTimestamp { - /** - * Signed timestamp is the DER encoded TimeStampResponse. - * See https://www.rfc-editor.org/rfc/rfc3161.html#section-2.4.2 - */ - signedTimestamp: Buffer; -} -export interface PublicKey { - /** - * DER-encoded public key, encoding method is specified by the - * key_details attribute. - */ - rawBytes?: Buffer | undefined; - /** Key encoding and signature algorithm to use for this key. */ - keyDetails: PublicKeyDetails; - /** Optional validity period for this key, *inclusive* of the endpoints. */ - validFor?: TimeRange | undefined; -} -/** - * PublicKeyIdentifier can be used to identify an (out of band) delivered - * key, to verify a signature. - */ -export interface PublicKeyIdentifier { - /** - * Optional unauthenticated hint on which key to use. - * The format of the hint must be agreed upon out of band by the - * signer and the verifiers, and so is not subject to this - * specification. - * Example use-case is to specify the public key to use, from a - * trusted key-ring. - * Implementors are RECOMMENDED to derive the value from the public - * key as described in RFC 6962. - * See: - */ - hint: string; -} -/** An ASN.1 OBJECT IDENTIFIER */ -export interface ObjectIdentifier { - id: number[]; -} -/** An OID and the corresponding (byte) value. */ -export interface ObjectIdentifierValuePair { - oid: ObjectIdentifier | undefined; - value: Buffer; -} -export interface DistinguishedName { - organization: string; - commonName: string; -} -export interface X509Certificate { - /** DER-encoded X.509 certificate. */ - rawBytes: Buffer; -} -export interface SubjectAlternativeName { - type: SubjectAlternativeNameType; - identity?: { - $case: "regexp"; - regexp: string; - } | { - $case: "value"; - value: string; - }; -} -/** A chain of X.509 certificates. */ -export interface X509CertificateChain { - /** - * The chain of certificates, with indices 0 to n. - * The first certificate in the array must be the leaf - * certificate used for signing. - * - * Signers MUST NOT include their root CA certificates in their embedded - * certificate chains, and SHOULD NOT include intermediate CA - * certificates that appear in independent roots of trust. - * - * Verifiers MUST validate the chain carefully to ensure that it chains - * up to a root CA certificate that they trust, regardless of whether - * the chain includes additional intermediate/root CA certificates. - * Verifiers MAY enforce additional constraints, such as requiring that - * all intermediate CA certificates appear in an independent root of - * trust. - * - * Verifiers SHOULD handle old or non-complying bundles that have - * additional intermediate/root CA certificates. - */ - certificates: X509Certificate[]; -} -/** - * The time range is closed and includes both the start and end times, - * (i.e., [start, end]). - * End is optional to be able to capture a period that has started but - * has no known end. - */ -export interface TimeRange { - start: Date | undefined; - end?: Date | undefined; -} -export declare const HashOutput: { - fromJSON(object: any): HashOutput; - toJSON(message: HashOutput): unknown; -}; -export declare const MessageSignature: { - fromJSON(object: any): MessageSignature; - toJSON(message: MessageSignature): unknown; -}; -export declare const LogId: { - fromJSON(object: any): LogId; - toJSON(message: LogId): unknown; -}; -export declare const RFC3161SignedTimestamp: { - fromJSON(object: any): RFC3161SignedTimestamp; - toJSON(message: RFC3161SignedTimestamp): unknown; -}; -export declare const PublicKey: { - fromJSON(object: any): PublicKey; - toJSON(message: PublicKey): unknown; -}; -export declare const PublicKeyIdentifier: { - fromJSON(object: any): PublicKeyIdentifier; - toJSON(message: PublicKeyIdentifier): unknown; -}; -export declare const ObjectIdentifier: { - fromJSON(object: any): ObjectIdentifier; - toJSON(message: ObjectIdentifier): unknown; -}; -export declare const ObjectIdentifierValuePair: { - fromJSON(object: any): ObjectIdentifierValuePair; - toJSON(message: ObjectIdentifierValuePair): unknown; -}; -export declare const DistinguishedName: { - fromJSON(object: any): DistinguishedName; - toJSON(message: DistinguishedName): unknown; -}; -export declare const X509Certificate: { - fromJSON(object: any): X509Certificate; - toJSON(message: X509Certificate): unknown; -}; -export declare const SubjectAlternativeName: { - fromJSON(object: any): SubjectAlternativeName; - toJSON(message: SubjectAlternativeName): unknown; -}; -export declare const X509CertificateChain: { - fromJSON(object: any): X509CertificateChain; - toJSON(message: X509CertificateChain): unknown; -}; -export declare const TimeRange: { - fromJSON(object: any): TimeRange; - toJSON(message: TimeRange): unknown; -}; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_common.js b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_common.js deleted file mode 100644 index bcd654e9..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_common.js +++ /dev/null @@ -1,457 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TimeRange = exports.X509CertificateChain = exports.SubjectAlternativeName = exports.X509Certificate = exports.DistinguishedName = exports.ObjectIdentifierValuePair = exports.ObjectIdentifier = exports.PublicKeyIdentifier = exports.PublicKey = exports.RFC3161SignedTimestamp = exports.LogId = exports.MessageSignature = exports.HashOutput = exports.subjectAlternativeNameTypeToJSON = exports.subjectAlternativeNameTypeFromJSON = exports.SubjectAlternativeNameType = exports.publicKeyDetailsToJSON = exports.publicKeyDetailsFromJSON = exports.PublicKeyDetails = exports.hashAlgorithmToJSON = exports.hashAlgorithmFromJSON = exports.HashAlgorithm = void 0; -/* eslint-disable */ -const timestamp_1 = require("./google/protobuf/timestamp"); -/** - * Only a subset of the secure hash standard algorithms are supported. - * See for more - * details. - * UNSPECIFIED SHOULD not be used, primary reason for inclusion is to force - * any proto JSON serialization to emit the used hash algorithm, as default - * option is to *omit* the default value of an enum (which is the first - * value, represented by '0'. - */ -var HashAlgorithm; -(function (HashAlgorithm) { - HashAlgorithm[HashAlgorithm["HASH_ALGORITHM_UNSPECIFIED"] = 0] = "HASH_ALGORITHM_UNSPECIFIED"; - HashAlgorithm[HashAlgorithm["SHA2_256"] = 1] = "SHA2_256"; -})(HashAlgorithm = exports.HashAlgorithm || (exports.HashAlgorithm = {})); -function hashAlgorithmFromJSON(object) { - switch (object) { - case 0: - case "HASH_ALGORITHM_UNSPECIFIED": - return HashAlgorithm.HASH_ALGORITHM_UNSPECIFIED; - case 1: - case "SHA2_256": - return HashAlgorithm.SHA2_256; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum HashAlgorithm"); - } -} -exports.hashAlgorithmFromJSON = hashAlgorithmFromJSON; -function hashAlgorithmToJSON(object) { - switch (object) { - case HashAlgorithm.HASH_ALGORITHM_UNSPECIFIED: - return "HASH_ALGORITHM_UNSPECIFIED"; - case HashAlgorithm.SHA2_256: - return "SHA2_256"; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum HashAlgorithm"); - } -} -exports.hashAlgorithmToJSON = hashAlgorithmToJSON; -/** - * Details of a specific public key, capturing the the key encoding method, - * and signature algorithm. - * To avoid the possibility of contradicting formats such as PKCS1 with - * ED25519 the valid permutations are listed as a linear set instead of a - * cartesian set (i.e one combined variable instead of two, one for encoding - * and one for the signature algorithm). - */ -var PublicKeyDetails; -(function (PublicKeyDetails) { - PublicKeyDetails[PublicKeyDetails["PUBLIC_KEY_DETAILS_UNSPECIFIED"] = 0] = "PUBLIC_KEY_DETAILS_UNSPECIFIED"; - /** PKCS1_RSA_PKCS1V5 - RSA */ - PublicKeyDetails[PublicKeyDetails["PKCS1_RSA_PKCS1V5"] = 1] = "PKCS1_RSA_PKCS1V5"; - /** PKCS1_RSA_PSS - See RFC8017 */ - PublicKeyDetails[PublicKeyDetails["PKCS1_RSA_PSS"] = 2] = "PKCS1_RSA_PSS"; - PublicKeyDetails[PublicKeyDetails["PKIX_RSA_PKCS1V5"] = 3] = "PKIX_RSA_PKCS1V5"; - PublicKeyDetails[PublicKeyDetails["PKIX_RSA_PSS"] = 4] = "PKIX_RSA_PSS"; - /** PKIX_ECDSA_P256_SHA_256 - ECDSA */ - PublicKeyDetails[PublicKeyDetails["PKIX_ECDSA_P256_SHA_256"] = 5] = "PKIX_ECDSA_P256_SHA_256"; - /** PKIX_ECDSA_P256_HMAC_SHA_256 - See RFC6979 */ - PublicKeyDetails[PublicKeyDetails["PKIX_ECDSA_P256_HMAC_SHA_256"] = 6] = "PKIX_ECDSA_P256_HMAC_SHA_256"; - /** PKIX_ED25519 - Ed 25519 */ - PublicKeyDetails[PublicKeyDetails["PKIX_ED25519"] = 7] = "PKIX_ED25519"; -})(PublicKeyDetails = exports.PublicKeyDetails || (exports.PublicKeyDetails = {})); -function publicKeyDetailsFromJSON(object) { - switch (object) { - case 0: - case "PUBLIC_KEY_DETAILS_UNSPECIFIED": - return PublicKeyDetails.PUBLIC_KEY_DETAILS_UNSPECIFIED; - case 1: - case "PKCS1_RSA_PKCS1V5": - return PublicKeyDetails.PKCS1_RSA_PKCS1V5; - case 2: - case "PKCS1_RSA_PSS": - return PublicKeyDetails.PKCS1_RSA_PSS; - case 3: - case "PKIX_RSA_PKCS1V5": - return PublicKeyDetails.PKIX_RSA_PKCS1V5; - case 4: - case "PKIX_RSA_PSS": - return PublicKeyDetails.PKIX_RSA_PSS; - case 5: - case "PKIX_ECDSA_P256_SHA_256": - return PublicKeyDetails.PKIX_ECDSA_P256_SHA_256; - case 6: - case "PKIX_ECDSA_P256_HMAC_SHA_256": - return PublicKeyDetails.PKIX_ECDSA_P256_HMAC_SHA_256; - case 7: - case "PKIX_ED25519": - return PublicKeyDetails.PKIX_ED25519; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum PublicKeyDetails"); - } -} -exports.publicKeyDetailsFromJSON = publicKeyDetailsFromJSON; -function publicKeyDetailsToJSON(object) { - switch (object) { - case PublicKeyDetails.PUBLIC_KEY_DETAILS_UNSPECIFIED: - return "PUBLIC_KEY_DETAILS_UNSPECIFIED"; - case PublicKeyDetails.PKCS1_RSA_PKCS1V5: - return "PKCS1_RSA_PKCS1V5"; - case PublicKeyDetails.PKCS1_RSA_PSS: - return "PKCS1_RSA_PSS"; - case PublicKeyDetails.PKIX_RSA_PKCS1V5: - return "PKIX_RSA_PKCS1V5"; - case PublicKeyDetails.PKIX_RSA_PSS: - return "PKIX_RSA_PSS"; - case PublicKeyDetails.PKIX_ECDSA_P256_SHA_256: - return "PKIX_ECDSA_P256_SHA_256"; - case PublicKeyDetails.PKIX_ECDSA_P256_HMAC_SHA_256: - return "PKIX_ECDSA_P256_HMAC_SHA_256"; - case PublicKeyDetails.PKIX_ED25519: - return "PKIX_ED25519"; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum PublicKeyDetails"); - } -} -exports.publicKeyDetailsToJSON = publicKeyDetailsToJSON; -var SubjectAlternativeNameType; -(function (SubjectAlternativeNameType) { - SubjectAlternativeNameType[SubjectAlternativeNameType["SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED"] = 0] = "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED"; - SubjectAlternativeNameType[SubjectAlternativeNameType["EMAIL"] = 1] = "EMAIL"; - SubjectAlternativeNameType[SubjectAlternativeNameType["URI"] = 2] = "URI"; - /** - * OTHER_NAME - OID 1.3.6.1.4.1.57264.1.7 - * See https://github.com/sigstore/fulcio/blob/main/docs/oid-info.md#1361415726417--othername-san - * for more details. - */ - SubjectAlternativeNameType[SubjectAlternativeNameType["OTHER_NAME"] = 3] = "OTHER_NAME"; -})(SubjectAlternativeNameType = exports.SubjectAlternativeNameType || (exports.SubjectAlternativeNameType = {})); -function subjectAlternativeNameTypeFromJSON(object) { - switch (object) { - case 0: - case "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED": - return SubjectAlternativeNameType.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED; - case 1: - case "EMAIL": - return SubjectAlternativeNameType.EMAIL; - case 2: - case "URI": - return SubjectAlternativeNameType.URI; - case 3: - case "OTHER_NAME": - return SubjectAlternativeNameType.OTHER_NAME; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum SubjectAlternativeNameType"); - } -} -exports.subjectAlternativeNameTypeFromJSON = subjectAlternativeNameTypeFromJSON; -function subjectAlternativeNameTypeToJSON(object) { - switch (object) { - case SubjectAlternativeNameType.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED: - return "SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED"; - case SubjectAlternativeNameType.EMAIL: - return "EMAIL"; - case SubjectAlternativeNameType.URI: - return "URI"; - case SubjectAlternativeNameType.OTHER_NAME: - return "OTHER_NAME"; - default: - throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum SubjectAlternativeNameType"); - } -} -exports.subjectAlternativeNameTypeToJSON = subjectAlternativeNameTypeToJSON; -function createBaseHashOutput() { - return { algorithm: 0, digest: Buffer.alloc(0) }; -} -exports.HashOutput = { - fromJSON(object) { - return { - algorithm: isSet(object.algorithm) ? hashAlgorithmFromJSON(object.algorithm) : 0, - digest: isSet(object.digest) ? Buffer.from(bytesFromBase64(object.digest)) : Buffer.alloc(0), - }; - }, - toJSON(message) { - const obj = {}; - message.algorithm !== undefined && (obj.algorithm = hashAlgorithmToJSON(message.algorithm)); - message.digest !== undefined && - (obj.digest = base64FromBytes(message.digest !== undefined ? message.digest : Buffer.alloc(0))); - return obj; - }, -}; -function createBaseMessageSignature() { - return { messageDigest: undefined, signature: Buffer.alloc(0) }; -} -exports.MessageSignature = { - fromJSON(object) { - return { - messageDigest: isSet(object.messageDigest) ? exports.HashOutput.fromJSON(object.messageDigest) : undefined, - signature: isSet(object.signature) ? Buffer.from(bytesFromBase64(object.signature)) : Buffer.alloc(0), - }; - }, - toJSON(message) { - const obj = {}; - message.messageDigest !== undefined && - (obj.messageDigest = message.messageDigest ? exports.HashOutput.toJSON(message.messageDigest) : undefined); - message.signature !== undefined && - (obj.signature = base64FromBytes(message.signature !== undefined ? message.signature : Buffer.alloc(0))); - return obj; - }, -}; -function createBaseLogId() { - return { keyId: Buffer.alloc(0) }; -} -exports.LogId = { - fromJSON(object) { - return { keyId: isSet(object.keyId) ? Buffer.from(bytesFromBase64(object.keyId)) : Buffer.alloc(0) }; - }, - toJSON(message) { - const obj = {}; - message.keyId !== undefined && - (obj.keyId = base64FromBytes(message.keyId !== undefined ? message.keyId : Buffer.alloc(0))); - return obj; - }, -}; -function createBaseRFC3161SignedTimestamp() { - return { signedTimestamp: Buffer.alloc(0) }; -} -exports.RFC3161SignedTimestamp = { - fromJSON(object) { - return { - signedTimestamp: isSet(object.signedTimestamp) - ? Buffer.from(bytesFromBase64(object.signedTimestamp)) - : Buffer.alloc(0), - }; - }, - toJSON(message) { - const obj = {}; - message.signedTimestamp !== undefined && - (obj.signedTimestamp = base64FromBytes(message.signedTimestamp !== undefined ? message.signedTimestamp : Buffer.alloc(0))); - return obj; - }, -}; -function createBasePublicKey() { - return { rawBytes: undefined, keyDetails: 0, validFor: undefined }; -} -exports.PublicKey = { - fromJSON(object) { - return { - rawBytes: isSet(object.rawBytes) ? Buffer.from(bytesFromBase64(object.rawBytes)) : undefined, - keyDetails: isSet(object.keyDetails) ? publicKeyDetailsFromJSON(object.keyDetails) : 0, - validFor: isSet(object.validFor) ? exports.TimeRange.fromJSON(object.validFor) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.rawBytes !== undefined && - (obj.rawBytes = message.rawBytes !== undefined ? base64FromBytes(message.rawBytes) : undefined); - message.keyDetails !== undefined && (obj.keyDetails = publicKeyDetailsToJSON(message.keyDetails)); - message.validFor !== undefined && - (obj.validFor = message.validFor ? exports.TimeRange.toJSON(message.validFor) : undefined); - return obj; - }, -}; -function createBasePublicKeyIdentifier() { - return { hint: "" }; -} -exports.PublicKeyIdentifier = { - fromJSON(object) { - return { hint: isSet(object.hint) ? String(object.hint) : "" }; - }, - toJSON(message) { - const obj = {}; - message.hint !== undefined && (obj.hint = message.hint); - return obj; - }, -}; -function createBaseObjectIdentifier() { - return { id: [] }; -} -exports.ObjectIdentifier = { - fromJSON(object) { - return { id: Array.isArray(object?.id) ? object.id.map((e) => Number(e)) : [] }; - }, - toJSON(message) { - const obj = {}; - if (message.id) { - obj.id = message.id.map((e) => Math.round(e)); - } - else { - obj.id = []; - } - return obj; - }, -}; -function createBaseObjectIdentifierValuePair() { - return { oid: undefined, value: Buffer.alloc(0) }; -} -exports.ObjectIdentifierValuePair = { - fromJSON(object) { - return { - oid: isSet(object.oid) ? exports.ObjectIdentifier.fromJSON(object.oid) : undefined, - value: isSet(object.value) ? Buffer.from(bytesFromBase64(object.value)) : Buffer.alloc(0), - }; - }, - toJSON(message) { - const obj = {}; - message.oid !== undefined && (obj.oid = message.oid ? exports.ObjectIdentifier.toJSON(message.oid) : undefined); - message.value !== undefined && - (obj.value = base64FromBytes(message.value !== undefined ? message.value : Buffer.alloc(0))); - return obj; - }, -}; -function createBaseDistinguishedName() { - return { organization: "", commonName: "" }; -} -exports.DistinguishedName = { - fromJSON(object) { - return { - organization: isSet(object.organization) ? String(object.organization) : "", - commonName: isSet(object.commonName) ? String(object.commonName) : "", - }; - }, - toJSON(message) { - const obj = {}; - message.organization !== undefined && (obj.organization = message.organization); - message.commonName !== undefined && (obj.commonName = message.commonName); - return obj; - }, -}; -function createBaseX509Certificate() { - return { rawBytes: Buffer.alloc(0) }; -} -exports.X509Certificate = { - fromJSON(object) { - return { rawBytes: isSet(object.rawBytes) ? Buffer.from(bytesFromBase64(object.rawBytes)) : Buffer.alloc(0) }; - }, - toJSON(message) { - const obj = {}; - message.rawBytes !== undefined && - (obj.rawBytes = base64FromBytes(message.rawBytes !== undefined ? message.rawBytes : Buffer.alloc(0))); - return obj; - }, -}; -function createBaseSubjectAlternativeName() { - return { type: 0, identity: undefined }; -} -exports.SubjectAlternativeName = { - fromJSON(object) { - return { - type: isSet(object.type) ? subjectAlternativeNameTypeFromJSON(object.type) : 0, - identity: isSet(object.regexp) - ? { $case: "regexp", regexp: String(object.regexp) } - : isSet(object.value) - ? { $case: "value", value: String(object.value) } - : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.type !== undefined && (obj.type = subjectAlternativeNameTypeToJSON(message.type)); - message.identity?.$case === "regexp" && (obj.regexp = message.identity?.regexp); - message.identity?.$case === "value" && (obj.value = message.identity?.value); - return obj; - }, -}; -function createBaseX509CertificateChain() { - return { certificates: [] }; -} -exports.X509CertificateChain = { - fromJSON(object) { - return { - certificates: Array.isArray(object?.certificates) - ? object.certificates.map((e) => exports.X509Certificate.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - if (message.certificates) { - obj.certificates = message.certificates.map((e) => e ? exports.X509Certificate.toJSON(e) : undefined); - } - else { - obj.certificates = []; - } - return obj; - }, -}; -function createBaseTimeRange() { - return { start: undefined, end: undefined }; -} -exports.TimeRange = { - fromJSON(object) { - return { - start: isSet(object.start) ? fromJsonTimestamp(object.start) : undefined, - end: isSet(object.end) ? fromJsonTimestamp(object.end) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.start !== undefined && (obj.start = message.start.toISOString()); - message.end !== undefined && (obj.end = message.end.toISOString()); - return obj; - }, -}; -var tsProtoGlobalThis = (() => { - if (typeof globalThis !== "undefined") { - return globalThis; - } - if (typeof self !== "undefined") { - return self; - } - if (typeof window !== "undefined") { - return window; - } - if (typeof global !== "undefined") { - return global; - } - throw "Unable to locate global object"; -})(); -function bytesFromBase64(b64) { - if (tsProtoGlobalThis.Buffer) { - return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); - } - else { - const bin = tsProtoGlobalThis.atob(b64); - const arr = new Uint8Array(bin.length); - for (let i = 0; i < bin.length; ++i) { - arr[i] = bin.charCodeAt(i); - } - return arr; - } -} -function base64FromBytes(arr) { - if (tsProtoGlobalThis.Buffer) { - return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); - } - else { - const bin = []; - arr.forEach((byte) => { - bin.push(String.fromCharCode(byte)); - }); - return tsProtoGlobalThis.btoa(bin.join("")); - } -} -function fromTimestamp(t) { - let millis = Number(t.seconds) * 1000; - millis += t.nanos / 1000000; - return new Date(millis); -} -function fromJsonTimestamp(o) { - if (o instanceof Date) { - return o; - } - else if (typeof o === "string") { - return new Date(o); - } - else { - return fromTimestamp(timestamp_1.Timestamp.fromJSON(o)); - } -} -function isSet(value) { - return value !== null && value !== undefined; -} diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_rekor.d.ts b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_rekor.d.ts deleted file mode 100644 index c172c9be..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_rekor.d.ts +++ /dev/null @@ -1,146 +0,0 @@ -/// -import { LogId } from "./sigstore_common"; -/** KindVersion contains the entry's kind and api version. */ -export interface KindVersion { - /** - * Kind is the type of entry being stored in the log. - * See here for a list: https://github.com/sigstore/rekor/tree/main/pkg/types - */ - kind: string; - /** The specific api version of the type. */ - version: string; -} -/** - * The checkpoint contains a signature of the tree head (root hash), - * size of the tree, the transparency log's unique identifier (log ID), - * hostname and the current time. - * The result is a string, the format is described here - * https://github.com/transparency-dev/formats/blob/main/log/README.md - * The details are here https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/util/signed_note.go#L114 - * The signature has the same format as - * InclusionPromise.signed_entry_timestamp. See below for more details. - */ -export interface Checkpoint { - envelope: string; -} -/** - * InclusionProof is the proof returned from the transparency log. Can - * be used for offline or online verification against the log. - */ -export interface InclusionProof { - /** The index of the entry in the tree it was written to. */ - logIndex: string; - /** - * The hash digest stored at the root of the merkle tree at the time - * the proof was generated. - */ - rootHash: Buffer; - /** The size of the merkle tree at the time the proof was generated. */ - treeSize: string; - /** - * A list of hashes required to compute the inclusion proof, sorted - * in order from leaf to root. - * Note that leaf and root hashes are not included. - * The root hash is available separately in this message, and the - * leaf hash should be calculated by the client. - */ - hashes: Buffer[]; - /** - * Signature of the tree head, as of the time of this proof was - * generated. See above info on 'Checkpoint' for more details. - */ - checkpoint: Checkpoint | undefined; -} -/** - * The inclusion promise is calculated by Rekor. It's calculated as a - * signature over a canonical JSON serialization of the persisted entry, the - * log ID, log index and the integration timestamp. - * See https://github.com/sigstore/rekor/blob/a6e58f72b6b18cc06cefe61808efd562b9726330/pkg/api/entries.go#L54 - * The format of the signature depends on the transparency log's public key. - * If the signature algorithm requires a hash function and/or a signature - * scheme (e.g. RSA) those has to be retrieved out-of-band from the log's - * operators, together with the public key. - * This is used to verify the integration timestamp's value and that the log - * has promised to include the entry. - */ -export interface InclusionPromise { - signedEntryTimestamp: Buffer; -} -/** - * TransparencyLogEntry captures all the details required from Rekor to - * reconstruct an entry, given that the payload is provided via other means. - * This type can easily be created from the existing response from Rekor. - * Future iterations could rely on Rekor returning the minimal set of - * attributes (excluding the payload) that are required for verifying the - * inclusion promise. The inclusion promise (called SignedEntryTimestamp in - * the response from Rekor) is similar to a Signed Certificate Timestamp - * as described here https://www.rfc-editor.org/rfc/rfc6962.html#section-3.2. - */ -export interface TransparencyLogEntry { - /** The global index of the entry, used when querying the log by index. */ - logIndex: string; - /** The unique identifier of the log. */ - logId: LogId | undefined; - /** - * The kind (type) and version of the object associated with this - * entry. These values are required to construct the entry during - * verification. - */ - kindVersion: KindVersion | undefined; - /** The UNIX timestamp from the log when the entry was persisted. */ - integratedTime: string; - /** - * The inclusion promise/signed entry timestamp from the log. - * Required for v0.1 bundles, and MUST be verified. - * Optional for >= v0.2 bundles, and SHOULD be verified when present. - * Also may be used as a signed timestamp. - */ - inclusionPromise: InclusionPromise | undefined; - /** - * The inclusion proof can be used for offline or online verification - * that the entry was appended to the log, and that the log has not been - * altered. - */ - inclusionProof: InclusionProof | undefined; - /** - * Optional. The canonicalized transparency log entry, used to - * reconstruct the Signed Entry Timestamp (SET) during verification. - * The contents of this field are the same as the `body` field in - * a Rekor response, meaning that it does **not** include the "full" - * canonicalized form (of log index, ID, etc.) which are - * exposed as separate fields. The verifier is responsible for - * combining the `canonicalized_body`, `log_index`, `log_id`, - * and `integrated_time` into the payload that the SET's signature - * is generated over. - * This field is intended to be used in cases where the SET cannot be - * produced determinisitically (e.g. inconsistent JSON field ordering, - * differing whitespace, etc). - * - * If set, clients MUST verify that the signature referenced in the - * `canonicalized_body` matches the signature provided in the - * `Bundle.content`. - * If not set, clients are responsible for constructing an equivalent - * payload from other sources to verify the signature. - */ - canonicalizedBody: Buffer; -} -export declare const KindVersion: { - fromJSON(object: any): KindVersion; - toJSON(message: KindVersion): unknown; -}; -export declare const Checkpoint: { - fromJSON(object: any): Checkpoint; - toJSON(message: Checkpoint): unknown; -}; -export declare const InclusionProof: { - fromJSON(object: any): InclusionProof; - toJSON(message: InclusionProof): unknown; -}; -export declare const InclusionPromise: { - fromJSON(object: any): InclusionPromise; - toJSON(message: InclusionPromise): unknown; -}; -export declare const TransparencyLogEntry: { - fromJSON(object: any): TransparencyLogEntry; - toJSON(message: TransparencyLogEntry): unknown; -}; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_rekor.js b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_rekor.js deleted file mode 100644 index 398193b2..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_rekor.js +++ /dev/null @@ -1,167 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TransparencyLogEntry = exports.InclusionPromise = exports.InclusionProof = exports.Checkpoint = exports.KindVersion = void 0; -/* eslint-disable */ -const sigstore_common_1 = require("./sigstore_common"); -function createBaseKindVersion() { - return { kind: "", version: "" }; -} -exports.KindVersion = { - fromJSON(object) { - return { - kind: isSet(object.kind) ? String(object.kind) : "", - version: isSet(object.version) ? String(object.version) : "", - }; - }, - toJSON(message) { - const obj = {}; - message.kind !== undefined && (obj.kind = message.kind); - message.version !== undefined && (obj.version = message.version); - return obj; - }, -}; -function createBaseCheckpoint() { - return { envelope: "" }; -} -exports.Checkpoint = { - fromJSON(object) { - return { envelope: isSet(object.envelope) ? String(object.envelope) : "" }; - }, - toJSON(message) { - const obj = {}; - message.envelope !== undefined && (obj.envelope = message.envelope); - return obj; - }, -}; -function createBaseInclusionProof() { - return { logIndex: "0", rootHash: Buffer.alloc(0), treeSize: "0", hashes: [], checkpoint: undefined }; -} -exports.InclusionProof = { - fromJSON(object) { - return { - logIndex: isSet(object.logIndex) ? String(object.logIndex) : "0", - rootHash: isSet(object.rootHash) ? Buffer.from(bytesFromBase64(object.rootHash)) : Buffer.alloc(0), - treeSize: isSet(object.treeSize) ? String(object.treeSize) : "0", - hashes: Array.isArray(object?.hashes) ? object.hashes.map((e) => Buffer.from(bytesFromBase64(e))) : [], - checkpoint: isSet(object.checkpoint) ? exports.Checkpoint.fromJSON(object.checkpoint) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.logIndex !== undefined && (obj.logIndex = message.logIndex); - message.rootHash !== undefined && - (obj.rootHash = base64FromBytes(message.rootHash !== undefined ? message.rootHash : Buffer.alloc(0))); - message.treeSize !== undefined && (obj.treeSize = message.treeSize); - if (message.hashes) { - obj.hashes = message.hashes.map((e) => base64FromBytes(e !== undefined ? e : Buffer.alloc(0))); - } - else { - obj.hashes = []; - } - message.checkpoint !== undefined && - (obj.checkpoint = message.checkpoint ? exports.Checkpoint.toJSON(message.checkpoint) : undefined); - return obj; - }, -}; -function createBaseInclusionPromise() { - return { signedEntryTimestamp: Buffer.alloc(0) }; -} -exports.InclusionPromise = { - fromJSON(object) { - return { - signedEntryTimestamp: isSet(object.signedEntryTimestamp) - ? Buffer.from(bytesFromBase64(object.signedEntryTimestamp)) - : Buffer.alloc(0), - }; - }, - toJSON(message) { - const obj = {}; - message.signedEntryTimestamp !== undefined && - (obj.signedEntryTimestamp = base64FromBytes(message.signedEntryTimestamp !== undefined ? message.signedEntryTimestamp : Buffer.alloc(0))); - return obj; - }, -}; -function createBaseTransparencyLogEntry() { - return { - logIndex: "0", - logId: undefined, - kindVersion: undefined, - integratedTime: "0", - inclusionPromise: undefined, - inclusionProof: undefined, - canonicalizedBody: Buffer.alloc(0), - }; -} -exports.TransparencyLogEntry = { - fromJSON(object) { - return { - logIndex: isSet(object.logIndex) ? String(object.logIndex) : "0", - logId: isSet(object.logId) ? sigstore_common_1.LogId.fromJSON(object.logId) : undefined, - kindVersion: isSet(object.kindVersion) ? exports.KindVersion.fromJSON(object.kindVersion) : undefined, - integratedTime: isSet(object.integratedTime) ? String(object.integratedTime) : "0", - inclusionPromise: isSet(object.inclusionPromise) ? exports.InclusionPromise.fromJSON(object.inclusionPromise) : undefined, - inclusionProof: isSet(object.inclusionProof) ? exports.InclusionProof.fromJSON(object.inclusionProof) : undefined, - canonicalizedBody: isSet(object.canonicalizedBody) - ? Buffer.from(bytesFromBase64(object.canonicalizedBody)) - : Buffer.alloc(0), - }; - }, - toJSON(message) { - const obj = {}; - message.logIndex !== undefined && (obj.logIndex = message.logIndex); - message.logId !== undefined && (obj.logId = message.logId ? sigstore_common_1.LogId.toJSON(message.logId) : undefined); - message.kindVersion !== undefined && - (obj.kindVersion = message.kindVersion ? exports.KindVersion.toJSON(message.kindVersion) : undefined); - message.integratedTime !== undefined && (obj.integratedTime = message.integratedTime); - message.inclusionPromise !== undefined && - (obj.inclusionPromise = message.inclusionPromise ? exports.InclusionPromise.toJSON(message.inclusionPromise) : undefined); - message.inclusionProof !== undefined && - (obj.inclusionProof = message.inclusionProof ? exports.InclusionProof.toJSON(message.inclusionProof) : undefined); - message.canonicalizedBody !== undefined && - (obj.canonicalizedBody = base64FromBytes(message.canonicalizedBody !== undefined ? message.canonicalizedBody : Buffer.alloc(0))); - return obj; - }, -}; -var tsProtoGlobalThis = (() => { - if (typeof globalThis !== "undefined") { - return globalThis; - } - if (typeof self !== "undefined") { - return self; - } - if (typeof window !== "undefined") { - return window; - } - if (typeof global !== "undefined") { - return global; - } - throw "Unable to locate global object"; -})(); -function bytesFromBase64(b64) { - if (tsProtoGlobalThis.Buffer) { - return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); - } - else { - const bin = tsProtoGlobalThis.atob(b64); - const arr = new Uint8Array(bin.length); - for (let i = 0; i < bin.length; ++i) { - arr[i] = bin.charCodeAt(i); - } - return arr; - } -} -function base64FromBytes(arr) { - if (tsProtoGlobalThis.Buffer) { - return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); - } - else { - const bin = []; - arr.forEach((byte) => { - bin.push(String.fromCharCode(byte)); - }); - return tsProtoGlobalThis.btoa(bin.join("")); - } -} -function isSet(value) { - return value !== null && value !== undefined; -} diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_trustroot.d.ts b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_trustroot.d.ts deleted file mode 100644 index f3e27562..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_trustroot.d.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { DistinguishedName, HashAlgorithm, LogId, PublicKey, TimeRange, X509CertificateChain } from "./sigstore_common"; -/** - * TransparencyLogInstance describes the immutable parameters from a - * transparency log. - * See https://www.rfc-editor.org/rfc/rfc9162.html#name-log-parameters - * for more details. - * The included parameters are the minimal set required to identify a log, - * and verify an inclusion proof/promise. - */ -export interface TransparencyLogInstance { - /** The base URL at which can be used to URLs for the client. */ - baseUrl: string; - /** The hash algorithm used for the Merkle Tree. */ - hashAlgorithm: HashAlgorithm; - /** - * The public key used to verify signatures generated by the log. - * This attribute contains the signature algorithm used by the log. - */ - publicKey: PublicKey | undefined; - /** The unique identifier for this transparency log. */ - logId: LogId | undefined; -} -/** - * CertificateAuthority enlists the information required to identify which - * CA to use and perform signature verification. - */ -export interface CertificateAuthority { - /** - * The root certificate MUST be self-signed, and so the subject and - * issuer are the same. - */ - subject: DistinguishedName | undefined; - /** The URI at which the CA can be accessed. */ - uri: string; - /** The certificate chain for this CA. */ - certChain: X509CertificateChain | undefined; - /** - * The time the *entire* chain was valid. This is at max the - * longest interval when *all* certificates in the chain were valid, - * but it MAY be shorter. Clients MUST check timestamps against *both* - * the `valid_for` time range *and* the entire certificate chain. - * - * The TimeRange should be considered valid *inclusive* of the - * endpoints. - */ - validFor: TimeRange | undefined; -} -/** - * TrustedRoot describes the client's complete set of trusted entities. - * How the TrustedRoot is populated is not specified, but can be a - * combination of many sources such as TUF repositories, files on disk etc. - * - * The TrustedRoot is not meant to be used for any artifact verification, only - * to capture the complete/global set of trusted verification materials. - * When verifying an artifact, based on the artifact and policies, a selection - * of keys/authorities are expected to be extracted and provided to the - * verification function. This way the set of keys/authorities can be kept to - * a minimal set by the policy to gain better control over what signatures - * that are allowed. - * - * The embedded transparency logs, CT logs, CAs and TSAs MUST include any - * previously used instance -- otherwise signatures made in the past cannot - * be verified. - * The currently used instances MUST NOT have their 'end' timestamp set in - * their 'valid_for' attribute for easy identification. - * All the listed instances SHOULD be sorted by the 'valid_for' in ascending - * order, that is, the oldest instance first and the current instance last. - */ -export interface TrustedRoot { - /** MUST be application/vnd.dev.sigstore.trustedroot+json;version=0.1 */ - mediaType: string; - /** A set of trusted Rekor servers. */ - tlogs: TransparencyLogInstance[]; - /** - * A set of trusted certificate authorities (e.g Fulcio), and any - * intermediate certificates they provide. - * If a CA is issuing multiple intermediate certificate, each - * combination shall be represented as separate chain. I.e, a single - * root cert may appear in multiple chains but with different - * intermediate and/or leaf certificates. - * The certificates are intended to be used for verifying artifact - * signatures. - */ - certificateAuthorities: CertificateAuthority[]; - /** A set of trusted certificate transparency logs. */ - ctlogs: TransparencyLogInstance[]; - /** A set of trusted timestamping authorities. */ - timestampAuthorities: CertificateAuthority[]; -} -export declare const TransparencyLogInstance: { - fromJSON(object: any): TransparencyLogInstance; - toJSON(message: TransparencyLogInstance): unknown; -}; -export declare const CertificateAuthority: { - fromJSON(object: any): CertificateAuthority; - toJSON(message: CertificateAuthority): unknown; -}; -export declare const TrustedRoot: { - fromJSON(object: any): TrustedRoot; - toJSON(message: TrustedRoot): unknown; -}; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_trustroot.js b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_trustroot.js deleted file mode 100644 index 05e56676..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_trustroot.js +++ /dev/null @@ -1,103 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TrustedRoot = exports.CertificateAuthority = exports.TransparencyLogInstance = void 0; -/* eslint-disable */ -const sigstore_common_1 = require("./sigstore_common"); -function createBaseTransparencyLogInstance() { - return { baseUrl: "", hashAlgorithm: 0, publicKey: undefined, logId: undefined }; -} -exports.TransparencyLogInstance = { - fromJSON(object) { - return { - baseUrl: isSet(object.baseUrl) ? String(object.baseUrl) : "", - hashAlgorithm: isSet(object.hashAlgorithm) ? (0, sigstore_common_1.hashAlgorithmFromJSON)(object.hashAlgorithm) : 0, - publicKey: isSet(object.publicKey) ? sigstore_common_1.PublicKey.fromJSON(object.publicKey) : undefined, - logId: isSet(object.logId) ? sigstore_common_1.LogId.fromJSON(object.logId) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.baseUrl !== undefined && (obj.baseUrl = message.baseUrl); - message.hashAlgorithm !== undefined && (obj.hashAlgorithm = (0, sigstore_common_1.hashAlgorithmToJSON)(message.hashAlgorithm)); - message.publicKey !== undefined && - (obj.publicKey = message.publicKey ? sigstore_common_1.PublicKey.toJSON(message.publicKey) : undefined); - message.logId !== undefined && (obj.logId = message.logId ? sigstore_common_1.LogId.toJSON(message.logId) : undefined); - return obj; - }, -}; -function createBaseCertificateAuthority() { - return { subject: undefined, uri: "", certChain: undefined, validFor: undefined }; -} -exports.CertificateAuthority = { - fromJSON(object) { - return { - subject: isSet(object.subject) ? sigstore_common_1.DistinguishedName.fromJSON(object.subject) : undefined, - uri: isSet(object.uri) ? String(object.uri) : "", - certChain: isSet(object.certChain) ? sigstore_common_1.X509CertificateChain.fromJSON(object.certChain) : undefined, - validFor: isSet(object.validFor) ? sigstore_common_1.TimeRange.fromJSON(object.validFor) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.subject !== undefined && - (obj.subject = message.subject ? sigstore_common_1.DistinguishedName.toJSON(message.subject) : undefined); - message.uri !== undefined && (obj.uri = message.uri); - message.certChain !== undefined && - (obj.certChain = message.certChain ? sigstore_common_1.X509CertificateChain.toJSON(message.certChain) : undefined); - message.validFor !== undefined && - (obj.validFor = message.validFor ? sigstore_common_1.TimeRange.toJSON(message.validFor) : undefined); - return obj; - }, -}; -function createBaseTrustedRoot() { - return { mediaType: "", tlogs: [], certificateAuthorities: [], ctlogs: [], timestampAuthorities: [] }; -} -exports.TrustedRoot = { - fromJSON(object) { - return { - mediaType: isSet(object.mediaType) ? String(object.mediaType) : "", - tlogs: Array.isArray(object?.tlogs) ? object.tlogs.map((e) => exports.TransparencyLogInstance.fromJSON(e)) : [], - certificateAuthorities: Array.isArray(object?.certificateAuthorities) - ? object.certificateAuthorities.map((e) => exports.CertificateAuthority.fromJSON(e)) - : [], - ctlogs: Array.isArray(object?.ctlogs) - ? object.ctlogs.map((e) => exports.TransparencyLogInstance.fromJSON(e)) - : [], - timestampAuthorities: Array.isArray(object?.timestampAuthorities) - ? object.timestampAuthorities.map((e) => exports.CertificateAuthority.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - message.mediaType !== undefined && (obj.mediaType = message.mediaType); - if (message.tlogs) { - obj.tlogs = message.tlogs.map((e) => e ? exports.TransparencyLogInstance.toJSON(e) : undefined); - } - else { - obj.tlogs = []; - } - if (message.certificateAuthorities) { - obj.certificateAuthorities = message.certificateAuthorities.map((e) => e ? exports.CertificateAuthority.toJSON(e) : undefined); - } - else { - obj.certificateAuthorities = []; - } - if (message.ctlogs) { - obj.ctlogs = message.ctlogs.map((e) => e ? exports.TransparencyLogInstance.toJSON(e) : undefined); - } - else { - obj.ctlogs = []; - } - if (message.timestampAuthorities) { - obj.timestampAuthorities = message.timestampAuthorities.map((e) => e ? exports.CertificateAuthority.toJSON(e) : undefined); - } - else { - obj.timestampAuthorities = []; - } - return obj; - }, -}; -function isSet(value) { - return value !== null && value !== undefined; -} diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_verification.d.ts b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_verification.d.ts deleted file mode 100644 index 8ee32d8e..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_verification.d.ts +++ /dev/null @@ -1,156 +0,0 @@ -/// -import { Bundle } from "./sigstore_bundle"; -import { ObjectIdentifierValuePair, PublicKey, SubjectAlternativeName } from "./sigstore_common"; -import { TrustedRoot } from "./sigstore_trustroot"; -/** The identity of a X.509 Certificate signer. */ -export interface CertificateIdentity { - /** The X.509v3 issuer extension (OID 1.3.6.1.4.1.57264.1.1) */ - issuer: string; - san: SubjectAlternativeName | undefined; - /** - * An unordered list of OIDs that must be verified. - * All OID/values provided in this list MUST exactly match against - * the values in the certificate for verification to be successful. - */ - oids: ObjectIdentifierValuePair[]; -} -export interface CertificateIdentities { - identities: CertificateIdentity[]; -} -export interface PublicKeyIdentities { - publicKeys: PublicKey[]; -} -/** - * A light-weight set of options/policies for identifying trusted signers, - * used during verification of a single artifact. - */ -export interface ArtifactVerificationOptions { - signers?: { - $case: "certificateIdentities"; - certificateIdentities: CertificateIdentities; - } | { - $case: "publicKeys"; - publicKeys: PublicKeyIdentities; - }; - /** - * Optional options for artifact transparency log verification. - * If none is provided, the default verification options are: - * Threshold: 1 - * Online verification: false - * Disable: false - */ - tlogOptions?: ArtifactVerificationOptions_TlogOptions | undefined; - /** - * Optional options for certificate transparency log verification. - * If none is provided, the default verification options are: - * Threshold: 1 - * Detached SCT: false - * Disable: false - */ - ctlogOptions?: ArtifactVerificationOptions_CtlogOptions | undefined; - /** - * Optional options for certificate signed timestamp verification. - * If none is provided, the default verification options are: - * Threshold: 1 - * Disable: false - */ - tsaOptions?: ArtifactVerificationOptions_TimestampAuthorityOptions | undefined; -} -export interface ArtifactVerificationOptions_TlogOptions { - /** Number of transparency logs the entry must appear on. */ - threshold: number; - /** Perform an online inclusion proof. */ - performOnlineVerification: boolean; - /** Disable verification for transparency logs. */ - disable: boolean; -} -export interface ArtifactVerificationOptions_CtlogOptions { - /** - * The number of ct transparency logs the certificate must - * appear on. - */ - threshold: number; - /** - * Expect detached SCTs. - * This is not supported right now as we can't capture an - * detached SCT in the bundle. - */ - detachedSct: boolean; - /** Disable ct transparency log verification */ - disable: boolean; -} -export interface ArtifactVerificationOptions_TimestampAuthorityOptions { - /** The number of signed timestamps that are expected. */ - threshold: number; - /** Disable signed timestamp verification. */ - disable: boolean; -} -export interface Artifact { - data?: { - $case: "artifactUri"; - artifactUri: string; - } | { - $case: "artifact"; - artifact: Buffer; - }; -} -/** - * Input captures all that is needed to call the bundle verification method, - * to verify a single artifact referenced by the bundle. - */ -export interface Input { - /** - * The verification materials provided during a bundle verification. - * The running process is usually preloaded with a "global" - * dev.sisgtore.trustroot.TrustedRoot.v1 instance. Prior to - * verifying an artifact (i.e a bundle), and/or based on current - * policy, some selection is expected to happen, to filter out the - * exact certificate authority to use, which transparency logs are - * relevant etc. The result should b ecaptured in the - * `artifact_trust_root`. - */ - artifactTrustRoot: TrustedRoot | undefined; - artifactVerificationOptions: ArtifactVerificationOptions | undefined; - bundle: Bundle | undefined; - /** - * If the bundle contains a message signature, the artifact must be - * provided. - */ - artifact?: Artifact | undefined; -} -export declare const CertificateIdentity: { - fromJSON(object: any): CertificateIdentity; - toJSON(message: CertificateIdentity): unknown; -}; -export declare const CertificateIdentities: { - fromJSON(object: any): CertificateIdentities; - toJSON(message: CertificateIdentities): unknown; -}; -export declare const PublicKeyIdentities: { - fromJSON(object: any): PublicKeyIdentities; - toJSON(message: PublicKeyIdentities): unknown; -}; -export declare const ArtifactVerificationOptions: { - fromJSON(object: any): ArtifactVerificationOptions; - toJSON(message: ArtifactVerificationOptions): unknown; -}; -export declare const ArtifactVerificationOptions_TlogOptions: { - fromJSON(object: any): ArtifactVerificationOptions_TlogOptions; - toJSON(message: ArtifactVerificationOptions_TlogOptions): unknown; -}; -export declare const ArtifactVerificationOptions_CtlogOptions: { - fromJSON(object: any): ArtifactVerificationOptions_CtlogOptions; - toJSON(message: ArtifactVerificationOptions_CtlogOptions): unknown; -}; -export declare const ArtifactVerificationOptions_TimestampAuthorityOptions: { - fromJSON(object: any): ArtifactVerificationOptions_TimestampAuthorityOptions; - toJSON(message: ArtifactVerificationOptions_TimestampAuthorityOptions): unknown; -}; -export declare const Artifact: { - fromJSON(object: any): Artifact; - toJSON(message: Artifact): unknown; -}; -export declare const Input: { - fromJSON(object: any): Input; - toJSON(message: Input): unknown; -}; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_verification.js b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_verification.js deleted file mode 100644 index 8a72b897..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/__generated__/sigstore_verification.js +++ /dev/null @@ -1,273 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Input = exports.Artifact = exports.ArtifactVerificationOptions_TimestampAuthorityOptions = exports.ArtifactVerificationOptions_CtlogOptions = exports.ArtifactVerificationOptions_TlogOptions = exports.ArtifactVerificationOptions = exports.PublicKeyIdentities = exports.CertificateIdentities = exports.CertificateIdentity = void 0; -/* eslint-disable */ -const sigstore_bundle_1 = require("./sigstore_bundle"); -const sigstore_common_1 = require("./sigstore_common"); -const sigstore_trustroot_1 = require("./sigstore_trustroot"); -function createBaseCertificateIdentity() { - return { issuer: "", san: undefined, oids: [] }; -} -exports.CertificateIdentity = { - fromJSON(object) { - return { - issuer: isSet(object.issuer) ? String(object.issuer) : "", - san: isSet(object.san) ? sigstore_common_1.SubjectAlternativeName.fromJSON(object.san) : undefined, - oids: Array.isArray(object?.oids) ? object.oids.map((e) => sigstore_common_1.ObjectIdentifierValuePair.fromJSON(e)) : [], - }; - }, - toJSON(message) { - const obj = {}; - message.issuer !== undefined && (obj.issuer = message.issuer); - message.san !== undefined && (obj.san = message.san ? sigstore_common_1.SubjectAlternativeName.toJSON(message.san) : undefined); - if (message.oids) { - obj.oids = message.oids.map((e) => e ? sigstore_common_1.ObjectIdentifierValuePair.toJSON(e) : undefined); - } - else { - obj.oids = []; - } - return obj; - }, -}; -function createBaseCertificateIdentities() { - return { identities: [] }; -} -exports.CertificateIdentities = { - fromJSON(object) { - return { - identities: Array.isArray(object?.identities) - ? object.identities.map((e) => exports.CertificateIdentity.fromJSON(e)) - : [], - }; - }, - toJSON(message) { - const obj = {}; - if (message.identities) { - obj.identities = message.identities.map((e) => e ? exports.CertificateIdentity.toJSON(e) : undefined); - } - else { - obj.identities = []; - } - return obj; - }, -}; -function createBasePublicKeyIdentities() { - return { publicKeys: [] }; -} -exports.PublicKeyIdentities = { - fromJSON(object) { - return { - publicKeys: Array.isArray(object?.publicKeys) ? object.publicKeys.map((e) => sigstore_common_1.PublicKey.fromJSON(e)) : [], - }; - }, - toJSON(message) { - const obj = {}; - if (message.publicKeys) { - obj.publicKeys = message.publicKeys.map((e) => e ? sigstore_common_1.PublicKey.toJSON(e) : undefined); - } - else { - obj.publicKeys = []; - } - return obj; - }, -}; -function createBaseArtifactVerificationOptions() { - return { signers: undefined, tlogOptions: undefined, ctlogOptions: undefined, tsaOptions: undefined }; -} -exports.ArtifactVerificationOptions = { - fromJSON(object) { - return { - signers: isSet(object.certificateIdentities) - ? { - $case: "certificateIdentities", - certificateIdentities: exports.CertificateIdentities.fromJSON(object.certificateIdentities), - } - : isSet(object.publicKeys) - ? { $case: "publicKeys", publicKeys: exports.PublicKeyIdentities.fromJSON(object.publicKeys) } - : undefined, - tlogOptions: isSet(object.tlogOptions) - ? exports.ArtifactVerificationOptions_TlogOptions.fromJSON(object.tlogOptions) - : undefined, - ctlogOptions: isSet(object.ctlogOptions) - ? exports.ArtifactVerificationOptions_CtlogOptions.fromJSON(object.ctlogOptions) - : undefined, - tsaOptions: isSet(object.tsaOptions) - ? exports.ArtifactVerificationOptions_TimestampAuthorityOptions.fromJSON(object.tsaOptions) - : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.signers?.$case === "certificateIdentities" && - (obj.certificateIdentities = message.signers?.certificateIdentities - ? exports.CertificateIdentities.toJSON(message.signers?.certificateIdentities) - : undefined); - message.signers?.$case === "publicKeys" && (obj.publicKeys = message.signers?.publicKeys - ? exports.PublicKeyIdentities.toJSON(message.signers?.publicKeys) - : undefined); - message.tlogOptions !== undefined && (obj.tlogOptions = message.tlogOptions - ? exports.ArtifactVerificationOptions_TlogOptions.toJSON(message.tlogOptions) - : undefined); - message.ctlogOptions !== undefined && (obj.ctlogOptions = message.ctlogOptions - ? exports.ArtifactVerificationOptions_CtlogOptions.toJSON(message.ctlogOptions) - : undefined); - message.tsaOptions !== undefined && (obj.tsaOptions = message.tsaOptions - ? exports.ArtifactVerificationOptions_TimestampAuthorityOptions.toJSON(message.tsaOptions) - : undefined); - return obj; - }, -}; -function createBaseArtifactVerificationOptions_TlogOptions() { - return { threshold: 0, performOnlineVerification: false, disable: false }; -} -exports.ArtifactVerificationOptions_TlogOptions = { - fromJSON(object) { - return { - threshold: isSet(object.threshold) ? Number(object.threshold) : 0, - performOnlineVerification: isSet(object.performOnlineVerification) - ? Boolean(object.performOnlineVerification) - : false, - disable: isSet(object.disable) ? Boolean(object.disable) : false, - }; - }, - toJSON(message) { - const obj = {}; - message.threshold !== undefined && (obj.threshold = Math.round(message.threshold)); - message.performOnlineVerification !== undefined && - (obj.performOnlineVerification = message.performOnlineVerification); - message.disable !== undefined && (obj.disable = message.disable); - return obj; - }, -}; -function createBaseArtifactVerificationOptions_CtlogOptions() { - return { threshold: 0, detachedSct: false, disable: false }; -} -exports.ArtifactVerificationOptions_CtlogOptions = { - fromJSON(object) { - return { - threshold: isSet(object.threshold) ? Number(object.threshold) : 0, - detachedSct: isSet(object.detachedSct) ? Boolean(object.detachedSct) : false, - disable: isSet(object.disable) ? Boolean(object.disable) : false, - }; - }, - toJSON(message) { - const obj = {}; - message.threshold !== undefined && (obj.threshold = Math.round(message.threshold)); - message.detachedSct !== undefined && (obj.detachedSct = message.detachedSct); - message.disable !== undefined && (obj.disable = message.disable); - return obj; - }, -}; -function createBaseArtifactVerificationOptions_TimestampAuthorityOptions() { - return { threshold: 0, disable: false }; -} -exports.ArtifactVerificationOptions_TimestampAuthorityOptions = { - fromJSON(object) { - return { - threshold: isSet(object.threshold) ? Number(object.threshold) : 0, - disable: isSet(object.disable) ? Boolean(object.disable) : false, - }; - }, - toJSON(message) { - const obj = {}; - message.threshold !== undefined && (obj.threshold = Math.round(message.threshold)); - message.disable !== undefined && (obj.disable = message.disable); - return obj; - }, -}; -function createBaseArtifact() { - return { data: undefined }; -} -exports.Artifact = { - fromJSON(object) { - return { - data: isSet(object.artifactUri) - ? { $case: "artifactUri", artifactUri: String(object.artifactUri) } - : isSet(object.artifact) - ? { $case: "artifact", artifact: Buffer.from(bytesFromBase64(object.artifact)) } - : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.data?.$case === "artifactUri" && (obj.artifactUri = message.data?.artifactUri); - message.data?.$case === "artifact" && - (obj.artifact = message.data?.artifact !== undefined ? base64FromBytes(message.data?.artifact) : undefined); - return obj; - }, -}; -function createBaseInput() { - return { - artifactTrustRoot: undefined, - artifactVerificationOptions: undefined, - bundle: undefined, - artifact: undefined, - }; -} -exports.Input = { - fromJSON(object) { - return { - artifactTrustRoot: isSet(object.artifactTrustRoot) ? sigstore_trustroot_1.TrustedRoot.fromJSON(object.artifactTrustRoot) : undefined, - artifactVerificationOptions: isSet(object.artifactVerificationOptions) - ? exports.ArtifactVerificationOptions.fromJSON(object.artifactVerificationOptions) - : undefined, - bundle: isSet(object.bundle) ? sigstore_bundle_1.Bundle.fromJSON(object.bundle) : undefined, - artifact: isSet(object.artifact) ? exports.Artifact.fromJSON(object.artifact) : undefined, - }; - }, - toJSON(message) { - const obj = {}; - message.artifactTrustRoot !== undefined && - (obj.artifactTrustRoot = message.artifactTrustRoot ? sigstore_trustroot_1.TrustedRoot.toJSON(message.artifactTrustRoot) : undefined); - message.artifactVerificationOptions !== undefined && - (obj.artifactVerificationOptions = message.artifactVerificationOptions - ? exports.ArtifactVerificationOptions.toJSON(message.artifactVerificationOptions) - : undefined); - message.bundle !== undefined && (obj.bundle = message.bundle ? sigstore_bundle_1.Bundle.toJSON(message.bundle) : undefined); - message.artifact !== undefined && (obj.artifact = message.artifact ? exports.Artifact.toJSON(message.artifact) : undefined); - return obj; - }, -}; -var tsProtoGlobalThis = (() => { - if (typeof globalThis !== "undefined") { - return globalThis; - } - if (typeof self !== "undefined") { - return self; - } - if (typeof window !== "undefined") { - return window; - } - if (typeof global !== "undefined") { - return global; - } - throw "Unable to locate global object"; -})(); -function bytesFromBase64(b64) { - if (tsProtoGlobalThis.Buffer) { - return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64")); - } - else { - const bin = tsProtoGlobalThis.atob(b64); - const arr = new Uint8Array(bin.length); - for (let i = 0; i < bin.length; ++i) { - arr[i] = bin.charCodeAt(i); - } - return arr; - } -} -function base64FromBytes(arr) { - if (tsProtoGlobalThis.Buffer) { - return tsProtoGlobalThis.Buffer.from(arr).toString("base64"); - } - else { - const bin = []; - arr.forEach((byte) => { - bin.push(String.fromCharCode(byte)); - }); - return tsProtoGlobalThis.btoa(bin.join("")); - } -} -function isSet(value) { - return value !== null && value !== undefined; -} diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/index.d.ts b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/index.d.ts deleted file mode 100644 index f87f0aba..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from './__generated__/envelope'; -export * from './__generated__/sigstore_bundle'; -export * from './__generated__/sigstore_common'; -export * from './__generated__/sigstore_rekor'; -export * from './__generated__/sigstore_trustroot'; -export * from './__generated__/sigstore_verification'; diff --git a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/index.js b/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/index.js deleted file mode 100644 index eafb768c..00000000 --- a/node_modules/@sigstore/sign/node_modules/@sigstore/protobuf-specs/dist/index.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -__exportStar(require("./__generated__/envelope"), exports); -__exportStar(require("./__generated__/sigstore_bundle"), exports); -__exportStar(require("./__generated__/sigstore_common"), exports); -__exportStar(require("./__generated__/sigstore_rekor"), exports); -__exportStar(require("./__generated__/sigstore_trustroot"), exports); -__exportStar(require("./__generated__/sigstore_verification"), exports); diff --git a/node_modules/@sigstore/tuf/dist/appdata.d.ts b/node_modules/@sigstore/tuf/dist/appdata.d.ts deleted file mode 100644 index dcdaeef4..00000000 --- a/node_modules/@sigstore/tuf/dist/appdata.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function appDataPath(name: string): string; diff --git a/node_modules/@sigstore/tuf/dist/appdata.js b/node_modules/@sigstore/tuf/dist/appdata.js deleted file mode 100644 index c9a8ee92..00000000 --- a/node_modules/@sigstore/tuf/dist/appdata.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.appDataPath = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const os_1 = __importDefault(require("os")); -const path_1 = __importDefault(require("path")); -function appDataPath(name) { - const homedir = os_1.default.homedir(); - switch (process.platform) { - /* istanbul ignore next */ - case 'darwin': { - const appSupport = path_1.default.join(homedir, 'Library', 'Application Support'); - return path_1.default.join(appSupport, name); - } - /* istanbul ignore next */ - case 'win32': { - const localAppData = process.env.LOCALAPPDATA || path_1.default.join(homedir, 'AppData', 'Local'); - return path_1.default.join(localAppData, name, 'Data'); - } - /* istanbul ignore next */ - default: { - const localData = process.env.XDG_DATA_HOME || path_1.default.join(homedir, '.local', 'share'); - return path_1.default.join(localData, name); - } - } -} -exports.appDataPath = appDataPath; diff --git a/node_modules/@sigstore/tuf/dist/client.d.ts b/node_modules/@sigstore/tuf/dist/client.d.ts deleted file mode 100644 index a8441c70..00000000 --- a/node_modules/@sigstore/tuf/dist/client.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import type { MakeFetchHappenOptions } from 'make-fetch-happen'; -export type Retry = MakeFetchHappenOptions['retry']; -type FetchOptions = { - retry?: Retry; - timeout?: number; -}; -export type TUFOptions = { - cachePath: string; - mirrorURL: string; - rootPath?: string; - forceCache: boolean; - forceInit: boolean; -} & FetchOptions; -export interface TUF { - getTarget(targetName: string): Promise; -} -export declare class TUFClient implements TUF { - private updater; - constructor(options: TUFOptions); - refresh(): Promise; - getTarget(targetName: string): Promise; -} -export {}; diff --git a/node_modules/@sigstore/tuf/dist/client.js b/node_modules/@sigstore/tuf/dist/client.js deleted file mode 100644 index 2019c1fd..00000000 --- a/node_modules/@sigstore/tuf/dist/client.js +++ /dev/null @@ -1,112 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TUFClient = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const fs_1 = __importDefault(require("fs")); -const path_1 = __importDefault(require("path")); -const tuf_js_1 = require("tuf-js"); -const _1 = require("."); -const target_1 = require("./target"); -const TARGETS_DIR_NAME = 'targets'; -class TUFClient { - constructor(options) { - const url = new URL(options.mirrorURL); - const repoName = encodeURIComponent(url.host + url.pathname.replace(/\/$/, '')); - const cachePath = path_1.default.join(options.cachePath, repoName); - initTufCache(cachePath); - seedCache({ - cachePath, - mirrorURL: options.mirrorURL, - tufRootPath: options.rootPath, - forceInit: options.forceInit, - }); - this.updater = initClient({ - mirrorURL: options.mirrorURL, - cachePath, - forceCache: options.forceCache, - retry: options.retry, - timeout: options.timeout, - }); - } - async refresh() { - return this.updater.refresh(); - } - getTarget(targetName) { - return (0, target_1.readTarget)(this.updater, targetName); - } -} -exports.TUFClient = TUFClient; -// Initializes the TUF cache directory structure including the initial -// root.json file. If the cache directory does not exist, it will be -// created. If the targets directory does not exist, it will be created. -// If the root.json file does not exist, it will be copied from the -// rootPath argument. -function initTufCache(cachePath) { - const targetsPath = path_1.default.join(cachePath, TARGETS_DIR_NAME); - if (!fs_1.default.existsSync(cachePath)) { - fs_1.default.mkdirSync(cachePath, { recursive: true }); - } - if (!fs_1.default.existsSync(targetsPath)) { - fs_1.default.mkdirSync(targetsPath); - } -} -// Populates the TUF cache with the initial root.json file. If the root.json -// file does not exist (or we're forcing re-initialization), copy it from either -// the rootPath argument or from one of the repo seeds. -function seedCache({ cachePath, mirrorURL, tufRootPath, forceInit, }) { - const cachedRootPath = path_1.default.join(cachePath, 'root.json'); - // If the root.json file does not exist (or we're forcing re-initialization), - // populate it either from the supplied rootPath or from one of the repo seeds. - if (!fs_1.default.existsSync(cachedRootPath) || forceInit) { - if (tufRootPath) { - fs_1.default.copyFileSync(tufRootPath, cachedRootPath); - } - else { - /* eslint-disable @typescript-eslint/no-var-requires */ - const seeds = require('../seeds.json'); - const repoSeed = seeds[mirrorURL]; - if (!repoSeed) { - throw new _1.TUFError({ - code: 'TUF_INIT_CACHE_ERROR', - message: `No root.json found for mirror: ${mirrorURL}`, - }); - } - fs_1.default.writeFileSync(cachedRootPath, Buffer.from(repoSeed['root.json'], 'base64')); - // Copy any seed targets into the cache - Object.entries(repoSeed.targets).forEach(([targetName, target]) => { - fs_1.default.writeFileSync(path_1.default.join(cachePath, TARGETS_DIR_NAME, targetName), Buffer.from(target, 'base64')); - }); - } - } -} -function initClient(options) { - const config = { - fetchTimeout: options.timeout, - fetchRetry: options.retry, - }; - return new tuf_js_1.Updater({ - metadataBaseUrl: options.mirrorURL, - targetBaseUrl: `${options.mirrorURL}/targets`, - metadataDir: options.cachePath, - targetDir: path_1.default.join(options.cachePath, TARGETS_DIR_NAME), - forceCache: options.forceCache, - config, - }); -} diff --git a/node_modules/@sigstore/tuf/dist/error.d.ts b/node_modules/@sigstore/tuf/dist/error.d.ts deleted file mode 100644 index f182b8a9..00000000 --- a/node_modules/@sigstore/tuf/dist/error.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -type TUFErrorCode = 'TUF_INIT_CACHE_ERROR' | 'TUF_FIND_TARGET_ERROR' | 'TUF_REFRESH_METADATA_ERROR' | 'TUF_DOWNLOAD_TARGET_ERROR' | 'TUF_READ_TARGET_ERROR'; -export declare class TUFError extends Error { - code: TUFErrorCode; - cause: any | undefined; - constructor({ code, message, cause, }: { - code: TUFErrorCode; - message: string; - cause?: any; - }); -} -export {}; diff --git a/node_modules/@sigstore/tuf/dist/error.js b/node_modules/@sigstore/tuf/dist/error.js deleted file mode 100644 index e13971b2..00000000 --- a/node_modules/@sigstore/tuf/dist/error.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TUFError = void 0; -class TUFError extends Error { - constructor({ code, message, cause, }) { - super(message); - this.code = code; - this.cause = cause; - this.name = this.constructor.name; - } -} -exports.TUFError = TUFError; diff --git a/node_modules/@sigstore/tuf/dist/index.d.ts b/node_modules/@sigstore/tuf/dist/index.d.ts deleted file mode 100644 index cad0f5c1..00000000 --- a/node_modules/@sigstore/tuf/dist/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { TrustedRoot } from '@sigstore/protobuf-specs'; -import { TUFOptions as RequiredTUFOptions, TUF } from './client'; -export declare const DEFAULT_MIRROR_URL = "https://tuf-repo-cdn.sigstore.dev"; -export type TUFOptions = Partial & { - force?: boolean; -}; -export declare function getTrustedRoot(options?: TUFOptions): Promise; -export declare function initTUF(options?: TUFOptions): Promise; -export type { TUF } from './client'; -export { TUFError } from './error'; diff --git a/node_modules/@sigstore/tuf/dist/index.js b/node_modules/@sigstore/tuf/dist/index.js deleted file mode 100644 index 678c81d4..00000000 --- a/node_modules/@sigstore/tuf/dist/index.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TUFError = exports.initTUF = exports.getTrustedRoot = exports.DEFAULT_MIRROR_URL = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const protobuf_specs_1 = require("@sigstore/protobuf-specs"); -const appdata_1 = require("./appdata"); -const client_1 = require("./client"); -exports.DEFAULT_MIRROR_URL = 'https://tuf-repo-cdn.sigstore.dev'; -const DEFAULT_CACHE_DIR = 'sigstore-js'; -const DEFAULT_RETRY = { retries: 2 }; -const DEFAULT_TIMEOUT = 5000; -const TRUSTED_ROOT_TARGET = 'trusted_root.json'; -async function getTrustedRoot( -/* istanbul ignore next */ -options = {}) { - const client = createClient(options); - const trustedRoot = await client.getTarget(TRUSTED_ROOT_TARGET); - return protobuf_specs_1.TrustedRoot.fromJSON(JSON.parse(trustedRoot)); -} -exports.getTrustedRoot = getTrustedRoot; -async function initTUF( -/* istanbul ignore next */ -options = {}) { - const client = createClient(options); - return client.refresh().then(() => client); -} -exports.initTUF = initTUF; -// Create a TUF client with default options -function createClient(options) { - /* istanbul ignore next */ - return new client_1.TUFClient({ - cachePath: options.cachePath || (0, appdata_1.appDataPath)(DEFAULT_CACHE_DIR), - rootPath: options.rootPath, - mirrorURL: options.mirrorURL || exports.DEFAULT_MIRROR_URL, - retry: options.retry ?? DEFAULT_RETRY, - timeout: options.timeout ?? DEFAULT_TIMEOUT, - forceCache: options.forceCache ?? false, - forceInit: options.forceInit ?? options.force ?? false, - }); -} -var error_1 = require("./error"); -Object.defineProperty(exports, "TUFError", { enumerable: true, get: function () { return error_1.TUFError; } }); diff --git a/node_modules/@sigstore/tuf/dist/target.d.ts b/node_modules/@sigstore/tuf/dist/target.d.ts deleted file mode 100644 index a00af45e..00000000 --- a/node_modules/@sigstore/tuf/dist/target.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { Updater } from 'tuf-js'; -export declare function readTarget(tuf: Updater, targetPath: string): Promise; diff --git a/node_modules/@sigstore/tuf/dist/target.js b/node_modules/@sigstore/tuf/dist/target.js deleted file mode 100644 index 29eaf99a..00000000 --- a/node_modules/@sigstore/tuf/dist/target.js +++ /dev/null @@ -1,80 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.readTarget = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const fs_1 = __importDefault(require("fs")); -const error_1 = require("./error"); -// Downloads and returns the specified target from the provided TUF Updater. -async function readTarget(tuf, targetPath) { - const path = await getTargetPath(tuf, targetPath); - return new Promise((resolve, reject) => { - fs_1.default.readFile(path, 'utf-8', (err, data) => { - if (err) { - reject(new error_1.TUFError({ - code: 'TUF_READ_TARGET_ERROR', - message: `error reading target ${path}`, - cause: err, - })); - } - else { - resolve(data); - } - }); - }); -} -exports.readTarget = readTarget; -// Returns the local path to the specified target. If the target is not yet -// cached locally, the provided TUF Updater will be used to download and -// cache the target. -async function getTargetPath(tuf, target) { - let targetInfo; - try { - targetInfo = await tuf.getTargetInfo(target); - } - catch (err) { - throw new error_1.TUFError({ - code: 'TUF_REFRESH_METADATA_ERROR', - message: 'error refreshing TUF metadata', - cause: err, - }); - } - if (!targetInfo) { - throw new error_1.TUFError({ - code: 'TUF_FIND_TARGET_ERROR', - message: `target ${target} not found`, - }); - } - let path = await tuf.findCachedTarget(targetInfo); - // An empty path here means the target has not been cached locally, or is - // out of date. In either case, we need to download it. - if (!path) { - try { - path = await tuf.downloadTarget(targetInfo); - } - catch (err) { - throw new error_1.TUFError({ - code: 'TUF_DOWNLOAD_TARGET_ERROR', - message: `error downloading target ${path}`, - cause: err, - }); - } - } - return path; -} diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/base.d.ts b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/base.d.ts deleted file mode 100644 index 4cc23953..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/base.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { Signature } from './signature'; -import { JSONObject, JSONValue } from './utils'; -export interface Signable { - signatures: Record; - signed: Signed; -} -export interface SignedOptions { - version?: number; - specVersion?: string; - expires?: string; - unrecognizedFields?: Record; -} -export declare enum MetadataKind { - Root = "root", - Timestamp = "timestamp", - Snapshot = "snapshot", - Targets = "targets" -} -export declare function isMetadataKind(value: unknown): value is MetadataKind; -/*** - * A base class for the signed part of TUF metadata. - * - * Objects with base class Signed are usually included in a ``Metadata`` object - * on the signed attribute. This class provides attributes and methods that - * are common for all TUF metadata types (roles). - */ -export declare abstract class Signed { - readonly specVersion: string; - readonly expires: string; - readonly version: number; - readonly unrecognizedFields: Record; - constructor(options: SignedOptions); - equals(other: Signed): boolean; - isExpired(referenceTime?: Date): boolean; - static commonFieldsFromJSON(data: JSONObject): SignedOptions; - abstract toJSON(): JSONObject; -} diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/base.js b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/base.js deleted file mode 100644 index 259f6799..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/base.js +++ /dev/null @@ -1,83 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Signed = exports.isMetadataKind = exports.MetadataKind = void 0; -const util_1 = __importDefault(require("util")); -const error_1 = require("./error"); -const utils_1 = require("./utils"); -const SPECIFICATION_VERSION = ['1', '0', '31']; -var MetadataKind; -(function (MetadataKind) { - MetadataKind["Root"] = "root"; - MetadataKind["Timestamp"] = "timestamp"; - MetadataKind["Snapshot"] = "snapshot"; - MetadataKind["Targets"] = "targets"; -})(MetadataKind || (exports.MetadataKind = MetadataKind = {})); -function isMetadataKind(value) { - return (typeof value === 'string' && - Object.values(MetadataKind).includes(value)); -} -exports.isMetadataKind = isMetadataKind; -/*** - * A base class for the signed part of TUF metadata. - * - * Objects with base class Signed are usually included in a ``Metadata`` object - * on the signed attribute. This class provides attributes and methods that - * are common for all TUF metadata types (roles). - */ -class Signed { - constructor(options) { - this.specVersion = options.specVersion || SPECIFICATION_VERSION.join('.'); - const specList = this.specVersion.split('.'); - if (!(specList.length === 2 || specList.length === 3) || - !specList.every((item) => isNumeric(item))) { - throw new error_1.ValueError('Failed to parse specVersion'); - } - // major version must match - if (specList[0] != SPECIFICATION_VERSION[0]) { - throw new error_1.ValueError('Unsupported specVersion'); - } - this.expires = options.expires || new Date().toISOString(); - this.version = options.version || 1; - this.unrecognizedFields = options.unrecognizedFields || {}; - } - equals(other) { - if (!(other instanceof Signed)) { - return false; - } - return (this.specVersion === other.specVersion && - this.expires === other.expires && - this.version === other.version && - util_1.default.isDeepStrictEqual(this.unrecognizedFields, other.unrecognizedFields)); - } - isExpired(referenceTime) { - if (!referenceTime) { - referenceTime = new Date(); - } - return referenceTime >= new Date(this.expires); - } - static commonFieldsFromJSON(data) { - const { spec_version, expires, version, ...rest } = data; - if (utils_1.guard.isDefined(spec_version) && !(typeof spec_version === 'string')) { - throw new TypeError('spec_version must be a string'); - } - if (utils_1.guard.isDefined(expires) && !(typeof expires === 'string')) { - throw new TypeError('expires must be a string'); - } - if (utils_1.guard.isDefined(version) && !(typeof version === 'number')) { - throw new TypeError('version must be a number'); - } - return { - specVersion: spec_version, - expires, - version, - unrecognizedFields: rest, - }; - } -} -exports.Signed = Signed; -function isNumeric(str) { - return !isNaN(Number(str)); -} diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/delegations.d.ts b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/delegations.d.ts deleted file mode 100644 index 357e9dfe..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/delegations.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Key } from './key'; -import { DelegatedRole, SuccinctRoles } from './role'; -import { JSONObject, JSONValue } from './utils'; -type DelegatedRoleMap = Record; -type KeyMap = Record; -interface DelegationsOptions { - keys: KeyMap; - roles?: DelegatedRoleMap; - succinctRoles?: SuccinctRoles; - unrecognizedFields?: Record; -} -/** - * A container object storing information about all delegations. - * - * Targets roles that are trusted to provide signed metadata files - * describing targets with designated pathnames and/or further delegations. - */ -export declare class Delegations { - readonly keys: KeyMap; - readonly roles?: DelegatedRoleMap; - readonly unrecognizedFields?: Record; - readonly succinctRoles?: SuccinctRoles; - constructor(options: DelegationsOptions); - equals(other: Delegations): boolean; - rolesForTarget(targetPath: string): Generator<{ - role: string; - terminating: boolean; - }>; - toJSON(): JSONObject; - static fromJSON(data: JSONObject): Delegations; -} -export {}; diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/delegations.js b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/delegations.js deleted file mode 100644 index 7165f1e2..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/delegations.js +++ /dev/null @@ -1,115 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Delegations = void 0; -const util_1 = __importDefault(require("util")); -const error_1 = require("./error"); -const key_1 = require("./key"); -const role_1 = require("./role"); -const utils_1 = require("./utils"); -/** - * A container object storing information about all delegations. - * - * Targets roles that are trusted to provide signed metadata files - * describing targets with designated pathnames and/or further delegations. - */ -class Delegations { - constructor(options) { - this.keys = options.keys; - this.unrecognizedFields = options.unrecognizedFields || {}; - if (options.roles) { - if (Object.keys(options.roles).some((roleName) => role_1.TOP_LEVEL_ROLE_NAMES.includes(roleName))) { - throw new error_1.ValueError('Delegated role name conflicts with top-level role name'); - } - } - this.succinctRoles = options.succinctRoles; - this.roles = options.roles; - } - equals(other) { - if (!(other instanceof Delegations)) { - return false; - } - return (util_1.default.isDeepStrictEqual(this.keys, other.keys) && - util_1.default.isDeepStrictEqual(this.roles, other.roles) && - util_1.default.isDeepStrictEqual(this.unrecognizedFields, other.unrecognizedFields) && - util_1.default.isDeepStrictEqual(this.succinctRoles, other.succinctRoles)); - } - *rolesForTarget(targetPath) { - if (this.roles) { - for (const role of Object.values(this.roles)) { - if (role.isDelegatedPath(targetPath)) { - yield { role: role.name, terminating: role.terminating }; - } - } - } - else if (this.succinctRoles) { - yield { - role: this.succinctRoles.getRoleForTarget(targetPath), - terminating: true, - }; - } - } - toJSON() { - const json = { - keys: keysToJSON(this.keys), - ...this.unrecognizedFields, - }; - if (this.roles) { - json.roles = rolesToJSON(this.roles); - } - else if (this.succinctRoles) { - json.succinct_roles = this.succinctRoles.toJSON(); - } - return json; - } - static fromJSON(data) { - const { keys, roles, succinct_roles, ...unrecognizedFields } = data; - let succinctRoles; - if (utils_1.guard.isObject(succinct_roles)) { - succinctRoles = role_1.SuccinctRoles.fromJSON(succinct_roles); - } - return new Delegations({ - keys: keysFromJSON(keys), - roles: rolesFromJSON(roles), - unrecognizedFields, - succinctRoles, - }); - } -} -exports.Delegations = Delegations; -function keysToJSON(keys) { - return Object.entries(keys).reduce((acc, [keyId, key]) => ({ - ...acc, - [keyId]: key.toJSON(), - }), {}); -} -function rolesToJSON(roles) { - return Object.values(roles).map((role) => role.toJSON()); -} -function keysFromJSON(data) { - if (!utils_1.guard.isObjectRecord(data)) { - throw new TypeError('keys is malformed'); - } - return Object.entries(data).reduce((acc, [keyID, keyData]) => ({ - ...acc, - [keyID]: key_1.Key.fromJSON(keyID, keyData), - }), {}); -} -function rolesFromJSON(data) { - let roleMap; - if (utils_1.guard.isDefined(data)) { - if (!utils_1.guard.isObjectArray(data)) { - throw new TypeError('roles is malformed'); - } - roleMap = data.reduce((acc, role) => { - const delegatedRole = role_1.DelegatedRole.fromJSON(role); - return { - ...acc, - [delegatedRole.name]: delegatedRole, - }; - }, {}); - } - return roleMap; -} diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/error.d.ts b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/error.d.ts deleted file mode 100644 index e03d05a3..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/error.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export declare class ValueError extends Error { -} -export declare class RepositoryError extends Error { -} -export declare class UnsignedMetadataError extends RepositoryError { -} -export declare class LengthOrHashMismatchError extends RepositoryError { -} -export declare class CryptoError extends Error { -} -export declare class UnsupportedAlgorithmError extends CryptoError { -} diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/error.js b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/error.js deleted file mode 100644 index ba806987..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/error.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UnsupportedAlgorithmError = exports.CryptoError = exports.LengthOrHashMismatchError = exports.UnsignedMetadataError = exports.RepositoryError = exports.ValueError = void 0; -// An error about insufficient values -class ValueError extends Error { -} -exports.ValueError = ValueError; -// An error with a repository's state, such as a missing file. -// It covers all exceptions that come from the repository side when -// looking from the perspective of users of metadata API or ngclient. -class RepositoryError extends Error { -} -exports.RepositoryError = RepositoryError; -// An error about metadata object with insufficient threshold of signatures. -class UnsignedMetadataError extends RepositoryError { -} -exports.UnsignedMetadataError = UnsignedMetadataError; -// An error while checking the length and hash values of an object. -class LengthOrHashMismatchError extends RepositoryError { -} -exports.LengthOrHashMismatchError = LengthOrHashMismatchError; -class CryptoError extends Error { -} -exports.CryptoError = CryptoError; -class UnsupportedAlgorithmError extends CryptoError { -} -exports.UnsupportedAlgorithmError = UnsupportedAlgorithmError; diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/file.d.ts b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/file.d.ts deleted file mode 100644 index 7abeb2bb..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/file.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/// -/// -import { Readable } from 'stream'; -import { JSONObject, JSONValue } from './utils'; -interface MetaFileOptions { - version: number; - length?: number; - hashes?: Record; - unrecognizedFields?: Record; -} -export declare class MetaFile { - readonly version: number; - readonly length?: number; - readonly hashes?: Record; - readonly unrecognizedFields?: Record; - constructor(opts: MetaFileOptions); - equals(other: MetaFile): boolean; - verify(data: Buffer): void; - toJSON(): JSONObject; - static fromJSON(data: JSONObject): MetaFile; -} -interface TargetFileOptions { - length: number; - path: string; - hashes: Record; - unrecognizedFields?: Record; -} -export declare class TargetFile { - readonly length: number; - readonly path: string; - readonly hashes: Record; - readonly unrecognizedFields: Record; - constructor(opts: TargetFileOptions); - get custom(): Record; - equals(other: TargetFile): boolean; - verify(stream: Readable): Promise; - toJSON(): JSONObject; - static fromJSON(path: string, data: JSONObject): TargetFile; -} -export {}; diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/file.js b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/file.js deleted file mode 100644 index b35fe595..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/file.js +++ /dev/null @@ -1,183 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TargetFile = exports.MetaFile = void 0; -const crypto_1 = __importDefault(require("crypto")); -const util_1 = __importDefault(require("util")); -const error_1 = require("./error"); -const utils_1 = require("./utils"); -// A container with information about a particular metadata file. -// -// This class is used for Timestamp and Snapshot metadata. -class MetaFile { - constructor(opts) { - if (opts.version <= 0) { - throw new error_1.ValueError('Metafile version must be at least 1'); - } - if (opts.length !== undefined) { - validateLength(opts.length); - } - this.version = opts.version; - this.length = opts.length; - this.hashes = opts.hashes; - this.unrecognizedFields = opts.unrecognizedFields || {}; - } - equals(other) { - if (!(other instanceof MetaFile)) { - return false; - } - return (this.version === other.version && - this.length === other.length && - util_1.default.isDeepStrictEqual(this.hashes, other.hashes) && - util_1.default.isDeepStrictEqual(this.unrecognizedFields, other.unrecognizedFields)); - } - verify(data) { - // Verifies that the given data matches the expected length. - if (this.length !== undefined) { - if (data.length !== this.length) { - throw new error_1.LengthOrHashMismatchError(`Expected length ${this.length} but got ${data.length}`); - } - } - // Verifies that the given data matches the supplied hashes. - if (this.hashes) { - Object.entries(this.hashes).forEach(([key, value]) => { - let hash; - try { - hash = crypto_1.default.createHash(key); - } - catch (e) { - throw new error_1.LengthOrHashMismatchError(`Hash algorithm ${key} not supported`); - } - const observedHash = hash.update(data).digest('hex'); - if (observedHash !== value) { - throw new error_1.LengthOrHashMismatchError(`Expected hash ${value} but got ${observedHash}`); - } - }); - } - } - toJSON() { - const json = { - version: this.version, - ...this.unrecognizedFields, - }; - if (this.length !== undefined) { - json.length = this.length; - } - if (this.hashes) { - json.hashes = this.hashes; - } - return json; - } - static fromJSON(data) { - const { version, length, hashes, ...rest } = data; - if (typeof version !== 'number') { - throw new TypeError('version must be a number'); - } - if (utils_1.guard.isDefined(length) && typeof length !== 'number') { - throw new TypeError('length must be a number'); - } - if (utils_1.guard.isDefined(hashes) && !utils_1.guard.isStringRecord(hashes)) { - throw new TypeError('hashes must be string keys and values'); - } - return new MetaFile({ - version, - length, - hashes, - unrecognizedFields: rest, - }); - } -} -exports.MetaFile = MetaFile; -// Container for info about a particular target file. -// -// This class is used for Target metadata. -class TargetFile { - constructor(opts) { - validateLength(opts.length); - this.length = opts.length; - this.path = opts.path; - this.hashes = opts.hashes; - this.unrecognizedFields = opts.unrecognizedFields || {}; - } - get custom() { - const custom = this.unrecognizedFields['custom']; - if (!custom || Array.isArray(custom) || !(typeof custom === 'object')) { - return {}; - } - return custom; - } - equals(other) { - if (!(other instanceof TargetFile)) { - return false; - } - return (this.length === other.length && - this.path === other.path && - util_1.default.isDeepStrictEqual(this.hashes, other.hashes) && - util_1.default.isDeepStrictEqual(this.unrecognizedFields, other.unrecognizedFields)); - } - async verify(stream) { - let observedLength = 0; - // Create a digest for each hash algorithm - const digests = Object.keys(this.hashes).reduce((acc, key) => { - try { - acc[key] = crypto_1.default.createHash(key); - } - catch (e) { - throw new error_1.LengthOrHashMismatchError(`Hash algorithm ${key} not supported`); - } - return acc; - }, {}); - // Read stream chunk by chunk - for await (const chunk of stream) { - // Keep running tally of stream length - observedLength += chunk.length; - // Append chunk to each digest - Object.values(digests).forEach((digest) => { - digest.update(chunk); - }); - } - // Verify length matches expected value - if (observedLength !== this.length) { - throw new error_1.LengthOrHashMismatchError(`Expected length ${this.length} but got ${observedLength}`); - } - // Verify each digest matches expected value - Object.entries(digests).forEach(([key, value]) => { - const expected = this.hashes[key]; - const actual = value.digest('hex'); - if (actual !== expected) { - throw new error_1.LengthOrHashMismatchError(`Expected hash ${expected} but got ${actual}`); - } - }); - } - toJSON() { - return { - length: this.length, - hashes: this.hashes, - ...this.unrecognizedFields, - }; - } - static fromJSON(path, data) { - const { length, hashes, ...rest } = data; - if (typeof length !== 'number') { - throw new TypeError('length must be a number'); - } - if (!utils_1.guard.isStringRecord(hashes)) { - throw new TypeError('hashes must have string keys and values'); - } - return new TargetFile({ - length, - path, - hashes, - unrecognizedFields: rest, - }); - } -} -exports.TargetFile = TargetFile; -// Check that supplied length if valid -function validateLength(length) { - if (length < 0) { - throw new error_1.ValueError('Length must be at least 0'); - } -} diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/index.d.ts b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/index.d.ts deleted file mode 100644 index f9768bea..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export { MetadataKind } from './base'; -export { ValueError } from './error'; -export { MetaFile, TargetFile } from './file'; -export { Key } from './key'; -export { Metadata } from './metadata'; -export { Root } from './root'; -export { Signature } from './signature'; -export { Snapshot } from './snapshot'; -export { Targets } from './targets'; -export { Timestamp } from './timestamp'; diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/index.js b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/index.js deleted file mode 100644 index a4dc7836..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/index.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Timestamp = exports.Targets = exports.Snapshot = exports.Signature = exports.Root = exports.Metadata = exports.Key = exports.TargetFile = exports.MetaFile = exports.ValueError = exports.MetadataKind = void 0; -var base_1 = require("./base"); -Object.defineProperty(exports, "MetadataKind", { enumerable: true, get: function () { return base_1.MetadataKind; } }); -var error_1 = require("./error"); -Object.defineProperty(exports, "ValueError", { enumerable: true, get: function () { return error_1.ValueError; } }); -var file_1 = require("./file"); -Object.defineProperty(exports, "MetaFile", { enumerable: true, get: function () { return file_1.MetaFile; } }); -Object.defineProperty(exports, "TargetFile", { enumerable: true, get: function () { return file_1.TargetFile; } }); -var key_1 = require("./key"); -Object.defineProperty(exports, "Key", { enumerable: true, get: function () { return key_1.Key; } }); -var metadata_1 = require("./metadata"); -Object.defineProperty(exports, "Metadata", { enumerable: true, get: function () { return metadata_1.Metadata; } }); -var root_1 = require("./root"); -Object.defineProperty(exports, "Root", { enumerable: true, get: function () { return root_1.Root; } }); -var signature_1 = require("./signature"); -Object.defineProperty(exports, "Signature", { enumerable: true, get: function () { return signature_1.Signature; } }); -var snapshot_1 = require("./snapshot"); -Object.defineProperty(exports, "Snapshot", { enumerable: true, get: function () { return snapshot_1.Snapshot; } }); -var targets_1 = require("./targets"); -Object.defineProperty(exports, "Targets", { enumerable: true, get: function () { return targets_1.Targets; } }); -var timestamp_1 = require("./timestamp"); -Object.defineProperty(exports, "Timestamp", { enumerable: true, get: function () { return timestamp_1.Timestamp; } }); diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/key.d.ts b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/key.d.ts deleted file mode 100644 index 9f90b7ee..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/key.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Signable } from './base'; -import { JSONObject, JSONValue } from './utils'; -export interface KeyOptions { - keyID: string; - keyType: string; - scheme: string; - keyVal: Record; - unrecognizedFields?: Record; -} -export declare class Key { - readonly keyID: string; - readonly keyType: string; - readonly scheme: string; - readonly keyVal: Record; - readonly unrecognizedFields?: Record; - constructor(options: KeyOptions); - verifySignature(metadata: Signable): void; - equals(other: Key): boolean; - toJSON(): JSONObject; - static fromJSON(keyID: string, data: JSONObject): Key; -} diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/key.js b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/key.js deleted file mode 100644 index 5e55b09d..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/key.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Key = void 0; -const util_1 = __importDefault(require("util")); -const error_1 = require("./error"); -const utils_1 = require("./utils"); -const key_1 = require("./utils/key"); -// A container class representing the public portion of a Key. -class Key { - constructor(options) { - const { keyID, keyType, scheme, keyVal, unrecognizedFields } = options; - this.keyID = keyID; - this.keyType = keyType; - this.scheme = scheme; - this.keyVal = keyVal; - this.unrecognizedFields = unrecognizedFields || {}; - } - // Verifies the that the metadata.signatures contains a signature made with - // this key and is correctly signed. - verifySignature(metadata) { - const signature = metadata.signatures[this.keyID]; - if (!signature) - throw new error_1.UnsignedMetadataError('no signature for key found in metadata'); - if (!this.keyVal.public) - throw new error_1.UnsignedMetadataError('no public key found'); - const publicKey = (0, key_1.getPublicKey)({ - keyType: this.keyType, - scheme: this.scheme, - keyVal: this.keyVal.public, - }); - const signedData = metadata.signed.toJSON(); - try { - if (!utils_1.crypto.verifySignature(signedData, publicKey, signature.sig)) { - throw new error_1.UnsignedMetadataError(`failed to verify ${this.keyID} signature`); - } - } - catch (error) { - if (error instanceof error_1.UnsignedMetadataError) { - throw error; - } - throw new error_1.UnsignedMetadataError(`failed to verify ${this.keyID} signature`); - } - } - equals(other) { - if (!(other instanceof Key)) { - return false; - } - return (this.keyID === other.keyID && - this.keyType === other.keyType && - this.scheme === other.scheme && - util_1.default.isDeepStrictEqual(this.keyVal, other.keyVal) && - util_1.default.isDeepStrictEqual(this.unrecognizedFields, other.unrecognizedFields)); - } - toJSON() { - return { - keytype: this.keyType, - scheme: this.scheme, - keyval: this.keyVal, - ...this.unrecognizedFields, - }; - } - static fromJSON(keyID, data) { - const { keytype, scheme, keyval, ...rest } = data; - if (typeof keytype !== 'string') { - throw new TypeError('keytype must be a string'); - } - if (typeof scheme !== 'string') { - throw new TypeError('scheme must be a string'); - } - if (!utils_1.guard.isStringRecord(keyval)) { - throw new TypeError('keyval must be a string record'); - } - return new Key({ - keyID, - keyType: keytype, - scheme, - keyVal: keyval, - unrecognizedFields: rest, - }); - } -} -exports.Key = Key; diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/metadata.d.ts b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/metadata.d.ts deleted file mode 100644 index 55c9294a..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/metadata.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -/// -import { MetadataKind, Signable } from './base'; -import { Root } from './root'; -import { Signature } from './signature'; -import { Snapshot } from './snapshot'; -import { Targets } from './targets'; -import { Timestamp } from './timestamp'; -import { JSONObject, JSONValue } from './utils'; -type MetadataType = Root | Timestamp | Snapshot | Targets; -/*** - * A container for signed TUF metadata. - * - * Provides methods to convert to and from json, read and write to and - * from JSON and to create and verify metadata signatures. - * - * ``Metadata[T]`` is a generic container type where T can be any one type of - * [``Root``, ``Timestamp``, ``Snapshot``, ``Targets``]. The purpose of this - * is to allow static type checking of the signed attribute in code using - * Metadata:: - * - * root_md = Metadata[Root].fromJSON("root.json") - * # root_md type is now Metadata[Root]. This means signed and its - * # attributes like consistent_snapshot are now statically typed and the - * # types can be verified by static type checkers and shown by IDEs - * - * Using a type constraint is not required but not doing so means T is not a - * specific type so static typing cannot happen. Note that the type constraint - * ``[Root]`` is not validated at runtime (as pure annotations are not available - * then). - * - * Apart from ``expires`` all of the arguments to the inner constructors have - * reasonable default values for new metadata. - */ -export declare class Metadata implements Signable { - signed: T; - signatures: Record; - unrecognizedFields: Record; - constructor(signed: T, signatures?: Record, unrecognizedFields?: Record); - sign(signer: (data: Buffer) => Signature, append?: boolean): void; - verifyDelegate(delegatedRole: string, delegatedMetadata: Metadata): void; - equals(other: T): boolean; - toJSON(): JSONObject; - static fromJSON(type: MetadataKind.Root, data: JSONObject): Metadata; - static fromJSON(type: MetadataKind.Timestamp, data: JSONObject): Metadata; - static fromJSON(type: MetadataKind.Snapshot, data: JSONObject): Metadata; - static fromJSON(type: MetadataKind.Targets, data: JSONObject): Metadata; -} -export {}; diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/metadata.js b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/metadata.js deleted file mode 100644 index 9668b6f1..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/metadata.js +++ /dev/null @@ -1,158 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Metadata = void 0; -const canonical_json_1 = require("@tufjs/canonical-json"); -const util_1 = __importDefault(require("util")); -const base_1 = require("./base"); -const error_1 = require("./error"); -const root_1 = require("./root"); -const signature_1 = require("./signature"); -const snapshot_1 = require("./snapshot"); -const targets_1 = require("./targets"); -const timestamp_1 = require("./timestamp"); -const utils_1 = require("./utils"); -/*** - * A container for signed TUF metadata. - * - * Provides methods to convert to and from json, read and write to and - * from JSON and to create and verify metadata signatures. - * - * ``Metadata[T]`` is a generic container type where T can be any one type of - * [``Root``, ``Timestamp``, ``Snapshot``, ``Targets``]. The purpose of this - * is to allow static type checking of the signed attribute in code using - * Metadata:: - * - * root_md = Metadata[Root].fromJSON("root.json") - * # root_md type is now Metadata[Root]. This means signed and its - * # attributes like consistent_snapshot are now statically typed and the - * # types can be verified by static type checkers and shown by IDEs - * - * Using a type constraint is not required but not doing so means T is not a - * specific type so static typing cannot happen. Note that the type constraint - * ``[Root]`` is not validated at runtime (as pure annotations are not available - * then). - * - * Apart from ``expires`` all of the arguments to the inner constructors have - * reasonable default values for new metadata. - */ -class Metadata { - constructor(signed, signatures, unrecognizedFields) { - this.signed = signed; - this.signatures = signatures || {}; - this.unrecognizedFields = unrecognizedFields || {}; - } - sign(signer, append = true) { - const bytes = Buffer.from((0, canonical_json_1.canonicalize)(this.signed.toJSON())); - const signature = signer(bytes); - if (!append) { - this.signatures = {}; - } - this.signatures[signature.keyID] = signature; - } - verifyDelegate(delegatedRole, delegatedMetadata) { - let role; - let keys = {}; - switch (this.signed.type) { - case base_1.MetadataKind.Root: - keys = this.signed.keys; - role = this.signed.roles[delegatedRole]; - break; - case base_1.MetadataKind.Targets: - if (!this.signed.delegations) { - throw new error_1.ValueError(`No delegations found for ${delegatedRole}`); - } - keys = this.signed.delegations.keys; - if (this.signed.delegations.roles) { - role = this.signed.delegations.roles[delegatedRole]; - } - else if (this.signed.delegations.succinctRoles) { - if (this.signed.delegations.succinctRoles.isDelegatedRole(delegatedRole)) { - role = this.signed.delegations.succinctRoles; - } - } - break; - default: - throw new TypeError('invalid metadata type'); - } - if (!role) { - throw new error_1.ValueError(`no delegation found for ${delegatedRole}`); - } - const signingKeys = new Set(); - role.keyIDs.forEach((keyID) => { - const key = keys[keyID]; - // If we dont' have the key, continue checking other keys - if (!key) { - return; - } - try { - key.verifySignature(delegatedMetadata); - signingKeys.add(key.keyID); - } - catch (error) { - // continue - } - }); - if (signingKeys.size < role.threshold) { - throw new error_1.UnsignedMetadataError(`${delegatedRole} was signed by ${signingKeys.size}/${role.threshold} keys`); - } - } - equals(other) { - if (!(other instanceof Metadata)) { - return false; - } - return (this.signed.equals(other.signed) && - util_1.default.isDeepStrictEqual(this.signatures, other.signatures) && - util_1.default.isDeepStrictEqual(this.unrecognizedFields, other.unrecognizedFields)); - } - toJSON() { - const signatures = Object.values(this.signatures).map((signature) => { - return signature.toJSON(); - }); - return { - signatures, - signed: this.signed.toJSON(), - ...this.unrecognizedFields, - }; - } - static fromJSON(type, data) { - const { signed, signatures, ...rest } = data; - if (!utils_1.guard.isDefined(signed) || !utils_1.guard.isObject(signed)) { - throw new TypeError('signed is not defined'); - } - if (type !== signed._type) { - throw new error_1.ValueError(`expected '${type}', got ${signed['_type']}`); - } - let signedObj; - switch (type) { - case base_1.MetadataKind.Root: - signedObj = root_1.Root.fromJSON(signed); - break; - case base_1.MetadataKind.Timestamp: - signedObj = timestamp_1.Timestamp.fromJSON(signed); - break; - case base_1.MetadataKind.Snapshot: - signedObj = snapshot_1.Snapshot.fromJSON(signed); - break; - case base_1.MetadataKind.Targets: - signedObj = targets_1.Targets.fromJSON(signed); - break; - default: - throw new TypeError('invalid metadata type'); - } - const sigMap = signaturesFromJSON(signatures); - return new Metadata(signedObj, sigMap, rest); - } -} -exports.Metadata = Metadata; -function signaturesFromJSON(data) { - if (!utils_1.guard.isObjectArray(data)) { - throw new TypeError('signatures is not an array'); - } - return data.reduce((acc, sigData) => { - const signature = signature_1.Signature.fromJSON(sigData); - return { ...acc, [signature.keyID]: signature }; - }, {}); -} diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/role.d.ts b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/role.d.ts deleted file mode 100644 index b3a6efae..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/role.d.ts +++ /dev/null @@ -1,103 +0,0 @@ -import { JSONObject, JSONValue } from './utils'; -export declare const TOP_LEVEL_ROLE_NAMES: string[]; -export interface RoleOptions { - keyIDs: string[]; - threshold: number; - unrecognizedFields?: Record; -} -/** - * Container that defines which keys are required to sign roles metadata. - * - * Role defines how many keys are required to successfully sign the roles - * metadata, and which keys are accepted. - */ -export declare class Role { - readonly keyIDs: string[]; - readonly threshold: number; - readonly unrecognizedFields?: Record; - constructor(options: RoleOptions); - equals(other: Role): boolean; - toJSON(): JSONObject; - static fromJSON(data: JSONObject): Role; -} -interface DelegatedRoleOptions extends RoleOptions { - name: string; - terminating: boolean; - paths?: string[]; - pathHashPrefixes?: string[]; -} -/** - * A container with information about a delegated role. - * - * A delegation can happen in two ways: - * - ``paths`` is set: delegates targets matching any path pattern in ``paths`` - * - ``pathHashPrefixes`` is set: delegates targets whose target path hash - * starts with any of the prefixes in ``pathHashPrefixes`` - * - * ``paths`` and ``pathHashPrefixes`` are mutually exclusive: both cannot be - * set, at least one of them must be set. - */ -export declare class DelegatedRole extends Role { - readonly name: string; - readonly terminating: boolean; - readonly paths?: string[]; - readonly pathHashPrefixes?: string[]; - constructor(opts: DelegatedRoleOptions); - equals(other: DelegatedRole): boolean; - isDelegatedPath(targetFilepath: string): boolean; - toJSON(): JSONObject; - static fromJSON(data: JSONObject): DelegatedRole; -} -interface SuccinctRolesOption extends RoleOptions { - bitLength: number; - namePrefix: string; -} -/** - * Succinctly defines a hash bin delegation graph. - * - * A ``SuccinctRoles`` object describes a delegation graph that covers all - * targets, distributing them uniformly over the delegated roles (i.e. bins) - * in the graph. - * - * The total number of bins is 2 to the power of the passed ``bit_length``. - * - * Bin names are the concatenation of the passed ``name_prefix`` and a - * zero-padded hex representation of the bin index separated by a hyphen. - * - * The passed ``keyids`` and ``threshold`` is used for each bin, and each bin - * is 'terminating'. - * - * For details: https://github.com/theupdateframework/taps/blob/master/tap15.md - */ -export declare class SuccinctRoles extends Role { - readonly bitLength: number; - readonly namePrefix: string; - readonly numberOfBins: number; - readonly suffixLen: number; - constructor(opts: SuccinctRolesOption); - equals(other: SuccinctRoles): boolean; - /*** - * Calculates the name of the delegated role responsible for 'target_filepath'. - * - * The target at path ''target_filepath' is assigned to a bin by casting - * the left-most 'bit_length' of bits of the file path hash digest to - * int, using it as bin index between 0 and '2**bit_length - 1'. - * - * Args: - * target_filepath: URL path to a target file, relative to a base - * targets URL. - */ - getRoleForTarget(targetFilepath: string): string; - getRoles(): Generator; - /*** - * Determines whether the given ``role_name`` is in one of - * the delegated roles that ``SuccinctRoles`` represents. - * - * Args: - * role_name: The name of the role to check against. - */ - isDelegatedRole(roleName: string): boolean; - toJSON(): JSONObject; - static fromJSON(data: JSONObject): SuccinctRoles; -} -export {}; diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/role.js b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/role.js deleted file mode 100644 index f7ddbc6f..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/role.js +++ /dev/null @@ -1,299 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SuccinctRoles = exports.DelegatedRole = exports.Role = exports.TOP_LEVEL_ROLE_NAMES = void 0; -const crypto_1 = __importDefault(require("crypto")); -const minimatch_1 = require("minimatch"); -const util_1 = __importDefault(require("util")); -const error_1 = require("./error"); -const utils_1 = require("./utils"); -exports.TOP_LEVEL_ROLE_NAMES = [ - 'root', - 'targets', - 'snapshot', - 'timestamp', -]; -/** - * Container that defines which keys are required to sign roles metadata. - * - * Role defines how many keys are required to successfully sign the roles - * metadata, and which keys are accepted. - */ -class Role { - constructor(options) { - const { keyIDs, threshold, unrecognizedFields } = options; - if (hasDuplicates(keyIDs)) { - throw new error_1.ValueError('duplicate key IDs found'); - } - if (threshold < 1) { - throw new error_1.ValueError('threshold must be at least 1'); - } - this.keyIDs = keyIDs; - this.threshold = threshold; - this.unrecognizedFields = unrecognizedFields || {}; - } - equals(other) { - if (!(other instanceof Role)) { - return false; - } - return (this.threshold === other.threshold && - util_1.default.isDeepStrictEqual(this.keyIDs, other.keyIDs) && - util_1.default.isDeepStrictEqual(this.unrecognizedFields, other.unrecognizedFields)); - } - toJSON() { - return { - keyids: this.keyIDs, - threshold: this.threshold, - ...this.unrecognizedFields, - }; - } - static fromJSON(data) { - const { keyids, threshold, ...rest } = data; - if (!utils_1.guard.isStringArray(keyids)) { - throw new TypeError('keyids must be an array'); - } - if (typeof threshold !== 'number') { - throw new TypeError('threshold must be a number'); - } - return new Role({ - keyIDs: keyids, - threshold, - unrecognizedFields: rest, - }); - } -} -exports.Role = Role; -function hasDuplicates(array) { - return new Set(array).size !== array.length; -} -/** - * A container with information about a delegated role. - * - * A delegation can happen in two ways: - * - ``paths`` is set: delegates targets matching any path pattern in ``paths`` - * - ``pathHashPrefixes`` is set: delegates targets whose target path hash - * starts with any of the prefixes in ``pathHashPrefixes`` - * - * ``paths`` and ``pathHashPrefixes`` are mutually exclusive: both cannot be - * set, at least one of them must be set. - */ -class DelegatedRole extends Role { - constructor(opts) { - super(opts); - const { name, terminating, paths, pathHashPrefixes } = opts; - this.name = name; - this.terminating = terminating; - if (opts.paths && opts.pathHashPrefixes) { - throw new error_1.ValueError('paths and pathHashPrefixes are mutually exclusive'); - } - this.paths = paths; - this.pathHashPrefixes = pathHashPrefixes; - } - equals(other) { - if (!(other instanceof DelegatedRole)) { - return false; - } - return (super.equals(other) && - this.name === other.name && - this.terminating === other.terminating && - util_1.default.isDeepStrictEqual(this.paths, other.paths) && - util_1.default.isDeepStrictEqual(this.pathHashPrefixes, other.pathHashPrefixes)); - } - isDelegatedPath(targetFilepath) { - if (this.paths) { - return this.paths.some((pathPattern) => isTargetInPathPattern(targetFilepath, pathPattern)); - } - if (this.pathHashPrefixes) { - const hasher = crypto_1.default.createHash('sha256'); - const pathHash = hasher.update(targetFilepath).digest('hex'); - return this.pathHashPrefixes.some((pathHashPrefix) => pathHash.startsWith(pathHashPrefix)); - } - return false; - } - toJSON() { - const json = { - ...super.toJSON(), - name: this.name, - terminating: this.terminating, - }; - if (this.paths) { - json.paths = this.paths; - } - if (this.pathHashPrefixes) { - json.path_hash_prefixes = this.pathHashPrefixes; - } - return json; - } - static fromJSON(data) { - const { keyids, threshold, name, terminating, paths, path_hash_prefixes, ...rest } = data; - if (!utils_1.guard.isStringArray(keyids)) { - throw new TypeError('keyids must be an array of strings'); - } - if (typeof threshold !== 'number') { - throw new TypeError('threshold must be a number'); - } - if (typeof name !== 'string') { - throw new TypeError('name must be a string'); - } - if (typeof terminating !== 'boolean') { - throw new TypeError('terminating must be a boolean'); - } - if (utils_1.guard.isDefined(paths) && !utils_1.guard.isStringArray(paths)) { - throw new TypeError('paths must be an array of strings'); - } - if (utils_1.guard.isDefined(path_hash_prefixes) && - !utils_1.guard.isStringArray(path_hash_prefixes)) { - throw new TypeError('path_hash_prefixes must be an array of strings'); - } - return new DelegatedRole({ - keyIDs: keyids, - threshold, - name, - terminating, - paths, - pathHashPrefixes: path_hash_prefixes, - unrecognizedFields: rest, - }); - } -} -exports.DelegatedRole = DelegatedRole; -// JS version of Ruby's Array#zip -const zip = (a, b) => a.map((k, i) => [k, b[i]]); -function isTargetInPathPattern(target, pattern) { - const targetParts = target.split('/'); - const patternParts = pattern.split('/'); - if (patternParts.length != targetParts.length) { - return false; - } - return zip(targetParts, patternParts).every(([targetPart, patternPart]) => (0, minimatch_1.minimatch)(targetPart, patternPart)); -} -/** - * Succinctly defines a hash bin delegation graph. - * - * A ``SuccinctRoles`` object describes a delegation graph that covers all - * targets, distributing them uniformly over the delegated roles (i.e. bins) - * in the graph. - * - * The total number of bins is 2 to the power of the passed ``bit_length``. - * - * Bin names are the concatenation of the passed ``name_prefix`` and a - * zero-padded hex representation of the bin index separated by a hyphen. - * - * The passed ``keyids`` and ``threshold`` is used for each bin, and each bin - * is 'terminating'. - * - * For details: https://github.com/theupdateframework/taps/blob/master/tap15.md - */ -class SuccinctRoles extends Role { - constructor(opts) { - super(opts); - const { bitLength, namePrefix } = opts; - if (bitLength <= 0 || bitLength > 32) { - throw new error_1.ValueError('bitLength must be between 1 and 32'); - } - this.bitLength = bitLength; - this.namePrefix = namePrefix; - // Calculate the suffix_len value based on the total number of bins in - // hex. If bit_length = 10 then number_of_bins = 1024 or bin names will - // have a suffix between "000" and "3ff" in hex and suffix_len will be 3 - // meaning the third bin will have a suffix of "003". - this.numberOfBins = Math.pow(2, bitLength); - // suffix_len is calculated based on "number_of_bins - 1" as the name - // of the last bin contains the number "number_of_bins -1" as a suffix. - this.suffixLen = (this.numberOfBins - 1).toString(16).length; - } - equals(other) { - if (!(other instanceof SuccinctRoles)) { - return false; - } - return (super.equals(other) && - this.bitLength === other.bitLength && - this.namePrefix === other.namePrefix); - } - /*** - * Calculates the name of the delegated role responsible for 'target_filepath'. - * - * The target at path ''target_filepath' is assigned to a bin by casting - * the left-most 'bit_length' of bits of the file path hash digest to - * int, using it as bin index between 0 and '2**bit_length - 1'. - * - * Args: - * target_filepath: URL path to a target file, relative to a base - * targets URL. - */ - getRoleForTarget(targetFilepath) { - const hasher = crypto_1.default.createHash('sha256'); - const hasherBuffer = hasher.update(targetFilepath).digest(); - // can't ever need more than 4 bytes (32 bits). - const hashBytes = hasherBuffer.subarray(0, 4); - // Right shift hash bytes, so that we only have the leftmost - // bit_length bits that we care about. - const shiftValue = 32 - this.bitLength; - const binNumber = hashBytes.readUInt32BE() >>> shiftValue; - // Add zero padding if necessary and cast to hex the suffix. - const suffix = binNumber.toString(16).padStart(this.suffixLen, '0'); - return `${this.namePrefix}-${suffix}`; - } - *getRoles() { - for (let i = 0; i < this.numberOfBins; i++) { - const suffix = i.toString(16).padStart(this.suffixLen, '0'); - yield `${this.namePrefix}-${suffix}`; - } - } - /*** - * Determines whether the given ``role_name`` is in one of - * the delegated roles that ``SuccinctRoles`` represents. - * - * Args: - * role_name: The name of the role to check against. - */ - isDelegatedRole(roleName) { - const desiredPrefix = this.namePrefix + '-'; - if (!roleName.startsWith(desiredPrefix)) { - return false; - } - const suffix = roleName.slice(desiredPrefix.length, roleName.length); - if (suffix.length != this.suffixLen) { - return false; - } - // make sure the suffix is a hex string - if (!suffix.match(/^[0-9a-fA-F]+$/)) { - return false; - } - const num = parseInt(suffix, 16); - return 0 <= num && num < this.numberOfBins; - } - toJSON() { - const json = { - ...super.toJSON(), - bit_length: this.bitLength, - name_prefix: this.namePrefix, - }; - return json; - } - static fromJSON(data) { - const { keyids, threshold, bit_length, name_prefix, ...rest } = data; - if (!utils_1.guard.isStringArray(keyids)) { - throw new TypeError('keyids must be an array of strings'); - } - if (typeof threshold !== 'number') { - throw new TypeError('threshold must be a number'); - } - if (typeof bit_length !== 'number') { - throw new TypeError('bit_length must be a number'); - } - if (typeof name_prefix !== 'string') { - throw new TypeError('name_prefix must be a string'); - } - return new SuccinctRoles({ - keyIDs: keyids, - threshold, - bitLength: bit_length, - namePrefix: name_prefix, - unrecognizedFields: rest, - }); - } -} -exports.SuccinctRoles = SuccinctRoles; diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/root.d.ts b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/root.d.ts deleted file mode 100644 index eb5eb8de..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/root.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { MetadataKind, Signed, SignedOptions } from './base'; -import { Key } from './key'; -import { Role } from './role'; -import { JSONObject } from './utils'; -type KeyMap = Record; -type RoleMap = Record; -export interface RootOptions extends SignedOptions { - keys?: Record; - roles?: Record; - consistentSnapshot?: boolean; -} -/** - * A container for the signed part of root metadata. - * - * The top-level role and metadata file signed by the root keys. - * This role specifies trusted keys for all other top-level roles, which may further delegate trust. - */ -export declare class Root extends Signed { - readonly type = MetadataKind.Root; - readonly keys: KeyMap; - readonly roles: RoleMap; - readonly consistentSnapshot: boolean; - constructor(options: RootOptions); - addKey(key: Key, role: string): void; - equals(other: Root): boolean; - toJSON(): JSONObject; - static fromJSON(data: JSONObject): Root; -} -export {}; diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/root.js b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/root.js deleted file mode 100644 index 36d0ef0f..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/root.js +++ /dev/null @@ -1,116 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Root = void 0; -const util_1 = __importDefault(require("util")); -const base_1 = require("./base"); -const error_1 = require("./error"); -const key_1 = require("./key"); -const role_1 = require("./role"); -const utils_1 = require("./utils"); -/** - * A container for the signed part of root metadata. - * - * The top-level role and metadata file signed by the root keys. - * This role specifies trusted keys for all other top-level roles, which may further delegate trust. - */ -class Root extends base_1.Signed { - constructor(options) { - super(options); - this.type = base_1.MetadataKind.Root; - this.keys = options.keys || {}; - this.consistentSnapshot = options.consistentSnapshot ?? true; - if (!options.roles) { - this.roles = role_1.TOP_LEVEL_ROLE_NAMES.reduce((acc, role) => ({ - ...acc, - [role]: new role_1.Role({ keyIDs: [], threshold: 1 }), - }), {}); - } - else { - const roleNames = new Set(Object.keys(options.roles)); - if (!role_1.TOP_LEVEL_ROLE_NAMES.every((role) => roleNames.has(role))) { - throw new error_1.ValueError('missing top-level role'); - } - this.roles = options.roles; - } - } - addKey(key, role) { - if (!this.roles[role]) { - throw new error_1.ValueError(`role ${role} does not exist`); - } - if (!this.roles[role].keyIDs.includes(key.keyID)) { - this.roles[role].keyIDs.push(key.keyID); - } - this.keys[key.keyID] = key; - } - equals(other) { - if (!(other instanceof Root)) { - return false; - } - return (super.equals(other) && - this.consistentSnapshot === other.consistentSnapshot && - util_1.default.isDeepStrictEqual(this.keys, other.keys) && - util_1.default.isDeepStrictEqual(this.roles, other.roles)); - } - toJSON() { - return { - _type: this.type, - spec_version: this.specVersion, - version: this.version, - expires: this.expires, - keys: keysToJSON(this.keys), - roles: rolesToJSON(this.roles), - consistent_snapshot: this.consistentSnapshot, - ...this.unrecognizedFields, - }; - } - static fromJSON(data) { - const { unrecognizedFields, ...commonFields } = base_1.Signed.commonFieldsFromJSON(data); - const { keys, roles, consistent_snapshot, ...rest } = unrecognizedFields; - if (typeof consistent_snapshot !== 'boolean') { - throw new TypeError('consistent_snapshot must be a boolean'); - } - return new Root({ - ...commonFields, - keys: keysFromJSON(keys), - roles: rolesFromJSON(roles), - consistentSnapshot: consistent_snapshot, - unrecognizedFields: rest, - }); - } -} -exports.Root = Root; -function keysToJSON(keys) { - return Object.entries(keys).reduce((acc, [keyID, key]) => ({ ...acc, [keyID]: key.toJSON() }), {}); -} -function rolesToJSON(roles) { - return Object.entries(roles).reduce((acc, [roleName, role]) => ({ ...acc, [roleName]: role.toJSON() }), {}); -} -function keysFromJSON(data) { - let keys; - if (utils_1.guard.isDefined(data)) { - if (!utils_1.guard.isObjectRecord(data)) { - throw new TypeError('keys must be an object'); - } - keys = Object.entries(data).reduce((acc, [keyID, keyData]) => ({ - ...acc, - [keyID]: key_1.Key.fromJSON(keyID, keyData), - }), {}); - } - return keys; -} -function rolesFromJSON(data) { - let roles; - if (utils_1.guard.isDefined(data)) { - if (!utils_1.guard.isObjectRecord(data)) { - throw new TypeError('roles must be an object'); - } - roles = Object.entries(data).reduce((acc, [roleName, roleData]) => ({ - ...acc, - [roleName]: role_1.Role.fromJSON(roleData), - }), {}); - } - return roles; -} diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/signature.d.ts b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/signature.d.ts deleted file mode 100644 index dbeabbef..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/signature.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { JSONObject } from './utils'; -export interface SignatureOptions { - keyID: string; - sig: string; -} -/** - * A container class containing information about a signature. - * - * Contains a signature and the keyid uniquely identifying the key used - * to generate the signature. - * - * Provide a `fromJSON` method to create a Signature from a JSON object. - */ -export declare class Signature { - readonly keyID: string; - readonly sig: string; - constructor(options: SignatureOptions); - toJSON(): JSONObject; - static fromJSON(data: JSONObject): Signature; -} diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/signature.js b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/signature.js deleted file mode 100644 index 33eb204e..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/signature.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Signature = void 0; -/** - * A container class containing information about a signature. - * - * Contains a signature and the keyid uniquely identifying the key used - * to generate the signature. - * - * Provide a `fromJSON` method to create a Signature from a JSON object. - */ -class Signature { - constructor(options) { - const { keyID, sig } = options; - this.keyID = keyID; - this.sig = sig; - } - toJSON() { - return { - keyid: this.keyID, - sig: this.sig, - }; - } - static fromJSON(data) { - const { keyid, sig } = data; - if (typeof keyid !== 'string') { - throw new TypeError('keyid must be a string'); - } - if (typeof sig !== 'string') { - throw new TypeError('sig must be a string'); - } - return new Signature({ - keyID: keyid, - sig: sig, - }); - } -} -exports.Signature = Signature; diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/snapshot.d.ts b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/snapshot.d.ts deleted file mode 100644 index bcc780ae..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/snapshot.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { MetadataKind, Signed, SignedOptions } from './base'; -import { MetaFile } from './file'; -import { JSONObject } from './utils'; -type MetaFileMap = Record; -export interface SnapshotOptions extends SignedOptions { - meta?: MetaFileMap; -} -/** - * A container for the signed part of snapshot metadata. - * - * Snapshot contains information about all target Metadata files. - * A top-level role that specifies the latest versions of all targets metadata files, - * and hence the latest versions of all targets (including any dependencies between them) on the repository. - */ -export declare class Snapshot extends Signed { - readonly type = MetadataKind.Snapshot; - readonly meta: MetaFileMap; - constructor(opts: SnapshotOptions); - equals(other: Snapshot): boolean; - toJSON(): JSONObject; - static fromJSON(data: JSONObject): Snapshot; -} -export {}; diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/snapshot.js b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/snapshot.js deleted file mode 100644 index e90ea8e7..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/snapshot.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Snapshot = void 0; -const util_1 = __importDefault(require("util")); -const base_1 = require("./base"); -const file_1 = require("./file"); -const utils_1 = require("./utils"); -/** - * A container for the signed part of snapshot metadata. - * - * Snapshot contains information about all target Metadata files. - * A top-level role that specifies the latest versions of all targets metadata files, - * and hence the latest versions of all targets (including any dependencies between them) on the repository. - */ -class Snapshot extends base_1.Signed { - constructor(opts) { - super(opts); - this.type = base_1.MetadataKind.Snapshot; - this.meta = opts.meta || { 'targets.json': new file_1.MetaFile({ version: 1 }) }; - } - equals(other) { - if (!(other instanceof Snapshot)) { - return false; - } - return super.equals(other) && util_1.default.isDeepStrictEqual(this.meta, other.meta); - } - toJSON() { - return { - _type: this.type, - meta: metaToJSON(this.meta), - spec_version: this.specVersion, - version: this.version, - expires: this.expires, - ...this.unrecognizedFields, - }; - } - static fromJSON(data) { - const { unrecognizedFields, ...commonFields } = base_1.Signed.commonFieldsFromJSON(data); - const { meta, ...rest } = unrecognizedFields; - return new Snapshot({ - ...commonFields, - meta: metaFromJSON(meta), - unrecognizedFields: rest, - }); - } -} -exports.Snapshot = Snapshot; -function metaToJSON(meta) { - return Object.entries(meta).reduce((acc, [path, metadata]) => ({ - ...acc, - [path]: metadata.toJSON(), - }), {}); -} -function metaFromJSON(data) { - let meta; - if (utils_1.guard.isDefined(data)) { - if (!utils_1.guard.isObjectRecord(data)) { - throw new TypeError('meta field is malformed'); - } - else { - meta = Object.entries(data).reduce((acc, [path, metadata]) => ({ - ...acc, - [path]: file_1.MetaFile.fromJSON(metadata), - }), {}); - } - } - return meta; -} diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/targets.d.ts b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/targets.d.ts deleted file mode 100644 index 442f9e44..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/targets.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { MetadataKind, Signed, SignedOptions } from './base'; -import { Delegations } from './delegations'; -import { TargetFile } from './file'; -import { JSONObject } from './utils'; -type TargetFileMap = Record; -interface TargetsOptions extends SignedOptions { - targets?: TargetFileMap; - delegations?: Delegations; -} -export declare class Targets extends Signed { - readonly type = MetadataKind.Targets; - readonly targets: TargetFileMap; - readonly delegations?: Delegations; - constructor(options: TargetsOptions); - addTarget(target: TargetFile): void; - equals(other: Targets): boolean; - toJSON(): JSONObject; - static fromJSON(data: JSONObject): Targets; -} -export {}; diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/targets.js b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/targets.js deleted file mode 100644 index 54bd8f8c..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/targets.js +++ /dev/null @@ -1,92 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Targets = void 0; -const util_1 = __importDefault(require("util")); -const base_1 = require("./base"); -const delegations_1 = require("./delegations"); -const file_1 = require("./file"); -const utils_1 = require("./utils"); -// Container for the signed part of targets metadata. -// -// Targets contains verifying information about target files and also delegates -// responsible to other Targets roles. -class Targets extends base_1.Signed { - constructor(options) { - super(options); - this.type = base_1.MetadataKind.Targets; - this.targets = options.targets || {}; - this.delegations = options.delegations; - } - addTarget(target) { - this.targets[target.path] = target; - } - equals(other) { - if (!(other instanceof Targets)) { - return false; - } - return (super.equals(other) && - util_1.default.isDeepStrictEqual(this.targets, other.targets) && - util_1.default.isDeepStrictEqual(this.delegations, other.delegations)); - } - toJSON() { - const json = { - _type: this.type, - spec_version: this.specVersion, - version: this.version, - expires: this.expires, - targets: targetsToJSON(this.targets), - ...this.unrecognizedFields, - }; - if (this.delegations) { - json.delegations = this.delegations.toJSON(); - } - return json; - } - static fromJSON(data) { - const { unrecognizedFields, ...commonFields } = base_1.Signed.commonFieldsFromJSON(data); - const { targets, delegations, ...rest } = unrecognizedFields; - return new Targets({ - ...commonFields, - targets: targetsFromJSON(targets), - delegations: delegationsFromJSON(delegations), - unrecognizedFields: rest, - }); - } -} -exports.Targets = Targets; -function targetsToJSON(targets) { - return Object.entries(targets).reduce((acc, [path, target]) => ({ - ...acc, - [path]: target.toJSON(), - }), {}); -} -function targetsFromJSON(data) { - let targets; - if (utils_1.guard.isDefined(data)) { - if (!utils_1.guard.isObjectRecord(data)) { - throw new TypeError('targets must be an object'); - } - else { - targets = Object.entries(data).reduce((acc, [path, target]) => ({ - ...acc, - [path]: file_1.TargetFile.fromJSON(path, target), - }), {}); - } - } - return targets; -} -function delegationsFromJSON(data) { - let delegations; - if (utils_1.guard.isDefined(data)) { - if (!utils_1.guard.isObject(data)) { - throw new TypeError('delegations must be an object'); - } - else { - delegations = delegations_1.Delegations.fromJSON(data); - } - } - return delegations; -} diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/timestamp.d.ts b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/timestamp.d.ts deleted file mode 100644 index 9ab012b8..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/timestamp.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { MetadataKind, Signed, SignedOptions } from './base'; -import { MetaFile } from './file'; -import { JSONObject } from './utils'; -interface TimestampOptions extends SignedOptions { - snapshotMeta?: MetaFile; -} -/** - * A container for the signed part of timestamp metadata. - * - * A top-level that specifies the latest version of the snapshot role metadata file, - * and hence the latest versions of all metadata and targets on the repository. - */ -export declare class Timestamp extends Signed { - readonly type = MetadataKind.Timestamp; - readonly snapshotMeta: MetaFile; - constructor(options: TimestampOptions); - equals(other: Timestamp): boolean; - toJSON(): JSONObject; - static fromJSON(data: JSONObject): Timestamp; -} -export {}; diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/timestamp.js b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/timestamp.js deleted file mode 100644 index 9880c4c9..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/timestamp.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Timestamp = void 0; -const base_1 = require("./base"); -const file_1 = require("./file"); -const utils_1 = require("./utils"); -/** - * A container for the signed part of timestamp metadata. - * - * A top-level that specifies the latest version of the snapshot role metadata file, - * and hence the latest versions of all metadata and targets on the repository. - */ -class Timestamp extends base_1.Signed { - constructor(options) { - super(options); - this.type = base_1.MetadataKind.Timestamp; - this.snapshotMeta = options.snapshotMeta || new file_1.MetaFile({ version: 1 }); - } - equals(other) { - if (!(other instanceof Timestamp)) { - return false; - } - return super.equals(other) && this.snapshotMeta.equals(other.snapshotMeta); - } - toJSON() { - return { - _type: this.type, - spec_version: this.specVersion, - version: this.version, - expires: this.expires, - meta: { 'snapshot.json': this.snapshotMeta.toJSON() }, - ...this.unrecognizedFields, - }; - } - static fromJSON(data) { - const { unrecognizedFields, ...commonFields } = base_1.Signed.commonFieldsFromJSON(data); - const { meta, ...rest } = unrecognizedFields; - return new Timestamp({ - ...commonFields, - snapshotMeta: snapshotMetaFromJSON(meta), - unrecognizedFields: rest, - }); - } -} -exports.Timestamp = Timestamp; -function snapshotMetaFromJSON(data) { - let snapshotMeta; - if (utils_1.guard.isDefined(data)) { - const snapshotData = data['snapshot.json']; - if (!utils_1.guard.isDefined(snapshotData) || !utils_1.guard.isObject(snapshotData)) { - throw new TypeError('missing snapshot.json in meta'); - } - else { - snapshotMeta = file_1.MetaFile.fromJSON(snapshotData); - } - } - return snapshotMeta; -} diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/guard.d.ts b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/guard.d.ts deleted file mode 100644 index 60c80e16..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/guard.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { JSONObject } from './types'; -export declare function isDefined(val: T | undefined): val is T; -export declare function isObject(value: unknown): value is JSONObject; -export declare function isStringArray(value: unknown): value is string[]; -export declare function isObjectArray(value: unknown): value is JSONObject[]; -export declare function isStringRecord(value: unknown): value is Record; -export declare function isObjectRecord(value: unknown): value is Record; diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/guard.js b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/guard.js deleted file mode 100644 index efe55885..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/guard.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isObjectRecord = exports.isStringRecord = exports.isObjectArray = exports.isStringArray = exports.isObject = exports.isDefined = void 0; -function isDefined(val) { - return val !== undefined; -} -exports.isDefined = isDefined; -function isObject(value) { - return typeof value === 'object' && value !== null; -} -exports.isObject = isObject; -function isStringArray(value) { - return Array.isArray(value) && value.every((v) => typeof v === 'string'); -} -exports.isStringArray = isStringArray; -function isObjectArray(value) { - return Array.isArray(value) && value.every(isObject); -} -exports.isObjectArray = isObjectArray; -function isStringRecord(value) { - return (typeof value === 'object' && - value !== null && - Object.keys(value).every((k) => typeof k === 'string') && - Object.values(value).every((v) => typeof v === 'string')); -} -exports.isStringRecord = isStringRecord; -function isObjectRecord(value) { - return (typeof value === 'object' && - value !== null && - Object.keys(value).every((k) => typeof k === 'string') && - Object.values(value).every((v) => typeof v === 'object' && v !== null)); -} -exports.isObjectRecord = isObjectRecord; diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/index.d.ts b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/index.d.ts deleted file mode 100644 index 7dbbd1ee..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * as guard from './guard'; -export { JSONObject, JSONValue } from './types'; -export * as crypto from './verify'; diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/index.js b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/index.js deleted file mode 100644 index 872aae28..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/index.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.crypto = exports.guard = void 0; -exports.guard = __importStar(require("./guard")); -exports.crypto = __importStar(require("./verify")); diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/key.d.ts b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/key.d.ts deleted file mode 100644 index 7b631281..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/key.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// -import { VerifyKeyObjectInput } from 'crypto'; -interface KeyInfo { - keyType: string; - scheme: string; - keyVal: string; -} -export declare function getPublicKey(keyInfo: KeyInfo): VerifyKeyObjectInput; -export {}; diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/key.js b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/key.js deleted file mode 100644 index 1f795ba1..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/key.js +++ /dev/null @@ -1,143 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getPublicKey = void 0; -const crypto_1 = __importDefault(require("crypto")); -const error_1 = require("../error"); -const oid_1 = require("./oid"); -const ASN1_TAG_SEQUENCE = 0x30; -const ANS1_TAG_BIT_STRING = 0x03; -const NULL_BYTE = 0x00; -const OID_EDDSA = '1.3.101.112'; -const OID_EC_PUBLIC_KEY = '1.2.840.10045.2.1'; -const OID_EC_CURVE_P256V1 = '1.2.840.10045.3.1.7'; -const PEM_HEADER = '-----BEGIN PUBLIC KEY-----'; -function getPublicKey(keyInfo) { - switch (keyInfo.keyType) { - case 'rsa': - return getRSAPublicKey(keyInfo); - case 'ed25519': - return getED25519PublicKey(keyInfo); - case 'ecdsa': - case 'ecdsa-sha2-nistp256': - case 'ecdsa-sha2-nistp384': - return getECDCSAPublicKey(keyInfo); - default: - throw new error_1.UnsupportedAlgorithmError(`Unsupported key type: ${keyInfo.keyType}`); - } -} -exports.getPublicKey = getPublicKey; -function getRSAPublicKey(keyInfo) { - // Only support PEM-encoded RSA keys - if (!keyInfo.keyVal.startsWith(PEM_HEADER)) { - throw new error_1.CryptoError('Invalid key format'); - } - const key = crypto_1.default.createPublicKey(keyInfo.keyVal); - switch (keyInfo.scheme) { - case 'rsassa-pss-sha256': - return { - key: key, - padding: crypto_1.default.constants.RSA_PKCS1_PSS_PADDING, - }; - default: - throw new error_1.UnsupportedAlgorithmError(`Unsupported RSA scheme: ${keyInfo.scheme}`); - } -} -function getED25519PublicKey(keyInfo) { - let key; - // If key is already PEM-encoded we can just parse it - if (keyInfo.keyVal.startsWith(PEM_HEADER)) { - key = crypto_1.default.createPublicKey(keyInfo.keyVal); - } - else { - // If key is not PEM-encoded it had better be hex - if (!isHex(keyInfo.keyVal)) { - throw new error_1.CryptoError('Invalid key format'); - } - key = crypto_1.default.createPublicKey({ - key: ed25519.hexToDER(keyInfo.keyVal), - format: 'der', - type: 'spki', - }); - } - return { key }; -} -function getECDCSAPublicKey(keyInfo) { - let key; - // If key is already PEM-encoded we can just parse it - if (keyInfo.keyVal.startsWith(PEM_HEADER)) { - key = crypto_1.default.createPublicKey(keyInfo.keyVal); - } - else { - // If key is not PEM-encoded it had better be hex - if (!isHex(keyInfo.keyVal)) { - throw new error_1.CryptoError('Invalid key format'); - } - key = crypto_1.default.createPublicKey({ - key: ecdsa.hexToDER(keyInfo.keyVal), - format: 'der', - type: 'spki', - }); - } - return { key }; -} -const ed25519 = { - // Translates a hex key into a crypto KeyObject - // https://keygen.sh/blog/how-to-use-hexadecimal-ed25519-keys-in-node/ - hexToDER: (hex) => { - const key = Buffer.from(hex, 'hex'); - const oid = (0, oid_1.encodeOIDString)(OID_EDDSA); - // Create a byte sequence containing the OID and key - const elements = Buffer.concat([ - Buffer.concat([ - Buffer.from([ASN1_TAG_SEQUENCE]), - Buffer.from([oid.length]), - oid, - ]), - Buffer.concat([ - Buffer.from([ANS1_TAG_BIT_STRING]), - Buffer.from([key.length + 1]), - Buffer.from([NULL_BYTE]), - key, - ]), - ]); - // Wrap up by creating a sequence of elements - const der = Buffer.concat([ - Buffer.from([ASN1_TAG_SEQUENCE]), - Buffer.from([elements.length]), - elements, - ]); - return der; - }, -}; -const ecdsa = { - hexToDER: (hex) => { - const key = Buffer.from(hex, 'hex'); - const bitString = Buffer.concat([ - Buffer.from([ANS1_TAG_BIT_STRING]), - Buffer.from([key.length + 1]), - Buffer.from([NULL_BYTE]), - key, - ]); - const oids = Buffer.concat([ - (0, oid_1.encodeOIDString)(OID_EC_PUBLIC_KEY), - (0, oid_1.encodeOIDString)(OID_EC_CURVE_P256V1), - ]); - const oidSequence = Buffer.concat([ - Buffer.from([ASN1_TAG_SEQUENCE]), - Buffer.from([oids.length]), - oids, - ]); - // Wrap up by creating a sequence of elements - const der = Buffer.concat([ - Buffer.from([ASN1_TAG_SEQUENCE]), - Buffer.from([oidSequence.length + bitString.length]), - oidSequence, - bitString, - ]); - return der; - }, -}; -const isHex = (key) => /^[0-9a-fA-F]+$/.test(key); diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/oid.d.ts b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/oid.d.ts deleted file mode 100644 index f20456a9..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/oid.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare function encodeOIDString(oid: string): Buffer; diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/oid.js b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/oid.js deleted file mode 100644 index e1bb7af5..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/oid.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.encodeOIDString = void 0; -const ANS1_TAG_OID = 0x06; -function encodeOIDString(oid) { - const parts = oid.split('.'); - // The first two subidentifiers are encoded into the first byte - const first = parseInt(parts[0], 10) * 40 + parseInt(parts[1], 10); - const rest = []; - parts.slice(2).forEach((part) => { - const bytes = encodeVariableLengthInteger(parseInt(part, 10)); - rest.push(...bytes); - }); - const der = Buffer.from([first, ...rest]); - return Buffer.from([ANS1_TAG_OID, der.length, ...der]); -} -exports.encodeOIDString = encodeOIDString; -function encodeVariableLengthInteger(value) { - const bytes = []; - let mask = 0x00; - while (value > 0) { - bytes.unshift((value & 0x7f) | mask); - value >>= 7; - mask = 0x80; - } - return bytes; -} diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/types.d.ts b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/types.d.ts deleted file mode 100644 index dd3964ec..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/types.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export type JSONObject = { - [key: string]: JSONValue; -}; -export type JSONValue = null | boolean | number | string | JSONValue[] | JSONObject; diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/types.js b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/types.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/types.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/verify.d.ts b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/verify.d.ts deleted file mode 100644 index 36dc0618..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/verify.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/// -import crypto from 'crypto'; -import { JSONObject } from '../utils/types'; -export declare const verifySignature: (metaDataSignedData: JSONObject, key: crypto.VerifyKeyObjectInput, signature: string) => boolean; diff --git a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/verify.js b/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/verify.js deleted file mode 100644 index 8232b6f6..00000000 --- a/node_modules/@sigstore/tuf/node_modules/@tufjs/models/dist/utils/verify.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.verifySignature = void 0; -const canonical_json_1 = require("@tufjs/canonical-json"); -const crypto_1 = __importDefault(require("crypto")); -const verifySignature = (metaDataSignedData, key, signature) => { - const canonicalData = Buffer.from((0, canonical_json_1.canonicalize)(metaDataSignedData)); - return crypto_1.default.verify(undefined, canonicalData, key, Buffer.from(signature, 'hex')); -}; -exports.verifySignature = verifySignature; diff --git a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/config.d.ts b/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/config.d.ts deleted file mode 100644 index 17f7265a..00000000 --- a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/config.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { MakeFetchHappenOptions } from 'make-fetch-happen'; -export type Config = { - maxRootRotations: number; - maxDelegations: number; - rootMaxLength: number; - timestampMaxLength: number; - snapshotMaxLength: number; - targetsMaxLength: number; - prefixTargetsWithHash: boolean; - fetchTimeout: number; - fetchRetries: number | undefined; - fetchRetry: MakeFetchHappenOptions['retry']; -}; -export declare const defaultConfig: Config; diff --git a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/config.js b/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/config.js deleted file mode 100644 index 68456799..00000000 --- a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/config.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultConfig = void 0; -exports.defaultConfig = { - maxRootRotations: 32, - maxDelegations: 32, - rootMaxLength: 512000, //bytes - timestampMaxLength: 16384, // bytes - snapshotMaxLength: 2000000, // bytes - targetsMaxLength: 5000000, // bytes - prefixTargetsWithHash: true, - fetchTimeout: 100000, // milliseconds - fetchRetries: undefined, - fetchRetry: 2, -}; diff --git a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/error.d.ts b/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/error.d.ts deleted file mode 100644 index 3a42f044..00000000 --- a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/error.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -export declare class ValueError extends Error { -} -export declare class RuntimeError extends Error { -} -export declare class PersistError extends Error { -} -export declare class RepositoryError extends Error { -} -export declare class BadVersionError extends RepositoryError { -} -export declare class EqualVersionError extends BadVersionError { -} -export declare class ExpiredMetadataError extends RepositoryError { -} -export declare class DownloadError extends Error { -} -export declare class DownloadLengthMismatchError extends DownloadError { -} -export declare class DownloadHTTPError extends DownloadError { - statusCode: number; - constructor(message: string, statusCode: number); -} diff --git a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/error.js b/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/error.js deleted file mode 100644 index f4b10fa2..00000000 --- a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/error.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DownloadHTTPError = exports.DownloadLengthMismatchError = exports.DownloadError = exports.ExpiredMetadataError = exports.EqualVersionError = exports.BadVersionError = exports.RepositoryError = exports.PersistError = exports.RuntimeError = exports.ValueError = void 0; -// An error about insufficient values -class ValueError extends Error { -} -exports.ValueError = ValueError; -class RuntimeError extends Error { -} -exports.RuntimeError = RuntimeError; -class PersistError extends Error { -} -exports.PersistError = PersistError; -// An error with a repository's state, such as a missing file. -// It covers all exceptions that come from the repository side when -// looking from the perspective of users of metadata API or ngclient. -class RepositoryError extends Error { -} -exports.RepositoryError = RepositoryError; -// An error for metadata that contains an invalid version number. -class BadVersionError extends RepositoryError { -} -exports.BadVersionError = BadVersionError; -// An error for metadata containing a previously verified version number. -class EqualVersionError extends BadVersionError { -} -exports.EqualVersionError = EqualVersionError; -// Indicate that a TUF Metadata file has expired. -class ExpiredMetadataError extends RepositoryError { -} -exports.ExpiredMetadataError = ExpiredMetadataError; -//----- Download Errors ------------------------------------------------------- -// An error occurred while attempting to download a file. -class DownloadError extends Error { -} -exports.DownloadError = DownloadError; -// Indicate that a mismatch of lengths was seen while downloading a file -class DownloadLengthMismatchError extends DownloadError { -} -exports.DownloadLengthMismatchError = DownloadLengthMismatchError; -// Returned by FetcherInterface implementations for HTTP errors. -class DownloadHTTPError extends DownloadError { - constructor(message, statusCode) { - super(message); - this.statusCode = statusCode; - } -} -exports.DownloadHTTPError = DownloadHTTPError; diff --git a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/fetcher.d.ts b/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/fetcher.d.ts deleted file mode 100644 index 99ed8735..00000000 --- a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/fetcher.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/// -/// -import type { MakeFetchHappenOptions } from 'make-fetch-happen'; -type DownloadFileHandler = (file: string) => Promise; -export interface Fetcher { - downloadFile(url: string, maxLength: number, handler: DownloadFileHandler): Promise; - downloadBytes(url: string, maxLength: number): Promise; -} -export declare abstract class BaseFetcher implements Fetcher { - abstract fetch(url: string): Promise; - downloadFile(url: string, maxLength: number, handler: DownloadFileHandler): Promise; - downloadBytes(url: string, maxLength: number): Promise; -} -type Retry = MakeFetchHappenOptions['retry']; -interface FetcherOptions { - timeout?: number; - retry?: Retry; -} -export declare class DefaultFetcher extends BaseFetcher { - private timeout?; - private retry?; - constructor(options?: FetcherOptions); - fetch(url: string): Promise; -} -export {}; diff --git a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/fetcher.js b/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/fetcher.js deleted file mode 100644 index f966ce1b..00000000 --- a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/fetcher.js +++ /dev/null @@ -1,84 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DefaultFetcher = exports.BaseFetcher = void 0; -const debug_1 = __importDefault(require("debug")); -const fs_1 = __importDefault(require("fs")); -const make_fetch_happen_1 = __importDefault(require("make-fetch-happen")); -const util_1 = __importDefault(require("util")); -const error_1 = require("./error"); -const tmpfile_1 = require("./utils/tmpfile"); -const log = (0, debug_1.default)('tuf:fetch'); -class BaseFetcher { - // Download file from given URL. The file is downloaded to a temporary - // location and then passed to the given handler. The handler is responsible - // for moving the file to its final location. The temporary file is deleted - // after the handler returns. - async downloadFile(url, maxLength, handler) { - return (0, tmpfile_1.withTempFile)(async (tmpFile) => { - const reader = await this.fetch(url); - let numberOfBytesReceived = 0; - const fileStream = fs_1.default.createWriteStream(tmpFile); - // Read the stream a chunk at a time so that we can check - // the length of the file as we go - try { - for await (const chunk of reader) { - const bufferChunk = Buffer.from(chunk); - numberOfBytesReceived += bufferChunk.length; - if (numberOfBytesReceived > maxLength) { - throw new error_1.DownloadLengthMismatchError('Max length reached'); - } - await writeBufferToStream(fileStream, bufferChunk); - } - } - finally { - // Make sure we always close the stream - await util_1.default.promisify(fileStream.close).bind(fileStream)(); - } - return handler(tmpFile); - }); - } - // Download bytes from given URL. - async downloadBytes(url, maxLength) { - return this.downloadFile(url, maxLength, async (file) => { - const stream = fs_1.default.createReadStream(file); - const chunks = []; - for await (const chunk of stream) { - chunks.push(chunk); - } - return Buffer.concat(chunks); - }); - } -} -exports.BaseFetcher = BaseFetcher; -class DefaultFetcher extends BaseFetcher { - constructor(options = {}) { - super(); - this.timeout = options.timeout; - this.retry = options.retry; - } - async fetch(url) { - log('GET %s', url); - const response = await (0, make_fetch_happen_1.default)(url, { - timeout: this.timeout, - retry: this.retry, - }); - if (!response.ok || !response?.body) { - throw new error_1.DownloadHTTPError('Failed to download', response.status); - } - return response.body; - } -} -exports.DefaultFetcher = DefaultFetcher; -const writeBufferToStream = async (stream, buffer) => { - return new Promise((resolve, reject) => { - stream.write(buffer, (err) => { - if (err) { - reject(err); - } - resolve(true); - }); - }); -}; diff --git a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/index.d.ts b/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/index.d.ts deleted file mode 100644 index 85e41fef..00000000 --- a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { TargetFile } from '@tufjs/models'; -export { BaseFetcher, Fetcher } from './fetcher'; -export { Updater, UpdaterOptions } from './updater'; -export type { Config } from './config'; diff --git a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/index.js b/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/index.js deleted file mode 100644 index 5a83b91f..00000000 --- a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/index.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Updater = exports.BaseFetcher = exports.TargetFile = void 0; -var models_1 = require("@tufjs/models"); -Object.defineProperty(exports, "TargetFile", { enumerable: true, get: function () { return models_1.TargetFile; } }); -var fetcher_1 = require("./fetcher"); -Object.defineProperty(exports, "BaseFetcher", { enumerable: true, get: function () { return fetcher_1.BaseFetcher; } }); -var updater_1 = require("./updater"); -Object.defineProperty(exports, "Updater", { enumerable: true, get: function () { return updater_1.Updater; } }); diff --git a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/store.d.ts b/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/store.d.ts deleted file mode 100644 index aed13b30..00000000 --- a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/store.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/// -import { Metadata, Root, Snapshot, Targets, Timestamp } from '@tufjs/models'; -export declare class TrustedMetadataStore { - private trustedSet; - private referenceTime; - constructor(rootData: Buffer); - get root(): Metadata; - get timestamp(): Metadata | undefined; - get snapshot(): Metadata | undefined; - get targets(): Metadata | undefined; - getRole(name: string): Metadata | undefined; - updateRoot(bytesBuffer: Buffer): Metadata; - updateTimestamp(bytesBuffer: Buffer): Metadata; - updateSnapshot(bytesBuffer: Buffer, trusted?: boolean): Metadata; - updateDelegatedTargets(bytesBuffer: Buffer, roleName: string, delegatorName: string): void; - private loadTrustedRoot; - private checkFinalTimestamp; - private checkFinalSnapsnot; -} diff --git a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/store.js b/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/store.js deleted file mode 100644 index 85673361..00000000 --- a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/store.js +++ /dev/null @@ -1,208 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TrustedMetadataStore = void 0; -const models_1 = require("@tufjs/models"); -const error_1 = require("./error"); -class TrustedMetadataStore { - constructor(rootData) { - this.trustedSet = {}; - // Client workflow 5.1: record fixed update start time - this.referenceTime = new Date(); - // Client workflow 5.2: load trusted root metadata - this.loadTrustedRoot(rootData); - } - get root() { - if (!this.trustedSet.root) { - throw new ReferenceError('No trusted root metadata'); - } - return this.trustedSet.root; - } - get timestamp() { - return this.trustedSet.timestamp; - } - get snapshot() { - return this.trustedSet.snapshot; - } - get targets() { - return this.trustedSet.targets; - } - getRole(name) { - return this.trustedSet[name]; - } - updateRoot(bytesBuffer) { - const data = JSON.parse(bytesBuffer.toString('utf8')); - const newRoot = models_1.Metadata.fromJSON(models_1.MetadataKind.Root, data); - if (newRoot.signed.type != models_1.MetadataKind.Root) { - throw new error_1.RepositoryError(`Expected 'root', got ${newRoot.signed.type}`); - } - // Client workflow 5.4: check for arbitrary software attack - this.root.verifyDelegate(models_1.MetadataKind.Root, newRoot); - // Client workflow 5.5: check for rollback attack - if (newRoot.signed.version != this.root.signed.version + 1) { - throw new error_1.BadVersionError(`Expected version ${this.root.signed.version + 1}, got ${newRoot.signed.version}`); - } - // Check that new root is signed by self - newRoot.verifyDelegate(models_1.MetadataKind.Root, newRoot); - // Client workflow 5.7: set new root as trusted root - this.trustedSet.root = newRoot; - return newRoot; - } - updateTimestamp(bytesBuffer) { - if (this.snapshot) { - throw new error_1.RuntimeError('Cannot update timestamp after snapshot'); - } - if (this.root.signed.isExpired(this.referenceTime)) { - throw new error_1.ExpiredMetadataError('Final root.json is expired'); - } - const data = JSON.parse(bytesBuffer.toString('utf8')); - const newTimestamp = models_1.Metadata.fromJSON(models_1.MetadataKind.Timestamp, data); - if (newTimestamp.signed.type != models_1.MetadataKind.Timestamp) { - throw new error_1.RepositoryError(`Expected 'timestamp', got ${newTimestamp.signed.type}`); - } - // Client workflow 5.4.2: check for arbitrary software attack - this.root.verifyDelegate(models_1.MetadataKind.Timestamp, newTimestamp); - if (this.timestamp) { - // Prevent rolling back timestamp version - // Client workflow 5.4.3.1: check for rollback attack - if (newTimestamp.signed.version < this.timestamp.signed.version) { - throw new error_1.BadVersionError(`New timestamp version ${newTimestamp.signed.version} is less than current version ${this.timestamp.signed.version}`); - } - // Keep using old timestamp if versions are equal. - if (newTimestamp.signed.version === this.timestamp.signed.version) { - throw new error_1.EqualVersionError(`New timestamp version ${newTimestamp.signed.version} is equal to current version ${this.timestamp.signed.version}`); - } - // Prevent rolling back snapshot version - // Client workflow 5.4.3.2: check for rollback attack - const snapshotMeta = this.timestamp.signed.snapshotMeta; - const newSnapshotMeta = newTimestamp.signed.snapshotMeta; - if (newSnapshotMeta.version < snapshotMeta.version) { - throw new error_1.BadVersionError(`New snapshot version ${newSnapshotMeta.version} is less than current version ${snapshotMeta.version}`); - } - } - // expiry not checked to allow old timestamp to be used for rollback - // protection of new timestamp: expiry is checked in update_snapshot - this.trustedSet.timestamp = newTimestamp; - // Client workflow 5.4.4: check for freeze attack - this.checkFinalTimestamp(); - return newTimestamp; - } - updateSnapshot(bytesBuffer, trusted = false) { - if (!this.timestamp) { - throw new error_1.RuntimeError('Cannot update snapshot before timestamp'); - } - if (this.targets) { - throw new error_1.RuntimeError('Cannot update snapshot after targets'); - } - // Snapshot cannot be loaded if final timestamp is expired - this.checkFinalTimestamp(); - const snapshotMeta = this.timestamp.signed.snapshotMeta; - // Verify non-trusted data against the hashes in timestamp, if any. - // Trusted snapshot data has already been verified once. - // Client workflow 5.5.2: check against timestamp role's snaphsot hash - if (!trusted) { - snapshotMeta.verify(bytesBuffer); - } - const data = JSON.parse(bytesBuffer.toString('utf8')); - const newSnapshot = models_1.Metadata.fromJSON(models_1.MetadataKind.Snapshot, data); - if (newSnapshot.signed.type != models_1.MetadataKind.Snapshot) { - throw new error_1.RepositoryError(`Expected 'snapshot', got ${newSnapshot.signed.type}`); - } - // Client workflow 5.5.3: check for arbitrary software attack - this.root.verifyDelegate(models_1.MetadataKind.Snapshot, newSnapshot); - // version check against meta version (5.5.4) is deferred to allow old - // snapshot to be used in rollback protection - // Client workflow 5.5.5: check for rollback attack - if (this.snapshot) { - Object.entries(this.snapshot.signed.meta).forEach(([fileName, fileInfo]) => { - const newFileInfo = newSnapshot.signed.meta[fileName]; - if (!newFileInfo) { - throw new error_1.RepositoryError(`Missing file ${fileName} in new snapshot`); - } - if (newFileInfo.version < fileInfo.version) { - throw new error_1.BadVersionError(`New version ${newFileInfo.version} of ${fileName} is less than current version ${fileInfo.version}`); - } - }); - } - this.trustedSet.snapshot = newSnapshot; - // snapshot is loaded, but we raise if it's not valid _final_ snapshot - // Client workflow 5.5.4 & 5.5.6 - this.checkFinalSnapsnot(); - return newSnapshot; - } - updateDelegatedTargets(bytesBuffer, roleName, delegatorName) { - if (!this.snapshot) { - throw new error_1.RuntimeError('Cannot update delegated targets before snapshot'); - } - // Targets cannot be loaded if final snapshot is expired or its version - // does not match meta version in timestamp. - this.checkFinalSnapsnot(); - const delegator = this.trustedSet[delegatorName]; - if (!delegator) { - throw new error_1.RuntimeError(`No trusted ${delegatorName} metadata`); - } - // Extract metadata for the delegated role from snapshot - const meta = this.snapshot.signed.meta?.[`${roleName}.json`]; - if (!meta) { - throw new error_1.RepositoryError(`Missing ${roleName}.json in snapshot`); - } - // Client workflow 5.6.2: check against snapshot role's targets hash - meta.verify(bytesBuffer); - const data = JSON.parse(bytesBuffer.toString('utf8')); - const newDelegate = models_1.Metadata.fromJSON(models_1.MetadataKind.Targets, data); - if (newDelegate.signed.type != models_1.MetadataKind.Targets) { - throw new error_1.RepositoryError(`Expected 'targets', got ${newDelegate.signed.type}`); - } - // Client workflow 5.6.3: check for arbitrary software attack - delegator.verifyDelegate(roleName, newDelegate); - // Client workflow 5.6.4: Check against snapshot role’s targets version - const version = newDelegate.signed.version; - if (version != meta.version) { - throw new error_1.BadVersionError(`Version ${version} of ${roleName} does not match snapshot version ${meta.version}`); - } - // Client workflow 5.6.5: check for a freeze attack - if (newDelegate.signed.isExpired(this.referenceTime)) { - throw new error_1.ExpiredMetadataError(`${roleName}.json is expired`); - } - this.trustedSet[roleName] = newDelegate; - } - // Verifies and loads data as trusted root metadata. - // Note that an expired initial root is still considered valid. - loadTrustedRoot(bytesBuffer) { - const data = JSON.parse(bytesBuffer.toString('utf8')); - const root = models_1.Metadata.fromJSON(models_1.MetadataKind.Root, data); - if (root.signed.type != models_1.MetadataKind.Root) { - throw new error_1.RepositoryError(`Expected 'root', got ${root.signed.type}`); - } - root.verifyDelegate(models_1.MetadataKind.Root, root); - this.trustedSet['root'] = root; - } - checkFinalTimestamp() { - // Timestamp MUST be loaded - if (!this.timestamp) { - throw new ReferenceError('No trusted timestamp metadata'); - } - // Client workflow 5.4.4: check for freeze attack - if (this.timestamp.signed.isExpired(this.referenceTime)) { - throw new error_1.ExpiredMetadataError('Final timestamp.json is expired'); - } - } - checkFinalSnapsnot() { - // Snapshot and timestamp MUST be loaded - if (!this.snapshot) { - throw new ReferenceError('No trusted snapshot metadata'); - } - if (!this.timestamp) { - throw new ReferenceError('No trusted timestamp metadata'); - } - // Client workflow 5.5.6: check for freeze attack - if (this.snapshot.signed.isExpired(this.referenceTime)) { - throw new error_1.ExpiredMetadataError('snapshot.json is expired'); - } - // Client workflow 5.5.4: check against timestamp role’s snapshot version - const snapshotMeta = this.timestamp.signed.snapshotMeta; - if (this.snapshot.signed.version !== snapshotMeta.version) { - throw new error_1.BadVersionError("Snapshot version doesn't match timestamp"); - } - } -} -exports.TrustedMetadataStore = TrustedMetadataStore; diff --git a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/updater.d.ts b/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/updater.d.ts deleted file mode 100644 index 883df0fe..00000000 --- a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/updater.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { TargetFile } from '@tufjs/models'; -import { Config } from './config'; -import { Fetcher } from './fetcher'; -export interface UpdaterOptions { - metadataDir: string; - metadataBaseUrl: string; - targetDir?: string; - targetBaseUrl?: string; - fetcher?: Fetcher; - forceCache?: boolean; - config?: Partial; -} -export declare class Updater { - private dir; - private metadataBaseUrl; - private targetDir?; - private targetBaseUrl?; - private forceCache; - private trustedSet; - private config; - private fetcher; - constructor(options: UpdaterOptions); - refresh(): Promise; - getTargetInfo(targetPath: string): Promise; - downloadTarget(targetInfo: TargetFile, filePath?: string, targetBaseUrl?: string): Promise; - findCachedTarget(targetInfo: TargetFile, filePath?: string): Promise; - private loadLocalMetadata; - private loadRoot; - private loadTimestamp; - private loadSnapshot; - private loadTargets; - private preorderDepthFirstWalk; - private generateTargetPath; - private persistMetadata; -} diff --git a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/updater.js b/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/updater.js deleted file mode 100644 index 5317f7e1..00000000 --- a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/updater.js +++ /dev/null @@ -1,343 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Updater = void 0; -const models_1 = require("@tufjs/models"); -const debug_1 = __importDefault(require("debug")); -const fs = __importStar(require("fs")); -const path = __importStar(require("path")); -const config_1 = require("./config"); -const error_1 = require("./error"); -const fetcher_1 = require("./fetcher"); -const store_1 = require("./store"); -const url = __importStar(require("./utils/url")); -const log = (0, debug_1.default)('tuf:cache'); -class Updater { - constructor(options) { - const { metadataDir, metadataBaseUrl, targetDir, targetBaseUrl, fetcher, config, } = options; - this.dir = metadataDir; - this.metadataBaseUrl = metadataBaseUrl; - this.targetDir = targetDir; - this.targetBaseUrl = targetBaseUrl; - this.forceCache = options.forceCache ?? false; - const data = this.loadLocalMetadata(models_1.MetadataKind.Root); - this.trustedSet = new store_1.TrustedMetadataStore(data); - this.config = { ...config_1.defaultConfig, ...config }; - this.fetcher = - fetcher || - new fetcher_1.DefaultFetcher({ - timeout: this.config.fetchTimeout, - retry: this.config.fetchRetries ?? this.config.fetchRetry, - }); - } - // refresh and load the metadata before downloading the target - // refresh should be called once after the client is initialized - async refresh() { - // If forceCache is true, try to load the timestamp from local storage - // without fetching it from the remote. Otherwise, load the root and - // timestamp from the remote per the TUF spec. - if (this.forceCache) { - // If anything fails, load the root and timestamp from the remote. This - // should cover any situation where the local metadata is corrupted or - // expired. - try { - await this.loadTimestamp({ checkRemote: false }); - } - catch (error) { - await this.loadRoot(); - await this.loadTimestamp(); - } - } - else { - await this.loadRoot(); - await this.loadTimestamp(); - } - await this.loadSnapshot(); - await this.loadTargets(models_1.MetadataKind.Targets, models_1.MetadataKind.Root); - } - // Returns the TargetFile instance with information for the given target path. - // - // Implicitly calls refresh if it hasn't already been called. - async getTargetInfo(targetPath) { - if (!this.trustedSet.targets) { - await this.refresh(); - } - return this.preorderDepthFirstWalk(targetPath); - } - async downloadTarget(targetInfo, filePath, targetBaseUrl) { - const targetPath = filePath || this.generateTargetPath(targetInfo); - if (!targetBaseUrl) { - if (!this.targetBaseUrl) { - throw new error_1.ValueError('Target base URL not set'); - } - targetBaseUrl = this.targetBaseUrl; - } - let targetFilePath = targetInfo.path; - const consistentSnapshot = this.trustedSet.root.signed.consistentSnapshot; - if (consistentSnapshot && this.config.prefixTargetsWithHash) { - const hashes = Object.values(targetInfo.hashes); - const { dir, base } = path.parse(targetFilePath); - const filename = `${hashes[0]}.${base}`; - targetFilePath = dir ? `${dir}/${filename}` : filename; - } - const targetUrl = url.join(targetBaseUrl, targetFilePath); - // Client workflow 5.7.3: download target file - await this.fetcher.downloadFile(targetUrl, targetInfo.length, async (fileName) => { - // Verify hashes and length of downloaded file - await targetInfo.verify(fs.createReadStream(fileName)); - // Copy file to target path - log('WRITE %s', targetPath); - fs.copyFileSync(fileName, targetPath); - }); - return targetPath; - } - async findCachedTarget(targetInfo, filePath) { - if (!filePath) { - filePath = this.generateTargetPath(targetInfo); - } - try { - if (fs.existsSync(filePath)) { - await targetInfo.verify(fs.createReadStream(filePath)); - return filePath; - } - } - catch (error) { - return; // File not found - } - return; // File not found - } - loadLocalMetadata(fileName) { - const filePath = path.join(this.dir, `${fileName}.json`); - log('READ %s', filePath); - return fs.readFileSync(filePath); - } - // Sequentially load and persist on local disk every newer root metadata - // version available on the remote. - // Client workflow 5.3: update root role - async loadRoot() { - // Client workflow 5.3.2: version of trusted root metadata file - const rootVersion = this.trustedSet.root.signed.version; - const lowerBound = rootVersion + 1; - const upperBound = lowerBound + this.config.maxRootRotations; - for (let version = lowerBound; version <= upperBound; version++) { - const rootUrl = url.join(this.metadataBaseUrl, `${version}.root.json`); - try { - // Client workflow 5.3.3: download new root metadata file - const bytesData = await this.fetcher.downloadBytes(rootUrl, this.config.rootMaxLength); - // Client workflow 5.3.4 - 5.4.7 - this.trustedSet.updateRoot(bytesData); - // Client workflow 5.3.8: persist root metadata file - this.persistMetadata(models_1.MetadataKind.Root, bytesData); - } - catch (error) { - break; - } - } - } - // Load local and remote timestamp metadata. - // Client workflow 5.4: update timestamp role - async loadTimestamp({ checkRemote } = { checkRemote: true }) { - // Load local and remote timestamp metadata - try { - const data = this.loadLocalMetadata(models_1.MetadataKind.Timestamp); - this.trustedSet.updateTimestamp(data); - // If checkRemote is disabled, return here to avoid fetching the remote - // timestamp metadata. - if (!checkRemote) { - return; - } - } - catch (error) { - // continue - } - //Load from remote (whether local load succeeded or not) - const timestampUrl = url.join(this.metadataBaseUrl, 'timestamp.json'); - // Client workflow 5.4.1: download timestamp metadata file - const bytesData = await this.fetcher.downloadBytes(timestampUrl, this.config.timestampMaxLength); - try { - // Client workflow 5.4.2 - 5.4.4 - this.trustedSet.updateTimestamp(bytesData); - } - catch (error) { - // If new timestamp version is same as current, discardd the new one. - // This is normal and should NOT raise an error. - if (error instanceof error_1.EqualVersionError) { - return; - } - // Re-raise any other error - throw error; - } - // Client workflow 5.4.5: persist timestamp metadata - this.persistMetadata(models_1.MetadataKind.Timestamp, bytesData); - } - // Load local and remote snapshot metadata. - // Client workflow 5.5: update snapshot role - async loadSnapshot() { - //Load local (and if needed remote) snapshot metadata - try { - const data = this.loadLocalMetadata(models_1.MetadataKind.Snapshot); - this.trustedSet.updateSnapshot(data, true); - } - catch (error) { - if (!this.trustedSet.timestamp) { - throw new ReferenceError('No timestamp metadata'); - } - const snapshotMeta = this.trustedSet.timestamp.signed.snapshotMeta; - const maxLength = snapshotMeta.length || this.config.snapshotMaxLength; - const version = this.trustedSet.root.signed.consistentSnapshot - ? snapshotMeta.version - : undefined; - const snapshotUrl = url.join(this.metadataBaseUrl, version ? `${version}.snapshot.json` : 'snapshot.json'); - try { - // Client workflow 5.5.1: download snapshot metadata file - const bytesData = await this.fetcher.downloadBytes(snapshotUrl, maxLength); - // Client workflow 5.5.2 - 5.5.6 - this.trustedSet.updateSnapshot(bytesData); - // Client workflow 5.5.7: persist snapshot metadata file - this.persistMetadata(models_1.MetadataKind.Snapshot, bytesData); - } - catch (error) { - throw new error_1.RuntimeError(`Unable to load snapshot metadata error ${error}`); - } - } - } - // Load local and remote targets metadata. - // Client workflow 5.6: update targets role - async loadTargets(role, parentRole) { - if (this.trustedSet.getRole(role)) { - return this.trustedSet.getRole(role); - } - try { - const buffer = this.loadLocalMetadata(role); - this.trustedSet.updateDelegatedTargets(buffer, role, parentRole); - } - catch (error) { - // Local 'role' does not exist or is invalid: update from remote - if (!this.trustedSet.snapshot) { - throw new ReferenceError('No snapshot metadata'); - } - const metaInfo = this.trustedSet.snapshot.signed.meta[`${role}.json`]; - // TODO: use length for fetching - const maxLength = metaInfo.length || this.config.targetsMaxLength; - const version = this.trustedSet.root.signed.consistentSnapshot - ? metaInfo.version - : undefined; - const metadataUrl = url.join(this.metadataBaseUrl, version ? `${version}.${role}.json` : `${role}.json`); - try { - // Client workflow 5.6.1: download targets metadata file - const bytesData = await this.fetcher.downloadBytes(metadataUrl, maxLength); - // Client workflow 5.6.2 - 5.6.6 - this.trustedSet.updateDelegatedTargets(bytesData, role, parentRole); - // Client workflow 5.6.7: persist targets metadata file - this.persistMetadata(role, bytesData); - } - catch (error) { - throw new error_1.RuntimeError(`Unable to load targets error ${error}`); - } - } - return this.trustedSet.getRole(role); - } - async preorderDepthFirstWalk(targetPath) { - // Interrogates the tree of target delegations in order of appearance - // (which implicitly order trustworthiness), and returns the matching - // target found in the most trusted role. - // List of delegations to be interrogated. A (role, parent role) pair - // is needed to load and verify the delegated targets metadata. - const delegationsToVisit = [ - { - roleName: models_1.MetadataKind.Targets, - parentRoleName: models_1.MetadataKind.Root, - }, - ]; - const visitedRoleNames = new Set(); - // Client workflow 5.6.7: preorder depth-first traversal of the graph of - // target delegations - while (visitedRoleNames.size <= this.config.maxDelegations && - delegationsToVisit.length > 0) { - // Pop the role name from the top of the stack. - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - const { roleName, parentRoleName } = delegationsToVisit.pop(); - // Skip any visited current role to prevent cycles. - // Client workflow 5.6.7.1: skip already-visited roles - if (visitedRoleNames.has(roleName)) { - continue; - } - // The metadata for 'role_name' must be downloaded/updated before - // its targets, delegations, and child roles can be inspected. - const targets = (await this.loadTargets(roleName, parentRoleName)) - ?.signed; - if (!targets) { - continue; - } - const target = targets.targets?.[targetPath]; - if (target) { - return target; - } - // After preorder check, add current role to set of visited roles. - visitedRoleNames.add(roleName); - if (targets.delegations) { - const childRolesToVisit = []; - // NOTE: This may be a slow operation if there are many delegated roles. - const rolesForTarget = targets.delegations.rolesForTarget(targetPath); - for (const { role: childName, terminating } of rolesForTarget) { - childRolesToVisit.push({ - roleName: childName, - parentRoleName: roleName, - }); - // Client workflow 5.6.7.2.1 - if (terminating) { - delegationsToVisit.splice(0); // empty the array - break; - } - } - childRolesToVisit.reverse(); - delegationsToVisit.push(...childRolesToVisit); - } - } - return; // no matching target found - } - generateTargetPath(targetInfo) { - if (!this.targetDir) { - throw new error_1.ValueError('Target directory not set'); - } - // URL encode target path - const filePath = encodeURIComponent(targetInfo.path); - return path.join(this.targetDir, filePath); - } - persistMetadata(metaDataName, bytesData) { - try { - const filePath = path.join(this.dir, `${metaDataName}.json`); - log('WRITE %s', filePath); - fs.writeFileSync(filePath, bytesData.toString('utf8')); - } - catch (error) { - throw new error_1.PersistError(`Failed to persist metadata ${metaDataName} error: ${error}`); - } - } -} -exports.Updater = Updater; diff --git a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/utils/tmpfile.d.ts b/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/utils/tmpfile.d.ts deleted file mode 100644 index 4d5ee8ab..00000000 --- a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/utils/tmpfile.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -type TempFileHandler = (file: string) => Promise; -export declare const withTempFile: (handler: TempFileHandler) => Promise; -export {}; diff --git a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/utils/tmpfile.js b/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/utils/tmpfile.js deleted file mode 100644 index 923eef60..00000000 --- a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/utils/tmpfile.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.withTempFile = void 0; -const promises_1 = __importDefault(require("fs/promises")); -const os_1 = __importDefault(require("os")); -const path_1 = __importDefault(require("path")); -// Invokes the given handler with the path to a temporary file. The file -// is deleted after the handler returns. -const withTempFile = async (handler) => withTempDir(async (dir) => handler(path_1.default.join(dir, 'tempfile'))); -exports.withTempFile = withTempFile; -// Invokes the given handler with a temporary directory. The directory is -// deleted after the handler returns. -const withTempDir = async (handler) => { - const tmpDir = await promises_1.default.realpath(os_1.default.tmpdir()); - const dir = await promises_1.default.mkdtemp(tmpDir + path_1.default.sep); - try { - return await handler(dir); - } - finally { - await promises_1.default.rm(dir, { force: true, recursive: true, maxRetries: 3 }); - } -}; diff --git a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/utils/url.d.ts b/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/utils/url.d.ts deleted file mode 100644 index ec4d470b..00000000 --- a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/utils/url.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function join(base: string, path: string): string; diff --git a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/utils/url.js b/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/utils/url.js deleted file mode 100644 index ce67fe2c..00000000 --- a/node_modules/@sigstore/tuf/node_modules/tuf-js/dist/utils/url.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.join = void 0; -const url_1 = require("url"); -function join(base, path) { - return new url_1.URL(ensureTrailingSlash(base) + removeLeadingSlash(path)).toString(); -} -exports.join = join; -function ensureTrailingSlash(path) { - return path.endsWith('/') ? path : path + '/'; -} -function removeLeadingSlash(path) { - return path.startsWith('/') ? path.slice(1) : path; -} diff --git a/node_modules/@sigstore/verify/dist/bundle/dsse.d.ts b/node_modules/@sigstore/verify/dist/bundle/dsse.d.ts deleted file mode 100644 index 94e50851..00000000 --- a/node_modules/@sigstore/verify/dist/bundle/dsse.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/// -/// -import { crypto } from '@sigstore/core'; -import type { Envelope } from '@sigstore/bundle'; -import type { SignatureContent } from '../shared.types'; -export declare class DSSESignatureContent implements SignatureContent { - private readonly env; - constructor(env: Envelope); - compareDigest(digest: Buffer): boolean; - compareSignature(signature: Buffer): boolean; - verifySignature(key: crypto.KeyObject): boolean; - get signature(): Buffer; - private get preAuthEncoding(); -} diff --git a/node_modules/@sigstore/verify/dist/bundle/dsse.js b/node_modules/@sigstore/verify/dist/bundle/dsse.js deleted file mode 100644 index 193f875f..00000000 --- a/node_modules/@sigstore/verify/dist/bundle/dsse.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DSSESignatureContent = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const core_1 = require("@sigstore/core"); -class DSSESignatureContent { - constructor(env) { - this.env = env; - } - compareDigest(digest) { - return core_1.crypto.bufferEqual(digest, core_1.crypto.hash(this.env.payload)); - } - compareSignature(signature) { - return core_1.crypto.bufferEqual(signature, this.signature); - } - verifySignature(key) { - return core_1.crypto.verify(this.preAuthEncoding, key, this.signature); - } - get signature() { - return this.env.signatures.length > 0 - ? this.env.signatures[0].sig - : Buffer.from(''); - } - // DSSE Pre-Authentication Encoding - get preAuthEncoding() { - return core_1.dsse.preAuthEncoding(this.env.payloadType, this.env.payload); - } -} -exports.DSSESignatureContent = DSSESignatureContent; diff --git a/node_modules/@sigstore/verify/dist/bundle/index.d.ts b/node_modules/@sigstore/verify/dist/bundle/index.d.ts deleted file mode 100644 index 76d72f3a..00000000 --- a/node_modules/@sigstore/verify/dist/bundle/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -import { Bundle } from '@sigstore/bundle'; -import type { SignatureContent, SignedEntity } from '../shared.types'; -export declare function toSignedEntity(bundle: Bundle, artifact?: Buffer): SignedEntity; -export declare function signatureContent(bundle: Bundle, artifact?: Buffer): SignatureContent; diff --git a/node_modules/@sigstore/verify/dist/bundle/index.js b/node_modules/@sigstore/verify/dist/bundle/index.js deleted file mode 100644 index 63f8d4c4..00000000 --- a/node_modules/@sigstore/verify/dist/bundle/index.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.signatureContent = exports.toSignedEntity = void 0; -const core_1 = require("@sigstore/core"); -const dsse_1 = require("./dsse"); -const message_1 = require("./message"); -function toSignedEntity(bundle, artifact) { - const { tlogEntries, timestampVerificationData } = bundle.verificationMaterial; - const timestamps = []; - for (const entry of tlogEntries) { - timestamps.push({ - $case: 'transparency-log', - tlogEntry: entry, - }); - } - for (const ts of timestampVerificationData?.rfc3161Timestamps ?? []) { - timestamps.push({ - $case: 'timestamp-authority', - timestamp: core_1.RFC3161Timestamp.parse(ts.signedTimestamp), - }); - } - return { - signature: signatureContent(bundle, artifact), - key: key(bundle), - tlogEntries, - timestamps, - }; -} -exports.toSignedEntity = toSignedEntity; -function signatureContent(bundle, artifact) { - switch (bundle.content.$case) { - case 'dsseEnvelope': - return new dsse_1.DSSESignatureContent(bundle.content.dsseEnvelope); - case 'messageSignature': - return new message_1.MessageSignatureContent(bundle.content.messageSignature, artifact); - } -} -exports.signatureContent = signatureContent; -function key(bundle) { - switch (bundle.verificationMaterial.content.$case) { - case 'publicKey': - return { - $case: 'public-key', - hint: bundle.verificationMaterial.content.publicKey.hint, - }; - case 'x509CertificateChain': - return { - $case: 'certificate', - certificate: core_1.X509Certificate.parse(bundle.verificationMaterial.content.x509CertificateChain - .certificates[0].rawBytes), - }; - case 'certificate': - return { - $case: 'certificate', - certificate: core_1.X509Certificate.parse(bundle.verificationMaterial.content.certificate.rawBytes), - }; - } -} diff --git a/node_modules/@sigstore/verify/dist/bundle/message.d.ts b/node_modules/@sigstore/verify/dist/bundle/message.d.ts deleted file mode 100644 index 20f1235c..00000000 --- a/node_modules/@sigstore/verify/dist/bundle/message.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/// -/// -import { crypto } from '@sigstore/core'; -import type { MessageSignature } from '@sigstore/bundle'; -import type { SignatureContent } from '../shared.types'; -export declare class MessageSignatureContent implements SignatureContent { - readonly signature: Buffer; - private readonly messageDigest; - private readonly artifact; - constructor(messageSignature: MessageSignature, artifact: Buffer); - compareSignature(signature: Buffer): boolean; - compareDigest(digest: Buffer): boolean; - verifySignature(key: crypto.KeyObject): boolean; -} diff --git a/node_modules/@sigstore/verify/dist/bundle/message.js b/node_modules/@sigstore/verify/dist/bundle/message.js deleted file mode 100644 index 836148c6..00000000 --- a/node_modules/@sigstore/verify/dist/bundle/message.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageSignatureContent = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const core_1 = require("@sigstore/core"); -class MessageSignatureContent { - constructor(messageSignature, artifact) { - this.signature = messageSignature.signature; - this.messageDigest = messageSignature.messageDigest.digest; - this.artifact = artifact; - } - compareSignature(signature) { - return core_1.crypto.bufferEqual(signature, this.signature); - } - compareDigest(digest) { - return core_1.crypto.bufferEqual(digest, this.messageDigest); - } - verifySignature(key) { - return core_1.crypto.verify(this.artifact, key, this.signature); - } -} -exports.MessageSignatureContent = MessageSignatureContent; diff --git a/node_modules/@sigstore/verify/dist/error.d.ts b/node_modules/@sigstore/verify/dist/error.d.ts deleted file mode 100644 index 4805d543..00000000 --- a/node_modules/@sigstore/verify/dist/error.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -declare class BaseError extends Error { - code: T; - cause: any; - constructor({ code, message, cause, }: { - code: T; - message: string; - cause?: any; - }); -} -type VerificationErrorCode = 'NOT_IMPLEMENTED_ERROR' | 'TLOG_INCLUSION_PROOF_ERROR' | 'TLOG_INCLUSION_PROMISE_ERROR' | 'TLOG_MISSING_INCLUSION_ERROR' | 'TLOG_BODY_ERROR' | 'CERTIFICATE_ERROR' | 'PUBLIC_KEY_ERROR' | 'SIGNATURE_ERROR' | 'TIMESTAMP_ERROR'; -export declare class VerificationError extends BaseError { -} -type PolicyErrorCode = 'UNTRUSTED_SIGNER_ERROR'; -export declare class PolicyError extends BaseError { -} -export {}; diff --git a/node_modules/@sigstore/verify/dist/error.js b/node_modules/@sigstore/verify/dist/error.js deleted file mode 100644 index 6cb1cd41..00000000 --- a/node_modules/@sigstore/verify/dist/error.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PolicyError = exports.VerificationError = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -class BaseError extends Error { - constructor({ code, message, cause, }) { - super(message); - this.code = code; - this.cause = cause; - this.name = this.constructor.name; - } -} -class VerificationError extends BaseError { -} -exports.VerificationError = VerificationError; -class PolicyError extends BaseError { -} -exports.PolicyError = PolicyError; diff --git a/node_modules/@sigstore/verify/dist/index.d.ts b/node_modules/@sigstore/verify/dist/index.d.ts deleted file mode 100644 index 62c974ef..00000000 --- a/node_modules/@sigstore/verify/dist/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { toSignedEntity } from './bundle'; -export { PolicyError, VerificationError } from './error'; -export { KeyFinderFunc, TrustMaterial, toTrustMaterial } from './trust'; -export { Verifier, VerifierOptions } from './verifier'; -export type { SignedEntity, Signer, VerificationPolicy } from './shared.types'; diff --git a/node_modules/@sigstore/verify/dist/index.js b/node_modules/@sigstore/verify/dist/index.js deleted file mode 100644 index 3222876f..00000000 --- a/node_modules/@sigstore/verify/dist/index.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Verifier = exports.toTrustMaterial = exports.VerificationError = exports.PolicyError = exports.toSignedEntity = void 0; -/* istanbul ignore file */ -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -var bundle_1 = require("./bundle"); -Object.defineProperty(exports, "toSignedEntity", { enumerable: true, get: function () { return bundle_1.toSignedEntity; } }); -var error_1 = require("./error"); -Object.defineProperty(exports, "PolicyError", { enumerable: true, get: function () { return error_1.PolicyError; } }); -Object.defineProperty(exports, "VerificationError", { enumerable: true, get: function () { return error_1.VerificationError; } }); -var trust_1 = require("./trust"); -Object.defineProperty(exports, "toTrustMaterial", { enumerable: true, get: function () { return trust_1.toTrustMaterial; } }); -var verifier_1 = require("./verifier"); -Object.defineProperty(exports, "Verifier", { enumerable: true, get: function () { return verifier_1.Verifier; } }); diff --git a/node_modules/@sigstore/verify/dist/key/certificate.d.ts b/node_modules/@sigstore/verify/dist/key/certificate.d.ts deleted file mode 100644 index 58f16d23..00000000 --- a/node_modules/@sigstore/verify/dist/key/certificate.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { X509Certificate } from '@sigstore/core'; -import { CertAuthority } from '../trust'; -export declare function verifyCertificateChain(leaf: X509Certificate, certificateAuthorities: CertAuthority[]): X509Certificate[]; -interface CertificateChainVerifierOptions { - trustedCerts: X509Certificate[]; - untrustedCert: X509Certificate; -} -export declare class CertificateChainVerifier { - private untrustedCert; - private trustedCerts; - private localCerts; - constructor(opts: CertificateChainVerifierOptions); - verify(): X509Certificate[]; - private sort; - private buildPaths; - private findIssuer; - private checkPath; -} -export {}; diff --git a/node_modules/@sigstore/verify/dist/key/certificate.js b/node_modules/@sigstore/verify/dist/key/certificate.js deleted file mode 100644 index c9140dd9..00000000 --- a/node_modules/@sigstore/verify/dist/key/certificate.js +++ /dev/null @@ -1,205 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CertificateChainVerifier = exports.verifyCertificateChain = void 0; -const error_1 = require("../error"); -const trust_1 = require("../trust"); -function verifyCertificateChain(leaf, certificateAuthorities) { - // Filter list of trusted CAs to those which are valid for the given - // leaf certificate. - const cas = (0, trust_1.filterCertAuthorities)(certificateAuthorities, { - start: leaf.notBefore, - end: leaf.notAfter, - }); - /* eslint-disable-next-line @typescript-eslint/no-explicit-any */ - let error; - for (const ca of cas) { - try { - const verifier = new CertificateChainVerifier({ - trustedCerts: ca.certChain, - untrustedCert: leaf, - }); - return verifier.verify(); - } - catch (err) { - error = err; - } - } - // If we failed to verify the certificate chain for all of the trusted - // CAs, throw the last error we encountered. - throw new error_1.VerificationError({ - code: 'CERTIFICATE_ERROR', - message: 'Failed to verify certificate chain', - cause: error, - }); -} -exports.verifyCertificateChain = verifyCertificateChain; -class CertificateChainVerifier { - constructor(opts) { - this.untrustedCert = opts.untrustedCert; - this.trustedCerts = opts.trustedCerts; - this.localCerts = dedupeCertificates([ - ...opts.trustedCerts, - opts.untrustedCert, - ]); - } - verify() { - // Construct certificate path from leaf to root - const certificatePath = this.sort(); - // Perform validation checks on each certificate in the path - this.checkPath(certificatePath); - // Return verified certificate path - return certificatePath; - } - sort() { - const leafCert = this.untrustedCert; - // Construct all possible paths from the leaf - let paths = this.buildPaths(leafCert); - // Filter for paths which contain a trusted certificate - paths = paths.filter((path) => path.some((cert) => this.trustedCerts.includes(cert))); - if (paths.length === 0) { - throw new error_1.VerificationError({ - code: 'CERTIFICATE_ERROR', - message: 'no trusted certificate path found', - }); - } - // Find the shortest of possible paths - /* istanbul ignore next */ - const path = paths.reduce((prev, curr) => prev.length < curr.length ? prev : curr); - // Construct chain from shortest path - // Removes the last certificate in the path, which will be a second copy - // of the root certificate given that the root is self-signed. - return [leafCert, ...path].slice(0, -1); - } - // Recursively build all possible paths from the leaf to the root - buildPaths(certificate) { - const paths = []; - const issuers = this.findIssuer(certificate); - if (issuers.length === 0) { - throw new error_1.VerificationError({ - code: 'CERTIFICATE_ERROR', - message: 'no valid certificate path found', - }); - } - for (let i = 0; i < issuers.length; i++) { - const issuer = issuers[i]; - // Base case - issuer is self - if (issuer.equals(certificate)) { - paths.push([certificate]); - continue; - } - // Recursively build path for the issuer - const subPaths = this.buildPaths(issuer); - // Construct paths by appending the issuer to each subpath - for (let j = 0; j < subPaths.length; j++) { - paths.push([issuer, ...subPaths[j]]); - } - } - return paths; - } - // Return all possible issuers for the given certificate - findIssuer(certificate) { - let issuers = []; - let keyIdentifier; - // Exit early if the certificate is self-signed - if (certificate.subject.equals(certificate.issuer)) { - if (certificate.verify()) { - return [certificate]; - } - } - // If the certificate has an authority key identifier, use that - // to find the issuer - if (certificate.extAuthorityKeyID) { - keyIdentifier = certificate.extAuthorityKeyID.keyIdentifier; - // TODO: Add support for authorityCertIssuer/authorityCertSerialNumber - // though Fulcio doesn't appear to use these - } - // Find possible issuers by comparing the authorityKeyID/subjectKeyID - // or issuer/subject. Potential issuers are added to the result array. - this.localCerts.forEach((possibleIssuer) => { - if (keyIdentifier) { - if (possibleIssuer.extSubjectKeyID) { - if (possibleIssuer.extSubjectKeyID.keyIdentifier.equals(keyIdentifier)) { - issuers.push(possibleIssuer); - } - return; - } - } - // Fallback to comparing certificate issuer and subject if - // subjectKey/authorityKey extensions are not present - if (possibleIssuer.subject.equals(certificate.issuer)) { - issuers.push(possibleIssuer); - } - }); - // Remove any issuers which fail to verify the certificate - issuers = issuers.filter((issuer) => { - try { - return certificate.verify(issuer); - } - catch (ex) { - /* istanbul ignore next - should never error */ - return false; - } - }); - return issuers; - } - checkPath(path) { - /* istanbul ignore if */ - if (path.length < 1) { - throw new error_1.VerificationError({ - code: 'CERTIFICATE_ERROR', - message: 'certificate chain must contain at least one certificate', - }); - } - // Ensure that all certificates beyond the leaf are CAs - const validCAs = path.slice(1).every((cert) => cert.isCA); - if (!validCAs) { - throw new error_1.VerificationError({ - code: 'CERTIFICATE_ERROR', - message: 'intermediate certificate is not a CA', - }); - } - // Certificate's issuer must match the subject of the next certificate - // in the chain - for (let i = path.length - 2; i >= 0; i--) { - /* istanbul ignore if */ - if (!path[i].issuer.equals(path[i + 1].subject)) { - throw new error_1.VerificationError({ - code: 'CERTIFICATE_ERROR', - message: 'incorrect certificate name chaining', - }); - } - } - // Check pathlength constraints - for (let i = 0; i < path.length; i++) { - const cert = path[i]; - // If the certificate is a CA, check the path length - if (cert.extBasicConstraints?.isCA) { - const pathLength = cert.extBasicConstraints.pathLenConstraint; - // The path length, if set, indicates how many intermediate - // certificates (NOT including the leaf) are allowed to follow. The - // pathLength constraint of any intermediate CA certificate MUST be - // greater than or equal to it's own depth in the chain (with an - // adjustment for the leaf certificate) - if (pathLength !== undefined && pathLength < i - 1) { - throw new error_1.VerificationError({ - code: 'CERTIFICATE_ERROR', - message: 'path length constraint exceeded', - }); - } - } - } - } -} -exports.CertificateChainVerifier = CertificateChainVerifier; -// Remove duplicate certificates from the array -function dedupeCertificates(certs) { - for (let i = 0; i < certs.length; i++) { - for (let j = i + 1; j < certs.length; j++) { - if (certs[i].equals(certs[j])) { - certs.splice(j, 1); - j--; - } - } - } - return certs; -} diff --git a/node_modules/@sigstore/verify/dist/key/index.d.ts b/node_modules/@sigstore/verify/dist/key/index.d.ts deleted file mode 100644 index e96d36d3..00000000 --- a/node_modules/@sigstore/verify/dist/key/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { X509Certificate } from '@sigstore/core'; -import { VerifiedSCTProvider } from './sct'; -import type { Signer } from '../shared.types'; -import type { TrustMaterial } from '../trust'; -export type CertificateVerificationResult = { - signer: Signer; - scts: VerifiedSCTProvider[]; -}; -export declare function verifyPublicKey(hint: string, timestamps: Date[], trustMaterial: TrustMaterial): Signer; -export declare function verifyCertificate(leaf: X509Certificate, timestamps: Date[], trustMaterial: TrustMaterial): CertificateVerificationResult; diff --git a/node_modules/@sigstore/verify/dist/key/index.js b/node_modules/@sigstore/verify/dist/key/index.js deleted file mode 100644 index 682a3068..00000000 --- a/node_modules/@sigstore/verify/dist/key/index.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.verifyCertificate = exports.verifyPublicKey = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const core_1 = require("@sigstore/core"); -const error_1 = require("../error"); -const certificate_1 = require("./certificate"); -const sct_1 = require("./sct"); -const OID_FULCIO_ISSUER_V1 = '1.3.6.1.4.1.57264.1.1'; -const OID_FULCIO_ISSUER_V2 = '1.3.6.1.4.1.57264.1.8'; -function verifyPublicKey(hint, timestamps, trustMaterial) { - const key = trustMaterial.publicKey(hint); - timestamps.forEach((timestamp) => { - if (!key.validFor(timestamp)) { - throw new error_1.VerificationError({ - code: 'PUBLIC_KEY_ERROR', - message: `Public key is not valid for timestamp: ${timestamp.toISOString()}`, - }); - } - }); - return { key: key.publicKey }; -} -exports.verifyPublicKey = verifyPublicKey; -function verifyCertificate(leaf, timestamps, trustMaterial) { - // Check that leaf certificate chains to a trusted CA - const path = (0, certificate_1.verifyCertificateChain)(leaf, trustMaterial.certificateAuthorities); - // Check that ALL certificates are valid for ALL of the timestamps - const validForDate = timestamps.every((timestamp) => path.every((cert) => cert.validForDate(timestamp))); - if (!validForDate) { - throw new error_1.VerificationError({ - code: 'CERTIFICATE_ERROR', - message: 'certificate is not valid or expired at the specified date', - }); - } - return { - scts: (0, sct_1.verifySCTs)(path[0], path[1], trustMaterial.ctlogs), - signer: getSigner(path[0]), - }; -} -exports.verifyCertificate = verifyCertificate; -function getSigner(cert) { - let issuer; - const issuerExtension = cert.extension(OID_FULCIO_ISSUER_V2); - if (issuerExtension) { - issuer = issuerExtension.valueObj.subs?.[0]?.value.toString('ascii'); - } - else { - issuer = cert.extension(OID_FULCIO_ISSUER_V1)?.value.toString('ascii'); - } - const identity = { - extensions: { issuer }, - subjectAlternativeName: cert.subjectAltName, - }; - return { - key: core_1.crypto.createPublicKey(cert.publicKey), - identity, - }; -} diff --git a/node_modules/@sigstore/verify/dist/key/sct.d.ts b/node_modules/@sigstore/verify/dist/key/sct.d.ts deleted file mode 100644 index d0f0d3e9..00000000 --- a/node_modules/@sigstore/verify/dist/key/sct.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -import { X509Certificate } from '@sigstore/core'; -import type { TLogAuthority } from '../trust'; -export type VerifiedSCTProvider = Buffer; -export declare function verifySCTs(cert: X509Certificate, issuer: X509Certificate, ctlogs: TLogAuthority[]): VerifiedSCTProvider[]; diff --git a/node_modules/@sigstore/verify/dist/key/sct.js b/node_modules/@sigstore/verify/dist/key/sct.js deleted file mode 100644 index aea41284..00000000 --- a/node_modules/@sigstore/verify/dist/key/sct.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.verifySCTs = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const core_1 = require("@sigstore/core"); -const error_1 = require("../error"); -const trust_1 = require("../trust"); -function verifySCTs(cert, issuer, ctlogs) { - let extSCT; - // Verifying the SCT requires that we remove the SCT extension and - // re-encode the TBS structure to DER -- this value is part of the data - // over which the signature is calculated. Since this is a destructive action - // we create a copy of the certificate so we can remove the SCT extension - // without affecting the original certificate. - const clone = cert.clone(); - // Intentionally not using the findExtension method here because we want to - // remove the the SCT extension from the certificate before calculating the - // PreCert structure - for (let i = 0; i < clone.extensions.length; i++) { - const ext = clone.extensions[i]; - if (ext.subs[0].toOID() === core_1.EXTENSION_OID_SCT) { - extSCT = new core_1.X509SCTExtension(ext); - // Remove the extension from the certificate - clone.extensions.splice(i, 1); - break; - } - } - // No SCT extension found to verify - if (!extSCT) { - return []; - } - // Found an SCT extension but it has no SCTs - /* istanbul ignore if -- too difficult to fabricate test case for this */ - if (extSCT.signedCertificateTimestamps.length === 0) { - return []; - } - // Construct the PreCert structure - // https://www.rfc-editor.org/rfc/rfc6962#section-3.2 - const preCert = new core_1.ByteStream(); - // Calculate hash of the issuer's public key - const issuerId = core_1.crypto.hash(issuer.publicKey); - preCert.appendView(issuerId); - // Re-encodes the certificate to DER after removing the SCT extension - const tbs = clone.tbsCertificate.toDER(); - preCert.appendUint24(tbs.length); - preCert.appendView(tbs); - // Calculate and return the verification results for each SCT - return extSCT.signedCertificateTimestamps.map((sct) => { - // Find the ctlog instance that corresponds to the SCT's logID - const validCTLogs = (0, trust_1.filterTLogAuthorities)(ctlogs, { - logID: sct.logID, - targetDate: sct.datetime, - }); - // See if the SCT is valid for any of the CT logs - const verified = validCTLogs.some((log) => sct.verify(preCert.buffer, log.publicKey)); - if (!verified) { - throw new error_1.VerificationError({ - code: 'CERTIFICATE_ERROR', - message: 'SCT verification failed', - }); - } - return sct.logID; - }); -} -exports.verifySCTs = verifySCTs; diff --git a/node_modules/@sigstore/verify/dist/policy.d.ts b/node_modules/@sigstore/verify/dist/policy.d.ts deleted file mode 100644 index 6fd68931..00000000 --- a/node_modules/@sigstore/verify/dist/policy.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { CertificateExtensions } from './shared.types'; -export declare function verifySubjectAlternativeName(policyIdentity: string, signerIdentity: string | undefined): void; -export declare function verifyExtensions(policyExtensions: CertificateExtensions, signerExtensions?: CertificateExtensions): void; diff --git a/node_modules/@sigstore/verify/dist/policy.js b/node_modules/@sigstore/verify/dist/policy.js deleted file mode 100644 index 731e5c83..00000000 --- a/node_modules/@sigstore/verify/dist/policy.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.verifyExtensions = exports.verifySubjectAlternativeName = void 0; -const error_1 = require("./error"); -function verifySubjectAlternativeName(policyIdentity, signerIdentity) { - if (signerIdentity === undefined || !signerIdentity.match(policyIdentity)) { - throw new error_1.PolicyError({ - code: 'UNTRUSTED_SIGNER_ERROR', - message: `certificate identity error - expected ${policyIdentity}, got ${signerIdentity}`, - }); - } -} -exports.verifySubjectAlternativeName = verifySubjectAlternativeName; -function verifyExtensions(policyExtensions, signerExtensions = {}) { - let key; - for (key in policyExtensions) { - if (signerExtensions[key] !== policyExtensions[key]) { - throw new error_1.PolicyError({ - code: 'UNTRUSTED_SIGNER_ERROR', - message: `invalid certificate extension - expected ${key}=${policyExtensions[key]}, got ${key}=${signerExtensions[key]}`, - }); - } - } -} -exports.verifyExtensions = verifyExtensions; diff --git a/node_modules/@sigstore/verify/dist/shared.types.d.ts b/node_modules/@sigstore/verify/dist/shared.types.d.ts deleted file mode 100644 index 02f7c4d8..00000000 --- a/node_modules/@sigstore/verify/dist/shared.types.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -/// -/// -import type { TransparencyLogEntry } from '@sigstore/bundle'; -import type { RFC3161Timestamp, X509Certificate, crypto } from '@sigstore/core'; -export type CertificateExtensionName = 'issuer'; -export type CertificateExtensions = { - [key in CertificateExtensionName]?: string; -}; -export type CertificateIdentity = { - subjectAlternativeName?: string; - extensions?: CertificateExtensions; -}; -export type VerificationPolicy = CertificateIdentity; -export type Signer = { - key: crypto.KeyObject; - identity?: CertificateIdentity; -}; -export type Timestamp = { - $case: 'timestamp-authority'; - timestamp: RFC3161Timestamp; -} | { - $case: 'transparency-log'; - tlogEntry: TransparencyLogEntry; -}; -export type VerificationKey = { - $case: 'public-key'; - hint: string; -} | { - $case: 'certificate'; - certificate: X509Certificate; -}; -export type SignatureContent = { - signature: Buffer; - compareSignature(signature: Buffer): boolean; - compareDigest(digest: Buffer): boolean; - verifySignature(key: crypto.KeyObject): boolean; -}; -export type TimestampProvider = { - timestamps: Timestamp[]; -}; -export type SignatureProvider = { - signature: SignatureContent; -}; -export type KeyProvider = { - key: VerificationKey; -}; -export type TLogEntryProvider = { - tlogEntries: TransparencyLogEntry[]; -}; -export type SignedEntity = SignatureProvider & KeyProvider & TimestampProvider & TLogEntryProvider; diff --git a/node_modules/@sigstore/verify/dist/shared.types.js b/node_modules/@sigstore/verify/dist/shared.types.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@sigstore/verify/dist/shared.types.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@sigstore/verify/dist/timestamp/checkpoint.d.ts b/node_modules/@sigstore/verify/dist/timestamp/checkpoint.d.ts deleted file mode 100644 index 397db2d7..00000000 --- a/node_modules/@sigstore/verify/dist/timestamp/checkpoint.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { TLogAuthority } from '../trust'; -import type { TLogEntryWithInclusionProof } from '@sigstore/bundle'; -export declare function verifyCheckpoint(entry: TLogEntryWithInclusionProof, tlogs: TLogAuthority[]): void; diff --git a/node_modules/@sigstore/verify/dist/timestamp/checkpoint.js b/node_modules/@sigstore/verify/dist/timestamp/checkpoint.js deleted file mode 100644 index 04a87383..00000000 --- a/node_modules/@sigstore/verify/dist/timestamp/checkpoint.js +++ /dev/null @@ -1,158 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.verifyCheckpoint = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const core_1 = require("@sigstore/core"); -const error_1 = require("../error"); -const trust_1 = require("../trust"); -// Separator between the note and the signatures in a checkpoint -const CHECKPOINT_SEPARATOR = '\n\n'; -// Checkpoint signatures are of the following form: -// "– \n" -// where: -// - the prefix is an emdash (U+2014). -// - gives a human-readable representation of the signing ID. -// - is the first 4 bytes of the SHA256 hash of the -// associated public key followed by the signature bytes. -const SIGNATURE_REGEX = /\u2014 (\S+) (\S+)\n/g; -// Verifies the checkpoint value in the given tlog entry. There are two steps -// to the verification: -// 1. Verify that all signatures in the checkpoint can be verified against a -// trusted public key -// 2. Verify that the root hash in the checkpoint matches the root hash in the -// inclusion proof -// See: https://github.com/transparency-dev/formats/blob/main/log/README.md -function verifyCheckpoint(entry, tlogs) { - // Filter tlog instances to just those which were valid at the time of the - // entry - const validTLogs = (0, trust_1.filterTLogAuthorities)(tlogs, { - targetDate: new Date(Number(entry.integratedTime) * 1000), - }); - const inclusionProof = entry.inclusionProof; - const signedNote = SignedNote.fromString(inclusionProof.checkpoint.envelope); - const checkpoint = LogCheckpoint.fromString(signedNote.note); - // Verify that the signatures in the checkpoint are all valid - if (!verifySignedNote(signedNote, validTLogs)) { - throw new error_1.VerificationError({ - code: 'TLOG_INCLUSION_PROOF_ERROR', - message: 'invalid checkpoint signature', - }); - } - // Verify that the root hash from the checkpoint matches the root hash in the - // inclusion proof - if (!core_1.crypto.bufferEqual(checkpoint.logHash, inclusionProof.rootHash)) { - throw new error_1.VerificationError({ - code: 'TLOG_INCLUSION_PROOF_ERROR', - message: 'root hash mismatch', - }); - } -} -exports.verifyCheckpoint = verifyCheckpoint; -// Verifies the signatures in the SignedNote. For each signature, the -// corresponding transparency log is looked up by the key hint and the -// signature is verified against the public key in the transparency log. -// Throws an error if any of the signatures are invalid. -function verifySignedNote(signedNote, tlogs) { - const data = Buffer.from(signedNote.note, 'utf-8'); - return signedNote.signatures.every((signature) => { - // Find the transparency log instance with the matching key hint - const tlog = tlogs.find((tlog) => core_1.crypto.bufferEqual(tlog.logID.subarray(0, 4), signature.keyHint)); - if (!tlog) { - return false; - } - return core_1.crypto.verify(data, tlog.publicKey, signature.signature); - }); -} -// SignedNote represents a signed note from a transparency log checkpoint. Consists -// of a body (or note) and one more signatures calculated over the body. See -// https://github.com/transparency-dev/formats/blob/main/log/README.md#signed-envelope -class SignedNote { - constructor(note, signatures) { - this.note = note; - this.signatures = signatures; - } - // Deserialize a SignedNote from a string - static fromString(envelope) { - if (!envelope.includes(CHECKPOINT_SEPARATOR)) { - throw new error_1.VerificationError({ - code: 'TLOG_INCLUSION_PROOF_ERROR', - message: 'missing checkpoint separator', - }); - } - // Split the note into the header and the data portions at the separator - const split = envelope.indexOf(CHECKPOINT_SEPARATOR); - const header = envelope.slice(0, split + 1); - const data = envelope.slice(split + CHECKPOINT_SEPARATOR.length); - // Find all the signature lines in the data portion - const matches = data.matchAll(SIGNATURE_REGEX); - // Parse each of the matched signature lines into the name and signature. - // The first four bytes of the signature are the key hint (should match the - // first four bytes of the log ID), and the rest is the signature itself. - const signatures = Array.from(matches, (match) => { - const [, name, signature] = match; - const sigBytes = Buffer.from(signature, 'base64'); - if (sigBytes.length < 5) { - throw new error_1.VerificationError({ - code: 'TLOG_INCLUSION_PROOF_ERROR', - message: 'malformed checkpoint signature', - }); - } - return { - name, - keyHint: sigBytes.subarray(0, 4), - signature: sigBytes.subarray(4), - }; - }); - if (signatures.length === 0) { - throw new error_1.VerificationError({ - code: 'TLOG_INCLUSION_PROOF_ERROR', - message: 'no signatures found in checkpoint', - }); - } - return new SignedNote(header, signatures); - } -} -// LogCheckpoint represents a transparency log checkpoint. Consists of the -// following: -// - origin: the name of the transparency log -// - logSize: the size of the log at the time of the checkpoint -// - logHash: the root hash of the log at the time of the checkpoint -// - rest: the rest of the checkpoint body, which is a list of log entries -// See: -// https://github.com/transparency-dev/formats/blob/main/log/README.md#checkpoint-body -class LogCheckpoint { - constructor(origin, logSize, logHash, rest) { - this.origin = origin; - this.logSize = logSize; - this.logHash = logHash; - this.rest = rest; - } - static fromString(note) { - const lines = note.trimEnd().split('\n'); - if (lines.length < 3) { - throw new error_1.VerificationError({ - code: 'TLOG_INCLUSION_PROOF_ERROR', - message: 'too few lines in checkpoint header', - }); - } - const origin = lines[0]; - const logSize = BigInt(lines[1]); - const rootHash = Buffer.from(lines[2], 'base64'); - const rest = lines.slice(3); - return new LogCheckpoint(origin, logSize, rootHash, rest); - } -} diff --git a/node_modules/@sigstore/verify/dist/timestamp/index.d.ts b/node_modules/@sigstore/verify/dist/timestamp/index.d.ts deleted file mode 100644 index 9a368329..00000000 --- a/node_modules/@sigstore/verify/dist/timestamp/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/// -import { RFC3161Timestamp } from '@sigstore/core'; -import type { TransparencyLogEntry } from '@sigstore/bundle'; -import type { CertAuthority, TLogAuthority } from '../trust'; -export type TimestampType = 'transparency-log' | 'timestamp-authority'; -export type TimestampVerificationResult = { - type: TimestampType; - logID: Buffer; - timestamp: Date; -}; -export declare function verifyTSATimestamp(timestamp: RFC3161Timestamp, data: Buffer, timestampAuthorities: CertAuthority[]): TimestampVerificationResult; -export declare function verifyTLogTimestamp(entry: TransparencyLogEntry, tlogAuthorities: TLogAuthority[]): TimestampVerificationResult; diff --git a/node_modules/@sigstore/verify/dist/timestamp/index.js b/node_modules/@sigstore/verify/dist/timestamp/index.js deleted file mode 100644 index 0da554f6..00000000 --- a/node_modules/@sigstore/verify/dist/timestamp/index.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.verifyTLogTimestamp = exports.verifyTSATimestamp = void 0; -const error_1 = require("../error"); -const checkpoint_1 = require("./checkpoint"); -const merkle_1 = require("./merkle"); -const set_1 = require("./set"); -const tsa_1 = require("./tsa"); -function verifyTSATimestamp(timestamp, data, timestampAuthorities) { - (0, tsa_1.verifyRFC3161Timestamp)(timestamp, data, timestampAuthorities); - return { - type: 'timestamp-authority', - logID: timestamp.signerSerialNumber, - timestamp: timestamp.signingTime, - }; -} -exports.verifyTSATimestamp = verifyTSATimestamp; -function verifyTLogTimestamp(entry, tlogAuthorities) { - let inclusionVerified = false; - if (isTLogEntryWithInclusionPromise(entry)) { - (0, set_1.verifyTLogSET)(entry, tlogAuthorities); - inclusionVerified = true; - } - if (isTLogEntryWithInclusionProof(entry)) { - (0, merkle_1.verifyMerkleInclusion)(entry); - (0, checkpoint_1.verifyCheckpoint)(entry, tlogAuthorities); - inclusionVerified = true; - } - if (!inclusionVerified) { - throw new error_1.VerificationError({ - code: 'TLOG_MISSING_INCLUSION_ERROR', - message: 'inclusion could not be verified', - }); - } - return { - type: 'transparency-log', - logID: entry.logId.keyId, - timestamp: new Date(Number(entry.integratedTime) * 1000), - }; -} -exports.verifyTLogTimestamp = verifyTLogTimestamp; -function isTLogEntryWithInclusionPromise(entry) { - return entry.inclusionPromise !== undefined; -} -function isTLogEntryWithInclusionProof(entry) { - return entry.inclusionProof !== undefined; -} diff --git a/node_modules/@sigstore/verify/dist/timestamp/merkle.d.ts b/node_modules/@sigstore/verify/dist/timestamp/merkle.d.ts deleted file mode 100644 index 553e0dfb..00000000 --- a/node_modules/@sigstore/verify/dist/timestamp/merkle.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { TLogEntryWithInclusionProof } from '@sigstore/bundle'; -export declare function verifyMerkleInclusion(entry: TLogEntryWithInclusionProof): void; diff --git a/node_modules/@sigstore/verify/dist/timestamp/merkle.js b/node_modules/@sigstore/verify/dist/timestamp/merkle.js deleted file mode 100644 index 9895d01b..00000000 --- a/node_modules/@sigstore/verify/dist/timestamp/merkle.js +++ /dev/null @@ -1,105 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.verifyMerkleInclusion = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const core_1 = require("@sigstore/core"); -const error_1 = require("../error"); -const RFC6962_LEAF_HASH_PREFIX = Buffer.from([0x00]); -const RFC6962_NODE_HASH_PREFIX = Buffer.from([0x01]); -function verifyMerkleInclusion(entry) { - const inclusionProof = entry.inclusionProof; - const logIndex = BigInt(inclusionProof.logIndex); - const treeSize = BigInt(inclusionProof.treeSize); - if (logIndex < 0n || logIndex >= treeSize) { - throw new error_1.VerificationError({ - code: 'TLOG_INCLUSION_PROOF_ERROR', - message: `invalid index: ${logIndex}`, - }); - } - // Figure out which subset of hashes corresponds to the inner and border - // nodes - const { inner, border } = decompInclProof(logIndex, treeSize); - if (inclusionProof.hashes.length !== inner + border) { - throw new error_1.VerificationError({ - code: 'TLOG_INCLUSION_PROOF_ERROR', - message: 'invalid hash count', - }); - } - const innerHashes = inclusionProof.hashes.slice(0, inner); - const borderHashes = inclusionProof.hashes.slice(inner); - // The entry's hash is the leaf hash - const leafHash = hashLeaf(entry.canonicalizedBody); - // Chain the hashes belonging to the inner and border portions - const calculatedHash = chainBorderRight(chainInner(leafHash, innerHashes, logIndex), borderHashes); - // Calculated hash should match the root hash in the inclusion proof - if (!core_1.crypto.bufferEqual(calculatedHash, inclusionProof.rootHash)) { - throw new error_1.VerificationError({ - code: 'TLOG_INCLUSION_PROOF_ERROR', - message: 'calculated root hash does not match inclusion proof', - }); - } -} -exports.verifyMerkleInclusion = verifyMerkleInclusion; -// Breaks down inclusion proof for a leaf at the specified index in a tree of -// the specified size. The split point is where paths to the index leaf and -// the (size - 1) leaf diverge. Returns lengths of the bottom and upper proof -// parts. -function decompInclProof(index, size) { - const inner = innerProofSize(index, size); - const border = onesCount(index >> BigInt(inner)); - return { inner, border }; -} -// Computes a subtree hash for a node on or below the tree's right border. -// Assumes the provided proof hashes are ordered from lower to higher levels -// and seed is the initial hash of the node specified by the index. -function chainInner(seed, hashes, index) { - return hashes.reduce((acc, h, i) => { - if ((index >> BigInt(i)) & BigInt(1)) { - return hashChildren(h, acc); - } - else { - return hashChildren(acc, h); - } - }, seed); -} -// Computes a subtree hash for nodes along the tree's right border. -function chainBorderRight(seed, hashes) { - return hashes.reduce((acc, h) => hashChildren(h, acc), seed); -} -function innerProofSize(index, size) { - return bitLength(index ^ (size - BigInt(1))); -} -// Counts the number of ones in the binary representation of the given number. -// https://en.wikipedia.org/wiki/Hamming_weight -function onesCount(num) { - return num.toString(2).split('1').length - 1; -} -// Returns the number of bits necessary to represent an integer in binary. -function bitLength(n) { - if (n === 0n) { - return 0; - } - return n.toString(2).length; -} -// Hashing logic according to RFC6962. -// https://datatracker.ietf.org/doc/html/rfc6962#section-2 -function hashChildren(left, right) { - return core_1.crypto.hash(RFC6962_NODE_HASH_PREFIX, left, right); -} -function hashLeaf(leaf) { - return core_1.crypto.hash(RFC6962_LEAF_HASH_PREFIX, leaf); -} diff --git a/node_modules/@sigstore/verify/dist/timestamp/set.d.ts b/node_modules/@sigstore/verify/dist/timestamp/set.d.ts deleted file mode 100644 index e869b642..00000000 --- a/node_modules/@sigstore/verify/dist/timestamp/set.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { TLogAuthority } from '../trust'; -import type { TLogEntryWithInclusionPromise } from '@sigstore/bundle'; -export declare function verifyTLogSET(entry: TLogEntryWithInclusionPromise, tlogs: TLogAuthority[]): void; diff --git a/node_modules/@sigstore/verify/dist/timestamp/set.js b/node_modules/@sigstore/verify/dist/timestamp/set.js deleted file mode 100644 index a6357c06..00000000 --- a/node_modules/@sigstore/verify/dist/timestamp/set.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.verifyTLogSET = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const core_1 = require("@sigstore/core"); -const error_1 = require("../error"); -const trust_1 = require("../trust"); -// Verifies the SET for the given entry against the list of trusted -// transparency logs. Returns true if the SET can be verified against at least -// one of the trusted logs; otherwise, returns false. -function verifyTLogSET(entry, tlogs) { - // Filter the list of tlog instances to only those which might be able to - // verify the SET - const validTLogs = (0, trust_1.filterTLogAuthorities)(tlogs, { - logID: entry.logId.keyId, - targetDate: new Date(Number(entry.integratedTime) * 1000), - }); - // Check to see if we can verify the SET against any of the valid tlogs - const verified = validTLogs.some((tlog) => { - // Re-create the original Rekor verification payload - const payload = toVerificationPayload(entry); - // Canonicalize the payload and turn into a buffer for verification - const data = Buffer.from(core_1.json.canonicalize(payload), 'utf8'); - // Extract the SET from the tlog entry - const signature = entry.inclusionPromise.signedEntryTimestamp; - return core_1.crypto.verify(data, tlog.publicKey, signature); - }); - if (!verified) { - throw new error_1.VerificationError({ - code: 'TLOG_INCLUSION_PROMISE_ERROR', - message: 'inclusion promise could not be verified', - }); - } -} -exports.verifyTLogSET = verifyTLogSET; -// Returns a properly formatted "VerificationPayload" for one of the -// transaction log entires in the given bundle which can be used for SET -// verification. -function toVerificationPayload(entry) { - const { integratedTime, logIndex, logId, canonicalizedBody } = entry; - return { - body: canonicalizedBody.toString('base64'), - integratedTime: Number(integratedTime), - logIndex: Number(logIndex), - logID: logId.keyId.toString('hex'), - }; -} diff --git a/node_modules/@sigstore/verify/dist/timestamp/tsa.d.ts b/node_modules/@sigstore/verify/dist/timestamp/tsa.d.ts deleted file mode 100644 index 2614f4c6..00000000 --- a/node_modules/@sigstore/verify/dist/timestamp/tsa.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/// -import { RFC3161Timestamp } from '@sigstore/core'; -import { CertAuthority } from '../trust'; -export declare function verifyRFC3161Timestamp(timestamp: RFC3161Timestamp, data: Buffer, timestampAuthorities: CertAuthority[]): void; diff --git a/node_modules/@sigstore/verify/dist/timestamp/tsa.js b/node_modules/@sigstore/verify/dist/timestamp/tsa.js deleted file mode 100644 index 7b095bc3..00000000 --- a/node_modules/@sigstore/verify/dist/timestamp/tsa.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.verifyRFC3161Timestamp = void 0; -const core_1 = require("@sigstore/core"); -const error_1 = require("../error"); -const certificate_1 = require("../key/certificate"); -const trust_1 = require("../trust"); -function verifyRFC3161Timestamp(timestamp, data, timestampAuthorities) { - const signingTime = timestamp.signingTime; - // Filter for CAs which were valid at the time of signing - timestampAuthorities = (0, trust_1.filterCertAuthorities)(timestampAuthorities, { - start: signingTime, - end: signingTime, - }); - // Filter for CAs which match serial and issuer embedded in the timestamp - timestampAuthorities = filterCAsBySerialAndIssuer(timestampAuthorities, { - serialNumber: timestamp.signerSerialNumber, - issuer: timestamp.signerIssuer, - }); - // Check that we can verify the timestamp with AT LEAST ONE of the remaining - // CAs - const verified = timestampAuthorities.some((ca) => { - try { - verifyTimestampForCA(timestamp, data, ca); - return true; - } - catch (e) { - return false; - } - }); - if (!verified) { - throw new error_1.VerificationError({ - code: 'TIMESTAMP_ERROR', - message: 'timestamp could not be verified', - }); - } -} -exports.verifyRFC3161Timestamp = verifyRFC3161Timestamp; -function verifyTimestampForCA(timestamp, data, ca) { - const [leaf, ...cas] = ca.certChain; - const signingKey = core_1.crypto.createPublicKey(leaf.publicKey); - const signingTime = timestamp.signingTime; - // Verify the certificate chain for the provided CA - try { - new certificate_1.CertificateChainVerifier({ - untrustedCert: leaf, - trustedCerts: cas, - }).verify(); - } - catch (e) { - throw new error_1.VerificationError({ - code: 'TIMESTAMP_ERROR', - message: 'invalid certificate chain', - }); - } - // Check that all of the CA certs were valid at the time of signing - const validAtSigningTime = ca.certChain.every((cert) => cert.validForDate(signingTime)); - if (!validAtSigningTime) { - throw new error_1.VerificationError({ - code: 'TIMESTAMP_ERROR', - message: 'timestamp was signed with an expired certificate', - }); - } - // Check that the signing certificate's key can be used to verify the - // timestamp signature. - timestamp.verify(data, signingKey); -} -// Filters the list of CAs to those which have a leaf signing certificate which -// matches the given serial number and issuer. -function filterCAsBySerialAndIssuer(timestampAuthorities, criteria) { - return timestampAuthorities.filter((ca) => ca.certChain.length > 0 && - core_1.crypto.bufferEqual(ca.certChain[0].serialNumber, criteria.serialNumber) && - core_1.crypto.bufferEqual(ca.certChain[0].issuer, criteria.issuer)); -} diff --git a/node_modules/@sigstore/verify/dist/tlog/dsse.d.ts b/node_modules/@sigstore/verify/dist/tlog/dsse.d.ts deleted file mode 100644 index b7fbef4b..00000000 --- a/node_modules/@sigstore/verify/dist/tlog/dsse.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ProposedDSSEEntry } from '@sigstore/rekor-types'; -import type { SignatureContent } from '../shared.types'; -export declare function verifyDSSETLogBody(tlogEntry: ProposedDSSEEntry, content: SignatureContent): void; diff --git a/node_modules/@sigstore/verify/dist/tlog/dsse.js b/node_modules/@sigstore/verify/dist/tlog/dsse.js deleted file mode 100644 index bf430e61..00000000 --- a/node_modules/@sigstore/verify/dist/tlog/dsse.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.verifyDSSETLogBody = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const error_1 = require("../error"); -// Compare the given intoto tlog entry to the given bundle -function verifyDSSETLogBody(tlogEntry, content) { - switch (tlogEntry.apiVersion) { - case '0.0.1': - return verifyDSSE001TLogBody(tlogEntry, content); - default: - throw new error_1.VerificationError({ - code: 'TLOG_BODY_ERROR', - message: `unsupported dsse version: ${tlogEntry.apiVersion}`, - }); - } -} -exports.verifyDSSETLogBody = verifyDSSETLogBody; -// Compare the given dsse v0.0.1 tlog entry to the given DSSE envelope. -function verifyDSSE001TLogBody(tlogEntry, content) { - // Ensure the bundle's DSSE only contains a single signature - if (tlogEntry.spec.signatures?.length !== 1) { - throw new error_1.VerificationError({ - code: 'TLOG_BODY_ERROR', - message: 'signature count mismatch', - }); - } - const tlogSig = tlogEntry.spec.signatures[0].signature; - // Ensure that the signature in the bundle's DSSE matches tlog entry - if (!content.compareSignature(Buffer.from(tlogSig, 'base64'))) - throw new error_1.VerificationError({ - code: 'TLOG_BODY_ERROR', - message: 'tlog entry signature mismatch', - }); - // Ensure the digest of the bundle's DSSE payload matches the digest in the - // tlog entry - const tlogHash = tlogEntry.spec.payloadHash?.value || ''; - if (!content.compareDigest(Buffer.from(tlogHash, 'hex'))) { - throw new error_1.VerificationError({ - code: 'TLOG_BODY_ERROR', - message: 'DSSE payload hash mismatch', - }); - } -} diff --git a/node_modules/@sigstore/verify/dist/tlog/hashedrekord.d.ts b/node_modules/@sigstore/verify/dist/tlog/hashedrekord.d.ts deleted file mode 100644 index 618de05c..00000000 --- a/node_modules/@sigstore/verify/dist/tlog/hashedrekord.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ProposedHashedRekordEntry } from '@sigstore/rekor-types'; -import type { SignatureContent } from '../shared.types'; -export declare function verifyHashedRekordTLogBody(tlogEntry: ProposedHashedRekordEntry, content: SignatureContent): void; diff --git a/node_modules/@sigstore/verify/dist/tlog/hashedrekord.js b/node_modules/@sigstore/verify/dist/tlog/hashedrekord.js deleted file mode 100644 index d1758858..00000000 --- a/node_modules/@sigstore/verify/dist/tlog/hashedrekord.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.verifyHashedRekordTLogBody = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const error_1 = require("../error"); -// Compare the given hashedrekord tlog entry to the given bundle -function verifyHashedRekordTLogBody(tlogEntry, content) { - switch (tlogEntry.apiVersion) { - case '0.0.1': - return verifyHashedrekord001TLogBody(tlogEntry, content); - default: - throw new error_1.VerificationError({ - code: 'TLOG_BODY_ERROR', - message: `unsupported hashedrekord version: ${tlogEntry.apiVersion}`, - }); - } -} -exports.verifyHashedRekordTLogBody = verifyHashedRekordTLogBody; -// Compare the given hashedrekord v0.0.1 tlog entry to the given message -// signature -function verifyHashedrekord001TLogBody(tlogEntry, content) { - // Ensure that the bundles message signature matches the tlog entry - const tlogSig = tlogEntry.spec.signature.content || ''; - if (!content.compareSignature(Buffer.from(tlogSig, 'base64'))) { - throw new error_1.VerificationError({ - code: 'TLOG_BODY_ERROR', - message: 'signature mismatch', - }); - } - // Ensure that the bundle's message digest matches the tlog entry - const tlogDigest = tlogEntry.spec.data.hash?.value || ''; - if (!content.compareDigest(Buffer.from(tlogDigest, 'hex'))) { - throw new error_1.VerificationError({ - code: 'TLOG_BODY_ERROR', - message: 'digest mismatch', - }); - } -} diff --git a/node_modules/@sigstore/verify/dist/tlog/index.d.ts b/node_modules/@sigstore/verify/dist/tlog/index.d.ts deleted file mode 100644 index 9bc82858..00000000 --- a/node_modules/@sigstore/verify/dist/tlog/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { TransparencyLogEntry } from '@sigstore/bundle'; -import type { SignatureContent } from '../shared.types'; -export declare function verifyTLogBody(entry: TransparencyLogEntry, sigContent: SignatureContent): void; diff --git a/node_modules/@sigstore/verify/dist/tlog/index.js b/node_modules/@sigstore/verify/dist/tlog/index.js deleted file mode 100644 index adfc70ed..00000000 --- a/node_modules/@sigstore/verify/dist/tlog/index.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.verifyTLogBody = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const error_1 = require("../error"); -const dsse_1 = require("./dsse"); -const hashedrekord_1 = require("./hashedrekord"); -const intoto_1 = require("./intoto"); -// Verifies that the given tlog entry matches the supplied signature content. -function verifyTLogBody(entry, sigContent) { - const { kind, version } = entry.kindVersion; - const body = JSON.parse(entry.canonicalizedBody.toString('utf8')); - if (kind !== body.kind || version !== body.apiVersion) { - throw new error_1.VerificationError({ - code: 'TLOG_BODY_ERROR', - message: `kind/version mismatch - expected: ${kind}/${version}, received: ${body.kind}/${body.apiVersion}`, - }); - } - switch (body.kind) { - case 'dsse': - return (0, dsse_1.verifyDSSETLogBody)(body, sigContent); - case 'intoto': - return (0, intoto_1.verifyIntotoTLogBody)(body, sigContent); - case 'hashedrekord': - return (0, hashedrekord_1.verifyHashedRekordTLogBody)(body, sigContent); - /* istanbul ignore next */ - default: - throw new error_1.VerificationError({ - code: 'TLOG_BODY_ERROR', - message: `unsupported kind: ${kind}`, - }); - } -} -exports.verifyTLogBody = verifyTLogBody; diff --git a/node_modules/@sigstore/verify/dist/tlog/intoto.d.ts b/node_modules/@sigstore/verify/dist/tlog/intoto.d.ts deleted file mode 100644 index 8f40df7a..00000000 --- a/node_modules/@sigstore/verify/dist/tlog/intoto.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ProposedIntotoEntry } from '@sigstore/rekor-types'; -import type { SignatureContent } from '../shared.types'; -export declare function verifyIntotoTLogBody(tlogEntry: ProposedIntotoEntry, content: SignatureContent): void; diff --git a/node_modules/@sigstore/verify/dist/tlog/intoto.js b/node_modules/@sigstore/verify/dist/tlog/intoto.js deleted file mode 100644 index 74c7f50d..00000000 --- a/node_modules/@sigstore/verify/dist/tlog/intoto.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.verifyIntotoTLogBody = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const error_1 = require("../error"); -// Compare the given intoto tlog entry to the given bundle -function verifyIntotoTLogBody(tlogEntry, content) { - switch (tlogEntry.apiVersion) { - case '0.0.2': - return verifyIntoto002TLogBody(tlogEntry, content); - default: - throw new error_1.VerificationError({ - code: 'TLOG_BODY_ERROR', - message: `unsupported intoto version: ${tlogEntry.apiVersion}`, - }); - } -} -exports.verifyIntotoTLogBody = verifyIntotoTLogBody; -// Compare the given intoto v0.0.2 tlog entry to the given DSSE envelope. -function verifyIntoto002TLogBody(tlogEntry, content) { - // Ensure the bundle's DSSE contains a single signature - if (tlogEntry.spec.content.envelope.signatures?.length !== 1) { - throw new error_1.VerificationError({ - code: 'TLOG_BODY_ERROR', - message: 'signature count mismatch', - }); - } - // Signature is double-base64-encoded in the tlog entry - const tlogSig = base64Decode(tlogEntry.spec.content.envelope.signatures[0].sig); - // Ensure that the signature in the bundle's DSSE matches tlog entry - if (!content.compareSignature(Buffer.from(tlogSig, 'base64'))) { - throw new error_1.VerificationError({ - code: 'TLOG_BODY_ERROR', - message: 'tlog entry signature mismatch', - }); - } - // Ensure the digest of the bundle's DSSE payload matches the digest in the - // tlog entry - const tlogHash = tlogEntry.spec.content.payloadHash?.value || ''; - if (!content.compareDigest(Buffer.from(tlogHash, 'hex'))) { - throw new error_1.VerificationError({ - code: 'TLOG_BODY_ERROR', - message: 'DSSE payload hash mismatch', - }); - } -} -function base64Decode(str) { - return Buffer.from(str, 'base64').toString('utf-8'); -} diff --git a/node_modules/@sigstore/verify/dist/trust/filter.d.ts b/node_modules/@sigstore/verify/dist/trust/filter.d.ts deleted file mode 100644 index 57ac5469..00000000 --- a/node_modules/@sigstore/verify/dist/trust/filter.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -import type { CertAuthority, TLogAuthority } from './trust.types'; -type CertAuthorityFilterCriteria = { - start: Date; - end: Date; -}; -export declare function filterCertAuthorities(certAuthorities: CertAuthority[], criteria: CertAuthorityFilterCriteria): CertAuthority[]; -type TLogAuthorityFilterCriteria = { - targetDate: Date; - logID?: Buffer; -}; -export declare function filterTLogAuthorities(tlogAuthorities: TLogAuthority[], criteria: TLogAuthorityFilterCriteria): TLogAuthority[]; -export {}; diff --git a/node_modules/@sigstore/verify/dist/trust/filter.js b/node_modules/@sigstore/verify/dist/trust/filter.js deleted file mode 100644 index c09d0559..00000000 --- a/node_modules/@sigstore/verify/dist/trust/filter.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.filterTLogAuthorities = exports.filterCertAuthorities = void 0; -function filterCertAuthorities(certAuthorities, criteria) { - return certAuthorities.filter((ca) => { - return (ca.validFor.start <= criteria.start && ca.validFor.end >= criteria.end); - }); -} -exports.filterCertAuthorities = filterCertAuthorities; -// Filter the list of tlog instances to only those which match the given log -// ID and have public keys which are valid for the given integrated time. -function filterTLogAuthorities(tlogAuthorities, criteria) { - return tlogAuthorities.filter((tlog) => { - // If we're filtering by log ID and the log IDs don't match, we can't use - // this tlog - if (criteria.logID && !tlog.logID.equals(criteria.logID)) { - return false; - } - // Check that the integrated time is within the validFor range - return (tlog.validFor.start <= criteria.targetDate && - criteria.targetDate <= tlog.validFor.end); - }); -} -exports.filterTLogAuthorities = filterTLogAuthorities; diff --git a/node_modules/@sigstore/verify/dist/trust/index.d.ts b/node_modules/@sigstore/verify/dist/trust/index.d.ts deleted file mode 100644 index 7bb30578..00000000 --- a/node_modules/@sigstore/verify/dist/trust/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { type PublicKey, type TrustedRoot } from '@sigstore/protobuf-specs'; -import type { KeyFinderFunc, TrustMaterial } from './trust.types'; -export { filterCertAuthorities, filterTLogAuthorities } from './filter'; -export type { CertAuthority, KeyFinderFunc, TLogAuthority, TrustMaterial, } from './trust.types'; -export declare function toTrustMaterial(root: TrustedRoot, keys?: Record | KeyFinderFunc): TrustMaterial; diff --git a/node_modules/@sigstore/verify/dist/trust/index.js b/node_modules/@sigstore/verify/dist/trust/index.js deleted file mode 100644 index 954de558..00000000 --- a/node_modules/@sigstore/verify/dist/trust/index.js +++ /dev/null @@ -1,84 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toTrustMaterial = exports.filterTLogAuthorities = exports.filterCertAuthorities = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const core_1 = require("@sigstore/core"); -const protobuf_specs_1 = require("@sigstore/protobuf-specs"); -const error_1 = require("../error"); -const BEGINNING_OF_TIME = new Date(0); -const END_OF_TIME = new Date(8640000000000000); -var filter_1 = require("./filter"); -Object.defineProperty(exports, "filterCertAuthorities", { enumerable: true, get: function () { return filter_1.filterCertAuthorities; } }); -Object.defineProperty(exports, "filterTLogAuthorities", { enumerable: true, get: function () { return filter_1.filterTLogAuthorities; } }); -function toTrustMaterial(root, keys) { - const keyFinder = typeof keys === 'function' ? keys : keyLocator(keys); - return { - certificateAuthorities: root.certificateAuthorities.map(createCertAuthority), - timestampAuthorities: root.timestampAuthorities.map(createCertAuthority), - tlogs: root.tlogs.map(createTLogAuthority), - ctlogs: root.ctlogs.map(createTLogAuthority), - publicKey: keyFinder, - }; -} -exports.toTrustMaterial = toTrustMaterial; -function createTLogAuthority(tlogInstance) { - const keyDetails = tlogInstance.publicKey.keyDetails; - const keyType = keyDetails === protobuf_specs_1.PublicKeyDetails.PKCS1_RSA_PKCS1V5 || - keyDetails === protobuf_specs_1.PublicKeyDetails.PKIX_RSA_PKCS1V5 || - keyDetails === protobuf_specs_1.PublicKeyDetails.PKIX_RSA_PKCS1V15_2048_SHA256 || - keyDetails === protobuf_specs_1.PublicKeyDetails.PKIX_RSA_PKCS1V15_3072_SHA256 || - keyDetails === protobuf_specs_1.PublicKeyDetails.PKIX_RSA_PKCS1V15_4096_SHA256 - ? 'pkcs1' - : 'spki'; - return { - logID: tlogInstance.logId.keyId, - publicKey: core_1.crypto.createPublicKey(tlogInstance.publicKey.rawBytes, keyType), - validFor: { - start: tlogInstance.publicKey.validFor?.start || BEGINNING_OF_TIME, - end: tlogInstance.publicKey.validFor?.end || END_OF_TIME, - }, - }; -} -function createCertAuthority(ca) { - return { - certChain: ca.certChain.certificates.map((cert) => { - return core_1.X509Certificate.parse(cert.rawBytes); - }), - validFor: { - start: ca.validFor?.start || BEGINNING_OF_TIME, - end: ca.validFor?.end || END_OF_TIME, - }, - }; -} -function keyLocator(keys) { - return (hint) => { - const key = (keys || {})[hint]; - if (!key) { - throw new error_1.VerificationError({ - code: 'PUBLIC_KEY_ERROR', - message: `key not found: ${hint}`, - }); - } - return { - publicKey: core_1.crypto.createPublicKey(key.rawBytes), - validFor: (date) => { - return ((key.validFor?.start || BEGINNING_OF_TIME) <= date && - (key.validFor?.end || END_OF_TIME) >= date); - }, - }; - }; -} diff --git a/node_modules/@sigstore/verify/dist/trust/trust.types.d.ts b/node_modules/@sigstore/verify/dist/trust/trust.types.d.ts deleted file mode 100644 index c7b9294b..00000000 --- a/node_modules/@sigstore/verify/dist/trust/trust.types.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/// -/// -import type { X509Certificate, crypto } from '@sigstore/core'; -export type TLogAuthority = { - logID: Buffer; - publicKey: crypto.KeyObject; - validFor: { - start: Date; - end: Date; - }; -}; -export type CertAuthority = { - certChain: X509Certificate[]; - validFor: { - start: Date; - end: Date; - }; -}; -export type TimeConstrainedKey = { - publicKey: crypto.KeyObject; - validFor(date: Date): boolean; -}; -export type KeyFinderFunc = (hint: string) => TimeConstrainedKey; -export type TrustMaterial = { - certificateAuthorities: CertAuthority[]; - timestampAuthorities: CertAuthority[]; - tlogs: TLogAuthority[]; - ctlogs: TLogAuthority[]; - publicKey: KeyFinderFunc; -}; diff --git a/node_modules/@sigstore/verify/dist/trust/trust.types.js b/node_modules/@sigstore/verify/dist/trust/trust.types.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@sigstore/verify/dist/trust/trust.types.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@sigstore/verify/dist/verifier.d.ts b/node_modules/@sigstore/verify/dist/verifier.d.ts deleted file mode 100644 index 20791195..00000000 --- a/node_modules/@sigstore/verify/dist/verifier.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type { SignedEntity, Signer, VerificationPolicy } from './shared.types'; -import type { TrustMaterial } from './trust'; -export type VerifierOptions = { - tlogThreshold?: number; - ctlogThreshold?: number; - tsaThreshold?: number; -}; -export declare class Verifier { - private trustMaterial; - private options; - constructor(trustMaterial: TrustMaterial, options?: VerifierOptions); - verify(entity: SignedEntity, policy?: VerificationPolicy): Signer; - private verifyTimestamps; - private verifySigningKey; - private verifyTLogs; - private verifySignature; - private verifyPolicy; -} diff --git a/node_modules/@sigstore/verify/dist/verifier.js b/node_modules/@sigstore/verify/dist/verifier.js deleted file mode 100644 index 829727cd..00000000 --- a/node_modules/@sigstore/verify/dist/verifier.js +++ /dev/null @@ -1,141 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Verifier = void 0; -/* -Copyright 2023 The Sigstore Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -const util_1 = require("util"); -const error_1 = require("./error"); -const key_1 = require("./key"); -const policy_1 = require("./policy"); -const timestamp_1 = require("./timestamp"); -const tlog_1 = require("./tlog"); -class Verifier { - constructor(trustMaterial, options = {}) { - this.trustMaterial = trustMaterial; - this.options = { - ctlogThreshold: options.ctlogThreshold ?? 1, - tlogThreshold: options.tlogThreshold ?? 1, - tsaThreshold: options.tsaThreshold ?? 0, - }; - } - verify(entity, policy) { - const timestamps = this.verifyTimestamps(entity); - const signer = this.verifySigningKey(entity, timestamps); - this.verifyTLogs(entity); - this.verifySignature(entity, signer); - if (policy) { - this.verifyPolicy(policy, signer.identity || {}); - } - return signer; - } - // Checks that all of the timestamps in the entity are valid and returns them - verifyTimestamps(entity) { - let tlogCount = 0; - let tsaCount = 0; - const timestamps = entity.timestamps.map((timestamp) => { - switch (timestamp.$case) { - case 'timestamp-authority': - tsaCount++; - return (0, timestamp_1.verifyTSATimestamp)(timestamp.timestamp, entity.signature.signature, this.trustMaterial.timestampAuthorities); - case 'transparency-log': - tlogCount++; - return (0, timestamp_1.verifyTLogTimestamp)(timestamp.tlogEntry, this.trustMaterial.tlogs); - } - }); - // Check for duplicate timestamps - if (containsDupes(timestamps)) { - throw new error_1.VerificationError({ - code: 'TIMESTAMP_ERROR', - message: 'duplicate timestamp', - }); - } - if (tlogCount < this.options.tlogThreshold) { - throw new error_1.VerificationError({ - code: 'TIMESTAMP_ERROR', - message: `expected ${this.options.tlogThreshold} tlog timestamps, got ${tlogCount}`, - }); - } - if (tsaCount < this.options.tsaThreshold) { - throw new error_1.VerificationError({ - code: 'TIMESTAMP_ERROR', - message: `expected ${this.options.tsaThreshold} tsa timestamps, got ${tsaCount}`, - }); - } - return timestamps.map((t) => t.timestamp); - } - // Checks that the signing key is valid for all of the the supplied timestamps - // and returns the signer. - verifySigningKey({ key }, timestamps) { - switch (key.$case) { - case 'public-key': { - return (0, key_1.verifyPublicKey)(key.hint, timestamps, this.trustMaterial); - } - case 'certificate': { - const result = (0, key_1.verifyCertificate)(key.certificate, timestamps, this.trustMaterial); - /* istanbul ignore next - no fixture */ - if (containsDupes(result.scts)) { - throw new error_1.VerificationError({ - code: 'CERTIFICATE_ERROR', - message: 'duplicate SCT', - }); - } - if (result.scts.length < this.options.ctlogThreshold) { - throw new error_1.VerificationError({ - code: 'CERTIFICATE_ERROR', - message: `expected ${this.options.ctlogThreshold} SCTs, got ${result.scts.length}`, - }); - } - return result.signer; - } - } - } - // Checks that the tlog entries are valid for the supplied content - verifyTLogs({ signature: content, tlogEntries }) { - tlogEntries.forEach((entry) => (0, tlog_1.verifyTLogBody)(entry, content)); - } - // Checks that the signature is valid for the supplied content - verifySignature(entity, signer) { - if (!entity.signature.verifySignature(signer.key)) { - throw new error_1.VerificationError({ - code: 'SIGNATURE_ERROR', - message: 'signature verification failed', - }); - } - } - verifyPolicy(policy, identity) { - // Check the subject alternative name of the signer matches the policy - if (policy.subjectAlternativeName) { - (0, policy_1.verifySubjectAlternativeName)(policy.subjectAlternativeName, identity.subjectAlternativeName); - } - // Check that the extensions of the signer match the policy - if (policy.extensions) { - (0, policy_1.verifyExtensions)(policy.extensions, identity.extensions); - } - } -} -exports.Verifier = Verifier; -// Checks for duplicate items in the array. Objects are compared using -// deep equality. -function containsDupes(arr) { - for (let i = 0; i < arr.length; i++) { - for (let j = i + 1; j < arr.length; j++) { - if ((0, util_1.isDeepStrictEqual)(arr[i], arr[j])) { - return true; - } - } - } - return false; -} diff --git a/node_modules/@sindresorhus/is/dist/index.d.ts b/node_modules/@sindresorhus/is/dist/index.d.ts deleted file mode 100644 index dbb8cbd4..00000000 --- a/node_modules/@sindresorhus/is/dist/index.d.ts +++ /dev/null @@ -1,232 +0,0 @@ -/// -/// -/// -import { Class, Falsy, TypedArray, ObservableLike, Primitive } from './types'; -declare const objectTypeNames: readonly ["Function", "Generator", "AsyncGenerator", "GeneratorFunction", "AsyncGeneratorFunction", "AsyncFunction", "Observable", "Array", "Buffer", "Blob", "Object", "RegExp", "Date", "Error", "Map", "Set", "WeakMap", "WeakSet", "ArrayBuffer", "SharedArrayBuffer", "DataView", "Promise", "URL", "FormData", "URLSearchParams", "HTMLElement", ...("Int8Array" | "Uint8Array" | "Uint8ClampedArray" | "Int16Array" | "Uint16Array" | "Int32Array" | "Uint32Array" | "Float32Array" | "Float64Array" | "BigInt64Array" | "BigUint64Array")[]]; -declare type ObjectTypeName = typeof objectTypeNames[number]; -declare const primitiveTypeNames: readonly ["null", "undefined", "string", "number", "bigint", "boolean", "symbol"]; -declare type PrimitiveTypeName = typeof primitiveTypeNames[number]; -export declare type TypeName = ObjectTypeName | PrimitiveTypeName; -declare function is(value: unknown): TypeName; -declare namespace is { - var undefined: (value: unknown) => value is undefined; - var string: (value: unknown) => value is string; - var number: (value: unknown) => value is number; - var bigint: (value: unknown) => value is bigint; - var function_: (value: unknown) => value is Function; - var null_: (value: unknown) => value is null; - var class_: (value: unknown) => value is Class; - var boolean: (value: unknown) => value is boolean; - var symbol: (value: unknown) => value is symbol; - var numericString: (value: unknown) => value is string; - var array: (value: unknown, assertion?: ((value: T) => value is T) | undefined) => value is T[]; - var buffer: (value: unknown) => value is Buffer; - var blob: (value: unknown) => value is Blob; - var nullOrUndefined: (value: unknown) => value is null | undefined; - var object: (value: unknown) => value is object; - var iterable: (value: unknown) => value is Iterable; - var asyncIterable: (value: unknown) => value is AsyncIterable; - var generator: (value: unknown) => value is Generator; - var asyncGenerator: (value: unknown) => value is AsyncGenerator; - var nativePromise: (value: unknown) => value is Promise; - var promise: (value: unknown) => value is Promise; - var generatorFunction: (value: unknown) => value is GeneratorFunction; - var asyncGeneratorFunction: (value: unknown) => value is (...args: any[]) => Promise; - var asyncFunction: (value: unknown) => value is (...args: any[]) => Promise; - var boundFunction: (value: unknown) => value is Function; - var regExp: (value: unknown) => value is RegExp; - var date: (value: unknown) => value is Date; - var error: (value: unknown) => value is Error; - var map: (value: unknown) => value is Map; - var set: (value: unknown) => value is Set; - var weakMap: (value: unknown) => value is WeakMap; - var weakSet: (value: unknown) => value is WeakSet; - var int8Array: (value: unknown) => value is Int8Array; - var uint8Array: (value: unknown) => value is Uint8Array; - var uint8ClampedArray: (value: unknown) => value is Uint8ClampedArray; - var int16Array: (value: unknown) => value is Int16Array; - var uint16Array: (value: unknown) => value is Uint16Array; - var int32Array: (value: unknown) => value is Int32Array; - var uint32Array: (value: unknown) => value is Uint32Array; - var float32Array: (value: unknown) => value is Float32Array; - var float64Array: (value: unknown) => value is Float64Array; - var bigInt64Array: (value: unknown) => value is BigInt64Array; - var bigUint64Array: (value: unknown) => value is BigUint64Array; - var arrayBuffer: (value: unknown) => value is ArrayBuffer; - var sharedArrayBuffer: (value: unknown) => value is SharedArrayBuffer; - var dataView: (value: unknown) => value is DataView; - var enumCase: (value: unknown, targetEnum: T) => boolean; - var directInstanceOf: (instance: unknown, class_: Class) => instance is T; - var urlInstance: (value: unknown) => value is URL; - var urlString: (value: unknown) => value is string; - var truthy: (value: false | "" | 0 | 0n | T | null | undefined) => value is T; - var falsy: (value: false | "" | 0 | 0n | T | null | undefined) => value is Falsy; - var nan: (value: unknown) => boolean; - var primitive: (value: unknown) => value is Primitive; - var integer: (value: unknown) => value is number; - var safeInteger: (value: unknown) => value is number; - var plainObject: (value: unknown) => value is Record; - var typedArray: (value: unknown) => value is TypedArray; - var arrayLike: (value: unknown) => value is ArrayLike; - var inRange: (value: number, range: number | number[]) => value is number; - var domElement: (value: unknown) => value is HTMLElement; - var observable: (value: unknown) => value is ObservableLike; - var nodeStream: (value: unknown) => value is NodeStream; - var infinite: (value: unknown) => value is number; - var evenInteger: (value: number) => value is number; - var oddInteger: (value: number) => value is number; - var emptyArray: (value: unknown) => value is never[]; - var nonEmptyArray: (value: unknown) => value is unknown[]; - var emptyString: (value: unknown) => value is ""; - var emptyStringOrWhitespace: (value: unknown) => value is string; - var nonEmptyString: (value: unknown) => value is string; - var nonEmptyStringAndNotWhitespace: (value: unknown) => value is string; - var emptyObject: (value: unknown) => value is Record; - var nonEmptyObject: (value: unknown) => value is Record; - var emptySet: (value: unknown) => value is Set; - var nonEmptySet: (value: unknown) => value is Set; - var emptyMap: (value: unknown) => value is Map; - var nonEmptyMap: (value: unknown) => value is Map; - var propertyKey: (value: unknown) => value is string | number | symbol; - var formData: (value: unknown) => value is FormData; - var urlSearchParams: (value: unknown) => value is URLSearchParams; - var any: (predicate: Predicate | Predicate[], ...values: unknown[]) => boolean; - var all: (predicate: Predicate, ...values: unknown[]) => boolean; -} -export interface ArrayLike { - readonly [index: number]: T; - readonly length: number; -} -export interface NodeStream extends NodeJS.EventEmitter { - pipe(destination: T, options?: { - end?: boolean; - }): T; -} -export declare type Predicate = (value: unknown) => boolean; -export declare const enum AssertionTypeDescription { - class_ = "Class", - numericString = "string with a number", - nullOrUndefined = "null or undefined", - iterable = "Iterable", - asyncIterable = "AsyncIterable", - nativePromise = "native Promise", - urlString = "string with a URL", - truthy = "truthy", - falsy = "falsy", - nan = "NaN", - primitive = "primitive", - integer = "integer", - safeInteger = "integer", - plainObject = "plain object", - arrayLike = "array-like", - typedArray = "TypedArray", - domElement = "HTMLElement", - nodeStream = "Node.js Stream", - infinite = "infinite number", - emptyArray = "empty array", - nonEmptyArray = "non-empty array", - emptyString = "empty string", - emptyStringOrWhitespace = "empty string or whitespace", - nonEmptyString = "non-empty string", - nonEmptyStringAndNotWhitespace = "non-empty string and not whitespace", - emptyObject = "empty object", - nonEmptyObject = "non-empty object", - emptySet = "empty set", - nonEmptySet = "non-empty set", - emptyMap = "empty map", - nonEmptyMap = "non-empty map", - evenInteger = "even integer", - oddInteger = "odd integer", - directInstanceOf = "T", - inRange = "in range", - any = "predicate returns truthy for any value", - all = "predicate returns truthy for all values" -} -interface Assert { - undefined: (value: unknown) => asserts value is undefined; - string: (value: unknown) => asserts value is string; - number: (value: unknown) => asserts value is number; - bigint: (value: unknown) => asserts value is bigint; - function_: (value: unknown) => asserts value is Function; - null_: (value: unknown) => asserts value is null; - class_: (value: unknown) => asserts value is Class; - boolean: (value: unknown) => asserts value is boolean; - symbol: (value: unknown) => asserts value is symbol; - numericString: (value: unknown) => asserts value is string; - array: (value: unknown, assertion?: (element: unknown) => asserts element is T) => asserts value is T[]; - buffer: (value: unknown) => asserts value is Buffer; - blob: (value: unknown) => asserts value is Blob; - nullOrUndefined: (value: unknown) => asserts value is null | undefined; - object: (value: unknown) => asserts value is Record; - iterable: (value: unknown) => asserts value is Iterable; - asyncIterable: (value: unknown) => asserts value is AsyncIterable; - generator: (value: unknown) => asserts value is Generator; - asyncGenerator: (value: unknown) => asserts value is AsyncGenerator; - nativePromise: (value: unknown) => asserts value is Promise; - promise: (value: unknown) => asserts value is Promise; - generatorFunction: (value: unknown) => asserts value is GeneratorFunction; - asyncGeneratorFunction: (value: unknown) => asserts value is AsyncGeneratorFunction; - asyncFunction: (value: unknown) => asserts value is Function; - boundFunction: (value: unknown) => asserts value is Function; - regExp: (value: unknown) => asserts value is RegExp; - date: (value: unknown) => asserts value is Date; - error: (value: unknown) => asserts value is Error; - map: (value: unknown) => asserts value is Map; - set: (value: unknown) => asserts value is Set; - weakMap: (value: unknown) => asserts value is WeakMap; - weakSet: (value: unknown) => asserts value is WeakSet; - int8Array: (value: unknown) => asserts value is Int8Array; - uint8Array: (value: unknown) => asserts value is Uint8Array; - uint8ClampedArray: (value: unknown) => asserts value is Uint8ClampedArray; - int16Array: (value: unknown) => asserts value is Int16Array; - uint16Array: (value: unknown) => asserts value is Uint16Array; - int32Array: (value: unknown) => asserts value is Int32Array; - uint32Array: (value: unknown) => asserts value is Uint32Array; - float32Array: (value: unknown) => asserts value is Float32Array; - float64Array: (value: unknown) => asserts value is Float64Array; - bigInt64Array: (value: unknown) => asserts value is BigInt64Array; - bigUint64Array: (value: unknown) => asserts value is BigUint64Array; - arrayBuffer: (value: unknown) => asserts value is ArrayBuffer; - sharedArrayBuffer: (value: unknown) => asserts value is SharedArrayBuffer; - dataView: (value: unknown) => asserts value is DataView; - enumCase: (value: unknown, targetEnum: T) => asserts value is T[keyof T]; - urlInstance: (value: unknown) => asserts value is URL; - urlString: (value: unknown) => asserts value is string; - truthy: (value: unknown) => asserts value is unknown; - falsy: (value: unknown) => asserts value is unknown; - nan: (value: unknown) => asserts value is unknown; - primitive: (value: unknown) => asserts value is Primitive; - integer: (value: unknown) => asserts value is number; - safeInteger: (value: unknown) => asserts value is number; - plainObject: (value: unknown) => asserts value is Record; - typedArray: (value: unknown) => asserts value is TypedArray; - arrayLike: (value: unknown) => asserts value is ArrayLike; - domElement: (value: unknown) => asserts value is HTMLElement; - observable: (value: unknown) => asserts value is ObservableLike; - nodeStream: (value: unknown) => asserts value is NodeStream; - infinite: (value: unknown) => asserts value is number; - emptyArray: (value: unknown) => asserts value is never[]; - nonEmptyArray: (value: unknown) => asserts value is unknown[]; - emptyString: (value: unknown) => asserts value is ''; - emptyStringOrWhitespace: (value: unknown) => asserts value is string; - nonEmptyString: (value: unknown) => asserts value is string; - nonEmptyStringAndNotWhitespace: (value: unknown) => asserts value is string; - emptyObject: (value: unknown) => asserts value is Record; - nonEmptyObject: (value: unknown) => asserts value is Record; - emptySet: (value: unknown) => asserts value is Set; - nonEmptySet: (value: unknown) => asserts value is Set; - emptyMap: (value: unknown) => asserts value is Map; - nonEmptyMap: (value: unknown) => asserts value is Map; - propertyKey: (value: unknown) => asserts value is PropertyKey; - formData: (value: unknown) => asserts value is FormData; - urlSearchParams: (value: unknown) => asserts value is URLSearchParams; - evenInteger: (value: number) => asserts value is number; - oddInteger: (value: number) => asserts value is number; - directInstanceOf: (instance: unknown, class_: Class) => asserts instance is T; - inRange: (value: number, range: number | number[]) => asserts value is number; - any: (predicate: Predicate | Predicate[], ...values: unknown[]) => void | never; - all: (predicate: Predicate, ...values: unknown[]) => void | never; -} -export declare const assert: Assert; -export default is; -export { Class, TypedArray, ObservableLike, Primitive } from './types'; diff --git a/node_modules/@sindresorhus/is/dist/index.js b/node_modules/@sindresorhus/is/dist/index.js deleted file mode 100644 index a80df873..00000000 --- a/node_modules/@sindresorhus/is/dist/index.js +++ /dev/null @@ -1,434 +0,0 @@ -"use strict"; -/// -/// -/// -Object.defineProperty(exports, "__esModule", { value: true }); -const typedArrayTypeNames = [ - 'Int8Array', - 'Uint8Array', - 'Uint8ClampedArray', - 'Int16Array', - 'Uint16Array', - 'Int32Array', - 'Uint32Array', - 'Float32Array', - 'Float64Array', - 'BigInt64Array', - 'BigUint64Array' -]; -function isTypedArrayName(name) { - return typedArrayTypeNames.includes(name); -} -const objectTypeNames = [ - 'Function', - 'Generator', - 'AsyncGenerator', - 'GeneratorFunction', - 'AsyncGeneratorFunction', - 'AsyncFunction', - 'Observable', - 'Array', - 'Buffer', - 'Blob', - 'Object', - 'RegExp', - 'Date', - 'Error', - 'Map', - 'Set', - 'WeakMap', - 'WeakSet', - 'ArrayBuffer', - 'SharedArrayBuffer', - 'DataView', - 'Promise', - 'URL', - 'FormData', - 'URLSearchParams', - 'HTMLElement', - ...typedArrayTypeNames -]; -function isObjectTypeName(name) { - return objectTypeNames.includes(name); -} -const primitiveTypeNames = [ - 'null', - 'undefined', - 'string', - 'number', - 'bigint', - 'boolean', - 'symbol' -]; -function isPrimitiveTypeName(name) { - return primitiveTypeNames.includes(name); -} -// eslint-disable-next-line @typescript-eslint/ban-types -function isOfType(type) { - return (value) => typeof value === type; -} -const { toString } = Object.prototype; -const getObjectType = (value) => { - const objectTypeName = toString.call(value).slice(8, -1); - if (/HTML\w+Element/.test(objectTypeName) && is.domElement(value)) { - return 'HTMLElement'; - } - if (isObjectTypeName(objectTypeName)) { - return objectTypeName; - } - return undefined; -}; -const isObjectOfType = (type) => (value) => getObjectType(value) === type; -function is(value) { - if (value === null) { - return 'null'; - } - switch (typeof value) { - case 'undefined': - return 'undefined'; - case 'string': - return 'string'; - case 'number': - return 'number'; - case 'boolean': - return 'boolean'; - case 'function': - return 'Function'; - case 'bigint': - return 'bigint'; - case 'symbol': - return 'symbol'; - default: - } - if (is.observable(value)) { - return 'Observable'; - } - if (is.array(value)) { - return 'Array'; - } - if (is.buffer(value)) { - return 'Buffer'; - } - const tagType = getObjectType(value); - if (tagType) { - return tagType; - } - if (value instanceof String || value instanceof Boolean || value instanceof Number) { - throw new TypeError('Please don\'t use object wrappers for primitive types'); - } - return 'Object'; -} -is.undefined = isOfType('undefined'); -is.string = isOfType('string'); -const isNumberType = isOfType('number'); -is.number = (value) => isNumberType(value) && !is.nan(value); -is.bigint = isOfType('bigint'); -// eslint-disable-next-line @typescript-eslint/ban-types -is.function_ = isOfType('function'); -is.null_ = (value) => value === null; -is.class_ = (value) => is.function_(value) && value.toString().startsWith('class '); -is.boolean = (value) => value === true || value === false; -is.symbol = isOfType('symbol'); -is.numericString = (value) => is.string(value) && !is.emptyStringOrWhitespace(value) && !Number.isNaN(Number(value)); -is.array = (value, assertion) => { - if (!Array.isArray(value)) { - return false; - } - if (!is.function_(assertion)) { - return true; - } - return value.every(assertion); -}; -is.buffer = (value) => { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = value) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.isBuffer) === null || _c === void 0 ? void 0 : _c.call(_b, value)) !== null && _d !== void 0 ? _d : false; }; -is.blob = (value) => isObjectOfType('Blob')(value); -is.nullOrUndefined = (value) => is.null_(value) || is.undefined(value); -is.object = (value) => !is.null_(value) && (typeof value === 'object' || is.function_(value)); -is.iterable = (value) => { var _a; return is.function_((_a = value) === null || _a === void 0 ? void 0 : _a[Symbol.iterator]); }; -is.asyncIterable = (value) => { var _a; return is.function_((_a = value) === null || _a === void 0 ? void 0 : _a[Symbol.asyncIterator]); }; -is.generator = (value) => { var _a, _b; return is.iterable(value) && is.function_((_a = value) === null || _a === void 0 ? void 0 : _a.next) && is.function_((_b = value) === null || _b === void 0 ? void 0 : _b.throw); }; -is.asyncGenerator = (value) => is.asyncIterable(value) && is.function_(value.next) && is.function_(value.throw); -is.nativePromise = (value) => isObjectOfType('Promise')(value); -const hasPromiseAPI = (value) => { - var _a, _b; - return is.function_((_a = value) === null || _a === void 0 ? void 0 : _a.then) && - is.function_((_b = value) === null || _b === void 0 ? void 0 : _b.catch); -}; -is.promise = (value) => is.nativePromise(value) || hasPromiseAPI(value); -is.generatorFunction = isObjectOfType('GeneratorFunction'); -is.asyncGeneratorFunction = (value) => getObjectType(value) === 'AsyncGeneratorFunction'; -is.asyncFunction = (value) => getObjectType(value) === 'AsyncFunction'; -// eslint-disable-next-line no-prototype-builtins, @typescript-eslint/ban-types -is.boundFunction = (value) => is.function_(value) && !value.hasOwnProperty('prototype'); -is.regExp = isObjectOfType('RegExp'); -is.date = isObjectOfType('Date'); -is.error = isObjectOfType('Error'); -is.map = (value) => isObjectOfType('Map')(value); -is.set = (value) => isObjectOfType('Set')(value); -is.weakMap = (value) => isObjectOfType('WeakMap')(value); -is.weakSet = (value) => isObjectOfType('WeakSet')(value); -is.int8Array = isObjectOfType('Int8Array'); -is.uint8Array = isObjectOfType('Uint8Array'); -is.uint8ClampedArray = isObjectOfType('Uint8ClampedArray'); -is.int16Array = isObjectOfType('Int16Array'); -is.uint16Array = isObjectOfType('Uint16Array'); -is.int32Array = isObjectOfType('Int32Array'); -is.uint32Array = isObjectOfType('Uint32Array'); -is.float32Array = isObjectOfType('Float32Array'); -is.float64Array = isObjectOfType('Float64Array'); -is.bigInt64Array = isObjectOfType('BigInt64Array'); -is.bigUint64Array = isObjectOfType('BigUint64Array'); -is.arrayBuffer = isObjectOfType('ArrayBuffer'); -is.sharedArrayBuffer = isObjectOfType('SharedArrayBuffer'); -is.dataView = isObjectOfType('DataView'); -is.enumCase = (value, targetEnum) => Object.values(targetEnum).includes(value); -is.directInstanceOf = (instance, class_) => Object.getPrototypeOf(instance) === class_.prototype; -is.urlInstance = (value) => isObjectOfType('URL')(value); -is.urlString = (value) => { - if (!is.string(value)) { - return false; - } - try { - new URL(value); // eslint-disable-line no-new - return true; - } - catch (_a) { - return false; - } -}; -// Example: `is.truthy = (value: unknown): value is (not false | not 0 | not '' | not undefined | not null) => Boolean(value);` -is.truthy = (value) => Boolean(value); -// Example: `is.falsy = (value: unknown): value is (not true | 0 | '' | undefined | null) => Boolean(value);` -is.falsy = (value) => !value; -is.nan = (value) => Number.isNaN(value); -is.primitive = (value) => is.null_(value) || isPrimitiveTypeName(typeof value); -is.integer = (value) => Number.isInteger(value); -is.safeInteger = (value) => Number.isSafeInteger(value); -is.plainObject = (value) => { - // From: https://github.com/sindresorhus/is-plain-obj/blob/main/index.js - if (toString.call(value) !== '[object Object]') { - return false; - } - const prototype = Object.getPrototypeOf(value); - return prototype === null || prototype === Object.getPrototypeOf({}); -}; -is.typedArray = (value) => isTypedArrayName(getObjectType(value)); -const isValidLength = (value) => is.safeInteger(value) && value >= 0; -is.arrayLike = (value) => !is.nullOrUndefined(value) && !is.function_(value) && isValidLength(value.length); -is.inRange = (value, range) => { - if (is.number(range)) { - return value >= Math.min(0, range) && value <= Math.max(range, 0); - } - if (is.array(range) && range.length === 2) { - return value >= Math.min(...range) && value <= Math.max(...range); - } - throw new TypeError(`Invalid range: ${JSON.stringify(range)}`); -}; -const NODE_TYPE_ELEMENT = 1; -const DOM_PROPERTIES_TO_CHECK = [ - 'innerHTML', - 'ownerDocument', - 'style', - 'attributes', - 'nodeValue' -]; -is.domElement = (value) => { - return is.object(value) && - value.nodeType === NODE_TYPE_ELEMENT && - is.string(value.nodeName) && - !is.plainObject(value) && - DOM_PROPERTIES_TO_CHECK.every(property => property in value); -}; -is.observable = (value) => { - var _a, _b, _c, _d; - if (!value) { - return false; - } - // eslint-disable-next-line no-use-extend-native/no-use-extend-native - if (value === ((_b = (_a = value)[Symbol.observable]) === null || _b === void 0 ? void 0 : _b.call(_a))) { - return true; - } - if (value === ((_d = (_c = value)['@@observable']) === null || _d === void 0 ? void 0 : _d.call(_c))) { - return true; - } - return false; -}; -is.nodeStream = (value) => is.object(value) && is.function_(value.pipe) && !is.observable(value); -is.infinite = (value) => value === Infinity || value === -Infinity; -const isAbsoluteMod2 = (remainder) => (value) => is.integer(value) && Math.abs(value % 2) === remainder; -is.evenInteger = isAbsoluteMod2(0); -is.oddInteger = isAbsoluteMod2(1); -is.emptyArray = (value) => is.array(value) && value.length === 0; -is.nonEmptyArray = (value) => is.array(value) && value.length > 0; -is.emptyString = (value) => is.string(value) && value.length === 0; -const isWhiteSpaceString = (value) => is.string(value) && !/\S/.test(value); -is.emptyStringOrWhitespace = (value) => is.emptyString(value) || isWhiteSpaceString(value); -// TODO: Use `not ''` when the `not` operator is available. -is.nonEmptyString = (value) => is.string(value) && value.length > 0; -// TODO: Use `not ''` when the `not` operator is available. -is.nonEmptyStringAndNotWhitespace = (value) => is.string(value) && !is.emptyStringOrWhitespace(value); -is.emptyObject = (value) => is.object(value) && !is.map(value) && !is.set(value) && Object.keys(value).length === 0; -// TODO: Use `not` operator here to remove `Map` and `Set` from type guard: -// - https://github.com/Microsoft/TypeScript/pull/29317 -is.nonEmptyObject = (value) => is.object(value) && !is.map(value) && !is.set(value) && Object.keys(value).length > 0; -is.emptySet = (value) => is.set(value) && value.size === 0; -is.nonEmptySet = (value) => is.set(value) && value.size > 0; -is.emptyMap = (value) => is.map(value) && value.size === 0; -is.nonEmptyMap = (value) => is.map(value) && value.size > 0; -// `PropertyKey` is any value that can be used as an object key (string, number, or symbol) -is.propertyKey = (value) => is.any([is.string, is.number, is.symbol], value); -is.formData = (value) => isObjectOfType('FormData')(value); -is.urlSearchParams = (value) => isObjectOfType('URLSearchParams')(value); -const predicateOnArray = (method, predicate, values) => { - if (!is.function_(predicate)) { - throw new TypeError(`Invalid predicate: ${JSON.stringify(predicate)}`); - } - if (values.length === 0) { - throw new TypeError('Invalid number of values'); - } - return method.call(values, predicate); -}; -is.any = (predicate, ...values) => { - const predicates = is.array(predicate) ? predicate : [predicate]; - return predicates.some(singlePredicate => predicateOnArray(Array.prototype.some, singlePredicate, values)); -}; -is.all = (predicate, ...values) => predicateOnArray(Array.prototype.every, predicate, values); -const assertType = (condition, description, value, options = {}) => { - if (!condition) { - const { multipleValues } = options; - const valuesMessage = multipleValues ? - `received values of types ${[ - ...new Set(value.map(singleValue => `\`${is(singleValue)}\``)) - ].join(', ')}` : - `received value of type \`${is(value)}\``; - throw new TypeError(`Expected value which is \`${description}\`, ${valuesMessage}.`); - } -}; -exports.assert = { - // Unknowns. - undefined: (value) => assertType(is.undefined(value), 'undefined', value), - string: (value) => assertType(is.string(value), 'string', value), - number: (value) => assertType(is.number(value), 'number', value), - bigint: (value) => assertType(is.bigint(value), 'bigint', value), - // eslint-disable-next-line @typescript-eslint/ban-types - function_: (value) => assertType(is.function_(value), 'Function', value), - null_: (value) => assertType(is.null_(value), 'null', value), - class_: (value) => assertType(is.class_(value), "Class" /* class_ */, value), - boolean: (value) => assertType(is.boolean(value), 'boolean', value), - symbol: (value) => assertType(is.symbol(value), 'symbol', value), - numericString: (value) => assertType(is.numericString(value), "string with a number" /* numericString */, value), - array: (value, assertion) => { - const assert = assertType; - assert(is.array(value), 'Array', value); - if (assertion) { - value.forEach(assertion); - } - }, - buffer: (value) => assertType(is.buffer(value), 'Buffer', value), - blob: (value) => assertType(is.blob(value), 'Blob', value), - nullOrUndefined: (value) => assertType(is.nullOrUndefined(value), "null or undefined" /* nullOrUndefined */, value), - object: (value) => assertType(is.object(value), 'Object', value), - iterable: (value) => assertType(is.iterable(value), "Iterable" /* iterable */, value), - asyncIterable: (value) => assertType(is.asyncIterable(value), "AsyncIterable" /* asyncIterable */, value), - generator: (value) => assertType(is.generator(value), 'Generator', value), - asyncGenerator: (value) => assertType(is.asyncGenerator(value), 'AsyncGenerator', value), - nativePromise: (value) => assertType(is.nativePromise(value), "native Promise" /* nativePromise */, value), - promise: (value) => assertType(is.promise(value), 'Promise', value), - generatorFunction: (value) => assertType(is.generatorFunction(value), 'GeneratorFunction', value), - asyncGeneratorFunction: (value) => assertType(is.asyncGeneratorFunction(value), 'AsyncGeneratorFunction', value), - // eslint-disable-next-line @typescript-eslint/ban-types - asyncFunction: (value) => assertType(is.asyncFunction(value), 'AsyncFunction', value), - // eslint-disable-next-line @typescript-eslint/ban-types - boundFunction: (value) => assertType(is.boundFunction(value), 'Function', value), - regExp: (value) => assertType(is.regExp(value), 'RegExp', value), - date: (value) => assertType(is.date(value), 'Date', value), - error: (value) => assertType(is.error(value), 'Error', value), - map: (value) => assertType(is.map(value), 'Map', value), - set: (value) => assertType(is.set(value), 'Set', value), - weakMap: (value) => assertType(is.weakMap(value), 'WeakMap', value), - weakSet: (value) => assertType(is.weakSet(value), 'WeakSet', value), - int8Array: (value) => assertType(is.int8Array(value), 'Int8Array', value), - uint8Array: (value) => assertType(is.uint8Array(value), 'Uint8Array', value), - uint8ClampedArray: (value) => assertType(is.uint8ClampedArray(value), 'Uint8ClampedArray', value), - int16Array: (value) => assertType(is.int16Array(value), 'Int16Array', value), - uint16Array: (value) => assertType(is.uint16Array(value), 'Uint16Array', value), - int32Array: (value) => assertType(is.int32Array(value), 'Int32Array', value), - uint32Array: (value) => assertType(is.uint32Array(value), 'Uint32Array', value), - float32Array: (value) => assertType(is.float32Array(value), 'Float32Array', value), - float64Array: (value) => assertType(is.float64Array(value), 'Float64Array', value), - bigInt64Array: (value) => assertType(is.bigInt64Array(value), 'BigInt64Array', value), - bigUint64Array: (value) => assertType(is.bigUint64Array(value), 'BigUint64Array', value), - arrayBuffer: (value) => assertType(is.arrayBuffer(value), 'ArrayBuffer', value), - sharedArrayBuffer: (value) => assertType(is.sharedArrayBuffer(value), 'SharedArrayBuffer', value), - dataView: (value) => assertType(is.dataView(value), 'DataView', value), - enumCase: (value, targetEnum) => assertType(is.enumCase(value, targetEnum), 'EnumCase', value), - urlInstance: (value) => assertType(is.urlInstance(value), 'URL', value), - urlString: (value) => assertType(is.urlString(value), "string with a URL" /* urlString */, value), - truthy: (value) => assertType(is.truthy(value), "truthy" /* truthy */, value), - falsy: (value) => assertType(is.falsy(value), "falsy" /* falsy */, value), - nan: (value) => assertType(is.nan(value), "NaN" /* nan */, value), - primitive: (value) => assertType(is.primitive(value), "primitive" /* primitive */, value), - integer: (value) => assertType(is.integer(value), "integer" /* integer */, value), - safeInteger: (value) => assertType(is.safeInteger(value), "integer" /* safeInteger */, value), - plainObject: (value) => assertType(is.plainObject(value), "plain object" /* plainObject */, value), - typedArray: (value) => assertType(is.typedArray(value), "TypedArray" /* typedArray */, value), - arrayLike: (value) => assertType(is.arrayLike(value), "array-like" /* arrayLike */, value), - domElement: (value) => assertType(is.domElement(value), "HTMLElement" /* domElement */, value), - observable: (value) => assertType(is.observable(value), 'Observable', value), - nodeStream: (value) => assertType(is.nodeStream(value), "Node.js Stream" /* nodeStream */, value), - infinite: (value) => assertType(is.infinite(value), "infinite number" /* infinite */, value), - emptyArray: (value) => assertType(is.emptyArray(value), "empty array" /* emptyArray */, value), - nonEmptyArray: (value) => assertType(is.nonEmptyArray(value), "non-empty array" /* nonEmptyArray */, value), - emptyString: (value) => assertType(is.emptyString(value), "empty string" /* emptyString */, value), - emptyStringOrWhitespace: (value) => assertType(is.emptyStringOrWhitespace(value), "empty string or whitespace" /* emptyStringOrWhitespace */, value), - nonEmptyString: (value) => assertType(is.nonEmptyString(value), "non-empty string" /* nonEmptyString */, value), - nonEmptyStringAndNotWhitespace: (value) => assertType(is.nonEmptyStringAndNotWhitespace(value), "non-empty string and not whitespace" /* nonEmptyStringAndNotWhitespace */, value), - emptyObject: (value) => assertType(is.emptyObject(value), "empty object" /* emptyObject */, value), - nonEmptyObject: (value) => assertType(is.nonEmptyObject(value), "non-empty object" /* nonEmptyObject */, value), - emptySet: (value) => assertType(is.emptySet(value), "empty set" /* emptySet */, value), - nonEmptySet: (value) => assertType(is.nonEmptySet(value), "non-empty set" /* nonEmptySet */, value), - emptyMap: (value) => assertType(is.emptyMap(value), "empty map" /* emptyMap */, value), - nonEmptyMap: (value) => assertType(is.nonEmptyMap(value), "non-empty map" /* nonEmptyMap */, value), - propertyKey: (value) => assertType(is.propertyKey(value), 'PropertyKey', value), - formData: (value) => assertType(is.formData(value), 'FormData', value), - urlSearchParams: (value) => assertType(is.urlSearchParams(value), 'URLSearchParams', value), - // Numbers. - evenInteger: (value) => assertType(is.evenInteger(value), "even integer" /* evenInteger */, value), - oddInteger: (value) => assertType(is.oddInteger(value), "odd integer" /* oddInteger */, value), - // Two arguments. - directInstanceOf: (instance, class_) => assertType(is.directInstanceOf(instance, class_), "T" /* directInstanceOf */, instance), - inRange: (value, range) => assertType(is.inRange(value, range), "in range" /* inRange */, value), - // Variadic functions. - any: (predicate, ...values) => { - return assertType(is.any(predicate, ...values), "predicate returns truthy for any value" /* any */, values, { multipleValues: true }); - }, - all: (predicate, ...values) => assertType(is.all(predicate, ...values), "predicate returns truthy for all values" /* all */, values, { multipleValues: true }) -}; -// Some few keywords are reserved, but we'll populate them for Node.js users -// See https://github.com/Microsoft/TypeScript/issues/2536 -Object.defineProperties(is, { - class: { - value: is.class_ - }, - function: { - value: is.function_ - }, - null: { - value: is.null_ - } -}); -Object.defineProperties(exports.assert, { - class: { - value: exports.assert.class_ - }, - function: { - value: exports.assert.function_ - }, - null: { - value: exports.assert.null_ - } -}); -exports.default = is; -// For CommonJS default export support -module.exports = is; -module.exports.default = is; -module.exports.assert = exports.assert; diff --git a/node_modules/@sindresorhus/is/dist/types.d.ts b/node_modules/@sindresorhus/is/dist/types.d.ts deleted file mode 100644 index b4fae5d6..00000000 --- a/node_modules/@sindresorhus/is/dist/types.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** -Matches any [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive). -*/ -export declare type Primitive = null | undefined | string | number | boolean | symbol | bigint; -/** -Matches a [`class` constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes). -*/ -export declare type Class = new (...arguments_: Arguments) => T; -/** -Matches any [typed array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray), like `Uint8Array` or `Float64Array`. -*/ -export declare type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array; -declare global { - interface SymbolConstructor { - readonly observable: symbol; - } -} -/** -Matches a value that is like an [Observable](https://github.com/tc39/proposal-observable). -*/ -export interface ObservableLike { - subscribe(observer: (value: unknown) => void): void; - [Symbol.observable](): ObservableLike; -} -export declare type Falsy = false | 0 | 0n | '' | null | undefined; diff --git a/node_modules/@sindresorhus/is/dist/types.js b/node_modules/@sindresorhus/is/dist/types.js deleted file mode 100644 index 09303238..00000000 --- a/node_modules/@sindresorhus/is/dist/types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -// Extracted from https://github.com/sindresorhus/type-fest/blob/78019f42ea888b0cdceb41a4a78163868de57555/index.d.ts -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@tootallnate/once/dist/index.d.ts b/node_modules/@tootallnate/once/dist/index.d.ts deleted file mode 100644 index 93d02a9a..00000000 --- a/node_modules/@tootallnate/once/dist/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/// -import { EventEmitter } from 'events'; -import { EventNames, EventListenerParameters, AbortSignal } from './types'; -export interface OnceOptions { - signal?: AbortSignal; -} -export default function once>(emitter: Emitter, name: Event, { signal }?: OnceOptions): Promise>; diff --git a/node_modules/@tootallnate/once/dist/index.js b/node_modules/@tootallnate/once/dist/index.js deleted file mode 100644 index ca6385b1..00000000 --- a/node_modules/@tootallnate/once/dist/index.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -function once(emitter, name, { signal } = {}) { - return new Promise((resolve, reject) => { - function cleanup() { - signal === null || signal === void 0 ? void 0 : signal.removeEventListener('abort', cleanup); - emitter.removeListener(name, onEvent); - emitter.removeListener('error', onError); - } - function onEvent(...args) { - cleanup(); - resolve(args); - } - function onError(err) { - cleanup(); - reject(err); - } - signal === null || signal === void 0 ? void 0 : signal.addEventListener('abort', cleanup); - emitter.on(name, onEvent); - emitter.on('error', onError); - }); -} -exports.default = once; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@tootallnate/once/dist/index.js.map b/node_modules/@tootallnate/once/dist/index.js.map deleted file mode 100644 index 61708ca0..00000000 --- a/node_modules/@tootallnate/once/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAOA,SAAwB,IAAI,CAI3B,OAAgB,EAChB,IAAW,EACX,EAAE,MAAM,KAAkB,EAAE;IAE5B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACtC,SAAS,OAAO;YACf,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAC9C,OAAO,CAAC,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YACtC,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC1C,CAAC;QACD,SAAS,OAAO,CAAC,GAAG,IAAW;YAC9B,OAAO,EAAE,CAAC;YACV,OAAO,CAAC,IAA+C,CAAC,CAAC;QAC1D,CAAC;QACD,SAAS,OAAO,CAAC,GAAU;YAC1B,OAAO,EAAE,CAAC;YACV,MAAM,CAAC,GAAG,CAAC,CAAC;QACb,CAAC;QACD,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC3C,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC1B,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;AACJ,CAAC;AA1BD,uBA0BC"} \ No newline at end of file diff --git a/node_modules/@tootallnate/once/dist/overloaded-parameters.d.ts b/node_modules/@tootallnate/once/dist/overloaded-parameters.d.ts deleted file mode 100644 index eb2bbc6c..00000000 --- a/node_modules/@tootallnate/once/dist/overloaded-parameters.d.ts +++ /dev/null @@ -1,231 +0,0 @@ -export declare type OverloadedParameters = T extends { - (...args: infer A1): any; - (...args: infer A2): any; - (...args: infer A3): any; - (...args: infer A4): any; - (...args: infer A5): any; - (...args: infer A6): any; - (...args: infer A7): any; - (...args: infer A8): any; - (...args: infer A9): any; - (...args: infer A10): any; - (...args: infer A11): any; - (...args: infer A12): any; - (...args: infer A13): any; - (...args: infer A14): any; - (...args: infer A15): any; - (...args: infer A16): any; - (...args: infer A17): any; - (...args: infer A18): any; - (...args: infer A19): any; - (...args: infer A20): any; -} ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 | A11 | A12 | A13 | A14 | A15 | A16 | A17 | A18 | A19 | A20 : T extends { - (...args: infer A1): any; - (...args: infer A2): any; - (...args: infer A3): any; - (...args: infer A4): any; - (...args: infer A5): any; - (...args: infer A6): any; - (...args: infer A7): any; - (...args: infer A8): any; - (...args: infer A9): any; - (...args: infer A10): any; - (...args: infer A11): any; - (...args: infer A12): any; - (...args: infer A13): any; - (...args: infer A14): any; - (...args: infer A15): any; - (...args: infer A16): any; - (...args: infer A17): any; - (...args: infer A18): any; - (...args: infer A19): any; -} ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 | A11 | A12 | A13 | A14 | A15 | A16 | A17 | A18 | A19 : T extends { - (...args: infer A1): any; - (...args: infer A2): any; - (...args: infer A3): any; - (...args: infer A4): any; - (...args: infer A5): any; - (...args: infer A6): any; - (...args: infer A7): any; - (...args: infer A8): any; - (...args: infer A9): any; - (...args: infer A10): any; - (...args: infer A11): any; - (...args: infer A12): any; - (...args: infer A13): any; - (...args: infer A14): any; - (...args: infer A15): any; - (...args: infer A16): any; - (...args: infer A17): any; - (...args: infer A18): any; -} ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 | A11 | A12 | A13 | A14 | A15 | A16 | A17 | A18 : T extends { - (...args: infer A1): any; - (...args: infer A2): any; - (...args: infer A3): any; - (...args: infer A4): any; - (...args: infer A5): any; - (...args: infer A6): any; - (...args: infer A7): any; - (...args: infer A8): any; - (...args: infer A9): any; - (...args: infer A10): any; - (...args: infer A11): any; - (...args: infer A12): any; - (...args: infer A13): any; - (...args: infer A14): any; - (...args: infer A15): any; - (...args: infer A16): any; - (...args: infer A17): any; -} ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 | A11 | A12 | A13 | A14 | A15 | A16 | A17 : T extends { - (...args: infer A1): any; - (...args: infer A2): any; - (...args: infer A3): any; - (...args: infer A4): any; - (...args: infer A5): any; - (...args: infer A6): any; - (...args: infer A7): any; - (...args: infer A8): any; - (...args: infer A9): any; - (...args: infer A10): any; - (...args: infer A11): any; - (...args: infer A12): any; - (...args: infer A13): any; - (...args: infer A14): any; - (...args: infer A15): any; - (...args: infer A16): any; -} ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 | A11 | A12 | A13 | A14 | A15 | A16 : T extends { - (...args: infer A1): any; - (...args: infer A2): any; - (...args: infer A3): any; - (...args: infer A4): any; - (...args: infer A5): any; - (...args: infer A6): any; - (...args: infer A7): any; - (...args: infer A8): any; - (...args: infer A9): any; - (...args: infer A10): any; - (...args: infer A11): any; - (...args: infer A12): any; - (...args: infer A13): any; - (...args: infer A14): any; - (...args: infer A15): any; -} ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 | A11 | A12 | A13 | A14 | A15 : T extends { - (...args: infer A1): any; - (...args: infer A2): any; - (...args: infer A3): any; - (...args: infer A4): any; - (...args: infer A5): any; - (...args: infer A6): any; - (...args: infer A7): any; - (...args: infer A8): any; - (...args: infer A9): any; - (...args: infer A10): any; - (...args: infer A11): any; - (...args: infer A12): any; - (...args: infer A13): any; - (...args: infer A14): any; -} ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 | A11 | A12 | A13 | A14 : T extends { - (...args: infer A1): any; - (...args: infer A2): any; - (...args: infer A3): any; - (...args: infer A4): any; - (...args: infer A5): any; - (...args: infer A6): any; - (...args: infer A7): any; - (...args: infer A8): any; - (...args: infer A9): any; - (...args: infer A10): any; - (...args: infer A11): any; - (...args: infer A12): any; - (...args: infer A13): any; -} ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 | A11 | A12 | A13 : T extends { - (...args: infer A1): any; - (...args: infer A2): any; - (...args: infer A3): any; - (...args: infer A4): any; - (...args: infer A5): any; - (...args: infer A6): any; - (...args: infer A7): any; - (...args: infer A8): any; - (...args: infer A9): any; - (...args: infer A10): any; - (...args: infer A11): any; - (...args: infer A12): any; -} ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 | A11 | A12 : T extends { - (...args: infer A1): any; - (...args: infer A2): any; - (...args: infer A3): any; - (...args: infer A4): any; - (...args: infer A5): any; - (...args: infer A6): any; - (...args: infer A7): any; - (...args: infer A8): any; - (...args: infer A9): any; - (...args: infer A10): any; - (...args: infer A11): any; -} ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 | A11 : T extends { - (...args: infer A1): any; - (...args: infer A2): any; - (...args: infer A3): any; - (...args: infer A4): any; - (...args: infer A5): any; - (...args: infer A6): any; - (...args: infer A7): any; - (...args: infer A8): any; - (...args: infer A9): any; - (...args: infer A10): any; -} ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 | A10 : T extends { - (...args: infer A1): any; - (...args: infer A2): any; - (...args: infer A3): any; - (...args: infer A4): any; - (...args: infer A5): any; - (...args: infer A6): any; - (...args: infer A7): any; - (...args: infer A8): any; - (...args: infer A9): any; -} ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | A9 : T extends { - (...args: infer A1): any; - (...args: infer A2): any; - (...args: infer A3): any; - (...args: infer A4): any; - (...args: infer A5): any; - (...args: infer A6): any; - (...args: infer A7): any; - (...args: infer A8): any; -} ? A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 : T extends { - (...args: infer A1): any; - (...args: infer A2): any; - (...args: infer A3): any; - (...args: infer A4): any; - (...args: infer A5): any; - (...args: infer A6): any; - (...args: infer A7): any; -} ? A1 | A2 | A3 | A4 | A5 | A6 | A7 : T extends { - (...args: infer A1): any; - (...args: infer A2): any; - (...args: infer A3): any; - (...args: infer A4): any; - (...args: infer A5): any; - (...args: infer A6): any; -} ? A1 | A2 | A3 | A4 | A5 | A6 : T extends { - (...args: infer A1): any; - (...args: infer A2): any; - (...args: infer A3): any; - (...args: infer A4): any; - (...args: infer A5): any; -} ? A1 | A2 | A3 | A4 | A5 : T extends { - (...args: infer A1): any; - (...args: infer A2): any; - (...args: infer A3): any; - (...args: infer A4): any; -} ? A1 | A2 | A3 | A4 : T extends { - (...args: infer A1): any; - (...args: infer A2): any; - (...args: infer A3): any; -} ? A1 | A2 | A3 : T extends { - (...args: infer A1): any; - (...args: infer A2): any; -} ? A1 | A2 : T extends { - (...args: infer A1): any; -} ? A1 : any; diff --git a/node_modules/@tootallnate/once/dist/overloaded-parameters.js b/node_modules/@tootallnate/once/dist/overloaded-parameters.js deleted file mode 100644 index 207186d9..00000000 --- a/node_modules/@tootallnate/once/dist/overloaded-parameters.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=overloaded-parameters.js.map \ No newline at end of file diff --git a/node_modules/@tootallnate/once/dist/overloaded-parameters.js.map b/node_modules/@tootallnate/once/dist/overloaded-parameters.js.map deleted file mode 100644 index 863f146d..00000000 --- a/node_modules/@tootallnate/once/dist/overloaded-parameters.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"overloaded-parameters.js","sourceRoot":"","sources":["../src/overloaded-parameters.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@tootallnate/once/dist/types.d.ts b/node_modules/@tootallnate/once/dist/types.d.ts deleted file mode 100644 index 58be8284..00000000 --- a/node_modules/@tootallnate/once/dist/types.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/// -import { EventEmitter } from 'events'; -import { OverloadedParameters } from './overloaded-parameters'; -export declare type FirstParameter = T extends [infer R, ...any[]] ? R : never; -export declare type EventListener = F extends [ - T, - infer R, - ...any[] -] ? R : never; -export declare type EventParameters = OverloadedParameters; -export declare type EventNames = FirstParameter>; -export declare type EventListenerParameters> = WithDefault, Event>>, unknown[]>; -export declare type WithDefault = [T] extends [never] ? D : T; -export interface AbortSignal { - addEventListener: (name: string, listener: (...args: any[]) => any) => void; - removeEventListener: (name: string, listener: (...args: any[]) => any) => void; -} diff --git a/node_modules/@tootallnate/once/dist/types.js b/node_modules/@tootallnate/once/dist/types.js deleted file mode 100644 index 11e638d1..00000000 --- a/node_modules/@tootallnate/once/dist/types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/node_modules/@tootallnate/once/dist/types.js.map b/node_modules/@tootallnate/once/dist/types.js.map deleted file mode 100644 index c768b790..00000000 --- a/node_modules/@tootallnate/once/dist/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@tufjs/models/dist/base.d.ts b/node_modules/@tufjs/models/dist/base.d.ts deleted file mode 100644 index 4cc23953..00000000 --- a/node_modules/@tufjs/models/dist/base.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { Signature } from './signature'; -import { JSONObject, JSONValue } from './utils'; -export interface Signable { - signatures: Record; - signed: Signed; -} -export interface SignedOptions { - version?: number; - specVersion?: string; - expires?: string; - unrecognizedFields?: Record; -} -export declare enum MetadataKind { - Root = "root", - Timestamp = "timestamp", - Snapshot = "snapshot", - Targets = "targets" -} -export declare function isMetadataKind(value: unknown): value is MetadataKind; -/*** - * A base class for the signed part of TUF metadata. - * - * Objects with base class Signed are usually included in a ``Metadata`` object - * on the signed attribute. This class provides attributes and methods that - * are common for all TUF metadata types (roles). - */ -export declare abstract class Signed { - readonly specVersion: string; - readonly expires: string; - readonly version: number; - readonly unrecognizedFields: Record; - constructor(options: SignedOptions); - equals(other: Signed): boolean; - isExpired(referenceTime?: Date): boolean; - static commonFieldsFromJSON(data: JSONObject): SignedOptions; - abstract toJSON(): JSONObject; -} diff --git a/node_modules/@tufjs/models/dist/base.js b/node_modules/@tufjs/models/dist/base.js deleted file mode 100644 index d89a089c..00000000 --- a/node_modules/@tufjs/models/dist/base.js +++ /dev/null @@ -1,83 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Signed = exports.isMetadataKind = exports.MetadataKind = void 0; -const util_1 = __importDefault(require("util")); -const error_1 = require("./error"); -const utils_1 = require("./utils"); -const SPECIFICATION_VERSION = ['1', '0', '31']; -var MetadataKind; -(function (MetadataKind) { - MetadataKind["Root"] = "root"; - MetadataKind["Timestamp"] = "timestamp"; - MetadataKind["Snapshot"] = "snapshot"; - MetadataKind["Targets"] = "targets"; -})(MetadataKind = exports.MetadataKind || (exports.MetadataKind = {})); -function isMetadataKind(value) { - return (typeof value === 'string' && - Object.values(MetadataKind).includes(value)); -} -exports.isMetadataKind = isMetadataKind; -/*** - * A base class for the signed part of TUF metadata. - * - * Objects with base class Signed are usually included in a ``Metadata`` object - * on the signed attribute. This class provides attributes and methods that - * are common for all TUF metadata types (roles). - */ -class Signed { - constructor(options) { - this.specVersion = options.specVersion || SPECIFICATION_VERSION.join('.'); - const specList = this.specVersion.split('.'); - if (!(specList.length === 2 || specList.length === 3) || - !specList.every((item) => isNumeric(item))) { - throw new error_1.ValueError('Failed to parse specVersion'); - } - // major version must match - if (specList[0] != SPECIFICATION_VERSION[0]) { - throw new error_1.ValueError('Unsupported specVersion'); - } - this.expires = options.expires || new Date().toISOString(); - this.version = options.version || 1; - this.unrecognizedFields = options.unrecognizedFields || {}; - } - equals(other) { - if (!(other instanceof Signed)) { - return false; - } - return (this.specVersion === other.specVersion && - this.expires === other.expires && - this.version === other.version && - util_1.default.isDeepStrictEqual(this.unrecognizedFields, other.unrecognizedFields)); - } - isExpired(referenceTime) { - if (!referenceTime) { - referenceTime = new Date(); - } - return referenceTime >= new Date(this.expires); - } - static commonFieldsFromJSON(data) { - const { spec_version, expires, version, ...rest } = data; - if (utils_1.guard.isDefined(spec_version) && !(typeof spec_version === 'string')) { - throw new TypeError('spec_version must be a string'); - } - if (utils_1.guard.isDefined(expires) && !(typeof expires === 'string')) { - throw new TypeError('expires must be a string'); - } - if (utils_1.guard.isDefined(version) && !(typeof version === 'number')) { - throw new TypeError('version must be a number'); - } - return { - specVersion: spec_version, - expires, - version, - unrecognizedFields: rest, - }; - } -} -exports.Signed = Signed; -function isNumeric(str) { - return !isNaN(Number(str)); -} diff --git a/node_modules/@tufjs/models/dist/delegations.d.ts b/node_modules/@tufjs/models/dist/delegations.d.ts deleted file mode 100644 index 357e9dfe..00000000 --- a/node_modules/@tufjs/models/dist/delegations.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Key } from './key'; -import { DelegatedRole, SuccinctRoles } from './role'; -import { JSONObject, JSONValue } from './utils'; -type DelegatedRoleMap = Record; -type KeyMap = Record; -interface DelegationsOptions { - keys: KeyMap; - roles?: DelegatedRoleMap; - succinctRoles?: SuccinctRoles; - unrecognizedFields?: Record; -} -/** - * A container object storing information about all delegations. - * - * Targets roles that are trusted to provide signed metadata files - * describing targets with designated pathnames and/or further delegations. - */ -export declare class Delegations { - readonly keys: KeyMap; - readonly roles?: DelegatedRoleMap; - readonly unrecognizedFields?: Record; - readonly succinctRoles?: SuccinctRoles; - constructor(options: DelegationsOptions); - equals(other: Delegations): boolean; - rolesForTarget(targetPath: string): Generator<{ - role: string; - terminating: boolean; - }>; - toJSON(): JSONObject; - static fromJSON(data: JSONObject): Delegations; -} -export {}; diff --git a/node_modules/@tufjs/models/dist/delegations.js b/node_modules/@tufjs/models/dist/delegations.js deleted file mode 100644 index 7165f1e2..00000000 --- a/node_modules/@tufjs/models/dist/delegations.js +++ /dev/null @@ -1,115 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Delegations = void 0; -const util_1 = __importDefault(require("util")); -const error_1 = require("./error"); -const key_1 = require("./key"); -const role_1 = require("./role"); -const utils_1 = require("./utils"); -/** - * A container object storing information about all delegations. - * - * Targets roles that are trusted to provide signed metadata files - * describing targets with designated pathnames and/or further delegations. - */ -class Delegations { - constructor(options) { - this.keys = options.keys; - this.unrecognizedFields = options.unrecognizedFields || {}; - if (options.roles) { - if (Object.keys(options.roles).some((roleName) => role_1.TOP_LEVEL_ROLE_NAMES.includes(roleName))) { - throw new error_1.ValueError('Delegated role name conflicts with top-level role name'); - } - } - this.succinctRoles = options.succinctRoles; - this.roles = options.roles; - } - equals(other) { - if (!(other instanceof Delegations)) { - return false; - } - return (util_1.default.isDeepStrictEqual(this.keys, other.keys) && - util_1.default.isDeepStrictEqual(this.roles, other.roles) && - util_1.default.isDeepStrictEqual(this.unrecognizedFields, other.unrecognizedFields) && - util_1.default.isDeepStrictEqual(this.succinctRoles, other.succinctRoles)); - } - *rolesForTarget(targetPath) { - if (this.roles) { - for (const role of Object.values(this.roles)) { - if (role.isDelegatedPath(targetPath)) { - yield { role: role.name, terminating: role.terminating }; - } - } - } - else if (this.succinctRoles) { - yield { - role: this.succinctRoles.getRoleForTarget(targetPath), - terminating: true, - }; - } - } - toJSON() { - const json = { - keys: keysToJSON(this.keys), - ...this.unrecognizedFields, - }; - if (this.roles) { - json.roles = rolesToJSON(this.roles); - } - else if (this.succinctRoles) { - json.succinct_roles = this.succinctRoles.toJSON(); - } - return json; - } - static fromJSON(data) { - const { keys, roles, succinct_roles, ...unrecognizedFields } = data; - let succinctRoles; - if (utils_1.guard.isObject(succinct_roles)) { - succinctRoles = role_1.SuccinctRoles.fromJSON(succinct_roles); - } - return new Delegations({ - keys: keysFromJSON(keys), - roles: rolesFromJSON(roles), - unrecognizedFields, - succinctRoles, - }); - } -} -exports.Delegations = Delegations; -function keysToJSON(keys) { - return Object.entries(keys).reduce((acc, [keyId, key]) => ({ - ...acc, - [keyId]: key.toJSON(), - }), {}); -} -function rolesToJSON(roles) { - return Object.values(roles).map((role) => role.toJSON()); -} -function keysFromJSON(data) { - if (!utils_1.guard.isObjectRecord(data)) { - throw new TypeError('keys is malformed'); - } - return Object.entries(data).reduce((acc, [keyID, keyData]) => ({ - ...acc, - [keyID]: key_1.Key.fromJSON(keyID, keyData), - }), {}); -} -function rolesFromJSON(data) { - let roleMap; - if (utils_1.guard.isDefined(data)) { - if (!utils_1.guard.isObjectArray(data)) { - throw new TypeError('roles is malformed'); - } - roleMap = data.reduce((acc, role) => { - const delegatedRole = role_1.DelegatedRole.fromJSON(role); - return { - ...acc, - [delegatedRole.name]: delegatedRole, - }; - }, {}); - } - return roleMap; -} diff --git a/node_modules/@tufjs/models/dist/error.d.ts b/node_modules/@tufjs/models/dist/error.d.ts deleted file mode 100644 index e03d05a3..00000000 --- a/node_modules/@tufjs/models/dist/error.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export declare class ValueError extends Error { -} -export declare class RepositoryError extends Error { -} -export declare class UnsignedMetadataError extends RepositoryError { -} -export declare class LengthOrHashMismatchError extends RepositoryError { -} -export declare class CryptoError extends Error { -} -export declare class UnsupportedAlgorithmError extends CryptoError { -} diff --git a/node_modules/@tufjs/models/dist/error.js b/node_modules/@tufjs/models/dist/error.js deleted file mode 100644 index ba806987..00000000 --- a/node_modules/@tufjs/models/dist/error.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UnsupportedAlgorithmError = exports.CryptoError = exports.LengthOrHashMismatchError = exports.UnsignedMetadataError = exports.RepositoryError = exports.ValueError = void 0; -// An error about insufficient values -class ValueError extends Error { -} -exports.ValueError = ValueError; -// An error with a repository's state, such as a missing file. -// It covers all exceptions that come from the repository side when -// looking from the perspective of users of metadata API or ngclient. -class RepositoryError extends Error { -} -exports.RepositoryError = RepositoryError; -// An error about metadata object with insufficient threshold of signatures. -class UnsignedMetadataError extends RepositoryError { -} -exports.UnsignedMetadataError = UnsignedMetadataError; -// An error while checking the length and hash values of an object. -class LengthOrHashMismatchError extends RepositoryError { -} -exports.LengthOrHashMismatchError = LengthOrHashMismatchError; -class CryptoError extends Error { -} -exports.CryptoError = CryptoError; -class UnsupportedAlgorithmError extends CryptoError { -} -exports.UnsupportedAlgorithmError = UnsupportedAlgorithmError; diff --git a/node_modules/@tufjs/models/dist/file.d.ts b/node_modules/@tufjs/models/dist/file.d.ts deleted file mode 100644 index 7abeb2bb..00000000 --- a/node_modules/@tufjs/models/dist/file.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/// -/// -import { Readable } from 'stream'; -import { JSONObject, JSONValue } from './utils'; -interface MetaFileOptions { - version: number; - length?: number; - hashes?: Record; - unrecognizedFields?: Record; -} -export declare class MetaFile { - readonly version: number; - readonly length?: number; - readonly hashes?: Record; - readonly unrecognizedFields?: Record; - constructor(opts: MetaFileOptions); - equals(other: MetaFile): boolean; - verify(data: Buffer): void; - toJSON(): JSONObject; - static fromJSON(data: JSONObject): MetaFile; -} -interface TargetFileOptions { - length: number; - path: string; - hashes: Record; - unrecognizedFields?: Record; -} -export declare class TargetFile { - readonly length: number; - readonly path: string; - readonly hashes: Record; - readonly unrecognizedFields: Record; - constructor(opts: TargetFileOptions); - get custom(): Record; - equals(other: TargetFile): boolean; - verify(stream: Readable): Promise; - toJSON(): JSONObject; - static fromJSON(path: string, data: JSONObject): TargetFile; -} -export {}; diff --git a/node_modules/@tufjs/models/dist/file.js b/node_modules/@tufjs/models/dist/file.js deleted file mode 100644 index b35fe595..00000000 --- a/node_modules/@tufjs/models/dist/file.js +++ /dev/null @@ -1,183 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TargetFile = exports.MetaFile = void 0; -const crypto_1 = __importDefault(require("crypto")); -const util_1 = __importDefault(require("util")); -const error_1 = require("./error"); -const utils_1 = require("./utils"); -// A container with information about a particular metadata file. -// -// This class is used for Timestamp and Snapshot metadata. -class MetaFile { - constructor(opts) { - if (opts.version <= 0) { - throw new error_1.ValueError('Metafile version must be at least 1'); - } - if (opts.length !== undefined) { - validateLength(opts.length); - } - this.version = opts.version; - this.length = opts.length; - this.hashes = opts.hashes; - this.unrecognizedFields = opts.unrecognizedFields || {}; - } - equals(other) { - if (!(other instanceof MetaFile)) { - return false; - } - return (this.version === other.version && - this.length === other.length && - util_1.default.isDeepStrictEqual(this.hashes, other.hashes) && - util_1.default.isDeepStrictEqual(this.unrecognizedFields, other.unrecognizedFields)); - } - verify(data) { - // Verifies that the given data matches the expected length. - if (this.length !== undefined) { - if (data.length !== this.length) { - throw new error_1.LengthOrHashMismatchError(`Expected length ${this.length} but got ${data.length}`); - } - } - // Verifies that the given data matches the supplied hashes. - if (this.hashes) { - Object.entries(this.hashes).forEach(([key, value]) => { - let hash; - try { - hash = crypto_1.default.createHash(key); - } - catch (e) { - throw new error_1.LengthOrHashMismatchError(`Hash algorithm ${key} not supported`); - } - const observedHash = hash.update(data).digest('hex'); - if (observedHash !== value) { - throw new error_1.LengthOrHashMismatchError(`Expected hash ${value} but got ${observedHash}`); - } - }); - } - } - toJSON() { - const json = { - version: this.version, - ...this.unrecognizedFields, - }; - if (this.length !== undefined) { - json.length = this.length; - } - if (this.hashes) { - json.hashes = this.hashes; - } - return json; - } - static fromJSON(data) { - const { version, length, hashes, ...rest } = data; - if (typeof version !== 'number') { - throw new TypeError('version must be a number'); - } - if (utils_1.guard.isDefined(length) && typeof length !== 'number') { - throw new TypeError('length must be a number'); - } - if (utils_1.guard.isDefined(hashes) && !utils_1.guard.isStringRecord(hashes)) { - throw new TypeError('hashes must be string keys and values'); - } - return new MetaFile({ - version, - length, - hashes, - unrecognizedFields: rest, - }); - } -} -exports.MetaFile = MetaFile; -// Container for info about a particular target file. -// -// This class is used for Target metadata. -class TargetFile { - constructor(opts) { - validateLength(opts.length); - this.length = opts.length; - this.path = opts.path; - this.hashes = opts.hashes; - this.unrecognizedFields = opts.unrecognizedFields || {}; - } - get custom() { - const custom = this.unrecognizedFields['custom']; - if (!custom || Array.isArray(custom) || !(typeof custom === 'object')) { - return {}; - } - return custom; - } - equals(other) { - if (!(other instanceof TargetFile)) { - return false; - } - return (this.length === other.length && - this.path === other.path && - util_1.default.isDeepStrictEqual(this.hashes, other.hashes) && - util_1.default.isDeepStrictEqual(this.unrecognizedFields, other.unrecognizedFields)); - } - async verify(stream) { - let observedLength = 0; - // Create a digest for each hash algorithm - const digests = Object.keys(this.hashes).reduce((acc, key) => { - try { - acc[key] = crypto_1.default.createHash(key); - } - catch (e) { - throw new error_1.LengthOrHashMismatchError(`Hash algorithm ${key} not supported`); - } - return acc; - }, {}); - // Read stream chunk by chunk - for await (const chunk of stream) { - // Keep running tally of stream length - observedLength += chunk.length; - // Append chunk to each digest - Object.values(digests).forEach((digest) => { - digest.update(chunk); - }); - } - // Verify length matches expected value - if (observedLength !== this.length) { - throw new error_1.LengthOrHashMismatchError(`Expected length ${this.length} but got ${observedLength}`); - } - // Verify each digest matches expected value - Object.entries(digests).forEach(([key, value]) => { - const expected = this.hashes[key]; - const actual = value.digest('hex'); - if (actual !== expected) { - throw new error_1.LengthOrHashMismatchError(`Expected hash ${expected} but got ${actual}`); - } - }); - } - toJSON() { - return { - length: this.length, - hashes: this.hashes, - ...this.unrecognizedFields, - }; - } - static fromJSON(path, data) { - const { length, hashes, ...rest } = data; - if (typeof length !== 'number') { - throw new TypeError('length must be a number'); - } - if (!utils_1.guard.isStringRecord(hashes)) { - throw new TypeError('hashes must have string keys and values'); - } - return new TargetFile({ - length, - path, - hashes, - unrecognizedFields: rest, - }); - } -} -exports.TargetFile = TargetFile; -// Check that supplied length if valid -function validateLength(length) { - if (length < 0) { - throw new error_1.ValueError('Length must be at least 0'); - } -} diff --git a/node_modules/@tufjs/models/dist/index.d.ts b/node_modules/@tufjs/models/dist/index.d.ts deleted file mode 100644 index f9768bea..00000000 --- a/node_modules/@tufjs/models/dist/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export { MetadataKind } from './base'; -export { ValueError } from './error'; -export { MetaFile, TargetFile } from './file'; -export { Key } from './key'; -export { Metadata } from './metadata'; -export { Root } from './root'; -export { Signature } from './signature'; -export { Snapshot } from './snapshot'; -export { Targets } from './targets'; -export { Timestamp } from './timestamp'; diff --git a/node_modules/@tufjs/models/dist/index.js b/node_modules/@tufjs/models/dist/index.js deleted file mode 100644 index a4dc7836..00000000 --- a/node_modules/@tufjs/models/dist/index.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Timestamp = exports.Targets = exports.Snapshot = exports.Signature = exports.Root = exports.Metadata = exports.Key = exports.TargetFile = exports.MetaFile = exports.ValueError = exports.MetadataKind = void 0; -var base_1 = require("./base"); -Object.defineProperty(exports, "MetadataKind", { enumerable: true, get: function () { return base_1.MetadataKind; } }); -var error_1 = require("./error"); -Object.defineProperty(exports, "ValueError", { enumerable: true, get: function () { return error_1.ValueError; } }); -var file_1 = require("./file"); -Object.defineProperty(exports, "MetaFile", { enumerable: true, get: function () { return file_1.MetaFile; } }); -Object.defineProperty(exports, "TargetFile", { enumerable: true, get: function () { return file_1.TargetFile; } }); -var key_1 = require("./key"); -Object.defineProperty(exports, "Key", { enumerable: true, get: function () { return key_1.Key; } }); -var metadata_1 = require("./metadata"); -Object.defineProperty(exports, "Metadata", { enumerable: true, get: function () { return metadata_1.Metadata; } }); -var root_1 = require("./root"); -Object.defineProperty(exports, "Root", { enumerable: true, get: function () { return root_1.Root; } }); -var signature_1 = require("./signature"); -Object.defineProperty(exports, "Signature", { enumerable: true, get: function () { return signature_1.Signature; } }); -var snapshot_1 = require("./snapshot"); -Object.defineProperty(exports, "Snapshot", { enumerable: true, get: function () { return snapshot_1.Snapshot; } }); -var targets_1 = require("./targets"); -Object.defineProperty(exports, "Targets", { enumerable: true, get: function () { return targets_1.Targets; } }); -var timestamp_1 = require("./timestamp"); -Object.defineProperty(exports, "Timestamp", { enumerable: true, get: function () { return timestamp_1.Timestamp; } }); diff --git a/node_modules/@tufjs/models/dist/key.d.ts b/node_modules/@tufjs/models/dist/key.d.ts deleted file mode 100644 index 9f90b7ee..00000000 --- a/node_modules/@tufjs/models/dist/key.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Signable } from './base'; -import { JSONObject, JSONValue } from './utils'; -export interface KeyOptions { - keyID: string; - keyType: string; - scheme: string; - keyVal: Record; - unrecognizedFields?: Record; -} -export declare class Key { - readonly keyID: string; - readonly keyType: string; - readonly scheme: string; - readonly keyVal: Record; - readonly unrecognizedFields?: Record; - constructor(options: KeyOptions); - verifySignature(metadata: Signable): void; - equals(other: Key): boolean; - toJSON(): JSONObject; - static fromJSON(keyID: string, data: JSONObject): Key; -} diff --git a/node_modules/@tufjs/models/dist/key.js b/node_modules/@tufjs/models/dist/key.js deleted file mode 100644 index 5e55b09d..00000000 --- a/node_modules/@tufjs/models/dist/key.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Key = void 0; -const util_1 = __importDefault(require("util")); -const error_1 = require("./error"); -const utils_1 = require("./utils"); -const key_1 = require("./utils/key"); -// A container class representing the public portion of a Key. -class Key { - constructor(options) { - const { keyID, keyType, scheme, keyVal, unrecognizedFields } = options; - this.keyID = keyID; - this.keyType = keyType; - this.scheme = scheme; - this.keyVal = keyVal; - this.unrecognizedFields = unrecognizedFields || {}; - } - // Verifies the that the metadata.signatures contains a signature made with - // this key and is correctly signed. - verifySignature(metadata) { - const signature = metadata.signatures[this.keyID]; - if (!signature) - throw new error_1.UnsignedMetadataError('no signature for key found in metadata'); - if (!this.keyVal.public) - throw new error_1.UnsignedMetadataError('no public key found'); - const publicKey = (0, key_1.getPublicKey)({ - keyType: this.keyType, - scheme: this.scheme, - keyVal: this.keyVal.public, - }); - const signedData = metadata.signed.toJSON(); - try { - if (!utils_1.crypto.verifySignature(signedData, publicKey, signature.sig)) { - throw new error_1.UnsignedMetadataError(`failed to verify ${this.keyID} signature`); - } - } - catch (error) { - if (error instanceof error_1.UnsignedMetadataError) { - throw error; - } - throw new error_1.UnsignedMetadataError(`failed to verify ${this.keyID} signature`); - } - } - equals(other) { - if (!(other instanceof Key)) { - return false; - } - return (this.keyID === other.keyID && - this.keyType === other.keyType && - this.scheme === other.scheme && - util_1.default.isDeepStrictEqual(this.keyVal, other.keyVal) && - util_1.default.isDeepStrictEqual(this.unrecognizedFields, other.unrecognizedFields)); - } - toJSON() { - return { - keytype: this.keyType, - scheme: this.scheme, - keyval: this.keyVal, - ...this.unrecognizedFields, - }; - } - static fromJSON(keyID, data) { - const { keytype, scheme, keyval, ...rest } = data; - if (typeof keytype !== 'string') { - throw new TypeError('keytype must be a string'); - } - if (typeof scheme !== 'string') { - throw new TypeError('scheme must be a string'); - } - if (!utils_1.guard.isStringRecord(keyval)) { - throw new TypeError('keyval must be a string record'); - } - return new Key({ - keyID, - keyType: keytype, - scheme, - keyVal: keyval, - unrecognizedFields: rest, - }); - } -} -exports.Key = Key; diff --git a/node_modules/@tufjs/models/dist/metadata.d.ts b/node_modules/@tufjs/models/dist/metadata.d.ts deleted file mode 100644 index 55c9294a..00000000 --- a/node_modules/@tufjs/models/dist/metadata.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -/// -import { MetadataKind, Signable } from './base'; -import { Root } from './root'; -import { Signature } from './signature'; -import { Snapshot } from './snapshot'; -import { Targets } from './targets'; -import { Timestamp } from './timestamp'; -import { JSONObject, JSONValue } from './utils'; -type MetadataType = Root | Timestamp | Snapshot | Targets; -/*** - * A container for signed TUF metadata. - * - * Provides methods to convert to and from json, read and write to and - * from JSON and to create and verify metadata signatures. - * - * ``Metadata[T]`` is a generic container type where T can be any one type of - * [``Root``, ``Timestamp``, ``Snapshot``, ``Targets``]. The purpose of this - * is to allow static type checking of the signed attribute in code using - * Metadata:: - * - * root_md = Metadata[Root].fromJSON("root.json") - * # root_md type is now Metadata[Root]. This means signed and its - * # attributes like consistent_snapshot are now statically typed and the - * # types can be verified by static type checkers and shown by IDEs - * - * Using a type constraint is not required but not doing so means T is not a - * specific type so static typing cannot happen. Note that the type constraint - * ``[Root]`` is not validated at runtime (as pure annotations are not available - * then). - * - * Apart from ``expires`` all of the arguments to the inner constructors have - * reasonable default values for new metadata. - */ -export declare class Metadata implements Signable { - signed: T; - signatures: Record; - unrecognizedFields: Record; - constructor(signed: T, signatures?: Record, unrecognizedFields?: Record); - sign(signer: (data: Buffer) => Signature, append?: boolean): void; - verifyDelegate(delegatedRole: string, delegatedMetadata: Metadata): void; - equals(other: T): boolean; - toJSON(): JSONObject; - static fromJSON(type: MetadataKind.Root, data: JSONObject): Metadata; - static fromJSON(type: MetadataKind.Timestamp, data: JSONObject): Metadata; - static fromJSON(type: MetadataKind.Snapshot, data: JSONObject): Metadata; - static fromJSON(type: MetadataKind.Targets, data: JSONObject): Metadata; -} -export {}; diff --git a/node_modules/@tufjs/models/dist/metadata.js b/node_modules/@tufjs/models/dist/metadata.js deleted file mode 100644 index 9668b6f1..00000000 --- a/node_modules/@tufjs/models/dist/metadata.js +++ /dev/null @@ -1,158 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Metadata = void 0; -const canonical_json_1 = require("@tufjs/canonical-json"); -const util_1 = __importDefault(require("util")); -const base_1 = require("./base"); -const error_1 = require("./error"); -const root_1 = require("./root"); -const signature_1 = require("./signature"); -const snapshot_1 = require("./snapshot"); -const targets_1 = require("./targets"); -const timestamp_1 = require("./timestamp"); -const utils_1 = require("./utils"); -/*** - * A container for signed TUF metadata. - * - * Provides methods to convert to and from json, read and write to and - * from JSON and to create and verify metadata signatures. - * - * ``Metadata[T]`` is a generic container type where T can be any one type of - * [``Root``, ``Timestamp``, ``Snapshot``, ``Targets``]. The purpose of this - * is to allow static type checking of the signed attribute in code using - * Metadata:: - * - * root_md = Metadata[Root].fromJSON("root.json") - * # root_md type is now Metadata[Root]. This means signed and its - * # attributes like consistent_snapshot are now statically typed and the - * # types can be verified by static type checkers and shown by IDEs - * - * Using a type constraint is not required but not doing so means T is not a - * specific type so static typing cannot happen. Note that the type constraint - * ``[Root]`` is not validated at runtime (as pure annotations are not available - * then). - * - * Apart from ``expires`` all of the arguments to the inner constructors have - * reasonable default values for new metadata. - */ -class Metadata { - constructor(signed, signatures, unrecognizedFields) { - this.signed = signed; - this.signatures = signatures || {}; - this.unrecognizedFields = unrecognizedFields || {}; - } - sign(signer, append = true) { - const bytes = Buffer.from((0, canonical_json_1.canonicalize)(this.signed.toJSON())); - const signature = signer(bytes); - if (!append) { - this.signatures = {}; - } - this.signatures[signature.keyID] = signature; - } - verifyDelegate(delegatedRole, delegatedMetadata) { - let role; - let keys = {}; - switch (this.signed.type) { - case base_1.MetadataKind.Root: - keys = this.signed.keys; - role = this.signed.roles[delegatedRole]; - break; - case base_1.MetadataKind.Targets: - if (!this.signed.delegations) { - throw new error_1.ValueError(`No delegations found for ${delegatedRole}`); - } - keys = this.signed.delegations.keys; - if (this.signed.delegations.roles) { - role = this.signed.delegations.roles[delegatedRole]; - } - else if (this.signed.delegations.succinctRoles) { - if (this.signed.delegations.succinctRoles.isDelegatedRole(delegatedRole)) { - role = this.signed.delegations.succinctRoles; - } - } - break; - default: - throw new TypeError('invalid metadata type'); - } - if (!role) { - throw new error_1.ValueError(`no delegation found for ${delegatedRole}`); - } - const signingKeys = new Set(); - role.keyIDs.forEach((keyID) => { - const key = keys[keyID]; - // If we dont' have the key, continue checking other keys - if (!key) { - return; - } - try { - key.verifySignature(delegatedMetadata); - signingKeys.add(key.keyID); - } - catch (error) { - // continue - } - }); - if (signingKeys.size < role.threshold) { - throw new error_1.UnsignedMetadataError(`${delegatedRole} was signed by ${signingKeys.size}/${role.threshold} keys`); - } - } - equals(other) { - if (!(other instanceof Metadata)) { - return false; - } - return (this.signed.equals(other.signed) && - util_1.default.isDeepStrictEqual(this.signatures, other.signatures) && - util_1.default.isDeepStrictEqual(this.unrecognizedFields, other.unrecognizedFields)); - } - toJSON() { - const signatures = Object.values(this.signatures).map((signature) => { - return signature.toJSON(); - }); - return { - signatures, - signed: this.signed.toJSON(), - ...this.unrecognizedFields, - }; - } - static fromJSON(type, data) { - const { signed, signatures, ...rest } = data; - if (!utils_1.guard.isDefined(signed) || !utils_1.guard.isObject(signed)) { - throw new TypeError('signed is not defined'); - } - if (type !== signed._type) { - throw new error_1.ValueError(`expected '${type}', got ${signed['_type']}`); - } - let signedObj; - switch (type) { - case base_1.MetadataKind.Root: - signedObj = root_1.Root.fromJSON(signed); - break; - case base_1.MetadataKind.Timestamp: - signedObj = timestamp_1.Timestamp.fromJSON(signed); - break; - case base_1.MetadataKind.Snapshot: - signedObj = snapshot_1.Snapshot.fromJSON(signed); - break; - case base_1.MetadataKind.Targets: - signedObj = targets_1.Targets.fromJSON(signed); - break; - default: - throw new TypeError('invalid metadata type'); - } - const sigMap = signaturesFromJSON(signatures); - return new Metadata(signedObj, sigMap, rest); - } -} -exports.Metadata = Metadata; -function signaturesFromJSON(data) { - if (!utils_1.guard.isObjectArray(data)) { - throw new TypeError('signatures is not an array'); - } - return data.reduce((acc, sigData) => { - const signature = signature_1.Signature.fromJSON(sigData); - return { ...acc, [signature.keyID]: signature }; - }, {}); -} diff --git a/node_modules/@tufjs/models/dist/role.d.ts b/node_modules/@tufjs/models/dist/role.d.ts deleted file mode 100644 index b3a6efae..00000000 --- a/node_modules/@tufjs/models/dist/role.d.ts +++ /dev/null @@ -1,103 +0,0 @@ -import { JSONObject, JSONValue } from './utils'; -export declare const TOP_LEVEL_ROLE_NAMES: string[]; -export interface RoleOptions { - keyIDs: string[]; - threshold: number; - unrecognizedFields?: Record; -} -/** - * Container that defines which keys are required to sign roles metadata. - * - * Role defines how many keys are required to successfully sign the roles - * metadata, and which keys are accepted. - */ -export declare class Role { - readonly keyIDs: string[]; - readonly threshold: number; - readonly unrecognizedFields?: Record; - constructor(options: RoleOptions); - equals(other: Role): boolean; - toJSON(): JSONObject; - static fromJSON(data: JSONObject): Role; -} -interface DelegatedRoleOptions extends RoleOptions { - name: string; - terminating: boolean; - paths?: string[]; - pathHashPrefixes?: string[]; -} -/** - * A container with information about a delegated role. - * - * A delegation can happen in two ways: - * - ``paths`` is set: delegates targets matching any path pattern in ``paths`` - * - ``pathHashPrefixes`` is set: delegates targets whose target path hash - * starts with any of the prefixes in ``pathHashPrefixes`` - * - * ``paths`` and ``pathHashPrefixes`` are mutually exclusive: both cannot be - * set, at least one of them must be set. - */ -export declare class DelegatedRole extends Role { - readonly name: string; - readonly terminating: boolean; - readonly paths?: string[]; - readonly pathHashPrefixes?: string[]; - constructor(opts: DelegatedRoleOptions); - equals(other: DelegatedRole): boolean; - isDelegatedPath(targetFilepath: string): boolean; - toJSON(): JSONObject; - static fromJSON(data: JSONObject): DelegatedRole; -} -interface SuccinctRolesOption extends RoleOptions { - bitLength: number; - namePrefix: string; -} -/** - * Succinctly defines a hash bin delegation graph. - * - * A ``SuccinctRoles`` object describes a delegation graph that covers all - * targets, distributing them uniformly over the delegated roles (i.e. bins) - * in the graph. - * - * The total number of bins is 2 to the power of the passed ``bit_length``. - * - * Bin names are the concatenation of the passed ``name_prefix`` and a - * zero-padded hex representation of the bin index separated by a hyphen. - * - * The passed ``keyids`` and ``threshold`` is used for each bin, and each bin - * is 'terminating'. - * - * For details: https://github.com/theupdateframework/taps/blob/master/tap15.md - */ -export declare class SuccinctRoles extends Role { - readonly bitLength: number; - readonly namePrefix: string; - readonly numberOfBins: number; - readonly suffixLen: number; - constructor(opts: SuccinctRolesOption); - equals(other: SuccinctRoles): boolean; - /*** - * Calculates the name of the delegated role responsible for 'target_filepath'. - * - * The target at path ''target_filepath' is assigned to a bin by casting - * the left-most 'bit_length' of bits of the file path hash digest to - * int, using it as bin index between 0 and '2**bit_length - 1'. - * - * Args: - * target_filepath: URL path to a target file, relative to a base - * targets URL. - */ - getRoleForTarget(targetFilepath: string): string; - getRoles(): Generator; - /*** - * Determines whether the given ``role_name`` is in one of - * the delegated roles that ``SuccinctRoles`` represents. - * - * Args: - * role_name: The name of the role to check against. - */ - isDelegatedRole(roleName: string): boolean; - toJSON(): JSONObject; - static fromJSON(data: JSONObject): SuccinctRoles; -} -export {}; diff --git a/node_modules/@tufjs/models/dist/role.js b/node_modules/@tufjs/models/dist/role.js deleted file mode 100644 index f7ddbc6f..00000000 --- a/node_modules/@tufjs/models/dist/role.js +++ /dev/null @@ -1,299 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SuccinctRoles = exports.DelegatedRole = exports.Role = exports.TOP_LEVEL_ROLE_NAMES = void 0; -const crypto_1 = __importDefault(require("crypto")); -const minimatch_1 = require("minimatch"); -const util_1 = __importDefault(require("util")); -const error_1 = require("./error"); -const utils_1 = require("./utils"); -exports.TOP_LEVEL_ROLE_NAMES = [ - 'root', - 'targets', - 'snapshot', - 'timestamp', -]; -/** - * Container that defines which keys are required to sign roles metadata. - * - * Role defines how many keys are required to successfully sign the roles - * metadata, and which keys are accepted. - */ -class Role { - constructor(options) { - const { keyIDs, threshold, unrecognizedFields } = options; - if (hasDuplicates(keyIDs)) { - throw new error_1.ValueError('duplicate key IDs found'); - } - if (threshold < 1) { - throw new error_1.ValueError('threshold must be at least 1'); - } - this.keyIDs = keyIDs; - this.threshold = threshold; - this.unrecognizedFields = unrecognizedFields || {}; - } - equals(other) { - if (!(other instanceof Role)) { - return false; - } - return (this.threshold === other.threshold && - util_1.default.isDeepStrictEqual(this.keyIDs, other.keyIDs) && - util_1.default.isDeepStrictEqual(this.unrecognizedFields, other.unrecognizedFields)); - } - toJSON() { - return { - keyids: this.keyIDs, - threshold: this.threshold, - ...this.unrecognizedFields, - }; - } - static fromJSON(data) { - const { keyids, threshold, ...rest } = data; - if (!utils_1.guard.isStringArray(keyids)) { - throw new TypeError('keyids must be an array'); - } - if (typeof threshold !== 'number') { - throw new TypeError('threshold must be a number'); - } - return new Role({ - keyIDs: keyids, - threshold, - unrecognizedFields: rest, - }); - } -} -exports.Role = Role; -function hasDuplicates(array) { - return new Set(array).size !== array.length; -} -/** - * A container with information about a delegated role. - * - * A delegation can happen in two ways: - * - ``paths`` is set: delegates targets matching any path pattern in ``paths`` - * - ``pathHashPrefixes`` is set: delegates targets whose target path hash - * starts with any of the prefixes in ``pathHashPrefixes`` - * - * ``paths`` and ``pathHashPrefixes`` are mutually exclusive: both cannot be - * set, at least one of them must be set. - */ -class DelegatedRole extends Role { - constructor(opts) { - super(opts); - const { name, terminating, paths, pathHashPrefixes } = opts; - this.name = name; - this.terminating = terminating; - if (opts.paths && opts.pathHashPrefixes) { - throw new error_1.ValueError('paths and pathHashPrefixes are mutually exclusive'); - } - this.paths = paths; - this.pathHashPrefixes = pathHashPrefixes; - } - equals(other) { - if (!(other instanceof DelegatedRole)) { - return false; - } - return (super.equals(other) && - this.name === other.name && - this.terminating === other.terminating && - util_1.default.isDeepStrictEqual(this.paths, other.paths) && - util_1.default.isDeepStrictEqual(this.pathHashPrefixes, other.pathHashPrefixes)); - } - isDelegatedPath(targetFilepath) { - if (this.paths) { - return this.paths.some((pathPattern) => isTargetInPathPattern(targetFilepath, pathPattern)); - } - if (this.pathHashPrefixes) { - const hasher = crypto_1.default.createHash('sha256'); - const pathHash = hasher.update(targetFilepath).digest('hex'); - return this.pathHashPrefixes.some((pathHashPrefix) => pathHash.startsWith(pathHashPrefix)); - } - return false; - } - toJSON() { - const json = { - ...super.toJSON(), - name: this.name, - terminating: this.terminating, - }; - if (this.paths) { - json.paths = this.paths; - } - if (this.pathHashPrefixes) { - json.path_hash_prefixes = this.pathHashPrefixes; - } - return json; - } - static fromJSON(data) { - const { keyids, threshold, name, terminating, paths, path_hash_prefixes, ...rest } = data; - if (!utils_1.guard.isStringArray(keyids)) { - throw new TypeError('keyids must be an array of strings'); - } - if (typeof threshold !== 'number') { - throw new TypeError('threshold must be a number'); - } - if (typeof name !== 'string') { - throw new TypeError('name must be a string'); - } - if (typeof terminating !== 'boolean') { - throw new TypeError('terminating must be a boolean'); - } - if (utils_1.guard.isDefined(paths) && !utils_1.guard.isStringArray(paths)) { - throw new TypeError('paths must be an array of strings'); - } - if (utils_1.guard.isDefined(path_hash_prefixes) && - !utils_1.guard.isStringArray(path_hash_prefixes)) { - throw new TypeError('path_hash_prefixes must be an array of strings'); - } - return new DelegatedRole({ - keyIDs: keyids, - threshold, - name, - terminating, - paths, - pathHashPrefixes: path_hash_prefixes, - unrecognizedFields: rest, - }); - } -} -exports.DelegatedRole = DelegatedRole; -// JS version of Ruby's Array#zip -const zip = (a, b) => a.map((k, i) => [k, b[i]]); -function isTargetInPathPattern(target, pattern) { - const targetParts = target.split('/'); - const patternParts = pattern.split('/'); - if (patternParts.length != targetParts.length) { - return false; - } - return zip(targetParts, patternParts).every(([targetPart, patternPart]) => (0, minimatch_1.minimatch)(targetPart, patternPart)); -} -/** - * Succinctly defines a hash bin delegation graph. - * - * A ``SuccinctRoles`` object describes a delegation graph that covers all - * targets, distributing them uniformly over the delegated roles (i.e. bins) - * in the graph. - * - * The total number of bins is 2 to the power of the passed ``bit_length``. - * - * Bin names are the concatenation of the passed ``name_prefix`` and a - * zero-padded hex representation of the bin index separated by a hyphen. - * - * The passed ``keyids`` and ``threshold`` is used for each bin, and each bin - * is 'terminating'. - * - * For details: https://github.com/theupdateframework/taps/blob/master/tap15.md - */ -class SuccinctRoles extends Role { - constructor(opts) { - super(opts); - const { bitLength, namePrefix } = opts; - if (bitLength <= 0 || bitLength > 32) { - throw new error_1.ValueError('bitLength must be between 1 and 32'); - } - this.bitLength = bitLength; - this.namePrefix = namePrefix; - // Calculate the suffix_len value based on the total number of bins in - // hex. If bit_length = 10 then number_of_bins = 1024 or bin names will - // have a suffix between "000" and "3ff" in hex and suffix_len will be 3 - // meaning the third bin will have a suffix of "003". - this.numberOfBins = Math.pow(2, bitLength); - // suffix_len is calculated based on "number_of_bins - 1" as the name - // of the last bin contains the number "number_of_bins -1" as a suffix. - this.suffixLen = (this.numberOfBins - 1).toString(16).length; - } - equals(other) { - if (!(other instanceof SuccinctRoles)) { - return false; - } - return (super.equals(other) && - this.bitLength === other.bitLength && - this.namePrefix === other.namePrefix); - } - /*** - * Calculates the name of the delegated role responsible for 'target_filepath'. - * - * The target at path ''target_filepath' is assigned to a bin by casting - * the left-most 'bit_length' of bits of the file path hash digest to - * int, using it as bin index between 0 and '2**bit_length - 1'. - * - * Args: - * target_filepath: URL path to a target file, relative to a base - * targets URL. - */ - getRoleForTarget(targetFilepath) { - const hasher = crypto_1.default.createHash('sha256'); - const hasherBuffer = hasher.update(targetFilepath).digest(); - // can't ever need more than 4 bytes (32 bits). - const hashBytes = hasherBuffer.subarray(0, 4); - // Right shift hash bytes, so that we only have the leftmost - // bit_length bits that we care about. - const shiftValue = 32 - this.bitLength; - const binNumber = hashBytes.readUInt32BE() >>> shiftValue; - // Add zero padding if necessary and cast to hex the suffix. - const suffix = binNumber.toString(16).padStart(this.suffixLen, '0'); - return `${this.namePrefix}-${suffix}`; - } - *getRoles() { - for (let i = 0; i < this.numberOfBins; i++) { - const suffix = i.toString(16).padStart(this.suffixLen, '0'); - yield `${this.namePrefix}-${suffix}`; - } - } - /*** - * Determines whether the given ``role_name`` is in one of - * the delegated roles that ``SuccinctRoles`` represents. - * - * Args: - * role_name: The name of the role to check against. - */ - isDelegatedRole(roleName) { - const desiredPrefix = this.namePrefix + '-'; - if (!roleName.startsWith(desiredPrefix)) { - return false; - } - const suffix = roleName.slice(desiredPrefix.length, roleName.length); - if (suffix.length != this.suffixLen) { - return false; - } - // make sure the suffix is a hex string - if (!suffix.match(/^[0-9a-fA-F]+$/)) { - return false; - } - const num = parseInt(suffix, 16); - return 0 <= num && num < this.numberOfBins; - } - toJSON() { - const json = { - ...super.toJSON(), - bit_length: this.bitLength, - name_prefix: this.namePrefix, - }; - return json; - } - static fromJSON(data) { - const { keyids, threshold, bit_length, name_prefix, ...rest } = data; - if (!utils_1.guard.isStringArray(keyids)) { - throw new TypeError('keyids must be an array of strings'); - } - if (typeof threshold !== 'number') { - throw new TypeError('threshold must be a number'); - } - if (typeof bit_length !== 'number') { - throw new TypeError('bit_length must be a number'); - } - if (typeof name_prefix !== 'string') { - throw new TypeError('name_prefix must be a string'); - } - return new SuccinctRoles({ - keyIDs: keyids, - threshold, - bitLength: bit_length, - namePrefix: name_prefix, - unrecognizedFields: rest, - }); - } -} -exports.SuccinctRoles = SuccinctRoles; diff --git a/node_modules/@tufjs/models/dist/root.d.ts b/node_modules/@tufjs/models/dist/root.d.ts deleted file mode 100644 index eb5eb8de..00000000 --- a/node_modules/@tufjs/models/dist/root.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { MetadataKind, Signed, SignedOptions } from './base'; -import { Key } from './key'; -import { Role } from './role'; -import { JSONObject } from './utils'; -type KeyMap = Record; -type RoleMap = Record; -export interface RootOptions extends SignedOptions { - keys?: Record; - roles?: Record; - consistentSnapshot?: boolean; -} -/** - * A container for the signed part of root metadata. - * - * The top-level role and metadata file signed by the root keys. - * This role specifies trusted keys for all other top-level roles, which may further delegate trust. - */ -export declare class Root extends Signed { - readonly type = MetadataKind.Root; - readonly keys: KeyMap; - readonly roles: RoleMap; - readonly consistentSnapshot: boolean; - constructor(options: RootOptions); - addKey(key: Key, role: string): void; - equals(other: Root): boolean; - toJSON(): JSONObject; - static fromJSON(data: JSONObject): Root; -} -export {}; diff --git a/node_modules/@tufjs/models/dist/root.js b/node_modules/@tufjs/models/dist/root.js deleted file mode 100644 index 36d0ef0f..00000000 --- a/node_modules/@tufjs/models/dist/root.js +++ /dev/null @@ -1,116 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Root = void 0; -const util_1 = __importDefault(require("util")); -const base_1 = require("./base"); -const error_1 = require("./error"); -const key_1 = require("./key"); -const role_1 = require("./role"); -const utils_1 = require("./utils"); -/** - * A container for the signed part of root metadata. - * - * The top-level role and metadata file signed by the root keys. - * This role specifies trusted keys for all other top-level roles, which may further delegate trust. - */ -class Root extends base_1.Signed { - constructor(options) { - super(options); - this.type = base_1.MetadataKind.Root; - this.keys = options.keys || {}; - this.consistentSnapshot = options.consistentSnapshot ?? true; - if (!options.roles) { - this.roles = role_1.TOP_LEVEL_ROLE_NAMES.reduce((acc, role) => ({ - ...acc, - [role]: new role_1.Role({ keyIDs: [], threshold: 1 }), - }), {}); - } - else { - const roleNames = new Set(Object.keys(options.roles)); - if (!role_1.TOP_LEVEL_ROLE_NAMES.every((role) => roleNames.has(role))) { - throw new error_1.ValueError('missing top-level role'); - } - this.roles = options.roles; - } - } - addKey(key, role) { - if (!this.roles[role]) { - throw new error_1.ValueError(`role ${role} does not exist`); - } - if (!this.roles[role].keyIDs.includes(key.keyID)) { - this.roles[role].keyIDs.push(key.keyID); - } - this.keys[key.keyID] = key; - } - equals(other) { - if (!(other instanceof Root)) { - return false; - } - return (super.equals(other) && - this.consistentSnapshot === other.consistentSnapshot && - util_1.default.isDeepStrictEqual(this.keys, other.keys) && - util_1.default.isDeepStrictEqual(this.roles, other.roles)); - } - toJSON() { - return { - _type: this.type, - spec_version: this.specVersion, - version: this.version, - expires: this.expires, - keys: keysToJSON(this.keys), - roles: rolesToJSON(this.roles), - consistent_snapshot: this.consistentSnapshot, - ...this.unrecognizedFields, - }; - } - static fromJSON(data) { - const { unrecognizedFields, ...commonFields } = base_1.Signed.commonFieldsFromJSON(data); - const { keys, roles, consistent_snapshot, ...rest } = unrecognizedFields; - if (typeof consistent_snapshot !== 'boolean') { - throw new TypeError('consistent_snapshot must be a boolean'); - } - return new Root({ - ...commonFields, - keys: keysFromJSON(keys), - roles: rolesFromJSON(roles), - consistentSnapshot: consistent_snapshot, - unrecognizedFields: rest, - }); - } -} -exports.Root = Root; -function keysToJSON(keys) { - return Object.entries(keys).reduce((acc, [keyID, key]) => ({ ...acc, [keyID]: key.toJSON() }), {}); -} -function rolesToJSON(roles) { - return Object.entries(roles).reduce((acc, [roleName, role]) => ({ ...acc, [roleName]: role.toJSON() }), {}); -} -function keysFromJSON(data) { - let keys; - if (utils_1.guard.isDefined(data)) { - if (!utils_1.guard.isObjectRecord(data)) { - throw new TypeError('keys must be an object'); - } - keys = Object.entries(data).reduce((acc, [keyID, keyData]) => ({ - ...acc, - [keyID]: key_1.Key.fromJSON(keyID, keyData), - }), {}); - } - return keys; -} -function rolesFromJSON(data) { - let roles; - if (utils_1.guard.isDefined(data)) { - if (!utils_1.guard.isObjectRecord(data)) { - throw new TypeError('roles must be an object'); - } - roles = Object.entries(data).reduce((acc, [roleName, roleData]) => ({ - ...acc, - [roleName]: role_1.Role.fromJSON(roleData), - }), {}); - } - return roles; -} diff --git a/node_modules/@tufjs/models/dist/signature.d.ts b/node_modules/@tufjs/models/dist/signature.d.ts deleted file mode 100644 index dbeabbef..00000000 --- a/node_modules/@tufjs/models/dist/signature.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { JSONObject } from './utils'; -export interface SignatureOptions { - keyID: string; - sig: string; -} -/** - * A container class containing information about a signature. - * - * Contains a signature and the keyid uniquely identifying the key used - * to generate the signature. - * - * Provide a `fromJSON` method to create a Signature from a JSON object. - */ -export declare class Signature { - readonly keyID: string; - readonly sig: string; - constructor(options: SignatureOptions); - toJSON(): JSONObject; - static fromJSON(data: JSONObject): Signature; -} diff --git a/node_modules/@tufjs/models/dist/signature.js b/node_modules/@tufjs/models/dist/signature.js deleted file mode 100644 index 33eb204e..00000000 --- a/node_modules/@tufjs/models/dist/signature.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Signature = void 0; -/** - * A container class containing information about a signature. - * - * Contains a signature and the keyid uniquely identifying the key used - * to generate the signature. - * - * Provide a `fromJSON` method to create a Signature from a JSON object. - */ -class Signature { - constructor(options) { - const { keyID, sig } = options; - this.keyID = keyID; - this.sig = sig; - } - toJSON() { - return { - keyid: this.keyID, - sig: this.sig, - }; - } - static fromJSON(data) { - const { keyid, sig } = data; - if (typeof keyid !== 'string') { - throw new TypeError('keyid must be a string'); - } - if (typeof sig !== 'string') { - throw new TypeError('sig must be a string'); - } - return new Signature({ - keyID: keyid, - sig: sig, - }); - } -} -exports.Signature = Signature; diff --git a/node_modules/@tufjs/models/dist/snapshot.d.ts b/node_modules/@tufjs/models/dist/snapshot.d.ts deleted file mode 100644 index bcc780ae..00000000 --- a/node_modules/@tufjs/models/dist/snapshot.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { MetadataKind, Signed, SignedOptions } from './base'; -import { MetaFile } from './file'; -import { JSONObject } from './utils'; -type MetaFileMap = Record; -export interface SnapshotOptions extends SignedOptions { - meta?: MetaFileMap; -} -/** - * A container for the signed part of snapshot metadata. - * - * Snapshot contains information about all target Metadata files. - * A top-level role that specifies the latest versions of all targets metadata files, - * and hence the latest versions of all targets (including any dependencies between them) on the repository. - */ -export declare class Snapshot extends Signed { - readonly type = MetadataKind.Snapshot; - readonly meta: MetaFileMap; - constructor(opts: SnapshotOptions); - equals(other: Snapshot): boolean; - toJSON(): JSONObject; - static fromJSON(data: JSONObject): Snapshot; -} -export {}; diff --git a/node_modules/@tufjs/models/dist/snapshot.js b/node_modules/@tufjs/models/dist/snapshot.js deleted file mode 100644 index e90ea8e7..00000000 --- a/node_modules/@tufjs/models/dist/snapshot.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Snapshot = void 0; -const util_1 = __importDefault(require("util")); -const base_1 = require("./base"); -const file_1 = require("./file"); -const utils_1 = require("./utils"); -/** - * A container for the signed part of snapshot metadata. - * - * Snapshot contains information about all target Metadata files. - * A top-level role that specifies the latest versions of all targets metadata files, - * and hence the latest versions of all targets (including any dependencies between them) on the repository. - */ -class Snapshot extends base_1.Signed { - constructor(opts) { - super(opts); - this.type = base_1.MetadataKind.Snapshot; - this.meta = opts.meta || { 'targets.json': new file_1.MetaFile({ version: 1 }) }; - } - equals(other) { - if (!(other instanceof Snapshot)) { - return false; - } - return super.equals(other) && util_1.default.isDeepStrictEqual(this.meta, other.meta); - } - toJSON() { - return { - _type: this.type, - meta: metaToJSON(this.meta), - spec_version: this.specVersion, - version: this.version, - expires: this.expires, - ...this.unrecognizedFields, - }; - } - static fromJSON(data) { - const { unrecognizedFields, ...commonFields } = base_1.Signed.commonFieldsFromJSON(data); - const { meta, ...rest } = unrecognizedFields; - return new Snapshot({ - ...commonFields, - meta: metaFromJSON(meta), - unrecognizedFields: rest, - }); - } -} -exports.Snapshot = Snapshot; -function metaToJSON(meta) { - return Object.entries(meta).reduce((acc, [path, metadata]) => ({ - ...acc, - [path]: metadata.toJSON(), - }), {}); -} -function metaFromJSON(data) { - let meta; - if (utils_1.guard.isDefined(data)) { - if (!utils_1.guard.isObjectRecord(data)) { - throw new TypeError('meta field is malformed'); - } - else { - meta = Object.entries(data).reduce((acc, [path, metadata]) => ({ - ...acc, - [path]: file_1.MetaFile.fromJSON(metadata), - }), {}); - } - } - return meta; -} diff --git a/node_modules/@tufjs/models/dist/targets.d.ts b/node_modules/@tufjs/models/dist/targets.d.ts deleted file mode 100644 index 442f9e44..00000000 --- a/node_modules/@tufjs/models/dist/targets.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { MetadataKind, Signed, SignedOptions } from './base'; -import { Delegations } from './delegations'; -import { TargetFile } from './file'; -import { JSONObject } from './utils'; -type TargetFileMap = Record; -interface TargetsOptions extends SignedOptions { - targets?: TargetFileMap; - delegations?: Delegations; -} -export declare class Targets extends Signed { - readonly type = MetadataKind.Targets; - readonly targets: TargetFileMap; - readonly delegations?: Delegations; - constructor(options: TargetsOptions); - addTarget(target: TargetFile): void; - equals(other: Targets): boolean; - toJSON(): JSONObject; - static fromJSON(data: JSONObject): Targets; -} -export {}; diff --git a/node_modules/@tufjs/models/dist/targets.js b/node_modules/@tufjs/models/dist/targets.js deleted file mode 100644 index 54bd8f8c..00000000 --- a/node_modules/@tufjs/models/dist/targets.js +++ /dev/null @@ -1,92 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Targets = void 0; -const util_1 = __importDefault(require("util")); -const base_1 = require("./base"); -const delegations_1 = require("./delegations"); -const file_1 = require("./file"); -const utils_1 = require("./utils"); -// Container for the signed part of targets metadata. -// -// Targets contains verifying information about target files and also delegates -// responsible to other Targets roles. -class Targets extends base_1.Signed { - constructor(options) { - super(options); - this.type = base_1.MetadataKind.Targets; - this.targets = options.targets || {}; - this.delegations = options.delegations; - } - addTarget(target) { - this.targets[target.path] = target; - } - equals(other) { - if (!(other instanceof Targets)) { - return false; - } - return (super.equals(other) && - util_1.default.isDeepStrictEqual(this.targets, other.targets) && - util_1.default.isDeepStrictEqual(this.delegations, other.delegations)); - } - toJSON() { - const json = { - _type: this.type, - spec_version: this.specVersion, - version: this.version, - expires: this.expires, - targets: targetsToJSON(this.targets), - ...this.unrecognizedFields, - }; - if (this.delegations) { - json.delegations = this.delegations.toJSON(); - } - return json; - } - static fromJSON(data) { - const { unrecognizedFields, ...commonFields } = base_1.Signed.commonFieldsFromJSON(data); - const { targets, delegations, ...rest } = unrecognizedFields; - return new Targets({ - ...commonFields, - targets: targetsFromJSON(targets), - delegations: delegationsFromJSON(delegations), - unrecognizedFields: rest, - }); - } -} -exports.Targets = Targets; -function targetsToJSON(targets) { - return Object.entries(targets).reduce((acc, [path, target]) => ({ - ...acc, - [path]: target.toJSON(), - }), {}); -} -function targetsFromJSON(data) { - let targets; - if (utils_1.guard.isDefined(data)) { - if (!utils_1.guard.isObjectRecord(data)) { - throw new TypeError('targets must be an object'); - } - else { - targets = Object.entries(data).reduce((acc, [path, target]) => ({ - ...acc, - [path]: file_1.TargetFile.fromJSON(path, target), - }), {}); - } - } - return targets; -} -function delegationsFromJSON(data) { - let delegations; - if (utils_1.guard.isDefined(data)) { - if (!utils_1.guard.isObject(data)) { - throw new TypeError('delegations must be an object'); - } - else { - delegations = delegations_1.Delegations.fromJSON(data); - } - } - return delegations; -} diff --git a/node_modules/@tufjs/models/dist/timestamp.d.ts b/node_modules/@tufjs/models/dist/timestamp.d.ts deleted file mode 100644 index 9ab012b8..00000000 --- a/node_modules/@tufjs/models/dist/timestamp.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { MetadataKind, Signed, SignedOptions } from './base'; -import { MetaFile } from './file'; -import { JSONObject } from './utils'; -interface TimestampOptions extends SignedOptions { - snapshotMeta?: MetaFile; -} -/** - * A container for the signed part of timestamp metadata. - * - * A top-level that specifies the latest version of the snapshot role metadata file, - * and hence the latest versions of all metadata and targets on the repository. - */ -export declare class Timestamp extends Signed { - readonly type = MetadataKind.Timestamp; - readonly snapshotMeta: MetaFile; - constructor(options: TimestampOptions); - equals(other: Timestamp): boolean; - toJSON(): JSONObject; - static fromJSON(data: JSONObject): Timestamp; -} -export {}; diff --git a/node_modules/@tufjs/models/dist/timestamp.js b/node_modules/@tufjs/models/dist/timestamp.js deleted file mode 100644 index 9880c4c9..00000000 --- a/node_modules/@tufjs/models/dist/timestamp.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Timestamp = void 0; -const base_1 = require("./base"); -const file_1 = require("./file"); -const utils_1 = require("./utils"); -/** - * A container for the signed part of timestamp metadata. - * - * A top-level that specifies the latest version of the snapshot role metadata file, - * and hence the latest versions of all metadata and targets on the repository. - */ -class Timestamp extends base_1.Signed { - constructor(options) { - super(options); - this.type = base_1.MetadataKind.Timestamp; - this.snapshotMeta = options.snapshotMeta || new file_1.MetaFile({ version: 1 }); - } - equals(other) { - if (!(other instanceof Timestamp)) { - return false; - } - return super.equals(other) && this.snapshotMeta.equals(other.snapshotMeta); - } - toJSON() { - return { - _type: this.type, - spec_version: this.specVersion, - version: this.version, - expires: this.expires, - meta: { 'snapshot.json': this.snapshotMeta.toJSON() }, - ...this.unrecognizedFields, - }; - } - static fromJSON(data) { - const { unrecognizedFields, ...commonFields } = base_1.Signed.commonFieldsFromJSON(data); - const { meta, ...rest } = unrecognizedFields; - return new Timestamp({ - ...commonFields, - snapshotMeta: snapshotMetaFromJSON(meta), - unrecognizedFields: rest, - }); - } -} -exports.Timestamp = Timestamp; -function snapshotMetaFromJSON(data) { - let snapshotMeta; - if (utils_1.guard.isDefined(data)) { - const snapshotData = data['snapshot.json']; - if (!utils_1.guard.isDefined(snapshotData) || !utils_1.guard.isObject(snapshotData)) { - throw new TypeError('missing snapshot.json in meta'); - } - else { - snapshotMeta = file_1.MetaFile.fromJSON(snapshotData); - } - } - return snapshotMeta; -} diff --git a/node_modules/@tufjs/models/dist/utils/guard.d.ts b/node_modules/@tufjs/models/dist/utils/guard.d.ts deleted file mode 100644 index 60c80e16..00000000 --- a/node_modules/@tufjs/models/dist/utils/guard.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { JSONObject } from './types'; -export declare function isDefined(val: T | undefined): val is T; -export declare function isObject(value: unknown): value is JSONObject; -export declare function isStringArray(value: unknown): value is string[]; -export declare function isObjectArray(value: unknown): value is JSONObject[]; -export declare function isStringRecord(value: unknown): value is Record; -export declare function isObjectRecord(value: unknown): value is Record; diff --git a/node_modules/@tufjs/models/dist/utils/guard.js b/node_modules/@tufjs/models/dist/utils/guard.js deleted file mode 100644 index efe55885..00000000 --- a/node_modules/@tufjs/models/dist/utils/guard.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isObjectRecord = exports.isStringRecord = exports.isObjectArray = exports.isStringArray = exports.isObject = exports.isDefined = void 0; -function isDefined(val) { - return val !== undefined; -} -exports.isDefined = isDefined; -function isObject(value) { - return typeof value === 'object' && value !== null; -} -exports.isObject = isObject; -function isStringArray(value) { - return Array.isArray(value) && value.every((v) => typeof v === 'string'); -} -exports.isStringArray = isStringArray; -function isObjectArray(value) { - return Array.isArray(value) && value.every(isObject); -} -exports.isObjectArray = isObjectArray; -function isStringRecord(value) { - return (typeof value === 'object' && - value !== null && - Object.keys(value).every((k) => typeof k === 'string') && - Object.values(value).every((v) => typeof v === 'string')); -} -exports.isStringRecord = isStringRecord; -function isObjectRecord(value) { - return (typeof value === 'object' && - value !== null && - Object.keys(value).every((k) => typeof k === 'string') && - Object.values(value).every((v) => typeof v === 'object' && v !== null)); -} -exports.isObjectRecord = isObjectRecord; diff --git a/node_modules/@tufjs/models/dist/utils/index.d.ts b/node_modules/@tufjs/models/dist/utils/index.d.ts deleted file mode 100644 index 7dbbd1ee..00000000 --- a/node_modules/@tufjs/models/dist/utils/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * as guard from './guard'; -export { JSONObject, JSONValue } from './types'; -export * as crypto from './verify'; diff --git a/node_modules/@tufjs/models/dist/utils/index.js b/node_modules/@tufjs/models/dist/utils/index.js deleted file mode 100644 index 872aae28..00000000 --- a/node_modules/@tufjs/models/dist/utils/index.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.crypto = exports.guard = void 0; -exports.guard = __importStar(require("./guard")); -exports.crypto = __importStar(require("./verify")); diff --git a/node_modules/@tufjs/models/dist/utils/key.d.ts b/node_modules/@tufjs/models/dist/utils/key.d.ts deleted file mode 100644 index 7b631281..00000000 --- a/node_modules/@tufjs/models/dist/utils/key.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// -import { VerifyKeyObjectInput } from 'crypto'; -interface KeyInfo { - keyType: string; - scheme: string; - keyVal: string; -} -export declare function getPublicKey(keyInfo: KeyInfo): VerifyKeyObjectInput; -export {}; diff --git a/node_modules/@tufjs/models/dist/utils/key.js b/node_modules/@tufjs/models/dist/utils/key.js deleted file mode 100644 index 1f795ba1..00000000 --- a/node_modules/@tufjs/models/dist/utils/key.js +++ /dev/null @@ -1,143 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getPublicKey = void 0; -const crypto_1 = __importDefault(require("crypto")); -const error_1 = require("../error"); -const oid_1 = require("./oid"); -const ASN1_TAG_SEQUENCE = 0x30; -const ANS1_TAG_BIT_STRING = 0x03; -const NULL_BYTE = 0x00; -const OID_EDDSA = '1.3.101.112'; -const OID_EC_PUBLIC_KEY = '1.2.840.10045.2.1'; -const OID_EC_CURVE_P256V1 = '1.2.840.10045.3.1.7'; -const PEM_HEADER = '-----BEGIN PUBLIC KEY-----'; -function getPublicKey(keyInfo) { - switch (keyInfo.keyType) { - case 'rsa': - return getRSAPublicKey(keyInfo); - case 'ed25519': - return getED25519PublicKey(keyInfo); - case 'ecdsa': - case 'ecdsa-sha2-nistp256': - case 'ecdsa-sha2-nistp384': - return getECDCSAPublicKey(keyInfo); - default: - throw new error_1.UnsupportedAlgorithmError(`Unsupported key type: ${keyInfo.keyType}`); - } -} -exports.getPublicKey = getPublicKey; -function getRSAPublicKey(keyInfo) { - // Only support PEM-encoded RSA keys - if (!keyInfo.keyVal.startsWith(PEM_HEADER)) { - throw new error_1.CryptoError('Invalid key format'); - } - const key = crypto_1.default.createPublicKey(keyInfo.keyVal); - switch (keyInfo.scheme) { - case 'rsassa-pss-sha256': - return { - key: key, - padding: crypto_1.default.constants.RSA_PKCS1_PSS_PADDING, - }; - default: - throw new error_1.UnsupportedAlgorithmError(`Unsupported RSA scheme: ${keyInfo.scheme}`); - } -} -function getED25519PublicKey(keyInfo) { - let key; - // If key is already PEM-encoded we can just parse it - if (keyInfo.keyVal.startsWith(PEM_HEADER)) { - key = crypto_1.default.createPublicKey(keyInfo.keyVal); - } - else { - // If key is not PEM-encoded it had better be hex - if (!isHex(keyInfo.keyVal)) { - throw new error_1.CryptoError('Invalid key format'); - } - key = crypto_1.default.createPublicKey({ - key: ed25519.hexToDER(keyInfo.keyVal), - format: 'der', - type: 'spki', - }); - } - return { key }; -} -function getECDCSAPublicKey(keyInfo) { - let key; - // If key is already PEM-encoded we can just parse it - if (keyInfo.keyVal.startsWith(PEM_HEADER)) { - key = crypto_1.default.createPublicKey(keyInfo.keyVal); - } - else { - // If key is not PEM-encoded it had better be hex - if (!isHex(keyInfo.keyVal)) { - throw new error_1.CryptoError('Invalid key format'); - } - key = crypto_1.default.createPublicKey({ - key: ecdsa.hexToDER(keyInfo.keyVal), - format: 'der', - type: 'spki', - }); - } - return { key }; -} -const ed25519 = { - // Translates a hex key into a crypto KeyObject - // https://keygen.sh/blog/how-to-use-hexadecimal-ed25519-keys-in-node/ - hexToDER: (hex) => { - const key = Buffer.from(hex, 'hex'); - const oid = (0, oid_1.encodeOIDString)(OID_EDDSA); - // Create a byte sequence containing the OID and key - const elements = Buffer.concat([ - Buffer.concat([ - Buffer.from([ASN1_TAG_SEQUENCE]), - Buffer.from([oid.length]), - oid, - ]), - Buffer.concat([ - Buffer.from([ANS1_TAG_BIT_STRING]), - Buffer.from([key.length + 1]), - Buffer.from([NULL_BYTE]), - key, - ]), - ]); - // Wrap up by creating a sequence of elements - const der = Buffer.concat([ - Buffer.from([ASN1_TAG_SEQUENCE]), - Buffer.from([elements.length]), - elements, - ]); - return der; - }, -}; -const ecdsa = { - hexToDER: (hex) => { - const key = Buffer.from(hex, 'hex'); - const bitString = Buffer.concat([ - Buffer.from([ANS1_TAG_BIT_STRING]), - Buffer.from([key.length + 1]), - Buffer.from([NULL_BYTE]), - key, - ]); - const oids = Buffer.concat([ - (0, oid_1.encodeOIDString)(OID_EC_PUBLIC_KEY), - (0, oid_1.encodeOIDString)(OID_EC_CURVE_P256V1), - ]); - const oidSequence = Buffer.concat([ - Buffer.from([ASN1_TAG_SEQUENCE]), - Buffer.from([oids.length]), - oids, - ]); - // Wrap up by creating a sequence of elements - const der = Buffer.concat([ - Buffer.from([ASN1_TAG_SEQUENCE]), - Buffer.from([oidSequence.length + bitString.length]), - oidSequence, - bitString, - ]); - return der; - }, -}; -const isHex = (key) => /^[0-9a-fA-F]+$/.test(key); diff --git a/node_modules/@tufjs/models/dist/utils/oid.d.ts b/node_modules/@tufjs/models/dist/utils/oid.d.ts deleted file mode 100644 index f20456a9..00000000 --- a/node_modules/@tufjs/models/dist/utils/oid.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/// -export declare function encodeOIDString(oid: string): Buffer; diff --git a/node_modules/@tufjs/models/dist/utils/oid.js b/node_modules/@tufjs/models/dist/utils/oid.js deleted file mode 100644 index e1bb7af5..00000000 --- a/node_modules/@tufjs/models/dist/utils/oid.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.encodeOIDString = void 0; -const ANS1_TAG_OID = 0x06; -function encodeOIDString(oid) { - const parts = oid.split('.'); - // The first two subidentifiers are encoded into the first byte - const first = parseInt(parts[0], 10) * 40 + parseInt(parts[1], 10); - const rest = []; - parts.slice(2).forEach((part) => { - const bytes = encodeVariableLengthInteger(parseInt(part, 10)); - rest.push(...bytes); - }); - const der = Buffer.from([first, ...rest]); - return Buffer.from([ANS1_TAG_OID, der.length, ...der]); -} -exports.encodeOIDString = encodeOIDString; -function encodeVariableLengthInteger(value) { - const bytes = []; - let mask = 0x00; - while (value > 0) { - bytes.unshift((value & 0x7f) | mask); - value >>= 7; - mask = 0x80; - } - return bytes; -} diff --git a/node_modules/@tufjs/models/dist/utils/types.d.ts b/node_modules/@tufjs/models/dist/utils/types.d.ts deleted file mode 100644 index dd3964ec..00000000 --- a/node_modules/@tufjs/models/dist/utils/types.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export type JSONObject = { - [key: string]: JSONValue; -}; -export type JSONValue = null | boolean | number | string | JSONValue[] | JSONObject; diff --git a/node_modules/@tufjs/models/dist/utils/types.js b/node_modules/@tufjs/models/dist/utils/types.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@tufjs/models/dist/utils/types.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@tufjs/models/dist/utils/verify.d.ts b/node_modules/@tufjs/models/dist/utils/verify.d.ts deleted file mode 100644 index 376ef113..00000000 --- a/node_modules/@tufjs/models/dist/utils/verify.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import crypto from 'crypto'; -import { JSONObject } from '../utils/types'; -export declare const verifySignature: (metaDataSignedData: JSONObject, key: crypto.VerifyKeyObjectInput, signature: string) => boolean; diff --git a/node_modules/@tufjs/models/dist/utils/verify.js b/node_modules/@tufjs/models/dist/utils/verify.js deleted file mode 100644 index 8232b6f6..00000000 --- a/node_modules/@tufjs/models/dist/utils/verify.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.verifySignature = void 0; -const canonical_json_1 = require("@tufjs/canonical-json"); -const crypto_1 = __importDefault(require("crypto")); -const verifySignature = (metaDataSignedData, key, signature) => { - const canonicalData = Buffer.from((0, canonical_json_1.canonicalize)(metaDataSignedData)); - return crypto_1.default.verify(undefined, canonicalData, key, Buffer.from(signature, 'hex')); -}; -exports.verifySignature = verifySignature; diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js deleted file mode 100644 index 4904aca8..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js +++ /dev/null @@ -1,182 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// YOU CAN REGENERATE IT USING yarn generate:configs -module.exports = { - extends: ['./configs/base', './configs/eslint-recommended'], - rules: { - '@typescript-eslint/adjacent-overload-signatures': 'error', - '@typescript-eslint/array-type': 'error', - '@typescript-eslint/await-thenable': 'error', - '@typescript-eslint/ban-ts-comment': 'error', - '@typescript-eslint/ban-tslint-comment': 'error', - '@typescript-eslint/ban-types': 'error', - 'block-spacing': 'off', - '@typescript-eslint/block-spacing': 'error', - 'brace-style': 'off', - '@typescript-eslint/brace-style': 'error', - '@typescript-eslint/class-literal-property-style': 'error', - 'comma-dangle': 'off', - '@typescript-eslint/comma-dangle': 'error', - 'comma-spacing': 'off', - '@typescript-eslint/comma-spacing': 'error', - '@typescript-eslint/consistent-generic-constructors': 'error', - '@typescript-eslint/consistent-indexed-object-style': 'error', - '@typescript-eslint/consistent-type-assertions': 'error', - '@typescript-eslint/consistent-type-definitions': 'error', - '@typescript-eslint/consistent-type-exports': 'error', - '@typescript-eslint/consistent-type-imports': 'error', - 'default-param-last': 'off', - '@typescript-eslint/default-param-last': 'error', - 'dot-notation': 'off', - '@typescript-eslint/dot-notation': 'error', - '@typescript-eslint/explicit-function-return-type': 'error', - '@typescript-eslint/explicit-member-accessibility': 'error', - '@typescript-eslint/explicit-module-boundary-types': 'error', - 'func-call-spacing': 'off', - '@typescript-eslint/func-call-spacing': 'error', - indent: 'off', - '@typescript-eslint/indent': 'error', - 'init-declarations': 'off', - '@typescript-eslint/init-declarations': 'error', - 'key-spacing': 'off', - '@typescript-eslint/key-spacing': 'error', - 'keyword-spacing': 'off', - '@typescript-eslint/keyword-spacing': 'error', - 'lines-around-comment': 'off', - '@typescript-eslint/lines-around-comment': 'error', - 'lines-between-class-members': 'off', - '@typescript-eslint/lines-between-class-members': 'error', - '@typescript-eslint/member-delimiter-style': 'error', - '@typescript-eslint/member-ordering': 'error', - '@typescript-eslint/method-signature-style': 'error', - '@typescript-eslint/naming-convention': 'error', - 'no-array-constructor': 'off', - '@typescript-eslint/no-array-constructor': 'error', - '@typescript-eslint/no-base-to-string': 'error', - '@typescript-eslint/no-confusing-non-null-assertion': 'error', - '@typescript-eslint/no-confusing-void-expression': 'error', - 'no-dupe-class-members': 'off', - '@typescript-eslint/no-dupe-class-members': 'error', - '@typescript-eslint/no-duplicate-enum-values': 'error', - '@typescript-eslint/no-duplicate-type-constituents': 'error', - '@typescript-eslint/no-dynamic-delete': 'error', - 'no-empty-function': 'off', - '@typescript-eslint/no-empty-function': 'error', - '@typescript-eslint/no-empty-interface': 'error', - '@typescript-eslint/no-explicit-any': 'error', - '@typescript-eslint/no-extra-non-null-assertion': 'error', - 'no-extra-parens': 'off', - '@typescript-eslint/no-extra-parens': 'error', - 'no-extra-semi': 'off', - '@typescript-eslint/no-extra-semi': 'error', - '@typescript-eslint/no-extraneous-class': 'error', - '@typescript-eslint/no-floating-promises': 'error', - '@typescript-eslint/no-for-in-array': 'error', - 'no-implied-eval': 'off', - '@typescript-eslint/no-implied-eval': 'error', - '@typescript-eslint/no-import-type-side-effects': 'error', - '@typescript-eslint/no-inferrable-types': 'error', - 'no-invalid-this': 'off', - '@typescript-eslint/no-invalid-this': 'error', - '@typescript-eslint/no-invalid-void-type': 'error', - 'no-loop-func': 'off', - '@typescript-eslint/no-loop-func': 'error', - 'no-loss-of-precision': 'off', - '@typescript-eslint/no-loss-of-precision': 'error', - 'no-magic-numbers': 'off', - '@typescript-eslint/no-magic-numbers': 'error', - '@typescript-eslint/no-meaningless-void-operator': 'error', - '@typescript-eslint/no-misused-new': 'error', - '@typescript-eslint/no-misused-promises': 'error', - '@typescript-eslint/no-mixed-enums': 'error', - '@typescript-eslint/no-namespace': 'error', - '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error', - '@typescript-eslint/no-non-null-asserted-optional-chain': 'error', - '@typescript-eslint/no-non-null-assertion': 'error', - 'no-redeclare': 'off', - '@typescript-eslint/no-redeclare': 'error', - '@typescript-eslint/no-redundant-type-constituents': 'error', - '@typescript-eslint/no-require-imports': 'error', - 'no-restricted-imports': 'off', - '@typescript-eslint/no-restricted-imports': 'error', - 'no-shadow': 'off', - '@typescript-eslint/no-shadow': 'error', - '@typescript-eslint/no-this-alias': 'error', - 'no-throw-literal': 'off', - '@typescript-eslint/no-throw-literal': 'error', - '@typescript-eslint/no-type-alias': 'error', - '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error', - '@typescript-eslint/no-unnecessary-condition': 'error', - '@typescript-eslint/no-unnecessary-qualifier': 'error', - '@typescript-eslint/no-unnecessary-type-arguments': 'error', - '@typescript-eslint/no-unnecessary-type-assertion': 'error', - '@typescript-eslint/no-unnecessary-type-constraint': 'error', - '@typescript-eslint/no-unsafe-argument': 'error', - '@typescript-eslint/no-unsafe-assignment': 'error', - '@typescript-eslint/no-unsafe-call': 'error', - '@typescript-eslint/no-unsafe-declaration-merging': 'error', - '@typescript-eslint/no-unsafe-enum-comparison': 'error', - '@typescript-eslint/no-unsafe-member-access': 'error', - '@typescript-eslint/no-unsafe-return': 'error', - 'no-unused-expressions': 'off', - '@typescript-eslint/no-unused-expressions': 'error', - 'no-unused-vars': 'off', - '@typescript-eslint/no-unused-vars': 'error', - 'no-use-before-define': 'off', - '@typescript-eslint/no-use-before-define': 'error', - 'no-useless-constructor': 'off', - '@typescript-eslint/no-useless-constructor': 'error', - '@typescript-eslint/no-useless-empty-export': 'error', - '@typescript-eslint/no-var-requires': 'error', - '@typescript-eslint/non-nullable-type-assertion-style': 'error', - 'object-curly-spacing': 'off', - '@typescript-eslint/object-curly-spacing': 'error', - 'padding-line-between-statements': 'off', - '@typescript-eslint/padding-line-between-statements': 'error', - '@typescript-eslint/parameter-properties': 'error', - '@typescript-eslint/prefer-as-const': 'error', - '@typescript-eslint/prefer-enum-initializers': 'error', - '@typescript-eslint/prefer-for-of': 'error', - '@typescript-eslint/prefer-function-type': 'error', - '@typescript-eslint/prefer-includes': 'error', - '@typescript-eslint/prefer-literal-enum-member': 'error', - '@typescript-eslint/prefer-namespace-keyword': 'error', - '@typescript-eslint/prefer-nullish-coalescing': 'error', - '@typescript-eslint/prefer-optional-chain': 'error', - '@typescript-eslint/prefer-readonly': 'error', - '@typescript-eslint/prefer-readonly-parameter-types': 'error', - '@typescript-eslint/prefer-reduce-type-parameter': 'error', - '@typescript-eslint/prefer-regexp-exec': 'error', - '@typescript-eslint/prefer-return-this-type': 'error', - '@typescript-eslint/prefer-string-starts-ends-with': 'error', - '@typescript-eslint/prefer-ts-expect-error': 'error', - '@typescript-eslint/promise-function-async': 'error', - quotes: 'off', - '@typescript-eslint/quotes': 'error', - '@typescript-eslint/require-array-sort-compare': 'error', - 'require-await': 'off', - '@typescript-eslint/require-await': 'error', - '@typescript-eslint/restrict-plus-operands': 'error', - '@typescript-eslint/restrict-template-expressions': 'error', - 'no-return-await': 'off', - '@typescript-eslint/return-await': 'error', - semi: 'off', - '@typescript-eslint/semi': 'error', - '@typescript-eslint/sort-type-constituents': 'error', - 'space-before-blocks': 'off', - '@typescript-eslint/space-before-blocks': 'error', - 'space-before-function-paren': 'off', - '@typescript-eslint/space-before-function-paren': 'error', - 'space-infix-ops': 'off', - '@typescript-eslint/space-infix-ops': 'error', - '@typescript-eslint/strict-boolean-expressions': 'error', - '@typescript-eslint/switch-exhaustiveness-check': 'error', - '@typescript-eslint/triple-slash-reference': 'error', - '@typescript-eslint/type-annotation-spacing': 'error', - '@typescript-eslint/typedef': 'error', - '@typescript-eslint/unbound-method': 'error', - '@typescript-eslint/unified-signatures': 'error', - }, -}; -//# sourceMappingURL=all.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map deleted file mode 100644 index 5b59a42f..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/all.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"all.js","sourceRoot":"","sources":["../../src/configs/all.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,oDAAoD;AAEpD,iBA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O;QAC7C,+CAA+C,EAAE,OAAO;QACxD,6CAA6C,EAAE,OAAO;QACtD,8CAA8C,EAAE,OAAO;QACvD,0CAA0C,EAAE,OAAO;QACnD,oCAAoC,EAAE,OAAO;QAC7C,oDAAoD,EAAE,OAAO;QAC7D,iDAAiD,EAAE,OAAO;QAC1D,uCAAuC,EAAE,OAAO;QAChD,4CAA4C,EAAE,OAAO;QACrD,mDAAmD,EAAE,OAAO;QAC5D,2CAA2C,EAAE,OAAO;QACpD,2CAA2C,EAAE,OAAO;QACpD,MAAM,EAAE,KAAK;QACb,2BAA2B,EAAE,OAAO;QACpC,+CAA+C,EAAE,OAAO;QACxD,eAAe,EAAE,KAAK;QACtB,kCAAkC,EAAE,OAAO;QAC3C,2CAA2C,EAAE,OAAO;QACpD,kDAAkD,EAAE,OAAO;QAC3D,iBAAiB,EAAE,KAAK;QACxB,iCAAiC,EAAE,OAAO;QAC1C,IAAI,EAAE,KAAK;QACX,yBAAyB,EAAE,OAAO;QAClC,2CAA2C,EAAE,OAAO;QACpD,qBAAqB,EAAE,KAAK;QAC5B,wCAAwC,EAAE,OAAO;QACjD,6BAA6B,EAAE,KAAK;QACpC,gDAAgD,EAAE,OAAO;QACzD,iBAAiB,EAAE,KAAK;QACxB,oCAAoC,EAAE,OAAO;QAC7C,+CAA+C,EAAE,OAAO;QACxD,gDAAgD,EAAE,OAAO;QACzD,2CAA2C,EAAE,OAAO;QACpD,4CAA4C,EAAE,OAAO;QACrD,4BAA4B,EAAE,OAAO;QACrC,mCAAmC,EAAE,OAAO;QAC5C,uCAAuC,EAAE,OAAO;KACjD;CACF,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js deleted file mode 100644 index 52d1fe8b..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// YOU CAN REGENERATE IT USING yarn generate:configs -module.exports = { - parser: '@typescript-eslint/parser', - parserOptions: { sourceType: 'module' }, - plugins: ['@typescript-eslint'], -}; -//# sourceMappingURL=base.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js.map deleted file mode 100644 index a2f415fc..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/base.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/configs/base.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,oDAAoD;AAEpD,iBAAS;IACP,MAAM,EAAE,2BAA2B;IACnC,aAAa,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE;IACvC,OAAO,EAAE,CAAC,oBAAoB,CAAC;CAChC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js deleted file mode 100644 index 5d14e2e4..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -module.exports = { - overrides: [ - { - files: ['*.ts', '*.tsx', '*.mts', '*.cts'], - rules: { - 'constructor-super': 'off', - 'getter-return': 'off', - 'no-const-assign': 'off', - 'no-dupe-args': 'off', - 'no-dupe-class-members': 'off', - 'no-dupe-keys': 'off', - 'no-func-assign': 'off', - 'no-import-assign': 'off', - 'no-new-symbol': 'off', - 'no-obj-calls': 'off', - 'no-redeclare': 'off', - 'no-setter-return': 'off', - 'no-this-before-super': 'off', - 'no-undef': 'off', - 'no-unreachable': 'off', - 'no-unsafe-negation': 'off', - 'no-var': 'error', - 'prefer-const': 'error', - 'prefer-rest-params': 'error', - 'prefer-spread': 'error', - 'valid-typeof': 'off', // ts(2367) - }, - }, - ], -}; -//# sourceMappingURL=eslint-recommended.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js.map deleted file mode 100644 index 90f98a18..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/eslint-recommended.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"eslint-recommended.js","sourceRoot":"","sources":["../../src/configs/eslint-recommended.ts"],"names":[],"mappings":";AAKA,iBAAS;IACP,SAAS,EAAE;QACT;YACE,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC;YAC1C,KAAK,EAAE;gBACL,mBAAmB,EAAE,KAAK;gBAC1B,eAAe,EAAE,KAAK;gBACtB,iBAAiB,EAAE,KAAK;gBACxB,cAAc,EAAE,KAAK;gBACrB,uBAAuB,EAAE,KAAK;gBAC9B,cAAc,EAAE,KAAK;gBACrB,gBAAgB,EAAE,KAAK;gBACvB,kBAAkB,EAAE,KAAK;gBACzB,eAAe,EAAE,KAAK;gBACtB,cAAc,EAAE,KAAK;gBACrB,cAAc,EAAE,KAAK;gBACrB,kBAAkB,EAAE,KAAK;gBACzB,sBAAsB,EAAE,KAAK;gBAC7B,UAAU,EAAE,KAAK;gBACjB,gBAAgB,EAAE,KAAK;gBACvB,oBAAoB,EAAE,KAAK;gBAC3B,QAAQ,EAAE,OAAO;gBACjB,cAAc,EAAE,OAAO;gBACvB,oBAAoB,EAAE,OAAO;gBAC7B,eAAe,EAAE,OAAO;gBACxB,cAAc,EAAE,KAAK,EAAE,WAAW;aACnC;SACF;KACF;CACF,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-requiring-type-checking.js b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-requiring-type-checking.js deleted file mode 100644 index d53a3e12..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-requiring-type-checking.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// YOU CAN REGENERATE IT USING yarn generate:configs -module.exports = { - extends: ['./configs/base', './configs/eslint-recommended'], - rules: { - '@typescript-eslint/await-thenable': 'error', - '@typescript-eslint/no-floating-promises': 'error', - '@typescript-eslint/no-for-in-array': 'error', - 'no-implied-eval': 'off', - '@typescript-eslint/no-implied-eval': 'error', - '@typescript-eslint/no-misused-promises': 'error', - '@typescript-eslint/no-unnecessary-type-assertion': 'error', - '@typescript-eslint/no-unsafe-argument': 'error', - '@typescript-eslint/no-unsafe-assignment': 'error', - '@typescript-eslint/no-unsafe-call': 'error', - '@typescript-eslint/no-unsafe-member-access': 'error', - '@typescript-eslint/no-unsafe-return': 'error', - 'require-await': 'off', - '@typescript-eslint/require-await': 'error', - '@typescript-eslint/restrict-plus-operands': 'error', - '@typescript-eslint/restrict-template-expressions': 'error', - '@typescript-eslint/unbound-method': 'error', - }, -}; -//# sourceMappingURL=recommended-requiring-type-checking.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-requiring-type-checking.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-requiring-type-checking.js.map deleted file mode 100644 index 9ef570ed..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended-requiring-type-checking.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recommended-requiring-type-checking.js","sourceRoot":"","sources":["../../src/configs/recommended-requiring-type-checking.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,oDAAoD;AAEpD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,mCAAmC,EAAE,OAAO;QAC5C,yCAAyC,EAAE,OAAO;QAClD,oCAAoC,EAAE,OAAO;QAC7C,iBAAiB,EAAE,KAAK;QACxB,oCAAoC,EAAE,OAAO;QAC7C,wCAAwC,EAAE,OAAO;QACjD,kDAAkD,EAAE,OAAO;QAC3D,uCAAuC,EAAE,OAAO;QAChD,yCAAyC,EAAE,OAAO;QAClD,mCAAmC,EAAE,OAAO;QAC5C,4CAA4C,EAAE,OAAO;QACrD,qCAAqC,EAAE,OAAO;QAC9C,eAAe,EAAE,KAAK;QACtB,kCAAkC,EAAE,OAAO;QAC3C,2CAA2C,EAAE,OAAO;QACpD,kDAAkD,EAAE,OAAO;QAC3D,mCAAmC,EAAE,OAAO;KAC7C;CACF,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js deleted file mode 100644 index 251eff60..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// YOU CAN REGENERATE IT USING yarn generate:configs -module.exports = { - extends: ['./configs/base', './configs/eslint-recommended'], - rules: { - '@typescript-eslint/adjacent-overload-signatures': 'error', - '@typescript-eslint/ban-ts-comment': 'error', - '@typescript-eslint/ban-types': 'error', - 'no-array-constructor': 'off', - '@typescript-eslint/no-array-constructor': 'error', - 'no-empty-function': 'off', - '@typescript-eslint/no-empty-function': 'error', - '@typescript-eslint/no-empty-interface': 'error', - '@typescript-eslint/no-explicit-any': 'warn', - '@typescript-eslint/no-extra-non-null-assertion': 'error', - 'no-extra-semi': 'off', - '@typescript-eslint/no-extra-semi': 'error', - '@typescript-eslint/no-inferrable-types': 'error', - 'no-loss-of-precision': 'off', - '@typescript-eslint/no-loss-of-precision': 'error', - '@typescript-eslint/no-misused-new': 'error', - '@typescript-eslint/no-namespace': 'error', - '@typescript-eslint/no-non-null-asserted-optional-chain': 'error', - '@typescript-eslint/no-non-null-assertion': 'warn', - '@typescript-eslint/no-this-alias': 'error', - '@typescript-eslint/no-unnecessary-type-constraint': 'error', - 'no-unused-vars': 'off', - '@typescript-eslint/no-unused-vars': 'warn', - '@typescript-eslint/no-var-requires': 'error', - '@typescript-eslint/prefer-as-const': 'error', - '@typescript-eslint/prefer-namespace-keyword': 'error', - '@typescript-eslint/triple-slash-reference': 'error', - }, -}; -//# sourceMappingURL=recommended.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js.map deleted file mode 100644 index 58fa9535..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/recommended.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"recommended.js","sourceRoot":"","sources":["../../src/configs/recommended.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,oDAAoD;AAEpD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,iDAAiD,EAAE,OAAO;QAC1D,mCAAmC,EAAE,OAAO;QAC5C,8BAA8B,EAAE,OAAO;QACvC,sBAAsB,EAAE,KAAK;QAC7B,yCAAyC,EAAE,OAAO;QAClD,mBAAmB,EAAE,KAAK;QAC1B,sCAAsC,EAAE,OAAO;QAC/C,uCAAuC,EAAE,OAAO;QAChD,oCAAoC,EAAE,MAAM;QAC5C,gDAAgD,EAAE,OAAO;QACzD,eAAe,EAAE,KAAK;QACtB,kCAAkC,EAAE,OAAO;QAC3C,wCAAwC,EAAE,OAAO;QACjD,sBAAsB,EAAE,KAAK;QAC7B,yCAAyC,EAAE,OAAO;QAClD,mCAAmC,EAAE,OAAO;QAC5C,iCAAiC,EAAE,OAAO;QAC1C,wDAAwD,EAAE,OAAO;QACjE,0CAA0C,EAAE,MAAM;QAClD,kCAAkC,EAAE,OAAO;QAC3C,mDAAmD,EAAE,OAAO;QAC5D,gBAAgB,EAAE,KAAK;QACvB,mCAAmC,EAAE,MAAM;QAC3C,oCAAoC,EAAE,OAAO;QAC7C,oCAAoC,EAAE,OAAO;QAC7C,6CAA6C,EAAE,OAAO;QACtD,2CAA2C,EAAE,OAAO;KACrD;CACF,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js deleted file mode 100644 index 3e9c6597..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// YOU CAN REGENERATE IT USING yarn generate:configs -module.exports = { - extends: ['./configs/base', './configs/eslint-recommended'], - rules: { - '@typescript-eslint/array-type': 'warn', - '@typescript-eslint/ban-tslint-comment': 'warn', - '@typescript-eslint/class-literal-property-style': 'warn', - '@typescript-eslint/consistent-generic-constructors': 'warn', - '@typescript-eslint/consistent-indexed-object-style': 'warn', - '@typescript-eslint/consistent-type-assertions': 'warn', - '@typescript-eslint/consistent-type-definitions': 'warn', - 'dot-notation': 'off', - '@typescript-eslint/dot-notation': 'warn', - '@typescript-eslint/no-base-to-string': 'warn', - '@typescript-eslint/no-confusing-non-null-assertion': 'warn', - '@typescript-eslint/no-duplicate-enum-values': 'warn', - '@typescript-eslint/no-dynamic-delete': 'warn', - '@typescript-eslint/no-extraneous-class': 'warn', - '@typescript-eslint/no-invalid-void-type': 'warn', - '@typescript-eslint/no-meaningless-void-operator': 'warn', - '@typescript-eslint/no-mixed-enums': 'warn', - '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'warn', - 'no-throw-literal': 'off', - '@typescript-eslint/no-throw-literal': 'warn', - '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'warn', - '@typescript-eslint/no-unnecessary-condition': 'warn', - '@typescript-eslint/no-unnecessary-type-arguments': 'warn', - '@typescript-eslint/no-unsafe-declaration-merging': 'warn', - '@typescript-eslint/no-unsafe-enum-comparison': 'warn', - 'no-useless-constructor': 'off', - '@typescript-eslint/no-useless-constructor': 'warn', - '@typescript-eslint/non-nullable-type-assertion-style': 'warn', - '@typescript-eslint/prefer-for-of': 'warn', - '@typescript-eslint/prefer-function-type': 'warn', - '@typescript-eslint/prefer-includes': 'warn', - '@typescript-eslint/prefer-literal-enum-member': 'warn', - '@typescript-eslint/prefer-nullish-coalescing': 'warn', - '@typescript-eslint/prefer-optional-chain': 'warn', - '@typescript-eslint/prefer-reduce-type-parameter': 'warn', - '@typescript-eslint/prefer-return-this-type': 'warn', - '@typescript-eslint/prefer-string-starts-ends-with': 'warn', - '@typescript-eslint/prefer-ts-expect-error': 'warn', - '@typescript-eslint/unified-signatures': 'warn', - }, -}; -//# sourceMappingURL=strict.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map deleted file mode 100644 index 7f3cd508..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/configs/strict.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"strict.js","sourceRoot":"","sources":["../../src/configs/strict.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,oDAAoD;AAEpD,iBAAS;IACP,OAAO,EAAE,CAAC,gBAAgB,EAAE,8BAA8B,CAAC;IAC3D,KAAK,EAAE;QACL,+BAA+B,EAAE,MAAM;QACvC,uCAAuC,EAAE,MAAM;QAC/C,iDAAiD,EAAE,MAAM;QACzD,oDAAoD,EAAE,MAAM;QAC5D,oDAAoD,EAAE,MAAM;QAC5D,+CAA+C,EAAE,MAAM;QACvD,gDAAgD,EAAE,MAAM;QACxD,cAAc,EAAE,KAAK;QACrB,iCAAiC,EAAE,MAAM;QACzC,sCAAsC,EAAE,MAAM;QAC9C,oDAAoD,EAAE,MAAM;QAC5D,6CAA6C,EAAE,MAAM;QACrD,sCAAsC,EAAE,MAAM;QAC9C,wCAAwC,EAAE,MAAM;QAChD,yCAAyC,EAAE,MAAM;QACjD,iDAAiD,EAAE,MAAM;QACzD,mCAAmC,EAAE,MAAM;QAC3C,4DAA4D,EAAE,MAAM;QACpE,kBAAkB,EAAE,KAAK;QACzB,qCAAqC,EAAE,MAAM;QAC7C,2DAA2D,EAAE,MAAM;QACnE,6CAA6C,EAAE,MAAM;QACrD,kDAAkD,EAAE,MAAM;QAC1D,kDAAkD,EAAE,MAAM;QAC1D,8CAA8C,EAAE,MAAM;QACtD,wBAAwB,EAAE,KAAK;QAC/B,2CAA2C,EAAE,MAAM;QACnD,sDAAsD,EAAE,MAAM;QAC9D,kCAAkC,EAAE,MAAM;QAC1C,yCAAyC,EAAE,MAAM;QACjD,oCAAoC,EAAE,MAAM;QAC5C,+CAA+C,EAAE,MAAM;QACvD,8CAA8C,EAAE,MAAM;QACtD,0CAA0C,EAAE,MAAM;QAClD,iDAAiD,EAAE,MAAM;QACzD,4CAA4C,EAAE,MAAM;QACpD,mDAAmD,EAAE,MAAM;QAC3D,2CAA2C,EAAE,MAAM;QACnD,uCAAuC,EAAE,MAAM;KAChD;CACF,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/index.js b/node_modules/@typescript-eslint/eslint-plugin/dist/index.js deleted file mode 100644 index 590c483e..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/index.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -const all_1 = __importDefault(require("./configs/all")); -const base_1 = __importDefault(require("./configs/base")); -const eslint_recommended_1 = __importDefault(require("./configs/eslint-recommended")); -const recommended_1 = __importDefault(require("./configs/recommended")); -const recommended_requiring_type_checking_1 = __importDefault(require("./configs/recommended-requiring-type-checking")); -const strict_1 = __importDefault(require("./configs/strict")); -const rules_1 = __importDefault(require("./rules")); -module.exports = { - rules: rules_1.default, - configs: { - all: all_1.default, - base: base_1.default, - recommended: recommended_1.default, - 'eslint-recommended': eslint_recommended_1.default, - 'recommended-requiring-type-checking': recommended_requiring_type_checking_1.default, - strict: strict_1.default, - }, -}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/index.js.map deleted file mode 100644 index f064655f..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,wDAAgC;AAChC,0DAAkC;AAClC,sFAA6D;AAC7D,wEAAgD;AAChD,wHAA6F;AAC7F,8DAAsC;AACtC,oDAA4B;AAE5B,iBAAS;IACP,KAAK,EAAL,eAAK;IACL,OAAO,EAAE;QACP,GAAG,EAAH,aAAG;QACH,IAAI,EAAJ,cAAI;QACJ,WAAW,EAAX,qBAAW;QACX,oBAAoB,EAAE,4BAAiB;QACvC,qCAAqC,EAAE,6CAAgC;QACvE,MAAM,EAAN,gBAAM;KACP;CACF,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js deleted file mode 100644 index 91866556..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js +++ /dev/null @@ -1,160 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'adjacent-overload-signatures', - meta: { - type: 'suggestion', - docs: { - description: 'Require that function overload signatures be consecutive', - recommended: 'error', - }, - schema: [], - messages: { - adjacentSignature: 'All {{name}} signatures should be adjacent.', - }, - }, - defaultOptions: [], - create(context) { - const sourceCode = context.getSourceCode(); - /** - * Gets the name and attribute of the member being processed. - * @param member the member being processed. - * @returns the name and attribute of the member or null if it's a member not relevant to the rule. - */ - function getMemberMethod(member) { - var _a, _b; - if (!member) { - return null; - } - const isStatic = 'static' in member && !!member.static; - switch (member.type) { - case utils_1.AST_NODE_TYPES.ExportDefaultDeclaration: - case utils_1.AST_NODE_TYPES.ExportNamedDeclaration: { - // export statements (e.g. export { a };) - // have no declarations, so ignore them - if (!member.declaration) { - return null; - } - return getMemberMethod(member.declaration); - } - case utils_1.AST_NODE_TYPES.TSDeclareFunction: - case utils_1.AST_NODE_TYPES.FunctionDeclaration: { - const name = (_b = (_a = member.id) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : null; - if (name == null) { - return null; - } - return { - name, - static: isStatic, - callSignature: false, - type: util.MemberNameType.Normal, - }; - } - case utils_1.AST_NODE_TYPES.TSMethodSignature: - return Object.assign(Object.assign({}, util.getNameFromMember(member, sourceCode)), { static: isStatic, callSignature: false }); - case utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration: - return { - name: 'call', - static: isStatic, - callSignature: true, - type: util.MemberNameType.Normal, - }; - case utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration: - return { - name: 'new', - static: isStatic, - callSignature: false, - type: util.MemberNameType.Normal, - }; - case utils_1.AST_NODE_TYPES.MethodDefinition: - return Object.assign(Object.assign({}, util.getNameFromMember(member, sourceCode)), { static: isStatic, callSignature: false }); - } - return null; - } - function isSameMethod(method1, method2) { - return (!!method2 && - method1.name === method2.name && - method1.static === method2.static && - method1.callSignature === method2.callSignature && - method1.type === method2.type); - } - function getMembers(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.ClassBody: - case utils_1.AST_NODE_TYPES.Program: - case utils_1.AST_NODE_TYPES.TSModuleBlock: - case utils_1.AST_NODE_TYPES.TSInterfaceBody: - case utils_1.AST_NODE_TYPES.BlockStatement: - return node.body; - case utils_1.AST_NODE_TYPES.TSTypeLiteral: - return node.members; - } - } - /** - * Check the body for overload methods. - * @param {ASTNode} node the body to be inspected. - */ - function checkBodyForOverloadMethods(node) { - const members = getMembers(node); - if (members) { - let lastMethod = null; - const seenMethods = []; - members.forEach(member => { - const method = getMemberMethod(member); - if (method == null) { - lastMethod = null; - return; - } - const index = seenMethods.findIndex(seenMethod => isSameMethod(method, seenMethod)); - if (index > -1 && !isSameMethod(method, lastMethod)) { - context.report({ - node: member, - messageId: 'adjacentSignature', - data: { - name: `${method.static ? 'static ' : ''}${method.name}`, - }, - }); - } - else if (index === -1) { - seenMethods.push(method); - } - lastMethod = method; - }); - } - } - return { - ClassBody: checkBodyForOverloadMethods, - Program: checkBodyForOverloadMethods, - TSModuleBlock: checkBodyForOverloadMethods, - TSTypeLiteral: checkBodyForOverloadMethods, - TSInterfaceBody: checkBodyForOverloadMethods, - BlockStatement: checkBodyForOverloadMethods, - }; - }, -}); -//# sourceMappingURL=adjacent-overload-signatures.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map deleted file mode 100644 index b3fc74ba..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/adjacent-overload-signatures.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"adjacent-overload-signatures.js","sourceRoot":"","sources":["../../src/rules/adjacent-overload-signatures.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAchC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0DAA0D;YACvE,WAAW,EAAE,OAAO;SACrB;QACD,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,iBAAiB,EAAE,6CAA6C;SACjE;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAS3C;;;;WAIG;QACH,SAAS,eAAe,CAAC,MAAqB;;YAC5C,IAAI,CAAC,MAAM,EAAE;gBACX,OAAO,IAAI,CAAC;aACb;YAED,MAAM,QAAQ,GAAG,QAAQ,IAAI,MAAM,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;YAEvD,QAAQ,MAAM,CAAC,IAAI,EAAE;gBACnB,KAAK,sBAAc,CAAC,wBAAwB,CAAC;gBAC7C,KAAK,sBAAc,CAAC,sBAAsB,CAAC,CAAC;oBAC1C,yCAAyC;oBACzC,uCAAuC;oBACvC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE;wBACvB,OAAO,IAAI,CAAC;qBACb;oBAED,OAAO,eAAe,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;iBAC5C;gBACD,KAAK,sBAAc,CAAC,iBAAiB,CAAC;gBACtC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I,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,CAAC,IAAI,EAAE;6BACxD;yBACF,CAAC,CAAC;qBACJ;yBAAM,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;wBACvB,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;qBAC1B;oBAED,UAAU,GAAG,MAAM,CAAC;gBACtB,CAAC,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,SAAS,EAAE,2BAA2B;YACtC,OAAO,EAAE,2BAA2B;YACpC,aAAa,EAAE,2BAA2B;YAC1C,aAAa,EAAE,2BAA2B;YAC1C,eAAe,EAAE,2BAA2B;YAC5C,cAAc,EAAE,2BAA2B;SAC5C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js deleted file mode 100644 index 4ad5b083..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js +++ /dev/null @@ -1,249 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -/** - * Check whatever node can be considered as simple - * @param node the node to be evaluated. - */ -function isSimpleType(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.Identifier: - case utils_1.AST_NODE_TYPES.TSAnyKeyword: - case utils_1.AST_NODE_TYPES.TSBooleanKeyword: - case utils_1.AST_NODE_TYPES.TSNeverKeyword: - case utils_1.AST_NODE_TYPES.TSNumberKeyword: - case utils_1.AST_NODE_TYPES.TSBigIntKeyword: - case utils_1.AST_NODE_TYPES.TSObjectKeyword: - case utils_1.AST_NODE_TYPES.TSStringKeyword: - case utils_1.AST_NODE_TYPES.TSSymbolKeyword: - case utils_1.AST_NODE_TYPES.TSUnknownKeyword: - case utils_1.AST_NODE_TYPES.TSVoidKeyword: - case utils_1.AST_NODE_TYPES.TSNullKeyword: - case utils_1.AST_NODE_TYPES.TSArrayType: - case utils_1.AST_NODE_TYPES.TSUndefinedKeyword: - case utils_1.AST_NODE_TYPES.TSThisType: - case utils_1.AST_NODE_TYPES.TSQualifiedName: - return true; - case utils_1.AST_NODE_TYPES.TSTypeReference: - if (node.typeName && - node.typeName.type === utils_1.AST_NODE_TYPES.Identifier && - node.typeName.name === 'Array') { - if (!node.typeParameters) { - return true; - } - if (node.typeParameters.params.length === 1) { - return isSimpleType(node.typeParameters.params[0]); - } - } - else { - if (node.typeParameters) { - return false; - } - return isSimpleType(node.typeName); - } - return false; - default: - return false; - } -} -/** - * Check if node needs parentheses - * @param node the node to be evaluated. - */ -function typeNeedsParentheses(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSTypeReference: - return typeNeedsParentheses(node.typeName); - case utils_1.AST_NODE_TYPES.TSUnionType: - case utils_1.AST_NODE_TYPES.TSFunctionType: - case utils_1.AST_NODE_TYPES.TSIntersectionType: - case utils_1.AST_NODE_TYPES.TSTypeOperator: - case utils_1.AST_NODE_TYPES.TSInferType: - case utils_1.AST_NODE_TYPES.TSConstructorType: - return true; - case utils_1.AST_NODE_TYPES.Identifier: - return node.name === 'ReadonlyArray'; - default: - return false; - } -} -exports.default = util.createRule({ - name: 'array-type', - meta: { - type: 'suggestion', - docs: { - description: 'Require consistently using either `T[]` or `Array` for arrays', - recommended: 'strict', - }, - fixable: 'code', - messages: { - errorStringGeneric: "Array type using '{{readonlyPrefix}}{{type}}[]' is forbidden. Use '{{className}}<{{type}}>' instead.", - errorStringArray: "Array type using '{{className}}<{{type}}>' is forbidden. Use '{{readonlyPrefix}}{{type}}[]' instead.", - errorStringArraySimple: "Array type using '{{className}}<{{type}}>' is forbidden for simple types. Use '{{readonlyPrefix}}{{type}}[]' instead.", - errorStringGenericSimple: "Array type using '{{readonlyPrefix}}{{type}}[]' is forbidden for non-simple types. Use '{{className}}<{{type}}>' instead.", - }, - schema: { - $defs: { - arrayOption: { - enum: ['array', 'generic', 'array-simple'], - }, - }, - prefixItems: [ - { - properties: { - default: { - $ref: '#/$defs/arrayOption', - description: 'The array type expected for mutable cases...', - }, - readonly: { - $ref: '#/$defs/arrayOption', - description: 'The array type expected for readonly cases. If omitted, the value for `default` will be used.', - }, - }, - type: 'object', - }, - ], - type: 'array', - }, - }, - defaultOptions: [ - { - default: 'array', - }, - ], - create(context, [options]) { - var _a; - const sourceCode = context.getSourceCode(); - const defaultOption = options.default; - const readonlyOption = (_a = options.readonly) !== null && _a !== void 0 ? _a : defaultOption; - /** - * @param node the node to be evaluated. - */ - function getMessageType(node) { - if (node && isSimpleType(node)) { - return sourceCode.getText(node); - } - return 'T'; - } - return { - TSArrayType(node) { - const isReadonly = node.parent && - node.parent.type === utils_1.AST_NODE_TYPES.TSTypeOperator && - node.parent.operator === 'readonly'; - const currentOption = isReadonly ? readonlyOption : defaultOption; - if (currentOption === 'array' || - (currentOption === 'array-simple' && isSimpleType(node.elementType))) { - return; - } - const messageId = currentOption === 'generic' - ? 'errorStringGeneric' - : 'errorStringGenericSimple'; - const errorNode = isReadonly ? node.parent : node; - context.report({ - node: errorNode, - messageId, - data: { - className: isReadonly ? 'ReadonlyArray' : 'Array', - readonlyPrefix: isReadonly ? 'readonly ' : '', - type: getMessageType(node.elementType), - }, - fix(fixer) { - const typeNode = node.elementType; - const arrayType = isReadonly ? 'ReadonlyArray' : 'Array'; - return [ - fixer.replaceTextRange([errorNode.range[0], typeNode.range[0]], `${arrayType}<`), - fixer.replaceTextRange([typeNode.range[1], errorNode.range[1]], '>'), - ]; - }, - }); - }, - TSTypeReference(node) { - var _a, _b; - if (node.typeName.type !== utils_1.AST_NODE_TYPES.Identifier || - !(node.typeName.name === 'Array' || - node.typeName.name === 'ReadonlyArray')) { - return; - } - const isReadonlyArrayType = node.typeName.name === 'ReadonlyArray'; - const currentOption = isReadonlyArrayType - ? readonlyOption - : defaultOption; - if (currentOption === 'generic') { - return; - } - const readonlyPrefix = isReadonlyArrayType ? 'readonly ' : ''; - const typeParams = (_a = node.typeParameters) === null || _a === void 0 ? void 0 : _a.params; - const messageId = currentOption === 'array' - ? 'errorStringArray' - : 'errorStringArraySimple'; - if (!typeParams || typeParams.length === 0) { - // Create an 'any' array - context.report({ - node, - messageId, - data: { - className: isReadonlyArrayType ? 'ReadonlyArray' : 'Array', - readonlyPrefix, - type: 'any', - }, - fix(fixer) { - return fixer.replaceText(node, `${readonlyPrefix}any[]`); - }, - }); - return; - } - if (typeParams.length !== 1 || - (currentOption === 'array-simple' && !isSimpleType(typeParams[0]))) { - return; - } - const type = typeParams[0]; - const typeParens = typeNeedsParentheses(type); - const parentParens = readonlyPrefix && - ((_b = node.parent) === null || _b === void 0 ? void 0 : _b.type) === utils_1.AST_NODE_TYPES.TSArrayType && - !util.isParenthesized(node.parent.elementType, sourceCode); - const start = `${parentParens ? '(' : ''}${readonlyPrefix}${typeParens ? '(' : ''}`; - const end = `${typeParens ? ')' : ''}[]${parentParens ? ')' : ''}`; - context.report({ - node, - messageId, - data: { - className: isReadonlyArrayType ? 'ReadonlyArray' : 'Array', - readonlyPrefix, - type: getMessageType(type), - }, - fix(fixer) { - return [ - fixer.replaceTextRange([node.range[0], type.range[0]], start), - fixer.replaceTextRange([type.range[1], node.range[1]], end), - ]; - }, - }); - }, - }; - }, -}); -//# sourceMappingURL=array-type.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map deleted file mode 100644 index 71a5dcae..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/array-type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"array-type.js","sourceRoot":"","sources":["../../src/rules/array-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAEhC;;;GAGG;AACH,SAAS,YAAY,CAAC,IAAmB;IACvC,QAAQ,IAAI,CAAC,IAAI,EAAE;QACjB,KAAK,sBAAc,CAAC,UAAU,CAAC;QAC/B,KAAK,sBAAc,CAAC,YAAY,CAAC;QACjC,KAAK,sBAAc,CAAC,gBAAgB,CAAC;QACrC,KAAK,sBAAc,CAAC,cAAc,CAAC;QACnC,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,eAAe,CAAC;QACpC,KAAK,sBAAc,CAAC,gBAAgB,CAAC;QACrC,KAAK,sBAAc,CAAC,aAAa,CAAC;QAClC,KAAK,sBAAc,CAAC,aAAa,CAAC;QAClC,KAAK,sBAAc,CAAC,WAAW,CAAC;QAChC,KAAK,sBAAc,CAAC,kBAAkB,CAAC;QACvC,KAAK,sBAAc,CAAC,UAAU,CAAC;QAC/B,KAAK,sBAAc,CAAC,eAAe;YACjC,OAAO,IAAI,CAAC;QAC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C;4BAC7D,KAAK,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC;yBAC5D,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js deleted file mode 100644 index cf574b08..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const tsutils = __importStar(require("tsutils")); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'await-thenable', - meta: { - docs: { - description: 'Disallow awaiting a value that is not a Thenable', - recommended: 'error', - requiresTypeChecking: true, - }, - messages: { - await: 'Unexpected `await` of a non-Promise (non-"Thenable") value.', - }, - schema: [], - type: 'problem', - }, - defaultOptions: [], - create(context) { - const parserServices = util.getParserServices(context); - const checker = parserServices.program.getTypeChecker(); - return { - AwaitExpression(node) { - const originalNode = parserServices.esTreeNodeToTSNodeMap.get(node); - const type = checker.getTypeAtLocation(originalNode.expression); - if (!util.isTypeAnyType(type) && - !util.isTypeUnknownType(type) && - !tsutils.isThenableType(checker, originalNode.expression, type)) { - context.report({ - messageId: 'await', - node, - }); - } - }, - }; - }, -}); -//# sourceMappingURL=await-thenable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map deleted file mode 100644 index 4716b569..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/await-thenable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"await-thenable.js","sourceRoot":"","sources":["../../src/rules/await-thenable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAmC;AAEnC,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,kDAAkD;YAC/D,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,6DAA6D;SACrE;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,SAAS;KAChB;IACD,cAAc,EAAE,EAAE;IAElB,MAAM,CAAC,OAAO;QACZ,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACvD,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAExD,OAAO;YACL,eAAe,CAAC,IAAI;gBAClB,MAAM,YAAY,GAAG,cAAc,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBACpE,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;gBAEhE,IACE,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC;oBACzB,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC;oBAC7B,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,EAC/D;oBACA,OAAO,CAAC,MAAM,CAAC;wBACb,SAAS,EAAE,OAAO;wBAClB,IAAI;qBACL,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js deleted file mode 100644 index dd4b1d0a..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js +++ /dev/null @@ -1,158 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultMinimumDescriptionLength = void 0; -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.defaultMinimumDescriptionLength = 3; -exports.default = util.createRule({ - name: 'ban-ts-comment', - meta: { - type: 'problem', - docs: { - description: 'Disallow `@ts-` comments or require descriptions after directives', - recommended: 'error', - }, - messages: { - tsDirectiveComment: 'Do not use "@ts-{{directive}}" because it alters compilation errors.', - tsDirectiveCommentRequiresDescription: 'Include a description after the "@ts-{{directive}}" directive to explain why the @ts-{{directive}} is necessary. The description must be {{minimumDescriptionLength}} characters or longer.', - tsDirectiveCommentDescriptionNotMatchPattern: 'The description for the "@ts-{{directive}}" directive must match the {{format}} format.', - }, - schema: { - $defs: { - directiveConfigSchema: { - oneOf: [ - { - type: 'boolean', - default: true, - }, - { - enum: ['allow-with-description'], - }, - { - type: 'object', - properties: { - descriptionFormat: { type: 'string' }, - }, - }, - ], - }, - }, - prefixItems: [ - { - properties: { - 'ts-expect-error': { - $ref: '#/$defs/directiveConfigSchema', - }, - 'ts-ignore': { $ref: '#/$defs/directiveConfigSchema' }, - 'ts-nocheck': { $ref: '#/$defs/directiveConfigSchema' }, - 'ts-check': { $ref: '#/$defs/directiveConfigSchema' }, - minimumDescriptionLength: { - type: 'number', - default: exports.defaultMinimumDescriptionLength, - }, - }, - additionalProperties: false, - }, - ], - type: 'array', - }, - }, - defaultOptions: [ - { - 'ts-expect-error': 'allow-with-description', - 'ts-ignore': true, - 'ts-nocheck': true, - 'ts-check': false, - minimumDescriptionLength: exports.defaultMinimumDescriptionLength, - }, - ], - create(context, [options]) { - /* - The regex used are taken from the ones used in the official TypeScript repo - - https://github.com/microsoft/TypeScript/blob/408c760fae66080104bc85c449282c2d207dfe8e/src/compiler/scanner.ts#L288-L296 - */ - const commentDirectiveRegExSingleLine = /^\/*\s*@ts-(?expect-error|ignore|check|nocheck)(?.*)/; - const commentDirectiveRegExMultiLine = /^\s*(?:\/|\*)*\s*@ts-(?expect-error|ignore|check|nocheck)(?.*)/; - const sourceCode = context.getSourceCode(); - const descriptionFormats = new Map(); - for (const directive of [ - 'ts-expect-error', - 'ts-ignore', - 'ts-nocheck', - 'ts-check', - ]) { - const option = options[directive]; - if (typeof option === 'object' && option.descriptionFormat) { - descriptionFormats.set(directive, new RegExp(option.descriptionFormat)); - } - } - return { - Program() { - const comments = sourceCode.getAllComments(); - comments.forEach(comment => { - const regExp = comment.type === utils_1.AST_TOKEN_TYPES.Line - ? commentDirectiveRegExSingleLine - : commentDirectiveRegExMultiLine; - const match = regExp.exec(comment.value); - if (!match) { - return; - } - const { directive, description } = match.groups; - const fullDirective = `ts-${directive}`; - const option = options[fullDirective]; - if (option === true) { - context.report({ - data: { directive }, - node: comment, - messageId: 'tsDirectiveComment', - }); - } - if (option === 'allow-with-description' || - (typeof option === 'object' && option.descriptionFormat)) { - const { minimumDescriptionLength = exports.defaultMinimumDescriptionLength, } = options; - const format = descriptionFormats.get(fullDirective); - if (util.getStringLength(description.trim()) < - minimumDescriptionLength) { - context.report({ - data: { directive, minimumDescriptionLength }, - node: comment, - messageId: 'tsDirectiveCommentRequiresDescription', - }); - } - else if (format && !format.test(description)) { - context.report({ - data: { directive, format: format.source }, - node: comment, - messageId: 'tsDirectiveCommentDescriptionNotMatchPattern', - }); - } - } - }); - }, - }; - }, -}); -//# sourceMappingURL=ban-ts-comment.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map deleted file mode 100644 index 5002321e..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ban-ts-comment.js","sourceRoot":"","sources":["../../src/rules/ban-ts-comment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA2D;AAE3D,8CAAgC;AAenB,QAAA,+BAA+B,GAAG,CAAC,CAAC;AAOjD,kBAAe,IAAI,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yBAChC,CAAC,CAAC;qBACJ;oBAED,IACE,MAAM,KAAK,wBAAwB;wBACnC,CAAC,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,iBAAiB,CAAC,EACxD;wBACA,MAAM,EACJ,wBAAwB,GAAG,uCAA+B,GAC3D,GAAG,OAAO,CAAC;wBACZ,MAAM,MAAM,GAAG,kBAAkB,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;wBACrD,IACE,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;4BACxC,wBAAwB,EACxB;4BACA,OAAO,CAAC,MAAM,CAAC;gCACb,IAAI,EAAE,EAAE,SAAS,EAAE,wBAAwB,EAAE;gCAC7C,IAAI,EAAE,OAAO;gCACb,SAAS,EAAE,uCAAuC;6BACnD,CAAC,CAAC;yBACJ;6BAAM,IAAI,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE;4BAC9C,OAAO,CAAC,MAAM,CAAC;gCACb,IAAI,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;gCAC1C,IAAI,EAAE,OAAO;gCACb,SAAS,EAAE,8CAA8C;6BAC1D,CAAC,CAAC;yBACJ;qBACF;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js deleted file mode 100644 index be1b58fc..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -// tslint regex -// https://github.com/palantir/tslint/blob/95d9d958833fd9dc0002d18cbe34db20d0fbf437/src/enableDisableRules.ts#L32 -const ENABLE_DISABLE_REGEX = /^\s*tslint:(enable|disable)(?:-(line|next-line))?(:|\s|$)/; -const toText = (text, type) => type === utils_1.AST_TOKEN_TYPES.Line - ? ['//', text.trim()].join(' ') - : ['/*', text.trim(), '*/'].join(' '); -exports.default = util.createRule({ - name: 'ban-tslint-comment', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow `// tslint:` comments', - recommended: 'strict', - }, - messages: { - commentDetected: 'tslint comment detected: "{{ text }}"', - }, - schema: [], - fixable: 'code', - }, - defaultOptions: [], - create: context => { - const sourceCode = context.getSourceCode(); - return { - Program() { - const comments = sourceCode.getAllComments(); - comments.forEach(c => { - if (ENABLE_DISABLE_REGEX.test(c.value)) { - context.report({ - data: { text: toText(c.value, c.type) }, - node: c, - messageId: 'commentDetected', - fix(fixer) { - const rangeStart = sourceCode.getIndexFromLoc({ - column: c.loc.start.column > 0 ? c.loc.start.column - 1 : 0, - line: c.loc.start.line, - }); - const rangeEnd = sourceCode.getIndexFromLoc({ - column: c.loc.end.column, - line: c.loc.end.line, - }); - return fixer.removeRange([rangeStart, rangeEnd + 1]); - }, - }); - } - }); - }, - }; - }, -}); -//# sourceMappingURL=ban-tslint-comment.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js.map deleted file mode 100644 index 1fe04861..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-tslint-comment.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ban-tslint-comment.js","sourceRoot":"","sources":["../../src/rules/ban-tslint-comment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA2D;AAE3D,8CAAgC;AAEhC,eAAe;AACf,iHAAiH;AACjH,MAAM,oBAAoB,GACxB,2DAA2D,CAAC;AAE9D,MAAM,MAAM,GAAG,CACb,IAAY,EACZ,IAAkD,EAC1C,EAAE,CACV,IAAI,KAAK,uBAAe,CAAC,IAAI;IAC3B,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;IAC/B,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE1C,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,2CAA2C;YACxD,WAAW,EAAE,QAAQ;SACtB;QACD,QAAQ,EAAE;YACR,eAAe,EAAE,uCAAuC;SACzD;QACD,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,MAAM;KAChB;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,EAAE,OAAO,CAAC,EAAE;QAChB,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAC3C,OAAO;YACL,OAAO;gBACL,MAAM,QAAQ,GAAG,UAAU,CAAC,cAAc,EAAE,CAAC;gBAC7C,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;oBACnB,IAAI,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE;wBACtC,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE;4BACvC,IAAI,EAAE,CAAC;4BACP,SAAS,EAAE,iBAAiB;4BAC5B,GAAG,CAAC,KAAK;gCACP,MAAM,UAAU,GAAG,UAAU,CAAC,eAAe,CAAC;oCAC5C,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;oCAC3D,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI;iCACvB,CAAC,CAAC;gCACH,MAAM,QAAQ,GAAG,UAAU,CAAC,eAAe,CAAC;oCAC1C,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM;oCACxB,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI;iCACrB,CAAC,CAAC;gCACH,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,UAAU,EAAE,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC;4BACvD,CAAC;yBACF,CAAC,CAAC;qBACJ;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js deleted file mode 100644 index 400e3d12..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js +++ /dev/null @@ -1,231 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TYPE_KEYWORDS = void 0; -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -function removeSpaces(str) { - return str.replace(/\s/g, ''); -} -function stringifyNode(node, sourceCode) { - return removeSpaces(sourceCode.getText(node)); -} -function getCustomMessage(bannedType) { - if (bannedType == null) { - return ''; - } - if (typeof bannedType === 'string') { - return ` ${bannedType}`; - } - if (bannedType.message) { - return ` ${bannedType.message}`; - } - return ''; -} -const defaultTypes = { - String: { - message: 'Use string instead', - fixWith: 'string', - }, - Boolean: { - message: 'Use boolean instead', - fixWith: 'boolean', - }, - Number: { - message: 'Use number instead', - fixWith: 'number', - }, - Symbol: { - message: 'Use symbol instead', - fixWith: 'symbol', - }, - BigInt: { - message: 'Use bigint instead', - fixWith: 'bigint', - }, - Function: { - message: [ - 'The `Function` type accepts any function-like value.', - 'It provides no type safety when calling the function, which can be a common source of bugs.', - 'It also accepts things like class declarations, which will throw at runtime as they will not be called with `new`.', - 'If you are expecting the function to accept certain arguments, you should explicitly define the function shape.', - ].join('\n'), - }, - // object typing - Object: { - message: [ - 'The `Object` type actually means "any non-nullish value", so it is marginally better than `unknown`.', - '- If you want a type meaning "any object", you probably want `object` instead.', - '- If you want a type meaning "any value", you probably want `unknown` instead.', - '- If you really want a type meaning "any non-nullish value", you probably want `NonNullable` instead.', - ].join('\n'), - suggest: ['object', 'unknown', 'NonNullable'], - }, - '{}': { - message: [ - '`{}` actually means "any non-nullish value".', - '- If you want a type meaning "any object", you probably want `object` instead.', - '- If you want a type meaning "any value", you probably want `unknown` instead.', - '- If you want a type meaning "empty object", you probably want `Record` instead.', - '- If you really want a type meaning "any non-nullish value", you probably want `NonNullable` instead.', - ].join('\n'), - suggest: [ - 'object', - 'unknown', - 'Record', - 'NonNullable', - ], - }, -}; -exports.TYPE_KEYWORDS = { - bigint: utils_1.AST_NODE_TYPES.TSBigIntKeyword, - boolean: utils_1.AST_NODE_TYPES.TSBooleanKeyword, - never: utils_1.AST_NODE_TYPES.TSNeverKeyword, - null: utils_1.AST_NODE_TYPES.TSNullKeyword, - number: utils_1.AST_NODE_TYPES.TSNumberKeyword, - object: utils_1.AST_NODE_TYPES.TSObjectKeyword, - string: utils_1.AST_NODE_TYPES.TSStringKeyword, - symbol: utils_1.AST_NODE_TYPES.TSSymbolKeyword, - undefined: utils_1.AST_NODE_TYPES.TSUndefinedKeyword, - unknown: utils_1.AST_NODE_TYPES.TSUnknownKeyword, - void: utils_1.AST_NODE_TYPES.TSVoidKeyword, -}; -exports.default = util.createRule({ - name: 'ban-types', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow certain types', - recommended: 'error', - }, - fixable: 'code', - hasSuggestions: true, - messages: { - bannedTypeMessage: "Don't use `{{name}}` as a type.{{customMessage}}", - bannedTypeReplacement: 'Replace `{{name}}` with `{{replacement}}`.', - }, - schema: [ - { - type: 'object', - properties: { - types: { - type: 'object', - additionalProperties: { - oneOf: [ - { type: 'null' }, - { type: 'boolean' }, - { type: 'string' }, - { - type: 'object', - properties: { - message: { type: 'string' }, - fixWith: { type: 'string' }, - suggest: { - type: 'array', - items: { type: 'string' }, - }, - }, - additionalProperties: false, - }, - ], - }, - }, - extendDefaults: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [{}], - create(context, [options]) { - var _a, _b; - const extendDefaults = (_a = options.extendDefaults) !== null && _a !== void 0 ? _a : true; - const customTypes = (_b = options.types) !== null && _b !== void 0 ? _b : {}; - const types = Object.assign({}, extendDefaults ? defaultTypes : {}, customTypes); - const bannedTypes = new Map(Object.entries(types).map(([type, data]) => [removeSpaces(type), data])); - function checkBannedTypes(typeNode, name = stringifyNode(typeNode, context.getSourceCode())) { - const bannedType = bannedTypes.get(name); - if (bannedType === undefined || bannedType === false) { - return; - } - const customMessage = getCustomMessage(bannedType); - const fixWith = bannedType && typeof bannedType === 'object' && bannedType.fixWith; - const suggest = bannedType && typeof bannedType === 'object' - ? bannedType.suggest - : undefined; - context.report({ - node: typeNode, - messageId: 'bannedTypeMessage', - data: { - name, - customMessage, - }, - fix: fixWith - ? (fixer) => fixer.replaceText(typeNode, fixWith) - : null, - suggest: suggest === null || suggest === void 0 ? void 0 : suggest.map(replacement => ({ - messageId: 'bannedTypeReplacement', - data: { - name, - replacement, - }, - fix: (fixer) => fixer.replaceText(typeNode, replacement), - })), - }); - } - const keywordSelectors = util.objectReduceKey(exports.TYPE_KEYWORDS, (acc, keyword) => { - if (bannedTypes.has(keyword)) { - acc[exports.TYPE_KEYWORDS[keyword]] = (node) => checkBannedTypes(node, keyword); - } - return acc; - }, {}); - return Object.assign(Object.assign({}, keywordSelectors), { TSTypeLiteral(node) { - if (node.members.length) { - return; - } - checkBannedTypes(node); - }, - TSTupleType(node) { - if (node.elementTypes.length === 0) { - checkBannedTypes(node); - } - }, - TSTypeReference(node) { - checkBannedTypes(node.typeName); - if (node.typeParameters) { - checkBannedTypes(node); - } - }, - TSInterfaceHeritage(node) { - checkBannedTypes(node); - }, - TSClassImplements(node) { - checkBannedTypes(node); - } }); - }, -}); -//# sourceMappingURL=ban-types.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js.map deleted file mode 100644 index d1bce93f..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ban-types.js","sourceRoot":"","sources":["../../src/rules/ban-types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAsBhC,SAAS,YAAY,CAAC,GAAW;IAC/B,OAAO,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AAChC,CAAC;AAED,SAAS,aAAa,CACpB,IAAmB,EACnB,UAA+B;IAE/B,OAAO,YAAY,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAChD,CAAC;AAED,SAAS,gBAAgB,CACvB,UAAkE;IAElE,IAAI,UAAU,IAAI,IAAI,EAAE;QACtB,OAAO,EAAE,CAAC;KACX;IAED,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;QAClC,OAAO,IAAI,UAAU,EAAE,CAAC;KACzB;IAED,IAAI,UAAU,CAAC,OAAO,EAAE;QACtB,OAAO,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;KACjC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,MAAM,YAAY,GAAU;IAC1B,MAAM,EAAE;QACN,OAAO,EAAE,oBAAoB;QAC7B,OAAO,EAAE,QAAQ;KAClB;IACD,OAAO,EAAE;QACP,OAAO,EAAE,qBAAqB;QAC9B,OAAO,EAAE,SAAS;KACnB;IACD,MAAM,EAAE;QACN,OAAO,EAAE,oBAAoB;QAC7B,OAAO,EAAE,QAAQ;KAClB;IACD,MAAM,EAAE;QACN,OAAO,EAAE,oBAAoB;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AE,CAAC,KAAK,EAAoB,EAAE,CAC/B,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE,WAAW,CAAC;iBAC3C,CAAC,CAAC;aACJ,CAAC,CAAC;QACL,CAAC;QAED,MAAM,gBAAgB,GAAG,IAAI,CAAC,eAAe,CAC3C,qBAAa,EACb,CAAC,GAA0B,EAAE,OAAO,EAAE,EAAE;YACtC,IAAI,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;gBAC5B,GAAG,CAAC,qBAAa,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,IAAmB,EAAQ,EAAE,CAC1D,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;aACnC;YAED,OAAO,GAAG,CAAC;QACb,CAAC,EACD,EAAE,CACH,CAAC;QAEF,uCACK,gBAAgB,KAEnB,aAAa,CAAC,IAAI;gBAChB,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;oBACvB,OAAO;iBACR;gBAED,gBAAgB,CAAC,IAAI,CAAC,CAAC;YACzB,CAAC;YACD,WAAW,CAAC,IAAI;gBACd,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE;oBAClC,gBAAgB,CAAC,IAAI,CAAC,CAAC;iBACxB;YACH,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAEhC,IAAI,IAAI,CAAC,cAAc,EAAE;oBACvB,gBAAgB,CAAC,IAAI,CAAC,CAAC;iBACxB;YACH,CAAC;YACD,mBAAmB,CAAC,IAAI;gBACtB,gBAAgB,CAAC,IAAI,CAAC,CAAC;YACzB,CAAC;YACD,iBAAiB,CAAC,IAAI;gBACpB,gBAAgB,CAAC,IAAI,CAAC,CAAC;YACzB,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js deleted file mode 100644 index 2b312a44..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js +++ /dev/null @@ -1,158 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('block-spacing'); -exports.default = util.createRule({ - name: 'block-spacing', - meta: { - type: 'layout', - docs: { - description: 'Disallow or enforce spaces inside of blocks after opening block and before closing block', - recommended: false, - extendsBaseRule: true, - }, - fixable: 'whitespace', - hasSuggestions: baseRule.meta.hasSuggestions, - schema: baseRule.meta.schema, - messages: baseRule.meta.messages, - }, - defaultOptions: ['always'], - create(context, [whenToApplyOption]) { - const sourceCode = context.getSourceCode(); - const baseRules = baseRule.create(context); - const always = whenToApplyOption !== 'never'; - const messageId = always ? 'missing' : 'extra'; - /** - * Gets the open brace token from a given node. - * @returns The token of the open brace. - */ - function getOpenBrace(node) { - // guaranteed for enums - // This is the only change made here from the base rule - return sourceCode.getFirstToken(node, { - filter: token => token.type === utils_1.AST_TOKEN_TYPES.Punctuator && token.value === '{', - }); - } - /** - * Checks whether or not: - * - given tokens are on same line. - * - there is/isn't a space between given tokens. - * @param left A token to check. - * @param right The token which is next to `left`. - * @returns - * When the option is `"always"`, `true` if there are one or more spaces between given tokens. - * When the option is `"never"`, `true` if there are not any spaces between given tokens. - * If given tokens are not on same line, it's always `true`. - */ - function isValid(left, right) { - return (!util.isTokenOnSameLine(left, right) || - sourceCode.isSpaceBetween(left, right) === always); - } - /** - * Checks and reports invalid spacing style inside braces. - */ - function checkSpacingInsideBraces(node) { - // Gets braces and the first/last token of content. - const openBrace = getOpenBrace(node); - const closeBrace = sourceCode.getLastToken(node); - const firstToken = sourceCode.getTokenAfter(openBrace, { - includeComments: true, - }); - const lastToken = sourceCode.getTokenBefore(closeBrace, { - includeComments: true, - }); - // Skip if the node is invalid or empty. - if (openBrace.type !== utils_1.AST_TOKEN_TYPES.Punctuator || - openBrace.value !== '{' || - closeBrace.type !== utils_1.AST_TOKEN_TYPES.Punctuator || - closeBrace.value !== '}' || - firstToken === closeBrace) { - return; - } - // Skip line comments for option never - if (!always && firstToken.type === utils_1.AST_TOKEN_TYPES.Line) { - return; - } - if (!isValid(openBrace, firstToken)) { - let loc = openBrace.loc; - if (messageId === 'extra') { - loc = { - start: openBrace.loc.end, - end: firstToken.loc.start, - }; - } - context.report({ - node, - loc, - messageId, - data: { - location: 'after', - token: openBrace.value, - }, - fix(fixer) { - if (always) { - return fixer.insertTextBefore(firstToken, ' '); - } - return fixer.removeRange([openBrace.range[1], firstToken.range[0]]); - }, - }); - } - if (!isValid(lastToken, closeBrace)) { - let loc = closeBrace.loc; - if (messageId === 'extra') { - loc = { - start: lastToken.loc.end, - end: closeBrace.loc.start, - }; - } - context.report({ - node, - loc, - messageId, - data: { - location: 'before', - token: closeBrace.value, - }, - fix(fixer) { - if (always) { - return fixer.insertTextAfter(lastToken, ' '); - } - return fixer.removeRange([lastToken.range[1], closeBrace.range[0]]); - }, - }); - } - } - return Object.assign(Object.assign({}, baseRules), { - // This code worked "out of the box" for interface and type literal - // Enums were very close to match as well, the only reason they are not is that was that enums don't have a body node in the parser - // So the opening brace punctuator starts in the middle of the node - `getFirstToken` in - // the base rule did not filter for the first opening brace punctuator - TSInterfaceBody: baseRules.BlockStatement, TSTypeLiteral: baseRules.BlockStatement, TSEnumDeclaration: checkSpacingInsideBraces }); - }, -}); -//# sourceMappingURL=block-spacing.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js.map deleted file mode 100644 index 9ef49ef1..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/block-spacing.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"block-spacing.js","sourceRoot":"","sources":["../../src/rules/block-spacing.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA2D;AAE3D,8CAAgC;AAChC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,eAAe,CAAC,CAAC;AAKpD,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE;YACJ,WAAW,EACT,0FAA0F;YAC5F,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,OAAO,EAAE,YAAY;QACrB,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;QAC5B,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;KACjC;IACD,cAAc,EAAE,CAAC,QAAQ,CAAC;IAE1B,MAAM,CAAC,OAAO,EAAE,CAAC,iBAAiB,CAAC;QACjC,MAAM,UAAU,GAAG,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U,CAAC,GAAG,CAAC,KAAK;qBAC1B,CAAC;iBACH;gBACD,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,GAAG;oBACH,SAAS;oBACT,IAAI,EAAE;wBACJ,QAAQ,EAAE,QAAQ;wBAClB,KAAK,EAAE,UAAU,CAAC,KAAK;qBACxB;oBACD,GAAG,CAAC,KAAK;wBACP,IAAI,MAAM,EAAE;4BACV,OAAO,KAAK,CAAC,eAAe,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;yBAC9C;wBAED,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;oBACtE,CAAC;iBACF,CAAC,CAAC;aACJ;QACH,CAAC;QACD,uCACK,SAAS;YAEZ,mEAAmE;YACnE,mIAAmI;YACnI,wFAAwF;YACxF,sEAAsE;YACtE,eAAe,EAAE,SAAS,CAAC,cAAuB,EAClD,aAAa,EAAE,SAAS,CAAC,cAAuB,EAChD,iBAAiB,EAAE,wBAAwB,IAC3C;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js deleted file mode 100644 index 67142750..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_1 = require("../util"); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('brace-style'); -exports.default = (0, util_1.createRule)({ - name: 'brace-style', - meta: { - type: 'layout', - docs: { - description: 'Enforce consistent brace style for blocks', - recommended: false, - extendsBaseRule: true, - }, - messages: baseRule.meta.messages, - fixable: baseRule.meta.fixable, - hasSuggestions: baseRule.meta.hasSuggestions, - schema: baseRule.meta.schema, - }, - defaultOptions: ['1tbs'], - create(context) { - const [style, { allowSingleLine } = { allowSingleLine: false }] = - // eslint-disable-next-line no-restricted-syntax -- Use raw options for extended rules. - context.options; - const isAllmanStyle = style === 'allman'; - const sourceCode = context.getSourceCode(); - const rules = baseRule.create(context); - /** - * Checks a pair of curly brackets based on the user's config - */ - function validateCurlyPair(openingCurlyToken, closingCurlyToken) { - if (allowSingleLine && - (0, util_1.isTokenOnSameLine)(openingCurlyToken, closingCurlyToken)) { - return; - } - const tokenBeforeOpeningCurly = sourceCode.getTokenBefore(openingCurlyToken); - const tokenBeforeClosingCurly = sourceCode.getTokenBefore(closingCurlyToken); - const tokenAfterOpeningCurly = sourceCode.getTokenAfter(openingCurlyToken); - if (!isAllmanStyle && - !(0, util_1.isTokenOnSameLine)(tokenBeforeOpeningCurly, openingCurlyToken)) { - context.report({ - node: openingCurlyToken, - messageId: 'nextLineOpen', - fix: fixer => { - const textRange = [ - tokenBeforeOpeningCurly.range[1], - openingCurlyToken.range[0], - ]; - const textBetween = sourceCode.text.slice(textRange[0], textRange[1]); - if (textBetween.trim()) { - return null; - } - return fixer.replaceTextRange(textRange, ' '); - }, - }); - } - if (isAllmanStyle && - (0, util_1.isTokenOnSameLine)(tokenBeforeOpeningCurly, openingCurlyToken)) { - context.report({ - node: openingCurlyToken, - messageId: 'sameLineOpen', - fix: fixer => fixer.insertTextBefore(openingCurlyToken, '\n'), - }); - } - if ((0, util_1.isTokenOnSameLine)(openingCurlyToken, tokenAfterOpeningCurly) && - tokenAfterOpeningCurly !== closingCurlyToken) { - context.report({ - node: openingCurlyToken, - messageId: 'blockSameLine', - fix: fixer => fixer.insertTextAfter(openingCurlyToken, '\n'), - }); - } - if ((0, util_1.isTokenOnSameLine)(tokenBeforeClosingCurly, closingCurlyToken) && - tokenBeforeClosingCurly !== openingCurlyToken) { - context.report({ - node: closingCurlyToken, - messageId: 'singleLineClose', - fix: fixer => fixer.insertTextBefore(closingCurlyToken, '\n'), - }); - } - } - return Object.assign(Object.assign({}, rules), { 'TSInterfaceBody, TSModuleBlock'(node) { - const openingCurly = sourceCode.getFirstToken(node); - const closingCurly = sourceCode.getLastToken(node); - validateCurlyPair(openingCurly, closingCurly); - }, - TSEnumDeclaration(node) { - const closingCurly = sourceCode.getLastToken(node); - const openingCurly = sourceCode.getTokenBefore(node.members.length ? node.members[0] : closingCurly); - validateCurlyPair(openingCurly, closingCurly); - } }); - }, -}); -//# sourceMappingURL=brace-style.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js.map deleted file mode 100644 index 2ec5203b..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/brace-style.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"brace-style.js","sourceRoot":"","sources":["../../src/rules/brace-style.ts"],"names":[],"mappings":";;AAMA,kCAAwD;AACxD,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,aAAa,CAAC,CAAC;AAKlD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE;YACJ,WAAW,EAAE,2CAA2C;YACxD,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;QAChC,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,OAAO;QAC9B,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;KAC7B;IACD,cAAc,EAAE,CAAC,MAAM,CAAC;IACxB,MAAM,CAAC,OAAO;QACZ,MAAM,CAAC,KAAK,EAAE,EAAE,eAAe,EAAE,GAAG,EAAE,eAAe,EA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CAAC,YAAY,CAAC,IAAI,CAAE,CAAC;gBACpD,MAAM,YAAY,GAAG,UAAU,CAAC,cAAc,CAC5C,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CACpD,CAAC;gBAEH,iBAAiB,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;YAChD,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js deleted file mode 100644 index a0204051..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js +++ /dev/null @@ -1,126 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const printNodeModifiers = (node, final) => { - var _a; - return `${(_a = node.accessibility) !== null && _a !== void 0 ? _a : ''}${node.static ? ' static' : ''} ${final} `.trimStart(); -}; -const isSupportedLiteral = (node) => { - if (node.type === utils_1.AST_NODE_TYPES.Literal) { - return true; - } - if (node.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression || - node.type === utils_1.AST_NODE_TYPES.TemplateLiteral) { - return ('quasi' in node ? node.quasi.quasis : node.quasis).length === 1; - } - return false; -}; -exports.default = util.createRule({ - name: 'class-literal-property-style', - meta: { - type: 'problem', - docs: { - description: 'Enforce that literals on classes are exposed in a consistent style', - recommended: 'strict', - }, - hasSuggestions: true, - messages: { - preferFieldStyle: 'Literals should be exposed using readonly fields.', - preferFieldStyleSuggestion: 'Replace the literals with readonly fields.', - preferGetterStyle: 'Literals should be exposed using getters.', - preferGetterStyleSuggestion: 'Replace the literals with getters.', - }, - schema: [{ enum: ['fields', 'getters'] }], - }, - defaultOptions: ['fields'], - create(context, [style]) { - return Object.assign(Object.assign({}, (style === 'fields' && { - MethodDefinition(node) { - if (node.kind !== 'get' || - !node.value.body || - !node.value.body.body.length) { - return; - } - const [statement] = node.value.body.body; - if (statement.type !== utils_1.AST_NODE_TYPES.ReturnStatement) { - return; - } - const { argument } = statement; - if (!argument || !isSupportedLiteral(argument)) { - return; - } - context.report({ - node: node.key, - messageId: 'preferFieldStyle', - suggest: [ - { - messageId: 'preferFieldStyleSuggestion', - fix(fixer) { - const sourceCode = context.getSourceCode(); - const name = sourceCode.getText(node.key); - let text = ''; - text += printNodeModifiers(node, 'readonly'); - text += node.computed ? `[${name}]` : name; - text += ` = ${sourceCode.getText(argument)};`; - return fixer.replaceText(node, text); - }, - }, - ], - }); - }, - })), (style === 'getters' && { - PropertyDefinition(node) { - if (!node.readonly || node.declare) { - return; - } - const { value } = node; - if (!value || !isSupportedLiteral(value)) { - return; - } - context.report({ - node: node.key, - messageId: 'preferGetterStyle', - suggest: [ - { - messageId: 'preferGetterStyleSuggestion', - fix(fixer) { - const sourceCode = context.getSourceCode(); - const name = sourceCode.getText(node.key); - let text = ''; - text += printNodeModifiers(node, 'get'); - text += node.computed ? `[${name}]` : name; - text += `() { return ${sourceCode.getText(value)}; }`; - return fixer.replaceText(node, text); - }, - }, - ], - }); - }, - })); - }, -}); -//# sourceMappingURL=class-literal-property-style.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js.map deleted file mode 100644 index 927066c4..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-literal-property-style.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"class-literal-property-style.js","sourceRoot":"","sources":["../../src/rules/class-literal-property-style.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAchC,MAAM,kBAAkB,GAAG,CACzB,IAAuB,EACvB,KAAyB,EACjB,EAAE;;IACV,OAAA,GAAG,MAAA,IAAI,CAAC,aAAa,mCAAI,EAAE,GACzB,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAC5B,IAAI,KAAK,GAAG,CAAC,SAAS,EAAE,CAAA;CAAA,CAAC;AAE3B,MAAM,kBAAkB,GAAG,CACzB,IAAmB,EACiB,EAAE;IACtC,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,EAAE;QACxC,OAAO,IAAI,CAAC;KACb;IAED,IACE,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,wBAAwB;QACrD,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe,EAC5C;QACA,OAAO,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;KACzE;IAED,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEF,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IA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IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;gCAC3C,IAAI,IAAI,eAAe,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;gCAEtD,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;4BACvC,CAAC;yBACF;qBACF;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC,EACF;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-dangle.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-dangle.js deleted file mode 100644 index fc54461c..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-dangle.js +++ /dev/null @@ -1,180 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('comma-dangle'); -const OPTION_VALUE_SCHEME = [ - 'always-multiline', - 'always', - 'never', - 'only-multiline', -]; -const DEFAULT_OPTION_VALUE = 'never'; -function normalizeOptions(options) { - var _a, _b, _c; - if (typeof options === 'string') { - return { - enums: options, - generics: options, - tuples: options, - }; - } - return { - enums: (_a = options.enums) !== null && _a !== void 0 ? _a : DEFAULT_OPTION_VALUE, - generics: (_b = options.generics) !== null && _b !== void 0 ? _b : DEFAULT_OPTION_VALUE, - tuples: (_c = options.tuples) !== null && _c !== void 0 ? _c : DEFAULT_OPTION_VALUE, - }; -} -exports.default = util.createRule({ - name: 'comma-dangle', - meta: { - type: 'layout', - docs: { - description: 'Require or disallow trailing commas', - recommended: false, - extendsBaseRule: true, - }, - schema: { - $defs: { - value: { - enum: OPTION_VALUE_SCHEME, - }, - valueWithIgnore: { - enum: [...OPTION_VALUE_SCHEME, 'ignore'], - }, - }, - type: 'array', - items: [ - { - oneOf: [ - { - $ref: '#/$defs/value', - }, - { - type: 'object', - properties: { - arrays: { $ref: '#/$defs/valueWithIgnore' }, - objects: { $ref: '#/$defs/valueWithIgnore' }, - imports: { $ref: '#/$defs/valueWithIgnore' }, - exports: { $ref: '#/$defs/valueWithIgnore' }, - functions: { $ref: '#/$defs/valueWithIgnore' }, - enums: { $ref: '#/$defs/valueWithIgnore' }, - generics: { $ref: '#/$defs/valueWithIgnore' }, - tuples: { $ref: '#/$defs/valueWithIgnore' }, - }, - additionalProperties: false, - }, - ], - }, - ], - additionalProperties: false, - }, - fixable: 'code', - hasSuggestions: baseRule.meta.hasSuggestions, - messages: baseRule.meta.messages, - }, - defaultOptions: ['never'], - create(context, [options]) { - const rules = baseRule.create(context); - const sourceCode = context.getSourceCode(); - const normalizedOptions = normalizeOptions(options); - const predicate = { - always: forceComma, - 'always-multiline': forceCommaIfMultiline, - 'only-multiline': allowCommaIfMultiline, - never: forbidComma, - ignore: () => { }, - }; - function last(nodes) { - var _a; - return (_a = nodes[nodes.length - 1]) !== null && _a !== void 0 ? _a : null; - } - function getLastItem(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSEnumDeclaration: - return last(node.members); - case utils_1.AST_NODE_TYPES.TSTypeParameterDeclaration: - return last(node.params); - case utils_1.AST_NODE_TYPES.TSTupleType: - return last(node.elementTypes); - default: - return null; - } - } - function getTrailingToken(node) { - const last = getLastItem(node); - const trailing = last && sourceCode.getTokenAfter(last); - return trailing; - } - function isMultiline(node) { - const last = getLastItem(node); - const lastToken = sourceCode.getLastToken(node); - return (last === null || last === void 0 ? void 0 : last.loc.end.line) !== (lastToken === null || lastToken === void 0 ? void 0 : lastToken.loc.end.line); - } - function forbidComma(node) { - const last = getLastItem(node); - const trailing = getTrailingToken(node); - if (last && trailing && util.isCommaToken(trailing)) { - context.report({ - node, - messageId: 'unexpected', - fix(fixer) { - return fixer.remove(trailing); - }, - }); - } - } - function forceComma(node) { - const last = getLastItem(node); - const trailing = getTrailingToken(node); - if (last && trailing && !util.isCommaToken(trailing)) { - context.report({ - node, - messageId: 'missing', - fix(fixer) { - return fixer.insertTextAfter(last, ','); - }, - }); - } - } - function allowCommaIfMultiline(node) { - if (!isMultiline(node)) { - forbidComma(node); - } - } - function forceCommaIfMultiline(node) { - if (isMultiline(node)) { - forceComma(node); - } - else { - forbidComma(node); - } - } - return Object.assign(Object.assign({}, rules), { TSEnumDeclaration: predicate[normalizedOptions.enums], TSTypeParameterDeclaration: predicate[normalizedOptions.generics], TSTupleType: predicate[normalizedOptions.tuples] }); - }, -}); -//# sourceMappingURL=comma-dangle.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-dangle.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-dangle.js.map deleted file mode 100644 index 948916d6..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-dangle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"comma-dangle.js","sourceRoot":"","sources":["../../src/rules/comma-dangle.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C,MAAM,CAAC,QAAQ,CAAC,CAAC;oBAChC,CAAC;iBACF,CAAC,CAAC;aACJ;QACH,CAAC;QAED,SAAS,UAAU,CAAC,IAAmB;YACrC,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;YAC/B,MAAM,QAAQ,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;YACxC,IAAI,IAAI,IAAI,QAAQ,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE;gBACpD,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,SAAS;oBACpB,GAAG,CAAC,KAAK;wBACP,OAAO,KAAK,CAAC,eAAe,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;oBAC1C,CAAC;iBACF,CAAC,CAAC;aACJ;QACH,CAAC;QAED,SAAS,qBAAqB,CAAC,IAAmB;YAChD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;gBACtB,WAAW,CAAC,IAAI,CAAC,CAAC;aACnB;QACH,CAAC;QAED,SAAS,qBAAqB,CAAC,IAAmB;YAChD,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE;gBACrB,UAAU,CAAC,IAAI,CAAC,CAAC;aAClB;iBAAM;gBACL,WAAW,CAAC,IAAI,CAAC,CAAC;aACnB;QACH,CAAC;QAED,uCACK,KAAK,KACR,iBAAiB,EAAE,SAAS,CAAC,iBAAiB,CAAC,KAAK,CAAC,EACrD,0BAA0B,EAAE,SAAS,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EACjE,WAAW,EAAE,SAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAChD;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js deleted file mode 100644 index 61f3d6c7..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js +++ /dev/null @@ -1,150 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'comma-spacing', - meta: { - type: 'layout', - docs: { - description: 'Enforce consistent spacing before and after commas', - recommended: false, - extendsBaseRule: true, - }, - fixable: 'whitespace', - schema: [ - { - type: 'object', - properties: { - before: { - type: 'boolean', - default: false, - }, - after: { - type: 'boolean', - default: true, - }, - }, - additionalProperties: false, - }, - ], - messages: { - unexpected: `There should be no space {{loc}} ','.`, - missing: `A space is required {{loc}} ','.`, - }, - }, - defaultOptions: [ - { - before: false, - after: true, - }, - ], - create(context, [{ before: spaceBefore, after: spaceAfter }]) { - const sourceCode = context.getSourceCode(); - const tokensAndComments = sourceCode.tokensAndComments; - const ignoredTokens = new Set(); - /** - * Adds null elements of the ArrayExpression or ArrayPattern node to the ignore list - * @param node node to evaluate - */ - function addNullElementsToIgnoreList(node) { - let previousToken = sourceCode.getFirstToken(node); - for (const element of node.elements) { - let token; - if (element == null) { - token = sourceCode.getTokenAfter(previousToken); - if (token && (0, util_1.isCommaToken)(token)) { - ignoredTokens.add(token); - } - } - else { - token = sourceCode.getTokenAfter(element); - } - previousToken = token; - } - } - /** - * Adds type parameters trailing comma token to the ignore list - * @param node node to evaluate - */ - function addTypeParametersTrailingCommaToIgnoreList(node) { - const paramLength = node.params.length; - if (paramLength) { - const param = node.params[paramLength - 1]; - const afterToken = sourceCode.getTokenAfter(param); - if (afterToken && (0, util_1.isCommaToken)(afterToken)) { - ignoredTokens.add(afterToken); - } - } - } - /** - * Validates the spacing around a comma token. - * @param commaToken The token representing the comma - * @param prevToken The last token before the comma - * @param nextToken The first token after the comma - */ - function validateCommaSpacing(commaToken, prevToken, nextToken) { - if (prevToken && - (0, util_1.isTokenOnSameLine)(prevToken, commaToken) && - // eslint-disable-next-line deprecation/deprecation -- TODO - switch once our min ESLint version is 6.7.0 - spaceBefore !== sourceCode.isSpaceBetweenTokens(prevToken, commaToken)) { - context.report({ - node: commaToken, - data: { - loc: 'before', - }, - messageId: spaceBefore ? 'missing' : 'unexpected', - fix: fixer => spaceBefore - ? fixer.insertTextBefore(commaToken, ' ') - : fixer.replaceTextRange([prevToken.range[1], commaToken.range[0]], ''), - }); - } - if (nextToken && (0, util_1.isClosingParenToken)(nextToken)) { - return; - } - if (spaceAfter && - nextToken && - ((0, util_1.isClosingBraceToken)(nextToken) || (0, util_1.isClosingBracketToken)(nextToken))) { - return; - } - if (!spaceAfter && nextToken && nextToken.type === utils_1.AST_TOKEN_TYPES.Line) { - return; - } - if (nextToken && - (0, util_1.isTokenOnSameLine)(commaToken, nextToken) && - // eslint-disable-next-line deprecation/deprecation -- TODO - switch once our min ESLint version is 6.7.0 - spaceAfter !== sourceCode.isSpaceBetweenTokens(commaToken, nextToken)) { - context.report({ - node: commaToken, - data: { - loc: 'after', - }, - messageId: spaceAfter ? 'missing' : 'unexpected', - fix: fixer => spaceAfter - ? fixer.insertTextAfter(commaToken, ' ') - : fixer.replaceTextRange([commaToken.range[1], nextToken.range[0]], ''), - }); - } - } - return { - TSTypeParameterDeclaration: addTypeParametersTrailingCommaToIgnoreList, - ArrayExpression: addNullElementsToIgnoreList, - ArrayPattern: addNullElementsToIgnoreList, - 'Program:exit'() { - tokensAndComments.forEach((token, i) => { - if (!(0, util_1.isCommaToken)(token)) { - return; - } - const prevToken = tokensAndComments[i - 1]; - const nextToken = tokensAndComments[i + 1]; - validateCommaSpacing(token, (0, util_1.isCommaToken)(prevToken) || ignoredTokens.has(token) - ? null - : prevToken, (nextToken && (0, util_1.isCommaToken)(nextToken)) || ignoredTokens.has(token) - ? null - : nextToken); - }); - }, - }; - }, -}); -//# sourceMappingURL=comma-spacing.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js.map deleted file mode 100644 index aa9d3837..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/comma-spacing.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"comma-spacing.js","sourceRoot":"","sources":["../../src/rules/comma-spacing.ts"],"names":[],"mappings":";;AACA,oDAA2D;AAE3D,kCAOiB;AAUjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE;YACJ,WAAW,EAAE,oDAAoD;YACjE,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,OAAO,EAAE,YAAY;QACrB,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,MAAM,EAAE;wBACN,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,KAAK;qBACf;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,IAAI;qBACd;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,uCAAuC;YACnD,OAAO,EAAE,kCAAkC;SAC5C;KACF;IACD,cAAc,EAAE;QACd;YACE,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,IAAI;SACZ;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;QAC1D,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAC3C,MAAM,iBAAiB,GAAG,UAAU,CAAC,iBAAiB,CAAC;QACvD,MAAM,aAAa,GAAG,IAAI,GAAG,EAA4B,CAAC;QAE1D;;;WAGG;QACH,SAAS,2BAA2B,CAClC,IAAsD;YAEtD,IAAI,aAAa,GAAG,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;YACnD,KAAK,MAAM,OA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ACR,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,0BAA0B,EAAE,0CAA0C;YACtE,eAAe,EAAE,2BAA2B;YAC5C,YAAY,EAAE,2BAA2B;YAEzC,cAAc;gBACZ,iBAAiB,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;oBACrC,IAAI,CAAC,IAAA,mBAAY,EAAC,KAAK,CAAC,EAAE;wBACxB,OAAO;qBACR;oBAED,MAAM,SAAS,GAAG,iBAAiB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;oBAC3C,MAAM,SAAS,GAAG,iBAAiB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;oBAE3C,oBAAoB,CAClB,KAAK,EACL,IAAA,mBAAY,EAAC,SAAS,CAAC,IAAI,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC;wBACjD,CAAC,CAAC,IAAI;wBACN,CAAC,CAAC,SAAS,EACb,CAAC,SAAS,IAAI,IAAA,mBAAY,EAAC,SAAS,CAAC,CAAC,IAAI,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC;wBAChE,CAAC,CAAC,IAAI;wBACN,CAAC,CAAC,SAAS,CACd,CAAC;gBACJ,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js deleted file mode 100644 index 8f25d5fd..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js +++ /dev/null @@ -1,110 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'consistent-generic-constructors', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce specifying generic type arguments on type annotation or constructor name of a constructor call', - recommended: 'strict', - }, - messages: { - preferTypeAnnotation: 'The generic type arguments should be specified as part of the type annotation.', - preferConstructor: 'The generic type arguments should be specified as part of the constructor type arguments.', - }, - fixable: 'code', - schema: [ - { - enum: ['type-annotation', 'constructor'], - }, - ], - }, - defaultOptions: ['constructor'], - create(context, [mode]) { - const sourceCode = context.getSourceCode(); - return { - 'VariableDeclarator,PropertyDefinition,:matches(FunctionDeclaration,FunctionExpression) > AssignmentPattern'(node) { - var _a, _b; - function getLHSRHS() { - switch (node.type) { - case utils_1.AST_NODE_TYPES.VariableDeclarator: - return [node.id, node.init]; - case utils_1.AST_NODE_TYPES.PropertyDefinition: - return [node, node.value]; - case utils_1.AST_NODE_TYPES.AssignmentPattern: - return [node.left, node.right]; - default: - throw new Error(`Unhandled node type: ${node.type}`); - } - } - const [lhsName, rhs] = getLHSRHS(); - const lhs = (_a = lhsName.typeAnnotation) === null || _a === void 0 ? void 0 : _a.typeAnnotation; - if (!rhs || - rhs.type !== utils_1.AST_NODE_TYPES.NewExpression || - rhs.callee.type !== utils_1.AST_NODE_TYPES.Identifier) { - return; - } - if (lhs && - (lhs.type !== utils_1.AST_NODE_TYPES.TSTypeReference || - lhs.typeName.type !== utils_1.AST_NODE_TYPES.Identifier || - lhs.typeName.name !== rhs.callee.name)) { - return; - } - if (mode === 'type-annotation') { - if (!lhs && rhs.typeParameters) { - const { typeParameters, callee } = rhs; - const typeAnnotation = sourceCode.getText(callee) + sourceCode.getText(typeParameters); - context.report({ - node, - messageId: 'preferTypeAnnotation', - fix(fixer) { - function getIDToAttachAnnotation() { - if (node.type !== utils_1.AST_NODE_TYPES.PropertyDefinition) { - return lhsName; - } - if (!node.computed) { - return node.key; - } - // If the property's computed, we have to attach the - // annotation after the square bracket, not the enclosed expression - return sourceCode.getTokenAfter(node.key); - } - return [ - fixer.remove(typeParameters), - fixer.insertTextAfter(getIDToAttachAnnotation(), ': ' + typeAnnotation), - ]; - }, - }); - } - return; - } - if (mode === 'constructor') { - if ((lhs === null || lhs === void 0 ? void 0 : lhs.typeParameters) && !rhs.typeParameters) { - const hasParens = ((_b = sourceCode.getTokenAfter(rhs.callee)) === null || _b === void 0 ? void 0 : _b.value) === '('; - const extraComments = new Set(sourceCode.getCommentsInside(lhs.parent)); - sourceCode - .getCommentsInside(lhs.typeParameters) - .forEach(c => extraComments.delete(c)); - context.report({ - node, - messageId: 'preferConstructor', - *fix(fixer) { - yield fixer.remove(lhs.parent); - for (const comment of extraComments) { - yield fixer.insertTextAfter(rhs.callee, sourceCode.getText(comment)); - } - yield fixer.insertTextAfter(rhs.callee, sourceCode.getText(lhs.typeParameters)); - if (!hasParens) { - yield fixer.insertTextAfter(rhs.callee, '()'); - } - }, - }); - } - } - }, - }; - }, -}); -//# sourceMappingURL=consistent-generic-constructors.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js.map deleted file mode 100644 index 48da7144..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-generic-constructors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"consistent-generic-constructors.js","sourceRoot":"","sources":["../../src/rules/consistent-generic-constructors.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAAqC;AAKrC,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,iCAAiC;IACvC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,wGAAwG;YAC1G,WAAW,EAAE,QAAQ;SACtB;QACD,QAAQ,EAAE;YACR,oBAAoB,EAClB,gFAAgF;YAClF,iBAAiB,EACf,2FAA2F;SAC9F;QACD,OAAO,EAAE,MAAM;QACf,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,CAAC,iBAAiB,EAAE,aAAa,CAAC;aACzC;SACF;KACF;IACD,cAAc,EAAE,CAAC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cAAc,CAAC;6BACrC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;wBACzC,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI;4BACJ,SAAS,EAAE,mBAAmB;4BAC9B,CAAC,GAAG,CAAC,KAAK;gCACR,MAAM,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,MAAO,CAAC,CAAC;gCAChC,KAAK,MAAM,OAAO,IAAI,aAAa,EAAE;oCACnC,MAAM,KAAK,CAAC,eAAe,CACzB,GAAG,CAAC,MAAM,EACV,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAC5B,CAAC;iCACH;gCACD,MAAM,KAAK,CAAC,eAAe,CACzB,GAAG,CAAC,MAAM,EACV,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CACvC,CAAC;gCACF,IAAI,CAAC,SAAS,EAAE;oCACd,MAAM,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;iCAC/C;4BACH,CAAC;yBACF,CAAC,CAAC;qBACJ;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js deleted file mode 100644 index 1f11e49d..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js +++ /dev/null @@ -1,126 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'consistent-indexed-object-style', - meta: { - type: 'suggestion', - docs: { - description: 'Require or disallow the `Record` type', - recommended: 'strict', - }, - messages: { - preferRecord: 'A record is preferred over an index signature.', - preferIndexSignature: 'An index signature is preferred over a record.', - }, - fixable: 'code', - schema: [ - { - enum: ['record', 'index-signature'], - }, - ], - }, - defaultOptions: ['record'], - create(context, [mode]) { - const sourceCode = context.getSourceCode(); - function checkMembers(members, node, parentId, prefix, postfix, safeFix = true) { - if (members.length !== 1) { - return; - } - const [member] = members; - if (member.type !== utils_1.AST_NODE_TYPES.TSIndexSignature) { - return; - } - const [parameter] = member.parameters; - if (!parameter) { - return; - } - if (parameter.type !== utils_1.AST_NODE_TYPES.Identifier) { - return; - } - const keyType = parameter.typeAnnotation; - if (!keyType) { - return; - } - const valueType = member.typeAnnotation; - if (!valueType) { - return; - } - if (parentId) { - const scope = context.getScope(); - const superVar = utils_1.ASTUtils.findVariable(scope, parentId.name); - if (superVar) { - const isCircular = superVar.references.some(item => item.isTypeReference && - node.range[0] <= item.identifier.range[0] && - node.range[1] >= item.identifier.range[1]); - if (isCircular) { - return; - } - } - } - context.report({ - node, - messageId: 'preferRecord', - fix: safeFix - ? (fixer) => { - const key = sourceCode.getText(keyType.typeAnnotation); - const value = sourceCode.getText(valueType.typeAnnotation); - const record = member.readonly - ? `Readonly>` - : `Record<${key}, ${value}>`; - return fixer.replaceText(node, `${prefix}${record}${postfix}`); - } - : null, - }); - } - return Object.assign(Object.assign({}, (mode === 'index-signature' && { - TSTypeReference(node) { - var _a; - const typeName = node.typeName; - if (typeName.type !== utils_1.AST_NODE_TYPES.Identifier) { - return; - } - if (typeName.name !== 'Record') { - return; - } - const params = (_a = node.typeParameters) === null || _a === void 0 ? void 0 : _a.params; - if ((params === null || params === void 0 ? void 0 : params.length) !== 2) { - return; - } - context.report({ - node, - messageId: 'preferIndexSignature', - fix(fixer) { - const key = sourceCode.getText(params[0]); - const type = sourceCode.getText(params[1]); - return fixer.replaceText(node, `{ [key: ${key}]: ${type} }`); - }, - }); - }, - })), (mode === 'record' && { - TSTypeLiteral(node) { - const parent = findParentDeclaration(node); - checkMembers(node.members, node, parent === null || parent === void 0 ? void 0 : parent.id, '', ''); - }, - TSInterfaceDeclaration(node) { - var _a, _b, _c, _d; - let genericTypes = ''; - if (((_b = (_a = node.typeParameters) === null || _a === void 0 ? void 0 : _a.params) !== null && _b !== void 0 ? _b : []).length > 0) { - genericTypes = `<${(_c = node.typeParameters) === null || _c === void 0 ? void 0 : _c.params.map(p => sourceCode.getText(p)).join(', ')}>`; - } - checkMembers(node.body.body, node, node.id, `type ${node.id.name}${genericTypes} = `, ';', !((_d = node.extends) === null || _d === void 0 ? void 0 : _d.length)); - }, - })); - }, -}); -function findParentDeclaration(node) { - if (node.parent && node.parent.type !== utils_1.AST_NODE_TYPES.TSTypeAnnotation) { - if (node.parent.type === utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration) { - return node.parent; - } - return findParentDeclaration(node.parent); - } - return undefined; -} -//# sourceMappingURL=consistent-indexed-object-style.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js.map deleted file mode 100644 index 7a5fb4e2..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-indexed-object-style.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"consistent-indexed-object-style.js","sourceRoot":"","sources":["../../src/rules/consistent-indexed-object-style.ts"],"names":[],"mappings":";;AACA,oDAAoE;AAEpE,kCAAqC;AAKrC,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,iCAAiC;IACvC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,uCAAuC;YACpD,WAAW,EAAE,QAAQ;SACtB;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,gDAAgD;YAC9D,oBAAoB,EAAE,gDAAgD;SACvE;QACD,OAAO,EAAE,MAAM;QACf,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,CAAC,QAAQ,EAAE,iBAAiB,CAAC;aACpC;SACF;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,0CAAE,MAAM,CAAA,CACtB,CAAC;YACJ,CAAC;SACF,CAAC,EACF;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,qBAAqB,CAC5B,IAAmB;IAEnB,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAAE;QACvE,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,sBAAsB,EAAE;YAC9D,OAAO,IAAI,CAAC,MAAM,CAAC;SACpB;QACD,OAAO,qBAAqB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KAC3C;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js deleted file mode 100644 index caf4bcda..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js +++ /dev/null @@ -1,204 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'consistent-type-assertions', - meta: { - type: 'suggestion', - fixable: 'code', - hasSuggestions: true, - docs: { - description: 'Enforce consistent usage of type assertions', - recommended: 'strict', - }, - messages: { - as: "Use 'as {{cast}}' instead of '<{{cast}}>'.", - 'angle-bracket': "Use '<{{cast}}>' instead of 'as {{cast}}'.", - never: 'Do not use any type assertions.', - unexpectedObjectTypeAssertion: 'Always prefer const x: T = { ... }.', - replaceObjectTypeAssertionWithAnnotation: 'Use const x: {{cast}} = { ... } instead.', - replaceObjectTypeAssertionWithSatisfies: 'Use const x = { ... } satisfies {{cast}} instead.', - }, - schema: [ - { - oneOf: [ - { - type: 'object', - properties: { - assertionStyle: { - enum: ['never'], - }, - }, - additionalProperties: false, - required: ['assertionStyle'], - }, - { - type: 'object', - properties: { - assertionStyle: { - enum: ['as', 'angle-bracket'], - }, - objectLiteralTypeAssertions: { - enum: ['allow', 'allow-as-parameter', 'never'], - }, - }, - additionalProperties: false, - required: ['assertionStyle'], - }, - ], - }, - ], - }, - defaultOptions: [ - { - assertionStyle: 'as', - objectLiteralTypeAssertions: 'allow', - }, - ], - create(context, [options]) { - const sourceCode = context.getSourceCode(); - function isConst(node) { - if (node.type !== utils_1.AST_NODE_TYPES.TSTypeReference) { - return false; - } - return (node.typeName.type === utils_1.AST_NODE_TYPES.Identifier && - node.typeName.name === 'const'); - } - function getTextWithParentheses(node) { - // Capture parentheses before and after the node - let beforeCount = 0; - let afterCount = 0; - if (util.isParenthesized(node, sourceCode)) { - const bodyOpeningParen = sourceCode.getTokenBefore(node, util.isOpeningParenToken); - const bodyClosingParen = sourceCode.getTokenAfter(node, util.isClosingParenToken); - beforeCount = node.range[0] - bodyOpeningParen.range[0]; - afterCount = bodyClosingParen.range[1] - node.range[1]; - } - return sourceCode.getText(node, beforeCount, afterCount); - } - function reportIncorrectAssertionType(node) { - const messageId = options.assertionStyle; - // If this node is `as const`, then don't report an error. - if (isConst(node.typeAnnotation) && messageId === 'never') { - return; - } - context.report({ - node, - messageId, - data: messageId !== 'never' - ? { cast: sourceCode.getText(node.typeAnnotation) } - : {}, - fix: messageId === 'as' - ? (fixer) => [ - fixer.replaceText(node, getTextWithParentheses(node.expression)), - fixer.insertTextAfter(node, ` as ${getTextWithParentheses(node.typeAnnotation)}`), - ] - : undefined, - }); - } - function checkType(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSAnyKeyword: - case utils_1.AST_NODE_TYPES.TSUnknownKeyword: - return false; - case utils_1.AST_NODE_TYPES.TSTypeReference: - return ( - // Ignore `as const` and `` - !isConst(node) || - // Allow qualified names which have dots between identifiers, `Foo.Bar` - node.typeName.type === utils_1.AST_NODE_TYPES.TSQualifiedName); - default: - return true; - } - } - function checkExpression(node) { - var _a; - if (options.assertionStyle === 'never' || - options.objectLiteralTypeAssertions === 'allow' || - node.expression.type !== utils_1.AST_NODE_TYPES.ObjectExpression) { - return; - } - if (options.objectLiteralTypeAssertions === 'allow-as-parameter' && - node.parent && - (node.parent.type === utils_1.AST_NODE_TYPES.NewExpression || - node.parent.type === utils_1.AST_NODE_TYPES.CallExpression || - node.parent.type === utils_1.AST_NODE_TYPES.ThrowStatement || - node.parent.type === utils_1.AST_NODE_TYPES.AssignmentPattern || - node.parent.type === utils_1.AST_NODE_TYPES.JSXExpressionContainer)) { - return; - } - if (checkType(node.typeAnnotation) && - node.expression.type === utils_1.AST_NODE_TYPES.ObjectExpression) { - const suggest = []; - if (((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.VariableDeclarator && - !node.parent.id.typeAnnotation) { - const { parent } = node; - suggest.push({ - messageId: 'replaceObjectTypeAssertionWithAnnotation', - data: { cast: sourceCode.getText(node.typeAnnotation) }, - fix: fixer => [ - fixer.insertTextAfter(parent.id, `: ${sourceCode.getText(node.typeAnnotation)}`), - fixer.replaceText(node, getTextWithParentheses(node.expression)), - ], - }); - } - suggest.push({ - messageId: 'replaceObjectTypeAssertionWithSatisfies', - data: { cast: sourceCode.getText(node.typeAnnotation) }, - fix: fixer => [ - fixer.replaceText(node, getTextWithParentheses(node.expression)), - fixer.insertTextAfter(node, ` satisfies ${context - .getSourceCode() - .getText(node.typeAnnotation)}`), - ], - }); - context.report({ - node, - messageId: 'unexpectedObjectTypeAssertion', - suggest, - }); - } - } - return { - TSTypeAssertion(node) { - if (options.assertionStyle !== 'angle-bracket') { - reportIncorrectAssertionType(node); - return; - } - checkExpression(node); - }, - TSAsExpression(node) { - if (options.assertionStyle !== 'as') { - reportIncorrectAssertionType(node); - return; - } - checkExpression(node); - }, - }; - }, -}); -//# sourceMappingURL=consistent-type-assertions.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map deleted file mode 100644 index 4a7737ce..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"consistent-type-assertions.js","sourceRoot":"","sources":["../../src/rules/consistent-type-assertions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAoBhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,IAAI,EAAE;YACJ,WAAW,EAAE,6CAA6C;YAC1D,WAAW,EAAE,QAAQ;SACtB;QACD,QAAQ,EAAE;YACR,EAAE,EAAE,4CAA4C;YAChD,eAAe,EAAE,4CAA4C;YAC7D,KAAK,EAAE,iCAAiC;YACxC,6BAA6B,EAAE,qCAAqC;YACpE,wCAAwC,EACtC,0CAA0C;YAC5C,uCAAuC,EACrC,mDAAmD;SAC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;iBACR;gBAED,eAAe,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;YACD,cAAc,CAAC,IAAI;gBACjB,IAAI,OAAO,CAAC,cAAc,KAAK,IAAI,EAAE;oBACnC,4BAA4B,CAAC,IAAI,CAAC,CAAC;oBACnC,OAAO;iBACR;gBAED,eAAe,CAAC,IAAI,CAAC,CAAC;YACxB,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js deleted file mode 100644 index 9e5e9343..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js +++ /dev/null @@ -1,122 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'consistent-type-definitions', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce type definitions to consistently use either `interface` or `type`', - recommended: 'strict', - }, - messages: { - interfaceOverType: 'Use an `interface` instead of a `type`.', - typeOverInterface: 'Use a `type` instead of an `interface`.', - }, - schema: [ - { - enum: ['interface', 'type'], - }, - ], - fixable: 'code', - }, - defaultOptions: ['interface'], - create(context, [option]) { - const sourceCode = context.getSourceCode(); - /** - * Iterates from the highest parent to the currently traversed node - * to determine whether any node in tree is globally declared module declaration - */ - function isCurrentlyTraversedNodeWithinModuleDeclaration() { - return context - .getAncestors() - .some(node => node.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration && - node.declare && - node.global); - } - return Object.assign(Object.assign({}, (option === 'interface' && { - "TSTypeAliasDeclaration[typeAnnotation.type='TSTypeLiteral']"(node) { - context.report({ - node: node.id, - messageId: 'interfaceOverType', - fix(fixer) { - var _a; - const typeNode = (_a = node.typeParameters) !== null && _a !== void 0 ? _a : node.id; - const fixes = []; - const firstToken = sourceCode.getTokenBefore(node.id); - if (firstToken) { - fixes.push(fixer.replaceText(firstToken, 'interface')); - fixes.push(fixer.replaceTextRange([typeNode.range[1], node.typeAnnotation.range[0]], ' ')); - } - const afterToken = sourceCode.getTokenAfter(node.typeAnnotation); - if (afterToken && - afterToken.type === utils_1.AST_TOKEN_TYPES.Punctuator && - afterToken.value === ';') { - fixes.push(fixer.remove(afterToken)); - } - return fixes; - }, - }); - }, - })), (option === 'type' && { - TSInterfaceDeclaration(node) { - const fix = isCurrentlyTraversedNodeWithinModuleDeclaration() - ? null - : (fixer) => { - var _a, _b; - const typeNode = (_a = node.typeParameters) !== null && _a !== void 0 ? _a : node.id; - const fixes = []; - const firstToken = sourceCode.getTokenBefore(node.id); - if (firstToken) { - fixes.push(fixer.replaceText(firstToken, 'type')); - fixes.push(fixer.replaceTextRange([typeNode.range[1], node.body.range[0]], ' = ')); - } - if (node.extends) { - node.extends.forEach(heritage => { - const typeIdentifier = sourceCode.getText(heritage); - fixes.push(fixer.insertTextAfter(node.body, ` & ${typeIdentifier}`)); - }); - } - if (((_b = node.parent) === null || _b === void 0 ? void 0 : _b.type) === utils_1.AST_NODE_TYPES.ExportDefaultDeclaration) { - fixes.push(fixer.removeRange([node.parent.range[0], node.range[0]]), fixer.insertTextAfter(node.body, `\nexport default ${node.id.name}`)); - } - return fixes; - }; - context.report({ - node: node.id, - messageId: 'typeOverInterface', - /** - * remove automatically fix when the interface is within a declare global - * @see {@link https://github.com/typescript-eslint/typescript-eslint/issues/2707} - */ - fix, - }); - }, - })); - }, -}); -//# sourceMappingURL=consistent-type-definitions.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js.map deleted file mode 100644 index 82200189..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-definitions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"consistent-type-definitions.js","sourceRoot":"","sources":["../../src/rules/consistent-type-definitions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA2E;AAE3E,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,2EAA2E;YAC7E,WAAW,EAAE,QAAQ;SACtB;QACD,QAAQ,EAAE;YACR,iBAAiB,EAAE,yCAAyC;YAC5D,iBAAiB,EAAE,yCAAyC;SAC7D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,CAAC,WAAW,EAAE,MAAM,CAAC;aAC5B;SACF;QACD,OAAO,EAAE,MAAM;KAChB;IACD,cAAc,EAAE,CAAC,WAAW,CAAC;IAC7B,MAAM,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;QACtB,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAE3C;;;WAGG;QACH,SAAS,+CAA+C;YACtD,OAAO,OAAO;iBACX,YAAY,E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ACxD,KAAK,CAAC,eAAe,CACnB,IAAI,CAAC,IAAI,EACT,oBAAoB,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,CACnC,CACF,CAAC;yBACH;wBAED,OAAO,KAAK,CAAC;oBACf,CAAC,CAAC;gBACN,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI,EAAE,IAAI,CAAC,EAAE;oBACb,SAAS,EAAE,mBAAmB;oBAC9B;;;uBAGG;oBACH,GAAG;iBACJ,CAAC,CAAC;YACL,CAAC;SACF,CAAC,EACF;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js deleted file mode 100644 index 881e4984..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js +++ /dev/null @@ -1,266 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const typescript_1 = require("typescript"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'consistent-type-exports', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce consistent usage of type exports', - recommended: false, - requiresTypeChecking: true, - }, - messages: { - typeOverValue: 'All exports in the declaration are only used as types. Use `export type`.', - singleExportIsType: 'Type export {{exportNames}} is not a value and should be exported using `export type`.', - multipleExportsAreTypes: 'Type exports {{exportNames}} are not values and should be exported using `export type`.', - }, - schema: [ - { - type: 'object', - properties: { - fixMixedExportsWithInlineTypeSpecifier: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - fixable: 'code', - }, - defaultOptions: [ - { - fixMixedExportsWithInlineTypeSpecifier: false, - }, - ], - create(context, [{ fixMixedExportsWithInlineTypeSpecifier }]) { - const sourceCode = context.getSourceCode(); - const sourceExportsMap = {}; - const parserServices = util.getParserServices(context); - return { - ExportNamedDeclaration(node) { - var _a; - // Coerce the source into a string for use as a lookup entry. - const source = (_a = getSourceFromExport(node)) !== null && _a !== void 0 ? _a : 'undefined'; - const sourceExports = (sourceExportsMap[source] || (sourceExportsMap[source] = { - source, - reportValueExports: [], - typeOnlyNamedExport: null, - valueOnlyNamedExport: null, - })); - // Cache the first encountered exports for the package. We will need to come - // back to these later when fixing the problems. - if (node.exportKind === 'type') { - if (sourceExports.typeOnlyNamedExport == null) { - // The export is a type export - sourceExports.typeOnlyNamedExport = node; - } - } - else if (sourceExports.valueOnlyNamedExport == null) { - // The export is a value export - sourceExports.valueOnlyNamedExport = node; - } - // Next for the current export, we will separate type/value specifiers. - const typeBasedSpecifiers = []; - const inlineTypeSpecifiers = []; - const valueSpecifiers = []; - // Note: it is valid to export values as types. We will avoid reporting errors - // when this is encountered. - if (node.exportKind !== 'type') { - for (const specifier of node.specifiers) { - if (specifier.exportKind === 'type') { - inlineTypeSpecifiers.push(specifier); - continue; - } - const isTypeBased = isSpecifierTypeBased(parserServices, specifier); - if (isTypeBased === true) { - typeBasedSpecifiers.push(specifier); - } - else if (isTypeBased === false) { - // When isTypeBased is undefined, we should avoid reporting them. - valueSpecifiers.push(specifier); - } - } - } - if ((node.exportKind === 'value' && typeBasedSpecifiers.length) || - (node.exportKind === 'type' && valueSpecifiers.length)) { - sourceExports.reportValueExports.push({ - node, - typeBasedSpecifiers, - valueSpecifiers, - inlineTypeSpecifiers, - }); - } - }, - 'Program:exit'() { - for (const sourceExports of Object.values(sourceExportsMap)) { - // If this export has no issues, move on. - if (sourceExports.reportValueExports.length === 0) { - continue; - } - for (const report of sourceExports.reportValueExports) { - if (report.valueSpecifiers.length === 0) { - // Export is all type-only with no type specifiers; convert the entire export to `export type`. - context.report({ - node: report.node, - messageId: 'typeOverValue', - *fix(fixer) { - yield* fixExportInsertType(fixer, sourceCode, report.node); - }, - }); - continue; - } - // We have both type and value violations. - const allExportNames = report.typeBasedSpecifiers.map(specifier => `${specifier.local.name}`); - if (allExportNames.length === 1) { - const exportNames = allExportNames[0]; - context.report({ - node: report.node, - messageId: 'singleExportIsType', - data: { exportNames }, - *fix(fixer) { - if (fixMixedExportsWithInlineTypeSpecifier) { - yield* fixAddTypeSpecifierToNamedExports(fixer, report); - } - else { - yield* fixSeparateNamedExports(fixer, sourceCode, report); - } - }, - }); - } - else { - const exportNames = util.formatWordList(allExportNames); - context.report({ - node: report.node, - messageId: 'multipleExportsAreTypes', - data: { exportNames }, - *fix(fixer) { - if (fixMixedExportsWithInlineTypeSpecifier) { - yield* fixAddTypeSpecifierToNamedExports(fixer, report); - } - else { - yield* fixSeparateNamedExports(fixer, sourceCode, report); - } - }, - }); - } - } - } - }, - }; - }, -}); -/** - * Helper for identifying if an export specifier resolves to a - * JavaScript value or a TypeScript type. - * - * @returns True/false if is a type or not, or undefined if the specifier - * can't be resolved. - */ -function isSpecifierTypeBased(parserServices, specifier) { - const checker = parserServices.program.getTypeChecker(); - const node = parserServices.esTreeNodeToTSNodeMap.get(specifier.exported); - const symbol = checker.getSymbolAtLocation(node); - const aliasedSymbol = checker.getAliasedSymbol(symbol); - if (!aliasedSymbol || aliasedSymbol.escapedName === 'unknown') { - return undefined; - } - return !(aliasedSymbol.flags & typescript_1.SymbolFlags.Value); -} -/** - * Inserts "type" into an export. - * - * Example: - * - * export type { Foo } from 'foo'; - * ^^^^ - */ -function* fixExportInsertType(fixer, sourceCode, node) { - const exportToken = util.nullThrows(sourceCode.getFirstToken(node), util.NullThrowsReasons.MissingToken('export', node.type)); - yield fixer.insertTextAfter(exportToken, ' type'); - for (const specifier of node.specifiers) { - if (specifier.exportKind === 'type') { - const kindToken = util.nullThrows(sourceCode.getFirstToken(specifier), util.NullThrowsReasons.MissingToken('export', specifier.type)); - const firstTokenAfter = util.nullThrows(sourceCode.getTokenAfter(kindToken, { - includeComments: true, - }), 'Missing token following the export kind.'); - yield fixer.removeRange([kindToken.range[0], firstTokenAfter.range[0]]); - } - } -} -/** - * Separates the exports which mismatch the kind of export the given - * node represents. For example, a type export's named specifiers which - * represent values will be inserted in a separate `export` statement. - */ -function* fixSeparateNamedExports(fixer, sourceCode, report) { - const { node, typeBasedSpecifiers, inlineTypeSpecifiers, valueSpecifiers } = report; - const typeSpecifiers = typeBasedSpecifiers.concat(inlineTypeSpecifiers); - const source = getSourceFromExport(node); - const specifierNames = typeSpecifiers.map(getSpecifierText).join(', '); - const exportToken = util.nullThrows(sourceCode.getFirstToken(node), util.NullThrowsReasons.MissingToken('export', node.type)); - // Filter the bad exports from the current line. - const filteredSpecifierNames = valueSpecifiers - .map(getSpecifierText) - .join(', '); - const openToken = util.nullThrows(sourceCode.getFirstToken(node, util.isOpeningBraceToken), util.NullThrowsReasons.MissingToken('{', node.type)); - const closeToken = util.nullThrows(sourceCode.getLastToken(node, util.isClosingBraceToken), util.NullThrowsReasons.MissingToken('}', node.type)); - // Remove exports from the current line which we're going to re-insert. - yield fixer.replaceTextRange([openToken.range[1], closeToken.range[0]], ` ${filteredSpecifierNames} `); - // Insert the bad exports into a new export line above. - yield fixer.insertTextBefore(exportToken, `export type { ${specifierNames} }${source ? ` from '${source}'` : ''};\n`); -} -function* fixAddTypeSpecifierToNamedExports(fixer, report) { - if (report.node.exportKind === 'type') { - return; - } - for (const specifier of report.typeBasedSpecifiers) { - yield fixer.insertTextBefore(specifier, 'type '); - } -} -/** - * Returns the source of the export, or undefined if the named export has no source. - */ -function getSourceFromExport(node) { - var _a; - if (((_a = node.source) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.Literal && - typeof node.source.value === 'string') { - return node.source.value; - } - return undefined; -} -/** - * Returns the specifier text for the export. If it is aliased, we take care to return - * the proper formatting. - */ -function getSpecifierText(specifier) { - return `${specifier.local.name}${specifier.exported.name !== specifier.local.name - ? ` as ${specifier.exported.name}` - : ''}`; -} -//# sourceMappingURL=consistent-type-exports.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js.map deleted file mode 100644 index 1b272da5..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"consistent-type-exports.js","sourceRoot":"","sources":["../../src/rules/consistent-type-exports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAKA,oDAA0D;AAC1D,2CAAyC;AAEzC,8CAAgC;AA2BhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;YACvD,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,aAAa,EACX,2EAA2E;YAE7E,kBAAkB,EAChB,wFAAwF;YAC1F,uBAAuB,EACrB,yFAAyF;SAC5F;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,sCAAsC,EAAE;wBACtC,IAAI,EAAE,SAAS;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SAAS,CAAC,KAAK,CAAC,IAAI,GAC5B,SAAS,CAAC,QAAQ,CAAC,IAAI,KAAK,SAAS,CAAC,KAAK,CAAC,IAAI;QAC9C,CAAC,CAAC,OAAO,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE;QAClC,CAAC,CAAC,EACN,EAAE,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js deleted file mode 100644 index 1844dc32..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js +++ /dev/null @@ -1,644 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'consistent-type-imports', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce consistent usage of type imports', - recommended: false, - }, - messages: { - typeOverValue: 'All imports in the declaration are only used as types. Use `import type`.', - someImportsAreOnlyTypes: 'Imports {{typeImports}} are only used as types.', - aImportIsOnlyTypes: 'Import {{typeImports}} is only used as types.', - someImportsInDecoMeta: 'Type imports {{typeImports}} are used by decorator metadata.', - aImportInDecoMeta: 'Type import {{typeImports}} is used by decorator metadata.', - valueOverType: 'Use an `import` instead of an `import type`.', - noImportTypeAnnotations: '`import()` type annotations are forbidden.', - }, - schema: [ - { - type: 'object', - properties: { - prefer: { - enum: ['type-imports', 'no-type-imports'], - }, - disallowTypeAnnotations: { - type: 'boolean', - }, - fixStyle: { - enum: ['separate-type-imports', 'inline-type-imports'], - }, - }, - additionalProperties: false, - }, - ], - fixable: 'code', - }, - defaultOptions: [ - { - prefer: 'type-imports', - disallowTypeAnnotations: true, - fixStyle: 'separate-type-imports', - }, - ], - create(context, [option]) { - var _a, _b; - const prefer = (_a = option.prefer) !== null && _a !== void 0 ? _a : 'type-imports'; - const disallowTypeAnnotations = option.disallowTypeAnnotations !== false; - const fixStyle = (_b = option.fixStyle) !== null && _b !== void 0 ? _b : 'separate-type-imports'; - const sourceCode = context.getSourceCode(); - const sourceImportsMap = {}; - return Object.assign(Object.assign({}, (prefer === 'type-imports' - ? { - // prefer type imports - ImportDeclaration(node) { - var _a; - const source = node.source.value; - // sourceImports is the object containing all the specifics for a particular import source, type or value - const sourceImports = (_a = sourceImportsMap[source]) !== null && _a !== void 0 ? _a : (sourceImportsMap[source] = { - source, - reportValueImports: [], - typeOnlyNamedImport: null, - valueOnlyNamedImport: null, - valueImport: null, // if only value imports - }); - if (node.importKind === 'type') { - if (!sourceImports.typeOnlyNamedImport && - node.specifiers.every(specifier => specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier)) { - // definitely import type { TypeX } - sourceImports.typeOnlyNamedImport = node; - } - } - else { - if (!sourceImports.valueOnlyNamedImport && - node.specifiers.every(specifier => specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier)) { - sourceImports.valueOnlyNamedImport = node; - sourceImports.valueImport = node; - } - else if (!sourceImports.valueImport && - node.specifiers.some(specifier => specifier.type === utils_1.AST_NODE_TYPES.ImportDefaultSpecifier)) { - sourceImports.valueImport = node; - } - } - const typeSpecifiers = []; - const inlineTypeSpecifiers = []; - const valueSpecifiers = []; - const unusedSpecifiers = []; - for (const specifier of node.specifiers) { - if (specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier && - specifier.importKind === 'type') { - inlineTypeSpecifiers.push(specifier); - continue; - } - const [variable] = context.getDeclaredVariables(specifier); - if (variable.references.length === 0) { - unusedSpecifiers.push(specifier); - } - else { - const onlyHasTypeReferences = variable.references.every(ref => { - var _a, _b; - /** - * keep origin import kind when export - * export { Type } - * export default Type; - */ - if (((_a = ref.identifier.parent) === null || _a === void 0 ? void 0 : _a.type) === - utils_1.AST_NODE_TYPES.ExportSpecifier || - ((_b = ref.identifier.parent) === null || _b === void 0 ? void 0 : _b.type) === - utils_1.AST_NODE_TYPES.ExportDefaultDeclaration) { - if (ref.isValueReference && ref.isTypeReference) { - return node.importKind === 'type'; - } - } - if (ref.isValueReference) { - let parent = ref.identifier.parent; - let child = ref.identifier; - while (parent) { - switch (parent.type) { - // CASE 1: - // `type T = typeof foo` will create a value reference because "foo" must be a value type - // however this value reference is safe to use with type-only imports - case utils_1.AST_NODE_TYPES.TSTypeQuery: - return true; - case utils_1.AST_NODE_TYPES.TSQualifiedName: - // TSTypeQuery must have a TSESTree.EntityName as its child, so we can filter here and break early - if (parent.left !== child) { - return false; - } - child = parent; - parent = parent.parent; - continue; - // END CASE 1 - ////////////// - // CASE 2: - // `type T = { [foo]: string }` will create a value reference because "foo" must be a value type - // however this value reference is safe to use with type-only imports. - // Also this is represented as a non-type AST - hence it uses MemberExpression - case utils_1.AST_NODE_TYPES.TSPropertySignature: - return parent.key === child; - case utils_1.AST_NODE_TYPES.MemberExpression: - if (parent.object !== child) { - return false; - } - child = parent; - parent = parent.parent; - continue; - // END CASE 2 - default: - return false; - } - } - } - return ref.isTypeReference; - }); - if (onlyHasTypeReferences) { - typeSpecifiers.push(specifier); - } - else { - valueSpecifiers.push(specifier); - } - } - } - if ((node.importKind === 'value' && typeSpecifiers.length) || - (node.importKind === 'type' && valueSpecifiers.length)) { - sourceImports.reportValueImports.push({ - node, - typeSpecifiers, - valueSpecifiers, - unusedSpecifiers, - inlineTypeSpecifiers, - }); - } - }, - 'Program:exit'() { - for (const sourceImports of Object.values(sourceImportsMap)) { - if (sourceImports.reportValueImports.length === 0) { - // nothing to fix. value specifiers and type specifiers are correctly written - continue; - } - for (const report of sourceImports.reportValueImports) { - if (report.valueSpecifiers.length === 0 && - report.unusedSpecifiers.length === 0 && - report.node.importKind !== 'type') { - context.report({ - node: report.node, - messageId: 'typeOverValue', - *fix(fixer) { - yield* fixToTypeImportDeclaration(fixer, report, sourceImports); - }, - }); - } - else { - const isTypeImport = report.node.importKind === 'type'; - // we have a mixed type/value import or just value imports, so we need to split them out into multiple imports if separate-type-imports is configured - const importNames = (isTypeImport - ? report.valueSpecifiers // import type { A } from 'roo'; // WHERE A is used in value position - : report.typeSpecifiers) // import { A, B } from 'roo'; // WHERE A is used in type position and B is in value position - .map(specifier => `"${specifier.local.name}"`); - const message = (() => { - const typeImports = util.formatWordList(importNames); - if (importNames.length === 1) { - if (isTypeImport) { - return { - messageId: 'aImportInDecoMeta', - data: { typeImports }, - }; - } - else { - return { - messageId: 'aImportIsOnlyTypes', - data: { typeImports }, - }; - } - } - else { - if (isTypeImport) { - return { - messageId: 'someImportsInDecoMeta', - data: { typeImports }, // typeImports are all the value specifiers that are in the type position - }; - } - else { - return { - messageId: 'someImportsAreOnlyTypes', - data: { typeImports }, // typeImports are all the type specifiers in the value position - }; - } - } - })(); - context.report(Object.assign(Object.assign({ node: report.node }, message), { *fix(fixer) { - if (isTypeImport) { - // take all the valueSpecifiers and put them on a new line - yield* fixToValueImportDeclaration(fixer, report, sourceImports); - } - else { - // take all the typeSpecifiers and put them on a new line - yield* fixToTypeImportDeclaration(fixer, report, sourceImports); - } - } })); - } - } - } - }, - } - : { - // prefer no type imports - 'ImportDeclaration[importKind = "type"]'(node) { - context.report({ - node, - messageId: 'valueOverType', - fix(fixer) { - return fixRemoveTypeSpecifierFromImportDeclaration(fixer, node); - }, - }); - }, - 'ImportSpecifier[importKind = "type"]'(node) { - context.report({ - node, - messageId: 'valueOverType', - fix(fixer) { - return fixRemoveTypeSpecifierFromImportSpecifier(fixer, node); - }, - }); - }, - })), (disallowTypeAnnotations - ? { - // disallow `import()` type - TSImportType(node) { - context.report({ - node, - messageId: 'noImportTypeAnnotations', - }); - }, - } - : {})); - function classifySpecifier(node) { - var _a; - const defaultSpecifier = node.specifiers[0].type === utils_1.AST_NODE_TYPES.ImportDefaultSpecifier - ? node.specifiers[0] - : null; - const namespaceSpecifier = (_a = node.specifiers.find((specifier) => specifier.type === utils_1.AST_NODE_TYPES.ImportNamespaceSpecifier)) !== null && _a !== void 0 ? _a : null; - const namedSpecifiers = node.specifiers.filter((specifier) => specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier); - return { - defaultSpecifier, - namespaceSpecifier, - namedSpecifiers, - }; - } - /** - * Returns information for fixing named specifiers, type or value - */ - function getFixesNamedSpecifiers(fixer, node, subsetNamedSpecifiers, allNamedSpecifiers) { - if (allNamedSpecifiers.length === 0) { - return { - typeNamedSpecifiersText: '', - removeTypeNamedSpecifiers: [], - }; - } - const typeNamedSpecifiersTexts = []; - const removeTypeNamedSpecifiers = []; - if (subsetNamedSpecifiers.length === allNamedSpecifiers.length) { - // import Foo, {Type1, Type2} from 'foo' - // import DefType, {Type1, Type2} from 'foo' - const openingBraceToken = util.nullThrows(sourceCode.getTokenBefore(subsetNamedSpecifiers[0], util.isOpeningBraceToken), util.NullThrowsReasons.MissingToken('{', node.type)); - const commaToken = util.nullThrows(sourceCode.getTokenBefore(openingBraceToken, util.isCommaToken), util.NullThrowsReasons.MissingToken(',', node.type)); - const closingBraceToken = util.nullThrows(sourceCode.getFirstTokenBetween(openingBraceToken, node.source, util.isClosingBraceToken), util.NullThrowsReasons.MissingToken('}', node.type)); - // import DefType, {...} from 'foo' - // ^^^^^^^ remove - removeTypeNamedSpecifiers.push(fixer.removeRange([commaToken.range[0], closingBraceToken.range[1]])); - typeNamedSpecifiersTexts.push(sourceCode.text.slice(openingBraceToken.range[1], closingBraceToken.range[0])); - } - else { - const namedSpecifierGroups = []; - let group = []; - for (const namedSpecifier of allNamedSpecifiers) { - if (subsetNamedSpecifiers.includes(namedSpecifier)) { - group.push(namedSpecifier); - } - else if (group.length) { - namedSpecifierGroups.push(group); - group = []; - } - } - if (group.length) { - namedSpecifierGroups.push(group); - } - for (const namedSpecifiers of namedSpecifierGroups) { - const { removeRange, textRange } = getNamedSpecifierRanges(namedSpecifiers, allNamedSpecifiers); - removeTypeNamedSpecifiers.push(fixer.removeRange(removeRange)); - typeNamedSpecifiersTexts.push(sourceCode.text.slice(...textRange)); - } - } - return { - typeNamedSpecifiersText: typeNamedSpecifiersTexts.join(','), - removeTypeNamedSpecifiers, - }; - } - /** - * Returns ranges for fixing named specifier. - */ - function getNamedSpecifierRanges(namedSpecifierGroup, allNamedSpecifiers) { - const first = namedSpecifierGroup[0]; - const last = namedSpecifierGroup[namedSpecifierGroup.length - 1]; - const removeRange = [first.range[0], last.range[1]]; - const textRange = [...removeRange]; - const before = sourceCode.getTokenBefore(first); - textRange[0] = before.range[1]; - if (util.isCommaToken(before)) { - removeRange[0] = before.range[0]; - } - else { - removeRange[0] = before.range[1]; - } - const isFirst = allNamedSpecifiers[0] === first; - const isLast = allNamedSpecifiers[allNamedSpecifiers.length - 1] === last; - const after = sourceCode.getTokenAfter(last); - textRange[1] = after.range[0]; - if (isFirst || isLast) { - if (util.isCommaToken(after)) { - removeRange[1] = after.range[1]; - } - } - return { - textRange, - removeRange, - }; - } - /** - * insert specifiers to named import node. - * e.g. - * import type { Already, Type1, Type2 } from 'foo' - * ^^^^^^^^^^^^^ insert - */ - function fixInsertNamedSpecifiersInNamedSpecifierList(fixer, target, insertText) { - const closingBraceToken = util.nullThrows(sourceCode.getFirstTokenBetween(sourceCode.getFirstToken(target), target.source, util.isClosingBraceToken), util.NullThrowsReasons.MissingToken('}', target.type)); - const before = sourceCode.getTokenBefore(closingBraceToken); - if (!util.isCommaToken(before) && !util.isOpeningBraceToken(before)) { - insertText = `,${insertText}`; - } - return fixer.insertTextBefore(closingBraceToken, insertText); - } - /** - * insert type keyword to named import node. - * e.g. - * import ADefault, { Already, type Type1, type Type2 } from 'foo' - * ^^^^ insert - */ - function* fixInsertTypeKeywordInNamedSpecifierList(fixer, typeSpecifiers) { - for (const spec of typeSpecifiers) { - const insertText = sourceCode.text.slice(...spec.range); - yield fixer.replaceTextRange(spec.range, `type ${insertText}`); - } - } - function* fixInlineTypeImportDeclaration(fixer, report, sourceImports) { - const { node } = report; - // For a value import, will only add an inline type to named specifiers - const { namedSpecifiers } = classifySpecifier(node); - const typeNamedSpecifiers = namedSpecifiers.filter(specifier => report.typeSpecifiers.includes(specifier)); - if (sourceImports.valueImport) { - // add import named type specifiers to its value import - // import ValueA, { type A } - // ^^^^ insert - const { namedSpecifiers: valueImportNamedSpecifiers } = classifySpecifier(sourceImports.valueImport); - if (sourceImports.valueOnlyNamedImport || - valueImportNamedSpecifiers.length) { - yield* fixInsertTypeKeywordInNamedSpecifierList(fixer, typeNamedSpecifiers); - } - } - } - function* fixToTypeImportDeclaration(fixer, report, sourceImports) { - const { node } = report; - const { defaultSpecifier, namespaceSpecifier, namedSpecifiers } = classifySpecifier(node); - if (namespaceSpecifier && !defaultSpecifier) { - // import * as types from 'foo' - yield* fixInsertTypeSpecifierForImportDeclaration(fixer, node, false); - return; - } - else if (defaultSpecifier) { - if (report.typeSpecifiers.includes(defaultSpecifier) && - namedSpecifiers.length === 0 && - !namespaceSpecifier) { - // import Type from 'foo' - yield* fixInsertTypeSpecifierForImportDeclaration(fixer, node, true); - return; - } - else if (fixStyle === 'inline-type-imports' && - !report.typeSpecifiers.includes(defaultSpecifier) && - namedSpecifiers.length > 0 && - !namespaceSpecifier) { - // if there is a default specifier but it isn't a type specifier, then just add the inline type modifier to the named specifiers - // import AValue, {BValue, Type1, Type2} from 'foo' - yield* fixInlineTypeImportDeclaration(fixer, report, sourceImports); - return; - } - } - else if (!namespaceSpecifier) { - if (fixStyle === 'inline-type-imports' && - namedSpecifiers.some(specifier => report.typeSpecifiers.includes(specifier))) { - // import {AValue, Type1, Type2} from 'foo' - yield* fixInlineTypeImportDeclaration(fixer, report, sourceImports); - return; - } - else if (namedSpecifiers.every(specifier => report.typeSpecifiers.includes(specifier))) { - // import {Type1, Type2} from 'foo' - yield* fixInsertTypeSpecifierForImportDeclaration(fixer, node, false); - return; - } - } - const typeNamedSpecifiers = namedSpecifiers.filter(specifier => report.typeSpecifiers.includes(specifier)); - const fixesNamedSpecifiers = getFixesNamedSpecifiers(fixer, node, typeNamedSpecifiers, namedSpecifiers); - const afterFixes = []; - if (typeNamedSpecifiers.length) { - if (sourceImports.typeOnlyNamedImport) { - const insertTypeNamedSpecifiers = fixInsertNamedSpecifiersInNamedSpecifierList(fixer, sourceImports.typeOnlyNamedImport, fixesNamedSpecifiers.typeNamedSpecifiersText); - if (sourceImports.typeOnlyNamedImport.range[1] <= node.range[0]) { - yield insertTypeNamedSpecifiers; - } - else { - afterFixes.push(insertTypeNamedSpecifiers); - } - } - else { - // The import is both default and named. Insert named on new line because can't mix default type import and named type imports - if (fixStyle === 'inline-type-imports') { - yield fixer.insertTextBefore(node, `import {${typeNamedSpecifiers - .map(spec => { - const insertText = sourceCode.text.slice(...spec.range); - return `type ${insertText}`; - }) - .join(', ')}} from ${sourceCode.getText(node.source)};\n`); - } - else { - yield fixer.insertTextBefore(node, `import type {${fixesNamedSpecifiers.typeNamedSpecifiersText}} from ${sourceCode.getText(node.source)};\n`); - } - } - } - const fixesRemoveTypeNamespaceSpecifier = []; - if (namespaceSpecifier && - report.typeSpecifiers.includes(namespaceSpecifier)) { - // import Foo, * as Type from 'foo' - // import DefType, * as Type from 'foo' - // import DefType, * as Type from 'foo' - const commaToken = util.nullThrows(sourceCode.getTokenBefore(namespaceSpecifier, util.isCommaToken), util.NullThrowsReasons.MissingToken(',', node.type)); - // import Def, * as Ns from 'foo' - // ^^^^^^^^^ remove - fixesRemoveTypeNamespaceSpecifier.push(fixer.removeRange([commaToken.range[0], namespaceSpecifier.range[1]])); - // import type * as Ns from 'foo' - // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ insert - yield fixer.insertTextBefore(node, `import type ${sourceCode.getText(namespaceSpecifier)} from ${sourceCode.getText(node.source)};\n`); - } - if (defaultSpecifier && - report.typeSpecifiers.includes(defaultSpecifier)) { - if (report.typeSpecifiers.length === node.specifiers.length) { - const importToken = util.nullThrows(sourceCode.getFirstToken(node, util.isImportKeyword), util.NullThrowsReasons.MissingToken('import', node.type)); - // import type Type from 'foo' - // ^^^^ insert - yield fixer.insertTextAfter(importToken, ' type'); - } - else { - const commaToken = util.nullThrows(sourceCode.getTokenAfter(defaultSpecifier, util.isCommaToken), util.NullThrowsReasons.MissingToken(',', defaultSpecifier.type)); - // import Type , {...} from 'foo' - // ^^^^^ pick - const defaultText = sourceCode.text - .slice(defaultSpecifier.range[0], commaToken.range[0]) - .trim(); - yield fixer.insertTextBefore(node, `import type ${defaultText} from ${sourceCode.getText(node.source)};\n`); - const afterToken = util.nullThrows(sourceCode.getTokenAfter(commaToken, { includeComments: true }), util.NullThrowsReasons.MissingToken('any token', node.type)); - // import Type , {...} from 'foo' - // ^^^^^^^ remove - yield fixer.removeRange([ - defaultSpecifier.range[0], - afterToken.range[0], - ]); - } - } - yield* fixesNamedSpecifiers.removeTypeNamedSpecifiers; - yield* fixesRemoveTypeNamespaceSpecifier; - yield* afterFixes; - } - function* fixInsertTypeSpecifierForImportDeclaration(fixer, node, isDefaultImport) { - // import type Foo from 'foo' - // ^^^^^ insert - const importToken = util.nullThrows(sourceCode.getFirstToken(node, util.isImportKeyword), util.NullThrowsReasons.MissingToken('import', node.type)); - yield fixer.insertTextAfter(importToken, ' type'); - if (isDefaultImport) { - // Has default import - const openingBraceToken = sourceCode.getFirstTokenBetween(importToken, node.source, util.isOpeningBraceToken); - if (openingBraceToken) { - // Only braces. e.g. import Foo, {} from 'foo' - const commaToken = util.nullThrows(sourceCode.getTokenBefore(openingBraceToken, util.isCommaToken), util.NullThrowsReasons.MissingToken(',', node.type)); - const closingBraceToken = util.nullThrows(sourceCode.getFirstTokenBetween(openingBraceToken, node.source, util.isClosingBraceToken), util.NullThrowsReasons.MissingToken('}', node.type)); - // import type Foo, {} from 'foo' - // ^^ remove - yield fixer.removeRange([ - commaToken.range[0], - closingBraceToken.range[1], - ]); - const specifiersText = sourceCode.text.slice(commaToken.range[1], closingBraceToken.range[1]); - if (node.specifiers.length > 1) { - yield fixer.insertTextAfter(node, `\nimport type${specifiersText} from ${sourceCode.getText(node.source)};`); - } - } - } - // make sure we don't do anything like `import type {type T} from 'foo';` - for (const specifier of node.specifiers) { - if (specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier && - specifier.importKind === 'type') { - yield* fixRemoveTypeSpecifierFromImportSpecifier(fixer, specifier); - } - } - } - function* fixToValueImportDeclaration(fixer, report, sourceImports) { - const { node } = report; - const { defaultSpecifier, namespaceSpecifier, namedSpecifiers } = classifySpecifier(node); - if (namespaceSpecifier) { - // import type * as types from 'foo' - yield* fixRemoveTypeSpecifierFromImportDeclaration(fixer, node); - return; - } - else if (defaultSpecifier) { - if (report.valueSpecifiers.includes(defaultSpecifier) && - namedSpecifiers.length === 0) { - // import type Type from 'foo' - yield* fixRemoveTypeSpecifierFromImportDeclaration(fixer, node); - return; - } - } - else { - if (namedSpecifiers.every(specifier => report.valueSpecifiers.includes(specifier))) { - // import type {Type1, Type2} from 'foo' - yield* fixRemoveTypeSpecifierFromImportDeclaration(fixer, node); - return; - } - } - // we have some valueSpecifiers intermixed in types that need to be put on their own line - // import type { Type1, A } from 'foo' - // import type { A } from 'foo' - const valueNamedSpecifiers = namedSpecifiers.filter(specifier => report.valueSpecifiers.includes(specifier)); - const fixesNamedSpecifiers = getFixesNamedSpecifiers(fixer, node, valueNamedSpecifiers, namedSpecifiers); - const afterFixes = []; - if (valueNamedSpecifiers.length) { - if (sourceImports.valueOnlyNamedImport) { - const insertTypeNamedSpecifiers = fixInsertNamedSpecifiersInNamedSpecifierList(fixer, sourceImports.valueOnlyNamedImport, fixesNamedSpecifiers.typeNamedSpecifiersText); - if (sourceImports.valueOnlyNamedImport.range[1] <= node.range[0]) { - yield insertTypeNamedSpecifiers; - } - else { - afterFixes.push(insertTypeNamedSpecifiers); - } - } - else { - // some are types. - // Add new value import and later remove those value specifiers from import type - yield fixer.insertTextBefore(node, `import {${fixesNamedSpecifiers.typeNamedSpecifiersText}} from ${sourceCode.getText(node.source)};\n`); - } - } - yield* fixesNamedSpecifiers.removeTypeNamedSpecifiers; - yield* afterFixes; - } - function* fixRemoveTypeSpecifierFromImportDeclaration(fixer, node) { - var _a, _b; - // import type Foo from 'foo' - // ^^^^ remove - const importToken = util.nullThrows(sourceCode.getFirstToken(node, util.isImportKeyword), util.NullThrowsReasons.MissingToken('import', node.type)); - const typeToken = util.nullThrows(sourceCode.getFirstTokenBetween(importToken, (_b = (_a = node.specifiers[0]) === null || _a === void 0 ? void 0 : _a.local) !== null && _b !== void 0 ? _b : node.source, util.isTypeKeyword), util.NullThrowsReasons.MissingToken('type', node.type)); - const afterToken = util.nullThrows(sourceCode.getTokenAfter(typeToken, { includeComments: true }), util.NullThrowsReasons.MissingToken('any token', node.type)); - yield fixer.removeRange([typeToken.range[0], afterToken.range[0]]); - } - function* fixRemoveTypeSpecifierFromImportSpecifier(fixer, node) { - // import { type Foo } from 'foo' - // ^^^^ remove - const typeToken = util.nullThrows(sourceCode.getFirstToken(node, util.isTypeKeyword), util.NullThrowsReasons.MissingToken('type', node.type)); - const afterToken = util.nullThrows(sourceCode.getTokenAfter(typeToken, { includeComments: true }), util.NullThrowsReasons.MissingToken('any token', node.type)); - yield fixer.removeRange([typeToken.range[0], afterToken.range[0]]); - } - }, -}); -//# sourceMappingURL=consistent-type-imports.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map deleted file mode 100644 index f38bef8c..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"consistent-type-imports.js","sourceRoot":"","sources":["../../src/rules/consistent-type-imports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAuChC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;YACvD,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,aAAa,EACX,2EAA2E;YAC7E,uBAAuB,EACrB,iDAAiD;YACnD,kBAAkB,EAAE,+CAA+C;YACnE,qBAAqB,EACnB,8DAA8D;YAChE,iBAAiB,EACf,4DAA4D;YAC9D,aAAa,EAAE,8CAA8C;YAC7D,uBAAuB,EAAE,4CAA4C;SACtE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,MAAM,EAAE;wBACN,IAAI,EAAE,CAAC,cAAc,EAAE,iBAAiB,CAAC;qBAC1C;oBACD,uBAAuB,EAAE;wBACvB,IAAI,EAAE,SAAS;qBAChB;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,CAAC,uBAAuB,EAAE,qBAAqB,CAAC;qBACvD;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,OAAO,EAAE,MAAM;KAChB;IAED,cAAc,EAAE;QACd;YACE,MAAM,EAAE,cAAc;YACtB,uBAAuB,EAAE,IAAI;YAC7B,QAAQ,EAAE,uBAAuB;SAClC;KACF;IAED,MAAM,CAAC,O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MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CACvD,CAAC;YACF,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAChC,UAAU,CAAC,aAAa,CAAC,SAAS,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,EAC9D,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,CAC5D,CAAC;YACF,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACrE,CAAC;QAED,QAAQ,CAAC,CAAC,yCAAyC,CACjD,KAAyB,EACzB,IAA8B;YAE9B,iCAAiC;YACjC,uBAAuB;YACvB,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAC/B,UAAU,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,EAClD,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CACvD,CAAC;YACF,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAChC,UAAU,CAAC,aAAa,CAAC,SAAS,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,EAC9D,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,CAC5D,CAAC;YACF,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACrE,CAAC;IACH,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js deleted file mode 100644 index 1198105e..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'default-param-last', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce default parameters to be last', - recommended: false, - extendsBaseRule: true, - }, - schema: [], - messages: { - shouldBeLast: 'Default parameters should be last.', - }, - }, - defaultOptions: [], - create(context) { - /** - * checks if node is optional parameter - * @param node the node to be evaluated - * @private - */ - function isOptionalParam(node) { - return 'optional' in node && node.optional === true; - } - /** - * checks if node is plain parameter - * @param node the node to be evaluated - * @private - */ - function isPlainParam(node) { - return !(node.type === utils_1.AST_NODE_TYPES.AssignmentPattern || - node.type === utils_1.AST_NODE_TYPES.RestElement || - isOptionalParam(node)); - } - function checkDefaultParamLast(node) { - let hasSeenPlainParam = false; - for (let i = node.params.length - 1; i >= 0; i--) { - const current = node.params[i]; - const param = current.type === utils_1.AST_NODE_TYPES.TSParameterProperty - ? current.parameter - : current; - if (isPlainParam(param)) { - hasSeenPlainParam = true; - continue; - } - if (hasSeenPlainParam && - (isOptionalParam(param) || - param.type === utils_1.AST_NODE_TYPES.AssignmentPattern)) { - context.report({ node: current, messageId: 'shouldBeLast' }); - } - } - } - return { - ArrowFunctionExpression: checkDefaultParamLast, - FunctionDeclaration: checkDefaultParamLast, - FunctionExpression: checkDefaultParamLast, - }; - }, -}); -//# sourceMappingURL=default-param-last.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js.map deleted file mode 100644 index 79a7a758..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/default-param-last.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"default-param-last.js","sourceRoot":"","sources":["../../src/rules/default-param-last.ts"],"names":[],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;oBACjB,CAAC,eAAe,CAAC,KAAK,CAAC;wBACrB,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB,CAAC,EAClD;oBACA,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,CAAC;iBAC9D;aACF;QACH,CAAC;QAED,OAAO;YACL,uBAAuB,EAAE,qBAAqB;YAC9C,mBAAmB,EAAE,qBAAqB;YAC1C,kBAAkB,EAAE,qBAAqB;SAC1C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js deleted file mode 100644 index 80c9af95..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js +++ /dev/null @@ -1,125 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const tsutils = __importStar(require("tsutils")); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('dot-notation'); -exports.default = (0, util_1.createRule)({ - name: 'dot-notation', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce dot notation whenever possible', - recommended: 'strict', - extendsBaseRule: true, - requiresTypeChecking: true, - }, - schema: [ - { - type: 'object', - properties: { - allowKeywords: { - type: 'boolean', - default: true, - }, - allowPattern: { - type: 'string', - default: '', - }, - allowPrivateClassPropertyAccess: { - type: 'boolean', - default: false, - }, - allowProtectedClassPropertyAccess: { - type: 'boolean', - default: false, - }, - allowIndexSignaturePropertyAccess: { - type: 'boolean', - default: false, - }, - }, - additionalProperties: false, - }, - ], - fixable: baseRule.meta.fixable, - hasSuggestions: baseRule.meta.hasSuggestions, - messages: baseRule.meta.messages, - }, - defaultOptions: [ - { - allowPrivateClassPropertyAccess: false, - allowProtectedClassPropertyAccess: false, - allowIndexSignaturePropertyAccess: false, - allowKeywords: true, - allowPattern: '', - }, - ], - create(context, [options]) { - var _a; - const rules = baseRule.create(context); - const { program, esTreeNodeToTSNodeMap } = (0, util_1.getParserServices)(context); - const typeChecker = program.getTypeChecker(); - const allowPrivateClassPropertyAccess = options.allowPrivateClassPropertyAccess; - const allowProtectedClassPropertyAccess = options.allowProtectedClassPropertyAccess; - const allowIndexSignaturePropertyAccess = ((_a = options.allowIndexSignaturePropertyAccess) !== null && _a !== void 0 ? _a : false) || - tsutils.isCompilerOptionEnabled(program.getCompilerOptions(), - // @ts-expect-error - TS is refining the type to never for some reason - 'noPropertyAccessFromIndexSignature'); - return { - MemberExpression(node) { - var _a, _b; - if ((allowPrivateClassPropertyAccess || - allowProtectedClassPropertyAccess || - allowIndexSignaturePropertyAccess) && - node.computed) { - // for perf reasons - only fetch symbols if we have to - const propertySymbol = typeChecker.getSymbolAtLocation(esTreeNodeToTSNodeMap.get(node.property)); - const modifierKind = (_b = (0, util_1.getModifiers)((_a = propertySymbol === null || propertySymbol === void 0 ? void 0 : propertySymbol.getDeclarations()) === null || _a === void 0 ? void 0 : _a[0])) === null || _b === void 0 ? void 0 : _b[0].kind; - if ((allowPrivateClassPropertyAccess && - modifierKind === ts.SyntaxKind.PrivateKeyword) || - (allowProtectedClassPropertyAccess && - modifierKind === ts.SyntaxKind.ProtectedKeyword)) { - return; - } - if (propertySymbol === undefined && - allowIndexSignaturePropertyAccess) { - const objectType = typeChecker.getTypeAtLocation(esTreeNodeToTSNodeMap.get(node.object)); - const indexType = objectType - .getNonNullableType() - .getStringIndexType(); - if (indexType !== undefined) { - return; - } - } - } - rules.MemberExpression(node); - }, - }; - }, -}); -//# sourceMappingURL=dot-notation.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map deleted file mode 100644 index cfca0284..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/dot-notation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dot-notation.js","sourceRoot":"","sources":["../../src/rules/dot-notation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,iDAAmC;AACnC,+CAAiC;AAMjC,kCAAsE;AACtE,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,cAAc,CAAC,CAAC;AAKnD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,wCAAwC;YACrD,WAAW,EAAE,QAAQ;YACrB,eAAe,EAAE,IAAI;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,aAAa,EAAE;wBACb,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,IAAI;qBACd;oBACD,YAAY,EAAE;wBACZ,IAAI,EAAE,Q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AAC,+BAA+B;oBAC9B,iCAAiC;oBACjC,iCAAiC,CAAC;oBACpC,IAAI,CAAC,QAAQ,EACb;oBACA,sDAAsD;oBACtD,MAAM,cAAc,GAAG,WAAW,CAAC,mBAAmB,CACpD,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CACzC,CAAC;oBACF,MAAM,YAAY,GAAG,MAAA,IAAA,mBAAY,EAC/B,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,eAAe,EAAE,0CAAG,CAAC,CAAC,CACvC,0CAAG,CAAC,EAAE,IAAI,CAAC;oBACZ,IACE,CAAC,+BAA+B;wBAC9B,YAAY,KAAK,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC;wBAChD,CAAC,iCAAiC;4BAChC,YAAY,KAAK,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAClD;wBACA,OAAO;qBACR;oBACD,IACE,cAAc,KAAK,SAAS;wBAC5B,iCAAiC,EACjC;wBACA,MAAM,UAAU,GAAG,WAAW,CAAC,iBAAiB,CAC9C,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CACvC,CAAC;wBACF,MAAM,SAAS,GAAG,UAAU;6BACzB,kBAAkB,EAAE;6BACpB,kBAAkB,EAAE,CAAC;wBACxB,IAAI,SAAS,KAAK,SAAS,EAAE;4BAC3B,OAAO;yBACR;qBACF;iBACF;gBACD,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;YAC/B,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js deleted file mode 100644 index d749878a..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getEnumTypes = void 0; -const tsutils = __importStar(require("tsutils")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../../util")); -/* - * If passed an enum member, returns the type of the parent. Otherwise, - * returns itself. - * - * For example: - * - `Fruit` --> `Fruit` - * - `Fruit.Apple` --> `Fruit` - */ -function getBaseEnumType(typeChecker, type) { - const symbol = type.getSymbol(); - if (!tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.EnumMember)) { - return type; - } - return typeChecker.getTypeAtLocation(symbol.valueDeclaration.parent); -} -/** - * A type can have 0 or more enum types. For example: - * - 123 --> [] - * - {} --> [] - * - Fruit.Apple --> [Fruit] - * - Fruit.Apple | Vegetable.Lettuce --> [Fruit, Vegetable] - * - Fruit.Apple | Vegetable.Lettuce | 123 --> [Fruit, Vegetable] - * - T extends Fruit --> [Fruit] - */ -function getEnumTypes(typeChecker, type) { - return tsutils - .unionTypeParts(type) - .filter(subType => util.isTypeFlagSet(subType, ts.TypeFlags.EnumLiteral)) - .map(type => getBaseEnumType(typeChecker, type)); -} -exports.getEnumTypes = getEnumTypes; -//# sourceMappingURL=shared.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js.map deleted file mode 100644 index fbd8a922..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/enum-utils/shared.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/rules/enum-utils/shared.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAmC;AACnC,+CAAiC;AAEjC,iDAAmC;AAEnC;;;;;;;GAOG;AACH,SAAS,eAAe,CAAC,WAA2B,EAAE,IAAa;IACjE,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAG,CAAC;IACjC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE;QAC/D,OAAO,IAAI,CAAC;KACb;IAED,OAAO,WAAW,CAAC,iBAAiB,CAAC,MAAM,CAAC,gBAAiB,CAAC,MAAM,CAAC,CAAC;AACxE,CAAC;AAED;;;;;;;;GAQG;AACH,SAAgB,YAAY,CAC1B,WAA2B,EAC3B,IAAa;IAEb,OAAO,OAAO;SACX,cAAc,CAAC,IAAI,CAAC;SACpB,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE,EAAE,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;SACxE,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,eAAe,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC;AACrD,CAAC;AARD,oCAQC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js deleted file mode 100644 index e21ae35c..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js +++ /dev/null @@ -1,189 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const explicitReturnTypeUtils_1 = require("../util/explicitReturnTypeUtils"); -exports.default = util.createRule({ - name: 'explicit-function-return-type', - meta: { - type: 'problem', - docs: { - description: 'Require explicit return types on functions and class methods', - recommended: false, - }, - messages: { - missingReturnType: 'Missing return type on function.', - }, - schema: [ - { - type: 'object', - properties: { - allowConciseArrowFunctionExpressionsStartingWithVoid: { - description: 'Whether to allow arrow functions that start with the `void` keyword.', - type: 'boolean', - }, - allowExpressions: { - description: 'Whether to ignore function expressions (functions which are not part of a declaration).', - type: 'boolean', - }, - allowHigherOrderFunctions: { - description: 'Whether to ignore functions immediately returning another function expression.', - type: 'boolean', - }, - allowTypedFunctionExpressions: { - description: 'Whether to ignore type annotations on the variable of function expressions.', - type: 'boolean', - }, - allowDirectConstAssertionInArrowFunctions: { - description: 'Whether to ignore arrow functions immediately returning a `as const` value.', - type: 'boolean', - }, - allowFunctionsWithoutTypeParameters: { - description: "Whether to ignore functions that don't have generic type parameters.", - type: 'boolean', - }, - allowedNames: { - description: 'An array of function/method names that will not have their arguments or return values checked.', - items: { - type: 'string', - }, - type: 'array', - }, - allowIIFEs: { - description: 'Whether to ignore immediately invoked function expressions (IIFEs).', - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - allowExpressions: false, - allowTypedFunctionExpressions: true, - allowHigherOrderFunctions: true, - allowDirectConstAssertionInArrowFunctions: true, - allowConciseArrowFunctionExpressionsStartingWithVoid: false, - allowFunctionsWithoutTypeParameters: false, - allowedNames: [], - allowIIFEs: false, - }, - ], - create(context, [options]) { - const sourceCode = context.getSourceCode(); - function isAllowedFunction(node) { - var _a, _b; - if (options.allowFunctionsWithoutTypeParameters && !node.typeParameters) { - return true; - } - if (options.allowIIFEs && isIIFE(node)) { - return true; - } - if (!((_a = options.allowedNames) === null || _a === void 0 ? void 0 : _a.length)) { - return false; - } - if (node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression || - node.type === utils_1.AST_NODE_TYPES.FunctionExpression) { - const parent = node.parent; - let funcName; - if ((_b = node.id) === null || _b === void 0 ? void 0 : _b.name) { - funcName = node.id.name; - } - else if (parent) { - switch (parent.type) { - case utils_1.AST_NODE_TYPES.VariableDeclarator: { - if (parent.id.type === utils_1.AST_NODE_TYPES.Identifier) { - funcName = parent.id.name; - } - break; - } - case utils_1.AST_NODE_TYPES.MethodDefinition: - case utils_1.AST_NODE_TYPES.PropertyDefinition: - case utils_1.AST_NODE_TYPES.Property: { - if (parent.key.type === utils_1.AST_NODE_TYPES.Identifier && - parent.computed === false) { - funcName = parent.key.name; - } - break; - } - } - } - if (!!funcName && !!options.allowedNames.includes(funcName)) { - return true; - } - } - if (node.type === utils_1.AST_NODE_TYPES.FunctionDeclaration && - node.id && - node.id.type === utils_1.AST_NODE_TYPES.Identifier && - !!options.allowedNames.includes(node.id.name)) { - return true; - } - return false; - } - function isIIFE(node) { - return node.parent.type === utils_1.AST_NODE_TYPES.CallExpression; - } - return { - 'ArrowFunctionExpression, FunctionExpression'(node) { - if (options.allowConciseArrowFunctionExpressionsStartingWithVoid && - node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression && - node.expression && - node.body.type === utils_1.AST_NODE_TYPES.UnaryExpression && - node.body.operator === 'void') { - return; - } - if (isAllowedFunction(node)) { - return; - } - if (options.allowTypedFunctionExpressions && - ((0, explicitReturnTypeUtils_1.isValidFunctionExpressionReturnType)(node, options) || - (0, explicitReturnTypeUtils_1.ancestorHasReturnType)(node))) { - return; - } - (0, explicitReturnTypeUtils_1.checkFunctionReturnType)(node, options, sourceCode, loc => context.report({ - node, - loc, - messageId: 'missingReturnType', - })); - }, - FunctionDeclaration(node) { - if (isAllowedFunction(node)) { - return; - } - if (options.allowTypedFunctionExpressions && node.returnType) { - return; - } - (0, explicitReturnTypeUtils_1.checkFunctionReturnType)(node, options, sourceCode, loc => context.report({ - node, - loc, - messageId: 'missingReturnType', - })); - }, - }; - }, -}); -//# sourceMappingURL=explicit-function-return-type.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map deleted file mode 100644 index 85a25d7a..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-function-return-type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"explicit-function-return-type.js","sourceRoot":"","sources":["../../src/rules/explicit-function-return-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAChC,6EAIyC;AAgBzC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,8DAA8D;YAChE,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,iBAAi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AAmB,CAAC,IAAI;gBACtB,IAAI,iBAAiB,CAAC,IAAI,CAAC,EAAE;oBAC3B,OAAO;iBACR;gBACD,IAAI,OAAO,CAAC,6BAA6B,IAAI,IAAI,CAAC,UAAU,EAAE;oBAC5D,OAAO;iBACR;gBAED,IAAA,iDAAuB,EAAC,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,EAAE,CACvD,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,GAAG;oBACH,SAAS,EAAE,mBAAmB;iBAC/B,CAAC,CACH,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js deleted file mode 100644 index 36d99909..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js +++ /dev/null @@ -1,309 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const accessibilityLevel = { - oneOf: [ - { - const: 'explicit', - description: 'Always require an accessor.', - }, - { - const: 'no-public', - description: 'Require an accessor except when public.', - }, - { - const: 'off', - description: 'Never check whether there is an accessor.', - }, - ], -}; -exports.default = util.createRule({ - name: 'explicit-member-accessibility', - meta: { - hasSuggestions: true, - type: 'problem', - docs: { - description: 'Require explicit accessibility modifiers on class properties and methods', - // too opinionated to be recommended - recommended: false, - }, - fixable: 'code', - messages: { - missingAccessibility: 'Missing accessibility modifier on {{type}} {{name}}.', - unwantedPublicAccessibility: 'Public accessibility modifier on {{type}} {{name}}.', - addExplicitAccessibility: "Add '{{ type }}' accessibility modifier", - }, - schema: { - $defs: { - accessibilityLevel, - }, - prefixItems: [ - { - type: 'object', - properties: { - accessibility: { $ref: '#/$defs/accessibilityLevel' }, - overrides: { - type: 'object', - properties: { - accessors: { $ref: '#/$defs/accessibilityLevel' }, - constructors: { $ref: '#/$defs/accessibilityLevel' }, - methods: { $ref: '#/$defs/accessibilityLevel' }, - properties: { $ref: '#/$defs/accessibilityLevel' }, - parameterProperties: { - $ref: '#/$defs/accessibilityLevel', - }, - }, - additionalProperties: false, - }, - ignoredMethodNames: { - type: 'array', - items: { - type: 'string', - }, - }, - }, - additionalProperties: false, - }, - ], - type: 'array', - }, - }, - defaultOptions: [{ accessibility: 'explicit' }], - create(context, [option]) { - var _a, _b, _c, _d, _e, _f, _g, _h; - const sourceCode = context.getSourceCode(); - const baseCheck = (_a = option.accessibility) !== null && _a !== void 0 ? _a : 'explicit'; - const overrides = (_b = option.overrides) !== null && _b !== void 0 ? _b : {}; - const ctorCheck = (_c = overrides.constructors) !== null && _c !== void 0 ? _c : baseCheck; - const accessorCheck = (_d = overrides.accessors) !== null && _d !== void 0 ? _d : baseCheck; - const methodCheck = (_e = overrides.methods) !== null && _e !== void 0 ? _e : baseCheck; - const propCheck = (_f = overrides.properties) !== null && _f !== void 0 ? _f : baseCheck; - const paramPropCheck = (_g = overrides.parameterProperties) !== null && _g !== void 0 ? _g : baseCheck; - const ignoredMethodNames = new Set((_h = option.ignoredMethodNames) !== null && _h !== void 0 ? _h : []); - /** - * Checks if a method declaration has an accessibility modifier. - * @param methodDefinition The node representing a MethodDefinition. - */ - function checkMethodAccessibilityModifier(methodDefinition) { - if (methodDefinition.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { - return; - } - let nodeType = 'method definition'; - let check = baseCheck; - switch (methodDefinition.kind) { - case 'method': - check = methodCheck; - break; - case 'constructor': - check = ctorCheck; - break; - case 'get': - case 'set': - check = accessorCheck; - nodeType = `${methodDefinition.kind} property accessor`; - break; - } - const { name: methodName } = util.getNameFromMember(methodDefinition, sourceCode); - if (check === 'off' || ignoredMethodNames.has(methodName)) { - return; - } - if (check === 'no-public' && - methodDefinition.accessibility === 'public') { - context.report({ - node: methodDefinition, - messageId: 'unwantedPublicAccessibility', - data: { - type: nodeType, - name: methodName, - }, - fix: getUnwantedPublicAccessibilityFixer(methodDefinition), - }); - } - else if (check === 'explicit' && !methodDefinition.accessibility) { - context.report({ - node: methodDefinition, - messageId: 'missingAccessibility', - data: { - type: nodeType, - name: methodName, - }, - suggest: getMissingAccessibilitySuggestions(methodDefinition), - }); - } - } - /** - * Creates a fixer that removes a "public" keyword with following spaces - */ - function getUnwantedPublicAccessibilityFixer(node) { - return function (fixer) { - const tokens = sourceCode.getTokens(node); - let rangeToRemove; - for (let i = 0; i < tokens.length; i++) { - const token = tokens[i]; - if (token.type === utils_1.AST_TOKEN_TYPES.Keyword && - token.value === 'public') { - const commensAfterPublicKeyword = sourceCode.getCommentsAfter(token); - if (commensAfterPublicKeyword.length) { - // public /* Hi there! */ static foo() - // ^^^^^^^ - rangeToRemove = [ - token.range[0], - commensAfterPublicKeyword[0].range[0], - ]; - break; - } - else { - // public static foo() - // ^^^^^^^ - rangeToRemove = [token.range[0], tokens[i + 1].range[0]]; - break; - } - } - } - return fixer.removeRange(rangeToRemove); - }; - } - /** - * Creates a fixer that adds a "public" keyword with following spaces - */ - function getMissingAccessibilitySuggestions(node) { - function fix(accessibility, fixer) { - var _a; - if ((_a = node === null || node === void 0 ? void 0 : node.decorators) === null || _a === void 0 ? void 0 : _a.length) { - const lastDecorator = node.decorators[node.decorators.length - 1]; - const nextToken = sourceCode.getTokenAfter(lastDecorator); - return fixer.insertTextBefore(nextToken, `${accessibility} `); - } - return fixer.insertTextBefore(node, `${accessibility} `); - } - return [ - { - messageId: 'addExplicitAccessibility', - data: { type: 'public' }, - fix: fixer => fix('public', fixer), - }, - { - messageId: 'addExplicitAccessibility', - data: { type: 'private' }, - fix: fixer => fix('private', fixer), - }, - { - messageId: 'addExplicitAccessibility', - data: { type: 'protected' }, - fix: fixer => fix('protected', fixer), - }, - ]; - } - /** - * Checks if property has an accessibility modifier. - * @param propertyDefinition The node representing a PropertyDefinition. - */ - function checkPropertyAccessibilityModifier(propertyDefinition) { - if (propertyDefinition.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { - return; - } - const nodeType = 'class property'; - const { name: propertyName } = util.getNameFromMember(propertyDefinition, sourceCode); - if (propCheck === 'no-public' && - propertyDefinition.accessibility === 'public') { - context.report({ - node: propertyDefinition, - messageId: 'unwantedPublicAccessibility', - data: { - type: nodeType, - name: propertyName, - }, - fix: getUnwantedPublicAccessibilityFixer(propertyDefinition), - }); - } - else if (propCheck === 'explicit' && - !propertyDefinition.accessibility) { - context.report({ - node: propertyDefinition, - messageId: 'missingAccessibility', - data: { - type: nodeType, - name: propertyName, - }, - suggest: getMissingAccessibilitySuggestions(propertyDefinition), - }); - } - } - /** - * Checks that the parameter property has the desired accessibility modifiers set. - * @param node The node representing a Parameter Property - */ - function checkParameterPropertyAccessibilityModifier(node) { - const nodeType = 'parameter property'; - // HAS to be an identifier or assignment or TSC will throw - if (node.parameter.type !== utils_1.AST_NODE_TYPES.Identifier && - node.parameter.type !== utils_1.AST_NODE_TYPES.AssignmentPattern) { - return; - } - const nodeName = node.parameter.type === utils_1.AST_NODE_TYPES.Identifier - ? node.parameter.name - : // has to be an Identifier or TSC will throw an error - node.parameter.left.name; - switch (paramPropCheck) { - case 'explicit': { - if (!node.accessibility) { - context.report({ - node, - messageId: 'missingAccessibility', - data: { - type: nodeType, - name: nodeName, - }, - suggest: getMissingAccessibilitySuggestions(node), - }); - } - break; - } - case 'no-public': { - if (node.accessibility === 'public' && node.readonly) { - context.report({ - node, - messageId: 'unwantedPublicAccessibility', - data: { - type: nodeType, - name: nodeName, - }, - fix: getUnwantedPublicAccessibilityFixer(node), - }); - } - break; - } - } - } - return { - 'MethodDefinition, TSAbstractMethodDefinition': checkMethodAccessibilityModifier, - 'PropertyDefinition, TSAbstractPropertyDefinition': checkPropertyAccessibilityModifier, - TSParameterProperty: checkParameterPropertyAccessibilityModifier, - }; - }, -}); -//# sourceMappingURL=explicit-member-accessibility.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js.map deleted file mode 100644 index 46d7fb1f..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-member-accessibility.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"explicit-member-accessibility.js","sourceRoot":"","sources":["../../src/rules/explicit-member-accessibility.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA2E;AAE3E,8CAAgC;AA0BhC,MAAM,kBAAkB,GAAG;IACzB,KAAK,EAAE;QACL;YACE,KAAK,EAAE,UAAU;YACjB,WAAW,EAAE,6BAA6B;SAC3C;QACD;YACE,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,yCAAyC;SACvD;QACD;YACE,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,2CAA2C;SACzD;KACF;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,cAA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at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js deleted file mode 100644 index d246b0ba..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js +++ /dev/null @@ -1,396 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const explicitReturnTypeUtils_1 = require("../util/explicitReturnTypeUtils"); -exports.default = util.createRule({ - name: 'explicit-module-boundary-types', - meta: { - type: 'problem', - docs: { - description: "Require explicit return and argument types on exported functions' and classes' public class methods", - recommended: false, - }, - messages: { - missingReturnType: 'Missing return type on function.', - missingArgType: "Argument '{{name}}' should be typed.", - missingArgTypeUnnamed: '{{type}} argument should be typed.', - anyTypedArg: "Argument '{{name}}' should be typed with a non-any type.", - anyTypedArgUnnamed: '{{type}} argument should be typed with a non-any type.', - }, - schema: [ - { - type: 'object', - properties: { - allowArgumentsExplicitlyTypedAsAny: { - description: 'Whether to ignore arguments that are explicitly typed as `any`.', - type: 'boolean', - }, - allowDirectConstAssertionInArrowFunctions: { - description: [ - 'Whether to ignore return type annotations on body-less arrow functions that return an `as const` type assertion.', - 'You must still type the parameters of the function.', - ].join('\n'), - type: 'boolean', - }, - allowedNames: { - description: 'An array of function/method names that will not have their arguments or return values checked.', - items: { - type: 'string', - }, - type: 'array', - }, - allowHigherOrderFunctions: { - description: [ - 'Whether to ignore return type annotations on functions immediately returning another function expression.', - 'You must still type the parameters of the function.', - ].join('\n'), - type: 'boolean', - }, - allowTypedFunctionExpressions: { - description: 'Whether to ignore type annotations on the variable of a function expresion.', - type: 'boolean', - }, - // DEPRECATED - To be removed in next major - shouldTrackReferences: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - allowArgumentsExplicitlyTypedAsAny: false, - allowDirectConstAssertionInArrowFunctions: true, - allowedNames: [], - allowHigherOrderFunctions: true, - allowTypedFunctionExpressions: true, - }, - ], - create(context, [options]) { - const sourceCode = context.getSourceCode(); - // tracks all of the functions we've already checked - const checkedFunctions = new Set(); - // tracks functions that were found whilst traversing - const foundFunctions = []; - // all nodes visited, avoids infinite recursion for cyclic references - // (such as class member referring to itself) - const alreadyVisited = new Set(); - /* - # How the rule works: - - As the rule traverses the AST, it immediately checks every single function that it finds is exported. - "exported" means that it is either directly exported, or that its name is exported. - - It also collects a list of every single function it finds on the way, but does not check them. - After it's finished traversing the AST, it then iterates through the list of found functions, and checks to see if - any of them are part of a higher-order function - */ - return { - ExportDefaultDeclaration(node) { - checkNode(node.declaration); - }, - 'ExportNamedDeclaration:not([source])'(node) { - if (node.declaration) { - checkNode(node.declaration); - } - else { - for (const specifier of node.specifiers) { - followReference(specifier.local); - } - } - }, - TSExportAssignment(node) { - checkNode(node.expression); - }, - 'ArrowFunctionExpression, FunctionDeclaration, FunctionExpression'(node) { - foundFunctions.push(node); - }, - 'Program:exit'() { - for (const func of foundFunctions) { - if (isExportedHigherOrderFunction(func)) { - checkNode(func); - } - } - }, - }; - function checkParameters(node) { - function checkParameter(param) { - function report(namedMessageId, unnamedMessageId) { - if (param.type === utils_1.AST_NODE_TYPES.Identifier) { - context.report({ - node: param, - messageId: namedMessageId, - data: { name: param.name }, - }); - } - else if (param.type === utils_1.AST_NODE_TYPES.ArrayPattern) { - context.report({ - node: param, - messageId: unnamedMessageId, - data: { type: 'Array pattern' }, - }); - } - else if (param.type === utils_1.AST_NODE_TYPES.ObjectPattern) { - context.report({ - node: param, - messageId: unnamedMessageId, - data: { type: 'Object pattern' }, - }); - } - else if (param.type === utils_1.AST_NODE_TYPES.RestElement) { - if (param.argument.type === utils_1.AST_NODE_TYPES.Identifier) { - context.report({ - node: param, - messageId: namedMessageId, - data: { name: param.argument.name }, - }); - } - else { - context.report({ - node: param, - messageId: unnamedMessageId, - data: { type: 'Rest' }, - }); - } - } - } - switch (param.type) { - case utils_1.AST_NODE_TYPES.ArrayPattern: - case utils_1.AST_NODE_TYPES.Identifier: - case utils_1.AST_NODE_TYPES.ObjectPattern: - case utils_1.AST_NODE_TYPES.RestElement: - if (!param.typeAnnotation) { - report('missingArgType', 'missingArgTypeUnnamed'); - } - else if (options.allowArgumentsExplicitlyTypedAsAny !== true && - param.typeAnnotation.typeAnnotation.type === - utils_1.AST_NODE_TYPES.TSAnyKeyword) { - report('anyTypedArg', 'anyTypedArgUnnamed'); - } - return; - case utils_1.AST_NODE_TYPES.TSParameterProperty: - return checkParameter(param.parameter); - case utils_1.AST_NODE_TYPES.AssignmentPattern: // ignored as it has a type via its assignment - return; - } - } - for (const arg of node.params) { - checkParameter(arg); - } - } - /** - * Checks if a function name is allowed and should not be checked. - */ - function isAllowedName(node) { - var _a; - if (!node || !options.allowedNames || !options.allowedNames.length) { - return false; - } - if (node.type === utils_1.AST_NODE_TYPES.VariableDeclarator || - node.type === utils_1.AST_NODE_TYPES.FunctionDeclaration) { - return (((_a = node.id) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.Identifier && - options.allowedNames.includes(node.id.name)); - } - else if (node.type === utils_1.AST_NODE_TYPES.MethodDefinition || - node.type === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition || - (node.type === utils_1.AST_NODE_TYPES.Property && node.method) || - node.type === utils_1.AST_NODE_TYPES.PropertyDefinition) { - if (node.key.type === utils_1.AST_NODE_TYPES.Literal && - typeof node.key.value === 'string') { - return options.allowedNames.includes(node.key.value); - } - if (node.key.type === utils_1.AST_NODE_TYPES.TemplateLiteral && - node.key.expressions.length === 0) { - return options.allowedNames.includes(node.key.quasis[0].value.raw); - } - if (!node.computed && node.key.type === utils_1.AST_NODE_TYPES.Identifier) { - return options.allowedNames.includes(node.key.name); - } - } - return false; - } - function isExportedHigherOrderFunction(node) { - var _a; - let current = node.parent; - while (current) { - if (current.type === utils_1.AST_NODE_TYPES.ReturnStatement) { - // the parent of a return will always be a block statement, so we can skip over it - current = (_a = current.parent) === null || _a === void 0 ? void 0 : _a.parent; - continue; - } - if (!util.isFunction(current) || - !(0, explicitReturnTypeUtils_1.doesImmediatelyReturnFunctionExpression)(current)) { - return false; - } - if (checkedFunctions.has(current)) { - return true; - } - current = current.parent; - } - return false; - } - function followReference(node) { - const scope = context.getScope(); - const variable = scope.set.get(node.name); - /* istanbul ignore if */ if (!variable) { - return; - } - // check all of the definitions - for (const definition of variable.defs) { - // cases we don't care about in this rule - if ([ - scope_manager_1.DefinitionType.ImplicitGlobalVariable, - scope_manager_1.DefinitionType.ImportBinding, - scope_manager_1.DefinitionType.CatchClause, - scope_manager_1.DefinitionType.Parameter, - ].includes(definition.type)) { - continue; - } - checkNode(definition.node); - } - // follow references to find writes to the variable - for (const reference of variable.references) { - if ( - // we don't want to check the initialization ref, as this is handled by the declaration check - !reference.init && - reference.writeExpr) { - checkNode(reference.writeExpr); - } - } - } - function checkNode(node) { - if (node == null || alreadyVisited.has(node)) { - return; - } - alreadyVisited.add(node); - switch (node.type) { - case utils_1.AST_NODE_TYPES.ArrowFunctionExpression: - case utils_1.AST_NODE_TYPES.FunctionExpression: - return checkFunctionExpression(node); - case utils_1.AST_NODE_TYPES.ArrayExpression: - for (const element of node.elements) { - checkNode(element); - } - return; - case utils_1.AST_NODE_TYPES.PropertyDefinition: - if (node.accessibility === 'private' || - node.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { - return; - } - return checkNode(node.value); - case utils_1.AST_NODE_TYPES.ClassDeclaration: - case utils_1.AST_NODE_TYPES.ClassExpression: - for (const element of node.body.body) { - checkNode(element); - } - return; - case utils_1.AST_NODE_TYPES.FunctionDeclaration: - return checkFunction(node); - case utils_1.AST_NODE_TYPES.MethodDefinition: - case utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition: - if (node.accessibility === 'private' || - node.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { - return; - } - return checkNode(node.value); - case utils_1.AST_NODE_TYPES.Identifier: - return followReference(node); - case utils_1.AST_NODE_TYPES.ObjectExpression: - for (const property of node.properties) { - checkNode(property); - } - return; - case utils_1.AST_NODE_TYPES.Property: - return checkNode(node.value); - case utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression: - return checkEmptyBodyFunctionExpression(node); - case utils_1.AST_NODE_TYPES.VariableDeclaration: - for (const declaration of node.declarations) { - checkNode(declaration); - } - return; - case utils_1.AST_NODE_TYPES.VariableDeclarator: - return checkNode(node.init); - } - } - function checkEmptyBodyFunctionExpression(node) { - var _a, _b, _c; - const isConstructor = ((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.MethodDefinition && - node.parent.kind === 'constructor'; - const isSetAccessor = (((_b = node.parent) === null || _b === void 0 ? void 0 : _b.type) === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition || - ((_c = node.parent) === null || _c === void 0 ? void 0 : _c.type) === utils_1.AST_NODE_TYPES.MethodDefinition) && - node.parent.kind === 'set'; - if (!isConstructor && !isSetAccessor && !node.returnType) { - context.report({ - node, - messageId: 'missingReturnType', - }); - } - checkParameters(node); - } - function checkFunctionExpression(node) { - if (checkedFunctions.has(node)) { - return; - } - checkedFunctions.add(node); - if (isAllowedName(node.parent) || - (0, explicitReturnTypeUtils_1.isTypedFunctionExpression)(node, options) || - (0, explicitReturnTypeUtils_1.ancestorHasReturnType)(node)) { - return; - } - (0, explicitReturnTypeUtils_1.checkFunctionExpressionReturnType)(node, options, sourceCode, loc => { - context.report({ - node, - loc, - messageId: 'missingReturnType', - }); - }); - checkParameters(node); - } - function checkFunction(node) { - if (checkedFunctions.has(node)) { - return; - } - checkedFunctions.add(node); - if (isAllowedName(node) || (0, explicitReturnTypeUtils_1.ancestorHasReturnType)(node)) { - return; - } - (0, explicitReturnTypeUtils_1.checkFunctionReturnType)(node, options, sourceCode, loc => { - context.report({ - node, - loc, - messageId: 'missingReturnType', - }); - }); - checkParameters(node); - } - }, -}); -//# sourceMappingURL=explicit-module-boundary-types.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map deleted file mode 100644 index c1f7530f..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/explicit-module-boundary-types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"explicit-module-boundary-types.js","sourceRoot":"","sources":["../../src/rules/explicit-module-boundary-types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oEAAkE;AAElE,oDAA0D;AAE1D,8CAAgC;AAKhC,6EAMyC;AAmBzC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,gCAAgC;IACtC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,qGAAqG;YACvG,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,iBAAiB,EAAE,kCAAkC;YACrD,cA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2DAAiC,EAAC,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,EAAE;gBACjE,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,GAAG;oBACH,SAAS,EAAE,mBAAmB;iBAC/B,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,eAAe,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC;QAED,SAAS,aAAa,CAAC,IAAkC;YACvD,IAAI,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;gBAC9B,OAAO;aACR;YACD,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAE3B,IAAI,aAAa,CAAC,IAAI,CAAC,IAAI,IAAA,+CAAqB,EAAC,IAAI,CAAC,EAAE;gBACtD,OAAO;aACR;YAED,IAAA,iDAAuB,EAAC,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,EAAE;gBACvD,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,GAAG;oBACH,SAAS,EAAE,mBAAmB;iBAC/B,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;YAEH,eAAe,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC;IACH,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/func-call-spacing.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/func-call-spacing.js deleted file mode 100644 index 6eaf7d06..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/func-call-spacing.js +++ /dev/null @@ -1,168 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'func-call-spacing', - meta: { - type: 'layout', - docs: { - description: 'Require or disallow spacing between function identifiers and their invocations', - recommended: false, - extendsBaseRule: true, - }, - fixable: 'whitespace', - schema: { - anyOf: [ - { - type: 'array', - items: [ - { - enum: ['never'], - }, - ], - minItems: 0, - maxItems: 1, - }, - { - type: 'array', - items: [ - { - enum: ['always'], - }, - { - type: 'object', - properties: { - allowNewlines: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - minItems: 0, - maxItems: 2, - }, - ], - }, - messages: { - unexpectedWhitespace: 'Unexpected whitespace between function name and paren.', - unexpectedNewline: 'Unexpected newline between function name and paren.', - missing: 'Missing space between function name and paren.', - }, - }, - defaultOptions: ['never', {}], - create(context, [option, config]) { - const sourceCode = context.getSourceCode(); - const text = sourceCode.getText(); - /** - * Check if open space is present in a function name - * @param {ASTNode} node node to evaluate - * @returns {void} - * @private - */ - function checkSpacing(node) { - var _a; - const isOptionalCall = util.isOptionalCallExpression(node); - const closingParenToken = sourceCode.getLastToken(node); - const lastCalleeTokenWithoutPossibleParens = sourceCode.getLastToken((_a = node.typeParameters) !== null && _a !== void 0 ? _a : node.callee); - const openingParenToken = sourceCode.getFirstTokenBetween(lastCalleeTokenWithoutPossibleParens, closingParenToken, util.isOpeningParenToken); - if (!openingParenToken || openingParenToken.range[1] >= node.range[1]) { - // new expression with no parens... - return; - } - const lastCalleeToken = sourceCode.getTokenBefore(openingParenToken, util.isNotOptionalChainPunctuator); - const textBetweenTokens = text - .slice(lastCalleeToken.range[1], openingParenToken.range[0]) - .replace(/\/\*.*?\*\//gu, ''); - const hasWhitespace = /\s/u.test(textBetweenTokens); - const hasNewline = hasWhitespace && util.LINEBREAK_MATCHER.test(textBetweenTokens); - if (option === 'never') { - if (hasWhitespace) { - return context.report({ - node, - loc: lastCalleeToken.loc.start, - messageId: 'unexpectedWhitespace', - fix(fixer) { - /* - * Only autofix if there is no newline - * https://github.com/eslint/eslint/issues/7787 - */ - if (!hasNewline && - // don't fix optional calls - !isOptionalCall) { - return fixer.removeRange([ - lastCalleeToken.range[1], - openingParenToken.range[0], - ]); - } - return null; - }, - }); - } - } - else if (isOptionalCall) { - // disallow: - // foo?. (); - // foo ?.(); - // foo ?. (); - if (hasWhitespace || hasNewline) { - context.report({ - node, - loc: lastCalleeToken.loc.start, - messageId: 'unexpectedWhitespace', - }); - } - } - else { - if (!hasWhitespace) { - context.report({ - node, - loc: lastCalleeToken.loc.start, - messageId: 'missing', - fix(fixer) { - return fixer.insertTextBefore(openingParenToken, ' '); - }, - }); - } - else if (!config.allowNewlines && hasNewline) { - context.report({ - node, - loc: lastCalleeToken.loc.start, - messageId: 'unexpectedNewline', - fix(fixer) { - return fixer.replaceTextRange([lastCalleeToken.range[1], openingParenToken.range[0]], ' '); - }, - }); - } - } - } - return { - CallExpression: checkSpacing, - NewExpression: checkSpacing, - }; - }, -}); -//# sourceMappingURL=func-call-spacing.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/func-call-spacing.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/func-call-spacing.js.map deleted file mode 100644 index 64b88622..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/func-call-spacing.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"func-call-spacing.js","sourceRoot":"","sources":["../../src/rules/func-call-spacing.ts"],"names":[],"mappings":";;;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,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js deleted file mode 100644 index e2a42158..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js +++ /dev/null @@ -1,410 +0,0 @@ -"use strict"; -/** - * Note this file is rather type-unsafe in its current state. - * This is due to some really funky type conversions between different node types. - * This is done intentionally based on the internal implementation of the base indent rule. - */ -/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('indent'); -const KNOWN_NODES = new Set([ - // Class properties aren't yet supported by eslint... - utils_1.AST_NODE_TYPES.PropertyDefinition, - // ts keywords - utils_1.AST_NODE_TYPES.TSAbstractKeyword, - utils_1.AST_NODE_TYPES.TSAnyKeyword, - utils_1.AST_NODE_TYPES.TSBooleanKeyword, - utils_1.AST_NODE_TYPES.TSNeverKeyword, - utils_1.AST_NODE_TYPES.TSNumberKeyword, - utils_1.AST_NODE_TYPES.TSStringKeyword, - utils_1.AST_NODE_TYPES.TSSymbolKeyword, - utils_1.AST_NODE_TYPES.TSUndefinedKeyword, - utils_1.AST_NODE_TYPES.TSUnknownKeyword, - utils_1.AST_NODE_TYPES.TSVoidKeyword, - utils_1.AST_NODE_TYPES.TSNullKeyword, - // ts specific nodes we want to support - utils_1.AST_NODE_TYPES.TSAbstractPropertyDefinition, - utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition, - utils_1.AST_NODE_TYPES.TSArrayType, - utils_1.AST_NODE_TYPES.TSAsExpression, - utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration, - utils_1.AST_NODE_TYPES.TSConditionalType, - utils_1.AST_NODE_TYPES.TSConstructorType, - utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration, - utils_1.AST_NODE_TYPES.TSDeclareFunction, - utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression, - utils_1.AST_NODE_TYPES.TSEnumDeclaration, - utils_1.AST_NODE_TYPES.TSEnumMember, - utils_1.AST_NODE_TYPES.TSExportAssignment, - utils_1.AST_NODE_TYPES.TSExternalModuleReference, - utils_1.AST_NODE_TYPES.TSFunctionType, - utils_1.AST_NODE_TYPES.TSImportType, - utils_1.AST_NODE_TYPES.TSIndexedAccessType, - utils_1.AST_NODE_TYPES.TSIndexSignature, - utils_1.AST_NODE_TYPES.TSInferType, - utils_1.AST_NODE_TYPES.TSInterfaceBody, - utils_1.AST_NODE_TYPES.TSInterfaceDeclaration, - utils_1.AST_NODE_TYPES.TSInterfaceHeritage, - utils_1.AST_NODE_TYPES.TSIntersectionType, - utils_1.AST_NODE_TYPES.TSImportEqualsDeclaration, - utils_1.AST_NODE_TYPES.TSLiteralType, - utils_1.AST_NODE_TYPES.TSMappedType, - utils_1.AST_NODE_TYPES.TSMethodSignature, - 'TSMinusToken', - utils_1.AST_NODE_TYPES.TSModuleBlock, - utils_1.AST_NODE_TYPES.TSModuleDeclaration, - utils_1.AST_NODE_TYPES.TSNonNullExpression, - utils_1.AST_NODE_TYPES.TSParameterProperty, - 'TSPlusToken', - utils_1.AST_NODE_TYPES.TSPropertySignature, - utils_1.AST_NODE_TYPES.TSQualifiedName, - 'TSQuestionToken', - utils_1.AST_NODE_TYPES.TSRestType, - utils_1.AST_NODE_TYPES.TSThisType, - utils_1.AST_NODE_TYPES.TSTupleType, - utils_1.AST_NODE_TYPES.TSTypeAnnotation, - utils_1.AST_NODE_TYPES.TSTypeLiteral, - utils_1.AST_NODE_TYPES.TSTypeOperator, - utils_1.AST_NODE_TYPES.TSTypeParameter, - utils_1.AST_NODE_TYPES.TSTypeParameterDeclaration, - utils_1.AST_NODE_TYPES.TSTypeParameterInstantiation, - utils_1.AST_NODE_TYPES.TSTypeReference, - utils_1.AST_NODE_TYPES.TSUnionType, - utils_1.AST_NODE_TYPES.Decorator, -]); -exports.default = util.createRule({ - name: 'indent', - meta: { - type: 'layout', - docs: { - description: 'Enforce consistent indentation', - // too opinionated to be recommended - recommended: false, - extendsBaseRule: true, - }, - fixable: 'whitespace', - hasSuggestions: baseRule.meta.hasSuggestions, - schema: baseRule.meta.schema, - messages: baseRule.meta.messages, - }, - defaultOptions: [ - // typescript docs and playground use 4 space indent - 4, - { - // typescript docs indent the case from the switch - // https://www.typescriptlang.org/docs/handbook/release-notes/typescript-1-8.html#example-4 - SwitchCase: 1, - flatTernaryExpressions: false, - ignoredNodes: [], - }, - ], - create(context, optionsWithDefaults) { - // because we extend the base rule, have to update opts on the context - // the context defines options as readonly though... - const contextWithDefaults = Object.create(context, { - options: { - writable: false, - configurable: false, - value: optionsWithDefaults, - }, - }); - const rules = baseRule.create(contextWithDefaults); - /** - * Converts from a TSPropertySignature to a Property - * @param node a TSPropertySignature node - * @param [type] the type to give the new node - * @returns a Property node - */ - function TSPropertySignatureToProperty(node, type = utils_1.AST_NODE_TYPES.Property) { - const base = { - // indent doesn't actually use these - key: null, - value: null, - // Property flags - computed: false, - method: false, - kind: 'init', - // this will stop eslint from interrogating the type literal - shorthand: true, - // location data - parent: node.parent, - range: node.range, - loc: node.loc, - }; - if (type === utils_1.AST_NODE_TYPES.Property) { - return Object.assign({ type }, base); - } - else { - return Object.assign({ type, static: false, readonly: false, declare: false }, base); - } - } - return Object.assign({}, rules, { - // overwrite the base rule here so we can use our KNOWN_NODES list instead - '*:exit'(node) { - // For nodes we care about, skip the default handling, because it just marks the node as ignored... - if (!KNOWN_NODES.has(node.type)) { - rules['*:exit'](node); - } - }, - VariableDeclaration(node) { - // https://github.com/typescript-eslint/typescript-eslint/issues/441 - if (node.declarations.length === 0) { - return; - } - return rules.VariableDeclaration(node); - }, - TSAsExpression(node) { - // transform it to a BinaryExpression - return rules['BinaryExpression, LogicalExpression']({ - type: utils_1.AST_NODE_TYPES.BinaryExpression, - operator: 'as', - left: node.expression, - // the first typeAnnotation includes the as token - right: node.typeAnnotation, - // location data - parent: node.parent, - range: node.range, - loc: node.loc, - }); - }, - TSConditionalType(node) { - // transform it to a ConditionalExpression - return rules.ConditionalExpression({ - type: utils_1.AST_NODE_TYPES.ConditionalExpression, - test: { - type: utils_1.AST_NODE_TYPES.BinaryExpression, - operator: 'extends', - left: node.checkType, - right: node.extendsType, - // location data - range: [node.checkType.range[0], node.extendsType.range[1]], - loc: { - start: node.checkType.loc.start, - end: node.extendsType.loc.end, - }, - }, - consequent: node.trueType, - alternate: node.falseType, - // location data - parent: node.parent, - range: node.range, - loc: node.loc, - }); - }, - 'TSEnumDeclaration, TSTypeLiteral'(node) { - // transform it to an ObjectExpression - return rules['ObjectExpression, ObjectPattern']({ - type: utils_1.AST_NODE_TYPES.ObjectExpression, - properties: node.members.map(member => TSPropertySignatureToProperty(member)), - // location data - parent: node.parent, - range: node.range, - loc: node.loc, - }); - }, - TSImportEqualsDeclaration(node) { - // transform it to an VariableDeclaration - // use VariableDeclaration instead of ImportDeclaration because it's essentially the same thing - const { id, moduleReference } = node; - return rules.VariableDeclaration({ - type: utils_1.AST_NODE_TYPES.VariableDeclaration, - kind: 'const', - declarations: [ - { - type: utils_1.AST_NODE_TYPES.VariableDeclarator, - range: [id.range[0], moduleReference.range[1]], - loc: { - start: id.loc.start, - end: moduleReference.loc.end, - }, - id: id, - init: { - type: utils_1.AST_NODE_TYPES.CallExpression, - callee: { - type: utils_1.AST_NODE_TYPES.Identifier, - name: 'require', - range: [ - moduleReference.range[0], - moduleReference.range[0] + 'require'.length, - ], - loc: { - start: moduleReference.loc.start, - end: { - line: moduleReference.loc.end.line, - column: moduleReference.loc.start.line + 'require'.length, - }, - }, - }, - arguments: 'expression' in moduleReference - ? [moduleReference.expression] - : [], - // location data - range: moduleReference.range, - loc: moduleReference.loc, - }, - }, - ], - // location data - parent: node.parent, - range: node.range, - loc: node.loc, - }); - }, - TSIndexedAccessType(node) { - // convert to a MemberExpression - return rules['MemberExpression, JSXMemberExpression, MetaProperty']({ - type: utils_1.AST_NODE_TYPES.MemberExpression, - object: node.objectType, - property: node.indexType, - // location data - parent: node.parent, - range: node.range, - loc: node.loc, - optional: false, - computed: true, - }); - }, - TSInterfaceBody(node) { - // transform it to an ClassBody - return rules['BlockStatement, ClassBody']({ - type: utils_1.AST_NODE_TYPES.ClassBody, - body: node.body.map(p => TSPropertySignatureToProperty(p, utils_1.AST_NODE_TYPES.PropertyDefinition)), - // location data - parent: node.parent, - range: node.range, - loc: node.loc, - }); - }, - 'TSInterfaceDeclaration[extends.length > 0]'(node) { - // transform it to a ClassDeclaration - return rules['ClassDeclaration[superClass], ClassExpression[superClass]']({ - type: utils_1.AST_NODE_TYPES.ClassDeclaration, - body: node.body, - id: null, - // TODO: This is invalid, there can be more than one extends in interface - superClass: node.extends[0].expression, - // location data - parent: node.parent, - range: node.range, - loc: node.loc, - }); - }, - TSMappedType(node) { - const sourceCode = context.getSourceCode(); - const squareBracketStart = sourceCode.getTokenBefore(node.typeParameter); - // transform it to an ObjectExpression - return rules['ObjectExpression, ObjectPattern']({ - type: utils_1.AST_NODE_TYPES.ObjectExpression, - properties: [ - { - type: utils_1.AST_NODE_TYPES.Property, - key: node.typeParameter, - value: node.typeAnnotation, - // location data - range: [ - squareBracketStart.range[0], - node.typeAnnotation - ? node.typeAnnotation.range[1] - : squareBracketStart.range[0], - ], - loc: { - start: squareBracketStart.loc.start, - end: node.typeAnnotation - ? node.typeAnnotation.loc.end - : squareBracketStart.loc.end, - }, - kind: 'init', - computed: false, - method: false, - shorthand: false, - }, - ], - // location data - parent: node.parent, - range: node.range, - loc: node.loc, - }); - }, - TSModuleBlock(node) { - // transform it to a BlockStatement - return rules['BlockStatement, ClassBody']({ - type: utils_1.AST_NODE_TYPES.BlockStatement, - body: node.body, - // location data - parent: node.parent, - range: node.range, - loc: node.loc, - }); - }, - TSQualifiedName(node) { - return rules['MemberExpression, JSXMemberExpression, MetaProperty']({ - type: utils_1.AST_NODE_TYPES.MemberExpression, - object: node.left, - property: node.right, - // location data - parent: node.parent, - range: node.range, - loc: node.loc, - optional: false, - computed: false, - }); - }, - TSTupleType(node) { - // transform it to an ArrayExpression - return rules['ArrayExpression, ArrayPattern']({ - type: utils_1.AST_NODE_TYPES.ArrayExpression, - elements: node.elementTypes, - // location data - parent: node.parent, - range: node.range, - loc: node.loc, - }); - }, - TSTypeParameterDeclaration(node) { - if (!node.params.length) { - return; - } - const [name, ...attributes] = node.params; - // JSX is about the closest we can get because the angle brackets - // it's not perfect but it works! - return rules.JSXOpeningElement({ - type: utils_1.AST_NODE_TYPES.JSXOpeningElement, - selfClosing: false, - name: name, - attributes: attributes, - // location data - parent: node.parent, - range: node.range, - loc: node.loc, - }); - }, - }); - }, -}); -//# sourceMappingURL=indent.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/indent.js.map deleted file mode 100644 index ddd69d0c..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/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CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js deleted file mode 100644 index f8360e0b..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js +++ /dev/null @@ -1,280 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const adjacent_overload_signatures_1 = __importDefault(require("./adjacent-overload-signatures")); -const array_type_1 = __importDefault(require("./array-type")); -const await_thenable_1 = __importDefault(require("./await-thenable")); -const ban_ts_comment_1 = __importDefault(require("./ban-ts-comment")); -const ban_tslint_comment_1 = __importDefault(require("./ban-tslint-comment")); -const ban_types_1 = __importDefault(require("./ban-types")); -const block_spacing_1 = __importDefault(require("./block-spacing")); -const brace_style_1 = __importDefault(require("./brace-style")); -const class_literal_property_style_1 = __importDefault(require("./class-literal-property-style")); -const comma_dangle_1 = __importDefault(require("./comma-dangle")); -const comma_spacing_1 = __importDefault(require("./comma-spacing")); -const consistent_generic_constructors_1 = __importDefault(require("./consistent-generic-constructors")); -const consistent_indexed_object_style_1 = __importDefault(require("./consistent-indexed-object-style")); -const consistent_type_assertions_1 = __importDefault(require("./consistent-type-assertions")); -const consistent_type_definitions_1 = __importDefault(require("./consistent-type-definitions")); -const consistent_type_exports_1 = __importDefault(require("./consistent-type-exports")); -const consistent_type_imports_1 = __importDefault(require("./consistent-type-imports")); -const default_param_last_1 = __importDefault(require("./default-param-last")); -const dot_notation_1 = __importDefault(require("./dot-notation")); -const explicit_function_return_type_1 = __importDefault(require("./explicit-function-return-type")); -const explicit_member_accessibility_1 = __importDefault(require("./explicit-member-accessibility")); -const explicit_module_boundary_types_1 = __importDefault(require("./explicit-module-boundary-types")); -const func_call_spacing_1 = __importDefault(require("./func-call-spacing")); -const indent_1 = __importDefault(require("./indent")); -const init_declarations_1 = __importDefault(require("./init-declarations")); -const key_spacing_1 = __importDefault(require("./key-spacing")); -const keyword_spacing_1 = __importDefault(require("./keyword-spacing")); -const lines_around_comment_1 = __importDefault(require("./lines-around-comment")); -const lines_between_class_members_1 = __importDefault(require("./lines-between-class-members")); -const member_delimiter_style_1 = __importDefault(require("./member-delimiter-style")); -const member_ordering_1 = __importDefault(require("./member-ordering")); -const method_signature_style_1 = __importDefault(require("./method-signature-style")); -const naming_convention_1 = __importDefault(require("./naming-convention")); -const no_array_constructor_1 = __importDefault(require("./no-array-constructor")); -const no_base_to_string_1 = __importDefault(require("./no-base-to-string")); -const no_confusing_non_null_assertion_1 = __importDefault(require("./no-confusing-non-null-assertion")); -const no_confusing_void_expression_1 = __importDefault(require("./no-confusing-void-expression")); -const no_dupe_class_members_1 = __importDefault(require("./no-dupe-class-members")); -const no_duplicate_enum_values_1 = __importDefault(require("./no-duplicate-enum-values")); -const no_duplicate_imports_1 = __importDefault(require("./no-duplicate-imports")); -const no_duplicate_type_constituents_1 = __importDefault(require("./no-duplicate-type-constituents")); -const no_dynamic_delete_1 = __importDefault(require("./no-dynamic-delete")); -const no_empty_function_1 = __importDefault(require("./no-empty-function")); -const no_empty_interface_1 = __importDefault(require("./no-empty-interface")); -const no_explicit_any_1 = __importDefault(require("./no-explicit-any")); -const no_extra_non_null_assertion_1 = __importDefault(require("./no-extra-non-null-assertion")); -const no_extra_parens_1 = __importDefault(require("./no-extra-parens")); -const no_extra_semi_1 = __importDefault(require("./no-extra-semi")); -const no_extraneous_class_1 = __importDefault(require("./no-extraneous-class")); -const no_floating_promises_1 = __importDefault(require("./no-floating-promises")); -const no_for_in_array_1 = __importDefault(require("./no-for-in-array")); -const no_implicit_any_catch_1 = __importDefault(require("./no-implicit-any-catch")); -const no_implied_eval_1 = __importDefault(require("./no-implied-eval")); -const no_import_type_side_effects_1 = __importDefault(require("./no-import-type-side-effects")); -const no_inferrable_types_1 = __importDefault(require("./no-inferrable-types")); -const no_invalid_this_1 = __importDefault(require("./no-invalid-this")); -const no_invalid_void_type_1 = __importDefault(require("./no-invalid-void-type")); -const no_loop_func_1 = __importDefault(require("./no-loop-func")); -const no_loss_of_precision_1 = __importDefault(require("./no-loss-of-precision")); -const no_magic_numbers_1 = __importDefault(require("./no-magic-numbers")); -const no_meaningless_void_operator_1 = __importDefault(require("./no-meaningless-void-operator")); -const no_misused_new_1 = __importDefault(require("./no-misused-new")); -const no_misused_promises_1 = __importDefault(require("./no-misused-promises")); -const no_mixed_enums_1 = __importDefault(require("./no-mixed-enums")); -const no_namespace_1 = __importDefault(require("./no-namespace")); -const no_non_null_asserted_nullish_coalescing_1 = __importDefault(require("./no-non-null-asserted-nullish-coalescing")); -const no_non_null_asserted_optional_chain_1 = __importDefault(require("./no-non-null-asserted-optional-chain")); -const no_non_null_assertion_1 = __importDefault(require("./no-non-null-assertion")); -const no_parameter_properties_1 = __importDefault(require("./no-parameter-properties")); -const no_redeclare_1 = __importDefault(require("./no-redeclare")); -const no_redundant_type_constituents_1 = __importDefault(require("./no-redundant-type-constituents")); -const no_require_imports_1 = __importDefault(require("./no-require-imports")); -const no_restricted_imports_1 = __importDefault(require("./no-restricted-imports")); -const no_shadow_1 = __importDefault(require("./no-shadow")); -const no_this_alias_1 = __importDefault(require("./no-this-alias")); -const no_throw_literal_1 = __importDefault(require("./no-throw-literal")); -const no_type_alias_1 = __importDefault(require("./no-type-alias")); -const no_unnecessary_boolean_literal_compare_1 = __importDefault(require("./no-unnecessary-boolean-literal-compare")); -const no_unnecessary_condition_1 = __importDefault(require("./no-unnecessary-condition")); -const no_unnecessary_qualifier_1 = __importDefault(require("./no-unnecessary-qualifier")); -const no_unnecessary_type_arguments_1 = __importDefault(require("./no-unnecessary-type-arguments")); -const no_unnecessary_type_assertion_1 = __importDefault(require("./no-unnecessary-type-assertion")); -const no_unnecessary_type_constraint_1 = __importDefault(require("./no-unnecessary-type-constraint")); -const no_unsafe_argument_1 = __importDefault(require("./no-unsafe-argument")); -const no_unsafe_assignment_1 = __importDefault(require("./no-unsafe-assignment")); -const no_unsafe_call_1 = __importDefault(require("./no-unsafe-call")); -const no_unsafe_declaration_merging_1 = __importDefault(require("./no-unsafe-declaration-merging")); -const no_unsafe_enum_comparison_1 = __importDefault(require("./no-unsafe-enum-comparison")); -const no_unsafe_member_access_1 = __importDefault(require("./no-unsafe-member-access")); -const no_unsafe_return_1 = __importDefault(require("./no-unsafe-return")); -const no_unused_expressions_1 = __importDefault(require("./no-unused-expressions")); -const no_unused_vars_1 = __importDefault(require("./no-unused-vars")); -const no_use_before_define_1 = __importDefault(require("./no-use-before-define")); -const no_useless_constructor_1 = __importDefault(require("./no-useless-constructor")); -const no_useless_empty_export_1 = __importDefault(require("./no-useless-empty-export")); -const no_var_requires_1 = __importDefault(require("./no-var-requires")); -const non_nullable_type_assertion_style_1 = __importDefault(require("./non-nullable-type-assertion-style")); -const object_curly_spacing_1 = __importDefault(require("./object-curly-spacing")); -const padding_line_between_statements_1 = __importDefault(require("./padding-line-between-statements")); -const parameter_properties_1 = __importDefault(require("./parameter-properties")); -const prefer_as_const_1 = __importDefault(require("./prefer-as-const")); -const prefer_enum_initializers_1 = __importDefault(require("./prefer-enum-initializers")); -const prefer_for_of_1 = __importDefault(require("./prefer-for-of")); -const prefer_function_type_1 = __importDefault(require("./prefer-function-type")); -const prefer_includes_1 = __importDefault(require("./prefer-includes")); -const prefer_literal_enum_member_1 = __importDefault(require("./prefer-literal-enum-member")); -const prefer_namespace_keyword_1 = __importDefault(require("./prefer-namespace-keyword")); -const prefer_nullish_coalescing_1 = __importDefault(require("./prefer-nullish-coalescing")); -const prefer_optional_chain_1 = __importDefault(require("./prefer-optional-chain")); -const prefer_readonly_1 = __importDefault(require("./prefer-readonly")); -const prefer_readonly_parameter_types_1 = __importDefault(require("./prefer-readonly-parameter-types")); -const prefer_reduce_type_parameter_1 = __importDefault(require("./prefer-reduce-type-parameter")); -const prefer_regexp_exec_1 = __importDefault(require("./prefer-regexp-exec")); -const prefer_return_this_type_1 = __importDefault(require("./prefer-return-this-type")); -const prefer_string_starts_ends_with_1 = __importDefault(require("./prefer-string-starts-ends-with")); -const prefer_ts_expect_error_1 = __importDefault(require("./prefer-ts-expect-error")); -const promise_function_async_1 = __importDefault(require("./promise-function-async")); -const quotes_1 = __importDefault(require("./quotes")); -const require_array_sort_compare_1 = __importDefault(require("./require-array-sort-compare")); -const require_await_1 = __importDefault(require("./require-await")); -const restrict_plus_operands_1 = __importDefault(require("./restrict-plus-operands")); -const restrict_template_expressions_1 = __importDefault(require("./restrict-template-expressions")); -const return_await_1 = __importDefault(require("./return-await")); -const semi_1 = __importDefault(require("./semi")); -const sort_type_constituents_1 = __importDefault(require("./sort-type-constituents")); -const sort_type_union_intersection_members_1 = __importDefault(require("./sort-type-union-intersection-members")); -const space_before_blocks_1 = __importDefault(require("./space-before-blocks")); -const space_before_function_paren_1 = __importDefault(require("./space-before-function-paren")); -const space_infix_ops_1 = __importDefault(require("./space-infix-ops")); -const strict_boolean_expressions_1 = __importDefault(require("./strict-boolean-expressions")); -const switch_exhaustiveness_check_1 = __importDefault(require("./switch-exhaustiveness-check")); -const triple_slash_reference_1 = __importDefault(require("./triple-slash-reference")); -const type_annotation_spacing_1 = __importDefault(require("./type-annotation-spacing")); -const typedef_1 = __importDefault(require("./typedef")); -const unbound_method_1 = __importDefault(require("./unbound-method")); -const unified_signatures_1 = __importDefault(require("./unified-signatures")); -exports.default = { - 'adjacent-overload-signatures': adjacent_overload_signatures_1.default, - 'array-type': array_type_1.default, - 'await-thenable': await_thenable_1.default, - 'ban-ts-comment': ban_ts_comment_1.default, - 'ban-tslint-comment': ban_tslint_comment_1.default, - 'ban-types': ban_types_1.default, - 'block-spacing': block_spacing_1.default, - 'brace-style': brace_style_1.default, - 'class-literal-property-style': class_literal_property_style_1.default, - 'comma-dangle': comma_dangle_1.default, - 'comma-spacing': comma_spacing_1.default, - 'consistent-generic-constructors': consistent_generic_constructors_1.default, - 'consistent-indexed-object-style': consistent_indexed_object_style_1.default, - 'consistent-type-assertions': consistent_type_assertions_1.default, - 'consistent-type-definitions': consistent_type_definitions_1.default, - 'consistent-type-exports': consistent_type_exports_1.default, - 'consistent-type-imports': consistent_type_imports_1.default, - 'default-param-last': default_param_last_1.default, - 'dot-notation': dot_notation_1.default, - 'explicit-function-return-type': explicit_function_return_type_1.default, - 'explicit-member-accessibility': explicit_member_accessibility_1.default, - 'explicit-module-boundary-types': explicit_module_boundary_types_1.default, - 'func-call-spacing': func_call_spacing_1.default, - indent: indent_1.default, - 'init-declarations': init_declarations_1.default, - 'key-spacing': key_spacing_1.default, - 'keyword-spacing': keyword_spacing_1.default, - 'lines-around-comment': lines_around_comment_1.default, - 'lines-between-class-members': lines_between_class_members_1.default, - 'member-delimiter-style': member_delimiter_style_1.default, - 'member-ordering': member_ordering_1.default, - 'method-signature-style': method_signature_style_1.default, - 'naming-convention': naming_convention_1.default, - 'no-array-constructor': no_array_constructor_1.default, - 'no-base-to-string': no_base_to_string_1.default, - 'no-confusing-non-null-assertion': no_confusing_non_null_assertion_1.default, - 'no-confusing-void-expression': no_confusing_void_expression_1.default, - 'no-dupe-class-members': no_dupe_class_members_1.default, - 'no-duplicate-enum-values': no_duplicate_enum_values_1.default, - 'no-duplicate-imports': no_duplicate_imports_1.default, - 'no-duplicate-type-constituents': no_duplicate_type_constituents_1.default, - 'no-dynamic-delete': no_dynamic_delete_1.default, - 'no-empty-function': no_empty_function_1.default, - 'no-empty-interface': no_empty_interface_1.default, - 'no-explicit-any': no_explicit_any_1.default, - 'no-extra-non-null-assertion': no_extra_non_null_assertion_1.default, - 'no-extra-parens': no_extra_parens_1.default, - 'no-extra-semi': no_extra_semi_1.default, - 'no-extraneous-class': no_extraneous_class_1.default, - 'no-floating-promises': no_floating_promises_1.default, - 'no-for-in-array': no_for_in_array_1.default, - 'no-implicit-any-catch': no_implicit_any_catch_1.default, - 'no-implied-eval': no_implied_eval_1.default, - 'no-import-type-side-effects': no_import_type_side_effects_1.default, - 'no-inferrable-types': no_inferrable_types_1.default, - 'no-invalid-this': no_invalid_this_1.default, - 'no-invalid-void-type': no_invalid_void_type_1.default, - 'no-loop-func': no_loop_func_1.default, - 'no-loss-of-precision': no_loss_of_precision_1.default, - 'no-magic-numbers': no_magic_numbers_1.default, - 'no-meaningless-void-operator': no_meaningless_void_operator_1.default, - 'no-misused-new': no_misused_new_1.default, - 'no-misused-promises': no_misused_promises_1.default, - 'no-mixed-enums': no_mixed_enums_1.default, - 'no-namespace': no_namespace_1.default, - 'no-non-null-asserted-nullish-coalescing': no_non_null_asserted_nullish_coalescing_1.default, - 'no-non-null-asserted-optional-chain': no_non_null_asserted_optional_chain_1.default, - 'no-non-null-assertion': no_non_null_assertion_1.default, - 'no-parameter-properties': no_parameter_properties_1.default, - 'no-redeclare': no_redeclare_1.default, - 'no-redundant-type-constituents': no_redundant_type_constituents_1.default, - 'no-require-imports': no_require_imports_1.default, - 'no-restricted-imports': no_restricted_imports_1.default, - 'no-shadow': no_shadow_1.default, - 'no-this-alias': no_this_alias_1.default, - 'no-throw-literal': no_throw_literal_1.default, - 'no-type-alias': no_type_alias_1.default, - 'no-unnecessary-boolean-literal-compare': no_unnecessary_boolean_literal_compare_1.default, - 'no-unnecessary-condition': no_unnecessary_condition_1.default, - 'no-unnecessary-qualifier': no_unnecessary_qualifier_1.default, - 'no-unnecessary-type-arguments': no_unnecessary_type_arguments_1.default, - 'no-unnecessary-type-assertion': no_unnecessary_type_assertion_1.default, - 'no-unnecessary-type-constraint': no_unnecessary_type_constraint_1.default, - 'no-unsafe-argument': no_unsafe_argument_1.default, - 'no-unsafe-assignment': no_unsafe_assignment_1.default, - 'no-unsafe-call': no_unsafe_call_1.default, - 'no-unsafe-declaration-merging': no_unsafe_declaration_merging_1.default, - 'no-unsafe-enum-comparison': no_unsafe_enum_comparison_1.default, - 'no-unsafe-member-access': no_unsafe_member_access_1.default, - 'no-unsafe-return': no_unsafe_return_1.default, - 'no-unused-expressions': no_unused_expressions_1.default, - 'no-unused-vars': no_unused_vars_1.default, - 'no-use-before-define': no_use_before_define_1.default, - 'no-useless-constructor': no_useless_constructor_1.default, - 'no-useless-empty-export': no_useless_empty_export_1.default, - 'no-var-requires': no_var_requires_1.default, - 'non-nullable-type-assertion-style': non_nullable_type_assertion_style_1.default, - 'object-curly-spacing': object_curly_spacing_1.default, - 'padding-line-between-statements': padding_line_between_statements_1.default, - 'parameter-properties': parameter_properties_1.default, - 'prefer-as-const': prefer_as_const_1.default, - 'prefer-enum-initializers': prefer_enum_initializers_1.default, - 'prefer-for-of': prefer_for_of_1.default, - 'prefer-function-type': prefer_function_type_1.default, - 'prefer-includes': prefer_includes_1.default, - 'prefer-literal-enum-member': prefer_literal_enum_member_1.default, - 'prefer-namespace-keyword': prefer_namespace_keyword_1.default, - 'prefer-nullish-coalescing': prefer_nullish_coalescing_1.default, - 'prefer-optional-chain': prefer_optional_chain_1.default, - 'prefer-readonly': prefer_readonly_1.default, - 'prefer-readonly-parameter-types': prefer_readonly_parameter_types_1.default, - 'prefer-reduce-type-parameter': prefer_reduce_type_parameter_1.default, - 'prefer-regexp-exec': prefer_regexp_exec_1.default, - 'prefer-return-this-type': prefer_return_this_type_1.default, - 'prefer-string-starts-ends-with': prefer_string_starts_ends_with_1.default, - 'prefer-ts-expect-error': prefer_ts_expect_error_1.default, - 'promise-function-async': promise_function_async_1.default, - quotes: quotes_1.default, - 'require-array-sort-compare': require_array_sort_compare_1.default, - 'require-await': require_await_1.default, - 'restrict-plus-operands': restrict_plus_operands_1.default, - 'restrict-template-expressions': restrict_template_expressions_1.default, - 'return-await': return_await_1.default, - semi: semi_1.default, - 'sort-type-constituents': sort_type_constituents_1.default, - 'sort-type-union-intersection-members': sort_type_union_intersection_members_1.default, - 'space-before-blocks': space_before_blocks_1.default, - 'space-before-function-paren': space_before_function_paren_1.default, - 'space-infix-ops': space_infix_ops_1.default, - 'strict-boolean-expressions': strict_boolean_expressions_1.default, - 'switch-exhaustiveness-check': switch_exhaustiveness_check_1.default, - 'triple-slash-reference': triple_slash_reference_1.default, - 'type-annotation-spacing': type_annotation_spacing_1.default, - typedef: typedef_1.default, - 'unbound-method': unbound_method_1.default, - 'unified-signatures': unified_signatures_1.default, -}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map deleted file mode 100644 index 4d5bc670..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;;AAAA,kGAAwE;AACxE,8DAAqC;AACrC,sEAA6C;AAC7C,sEAA4C;AAC5C,8EAAoD;AACpD,4DAAmC;AACnC,oEAA2C;AAC3C,gEAAuC;AACvC,kGAAuE;AACvE,kEAAyC;AACzC,oEAA2C;AAC3C,wGAA8E;AAC9E,wGAA6E;AAC7E,8FAAoE;AACpE,gGAAsE;AACtE,wFAA8D;AAC9D,wFAA8D;AAC9D,8EAAoD;AACpD,kEAAyC;AACzC,oGAAyE;AACzE,oGAA0E;AAC1E,sGAA2E;AAC3E,4EAAkD;AAClD,sDAA8B;AAC9B,4EAAmD;AACnD,gEAAuC;AACvC,wEAA+C;AAC/C,kFAAwD;AACxD,gGAAqE;AACrE,sFAA4D;AAC5D,wEAA+C;AAC/C,sFAA4D;AAC5D,4EAAmD;AACnD,kFAAwD;AACxD,4EAAiD;AACjD,wGAAsF;AACtF,kGAAuE;AACvE,oFAAyD;AACzD,0FAA+D;AAC/D,kFAAwD;AACxD,sGAA2E;AAC3E,4EAAkD;AAClD,4EAAkD;AAClD,8EAAoD;AACpD,wEAA8C;AAC9C,gGAAoE;AACpE,wEAA8C;AAC9C,oEAA0C;AAC1C,gFAAsD;AACtD,kFAAwD;AACxD,wEAA6C;AAC7C,oFAAyD;AACzD,wEAA8C;AAC9C,gGAAoE;AACpE,gF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C,4BAA4B,EAAE,oCAAwB;IACtD,6BAA6B,EAAE,qCAAyB;IACxD,wBAAwB,EAAE,gCAAoB;IAC9C,yBAAyB,EAAE,iCAAqB;IAChD,OAAO,EAAE,iBAAO;IAChB,gBAAgB,EAAE,wBAAa;IAC/B,oBAAoB,EAAE,4BAAiB;CACxC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js deleted file mode 100644 index 6bb467dd..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('init-declarations'); -exports.default = (0, util_1.createRule)({ - name: 'init-declarations', - meta: { - type: 'suggestion', - docs: { - description: 'Require or disallow initialization in variable declarations', - recommended: false, - extendsBaseRule: true, - }, - hasSuggestions: baseRule.meta.hasSuggestions, - schema: baseRule.meta.schema, - messages: baseRule.meta.messages, - }, - defaultOptions: ['always'], - create(context, [mode]) { - const rules = baseRule.create(context); - return { - 'VariableDeclaration:exit'(node) { - if (mode === 'always') { - if (node.declare) { - return; - } - if (isAncestorNamespaceDeclared(node)) { - return; - } - } - rules['VariableDeclaration:exit'](node); - }, - }; - function isAncestorNamespaceDeclared(node) { - let ancestor = node.parent; - while (ancestor) { - if (ancestor.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration && - ancestor.declare) { - return true; - } - ancestor = ancestor.parent; - } - return false; - } - }, -}); -//# sourceMappingURL=init-declarations.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js.map deleted file mode 100644 index dfc1c4d2..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/init-declarations.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"init-declarations.js","sourceRoot":"","sources":["../../src/rules/init-declarations.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAM1D,kCAAqC;AACrC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,mBAAmB,CAAC,CAAC;AAKxD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,6DAA6D;YAC/D,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;QAC5B,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;KACjC;IACD,cAAc,EAAE,CAAC,QAAQ,CAAC;IAC1B,MAAM,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC;QACpB,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEvC,OAAO;YACL,0BAA0B,CAAC,IAAkC;gBAC3D,IAAI,IAAI,KAAK,QAAQ,EAAE;oBACrB,IAAI,IAAI,CAAC,OAAO,EAAE;wBAChB,OAAO;qBACR;oBACD,IAAI,2BAA2B,CAAC,IAAI,CAAC,EAAE;wBACrC,OAAO;qBACR;iBACF;gBAED,KAAK,CAAC,0BAA0B,CAAC,CAAC,IAAI,CAAC,CAAC;YAC1C,CAAC;SACF,CAAC;QAEF,SAAS,2BAA2B,CAClC,IAAkC;YAElC,IAAI,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC;YAE3B,OAAO,QAAQ,EAAE;gBACf,IACE,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB;oBACpD,QAAQ,CAAC,OAAO,EAChB;oBACA,OAAO,IAAI,CAAC;iBACb;gBAED,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;aAC5B;YAED,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js deleted file mode 100644 index baad3846..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js +++ /dev/null @@ -1,351 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('key-spacing'); -// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -const baseSchema = Array.isArray(baseRule.meta.schema) - ? baseRule.meta.schema[0] - : baseRule.meta.schema; -/** - * TODO: replace with native .at() once Node 14 stops being supported - */ -function at(arr, position) { - if (position < 0) { - return arr[arr.length + position]; - } - return arr[position]; -} -exports.default = util.createRule({ - name: 'key-spacing', - meta: { - type: 'layout', - docs: { - description: 'Enforce consistent spacing between property names and type annotations in types and interfaces', - recommended: false, - extendsBaseRule: true, - }, - fixable: 'whitespace', - hasSuggestions: baseRule.meta.hasSuggestions, - schema: [baseSchema], - messages: baseRule.meta.messages, - }, - defaultOptions: [{}], - create(context, [options]) { - const sourceCode = context.getSourceCode(); - const baseRules = baseRule.create(context); - /** - * @returns the column of the position after converting all unicode characters in the line to 1 char length - */ - function adjustedColumn(position) { - const line = position.line - 1; // position.line is 1-indexed - return util.getStringLength(at(sourceCode.lines, line).slice(0, position.column)); - } - /** - * Starting from the given a node (a property.key node here) looks forward - * until it finds the last token before a colon punctuator and returns it. - */ - function getLastTokenBeforeColon(node) { - const colonToken = sourceCode.getTokenAfter(node, util.isColonToken); - return sourceCode.getTokenBefore(colonToken); - } - function isKeyTypeNode(node) { - return ((node.type === utils_1.AST_NODE_TYPES.TSPropertySignature || - node.type === utils_1.AST_NODE_TYPES.TSIndexSignature || - node.type === utils_1.AST_NODE_TYPES.PropertyDefinition) && - !!node.typeAnnotation); - } - function isApplicable(node) { - return (isKeyTypeNode(node) && - node.typeAnnotation.loc.start.line === node.loc.end.line); - } - /** - * To handle index signatures, to get the whole text for the parameters - */ - function getKeyText(node) { - if (node.type !== utils_1.AST_NODE_TYPES.TSIndexSignature) { - return sourceCode.getText(node.key); - } - const code = sourceCode.getText(node); - return code.slice(0, sourceCode.getTokenAfter(at(node.parameters, -1), util.isClosingBracketToken).range[1] - node.range[0]); - } - /** - * To handle index signatures, be able to get the end position of the parameters - */ - function getKeyLocEnd(node) { - return getLastTokenBeforeColon(node.type !== utils_1.AST_NODE_TYPES.TSIndexSignature - ? node.key - : at(node.parameters, -1)).loc.end; - } - function checkBeforeColon(node, expectedWhitespaceBeforeColon, mode) { - const { typeAnnotation } = node; - const colon = typeAnnotation.loc.start.column; - const keyEnd = getKeyLocEnd(node); - const difference = colon - keyEnd.column - expectedWhitespaceBeforeColon; - if (mode === 'strict' ? difference : difference < 0) { - context.report({ - node, - messageId: difference > 0 ? 'extraKey' : 'missingKey', - fix: fixer => { - if (difference > 0) { - return fixer.removeRange([ - typeAnnotation.range[0] - difference, - typeAnnotation.range[0], - ]); - } - else { - return fixer.insertTextBefore(typeAnnotation, ' '.repeat(-difference)); - } - }, - data: { - computed: '', - key: getKeyText(node), - }, - }); - } - } - function checkAfterColon(node, expectedWhitespaceAfterColon, mode) { - const { typeAnnotation } = node; - const colon = typeAnnotation.loc.start.column; - const typeStart = typeAnnotation.typeAnnotation.loc.start.column; - const difference = typeStart - colon - 1 - expectedWhitespaceAfterColon; - if (mode === 'strict' ? difference : difference < 0) { - context.report({ - node, - messageId: difference > 0 ? 'extraValue' : 'missingValue', - fix: fixer => { - if (difference > 0) { - return fixer.removeRange([ - typeAnnotation.typeAnnotation.range[0] - difference, - typeAnnotation.typeAnnotation.range[0], - ]); - } - else { - return fixer.insertTextBefore(typeAnnotation.typeAnnotation, ' '.repeat(-difference)); - } - }, - data: { - computed: '', - key: getKeyText(node), - }, - }); - } - } - // adapted from https://github.com/eslint/eslint/blob/ba74253e8bd63e9e163bbee0540031be77e39253/lib/rules/key-spacing.js#L356 - function continuesAlignGroup(lastMember, candidate) { - const groupEndLine = lastMember.loc.start.line; - const candidateValueStartLine = (isKeyTypeNode(candidate) ? candidate.typeAnnotation : candidate).loc.start.line; - if (candidateValueStartLine === groupEndLine) { - return false; - } - if (candidateValueStartLine - groupEndLine === 1) { - return true; - } - /* - * Check that the first comment is adjacent to the end of the group, the - * last comment is adjacent to the candidate property, and that successive - * comments are adjacent to each other. - */ - const leadingComments = sourceCode.getCommentsBefore(candidate); - if (leadingComments.length && - leadingComments[0].loc.start.line - groupEndLine <= 1 && - candidateValueStartLine - at(leadingComments, -1).loc.end.line <= 1) { - for (let i = 1; i < leadingComments.length; i++) { - if (leadingComments[i].loc.start.line - - leadingComments[i - 1].loc.end.line > - 1) { - return false; - } - } - return true; - } - return false; - } - function checkAlignGroup(group) { - var _a, _b, _c, _d, _e, _f, _g, _h; - let alignColumn = 0; - const align = (_d = (typeof options.align === 'object' - ? options.align.on - : typeof ((_a = options.multiLine) === null || _a === void 0 ? void 0 : _a.align) === 'object' - ? options.multiLine.align.on - : (_c = (_b = options.multiLine) === null || _b === void 0 ? void 0 : _b.align) !== null && _c !== void 0 ? _c : options.align)) !== null && _d !== void 0 ? _d : 'colon'; - const beforeColon = (_e = (typeof options.align === 'object' - ? options.align.beforeColon - : options.multiLine - ? typeof options.multiLine.align === 'object' - ? options.multiLine.align.beforeColon - : options.multiLine.beforeColon - : options.beforeColon)) !== null && _e !== void 0 ? _e : false; - const expectedWhitespaceBeforeColon = beforeColon ? 1 : 0; - const afterColon = (_f = (typeof options.align === 'object' - ? options.align.afterColon - : options.multiLine - ? typeof options.multiLine.align === 'object' - ? options.multiLine.align.afterColon - : options.multiLine.afterColon - : options.afterColon)) !== null && _f !== void 0 ? _f : true; - const expectedWhitespaceAfterColon = afterColon ? 1 : 0; - const mode = (_h = (typeof options.align === 'object' - ? options.align.mode - : options.multiLine - ? typeof options.multiLine.align === 'object' - ? // same behavior as in original rule - (_g = options.multiLine.align.mode) !== null && _g !== void 0 ? _g : options.multiLine.mode - : options.multiLine.mode - : options.mode)) !== null && _h !== void 0 ? _h : 'strict'; - for (const node of group) { - if (isKeyTypeNode(node)) { - const keyEnd = adjustedColumn(getKeyLocEnd(node)); - alignColumn = Math.max(alignColumn, align === 'colon' - ? keyEnd + expectedWhitespaceBeforeColon - : keyEnd + - ':'.length + - expectedWhitespaceAfterColon + - expectedWhitespaceBeforeColon); - } - } - for (const node of group) { - if (!isApplicable(node)) { - continue; - } - const { typeAnnotation } = node; - const toCheck = align === 'colon' ? typeAnnotation : typeAnnotation.typeAnnotation; - const difference = adjustedColumn(toCheck.loc.start) - alignColumn; - if (difference) { - context.report({ - node, - messageId: difference > 0 - ? align === 'colon' - ? 'extraKey' - : 'extraValue' - : align === 'colon' - ? 'missingKey' - : 'missingValue', - fix: fixer => { - if (difference > 0) { - return fixer.removeRange([ - toCheck.range[0] - difference, - toCheck.range[0], - ]); - } - else { - return fixer.insertTextBefore(toCheck, ' '.repeat(-difference)); - } - }, - data: { - computed: '', - key: getKeyText(node), - }, - }); - } - if (align === 'colon') { - checkAfterColon(node, expectedWhitespaceAfterColon, mode); - } - else { - checkBeforeColon(node, expectedWhitespaceBeforeColon, mode); - } - } - } - function checkIndividualNode(node, { singleLine }) { - var _a, _b, _c; - const beforeColon = (_a = (singleLine - ? options.singleLine - ? options.singleLine.beforeColon - : options.beforeColon - : options.multiLine - ? options.multiLine.beforeColon - : options.beforeColon)) !== null && _a !== void 0 ? _a : false; - const expectedWhitespaceBeforeColon = beforeColon ? 1 : 0; - const afterColon = (_b = (singleLine - ? options.singleLine - ? options.singleLine.afterColon - : options.afterColon - : options.multiLine - ? options.multiLine.afterColon - : options.afterColon)) !== null && _b !== void 0 ? _b : true; - const expectedWhitespaceAfterColon = afterColon ? 1 : 0; - const mode = (_c = (singleLine - ? options.singleLine - ? options.singleLine.mode - : options.mode - : options.multiLine - ? options.multiLine.mode - : options.mode)) !== null && _c !== void 0 ? _c : 'strict'; - if (isApplicable(node)) { - checkBeforeColon(node, expectedWhitespaceBeforeColon, mode); - checkAfterColon(node, expectedWhitespaceAfterColon, mode); - } - } - function validateBody(body) { - var _a; - const isSingleLine = body.loc.start.line === body.loc.end.line; - const members = body.type === utils_1.AST_NODE_TYPES.TSTypeLiteral ? body.members : body.body; - let alignGroups = []; - let unalignedElements = []; - if (options.align || ((_a = options.multiLine) === null || _a === void 0 ? void 0 : _a.align)) { - let currentAlignGroup = []; - alignGroups.push(currentAlignGroup); - let prevNode = undefined; - for (const node of members) { - let prevAlignedNode = at(currentAlignGroup, -1); - if (prevAlignedNode !== prevNode) { - prevAlignedNode = undefined; - } - if (prevAlignedNode && continuesAlignGroup(prevAlignedNode, node)) { - currentAlignGroup.push(node); - } - else if ((prevNode === null || prevNode === void 0 ? void 0 : prevNode.loc.start.line) === node.loc.start.line) { - if (prevAlignedNode) { - // Here, prevNode === prevAlignedNode === currentAlignGroup.at(-1) - unalignedElements.push(prevAlignedNode); - currentAlignGroup.pop(); - } - unalignedElements.push(node); - } - else { - currentAlignGroup = [node]; - alignGroups.push(currentAlignGroup); - } - prevNode = node; - } - unalignedElements = unalignedElements.concat(...alignGroups.filter(group => group.length === 1)); - alignGroups = alignGroups.filter(group => group.length >= 2); - } - else { - unalignedElements = members; - } - for (const group of alignGroups) { - checkAlignGroup(group); - } - for (const node of unalignedElements) { - checkIndividualNode(node, { singleLine: isSingleLine }); - } - } - return Object.assign(Object.assign({}, baseRules), { TSTypeLiteral: validateBody, TSInterfaceBody: validateBody, ClassBody: validateBody }); - }, -}); -//# sourceMappingURL=key-spacing.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js.map deleted file mode 100644 index 212c5d4b..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/key-spacing.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"key-spacing.js","sourceRoot":"","sources":["../../src/rules/key-spacing.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAChC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,aAAa,CAAC,CAAC;AAKlD,mEAAmE;AACnE,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;IACpD,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IACzB,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;AAEzB;;GAEG;AACH,SAAS,EAAE,CAAI,GAAQ,EAAE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F,WAAW,GAAG,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC;aAC9D;iBAAM;gBACL,iBAAiB,GAAG,OAAO,CAAC;aAC7B;YAED,KAAK,MAAM,KAAK,IAAI,WAAW,EAAE;gBAC/B,eAAe,CAAC,KAAK,CAAC,CAAC;aACxB;YAED,KAAK,MAAM,IAAI,IAAI,iBAAiB,EAAE;gBACpC,mBAAmB,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC,CAAC;aACzD;QACH,CAAC;QACD,uCACK,SAAS,KACZ,aAAa,EAAE,YAAY,EAC3B,eAAe,EAAE,YAAY,EAC7B,SAAS,EAAE,YAAY,IACvB;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js deleted file mode 100644 index 32eb12e2..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js +++ /dev/null @@ -1,114 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('keyword-spacing'); -// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -const baseSchema = Array.isArray(baseRule.meta.schema) - ? baseRule.meta.schema[0] - : baseRule.meta.schema; -const schema = util.deepMerge( -// eslint-disable-next-line @typescript-eslint/no-unsafe-argument -- https://github.com/microsoft/TypeScript/issues/17002 -baseSchema, { - properties: { - overrides: { - properties: { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access - type: baseSchema.properties.overrides.properties.import, - }, - }, - }, -}); -exports.default = util.createRule({ - name: 'keyword-spacing', - meta: { - type: 'layout', - docs: { - description: 'Enforce consistent spacing before and after keywords', - recommended: false, - extendsBaseRule: true, - }, - fixable: 'whitespace', - hasSuggestions: baseRule.meta.hasSuggestions, - schema: [schema], - messages: baseRule.meta.messages, - }, - defaultOptions: [{}], - create(context, [{ after, overrides }]) { - const sourceCode = context.getSourceCode(); - const baseRules = baseRule.create(context); - return Object.assign(Object.assign({}, baseRules), { TSAsExpression(node) { - const asToken = util.nullThrows(sourceCode.getTokenAfter(node.expression, token => token.value === 'as'), util.NullThrowsReasons.MissingToken('as', node.type)); - const oldTokenType = asToken.type; - // as is a contextual keyword, so it's always reported as an Identifier - // the rule looks for keyword tokens, so we temporarily override it - // we mutate it at the token level because the rule calls sourceCode.getFirstToken, - // so mutating a copy would not change the underlying copy returned by that method - asToken.type = utils_1.AST_TOKEN_TYPES.Keyword; - // use this selector just because it is just a call to `checkSpacingAroundFirstToken` - baseRules.DebuggerStatement(asToken); - // make sure to reset the type afterward so we don't permanently mutate the AST - asToken.type = oldTokenType; - }, - 'ImportDeclaration[importKind=type]'(node) { - var _a, _b, _c, _d; - const { type: typeOptionOverride = {} } = overrides !== null && overrides !== void 0 ? overrides : {}; - const typeToken = sourceCode.getFirstToken(node, { skip: 1 }); - const punctuatorToken = sourceCode.getTokenAfter(typeToken); - if (((_b = (_a = node.specifiers) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.type) === utils_1.AST_NODE_TYPES.ImportDefaultSpecifier) { - return; - } - const spacesBetweenTypeAndPunctuator = punctuatorToken.range[0] - typeToken.range[1]; - if (((_c = typeOptionOverride.after) !== null && _c !== void 0 ? _c : after) === true && - spacesBetweenTypeAndPunctuator === 0) { - context.report({ - loc: typeToken.loc, - messageId: 'expectedAfter', - data: { value: 'type' }, - fix(fixer) { - return fixer.insertTextAfter(typeToken, ' '); - }, - }); - } - if (((_d = typeOptionOverride.after) !== null && _d !== void 0 ? _d : after) === false && - spacesBetweenTypeAndPunctuator > 0) { - context.report({ - loc: typeToken.loc, - messageId: 'unexpectedAfter', - data: { value: 'type' }, - fix(fixer) { - return fixer.removeRange([ - typeToken.range[1], - typeToken.range[1] + spacesBetweenTypeAndPunctuator, - ]); - }, - }); - } - } }); - }, -}); -//# sourceMappingURL=keyword-spacing.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js.map deleted file mode 100644 index ee53fcef..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/keyword-spacing.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"keyword-spacing.js","sourceRoot":"","sources":["../../src/rules/keyword-spacing.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA2E;AAE3E,8CAAgC;AAChC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,iBAAiB,CAAC,CAAC;AAKtD,mEAAmE;AACnE,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,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Ae,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;wBAC/C,CAAC;qBACF,CAAC,CAAC;iBACJ;gBACD,IACE,CAAC,MAAA,kBAAkB,CAAC,KAAK,mCAAI,KAAK,CAAC,KAAK,KAAK;oBAC7C,8BAA8B,GAAG,CAAC,EAClC;oBACA,OAAO,CAAC,MAAM,CAAC;wBACb,GAAG,EAAE,SAAS,CAAC,GAAG;wBAClB,SAAS,EAAE,iBAAiB;wBAC5B,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;wBACvB,GAAG,CAAC,KAAK;4BACP,OAAO,KAAK,CAAC,WAAW,CAAC;gCACvB,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;gCAClB,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,8BAA8B;6BACpD,CAAC,CAAC;wBACL,CAAC;qBACF,CAAC,CAAC;iBACJ;YACH,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js deleted file mode 100644 index 4a1a90d1..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js +++ /dev/null @@ -1,384 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('lines-around-comment'); -const COMMENTS_IGNORE_PATTERN = /^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u; -/** - * @returns an array with with any line numbers that are empty. - */ -function getEmptyLineNums(lines) { - const emptyLines = lines - .map((line, i) => ({ - code: line.trim(), - num: i + 1, - })) - .filter(line => !line.code) - .map(line => line.num); - return emptyLines; -} -/** - * @returns an array with with any line numbers that contain comments. - */ -function getCommentLineNums(comments) { - const lines = []; - comments.forEach(token => { - const start = token.loc.start.line; - const end = token.loc.end.line; - lines.push(start, end); - }); - return lines; -} -exports.default = util.createRule({ - name: 'lines-around-comment', - meta: { - type: 'layout', - docs: { - description: 'Require empty lines around comments', - recommended: false, - extendsBaseRule: true, - }, - schema: { - type: 'array', - items: [ - { - type: 'object', - properties: { - beforeBlockComment: { - type: 'boolean', - default: true, - }, - afterBlockComment: { - type: 'boolean', - default: false, - }, - beforeLineComment: { - type: 'boolean', - default: false, - }, - afterLineComment: { - type: 'boolean', - default: false, - }, - allowBlockStart: { - type: 'boolean', - default: false, - }, - allowBlockEnd: { - type: 'boolean', - default: false, - }, - allowClassStart: { - type: 'boolean', - }, - allowClassEnd: { - type: 'boolean', - }, - allowObjectStart: { - type: 'boolean', - }, - allowObjectEnd: { - type: 'boolean', - }, - allowArrayStart: { - type: 'boolean', - }, - allowArrayEnd: { - type: 'boolean', - }, - allowInterfaceStart: { - type: 'boolean', - }, - allowInterfaceEnd: { - type: 'boolean', - }, - allowTypeStart: { - type: 'boolean', - }, - allowTypeEnd: { - type: 'boolean', - }, - allowEnumStart: { - type: 'boolean', - }, - allowEnumEnd: { - type: 'boolean', - }, - allowModuleStart: { - type: 'boolean', - }, - allowModuleEnd: { - type: 'boolean', - }, - ignorePattern: { - type: 'string', - }, - applyDefaultIgnorePatterns: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - }, - fixable: baseRule.meta.fixable, - hasSuggestions: baseRule.meta.hasSuggestions, - messages: baseRule.meta.messages, - }, - defaultOptions: [ - { - beforeBlockComment: true, - }, - ], - create(context, [_options]) { - var _a; - const options = _options; - const defaultIgnoreRegExp = COMMENTS_IGNORE_PATTERN; - const customIgnoreRegExp = new RegExp((_a = options.ignorePattern) !== null && _a !== void 0 ? _a : '', 'u'); - const sourceCode = context.getSourceCode(); - const comments = sourceCode.getAllComments(); - const lines = sourceCode.lines; - const commentLines = getCommentLineNums(comments); - const emptyLines = getEmptyLineNums(lines); - const commentAndEmptyLines = new Set(commentLines.concat(emptyLines)); - /** - * @returns whether comments are on lines starting with or ending with code. - */ - function codeAroundComment(token) { - let currentToken = token; - do { - currentToken = sourceCode.getTokenBefore(currentToken, { - includeComments: true, - }); - } while (currentToken && util.isCommentToken(currentToken)); - if (currentToken && util.isTokenOnSameLine(currentToken, token)) { - return true; - } - currentToken = token; - do { - currentToken = sourceCode.getTokenAfter(currentToken, { - includeComments: true, - }); - } while (currentToken && util.isCommentToken(currentToken)); - if (currentToken && util.isTokenOnSameLine(token, currentToken)) { - return true; - } - return false; - } - /** - * @returns whether comments are inside a node type. - */ - function isParentNodeType(parent, nodeType) { - return parent.type === nodeType; - } - /** - * @returns the parent node that contains the given token. - */ - function getParentNodeOfToken(token) { - const node = sourceCode.getNodeByRangeIndex(token.range[0]); - return node; - } - /** - * @returns whether comments are at the parent start. - */ - function isCommentAtParentStart(token, nodeType) { - const parent = getParentNodeOfToken(token); - if (parent && isParentNodeType(parent, nodeType)) { - const parentStartNodeOrToken = parent; - return (token.loc.start.line - parentStartNodeOrToken.loc.start.line === 1); - } - return false; - } - /** - * @returns whether comments are at the parent end. - */ - function isCommentAtParentEnd(token, nodeType) { - const parent = getParentNodeOfToken(token); - return (!!parent && - isParentNodeType(parent, nodeType) && - parent.loc.end.line - token.loc.end.line === 1); - } - function isCommentAtInterfaceStart(token) { - return isCommentAtParentStart(token, utils_1.AST_NODE_TYPES.TSInterfaceBody); - } - function isCommentAtInterfaceEnd(token) { - return isCommentAtParentEnd(token, utils_1.AST_NODE_TYPES.TSInterfaceBody); - } - function isCommentAtTypeStart(token) { - return isCommentAtParentStart(token, utils_1.AST_NODE_TYPES.TSTypeLiteral); - } - function isCommentAtTypeEnd(token) { - return isCommentAtParentEnd(token, utils_1.AST_NODE_TYPES.TSTypeLiteral); - } - function isCommentAtEnumStart(token) { - return isCommentAtParentStart(token, utils_1.AST_NODE_TYPES.TSEnumDeclaration); - } - function isCommentAtEnumEnd(token) { - return isCommentAtParentEnd(token, utils_1.AST_NODE_TYPES.TSEnumDeclaration); - } - function isCommentAtModuleStart(token) { - return isCommentAtParentStart(token, utils_1.AST_NODE_TYPES.TSModuleBlock); - } - function isCommentAtModuleEnd(token) { - return isCommentAtParentEnd(token, utils_1.AST_NODE_TYPES.TSModuleBlock); - } - function isCommentNearTSConstruct(token) { - return (isCommentAtInterfaceStart(token) || - isCommentAtInterfaceEnd(token) || - isCommentAtTypeStart(token) || - isCommentAtTypeEnd(token) || - isCommentAtEnumStart(token) || - isCommentAtEnumEnd(token) || - isCommentAtModuleStart(token) || - isCommentAtModuleEnd(token)); - } - function checkForEmptyLine(token, { before, after }) { - // the base rule handles comments away from TS constructs blocks correctly, we skip those - if (!isCommentNearTSConstruct(token)) { - return; - } - if (options.applyDefaultIgnorePatterns !== false && - defaultIgnoreRegExp.test(token.value)) { - return; - } - if (options.ignorePattern && customIgnoreRegExp.test(token.value)) { - return; - } - const prevLineNum = token.loc.start.line - 1; - const nextLineNum = token.loc.end.line + 1; - // we ignore all inline comments - if (codeAroundComment(token)) { - return; - } - const interfaceStartAllowed = Boolean(options.allowInterfaceStart) && - isCommentAtInterfaceStart(token); - const interfaceEndAllowed = Boolean(options.allowInterfaceEnd) && isCommentAtInterfaceEnd(token); - const typeStartAllowed = Boolean(options.allowTypeStart) && isCommentAtTypeStart(token); - const typeEndAllowed = Boolean(options.allowTypeEnd) && isCommentAtTypeEnd(token); - const enumStartAllowed = Boolean(options.allowEnumStart) && isCommentAtEnumStart(token); - const enumEndAllowed = Boolean(options.allowEnumEnd) && isCommentAtEnumEnd(token); - const moduleStartAllowed = Boolean(options.allowModuleStart) && isCommentAtModuleStart(token); - const moduleEndAllowed = Boolean(options.allowModuleEnd) && isCommentAtModuleEnd(token); - const exceptionStartAllowed = interfaceStartAllowed || - typeStartAllowed || - enumStartAllowed || - moduleStartAllowed; - const exceptionEndAllowed = interfaceEndAllowed || - typeEndAllowed || - enumEndAllowed || - moduleEndAllowed; - const previousTokenOrComment = sourceCode.getTokenBefore(token, { - includeComments: true, - }); - const nextTokenOrComment = sourceCode.getTokenAfter(token, { - includeComments: true, - }); - // check for newline before - if (!exceptionStartAllowed && - before && - !commentAndEmptyLines.has(prevLineNum) && - !(util.isCommentToken(previousTokenOrComment) && - util.isTokenOnSameLine(previousTokenOrComment, token))) { - const lineStart = token.range[0] - token.loc.start.column; - const range = [lineStart, lineStart]; - context.report({ - node: token, - messageId: 'before', - fix(fixer) { - return fixer.insertTextBeforeRange(range, '\n'); - }, - }); - } - // check for newline after - if (!exceptionEndAllowed && - after && - !commentAndEmptyLines.has(nextLineNum) && - !(util.isCommentToken(nextTokenOrComment) && - util.isTokenOnSameLine(token, nextTokenOrComment))) { - context.report({ - node: token, - messageId: 'after', - fix(fixer) { - return fixer.insertTextAfter(token, '\n'); - }, - }); - } - } - /** - * A custom report function for the baseRule to ignore false positive errors - * caused by TS-specific codes - */ - const customReport = descriptor => { - if ('node' in descriptor) { - if (descriptor.node.type === utils_1.AST_TOKEN_TYPES.Line || - descriptor.node.type === utils_1.AST_TOKEN_TYPES.Block) { - if (isCommentNearTSConstruct(descriptor.node)) { - return; - } - } - } - return context.report(descriptor); - }; - const customContext = { report: customReport }; - // we can't directly proxy `context` because its `report` property is non-configurable - // and non-writable. So we proxy `customContext` and redirect all - // property access to the original context except for `report` - const proxiedContext = new Proxy(customContext, { - get(target, path, receiver) { - if (path !== 'report') { - return Reflect.get(context, path, receiver); - } - return Reflect.get(target, path, receiver); - }, - }); - const rules = baseRule.create(proxiedContext); - return { - Program() { - rules.Program(); - comments.forEach(token => { - if (token.type === utils_1.AST_TOKEN_TYPES.Line) { - if (options.beforeLineComment || options.afterLineComment) { - checkForEmptyLine(token, { - after: options.afterLineComment, - before: options.beforeLineComment, - }); - } - } - else if (token.type === utils_1.AST_TOKEN_TYPES.Block) { - if (options.beforeBlockComment || options.afterBlockComment) { - checkForEmptyLine(token, { - after: options.afterBlockComment, - before: options.beforeBlockComment, - }); - } - } - }); - }, - }; - }, -}); -//# sourceMappingURL=lines-around-comment.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js.map deleted file mode 100644 index 30cee39e..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-around-comment.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lines-around-comment.js","sourceRoot":"","sources":["../../src/rules/lines-around-comment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA2E;AAE3E,8CAAgC;AAChC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,sBAAsB,CAAC,CAAC;AAK3D,MAAM,uBAAuB,GAC3B,8EAA8E,CAAC;AAEjF;;GAEG;AACH,SAAS,gBAAgB,CAAC,KAAe;IACvC,MAAM,UAAU,GAAG,KAAK;SACrB,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QACjB,IAAI,EAAE,IAA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F,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;QAE9C,OAAO;YACL,OAAO;gBACL,KAAK,CAAC,OAAO,EAAE,CAAC;gBAEhB,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;oBACvB,IAAI,KAAK,CAAC,IAAI,KAAK,uBAAe,CAAC,IAAI,EAAE;wBACvC,IAAI,OAAO,CAAC,iBAAiB,IAAI,OAAO,CAAC,gBAAgB,EAAE;4BACzD,iBAAiB,CAAC,KAAK,EAAE;gCACvB,KAAK,EAAE,OAAO,CAAC,gBAAgB;gCAC/B,MAAM,EAAE,OAAO,CAAC,iBAAiB;6BAClC,CAAC,CAAC;yBACJ;qBACF;yBAAM,IAAI,KAAK,CAAC,IAAI,KAAK,uBAAe,CAAC,KAAK,EAAE;wBAC/C,IAAI,OAAO,CAAC,kBAAkB,IAAI,OAAO,CAAC,iBAAiB,EAAE;4BAC3D,iBAAiB,CAAC,KAAK,EAAE;gCACvB,KAAK,EAAE,OAAO,CAAC,iBAAiB;gCAChC,MAAM,EAAE,OAAO,CAAC,kBAAkB;6BACnC,CAAC,CAAC;yBACJ;qBACF;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-between-class-members.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-between-class-members.js deleted file mode 100644 index bd16c507..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-between-class-members.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('lines-between-class-members'); -const schema = util.deepMerge(Object.assign({}, baseRule.meta.schema), { - 1: { - exceptAfterOverload: { - type: 'boolean', - default: true, - }, - }, -}); -exports.default = util.createRule({ - name: 'lines-between-class-members', - meta: { - type: 'layout', - docs: { - description: 'Require or disallow an empty line between class members', - recommended: false, - extendsBaseRule: true, - }, - fixable: 'whitespace', - hasSuggestions: baseRule.meta.hasSuggestions, - schema, - messages: baseRule.meta.messages, - }, - defaultOptions: [ - 'always', - { - exceptAfterOverload: true, - exceptAfterSingleLine: false, - }, - ], - create(context, [firstOption, secondOption]) { - const rules = baseRule.create(context); - const exceptAfterOverload = (secondOption === null || secondOption === void 0 ? void 0 : secondOption.exceptAfterOverload) && firstOption === 'always'; - function isOverload(node) { - return ((node.type === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition || - node.type === utils_1.AST_NODE_TYPES.MethodDefinition) && - node.value.type === utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression); - } - return { - ClassBody(node) { - const body = exceptAfterOverload - ? node.body.filter(node => !isOverload(node)) - : node.body; - rules.ClassBody(Object.assign(Object.assign({}, node), { body })); - }, - }; - }, -}); -//# sourceMappingURL=lines-between-class-members.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-between-class-members.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-between-class-members.js.map deleted file mode 100644 index 93be4676..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/lines-between-class-members.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lines-between-class-members.js","sourceRoot":"","sources":["../../src/rules/lines-between-class-members.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAChC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,6BAA6B,CAAC,CAAC;AAKlE,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,mBACtB,QAAQ,CAAC,IAAI,CAAC,MAAM,GACzB;IACE,CAAC,EAAE;QACD,mBAAmB,EAAE;YACnB,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,IAAI;SACd;KACF;CACF,CACF,CAAC;AAEF,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE;YACJ,WAAW,EAAE,yDAAyD;YACtE,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,OAAO,EAAE,YAAY;QACrB,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,MAAM;QACN,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;KACjC;IACD,cAAc,EAAE;QACd,QAAQ;QACR;YACE,mBAAmB,EAAE,IAAI;YACzB,qBAAqB,EAAE,KAAK;SAC7B;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC;QACzC,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACvC,MAAM,mBAAmB,GACvB,CAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,mBAAmB,KAAI,WAAW,KAAK,QAAQ,CAAC;QAEhE,SAAS,UAAU,CAAC,IAAmB;YACrC,OAAO,CACL,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,0BAA0B;gBACtD,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,CAAC;gBAChD,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,6BAA6B,CACjE,CAAC;QACJ,CAAC;QAED,OAAO;YACL,SAAS,CAAC,IAAI;gBACZ,MAAM,IAAI,GAAG,mBAAmB;oBAC9B,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;oBAC7C,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;gBAEd,KAAK,CAAC,SAAS,iCAAM,IAAI,KAAE,IAAI,IAAG,CAAC;YACrC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js deleted file mode 100644 index d15feccc..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js +++ /dev/null @@ -1,261 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const definition = { - type: 'object', - properties: { - multiline: { - type: 'object', - properties: { - delimiter: { enum: ['none', 'semi', 'comma'] }, - requireLast: { type: 'boolean' }, - }, - additionalProperties: false, - }, - singleline: { - type: 'object', - properties: { - // note can't have "none" for single line delimiter as it's invalid syntax - delimiter: { enum: ['semi', 'comma'] }, - requireLast: { type: 'boolean' }, - }, - additionalProperties: false, - }, - }, - additionalProperties: false, -}; -const isLastTokenEndOfLine = (token, line) => { - const positionInLine = token.loc.start.column; - return positionInLine === line.length - 1; -}; -const isCommentsEndOfLine = (token, comments, line) => { - if (!comments) { - return false; - } - if (comments.loc.end.line > token.loc.end.line) { - return true; - } - const positionInLine = comments.loc.end.column; - return positionInLine === line.length; -}; -const makeFixFunction = ({ optsNone, optsSemi, lastToken, commentsAfterLastToken, missingDelimiter, lastTokenLine, isSingleLine, }) => { - // if removing is the action but last token is not the end of the line - if (optsNone && - !isLastTokenEndOfLine(lastToken, lastTokenLine) && - !isCommentsEndOfLine(lastToken, commentsAfterLastToken, lastTokenLine) && - !isSingleLine) { - return null; - } - return (fixer) => { - if (optsNone) { - // remove the unneeded token - return fixer.remove(lastToken); - } - const token = optsSemi ? ';' : ','; - if (missingDelimiter) { - // add the missing delimiter - return fixer.insertTextAfter(lastToken, token); - } - // correct the current delimiter - return fixer.replaceText(lastToken, token); - }; -}; -exports.default = util.createRule({ - name: 'member-delimiter-style', - meta: { - type: 'layout', - docs: { - description: 'Require a specific member delimiter style for interfaces and type literals', - recommended: false, - }, - fixable: 'whitespace', - messages: { - unexpectedComma: 'Unexpected separator (,).', - unexpectedSemi: 'Unexpected separator (;).', - expectedComma: 'Expected a comma.', - expectedSemi: 'Expected a semicolon.', - }, - schema: [ - { - type: 'object', - properties: Object.assign({}, definition.properties, { - overrides: { - type: 'object', - properties: { - interface: definition, - typeLiteral: definition, - }, - additionalProperties: false, - }, - multilineDetection: { - enum: ['brackets', 'last-member'], - }, - }), - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - multiline: { - delimiter: 'semi', - requireLast: true, - }, - singleline: { - delimiter: 'semi', - requireLast: false, - }, - multilineDetection: 'brackets', - }, - ], - create(context, [options]) { - var _a; - const sourceCode = context.getSourceCode(); - // use the base options as the defaults for the cases - const baseOptions = options; - const overrides = (_a = baseOptions.overrides) !== null && _a !== void 0 ? _a : {}; - const interfaceOptions = util.deepMerge(baseOptions, overrides.interface); - const typeLiteralOptions = util.deepMerge(baseOptions, overrides.typeLiteral); - /** - * Check the last token in the given member. - * @param member the member to be evaluated. - * @param opts the options to be validated. - * @param isLast a flag indicating `member` is the last in the interface or type literal. - */ - function checkLastToken(member, opts, isLast) { - /** - * Resolves the boolean value for the given setting enum value - * @param type the option name - */ - function getOption(type) { - if (isLast && !opts.requireLast) { - // only turn the option on if its expecting no delimiter for the last member - return type === 'none'; - } - return opts.delimiter === type; - } - let messageId = null; - let missingDelimiter = false; - const lastToken = sourceCode.getLastToken(member, { - includeComments: false, - }); - if (!lastToken) { - return; - } - const commentsAfterLastToken = sourceCode - .getCommentsAfter(lastToken) - .pop(); - const sourceCodeLines = sourceCode.getLines(); - const lastTokenLine = sourceCodeLines[(lastToken === null || lastToken === void 0 ? void 0 : lastToken.loc.start.line) - 1]; - const optsSemi = getOption('semi'); - const optsComma = getOption('comma'); - const optsNone = getOption('none'); - if (lastToken.value === ';') { - if (optsComma) { - messageId = 'expectedComma'; - } - else if (optsNone) { - missingDelimiter = true; - messageId = 'unexpectedSemi'; - } - } - else if (lastToken.value === ',') { - if (optsSemi) { - messageId = 'expectedSemi'; - } - else if (optsNone) { - missingDelimiter = true; - messageId = 'unexpectedComma'; - } - } - else { - if (optsSemi) { - missingDelimiter = true; - messageId = 'expectedSemi'; - } - else if (optsComma) { - missingDelimiter = true; - messageId = 'expectedComma'; - } - } - if (messageId) { - context.report({ - node: lastToken, - loc: { - start: { - line: lastToken.loc.end.line, - column: lastToken.loc.end.column, - }, - end: { - line: lastToken.loc.end.line, - column: lastToken.loc.end.column, - }, - }, - messageId, - fix: makeFixFunction({ - optsNone, - optsSemi, - lastToken, - commentsAfterLastToken, - missingDelimiter, - lastTokenLine, - isSingleLine: opts.type === 'single-line', - }), - }); - } - } - /** - * Check the member separator being used matches the delimiter. - * @param {ASTNode} node the node to be evaluated. - */ - function checkMemberSeparatorStyle(node) { - const members = node.type === utils_1.AST_NODE_TYPES.TSInterfaceBody ? node.body : node.members; - let isSingleLine = node.loc.start.line === node.loc.end.line; - if (options.multilineDetection === 'last-member' && - !isSingleLine && - members.length > 0) { - const lastMember = members[members.length - 1]; - if (lastMember.loc.end.line === node.loc.end.line) { - isSingleLine = true; - } - } - const typeOpts = node.type === utils_1.AST_NODE_TYPES.TSInterfaceBody - ? interfaceOptions - : typeLiteralOptions; - const opts = isSingleLine - ? Object.assign(Object.assign({}, typeOpts.singleline), { type: 'single-line' }) : Object.assign(Object.assign({}, typeOpts.multiline), { type: 'multi-line' }); - members.forEach((member, index) => { - checkLastToken(member, opts !== null && opts !== void 0 ? opts : {}, index === members.length - 1); - }); - } - return { - TSInterfaceBody: checkMemberSeparatorStyle, - TSTypeLiteral: checkMemberSeparatorStyle, - }; - }, -}); -//# sourceMappingURL=member-delimiter-style.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js.map deleted file mode 100644 index 8f237ef4..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-delimiter-style.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":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AAU,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBAC/C,IAAI,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE;oBACjD,YAAY,GAAG,IAAI,CAAC;iBACrB;aACF;YAED,MAAM,QAAQ,GACZ,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe;gBAC1C,CAAC,CAAC,gBAAgB;gBAClB,CAAC,CAAC,kBAAkB,CAAC;YACzB,MAAM,IAAI,GAAG,YAAY;gBACvB,CAAC,iCAAM,QAAQ,CAAC,UAAU,KAAE,IAAI,EAAE,aAAa,IAC/C,CAAC,iCAAM,QAAQ,CAAC,SAAS,KAAE,IAAI,EAAE,YAAY,GAAE,CAAC;YAElD,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;gBAChC,cAAc,CAAC,MAAM,EAAE,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,EAAE,KAAK,KAAK,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;YACnE,CAAC,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,eAAe,EAAE,yBAAyB;YAC1C,aAAa,EAAE,yBAAyB;SACzC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js deleted file mode 100644 index 4f03fd0b..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js +++ /dev/null @@ -1,755 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultOrder = void 0; -const utils_1 = require("@typescript-eslint/utils"); -const natural_compare_lite_1 = __importDefault(require("natural-compare-lite")); -const util = __importStar(require("../util")); -const neverConfig = { - type: 'string', - enum: ['never'], -}; -const arrayConfig = (memberTypes) => ({ - type: 'array', - items: { - oneOf: [ - { - enum: memberTypes, - }, - { - type: 'array', - items: { - enum: memberTypes, - }, - }, - ], - }, -}); -const objectConfig = (memberTypes) => ({ - type: 'object', - properties: { - memberTypes: { - oneOf: [arrayConfig(memberTypes), neverConfig], - }, - order: { - type: 'string', - enum: [ - 'alphabetically', - 'alphabetically-case-insensitive', - 'as-written', - 'natural', - 'natural-case-insensitive', - ], - }, - optionalityOrder: { - type: 'string', - enum: ['optional-first', 'required-first'], - }, - }, - additionalProperties: false, -}); -exports.defaultOrder = [ - // Index signature - 'signature', - 'call-signature', - // Fields - 'public-static-field', - 'protected-static-field', - 'private-static-field', - '#private-static-field', - 'public-decorated-field', - 'protected-decorated-field', - 'private-decorated-field', - 'public-instance-field', - 'protected-instance-field', - 'private-instance-field', - '#private-instance-field', - 'public-abstract-field', - 'protected-abstract-field', - 'public-field', - 'protected-field', - 'private-field', - '#private-field', - 'static-field', - 'instance-field', - 'abstract-field', - 'decorated-field', - 'field', - // Static initialization - 'static-initialization', - // Constructors - 'public-constructor', - 'protected-constructor', - 'private-constructor', - 'constructor', - // Getters - 'public-static-get', - 'protected-static-get', - 'private-static-get', - '#private-static-get', - 'public-decorated-get', - 'protected-decorated-get', - 'private-decorated-get', - 'public-instance-get', - 'protected-instance-get', - 'private-instance-get', - '#private-instance-get', - 'public-abstract-get', - 'protected-abstract-get', - 'public-get', - 'protected-get', - 'private-get', - '#private-get', - 'static-get', - 'instance-get', - 'abstract-get', - 'decorated-get', - 'get', - // Setters - 'public-static-set', - 'protected-static-set', - 'private-static-set', - '#private-static-set', - 'public-decorated-set', - 'protected-decorated-set', - 'private-decorated-set', - 'public-instance-set', - 'protected-instance-set', - 'private-instance-set', - '#private-instance-set', - 'public-abstract-set', - 'protected-abstract-set', - 'public-set', - 'protected-set', - 'private-set', - '#private-set', - 'static-set', - 'instance-set', - 'abstract-set', - 'decorated-set', - 'set', - // Methods - 'public-static-method', - 'protected-static-method', - 'private-static-method', - '#private-static-method', - 'public-decorated-method', - 'protected-decorated-method', - 'private-decorated-method', - 'public-instance-method', - 'protected-instance-method', - 'private-instance-method', - '#private-instance-method', - 'public-abstract-method', - 'protected-abstract-method', - 'public-method', - 'protected-method', - 'private-method', - '#private-method', - 'static-method', - 'instance-method', - 'abstract-method', - 'decorated-method', - 'method', -]; -const allMemberTypes = Array.from([ - 'readonly-signature', - 'signature', - 'readonly-field', - 'field', - 'method', - 'call-signature', - 'constructor', - 'get', - 'set', - 'static-initialization', -].reduce((all, type) => { - all.add(type); - ['public', 'protected', 'private', '#private'].forEach(accessibility => { - if (type !== 'readonly-signature' && - type !== 'signature' && - type !== 'static-initialization' && - type !== 'call-signature' && - !(type === 'constructor' && accessibility === '#private')) { - all.add(`${accessibility}-${type}`); // e.g. `public-field` - } - // Only class instance fields, methods, get and set can have decorators attached to them - if (accessibility !== '#private' && - (type === 'readonly-field' || - type === 'field' || - type === 'method' || - type === 'get' || - type === 'set')) { - all.add(`${accessibility}-decorated-${type}`); - all.add(`decorated-${type}`); - } - if (type !== 'constructor' && - type !== 'readonly-signature' && - type !== 'signature' && - type !== 'call-signature') { - // There is no `static-constructor` or `instance-constructor` or `abstract-constructor` - if (accessibility === '#private' || accessibility === 'private') { - ['static', 'instance'].forEach(scope => { - all.add(`${scope}-${type}`); - all.add(`${accessibility}-${scope}-${type}`); - }); - } - else { - ['static', 'instance', 'abstract'].forEach(scope => { - all.add(`${scope}-${type}`); - all.add(`${accessibility}-${scope}-${type}`); - }); - } - } - }); - return all; -}, new Set())); -const functionExpressions = [ - utils_1.AST_NODE_TYPES.FunctionExpression, - utils_1.AST_NODE_TYPES.ArrowFunctionExpression, -]; -/** - * Gets the node type. - * - * @param node the node to be evaluated. - */ -function getNodeType(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition: - case utils_1.AST_NODE_TYPES.MethodDefinition: - return node.kind; - case utils_1.AST_NODE_TYPES.TSMethodSignature: - return 'method'; - case utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration: - return 'call-signature'; - case utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration: - return 'constructor'; - case utils_1.AST_NODE_TYPES.TSAbstractPropertyDefinition: - return node.readonly ? 'readonly-field' : 'field'; - case utils_1.AST_NODE_TYPES.PropertyDefinition: - return node.value && functionExpressions.includes(node.value.type) - ? 'method' - : node.readonly - ? 'readonly-field' - : 'field'; - case utils_1.AST_NODE_TYPES.TSPropertySignature: - return node.readonly ? 'readonly-field' : 'field'; - case utils_1.AST_NODE_TYPES.TSIndexSignature: - return node.readonly ? 'readonly-signature' : 'signature'; - case utils_1.AST_NODE_TYPES.StaticBlock: - return 'static-initialization'; - default: - return null; - } -} -/** - * Gets the raw string value of a member's name - */ -function getMemberRawName(member, sourceCode) { - const { name, type } = util.getNameFromMember(member, sourceCode); - if (type === util.MemberNameType.Quoted) { - return name.slice(1, -1); - } - if (type === util.MemberNameType.Private) { - return name.slice(1); - } - return name; -} -/** - * Gets the member name based on the member type. - * - * @param node the node to be evaluated. - * @param sourceCode - */ -function getMemberName(node, sourceCode) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSPropertySignature: - case utils_1.AST_NODE_TYPES.TSMethodSignature: - case utils_1.AST_NODE_TYPES.TSAbstractPropertyDefinition: - case utils_1.AST_NODE_TYPES.PropertyDefinition: - return getMemberRawName(node, sourceCode); - case utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition: - case utils_1.AST_NODE_TYPES.MethodDefinition: - return node.kind === 'constructor' - ? 'constructor' - : getMemberRawName(node, sourceCode); - case utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration: - return 'new'; - case utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration: - return 'call'; - case utils_1.AST_NODE_TYPES.TSIndexSignature: - return util.getNameFromIndexSignature(node); - case utils_1.AST_NODE_TYPES.StaticBlock: - return 'static block'; - default: - return null; - } -} -/** - * Returns true if the member is optional based on the member type. - * - * @param node the node to be evaluated. - * - * @returns Whether the member is optional, or false if it cannot be optional at all. - */ -function isMemberOptional(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSPropertySignature: - case utils_1.AST_NODE_TYPES.TSMethodSignature: - case utils_1.AST_NODE_TYPES.TSAbstractPropertyDefinition: - case utils_1.AST_NODE_TYPES.PropertyDefinition: - case utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition: - case utils_1.AST_NODE_TYPES.MethodDefinition: - return !!node.optional; - } - return false; -} -/** - * Gets the calculated rank using the provided method definition. - * The algorithm is as follows: - * - Get the rank based on the accessibility-scope-type name, e.g. public-instance-field - * - If there is no order for accessibility-scope-type, then strip out the accessibility. - * - If there is no order for scope-type, then strip out the scope. - * - If there is no order for type, then return -1 - * @param memberGroups the valid names to be validated. - * @param orderConfig the current order to be validated. - * - * @return Index of the matching member type in the order configuration. - */ -function getRankOrder(memberGroups, orderConfig) { - let rank = -1; - const stack = memberGroups.slice(); // Get a copy of the member groups - while (stack.length > 0 && rank === -1) { - const memberGroup = stack.shift(); - rank = orderConfig.findIndex(memberType => Array.isArray(memberType) - ? memberType.includes(memberGroup) - : memberType === memberGroup); - } - return rank; -} -function getAccessibility(node) { - var _a; - if ('accessibility' in node && node.accessibility) { - return node.accessibility; - } - if ('key' in node && ((_a = node.key) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.PrivateIdentifier) { - return '#private'; - } - return 'public'; -} -/** - * Gets the rank of the node given the order. - * @param node the node to be evaluated. - * @param orderConfig the current order to be validated. - * @param supportsModifiers a flag indicating whether the type supports modifiers (scope or accessibility) or not. - */ -function getRank(node, orderConfig, supportsModifiers) { - const type = getNodeType(node); - if (type == null) { - // shouldn't happen but just in case, put it on the end - return orderConfig.length - 1; - } - const abstract = node.type === utils_1.AST_NODE_TYPES.TSAbstractPropertyDefinition || - node.type === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition; - const scope = 'static' in node && node.static - ? 'static' - : abstract - ? 'abstract' - : 'instance'; - const accessibility = getAccessibility(node); - // Collect all existing member groups that apply to this node... - // (e.g. 'public-instance-field', 'instance-field', 'public-field', 'constructor' etc.) - const memberGroups = []; - if (supportsModifiers) { - const decorated = 'decorators' in node && node.decorators.length > 0; - if (decorated && - (type === 'readonly-field' || - type === 'field' || - type === 'method' || - type === 'get' || - type === 'set')) { - memberGroups.push(`${accessibility}-decorated-${type}`); - memberGroups.push(`decorated-${type}`); - if (type === 'readonly-field') { - memberGroups.push(`${accessibility}-decorated-field`); - memberGroups.push(`decorated-field`); - } - } - if (type !== 'readonly-signature' && - type !== 'signature' && - type !== 'static-initialization') { - if (type !== 'constructor') { - // Constructors have no scope - memberGroups.push(`${accessibility}-${scope}-${type}`); - memberGroups.push(`${scope}-${type}`); - if (type === 'readonly-field') { - memberGroups.push(`${accessibility}-${scope}-field`); - memberGroups.push(`${scope}-field`); - } - } - memberGroups.push(`${accessibility}-${type}`); - if (type === 'readonly-field') { - memberGroups.push(`${accessibility}-field`); - } - } - } - memberGroups.push(type); - if (type === 'readonly-signature') { - memberGroups.push('signature'); - } - else if (type === 'readonly-field') { - memberGroups.push('field'); - } - // ...then get the rank order for those member groups based on the node - return getRankOrder(memberGroups, orderConfig); -} -/** - * Gets the lowest possible rank(s) higher than target. - * e.g. given the following order: - * ... - * public-static-method - * protected-static-method - * private-static-method - * public-instance-method - * protected-instance-method - * private-instance-method - * ... - * and considering that a public-instance-method has already been declared, so ranks contains - * public-instance-method, then the lowest possible rank for public-static-method is - * public-instance-method. - * If a lowest possible rank is a member group, a comma separated list of ranks is returned. - * @param ranks the existing ranks in the object. - * @param target the target rank. - * @param order the current order to be validated. - * @returns the name(s) of the lowest possible rank without dashes (-). - */ -function getLowestRank(ranks, target, order) { - let lowest = ranks[ranks.length - 1]; - ranks.forEach(rank => { - if (rank > target) { - lowest = Math.min(lowest, rank); - } - }); - const lowestRank = order[lowest]; - const lowestRanks = Array.isArray(lowestRank) ? lowestRank : [lowestRank]; - return lowestRanks.map(rank => rank.replace(/-/g, ' ')).join(', '); -} -exports.default = util.createRule({ - name: 'member-ordering', - meta: { - type: 'suggestion', - docs: { - description: 'Require a consistent member declaration order', - recommended: false, - }, - messages: { - incorrectOrder: 'Member {{member}} should be declared before member {{beforeMember}}.', - incorrectGroupOrder: 'Member {{name}} should be declared before all {{rank}} definitions.', - incorrectRequiredMembersOrder: `Member {{member}} should be declared after all {{optionalOrRequired}} members.`, - }, - schema: [ - { - type: 'object', - properties: { - default: { - oneOf: [ - neverConfig, - arrayConfig(allMemberTypes), - objectConfig(allMemberTypes), - ], - }, - classes: { - oneOf: [ - neverConfig, - arrayConfig(allMemberTypes), - objectConfig(allMemberTypes), - ], - }, - classExpressions: { - oneOf: [ - neverConfig, - arrayConfig(allMemberTypes), - objectConfig(allMemberTypes), - ], - }, - interfaces: { - oneOf: [ - neverConfig, - arrayConfig([ - 'readonly-signature', - 'signature', - 'readonly-field', - 'field', - 'method', - 'constructor', - ]), - objectConfig([ - 'readonly-signature', - 'signature', - 'readonly-field', - 'field', - 'method', - 'constructor', - ]), - ], - }, - typeLiterals: { - oneOf: [ - neverConfig, - arrayConfig([ - 'readonly-signature', - 'signature', - 'readonly-field', - 'field', - 'method', - 'constructor', - ]), - objectConfig([ - 'readonly-signature', - 'signature', - 'readonly-field', - 'field', - 'method', - 'constructor', - ]), - ], - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - default: exports.defaultOrder, - }, - ], - create(context, [options]) { - /** - * Checks if the member groups are correctly sorted. - * - * @param members Members to be validated. - * @param groupOrder Group order to be validated. - * @param supportsModifiers A flag indicating whether the type supports modifiers (scope or accessibility) or not. - * - * @return Array of member groups or null if one of the groups is not correctly sorted. - */ - function checkGroupSort(members, groupOrder, supportsModifiers) { - const previousRanks = []; - const memberGroups = []; - let isCorrectlySorted = true; - // Find first member which isn't correctly sorted - members.forEach(member => { - const rank = getRank(member, groupOrder, supportsModifiers); - const name = getMemberName(member, context.getSourceCode()); - const rankLastMember = previousRanks[previousRanks.length - 1]; - if (rank === -1) { - return; - } - // Works for 1st item because x < undefined === false for any x (typeof string) - if (rank < rankLastMember) { - context.report({ - node: member, - messageId: 'incorrectGroupOrder', - data: { - name, - rank: getLowestRank(previousRanks, rank, groupOrder), - }, - }); - isCorrectlySorted = false; - } - else if (rank === rankLastMember) { - // Same member group --> Push to existing member group array - memberGroups[memberGroups.length - 1].push(member); - } - else { - // New member group --> Create new member group array - previousRanks.push(rank); - memberGroups.push([member]); - } - }); - return isCorrectlySorted ? memberGroups : null; - } - /** - * Checks if the members are alphabetically sorted. - * - * @param members Members to be validated. - * @param caseSensitive indicates if the alpha ordering is case sensitive or not. - * - * @return True if all members are correctly sorted. - */ - function checkAlphaSort(members, order) { - let previousName = ''; - let isCorrectlySorted = true; - // Find first member which isn't correctly sorted - members.forEach(member => { - const name = getMemberName(member, context.getSourceCode()); - // Note: Not all members have names - if (name) { - if (naturalOutOfOrder(name, previousName, order)) { - context.report({ - node: member, - messageId: 'incorrectOrder', - data: { - member: name, - beforeMember: previousName, - }, - }); - isCorrectlySorted = false; - } - previousName = name; - } - }); - return isCorrectlySorted; - } - function naturalOutOfOrder(name, previousName, order) { - switch (order) { - case 'alphabetically': - return name < previousName; - case 'alphabetically-case-insensitive': - return name.toLowerCase() < previousName.toLowerCase(); - case 'natural': - return (0, natural_compare_lite_1.default)(name, previousName) !== 1; - case 'natural-case-insensitive': - return ((0, natural_compare_lite_1.default)(name.toLowerCase(), previousName.toLowerCase()) !== 1); - } - } - /** - * Checks if the order of optional and required members is correct based - * on the given 'required' parameter. - * - * @param members Members to be validated. - * @param optionalityOrder Where to place optional members, if not intermixed. - * - * @return True if all required and optional members are correctly sorted. - */ - function checkRequiredOrder(members, optionalityOrder) { - const switchIndex = members.findIndex((member, i) => i && isMemberOptional(member) !== isMemberOptional(members[i - 1])); - const report = (member) => context.report({ - messageId: 'incorrectRequiredMembersOrder', - loc: member.loc, - data: { - member: getMemberName(member, context.getSourceCode()), - optionalOrRequired: optionalityOrder === 'required-first' ? 'required' : 'optional', - }, - }); - // if the optionality of the first item is correct (based on optionalityOrder) - // then the first 0 inclusive to switchIndex exclusive members all - // have the correct optionality - if (isMemberOptional(members[0]) !== - (optionalityOrder === 'optional-first')) { - report(members[0]); - return false; - } - for (let i = switchIndex + 1; i < members.length; i++) { - if (isMemberOptional(members[i]) !== - isMemberOptional(members[switchIndex])) { - report(members[switchIndex]); - return false; - } - } - return true; - } - /** - * Validates if all members are correctly sorted. - * - * @param members Members to be validated. - * @param orderConfig Order config to be validated. - * @param supportsModifiers A flag indicating whether the type supports modifiers (scope or accessibility) or not. - */ - function validateMembersOrder(members, orderConfig, supportsModifiers) { - if (orderConfig === 'never') { - return; - } - // Standardize config - let order; - let memberTypes; - let optionalityOrder; - // returns true if everything is good and false if an error was reported - const checkOrder = (memberSet) => { - const hasAlphaSort = !!(order && order !== 'as-written'); - // Check order - if (Array.isArray(memberTypes)) { - const grouped = checkGroupSort(memberSet, memberTypes, supportsModifiers); - if (grouped == null) { - return false; - } - if (hasAlphaSort) { - return !grouped.some(groupMember => !checkAlphaSort(groupMember, order)); - } - } - else if (hasAlphaSort) { - return checkAlphaSort(memberSet, order); - } - return true; - }; - if (Array.isArray(orderConfig)) { - memberTypes = orderConfig; - } - else { - order = orderConfig.order; - memberTypes = orderConfig.memberTypes; - optionalityOrder = orderConfig.optionalityOrder; - } - if (!optionalityOrder) { - checkOrder(members); - return; - } - const switchIndex = members.findIndex((member, i) => i && isMemberOptional(member) !== isMemberOptional(members[i - 1])); - if (switchIndex !== -1) { - if (!checkRequiredOrder(members, optionalityOrder)) { - return; - } - checkOrder(members.slice(0, switchIndex)); - checkOrder(members.slice(switchIndex)); - } - else { - checkOrder(members); - } - } - return { - ClassDeclaration(node) { - var _a; - validateMembersOrder(node.body.body, (_a = options.classes) !== null && _a !== void 0 ? _a : options.default, true); - }, - ClassExpression(node) { - var _a; - validateMembersOrder(node.body.body, (_a = options.classExpressions) !== null && _a !== void 0 ? _a : options.default, true); - }, - TSInterfaceDeclaration(node) { - var _a; - validateMembersOrder(node.body.body, (_a = options.interfaces) !== null && _a !== void 0 ? _a : options.default, false); - }, - TSTypeLiteral(node) { - var _a; - validateMembersOrder(node.members, (_a = options.typeLiterals) !== null && _a !== void 0 ? _a : options.default, false); - }, - }; - }, -}); -//# sourceMappingURL=member-ordering.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map deleted file mode 100644 index 6bbb09e2..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/member-ordering.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"member-ordering.js","sourceRoot":"","sources":["../../src/rules/member-ordering.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,gFAAkD;AAElD,8CAAgC;AA8EhC,MAAM,WAAW,GAA2B;IAC1C,IAA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gBAAgB,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CACrE,CAAC;YAEF,IAAI,WAAW,KAAK,CAAC,CAAC,EAAE;gBACtB,IAAI,CAAC,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,CAAC,EAAE;oBAClD,OAAO;iBACR;gBACD,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC;gBAC1C,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;aACxC;iBAAM;gBACL,UAAU,CAAC,OAAO,CAAC,CAAC;aACrB;QACH,CAAC;QAED,OAAO;YACL,gBAAgB,CAAC,IAAI;;gBACnB,oBAAoB,CAClB,IAAI,CAAC,IAAI,CAAC,IAAI,EACd,MAAA,OAAO,CAAC,OAAO,mCAAI,OAAO,CAAC,OAAQ,EACnC,IAAI,CACL,CAAC;YACJ,CAAC;YACD,eAAe,CAAC,IAAI;;gBAClB,oBAAoB,CAClB,IAAI,CAAC,IAAI,CAAC,IAAI,EACd,MAAA,OAAO,CAAC,gBAAgB,mCAAI,OAAO,CAAC,OAAQ,EAC5C,IAAI,CACL,CAAC;YACJ,CAAC;YACD,sBAAsB,CAAC,IAAI;;gBACzB,oBAAoB,CAClB,IAAI,CAAC,IAAI,CAAC,IAAI,EACd,MAAA,OAAO,CAAC,UAAU,mCAAI,OAAO,CAAC,OAAQ,EACtC,KAAK,CACN,CAAC;YACJ,CAAC;YACD,aAAa,CAAC,IAAI;;gBAChB,oBAAoB,CAClB,IAAI,CAAC,OAAO,EACZ,MAAA,OAAO,CAAC,YAAY,mCAAI,OAAO,CAAC,OAAQ,EACxC,KAAK,CACN,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js deleted file mode 100644 index 66b81ce1..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js +++ /dev/null @@ -1,201 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'method-signature-style', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce using a particular method signature syntax', - recommended: false, - }, - fixable: 'code', - messages: { - errorMethod: 'Shorthand method signature is forbidden. Use a function property instead.', - errorProperty: 'Function property signature is forbidden. Use a method shorthand instead.', - }, - schema: [ - { - enum: ['property', 'method'], - }, - ], - }, - defaultOptions: ['property'], - create(context, [mode]) { - const sourceCode = context.getSourceCode(); - function getMethodKey(node) { - let key = sourceCode.getText(node.key); - if (node.computed) { - key = `[${key}]`; - } - if (node.optional) { - key = `${key}?`; - } - if (node.readonly) { - key = `readonly ${key}`; - } - return key; - } - function getMethodParams(node) { - let params = '()'; - if (node.params.length > 0) { - const openingParen = util.nullThrows(sourceCode.getTokenBefore(node.params[0], util.isOpeningParenToken), 'Missing opening paren before first parameter'); - const closingParen = util.nullThrows(sourceCode.getTokenAfter(node.params[node.params.length - 1], util.isClosingParenToken), 'Missing closing paren after last parameter'); - params = sourceCode.text.substring(openingParen.range[0], closingParen.range[1]); - } - if (node.typeParameters != null) { - const typeParams = sourceCode.getText(node.typeParameters); - params = `${typeParams}${params}`; - } - return params; - } - function getMethodReturnType(node) { - return node.returnType == null - ? // if the method has no return type, it implicitly has an `any` return type - // we just make it explicit here so we can do the fix - 'any' - : sourceCode.getText(node.returnType.typeAnnotation); - } - function getDelimiter(node) { - const lastToken = sourceCode.getLastToken(node); - if (lastToken && - (util.isSemicolonToken(lastToken) || util.isCommaToken(lastToken))) { - return lastToken.value; - } - return ''; - } - function isNodeParentModuleDeclaration(node) { - if (!node.parent) { - return false; - } - if (node.parent.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration) { - return true; - } - if (node.parent.type === utils_1.AST_NODE_TYPES.Program) { - return false; - } - return isNodeParentModuleDeclaration(node.parent); - } - return Object.assign(Object.assign({}, (mode === 'property' && { - TSMethodSignature(methodNode) { - if (methodNode.kind !== 'method') { - return; - } - const parent = methodNode.parent; - const members = (parent === null || parent === void 0 ? void 0 : parent.type) === utils_1.AST_NODE_TYPES.TSInterfaceBody - ? parent.body - : (parent === null || parent === void 0 ? void 0 : parent.type) === utils_1.AST_NODE_TYPES.TSTypeLiteral - ? parent.members - : []; - const duplicatedKeyMethodNodes = members.filter((element) => element.type === utils_1.AST_NODE_TYPES.TSMethodSignature && - element !== methodNode && - getMethodKey(element) === getMethodKey(methodNode)); - const isParentModule = isNodeParentModuleDeclaration(methodNode); - if (duplicatedKeyMethodNodes.length > 0) { - if (isParentModule) { - context.report({ - node: methodNode, - messageId: 'errorMethod', - }); - } - else { - context.report({ - node: methodNode, - messageId: 'errorMethod', - *fix(fixer) { - const methodNodes = [ - methodNode, - ...duplicatedKeyMethodNodes, - ].sort((a, b) => (a.range[0] < b.range[0] ? -1 : 1)); - const typeString = methodNodes - .map(node => { - const params = getMethodParams(node); - const returnType = getMethodReturnType(node); - return `(${params} => ${returnType})`; - }) - .join(' & '); - const key = getMethodKey(methodNode); - const delimiter = getDelimiter(methodNode); - yield fixer.replaceText(methodNode, `${key}: ${typeString}${delimiter}`); - for (const node of duplicatedKeyMethodNodes) { - const lastToken = sourceCode.getLastToken(node); - if (lastToken) { - const nextToken = sourceCode.getTokenAfter(lastToken); - if (nextToken) { - yield fixer.remove(node); - yield fixer.replaceTextRange([lastToken.range[1], nextToken.range[0]], ''); - } - } - } - }, - }); - } - return; - } - if (isParentModule) { - context.report({ - node: methodNode, - messageId: 'errorMethod', - }); - } - else { - context.report({ - node: methodNode, - messageId: 'errorMethod', - fix: fixer => { - const key = getMethodKey(methodNode); - const params = getMethodParams(methodNode); - const returnType = getMethodReturnType(methodNode); - const delimiter = getDelimiter(methodNode); - return fixer.replaceText(methodNode, `${key}: ${params} => ${returnType}${delimiter}`); - }, - }); - } - }, - })), (mode === 'method' && { - TSPropertySignature(propertyNode) { - var _a; - const typeNode = (_a = propertyNode.typeAnnotation) === null || _a === void 0 ? void 0 : _a.typeAnnotation; - if ((typeNode === null || typeNode === void 0 ? void 0 : typeNode.type) !== utils_1.AST_NODE_TYPES.TSFunctionType) { - return; - } - context.report({ - node: propertyNode, - messageId: 'errorProperty', - fix: fixer => { - const key = getMethodKey(propertyNode); - const params = getMethodParams(typeNode); - const returnType = getMethodReturnType(typeNode); - const delimiter = getDelimiter(propertyNode); - return fixer.replaceText(propertyNode, `${key}${params}: ${returnType}${delimiter}`); - }, - }); - }, - })); - }, -}); -//# sourceMappingURL=method-signature-style.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js.map deleted file mode 100644 index 43b6fb00..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/method-signature-style.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"method-signature-style.js","sourceRoot":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,GAAG,EAAE,KAAK,CAAC,EAAE;wBACX,MAAM,GAAG,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;wBACvC,MAAM,MAAM,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;wBACzC,MAAM,UAAU,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;wBACjD,MAAM,SAAS,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;wBAC7C,OAAO,KAAK,CAAC,WAAW,CACtB,YAAY,EACZ,GAAG,GAAG,GAAG,MAAM,KAAK,UAAU,GAAG,SAAS,EAAE,CAC7C,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC,EACF;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js deleted file mode 100644 index 8bfce145..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js +++ /dev/null @@ -1,93 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UnderscoreOptions = exports.TypeModifiers = exports.Selectors = exports.PredefinedFormats = exports.Modifiers = exports.MetaSelectors = void 0; -var PredefinedFormats; -(function (PredefinedFormats) { - PredefinedFormats[PredefinedFormats["camelCase"] = 1] = "camelCase"; - PredefinedFormats[PredefinedFormats["strictCamelCase"] = 2] = "strictCamelCase"; - PredefinedFormats[PredefinedFormats["PascalCase"] = 3] = "PascalCase"; - PredefinedFormats[PredefinedFormats["StrictPascalCase"] = 4] = "StrictPascalCase"; - PredefinedFormats[PredefinedFormats["snake_case"] = 5] = "snake_case"; - PredefinedFormats[PredefinedFormats["UPPER_CASE"] = 6] = "UPPER_CASE"; -})(PredefinedFormats || (exports.PredefinedFormats = PredefinedFormats = {})); -var UnderscoreOptions; -(function (UnderscoreOptions) { - UnderscoreOptions[UnderscoreOptions["forbid"] = 1] = "forbid"; - UnderscoreOptions[UnderscoreOptions["allow"] = 2] = "allow"; - UnderscoreOptions[UnderscoreOptions["require"] = 3] = "require"; - // special cases as it's common practice to use double underscore - UnderscoreOptions[UnderscoreOptions["requireDouble"] = 4] = "requireDouble"; - UnderscoreOptions[UnderscoreOptions["allowDouble"] = 5] = "allowDouble"; - UnderscoreOptions[UnderscoreOptions["allowSingleOrDouble"] = 6] = "allowSingleOrDouble"; -})(UnderscoreOptions || (exports.UnderscoreOptions = UnderscoreOptions = {})); -var Selectors; -(function (Selectors) { - // variableLike - Selectors[Selectors["variable"] = 1] = "variable"; - Selectors[Selectors["function"] = 2] = "function"; - Selectors[Selectors["parameter"] = 4] = "parameter"; - // memberLike - Selectors[Selectors["parameterProperty"] = 8] = "parameterProperty"; - Selectors[Selectors["accessor"] = 16] = "accessor"; - Selectors[Selectors["enumMember"] = 32] = "enumMember"; - Selectors[Selectors["classMethod"] = 64] = "classMethod"; - Selectors[Selectors["objectLiteralMethod"] = 128] = "objectLiteralMethod"; - Selectors[Selectors["typeMethod"] = 256] = "typeMethod"; - Selectors[Selectors["classProperty"] = 512] = "classProperty"; - Selectors[Selectors["objectLiteralProperty"] = 1024] = "objectLiteralProperty"; - Selectors[Selectors["typeProperty"] = 2048] = "typeProperty"; - // typeLike - Selectors[Selectors["class"] = 4096] = "class"; - Selectors[Selectors["interface"] = 8192] = "interface"; - Selectors[Selectors["typeAlias"] = 16384] = "typeAlias"; - Selectors[Selectors["enum"] = 32768] = "enum"; - Selectors[Selectors["typeParameter"] = 131072] = "typeParameter"; -})(Selectors || (exports.Selectors = Selectors = {})); -var MetaSelectors; -(function (MetaSelectors) { - MetaSelectors[MetaSelectors["default"] = -1] = "default"; - MetaSelectors[MetaSelectors["variableLike"] = 7] = "variableLike"; - MetaSelectors[MetaSelectors["memberLike"] = 4088] = "memberLike"; - MetaSelectors[MetaSelectors["typeLike"] = 192512] = "typeLike"; - MetaSelectors[MetaSelectors["method"] = 448] = "method"; - MetaSelectors[MetaSelectors["property"] = 3584] = "property"; -})(MetaSelectors || (exports.MetaSelectors = MetaSelectors = {})); -var Modifiers; -(function (Modifiers) { - // const variable - Modifiers[Modifiers["const"] = 1] = "const"; - // readonly members - Modifiers[Modifiers["readonly"] = 2] = "readonly"; - // static members - Modifiers[Modifiers["static"] = 4] = "static"; - // member accessibility - Modifiers[Modifiers["public"] = 8] = "public"; - Modifiers[Modifiers["protected"] = 16] = "protected"; - Modifiers[Modifiers["private"] = 32] = "private"; - Modifiers[Modifiers["#private"] = 64] = "#private"; - Modifiers[Modifiers["abstract"] = 128] = "abstract"; - // destructured variable - Modifiers[Modifiers["destructured"] = 256] = "destructured"; - // variables declared in the top-level scope - Modifiers[Modifiers["global"] = 512] = "global"; - // things that are exported - Modifiers[Modifiers["exported"] = 1024] = "exported"; - // things that are unused - Modifiers[Modifiers["unused"] = 2048] = "unused"; - // properties that require quoting - Modifiers[Modifiers["requiresQuotes"] = 4096] = "requiresQuotes"; - // class members that are overridden - Modifiers[Modifiers["override"] = 8192] = "override"; - // class methods, object function properties, or functions that are async via the `async` keyword - Modifiers[Modifiers["async"] = 16384] = "async"; - // make sure TypeModifiers starts at Modifiers + 1 or else sorting won't work -})(Modifiers || (exports.Modifiers = Modifiers = {})); -var TypeModifiers; -(function (TypeModifiers) { - TypeModifiers[TypeModifiers["boolean"] = 32768] = "boolean"; - TypeModifiers[TypeModifiers["string"] = 65536] = "string"; - TypeModifiers[TypeModifiers["number"] = 131072] = "number"; - TypeModifiers[TypeModifiers["function"] = 262144] = "function"; - TypeModifiers[TypeModifiers["array"] = 524288] = "array"; -})(TypeModifiers || (exports.TypeModifiers = TypeModifiers = {})); -//# sourceMappingURL=enums.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js.map deleted file mode 100644 index cb06ce31..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/enums.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/enums.ts"],"names":[],"mappings":";;;AAAA,IAAK,iBAOJ;AAPD,WAAK,iBAAiB;IACpB,mEAAa,CAAA;IACb,+EAAe,CAAA;IACf,qEAAU,CAAA;IACV,iFAAgB,CAAA;IAChB,qEAAU,CAAA;IACV,qEAAU,CAAA;AACZ,CAAC,EAPI,iBAAiB,iCAAjB,iBAAiB,QAOrB;AAGD,IAAK,iBASJ;AATD,WAAK,iBAAiB;IACpB,6DAAU,CAAA;IACV,2DAAK,CAAA;IACL,+DAAO,CAAA;IAEP,iEAAiE;IACjE,2EAAa,CAAA;IACb,uEAAW,CAAA;IACX,uFAAmB,CAAA;AACrB,CAAC,EATI,iBAAiB,iCAAjB,iBAAiB,QASrB;AAGD,IAAK,SAuBJ;AAvBD,WAAK,SAAS;IACZ,eAAe;IACf,iDAAiB,CAAA;IACjB,iDAAiB,CAAA;IACjB,mDAAkB,CAAA;IAElB,aAAa;IACb,mEAA0B,CAAA;IAC1B,kDAAiB,CAAA;IACjB,sDAAmB,CAAA;IACnB,wDAAoB,CAAA;IACpB,yEAA4B,CAAA;IAC5B,uDAAmB,CAAA;IACnB,6DAAsB,CAAA;IACtB,8EAA+B,CAAA;IAC/B,4DAAsB,CAAA;IAEtB,WAAW;IACX,8CAAe,CAAA;IACf,sDAAmB,CAAA;IACnB,uDAAmB,CAAA;IACnB,6CAAc,CAAA;IACd,gEAAuB,CAAA;AACzB,CAAC,EAvBI,SAAS,yBAAT,SAAS,QAuBb;AAGD,IAAK,aA8BJ;AA9BD,WAAK,aAAa;IAChB,wDAAY,CAAA;IACZ,iEAGqB,CAAA;IACrB,gEASoB,CAAA;IACpB,8DAKyB,CAAA;IACzB,uDAGsB,CAAA;IACtB,4DAGwB,CAAA;AAC1B,CAAC,EA9BI,aAAa,6BAAb,aAAa,QA8BjB;AAID,IAAK,SA6BJ;AA7BD,WAAK,SAAS;IACZ,iBAAiB;IACjB,2CAAc,CAAA;IACd,mBAAmB;IACnB,iDAAiB,CAAA;IACjB,iBAAiB;IACjB,6CAAe,CAAA;IACf,uBAAuB;IACvB,6CAAe,CAAA;IACf,oDAAkB,CAAA;IAClB,gDAAgB,CAAA;IAChB,kDAAmB,CAAA;IACnB,mDAAiB,CAAA;IACjB,wBAAwB;IACxB,2DAAqB,CAAA;IACrB,4CAA4C;IAC5C,+CAAe,CAAA;IACf,2BAA2B;IAC3B,oDAAkB,CAAA;IAClB,yBAAyB;IACzB,gDAAgB,CAAA;IAChB,kCAAkC;IAClC,gEAAwB,CAAA;IACxB,oCAAoC;IACpC,oDAAkB,CAAA;IAClB,iGAAiG;IACjG,+CAAe,CAAA;IAEf,6EAA6E;AAC/E,CAAC,EA7BI,SAAS,yBAAT,SAAS,QA6Bb;AAGD,IAAK,aAMJ;AAND,WAAK,aAAa;IAChB,2DAAiB,CAAA;IACjB,yDAAgB,CAAA;IAChB,0DAAgB,CAAA;IAChB,8DAAkB,CAAA;IAClB,wDAAe,CAAA;AACjB,CAAC,EANI,aAAa,6BAAb,aAAa,QAMjB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js deleted file mode 100644 index ae4c3b28..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js +++ /dev/null @@ -1,91 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PredefinedFormatToCheckFunction = void 0; -const enums_1 = require("./enums"); -/* -These format functions are taken from `tslint-consistent-codestyle/naming-convention`: -https://github.com/ajafff/tslint-consistent-codestyle/blob/ab156cc8881bcc401236d999f4ce034b59039e81/rules/namingConventionRule.ts#L603-L645 - -The license for the code can be viewed here: -https://github.com/ajafff/tslint-consistent-codestyle/blob/ab156cc8881bcc401236d999f4ce034b59039e81/LICENSE -*/ -/* -Why not regex here? Because it's actually really, really difficult to create a regex to handle -all of the unicode cases, and we have many non-english users that use non-english characters. -https://gist.github.com/mathiasbynens/6334847 -*/ -function isPascalCase(name) { - return (name.length === 0 || - (name[0] === name[0].toUpperCase() && !name.includes('_'))); -} -function isStrictPascalCase(name) { - return (name.length === 0 || - (name[0] === name[0].toUpperCase() && hasStrictCamelHumps(name, true))); -} -function isCamelCase(name) { - return (name.length === 0 || - (name[0] === name[0].toLowerCase() && !name.includes('_'))); -} -function isStrictCamelCase(name) { - return (name.length === 0 || - (name[0] === name[0].toLowerCase() && hasStrictCamelHumps(name, false))); -} -function hasStrictCamelHumps(name, isUpper) { - function isUppercaseChar(char) { - return char === char.toUpperCase() && char !== char.toLowerCase(); - } - if (name.startsWith('_')) { - return false; - } - for (let i = 1; i < name.length; ++i) { - if (name[i] === '_') { - return false; - } - if (isUpper === isUppercaseChar(name[i])) { - if (isUpper) { - return false; - } - } - else { - isUpper = !isUpper; - } - } - return true; -} -function isSnakeCase(name) { - return (name.length === 0 || - (name === name.toLowerCase() && validateUnderscores(name))); -} -function isUpperCase(name) { - return (name.length === 0 || - (name === name.toUpperCase() && validateUnderscores(name))); -} -/** Check for leading trailing and adjacent underscores */ -function validateUnderscores(name) { - if (name.startsWith('_')) { - return false; - } - let wasUnderscore = false; - for (let i = 1; i < name.length; ++i) { - if (name[i] === '_') { - if (wasUnderscore) { - return false; - } - wasUnderscore = true; - } - else { - wasUnderscore = false; - } - } - return !wasUnderscore; -} -const PredefinedFormatToCheckFunction = { - [enums_1.PredefinedFormats.PascalCase]: isPascalCase, - [enums_1.PredefinedFormats.StrictPascalCase]: isStrictPascalCase, - [enums_1.PredefinedFormats.camelCase]: isCamelCase, - [enums_1.PredefinedFormats.strictCamelCase]: isStrictCamelCase, - [enums_1.PredefinedFormats.UPPER_CASE]: isUpperCase, - [enums_1.PredefinedFormats.snake_case]: isSnakeCase, -}; -exports.PredefinedFormatToCheckFunction = PredefinedFormatToCheckFunction; -//# sourceMappingURL=format.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js.map deleted file mode 100644 index 939f505d..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/format.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"format.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/format.ts"],"names":[],"mappings":";;;AAAA,mCAA4C;AAE5C;;;;;;EAME;AAEF;;;;EAIE;AAEF,SAAS,YAAY,CAAC,IAAY;IAChC,OAAO,CACL,IAAI,CAAC,MAAM,KAAK,CAAC;QACjB,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAC3D,CAAC;AACJ,CAAC;AACD,SAAS,kBAAkB,CAAC,IAAY;IACtC,OAAO,CACL,IAAI,CAAC,MAAM,KAAK,CAAC;QACjB,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,IAAI,mBAAmB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CACvE,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,IAAY;IAC/B,OAAO,CACL,IAAI,CAAC,MAAM,KAAK,CAAC;QACjB,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAC3D,CAAC;AACJ,CAAC;AACD,SAAS,iBAAiB,CAAC,IAAY;IACrC,OAAO,CACL,IAAI,CAAC,MAAM,KAAK,CAAC;QACjB,CAAC,IA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IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;QACxB,OAAO,KAAK,CAAC;KACd;IACD,IAAI,aAAa,GAAG,KAAK,CAAC;IAC1B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;QACpC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;YACnB,IAAI,aAAa,EAAE;gBACjB,OAAO,KAAK,CAAC;aACd;YACD,aAAa,GAAG,IAAI,CAAC;SACtB;aAAM;YACL,aAAa,GAAG,KAAK,CAAC;SACvB;KACF;IACD,OAAO,CAAC,aAAa,CAAC;AACxB,CAAC;AAED,MAAM,+BAA+B,GAEjC;IACF,CAAC,yBAAiB,CAAC,UAAU,CAAC,EAAE,YAAY;IAC5C,CAAC,yBAAiB,CAAC,gBAAgB,CAAC,EAAE,kBAAkB;IACxD,CAAC,yBAAiB,CAAC,SAAS,CAAC,EAAE,WAAW;IAC1C,CAAC,yBAAiB,CAAC,eAAe,CAAC,EAAE,iBAAiB;IACtD,CAAC,yBAAiB,CAAC,UAAU,CAAC,EAAE,WAAW;IAC3C,CAAC,yBAAiB,CAAC,UAAU,CAAC,EAAE,WAAW;CAC5C,CAAC;AAEO,0EAA+B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js deleted file mode 100644 index e75eef61..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseOptions = exports.selectorTypeToMessageString = exports.SCHEMA = exports.Modifiers = void 0; -var enums_1 = require("./enums"); -Object.defineProperty(exports, "Modifiers", { enumerable: true, get: function () { return enums_1.Modifiers; } }); -var schema_1 = require("./schema"); -Object.defineProperty(exports, "SCHEMA", { enumerable: true, get: function () { return schema_1.SCHEMA; } }); -var shared_1 = require("./shared"); -Object.defineProperty(exports, "selectorTypeToMessageString", { enumerable: true, get: function () { return shared_1.selectorTypeToMessageString; } }); -var parse_options_1 = require("./parse-options"); -Object.defineProperty(exports, "parseOptions", { enumerable: true, get: function () { return parse_options_1.parseOptions; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js.map deleted file mode 100644 index a307155b..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/index.ts"],"names":[],"mappings":";;;AAAA,iCAAoC;AAA3B,kGAAA,SAAS,OAAA;AAGlB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,mCAAuD;AAA9C,qHAAA,2BAA2B,OAAA;AACpC,iDAA+C;AAAtC,6GAAA,YAAY,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js deleted file mode 100644 index b9e67929..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseOptions = void 0; -const util = __importStar(require("../../util")); -const enums_1 = require("./enums"); -const shared_1 = require("./shared"); -const validator_1 = require("./validator"); -function normalizeOption(option) { - var _a, _b, _c, _d, _e, _f; - let weight = 0; - (_a = option.modifiers) === null || _a === void 0 ? void 0 : _a.forEach(mod => { - weight |= enums_1.Modifiers[mod]; - }); - (_b = option.types) === null || _b === void 0 ? void 0 : _b.forEach(mod => { - weight |= enums_1.TypeModifiers[mod]; - }); - // give selectors with a filter the _highest_ priority - if (option.filter) { - weight |= 1 << 30; - } - const normalizedOption = { - // format options - format: option.format ? option.format.map(f => enums_1.PredefinedFormats[f]) : null, - custom: option.custom - ? { - regex: new RegExp(option.custom.regex, 'u'), - match: option.custom.match, - } - : null, - leadingUnderscore: option.leadingUnderscore !== undefined - ? enums_1.UnderscoreOptions[option.leadingUnderscore] - : null, - trailingUnderscore: option.trailingUnderscore !== undefined - ? enums_1.UnderscoreOptions[option.trailingUnderscore] - : null, - prefix: option.prefix && option.prefix.length > 0 ? option.prefix : null, - suffix: option.suffix && option.suffix.length > 0 ? option.suffix : null, - modifiers: (_d = (_c = option.modifiers) === null || _c === void 0 ? void 0 : _c.map(m => enums_1.Modifiers[m])) !== null && _d !== void 0 ? _d : null, - types: (_f = (_e = option.types) === null || _e === void 0 ? void 0 : _e.map(m => enums_1.TypeModifiers[m])) !== null && _f !== void 0 ? _f : null, - filter: option.filter !== undefined - ? typeof option.filter === 'string' - ? { - regex: new RegExp(option.filter, 'u'), - match: true, - } - : { - regex: new RegExp(option.filter.regex, 'u'), - match: option.filter.match, - } - : null, - // calculated ordering weight based on modifiers - modifierWeight: weight, - }; - const selectors = Array.isArray(option.selector) - ? option.selector - : [option.selector]; - return selectors.map(selector => (Object.assign({ selector: (0, shared_1.isMetaSelector)(selector) - ? enums_1.MetaSelectors[selector] - : enums_1.Selectors[selector] }, normalizedOption))); -} -function parseOptions(context) { - const normalizedOptions = context.options - .map(opt => normalizeOption(opt)) - .reduce((acc, val) => acc.concat(val), []); - return util.getEnumNames(enums_1.Selectors).reduce((acc, k) => { - acc[k] = (0, validator_1.createValidator)(k, context, normalizedOptions); - return acc; - }, {}); -} -exports.parseOptions = parseOptions; -//# sourceMappingURL=parse-options.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js.map deleted file mode 100644 index f205db66..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/parse-options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse-options.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/parse-options.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAmC;AACnC,mCAOiB;AACjB,qCAA0C;AAO1C,2CAA8C;AAE9C,SAAS,eAAe,CAAC,MAAgB;;IACvC,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,MAAA,MAAM,CAAC,SAAS,0CAAE,OAAO,CAAC,GAAG,CAAC,EAAE;QAC9B,MAAM,IAAI,iBAAS,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;IACH,MAAA,MAAM,CAAC,KAAK,0CAAE,OAAO,CAAC,GAAG,CAAC,EAAE;QAC1B,MAAM,IAAI,qBAAa,CAAC,GAAG,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;IAEH,sDAAsD;IACtD,IAAI,MAAM,CAA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AAC;IAC7C,OAAO,IAAI,CAAC,YAAY,CAAC,iBAAS,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;QACpD,GAAG,CAAC,CAAC,CAAC,GAAG,IAAA,2BAAe,EAAC,CAAC,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC;QACxD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAmB,CAAC,CAAC;AAC1B,CAAC;AAEQ,oCAAY"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js deleted file mode 100644 index fe3e5194..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js +++ /dev/null @@ -1,285 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SCHEMA = void 0; -const util = __importStar(require("../../util")); -const enums_1 = require("./enums"); -const UNDERSCORE_SCHEMA = { - type: 'string', - enum: util.getEnumNames(enums_1.UnderscoreOptions), -}; -const PREFIX_SUFFIX_SCHEMA = { - type: 'array', - items: { - type: 'string', - minLength: 1, - }, - additionalItems: false, -}; -const MATCH_REGEX_SCHEMA = { - type: 'object', - properties: { - match: { type: 'boolean' }, - regex: { type: 'string' }, - }, - required: ['match', 'regex'], -}; -const FORMAT_OPTIONS_PROPERTIES = { - format: { - oneOf: [ - { - type: 'array', - items: { - type: 'string', - enum: util.getEnumNames(enums_1.PredefinedFormats), - }, - additionalItems: false, - }, - { - type: 'null', - }, - ], - }, - custom: MATCH_REGEX_SCHEMA, - leadingUnderscore: UNDERSCORE_SCHEMA, - trailingUnderscore: UNDERSCORE_SCHEMA, - prefix: PREFIX_SUFFIX_SCHEMA, - suffix: PREFIX_SUFFIX_SCHEMA, - failureMessage: { - type: 'string', - }, -}; -function selectorSchema(selectorString, allowType, modifiers) { - const selector = { - filter: { - oneOf: [ - { - type: 'string', - minLength: 1, - }, - MATCH_REGEX_SCHEMA, - ], - }, - selector: { - type: 'string', - enum: [selectorString], - }, - }; - if (modifiers && modifiers.length > 0) { - selector.modifiers = { - type: 'array', - items: { - type: 'string', - enum: modifiers, - }, - additionalItems: false, - }; - } - if (allowType) { - selector.types = { - type: 'array', - items: { - type: 'string', - enum: util.getEnumNames(enums_1.TypeModifiers), - }, - additionalItems: false, - }; - } - return [ - { - type: 'object', - properties: Object.assign(Object.assign({}, FORMAT_OPTIONS_PROPERTIES), selector), - required: ['selector', 'format'], - additionalProperties: false, - }, - ]; -} -function selectorsSchema() { - return { - type: 'object', - properties: Object.assign(Object.assign({}, FORMAT_OPTIONS_PROPERTIES), { - filter: { - oneOf: [ - { - type: 'string', - minLength: 1, - }, - MATCH_REGEX_SCHEMA, - ], - }, - selector: { - type: 'array', - items: { - type: 'string', - enum: [ - ...util.getEnumNames(enums_1.MetaSelectors), - ...util.getEnumNames(enums_1.Selectors), - ], - }, - additionalItems: false, - }, - modifiers: { - type: 'array', - items: { - type: 'string', - enum: util.getEnumNames(enums_1.Modifiers), - }, - additionalItems: false, - }, - types: { - type: 'array', - items: { - type: 'string', - enum: util.getEnumNames(enums_1.TypeModifiers), - }, - additionalItems: false, - }, - }), - required: ['selector', 'format'], - additionalProperties: false, - }; -} -const SCHEMA = { - type: 'array', - items: { - oneOf: [ - selectorsSchema(), - ...selectorSchema('default', false, util.getEnumNames(enums_1.Modifiers)), - ...selectorSchema('variableLike', false, ['unused', 'async']), - ...selectorSchema('variable', true, [ - 'const', - 'destructured', - 'exported', - 'global', - 'unused', - 'async', - ]), - ...selectorSchema('function', false, [ - 'exported', - 'global', - 'unused', - 'async', - ]), - ...selectorSchema('parameter', true, ['destructured', 'unused']), - ...selectorSchema('memberLike', false, [ - 'abstract', - 'private', - '#private', - 'protected', - 'public', - 'readonly', - 'requiresQuotes', - 'static', - 'override', - 'async', - ]), - ...selectorSchema('classProperty', true, [ - 'abstract', - 'private', - '#private', - 'protected', - 'public', - 'readonly', - 'requiresQuotes', - 'static', - 'override', - ]), - ...selectorSchema('objectLiteralProperty', true, [ - 'public', - 'requiresQuotes', - ]), - ...selectorSchema('typeProperty', true, [ - 'public', - 'readonly', - 'requiresQuotes', - ]), - ...selectorSchema('parameterProperty', true, [ - 'private', - 'protected', - 'public', - 'readonly', - ]), - ...selectorSchema('property', true, [ - 'abstract', - 'private', - '#private', - 'protected', - 'public', - 'readonly', - 'requiresQuotes', - 'static', - 'override', - 'async', - ]), - ...selectorSchema('classMethod', false, [ - 'abstract', - 'private', - '#private', - 'protected', - 'public', - 'requiresQuotes', - 'static', - 'override', - 'async', - ]), - ...selectorSchema('objectLiteralMethod', false, [ - 'public', - 'requiresQuotes', - 'async', - ]), - ...selectorSchema('typeMethod', false, ['public', 'requiresQuotes']), - ...selectorSchema('method', false, [ - 'abstract', - 'private', - '#private', - 'protected', - 'public', - 'requiresQuotes', - 'static', - 'override', - 'async', - ]), - ...selectorSchema('accessor', true, [ - 'abstract', - 'private', - 'protected', - 'public', - 'requiresQuotes', - 'static', - 'override', - ]), - ...selectorSchema('enumMember', false, ['requiresQuotes']), - ...selectorSchema('typeLike', false, ['abstract', 'exported', 'unused']), - ...selectorSchema('class', false, ['abstract', 'exported', 'unused']), - ...selectorSchema('interface', false, ['exported', 'unused']), - ...selectorSchema('typeAlias', false, ['exported', 'unused']), - ...selectorSchema('enum', false, ['exported', 'unused']), - ...selectorSchema('typeParameter', false, ['unused']), - ], - }, - additionalItems: false, -}; -exports.SCHEMA = SCHEMA; -//# sourceMappingURL=schema.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js.map deleted file mode 100644 index 3b1b3592..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/schema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,iDAAmC;AAKnC,mCAOiB;AAEjB,MAAM,iBAAiB,GAA2B;IAChD,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,yBAAiB,CAAC;CAC3C,CAAC;AACF,MAAM,oBAAoB,GAA2B;IACnD,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACL,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE,CAAC;KACb;IACD,eAAe,EAAE,KAAK;CACvB,CAAC;AACF,MAAM,kBAAkB,GAA2B;IACjD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAC1B,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC1B;IACD,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,MAAM,yBAAyB,GAAyB;IACtD,MAAM,EAAE;QACN,KAAK,EAAE;YACL;gBACE,IAA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AAG,cAAc,CAAC,eAAe,EAAE,KAAK,EAAE,CAAC,QAAQ,CAAC,CAAC;SACtD;KACF;IACD,eAAe,EAAE,KAAK;CACvB,CAAC;AAEO,wBAAM"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js deleted file mode 100644 index 0371db59..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isMethodOrPropertySelector = exports.isMetaSelector = exports.selectorTypeToMessageString = void 0; -const enums_1 = require("./enums"); -function selectorTypeToMessageString(selectorType) { - const notCamelCase = selectorType.replace(/([A-Z])/g, ' $1'); - return notCamelCase.charAt(0).toUpperCase() + notCamelCase.slice(1); -} -exports.selectorTypeToMessageString = selectorTypeToMessageString; -function isMetaSelector(selector) { - return selector in enums_1.MetaSelectors; -} -exports.isMetaSelector = isMetaSelector; -function isMethodOrPropertySelector(selector) { - return (selector === enums_1.MetaSelectors.method || selector === enums_1.MetaSelectors.property); -} -exports.isMethodOrPropertySelector = isMethodOrPropertySelector; -//# sourceMappingURL=shared.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js.map deleted file mode 100644 index 0c63f845..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/shared.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/shared.ts"],"names":[],"mappings":";;;AAMA,mCAAwC;AAExC,SAAS,2BAA2B,CAAC,YAA6B;IAChE,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IAC7D,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACtE,CAAC;AAiBC,kEAA2B;AAf7B,SAAS,cAAc,CACrB,QAAsE;IAEtE,OAAO,QAAQ,IAAI,qBAAa,CAAC;AACnC,CAAC;AAYC,wCAAc;AAVhB,SAAS,0BAA0B,CACjC,QAAsE;IAEtE,OAAO,CACL,QAAQ,KAAK,qBAAa,CAAC,MAAM,IAAI,QAAQ,KAAK,qBAAa,CAAC,QAAQ,CACzE,CAAC;AACJ,CAAC;AAKC,gEAA0B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js deleted file mode 100644 index 11e638d1..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js.map deleted file mode 100644 index 60c24d81..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js deleted file mode 100644 index fa42dc43..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js +++ /dev/null @@ -1,377 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createValidator = void 0; -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../../util")); -const enums_1 = require("./enums"); -const format_1 = require("./format"); -const shared_1 = require("./shared"); -function createValidator(type, context, allConfigs) { - // make sure the "highest priority" configs are checked first - const selectorType = enums_1.Selectors[type]; - const configs = allConfigs - // gather all of the applicable selectors - .filter(c => (c.selector & selectorType) !== 0 || - c.selector === enums_1.MetaSelectors.default) - .sort((a, b) => { - if (a.selector === b.selector) { - // in the event of the same selector, order by modifier weight - // sort descending - the type modifiers are "more important" - return b.modifierWeight - a.modifierWeight; - } - const aIsMeta = (0, shared_1.isMetaSelector)(a.selector); - const bIsMeta = (0, shared_1.isMetaSelector)(b.selector); - // non-meta selectors should go ahead of meta selectors - if (aIsMeta && !bIsMeta) { - return 1; - } - if (!aIsMeta && bIsMeta) { - return -1; - } - const aIsMethodOrProperty = (0, shared_1.isMethodOrPropertySelector)(a.selector); - const bIsMethodOrProperty = (0, shared_1.isMethodOrPropertySelector)(b.selector); - // for backward compatibility, method and property have higher precedence than other meta selectors - if (aIsMethodOrProperty && !bIsMethodOrProperty) { - return -1; - } - if (!aIsMethodOrProperty && bIsMethodOrProperty) { - return 1; - } - // both aren't meta selectors - // sort descending - the meta selectors are "least important" - return b.selector - a.selector; - }); - return (node, modifiers = new Set()) => { - var _a, _b, _c; - const originalName = node.type === utils_1.AST_NODE_TYPES.Identifier || - node.type === utils_1.AST_NODE_TYPES.PrivateIdentifier - ? node.name - : `${node.value}`; - // return will break the loop and stop checking configs - // it is only used when the name is known to have failed or succeeded a config. - for (const config of configs) { - if (((_a = config.filter) === null || _a === void 0 ? void 0 : _a.regex.test(originalName)) !== ((_b = config.filter) === null || _b === void 0 ? void 0 : _b.match)) { - // name does not match the filter - continue; - } - if ((_c = config.modifiers) === null || _c === void 0 ? void 0 : _c.some(modifier => !modifiers.has(modifier))) { - // does not have the required modifiers - continue; - } - if (!isCorrectType(node, config, context, selectorType)) { - // is not the correct type - continue; - } - let name = originalName; - name = validateUnderscore('leading', config, name, node, originalName); - if (name == null) { - // fail - return; - } - name = validateUnderscore('trailing', config, name, node, originalName); - if (name == null) { - // fail - return; - } - name = validateAffix('prefix', config, name, node, originalName); - if (name == null) { - // fail - return; - } - name = validateAffix('suffix', config, name, node, originalName); - if (name == null) { - // fail - return; - } - if (!validateCustom(config, name, node, originalName)) { - // fail - return; - } - if (!validatePredefinedFormat(config, name, node, originalName, modifiers)) { - // fail - return; - } - // it's valid for this config, so we don't need to check any more configs - return; - } - }; - // centralizes the logic for formatting the report data - function formatReportData({ affixes, formats, originalName, processedName, position, custom, count, }) { - var _a; - return { - type: (0, shared_1.selectorTypeToMessageString)(type), - name: originalName, - processedName, - position, - count, - affixes: affixes === null || affixes === void 0 ? void 0 : affixes.join(', '), - formats: formats === null || formats === void 0 ? void 0 : formats.map(f => enums_1.PredefinedFormats[f]).join(', '), - regex: (_a = custom === null || custom === void 0 ? void 0 : custom.regex) === null || _a === void 0 ? void 0 : _a.toString(), - regexMatch: (custom === null || custom === void 0 ? void 0 : custom.match) === true - ? 'match' - : (custom === null || custom === void 0 ? void 0 : custom.match) === false - ? 'not match' - : null, - }; - } - /** - * @returns the name with the underscore removed, if it is valid according to the specified underscore option, null otherwise - */ - function validateUnderscore(position, config, name, node, originalName) { - const option = position === 'leading' - ? config.leadingUnderscore - : config.trailingUnderscore; - if (!option) { - return name; - } - const hasSingleUnderscore = position === 'leading' - ? () => name.startsWith('_') - : () => name.endsWith('_'); - const trimSingleUnderscore = position === 'leading' - ? () => name.slice(1) - : () => name.slice(0, -1); - const hasDoubleUnderscore = position === 'leading' - ? () => name.startsWith('__') - : () => name.endsWith('__'); - const trimDoubleUnderscore = position === 'leading' - ? () => name.slice(2) - : () => name.slice(0, -2); - switch (option) { - // ALLOW - no conditions as the user doesn't care if it's there or not - case enums_1.UnderscoreOptions.allow: { - if (hasSingleUnderscore()) { - return trimSingleUnderscore(); - } - return name; - } - case enums_1.UnderscoreOptions.allowDouble: { - if (hasDoubleUnderscore()) { - return trimDoubleUnderscore(); - } - return name; - } - case enums_1.UnderscoreOptions.allowSingleOrDouble: { - if (hasDoubleUnderscore()) { - return trimDoubleUnderscore(); - } - if (hasSingleUnderscore()) { - return trimSingleUnderscore(); - } - return name; - } - // FORBID - case enums_1.UnderscoreOptions.forbid: { - if (hasSingleUnderscore()) { - context.report({ - node, - messageId: 'unexpectedUnderscore', - data: formatReportData({ - originalName, - position, - count: 'one', - }), - }); - return null; - } - return name; - } - // REQUIRE - case enums_1.UnderscoreOptions.require: { - if (!hasSingleUnderscore()) { - context.report({ - node, - messageId: 'missingUnderscore', - data: formatReportData({ - originalName, - position, - count: 'one', - }), - }); - return null; - } - return trimSingleUnderscore(); - } - case enums_1.UnderscoreOptions.requireDouble: { - if (!hasDoubleUnderscore()) { - context.report({ - node, - messageId: 'missingUnderscore', - data: formatReportData({ - originalName, - position, - count: 'two', - }), - }); - return null; - } - return trimDoubleUnderscore(); - } - } - } - /** - * @returns the name with the affix removed, if it is valid according to the specified affix option, null otherwise - */ - function validateAffix(position, config, name, node, originalName) { - const affixes = config[position]; - if (!affixes || affixes.length === 0) { - return name; - } - for (const affix of affixes) { - const hasAffix = position === 'prefix' ? name.startsWith(affix) : name.endsWith(affix); - const trimAffix = position === 'prefix' - ? () => name.slice(affix.length) - : () => name.slice(0, -affix.length); - if (hasAffix) { - // matches, so trim it and return - return trimAffix(); - } - } - context.report({ - node, - messageId: 'missingAffix', - data: formatReportData({ - originalName, - position, - affixes, - }), - }); - return null; - } - /** - * @returns true if the name is valid according to the `regex` option, false otherwise - */ - function validateCustom(config, name, node, originalName) { - const custom = config.custom; - if (!custom) { - return true; - } - const result = custom.regex.test(name); - if (custom.match && result) { - return true; - } - if (!custom.match && !result) { - return true; - } - context.report({ - node, - messageId: 'satisfyCustom', - data: formatReportData({ - originalName, - custom, - }), - }); - return false; - } - /** - * @returns true if the name is valid according to the `format` option, false otherwise - */ - function validatePredefinedFormat(config, name, node, originalName, modifiers) { - const formats = config.format; - if (!(formats === null || formats === void 0 ? void 0 : formats.length)) { - return true; - } - if (!modifiers.has(enums_1.Modifiers.requiresQuotes)) { - for (const format of formats) { - const checker = format_1.PredefinedFormatToCheckFunction[format]; - if (checker(name)) { - return true; - } - } - } - context.report({ - node, - messageId: originalName === name - ? 'doesNotMatchFormat' - : 'doesNotMatchFormatTrimmed', - data: formatReportData({ - originalName, - processedName: name, - formats, - }), - }); - return false; - } -} -exports.createValidator = createValidator; -const SelectorsAllowedToHaveTypes = enums_1.Selectors.variable | - enums_1.Selectors.parameter | - enums_1.Selectors.classProperty | - enums_1.Selectors.objectLiteralProperty | - enums_1.Selectors.typeProperty | - enums_1.Selectors.parameterProperty | - enums_1.Selectors.accessor; -function isCorrectType(node, config, context, selector) { - if (config.types == null) { - return true; - } - if ((SelectorsAllowedToHaveTypes & selector) === 0) { - return true; - } - const { esTreeNodeToTSNodeMap, program } = util.getParserServices(context); - const checker = program.getTypeChecker(); - const tsNode = esTreeNodeToTSNodeMap.get(node); - const type = checker - .getTypeAtLocation(tsNode) - // remove null and undefined from the type, as we don't care about it here - .getNonNullableType(); - for (const allowedType of config.types) { - switch (allowedType) { - case enums_1.TypeModifiers.array: - if (isAllTypesMatch(type, t => checker.isArrayType(t) || checker.isTupleType(t))) { - return true; - } - break; - case enums_1.TypeModifiers.function: - if (isAllTypesMatch(type, t => t.getCallSignatures().length > 0)) { - return true; - } - break; - case enums_1.TypeModifiers.boolean: - case enums_1.TypeModifiers.number: - case enums_1.TypeModifiers.string: { - const typeString = checker.typeToString( - // this will resolve things like true => boolean, 'a' => string and 1 => number - checker.getWidenedType(checker.getBaseTypeOfLiteralType(type))); - const allowedTypeString = enums_1.TypeModifiers[allowedType]; - if (typeString === allowedTypeString) { - return true; - } - break; - } - } - } - return false; -} -/** - * @returns `true` if the type (or all union types) in the given type return true for the callback - */ -function isAllTypesMatch(type, cb) { - if (type.isUnion()) { - return type.types.every(t => cb(t)); - } - return cb(type); -} -//# sourceMappingURL=validator.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js.map deleted file mode 100644 index 34b53372..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention-utils/validator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"validator.js","sourceRoot":"","sources":["../../../src/rules/naming-convention-utils/validator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAG1D,iDAAmC;AAEnC,mCAOiB;AACjB,qCAA2D;AAC3D,qCAIkB;AAGlB,SAAS,eAAe,CACtB,IAAqB,EACrB,OAAgB,EAChB,UAAgC;IAIhC,6DAA6D;IAC7D,MAAM,YAAY,GAAG,iBAAS,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,OAAO,GAAG,UAAU;QACxB,yCAAyC;SACxC,MAAM,CACL,CAAC,CAAC,EAAE,CACF,CAAC,CAAC,CAAC,QAAQ,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iBACb;gBACD,MAAM;YAER,KAAK,qBAAa,CAAC,QAAQ;gBACzB,IAAI,eAAe,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE;oBAChE,OAAO,IAAI,CAAC;iBACb;gBACD,MAAM;YAER,KAAK,qBAAa,CAAC,OAAO,CAAC;YAC3B,KAAK,qBAAa,CAAC,MAAM,CAAC;YAC1B,KAAK,qBAAa,CAAC,MAAM,CAAC,CAAC;gBACzB,MAAM,UAAU,GAAG,OAAO,CAAC,YAAY;gBACrC,+EAA+E;gBAC/E,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC,CAC/D,CAAC;gBACF,MAAM,iBAAiB,GAAG,qBAAa,CAAC,WAAW,CAAC,CAAC;gBACrD,IAAI,UAAU,KAAK,iBAAiB,EAAE;oBACpC,OAAO,IAAI,CAAC;iBACb;gBACD,MAAM;aACP;SACF;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,SAAS,eAAe,CACtB,IAAa,EACb,EAA8B;IAE9B,IAAI,IAAI,CAAC,OAAO,EAAE,EAAE;QAClB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;KACrC;IAED,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js deleted file mode 100644 index d847cbe1..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js +++ /dev/null @@ -1,496 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const naming_convention_utils_1 = require("./naming-convention-utils"); -// This essentially mirrors ESLint's `camelcase` rule -// note that that rule ignores leading and trailing underscores and only checks those in the middle of a variable name -const defaultCamelCaseAllTheThingsConfig = [ - { - selector: 'default', - format: ['camelCase'], - leadingUnderscore: 'allow', - trailingUnderscore: 'allow', - }, - { - selector: 'variable', - format: ['camelCase', 'UPPER_CASE'], - leadingUnderscore: 'allow', - trailingUnderscore: 'allow', - }, - { - selector: 'typeLike', - format: ['PascalCase'], - }, -]; -exports.default = util.createRule({ - name: 'naming-convention', - meta: { - docs: { - description: 'Enforce naming conventions for everything across a codebase', - recommended: false, - // technically only requires type checking if the user uses "type" modifiers - requiresTypeChecking: true, - }, - type: 'suggestion', - messages: { - unexpectedUnderscore: '{{type}} name `{{name}}` must not have a {{position}} underscore.', - missingUnderscore: '{{type}} name `{{name}}` must have {{count}} {{position}} underscore(s).', - missingAffix: '{{type}} name `{{name}}` must have one of the following {{position}}es: {{affixes}}', - satisfyCustom: '{{type}} name `{{name}}` must {{regexMatch}} the RegExp: {{regex}}', - doesNotMatchFormat: '{{type}} name `{{name}}` must match one of the following formats: {{formats}}', - doesNotMatchFormatTrimmed: '{{type}} name `{{name}}` trimmed as `{{processedName}}` must match one of the following formats: {{formats}}', - }, - schema: naming_convention_utils_1.SCHEMA, - }, - defaultOptions: defaultCamelCaseAllTheThingsConfig, - create(contextWithoutDefaults) { - const context = contextWithoutDefaults.options && - contextWithoutDefaults.options.length > 0 - ? contextWithoutDefaults - : // only apply the defaults when the user provides no config - Object.setPrototypeOf({ - options: defaultCamelCaseAllTheThingsConfig, - }, contextWithoutDefaults); - const validators = (0, naming_convention_utils_1.parseOptions)(context); - // getParserServices(context, false) -- dirty hack to work around the docs checker test... - const compilerOptions = util - .getParserServices(context, true) - .program.getCompilerOptions(); - function handleMember(validator, node, modifiers) { - if (!validator) { - return; - } - const key = node.key; - if (requiresQuoting(key, compilerOptions.target)) { - modifiers.add(naming_convention_utils_1.Modifiers.requiresQuotes); - } - validator(key, modifiers); - } - function getMemberModifiers(node) { - const modifiers = new Set(); - if ('key' in node && node.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { - modifiers.add(naming_convention_utils_1.Modifiers['#private']); - } - else if (node.accessibility) { - modifiers.add(naming_convention_utils_1.Modifiers[node.accessibility]); - } - else { - modifiers.add(naming_convention_utils_1.Modifiers.public); - } - if (node.static) { - modifiers.add(naming_convention_utils_1.Modifiers.static); - } - if ('readonly' in node && node.readonly) { - modifiers.add(naming_convention_utils_1.Modifiers.readonly); - } - if ('override' in node && node.override) { - modifiers.add(naming_convention_utils_1.Modifiers.override); - } - if (node.type === utils_1.AST_NODE_TYPES.TSAbstractPropertyDefinition || - node.type === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition) { - modifiers.add(naming_convention_utils_1.Modifiers.abstract); - } - return modifiers; - } - const unusedVariables = util.collectUnusedVariables(context); - function isUnused(name, initialScope = context.getScope()) { - var _a; - let variable = null; - let scope = initialScope; - while (scope) { - variable = (_a = scope.set.get(name)) !== null && _a !== void 0 ? _a : null; - if (variable) { - break; - } - scope = scope.upper; - } - if (!variable) { - return false; - } - return unusedVariables.has(variable); - } - function isDestructured(id) { - var _a, _b, _c; - return ( - // `const { x }` - // does not match `const { x: y }` - (((_a = id.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.Property && id.parent.shorthand) || - // `const { x = 2 }` - // does not match const `{ x: y = 2 }` - (((_b = id.parent) === null || _b === void 0 ? void 0 : _b.type) === utils_1.AST_NODE_TYPES.AssignmentPattern && - ((_c = id.parent.parent) === null || _c === void 0 ? void 0 : _c.type) === utils_1.AST_NODE_TYPES.Property && - id.parent.parent.shorthand)); - } - function isAsyncMemberOrProperty(propertyOrMemberNode) { - return Boolean('value' in propertyOrMemberNode && - propertyOrMemberNode.value && - 'async' in propertyOrMemberNode.value && - propertyOrMemberNode.value.async); - } - function isAsyncVariableIdentifier(id) { - return Boolean(id.parent && - (('async' in id.parent && id.parent.async) || - ('init' in id.parent && - id.parent.init && - 'async' in id.parent.init && - id.parent.init.async))); - } - const selectors = { - // #region variable - VariableDeclarator: { - validator: validators.variable, - handler: (node, validator) => { - const identifiers = getIdentifiersFromPattern(node.id); - const baseModifiers = new Set(); - const parent = node.parent; - if ((parent === null || parent === void 0 ? void 0 : parent.type) === utils_1.AST_NODE_TYPES.VariableDeclaration) { - if (parent.kind === 'const') { - baseModifiers.add(naming_convention_utils_1.Modifiers.const); - } - if (isGlobal(context.getScope())) { - baseModifiers.add(naming_convention_utils_1.Modifiers.global); - } - } - identifiers.forEach(id => { - const modifiers = new Set(baseModifiers); - if (isDestructured(id)) { - modifiers.add(naming_convention_utils_1.Modifiers.destructured); - } - if (isExported(parent, id.name, context.getScope())) { - modifiers.add(naming_convention_utils_1.Modifiers.exported); - } - if (isUnused(id.name)) { - modifiers.add(naming_convention_utils_1.Modifiers.unused); - } - if (isAsyncVariableIdentifier(id)) { - modifiers.add(naming_convention_utils_1.Modifiers.async); - } - validator(id, modifiers); - }); - }, - }, - // #endregion - // #region function - 'FunctionDeclaration, TSDeclareFunction, FunctionExpression': { - validator: validators.function, - handler: (node, validator) => { - if (node.id == null) { - return; - } - const modifiers = new Set(); - // functions create their own nested scope - const scope = context.getScope().upper; - if (isGlobal(scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.global); - } - if (isExported(node, node.id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.exported); - } - if (isUnused(node.id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.unused); - } - if (node.async) { - modifiers.add(naming_convention_utils_1.Modifiers.async); - } - validator(node.id, modifiers); - }, - }, - // #endregion function - // #region parameter - 'FunctionDeclaration, TSDeclareFunction, TSEmptyBodyFunctionExpression, FunctionExpression, ArrowFunctionExpression': { - validator: validators.parameter, - handler: (node, validator) => { - node.params.forEach(param => { - if (param.type === utils_1.AST_NODE_TYPES.TSParameterProperty) { - return; - } - const identifiers = getIdentifiersFromPattern(param); - identifiers.forEach(i => { - const modifiers = new Set(); - if (isDestructured(i)) { - modifiers.add(naming_convention_utils_1.Modifiers.destructured); - } - if (isUnused(i.name)) { - modifiers.add(naming_convention_utils_1.Modifiers.unused); - } - validator(i, modifiers); - }); - }); - }, - }, - // #endregion parameter - // #region parameterProperty - TSParameterProperty: { - validator: validators.parameterProperty, - handler: (node, validator) => { - const modifiers = getMemberModifiers(node); - const identifiers = getIdentifiersFromPattern(node.parameter); - identifiers.forEach(i => { - validator(i, modifiers); - }); - }, - }, - // #endregion parameterProperty - // #region property - ':not(ObjectPattern) > Property[computed = false][kind = "init"][value.type != "ArrowFunctionExpression"][value.type != "FunctionExpression"][value.type != "TSEmptyBodyFunctionExpression"]': { - validator: validators.objectLiteralProperty, - handler: (node, validator) => { - const modifiers = new Set([naming_convention_utils_1.Modifiers.public]); - handleMember(validator, node, modifiers); - }, - }, - ':matches(PropertyDefinition, TSAbstractPropertyDefinition)[computed = false][value.type != "ArrowFunctionExpression"][value.type != "FunctionExpression"][value.type != "TSEmptyBodyFunctionExpression"]': { - validator: validators.classProperty, - handler: (node, validator) => { - const modifiers = getMemberModifiers(node); - handleMember(validator, node, modifiers); - }, - }, - 'TSPropertySignature[computed = false][typeAnnotation.typeAnnotation.type != "TSFunctionType"]': { - validator: validators.typeProperty, - handler: (node, validator) => { - const modifiers = new Set([naming_convention_utils_1.Modifiers.public]); - if (node.readonly) { - modifiers.add(naming_convention_utils_1.Modifiers.readonly); - } - handleMember(validator, node, modifiers); - }, - }, - // #endregion property - // #region method - [[ - 'Property[computed = false][kind = "init"][value.type = "ArrowFunctionExpression"]', - 'Property[computed = false][kind = "init"][value.type = "FunctionExpression"]', - 'Property[computed = false][kind = "init"][value.type = "TSEmptyBodyFunctionExpression"]', - ].join(', ')]: { - validator: validators.objectLiteralMethod, - handler: (node, validator) => { - const modifiers = new Set([naming_convention_utils_1.Modifiers.public]); - if (isAsyncMemberOrProperty(node)) { - modifiers.add(naming_convention_utils_1.Modifiers.async); - } - handleMember(validator, node, modifiers); - }, - }, - [[ - ':matches(PropertyDefinition, TSAbstractPropertyDefinition)[computed = false][value.type = "ArrowFunctionExpression"]', - ':matches(PropertyDefinition, TSAbstractPropertyDefinition)[computed = false][value.type = "FunctionExpression"]', - ':matches(PropertyDefinition, TSAbstractPropertyDefinition)[computed = false][value.type = "TSEmptyBodyFunctionExpression"]', - ':matches(MethodDefinition, TSAbstractMethodDefinition)[computed = false][kind = "method"]', - ].join(', ')]: { - validator: validators.classMethod, - handler: (node, validator) => { - const modifiers = getMemberModifiers(node); - if (isAsyncMemberOrProperty(node)) { - modifiers.add(naming_convention_utils_1.Modifiers.async); - } - handleMember(validator, node, modifiers); - }, - }, - [[ - 'TSMethodSignature[computed = false]', - 'TSPropertySignature[computed = false][typeAnnotation.typeAnnotation.type = "TSFunctionType"]', - ].join(', ')]: { - validator: validators.typeMethod, - handler: (node, validator) => { - const modifiers = new Set([naming_convention_utils_1.Modifiers.public]); - handleMember(validator, node, modifiers); - }, - }, - // #endregion method - // #region accessor - 'Property[computed = false]:matches([kind = "get"], [kind = "set"])': { - validator: validators.accessor, - handler: (node, validator) => { - const modifiers = new Set([naming_convention_utils_1.Modifiers.public]); - handleMember(validator, node, modifiers); - }, - }, - 'MethodDefinition[computed = false]:matches([kind = "get"], [kind = "set"])': { - validator: validators.accessor, - handler: (node, validator) => { - const modifiers = getMemberModifiers(node); - handleMember(validator, node, modifiers); - }, - }, - // #endregion accessor - // #region enumMember - // computed is optional, so can't do [computed = false] - 'TSEnumMember[computed != true]': { - validator: validators.enumMember, - handler: (node, validator) => { - const id = node.id; - const modifiers = new Set(); - if (requiresQuoting(id, compilerOptions.target)) { - modifiers.add(naming_convention_utils_1.Modifiers.requiresQuotes); - } - validator(id, modifiers); - }, - }, - // #endregion enumMember - // #region class - 'ClassDeclaration, ClassExpression': { - validator: validators.class, - handler: (node, validator) => { - const id = node.id; - if (id == null) { - return; - } - const modifiers = new Set(); - // classes create their own nested scope - const scope = context.getScope().upper; - if (node.abstract) { - modifiers.add(naming_convention_utils_1.Modifiers.abstract); - } - if (isExported(node, id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.exported); - } - if (isUnused(id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.unused); - } - validator(id, modifiers); - }, - }, - // #endregion class - // #region interface - TSInterfaceDeclaration: { - validator: validators.interface, - handler: (node, validator) => { - const modifiers = new Set(); - const scope = context.getScope(); - if (isExported(node, node.id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.exported); - } - if (isUnused(node.id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.unused); - } - validator(node.id, modifiers); - }, - }, - // #endregion interface - // #region typeAlias - TSTypeAliasDeclaration: { - validator: validators.typeAlias, - handler: (node, validator) => { - const modifiers = new Set(); - const scope = context.getScope(); - if (isExported(node, node.id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.exported); - } - if (isUnused(node.id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.unused); - } - validator(node.id, modifiers); - }, - }, - // #endregion typeAlias - // #region enum - TSEnumDeclaration: { - validator: validators.enum, - handler: (node, validator) => { - const modifiers = new Set(); - // enums create their own nested scope - const scope = context.getScope().upper; - if (isExported(node, node.id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.exported); - } - if (isUnused(node.id.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.unused); - } - validator(node.id, modifiers); - }, - }, - // #endregion enum - // #region typeParameter - 'TSTypeParameterDeclaration > TSTypeParameter': { - validator: validators.typeParameter, - handler: (node, validator) => { - const modifiers = new Set(); - const scope = context.getScope(); - if (isUnused(node.name.name, scope)) { - modifiers.add(naming_convention_utils_1.Modifiers.unused); - } - validator(node.name, modifiers); - }, - }, - // #endregion typeParameter - }; - return Object.fromEntries(Object.entries(selectors) - .map(([selector, { validator, handler }]) => { - return [ - selector, - (node) => { - handler(node, validator); - }, - ]; - }) - .filter((s) => s != null)); - }, -}); -function getIdentifiersFromPattern(pattern) { - const identifiers = []; - const visitor = new scope_manager_1.PatternVisitor({}, pattern, id => identifiers.push(id)); - visitor.visit(pattern); - return identifiers; -} -function isExported(node, name, scope) { - var _a, _b; - if (((_a = node === null || node === void 0 ? void 0 : node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.ExportDefaultDeclaration || - ((_b = node === null || node === void 0 ? void 0 : node.parent) === null || _b === void 0 ? void 0 : _b.type) === utils_1.AST_NODE_TYPES.ExportNamedDeclaration) { - return true; - } - if (scope == null) { - return false; - } - const variable = scope.set.get(name); - if (variable) { - for (const ref of variable.references) { - const refParent = ref.identifier.parent; - if ((refParent === null || refParent === void 0 ? void 0 : refParent.type) === utils_1.AST_NODE_TYPES.ExportDefaultDeclaration || - (refParent === null || refParent === void 0 ? void 0 : refParent.type) === utils_1.AST_NODE_TYPES.ExportSpecifier) { - return true; - } - } - } - return false; -} -function isGlobal(scope) { - if (scope == null) { - return false; - } - return (scope.type === utils_1.TSESLint.Scope.ScopeType.global || - scope.type === utils_1.TSESLint.Scope.ScopeType.module); -} -function requiresQuoting(node, target) { - const name = node.type === utils_1.AST_NODE_TYPES.Identifier || - node.type === utils_1.AST_NODE_TYPES.PrivateIdentifier - ? node.name - : `${node.value}`; - return util.requiresQuoting(name, target); -} -//# sourceMappingURL=naming-convention.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map deleted file mode 100644 index ed84260a..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/naming-convention.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"naming-convention.js","sourceRoot":"","sources":["../../src/rules/naming-convention.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oEAAkE;AAElE,oDAAoE;AAGpE,8CAAgC;AAMhC,uEAA4E;AAe5E,qDAAqD;AACrD,sHAAsH;AACtH,MAAM,kCAAkC,GAAY;IAClD;QACE,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,CAAC,WAAW,CAAC;QACrB,iBAAiB,EAAE,OAAO;QAC1B,kBAAkB,EAAE,OAAO;KAC5B;IAED;QACE,QAAQ,EAAE,UAAU;QACpB,MAAM,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC;QACnC,iBAAiB,EAAE,OAAO;QAC1B,kBAAkB,EAAE,OAAO;KAC5B;IAED;QACE,QAAQ,EAAE,UAAU;QACpB,MAAM,EAAE,CAAC,YAAY,CAAC;KACvB;CACF,CAAC;AAEF,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,6DAA6D;YAC/D,WAAW,EAAE,KAAK;YAClB,4EAA4E;YAC5E,oBAAoB,EAAE,IAAI;SAC3B;QACD,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE;YACR,oBAAoB,EAClB,mEAAmE;YACrE,iBAAi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CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js deleted file mode 100644 index 94c2df42..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-array-constructor', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow generic `Array` constructors', - recommended: 'error', - extendsBaseRule: true, - }, - fixable: 'code', - messages: { - useLiteral: 'The array literal notation [] is preferable.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - /** - * Disallow construction of dense arrays using the Array constructor - * @param node node to evaluate - */ - function check(node) { - if (node.arguments.length !== 1 && - node.callee.type === utils_1.AST_NODE_TYPES.Identifier && - node.callee.name === 'Array' && - !node.typeParameters && - !util.isOptionalCallExpression(node)) { - context.report({ - node, - messageId: 'useLiteral', - fix(fixer) { - if (node.arguments.length === 0) { - return fixer.replaceText(node, '[]'); - } - const fullText = context.getSourceCode().getText(node); - const preambleLength = node.callee.range[1] - node.range[0]; - return fixer.replaceText(node, `[${fullText.slice(preambleLength + 1, -1)}]`); - }, - }); - } - } - return { - CallExpression: check, - NewExpression: check, - }; - }, -}); -//# sourceMappingURL=no-array-constructor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js.map deleted file mode 100644 index ffc5c92c..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-array-constructor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-array-constructor.js","sourceRoot":"","sources":["../../src/rules/no-array-constructor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,uCAAuC;YACpD,WAAW,EAAE,OAAO;YACpB,eAAe,EAAE,IAAI;SACtB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,UAAU,EAAE,8CAA8C;SAC3D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ;;;WAGG;QACH,SAAS,KAAK,CACZ,IAAsD;YAEtD,IACE,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC;gBAC3B,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;gBAC9C,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,OAAO;gBAC5B,CAAC,IAAI,CAAC,cAAc;gBACpB,CAAC,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,EACpC;gBACA,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,YAAY;oBACvB,GAAG,CAAC,KAAK;wBACP,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;4BAC/B,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;yBACtC;wBACD,MAAM,QAAQ,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;wBACvD,MAAM,cAAc,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;wBAE5D,OAAO,KAAK,CAAC,WAAW,CACtB,IAAI,EACJ,IAAI,QAAQ,CAAC,KAAK,CAAC,cAAc,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAC9C,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,cAAc,EAAE,KAAK;YACrB,aAAa,EAAE,KAAK;SACrB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js deleted file mode 100644 index 61fb6f5d..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js +++ /dev/null @@ -1,165 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -var Usefulness; -(function (Usefulness) { - Usefulness[Usefulness["Always"] = 0] = "Always"; - Usefulness["Never"] = "will"; - Usefulness["Sometimes"] = "may"; -})(Usefulness || (Usefulness = {})); -exports.default = util.createRule({ - name: 'no-base-to-string', - meta: { - docs: { - description: 'Require `.toString()` to only be called on objects which provide useful information when stringified', - recommended: 'strict', - requiresTypeChecking: true, - }, - messages: { - baseToString: "'{{name}}' {{certainty}} evaluate to '[object Object]' when stringified.", - }, - schema: [ - { - type: 'object', - properties: { - ignoredTypeNames: { - type: 'array', - items: { - type: 'string', - }, - }, - }, - additionalProperties: false, - }, - ], - type: 'suggestion', - }, - defaultOptions: [ - { - ignoredTypeNames: ['Error', 'RegExp', 'URL', 'URLSearchParams'], - }, - ], - create(context, [option]) { - var _a; - const parserServices = util.getParserServices(context); - const typeChecker = parserServices.program.getTypeChecker(); - const ignoredTypeNames = (_a = option.ignoredTypeNames) !== null && _a !== void 0 ? _a : []; - function checkExpression(node, type) { - if (node.type === utils_1.AST_NODE_TYPES.Literal) { - return; - } - const certainty = collectToStringCertainty(type !== null && type !== void 0 ? type : typeChecker.getTypeAtLocation(parserServices.esTreeNodeToTSNodeMap.get(node))); - if (certainty === Usefulness.Always) { - return; - } - context.report({ - data: { - certainty, - name: context.getSourceCode().getText(node), - }, - messageId: 'baseToString', - node, - }); - } - function collectToStringCertainty(type) { - const toString = typeChecker.getPropertyOfType(type, 'toString'); - const declarations = toString === null || toString === void 0 ? void 0 : toString.getDeclarations(); - if (!toString || !declarations || declarations.length === 0) { - return Usefulness.Always; - } - // Patch for old version TypeScript, the Boolean type definition missing toString() - if (type.flags & ts.TypeFlags.Boolean || - type.flags & ts.TypeFlags.BooleanLiteral) { - return Usefulness.Always; - } - if (ignoredTypeNames.includes(util.getTypeName(typeChecker, type))) { - return Usefulness.Always; - } - if (declarations.every(({ parent }) => !ts.isInterfaceDeclaration(parent) || parent.name.text !== 'Object')) { - return Usefulness.Always; - } - if (type.isIntersection()) { - for (const subType of type.types) { - const subtypeUsefulness = collectToStringCertainty(subType); - if (subtypeUsefulness === Usefulness.Always) { - return Usefulness.Always; - } - } - return Usefulness.Never; - } - if (!type.isUnion()) { - return Usefulness.Never; - } - let allSubtypesUseful = true; - let someSubtypeUseful = false; - for (const subType of type.types) { - const subtypeUsefulness = collectToStringCertainty(subType); - if (subtypeUsefulness !== Usefulness.Always && allSubtypesUseful) { - allSubtypesUseful = false; - } - if (subtypeUsefulness !== Usefulness.Never && !someSubtypeUseful) { - someSubtypeUseful = true; - } - } - if (allSubtypesUseful && someSubtypeUseful) { - return Usefulness.Always; - } - if (someSubtypeUseful) { - return Usefulness.Sometimes; - } - return Usefulness.Never; - } - return { - 'AssignmentExpression[operator = "+="], BinaryExpression[operator = "+"]'(node) { - const leftType = typeChecker.getTypeAtLocation(parserServices.esTreeNodeToTSNodeMap.get(node.left)); - const rightType = typeChecker.getTypeAtLocation(parserServices.esTreeNodeToTSNodeMap.get(node.right)); - if (util.getTypeName(typeChecker, leftType) === 'string') { - checkExpression(node.right, rightType); - } - else if (util.getTypeName(typeChecker, rightType) === 'string' && - node.left.type !== utils_1.AST_NODE_TYPES.PrivateIdentifier) { - checkExpression(node.left, leftType); - } - }, - 'CallExpression > MemberExpression.callee > Identifier[name = "toString"].property'(node) { - const memberExpr = node.parent; - checkExpression(memberExpr.object); - }, - TemplateLiteral(node) { - if (node.parent && - node.parent.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression) { - return; - } - for (const expression of node.expressions) { - checkExpression(expression); - } - }, - }; - }, -}); -//# sourceMappingURL=no-base-to-string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map deleted file mode 100644 index 050f95dd..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-base-to-string.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-base-to-string.js","sourceRoot":"","sources":["../../src/rules/no-base-to-string.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,+CAAiC;AAEjC,8CAAgC;AAEhC,IAAK,UAIJ;AAJD,WAAK,UAAU;IACb,+CAAM,CAAA;IACN,4BAAc,CAAA;IACd,+BAAiB,CAAA;AACnB,CAAC,EAJI,UAAU,KAAV,UAAU,QAId;AASD,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,sGAAsG;YACxG,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,YAAY,EACV,0EAA0E;SAC7E;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,gBAAgB,EAAE;wBAChB,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,IAAI,EAAE,YAAY;KACnB;IACD,cAAc,EAAE;QACd;YACE,gBAAgB,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,iBAAiB,CAAC;SAChE;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;;QACtB,MAAM,cA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AC,CAAC;iBAC7B;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js deleted file mode 100644 index dde179a4..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js +++ /dev/null @@ -1,101 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-confusing-non-null-assertion', - meta: { - type: 'problem', - docs: { - description: 'Disallow non-null assertion in locations that may be confusing', - recommended: 'strict', - }, - fixable: 'code', - hasSuggestions: true, - messages: { - confusingEqual: 'Confusing combinations of non-null assertion and equal test like "a! == b", which looks very similar to not equal "a !== b".', - confusingAssign: 'Confusing combinations of non-null assertion and equal test like "a! = b", which looks very similar to not equal "a != b".', - notNeedInEqualTest: 'Unnecessary non-null assertion (!) in equal test.', - notNeedInAssign: 'Unnecessary non-null assertion (!) in assignment left hand.', - wrapUpLeft: 'Wrap up left hand to avoid putting non-null assertion "!" and "=" together.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const sourceCode = context.getSourceCode(); - return { - 'BinaryExpression, AssignmentExpression'(node) { - function isLeftHandPrimaryExpression(node) { - return node.type === utils_1.AST_NODE_TYPES.TSNonNullExpression; - } - if (node.operator === '==' || - node.operator === '===' || - node.operator === '=') { - const isAssign = node.operator === '='; - const leftHandFinalToken = sourceCode.getLastToken(node.left); - const tokenAfterLeft = sourceCode.getTokenAfter(node.left); - if ((leftHandFinalToken === null || leftHandFinalToken === void 0 ? void 0 : leftHandFinalToken.type) === utils_1.AST_TOKEN_TYPES.Punctuator && - (leftHandFinalToken === null || leftHandFinalToken === void 0 ? void 0 : leftHandFinalToken.value) === '!' && - (tokenAfterLeft === null || tokenAfterLeft === void 0 ? void 0 : tokenAfterLeft.value) !== ')') { - if (isLeftHandPrimaryExpression(node.left)) { - context.report({ - node, - messageId: isAssign ? 'confusingAssign' : 'confusingEqual', - suggest: [ - { - messageId: isAssign - ? 'notNeedInAssign' - : 'notNeedInEqualTest', - fix: (fixer) => [ - fixer.remove(leftHandFinalToken), - ], - }, - ], - }); - } - else { - context.report({ - node, - messageId: isAssign ? 'confusingAssign' : 'confusingEqual', - suggest: [ - { - messageId: 'wrapUpLeft', - fix: (fixer) => [ - fixer.insertTextBefore(node.left, '('), - fixer.insertTextAfter(node.left, ')'), - ], - }, - ], - }); - } - } - } - }, - }; - }, -}); -//# sourceMappingURL=no-confusing-non-null-assertion.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js.map deleted file mode 100644 index 148e551a..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file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AAK,uBAAe,CAAC,UAAU;wBACvD,CAAA,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,KAAK,MAAK,GAAG;wBACjC,CAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,KAAK,MAAK,GAAG,EAC7B;wBACA,IAAI,2BAA2B,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;4BAC1C,OAAO,CAAC,MAAM,CAAC;gCACb,IAAI;gCACJ,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,gBAAgB;gCAC1D,OAAO,EAAE;oCACP;wCACE,SAAS,EAAE,QAAQ;4CACjB,CAAC,CAAC,iBAAiB;4CACnB,CAAC,CAAC,oBAAoB;wCACxB,GAAG,EAAE,CAAC,KAAK,EAAsB,EAAE,CAAC;4CAClC,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC;yCACjC;qCACF;iCACF;6BACF,CAAC,CAAC;yBACJ;6BAAM;4BACL,OAAO,CAAC,MAAM,CAAC;gCACb,IAAI;gCACJ,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,gBAAgB;gCAC1D,OAAO,EAAE;oCACP;wCACE,SAAS,EAAE,YAAY;wCACvB,GAAG,EAAE,CAAC,KAAK,EAAsB,EAAE,CAAC;4CAClC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC;4CACtC,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC;yCACtC;qCACF;iCACF;6BACF,CAAC,CAAC;yBACJ;qBACF;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js deleted file mode 100644 index 09850210..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js +++ /dev/null @@ -1,281 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-confusing-void-expression', - meta: { - docs: { - description: 'Require expressions of type void to appear in statement position', - recommended: false, - requiresTypeChecking: true, - }, - messages: { - invalidVoidExpr: 'Placing a void expression inside another expression is forbidden. ' + - 'Move it to its own statement instead.', - invalidVoidExprWrapVoid: 'Void expressions used inside another expression ' + - 'must be moved to its own statement ' + - 'or marked explicitly with the `void` operator.', - invalidVoidExprArrow: 'Returning a void expression from an arrow function shorthand is forbidden. ' + - 'Please add braces to the arrow function.', - invalidVoidExprArrowWrapVoid: 'Void expressions returned from an arrow function shorthand ' + - 'must be marked explicitly with the `void` operator.', - invalidVoidExprReturn: 'Returning a void expression from a function is forbidden. ' + - 'Please move it before the `return` statement.', - invalidVoidExprReturnLast: 'Returning a void expression from a function is forbidden. ' + - 'Please remove the `return` statement.', - invalidVoidExprReturnWrapVoid: 'Void expressions returned from a function ' + - 'must be marked explicitly with the `void` operator.', - voidExprWrapVoid: 'Mark with an explicit `void` operator.', - }, - schema: [ - { - type: 'object', - properties: { - ignoreArrowShorthand: { type: 'boolean' }, - ignoreVoidOperator: { type: 'boolean' }, - }, - additionalProperties: false, - }, - ], - type: 'problem', - fixable: 'code', - hasSuggestions: true, - }, - defaultOptions: [{}], - create(context, [options]) { - return { - 'AwaitExpression, CallExpression, TaggedTemplateExpression'(node) { - const parserServices = util.getParserServices(context); - const checker = parserServices.program.getTypeChecker(); - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - const type = util.getConstrainedTypeAtLocation(checker, tsNode); - if (!tsutils.isTypeFlagSet(type, ts.TypeFlags.VoidLike)) { - // not a void expression - return; - } - const invalidAncestor = findInvalidAncestor(node); - if (invalidAncestor == null) { - // void expression is in valid position - return; - } - const sourceCode = context.getSourceCode(); - const wrapVoidFix = (fixer) => { - const nodeText = sourceCode.getText(node); - const newNodeText = `void ${nodeText}`; - return fixer.replaceText(node, newNodeText); - }; - if (invalidAncestor.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression) { - // handle arrow function shorthand - if (options.ignoreVoidOperator) { - // handle wrapping with `void` - return context.report({ - node, - messageId: 'invalidVoidExprArrowWrapVoid', - fix: wrapVoidFix, - }); - } - // handle wrapping with braces - const arrowFunction = invalidAncestor; - return context.report({ - node, - messageId: 'invalidVoidExprArrow', - fix(fixer) { - const arrowBody = arrowFunction.body; - const arrowBodyText = sourceCode.getText(arrowBody); - const newArrowBodyText = `{ ${arrowBodyText}; }`; - if (util.isParenthesized(arrowBody, sourceCode)) { - const bodyOpeningParen = sourceCode.getTokenBefore(arrowBody, util.isOpeningParenToken); - const bodyClosingParen = sourceCode.getTokenAfter(arrowBody, util.isClosingParenToken); - return fixer.replaceTextRange([bodyOpeningParen.range[0], bodyClosingParen.range[1]], newArrowBodyText); - } - return fixer.replaceText(arrowBody, newArrowBodyText); - }, - }); - } - if (invalidAncestor.type === utils_1.AST_NODE_TYPES.ReturnStatement) { - // handle return statement - if (options.ignoreVoidOperator) { - // handle wrapping with `void` - return context.report({ - node, - messageId: 'invalidVoidExprReturnWrapVoid', - fix: wrapVoidFix, - }); - } - const returnStmt = invalidAncestor; - if (isFinalReturn(returnStmt)) { - // remove the `return` keyword - return context.report({ - node, - messageId: 'invalidVoidExprReturnLast', - fix(fixer) { - const returnValue = returnStmt.argument; - const returnValueText = sourceCode.getText(returnValue); - let newReturnStmtText = `${returnValueText};`; - if (isPreventingASI(returnValue, sourceCode)) { - // put a semicolon at the beginning of the line - newReturnStmtText = `;${newReturnStmtText}`; - } - return fixer.replaceText(returnStmt, newReturnStmtText); - }, - }); - } - // move before the `return` keyword - return context.report({ - node, - messageId: 'invalidVoidExprReturn', - fix(fixer) { - var _a; - const returnValue = returnStmt.argument; - const returnValueText = sourceCode.getText(returnValue); - let newReturnStmtText = `${returnValueText}; return;`; - if (isPreventingASI(returnValue, sourceCode)) { - // put a semicolon at the beginning of the line - newReturnStmtText = `;${newReturnStmtText}`; - } - if (((_a = returnStmt.parent) === null || _a === void 0 ? void 0 : _a.type) !== utils_1.AST_NODE_TYPES.BlockStatement) { - // e.g. `if (cond) return console.error();` - // add braces if not inside a block - newReturnStmtText = `{ ${newReturnStmtText} }`; - } - return fixer.replaceText(returnStmt, newReturnStmtText); - }, - }); - } - // handle generic case - if (options.ignoreVoidOperator) { - // this would be reported by this rule btw. such irony - return context.report({ - node, - messageId: 'invalidVoidExprWrapVoid', - suggest: [{ messageId: 'voidExprWrapVoid', fix: wrapVoidFix }], - }); - } - context.report({ - node, - messageId: 'invalidVoidExpr', - }); - }, - }; - /** - * Inspects the void expression's ancestors and finds closest invalid one. - * By default anything other than an ExpressionStatement is invalid. - * Parent expressions which can be used for their short-circuiting behavior - * are ignored and their parents are checked instead. - * @param node The void expression node to check. - * @returns Invalid ancestor node if it was found. `null` otherwise. - */ - function findInvalidAncestor(node) { - const parent = util.nullThrows(node.parent, util.NullThrowsReasons.MissingParent); - if (parent.type === utils_1.AST_NODE_TYPES.SequenceExpression) { - if (node !== parent.expressions[parent.expressions.length - 1]) { - return null; - } - } - if (parent.type === utils_1.AST_NODE_TYPES.ExpressionStatement) { - // e.g. `{ console.log("foo"); }` - // this is always valid - return null; - } - if (parent.type === utils_1.AST_NODE_TYPES.LogicalExpression) { - if (parent.right === node) { - // e.g. `x && console.log(x)` - // this is valid only if the next ancestor is valid - return findInvalidAncestor(parent); - } - } - if (parent.type === utils_1.AST_NODE_TYPES.ConditionalExpression) { - if (parent.consequent === node || parent.alternate === node) { - // e.g. `cond ? console.log(true) : console.log(false)` - // this is valid only if the next ancestor is valid - return findInvalidAncestor(parent); - } - } - if (parent.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression) { - // e.g. `() => console.log("foo")` - // this is valid with an appropriate option - if (options.ignoreArrowShorthand) { - return null; - } - } - if (parent.type === utils_1.AST_NODE_TYPES.UnaryExpression) { - if (parent.operator === 'void') { - // e.g. `void console.log("foo")` - // this is valid with an appropriate option - if (options.ignoreVoidOperator) { - return null; - } - } - } - if (parent.type === utils_1.AST_NODE_TYPES.ChainExpression) { - // e.g. `console?.log('foo')` - return findInvalidAncestor(parent); - } - // any other parent is invalid - return parent; - } - /** Checks whether the return statement is the last statement in a function body. */ - function isFinalReturn(node) { - // the parent must be a block - const block = util.nullThrows(node.parent, util.NullThrowsReasons.MissingParent); - if (block.type !== utils_1.AST_NODE_TYPES.BlockStatement) { - // e.g. `if (cond) return;` (not in a block) - return false; - } - // the block's parent must be a function - const blockParent = util.nullThrows(block.parent, util.NullThrowsReasons.MissingParent); - if (![ - utils_1.AST_NODE_TYPES.FunctionDeclaration, - utils_1.AST_NODE_TYPES.FunctionExpression, - utils_1.AST_NODE_TYPES.ArrowFunctionExpression, - ].includes(blockParent.type)) { - // e.g. `if (cond) { return; }` - // not in a top-level function block - return false; - } - // must be the last child of the block - if (block.body.indexOf(node) < block.body.length - 1) { - // not the last statement in the block - return false; - } - return true; - } - /** - * Checks whether the given node, if placed on its own line, - * would prevent automatic semicolon insertion on the line before. - * - * This happens if the line begins with `(`, `[` or `` ` `` - */ - function isPreventingASI(node, sourceCode) { - const startToken = util.nullThrows(sourceCode.getFirstToken(node), util.NullThrowsReasons.MissingToken('first token', node.type)); - return ['(', '[', '`'].includes(startToken.value); - } - }, -}); -//# sourceMappingURL=no-confusing-void-expression.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map deleted file mode 100644 index 56e80483..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-void-expression.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-confusing-void-expression.js","sourceRoot":"","sources":["../../src/rules/no-confusing-void-expression.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,iDAAmC;AACnC,+CAAiC;AAEjC,8CAAgC;AAmBhC,kBAAe,IAAI,CAAC,UAAU,CAAqB;IACjD,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,kEAAkE;YACpE,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,eAAe,EACb,oEAAoE;gBACpE,uCAAuC;YACzC,uBAAuB,EACrB,kDAAkD;gBAClD,qCAAqC;gBACrC,gDAAgD;YAClD,oBAAoB,EAClB,6EAA6E;gBAC7E,0CAA0C;YAC5C,4BAA4B,EAC1B,6DAA6D;gBAC7D,qDAAqD;YACvD,qBAAqB,EACnB,4DAA4D;gBAC5D,+CAA+C;YACjD,yBAAyB,EACvB,4DAA4D;gBAC5D,uCAAuC;YACzC,6BAA6B,EAC3B,4CAA4C;gBAC5C,qDAAqD;YACvD,gBAAgB,EAAE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C5C,OAAO,KAAK,CAAC;aACd;YAED,wCAAwC;YACxC,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,CACjC,KAAK,CAAC,MAAM,EACZ,IAAI,CAAC,iBAAiB,CAAC,aAAa,CACrC,CAAC;YACF,IACE,CAAC;gBACC,sBAAc,CAAC,mBAAmB;gBAClC,sBAAc,CAAC,kBAAkB;gBACjC,sBAAc,CAAC,uBAAuB;aACvC,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,EAC5B;gBACA,+BAA+B;gBAC/B,oCAAoC;gBACpC,OAAO,KAAK,CAAC;aACd;YAED,sCAAsC;YACtC,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;gBACpD,sCAAsC;gBACtC,OAAO,KAAK,CAAC;aACd;YAED,OAAO,IAAI,CAAC;QACd,CAAC;QAED;;;;;WAKG;QACH,SAAS,eAAe,CACtB,IAAyB,EACzB,UAAyC;YAEzC,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAChC,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,EAC9B,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,aAAa,EAAE,IAAI,CAAC,IAAI,CAAC,CAC9D,CAAC;YAEF,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QACpD,CAAC;IACH,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js deleted file mode 100644 index 9d57b79b..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-dupe-class-members'); -exports.default = util.createRule({ - name: 'no-dupe-class-members', - meta: { - type: 'problem', - docs: { - description: 'Disallow duplicate class members', - recommended: false, - extendsBaseRule: true, - }, - hasSuggestions: baseRule.meta.hasSuggestions, - schema: baseRule.meta.schema, - messages: baseRule.meta.messages, - }, - defaultOptions: [], - create(context) { - const rules = baseRule.create(context); - function wrapMemberDefinitionListener(coreListener) { - return (node) => { - if (node.computed) { - return; - } - if (node.value && - node.value.type === utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression) { - return; - } - return coreListener(node); - }; - } - return Object.assign(Object.assign(Object.assign({}, rules), (rules.MethodDefinition - ? { - MethodDefinition: wrapMemberDefinitionListener(rules.MethodDefinition), - } - : {})), (rules['MethodDefinition, PropertyDefinition'] - ? { - 'MethodDefinition, PropertyDefinition': wrapMemberDefinitionListener(rules['MethodDefinition, PropertyDefinition']), - } - : {})); - }, -}); -//# sourceMappingURL=no-dupe-class-members.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js.map deleted file mode 100644 index 77ed525e..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dupe-class-members.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-dupe-class-members.js","sourceRoot":"","sources":["../../src/rules/no-dupe-class-members.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAChC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,uBAAuB,CAAC,CAAC;AAK5D,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,kCAAkC;YAC/C,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;QAC5B,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;KACjC;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEvC,SAAS,4BAA4B,CAEnC,YAA+B;YAC/B,OAAO,CAAC,IAAO,EAAQ,EAAE;gBACvB,IAAI,IAAI,CAAC,QAAQ,EAAE;oBACjB,OAAO;iBACR;gBAED,IACE,IAAI,CAAC,KAAK;oBACV,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,6BAA6B,EAChE;oBACA,OAAO;iBACR;gBAED,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC;YAC5B,CAAC,CAAC;QACJ,CAAC;QAED,qDACK,KAAK,GAEL,CAAC,KAAK,CAAC,gBAAgB;YACxB,CAAC,CAAC;gBACE,gBAAgB,EAAE,4BAA4B,CAC5C,KAAK,CAAC,gBAAgB,CACvB;aACF;YACH,CAAC,CAAC,EAAE,CAAC,GAEJ,CAAC,KAAK,CAAC,sCAAsC,CAAC;YAC/C,CAAC,CAAC;gBACE,sCAAsC,EACpC,4BAA4B,CAC1B,KAAK,CAAC,sCAAsC,CAAC,CAC9C;aACJ;YACH,CAAC,CAAC,EAAE,CAAC,EACP;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js deleted file mode 100644 index b69f6af3..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-duplicate-enum-values', - meta: { - type: 'problem', - docs: { - description: 'Disallow duplicate enum member values', - recommended: 'strict', - }, - hasSuggestions: false, - messages: { - duplicateValue: 'Duplicate enum member value {{value}}.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - function isStringLiteral(node) { - return (node.type === utils_1.AST_NODE_TYPES.Literal && typeof node.value === 'string'); - } - function isNumberLiteral(node) { - return (node.type === utils_1.AST_NODE_TYPES.Literal && typeof node.value === 'number'); - } - return { - TSEnumDeclaration(node) { - const enumMembers = node.members; - const seenValues = new Set(); - enumMembers.forEach(member => { - if (member.initializer === undefined) { - return; - } - let value; - if (isStringLiteral(member.initializer)) { - value = String(member.initializer.value); - } - else if (isNumberLiteral(member.initializer)) { - value = Number(member.initializer.value); - } - if (value === undefined) { - return; - } - if (seenValues.has(value)) { - context.report({ - node: member, - messageId: 'duplicateValue', - data: { - value, - }, - }); - } - else { - seenValues.add(value); - } - }); - }, - }; - }, -}); -//# sourceMappingURL=no-duplicate-enum-values.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js.map deleted file mode 100644 index ff782a0d..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-enum-values.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-duplicate-enum-values.js","sourceRoot":"","sources":["../../src/rules/no-duplicate-enum-values.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,uCAAuC;YACpD,WAAW,EAAE,QAAQ;SACtB;QACD,cAAc,EAAE,KAA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BACN;yBACF,CAAC,CAAC;qBACJ;yBAAM;wBACL,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;qBACvB;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-imports.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-imports.js deleted file mode 100644 index 4d464dff..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-imports.js +++ /dev/null @@ -1,124 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-duplicate-imports'); -exports.default = util.createRule({ - name: 'no-duplicate-imports', - meta: { - deprecated: true, - replacedBy: ['import/no-duplicates'], - type: 'problem', - docs: { - description: 'Disallow duplicate imports', - recommended: false, - extendsBaseRule: true, - }, - hasSuggestions: baseRule.meta.hasSuggestions, - schema: baseRule.meta.schema, - messages: Object.assign(Object.assign({}, baseRule.meta.messages), { importType: '{{module}} type import is duplicated.', importTypeAs: '{{module}} type import is duplicated as type export.', exportType: '{{module}} type export is duplicated.', exportTypeAs: '{{module}} type export is duplicated as type import.' }), - }, - defaultOptions: [ - { - includeExports: false, - }, - ], - create(context, [{ includeExports }]) { - const rules = baseRule.create(context); - const typeMemberImports = new Set(); - const typeDefaultImports = new Set(); - const typeExports = new Set(); - function report(messageId, node, module) { - context.report({ - messageId, - node, - data: { - module, - }, - }); - } - function isAllMemberImport(node) { - return node.specifiers.every(specifier => specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier); - } - function checkTypeImport(node) { - if (node.source) { - const value = node.source.value; - const isMemberImport = isAllMemberImport(node); - if (isMemberImport - ? typeMemberImports.has(value) - : typeDefaultImports.has(value)) { - report('importType', node, value); - } - if (includeExports && typeExports.has(value)) { - report('importTypeAs', node, value); - } - if (isMemberImport) { - typeMemberImports.add(value); - } - else { - typeDefaultImports.add(value); - } - } - } - function checkTypeExport(node) { - if (node.source) { - const value = node.source.value; - if (typeExports.has(value)) { - report('exportType', node, value); - } - if (typeMemberImports.has(value) || typeDefaultImports.has(value)) { - report('exportTypeAs', node, value); - } - typeExports.add(value); - } - } - return Object.assign(Object.assign({}, rules), { ImportDeclaration(node) { - if (node.importKind === 'type') { - checkTypeImport(node); - return; - } - rules.ImportDeclaration(node); - }, - ExportNamedDeclaration(node) { - var _a; - if (includeExports && node.exportKind === 'type') { - checkTypeExport(node); - return; - } - (_a = rules.ExportNamedDeclaration) === null || _a === void 0 ? void 0 : _a.call(rules, node); - }, - ExportAllDeclaration(node) { - var _a; - if (includeExports && node.exportKind === 'type') { - checkTypeExport(node); - return; - } - (_a = rules.ExportAllDeclaration) === null || _a === void 0 ? void 0 : _a.call(rules, node); - } }); - }, -}); -//# sourceMappingURL=no-duplicate-imports.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-imports.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-imports.js.map deleted file mode 100644 index 9a86a550..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-imports.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-duplicate-imports.js","sourceRoot":"","sources":["../../src/rules/no-duplicate-imports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAChC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,sBAAsB,CAAC,CAAC;AAK3D,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,UAAU,EAAE,IAAI;QAChB,UAAU,EAAE,CAAC,sBAAsB,CAAC;QACpC,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,4BAA4B;YACzC,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;QAC5B,QAAQ,kCACH,QAAQ,CAAC,IAAI,CAAC,QAAQ,KACzB,UAAU,EAAE,uCAAuC,EACnD,YAAY,EAAE,sDAAsD,EACpE,UAAU,EAAE,uCAAuC,EACnD,YAAY,EAAE,sDAAsD,GACrE;KACF;IACD,cAAc,EAAE;QACd;YACE,cAAc,EAAE,KAAK;SACtB;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC;QAClC,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACvC,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAAE,CAAC;QACpC,MAAM,kBAAkB,GAAG,IAAI,GAAG,EAAE,CA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IAAI,WAAW,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;oBAC1B,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;iBACnC;gBACD,IAAI,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,kBAAkB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;oBACjE,MAAM,CAAC,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;iBACrC;gBACD,WAAW,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;aACxB;QACH,CAAC;QAED,uCACK,KAAK,KACR,iBAAiB,CAAC,IAAI;gBACpB,IAAI,IAAI,CAAC,UAAU,KAAK,MAAM,EAAE;oBAC9B,eAAe,CAAC,IAAI,CAAC,CAAC;oBACtB,OAAO;iBACR;gBACD,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;YAChC,CAAC;YACD,sBAAsB,CAAC,IAAI;;gBACzB,IAAI,cAAc,IAAI,IAAI,CAAC,UAAU,KAAK,MAAM,EAAE;oBAChD,eAAe,CAAC,IAAI,CAAC,CAAC;oBACtB,OAAO;iBACR;gBACD,MAAA,KAAK,CAAC,sBAAsB,sDAAG,IAAI,CAAC,CAAC;YACvC,CAAC;YACD,oBAAoB,CAAC,IAAI;;gBACvB,IAAI,cAAc,IAAI,IAAI,CAAC,UAAU,KAAK,MAAM,EAAE;oBAChD,eAAe,CAAC,IAAI,CAAC,CAAC;oBACtB,OAAO;iBACR;gBACD,MAAA,KAAK,CAAC,oBAAoB,sDAAG,IAAI,CAAC,CAAC;YACrC,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js deleted file mode 100644 index fa58701a..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js +++ /dev/null @@ -1,158 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const astIgnoreKeys = new Set(['range', 'loc', 'parent']); -const isSameAstNode = (actualNode, expectedNode) => { - if (actualNode === expectedNode) { - return true; - } - if (actualNode && - expectedNode && - typeof actualNode === 'object' && - typeof expectedNode === 'object') { - if (Array.isArray(actualNode) && Array.isArray(expectedNode)) { - if (actualNode.length !== expectedNode.length) { - return false; - } - return !actualNode.some((nodeEle, index) => !isSameAstNode(nodeEle, expectedNode[index])); - } - const actualNodeKeys = Object.keys(actualNode).filter(key => !astIgnoreKeys.has(key)); - const expectedNodeKeys = Object.keys(expectedNode).filter(key => !astIgnoreKeys.has(key)); - if (actualNodeKeys.length !== expectedNodeKeys.length) { - return false; - } - if (actualNodeKeys.some(actualNodeKey => !Object.prototype.hasOwnProperty.call(expectedNode, actualNodeKey))) { - return false; - } - if (actualNodeKeys.some(actualNodeKey => !isSameAstNode(actualNode[actualNodeKey], expectedNode[actualNodeKey]))) { - return false; - } - return true; - } - return false; -}; -exports.default = util.createRule({ - name: 'no-duplicate-type-constituents', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow duplicate constituents of union or intersection types', - recommended: false, - requiresTypeChecking: true, - }, - fixable: 'code', - messages: { - duplicate: '{{type}} type constituent is duplicated with {{previous}}.', - }, - schema: [ - { - additionalProperties: false, - type: 'object', - properties: { - ignoreIntersections: { - type: 'boolean', - }, - ignoreUnions: { - type: 'boolean', - }, - }, - }, - ], - }, - defaultOptions: [ - { - ignoreIntersections: false, - ignoreUnions: false, - }, - ], - create(context, [{ ignoreIntersections, ignoreUnions }]) { - const parserServices = util.getParserServices(context); - const checker = parserServices.program.getTypeChecker(); - function checkDuplicate(node) { - const cachedTypeMap = new Map(); - node.types.reduce((uniqueConstituents, constituentNode) => { - const duplicatedPreviousConstituentInAst = uniqueConstituents.find(ele => isSameAstNode(ele, constituentNode)); - if (duplicatedPreviousConstituentInAst) { - reportDuplicate({ - duplicated: constituentNode, - duplicatePrevious: duplicatedPreviousConstituentInAst, - }, node); - return uniqueConstituents; - } - const constituentNodeType = checker.getTypeAtLocation(parserServices.esTreeNodeToTSNodeMap.get(constituentNode)); - const duplicatedPreviousConstituentInType = cachedTypeMap.get(constituentNodeType); - if (duplicatedPreviousConstituentInType) { - reportDuplicate({ - duplicated: constituentNode, - duplicatePrevious: duplicatedPreviousConstituentInType, - }, node); - return uniqueConstituents; - } - cachedTypeMap.set(constituentNodeType, constituentNode); - return [...uniqueConstituents, constituentNode]; - }, []); - } - function reportDuplicate(duplicateConstituent, parentNode) { - const sourceCode = context.getSourceCode(); - const beforeTokens = sourceCode.getTokensBefore(duplicateConstituent.duplicated, { filter: token => token.value === '|' || token.value === '&' }); - const beforeUnionOrIntersectionToken = beforeTokens[beforeTokens.length - 1]; - const bracketBeforeTokens = sourceCode.getTokensBetween(beforeUnionOrIntersectionToken, duplicateConstituent.duplicated); - const bracketAfterTokens = sourceCode.getTokensAfter(duplicateConstituent.duplicated, { count: bracketBeforeTokens.length }); - const reportLocation = { - start: duplicateConstituent.duplicated.loc.start, - end: bracketAfterTokens.length > 0 - ? bracketAfterTokens[bracketAfterTokens.length - 1].loc.end - : duplicateConstituent.duplicated.loc.end, - }; - context.report({ - data: { - type: parentNode.type === utils_1.AST_NODE_TYPES.TSIntersectionType - ? 'Intersection' - : 'Union', - previous: sourceCode.getText(duplicateConstituent.duplicatePrevious), - }, - messageId: 'duplicate', - node: duplicateConstituent.duplicated, - loc: reportLocation, - fix: fixer => { - return [ - beforeUnionOrIntersectionToken, - ...bracketBeforeTokens, - duplicateConstituent.duplicated, - ...bracketAfterTokens, - ].map(token => fixer.remove(token)); - }, - }); - } - return Object.assign(Object.assign({}, (!ignoreIntersections && { - TSIntersectionType: checkDuplicate, - })), (!ignoreUnions && { - TSUnionType: checkDuplicate, - })); - }, -}); -//# sourceMappingURL=no-duplicate-type-constituents.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map deleted file mode 100644 index 26ca808c..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-duplicate-type-constituents.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-duplicate-type-constituents.js","sourceRoot":"","sources":["../../src/rules/no-duplicate-type-constituents.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAG1D,8CAAgC;AAWhC,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;AAE1D,MAAM,aAAa,GAAG,CAAC,UAAmB,EAAE,YAAqB,EAAW,EAAE;IAC5E,IAAI,UAAU,KAAK,YAAY,EAAE;QAC/B,OAAO,IAAI,CAAC;KACb;IACD,IACE,UAAU;QACV,YAAY;QACZ,OAAO,UAAU,KAAK,QAAQ;QAC9B,OAAO,YAAY,KAAK,QAAQ,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3B,CAAC,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG;oBAC3D,CAAC,CAAC,oBAAoB,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG;aAC9C,CAAC;YACF,OAAO,CAAC,MAAM,CAAC;gBACb,IAAI,EAAE;oBACJ,IAAI,EACF,UAAU,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB;wBACnD,CAAC,CAAC,cAAc;wBAChB,CAAC,CAAC,OAAO;oBACb,QAAQ,EAAE,UAAU,CAAC,OAAO,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;iBACrE;gBACD,SAAS,EAAE,WAAW;gBACtB,IAAI,EAAE,oBAAoB,CAAC,UAAU;gBACrC,GAAG,EAAE,cAAc;gBACnB,GAAG,EAAE,KAAK,CAAC,EAAE;oBACX,OAAO;wBACL,8BAA8B;wBAC9B,GAAG,mBAAmB;wBACtB,oBAAoB,CAAC,UAAU;wBAC/B,GAAG,kBAAkB;qBACtB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;gBACtC,CAAC;aACF,CAAC,CAAC;QACL,CAAC;QACD,uCACK,CAAC,CAAC,mBAAmB,IAAI;YAC1B,kBAAkB,EAAE,cAAc;SACnC,CAAC,GACC,CAAC,CAAC,YAAY,IAAI;YACnB,WAAW,EAAE,cAAc;SAC5B,CAAC,EACF;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js deleted file mode 100644 index 3922a309..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-dynamic-delete', - meta: { - docs: { - description: 'Disallow using the `delete` operator on computed key expressions', - recommended: 'strict', - }, - fixable: 'code', - messages: { - dynamicDelete: 'Do not delete dynamically computed property keys.', - }, - schema: [], - type: 'suggestion', - }, - defaultOptions: [], - create(context) { - function createFixer(member) { - if (member.property.type === utils_1.AST_NODE_TYPES.Literal && - typeof member.property.value === 'string') { - return createPropertyReplacement(member.property, `.${member.property.value}`); - } - return undefined; - } - return { - 'UnaryExpression[operator=delete]'(node) { - if (node.argument.type !== utils_1.AST_NODE_TYPES.MemberExpression || - !node.argument.computed || - isNecessaryDynamicAccess(diveIntoWrapperExpressions(node.argument.property))) { - return; - } - context.report({ - fix: createFixer(node.argument), - messageId: 'dynamicDelete', - node: node.argument.property, - }); - }, - }; - function createPropertyReplacement(property, replacement) { - return (fixer) => fixer.replaceTextRange(getTokenRange(property), replacement); - } - function getTokenRange(property) { - const sourceCode = context.getSourceCode(); - return [ - sourceCode.getTokenBefore(property).range[0], - sourceCode.getTokenAfter(property).range[1], - ]; - } - }, -}); -function diveIntoWrapperExpressions(node) { - if (node.type === utils_1.AST_NODE_TYPES.UnaryExpression) { - return diveIntoWrapperExpressions(node.argument); - } - return node; -} -function isNecessaryDynamicAccess(property) { - if (property.type !== utils_1.AST_NODE_TYPES.Literal) { - return false; - } - if (typeof property.value === 'number') { - return true; - } - return (typeof property.value === 'string' && - !tsutils.isValidPropertyAccess(property.value)); -} -//# sourceMappingURL=no-dynamic-delete.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js.map deleted file mode 100644 index 4ed65589..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-dynamic-delete.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-dynamic-delete.js","sourceRoot":"","sources":["../../src/rules/no-dynamic-delete.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,iDAAmC;AAEnC,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,kEAAkE;YACpE,WAAW,EAAE,QAAQ;SACtB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,aAAa,EAAE,mDAAmD;SACnE;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,YAAY;KACnB;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,WAAW,CAClB,MAAiC;YAEjC,IACE,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO;gBAC/C,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,KAAK,QAAQ,EACzC;gBACA,OAAO,yBAAyB,CAC9B,MAAM,CAAC,QAAQ,EACf,IAAI,MAAM,CAAC,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AAwB,CAAC,QAA6B;IAC7D,IAAI,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,EAAE;QAC5C,OAAO,KAAK,CAAC;KACd;IAED,IAAI,OAAO,QAAQ,CAAC,KAAK,KAAK,QAAQ,EAAE;QACtC,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,OAAO,QAAQ,CAAC,KAAK,KAAK,QAAQ;QAClC,CAAC,OAAO,CAAC,qBAAqB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAC/C,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js deleted file mode 100644 index 9d2abd91..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js +++ /dev/null @@ -1,160 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-empty-function'); -const schema = util.deepMerge( -// eslint-disable-next-line @typescript-eslint/no-unsafe-argument -- https://github.com/microsoft/TypeScript/issues/17002 -Array.isArray(baseRule.meta.schema) - ? baseRule.meta.schema[0] - : baseRule.meta.schema, { - properties: { - allow: { - items: { - enum: [ - 'functions', - 'arrowFunctions', - 'generatorFunctions', - 'methods', - 'generatorMethods', - 'getters', - 'setters', - 'constructors', - 'private-constructors', - 'protected-constructors', - 'asyncFunctions', - 'asyncMethods', - 'decoratedFunctions', - 'overrideMethods', - ], - }, - }, - }, -}); -exports.default = util.createRule({ - name: 'no-empty-function', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow empty functions', - recommended: 'error', - extendsBaseRule: true, - }, - hasSuggestions: baseRule.meta.hasSuggestions, - schema: [schema], - messages: baseRule.meta.messages, - }, - defaultOptions: [ - { - allow: [], - }, - ], - create(context, [{ allow = [] }]) { - const rules = baseRule.create(context); - const isAllowedProtectedConstructors = allow.includes('protected-constructors'); - const isAllowedPrivateConstructors = allow.includes('private-constructors'); - const isAllowedDecoratedFunctions = allow.includes('decoratedFunctions'); - const isAllowedOverrideMethods = allow.includes('overrideMethods'); - /** - * Check if the method body is empty - * @param node the node to be validated - * @returns true if the body is empty - * @private - */ - function isBodyEmpty(node) { - return !node.body || node.body.body.length === 0; - } - /** - * Check if method has parameter properties - * @param node the node to be validated - * @returns true if the body has parameter properties - * @private - */ - function hasParameterProperties(node) { - var _a; - return (_a = node.params) === null || _a === void 0 ? void 0 : _a.some(param => param.type === utils_1.AST_NODE_TYPES.TSParameterProperty); - } - /** - * @param node the node to be validated - * @returns true if the constructor is allowed to be empty - * @private - */ - function isAllowedEmptyConstructor(node) { - const parent = node.parent; - if (isBodyEmpty(node) && - (parent === null || parent === void 0 ? void 0 : parent.type) === utils_1.AST_NODE_TYPES.MethodDefinition && - parent.kind === 'constructor') { - const { accessibility } = parent; - return ( - // allow protected constructors - (accessibility === 'protected' && isAllowedProtectedConstructors) || - // allow private constructors - (accessibility === 'private' && isAllowedPrivateConstructors) || - // allow constructors which have parameter properties - hasParameterProperties(node)); - } - return false; - } - /** - * @param node the node to be validated - * @returns true if a function has decorators - * @private - */ - function isAllowedEmptyDecoratedFunctions(node) { - var _a; - if (isAllowedDecoratedFunctions && isBodyEmpty(node)) { - const decorators = ((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.MethodDefinition - ? node.parent.decorators - : undefined; - return !!decorators && !!decorators.length; - } - return false; - } - function isAllowedEmptyOverrideMethod(node) { - var _a; - return (isAllowedOverrideMethods && - isBodyEmpty(node) && - ((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.MethodDefinition && - node.parent.override === true); - } - return Object.assign(Object.assign({}, rules), { FunctionExpression(node) { - if (isAllowedEmptyConstructor(node) || - isAllowedEmptyDecoratedFunctions(node) || - isAllowedEmptyOverrideMethod(node)) { - return; - } - rules.FunctionExpression(node); - }, - FunctionDeclaration(node) { - if (isAllowedEmptyDecoratedFunctions(node)) { - return; - } - rules.FunctionDeclaration(node); - } }); - }, -}); -//# sourceMappingURL=no-empty-function.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js.map deleted file mode 100644 index aca34bc7..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-function.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-empty-function.js","sourceRoot":"","sources":["../../src/rules/no-empty-function.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAChC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,mBAAmB,CAAC,CAAC;AAKxD,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS;AAC3B,yHAAyH;AACzH,KAAK,CAAC,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AC,MAAM,CAAC,UAAU;oBACxB,CAAC,CAAC,SAAS,CAAC;gBAChB,OAAO,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC;aAC5C;YAED,OAAO,KAAK,CAAC;QACf,CAAC;QAED,SAAS,4BAA4B,CACnC,IAAiC;;YAEjC,OAAO,CACL,wBAAwB;gBACxB,WAAW,CAAC,IAAI,CAAC;gBACjB,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,IAAI,MAAK,sBAAc,CAAC,gBAAgB;gBACrD,IAAI,CAAC,MAAM,CAAC,QAAQ,KAAK,IAAI,CAC9B,CAAC;QACJ,CAAC;QAED,uCACK,KAAK,KACR,kBAAkB,CAAC,IAAI;gBACrB,IACE,yBAAyB,CAAC,IAAI,CAAC;oBAC/B,gCAAgC,CAAC,IAAI,CAAC;oBACtC,4BAA4B,CAAC,IAAI,CAAC,EAClC;oBACA,OAAO;iBACR;gBAED,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;YACjC,CAAC;YACD,mBAAmB,CAAC,IAAI;gBACtB,IAAI,gCAAgC,CAAC,IAAI,CAAC,EAAE;oBAC1C,OAAO;iBACR;gBAED,KAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;YAClC,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js deleted file mode 100644 index b112f705..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js +++ /dev/null @@ -1,111 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-empty-interface', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow the declaration of empty interfaces', - recommended: 'error', - }, - fixable: 'code', - hasSuggestions: true, - messages: { - noEmpty: 'An empty interface is equivalent to `{}`.', - noEmptyWithSuper: 'An interface declaring no members is equivalent to its supertype.', - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: { - allowSingleExtends: { - type: 'boolean', - }, - }, - }, - ], - }, - defaultOptions: [ - { - allowSingleExtends: false, - }, - ], - create(context, [{ allowSingleExtends }]) { - return { - TSInterfaceDeclaration(node) { - var _a, _b; - const sourceCode = context.getSourceCode(); - const filename = context.getFilename(); - if (node.body.body.length !== 0) { - // interface contains members --> Nothing to report - return; - } - const extend = node.extends; - if (!extend || extend.length === 0) { - context.report({ - node: node.id, - messageId: 'noEmpty', - }); - } - else if (extend.length === 1) { - // interface extends exactly 1 interface --> Report depending on rule setting - if (!allowSingleExtends) { - const fix = (fixer) => { - let typeParam = ''; - if (node.typeParameters) { - typeParam = sourceCode.getText(node.typeParameters); - } - return fixer.replaceText(node, `type ${sourceCode.getText(node.id)}${typeParam} = ${sourceCode.getText(extend[0])}`); - }; - const scope = context.getScope(); - const mergedWithClassDeclaration = (_b = (_a = scope.set - .get(node.id.name)) === null || _a === void 0 ? void 0 : _a.defs) === null || _b === void 0 ? void 0 : _b.some(def => def.node.type === utils_1.AST_NODE_TYPES.ClassDeclaration); - const isInAmbientDeclaration = !!(util.isDefinitionFile(filename) && - scope.type === 'tsModule' && - scope.block.declare); - const useAutoFix = !(isInAmbientDeclaration || mergedWithClassDeclaration); - context.report(Object.assign({ node: node.id, messageId: 'noEmptyWithSuper' }, (useAutoFix - ? { fix } - : !mergedWithClassDeclaration - ? { - suggest: [ - { - messageId: 'noEmptyWithSuper', - fix, - }, - ], - } - : null))); - } - } - }, - }; - }, -}); -//# sourceMappingURL=no-empty-interface.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map deleted file mode 100644 index 437ed3dc..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-empty-interface.js","sourceRoot":"","sources":["../../src/rules/no-empty-interface.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAShC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,8CAA8C;YAC3D,WAAW,EAAE,OAAO;SACrB;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,OAAO,EAAE,2CAA2C;YACpD,gBAAgB,EACd,mEAAmE;SACtE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,kBAAkB,EAAE;wBAClB,IAAI,EAAE,SAAS;qBAChB;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YAC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zC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,0CAChB,IAAI,0CAAE,IAAI,CACV,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,CACzD,CAAC;wBAEJ,MAAM,sBAAsB,GAAG,CAAC,CAAC,CAC/B,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC;4BAC/B,KAAK,CAAC,IAAI,KAAK,UAAU;4BACzB,KAAK,CAAC,KAAK,CAAC,OAAO,CACpB,CAAC;wBAEF,MAAM,UAAU,GAAG,CAAC,CAClB,sBAAsB,IAAI,0BAA0B,CACrD,CAAC;wBAEF,OAAO,CAAC,MAAM,iBACZ,IAAI,EAAE,IAAI,CAAC,EAAE,EACb,SAAS,EAAE,kBAAkB,IAC1B,CAAC,UAAU;4BACZ,CAAC,CAAC,EAAE,GAAG,EAAE;4BACT,CAAC,CAAC,CAAC,0BAA0B;gCAC7B,CAAC,CAAC;oCACE,OAAO,EAAE;wCACP;4CACE,SAAS,EAAE,kBAAkB;4CAC7B,GAAG;yCACJ;qCACF;iCACF;gCACH,CAAC,CAAC,IAAI,CAAC,EACT,CAAC;qBACJ;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js deleted file mode 100644 index 2c0007dc..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js +++ /dev/null @@ -1,193 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-explicit-any', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow the `any` type', - recommended: 'warn', - }, - fixable: 'code', - hasSuggestions: true, - messages: { - unexpectedAny: 'Unexpected any. Specify a different type.', - suggestUnknown: 'Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct.', - suggestNever: "Use `never` instead, this is useful when instantiating generic type parameters that you don't need to know the type of.", - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: { - fixToUnknown: { - description: 'Whether to enable auto-fixing in which the `any` type is converted to the `unknown` type.', - type: 'boolean', - }, - ignoreRestArgs: { - description: 'Whether to ignore rest parameter arrays.', - type: 'boolean', - }, - }, - }, - ], - }, - defaultOptions: [ - { - fixToUnknown: false, - ignoreRestArgs: false, - }, - ], - create(context, [{ ignoreRestArgs, fixToUnknown }]) { - /** - * Checks if the node is an arrow function, function/constructor declaration or function expression - * @param node the node to be validated. - * @returns true if the node is any kind of function declaration or expression - * @private - */ - function isNodeValidFunction(node) { - return [ - utils_1.AST_NODE_TYPES.ArrowFunctionExpression, - utils_1.AST_NODE_TYPES.FunctionDeclaration, - utils_1.AST_NODE_TYPES.FunctionExpression, - utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression, - utils_1.AST_NODE_TYPES.TSFunctionType, - utils_1.AST_NODE_TYPES.TSConstructorType, - utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration, - utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration, - utils_1.AST_NODE_TYPES.TSMethodSignature, - utils_1.AST_NODE_TYPES.TSDeclareFunction, // declare function _8(...args: any[]): unknown; - ].includes(node.type); - } - /** - * Checks if the node is a rest element child node of a function - * @param node the node to be validated. - * @returns true if the node is a rest element child node of a function - * @private - */ - function isNodeRestElementInFunction(node) { - return (node.type === utils_1.AST_NODE_TYPES.RestElement && - node.parent !== undefined && - isNodeValidFunction(node.parent)); - } - /** - * Checks if the node is a TSTypeOperator node with a readonly operator - * @param node the node to be validated. - * @returns true if the node is a TSTypeOperator node with a readonly operator - * @private - */ - function isNodeReadonlyTSTypeOperator(node) { - return (node.type === utils_1.AST_NODE_TYPES.TSTypeOperator && - node.operator === 'readonly'); - } - /** - * Checks if the node is a TSTypeReference node with an Array identifier - * @param node the node to be validated. - * @returns true if the node is a TSTypeReference node with an Array identifier - * @private - */ - function isNodeValidArrayTSTypeReference(node) { - return (node.type === utils_1.AST_NODE_TYPES.TSTypeReference && - node.typeName !== undefined && - node.typeName.type === utils_1.AST_NODE_TYPES.Identifier && - ['Array', 'ReadonlyArray'].includes(node.typeName.name)); - } - /** - * Checks if the node is a valid TSTypeOperator or TSTypeReference node - * @param node the node to be validated. - * @returns true if the node is a valid TSTypeOperator or TSTypeReference node - * @private - */ - function isNodeValidTSType(node) { - return (isNodeReadonlyTSTypeOperator(node) || - isNodeValidArrayTSTypeReference(node)); - } - /** - * Checks if the great grand-parent node is a RestElement node in a function - * @param node the node to be validated. - * @returns true if the great grand-parent node is a RestElement node in a function - * @private - */ - function isGreatGrandparentRestElement(node) { - var _a, _b; - return (((_b = (_a = node === null || node === void 0 ? void 0 : node.parent) === null || _a === void 0 ? void 0 : _a.parent) === null || _b === void 0 ? void 0 : _b.parent) != null && - isNodeRestElementInFunction(node.parent.parent.parent)); - } - /** - * Checks if the great great grand-parent node is a valid RestElement node in a function - * @param node the node to be validated. - * @returns true if the great great grand-parent node is a valid RestElement node in a function - * @private - */ - function isGreatGreatGrandparentRestElement(node) { - var _a, _b, _c; - return (((_c = (_b = (_a = node.parent) === null || _a === void 0 ? void 0 : _a.parent) === null || _b === void 0 ? void 0 : _b.parent) === null || _c === void 0 ? void 0 : _c.parent) != null && - isNodeValidTSType(node.parent.parent) && - isNodeRestElementInFunction(node.parent.parent.parent.parent)); - } - /** - * Checks if the great grand-parent or the great great grand-parent node is a RestElement node - * @param node the node to be validated. - * @returns true if the great grand-parent or the great great grand-parent node is a RestElement node - * @private - */ - function isNodeDescendantOfRestElementInFunction(node) { - return (isGreatGrandparentRestElement(node) || - isGreatGreatGrandparentRestElement(node)); - } - return { - TSAnyKeyword(node) { - if (ignoreRestArgs && isNodeDescendantOfRestElementInFunction(node)) { - return; - } - const fixOrSuggest = { - fix: null, - suggest: [ - { - messageId: 'suggestUnknown', - fix(fixer) { - return fixer.replaceText(node, 'unknown'); - }, - }, - { - messageId: 'suggestNever', - fix(fixer) { - return fixer.replaceText(node, 'never'); - }, - }, - ], - }; - if (fixToUnknown) { - fixOrSuggest.fix = (fixer) => fixer.replaceText(node, 'unknown'); - } - context.report(Object.assign({ node, messageId: 'unexpectedAny' }, fixOrSuggest)); - }, - }; - }, -}); -//# sourceMappingURL=no-explicit-any.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map deleted file mode 100644 index 76716e96..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-explicit-any.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-explicit-any.js","sourceRoot":"","sources":["../../src/rules/no-explicit-any.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAUhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI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,MAAM,CAAC,MAAM,CAAC;gBACrC,2BAA2B,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAC9D,CAAC;QACJ,CAAC;QAED;;;;;WAKG;QACH,SAAS,uCAAuC,CAC9C,IAAmB;YAEnB,OAAO,CACL,6BAA6B,CAAC,IAAI,CAAC;gBACnC,kCAAkC,CAAC,IAAI,CAAC,CACzC,CAAC;QACJ,CAAC;QAED,OAAO;YACL,YAAY,CAAC,IAAI;gBACf,IAAI,cAAc,IAAI,uCAAuC,CAAC,IAAI,CAAC,EAAE;oBACnE,OAAO;iBACR;gBAED,MAAM,YAAY,GAGd;oBACF,GAAG,EAAE,IAAI;oBACT,OAAO,EAAE;wBACP;4BACE,SAAS,EAAE,gBAAgB;4BAC3B,GAAG,CAAC,KAAK;gCACP,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;4BAC5C,CAAC;yBACF;wBACD;4BACE,SAAS,EAAE,cAAc;4BACzB,GAAG,CAAC,KAAK;gCACP,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;4BAC1C,CAAC;yBACF;qBACF;iBACF,CAAC;gBAEF,IAAI,YAAY,EAAE;oBAChB,YAAY,CAAC,GAAG,GAAG,CAAC,KAAK,EAAoB,EAAE,CAC7C,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;iBACtC;gBAED,OAAO,CAAC,MAAM,iBACZ,IAAI,EACJ,SAAS,EAAE,eAAe,IACvB,YAAY,EACf,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js deleted file mode 100644 index 5f5f53e9..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-extra-non-null-assertion', - meta: { - type: 'problem', - docs: { - description: 'Disallow extra non-null assertions', - recommended: 'error', - }, - fixable: 'code', - schema: [], - messages: { - noExtraNonNullAssertion: 'Forbidden extra non-null assertion.', - }, - }, - defaultOptions: [], - create(context) { - function checkExtraNonNullAssertion(node) { - context.report({ - node, - messageId: 'noExtraNonNullAssertion', - fix(fixer) { - return fixer.removeRange([node.range[1] - 1, node.range[1]]); - }, - }); - } - return { - 'TSNonNullExpression > TSNonNullExpression': checkExtraNonNullAssertion, - 'MemberExpression[optional = true] > TSNonNullExpression.object': checkExtraNonNullAssertion, - 'CallExpression[optional = true] > TSNonNullExpression.callee': checkExtraNonNullAssertion, - }; - }, -}); -//# sourceMappingURL=no-extra-non-null-assertion.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js.map deleted file mode 100644 index c6d62e66..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-non-null-assertion.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-extra-non-null-assertion.js","sourceRoot":"","sources":["../../src/rules/no-extra-non-null-assertion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,oCAAoC;YACjD,WAAW,EAAE,OAAO;SACrB;QACD,OAAO,EAAE,MAAM;QACf,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,uBAAuB,EAAE,qCAAqC;SAC/D;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,0BAA0B,CACjC,IAAkC;YAElC,OAAO,CAAC,MAAM,CAAC;gBACb,IAAI;gBACJ,SAAS,EAAE,yBAAyB;gBACpC,GAAG,CAAC,KAAK;oBACP,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC/D,CAAC;aACF,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,2CAA2C,EAAE,0BAA0B;YACvE,gEAAgE,EAC9D,0BAA0B;YAC5B,8DAA8D,EAC5D,0BAA0B;SAC7B,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js deleted file mode 100644 index 3a3e7992..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js +++ /dev/null @@ -1,223 +0,0 @@ -"use strict"; -// any is required to work around manipulating the AST in weird ways -/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-extra-parens'); -exports.default = util.createRule({ - name: 'no-extra-parens', - meta: { - type: 'layout', - docs: { - description: 'Disallow unnecessary parentheses', - recommended: false, - extendsBaseRule: true, - }, - fixable: 'code', - hasSuggestions: baseRule.meta.hasSuggestions, - schema: baseRule.meta.schema, - messages: baseRule.meta.messages, - }, - defaultOptions: ['all'], - create(context) { - const rules = baseRule.create(context); - function binaryExp(node) { - const rule = rules.BinaryExpression; - // makes the rule think it should skip the left or right - const isLeftTypeAssertion = util.isTypeAssertion(node.left); - const isRightTypeAssertion = util.isTypeAssertion(node.right); - if (isLeftTypeAssertion && isRightTypeAssertion) { - return; // ignore - } - if (isLeftTypeAssertion) { - return rule(Object.assign(Object.assign({}, node), { left: Object.assign(Object.assign({}, node.left), { type: utils_1.AST_NODE_TYPES.SequenceExpression }) })); - } - if (isRightTypeAssertion) { - return rule(Object.assign(Object.assign({}, node), { right: Object.assign(Object.assign({}, node.right), { type: utils_1.AST_NODE_TYPES.SequenceExpression }) })); - } - return rule(node); - } - function callExp(node) { - var _a; - const rule = rules.CallExpression; - if (util.isTypeAssertion(node.callee)) { - // reduces the precedence of the node so the rule thinks it needs to be wrapped - return rule(Object.assign(Object.assign({}, node), { callee: Object.assign(Object.assign({}, node.callee), { type: utils_1.AST_NODE_TYPES.SequenceExpression }) })); - } - if (node.arguments.length === 1 && - ((_a = node.typeParameters) === null || _a === void 0 ? void 0 : _a.params.some(param => param.type === utils_1.AST_NODE_TYPES.TSImportType || - param.type === utils_1.AST_NODE_TYPES.TSArrayType))) { - return rule(Object.assign(Object.assign({}, node), { arguments: [ - Object.assign(Object.assign({}, node.arguments[0]), { type: utils_1.AST_NODE_TYPES.SequenceExpression }), - ] })); - } - return rule(node); - } - function unaryUpdateExpression(node) { - const rule = rules.UnaryExpression; - if (util.isTypeAssertion(node.argument)) { - // reduces the precedence of the node so the rule thinks it needs to be wrapped - return rule(Object.assign(Object.assign({}, node), { argument: Object.assign(Object.assign({}, node.argument), { type: utils_1.AST_NODE_TYPES.SequenceExpression }) })); - } - return rule(node); - } - const overrides = { - // ArrayExpression - ArrowFunctionExpression(node) { - if (!util.isTypeAssertion(node.body)) { - return rules.ArrowFunctionExpression(node); - } - }, - // AssignmentExpression - AwaitExpression(node) { - if (util.isTypeAssertion(node.argument)) { - // reduces the precedence of the node so the rule thinks it needs to be wrapped - return rules.AwaitExpression(Object.assign(Object.assign({}, node), { argument: Object.assign(Object.assign({}, node.argument), { type: utils_1.AST_NODE_TYPES.SequenceExpression }) })); - } - return rules.AwaitExpression(node); - }, - BinaryExpression: binaryExp, - CallExpression: callExp, - ClassDeclaration(node) { - var _a; - if (((_a = node.superClass) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.TSAsExpression) { - return rules.ClassDeclaration(Object.assign(Object.assign({}, node), { superClass: Object.assign(Object.assign({}, node.superClass), { type: utils_1.AST_NODE_TYPES.SequenceExpression }) })); - } - return rules.ClassDeclaration(node); - }, - ClassExpression(node) { - var _a; - if (((_a = node.superClass) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.TSAsExpression) { - return rules.ClassExpression(Object.assign(Object.assign({}, node), { superClass: Object.assign(Object.assign({}, node.superClass), { type: utils_1.AST_NODE_TYPES.SequenceExpression }) })); - } - return rules.ClassExpression(node); - }, - ConditionalExpression(node) { - // reduces the precedence of the node so the rule thinks it needs to be wrapped - if (util.isTypeAssertion(node.test)) { - return rules.ConditionalExpression(Object.assign(Object.assign({}, node), { test: Object.assign(Object.assign({}, node.test), { type: utils_1.AST_NODE_TYPES.SequenceExpression }) })); - } - if (util.isTypeAssertion(node.consequent)) { - return rules.ConditionalExpression(Object.assign(Object.assign({}, node), { consequent: Object.assign(Object.assign({}, node.consequent), { type: utils_1.AST_NODE_TYPES.SequenceExpression }) })); - } - if (util.isTypeAssertion(node.alternate)) { - // reduces the precedence of the node so the rule thinks it needs to be wrapped - return rules.ConditionalExpression(Object.assign(Object.assign({}, node), { alternate: Object.assign(Object.assign({}, node.alternate), { type: utils_1.AST_NODE_TYPES.SequenceExpression }) })); - } - return rules.ConditionalExpression(node); - }, - // DoWhileStatement - // ForIn and ForOf are guarded by eslint version - ForStatement(node) { - // make the rule skip the piece by removing it entirely - if (node.init && util.isTypeAssertion(node.init)) { - return rules.ForStatement(Object.assign(Object.assign({}, node), { init: null })); - } - if (node.test && util.isTypeAssertion(node.test)) { - return rules.ForStatement(Object.assign(Object.assign({}, node), { test: null })); - } - if (node.update && util.isTypeAssertion(node.update)) { - return rules.ForStatement(Object.assign(Object.assign({}, node), { update: null })); - } - return rules.ForStatement(node); - }, - 'ForStatement > *.init:exit'(node) { - if (!util.isTypeAssertion(node)) { - return rules['ForStatement > *.init:exit'](node); - } - }, - // IfStatement - LogicalExpression: binaryExp, - MemberExpression(node) { - if (util.isTypeAssertion(node.object)) { - // reduces the precedence of the node so the rule thinks it needs to be wrapped - return rules.MemberExpression(Object.assign(Object.assign({}, node), { object: Object.assign(Object.assign({}, node.object), { type: utils_1.AST_NODE_TYPES.SequenceExpression }) })); - } - return rules.MemberExpression(node); - }, - NewExpression: callExp, - // ObjectExpression - // ReturnStatement - // SequenceExpression - SpreadElement(node) { - if (!util.isTypeAssertion(node.argument)) { - return rules.SpreadElement(node); - } - }, - SwitchCase(node) { - if (node.test && !util.isTypeAssertion(node.test)) { - return rules.SwitchCase(node); - } - }, - // SwitchStatement - ThrowStatement(node) { - if (node.argument && !util.isTypeAssertion(node.argument)) { - return rules.ThrowStatement(node); - } - }, - UnaryExpression: unaryUpdateExpression, - UpdateExpression: unaryUpdateExpression, - // VariableDeclarator - // WhileStatement - // WithStatement - i'm not going to even bother implementing this terrible and never used feature - YieldExpression(node) { - if (node.argument && !util.isTypeAssertion(node.argument)) { - return rules.YieldExpression(node); - } - }, - }; - if (rules.ForInStatement && rules.ForOfStatement) { - overrides.ForInStatement = function (node) { - if (util.isTypeAssertion(node.right)) { - // as of 7.20.0 there's no way to skip checking the right of the ForIn - // so just don't validate it at all - return; - } - return rules.ForInStatement(node); - }; - overrides.ForOfStatement = function (node) { - if (util.isTypeAssertion(node.right)) { - // makes the rule skip checking of the right - return rules.ForOfStatement(Object.assign(Object.assign({}, node), { type: utils_1.AST_NODE_TYPES.ForOfStatement, right: Object.assign(Object.assign({}, node.right), { type: utils_1.AST_NODE_TYPES.SequenceExpression }) })); - } - return rules.ForOfStatement(node); - }; - } - else { - overrides['ForInStatement, ForOfStatement'] = function (node) { - if (util.isTypeAssertion(node.right)) { - // makes the rule skip checking of the right - return rules['ForInStatement, ForOfStatement'](Object.assign(Object.assign({}, node), { type: utils_1.AST_NODE_TYPES.ForOfStatement, right: Object.assign(Object.assign({}, node.right), { type: utils_1.AST_NODE_TYPES.SequenceExpression }) })); - } - return rules['ForInStatement, ForOfStatement'](node); - }; - } - return Object.assign({}, rules, overrides); - }, -}); -//# sourceMappingURL=no-extra-parens.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js.map deleted file mode 100644 index 4f41e5ab..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-parens.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-extra-parens.js","sourceRoot":"","sources":["../../src/rules/no-extra-parens.ts"],"names":[],"mappings":";AAAA,oEAAoE;AACpE,gGAAgG;;;;;;;;;;;;;;;;;;;;;;;;;AAGhG,oDAA0D;AAE1D,8CAAgC;AAChC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,iBAAiB,CAAC,CAAC;AAKtD,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE;YACJ,WAAW,EAAE,kCAAkC;YAC/C,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;QAC5B,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;KACjC;IACD,cAAc,EAAE,CAAC,KAAK,CAAC;IACvB,MAAM,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEvC,SAAS,SAAS,CAChB,IAA4D;YAE5D,MAAM,IAAI,GAAG,KAAK,CAAC,gBAA4C,CAAC;YAEhE,wDAAwD;YACxD,MAAM,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IAAI,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;oBACpC,4CAA4C;oBAC5C,OAAO,KAAK,CAAC,cAAc,iCACtB,IAAI,KACP,IAAI,EAAE,sBAAc,CAAC,cAAc,EACnC,KAAK,kCACA,IAAI,CAAC,KAAK,KACb,IAAI,EAAE,sBAAc,CAAC,kBAAyB,OAEhD,CAAC;iBACJ;gBAED,OAAO,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YACpC,CAAC,CAAC;SACH;aAAM;YACL,SAAS,CAAC,gCAAgC,CAAC,GAAG,UAC5C,IAAuD;gBAEvD,IAAI,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;oBACpC,4CAA4C;oBAC5C,OAAO,KAAK,CAAC,gCAAgC,CAAC,iCACzC,IAAI,KACP,IAAI,EAAE,sBAAc,CAAC,cAAqB,EAC1C,KAAK,kCACA,IAAI,CAAC,KAAK,KACb,IAAI,EAAE,sBAAc,CAAC,kBAAyB,OAEhD,CAAC;iBACJ;gBAED,OAAO,KAAK,CAAC,gCAAgC,CAAC,CAAC,IAAI,CAAC,CAAC;YACvD,CAAC,CAAC;SACH;QACD,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;IAC7C,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js deleted file mode 100644 index 81d1707b..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-extra-semi'); -exports.default = util.createRule({ - name: 'no-extra-semi', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow unnecessary semicolons', - recommended: 'error', - extendsBaseRule: true, - }, - fixable: 'code', - hasSuggestions: baseRule.meta.hasSuggestions, - schema: baseRule.meta.schema, - messages: baseRule.meta.messages, - }, - defaultOptions: [], - create(context) { - const rules = baseRule.create(context); - return Object.assign(Object.assign({}, rules), { 'TSAbstractMethodDefinition, TSAbstractPropertyDefinition'(node) { - var _a; - if (rules.MethodDefinition) { - // for ESLint <= v7 - rules.MethodDefinition(node); - } - else if (rules['MethodDefinition, PropertyDefinition']) { - // for ESLint >= v8 < v8.3.0 - rules['MethodDefinition, PropertyDefinition'](node); - } - else { - // for ESLint >= v8.3.0 - (_a = rules['MethodDefinition, PropertyDefinition, StaticBlock']) === null || _a === void 0 ? void 0 : _a.call(rules, node); - } - } }); - }, -}); -//# sourceMappingURL=no-extra-semi.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js.map deleted file mode 100644 index 3f9e27a8..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extra-semi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-extra-semi.js","sourceRoot":"","sources":["../../src/rules/no-extra-semi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAgC;AAChC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,eAAe,CAAC,CAAC;AAKpD,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,iCAAiC;YAC9C,WAAW,EAAE,OAAO;YACpB,eAAe,EAAE,IAAI;SACtB;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;QAC5B,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ;KACjC;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEvC,uCACK,KAAK,KACR,0DAA0D,CACxD,IAAW;;gBAEX,IAAI,KAAK,CAAC,gBAAgB,EAAE;oBAC1B,mBAAmB;oBACnB,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;iBAC9B;qBAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,EAAE;oBACxD,4BAA4B;oBAC5B,KAAK,CAAC,sCAAsC,CAAC,CAAC,IAAI,CAAC,CAAC;iBACrD;qBAAM;oBACL,uBAAuB;oBACvB,MAAA,KAAK,CAAC,mDAAmD,CAAC,sDAAG,IAAI,CAAC,CAAC;iBACpE;YACH,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js deleted file mode 100644 index 5d1d4e79..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js +++ /dev/null @@ -1,136 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-extraneous-class', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow classes used as namespaces', - recommended: 'strict', - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: { - allowConstructorOnly: { - description: 'Whether to allow extraneous classes that contain only a constructor.', - type: 'boolean', - }, - allowEmpty: { - description: 'Whether to allow extraneous classes that have no body (i.e. are empty).', - type: 'boolean', - }, - allowStaticOnly: { - description: 'Whether to allow extraneous classes that only contain static members.', - type: 'boolean', - }, - allowWithDecorator: { - description: 'Whether to allow extraneous classes that include a decorator.', - type: 'boolean', - }, - }, - }, - ], - messages: { - empty: 'Unexpected empty class.', - onlyStatic: 'Unexpected class with only static properties.', - onlyConstructor: 'Unexpected class with only a constructor.', - }, - }, - defaultOptions: [ - { - allowConstructorOnly: false, - allowEmpty: false, - allowStaticOnly: false, - allowWithDecorator: false, - }, - ], - create(context, [{ allowConstructorOnly, allowEmpty, allowStaticOnly, allowWithDecorator }]) { - const isAllowWithDecorator = (node) => { - return !!(allowWithDecorator && - node && - node.decorators && - node.decorators.length); - }; - return { - ClassBody(node) { - const parent = node.parent; - if (!parent || parent.superClass || isAllowWithDecorator(parent)) { - return; - } - const reportNode = 'id' in parent && parent.id ? parent.id : parent; - if (node.body.length === 0) { - if (allowEmpty) { - return; - } - context.report({ - node: reportNode, - messageId: 'empty', - }); - return; - } - let onlyStatic = true; - let onlyConstructor = true; - for (const prop of node.body) { - if ('kind' in prop && prop.kind === 'constructor') { - if (prop.value.params.some(param => param.type === utils_1.AST_NODE_TYPES.TSParameterProperty)) { - onlyConstructor = false; - onlyStatic = false; - } - } - else { - onlyConstructor = false; - if ('static' in prop && !prop.static) { - onlyStatic = false; - } - } - if (!(onlyStatic || onlyConstructor)) { - break; - } - } - if (onlyConstructor) { - if (!allowConstructorOnly) { - context.report({ - node: reportNode, - messageId: 'onlyConstructor', - }); - } - return; - } - if (onlyStatic && !allowStaticOnly) { - context.report({ - node: reportNode, - messageId: 'onlyStatic', - }); - } - }, - }; - }, -}); -//# sourceMappingURL=no-extraneous-class.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js.map deleted file mode 100644 index 41e2d3cb..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-extraneous-class.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-extraneous-class.js","sourceRoot":"","sources":["../../src/rules/no-extraneous-class.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAYhC,kBAAe,I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AiB;yBAC7B,CAAC,CAAC;qBACJ;oBACD,OAAO;iBACR;gBACD,IAAI,UAAU,IAAI,CAAC,eAAe,EAAE;oBAClC,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI,EAAE,UAAU;wBAChB,SAAS,EAAE,YAAY;qBACxB,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js deleted file mode 100644 index 3d53fc76..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js +++ /dev/null @@ -1,259 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -const util_1 = require("../util"); -exports.default = util.createRule({ - name: 'no-floating-promises', - meta: { - docs: { - description: 'Require Promise-like statements to be handled appropriately', - recommended: 'error', - requiresTypeChecking: true, - }, - hasSuggestions: true, - messages: { - floating: 'Promises must be awaited, end with a call to .catch, or end with a call to .then with a rejection handler.', - floatingFixAwait: 'Add await operator.', - floatingVoid: 'Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler' + - ' or be explicitly marked as ignored with the `void` operator.', - floatingFixVoid: 'Add void operator to ignore.', - }, - schema: [ - { - type: 'object', - properties: { - ignoreVoid: { - description: 'Whether to ignore `void` expressions.', - type: 'boolean', - }, - ignoreIIFE: { - description: 'Whether to ignore async IIFEs (Immediately Invocated Function Expressions).', - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - type: 'problem', - }, - defaultOptions: [ - { - ignoreVoid: true, - ignoreIIFE: false, - }, - ], - create(context, [options]) { - const parserServices = util.getParserServices(context); - const checker = parserServices.program.getTypeChecker(); - return { - ExpressionStatement(node) { - if (options.ignoreIIFE && isAsyncIife(node)) { - return; - } - let expression = node.expression; - if (expression.type === utils_1.AST_NODE_TYPES.ChainExpression) { - expression = expression.expression; - } - if (isUnhandledPromise(checker, expression)) { - if (options.ignoreVoid) { - context.report({ - node, - messageId: 'floatingVoid', - suggest: [ - { - messageId: 'floatingFixVoid', - fix(fixer) { - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node.expression); - if (isHigherPrecedenceThanUnary(tsNode)) { - return fixer.insertTextBefore(node, 'void '); - } - else { - return [ - fixer.insertTextBefore(node, 'void ('), - fixer.insertTextAfterRange([expression.range[1], expression.range[1]], ')'), - ]; - } - }, - }, - ], - }); - } - else { - context.report({ - node, - messageId: 'floating', - suggest: [ - { - messageId: 'floatingFixAwait', - fix(fixer) { - if (expression.type === utils_1.AST_NODE_TYPES.UnaryExpression && - expression.operator === 'void') { - return fixer.replaceTextRange([expression.range[0], expression.range[0] + 4], 'await'); - } - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node.expression); - if (isHigherPrecedenceThanUnary(tsNode)) { - return fixer.insertTextBefore(node, 'await '); - } - else { - return [ - fixer.insertTextBefore(node, 'await ('), - fixer.insertTextAfterRange([expression.range[1], expression.range[1]], ')'), - ]; - } - }, - }, - ], - }); - } - } - }, - }; - function isHigherPrecedenceThanUnary(node) { - const operator = tsutils.isBinaryExpression(node) - ? node.operatorToken.kind - : ts.SyntaxKind.Unknown; - const nodePrecedence = util.getOperatorPrecedence(node.kind, operator); - return nodePrecedence > util_1.OperatorPrecedence.Unary; - } - function isAsyncIife(node) { - if (node.expression.type !== utils_1.AST_NODE_TYPES.CallExpression) { - return false; - } - return (node.expression.type === utils_1.AST_NODE_TYPES.CallExpression && - (node.expression.callee.type === - utils_1.AST_NODE_TYPES.ArrowFunctionExpression || - node.expression.callee.type === utils_1.AST_NODE_TYPES.FunctionExpression)); - } - function isUnhandledPromise(checker, node) { - // First, check expressions whose resulting types may not be promise-like - if (node.type === utils_1.AST_NODE_TYPES.SequenceExpression) { - // Any child in a comma expression could return a potentially unhandled - // promise, so we check them all regardless of whether the final returned - // value is promise-like. - return node.expressions.some(item => isUnhandledPromise(checker, item)); - } - if (!options.ignoreVoid && - node.type === utils_1.AST_NODE_TYPES.UnaryExpression && - node.operator === 'void') { - // Similarly, a `void` expression always returns undefined, so we need to - // see what's inside it without checking the type of the overall expression. - return isUnhandledPromise(checker, node.argument); - } - // Check the type. At this point it can't be unhandled if it isn't a promise - if (!isPromiseLike(checker, parserServices.esTreeNodeToTSNodeMap.get(node))) { - return false; - } - if (node.type === utils_1.AST_NODE_TYPES.CallExpression) { - // If the outer expression is a call, it must be either a `.then()` or - // `.catch()` that handles the promise. - return (!isPromiseCatchCallWithHandler(node) && - !isPromiseThenCallWithRejectionHandler(node) && - !isPromiseFinallyCallWithHandler(node)); - } - else if (node.type === utils_1.AST_NODE_TYPES.ConditionalExpression) { - // We must be getting the promise-like value from one of the branches of the - // ternary. Check them directly. - return (isUnhandledPromise(checker, node.alternate) || - isUnhandledPromise(checker, node.consequent)); - } - else if (node.type === utils_1.AST_NODE_TYPES.MemberExpression || - node.type === utils_1.AST_NODE_TYPES.Identifier || - node.type === utils_1.AST_NODE_TYPES.NewExpression) { - // If it is just a property access chain or a `new` call (e.g. `foo.bar` or - // `new Promise()`), the promise is not handled because it doesn't have the - // necessary then/catch call at the end of the chain. - return true; - } - else if (node.type === utils_1.AST_NODE_TYPES.LogicalExpression) { - return (isUnhandledPromise(checker, node.left) || - isUnhandledPromise(checker, node.right)); - } - // We conservatively return false for all other types of expressions because - // we don't want to accidentally fail if the promise is handled internally but - // we just can't tell. - return false; - } - }, -}); -// Modified from tsutils.isThenable() to only consider thenables which can be -// rejected/caught via a second parameter. Original source (MIT licensed): -// -// https://github.com/ajafff/tsutils/blob/49d0d31050b44b81e918eae4fbaf1dfe7b7286af/util/type.ts#L95-L125 -function isPromiseLike(checker, node) { - const type = checker.getTypeAtLocation(node); - for (const ty of tsutils.unionTypeParts(checker.getApparentType(type))) { - const then = ty.getProperty('then'); - if (then === undefined) { - continue; - } - const thenType = checker.getTypeOfSymbolAtLocation(then, node); - if (hasMatchingSignature(thenType, signature => signature.parameters.length >= 2 && - isFunctionParam(checker, signature.parameters[0], node) && - isFunctionParam(checker, signature.parameters[1], node))) { - return true; - } - } - return false; -} -function hasMatchingSignature(type, matcher) { - for (const t of tsutils.unionTypeParts(type)) { - if (t.getCallSignatures().some(matcher)) { - return true; - } - } - return false; -} -function isFunctionParam(checker, param, node) { - const type = checker.getApparentType(checker.getTypeOfSymbolAtLocation(param, node)); - for (const t of tsutils.unionTypeParts(type)) { - if (t.getCallSignatures().length !== 0) { - return true; - } - } - return false; -} -function isPromiseCatchCallWithHandler(expression) { - return (expression.callee.type === utils_1.AST_NODE_TYPES.MemberExpression && - expression.callee.property.type === utils_1.AST_NODE_TYPES.Identifier && - expression.callee.property.name === 'catch' && - expression.arguments.length >= 1); -} -function isPromiseThenCallWithRejectionHandler(expression) { - return (expression.callee.type === utils_1.AST_NODE_TYPES.MemberExpression && - expression.callee.property.type === utils_1.AST_NODE_TYPES.Identifier && - expression.callee.property.name === 'then' && - expression.arguments.length >= 2); -} -function isPromiseFinallyCallWithHandler(expression) { - return (expression.callee.type === utils_1.AST_NODE_TYPES.MemberExpression && - expression.callee.property.type === utils_1.AST_NODE_TYPES.Identifier && - expression.callee.property.name === 'finally' && - expression.arguments.length >= 1); -} -//# sourceMappingURL=no-floating-promises.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map deleted file mode 100644 index 4bbc354f..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-floating-promises.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-floating-promises.js","sourceRoot":"","sources":["../../src/rules/no-floating-promises.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,iDAAmC;AACnC,+CAAiC;AAEjC,8CAAgC;AAChC,kCAA6C;AAe7C,kBAAe,IAAI,CAAC,UAAU,CAAqB;IACjD,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,6DAA6D;YAC/D,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,QAAQ,EACN,4GAA4G;YAC9G,gBAAgB,EAAE,qBAAqB;YACvC,YAAY,EACV,wGAAwG;gBACxG,+DAA+D;YACjE,eAAe,EAAE,8BAA8B;SAChD;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,UAAU,EAAE;wBACV,WAAW,EAAE,uCAAuC;wBACpD,IAAI,EAAE,SAAS;qBAChB;oBACD,UAAU,EAAE;wBACV,WAAW,EACT,6EAA6E;wBAC/E,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,IAAI,EAAE,SAAS;K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C;SACb;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,6BAA6B,CACpC,UAAmC;IAEnC,OAAO,CACL,UAAU,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QAC1D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;QAC7D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,OAAO;QAC3C,UAAU,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,CACjC,CAAC;AACJ,CAAC;AAED,SAAS,qCAAqC,CAC5C,UAAmC;IAEnC,OAAO,CACL,UAAU,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QAC1D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;QAC7D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,MAAM;QAC1C,UAAU,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,CACjC,CAAC;AACJ,CAAC;AAED,SAAS,+BAA+B,CACtC,UAAmC;IAEnC,OAAO,CACL,UAAU,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QAC1D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;QAC7D,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,SAAS;QAC7C,UAAU,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,CACjC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js deleted file mode 100644 index 4d50761c..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-for-in-array', - meta: { - docs: { - description: 'Disallow iterating over an array with a for-in loop', - recommended: 'error', - requiresTypeChecking: true, - }, - messages: { - forInViolation: 'For-in loops over arrays are forbidden. Use for-of or array.forEach instead.', - }, - schema: [], - type: 'problem', - }, - defaultOptions: [], - create(context) { - return { - ForInStatement(node) { - const parserServices = util.getParserServices(context); - const checker = parserServices.program.getTypeChecker(); - const originalNode = parserServices.esTreeNodeToTSNodeMap.get(node); - const type = util.getConstrainedTypeAtLocation(checker, originalNode.expression); - if (util.isTypeArrayTypeOrUnionOfArrayTypes(type, checker) || - (type.flags & ts.TypeFlags.StringLike) !== 0) { - context.report({ - node, - messageId: 'forInViolation', - }); - } - }, - }; - }, -}); -//# sourceMappingURL=no-for-in-array.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map deleted file mode 100644 index 3bac76ca..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-for-in-array.js","sourceRoot":"","sources":["../../src/rules/no-for-in-array.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAEjC,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,qDAAqD;YAClE,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,cAAc,EACZ,8EAA8E;SACjF;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,SAAS;KAChB;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,cAAc,CAAC,IAAI;gBACjB,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;gBACvD,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;gBACxD,MAAM,YAAY,GAAG,cAAc,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAEpE,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAC5C,OAAO,EACP,YAAY,CAAC,UAAU,CACxB,CAAC;gBAEF,IACE,IAAI,CAAC,kCAAkC,CAAC,IAAI,EAAE,OAAO,CAAC;oBACtD,CAAC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,EAC5C;oBACA,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,gBAAgB;qBAC5B,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implicit-any-catch.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implicit-any-catch.js deleted file mode 100644 index afe17a91..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implicit-any-catch.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-implicit-any-catch', - meta: { - deprecated: true, - type: 'suggestion', - docs: { - description: 'Disallow usage of the implicit `any` type in catch clauses', - recommended: false, - }, - fixable: 'code', - hasSuggestions: true, - messages: { - implicitAnyInCatch: 'Implicit any in catch clause.', - explicitAnyInCatch: 'Explicit any in catch clause.', - suggestExplicitUnknown: 'Use `unknown` instead, this will force you to explicitly, and safely assert the type is correct.', - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: { - allowExplicitAny: { - description: 'Whether to disallow specifying `: any` as the error type as well. See also `no-explicit-any`.', - type: 'boolean', - }, - }, - }, - ], - }, - defaultOptions: [ - { - allowExplicitAny: false, - }, - ], - create(context, [{ allowExplicitAny }]) { - return { - CatchClause(node) { - if (!node.param) { - return; // ignore catch without variable - } - if (!node.param.typeAnnotation) { - context.report({ - node, - messageId: 'implicitAnyInCatch', - suggest: [ - { - messageId: 'suggestExplicitUnknown', - fix(fixer) { - return fixer.insertTextAfter(node.param, ': unknown'); - }, - }, - ], - }); - } - else if (!allowExplicitAny && - node.param.typeAnnotation.typeAnnotation.type === - utils_1.AST_NODE_TYPES.TSAnyKeyword) { - context.report({ - node, - messageId: 'explicitAnyInCatch', - suggest: [ - { - messageId: 'suggestExplicitUnknown', - fix(fixer) { - return fixer.replaceText(node.param.typeAnnotation, ': unknown'); - }, - }, - ], - }); - } - }, - }; - }, -}); -//# sourceMappingURL=no-implicit-any-catch.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implicit-any-catch.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implicit-any-catch.js.map deleted file mode 100644 index 8109d2dd..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implicit-any-catch.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-implicit-any-catch.js","sourceRoot":"","sources":["../../src/rules/no-implicit-any-catch.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAYhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,UAAU,EAAE,IAAI;QAChB,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,4DAA4D;YACzE,WAAW,EAAE,KAAK;SACnB;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,kBAAkB,EAAE,+BAA+B;YACnD,kBAAkB,EAAE,+BAA+B;YACnD,sBAAsB,EACpB,kGAAkG;SACrG;QACD,MAAM,EAAE;YACN;gBACE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int-plugin/dist/rules/no-implied-eval.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js deleted file mode 100644 index 81141efd..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js +++ /dev/null @@ -1,165 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -const FUNCTION_CONSTRUCTOR = 'Function'; -const GLOBAL_CANDIDATES = new Set(['global', 'window', 'globalThis']); -const EVAL_LIKE_METHODS = new Set([ - 'setImmediate', - 'setInterval', - 'setTimeout', - 'execScript', -]); -exports.default = util.createRule({ - name: 'no-implied-eval', - meta: { - docs: { - description: 'Disallow the use of `eval()`-like methods', - recommended: 'error', - extendsBaseRule: true, - requiresTypeChecking: true, - }, - messages: { - noImpliedEvalError: 'Implied eval. Consider passing a function.', - noFunctionConstructor: 'Implied eval. Do not use the Function constructor to create functions.', - }, - schema: [], - type: 'suggestion', - }, - defaultOptions: [], - create(context) { - const parserServices = util.getParserServices(context); - const program = parserServices.program; - const checker = parserServices.program.getTypeChecker(); - function getCalleeName(node) { - if (node.type === utils_1.AST_NODE_TYPES.Identifier) { - return node.name; - } - if (node.type === utils_1.AST_NODE_TYPES.MemberExpression && - node.object.type === utils_1.AST_NODE_TYPES.Identifier && - GLOBAL_CANDIDATES.has(node.object.name)) { - if (node.property.type === utils_1.AST_NODE_TYPES.Identifier) { - return node.property.name; - } - if (node.property.type === utils_1.AST_NODE_TYPES.Literal && - typeof node.property.value === 'string') { - return node.property.value; - } - } - return null; - } - function isFunctionType(node) { - var _a; - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - const type = checker.getTypeAtLocation(tsNode); - const symbol = type.getSymbol(); - if (symbol && - tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Function | ts.SymbolFlags.Method)) { - return true; - } - if (symbol && symbol.escapedName === FUNCTION_CONSTRUCTOR) { - const declarations = (_a = symbol.getDeclarations()) !== null && _a !== void 0 ? _a : []; - for (const declaration of declarations) { - const sourceFile = declaration.getSourceFile(); - if (program.isSourceFileDefaultLibrary(sourceFile)) { - return true; - } - } - } - const signatures = checker.getSignaturesOfType(type, ts.SignatureKind.Call); - return signatures.length > 0; - } - function isBind(node) { - return node.type === utils_1.AST_NODE_TYPES.MemberExpression - ? isBind(node.property) - : node.type === utils_1.AST_NODE_TYPES.Identifier && node.name === 'bind'; - } - function isFunction(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.ArrowFunctionExpression: - case utils_1.AST_NODE_TYPES.FunctionDeclaration: - case utils_1.AST_NODE_TYPES.FunctionExpression: - return true; - case utils_1.AST_NODE_TYPES.Literal: - case utils_1.AST_NODE_TYPES.TemplateLiteral: - return false; - case utils_1.AST_NODE_TYPES.CallExpression: - return isBind(node.callee) || isFunctionType(node); - default: - return isFunctionType(node); - } - } - function isReferenceToGlobalFunction(calleeName) { - const ref = context - .getScope() - .references.find(ref => ref.identifier.name === calleeName); - // ensure it's the "global" version - return !(ref === null || ref === void 0 ? void 0 : ref.resolved) || ref.resolved.defs.length === 0; - } - function checkImpliedEval(node) { - var _a; - const calleeName = getCalleeName(node.callee); - if (calleeName == null) { - return; - } - if (calleeName === FUNCTION_CONSTRUCTOR) { - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node.callee); - const type = checker.getTypeAtLocation(tsNode); - const symbol = type.getSymbol(); - if (symbol) { - const declarations = (_a = symbol.getDeclarations()) !== null && _a !== void 0 ? _a : []; - for (const declaration of declarations) { - const sourceFile = declaration.getSourceFile(); - if (program.isSourceFileDefaultLibrary(sourceFile)) { - context.report({ node, messageId: 'noFunctionConstructor' }); - return; - } - } - } - else { - context.report({ node, messageId: 'noFunctionConstructor' }); - return; - } - } - if (node.arguments.length === 0) { - return; - } - const [handler] = node.arguments; - if (EVAL_LIKE_METHODS.has(calleeName) && - !isFunction(handler) && - isReferenceToGlobalFunction(calleeName)) { - context.report({ node: handler, messageId: 'noImpliedEvalError' }); - } - } - return { - NewExpression: checkImpliedEval, - CallExpression: checkImpliedEval, - }; - }, -}); -//# sourceMappingURL=no-implied-eval.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map deleted file mode 100644 index eabb4206..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-implied-eval.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-implied-eval.js","sourceRoot":"","sources":["../../src/rules/no-implied-eval.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,iDAAmC;AACnC,+CAAiC;AAEjC,8CAAgC;AAEhC,MAAM,oBAAoB,GAAG,UAAU,CAAC;AACxC,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC;AACtE,MAAM,iBAAiB,GAAG,IAAI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B,CAAC,MAAM,CAAC,CAAC;gBAC/C,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;gBAChC,IAAI,MAAM,EAAE;oBACV,MAAM,YAAY,GAAG,MAAA,MAAM,CAAC,eAAe,EAAE,mCAAI,EAAE,CAAC;oBACpD,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE;wBACtC,MAAM,UAAU,GAAG,WAAW,CAAC,aAAa,EAAE,CAAC;wBAC/C,IAAI,OAAO,CAAC,0BAA0B,CAAC,UAAU,CAAC,EAAE;4BAClD,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC,CAAC;4BAC7D,OAAO;yBACR;qBACF;iBACF;qBAAM;oBACL,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,uBAAuB,EAAE,CAAC,CAAC;oBAC7D,OAAO;iBACR;aACF;YAED,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC/B,OAAO;aACR;YAED,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC;YACjC,IACE,iBAAiB,CAAC,GAAG,CAAC,UAAU,CAAC;gBACjC,CAAC,UAAU,CAAC,OAAO,CAAC;gBACpB,2BAA2B,CAAC,UAAU,CAAC,EACvC;gBACA,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC,CAAC;aACpE;QACH,CAAC;QAED,OAAO;YACL,aAAa,EAAE,gBAAgB;YAC/B,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js deleted file mode 100644 index 18491c3f..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-import-type-side-effects', - meta: { - type: 'problem', - docs: { - description: 'Enforce the use of top-level import type qualifier when an import only has specifiers with inline type qualifiers', - recommended: false, - }, - fixable: 'code', - messages: { - useTopLevelQualifier: 'TypeScript will only remove the inline type specifiers which will leave behind a side effect import at runtime. Convert this to a top-level type qualifier to properly remove the entire import.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const sourceCode = context.getSourceCode(); - return { - 'ImportDeclaration[importKind!="type"]'(node) { - if (node.specifiers.length === 0) { - return; - } - const specifiers = []; - for (const specifier of node.specifiers) { - if (specifier.type !== utils_1.AST_NODE_TYPES.ImportSpecifier || - specifier.importKind !== 'type') { - return; - } - specifiers.push(specifier); - } - context.report({ - node, - messageId: 'useTopLevelQualifier', - fix(fixer) { - const fixes = []; - for (const specifier of specifiers) { - const qualifier = util.nullThrows(sourceCode.getFirstToken(specifier, util.isTypeKeyword), util.NullThrowsReasons.MissingToken('type keyword', 'import specifier')); - fixes.push(fixer.removeRange([ - qualifier.range[0], - specifier.imported.range[0], - ])); - } - const importKeyword = util.nullThrows(sourceCode.getFirstToken(node, util.isImportKeyword), util.NullThrowsReasons.MissingToken('import keyword', 'import')); - fixes.push(fixer.insertTextAfter(importKeyword, ' type')); - return fixes; - }, - }); - }, - }; - }, -}); -//# sourceMappingURL=no-import-type-side-effects.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js.map deleted file mode 100644 index e028aa29..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-import-type-side-effects.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-import-type-side-effects.js","sourceRoot":"","sources":["../../src/rules/no-import-type-side-effects.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAKhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,mHAAmH;YACrH,WAAW,EAAE,KAAK;SACnB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,oBAAoB,EAClB,kMAAkM;SACrM;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAC3C,OAAO;YACL,uCAAuC,CACrC,IAAgC;gBAEhC,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE;oBAChC,OAAO;iBACR;gBAED,MAAM,UAAU,GAA+B,EAAE,CAAC;gBAClD,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,UAAU,EAAE;oBACvC,IACE,SAAS,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe;wBACjD,SAAS,CAAC,UAAU,KAAK,MAAM,EAC/B;wBACA,OAAO;qBACR;oBACD,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;iBAC5B;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,sBAAsB;oBACjC,GAAG,CAAC,KAAK;wBACP,MAAM,KAAK,GAAuB,EAAE,CAAC;wBACrC,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE;4BAClC,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAC/B,UAAU,CAAC,aAAa,CAAC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,EACvD,IAAI,CAAC,iBAAiB,CAAC,YAAY,CACjC,cAAc,EACd,kBAAkB,CACnB,CACF,CAAC;4BACF,KAAK,CAAC,IAAI,CACR,KAAK,CAAC,WAAW,CAAC;gCAChB,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;gCAClB,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;6BAC5B,CAAC,CACH,CAAC;yBACH;wBAED,MAAM,aAAa,GAAG,IAAI,CAAC,UAAU,CACnC,UAAU,CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,EACpD,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAChE,CAAC;wBACF,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;wBAE1D,OAAO,KAAK,CAAC;oBACf,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js deleted file mode 100644 index 81f337dd..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js +++ /dev/null @@ -1,207 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-inferrable-types', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow explicit type declarations for variables or parameters initialized to a number, string, or boolean', - recommended: 'error', - }, - fixable: 'code', - messages: { - noInferrableType: 'Type {{type}} trivially inferred from a {{type}} literal, remove type annotation.', - }, - schema: [ - { - type: 'object', - properties: { - ignoreParameters: { - type: 'boolean', - }, - ignoreProperties: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - ignoreParameters: false, - ignoreProperties: false, - }, - ], - create(context, [{ ignoreParameters, ignoreProperties }]) { - const sourceCode = context.getSourceCode(); - function isFunctionCall(init, callName) { - if (init.type === utils_1.AST_NODE_TYPES.ChainExpression) { - return isFunctionCall(init.expression, callName); - } - return (init.type === utils_1.AST_NODE_TYPES.CallExpression && - init.callee.type === utils_1.AST_NODE_TYPES.Identifier && - init.callee.name === callName); - } - function isLiteral(init, typeName) { - return (init.type === utils_1.AST_NODE_TYPES.Literal && typeof init.value === typeName); - } - function isIdentifier(init, ...names) { - return (init.type === utils_1.AST_NODE_TYPES.Identifier && names.includes(init.name)); - } - function hasUnaryPrefix(init, ...operators) { - return (init.type === utils_1.AST_NODE_TYPES.UnaryExpression && - operators.includes(init.operator)); - } - const keywordMap = { - [utils_1.AST_NODE_TYPES.TSBigIntKeyword]: 'bigint', - [utils_1.AST_NODE_TYPES.TSBooleanKeyword]: 'boolean', - [utils_1.AST_NODE_TYPES.TSNumberKeyword]: 'number', - [utils_1.AST_NODE_TYPES.TSNullKeyword]: 'null', - [utils_1.AST_NODE_TYPES.TSStringKeyword]: 'string', - [utils_1.AST_NODE_TYPES.TSSymbolKeyword]: 'symbol', - [utils_1.AST_NODE_TYPES.TSUndefinedKeyword]: 'undefined', - }; - /** - * Returns whether a node has an inferrable value or not - */ - function isInferrable(annotation, init) { - switch (annotation.type) { - case utils_1.AST_NODE_TYPES.TSBigIntKeyword: { - // note that bigint cannot have + prefixed to it - const unwrappedInit = hasUnaryPrefix(init, '-') - ? init.argument - : init; - return (isFunctionCall(unwrappedInit, 'BigInt') || - (unwrappedInit.type === utils_1.AST_NODE_TYPES.Literal && - 'bigint' in unwrappedInit)); - } - case utils_1.AST_NODE_TYPES.TSBooleanKeyword: - return (hasUnaryPrefix(init, '!') || - isFunctionCall(init, 'Boolean') || - isLiteral(init, 'boolean')); - case utils_1.AST_NODE_TYPES.TSNumberKeyword: { - const unwrappedInit = hasUnaryPrefix(init, '+', '-') - ? init.argument - : init; - return (isIdentifier(unwrappedInit, 'Infinity', 'NaN') || - isFunctionCall(unwrappedInit, 'Number') || - isLiteral(unwrappedInit, 'number')); - } - case utils_1.AST_NODE_TYPES.TSNullKeyword: - return init.type === utils_1.AST_NODE_TYPES.Literal && init.value == null; - case utils_1.AST_NODE_TYPES.TSStringKeyword: - return (isFunctionCall(init, 'String') || - isLiteral(init, 'string') || - init.type === utils_1.AST_NODE_TYPES.TemplateLiteral); - case utils_1.AST_NODE_TYPES.TSSymbolKeyword: - return isFunctionCall(init, 'Symbol'); - case utils_1.AST_NODE_TYPES.TSTypeReference: { - if (annotation.typeName.type === utils_1.AST_NODE_TYPES.Identifier && - annotation.typeName.name === 'RegExp') { - const isRegExpLiteral = init.type === utils_1.AST_NODE_TYPES.Literal && - init.value instanceof RegExp; - const isRegExpNewCall = init.type === utils_1.AST_NODE_TYPES.NewExpression && - init.callee.type === utils_1.AST_NODE_TYPES.Identifier && - init.callee.name === 'RegExp'; - const isRegExpCall = isFunctionCall(init, 'RegExp'); - return isRegExpLiteral || isRegExpCall || isRegExpNewCall; - } - return false; - } - case utils_1.AST_NODE_TYPES.TSUndefinedKeyword: - return (hasUnaryPrefix(init, 'void') || isIdentifier(init, 'undefined')); - } - return false; - } - /** - * Reports an inferrable type declaration, if any - */ - function reportInferrableType(node, typeNode, initNode) { - if (!typeNode || !initNode || !typeNode.typeAnnotation) { - return; - } - if (!isInferrable(typeNode.typeAnnotation, initNode)) { - return; - } - const type = typeNode.typeAnnotation.type === utils_1.AST_NODE_TYPES.TSTypeReference - ? // TODO - if we add more references - 'RegExp' - : keywordMap[typeNode.typeAnnotation.type]; - context.report({ - node, - messageId: 'noInferrableType', - data: { - type, - }, - *fix(fixer) { - if ((node.type === utils_1.AST_NODE_TYPES.AssignmentPattern && - node.left.optional) || - (node.type === utils_1.AST_NODE_TYPES.PropertyDefinition && node.definite)) { - yield fixer.remove(sourceCode.getTokenBefore(typeNode)); - } - yield fixer.remove(typeNode); - }, - }); - } - function inferrableVariableVisitor(node) { - if (!node.id) { - return; - } - reportInferrableType(node, node.id.typeAnnotation, node.init); - } - function inferrableParameterVisitor(node) { - if (ignoreParameters || !node.params) { - return; - } - node.params.filter(param => param.type === utils_1.AST_NODE_TYPES.AssignmentPattern && - param.left && - param.right).forEach(param => { - reportInferrableType(param, param.left.typeAnnotation, param.right); - }); - } - function inferrablePropertyVisitor(node) { - // We ignore `readonly` because of Microsoft/TypeScript#14416 - // Essentially a readonly property without a type - // will result in its value being the type, leading to - // compile errors if the type is stripped. - if (ignoreProperties || node.readonly || node.optional) { - return; - } - reportInferrableType(node, node.typeAnnotation, node.value); - } - return { - VariableDeclarator: inferrableVariableVisitor, - FunctionExpression: inferrableParameterVisitor, - FunctionDeclaration: inferrableParameterVisitor, - ArrowFunctionExpression: inferrableParameterVisitor, - PropertyDefinition: inferrablePropertyVisitor, - }; - }, -}); -//# sourceMappingURL=no-inferrable-types.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map deleted file mode 100644 index 2194acbc..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-inferrable-types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-inferrable-types.js","sourceRoot":"","sources":["../../src/rules/no-inferrable-types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,oDAA0D;AAE1D,8CAAgC;AAUhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,6GAA6G;YAC/G,WAAW,EAAE,OAAO;SACrB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,gBAAgB,EACd,mFAAmF;SACtF;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,gBAAgB,EAAE;wBAChB,IAAI,EAAE,SAAS;qBAChB;oBACD,gBAAgB,EAAE;wBAChB,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;KACF;IACD,cAAc,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IAAI,CAAC,IAAI,CAAC,CAAC;QAChE,CAAC;QAED,SAAS,0BAA0B,CACjC,IAGoC;YAEpC,IAAI,gBAAgB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;gBACpC,OAAO;aACR;YAEC,IAAI,CAAC,MAAM,CAAC,MAAM,CAChB,KAAK,CAAC,EAAE,CACN,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB;gBAC/C,KAAK,CAAC,IAAI;gBACV,KAAK,CAAC,KAAK,CAEhB,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBAChB,oBAAoB,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;YACtE,CAAC,CAAC,CAAC;QACL,CAAC;QAED,SAAS,yBAAyB,CAChC,IAAiC;YAEjC,6DAA6D;YAC7D,iDAAiD;YACjD,sDAAsD;YACtD,0CAA0C;YAC1C,IAAI,gBAAgB,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACtD,OAAO;aACR;YACD,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9D,CAAC;QAED,OAAO;YACL,kBAAkB,EAAE,yBAAyB;YAC7C,kBAAkB,EAAE,0BAA0B;YAC9C,mBAAmB,EAAE,0BAA0B;YAC/C,uBAAuB,EAAE,0BAA0B;YACnD,kBAAkB,EAAE,yBAAyB;SAC9C,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js deleted file mode 100644 index ce252fa5..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; -var _a; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-invalid-this'); -exports.default = (0, util_1.createRule)({ - name: 'no-invalid-this', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow `this` keywords outside of classes or class-like objects', - recommended: false, - extendsBaseRule: true, - }, - // TODO: this rule has only had messages since v7.0 - remove this when we remove support for v6 - messages: (_a = baseRule.meta.messages) !== null && _a !== void 0 ? _a : { - unexpectedThis: "Unexpected 'this'.", - }, - hasSuggestions: baseRule.meta.hasSuggestions, - schema: baseRule.meta.schema, - }, - defaultOptions: [{ capIsConstructor: true }], - create(context) { - const rules = baseRule.create(context); - /** - * Since function definitions can be nested we use a stack storing if "this" is valid in the current context. - * - * Example: - * - * function a(this: number) { // valid "this" - * function b() { - * console.log(this); // invalid "this" - * } - * } - * - * When parsing the function declaration of "a" the stack will be: [true] - * When parsing the function declaration of "b" the stack will be: [true, false] - */ - const thisIsValidStack = []; - return Object.assign(Object.assign({}, rules), { PropertyDefinition() { - thisIsValidStack.push(true); - }, - 'PropertyDefinition:exit'() { - thisIsValidStack.pop(); - }, - FunctionDeclaration(node) { - var _a; - thisIsValidStack.push(node.params.some(param => param.type === utils_1.AST_NODE_TYPES.Identifier && param.name === 'this')); - // baseRule's work - (_a = rules.FunctionDeclaration) === null || _a === void 0 ? void 0 : _a.call(rules, node); - }, - 'FunctionDeclaration:exit'(node) { - var _a; - thisIsValidStack.pop(); - // baseRule's work - (_a = rules['FunctionDeclaration:exit']) === null || _a === void 0 ? void 0 : _a.call(rules, node); - }, - FunctionExpression(node) { - var _a; - thisIsValidStack.push(node.params.some(param => param.type === utils_1.AST_NODE_TYPES.Identifier && param.name === 'this')); - // baseRule's work - (_a = rules.FunctionExpression) === null || _a === void 0 ? void 0 : _a.call(rules, node); - }, - 'FunctionExpression:exit'(node) { - var _a; - thisIsValidStack.pop(); - // baseRule's work - (_a = rules['FunctionExpression:exit']) === null || _a === void 0 ? void 0 : _a.call(rules, node); - }, - ThisExpression(node) { - const thisIsValidHere = thisIsValidStack[thisIsValidStack.length - 1]; - if (thisIsValidHere) { - return; - } - // baseRule's work - rules.ThisExpression(node); - } }); - }, -}); -//# sourceMappingURL=no-invalid-this.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js.map deleted file mode 100644 index e9486028..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-this.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-invalid-this.js","sourceRoot":"","sources":["../../src/rules/no-invalid-this.ts"],"names":[],"mappings":";;;AACA,oDAA0D;AAM1D,kCAAqC;AACrC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,iBAAiB,CAAC,CAAC;AAKtD,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,mEAAmE;YACrE,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,+FAA+F;QAC/F,QAAQ,EAAE,MAAA,QAAQ,CAAC,IAAI,CAAC,QAAQ,mCAAI;YAClC,cAAc,EAAE,oBAAoB;SACrC;QACD,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;KAC7B;IACD,cAAc,EAAE,CAAC,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC;IAC5C,MAAM,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEvC;;;;;;;;;;;;;WAaG;QACH,MAAM,gBAAg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eAAe,EAAE;oBACnB,OAAO;iBACR;gBAED,kBAAkB;gBAClB,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YAC7B,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js deleted file mode 100644 index b0a4411a..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js +++ /dev/null @@ -1,211 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-invalid-void-type', - meta: { - type: 'problem', - docs: { - description: 'Disallow `void` type outside of generic or return types', - recommended: 'strict', - }, - messages: { - invalidVoidForGeneric: '{{ generic }} may not have void as a type argument.', - invalidVoidNotReturnOrGeneric: 'void is only valid as a return type or generic type argument.', - invalidVoidNotReturn: 'void is only valid as a return type.', - invalidVoidNotReturnOrThisParam: 'void is only valid as return type or type of `this` parameter.', - invalidVoidNotReturnOrThisParamOrGeneric: 'void is only valid as a return type or generic type argument or the type of a `this` parameter.', - invalidVoidUnionConstituent: 'void is not valid as a constituent in a union type', - }, - schema: [ - { - type: 'object', - properties: { - allowInGenericTypeArguments: { - oneOf: [ - { type: 'boolean' }, - { - type: 'array', - items: { type: 'string' }, - minLength: 1, - }, - ], - }, - allowAsThisParameter: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { allowInGenericTypeArguments: true, allowAsThisParameter: false }, - ], - create(context, [{ allowInGenericTypeArguments, allowAsThisParameter }]) { - const validParents = [ - utils_1.AST_NODE_TYPES.TSTypeAnnotation, // - ]; - const invalidGrandParents = [ - utils_1.AST_NODE_TYPES.TSPropertySignature, - utils_1.AST_NODE_TYPES.CallExpression, - utils_1.AST_NODE_TYPES.PropertyDefinition, - utils_1.AST_NODE_TYPES.Identifier, - ]; - const validUnionMembers = [ - utils_1.AST_NODE_TYPES.TSVoidKeyword, - utils_1.AST_NODE_TYPES.TSNeverKeyword, - ]; - if (allowInGenericTypeArguments === true) { - validParents.push(utils_1.AST_NODE_TYPES.TSTypeParameterInstantiation); - } - /** - * @brief check if the given void keyword is used as a valid generic type - * - * reports if the type parametrized by void is not in the whitelist, or - * allowInGenericTypeArguments is false. - * no-op if the given void keyword is not used as generic type - */ - function checkGenericTypeArgument(node) { - var _a, _b; - // only matches T<..., void, ...> - // extra check for precaution - /* istanbul ignore next */ - if (((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) !== utils_1.AST_NODE_TYPES.TSTypeParameterInstantiation || - ((_b = node.parent.parent) === null || _b === void 0 ? void 0 : _b.type) !== utils_1.AST_NODE_TYPES.TSTypeReference) { - return; - } - // check whitelist - if (Array.isArray(allowInGenericTypeArguments)) { - const sourceCode = context.getSourceCode(); - const fullyQualifiedName = sourceCode - .getText(node.parent.parent.typeName) - .replace(/ /gu, ''); - if (!allowInGenericTypeArguments - .map(s => s.replace(/ /gu, '')) - .includes(fullyQualifiedName)) { - context.report({ - messageId: 'invalidVoidForGeneric', - data: { generic: fullyQualifiedName }, - node, - }); - } - return; - } - if (!allowInGenericTypeArguments) { - context.report({ - messageId: allowAsThisParameter - ? 'invalidVoidNotReturnOrThisParam' - : 'invalidVoidNotReturn', - node, - }); - } - } - /** - * @brief checks if the generic type parameter defaults to void - */ - function checkDefaultVoid(node, parentNode) { - if (parentNode.default !== node) { - context.report({ - messageId: getNotReturnOrGenericMessageId(node), - node, - }); - } - } - /** - * @brief checks that a union containing void is valid - * @return true if every member of the union is specified as a valid type in - * validUnionMembers, or is a valid generic type parametrized by void - */ - function isValidUnionType(node) { - return node.types.every(member => { - var _a, _b; - return validUnionMembers.includes(member.type) || - // allows any T<..., void, ...> here, checked by checkGenericTypeArgument - (member.type === utils_1.AST_NODE_TYPES.TSTypeReference && - ((_a = member.typeParameters) === null || _a === void 0 ? void 0 : _a.type) === - utils_1.AST_NODE_TYPES.TSTypeParameterInstantiation && - ((_b = member.typeParameters) === null || _b === void 0 ? void 0 : _b.params.map(param => param.type).includes(utils_1.AST_NODE_TYPES.TSVoidKeyword))); - }); - } - return { - TSVoidKeyword(node) { - var _a, _b; - /* istanbul ignore next */ - if (!((_a = node.parent) === null || _a === void 0 ? void 0 : _a.parent)) { - return; - } - // checks T<..., void, ...> against specification of allowInGenericArguments option - if (node.parent.type === utils_1.AST_NODE_TYPES.TSTypeParameterInstantiation && - node.parent.parent.type === utils_1.AST_NODE_TYPES.TSTypeReference) { - checkGenericTypeArgument(node); - return; - } - // allow if allowInGenericTypeArguments is specified, and report if the generic type parameter extends void - if (allowInGenericTypeArguments && - node.parent.type === utils_1.AST_NODE_TYPES.TSTypeParameter && - ((_b = node.parent.default) === null || _b === void 0 ? void 0 : _b.type) === utils_1.AST_NODE_TYPES.TSVoidKeyword) { - checkDefaultVoid(node, node.parent); - return; - } - // union w/ void must contain types from validUnionMembers, or a valid generic void type - if (node.parent.type === utils_1.AST_NODE_TYPES.TSUnionType && - isValidUnionType(node.parent)) { - return; - } - // this parameter is ok to be void. - if (allowAsThisParameter && - node.parent.type === utils_1.AST_NODE_TYPES.TSTypeAnnotation && - node.parent.parent.type === utils_1.AST_NODE_TYPES.Identifier && - node.parent.parent.name === 'this') { - return; - } - // default cases - if (validParents.includes(node.parent.type) && - !invalidGrandParents.includes(node.parent.parent.type)) { - return; - } - context.report({ - messageId: allowInGenericTypeArguments && allowAsThisParameter - ? 'invalidVoidNotReturnOrThisParamOrGeneric' - : allowInGenericTypeArguments - ? getNotReturnOrGenericMessageId(node) - : allowAsThisParameter - ? 'invalidVoidNotReturnOrThisParam' - : 'invalidVoidNotReturn', - node, - }); - }, - }; - }, -}); -function getNotReturnOrGenericMessageId(node) { - return node.parent.type === utils_1.AST_NODE_TYPES.TSUnionType - ? 'invalidVoidUnionConstituent' - : 'invalidVoidNotReturnOrGeneric'; -} -//# sourceMappingURL=no-invalid-void-type.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js.map deleted file mode 100644 index 952d11c9..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-invalid-void-type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-invalid-void-type.js","sourceRoot":"","sources":["../../src/rules/no-invalid-void-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAehC,kBAAe,IAAI,CAAC,UAAU,CAAwB;IACpD,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,yDAAyD;YACtE,WAAW,EAAE,QAAQ;SACtB;QACD,QAAQ,EAAE;YACR,qBAAqB,EACnB,qDAAqD;YACvD,6BAA6B,EAC3B,+DAA+D;YACjE,oBAAoB,EAAE,sCAA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AC7B;oBACA,OAAO;iBACR;gBAED,mCAAmC;gBACnC,IACE,oBAAoB;oBACpB,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;oBACpD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;oBACrD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,MAAM,EAClC;oBACA,OAAO;iBACR;gBAED,gBAAgB;gBAChB,IACE,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;oBACvC,CAAC,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EACtD;oBACA,OAAO;iBACR;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,SAAS,EACP,2BAA2B,IAAI,oBAAoB;wBACjD,CAAC,CAAC,0CAA0C;wBAC5C,CAAC,CAAC,2BAA2B;4BAC7B,CAAC,CAAC,8BAA8B,CAAC,IAAI,CAAC;4BACtC,CAAC,CAAC,oBAAoB;gCACtB,CAAC,CAAC,iCAAiC;gCACnC,CAAC,CAAC,sBAAsB;oBAC5B,IAAI;iBACL,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,8BAA8B,CACrC,IAA4B;IAE5B,OAAO,IAAI,CAAC,MAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,WAAW;QACrD,CAAC,CAAC,6BAA6B;QAC/B,CAAC,CAAC,+BAA+B,CAAC;AACtC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js deleted file mode 100644 index 302bccd9..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js +++ /dev/null @@ -1,195 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-loop-func'); -exports.default = util.createRule({ - name: 'no-loop-func', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow function declarations that contain unsafe references inside loop statements', - recommended: false, - extendsBaseRule: true, - }, - hasSuggestions: baseRule.meta.hasSuggestions, - schema: [], - messages: baseRule.meta.messages, - }, - defaultOptions: [], - create(context) { - /** - * Reports functions which match the following condition: - * - has a loop node in ancestors. - * - has any references which refers to an unsafe variable. - * - * @param node The AST node to check. - * @returns Whether or not the node is within a loop. - */ - function checkForLoops(node) { - const loopNode = getContainingLoopNode(node); - if (!loopNode) { - return; - } - const references = context.getScope().through; - const unsafeRefs = references - .filter(r => !isSafe(loopNode, r)) - .map(r => r.identifier.name); - if (unsafeRefs.length > 0) { - context.report({ - node, - messageId: 'unsafeRefs', - data: { varNames: `'${unsafeRefs.join("', '")}'` }, - }); - } - } - return { - ArrowFunctionExpression: checkForLoops, - FunctionExpression: checkForLoops, - FunctionDeclaration: checkForLoops, - }; - }, -}); -/** - * Gets the containing loop node of a specified node. - * - * We don't need to check nested functions, so this ignores those. - * `Scope.through` contains references of nested functions. - * - * @param node An AST node to get. - * @returns The containing loop node of the specified node, or `null`. - */ -function getContainingLoopNode(node) { - for (let currentNode = node; currentNode.parent; currentNode = currentNode.parent) { - const parent = currentNode.parent; - switch (parent.type) { - case utils_1.AST_NODE_TYPES.WhileStatement: - case utils_1.AST_NODE_TYPES.DoWhileStatement: - return parent; - case utils_1.AST_NODE_TYPES.ForStatement: - // `init` is outside of the loop. - if (parent.init !== currentNode) { - return parent; - } - break; - case utils_1.AST_NODE_TYPES.ForInStatement: - case utils_1.AST_NODE_TYPES.ForOfStatement: - // `right` is outside of the loop. - if (parent.right !== currentNode) { - return parent; - } - break; - case utils_1.AST_NODE_TYPES.ArrowFunctionExpression: - case utils_1.AST_NODE_TYPES.FunctionExpression: - case utils_1.AST_NODE_TYPES.FunctionDeclaration: - // We don't need to check nested functions. - return null; - default: - break; - } - } - return null; -} -/** - * Gets the containing loop node of a given node. - * If the loop was nested, this returns the most outer loop. - * @param node A node to get. This is a loop node. - * @param excludedNode A node that the result node should not include. - * @returns The most outer loop node. - */ -function getTopLoopNode(node, excludedNode) { - const border = excludedNode ? excludedNode.range[1] : 0; - let retv = node; - let containingLoopNode = node; - while (containingLoopNode && containingLoopNode.range[0] >= border) { - retv = containingLoopNode; - containingLoopNode = getContainingLoopNode(containingLoopNode); - } - return retv; -} -/** - * Checks whether a given reference which refers to an upper scope's variable is - * safe or not. - * @param loopNode A containing loop node. - * @param reference A reference to check. - * @returns `true` if the reference is safe or not. - */ -function isSafe(loopNode, reference) { - var _a; - const variable = reference.resolved; - const definition = variable === null || variable === void 0 ? void 0 : variable.defs[0]; - const declaration = definition === null || definition === void 0 ? void 0 : definition.parent; - const kind = (declaration === null || declaration === void 0 ? void 0 : declaration.type) === utils_1.AST_NODE_TYPES.VariableDeclaration - ? declaration.kind - : ''; - // type references are all safe - // this only really matters for global types that haven't been configured - if (reference.isTypeReference) { - return true; - } - // Variables which are declared by `const` is safe. - if (kind === 'const') { - return true; - } - /* - * Variables which are declared by `let` in the loop is safe. - * It's a different instance from the next loop step's. - */ - if (kind === 'let' && - declaration && - declaration.range[0] > loopNode.range[0] && - declaration.range[1] < loopNode.range[1]) { - return true; - } - /* - * WriteReferences which exist after this border are unsafe because those - * can modify the variable. - */ - const border = getTopLoopNode(loopNode, kind === 'let' ? declaration : null) - .range[0]; - /** - * Checks whether a given reference is safe or not. - * The reference is every reference of the upper scope's variable we are - * looking now. - * - * It's safe if the reference matches one of the following condition. - * - is readonly. - * - doesn't exist inside a local function and after the border. - * - * @param upperRef A reference to check. - * @returns `true` if the reference is safe. - */ - function isSafeReference(upperRef) { - var _a; - const id = upperRef.identifier; - return (!upperRef.isWrite() || - (((_a = variable === null || variable === void 0 ? void 0 : variable.scope) === null || _a === void 0 ? void 0 : _a.variableScope) === upperRef.from.variableScope && - id.range[0] < border)); - } - return (_a = variable === null || variable === void 0 ? void 0 : variable.references.every(isSafeReference)) !== null && _a !== void 0 ? _a : false; -} -//# sourceMappingURL=no-loop-func.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js.map deleted file mode 100644 index 6ba135d3..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loop-func.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-loop-func.js","sourceRoot":"","sources":["../../src/rules/no-loop-func.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAChC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,cAAc,CAAC,CAAC;AAKnD,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QAC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Q,CAAE,KAAK,0CAAE,aAAa,MAAK,QAAQ,CAAC,IAAI,CAAC,aAAa;gBAC7D,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CACxB,CAAC;IACJ,CAAC;IAED,OAAO,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,UAAU,CAAC,KAAK,CAAC,eAAe,CAAC,mCAAI,KAAK,CAAC;AAC9D,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js deleted file mode 100644 index 05236571..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var _a; -Object.defineProperty(exports, "__esModule", { value: true }); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.maybeGetESLintCoreRule)('no-loss-of-precision'); -exports.default = util.createRule({ - name: 'no-loss-of-precision', - meta: { - type: 'problem', - docs: { - description: 'Disallow literal numbers that lose precision', - recommended: 'error', - extendsBaseRule: true, - }, - hasSuggestions: baseRule === null || baseRule === void 0 ? void 0 : baseRule.meta.hasSuggestions, - schema: [], - messages: (_a = baseRule === null || baseRule === void 0 ? void 0 : baseRule.meta.messages) !== null && _a !== void 0 ? _a : { noLossOfPrecision: '' }, - }, - defaultOptions: [], - create(context) { - /* istanbul ignore if */ if (baseRule == null) { - throw new Error('@typescript-eslint/no-loss-of-precision requires at least ESLint v7.1.0'); - } - // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion - const rules = baseRule.create(context); - function isSeparatedNumeric(node) { - return typeof node.value === 'number' && node.raw.includes('_'); - } - return { - Literal(node) { - rules.Literal(Object.assign(Object.assign({}, node), { raw: isSeparatedNumeric(node) ? node.raw.replace(/_/g, '') : node.raw })); - }, - }; - }, -}); -//# sourceMappingURL=no-loss-of-precision.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map deleted file mode 100644 index be7382d5..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-loss-of-precision.js","sourceRoot":"","sources":["../../src/rules/no-loss-of-precision.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,8CAAgC;AAChC,iEAAmE;AAEnE,MAAM,QAAQ,GAAG,IAAA,0CAAsB,EAAC,sBAAsB,CAAC,CAAC;AAOhE,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,8CAA8C;YAC3D,WAAW,EAAE,OAAO;YACpB,eAAe,EAAE,IAAI;SACtB;QACD,cAAc,EAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAC,cAAc;QAC7C,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAC,QAAQ,mCAAI,EAAE,iBAAiB,EAAE,EAAE,EAAE;KAC/D;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,wBAAwB,CAAC,IAAI,QAAQ,IAAI,IAAI,EAAE;YAC7C,MAAM,IAAI,KAAK,CACb,yEAAyE,CAC1E,CAAC;SACH;QAED,4EAA4E;QAC5E,MAAM,KAAK,GAAG,QAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAExC,SAAS,kBAAkB,CAAC,IAAsB;YAChD,OAAO,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;QAClE,CAAC;QACD,OAAO;YACL,OAAO,CAAC,IAAsB;gBAC5B,KAAK,CAAC,OAAO,CAAC,gCACT,IAAI,KACP,GAAG,EAAE,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,GAC7D,CAAC,CAAC;YACd,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js deleted file mode 100644 index f9217be2..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js +++ /dev/null @@ -1,244 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-magic-numbers'); -// Extend base schema with additional property to ignore TS numeric literal types -const schema = util.deepMerge( -// eslint-disable-next-line @typescript-eslint/no-unsafe-argument -- https://github.com/microsoft/TypeScript/issues/17002 -Array.isArray(baseRule.meta.schema) - ? baseRule.meta.schema[0] - : baseRule.meta.schema, { - properties: { - ignoreNumericLiteralTypes: { - type: 'boolean', - }, - ignoreEnums: { - type: 'boolean', - }, - ignoreReadonlyClassProperties: { - type: 'boolean', - }, - ignoreTypeIndexes: { - type: 'boolean', - }, - }, -}); -exports.default = util.createRule({ - name: 'no-magic-numbers', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow magic numbers', - recommended: false, - extendsBaseRule: true, - }, - schema: [schema], - messages: baseRule.meta.messages, - }, - defaultOptions: [ - { - ignore: [], - ignoreArrayIndexes: false, - enforceConst: false, - detectObjects: false, - ignoreNumericLiteralTypes: false, - ignoreEnums: false, - ignoreReadonlyClassProperties: false, - }, - ], - create(context, [options]) { - const rules = baseRule.create(context); - return { - Literal(node) { - var _a; - // If it’s not a numeric literal we’re not interested - if (typeof node.value !== 'number' && typeof node.value !== 'bigint') { - return; - } - // This will be `true` if we’re configured to ignore this case (eg. it’s - // an enum and `ignoreEnums` is `true`). It will be `false` if we’re not - // configured to ignore this case. It will remain `undefined` if this is - // not one of our exception cases, and we’ll fall back to the base rule. - let isAllowed; - // Check if the node is a TypeScript enum declaration - if (isParentTSEnumDeclaration(node)) { - isAllowed = options.ignoreEnums === true; - } - // Check TypeScript specific nodes for Numeric Literal - else if (isTSNumericLiteralType(node)) { - isAllowed = options.ignoreNumericLiteralTypes === true; - } - // Check if the node is a type index - else if (isAncestorTSIndexedAccessType(node)) { - isAllowed = options.ignoreTypeIndexes === true; - } - // Check if the node is a readonly class property - else if (isParentTSReadonlyPropertyDefinition(node)) { - isAllowed = options.ignoreReadonlyClassProperties === true; - } - // If we’ve hit a case where the ignore option is true we can return now - if (isAllowed === true) { - return; - } - // If the ignore option is *not* set we can report it now - else if (isAllowed === false) { - let fullNumberNode = node; - let raw = node.raw; - if (((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.UnaryExpression && - // the base rule only shows the operator for negative numbers - // https://github.com/eslint/eslint/blob/9dfc8501fb1956c90dc11e6377b4cb38a6bea65d/lib/rules/no-magic-numbers.js#L126 - node.parent.operator === '-') { - fullNumberNode = node.parent; - raw = `${node.parent.operator}${node.raw}`; - } - context.report({ - messageId: 'noMagic', - node: fullNumberNode, - data: { raw }, - }); - return; - } - // Let the base rule deal with the rest - rules.Literal(node); - }, - }; - }, -}); -/** - * Gets the true parent of the literal, handling prefixed numbers (-1 / +1) - */ -function getLiteralParent(node) { - var _a; - if (((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.UnaryExpression && - ['-', '+'].includes(node.parent.operator)) { - return node.parent.parent; - } - return node.parent; -} -/** - * Checks if the node grandparent is a Typescript type alias declaration - * @param node the node to be validated. - * @returns true if the node grandparent is a Typescript type alias declaration - * @private - */ -function isGrandparentTSTypeAliasDeclaration(node) { - var _a, _b; - return ((_b = (_a = node.parent) === null || _a === void 0 ? void 0 : _a.parent) === null || _b === void 0 ? void 0 : _b.type) === utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration; -} -/** - * Checks if the node grandparent is a Typescript union type and its parent is a type alias declaration - * @param node the node to be validated. - * @returns true if the node grandparent is a Typescript union type and its parent is a type alias declaration - * @private - */ -function isGrandparentTSUnionType(node) { - var _a, _b; - if (((_b = (_a = node.parent) === null || _a === void 0 ? void 0 : _a.parent) === null || _b === void 0 ? void 0 : _b.type) === utils_1.AST_NODE_TYPES.TSUnionType) { - return isGrandparentTSTypeAliasDeclaration(node.parent); - } - return false; -} -/** - * Checks if the node parent is a Typescript enum member - * @param node the node to be validated. - * @returns true if the node parent is a Typescript enum member - * @private - */ -function isParentTSEnumDeclaration(node) { - const parent = getLiteralParent(node); - return (parent === null || parent === void 0 ? void 0 : parent.type) === utils_1.AST_NODE_TYPES.TSEnumMember; -} -/** - * Checks if the node parent is a Typescript literal type - * @param node the node to be validated. - * @returns true if the node parent is a Typescript literal type - * @private - */ -function isParentTSLiteralType(node) { - var _a; - return ((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.TSLiteralType; -} -/** - * Checks if the node is a valid TypeScript numeric literal type. - * @param node the node to be validated. - * @returns true if the node is a TypeScript numeric literal type. - * @private - */ -function isTSNumericLiteralType(node) { - var _a; - // For negative numbers, use the parent node - if (((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.UnaryExpression && - node.parent.operator === '-') { - node = node.parent; - } - // If the parent node is not a TSLiteralType, early return - if (!isParentTSLiteralType(node)) { - return false; - } - // If the grandparent is a TSTypeAliasDeclaration, ignore - if (isGrandparentTSTypeAliasDeclaration(node)) { - return true; - } - // If the grandparent is a TSUnionType and it's parent is a TSTypeAliasDeclaration, ignore - if (isGrandparentTSUnionType(node)) { - return true; - } - return false; -} -/** - * Checks if the node parent is a readonly class property - * @param node the node to be validated. - * @returns true if the node parent is a readonly class property - * @private - */ -function isParentTSReadonlyPropertyDefinition(node) { - const parent = getLiteralParent(node); - if ((parent === null || parent === void 0 ? void 0 : parent.type) === utils_1.AST_NODE_TYPES.PropertyDefinition && parent.readonly) { - return true; - } - return false; -} -/** - * Checks if the node is part of a type indexed access (eg. Foo[4]) - * @param node the node to be validated. - * @returns true if the node is part of an indexed access - * @private - */ -function isAncestorTSIndexedAccessType(node) { - var _a, _b, _c; - // Handle unary expressions (eg. -4) - let ancestor = getLiteralParent(node); - // Go up another level while we’re part of a type union (eg. 1 | 2) or - // intersection (eg. 1 & 2) - while (((_a = ancestor === null || ancestor === void 0 ? void 0 : ancestor.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.TSUnionType || - ((_b = ancestor === null || ancestor === void 0 ? void 0 : ancestor.parent) === null || _b === void 0 ? void 0 : _b.type) === utils_1.AST_NODE_TYPES.TSIntersectionType) { - ancestor = ancestor.parent; - } - return ((_c = ancestor === null || ancestor === void 0 ? void 0 : ancestor.parent) === null || _c === void 0 ? void 0 : _c.type) === utils_1.AST_NODE_TYPES.TSIndexedAccessType; -} -//# sourceMappingURL=no-magic-numbers.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map deleted file mode 100644 index f4baef53..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-magic-numbers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-magic-numbers.js","sourceRoot":"","sources":["../../src/rules/no-magic-numbers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAChC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,kBAAkB,CAAC,CAAC;AAKvD,iFAAiF;AACjF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AM,0CAAE,IAAI,MAAK,sBAAc,CAAC,kBAAkB,EAC5D;QACA,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;KAC5B;IAED,OAAO,CAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,0CAAE,IAAI,MAAK,sBAAc,CAAC,mBAAmB,CAAC;AACvE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js deleted file mode 100644 index 4092117b..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js +++ /dev/null @@ -1,96 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-meaningless-void-operator', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow the `void` operator except when used to discard a value', - recommended: 'strict', - requiresTypeChecking: true, - }, - fixable: 'code', - hasSuggestions: true, - messages: { - meaninglessVoidOperator: "void operator shouldn't be used on {{type}}; it should convey that a return value is being ignored", - removeVoid: "Remove 'void'", - }, - schema: [ - { - type: 'object', - properties: { - checkNever: { - type: 'boolean', - default: false, - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [{ checkNever: false }], - create(context, [{ checkNever }]) { - const parserServices = utils_1.ESLintUtils.getParserServices(context); - const checker = parserServices.program.getTypeChecker(); - const sourceCode = context.getSourceCode(); - return { - 'UnaryExpression[operator="void"]'(node) { - const fix = (fixer) => { - return fixer.removeRange([ - sourceCode.getTokens(node)[0].range[0], - sourceCode.getTokens(node)[1].range[0], - ]); - }; - const argTsNode = parserServices.esTreeNodeToTSNodeMap.get(node.argument); - const argType = checker.getTypeAtLocation(argTsNode); - const unionParts = tsutils.unionTypeParts(argType); - if (unionParts.every(part => part.flags & (ts.TypeFlags.Void | ts.TypeFlags.Undefined))) { - context.report({ - node, - messageId: 'meaninglessVoidOperator', - data: { type: checker.typeToString(argType) }, - fix, - }); - } - else if (checkNever && - unionParts.every(part => part.flags & - (ts.TypeFlags.Void | ts.TypeFlags.Undefined | ts.TypeFlags.Never))) { - context.report({ - node, - messageId: 'meaninglessVoidOperator', - data: { type: checker.typeToString(argType) }, - suggest: [{ messageId: 'removeVoid', fix }], - }); - } - }, - }; - }, -}); -//# sourceMappingURL=no-meaningless-void-operator.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js.map deleted file mode 100644 index 214afcca..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-meaningless-void-operator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-meaningless-void-operator.js","sourceRoot":"","sources":["../../src/rules/no-meaningless-void-operator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAC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,CAAC;gBAEF,MAAM,SAAS,GAAG,cAAc,CAAC,qBAAqB,CAAC,GAAG,CACxD,IAAI,CAAC,QAAQ,CACd,CAAC;gBACF,MAAM,OAAO,GAAG,OAAO,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC;gBACrD,MAAM,UAAU,GAAG,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;gBACnD,IACE,UAAU,CAAC,KAAK,CACd,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,CAClE,EACD;oBACA,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,yBAAyB;wBACpC,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE;wBAC7C,GAAG;qBACJ,CAAC,CAAC;iBACJ;qBAAM,IACL,UAAU;oBACV,UAAU,CAAC,KAAK,CACd,IAAI,CAAC,EAAE,CACL,IAAI,CAAC,KAAK;wBACV,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CACpE,EACD;oBACA,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,yBAAyB;wBACpC,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE;wBAC7C,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC;qBAC5C,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js deleted file mode 100644 index 0b8e24e1..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js +++ /dev/null @@ -1,106 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-misused-new', - meta: { - type: 'problem', - docs: { - description: 'Enforce valid definition of `new` and `constructor`', - recommended: 'error', - }, - schema: [], - messages: { - errorMessageInterface: 'Interfaces cannot be constructed, only classes.', - errorMessageClass: 'Class cannot have method named `new`.', - }, - }, - defaultOptions: [], - create(context) { - /** - * @param node type to be inspected. - * @returns name of simple type or null - */ - function getTypeReferenceName(node) { - if (node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSTypeAnnotation: - return getTypeReferenceName(node.typeAnnotation); - case utils_1.AST_NODE_TYPES.TSTypeReference: - return getTypeReferenceName(node.typeName); - case utils_1.AST_NODE_TYPES.Identifier: - return node.name; - default: - break; - } - } - return null; - } - /** - * @param parent parent node. - * @param returnType type to be compared - */ - function isMatchingParentType(parent, returnType) { - if (parent && - 'id' in parent && - parent.id && - parent.id.type === utils_1.AST_NODE_TYPES.Identifier) { - return getTypeReferenceName(returnType) === parent.id.name; - } - return false; - } - return { - 'TSInterfaceBody > TSConstructSignatureDeclaration'(node) { - if (isMatchingParentType(node.parent.parent, node.returnType)) { - // constructor - context.report({ - node, - messageId: 'errorMessageInterface', - }); - } - }, - "TSMethodSignature[key.name='constructor']"(node) { - context.report({ - node, - messageId: 'errorMessageInterface', - }); - }, - "ClassBody > MethodDefinition[key.name='new']"(node) { - if (node.value.type === utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression) { - if (node.parent && - isMatchingParentType(node.parent.parent, node.value.returnType)) { - context.report({ - node, - messageId: 'errorMessageClass', - }); - } - } - }, - }; - }, -}); -//# sourceMappingURL=no-misused-new.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js.map deleted file mode 100644 index cad1bf7f..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-new.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-misused-new.js","sourceRoot":"","sources":["../../src/rules/no-misused-new.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,qDAAqD;YAClE,WAAW,EAAE,OAAO;SACrB;QACD,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,qBAAqB,EAAE,iDAAiD;YACxE,iBAAiB,EAAE,uCAAuC;SAC3D;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ;;;WAGG;QACH,SAAS,oBAAoB,CAC3B,IAIa;YAEb,IAAI,IAA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AM,CAAC,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,EAC/D;wBACA,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI;4BACJ,SAAS,EAAE,mBAAmB;yBAC/B,CAAC,CAAC;qBACJ;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js deleted file mode 100644 index d623543b..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js +++ /dev/null @@ -1,512 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -function parseChecksVoidReturn(checksVoidReturn) { - var _a, _b, _c, _d, _e; - switch (checksVoidReturn) { - case false: - return false; - case true: - case undefined: - return { - arguments: true, - attributes: true, - properties: true, - returns: true, - variables: true, - }; - default: - return { - arguments: (_a = checksVoidReturn.arguments) !== null && _a !== void 0 ? _a : true, - attributes: (_b = checksVoidReturn.attributes) !== null && _b !== void 0 ? _b : true, - properties: (_c = checksVoidReturn.properties) !== null && _c !== void 0 ? _c : true, - returns: (_d = checksVoidReturn.returns) !== null && _d !== void 0 ? _d : true, - variables: (_e = checksVoidReturn.variables) !== null && _e !== void 0 ? _e : true, - }; - } -} -exports.default = util.createRule({ - name: 'no-misused-promises', - meta: { - docs: { - description: 'Disallow Promises in places not designed to handle them', - recommended: 'error', - requiresTypeChecking: true, - }, - messages: { - voidReturnArgument: 'Promise returned in function argument where a void return was expected.', - voidReturnVariable: 'Promise-returning function provided to variable where a void return was expected.', - voidReturnProperty: 'Promise-returning function provided to property where a void return was expected.', - voidReturnReturnValue: 'Promise-returning function provided to return value where a void return was expected.', - voidReturnAttribute: 'Promise-returning function provided to attribute where a void return was expected.', - conditional: 'Expected non-Promise value in a boolean conditional.', - spread: 'Expected a non-Promise value to be spreaded in an object.', - }, - schema: [ - { - type: 'object', - properties: { - checksConditionals: { - type: 'boolean', - }, - checksVoidReturn: { - oneOf: [ - { type: 'boolean' }, - { - additionalProperties: false, - properties: { - arguments: { type: 'boolean' }, - attributes: { type: 'boolean' }, - properties: { type: 'boolean' }, - returns: { type: 'boolean' }, - variables: { type: 'boolean' }, - }, - type: 'object', - }, - ], - }, - checksSpreads: { - type: 'boolean', - }, - }, - }, - ], - type: 'problem', - }, - defaultOptions: [ - { - checksConditionals: true, - checksVoidReturn: true, - checksSpreads: true, - }, - ], - create(context, [{ checksConditionals, checksVoidReturn, checksSpreads }]) { - const parserServices = util.getParserServices(context); - const checker = parserServices.program.getTypeChecker(); - const checkedNodes = new Set(); - const conditionalChecks = { - ConditionalExpression: checkTestConditional, - DoWhileStatement: checkTestConditional, - ForStatement: checkTestConditional, - IfStatement: checkTestConditional, - LogicalExpression: checkConditional, - 'UnaryExpression[operator="!"]'(node) { - checkConditional(node.argument, true); - }, - WhileStatement: checkTestConditional, - }; - checksVoidReturn = parseChecksVoidReturn(checksVoidReturn); - const voidReturnChecks = checksVoidReturn - ? Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (checksVoidReturn.arguments && { - CallExpression: checkArguments, - NewExpression: checkArguments, - })), (checksVoidReturn.attributes && { - JSXAttribute: checkJSXAttribute, - })), (checksVoidReturn.properties && { - Property: checkProperty, - })), (checksVoidReturn.returns && { - ReturnStatement: checkReturnStatement, - })), (checksVoidReturn.variables && { - AssignmentExpression: checkAssignment, - VariableDeclarator: checkVariableDeclaration, - })) : {}; - const spreadChecks = { - SpreadElement: checkSpread, - }; - function checkTestConditional(node) { - if (node.test) { - checkConditional(node.test, true); - } - } - /** - * This function analyzes the type of a node and checks if it is a Promise in a boolean conditional. - * It uses recursion when checking nested logical operators. - * @param node The AST node to check. - * @param isTestExpr Whether the node is a descendant of a test expression. - */ - function checkConditional(node, isTestExpr = false) { - // prevent checking the same node multiple times - if (checkedNodes.has(node)) { - return; - } - checkedNodes.add(node); - if (node.type === utils_1.AST_NODE_TYPES.LogicalExpression) { - // ignore the left operand for nullish coalescing expressions not in a context of a test expression - if (node.operator !== '??' || isTestExpr) { - checkConditional(node.left, isTestExpr); - } - // we ignore the right operand when not in a context of a test expression - if (isTestExpr) { - checkConditional(node.right, isTestExpr); - } - return; - } - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - if (isAlwaysThenable(checker, tsNode)) { - context.report({ - messageId: 'conditional', - node, - }); - } - } - function checkArguments(node) { - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - const voidArgs = voidFunctionArguments(checker, tsNode); - if (voidArgs.size === 0) { - return; - } - for (const [index, argument] of node.arguments.entries()) { - if (!voidArgs.has(index)) { - continue; - } - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(argument); - if (returnsThenable(checker, tsNode)) { - context.report({ - messageId: 'voidReturnArgument', - node: argument, - }); - } - } - } - function checkAssignment(node) { - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - const varType = checker.getTypeAtLocation(tsNode.left); - if (!isVoidReturningFunctionType(checker, tsNode.left, varType)) { - return; - } - if (returnsThenable(checker, tsNode.right)) { - context.report({ - messageId: 'voidReturnVariable', - node: node.right, - }); - } - } - function checkVariableDeclaration(node) { - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - if (tsNode.initializer === undefined || node.init == null) { - return; - } - const varType = checker.getTypeAtLocation(tsNode.name); - if (!isVoidReturningFunctionType(checker, tsNode.initializer, varType)) { - return; - } - if (returnsThenable(checker, tsNode.initializer)) { - context.report({ - messageId: 'voidReturnVariable', - node: node.init, - }); - } - } - function checkProperty(node) { - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - if (ts.isPropertyAssignment(tsNode)) { - const contextualType = checker.getContextualType(tsNode.initializer); - if (contextualType !== undefined && - isVoidReturningFunctionType(checker, tsNode.initializer, contextualType) && - returnsThenable(checker, tsNode.initializer)) { - context.report({ - messageId: 'voidReturnProperty', - node: node.value, - }); - } - } - else if (ts.isShorthandPropertyAssignment(tsNode)) { - const contextualType = checker.getContextualType(tsNode.name); - if (contextualType !== undefined && - isVoidReturningFunctionType(checker, tsNode.name, contextualType) && - returnsThenable(checker, tsNode.name)) { - context.report({ - messageId: 'voidReturnProperty', - node: node.value, - }); - } - } - else if (ts.isMethodDeclaration(tsNode)) { - if (ts.isComputedPropertyName(tsNode.name)) { - return; - } - const obj = tsNode.parent; - // Below condition isn't satisfied unless something goes wrong, - // but is needed for type checking. - // 'node' does not include class method declaration so 'obj' is - // always an object literal expression, but after converting 'node' - // to TypeScript AST, its type includes MethodDeclaration which - // does include the case of class method declaration. - if (!ts.isObjectLiteralExpression(obj)) { - return; - } - if (!returnsThenable(checker, tsNode)) { - return; - } - const objType = checker.getContextualType(obj); - if (objType === undefined) { - return; - } - const propertySymbol = checker.getPropertyOfType(objType, tsNode.name.text); - if (propertySymbol === undefined) { - return; - } - const contextualType = checker.getTypeOfSymbolAtLocation(propertySymbol, tsNode.name); - if (isVoidReturningFunctionType(checker, tsNode.name, contextualType)) { - context.report({ - messageId: 'voidReturnProperty', - node: node.value, - }); - } - return; - } - } - function checkReturnStatement(node) { - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - if (tsNode.expression === undefined || node.argument == null) { - return; - } - const contextualType = checker.getContextualType(tsNode.expression); - if (contextualType !== undefined && - isVoidReturningFunctionType(checker, tsNode.expression, contextualType) && - returnsThenable(checker, tsNode.expression)) { - context.report({ - messageId: 'voidReturnReturnValue', - node: node.argument, - }); - } - } - function checkJSXAttribute(node) { - if (node.value == null || - node.value.type !== utils_1.AST_NODE_TYPES.JSXExpressionContainer) { - return; - } - const expressionContainer = parserServices.esTreeNodeToTSNodeMap.get(node.value); - const expression = parserServices.esTreeNodeToTSNodeMap.get(node.value.expression); - const contextualType = checker.getContextualType(expressionContainer); - if (contextualType !== undefined && - isVoidReturningFunctionType(checker, expressionContainer, contextualType) && - returnsThenable(checker, expression)) { - context.report({ - messageId: 'voidReturnAttribute', - node: node.value, - }); - } - } - function checkSpread(node) { - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - if (isSometimesThenable(checker, tsNode.expression)) { - context.report({ - messageId: 'spread', - node: node.argument, - }); - } - } - return Object.assign(Object.assign(Object.assign({}, (checksConditionals ? conditionalChecks : {})), (checksVoidReturn ? voidReturnChecks : {})), (checksSpreads ? spreadChecks : {})); - }, -}); -function isSometimesThenable(checker, node) { - const type = checker.getTypeAtLocation(node); - for (const subType of tsutils.unionTypeParts(checker.getApparentType(type))) { - if (tsutils.isThenableType(checker, node, subType)) { - return true; - } - } - return false; -} -// Variation on the thenable check which requires all forms of the type (read: -// alternates in a union) to be thenable. Otherwise, you might be trying to -// check if something is defined or undefined and get caught because one of the -// branches is thenable. -function isAlwaysThenable(checker, node) { - const type = checker.getTypeAtLocation(node); - for (const subType of tsutils.unionTypeParts(checker.getApparentType(type))) { - const thenProp = subType.getProperty('then'); - // If one of the alternates has no then property, it is not thenable in all - // cases. - if (thenProp === undefined) { - return false; - } - // We walk through each variation of the then property. Since we know it - // exists at this point, we just need at least one of the alternates to - // be of the right form to consider it thenable. - const thenType = checker.getTypeOfSymbolAtLocation(thenProp, node); - let hasThenableSignature = false; - for (const subType of tsutils.unionTypeParts(thenType)) { - for (const signature of subType.getCallSignatures()) { - if (signature.parameters.length !== 0 && - isFunctionParam(checker, signature.parameters[0], node)) { - hasThenableSignature = true; - break; - } - } - // We only need to find one variant of the then property that has a - // function signature for it to be thenable. - if (hasThenableSignature) { - break; - } - } - // If no flavors of the then property are thenable, we don't consider the - // overall type to be thenable - if (!hasThenableSignature) { - return false; - } - } - // If all variants are considered thenable (i.e. haven't returned false), we - // consider the overall type thenable - return true; -} -function isFunctionParam(checker, param, node) { - const type = checker.getApparentType(checker.getTypeOfSymbolAtLocation(param, node)); - for (const subType of tsutils.unionTypeParts(type)) { - if (subType.getCallSignatures().length !== 0) { - return true; - } - } - return false; -} -function checkThenableOrVoidArgument(checker, node, type, index, thenableReturnIndices, voidReturnIndices) { - if (isThenableReturningFunctionType(checker, node.expression, type)) { - thenableReturnIndices.add(index); - } - else if (isVoidReturningFunctionType(checker, node.expression, type)) { - // If a certain argument accepts both thenable and void returns, - // a promise-returning function is valid - if (!thenableReturnIndices.has(index)) { - voidReturnIndices.add(index); - } - } -} -// Get the positions of arguments which are void functions (and not also -// thenable functions). These are the candidates for the void-return check at -// the current call site. -// If the function parameters end with a 'rest' parameter, then we consider -// the array type parameter (e.g. '...args:Array') when determining -// if trailing arguments are candidates. -function voidFunctionArguments(checker, node) { - // 'new' can be used without any arguments, as in 'let b = new Object;' - // In this case, there are no argument positions to check, so return early. - if (!node.arguments) { - return new Set(); - } - const thenableReturnIndices = new Set(); - const voidReturnIndices = new Set(); - const type = checker.getTypeAtLocation(node.expression); - // We can't use checker.getResolvedSignature because it prefers an early '() => void' over a later '() => Promise' - // See https://github.com/microsoft/TypeScript/issues/48077 - for (const subType of tsutils.unionTypeParts(type)) { - // Standard function calls and `new` have two different types of signatures - const signatures = ts.isCallExpression(node) - ? subType.getCallSignatures() - : subType.getConstructSignatures(); - for (const signature of signatures) { - for (const [index, parameter] of signature.parameters.entries()) { - const decl = parameter.valueDeclaration; - let type = checker.getTypeOfSymbolAtLocation(parameter, node.expression); - // If this is a array 'rest' parameter, check all of the argument indices - // from the current argument to the end. - // Note - we currently do not support 'spread' arguments - adding support for them - // is tracked in https://github.com/typescript-eslint/typescript-eslint/issues/5744 - if (decl && ts.isParameter(decl) && decl.dotDotDotToken) { - if (checker.isArrayType(type)) { - // Unwrap 'Array' to 'MaybeVoidFunction', - // so that we'll handle it in the same way as a non-rest - // 'param: MaybeVoidFunction' - type = util.getTypeArguments(type, checker)[0]; - for (let i = index; i < node.arguments.length; i++) { - checkThenableOrVoidArgument(checker, node, type, i, thenableReturnIndices, voidReturnIndices); - } - } - else if (checker.isTupleType(type)) { - // Check each type in the tuple - for example, [boolean, () => void] would - // add the index of the second tuple parameter to 'voidReturnIndices' - const typeArgs = util.getTypeArguments(type, checker); - for (let i = index; i < node.arguments.length && i - index < typeArgs.length; i++) { - checkThenableOrVoidArgument(checker, node, typeArgs[i - index], i, thenableReturnIndices, voidReturnIndices); - } - } - } - else { - checkThenableOrVoidArgument(checker, node, type, index, thenableReturnIndices, voidReturnIndices); - } - } - } - } - for (const index of thenableReturnIndices) { - voidReturnIndices.delete(index); - } - return voidReturnIndices; -} -/** - * @returns Whether any call signature of the type has a thenable return type. - */ -function anySignatureIsThenableType(checker, node, type) { - for (const signature of type.getCallSignatures()) { - const returnType = signature.getReturnType(); - if (tsutils.isThenableType(checker, node, returnType)) { - return true; - } - } - return false; -} -/** - * @returns Whether type is a thenable-returning function. - */ -function isThenableReturningFunctionType(checker, node, type) { - for (const subType of tsutils.unionTypeParts(type)) { - if (anySignatureIsThenableType(checker, node, subType)) { - return true; - } - } - return false; -} -/** - * @returns Whether type is a void-returning function. - */ -function isVoidReturningFunctionType(checker, node, type) { - let hadVoidReturn = false; - for (const subType of tsutils.unionTypeParts(type)) { - for (const signature of subType.getCallSignatures()) { - const returnType = signature.getReturnType(); - // If a certain positional argument accepts both thenable and void returns, - // a promise-returning function is valid - if (tsutils.isThenableType(checker, node, returnType)) { - return false; - } - hadVoidReturn || (hadVoidReturn = tsutils.isTypeFlagSet(returnType, ts.TypeFlags.Void)); - } - } - return hadVoidReturn; -} -/** - * @returns Whether expression is a function that returns a thenable. - */ -function returnsThenable(checker, node) { - const type = checker.getApparentType(checker.getTypeAtLocation(node)); - if (anySignatureIsThenableType(checker, node, type)) { - return true; - } - return false; -} -//# sourceMappingURL=no-misused-promises.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map deleted file mode 100644 index c1b48f92..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-misused-promises.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-misused-promises.js","sourceRoot":"","sources":["../../src/rules/no-misused-promises.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,iDAAmC;AACnC,+CAAiC;AAEjC,8CAAgC;AA2BhC,SAAS,qBAAqB,CAC5B,gBAA+D;;IAE/D,QAAQ,gBAAgB,EAAE;QACxB,KAAK,KAAK;YACR,OAAO,KAAK,CAAC;QAEf,KAAK,IAAI,CAAC;QACV,KAAK,SAAS;YACZ,OAAO;gBACL,SAAS,EAAE,IAAI;gBACf,UAAU,EAAE,IAAI;gBAChB,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,IAAI;gBACb,SAAS,EAAE,IAAI;aAChB,CAAC;QAEJ;YACE,OAAO;gBACL,SAAS,EAAE,MAAA,gBAAgB,CAAC,SAAS,mCAAI,IAAI;gBAC7C,UAAU,EAAE,MAAA,gBAAgB,CAAC,UAAU,mCAAI,IAAI;gBAC/C,UAAU,EAAE,MAAA,gBAAgB,CAA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AAC,aAAa,EAAE,CAAC;YAE7C,2EAA2E;YAC3E,wCAAwC;YACxC,IAAI,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE,UAAU,CAAC,EAAE;gBACrD,OAAO,KAAK,CAAC;aACd;YAED,aAAa,KAAb,aAAa,GAAK,OAAO,CAAC,aAAa,CAAC,UAAU,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAC;SACxE;KACF;IAED,OAAO,aAAa,CAAC;AACvB,CAAC;AAED;;GAEG;AACH,SAAS,eAAe,CAAC,OAAuB,EAAE,IAAa;IAC7D,MAAM,IAAI,GAAG,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;IAEtE,IAAI,0BAA0B,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE;QACnD,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js deleted file mode 100644 index 173d2674..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js +++ /dev/null @@ -1,196 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -var AllowedType; -(function (AllowedType) { - AllowedType[AllowedType["Number"] = 0] = "Number"; - AllowedType[AllowedType["String"] = 1] = "String"; - AllowedType[AllowedType["Unknown"] = 2] = "Unknown"; -})(AllowedType || (AllowedType = {})); -exports.default = util.createRule({ - name: 'no-mixed-enums', - meta: { - docs: { - description: 'Disallow enums from having both number and string members', - recommended: 'strict', - requiresTypeChecking: true, - }, - messages: { - mixed: `Mixing number and string enums can be confusing.`, - }, - schema: [], - type: 'problem', - }, - defaultOptions: [], - create(context) { - const parserServices = util.getParserServices(context); - const typeChecker = parserServices.program.getTypeChecker(); - function collectNodeDefinitions(node) { - var _a, _b, _c, _d, _e; - const { name } = node.id; - const found = { - imports: [], - previousSibling: undefined, - }; - let scope = context.getScope(); - for (const definition of (_c = (_b = (_a = scope.upper) === null || _a === void 0 ? void 0 : _a.set.get(name)) === null || _b === void 0 ? void 0 : _b.defs) !== null && _c !== void 0 ? _c : []) { - if (definition.node.type === utils_1.AST_NODE_TYPES.TSEnumDeclaration && - definition.node.range[0] < node.range[0] && - definition.node.members.length > 0) { - found.previousSibling = definition.node; - break; - } - } - while (scope) { - (_e = (_d = scope.set.get(name)) === null || _d === void 0 ? void 0 : _d.defs) === null || _e === void 0 ? void 0 : _e.forEach(definition => { - if (definition.type === scope_manager_1.DefinitionType.ImportBinding) { - found.imports.push(definition.node); - } - }); - scope = scope.upper; - } - return found; - } - function getAllowedTypeForNode(node) { - return tsutils.isTypeFlagSet(typeChecker.getTypeAtLocation(node), ts.TypeFlags.StringLike) - ? AllowedType.String - : AllowedType.Number; - } - function getTypeFromImported(imported) { - var _a; - const type = typeChecker.getTypeAtLocation(parserServices.esTreeNodeToTSNodeMap.get(imported)); - const valueDeclaration = (_a = type.getSymbol()) === null || _a === void 0 ? void 0 : _a.valueDeclaration; - if (!valueDeclaration || - !ts.isEnumDeclaration(valueDeclaration) || - valueDeclaration.members.length === 0) { - return undefined; - } - return getAllowedTypeForNode(valueDeclaration.members[0]); - } - function getMemberType(member) { - if (!member.initializer) { - return AllowedType.Number; - } - switch (member.initializer.type) { - case utils_1.AST_NODE_TYPES.Literal: - switch (typeof member.initializer.value) { - case 'number': - return AllowedType.Number; - case 'string': - return AllowedType.String; - default: - return AllowedType.Unknown; - } - case utils_1.AST_NODE_TYPES.TemplateLiteral: - return AllowedType.String; - default: - return getAllowedTypeForNode(parserServices.esTreeNodeToTSNodeMap.get(member.initializer)); - } - } - function getDesiredTypeForDefinition(node) { - const { imports, previousSibling } = collectNodeDefinitions(node); - // Case: Merged ambiently via module augmentation - // import { MyEnum } from 'other-module'; - // declare module 'other-module' { - // enum MyEnum { A } - // } - for (const imported of imports) { - const typeFromImported = getTypeFromImported(imported); - if (typeFromImported !== undefined) { - return typeFromImported; - } - } - // Case: Multiple enum declarations in the same file - // enum MyEnum { A } - // enum MyEnum { B } - if (previousSibling) { - return getMemberType(previousSibling.members[0]); - } - // Case: Namespace declaration merging - // namespace MyNamespace { - // export enum MyEnum { A } - // } - // namespace MyNamespace { - // export enum MyEnum { B } - // } - if (node.parent.type === utils_1.AST_NODE_TYPES.ExportNamedDeclaration && - node.parent.parent.type === utils_1.AST_NODE_TYPES.TSModuleBlock) { - // TODO: We don't need to dip into the TypeScript type checker here! - // Merged namespaces must all exist in the same file. - // We could instead compare this file's nodes to find the merges. - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node.id); - const declarations = typeChecker - .getSymbolAtLocation(tsNode) - .getDeclarations(); - for (const declaration of declarations) { - for (const member of declaration.members) { - return member.initializer - ? tsutils.isTypeFlagSet(typeChecker.getTypeAtLocation(member.initializer), ts.TypeFlags.StringLike) - ? AllowedType.String - : AllowedType.Number - : AllowedType.Number; - } - } - } - // Finally, we default to the type of the first enum member - return getMemberType(node.members[0]); - } - return { - TSEnumDeclaration(node) { - var _a; - if (!node.members.length) { - return; - } - let desiredType = getDesiredTypeForDefinition(node); - if (desiredType === ts.TypeFlags.Unknown) { - return; - } - for (const member of node.members) { - const currentType = getMemberType(member); - if (currentType === AllowedType.Unknown) { - return; - } - if (currentType === AllowedType.Number) { - desiredType !== null && desiredType !== void 0 ? desiredType : (desiredType = currentType); - } - if (currentType !== desiredType && - (currentType !== undefined || desiredType === AllowedType.String)) { - context.report({ - messageId: 'mixed', - node: (_a = member.initializer) !== null && _a !== void 0 ? _a : member, - }); - return; - } - } - }, - }; - }, -}); -//# sourceMappingURL=no-mixed-enums.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map deleted file mode 100644 index 221cdb93..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-mixed-enums.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-mixed-enums.js","sourceRoot":"","sources":["../../src/rules/no-mixed-enums.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oEAAkE;AAElE,oDAA0D;AAC1D,iDAAmC;AACnC,+CAAiC;AAEjC,8CAAgC;AAEhC,IAAK,WAIJ;AAJD,WAAK,WAAW;IACd,iDAAM,CAAA;IACN,iDAAM,CAAA;IACN,mDAAO,CAAA;AACT,CAAC,EAJI,WAAW,KAAX,WAAW,QAIf;AAED,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,2DAA2D;YACxE,WAAW,EAAE,QAAQ;YACrB,oBA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AAM,CAAC;4BACb,SAAS,EAAE,OAAO;4BAClB,IAAI,EAAE,MAAA,MAAM,CAAC,WAAW,mCAAI,MAAM;yBACnC,CAAC,CAAC;wBACH,OAAO;qBACR;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js deleted file mode 100644 index 09ba571b..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-namespace', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow TypeScript namespaces', - recommended: 'error', - }, - messages: { - moduleSyntaxIsPreferred: 'ES2015 module syntax is preferred over namespaces.', - }, - schema: [ - { - type: 'object', - properties: { - allowDeclarations: { - description: 'Whether to allow `declare` with custom TypeScript namespaces.', - type: 'boolean', - }, - allowDefinitionFiles: { - description: 'Whether to allow `declare` with custom TypeScript namespaces inside definition files.', - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - allowDeclarations: false, - allowDefinitionFiles: true, - }, - ], - create(context, [{ allowDeclarations, allowDefinitionFiles }]) { - const filename = context.getFilename(); - function isDeclaration(node) { - if (node.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration && - node.declare === true) { - return true; - } - return node.parent != null && isDeclaration(node.parent); - } - return { - "TSModuleDeclaration[global!=true][id.type='Identifier']"(node) { - if ((node.parent && - node.parent.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration) || - (allowDefinitionFiles && util.isDefinitionFile(filename)) || - (allowDeclarations && isDeclaration(node))) { - return; - } - context.report({ - node, - messageId: 'moduleSyntaxIsPreferred', - }); - }, - }; - }, -}); -//# sourceMappingURL=no-namespace.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js.map deleted file mode 100644 index cdd90adb..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-namespace.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-namespace.js","sourceRoot":"","sources":["../../src/rules/no-namespace.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAUhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,gCAAgC;YAC7C,WAAW,EAAE,OAAO;SACrB;QACD,QAAQ,EAAE;YACR,uBAAuB,EACrB,oDAAoD;SACvD;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,iBAAiB,EAAE;wBACjB,WAAW,EACT,+DAA+D;wBACjE,IAAI,EAAE,SAAS;qBAChB;oBACD,oBAAoB,EAAE;wBACpB,WAAW,EACT,uFAAuF;wBACzF,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,iBAAiB,EAAE,KAAK;YACxB,oBAAoB,EAAE,IAAI;SAC3B;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,CAAC;QAC3D,MAAM,QAAQ,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;QAEvC,SAAS,aAAa,CAAC,IAAmB;YACxC,IACE,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB;gBAChD,IAAI,CAAC,OAAO,KAAK,IAAI,EACrB;gBACA,OAAO,IAAI,CAAC;aACb;YAED,OAAO,IAAI,CAAC,MAAM,IAAI,IAAI,IAAI,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC3D,CAAC;QAED,OAAO;YACL,yDAAyD,CACvD,IAAkC;gBAElC,IACE,CAAC,IAAI,CAAC,MAAM;oBACV,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB,CAAC;oBAC1D,CAAC,oBAAoB,IAAI,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;oBACzD,CAAC,iBAAiB,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC,EAC1C;oBACA,OAAO;iBACR;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,yBAAyB;iBACrC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js deleted file mode 100644 index 0134b596..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js +++ /dev/null @@ -1,98 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -function hasAssignmentBeforeNode(variable, node) { - return (variable.references.some(ref => ref.isWrite() && ref.identifier.range[1] < node.range[1]) || - variable.defs.some(def => isDefinitionWithAssignment(def) && def.node.range[1] < node.range[1])); -} -function isDefinitionWithAssignment(definition) { - if (definition.type !== scope_manager_1.DefinitionType.Variable) { - return false; - } - const variableDeclarator = definition.node; - return (variableDeclarator.definite === true || variableDeclarator.init != null); -} -exports.default = util.createRule({ - name: 'no-non-null-asserted-nullish-coalescing', - meta: { - type: 'problem', - docs: { - description: 'Disallow non-null assertions in the left operand of a nullish coalescing operator', - recommended: 'strict', - }, - messages: { - noNonNullAssertedNullishCoalescing: 'The nullish coalescing operator is designed to handle undefined and null - using a non-null assertion is not needed.', - suggestRemovingNonNull: 'Remove the non-null assertion.', - }, - schema: [], - hasSuggestions: true, - }, - defaultOptions: [], - create(context) { - return { - 'LogicalExpression[operator = "??"] > TSNonNullExpression.left'(node) { - if (node.expression.type === utils_1.TSESTree.AST_NODE_TYPES.Identifier) { - const scope = context.getScope(); - const identifier = node.expression; - const variable = utils_1.ASTUtils.findVariable(scope, identifier.name); - if (variable && !hasAssignmentBeforeNode(variable, node)) { - return; - } - } - const sourceCode = context.getSourceCode(); - context.report({ - node, - messageId: 'noNonNullAssertedNullishCoalescing', - /* - Use a suggestion instead of a fixer, because this can break type checks. - The resulting type of the nullish coalesce is only influenced by the right operand if the left operand can be `null` or `undefined`. - After removing the non-null assertion the type of the left operand might contain `null` or `undefined` and then the type of the right operand - might change the resulting type of the nullish coalesce. - See the following example: - - function test(x?: string): string { - const bar = x! ?? false; // type analysis reports `bar` has type `string` - // x ?? false; // type analysis reports `bar` has type `string | false` - return bar; - } - */ - suggest: [ - { - messageId: 'suggestRemovingNonNull', - fix(fixer) { - const exclamationMark = util.nullThrows(sourceCode.getLastToken(node, utils_1.ASTUtils.isNonNullAssertionPunctuator), util.NullThrowsReasons.MissingToken('!', 'Non-null Assertion')); - return fixer.remove(exclamationMark); - }, - }, - ], - }); - }, - }; - }, -}); -//# sourceMappingURL=no-non-null-asserted-nullish-coalescing.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js.map deleted file mode 100644 index 371763d4..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-nullish-coalescing.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-non-null-asserted-nullish-coalescing.js","sourceRoot":"","sources":["../../src/rules/no-non-null-asserted-nullish-coalescing.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oEAAkE;AAElE,oDAA8D;A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,CAAC,cAAc,CAAC,UAAU,EAAE;oBAC/D,MAAM,KAAK,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;oBACjC,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;oBACnC,MAAM,QAAQ,GAAG,gBAAQ,CAAC,YAAY,CAAC,KAAK,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;oBAC/D,IAAI,QAAQ,IAAI,CAAC,uBAAuB,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE;wBACxD,OAAO;qBACR;iBACF;gBAED,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;gBAE3C,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,oCAAoC;oBAC/C;;;;;;;;;;;;sBAYE;oBACF,OAAO,EAAE;wBACP;4BACE,SAAS,EAAE,wBAAwB;4BACnC,GAAG,CAAC,KAAK;gCACP,MAAM,eAAe,GAAG,IAAI,CAAC,UAAU,CACrC,UAAU,CAAC,YAAY,CACrB,IAAI,EACJ,gBAAQ,CAAC,4BAA4B,CACtC,EACD,IAAI,CAAC,iBAAiB,CAAC,YAAY,CACjC,GAAG,EACH,oBAAoB,CACrB,CACF,CAAC;gCACF,OAAO,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;4BACvC,CAAC;yBACF;qBACF;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js deleted file mode 100644 index bb820b7c..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js +++ /dev/null @@ -1,149 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const semver = __importStar(require("semver")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -const is3dot9 = semver.satisfies(ts.version, `>= 3.9.0 || >= 3.9.1-rc || >= 3.9.0-beta`, { - includePrerelease: true, -}); -exports.default = util.createRule({ - name: 'no-non-null-asserted-optional-chain', - meta: { - type: 'problem', - docs: { - description: 'Disallow non-null assertions after an optional chain expression', - recommended: 'error', - }, - hasSuggestions: true, - messages: { - noNonNullOptionalChain: 'Optional chain expressions can return undefined by design - using a non-null assertion is unsafe and wrong.', - suggestRemovingNonNull: 'You should remove the non-null assertion.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - // TS3.9 made a breaking change to how non-null works with optional chains. - // Pre-3.9, `x?.y!.z` means `(x?.y).z` - i.e. it essentially scrubbed the optionality from the chain - // Post-3.9, `x?.y!.z` means `x?.y!.z` - i.e. it just asserts that the property `y` is non-null, not the result of `x?.y`. - // This means that for > 3.9, x?.y!.z is valid! - // - // NOTE: these cases are still invalid for 3.9: - // - x?.y.z! - // - (x?.y)!.z - const baseSelectors = { - // non-nulling a wrapped chain will scrub all nulls introduced by the chain - // (x?.y)! - // (x?.())! - 'TSNonNullExpression > ChainExpression'(node) { - // selector guarantees this assertion - const parent = node.parent; - context.report({ - node, - messageId: 'noNonNullOptionalChain', - // use a suggestion instead of a fixer, because this can obviously break type checks - suggest: [ - { - messageId: 'suggestRemovingNonNull', - fix(fixer) { - return fixer.removeRange([ - parent.range[1] - 1, - parent.range[1], - ]); - }, - }, - ], - }); - }, - // non-nulling at the end of a chain will scrub all nulls introduced by the chain - // x?.y! - // x?.()! - 'ChainExpression > TSNonNullExpression'(node) { - context.report({ - node, - messageId: 'noNonNullOptionalChain', - // use a suggestion instead of a fixer, because this can obviously break type checks - suggest: [ - { - messageId: 'suggestRemovingNonNull', - fix(fixer) { - return fixer.removeRange([node.range[1] - 1, node.range[1]]); - }, - }, - ], - }); - }, - }; - if (is3dot9) { - return baseSelectors; - } - return Object.assign(Object.assign({}, baseSelectors), { [[ - // > :not(ChainExpression) because that case is handled by a previous selector - 'MemberExpression > TSNonNullExpression.object > :not(ChainExpression)', - 'CallExpression > TSNonNullExpression.callee > :not(ChainExpression)', - ].join(', ')](child) { - // selector guarantees this assertion - const node = child.parent; - let current = child; - while (current) { - switch (current.type) { - case utils_1.AST_NODE_TYPES.MemberExpression: - if (current.optional) { - // found an optional chain! stop traversing - break; - } - current = current.object; - continue; - case utils_1.AST_NODE_TYPES.CallExpression: - if (current.optional) { - // found an optional chain! stop traversing - break; - } - current = current.callee; - continue; - default: - // something that's not a ChainElement, which means this is not an optional chain we want to check - return; - } - } - context.report({ - node, - messageId: 'noNonNullOptionalChain', - // use a suggestion instead of a fixer, because this can obviously break type checks - suggest: [ - { - messageId: 'suggestRemovingNonNull', - fix(fixer) { - return fixer.removeRange([node.range[1] - 1, node.range[1]]); - }, - }, - ], - }); - } }); - }, -}); -//# sourceMappingURL=no-non-null-asserted-optional-chain.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js.map deleted file mode 100644 index 98e6dc28..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-asserted-optional-chain.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-non-null-asserted-optional-chain.js","sourceRoot":"","sources":["../../src/rules/no-non-null-asserted-optional-chain.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,+CAAiC;AACjC,+CAAiC;AAEjC,8CAAgC;AAEhC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAC9B,EAAE,CAAC,OAAO,EACV,0CAA0C,EAC1C;IACE,iBAAiB,EAAE,IAAI;CACxB,CACF,CAAC;AAEF,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,qCAAqC;IAC3C,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,iEAAiE;YACnE,WAAW,EAAE,OAAO;SACrB;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,sBAAsB,EACpB,6GAA6G;YAC/G,sBAAsB,EAAE,2CAA2C;SACpE;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,2EAA2E;QAC3E,qGAAqG;QACrG,2HAA2H;QAC3H,+CAA+C;QAC/C,EAAE;QACF,+CAA+C;QAC/C,YAAY;QACZ,cAAc;QAEd,MAAM,aAAa,GAAG;YACpB,2EAA2E;YAC3E,UAAU;YACV,WAAW;YACX,uCAAuC,CACrC,IAA8B;gBAE9B,qCAAqC;gBACrC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAsC,CAAC;gBAC3D,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,wBAAwB;oBACnC,oFAAoF;oBACpF,OAAO,EAAE;wBACP;4BACE,SAAS,EAAE,wBAAwB;4BACnC,GAAG,CAAC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QAAQ,EAAE;gCACpB,2CAA2C;gCAC3C,MAAM;6BACP;4BAED,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;4BACzB,SAAS;wBAEX;4BACE,kGAAkG;4BAClG,OAAO;qBACV;iBACF;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,wBAAwB;oBACnC,oFAAoF;oBACpF,OAAO,EAAE;wBACP;4BACE,SAAS,EAAE,wBAAwB;4BACnC,GAAG,CAAC,KAAK;gCACP,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;4BAC/D,CAAC;yBACF;qBACF;iBACF,CAAC,CAAC;YACL,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js deleted file mode 100644 index 35ce15f7..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js +++ /dev/null @@ -1,129 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-non-null-assertion', - meta: { - type: 'problem', - docs: { - description: 'Disallow non-null assertions using the `!` postfix operator', - recommended: 'warn', - }, - hasSuggestions: true, - messages: { - noNonNull: 'Forbidden non-null assertion.', - suggestOptionalChain: 'Consider using the optional chain operator `?.` instead. This operator includes runtime checks, so it is safer than the compile-only non-null assertion operator.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const sourceCode = context.getSourceCode(); - return { - TSNonNullExpression(node) { - var _a, _b; - const suggest = []; - function convertTokenToOptional(replacement) { - return (fixer) => { - const operator = sourceCode.getTokenAfter(node.expression, util.isNonNullAssertionPunctuator); - if (operator) { - return fixer.replaceText(operator, replacement); - } - return null; - }; - } - function removeToken() { - return (fixer) => { - const operator = sourceCode.getTokenAfter(node.expression, util.isNonNullAssertionPunctuator); - if (operator) { - return fixer.remove(operator); - } - return null; - }; - } - if (((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.MemberExpression && - node.parent.object === node) { - if (!node.parent.optional) { - if (node.parent.computed) { - // it is x![y]?.z - suggest.push({ - messageId: 'suggestOptionalChain', - fix: convertTokenToOptional('?.'), - }); - } - else { - // it is x!.y?.z - suggest.push({ - messageId: 'suggestOptionalChain', - fix: convertTokenToOptional('?'), - }); - } - } - else { - if (node.parent.computed) { - // it is x!?.[y].z - suggest.push({ - messageId: 'suggestOptionalChain', - fix: removeToken(), - }); - } - else { - // it is x!?.y.z - suggest.push({ - messageId: 'suggestOptionalChain', - fix: removeToken(), - }); - } - } - } - else if (((_b = node.parent) === null || _b === void 0 ? void 0 : _b.type) === utils_1.AST_NODE_TYPES.CallExpression && - node.parent.callee === node) { - if (!node.parent.optional) { - // it is x.y?.z!() - suggest.push({ - messageId: 'suggestOptionalChain', - fix: convertTokenToOptional('?.'), - }); - } - else { - // it is x.y.z!?.() - suggest.push({ - messageId: 'suggestOptionalChain', - fix: removeToken(), - }); - } - } - context.report({ - node, - messageId: 'noNonNull', - suggest, - }); - }, - }; - }, -}); -//# sourceMappingURL=no-non-null-assertion.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js.map deleted file mode 100644 index 69a946f1..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-non-null-assertion.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-non-null-assertion.js","sourceRoot":"","sources":["../../src/rules/no-non-null-assertion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAIhC,kBAAe,IAAI,CAAC,UAAU,CAAiB;IAC7C,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,6DAA6D;YAC/D,WAAW,EAAE,MAAM;SACpB;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,SAAS,EAAE,+BAA+B;YAC1C,oBAAoB,EAClB,mKAAmK;SACtK;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAC3C,OAAO;YACL,mBAAmB,CAAC,IAAI;;gBACtB,MAAM,OAAO,GAA+C,EAAE,CAAC;gBAC/D,SAAS,sBAAsB,CAC7B,WAAuB;oBAEvB,OAAO,CAAC,KAAyB,EAA2B,EAAE;wBAC5D,MAAM,QAAQ,GAAG,UAAU,CAAC,aAAa,CACvC,IAAI,CAAC,UAAU,EACf,IAAI,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AM;4BACL,gBAAgB;4BAChB,OAAO,CAAC,IAAI,CAAC;gCACX,SAAS,EAAE,sBAAsB;gCACjC,GAAG,EAAE,WAAW,EAAE;6BACnB,CAAC,CAAC;yBACJ;qBACF;iBACF;qBAAM,IACL,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,IAAI,MAAK,sBAAc,CAAC,cAAc;oBACnD,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,IAAI,EAC3B;oBACA,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;wBACzB,kBAAkB;wBAClB,OAAO,CAAC,IAAI,CAAC;4BACX,SAAS,EAAE,sBAAsB;4BACjC,GAAG,EAAE,sBAAsB,CAAC,IAAI,CAAC;yBAClC,CAAC,CAAC;qBACJ;yBAAM;wBACL,mBAAmB;wBACnB,OAAO,CAAC,IAAI,CAAC;4BACX,SAAS,EAAE,sBAAsB;4BACjC,GAAG,EAAE,WAAW,EAAE;yBACnB,CAAC,CAAC;qBACJ;iBACF;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,WAAW;oBACtB,OAAO;iBACR,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-parameter-properties.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-parameter-properties.js deleted file mode 100644 index f4b5be7c..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-parameter-properties.js +++ /dev/null @@ -1,111 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-parameter-properties', - meta: { - deprecated: true, - replacedBy: ['@typescript-eslint/parameter-properties'], - type: 'problem', - docs: { - description: 'Disallow the use of parameter properties in class constructors', - // too opinionated to be recommended - recommended: false, - }, - messages: { - noParamProp: 'Property {{parameter}} cannot be declared in the constructor.', - }, - schema: [ - { - type: 'object', - properties: { - allows: { - type: 'array', - items: { - enum: [ - 'readonly', - 'private', - 'protected', - 'public', - 'private readonly', - 'protected readonly', - 'public readonly', - ], - }, - minItems: 1, - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - allows: [], - }, - ], - create(context, [{ allows }]) { - /** - * Gets the modifiers of `node`. - * @param node the node to be inspected. - */ - function getModifiers(node) { - const modifiers = []; - if (node.accessibility) { - modifiers.push(node.accessibility); - } - if (node.readonly) { - modifiers.push('readonly'); - } - return modifiers.filter(Boolean).join(' '); - } - return { - TSParameterProperty(node) { - const modifiers = getModifiers(node); - if (!allows.includes(modifiers)) { - // HAS to be an identifier or assignment or TSC will throw - if (node.parameter.type !== utils_1.AST_NODE_TYPES.Identifier && - node.parameter.type !== utils_1.AST_NODE_TYPES.AssignmentPattern) { - return; - } - const name = node.parameter.type === utils_1.AST_NODE_TYPES.Identifier - ? node.parameter.name - : // has to be an Identifier or TSC will throw an error - node.parameter.left.name; - context.report({ - node, - messageId: 'noParamProp', - data: { - parameter: name, - }, - }); - } - }, - }; - }, -}); -//# sourceMappingURL=no-parameter-properties.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-parameter-properties.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-parameter-properties.js.map deleted file mode 100644 index 5516f089..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-parameter-properties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-parameter-properties.js","sourceRoot":"","sources":["../../src/rules/no-parameter-properties.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAiBhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,UAAU,EAAE,IAAI;QAChB,UAAU,EAAE,CAAC,yCAAyC,CAAC;QACvD,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,gEAAgE;YAClE,oCAAoC;YACpC,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,WAAW,EACT,+DAA+D;SAClE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,MAAM,EAAE;wBACN,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE;gCACJ,UAAU;gCACV,SAAS;gCACT,WAAW;gCACX,QAAQ;gCACR,kBAAkB;gCAClB,oBAAoB;gCACpB,iBAAiB;6BAClB;yBACF;wBACD,QAAQ,EAAE,CAAC;qBACZ;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,MAAM,EAAE,EAAE;SACX;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;QAC1B;;;WAGG;QACH,SAAS,YAAY,CAAC,IAAkC;YACtD,MAAM,SAAS,GAAe,EAAE,CAAC;YAEjC,IAAI,IAAI,CAAC,aAAa,EAAE;gBACtB,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aACpC;YACD,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC5B;YAED,OAAO,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAa,CAAC;QACzD,CAAC;QAED,OAAO;YACL,mBAAmB,CAAC,IAAI;gBACtB,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;gBAErC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE;oBAC/B,0DAA0D;oBAC1D,IACE,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;wBACjD,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB,EACxD;wBACA,OAAO;qBACR;oBAED,MAAM,IAAI,GACR,IAAI,CAAC,SAAS,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;wBAC/C,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI;wBACrB,CAAC,CAAC,qDAAqD;4BACpD,IAAI,CAAC,SAAS,CAAC,IAA4B,CAAC,IAAI,CAAC;oBAExD,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,aAAa;wBACxB,IAAI,EAAE;4BACJ,SAAS,EAAE,IAAI;yBAChB;qBACF,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js deleted file mode 100644 index 5820660c..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js +++ /dev/null @@ -1,223 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-redeclare', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow variable redeclaration', - recommended: false, - extendsBaseRule: true, - }, - schema: [ - { - type: 'object', - properties: { - builtinGlobals: { - type: 'boolean', - }, - ignoreDeclarationMerge: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - messages: { - redeclared: "'{{id}}' is already defined.", - redeclaredAsBuiltin: "'{{id}}' is already defined as a built-in global variable.", - redeclaredBySyntax: "'{{id}}' is already defined by a variable declaration.", - }, - }, - defaultOptions: [ - { - builtinGlobals: true, - ignoreDeclarationMerge: true, - }, - ], - create(context, [options]) { - const sourceCode = context.getSourceCode(); - const CLASS_DECLARATION_MERGE_NODES = new Set([ - utils_1.AST_NODE_TYPES.TSInterfaceDeclaration, - utils_1.AST_NODE_TYPES.TSModuleDeclaration, - utils_1.AST_NODE_TYPES.ClassDeclaration, - ]); - const FUNCTION_DECLARATION_MERGE_NODES = new Set([ - utils_1.AST_NODE_TYPES.TSModuleDeclaration, - utils_1.AST_NODE_TYPES.FunctionDeclaration, - ]); - const ENUM_DECLARATION_MERGE_NODES = new Set([ - utils_1.AST_NODE_TYPES.TSEnumDeclaration, - utils_1.AST_NODE_TYPES.TSModuleDeclaration, - ]); - function* iterateDeclarations(variable) { - if ((options === null || options === void 0 ? void 0 : options.builtinGlobals) && - 'eslintImplicitGlobalSetting' in variable && - (variable.eslintImplicitGlobalSetting === 'readonly' || - variable.eslintImplicitGlobalSetting === 'writable')) { - yield { type: 'builtin' }; - } - if ('eslintExplicitGlobalComments' in variable && - variable.eslintExplicitGlobalComments) { - for (const comment of variable.eslintExplicitGlobalComments) { - yield { - type: 'comment', - node: comment, - loc: util.getNameLocationInGlobalDirectiveComment(sourceCode, comment, variable.name), - }; - } - } - const identifiers = variable.identifiers - .map(id => ({ - identifier: id, - parent: id.parent, - })) - // ignore function declarations because TS will treat them as an overload - .filter(({ parent }) => parent.type !== utils_1.AST_NODE_TYPES.TSDeclareFunction); - if (options.ignoreDeclarationMerge && identifiers.length > 1) { - if ( - // interfaces merging - identifiers.every(({ parent }) => parent.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration)) { - return; - } - if ( - // namespace/module merging - identifiers.every(({ parent }) => parent.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration)) { - return; - } - if ( - // class + interface/namespace merging - identifiers.every(({ parent }) => CLASS_DECLARATION_MERGE_NODES.has(parent.type))) { - const classDecls = identifiers.filter(({ parent }) => parent.type === utils_1.AST_NODE_TYPES.ClassDeclaration); - if (classDecls.length === 1) { - // safe declaration merging - return; - } - // there's more than one class declaration, which needs to be reported - for (const { identifier } of classDecls) { - yield { type: 'syntax', node: identifier, loc: identifier.loc }; - } - return; - } - if ( - // class + interface/namespace merging - identifiers.every(({ parent }) => FUNCTION_DECLARATION_MERGE_NODES.has(parent.type))) { - const functionDecls = identifiers.filter(({ parent }) => parent.type === utils_1.AST_NODE_TYPES.FunctionDeclaration); - if (functionDecls.length === 1) { - // safe declaration merging - return; - } - // there's more than one function declaration, which needs to be reported - for (const { identifier } of functionDecls) { - yield { type: 'syntax', node: identifier, loc: identifier.loc }; - } - return; - } - if ( - // enum + namespace merging - identifiers.every(({ parent }) => ENUM_DECLARATION_MERGE_NODES.has(parent.type))) { - const enumDecls = identifiers.filter(({ parent }) => parent.type === utils_1.AST_NODE_TYPES.TSEnumDeclaration); - if (enumDecls.length === 1) { - // safe declaration merging - return; - } - // there's more than one enum declaration, which needs to be reported - for (const { identifier } of enumDecls) { - yield { type: 'syntax', node: identifier, loc: identifier.loc }; - } - return; - } - } - for (const { identifier } of identifiers) { - yield { type: 'syntax', node: identifier, loc: identifier.loc }; - } - } - function findVariablesInScope(scope) { - for (const variable of scope.variables) { - const [declaration, ...extraDeclarations] = iterateDeclarations(variable); - if (extraDeclarations.length === 0) { - continue; - } - /* - * If the type of a declaration is different from the type of - * the first declaration, it shows the location of the first - * declaration. - */ - const detailMessageId = declaration.type === 'builtin' - ? 'redeclaredAsBuiltin' - : 'redeclaredBySyntax'; - const data = { id: variable.name }; - // Report extra declarations. - for (const { type, node, loc } of extraDeclarations) { - const messageId = type === declaration.type ? 'redeclared' : detailMessageId; - if (node) { - context.report({ node, loc, messageId, data }); - } - else if (loc) { - context.report({ loc, messageId, data }); - } - } - } - } - /** - * Find variables in the current scope. - */ - function checkForBlock(node) { - const scope = context.getScope(); - /* - * In ES5, some node type such as `BlockStatement` doesn't have that scope. - * `scope.block` is a different node in such a case. - */ - if (scope.block === node) { - findVariablesInScope(scope); - } - } - return { - Program() { - const scope = context.getScope(); - findVariablesInScope(scope); - // Node.js or ES modules has a special scope. - if (scope.type === 'global' && - scope.childScopes[0] && - // The special scope's block is the Program node. - scope.block === scope.childScopes[0].block) { - findVariablesInScope(scope.childScopes[0]); - } - }, - FunctionDeclaration: checkForBlock, - FunctionExpression: checkForBlock, - ArrowFunctionExpression: checkForBlock, - BlockStatement: checkForBlock, - ForStatement: checkForBlock, - ForInStatement: checkForBlock, - ForOfStatement: checkForBlock, - SwitchStatement: checkForBlock, - }; - }, -}); -//# sourceMappingURL=no-redeclare.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js.map deleted file mode 100644 index 1b8bb8ab..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redeclare.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-redeclare.js","sourceRoot":"","sources":["../../src/rules/no-redeclare.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAUhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,iCAAiC;YAC9C,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,cAAc,EAAE;wBACd,IAAI,EAAE,SAAS;qBAChB;oBACD,sBAAsB,EAAE;wBACtB,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,8BAA8B;YAC1C,mBAAmB,EACjB,4DAA4D;YAC9D,kBAAkB,EAChB,wDAAwD;SAC3D;KACF;IACD,cAAc,EAAE;QACd;YACE,cAAc,EAAE,IAAI;YACpB,sBAAsB,EAAE,IAAI;SAC7B;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvB,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAE3C,MAAM,6BAA6B,GAAG,IAAI,GAAG,CAAiB;YAC5D,sBAAc,CA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AAI,KAAK,QAAQ;oBACvB,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;oBACpB,iDAAiD;oBACjD,KAAK,CAAC,KAAK,KAAK,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,EAC1C;oBACA,oBAAoB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;iBAC5C;YACH,CAAC;YAED,mBAAmB,EAAE,aAAa;YAClC,kBAAkB,EAAE,aAAa;YACjC,uBAAuB,EAAE,aAAa;YAEtC,cAAc,EAAE,aAAa;YAC7B,YAAY,EAAE,aAAa;YAC3B,cAAc,EAAE,aAAa;YAC7B,cAAc,EAAE,aAAa;YAC7B,eAAe,EAAE,aAAa;SAC/B,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js deleted file mode 100644 index cec531f7..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js +++ /dev/null @@ -1,373 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -const literalToPrimitiveTypeFlags = { - [ts.TypeFlags.BigIntLiteral]: ts.TypeFlags.BigInt, - [ts.TypeFlags.BooleanLiteral]: ts.TypeFlags.Boolean, - [ts.TypeFlags.NumberLiteral]: ts.TypeFlags.Number, - [ts.TypeFlags.StringLiteral]: ts.TypeFlags.String, - [ts.TypeFlags.TemplateLiteral]: ts.TypeFlags.String, -}; -const literalTypeFlags = [ - ts.TypeFlags.BigIntLiteral, - ts.TypeFlags.BooleanLiteral, - ts.TypeFlags.NumberLiteral, - ts.TypeFlags.StringLiteral, - ts.TypeFlags.TemplateLiteral, -]; -const primitiveTypeFlags = [ - ts.TypeFlags.BigInt, - ts.TypeFlags.Boolean, - ts.TypeFlags.Number, - ts.TypeFlags.String, -]; -const primitiveTypeFlagNames = { - [ts.TypeFlags.BigInt]: 'bigint', - [ts.TypeFlags.Boolean]: 'boolean', - [ts.TypeFlags.Number]: 'number', - [ts.TypeFlags.String]: 'string', -}; -const primitiveTypeFlagTypes = { - bigint: ts.TypeFlags.BigIntLiteral, - boolean: ts.TypeFlags.BooleanLiteral, - number: ts.TypeFlags.NumberLiteral, - string: ts.TypeFlags.StringLiteral, -}; -const keywordNodeTypesToTsTypes = new Map([ - [utils_1.TSESTree.AST_NODE_TYPES.TSAnyKeyword, ts.TypeFlags.Any], - [utils_1.TSESTree.AST_NODE_TYPES.TSBigIntKeyword, ts.TypeFlags.BigInt], - [utils_1.TSESTree.AST_NODE_TYPES.TSBooleanKeyword, ts.TypeFlags.Boolean], - [utils_1.TSESTree.AST_NODE_TYPES.TSNeverKeyword, ts.TypeFlags.Never], - [utils_1.TSESTree.AST_NODE_TYPES.TSUnknownKeyword, ts.TypeFlags.Unknown], - [utils_1.TSESTree.AST_NODE_TYPES.TSNumberKeyword, ts.TypeFlags.Number], - [utils_1.TSESTree.AST_NODE_TYPES.TSStringKeyword, ts.TypeFlags.String], -]); -function addToMapGroup(map, key, value) { - const existing = map.get(key); - if (existing) { - existing.push(value); - } - else { - map.set(key, [value]); - } -} -function describeLiteralType(type) { - if (type.isStringLiteral()) { - return JSON.stringify(type.value); - } - if (util.isTypeBigIntLiteralType(type)) { - return `${type.value.negative ? '-' : ''}${type.value.base10Value}n`; - } - if (type.isLiteral()) { - return type.value.toString(); - } - if (util.isTypeAnyType(type)) { - return 'any'; - } - if (util.isTypeNeverType(type)) { - return 'never'; - } - if (util.isTypeUnknownType(type)) { - return 'unknown'; - } - if (util.isTypeTemplateLiteralType(type)) { - return 'template literal type'; - } - if (tsutils.isBooleanLiteralType(type, true)) { - return 'true'; - } - if (tsutils.isBooleanLiteralType(type, false)) { - return 'false'; - } - return 'literal type'; -} -function describeLiteralTypeNode(typeNode) { - switch (typeNode.type) { - case utils_1.AST_NODE_TYPES.TSAnyKeyword: - return 'any'; - case utils_1.AST_NODE_TYPES.TSBooleanKeyword: - return 'boolean'; - case utils_1.AST_NODE_TYPES.TSNeverKeyword: - return 'never'; - case utils_1.AST_NODE_TYPES.TSNumberKeyword: - return 'number'; - case utils_1.AST_NODE_TYPES.TSStringKeyword: - return 'string'; - case utils_1.AST_NODE_TYPES.TSUnknownKeyword: - return 'unknown'; - case utils_1.AST_NODE_TYPES.TSLiteralType: - switch (typeNode.literal.type) { - case utils_1.TSESTree.AST_NODE_TYPES.Literal: - switch (typeof typeNode.literal.value) { - case 'bigint': - return `${typeNode.literal.value < 0 ? '-' : ''}${typeNode.literal.value}n`; - case 'string': - return JSON.stringify(typeNode.literal.value); - default: - return `${typeNode.literal.value}`; - } - case utils_1.TSESTree.AST_NODE_TYPES.TemplateLiteral: - return 'template literal type'; - } - } - return 'literal type'; -} -function isNodeInsideReturnType(node) { - var _a; - return !!(((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.TSTypeAnnotation && - node.parent.parent && - (util.isFunctionType(node.parent.parent) || - util.isFunction(node.parent.parent))); -} -/** - * @remarks TypeScript stores boolean types as the union false | true, always. - */ -function unionTypePartsUnlessBoolean(type) { - return type.isUnion() && - type.types.length === 2 && - tsutils.isBooleanLiteralType(type.types[0], false) && - tsutils.isBooleanLiteralType(type.types[1], true) - ? [type] - : tsutils.unionTypeParts(type); -} -exports.default = util.createRule({ - name: 'no-redundant-type-constituents', - meta: { - docs: { - description: 'Disallow members of unions and intersections that do nothing or override type information', - recommended: false, - requiresTypeChecking: true, - }, - messages: { - literalOverridden: `{{literal}} is overridden by {{primitive}} in this union type.`, - primitiveOverridden: `{{primitive}} is overridden by the {{literal}} in this intersection type.`, - overridden: `'{{typeName}}' is overridden by other types in this {{container}} type.`, - overrides: `'{{typeName}}' overrides all other types in this {{container}} type.`, - }, - schema: [], - type: 'suggestion', - }, - defaultOptions: [], - create(context) { - const parserServices = util.getParserServices(context); - const typesCache = new Map(); - function getTypeNodeTypePartFlags(typeNode) { - const keywordTypeFlags = keywordNodeTypesToTsTypes.get(typeNode.type); - if (keywordTypeFlags) { - return [ - { - typeFlags: keywordTypeFlags, - typeName: describeLiteralTypeNode(typeNode), - }, - ]; - } - if (typeNode.type === utils_1.AST_NODE_TYPES.TSLiteralType && - typeNode.literal.type === utils_1.AST_NODE_TYPES.Literal) { - return [ - { - typeFlags: primitiveTypeFlagTypes[typeof typeNode.literal - .value], - typeName: describeLiteralTypeNode(typeNode), - }, - ]; - } - if (typeNode.type === utils_1.AST_NODE_TYPES.TSUnionType) { - return typeNode.types.flatMap(getTypeNodeTypePartFlags); - } - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(typeNode); - const checker = parserServices.program.getTypeChecker(); - const nodeType = checker.getTypeAtLocation(tsNode); - const typeParts = unionTypePartsUnlessBoolean(nodeType); - return typeParts.map(typePart => ({ - typeFlags: typePart.flags, - typeName: describeLiteralType(typePart), - })); - } - function getTypeNodeTypePartFlagsCached(typeNode) { - const existing = typesCache.get(typeNode); - if (existing) { - return existing; - } - const created = getTypeNodeTypePartFlags(typeNode); - typesCache.set(typeNode, created); - return created; - } - return { - 'TSIntersectionType:exit'(node) { - const seenLiteralTypes = new Map(); - const seenPrimitiveTypes = new Map(); - function checkIntersectionBottomAndTopTypes({ typeFlags, typeName }, typeNode) { - for (const [messageId, checkFlag] of [ - ['overrides', ts.TypeFlags.Any], - ['overrides', ts.TypeFlags.Never], - ['overridden', ts.TypeFlags.Unknown], - ]) { - if (typeFlags === checkFlag) { - context.report({ - data: { - container: 'intersection', - typeName, - }, - messageId, - node: typeNode, - }); - return true; - } - } - return false; - } - for (const typeNode of node.types) { - const typePartFlags = getTypeNodeTypePartFlagsCached(typeNode); - for (const typePart of typePartFlags) { - if (checkIntersectionBottomAndTopTypes(typePart, typeNode)) { - continue; - } - for (const literalTypeFlag of literalTypeFlags) { - if (typePart.typeFlags === literalTypeFlag) { - addToMapGroup(seenLiteralTypes, literalToPrimitiveTypeFlags[literalTypeFlag], typePart.typeName); - break; - } - } - for (const primitiveTypeFlag of primitiveTypeFlags) { - if (typePart.typeFlags === primitiveTypeFlag) { - addToMapGroup(seenPrimitiveTypes, primitiveTypeFlag, typeNode); - } - } - } - } - // For each primitive type of all the seen primitive types, - // if there was a literal type seen that overrides it, - // report each of the primitive type's type nodes - for (const [primitiveTypeFlag, typeNodes] of seenPrimitiveTypes) { - const matchedLiteralTypes = seenLiteralTypes.get(primitiveTypeFlag); - if (matchedLiteralTypes) { - for (const typeNode of typeNodes) { - context.report({ - data: { - literal: matchedLiteralTypes.join(' | '), - primitive: primitiveTypeFlagNames[primitiveTypeFlag], - }, - messageId: 'primitiveOverridden', - node: typeNode, - }); - } - } - } - }, - 'TSUnionType:exit'(node) { - const seenLiteralTypes = new Map(); - const seenPrimitiveTypes = new Set(); - function checkUnionBottomAndTopTypes({ typeFlags, typeName }, typeNode) { - for (const checkFlag of [ - ts.TypeFlags.Any, - ts.TypeFlags.Unknown, - ]) { - if (typeFlags === checkFlag) { - context.report({ - data: { - container: 'union', - typeName, - }, - messageId: 'overrides', - node: typeNode, - }); - return true; - } - } - if (typeFlags === ts.TypeFlags.Never && - !isNodeInsideReturnType(node)) { - context.report({ - data: { - container: 'union', - typeName: 'never', - }, - messageId: 'overridden', - node: typeNode, - }); - return true; - } - return false; - } - for (const typeNode of node.types) { - const typePartFlags = getTypeNodeTypePartFlagsCached(typeNode); - for (const typePart of typePartFlags) { - if (checkUnionBottomAndTopTypes(typePart, typeNode)) { - continue; - } - for (const literalTypeFlag of literalTypeFlags) { - if (typePart.typeFlags === literalTypeFlag) { - addToMapGroup(seenLiteralTypes, literalToPrimitiveTypeFlags[literalTypeFlag], { - literalValue: typePart.typeName, - typeNode, - }); - break; - } - } - for (const primitiveTypeFlag of primitiveTypeFlags) { - if ((typePart.typeFlags & primitiveTypeFlag) !== 0) { - seenPrimitiveTypes.add(primitiveTypeFlag); - } - } - } - } - const overriddenTypeNodes = new Map(); - // For each primitive type of all the seen literal types, - // if there was a primitive type seen that overrides it, - // upsert the literal text and primitive type under the backing type node - for (const [primitiveTypeFlag, typeNodesWithText] of seenLiteralTypes) { - if (seenPrimitiveTypes.has(primitiveTypeFlag)) { - for (const { literalValue, typeNode } of typeNodesWithText) { - addToMapGroup(overriddenTypeNodes, typeNode, { - literalValue, - primitiveTypeFlag, - }); - } - } - } - // For each type node that had at least one overridden literal, - // group those literals by their primitive type, - // then report each primitive type with all its literals - for (const [typeNode, typeFlagsWithText] of overriddenTypeNodes) { - const grouped = util.arrayGroupByToMap(typeFlagsWithText, pair => pair.primitiveTypeFlag); - for (const [primitiveTypeFlag, pairs] of grouped) { - context.report({ - data: { - literal: pairs.map(pair => pair.literalValue).join(' | '), - primitive: primitiveTypeFlagNames[primitiveTypeFlag], - }, - messageId: 'literalOverridden', - node: typeNode, - }); - } - } - }, - }; - }, -}); -//# sourceMappingURL=no-redundant-type-constituents.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map deleted file mode 100644 index 02bdad63..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-redundant-type-constituents.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-redundant-type-constituents.js","sourceRoot":"","sources":["../../src/rules/no-redundant-type-constituents.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAoE;AACpE,iDAAmC;AACnC,+CAAiC;AAEjC,8CAAgC;AAEhC,MAAM,2BAA2B,GAAG;IAClC,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM;IACjD,CAAC,EAAE,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO;IACnD,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM;IACjD,CAAC,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM;IACjD,CAAC,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM;CAC3C,CAAC;AAEX,MAAM,gBAAgB,GAAG;IACvB,EAAE,CAAC,SAAS,CAAC,aAAa;IAC1B,EAAE,CAAC,SAAS,CAAC,cAAc;IAC3B,EAAE,CAAC,SAAS,CAAC,aAAa;IAC1B,EAAE,CAAC,SAAS,CAAC,aAAa;IAC1B,EAAE,CAAC,SAAS,CAAC,eAAe;CACpB,CAAC;AAEX,MAAM,kBAAkB,GAAG;IACzB,EAAE,CAAC,SAAS,CAAC,MAAM;IACnB,EAAE,CAAC,SAAS,CAAC,OAAO;IACpB,EAAE,CAAC,SAAS,CAAC,MAAM;IACnB,EAAE,CAAC,SAAS,CAAC,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,iBAAiB,CAAC,CAAC;6BAC3C;yBACF;qBACF;iBACF;gBAOD,MAAM,mBAAmB,GAAG,IAAI,GAAG,EAGhC,CAAC;gBAEJ,yDAAyD;gBACzD,wDAAwD;gBACxD,yEAAyE;gBACzE,KAAK,MAAM,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,IAAI,gBAAgB,EAAE;oBACrE,IAAI,kBAAkB,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE;wBAC7C,KAAK,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,iBAAiB,EAAE;4BAC1D,aAAa,CAAC,mBAAmB,EAAE,QAAQ,EAAE;gCAC3C,YAAY;gCACZ,iBAAiB;6BAClB,CAAC,CAAC;yBACJ;qBACF;iBACF;gBAED,+DAA+D;gBAC/D,gDAAgD;gBAChD,wDAAwD;gBACxD,KAAK,MAAM,CAAC,QAAQ,EAAE,iBAAiB,CAAC,IAAI,mBAAmB,EAAE;oBAC/D,MAAM,OAAO,GAAG,IAAI,CAAC,iBAAiB,CACpC,iBAAiB,EACjB,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAC/B,CAAC;oBAEF,KAAK,MAAM,CAAC,iBAAiB,EAAE,KAAK,CAAC,IAAI,OAAO,EAAE;wBAChD,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE;gCACJ,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;gCACzD,SAAS,EAAE,sBAAsB,CAAC,iBAAiB,CAAC;6BACrD;4BACD,SAAS,EAAE,mBAAmB;4BAC9B,IAAI,EAAE,QAAQ;yBACf,CAAC,CAAC;qBACJ;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js deleted file mode 100644 index 1f1bb6b3..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-require-imports', - meta: { - type: 'problem', - docs: { - description: 'Disallow invocation of `require()`', - recommended: false, - }, - schema: [], - messages: { - noRequireImports: 'A `require()` style import is forbidden.', - }, - }, - defaultOptions: [], - create(context) { - return { - 'CallExpression[callee.name="require"]'(node) { - const variable = utils_1.ASTUtils.findVariable(context.getScope(), 'require'); - // ignore non-global require usage as it's something user-land custom instead - // of the commonjs standard - if (!(variable === null || variable === void 0 ? void 0 : variable.identifiers.length)) { - context.report({ - node, - messageId: 'noRequireImports', - }); - } - }, - TSExternalModuleReference(node) { - context.report({ - node, - messageId: 'noRequireImports', - }); - }, - }; - }, -}); -//# sourceMappingURL=no-require-imports.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map deleted file mode 100644 index fac29507..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-require-imports.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-require-imports.js","sourceRoot":"","sources":["../../src/rules/no-require-imports.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAAoD;AAEpD,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,oCAAoC;YACjD,WAAW,EAAE,KAAK;SACnB;QACD,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,gBAAgB,EAAE,0CAA0C;SAC7D;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,uCAAuC,CACrC,IAA6B;gBAE7B,MAAM,QAAQ,GAAG,gBAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,SAAS,CAAC,CAAC;gBAEtE,6EAA6E;gBAC7E,2BAA2B;gBAC3B,IAAI,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,CAAC,MAAM,CAAA,EAAE;oBACjC,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,kBAAkB;qBAC9B,CAAC,CAAC;iBACJ;YACH,CAAC;YACD,yBAAyB,CAAC,IAAI;gBAC5B,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,kBAAkB;iBAC9B,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js deleted file mode 100644 index 2939202c..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js +++ /dev/null @@ -1,156 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const ignore_1 = __importDefault(require("ignore")); -const util_1 = require("../util"); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-restricted-imports'); -const allowTypeImportsOptionSchema = { - allowTypeImports: { - type: 'boolean', - default: false, - }, -}; -const schemaForMergeArrayOfStringsOrObjects = { - items: { - anyOf: [ - {}, - { - properties: allowTypeImportsOptionSchema, - }, - ], - }, -}; -const schemaForMergeArrayOfStringsOrObjectPatterns = { - anyOf: [ - {}, - { - items: { - properties: allowTypeImportsOptionSchema, - }, - }, - ], -}; -const schema = (0, util_1.deepMerge)(Object.assign({}, baseRule.meta.schema), { - anyOf: [ - schemaForMergeArrayOfStringsOrObjects, - { - items: { - properties: { - paths: schemaForMergeArrayOfStringsOrObjects, - patterns: schemaForMergeArrayOfStringsOrObjectPatterns, - }, - }, - }, - ], -}); -function isObjectOfPaths(obj) { - return Object.prototype.hasOwnProperty.call(obj, 'paths'); -} -function isObjectOfPatterns(obj) { - return Object.prototype.hasOwnProperty.call(obj, 'patterns'); -} -function isOptionsArrayOfStringOrObject(options) { - if (isObjectOfPaths(options[0])) { - return false; - } - if (isObjectOfPatterns(options[0])) { - return false; - } - return true; -} -function getRestrictedPaths(options) { - if (isOptionsArrayOfStringOrObject(options)) { - return options; - } - if (isObjectOfPaths(options[0])) { - return options[0].paths; - } - return []; -} -function getRestrictedPatterns(options) { - if (isObjectOfPatterns(options[0])) { - return options[0].patterns; - } - return []; -} -exports.default = (0, util_1.createRule)({ - name: 'no-restricted-imports', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow specified modules when loaded by `import`', - recommended: false, - extendsBaseRule: true, - }, - messages: baseRule.meta.messages, - fixable: baseRule.meta.fixable, - schema, - }, - defaultOptions: [], - create(context) { - const rules = baseRule.create(context); - const { options } = context; - if (options.length === 0) { - return {}; - } - const restrictedPaths = getRestrictedPaths(options); - const allowedTypeImportPathNameSet = new Set(); - for (const restrictedPath of restrictedPaths) { - if (typeof restrictedPath === 'object' && - restrictedPath.allowTypeImports) { - allowedTypeImportPathNameSet.add(restrictedPath.name); - } - } - function isAllowedTypeImportPath(importSource) { - return allowedTypeImportPathNameSet.has(importSource); - } - const restrictedPatterns = getRestrictedPatterns(options); - const allowedImportTypeMatchers = []; - for (const restrictedPattern of restrictedPatterns) { - if (typeof restrictedPattern === 'object' && - restrictedPattern.allowTypeImports) { - // Following how ignore is configured in the base rule - allowedImportTypeMatchers.push((0, ignore_1.default)({ - allowRelativePaths: true, - ignoreCase: !restrictedPattern.caseSensitive, - }).add(restrictedPattern.group)); - } - } - function isAllowedTypeImportPattern(importSource) { - return ( - // As long as there's one matching pattern that allows type import - allowedImportTypeMatchers.some(matcher => matcher.ignores(importSource))); - } - return { - ImportDeclaration(node) { - if (node.importKind === 'type') { - const importSource = node.source.value.trim(); - if (!isAllowedTypeImportPath(importSource) && - !isAllowedTypeImportPattern(importSource)) { - return rules.ImportDeclaration(node); - } - } - else { - return rules.ImportDeclaration(node); - } - }, - 'ExportNamedDeclaration[source]'(node) { - if (node.exportKind === 'type') { - const importSource = node.source.value.trim(); - if (!isAllowedTypeImportPath(importSource) && - !isAllowedTypeImportPattern(importSource)) { - return rules.ExportNamedDeclaration(node); - } - } - else { - return rules.ExportNamedDeclaration(node); - } - }, - ExportAllDeclaration: rules.ExportAllDeclaration, - }; - }, -}); -//# sourceMappingURL=no-restricted-imports.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js.map deleted file mode 100644 index 32685eef..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-restricted-imports.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-restricted-imports.js","sourceRoot":"","sources":["../../src/rules/no-restricted-imports.ts"],"names":[],"mappings":";;;;;AAMA,oDAA4B;AAM5B,kCAAgD;AAChD,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,uBAAuB,CAAC,CAAC;AAK5D,MAAM,4BAA4B,GAAG;IACnC,gBAAgB,EAAE;QAChB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;KACf;CACF,CAAC;AACF,MAAM,qCAAqC,GAAG;IAC5C,KAAK,EAAE;QACL,KAAK,EAAE;YACL,EAAE;YACF;gBACE,UAAU,EAAE,4BAA4B;aACzC;SACF;KACF;CACF,CAAC;AACF,MAAM,4CAA4C,GAAG;IACnD,KAAK,EAAE;QACL,EAAE;QACF;YACE,KAAK,EAAE;gBACL,UAAU,EAAE,4BAA4B;aACzC;SACF;KACF;CACF,CAAC;AACF,MAAM,MAAM,GAAG,IAAA,gBAAS,oBACjB,QAAQ,CAAC,IAAI,CAAC,MAAM,GACzB;IACE,KAAK,EAAE;QACL,qCAAqC;QACrC;YACE,KAAK,EAAE;gBACL,UAAU,EAAE;oBACV,KAAK,EAAE,qCAAqC;oBAC5C,QAAQ,EAAE,4CAA4C;iBACvD;aACF;SACF;KACF;CACF,CACF,CAAC;AAEF,SAAS,eAAe,CACtB,GAAY;IAEZ,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AAC5D,CAAC;AAED,SAAS,kBAAkB,CACzB,GAAY;IAEZ,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;AAC/D,CAAC;AAED,SAAS,8BAA8B,CACrC,OAAgB;IA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wBACtC,CAAC,0BAA0B,CAAC,YAAY,CAAC,EACzC;wBACA,OAAO,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;qBACtC;iBACF;qBAAM;oBACL,OAAO,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;iBACtC;YACH,CAAC;YACD,gCAAgC,CAC9B,IAEC;gBAED,IAAI,IAAI,CAAC,UAAU,KAAK,MAAM,EAAE;oBAC9B,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;oBAC9C,IACE,CAAC,uBAAuB,CAAC,YAAY,CAAC;wBACtC,CAAC,0BAA0B,CAAC,YAAY,CAAC,EACzC;wBACA,OAAO,KAAK,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;qBAC3C;iBACF;qBAAM;oBACL,OAAO,KAAK,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;iBAC3C;YACH,CAAC;YACD,oBAAoB,EAAE,KAAK,CAAC,oBAAoB;SACjD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js deleted file mode 100644 index 0583e4ba..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js +++ /dev/null @@ -1,507 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const allowedFunctionVariableDefTypes = new Set([ - utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration, - utils_1.AST_NODE_TYPES.TSFunctionType, - utils_1.AST_NODE_TYPES.TSMethodSignature, -]); -exports.default = util.createRule({ - name: 'no-shadow', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow variable declarations from shadowing variables declared in the outer scope', - recommended: false, - extendsBaseRule: true, - }, - schema: [ - { - type: 'object', - properties: { - builtinGlobals: { - type: 'boolean', - }, - hoist: { - enum: ['all', 'functions', 'never'], - }, - allow: { - type: 'array', - items: { - type: 'string', - }, - }, - ignoreOnInitialization: { - type: 'boolean', - }, - ignoreTypeValueShadow: { - type: 'boolean', - }, - ignoreFunctionTypeParameterNameValueShadow: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - messages: { - noShadow: "'{{name}}' is already declared in the upper scope on line {{shadowedLine}} column {{shadowedColumn}}.", - noShadowGlobal: "'{{name}}' is already a global variable.", - }, - }, - defaultOptions: [ - { - allow: [], - builtinGlobals: false, - hoist: 'functions', - ignoreOnInitialization: false, - ignoreTypeValueShadow: true, - ignoreFunctionTypeParameterNameValueShadow: true, - }, - ], - create(context, [options]) { - /** - * Check if a scope is a TypeScript module augmenting the global namespace. - */ - function isGlobalAugmentation(scope) { - return ((scope.type === scope_manager_1.ScopeType.tsModule && !!scope.block.global) || - (!!scope.upper && isGlobalAugmentation(scope.upper))); - } - /** - * Check if variable is a `this` parameter. - */ - function isThisParam(variable) { - return (variable.defs[0].type === scope_manager_1.DefinitionType.Parameter && - variable.name === 'this'); - } - function isTypeImport(definition) { - return ((definition === null || definition === void 0 ? void 0 : definition.type) === scope_manager_1.DefinitionType.ImportBinding && - (definition.parent.importKind === 'type' || - (definition.node.type === utils_1.AST_NODE_TYPES.ImportSpecifier && - definition.node.importKind === 'type'))); - } - function isTypeValueShadow(variable, shadowed) { - if (options.ignoreTypeValueShadow !== true) { - return false; - } - if (!('isValueVariable' in variable)) { - // this shouldn't happen... - return false; - } - const [firstDefinition] = shadowed.defs; - const isShadowedValue = !('isValueVariable' in shadowed) || - !firstDefinition || - (!isTypeImport(firstDefinition) && shadowed.isValueVariable); - return variable.isValueVariable !== isShadowedValue; - } - function isFunctionTypeParameterNameValueShadow(variable, shadowed) { - if (options.ignoreFunctionTypeParameterNameValueShadow !== true) { - return false; - } - if (!('isValueVariable' in variable)) { - // this shouldn't happen... - return false; - } - const isShadowedValue = 'isValueVariable' in shadowed ? shadowed.isValueVariable : true; - if (!isShadowedValue) { - return false; - } - return variable.defs.every(def => allowedFunctionVariableDefTypes.has(def.node.type)); - } - function isGenericOfStaticMethod(variable) { - if (!('isTypeVariable' in variable)) { - // this shouldn't happen... - return false; - } - if (!variable.isTypeVariable) { - return false; - } - if (variable.identifiers.length === 0) { - return false; - } - const typeParameter = variable.identifiers[0].parent; - if ((typeParameter === null || typeParameter === void 0 ? void 0 : typeParameter.type) !== utils_1.AST_NODE_TYPES.TSTypeParameter) { - return false; - } - const typeParameterDecl = typeParameter.parent; - if ((typeParameterDecl === null || typeParameterDecl === void 0 ? void 0 : typeParameterDecl.type) !== utils_1.AST_NODE_TYPES.TSTypeParameterDeclaration) { - return false; - } - const functionExpr = typeParameterDecl.parent; - if (!functionExpr || - (functionExpr.type !== utils_1.AST_NODE_TYPES.FunctionExpression && - functionExpr.type !== utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression)) { - return false; - } - const methodDefinition = functionExpr.parent; - if ((methodDefinition === null || methodDefinition === void 0 ? void 0 : methodDefinition.type) !== utils_1.AST_NODE_TYPES.MethodDefinition) { - return false; - } - return methodDefinition.static; - } - function isGenericOfClassDecl(variable) { - if (!('isTypeVariable' in variable)) { - // this shouldn't happen... - return false; - } - if (!variable.isTypeVariable) { - return false; - } - if (variable.identifiers.length === 0) { - return false; - } - const typeParameter = variable.identifiers[0].parent; - if ((typeParameter === null || typeParameter === void 0 ? void 0 : typeParameter.type) !== utils_1.AST_NODE_TYPES.TSTypeParameter) { - return false; - } - const typeParameterDecl = typeParameter.parent; - if ((typeParameterDecl === null || typeParameterDecl === void 0 ? void 0 : typeParameterDecl.type) !== utils_1.AST_NODE_TYPES.TSTypeParameterDeclaration) { - return false; - } - const classDecl = typeParameterDecl.parent; - return (classDecl === null || classDecl === void 0 ? void 0 : classDecl.type) === utils_1.AST_NODE_TYPES.ClassDeclaration; - } - function isGenericOfAStaticMethodShadow(variable, shadowed) { - return (isGenericOfStaticMethod(variable) && isGenericOfClassDecl(shadowed)); - } - function isImportDeclaration(definition) { - return definition.type === utils_1.AST_NODE_TYPES.ImportDeclaration; - } - function isExternalModuleDeclarationWithName(scope, name) { - return (scope.type === scope_manager_1.ScopeType.tsModule && - scope.block.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration && - scope.block.id.type === utils_1.AST_NODE_TYPES.Literal && - scope.block.id.value === name); - } - function isExternalDeclarationMerging(scope, variable, shadowed) { - var _a; - const [firstDefinition] = shadowed.defs; - const [secondDefinition] = variable.defs; - return (isTypeImport(firstDefinition) && - isImportDeclaration(firstDefinition.parent) && - isExternalModuleDeclarationWithName(scope, firstDefinition.parent.source.value) && - secondDefinition.node.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration && - ((_a = secondDefinition.node.parent) === null || _a === void 0 ? void 0 : _a.type) === - utils_1.AST_NODE_TYPES.ExportNamedDeclaration); - } - /** - * Check if variable name is allowed. - * @param variable The variable to check. - * @returns Whether or not the variable name is allowed. - */ - function isAllowed(variable) { - return options.allow.indexOf(variable.name) !== -1; - } - /** - * Checks if a variable of the class name in the class scope of ClassDeclaration. - * - * ClassDeclaration creates two variables of its name into its outer scope and its class scope. - * So we should ignore the variable in the class scope. - * @param variable The variable to check. - * @returns Whether or not the variable of the class name in the class scope of ClassDeclaration. - */ - function isDuplicatedClassNameVariable(variable) { - const block = variable.scope.block; - return (block.type === utils_1.AST_NODE_TYPES.ClassDeclaration && - block.id === variable.identifiers[0]); - } - /** - * Checks if a variable of the class name in the class scope of TSEnumDeclaration. - * - * TSEnumDeclaration creates two variables of its name into its outer scope and its class scope. - * So we should ignore the variable in the class scope. - * @param variable The variable to check. - * @returns Whether or not the variable of the class name in the class scope of TSEnumDeclaration. - */ - function isDuplicatedEnumNameVariable(variable) { - const block = variable.scope.block; - return (block.type === utils_1.AST_NODE_TYPES.TSEnumDeclaration && - block.id === variable.identifiers[0]); - } - /** - * Checks whether or not a given location is inside of the range of a given node. - * @param node An node to check. - * @param location A location to check. - * @returns `true` if the location is inside of the range of the node. - */ - function isInRange(node, location) { - return node && node.range[0] <= location && location <= node.range[1]; - } - /** - * Searches from the current node through its ancestry to find a matching node. - * @param node a node to get. - * @param match a callback that checks whether or not the node verifies its condition or not. - * @returns the matching node. - */ - function findSelfOrAncestor(node, match) { - let currentNode = node; - while (currentNode && !match(currentNode)) { - currentNode = currentNode.parent; - } - return currentNode; - } - /** - * Finds function's outer scope. - * @param scope Function's own scope. - * @returns Function's outer scope. - */ - function getOuterScope(scope) { - const upper = scope.upper; - if ((upper === null || upper === void 0 ? void 0 : upper.type) === 'function-expression-name') { - return upper.upper; - } - return upper; - } - /** - * Checks if a variable and a shadowedVariable have the same init pattern ancestor. - * @param variable a variable to check. - * @param shadowedVariable a shadowedVariable to check. - * @returns Whether or not the variable and the shadowedVariable have the same init pattern ancestor. - */ - function isInitPatternNode(variable, shadowedVariable) { - var _a, _b, _c, _d; - const outerDef = shadowedVariable.defs[0]; - if (!outerDef) { - return false; - } - const { variableScope } = variable.scope; - if (!((variableScope.block.type === - utils_1.AST_NODE_TYPES.ArrowFunctionExpression || - variableScope.block.type === utils_1.AST_NODE_TYPES.FunctionExpression) && - getOuterScope(variableScope) === shadowedVariable.scope)) { - return false; - } - const fun = variableScope.block; - const { parent } = fun; - const callExpression = findSelfOrAncestor(parent, node => node.type === utils_1.AST_NODE_TYPES.CallExpression); - if (!callExpression) { - return false; - } - let node = outerDef.name; - const location = callExpression.range[1]; - while (node) { - if (node.type === utils_1.AST_NODE_TYPES.VariableDeclarator) { - if (isInRange(node.init, location)) { - return true; - } - if ((((_b = (_a = node.parent) === null || _a === void 0 ? void 0 : _a.parent) === null || _b === void 0 ? void 0 : _b.type) === utils_1.AST_NODE_TYPES.ForInStatement || - ((_d = (_c = node.parent) === null || _c === void 0 ? void 0 : _c.parent) === null || _d === void 0 ? void 0 : _d.type) === utils_1.AST_NODE_TYPES.ForOfStatement) && - isInRange(node.parent.parent.right, location)) { - return true; - } - break; - } - else if (node.type === utils_1.AST_NODE_TYPES.AssignmentPattern) { - if (isInRange(node.right, location)) { - return true; - } - } - else if ([ - utils_1.AST_NODE_TYPES.FunctionDeclaration, - utils_1.AST_NODE_TYPES.ClassDeclaration, - utils_1.AST_NODE_TYPES.FunctionExpression, - utils_1.AST_NODE_TYPES.ClassExpression, - utils_1.AST_NODE_TYPES.ArrowFunctionExpression, - utils_1.AST_NODE_TYPES.CatchClause, - utils_1.AST_NODE_TYPES.ImportDeclaration, - utils_1.AST_NODE_TYPES.ExportNamedDeclaration, - ].includes(node.type)) { - break; - } - node = node.parent; - } - return false; - } - /** - * Checks if a variable is inside the initializer of scopeVar. - * - * To avoid reporting at declarations such as `var a = function a() {};`. - * But it should report `var a = function(a) {};` or `var a = function() { function a() {} };`. - * @param variable The variable to check. - * @param scopeVar The scope variable to look for. - * @returns Whether or not the variable is inside initializer of scopeVar. - */ - function isOnInitializer(variable, scopeVar) { - var _a; - const outerScope = scopeVar.scope; - const outerDef = scopeVar.defs[0]; - const outer = (_a = outerDef === null || outerDef === void 0 ? void 0 : outerDef.parent) === null || _a === void 0 ? void 0 : _a.range; - const innerScope = variable.scope; - const innerDef = variable.defs[0]; - const inner = innerDef === null || innerDef === void 0 ? void 0 : innerDef.name.range; - return !!(outer && - inner && - outer[0] < inner[0] && - inner[1] < outer[1] && - ((innerDef.type === scope_manager_1.DefinitionType.FunctionName && - innerDef.node.type === utils_1.AST_NODE_TYPES.FunctionExpression) || - innerDef.node.type === utils_1.AST_NODE_TYPES.ClassExpression) && - outerScope === innerScope.upper); - } - /** - * Get a range of a variable's identifier node. - * @param variable The variable to get. - * @returns The range of the variable's identifier node. - */ - function getNameRange(variable) { - const def = variable.defs[0]; - return def === null || def === void 0 ? void 0 : def.name.range; - } - /** - * Checks if a variable is in TDZ of scopeVar. - * @param variable The variable to check. - * @param scopeVar The variable of TDZ. - * @returns Whether or not the variable is in TDZ of scopeVar. - */ - function isInTdz(variable, scopeVar) { - const outerDef = scopeVar.defs[0]; - const inner = getNameRange(variable); - const outer = getNameRange(scopeVar); - return !!(inner && - outer && - inner[1] < outer[0] && - // Excepts FunctionDeclaration if is {"hoist":"function"}. - (options.hoist !== 'functions' || - !outerDef || - outerDef.node.type !== utils_1.AST_NODE_TYPES.FunctionDeclaration)); - } - /** - * Get declared line and column of a variable. - * @param variable The variable to get. - * @returns The declared line and column of the variable. - */ - function getDeclaredLocation(variable) { - const identifier = variable.identifiers[0]; - if (identifier) { - return { - global: false, - line: identifier.loc.start.line, - column: identifier.loc.start.column + 1, - }; - } - else { - return { - global: true, - }; - } - } - /** - * Checks the current context for shadowed variables. - * @param {Scope} scope Fixme - */ - function checkForShadows(scope) { - // ignore global augmentation - if (isGlobalAugmentation(scope)) { - return; - } - const variables = scope.variables; - for (const variable of variables) { - // ignore "arguments" - if (variable.identifiers.length === 0) { - continue; - } - // this params are pseudo-params that cannot be shadowed - if (isThisParam(variable)) { - continue; - } - // ignore variables of a class name in the class scope of ClassDeclaration - if (isDuplicatedClassNameVariable(variable)) { - continue; - } - // ignore variables of a class name in the class scope of ClassDeclaration - if (isDuplicatedEnumNameVariable(variable)) { - continue; - } - // ignore configured allowed names - if (isAllowed(variable)) { - continue; - } - // Gets shadowed variable. - const shadowed = scope.upper - ? utils_1.ASTUtils.findVariable(scope.upper, variable.name) - : null; - if (!shadowed) { - continue; - } - // ignore type value variable shadowing if configured - if (isTypeValueShadow(variable, shadowed)) { - continue; - } - // ignore function type parameter name shadowing if configured - if (isFunctionTypeParameterNameValueShadow(variable, shadowed)) { - continue; - } - // ignore static class method generic shadowing class generic - // this is impossible for the scope analyser to understand - // so we have to handle this manually in this rule - if (isGenericOfAStaticMethodShadow(variable, shadowed)) { - continue; - } - if (isExternalDeclarationMerging(scope, variable, shadowed)) { - continue; - } - const isESLintGlobal = 'writeable' in shadowed; - if ((shadowed.identifiers.length > 0 || - (options.builtinGlobals && isESLintGlobal)) && - !isOnInitializer(variable, shadowed) && - !(options.ignoreOnInitialization && - isInitPatternNode(variable, shadowed)) && - !(options.hoist !== 'all' && isInTdz(variable, shadowed))) { - const location = getDeclaredLocation(shadowed); - context.report(Object.assign({ node: variable.identifiers[0] }, (location.global - ? { - messageId: 'noShadowGlobal', - data: { - name: variable.name, - }, - } - : { - messageId: 'noShadow', - data: { - name: variable.name, - shadowedLine: location.line, - shadowedColumn: location.column, - }, - }))); - } - } - } - return { - 'Program:exit'() { - const globalScope = context.getScope(); - const stack = globalScope.childScopes.slice(); - while (stack.length) { - const scope = stack.pop(); - stack.push(...scope.childScopes); - checkForShadows(scope); - } - }, - }; - }, -}); -//# sourceMappingURL=no-shadow.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map deleted file mode 100644 index 86e190a4..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-shadow.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-shadow.js","sourceRoot":"","sources":["../../src/rules/no-shadow.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AI,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,IAC1B,CAAC,QAAQ,CAAC,MAAM;wBACjB,CAAC,CAAC;4BACE,SAAS,EAAE,gBAAgB;4BAC3B,IAAI,EAAE;gCACJ,IAAI,EAAE,QAAQ,CAAC,IAAI;6BACpB;yBACF;wBACH,CAAC,CAAC;4BACE,SAAS,EAAE,UAAU;4BACrB,IAAI,EAAE;gCACJ,IAAI,EAAE,QAAQ,CAAC,IAAI;gCACnB,YAAY,EAAE,QAAQ,CAAC,IAAI;gCAC3B,cAAc,EAAE,QAAQ,CAAC,MAAM;6BAChC;yBACF,CAAC,EACN,CAAC;iBACJ;aACF;QACH,CAAC;QAED,OAAO;YACL,cAAc;gBACZ,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;gBACvC,MAAM,KAAK,GAAG,WAAW,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;gBAE9C,OAAO,KAAK,CAAC,MAAM,EAAE;oBACnB,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,EAAG,CAAC;oBAE3B,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC;oBACjC,eAAe,CAAC,KAAK,CAAC,CAAC;iBACxB;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js deleted file mode 100644 index 56789674..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-this-alias', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow aliasing `this`', - recommended: 'error', - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: { - allowDestructuring: { - description: 'Whether to ignore destructurings, such as `const { props, state } = this`.', - type: 'boolean', - }, - allowedNames: { - description: 'Names to ignore, such as ["self"] for `const self = this;`.', - type: 'array', - items: { - type: 'string', - }, - }, - }, - }, - ], - messages: { - thisAssignment: "Unexpected aliasing of 'this' to local variable.", - thisDestructure: "Unexpected aliasing of members of 'this' to local variables.", - }, - }, - defaultOptions: [ - { - allowDestructuring: true, - allowedNames: [], - }, - ], - create(context, [{ allowDestructuring, allowedNames }]) { - return { - "VariableDeclarator[init.type='ThisExpression'], AssignmentExpression[right.type='ThisExpression']"(node) { - const id = node.type === utils_1.AST_NODE_TYPES.VariableDeclarator ? node.id : node.left; - if (allowDestructuring && id.type !== utils_1.AST_NODE_TYPES.Identifier) { - return; - } - const hasAllowedName = id.type === utils_1.AST_NODE_TYPES.Identifier - ? allowedNames.includes(id.name) - : false; - if (!hasAllowedName) { - context.report({ - node: id, - messageId: id.type === utils_1.AST_NODE_TYPES.Identifier - ? 'thisAssignment' - : 'thisDestructure', - }); - } - }, - }; - }, -}); -//# sourceMappingURL=no-this-alias.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js.map deleted file mode 100644 index 7fc701a0..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-this-alias.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-this-alias.js","sourceRoot":"","sources":["../../src/rules/no-this-alias.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAUhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,0BAA0B;YACvC,WAAW,EAAE,OAAO;SACrB;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,kBAAkB,EAAE;wBAClB,WAAW,EACT,4EAA4E;wBAC9E,IAAI,EAAE,SAAS;qBAChB;oBACD,YAAY,EAAE;wBACZ,WAAW,EACT,6DAA6D;wBAC/D,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;SACF;QACD,QAAQ,EAAE;YACR,cAAc,EAAE,kDAAkD;YAClE,eAAe,EACb,8DAA8D;SACjE;KACF;IACD,cAAc,EAAE;QACd;YACE,kBAAkB,EAAE,IAAI;YACxB,YAAY,EAAE,EAAE;SACjB;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,kBAAkB,EAAE,YAAY,EAAE,CAAC;QACpD,OAAO;YACL,mGAAmG,CACjG,IAAiE;gBAEjE,MAAM,EAAE,GACN,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;gBACxE,IAAI,kBAAkB,IAAI,EAAE,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAAE;oBAC/D,OAAO;iBACR;gBAED,MAAM,cAAc,GAClB,EAAE,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;oBACnC,CAAC,CAAC,YAAa,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC;oBACjC,CAAC,CAAC,KAAK,CAAC;gBACZ,IAAI,CAAC,cAAc,EAAE;oBACnB,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI,EAAE,EAAE;wBACR,SAAS,EACP,EAAE,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;4BACnC,CAAC,CAAC,gBAAgB;4BAClB,CAAC,CAAC,iBAAiB;qBACxB,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js deleted file mode 100644 index 00de31e8..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js +++ /dev/null @@ -1,129 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-throw-literal', - meta: { - type: 'problem', - docs: { - description: 'Disallow throwing literals as exceptions', - recommended: 'strict', - extendsBaseRule: true, - requiresTypeChecking: true, - }, - schema: [ - { - type: 'object', - properties: { - allowThrowingAny: { - type: 'boolean', - }, - allowThrowingUnknown: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - messages: { - object: 'Expected an error object to be thrown.', - undef: 'Do not throw undefined.', - }, - }, - defaultOptions: [ - { - allowThrowingAny: true, - allowThrowingUnknown: true, - }, - ], - create(context, [options]) { - const parserServices = util.getParserServices(context); - const program = parserServices.program; - const checker = program.getTypeChecker(); - function isErrorLike(type) { - var _a; - if (type.isIntersection()) { - return type.types.some(isErrorLike); - } - if (type.isUnion()) { - return type.types.every(isErrorLike); - } - const symbol = type.getSymbol(); - if (!symbol) { - return false; - } - if (symbol.getName() === 'Error') { - const declarations = (_a = symbol.getDeclarations()) !== null && _a !== void 0 ? _a : []; - for (const declaration of declarations) { - const sourceFile = declaration.getSourceFile(); - if (program.isSourceFileDefaultLibrary(sourceFile)) { - return true; - } - } - } - if (symbol.flags & (ts.SymbolFlags.Class | ts.SymbolFlags.Interface)) { - for (const baseType of checker.getBaseTypes(type)) { - if (isErrorLike(baseType)) { - return true; - } - } - } - return false; - } - function checkThrowArgument(node) { - if (node.type === utils_1.AST_NODE_TYPES.AwaitExpression || - node.type === utils_1.AST_NODE_TYPES.YieldExpression) { - return; - } - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - const type = checker.getTypeAtLocation(tsNode); - if (type.flags & ts.TypeFlags.Undefined) { - context.report({ node, messageId: 'undef' }); - return; - } - if (options.allowThrowingAny && util.isTypeAnyType(type)) { - return; - } - if (options.allowThrowingUnknown && util.isTypeUnknownType(type)) { - return; - } - if (isErrorLike(type)) { - return; - } - context.report({ node, messageId: 'object' }); - } - return { - ThrowStatement(node) { - if (node.argument) { - checkThrowArgument(node.argument); - } - }, - }; - }, -}); -//# sourceMappingURL=no-throw-literal.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js.map deleted file mode 100644 index 8390e43f..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-throw-literal.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-throw-literal.js","sourceRoot":"","sources":["../../src/rules/no-throw-literal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,+CAAiC;AAEjC,8CAAgC;AAWhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;YACvD,WAAW,EAAE,QAAQ;YACrB,eAAe,EAAE,IAAI;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,gBAAgB,EAAE;wBAChB,IAAI,EAAE,SAAS;qBAChB;oBACD,oBAAoB,EAAE;wBACpB,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,wCAAwC;YAChD,KAAK,EAAE,yBAAyB;SACjC;KACF;IACD,cAAc,EAAE;QACd;YACE,gBAAgB,EAAE,IAAI;YACtB,oBAAoB,EAAE,IAAI;SAC3B;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,OA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C7C,IACE,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe;gBAC5C,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe,EAC5C;gBACA,OAAO;aACR;YAED,MAAM,MAAM,GAAG,cAAc,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAC9D,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;YAE/C,IAAI,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE;gBACvC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC;gBAC7C,OAAO;aACR;YAED,IAAI,OAAO,CAAC,gBAAgB,IAAI,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE;gBACxD,OAAO;aACR;YAED,IAAI,OAAO,CAAC,oBAAoB,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE;gBAChE,OAAO;aACR;YAED,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE;gBACrB,OAAO;aACR;YAED,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC;QAChD,CAAC;QAED,OAAO;YACL,cAAc,CAAC,IAAI;gBACjB,IAAI,IAAI,CAAC,QAAQ,EAAE;oBACjB,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;iBACnC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js deleted file mode 100644 index b14a649a..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js +++ /dev/null @@ -1,274 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const enumValues = [ - 'always', - 'never', - 'in-unions', - 'in-intersections', - 'in-unions-and-intersections', -]; -exports.default = util.createRule({ - name: 'no-type-alias', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow type aliases', - // too opinionated to be recommended - recommended: false, - }, - messages: { - noTypeAlias: 'Type {{alias}} are not allowed.', - noCompositionAlias: '{{typeName}} in {{compositionType}} types are not allowed.', - }, - schema: [ - { - type: 'object', - properties: { - allowAliases: { - description: 'Whether to allow direct one-to-one type aliases.', - enum: enumValues, - }, - allowCallbacks: { - description: 'Whether to allow type aliases for callbacks.', - enum: ['always', 'never'], - }, - allowConditionalTypes: { - description: 'Whether to allow type aliases for conditional types.', - enum: ['always', 'never'], - }, - allowConstructors: { - description: 'Whether to allow type aliases with constructors.', - enum: ['always', 'never'], - }, - allowLiterals: { - description: 'Whether to allow type aliases with object literal types.', - enum: enumValues, - }, - allowMappedTypes: { - description: 'Whether to allow type aliases with mapped types.', - enum: enumValues, - }, - allowTupleTypes: { - description: 'Whether to allow type aliases with tuple types.', - enum: enumValues, - }, - allowGenerics: { - description: 'Whether to allow type aliases with generic types.', - enum: ['always', 'never'], - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - allowAliases: 'never', - allowCallbacks: 'never', - allowConditionalTypes: 'never', - allowConstructors: 'never', - allowLiterals: 'never', - allowMappedTypes: 'never', - allowTupleTypes: 'never', - allowGenerics: 'never', - }, - ], - create(context, [{ allowAliases, allowCallbacks, allowConditionalTypes, allowConstructors, allowLiterals, allowMappedTypes, allowTupleTypes, allowGenerics, },]) { - const unions = ['always', 'in-unions', 'in-unions-and-intersections']; - const intersections = [ - 'always', - 'in-intersections', - 'in-unions-and-intersections', - ]; - const compositions = [ - 'in-unions', - 'in-intersections', - 'in-unions-and-intersections', - ]; - const aliasTypes = new Set([ - utils_1.AST_NODE_TYPES.TSArrayType, - utils_1.AST_NODE_TYPES.TSImportType, - utils_1.AST_NODE_TYPES.TSTypeReference, - utils_1.AST_NODE_TYPES.TSLiteralType, - utils_1.AST_NODE_TYPES.TSTypeQuery, - utils_1.AST_NODE_TYPES.TSIndexedAccessType, - utils_1.AST_NODE_TYPES.TSTemplateLiteralType, - ]); - /** - * Determines if the composition type is supported by the allowed flags. - * @param isTopLevel a flag indicating this is the top level node. - * @param compositionType the composition type (either TSUnionType or TSIntersectionType) - * @param allowed the currently allowed flags. - */ - function isSupportedComposition(isTopLevel, compositionType, allowed) { - return (!compositions.includes(allowed) || - (!isTopLevel && - ((compositionType === utils_1.AST_NODE_TYPES.TSUnionType && - unions.includes(allowed)) || - (compositionType === utils_1.AST_NODE_TYPES.TSIntersectionType && - intersections.includes(allowed))))); - } - /** - * Gets the message to be displayed based on the node type and whether the node is a top level declaration. - * @param node the location - * @param compositionType the type of composition this alias is part of (undefined if not - * part of a composition) - * @param isRoot a flag indicating we are dealing with the top level declaration. - * @param type the kind of type alias being validated. - */ - function reportError(node, compositionType, isRoot, type) { - if (isRoot) { - return context.report({ - node, - messageId: 'noTypeAlias', - data: { - alias: type.toLowerCase(), - }, - }); - } - return context.report({ - node, - messageId: 'noCompositionAlias', - data: { - compositionType: compositionType === utils_1.AST_NODE_TYPES.TSUnionType - ? 'union' - : 'intersection', - typeName: type, - }, - }); - } - const isValidTupleType = (type) => { - if (type.node.type === utils_1.AST_NODE_TYPES.TSTupleType) { - return true; - } - if (type.node.type === utils_1.AST_NODE_TYPES.TSTypeOperator) { - if (['keyof', 'readonly'].includes(type.node.operator) && - type.node.typeAnnotation && - type.node.typeAnnotation.type === utils_1.AST_NODE_TYPES.TSTupleType) { - return true; - } - } - return false; - }; - const isValidGeneric = (type) => { - return (type.node.type === utils_1.AST_NODE_TYPES.TSTypeReference && - type.node.typeParameters !== undefined); - }; - const checkAndReport = (optionValue, isTopLevel, type, label) => { - if (optionValue === 'never' || - !isSupportedComposition(isTopLevel, type.compositionType, optionValue)) { - reportError(type.node, type.compositionType, isTopLevel, label); - } - }; - /** - * Validates the node looking for aliases, callbacks and literals. - * @param type the type of composition this alias is part of (null if not - * part of a composition) - * @param isTopLevel a flag indicating this is the top level node. - */ - function validateTypeAliases(type, isTopLevel = false) { - if (type.node.type === utils_1.AST_NODE_TYPES.TSFunctionType) { - // callback - if (allowCallbacks === 'never') { - reportError(type.node, type.compositionType, isTopLevel, 'Callbacks'); - } - } - else if (type.node.type === utils_1.AST_NODE_TYPES.TSConditionalType) { - // conditional type - if (allowConditionalTypes === 'never') { - reportError(type.node, type.compositionType, isTopLevel, 'Conditional types'); - } - } - else if (type.node.type === utils_1.AST_NODE_TYPES.TSConstructorType) { - if (allowConstructors === 'never') { - reportError(type.node, type.compositionType, isTopLevel, 'Constructors'); - } - } - else if (type.node.type === utils_1.AST_NODE_TYPES.TSTypeLiteral) { - // literal object type - checkAndReport(allowLiterals, isTopLevel, type, 'Literals'); - } - else if (type.node.type === utils_1.AST_NODE_TYPES.TSMappedType) { - // mapped type - checkAndReport(allowMappedTypes, isTopLevel, type, 'Mapped types'); - } - else if (isValidTupleType(type)) { - // tuple types - checkAndReport(allowTupleTypes, isTopLevel, type, 'Tuple Types'); - } - else if (isValidGeneric(type)) { - if (allowGenerics === 'never') { - reportError(type.node, type.compositionType, isTopLevel, 'Generics'); - } - } - else if (type.node.type.endsWith(utils_1.AST_TOKEN_TYPES.Keyword) || - aliasTypes.has(type.node.type) || - (type.node.type === utils_1.AST_NODE_TYPES.TSTypeOperator && - (type.node.operator === 'keyof' || - (type.node.operator === 'readonly' && - type.node.typeAnnotation && - aliasTypes.has(type.node.typeAnnotation.type))))) { - // alias / keyword - checkAndReport(allowAliases, isTopLevel, type, 'Aliases'); - } - else { - // unhandled type - shouldn't happen - reportError(type.node, type.compositionType, isTopLevel, 'Unhandled'); - } - } - /** - * Flatten the given type into an array of its dependencies - */ - function getTypes(node, compositionType = null) { - if (node.type === utils_1.AST_NODE_TYPES.TSUnionType || - node.type === utils_1.AST_NODE_TYPES.TSIntersectionType) { - return node.types.reduce((acc, type) => { - acc.push(...getTypes(type, node.type)); - return acc; - }, []); - } - return [{ node, compositionType }]; - } - return { - TSTypeAliasDeclaration(node) { - const types = getTypes(node.typeAnnotation); - if (types.length === 1) { - // is a top level type annotation - validateTypeAliases(types[0], true); - } - else { - // is a composition type - types.forEach(type => { - validateTypeAliases(type); - }); - } - }, - }; - }, -}); -//# sourceMappingURL=no-type-alias.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js.map deleted file mode 100644 index cbca01f6..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-type-alias.js","sourceRoot":"","sources":["../../src/rules/no-type-alias.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA2E;AAE3E,8CAAgC;AAQhC,MAAM,UAAU,GAAa;IAC3B,QAAQ;IACR,OAAO;IACP,WAAW;IACX,kBAAkB;IAClB,6B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EACnB,kBAA0C,IAAI;YAE9C,IACE,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,WAAW;gBACxC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,EAC/C;gBACA,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAkB,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;oBACtD,GAAG,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;oBACvC,OAAO,GAAG,CAAC;gBACb,CAAC,EAAE,EAAE,CAAC,CAAC;aACR;YACD,OAAO,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC;QACrC,CAAC;QAED,OAAO;YACL,sBAAsB,CAAC,IAAI;gBACzB,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;gBAC5C,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;oBACtB,iCAAiC;oBACjC,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;iBACrC;qBAAM;oBACL,wBAAwB;oBACxB,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;wBACnB,mBAAmB,CAAC,IAAI,CAAC,CAAC;oBAC5B,CAAC,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js deleted file mode 100644 index 883935fa..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js +++ /dev/null @@ -1,228 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-unnecessary-boolean-literal-compare', - meta: { - docs: { - description: 'Disallow unnecessary equality comparisons against boolean literals', - recommended: 'strict', - requiresTypeChecking: true, - }, - fixable: 'code', - messages: { - direct: 'This expression unnecessarily compares a boolean value to a boolean instead of using it directly.', - negated: 'This expression unnecessarily compares a boolean value to a boolean instead of negating it.', - comparingNullableToTrueDirect: 'This expression unnecessarily compares a nullable boolean value to true instead of using it directly.', - comparingNullableToTrueNegated: 'This expression unnecessarily compares a nullable boolean value to true instead of negating it.', - comparingNullableToFalse: 'This expression unnecessarily compares a nullable boolean value to false instead of using the ?? operator to provide a default.', - }, - schema: [ - { - type: 'object', - properties: { - allowComparingNullableBooleansToTrue: { - description: 'Whether to allow comparisons between nullable boolean variables and `true`.', - type: 'boolean', - }, - allowComparingNullableBooleansToFalse: { - description: 'Whether to allow comparisons between nullable boolean variables and `false`.', - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - type: 'suggestion', - }, - defaultOptions: [ - { - allowComparingNullableBooleansToTrue: true, - allowComparingNullableBooleansToFalse: true, - }, - ], - create(context, [options]) { - const parserServices = util.getParserServices(context); - const checker = parserServices.program.getTypeChecker(); - const sourceCode = context.getSourceCode(); - function getBooleanComparison(node) { - const comparison = deconstructComparison(node); - if (!comparison) { - return undefined; - } - const expressionType = checker.getTypeAtLocation(parserServices.esTreeNodeToTSNodeMap.get(comparison.expression)); - if (isBooleanType(expressionType)) { - return Object.assign(Object.assign({}, comparison), { expressionIsNullableBoolean: false }); - } - if (isNullableBoolean(expressionType)) { - return Object.assign(Object.assign({}, comparison), { expressionIsNullableBoolean: true }); - } - return undefined; - } - function isBooleanType(expressionType) { - return tsutils.isTypeFlagSet(expressionType, ts.TypeFlags.Boolean | ts.TypeFlags.BooleanLiteral); - } - /** - * checks if the expressionType is a union that - * 1) contains at least one nullish type (null or undefined) - * 2) contains at least once boolean type (true or false or boolean) - * 3) does not contain any types besides nullish and boolean types - */ - function isNullableBoolean(expressionType) { - if (!expressionType.isUnion()) { - return false; - } - const { types } = expressionType; - const nonNullishTypes = types.filter(type => !tsutils.isTypeFlagSet(type, ts.TypeFlags.Undefined | ts.TypeFlags.Null)); - const hasNonNullishType = nonNullishTypes.length > 0; - if (!hasNonNullishType) { - return false; - } - const hasNullableType = nonNullishTypes.length < types.length; - if (!hasNullableType) { - return false; - } - const allNonNullishTypesAreBoolean = nonNullishTypes.every(isBooleanType); - if (!allNonNullishTypesAreBoolean) { - return false; - } - return true; - } - function deconstructComparison(node) { - const comparisonType = getEqualsKind(node.operator); - if (!comparisonType) { - return undefined; - } - for (const [against, expression] of [ - [node.right, node.left], - [node.left, node.right], - ]) { - if (against.type !== utils_1.AST_NODE_TYPES.Literal || - typeof against.value !== 'boolean') { - continue; - } - const { value: literalBooleanInComparison } = against; - const negated = !comparisonType.isPositive; - return { - literalBooleanInComparison, - expression, - negated, - }; - } - return undefined; - } - function nodeIsUnaryNegation(node) { - return (node.type === utils_1.AST_NODE_TYPES.UnaryExpression && - node.prefix && - node.operator === '!'); - } - return { - BinaryExpression(node) { - const comparison = getBooleanComparison(node); - if (comparison === undefined) { - return; - } - if (comparison.expressionIsNullableBoolean) { - if (comparison.literalBooleanInComparison && - options.allowComparingNullableBooleansToTrue) { - return; - } - if (!comparison.literalBooleanInComparison && - options.allowComparingNullableBooleansToFalse) { - return; - } - } - context.report({ - fix: function* (fixer) { - // 1. isUnaryNegation - parent negation - // 2. literalBooleanInComparison - is compared to literal boolean - // 3. negated - is expression negated - const isUnaryNegation = node.parent != null && nodeIsUnaryNegation(node.parent); - const shouldNegate = comparison.negated !== comparison.literalBooleanInComparison; - const mutatedNode = isUnaryNegation ? node.parent : node; - yield fixer.replaceText(mutatedNode, sourceCode.getText(comparison.expression)); - // if `isUnaryNegation === literalBooleanInComparison === !negated` is true - negate the expression - if (shouldNegate === isUnaryNegation) { - yield fixer.insertTextBefore(mutatedNode, '!'); - // if the expression `exp` is not a strong precedence node, wrap it in parentheses - if (!util.isStrongPrecedenceNode(comparison.expression)) { - yield fixer.insertTextBefore(mutatedNode, '('); - yield fixer.insertTextAfter(mutatedNode, ')'); - } - } - // if the expression `exp` is nullable, and we're not comparing to `true`, insert `?? true` - if (comparison.expressionIsNullableBoolean && - !comparison.literalBooleanInComparison) { - // provide the default `true` - yield fixer.insertTextBefore(mutatedNode, '('); - yield fixer.insertTextAfter(mutatedNode, ' ?? true)'); - } - }, - messageId: comparison.expressionIsNullableBoolean - ? comparison.literalBooleanInComparison - ? comparison.negated - ? 'comparingNullableToTrueNegated' - : 'comparingNullableToTrueDirect' - : 'comparingNullableToFalse' - : comparison.negated - ? 'negated' - : 'direct', - node, - }); - }, - }; - }, -}); -function getEqualsKind(operator) { - switch (operator) { - case '==': - return { - isPositive: true, - isStrict: false, - }; - case '===': - return { - isPositive: true, - isStrict: true, - }; - case '!=': - return { - isPositive: false, - isStrict: false, - }; - case '!==': - return { - isPositive: false, - isStrict: true, - }; - default: - return undefined; - } -} -//# sourceMappingURL=no-unnecessary-boolean-literal-compare.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map deleted file mode 100644 index d9406000..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-boolean-literal-compare.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unnecessary-boolean-literal-compare.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-boolean-literal-compare.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,iDAAmC;AACnC,+CAAiC;AAEjC,8CAAgC;AA0BhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,wCAAwC;IAC9C,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,oEAAoE;YACtE,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,MAAM,EACJ,mGAAmG;YACrG,OAAO,EACL,6FAA6F;YAC/F,6BAA6B,EAC3B,uGAAuG;YACzG,8BAA8B,EAC5B,iGAAiG;YACnG,wBAAwB,EACtB,iIAAiI;SACpI;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,oCAAoC,EAAE;wBACpC,WAAW,EACT,6EAA6E;wBAC/E,IAAI,EAAE,SAAS;qBAChB;oBACD,qCAAqC,EAAE;wBACrC,WAAW,EACT,8EAA8E;wBAChF,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,oBAAoB,EAAE,KAAK;aAC5B;SACF;QACD,IAAI,EAAE,YAAY;KACnB;IACD,cAAc,EAAE;QACd;YACE,oCAAoC,EAAE,IAAI;YAC1C,qCAAqC,EAAE,IAAI;SAC5C;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,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/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js deleted file mode 100644 index 725bf24d..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js +++ /dev/null @@ -1,496 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils_1 = require("tsutils"); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -// Truthiness utilities -// #region -const isTruthyLiteral = (type) => (0, tsutils_1.isBooleanLiteralType)(type, true) || ((0, tsutils_1.isLiteralType)(type) && !!type.value); -const isPossiblyFalsy = (type) => (0, tsutils_1.unionTypeParts)(type) - // PossiblyFalsy flag includes literal values, so exclude ones that - // are definitely truthy - .filter(t => !isTruthyLiteral(t)) - .some(type => (0, util_1.isTypeFlagSet)(type, ts.TypeFlags.PossiblyFalsy)); -const isPossiblyTruthy = (type) => (0, tsutils_1.unionTypeParts)(type).some(type => !(0, tsutils_1.isFalsyType)(type)); -// Nullish utilities -const nullishFlag = ts.TypeFlags.Undefined | ts.TypeFlags.Null; -const isNullishType = (type) => (0, util_1.isTypeFlagSet)(type, nullishFlag); -const isPossiblyNullish = (type) => (0, tsutils_1.unionTypeParts)(type).some(isNullishType); -const isAlwaysNullish = (type) => (0, tsutils_1.unionTypeParts)(type).every(isNullishType); -// isLiteralType only covers numbers and strings, this is a more exhaustive check. -const isLiteral = (type) => (0, tsutils_1.isBooleanLiteralType)(type, true) || - (0, tsutils_1.isBooleanLiteralType)(type, false) || - type.flags === ts.TypeFlags.Undefined || - type.flags === ts.TypeFlags.Null || - type.flags === ts.TypeFlags.Void || - (0, tsutils_1.isLiteralType)(type); -exports.default = (0, util_1.createRule)({ - name: 'no-unnecessary-condition', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow conditionals where the type is always truthy or always falsy', - recommended: 'strict', - requiresTypeChecking: true, - }, - schema: [ - { - type: 'object', - properties: { - allowConstantLoopConditions: { - description: 'Whether to ignore constant loop conditions, such as `while (true)`.', - type: 'boolean', - }, - allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: { - description: 'Whether to not error when running with a tsconfig that has strictNullChecks turned.', - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - fixable: 'code', - messages: { - alwaysTruthy: 'Unnecessary conditional, value is always truthy.', - alwaysFalsy: 'Unnecessary conditional, value is always falsy.', - alwaysTruthyFunc: 'This callback should return a conditional, but return is always truthy.', - alwaysFalsyFunc: 'This callback should return a conditional, but return is always falsy.', - neverNullish: 'Unnecessary conditional, expected left-hand side of `??` operator to be possibly null or undefined.', - alwaysNullish: 'Unnecessary conditional, left-hand side of `??` operator is always `null` or `undefined`.', - literalBooleanExpression: 'Unnecessary conditional, both sides of the expression are literal values.', - noOverlapBooleanExpression: 'Unnecessary conditional, the types have no overlap.', - never: 'Unnecessary conditional, value is `never`.', - neverOptionalChain: 'Unnecessary optional chain on a non-nullish value.', - noStrictNullCheck: 'This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.', - }, - }, - defaultOptions: [ - { - allowConstantLoopConditions: false, - allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false, - }, - ], - create(context, [{ allowConstantLoopConditions, allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing, },]) { - const service = (0, util_1.getParserServices)(context); - const checker = service.program.getTypeChecker(); - const sourceCode = context.getSourceCode(); - const compilerOptions = service.program.getCompilerOptions(); - const isStrictNullChecks = (0, tsutils_1.isStrictCompilerOptionEnabled)(compilerOptions, 'strictNullChecks'); - if (!isStrictNullChecks && - allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing !== true) { - context.report({ - loc: { - start: { line: 0, column: 0 }, - end: { line: 0, column: 0 }, - }, - messageId: 'noStrictNullCheck', - }); - } - function getNodeType(node) { - const tsNode = service.esTreeNodeToTSNodeMap.get(node); - return (0, util_1.getConstrainedTypeAtLocation)(checker, tsNode); - } - function nodeIsArrayType(node) { - const nodeType = getNodeType(node); - return checker.isArrayType(nodeType); - } - function nodeIsTupleType(node) { - const nodeType = getNodeType(node); - return checker.isTupleType(nodeType); - } - function isArrayIndexExpression(node) { - return ( - // Is an index signature - node.type === utils_1.AST_NODE_TYPES.MemberExpression && - node.computed && - // ...into an array type - (nodeIsArrayType(node.object) || - // ... or a tuple type - (nodeIsTupleType(node.object) && - // Exception: literal index into a tuple - will have a sound type - node.property.type !== utils_1.AST_NODE_TYPES.Literal))); - } - /** - * Checks if a conditional node is necessary: - * if the type of the node is always true or always false, it's not necessary. - */ - function checkNode(node, isUnaryNotArgument = false) { - // Check if the node is Unary Negation expression and handle it - if (node.type === utils_1.AST_NODE_TYPES.UnaryExpression && - node.operator === '!') { - return checkNode(node.argument, true); - } - // Since typescript array index signature types don't represent the - // possibility of out-of-bounds access, if we're indexing into an array - // just skip the check, to avoid false positives - if (isArrayIndexExpression(node)) { - return; - } - // When checking logical expressions, only check the right side - // as the left side has been checked by checkLogicalExpressionForUnnecessaryConditionals - // - // Unless the node is nullish coalescing, as it's common to use patterns like `nullBool ?? true` to to strict - // boolean checks if we inspect the right here, it'll usually be a constant condition on purpose. - // In this case it's better to inspect the type of the expression as a whole. - if (node.type === utils_1.AST_NODE_TYPES.LogicalExpression && - node.operator !== '??') { - return checkNode(node.right); - } - const type = getNodeType(node); - // Conditional is always necessary if it involves: - // `any` or `unknown` or a naked type variable - if ((0, tsutils_1.unionTypeParts)(type).some(part => (0, util_1.isTypeAnyType)(part) || - (0, util_1.isTypeUnknownType)(part) || - (0, util_1.isTypeFlagSet)(part, ts.TypeFlags.TypeVariable))) { - return; - } - let messageId = null; - if ((0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Never)) { - messageId = 'never'; - } - else if (!isPossiblyTruthy(type)) { - messageId = !isUnaryNotArgument ? 'alwaysFalsy' : 'alwaysTruthy'; - } - else if (!isPossiblyFalsy(type)) { - messageId = !isUnaryNotArgument ? 'alwaysTruthy' : 'alwaysFalsy'; - } - if (messageId) { - context.report({ node, messageId }); - } - } - function checkNodeForNullish(node) { - const type = getNodeType(node); - // Conditional is always necessary if it involves `any`, `unknown` or a naked type parameter - if ((0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Any | ts.TypeFlags.Unknown | ts.TypeFlags.TypeParameter)) { - return; - } - let messageId = null; - if ((0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Never)) { - messageId = 'never'; - } - else if (!isPossiblyNullish(type)) { - // Since typescript array index signature types don't represent the - // possibility of out-of-bounds access, if we're indexing into an array - // just skip the check, to avoid false positives - if (!isArrayIndexExpression(node) && - !(node.type === utils_1.AST_NODE_TYPES.ChainExpression && - node.expression.type !== utils_1.AST_NODE_TYPES.TSNonNullExpression && - optionChainContainsOptionArrayIndex(node.expression))) { - messageId = 'neverNullish'; - } - } - else if (isAlwaysNullish(type)) { - messageId = 'alwaysNullish'; - } - if (messageId) { - context.report({ node, messageId }); - } - } - /** - * Checks that a binary expression is necessarily conditional, reports otherwise. - * If both sides of the binary expression are literal values, it's not a necessary condition. - * - * NOTE: It's also unnecessary if the types that don't overlap at all - * but that case is handled by the Typescript compiler itself. - * Known exceptions: - * * https://github.com/microsoft/TypeScript/issues/32627 - * * https://github.com/microsoft/TypeScript/issues/37160 (handled) - */ - const BOOL_OPERATORS = new Set([ - '<', - '>', - '<=', - '>=', - '==', - '===', - '!=', - '!==', - ]); - function checkIfBinaryExpressionIsNecessaryConditional(node) { - if (!BOOL_OPERATORS.has(node.operator)) { - return; - } - const leftType = getNodeType(node.left); - const rightType = getNodeType(node.right); - if (isLiteral(leftType) && isLiteral(rightType)) { - context.report({ node, messageId: 'literalBooleanExpression' }); - return; - } - // Workaround for https://github.com/microsoft/TypeScript/issues/37160 - if (isStrictNullChecks) { - const UNDEFINED = ts.TypeFlags.Undefined; - const NULL = ts.TypeFlags.Null; - const VOID = ts.TypeFlags.Void; - const isComparable = (type, flag) => { - // Allow comparison to `any`, `unknown` or a naked type parameter. - flag |= - ts.TypeFlags.Any | - ts.TypeFlags.Unknown | - ts.TypeFlags.TypeParameter; - // Allow loose comparison to nullish values. - if (node.operator === '==' || node.operator === '!=') { - flag |= NULL | UNDEFINED | VOID; - } - return (0, util_1.isTypeFlagSet)(type, flag); - }; - if ((leftType.flags === UNDEFINED && - !isComparable(rightType, UNDEFINED | VOID)) || - (rightType.flags === UNDEFINED && - !isComparable(leftType, UNDEFINED | VOID)) || - (leftType.flags === NULL && !isComparable(rightType, NULL)) || - (rightType.flags === NULL && !isComparable(leftType, NULL))) { - context.report({ node, messageId: 'noOverlapBooleanExpression' }); - return; - } - } - } - /** - * Checks that a logical expression contains a boolean, reports otherwise. - */ - function checkLogicalExpressionForUnnecessaryConditionals(node) { - if (node.operator === '??') { - checkNodeForNullish(node.left); - return; - } - // Only checks the left side, since the right side might not be "conditional" at all. - // The right side will be checked if the LogicalExpression is used in a conditional context - checkNode(node.left); - } - /** - * Checks that a testable expression of a loop is necessarily conditional, reports otherwise. - */ - function checkIfLoopIsNecessaryConditional(node) { - if (node.test == null) { - // e.g. `for(;;)` - return; - } - /** - * Allow: - * while (true) {} - * for (;true;) {} - * do {} while (true) - */ - if (allowConstantLoopConditions && - (0, tsutils_1.isBooleanLiteralType)(getNodeType(node.test), true)) { - return; - } - checkNode(node.test); - } - const ARRAY_PREDICATE_FUNCTIONS = new Set([ - 'filter', - 'find', - 'some', - 'every', - ]); - function isArrayPredicateFunction(node) { - const { callee } = node; - return ( - // looks like `something.filter` or `something.find` - callee.type === utils_1.AST_NODE_TYPES.MemberExpression && - callee.property.type === utils_1.AST_NODE_TYPES.Identifier && - ARRAY_PREDICATE_FUNCTIONS.has(callee.property.name) && - // and the left-hand side is an array, according to the types - (nodeIsArrayType(callee.object) || nodeIsTupleType(callee.object))); - } - function checkCallExpression(node) { - // If this is something like arr.filter(x => /*condition*/), check `condition` - if (isArrayPredicateFunction(node) && node.arguments.length) { - const callback = node.arguments[0]; - // Inline defined functions - if ((callback.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression || - callback.type === utils_1.AST_NODE_TYPES.FunctionExpression) && - callback.body) { - // Two special cases, where we can directly check the node that's returned: - // () => something - if (callback.body.type !== utils_1.AST_NODE_TYPES.BlockStatement) { - return checkNode(callback.body); - } - // () => { return something; } - const callbackBody = callback.body.body; - if (callbackBody.length === 1 && - callbackBody[0].type === utils_1.AST_NODE_TYPES.ReturnStatement && - callbackBody[0].argument) { - return checkNode(callbackBody[0].argument); - } - // Potential enhancement: could use code-path analysis to check - // any function with a single return statement - // (Value to complexity ratio is dubious however) - } - // Otherwise just do type analysis on the function as a whole. - const returnTypes = (0, tsutils_1.getCallSignaturesOfType)(getNodeType(callback)).map(sig => sig.getReturnType()); - /* istanbul ignore if */ if (returnTypes.length === 0) { - // Not a callable function - return; - } - // Predicate is always necessary if it involves `any` or `unknown` - if (returnTypes.some(t => (0, util_1.isTypeAnyType)(t) || (0, util_1.isTypeUnknownType)(t))) { - return; - } - if (!returnTypes.some(isPossiblyFalsy)) { - return context.report({ - node: callback, - messageId: 'alwaysTruthyFunc', - }); - } - if (!returnTypes.some(isPossiblyTruthy)) { - return context.report({ - node: callback, - messageId: 'alwaysFalsyFunc', - }); - } - } - } - // Recursively searches an optional chain for an array index expression - // Has to search the entire chain, because an array index will "infect" the rest of the types - // Example: - // ``` - // [{x: {y: "z"} }][n] // type is {x: {y: "z"}} - // ?.x // type is {y: "z"} - // ?.y // This access is considered "unnecessary" according to the types - // ``` - function optionChainContainsOptionArrayIndex(node) { - const lhsNode = node.type === utils_1.AST_NODE_TYPES.CallExpression ? node.callee : node.object; - if (node.optional && isArrayIndexExpression(lhsNode)) { - return true; - } - if (lhsNode.type === utils_1.AST_NODE_TYPES.MemberExpression || - lhsNode.type === utils_1.AST_NODE_TYPES.CallExpression) { - return optionChainContainsOptionArrayIndex(lhsNode); - } - return false; - } - function isNullablePropertyType(objType, propertyType) { - if (propertyType.isUnion()) { - return propertyType.types.some(type => isNullablePropertyType(objType, type)); - } - if (propertyType.isNumberLiteral() || propertyType.isStringLiteral()) { - const propType = (0, util_1.getTypeOfPropertyOfName)(checker, objType, propertyType.value.toString()); - if (propType) { - return (0, util_1.isNullableType)(propType, { allowUndefined: true }); - } - } - const typeName = (0, util_1.getTypeName)(checker, propertyType); - return !!((typeName === 'string' && - checker.getIndexInfoOfType(objType, ts.IndexKind.String)) || - (typeName === 'number' && - checker.getIndexInfoOfType(objType, ts.IndexKind.Number))); - } - // Checks whether a member expression is nullable or not regardless of it's previous node. - // Example: - // ``` - // // 'bar' is nullable if 'foo' is null. - // // but this function checks regardless of 'foo' type, so returns 'true'. - // declare const foo: { bar : { baz: string } } | null - // foo?.bar; - // ``` - function isNullableOriginFromPrev(node) { - const prevType = getNodeType(node.object); - const property = node.property; - if (prevType.isUnion() && (0, util_1.isIdentifier)(property)) { - const isOwnNullable = prevType.types.some(type => { - if (node.computed) { - const propertyType = getNodeType(node.property); - return isNullablePropertyType(type, propertyType); - } - const propType = (0, util_1.getTypeOfPropertyOfName)(checker, type, property.name); - if (propType) { - return (0, util_1.isNullableType)(propType, { allowUndefined: true }); - } - return !!checker.getIndexInfoOfType(type, ts.IndexKind.String); - }); - return (!isOwnNullable && (0, util_1.isNullableType)(prevType, { allowUndefined: true })); - } - return false; - } - function isOptionableExpression(node) { - const type = getNodeType(node); - const isOwnNullable = node.type === utils_1.AST_NODE_TYPES.MemberExpression - ? !isNullableOriginFromPrev(node) - : true; - const possiblyVoid = (0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Void); - return ((0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Any | ts.TypeFlags.Unknown) || - (isOwnNullable && - ((0, util_1.isNullableType)(type, { allowUndefined: true }) || possiblyVoid))); - } - function checkOptionalChain(node, beforeOperator, fix) { - // We only care if this step in the chain is optional. If just descend - // from an optional chain, then that's fine. - if (!node.optional) { - return; - } - // Since typescript array index signature types don't represent the - // possibility of out-of-bounds access, if we're indexing into an array - // just skip the check, to avoid false positives - if (optionChainContainsOptionArrayIndex(node)) { - return; - } - const nodeToCheck = node.type === utils_1.AST_NODE_TYPES.CallExpression ? node.callee : node.object; - if (isOptionableExpression(nodeToCheck)) { - return; - } - const questionDotOperator = (0, util_1.nullThrows)(sourceCode.getTokenAfter(beforeOperator, token => token.type === utils_1.AST_TOKEN_TYPES.Punctuator && token.value === '?.'), util_1.NullThrowsReasons.MissingToken('operator', node.type)); - context.report({ - node, - loc: questionDotOperator.loc, - messageId: 'neverOptionalChain', - fix(fixer) { - return fixer.replaceText(questionDotOperator, fix); - }, - }); - } - function checkOptionalMemberExpression(node) { - checkOptionalChain(node, node.object, node.computed ? '' : '.'); - } - function checkOptionalCallExpression(node) { - checkOptionalChain(node, node.callee, ''); - } - function checkAssignmentExpression(node) { - // Similar to checkLogicalExpressionForUnnecessaryConditionals, since - // a ||= b is equivalent to a || (a = b) - if (['||=', '&&='].includes(node.operator)) { - checkNode(node.left); - } - else if (node.operator === '??=') { - checkNodeForNullish(node.left); - } - } - return { - AssignmentExpression: checkAssignmentExpression, - BinaryExpression: checkIfBinaryExpressionIsNecessaryConditional, - CallExpression: checkCallExpression, - ConditionalExpression: (node) => checkNode(node.test), - DoWhileStatement: checkIfLoopIsNecessaryConditional, - ForStatement: checkIfLoopIsNecessaryConditional, - IfStatement: (node) => checkNode(node.test), - LogicalExpression: checkLogicalExpressionForUnnecessaryConditionals, - WhileStatement: checkIfLoopIsNecessaryConditional, - 'MemberExpression[optional = true]': checkOptionalMemberExpression, - 'CallExpression[optional = true]': checkOptionalCallExpression, - }; - }, -}); -//# sourceMappingURL=no-unnecessary-condition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map deleted file mode 100644 index 0051e603..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unnecessary-condition.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-condition.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA2E;AAC3E,qCAOiB;AACjB,+CAAiC;AAEjC,kCAaiB;AAEjB,uBAAuB;AACvB,UAAU;AACV,MAAM,eAAe,GAAG,CAAC,IAAa,EAAW,EAAE,CACjD,IAAA,8BAAoB,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAA,uBAAa,EAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAE5E,MAAM,eAAe,GAAG,CAAC,IAAa,EAAW,EAAE,CACjD,IAAA,wBAAc,EAAC,IAAI,CAAC;IAClB,mEAAmE;IACnE,wBAAwB;KACvB,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;KAChC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAA,oBAAa,EAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,aAAa,CA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CAAiC,EAAE,2BAA2B;SAC/D,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js deleted file mode 100644 index 4a56bd8e..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js +++ /dev/null @@ -1,151 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-unnecessary-qualifier', - meta: { - docs: { - description: 'Disallow unnecessary namespace qualifiers', - recommended: false, - requiresTypeChecking: true, - }, - fixable: 'code', - messages: { - unnecessaryQualifier: "Qualifier is unnecessary since '{{ name }}' is in scope.", - }, - schema: [], - type: 'suggestion', - }, - defaultOptions: [], - create(context) { - const namespacesInScope = []; - let currentFailedNamespaceExpression = null; - const parserServices = util.getParserServices(context); - const esTreeNodeToTSNodeMap = parserServices.esTreeNodeToTSNodeMap; - const program = parserServices.program; - const checker = program.getTypeChecker(); - const sourceCode = context.getSourceCode(); - function tryGetAliasedSymbol(symbol, checker) { - return tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias) - ? checker.getAliasedSymbol(symbol) - : null; - } - function symbolIsNamespaceInScope(symbol) { - var _a; - const symbolDeclarations = (_a = symbol.getDeclarations()) !== null && _a !== void 0 ? _a : []; - if (symbolDeclarations.some(decl => namespacesInScope.some(ns => ns === decl))) { - return true; - } - const alias = tryGetAliasedSymbol(symbol, checker); - return alias != null && symbolIsNamespaceInScope(alias); - } - function getSymbolInScope(node, flags, name) { - // TODO:PERF `getSymbolsInScope` gets a long list. Is there a better way? - const scope = checker.getSymbolsInScope(node, flags); - return scope.find(scopeSymbol => scopeSymbol.name === name); - } - function symbolsAreEqual(accessed, inScope) { - return accessed === checker.getExportSymbolOfSymbol(inScope); - } - function qualifierIsUnnecessary(qualifier, name) { - const tsQualifier = esTreeNodeToTSNodeMap.get(qualifier); - const tsName = esTreeNodeToTSNodeMap.get(name); - const namespaceSymbol = checker.getSymbolAtLocation(tsQualifier); - if (namespaceSymbol === undefined || - !symbolIsNamespaceInScope(namespaceSymbol)) { - return false; - } - const accessedSymbol = checker.getSymbolAtLocation(tsName); - if (accessedSymbol === undefined) { - return false; - } - // If the symbol in scope is different, the qualifier is necessary. - const fromScope = getSymbolInScope(tsQualifier, accessedSymbol.flags, sourceCode.getText(name)); - return (fromScope === undefined || symbolsAreEqual(accessedSymbol, fromScope)); - } - function visitNamespaceAccess(node, qualifier, name) { - // Only look for nested qualifier errors if we didn't already fail on the outer qualifier. - if (!currentFailedNamespaceExpression && - qualifierIsUnnecessary(qualifier, name)) { - currentFailedNamespaceExpression = node; - context.report({ - node: qualifier, - messageId: 'unnecessaryQualifier', - data: { - name: sourceCode.getText(name), - }, - fix(fixer) { - return fixer.removeRange([qualifier.range[0], name.range[0]]); - }, - }); - } - } - function enterDeclaration(node) { - namespacesInScope.push(esTreeNodeToTSNodeMap.get(node)); - } - function exitDeclaration() { - namespacesInScope.pop(); - } - function resetCurrentNamespaceExpression(node) { - if (node === currentFailedNamespaceExpression) { - currentFailedNamespaceExpression = null; - } - } - function isPropertyAccessExpression(node) { - return node.type === utils_1.AST_NODE_TYPES.MemberExpression && !node.computed; - } - function isEntityNameExpression(node) { - return (node.type === utils_1.AST_NODE_TYPES.Identifier || - (isPropertyAccessExpression(node) && - isEntityNameExpression(node.object))); - } - return { - TSModuleDeclaration: enterDeclaration, - TSEnumDeclaration: enterDeclaration, - 'ExportNamedDeclaration[declaration.type="TSModuleDeclaration"]': enterDeclaration, - 'ExportNamedDeclaration[declaration.type="TSEnumDeclaration"]': enterDeclaration, - 'TSModuleDeclaration:exit': exitDeclaration, - 'TSEnumDeclaration:exit': exitDeclaration, - 'ExportNamedDeclaration[declaration.type="TSModuleDeclaration"]:exit': exitDeclaration, - 'ExportNamedDeclaration[declaration.type="TSEnumDeclaration"]:exit': exitDeclaration, - TSQualifiedName(node) { - visitNamespaceAccess(node, node.left, node.right); - }, - 'MemberExpression[computed=false]': function (node) { - const property = node.property; - if (isEntityNameExpression(node.object)) { - visitNamespaceAccess(node, node.object, property); - } - }, - 'TSQualifiedName:exit': resetCurrentNamespaceExpression, - 'MemberExpression:exit': resetCurrentNamespaceExpression, - }; - }, -}); -//# sourceMappingURL=no-unnecessary-qualifier.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map deleted file mode 100644 index b3649e15..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-qualifier.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unnecessary-qualifier.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-qualifier.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;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c,CAAC,UAAU;gBACvC,CAAC,0BAA0B,CAAC,IAAI,CAAC;oBAC/B,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CACvC,CAAC;QACJ,CAAC;QAED,OAAO;YACL,mBAAmB,EAAE,gBAAgB;YACrC,iBAAiB,EAAE,gBAAgB;YACnC,gEAAgE,EAC9D,gBAAgB;YAClB,8DAA8D,EAC5D,gBAAgB;YAClB,0BAA0B,EAAE,eAAe;YAC3C,wBAAwB,EAAE,eAAe;YACzC,qEAAqE,EACnE,eAAe;YACjB,mEAAmE,EACjE,eAAe;YACjB,eAAe,CAAC,IAA8B;gBAC5C,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;YACpD,CAAC;YACD,kCAAkC,EAAE,UAClC,IAA+B;gBAE/B,MAAM,QAAQ,GAAG,IAAI,CAAC,QAA+B,CAAC;gBACtD,IAAI,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;oBACvC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;iBACnD;YACH,CAAC;YACD,sBAAsB,EAAE,+BAA+B;YACvD,uBAAuB,EAAE,+BAA+B;SACzD,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js deleted file mode 100644 index 7865c76c..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js +++ /dev/null @@ -1,152 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const tsutils = __importStar(require("tsutils")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -const util_1 = require("../util"); -exports.default = util.createRule({ - name: 'no-unnecessary-type-arguments', - meta: { - docs: { - description: 'Disallow type arguments that are equal to the default', - recommended: 'strict', - requiresTypeChecking: true, - }, - fixable: 'code', - messages: { - unnecessaryTypeParameter: 'This is the default value for this type parameter, so it can be omitted.', - }, - schema: [], - type: 'suggestion', - }, - defaultOptions: [], - create(context) { - const parserServices = util.getParserServices(context); - const checker = parserServices.program.getTypeChecker(); - function getTypeForComparison(type) { - if (util.isTypeReferenceType(type)) { - return { - type: type.target, - typeArguments: util.getTypeArguments(type, checker), - }; - } - return { - type, - typeArguments: [], - }; - } - function checkTSArgsAndParameters(esParameters, typeParameters) { - // Just check the last one. Must specify previous type parameters if the last one is specified. - const i = esParameters.params.length - 1; - const arg = esParameters.params[i]; - const param = typeParameters[i]; - if (!(param === null || param === void 0 ? void 0 : param.default)) { - return; - } - // TODO: would like checker.areTypesEquivalent. https://github.com/Microsoft/TypeScript/issues/13502 - const defaultType = checker.getTypeAtLocation(param.default); - const argTsNode = parserServices.esTreeNodeToTSNodeMap.get(arg); - const argType = checker.getTypeAtLocation(argTsNode); - // this check should handle some of the most simple cases of like strings, numbers, etc - if (defaultType !== argType) { - // For more complex types (like aliases to generic object types) - TS won't always create a - // global shared type object for the type - so we need to resort to manually comparing the - // reference type and the passed type arguments. - // Also - in case there are aliases - we need to resolve them before we do checks - const defaultTypeResolved = getTypeForComparison(defaultType); - const argTypeResolved = getTypeForComparison(argType); - if ( - // ensure the resolved type AND all the parameters are the same - defaultTypeResolved.type !== argTypeResolved.type || - defaultTypeResolved.typeArguments.length !== - argTypeResolved.typeArguments.length || - defaultTypeResolved.typeArguments.some((t, i) => t !== argTypeResolved.typeArguments[i])) { - return; - } - } - context.report({ - node: arg, - messageId: 'unnecessaryTypeParameter', - fix: fixer => fixer.removeRange(i === 0 - ? esParameters.range - : [esParameters.params[i - 1].range[1], arg.range[1]]), - }); - } - return { - TSTypeParameterInstantiation(node) { - const expression = parserServices.esTreeNodeToTSNodeMap.get(node); - const typeParameters = getTypeParametersFromNode(expression, checker); - if (typeParameters) { - checkTSArgsAndParameters(node, typeParameters); - } - }, - }; - }, -}); -function getTypeParametersFromNode(node, checker) { - if (ts.isExpressionWithTypeArguments(node)) { - return getTypeParametersFromType(node.expression, checker); - } - if (ts.isTypeReferenceNode(node)) { - return getTypeParametersFromType(node.typeName, checker); - } - if (ts.isCallExpression(node) || ts.isNewExpression(node)) { - return getTypeParametersFromCall(node, checker); - } - return undefined; -} -function getTypeParametersFromType(type, checker) { - const symAtLocation = checker.getSymbolAtLocation(type); - if (!symAtLocation) { - return undefined; - } - const sym = getAliasedSymbol(symAtLocation, checker); - const declarations = sym.getDeclarations(); - if (!declarations) { - return undefined; - } - return (0, util_1.findFirstResult)(declarations, decl => ts.isClassLike(decl) || - ts.isTypeAliasDeclaration(decl) || - ts.isInterfaceDeclaration(decl) - ? decl.typeParameters - : undefined); -} -function getTypeParametersFromCall(node, checker) { - const sig = checker.getResolvedSignature(node); - const sigDecl = sig === null || sig === void 0 ? void 0 : sig.getDeclaration(); - if (!sigDecl) { - return ts.isNewExpression(node) - ? getTypeParametersFromType(node.expression, checker) - : undefined; - } - return sigDecl.typeParameters; -} -function getAliasedSymbol(symbol, checker) { - return tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias) - ? checker.getAliasedSymbol(symbol) - : symbol; -} -//# sourceMappingURL=no-unnecessary-type-arguments.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map deleted file mode 100644 index 3d5d53b1..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-arguments.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unnecessary-type-arguments.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-arguments.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,iDAAmC;AACnC,+CAAiC;AAEjC,8CAAgC;AAChC,kCAA0C;AAe1C,kBAAe,IAAI,CAAC,UAAU,CAAiB;IAC7C,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,uDAAuD;YACpE,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,wBAAwB,EACtB,0EAA0E;SAC7E;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,YAAY;KACnB;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACvD,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAExD,SAAS,oBAAoB,CAAC,IAAa;YAIzC,IAAI,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE;gBAClC,OAAO;oBACL,IAAI,EAAE,IAAI,CAAC,MAAM;oBACjB,aAAa,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,E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AAO,CAAC,gBAAgB,CAAC,MAAM,CAAC;QAClC,CAAC,CAAC,MAAM,CAAC;AACb,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js deleted file mode 100644 index 164b3fcc..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js +++ /dev/null @@ -1,247 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils_1 = require("tsutils"); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-unnecessary-type-assertion', - meta: { - docs: { - description: 'Disallow type assertions that do not change the type of an expression', - recommended: 'error', - requiresTypeChecking: true, - }, - fixable: 'code', - messages: { - unnecessaryAssertion: 'This assertion is unnecessary since it does not change the type of the expression.', - contextuallyUnnecessary: 'This assertion is unnecessary since the receiver accepts the original type of the expression.', - }, - schema: [ - { - type: 'object', - properties: { - typesToIgnore: { - description: 'A list of type names to ignore.', - type: 'array', - items: { - type: 'string', - }, - }, - }, - }, - ], - type: 'suggestion', - }, - defaultOptions: [{}], - create(context, [options]) { - const sourceCode = context.getSourceCode(); - const parserServices = util.getParserServices(context); - const checker = parserServices.program.getTypeChecker(); - const compilerOptions = parserServices.program.getCompilerOptions(); - /** - * Sometimes tuple types don't have ObjectFlags.Tuple set, like when they're being matched against an inferred type. - * So, in addition, check if there are integer properties 0..n and no other numeric keys - */ - function couldBeTupleType(type) { - const properties = type.getProperties(); - if (properties.length === 0) { - return false; - } - let i = 0; - for (; i < properties.length; ++i) { - const name = properties[i].name; - if (String(i) !== name) { - if (i === 0) { - // if there are no integer properties, this is not a tuple - return false; - } - break; - } - } - for (; i < properties.length; ++i) { - if (String(+properties[i].name) === properties[i].name) { - return false; // if there are any other numeric properties, this is not a tuple - } - } - return true; - } - /** - * Returns true if there's a chance the variable has been used before a value has been assigned to it - */ - function isPossiblyUsedBeforeAssigned(node) { - const declaration = util.getDeclaration(checker, node); - if (!declaration) { - // don't know what the declaration is for some reason, so just assume the worst - return true; - } - if ( - // non-strict mode doesn't care about used before assigned errors - (0, tsutils_1.isStrictCompilerOptionEnabled)(compilerOptions, 'strictNullChecks') && - // ignore class properties as they are compile time guarded - // also ignore function arguments as they can't be used before defined - (0, tsutils_1.isVariableDeclaration)(declaration) && - // is it `const x!: number` - declaration.initializer === undefined && - declaration.exclamationToken === undefined && - declaration.type !== undefined) { - // check if the defined variable type has changed since assignment - const declarationType = checker.getTypeFromTypeNode(declaration.type); - const type = util.getConstrainedTypeAtLocation(checker, node); - if (declarationType === type) { - // possibly used before assigned, so just skip it - // better to false negative and skip it, than false positive and fix to compile erroring code - // - // no better way to figure this out right now - // https://github.com/Microsoft/TypeScript/issues/31124 - return true; - } - } - return false; - } - function isConstAssertion(node) { - return (node.type === utils_1.AST_NODE_TYPES.TSTypeReference && - node.typeName.type === utils_1.AST_NODE_TYPES.Identifier && - node.typeName.name === 'const'); - } - return { - TSNonNullExpression(node) { - var _a; - if (((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.AssignmentExpression && - node.parent.operator === '=') { - if (node.parent.left === node) { - context.report({ - node, - messageId: 'contextuallyUnnecessary', - fix(fixer) { - return fixer.removeRange([ - node.expression.range[1], - node.range[1], - ]); - }, - }); - } - // for all other = assignments we ignore non-null checks - // this is because non-null assertions can change the type-flow of the code - // so whilst they might be unnecessary for the assignment - they are necessary - // for following code - return; - } - const originalNode = parserServices.esTreeNodeToTSNodeMap.get(node); - const type = util.getConstrainedTypeAtLocation(checker, originalNode.expression); - if (!util.isNullableType(type)) { - if (isPossiblyUsedBeforeAssigned(originalNode.expression)) { - return; - } - context.report({ - node, - messageId: 'unnecessaryAssertion', - fix(fixer) { - return fixer.removeRange([ - node.expression.range[1], - node.range[1], - ]); - }, - }); - } - else { - // we know it's a nullable type - // so figure out if the variable is used in a place that accepts nullable types - const contextualType = util.getContextualType(checker, originalNode); - if (contextualType) { - // in strict mode you can't assign null to undefined, so we have to make sure that - // the two types share a nullable type - const typeIncludesUndefined = util.isTypeFlagSet(type, ts.TypeFlags.Undefined); - const typeIncludesNull = util.isTypeFlagSet(type, ts.TypeFlags.Null); - const contextualTypeIncludesUndefined = util.isTypeFlagSet(contextualType, ts.TypeFlags.Undefined); - const contextualTypeIncludesNull = util.isTypeFlagSet(contextualType, ts.TypeFlags.Null); - // make sure that the parent accepts the same types - // i.e. assigning `string | null | undefined` to `string | undefined` is invalid - const isValidUndefined = typeIncludesUndefined - ? contextualTypeIncludesUndefined - : true; - const isValidNull = typeIncludesNull - ? contextualTypeIncludesNull - : true; - if (isValidUndefined && isValidNull) { - context.report({ - node, - messageId: 'contextuallyUnnecessary', - fix(fixer) { - return fixer.removeRange([ - node.expression.range[1], - node.range[1], - ]); - }, - }); - } - } - } - }, - 'TSAsExpression, TSTypeAssertion'(node) { - var _a; - if (((_a = options.typesToIgnore) === null || _a === void 0 ? void 0 : _a.includes(sourceCode.getText(node.typeAnnotation))) || - isConstAssertion(node.typeAnnotation)) { - return; - } - const originalNode = parserServices.esTreeNodeToTSNodeMap.get(node); - const castType = checker.getTypeAtLocation(originalNode); - if ((0, tsutils_1.isTypeFlagSet)(castType, ts.TypeFlags.Literal) || - ((0, tsutils_1.isObjectType)(castType) && - ((0, tsutils_1.isObjectFlagSet)(castType, ts.ObjectFlags.Tuple) || - couldBeTupleType(castType)))) { - // It's not always safe to remove a cast to a literal type or tuple - // type, as those types are sometimes widened without the cast. - return; - } - const uncastType = checker.getTypeAtLocation(originalNode.expression); - if (uncastType === castType) { - context.report({ - node, - messageId: 'unnecessaryAssertion', - fix(fixer) { - if (originalNode.kind === ts.SyntaxKind.TypeAssertionExpression) { - const closingAngleBracket = sourceCode.getTokenAfter(node.typeAnnotation); - return (closingAngleBracket === null || closingAngleBracket === void 0 ? void 0 : closingAngleBracket.value) === '>' - ? fixer.removeRange([ - node.range[0], - closingAngleBracket.range[1], - ]) - : null; - } - return fixer.removeRange([ - node.expression.range[1] + 1, - node.range[1], - ]); - }, - }); - } - // TODO - add contextually unnecessary check for this - }, - }; - }, -}); -//# sourceMappingURL=no-unnecessary-type-assertion.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map deleted file mode 100644 index f9fb5238..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-assertion.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unnecessary-type-assertion.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-assertion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,qCAMiB;AACjB,+CAAiC;AAEjC,8CAAgC;AAShC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,+BAA+B;IACrC,IA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AK,MAAK,GAAG;oCACvC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC;wCAChB,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;wCACb,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC;qCAC7B,CAAC;oCACJ,CAAC,CAAC,IAAI,CAAC;6BACV;4BACD,OAAO,KAAK,CAAC,WAAW,CAAC;gCACvB,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;gCAC5B,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;6BACd,CAAC,CAAC;wBACL,CAAC;qBACF,CAAC,CAAC;iBACJ;gBAED,qDAAqD;YACvD,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js deleted file mode 100644 index 85b3f186..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js +++ /dev/null @@ -1,112 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const semver = __importStar(require("semver")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -const is3dot5 = semver.satisfies(ts.version, `>= 3.5.0 || >= 3.5.1-rc || >= 3.5.0-beta`, { - includePrerelease: true, -}); -const is3dot9 = is3dot5 && - semver.satisfies(ts.version, `>= 3.9.0 || >= 3.9.1-rc || >= 3.9.0-beta`, { - includePrerelease: true, - }); -exports.default = util.createRule({ - name: 'no-unnecessary-type-constraint', - meta: { - docs: { - description: 'Disallow unnecessary constraints on generic types', - recommended: 'error', - }, - hasSuggestions: true, - messages: { - unnecessaryConstraint: 'Constraining the generic type `{{name}}` to `{{constraint}}` does nothing and is unnecessary.', - removeUnnecessaryConstraint: 'Remove the unnecessary `{{constraint}}` constraint.', - }, - schema: [], - type: 'suggestion', - }, - defaultOptions: [], - create(context) { - if (!is3dot5) { - return {}; - } - // In theory, we could use the type checker for more advanced constraint types... - // ...but in practice, these types are rare, and likely not worth requiring type info. - // https://github.com/typescript-eslint/typescript-eslint/pull/2516#discussion_r495731858 - const unnecessaryConstraints = is3dot9 - ? new Map([ - [utils_1.AST_NODE_TYPES.TSAnyKeyword, 'any'], - [utils_1.AST_NODE_TYPES.TSUnknownKeyword, 'unknown'], - ]) - : new Map([[utils_1.AST_NODE_TYPES.TSUnknownKeyword, 'unknown']]); - const inJsx = context.getFilename().toLowerCase().endsWith('tsx'); - const source = context.getSourceCode(); - const checkNode = (node, inArrowFunction) => { - const constraint = unnecessaryConstraints.get(node.constraint.type); - function shouldAddTrailingComma() { - if (!inArrowFunction || !inJsx) { - return false; - } - // Only () => {} would need trailing comma - return (node.parent.params.length === - 1 && - source.getTokensAfter(node)[0].value !== ',' && - !node.default); - } - if (constraint) { - context.report({ - data: { - constraint, - name: node.name.name, - }, - suggest: [ - { - messageId: 'removeUnnecessaryConstraint', - data: { - constraint, - }, - fix(fixer) { - return fixer.replaceTextRange([node.name.range[1], node.constraint.range[1]], shouldAddTrailingComma() ? ',' : ''); - }, - }, - ], - messageId: 'unnecessaryConstraint', - node, - }); - } - }; - return { - ':not(ArrowFunctionExpression) > TSTypeParameterDeclaration > TSTypeParameter[constraint]'(node) { - checkNode(node, false); - }, - 'ArrowFunctionExpression > TSTypeParameterDeclaration > TSTypeParameter[constraint]'(node) { - checkNode(node, true); - }, - }; - }, -}); -//# sourceMappingURL=no-unnecessary-type-constraint.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js.map deleted file mode 100644 index 1d2ee13b..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-type-constraint.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unnecessary-type-constraint.js","sourceRoot":"","sources":["../../src/rules/no-unnecessary-type-constraint.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,+CAAiC;AACjC,+CAAiC;AAEjC,8CAAgC;AAUhC,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAC9B,EAAE,CAAC,OAAO,EACV,0CAA0C,EAC1C;IACE,iBAAiB,EAAE,IAAI;CACxB,CACF,CAAC;AAEF,MAAM,OAAO,GACX,OAAO;IACP,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,0CAA0C,EAAE;QACvE,iBAAiB,EAAE,IAAI;KACxB,CAAC,CAAC;AAEL,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,gCAAgC;IACtC,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,mDAAmD;YAChE,WAAW,EAAE,OAAO;SACrB;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,qBAAqB,EACnB,+FAA+F;YACjG,2BAA2B,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ACJ,UAAU;wBACV,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI;qBACrB;oBACD,OAAO,EAAE;wBACP;4BACE,SAAS,EAAE,6BAA6B;4BACxC,IAAI,EAAE;gCACJ,UAAU;6BACX;4BACD,GAAG,CAAC,KAAK;gCACP,OAAO,KAAK,CAAC,gBAAgB,CAC3B,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9C,sBAAsB,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CACpC,CAAC;4BACJ,CAAC;yBACF;qBACF;oBACD,SAAS,EAAE,uBAAuB;oBAClC,IAAI;iBACL,CAAC,CAAC;aACJ;QACH,CAAC,CAAC;QAEF,OAAO;YACL,0FAA0F,CACxF,IAAiC;gBAEjC,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YACzB,CAAC;YACD,oFAAoF,CAClF,IAAiC;gBAEjC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACxB,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js deleted file mode 100644 index 1c75c7b7..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js +++ /dev/null @@ -1,227 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -class FunctionSignature { - static create(checker, tsNode) { - var _a; - const signature = checker.getResolvedSignature(tsNode); - if (!signature) { - return null; - } - const paramTypes = []; - let restType = null; - const parameters = signature.getParameters(); - for (let i = 0; i < parameters.length; i += 1) { - const param = parameters[i]; - const type = checker.getTypeOfSymbolAtLocation(param, tsNode); - const decl = (_a = param.getDeclarations()) === null || _a === void 0 ? void 0 : _a[0]; - if (decl && ts.isParameter(decl) && decl.dotDotDotToken) { - // is a rest param - if (checker.isArrayType(type)) { - restType = { - type: util.getTypeArguments(type, checker)[0], - kind: 0 /* RestTypeKind.Array */, - index: i, - }; - } - else if (checker.isTupleType(type)) { - restType = { - typeArguments: util.getTypeArguments(type, checker), - kind: 1 /* RestTypeKind.Tuple */, - index: i, - }; - } - else { - restType = { - type, - kind: 2 /* RestTypeKind.Other */, - index: i, - }; - } - break; - } - paramTypes.push(type); - } - return new this(paramTypes, restType); - } - constructor(paramTypes, restType) { - this.paramTypes = paramTypes; - this.restType = restType; - this.parameterTypeIndex = 0; - this.hasConsumedArguments = false; - } - getNextParameterType() { - const index = this.parameterTypeIndex; - this.parameterTypeIndex += 1; - if (index >= this.paramTypes.length || this.hasConsumedArguments) { - if (this.restType == null) { - return null; - } - switch (this.restType.kind) { - case 1 /* RestTypeKind.Tuple */: { - const typeArguments = this.restType.typeArguments; - if (this.hasConsumedArguments) { - // all types consumed by a rest - just assume it's the last type - // there is one edge case where this is wrong, but we ignore it because - // it's rare and really complicated to handle - // eg: function foo(...a: [number, ...string[], number]) - return typeArguments[typeArguments.length - 1]; - } - const typeIndex = index - this.restType.index; - if (typeIndex >= typeArguments.length) { - return typeArguments[typeArguments.length - 1]; - } - return typeArguments[typeIndex]; - } - case 0 /* RestTypeKind.Array */: - case 2 /* RestTypeKind.Other */: - return this.restType.type; - } - } - return this.paramTypes[index]; - } - consumeRemainingArguments() { - this.hasConsumedArguments = true; - } -} -exports.default = util.createRule({ - name: 'no-unsafe-argument', - meta: { - type: 'problem', - docs: { - description: 'Disallow calling a function with a value with type `any`', - recommended: 'error', - requiresTypeChecking: true, - }, - messages: { - unsafeArgument: 'Unsafe argument of type `{{sender}}` assigned to a parameter of type `{{receiver}}`.', - unsafeTupleSpread: 'Unsafe spread of a tuple type. The argument is of type `{{sender}}` and is assigned to a parameter of type `{{receiver}}`.', - unsafeArraySpread: 'Unsafe spread of an `any` array type.', - unsafeSpread: 'Unsafe spread of an `any` type.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const { program, esTreeNodeToTSNodeMap } = util.getParserServices(context); - const checker = program.getTypeChecker(); - return { - 'CallExpression, NewExpression'(node) { - if (node.arguments.length === 0) { - return; - } - // ignore any-typed calls as these are caught by no-unsafe-call - if (util.isTypeAnyType(checker.getTypeAtLocation(esTreeNodeToTSNodeMap.get(node.callee)))) { - return; - } - const tsNode = esTreeNodeToTSNodeMap.get(node); - const signature = FunctionSignature.create(checker, tsNode); - if (!signature) { - return; - } - for (const argument of node.arguments) { - switch (argument.type) { - // spreads consume - case utils_1.AST_NODE_TYPES.SpreadElement: { - const spreadArgType = checker.getTypeAtLocation(esTreeNodeToTSNodeMap.get(argument.argument)); - if (util.isTypeAnyType(spreadArgType)) { - // foo(...any) - context.report({ - node: argument, - messageId: 'unsafeSpread', - }); - } - else if (util.isTypeAnyArrayType(spreadArgType, checker)) { - // foo(...any[]) - // TODO - we could break down the spread and compare the array type against each argument - context.report({ - node: argument, - messageId: 'unsafeArraySpread', - }); - } - else if (checker.isTupleType(spreadArgType)) { - // foo(...[tuple1, tuple2]) - const spreadTypeArguments = util.getTypeArguments(spreadArgType, checker); - for (const tupleType of spreadTypeArguments) { - const parameterType = signature.getNextParameterType(); - if (parameterType == null) { - continue; - } - const result = util.isUnsafeAssignment(tupleType, parameterType, checker, - // we can't pass the individual tuple members in here as this will most likely be a spread variable - // not a spread array - null); - if (result) { - context.report({ - node: argument, - messageId: 'unsafeTupleSpread', - data: { - sender: checker.typeToString(tupleType), - receiver: checker.typeToString(parameterType), - }, - }); - } - } - if (spreadArgType.target.hasRestElement) { - // the last element was a rest - so all remaining defined arguments can be considered "consumed" - // all remaining arguments should be compared against the rest type (if one exists) - signature.consumeRemainingArguments(); - } - } - else { - // something that's iterable - // handling this will be pretty complex - so we ignore it for now - // TODO - handle generic iterable case - } - break; - } - default: { - const parameterType = signature.getNextParameterType(); - if (parameterType == null) { - continue; - } - const argumentType = checker.getTypeAtLocation(esTreeNodeToTSNodeMap.get(argument)); - const result = util.isUnsafeAssignment(argumentType, parameterType, checker, argument); - if (result) { - context.report({ - node: argument, - messageId: 'unsafeArgument', - data: { - sender: checker.typeToString(argumentType), - receiver: checker.typeToString(parameterType), - }, - }); - } - } - } - } - }, - }; - }, -}); -//# sourceMappingURL=no-unsafe-argument.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map deleted file mode 100644 index 99db107e..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-argument.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unsafe-argument.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-argument.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,+CAAiC;AAEjC,8CAAgC;AA8BhC,MA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;4CACd,SAAS,EAAE,mBAAmB;4CAC9B,IAAI,EAAE;gDACJ,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC;gDACvC,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC;6CAC9C;yCACF,CAAC,CAAC;qCACJ;iCACF;gCACD,IAAI,aAAa,CAAC,MAAM,CAAC,cAAc,EAAE;oCACvC,gGAAgG;oCAChG,mFAAmF;oCACnF,SAAS,CAAC,yBAAyB,EAAE,CAAC;iCACvC;6BACF;iCAAM;gCACL,4BAA4B;gCAC5B,iEAAiE;gCACjE,sCAAsC;6BACvC;4BACD,MAAM;yBACP;wBAED,OAAO,CAAC,CAAC;4BACP,MAAM,aAAa,GAAG,SAAS,CAAC,oBAAoB,EAAE,CAAC;4BACvD,IAAI,aAAa,IAAI,IAAI,EAAE;gCACzB,SAAS;6BACV;4BAED,MAAM,YAAY,GAAG,OAAO,CAAC,iBAAiB,CAC5C,qBAAqB,CAAC,GAAG,CAAC,QAAQ,CAAC,CACpC,CAAC;4BACF,MAAM,MAAM,GAAG,IAAI,CAAC,kBAAkB,CACpC,YAAY,EACZ,aAAa,EACb,OAAO,EACP,QAAQ,CACT,CAAC;4BACF,IAAI,MAAM,EAAE;gCACV,OAAO,CAAC,MAAM,CAAC;oCACb,IAAI,EAAE,QAAQ;oCACd,SAAS,EAAE,gBAAgB;oCAC3B,IAAI,EAAE;wCACJ,MAAM,EAAE,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC;wCAC1C,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC;qCAC9C;iCACF,CAAC,CAAC;6BACJ;yBACF;qBACF;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js deleted file mode 100644 index 12108de2..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js +++ /dev/null @@ -1,285 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const util = __importStar(require("../util")); -const util_1 = require("../util"); -exports.default = util.createRule({ - name: 'no-unsafe-assignment', - meta: { - type: 'problem', - docs: { - description: 'Disallow assigning a value with type `any` to variables and properties', - recommended: 'error', - requiresTypeChecking: true, - }, - messages: { - anyAssignment: 'Unsafe assignment of an `any` value.', - anyAssignmentThis: [ - 'Unsafe assignment of an `any` value. `this` is typed as `any`.', - 'You can try to fix this by turning on the `noImplicitThis` compiler option, or adding a `this` parameter to the function.', - ].join('\n'), - unsafeArrayPattern: 'Unsafe array destructuring of an `any` array value.', - unsafeArrayPatternFromTuple: 'Unsafe array destructuring of a tuple element with an `any` value.', - unsafeAssignment: 'Unsafe assignment of type {{sender}} to a variable of type {{receiver}}.', - unsafeArraySpread: 'Unsafe spread of an `any` value in an array.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const { program, esTreeNodeToTSNodeMap } = util.getParserServices(context); - const checker = program.getTypeChecker(); - const compilerOptions = program.getCompilerOptions(); - const isNoImplicitThis = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'noImplicitThis'); - // returns true if the assignment reported - function checkArrayDestructureHelper(receiverNode, senderNode) { - if (receiverNode.type !== utils_1.AST_NODE_TYPES.ArrayPattern) { - return false; - } - const senderTsNode = esTreeNodeToTSNodeMap.get(senderNode); - const senderType = checker.getTypeAtLocation(senderTsNode); - return checkArrayDestructure(receiverNode, senderType, senderTsNode); - } - // returns true if the assignment reported - function checkArrayDestructure(receiverNode, senderType, senderNode) { - // any array - // const [x] = ([] as any[]); - if (util.isTypeAnyArrayType(senderType, checker)) { - context.report({ - node: receiverNode, - messageId: 'unsafeArrayPattern', - }); - return false; - } - if (!checker.isTupleType(senderType)) { - return true; - } - const tupleElements = util.getTypeArguments(senderType, checker); - // tuple with any - // const [x] = [1 as any]; - let didReport = false; - for (let receiverIndex = 0; receiverIndex < receiverNode.elements.length; receiverIndex += 1) { - const receiverElement = receiverNode.elements[receiverIndex]; - if (!receiverElement) { - continue; - } - if (receiverElement.type === utils_1.AST_NODE_TYPES.RestElement) { - // don't handle rests as they're not a 1:1 assignment - continue; - } - const senderType = tupleElements[receiverIndex]; - if (!senderType) { - continue; - } - // check for the any type first so we can handle [[[x]]] = [any] - if (util.isTypeAnyType(senderType)) { - context.report({ - node: receiverElement, - messageId: 'unsafeArrayPatternFromTuple', - }); - // we want to report on every invalid element in the tuple - didReport = true; - } - else if (receiverElement.type === utils_1.AST_NODE_TYPES.ArrayPattern) { - didReport = checkArrayDestructure(receiverElement, senderType, senderNode); - } - else if (receiverElement.type === utils_1.AST_NODE_TYPES.ObjectPattern) { - didReport = checkObjectDestructure(receiverElement, senderType, senderNode); - } - } - return didReport; - } - // returns true if the assignment reported - function checkObjectDestructureHelper(receiverNode, senderNode) { - if (receiverNode.type !== utils_1.AST_NODE_TYPES.ObjectPattern) { - return false; - } - const senderTsNode = esTreeNodeToTSNodeMap.get(senderNode); - const senderType = checker.getTypeAtLocation(senderTsNode); - return checkObjectDestructure(receiverNode, senderType, senderTsNode); - } - // returns true if the assignment reported - function checkObjectDestructure(receiverNode, senderType, senderNode) { - const properties = new Map(senderType - .getProperties() - .map(property => [ - property.getName(), - checker.getTypeOfSymbolAtLocation(property, senderNode), - ])); - let didReport = false; - for (const receiverProperty of receiverNode.properties) { - if (receiverProperty.type === utils_1.AST_NODE_TYPES.RestElement) { - // don't bother checking rest - continue; - } - let key; - if (receiverProperty.computed === false) { - key = - receiverProperty.key.type === utils_1.AST_NODE_TYPES.Identifier - ? receiverProperty.key.name - : String(receiverProperty.key.value); - } - else if (receiverProperty.key.type === utils_1.AST_NODE_TYPES.Literal) { - key = String(receiverProperty.key.value); - } - else if (receiverProperty.key.type === utils_1.AST_NODE_TYPES.TemplateLiteral && - receiverProperty.key.quasis.length === 1) { - key = String(receiverProperty.key.quasis[0].value.cooked); - } - else { - // can't figure out the name, so skip it - continue; - } - const senderType = properties.get(key); - if (!senderType) { - continue; - } - // check for the any type first so we can handle {x: {y: z}} = {x: any} - if (util.isTypeAnyType(senderType)) { - context.report({ - node: receiverProperty.value, - messageId: 'unsafeArrayPatternFromTuple', - }); - didReport = true; - } - else if (receiverProperty.value.type === utils_1.AST_NODE_TYPES.ArrayPattern) { - didReport = checkArrayDestructure(receiverProperty.value, senderType, senderNode); - } - else if (receiverProperty.value.type === utils_1.AST_NODE_TYPES.ObjectPattern) { - didReport = checkObjectDestructure(receiverProperty.value, senderType, senderNode); - } - } - return didReport; - } - // returns true if the assignment reported - function checkAssignment(receiverNode, senderNode, reportingNode, comparisonType) { - var _a; - const receiverTsNode = esTreeNodeToTSNodeMap.get(receiverNode); - const receiverType = comparisonType === 2 /* ComparisonType.Contextual */ - ? (_a = util.getContextualType(checker, receiverTsNode)) !== null && _a !== void 0 ? _a : checker.getTypeAtLocation(receiverTsNode) - : checker.getTypeAtLocation(receiverTsNode); - const senderType = checker.getTypeAtLocation(esTreeNodeToTSNodeMap.get(senderNode)); - if (util.isTypeAnyType(senderType)) { - // handle cases when we assign any ==> unknown. - if (util.isTypeUnknownType(receiverType)) { - return false; - } - let messageId = 'anyAssignment'; - if (!isNoImplicitThis) { - // `var foo = this` - const thisExpression = (0, util_1.getThisExpression)(senderNode); - if (thisExpression && - util.isTypeAnyType(util.getConstrainedTypeAtLocation(checker, esTreeNodeToTSNodeMap.get(thisExpression)))) { - messageId = 'anyAssignmentThis'; - } - } - context.report({ - node: reportingNode, - messageId, - }); - return true; - } - if (comparisonType === 0 /* ComparisonType.None */) { - return false; - } - const result = util.isUnsafeAssignment(senderType, receiverType, checker, senderNode); - if (!result) { - return false; - } - const { sender, receiver } = result; - context.report({ - node: reportingNode, - messageId: 'unsafeAssignment', - data: { - sender: checker.typeToString(sender), - receiver: checker.typeToString(receiver), - }, - }); - return true; - } - function getComparisonType(typeAnnotation) { - return typeAnnotation - ? // if there's a type annotation, we can do a comparison - 1 /* ComparisonType.Basic */ - : // no type annotation means the variable's type will just be inferred, thus equal - 0 /* ComparisonType.None */; - } - return { - 'VariableDeclarator[init != null]'(node) { - const init = util.nullThrows(node.init, util.NullThrowsReasons.MissingToken(node.type, 'init')); - let didReport = checkAssignment(node.id, init, node, getComparisonType(node.id.typeAnnotation)); - if (!didReport) { - didReport = checkArrayDestructureHelper(node.id, init); - } - if (!didReport) { - checkObjectDestructureHelper(node.id, init); - } - }, - 'PropertyDefinition[value != null]'(node) { - checkAssignment(node.key, node.value, node, getComparisonType(node.typeAnnotation)); - }, - 'AssignmentExpression[operator = "="], AssignmentPattern'(node) { - let didReport = checkAssignment(node.left, node.right, node, 1 /* ComparisonType.Basic */); - if (!didReport) { - didReport = checkArrayDestructureHelper(node.left, node.right); - } - if (!didReport) { - checkObjectDestructureHelper(node.left, node.right); - } - }, - // object pattern props are checked via assignments - ':not(ObjectPattern) > Property'(node) { - if (node.value.type === utils_1.AST_NODE_TYPES.AssignmentPattern || - node.value.type === utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression) { - // handled by other selector - return; - } - checkAssignment(node.key, node.value, node, 2 /* ComparisonType.Contextual */); - }, - 'ArrayExpression > SpreadElement'(node) { - const resetNode = esTreeNodeToTSNodeMap.get(node.argument); - const restType = checker.getTypeAtLocation(resetNode); - if (util.isTypeAnyType(restType) || - util.isTypeAnyArrayType(restType, checker)) { - context.report({ - node: node, - messageId: 'unsafeArraySpread', - }); - } - }, - 'JSXAttribute[value != null]'(node) { - const value = util.nullThrows(node.value, util.NullThrowsReasons.MissingToken(node.type, 'value')); - if (value.type !== utils_1.AST_NODE_TYPES.JSXExpressionContainer || - value.expression.type === utils_1.AST_NODE_TYPES.JSXEmptyExpression) { - return; - } - checkAssignment(node.name, value.expression, value.expression, 2 /* ComparisonType.Contextual */); - }, - }; - }, -}); -//# sourceMappingURL=no-unsafe-assignment.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map deleted file mode 100644 index c1718f42..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-assignment.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unsafe-assignment.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-assignment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,iDAAmC;AAGnC,8CAAgC;AAChC,kCAA4C;AAW5C,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,wEAAwE;YAC1E,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,aAAa,EAAE,sCAAsC;YACrD,iBAAiB,EAAE;gBAC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xD,CAAC;gBACF,IACE,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,sBAAsB;oBACpD,KAAK,CAAC,UAAU,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,EAC3D;oBACA,OAAO;iBACR;gBAED,eAAe,CACb,IAAI,CAAC,IAAI,EACT,KAAK,CAAC,UAAU,EAChB,KAAK,CAAC,UAAU,oCAEjB,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js deleted file mode 100644 index 104c0f7b..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js +++ /dev/null @@ -1,86 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const tsutils = __importStar(require("tsutils")); -const util = __importStar(require("../util")); -const util_1 = require("../util"); -exports.default = util.createRule({ - name: 'no-unsafe-call', - meta: { - type: 'problem', - docs: { - description: 'Disallow calling a value with type `any`', - recommended: 'error', - requiresTypeChecking: true, - }, - messages: { - unsafeCall: 'Unsafe call of an `any` typed value.', - unsafeCallThis: [ - 'Unsafe call of an `any` typed value. `this` is typed as `any`.', - 'You can try to fix this by turning on the `noImplicitThis` compiler option, or adding a `this` parameter to the function.', - ].join('\n'), - unsafeNew: 'Unsafe construction of an any type value.', - unsafeTemplateTag: 'Unsafe any typed template tag.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const { program, esTreeNodeToTSNodeMap } = util.getParserServices(context); - const checker = program.getTypeChecker(); - const compilerOptions = program.getCompilerOptions(); - const isNoImplicitThis = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'noImplicitThis'); - function checkCall(node, reportingNode, messageId) { - const tsNode = esTreeNodeToTSNodeMap.get(node); - const type = util.getConstrainedTypeAtLocation(checker, tsNode); - if (util.isTypeAnyType(type)) { - if (!isNoImplicitThis) { - // `this()` or `this.foo()` or `this.foo[bar]()` - const thisExpression = (0, util_1.getThisExpression)(node); - if (thisExpression && - util.isTypeAnyType(util.getConstrainedTypeAtLocation(checker, esTreeNodeToTSNodeMap.get(thisExpression)))) { - messageId = 'unsafeCallThis'; - } - } - context.report({ - node: reportingNode, - messageId: messageId, - }); - } - } - return { - 'CallExpression > *.callee'(node) { - checkCall(node, node, 'unsafeCall'); - }, - NewExpression(node) { - checkCall(node.callee, node, 'unsafeNew'); - }, - 'TaggedTemplateExpression > *.tag'(node) { - checkCall(node, node, 'unsafeTemplateTag'); - }, - }; - }, -}); -//# sourceMappingURL=no-unsafe-call.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map deleted file mode 100644 index c810db08..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unsafe-call.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-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C,CAAC;oBAC/C,IACE,cAAc;wBACd,IAAI,CAAC,aAAa,CAChB,IAAI,CAAC,4BAA4B,CAC/B,OAAO,EACP,qBAAqB,CAAC,GAAG,CAAC,cAAc,CAAC,CAC1C,CACF,EACD;wBACA,SAAS,GAAG,gBAAgB,CAAC;qBAC9B;iBACF;gBACD,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI,EAAE,aAAa;oBACnB,SAAS,EAAE,SAAS;iBACrB,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,2BAA2B,CACzB,IAAuC;gBAEvC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC;YACtC,CAAC;YACD,aAAa,CAAC,IAAI;gBAChB,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;YAC5C,CAAC;YACD,kCAAkC,CAAC,IAAmB;gBACpD,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,mBAAmB,CAAC,CAAC;YAC7C,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js deleted file mode 100644 index 2a389c31..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-unsafe-declaration-merging', - meta: { - type: 'problem', - docs: { - description: 'Disallow unsafe declaration merging', - recommended: 'strict', - requiresTypeChecking: false, - }, - messages: { - unsafeMerging: 'Unsafe declaration merging between classes and interfaces.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - function checkUnsafeDeclaration(scope, node, unsafeKind) { - const variable = scope.set.get(node.name); - if (!variable) { - return; - } - const defs = variable.defs; - if (defs.length <= 1) { - return; - } - if (defs.some(def => def.node.type === unsafeKind)) { - context.report({ - node, - messageId: 'unsafeMerging', - }); - } - } - return { - ClassDeclaration(node) { - if (node.id) { - // by default eslint returns the inner class scope for the ClassDeclaration node - // but we want the outer scope within which merged variables will sit - const currentScope = context.getScope().upper; - if (currentScope == null) { - return; - } - checkUnsafeDeclaration(currentScope, node.id, utils_1.AST_NODE_TYPES.TSInterfaceDeclaration); - } - }, - TSInterfaceDeclaration(node) { - checkUnsafeDeclaration(context.getScope(), node.id, utils_1.AST_NODE_TYPES.ClassDeclaration); - }, - }; - }, -}); -//# sourceMappingURL=no-unsafe-declaration-merging.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js.map deleted file mode 100644 index f4cfd5af..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-declaration-merging.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":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,OAAO;qBACR;oBAED,sBAAsB,CACpB,YAAY,EACZ,IAAI,CAAC,EAAE,EACP,sBAAc,CAAC,sBAAsB,CACtC,CAAC;iBACH;YACH,CAAC;YACD,sBAAsB,CAAC,IAAI;gBACzB,sBAAsB,CACpB,OAAO,CAAC,QAAQ,EAAE,EAClB,IAAI,CAAC,EAAE,EACP,sBAAc,CAAC,gBAAgB,CAChC,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js deleted file mode 100644 index 34ecac41..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js +++ /dev/null @@ -1,119 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const tsutils = __importStar(require("tsutils")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -const shared_1 = require("./enum-utils/shared"); -/** - * @returns Whether the right type is an unsafe comparison against any left type. - */ -function typeViolates(leftTypeParts, right) { - const leftValueKinds = new Set(leftTypeParts.map(getEnumValueType)); - return ((leftValueKinds.has(ts.TypeFlags.Number) && - tsutils.isTypeFlagSet(right, ts.TypeFlags.Number | ts.TypeFlags.NumberLike)) || - (leftValueKinds.has(ts.TypeFlags.String) && - tsutils.isTypeFlagSet(right, ts.TypeFlags.String | ts.TypeFlags.StringLike))); -} -/** - * @returns What type a type's enum value is (number or string), if either. - */ -function getEnumValueType(type) { - return util.isTypeFlagSet(type, ts.TypeFlags.EnumLike) - ? util.isTypeFlagSet(type, ts.TypeFlags.NumberLiteral) - ? ts.TypeFlags.Number - : ts.TypeFlags.String - : undefined; -} -exports.default = util.createRule({ - name: 'no-unsafe-enum-comparison', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow comparing an enum value with a non-enum value', - recommended: 'strict', - requiresTypeChecking: true, - }, - messages: { - mismatched: 'The two values in this comparison do not have a shared enum type.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const parserServices = util.getParserServices(context); - const typeChecker = parserServices.program.getTypeChecker(); - function getTypeFromNode(node) { - return typeChecker.getTypeAtLocation(parserServices.esTreeNodeToTSNodeMap.get(node)); - } - return { - 'BinaryExpression[operator=/=|<|>/]'(node) { - const left = getTypeFromNode(node.left); - const right = getTypeFromNode(node.right); - // Allow comparisons that don't have anything to do with enums: - // - // ```ts - // 1 === 2; - // ``` - const leftEnumTypes = (0, shared_1.getEnumTypes)(typeChecker, left); - const rightEnumTypes = new Set((0, shared_1.getEnumTypes)(typeChecker, right)); - if (leftEnumTypes.length === 0 && rightEnumTypes.size === 0) { - return; - } - // Allow comparisons that share an enum type: - // - // ```ts - // Fruit.Apple === Fruit.Banana; - // ``` - for (const leftEnumType of leftEnumTypes) { - if (rightEnumTypes.has(leftEnumType)) { - return; - } - } - const leftTypeParts = tsutils.unionTypeParts(left); - const rightTypeParts = tsutils.unionTypeParts(right); - // If a type exists in both sides, we consider this comparison safe: - // - // ```ts - // declare const fruit: Fruit.Apple | 0; - // fruit === 0; - // ``` - for (const leftTypePart of leftTypeParts) { - if (rightTypeParts.includes(leftTypePart)) { - return; - } - } - if (typeViolates(leftTypeParts, right) || - typeViolates(rightTypeParts, left)) { - context.report({ - messageId: 'mismatched', - node, - }); - } - }, - }; - }, -}); -//# sourceMappingURL=no-unsafe-enum-comparison.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js.map deleted file mode 100644 index 112e994b..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-enum-comparison.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unsafe-enum-comparison.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-enum-comparison.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,iDAAmC;AACnC,+CAAiC;AAEjC,8CAAgC;AAChC,gDAAmD;AAEnD;;GAEG;AACH,SAAS,YAAY,CAAC,aAAwB,EAAE,KAAc;IAC5D,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAEpE,OAAO,CACL,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC;QACtC,OAAO,CAAC,aAAa,CACnB,KAAK,EACL,EAAE,CAAC,SAAS,CAAC,MAAM,GAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAC9C,CAAC;QACJ,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC;YACtC,OAAO,CAAC,aAAa,CACnB,KAAK,EACL,EAAE,CAAC,SAAS,CAAC,MAAM,GAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAC9C,CAAC,CACL,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAS,gB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WAAW,EAAE,IAAI,CAAC,CAAC;gBACtD,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,IAAA,qBAAY,EAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;gBACjE,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,IAAI,cAAc,CAAC,IAAI,KAAK,CAAC,EAAE;oBAC3D,OAAO;iBACR;gBAED,6CAA6C;gBAC7C,EAAE;gBACF,QAAQ;gBACR,gCAAgC;gBAChC,MAAM;gBACN,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE;oBACxC,IAAI,cAAc,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE;wBACpC,OAAO;qBACR;iBACF;gBAED,MAAM,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;gBACnD,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;gBAErD,oEAAoE;gBACpE,EAAE;gBACF,QAAQ;gBACR,wCAAwC;gBACxC,eAAe;gBACf,MAAM;gBACN,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE;oBACxC,IAAI,cAAc,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE;wBACzC,OAAO;qBACR;iBACF;gBAED,IACE,YAAY,CAAC,aAAa,EAAE,KAAK,CAAC;oBAClC,YAAY,CAAC,cAAc,EAAE,IAAI,CAAC,EAClC;oBACA,OAAO,CAAC,MAAM,CAAC;wBACb,SAAS,EAAE,YAAY;wBACvB,IAAI;qBACL,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js deleted file mode 100644 index 93e0b78d..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js +++ /dev/null @@ -1,126 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const util = __importStar(require("../util")); -const util_1 = require("../util"); -exports.default = util.createRule({ - name: 'no-unsafe-member-access', - meta: { - type: 'problem', - docs: { - description: 'Disallow member access on a value with type `any`', - recommended: 'error', - requiresTypeChecking: true, - }, - messages: { - unsafeMemberExpression: 'Unsafe member access {{property}} on an `any` value.', - unsafeThisMemberExpression: [ - 'Unsafe member access {{property}} on an `any` value. `this` is typed as `any`.', - 'You can try to fix this by turning on the `noImplicitThis` compiler option, or adding a `this` parameter to the function.', - ].join('\n'), - unsafeComputedMemberAccess: 'Computed name {{property}} resolves to an any value.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const { program, esTreeNodeToTSNodeMap } = util.getParserServices(context); - const checker = program.getTypeChecker(); - const compilerOptions = program.getCompilerOptions(); - const isNoImplicitThis = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'noImplicitThis'); - const sourceCode = context.getSourceCode(); - const stateCache = new Map(); - function checkMemberExpression(node) { - const cachedState = stateCache.get(node); - if (cachedState) { - return cachedState; - } - if (node.object.type === utils_1.AST_NODE_TYPES.MemberExpression) { - const objectState = checkMemberExpression(node.object); - if (objectState === 1 /* State.Unsafe */) { - // if the object is unsafe, we know this will be unsafe as well - // we don't need to report, as we have already reported on the inner member expr - stateCache.set(node, objectState); - return objectState; - } - } - const tsNode = esTreeNodeToTSNodeMap.get(node.object); - const type = checker.getTypeAtLocation(tsNode); - const state = util.isTypeAnyType(type) ? 1 /* State.Unsafe */ : 2 /* State.Safe */; - stateCache.set(node, state); - if (state === 1 /* State.Unsafe */) { - const propertyName = sourceCode.getText(node.property); - let messageId = 'unsafeMemberExpression'; - if (!isNoImplicitThis) { - // `this.foo` or `this.foo[bar]` - const thisExpression = (0, util_1.getThisExpression)(node); - if (thisExpression && - util.isTypeAnyType(util.getConstrainedTypeAtLocation(checker, esTreeNodeToTSNodeMap.get(thisExpression)))) { - messageId = 'unsafeThisMemberExpression'; - } - } - context.report({ - node, - messageId, - data: { - property: node.computed ? `[${propertyName}]` : `.${propertyName}`, - }, - }); - } - return state; - } - return { - // ignore MemberExpression if it's parent is TSClassImplements or TSInterfaceHeritage - ':not(TSClassImplements, TSInterfaceHeritage) > MemberExpression': checkMemberExpression, - 'MemberExpression[computed = true] > *.property'(node) { - if ( - // x[1] - node.type === utils_1.AST_NODE_TYPES.Literal || - // x[1++] x[++x] etc - // FUN FACT - **all** update expressions return type number, regardless of the argument's type, - // because JS engines return NaN if there the argument is not a number. - node.type === utils_1.AST_NODE_TYPES.UpdateExpression) { - // perf optimizations - literals can obviously never be `any` - return; - } - const tsNode = esTreeNodeToTSNodeMap.get(node); - const type = checker.getTypeAtLocation(tsNode); - if (util.isTypeAnyType(type)) { - const propertyName = sourceCode.getText(node); - context.report({ - node, - messageId: 'unsafeComputedMemberAccess', - data: { - property: `[${propertyName}]`, - }, - }); - } - }, - }; - }, -}); -//# sourceMappingURL=no-unsafe-member-access.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js.map deleted file mode 100644 index 5a632979..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-member-access.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unsafe-member-access.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-member-access.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,iDAAmC;AAEnC,8CAAgC;AAChC,kCAA4C;AAO5C,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,mDAAmD;YAChE,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,sBAAsB,EACpB,sDAAsD;YACxD,0BAA0B,EAAE;gBAC1B,gFAAgF;gBAChF,2HAA2H;aAC5H,CAAC,IAAI,CAAC,IAAI,CAAC;YACZ,0BAA0B,EACxB,sDAAsD;SACzD;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,EAAE,OAAO,EAAE,qBAAqB,EAAE,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3E,MAAM,OAAO,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;QACzC,MAAM,eAAe,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC;QACrD,MAAM,gBAAgB,GAAG,OAAO,CAAC,6BAA6B,CAC5D,eAAe,EACf,gBAAgB,CACjB,CAAC;QACF,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAE3C,MAAM,UAAU,GAAG,IAAI,GAAG,EAAwB,CAAC;QAEnD,SAAS,qBAAqB,CAAC,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AC;oBACb,IAAI;oBACJ,SAAS;oBACT,IAAI,EAAE;wBACJ,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,YAAY,GAAG,CAAC,CAAC,CAAC,IAAI,YAAY,EAAE;qBACnE;iBACF,CAAC,CAAC;aACJ;YAED,OAAO,KAAK,CAAC;QACf,CAAC;QAED,OAAO;YACL,qFAAqF;YACrF,iEAAiE,EAC/D,qBAAqB;YACvB,gDAAgD,CAC9C,IAAyB;gBAEzB;gBACE,OAAO;gBACP,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO;oBACpC,oBAAoB;oBACpB,+FAA+F;oBAC/F,uEAAuE;oBACvE,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAC7C;oBACA,6DAA6D;oBAC7D,OAAO;iBACR;gBAED,MAAM,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAC/C,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;gBAE/C,IAAI,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE;oBAC5B,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBAC9C,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,4BAA4B;wBACvC,IAAI,EAAE;4BACJ,QAAQ,EAAE,IAAI,YAAY,GAAG;yBAC9B;qBACF,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js deleted file mode 100644 index 5f12c40d..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js +++ /dev/null @@ -1,159 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const util = __importStar(require("../util")); -const util_1 = require("../util"); -exports.default = util.createRule({ - name: 'no-unsafe-return', - meta: { - type: 'problem', - docs: { - description: 'Disallow returning a value with type `any` from a function', - recommended: 'error', - requiresTypeChecking: true, - }, - messages: { - unsafeReturn: 'Unsafe return of an `{{type}}` typed value.', - unsafeReturnThis: [ - 'Unsafe return of an `{{type}}` typed value. `this` is typed as `any`.', - 'You can try to fix this by turning on the `noImplicitThis` compiler option, or adding a `this` parameter to the function.', - ].join('\n'), - unsafeReturnAssignment: 'Unsafe return of type `{{sender}}` from function with return type `{{receiver}}`.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const { program, esTreeNodeToTSNodeMap } = util.getParserServices(context); - const checker = program.getTypeChecker(); - const compilerOptions = program.getCompilerOptions(); - const isNoImplicitThis = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'noImplicitThis'); - function getParentFunctionNode(node) { - let current = node.parent; - while (current) { - if (current.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression || - current.type === utils_1.AST_NODE_TYPES.FunctionDeclaration || - current.type === utils_1.AST_NODE_TYPES.FunctionExpression) { - return current; - } - current = current.parent; - } - // this shouldn't happen in correct code, but someone may attempt to parse bad code - // the parser won't error, so we shouldn't throw here - /* istanbul ignore next */ return null; - } - function checkReturn(returnNode, reportingNode = returnNode) { - const tsNode = esTreeNodeToTSNodeMap.get(returnNode); - const anyType = util.isAnyOrAnyArrayTypeDiscriminated(tsNode, checker); - const functionNode = getParentFunctionNode(returnNode); - /* istanbul ignore if */ if (!functionNode) { - return; - } - // function has an explicit return type, so ensure it's a safe return - const returnNodeType = util.getConstrainedTypeAtLocation(checker, esTreeNodeToTSNodeMap.get(returnNode)); - const functionTSNode = esTreeNodeToTSNodeMap.get(functionNode); - // function expressions will not have their return type modified based on receiver typing - // so we have to use the contextual typing in these cases, i.e. - // const foo1: () => Set = () => new Set(); - // the return type of the arrow function is Set even though the variable is typed as Set - let functionType = tsutils.isExpression(functionTSNode) - ? util.getContextualType(checker, functionTSNode) - : checker.getTypeAtLocation(functionTSNode); - if (!functionType) { - functionType = checker.getTypeAtLocation(functionTSNode); - } - // If there is an explicit type annotation *and* that type matches the actual - // function return type, we shouldn't complain (it's intentional, even if unsafe) - if (functionTSNode.type) { - for (const signature of functionType.getCallSignatures()) { - if (returnNodeType === signature.getReturnType()) { - return; - } - } - } - if (anyType !== util.AnyType.Safe) { - // Allow cases when the declared return type of the function is either unknown or unknown[] - // and the function is returning any or any[]. - for (const signature of functionType.getCallSignatures()) { - const functionReturnType = signature.getReturnType(); - if (anyType === util.AnyType.Any && - util.isTypeUnknownType(functionReturnType)) { - return; - } - if (anyType === util.AnyType.AnyArray && - util.isTypeUnknownArrayType(functionReturnType, checker)) { - return; - } - } - let messageId = 'unsafeReturn'; - if (!isNoImplicitThis) { - // `return this` - const thisExpression = (0, util_1.getThisExpression)(returnNode); - if (thisExpression && - util.isTypeAnyType(util.getConstrainedTypeAtLocation(checker, esTreeNodeToTSNodeMap.get(thisExpression)))) { - messageId = 'unsafeReturnThis'; - } - } - // If the function return type was not unknown/unknown[], mark usage as unsafeReturn. - return context.report({ - node: reportingNode, - messageId, - data: { - type: anyType === util.AnyType.Any ? 'any' : 'any[]', - }, - }); - } - for (const signature of functionType.getCallSignatures()) { - const functionReturnType = signature.getReturnType(); - const result = util.isUnsafeAssignment(returnNodeType, functionReturnType, checker, returnNode); - if (!result) { - return; - } - const { sender, receiver } = result; - return context.report({ - node: reportingNode, - messageId: 'unsafeReturnAssignment', - data: { - sender: checker.typeToString(sender), - receiver: checker.typeToString(receiver), - }, - }); - } - } - return { - ReturnStatement(node) { - const argument = node.argument; - if (!argument) { - return; - } - checkReturn(argument, node); - }, - 'ArrowFunctionExpression > :not(BlockStatement).body': checkReturn, - }; - }, -}); -//# sourceMappingURL=no-unsafe-return.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js.map deleted file mode 100644 index 86d1f888..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unsafe-return.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-return.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,iDAAmC;AAEnC,8CAAgC;AAChC,kCAA4C;AAE5C,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,4DAA4D;YACzE,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,YAAY,EAAE,6CAA6C;YAC3D,gBAAgB,EAAE;gBAChB,uEAAuE;gBACvE,2HAA2H;aAC5H,CAAC,IAAI,CAAC,I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C/B,IAAI,CAAC,QAAQ,EAAE;oBACb,OAAO;iBACR;gBAED,WAAW,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YAC9B,CAAC;YACD,qDAAqD,EAAE,WAAW;SACnE,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js deleted file mode 100644 index 3faa9311..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var _a; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-unused-expressions'); -exports.default = util.createRule({ - name: 'no-unused-expressions', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow unused expressions', - recommended: false, - extendsBaseRule: true, - }, - hasSuggestions: baseRule.meta.hasSuggestions, - schema: baseRule.meta.schema, - // TODO: this rule has only had messages since v7.0 - remove this when we remove support for v6 - messages: (_a = baseRule.meta.messages) !== null && _a !== void 0 ? _a : { - unusedExpression: 'Expected an assignment or function call and instead saw an expression.', - }, - }, - defaultOptions: [ - { - allowShortCircuit: false, - allowTernary: false, - allowTaggedTemplates: false, - }, - ], - create(context, [{ allowShortCircuit = false, allowTernary = false }]) { - const rules = baseRule.create(context); - function isValidExpression(node) { - if (allowShortCircuit && node.type === utils_1.AST_NODE_TYPES.LogicalExpression) { - return isValidExpression(node.right); - } - if (allowTernary && node.type === utils_1.AST_NODE_TYPES.ConditionalExpression) { - return (isValidExpression(node.alternate) && - isValidExpression(node.consequent)); - } - return ((node.type === utils_1.AST_NODE_TYPES.ChainExpression && - node.expression.type === utils_1.AST_NODE_TYPES.CallExpression) || - node.type === utils_1.AST_NODE_TYPES.ImportExpression); - } - return { - ExpressionStatement(node) { - if (node.directive || isValidExpression(node.expression)) { - return; - } - rules.ExpressionStatement(node); - }, - }; - }, -}); -//# sourceMappingURL=no-unused-expressions.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js.map deleted file mode 100644 index 415bc833..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-expressions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unused-expressions.js","sourceRoot":"","sources":["../../src/rules/no-unused-expressions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAChC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,uBAAuB,CAAC,CAAC;AAK5D,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,E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,IAAI,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;oBACxD,OAAO;iBACR;gBAED,KAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;YAClC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js deleted file mode 100644 index e232a121..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js +++ /dev/null @@ -1,532 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-unused-vars', - meta: { - type: 'problem', - docs: { - description: 'Disallow unused variables', - recommended: 'warn', - extendsBaseRule: true, - }, - schema: [ - { - oneOf: [ - { - enum: ['all', 'local'], - }, - { - type: 'object', - properties: { - vars: { - enum: ['all', 'local'], - }, - varsIgnorePattern: { - type: 'string', - }, - args: { - enum: ['all', 'after-used', 'none'], - }, - ignoreRestSiblings: { - type: 'boolean', - }, - argsIgnorePattern: { - type: 'string', - }, - caughtErrors: { - enum: ['all', 'none'], - }, - caughtErrorsIgnorePattern: { - type: 'string', - }, - destructuredArrayIgnorePattern: { - type: 'string', - }, - }, - additionalProperties: false, - }, - ], - }, - ], - messages: { - unusedVar: "'{{varName}}' is {{action}} but never used{{additional}}.", - }, - }, - defaultOptions: [{}], - create(context, [firstOption]) { - const filename = context.getFilename(); - const sourceCode = context.getSourceCode(); - const MODULE_DECL_CACHE = new Map(); - const options = (() => { - var _a, _b, _c, _d; - const options = { - vars: 'all', - args: 'after-used', - ignoreRestSiblings: false, - caughtErrors: 'none', - }; - if (firstOption) { - if (typeof firstOption === 'string') { - options.vars = firstOption; - } - else { - options.vars = (_a = firstOption.vars) !== null && _a !== void 0 ? _a : options.vars; - options.args = (_b = firstOption.args) !== null && _b !== void 0 ? _b : options.args; - options.ignoreRestSiblings = - (_c = firstOption.ignoreRestSiblings) !== null && _c !== void 0 ? _c : options.ignoreRestSiblings; - options.caughtErrors = - (_d = firstOption.caughtErrors) !== null && _d !== void 0 ? _d : options.caughtErrors; - if (firstOption.varsIgnorePattern) { - options.varsIgnorePattern = new RegExp(firstOption.varsIgnorePattern, 'u'); - } - if (firstOption.argsIgnorePattern) { - options.argsIgnorePattern = new RegExp(firstOption.argsIgnorePattern, 'u'); - } - if (firstOption.caughtErrorsIgnorePattern) { - options.caughtErrorsIgnorePattern = new RegExp(firstOption.caughtErrorsIgnorePattern, 'u'); - } - if (firstOption.destructuredArrayIgnorePattern) { - options.destructuredArrayIgnorePattern = new RegExp(firstOption.destructuredArrayIgnorePattern, 'u'); - } - } - } - return options; - })(); - function collectUnusedVariables() { - var _a, _b, _c, _d, _e; - /** - * Checks whether a node is a sibling of the rest property or not. - * @param {ASTNode} node a node to check - * @returns {boolean} True if the node is a sibling of the rest property, otherwise false. - */ - function hasRestSibling(node) { - var _a; - return (node.type === utils_1.AST_NODE_TYPES.Property && - ((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.ObjectPattern && - node.parent.properties[node.parent.properties.length - 1].type === - utils_1.AST_NODE_TYPES.RestElement); - } - /** - * Determines if a variable has a sibling rest property - * @param variable eslint-scope variable object. - * @returns True if the variable is exported, false if not. - */ - function hasRestSpreadSibling(variable) { - if (options.ignoreRestSiblings) { - const hasRestSiblingDefinition = variable.defs.some(def => hasRestSibling(def.name.parent)); - const hasRestSiblingReference = variable.references.some(ref => hasRestSibling(ref.identifier.parent)); - return hasRestSiblingDefinition || hasRestSiblingReference; - } - return false; - } - /** - * Checks whether the given variable is after the last used parameter. - * @param variable The variable to check. - * @returns `true` if the variable is defined after the last used parameter. - */ - function isAfterLastUsedArg(variable) { - const def = variable.defs[0]; - const params = context.getDeclaredVariables(def.node); - const posteriorParams = params.slice(params.indexOf(variable) + 1); - // If any used parameters occur after this parameter, do not report. - return !posteriorParams.some(v => v.references.length > 0 || v.eslintUsed); - } - const unusedVariablesOriginal = util.collectUnusedVariables(context); - const unusedVariablesReturn = []; - for (const variable of unusedVariablesOriginal) { - // explicit global variables don't have definitions. - if (variable.defs.length === 0) { - unusedVariablesReturn.push(variable); - continue; - } - const def = variable.defs[0]; - if (variable.scope.type === utils_1.TSESLint.Scope.ScopeType.global && - options.vars === 'local') { - // skip variables in the global scope if configured to - continue; - } - const refUsedInArrayPatterns = variable.references.some(ref => { var _a; return ((_a = ref.identifier.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.ArrayPattern; }); - // skip elements of array destructuring patterns - if ((((_a = def.name.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.ArrayPattern || - refUsedInArrayPatterns) && - 'name' in def.name && - ((_b = options.destructuredArrayIgnorePattern) === null || _b === void 0 ? void 0 : _b.test(def.name.name))) { - continue; - } - // skip catch variables - if (def.type === utils_1.TSESLint.Scope.DefinitionType.CatchClause) { - if (options.caughtErrors === 'none') { - continue; - } - // skip ignored parameters - if ('name' in def.name && - ((_c = options.caughtErrorsIgnorePattern) === null || _c === void 0 ? void 0 : _c.test(def.name.name))) { - continue; - } - } - if (def.type === utils_1.TSESLint.Scope.DefinitionType.Parameter) { - // if "args" option is "none", skip any parameter - if (options.args === 'none') { - continue; - } - // skip ignored parameters - if ('name' in def.name && - ((_d = options.argsIgnorePattern) === null || _d === void 0 ? void 0 : _d.test(def.name.name))) { - continue; - } - // if "args" option is "after-used", skip used variables - if (options.args === 'after-used' && - util.isFunction(def.name.parent) && - !isAfterLastUsedArg(variable)) { - continue; - } - } - else { - // skip ignored variables - if ('name' in def.name && - ((_e = options.varsIgnorePattern) === null || _e === void 0 ? void 0 : _e.test(def.name.name))) { - continue; - } - } - if (hasRestSpreadSibling(variable)) { - continue; - } - // in case another rule has run and used the collectUnusedVariables, - // we want to ensure our selectors that marked variables as used are respected - if (variable.eslintUsed) { - continue; - } - unusedVariablesReturn.push(variable); - } - return unusedVariablesReturn; - } - return { - // declaration file handling - [ambientDeclarationSelector(utils_1.AST_NODE_TYPES.Program, true)](node) { - if (!util.isDefinitionFile(filename)) { - return; - } - markDeclarationChildAsUsed(node); - }, - // module declaration in module declaration should not report unused vars error - // this is workaround as this change should be done in better way - 'TSModuleDeclaration > TSModuleDeclaration'(node) { - if (node.id.type === utils_1.AST_NODE_TYPES.Identifier) { - let scope = context.getScope(); - if (scope.upper) { - scope = scope.upper; - } - const superVar = scope.set.get(node.id.name); - if (superVar) { - superVar.eslintUsed = true; - } - } - }, - // children of a namespace that is a child of a declared namespace are auto-exported - [ambientDeclarationSelector('TSModuleDeclaration[declare = true] > TSModuleBlock TSModuleDeclaration > TSModuleBlock', false)](node) { - markDeclarationChildAsUsed(node); - }, - // declared namespace handling - [ambientDeclarationSelector('TSModuleDeclaration[declare = true] > TSModuleBlock', false)](node) { - var _a; - const moduleDecl = util.nullThrows((_a = node.parent) === null || _a === void 0 ? void 0 : _a.parent, util.NullThrowsReasons.MissingParent); - // declared ambient modules with an `export =` statement will only export that one thing - // all other statements are not automatically exported in this case - if (moduleDecl.id.type === utils_1.AST_NODE_TYPES.Literal && - checkModuleDeclForExportEquals(moduleDecl)) { - return; - } - markDeclarationChildAsUsed(node); - }, - // collect - 'Program:exit'(programNode) { - /** - * Generates the message data about the variable being defined and unused, - * including the ignore pattern if configured. - * @param unusedVar eslint-scope variable object. - * @returns The message data to be used with this unused variable. - */ - function getDefinedMessageData(unusedVar) { - var _a; - const defType = (_a = unusedVar === null || unusedVar === void 0 ? void 0 : unusedVar.defs[0]) === null || _a === void 0 ? void 0 : _a.type; - let type; - let pattern; - if (defType === utils_1.TSESLint.Scope.DefinitionType.CatchClause && - options.caughtErrorsIgnorePattern) { - type = 'args'; - pattern = options.caughtErrorsIgnorePattern.toString(); - } - else if (defType === utils_1.TSESLint.Scope.DefinitionType.Parameter && - options.argsIgnorePattern) { - type = 'args'; - pattern = options.argsIgnorePattern.toString(); - } - else if (defType !== utils_1.TSESLint.Scope.DefinitionType.Parameter && - options.varsIgnorePattern) { - type = 'vars'; - pattern = options.varsIgnorePattern.toString(); - } - const additional = type - ? `. Allowed unused ${type} must match ${pattern}` - : ''; - return { - varName: unusedVar.name, - action: 'defined', - additional, - }; - } - /** - * Generate the warning message about the variable being - * assigned and unused, including the ignore pattern if configured. - * @param unusedVar eslint-scope variable object. - * @returns The message data to be used with this unused variable. - */ - function getAssignedMessageData(unusedVar) { - var _a; - const def = unusedVar.defs[0]; - let additional = ''; - if (options.destructuredArrayIgnorePattern && - ((_a = def === null || def === void 0 ? void 0 : def.name.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.ArrayPattern) { - additional = `. Allowed unused elements of array destructuring patterns must match ${options.destructuredArrayIgnorePattern.toString()}`; - } - else if (options.varsIgnorePattern) { - additional = `. Allowed unused vars must match ${options.varsIgnorePattern.toString()}`; - } - return { - varName: unusedVar.name, - action: 'assigned a value', - additional, - }; - } - const unusedVars = collectUnusedVariables(); - for (const unusedVar of unusedVars) { - // Report the first declaration. - if (unusedVar.defs.length > 0) { - const writeReferences = unusedVar.references.filter(ref => ref.isWrite() && - ref.from.variableScope === unusedVar.scope.variableScope); - context.report({ - node: writeReferences.length - ? writeReferences[writeReferences.length - 1].identifier - : unusedVar.identifiers[0], - messageId: 'unusedVar', - data: unusedVar.references.some(ref => ref.isWrite()) - ? getAssignedMessageData(unusedVar) - : getDefinedMessageData(unusedVar), - }); - // If there are no regular declaration, report the first `/*globals*/` comment directive. - } - else if ('eslintExplicitGlobalComments' in unusedVar && - unusedVar.eslintExplicitGlobalComments) { - const directiveComment = unusedVar.eslintExplicitGlobalComments[0]; - context.report({ - node: programNode, - loc: util.getNameLocationInGlobalDirectiveComment(sourceCode, directiveComment, unusedVar.name), - messageId: 'unusedVar', - data: getDefinedMessageData(unusedVar), - }); - } - } - }, - }; - function checkModuleDeclForExportEquals(node) { - const cached = MODULE_DECL_CACHE.get(node); - if (cached != null) { - return cached; - } - if (node.body && node.body.type === utils_1.AST_NODE_TYPES.TSModuleBlock) { - for (const statement of node.body.body) { - if (statement.type === utils_1.AST_NODE_TYPES.TSExportAssignment) { - MODULE_DECL_CACHE.set(node, true); - return true; - } - } - } - MODULE_DECL_CACHE.set(node, false); - return false; - } - function ambientDeclarationSelector(parent, childDeclare) { - return [ - // Types are ambiently exported - `${parent} > :matches(${[ - utils_1.AST_NODE_TYPES.TSInterfaceDeclaration, - utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration, - ].join(', ')})`, - // Value things are ambiently exported if they are "declare"d - `${parent} > :matches(${[ - utils_1.AST_NODE_TYPES.ClassDeclaration, - utils_1.AST_NODE_TYPES.TSDeclareFunction, - utils_1.AST_NODE_TYPES.TSEnumDeclaration, - utils_1.AST_NODE_TYPES.TSModuleDeclaration, - utils_1.AST_NODE_TYPES.VariableDeclaration, - ].join(', ')})${childDeclare ? '[declare = true]' : ''}`, - ].join(', '); - } - function markDeclarationChildAsUsed(node) { - var _a; - const identifiers = []; - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSInterfaceDeclaration: - case utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration: - case utils_1.AST_NODE_TYPES.ClassDeclaration: - case utils_1.AST_NODE_TYPES.FunctionDeclaration: - case utils_1.AST_NODE_TYPES.TSDeclareFunction: - case utils_1.AST_NODE_TYPES.TSEnumDeclaration: - case utils_1.AST_NODE_TYPES.TSModuleDeclaration: - if (((_a = node.id) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.Identifier) { - identifiers.push(node.id); - } - break; - case utils_1.AST_NODE_TYPES.VariableDeclaration: - for (const declaration of node.declarations) { - visitPattern(declaration, pattern => { - identifiers.push(pattern); - }); - } - break; - } - let scope = context.getScope(); - const shouldUseUpperScope = [ - utils_1.AST_NODE_TYPES.TSModuleDeclaration, - utils_1.AST_NODE_TYPES.TSDeclareFunction, - ].includes(node.type); - if (scope.variableScope !== scope) { - scope = scope.variableScope; - } - else if (shouldUseUpperScope && scope.upper) { - scope = scope.upper; - } - for (const id of identifiers) { - const superVar = scope.set.get(id.name); - if (superVar) { - superVar.eslintUsed = true; - } - } - } - function visitPattern(node, cb) { - const visitor = new scope_manager_1.PatternVisitor({}, node, cb); - visitor.visit(node); - } - }, -}); -/* - -###### TODO ###### - -Edge cases that aren't currently handled due to laziness and them being super edgy edge cases - - ---- function params referenced in typeof type refs in the function declaration --- ---- NOTE - TS gets these cases wrong - -function _foo( - arg: number // arg should be unused -): typeof arg { - return 1 as any; -} - -function _bar( - arg: number, // arg should be unused - _arg2: typeof arg, -) {} - - ---- function names referenced in typeof type refs in the function declaration --- ---- NOTE - TS gets these cases right - -function foo( // foo should be unused -): typeof foo { - return 1 as any; -} - -function bar( // bar should be unused - _arg: typeof bar -) {} - - ---- if an interface is merged into a namespace --- ---- NOTE - TS gets these cases wrong - -namespace Test { - interface Foo { // Foo should be unused here - a: string; - } - export namespace Foo { - export type T = 'b'; - } -} -type T = Test.Foo; // Error: Namespace 'Test' has no exported member 'Foo'. - - -namespace Test { - export interface Foo { - a: string; - } - namespace Foo { // Foo should be unused here - export type T = 'b'; - } -} -type T = Test.Foo.T; // Error: Namespace 'Test' has no exported member 'Foo'. - -*/ -/* - -###### TODO ###### - -We currently extend base `no-unused-vars` implementation because it's easier and lighter-weight. - -Because of this, there are a few false-negatives which won't get caught. -We could fix these if we fork the base rule; but that's a lot of code (~650 lines) to add in. -I didn't want to do that just yet without some real-world issues, considering these are pretty rare edge-cases. - -These cases are mishandled because the base rule assumes that each variable has one def, but type-value shadowing -creates a variable with two defs - ---- type-only or value-only references to type/value shadowed variables --- ---- NOTE - TS gets these cases wrong - -type T = 1; -const T = 2; // this T should be unused - -type U = T; // this U should be unused -const U = 3; - -const _V = U; - - ---- partially exported type/value shadowed variables --- ---- NOTE - TS gets these cases wrong - -export interface Foo {} -const Foo = 1; // this Foo should be unused - -interface Bar {} // this Bar should be unused -export const Bar = 1; - -*/ -//# sourceMappingURL=no-unused-vars.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map deleted file mode 100644 index be96e0a7..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unused-vars.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-unused-vars.js","sourceRoot":"","sources":["../../src/rules/no-unused-vars.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oEAAkE;AAElE,oDAAoE;AAEpE,8CAAgC;AA6BhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,2BAA2B;YACxC,WAAW,EAAE,MAAM;YACnB,eAAe,EAAE,IAAI;SACtB;QACD,MAAM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AAG;gBAC1B,sBAAc,CAAC,mBAAmB;gBAClC,sBAAc,CAAC,iBAAiB;aACjC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAEtB,IAAI,KAAK,CAAC,aAAa,KAAK,KAAK,EAAE;gBACjC,KAAK,GAAG,KAAK,CAAC,aAAa,CAAC;aAC7B;iBAAM,IAAI,mBAAmB,IAAI,KAAK,CAAC,KAAK,EAAE;gBAC7C,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;aACrB;YAED,KAAK,MAAM,EAAE,IAAI,WAAW,EAAE;gBAC5B,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;gBACxC,IAAI,QAAQ,EAAE;oBACZ,QAAQ,CAAC,UAAU,GAAG,IAAI,CAAC;iBAC5B;aACF;QACH,CAAC;QAED,SAAS,YAAY,CACnB,IAAmB,EACnB,EAAuC;YAEvC,MAAM,OAAO,GAAG,IAAI,8BAAc,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;YACjD,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACtB,CAAC;IACH,CAAC;CACF,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2DE;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCE"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js deleted file mode 100644 index 6c65f3bf..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js +++ /dev/null @@ -1,328 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const SENTINEL_TYPE = /^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/; -/** - * Parses a given value as options. - */ -function parseOptions(options) { - let functions = true; - let classes = true; - let enums = true; - let variables = true; - let typedefs = true; - let ignoreTypeReferences = true; - let allowNamedExports = false; - if (typeof options === 'string') { - functions = options !== 'nofunc'; - } - else if (typeof options === 'object' && options != null) { - functions = options.functions !== false; - classes = options.classes !== false; - enums = options.enums !== false; - variables = options.variables !== false; - typedefs = options.typedefs !== false; - ignoreTypeReferences = options.ignoreTypeReferences !== false; - allowNamedExports = options.allowNamedExports !== false; - } - return { - functions, - classes, - enums, - variables, - typedefs, - ignoreTypeReferences, - allowNamedExports, - }; -} -/** - * Checks whether or not a given variable is a function declaration. - */ -function isFunction(variable) { - return variable.defs[0].type === scope_manager_1.DefinitionType.FunctionName; -} -/** - * Checks whether or not a given variable is a type declaration. - */ -function isTypedef(variable) { - return variable.defs[0].type === scope_manager_1.DefinitionType.Type; -} -/** - * Checks whether or not a given variable is a enum declaration. - */ -function isOuterEnum(variable, reference) { - return (variable.defs[0].type === scope_manager_1.DefinitionType.TSEnumName && - variable.scope.variableScope !== reference.from.variableScope); -} -/** - * Checks whether or not a given variable is a class declaration in an upper function scope. - */ -function isOuterClass(variable, reference) { - return (variable.defs[0].type === scope_manager_1.DefinitionType.ClassName && - variable.scope.variableScope !== reference.from.variableScope); -} -/** - * Checks whether or not a given variable is a variable declaration in an upper function scope. - */ -function isOuterVariable(variable, reference) { - return (variable.defs[0].type === scope_manager_1.DefinitionType.Variable && - variable.scope.variableScope !== reference.from.variableScope); -} -/** - * Checks whether or not a given reference is a export reference. - */ -function isNamedExports(reference) { - var _a; - const { identifier } = reference; - return (((_a = identifier.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.ExportSpecifier && - identifier.parent.local === identifier); -} -/** - * Recursively checks whether or not a given reference has a type query declaration among it's parents - */ -function referenceContainsTypeQuery(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSTypeQuery: - return true; - case utils_1.AST_NODE_TYPES.TSQualifiedName: - case utils_1.AST_NODE_TYPES.Identifier: - if (!node.parent) { - return false; - } - return referenceContainsTypeQuery(node.parent); - default: - // if we find a different node, there's no chance that we're in a TSTypeQuery - return false; - } -} -/** - * Checks whether or not a given reference is a type reference. - */ -function isTypeReference(reference) { - return (reference.isTypeReference || - referenceContainsTypeQuery(reference.identifier)); -} -/** - * Checks whether or not a given location is inside of the range of a given node. - */ -function isInRange(node, location) { - return !!node && node.range[0] <= location && location <= node.range[1]; -} -/** - * Decorators are transpiled such that the decorator is placed after the class declaration - * So it is considered safe - */ -function isClassRefInClassDecorator(variable, reference) { - if (variable.defs[0].type !== scope_manager_1.DefinitionType.ClassName) { - return false; - } - if (!variable.defs[0].node.decorators || - variable.defs[0].node.decorators.length === 0) { - return false; - } - for (const deco of variable.defs[0].node.decorators) { - if (reference.identifier.range[0] >= deco.range[0] && - reference.identifier.range[1] <= deco.range[1]) { - return true; - } - } - return false; -} -/** - * Checks whether or not a given reference is inside of the initializers of a given variable. - * - * @returns `true` in the following cases: - * - var a = a - * - var [a = a] = list - * - var {a = a} = obj - * - for (var a in a) {} - * - for (var a of a) {} - */ -function isInInitializer(variable, reference) { - var _a; - if (variable.scope !== reference.from) { - return false; - } - let node = variable.identifiers[0].parent; - const location = reference.identifier.range[1]; - while (node) { - if (node.type === utils_1.AST_NODE_TYPES.VariableDeclarator) { - if (isInRange(node.init, location)) { - return true; - } - if (((_a = node.parent) === null || _a === void 0 ? void 0 : _a.parent) && - (node.parent.parent.type === utils_1.AST_NODE_TYPES.ForInStatement || - node.parent.parent.type === utils_1.AST_NODE_TYPES.ForOfStatement) && - isInRange(node.parent.parent.right, location)) { - return true; - } - break; - } - else if (node.type === utils_1.AST_NODE_TYPES.AssignmentPattern) { - if (isInRange(node.right, location)) { - return true; - } - } - else if (SENTINEL_TYPE.test(node.type)) { - break; - } - node = node.parent; - } - return false; -} -exports.default = util.createRule({ - name: 'no-use-before-define', - meta: { - type: 'problem', - docs: { - description: 'Disallow the use of variables before they are defined', - recommended: false, - extendsBaseRule: true, - }, - messages: { - noUseBeforeDefine: "'{{name}}' was used before it was defined.", - }, - schema: [ - { - oneOf: [ - { - enum: ['nofunc'], - }, - { - type: 'object', - properties: { - functions: { type: 'boolean' }, - classes: { type: 'boolean' }, - enums: { type: 'boolean' }, - variables: { type: 'boolean' }, - typedefs: { type: 'boolean' }, - ignoreTypeReferences: { type: 'boolean' }, - allowNamedExports: { type: 'boolean' }, - }, - additionalProperties: false, - }, - ], - }, - ], - }, - defaultOptions: [ - { - functions: true, - classes: true, - enums: true, - variables: true, - typedefs: true, - ignoreTypeReferences: true, - allowNamedExports: false, - }, - ], - create(context, optionsWithDefault) { - const options = parseOptions(optionsWithDefault[0]); - /** - * Determines whether a given use-before-define case should be reported according to the options. - * @param variable The variable that gets used before being defined - * @param reference The reference to the variable - */ - function isForbidden(variable, reference) { - if (options.ignoreTypeReferences && isTypeReference(reference)) { - return false; - } - if (isFunction(variable)) { - return options.functions; - } - if (isOuterClass(variable, reference)) { - return options.classes; - } - if (isOuterVariable(variable, reference)) { - return options.variables; - } - if (isOuterEnum(variable, reference)) { - return options.enums; - } - if (isTypedef(variable)) { - return options.typedefs; - } - return true; - } - function isDefinedBeforeUse(variable, reference) { - return (variable.identifiers[0].range[1] <= reference.identifier.range[1] && - !isInInitializer(variable, reference)); - } - /** - * Finds and validates all variables in a given scope. - */ - function findVariablesInScope(scope) { - scope.references.forEach(reference => { - const variable = reference.resolved; - function report() { - context.report({ - node: reference.identifier, - messageId: 'noUseBeforeDefine', - data: { - name: reference.identifier.name, - }, - }); - } - // Skips when the reference is: - // - initializations. - // - referring to an undefined variable. - // - referring to a global environment variable (there're no identifiers). - // - located preceded by the variable (except in initializers). - // - allowed by options. - if (reference.init) { - return; - } - if (!options.allowNamedExports && isNamedExports(reference)) { - if (!variable || !isDefinedBeforeUse(variable, reference)) { - report(); - } - return; - } - if (!variable) { - return; - } - if (variable.identifiers.length === 0 || - isDefinedBeforeUse(variable, reference) || - !isForbidden(variable, reference) || - isClassRefInClassDecorator(variable, reference) || - reference.from.type === utils_1.TSESLint.Scope.ScopeType.functionType) { - return; - } - // Reports. - report(); - }); - scope.childScopes.forEach(findVariablesInScope); - } - return { - Program() { - findVariablesInScope(context.getScope()); - }, - }; - }, -}); -//# sourceMappingURL=no-use-before-define.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map deleted file mode 100644 index e584b691..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-use-before-define.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-use-before-define.js","sourceRoot":"","sources":["../../src/rules/no-use-before-define.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oEAAkE;AAElE,oDAAoE;AAEpE,8CAAgC;AAEhC,MAAM,aAAa,GACjB,iIA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L,CAAC;gBAED,+BAA+B;gBAC/B,qBAAqB;gBACrB,wCAAwC;gBACxC,0EAA0E;gBAC1E,+DAA+D;gBAC/D,wBAAwB;gBACxB,IAAI,SAAS,CAAC,IAAI,EAAE;oBAClB,OAAO;iBACR;gBAED,IAAI,CAAC,OAAO,CAAC,iBAAiB,IAAI,cAAc,CAAC,SAAS,CAAC,EAAE;oBAC3D,IAAI,CAAC,QAAQ,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE;wBACzD,MAAM,EAAE,CAAC;qBACV;oBACD,OAAO;iBACR;gBAED,IAAI,CAAC,QAAQ,EAAE;oBACb,OAAO;iBACR;gBAED,IACE,QAAQ,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC;oBACjC,kBAAkB,CAAC,QAAQ,EAAE,SAAS,CAAC;oBACvC,CAAC,WAAW,CAAC,QAAQ,EAAE,SAAS,CAAC;oBACjC,0BAA0B,CAAC,QAAQ,EAAE,SAAS,CAAC;oBAC/C,SAAS,CAAC,IAAI,CAAC,IAAI,KAAK,gBAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,YAAY,EAC7D;oBACA,OAAO;iBACR;gBAED,WAAW;gBACX,MAAM,EAAE,CAAC;YACX,CAAC,CAAC,CAAC;YAEH,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAClD,CAAC;QAED,OAAO;YACL,OAAO;gBACL,oBAAoB,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC3C,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js deleted file mode 100644 index a367422a..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js +++ /dev/null @@ -1,93 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var _a; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('no-useless-constructor'); -/** - * Check if method with accessibility is not useless - */ -function checkAccessibility(node) { - switch (node.accessibility) { - case 'protected': - case 'private': - return false; - case 'public': - if (node.parent && - node.parent.type === utils_1.AST_NODE_TYPES.ClassBody && - node.parent.parent && - 'superClass' in node.parent.parent && - node.parent.parent.superClass) { - return false; - } - break; - } - return true; -} -/** - * Check if method is not useless due to typescript parameter properties and decorators - */ -function checkParams(node) { - return !node.value.params.some(param => { - var _a; - return param.type === utils_1.AST_NODE_TYPES.TSParameterProperty || - ((_a = param.decorators) === null || _a === void 0 ? void 0 : _a.length); - }); -} -exports.default = util.createRule({ - name: 'no-useless-constructor', - meta: { - type: 'problem', - docs: { - description: 'Disallow unnecessary constructors', - recommended: 'strict', - extendsBaseRule: true, - }, - hasSuggestions: baseRule.meta.hasSuggestions, - schema: baseRule.meta.schema, - // TODO: this rule has only had messages since v7.0 - remove this when we remove support for v6 - messages: (_a = baseRule.meta.messages) !== null && _a !== void 0 ? _a : { - noUselessConstructor: 'Useless constructor.', - }, - }, - defaultOptions: [], - create(context) { - const rules = baseRule.create(context); - return { - MethodDefinition(node) { - if (node.value && - node.value.type === utils_1.AST_NODE_TYPES.FunctionExpression && - node.value.body && - checkAccessibility(node) && - checkParams(node)) { - rules.MethodDefinition(node); - } - }, - }; - }, -}); -//# sourceMappingURL=no-useless-constructor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js.map deleted file mode 100644 index fafaf735..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-constructor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-useless-constructor.js","sourceRoot":"","sources":["../../src/rules/no-useless-constructor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAChC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,wBAAwB,CAAC,CAAC;AAK7D;;GAEG;AACH,SAAS,kBAAkB,CAAC,IAA+B;IACzD,QAAQ,IAAI,CAAC,aAAa,EAAE;QAC1B,KAAK,WAAW,CAAC;QACjB,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC;QACf,KAAK,QAAQ;YACX,IACE,IAAI,CAAC,MAAM;gBACX,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,SAAS;gBAC7C,IAAI,CAAC,MAAM,CAAC,MAAM;gBAClB,YAAY,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM;gBAClC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,EAC7B;gBACA,OAAO,KAAK,CAAC;aACd;YACD,MAAM;KACT;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAAC,IAA+B;IAClD,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAC5B,KAAK,CAAC,EAAE;;QACN,OAAA,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB;aACjD,MAAA,KAAK,CAAC,UAAU,0CAAE,MAAM,CAAA,CAAA;KAAA,CAC3B,CAAC;AACJ,CAAC;AAED,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,mCAAmC;YAChD,WAAW,EAAE,QAAQ;YACrB,eAAe,EAAE,IAAI;SACtB;QACD,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM;QAC5B,+FAA+F;QAC/F,QAAQ,EAAE,MAAA,QAAQ,CAAC,IAAI,CAAC,QAAQ,mCAAI;YAClC,oBAAoB,EAAE,sBAAsB;SAC7C;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACvC,OAAO;YACL,gBAAgB,CAAC,IAAI;gBACnB,IACE,IAAI,CAAC,KAAK;oBACV,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB;oBACrD,IAAI,CAAC,KAAK,CAAC,IAAI;oBACf,kBAAkB,CAAC,IAAI,CAAC;oBACxB,WAAW,CAAC,IAAI,CAAC,EACjB;oBACA,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;iBAC9B;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js deleted file mode 100644 index bdad5552..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js +++ /dev/null @@ -1,90 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -function isEmptyExport(node) { - return (node.type === utils_1.AST_NODE_TYPES.ExportNamedDeclaration && - node.specifiers.length === 0 && - !node.declaration); -} -const exportOrImportNodeTypes = new Set([ - utils_1.AST_NODE_TYPES.ExportAllDeclaration, - utils_1.AST_NODE_TYPES.ExportDefaultDeclaration, - utils_1.AST_NODE_TYPES.ExportNamedDeclaration, - utils_1.AST_NODE_TYPES.ExportSpecifier, - utils_1.AST_NODE_TYPES.ImportDeclaration, - utils_1.AST_NODE_TYPES.TSExportAssignment, - utils_1.AST_NODE_TYPES.TSImportEqualsDeclaration, -]); -exports.default = util.createRule({ - name: 'no-useless-empty-export', - meta: { - docs: { - description: "Disallow empty exports that don't change anything in a module file", - recommended: false, - }, - fixable: 'code', - hasSuggestions: false, - messages: { - uselessExport: 'Empty export does nothing and can be removed.', - }, - schema: [], - type: 'suggestion', - }, - defaultOptions: [], - create(context) { - function checkNode(node) { - if (!Array.isArray(node.body)) { - return; - } - let emptyExport; - let foundOtherExport = false; - for (const statement of node.body) { - if (isEmptyExport(statement)) { - emptyExport = statement; - if (foundOtherExport) { - break; - } - } - else if (exportOrImportNodeTypes.has(statement.type)) { - foundOtherExport = true; - } - } - if (emptyExport && foundOtherExport) { - context.report({ - fix: fixer => fixer.remove(emptyExport), - messageId: 'uselessExport', - node: emptyExport, - }); - } - } - return { - Program: checkNode, - TSModuleDeclaration: checkNode, - }; - }, -}); -//# sourceMappingURL=no-useless-empty-export.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js.map deleted file mode 100644 index d6d851c1..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-useless-empty-export.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-useless-empty-export.js","sourceRoot":"","sources":["../../src/rules/no-useless-empty-export.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAEhC,SAAS,aAAa,CACpB,IAAmB;IAEnB,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,sBAAsB;QACnD,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC;QAC5B,CAAC,IAAI,CAAC,WAAW,CAClB,CAAC;AACJ,CAAC;AAED,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC;IACtC,sBAAc,CAAC,oBAAoB;IACnC,sBAAc,CAAC,wBAAwB;IACvC,sBAAc,CAAC,sBAAsB;IACrC,sBAAc,CAAC,eAAe;IAC9B,sBAAc,CAAC,iBAAiB;IAChC,sBAAc,CAAC,kBAAkB;IACjC,sBAAc,CAAC,yBAAyB;CACzC,CAAC,CAAC;AAEH,kB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/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js deleted file mode 100644 index 2e084e3e..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'no-var-requires', - meta: { - type: 'problem', - docs: { - description: 'Disallow `require` statements except in import statements', - recommended: 'error', - }, - messages: { - noVarReqs: 'Require statement not part of import statement.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - return { - 'CallExpression[callee.name="require"]'(node) { - var _a; - const parent = ((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.ChainExpression - ? node.parent.parent - : node.parent; - if (parent && - [ - utils_1.AST_NODE_TYPES.CallExpression, - utils_1.AST_NODE_TYPES.MemberExpression, - utils_1.AST_NODE_TYPES.NewExpression, - utils_1.AST_NODE_TYPES.TSAsExpression, - utils_1.AST_NODE_TYPES.TSTypeAssertion, - utils_1.AST_NODE_TYPES.VariableDeclarator, - ].includes(parent.type)) { - const variable = utils_1.ASTUtils.findVariable(context.getScope(), 'require'); - if (!(variable === null || variable === void 0 ? void 0 : variable.identifiers.length)) { - context.report({ - node, - messageId: 'noVarReqs', - }); - } - } - }, - }; - }, -}); -//# sourceMappingURL=no-var-requires.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js.map deleted file mode 100644 index e4b8dfb0..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-var-requires.js","sourceRoot":"","sources":["../../src/rules/no-var-requires.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAAoE;AAEpE,8CAAgC;AAKhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,2DAA2D;YACxE,WAAW,EAAE,OAAO;SACrB;QACD,QAAQ,EAAE;YACR,SAAS,EAAE,iDAAiD;SAC7D;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,uCAAuC,CACrC,IAA6B;;gBAE7B,MAAM,MAAM,GACV,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,IAAI,MAAK,sBAAc,CAAC,eAAe;oBAClD,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM;oBACpB,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;gBAElB,IACE,MAAM;oBACN;wBACE,sBAAc,CAAC,cAAc;wBAC7B,sBAAc,CAAC,gBAAgB;wBAC/B,sBAAc,CAAC,aAAa;wBAC5B,sBAAc,CAAC,cAAc;wBAC7B,sBAAc,CAAC,eAAe;wBAC9B,sBAAc,CAAC,kBAAkB;qBAClC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EACvB;oBACA,MAAM,QAAQ,GAAG,gBAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,SAAS,CAAC,CAAC;oBAEtE,IAAI,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,CAAC,MAAM,CAAA,EAAE;wBACjC,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI;4BACJ,SAAS,EAAE,WAAW;yBACvB,CAAC,CAAC;qBACJ;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js deleted file mode 100644 index 7979b0e6..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js +++ /dev/null @@ -1,123 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'non-nullable-type-assertion-style', - meta: { - docs: { - description: 'Enforce non-null assertions over explicit type casts', - recommended: 'strict', - requiresTypeChecking: true, - }, - fixable: 'code', - messages: { - preferNonNullAssertion: 'Use a ! assertion to more succinctly remove null and undefined from the type.', - }, - schema: [], - type: 'suggestion', - }, - defaultOptions: [], - create(context) { - const parserServices = util.getParserServices(context); - const checker = parserServices.program.getTypeChecker(); - const sourceCode = context.getSourceCode(); - const getTypesIfNotLoose = (node) => { - const type = checker.getTypeAtLocation(parserServices.esTreeNodeToTSNodeMap.get(node)); - if (tsutils.isTypeFlagSet(type, ts.TypeFlags.Any | ts.TypeFlags.Unknown)) { - return undefined; - } - return tsutils.unionTypeParts(type); - }; - const couldBeNullish = (type) => { - if (type.flags & ts.TypeFlags.TypeParameter) { - const constraint = type.getConstraint(); - return constraint == null || couldBeNullish(constraint); - } - else if (tsutils.isUnionType(type)) { - for (const part of type.types) { - if (couldBeNullish(part)) { - return true; - } - } - return false; - } - else { - return ((type.flags & (ts.TypeFlags.Null | ts.TypeFlags.Undefined)) !== 0); - } - }; - const sameTypeWithoutNullish = (assertedTypes, originalTypes) => { - const nonNullishOriginalTypes = originalTypes.filter(type => (type.flags & (ts.TypeFlags.Null | ts.TypeFlags.Undefined)) === 0); - if (nonNullishOriginalTypes.length === originalTypes.length) { - return false; - } - for (const assertedType of assertedTypes) { - if (couldBeNullish(assertedType) || - !nonNullishOriginalTypes.includes(assertedType)) { - return false; - } - } - for (const originalType of nonNullishOriginalTypes) { - if (!assertedTypes.includes(originalType)) { - return false; - } - } - return true; - }; - const isConstAssertion = (node) => { - return (node.typeAnnotation.type === utils_1.AST_NODE_TYPES.TSTypeReference && - node.typeAnnotation.typeName.type === utils_1.AST_NODE_TYPES.Identifier && - node.typeAnnotation.typeName.name === 'const'); - }; - return { - 'TSAsExpression, TSTypeAssertion'(node) { - if (isConstAssertion(node)) { - return; - } - const originalTypes = getTypesIfNotLoose(node.expression); - if (!originalTypes) { - return; - } - const assertedTypes = getTypesIfNotLoose(node.typeAnnotation); - if (!assertedTypes) { - return; - } - if (sameTypeWithoutNullish(assertedTypes, originalTypes)) { - context.report({ - fix(fixer) { - return fixer.replaceText(node, `${sourceCode.getText(node.expression)}!`); - }, - messageId: 'preferNonNullAssertion', - node, - }); - } - }, - }; - }, -}); -//# sourceMappingURL=non-nullable-type-assertion-style.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map deleted file mode 100644 index 905fb0ff..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/non-nullable-type-assertion-style.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"non-nullable-type-assertion-style.js","sourceRoot":"","sources":["../../src/rules/non-nullable-type-assertion-style.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,iDAAmC;AACnC,+CAAiC;AAEjC,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,mCAAmC;IACzC,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,sDAAsD;YACnE,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,sBAAsB,EACpB,+EAA+E;SAClF;QACD,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,YAAY;KACnB;IACD,cAAc,EAAE,EAAE;IAElB,MAAM,CAAC,OAAO;QACZ,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACvD,MAAM,OAAO,GAAG,cAA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D,IAAI,CAAC,aAAa,EAAE;oBAClB,OAAO;iBACR;gBAED,IAAI,sBAAsB,CAAC,aAAa,EAAE,aAAa,CAAC,EAAE;oBACxD,OAAO,CAAC,MAAM,CAAC;wBACb,GAAG,CAAC,KAAK;4BACP,OAAO,KAAK,CAAC,WAAW,CACtB,IAAI,EACJ,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAC1C,CAAC;wBACJ,CAAC;wBACD,SAAS,EAAE,wBAAwB;wBACnC,IAAI;qBACL,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js deleted file mode 100644 index 9401a09d..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js +++ /dev/null @@ -1,218 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('object-curly-spacing'); -exports.default = (0, util_1.createRule)({ - name: 'object-curly-spacing', - // eslint-disable-next-line eslint-plugin/prefer-message-ids,eslint-plugin/require-meta-type,eslint-plugin/require-meta-schema,eslint-plugin/require-meta-fixable -- all in base rule - https://github.com/not-an-aardvark/eslint-plugin-eslint-plugin/issues/274 - meta: Object.assign(Object.assign({}, baseRule.meta), { docs: { - description: 'Enforce consistent spacing inside braces', - recommended: false, - extendsBaseRule: true, - } }), - defaultOptions: ['never'], - create(context) { - // eslint-disable-next-line no-restricted-syntax -- Use raw options for extended rules. - const [firstOption, secondOption] = context.options; - const spaced = firstOption === 'always'; - const sourceCode = context.getSourceCode(); - /** - * Determines whether an option is set, relative to the spacing option. - * If spaced is "always", then check whether option is set to false. - * If spaced is "never", then check whether option is set to true. - * @param option The option to exclude. - * @returns Whether or not the property is excluded. - */ - function isOptionSet(option) { - return secondOption ? secondOption[option] === !spaced : false; - } - const options = { - spaced, - arraysInObjectsException: isOptionSet('arraysInObjects'), - objectsInObjectsException: isOptionSet('objectsInObjects'), - }; - //-------------------------------------------------------------------------- - // Helpers - //-------------------------------------------------------------------------- - /** - * Reports that there shouldn't be a space after the first token - * @param node The node to report in the event of an error. - * @param token The token to use for the report. - */ - function reportNoBeginningSpace(node, token) { - const nextToken = context - .getSourceCode() - .getTokenAfter(token, { includeComments: true }); - context.report({ - node, - loc: { start: token.loc.end, end: nextToken.loc.start }, - messageId: 'unexpectedSpaceAfter', - data: { - token: token.value, - }, - fix(fixer) { - return fixer.removeRange([token.range[1], nextToken.range[0]]); - }, - }); - } - /** - * Reports that there shouldn't be a space before the last token - * @param node The node to report in the event of an error. - * @param token The token to use for the report. - */ - function reportNoEndingSpace(node, token) { - const previousToken = context - .getSourceCode() - .getTokenBefore(token, { includeComments: true }); - context.report({ - node, - loc: { start: previousToken.loc.end, end: token.loc.start }, - messageId: 'unexpectedSpaceBefore', - data: { - token: token.value, - }, - fix(fixer) { - return fixer.removeRange([previousToken.range[1], token.range[0]]); - }, - }); - } - /** - * Reports that there should be a space after the first token - * @param node The node to report in the event of an error. - * @param token The token to use for the report. - */ - function reportRequiredBeginningSpace(node, token) { - context.report({ - node, - loc: token.loc, - messageId: 'requireSpaceAfter', - data: { - token: token.value, - }, - fix(fixer) { - return fixer.insertTextAfter(token, ' '); - }, - }); - } - /** - * Reports that there should be a space before the last token - * @param node The node to report in the event of an error. - * @param token The token to use for the report. - */ - function reportRequiredEndingSpace(node, token) { - context.report({ - node, - loc: token.loc, - messageId: 'requireSpaceBefore', - data: { - token: token.value, - }, - fix(fixer) { - return fixer.insertTextBefore(token, ' '); - }, - }); - } - /** - * Determines if spacing in curly braces is valid. - * @param node The AST node to check. - * @param first The first token to check (should be the opening brace) - * @param second The second token to check (should be first after the opening brace) - * @param penultimate The penultimate token to check (should be last before closing brace) - * @param last The last token to check (should be closing brace) - */ - function validateBraceSpacing(node, first, second, penultimate, last) { - if ((0, util_1.isTokenOnSameLine)(first, second)) { - const firstSpaced = sourceCode.isSpaceBetween(first, second); - const secondType = sourceCode.getNodeByRangeIndex(second.range[0]).type; - const openingCurlyBraceMustBeSpaced = options.arraysInObjectsException && - [ - utils_1.AST_NODE_TYPES.TSMappedType, - utils_1.AST_NODE_TYPES.TSIndexSignature, - ].includes(secondType) - ? !options.spaced - : options.spaced; - if (openingCurlyBraceMustBeSpaced && !firstSpaced) { - reportRequiredBeginningSpace(node, first); - } - if (!openingCurlyBraceMustBeSpaced && - firstSpaced && - second.type !== utils_1.AST_TOKEN_TYPES.Line) { - reportNoBeginningSpace(node, first); - } - } - if ((0, util_1.isTokenOnSameLine)(penultimate, last)) { - const shouldCheckPenultimate = (options.arraysInObjectsException && - (0, util_1.isClosingBracketToken)(penultimate)) || - (options.objectsInObjectsException && - (0, util_1.isClosingBraceToken)(penultimate)); - const penultimateType = shouldCheckPenultimate - ? sourceCode.getNodeByRangeIndex(penultimate.range[0]).type - : undefined; - const closingCurlyBraceMustBeSpaced = (options.arraysInObjectsException && - penultimateType === utils_1.AST_NODE_TYPES.TSTupleType) || - (options.objectsInObjectsException && - penultimateType !== undefined && - [ - utils_1.AST_NODE_TYPES.TSMappedType, - utils_1.AST_NODE_TYPES.TSTypeLiteral, - ].includes(penultimateType)) - ? !options.spaced - : options.spaced; - const lastSpaced = sourceCode.isSpaceBetween(penultimate, last); - if (closingCurlyBraceMustBeSpaced && !lastSpaced) { - reportRequiredEndingSpace(node, last); - } - if (!closingCurlyBraceMustBeSpaced && lastSpaced) { - reportNoEndingSpace(node, last); - } - } - } - /** - * Gets '}' token of an object node. - * - * Because the last token of object patterns might be a type annotation, - * this traverses tokens preceded by the last property, then returns the - * first '}' token. - * @param node The node to get. This node is an - * ObjectExpression or an ObjectPattern. And this node has one or - * more properties. - * @returns '}' token. - */ - function getClosingBraceOfObject(node) { - const lastProperty = node.members[node.members.length - 1]; - return sourceCode.getTokenAfter(lastProperty, util_1.isClosingBraceToken); - } - //-------------------------------------------------------------------------- - // Public - //-------------------------------------------------------------------------- - const rules = baseRule.create(context); - return Object.assign(Object.assign({}, rules), { TSMappedType(node) { - const first = sourceCode.getFirstToken(node); - const last = sourceCode.getLastToken(node); - const second = sourceCode.getTokenAfter(first, { - includeComments: true, - }); - const penultimate = sourceCode.getTokenBefore(last, { - includeComments: true, - }); - validateBraceSpacing(node, first, second, penultimate, last); - }, - TSTypeLiteral(node) { - if (node.members.length === 0) { - return; - } - const first = sourceCode.getFirstToken(node); - const last = getClosingBraceOfObject(node); - const second = sourceCode.getTokenAfter(first, { - includeComments: true, - }); - const penultimate = sourceCode.getTokenBefore(last, { - includeComments: true, - }); - validateBraceSpacing(node, first, second, penultimate, last); - } }); - }, -}); -//# sourceMappingURL=object-curly-spacing.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js.map deleted file mode 100644 index c800aba8..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/object-curly-spacing.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object-curly-spacing.js","sourceRoot":"","sources":["../../src/rules/object-curly-spacing.ts"],"names":[],"mappings":";;AACA,oDAA2E;AAM3E,kCAKiB;AACjB,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,sBAAsB,CAAC,CAAC;AAK3D,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,sBAAsB;IAC5B,iQAAiQ;IACjQ,IAAI,kCACC,QAAQ,CAAC,IAAI,KAChB,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;YACvD,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACt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ACR,YAAY,CAAC,IAA2B;gBACtC,MAAM,KAAK,GAAG,UAAU,CAAC,aAAa,CAAC,IAAI,CAAE,CAAC;gBAC9C,MAAM,IAAI,GAAG,UAAU,CAAC,YAAY,CAAC,IAAI,CAAE,CAAC;gBAC5C,MAAM,MAAM,GAAG,UAAU,CAAC,aAAa,CAAC,KAAK,EAAE;oBAC7C,eAAe,EAAE,IAAI;iBACtB,CAAE,CAAC;gBACJ,MAAM,WAAW,GAAG,UAAU,CAAC,cAAc,CAAC,IAAI,EAAE;oBAClD,eAAe,EAAE,IAAI;iBACtB,CAAE,CAAC;gBAEJ,oBAAoB,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;YAC/D,CAAC;YACD,aAAa,CAAC,IAA4B;gBACxC,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;oBAC7B,OAAO;iBACR;gBAED,MAAM,KAAK,GAAG,UAAU,CAAC,aAAa,CAAC,IAAI,CAAE,CAAC;gBAC9C,MAAM,IAAI,GAAG,uBAAuB,CAAC,IAAI,CAAE,CAAC;gBAC5C,MAAM,MAAM,GAAG,UAAU,CAAC,aAAa,CAAC,KAAK,EAAE;oBAC7C,eAAe,EAAE,IAAI;iBACtB,CAAE,CAAC;gBACJ,MAAM,WAAW,GAAG,UAAU,CAAC,cAAc,CAAC,IAAI,EAAE;oBAClD,eAAe,EAAE,IAAI;iBACtB,CAAE,CAAC;gBAEJ,oBAAoB,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;YAC/D,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js deleted file mode 100644 index d84a0efc..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js +++ /dev/null @@ -1,652 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const LT = `[${Array.from(new Set(['\r\n', '\r', '\n', '\u2028', '\u2029'])).join('')}]`; -const PADDING_LINE_SEQUENCE = new RegExp(String.raw `^(\s*?${LT})\s*${LT}(\s*;?)$`, 'u'); -/** - * Creates tester which check if a node starts with specific keyword with the - * appropriate AST_NODE_TYPES. - * @param keyword The keyword to test. - * @returns the created tester. - * @private - */ -function newKeywordTester(type, keyword) { - return { - test(node, sourceCode) { - var _a; - const isSameKeyword = ((_a = sourceCode.getFirstToken(node)) === null || _a === void 0 ? void 0 : _a.value) === keyword; - const isSameType = Array.isArray(type) - ? type.some(val => val === node.type) - : type === node.type; - return isSameKeyword && isSameType; - }, - }; -} -/** - * Creates tester which check if a node starts with specific keyword and spans a single line. - * @param keyword The keyword to test. - * @returns the created tester. - * @private - */ -function newSinglelineKeywordTester(keyword) { - return { - test(node, sourceCode) { - return (node.loc.start.line === node.loc.end.line && - sourceCode.getFirstToken(node).value === keyword); - }, - }; -} -/** - * Creates tester which check if a node starts with specific keyword and spans multiple lines. - * @param keyword The keyword to test. - * @returns the created tester. - * @private - */ -function newMultilineKeywordTester(keyword) { - return { - test(node, sourceCode) { - return (node.loc.start.line !== node.loc.end.line && - sourceCode.getFirstToken(node).value === keyword); - }, - }; -} -/** - * Creates tester which check if a node is specific type. - * @param type The node type to test. - * @returns the created tester. - * @private - */ -function newNodeTypeTester(type) { - return { - test: (node) => node.type === type, - }; -} -/** - * Skips a chain expression node - * @param node The node to test - * @returnsA non-chain expression - * @private - */ -function skipChainExpression(node) { - return node && node.type === utils_1.AST_NODE_TYPES.ChainExpression - ? node.expression - : node; -} -/** - * Checks the given node is an expression statement of IIFE. - * @param node The node to check. - * @returns `true` if the node is an expression statement of IIFE. - * @private - */ -function isIIFEStatement(node) { - if (node.type === utils_1.AST_NODE_TYPES.ExpressionStatement) { - let expression = skipChainExpression(node.expression); - if (expression.type === utils_1.AST_NODE_TYPES.UnaryExpression) { - expression = skipChainExpression(expression.argument); - } - if (expression.type === utils_1.AST_NODE_TYPES.CallExpression) { - let node = expression.callee; - while (node.type === utils_1.AST_NODE_TYPES.SequenceExpression) { - node = node.expressions[node.expressions.length - 1]; - } - return util.isFunction(node); - } - } - return false; -} -/** - * Checks the given node is a CommonJS require statement - * @param node The node to check. - * @returns `true` if the node is a CommonJS require statement. - * @private - */ -function isCJSRequire(node) { - if (node.type === utils_1.AST_NODE_TYPES.VariableDeclaration) { - const declaration = node.declarations[0]; - if (declaration === null || declaration === void 0 ? void 0 : declaration.init) { - let call = declaration === null || declaration === void 0 ? void 0 : declaration.init; - while (call.type === utils_1.AST_NODE_TYPES.MemberExpression) { - call = call.object; - } - if (call.type === utils_1.AST_NODE_TYPES.CallExpression && - call.callee.type === utils_1.AST_NODE_TYPES.Identifier) { - return call.callee.name === 'require'; - } - } - } - return false; -} -/** - * Checks whether the given node is a block-like statement. - * This checks the last token of the node is the closing brace of a block. - * @param sourceCode The source code to get tokens. - * @param node The node to check. - * @returns `true` if the node is a block-like statement. - * @private - */ -function isBlockLikeStatement(node, sourceCode) { - // do-while with a block is a block-like statement. - if (node.type === utils_1.AST_NODE_TYPES.DoWhileStatement && - node.body.type === utils_1.AST_NODE_TYPES.BlockStatement) { - return true; - } - /** - * IIFE is a block-like statement specially from - * JSCS#disallowPaddingNewLinesAfterBlocks. - */ - if (isIIFEStatement(node)) { - return true; - } - // Checks the last token is a closing brace of blocks. - const lastToken = sourceCode.getLastToken(node, util.isNotSemicolonToken); - const belongingNode = lastToken && util.isClosingBraceToken(lastToken) - ? sourceCode.getNodeByRangeIndex(lastToken.range[0]) - : null; - return (!!belongingNode && - (belongingNode.type === utils_1.AST_NODE_TYPES.BlockStatement || - belongingNode.type === utils_1.AST_NODE_TYPES.SwitchStatement)); -} -/** - * Check whether the given node is a directive or not. - * @param node The node to check. - * @param sourceCode The source code object to get tokens. - * @returns `true` if the node is a directive. - */ -function isDirective(node, sourceCode) { - var _a, _b; - return (node.type === utils_1.AST_NODE_TYPES.ExpressionStatement && - (((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.Program || - (((_b = node.parent) === null || _b === void 0 ? void 0 : _b.type) === utils_1.AST_NODE_TYPES.BlockStatement && - util.isFunction(node.parent.parent))) && - node.expression.type === utils_1.AST_NODE_TYPES.Literal && - typeof node.expression.value === 'string' && - !util.isParenthesized(node.expression, sourceCode)); -} -/** - * Check whether the given node is a part of directive prologue or not. - * @param node The node to check. - * @param sourceCode The source code object to get tokens. - * @returns `true` if the node is a part of directive prologue. - */ -function isDirectivePrologue(node, sourceCode) { - if (isDirective(node, sourceCode) && - node.parent && - 'body' in node.parent && - Array.isArray(node.parent.body)) { - for (const sibling of node.parent.body) { - if (sibling === node) { - break; - } - if (!isDirective(sibling, sourceCode)) { - return false; - } - } - return true; - } - return false; -} -/** - * Checks the given node is a CommonJS export statement - * @param node The node to check. - * @returns `true` if the node is a CommonJS export statement. - * @private - */ -function isCJSExport(node) { - if (node.type === utils_1.AST_NODE_TYPES.ExpressionStatement) { - const expression = node.expression; - if (expression.type === utils_1.AST_NODE_TYPES.AssignmentExpression) { - let left = expression.left; - if (left.type === utils_1.AST_NODE_TYPES.MemberExpression) { - while (left.object.type === utils_1.AST_NODE_TYPES.MemberExpression) { - left = left.object; - } - return (left.object.type === utils_1.AST_NODE_TYPES.Identifier && - (left.object.name === 'exports' || - (left.object.name === 'module' && - left.property.type === utils_1.AST_NODE_TYPES.Identifier && - left.property.name === 'exports'))); - } - } - } - return false; -} -/** - * Check whether the given node is an expression - * @param node The node to check. - * @param sourceCode The source code object to get tokens. - * @returns `true` if the node is an expression - */ -function isExpression(node, sourceCode) { - return (node.type === utils_1.AST_NODE_TYPES.ExpressionStatement && - !isDirectivePrologue(node, sourceCode)); -} -/** - * Gets the actual last token. - * - * If a semicolon is semicolon-less style's semicolon, this ignores it. - * For example: - * - * foo() - * ;[1, 2, 3].forEach(bar) - * @param sourceCode The source code to get tokens. - * @param node The node to get. - * @returns The actual last token. - * @private - */ -function getActualLastToken(node, sourceCode) { - const semiToken = sourceCode.getLastToken(node); - const prevToken = sourceCode.getTokenBefore(semiToken); - const nextToken = sourceCode.getTokenAfter(semiToken); - const isSemicolonLessStyle = prevToken && - nextToken && - prevToken.range[0] >= node.range[0] && - util.isSemicolonToken(semiToken) && - semiToken.loc.start.line !== prevToken.loc.end.line && - semiToken.loc.end.line === nextToken.loc.start.line; - return isSemicolonLessStyle ? prevToken : semiToken; -} -/** - * This returns the concatenation of the first 2 captured strings. - * @param _ Unused. Whole matched string. - * @param trailingSpaces The trailing spaces of the first line. - * @param indentSpaces The indentation spaces of the last line. - * @returns The concatenation of trailingSpaces and indentSpaces. - * @private - */ -function replacerToRemovePaddingLines(_, trailingSpaces, indentSpaces) { - return trailingSpaces + indentSpaces; -} -/** - * Check and report statements for `any` configuration. - * It does nothing. - * - * @private - */ -function verifyForAny() { - // Empty -} -/** - * Check and report statements for `never` configuration. - * This autofix removes blank lines between the given 2 statements. - * However, if comments exist between 2 blank lines, it does not remove those - * blank lines automatically. - * @param context The rule context to report. - * @param _ Unused. The previous node to check. - * @param nextNode The next node to check. - * @param paddingLines The array of token pairs that blank - * lines exist between the pair. - * - * @private - */ -function verifyForNever(context, _, nextNode, paddingLines) { - if (paddingLines.length === 0) { - return; - } - context.report({ - node: nextNode, - messageId: 'unexpectedBlankLine', - fix(fixer) { - if (paddingLines.length >= 2) { - return null; - } - const prevToken = paddingLines[0][0]; - const nextToken = paddingLines[0][1]; - const start = prevToken.range[1]; - const end = nextToken.range[0]; - const text = context - .getSourceCode() - .text.slice(start, end) - .replace(PADDING_LINE_SEQUENCE, replacerToRemovePaddingLines); - return fixer.replaceTextRange([start, end], text); - }, - }); -} -/** - * Check and report statements for `always` configuration. - * This autofix inserts a blank line between the given 2 statements. - * If the `prevNode` has trailing comments, it inserts a blank line after the - * trailing comments. - * @param context The rule context to report. - * @param prevNode The previous node to check. - * @param nextNode The next node to check. - * @param paddingLines The array of token pairs that blank - * lines exist between the pair. - * - * @private - */ -function verifyForAlways(context, prevNode, nextNode, paddingLines) { - if (paddingLines.length > 0) { - return; - } - context.report({ - node: nextNode, - messageId: 'expectedBlankLine', - fix(fixer) { - const sourceCode = context.getSourceCode(); - let prevToken = getActualLastToken(prevNode, sourceCode); - const nextToken = sourceCode.getFirstTokenBetween(prevToken, nextNode, { - includeComments: true, - /** - * Skip the trailing comments of the previous node. - * This inserts a blank line after the last trailing comment. - * - * For example: - * - * foo(); // trailing comment. - * // comment. - * bar(); - * - * Get fixed to: - * - * foo(); // trailing comment. - * - * // comment. - * bar(); - * @param token The token to check. - * @returns `true` if the token is not a trailing comment. - * @private - */ - filter(token) { - if (util.isTokenOnSameLine(prevToken, token)) { - prevToken = token; - return false; - } - return true; - }, - }) || nextNode; - const insertText = util.isTokenOnSameLine(prevToken, nextToken) - ? '\n\n' - : '\n'; - return fixer.insertTextAfter(prevToken, insertText); - }, - }); -} -/** - * Types of blank lines. - * `any`, `never`, and `always` are defined. - * Those have `verify` method to check and report statements. - * @private - */ -const PaddingTypes = { - any: { verify: verifyForAny }, - never: { verify: verifyForNever }, - always: { verify: verifyForAlways }, -}; -/** - * Types of statements. - * Those have `test` method to check it matches to the given statement. - * @private - */ -const StatementTypes = { - '*': { test: () => true }, - 'block-like': { test: isBlockLikeStatement }, - exports: { test: isCJSExport }, - require: { test: isCJSRequire }, - directive: { test: isDirectivePrologue }, - expression: { test: isExpression }, - iife: { test: isIIFEStatement }, - 'multiline-block-like': { - test: (node, sourceCode) => node.loc.start.line !== node.loc.end.line && - isBlockLikeStatement(node, sourceCode), - }, - 'multiline-expression': { - test: (node, sourceCode) => node.loc.start.line !== node.loc.end.line && - node.type === utils_1.AST_NODE_TYPES.ExpressionStatement && - !isDirectivePrologue(node, sourceCode), - }, - 'multiline-const': newMultilineKeywordTester('const'), - 'multiline-let': newMultilineKeywordTester('let'), - 'multiline-var': newMultilineKeywordTester('var'), - 'singleline-const': newSinglelineKeywordTester('const'), - 'singleline-let': newSinglelineKeywordTester('let'), - 'singleline-var': newSinglelineKeywordTester('var'), - block: newNodeTypeTester(utils_1.AST_NODE_TYPES.BlockStatement), - empty: newNodeTypeTester(utils_1.AST_NODE_TYPES.EmptyStatement), - function: newNodeTypeTester(utils_1.AST_NODE_TYPES.FunctionDeclaration), - break: newKeywordTester(utils_1.AST_NODE_TYPES.BreakStatement, 'break'), - case: newKeywordTester(utils_1.AST_NODE_TYPES.SwitchCase, 'case'), - class: newKeywordTester(utils_1.AST_NODE_TYPES.ClassDeclaration, 'class'), - const: newKeywordTester(utils_1.AST_NODE_TYPES.VariableDeclaration, 'const'), - continue: newKeywordTester(utils_1.AST_NODE_TYPES.ContinueStatement, 'continue'), - debugger: newKeywordTester(utils_1.AST_NODE_TYPES.DebuggerStatement, 'debugger'), - default: newKeywordTester([utils_1.AST_NODE_TYPES.SwitchCase, utils_1.AST_NODE_TYPES.ExportDefaultDeclaration], 'default'), - do: newKeywordTester(utils_1.AST_NODE_TYPES.DoWhileStatement, 'do'), - export: newKeywordTester([ - utils_1.AST_NODE_TYPES.ExportDefaultDeclaration, - utils_1.AST_NODE_TYPES.ExportNamedDeclaration, - ], 'export'), - for: newKeywordTester([ - utils_1.AST_NODE_TYPES.ForStatement, - utils_1.AST_NODE_TYPES.ForInStatement, - utils_1.AST_NODE_TYPES.ForOfStatement, - ], 'for'), - if: newKeywordTester(utils_1.AST_NODE_TYPES.IfStatement, 'if'), - import: newKeywordTester(utils_1.AST_NODE_TYPES.ImportDeclaration, 'import'), - let: newKeywordTester(utils_1.AST_NODE_TYPES.VariableDeclaration, 'let'), - return: newKeywordTester(utils_1.AST_NODE_TYPES.ReturnStatement, 'return'), - switch: newKeywordTester(utils_1.AST_NODE_TYPES.SwitchStatement, 'switch'), - throw: newKeywordTester(utils_1.AST_NODE_TYPES.ThrowStatement, 'throw'), - try: newKeywordTester(utils_1.AST_NODE_TYPES.TryStatement, 'try'), - var: newKeywordTester(utils_1.AST_NODE_TYPES.VariableDeclaration, 'var'), - while: newKeywordTester([utils_1.AST_NODE_TYPES.WhileStatement, utils_1.AST_NODE_TYPES.DoWhileStatement], 'while'), - with: newKeywordTester(utils_1.AST_NODE_TYPES.WithStatement, 'with'), - // Additional Typescript constructs - interface: newKeywordTester(utils_1.AST_NODE_TYPES.TSInterfaceDeclaration, 'interface'), - type: newKeywordTester(utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration, 'type'), -}; -//------------------------------------------------------------------------------ -// Rule Definition -//------------------------------------------------------------------------------ -exports.default = util.createRule({ - name: 'padding-line-between-statements', - meta: { - type: 'layout', - docs: { - description: 'Require or disallow padding lines between statements', - recommended: false, - extendsBaseRule: true, - }, - fixable: 'whitespace', - hasSuggestions: false, - schema: { - $defs: { - paddingType: { - enum: Object.keys(PaddingTypes), - }, - statementType: { - anyOf: [ - { enum: Object.keys(StatementTypes) }, - { - type: 'array', - items: { enum: Object.keys(StatementTypes) }, - minItems: 1, - uniqueItems: true, - additionalItems: false, - }, - ], - }, - }, - type: 'array', - items: { - type: 'object', - properties: { - blankLine: { $ref: '#/$defs/paddingType' }, - prev: { $ref: '#/$defs/statementType' }, - next: { $ref: '#/$defs/statementType' }, - }, - additionalProperties: false, - required: ['blankLine', 'prev', 'next'], - }, - additionalItems: false, - }, - messages: { - unexpectedBlankLine: 'Unexpected blank line before this statement.', - expectedBlankLine: 'Expected blank line before this statement.', - }, - }, - defaultOptions: [], - create(context) { - const sourceCode = context.getSourceCode(); - // eslint-disable-next-line no-restricted-syntax -- We need all raw options. - const configureList = context.options || []; - let scopeInfo = null; - /** - * Processes to enter to new scope. - * This manages the current previous statement. - * - * @private - */ - function enterScope() { - scopeInfo = { - upper: scopeInfo, - prevNode: null, - }; - } - /** - * Processes to exit from the current scope. - * - * @private - */ - function exitScope() { - if (scopeInfo) { - scopeInfo = scopeInfo.upper; - } - } - /** - * Checks whether the given node matches the given type. - * @param node The statement node to check. - * @param type The statement type to check. - * @returns `true` if the statement node matched the type. - * @private - */ - function match(node, type) { - let innerStatementNode = node; - while (innerStatementNode.type === utils_1.AST_NODE_TYPES.LabeledStatement) { - innerStatementNode = innerStatementNode.body; - } - if (Array.isArray(type)) { - return type.some(match.bind(null, innerStatementNode)); - } - return StatementTypes[type].test(innerStatementNode, sourceCode); - } - /** - * Finds the last matched configure from configureList. - * @paramprevNode The previous statement to match. - * @paramnextNode The current statement to match. - * @returns The tester of the last matched configure. - * @private - */ - function getPaddingType(prevNode, nextNode) { - for (let i = configureList.length - 1; i >= 0; --i) { - const configure = configureList[i]; - if (match(prevNode, configure.prev) && - match(nextNode, configure.next)) { - return PaddingTypes[configure.blankLine]; - } - } - return PaddingTypes.any; - } - /** - * Gets padding line sequences between the given 2 statements. - * Comments are separators of the padding line sequences. - * @paramprevNode The previous statement to count. - * @paramnextNode The current statement to count. - * @returns The array of token pairs. - * @private - */ - function getPaddingLineSequences(prevNode, nextNode) { - const pairs = []; - let prevToken = getActualLastToken(prevNode, sourceCode); - if (nextNode.loc.start.line - prevToken.loc.end.line >= 2) { - do { - const token = sourceCode.getTokenAfter(prevToken, { - includeComments: true, - }); - if (token.loc.start.line - prevToken.loc.end.line >= 2) { - pairs.push([prevToken, token]); - } - prevToken = token; - } while (prevToken.range[0] < nextNode.range[0]); - } - return pairs; - } - /** - * Verify padding lines between the given node and the previous node. - * @param node The node to verify. - * - * @private - */ - function verify(node) { - if (!node.parent || - ![ - utils_1.AST_NODE_TYPES.BlockStatement, - utils_1.AST_NODE_TYPES.Program, - utils_1.AST_NODE_TYPES.SwitchCase, - utils_1.AST_NODE_TYPES.SwitchStatement, - utils_1.AST_NODE_TYPES.TSModuleBlock, - ].includes(node.parent.type)) { - return; - } - // Save this node as the current previous statement. - const prevNode = scopeInfo.prevNode; - // Verify. - if (prevNode) { - const type = getPaddingType(prevNode, node); - const paddingLines = getPaddingLineSequences(prevNode, node); - type.verify(context, prevNode, node, paddingLines); - } - scopeInfo.prevNode = node; - } - /** - * Verify padding lines between the given node and the previous node. - * Then process to enter to new scope. - * @param node The node to verify. - * - * @private - */ - function verifyThenEnterScope(node) { - verify(node); - enterScope(); - } - return { - Program: enterScope, - BlockStatement: enterScope, - SwitchStatement: enterScope, - TSModuleBlock: enterScope, - 'Program:exit': exitScope, - 'BlockStatement:exit': exitScope, - 'SwitchStatement:exit': exitScope, - 'TSModuleBlock:exit': exitScope, - ':statement': verify, - SwitchCase: verifyThenEnterScope, - TSDeclareFunction: verifyThenEnterScope, - 'SwitchCase:exit': exitScope, - 'TSDeclareFunction:exit': exitScope, - }; - }, -}); -//# sourceMappingURL=padding-line-between-statements.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js.map deleted file mode 100644 index ab4af922..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/padding-line-between-statements.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"padding-line-between-statements.js","sourceRoot":"","sources":["../../src/rules/padding-line-between-statements.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAkChC,MAAM,EAAE,GAAG,IAAI,KAAK,CAAC,IAAI,CACvB,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAClD,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC;AACd,MAAM,qBAAqB,GAAG,IAAI,MAAM,CACtC,MAAM,CAAC,GAAG,CAAA,SAAS,EAAE,OAAO,EAAE,UAAU,EACxC,GAAG,CACJ,CAAC;AAEF;;;;;;GAMG;AACH,SAAS,gBAAgB,CACvB,IAAuC,EACvC,OAAe;IAEf,OAAO;QACL,IAAI,CAAC,IAAI,EAAE,UAAU;;YACnB,MAAM,aAAa,GAAG,CAAA,MAAA,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,0CAAE,KAAK,MAAK,OAAO,CAAC;YACxE,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;gBACpC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,IAAI,CAAC,IAAI,CAAC;gBACrC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC;YAEvB,OAAO,aAAa,IAAI,UAAU,CAAC;QACrC,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,SAAS,0BAA0B,CAAC,OAAe;IACjD,OAAO;QACL,IAAI,CAAC,IAAI,EAAE,UAAU;YACnB,OAAO,CACL,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI;gBACzC,UAAU,CAAC,aAAa,CAAC,IAAI,CAAE,CAAC,KAAK,KAAK,OAAO,CAClD,C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ACR;YAED,oDAAoD;YACpD,MAAM,QAAQ,GAAG,SAAU,CAAC,QAAQ,CAAC;YAErC,UAAU;YACV,IAAI,QAAQ,EAAE;gBACZ,MAAM,IAAI,GAAG,cAAc,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;gBAC5C,MAAM,YAAY,GAAG,uBAAuB,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;gBAE7D,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC;aACpD;YAED,SAAU,CAAC,QAAQ,GAAG,IAAI,CAAC;QAC7B,CAAC;QAED;;;;;;WAMG;QACH,SAAS,oBAAoB,CAAC,IAAmB;YAC/C,MAAM,CAAC,IAAI,CAAC,CAAC;YACb,UAAU,EAAE,CAAC;QACf,CAAC;QAED,OAAO;YACL,OAAO,EAAE,UAAU;YACnB,cAAc,EAAE,UAAU;YAC1B,eAAe,EAAE,UAAU;YAC3B,aAAa,EAAE,UAAU;YACzB,cAAc,EAAE,SAAS;YACzB,qBAAqB,EAAE,SAAS;YAChC,sBAAsB,EAAE,SAAS;YACjC,oBAAoB,EAAE,SAAS;YAE/B,YAAY,EAAE,MAAM;YAEpB,UAAU,EAAE,oBAAoB;YAChC,iBAAiB,EAAE,oBAAoB;YACvC,iBAAiB,EAAE,SAAS;YAC5B,wBAAwB,EAAE,SAAS;SACpC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js deleted file mode 100644 index 2f268d4c..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js +++ /dev/null @@ -1,197 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'parameter-properties', - meta: { - type: 'problem', - docs: { - description: 'Require or disallow parameter properties in class constructors', - recommended: false, - }, - messages: { - preferClassProperty: 'Property {{parameter}} should be declared as a class property.', - preferParameterProperty: 'Property {{parameter}} should be declared as a parameter property.', - }, - schema: { - $defs: { - modifier: { - enum: [ - 'readonly', - 'private', - 'protected', - 'public', - 'private readonly', - 'protected readonly', - 'public readonly', - ], - }, - }, - prefixItems: [ - { - type: 'object', - properties: { - allow: { - type: 'array', - items: { - $ref: '#/$defs/modifier', - }, - minItems: 1, - }, - prefer: { - enum: ['class-property', 'parameter-property'], - }, - }, - additionalProperties: false, - }, - ], - type: 'array', - }, - }, - defaultOptions: [ - { - allow: [], - prefer: 'class-property', - }, - ], - create(context, [{ allow = [], prefer = 'class-property' }]) { - /** - * Gets the modifiers of `node`. - * @param node the node to be inspected. - */ - function getModifiers(node) { - const modifiers = []; - if (node.accessibility) { - modifiers.push(node.accessibility); - } - if (node.readonly) { - modifiers.push('readonly'); - } - return modifiers.filter(Boolean).join(' '); - } - if (prefer === 'class-property') { - return { - TSParameterProperty(node) { - const modifiers = getModifiers(node); - if (!allow.includes(modifiers)) { - // HAS to be an identifier or assignment or TSC will throw - if (node.parameter.type !== utils_1.AST_NODE_TYPES.Identifier && - node.parameter.type !== utils_1.AST_NODE_TYPES.AssignmentPattern) { - return; - } - const name = node.parameter.type === utils_1.AST_NODE_TYPES.Identifier - ? node.parameter.name - : // has to be an Identifier or TSC will throw an error - node.parameter.left.name; - context.report({ - node, - messageId: 'preferClassProperty', - data: { - parameter: name, - }, - }); - } - }, - }; - } - const propertyNodesByNameStack = []; - function getNodesByName(name) { - const propertyNodesByName = propertyNodesByNameStack[propertyNodesByNameStack.length - 1]; - const existing = propertyNodesByName.get(name); - if (existing) { - return existing; - } - const created = {}; - propertyNodesByName.set(name, created); - return created; - } - const sourceCode = context.getSourceCode(); - function typeAnnotationsMatch(classProperty, constructorParameter) { - if (!classProperty.typeAnnotation || - !constructorParameter.typeAnnotation) { - return (classProperty.typeAnnotation === constructorParameter.typeAnnotation); - } - return (sourceCode.getText(classProperty.typeAnnotation) === - sourceCode.getText(constructorParameter.typeAnnotation)); - } - return { - 'ClassDeclaration, ClassExpression'() { - propertyNodesByNameStack.push(new Map()); - }, - ':matches(ClassDeclaration, ClassExpression):exit'() { - const propertyNodesByName = propertyNodesByNameStack.pop(); - for (const [name, nodes] of propertyNodesByName) { - if (nodes.classProperty && - nodes.constructorAssignment && - nodes.constructorParameter && - typeAnnotationsMatch(nodes.classProperty, nodes.constructorParameter)) { - context.report({ - data: { - parameter: name, - }, - messageId: 'preferParameterProperty', - node: nodes.classProperty, - }); - } - } - }, - ClassBody(node) { - for (const element of node.body) { - if (element.type === utils_1.AST_NODE_TYPES.PropertyDefinition && - element.key.type === utils_1.AST_NODE_TYPES.Identifier && - !element.value && - !allow.includes(getModifiers(element))) { - getNodesByName(element.key.name).classProperty = element; - } - } - }, - 'MethodDefinition[kind="constructor"]'(node) { - var _a, _b; - for (const parameter of node.value.params) { - if (parameter.type === utils_1.AST_NODE_TYPES.Identifier) { - getNodesByName(parameter.name).constructorParameter = parameter; - } - } - for (const statement of (_b = (_a = node.value.body) === null || _a === void 0 ? void 0 : _a.body) !== null && _b !== void 0 ? _b : []) { - if (statement.type !== utils_1.AST_NODE_TYPES.ExpressionStatement || - statement.expression.type !== utils_1.AST_NODE_TYPES.AssignmentExpression || - statement.expression.left.type !== - utils_1.AST_NODE_TYPES.MemberExpression || - statement.expression.left.object.type !== - utils_1.AST_NODE_TYPES.ThisExpression || - statement.expression.left.property.type !== - utils_1.AST_NODE_TYPES.Identifier || - statement.expression.right.type !== utils_1.AST_NODE_TYPES.Identifier) { - break; - } - getNodesByName(statement.expression.right.name).constructorAssignment = statement.expression; - } - }, - }; - }, -}); -//# sourceMappingURL=parameter-properties.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js.map deleted file mode 100644 index 3b129e7c..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/parameter-properties.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parameter-properties.js","sourceRoot":"","sources":["../../src/rules/parameter-properties.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAsBhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,gEAAgE;YAClE,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,mBAAmB,EACjB,gEAAgE;YAClE,uBAAuB,EACrB,oEAAoE;SACvE;QACD,MAAM,EAAE;YACN,KAAK,EAAE;gBACL,QAAQ,EAAE;oBACR,IAAI,EAAE;wBACJ,UAAU;wBACV,SAAS;wBACT,WAAW;wBACX,QAAQ;wBACR,kBAAkB;wBAClB,oBAAoB;wBACpB,iBAAiB;qBAClB;iBACF;aACF;YACD,WAAW,EAAE;gBACX;oBACE,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,KAAK,EAAE;4BACL,IAAI,EAAE,OAAO;4BACb,KAAK,EAAE;gCACL,IAAI,EAAE,kBAAkB;6BACzB;4BACD,QAAQ,EAAE,CAAC;yBACZ;wBACD,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c,CAAC,mBAAmB;wBACrD,SAAS,CAAC,UAAU,CAAC,IAAI,KAAK,sBAAc,CAAC,oBAAoB;wBACjE,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI;4BAC5B,sBAAc,CAAC,gBAAgB;wBACjC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI;4BACnC,sBAAc,CAAC,cAAc;wBAC/B,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI;4BACrC,sBAAc,CAAC,UAAU;wBAC3B,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAC7D;wBACA,MAAM;qBACP;oBAED,cAAc,CACZ,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAChC,CAAC,qBAAqB,GAAG,SAAS,CAAC,UAAU,CAAC;iBAChD;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js deleted file mode 100644 index bb8c16c8..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js +++ /dev/null @@ -1,96 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'prefer-as-const', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce the use of `as const` over literal type', - recommended: 'error', - }, - fixable: 'code', - hasSuggestions: true, - messages: { - preferConstAssertion: 'Expected a `const` instead of a literal type assertion.', - variableConstAssertion: 'Expected a `const` assertion instead of a literal type annotation.', - variableSuggest: 'You should use `as const` instead of type annotation.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - function compareTypes(valueNode, typeNode, canFix) { - if (valueNode.type === utils_1.AST_NODE_TYPES.Literal && - typeNode.type === utils_1.AST_NODE_TYPES.TSLiteralType && - 'raw' in typeNode.literal && - valueNode.raw === typeNode.literal.raw) { - if (canFix) { - context.report({ - node: typeNode, - messageId: 'preferConstAssertion', - fix: fixer => fixer.replaceText(typeNode, 'const'), - }); - } - else { - context.report({ - node: typeNode, - messageId: 'variableConstAssertion', - suggest: [ - { - messageId: 'variableSuggest', - fix: (fixer) => [ - fixer.remove(typeNode.parent), - fixer.insertTextAfter(valueNode, ' as const'), - ], - }, - ], - }); - } - } - } - return { - TSAsExpression(node) { - compareTypes(node.expression, node.typeAnnotation, true); - }, - TSTypeAssertion(node) { - compareTypes(node.expression, node.typeAnnotation, true); - }, - PropertyDefinition(node) { - if (node.value && node.typeAnnotation) { - compareTypes(node.value, node.typeAnnotation.typeAnnotation, false); - } - }, - VariableDeclarator(node) { - if (node.init && node.id.typeAnnotation) { - compareTypes(node.init, node.id.typeAnnotation.typeAnnotation, false); - } - }, - }; - }, -}); -//# sourceMappingURL=prefer-as-const.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js.map deleted file mode 100644 index 1cd049af..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-as-const.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-as-const.js","sourceRoot":"","sources":["../../src/rules/prefer-as-const.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,iDAAiD;YAC9D,WAAW,EAAE,OAAO;SACrB;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,oBAAoB,EAClB,yDAAyD;YAC3D,sBAAsB,EACpB,oEAAoE;YACtE,eAAe,EAAE,uDAAuD;SACzE;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,YAAY,CACnB,SAA8B,EAC9B,QAA2B,EAC3B,MAAe;YAEf,IACE,SAAS,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO;gBACzC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,aAAa;gBAC9C,KAAK,IAAI,QAAQ,CAAC,OAAO;gBACzB,SAAS,CAAC,GAAG,KAAK,QAAQ,CAAC,OAAO,CAAC,GAAG,EACtC;gBACA,IAAI,MAAM,EAAE;oBACV,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,sBAAsB;wBACjC,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE,OAAO,CAAC;qBACnD,CAAC,CAAC;iBACJ;qBAAM;oBACL,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,wBAAwB;wBACnC,OAAO,EAAE;4BACP;gCACE,SAAS,EAAE,iBAAiB;gCAC5B,GAAG,EAAE,CAAC,KAAK,EAAsB,EAAE,CAAC;oCAClC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAO,CAAC;oCAC9B,KAAK,CAAC,eAAe,CAAC,SAAS,EAAE,WAAW,CAAC;iCAC9C;6BACF;yBACF;qBACF,CAAC,CAAC;iBACJ;aACF;QACH,CAAC;QAED,OAAO;YACL,cAAc,CAAC,IAAI;gBACjB,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;YAC3D,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,YAAY,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;YAC3D,CAAC;YACD,kBAAkB,CAAC,IAAI;gBACrB,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,cAAc,EAAE;oBACrC,YAAY,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;iBACrE;YACH,CAAC;YACD,kBAAkB,CAAC,IAAI;gBACrB,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE,CAAC,cAAc,EAAE;oBACvC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,cAAc,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;iBACvE;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js deleted file mode 100644 index 6f55fba3..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'prefer-enum-initializers', - meta: { - type: 'suggestion', - docs: { - description: 'Require each enum member value to be explicitly initialized', - recommended: false, - }, - hasSuggestions: true, - messages: { - defineInitializer: "The value of the member '{{ name }}' should be explicitly defined.", - defineInitializerSuggestion: 'Can be fixed to {{ name }} = {{ suggested }}', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const sourceCode = context.getSourceCode(); - function TSEnumDeclaration(node) { - const { members } = node; - members.forEach((member, index) => { - if (member.initializer == null) { - const name = sourceCode.getText(member); - context.report({ - node: member, - messageId: 'defineInitializer', - data: { - name, - }, - suggest: [ - { - messageId: 'defineInitializerSuggestion', - data: { name, suggested: index }, - fix: (fixer) => { - return fixer.replaceText(member, `${name} = ${index}`); - }, - }, - { - messageId: 'defineInitializerSuggestion', - data: { name, suggested: index + 1 }, - fix: (fixer) => { - return fixer.replaceText(member, `${name} = ${index + 1}`); - }, - }, - { - messageId: 'defineInitializerSuggestion', - data: { name, suggested: `'${name}'` }, - fix: (fixer) => { - return fixer.replaceText(member, `${name} = '${name}'`); - }, - }, - ], - }); - } - }); - } - return { - TSEnumDeclaration, - }; - }, -}); -//# sourceMappingURL=prefer-enum-initializers.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js.map deleted file mode 100644 index 475d0368..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-enum-initializers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-enum-initializers.js","sourceRoot":"","sources":["../../src/rules/prefer-enum-initializers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,8CAAgC;AAIhC,kBAAe,IAAI,CAAC,UAAU,CAAiB;IAC7C,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,6DAA6D;YAC/D,WAAW,EAAE,KAAK;SACnB;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,iBAAiB,EACf,oEAAoE;YACtE,2BAA2B,EACzB,8CAA8C;SACjD;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAE3C,SAAS,iBAAiB,CAAC,IAAgC;YACzD,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;YAEzB,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;gBAChC,IAAI,MAAM,CAAC,WAAW,IAAI,IAAI,EAAE;oBAC9B,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;oBACxC,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI,EAAE,MAAM;wBACZ,SAAS,EAAE,mBAAmB;wBAC9B,IAAI,EAAE;4BACJ,IAAI;yBACL;wBACD,OAAO,EAAE;4BACP;gCACE,SAAS,EAAE,6BAA6B;gCACxC,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE;gCAChC,GAAG,EAAE,CAAC,KAAK,EAAoB,EAAE;oCAC/B,OAAO,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,GAAG,IAAI,MAAM,KAAK,EAAE,CAAC,CAAC;gCACzD,CAAC;6BACF;4BACD;gCACE,SAAS,EAAE,6BAA6B;gCACxC,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,GAAG,CAAC,EAAE;gCACpC,GAAG,EAAE,CAAC,KAAK,EAAoB,EAAE;oCAC/B,OAAO,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,GAAG,IAAI,MAAM,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC;gCAC7D,CAAC;6BACF;4BACD;gCACE,SAAS,EAAE,6BAA6B;gCACxC,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,IAAI,GAAG,EAAE;gCACtC,GAAG,EAAE,CAAC,KAAK,EAAoB,EAAE;oCAC/B,OAAO,KAAK,CAAC,WAAW,CAAC,MAAM,EAAE,GAAG,IAAI,OAAO,IAAI,GAAG,CAAC,CAAC;gCAC1D,CAAC;6BACF;yBACF;qBACF,CAAC,CAAC;iBACJ;YACH,CAAC,CAAC,CAAC;QACL,CAAC;QAED,OAAO;YACL,iBAAiB;SAClB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js deleted file mode 100644 index 7d5d37a3..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js +++ /dev/null @@ -1,180 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'prefer-for-of', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce the use of `for-of` loop over the standard `for` loop where possible', - recommended: 'strict', - }, - messages: { - preferForOf: 'Expected a `for-of` loop instead of a `for` loop with this simple iteration.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - function isSingleVariableDeclaration(node) { - return ((node === null || node === void 0 ? void 0 : node.type) === utils_1.AST_NODE_TYPES.VariableDeclaration && - node.kind !== 'const' && - node.declarations.length === 1); - } - function isLiteral(node, value) { - return node.type === utils_1.AST_NODE_TYPES.Literal && node.value === value; - } - function isZeroInitialized(node) { - return node.init != null && isLiteral(node.init, 0); - } - function isMatchingIdentifier(node, name) { - return node.type === utils_1.AST_NODE_TYPES.Identifier && node.name === name; - } - function isLessThanLengthExpression(node, name) { - if ((node === null || node === void 0 ? void 0 : node.type) === utils_1.AST_NODE_TYPES.BinaryExpression && - node.operator === '<' && - isMatchingIdentifier(node.left, name) && - node.right.type === utils_1.AST_NODE_TYPES.MemberExpression && - isMatchingIdentifier(node.right.property, 'length')) { - return node.right.object; - } - return null; - } - function isIncrement(node, name) { - if (!node) { - return false; - } - switch (node.type) { - case utils_1.AST_NODE_TYPES.UpdateExpression: - // x++ or ++x - return (node.operator === '++' && isMatchingIdentifier(node.argument, name)); - case utils_1.AST_NODE_TYPES.AssignmentExpression: - if (isMatchingIdentifier(node.left, name)) { - if (node.operator === '+=') { - // x += 1 - return isLiteral(node.right, 1); - } - else if (node.operator === '=') { - // x = x + 1 or x = 1 + x - const expr = node.right; - return (expr.type === utils_1.AST_NODE_TYPES.BinaryExpression && - expr.operator === '+' && - ((isMatchingIdentifier(expr.left, name) && - isLiteral(expr.right, 1)) || - (isLiteral(expr.left, 1) && - isMatchingIdentifier(expr.right, name)))); - } - } - } - return false; - } - function contains(outer, inner) { - return (outer.range[0] <= inner.range[0] && outer.range[1] >= inner.range[1]); - } - function isAssignee(node) { - var _a; - const parent = node.parent; - if (!parent) { - return false; - } - // a[i] = 1, a[i] += 1, etc. - if (parent.type === utils_1.AST_NODE_TYPES.AssignmentExpression && - parent.left === node) { - return true; - } - // delete a[i] - if (parent.type === utils_1.AST_NODE_TYPES.UnaryExpression && - parent.operator === 'delete' && - parent.argument === node) { - return true; - } - // a[i]++, --a[i], etc. - if (parent.type === utils_1.AST_NODE_TYPES.UpdateExpression && - parent.argument === node) { - return true; - } - // [a[i]] = [0] - if (parent.type === utils_1.AST_NODE_TYPES.ArrayPattern) { - return true; - } - // [...a[i]] = [0] - if (parent.type === utils_1.AST_NODE_TYPES.RestElement) { - return true; - } - // ({ foo: a[i] }) = { foo: 0 } - if (parent.type === utils_1.AST_NODE_TYPES.Property && - parent.value === node && - ((_a = parent.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.ObjectExpression && - isAssignee(parent.parent)) { - return true; - } - return false; - } - function isIndexOnlyUsedWithArray(body, indexVar, arrayExpression) { - const sourceCode = context.getSourceCode(); - const arrayText = sourceCode.getText(arrayExpression); - return indexVar.references.every(reference => { - const id = reference.identifier; - const node = id.parent; - return (!contains(body, id) || - (node !== undefined && - node.type === utils_1.AST_NODE_TYPES.MemberExpression && - node.object.type !== utils_1.AST_NODE_TYPES.ThisExpression && - node.property === id && - sourceCode.getText(node.object) === arrayText && - !isAssignee(node))); - }); - } - return { - 'ForStatement:exit'(node) { - if (!isSingleVariableDeclaration(node.init)) { - return; - } - const declarator = node.init.declarations[0]; - if (!declarator || - !isZeroInitialized(declarator) || - declarator.id.type !== utils_1.AST_NODE_TYPES.Identifier) { - return; - } - const indexName = declarator.id.name; - const arrayExpression = isLessThanLengthExpression(node.test, indexName); - if (!arrayExpression) { - return; - } - const [indexVar] = context.getDeclaredVariables(node.init); - if (isIncrement(node.update, indexName) && - isIndexOnlyUsedWithArray(node.body, indexVar, arrayExpression)) { - context.report({ - node, - messageId: 'preferForOf', - }); - } - }, - }; - }, -}); -//# sourceMappingURL=prefer-for-of.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map deleted file mode 100644 index c7586e2e..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-for-of.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-for-of.js","sourceRoot":"","sources":["../../src/rules/prefer-for-of.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,8EAA8E;YAChF,WAAW,EAAE,QAAQ;SACtB;QACD,QAAQ,EAAE;YACR,WAAW,EACT,8EAA8E;SACjF;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE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;oBACpB,OAAO;iBACR;gBAED,MAAM,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC3D,IACE,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC;oBACnC,wBAAwB,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,eAAe,CAAC,EAC9D;oBACA,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,aAAa;qBACzB,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js deleted file mode 100644 index 9e4bd979..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js +++ /dev/null @@ -1,211 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.phrases = void 0; -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.phrases = { - [utils_1.AST_NODE_TYPES.TSTypeLiteral]: 'Type literal', - [utils_1.AST_NODE_TYPES.TSInterfaceDeclaration]: 'Interface', -}; -exports.default = util.createRule({ - name: 'prefer-function-type', - meta: { - docs: { - description: 'Enforce using function types instead of interfaces with call signatures', - recommended: 'strict', - }, - fixable: 'code', - messages: { - functionTypeOverCallableType: '{{ literalOrInterface }} only has a call signature, you should use a function type instead.', - unexpectedThisOnFunctionOnlyInterface: "`this` refers to the function type '{{ interfaceName }}', did you intend to use a generic `this` parameter like `(this: Self, ...) => Self` instead?", - }, - schema: [], - type: 'suggestion', - }, - defaultOptions: [], - create(context) { - const sourceCode = context.getSourceCode(); - /** - * Checks if there the interface has exactly one supertype that isn't named 'Function' - * @param node The node being checked - */ - function hasOneSupertype(node) { - if (!node.extends || node.extends.length === 0) { - return false; - } - if (node.extends.length !== 1) { - return true; - } - const expr = node.extends[0].expression; - return (expr.type !== utils_1.AST_NODE_TYPES.Identifier || expr.name !== 'Function'); - } - /** - * @param parent The parent of the call signature causing the diagnostic - */ - function shouldWrapSuggestion(parent) { - if (!parent) { - return false; - } - switch (parent.type) { - case utils_1.AST_NODE_TYPES.TSUnionType: - case utils_1.AST_NODE_TYPES.TSIntersectionType: - case utils_1.AST_NODE_TYPES.TSArrayType: - return true; - default: - return false; - } - } - /** - * @param member The TypeElement being checked - * @param node The parent of member being checked - * @param tsThisTypes - */ - function checkMember(member, node, tsThisTypes = null) { - if ((member.type === utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration || - member.type === utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration) && - member.returnType !== undefined) { - if ((tsThisTypes === null || tsThisTypes === void 0 ? void 0 : tsThisTypes.length) && - node.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration) { - // the message can be confusing if we don't point directly to the `this` node instead of the whole member - // and in favour of generating at most one error we'll only report the first occurrence of `this` if there are multiple - context.report({ - node: tsThisTypes[0], - messageId: 'unexpectedThisOnFunctionOnlyInterface', - data: { - interfaceName: node.id.name, - }, - }); - return; - } - const fixable = node.parent && - node.parent.type === utils_1.AST_NODE_TYPES.ExportDefaultDeclaration; - const fix = fixable - ? null - : (fixer) => { - const fixes = []; - const start = member.range[0]; - const colonPos = member.returnType.range[0] - start; - const text = sourceCode.getText().slice(start, member.range[1]); - const comments = sourceCode - .getCommentsBefore(member) - .concat(sourceCode.getCommentsAfter(member)); - let suggestion = `${text.slice(0, colonPos)} =>${text.slice(colonPos + 1)}`; - const lastChar = suggestion.endsWith(';') ? ';' : ''; - if (lastChar) { - suggestion = suggestion.slice(0, -1); - } - if (shouldWrapSuggestion(node.parent)) { - suggestion = `(${suggestion})`; - } - if (node.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration) { - if (node.typeParameters !== undefined) { - suggestion = `type ${sourceCode - .getText() - .slice(node.id.range[0], node.typeParameters.range[1])} = ${suggestion}${lastChar}`; - } - else { - suggestion = `type ${node.id.name} = ${suggestion}${lastChar}`; - } - } - const isParentExported = node.parent && - node.parent.type === utils_1.AST_NODE_TYPES.ExportNamedDeclaration; - if (node.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration && - isParentExported) { - const commentsText = comments.reduce((text, comment) => { - return (text + - (comment.type === utils_1.AST_TOKEN_TYPES.Line - ? `//${comment.value}` - : `/*${comment.value}*/`) + - '\n'); - }, ''); - // comments should move before export and not between export and interface declaration - fixes.push(fixer.insertTextBefore(node.parent, commentsText)); - } - else { - comments.forEach(comment => { - let commentText = comment.type === utils_1.AST_TOKEN_TYPES.Line - ? `//${comment.value}` - : `/*${comment.value}*/`; - const isCommentOnTheSameLine = comment.loc.start.line === member.loc.start.line; - if (!isCommentOnTheSameLine) { - commentText += '\n'; - } - else { - commentText += ' '; - } - suggestion = commentText + suggestion; - }); - } - const fixStart = node.range[0]; - fixes.push(fixer.replaceTextRange([fixStart, node.range[1]], suggestion)); - return fixes; - }; - context.report({ - node: member, - messageId: 'functionTypeOverCallableType', - data: { - literalOrInterface: exports.phrases[node.type], - }, - fix, - }); - } - } - let tsThisTypes = null; - let literalNesting = 0; - return { - TSInterfaceDeclaration() { - // when entering an interface reset the count of `this`s to empty. - tsThisTypes = []; - }, - 'TSInterfaceDeclaration TSThisType'(node) { - // inside an interface keep track of all ThisType references. - // unless it's inside a nested type literal in which case it's invalid code anyway - // we don't want to incorrectly say "it refers to name" while typescript says it's completely invalid. - if (literalNesting === 0 && tsThisTypes != null) { - tsThisTypes.push(node); - } - }, - 'TSInterfaceDeclaration:exit'(node) { - if (!hasOneSupertype(node) && node.body.body.length === 1) { - checkMember(node.body.body[0], node, tsThisTypes); - } - // on exit check member and reset the array to nothing. - tsThisTypes = null; - }, - // keep track of nested literals to avoid complaining about invalid `this` uses - 'TSInterfaceDeclaration TSTypeLiteral'() { - literalNesting += 1; - }, - 'TSInterfaceDeclaration TSTypeLiteral:exit'() { - literalNesting -= 1; - }, - 'TSTypeLiteral[members.length = 1]'(node) { - checkMember(node.members[0], node); - }, - }; - }, -}); -//# sourceMappingURL=prefer-function-type.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map deleted file mode 100644 index 913ae720..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-function-type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-function-type.js","sourceRoot":"","sources":["../../src/rules/prefer-function-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA2E;AAE3E,8CAAgC;AAEnB,QAAA,OAAO,GAAG;IACrB,CAAC,sBAAc,CAAC,aAAa,CAAC,EAAE,cAAc;IAC9C,CAAC,sBAAc,CAAC,sBAAsB,CAAC,EAAE,WAAW;CAC5C,CAAC;AAEX,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,sBAAsB;IAC5B,IAAI,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AE,eAAO,CAAC,IAAI,CAAC,IAAI,CAAC;qBACvC;oBACD,GAAG;iBACJ,CAAC,CAAC;aACJ;QACH,CAAC;QACD,IAAI,WAAW,GAAiC,IAAI,CAAC;QACrD,IAAI,cAAc,GAAG,CAAC,CAAC;QACvB,OAAO;YACL,sBAAsB;gBACpB,kEAAkE;gBAClE,WAAW,GAAG,EAAE,CAAC;YACnB,CAAC;YACD,mCAAmC,CAAC,IAAyB;gBAC3D,6DAA6D;gBAC7D,kFAAkF;gBAClF,sGAAsG;gBACtG,IAAI,cAAc,KAAK,CAAC,IAAI,WAAW,IAAI,IAAI,EAAE;oBAC/C,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBACxB;YACH,CAAC;YACD,6BAA6B,CAC3B,IAAqC;gBAErC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;oBACzD,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;iBACnD;gBACD,uDAAuD;gBACvD,WAAW,GAAG,IAAI,CAAC;YACrB,CAAC;YACD,+EAA+E;YAC/E,sCAAsC;gBACpC,cAAc,IAAI,CAAC,CAAC;YACtB,CAAC;YACD,2CAA2C;gBACzC,cAAc,IAAI,CAAC,CAAC;YACtB,CAAC;YACD,mCAAmC,CAAC,IAA4B;gBAC9D,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;YACrC,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js deleted file mode 100644 index 44702b66..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js +++ /dev/null @@ -1,228 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const regexpp_1 = require("@eslint-community/regexpp"); -const utils_1 = require("@typescript-eslint/utils"); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'prefer-includes', - defaultOptions: [], - meta: { - type: 'suggestion', - docs: { - description: 'Enforce `includes` method over `indexOf` method', - recommended: 'strict', - requiresTypeChecking: true, - }, - fixable: 'code', - messages: { - preferIncludes: "Use 'includes()' method instead.", - preferStringIncludes: 'Use `String#includes()` method with a string instead.', - }, - schema: [], - }, - create(context) { - const globalScope = context.getScope(); - const services = (0, util_1.getParserServices)(context); - const types = services.program.getTypeChecker(); - function isNumber(node, value) { - const evaluated = (0, util_1.getStaticValue)(node, globalScope); - return evaluated != null && evaluated.value === value; - } - function isPositiveCheck(node) { - switch (node.operator) { - case '!==': - case '!=': - case '>': - return isNumber(node.right, -1); - case '>=': - return isNumber(node.right, 0); - default: - return false; - } - } - function isNegativeCheck(node) { - switch (node.operator) { - case '===': - case '==': - case '<=': - return isNumber(node.right, -1); - case '<': - return isNumber(node.right, 0); - default: - return false; - } - } - function hasSameParameters(nodeA, nodeB) { - if (!ts.isFunctionLike(nodeA) || !ts.isFunctionLike(nodeB)) { - return false; - } - const paramsA = nodeA.parameters; - const paramsB = nodeB.parameters; - if (paramsA.length !== paramsB.length) { - return false; - } - for (let i = 0; i < paramsA.length; ++i) { - const paramA = paramsA[i]; - const paramB = paramsB[i]; - // Check name, type, and question token once. - if (paramA.getText() !== paramB.getText()) { - return false; - } - } - return true; - } - /** - * Parse a given node if it's a `RegExp` instance. - * @param node The node to parse. - */ - function parseRegExp(node) { - const evaluated = (0, util_1.getStaticValue)(node, globalScope); - if (evaluated == null || !(evaluated.value instanceof RegExp)) { - return null; - } - const { pattern, flags } = (0, regexpp_1.parseRegExpLiteral)(evaluated.value); - if (pattern.alternatives.length !== 1 || - flags.ignoreCase || - flags.global) { - return null; - } - // Check if it can determine a unique string. - const chars = pattern.alternatives[0].elements; - if (!chars.every(c => c.type === 'Character')) { - return null; - } - // To string. - return String.fromCodePoint(...chars.map(c => c.value)); - } - function escapeString(str) { - const EscapeMap = { - '\0': '\\0', - "'": "\\'", - '\\': '\\\\', - '\n': '\\n', - '\r': '\\r', - '\v': '\\v', - '\t': '\\t', - '\f': '\\f', - // "\b" cause unexpected replacements - // '\b': '\\b', - }; - const replaceRegex = new RegExp(Object.values(EscapeMap).join('|'), 'g'); - return str.replace(replaceRegex, char => EscapeMap[char]); - } - function checkArrayIndexOf(node, allowFixing) { - var _a, _b, _c; - // Check if the comparison is equivalent to `includes()`. - const callNode = node.parent; - const compareNode = (((_a = callNode.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.ChainExpression - ? callNode.parent.parent - : callNode.parent); - const negative = isNegativeCheck(compareNode); - if (!negative && !isPositiveCheck(compareNode)) { - return; - } - // Get the symbol of `indexOf` method. - const tsNode = services.esTreeNodeToTSNodeMap.get(node.property); - const indexofMethodDeclarations = (_b = types - .getSymbolAtLocation(tsNode)) === null || _b === void 0 ? void 0 : _b.getDeclarations(); - if (indexofMethodDeclarations == null || - indexofMethodDeclarations.length === 0) { - return; - } - // Check if every declaration of `indexOf` method has `includes` method - // and the two methods have the same parameters. - for (const instanceofMethodDecl of indexofMethodDeclarations) { - const typeDecl = instanceofMethodDecl.parent; - const type = types.getTypeAtLocation(typeDecl); - const includesMethodDecl = (_c = type - .getProperty('includes')) === null || _c === void 0 ? void 0 : _c.getDeclarations(); - if (includesMethodDecl == null || - !includesMethodDecl.some(includesMethodDecl => hasSameParameters(includesMethodDecl, instanceofMethodDecl))) { - return; - } - } - // Report it. - context.report(Object.assign({ node: compareNode, messageId: 'preferIncludes' }, (allowFixing && { - *fix(fixer) { - if (negative) { - yield fixer.insertTextBefore(callNode, '!'); - } - yield fixer.replaceText(node.property, 'includes'); - yield fixer.removeRange([callNode.range[1], compareNode.range[1]]); - }, - }))); - } - return { - // a.indexOf(b) !== 1 - "BinaryExpression > CallExpression.left > MemberExpression.callee[property.name='indexOf'][computed=false]"(node) { - checkArrayIndexOf(node, /* allowFixing */ true); - }, - // a?.indexOf(b) !== 1 - "BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name='indexOf'][computed=false]"(node) { - checkArrayIndexOf(node, /* allowFixing */ false); - }, - // /bar/.test(foo) - 'CallExpression[arguments.length=1] > MemberExpression.callee[property.name="test"][computed=false]'(node) { - var _a; - const callNode = node.parent; - const text = parseRegExp(node.object); - if (text == null) { - return; - } - //check the argument type of test methods - const argument = callNode.arguments[0]; - const tsNode = services.esTreeNodeToTSNodeMap.get(argument); - const type = (0, util_1.getConstrainedTypeAtLocation)(types, tsNode); - const includesMethodDecl = (_a = type - .getProperty('includes')) === null || _a === void 0 ? void 0 : _a.getDeclarations(); - if (includesMethodDecl == null) { - return; - } - context.report({ - node: callNode, - messageId: 'preferStringIncludes', - *fix(fixer) { - const argNode = callNode.arguments[0]; - const needsParen = argNode.type !== utils_1.AST_NODE_TYPES.Literal && - argNode.type !== utils_1.AST_NODE_TYPES.TemplateLiteral && - argNode.type !== utils_1.AST_NODE_TYPES.Identifier && - argNode.type !== utils_1.AST_NODE_TYPES.MemberExpression && - argNode.type !== utils_1.AST_NODE_TYPES.CallExpression; - yield fixer.removeRange([callNode.range[0], argNode.range[0]]); - yield fixer.removeRange([argNode.range[1], callNode.range[1]]); - if (needsParen) { - yield fixer.insertTextBefore(argNode, '('); - yield fixer.insertTextAfter(argNode, ')'); - } - yield fixer.insertTextAfter(argNode, `${node.optional ? '?.' : '.'}includes('${escapeString(text)}')`); - }, - }); - }, - }; - }, -}); -//# sourceMappingURL=prefer-includes.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map deleted file mode 100644 index 7141422d..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-includes.js","sourceRoot":"","sources":["../../src/rules/prefer-includes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,uDAA+D;AAE/D,oDAA0D;AAC1D,+CAAiC;AAEjC,kCAKiB;AAEjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,iBAAiB;IACvB,cAAc,EAAE,EAAE;IAElB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,iDAAiD;YAC9D,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,cAAc,EAAE,kCAAkC;YAClD,oBAAoB,EAClB,uDAAuD;SAC1D;QACD,MAAM,EAAE,EAAE;KACX;IAED,MAAM,CAAC,OAAO;QACZ,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;QACvC,MAAM,QAAQ,GAAG,IAAA,wBA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AChD,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,CAAC;wBAEjD,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAC/D,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAC/D,IAAI,UAAU,EAAE;4BACd,MAAM,KAAK,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;4BAC3C,MAAM,KAAK,CAAC,eAAe,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;yBAC3C;wBACD,MAAM,KAAK,CAAC,eAAe,CACzB,OAAO,EACP,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,aAAa,YAAY,CAAC,IAAI,CAAC,IAAI,CACjE,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js deleted file mode 100644 index 1872986d..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'prefer-literal-enum-member', - meta: { - type: 'suggestion', - docs: { - description: 'Require all enum members to be literal values', - recommended: 'strict', - requiresTypeChecking: false, - }, - messages: { - notLiteral: `Explicit enum value must only be a literal value (string, number, boolean, etc).`, - }, - schema: [ - { - type: 'object', - properties: { - allowBitwiseExpressions: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - allowBitwiseExpressions: false, - }, - ], - create(context, [{ allowBitwiseExpressions }]) { - return { - TSEnumMember(node) { - // If there is no initializer, then this node is just the name of the member, so ignore. - if (node.initializer == null) { - return; - } - // any old literal - if (node.initializer.type === utils_1.AST_NODE_TYPES.Literal) { - return; - } - // TemplateLiteral without expressions - if (node.initializer.type === utils_1.AST_NODE_TYPES.TemplateLiteral && - node.initializer.expressions.length === 0) { - return; - } - // -1 and +1 - if (node.initializer.type === utils_1.AST_NODE_TYPES.UnaryExpression && - node.initializer.argument.type === utils_1.AST_NODE_TYPES.Literal && - (['+', '-'].includes(node.initializer.operator) || - (allowBitwiseExpressions && node.initializer.operator === '~'))) { - return; - } - if (allowBitwiseExpressions && - node.initializer.type === utils_1.AST_NODE_TYPES.BinaryExpression && - ['|', '&', '^', '<<', '>>', '>>>'].includes(node.initializer.operator) && - node.initializer.left.type === utils_1.AST_NODE_TYPES.Literal && - node.initializer.right.type === utils_1.AST_NODE_TYPES.Literal) { - return; - } - context.report({ - node: node.id, - messageId: 'notLiteral', - }); - }, - }; - }, -}); -//# sourceMappingURL=prefer-literal-enum-member.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js.map deleted file mode 100644 index e038cf40..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-literal-enum-member.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-literal-enum-member.js","sourceRoot":"","sources":["../../src/rules/prefer-literal-enum-member.ts"],"names":[],"mappings":";;AAAA,oDAA0D;AAE1D,kCAAqC;AAErC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE;QAC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E,uBAAuB;oBACvB,IAAI,CAAC,WAAW,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;oBACzD,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,QAAQ,CACzC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAC1B;oBACD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO;oBACrD,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,EACtD;oBACA,OAAO;iBACR;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI,EAAE,IAAI,CAAC,EAAE;oBACb,SAAS,EAAE,YAAY;iBACxB,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js deleted file mode 100644 index a565b35f..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'prefer-namespace-keyword', - meta: { - type: 'suggestion', - docs: { - description: 'Require using `namespace` keyword over `module` keyword to declare custom TypeScript modules', - recommended: 'error', - }, - fixable: 'code', - messages: { - useNamespace: "Use 'namespace' instead of 'module' to declare custom TypeScript modules.", - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const sourceCode = context.getSourceCode(); - return { - TSModuleDeclaration(node) { - // Do nothing if the name is a string. - if (!node.id || node.id.type === utils_1.AST_NODE_TYPES.Literal) { - return; - } - // Get tokens of the declaration header. - const moduleType = sourceCode.getTokenBefore(node.id); - if (moduleType && - moduleType.type === utils_1.AST_TOKEN_TYPES.Identifier && - moduleType.value === 'module') { - context.report({ - node, - messageId: 'useNamespace', - fix(fixer) { - return fixer.replaceText(moduleType, 'namespace'); - }, - }); - } - }, - }; - }, -}); -//# sourceMappingURL=prefer-namespace-keyword.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js.map deleted file mode 100644 index fff50648..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-namespace-keyword.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-namespace-keyword.js","sourceRoot":"","sources":["../../src/rules/prefer-namespace-keyword.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA2E;AAE3E,8CAAgC;AAEhC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,8FAA8F;YAChG,WAAW,EAAE,OAAO;SACrB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,YAAY,EACV,2EAA2E;SAC9E;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAE3C,OAAO;YACL,mBAAmB,CAAC,IAAI;gBACtB,sCAAsC;gBACtC,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,EAAE;oBACvD,OAAO;iBACR;gBACD,wCAAwC;gBACxC,MAAM,UAAU,GAAG,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBAEtD,IACE,UAAU;oBACV,UAAU,CAAC,IAAI,KAAK,uBAAe,CAAC,UAAU;oBAC9C,UAAU,CAAC,KAAK,KAAK,QAAQ,EAC7B;oBACA,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,cAAc;wBACzB,GAAG,CAAC,KAAK;4BACP,OAAO,KAAK,CAAC,WAAW,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;wBACpD,CAAC;qBACF,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js deleted file mode 100644 index b09d85bf..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js +++ /dev/null @@ -1,334 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'prefer-nullish-coalescing', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce using the nullish coalescing operator instead of logical chaining', - recommended: 'strict', - requiresTypeChecking: true, - }, - hasSuggestions: true, - messages: { - preferNullishOverOr: 'Prefer using nullish coalescing operator (`??`) instead of a logical or (`||`), as it is a safer operator.', - preferNullishOverTernary: 'Prefer using nullish coalescing operator (`??`) instead of a ternary expression, as it is simpler to read.', - suggestNullish: 'Fix to nullish coalescing operator (`??`).', - noStrictNullCheck: 'This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.', - }, - schema: [ - { - type: 'object', - properties: { - allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: { - type: 'boolean', - }, - ignoreConditionalTests: { - type: 'boolean', - }, - ignoreMixedLogicalExpressions: { - type: 'boolean', - }, - ignorePrimitives: { - type: 'object', - properties: { - bigint: { type: 'boolean' }, - boolean: { type: 'boolean' }, - number: { type: 'boolean' }, - string: { type: 'boolean' }, - }, - }, - ignoreTernaryTests: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false, - ignoreConditionalTests: true, - ignoreTernaryTests: true, - ignoreMixedLogicalExpressions: true, - ignorePrimitives: { - bigint: false, - boolean: false, - number: false, - string: false, - }, - }, - ], - create(context, [{ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing, ignoreConditionalTests, ignoreMixedLogicalExpressions, ignorePrimitives, ignoreTernaryTests, },]) { - const parserServices = util.getParserServices(context); - const compilerOptions = parserServices.program.getCompilerOptions(); - const sourceCode = context.getSourceCode(); - const checker = parserServices.program.getTypeChecker(); - const isStrictNullChecks = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'strictNullChecks'); - if (!isStrictNullChecks && - allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing !== true) { - context.report({ - loc: { - start: { line: 0, column: 0 }, - end: { line: 0, column: 0 }, - }, - messageId: 'noStrictNullCheck', - }); - } - return { - ConditionalExpression(node) { - if (ignoreTernaryTests) { - return; - } - let operator; - let nodesInsideTestExpression = []; - if (node.test.type === utils_1.AST_NODE_TYPES.BinaryExpression) { - nodesInsideTestExpression = [node.test.left, node.test.right]; - if (node.test.operator === '==' || - node.test.operator === '!=' || - node.test.operator === '===' || - node.test.operator === '!==') { - operator = node.test.operator; - } - } - else if (node.test.type === utils_1.AST_NODE_TYPES.LogicalExpression && - node.test.left.type === utils_1.AST_NODE_TYPES.BinaryExpression && - node.test.right.type === utils_1.AST_NODE_TYPES.BinaryExpression) { - nodesInsideTestExpression = [ - node.test.left.left, - node.test.left.right, - node.test.right.left, - node.test.right.right, - ]; - if (node.test.operator === '||') { - if (node.test.left.operator === '===' && - node.test.right.operator === '===') { - operator = '==='; - } - else if (((node.test.left.operator === '===' || - node.test.right.operator === '===') && - (node.test.left.operator === '==' || - node.test.right.operator === '==')) || - (node.test.left.operator === '==' && - node.test.right.operator === '==')) { - operator = '=='; - } - } - else if (node.test.operator === '&&') { - if (node.test.left.operator === '!==' && - node.test.right.operator === '!==') { - operator = '!=='; - } - else if (((node.test.left.operator === '!==' || - node.test.right.operator === '!==') && - (node.test.left.operator === '!=' || - node.test.right.operator === '!=')) || - (node.test.left.operator === '!=' && - node.test.right.operator === '!=')) { - operator = '!='; - } - } - } - if (!operator) { - return; - } - let identifier; - let hasUndefinedCheck = false; - let hasNullCheck = false; - // we check that the test only contains null, undefined and the identifier - for (const testNode of nodesInsideTestExpression) { - if (util.isNullLiteral(testNode)) { - hasNullCheck = true; - } - else if (util.isUndefinedIdentifier(testNode)) { - hasUndefinedCheck = true; - } - else if ((operator === '!==' || operator === '!=') && - util.isNodeEqual(testNode, node.consequent)) { - identifier = testNode; - } - else if ((operator === '===' || operator === '==') && - util.isNodeEqual(testNode, node.alternate)) { - identifier = testNode; - } - else { - return; - } - } - if (!identifier) { - return; - } - const isFixable = (() => { - // it is fixable if we check for both null and undefined, or not if neither - if (hasUndefinedCheck === hasNullCheck) { - return hasUndefinedCheck; - } - // it is fixable if we loosely check for either null or undefined - if (operator === '==' || operator === '!=') { - return true; - } - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(identifier); - const type = checker.getTypeAtLocation(tsNode); - const flags = util.getTypeFlags(type); - if (flags & (ts.TypeFlags.Any | ts.TypeFlags.Unknown)) { - return false; - } - const hasNullType = (flags & ts.TypeFlags.Null) !== 0; - // it is fixable if we check for undefined and the type is not nullable - if (hasUndefinedCheck && !hasNullType) { - return true; - } - const hasUndefinedType = (flags & ts.TypeFlags.Undefined) !== 0; - // it is fixable if we check for null and the type can't be undefined - return hasNullCheck && !hasUndefinedType; - })(); - if (isFixable) { - context.report({ - node, - messageId: 'preferNullishOverTernary', - suggest: [ - { - messageId: 'suggestNullish', - fix(fixer) { - const [left, right] = operator === '===' || operator === '==' - ? [node.alternate, node.consequent] - : [node.consequent, node.alternate]; - return fixer.replaceText(node, `${sourceCode.text.slice(left.range[0], left.range[1])} ?? ${sourceCode.text.slice(right.range[0], right.range[1])}`); - }, - }, - ], - }); - } - }, - 'LogicalExpression[operator = "||"]'(node) { - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - const type = checker.getTypeAtLocation(tsNode.left); - const isNullish = util.isNullableType(type, { allowUndefined: true }); - if (!isNullish) { - return; - } - if (ignoreConditionalTests === true && isConditionalTest(node)) { - return; - } - const isMixedLogical = isMixedLogicalExpression(node); - if (ignoreMixedLogicalExpressions === true && isMixedLogical) { - return; - } - const ignorableFlags = [ - ignorePrimitives.bigint && ts.TypeFlags.BigInt, - ignorePrimitives.boolean && ts.TypeFlags.BooleanLiteral, - ignorePrimitives.number && ts.TypeFlags.Number, - ignorePrimitives.string && ts.TypeFlags.String, - ] - .filter((flag) => flag !== undefined) - .reduce((previous, flag) => previous | flag, 0); - if (type.types.some(t => tsutils.isTypeFlagSet(t, ignorableFlags))) { - return; - } - const barBarOperator = util.nullThrows(sourceCode.getTokenAfter(node.left, token => token.type === utils_1.AST_TOKEN_TYPES.Punctuator && - token.value === node.operator), util.NullThrowsReasons.MissingToken('operator', node.type)); - function* fix(fixer) { - if (node.parent && util.isLogicalOrOperator(node.parent)) { - // '&&' and '??' operations cannot be mixed without parentheses (e.g. a && b ?? c) - if (node.left.type === utils_1.AST_NODE_TYPES.LogicalExpression && - !util.isLogicalOrOperator(node.left.left)) { - yield fixer.insertTextBefore(node.left.right, '('); - } - else { - yield fixer.insertTextBefore(node.left, '('); - } - yield fixer.insertTextAfter(node.right, ')'); - } - yield fixer.replaceText(barBarOperator, '??'); - } - context.report({ - node: barBarOperator, - messageId: 'preferNullishOverOr', - suggest: [ - { - messageId: 'suggestNullish', - fix, - }, - ], - }); - }, - }; - }, -}); -function isConditionalTest(node) { - const parents = new Set([node]); - let current = node.parent; - while (current) { - parents.add(current); - if ((current.type === utils_1.AST_NODE_TYPES.ConditionalExpression || - current.type === utils_1.AST_NODE_TYPES.DoWhileStatement || - current.type === utils_1.AST_NODE_TYPES.IfStatement || - current.type === utils_1.AST_NODE_TYPES.ForStatement || - current.type === utils_1.AST_NODE_TYPES.WhileStatement) && - parents.has(current.test)) { - return true; - } - if ([ - utils_1.AST_NODE_TYPES.ArrowFunctionExpression, - utils_1.AST_NODE_TYPES.FunctionExpression, - ].includes(current.type)) { - /** - * This is a weird situation like: - * `if (() => a || b) {}` - * `if (function () { return a || b }) {}` - */ - return false; - } - current = current.parent; - } - return false; -} -function isMixedLogicalExpression(node) { - const seen = new Set(); - const queue = [node.parent, node.left, node.right]; - for (const current of queue) { - if (seen.has(current)) { - continue; - } - seen.add(current); - if (current && current.type === utils_1.AST_NODE_TYPES.LogicalExpression) { - if (current.operator === '&&') { - return true; - } - else if (current.operator === '||') { - // check the pieces of the node to catch cases like `a || b || c && d` - queue.push(current.parent, current.left, current.right); - } - } - } - return false; -} -//# sourceMappingURL=prefer-nullish-coalescing.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map deleted file mode 100644 index 3389805f..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-nullish-coalescing.js","sourceRoot":"","sources":["../../src/rules/prefer-nullish-coalescing.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA2E;AAC3E,iDAAmC;AACnC,+CAAiC;AAEjC,8CAAgC;AAuBhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,2BAA2B;IACjC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,2EAA2E;YAC7E,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,mBAAmB,EACjB,4GAA4G;YAC9G,wBAAwB,EACtB,4GAA4G;YAC9G,cAAc,EAAE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E,sBAAc,CAAC,uBAAuB;YACtC,sBAAc,CAAC,kBAAkB;SAClC,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EACxB;YACA;;;;eAIG;YACH,OAAO,KAAK,CAAC;SACd;QAED,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;KAC1B;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,wBAAwB,CAAC,IAAgC;IAChE,MAAM,IAAI,GAAG,IAAI,GAAG,EAA6B,CAAC;IAClD,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IACnD,KAAK,MAAM,OAAO,IAAI,KAAK,EAAE;QAC3B,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;YACrB,SAAS;SACV;QACD,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAElB,IAAI,OAAO,IAAI,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB,EAAE;YAChE,IAAI,OAAO,CAAC,QAAQ,KAAK,IAAI,EAAE;gBAC7B,OAAO,IAAI,CAAC;aACb;iBAAM,IAAI,OAAO,CAAC,QAAQ,KAAK,IAAI,EAAE;gBACpC,sEAAsE;gBACtE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;aACzD;SACF;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js deleted file mode 100644 index 8915e0e0..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js +++ /dev/null @@ -1,488 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils_1 = require("tsutils"); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -/* -The AST is always constructed such the first element is always the deepest element. -I.e. for this code: `foo && foo.bar && foo.bar.baz && foo.bar.baz.buzz` -The AST will look like this: -{ - left: { - left: { - left: foo - right: foo.bar - } - right: foo.bar.baz - } - right: foo.bar.baz.buzz -} -*/ -exports.default = util.createRule({ - name: 'prefer-optional-chain', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce using concise optional chain expressions instead of chained logical ands, negated logical ors, or empty objects', - recommended: 'strict', - }, - hasSuggestions: true, - messages: { - preferOptionalChain: "Prefer using an optional chain expression instead, as it's more concise and easier to read.", - optionalChainSuggest: 'Change to an optional chain.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const sourceCode = context.getSourceCode(); - const parserServices = util.getParserServices(context, true); - return { - 'LogicalExpression[operator="||"], LogicalExpression[operator="??"]'(node) { - const leftNode = node.left; - const rightNode = node.right; - const parentNode = node.parent; - const isRightNodeAnEmptyObjectLiteral = rightNode.type === utils_1.AST_NODE_TYPES.ObjectExpression && - rightNode.properties.length === 0; - if (!isRightNodeAnEmptyObjectLiteral || - !parentNode || - parentNode.type !== utils_1.AST_NODE_TYPES.MemberExpression || - parentNode.optional) { - return; - } - function isLeftSideLowerPrecedence() { - const logicalTsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - const leftTsNode = parserServices.esTreeNodeToTSNodeMap.get(leftNode); - const operator = (0, tsutils_1.isBinaryExpression)(logicalTsNode) - ? logicalTsNode.operatorToken.kind - : ts.SyntaxKind.Unknown; - const leftPrecedence = util.getOperatorPrecedence(leftTsNode.kind, operator); - return leftPrecedence < util.OperatorPrecedence.LeftHandSide; - } - context.report({ - node: parentNode, - messageId: 'optionalChainSuggest', - suggest: [ - { - messageId: 'optionalChainSuggest', - fix: (fixer) => { - const leftNodeText = sourceCode.getText(leftNode); - // Any node that is made of an operator with higher or equal precedence, - const maybeWrappedLeftNode = isLeftSideLowerPrecedence() - ? `(${leftNodeText})` - : leftNodeText; - const propertyToBeOptionalText = sourceCode.getText(parentNode.property); - const maybeWrappedProperty = parentNode.computed - ? `[${propertyToBeOptionalText}]` - : propertyToBeOptionalText; - return fixer.replaceTextRange(parentNode.range, `${maybeWrappedLeftNode}?.${maybeWrappedProperty}`); - }, - }, - ], - }); - }, - [[ - 'LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > Identifier', - 'LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > MemberExpression', - 'LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > ChainExpression > MemberExpression', - 'LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > MetaProperty', - ].join(',')](initialIdentifierOrNotEqualsExpr) { - // selector guarantees this cast - const initialExpression = (initialIdentifierOrNotEqualsExpr.parent.type === - utils_1.AST_NODE_TYPES.ChainExpression - ? initialIdentifierOrNotEqualsExpr.parent.parent - : initialIdentifierOrNotEqualsExpr.parent).parent; - if (initialExpression.left.type !== utils_1.AST_NODE_TYPES.UnaryExpression || - initialExpression.left.argument !== initialIdentifierOrNotEqualsExpr) { - // the node(identifier or member expression) is not the deepest left node - return; - } - // walk up the tree to figure out how many logical expressions we can include - let previous = initialExpression; - let current = initialExpression; - let previousLeftText = getText(initialIdentifierOrNotEqualsExpr); - let optionallyChainedCode = previousLeftText; - let expressionCount = 1; - while (current.type === utils_1.AST_NODE_TYPES.LogicalExpression) { - if (current.right.type !== utils_1.AST_NODE_TYPES.UnaryExpression || - !isValidChainTarget(current.right.argument, - // only allow unary '!' with identifiers for the first chain - !foo || !foo() - expressionCount === 1)) { - break; - } - const { rightText, shouldBreak } = breakIfInvalid({ - rightNode: current.right.argument, - previousLeftText, - }); - if (shouldBreak) { - break; - } - let invalidOptionallyChainedPrivateProperty; - ({ - invalidOptionallyChainedPrivateProperty, - expressionCount, - previousLeftText, - optionallyChainedCode, - previous, - current, - } = normalizeRepeatingPatterns(rightText, expressionCount, previousLeftText, optionallyChainedCode, previous, current)); - if (invalidOptionallyChainedPrivateProperty) { - return; - } - } - reportIfMoreThanOne({ - expressionCount, - previous, - optionallyChainedCode, - sourceCode, - context, - shouldHandleChainedAnds: false, - }); - }, - [[ - 'LogicalExpression[operator="&&"] > Identifier', - 'LogicalExpression[operator="&&"] > MemberExpression', - 'LogicalExpression[operator="&&"] > ChainExpression > MemberExpression', - 'LogicalExpression[operator="&&"] > MetaProperty', - 'LogicalExpression[operator="&&"] > BinaryExpression[operator="!=="]', - 'LogicalExpression[operator="&&"] > BinaryExpression[operator="!="]', - ].join(',')](initialIdentifierOrNotEqualsExpr) { - var _a; - // selector guarantees this cast - const initialExpression = (((_a = initialIdentifierOrNotEqualsExpr.parent) === null || _a === void 0 ? void 0 : _a.type) === - utils_1.AST_NODE_TYPES.ChainExpression - ? initialIdentifierOrNotEqualsExpr.parent.parent - : initialIdentifierOrNotEqualsExpr.parent); - if (initialExpression.left !== initialIdentifierOrNotEqualsExpr) { - // the node(identifier or member expression) is not the deepest left node - return; - } - if (!isValidChainTarget(initialIdentifierOrNotEqualsExpr, true)) { - return; - } - // walk up the tree to figure out how many logical expressions we can include - let previous = initialExpression; - let current = initialExpression; - let previousLeftText = getText(initialIdentifierOrNotEqualsExpr); - let optionallyChainedCode = previousLeftText; - let expressionCount = 1; - while (current.type === utils_1.AST_NODE_TYPES.LogicalExpression) { - if (!isValidChainTarget(current.right, - // only allow identifiers for the first chain - foo && foo() - expressionCount === 1)) { - break; - } - const { rightText, shouldBreak } = breakIfInvalid({ - rightNode: current.right, - previousLeftText, - }); - if (shouldBreak) { - break; - } - let invalidOptionallyChainedPrivateProperty; - ({ - invalidOptionallyChainedPrivateProperty, - expressionCount, - previousLeftText, - optionallyChainedCode, - previous, - current, - } = normalizeRepeatingPatterns(rightText, expressionCount, previousLeftText, optionallyChainedCode, previous, current)); - if (invalidOptionallyChainedPrivateProperty) { - return; - } - } - reportIfMoreThanOne({ - expressionCount, - previous, - optionallyChainedCode, - sourceCode, - context, - shouldHandleChainedAnds: true, - }); - }, - }; - function breakIfInvalid({ previousLeftText, rightNode, }) { - let shouldBreak = false; - const rightText = getText(rightNode); - // can't just use startsWith because of cases like foo && fooBar.baz; - const matchRegex = new RegExp(`^${ - // escape regex characters - previousLeftText.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}[^a-zA-Z0-9_$]`); - if (!matchRegex.test(rightText) && - // handle redundant cases like foo.bar && foo.bar - previousLeftText !== rightText) { - shouldBreak = true; - } - return { shouldBreak, leftText: previousLeftText, rightText }; - } - function getText(node) { - if (node.type === utils_1.AST_NODE_TYPES.BinaryExpression) { - return getText( - // isValidChainTarget ensures this is type safe - node.left); - } - if (node.type === utils_1.AST_NODE_TYPES.CallExpression) { - const calleeText = getText( - // isValidChainTarget ensures this is type safe - node.callee); - // ensure that the call arguments are left untouched, or else we can break cases that _need_ whitespace: - // - JSX: - // - Unary Operators: typeof foo, await bar, delete baz - const closingParenToken = util.nullThrows(sourceCode.getLastToken(node), util.NullThrowsReasons.MissingToken('closing parenthesis', node.type)); - const openingParenToken = util.nullThrows(sourceCode.getFirstTokenBetween(node.callee, closingParenToken, util.isOpeningParenToken), util.NullThrowsReasons.MissingToken('opening parenthesis', node.type)); - const argumentsText = sourceCode.text.substring(openingParenToken.range[0], closingParenToken.range[1]); - return `${calleeText}${argumentsText}`; - } - if (node.type === utils_1.AST_NODE_TYPES.Identifier || - node.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { - return node.name; - } - if (node.type === utils_1.AST_NODE_TYPES.MetaProperty) { - return `${node.meta.name}.${node.property.name}`; - } - if (node.type === utils_1.AST_NODE_TYPES.ThisExpression) { - return 'this'; - } - if (node.type === utils_1.AST_NODE_TYPES.ChainExpression) { - /* istanbul ignore if */ if (node.expression.type === utils_1.AST_NODE_TYPES.TSNonNullExpression) { - // this shouldn't happen - return ''; - } - return getText(node.expression); - } - if (node.object.type === utils_1.AST_NODE_TYPES.TSNonNullExpression) { - // Not supported mixing with TSNonNullExpression - return ''; - } - return getMemberExpressionText(node); - } - /** - * Gets a normalized representation of the given MemberExpression - */ - function getMemberExpressionText(node) { - let objectText; - // cases should match the list in ALLOWED_MEMBER_OBJECT_TYPES - switch (node.object.type) { - case utils_1.AST_NODE_TYPES.MemberExpression: - objectText = getMemberExpressionText(node.object); - break; - case utils_1.AST_NODE_TYPES.CallExpression: - case utils_1.AST_NODE_TYPES.Identifier: - case utils_1.AST_NODE_TYPES.MetaProperty: - case utils_1.AST_NODE_TYPES.ThisExpression: - objectText = getText(node.object); - break; - /* istanbul ignore next */ - default: - return ''; - } - let propertyText; - if (node.computed) { - // cases should match the list in ALLOWED_COMPUTED_PROP_TYPES - switch (node.property.type) { - case utils_1.AST_NODE_TYPES.Identifier: - propertyText = getText(node.property); - break; - case utils_1.AST_NODE_TYPES.Literal: - case utils_1.AST_NODE_TYPES.TemplateLiteral: - case utils_1.AST_NODE_TYPES.BinaryExpression: - propertyText = sourceCode.getText(node.property); - break; - case utils_1.AST_NODE_TYPES.MemberExpression: - propertyText = getMemberExpressionText(node.property); - break; - /* istanbul ignore next */ - default: - return ''; - } - return `${objectText}${node.optional ? '?.' : ''}[${propertyText}]`; - } - else { - // cases should match the list in ALLOWED_NON_COMPUTED_PROP_TYPES - switch (node.property.type) { - case utils_1.AST_NODE_TYPES.Identifier: - propertyText = getText(node.property); - break; - case utils_1.AST_NODE_TYPES.PrivateIdentifier: - propertyText = '#' + getText(node.property); - break; - default: - propertyText = sourceCode.getText(node.property); - } - return `${objectText}${node.optional ? '?.' : '.'}${propertyText}`; - } - } - }, -}); -const ALLOWED_MEMBER_OBJECT_TYPES = new Set([ - utils_1.AST_NODE_TYPES.CallExpression, - utils_1.AST_NODE_TYPES.Identifier, - utils_1.AST_NODE_TYPES.MemberExpression, - utils_1.AST_NODE_TYPES.ThisExpression, - utils_1.AST_NODE_TYPES.MetaProperty, -]); -const ALLOWED_COMPUTED_PROP_TYPES = new Set([ - utils_1.AST_NODE_TYPES.Identifier, - utils_1.AST_NODE_TYPES.Literal, - utils_1.AST_NODE_TYPES.MemberExpression, - utils_1.AST_NODE_TYPES.TemplateLiteral, -]); -const ALLOWED_NON_COMPUTED_PROP_TYPES = new Set([ - utils_1.AST_NODE_TYPES.Identifier, - utils_1.AST_NODE_TYPES.PrivateIdentifier, -]); -function reportIfMoreThanOne({ expressionCount, previous, optionallyChainedCode, sourceCode, context, shouldHandleChainedAnds, }) { - if (expressionCount > 1) { - if (shouldHandleChainedAnds && - previous.right.type === utils_1.AST_NODE_TYPES.BinaryExpression) { - let operator = previous.right.operator; - if (previous.right.operator === '!==' && - // TODO(#4820): Use the type checker to know whether this is `null` - previous.right.right.type === utils_1.AST_NODE_TYPES.Literal && - previous.right.right.raw === 'null') { - // case like foo !== null && foo.bar !== null - operator = '!='; - } - // case like foo && foo.bar !== someValue - optionallyChainedCode += ` ${operator} ${sourceCode.getText(previous.right.right)}`; - } - context.report({ - node: previous, - messageId: 'preferOptionalChain', - suggest: [ - { - messageId: 'optionalChainSuggest', - fix: (fixer) => [ - fixer.replaceText(previous, `${shouldHandleChainedAnds ? '' : '!'}${optionallyChainedCode}`), - ], - }, - ], - }); - } -} -function normalizeRepeatingPatterns(rightText, expressionCount, previousLeftText, optionallyChainedCode, previous, current) { - const leftText = previousLeftText; - let invalidOptionallyChainedPrivateProperty = false; - // omit weird doubled up expression that make no sense like foo.bar && foo.bar - if (rightText !== previousLeftText) { - expressionCount += 1; - previousLeftText = rightText; - /* - Diff the left and right text to construct the fix string - There are the following cases: - - 1) - rightText === 'foo.bar.baz.buzz' - leftText === 'foo.bar.baz' - diff === '.buzz' - - 2) - rightText === 'foo.bar.baz.buzz()' - leftText === 'foo.bar.baz' - diff === '.buzz()' - - 3) - rightText === 'foo.bar.baz.buzz()' - leftText === 'foo.bar.baz.buzz' - diff === '()' - - 4) - rightText === 'foo.bar.baz[buzz]' - leftText === 'foo.bar.baz' - diff === '[buzz]' - - 5) - rightText === 'foo.bar.baz?.buzz' - leftText === 'foo.bar.baz' - diff === '?.buzz' - */ - const diff = rightText.replace(leftText, ''); - if (diff.startsWith('.#')) { - // Do not handle direct optional chaining on private properties because of a typescript bug (https://github.com/microsoft/TypeScript/issues/42734) - // We still allow in computed properties - invalidOptionallyChainedPrivateProperty = true; - } - if (diff.startsWith('?')) { - // item was "pre optional chained" - optionallyChainedCode += diff; - } - else { - const needsDot = diff.startsWith('(') || diff.startsWith('['); - optionallyChainedCode += `?${needsDot ? '.' : ''}${diff}`; - } - } - previous = current; - current = util.nullThrows(current.parent, util.NullThrowsReasons.MissingParent); - return { - invalidOptionallyChainedPrivateProperty, - expressionCount, - previousLeftText, - optionallyChainedCode, - previous, - current, - }; -} -function isValidChainTarget(node, allowIdentifier) { - if (node.type === utils_1.AST_NODE_TYPES.ChainExpression) { - return isValidChainTarget(node.expression, allowIdentifier); - } - if (node.type === utils_1.AST_NODE_TYPES.MemberExpression) { - const isObjectValid = ALLOWED_MEMBER_OBJECT_TYPES.has(node.object.type) && - // make sure to validate the expression is of our expected structure - isValidChainTarget(node.object, true); - const isPropertyValid = node.computed - ? ALLOWED_COMPUTED_PROP_TYPES.has(node.property.type) && - // make sure to validate the member expression is of our expected structure - (node.property.type === utils_1.AST_NODE_TYPES.MemberExpression - ? isValidChainTarget(node.property, allowIdentifier) - : true) - : ALLOWED_NON_COMPUTED_PROP_TYPES.has(node.property.type); - return isObjectValid && isPropertyValid; - } - if (node.type === utils_1.AST_NODE_TYPES.CallExpression) { - return isValidChainTarget(node.callee, allowIdentifier); - } - if (allowIdentifier && - (node.type === utils_1.AST_NODE_TYPES.Identifier || - node.type === utils_1.AST_NODE_TYPES.ThisExpression || - node.type === utils_1.AST_NODE_TYPES.MetaProperty)) { - return true; - } - /* - special case for the following, where we only want the left - - foo !== null - - foo != null - - foo !== undefined - - foo != undefined - */ - return (node.type === utils_1.AST_NODE_TYPES.BinaryExpression && - ['!==', '!='].includes(node.operator) && - isValidChainTarget(node.left, allowIdentifier) && - (util.isUndefinedIdentifier(node.right) || util.isNullLiteral(node.right))); -} -//# sourceMappingURL=prefer-optional-chain.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map deleted file mode 100644 index 2405cae8..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-optional-chain.js","sourceRoot":"","sources":["../../src/rules/prefer-optional-chain.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,qCAA6C;AAC7C,+CAAiC;AAEjC,8CAAgC;AAYhC;;;;;;;;;;;;;;EAcE;AAEF,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,yHAAyH;YAC3H,WAAW,EAAE,QAAQ;SACtB;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EA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AC,IAAI,EAAE,eAAe,CAAC;QAC9C,CAAC,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAC3E,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js deleted file mode 100644 index d4609d30..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js +++ /dev/null @@ -1,97 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'prefer-readonly-parameter-types', - meta: { - type: 'suggestion', - docs: { - description: 'Require function parameters to be typed as `readonly` to prevent accidental mutation of inputs', - recommended: false, - requiresTypeChecking: true, - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: Object.assign({ checkParameterProperties: { - type: 'boolean', - }, ignoreInferredTypes: { - type: 'boolean', - } }, util.readonlynessOptionsSchema.properties), - }, - ], - messages: { - shouldBeReadonly: 'Parameter should be a read only type.', - }, - }, - defaultOptions: [ - Object.assign({ checkParameterProperties: true, ignoreInferredTypes: false }, util.readonlynessOptionsDefaults), - ], - create(context, [{ checkParameterProperties, ignoreInferredTypes, treatMethodsAsReadonly }]) { - const { esTreeNodeToTSNodeMap, program } = util.getParserServices(context); - const checker = program.getTypeChecker(); - return { - [[ - utils_1.AST_NODE_TYPES.ArrowFunctionExpression, - utils_1.AST_NODE_TYPES.FunctionDeclaration, - utils_1.AST_NODE_TYPES.FunctionExpression, - utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration, - utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration, - utils_1.AST_NODE_TYPES.TSDeclareFunction, - utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression, - utils_1.AST_NODE_TYPES.TSFunctionType, - utils_1.AST_NODE_TYPES.TSMethodSignature, - ].join(', ')](node) { - for (const param of node.params) { - if (!checkParameterProperties && - param.type === utils_1.AST_NODE_TYPES.TSParameterProperty) { - continue; - } - const actualParam = param.type === utils_1.AST_NODE_TYPES.TSParameterProperty - ? param.parameter - : param; - if (ignoreInferredTypes && actualParam.typeAnnotation == null) { - continue; - } - const tsNode = esTreeNodeToTSNodeMap.get(actualParam); - const type = checker.getTypeAtLocation(tsNode); - const isReadOnly = util.isTypeReadonly(checker, type, { - treatMethodsAsReadonly: treatMethodsAsReadonly, - }); - if (!isReadOnly) { - context.report({ - node: actualParam, - messageId: 'shouldBeReadonly', - }); - } - } - }, - }; - }, -}); -//# sourceMappingURL=prefer-readonly-parameter-types.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js.map deleted file mode 100644 index 219c6898..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly-parameter-types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-readonly-parameter-types.js","sourceRoot":"","sources":["../../src/rules/prefer-readonly-parameter-types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAUhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,iCAAiC;IACvC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,gGAAgG;YAClG,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,kBACR,wBAAwB,EAAE;wBACxB,IAAI,EAAE,SAAS;qBAChB,EACD,mBAAmB,EAAE;wBACnB,IAAI,EAAE,SAAS;qBAChB,IACE,IAAI,CAAC,yBAAyB,CAAC,UAAU,CAC7C;aACF;SACF;QACD,QAAQ,EAAE;YACR,gBAAgB,EAAE,uCAAuC;SAC1D;KACF;IACD,cAAc,EAAE;wBAEZ,wBAAwB,EAAE,IAAI,EAC9B,mBAAmB,EAAE,KAAK,IACvB,IAAI,CAAC,2BAA2B;KAEtC;IACD,MAAM,CACJ,OAAO,EACP,CAAC,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,CAAC;QAE3E,MAAM,EAAE,qBAAqB,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3E,MAAM,OAAO,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;QAEzC,OAAO;YACL,CAAC;gBACC,sBAAc,CAAC,uBAAuB;gBACtC,sBAAc,CAAC,mBAAmB;gBAClC,sBAAc,CAAC,kBAAkB;gBACjC,sBAAc,CAAC,0BAA0B;gBACzC,sBAAc,CAAC,+BAA+B;gBAC9C,sBAAc,CAAC,iBAAiB;gBAChC,sBAAc,CAAC,6BAA6B;gBAC5C,sBAAc,CAAC,cAAc;gBAC7B,sBAAc,CAAC,iBAAiB;aACjC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CACX,IAS8B;gBAE9B,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,MAAM,EAAE;oBAC/B,IACE,CAAC,wBAAwB;wBACzB,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB,EACjD;wBACA,SAAS;qBACV;oBAED,MAAM,WAAW,GACf,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB;wBAC/C,CAAC,CAAC,KAAK,CAAC,SAAS;wBACjB,CAAC,CAAC,KAAK,CAAC;oBAEZ,IAAI,mBAAmB,IAAI,WAAW,CAAC,cAAc,IAAI,IAAI,EAAE;wBAC7D,SAAS;qBACV;oBAED,MAAM,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;oBACtD,MAAM,IAAI,GAAG,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;oBAC/C,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE;wBACpD,sBAAsB,EAAE,sBAAuB;qBAChD,CAAC,CAAC;oBAEH,IAAI,CAAC,UAAU,EAAE;wBACf,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,WAAW;4BACjB,SAAS,EAAE,kBAAkB;yBAC9B,CAAC,CAAC;qBACJ;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js deleted file mode 100644 index 8d75f6cc..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js +++ /dev/null @@ -1,270 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -const util_1 = require("../util"); -const functionScopeBoundaries = [ - utils_1.AST_NODE_TYPES.ArrowFunctionExpression, - utils_1.AST_NODE_TYPES.FunctionDeclaration, - utils_1.AST_NODE_TYPES.FunctionExpression, - utils_1.AST_NODE_TYPES.MethodDefinition, -].join(', '); -exports.default = util.createRule({ - name: 'prefer-readonly', - meta: { - docs: { - description: "Require private members to be marked as `readonly` if they're never modified outside of the constructor", - recommended: false, - requiresTypeChecking: true, - }, - fixable: 'code', - messages: { - preferReadonly: "Member '{{name}}' is never reassigned; mark it as `readonly`.", - }, - schema: [ - { - allowAdditionalProperties: false, - properties: { - onlyInlineLambdas: { - type: 'boolean', - }, - }, - type: 'object', - }, - ], - type: 'suggestion', - }, - defaultOptions: [{ onlyInlineLambdas: false }], - create(context, [{ onlyInlineLambdas }]) { - const parserServices = util.getParserServices(context); - const checker = parserServices.program.getTypeChecker(); - const classScopeStack = []; - function handlePropertyAccessExpression(node, parent, classScope) { - if (ts.isBinaryExpression(parent)) { - handleParentBinaryExpression(node, parent, classScope); - return; - } - if (ts.isDeleteExpression(parent) || isDestructuringAssignment(node)) { - classScope.addVariableModification(node); - return; - } - if (ts.isPostfixUnaryExpression(parent) || - ts.isPrefixUnaryExpression(parent)) { - handleParentPostfixOrPrefixUnaryExpression(parent, classScope); - } - } - function handleParentBinaryExpression(node, parent, classScope) { - if (parent.left === node && - tsutils.isAssignmentKind(parent.operatorToken.kind)) { - classScope.addVariableModification(node); - } - } - function handleParentPostfixOrPrefixUnaryExpression(node, classScope) { - if (node.operator === ts.SyntaxKind.PlusPlusToken || - node.operator === ts.SyntaxKind.MinusMinusToken) { - classScope.addVariableModification(node.operand); - } - } - function isDestructuringAssignment(node) { - let current = node.parent; - while (current) { - const parent = current.parent; - if (ts.isObjectLiteralExpression(parent) || - ts.isArrayLiteralExpression(parent) || - ts.isSpreadAssignment(parent) || - (ts.isSpreadElement(parent) && - ts.isArrayLiteralExpression(parent.parent))) { - current = parent; - } - else if (ts.isBinaryExpression(parent) && - !ts.isPropertyAccessExpression(current)) { - return (parent.left === current && - parent.operatorToken.kind === ts.SyntaxKind.EqualsToken); - } - else { - break; - } - } - return false; - } - function isFunctionScopeBoundaryInStack(node) { - if (classScopeStack.length === 0) { - return false; - } - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - if (ts.isConstructorDeclaration(tsNode)) { - return false; - } - return tsutils.isFunctionScopeBoundary(tsNode); - } - function getEsNodesFromViolatingNode(violatingNode) { - if (ts.isParameterPropertyDeclaration(violatingNode, violatingNode.parent)) { - return { - esNode: parserServices.tsNodeToESTreeNodeMap.get(violatingNode.name), - nameNode: parserServices.tsNodeToESTreeNodeMap.get(violatingNode.name), - }; - } - return { - esNode: parserServices.tsNodeToESTreeNodeMap.get(violatingNode), - nameNode: parserServices.tsNodeToESTreeNodeMap.get(violatingNode.name), - }; - } - return { - 'ClassDeclaration, ClassExpression'(node) { - classScopeStack.push(new ClassScope(checker, parserServices.esTreeNodeToTSNodeMap.get(node), onlyInlineLambdas)); - }, - 'ClassDeclaration, ClassExpression:exit'() { - const finalizedClassScope = classScopeStack.pop(); - const sourceCode = context.getSourceCode(); - for (const violatingNode of finalizedClassScope.finalizeUnmodifiedPrivateNonReadonlys()) { - const { esNode, nameNode } = getEsNodesFromViolatingNode(violatingNode); - context.report({ - data: { - name: sourceCode.getText(nameNode), - }, - fix: fixer => fixer.insertTextBefore(nameNode, 'readonly '), - messageId: 'preferReadonly', - node: esNode, - }); - } - }, - MemberExpression(node) { - if (classScopeStack.length !== 0 && !node.computed) { - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - handlePropertyAccessExpression(tsNode, tsNode.parent, classScopeStack[classScopeStack.length - 1]); - } - }, - [functionScopeBoundaries](node) { - if (utils_1.ASTUtils.isConstructor(node)) { - classScopeStack[classScopeStack.length - 1].enterConstructor(parserServices.esTreeNodeToTSNodeMap.get(node)); - } - else if (isFunctionScopeBoundaryInStack(node)) { - classScopeStack[classScopeStack.length - 1].enterNonConstructor(); - } - }, - [`${functionScopeBoundaries}:exit`](node) { - if (utils_1.ASTUtils.isConstructor(node)) { - classScopeStack[classScopeStack.length - 1].exitConstructor(); - } - else if (isFunctionScopeBoundaryInStack(node)) { - classScopeStack[classScopeStack.length - 1].exitNonConstructor(); - } - }, - }; - }, -}); -const OUTSIDE_CONSTRUCTOR = -1; -const DIRECTLY_INSIDE_CONSTRUCTOR = 0; -class ClassScope { - constructor(checker, classNode, onlyInlineLambdas) { - this.checker = checker; - this.onlyInlineLambdas = onlyInlineLambdas; - this.privateModifiableMembers = new Map(); - this.privateModifiableStatics = new Map(); - this.memberVariableModifications = new Set(); - this.staticVariableModifications = new Set(); - this.constructorScopeDepth = OUTSIDE_CONSTRUCTOR; - const classType = checker.getTypeAtLocation(classNode); - if (tsutils.isIntersectionType(classType)) { - this.classType = classType.types[0]; - } - else { - this.classType = classType; - } - for (const member of classNode.members) { - if (ts.isPropertyDeclaration(member)) { - this.addDeclaredVariable(member); - } - } - } - addDeclaredVariable(node) { - if (!tsutils.isModifierFlagSet(node, ts.ModifierFlags.Private) || - tsutils.isModifierFlagSet(node, ts.ModifierFlags.Readonly) || - ts.isComputedPropertyName(node.name)) { - return; - } - if (this.onlyInlineLambdas && - node.initializer !== undefined && - !ts.isArrowFunction(node.initializer)) { - return; - } - (tsutils.isModifierFlagSet(node, ts.ModifierFlags.Static) - ? this.privateModifiableStatics - : this.privateModifiableMembers).set(node.name.getText(), node); - } - addVariableModification(node) { - const modifierType = this.checker.getTypeAtLocation(node.expression); - if (!modifierType.getSymbol() || - !(0, util_1.typeIsOrHasBaseType)(modifierType, this.classType)) { - return; - } - const modifyingStatic = tsutils.isObjectType(modifierType) && - tsutils.isObjectFlagSet(modifierType, ts.ObjectFlags.Anonymous); - if (!modifyingStatic && - this.constructorScopeDepth === DIRECTLY_INSIDE_CONSTRUCTOR) { - return; - } - (modifyingStatic - ? this.staticVariableModifications - : this.memberVariableModifications).add(node.name.text); - } - enterConstructor(node) { - this.constructorScopeDepth = DIRECTLY_INSIDE_CONSTRUCTOR; - for (const parameter of node.parameters) { - if (tsutils.isModifierFlagSet(parameter, ts.ModifierFlags.Private)) { - this.addDeclaredVariable(parameter); - } - } - } - exitConstructor() { - this.constructorScopeDepth = OUTSIDE_CONSTRUCTOR; - } - enterNonConstructor() { - if (this.constructorScopeDepth !== OUTSIDE_CONSTRUCTOR) { - this.constructorScopeDepth += 1; - } - } - exitNonConstructor() { - if (this.constructorScopeDepth !== OUTSIDE_CONSTRUCTOR) { - this.constructorScopeDepth -= 1; - } - } - finalizeUnmodifiedPrivateNonReadonlys() { - this.memberVariableModifications.forEach(variableName => { - this.privateModifiableMembers.delete(variableName); - }); - this.staticVariableModifications.forEach(variableName => { - this.privateModifiableStatics.delete(variableName); - }); - return [ - ...Array.from(this.privateModifiableMembers.values()), - ...Array.from(this.privateModifiableStatics.values()), - ]; - } -} -//# sourceMappingURL=prefer-readonly.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map deleted file mode 100644 index 9cc9fa00..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-readonly.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-readonly.js","sourceRoot":"","sources":["../../src/rules/prefer-readonly.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAAoE;AACpE,iDAAmC;AACnC,+CAAiC;AAEjC,8CAAgC;AAChC,kCAA8C;AAS9C,MAAM,uBAAuB,GAAG;IAC9B,sBAAc,CAAC,uBAAuB;IACtC,sBAAc,CAAC,mBAAmB;IAClC,sBAAc,CAAC,kBAAkB;IACjC,sBAAc,CAAC,gBAAgB;CAChC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,yGAAyG;YAC3G,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,cAAc,EACZ,+DAA+D;SAClE;QACD,MAAM,EAAE;YACN;gBACE,yBAAyB,EAAE,KAAK;gBAChC,UAAU,EAAE;oBACV,iBAAiB,EAAE;wBACjB,IAAI,EAAE,SAAS;qBAChB;iBACF;gBACD,IAAI,EAAE,QAAQ;aACf;SACF;QACD,IAAI,EAAE,YAAY;KACnB;IACD,cAAc,EAAE,CAAC,EAAE,iBAAiB,EAAE,KAAK,EAAE,CAAC;IAC9C,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,iBAAiB,EAAE,CAAC;QACrC,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACvD,MA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AAE;YACtD,IAAI,CAAC,qBAAqB,IAAI,CAAC,CAAC;SACjC;IACH,CAAC;IAEM,qCAAqC;QAC1C,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;YACtD,IAAI,CAAC,wBAAwB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;YACtD,IAAI,CAAC,wBAAwB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;QAEH,OAAO;YACL,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,MAAM,EAAE,CAAC;YACrD,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,MAAM,EAAE,CAAC;SACtD,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js deleted file mode 100644 index 155271a7..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js +++ /dev/null @@ -1,100 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const getMemberExpressionName = (member) => { - if (!member.computed) { - return member.property.name; - } - if (member.property.type === utils_1.AST_NODE_TYPES.Literal && - typeof member.property.value === 'string') { - return member.property.value; - } - return null; -}; -exports.default = util.createRule({ - name: 'prefer-reduce-type-parameter', - meta: { - type: 'problem', - docs: { - description: 'Enforce using type parameter when calling `Array#reduce` instead of casting', - recommended: 'strict', - requiresTypeChecking: true, - }, - messages: { - preferTypeParameter: 'Unnecessary cast: Array#reduce accepts a type parameter for the default value.', - }, - fixable: 'code', - schema: [], - }, - defaultOptions: [], - create(context) { - const service = util.getParserServices(context); - const checker = service.program.getTypeChecker(); - return { - 'CallExpression > MemberExpression.callee'(callee) { - if (getMemberExpressionName(callee) !== 'reduce') { - return; - } - const [, secondArg] = callee.parent.arguments; - if (callee.parent.arguments.length < 2 || - !util.isTypeAssertion(secondArg)) { - return; - } - // Get the symbol of the `reduce` method. - const tsNode = service.esTreeNodeToTSNodeMap.get(callee.object); - const calleeObjType = util.getConstrainedTypeAtLocation(checker, tsNode); - // Check the owner type of the `reduce` method. - if (checker.isArrayType(calleeObjType)) { - context.report({ - messageId: 'preferTypeParameter', - node: secondArg, - fix: fixer => { - const fixes = [ - fixer.removeRange([ - secondArg.range[0], - secondArg.expression.range[0], - ]), - fixer.removeRange([ - secondArg.expression.range[1], - secondArg.range[1], - ]), - ]; - if (!callee.parent.typeParameters) { - fixes.push(fixer.insertTextAfter(callee, `<${context - .getSourceCode() - .getText(secondArg.typeAnnotation)}>`)); - } - return fixes; - }, - }); - return; - } - }, - }; - }, -}); -//# sourceMappingURL=prefer-reduce-type-parameter.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js.map deleted file mode 100644 index 79507c95..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-reduce-type-parameter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-reduce-type-parameter.js","sourceRoot":"","sources":["../../src/rules/prefer-reduce-type-parameter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAMhC,MAAM,uBAAuB,GAAG,CAC9B,MAAiC,EAClB,EAAE;IACjB,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;QACpB,OAAO,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;KAC7B;IAED,IACE,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO;QAC/C,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,KAAK,QAAQ,EACzC;QACA,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;KAC9B;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,8BAA8B;IACpC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,6EAA6E;YAC/E,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,mBAAmB,EACjB,gFAAgF;SACnF;QACD,OAAO,EAAE,MAAM;QACf,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,OAAO,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAChD,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAEjD,OA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xC,CACF,CAAC;6BACH;4BAED,OAAO,KAAK,CAAC;wBACf,CAAC;qBACF,CAAC,CAAC;oBAEH,OAAO;iBACR;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js deleted file mode 100644 index 3fefdf18..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js +++ /dev/null @@ -1,160 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const util_1 = require("../util"); -var ArgumentType; -(function (ArgumentType) { - ArgumentType[ArgumentType["Other"] = 0] = "Other"; - ArgumentType[ArgumentType["String"] = 1] = "String"; - ArgumentType[ArgumentType["RegExp"] = 2] = "RegExp"; - ArgumentType[ArgumentType["Both"] = 3] = "Both"; -})(ArgumentType || (ArgumentType = {})); -exports.default = (0, util_1.createRule)({ - name: 'prefer-regexp-exec', - defaultOptions: [], - meta: { - type: 'suggestion', - fixable: 'code', - docs: { - description: 'Enforce `RegExp#exec` over `String#match` if no global flag is provided', - recommended: false, - requiresTypeChecking: true, - }, - messages: { - regExpExecOverStringMatch: 'Use the `RegExp#exec()` method instead.', - }, - schema: [], - }, - create(context) { - const globalScope = context.getScope(); - const parserServices = (0, util_1.getParserServices)(context); - const typeChecker = parserServices.program.getTypeChecker(); - const sourceCode = context.getSourceCode(); - /** - * Check if a given node type is a string. - * @param node The node type to check. - */ - function isStringType(type) { - return (0, util_1.getTypeName)(typeChecker, type) === 'string'; - } - /** - * Check if a given node type is a RegExp. - * @param node The node type to check. - */ - function isRegExpType(type) { - return (0, util_1.getTypeName)(typeChecker, type) === 'RegExp'; - } - function collectArgumentTypes(types) { - let result = ArgumentType.Other; - for (const type of types) { - if (isRegExpType(type)) { - result |= ArgumentType.RegExp; - } - else if (isStringType(type)) { - result |= ArgumentType.String; - } - } - return result; - } - function isLikelyToContainGlobalFlag(node) { - if (node.type === utils_1.AST_NODE_TYPES.CallExpression || - node.type === utils_1.AST_NODE_TYPES.NewExpression) { - const [, flags] = node.arguments; - return (flags && - flags.type === utils_1.AST_NODE_TYPES.Literal && - typeof flags.value === 'string' && - flags.value.includes('g')); - } - return node.type === utils_1.AST_NODE_TYPES.Identifier; - } - return { - "CallExpression[arguments.length=1] > MemberExpression.callee[property.name='match'][computed=false]"(memberNode) { - const objectNode = memberNode.object; - const callNode = memberNode.parent; - const [argumentNode] = callNode.arguments; - const argumentValue = (0, util_1.getStaticValue)(argumentNode, globalScope); - if (!isStringType(typeChecker.getTypeAtLocation(parserServices.esTreeNodeToTSNodeMap.get(objectNode)))) { - return; - } - // Don't report regular expressions with global flag. - if ((!argumentValue && isLikelyToContainGlobalFlag(argumentNode)) || - (argumentValue && - argumentValue.value instanceof RegExp && - argumentValue.value.flags.includes('g'))) { - return; - } - if (argumentNode.type === utils_1.AST_NODE_TYPES.Literal && - typeof argumentNode.value === 'string') { - let regExp; - try { - regExp = RegExp(argumentNode.value); - } - catch (_a) { - return; - } - return context.report({ - node: memberNode.property, - messageId: 'regExpExecOverStringMatch', - fix: (0, util_1.getWrappingFixer)({ - sourceCode, - node: callNode, - innerNode: [objectNode], - wrap: objectCode => `${regExp.toString()}.exec(${objectCode})`, - }), - }); - } - const argumentType = typeChecker.getTypeAtLocation(parserServices.esTreeNodeToTSNodeMap.get(argumentNode)); - const argumentTypes = collectArgumentTypes(tsutils.unionTypeParts(argumentType)); - switch (argumentTypes) { - case ArgumentType.RegExp: - return context.report({ - node: memberNode.property, - messageId: 'regExpExecOverStringMatch', - fix: (0, util_1.getWrappingFixer)({ - sourceCode, - node: callNode, - innerNode: [objectNode, argumentNode], - wrap: (objectCode, argumentCode) => `${argumentCode}.exec(${objectCode})`, - }), - }); - case ArgumentType.String: - return context.report({ - node: memberNode.property, - messageId: 'regExpExecOverStringMatch', - fix: (0, util_1.getWrappingFixer)({ - sourceCode, - node: callNode, - innerNode: [objectNode, argumentNode], - wrap: (objectCode, argumentCode) => `RegExp(${argumentCode}).exec(${objectCode})`, - }), - }); - } - }, - }; - }, -}); -//# sourceMappingURL=prefer-regexp-exec.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map deleted file mode 100644 index f07af153..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-regexp-exec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-regexp-exec.js","sourceRoot":"","sources":["../../src/rules/prefer-regexp-exec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,iDAAmC;AAGnC,kCAMiB;AAEjB,IAAK,YAKJ;AALD,WAAK,YAAY;IACf,iDAAS,CAAA;IACT,mDAAe,CAAA;IACf,mDAAe,CAAA;IACf,+CAAsB,CAAA;A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BACzB,SAAS,EAAE,2BAA2B;4BACtC,GAAG,EAAE,IAAA,uBAAgB,EAAC;gCACpB,UAAU;gCACV,IAAI,EAAE,QAAQ;gCACd,SAAS,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;gCACrC,IAAI,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,EAAE,CACjC,UAAU,YAAY,UAAU,UAAU,GAAG;6BAChD,CAAC;yBACH,CAAC,CAAC;iBACN;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js deleted file mode 100644 index 67584b97..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js +++ /dev/null @@ -1,141 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'prefer-return-this-type', - defaultOptions: [], - meta: { - type: 'suggestion', - docs: { - description: 'Enforce that `this` is used when only `this` type is returned', - recommended: 'strict', - requiresTypeChecking: true, - }, - messages: { - useThisType: 'Use `this` type instead.', - }, - schema: [], - fixable: 'code', - }, - create(context) { - const parserServices = (0, util_1.getParserServices)(context); - const checker = parserServices.program.getTypeChecker(); - function tryGetNameInType(name, typeNode) { - if (typeNode.type === utils_1.AST_NODE_TYPES.TSTypeReference && - typeNode.typeName.type === utils_1.AST_NODE_TYPES.Identifier && - typeNode.typeName.name === name) { - return typeNode; - } - if (typeNode.type === utils_1.AST_NODE_TYPES.TSUnionType) { - for (const type of typeNode.types) { - const found = tryGetNameInType(name, type); - if (found) { - return found; - } - } - } - return undefined; - } - function isThisSpecifiedInParameters(originalFunc) { - const firstArg = originalFunc.params[0]; - return (firstArg && - firstArg.type === utils_1.AST_NODE_TYPES.Identifier && - firstArg.name === 'this'); - } - function isFunctionReturningThis(originalFunc, originalClass) { - if (isThisSpecifiedInParameters(originalFunc)) { - return false; - } - const func = parserServices.esTreeNodeToTSNodeMap.get(originalFunc); - if (!func.body) { - return false; - } - const classType = checker.getTypeAtLocation(parserServices.esTreeNodeToTSNodeMap.get(originalClass)); - if (func.body.kind !== ts.SyntaxKind.Block) { - const type = checker.getTypeAtLocation(func.body); - return classType.thisType === type; - } - let hasReturnThis = false; - let hasReturnClassType = false; - (0, util_1.forEachReturnStatement)(func.body, stmt => { - const expr = stmt.expression; - if (!expr) { - return; - } - // fast check - if (expr.kind === ts.SyntaxKind.ThisKeyword) { - hasReturnThis = true; - return; - } - const type = checker.getTypeAtLocation(expr); - if (classType === type) { - hasReturnClassType = true; - return true; - } - if (classType.thisType === type) { - hasReturnThis = true; - return; - } - return; - }); - return !hasReturnClassType && hasReturnThis; - } - function checkFunction(originalFunc, originalClass) { - var _a; - const className = (_a = originalClass.id) === null || _a === void 0 ? void 0 : _a.name; - if (!className || !originalFunc.returnType) { - return; - } - const node = tryGetNameInType(className, originalFunc.returnType.typeAnnotation); - if (!node) { - return; - } - if (isFunctionReturningThis(originalFunc, originalClass)) { - context.report({ - node, - messageId: 'useThisType', - fix: fixer => fixer.replaceText(node, 'this'), - }); - } - } - return { - 'ClassBody > MethodDefinition'(node) { - checkFunction(node.value, node.parent.parent); - }, - 'ClassBody > PropertyDefinition'(node) { - var _a, _b; - if (!(((_a = node.value) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.FunctionExpression || - ((_b = node.value) === null || _b === void 0 ? void 0 : _b.type) === utils_1.AST_NODE_TYPES.ArrowFunctionExpression)) { - return; - } - checkFunction(node.value, node.parent.parent); - }, - }; - }, -}); -//# sourceMappingURL=prefer-return-this-type.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js.map deleted file mode 100644 index ed0d060f..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-return-this-type.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-return-this-type.js","sourceRoot":"","sources":["../../src/rules/prefer-return-this-type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,+CAAiC;AAEjC,kCAAgF;AAUhF,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,yBAAyB;IAC/B,cAAc,EAAE,EAAE;IAElB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,+DAA+D;YACjE,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,0BAA0B;SACxC;QACD,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,MAAM;KAChB;IAED,MAAM,CAAC,OAAO;QACZ,MAAM,cAAc,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QACl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C,UAAU,CAAC,cAAc,CACvC,CAAC;YACF,IAAI,CAAC,IAAI,EAAE;gBACT,OAAO;aACR;YAED,IAAI,uBAAuB,CAAC,YAAY,EAAE,aAAa,CAAC,EAAE;gBACxD,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI;oBACJ,SAAS,EAAE,aAAa;oBACxB,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC;iBAC9C,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,8BAA8B,CAAC,IAA+B;gBAC5D,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAO,CAAC,MAA8B,CAAC,CAAC;YACzE,CAAC;YACD,gCAAgC,CAC9B,IAAiC;;gBAEjC,IACE,CAAC,CACC,CAAA,MAAA,IAAI,CAAC,KAAK,0CAAE,IAAI,MAAK,sBAAc,CAAC,kBAAkB;oBACtD,CAAA,MAAA,IAAI,CAAC,KAAK,0CAAE,IAAI,MAAK,sBAAc,CAAC,uBAAuB,CAC5D,EACD;oBACA,OAAO;iBACR;gBAED,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAO,CAAC,MAA8B,CAAC,CAAC;YACzE,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js deleted file mode 100644 index 5e3696f1..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js +++ /dev/null @@ -1,489 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const regexpp_1 = require("@eslint-community/regexpp"); -const utils_1 = require("@typescript-eslint/utils"); -const util_1 = require("../util"); -const EQ_OPERATORS = /^[=!]=/; -const regexpp = new regexpp_1.RegExpParser(); -exports.default = (0, util_1.createRule)({ - name: 'prefer-string-starts-ends-with', - defaultOptions: [], - meta: { - type: 'suggestion', - docs: { - description: 'Enforce using `String#startsWith` and `String#endsWith` over other equivalent methods of checking substrings', - recommended: 'strict', - requiresTypeChecking: true, - }, - messages: { - preferStartsWith: "Use 'String#startsWith' method instead.", - preferEndsWith: "Use the 'String#endsWith' method instead.", - }, - schema: [], - fixable: 'code', - }, - create(context) { - const globalScope = context.getScope(); - const sourceCode = context.getSourceCode(); - const service = (0, util_1.getParserServices)(context); - const typeChecker = service.program.getTypeChecker(); - /** - * Check if a given node is a string. - * @param node The node to check. - */ - function isStringType(node) { - const objectType = typeChecker.getTypeAtLocation(service.esTreeNodeToTSNodeMap.get(node)); - return (0, util_1.getTypeName)(typeChecker, objectType) === 'string'; - } - /** - * Check if a given node is a `Literal` node that is null. - * @param node The node to check. - */ - function isNull(node) { - const evaluated = (0, util_1.getStaticValue)(node, globalScope); - return evaluated != null && evaluated.value == null; - } - /** - * Check if a given node is a `Literal` node that is a given value. - * @param node The node to check. - * @param value The expected value of the `Literal` node. - */ - function isNumber(node, value) { - const evaluated = (0, util_1.getStaticValue)(node, globalScope); - return evaluated != null && evaluated.value === value; - } - /** - * Check if a given node is a `Literal` node that is a character. - * @param node The node to check. - * @param kind The method name to get a character. - */ - function isCharacter(node) { - const evaluated = (0, util_1.getStaticValue)(node, globalScope); - return (evaluated != null && - typeof evaluated.value === 'string' && - // checks if the string is a character long - evaluated.value[0] === evaluated.value); - } - /** - * Check if a given node is `==`, `===`, `!=`, or `!==`. - * @param node The node to check. - */ - function isEqualityComparison(node) { - return (node.type === utils_1.AST_NODE_TYPES.BinaryExpression && - EQ_OPERATORS.test(node.operator)); - } - /** - * Check if two given nodes are the same meaning. - * @param node1 A node to compare. - * @param node2 Another node to compare. - */ - function isSameTokens(node1, node2) { - const tokens1 = sourceCode.getTokens(node1); - const tokens2 = sourceCode.getTokens(node2); - if (tokens1.length !== tokens2.length) { - return false; - } - for (let i = 0; i < tokens1.length; ++i) { - const token1 = tokens1[i]; - const token2 = tokens2[i]; - if (token1.type !== token2.type || token1.value !== token2.value) { - return false; - } - } - return true; - } - /** - * Check if a given node is the expression of the length of a string. - * - * - If `length` property access of `expectedObjectNode`, it's `true`. - * E.g., `foo` → `foo.length` / `"foo"` → `"foo".length` - * - If `expectedObjectNode` is a string literal, `node` can be a number. - * E.g., `"foo"` → `3` - * - * @param node The node to check. - * @param expectedObjectNode The node which is expected as the receiver of `length` property. - */ - function isLengthExpression(node, expectedObjectNode) { - if (node.type === utils_1.AST_NODE_TYPES.MemberExpression) { - return ((0, util_1.getPropertyName)(node, globalScope) === 'length' && - isSameTokens(node.object, expectedObjectNode)); - } - const evaluatedLength = (0, util_1.getStaticValue)(node, globalScope); - const evaluatedString = (0, util_1.getStaticValue)(expectedObjectNode, globalScope); - return (evaluatedLength != null && - evaluatedString != null && - typeof evaluatedLength.value === 'number' && - typeof evaluatedString.value === 'string' && - evaluatedLength.value === evaluatedString.value.length); - } - /** - * Check if a given node is a negative index expression - * - * E.g. `s.slice(- )`, `s.substring(s.length - )` - * - * @param node The node to check. - * @param expectedIndexedNode The node which is expected as the receiver of index expression. - */ - function isNegativeIndexExpression(node, expectedIndexedNode) { - return ((node.type === utils_1.AST_NODE_TYPES.UnaryExpression && - node.operator === '-') || - (node.type === utils_1.AST_NODE_TYPES.BinaryExpression && - node.operator === '-' && - isLengthExpression(node.left, expectedIndexedNode))); - } - /** - * Check if a given node is the expression of the last index. - * - * E.g. `foo.length - 1` - * - * @param node The node to check. - * @param expectedObjectNode The node which is expected as the receiver of `length` property. - */ - function isLastIndexExpression(node, expectedObjectNode) { - return (node.type === utils_1.AST_NODE_TYPES.BinaryExpression && - node.operator === '-' && - isLengthExpression(node.left, expectedObjectNode) && - isNumber(node.right, 1)); - } - /** - * Get the range of the property of a given `MemberExpression` node. - * - * - `obj[foo]` → the range of `[foo]` - * - `obf.foo` → the range of `.foo` - * - `(obj).foo` → the range of `.foo` - * - * @param node The member expression node to get. - */ - function getPropertyRange(node) { - const dotOrOpenBracket = sourceCode.getTokenAfter(node.object, util_1.isNotClosingParenToken); - return [dotOrOpenBracket.range[0], node.range[1]]; - } - /** - * Parse a given `RegExp` pattern to that string if it's a static string. - * @param pattern The RegExp pattern text to parse. - * @param uFlag The Unicode flag of the RegExp. - */ - function parseRegExpText(pattern, uFlag) { - // Parse it. - const ast = regexpp.parsePattern(pattern, undefined, undefined, uFlag); - if (ast.alternatives.length !== 1) { - return null; - } - // Drop `^`/`$` assertion. - const chars = ast.alternatives[0].elements; - const first = chars[0]; - if (first.type === 'Assertion' && first.kind === 'start') { - chars.shift(); - } - else { - chars.pop(); - } - // Check if it can determine a unique string. - if (!chars.every(c => c.type === 'Character')) { - return null; - } - // To string. - return String.fromCodePoint(...chars.map(c => c.value)); - } - /** - * Parse a given node if it's a `RegExp` instance. - * @param node The node to parse. - */ - function parseRegExp(node) { - const evaluated = (0, util_1.getStaticValue)(node, globalScope); - if (evaluated == null || !(evaluated.value instanceof RegExp)) { - return null; - } - const { source, flags } = evaluated.value; - const isStartsWith = source.startsWith('^'); - const isEndsWith = source.endsWith('$'); - if (isStartsWith === isEndsWith || - flags.includes('i') || - flags.includes('m')) { - return null; - } - const text = parseRegExpText(source, flags.includes('u')); - if (text == null) { - return null; - } - return { isEndsWith, isStartsWith, text }; - } - function getLeftNode(node) { - if (node.type === utils_1.AST_NODE_TYPES.ChainExpression) { - return getLeftNode(node.expression); - } - let leftNode; - if (node.type === utils_1.AST_NODE_TYPES.CallExpression) { - leftNode = node.callee; - } - else { - leftNode = node; - } - if (leftNode.type !== utils_1.AST_NODE_TYPES.MemberExpression) { - throw new Error(`Expected a MemberExpression, got ${leftNode.type}`); - } - return leftNode; - } - /** - * Fix code with using the right operand as the search string. - * For example: `foo.slice(0, 3) === 'bar'` → `foo.startsWith('bar')` - * @param fixer The rule fixer. - * @param node The node which was reported. - * @param kind The kind of the report. - * @param isNegative The flag to fix to negative condition. - */ - function* fixWithRightOperand(fixer, node, kind, isNegative, isOptional) { - // left is CallExpression or MemberExpression. - const leftNode = getLeftNode(node.left); - const propertyRange = getPropertyRange(leftNode); - if (isNegative) { - yield fixer.insertTextBefore(node, '!'); - } - yield fixer.replaceTextRange([propertyRange[0], node.right.range[0]], `${isOptional ? '?.' : '.'}${kind}sWith(`); - yield fixer.replaceTextRange([node.right.range[1], node.range[1]], ')'); - } - /** - * Fix code with using the first argument as the search string. - * For example: `foo.indexOf('bar') === 0` → `foo.startsWith('bar')` - * @param fixer The rule fixer. - * @param node The node which was reported. - * @param kind The kind of the report. - * @param negative The flag to fix to negative condition. - */ - function* fixWithArgument(fixer, node, callNode, calleeNode, kind, negative, isOptional) { - if (negative) { - yield fixer.insertTextBefore(node, '!'); - } - yield fixer.replaceTextRange(getPropertyRange(calleeNode), `${isOptional ? '?.' : '.'}${kind}sWith`); - yield fixer.removeRange([callNode.range[1], node.range[1]]); - } - function getParent(node) { - var _a; - return (0, util_1.nullThrows)(((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.ChainExpression - ? node.parent.parent - : node.parent, util_1.NullThrowsReasons.MissingParent); - } - return { - // foo[0] === "a" - // foo.charAt(0) === "a" - // foo[foo.length - 1] === "a" - // foo.charAt(foo.length - 1) === "a" - [[ - 'BinaryExpression > MemberExpression.left[computed=true]', - 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="charAt"][computed=false]', - 'BinaryExpression > ChainExpression.left > MemberExpression[computed=true]', - 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="charAt"][computed=false]', - ].join(', ')](node) { - let parentNode = getParent(node); - let indexNode = null; - if ((parentNode === null || parentNode === void 0 ? void 0 : parentNode.type) === utils_1.AST_NODE_TYPES.CallExpression) { - if (parentNode.arguments.length === 1) { - indexNode = parentNode.arguments[0]; - } - parentNode = getParent(parentNode); - } - else { - indexNode = node.property; - } - if (indexNode == null || - !isEqualityComparison(parentNode) || - !isStringType(node.object)) { - return; - } - const isEndsWith = isLastIndexExpression(indexNode, node.object); - const isStartsWith = !isEndsWith && isNumber(indexNode, 0); - if (!isStartsWith && !isEndsWith) { - return; - } - const eqNode = parentNode; - context.report({ - node: parentNode, - messageId: isStartsWith ? 'preferStartsWith' : 'preferEndsWith', - fix(fixer) { - // Don't fix if it can change the behavior. - if (!isCharacter(eqNode.right)) { - return null; - } - return fixWithRightOperand(fixer, eqNode, isStartsWith ? 'start' : 'end', eqNode.operator.startsWith('!'), node.optional); - }, - }); - }, - // foo.indexOf('bar') === 0 - [[ - 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="indexOf"][computed=false]', - 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="indexOf"][computed=false]', - ].join(', ')](node) { - const callNode = getParent(node); - const parentNode = getParent(callNode); - if (callNode.arguments.length !== 1 || - !isEqualityComparison(parentNode) || - !isNumber(parentNode.right, 0) || - !isStringType(node.object)) { - return; - } - context.report({ - node: parentNode, - messageId: 'preferStartsWith', - fix(fixer) { - return fixWithArgument(fixer, parentNode, callNode, node, 'start', parentNode.operator.startsWith('!'), node.optional); - }, - }); - }, - // foo.lastIndexOf('bar') === foo.length - 3 - // foo.lastIndexOf(bar) === foo.length - bar.length - [[ - 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="lastIndexOf"][computed=false]', - 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="lastIndexOf"][computed=false]', - ].join(', ')](node) { - const callNode = getParent(node); - const parentNode = getParent(callNode); - if (callNode.arguments.length !== 1 || - !isEqualityComparison(parentNode) || - parentNode.right.type !== utils_1.AST_NODE_TYPES.BinaryExpression || - parentNode.right.operator !== '-' || - !isLengthExpression(parentNode.right.left, node.object) || - !isLengthExpression(parentNode.right.right, callNode.arguments[0]) || - !isStringType(node.object)) { - return; - } - context.report({ - node: parentNode, - messageId: 'preferEndsWith', - fix(fixer) { - return fixWithArgument(fixer, parentNode, callNode, node, 'end', parentNode.operator.startsWith('!'), node.optional); - }, - }); - }, - // foo.match(/^bar/) === null - // foo.match(/bar$/) === null - [[ - 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="match"][computed=false]', - 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="match"][computed=false]', - ].join(', ')](node) { - const callNode = getParent(node); - const parentNode = getParent(callNode); - if (!isEqualityComparison(parentNode) || - !isNull(parentNode.right) || - !isStringType(node.object)) { - return; - } - const parsed = callNode.arguments.length === 1 - ? parseRegExp(callNode.arguments[0]) - : null; - if (parsed == null) { - return; - } - const { isStartsWith, text } = parsed; - context.report({ - node: callNode, - messageId: isStartsWith ? 'preferStartsWith' : 'preferEndsWith', - *fix(fixer) { - if (!parentNode.operator.startsWith('!')) { - yield fixer.insertTextBefore(parentNode, '!'); - } - yield fixer.replaceTextRange(getPropertyRange(node), `${node.optional ? '?.' : '.'}${isStartsWith ? 'start' : 'end'}sWith`); - yield fixer.replaceText(callNode.arguments[0], JSON.stringify(text)); - yield fixer.removeRange([callNode.range[1], parentNode.range[1]]); - }, - }); - }, - // foo.slice(0, 3) === 'bar' - // foo.slice(-3) === 'bar' - // foo.slice(-3, foo.length) === 'bar' - // foo.substring(0, 3) === 'bar' - // foo.substring(foo.length - 3) === 'bar' - // foo.substring(foo.length - 3, foo.length) === 'bar' - [[ - 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="slice"][computed=false]', - 'BinaryExpression > CallExpression.left > MemberExpression.callee[property.name="substring"][computed=false]', - 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="slice"][computed=false]', - 'BinaryExpression > ChainExpression.left > CallExpression > MemberExpression.callee[property.name="substring"][computed=false]', - ].join(', ')](node) { - const callNode = getParent(node); - const parentNode = getParent(callNode); - if (!isEqualityComparison(parentNode) || !isStringType(node.object)) { - return; - } - const isEndsWith = (callNode.arguments.length === 1 || - (callNode.arguments.length === 2 && - isLengthExpression(callNode.arguments[1], node.object))) && - isNegativeIndexExpression(callNode.arguments[0], node.object); - const isStartsWith = !isEndsWith && - callNode.arguments.length === 2 && - isNumber(callNode.arguments[0], 0) && - !isNegativeIndexExpression(callNode.arguments[1], node.object); - if (!isStartsWith && !isEndsWith) { - return; - } - const eqNode = parentNode; - const negativeIndexSupported = node.property.name === 'slice'; - context.report({ - node: parentNode, - messageId: isStartsWith ? 'preferStartsWith' : 'preferEndsWith', - fix(fixer) { - // Don't fix if it can change the behavior. - if (eqNode.operator.length === 2 && - (eqNode.right.type !== utils_1.AST_NODE_TYPES.Literal || - typeof eqNode.right.value !== 'string')) { - return null; - } - // code being checked is likely mistake: - // unequal length of strings being checked for equality - // or reliant on behavior of substring (negative indices interpreted as 0) - if (isStartsWith) { - if (!isLengthExpression(callNode.arguments[1], eqNode.right)) { - return null; - } - } - else { - const posNode = callNode.arguments[0]; - const posNodeIsAbsolutelyValid = (posNode.type === utils_1.AST_NODE_TYPES.BinaryExpression && - posNode.operator === '-' && - isLengthExpression(posNode.left, node.object) && - isLengthExpression(posNode.right, eqNode.right)) || - (negativeIndexSupported && - posNode.type === utils_1.AST_NODE_TYPES.UnaryExpression && - posNode.operator === '-' && - isLengthExpression(posNode.argument, eqNode.right)); - if (!posNodeIsAbsolutelyValid) { - return null; - } - } - return fixWithRightOperand(fixer, parentNode, isStartsWith ? 'start' : 'end', parentNode.operator.startsWith('!'), node.optional); - }, - }); - }, - // /^bar/.test(foo) - // /bar$/.test(foo) - 'CallExpression > MemberExpression.callee[property.name="test"][computed=false]'(node) { - const callNode = getParent(node); - const parsed = callNode.arguments.length === 1 ? parseRegExp(node.object) : null; - if (parsed == null) { - return; - } - const { isStartsWith, text } = parsed; - const messageId = isStartsWith ? 'preferStartsWith' : 'preferEndsWith'; - const methodName = isStartsWith ? 'startsWith' : 'endsWith'; - context.report({ - node: callNode, - messageId, - *fix(fixer) { - const argNode = callNode.arguments[0]; - const needsParen = argNode.type !== utils_1.AST_NODE_TYPES.Literal && - argNode.type !== utils_1.AST_NODE_TYPES.TemplateLiteral && - argNode.type !== utils_1.AST_NODE_TYPES.Identifier && - argNode.type !== utils_1.AST_NODE_TYPES.MemberExpression && - argNode.type !== utils_1.AST_NODE_TYPES.CallExpression; - yield fixer.removeRange([callNode.range[0], argNode.range[0]]); - if (needsParen) { - yield fixer.insertTextBefore(argNode, '('); - yield fixer.insertTextAfter(argNode, ')'); - } - yield fixer.insertTextAfter(argNode, `${node.optional ? '?.' : '.'}${methodName}(${JSON.stringify(text)}`); - }, - }); - }, - }; - }, -}); -//# sourceMappingURL=prefer-string-starts-ends-with.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map deleted file mode 100644 index 11ba5b6f..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-string-starts-ends-with.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-string-starts-ends-with.js","sourceRoot":"","sources":["../../src/rules/prefer-string-starts-ends-with.ts"],"names":[],"mappings":";;AACA,uDAAyD;AAEzD,oDAA0D;AAE1D,kCASiB;AAEjB,MAAM,YAAY,GAAG,QAAQ,CAAC;AAC9B,MAAM,OAAO,GAAG,IAAI,sBAAY,EAAE,CAAC;AAEnC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,gCAAgC;IACtC,cAAc,EAAE,EAAE;IAElB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,8GAA8G;YAChH,WAAW,EAAE,QAAQ;YACrB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,gBAAgB,EAAE,yCAAyC;YAC3D,cAAc,EAAE,2CAA2C;SAC5D;QACD,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,MAAM;KAChB;IAED,MAAM,CAAC,OAAO;QACZ,MAAM,W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I,KAAK,sBAAc,CAAC,UAAU;4BAC1C,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;4BAChD,OAAO,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,CAAC;wBAEjD,MAAM,KAAK,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAC/D,IAAI,UAAU,EAAE;4BACd,MAAM,KAAK,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;4BAC3C,MAAM,KAAK,CAAC,eAAe,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;yBAC3C;wBACD,MAAM,KAAK,CAAC,eAAe,CACzB,OAAO,EACP,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,GAAG,UAAU,IAAI,IAAI,CAAC,SAAS,CAC1D,IAAI,CACL,EAAE,CACJ,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js deleted file mode 100644 index cadc2241..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js +++ /dev/null @@ -1,84 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'prefer-ts-expect-error', - meta: { - type: 'problem', - docs: { - description: 'Enforce using `@ts-expect-error` over `@ts-ignore`', - recommended: 'strict', - }, - fixable: 'code', - messages: { - preferExpectErrorComment: 'Use "@ts-expect-error" to ensure an error is actually being suppressed.', - }, - schema: [], - }, - defaultOptions: [], - create(context) { - const tsIgnoreRegExpSingleLine = /^\s*\/?\s*@ts-ignore/; - const tsIgnoreRegExpMultiLine = /^\s*(?:\/|\*)*\s*@ts-ignore/; - const sourceCode = context.getSourceCode(); - function isLineComment(comment) { - return comment.type === utils_1.AST_TOKEN_TYPES.Line; - } - function getLastCommentLine(comment) { - if (isLineComment(comment)) { - return comment.value; - } - // For multiline comments - we look at only the last line. - const commentlines = comment.value.split('\n'); - return commentlines[commentlines.length - 1]; - } - function isValidTsIgnorePresent(comment) { - const line = getLastCommentLine(comment); - return isLineComment(comment) - ? tsIgnoreRegExpSingleLine.test(line) - : tsIgnoreRegExpMultiLine.test(line); - } - return { - Program() { - const comments = sourceCode.getAllComments(); - comments.forEach(comment => { - if (isValidTsIgnorePresent(comment)) { - const lineCommentRuleFixer = (fixer) => fixer.replaceText(comment, `//${comment.value.replace('@ts-ignore', '@ts-expect-error')}`); - const blockCommentRuleFixer = (fixer) => fixer.replaceText(comment, `/*${comment.value.replace('@ts-ignore', '@ts-expect-error')}*/`); - context.report({ - node: comment, - messageId: 'preferExpectErrorComment', - fix: isLineComment(comment) - ? lineCommentRuleFixer - : blockCommentRuleFixer, - }); - } - }); - }, - }; - }, -}); -//# sourceMappingURL=prefer-ts-expect-error.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js.map deleted file mode 100644 index 501428fd..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prefer-ts-expect-error.js","sourceRoot":"","sources":["../../src/rules/prefer-ts-expect-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA2D;AAM3D,8CAAgC;AAIhC,kBAAe,IAAI,CAAC,UAAU,CAAiB;IAC7C,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,oDAAoD;YACjE,WAAW,EAAE,QAAQ;SACtB;QACD,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE;YACR,wBAAwB,EACtB,yEAAyE;SAC5E;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,wBAAwB,GAAG,sBAAsB,CAAC;QACxD,MAAM,uBAAuB,GAAG,6BAA6B,CAAC;QAC9D,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAE3C,SAAS,aAAa,CAAC,OAAyB;YAC9C,OAAO,OAAO,CAAC,IAAI,KAAK,uBAAe,CAAC,IAAI,CAAC;QAC/C,CAAC;QAED,SAAS,kBAAkB,CAAC,OAAyB;YACnD,IAAI,aAAa,CAAC,OAAO,CAAC,EAAE;gBAC1B,OAAO,OAAO,CAAC,KAAK,CAAC;aACtB;YAED,0DAA0D;YAC1D,MAAM,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,K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in/dist/rules/promise-function-async.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js deleted file mode 100644 index fd19dac0..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js +++ /dev/null @@ -1,186 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'promise-function-async', - meta: { - type: 'suggestion', - fixable: 'code', - docs: { - description: 'Require any function or method that returns a Promise to be marked async', - recommended: false, - requiresTypeChecking: true, - }, - messages: { - missingAsync: 'Functions that return promises must be async.', - }, - schema: [ - { - type: 'object', - properties: { - allowAny: { - description: 'Whether to consider `any` and `unknown` to be Promises.', - type: 'boolean', - }, - allowedPromiseNames: { - description: 'Any extra names of classes or interfaces to be considered Promises.', - type: 'array', - items: { - type: 'string', - }, - }, - checkArrowFunctions: { - type: 'boolean', - }, - checkFunctionDeclarations: { - type: 'boolean', - }, - checkFunctionExpressions: { - type: 'boolean', - }, - checkMethodDeclarations: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - allowAny: true, - allowedPromiseNames: [], - checkArrowFunctions: true, - checkFunctionDeclarations: true, - checkFunctionExpressions: true, - checkMethodDeclarations: true, - }, - ], - create(context, [{ allowAny, allowedPromiseNames, checkArrowFunctions, checkFunctionDeclarations, checkFunctionExpressions, checkMethodDeclarations, },]) { - const allAllowedPromiseNames = new Set([ - 'Promise', - ...allowedPromiseNames, - ]); - const parserServices = util.getParserServices(context); - const checker = parserServices.program.getTypeChecker(); - const sourceCode = context.getSourceCode(); - function validateNode(node) { - var _a; - const originalNode = parserServices.esTreeNodeToTSNodeMap.get(node); - const signatures = checker - .getTypeAtLocation(originalNode) - .getCallSignatures(); - if (!signatures.length) { - return; - } - const returnType = checker.getReturnTypeOfSignature(signatures[0]); - if (!util.containsAllTypesByName(returnType, allowAny, allAllowedPromiseNames, - // If no return type is explicitly set, we check if any parts of the return type match a Promise (instead of requiring all to match). - node.returnType == null)) { - // Return type is not a promise - return; - } - if (((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition) { - // Abstract method can't be async - return; - } - if (node.parent && - (node.parent.type === utils_1.AST_NODE_TYPES.Property || - node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition) && - (node.parent.kind === 'get' || node.parent.kind === 'set')) { - // Getters and setters can't be async - return; - } - if (util.isTypeFlagSet(returnType, ts.TypeFlags.Any | ts.TypeFlags.Unknown)) { - // Report without auto fixer because the return type is unknown - return context.report({ - messageId: 'missingAsync', - node, - loc: util.getFunctionHeadLoc(node, sourceCode), - }); - } - context.report({ - messageId: 'missingAsync', - node, - loc: util.getFunctionHeadLoc(node, sourceCode), - fix: fixer => { - if (node.parent && - (node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition || - (node.parent.type === utils_1.AST_NODE_TYPES.Property && - node.parent.method))) { - // this function is a class method or object function property shorthand - const method = node.parent; - // the token to put `async` before - let keyToken = sourceCode.getFirstToken(method); - // if there are decorators then skip past them - if (method.type === utils_1.AST_NODE_TYPES.MethodDefinition && - method.decorators) { - const lastDecorator = method.decorators[method.decorators.length - 1]; - keyToken = sourceCode.getTokenAfter(lastDecorator); - } - // if current token is a keyword like `static` or `public` then skip it - while (keyToken.type === utils_1.AST_TOKEN_TYPES.Keyword && - keyToken.range[0] < method.key.range[0]) { - keyToken = sourceCode.getTokenAfter(keyToken); - } - // check if there is a space between key and previous token - const insertSpace = !sourceCode.isSpaceBetween(sourceCode.getTokenBefore(keyToken), keyToken); - let code = 'async '; - if (insertSpace) { - code = ` ${code}`; - } - return fixer.insertTextBefore(keyToken, code); - } - return fixer.insertTextBefore(node, 'async '); - }, - }); - } - return Object.assign(Object.assign(Object.assign({}, (checkArrowFunctions && { - 'ArrowFunctionExpression[async = false]'(node) { - validateNode(node); - }, - })), (checkFunctionDeclarations && { - 'FunctionDeclaration[async = false]'(node) { - validateNode(node); - }, - })), { 'FunctionExpression[async = false]'(node) { - if (node.parent && - node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition && - node.parent.kind === 'method') { - if (checkMethodDeclarations) { - validateNode(node); - } - return; - } - if (checkFunctionExpressions) { - validateNode(node); - } - } }); - }, -}); -//# sourceMappingURL=promise-function-async.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map deleted file mode 100644 index ee183aca..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/promise-function-async.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"promise-function-async.js","sourceRoot":"","sources":["../../src/rules/promise-function-async.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA2E;AAC3E,+CAAiC;AAEjC,8CAAgC;AAchC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EA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;wBAC3D,MAAM,WAAW,GAAG,CAAC,UAAU,CAAC,cAAe,CAC7C,UAAU,CAAC,cAAc,CAAC,QAAQ,CAAE,EACpC,QAAQ,CACT,CAAC;wBAEF,IAAI,IAAI,GAAG,QAAQ,CAAC;wBACpB,IAAI,WAAW,EAAE;4BACf,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;yBACnB;wBACD,OAAO,KAAK,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;qBAC/C;oBAED,OAAO,KAAK,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;gBAChD,CAAC;aACF,CAAC,CAAC;QACL,CAAC;QAED,qDACK,CAAC,mBAAmB,IAAI;YACzB,wCAAwC,CACtC,IAAsC;gBAEtC,YAAY,CAAC,IAAI,CAAC,CAAC;YACrB,CAAC;SACF,CAAC,GACC,CAAC,yBAAyB,IAAI;YAC/B,oCAAoC,CAClC,IAAkC;gBAElC,YAAY,CAAC,IAAI,CAAC,CAAC;YACrB,CAAC;SACF,CAAC,KACF,mCAAmC,CACjC,IAAiC;gBAEjC,IACE,IAAI,CAAC,MAAM;oBACX,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;oBACpD,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,EAC7B;oBACA,IAAI,uBAAuB,EAAE;wBAC3B,YAAY,CAAC,IAAI,CAAC,CAAC;qBACpB;oBACD,OAAO;iBACR;gBACD,IAAI,wBAAwB,EAAE;oBAC5B,YAAY,CAAC,IAAI,CAAC,CAAC;iBACpB;YACH,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/quotes.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/quotes.js deleted file mode 100644 index d286cab2..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/quotes.js +++ /dev/null @@ -1,89 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var _a; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('quotes'); -exports.default = util.createRule({ - name: 'quotes', - meta: { - type: 'layout', - docs: { - description: 'Enforce the consistent use of either backticks, double, or single quotes', - recommended: false, - extendsBaseRule: true, - }, - fixable: 'code', - hasSuggestions: baseRule.meta.hasSuggestions, - // TODO: this rule has only had messages since v7.0 - remove this when we remove support for v6 - messages: (_a = baseRule.meta.messages) !== null && _a !== void 0 ? _a : { - wrongQuotes: 'Strings must use {{description}}.', - }, - schema: baseRule.meta.schema, - }, - defaultOptions: [ - 'double', - { - allowTemplateLiterals: false, - avoidEscape: false, - }, - ], - create(context, [option]) { - const rules = baseRule.create(context); - function isAllowedAsNonBacktick(node) { - const parent = node.parent; - switch (parent === null || parent === void 0 ? void 0 : parent.type) { - case utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition: - case utils_1.AST_NODE_TYPES.TSMethodSignature: - case utils_1.AST_NODE_TYPES.TSPropertySignature: - case utils_1.AST_NODE_TYPES.TSModuleDeclaration: - case utils_1.AST_NODE_TYPES.TSLiteralType: - case utils_1.AST_NODE_TYPES.TSExternalModuleReference: - return true; - case utils_1.AST_NODE_TYPES.TSEnumMember: - return node === parent.id; - case utils_1.AST_NODE_TYPES.TSAbstractPropertyDefinition: - case utils_1.AST_NODE_TYPES.PropertyDefinition: - return node === parent.key; - default: - return false; - } - } - return { - Literal(node) { - if (option === 'backtick' && isAllowedAsNonBacktick(node)) { - return; - } - rules.Literal(node); - }, - TemplateLiteral(node) { - rules.TemplateLiteral(node); - }, - }; - }, -}); -//# sourceMappingURL=quotes.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/quotes.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/quotes.js.map deleted file mode 100644 index ce0a9e8e..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/quotes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"quotes.js","sourceRoot":"","sources":["../../src/rules/quotes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAChC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,QAAQ,CAAC,CAAC;AAK7C,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE;YACJ,WAAW,EACT,0EAA0E;YAC5E,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,cAAc;QAC5C,+FAA+F;QAC/F,QAAQ,EAAE,MAAA,QAAQ,CAAC,IAAI,CAAC,QAAQ,mCAAI;YAClC,WAAW,EAAE,mCAAmC;SACjD;QAC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,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js deleted file mode 100644 index 021e8a30..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'require-array-sort-compare', - defaultOptions: [ - { - ignoreStringArrays: false, - }, - ], - meta: { - type: 'problem', - docs: { - description: 'Require `Array#sort` calls to always provide a `compareFunction`', - recommended: false, - requiresTypeChecking: true, - }, - messages: { - requireCompare: "Require 'compare' argument.", - }, - schema: [ - { - type: 'object', - properties: { - ignoreStringArrays: { - description: 'Whether to ignore arrays in which all elements are strings.', - type: 'boolean', - }, - }, - }, - ], - }, - create(context, [options]) { - const service = util.getParserServices(context); - const checker = service.program.getTypeChecker(); - /** - * Check if a given node is an array which all elements are string. - * @param node - */ - function isStringArrayNode(node) { - const type = checker.getTypeAtLocation(service.esTreeNodeToTSNodeMap.get(node)); - if (checker.isArrayType(type) || checker.isTupleType(type)) { - const typeArgs = util.getTypeArguments(type, checker); - return typeArgs.every(arg => util.getTypeName(checker, arg) === 'string'); - } - return false; - } - return { - "CallExpression[arguments.length=0] > MemberExpression[property.name='sort'][computed=false]"(callee) { - const tsNode = service.esTreeNodeToTSNodeMap.get(callee.object); - const calleeObjType = util.getConstrainedTypeAtLocation(checker, tsNode); - if (options.ignoreStringArrays && isStringArrayNode(callee.object)) { - return; - } - if (util.isTypeArrayTypeOrUnionOfArrayTypes(calleeObjType, checker)) { - context.report({ node: callee.parent, messageId: 'requireCompare' }); - } - }, - }; - }, -}); -//# sourceMappingURL=require-array-sort-compare.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map deleted file mode 100644 index 4c9d76c4..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-array-sort-compare.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"require-array-sort-compare.js","sourceRoot":"","sources":["../../src/rules/require-array-sort-compare.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,8CAAgC;AAShC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,4BAA4B;IAClC,cAAc,EAAE;QACd;YACE,kBAAkB,EAAE,KAAK;SAC1B;KACF;IAED,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,kEAAkE;YACpE,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,cAAc,EAAE,6BAA6B;SAC9C;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,kBAAkB,EAAE;wBAClB,WAAW,EACT,6DAA6D;wBAC/D,I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CAAC;iBACvE;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js deleted file mode 100644 index 667dc640..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js +++ /dev/null @@ -1,205 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'require-await', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow async functions which have no `await` expression', - recommended: 'error', - requiresTypeChecking: true, - extendsBaseRule: true, - }, - schema: [], - messages: { - missingAwait: "{{name}} has no 'await' expression.", - }, - }, - defaultOptions: [], - create(context) { - const parserServices = util.getParserServices(context); - const checker = parserServices.program.getTypeChecker(); - const sourceCode = context.getSourceCode(); - let scopeInfo = null; - /** - * Push the scope info object to the stack. - */ - function enterFunction(node) { - scopeInfo = { - upper: scopeInfo, - hasAwait: false, - hasAsync: node.async, - isGen: node.generator || false, - isAsyncYield: false, - }; - } - /** - * Pop the top scope info object from the stack. - * Also, it reports the function if needed. - */ - function exitFunction(node) { - /* istanbul ignore if */ if (!scopeInfo) { - // this shouldn't ever happen, as we have to exit a function after we enter it - return; - } - if (node.async && - !scopeInfo.hasAwait && - !isEmptyFunction(node) && - !(scopeInfo.isGen && scopeInfo.isAsyncYield)) { - context.report({ - node, - loc: getFunctionHeadLoc(node, sourceCode), - messageId: 'missingAwait', - data: { - name: util.upperCaseFirst(util.getFunctionNameWithKind(node)), - }, - }); - } - scopeInfo = scopeInfo.upper; - } - /** - * Checks if the node returns a thenable type - */ - function isThenableType(node) { - const type = checker.getTypeAtLocation(node); - return tsutils.isThenableType(checker, node, type); - } - /** - * Marks the current scope as having an await - */ - function markAsHasAwait() { - if (!scopeInfo) { - return; - } - scopeInfo.hasAwait = true; - } - /** - * mark `scopeInfo.isAsyncYield` to `true` if its a generator - * function and the delegate is `true` - */ - function markAsHasDelegateGen(node) { - var _a; - if (!(scopeInfo === null || scopeInfo === void 0 ? void 0 : scopeInfo.isGen) || !node.argument) { - return; - } - if (((_a = node === null || node === void 0 ? void 0 : node.argument) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.Literal) { - // making this `false` as for literals we don't need to check the definition - // eg : async function* run() { yield* 1 } - scopeInfo.isAsyncYield || (scopeInfo.isAsyncYield = false); - } - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node === null || node === void 0 ? void 0 : node.argument); - const type = checker.getTypeAtLocation(tsNode); - const typesToCheck = expandUnionOrIntersectionType(type); - for (const type of typesToCheck) { - const asyncIterator = tsutils.getWellKnownSymbolPropertyOfType(type, 'asyncIterator', checker); - if (asyncIterator !== undefined) { - scopeInfo.isAsyncYield = true; - break; - } - } - } - return { - FunctionDeclaration: enterFunction, - FunctionExpression: enterFunction, - ArrowFunctionExpression: enterFunction, - 'FunctionDeclaration:exit': exitFunction, - 'FunctionExpression:exit': exitFunction, - 'ArrowFunctionExpression:exit': exitFunction, - AwaitExpression: markAsHasAwait, - 'ForOfStatement[await = true]': markAsHasAwait, - 'YieldExpression[delegate = true]': markAsHasDelegateGen, - // check body-less async arrow function. - // ignore `async () => await foo` because it's obviously correct - 'ArrowFunctionExpression[async = true] > :not(BlockStatement, AwaitExpression)'(node) { - const expression = parserServices.esTreeNodeToTSNodeMap.get(node); - if (expression && isThenableType(expression)) { - markAsHasAwait(); - } - }, - ReturnStatement(node) { - // short circuit early to avoid unnecessary type checks - if (!scopeInfo || scopeInfo.hasAwait || !scopeInfo.hasAsync) { - return; - } - const { expression } = parserServices.esTreeNodeToTSNodeMap.get(node); - if (expression && isThenableType(expression)) { - markAsHasAwait(); - } - }, - }; - }, -}); -function isEmptyFunction(node) { - var _a; - return (((_a = node.body) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.BlockStatement && - node.body.body.length === 0); -} -// https://github.com/eslint/eslint/blob/03a69dbe86d5b5768a310105416ae726822e3c1c/lib/rules/utils/ast-utils.js#L382-L392 -/** - * Gets the `(` token of the given function node. - */ -function getOpeningParenOfParams(node, sourceCode) { - return util.nullThrows(node.id - ? sourceCode.getTokenAfter(node.id, util.isOpeningParenToken) - : sourceCode.getFirstToken(node, util.isOpeningParenToken), util.NullThrowsReasons.MissingToken('(', node.type)); -} -// https://github.com/eslint/eslint/blob/03a69dbe86d5b5768a310105416ae726822e3c1c/lib/rules/utils/ast-utils.js#L1220-L1242 -/** - * Gets the location of the given function node for reporting. - */ -function getFunctionHeadLoc(node, sourceCode) { - const parent = util.nullThrows(node.parent, util.NullThrowsReasons.MissingParent); - let start = null; - let end = null; - if (node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression) { - const arrowToken = util.nullThrows(sourceCode.getTokenBefore(node.body, util.isArrowToken), util.NullThrowsReasons.MissingToken('=>', node.type)); - start = arrowToken.loc.start; - end = arrowToken.loc.end; - } - else if (parent.type === utils_1.AST_NODE_TYPES.Property || - parent.type === utils_1.AST_NODE_TYPES.MethodDefinition) { - start = parent.loc.start; - end = getOpeningParenOfParams(node, sourceCode).loc.start; - } - else { - start = node.loc.start; - end = getOpeningParenOfParams(node, sourceCode).loc.start; - } - return { - start, - end, - }; -} -function expandUnionOrIntersectionType(type) { - if (type.isUnionOrIntersection()) { - return type.types.flatMap(expandUnionOrIntersectionType); - } - return [type]; -} -//# sourceMappingURL=require-await.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map deleted file mode 100644 index 760fd040..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/require-await.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"require-await.js","sourceRoot":"","sources":["../../src/rules/require-await.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,iDAAmC;AAGnC,8CAAgC;AAchC,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,2DAA2D;YACxE,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;YAC1B,eAAe,EAAE,IAAI;SACtB;QACD,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,YAAY,EAAE,qCAAqC;SACpD;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,cAAc,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QACvD,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAExD,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAC3C,IAAI,SAAS,GAAqB,IAAI,CAAC;QAEvC;;WAEG;QACH,SAAS,aAAa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operands.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js deleted file mode 100644 index a80e9b24..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js +++ /dev/null @@ -1,203 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const tsutils = __importStar(require("tsutils")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'restrict-plus-operands', - meta: { - type: 'problem', - docs: { - description: 'Require both operands of addition to be the same type and be `bigint`, `number`, or `string`', - recommended: 'error', - requiresTypeChecking: true, - }, - messages: { - bigintAndNumber: "Numeric '+' operations must either be both bigints or both numbers. Got `{{left}}` + `{{right}}`.", - invalid: "Invalid operand for a '+' operation. Operands must each be a number or {{stringLike}}. Got `{{type}}`.", - mismatched: "Operands of '+' operations must be a number or {{stringLike}}. Got `{{left}}` + `{{right}}`.", - }, - schema: [ - { - type: 'object', - additionalProperties: false, - properties: { - allowAny: { - description: 'Whether to allow `any` typed values.', - type: 'boolean', - }, - allowBoolean: { - description: 'Whether to allow `boolean` typed values.', - type: 'boolean', - }, - allowNullish: { - description: 'Whether to allow potentially `null` or `undefined` typed values.', - type: 'boolean', - }, - allowNumberAndString: { - description: 'Whether to allow `bigint`/`number` typed values and `string` typed values to be added together.', - type: 'boolean', - }, - allowRegExp: { - description: 'Whether to allow `regexp` typed values.', - type: 'boolean', - }, - checkCompoundAssignments: { - description: 'Whether to check compound assignments such as `+=`.', - type: 'boolean', - }, - }, - }, - ], - }, - defaultOptions: [ - { - checkCompoundAssignments: false, - }, - ], - create(context, [{ checkCompoundAssignments, allowAny, allowBoolean, allowNullish, allowNumberAndString, allowRegExp, },]) { - const service = util.getParserServices(context); - const typeChecker = service.program.getTypeChecker(); - const stringLikes = [ - allowAny && '`any`', - allowBoolean && '`boolean`', - allowNullish && '`null`', - allowRegExp && '`RegExp`', - allowNullish && '`undefined`', - ].filter((value) => typeof value === 'string'); - const stringLike = stringLikes.length - ? stringLikes.length === 1 - ? `string, allowing a string + ${stringLikes[0]}` - : `string, allowing a string + any of: ${stringLikes.join(', ')}` - : 'string'; - function getTypeConstrained(node) { - return typeChecker.getBaseTypeOfLiteralType(util.getConstrainedTypeAtLocation(typeChecker, service.esTreeNodeToTSNodeMap.get(node))); - } - function checkPlusOperands(node) { - const leftType = getTypeConstrained(node.left); - const rightType = getTypeConstrained(node.right); - if (leftType === rightType && - tsutils.isTypeFlagSet(leftType, ts.TypeFlags.BigIntLike | - ts.TypeFlags.NumberLike | - ts.TypeFlags.StringLike)) { - return; - } - let hadIndividualComplaint = false; - for (const [baseNode, baseType, otherType] of [ - [node.left, leftType, rightType], - [node.right, rightType, leftType], - ]) { - if (isTypeFlagSetInUnion(baseType, ts.TypeFlags.ESSymbolLike | - ts.TypeFlags.Never | - ts.TypeFlags.Unknown) || - (!allowAny && isTypeFlagSetInUnion(baseType, ts.TypeFlags.Any)) || - (!allowBoolean && - isTypeFlagSetInUnion(baseType, ts.TypeFlags.BooleanLike)) || - (!allowNullish && - util.isTypeFlagSet(baseType, ts.TypeFlags.Null | ts.TypeFlags.Undefined))) { - context.report({ - data: { - stringLike, - type: typeChecker.typeToString(baseType), - }, - messageId: 'invalid', - node: baseNode, - }); - hadIndividualComplaint = true; - continue; - } - // RegExps also contain ts.TypeFlags.Any & ts.TypeFlags.Object - for (const subBaseType of tsutils.unionTypeParts(baseType)) { - const typeName = util.getTypeName(typeChecker, subBaseType); - if (typeName === 'RegExp' - ? !allowRegExp || - tsutils.isTypeFlagSet(otherType, ts.TypeFlags.NumberLike) - : (!allowAny && util.isTypeAnyType(subBaseType)) || - isDeeplyObjectType(subBaseType)) { - context.report({ - data: { - stringLike, - type: typeChecker.typeToString(subBaseType), - }, - messageId: 'invalid', - node: baseNode, - }); - hadIndividualComplaint = true; - continue; - } - } - } - if (hadIndividualComplaint) { - return; - } - for (const [baseType, otherType] of [ - [leftType, rightType], - [rightType, leftType], - ]) { - if (!allowNumberAndString && - isTypeFlagSetInUnion(baseType, ts.TypeFlags.StringLike) && - isTypeFlagSetInUnion(otherType, ts.TypeFlags.NumberLike)) { - return context.report({ - data: { - stringLike, - left: typeChecker.typeToString(leftType), - right: typeChecker.typeToString(rightType), - }, - messageId: 'mismatched', - node, - }); - } - if (isTypeFlagSetInUnion(baseType, ts.TypeFlags.NumberLike) && - isTypeFlagSetInUnion(otherType, ts.TypeFlags.BigIntLike)) { - return context.report({ - data: { - left: typeChecker.typeToString(leftType), - right: typeChecker.typeToString(rightType), - }, - messageId: 'bigintAndNumber', - node, - }); - } - } - } - return Object.assign({ "BinaryExpression[operator='+']": checkPlusOperands }, (checkCompoundAssignments && { - "AssignmentExpression[operator='+=']"(node) { - checkPlusOperands(node); - }, - })); - }, -}); -function isDeeplyObjectType(type) { - return type.isIntersection() - ? tsutils.intersectionTypeParts(type).every(tsutils.isObjectType) - : tsutils.unionTypeParts(type).every(tsutils.isObjectType); -} -function isTypeFlagSetInUnion(type, flag) { - return tsutils - .unionTypeParts(type) - .some(subType => tsutils.isTypeFlagSet(subType, flag)); -} -//# sourceMappingURL=restrict-plus-operands.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map deleted file mode 100644 index 716d7e5b..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-plus-operands.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"restrict-plus-operands.js","sourceRoot":"","sources":["../../src/rules/restrict-plus-operands.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,iDAAmC;AACnC,+CAAiC;AAEjC,8CAAgC;AAehC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,8FAA8F;YAChG,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,eAAe,EACb,mGAAmG;YACrG,OAAO,EACL,wGAAwG;YAC1G,UAAU,EACR,8FAA8F;SACjG;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,oBAAoB,EAAE,KAAK;gBAC3B,UAAU,EAAE;oBACV,QAAQ,EAAE;wBACR,WAAW,EAAE,sCAAsC;wBACnD,IAAI,EAAE,SAAS;qBAChB;oBACD,YAAY,EAAE;wBACZ,WAAW,EAAE,0CAA0C;wBACvD,IAAI,EAAE,SAAS;qBAChB;oBACD,YAAY,EAAE;wBACZ,WAAW,EACT,kEAAkE;wBACpE,IAAI,EAAE,SAAS;qBAChB;oBACD,oBAAoB,EAAE;wBACpB,WAAW,EACT,iGAAiG;wBACnG,IAAI,EAAE,SAAS;qBAChB;oBACD,WAAW,EAAE;wBACX,WAAW,EAAE,yCAAyC;wBACtD,IAAI,EAAE,SAAS;qBAChB;oBACD,wBAAwB,EAAE;wBACxB,WAAW,EAAE,qDAAqD;w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wBACvB,IAAI;qBACL,CAAC,CAAC;iBACJ;gBAED,IACE,oBAAoB,CAAC,QAAQ,EAAE,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC;oBACvD,oBAAoB,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,EACxD;oBACA,OAAO,OAAO,CAAC,MAAM,CAAC;wBACpB,IAAI,EAAE;4BACJ,IAAI,EAAE,WAAW,CAAC,YAAY,CAAC,QAAQ,CAAC;4BACxC,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,SAAS,CAAC;yBAC3C;wBACD,SAAS,EAAE,iBAAiB;wBAC5B,IAAI;qBACL,CAAC,CAAC;iBACJ;aACF;QACH,CAAC;QAED,uBACE,gCAAgC,EAAE,iBAAiB,IAChD,CAAC,wBAAwB,IAAI;YAC9B,qCAAqC,CAAC,IAAI;gBACxC,iBAAiB,CAAC,IAAI,CAAC,CAAC;YAC1B,CAAC;SACF,CAAC,EACF;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,kBAAkB,CAAC,IAAa;IACvC,OAAO,IAAI,CAAC,cAAc,EAAE;QAC1B,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC;QACjE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;AAC/D,CAAC;AAED,SAAS,oBAAoB,CAAC,IAAa,EAAE,IAAkB;IAC7D,OAAO,OAAO;SACX,cAAc,CAAC,IAAI,CAAC;SACpB,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;AAC3D,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js deleted file mode 100644 index 376baf35..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js +++ /dev/null @@ -1,141 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'restrict-template-expressions', - meta: { - type: 'problem', - docs: { - description: 'Enforce template literal expressions to be of `string` type', - recommended: 'error', - requiresTypeChecking: true, - }, - messages: { - invalidType: 'Invalid type "{{type}}" of template literal expression.', - }, - schema: [ - { - type: 'object', - properties: { - allowAny: { - description: 'Whether to allow `any` typed values in template expressions.', - type: 'boolean', - }, - allowBoolean: { - description: 'Whether to allow `boolean` typed values in template expressions.', - type: 'boolean', - }, - allowNullish: { - description: 'Whether to allow `nullish` typed values in template expressions.', - type: 'boolean', - }, - allowNumber: { - description: 'Whether to allow `number` typed values in template expressions.', - type: 'boolean', - }, - allowRegExp: { - description: 'Whether to allow `regexp` typed values in template expressions.', - type: 'boolean', - }, - allowNever: { - description: 'Whether to allow `never` typed values in template expressions.', - type: 'boolean', - }, - }, - }, - ], - }, - defaultOptions: [ - { - allowNumber: true, - }, - ], - create(context, [options]) { - const service = util.getParserServices(context); - const typeChecker = service.program.getTypeChecker(); - function isUnderlyingTypePrimitive(type) { - if (util.isTypeFlagSet(type, ts.TypeFlags.StringLike)) { - return true; - } - if (options.allowNumber && - util.isTypeFlagSet(type, ts.TypeFlags.NumberLike | ts.TypeFlags.BigIntLike)) { - return true; - } - if (options.allowBoolean && - util.isTypeFlagSet(type, ts.TypeFlags.BooleanLike)) { - return true; - } - if (options.allowAny && util.isTypeAnyType(type)) { - return true; - } - if (options.allowRegExp && - util.getTypeName(typeChecker, type) === 'RegExp') { - return true; - } - if (options.allowNullish && - util.isTypeFlagSet(type, ts.TypeFlags.Null | ts.TypeFlags.Undefined)) { - return true; - } - if (options.allowNever && util.isTypeNeverType(type)) { - return true; - } - return false; - } - return { - TemplateLiteral(node) { - // don't check tagged template literals - if (node.parent.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression) { - return; - } - for (const expression of node.expressions) { - const expressionType = util.getConstrainedTypeAtLocation(typeChecker, service.esTreeNodeToTSNodeMap.get(expression)); - if (!isInnerUnionOrIntersectionConformingTo(expressionType, isUnderlyingTypePrimitive)) { - context.report({ - node: expression, - messageId: 'invalidType', - data: { type: typeChecker.typeToString(expressionType) }, - }); - } - } - }, - }; - function isInnerUnionOrIntersectionConformingTo(type, predicate) { - return rec(type); - function rec(innerType) { - if (innerType.isUnion()) { - return innerType.types.every(rec); - } - if (innerType.isIntersection()) { - return innerType.types.some(rec); - } - return predicate(innerType); - } - } - }, -}); -//# sourceMappingURL=restrict-template-expressions.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map deleted file mode 100644 index b604a65b..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/restrict-template-expressions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"restrict-template-expressions.js","sourceRoot":"","sources":["../../src/rules/restrict-template-expressions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,+CAAiC;AAEjC,8CAAgC;AAehC,kBAAe,IAAI,CAAC,UAAU,CAAqB;IACjD,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,6DAA6D;YAC/D,WAAW,EAAE,OAAO;YACpB,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,yDAAyD;SACvE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,QAAQ,EAAE;wBACR,WAAW,EACT,8DAA8D;wBAChE,IAAI,EAAE,SAAS;qBAChB;oBACD,YAAY,EAAE;wBACZ,WAAW,EACT,kEAAkE;wBACpE,IAAI,EAAE,SAAS;qBAChB;oBACD,YAAY,EAAE;wBACZ,WAAW,EACT,kEAAkE;wBACpE,IAAI,EAAE,SAAS;qBAChB;oBACD,WAAW,EAAE;wBACX,WAAW,EACT,iEAAiE;wBACnE,IAAI,EAAE,SAAS;qBAChB;oBACD,WAAW,EAAE;wBACX,WAAW,EACT,iEAAiE;wBACnE,IAAI,EAAE,SAAS;qBAChB;oBACD,UAAU,EAAE;wBACV,WAAW,EACT,gEAAgE;wBAClE,IAAI,EAAE,SAAS;qBAChB;iBACF;aACF;SACF;KACF;IACD,cAAc,EAAE;QACd;YACE,WAAW,EAAE,IAAI;SAClB;KACF;IACD,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACvB,MAAM,OAAO,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAChD,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAErD,SAAS,yBAAyB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,GAAG,IAAI,CAAC,4BAA4B,CACtD,WAAW,EACX,OAAO,CAAC,qBAAqB,CAAC,GAAG,CAAC,UAAU,CAAC,CAC9C,CAAC;oBAEF,IACE,CAAC,sCAAsC,CACrC,cAAc,EACd,yBAAyB,CAC1B,EACD;wBACA,OAAO,CAAC,MAAM,CAAC;4BACb,IAAI,EAAE,UAAU;4BAChB,SAAS,EAAE,aAAa;4BACxB,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,CAAC,YAAY,CAAC,cAAc,CAAC,EAAE;yBACzD,CAAC,CAAC;qBACJ;iBACF;YACH,CAAC;SACF,CAAC;QAEF,SAAS,sCAAsC,CAC7C,IAAa,EACb,SAA+C;YAE/C,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC;YAEjB,SAAS,GAAG,CAAC,SAAkB;gBAC7B,IAAI,SAAS,CAAC,OAAO,EAAE,EAAE;oBACvB,OAAO,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACnC;gBAED,IAAI,SAAS,CAAC,cAAc,EAAE,EAAE;oBAC9B,OAAO,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;iBAClC;gBAED,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC;YAC9B,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js deleted file mode 100644 index 96117b82..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js +++ /dev/null @@ -1,266 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const tsutils_1 = require("tsutils"); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -const getOperatorPrecedence_1 = require("../util/getOperatorPrecedence"); -exports.default = util.createRule({ - name: 'return-await', - meta: { - docs: { - description: 'Enforce consistent returning of awaited values', - recommended: false, - requiresTypeChecking: true, - extendsBaseRule: 'no-return-await', - }, - fixable: 'code', - hasSuggestions: true, - type: 'problem', - messages: { - nonPromiseAwait: 'Returning an awaited value that is not a promise is not allowed.', - disallowedPromiseAwait: 'Returning an awaited promise is not allowed in this context.', - requiredPromiseAwait: 'Returning an awaited promise is required in this context.', - }, - schema: [ - { - enum: ['in-try-catch', 'always', 'never'], - }, - ], - }, - defaultOptions: ['in-try-catch'], - create(context, [option]) { - const parserServices = util.getParserServices(context); - const checker = parserServices.program.getTypeChecker(); - const sourceCode = context.getSourceCode(); - const scopeInfoStack = []; - function enterFunction(node) { - scopeInfoStack.push({ - hasAsync: node.async, - owningFunc: node, - }); - } - function exitFunction() { - scopeInfoStack.pop(); - } - function inTry(node) { - let ancestor = node.parent; - while (ancestor && !ts.isFunctionLike(ancestor)) { - if (ts.isTryStatement(ancestor)) { - return true; - } - ancestor = ancestor.parent; - } - return false; - } - function inCatch(node) { - let ancestor = node.parent; - while (ancestor && !ts.isFunctionLike(ancestor)) { - if (ts.isCatchClause(ancestor)) { - return true; - } - ancestor = ancestor.parent; - } - return false; - } - function isReturnPromiseInFinally(node) { - let ancestor = node.parent; - while (ancestor && !ts.isFunctionLike(ancestor)) { - if (ts.isTryStatement(ancestor.parent) && - ts.isBlock(ancestor) && - ancestor.parent.end === ancestor.end) { - return true; - } - ancestor = ancestor.parent; - } - return false; - } - function hasFinallyBlock(node) { - let ancestor = node.parent; - while (ancestor && !ts.isFunctionLike(ancestor)) { - if (ts.isTryStatement(ancestor)) { - return !!ancestor.finallyBlock; - } - ancestor = ancestor.parent; - } - return false; - } - // function findTokensToRemove() - function removeAwait(fixer, node) { - // Should always be an await node; but let's be safe. - /* istanbul ignore if */ if (!util.isAwaitExpression(node)) { - return null; - } - const awaitToken = sourceCode.getFirstToken(node, util.isAwaitKeyword); - // Should always be the case; but let's be safe. - /* istanbul ignore if */ if (!awaitToken) { - return null; - } - const startAt = awaitToken.range[0]; - let endAt = awaitToken.range[1]; - // Also remove any extraneous whitespace after `await`, if there is any. - const nextToken = sourceCode.getTokenAfter(awaitToken, { - includeComments: true, - }); - if (nextToken) { - endAt = nextToken.range[0]; - } - return fixer.removeRange([startAt, endAt]); - } - function insertAwait(fixer, node, isHighPrecendence) { - if (isHighPrecendence) { - return fixer.insertTextBefore(node, 'await '); - } - else { - return [ - fixer.insertTextBefore(node, 'await ('), - fixer.insertTextAfter(node, ')'), - ]; - } - } - function isHigherPrecedenceThanAwait(node) { - const operator = (0, tsutils_1.isBinaryExpression)(node) - ? node.operatorToken.kind - : ts.SyntaxKind.Unknown; - const nodePrecedence = (0, getOperatorPrecedence_1.getOperatorPrecedence)(node.kind, operator); - const awaitPrecedence = (0, getOperatorPrecedence_1.getOperatorPrecedence)(ts.SyntaxKind.AwaitExpression, ts.SyntaxKind.Unknown); - return nodePrecedence > awaitPrecedence; - } - function test(node, expression) { - let child; - const isAwait = ts.isAwaitExpression(expression); - if (isAwait) { - child = expression.getChildAt(1); - } - else { - child = expression; - } - const type = checker.getTypeAtLocation(child); - const isThenable = tsutils.isThenableType(checker, expression, type); - if (!isAwait && !isThenable) { - return; - } - if (isAwait && !isThenable) { - // any/unknown could be thenable; do not auto-fix - const useAutoFix = !(util.isTypeAnyType(type) || util.isTypeUnknownType(type)); - const fix = (fixer) => removeAwait(fixer, node); - context.report(Object.assign({ messageId: 'nonPromiseAwait', node }, (useAutoFix - ? { fix } - : { - suggest: [ - { - messageId: 'nonPromiseAwait', - fix, - }, - ], - }))); - return; - } - if (option === 'always') { - if (!isAwait && isThenable) { - context.report({ - messageId: 'requiredPromiseAwait', - node, - fix: fixer => insertAwait(fixer, node, isHigherPrecedenceThanAwait(expression)), - }); - } - return; - } - if (option === 'never') { - if (isAwait) { - context.report({ - messageId: 'disallowedPromiseAwait', - node, - fix: fixer => removeAwait(fixer, node), - }); - } - return; - } - if (option === 'in-try-catch') { - const isInTryCatch = inTry(expression) || inCatch(expression); - if (isAwait && !isInTryCatch) { - context.report({ - messageId: 'disallowedPromiseAwait', - node, - fix: fixer => removeAwait(fixer, node), - }); - } - else if (!isAwait && isInTryCatch) { - if (inCatch(expression) && !hasFinallyBlock(expression)) { - return; - } - if (isReturnPromiseInFinally(expression)) { - return; - } - context.report({ - messageId: 'requiredPromiseAwait', - node, - fix: fixer => insertAwait(fixer, node, isHigherPrecedenceThanAwait(expression)), - }); - } - return; - } - } - function findPossiblyReturnedNodes(node) { - if (node.type === utils_1.AST_NODE_TYPES.ConditionalExpression) { - return [ - ...findPossiblyReturnedNodes(node.alternate), - ...findPossiblyReturnedNodes(node.consequent), - ]; - } - return [node]; - } - return { - FunctionDeclaration: enterFunction, - FunctionExpression: enterFunction, - ArrowFunctionExpression: enterFunction, - 'FunctionDeclaration:exit': exitFunction, - 'FunctionExpression:exit': exitFunction, - 'ArrowFunctionExpression:exit': exitFunction, - // executes after less specific handler, so exitFunction is called - 'ArrowFunctionExpression[async = true]:exit'(node) { - if (node.body.type !== utils_1.AST_NODE_TYPES.BlockStatement) { - findPossiblyReturnedNodes(node.body).forEach(node => { - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - test(node, tsNode); - }); - } - }, - ReturnStatement(node) { - const scopeInfo = scopeInfoStack[scopeInfoStack.length - 1]; - if (!(scopeInfo === null || scopeInfo === void 0 ? void 0 : scopeInfo.hasAsync) || !node.argument) { - return; - } - findPossiblyReturnedNodes(node.argument).forEach(node => { - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - test(node, tsNode); - }); - }, - }; - }, -}); -//# sourceMappingURL=return-await.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map deleted file mode 100644 index 5aed082e..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/return-await.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"return-await.js","sourceRoot":"","sources":["../../src/rules/return-await.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,iDAAmC;AACnC,qCAA6C;AAC7C,+CAAiC;AAEjC,8CAAgC;AAChC,yEAAsE;AAYtE,kBAAe,IAAI,CAAC,UAAU,CAAC;IAC7B,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,gDAAgD;YAC7D,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;YAC1B,eAAe,EAAE,iBAAiB;SACnC;QACD,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IAAI;QACpB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE;YACR,eAAe,EACb,kEAAkE;YACpE,sBAAsB,EACpB,8DAA8D;YAChE,oBAAoB,EAClB,2DAA2D;SAC9D;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,CAAC,cAAc,EAAE,QAAQ,EAAE,OAAO,CAAC;aAC1C;SACF;KACF;IACD,cAAc,EAAE,CAAC,cAAc,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YACD,OAAO,CAAC,IAAI,CAAC,CAAC;QAChB,CAAC;QAED,OAAO;YACL,mBAAmB,EAAE,aAAa;YAClC,kBAAkB,EAAE,aAAa;YACjC,uBAAuB,EAAE,aAAa;YAEtC,0BAA0B,EAAE,YAAY;YACxC,yBAAyB,EAAE,YAAY;YACvC,8BAA8B,EAAE,YAAY;YAE5C,kEAAkE;YAClE,4CAA4C,CAC1C,IAAsC;gBAEtC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,EAAE;oBACpD,yBAAyB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;wBAClD,MAAM,MAAM,GAAG,cAAc,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;wBAC9D,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;oBACrB,CAAC,CAAC,CAAC;iBACJ;YACH,CAAC;YACD,eAAe,CAAC,IAAI;gBAClB,MAAM,SAAS,GAAG,cAAc,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBAC5D,IAAI,CAAC,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,CAAA,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;oBAC1C,OAAO;iBACR;gBACD,yBAAyB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;oBACtD,MAAM,MAAM,GAAG,cAAc,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;oBAC9D,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;gBACrB,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js deleted file mode 100644 index 5dc825a5..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var _a; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('semi'); -exports.default = util.createRule({ - name: 'semi', - meta: { - type: 'layout', - docs: { - description: 'Require or disallow semicolons instead of ASI', - // too opinionated to be recommended - recommended: false, - extendsBaseRule: true, - }, - fixable: 'code', - hasSuggestions: baseRule.meta.hasSuggestions, - schema: baseRule.meta.schema, - // TODO: this rule has only had messages since v7.0 - remove this when we remove support for v6 - messages: (_a = baseRule.meta.messages) !== null && _a !== void 0 ? _a : { - missingSemi: 'Missing semicolon.', - extraSemi: 'Extra semicolon.', - }, - }, - defaultOptions: [ - 'always', - { - omitLastInOneLineBlock: false, - beforeStatementContinuationChars: 'any', - }, - ], - create(context) { - const rules = baseRule.create(context); - const checkForSemicolon = rules.ExpressionStatement; - /* - The following nodes are handled by the member-delimiter-style rule - AST_NODE_TYPES.TSCallSignatureDeclaration, - AST_NODE_TYPES.TSConstructSignatureDeclaration, - AST_NODE_TYPES.TSIndexSignature, - AST_NODE_TYPES.TSMethodSignature, - AST_NODE_TYPES.TSPropertySignature, - */ - const nodesToCheck = [ - utils_1.AST_NODE_TYPES.PropertyDefinition, - utils_1.AST_NODE_TYPES.TSAbstractPropertyDefinition, - utils_1.AST_NODE_TYPES.TSDeclareFunction, - utils_1.AST_NODE_TYPES.TSExportAssignment, - utils_1.AST_NODE_TYPES.TSImportEqualsDeclaration, - utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration, - utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression, - ].reduce((acc, node) => { - acc[node] = checkForSemicolon; - return acc; - }, {}); - return Object.assign(Object.assign(Object.assign({}, rules), nodesToCheck), { ExportDefaultDeclaration(node) { - if (node.declaration.type !== utils_1.AST_NODE_TYPES.TSInterfaceDeclaration) { - rules.ExportDefaultDeclaration(node); - } - } }); - }, -}); -//# sourceMappingURL=semi.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js.map deleted file mode 100644 index d1ea0dd7..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/semi.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"semi.js","sourceRoot":"","sources":["../../src/rules/semi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAChC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,MAAM,CAAC,CAAC;AAK3C,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE;YACJ,WAAW,EAAE,+CAA+C;YAC5D,oCAAoC;Y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ules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js deleted file mode 100644 index 1904f276..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js +++ /dev/null @@ -1,245 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const util_1 = require("../util"); -var Group; -(function (Group) { - Group["conditional"] = "conditional"; - Group["function"] = "function"; - Group["import"] = "import"; - Group["intersection"] = "intersection"; - Group["keyword"] = "keyword"; - Group["nullish"] = "nullish"; - Group["literal"] = "literal"; - Group["named"] = "named"; - Group["object"] = "object"; - Group["operator"] = "operator"; - Group["tuple"] = "tuple"; - Group["union"] = "union"; -})(Group || (Group = {})); -function getGroup(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSConditionalType: - return Group.conditional; - case utils_1.AST_NODE_TYPES.TSConstructorType: - case utils_1.AST_NODE_TYPES.TSFunctionType: - return Group.function; - case utils_1.AST_NODE_TYPES.TSImportType: - return Group.import; - case utils_1.AST_NODE_TYPES.TSIntersectionType: - return Group.intersection; - case utils_1.AST_NODE_TYPES.TSAnyKeyword: - case utils_1.AST_NODE_TYPES.TSBigIntKeyword: - case utils_1.AST_NODE_TYPES.TSBooleanKeyword: - case utils_1.AST_NODE_TYPES.TSNeverKeyword: - case utils_1.AST_NODE_TYPES.TSNumberKeyword: - case utils_1.AST_NODE_TYPES.TSObjectKeyword: - case utils_1.AST_NODE_TYPES.TSStringKeyword: - case utils_1.AST_NODE_TYPES.TSSymbolKeyword: - case utils_1.AST_NODE_TYPES.TSThisType: - case utils_1.AST_NODE_TYPES.TSUnknownKeyword: - case utils_1.AST_NODE_TYPES.TSIntrinsicKeyword: - return Group.keyword; - case utils_1.AST_NODE_TYPES.TSNullKeyword: - case utils_1.AST_NODE_TYPES.TSUndefinedKeyword: - case utils_1.AST_NODE_TYPES.TSVoidKeyword: - return Group.nullish; - case utils_1.AST_NODE_TYPES.TSLiteralType: - case utils_1.AST_NODE_TYPES.TSTemplateLiteralType: - return Group.literal; - case utils_1.AST_NODE_TYPES.TSArrayType: - case utils_1.AST_NODE_TYPES.TSIndexedAccessType: - case utils_1.AST_NODE_TYPES.TSInferType: - case utils_1.AST_NODE_TYPES.TSTypeReference: - case utils_1.AST_NODE_TYPES.TSQualifiedName: - return Group.named; - case utils_1.AST_NODE_TYPES.TSMappedType: - case utils_1.AST_NODE_TYPES.TSTypeLiteral: - return Group.object; - case utils_1.AST_NODE_TYPES.TSTypeOperator: - case utils_1.AST_NODE_TYPES.TSTypeQuery: - return Group.operator; - case utils_1.AST_NODE_TYPES.TSTupleType: - return Group.tuple; - case utils_1.AST_NODE_TYPES.TSUnionType: - return Group.union; - // These types should never occur as part of a union/intersection - case utils_1.AST_NODE_TYPES.TSAbstractKeyword: - case utils_1.AST_NODE_TYPES.TSAsyncKeyword: - case utils_1.AST_NODE_TYPES.TSDeclareKeyword: - case utils_1.AST_NODE_TYPES.TSExportKeyword: - case utils_1.AST_NODE_TYPES.TSNamedTupleMember: - case utils_1.AST_NODE_TYPES.TSOptionalType: - case utils_1.AST_NODE_TYPES.TSPrivateKeyword: - case utils_1.AST_NODE_TYPES.TSProtectedKeyword: - case utils_1.AST_NODE_TYPES.TSPublicKeyword: - case utils_1.AST_NODE_TYPES.TSReadonlyKeyword: - case utils_1.AST_NODE_TYPES.TSRestType: - case utils_1.AST_NODE_TYPES.TSStaticKeyword: - case utils_1.AST_NODE_TYPES.TSTypePredicate: - /* istanbul ignore next */ - throw new Error(`Unexpected Type ${node.type}`); - } -} -exports.default = util.createRule({ - name: 'sort-type-constituents', - meta: { - type: 'suggestion', - docs: { - description: 'Enforce constituents of a type union/intersection to be sorted alphabetically', - recommended: false, - }, - fixable: 'code', - hasSuggestions: true, - messages: { - notSorted: '{{type}} type constituents must be sorted.', - notSortedNamed: '{{type}} type {{name}} constituents must be sorted.', - suggestFix: 'Sort constituents of type (removes all comments).', - }, - schema: [ - { - type: 'object', - properties: { - checkIntersections: { - description: 'Whether to check intersection types.', - type: 'boolean', - }, - checkUnions: { - description: 'Whether to check union types.', - type: 'boolean', - }, - groupOrder: { - description: 'Ordering of the groups.', - type: 'array', - items: { - type: 'string', - enum: (0, util_1.getEnumNames)(Group), - }, - }, - }, - }, - ], - }, - defaultOptions: [ - { - checkIntersections: true, - checkUnions: true, - groupOrder: [ - Group.named, - Group.keyword, - Group.operator, - Group.literal, - Group.function, - Group.import, - Group.conditional, - Group.object, - Group.tuple, - Group.intersection, - Group.union, - Group.nullish, - ], - }, - ], - create(context, [{ checkIntersections, checkUnions, groupOrder }]) { - const sourceCode = context.getSourceCode(); - const collator = new Intl.Collator('en', { - sensitivity: 'base', - numeric: true, - }); - function checkSorting(node) { - var _a; - const sourceOrder = node.types.map(type => { - var _a; - const group = (_a = groupOrder === null || groupOrder === void 0 ? void 0 : groupOrder.indexOf(getGroup(type))) !== null && _a !== void 0 ? _a : -1; - return { - group: group === -1 ? Number.MAX_SAFE_INTEGER : group, - node: type, - text: sourceCode.getText(type), - }; - }); - const expectedOrder = [...sourceOrder].sort((a, b) => { - if (a.group !== b.group) { - return a.group - b.group; - } - return (collator.compare(a.text, b.text) || - (a.text < b.text ? -1 : a.text > b.text ? 1 : 0)); - }); - const hasComments = node.types.some(type => { - const count = sourceCode.getCommentsBefore(type).length + - sourceCode.getCommentsAfter(type).length; - return count > 0; - }); - for (let i = 0; i < expectedOrder.length; i += 1) { - if (expectedOrder[i].node !== sourceOrder[i].node) { - let messageId = 'notSorted'; - const data = { - name: '', - type: node.type === utils_1.AST_NODE_TYPES.TSIntersectionType - ? 'Intersection' - : 'Union', - }; - if (((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration) { - messageId = 'notSortedNamed'; - data.name = node.parent.id.name; - } - const fix = fixer => { - const sorted = expectedOrder - .map(t => (0, util_1.typeNodeRequiresParentheses)(t.node, t.text) || - (node.type === utils_1.AST_NODE_TYPES.TSIntersectionType && - t.node.type === utils_1.AST_NODE_TYPES.TSUnionType) - ? `(${t.text})` - : t.text) - .join(node.type === utils_1.AST_NODE_TYPES.TSIntersectionType ? ' & ' : ' | '); - return fixer.replaceText(node, sorted); - }; - return context.report(Object.assign({ node, - messageId, - data }, (hasComments - ? { - suggest: [ - { - messageId: 'suggestFix', - fix, - }, - ], - } - : { fix }))); - } - } - } - return Object.assign(Object.assign({}, (checkIntersections && { - TSIntersectionType(node) { - checkSorting(node); - }, - })), (checkUnions && { - TSUnionType(node) { - checkSorting(node); - }, - })); - }, -}); -//# sourceMappingURL=sort-type-constituents.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map deleted file mode 100644 index 83d1582a..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sort-type-constituents.js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AAM,GAAG,aAAa;6BACzB,GAAG,CAAC,CAAC,CAAC,EAAE,CACP,IAAA,kCAA2B,EAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;4BAC3C,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB;gCAC9C,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,WAAW,CAAC;4BAC3C,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,GAAG;4BACf,CAAC,CAAC,CAAC,CAAC,IAAI,CACX;6BACA,IAAI,CACH,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAChE,CAAC;wBAEJ,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;oBACzC,CAAC,CAAC;oBACF,OAAO,OAAO,CAAC,MAAM,iBACnB,IAAI;wBACJ,SAAS;wBACT,IAAI,IAGD,CAAC,WAAW;wBACb,CAAC,CAAC;4BACE,OAAO,EAAE;gCACP;oCACE,SAAS,EAAE,YAAY;oCACvB,GAAG;iCACJ;6BACF;yBACF;wBACH,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EACZ,CAAC;iBACJ;aACF;QACH,CAAC;QAED,uCACK,CAAC,kBAAkB,IAAI;YACxB,kBAAkB,CAAC,IAAI;gBACrB,YAAY,CAAC,IAAI,CAAC,CAAC;YACrB,CAAC;SACF,CAAC,GACC,CAAC,WAAW,IAAI;YACjB,WAAW,CAAC,IAAI;gBACd,YAAY,CAAC,IAAI,CAAC,CAAC;YACrB,CAAC;SACF,CAAC,EACF;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js deleted file mode 100644 index 4da2200b..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js +++ /dev/null @@ -1,247 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const util_1 = require("../util"); -var Group; -(function (Group) { - Group["conditional"] = "conditional"; - Group["function"] = "function"; - Group["import"] = "import"; - Group["intersection"] = "intersection"; - Group["keyword"] = "keyword"; - Group["nullish"] = "nullish"; - Group["literal"] = "literal"; - Group["named"] = "named"; - Group["object"] = "object"; - Group["operator"] = "operator"; - Group["tuple"] = "tuple"; - Group["union"] = "union"; -})(Group || (Group = {})); -function getGroup(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSConditionalType: - return Group.conditional; - case utils_1.AST_NODE_TYPES.TSConstructorType: - case utils_1.AST_NODE_TYPES.TSFunctionType: - return Group.function; - case utils_1.AST_NODE_TYPES.TSImportType: - return Group.import; - case utils_1.AST_NODE_TYPES.TSIntersectionType: - return Group.intersection; - case utils_1.AST_NODE_TYPES.TSAnyKeyword: - case utils_1.AST_NODE_TYPES.TSBigIntKeyword: - case utils_1.AST_NODE_TYPES.TSBooleanKeyword: - case utils_1.AST_NODE_TYPES.TSNeverKeyword: - case utils_1.AST_NODE_TYPES.TSNumberKeyword: - case utils_1.AST_NODE_TYPES.TSObjectKeyword: - case utils_1.AST_NODE_TYPES.TSStringKeyword: - case utils_1.AST_NODE_TYPES.TSSymbolKeyword: - case utils_1.AST_NODE_TYPES.TSThisType: - case utils_1.AST_NODE_TYPES.TSUnknownKeyword: - case utils_1.AST_NODE_TYPES.TSIntrinsicKeyword: - return Group.keyword; - case utils_1.AST_NODE_TYPES.TSNullKeyword: - case utils_1.AST_NODE_TYPES.TSUndefinedKeyword: - case utils_1.AST_NODE_TYPES.TSVoidKeyword: - return Group.nullish; - case utils_1.AST_NODE_TYPES.TSLiteralType: - case utils_1.AST_NODE_TYPES.TSTemplateLiteralType: - return Group.literal; - case utils_1.AST_NODE_TYPES.TSArrayType: - case utils_1.AST_NODE_TYPES.TSIndexedAccessType: - case utils_1.AST_NODE_TYPES.TSInferType: - case utils_1.AST_NODE_TYPES.TSTypeReference: - case utils_1.AST_NODE_TYPES.TSQualifiedName: - return Group.named; - case utils_1.AST_NODE_TYPES.TSMappedType: - case utils_1.AST_NODE_TYPES.TSTypeLiteral: - return Group.object; - case utils_1.AST_NODE_TYPES.TSTypeOperator: - case utils_1.AST_NODE_TYPES.TSTypeQuery: - return Group.operator; - case utils_1.AST_NODE_TYPES.TSTupleType: - return Group.tuple; - case utils_1.AST_NODE_TYPES.TSUnionType: - return Group.union; - // These types should never occur as part of a union/intersection - case utils_1.AST_NODE_TYPES.TSAbstractKeyword: - case utils_1.AST_NODE_TYPES.TSAsyncKeyword: - case utils_1.AST_NODE_TYPES.TSDeclareKeyword: - case utils_1.AST_NODE_TYPES.TSExportKeyword: - case utils_1.AST_NODE_TYPES.TSNamedTupleMember: - case utils_1.AST_NODE_TYPES.TSOptionalType: - case utils_1.AST_NODE_TYPES.TSPrivateKeyword: - case utils_1.AST_NODE_TYPES.TSProtectedKeyword: - case utils_1.AST_NODE_TYPES.TSPublicKeyword: - case utils_1.AST_NODE_TYPES.TSReadonlyKeyword: - case utils_1.AST_NODE_TYPES.TSRestType: - case utils_1.AST_NODE_TYPES.TSStaticKeyword: - case utils_1.AST_NODE_TYPES.TSTypePredicate: - /* istanbul ignore next */ - throw new Error(`Unexpected Type ${node.type}`); - } -} -exports.default = util.createRule({ - name: 'sort-type-union-intersection-members', - meta: { - deprecated: true, - type: 'suggestion', - docs: { - description: 'Enforce members of a type union/intersection to be sorted alphabetically', - recommended: false, - }, - fixable: 'code', - hasSuggestions: true, - messages: { - notSorted: '{{type}} type members must be sorted.', - notSortedNamed: '{{type}} type {{name}} members must be sorted.', - suggestFix: 'Sort members of type (removes all comments).', - }, - replacedBy: ['@typescript-eslint/sort-type-constituents'], - schema: [ - { - type: 'object', - properties: { - checkIntersections: { - description: 'Whether to check intersection types.', - type: 'boolean', - }, - checkUnions: { - description: 'Whether to check union types.', - type: 'boolean', - }, - groupOrder: { - description: 'Ordering of the groups.', - type: 'array', - items: { - type: 'string', - enum: (0, util_1.getEnumNames)(Group), - }, - }, - }, - }, - ], - }, - defaultOptions: [ - { - checkIntersections: true, - checkUnions: true, - groupOrder: [ - Group.named, - Group.keyword, - Group.operator, - Group.literal, - Group.function, - Group.import, - Group.conditional, - Group.object, - Group.tuple, - Group.intersection, - Group.union, - Group.nullish, - ], - }, - ], - create(context, [{ checkIntersections, checkUnions, groupOrder }]) { - const sourceCode = context.getSourceCode(); - const collator = new Intl.Collator('en', { - sensitivity: 'base', - numeric: true, - }); - function checkSorting(node) { - var _a; - const sourceOrder = node.types.map(type => { - var _a; - const group = (_a = groupOrder === null || groupOrder === void 0 ? void 0 : groupOrder.indexOf(getGroup(type))) !== null && _a !== void 0 ? _a : -1; - return { - group: group === -1 ? Number.MAX_SAFE_INTEGER : group, - node: type, - text: sourceCode.getText(type), - }; - }); - const expectedOrder = [...sourceOrder].sort((a, b) => { - if (a.group !== b.group) { - return a.group - b.group; - } - return (collator.compare(a.text, b.text) || - (a.text < b.text ? -1 : a.text > b.text ? 1 : 0)); - }); - const hasComments = node.types.some(type => { - const count = sourceCode.getCommentsBefore(type).length + - sourceCode.getCommentsAfter(type).length; - return count > 0; - }); - for (let i = 0; i < expectedOrder.length; i += 1) { - if (expectedOrder[i].node !== sourceOrder[i].node) { - let messageId = 'notSorted'; - const data = { - name: '', - type: node.type === utils_1.AST_NODE_TYPES.TSIntersectionType - ? 'Intersection' - : 'Union', - }; - if (((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration) { - messageId = 'notSortedNamed'; - data.name = node.parent.id.name; - } - const fix = fixer => { - const sorted = expectedOrder - .map(t => (0, util_1.typeNodeRequiresParentheses)(t.node, t.text) || - (node.type === utils_1.AST_NODE_TYPES.TSIntersectionType && - t.node.type === utils_1.AST_NODE_TYPES.TSUnionType) - ? `(${t.text})` - : t.text) - .join(node.type === utils_1.AST_NODE_TYPES.TSIntersectionType ? ' & ' : ' | '); - return fixer.replaceText(node, sorted); - }; - return context.report(Object.assign({ node, - messageId, - data }, (hasComments - ? { - suggest: [ - { - messageId: 'suggestFix', - fix, - }, - ], - } - : { fix }))); - } - } - } - return Object.assign(Object.assign({}, (checkIntersections && { - TSIntersectionType(node) { - checkSorting(node); - }, - })), (checkUnions && { - TSUnionType(node) { - checkSorting(node); - }, - })); - }, -}); -//# sourceMappingURL=sort-type-union-intersection-members.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js.map deleted file mode 100644 index 0b757930..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-union-intersection-members.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sort-type-union-intersection-members.js","sourceRoot":"","sources":["../../src/rules/sort-type-union-intersection-members.ts"],"names":[],"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;wBAC9C,MAAM,MAAM,GAAG,aAAa;6BACzB,GAAG,CAAC,CAAC,CAAC,EAAE,CACP,IAAA,kCAA2B,EAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;4BAC3C,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB;gCAC9C,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,WAAW,CAAC;4BAC3C,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,GAAG;4BACf,CAAC,CAAC,CAAC,CAAC,IAAI,CACX;6BACA,IAAI,CACH,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAChE,CAAC;wBAEJ,OAAO,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;oBACzC,CAAC,CAAC;oBACF,OAAO,OAAO,CAAC,MAAM,iBACnB,IAAI;wBACJ,SAAS;wBACT,IAAI,IAGD,CAAC,WAAW;wBACb,CAAC,CAAC;4BACE,OAAO,EAAE;gCACP;oCACE,SAAS,EAAE,YAAY;oCACvB,GAAG;iCACJ;6BACF;yBACF;wBACH,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EACZ,CAAC;iBACJ;aACF;QACH,CAAC;QAED,uCACK,CAAC,kBAAkB,IAAI;YACxB,kBAAkB,CAAC,IAAI;gBACrB,YAAY,CAAC,IAAI,CAAC,CAAC;YACrB,CAAC;SACF,CAAC,GACC,CAAC,WAAW,IAAI;YACjB,WAAW,CAAC,IAAI;gBACd,YAAY,CAAC,IAAI,CAAC,CAAC;YACrB,CAAC;SACF,CAAC,EACF;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js deleted file mode 100644 index 103cd858..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js +++ /dev/null @@ -1,95 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('space-before-blocks'); -exports.default = util.createRule({ - name: 'space-before-blocks', - meta: { - type: 'layout', - docs: { - description: 'Enforce consistent spacing before blocks', - recommended: false, - extendsBaseRule: true, - }, - fixable: baseRule.meta.fixable, - hasSuggestions: baseRule.meta.hasSuggestions, - schema: baseRule.meta.schema, - messages: Object.assign({ - // @ts-expect-error -- we report on this messageId so we need to ensure it's there in case ESLint changes in future - unexpectedSpace: 'Unexpected space before opening brace.', - // @ts-expect-error -- we report on this messageId so we need to ensure it's there in case ESLint changes in future - missingSpace: 'Missing space before opening brace.' }, baseRule.meta.messages), - }, - defaultOptions: ['always'], - create(context, [config]) { - const rules = baseRule.create(context); - const sourceCode = context.getSourceCode(); - let requireSpace = true; - if (typeof config === 'object') { - requireSpace = config.classes === 'always'; - } - else if (config === 'never') { - requireSpace = false; - } - function checkPrecedingSpace(node) { - const precedingToken = sourceCode.getTokenBefore(node); - if (precedingToken && util.isTokenOnSameLine(precedingToken, node)) { - // eslint-disable-next-line deprecation/deprecation -- TODO - switch once our min ESLint version is 6.7.0 - const hasSpace = sourceCode.isSpaceBetweenTokens(precedingToken, node); - if (requireSpace && !hasSpace) { - context.report({ - node, - messageId: 'missingSpace', - fix(fixer) { - return fixer.insertTextBefore(node, ' '); - }, - }); - } - else if (!requireSpace && hasSpace) { - context.report({ - node, - messageId: 'unexpectedSpace', - fix(fixer) { - return fixer.removeRange([ - precedingToken.range[1], - node.range[0], - ]); - }, - }); - } - } - } - function checkSpaceAfterEnum(node) { - const punctuator = sourceCode.getTokenAfter(node.id); - if (punctuator) { - checkPrecedingSpace(punctuator); - } - } - return Object.assign(Object.assign({}, rules), { TSEnumDeclaration: checkSpaceAfterEnum, TSInterfaceBody: checkPrecedingSpace }); - }, -}); -//# sourceMappingURL=space-before-blocks.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js.map deleted file mode 100644 index 162a7693..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-blocks.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"space-before-blocks.js","sourceRoot":"","sources":["../../src/rules/space-before-blocks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,8CAAgC;AAChC,iEAA8D;AAE9D,MAAM,QAAQ,GAAG,IAAA,qCAAiB,EAAC,qBAAqB,CAAC,CAAC;AAK1D,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;YACvD,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAA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qBACF,CAAC,CAAC;iBACJ;qBAAM,IAAI,CAAC,YAAY,IAAI,QAAQ,EAAE;oBACpC,OAAO,CAAC,MAAM,CAAC;wBACb,IAAI;wBACJ,SAAS,EAAE,iBAAiB;wBAC5B,GAAG,CAAC,KAAK;4BACP,OAAO,KAAK,CAAC,WAAW,CAAC;gCACvB,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;gCACvB,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;6BACd,CAAC,CAAC;wBACL,CAAC;qBACF,CAAC,CAAC;iBACJ;aACF;QACH,CAAC;QAED,SAAS,mBAAmB,CAAC,IAAgC;YAC3D,MAAM,UAAU,GAAG,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACrD,IAAI,UAAU,EAAE;gBACd,mBAAmB,CAAC,UAAU,CAAC,CAAC;aACjC;QACH,CAAC;QAED,uCACK,KAAK,KACR,iBAAiB,EAAE,mBAAmB,EACtC,eAAe,EAAE,mBAAmB,IACpC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js deleted file mode 100644 index 36390aaa..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js +++ /dev/null @@ -1,163 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'space-before-function-paren', - meta: { - type: 'layout', - docs: { - description: 'Enforce consistent spacing before function parenthesis', - recommended: false, - extendsBaseRule: true, - }, - fixable: 'whitespace', - schema: [ - { - oneOf: [ - { - enum: ['always', 'never'], - }, - { - type: 'object', - properties: { - anonymous: { - enum: ['always', 'never', 'ignore'], - }, - named: { - enum: ['always', 'never', 'ignore'], - }, - asyncArrow: { - enum: ['always', 'never', 'ignore'], - }, - }, - additionalProperties: false, - }, - ], - }, - ], - messages: { - unexpected: 'Unexpected space before function parentheses.', - missing: 'Missing space before function parentheses.', - }, - }, - defaultOptions: ['always'], - create(context, [firstOption]) { - const sourceCode = context.getSourceCode(); - const baseConfig = typeof firstOption === 'string' ? firstOption : 'always'; - const overrideConfig = typeof firstOption === 'object' ? firstOption : {}; - /** - * Determines whether a function has a name. - * @param {ASTNode} node The function node. - * @returns {boolean} Whether the function has a name. - */ - function isNamedFunction(node) { - if (node.id != null) { - return true; - } - const parent = node.parent; - return (parent.type === utils_1.AST_NODE_TYPES.MethodDefinition || - parent.type === utils_1.AST_NODE_TYPES.TSAbstractMethodDefinition || - (parent.type === utils_1.AST_NODE_TYPES.Property && - (parent.kind === 'get' || parent.kind === 'set' || parent.method))); - } - /** - * Gets the config for a given function - * @param {ASTNode} node The function node - * @returns {string} "always", "never", or "ignore" - */ - function getConfigForFunction(node) { - var _a, _b, _c; - if (node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression) { - // Always ignore non-async functions and arrow functions without parens, e.g. async foo => bar - if (node.async && - util.isOpeningParenToken(sourceCode.getFirstToken(node, { skip: 1 }))) { - return (_a = overrideConfig.asyncArrow) !== null && _a !== void 0 ? _a : baseConfig; - } - } - else if (isNamedFunction(node)) { - return (_b = overrideConfig.named) !== null && _b !== void 0 ? _b : baseConfig; - // `generator-star-spacing` should warn anonymous generators. E.g. `function* () {}` - } - else if (!node.generator) { - return (_c = overrideConfig.anonymous) !== null && _c !== void 0 ? _c : baseConfig; - } - return 'ignore'; - } - /** - * Checks the parens of a function node - * @param {ASTNode} node A function node - * @returns {void} - */ - function checkFunction(node) { - const functionConfig = getConfigForFunction(node); - if (functionConfig === 'ignore') { - return; - } - let leftToken; - let rightToken; - if (node.typeParameters) { - leftToken = sourceCode.getLastToken(node.typeParameters); - rightToken = sourceCode.getTokenAfter(leftToken); - } - else { - rightToken = sourceCode.getFirstToken(node, util.isOpeningParenToken); - leftToken = sourceCode.getTokenBefore(rightToken); - } - // eslint-disable-next-line deprecation/deprecation -- TODO - switch once our min ESLint version is 6.7.0 - const hasSpacing = sourceCode.isSpaceBetweenTokens(leftToken, rightToken); - if (hasSpacing && functionConfig === 'never') { - context.report({ - node, - loc: { - start: leftToken.loc.end, - end: rightToken.loc.start, - }, - messageId: 'unexpected', - fix: fixer => fixer.removeRange([leftToken.range[1], rightToken.range[0]]), - }); - } - else if (!hasSpacing && - functionConfig === 'always' && - (!node.typeParameters || node.id)) { - context.report({ - node, - loc: rightToken.loc, - messageId: 'missing', - fix: fixer => fixer.insertTextAfter(leftToken, ' '), - }); - } - } - return { - ArrowFunctionExpression: checkFunction, - FunctionDeclaration: checkFunction, - FunctionExpression: checkFunction, - TSEmptyBodyFunctionExpression: checkFunction, - TSDeclareFunction: checkFunction, - }; - }, -}); -//# sourceMappingURL=space-before-function-paren.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js.map deleted file mode 100644 index 38c0cea6..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-before-function-paren.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"space-before-function-paren.js","sourceRoot":"","sources":["../../src/rules/space-before-function-paren.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAehC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE;YACJ,WAAW,EAAE,wDAAwD;YACrE,WAAW,EAAE,KAAK;YAClB,eAAe,EAAE,IAAI;SACtB;QACD,OAAO,EAAE,YAAY;QACrB,MAAM,EAAE;YACN;gBACE,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;qBAC1B;oBACD;wBACE,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE;4BACV,SAAS,EAAE;gCACT,IAAI,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC;6BACpC;4BACD,KAAK,EAAE;gCACL,IAAI,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC;6BACpC;4BACD,UAAU,EAAE;gCACV,IAAI,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC;6BACpC;yBACF;wBACD,oBAAoB,EAAE,KAAK;qBAC5B;iBACF;aACF;SACF;QACD,QAAQ,EAAE;YACR,UAAU,EAAE,+CAA+C;YAC3D,OAAO,EAAE,4CAA4C;SACtD;KACF;IACD,cAAc,EAAE,CAAC,QAAQ,CAAC;IAE1B,MAAM,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC;QAC3B,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAC3C,MAAM,UAAU,GAAG,OAAO,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ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AAG,EAAE,UAAU,CAAC,GAAG;oBACnB,SAAS,EAAE,SAAS;oBACpB,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,SAAS,EAAE,GAAG,CAAC;iBACpD,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,uBAAuB,EAAE,aAAa;YACtC,mBAAmB,EAAE,aAAa;YAClC,kBAAkB,EAAE,aAAa;YACjC,6BAA6B,EAAE,aAAa;YAC5C,iBAAiB,EAAE,aAAa;SACjC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-infix-ops.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-infix-ops.js deleted file mode 100644 index 785c5c16..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-infix-ops.js +++ /dev/null @@ -1,146 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -const getESLintCoreRule_1 = require("../util/getESLintCoreRule"); -const baseRule = (0, getESLintCoreRule_1.getESLintCoreRule)('space-infix-ops'); -const UNIONS = ['|', '&']; -exports.default = util.createRule({ - name: 'space-infix-ops', - meta: { - type: 'layout', - docs: { - description: 'Require spacing around infix operators', - recommended: false, - extendsBaseRule: true, - }, - fixable: baseRule.meta.fixable, - hasSuggestions: baseRule.meta.hasSuggestions, - schema: baseRule.meta.schema, - messages: Object.assign({ - // @ts-expect-error -- we report on this messageId so we need to ensure it's there in case ESLint changes in future - missingSpace: "Operator '{{operator}}' must be spaced." }, baseRule.meta.messages), - }, - defaultOptions: [ - { - int32Hint: false, - }, - ], - create(context) { - const rules = baseRule.create(context); - const sourceCode = context.getSourceCode(); - function report(operator) { - context.report({ - node: operator, - messageId: 'missingSpace', - data: { - operator: operator.value, - }, - fix(fixer) { - const previousToken = sourceCode.getTokenBefore(operator); - const afterToken = sourceCode.getTokenAfter(operator); - let fixString = ''; - if (operator.range[0] - previousToken.range[1] === 0) { - fixString = ' '; - } - fixString += operator.value; - if (afterToken.range[0] - operator.range[1] === 0) { - fixString += ' '; - } - return fixer.replaceText(operator, fixString); - }, - }); - } - function isSpaceChar(token) { - return (token.type === utils_1.AST_TOKEN_TYPES.Punctuator && /^[=?:]$/.test(token.value)); - } - function checkAndReportAssignmentSpace(leftNode, rightNode) { - if (!rightNode || !leftNode) { - return; - } - const operator = sourceCode.getFirstTokenBetween(leftNode, rightNode, isSpaceChar); - const prev = sourceCode.getTokenBefore(operator); - const next = sourceCode.getTokenAfter(operator); - if (!sourceCode.isSpaceBetween(prev, operator) || - !sourceCode.isSpaceBetween(operator, next)) { - report(operator); - } - } - /** - * Check if it has an assignment char and report if it's faulty - * @param node The node to report - */ - function checkForEnumAssignmentSpace(node) { - checkAndReportAssignmentSpace(node.id, node.initializer); - } - /** - * Check if it has an assignment char and report if it's faulty - * @param node The node to report - */ - function checkForPropertyDefinitionAssignmentSpace(node) { - var _a; - const leftNode = node.optional && !node.typeAnnotation - ? sourceCode.getTokenAfter(node.key) - : (_a = node.typeAnnotation) !== null && _a !== void 0 ? _a : node.key; - checkAndReportAssignmentSpace(leftNode, node.value); - } - /** - * Check if it is missing spaces between type annotations chaining - * @param typeAnnotation TypeAnnotations list - */ - function checkForTypeAnnotationSpace(typeAnnotation) { - const types = typeAnnotation.types; - types.forEach(type => { - const skipFunctionParenthesis = type.type === utils_1.TSESTree.AST_NODE_TYPES.TSFunctionType - ? util.isNotOpeningParenToken - : 0; - const operator = sourceCode.getTokenBefore(type, skipFunctionParenthesis); - if (operator != null && UNIONS.includes(operator.value)) { - const prev = sourceCode.getTokenBefore(operator); - const next = sourceCode.getTokenAfter(operator); - if (!sourceCode.isSpaceBetween(prev, operator) || - !sourceCode.isSpaceBetween(operator, next)) { - report(operator); - } - } - }); - } - /** - * Check if it has an assignment char and report if it's faulty - * @param node The node to report - */ - function checkForTypeAliasAssignment(node) { - var _a; - checkAndReportAssignmentSpace((_a = node.typeParameters) !== null && _a !== void 0 ? _a : node.id, node.typeAnnotation); - } - function checkForTypeConditional(node) { - checkAndReportAssignmentSpace(node.extendsType, node.trueType); - checkAndReportAssignmentSpace(node.trueType, node.falseType); - } - return Object.assign(Object.assign({}, rules), { TSEnumMember: checkForEnumAssignmentSpace, PropertyDefinition: checkForPropertyDefinitionAssignmentSpace, TSTypeAliasDeclaration: checkForTypeAliasAssignment, TSUnionType: checkForTypeAnnotationSpace, TSIntersectionType: checkForTypeAnnotationSpace, TSConditionalType: checkForTypeConditional }); - }, -}); -//# sourceMappingURL=space-infix-ops.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-infix-ops.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-infix-ops.js.map deleted file mode 100644 index 6f601a83..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/space-infix-ops.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"space-infix-ops.js","sourceRoot":"","sources":["../../src/rules/space-infix-ops.ts"],"names":[],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AC,CAAC;QACL,CAAC;QAED;;;WAGG;QACH,SAAS,2BAA2B,CAClC,IAAqC;;YAErC,6BAA6B,CAC3B,MAAA,IAAI,CAAC,cAAc,mCAAI,IAAI,CAAC,EAAE,EAC9B,IAAI,CAAC,cAAc,CACpB,CAAC;QACJ,CAAC;QAED,SAAS,uBAAuB,CAAC,IAAgC;YAC/D,6BAA6B,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC/D,6BAA6B,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QAC/D,CAAC;QAED,uCACK,KAAK,KACR,YAAY,EAAE,2BAA2B,EACzC,kBAAkB,EAAE,yCAAyC,EAC7D,sBAAsB,EAAE,2BAA2B,EACnD,WAAW,EAAE,2BAA2B,EACxC,kBAAkB,EAAE,2BAA2B,EAC/C,iBAAiB,EAAE,uBAAuB,IAC1C;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js deleted file mode 100644 index 13b2745e..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js +++ /dev/null @@ -1,792 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'strict-boolean-expressions', - meta: { - type: 'suggestion', - fixable: 'code', - hasSuggestions: true, - docs: { - description: 'Disallow certain types in boolean expressions', - recommended: false, - requiresTypeChecking: true, - }, - schema: [ - { - type: 'object', - properties: { - allowString: { type: 'boolean' }, - allowNumber: { type: 'boolean' }, - allowNullableObject: { type: 'boolean' }, - allowNullableBoolean: { type: 'boolean' }, - allowNullableString: { type: 'boolean' }, - allowNullableNumber: { type: 'boolean' }, - allowNullableEnum: { type: 'boolean' }, - allowAny: { type: 'boolean' }, - allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: { - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - messages: { - conditionErrorOther: 'Unexpected value in conditional. ' + - 'A boolean expression is required.', - conditionErrorAny: 'Unexpected any value in conditional. ' + - 'An explicit comparison or type cast is required.', - conditionErrorNullish: 'Unexpected nullish value in conditional. ' + - 'The condition is always false.', - conditionErrorNullableBoolean: 'Unexpected nullable boolean value in conditional. ' + - 'Please handle the nullish case explicitly.', - conditionErrorString: 'Unexpected string value in conditional. ' + - 'An explicit empty string check is required.', - conditionErrorNullableString: 'Unexpected nullable string value in conditional. ' + - 'Please handle the nullish/empty cases explicitly.', - conditionErrorNumber: 'Unexpected number value in conditional. ' + - 'An explicit zero/NaN check is required.', - conditionErrorNullableNumber: 'Unexpected nullable number value in conditional. ' + - 'Please handle the nullish/zero/NaN cases explicitly.', - conditionErrorObject: 'Unexpected object value in conditional. ' + - 'The condition is always true.', - conditionErrorNullableObject: 'Unexpected nullable object value in conditional. ' + - 'An explicit null check is required.', - conditionErrorNullableEnum: 'Unexpected nullable enum value in conditional. ' + - 'Please handle the nullish/zero/NaN cases explicitly.', - noStrictNullCheck: 'This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.', - conditionFixDefaultFalse: 'Explicitly treat nullish value the same as false (`value ?? false`)', - conditionFixDefaultEmptyString: 'Explicitly treat nullish value the same as an empty string (`value ?? ""`)', - conditionFixDefaultZero: 'Explicitly treat nullish value the same as 0 (`value ?? 0`)', - conditionFixCompareNullish: 'Change condition to check for null/undefined (`value != null`)', - conditionFixCastBoolean: 'Explicitly cast value to a boolean (`Boolean(value)`)', - conditionFixCompareTrue: 'Change condition to check if true (`value === true`)', - conditionFixCompareFalse: 'Change condition to check if false (`value === false`)', - conditionFixCompareStringLength: "Change condition to check string's length (`value.length !== 0`)", - conditionFixCompareEmptyString: 'Change condition to check for empty string (`value !== ""`)', - conditionFixCompareZero: 'Change condition to check for 0 (`value !== 0`)', - conditionFixCompareNaN: 'Change condition to check for NaN (`!Number.isNaN(value)`)', - }, - }, - defaultOptions: [ - { - allowString: true, - allowNumber: true, - allowNullableObject: true, - allowNullableBoolean: false, - allowNullableString: false, - allowNullableNumber: false, - allowNullableEnum: true, - allowAny: false, - allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false, - }, - ], - create(context, [options]) { - const parserServices = util.getParserServices(context); - const typeChecker = parserServices.program.getTypeChecker(); - const compilerOptions = parserServices.program.getCompilerOptions(); - const sourceCode = context.getSourceCode(); - const isStrictNullChecks = tsutils.isStrictCompilerOptionEnabled(compilerOptions, 'strictNullChecks'); - if (!isStrictNullChecks && - options.allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing !== true) { - context.report({ - loc: { - start: { line: 0, column: 0 }, - end: { line: 0, column: 0 }, - }, - messageId: 'noStrictNullCheck', - }); - } - const traversedNodes = new Set(); - return { - ConditionalExpression: traverseTestExpression, - DoWhileStatement: traverseTestExpression, - ForStatement: traverseTestExpression, - IfStatement: traverseTestExpression, - WhileStatement: traverseTestExpression, - 'LogicalExpression[operator!="??"]': traverseLogicalExpression, - 'UnaryExpression[operator="!"]': traverseUnaryLogicalExpression, - }; - /** - * Inspects condition of a test expression. (`if`, `while`, `for`, etc.) - */ - function traverseTestExpression(node) { - if (node.test == null) { - return; - } - traverseNode(node.test, true); - } - /** - * Inspects the argument of a unary logical expression (`!`). - */ - function traverseUnaryLogicalExpression(node) { - traverseNode(node.argument, true); - } - /** - * Inspects the arguments of a logical expression (`&&`, `||`). - * - * If the logical expression is a descendant of a test expression, - * the `isCondition` flag should be set to true. - * Otherwise, if the logical expression is there on it's own, - * it's used for control flow and is not a condition itself. - */ - function traverseLogicalExpression(node, isCondition = false) { - // left argument is always treated as a condition - traverseNode(node.left, true); - // if the logical expression is used for control flow, - // then it's right argument is used for it's side effects only - traverseNode(node.right, isCondition); - } - /** - * Inspects any node. - * - * If it's a logical expression then it recursively traverses its arguments. - * If it's any other kind of node then it's type is finally checked against the rule, - * unless `isCondition` flag is set to false, in which case - * it's assumed to be used for side effects only and is skipped. - */ - function traverseNode(node, isCondition) { - // prevent checking the same node multiple times - if (traversedNodes.has(node)) { - return; - } - traversedNodes.add(node); - // for logical operator, we check its operands - if (node.type === utils_1.AST_NODE_TYPES.LogicalExpression && - node.operator !== '??') { - traverseLogicalExpression(node, isCondition); - return; - } - // skip if node is not a condition - if (!isCondition) { - return; - } - checkNode(node); - } - /** - * This function does the actual type check on a node. - * It analyzes the type of a node and checks if it is allowed in a boolean context. - */ - function checkNode(node) { - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node); - const type = util.getConstrainedTypeAtLocation(typeChecker, tsNode); - const types = inspectVariantTypes(tsutils.unionTypeParts(type)); - const is = (...wantedTypes) => types.size === wantedTypes.length && - wantedTypes.every(type => types.has(type)); - // boolean - if (is('boolean') || is('truthy boolean')) { - // boolean is always okay - return; - } - // never - if (is('never')) { - // never is always okay - return; - } - // nullish - if (is('nullish')) { - // condition is always false - context.report({ node, messageId: 'conditionErrorNullish' }); - return; - } - // Known edge case: boolean `true` and nullish values are always valid boolean expressions - if (is('nullish', 'truthy boolean')) { - return; - } - // nullable boolean - if (is('nullish', 'boolean')) { - if (!options.allowNullableBoolean) { - if (isLogicalNegationExpression(node.parent)) { - // if (!nullableBoolean) - context.report({ - node, - messageId: 'conditionErrorNullableBoolean', - suggest: [ - { - messageId: 'conditionFixDefaultFalse', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `${code} ?? false`, - }), - }, - { - messageId: 'conditionFixCompareFalse', - fix: util.getWrappingFixer({ - sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `${code} === false`, - }), - }, - ], - }); - } - else { - // if (nullableBoolean) - context.report({ - node, - messageId: 'conditionErrorNullableBoolean', - suggest: [ - { - messageId: 'conditionFixDefaultFalse', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `${code} ?? false`, - }), - }, - { - messageId: 'conditionFixCompareTrue', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `${code} === true`, - }), - }, - ], - }); - } - } - return; - } - // Known edge case: truthy primitives and nullish values are always valid boolean expressions - if ((options.allowNumber && is('nullish', 'truthy number')) || - (options.allowString && is('nullish', 'truthy string'))) { - return; - } - // string - if (is('string') || is('truthy string')) { - if (!options.allowString) { - if (isLogicalNegationExpression(node.parent)) { - // if (!string) - context.report({ - node, - messageId: 'conditionErrorString', - suggest: [ - { - messageId: 'conditionFixCompareStringLength', - fix: util.getWrappingFixer({ - sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `${code}.length === 0`, - }), - }, - { - messageId: 'conditionFixCompareEmptyString', - fix: util.getWrappingFixer({ - sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `${code} === ""`, - }), - }, - { - messageId: 'conditionFixCastBoolean', - fix: util.getWrappingFixer({ - sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `!Boolean(${code})`, - }), - }, - ], - }); - } - else { - // if (string) - context.report({ - node, - messageId: 'conditionErrorString', - suggest: [ - { - messageId: 'conditionFixCompareStringLength', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `${code}.length > 0`, - }), - }, - { - messageId: 'conditionFixCompareEmptyString', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `${code} !== ""`, - }), - }, - { - messageId: 'conditionFixCastBoolean', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `Boolean(${code})`, - }), - }, - ], - }); - } - } - return; - } - // nullable string - if (is('nullish', 'string')) { - if (!options.allowNullableString) { - if (isLogicalNegationExpression(node.parent)) { - // if (!nullableString) - context.report({ - node, - messageId: 'conditionErrorNullableString', - suggest: [ - { - messageId: 'conditionFixCompareNullish', - fix: util.getWrappingFixer({ - sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `${code} == null`, - }), - }, - { - messageId: 'conditionFixDefaultEmptyString', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `${code} ?? ""`, - }), - }, - { - messageId: 'conditionFixCastBoolean', - fix: util.getWrappingFixer({ - sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `!Boolean(${code})`, - }), - }, - ], - }); - } - else { - // if (nullableString) - context.report({ - node, - messageId: 'conditionErrorNullableString', - suggest: [ - { - messageId: 'conditionFixCompareNullish', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `${code} != null`, - }), - }, - { - messageId: 'conditionFixDefaultEmptyString', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `${code} ?? ""`, - }), - }, - { - messageId: 'conditionFixCastBoolean', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `Boolean(${code})`, - }), - }, - ], - }); - } - } - return; - } - // number - if (is('number') || is('truthy number')) { - if (!options.allowNumber) { - if (isArrayLengthExpression(node, typeChecker, parserServices)) { - if (isLogicalNegationExpression(node.parent)) { - // if (!array.length) - context.report({ - node, - messageId: 'conditionErrorNumber', - fix: util.getWrappingFixer({ - sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `${code} === 0`, - }), - }); - } - else { - // if (array.length) - context.report({ - node, - messageId: 'conditionErrorNumber', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `${code} > 0`, - }), - }); - } - } - else if (isLogicalNegationExpression(node.parent)) { - // if (!number) - context.report({ - node, - messageId: 'conditionErrorNumber', - suggest: [ - { - messageId: 'conditionFixCompareZero', - fix: util.getWrappingFixer({ - sourceCode, - node: node.parent, - innerNode: node, - // TODO: we have to compare to 0n if the type is bigint - wrap: code => `${code} === 0`, - }), - }, - { - // TODO: don't suggest this for bigint because it can't be NaN - messageId: 'conditionFixCompareNaN', - fix: util.getWrappingFixer({ - sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `Number.isNaN(${code})`, - }), - }, - { - messageId: 'conditionFixCastBoolean', - fix: util.getWrappingFixer({ - sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `!Boolean(${code})`, - }), - }, - ], - }); - } - else { - // if (number) - context.report({ - node, - messageId: 'conditionErrorNumber', - suggest: [ - { - messageId: 'conditionFixCompareZero', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `${code} !== 0`, - }), - }, - { - messageId: 'conditionFixCompareNaN', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `!Number.isNaN(${code})`, - }), - }, - { - messageId: 'conditionFixCastBoolean', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `Boolean(${code})`, - }), - }, - ], - }); - } - } - return; - } - // nullable number - if (is('nullish', 'number')) { - if (!options.allowNullableNumber) { - if (isLogicalNegationExpression(node.parent)) { - // if (!nullableNumber) - context.report({ - node, - messageId: 'conditionErrorNullableNumber', - suggest: [ - { - messageId: 'conditionFixCompareNullish', - fix: util.getWrappingFixer({ - sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `${code} == null`, - }), - }, - { - messageId: 'conditionFixDefaultZero', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `${code} ?? 0`, - }), - }, - { - messageId: 'conditionFixCastBoolean', - fix: util.getWrappingFixer({ - sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `!Boolean(${code})`, - }), - }, - ], - }); - } - else { - // if (nullableNumber) - context.report({ - node, - messageId: 'conditionErrorNullableNumber', - suggest: [ - { - messageId: 'conditionFixCompareNullish', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `${code} != null`, - }), - }, - { - messageId: 'conditionFixDefaultZero', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `${code} ?? 0`, - }), - }, - { - messageId: 'conditionFixCastBoolean', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `Boolean(${code})`, - }), - }, - ], - }); - } - } - return; - } - // object - if (is('object')) { - // condition is always true - context.report({ node, messageId: 'conditionErrorObject' }); - return; - } - // nullable object - if (is('nullish', 'object')) { - if (!options.allowNullableObject) { - if (isLogicalNegationExpression(node.parent)) { - // if (!nullableObject) - context.report({ - node, - messageId: 'conditionErrorNullableObject', - fix: util.getWrappingFixer({ - sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `${code} == null`, - }), - }); - } - else { - // if (nullableObject) - context.report({ - node, - messageId: 'conditionErrorNullableObject', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `${code} != null`, - }), - }); - } - } - return; - } - // nullable enum - if (is('nullish', 'number', 'enum') || - is('nullish', 'string', 'enum') || - is('nullish', 'truthy number', 'enum') || - is('nullish', 'truthy string', 'enum') || - // mixed enums - is('nullish', 'truthy number', 'truthy string', 'enum') || - is('nullish', 'truthy number', 'string', 'enum') || - is('nullish', 'truthy string', 'number', 'enum') || - is('nullish', 'number', 'string', 'enum')) { - if (!options.allowNullableEnum) { - if (isLogicalNegationExpression(node.parent)) { - context.report({ - node, - messageId: 'conditionErrorNullableEnum', - fix: util.getWrappingFixer({ - sourceCode, - node: node.parent, - innerNode: node, - wrap: code => `${code} == null`, - }), - }); - } - else { - context.report({ - node, - messageId: 'conditionErrorNullableEnum', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `${code} != null`, - }), - }); - } - } - return; - } - // any - if (is('any')) { - if (!options.allowAny) { - context.report({ - node, - messageId: 'conditionErrorAny', - suggest: [ - { - messageId: 'conditionFixCastBoolean', - fix: util.getWrappingFixer({ - sourceCode, - node, - wrap: code => `Boolean(${code})`, - }), - }, - ], - }); - } - return; - } - // other - context.report({ node, messageId: 'conditionErrorOther' }); - } - /** - * Check union variants for the types we care about - */ - function inspectVariantTypes(types) { - const variantTypes = new Set(); - if (types.some(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.Null | ts.TypeFlags.Undefined | ts.TypeFlags.VoidLike))) { - variantTypes.add('nullish'); - } - const booleans = types.filter(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.BooleanLike)); - // If incoming type is either "true" or "false", there will be one type - // object with intrinsicName set accordingly - // If incoming type is boolean, there will be two type objects with - // intrinsicName set "true" and "false" each because of tsutils.unionTypeParts() - if (booleans.length === 1) { - tsutils.isBooleanLiteralType(booleans[0], true) - ? variantTypes.add('truthy boolean') - : variantTypes.add('boolean'); - } - else if (booleans.length === 2) { - variantTypes.add('boolean'); - } - const strings = types.filter(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.StringLike)); - if (strings.length) { - if (strings.every(type => type.isStringLiteral() && type.value !== '')) { - variantTypes.add('truthy string'); - } - else { - variantTypes.add('string'); - } - } - const numbers = types.filter(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.NumberLike | ts.TypeFlags.BigIntLike)); - if (numbers.length) { - if (numbers.every(type => type.isNumberLiteral() && type.value !== 0)) { - variantTypes.add('truthy number'); - } - else { - variantTypes.add('number'); - } - } - if (types.some(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.EnumLike))) { - variantTypes.add('enum'); - } - if (types.some(type => !tsutils.isTypeFlagSet(type, ts.TypeFlags.Null | - ts.TypeFlags.Undefined | - ts.TypeFlags.VoidLike | - ts.TypeFlags.BooleanLike | - ts.TypeFlags.StringLike | - ts.TypeFlags.NumberLike | - ts.TypeFlags.BigIntLike | - ts.TypeFlags.TypeParameter | - ts.TypeFlags.Any | - ts.TypeFlags.Unknown | - ts.TypeFlags.Never))) { - variantTypes.add('object'); - } - if (types.some(type => util.isTypeFlagSet(type, ts.TypeFlags.TypeParameter | - ts.TypeFlags.Any | - ts.TypeFlags.Unknown))) { - variantTypes.add('any'); - } - if (types.some(type => tsutils.isTypeFlagSet(type, ts.TypeFlags.Never))) { - variantTypes.add('never'); - } - return variantTypes; - } - }, -}); -function isLogicalNegationExpression(node) { - return node.type === utils_1.AST_NODE_TYPES.UnaryExpression && node.operator === '!'; -} -function isArrayLengthExpression(node, typeChecker, parserServices) { - if (node.type !== utils_1.AST_NODE_TYPES.MemberExpression) { - return false; - } - if (node.computed) { - return false; - } - if (node.property.name !== 'length') { - return false; - } - const objectTsNode = parserServices.esTreeNodeToTSNodeMap.get(node.object); - const objectType = util.getConstrainedTypeAtLocation(typeChecker, objectTsNode); - return util.isTypeArrayTypeOrUnionOfArrayTypes(objectType, typeChecker); -} -//# sourceMappingURL=strict-boolean-expressions.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map deleted file mode 100644 index 0e749a15..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/strict-boolean-expressions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"strict-boolean-expressions.js","sourceRoot":"","sources":["../../src/rules/strict-boolean-expressions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,iDAAmC;AACnC,+CAAiC;AAEjC,8CAAgC;AAyChC,kBAAe,IAAI,CAAC,UAAU,CAAqB;IACjD,IAAI,EAAE,4BAA4B;IAClC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,MAAM;QACf,cAAc,EAAE,IA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ACH,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,2BAA2B,CAClC,IAAmB;IAEnB,OAAO,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe,IAAI,IAAI,CAAC,QAAQ,KAAK,GAAG,CAAC;AAC/E,CAAC;AAED,SAAS,uBAAuB,CAC9B,IAAmB,EACnB,WAA2B,EAC3B,cAA8B;IAE9B,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAAE;QACjD,OAAO,KAAK,CAAC;KACd;IACD,IAAI,IAAI,CAAC,QAAQ,EAAE;QACjB,OAAO,KAAK,CAAC;KACd;IACD,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,KAAK,QAAQ,EAAE;QACnC,OAAO,KAAK,CAAC;KACd;IACD,MAAM,YAAY,GAAG,cAAc,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC3E,MAAM,UAAU,GAAG,IAAI,CAAC,4BAA4B,CAClD,WAAW,EACX,YAAY,CACb,CAAC;IACF,OAAO,IAAI,CAAC,kCAAkC,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;AAC1E,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js deleted file mode 100644 index 3d75d0e8..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js +++ /dev/null @@ -1,147 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const tsutils_1 = require("tsutils"); -const ts = __importStar(require("typescript")); -const util_1 = require("../util"); -exports.default = (0, util_1.createRule)({ - name: 'switch-exhaustiveness-check', - meta: { - type: 'suggestion', - docs: { - description: 'Require switch-case statements to be exhaustive with union type', - recommended: false, - requiresTypeChecking: true, - }, - hasSuggestions: true, - schema: [], - messages: { - switchIsNotExhaustive: 'Switch is not exhaustive. Cases not matched: {{missingBranches}}', - addMissingCases: 'Add branches for missing cases.', - }, - }, - defaultOptions: [], - create(context) { - const sourceCode = context.getSourceCode(); - const service = (0, util_1.getParserServices)(context); - const checker = service.program.getTypeChecker(); - const compilerOptions = service.program.getCompilerOptions(); - function getNodeType(node) { - const tsNode = service.esTreeNodeToTSNodeMap.get(node); - return (0, util_1.getConstrainedTypeAtLocation)(checker, tsNode); - } - function fixSwitch(fixer, node, missingBranchTypes, symbolName) { - var _a; - const lastCase = node.cases.length > 0 ? node.cases[node.cases.length - 1] : null; - const caseIndent = lastCase - ? ' '.repeat(lastCase.loc.start.column) - : // if there are no cases, use indentation of the switch statement - // and leave it to user to format it correctly - ' '.repeat(node.loc.start.column); - const missingCases = []; - for (const missingBranchType of missingBranchTypes) { - // While running this rule on checker.ts of TypeScript project - // the fix introduced a compiler error due to: - // - // type __String = (string & { - // __escapedIdentifier: void; - // }) | (void & { - // __escapedIdentifier: void; - // }) | InternalSymbolName; - // - // The following check fixes it. - if (missingBranchType.isIntersection()) { - continue; - } - const missingBranchName = (_a = missingBranchType.getSymbol()) === null || _a === void 0 ? void 0 : _a.escapedName; - let caseTest = checker.typeToString(missingBranchType); - if (symbolName && - (missingBranchName || missingBranchName === '') && - (0, util_1.requiresQuoting)(missingBranchName.toString(), compilerOptions.target)) { - caseTest = `${symbolName}['${missingBranchName}']`; - } - const errorMessage = `Not implemented yet: ${caseTest} case`; - missingCases.push(`case ${caseTest}: { throw new Error('${errorMessage}') }`); - } - const fixString = missingCases - .map(code => `${caseIndent}${code}`) - .join('\n'); - if (lastCase) { - return fixer.insertTextAfter(lastCase, `\n${fixString}`); - } - // there were no existing cases - const openingBrace = sourceCode.getTokenAfter(node.discriminant, util_1.isOpeningBraceToken); - const closingBrace = sourceCode.getTokenAfter(node.discriminant, util_1.isClosingBraceToken); - return fixer.replaceTextRange([openingBrace.range[0], closingBrace.range[1]], ['{', fixString, `${caseIndent}}`].join('\n')); - } - function checkSwitchExhaustive(node) { - var _a; - const discriminantType = getNodeType(node.discriminant); - const symbolName = (_a = discriminantType.getSymbol()) === null || _a === void 0 ? void 0 : _a.escapedName; - if (discriminantType.isUnion()) { - const unionTypes = (0, tsutils_1.unionTypeParts)(discriminantType); - const caseTypes = new Set(); - for (const switchCase of node.cases) { - if (switchCase.test == null) { - // Switch has 'default' branch - do nothing. - return; - } - caseTypes.add(getNodeType(switchCase.test)); - } - const missingBranchTypes = unionTypes.filter(unionType => !caseTypes.has(unionType)); - if (missingBranchTypes.length === 0) { - // All cases matched - do nothing. - return; - } - context.report({ - node: node.discriminant, - messageId: 'switchIsNotExhaustive', - data: { - missingBranches: missingBranchTypes - .map(missingType => { - var _a; - return (0, tsutils_1.isTypeFlagSet)(missingType, ts.TypeFlags.ESSymbolLike) - ? `typeof ${(_a = missingType.getSymbol()) === null || _a === void 0 ? void 0 : _a.escapedName}` - : checker.typeToString(missingType); - }) - .join(' | '), - }, - suggest: [ - { - messageId: 'addMissingCases', - fix(fixer) { - return fixSwitch(fixer, node, missingBranchTypes, symbolName === null || symbolName === void 0 ? void 0 : symbolName.toString()); - }, - }, - ], - }); - } - } - return { - SwitchStatement: checkSwitchExhaustive, - }; - }, -}); -//# sourceMappingURL=switch-exhaustiveness-check.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map deleted file mode 100644 index 05d6eb98..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/switch-exhaustiveness-check.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switch-exhaustiveness-check.js","sourceRoot":"","sources":["../../src/rules/switch-exhaustiveness-check.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,qCAAwD;AACxD,+CAAiC;AAEjC,kCAOiB;AAEjB,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,6BAA6B;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,iEAAiE;YACnE,WAAW,EAAE,KAAK;YAClB,oBAAoB,EAAE,IAAI;SAC3B;QACD,cAAc,EAAE,IAAI;QACpB,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE;YACR,qBAAqB,EACnB,kEAAkE;YACpE,eAAe,EAAE,iCAAiC;SACnD;KACF;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;QAC3C,MAAM,OAAO,GAAG,IAAA,wBAAiB,EAAC,OAAO,CAAC,CAAC;QAC3C,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QACjD,MAAM,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC;QAE7D,SAAS,WAAW,CAAC,IAAmB;YACtC,MAAM,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,C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No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js deleted file mode 100644 index 6e1a2f8a..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js +++ /dev/null @@ -1,129 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'triple-slash-reference', - meta: { - type: 'suggestion', - docs: { - description: 'Disallow certain triple slash directives in favor of ES6-style import declarations', - recommended: 'error', - }, - messages: { - tripleSlashReference: 'Do not use a triple slash reference for {{module}}, use `import` style instead.', - }, - schema: [ - { - type: 'object', - properties: { - lib: { - enum: ['always', 'never'], - }, - path: { - enum: ['always', 'never'], - }, - types: { - enum: ['always', 'never', 'prefer-import'], - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - { - lib: 'always', - path: 'never', - types: 'prefer-import', - }, - ], - create(context, [{ lib, path, types }]) { - let programNode; - const sourceCode = context.getSourceCode(); - const references = []; - function hasMatchingReference(source) { - references.forEach(reference => { - if (reference.importName === source.value) { - context.report({ - node: reference.comment, - messageId: 'tripleSlashReference', - data: { - module: reference.importName, - }, - }); - } - }); - } - return { - ImportDeclaration(node) { - if (programNode) { - hasMatchingReference(node.source); - } - }, - TSImportEqualsDeclaration(node) { - if (programNode) { - const reference = node.moduleReference; - if (reference.type === utils_1.AST_NODE_TYPES.TSExternalModuleReference) { - hasMatchingReference(reference.expression); - } - } - }, - Program(node) { - if (lib === 'always' && path === 'always' && types === 'always') { - return; - } - programNode = node; - const referenceRegExp = /^\/\s* { - if (comment.type !== utils_1.AST_TOKEN_TYPES.Line) { - return; - } - const referenceResult = referenceRegExp.exec(comment.value); - if (referenceResult) { - if ((referenceResult[1] === 'types' && types === 'never') || - (referenceResult[1] === 'path' && path === 'never') || - (referenceResult[1] === 'lib' && lib === 'never')) { - context.report({ - node: comment, - messageId: 'tripleSlashReference', - data: { - module: referenceResult[2], - }, - }); - return; - } - if (referenceResult[1] === 'types' && types === 'prefer-import') { - references.push({ comment, importName: referenceResult[2] }); - } - } - }); - }, - }; - }, -}); -//# sourceMappingURL=triple-slash-reference.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map deleted file mode 100644 index 1c99d4fa..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/triple-slash-reference.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"triple-slash-reference.js","sourceRoot":"","sources":["../../src/rules/triple-slash-reference.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA2E;AAE3E,8CAAgC;AAWhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EACT,o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C,KAAK,OAAO,IAAI,KAAK,KAAK,eAAe,EAAE;4BAC/D,UAAU,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;yBAC9D;qBACF;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js deleted file mode 100644 index a6372f52..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js +++ /dev/null @@ -1,243 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const util = __importStar(require("../util")); -const util_1 = require("../util"); -const definition = { - type: 'object', - properties: { - before: { type: 'boolean' }, - after: { type: 'boolean' }, - }, - additionalProperties: false, -}; -function createRules(options) { - var _a; - const globals = Object.assign(Object.assign({}, ((options === null || options === void 0 ? void 0 : options.before) !== undefined ? { before: options.before } : {})), ((options === null || options === void 0 ? void 0 : options.after) !== undefined ? { after: options.after } : {})); - const override = (_a = options === null || options === void 0 ? void 0 : options.overrides) !== null && _a !== void 0 ? _a : {}; - const colon = Object.assign(Object.assign({ before: false, after: true }, globals), override === null || override === void 0 ? void 0 : override.colon); - const arrow = Object.assign(Object.assign({ before: true, after: true }, globals), override === null || override === void 0 ? void 0 : override.arrow); - return { - colon: colon, - arrow: arrow, - variable: Object.assign(Object.assign({}, colon), override === null || override === void 0 ? void 0 : override.variable), - property: Object.assign(Object.assign({}, colon), override === null || override === void 0 ? void 0 : override.property), - parameter: Object.assign(Object.assign({}, colon), override === null || override === void 0 ? void 0 : override.parameter), - returnType: Object.assign(Object.assign({}, colon), override === null || override === void 0 ? void 0 : override.returnType), - }; -} -function getIdentifierRules(rules, node) { - const scope = node === null || node === void 0 ? void 0 : node.parent; - if ((0, util_1.isVariableDeclarator)(scope)) { - return rules.variable; - } - else if ((0, util_1.isFunctionOrFunctionType)(scope)) { - return rules.parameter; - } - else { - return rules.colon; - } -} -function getRules(rules, node) { - var _a; - const scope = (_a = node === null || node === void 0 ? void 0 : node.parent) === null || _a === void 0 ? void 0 : _a.parent; - if ((0, util_1.isTSFunctionType)(scope) || (0, util_1.isTSConstructorType)(scope)) { - return rules.arrow; - } - else if ((0, util_1.isIdentifier)(scope)) { - return getIdentifierRules(rules, scope); - } - else if ((0, util_1.isClassOrTypeElement)(scope)) { - return rules.property; - } - else if ((0, util_1.isFunction)(scope)) { - return rules.returnType; - } - else { - return rules.colon; - } -} -exports.default = util.createRule({ - name: 'type-annotation-spacing', - meta: { - type: 'layout', - docs: { - description: 'Require consistent spacing around type annotations', - recommended: false, - }, - fixable: 'whitespace', - messages: { - expectedSpaceAfter: "Expected a space after the '{{type}}'.", - expectedSpaceBefore: "Expected a space before the '{{type}}'.", - unexpectedSpaceAfter: "Unexpected space after the '{{type}}'.", - unexpectedSpaceBefore: "Unexpected space before the '{{type}}'.", - unexpectedSpaceBetween: "Unexpected space between the '{{previousToken}}' and the '{{type}}'.", - }, - schema: [ - { - type: 'object', - properties: { - before: { type: 'boolean' }, - after: { type: 'boolean' }, - overrides: { - type: 'object', - properties: { - colon: definition, - arrow: definition, - variable: definition, - parameter: definition, - property: definition, - returnType: definition, - }, - additionalProperties: false, - }, - }, - additionalProperties: false, - }, - ], - }, - defaultOptions: [ - // technically there is a default, but the overrides mean - // that if we apply them here, it will break the no override case. - {}, - ], - create(context, [options]) { - const punctuators = [':', '=>']; - const sourceCode = context.getSourceCode(); - const ruleSet = createRules(options); - /** - * Checks if there's proper spacing around type annotations (no space - * before colon, one space after). - */ - function checkTypeAnnotationSpacing(typeAnnotation) { - const nextToken = typeAnnotation; - const punctuatorTokenEnd = sourceCode.getTokenBefore(nextToken); - let punctuatorTokenStart = punctuatorTokenEnd; - let previousToken = sourceCode.getTokenBefore(punctuatorTokenEnd); - let type = punctuatorTokenEnd.value; - if (!punctuators.includes(type)) { - return; - } - const { before, after } = getRules(ruleSet, typeAnnotation); - if (type === ':' && previousToken.value === '?') { - if ( - // eslint-disable-next-line deprecation/deprecation -- TODO - switch once our min ESLint version is 6.7.0 - sourceCode.isSpaceBetweenTokens(previousToken, punctuatorTokenStart)) { - context.report({ - node: punctuatorTokenStart, - messageId: 'unexpectedSpaceBetween', - data: { - type, - previousToken: previousToken.value, - }, - fix(fixer) { - return fixer.removeRange([ - previousToken.range[1], - punctuatorTokenStart.range[0], - ]); - }, - }); - } - // shift the start to the ? - type = '?:'; - punctuatorTokenStart = previousToken; - previousToken = sourceCode.getTokenBefore(previousToken); - // handle the +/- modifiers for optional modification operators - if (previousToken.value === '+' || previousToken.value === '-') { - type = `${previousToken.value}?:`; - punctuatorTokenStart = previousToken; - previousToken = sourceCode.getTokenBefore(previousToken); - } - } - const previousDelta = punctuatorTokenStart.range[0] - previousToken.range[1]; - const nextDelta = nextToken.range[0] - punctuatorTokenEnd.range[1]; - if (after && nextDelta === 0) { - context.report({ - node: punctuatorTokenEnd, - messageId: 'expectedSpaceAfter', - data: { - type, - }, - fix(fixer) { - return fixer.insertTextAfter(punctuatorTokenEnd, ' '); - }, - }); - } - else if (!after && nextDelta > 0) { - context.report({ - node: punctuatorTokenEnd, - messageId: 'unexpectedSpaceAfter', - data: { - type, - }, - fix(fixer) { - return fixer.removeRange([ - punctuatorTokenEnd.range[1], - nextToken.range[0], - ]); - }, - }); - } - if (before && previousDelta === 0) { - context.report({ - node: punctuatorTokenStart, - messageId: 'expectedSpaceBefore', - data: { - type, - }, - fix(fixer) { - return fixer.insertTextAfter(previousToken, ' '); - }, - }); - } - else if (!before && previousDelta > 0) { - context.report({ - node: punctuatorTokenStart, - messageId: 'unexpectedSpaceBefore', - data: { - type, - }, - fix(fixer) { - return fixer.removeRange([ - previousToken.range[1], - punctuatorTokenStart.range[0], - ]); - }, - }); - } - } - return { - TSMappedType(node) { - if (node.typeAnnotation) { - checkTypeAnnotationSpacing(node.typeAnnotation); - } - }, - TSTypeAnnotation(node) { - checkTypeAnnotationSpacing(node.typeAnnotation); - }, - }; - }, -}); -//# sourceMappingURL=type-annotation-spacing.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js.map deleted file mode 100644 index 42009f4f..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/type-annotation-spacing.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"type-annotation-spacing.js","sourceRoot":"","sources":["../../src/rules/type-annotation-spacing.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,8CAAgC;AAChC,kCAQiB;AA8BjB,MAAM,UAAU,GAAG;IACjB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAC3B,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KAC3B;IACD,oBAAoB,EAAE,KAA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AE;wBACJ,IAAI;qBACL;oBACD,GAAG,CAAC,KAAK;wBACP,OAAO,KAAK,CAAC,WAAW,CAAC;4BACvB,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;4BACtB,oBAAoB,CAAC,KAAK,CAAC,CAAC,CAAC;yBAC9B,CAAC,CAAC;oBACL,CAAC;iBACF,CAAC,CAAC;aACJ;QACH,CAAC;QAED,OAAO;YACL,YAAY,CAAC,IAAI;gBACf,IAAI,IAAI,CAAC,cAAc,EAAE;oBACvB,0BAA0B,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;iBACjD;YACH,CAAC;YACD,gBAAgB,CAAC,IAAI;gBACnB,0BAA0B,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YAClD,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js deleted file mode 100644 index 1d8f2473..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js +++ /dev/null @@ -1,217 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'typedef', - meta: { - docs: { - description: 'Require type annotations in certain places', - recommended: false, - }, - messages: { - expectedTypedef: 'Expected a type annotation.', - expectedTypedefNamed: 'Expected {{name}} to have a type annotation.', - }, - schema: [ - { - type: 'object', - properties: { - ["arrayDestructuring" /* OptionKeys.ArrayDestructuring */]: { type: 'boolean' }, - ["arrowParameter" /* OptionKeys.ArrowParameter */]: { type: 'boolean' }, - ["memberVariableDeclaration" /* OptionKeys.MemberVariableDeclaration */]: { type: 'boolean' }, - ["objectDestructuring" /* OptionKeys.ObjectDestructuring */]: { type: 'boolean' }, - ["parameter" /* OptionKeys.Parameter */]: { type: 'boolean' }, - ["propertyDeclaration" /* OptionKeys.PropertyDeclaration */]: { type: 'boolean' }, - ["variableDeclaration" /* OptionKeys.VariableDeclaration */]: { type: 'boolean' }, - ["variableDeclarationIgnoreFunction" /* OptionKeys.VariableDeclarationIgnoreFunction */]: { type: 'boolean' }, - }, - }, - ], - type: 'suggestion', - }, - defaultOptions: [ - { - ["arrayDestructuring" /* OptionKeys.ArrayDestructuring */]: false, - ["arrowParameter" /* OptionKeys.ArrowParameter */]: false, - ["memberVariableDeclaration" /* OptionKeys.MemberVariableDeclaration */]: false, - ["objectDestructuring" /* OptionKeys.ObjectDestructuring */]: false, - ["parameter" /* OptionKeys.Parameter */]: false, - ["propertyDeclaration" /* OptionKeys.PropertyDeclaration */]: false, - ["variableDeclaration" /* OptionKeys.VariableDeclaration */]: false, - ["variableDeclarationIgnoreFunction" /* OptionKeys.VariableDeclarationIgnoreFunction */]: false, - }, - ], - create(context, [{ arrayDestructuring, arrowParameter, memberVariableDeclaration, objectDestructuring, parameter, propertyDeclaration, variableDeclaration, variableDeclarationIgnoreFunction, },]) { - function report(location, name) { - context.report({ - node: location, - messageId: name ? 'expectedTypedefNamed' : 'expectedTypedef', - data: { name }, - }); - } - function getNodeName(node) { - return node.type === utils_1.AST_NODE_TYPES.Identifier ? node.name : undefined; - } - function isForOfStatementContext(node) { - let current = node.parent; - while (current) { - switch (current.type) { - case utils_1.AST_NODE_TYPES.VariableDeclarator: - case utils_1.AST_NODE_TYPES.VariableDeclaration: - case utils_1.AST_NODE_TYPES.ObjectPattern: - case utils_1.AST_NODE_TYPES.ArrayPattern: - case utils_1.AST_NODE_TYPES.Property: - current = current.parent; - break; - case utils_1.AST_NODE_TYPES.ForOfStatement: - return true; - default: - current = undefined; - } - } - return false; - } - function checkParameters(params) { - for (const param of params) { - let annotationNode; - switch (param.type) { - case utils_1.AST_NODE_TYPES.AssignmentPattern: - annotationNode = param.left; - break; - case utils_1.AST_NODE_TYPES.TSParameterProperty: - annotationNode = param.parameter; - // Check TS parameter property with default value like `constructor(private param: string = 'something') {}` - if (annotationNode && - annotationNode.type === utils_1.AST_NODE_TYPES.AssignmentPattern) { - annotationNode = annotationNode.left; - } - break; - default: - annotationNode = param; - break; - } - if (annotationNode !== undefined && !annotationNode.typeAnnotation) { - report(param, getNodeName(param)); - } - } - } - function isVariableDeclarationIgnoreFunction(node) { - return (variableDeclarationIgnoreFunction === true && - (node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression || - node.type === utils_1.AST_NODE_TYPES.FunctionExpression)); - } - function isAncestorHasTypeAnnotation(node) { - let ancestor = node.parent; - while (ancestor) { - if ((ancestor.type === utils_1.AST_NODE_TYPES.ObjectPattern || - ancestor.type === utils_1.AST_NODE_TYPES.ArrayPattern) && - ancestor.typeAnnotation) { - return true; - } - ancestor = ancestor.parent; - } - return false; - } - return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (arrayDestructuring && { - ArrayPattern(node) { - var _a, _b; - if (((_a = node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.RestElement && - node.parent.typeAnnotation) { - return; - } - if (!node.typeAnnotation && - !isForOfStatementContext(node) && - !isAncestorHasTypeAnnotation(node) && - ((_b = node.parent) === null || _b === void 0 ? void 0 : _b.type) !== utils_1.AST_NODE_TYPES.AssignmentExpression) { - report(node); - } - }, - })), (arrowParameter && { - ArrowFunctionExpression(node) { - checkParameters(node.params); - }, - })), (memberVariableDeclaration && { - PropertyDefinition(node) { - if (!(node.value && isVariableDeclarationIgnoreFunction(node.value)) && - !node.typeAnnotation) { - report(node, node.key.type === utils_1.AST_NODE_TYPES.Identifier - ? node.key.name - : undefined); - } - }, - })), (parameter && { - 'FunctionDeclaration, FunctionExpression'(node) { - checkParameters(node.params); - }, - })), (objectDestructuring && { - ObjectPattern(node) { - if (!node.typeAnnotation && - !isForOfStatementContext(node) && - !isAncestorHasTypeAnnotation(node)) { - report(node); - } - }, - })), (propertyDeclaration && { - 'TSIndexSignature, TSPropertySignature'(node) { - if (!node.typeAnnotation) { - report(node, node.type === utils_1.AST_NODE_TYPES.TSPropertySignature - ? getNodeName(node.key) - : undefined); - } - }, - })), { VariableDeclarator(node) { - if (!variableDeclaration || - node.id.typeAnnotation || - (node.id.type === utils_1.AST_NODE_TYPES.ArrayPattern && - !arrayDestructuring) || - (node.id.type === utils_1.AST_NODE_TYPES.ObjectPattern && - !objectDestructuring) || - (node.init && isVariableDeclarationIgnoreFunction(node.init))) { - return; - } - let current = node.parent; - while (current) { - switch (current.type) { - case utils_1.AST_NODE_TYPES.VariableDeclaration: - // Keep looking upwards - current = current.parent; - break; - case utils_1.AST_NODE_TYPES.ForOfStatement: - case utils_1.AST_NODE_TYPES.ForInStatement: - // Stop traversing and don't report an error - return; - default: - // Stop traversing - current = undefined; - break; - } - } - report(node, getNodeName(node.id)); - } }); - }, -}); -//# sourceMappingURL=typedef.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js.map deleted file mode 100644 index 60872c57..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/typedef.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"typedef.js","sourceRoot":"","sources":["../../src/rules/typedef.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AAiBhC,kBAAe,IAAI,CAAC,UAAU,CAAwB;IACpD,IAAI,EAAE,SAAS;IACf,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EAAE,4CAA4C;YACzD,WAAW,EAAE,KAAK;SACnB;QACD,QAAQ,EAAE;YACR,eAAe,EAAE,6BAA6B;YAC9C,oBAAoB,EAAE,8CAA8C;SACrE;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,0DAA+B,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBACpD,kDAA2B,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBAChD,wEAAsC,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBAC3D,4DAAgC,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBACrD,wCAAsB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBAC3C,4DAAgC,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBACrD,4DAAgC,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBACrD,wFAA8C,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;iBACpE;aACF;SACF;QACD,IAAI,EAAE,YAAY;KACnB;IACD,cAAc,EAAE;QACd;YACE,0DAA+B,EAAE,KAAK;YACtC,kDAA2B,EAAE,KAAK;YAClC,wEAAsC,EAAE,KAAK;YAC7C,4DAAgC,EAAE,KAAK;YACvC,wCAAsB,EAAE,KAAK;YAC7B,4DAAgC,EAAE,KAAK;YACvC,4DAAgC,EAAE,KAAK;YACvC,wFAA8C,EAAE,KAAK;SACtD;KACF;IACD,MAAM,CACJ,OAAO,EACP,CACE,EACE,kBAAkB,EAClB,cAAc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CAAC,IAAI,CAAC,cAAc,EAAE;oBACxB,MAAM,CACJ,IAAI,EACJ,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,mBAAmB;wBAC9C,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC;wBACvB,CAAC,CAAC,SAAS,CACd,CAAC;iBACH;YACH,CAAC;SACF,CAAC,KACF,kBAAkB,CAAC,IAAI;gBACrB,IACE,CAAC,mBAAmB;oBACpB,IAAI,CAAC,EAAE,CAAC,cAAc;oBACtB,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,sBAAc,CAAC,YAAY;wBAC3C,CAAC,kBAAkB,CAAC;oBACtB,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,sBAAc,CAAC,aAAa;wBAC5C,CAAC,mBAAmB,CAAC;oBACvB,CAAC,IAAI,CAAC,IAAI,IAAI,mCAAmC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAC7D;oBACA,OAAO;iBACR;gBAED,IAAI,OAAO,GAA8B,IAAI,CAAC,MAAM,CAAC;gBACrD,OAAO,OAAO,EAAE;oBACd,QAAQ,OAAO,CAAC,IAAI,EAAE;wBACpB,KAAK,sBAAc,CAAC,mBAAmB;4BACrC,uBAAuB;4BACvB,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;4BACzB,MAAM;wBACR,KAAK,sBAAc,CAAC,cAAc,CAAC;wBACnC,KAAK,sBAAc,CAAC,cAAc;4BAChC,4CAA4C;4BAC5C,OAAO;wBACT;4BACE,kBAAkB;4BAClB,OAAO,GAAG,SAAS,CAAC;4BACpB,MAAM;qBACT;iBACF;gBAED,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;YACrC,CAAC,IACD;IACJ,CAAC;CACF,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js deleted file mode 100644 index 98d9c15c..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js +++ /dev/null @@ -1,287 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const tsutils = __importStar(require("tsutils")); -const ts = __importStar(require("typescript")); -const util = __importStar(require("../util")); -const util_1 = require("../util"); -/** - * The following is a list of exceptions to the rule - * Generated via the following script. - * This is statically defined to save making purposely invalid calls every lint run - * ``` -SUPPORTED_GLOBALS.flatMap(namespace => { - const object = window[namespace]; - return Object.getOwnPropertyNames(object) - .filter( - name => - !name.startsWith('_') && - typeof object[name] === 'function', - ) - .map(name => { - try { - const x = object[name]; - x(); - } catch (e) { - if (e.message.includes("called on non-object")) { - return `${namespace}.${name}`; - } - } - }); -}).filter(Boolean); - * ``` - */ -const nativelyNotBoundMembers = new Set([ - 'Promise.all', - 'Promise.race', - 'Promise.resolve', - 'Promise.reject', - 'Promise.allSettled', - 'Object.defineProperties', - 'Object.defineProperty', - 'Reflect.defineProperty', - 'Reflect.deleteProperty', - 'Reflect.get', - 'Reflect.getOwnPropertyDescriptor', - 'Reflect.getPrototypeOf', - 'Reflect.has', - 'Reflect.isExtensible', - 'Reflect.ownKeys', - 'Reflect.preventExtensions', - 'Reflect.set', - 'Reflect.setPrototypeOf', -]); -const SUPPORTED_GLOBALS = [ - 'Number', - 'Object', - 'String', - 'RegExp', - 'Symbol', - 'Array', - 'Proxy', - 'Date', - 'Infinity', - 'Atomics', - 'Reflect', - 'console', - 'Math', - 'JSON', - 'Intl', -]; -const nativelyBoundMembers = SUPPORTED_GLOBALS.map(namespace => { - if (!(namespace in global)) { - // node.js might not have namespaces like Intl depending on compilation options - // https://nodejs.org/api/intl.html#intl_options_for_building_node_js - return []; - } - const object = global[namespace]; - return Object.getOwnPropertyNames(object) - .filter(name => !name.startsWith('_') && - typeof object[name] === 'function') - .map(name => `${namespace}.${name}`); -}) - .reduce((arr, names) => arr.concat(names), []) - .filter(name => !nativelyNotBoundMembers.has(name)); -const isNotImported = (symbol, currentSourceFile) => { - const { valueDeclaration } = symbol; - if (!valueDeclaration) { - // working around https://github.com/microsoft/TypeScript/issues/31294 - return false; - } - return (!!currentSourceFile && - currentSourceFile !== valueDeclaration.getSourceFile()); -}; -const getNodeName = (node) => node.type === utils_1.AST_NODE_TYPES.Identifier ? node.name : null; -const getMemberFullName = (node) => `${getNodeName(node.object)}.${getNodeName(node.property)}`; -const BASE_MESSAGE = 'Avoid referencing unbound methods which may cause unintentional scoping of `this`.'; -exports.default = util.createRule({ - name: 'unbound-method', - meta: { - docs: { - description: 'Enforce unbound methods are called with their expected scope', - recommended: 'error', - requiresTypeChecking: true, - }, - messages: { - unbound: BASE_MESSAGE, - unboundWithoutThisAnnotation: BASE_MESSAGE + - '\n' + - 'If your function does not access `this`, you can annotate it with `this: void`, or consider using an arrow function instead.', - }, - schema: [ - { - type: 'object', - properties: { - ignoreStatic: { - description: 'Whether to skip checking whether `static` methods are correctly bound.', - type: 'boolean', - }, - }, - additionalProperties: false, - }, - ], - type: 'problem', - }, - defaultOptions: [ - { - ignoreStatic: false, - }, - ], - create(context, [{ ignoreStatic }]) { - const parserServices = util.getParserServices(context); - const checker = parserServices.program.getTypeChecker(); - const currentSourceFile = parserServices.program.getSourceFile(context.getFilename()); - function checkMethodAndReport(node, symbol) { - if (!symbol) { - return; - } - const { dangerous, firstParamIsThis } = checkMethod(symbol, ignoreStatic); - if (dangerous) { - context.report({ - messageId: firstParamIsThis === false - ? 'unboundWithoutThisAnnotation' - : 'unbound', - node, - }); - } - } - return { - MemberExpression(node) { - if (isSafeUse(node)) { - return; - } - const objectSymbol = checker.getSymbolAtLocation(parserServices.esTreeNodeToTSNodeMap.get(node.object)); - if (objectSymbol && - nativelyBoundMembers.includes(getMemberFullName(node)) && - isNotImported(objectSymbol, currentSourceFile)) { - return; - } - const originalNode = parserServices.esTreeNodeToTSNodeMap.get(node); - checkMethodAndReport(node, checker.getSymbolAtLocation(originalNode)); - }, - 'VariableDeclarator, AssignmentExpression'(node) { - const [idNode, initNode] = node.type === utils_1.AST_NODE_TYPES.VariableDeclarator - ? [node.id, node.init] - : [node.left, node.right]; - if (initNode && idNode.type === utils_1.AST_NODE_TYPES.ObjectPattern) { - const tsNode = parserServices.esTreeNodeToTSNodeMap.get(initNode); - const rightSymbol = checker.getSymbolAtLocation(tsNode); - const initTypes = checker.getTypeAtLocation(tsNode); - const notImported = rightSymbol && isNotImported(rightSymbol, currentSourceFile); - idNode.properties.forEach(property => { - if (property.type === utils_1.AST_NODE_TYPES.Property && - property.key.type === utils_1.AST_NODE_TYPES.Identifier) { - if (notImported && - util.isIdentifier(initNode) && - nativelyBoundMembers.includes(`${initNode.name}.${property.key.name}`)) { - return; - } - checkMethodAndReport(property.key, initTypes.getProperty(property.key.name)); - } - }); - } - }, - }; - }, -}); -function checkMethod(symbol, ignoreStatic) { - var _a, _b; - const { valueDeclaration } = symbol; - if (!valueDeclaration) { - // working around https://github.com/microsoft/TypeScript/issues/31294 - return { dangerous: false }; - } - switch (valueDeclaration.kind) { - case ts.SyntaxKind.PropertyDeclaration: - return { - dangerous: ((_a = valueDeclaration.initializer) === null || _a === void 0 ? void 0 : _a.kind) === - ts.SyntaxKind.FunctionExpression, - }; - case ts.SyntaxKind.MethodDeclaration: - case ts.SyntaxKind.MethodSignature: { - const decl = valueDeclaration; - const firstParam = decl.parameters[0]; - const firstParamIsThis = (firstParam === null || firstParam === void 0 ? void 0 : firstParam.name.kind) === ts.SyntaxKind.Identifier && - (firstParam === null || firstParam === void 0 ? void 0 : firstParam.name.escapedText) === 'this'; - const thisArgIsVoid = firstParamIsThis && - ((_b = firstParam === null || firstParam === void 0 ? void 0 : firstParam.type) === null || _b === void 0 ? void 0 : _b.kind) === ts.SyntaxKind.VoidKeyword; - return { - dangerous: !thisArgIsVoid && - !(ignoreStatic && - tsutils.hasModifier((0, util_1.getModifiers)(valueDeclaration), ts.SyntaxKind.StaticKeyword)), - firstParamIsThis, - }; - } - } - return { dangerous: false }; -} -function isSafeUse(node) { - const parent = node.parent; - switch (parent === null || parent === void 0 ? void 0 : parent.type) { - case utils_1.AST_NODE_TYPES.IfStatement: - case utils_1.AST_NODE_TYPES.ForStatement: - case utils_1.AST_NODE_TYPES.MemberExpression: - case utils_1.AST_NODE_TYPES.SwitchStatement: - case utils_1.AST_NODE_TYPES.UpdateExpression: - case utils_1.AST_NODE_TYPES.WhileStatement: - return true; - case utils_1.AST_NODE_TYPES.CallExpression: - return parent.callee === node; - case utils_1.AST_NODE_TYPES.ConditionalExpression: - return parent.test === node; - case utils_1.AST_NODE_TYPES.TaggedTemplateExpression: - return parent.tag === node; - case utils_1.AST_NODE_TYPES.UnaryExpression: - // the first case is safe for obvious - // reasons. The second one is also fine - // since we're returning something falsy - return ['typeof', '!', 'void', 'delete'].includes(parent.operator); - case utils_1.AST_NODE_TYPES.BinaryExpression: - return ['instanceof', '==', '!=', '===', '!=='].includes(parent.operator); - case utils_1.AST_NODE_TYPES.AssignmentExpression: - return (parent.operator === '=' && - (node === parent.left || - (node.type === utils_1.AST_NODE_TYPES.MemberExpression && - node.object.type === utils_1.AST_NODE_TYPES.Super && - parent.left.type === utils_1.AST_NODE_TYPES.MemberExpression && - parent.left.object.type === utils_1.AST_NODE_TYPES.ThisExpression))); - case utils_1.AST_NODE_TYPES.ChainExpression: - case utils_1.AST_NODE_TYPES.TSNonNullExpression: - case utils_1.AST_NODE_TYPES.TSAsExpression: - case utils_1.AST_NODE_TYPES.TSTypeAssertion: - return isSafeUse(parent); - case utils_1.AST_NODE_TYPES.LogicalExpression: - if (parent.operator === '&&' && parent.left === node) { - // this is safe, as && will return the left if and only if it's falsy - return true; - } - // in all other cases, it's likely the logical expression will return the method ref - // so make sure the parent is a safe usage - return isSafeUse(parent); - } - return false; -} -//# sourceMappingURL=unbound-method.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map deleted file mode 100644 index 4cc46f89..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unbound-method.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"unbound-method.js","sourceRoot":"","sources":["../../src/rules/unbound-method.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAC1D,iDAAmC;AACnC,+CAAiC;AAEjC,8CAAgC;AAChC,kCAAuC;AAcvC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC;IACtC,aAAa;IACb,cAAc;IACd,iBAAiB;IACjB,gBAAgB;IAChB,oBAAoB;IACpB,yBAAyB;IACzB,uBAAuB;IACvB,wBAAwB;IACxB,wBAAwB;IACxB,aAAa;IACb,kCAAkC;IAClC,wBAAwB;IACxB,aAAa;IACb,sBAAsB;IACtB,iBAAiB;IACjB,2BAA2B;IAC3B,aAAa;IACb,wBAAwB;CACzB,CAAC,CAAC;AACH,MAAM,iBAAiB,GAAG;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Ac,CAAC,cAAc,CAAC;QACnC,KAAK,sBAAc,CAAC,eAAe;YACjC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;QAE3B,KAAK,sBAAc,CAAC,iBAAiB;YACnC,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI,EAAE;gBACpD,qEAAqE;gBACrE,OAAO,IAAI,CAAC;aACb;YAED,oFAAoF;YACpF,0CAA0C;YAC1C,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC;KAC5B;IAED,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js deleted file mode 100644 index 1c7de7cd..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js +++ /dev/null @@ -1,425 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -const utils_1 = require("@typescript-eslint/utils"); -const util = __importStar(require("../util")); -exports.default = util.createRule({ - name: 'unified-signatures', - meta: { - docs: { - description: 'Disallow two overloads that could be unified into one with a union or an optional/rest parameter', - // too opinionated to be recommended - recommended: 'strict', - }, - type: 'suggestion', - messages: { - omittingRestParameter: '{{failureStringStart}} with a rest parameter.', - omittingSingleParameter: '{{failureStringStart}} with an optional parameter.', - singleParameterDifference: '{{failureStringStart}} taking `{{type1}} | {{type2}}`.', - }, - schema: [ - { - additionalProperties: false, - properties: { - ignoreDifferentlyNamedParameters: { - description: 'Whether two parameters with different names at the same index should be considered different even if their types are the same.', - type: 'boolean', - }, - }, - type: 'object', - }, - ], - }, - defaultOptions: [ - { - ignoreDifferentlyNamedParameters: false, - }, - ], - create(context, [{ ignoreDifferentlyNamedParameters }]) { - const sourceCode = context.getSourceCode(); - //---------------------------------------------------------------------- - // Helpers - //---------------------------------------------------------------------- - function failureStringStart(otherLine) { - // For only 2 overloads we don't need to specify which is the other one. - const overloads = otherLine === undefined - ? 'These overloads' - : `This overload and the one on line ${otherLine}`; - return `${overloads} can be combined into one signature`; - } - function addFailures(failures) { - for (const failure of failures) { - const { unify, only2 } = failure; - switch (unify.kind) { - case 'single-parameter-difference': { - const { p0, p1 } = unify; - const lineOfOtherOverload = only2 ? undefined : p0.loc.start.line; - const typeAnnotation0 = isTSParameterProperty(p0) - ? p0.parameter.typeAnnotation - : p0.typeAnnotation; - const typeAnnotation1 = isTSParameterProperty(p1) - ? p1.parameter.typeAnnotation - : p1.typeAnnotation; - context.report({ - loc: p1.loc, - messageId: 'singleParameterDifference', - data: { - failureStringStart: failureStringStart(lineOfOtherOverload), - type1: sourceCode.getText(typeAnnotation0 === null || typeAnnotation0 === void 0 ? void 0 : typeAnnotation0.typeAnnotation), - type2: sourceCode.getText(typeAnnotation1 === null || typeAnnotation1 === void 0 ? void 0 : typeAnnotation1.typeAnnotation), - }, - node: p1, - }); - break; - } - case 'extra-parameter': { - const { extraParameter, otherSignature } = unify; - const lineOfOtherOverload = only2 - ? undefined - : otherSignature.loc.start.line; - context.report({ - loc: extraParameter.loc, - messageId: extraParameter.type === utils_1.AST_NODE_TYPES.RestElement - ? 'omittingRestParameter' - : 'omittingSingleParameter', - data: { - failureStringStart: failureStringStart(lineOfOtherOverload), - }, - node: extraParameter, - }); - } - } - } - } - function checkOverloads(signatures, typeParameters) { - const result = []; - const isTypeParameter = getIsTypeParameter(typeParameters); - for (const overloads of signatures) { - forEachPair(overloads, (a, b) => { - var _a, _b; - const signature0 = (_a = a.value) !== null && _a !== void 0 ? _a : a; - const signature1 = (_b = b.value) !== null && _b !== void 0 ? _b : b; - const unify = compareSignatures(signature0, signature1, isTypeParameter); - if (unify !== undefined) { - result.push({ unify, only2: overloads.length === 2 }); - } - }); - } - return result; - } - function compareSignatures(a, b, isTypeParameter) { - if (!signaturesCanBeUnified(a, b, isTypeParameter)) { - return undefined; - } - return a.params.length === b.params.length - ? signaturesDifferBySingleParameter(a.params, b.params) - : signaturesDifferByOptionalOrRestParameter(a, b); - } - function signaturesCanBeUnified(a, b, isTypeParameter) { - // Must return the same type. - const aTypeParams = a.typeParameters !== undefined ? a.typeParameters.params : undefined; - const bTypeParams = b.typeParameters !== undefined ? b.typeParameters.params : undefined; - if (ignoreDifferentlyNamedParameters) { - const commonParamsLength = Math.min(a.params.length, b.params.length); - for (let i = 0; i < commonParamsLength; i += 1) { - if (a.params[i].type === b.params[i].type && - getStaticParameterName(a.params[i]) !== - getStaticParameterName(b.params[i])) { - return false; - } - } - } - return (typesAreEqual(a.returnType, b.returnType) && - // Must take the same type parameters. - // If one uses a type parameter (from outside) and the other doesn't, they shouldn't be joined. - util.arraysAreEqual(aTypeParams, bTypeParams, typeParametersAreEqual) && - signatureUsesTypeParameter(a, isTypeParameter) === - signatureUsesTypeParameter(b, isTypeParameter)); - } - /** Detect `a(x: number, y: number, z: number)` and `a(x: number, y: string, z: number)`. */ - function signaturesDifferBySingleParameter(types1, types2) { - const index = getIndexOfFirstDifference(types1, types2, parametersAreEqual); - if (index === undefined) { - return undefined; - } - // If remaining arrays are equal, the signatures differ by just one parameter type - if (!util.arraysAreEqual(types1.slice(index + 1), types2.slice(index + 1), parametersAreEqual)) { - return undefined; - } - const a = types1[index]; - const b = types2[index]; - // Can unify `a?: string` and `b?: number`. Can't unify `...args: string[]` and `...args: number[]`. - // See https://github.com/Microsoft/TypeScript/issues/5077 - return parametersHaveEqualSigils(a, b) && - a.type !== utils_1.AST_NODE_TYPES.RestElement - ? { kind: 'single-parameter-difference', p0: a, p1: b } - : undefined; - } - /** - * Detect `a(): void` and `a(x: number): void`. - * Returns the parameter declaration (`x: number` in this example) that should be optional/rest, and overload it's a part of. - */ - function signaturesDifferByOptionalOrRestParameter(a, b) { - const sig1 = a.params; - const sig2 = b.params; - const minLength = Math.min(sig1.length, sig2.length); - const longer = sig1.length < sig2.length ? sig2 : sig1; - const shorter = sig1.length < sig2.length ? sig1 : sig2; - const shorterSig = sig1.length < sig2.length ? a : b; - // If one is has 2+ parameters more than the other, they must all be optional/rest. - // Differ by optional parameters: f() and f(x), f() and f(x, ?y, ...z) - // Not allowed: f() and f(x, y) - for (let i = minLength + 1; i < longer.length; i++) { - if (!parameterMayBeMissing(longer[i])) { - return undefined; - } - } - for (let i = 0; i < minLength; i++) { - const sig1i = sig1[i]; - const sig2i = sig2[i]; - const typeAnnotation1 = isTSParameterProperty(sig1i) - ? sig1i.parameter.typeAnnotation - : sig1i.typeAnnotation; - const typeAnnotation2 = isTSParameterProperty(sig2i) - ? sig2i.parameter.typeAnnotation - : sig2i.typeAnnotation; - if (!typesAreEqual(typeAnnotation1, typeAnnotation2)) { - return undefined; - } - } - if (minLength > 0 && - shorter[minLength - 1].type === utils_1.AST_NODE_TYPES.RestElement) { - return undefined; - } - return { - extraParameter: longer[longer.length - 1], - kind: 'extra-parameter', - otherSignature: shorterSig, - }; - } - /** Given type parameters, returns a function to test whether a type is one of those parameters. */ - function getIsTypeParameter(typeParameters) { - if (typeParameters === undefined) { - return (() => false); - } - const set = new Set(); - for (const t of typeParameters.params) { - set.add(t.name.name); - } - return (typeName => set.has(typeName)); - } - /** True if any of the outer type parameters are used in a signature. */ - function signatureUsesTypeParameter(sig, isTypeParameter) { - return sig.params.some((p) => typeContainsTypeParameter(isTSParameterProperty(p) - ? p.parameter.typeAnnotation - : p.typeAnnotation)); - function typeContainsTypeParameter(type) { - if (!type) { - return false; - } - if (type.type === utils_1.AST_NODE_TYPES.TSTypeReference) { - const typeName = type.typeName; - if (isIdentifier(typeName) && isTypeParameter(typeName.name)) { - return true; - } - } - return typeContainsTypeParameter(type.typeAnnotation || - type.elementType); - } - } - function isTSParameterProperty(node) { - return (node.type === - utils_1.AST_NODE_TYPES.TSParameterProperty); - } - function parametersAreEqual(a, b) { - const typeAnnotationA = isTSParameterProperty(a) - ? a.parameter.typeAnnotation - : a.typeAnnotation; - const typeAnnotationB = isTSParameterProperty(b) - ? b.parameter.typeAnnotation - : b.typeAnnotation; - return (parametersHaveEqualSigils(a, b) && - typesAreEqual(typeAnnotationA, typeAnnotationB)); - } - /** True for optional/rest parameters. */ - function parameterMayBeMissing(p) { - const optional = isTSParameterProperty(p) - ? p.parameter.optional - : p.optional; - return p.type === utils_1.AST_NODE_TYPES.RestElement || optional; - } - /** False if one is optional and the other isn't, or one is a rest parameter and the other isn't. */ - function parametersHaveEqualSigils(a, b) { - const optionalA = isTSParameterProperty(a) - ? a.parameter.optional - : a.optional; - const optionalB = isTSParameterProperty(b) - ? b.parameter.optional - : b.optional; - return ((a.type === utils_1.AST_NODE_TYPES.RestElement) === - (b.type === utils_1.AST_NODE_TYPES.RestElement) && - (optionalA !== undefined) === (optionalB !== undefined)); - } - function typeParametersAreEqual(a, b) { - return (a.name.name === b.name.name && - constraintsAreEqual(a.constraint, b.constraint)); - } - function typesAreEqual(a, b) { - return (a === b || - (a !== undefined && - b !== undefined && - sourceCode.getText(a.typeAnnotation) === - sourceCode.getText(b.typeAnnotation))); - } - function constraintsAreEqual(a, b) { - return (a === b || (a !== undefined && b !== undefined && a.type === b.type)); - } - /* Returns the first index where `a` and `b` differ. */ - function getIndexOfFirstDifference(a, b, equal) { - for (let i = 0; i < a.length && i < b.length; i++) { - if (!equal(a[i], b[i])) { - return i; - } - } - return undefined; - } - /** Calls `action` for every pair of values in `values`. */ - function forEachPair(values, action) { - for (let i = 0; i < values.length; i++) { - for (let j = i + 1; j < values.length; j++) { - action(values[i], values[j]); - } - } - } - const scopes = []; - let currentScope = { - overloads: new Map(), - }; - function createScope(parent, typeParameters) { - currentScope && scopes.push(currentScope); - currentScope = { - overloads: new Map(), - parent, - typeParameters, - }; - } - function checkScope() { - const failures = checkOverloads(Array.from(currentScope.overloads.values()), currentScope.typeParameters); - addFailures(failures); - currentScope = scopes.pop(); - } - function addOverload(signature, key, containingNode) { - key = key !== null && key !== void 0 ? key : getOverloadKey(signature); - if (currentScope && - (containingNode || signature).parent === currentScope.parent) { - const overloads = currentScope.overloads.get(key); - if (overloads !== undefined) { - overloads.push(signature); - } - else { - currentScope.overloads.set(key, [signature]); - } - } - } - //---------------------------------------------------------------------- - // Public - //---------------------------------------------------------------------- - return { - Program: createScope, - TSModuleBlock: createScope, - TSInterfaceDeclaration(node) { - createScope(node.body, node.typeParameters); - }, - ClassDeclaration(node) { - createScope(node.body, node.typeParameters); - }, - TSTypeLiteral: createScope, - // collect overloads - TSDeclareFunction(node) { - var _a, _b; - const exportingNode = getExportingNode(node); - addOverload(node, (_b = (_a = node.id) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : exportingNode === null || exportingNode === void 0 ? void 0 : exportingNode.type, exportingNode); - }, - TSCallSignatureDeclaration: addOverload, - TSConstructSignatureDeclaration: addOverload, - TSMethodSignature: addOverload, - TSAbstractMethodDefinition(node) { - if (!node.value.body) { - addOverload(node); - } - }, - MethodDefinition(node) { - if (!node.value.body) { - addOverload(node); - } - }, - // validate scopes - 'Program:exit': checkScope, - 'TSModuleBlock:exit': checkScope, - 'TSInterfaceDeclaration:exit': checkScope, - 'ClassDeclaration:exit': checkScope, - 'TSTypeLiteral:exit': checkScope, - }; - }, -}); -function getExportingNode(node) { - return node.parent && - (node.parent.type === utils_1.AST_NODE_TYPES.ExportNamedDeclaration || - node.parent.type === utils_1.AST_NODE_TYPES.ExportDefaultDeclaration) - ? node.parent - : undefined; -} -function getOverloadKey(node) { - const info = getOverloadInfo(node); - return ((node.computed ? '0' : '1') + - (node.static ? '0' : '1') + - info); -} -function getOverloadInfo(node) { - switch (node.type) { - case utils_1.AST_NODE_TYPES.TSConstructSignatureDeclaration: - return 'constructor'; - case utils_1.AST_NODE_TYPES.TSCallSignatureDeclaration: - return '()'; - default: { - const { key } = node; - return isIdentifier(key) ? key.name : key.raw; - } - } -} -function getStaticParameterName(param) { - switch (param.type) { - case utils_1.AST_NODE_TYPES.Identifier: - return param.name; - case utils_1.AST_NODE_TYPES.RestElement: - return getStaticParameterName(param.argument); - default: - return undefined; - } -} -function isIdentifier(node) { - return node.type === utils_1.AST_NODE_TYPES.Identifier; -} -//# sourceMappingURL=unified-signatures.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map deleted file mode 100644 index aef94ab0..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"unified-signatures.js","sourceRoot":"","sources":["../../src/rules/unified-signatures.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAgC;AA4DhC,kBAAe,IAAI,CAAC,UAAU,CAAsB;IAClD,IAAI,EAAE,oBAAoB;IAC1B,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,WAAW,EACT,kGAAkG;YACpG,oCAAoC;YACpC,WAAW,EAAE,QAAQ;SACtB;QACD,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE;YACR,qBAAqB,EAAE,+CAA+C;YACtE,uBAAuB,EACrB,oDAAoD;YACtD,yB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,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,CAAC;AACjD,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js deleted file mode 100644 index f3773ff8..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js +++ /dev/null @@ -1,89 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.forEachReturnStatement = exports.getNameLocationInGlobalDirectiveComment = void 0; -const ts = __importStar(require("typescript")); -const escapeRegExp_1 = require("./escapeRegExp"); -// deeply re-export, for convenience -__exportStar(require("@typescript-eslint/utils/dist/ast-utils"), exports); -// The following is copied from `eslint`'s source code since it doesn't exist in eslint@5. -// https://github.com/eslint/eslint/blob/145aec1ab9052fbca96a44d04927c595951b1536/lib/rules/utils/ast-utils.js#L1751-L1779 -// Could be export { getNameLocationInGlobalDirectiveComment } from 'eslint/lib/rules/utils/ast-utils' -/** - * Get the `loc` object of a given name in a `/*globals` directive comment. - * @param {SourceCode} sourceCode The source code to convert index to loc. - * @param {Comment} comment The `/*globals` directive comment which include the name. - * @param {string} name The name to find. - * @returns {SourceLocation} The `loc` object. - */ -function getNameLocationInGlobalDirectiveComment(sourceCode, comment, name) { - const namePattern = new RegExp(`[\\s,]${(0, escapeRegExp_1.escapeRegExp)(name)}(?:$|[\\s,:])`, 'gu'); - // To ignore the first text "global". - namePattern.lastIndex = comment.value.indexOf('global') + 6; - // Search a given variable name. - const match = namePattern.exec(comment.value); - // Convert the index to loc. - const start = sourceCode.getLocFromIndex(comment.range[0] + '/*'.length + (match ? match.index + 1 : 0)); - const end = { - line: start.line, - column: start.column + (match ? name.length : 1), - }; - return { start, end }; -} -exports.getNameLocationInGlobalDirectiveComment = getNameLocationInGlobalDirectiveComment; -// Copied from typescript https://github.com/microsoft/TypeScript/blob/42b0e3c4630c129ca39ce0df9fff5f0d1b4dd348/src/compiler/utilities.ts#L1335 -// Warning: This has the same semantics as the forEach family of functions, -// in that traversal terminates in the event that 'visitor' supplies a truthy value. -function forEachReturnStatement(body, visitor) { - return traverse(body); - function traverse(node) { - switch (node.kind) { - case ts.SyntaxKind.ReturnStatement: - return visitor(node); - case ts.SyntaxKind.CaseBlock: - case ts.SyntaxKind.Block: - case ts.SyntaxKind.IfStatement: - case ts.SyntaxKind.DoStatement: - case ts.SyntaxKind.WhileStatement: - case ts.SyntaxKind.ForStatement: - case ts.SyntaxKind.ForInStatement: - case ts.SyntaxKind.ForOfStatement: - case ts.SyntaxKind.WithStatement: - case ts.SyntaxKind.SwitchStatement: - case ts.SyntaxKind.CaseClause: - case ts.SyntaxKind.DefaultClause: - case ts.SyntaxKind.LabeledStatement: - case ts.SyntaxKind.TryStatement: - case ts.SyntaxKind.CatchClause: - return ts.forEachChild(node, traverse); - } - return undefined; - } -} -exports.forEachReturnStatement = forEachReturnStatement; -//# sourceMappingURL=astUtils.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map deleted file mode 100644 index 5701ff24..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/astUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"astUtils.js","sourceRoot":"","sources":["../../src/util/astUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+CAAiC;AAEjC,iDAA8C;AAE9C,oCAAoC;AACpC,0EAAwD;AAExD,0FAA0F;AAC1F,0HAA0H;AAC1H,sGAAsG;AACtG;;;;;;GAMG;AACH,SAAgB,uCAAuC,CACrD,UAA+B,EAC/B,OAAyB,EACzB,IAAY;IAEZ,MAAM,WAAW,GAAG,IAAI,MAAM,CAC5B,SAAS,IAAA,2BAAY,EAAC,IAAI,CAAC,eAAe,EAC1C,IAAI,CACL,CAAC;IAEF,qCAAqC;IACrC,WAAW,CAAC,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAE5D,gCAAgC;IAChC,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAE9C,4BAA4B;IAC5B,MAAM,KAAK,GAAG,UAAU,CAAC,eAAe,CACtC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAC/D,CAAC;IACF,MAAM,GAAG,GAAG;QACV,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,MAAM,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;K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,wDA8BC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js deleted file mode 100644 index eff8aded..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js +++ /dev/null @@ -1,565 +0,0 @@ -"use strict"; -var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -}; -var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _UnusedVarsVisitor_scopeManager; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.collectUnusedVariables = void 0; -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const Visitor_1 = require("@typescript-eslint/scope-manager/dist/referencer/Visitor"); -const utils_1 = require("@typescript-eslint/utils"); -class UnusedVarsVisitor extends Visitor_1.Visitor { - // readonly #unusedVariables = new Set(); - constructor(context) { - super({ - visitChildrenEvenIfSelectorExists: true, - }); - _UnusedVarsVisitor_scopeManager.set(this, void 0); - //#endregion HELPERS - //#region VISITORS - // NOTE - This is a simple visitor - meaning it does not support selectors - this.ClassDeclaration = this.visitClass; - this.ClassExpression = this.visitClass; - this.FunctionDeclaration = this.visitFunction; - this.FunctionExpression = this.visitFunction; - this.MethodDefinition = this.visitSetter; - this.Property = this.visitSetter; - this.TSCallSignatureDeclaration = this.visitFunctionTypeSignature; - this.TSConstructorType = this.visitFunctionTypeSignature; - this.TSConstructSignatureDeclaration = this.visitFunctionTypeSignature; - this.TSDeclareFunction = this.visitFunctionTypeSignature; - this.TSEmptyBodyFunctionExpression = this.visitFunctionTypeSignature; - this.TSFunctionType = this.visitFunctionTypeSignature; - this.TSMethodSignature = this.visitFunctionTypeSignature; - __classPrivateFieldSet(this, _UnusedVarsVisitor_scopeManager, utils_1.ESLintUtils.nullThrows(context.getSourceCode().scopeManager, 'Missing required scope manager'), "f"); - } - static collectUnusedVariables(context) { - const program = context.getSourceCode().ast; - const cached = this.RESULTS_CACHE.get(program); - if (cached) { - return cached; - } - const visitor = new this(context); - visitor.visit(program); - const unusedVars = visitor.collectUnusedVariables(visitor.getScope(program)); - this.RESULTS_CACHE.set(program, unusedVars); - return unusedVars; - } - collectUnusedVariables(scope, unusedVariables = new Set()) { - for (const variable of scope.variables) { - if ( - // skip function expression names, - scope.functionExpressionScope || - // variables marked with markVariableAsUsed(), - variable.eslintUsed || - // implicit lib variables (from @typescript-eslint/scope-manager), - variable instanceof scope_manager_1.ImplicitLibVariable || - // basic exported variables - isExported(variable) || - // variables implicitly exported via a merged declaration - isMergableExported(variable) || - // used variables - isUsedVariable(variable)) { - continue; - } - unusedVariables.add(variable); - } - for (const childScope of scope.childScopes) { - this.collectUnusedVariables(childScope, unusedVariables); - } - return unusedVariables; - } - //#region HELPERS - getScope(currentNode) { - // On Program node, get the outermost scope to avoid return Node.js special function scope or ES modules scope. - const inner = currentNode.type !== utils_1.AST_NODE_TYPES.Program; - let node = currentNode; - while (node) { - const scope = __classPrivateFieldGet(this, _UnusedVarsVisitor_scopeManager, "f").acquire(node, inner); - if (scope) { - if (scope.type === 'function-expression-name') { - return scope.childScopes[0]; - } - return scope; - } - node = node.parent; - } - return __classPrivateFieldGet(this, _UnusedVarsVisitor_scopeManager, "f").scopes[0]; - } - markVariableAsUsed(variableOrIdentifierOrName, parent) { - if (typeof variableOrIdentifierOrName !== 'string' && - !('type' in variableOrIdentifierOrName)) { - variableOrIdentifierOrName.eslintUsed = true; - return; - } - let name; - let node; - if (typeof variableOrIdentifierOrName === 'string') { - name = variableOrIdentifierOrName; - node = parent; - } - else { - name = variableOrIdentifierOrName.name; - node = variableOrIdentifierOrName; - } - let currentScope = this.getScope(node); - while (currentScope) { - const variable = currentScope.variables.find(scopeVar => scopeVar.name === name); - if (variable) { - variable.eslintUsed = true; - return; - } - currentScope = currentScope.upper; - } - } - visitClass(node) { - // skip a variable of class itself name in the class scope - const scope = this.getScope(node); - for (const variable of scope.variables) { - if (variable.identifiers[0] === scope.block.id) { - this.markVariableAsUsed(variable); - return; - } - } - } - visitFunction(node) { - const scope = this.getScope(node); - // skip implicit "arguments" variable - const variable = scope.set.get('arguments'); - if ((variable === null || variable === void 0 ? void 0 : variable.defs.length) === 0) { - this.markVariableAsUsed(variable); - } - } - visitFunctionTypeSignature(node) { - // function type signature params create variables because they can be referenced within the signature, - // but they obviously aren't unused variables for the purposes of this rule. - for (const param of node.params) { - this.visitPattern(param, name => { - this.markVariableAsUsed(name); - }); - } - } - visitSetter(node) { - if (node.kind === 'set') { - // ignore setter parameters because they're syntactically required to exist - for (const param of node.value.params) { - this.visitPattern(param, id => { - this.markVariableAsUsed(id); - }); - } - } - } - ForInStatement(node) { - /** - * (Brad Zacher): I hate that this has to exist. - * But it is required for compat with the base ESLint rule. - * - * In 2015, ESLint decided to add an exception for these two specific cases - * ``` - * for (var key in object) return; - * - * var key; - * for (key in object) return; - * ``` - * - * I disagree with it, but what are you going to do... - * - * https://github.com/eslint/eslint/issues/2342 - */ - let idOrVariable; - if (node.left.type === utils_1.AST_NODE_TYPES.VariableDeclaration) { - const variable = __classPrivateFieldGet(this, _UnusedVarsVisitor_scopeManager, "f").getDeclaredVariables(node.left)[0]; - if (!variable) { - return; - } - idOrVariable = variable; - } - if (node.left.type === utils_1.AST_NODE_TYPES.Identifier) { - idOrVariable = node.left; - } - if (idOrVariable == null) { - return; - } - let body = node.body; - if (node.body.type === utils_1.AST_NODE_TYPES.BlockStatement) { - if (node.body.body.length !== 1) { - return; - } - body = node.body.body[0]; - } - if (body.type !== utils_1.AST_NODE_TYPES.ReturnStatement) { - return; - } - this.markVariableAsUsed(idOrVariable); - } - Identifier(node) { - const scope = this.getScope(node); - if (scope.type === utils_1.TSESLint.Scope.ScopeType.function && - node.name === 'this') { - // this parameters should always be considered used as they're pseudo-parameters - if ('params' in scope.block && scope.block.params.includes(node)) { - this.markVariableAsUsed(node); - } - } - } - TSEnumDeclaration(node) { - // enum members create variables because they can be referenced within the enum, - // but they obviously aren't unused variables for the purposes of this rule. - const scope = this.getScope(node); - for (const variable of scope.variables) { - this.markVariableAsUsed(variable); - } - } - TSMappedType(node) { - // mapped types create a variable for their type name, but it's not necessary to reference it, - // so we shouldn't consider it as unused for the purpose of this rule. - this.markVariableAsUsed(node.typeParameter.name); - } - TSModuleDeclaration(node) { - // -- global augmentation can be in any file, and they do not need exports - if (node.global === true) { - this.markVariableAsUsed('global', node.parent); - } - } - TSParameterProperty(node) { - let identifier = null; - switch (node.parameter.type) { - case utils_1.AST_NODE_TYPES.AssignmentPattern: - if (node.parameter.left.type === utils_1.AST_NODE_TYPES.Identifier) { - identifier = node.parameter.left; - } - break; - case utils_1.AST_NODE_TYPES.Identifier: - identifier = node.parameter; - break; - } - if (identifier) { - this.markVariableAsUsed(identifier); - } - } -} -_UnusedVarsVisitor_scopeManager = new WeakMap(); -UnusedVarsVisitor.RESULTS_CACHE = new WeakMap(); -//#region private helpers -/** - * Checks the position of given nodes. - * @param inner A node which is expected as inside. - * @param outer A node which is expected as outside. - * @returns `true` if the `inner` node exists in the `outer` node. - */ -function isInside(inner, outer) { - return inner.range[0] >= outer.range[0] && inner.range[1] <= outer.range[1]; -} -/** - * Determine if an identifier is referencing an enclosing name. - * This only applies to declarations that create their own scope (modules, functions, classes) - * @param ref The reference to check. - * @param nodes The candidate function nodes. - * @returns True if it's a self-reference, false if not. - */ -function isSelfReference(ref, nodes) { - let scope = ref.from; - while (scope) { - if (nodes.has(scope.block)) { - return true; - } - scope = scope.upper; - } - return false; -} -const MERGABLE_TYPES = new Set([ - utils_1.AST_NODE_TYPES.TSInterfaceDeclaration, - utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration, - utils_1.AST_NODE_TYPES.TSModuleDeclaration, - utils_1.AST_NODE_TYPES.ClassDeclaration, - utils_1.AST_NODE_TYPES.FunctionDeclaration, -]); -/** - * Determine if the variable is directly exported - * @param variable the variable to check - * @param target the type of node that is expected to be exported - */ -function isMergableExported(variable) { - var _a, _b; - // If all of the merged things are of the same type, TS will error if not all of them are exported - so we only need to find one - for (const def of variable.defs) { - // parameters can never be exported. - // their `node` prop points to the function decl, which can be exported - // so we need to special case them - if (def.type === utils_1.TSESLint.Scope.DefinitionType.Parameter) { - continue; - } - if ((MERGABLE_TYPES.has(def.node.type) && - ((_a = def.node.parent) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.ExportNamedDeclaration) || - ((_b = def.node.parent) === null || _b === void 0 ? void 0 : _b.type) === utils_1.AST_NODE_TYPES.ExportDefaultDeclaration) { - return true; - } - } - return false; -} -/** - * Determines if a given variable is being exported from a module. - * @param variable eslint-scope variable object. - * @returns True if the variable is exported, false if not. - */ -function isExported(variable) { - const definition = variable.defs[0]; - if (definition) { - let node = definition.node; - if (node.type === utils_1.AST_NODE_TYPES.VariableDeclarator) { - node = node.parent; - } - else if (definition.type === utils_1.TSESLint.Scope.DefinitionType.Parameter) { - return false; - } - return node.parent.type.indexOf('Export') === 0; - } - return false; -} -/** - * Determines if the variable is used. - * @param variable The variable to check. - * @returns True if the variable is used - */ -function isUsedVariable(variable) { - /** - * Gets a list of function definitions for a specified variable. - * @param variable eslint-scope variable object. - * @returns Function nodes. - */ - function getFunctionDefinitions(variable) { - const functionDefinitions = new Set(); - variable.defs.forEach(def => { - var _a, _b; - // FunctionDeclarations - if (def.type === utils_1.TSESLint.Scope.DefinitionType.FunctionName) { - functionDefinitions.add(def.node); - } - // FunctionExpressions - if (def.type === utils_1.TSESLint.Scope.DefinitionType.Variable && - (((_a = def.node.init) === null || _a === void 0 ? void 0 : _a.type) === utils_1.AST_NODE_TYPES.FunctionExpression || - ((_b = def.node.init) === null || _b === void 0 ? void 0 : _b.type) === utils_1.AST_NODE_TYPES.ArrowFunctionExpression)) { - functionDefinitions.add(def.node.init); - } - }); - return functionDefinitions; - } - function getTypeDeclarations(variable) { - const nodes = new Set(); - variable.defs.forEach(def => { - if (def.node.type === utils_1.AST_NODE_TYPES.TSInterfaceDeclaration || - def.node.type === utils_1.AST_NODE_TYPES.TSTypeAliasDeclaration) { - nodes.add(def.node); - } - }); - return nodes; - } - function getModuleDeclarations(variable) { - const nodes = new Set(); - variable.defs.forEach(def => { - if (def.node.type === utils_1.AST_NODE_TYPES.TSModuleDeclaration) { - nodes.add(def.node); - } - }); - return nodes; - } - /** - * Checks if the ref is contained within one of the given nodes - */ - function isInsideOneOf(ref, nodes) { - for (const node of nodes) { - if (isInside(ref.identifier, node)) { - return true; - } - } - return false; - } - /** - * If a given reference is left-hand side of an assignment, this gets - * the right-hand side node of the assignment. - * - * In the following cases, this returns null. - * - * - The reference is not the LHS of an assignment expression. - * - The reference is inside of a loop. - * - The reference is inside of a function scope which is different from - * the declaration. - * @param ref A reference to check. - * @param prevRhsNode The previous RHS node. - * @returns The RHS node or null. - */ - function getRhsNode(ref, prevRhsNode) { - /** - * Checks whether the given node is in a loop or not. - * @param node The node to check. - * @returns `true` if the node is in a loop. - */ - function isInLoop(node) { - let currentNode = node; - while (currentNode) { - if (utils_1.ASTUtils.isFunction(currentNode)) { - break; - } - if (utils_1.ASTUtils.isLoop(currentNode)) { - return true; - } - currentNode = currentNode.parent; - } - return false; - } - const id = ref.identifier; - const parent = id.parent; - const grandparent = parent.parent; - const refScope = ref.from.variableScope; - const varScope = ref.resolved.scope.variableScope; - const canBeUsedLater = refScope !== varScope || isInLoop(id); - /* - * Inherits the previous node if this reference is in the node. - * This is for `a = a + a`-like code. - */ - if (prevRhsNode && isInside(id, prevRhsNode)) { - return prevRhsNode; - } - if (parent.type === utils_1.AST_NODE_TYPES.AssignmentExpression && - grandparent.type === utils_1.AST_NODE_TYPES.ExpressionStatement && - id === parent.left && - !canBeUsedLater) { - return parent.right; - } - return null; - } - /** - * Checks whether a given reference is a read to update itself or not. - * @param ref A reference to check. - * @param rhsNode The RHS node of the previous assignment. - * @returns The reference is a read to update itself. - */ - function isReadForItself(ref, rhsNode) { - /** - * Checks whether a given Identifier node exists inside of a function node which can be used later. - * - * "can be used later" means: - * - the function is assigned to a variable. - * - the function is bound to a property and the object can be used later. - * - the function is bound as an argument of a function call. - * - * If a reference exists in a function which can be used later, the reference is read when the function is called. - * @param id An Identifier node to check. - * @param rhsNode The RHS node of the previous assignment. - * @returns `true` if the `id` node exists inside of a function node which can be used later. - */ - function isInsideOfStorableFunction(id, rhsNode) { - /** - * Finds a function node from ancestors of a node. - * @param node A start node to find. - * @returns A found function node. - */ - function getUpperFunction(node) { - let currentNode = node; - while (currentNode) { - if (utils_1.ASTUtils.isFunction(currentNode)) { - return currentNode; - } - currentNode = currentNode.parent; - } - return null; - } - /** - * Checks whether a given function node is stored to somewhere or not. - * If the function node is stored, the function can be used later. - * @param funcNode A function node to check. - * @param rhsNode The RHS node of the previous assignment. - * @returns `true` if under the following conditions: - * - the funcNode is assigned to a variable. - * - the funcNode is bound as an argument of a function call. - * - the function is bound to a property and the object satisfies above conditions. - */ - function isStorableFunction(funcNode, rhsNode) { - let node = funcNode; - let parent = funcNode.parent; - while (parent && isInside(parent, rhsNode)) { - switch (parent.type) { - case utils_1.AST_NODE_TYPES.SequenceExpression: - if (parent.expressions[parent.expressions.length - 1] !== node) { - return false; - } - break; - case utils_1.AST_NODE_TYPES.CallExpression: - case utils_1.AST_NODE_TYPES.NewExpression: - return parent.callee !== node; - case utils_1.AST_NODE_TYPES.AssignmentExpression: - case utils_1.AST_NODE_TYPES.TaggedTemplateExpression: - case utils_1.AST_NODE_TYPES.YieldExpression: - return true; - default: - if (parent.type.endsWith('Statement') || - parent.type.endsWith('Declaration')) { - /* - * If it encountered statements, this is a complex pattern. - * Since analyzing complex patterns is hard, this returns `true` to avoid false positive. - */ - return true; - } - } - node = parent; - parent = parent.parent; - } - return false; - } - const funcNode = getUpperFunction(id); - return (!!funcNode && - isInside(funcNode, rhsNode) && - isStorableFunction(funcNode, rhsNode)); - } - const id = ref.identifier; - const parent = id.parent; - const grandparent = parent.parent; - return (ref.isRead() && // in RHS of an assignment for itself. e.g. `a = a + 1` - // self update. e.g. `a += 1`, `a++` - ((parent.type === utils_1.AST_NODE_TYPES.AssignmentExpression && - grandparent.type === utils_1.AST_NODE_TYPES.ExpressionStatement && - parent.left === id) || - (parent.type === utils_1.AST_NODE_TYPES.UpdateExpression && - grandparent.type === utils_1.AST_NODE_TYPES.ExpressionStatement) || - (!!rhsNode && - isInside(id, rhsNode) && - !isInsideOfStorableFunction(id, rhsNode)))); - } - const functionNodes = getFunctionDefinitions(variable); - const isFunctionDefinition = functionNodes.size > 0; - const typeDeclNodes = getTypeDeclarations(variable); - const isTypeDecl = typeDeclNodes.size > 0; - const moduleDeclNodes = getModuleDeclarations(variable); - const isModuleDecl = moduleDeclNodes.size > 0; - let rhsNode = null; - return variable.references.some(ref => { - const forItself = isReadForItself(ref, rhsNode); - rhsNode = getRhsNode(ref, rhsNode); - return (ref.isRead() && - !forItself && - !(isFunctionDefinition && isSelfReference(ref, functionNodes)) && - !(isTypeDecl && isInsideOneOf(ref, typeDeclNodes)) && - !(isModuleDecl && isSelfReference(ref, moduleDeclNodes))); - }); -} -//#endregion private helpers -/** - * Collects the set of unused variables for a given context. - * - * Due to complexity, this does not take into consideration: - * - variables within declaration files - * - variables within ambient module declarations - */ -function collectUnusedVariables(context) { - return UnusedVarsVisitor.collectUnusedVariables(context); -} -exports.collectUnusedVariables = collectUnusedVariables; -//# sourceMappingURL=collectUnusedVariables.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map deleted file mode 100644 index 51423b49..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"collectUnusedVariables.js","sourceRoot":"","sources":["../../src/util/collectUnusedVariables.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oEAAuE;AACvE,sFAAmF;AAEnF,oDAKkC;AAElC,MAAM,iBAGJ,SAAQ,iBAAO;IAOf,kEAAkE;IAElE,YAAoB,OAAoD;QACtE,KAAK,CAAC;YACJ,iCAAiC,EAAE,IAAI;SACxC,CAAC,CAAC;QANI,kDAA2C;QAiMpD,oBAAoB;QAEpB,kBAAkB;QAClB,0EAA0E;QAEhE,qBAAgB,GAAG,IAAI,CAAC,UAAU,CAAC;QAEnC,oBAAe,GAAG,IAAI,CAAC,UAAU,CAAC;QAElC,wBAAmB,GAAG,IAAI,CAAC,aAAa,CAAC;QAEzC,uBAAkB,GAAG,IAAI,CAAC,aAAa,CAAC;QAgExC,qBAAgB,GAAG,IAAI,CAAC,WAAW,CAAC;QAEpC,aAAQ,GAAG,IAAI,CAAC,WAAW,CAAC;QAE5B,+BAA0B,GAAG,IAAI,CAAC,0BAA0B,CAAC;QAE7D,sBAAiB,GAAG,IAAI,CAAC,0BAA0B,CAAC;QAEpD,oCAA+B,GAAG,IAAI,CAAC,0BAA0B,CAAC;QAElE,sBAAiB,GAAG,IAAI,CAAC,0BAA0B,CAAC;QAEpD,kCAA6B,GAAG,IAAI,CAAC,0BAA0B,CAAC;QAWhE,mBAAc,GAAG,IAAI,CAAC,0BAA0B,CAAC;QAQjD,sBAAiB,GAAG,IAAI,CAAC,0BAA0B,CAAC;QAnS5D,uBAAA,IAAI,mCAAiB,mBAAW,CAAC,UAAU,CACzC,OAAO,CAAC,aAAa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plugin/dist/util/createRule.js deleted file mode 100644 index a0ee97b4..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createRule = void 0; -const utils_1 = require("@typescript-eslint/utils"); -exports.createRule = utils_1.ESLintUtils.RuleCreator(name => `https://typescript-eslint.io/rules/${name}`); -//# sourceMappingURL=createRule.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js.map deleted file mode 100644 index eb8fd736..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/createRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createRule.js","sourceRoot":"","sources":["../../src/util/createRule.ts"],"names":[],"mappings":";;;AAAA,oDAAuD;AAE1C,QAAA,UAAU,GAAG,mBAAW,CAAC,WAAW,CAC/C,IAAI,CAAC,EAAE,CAAC,sCAAsC,IAAI,EAAE,CACrD,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js deleted file mode 100644 index 35c84903..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.escapeRegExp = void 0; -/** - * Lodash - * Released under MIT license - */ -const reRegExpChar = /[\\^$.*+?()[\]{}|]/g; -const reHasRegExpChar = RegExp(reRegExpChar.source); -function escapeRegExp(string = '') { - return string && reHasRegExpChar.test(string) - ? string.replace(reRegExpChar, '\\$&') - : string; -} -exports.escapeRegExp = escapeRegExp; -//# sourceMappingURL=escapeRegExp.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js.map deleted file mode 100644 index 4a581403..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/escapeRegExp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"escapeRegExp.js","sourceRoot":"","sources":["../../src/util/escapeRegExp.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,MAAM,YAAY,GAAG,qBAAqB,CAAC;AAC3C,MAAM,eAAe,GAAG,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;AAEpD,SAAgB,YAAY,CAAC,MAAM,GAAG,EAAE;IACtC,OAAO,MAAM,IAAI,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC;QAC3C,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC;QACtC,CAAC,CAAC,MAAM,CAAC;AACb,CAAC;AAJD,oCAIC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js deleted file mode 100644 index ce2b416e..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js +++ /dev/null @@ -1,232 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ancestorHasReturnType = exports.isValidFunctionExpressionReturnType = exports.isTypedFunctionExpression = exports.doesImmediatelyReturnFunctionExpression = exports.checkFunctionReturnType = exports.checkFunctionExpressionReturnType = void 0; -const utils_1 = require("@typescript-eslint/utils"); -const astUtils_1 = require("./astUtils"); -const getFunctionHeadLoc_1 = require("./getFunctionHeadLoc"); -/** - * Checks if a node is a variable declarator with a type annotation. - * ``` - * const x: Foo = ... - * ``` - */ -function isVariableDeclaratorWithTypeAnnotation(node) { - return (node.type === utils_1.AST_NODE_TYPES.VariableDeclarator && !!node.id.typeAnnotation); -} -/** - * Checks if a node is a class property with a type annotation. - * ``` - * public x: Foo = ... - * ``` - */ -function isPropertyDefinitionWithTypeAnnotation(node) { - return (node.type === utils_1.AST_NODE_TYPES.PropertyDefinition && !!node.typeAnnotation); -} -/** - * Checks if a node belongs to: - * ``` - * new Foo(() => {}) - * ^^^^^^^^ - * ``` - */ -function isConstructorArgument(node) { - return node.type === utils_1.AST_NODE_TYPES.NewExpression; -} -/** - * Checks if a node is a property or a nested property of a typed object: - * ``` - * const x: Foo = { prop: () => {} } - * const x = { prop: () => {} } as Foo - * const x = { prop: () => {} } - * const x: Foo = { bar: { prop: () => {} } } - * ``` - */ -function isPropertyOfObjectWithType(property) { - if (!property || property.type !== utils_1.AST_NODE_TYPES.Property) { - return false; - } - const objectExpr = property.parent; // this shouldn't happen, checking just in case - /* istanbul ignore if */ if (!objectExpr || - objectExpr.type !== utils_1.AST_NODE_TYPES.ObjectExpression) { - return false; - } - const parent = objectExpr.parent; // this shouldn't happen, checking just in case - /* istanbul ignore if */ if (!parent) { - return false; - } - return ((0, astUtils_1.isTypeAssertion)(parent) || - isPropertyDefinitionWithTypeAnnotation(parent) || - isVariableDeclaratorWithTypeAnnotation(parent) || - isFunctionArgument(parent) || - isPropertyOfObjectWithType(parent)); -} -/** - * Checks if a function belongs to: - * ``` - * () => () => ... - * () => function () { ... } - * () => { return () => ... } - * () => { return function () { ... } } - * function fn() { return () => ... } - * function fn() { return function() { ... } } - * ``` - */ -function doesImmediatelyReturnFunctionExpression({ body, }) { - // Should always have a body; really checking just in case - /* istanbul ignore if */ if (!body) { - return false; - } - // Check if body is a block with a single statement - if (body.type === utils_1.AST_NODE_TYPES.BlockStatement && body.body.length === 1) { - const [statement] = body.body; - // Check if that statement is a return statement with an argument - if (statement.type === utils_1.AST_NODE_TYPES.ReturnStatement && - !!statement.argument) { - // If so, check that returned argument as body - body = statement.argument; - } - } - // Check if the body being returned is a function expression - return (body.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression || - body.type === utils_1.AST_NODE_TYPES.FunctionExpression); -} -exports.doesImmediatelyReturnFunctionExpression = doesImmediatelyReturnFunctionExpression; -/** - * Checks if a node belongs to: - * ``` - * foo(() => 1) - * ``` - */ -function isFunctionArgument(parent, callee) { - return (parent.type === utils_1.AST_NODE_TYPES.CallExpression && - // make sure this isn't an IIFE - parent.callee !== callee); -} -/** - * Checks if a function belongs to: - * ``` - * () => ({ action: 'xxx' } as const) - * ``` - */ -function returnsConstAssertionDirectly(node) { - const { body } = node; - if ((0, astUtils_1.isTypeAssertion)(body)) { - const { typeAnnotation } = body; - if (typeAnnotation.type === utils_1.AST_NODE_TYPES.TSTypeReference) { - const { typeName } = typeAnnotation; - if (typeName.type === utils_1.AST_NODE_TYPES.Identifier && - typeName.name === 'const') { - return true; - } - } - } - return false; -} -/** - * True when the provided function expression is typed. - */ -function isTypedFunctionExpression(node, options) { - const parent = utils_1.ESLintUtils.nullThrows(node.parent, utils_1.ESLintUtils.NullThrowsReasons.MissingParent); - if (!options.allowTypedFunctionExpressions) { - return false; - } - return ((0, astUtils_1.isTypeAssertion)(parent) || - isVariableDeclaratorWithTypeAnnotation(parent) || - isPropertyDefinitionWithTypeAnnotation(parent) || - isPropertyOfObjectWithType(parent) || - isFunctionArgument(parent, node) || - isConstructorArgument(parent)); -} -exports.isTypedFunctionExpression = isTypedFunctionExpression; -/** - * Check whether the function expression return type is either typed or valid - * with the provided options. - */ -function isValidFunctionExpressionReturnType(node, options) { - if (isTypedFunctionExpression(node, options)) { - return true; - } - const parent = utils_1.ESLintUtils.nullThrows(node.parent, utils_1.ESLintUtils.NullThrowsReasons.MissingParent); - if (options.allowExpressions && - parent.type !== utils_1.AST_NODE_TYPES.VariableDeclarator && - parent.type !== utils_1.AST_NODE_TYPES.MethodDefinition && - parent.type !== utils_1.AST_NODE_TYPES.ExportDefaultDeclaration && - parent.type !== utils_1.AST_NODE_TYPES.PropertyDefinition) { - return true; - } - // https://github.com/typescript-eslint/typescript-eslint/issues/653 - return (options.allowDirectConstAssertionInArrowFunctions === true && - node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression && - returnsConstAssertionDirectly(node)); -} -exports.isValidFunctionExpressionReturnType = isValidFunctionExpressionReturnType; -/** - * Check that the function expression or declaration is valid. - */ -function isValidFunctionReturnType(node, options) { - if (options.allowHigherOrderFunctions && - doesImmediatelyReturnFunctionExpression(node)) { - return true; - } - return (node.returnType != null || - (0, astUtils_1.isConstructor)(node.parent) || - (0, astUtils_1.isSetter)(node.parent)); -} -/** - * Checks if a function declaration/expression has a return type. - */ -function checkFunctionReturnType(node, options, sourceCode, report) { - if (isValidFunctionReturnType(node, options)) { - return; - } - report((0, getFunctionHeadLoc_1.getFunctionHeadLoc)(node, sourceCode)); -} -exports.checkFunctionReturnType = checkFunctionReturnType; -/** - * Checks if a function declaration/expression has a return type. - */ -function checkFunctionExpressionReturnType(node, options, sourceCode, report) { - if (isValidFunctionExpressionReturnType(node, options)) { - return; - } - checkFunctionReturnType(node, options, sourceCode, report); -} -exports.checkFunctionExpressionReturnType = checkFunctionExpressionReturnType; -/** - * Check whether any ancestor of the provided function has a valid return type. - */ -function ancestorHasReturnType(node) { - let ancestor = node.parent; - if ((ancestor === null || ancestor === void 0 ? void 0 : ancestor.type) === utils_1.AST_NODE_TYPES.Property) { - ancestor = ancestor.value; - } - // if the ancestor is not a return, then this function was not returned at all, so we can exit early - const isReturnStatement = (ancestor === null || ancestor === void 0 ? void 0 : ancestor.type) === utils_1.AST_NODE_TYPES.ReturnStatement; - const isBodylessArrow = (ancestor === null || ancestor === void 0 ? void 0 : ancestor.type) === utils_1.AST_NODE_TYPES.ArrowFunctionExpression && - ancestor.body.type !== utils_1.AST_NODE_TYPES.BlockStatement; - if (!isReturnStatement && !isBodylessArrow) { - return false; - } - while (ancestor) { - switch (ancestor.type) { - case utils_1.AST_NODE_TYPES.ArrowFunctionExpression: - case utils_1.AST_NODE_TYPES.FunctionExpression: - case utils_1.AST_NODE_TYPES.FunctionDeclaration: - if (ancestor.returnType) { - return true; - } - break; - // const x: Foo = () => {}; - // Assume that a typed variable types the function expression - case utils_1.AST_NODE_TYPES.VariableDeclarator: - if (ancestor.id.typeAnnotation) { - return true; - } - break; - } - ancestor = ancestor.parent; - } - return false; -} -exports.ancestorHasReturnType = ancestorHasReturnType; -//# sourceMappingURL=explicitReturnTypeUtils.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js.map deleted file mode 100644 index 830e6cf3..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/explicitReturnTypeUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"explicitReturnTypeUtils.js","sourceRoot":"","sources":["../../src/util/explicitReturnTypeUtils.ts"],"names":[],"mappings":";;;AACA,oDAAuE;AAEvE,yCAAsE;AACtE,6DAA0D;AAO1D;;;;;GAKG;AACH,SAAS,sCAAsC,CAC7C,IAAmB;IAEnB,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,cAAc,CAC5E,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,SAAS,sCAAsC,CAC7C,IAAmB;IAEnB,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,IAAI,CAAC,CAAC,IAAI,CAAC,cAAc,CACzE,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,SAAS,qBAAqB,CAC5B,IAAmB;IAEnB,OAAO,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,aAAa,CAAC;AACpD,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,0BAA0B,CACjC,QAAmC;IAEnC,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,sBAAc,CAAC,QAAQ,EAAE;QAC1D,OAAO,KAAK,CAAC;KACd;IACD,MAAM,UAAU,GAAG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AkB;gBACpC,IAAI,QAAQ,CAAC,EAAE,CAAC,cAAc,EAAE;oBAC9B,OAAO,IAAI,CAAC;iBACb;gBACD,MAAM;SACT;QAED,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;KAC5B;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAUC,sDAAqB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js deleted file mode 100644 index 6b56a8fb..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.maybeGetESLintCoreRule = exports.getESLintCoreRule = void 0; -const utils_1 = require("@typescript-eslint/utils"); -const package_json_1 = require("eslint/package.json"); -const semver = __importStar(require("semver")); -const isESLintV8 = semver.major(package_json_1.version) >= 8; -exports.getESLintCoreRule = isESLintV8 - ? (ruleId) => utils_1.ESLintUtils.nullThrows( - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call - require('eslint/use-at-your-own-risk').builtinRules.get(ruleId), `ESLint's core rule '${ruleId}' not found.`) - : (ruleId) => require(`eslint/lib/rules/${ruleId}`); -function maybeGetESLintCoreRule(ruleId) { - try { - return (0, exports.getESLintCoreRule)(ruleId); - } - catch (_a) { - return null; - } -} -exports.maybeGetESLintCoreRule = maybeGetESLintCoreRule; -//# sourceMappingURL=getESLintCoreRule.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map deleted file mode 100644 index 5c0c6652..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getESLintCoreRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getESLintCoreRule.js","sourceRoot":"","sources":["../../src/util/getESLintCoreRule.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuD;AACvD,sDAA8C;AAC9C,+CAAiC;AAEjC,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,sBAAO,CAAC,IAAI,CAAC,CAAC;AA2CjC,QAAA,iBAAiB,GAC5B,UAAU;IACR,CAAC,CAAC,CAAmB,MAAS,EAAc,EAAE,CAC1C,mBAAW,CAAC,UAAU;IACpB,yGAAyG;IACzG,OAAO,CAAC,6BAA6B,CAAC,CAAC,YAAY,CAAC,GAAG,CACrD,MAAM,CACO,EACf,uBAAuB,MAAM,cAAc,CAC5C;IACL,CAAC,CAAC,CAAmB,MAAS,EAAc,EAAE,CAC1C,OAAO,CAAC,oBAAoB,MAAM,EAAE,CAAe,CAAC;AAE5D,SAAgB,sBAAsB,CACpC,MAAS;IAET,IAAI;QACF,OAAO,IAAA,yBAAiB,EAAI,MAAM,CAAC,CAAC;KACrC;IAAC,WAAM;QACN,OAAO,IAAI,CAAC;KACb;AACH,CAAC;AARD,wDAQC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js deleted file mode 100644 index 8117e6c4..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getFunctionHeadLoc = void 0; -const utils_1 = require("@typescript-eslint/utils"); -/** - * Creates a report location for the given function. - * The location only encompasses the "start" of the function, and not the body - * - * eg. - * - * ``` - * function foo(args) {} - * ^^^^^^^^^^^^^^^^^^ - * - * get y(args) {} - * ^^^^^^^^^^^ - * - * const x = (args) => {} - * ^^^^^^^^^ - * ``` - */ -function getFunctionHeadLoc(node, sourceCode) { - function getLocStart() { - if (node.parent && node.parent.type === utils_1.AST_NODE_TYPES.MethodDefinition) { - // return the start location for class method - if (node.parent.decorators && node.parent.decorators.length > 0) { - // exclude decorators - return sourceCode.getTokenAfter(node.parent.decorators[node.parent.decorators.length - 1]).loc.start; - } - return node.parent.loc.start; - } - if (node.parent && - node.parent.type === utils_1.AST_NODE_TYPES.Property && - node.parent.method) { - // return the start location for object method shorthand - return node.parent.loc.start; - } - // return the start location for a regular function - return node.loc.start; - } - function getLocEnd() { - if (node.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression) { - // find the end location for arrow function expression - return sourceCode.getTokenBefore(node.body, token => token.type === utils_1.AST_TOKEN_TYPES.Punctuator && token.value === '=>').loc.end; - } - // return the end location for a regular function - return sourceCode.getTokenBefore(node.body).loc.end; - } - return { - start: getLocStart(), - end: getLocEnd(), - }; -} -exports.getFunctionHeadLoc = getFunctionHeadLoc; -//# sourceMappingURL=getFunctionHeadLoc.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js.map deleted file mode 100644 index 08a35f6b..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getFunctionHeadLoc.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getFunctionHeadLoc.js","sourceRoot":"","sources":["../../src/util/getFunctionHeadLoc.ts"],"names":[],"mappings":";;;AACA,oDAA2E;AAO3E;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,kBAAkB,CAChC,IAAkB,EAClB,UAA+B;IAE/B,SAAS,WAAW;QAClB,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAAE;YACvE,6CAA6C;YAE7C,IAAI,IAAI,CAAC,MAAM,CAAC,UAAU,IAAI,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC/D,qBAAqB;gBACrB,OAAO,UAAU,CAAC,aAAa,CAC7B,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CACzD,CAAC,GAAG,CAAC,KAAK,CAAC;aACd;YAED,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC;SAC9B;QAED,IACE,IAAI,CAAC,MAAM;YACX,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,QAAQ;YAC5C,IAAI,CAAC,MAAM,CAAC,MAAM,EAClB;YACA,wDAAwD;YACxD,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC;SAC9B;QAED,mDAAmD;QACnD,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;IACxB,CAAC;IAED,SAAS,SAAS;QAChB,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,uBAAuB,EAAE;YACxD,sDAAsD;YACtD,OAAO,UAAU,CAAC,cAAc,CAC9B,IAAI,CAAC,IAAI,EACT,KAAK,CAAC,EAAE,CACN,KAAK,CAAC,IAAI,KAAK,uBAAe,CAAC,UAAU,IAAI,KAAK,CAAC,KAAK,KAAK,IAAI,CACnE,CAAC,GAAG,CAAC,GAAG,CAAC;SACZ;QAED,iDAAiD;QACjD,OAAO,UAAU,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAE,CAAC,GAAG,CAAC,GAAG,CAAC;IACvD,CAAC;IAED,OAAO;QACL,KAAK,EAAE,WAAW,EAAE;QACpB,GAAG,EAAE,SAAS,EAAE;KACjB,CAAC;AACJ,CAAC;AAjDD,gDAiDC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js deleted file mode 100644 index 369705ed..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js +++ /dev/null @@ -1,307 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getBinaryOperatorPrecedence = exports.getOperatorPrecedence = exports.OperatorPrecedence = void 0; -const typescript_1 = require("typescript"); -var OperatorPrecedence; -(function (OperatorPrecedence) { - // Expression: - // AssignmentExpression - // Expression `,` AssignmentExpression - OperatorPrecedence[OperatorPrecedence["Comma"] = 0] = "Comma"; - // NOTE: `Spread` is higher than `Comma` due to how it is parsed in |ElementList| - // SpreadElement: - // `...` AssignmentExpression - OperatorPrecedence[OperatorPrecedence["Spread"] = 1] = "Spread"; - // AssignmentExpression: - // ConditionalExpression - // YieldExpression - // ArrowFunction - // AsyncArrowFunction - // LeftHandSideExpression `=` AssignmentExpression - // LeftHandSideExpression AssignmentOperator AssignmentExpression - // - // NOTE: AssignmentExpression is broken down into several precedences due to the requirements - // of the parenthesize rules. - // AssignmentExpression: YieldExpression - // YieldExpression: - // `yield` - // `yield` AssignmentExpression - // `yield` `*` AssignmentExpression - OperatorPrecedence[OperatorPrecedence["Yield"] = 2] = "Yield"; - // AssignmentExpression: LeftHandSideExpression `=` AssignmentExpression - // AssignmentExpression: LeftHandSideExpression AssignmentOperator AssignmentExpression - // AssignmentOperator: one of - // `*=` `/=` `%=` `+=` `-=` `<<=` `>>=` `>>>=` `&=` `^=` `|=` `**=` - OperatorPrecedence[OperatorPrecedence["Assignment"] = 3] = "Assignment"; - // NOTE: `Conditional` is considered higher than `Assignment` here, but in reality they have - // the same precedence. - // AssignmentExpression: ConditionalExpression - // ConditionalExpression: - // ShortCircuitExpression - // ShortCircuitExpression `?` AssignmentExpression `:` AssignmentExpression - // ShortCircuitExpression: - // LogicalORExpression - // CoalesceExpression - OperatorPrecedence[OperatorPrecedence["Conditional"] = 4] = "Conditional"; - // CoalesceExpression: - // CoalesceExpressionHead `??` BitwiseORExpression - // CoalesceExpressionHead: - // CoalesceExpression - // BitwiseORExpression - OperatorPrecedence[OperatorPrecedence["Coalesce"] = 4] = "Coalesce"; - // LogicalORExpression: - // LogicalANDExpression - // LogicalORExpression `||` LogicalANDExpression - OperatorPrecedence[OperatorPrecedence["LogicalOR"] = 5] = "LogicalOR"; - // LogicalANDExpression: - // BitwiseORExpression - // LogicalANDExpression `&&` BitwiseORExpression - OperatorPrecedence[OperatorPrecedence["LogicalAND"] = 6] = "LogicalAND"; - // BitwiseORExpression: - // BitwiseXORExpression - // BitwiseORExpression `^` BitwiseXORExpression - OperatorPrecedence[OperatorPrecedence["BitwiseOR"] = 7] = "BitwiseOR"; - // BitwiseXORExpression: - // BitwiseANDExpression - // BitwiseXORExpression `^` BitwiseANDExpression - OperatorPrecedence[OperatorPrecedence["BitwiseXOR"] = 8] = "BitwiseXOR"; - // BitwiseANDExpression: - // EqualityExpression - // BitwiseANDExpression `^` EqualityExpression - OperatorPrecedence[OperatorPrecedence["BitwiseAND"] = 9] = "BitwiseAND"; - // EqualityExpression: - // RelationalExpression - // EqualityExpression `==` RelationalExpression - // EqualityExpression `!=` RelationalExpression - // EqualityExpression `===` RelationalExpression - // EqualityExpression `!==` RelationalExpression - OperatorPrecedence[OperatorPrecedence["Equality"] = 10] = "Equality"; - // RelationalExpression: - // ShiftExpression - // RelationalExpression `<` ShiftExpression - // RelationalExpression `>` ShiftExpression - // RelationalExpression `<=` ShiftExpression - // RelationalExpression `>=` ShiftExpression - // RelationalExpression `instanceof` ShiftExpression - // RelationalExpression `in` ShiftExpression - // [+TypeScript] RelationalExpression `as` Type - OperatorPrecedence[OperatorPrecedence["Relational"] = 11] = "Relational"; - // ShiftExpression: - // AdditiveExpression - // ShiftExpression `<<` AdditiveExpression - // ShiftExpression `>>` AdditiveExpression - // ShiftExpression `>>>` AdditiveExpression - OperatorPrecedence[OperatorPrecedence["Shift"] = 12] = "Shift"; - // AdditiveExpression: - // MultiplicativeExpression - // AdditiveExpression `+` MultiplicativeExpression - // AdditiveExpression `-` MultiplicativeExpression - OperatorPrecedence[OperatorPrecedence["Additive"] = 13] = "Additive"; - // MultiplicativeExpression: - // ExponentiationExpression - // MultiplicativeExpression MultiplicativeOperator ExponentiationExpression - // MultiplicativeOperator: one of `*`, `/`, `%` - OperatorPrecedence[OperatorPrecedence["Multiplicative"] = 14] = "Multiplicative"; - // ExponentiationExpression: - // UnaryExpression - // UpdateExpression `**` ExponentiationExpression - OperatorPrecedence[OperatorPrecedence["Exponentiation"] = 15] = "Exponentiation"; - // UnaryExpression: - // UpdateExpression - // `delete` UnaryExpression - // `void` UnaryExpression - // `typeof` UnaryExpression - // `+` UnaryExpression - // `-` UnaryExpression - // `~` UnaryExpression - // `!` UnaryExpression - // AwaitExpression - // UpdateExpression: // TODO: Do we need to investigate the precedence here? - // `++` UnaryExpression - // `--` UnaryExpression - OperatorPrecedence[OperatorPrecedence["Unary"] = 16] = "Unary"; - // UpdateExpression: - // LeftHandSideExpression - // LeftHandSideExpression `++` - // LeftHandSideExpression `--` - OperatorPrecedence[OperatorPrecedence["Update"] = 17] = "Update"; - // LeftHandSideExpression: - // NewExpression - // CallExpression - // NewExpression: - // MemberExpression - // `new` NewExpression - OperatorPrecedence[OperatorPrecedence["LeftHandSide"] = 18] = "LeftHandSide"; - // CallExpression: - // CoverCallExpressionAndAsyncArrowHead - // SuperCall - // ImportCall - // CallExpression Arguments - // CallExpression `[` Expression `]` - // CallExpression `.` IdentifierName - // CallExpression TemplateLiteral - // MemberExpression: - // PrimaryExpression - // MemberExpression `[` Expression `]` - // MemberExpression `.` IdentifierName - // MemberExpression TemplateLiteral - // SuperProperty - // MetaProperty - // `new` MemberExpression Arguments - OperatorPrecedence[OperatorPrecedence["Member"] = 19] = "Member"; - // TODO: JSXElement? - // PrimaryExpression: - // `this` - // IdentifierReference - // Literal - // ArrayLiteral - // ObjectLiteral - // FunctionExpression - // ClassExpression - // GeneratorExpression - // AsyncFunctionExpression - // AsyncGeneratorExpression - // RegularExpressionLiteral - // TemplateLiteral - // CoverParenthesizedExpressionAndArrowParameterList - OperatorPrecedence[OperatorPrecedence["Primary"] = 20] = "Primary"; - OperatorPrecedence[OperatorPrecedence["Highest"] = 20] = "Highest"; - OperatorPrecedence[OperatorPrecedence["Lowest"] = 0] = "Lowest"; - // -1 is lower than all other precedences. Returning it will cause binary expression - // parsing to stop. - OperatorPrecedence[OperatorPrecedence["Invalid"] = -1] = "Invalid"; -})(OperatorPrecedence || (exports.OperatorPrecedence = OperatorPrecedence = {})); -function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) { - switch (nodeKind) { - case typescript_1.SyntaxKind.CommaListExpression: - return OperatorPrecedence.Comma; - case typescript_1.SyntaxKind.SpreadElement: - return OperatorPrecedence.Spread; - case typescript_1.SyntaxKind.YieldExpression: - return OperatorPrecedence.Yield; - case typescript_1.SyntaxKind.ConditionalExpression: - return OperatorPrecedence.Conditional; - case typescript_1.SyntaxKind.BinaryExpression: - switch (operatorKind) { - case typescript_1.SyntaxKind.CommaToken: - return OperatorPrecedence.Comma; - case typescript_1.SyntaxKind.EqualsToken: - case typescript_1.SyntaxKind.PlusEqualsToken: - case typescript_1.SyntaxKind.MinusEqualsToken: - case typescript_1.SyntaxKind.AsteriskAsteriskEqualsToken: - case typescript_1.SyntaxKind.AsteriskEqualsToken: - case typescript_1.SyntaxKind.SlashEqualsToken: - case typescript_1.SyntaxKind.PercentEqualsToken: - case typescript_1.SyntaxKind.LessThanLessThanEqualsToken: - case typescript_1.SyntaxKind.GreaterThanGreaterThanEqualsToken: - case typescript_1.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken: - case typescript_1.SyntaxKind.AmpersandEqualsToken: - case typescript_1.SyntaxKind.CaretEqualsToken: - case typescript_1.SyntaxKind.BarEqualsToken: - case typescript_1.SyntaxKind.BarBarEqualsToken: - case typescript_1.SyntaxKind.AmpersandAmpersandEqualsToken: - case typescript_1.SyntaxKind.QuestionQuestionEqualsToken: - return OperatorPrecedence.Assignment; - default: - return getBinaryOperatorPrecedence(operatorKind); - } - // TODO: Should prefix `++` and `--` be moved to the `Update` precedence? - case typescript_1.SyntaxKind.TypeAssertionExpression: - case typescript_1.SyntaxKind.NonNullExpression: - case typescript_1.SyntaxKind.PrefixUnaryExpression: - case typescript_1.SyntaxKind.TypeOfExpression: - case typescript_1.SyntaxKind.VoidExpression: - case typescript_1.SyntaxKind.DeleteExpression: - case typescript_1.SyntaxKind.AwaitExpression: - return OperatorPrecedence.Unary; - case typescript_1.SyntaxKind.PostfixUnaryExpression: - return OperatorPrecedence.Update; - case typescript_1.SyntaxKind.CallExpression: - return OperatorPrecedence.LeftHandSide; - case typescript_1.SyntaxKind.NewExpression: - return hasArguments - ? OperatorPrecedence.Member - : OperatorPrecedence.LeftHandSide; - case typescript_1.SyntaxKind.TaggedTemplateExpression: - case typescript_1.SyntaxKind.PropertyAccessExpression: - case typescript_1.SyntaxKind.ElementAccessExpression: - case typescript_1.SyntaxKind.MetaProperty: - return OperatorPrecedence.Member; - case typescript_1.SyntaxKind.AsExpression: - return OperatorPrecedence.Relational; - case typescript_1.SyntaxKind.ThisKeyword: - case typescript_1.SyntaxKind.SuperKeyword: - case typescript_1.SyntaxKind.Identifier: - case typescript_1.SyntaxKind.PrivateIdentifier: - case typescript_1.SyntaxKind.NullKeyword: - case typescript_1.SyntaxKind.TrueKeyword: - case typescript_1.SyntaxKind.FalseKeyword: - case typescript_1.SyntaxKind.NumericLiteral: - case typescript_1.SyntaxKind.BigIntLiteral: - case typescript_1.SyntaxKind.StringLiteral: - case typescript_1.SyntaxKind.ArrayLiteralExpression: - case typescript_1.SyntaxKind.ObjectLiteralExpression: - case typescript_1.SyntaxKind.FunctionExpression: - case typescript_1.SyntaxKind.ArrowFunction: - case typescript_1.SyntaxKind.ClassExpression: - case typescript_1.SyntaxKind.RegularExpressionLiteral: - case typescript_1.SyntaxKind.NoSubstitutionTemplateLiteral: - case typescript_1.SyntaxKind.TemplateExpression: - case typescript_1.SyntaxKind.ParenthesizedExpression: - case typescript_1.SyntaxKind.OmittedExpression: - case typescript_1.SyntaxKind.JsxElement: - case typescript_1.SyntaxKind.JsxSelfClosingElement: - case typescript_1.SyntaxKind.JsxFragment: - return OperatorPrecedence.Primary; - default: - return OperatorPrecedence.Invalid; - } -} -exports.getOperatorPrecedence = getOperatorPrecedence; -function getBinaryOperatorPrecedence(kind) { - switch (kind) { - case typescript_1.SyntaxKind.QuestionQuestionToken: - return OperatorPrecedence.Coalesce; - case typescript_1.SyntaxKind.BarBarToken: - return OperatorPrecedence.LogicalOR; - case typescript_1.SyntaxKind.AmpersandAmpersandToken: - return OperatorPrecedence.LogicalAND; - case typescript_1.SyntaxKind.BarToken: - return OperatorPrecedence.BitwiseOR; - case typescript_1.SyntaxKind.CaretToken: - return OperatorPrecedence.BitwiseXOR; - case typescript_1.SyntaxKind.AmpersandToken: - return OperatorPrecedence.BitwiseAND; - case typescript_1.SyntaxKind.EqualsEqualsToken: - case typescript_1.SyntaxKind.ExclamationEqualsToken: - case typescript_1.SyntaxKind.EqualsEqualsEqualsToken: - case typescript_1.SyntaxKind.ExclamationEqualsEqualsToken: - return OperatorPrecedence.Equality; - case typescript_1.SyntaxKind.LessThanToken: - case typescript_1.SyntaxKind.GreaterThanToken: - case typescript_1.SyntaxKind.LessThanEqualsToken: - case typescript_1.SyntaxKind.GreaterThanEqualsToken: - case typescript_1.SyntaxKind.InstanceOfKeyword: - case typescript_1.SyntaxKind.InKeyword: - case typescript_1.SyntaxKind.AsKeyword: - return OperatorPrecedence.Relational; - case typescript_1.SyntaxKind.LessThanLessThanToken: - case typescript_1.SyntaxKind.GreaterThanGreaterThanToken: - case typescript_1.SyntaxKind.GreaterThanGreaterThanGreaterThanToken: - return OperatorPrecedence.Shift; - case typescript_1.SyntaxKind.PlusToken: - case typescript_1.SyntaxKind.MinusToken: - return OperatorPrecedence.Additive; - case typescript_1.SyntaxKind.AsteriskToken: - case typescript_1.SyntaxKind.SlashToken: - case typescript_1.SyntaxKind.PercentToken: - return OperatorPrecedence.Multiplicative; - case typescript_1.SyntaxKind.AsteriskAsteriskToken: - return OperatorPrecedence.Exponentiation; - } - // -1 is lower than all other precedences. Returning it will cause binary expression - // parsing to stop. - return -1; -} -exports.getBinaryOperatorPrecedence = getBinaryOperatorPrecedence; -//# sourceMappingURL=getOperatorPrecedence.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js.map deleted file mode 100644 index 081ccd41..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getOperatorPrecedence.js","sourceRoot":"","sources":["../../src/util/getOperatorPrecedence.ts"],"names":[],"mappings":";;;AAAA,2CAAwC;AAExC,IAAY,kBA8LX;AA9LD,WAAY,kBAAkB;IAC5B,cAAc;IACd,2BAA2B;IAC3B,0CAA0C;IAC1C,6DAAK,CAAA;IAEL,iFAAiF;IACjF,iBAAiB;IACjB,iCAAiC;IACjC,+DAAM,CAAA;IAEN,wBAAwB;IACxB,4BAA4B;IAC5B,sBAAsB;IACt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AAC,uBAAuB,CAAC;QACxC,KAAK,uBAAU,CAAC,4BAA4B;YAC1C,OAAO,kBAAkB,CAAC,QAAQ,CAAC;QACrC,KAAK,uBAAU,CAAC,aAAa,CAAC;QAC9B,KAAK,uBAAU,CAAC,gBAAgB,CAAC;QACjC,KAAK,uBAAU,CAAC,mBAAmB,CAAC;QACpC,KAAK,uBAAU,CAAC,sBAAsB,CAAC;QACvC,KAAK,uBAAU,CAAC,iBAAiB,CAAC;QAClC,KAAK,uBAAU,CAAC,SAAS,CAAC;QAC1B,KAAK,uBAAU,CAAC,SAAS;YACvB,OAAO,kBAAkB,CAAC,UAAU,CAAC;QACvC,KAAK,uBAAU,CAAC,qBAAqB,CAAC;QACtC,KAAK,uBAAU,CAAC,2BAA2B,CAAC;QAC5C,KAAK,uBAAU,CAAC,sCAAsC;YACpD,OAAO,kBAAkB,CAAC,KAAK,CAAC;QAClC,KAAK,uBAAU,CAAC,SAAS,CAAC;QAC1B,KAAK,uBAAU,CAAC,UAAU;YACxB,OAAO,kBAAkB,CAAC,QAAQ,CAAC;QACrC,KAAK,uBAAU,CAAC,aAAa,CAAC;QAC9B,KAAK,uBAAU,CAAC,UAAU,CAAC;QAC3B,KAAK,uBAAU,CAAC,YAAY;YAC1B,OAAO,kBAAkB,CAAC,cAAc,CAAC;QAC3C,KAAK,uBAAU,CAAC,qBAAqB;YACnC,OAAO,kBAAkB,CAAC,cAAc,CAAC;KAC5C;IAED,qFAAqF;IACrF,mBAAmB;IACnB,OAAO,CAAC,CAAC,CAAC;AACZ,CAAC;AA/CD,kEA+CC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js deleted file mode 100644 index 586c994b..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getStringLength = void 0; -const graphemer_1 = __importDefault(require("graphemer")); -let splitter; -function isASCII(value) { - return /^[\u0020-\u007f]*$/u.test(value); -} -function getStringLength(value) { - if (isASCII(value)) { - return value.length; - } - splitter !== null && splitter !== void 0 ? splitter : (splitter = new graphemer_1.default()); - return splitter.countGraphemes(value); -} -exports.getStringLength = getStringLength; -//# sourceMappingURL=getStringLength.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js.map deleted file mode 100644 index ca277207..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getStringLength.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getStringLength.js","sourceRoot":"","sources":["../../src/util/getStringLength.ts"],"names":[],"mappings":";;;;;;AAAA,0DAAkC;AAElC,IAAI,QAAmB,CAAC;AAExB,SAAS,OAAO,CAAC,KAAa;IAC5B,OAAO,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,eAAe,CAAC,KAAa;IAC3C,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE;QAClB,OAAO,KAAK,CAAC,MAAM,CAAC;KACrB;IAED,QAAQ,aAAR,QAAQ,cAAR,QAAQ,IAAR,QAAQ,GAAK,IAAI,mBAAS,EAAE,EAAC;IAE7B,OAAO,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AACxC,CAAC;AARD,0CAQC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js deleted file mode 100644 index e0c7b0b9..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getThisExpression = void 0; -const utils_1 = require("@typescript-eslint/utils"); -function getThisExpression(node) { - while (node) { - if (node.type === utils_1.AST_NODE_TYPES.CallExpression) { - node = node.callee; - } - else if (node.type === utils_1.AST_NODE_TYPES.ThisExpression) { - return node; - } - else if (node.type === utils_1.AST_NODE_TYPES.MemberExpression) { - node = node.object; - } - else if (node.type === utils_1.AST_NODE_TYPES.ChainExpression) { - node = node.expression; - } - else { - break; - } - } - return; -} -exports.getThisExpression = getThisExpression; -//# sourceMappingURL=getThisExpression.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js.map deleted file mode 100644 index 5875ea95..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getThisExpression.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getThisExpression.js","sourceRoot":"","sources":["../../src/util/getThisExpression.ts"],"names":[],"mappings":";;;AACA,oDAA0D;AAE1D,SAAgB,iBAAiB,CAC/B,IAAmB;IAEnB,OAAO,IAAI,EAAE;QACX,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,EAAE;YAC/C,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;SACpB;aAAM,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,EAAE;YACtD,OAAO,IAAI,CAAC;SACb;aAAM,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAAE;YACxD,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;SACpB;aAAM,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,eAAe,EAAE;YACvD,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC;SACxB;aAAM;YACL,MAAM;SACP;KACF;IAED,OAAO;AACT,CAAC;AAlBD,8CAkBC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js deleted file mode 100644 index 0270c08a..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js +++ /dev/null @@ -1,141 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isStrongPrecedenceNode = exports.getWrappingFixer = void 0; -const utils_1 = require("@typescript-eslint/utils"); -/** - * Wraps node with some code. Adds parenthesis as necessary. - * @returns Fixer which adds the specified code and parens if necessary. - */ -function getWrappingFixer(params) { - const { sourceCode, node, innerNode = node, wrap } = params; - const innerNodes = Array.isArray(innerNode) ? innerNode : [innerNode]; - return (fixer) => { - const innerCodes = innerNodes.map(innerNode => { - let code = sourceCode.getText(innerNode); - // check the inner expression's precedence - if (!isStrongPrecedenceNode(innerNode)) { - // the code we are adding might have stronger precedence than our wrapped node - // let's wrap our node in parens in case it has a weaker precedence than the code we are wrapping it in - code = `(${code})`; - } - return code; - }); - // do the wrapping - let code = wrap(...innerCodes); - // check the outer expression's precedence - if (isWeakPrecedenceParent(node)) { - // we wrapped the node in some expression which very likely has a different precedence than original wrapped node - // let's wrap the whole expression in parens just in case - if (!utils_1.ASTUtils.isParenthesized(node, sourceCode)) { - code = `(${code})`; - } - } - // check if we need to insert semicolon - if (/^[`([]/.exec(code) && isMissingSemicolonBefore(node, sourceCode)) { - code = `;${code}`; - } - return fixer.replaceText(node, code); - }; -} -exports.getWrappingFixer = getWrappingFixer; -/** - * Check if a node will always have the same precedence if it's parent changes. - */ -function isStrongPrecedenceNode(innerNode) { - return (innerNode.type === utils_1.AST_NODE_TYPES.Literal || - innerNode.type === utils_1.AST_NODE_TYPES.Identifier || - innerNode.type === utils_1.AST_NODE_TYPES.ArrayExpression || - innerNode.type === utils_1.AST_NODE_TYPES.ObjectExpression || - innerNode.type === utils_1.AST_NODE_TYPES.MemberExpression || - innerNode.type === utils_1.AST_NODE_TYPES.CallExpression || - innerNode.type === utils_1.AST_NODE_TYPES.NewExpression || - innerNode.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression); -} -exports.isStrongPrecedenceNode = isStrongPrecedenceNode; -/** - * Check if a node's parent could have different precedence if the node changes. - */ -function isWeakPrecedenceParent(node) { - const parent = node.parent; - if (parent.type === utils_1.AST_NODE_TYPES.UpdateExpression || - parent.type === utils_1.AST_NODE_TYPES.UnaryExpression || - parent.type === utils_1.AST_NODE_TYPES.BinaryExpression || - parent.type === utils_1.AST_NODE_TYPES.LogicalExpression || - parent.type === utils_1.AST_NODE_TYPES.ConditionalExpression || - parent.type === utils_1.AST_NODE_TYPES.AwaitExpression) { - return true; - } - if (parent.type === utils_1.AST_NODE_TYPES.MemberExpression && - parent.object === node) { - return true; - } - if ((parent.type === utils_1.AST_NODE_TYPES.CallExpression || - parent.type === utils_1.AST_NODE_TYPES.NewExpression) && - parent.callee === node) { - return true; - } - if (parent.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression && - parent.tag === node) { - return true; - } - return false; -} -/** - * Returns true if a node is at the beginning of expression statement and the statement above doesn't end with semicolon. - * Doesn't check if the node begins with `(`, `[` or `` ` ``. - */ -function isMissingSemicolonBefore(node, sourceCode) { - for (;;) { - const parent = node.parent; - if (parent.type === utils_1.AST_NODE_TYPES.ExpressionStatement) { - const block = parent.parent; - if (block.type === utils_1.AST_NODE_TYPES.Program || - block.type === utils_1.AST_NODE_TYPES.BlockStatement) { - // parent is an expression statement in a block - const statementIndex = block.body.indexOf(parent); - const previousStatement = block.body[statementIndex - 1]; - if (statementIndex > 0 && - sourceCode.getLastToken(previousStatement).value !== ';') { - return true; - } - } - } - if (!isLeftHandSide(node)) { - return false; - } - node = parent; - } -} -/** - * Checks if a node is LHS of an operator. - */ -function isLeftHandSide(node) { - const parent = node.parent; - // a++ - if (parent.type === utils_1.AST_NODE_TYPES.UpdateExpression) { - return true; - } - // a + b - if ((parent.type === utils_1.AST_NODE_TYPES.BinaryExpression || - parent.type === utils_1.AST_NODE_TYPES.LogicalExpression || - parent.type === utils_1.AST_NODE_TYPES.AssignmentExpression) && - node === parent.left) { - return true; - } - // a ? b : c - if (parent.type === utils_1.AST_NODE_TYPES.ConditionalExpression && - node === parent.test) { - return true; - } - // a(b) - if (parent.type === utils_1.AST_NODE_TYPES.CallExpression && node === parent.callee) { - return true; - } - // a`b` - if (parent.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression && - node === parent.tag) { - return true; - } - return false; -} -//# sourceMappingURL=getWrappingFixer.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map deleted file mode 100644 index f7b614b3..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getWrappingFixer.js","sourceRoot":"","sources":["../../src/util/getWrappingFixer.ts"],"names":[],"mappings":";;;AACA,oDAAoE;AAsBpE;;;GAGG;AACH,SAAgB,gBAAgB,CAC9B,MAA2B;IAE3B,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAC5D,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEtE,OAAO,CAAC,KAAK,EAAoB,EAAE;QACjC,MAAM,UAAU,GAAG,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;YAC5C,IAAI,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YAEzC,0CAA0C;YAC1C,IAAI,CAAC,sBAAsB,CAAC,SAAS,CAAC,EAAE;gBACtC,8EAA8E;gBAC9E,uGAAuG;gBACvG,IAAI,GAAG,IAAI,IAAI,GAAG,CAAC;a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,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js deleted file mode 100644 index bda533d6..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NullThrowsReasons = exports.nullThrows = exports.getParserServices = exports.isObjectNotArray = exports.deepMerge = exports.applyDefault = void 0; -const utils_1 = require("@typescript-eslint/utils"); -__exportStar(require("./astUtils"), exports); -__exportStar(require("./collectUnusedVariables"), exports); -__exportStar(require("./createRule"), exports); -__exportStar(require("./getFunctionHeadLoc"), exports); -__exportStar(require("./getOperatorPrecedence"), exports); -__exportStar(require("./getStringLength"), exports); -__exportStar(require("./getThisExpression"), exports); -__exportStar(require("./getWrappingFixer"), exports); -__exportStar(require("./isNodeEqual"), exports); -__exportStar(require("./isNullLiteral"), exports); -__exportStar(require("./isUndefinedIdentifier"), exports); -__exportStar(require("./misc"), exports); -__exportStar(require("./objectIterators"), exports); -// this is done for convenience - saves migrating all of the old rules -__exportStar(require("@typescript-eslint/type-utils"), exports); -const { applyDefault, deepMerge, isObjectNotArray, getParserServices, nullThrows, NullThrowsReasons, } = utils_1.ESLintUtils; -exports.applyDefault = applyDefault; -exports.deepMerge = deepMerge; -exports.isObjectNotArray = isObjectNotArray; -exports.getParserServices = getParserServices; -exports.nullThrows = nullThrows; -exports.NullThrowsReasons = NullThrowsReasons; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map deleted file mode 100644 index 484378e1..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oDAAuD;AAEvD,6CAA2B;AAC3B,2DAAyC;AACzC,+CAA6B;AAC7B,uDAAqC;AACrC,0DAAwC;AACxC,oDAAkC;AAClC,sDAAoC;AACpC,qDAAmC;AACnC,gDAA8B;AAC9B,kDAAgC;AAChC,0DAAwC;AACxC,yCAAuB;AACvB,oDAAkC;AAElC,sEAAsE;AACtE,gEAA8C;AAC9C,MAAM,EACJ,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EACV,iBAAiB,GAClB,GAAG,mBAAW,CAAC;AAMd,oCAAY;AACZ,8BAAS;AACT,4CAAgB;AAChB,8CAAiB;AACjB,gCAAU;AAGV,8CAAiB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js deleted file mode 100644 index be203401..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isNodeEqual = void 0; -const utils_1 = require("@typescript-eslint/utils"); -function isNodeEqual(a, b) { - if (a.type !== b.type) { - return false; - } - if (a.type === utils_1.AST_NODE_TYPES.ThisExpression && - b.type === utils_1.AST_NODE_TYPES.ThisExpression) { - return true; - } - if (a.type === utils_1.AST_NODE_TYPES.Literal && b.type === utils_1.AST_NODE_TYPES.Literal) { - return a.value === b.value; - } - if (a.type === utils_1.AST_NODE_TYPES.Identifier && - b.type === utils_1.AST_NODE_TYPES.Identifier) { - return a.name === b.name; - } - if (a.type === utils_1.AST_NODE_TYPES.MemberExpression && - b.type === utils_1.AST_NODE_TYPES.MemberExpression) { - return (isNodeEqual(a.property, b.property) && isNodeEqual(a.object, b.object)); - } - return false; -} -exports.isNodeEqual = isNodeEqual; -//# sourceMappingURL=isNodeEqual.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js.map deleted file mode 100644 index 97942a87..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNodeEqual.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isNodeEqual.js","sourceRoot":"","sources":["../../src/util/isNodeEqual.ts"],"names":[],"mappings":";;;AACA,oDAA0D;AAE1D,SAAgB,WAAW,CAAC,CAAgB,EAAE,CAAgB;IAC5D,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,EAAE;QACrB,OAAO,KAAK,CAAC;KACd;IACD,IACE,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc;QACxC,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,EACxC;QACA,OAAO,IAAI,CAAC;KACb;IACD,IAAI,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,IAAI,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,EAAE;QAC1E,OAAO,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK,CAAC;KAC5B;IACD,IACE,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;QACpC,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EACpC;QACA,OAAO,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,CAAC;KAC1B;IACD,IACE,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QAC1C,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAC1C;QACA,OAAO,CACL,WAAW,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CACvE,CAAC;KACH;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AA5BD,kCA4BC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js deleted file mode 100644 index cd0a92e5..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isNullLiteral = void 0; -const utils_1 = require("@typescript-eslint/utils"); -function isNullLiteral(i) { - return i.type === utils_1.AST_NODE_TYPES.Literal && i.value == null; -} -exports.isNullLiteral = isNullLiteral; -//# sourceMappingURL=isNullLiteral.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js.map deleted file mode 100644 index f6fa1ad0..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/isNullLiteral.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isNullLiteral.js","sourceRoot":"","sources":["../../src/util/isNullLiteral.ts"],"names":[],"mappings":";;;AACA,oDAA0D;AAE1D,SAAgB,aAAa,CAAC,CAAgB;IAC5C,OAAO,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,IAAI,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC;AAC9D,CAAC;AAFD,sCAEC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js deleted file mode 100644 index c253d067..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isUndefinedIdentifier = void 0; -const utils_1 = require("@typescript-eslint/utils"); -function isUndefinedIdentifier(i) { - return i.type === utils_1.AST_NODE_TYPES.Identifier && i.name === 'undefined'; -} -exports.isUndefinedIdentifier = isUndefinedIdentifier; -//# sourceMappingURL=isUndefinedIdentifier.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js.map deleted file mode 100644 index 95a1c5d8..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/isUndefinedIdentifier.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isUndefinedIdentifier.js","sourceRoot":"","sources":["../../src/util/isUndefinedIdentifier.ts"],"names":[],"mappings":";;;AACA,oDAA0D;AAE1D,SAAgB,qBAAqB,CAAC,CAAgB;IACpD,OAAO,CAAC,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,IAAI,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC;AACxE,CAAC;AAFD,sDAEC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js deleted file mode 100644 index 59572397..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js +++ /dev/null @@ -1,191 +0,0 @@ -"use strict"; -/** - * @fileoverview Really small utility functions that didn't deserve their own files - */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.findLastIndex = exports.upperCaseFirst = exports.typeNodeRequiresParentheses = exports.MemberNameType = exports.isDefinitionFile = exports.getNameFromMember = exports.getNameFromIndexSignature = exports.getEnumNames = exports.formatWordList = exports.findFirstResult = exports.arraysAreEqual = exports.arrayGroupByToMap = void 0; -const type_utils_1 = require("@typescript-eslint/type-utils"); -const utils_1 = require("@typescript-eslint/utils"); -const ts = __importStar(require("typescript")); -const DEFINITION_EXTENSIONS = [ - ts.Extension.Dts, - ts.Extension.Dcts, - ts.Extension.Dmts, -]; -/** - * Check if the context file name is *.d.ts or *.d.tsx - */ -function isDefinitionFile(fileName) { - const lowerFileName = fileName.toLowerCase(); - for (const definitionExt of DEFINITION_EXTENSIONS) { - if (lowerFileName.endsWith(definitionExt)) { - return true; - } - } - return false; -} -exports.isDefinitionFile = isDefinitionFile; -/** - * Upper cases the first character or the string - */ -function upperCaseFirst(str) { - return str[0].toUpperCase() + str.slice(1); -} -exports.upperCaseFirst = upperCaseFirst; -function arrayGroupByToMap(array, getKey) { - const groups = new Map(); - for (const item of array) { - const key = getKey(item); - const existing = groups.get(key); - if (existing) { - existing.push(item); - } - else { - groups.set(key, [item]); - } - } - return groups; -} -exports.arrayGroupByToMap = arrayGroupByToMap; -function arraysAreEqual(a, b, eq) { - return (a === b || - (a !== undefined && - b !== undefined && - a.length === b.length && - a.every((x, idx) => eq(x, b[idx])))); -} -exports.arraysAreEqual = arraysAreEqual; -/** Returns the first non-`undefined` result. */ -function findFirstResult(inputs, getResult) { - for (const element of inputs) { - const result = getResult(element); - if (result !== undefined) { - return result; - } - } - return undefined; -} -exports.findFirstResult = findFirstResult; -/** - * Gets a string representation of the name of the index signature. - */ -function getNameFromIndexSignature(node) { - const propName = node.parameters.find((parameter) => parameter.type === utils_1.AST_NODE_TYPES.Identifier); - return propName ? propName.name : '(index signature)'; -} -exports.getNameFromIndexSignature = getNameFromIndexSignature; -var MemberNameType; -(function (MemberNameType) { - MemberNameType[MemberNameType["Private"] = 1] = "Private"; - MemberNameType[MemberNameType["Quoted"] = 2] = "Quoted"; - MemberNameType[MemberNameType["Normal"] = 3] = "Normal"; - MemberNameType[MemberNameType["Expression"] = 4] = "Expression"; -})(MemberNameType || (exports.MemberNameType = MemberNameType = {})); -/** - * Gets a string name representation of the name of the given MethodDefinition - * or PropertyDefinition node, with handling for computed property names. - */ -function getNameFromMember(member, sourceCode) { - if (member.key.type === utils_1.AST_NODE_TYPES.Identifier) { - return { - type: MemberNameType.Normal, - name: member.key.name, - }; - } - if (member.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier) { - return { - type: MemberNameType.Private, - name: `#${member.key.name}`, - }; - } - if (member.key.type === utils_1.AST_NODE_TYPES.Literal) { - const name = `${member.key.value}`; - if ((0, type_utils_1.requiresQuoting)(name)) { - return { - type: MemberNameType.Quoted, - name: `"${name}"`, - }; - } - else { - return { - type: MemberNameType.Normal, - name, - }; - } - } - return { - type: MemberNameType.Expression, - name: sourceCode.text.slice(...member.key.range), - }; -} -exports.getNameFromMember = getNameFromMember; -function getEnumNames(myEnum) { - return Object.keys(myEnum).filter(x => isNaN(parseInt(x))); -} -exports.getEnumNames = getEnumNames; -/** - * Given an array of words, returns an English-friendly concatenation, separated with commas, with - * the `and` clause inserted before the last item. - * - * Example: ['foo', 'bar', 'baz' ] returns the string "foo, bar, and baz". - */ -function formatWordList(words) { - if (!(words === null || words === void 0 ? void 0 : words.length)) { - return ''; - } - if (words.length === 1) { - return words[0]; - } - return [words.slice(0, -1).join(', '), words.slice(-1)[0]].join(' and '); -} -exports.formatWordList = formatWordList; -/** - * Iterates the array in reverse and returns the index of the first element it - * finds which passes the predicate function. - * - * @returns Returns the index of the element if it finds it or -1 otherwise. - */ -function findLastIndex(members, predicate) { - let idx = members.length - 1; - while (idx >= 0) { - const valid = predicate(members[idx]); - if (valid) { - return idx; - } - idx--; - } - return -1; -} -exports.findLastIndex = findLastIndex; -function typeNodeRequiresParentheses(node, text) { - return (node.type === utils_1.AST_NODE_TYPES.TSFunctionType || - node.type === utils_1.AST_NODE_TYPES.TSConstructorType || - node.type === utils_1.AST_NODE_TYPES.TSConditionalType || - (node.type === utils_1.AST_NODE_TYPES.TSUnionType && text.startsWith('|')) || - (node.type === utils_1.AST_NODE_TYPES.TSIntersectionType && text.startsWith('&'))); -} -exports.typeNodeRequiresParentheses = typeNodeRequiresParentheses; -//# sourceMappingURL=misc.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map deleted file mode 100644 index bfe3e1c8..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/util/misc.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,8DAAgE;AAEhE,oDAA0D;AAC1D,+CAAiC;AAEjC,MAAM,qBAAqB,GAAG;IAC5B,EAAE,CAAC,SAAS,CAAC,GAAG;IAChB,EAAE,CAAC,SAAS,CAAC,IAAI;IACjB,EAAE,CAAC,S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CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC3E,CAAC;AA4CC,wCAAc;AA1ChB;;;;;GAKG;AACH,SAAS,aAAa,CACpB,OAAY,EACZ,SAAoD;IAEpD,IAAI,GAAG,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;IAE7B,OAAO,GAAG,IAAI,CAAC,EAAE;QACf,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;QACtC,IAAI,KAAK,EAAE;YACT,OAAO,GAAG,CAAC;SACZ;QACD,GAAG,EAAE,CAAC;KACP;IAED,OAAO,CAAC,CAAC,CAAC;AACZ,CAAC;AA8BC,sCAAa;AA5Bf,SAAS,2BAA2B,CAClC,IAAuB,EACvB,IAAY;IAEZ,OAAO,CACL,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc;QAC3C,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB;QAC9C,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB;QAC9C,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,WAAW,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAClE,CAAC,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,kBAAkB,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAC1E,CAAC;AACJ,CAAC;AAeC,kEAA2B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js b/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js deleted file mode 100644 index 16f73364..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.objectReduceKey = exports.objectMapKey = exports.objectForEachKey = void 0; -function objectForEachKey(obj, callback) { - const keys = Object.keys(obj); - for (const key of keys) { - callback(key); - } -} -exports.objectForEachKey = objectForEachKey; -function objectMapKey(obj, callback) { - const values = []; - objectForEachKey(obj, key => { - values.push(callback(key)); - }); - return values; -} -exports.objectMapKey = objectMapKey; -function objectReduceKey(obj, callback, initial) { - let accumulator = initial; - objectForEachKey(obj, key => { - accumulator = callback(accumulator, key); - }); - return accumulator; -} -exports.objectReduceKey = objectReduceKey; -//# sourceMappingURL=objectIterators.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js.map b/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js.map deleted file mode 100644 index 82a35bf9..00000000 --- a/node_modules/@typescript-eslint/eslint-plugin/dist/util/objectIterators.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"objectIterators.js","sourceRoot":"","sources":["../../src/util/objectIterators.ts"],"names":[],"mappings":";;;AAAA,SAAS,gBAAgB,CACvB,GAAM,EACN,QAAgC;IAEhC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9B,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;QACtB,QAAQ,CAAC,GAAG,CAAC,CAAC;KACf;AACH,CAAC;AAyBQ,4CAAgB;AAvBzB,SAAS,YAAY,CACnB,GAAM,EACN,QAAmC;IAEnC,MAAM,MAAM,GAAc,EAAE,CAAC;IAC7B,gBAAgB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE;QAC1B,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC;AAc0B,oCAAY;AAZvC,SAAS,eAAe,CACtB,GAAM,EACN,QAA2D,EAC3D,OAAqB;IAErB,IAAI,WAAW,GAAG,OAAO,CAAC;IAC1B,gBAAgB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE;QAC1B,WAAW,GAAG,QAAQ,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IACH,OAAO,WAAW,CAAC;AACrB,CAAC;AAEwC,0CAAe"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/_ts3.4/dist/index.d.ts b/node_modules/@typescript-eslint/parser/_ts3.4/dist/index.d.ts deleted file mode 100644 index 84dee389..00000000 --- a/node_modules/@typescript-eslint/parser/_ts3.4/dist/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export { parse, parseForESLint, ParserOptions } from './parser'; -export { ParserServices, clearCaches, createProgram, } from '@typescript-eslint/typescript-estree'; -export declare const version: string; -export declare const meta: { - name: string; - version: string; -}; -//# sourceMappingURL=index.d.ts.map diff --git a/node_modules/@typescript-eslint/parser/_ts3.4/dist/parser.d.ts b/node_modules/@typescript-eslint/parser/_ts3.4/dist/parser.d.ts deleted file mode 100644 index 6d9cb66b..00000000 --- a/node_modules/@typescript-eslint/parser/_ts3.4/dist/parser.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { ScopeManager } from '@typescript-eslint/scope-manager'; -import { TSESTree } from '@typescript-eslint/types'; -import { ParserOptions } from '@typescript-eslint/types'; -import { ParserServices } from '@typescript-eslint/typescript-estree'; -import { visitorKeys } from '@typescript-eslint/typescript-estree'; -interface ParseForESLintResult { - ast: TSESTree.Program & { - range?: [ - number, - number - ]; - tokens?: TSESTree.Token[]; - comments?: TSESTree.Comment[]; - }; - services: ParserServices; - visitorKeys: typeof visitorKeys; - scopeManager: ScopeManager; -} -declare function parse(code: string, options?: ParserOptions): ParseForESLintResult['ast']; -declare function parseForESLint(code: string, options?: ParserOptions | null): ParseForESLintResult; -export { parse, parseForESLint, ParserOptions }; -//# sourceMappingURL=parser.d.ts.map diff --git a/node_modules/@typescript-eslint/parser/dist/index.d.ts b/node_modules/@typescript-eslint/parser/dist/index.d.ts deleted file mode 100644 index 141d89a6..00000000 --- a/node_modules/@typescript-eslint/parser/dist/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export { parse, parseForESLint, ParserOptions } from './parser'; -export { ParserServices, clearCaches, createProgram, } from '@typescript-eslint/typescript-estree'; -export declare const version: string; -export declare const meta: { - name: string; - version: string; -}; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/dist/index.d.ts.map b/node_modules/@typescript-eslint/parser/dist/index.d.ts.map deleted file mode 100644 index 904ddafd..00000000 --- a/node_modules/@typescript-eslint/parser/dist/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,EACL,cAAc,EACd,WAAW,EACX,aAAa,GACd,MAAM,sCAAsC,CAAC;AAI9C,eAAO,MAAM,OAAO,EAAE,MAA2C,CAAC;AAElE,eAAO,MAAM,IAAI;;;CAGhB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/dist/index.js b/node_modules/@typescript-eslint/parser/dist/index.js deleted file mode 100644 index 4423d6aa..00000000 --- a/node_modules/@typescript-eslint/parser/dist/index.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.meta = exports.version = exports.createProgram = exports.clearCaches = exports.parseForESLint = exports.parse = void 0; -var parser_1 = require("./parser"); -Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return parser_1.parse; } }); -Object.defineProperty(exports, "parseForESLint", { enumerable: true, get: function () { return parser_1.parseForESLint; } }); -var typescript_estree_1 = require("@typescript-eslint/typescript-estree"); -Object.defineProperty(exports, "clearCaches", { enumerable: true, get: function () { return typescript_estree_1.clearCaches; } }); -Object.defineProperty(exports, "createProgram", { enumerable: true, get: function () { return typescript_estree_1.createProgram; } }); -// note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder -// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access -exports.version = require('../package.json').version; -exports.meta = { - name: 'typescript-eslint/parser', - version: exports.version, -}; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/dist/index.js.map b/node_modules/@typescript-eslint/parser/dist/index.js.map deleted file mode 100644 index 6a360541..00000000 --- a/node_modules/@typescript-eslint/parser/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mCAAgE;AAAvD,+FAAA,KAAK,OAAA;AAAE,wGAAA,cAAc,OAAA;AAC9B,0EAI8C;AAF5C,gHAAA,WAAW,OAAA;AACX,kHAAA,aAAa,OAAA;AAGf,sHAAsH;AACtH,+GAA+G;AAClG,QAAA,OAAO,GAAW,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC;AAErD,QAAA,IAAI,GAAG;IAClB,IAAI,EAAE,0BAA0B;IAChC,OAAO,EAAP,eAAO;CACR,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/dist/parser.d.ts b/node_modules/@typescript-eslint/parser/dist/parser.d.ts deleted file mode 100644 index 7e9b34a3..00000000 --- a/node_modules/@typescript-eslint/parser/dist/parser.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { ScopeManager } from '@typescript-eslint/scope-manager'; -import type { TSESTree } from '@typescript-eslint/types'; -import { ParserOptions } from '@typescript-eslint/types'; -import type { ParserServices } from '@typescript-eslint/typescript-estree'; -import { visitorKeys } from '@typescript-eslint/typescript-estree'; -interface ParseForESLintResult { - ast: TSESTree.Program & { - range?: [number, number]; - tokens?: TSESTree.Token[]; - comments?: TSESTree.Comment[]; - }; - services: ParserServices; - visitorKeys: typeof visitorKeys; - scopeManager: ScopeManager; -} -declare function parse(code: string, options?: ParserOptions): ParseForESLintResult['ast']; -declare function parseForESLint(code: string, options?: ParserOptions | null): ParseForESLintResult; -export { parse, parseForESLint, ParserOptions }; -//# sourceMappingURL=parser.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map b/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map deleted file mode 100644 index ea825d3d..00000000 --- a/node_modules/@typescript-eslint/parser/dist/parser.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,YAAY,EACb,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAO,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EACV,cAAc,EAEf,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAEL,WAAW,EACZ,MAAM,sCAAsC,CAAC;AAO9C,UAAU,oBAAoB;IAC5B,GAAG,EAAE,QAAQ,CAAC,OAAO,GAAG;QACtB,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACzB,MAAM,CAAC,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC;QAC1B,QAAQ,CAAC,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;KAC/B,CAAC;IACF,QAAQ,EAAE,cAAc,CAAC;IACzB,WAAW,EAAE,OAAO,WAAW,CAAC;IAChC,YAAY,EAAE,YAAY,CAAC;CAC5B;AAmDD,iBAAS,KAAK,CACZ,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,aAAa,GACtB,oBAAoB,CAAC,KAAK,CAAC,CAE7B;AAED,iBAAS,cAAc,CACrB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,GAC7B,oBAAoB,CAsFtB;AAED,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/dist/parser.js b/node_modules/@typescript-eslint/parser/dist/parser.js deleted file mode 100644 index b49fac5f..00000000 --- a/node_modules/@typescript-eslint/parser/dist/parser.js +++ /dev/null @@ -1,131 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseForESLint = exports.parse = void 0; -const scope_manager_1 = require("@typescript-eslint/scope-manager"); -const typescript_estree_1 = require("@typescript-eslint/typescript-estree"); -const debug_1 = __importDefault(require("debug")); -const typescript_1 = require("typescript"); -const log = (0, debug_1.default)('typescript-eslint:parser:parser'); -function validateBoolean(value, fallback = false) { - if (typeof value !== 'boolean') { - return fallback; - } - return value; -} -const LIB_FILENAME_REGEX = /lib\.(.+)\.d\.[cm]?ts$/; -function getLib(compilerOptions) { - var _a; - if (compilerOptions.lib) { - return compilerOptions.lib.reduce((acc, lib) => { - const match = LIB_FILENAME_REGEX.exec(lib.toLowerCase()); - if (match) { - acc.push(match[1]); - } - return acc; - }, []); - } - const target = (_a = compilerOptions.target) !== null && _a !== void 0 ? _a : typescript_1.ScriptTarget.ES5; - // https://github.com/microsoft/TypeScript/blob/ae582a22ee1bb052e19b7c1bc4cac60509b574e0/src/compiler/utilitiesPublic.ts#L13-L36 - switch (target) { - case typescript_1.ScriptTarget.ESNext: - return ['esnext.full']; - case typescript_1.ScriptTarget.ES2022: - return ['es2022.full']; - case typescript_1.ScriptTarget.ES2021: - return ['es2021.full']; - case typescript_1.ScriptTarget.ES2020: - return ['es2020.full']; - case typescript_1.ScriptTarget.ES2019: - return ['es2019.full']; - case typescript_1.ScriptTarget.ES2018: - return ['es2018.full']; - case typescript_1.ScriptTarget.ES2017: - return ['es2017.full']; - case typescript_1.ScriptTarget.ES2016: - return ['es2016.full']; - case typescript_1.ScriptTarget.ES2015: - return ['es6']; - default: - return ['lib']; - } -} -function parse(code, options) { - return parseForESLint(code, options).ast; -} -exports.parse = parse; -function parseForESLint(code, options) { - if (!options || typeof options !== 'object') { - options = {}; - } - else { - options = Object.assign({}, options); - } - // https://eslint.org/docs/user-guide/configuring#specifying-parser-options - // if sourceType is not provided by default eslint expect that it will be set to "script" - if (options.sourceType !== 'module' && options.sourceType !== 'script') { - options.sourceType = 'script'; - } - if (typeof options.ecmaFeatures !== 'object') { - options.ecmaFeatures = {}; - } - const parserOptions = {}; - Object.assign(parserOptions, options, { - jsx: validateBoolean(options.ecmaFeatures.jsx), - }); - const analyzeOptions = { - ecmaVersion: options.ecmaVersion === 'latest' ? 1e8 : options.ecmaVersion, - globalReturn: options.ecmaFeatures.globalReturn, - jsxPragma: options.jsxPragma, - jsxFragmentName: options.jsxFragmentName, - lib: options.lib, - sourceType: options.sourceType, - }; - /** - * Allow the user to suppress the warning from typescript-estree if they are using an unsupported - * version of TypeScript - */ - const warnOnUnsupportedTypeScriptVersion = validateBoolean(options.warnOnUnsupportedTypeScriptVersion, true); - if (!warnOnUnsupportedTypeScriptVersion) { - parserOptions.loggerFn = false; - } - const { ast, services } = (0, typescript_estree_1.parseAndGenerateServices)(code, parserOptions); - ast.sourceType = options.sourceType; - let emitDecoratorMetadata = options.emitDecoratorMetadata === true; - if (services.hasFullTypeInformation) { - // automatically apply the options configured for the program - const compilerOptions = services.program.getCompilerOptions(); - if (analyzeOptions.lib == null) { - analyzeOptions.lib = getLib(compilerOptions); - log('Resolved libs from program: %o', analyzeOptions.lib); - } - if (analyzeOptions.jsxPragma === undefined && - compilerOptions.jsxFactory != null) { - // in case the user has specified something like "preact.h" - const factory = compilerOptions.jsxFactory.split('.')[0].trim(); - analyzeOptions.jsxPragma = factory; - log('Resolved jsxPragma from program: %s', analyzeOptions.jsxPragma); - } - if (analyzeOptions.jsxFragmentName === undefined && - compilerOptions.jsxFragmentFactory != null) { - // in case the user has specified something like "preact.Fragment" - const fragFactory = compilerOptions.jsxFragmentFactory - .split('.')[0] - .trim(); - analyzeOptions.jsxFragmentName = fragFactory; - log('Resolved jsxFragmentName from program: %s', analyzeOptions.jsxFragmentName); - } - if (compilerOptions.emitDecoratorMetadata === true) { - emitDecoratorMetadata = true; - } - } - if (emitDecoratorMetadata) { - analyzeOptions.emitDecoratorMetadata = true; - } - const scopeManager = (0, scope_manager_1.analyze)(ast, analyzeOptions); - return { ast, services, scopeManager, visitorKeys: typescript_estree_1.visitorKeys }; -} -exports.parseForESLint = parseForESLint; -//# sourceMappingURL=parser.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/parser/dist/parser.js.map b/node_modules/@typescript-eslint/parser/dist/parser.js.map deleted file mode 100644 index 5ecf9c6a..00000000 --- a/node_modules/@typescript-eslint/parser/dist/parser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser.js","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":";;;;;;AAIA,oEAA2D;AAO3D,4EAG8C;AAC9C,kDAA0B;AAE1B,2CAA0C;AAE1C,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,iCAAiC,CAAC,CAAC;AAarD,SAAS,eAAe,CACtB,KAA0B,EAC1B,QAAQ,GAAG,KAAK;IAEhB,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE;QAC9B,OAAO,QAAQ,CAAC;KACjB;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,kBAAkB,GAAG,wBAAwB,CAAC;AACpD,SAAS,MAAM,CAAC,eAAgC;;IAC9C,IAAI,eAAe,CAAC,GAAG,EAAE;QACvB,OAAO,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YAC7C,MAAM,KAAK,GAAG,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC;YACzD,IAAI,KAAK,EAAE;gBACT,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAQ,CAAC,CA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end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts deleted file mode 100644 index 679109f2..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -declare function createIdGenerator(): () => number; -declare function resetIds(): void; -export { createIdGenerator, resetIds }; -//# sourceMappingURL=ID.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map deleted file mode 100644 index 2c9c0fd0..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ID.d.ts","sourceRoot":"","sources":["../src/ID.ts"],"names":[],"mappings":"AAGA,iBAAS,iBAAiB,IAAI,MAAM,MAAM,CAUzC;AAED,iBAAS,QAAQ,IAAI,IAAI,CAExB;AAED,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/ID.js b/node_modules/@typescript-eslint/scope-manager/dist/ID.js deleted file mode 100644 index a5404c07..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/ID.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resetIds = exports.createIdGenerator = void 0; -const ID_CACHE = new Map(); -let NEXT_KEY = 0; -function createIdGenerator() { - const key = (NEXT_KEY += 1); - ID_CACHE.set(key, 0); - return () => { - var _a; - const current = (_a = ID_CACHE.get(key)) !== null && _a !== void 0 ? _a : 0; - const next = current + 1; - ID_CACHE.set(key, next); - return next; - }; -} -exports.createIdGenerator = createIdGenerator; -function resetIds() { - ID_CACHE.clear(); -} -exports.resetIds = resetIds; -//# sourceMappingURL=ID.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map b/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map deleted file mode 100644 index cdbd4659..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ID.js","sourceRoot":"","sources":["../src/ID.ts"],"names":[],"mappings":";;;AAAA,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAkB,CAAC;AAC3C,IAAI,QAAQ,GAAG,CAAC,CAAC;AAEjB,SAAS,iBAAiB;IACxB,MAAM,GAAG,GAAG,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC;IAC5B,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IAErB,OAAO,GAAW,EAAE;;QAClB,MAAM,OAAO,GAAG,MAAA,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,mCAAI,CAAC,CAAC;QACvC,MAAM,IAAI,GAAG,OAAO,GAAG,CAAC,CAAC;QACzB,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACxB,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAMQ,8CAAiB;AAJ1B,SAAS,QAAQ;IACf,QAAQ,CAAC,KAAK,EAAE,CAAC;AACnB,CAAC;AAE2B,4BAAQ"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts deleted file mode 100644 index f49db9dd..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { Scope } from './scope'; -import { BlockScope, CatchScope, ClassScope, ConditionalTypeScope, ForScope, FunctionExpressionNameScope, FunctionScope, FunctionTypeScope, GlobalScope, MappedTypeScope, ModuleScope, SwitchScope, TSEnumScope, TSModuleScope, TypeScope, WithScope } from './scope'; -import { ClassFieldInitializerScope } from './scope/ClassFieldInitializerScope'; -import { ClassStaticBlockScope } from './scope/ClassStaticBlockScope'; -import type { Variable } from './variable'; -interface ScopeManagerOptions { - globalReturn?: boolean; - sourceType?: 'module' | 'script'; - impliedStrict?: boolean; - ecmaVersion?: number; -} -declare class ScopeManager { - #private; - currentScope: Scope | null; - readonly declaredVariables: WeakMap; - /** - * The root scope - * @public - */ - globalScope: GlobalScope | null; - readonly nodeToScope: WeakMap; - /** - * All scopes - * @public - */ - readonly scopes: Scope[]; - get variables(): Variable[]; - constructor(options: ScopeManagerOptions); - isGlobalReturn(): boolean; - isModule(): boolean; - isImpliedStrict(): boolean; - isStrictModeSupported(): boolean; - isES6(): boolean; - /** - * Get the variables that a given AST node defines. The gotten variables' `def[].node`/`def[].parent` property is the node. - * If the node does not define any variable, this returns an empty array. - * @param node An AST node to get their variables. - * @public - */ - getDeclaredVariables(node: TSESTree.Node): Variable[]; - /** - * Get the scope of a given AST node. The gotten scope's `block` property is the node. - * This method never returns `function-expression-name` scope. If the node does not have their scope, this returns `null`. - * - * @param node An AST node to get their scope. - * @param inner If the node has multiple scopes, this returns the outermost scope normally. - * If `inner` is `true` then this returns the innermost scope. - * @public - */ - acquire(node: TSESTree.Node, inner?: boolean): Scope | null; - protected nestScope(scope: T): T; - nestBlockScope(node: BlockScope['block']): BlockScope; - nestCatchScope(node: CatchScope['block']): CatchScope; - nestClassScope(node: ClassScope['block']): ClassScope; - nestClassFieldInitializerScope(node: ClassFieldInitializerScope['block']): ClassFieldInitializerScope; - nestClassStaticBlockScope(node: ClassStaticBlockScope['block']): ClassStaticBlockScope; - nestConditionalTypeScope(node: ConditionalTypeScope['block']): ConditionalTypeScope; - nestForScope(node: ForScope['block']): ForScope; - nestFunctionExpressionNameScope(node: FunctionExpressionNameScope['block']): FunctionExpressionNameScope; - nestFunctionScope(node: FunctionScope['block'], isMethodDefinition: boolean): FunctionScope; - nestFunctionTypeScope(node: FunctionTypeScope['block']): FunctionTypeScope; - nestGlobalScope(node: GlobalScope['block']): GlobalScope; - nestMappedTypeScope(node: MappedTypeScope['block']): MappedTypeScope; - nestModuleScope(node: ModuleScope['block']): ModuleScope; - nestSwitchScope(node: SwitchScope['block']): SwitchScope; - nestTSEnumScope(node: TSEnumScope['block']): TSEnumScope; - nestTSModuleScope(node: TSModuleScope['block']): TSModuleScope; - nestTypeScope(node: TypeScope['block']): TypeScope; - nestWithScope(node: WithScope['block']): WithScope; -} -export { ScopeManager }; -//# sourceMappingURL=ScopeManager.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map deleted file mode 100644 index e94d5719..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ScopeManager.d.ts","sourceRoot":"","sources":["../src/ScopeManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,EACV,oBAAoB,EACpB,QAAQ,EACR,2BAA2B,EAC3B,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,WAAW,EACX,WAAW,EACX,WAAW,EACX,aAAa,EACb,SAAS,EACT,SAAS,EACV,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,UAAU,mBAAmB;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAC;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AOjB,wBAAwB,CAC7B,IAAI,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAClC,oBAAoB;IAOhB,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,QAAQ;IAK/C,+BAA+B,CACpC,IAAI,EAAE,2BAA2B,CAAC,OAAO,CAAC,GACzC,2BAA2B;IAOvB,iBAAiB,CACtB,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,EAC5B,kBAAkB,EAAE,OAAO,GAC1B,aAAa;IAOT,qBAAqB,CAC1B,IAAI,EAAE,iBAAiB,CAAC,OAAO,CAAC,GAC/B,iBAAiB;IAKb,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,WAAW;IAIxD,mBAAmB,CAAC,IAAI,EAAE,eAAe,CAAC,OAAO,CAAC,GAAG,eAAe;IAKpE,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,WAAW;IAKxD,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,WAAW;IAKxD,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,WAAW;IAKxD,iBAAiB,CAAC,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,aAAa;IAK9D,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,SAAS;IAKlD,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,SAAS;CAI1D;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js b/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js deleted file mode 100644 index 128fa802..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +++ /dev/null @@ -1,183 +0,0 @@ -"use strict"; -var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -}; -var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _ScopeManager_options; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ScopeManager = void 0; -const assert_1 = require("./assert"); -const scope_1 = require("./scope"); -const ClassFieldInitializerScope_1 = require("./scope/ClassFieldInitializerScope"); -const ClassStaticBlockScope_1 = require("./scope/ClassStaticBlockScope"); -class ScopeManager { - get variables() { - const variables = new Set(); - function recurse(scope) { - scope.variables.forEach(v => variables.add(v)); - scope.childScopes.forEach(recurse); - } - this.scopes.forEach(recurse); - return Array.from(variables).sort((a, b) => a.$id - b.$id); - } - constructor(options) { - _ScopeManager_options.set(this, void 0); - this.scopes = []; - this.globalScope = null; - this.nodeToScope = new WeakMap(); - this.currentScope = null; - __classPrivateFieldSet(this, _ScopeManager_options, options, "f"); - this.declaredVariables = new WeakMap(); - } - isGlobalReturn() { - return __classPrivateFieldGet(this, _ScopeManager_options, "f").globalReturn === true; - } - isModule() { - return __classPrivateFieldGet(this, _ScopeManager_options, "f").sourceType === 'module'; - } - isImpliedStrict() { - return __classPrivateFieldGet(this, _ScopeManager_options, "f").impliedStrict === true; - } - isStrictModeSupported() { - return __classPrivateFieldGet(this, _ScopeManager_options, "f").ecmaVersion != null && __classPrivateFieldGet(this, _ScopeManager_options, "f").ecmaVersion >= 5; - } - isES6() { - return __classPrivateFieldGet(this, _ScopeManager_options, "f").ecmaVersion != null && __classPrivateFieldGet(this, _ScopeManager_options, "f").ecmaVersion >= 6; - } - /** - * Get the variables that a given AST node defines. The gotten variables' `def[].node`/`def[].parent` property is the node. - * If the node does not define any variable, this returns an empty array. - * @param node An AST node to get their variables. - * @public - */ - getDeclaredVariables(node) { - var _a; - return (_a = this.declaredVariables.get(node)) !== null && _a !== void 0 ? _a : []; - } - /** - * Get the scope of a given AST node. The gotten scope's `block` property is the node. - * This method never returns `function-expression-name` scope. If the node does not have their scope, this returns `null`. - * - * @param node An AST node to get their scope. - * @param inner If the node has multiple scopes, this returns the outermost scope normally. - * If `inner` is `true` then this returns the innermost scope. - * @public - */ - acquire(node, inner = false) { - var _a; - function predicate(testScope) { - if (testScope.type === 'function' && testScope.functionExpressionScope) { - return false; - } - return true; - } - const scopes = this.nodeToScope.get(node); - if (!scopes || scopes.length === 0) { - return null; - } - // Heuristic selection from all scopes. - // If you would like to get all scopes, please use ScopeManager#acquireAll. - if (scopes.length === 1) { - return scopes[0]; - } - if (inner) { - for (let i = scopes.length - 1; i >= 0; --i) { - const scope = scopes[i]; - if (predicate(scope)) { - return scope; - } - } - return null; - } - return (_a = scopes.find(predicate)) !== null && _a !== void 0 ? _a : null; - } - nestScope(scope) { - if (scope instanceof scope_1.GlobalScope) { - (0, assert_1.assert)(this.currentScope == null); - this.globalScope = scope; - } - this.currentScope = scope; - return scope; - } - nestBlockScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.BlockScope(this, this.currentScope, node)); - } - nestCatchScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.CatchScope(this, this.currentScope, node)); - } - nestClassScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.ClassScope(this, this.currentScope, node)); - } - nestClassFieldInitializerScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new ClassFieldInitializerScope_1.ClassFieldInitializerScope(this, this.currentScope, node)); - } - nestClassStaticBlockScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new ClassStaticBlockScope_1.ClassStaticBlockScope(this, this.currentScope, node)); - } - nestConditionalTypeScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.ConditionalTypeScope(this, this.currentScope, node)); - } - nestForScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.ForScope(this, this.currentScope, node)); - } - nestFunctionExpressionNameScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.FunctionExpressionNameScope(this, this.currentScope, node)); - } - nestFunctionScope(node, isMethodDefinition) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.FunctionScope(this, this.currentScope, node, isMethodDefinition)); - } - nestFunctionTypeScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.FunctionTypeScope(this, this.currentScope, node)); - } - nestGlobalScope(node) { - return this.nestScope(new scope_1.GlobalScope(this, node)); - } - nestMappedTypeScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.MappedTypeScope(this, this.currentScope, node)); - } - nestModuleScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.ModuleScope(this, this.currentScope, node)); - } - nestSwitchScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.SwitchScope(this, this.currentScope, node)); - } - nestTSEnumScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.TSEnumScope(this, this.currentScope, node)); - } - nestTSModuleScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.TSModuleScope(this, this.currentScope, node)); - } - nestTypeScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.TypeScope(this, this.currentScope, node)); - } - nestWithScope(node) { - (0, assert_1.assert)(this.currentScope); - return this.nestScope(new scope_1.WithScope(this, this.currentScope, node)); - } -} -exports.ScopeManager = ScopeManager; -_ScopeManager_options = new WeakMap(); -//# sourceMappingURL=ScopeManager.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map b/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map deleted file mode 100644 index 538971a8..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ScopeManager.js","sourceRoot":"","sources":["../src/ScopeManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,qCAAkC;AAElC,mCAiBiB;AACjB,mFAAgF;AAChF,yEAAsE;AAUtE,MAAM,YAAY;IAgBhB,IAAW,SAAS;QAClB,MAAM,SAAS,GAAG,IAAI,GAAG,EAAY,CAAC;QACtC,SAAS,OAAO,CAAC,KAAY;YAC3B,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YAC/C,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACrC,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC7B,OAAO,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IAC7D,CAAC;IAED,YAAY,OAA4B;QAjB/B,wCAA8B;QAkBrC,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxB,IAAI,CAAC,WAAW,GAAG,IAAI,OAAO,EAAE,CAAC;QACjC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QACzB,uBAAA,IAAI,yBAAY,OAAO,MAAA,CAAC;QACxB,IAAI,CAAC,iBAAiB,GAAG,IAAI,OAAO,EAAE,CAA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AAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC;IACxE,CAAC;IAEM,iBAAiB,CAAC,IAA4B;QACnD,IAAA,eAAM,EAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,qBAAa,CAAC,IAAI,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC;IAC1E,CAAC;IAEM,aAAa,CAAC,IAAwB;QAC3C,IAAA,eAAM,EAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,iBAAS,CAAC,IAAI,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC;IACtE,CAAC;IAEM,aAAa,CAAC,IAAwB;QAC3C,IAAA,eAAM,EAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,iBAAS,CAAC,IAAI,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC;IACtE,CAAC;CACF;AAEQ,oCAAY"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts deleted file mode 100644 index a8b44cd2..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -import type { EcmaVersion, Lib, TSESTree } from '@typescript-eslint/types'; -import type { ReferencerOptions } from './referencer'; -import { ScopeManager } from './ScopeManager'; -interface AnalyzeOptions { - /** - * Known visitor keys. - */ - childVisitorKeys?: ReferencerOptions['childVisitorKeys']; - /** - * Which ECMAScript version is considered. - * Defaults to `2018`. - * `'latest'` is converted to 1e8 at parser. - */ - ecmaVersion?: EcmaVersion | 1e8; - /** - * Whether the whole script is executed under node.js environment. - * When enabled, the scope manager adds a function scope immediately following the global scope. - * Defaults to `false`. - */ - globalReturn?: boolean; - /** - * Implied strict mode (if ecmaVersion >= 5). - * Defaults to `false`. - */ - impliedStrict?: boolean; - /** - * The identifier that's used for JSX Element creation (after transpilation). - * This should not be a member expression - just the root identifier (i.e. use "React" instead of "React.createElement"). - * Defaults to `"React"`. - */ - jsxPragma?: string | null; - /** - * The identifier that's used for JSX fragment elements (after transpilation). - * If `null`, assumes transpilation will always use a member on `jsxFactory` (i.e. React.Fragment). - * This should not be a member expression - just the root identifier (i.e. use "h" instead of "h.Fragment"). - * Defaults to `null`. - */ - jsxFragmentName?: string | null; - /** - * The lib used by the project. - * This automatically defines a type variable for any types provided by the configured TS libs. - * Defaults to the lib for the provided `ecmaVersion`. - * - * https://www.typescriptlang.org/tsconfig#lib - */ - lib?: Lib[]; - /** - * The source type of the script. - */ - sourceType?: 'script' | 'module'; - /** - * Emit design-type metadata for decorated declarations in source. - * Defaults to `false`. - */ - emitDecoratorMetadata?: boolean; -} -/** - * Takes an AST and returns the analyzed scopes. - */ -declare function analyze(tree: TSESTree.Node, providedOptions?: AnalyzeOptions): ScopeManager; -export { analyze, AnalyzeOptions }; -//# sourceMappingURL=analyze.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map deleted file mode 100644 index 081e430f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../src/analyze.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAI3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAM9C,UAAU,cAAc;IACtB;;OAEG;IACH,gBAAgB,CAAC,EAAE,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;IAEzD;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,GAAG,CAAC;IAEhC;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEhC;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;IAEZ;;OAEG;IACH,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAEjC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AA6BD;;GAEG;AACH,iBAAS,OAAO,CACd,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,eAAe,CAAC,EAAE,cAAc,GAC/B,YAAY,CAgCd;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/analyze.js b/node_modules/@typescript-eslint/scope-manager/dist/analyze.js deleted file mode 100644 index 6240cc10..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/analyze.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.analyze = void 0; -const visitor_keys_1 = require("@typescript-eslint/visitor-keys"); -const lib_1 = require("./lib"); -const referencer_1 = require("./referencer"); -const ScopeManager_1 = require("./ScopeManager"); -const DEFAULT_OPTIONS = { - childVisitorKeys: visitor_keys_1.visitorKeys, - ecmaVersion: 2018, - globalReturn: false, - impliedStrict: false, - jsxPragma: 'React', - jsxFragmentName: null, - lib: ['es2018'], - sourceType: 'script', - emitDecoratorMetadata: false, -}; -/** - * Convert ecmaVersion to lib. - * `'latest'` is converted to 1e8 at parser. - */ -function mapEcmaVersion(version) { - if (version == null || version === 3 || version === 5) { - return 'es5'; - } - const year = version > 2000 ? version : 2015 + (version - 6); - const lib = `es${year}`; - return lib in lib_1.lib ? lib : year > 2020 ? 'esnext' : 'es5'; -} -/** - * Takes an AST and returns the analyzed scopes. - */ -function analyze(tree, providedOptions) { - var _a, _b, _c, _d, _e, _f, _g, _h; - const ecmaVersion = (_a = providedOptions === null || providedOptions === void 0 ? void 0 : providedOptions.ecmaVersion) !== null && _a !== void 0 ? _a : DEFAULT_OPTIONS.ecmaVersion; - const options = { - childVisitorKeys: (_b = providedOptions === null || providedOptions === void 0 ? void 0 : providedOptions.childVisitorKeys) !== null && _b !== void 0 ? _b : DEFAULT_OPTIONS.childVisitorKeys, - ecmaVersion, - globalReturn: (_c = providedOptions === null || providedOptions === void 0 ? void 0 : providedOptions.globalReturn) !== null && _c !== void 0 ? _c : DEFAULT_OPTIONS.globalReturn, - impliedStrict: (_d = providedOptions === null || providedOptions === void 0 ? void 0 : providedOptions.impliedStrict) !== null && _d !== void 0 ? _d : DEFAULT_OPTIONS.impliedStrict, - jsxPragma: (providedOptions === null || providedOptions === void 0 ? void 0 : providedOptions.jsxPragma) === undefined - ? DEFAULT_OPTIONS.jsxPragma - : providedOptions.jsxPragma, - jsxFragmentName: (_e = providedOptions === null || providedOptions === void 0 ? void 0 : providedOptions.jsxFragmentName) !== null && _e !== void 0 ? _e : DEFAULT_OPTIONS.jsxFragmentName, - sourceType: (_f = providedOptions === null || providedOptions === void 0 ? void 0 : providedOptions.sourceType) !== null && _f !== void 0 ? _f : DEFAULT_OPTIONS.sourceType, - lib: (_g = providedOptions === null || providedOptions === void 0 ? void 0 : providedOptions.lib) !== null && _g !== void 0 ? _g : [mapEcmaVersion(ecmaVersion)], - emitDecoratorMetadata: (_h = providedOptions === null || providedOptions === void 0 ? void 0 : providedOptions.emitDecoratorMetadata) !== null && _h !== void 0 ? _h : DEFAULT_OPTIONS.emitDecoratorMetadata, - }; - // ensure the option is lower cased - options.lib = options.lib.map(l => l.toLowerCase()); - const scopeManager = new ScopeManager_1.ScopeManager(options); - const referencer = new referencer_1.Referencer(options, scopeManager); - referencer.visit(tree); - return scopeManager; -} -exports.analyze = analyze; -//# sourceMappingURL=analyze.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map b/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map deleted file mode 100644 index d41c2afd..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"analyze.js","sourceRoot":"","sources":["../src/analyze.ts"],"names":[],"mappings":";;;AACA,kEAA8D;AAE9D,+BAA2C;AAE3C,6CAA0C;AAC1C,iDAA8C;AAoE9C,MAAM,eAAe,GAA6B;IAChD,gBAAgB,EAAE,0BAAW;IAC7B,WAAW,EAAE,IAAI;IACjB,YAAY,EAAE,KAAK;IACnB,aAAa,EAAE,KAAK;IACpB,SAAS,EAAE,OAAO;IAClB,eAAe,EAAE,IAAI;IACrB,GAAG,EAAE,CAAC,QAAQ,CAAC;IACf,UAAU,EAAE,QAAQ;IACpB,qBAAqB,EAAE,KAAK;CAC7B,CAAC;AAEF;;;GAGG;AACH,SAAS,cAAc,CAAC,OAAsC;IAC5D,IAAI,OAAO,IAAI,IAAI,IAAI,OAAO,KAAK,CAAC,IAAI,OAAO,KAAK,CAAC,EAAE;QACrD,OAAO,KAAK,CAAC;KACd;IAED,MAAM,IAAI,GAAG,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;IAC7D,MAAM,GAAG,GAAG,KAAK,IAAI,EAAE,CAAC;IAExB,OAAO,GAAG,IAAI,SAAW,CAAC,CAAC,CAAE,GAAW,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,C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2BAAY,CAAC,OAAO,CAAC,CAAC;IAC/C,MAAM,UAAU,GAAG,IAAI,uBAAU,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAEzD,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAEvB,OAAO,YAAY,CAAC;AACtB,CAAC;AAEQ,0BAAO"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts deleted file mode 100644 index bd40c9e2..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare function assert(value: unknown, message?: string): asserts value; -export { assert }; -//# sourceMappingURL=assert.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map deleted file mode 100644 index 72f278dd..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../src/assert.ts"],"names":[],"mappings":"AACA,iBAAS,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAI/D;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/assert.js b/node_modules/@typescript-eslint/scope-manager/dist/assert.js deleted file mode 100644 index 8c805233..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/assert.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.assert = void 0; -// the base assert module doesn't use ts assertion syntax -function assert(value, message) { - if (value == null) { - throw new Error(message); - } -} -exports.assert = assert; -//# sourceMappingURL=assert.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map b/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map deleted file mode 100644 index 60cbdc27..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"assert.js","sourceRoot":"","sources":["../src/assert.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,SAAS,MAAM,CAAC,KAAc,EAAE,OAAgB;IAC9C,IAAI,KAAK,IAAI,IAAI,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;KAC1B;AACH,CAAC;AAEQ,wBAAM"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts deleted file mode 100644 index a90f8b67..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class CatchClauseDefinition extends DefinitionBase { - constructor(name: TSESTree.BindingName, node: CatchClauseDefinition['node']); - readonly isTypeDefinition = false; - readonly isVariableDefinition = true; -} -export { CatchClauseDefinition }; -//# sourceMappingURL=CatchClauseDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map deleted file mode 100644 index 368d7928..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CatchClauseDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/CatchClauseDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,qBAAsB,SAAQ,cAAc,CAChD,cAAc,CAAC,WAAW,EAC1B,QAAQ,CAAC,WAAW,EACpB,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;gBACa,IAAI,EAAE,QAAQ,CAAC,WAAW,EAAE,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAAC;IAI3E,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;CAC7C;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js b/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js deleted file mode 100644 index 5928764c..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CatchClauseDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class CatchClauseDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node) { - super(DefinitionType_1.DefinitionType.CatchClause, name, node, null); - this.isTypeDefinition = false; - this.isVariableDefinition = true; - } -} -exports.CatchClauseDefinition = CatchClauseDefinition; -//# sourceMappingURL=CatchClauseDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map deleted file mode 100644 index f6e5179c..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CatchClauseDefinition.js","sourceRoot":"","sources":["../../src/definition/CatchClauseDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,qBAAsB,SAAQ,+BAKnC;IACC,YAAY,IAA0B,EAAE,IAAmC;QACzE,KAAK,CAAC,+BAAc,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAGtC,qBAAgB,GAAG,KAAK,CAAC;QACzB,yBAAoB,GAAG,IAAI,CAAC;IAH5C,CAAC;CAIF;AAEQ,sDAAqB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts deleted file mode 100644 index 0bbea30e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class ClassNameDefinition extends DefinitionBase { - constructor(name: TSESTree.Identifier, node: ClassNameDefinition['node']); - readonly isTypeDefinition = true; - readonly isVariableDefinition = true; -} -export { ClassNameDefinition }; -//# sourceMappingURL=ClassNameDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map deleted file mode 100644 index 6e78e38b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ClassNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,mBAAoB,SAAQ,cAAc,CAC9C,cAAc,CAAC,SAAS,EACxB,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,EACpD,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;gBACa,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC;IAIxE,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;CAC7C;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js b/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js deleted file mode 100644 index 82b70c7c..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ClassNameDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class ClassNameDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node) { - super(DefinitionType_1.DefinitionType.ClassName, name, node, null); - this.isTypeDefinition = true; - this.isVariableDefinition = true; - } -} -exports.ClassNameDefinition = ClassNameDefinition; -//# sourceMappingURL=ClassNameDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map deleted file mode 100644 index a8035912..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassNameDefinition.js","sourceRoot":"","sources":["../../src/definition/ClassNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,mBAAoB,SAAQ,+BAKjC;IACC,YAAY,IAAyB,EAAE,IAAiC;QACtE,KAAK,CAAC,+BAAc,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAGpC,qBAAgB,GAAG,IAAI,CAAC;QACxB,yBAAoB,GAAG,IAAI,CAAC;IAH5C,CAAC;CAIF;AAEQ,kDAAmB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts deleted file mode 100644 index fa6c9fdd..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { CatchClauseDefinition } from './CatchClauseDefinition'; -import type { ClassNameDefinition } from './ClassNameDefinition'; -import type { FunctionNameDefinition } from './FunctionNameDefinition'; -import type { ImplicitGlobalVariableDefinition } from './ImplicitGlobalVariableDefinition'; -import type { ImportBindingDefinition } from './ImportBindingDefinition'; -import type { ParameterDefinition } from './ParameterDefinition'; -import type { TSEnumMemberDefinition } from './TSEnumMemberDefinition'; -import type { TSEnumNameDefinition } from './TSEnumNameDefinition'; -import type { TSModuleNameDefinition } from './TSModuleNameDefinition'; -import type { TypeDefinition } from './TypeDefinition'; -import type { VariableDefinition } from './VariableDefinition'; -type Definition = CatchClauseDefinition | ClassNameDefinition | FunctionNameDefinition | ImplicitGlobalVariableDefinition | ImportBindingDefinition | ParameterDefinition | TSEnumMemberDefinition | TSEnumNameDefinition | TSModuleNameDefinition | TypeDefinition | VariableDefinition; -export { Definition }; -//# sourceMappingURL=Definition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map deleted file mode 100644 index 543ca27a..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Definition.d.ts","sourceRoot":"","sources":["../../src/definition/Definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,KAAK,UAAU,GACX,qBAAqB,GACrB,mBAAmB,GACnB,sBAAsB,GACtB,gCAAgC,GAChC,uBAAuB,GACvB,mBAAmB,GACnB,sBAAsB,GACtB,oBAAoB,GACpB,sBAAsB,GACtB,cAAc,GACd,kBAAkB,CAAC;AAEvB,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js b/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js deleted file mode 100644 index 0d4aab95..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Definition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map deleted file mode 100644 index be4a7fb3..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Definition.js","sourceRoot":"","sources":["../../src/definition/Definition.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts deleted file mode 100644 index 9ee1ee7d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { DefinitionType } from './DefinitionType'; -declare abstract class DefinitionBase { - /** - * A unique ID for this instance - primarily used to help debugging and testing - */ - readonly $id: number; - /** - * The type of the definition - * @public - */ - readonly type: TType; - /** - * The `Identifier` node of this definition - * @public - */ - readonly name: TName; - /** - * The enclosing node of the name. - * @public - */ - readonly node: TNode; - /** - * the enclosing statement node of the identifier. - * @public - */ - readonly parent: TParent; - constructor(type: TType, name: TName, node: TNode, parent: TParent); - /** - * `true` if the variable is valid in a type context, false otherwise - */ - abstract readonly isTypeDefinition: boolean; - /** - * `true` if the variable is valid in a value context, false otherwise - */ - abstract readonly isVariableDefinition: boolean; -} -export { DefinitionBase }; -//# sourceMappingURL=DefinitionBase.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map deleted file mode 100644 index 3f8b1965..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DefinitionBase.d.ts","sourceRoot":"","sources":["../../src/definition/DefinitionBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIvD,uBAAe,cAAc,CAC3B,KAAK,SAAS,cAAc,EAC5B,KAAK,SAAS,QAAQ,CAAC,IAAI,EAC3B,OAAO,SAAS,QAAQ,CAAC,IAAI,GAAG,IAAI,EACpC,KAAK,SAAS,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,WAAW;IAElD;;OAEG;IACH,SAAgB,GAAG,EAAE,MAAM,CAAe;IAE1C;;;OAGG;IACH,SAAgB,IAAI,EAAE,KAAK,CAAC;IAE5B;;;OAGG;IACH,SAAgB,IAAI,EAAE,KAAK,CAAC;IAE5B;;;OAGG;IACH,SAAgB,IAAI,EAAE,KAAK,CAAC;IAE5B;;;OAGG;IACH,SAAgB,MAAM,EAAE,OAAO,CAAC;gBAEpB,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO;IAOlE;;OAEG;IACH,kBAAyB,gBAAgB,EAAE,OAAO,CAAC;IAEnD;;OAEG;IACH,kBAAyB,oBAAoB,EAAE,OAAO,CAAC;CACxD;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js b/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js deleted file mode 100644 index e8c3de6c..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DefinitionBase = void 0; -const ID_1 = require("../ID"); -const generator = (0, ID_1.createIdGenerator)(); -class DefinitionBase { - constructor(type, name, node, parent) { - /** - * A unique ID for this instance - primarily used to help debugging and testing - */ - this.$id = generator(); - this.type = type; - this.name = name; - this.node = node; - this.parent = parent; - } -} -exports.DefinitionBase = DefinitionBase; -//# sourceMappingURL=DefinitionBase.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map deleted file mode 100644 index be59484e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DefinitionBase.js","sourceRoot":"","sources":["../../src/definition/DefinitionBase.ts"],"names":[],"mappings":";;;AAEA,8BAA0C;AAG1C,MAAM,SAAS,GAAG,IAAA,sBAAiB,GAAE,CAAC;AAEtC,MAAe,cAAc;IAmC3B,YAAY,IAAW,EAAE,IAAW,EAAE,IAAW,EAAE,MAAe;QA7BlE;;WAEG;QACa,QAAG,GAAW,SAAS,EAAE,CAAC;QA2BxC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CAWF;AAEQ,wCAAc"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts deleted file mode 100644 index d86220d8..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -declare enum DefinitionType { - CatchClause = "CatchClause", - ClassName = "ClassName", - FunctionName = "FunctionName", - ImplicitGlobalVariable = "ImplicitGlobalVariable", - ImportBinding = "ImportBinding", - Parameter = "Parameter", - TSEnumName = "TSEnumName", - TSEnumMember = "TSEnumMemberName", - TSModuleName = "TSModuleName", - Type = "Type", - Variable = "Variable" -} -export { DefinitionType }; -//# sourceMappingURL=DefinitionType.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map deleted file mode 100644 index c3614a6b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DefinitionType.d.ts","sourceRoot":"","sources":["../../src/definition/DefinitionType.ts"],"names":[],"mappings":"AAAA,aAAK,cAAc;IACjB,WAAW,gBAAgB;IAC3B,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,sBAAsB,2BAA2B;IACjD,aAAa,kBAAkB;IAC/B,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,YAAY,qBAAqB;IACjC,YAAY,iBAAiB;IAC7B,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js b/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js deleted file mode 100644 index 07cc9afa..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DefinitionType = void 0; -var DefinitionType; -(function (DefinitionType) { - DefinitionType["CatchClause"] = "CatchClause"; - DefinitionType["ClassName"] = "ClassName"; - DefinitionType["FunctionName"] = "FunctionName"; - DefinitionType["ImplicitGlobalVariable"] = "ImplicitGlobalVariable"; - DefinitionType["ImportBinding"] = "ImportBinding"; - DefinitionType["Parameter"] = "Parameter"; - DefinitionType["TSEnumName"] = "TSEnumName"; - DefinitionType["TSEnumMember"] = "TSEnumMemberName"; - DefinitionType["TSModuleName"] = "TSModuleName"; - DefinitionType["Type"] = "Type"; - DefinitionType["Variable"] = "Variable"; -})(DefinitionType || (exports.DefinitionType = DefinitionType = {})); -//# sourceMappingURL=DefinitionType.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map deleted file mode 100644 index 042fd302..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DefinitionType.js","sourceRoot":"","sources":["../../src/definition/DefinitionType.ts"],"names":[],"mappings":";;;AAAA,IAAK,cAYJ;AAZD,WAAK,cAAc;IACjB,6CAA2B,CAAA;IAC3B,yCAAuB,CAAA;IACvB,+CAA6B,CAAA;IAC7B,mEAAiD,CAAA;IACjD,iDAA+B,CAAA;IAC/B,yCAAuB,CAAA;IACvB,2CAAyB,CAAA;IACzB,mDAAiC,CAAA;IACjC,+CAA6B,CAAA;IAC7B,+BAAa,CAAA;IACb,uCAAqB,CAAA;AACvB,CAAC,EAZI,cAAc,8BAAd,cAAc,QAYlB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts deleted file mode 100644 index 9cd99201..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class FunctionNameDefinition extends DefinitionBase { - constructor(name: TSESTree.Identifier, node: FunctionNameDefinition['node']); - readonly isTypeDefinition = false; - readonly isVariableDefinition = true; -} -export { FunctionNameDefinition }; -//# sourceMappingURL=FunctionNameDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map deleted file mode 100644 index ffe1b2fb..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FunctionNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/FunctionNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,sBAAuB,SAAQ,cAAc,CACjD,cAAc,CAAC,YAAY,EACzB,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,6BAA6B,EACxC,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;gBACa,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;IAI3E,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;CAC7C;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js b/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js deleted file mode 100644 index ae9bed42..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FunctionNameDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class FunctionNameDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node) { - super(DefinitionType_1.DefinitionType.FunctionName, name, node, null); - this.isTypeDefinition = false; - this.isVariableDefinition = true; - } -} -exports.FunctionNameDefinition = FunctionNameDefinition; -//# sourceMappingURL=FunctionNameDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map deleted file mode 100644 index 2c9063e6..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FunctionNameDefinition.js","sourceRoot":"","sources":["../../src/definition/FunctionNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,sBAAuB,SAAQ,+BAQpC;IACC,YAAY,IAAyB,EAAE,IAAoC;QACzE,KAAK,CAAC,+BAAc,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAGvC,qBAAgB,GAAG,KAAK,CAAC;QACzB,yBAAoB,GAAG,IAAI,CAAC;IAH5C,CAAC;CAIF;AAEQ,wDAAsB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts deleted file mode 100644 index c1b190b8..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class ImplicitGlobalVariableDefinition extends DefinitionBase { - constructor(name: TSESTree.BindingName, node: ImplicitGlobalVariableDefinition['node']); - readonly isTypeDefinition = false; - readonly isVariableDefinition = true; -} -export { ImplicitGlobalVariableDefinition }; -//# sourceMappingURL=ImplicitGlobalVariableDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map deleted file mode 100644 index 151b3647..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ImplicitGlobalVariableDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ImplicitGlobalVariableDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,gCAAiC,SAAQ,cAAc,CAC3D,cAAc,CAAC,sBAAsB,EACrC,QAAQ,CAAC,IAAI,EACb,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;gBAEG,IAAI,EAAE,QAAQ,CAAC,WAAW,EAC1B,IAAI,EAAE,gCAAgC,CAAC,MAAM,CAAC;IAKhD,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;CAC7C;AAED,OAAO,EAAE,gCAAgC,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js b/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js deleted file mode 100644 index 8da8451e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ImplicitGlobalVariableDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class ImplicitGlobalVariableDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node) { - super(DefinitionType_1.DefinitionType.ImplicitGlobalVariable, name, node, null); - this.isTypeDefinition = false; - this.isVariableDefinition = true; - } -} -exports.ImplicitGlobalVariableDefinition = ImplicitGlobalVariableDefinition; -//# sourceMappingURL=ImplicitGlobalVariableDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map deleted file mode 100644 index 043656a4..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ImplicitGlobalVariableDefinition.js","sourceRoot":"","sources":["../../src/definition/ImplicitGlobalVariableDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,gCAAiC,SAAQ,+BAK9C;IACC,YACE,IAA0B,EAC1B,IAA8C;QAE9C,KAAK,CAAC,+BAAc,CAAC,sBAAsB,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAGjD,qBAAgB,GAAG,KAAK,CAAC;QACzB,yBAAoB,GAAG,IAAI,CAAC;IAH5C,CAAC;CAIF;AAEQ,4EAAgC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts deleted file mode 100644 index 5cf7ec2b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class ImportBindingDefinition extends DefinitionBase { - constructor(name: TSESTree.Identifier, node: TSESTree.TSImportEqualsDeclaration, decl: TSESTree.TSImportEqualsDeclaration); - constructor(name: TSESTree.Identifier, node: Exclude, decl: TSESTree.ImportDeclaration); - readonly isTypeDefinition = true; - readonly isVariableDefinition = true; -} -export { ImportBindingDefinition }; -//# sourceMappingURL=ImportBindingDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map deleted file mode 100644 index 5d7e72fc..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ImportBindingDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ImportBindingDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,uBAAwB,SAAQ,cAAc,CAClD,cAAc,CAAC,aAAa,EAC1B,QAAQ,CAAC,eAAe,GACxB,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,wBAAwB,GACjC,QAAQ,CAAC,yBAAyB,EACpC,QAAQ,CAAC,iBAAiB,GAAG,QAAQ,CAAC,yBAAyB,EAC/D,QAAQ,CAAC,UAAU,CACpB;gBAEG,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,QAAQ,CAAC,yBAAyB,EACxC,IAAI,EAAE,QAAQ,CAAC,yBAAyB;gBAGxC,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,OAAO,CACX,uBAAuB,CAAC,MAAM,CAAC,EAC/B,QAAQ,CAAC,yBAAyB,CACnC,EACD,IAAI,EAAE,QAAQ,CAAC,iBAAiB;IAUlC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;CAC7C;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js b/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js deleted file mode 100644 index 9c744899..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ImportBindingDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class ImportBindingDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node, decl) { - super(DefinitionType_1.DefinitionType.ImportBinding, name, node, decl); - this.isTypeDefinition = true; - this.isVariableDefinition = true; - } -} -exports.ImportBindingDefinition = ImportBindingDefinition; -//# sourceMappingURL=ImportBindingDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map deleted file mode 100644 index 2a0c9e6e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ImportBindingDefinition.js","sourceRoot":"","sources":["../../src/definition/ImportBindingDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,uBAAwB,SAAQ,+BAQrC;IAcC,YACE,IAAyB,EACzB,IAAqC,EACrC,IAAqE;QAErE,KAAK,CAAC,+BAAc,CAAC,aAAa,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAGxC,qBAAgB,GAAG,IAAI,CAAC;QACxB,yBAAoB,GAAG,IAAI,CAAC;IAH5C,CAAC;CAIF;AAEQ,0DAAuB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts deleted file mode 100644 index dd132e95..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class ParameterDefinition extends DefinitionBase { - /** - * Whether the parameter definition is a part of a rest parameter. - */ - readonly rest: boolean; - constructor(name: TSESTree.BindingName, node: ParameterDefinition['node'], rest: boolean); - readonly isTypeDefinition = false; - readonly isVariableDefinition = true; -} -export { ParameterDefinition }; -//# sourceMappingURL=ParameterDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map deleted file mode 100644 index 587d8a96..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ParameterDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/ParameterDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,mBAAoB,SAAQ,cAAc,CAC9C,cAAc,CAAC,SAAS,EACtB,QAAQ,CAAC,uBAAuB,GAChC,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,+BAA+B,GACxC,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,6BAA6B,GACtC,QAAQ,CAAC,cAAc,GACvB,QAAQ,CAAC,iBAAiB,EAC5B,IAAI,EACJ,QAAQ,CAAC,WAAW,CACrB;IACC;;OAEG;IACH,SAAgB,IAAI,EAAE,OAAO,CAAC;gBAE5B,IAAI,EAAE,QAAQ,CAAC,WAAW,EAC1B,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC,EACjC,IAAI,EAAE,OAAO;IAMf,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;CAC7C;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js b/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js deleted file mode 100644 index 8a3ffb66..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ParameterDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class ParameterDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node, rest) { - super(DefinitionType_1.DefinitionType.Parameter, name, node, null); - this.isTypeDefinition = false; - this.isVariableDefinition = true; - this.rest = rest; - } -} -exports.ParameterDefinition = ParameterDefinition; -//# sourceMappingURL=ParameterDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map deleted file mode 100644 index 3e83d02b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ParameterDefinition.js","sourceRoot":"","sources":["../../src/definition/ParameterDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,mBAAoB,SAAQ,+BAcjC;IAKC,YACE,IAA0B,EAC1B,IAAiC,EACjC,IAAa;QAEb,KAAK,CAAC,+BAAc,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAIpC,qBAAgB,GAAG,KAAK,CAAC;QACzB,yBAAoB,GAAG,IAAI,CAAC;QAJ1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CAIF;AAEQ,kDAAmB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts deleted file mode 100644 index b721e748..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class TSEnumMemberDefinition extends DefinitionBase { - constructor(name: TSESTree.Identifier | TSESTree.StringLiteral, node: TSEnumMemberDefinition['node']); - readonly isTypeDefinition = true; - readonly isVariableDefinition = true; -} -export { TSEnumMemberDefinition }; -//# sourceMappingURL=TSEnumMemberDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map deleted file mode 100644 index 0f7e7484..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TSEnumMemberDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TSEnumMemberDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,sBAAuB,SAAQ,cAAc,CACjD,cAAc,CAAC,YAAY,EAC3B,QAAQ,CAAC,YAAY,EACrB,IAAI,EACJ,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,CAC7C;gBAEG,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,EAClD,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;IAKtC,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;CAC7C;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js b/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js deleted file mode 100644 index c7d43dbf..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSEnumMemberDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class TSEnumMemberDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node) { - super(DefinitionType_1.DefinitionType.TSEnumMember, name, node, null); - this.isTypeDefinition = true; - this.isVariableDefinition = true; - } -} -exports.TSEnumMemberDefinition = TSEnumMemberDefinition; -//# sourceMappingURL=TSEnumMemberDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map deleted file mode 100644 index bb6be007..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TSEnumMemberDefinition.js","sourceRoot":"","sources":["../../src/definition/TSEnumMemberDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,sBAAuB,SAAQ,+BAKpC;IACC,YACE,IAAkD,EAClD,IAAoC;QAEpC,KAAK,CAAC,+BAAc,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAGvC,qBAAgB,GAAG,IAAI,CAAC;QACxB,yBAAoB,GAAG,IAAI,CAAC;IAH5C,CAAC;CAIF;AAEQ,wDAAsB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts deleted file mode 100644 index 229ec5d9..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class TSEnumNameDefinition extends DefinitionBase { - constructor(name: TSESTree.Identifier, node: TSEnumNameDefinition['node']); - readonly isTypeDefinition = true; - readonly isVariableDefinition = true; -} -export { TSEnumNameDefinition }; -//# sourceMappingURL=TSEnumNameDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map deleted file mode 100644 index af93b730..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TSEnumNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TSEnumNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,oBAAqB,SAAQ,cAAc,CAC/C,cAAc,CAAC,UAAU,EACzB,QAAQ,CAAC,iBAAiB,EAC1B,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;gBACa,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,oBAAoB,CAAC,MAAM,CAAC;IAIzE,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;CAC7C;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js b/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js deleted file mode 100644 index ff3596b8..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSEnumNameDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class TSEnumNameDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node) { - super(DefinitionType_1.DefinitionType.TSEnumName, name, node, null); - this.isTypeDefinition = true; - this.isVariableDefinition = true; - } -} -exports.TSEnumNameDefinition = TSEnumNameDefinition; -//# sourceMappingURL=TSEnumNameDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map deleted file mode 100644 index 5e87ffa6..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TSEnumNameDefinition.js","sourceRoot":"","sources":["../../src/definition/TSEnumNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,oBAAqB,SAAQ,+BAKlC;IACC,YAAY,IAAyB,EAAE,IAAkC;QACvE,KAAK,CAAC,+BAAc,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAGrC,qBAAgB,GAAG,IAAI,CAAC;QACxB,yBAAoB,GAAG,IAAI,CAAC;IAH5C,CAAC;CAIF;AAEQ,oDAAoB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts deleted file mode 100644 index 59556e02..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class TSModuleNameDefinition extends DefinitionBase { - constructor(name: TSESTree.Identifier, node: TSModuleNameDefinition['node']); - readonly isTypeDefinition = true; - readonly isVariableDefinition = true; -} -export { TSModuleNameDefinition }; -//# sourceMappingURL=TSModuleNameDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map deleted file mode 100644 index 6f7a624f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TSModuleNameDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TSModuleNameDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,sBAAuB,SAAQ,cAAc,CACjD,cAAc,CAAC,YAAY,EAC3B,QAAQ,CAAC,mBAAmB,EAC5B,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;gBACa,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;IAI3E,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,QAAQ;CAC7C;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js b/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js deleted file mode 100644 index dc4d5ded..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSModuleNameDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class TSModuleNameDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node) { - super(DefinitionType_1.DefinitionType.TSModuleName, name, node, null); - this.isTypeDefinition = true; - this.isVariableDefinition = true; - } -} -exports.TSModuleNameDefinition = TSModuleNameDefinition; -//# sourceMappingURL=TSModuleNameDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map deleted file mode 100644 index 433071f3..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TSModuleNameDefinition.js","sourceRoot":"","sources":["../../src/definition/TSModuleNameDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,sBAAuB,SAAQ,+BAKpC;IACC,YAAY,IAAyB,EAAE,IAAoC;QACzE,KAAK,CAAC,+BAAc,CAAC,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAGvC,qBAAgB,GAAG,IAAI,CAAC;QACxB,yBAAoB,GAAG,IAAI,CAAC;IAH5C,CAAC;CAIF;AAEQ,wDAAsB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts deleted file mode 100644 index 4a1a899b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class TypeDefinition extends DefinitionBase { - constructor(name: TSESTree.Identifier, node: TypeDefinition['node']); - readonly isTypeDefinition = true; - readonly isVariableDefinition = false; -} -export { TypeDefinition }; -//# sourceMappingURL=TypeDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map deleted file mode 100644 index 679746ee..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TypeDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/TypeDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,cAAe,SAAQ,cAAc,CACzC,cAAc,CAAC,IAAI,EACjB,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,eAAe,EAC1B,IAAI,EACJ,QAAQ,CAAC,UAAU,CACpB;gBACa,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;IAInE,SAAgB,gBAAgB,QAAQ;IACxC,SAAgB,oBAAoB,SAAS;CAC9C;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js b/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js deleted file mode 100644 index 606ca5a6..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TypeDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class TypeDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node) { - super(DefinitionType_1.DefinitionType.Type, name, node, null); - this.isTypeDefinition = true; - this.isVariableDefinition = false; - } -} -exports.TypeDefinition = TypeDefinition; -//# sourceMappingURL=TypeDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map deleted file mode 100644 index 44377db2..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TypeDefinition.js","sourceRoot":"","sources":["../../src/definition/TypeDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,cAAe,SAAQ,+BAO5B;IACC,YAAY,IAAyB,EAAE,IAA4B;QACjE,KAAK,CAAC,+BAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAG/B,qBAAgB,GAAG,IAAI,CAAC;QACxB,yBAAoB,GAAG,KAAK,CAAC;IAH7C,CAAC;CAIF;AAEQ,wCAAc"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts deleted file mode 100644 index 3540edb2..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { DefinitionBase } from './DefinitionBase'; -import { DefinitionType } from './DefinitionType'; -declare class VariableDefinition extends DefinitionBase { - constructor(name: TSESTree.Identifier, node: VariableDefinition['node'], decl: TSESTree.VariableDeclaration); - readonly isTypeDefinition = false; - readonly isVariableDefinition = true; -} -export { VariableDefinition }; -//# sourceMappingURL=VariableDefinition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map deleted file mode 100644 index 207365ae..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VariableDefinition.d.ts","sourceRoot":"","sources":["../../src/definition/VariableDefinition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,cAAM,kBAAmB,SAAQ,cAAc,CAC7C,cAAc,CAAC,QAAQ,EACvB,QAAQ,CAAC,kBAAkB,EAC3B,QAAQ,CAAC,mBAAmB,EAC5B,QAAQ,CAAC,UAAU,CACpB;gBAEG,IAAI,EAAE,QAAQ,CAAC,UAAU,EACzB,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,EAChC,IAAI,EAAE,QAAQ,CAAC,mBAAmB;IAKpC,SAAgB,gBAAgB,SAAS;IACzC,SAAgB,oBAAoB,QAAQ;CAC7C;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js b/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js deleted file mode 100644 index 7bacc6ef..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.VariableDefinition = void 0; -const DefinitionBase_1 = require("./DefinitionBase"); -const DefinitionType_1 = require("./DefinitionType"); -class VariableDefinition extends DefinitionBase_1.DefinitionBase { - constructor(name, node, decl) { - super(DefinitionType_1.DefinitionType.Variable, name, node, decl); - this.isTypeDefinition = false; - this.isVariableDefinition = true; - } -} -exports.VariableDefinition = VariableDefinition; -//# sourceMappingURL=VariableDefinition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map deleted file mode 100644 index f083868b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VariableDefinition.js","sourceRoot":"","sources":["../../src/definition/VariableDefinition.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAClD,qDAAkD;AAElD,MAAM,kBAAmB,SAAQ,+BAKhC;IACC,YACE,IAAyB,EACzB,IAAgC,EAChC,IAAkC;QAElC,KAAK,CAAC,+BAAc,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAGnC,qBAAgB,GAAG,KAAK,CAAC;QACzB,yBAAoB,GAAG,IAAI,CAAC;IAH5C,CAAC;CAIF;AAEQ,gDAAkB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts deleted file mode 100644 index 2be95a12..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export * from './CatchClauseDefinition'; -export * from './ClassNameDefinition'; -export * from './Definition'; -export * from './DefinitionType'; -export * from './FunctionNameDefinition'; -export * from './ImplicitGlobalVariableDefinition'; -export * from './ImportBindingDefinition'; -export * from './ParameterDefinition'; -export * from './TSEnumMemberDefinition'; -export * from './TSEnumNameDefinition'; -export * from './TSModuleNameDefinition'; -export * from './TypeDefinition'; -export * from './VariableDefinition'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map deleted file mode 100644 index dfd43be8..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js b/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js deleted file mode 100644 index 71d1559d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./CatchClauseDefinition"), exports); -__exportStar(require("./ClassNameDefinition"), exports); -__exportStar(require("./Definition"), exports); -__exportStar(require("./DefinitionType"), exports); -__exportStar(require("./FunctionNameDefinition"), exports); -__exportStar(require("./ImplicitGlobalVariableDefinition"), exports); -__exportStar(require("./ImportBindingDefinition"), exports); -__exportStar(require("./ParameterDefinition"), exports); -__exportStar(require("./TSEnumMemberDefinition"), exports); -__exportStar(require("./TSEnumNameDefinition"), exports); -__exportStar(require("./TSModuleNameDefinition"), exports); -__exportStar(require("./TypeDefinition"), exports); -__exportStar(require("./VariableDefinition"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map b/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map deleted file mode 100644 index 136726cd..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,wDAAsC;AACtC,+CAA6B;AAC7B,mDAAiC;AACjC,2DAAyC;AACzC,qEAAmD;AACnD,4DAA0C;AAC1C,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,2DAAyC;AACzC,mDAAiC;AACjC,uDAAqC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts deleted file mode 100644 index 23ee2461..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export { analyze, AnalyzeOptions } from './analyze'; -export * from './definition'; -export { Reference } from './referencer/Reference'; -export { Visitor } from './referencer/Visitor'; -export { PatternVisitor, PatternVisitorCallback, PatternVisitorOptions, } from './referencer/PatternVisitor'; -export * from './scope'; -export { ScopeManager } from './ScopeManager'; -export * from './variable'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map deleted file mode 100644 index 17ddbf57..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACpD,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,6BAA6B,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,cAAc,YAAY,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/index.js b/node_modules/@typescript-eslint/scope-manager/dist/index.js deleted file mode 100644 index df3bdf75..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/index.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ScopeManager = exports.PatternVisitor = exports.Visitor = exports.Reference = exports.analyze = void 0; -var analyze_1 = require("./analyze"); -Object.defineProperty(exports, "analyze", { enumerable: true, get: function () { return analyze_1.analyze; } }); -__exportStar(require("./definition"), exports); -var Reference_1 = require("./referencer/Reference"); -Object.defineProperty(exports, "Reference", { enumerable: true, get: function () { return Reference_1.Reference; } }); -var Visitor_1 = require("./referencer/Visitor"); -Object.defineProperty(exports, "Visitor", { enumerable: true, get: function () { return Visitor_1.Visitor; } }); -var PatternVisitor_1 = require("./referencer/PatternVisitor"); -Object.defineProperty(exports, "PatternVisitor", { enumerable: true, get: function () { return PatternVisitor_1.PatternVisitor; } }); -__exportStar(require("./scope"), exports); -var ScopeManager_1 = require("./ScopeManager"); -Object.defineProperty(exports, "ScopeManager", { enumerable: true, get: function () { return ScopeManager_1.ScopeManager; } }); -__exportStar(require("./variable"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/index.js.map b/node_modules/@typescript-eslint/scope-manager/dist/index.js.map deleted file mode 100644 index f09b9d0c..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qCAAoD;AAA3C,kGAAA,OAAO,OAAA;AAChB,+CAA6B;AAC7B,oDAAmD;AAA1C,sGAAA,SAAS,OAAA;AAClB,gDAA+C;AAAtC,kGAAA,OAAO,OAAA;AAChB,8DAIqC;AAHnC,gHAAA,cAAc,OAAA;AAIhB,0CAAwB;AACxB,+CAA8C;AAArC,4GAAA,YAAY,OAAA;AACrB,6CAA2B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts deleted file mode 100644 index 6b2fddaa..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export declare const TYPE: Readonly<{ - eslintImplicitGlobalSetting: "readonly"; - isTypeVariable: true; - isValueVariable: false; -}>; -export declare const VALUE: Readonly<{ - eslintImplicitGlobalSetting: "readonly"; - isTypeVariable: false; - isValueVariable: true; -}>; -export declare const TYPE_VALUE: Readonly<{ - eslintImplicitGlobalSetting: "readonly"; - isTypeVariable: true; - isValueVariable: true; -}>; -//# sourceMappingURL=base-config.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map deleted file mode 100644 index 632981a2..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"base-config.d.ts","sourceRoot":"","sources":["../../src/lib/base-config.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;EAIf,CAAC;AACH,eAAO,MAAM,KAAK;;;;EAIhB,CAAC;AACH,eAAO,MAAM,UAAU;;;;EAIrB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js deleted file mode 100644 index b42e7851..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TYPE_VALUE = exports.VALUE = exports.TYPE = void 0; -exports.TYPE = Object.freeze({ - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, -}); -exports.VALUE = Object.freeze({ - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: false, - isValueVariable: true, -}); -exports.TYPE_VALUE = Object.freeze({ - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: true, -}); -//# sourceMappingURL=base-config.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map deleted file mode 100644 index 20269772..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"base-config.js","sourceRoot":"","sources":["../../src/lib/base-config.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAE1C,QAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;IAChC,2BAA2B,EAAE,UAAU;IACvC,cAAc,EAAE,IAAI;IACpB,eAAe,EAAE,KAAK;CACvB,CAAC,CAAC;AACU,QAAA,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC;IACjC,2BAA2B,EAAE,UAAU;IACvC,cAAc,EAAE,KAAK;IACrB,eAAe,EAAE,IAAI;CACtB,CAAC,CAAC;AACU,QAAA,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC;IACtC,2BAA2B,EAAE,UAAU;IACvC,cAAc,EAAE,IAAI;IACpB,eAAe,EAAE,IAAI;CACtB,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts deleted file mode 100644 index 288f0524..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const decorators: Record; -//# sourceMappingURL=decorators.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map deleted file mode 100644 index 850deb00..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../src/lib/decorators.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,UAAU,4CAWwB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js deleted file mode 100644 index 6b231b15..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.decorators = void 0; -const base_config_1 = require("./base-config"); -exports.decorators = { - ClassMemberDecoratorContext: base_config_1.TYPE, - DecoratorContext: base_config_1.TYPE, - ClassDecoratorContext: base_config_1.TYPE, - ClassMethodDecoratorContext: base_config_1.TYPE, - ClassGetterDecoratorContext: base_config_1.TYPE, - ClassSetterDecoratorContext: base_config_1.TYPE, - ClassAccessorDecoratorContext: base_config_1.TYPE, - ClassAccessorDecoratorTarget: base_config_1.TYPE, - ClassAccessorDecoratorResult: base_config_1.TYPE, - ClassFieldDecoratorContext: base_config_1.TYPE, -}; -//# sourceMappingURL=decorators.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map deleted file mode 100644 index 2b12fc47..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../src/lib/decorators.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,UAAU,GAAG;IACxB,2BAA2B,EAAE,kBAAI;IACjC,gBAAgB,EAAE,kBAAI;IACtB,qBAAqB,EAAE,kBAAI;IAC3B,2BAA2B,EAAE,kBAAI;IACjC,2BAA2B,EAAE,kBAAI;IACjC,2BAA2B,EAAE,kBAAI;IACjC,6BAA6B,EAAE,kBAAI;IACnC,4BAA4B,EAAE,kBAAI;IAClC,4BAA4B,EAAE,kBAAI;IAClC,0BAA0B,EAAE,kBAAI;CACa,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts deleted file mode 100644 index a7363bd8..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const decorators_legacy: Record; -//# sourceMappingURL=decorators.legacy.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map deleted file mode 100644 index 1fcf25a0..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"decorators.legacy.d.ts","sourceRoot":"","sources":["../../src/lib/decorators.legacy.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,iBAAiB,4CAKiB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js deleted file mode 100644 index 63363b83..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.decorators_legacy = void 0; -const base_config_1 = require("./base-config"); -exports.decorators_legacy = { - ClassDecorator: base_config_1.TYPE, - PropertyDecorator: base_config_1.TYPE, - MethodDecorator: base_config_1.TYPE, - ParameterDecorator: base_config_1.TYPE, -}; -//# sourceMappingURL=decorators.legacy.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map deleted file mode 100644 index 320a2152..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"decorators.legacy.js","sourceRoot":"","sources":["../../src/lib/decorators.legacy.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,iBAAiB,GAAG;IAC/B,cAAc,EAAE,kBAAI;IACpB,iBAAiB,EAAE,kBAAI;IACvB,eAAe,EAAE,kBAAI;IACrB,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts deleted file mode 100644 index f76da8eb..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const dom: Record; -//# sourceMappingURL=dom.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map deleted file mode 100644 index 7e76cef8..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/lib/dom.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,GAAG,4CA2xC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts deleted file mode 100644 index 94f9807e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const dom_iterable: Record; -//# sourceMappingURL=dom.iterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map deleted file mode 100644 index 45c2b99b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dom.iterable.d.ts","sourceRoot":"","sources":["../../src/lib/dom.iterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,YAAY,4CA6DsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js deleted file mode 100644 index 62632a0e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.dom_iterable = void 0; -const base_config_1 = require("./base-config"); -exports.dom_iterable = { - AudioParam: base_config_1.TYPE, - AudioParamMap: base_config_1.TYPE, - BaseAudioContext: base_config_1.TYPE, - CSSKeyframesRule: base_config_1.TYPE, - CSSRuleList: base_config_1.TYPE, - CSSStyleDeclaration: base_config_1.TYPE, - Cache: base_config_1.TYPE, - CanvasPath: base_config_1.TYPE, - CanvasPathDrawingStyles: base_config_1.TYPE, - DOMRectList: base_config_1.TYPE, - DOMStringList: base_config_1.TYPE, - DOMTokenList: base_config_1.TYPE, - DataTransferItemList: base_config_1.TYPE, - EventCounts: base_config_1.TYPE, - FileList: base_config_1.TYPE, - FontFaceSet: base_config_1.TYPE, - FormData: base_config_1.TYPE, - HTMLAllCollection: base_config_1.TYPE, - HTMLCollectionBase: base_config_1.TYPE, - HTMLCollectionOf: base_config_1.TYPE, - HTMLFormElement: base_config_1.TYPE, - HTMLSelectElement: base_config_1.TYPE, - Headers: base_config_1.TYPE, - IDBDatabase: base_config_1.TYPE, - IDBObjectStore: base_config_1.TYPE, - MIDIInputMap: base_config_1.TYPE, - MIDIOutput: base_config_1.TYPE, - MIDIOutputMap: base_config_1.TYPE, - MediaKeyStatusMap: base_config_1.TYPE, - MediaList: base_config_1.TYPE, - MessageEvent: base_config_1.TYPE, - MimeTypeArray: base_config_1.TYPE, - NamedNodeMap: base_config_1.TYPE, - Navigator: base_config_1.TYPE, - NodeList: base_config_1.TYPE, - NodeListOf: base_config_1.TYPE, - Plugin: base_config_1.TYPE, - PluginArray: base_config_1.TYPE, - RTCRtpTransceiver: base_config_1.TYPE, - RTCStatsReport: base_config_1.TYPE, - SVGLengthList: base_config_1.TYPE, - SVGNumberList: base_config_1.TYPE, - SVGPointList: base_config_1.TYPE, - SVGStringList: base_config_1.TYPE, - SVGTransformList: base_config_1.TYPE, - SourceBufferList: base_config_1.TYPE, - SpeechRecognitionResult: base_config_1.TYPE, - SpeechRecognitionResultList: base_config_1.TYPE, - StyleSheetList: base_config_1.TYPE, - SubtleCrypto: base_config_1.TYPE, - TextTrackCueList: base_config_1.TYPE, - TextTrackList: base_config_1.TYPE, - TouchList: base_config_1.TYPE, - URLSearchParams: base_config_1.TYPE, - WEBGL_draw_buffers: base_config_1.TYPE, - WEBGL_multi_draw: base_config_1.TYPE, - WebGL2RenderingContextBase: base_config_1.TYPE, - WebGL2RenderingContextOverloads: base_config_1.TYPE, - WebGLRenderingContextBase: base_config_1.TYPE, - WebGLRenderingContextOverloads: base_config_1.TYPE, -}; -//# sourceMappingURL=dom.iterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map deleted file mode 100644 index 9dd7efbc..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dom.iterable.js","sourceRoot":"","sources":["../../src/lib/dom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AI;IAClB,aAAa,EAAE,kBAAI;IACnB,gBAAgB,EAAE,kBAAI;IACtB,gBAAgB,EAAE,kBAAI;IACtB,uBAAuB,EAAE,kBAAI;IAC7B,2BAA2B,EAAE,kBAAI;IACjC,cAAc,EAAE,kBAAI;IACpB,YAAY,EAAE,kBAAI;IAClB,gBAAgB,EAAE,kBAAI;IACtB,aAAa,EAAE,kBAAI;IACnB,SAAS,EAAE,kBAAI;IACf,eAAe,EAAE,kBAAI;IACrB,kBAAkB,EAAE,kBAAI;IACxB,gBAAgB,EAAE,kBAAI;IACtB,0BAA0B,EAAE,kBAAI;IAChC,+BAA+B,EAAE,kBAAI;IACrC,yBAAyB,EAAE,kBAAI;IAC/B,8BAA8B,EAAE,kBAAI;CACS,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js deleted file mode 100644 index db1622a1..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js +++ /dev/null @@ -1,1317 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.dom = void 0; -const base_config_1 = require("./base-config"); -exports.dom = { - AddEventListenerOptions: base_config_1.TYPE, - AesCbcParams: base_config_1.TYPE, - AesCtrParams: base_config_1.TYPE, - AesDerivedKeyParams: base_config_1.TYPE, - AesGcmParams: base_config_1.TYPE, - AesKeyAlgorithm: base_config_1.TYPE, - AesKeyGenParams: base_config_1.TYPE, - Algorithm: base_config_1.TYPE, - AnalyserOptions: base_config_1.TYPE, - AnimationEventInit: base_config_1.TYPE, - AnimationPlaybackEventInit: base_config_1.TYPE, - AssignedNodesOptions: base_config_1.TYPE, - AudioBufferOptions: base_config_1.TYPE, - AudioBufferSourceOptions: base_config_1.TYPE, - AudioConfiguration: base_config_1.TYPE, - AudioContextOptions: base_config_1.TYPE, - AudioNodeOptions: base_config_1.TYPE, - AudioProcessingEventInit: base_config_1.TYPE, - AudioTimestamp: base_config_1.TYPE, - AudioWorkletNodeOptions: base_config_1.TYPE, - AuthenticationExtensionsClientInputs: base_config_1.TYPE, - AuthenticationExtensionsClientOutputs: base_config_1.TYPE, - AuthenticatorSelectionCriteria: base_config_1.TYPE, - BiquadFilterOptions: base_config_1.TYPE, - BlobEventInit: base_config_1.TYPE, - BlobPropertyBag: base_config_1.TYPE, - CSSStyleSheetInit: base_config_1.TYPE, - CacheQueryOptions: base_config_1.TYPE, - CanvasRenderingContext2DSettings: base_config_1.TYPE, - ChannelMergerOptions: base_config_1.TYPE, - ChannelSplitterOptions: base_config_1.TYPE, - CheckVisibilityOptions: base_config_1.TYPE, - ClientQueryOptions: base_config_1.TYPE, - ClipboardEventInit: base_config_1.TYPE, - ClipboardItemOptions: base_config_1.TYPE, - CloseEventInit: base_config_1.TYPE, - CompositionEventInit: base_config_1.TYPE, - ComputedEffectTiming: base_config_1.TYPE, - ComputedKeyframe: base_config_1.TYPE, - ConstantSourceOptions: base_config_1.TYPE, - ConstrainBooleanParameters: base_config_1.TYPE, - ConstrainDOMStringParameters: base_config_1.TYPE, - ConstrainDoubleRange: base_config_1.TYPE, - ConstrainULongRange: base_config_1.TYPE, - ConvolverOptions: base_config_1.TYPE, - CredentialCreationOptions: base_config_1.TYPE, - CredentialPropertiesOutput: base_config_1.TYPE, - CredentialRequestOptions: base_config_1.TYPE, - CryptoKeyPair: base_config_1.TYPE, - CustomEventInit: base_config_1.TYPE, - DOMMatrix2DInit: base_config_1.TYPE, - DOMMatrixInit: base_config_1.TYPE, - DOMPointInit: base_config_1.TYPE, - DOMQuadInit: base_config_1.TYPE, - DOMRectInit: base_config_1.TYPE, - DelayOptions: base_config_1.TYPE, - DeviceMotionEventAccelerationInit: base_config_1.TYPE, - DeviceMotionEventInit: base_config_1.TYPE, - DeviceMotionEventRotationRateInit: base_config_1.TYPE, - DeviceOrientationEventInit: base_config_1.TYPE, - DisplayMediaStreamOptions: base_config_1.TYPE, - DocumentTimelineOptions: base_config_1.TYPE, - DoubleRange: base_config_1.TYPE, - DragEventInit: base_config_1.TYPE, - DynamicsCompressorOptions: base_config_1.TYPE, - EcKeyAlgorithm: base_config_1.TYPE, - EcKeyGenParams: base_config_1.TYPE, - EcKeyImportParams: base_config_1.TYPE, - EcdhKeyDeriveParams: base_config_1.TYPE, - EcdsaParams: base_config_1.TYPE, - EffectTiming: base_config_1.TYPE, - ElementCreationOptions: base_config_1.TYPE, - ElementDefinitionOptions: base_config_1.TYPE, - ErrorEventInit: base_config_1.TYPE, - EventInit: base_config_1.TYPE, - EventListenerOptions: base_config_1.TYPE, - EventModifierInit: base_config_1.TYPE, - EventSourceInit: base_config_1.TYPE, - FilePropertyBag: base_config_1.TYPE, - FileSystemFlags: base_config_1.TYPE, - FileSystemGetDirectoryOptions: base_config_1.TYPE, - FileSystemGetFileOptions: base_config_1.TYPE, - FileSystemRemoveOptions: base_config_1.TYPE, - FocusEventInit: base_config_1.TYPE, - FocusOptions: base_config_1.TYPE, - FontFaceDescriptors: base_config_1.TYPE, - FontFaceSetLoadEventInit: base_config_1.TYPE, - FormDataEventInit: base_config_1.TYPE, - FullscreenOptions: base_config_1.TYPE, - GainOptions: base_config_1.TYPE, - GamepadEventInit: base_config_1.TYPE, - GetAnimationsOptions: base_config_1.TYPE, - GetNotificationOptions: base_config_1.TYPE, - GetRootNodeOptions: base_config_1.TYPE, - HashChangeEventInit: base_config_1.TYPE, - HkdfParams: base_config_1.TYPE, - HmacImportParams: base_config_1.TYPE, - HmacKeyAlgorithm: base_config_1.TYPE, - HmacKeyGenParams: base_config_1.TYPE, - IDBDatabaseInfo: base_config_1.TYPE, - IDBIndexParameters: base_config_1.TYPE, - IDBObjectStoreParameters: base_config_1.TYPE, - IDBTransactionOptions: base_config_1.TYPE, - IDBVersionChangeEventInit: base_config_1.TYPE, - IIRFilterOptions: base_config_1.TYPE, - IdleRequestOptions: base_config_1.TYPE, - ImageBitmapOptions: base_config_1.TYPE, - ImageBitmapRenderingContextSettings: base_config_1.TYPE, - ImageDataSettings: base_config_1.TYPE, - ImageEncodeOptions: base_config_1.TYPE, - ImportMeta: base_config_1.TYPE, - InputEventInit: base_config_1.TYPE, - IntersectionObserverEntryInit: base_config_1.TYPE, - IntersectionObserverInit: base_config_1.TYPE, - JsonWebKey: base_config_1.TYPE, - KeyAlgorithm: base_config_1.TYPE, - KeyboardEventInit: base_config_1.TYPE, - Keyframe: base_config_1.TYPE, - KeyframeAnimationOptions: base_config_1.TYPE, - KeyframeEffectOptions: base_config_1.TYPE, - LockInfo: base_config_1.TYPE, - LockManagerSnapshot: base_config_1.TYPE, - LockOptions: base_config_1.TYPE, - MIDIConnectionEventInit: base_config_1.TYPE, - MIDIMessageEventInit: base_config_1.TYPE, - MIDIOptions: base_config_1.TYPE, - MediaCapabilitiesDecodingInfo: base_config_1.TYPE, - MediaCapabilitiesEncodingInfo: base_config_1.TYPE, - MediaCapabilitiesInfo: base_config_1.TYPE, - MediaConfiguration: base_config_1.TYPE, - MediaDecodingConfiguration: base_config_1.TYPE, - MediaElementAudioSourceOptions: base_config_1.TYPE, - MediaEncodingConfiguration: base_config_1.TYPE, - MediaEncryptedEventInit: base_config_1.TYPE, - MediaImage: base_config_1.TYPE, - MediaKeyMessageEventInit: base_config_1.TYPE, - MediaKeySystemConfiguration: base_config_1.TYPE, - MediaKeySystemMediaCapability: base_config_1.TYPE, - MediaMetadataInit: base_config_1.TYPE, - MediaPositionState: base_config_1.TYPE, - MediaQueryListEventInit: base_config_1.TYPE, - MediaRecorderOptions: base_config_1.TYPE, - MediaSessionActionDetails: base_config_1.TYPE, - MediaStreamAudioSourceOptions: base_config_1.TYPE, - MediaStreamConstraints: base_config_1.TYPE, - MediaStreamTrackEventInit: base_config_1.TYPE, - MediaTrackCapabilities: base_config_1.TYPE, - MediaTrackConstraintSet: base_config_1.TYPE, - MediaTrackConstraints: base_config_1.TYPE, - MediaTrackSettings: base_config_1.TYPE, - MediaTrackSupportedConstraints: base_config_1.TYPE, - MessageEventInit: base_config_1.TYPE, - MouseEventInit: base_config_1.TYPE, - MultiCacheQueryOptions: base_config_1.TYPE, - MutationObserverInit: base_config_1.TYPE, - NavigationPreloadState: base_config_1.TYPE, - NotificationAction: base_config_1.TYPE, - NotificationOptions: base_config_1.TYPE, - OfflineAudioCompletionEventInit: base_config_1.TYPE, - OfflineAudioContextOptions: base_config_1.TYPE, - OptionalEffectTiming: base_config_1.TYPE, - OscillatorOptions: base_config_1.TYPE, - PageTransitionEventInit: base_config_1.TYPE, - PannerOptions: base_config_1.TYPE, - PaymentCurrencyAmount: base_config_1.TYPE, - PaymentDetailsBase: base_config_1.TYPE, - PaymentDetailsInit: base_config_1.TYPE, - PaymentDetailsModifier: base_config_1.TYPE, - PaymentDetailsUpdate: base_config_1.TYPE, - PaymentItem: base_config_1.TYPE, - PaymentMethodChangeEventInit: base_config_1.TYPE, - PaymentMethodData: base_config_1.TYPE, - PaymentRequestUpdateEventInit: base_config_1.TYPE, - PaymentValidationErrors: base_config_1.TYPE, - Pbkdf2Params: base_config_1.TYPE, - PerformanceMarkOptions: base_config_1.TYPE, - PerformanceMeasureOptions: base_config_1.TYPE, - PerformanceObserverInit: base_config_1.TYPE, - PeriodicWaveConstraints: base_config_1.TYPE, - PeriodicWaveOptions: base_config_1.TYPE, - PermissionDescriptor: base_config_1.TYPE, - PictureInPictureEventInit: base_config_1.TYPE, - PointerEventInit: base_config_1.TYPE, - PopStateEventInit: base_config_1.TYPE, - PositionOptions: base_config_1.TYPE, - ProgressEventInit: base_config_1.TYPE, - PromiseRejectionEventInit: base_config_1.TYPE, - PropertyIndexedKeyframes: base_config_1.TYPE, - PublicKeyCredentialCreationOptions: base_config_1.TYPE, - PublicKeyCredentialDescriptor: base_config_1.TYPE, - PublicKeyCredentialEntity: base_config_1.TYPE, - PublicKeyCredentialParameters: base_config_1.TYPE, - PublicKeyCredentialRequestOptions: base_config_1.TYPE, - PublicKeyCredentialRpEntity: base_config_1.TYPE, - PublicKeyCredentialUserEntity: base_config_1.TYPE, - PushSubscriptionJSON: base_config_1.TYPE, - PushSubscriptionOptionsInit: base_config_1.TYPE, - QueuingStrategy: base_config_1.TYPE, - QueuingStrategyInit: base_config_1.TYPE, - RTCAnswerOptions: base_config_1.TYPE, - RTCCertificateExpiration: base_config_1.TYPE, - RTCConfiguration: base_config_1.TYPE, - RTCDTMFToneChangeEventInit: base_config_1.TYPE, - RTCDataChannelEventInit: base_config_1.TYPE, - RTCDataChannelInit: base_config_1.TYPE, - RTCDtlsFingerprint: base_config_1.TYPE, - RTCEncodedAudioFrameMetadata: base_config_1.TYPE, - RTCEncodedVideoFrameMetadata: base_config_1.TYPE, - RTCErrorEventInit: base_config_1.TYPE, - RTCErrorInit: base_config_1.TYPE, - RTCIceCandidateInit: base_config_1.TYPE, - RTCIceCandidatePairStats: base_config_1.TYPE, - RTCIceServer: base_config_1.TYPE, - RTCInboundRtpStreamStats: base_config_1.TYPE, - RTCLocalSessionDescriptionInit: base_config_1.TYPE, - RTCOfferAnswerOptions: base_config_1.TYPE, - RTCOfferOptions: base_config_1.TYPE, - RTCOutboundRtpStreamStats: base_config_1.TYPE, - RTCPeerConnectionIceErrorEventInit: base_config_1.TYPE, - RTCPeerConnectionIceEventInit: base_config_1.TYPE, - RTCReceivedRtpStreamStats: base_config_1.TYPE, - RTCRtcpParameters: base_config_1.TYPE, - RTCRtpCapabilities: base_config_1.TYPE, - RTCRtpCodecCapability: base_config_1.TYPE, - RTCRtpCodecParameters: base_config_1.TYPE, - RTCRtpCodingParameters: base_config_1.TYPE, - RTCRtpContributingSource: base_config_1.TYPE, - RTCRtpEncodingParameters: base_config_1.TYPE, - RTCRtpHeaderExtensionCapability: base_config_1.TYPE, - RTCRtpHeaderExtensionParameters: base_config_1.TYPE, - RTCRtpParameters: base_config_1.TYPE, - RTCRtpReceiveParameters: base_config_1.TYPE, - RTCRtpSendParameters: base_config_1.TYPE, - RTCRtpStreamStats: base_config_1.TYPE, - RTCRtpSynchronizationSource: base_config_1.TYPE, - RTCRtpTransceiverInit: base_config_1.TYPE, - RTCSentRtpStreamStats: base_config_1.TYPE, - RTCSessionDescriptionInit: base_config_1.TYPE, - RTCStats: base_config_1.TYPE, - RTCTrackEventInit: base_config_1.TYPE, - RTCTransportStats: base_config_1.TYPE, - ReadableStreamGetReaderOptions: base_config_1.TYPE, - ReadableStreamReadDoneResult: base_config_1.TYPE, - ReadableStreamReadValueResult: base_config_1.TYPE, - ReadableWritablePair: base_config_1.TYPE, - RegistrationOptions: base_config_1.TYPE, - RequestInit: base_config_1.TYPE, - ResizeObserverOptions: base_config_1.TYPE, - ResponseInit: base_config_1.TYPE, - RsaHashedImportParams: base_config_1.TYPE, - RsaHashedKeyAlgorithm: base_config_1.TYPE, - RsaHashedKeyGenParams: base_config_1.TYPE, - RsaKeyAlgorithm: base_config_1.TYPE, - RsaKeyGenParams: base_config_1.TYPE, - RsaOaepParams: base_config_1.TYPE, - RsaOtherPrimesInfo: base_config_1.TYPE, - RsaPssParams: base_config_1.TYPE, - SVGBoundingBoxOptions: base_config_1.TYPE, - ScrollIntoViewOptions: base_config_1.TYPE, - ScrollOptions: base_config_1.TYPE, - ScrollToOptions: base_config_1.TYPE, - SecurityPolicyViolationEventInit: base_config_1.TYPE, - ShadowRootInit: base_config_1.TYPE, - ShareData: base_config_1.TYPE, - SpeechSynthesisErrorEventInit: base_config_1.TYPE, - SpeechSynthesisEventInit: base_config_1.TYPE, - StaticRangeInit: base_config_1.TYPE, - StereoPannerOptions: base_config_1.TYPE, - StorageEstimate: base_config_1.TYPE, - StorageEventInit: base_config_1.TYPE, - StreamPipeOptions: base_config_1.TYPE, - StructuredSerializeOptions: base_config_1.TYPE, - SubmitEventInit: base_config_1.TYPE, - TextDecodeOptions: base_config_1.TYPE, - TextDecoderOptions: base_config_1.TYPE, - TextEncoderEncodeIntoResult: base_config_1.TYPE, - TouchEventInit: base_config_1.TYPE, - TouchInit: base_config_1.TYPE, - TrackEventInit: base_config_1.TYPE, - Transformer: base_config_1.TYPE, - TransitionEventInit: base_config_1.TYPE, - UIEventInit: base_config_1.TYPE, - ULongRange: base_config_1.TYPE, - UnderlyingByteSource: base_config_1.TYPE, - UnderlyingDefaultSource: base_config_1.TYPE, - UnderlyingSink: base_config_1.TYPE, - UnderlyingSource: base_config_1.TYPE, - ValidityStateFlags: base_config_1.TYPE, - VideoColorSpaceInit: base_config_1.TYPE, - VideoConfiguration: base_config_1.TYPE, - VideoFrameCallbackMetadata: base_config_1.TYPE, - WaveShaperOptions: base_config_1.TYPE, - WebGLContextAttributes: base_config_1.TYPE, - WebGLContextEventInit: base_config_1.TYPE, - WheelEventInit: base_config_1.TYPE, - WindowPostMessageOptions: base_config_1.TYPE, - WorkerOptions: base_config_1.TYPE, - WorkletOptions: base_config_1.TYPE, - NodeFilter: base_config_1.TYPE_VALUE, - XPathNSResolver: base_config_1.TYPE, - ANGLE_instanced_arrays: base_config_1.TYPE, - ARIAMixin: base_config_1.TYPE, - AbortController: base_config_1.TYPE_VALUE, - AbortSignalEventMap: base_config_1.TYPE, - AbortSignal: base_config_1.TYPE_VALUE, - AbstractRange: base_config_1.TYPE_VALUE, - AbstractWorkerEventMap: base_config_1.TYPE, - AbstractWorker: base_config_1.TYPE, - AnalyserNode: base_config_1.TYPE_VALUE, - Animatable: base_config_1.TYPE, - AnimationEventMap: base_config_1.TYPE, - Animation: base_config_1.TYPE_VALUE, - AnimationEffect: base_config_1.TYPE_VALUE, - AnimationEvent: base_config_1.TYPE_VALUE, - AnimationFrameProvider: base_config_1.TYPE, - AnimationPlaybackEvent: base_config_1.TYPE_VALUE, - AnimationTimeline: base_config_1.TYPE_VALUE, - Attr: base_config_1.TYPE_VALUE, - AudioBuffer: base_config_1.TYPE_VALUE, - AudioBufferSourceNode: base_config_1.TYPE_VALUE, - AudioContext: base_config_1.TYPE_VALUE, - AudioDestinationNode: base_config_1.TYPE_VALUE, - AudioListener: base_config_1.TYPE_VALUE, - AudioNode: base_config_1.TYPE_VALUE, - AudioParam: base_config_1.TYPE_VALUE, - AudioParamMap: base_config_1.TYPE_VALUE, - AudioProcessingEvent: base_config_1.TYPE_VALUE, - AudioScheduledSourceNodeEventMap: base_config_1.TYPE, - AudioScheduledSourceNode: base_config_1.TYPE_VALUE, - AudioWorklet: base_config_1.TYPE_VALUE, - AudioWorkletNodeEventMap: base_config_1.TYPE, - AudioWorkletNode: base_config_1.TYPE_VALUE, - AuthenticatorAssertionResponse: base_config_1.TYPE_VALUE, - AuthenticatorAttestationResponse: base_config_1.TYPE_VALUE, - AuthenticatorResponse: base_config_1.TYPE_VALUE, - BarProp: base_config_1.TYPE_VALUE, - BaseAudioContextEventMap: base_config_1.TYPE, - BaseAudioContext: base_config_1.TYPE_VALUE, - BeforeUnloadEvent: base_config_1.TYPE_VALUE, - BiquadFilterNode: base_config_1.TYPE_VALUE, - Blob: base_config_1.TYPE_VALUE, - BlobEvent: base_config_1.TYPE_VALUE, - Body: base_config_1.TYPE, - BroadcastChannelEventMap: base_config_1.TYPE, - BroadcastChannel: base_config_1.TYPE_VALUE, - ByteLengthQueuingStrategy: base_config_1.TYPE_VALUE, - CDATASection: base_config_1.TYPE_VALUE, - CSSAnimation: base_config_1.TYPE_VALUE, - CSSConditionRule: base_config_1.TYPE_VALUE, - CSSContainerRule: base_config_1.TYPE_VALUE, - CSSCounterStyleRule: base_config_1.TYPE_VALUE, - CSSFontFaceRule: base_config_1.TYPE_VALUE, - CSSFontFeatureValuesRule: base_config_1.TYPE_VALUE, - CSSFontPaletteValuesRule: base_config_1.TYPE_VALUE, - CSSGroupingRule: base_config_1.TYPE_VALUE, - CSSImportRule: base_config_1.TYPE_VALUE, - CSSKeyframeRule: base_config_1.TYPE_VALUE, - CSSKeyframesRule: base_config_1.TYPE_VALUE, - CSSLayerBlockRule: base_config_1.TYPE_VALUE, - CSSLayerStatementRule: base_config_1.TYPE_VALUE, - CSSMediaRule: base_config_1.TYPE_VALUE, - CSSNamespaceRule: base_config_1.TYPE_VALUE, - CSSPageRule: base_config_1.TYPE_VALUE, - CSSRule: base_config_1.TYPE_VALUE, - CSSRuleList: base_config_1.TYPE_VALUE, - CSSStyleDeclaration: base_config_1.TYPE_VALUE, - CSSStyleRule: base_config_1.TYPE_VALUE, - CSSStyleSheet: base_config_1.TYPE_VALUE, - CSSSupportsRule: base_config_1.TYPE_VALUE, - CSSTransition: base_config_1.TYPE_VALUE, - Cache: base_config_1.TYPE_VALUE, - CacheStorage: base_config_1.TYPE_VALUE, - CanvasCaptureMediaStreamTrack: base_config_1.TYPE_VALUE, - CanvasCompositing: base_config_1.TYPE, - CanvasDrawImage: base_config_1.TYPE, - CanvasDrawPath: base_config_1.TYPE, - CanvasFillStrokeStyles: base_config_1.TYPE, - CanvasFilters: base_config_1.TYPE, - CanvasGradient: base_config_1.TYPE_VALUE, - CanvasImageData: base_config_1.TYPE, - CanvasImageSmoothing: base_config_1.TYPE, - CanvasPath: base_config_1.TYPE, - CanvasPathDrawingStyles: base_config_1.TYPE, - CanvasPattern: base_config_1.TYPE_VALUE, - CanvasRect: base_config_1.TYPE, - CanvasRenderingContext2D: base_config_1.TYPE_VALUE, - CanvasShadowStyles: base_config_1.TYPE, - CanvasState: base_config_1.TYPE, - CanvasText: base_config_1.TYPE, - CanvasTextDrawingStyles: base_config_1.TYPE, - CanvasTransform: base_config_1.TYPE, - CanvasUserInterface: base_config_1.TYPE, - ChannelMergerNode: base_config_1.TYPE_VALUE, - ChannelSplitterNode: base_config_1.TYPE_VALUE, - CharacterData: base_config_1.TYPE_VALUE, - ChildNode: base_config_1.TYPE, - ClientRect: base_config_1.TYPE, - Clipboard: base_config_1.TYPE_VALUE, - ClipboardEvent: base_config_1.TYPE_VALUE, - ClipboardItem: base_config_1.TYPE_VALUE, - CloseEvent: base_config_1.TYPE_VALUE, - Comment: base_config_1.TYPE_VALUE, - CompositionEvent: base_config_1.TYPE_VALUE, - ConstantSourceNode: base_config_1.TYPE_VALUE, - ConvolverNode: base_config_1.TYPE_VALUE, - CountQueuingStrategy: base_config_1.TYPE_VALUE, - Credential: base_config_1.TYPE_VALUE, - CredentialsContainer: base_config_1.TYPE_VALUE, - Crypto: base_config_1.TYPE_VALUE, - CryptoKey: base_config_1.TYPE_VALUE, - CustomElementRegistry: base_config_1.TYPE_VALUE, - CustomEvent: base_config_1.TYPE_VALUE, - DOMException: base_config_1.TYPE_VALUE, - DOMImplementation: base_config_1.TYPE_VALUE, - DOMMatrix: base_config_1.TYPE_VALUE, - SVGMatrix: base_config_1.TYPE_VALUE, - WebKitCSSMatrix: base_config_1.TYPE_VALUE, - DOMMatrixReadOnly: base_config_1.TYPE_VALUE, - DOMParser: base_config_1.TYPE_VALUE, - DOMPoint: base_config_1.TYPE_VALUE, - SVGPoint: base_config_1.TYPE_VALUE, - DOMPointReadOnly: base_config_1.TYPE_VALUE, - DOMQuad: base_config_1.TYPE_VALUE, - DOMRect: base_config_1.TYPE_VALUE, - SVGRect: base_config_1.TYPE_VALUE, - DOMRectList: base_config_1.TYPE_VALUE, - DOMRectReadOnly: base_config_1.TYPE_VALUE, - DOMStringList: base_config_1.TYPE_VALUE, - DOMStringMap: base_config_1.TYPE_VALUE, - DOMTokenList: base_config_1.TYPE_VALUE, - DataTransfer: base_config_1.TYPE_VALUE, - DataTransferItem: base_config_1.TYPE_VALUE, - DataTransferItemList: base_config_1.TYPE_VALUE, - DelayNode: base_config_1.TYPE_VALUE, - DeviceMotionEvent: base_config_1.TYPE_VALUE, - DeviceMotionEventAcceleration: base_config_1.TYPE, - DeviceMotionEventRotationRate: base_config_1.TYPE, - DeviceOrientationEvent: base_config_1.TYPE_VALUE, - DocumentEventMap: base_config_1.TYPE, - Document: base_config_1.TYPE_VALUE, - DocumentFragment: base_config_1.TYPE_VALUE, - DocumentOrShadowRoot: base_config_1.TYPE, - DocumentTimeline: base_config_1.TYPE_VALUE, - DocumentType: base_config_1.TYPE_VALUE, - DragEvent: base_config_1.TYPE_VALUE, - DynamicsCompressorNode: base_config_1.TYPE_VALUE, - EXT_blend_minmax: base_config_1.TYPE, - EXT_color_buffer_float: base_config_1.TYPE, - EXT_color_buffer_half_float: base_config_1.TYPE, - EXT_float_blend: base_config_1.TYPE, - EXT_frag_depth: base_config_1.TYPE, - EXT_sRGB: base_config_1.TYPE, - EXT_shader_texture_lod: base_config_1.TYPE, - EXT_texture_compression_bptc: base_config_1.TYPE, - EXT_texture_compression_rgtc: base_config_1.TYPE, - EXT_texture_filter_anisotropic: base_config_1.TYPE, - EXT_texture_norm16: base_config_1.TYPE, - ElementEventMap: base_config_1.TYPE, - Element: base_config_1.TYPE_VALUE, - ElementCSSInlineStyle: base_config_1.TYPE, - ElementContentEditable: base_config_1.TYPE, - ElementInternals: base_config_1.TYPE_VALUE, - ErrorEvent: base_config_1.TYPE_VALUE, - Event: base_config_1.TYPE_VALUE, - EventCounts: base_config_1.TYPE_VALUE, - EventListener: base_config_1.TYPE, - EventListenerObject: base_config_1.TYPE, - EventSourceEventMap: base_config_1.TYPE, - EventSource: base_config_1.TYPE_VALUE, - EventTarget: base_config_1.TYPE_VALUE, - External: base_config_1.TYPE_VALUE, - File: base_config_1.TYPE_VALUE, - FileList: base_config_1.TYPE_VALUE, - FileReaderEventMap: base_config_1.TYPE, - FileReader: base_config_1.TYPE_VALUE, - FileSystem: base_config_1.TYPE_VALUE, - FileSystemDirectoryEntry: base_config_1.TYPE_VALUE, - FileSystemDirectoryHandle: base_config_1.TYPE_VALUE, - FileSystemDirectoryReader: base_config_1.TYPE_VALUE, - FileSystemEntry: base_config_1.TYPE_VALUE, - FileSystemFileEntry: base_config_1.TYPE_VALUE, - FileSystemFileHandle: base_config_1.TYPE_VALUE, - FileSystemHandle: base_config_1.TYPE_VALUE, - FocusEvent: base_config_1.TYPE_VALUE, - FontFace: base_config_1.TYPE_VALUE, - FontFaceSetEventMap: base_config_1.TYPE, - FontFaceSet: base_config_1.TYPE_VALUE, - FontFaceSetLoadEvent: base_config_1.TYPE_VALUE, - FontFaceSource: base_config_1.TYPE, - FormData: base_config_1.TYPE_VALUE, - FormDataEvent: base_config_1.TYPE_VALUE, - GainNode: base_config_1.TYPE_VALUE, - Gamepad: base_config_1.TYPE_VALUE, - GamepadButton: base_config_1.TYPE_VALUE, - GamepadEvent: base_config_1.TYPE_VALUE, - GamepadHapticActuator: base_config_1.TYPE_VALUE, - GenericTransformStream: base_config_1.TYPE, - Geolocation: base_config_1.TYPE_VALUE, - GeolocationCoordinates: base_config_1.TYPE_VALUE, - GeolocationPosition: base_config_1.TYPE_VALUE, - GeolocationPositionError: base_config_1.TYPE_VALUE, - GlobalEventHandlersEventMap: base_config_1.TYPE, - GlobalEventHandlers: base_config_1.TYPE, - HTMLAllCollection: base_config_1.TYPE_VALUE, - HTMLAnchorElement: base_config_1.TYPE_VALUE, - HTMLAreaElement: base_config_1.TYPE_VALUE, - HTMLAudioElement: base_config_1.TYPE_VALUE, - HTMLBRElement: base_config_1.TYPE_VALUE, - HTMLBaseElement: base_config_1.TYPE_VALUE, - HTMLBodyElementEventMap: base_config_1.TYPE, - HTMLBodyElement: base_config_1.TYPE_VALUE, - HTMLButtonElement: base_config_1.TYPE_VALUE, - HTMLCanvasElement: base_config_1.TYPE_VALUE, - HTMLCollectionBase: base_config_1.TYPE, - HTMLCollection: base_config_1.TYPE_VALUE, - HTMLCollectionOf: base_config_1.TYPE, - HTMLDListElement: base_config_1.TYPE_VALUE, - HTMLDataElement: base_config_1.TYPE_VALUE, - HTMLDataListElement: base_config_1.TYPE_VALUE, - HTMLDetailsElement: base_config_1.TYPE_VALUE, - HTMLDialogElement: base_config_1.TYPE_VALUE, - HTMLDirectoryElement: base_config_1.TYPE_VALUE, - HTMLDivElement: base_config_1.TYPE_VALUE, - HTMLDocument: base_config_1.TYPE_VALUE, - HTMLElementEventMap: base_config_1.TYPE, - HTMLElement: base_config_1.TYPE_VALUE, - HTMLEmbedElement: base_config_1.TYPE_VALUE, - HTMLFieldSetElement: base_config_1.TYPE_VALUE, - HTMLFontElement: base_config_1.TYPE_VALUE, - HTMLFormControlsCollection: base_config_1.TYPE_VALUE, - HTMLFormElement: base_config_1.TYPE_VALUE, - HTMLFrameElement: base_config_1.TYPE_VALUE, - HTMLFrameSetElementEventMap: base_config_1.TYPE, - HTMLFrameSetElement: base_config_1.TYPE_VALUE, - HTMLHRElement: base_config_1.TYPE_VALUE, - HTMLHeadElement: base_config_1.TYPE_VALUE, - HTMLHeadingElement: base_config_1.TYPE_VALUE, - HTMLHtmlElement: base_config_1.TYPE_VALUE, - HTMLHyperlinkElementUtils: base_config_1.TYPE, - HTMLIFrameElement: base_config_1.TYPE_VALUE, - HTMLImageElement: base_config_1.TYPE_VALUE, - HTMLInputElement: base_config_1.TYPE_VALUE, - HTMLLIElement: base_config_1.TYPE_VALUE, - HTMLLabelElement: base_config_1.TYPE_VALUE, - HTMLLegendElement: base_config_1.TYPE_VALUE, - HTMLLinkElement: base_config_1.TYPE_VALUE, - HTMLMapElement: base_config_1.TYPE_VALUE, - HTMLMarqueeElement: base_config_1.TYPE_VALUE, - HTMLMediaElementEventMap: base_config_1.TYPE, - HTMLMediaElement: base_config_1.TYPE_VALUE, - HTMLMenuElement: base_config_1.TYPE_VALUE, - HTMLMetaElement: base_config_1.TYPE_VALUE, - HTMLMeterElement: base_config_1.TYPE_VALUE, - HTMLModElement: base_config_1.TYPE_VALUE, - HTMLOListElement: base_config_1.TYPE_VALUE, - HTMLObjectElement: base_config_1.TYPE_VALUE, - HTMLOptGroupElement: base_config_1.TYPE_VALUE, - HTMLOptionElement: base_config_1.TYPE_VALUE, - HTMLOptionsCollection: base_config_1.TYPE_VALUE, - HTMLOrSVGElement: base_config_1.TYPE, - HTMLOutputElement: base_config_1.TYPE_VALUE, - HTMLParagraphElement: base_config_1.TYPE_VALUE, - HTMLParamElement: base_config_1.TYPE_VALUE, - HTMLPictureElement: base_config_1.TYPE_VALUE, - HTMLPreElement: base_config_1.TYPE_VALUE, - HTMLProgressElement: base_config_1.TYPE_VALUE, - HTMLQuoteElement: base_config_1.TYPE_VALUE, - HTMLScriptElement: base_config_1.TYPE_VALUE, - HTMLSelectElement: base_config_1.TYPE_VALUE, - HTMLSlotElement: base_config_1.TYPE_VALUE, - HTMLSourceElement: base_config_1.TYPE_VALUE, - HTMLSpanElement: base_config_1.TYPE_VALUE, - HTMLStyleElement: base_config_1.TYPE_VALUE, - HTMLTableCaptionElement: base_config_1.TYPE_VALUE, - HTMLTableCellElement: base_config_1.TYPE_VALUE, - HTMLTableColElement: base_config_1.TYPE_VALUE, - HTMLTableDataCellElement: base_config_1.TYPE, - HTMLTableElement: base_config_1.TYPE_VALUE, - HTMLTableHeaderCellElement: base_config_1.TYPE, - HTMLTableRowElement: base_config_1.TYPE_VALUE, - HTMLTableSectionElement: base_config_1.TYPE_VALUE, - HTMLTemplateElement: base_config_1.TYPE_VALUE, - HTMLTextAreaElement: base_config_1.TYPE_VALUE, - HTMLTimeElement: base_config_1.TYPE_VALUE, - HTMLTitleElement: base_config_1.TYPE_VALUE, - HTMLTrackElement: base_config_1.TYPE_VALUE, - HTMLUListElement: base_config_1.TYPE_VALUE, - HTMLUnknownElement: base_config_1.TYPE_VALUE, - HTMLVideoElementEventMap: base_config_1.TYPE, - HTMLVideoElement: base_config_1.TYPE_VALUE, - HashChangeEvent: base_config_1.TYPE_VALUE, - Headers: base_config_1.TYPE_VALUE, - History: base_config_1.TYPE_VALUE, - IDBCursor: base_config_1.TYPE_VALUE, - IDBCursorWithValue: base_config_1.TYPE_VALUE, - IDBDatabaseEventMap: base_config_1.TYPE, - IDBDatabase: base_config_1.TYPE_VALUE, - IDBFactory: base_config_1.TYPE_VALUE, - IDBIndex: base_config_1.TYPE_VALUE, - IDBKeyRange: base_config_1.TYPE_VALUE, - IDBObjectStore: base_config_1.TYPE_VALUE, - IDBOpenDBRequestEventMap: base_config_1.TYPE, - IDBOpenDBRequest: base_config_1.TYPE_VALUE, - IDBRequestEventMap: base_config_1.TYPE, - IDBRequest: base_config_1.TYPE_VALUE, - IDBTransactionEventMap: base_config_1.TYPE, - IDBTransaction: base_config_1.TYPE_VALUE, - IDBVersionChangeEvent: base_config_1.TYPE_VALUE, - IIRFilterNode: base_config_1.TYPE_VALUE, - IdleDeadline: base_config_1.TYPE_VALUE, - ImageBitmap: base_config_1.TYPE_VALUE, - ImageBitmapRenderingContext: base_config_1.TYPE_VALUE, - ImageData: base_config_1.TYPE_VALUE, - InnerHTML: base_config_1.TYPE, - InputDeviceInfo: base_config_1.TYPE_VALUE, - InputEvent: base_config_1.TYPE_VALUE, - IntersectionObserver: base_config_1.TYPE_VALUE, - IntersectionObserverEntry: base_config_1.TYPE_VALUE, - KHR_parallel_shader_compile: base_config_1.TYPE, - KeyboardEvent: base_config_1.TYPE_VALUE, - KeyframeEffect: base_config_1.TYPE_VALUE, - LinkStyle: base_config_1.TYPE, - Location: base_config_1.TYPE_VALUE, - Lock: base_config_1.TYPE_VALUE, - LockManager: base_config_1.TYPE_VALUE, - MIDIAccessEventMap: base_config_1.TYPE, - MIDIAccess: base_config_1.TYPE_VALUE, - MIDIConnectionEvent: base_config_1.TYPE_VALUE, - MIDIInputEventMap: base_config_1.TYPE, - MIDIInput: base_config_1.TYPE_VALUE, - MIDIInputMap: base_config_1.TYPE_VALUE, - MIDIMessageEvent: base_config_1.TYPE_VALUE, - MIDIOutput: base_config_1.TYPE_VALUE, - MIDIOutputMap: base_config_1.TYPE_VALUE, - MIDIPortEventMap: base_config_1.TYPE, - MIDIPort: base_config_1.TYPE_VALUE, - MathMLElementEventMap: base_config_1.TYPE, - MathMLElement: base_config_1.TYPE_VALUE, - MediaCapabilities: base_config_1.TYPE_VALUE, - MediaDeviceInfo: base_config_1.TYPE_VALUE, - MediaDevicesEventMap: base_config_1.TYPE, - MediaDevices: base_config_1.TYPE_VALUE, - MediaElementAudioSourceNode: base_config_1.TYPE_VALUE, - MediaEncryptedEvent: base_config_1.TYPE_VALUE, - MediaError: base_config_1.TYPE_VALUE, - MediaKeyMessageEvent: base_config_1.TYPE_VALUE, - MediaKeySessionEventMap: base_config_1.TYPE, - MediaKeySession: base_config_1.TYPE_VALUE, - MediaKeyStatusMap: base_config_1.TYPE_VALUE, - MediaKeySystemAccess: base_config_1.TYPE_VALUE, - MediaKeys: base_config_1.TYPE_VALUE, - MediaList: base_config_1.TYPE_VALUE, - MediaMetadata: base_config_1.TYPE_VALUE, - MediaQueryListEventMap: base_config_1.TYPE, - MediaQueryList: base_config_1.TYPE_VALUE, - MediaQueryListEvent: base_config_1.TYPE_VALUE, - MediaRecorderEventMap: base_config_1.TYPE, - MediaRecorder: base_config_1.TYPE_VALUE, - MediaSession: base_config_1.TYPE_VALUE, - MediaSourceEventMap: base_config_1.TYPE, - MediaSource: base_config_1.TYPE_VALUE, - MediaStreamEventMap: base_config_1.TYPE, - MediaStream: base_config_1.TYPE_VALUE, - MediaStreamAudioDestinationNode: base_config_1.TYPE_VALUE, - MediaStreamAudioSourceNode: base_config_1.TYPE_VALUE, - MediaStreamTrackEventMap: base_config_1.TYPE, - MediaStreamTrack: base_config_1.TYPE_VALUE, - MediaStreamTrackEvent: base_config_1.TYPE_VALUE, - MessageChannel: base_config_1.TYPE_VALUE, - MessageEvent: base_config_1.TYPE_VALUE, - MessagePortEventMap: base_config_1.TYPE, - MessagePort: base_config_1.TYPE_VALUE, - MimeType: base_config_1.TYPE_VALUE, - MimeTypeArray: base_config_1.TYPE_VALUE, - MouseEvent: base_config_1.TYPE_VALUE, - MutationEvent: base_config_1.TYPE_VALUE, - MutationObserver: base_config_1.TYPE_VALUE, - MutationRecord: base_config_1.TYPE_VALUE, - NamedNodeMap: base_config_1.TYPE_VALUE, - NavigationPreloadManager: base_config_1.TYPE_VALUE, - Navigator: base_config_1.TYPE_VALUE, - NavigatorAutomationInformation: base_config_1.TYPE, - NavigatorConcurrentHardware: base_config_1.TYPE, - NavigatorContentUtils: base_config_1.TYPE, - NavigatorCookies: base_config_1.TYPE, - NavigatorID: base_config_1.TYPE, - NavigatorLanguage: base_config_1.TYPE, - NavigatorLocks: base_config_1.TYPE, - NavigatorOnLine: base_config_1.TYPE, - NavigatorPlugins: base_config_1.TYPE, - NavigatorStorage: base_config_1.TYPE, - Node: base_config_1.TYPE_VALUE, - NodeIterator: base_config_1.TYPE_VALUE, - NodeList: base_config_1.TYPE_VALUE, - NodeListOf: base_config_1.TYPE, - NonDocumentTypeChildNode: base_config_1.TYPE, - NonElementParentNode: base_config_1.TYPE, - NotificationEventMap: base_config_1.TYPE, - Notification: base_config_1.TYPE_VALUE, - OES_draw_buffers_indexed: base_config_1.TYPE, - OES_element_index_uint: base_config_1.TYPE, - OES_fbo_render_mipmap: base_config_1.TYPE, - OES_standard_derivatives: base_config_1.TYPE, - OES_texture_float: base_config_1.TYPE, - OES_texture_float_linear: base_config_1.TYPE, - OES_texture_half_float: base_config_1.TYPE, - OES_texture_half_float_linear: base_config_1.TYPE, - OES_vertex_array_object: base_config_1.TYPE, - OVR_multiview2: base_config_1.TYPE, - OfflineAudioCompletionEvent: base_config_1.TYPE_VALUE, - OfflineAudioContextEventMap: base_config_1.TYPE, - OfflineAudioContext: base_config_1.TYPE_VALUE, - OffscreenCanvasEventMap: base_config_1.TYPE, - OffscreenCanvas: base_config_1.TYPE_VALUE, - OffscreenCanvasRenderingContext2D: base_config_1.TYPE_VALUE, - OscillatorNode: base_config_1.TYPE_VALUE, - OverconstrainedError: base_config_1.TYPE_VALUE, - PageTransitionEvent: base_config_1.TYPE_VALUE, - PannerNode: base_config_1.TYPE_VALUE, - ParentNode: base_config_1.TYPE, - Path2D: base_config_1.TYPE_VALUE, - PaymentMethodChangeEvent: base_config_1.TYPE_VALUE, - PaymentRequestEventMap: base_config_1.TYPE, - PaymentRequest: base_config_1.TYPE_VALUE, - PaymentRequestUpdateEvent: base_config_1.TYPE_VALUE, - PaymentResponse: base_config_1.TYPE_VALUE, - PerformanceEventMap: base_config_1.TYPE, - Performance: base_config_1.TYPE_VALUE, - PerformanceEntry: base_config_1.TYPE_VALUE, - PerformanceEventTiming: base_config_1.TYPE_VALUE, - PerformanceMark: base_config_1.TYPE_VALUE, - PerformanceMeasure: base_config_1.TYPE_VALUE, - PerformanceNavigation: base_config_1.TYPE_VALUE, - PerformanceNavigationTiming: base_config_1.TYPE_VALUE, - PerformanceObserver: base_config_1.TYPE_VALUE, - PerformanceObserverEntryList: base_config_1.TYPE_VALUE, - PerformancePaintTiming: base_config_1.TYPE_VALUE, - PerformanceResourceTiming: base_config_1.TYPE_VALUE, - PerformanceServerTiming: base_config_1.TYPE_VALUE, - PerformanceTiming: base_config_1.TYPE_VALUE, - PeriodicWave: base_config_1.TYPE_VALUE, - PermissionStatusEventMap: base_config_1.TYPE, - PermissionStatus: base_config_1.TYPE_VALUE, - Permissions: base_config_1.TYPE_VALUE, - PictureInPictureEvent: base_config_1.TYPE_VALUE, - PictureInPictureWindowEventMap: base_config_1.TYPE, - PictureInPictureWindow: base_config_1.TYPE_VALUE, - Plugin: base_config_1.TYPE_VALUE, - PluginArray: base_config_1.TYPE_VALUE, - PointerEvent: base_config_1.TYPE_VALUE, - PopStateEvent: base_config_1.TYPE_VALUE, - ProcessingInstruction: base_config_1.TYPE_VALUE, - ProgressEvent: base_config_1.TYPE_VALUE, - PromiseRejectionEvent: base_config_1.TYPE_VALUE, - PublicKeyCredential: base_config_1.TYPE_VALUE, - PushManager: base_config_1.TYPE_VALUE, - PushSubscription: base_config_1.TYPE_VALUE, - PushSubscriptionOptions: base_config_1.TYPE_VALUE, - RTCCertificate: base_config_1.TYPE_VALUE, - RTCDTMFSenderEventMap: base_config_1.TYPE, - RTCDTMFSender: base_config_1.TYPE_VALUE, - RTCDTMFToneChangeEvent: base_config_1.TYPE_VALUE, - RTCDataChannelEventMap: base_config_1.TYPE, - RTCDataChannel: base_config_1.TYPE_VALUE, - RTCDataChannelEvent: base_config_1.TYPE_VALUE, - RTCDtlsTransportEventMap: base_config_1.TYPE, - RTCDtlsTransport: base_config_1.TYPE_VALUE, - RTCEncodedAudioFrame: base_config_1.TYPE_VALUE, - RTCEncodedVideoFrame: base_config_1.TYPE_VALUE, - RTCError: base_config_1.TYPE_VALUE, - RTCErrorEvent: base_config_1.TYPE_VALUE, - RTCIceCandidate: base_config_1.TYPE_VALUE, - RTCIceTransportEventMap: base_config_1.TYPE, - RTCIceTransport: base_config_1.TYPE_VALUE, - RTCPeerConnectionEventMap: base_config_1.TYPE, - RTCPeerConnection: base_config_1.TYPE_VALUE, - RTCPeerConnectionIceErrorEvent: base_config_1.TYPE_VALUE, - RTCPeerConnectionIceEvent: base_config_1.TYPE_VALUE, - RTCRtpReceiver: base_config_1.TYPE_VALUE, - RTCRtpSender: base_config_1.TYPE_VALUE, - RTCRtpTransceiver: base_config_1.TYPE_VALUE, - RTCSctpTransportEventMap: base_config_1.TYPE, - RTCSctpTransport: base_config_1.TYPE_VALUE, - RTCSessionDescription: base_config_1.TYPE_VALUE, - RTCStatsReport: base_config_1.TYPE_VALUE, - RTCTrackEvent: base_config_1.TYPE_VALUE, - RadioNodeList: base_config_1.TYPE_VALUE, - Range: base_config_1.TYPE_VALUE, - ReadableByteStreamController: base_config_1.TYPE_VALUE, - ReadableStream: base_config_1.TYPE_VALUE, - ReadableStreamBYOBReader: base_config_1.TYPE_VALUE, - ReadableStreamBYOBRequest: base_config_1.TYPE_VALUE, - ReadableStreamDefaultController: base_config_1.TYPE_VALUE, - ReadableStreamDefaultReader: base_config_1.TYPE_VALUE, - ReadableStreamGenericReader: base_config_1.TYPE, - RemotePlaybackEventMap: base_config_1.TYPE, - RemotePlayback: base_config_1.TYPE_VALUE, - Request: base_config_1.TYPE_VALUE, - ResizeObserver: base_config_1.TYPE_VALUE, - ResizeObserverEntry: base_config_1.TYPE_VALUE, - ResizeObserverSize: base_config_1.TYPE_VALUE, - Response: base_config_1.TYPE_VALUE, - SVGAElement: base_config_1.TYPE_VALUE, - SVGAngle: base_config_1.TYPE_VALUE, - SVGAnimateElement: base_config_1.TYPE_VALUE, - SVGAnimateMotionElement: base_config_1.TYPE_VALUE, - SVGAnimateTransformElement: base_config_1.TYPE_VALUE, - SVGAnimatedAngle: base_config_1.TYPE_VALUE, - SVGAnimatedBoolean: base_config_1.TYPE_VALUE, - SVGAnimatedEnumeration: base_config_1.TYPE_VALUE, - SVGAnimatedInteger: base_config_1.TYPE_VALUE, - SVGAnimatedLength: base_config_1.TYPE_VALUE, - SVGAnimatedLengthList: base_config_1.TYPE_VALUE, - SVGAnimatedNumber: base_config_1.TYPE_VALUE, - SVGAnimatedNumberList: base_config_1.TYPE_VALUE, - SVGAnimatedPoints: base_config_1.TYPE, - SVGAnimatedPreserveAspectRatio: base_config_1.TYPE_VALUE, - SVGAnimatedRect: base_config_1.TYPE_VALUE, - SVGAnimatedString: base_config_1.TYPE_VALUE, - SVGAnimatedTransformList: base_config_1.TYPE_VALUE, - SVGAnimationElement: base_config_1.TYPE_VALUE, - SVGCircleElement: base_config_1.TYPE_VALUE, - SVGClipPathElement: base_config_1.TYPE_VALUE, - SVGComponentTransferFunctionElement: base_config_1.TYPE_VALUE, - SVGDefsElement: base_config_1.TYPE_VALUE, - SVGDescElement: base_config_1.TYPE_VALUE, - SVGElementEventMap: base_config_1.TYPE, - SVGElement: base_config_1.TYPE_VALUE, - SVGEllipseElement: base_config_1.TYPE_VALUE, - SVGFEBlendElement: base_config_1.TYPE_VALUE, - SVGFEColorMatrixElement: base_config_1.TYPE_VALUE, - SVGFEComponentTransferElement: base_config_1.TYPE_VALUE, - SVGFECompositeElement: base_config_1.TYPE_VALUE, - SVGFEConvolveMatrixElement: base_config_1.TYPE_VALUE, - SVGFEDiffuseLightingElement: base_config_1.TYPE_VALUE, - SVGFEDisplacementMapElement: base_config_1.TYPE_VALUE, - SVGFEDistantLightElement: base_config_1.TYPE_VALUE, - SVGFEDropShadowElement: base_config_1.TYPE_VALUE, - SVGFEFloodElement: base_config_1.TYPE_VALUE, - SVGFEFuncAElement: base_config_1.TYPE_VALUE, - SVGFEFuncBElement: base_config_1.TYPE_VALUE, - SVGFEFuncGElement: base_config_1.TYPE_VALUE, - SVGFEFuncRElement: base_config_1.TYPE_VALUE, - SVGFEGaussianBlurElement: base_config_1.TYPE_VALUE, - SVGFEImageElement: base_config_1.TYPE_VALUE, - SVGFEMergeElement: base_config_1.TYPE_VALUE, - SVGFEMergeNodeElement: base_config_1.TYPE_VALUE, - SVGFEMorphologyElement: base_config_1.TYPE_VALUE, - SVGFEOffsetElement: base_config_1.TYPE_VALUE, - SVGFEPointLightElement: base_config_1.TYPE_VALUE, - SVGFESpecularLightingElement: base_config_1.TYPE_VALUE, - SVGFESpotLightElement: base_config_1.TYPE_VALUE, - SVGFETileElement: base_config_1.TYPE_VALUE, - SVGFETurbulenceElement: base_config_1.TYPE_VALUE, - SVGFilterElement: base_config_1.TYPE_VALUE, - SVGFilterPrimitiveStandardAttributes: base_config_1.TYPE, - SVGFitToViewBox: base_config_1.TYPE, - SVGForeignObjectElement: base_config_1.TYPE_VALUE, - SVGGElement: base_config_1.TYPE_VALUE, - SVGGeometryElement: base_config_1.TYPE_VALUE, - SVGGradientElement: base_config_1.TYPE_VALUE, - SVGGraphicsElement: base_config_1.TYPE_VALUE, - SVGImageElement: base_config_1.TYPE_VALUE, - SVGLength: base_config_1.TYPE_VALUE, - SVGLengthList: base_config_1.TYPE_VALUE, - SVGLineElement: base_config_1.TYPE_VALUE, - SVGLinearGradientElement: base_config_1.TYPE_VALUE, - SVGMPathElement: base_config_1.TYPE_VALUE, - SVGMarkerElement: base_config_1.TYPE_VALUE, - SVGMaskElement: base_config_1.TYPE_VALUE, - SVGMetadataElement: base_config_1.TYPE_VALUE, - SVGNumber: base_config_1.TYPE_VALUE, - SVGNumberList: base_config_1.TYPE_VALUE, - SVGPathElement: base_config_1.TYPE_VALUE, - SVGPatternElement: base_config_1.TYPE_VALUE, - SVGPointList: base_config_1.TYPE_VALUE, - SVGPolygonElement: base_config_1.TYPE_VALUE, - SVGPolylineElement: base_config_1.TYPE_VALUE, - SVGPreserveAspectRatio: base_config_1.TYPE_VALUE, - SVGRadialGradientElement: base_config_1.TYPE_VALUE, - SVGRectElement: base_config_1.TYPE_VALUE, - SVGSVGElementEventMap: base_config_1.TYPE, - SVGSVGElement: base_config_1.TYPE_VALUE, - SVGScriptElement: base_config_1.TYPE_VALUE, - SVGSetElement: base_config_1.TYPE_VALUE, - SVGStopElement: base_config_1.TYPE_VALUE, - SVGStringList: base_config_1.TYPE_VALUE, - SVGStyleElement: base_config_1.TYPE_VALUE, - SVGSwitchElement: base_config_1.TYPE_VALUE, - SVGSymbolElement: base_config_1.TYPE_VALUE, - SVGTSpanElement: base_config_1.TYPE_VALUE, - SVGTests: base_config_1.TYPE, - SVGTextContentElement: base_config_1.TYPE_VALUE, - SVGTextElement: base_config_1.TYPE_VALUE, - SVGTextPathElement: base_config_1.TYPE_VALUE, - SVGTextPositioningElement: base_config_1.TYPE_VALUE, - SVGTitleElement: base_config_1.TYPE_VALUE, - SVGTransform: base_config_1.TYPE_VALUE, - SVGTransformList: base_config_1.TYPE_VALUE, - SVGURIReference: base_config_1.TYPE, - SVGUnitTypes: base_config_1.TYPE_VALUE, - SVGUseElement: base_config_1.TYPE_VALUE, - SVGViewElement: base_config_1.TYPE_VALUE, - Screen: base_config_1.TYPE_VALUE, - ScreenOrientationEventMap: base_config_1.TYPE, - ScreenOrientation: base_config_1.TYPE_VALUE, - ScriptProcessorNodeEventMap: base_config_1.TYPE, - ScriptProcessorNode: base_config_1.TYPE_VALUE, - SecurityPolicyViolationEvent: base_config_1.TYPE_VALUE, - Selection: base_config_1.TYPE_VALUE, - ServiceWorkerEventMap: base_config_1.TYPE, - ServiceWorker: base_config_1.TYPE_VALUE, - ServiceWorkerContainerEventMap: base_config_1.TYPE, - ServiceWorkerContainer: base_config_1.TYPE_VALUE, - ServiceWorkerRegistrationEventMap: base_config_1.TYPE, - ServiceWorkerRegistration: base_config_1.TYPE_VALUE, - ShadowRootEventMap: base_config_1.TYPE, - ShadowRoot: base_config_1.TYPE_VALUE, - SharedWorker: base_config_1.TYPE_VALUE, - Slottable: base_config_1.TYPE, - SourceBufferEventMap: base_config_1.TYPE, - SourceBuffer: base_config_1.TYPE_VALUE, - SourceBufferListEventMap: base_config_1.TYPE, - SourceBufferList: base_config_1.TYPE_VALUE, - SpeechRecognitionAlternative: base_config_1.TYPE_VALUE, - SpeechRecognitionResult: base_config_1.TYPE_VALUE, - SpeechRecognitionResultList: base_config_1.TYPE_VALUE, - SpeechSynthesisEventMap: base_config_1.TYPE, - SpeechSynthesis: base_config_1.TYPE_VALUE, - SpeechSynthesisErrorEvent: base_config_1.TYPE_VALUE, - SpeechSynthesisEvent: base_config_1.TYPE_VALUE, - SpeechSynthesisUtteranceEventMap: base_config_1.TYPE, - SpeechSynthesisUtterance: base_config_1.TYPE_VALUE, - SpeechSynthesisVoice: base_config_1.TYPE_VALUE, - StaticRange: base_config_1.TYPE_VALUE, - StereoPannerNode: base_config_1.TYPE_VALUE, - Storage: base_config_1.TYPE_VALUE, - StorageEvent: base_config_1.TYPE_VALUE, - StorageManager: base_config_1.TYPE_VALUE, - StyleMedia: base_config_1.TYPE, - StyleSheet: base_config_1.TYPE_VALUE, - StyleSheetList: base_config_1.TYPE_VALUE, - SubmitEvent: base_config_1.TYPE_VALUE, - SubtleCrypto: base_config_1.TYPE_VALUE, - Text: base_config_1.TYPE_VALUE, - TextDecoder: base_config_1.TYPE_VALUE, - TextDecoderCommon: base_config_1.TYPE, - TextDecoderStream: base_config_1.TYPE_VALUE, - TextEncoder: base_config_1.TYPE_VALUE, - TextEncoderCommon: base_config_1.TYPE, - TextEncoderStream: base_config_1.TYPE_VALUE, - TextMetrics: base_config_1.TYPE_VALUE, - TextTrackEventMap: base_config_1.TYPE, - TextTrack: base_config_1.TYPE_VALUE, - TextTrackCueEventMap: base_config_1.TYPE, - TextTrackCue: base_config_1.TYPE_VALUE, - TextTrackCueList: base_config_1.TYPE_VALUE, - TextTrackListEventMap: base_config_1.TYPE, - TextTrackList: base_config_1.TYPE_VALUE, - TimeRanges: base_config_1.TYPE_VALUE, - Touch: base_config_1.TYPE_VALUE, - TouchEvent: base_config_1.TYPE_VALUE, - TouchList: base_config_1.TYPE_VALUE, - TrackEvent: base_config_1.TYPE_VALUE, - TransformStream: base_config_1.TYPE_VALUE, - TransformStreamDefaultController: base_config_1.TYPE_VALUE, - TransitionEvent: base_config_1.TYPE_VALUE, - TreeWalker: base_config_1.TYPE_VALUE, - UIEvent: base_config_1.TYPE_VALUE, - URL: base_config_1.TYPE_VALUE, - webkitURL: base_config_1.TYPE_VALUE, - URLSearchParams: base_config_1.TYPE_VALUE, - VTTCue: base_config_1.TYPE_VALUE, - VTTRegion: base_config_1.TYPE_VALUE, - ValidityState: base_config_1.TYPE_VALUE, - VideoColorSpace: base_config_1.TYPE_VALUE, - VideoPlaybackQuality: base_config_1.TYPE_VALUE, - VisualViewportEventMap: base_config_1.TYPE, - VisualViewport: base_config_1.TYPE_VALUE, - WEBGL_color_buffer_float: base_config_1.TYPE, - WEBGL_compressed_texture_astc: base_config_1.TYPE, - WEBGL_compressed_texture_etc: base_config_1.TYPE, - WEBGL_compressed_texture_etc1: base_config_1.TYPE, - WEBGL_compressed_texture_s3tc: base_config_1.TYPE, - WEBGL_compressed_texture_s3tc_srgb: base_config_1.TYPE, - WEBGL_debug_renderer_info: base_config_1.TYPE, - WEBGL_debug_shaders: base_config_1.TYPE, - WEBGL_depth_texture: base_config_1.TYPE, - WEBGL_draw_buffers: base_config_1.TYPE, - WEBGL_lose_context: base_config_1.TYPE, - WEBGL_multi_draw: base_config_1.TYPE, - WaveShaperNode: base_config_1.TYPE_VALUE, - WebGL2RenderingContext: base_config_1.TYPE_VALUE, - WebGL2RenderingContextBase: base_config_1.TYPE, - WebGL2RenderingContextOverloads: base_config_1.TYPE, - WebGLActiveInfo: base_config_1.TYPE_VALUE, - WebGLBuffer: base_config_1.TYPE_VALUE, - WebGLContextEvent: base_config_1.TYPE_VALUE, - WebGLFramebuffer: base_config_1.TYPE_VALUE, - WebGLProgram: base_config_1.TYPE_VALUE, - WebGLQuery: base_config_1.TYPE_VALUE, - WebGLRenderbuffer: base_config_1.TYPE_VALUE, - WebGLRenderingContext: base_config_1.TYPE_VALUE, - WebGLRenderingContextBase: base_config_1.TYPE, - WebGLRenderingContextOverloads: base_config_1.TYPE, - WebGLSampler: base_config_1.TYPE_VALUE, - WebGLShader: base_config_1.TYPE_VALUE, - WebGLShaderPrecisionFormat: base_config_1.TYPE_VALUE, - WebGLSync: base_config_1.TYPE_VALUE, - WebGLTexture: base_config_1.TYPE_VALUE, - WebGLTransformFeedback: base_config_1.TYPE_VALUE, - WebGLUniformLocation: base_config_1.TYPE_VALUE, - WebGLVertexArrayObject: base_config_1.TYPE_VALUE, - WebGLVertexArrayObjectOES: base_config_1.TYPE, - WebSocketEventMap: base_config_1.TYPE, - WebSocket: base_config_1.TYPE_VALUE, - WheelEvent: base_config_1.TYPE_VALUE, - WindowEventMap: base_config_1.TYPE, - Window: base_config_1.TYPE_VALUE, - WindowEventHandlersEventMap: base_config_1.TYPE, - WindowEventHandlers: base_config_1.TYPE, - WindowLocalStorage: base_config_1.TYPE, - WindowOrWorkerGlobalScope: base_config_1.TYPE, - WindowSessionStorage: base_config_1.TYPE, - WorkerEventMap: base_config_1.TYPE, - Worker: base_config_1.TYPE_VALUE, - Worklet: base_config_1.TYPE_VALUE, - WritableStream: base_config_1.TYPE_VALUE, - WritableStreamDefaultController: base_config_1.TYPE_VALUE, - WritableStreamDefaultWriter: base_config_1.TYPE_VALUE, - XMLDocument: base_config_1.TYPE_VALUE, - XMLHttpRequestEventMap: base_config_1.TYPE, - XMLHttpRequest: base_config_1.TYPE_VALUE, - XMLHttpRequestEventTargetEventMap: base_config_1.TYPE, - XMLHttpRequestEventTarget: base_config_1.TYPE_VALUE, - XMLHttpRequestUpload: base_config_1.TYPE_VALUE, - XMLSerializer: base_config_1.TYPE_VALUE, - XPathEvaluator: base_config_1.TYPE_VALUE, - XPathEvaluatorBase: base_config_1.TYPE, - XPathExpression: base_config_1.TYPE_VALUE, - XPathResult: base_config_1.TYPE_VALUE, - XSLTProcessor: base_config_1.TYPE_VALUE, - Console: base_config_1.TYPE, - CSS: base_config_1.TYPE_VALUE, - WebAssembly: base_config_1.TYPE_VALUE, - BlobCallback: base_config_1.TYPE, - CustomElementConstructor: base_config_1.TYPE, - DecodeErrorCallback: base_config_1.TYPE, - DecodeSuccessCallback: base_config_1.TYPE, - ErrorCallback: base_config_1.TYPE, - FileCallback: base_config_1.TYPE, - FileSystemEntriesCallback: base_config_1.TYPE, - FileSystemEntryCallback: base_config_1.TYPE, - FrameRequestCallback: base_config_1.TYPE, - FunctionStringCallback: base_config_1.TYPE, - IdleRequestCallback: base_config_1.TYPE, - IntersectionObserverCallback: base_config_1.TYPE, - LockGrantedCallback: base_config_1.TYPE, - MediaSessionActionHandler: base_config_1.TYPE, - MutationCallback: base_config_1.TYPE, - NotificationPermissionCallback: base_config_1.TYPE, - OnBeforeUnloadEventHandlerNonNull: base_config_1.TYPE, - OnErrorEventHandlerNonNull: base_config_1.TYPE, - PerformanceObserverCallback: base_config_1.TYPE, - PositionCallback: base_config_1.TYPE, - PositionErrorCallback: base_config_1.TYPE, - QueuingStrategySize: base_config_1.TYPE, - RTCPeerConnectionErrorCallback: base_config_1.TYPE, - RTCSessionDescriptionCallback: base_config_1.TYPE, - RemotePlaybackAvailabilityCallback: base_config_1.TYPE, - ResizeObserverCallback: base_config_1.TYPE, - TransformerFlushCallback: base_config_1.TYPE, - TransformerStartCallback: base_config_1.TYPE, - TransformerTransformCallback: base_config_1.TYPE, - UnderlyingSinkAbortCallback: base_config_1.TYPE, - UnderlyingSinkCloseCallback: base_config_1.TYPE, - UnderlyingSinkStartCallback: base_config_1.TYPE, - UnderlyingSinkWriteCallback: base_config_1.TYPE, - UnderlyingSourceCancelCallback: base_config_1.TYPE, - UnderlyingSourcePullCallback: base_config_1.TYPE, - UnderlyingSourceStartCallback: base_config_1.TYPE, - VideoFrameRequestCallback: base_config_1.TYPE, - VoidFunction: base_config_1.TYPE, - HTMLElementTagNameMap: base_config_1.TYPE, - HTMLElementDeprecatedTagNameMap: base_config_1.TYPE, - SVGElementTagNameMap: base_config_1.TYPE, - MathMLElementTagNameMap: base_config_1.TYPE, - ElementTagNameMap: base_config_1.TYPE, - AlgorithmIdentifier: base_config_1.TYPE, - BigInteger: base_config_1.TYPE, - BinaryData: base_config_1.TYPE, - BlobPart: base_config_1.TYPE, - BodyInit: base_config_1.TYPE, - BufferSource: base_config_1.TYPE, - COSEAlgorithmIdentifier: base_config_1.TYPE, - CSSNumberish: base_config_1.TYPE, - CanvasImageSource: base_config_1.TYPE, - ClipboardItemData: base_config_1.TYPE, - ClipboardItems: base_config_1.TYPE, - ConstrainBoolean: base_config_1.TYPE, - ConstrainDOMString: base_config_1.TYPE, - ConstrainDouble: base_config_1.TYPE, - ConstrainULong: base_config_1.TYPE, - DOMHighResTimeStamp: base_config_1.TYPE, - EpochTimeStamp: base_config_1.TYPE, - EventListenerOrEventListenerObject: base_config_1.TYPE, - Float32List: base_config_1.TYPE, - FormDataEntryValue: base_config_1.TYPE, - GLbitfield: base_config_1.TYPE, - GLboolean: base_config_1.TYPE, - GLclampf: base_config_1.TYPE, - GLenum: base_config_1.TYPE, - GLfloat: base_config_1.TYPE, - GLint: base_config_1.TYPE, - GLint64: base_config_1.TYPE, - GLintptr: base_config_1.TYPE, - GLsizei: base_config_1.TYPE, - GLsizeiptr: base_config_1.TYPE, - GLuint: base_config_1.TYPE, - GLuint64: base_config_1.TYPE, - HTMLOrSVGImageElement: base_config_1.TYPE, - HTMLOrSVGScriptElement: base_config_1.TYPE, - HashAlgorithmIdentifier: base_config_1.TYPE, - HeadersInit: base_config_1.TYPE, - IDBValidKey: base_config_1.TYPE, - ImageBitmapSource: base_config_1.TYPE, - Int32List: base_config_1.TYPE, - LineAndPositionSetting: base_config_1.TYPE, - MediaProvider: base_config_1.TYPE, - MessageEventSource: base_config_1.TYPE, - MutationRecordType: base_config_1.TYPE, - NamedCurve: base_config_1.TYPE, - OffscreenRenderingContext: base_config_1.TYPE, - OnBeforeUnloadEventHandler: base_config_1.TYPE, - OnErrorEventHandler: base_config_1.TYPE, - PerformanceEntryList: base_config_1.TYPE, - ReadableStreamController: base_config_1.TYPE, - ReadableStreamReadResult: base_config_1.TYPE, - ReadableStreamReader: base_config_1.TYPE, - RenderingContext: base_config_1.TYPE, - RequestInfo: base_config_1.TYPE, - TexImageSource: base_config_1.TYPE, - TimerHandler: base_config_1.TYPE, - Transferable: base_config_1.TYPE, - Uint32List: base_config_1.TYPE, - VibratePattern: base_config_1.TYPE, - WindowProxy: base_config_1.TYPE, - XMLHttpRequestBodyInit: base_config_1.TYPE, - AlignSetting: base_config_1.TYPE, - AnimationPlayState: base_config_1.TYPE, - AnimationReplaceState: base_config_1.TYPE, - AppendMode: base_config_1.TYPE, - AttestationConveyancePreference: base_config_1.TYPE, - AudioContextLatencyCategory: base_config_1.TYPE, - AudioContextState: base_config_1.TYPE, - AuthenticatorAttachment: base_config_1.TYPE, - AuthenticatorTransport: base_config_1.TYPE, - AutoKeyword: base_config_1.TYPE, - AutomationRate: base_config_1.TYPE, - BinaryType: base_config_1.TYPE, - BiquadFilterType: base_config_1.TYPE, - CanPlayTypeResult: base_config_1.TYPE, - CanvasDirection: base_config_1.TYPE, - CanvasFillRule: base_config_1.TYPE, - CanvasFontKerning: base_config_1.TYPE, - CanvasFontStretch: base_config_1.TYPE, - CanvasFontVariantCaps: base_config_1.TYPE, - CanvasLineCap: base_config_1.TYPE, - CanvasLineJoin: base_config_1.TYPE, - CanvasTextAlign: base_config_1.TYPE, - CanvasTextBaseline: base_config_1.TYPE, - CanvasTextRendering: base_config_1.TYPE, - ChannelCountMode: base_config_1.TYPE, - ChannelInterpretation: base_config_1.TYPE, - ClientTypes: base_config_1.TYPE, - ColorGamut: base_config_1.TYPE, - ColorSpaceConversion: base_config_1.TYPE, - CompositeOperation: base_config_1.TYPE, - CompositeOperationOrAuto: base_config_1.TYPE, - CredentialMediationRequirement: base_config_1.TYPE, - DOMParserSupportedType: base_config_1.TYPE, - DirectionSetting: base_config_1.TYPE, - DisplayCaptureSurfaceType: base_config_1.TYPE, - DistanceModelType: base_config_1.TYPE, - DocumentReadyState: base_config_1.TYPE, - DocumentVisibilityState: base_config_1.TYPE, - EndOfStreamError: base_config_1.TYPE, - EndingType: base_config_1.TYPE, - FileSystemHandleKind: base_config_1.TYPE, - FillMode: base_config_1.TYPE, - FontDisplay: base_config_1.TYPE, - FontFaceLoadStatus: base_config_1.TYPE, - FontFaceSetLoadStatus: base_config_1.TYPE, - FullscreenNavigationUI: base_config_1.TYPE, - GamepadHapticActuatorType: base_config_1.TYPE, - GamepadMappingType: base_config_1.TYPE, - GlobalCompositeOperation: base_config_1.TYPE, - HdrMetadataType: base_config_1.TYPE, - IDBCursorDirection: base_config_1.TYPE, - IDBRequestReadyState: base_config_1.TYPE, - IDBTransactionDurability: base_config_1.TYPE, - IDBTransactionMode: base_config_1.TYPE, - ImageOrientation: base_config_1.TYPE, - ImageSmoothingQuality: base_config_1.TYPE, - InsertPosition: base_config_1.TYPE, - IterationCompositeOperation: base_config_1.TYPE, - KeyFormat: base_config_1.TYPE, - KeyType: base_config_1.TYPE, - KeyUsage: base_config_1.TYPE, - LineAlignSetting: base_config_1.TYPE, - LockMode: base_config_1.TYPE, - MIDIPortConnectionState: base_config_1.TYPE, - MIDIPortDeviceState: base_config_1.TYPE, - MIDIPortType: base_config_1.TYPE, - MediaDecodingType: base_config_1.TYPE, - MediaDeviceKind: base_config_1.TYPE, - MediaEncodingType: base_config_1.TYPE, - MediaKeyMessageType: base_config_1.TYPE, - MediaKeySessionClosedReason: base_config_1.TYPE, - MediaKeySessionType: base_config_1.TYPE, - MediaKeyStatus: base_config_1.TYPE, - MediaKeysRequirement: base_config_1.TYPE, - MediaSessionAction: base_config_1.TYPE, - MediaSessionPlaybackState: base_config_1.TYPE, - MediaStreamTrackState: base_config_1.TYPE, - NavigationTimingType: base_config_1.TYPE, - NotificationDirection: base_config_1.TYPE, - NotificationPermission: base_config_1.TYPE, - OffscreenRenderingContextId: base_config_1.TYPE, - OrientationLockType: base_config_1.TYPE, - OrientationType: base_config_1.TYPE, - OscillatorType: base_config_1.TYPE, - OverSampleType: base_config_1.TYPE, - PanningModelType: base_config_1.TYPE, - PaymentComplete: base_config_1.TYPE, - PermissionName: base_config_1.TYPE, - PermissionState: base_config_1.TYPE, - PlaybackDirection: base_config_1.TYPE, - PositionAlignSetting: base_config_1.TYPE, - PredefinedColorSpace: base_config_1.TYPE, - PremultiplyAlpha: base_config_1.TYPE, - PresentationStyle: base_config_1.TYPE, - PublicKeyCredentialType: base_config_1.TYPE, - PushEncryptionKeyName: base_config_1.TYPE, - RTCBundlePolicy: base_config_1.TYPE, - RTCDataChannelState: base_config_1.TYPE, - RTCDegradationPreference: base_config_1.TYPE, - RTCDtlsTransportState: base_config_1.TYPE, - RTCEncodedVideoFrameType: base_config_1.TYPE, - RTCErrorDetailType: base_config_1.TYPE, - RTCIceCandidateType: base_config_1.TYPE, - RTCIceComponent: base_config_1.TYPE, - RTCIceConnectionState: base_config_1.TYPE, - RTCIceGathererState: base_config_1.TYPE, - RTCIceGatheringState: base_config_1.TYPE, - RTCIceProtocol: base_config_1.TYPE, - RTCIceTcpCandidateType: base_config_1.TYPE, - RTCIceTransportPolicy: base_config_1.TYPE, - RTCIceTransportState: base_config_1.TYPE, - RTCPeerConnectionState: base_config_1.TYPE, - RTCPriorityType: base_config_1.TYPE, - RTCRtcpMuxPolicy: base_config_1.TYPE, - RTCRtpTransceiverDirection: base_config_1.TYPE, - RTCSctpTransportState: base_config_1.TYPE, - RTCSdpType: base_config_1.TYPE, - RTCSignalingState: base_config_1.TYPE, - RTCStatsIceCandidatePairState: base_config_1.TYPE, - RTCStatsType: base_config_1.TYPE, - ReadableStreamReaderMode: base_config_1.TYPE, - ReadableStreamType: base_config_1.TYPE, - ReadyState: base_config_1.TYPE, - RecordingState: base_config_1.TYPE, - ReferrerPolicy: base_config_1.TYPE, - RemotePlaybackState: base_config_1.TYPE, - RequestCache: base_config_1.TYPE, - RequestCredentials: base_config_1.TYPE, - RequestDestination: base_config_1.TYPE, - RequestMode: base_config_1.TYPE, - RequestRedirect: base_config_1.TYPE, - ResidentKeyRequirement: base_config_1.TYPE, - ResizeObserverBoxOptions: base_config_1.TYPE, - ResizeQuality: base_config_1.TYPE, - ResponseType: base_config_1.TYPE, - ScrollBehavior: base_config_1.TYPE, - ScrollLogicalPosition: base_config_1.TYPE, - ScrollRestoration: base_config_1.TYPE, - ScrollSetting: base_config_1.TYPE, - SecurityPolicyViolationEventDisposition: base_config_1.TYPE, - SelectionMode: base_config_1.TYPE, - ServiceWorkerState: base_config_1.TYPE, - ServiceWorkerUpdateViaCache: base_config_1.TYPE, - ShadowRootMode: base_config_1.TYPE, - SlotAssignmentMode: base_config_1.TYPE, - SpeechSynthesisErrorCode: base_config_1.TYPE, - TextTrackKind: base_config_1.TYPE, - TextTrackMode: base_config_1.TYPE, - TouchType: base_config_1.TYPE, - TransferFunction: base_config_1.TYPE, - UserVerificationRequirement: base_config_1.TYPE, - VideoColorPrimaries: base_config_1.TYPE, - VideoFacingModeEnum: base_config_1.TYPE, - VideoMatrixCoefficients: base_config_1.TYPE, - VideoTransferCharacteristics: base_config_1.TYPE, - WebGLPowerPreference: base_config_1.TYPE, - WorkerType: base_config_1.TYPE, - XMLHttpRequestResponseType: base_config_1.TYPE, -}; -//# sourceMappingURL=dom.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map deleted file mode 100644 index 477e6efc..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dom.js","sourceRoot":"","sources":["../../src/lib/dom.ts"],"names":[],"mappings":";AA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B,iBAAiB,EAAE,kBAAI;IACvB,6BAA6B,EAAE,kBAAI;IACnC,YAAY,EAAE,kBAAI;IAClB,wBAAwB,EAAE,kBAAI;IAC9B,kBAAkB,EAAE,kBAAI;IACxB,UAAU,EAAE,kBAAI;IAChB,cAAc,EAAE,kBAAI;IACpB,cAAc,EAAE,kBAAI;IACpB,mBAAmB,EAAE,kBAAI;IACzB,YAAY,EAAE,kBAAI;IAClB,kBAAkB,EAAE,kBAAI;IACxB,kBAAkB,EAAE,kBAAI;IACxB,WAAW,EAAE,kBAAI;IACjB,eAAe,EAAE,kBAAI;IACrB,sBAAsB,EAAE,kBAAI;IAC5B,wBAAwB,EAAE,kBAAI;IAC9B,aAAa,EAAE,kBAAI;IACnB,YAAY,EAAE,kBAAI;IAClB,cAAc,EAAE,kBAAI;IACpB,qBAAqB,EAAE,kBAAI;IAC3B,iBAAiB,EAAE,kBAAI;IACvB,aAAa,EAAE,kBAAI;IACnB,uCAAuC,EAAE,kBAAI;IAC7C,aAAa,EAAE,kBAAI;IACnB,kBAAkB,EAAE,kBAAI;IACxB,2BAA2B,EAAE,kBAAI;IACjC,cAAc,EAAE,kBAAI;IACpB,kBAAkB,EAAE,kBAAI;IACxB,wBAAwB,EAAE,kBAAI;IAC9B,aAAa,EAAE,kBAAI;IACnB,aAAa,EAAE,kBAAI;IACnB,SAAS,EAAE,kBAAI;IACf,gBAAgB,EAAE,kBAAI;IACtB,2BAA2B,EAAE,kBAAI;IACjC,mBAAmB,EAAE,kBAAI;IACzB,mBAAmB,EAAE,kBAAI;IACzB,uBAAuB,EAAE,kBAAI;IAC7B,4BAA4B,EAAE,kBAAI;IAClC,oBAAoB,EAAE,kBAAI;IAC1B,UAAU,EAAE,kBAAI;IAChB,0BAA0B,EAAE,kBAAI;CACa,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts deleted file mode 100644 index 8bc3c49f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2015_collection: Record; -//# sourceMappingURL=es2015.collection.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map deleted file mode 100644 index a13b7c50..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.collection.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.collection.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,iBAAiB,4CAWiB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js deleted file mode 100644 index b81c3f5d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2015_collection = void 0; -const base_config_1 = require("./base-config"); -exports.es2015_collection = { - Map: base_config_1.TYPE_VALUE, - MapConstructor: base_config_1.TYPE, - ReadonlyMap: base_config_1.TYPE, - WeakMap: base_config_1.TYPE_VALUE, - WeakMapConstructor: base_config_1.TYPE, - Set: base_config_1.TYPE_VALUE, - SetConstructor: base_config_1.TYPE, - ReadonlySet: base_config_1.TYPE, - WeakSet: base_config_1.TYPE_VALUE, - WeakSetConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2015.collection.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map deleted file mode 100644 index af6239dc..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.collection.js","sourceRoot":"","sources":["../../src/lib/es2015.collection.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAiD;AAEpC,QAAA,iBAAiB,GAAG;IAC/B,GAAG,EAAE,wBAAU;IACf,cAAc,EAAE,kBAAI;IACpB,WAAW,EAAE,kBAAI;IACjB,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;IACxB,GAAG,EAAE,wBAAU;IACf,cAAc,EAAE,kBAAI;IACpB,WAAW,EAAE,kBAAI;IACjB,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts deleted file mode 100644 index c309d52d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2015_core: Record; -//# sourceMappingURL=es2015.core.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map deleted file mode 100644 index 2406c9c3..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.core.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.core.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,WAAW,4CAauB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js deleted file mode 100644 index 61b310ac..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2015_core = void 0; -const base_config_1 = require("./base-config"); -exports.es2015_core = { - Array: base_config_1.TYPE, - ArrayConstructor: base_config_1.TYPE, - DateConstructor: base_config_1.TYPE, - Function: base_config_1.TYPE, - Math: base_config_1.TYPE, - NumberConstructor: base_config_1.TYPE, - ObjectConstructor: base_config_1.TYPE, - ReadonlyArray: base_config_1.TYPE, - RegExp: base_config_1.TYPE, - RegExpConstructor: base_config_1.TYPE, - String: base_config_1.TYPE, - StringConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2015.core.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map deleted file mode 100644 index eae9b297..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.core.js","sourceRoot":"","sources":["../../src/lib/es2015.core.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,WAAW,GAAG;IACzB,KAAK,EAAE,kBAAI;IACX,gBAAgB,EAAE,kBAAI;IACtB,eAAe,EAAE,kBAAI;IACrB,QAAQ,EAAE,kBAAI;IACd,IAAI,EAAE,kBAAI;IACV,iBAAiB,EAAE,kBAAI;IACvB,iBAAiB,EAAE,kBAAI;IACvB,aAAa,EAAE,kBAAI;IACnB,MAAM,EAAE,kBAAI;IACZ,iBAAiB,EAAE,kBAAI;IACvB,MAAM,EAAE,kBAAI;IACZ,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts deleted file mode 100644 index 7f7de237..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2015: Record; -//# sourceMappingURL=es2015.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map deleted file mode 100644 index 238787cb..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAY9D,eAAO,MAAM,MAAM,4CAW4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts deleted file mode 100644 index cb5ce5da..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2015_generator: Record; -//# sourceMappingURL=es2015.generator.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map deleted file mode 100644 index a6f50f74..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.generator.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.generator.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,gBAAgB,4CAKkB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js deleted file mode 100644 index 32b2a3f0..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2015_generator = void 0; -const base_config_1 = require("./base-config"); -const es2015_iterable_1 = require("./es2015.iterable"); -exports.es2015_generator = Object.assign(Object.assign({}, es2015_iterable_1.es2015_iterable), { Generator: base_config_1.TYPE, GeneratorFunction: base_config_1.TYPE, GeneratorFunctionConstructor: base_config_1.TYPE }); -//# sourceMappingURL=es2015.generator.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map deleted file mode 100644 index ca73a3c5..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.generator.js","sourceRoot":"","sources":["../../src/lib/es2015.generator.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AACrC,uDAAoD;AAEvC,QAAA,gBAAgB,GAAG,gCAC3B,iCAAe,KAClB,SAAS,EAAE,kBAAI,EACf,iBAAiB,EAAE,kBAAI,EACvB,4BAA4B,EAAE,kBAAI,GACW,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts deleted file mode 100644 index 9daa14ef..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2015_iterable: Record; -//# sourceMappingURL=es2015.iterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map deleted file mode 100644 index fac61e97..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.iterable.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.iterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,eAAe,4CA4CmB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js deleted file mode 100644 index a5b1a1e6..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2015_iterable = void 0; -const base_config_1 = require("./base-config"); -const es2015_symbol_1 = require("./es2015.symbol"); -exports.es2015_iterable = Object.assign(Object.assign({}, es2015_symbol_1.es2015_symbol), { SymbolConstructor: base_config_1.TYPE, IteratorYieldResult: base_config_1.TYPE, IteratorReturnResult: base_config_1.TYPE, IteratorResult: base_config_1.TYPE, Iterator: base_config_1.TYPE, Iterable: base_config_1.TYPE, IterableIterator: base_config_1.TYPE, Array: base_config_1.TYPE, ArrayConstructor: base_config_1.TYPE, ReadonlyArray: base_config_1.TYPE, IArguments: base_config_1.TYPE, Map: base_config_1.TYPE, ReadonlyMap: base_config_1.TYPE, MapConstructor: base_config_1.TYPE, WeakMap: base_config_1.TYPE, WeakMapConstructor: base_config_1.TYPE, Set: base_config_1.TYPE, ReadonlySet: base_config_1.TYPE, SetConstructor: base_config_1.TYPE, WeakSet: base_config_1.TYPE, WeakSetConstructor: base_config_1.TYPE, Promise: base_config_1.TYPE, PromiseConstructor: base_config_1.TYPE, String: base_config_1.TYPE, Int8Array: base_config_1.TYPE, Int8ArrayConstructor: base_config_1.TYPE, Uint8Array: base_config_1.TYPE, Uint8ArrayConstructor: base_config_1.TYPE, Uint8ClampedArray: base_config_1.TYPE, Uint8ClampedArrayConstructor: base_config_1.TYPE, Int16Array: base_config_1.TYPE, Int16ArrayConstructor: base_config_1.TYPE, Uint16Array: base_config_1.TYPE, Uint16ArrayConstructor: base_config_1.TYPE, Int32Array: base_config_1.TYPE, Int32ArrayConstructor: base_config_1.TYPE, Uint32Array: base_config_1.TYPE, Uint32ArrayConstructor: base_config_1.TYPE, Float32Array: base_config_1.TYPE, Float32ArrayConstructor: base_config_1.TYPE, Float64Array: base_config_1.TYPE, Float64ArrayConstructor: base_config_1.TYPE }); -//# sourceMappingURL=es2015.iterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map deleted file mode 100644 index 802acc07..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.iterable.js","sourceRoot":"","sources":["../../src/lib/es2015.iterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AACrC,mDAAgD;AAEnC,QAAA,eAAe,GAAG,gCAC1B,6BAAa,KAChB,iBAAiB,EAAE,kBAAI,EACvB,mBAAmB,EAAE,kBAAI,EACzB,oBAAoB,EAAE,kBAAI,EAC1B,cAAc,EAAE,kBAAI,EACpB,QAAQ,EAAE,kBAAI,EACd,QAAQ,EAAE,kBAAI,EACd,gBAAgB,EAAE,kBAAI,EACtB,KAAK,EAAE,kBAAI,EACX,gBAAgB,EAAE,kBAAI,EACtB,aAAa,EAAE,kBAAI,EACnB,UAAU,EAAE,kBAAI,EAChB,GAAG,EAAE,kBAAI,EACT,WAAW,EAAE,kBAAI,EACjB,cAAc,EAAE,kBAAI,EACpB,OAAO,EAAE,kBAAI,EACb,kBAAkB,EAAE,kBAAI,EACxB,GAAG,EAAE,kBAAI,EACT,WAAW,EAAE,kBAAI,EACjB,cAAc,EAAE,kBAAI,EACpB,OAAO,EAAE,kBAAI,EACb,kBAAkB,EAAE,kBAAI,EACxB,OAAO,EAAE,kBAAI,EACb,kBAAkB,EAAE,kBAAI,EACxB,MAAM,EAAE,kBAAI,EACZ,SAAS,EAAE,kBAAI,EACf,oBAAoB,EAAE,kBAAI,EAC1B,UAAU,EAAE,kBAAI,EAChB,qBAAqB,EAAE,kBAAI,EAC3B,iBAAiB,EAAE,kBAAI,EACvB,4BAA4B,EAAE,kBAAI,EAClC,UAAU,EAAE,kBAAI,EAChB,qBAAqB,EAAE,kBAAI,EAC3B,WAAW,EAAE,kBAAI,EACjB,sBAAsB,EAAE,kBAAI,EAC5B,UAAU,EAAE,kBAAI,EAChB,qBAAqB,EAAE,kBAAI,EAC3B,WAAW,EAAE,kBAAI,EACjB,sBAAsB,EAAE,kBAAI,EAC5B,YAAY,EAAE,kBAAI,EAClB,uBAAuB,EAAE,kBAAI,EAC7B,YAAY,EAAE,kBAAI,EAClB,uBAAuB,EAAE,kBAAI,GACgB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js deleted file mode 100644 index 0d2d52a8..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2015 = void 0; -const es5_1 = require("./es5"); -const es2015_collection_1 = require("./es2015.collection"); -const es2015_core_1 = require("./es2015.core"); -const es2015_generator_1 = require("./es2015.generator"); -const es2015_iterable_1 = require("./es2015.iterable"); -const es2015_promise_1 = require("./es2015.promise"); -const es2015_proxy_1 = require("./es2015.proxy"); -const es2015_reflect_1 = require("./es2015.reflect"); -const es2015_symbol_1 = require("./es2015.symbol"); -const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); -exports.es2015 = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, es5_1.es5), es2015_core_1.es2015_core), es2015_collection_1.es2015_collection), es2015_iterable_1.es2015_iterable), es2015_generator_1.es2015_generator), es2015_promise_1.es2015_promise), es2015_proxy_1.es2015_proxy), es2015_reflect_1.es2015_reflect), es2015_symbol_1.es2015_symbol), es2015_symbol_wellknown_1.es2015_symbol_wellknown); -//# sourceMappingURL=es2015.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map deleted file mode 100644 index ae5084da..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.js","sourceRoot":"","sources":["../../src/lib/es2015.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+BAA4B;AAC5B,2DAAwD;AACxD,+CAA4C;AAC5C,yDAAsD;AACtD,uDAAoD;AACpD,qDAAkD;AAClD,iDAA8C;AAC9C,qDAAkD;AAClD,mDAAgD;AAChD,uEAAoE;AAEvD,QAAA,MAAM,GAAG,gJACjB,SAAG,GACH,yBAAW,GACX,qCAAiB,GACjB,iCAAe,GACf,mCAAgB,GAChB,+BAAc,GACd,2BAAY,GACZ,+BAAc,GACd,6BAAa,GACb,iDAAuB,CACmB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts deleted file mode 100644 index 4b0b7d19..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2015_promise: Record; -//# sourceMappingURL=es2015.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map deleted file mode 100644 index df544827..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,cAAc,4CAEoB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js deleted file mode 100644 index 0c7dc02b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2015_promise = void 0; -const base_config_1 = require("./base-config"); -exports.es2015_promise = { - PromiseConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2015.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map deleted file mode 100644 index 3174ab74..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.promise.js","sourceRoot":"","sources":["../../src/lib/es2015.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts deleted file mode 100644 index a2a87c0f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2015_proxy: Record; -//# sourceMappingURL=es2015.proxy.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map deleted file mode 100644 index 27f60e4c..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.proxy.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.proxy.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,YAAY,4CAGsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js deleted file mode 100644 index db459c2e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2015_proxy = void 0; -const base_config_1 = require("./base-config"); -exports.es2015_proxy = { - ProxyHandler: base_config_1.TYPE, - ProxyConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2015.proxy.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map deleted file mode 100644 index 33411f6b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.proxy.js","sourceRoot":"","sources":["../../src/lib/es2015.proxy.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,YAAY,EAAE,kBAAI;IAClB,gBAAgB,EAAE,kBAAI;CACuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts deleted file mode 100644 index 7e94f32c..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2015_reflect: Record; -//# sourceMappingURL=es2015.reflect.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map deleted file mode 100644 index fff0c9c6..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.reflect.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.reflect.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,cAAc,4CAEoB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js deleted file mode 100644 index 4d7eaf19..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2015_reflect = void 0; -const base_config_1 = require("./base-config"); -exports.es2015_reflect = { - Reflect: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=es2015.reflect.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map deleted file mode 100644 index 72ce3c06..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.reflect.js","sourceRoot":"","sources":["../../src/lib/es2015.reflect.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAA2C;AAE9B,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,wBAAU;CAC0B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts deleted file mode 100644 index e78a6670..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2015_symbol: Record; -//# sourceMappingURL=es2015.symbol.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map deleted file mode 100644 index 7d148fcb..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.symbol.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.symbol.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,4CAEqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js deleted file mode 100644 index 645f58fa..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2015_symbol = void 0; -const base_config_1 = require("./base-config"); -exports.es2015_symbol = { - SymbolConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2015.symbol.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map deleted file mode 100644 index cd994329..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.symbol.js","sourceRoot":"","sources":["../../src/lib/es2015.symbol.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts deleted file mode 100644 index 7b18f41c..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2015_symbol_wellknown: Record; -//# sourceMappingURL=es2015.symbol.wellknown.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map deleted file mode 100644 index b120661b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.symbol.wellknown.d.ts","sourceRoot":"","sources":["../../src/lib/es2015.symbol.wellknown.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,uBAAuB,4CAmCW,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js deleted file mode 100644 index 25d2ee91..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2015_symbol_wellknown = void 0; -const base_config_1 = require("./base-config"); -const es2015_symbol_1 = require("./es2015.symbol"); -exports.es2015_symbol_wellknown = Object.assign(Object.assign({}, es2015_symbol_1.es2015_symbol), { SymbolConstructor: base_config_1.TYPE, Symbol: base_config_1.TYPE, Array: base_config_1.TYPE, ReadonlyArray: base_config_1.TYPE, Date: base_config_1.TYPE, Map: base_config_1.TYPE, WeakMap: base_config_1.TYPE, Set: base_config_1.TYPE, WeakSet: base_config_1.TYPE, JSON: base_config_1.TYPE, Function: base_config_1.TYPE, GeneratorFunction: base_config_1.TYPE, Math: base_config_1.TYPE, Promise: base_config_1.TYPE, PromiseConstructor: base_config_1.TYPE, RegExp: base_config_1.TYPE, RegExpConstructor: base_config_1.TYPE, String: base_config_1.TYPE, ArrayBuffer: base_config_1.TYPE, DataView: base_config_1.TYPE, Int8Array: base_config_1.TYPE, Uint8Array: base_config_1.TYPE, Uint8ClampedArray: base_config_1.TYPE, Int16Array: base_config_1.TYPE, Uint16Array: base_config_1.TYPE, Int32Array: base_config_1.TYPE, Uint32Array: base_config_1.TYPE, Float32Array: base_config_1.TYPE, Float64Array: base_config_1.TYPE, ArrayConstructor: base_config_1.TYPE, MapConstructor: base_config_1.TYPE, SetConstructor: base_config_1.TYPE, ArrayBufferConstructor: base_config_1.TYPE }); -//# sourceMappingURL=es2015.symbol.wellknown.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map deleted file mode 100644 index 8efae0e6..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2015.symbol.wellknown.js","sourceRoot":"","sources":["../../src/lib/es2015.symbol.wellknown.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AACrC,mDAAgD;AAEnC,QAAA,uBAAuB,GAAG,gCAClC,6BAAa,KAChB,iBAAiB,EAAE,kBAAI,EACvB,MAAM,EAAE,kBAAI,EACZ,KAAK,EAAE,kBAAI,EACX,aAAa,EAAE,kBAAI,EACnB,IAAI,EAAE,kBAAI,EACV,GAAG,EAAE,kBAAI,EACT,OAAO,EAAE,kBAAI,EACb,GAAG,EAAE,kBAAI,EACT,OAAO,EAAE,kBAAI,EACb,IAAI,EAAE,kBAAI,EACV,QAAQ,EAAE,kBAAI,EACd,iBAAiB,EAAE,kBAAI,EACvB,IAAI,EAAE,kBAAI,EACV,OAAO,EAAE,kBAAI,EACb,kBAAkB,EAAE,kBAAI,EACxB,MAAM,EAAE,kBAAI,EACZ,iBAAiB,EAAE,kBAAI,EACvB,MAAM,EAAE,kBAAI,EACZ,WAAW,EAAE,kBAAI,EACjB,QAAQ,EAAE,kBAAI,EACd,SAAS,EAAE,kBAAI,EACf,UAAU,EAAE,kBAAI,EAChB,iBAAiB,EAAE,kBAAI,EACvB,UAAU,EAAE,kBAAI,EAChB,WAAW,EAAE,kBAAI,EACjB,UAAU,EAAE,kBAAI,EAChB,WAAW,EAAE,kBAAI,EACjB,YAAY,EAAE,kBAAI,EAClB,YAAY,EAAE,kBAAI,EAClB,gBAAgB,EAAE,kBAAI,EACtB,cAAc,EAAE,kBAAI,EACpB,cAAc,EAAE,kBAAI,EACpB,sBAAsB,EAAE,kBAAI,GACiB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts deleted file mode 100644 index 7e6c8903..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2016_array_include: Record; -//# sourceMappingURL=es2016.array.include.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map deleted file mode 100644 index 244dab59..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2016.array.include.d.ts","sourceRoot":"","sources":["../../src/lib/es2016.array.include.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,oBAAoB,4CAYc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js deleted file mode 100644 index d549fca3..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2016_array_include = void 0; -const base_config_1 = require("./base-config"); -exports.es2016_array_include = { - Array: base_config_1.TYPE, - ReadonlyArray: base_config_1.TYPE, - Int8Array: base_config_1.TYPE, - Uint8Array: base_config_1.TYPE, - Uint8ClampedArray: base_config_1.TYPE, - Int16Array: base_config_1.TYPE, - Uint16Array: base_config_1.TYPE, - Int32Array: base_config_1.TYPE, - Uint32Array: base_config_1.TYPE, - Float32Array: base_config_1.TYPE, - Float64Array: base_config_1.TYPE, -}; -//# sourceMappingURL=es2016.array.include.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map deleted file mode 100644 index 18d1aaec..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2016.array.include.js","sourceRoot":"","sources":["../../src/lib/es2016.array.include.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,oBAAoB,GAAG;IAClC,KAAK,EAAE,kBAAI;IACX,aAAa,EAAE,kBAAI;IACnB,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;CAC2B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts deleted file mode 100644 index 2049c83e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2016: Record; -//# sourceMappingURL=es2016.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map deleted file mode 100644 index 26861f22..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2016.d.ts","sourceRoot":"","sources":["../../src/lib/es2016.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,MAAM,4CAG4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts deleted file mode 100644 index f940014b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2016_full: Record; -//# sourceMappingURL=es2016.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map deleted file mode 100644 index b2e6835c..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2016.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2016.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,WAAW,4CAMuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js deleted file mode 100644 index d656a19a..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2016_full = void 0; -const dom_1 = require("./dom"); -const dom_iterable_1 = require("./dom.iterable"); -const es2016_1 = require("./es2016"); -const scripthost_1 = require("./scripthost"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -exports.es2016_full = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, es2016_1.es2016), dom_1.dom), webworker_importscripts_1.webworker_importscripts), scripthost_1.scripthost), dom_iterable_1.dom_iterable); -//# sourceMappingURL=es2016.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map deleted file mode 100644 index 0eb64b8e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2016.full.js","sourceRoot":"","sources":["../../src/lib/es2016.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+BAA4B;AAC5B,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG,0EACtB,eAAM,GACN,SAAG,GACH,iDAAuB,GACvB,uBAAU,GACV,2BAAY,CAC8B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js deleted file mode 100644 index 7c02f9af..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2016 = void 0; -const es2015_1 = require("./es2015"); -const es2016_array_include_1 = require("./es2016.array.include"); -exports.es2016 = Object.assign(Object.assign({}, es2015_1.es2015), es2016_array_include_1.es2016_array_include); -//# sourceMappingURL=es2016.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map deleted file mode 100644 index 92238695..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2016.js","sourceRoot":"","sources":["../../src/lib/es2016.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,qCAAkC;AAClC,iEAA8D;AAEjD,QAAA,MAAM,GAAG,gCACjB,eAAM,GACN,2CAAoB,CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts deleted file mode 100644 index 7c40c712..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2017: Record; -//# sourceMappingURL=es2017.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map deleted file mode 100644 index faeac7f4..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,MAAM,4CAO4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts deleted file mode 100644 index 385bd1c3..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2017_full: Record; -//# sourceMappingURL=es2017.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map deleted file mode 100644 index 97daf79f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,WAAW,4CAMuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js deleted file mode 100644 index 8f5768a7..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2017_full = void 0; -const dom_1 = require("./dom"); -const dom_iterable_1 = require("./dom.iterable"); -const es2017_1 = require("./es2017"); -const scripthost_1 = require("./scripthost"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -exports.es2017_full = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, es2017_1.es2017), dom_1.dom), webworker_importscripts_1.webworker_importscripts), scripthost_1.scripthost), dom_iterable_1.dom_iterable); -//# sourceMappingURL=es2017.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map deleted file mode 100644 index f3c744c8..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.full.js","sourceRoot":"","sources":["../../src/lib/es2017.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+BAA4B;AAC5B,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG,0EACtB,eAAM,GACN,SAAG,GACH,iDAAuB,GACvB,uBAAU,GACV,2BAAY,CAC8B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts deleted file mode 100644 index 4db70db8..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2017_intl: Record; -//# sourceMappingURL=es2017.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map deleted file mode 100644 index 61486e5f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,WAAW,4CAEuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js deleted file mode 100644 index e6d195d4..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2017_intl = void 0; -const base_config_1 = require("./base-config"); -exports.es2017_intl = { - Intl: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=es2017.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map deleted file mode 100644 index 19dd87b5..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.intl.js","sourceRoot":"","sources":["../../src/lib/es2017.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js deleted file mode 100644 index 79644a22..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2017 = void 0; -const es2016_1 = require("./es2016"); -const es2017_intl_1 = require("./es2017.intl"); -const es2017_object_1 = require("./es2017.object"); -const es2017_sharedmemory_1 = require("./es2017.sharedmemory"); -const es2017_string_1 = require("./es2017.string"); -const es2017_typedarrays_1 = require("./es2017.typedarrays"); -exports.es2017 = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, es2016_1.es2016), es2017_object_1.es2017_object), es2017_sharedmemory_1.es2017_sharedmemory), es2017_string_1.es2017_string), es2017_intl_1.es2017_intl), es2017_typedarrays_1.es2017_typedarrays); -//# sourceMappingURL=es2017.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map deleted file mode 100644 index e4c1d0eb..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.js","sourceRoot":"","sources":["../../src/lib/es2017.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,qCAAkC;AAClC,+CAA4C;AAC5C,mDAAgD;AAChD,+DAA4D;AAC5D,mDAAgD;AAChD,6DAA0D;AAE7C,QAAA,MAAM,GAAG,wFACjB,eAAM,GACN,6BAAa,GACb,yCAAmB,GACnB,6BAAa,GACb,yBAAW,GACX,uCAAkB,CACwB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts deleted file mode 100644 index 268df74f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2017_object: Record; -//# sourceMappingURL=es2017.object.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map deleted file mode 100644 index 9c474b1e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.object.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,4CAEqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js deleted file mode 100644 index 7e9d1f34..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2017_object = void 0; -const base_config_1 = require("./base-config"); -exports.es2017_object = { - ObjectConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2017.object.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map deleted file mode 100644 index f50debac..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.object.js","sourceRoot":"","sources":["../../src/lib/es2017.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts deleted file mode 100644 index e647026b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2017_sharedmemory: Record; -//# sourceMappingURL=es2017.sharedmemory.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map deleted file mode 100644 index 0a949a30..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.sharedmemory.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.sharedmemory.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,mBAAmB,4CAOe,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js deleted file mode 100644 index 8fe9fc12..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2017_sharedmemory = void 0; -const base_config_1 = require("./base-config"); -const es2015_symbol_1 = require("./es2015.symbol"); -const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); -exports.es2017_sharedmemory = Object.assign(Object.assign(Object.assign({}, es2015_symbol_1.es2015_symbol), es2015_symbol_wellknown_1.es2015_symbol_wellknown), { SharedArrayBuffer: base_config_1.TYPE_VALUE, SharedArrayBufferConstructor: base_config_1.TYPE, ArrayBufferTypes: base_config_1.TYPE, Atomics: base_config_1.TYPE_VALUE }); -//# sourceMappingURL=es2017.sharedmemory.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map deleted file mode 100644 index 76103c49..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.sharedmemory.js","sourceRoot":"","sources":["../../src/lib/es2017.sharedmemory.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAiD;AACjD,mDAAgD;AAChD,uEAAoE;AAEvD,QAAA,mBAAmB,GAAG,8CAC9B,6BAAa,GACb,iDAAuB,KAC1B,iBAAiB,EAAE,wBAAU,EAC7B,4BAA4B,EAAE,kBAAI,EAClC,gBAAgB,EAAE,kBAAI,EACtB,OAAO,EAAE,wBAAU,GAC0B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts deleted file mode 100644 index effb6ad8..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2017_string: Record; -//# sourceMappingURL=es2017.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map deleted file mode 100644 index 2fc5a883..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,4CAEqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js deleted file mode 100644 index 35d566c3..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2017_string = void 0; -const base_config_1 = require("./base-config"); -exports.es2017_string = { - String: base_config_1.TYPE, -}; -//# sourceMappingURL=es2017.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map deleted file mode 100644 index f4958cbe..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.string.js","sourceRoot":"","sources":["../../src/lib/es2017.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts deleted file mode 100644 index 97b9cce1..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2017_typedarrays: Record; -//# sourceMappingURL=es2017.typedarrays.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map deleted file mode 100644 index 341ece0b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.typedarrays.d.ts","sourceRoot":"","sources":["../../src/lib/es2017.typedarrays.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,kBAAkB,4CAUgB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js deleted file mode 100644 index b11fa702..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2017_typedarrays = void 0; -const base_config_1 = require("./base-config"); -exports.es2017_typedarrays = { - Int8ArrayConstructor: base_config_1.TYPE, - Uint8ArrayConstructor: base_config_1.TYPE, - Uint8ClampedArrayConstructor: base_config_1.TYPE, - Int16ArrayConstructor: base_config_1.TYPE, - Uint16ArrayConstructor: base_config_1.TYPE, - Int32ArrayConstructor: base_config_1.TYPE, - Uint32ArrayConstructor: base_config_1.TYPE, - Float32ArrayConstructor: base_config_1.TYPE, - Float64ArrayConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2017.typedarrays.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map deleted file mode 100644 index 83c217b9..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2017.typedarrays.js","sourceRoot":"","sources":["../../src/lib/es2017.typedarrays.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,kBAAkB,GAAG;IAChC,oBAAoB,EAAE,kBAAI;IAC1B,qBAAqB,EAAE,kBAAI;IAC3B,4BAA4B,EAAE,kBAAI;IAClC,qBAAqB,EAAE,kBAAI;IAC3B,sBAAsB,EAAE,kBAAI;IAC5B,qBAAqB,EAAE,kBAAI;IAC3B,sBAAsB,EAAE,kBAAI;IAC5B,uBAAuB,EAAE,kBAAI;IAC7B,uBAAuB,EAAE,kBAAI;CACgB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts deleted file mode 100644 index 1c0ad385..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2018_asyncgenerator: Record; -//# sourceMappingURL=es2018.asyncgenerator.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map deleted file mode 100644 index 25003dd4..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.asyncgenerator.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.asyncgenerator.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,qBAAqB,4CAKa,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js deleted file mode 100644 index 9032bbf9..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2018_asyncgenerator = void 0; -const base_config_1 = require("./base-config"); -const es2018_asynciterable_1 = require("./es2018.asynciterable"); -exports.es2018_asyncgenerator = Object.assign(Object.assign({}, es2018_asynciterable_1.es2018_asynciterable), { AsyncGenerator: base_config_1.TYPE, AsyncGeneratorFunction: base_config_1.TYPE, AsyncGeneratorFunctionConstructor: base_config_1.TYPE }); -//# sourceMappingURL=es2018.asyncgenerator.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map deleted file mode 100644 index 5319a164..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.asyncgenerator.js","sourceRoot":"","sources":["../../src/lib/es2018.asyncgenerator.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AACrC,iEAA8D;AAEjD,QAAA,qBAAqB,GAAG,gCAChC,2CAAoB,KACvB,cAAc,EAAE,kBAAI,EACpB,sBAAsB,EAAE,kBAAI,EAC5B,iCAAiC,EAAE,kBAAI,GACM,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts deleted file mode 100644 index 441e1b4a..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2018_asynciterable: Record; -//# sourceMappingURL=es2018.asynciterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map deleted file mode 100644 index bc739a7a..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.asynciterable.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.asynciterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,oBAAoB,4CAOc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js deleted file mode 100644 index 61d6a22a..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2018_asynciterable = void 0; -const base_config_1 = require("./base-config"); -const es2015_iterable_1 = require("./es2015.iterable"); -const es2015_symbol_1 = require("./es2015.symbol"); -exports.es2018_asynciterable = Object.assign(Object.assign(Object.assign({}, es2015_symbol_1.es2015_symbol), es2015_iterable_1.es2015_iterable), { SymbolConstructor: base_config_1.TYPE, AsyncIterator: base_config_1.TYPE, AsyncIterable: base_config_1.TYPE, AsyncIterableIterator: base_config_1.TYPE }); -//# sourceMappingURL=es2018.asynciterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map deleted file mode 100644 index c3414023..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.asynciterable.js","sourceRoot":"","sources":["../../src/lib/es2018.asynciterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AACrC,uDAAoD;AACpD,mDAAgD;AAEnC,QAAA,oBAAoB,GAAG,8CAC/B,6BAAa,GACb,iCAAe,KAClB,iBAAiB,EAAE,kBAAI,EACvB,aAAa,EAAE,kBAAI,EACnB,aAAa,EAAE,kBAAI,EACnB,qBAAqB,EAAE,kBAAI,GACkB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts deleted file mode 100644 index d6a57e0b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2018: Record; -//# sourceMappingURL=es2018.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map deleted file mode 100644 index 505a572d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,MAAM,4CAO4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts deleted file mode 100644 index def2b62d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2018_full: Record; -//# sourceMappingURL=es2018.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map deleted file mode 100644 index ddaa9e42..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,WAAW,4CAMuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js deleted file mode 100644 index 3e386234..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2018_full = void 0; -const dom_1 = require("./dom"); -const dom_iterable_1 = require("./dom.iterable"); -const es2018_1 = require("./es2018"); -const scripthost_1 = require("./scripthost"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -exports.es2018_full = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, es2018_1.es2018), dom_1.dom), webworker_importscripts_1.webworker_importscripts), scripthost_1.scripthost), dom_iterable_1.dom_iterable); -//# sourceMappingURL=es2018.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map deleted file mode 100644 index b5878e15..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.full.js","sourceRoot":"","sources":["../../src/lib/es2018.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+BAA4B;AAC5B,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG,0EACtB,eAAM,GACN,SAAG,GACH,iDAAuB,GACvB,uBAAU,GACV,2BAAY,CAC8B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts deleted file mode 100644 index e80a6793..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2018_intl: Record; -//# sourceMappingURL=es2018.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map deleted file mode 100644 index a9317f80..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,WAAW,4CAEuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js deleted file mode 100644 index c970ac47..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2018_intl = void 0; -const base_config_1 = require("./base-config"); -exports.es2018_intl = { - Intl: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=es2018.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map deleted file mode 100644 index 04253152..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.intl.js","sourceRoot":"","sources":["../../src/lib/es2018.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js deleted file mode 100644 index deaffe44..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2018 = void 0; -const es2017_1 = require("./es2017"); -const es2018_asyncgenerator_1 = require("./es2018.asyncgenerator"); -const es2018_asynciterable_1 = require("./es2018.asynciterable"); -const es2018_intl_1 = require("./es2018.intl"); -const es2018_promise_1 = require("./es2018.promise"); -const es2018_regexp_1 = require("./es2018.regexp"); -exports.es2018 = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, es2017_1.es2017), es2018_asynciterable_1.es2018_asynciterable), es2018_asyncgenerator_1.es2018_asyncgenerator), es2018_promise_1.es2018_promise), es2018_regexp_1.es2018_regexp), es2018_intl_1.es2018_intl); -//# sourceMappingURL=es2018.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map deleted file mode 100644 index b0e19248..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.js","sourceRoot":"","sources":["../../src/lib/es2018.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,qCAAkC;AAClC,mEAAgE;AAChE,iEAA8D;AAC9D,+CAA4C;AAC5C,qDAAkD;AAClD,mDAAgD;AAEnC,QAAA,MAAM,GAAG,wFACjB,eAAM,GACN,2CAAoB,GACpB,6CAAqB,GACrB,+BAAc,GACd,6BAAa,GACb,yBAAW,CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts deleted file mode 100644 index 2ff021b6..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2018_promise: Record; -//# sourceMappingURL=es2018.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map deleted file mode 100644 index a0d98e59..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,cAAc,4CAEoB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js deleted file mode 100644 index fc2d8d06..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2018_promise = void 0; -const base_config_1 = require("./base-config"); -exports.es2018_promise = { - Promise: base_config_1.TYPE, -}; -//# sourceMappingURL=es2018.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map deleted file mode 100644 index 225260ee..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.promise.js","sourceRoot":"","sources":["../../src/lib/es2018.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,kBAAI;CACgC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts deleted file mode 100644 index 2e69d45a..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2018_regexp: Record; -//# sourceMappingURL=es2018.regexp.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map deleted file mode 100644 index c8b6edb4..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.regexp.d.ts","sourceRoot":"","sources":["../../src/lib/es2018.regexp.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,4CAIqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js deleted file mode 100644 index c30f77eb..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2018_regexp = void 0; -const base_config_1 = require("./base-config"); -exports.es2018_regexp = { - RegExpMatchArray: base_config_1.TYPE, - RegExpExecArray: base_config_1.TYPE, - RegExp: base_config_1.TYPE, -}; -//# sourceMappingURL=es2018.regexp.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map deleted file mode 100644 index 9c13258a..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2018.regexp.js","sourceRoot":"","sources":["../../src/lib/es2018.regexp.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,gBAAgB,EAAE,kBAAI;IACtB,eAAe,EAAE,kBAAI;IACrB,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts deleted file mode 100644 index 845c62f7..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2019_array: Record; -//# sourceMappingURL=es2019.array.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map deleted file mode 100644 index acc321d6..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.array.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.array.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,YAAY,4CAIsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js deleted file mode 100644 index 03cc7882..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2019_array = void 0; -const base_config_1 = require("./base-config"); -exports.es2019_array = { - FlatArray: base_config_1.TYPE, - ReadonlyArray: base_config_1.TYPE, - Array: base_config_1.TYPE, -}; -//# sourceMappingURL=es2019.array.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map deleted file mode 100644 index f2bff3ef..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.array.js","sourceRoot":"","sources":["../../src/lib/es2019.array.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,SAAS,EAAE,kBAAI;IACf,aAAa,EAAE,kBAAI;IACnB,KAAK,EAAE,kBAAI;CACkC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts deleted file mode 100644 index 1d01d51d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2019: Record; -//# sourceMappingURL=es2019.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map deleted file mode 100644 index 26ebac26..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQ9D,eAAO,MAAM,MAAM,4CAO4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts deleted file mode 100644 index d43d283b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2019_full: Record; -//# sourceMappingURL=es2019.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map deleted file mode 100644 index 76666dfa..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,WAAW,4CAMuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js deleted file mode 100644 index f69bd265..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2019_full = void 0; -const dom_1 = require("./dom"); -const dom_iterable_1 = require("./dom.iterable"); -const es2019_1 = require("./es2019"); -const scripthost_1 = require("./scripthost"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -exports.es2019_full = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, es2019_1.es2019), dom_1.dom), webworker_importscripts_1.webworker_importscripts), scripthost_1.scripthost), dom_iterable_1.dom_iterable); -//# sourceMappingURL=es2019.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map deleted file mode 100644 index 762640ca..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.full.js","sourceRoot":"","sources":["../../src/lib/es2019.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+BAA4B;AAC5B,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG,0EACtB,eAAM,GACN,SAAG,GACH,iDAAuB,GACvB,uBAAU,GACV,2BAAY,CAC8B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts deleted file mode 100644 index c560ab4a..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2019_intl: Record; -//# sourceMappingURL=es2019.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map deleted file mode 100644 index 8d18aec3..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,WAAW,4CAEuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js deleted file mode 100644 index c158061a..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2019_intl = void 0; -const base_config_1 = require("./base-config"); -exports.es2019_intl = { - Intl: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=es2019.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map deleted file mode 100644 index 36bb92f9..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.intl.js","sourceRoot":"","sources":["../../src/lib/es2019.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js deleted file mode 100644 index 2b25e30d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2019 = void 0; -const es2018_1 = require("./es2018"); -const es2019_array_1 = require("./es2019.array"); -const es2019_intl_1 = require("./es2019.intl"); -const es2019_object_1 = require("./es2019.object"); -const es2019_string_1 = require("./es2019.string"); -const es2019_symbol_1 = require("./es2019.symbol"); -exports.es2019 = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, es2018_1.es2018), es2019_array_1.es2019_array), es2019_object_1.es2019_object), es2019_string_1.es2019_string), es2019_symbol_1.es2019_symbol), es2019_intl_1.es2019_intl); -//# sourceMappingURL=es2019.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map deleted file mode 100644 index 5e25205b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.js","sourceRoot":"","sources":["../../src/lib/es2019.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,qCAAkC;AAClC,iDAA8C;AAC9C,+CAA4C;AAC5C,mDAAgD;AAChD,mDAAgD;AAChD,mDAAgD;AAEnC,QAAA,MAAM,GAAG,wFACjB,eAAM,GACN,2BAAY,GACZ,6BAAa,GACb,6BAAa,GACb,6BAAa,GACb,yBAAW,CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts deleted file mode 100644 index 317dc348..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2019_object: Record; -//# sourceMappingURL=es2019.object.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map deleted file mode 100644 index 383efcbd..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.object.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,4CAGqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js deleted file mode 100644 index 1af2c61f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2019_object = void 0; -const base_config_1 = require("./base-config"); -const es2015_iterable_1 = require("./es2015.iterable"); -exports.es2019_object = Object.assign(Object.assign({}, es2015_iterable_1.es2015_iterable), { ObjectConstructor: base_config_1.TYPE }); -//# sourceMappingURL=es2019.object.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map deleted file mode 100644 index 283a17f0..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.object.js","sourceRoot":"","sources":["../../src/lib/es2019.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AACrC,uDAAoD;AAEvC,QAAA,aAAa,GAAG,gCACxB,iCAAe,KAClB,iBAAiB,EAAE,kBAAI,GACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts deleted file mode 100644 index 6400ddca..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2019_string: Record; -//# sourceMappingURL=es2019.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map deleted file mode 100644 index 93c058b9..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,4CAEqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js deleted file mode 100644 index 0ff66eba..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2019_string = void 0; -const base_config_1 = require("./base-config"); -exports.es2019_string = { - String: base_config_1.TYPE, -}; -//# sourceMappingURL=es2019.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map deleted file mode 100644 index 093519b5..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.string.js","sourceRoot":"","sources":["../../src/lib/es2019.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts deleted file mode 100644 index 66073bcd..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2019_symbol: Record; -//# sourceMappingURL=es2019.symbol.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map deleted file mode 100644 index 215cc8cd..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.symbol.d.ts","sourceRoot":"","sources":["../../src/lib/es2019.symbol.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,4CAEqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js deleted file mode 100644 index 3e793b51..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2019_symbol = void 0; -const base_config_1 = require("./base-config"); -exports.es2019_symbol = { - Symbol: base_config_1.TYPE, -}; -//# sourceMappingURL=es2019.symbol.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map deleted file mode 100644 index 27b55a58..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2019.symbol.js","sourceRoot":"","sources":["../../src/lib/es2019.symbol.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts deleted file mode 100644 index 05bbb19e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2020_bigint: Record; -//# sourceMappingURL=es2020.bigint.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map deleted file mode 100644 index 29b468e9..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.bigint.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.bigint.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,4CAWqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js deleted file mode 100644 index 5fc28b7b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2020_bigint = void 0; -const base_config_1 = require("./base-config"); -const es2020_intl_1 = require("./es2020.intl"); -exports.es2020_bigint = Object.assign(Object.assign({}, es2020_intl_1.es2020_intl), { BigIntToLocaleStringOptions: base_config_1.TYPE, BigInt: base_config_1.TYPE_VALUE, BigIntConstructor: base_config_1.TYPE, BigInt64Array: base_config_1.TYPE_VALUE, BigInt64ArrayConstructor: base_config_1.TYPE, BigUint64Array: base_config_1.TYPE_VALUE, BigUint64ArrayConstructor: base_config_1.TYPE, DataView: base_config_1.TYPE, Intl: base_config_1.TYPE_VALUE }); -//# sourceMappingURL=es2020.bigint.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map deleted file mode 100644 index 247f471e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.bigint.js","sourceRoot":"","sources":["../../src/lib/es2020.bigint.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAiD;AACjD,+CAA4C;AAE/B,QAAA,aAAa,GAAG,gCACxB,yBAAW,KACd,2BAA2B,EAAE,kBAAI,EACjC,MAAM,EAAE,wBAAU,EAClB,iBAAiB,EAAE,kBAAI,EACvB,aAAa,EAAE,wBAAU,EACzB,wBAAwB,EAAE,kBAAI,EAC9B,cAAc,EAAE,wBAAU,EAC1B,yBAAyB,EAAE,kBAAI,EAC/B,QAAQ,EAAE,kBAAI,EACd,IAAI,EAAE,wBAAU,GAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts deleted file mode 100644 index 9786e11e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2020: Record; -//# sourceMappingURL=es2020.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map deleted file mode 100644 index ccab2e4a..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAW9D,eAAO,MAAM,MAAM,4CAU4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts deleted file mode 100644 index e7ee0517..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2020_date: Record; -//# sourceMappingURL=es2020.date.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map deleted file mode 100644 index c3228946..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.date.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.date.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,4CAGuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js deleted file mode 100644 index d44ff9fa..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2020_date = void 0; -const base_config_1 = require("./base-config"); -const es2020_intl_1 = require("./es2020.intl"); -exports.es2020_date = Object.assign(Object.assign({}, es2020_intl_1.es2020_intl), { Date: base_config_1.TYPE }); -//# sourceMappingURL=es2020.date.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map deleted file mode 100644 index 1943584c..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.date.js","sourceRoot":"","sources":["../../src/lib/es2020.date.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AACrC,+CAA4C;AAE/B,QAAA,WAAW,GAAG,gCACtB,yBAAW,KACd,IAAI,EAAE,kBAAI,GACmC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts deleted file mode 100644 index 67ce5201..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2020_full: Record; -//# sourceMappingURL=es2020.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map deleted file mode 100644 index 42cfead1..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,WAAW,4CAMuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js deleted file mode 100644 index f14af963..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2020_full = void 0; -const dom_1 = require("./dom"); -const dom_iterable_1 = require("./dom.iterable"); -const es2020_1 = require("./es2020"); -const scripthost_1 = require("./scripthost"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -exports.es2020_full = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, es2020_1.es2020), dom_1.dom), webworker_importscripts_1.webworker_importscripts), scripthost_1.scripthost), dom_iterable_1.dom_iterable); -//# sourceMappingURL=es2020.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map deleted file mode 100644 index 21d33f9f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.full.js","sourceRoot":"","sources":["../../src/lib/es2020.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+BAA4B;AAC5B,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG,0EACtB,eAAM,GACN,SAAG,GACH,iDAAuB,GACvB,uBAAU,GACV,2BAAY,CAC8B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts deleted file mode 100644 index 6fe292a7..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2020_intl: Record; -//# sourceMappingURL=es2020.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map deleted file mode 100644 index 53f526e1..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,WAAW,4CAGuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js deleted file mode 100644 index afb35fe9..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2020_intl = void 0; -const base_config_1 = require("./base-config"); -const es2018_intl_1 = require("./es2018.intl"); -exports.es2020_intl = Object.assign(Object.assign({}, es2018_intl_1.es2018_intl), { Intl: base_config_1.TYPE_VALUE }); -//# sourceMappingURL=es2020.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map deleted file mode 100644 index e6544417..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.intl.js","sourceRoot":"","sources":["../../src/lib/es2020.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAA2C;AAC3C,+CAA4C;AAE/B,QAAA,WAAW,GAAG,gCACtB,yBAAW,KACd,IAAI,EAAE,wBAAU,GAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js deleted file mode 100644 index 77728928..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2020 = void 0; -const es2019_1 = require("./es2019"); -const es2020_bigint_1 = require("./es2020.bigint"); -const es2020_date_1 = require("./es2020.date"); -const es2020_intl_1 = require("./es2020.intl"); -const es2020_number_1 = require("./es2020.number"); -const es2020_promise_1 = require("./es2020.promise"); -const es2020_sharedmemory_1 = require("./es2020.sharedmemory"); -const es2020_string_1 = require("./es2020.string"); -const es2020_symbol_wellknown_1 = require("./es2020.symbol.wellknown"); -exports.es2020 = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, es2019_1.es2019), es2020_bigint_1.es2020_bigint), es2020_date_1.es2020_date), es2020_number_1.es2020_number), es2020_promise_1.es2020_promise), es2020_sharedmemory_1.es2020_sharedmemory), es2020_string_1.es2020_string), es2020_symbol_wellknown_1.es2020_symbol_wellknown), es2020_intl_1.es2020_intl); -//# sourceMappingURL=es2020.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map deleted file mode 100644 index a5dc243e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.js","sourceRoot":"","sources":["../../src/lib/es2020.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,qCAAkC;AAClC,mDAAgD;AAChD,+CAA4C;AAC5C,+CAA4C;AAC5C,mDAAgD;AAChD,qDAAkD;AAClD,+DAA4D;AAC5D,mDAAgD;AAChD,uEAAoE;AAEvD,QAAA,MAAM,GAAG,kIACjB,eAAM,GACN,6BAAa,GACb,yBAAW,GACX,6BAAa,GACb,+BAAc,GACd,yCAAmB,GACnB,6BAAa,GACb,iDAAuB,GACvB,yBAAW,CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts deleted file mode 100644 index dff240d7..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2020_number: Record; -//# sourceMappingURL=es2020.number.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map deleted file mode 100644 index 8dc41a5b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.number.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.number.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,4CAGqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js deleted file mode 100644 index e5485541..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2020_number = void 0; -const base_config_1 = require("./base-config"); -const es2020_intl_1 = require("./es2020.intl"); -exports.es2020_number = Object.assign(Object.assign({}, es2020_intl_1.es2020_intl), { Number: base_config_1.TYPE }); -//# sourceMappingURL=es2020.number.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map deleted file mode 100644 index 505a3bc7..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.number.js","sourceRoot":"","sources":["../../src/lib/es2020.number.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AACrC,+CAA4C;AAE/B,QAAA,aAAa,GAAG,gCACxB,yBAAW,KACd,MAAM,EAAE,kBAAI,GACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts deleted file mode 100644 index b45f2053..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2020_promise: Record; -//# sourceMappingURL=es2020.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map deleted file mode 100644 index 3d234de3..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,cAAc,4CAKoB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js deleted file mode 100644 index a9be6083..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2020_promise = void 0; -const base_config_1 = require("./base-config"); -exports.es2020_promise = { - PromiseFulfilledResult: base_config_1.TYPE, - PromiseRejectedResult: base_config_1.TYPE, - PromiseSettledResult: base_config_1.TYPE, - PromiseConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2020.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map deleted file mode 100644 index 20e4f59a..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.promise.js","sourceRoot":"","sources":["../../src/lib/es2020.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,cAAc,GAAG;IAC5B,sBAAsB,EAAE,kBAAI;IAC5B,qBAAqB,EAAE,kBAAI;IAC3B,oBAAoB,EAAE,kBAAI;IAC1B,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts deleted file mode 100644 index ebbb06c0..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2020_sharedmemory: Record; -//# sourceMappingURL=es2020.sharedmemory.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map deleted file mode 100644 index e05d9008..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.sharedmemory.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.sharedmemory.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,mBAAmB,4CAEe,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js deleted file mode 100644 index 3720d22f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2020_sharedmemory = void 0; -const base_config_1 = require("./base-config"); -exports.es2020_sharedmemory = { - Atomics: base_config_1.TYPE, -}; -//# sourceMappingURL=es2020.sharedmemory.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map deleted file mode 100644 index 2f9441c3..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.sharedmemory.js","sourceRoot":"","sources":["../../src/lib/es2020.sharedmemory.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,mBAAmB,GAAG;IACjC,OAAO,EAAE,kBAAI;CACgC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts deleted file mode 100644 index 2d116e7d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2020_string: Record; -//# sourceMappingURL=es2020.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map deleted file mode 100644 index 562c528f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,4CAGqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js deleted file mode 100644 index a43f3f9a..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2020_string = void 0; -const base_config_1 = require("./base-config"); -const es2015_iterable_1 = require("./es2015.iterable"); -exports.es2020_string = Object.assign(Object.assign({}, es2015_iterable_1.es2015_iterable), { String: base_config_1.TYPE }); -//# sourceMappingURL=es2020.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map deleted file mode 100644 index 985a4542..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.string.js","sourceRoot":"","sources":["../../src/lib/es2020.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AACrC,uDAAoD;AAEvC,QAAA,aAAa,GAAG,gCACxB,iCAAe,KAClB,MAAM,EAAE,kBAAI,GACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts deleted file mode 100644 index 682c705a..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2020_symbol_wellknown: Record; -//# sourceMappingURL=es2020.symbol.wellknown.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map deleted file mode 100644 index cb12cbef..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.symbol.wellknown.d.ts","sourceRoot":"","sources":["../../src/lib/es2020.symbol.wellknown.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,uBAAuB,4CAKW,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js deleted file mode 100644 index 5267197f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2020_symbol_wellknown = void 0; -const base_config_1 = require("./base-config"); -const es2015_iterable_1 = require("./es2015.iterable"); -const es2015_symbol_1 = require("./es2015.symbol"); -exports.es2020_symbol_wellknown = Object.assign(Object.assign(Object.assign({}, es2015_iterable_1.es2015_iterable), es2015_symbol_1.es2015_symbol), { SymbolConstructor: base_config_1.TYPE, RegExp: base_config_1.TYPE }); -//# sourceMappingURL=es2020.symbol.wellknown.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map deleted file mode 100644 index d49ccfb5..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2020.symbol.wellknown.js","sourceRoot":"","sources":["../../src/lib/es2020.symbol.wellknown.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AACrC,uDAAoD;AACpD,mDAAgD;AAEnC,QAAA,uBAAuB,GAAG,8CAClC,iCAAe,GACf,6BAAa,KAChB,iBAAiB,EAAE,kBAAI,EACvB,MAAM,EAAE,kBAAI,GACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts deleted file mode 100644 index c9ff9f6b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2021: Record; -//# sourceMappingURL=es2021.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map deleted file mode 100644 index d4788d04..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,MAAM,4CAM4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts deleted file mode 100644 index 31fc0ef7..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2021_full: Record; -//# sourceMappingURL=es2021.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map deleted file mode 100644 index 2f31dcf6..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,WAAW,4CAMuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js deleted file mode 100644 index 5a5090e1..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2021_full = void 0; -const dom_1 = require("./dom"); -const dom_iterable_1 = require("./dom.iterable"); -const es2021_1 = require("./es2021"); -const scripthost_1 = require("./scripthost"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -exports.es2021_full = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, es2021_1.es2021), dom_1.dom), webworker_importscripts_1.webworker_importscripts), scripthost_1.scripthost), dom_iterable_1.dom_iterable); -//# sourceMappingURL=es2021.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map deleted file mode 100644 index 50f02f79..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.full.js","sourceRoot":"","sources":["../../src/lib/es2021.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+BAA4B;AAC5B,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG,0EACtB,eAAM,GACN,SAAG,GACH,iDAAuB,GACvB,uBAAU,GACV,2BAAY,CAC8B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts deleted file mode 100644 index 4435689d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2021_intl: Record; -//# sourceMappingURL=es2021.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map deleted file mode 100644 index b6b442b3..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,WAAW,4CAEuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js deleted file mode 100644 index 632397e7..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2021_intl = void 0; -const base_config_1 = require("./base-config"); -exports.es2021_intl = { - Intl: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=es2021.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map deleted file mode 100644 index 30c34b18..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.intl.js","sourceRoot":"","sources":["../../src/lib/es2021.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js deleted file mode 100644 index b0bb9ab2..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2021 = void 0; -const es2020_1 = require("./es2020"); -const es2021_intl_1 = require("./es2021.intl"); -const es2021_promise_1 = require("./es2021.promise"); -const es2021_string_1 = require("./es2021.string"); -const es2021_weakref_1 = require("./es2021.weakref"); -exports.es2021 = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, es2020_1.es2020), es2021_promise_1.es2021_promise), es2021_string_1.es2021_string), es2021_weakref_1.es2021_weakref), es2021_intl_1.es2021_intl); -//# sourceMappingURL=es2021.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map deleted file mode 100644 index 99729ce9..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.js","sourceRoot":"","sources":["../../src/lib/es2021.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,qCAAkC;AAClC,+CAA4C;AAC5C,qDAAkD;AAClD,mDAAgD;AAChD,qDAAkD;AAErC,QAAA,MAAM,GAAG,0EACjB,eAAM,GACN,+BAAc,GACd,6BAAa,GACb,+BAAc,GACd,yBAAW,CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts deleted file mode 100644 index 8eb9e9ec..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2021_promise: Record; -//# sourceMappingURL=es2021.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map deleted file mode 100644 index 5d488196..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.promise.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,cAAc,4CAIoB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js deleted file mode 100644 index 52257927..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2021_promise = void 0; -const base_config_1 = require("./base-config"); -exports.es2021_promise = { - AggregateError: base_config_1.TYPE_VALUE, - AggregateErrorConstructor: base_config_1.TYPE, - PromiseConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2021.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map deleted file mode 100644 index 0fd4aad0..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.promise.js","sourceRoot":"","sources":["../../src/lib/es2021.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAiD;AAEpC,QAAA,cAAc,GAAG;IAC5B,cAAc,EAAE,wBAAU;IAC1B,yBAAyB,EAAE,kBAAI;IAC/B,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts deleted file mode 100644 index f54d34a0..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2021_string: Record; -//# sourceMappingURL=es2021.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map deleted file mode 100644 index 285525b0..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,4CAEqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js deleted file mode 100644 index 2dc8f69c..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2021_string = void 0; -const base_config_1 = require("./base-config"); -exports.es2021_string = { - String: base_config_1.TYPE, -}; -//# sourceMappingURL=es2021.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map deleted file mode 100644 index 9511c8fa..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.string.js","sourceRoot":"","sources":["../../src/lib/es2021.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts deleted file mode 100644 index d7f5b674..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2021_weakref: Record; -//# sourceMappingURL=es2021.weakref.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map deleted file mode 100644 index 98ed54d0..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.weakref.d.ts","sourceRoot":"","sources":["../../src/lib/es2021.weakref.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,cAAc,4CAKoB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js deleted file mode 100644 index 1ab7fdd1..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2021_weakref = void 0; -const base_config_1 = require("./base-config"); -exports.es2021_weakref = { - WeakRef: base_config_1.TYPE_VALUE, - WeakRefConstructor: base_config_1.TYPE, - FinalizationRegistry: base_config_1.TYPE_VALUE, - FinalizationRegistryConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2021.weakref.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map deleted file mode 100644 index 9955a62c..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2021.weakref.js","sourceRoot":"","sources":["../../src/lib/es2021.weakref.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAiD;AAEpC,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;IACxB,oBAAoB,EAAE,wBAAU;IAChC,+BAA+B,EAAE,kBAAI;CACQ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts deleted file mode 100644 index b9d87cde..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2022_array: Record; -//# sourceMappingURL=es2022.array.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map deleted file mode 100644 index 3393052f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.array.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.array.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,YAAY,4CAcsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js deleted file mode 100644 index fb14b126..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2022_array = void 0; -const base_config_1 = require("./base-config"); -exports.es2022_array = { - Array: base_config_1.TYPE, - ReadonlyArray: base_config_1.TYPE, - Int8Array: base_config_1.TYPE, - Uint8Array: base_config_1.TYPE, - Uint8ClampedArray: base_config_1.TYPE, - Int16Array: base_config_1.TYPE, - Uint16Array: base_config_1.TYPE, - Int32Array: base_config_1.TYPE, - Uint32Array: base_config_1.TYPE, - Float32Array: base_config_1.TYPE, - Float64Array: base_config_1.TYPE, - BigInt64Array: base_config_1.TYPE, - BigUint64Array: base_config_1.TYPE, -}; -//# sourceMappingURL=es2022.array.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map deleted file mode 100644 index 37ec55a8..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.array.js","sourceRoot":"","sources":["../../src/lib/es2022.array.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,kBAAI;IACX,aAAa,EAAE,kBAAI;IACnB,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,aAAa,EAAE,kBAAI;IACnB,cAAc,EAAE,kBAAI;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts deleted file mode 100644 index 12bc2fb9..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2022: Record; -//# sourceMappingURL=es2022.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map deleted file mode 100644 index 6aee1a91..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAU9D,eAAO,MAAM,MAAM,4CAS4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts deleted file mode 100644 index 6619e107..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2022_error: Record; -//# sourceMappingURL=es2022.error.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map deleted file mode 100644 index ce3e985b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.error.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.error.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,YAAY,4CAWsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js deleted file mode 100644 index 0601ac65..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2022_error = void 0; -const base_config_1 = require("./base-config"); -exports.es2022_error = { - ErrorOptions: base_config_1.TYPE, - Error: base_config_1.TYPE, - ErrorConstructor: base_config_1.TYPE, - EvalErrorConstructor: base_config_1.TYPE, - RangeErrorConstructor: base_config_1.TYPE, - ReferenceErrorConstructor: base_config_1.TYPE, - SyntaxErrorConstructor: base_config_1.TYPE, - TypeErrorConstructor: base_config_1.TYPE, - URIErrorConstructor: base_config_1.TYPE, - AggregateErrorConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2022.error.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map deleted file mode 100644 index 5a0e9b3f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.error.js","sourceRoot":"","sources":["../../src/lib/es2022.error.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,YAAY,EAAE,kBAAI;IAClB,KAAK,EAAE,kBAAI;IACX,gBAAgB,EAAE,kBAAI;IACtB,oBAAoB,EAAE,kBAAI;IAC1B,qBAAqB,EAAE,kBAAI;IAC3B,yBAAyB,EAAE,kBAAI;IAC/B,sBAAsB,EAAE,kBAAI;IAC5B,oBAAoB,EAAE,kBAAI;IAC1B,mBAAmB,EAAE,kBAAI;IACzB,yBAAyB,EAAE,kBAAI;CACc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts deleted file mode 100644 index df141b03..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2022_full: Record; -//# sourceMappingURL=es2022.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map deleted file mode 100644 index 1621869f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,WAAW,4CAMuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js deleted file mode 100644 index 648adf47..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2022_full = void 0; -const dom_1 = require("./dom"); -const dom_iterable_1 = require("./dom.iterable"); -const es2022_1 = require("./es2022"); -const scripthost_1 = require("./scripthost"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -exports.es2022_full = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, es2022_1.es2022), dom_1.dom), webworker_importscripts_1.webworker_importscripts), scripthost_1.scripthost), dom_iterable_1.dom_iterable); -//# sourceMappingURL=es2022.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map deleted file mode 100644 index 406af013..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.full.js","sourceRoot":"","sources":["../../src/lib/es2022.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+BAA4B;AAC5B,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG,0EACtB,eAAM,GACN,SAAG,GACH,iDAAuB,GACvB,uBAAU,GACV,2BAAY,CAC8B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts deleted file mode 100644 index 2b2c0813..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2022_intl: Record; -//# sourceMappingURL=es2022.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map deleted file mode 100644 index aa42c471..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.intl.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,WAAW,4CAEuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js deleted file mode 100644 index 860a3ecb..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2022_intl = void 0; -const base_config_1 = require("./base-config"); -exports.es2022_intl = { - Intl: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=es2022.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map deleted file mode 100644 index 3b1be318..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.intl.js","sourceRoot":"","sources":["../../src/lib/es2022.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js deleted file mode 100644 index 09f2f707..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2022 = void 0; -const es2021_1 = require("./es2021"); -const es2022_array_1 = require("./es2022.array"); -const es2022_error_1 = require("./es2022.error"); -const es2022_intl_1 = require("./es2022.intl"); -const es2022_object_1 = require("./es2022.object"); -const es2022_regexp_1 = require("./es2022.regexp"); -const es2022_sharedmemory_1 = require("./es2022.sharedmemory"); -const es2022_string_1 = require("./es2022.string"); -exports.es2022 = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, es2021_1.es2021), es2022_array_1.es2022_array), es2022_error_1.es2022_error), es2022_intl_1.es2022_intl), es2022_object_1.es2022_object), es2022_sharedmemory_1.es2022_sharedmemory), es2022_string_1.es2022_string), es2022_regexp_1.es2022_regexp); -//# sourceMappingURL=es2022.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map deleted file mode 100644 index 4b0aa3d7..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.js","sourceRoot":"","sources":["../../src/lib/es2022.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,qCAAkC;AAClC,iDAA8C;AAC9C,iDAA8C;AAC9C,+CAA4C;AAC5C,mDAAgD;AAChD,mDAAgD;AAChD,+DAA4D;AAC5D,mDAAgD;AAEnC,QAAA,MAAM,GAAG,oHACjB,eAAM,GACN,2BAAY,GACZ,2BAAY,GACZ,yBAAW,GACX,6BAAa,GACb,yCAAmB,GACnB,6BAAa,GACb,6BAAa,CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts deleted file mode 100644 index ffbb45d9..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2022_object: Record; -//# sourceMappingURL=es2022.object.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map deleted file mode 100644 index a189a16d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.object.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.object.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,4CAEqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js deleted file mode 100644 index 5bed2f12..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2022_object = void 0; -const base_config_1 = require("./base-config"); -exports.es2022_object = { - ObjectConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=es2022.object.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map deleted file mode 100644 index 414a7187..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.object.js","sourceRoot":"","sources":["../../src/lib/es2022.object.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,iBAAiB,EAAE,kBAAI;CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts deleted file mode 100644 index 1501510d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2022_regexp: Record; -//# sourceMappingURL=es2022.regexp.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map deleted file mode 100644 index cf59cd54..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.regexp.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.regexp.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,4CAKqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js deleted file mode 100644 index 69db98a0..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2022_regexp = void 0; -const base_config_1 = require("./base-config"); -exports.es2022_regexp = { - RegExpMatchArray: base_config_1.TYPE, - RegExpExecArray: base_config_1.TYPE, - RegExpIndicesArray: base_config_1.TYPE, - RegExp: base_config_1.TYPE, -}; -//# sourceMappingURL=es2022.regexp.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map deleted file mode 100644 index d32bc537..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.regexp.js","sourceRoot":"","sources":["../../src/lib/es2022.regexp.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,gBAAgB,EAAE,kBAAI;IACtB,eAAe,EAAE,kBAAI;IACrB,kBAAkB,EAAE,kBAAI;IACxB,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts deleted file mode 100644 index 5d547efe..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2022_sharedmemory: Record; -//# sourceMappingURL=es2022.sharedmemory.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts.map deleted file mode 100644 index c5aa3180..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.sharedmemory.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.sharedmemory.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,mBAAmB,4CAEe,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js deleted file mode 100644 index dddbe5fc..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2022_sharedmemory = void 0; -const base_config_1 = require("./base-config"); -exports.es2022_sharedmemory = { - Atomics: base_config_1.TYPE, -}; -//# sourceMappingURL=es2022.sharedmemory.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js.map deleted file mode 100644 index 3f0c5f96..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.sharedmemory.js","sourceRoot":"","sources":["../../src/lib/es2022.sharedmemory.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,mBAAmB,GAAG;IACjC,OAAO,EAAE,kBAAI;CACgC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts deleted file mode 100644 index d1284cd4..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2022_string: Record; -//# sourceMappingURL=es2022.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map deleted file mode 100644 index b71ca0f7..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.string.d.ts","sourceRoot":"","sources":["../../src/lib/es2022.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,4CAEqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js deleted file mode 100644 index cf1480fb..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2022_string = void 0; -const base_config_1 = require("./base-config"); -exports.es2022_string = { - String: base_config_1.TYPE, -}; -//# sourceMappingURL=es2022.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map deleted file mode 100644 index 35da205a..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2022.string.js","sourceRoot":"","sources":["../../src/lib/es2022.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts deleted file mode 100644 index ef56316f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2023_array: Record; -//# sourceMappingURL=es2023.array.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map deleted file mode 100644 index 6fdae8c7..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2023.array.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.array.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,YAAY,4CAcsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js deleted file mode 100644 index f4974ee7..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2023_array = void 0; -const base_config_1 = require("./base-config"); -exports.es2023_array = { - Array: base_config_1.TYPE, - ReadonlyArray: base_config_1.TYPE, - Int8Array: base_config_1.TYPE, - Uint8Array: base_config_1.TYPE, - Uint8ClampedArray: base_config_1.TYPE, - Int16Array: base_config_1.TYPE, - Uint16Array: base_config_1.TYPE, - Int32Array: base_config_1.TYPE, - Uint32Array: base_config_1.TYPE, - Float32Array: base_config_1.TYPE, - Float64Array: base_config_1.TYPE, - BigInt64Array: base_config_1.TYPE, - BigUint64Array: base_config_1.TYPE, -}; -//# sourceMappingURL=es2023.array.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map deleted file mode 100644 index f2673fde..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2023.array.js","sourceRoot":"","sources":["../../src/lib/es2023.array.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,kBAAI;IACX,aAAa,EAAE,kBAAI;IACnB,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,aAAa,EAAE,kBAAI;IACnB,cAAc,EAAE,kBAAI;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts deleted file mode 100644 index 17e3cf0d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2023: Record; -//# sourceMappingURL=es2023.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map deleted file mode 100644 index 635e64bd..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2023.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,MAAM,4CAG4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts deleted file mode 100644 index ac43b5cf..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es2023_full: Record; -//# sourceMappingURL=es2023.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map deleted file mode 100644 index db04ff9a..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2023.full.d.ts","sourceRoot":"","sources":["../../src/lib/es2023.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,WAAW,4CAMuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js deleted file mode 100644 index 6efbc9fc..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2023_full = void 0; -const dom_1 = require("./dom"); -const dom_iterable_1 = require("./dom.iterable"); -const es2023_1 = require("./es2023"); -const scripthost_1 = require("./scripthost"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -exports.es2023_full = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, es2023_1.es2023), dom_1.dom), webworker_importscripts_1.webworker_importscripts), scripthost_1.scripthost), dom_iterable_1.dom_iterable); -//# sourceMappingURL=es2023.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map deleted file mode 100644 index 59c57097..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2023.full.js","sourceRoot":"","sources":["../../src/lib/es2023.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+BAA4B;AAC5B,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG,0EACtB,eAAM,GACN,SAAG,GACH,iDAAuB,GACvB,uBAAU,GACV,2BAAY,CAC8B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js deleted file mode 100644 index 60751298..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es2023 = void 0; -const es2022_1 = require("./es2022"); -const es2023_array_1 = require("./es2023.array"); -exports.es2023 = Object.assign(Object.assign({}, es2022_1.es2022), es2023_array_1.es2023_array); -//# sourceMappingURL=es2023.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map deleted file mode 100644 index 87b98502..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es2023.js","sourceRoot":"","sources":["../../src/lib/es2023.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,qCAAkC;AAClC,iDAA8C;AAEjC,QAAA,MAAM,GAAG,gCACjB,eAAM,GACN,2BAAY,CAC8B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts deleted file mode 100644 index 24dc6090..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es5: Record; -//# sourceMappingURL=es5.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map deleted file mode 100644 index c07f3042..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es5.d.ts","sourceRoot":"","sources":["../../src/lib/es5.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,GAAG,4CAsG+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js deleted file mode 100644 index b4f1b2b0..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es5 = void 0; -const base_config_1 = require("./base-config"); -const decorators_1 = require("./decorators"); -const decorators_legacy_1 = require("./decorators.legacy"); -exports.es5 = Object.assign(Object.assign(Object.assign({}, decorators_1.decorators), decorators_legacy_1.decorators_legacy), { Symbol: base_config_1.TYPE, PropertyKey: base_config_1.TYPE, PropertyDescriptor: base_config_1.TYPE, PropertyDescriptorMap: base_config_1.TYPE, Object: base_config_1.TYPE_VALUE, ObjectConstructor: base_config_1.TYPE, Function: base_config_1.TYPE_VALUE, FunctionConstructor: base_config_1.TYPE, ThisParameterType: base_config_1.TYPE, OmitThisParameter: base_config_1.TYPE, CallableFunction: base_config_1.TYPE, NewableFunction: base_config_1.TYPE, IArguments: base_config_1.TYPE, String: base_config_1.TYPE_VALUE, StringConstructor: base_config_1.TYPE, Boolean: base_config_1.TYPE_VALUE, BooleanConstructor: base_config_1.TYPE, Number: base_config_1.TYPE_VALUE, NumberConstructor: base_config_1.TYPE, TemplateStringsArray: base_config_1.TYPE, ImportMeta: base_config_1.TYPE, ImportCallOptions: base_config_1.TYPE, ImportAssertions: base_config_1.TYPE, Math: base_config_1.TYPE_VALUE, Date: base_config_1.TYPE_VALUE, DateConstructor: base_config_1.TYPE, RegExpMatchArray: base_config_1.TYPE, RegExpExecArray: base_config_1.TYPE, RegExp: base_config_1.TYPE_VALUE, RegExpConstructor: base_config_1.TYPE, Error: base_config_1.TYPE_VALUE, ErrorConstructor: base_config_1.TYPE, EvalError: base_config_1.TYPE_VALUE, EvalErrorConstructor: base_config_1.TYPE, RangeError: base_config_1.TYPE_VALUE, RangeErrorConstructor: base_config_1.TYPE, ReferenceError: base_config_1.TYPE_VALUE, ReferenceErrorConstructor: base_config_1.TYPE, SyntaxError: base_config_1.TYPE_VALUE, SyntaxErrorConstructor: base_config_1.TYPE, TypeError: base_config_1.TYPE_VALUE, TypeErrorConstructor: base_config_1.TYPE, URIError: base_config_1.TYPE_VALUE, URIErrorConstructor: base_config_1.TYPE, JSON: base_config_1.TYPE_VALUE, ReadonlyArray: base_config_1.TYPE, ConcatArray: base_config_1.TYPE, Array: base_config_1.TYPE_VALUE, ArrayConstructor: base_config_1.TYPE, TypedPropertyDescriptor: base_config_1.TYPE, PromiseConstructorLike: base_config_1.TYPE, PromiseLike: base_config_1.TYPE, Promise: base_config_1.TYPE, Awaited: base_config_1.TYPE, ArrayLike: base_config_1.TYPE, Partial: base_config_1.TYPE, Required: base_config_1.TYPE, Readonly: base_config_1.TYPE, Pick: base_config_1.TYPE, Record: base_config_1.TYPE, Exclude: base_config_1.TYPE, Extract: base_config_1.TYPE, Omit: base_config_1.TYPE, NonNullable: base_config_1.TYPE, Parameters: base_config_1.TYPE, ConstructorParameters: base_config_1.TYPE, ReturnType: base_config_1.TYPE, InstanceType: base_config_1.TYPE, Uppercase: base_config_1.TYPE, Lowercase: base_config_1.TYPE, Capitalize: base_config_1.TYPE, Uncapitalize: base_config_1.TYPE, ThisType: base_config_1.TYPE, ArrayBuffer: base_config_1.TYPE_VALUE, ArrayBufferTypes: base_config_1.TYPE, ArrayBufferLike: base_config_1.TYPE, ArrayBufferConstructor: base_config_1.TYPE, ArrayBufferView: base_config_1.TYPE, DataView: base_config_1.TYPE_VALUE, DataViewConstructor: base_config_1.TYPE, Int8Array: base_config_1.TYPE_VALUE, Int8ArrayConstructor: base_config_1.TYPE, Uint8Array: base_config_1.TYPE_VALUE, Uint8ArrayConstructor: base_config_1.TYPE, Uint8ClampedArray: base_config_1.TYPE_VALUE, Uint8ClampedArrayConstructor: base_config_1.TYPE, Int16Array: base_config_1.TYPE_VALUE, Int16ArrayConstructor: base_config_1.TYPE, Uint16Array: base_config_1.TYPE_VALUE, Uint16ArrayConstructor: base_config_1.TYPE, Int32Array: base_config_1.TYPE_VALUE, Int32ArrayConstructor: base_config_1.TYPE, Uint32Array: base_config_1.TYPE_VALUE, Uint32ArrayConstructor: base_config_1.TYPE, Float32Array: base_config_1.TYPE_VALUE, Float32ArrayConstructor: base_config_1.TYPE, Float64Array: base_config_1.TYPE_VALUE, Float64ArrayConstructor: base_config_1.TYPE, Intl: base_config_1.TYPE_VALUE }); -//# sourceMappingURL=es5.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map deleted file mode 100644 index 16b5373c..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es5.js","sourceRoot":"","sources":["../../src/lib/es5.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAiD;AACjD,6CAA0C;AAC1C,2DAAwD;AAE3C,QAAA,GAAG,GAAG,8CACd,uBAAU,GACV,qCAAiB,KACpB,MAAM,EAAE,kBAAI,EACZ,WAAW,EAAE,kBAAI,EACjB,kBAAkB,EAAE,kBAAI,EACxB,qBAAqB,EAAE,kBAAI,EAC3B,MAAM,EAAE,wBAA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AAI,EAAE,wBAAU,GAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts deleted file mode 100644 index b0fc22fa..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es6: Record; -//# sourceMappingURL=es6.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map deleted file mode 100644 index 2f67f808..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es6.d.ts","sourceRoot":"","sources":["../../src/lib/es6.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAY9D,eAAO,MAAM,GAAG,4CAW+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js deleted file mode 100644 index 39fc9c4d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es6 = void 0; -const es5_1 = require("./es5"); -const es2015_collection_1 = require("./es2015.collection"); -const es2015_core_1 = require("./es2015.core"); -const es2015_generator_1 = require("./es2015.generator"); -const es2015_iterable_1 = require("./es2015.iterable"); -const es2015_promise_1 = require("./es2015.promise"); -const es2015_proxy_1 = require("./es2015.proxy"); -const es2015_reflect_1 = require("./es2015.reflect"); -const es2015_symbol_1 = require("./es2015.symbol"); -const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); -exports.es6 = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, es5_1.es5), es2015_core_1.es2015_core), es2015_collection_1.es2015_collection), es2015_iterable_1.es2015_iterable), es2015_generator_1.es2015_generator), es2015_promise_1.es2015_promise), es2015_proxy_1.es2015_proxy), es2015_reflect_1.es2015_reflect), es2015_symbol_1.es2015_symbol), es2015_symbol_wellknown_1.es2015_symbol_wellknown); -//# sourceMappingURL=es6.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map deleted file mode 100644 index efd091f4..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es6.js","sourceRoot":"","sources":["../../src/lib/es6.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+BAA4B;AAC5B,2DAAwD;AACxD,+CAA4C;AAC5C,yDAAsD;AACtD,uDAAoD;AACpD,qDAAkD;AAClD,iDAA8C;AAC9C,qDAAkD;AAClD,mDAAgD;AAChD,uEAAoE;AAEvD,QAAA,GAAG,GAAG,gJACd,SAAG,GACH,yBAAW,GACX,qCAAiB,GACjB,iCAAe,GACf,mCAAgB,GAChB,+BAAc,GACd,2BAAY,GACZ,+BAAc,GACd,6BAAa,GACb,iDAAuB,CACmB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts deleted file mode 100644 index 474bbd1e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const es7: Record; -//# sourceMappingURL=es7.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map deleted file mode 100644 index e96de837..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es7.d.ts","sourceRoot":"","sources":["../../src/lib/es7.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,GAAG,4CAG+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js deleted file mode 100644 index f1e9a90f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.es7 = void 0; -const es2015_1 = require("./es2015"); -const es2016_array_include_1 = require("./es2016.array.include"); -exports.es7 = Object.assign(Object.assign({}, es2015_1.es2015), es2016_array_include_1.es2016_array_include); -//# sourceMappingURL=es7.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map deleted file mode 100644 index 5e8427d6..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"es7.js","sourceRoot":"","sources":["../../src/lib/es7.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,qCAAkC;AAClC,iEAA8D;AAEjD,QAAA,GAAG,GAAG,gCACd,eAAM,GACN,2CAAoB,CACsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts deleted file mode 100644 index 779fb649..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_array: Record; -//# sourceMappingURL=esnext.array.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map deleted file mode 100644 index 29749cb4..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.array.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.array.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,YAAY,4CAcsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js deleted file mode 100644 index 8c3a255b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_array = void 0; -const base_config_1 = require("./base-config"); -exports.esnext_array = { - Array: base_config_1.TYPE, - ReadonlyArray: base_config_1.TYPE, - Int8Array: base_config_1.TYPE, - Uint8Array: base_config_1.TYPE, - Uint8ClampedArray: base_config_1.TYPE, - Int16Array: base_config_1.TYPE, - Uint16Array: base_config_1.TYPE, - Int32Array: base_config_1.TYPE, - Uint32Array: base_config_1.TYPE, - Float32Array: base_config_1.TYPE, - Float64Array: base_config_1.TYPE, - BigInt64Array: base_config_1.TYPE, - BigUint64Array: base_config_1.TYPE, -}; -//# sourceMappingURL=esnext.array.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map deleted file mode 100644 index 2f8faab5..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.array.js","sourceRoot":"","sources":["../../src/lib/esnext.array.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,kBAAI;IACX,aAAa,EAAE,kBAAI;IACnB,SAAS,EAAE,kBAAI;IACf,UAAU,EAAE,kBAAI;IAChB,iBAAiB,EAAE,kBAAI;IACvB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB,UAAU,EAAE,kBAAI;IAChB,WAAW,EAAE,kBAAI;IACjB,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,aAAa,EAAE,kBAAI;IACnB,cAAc,EAAE,kBAAI;CACyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts deleted file mode 100644 index 0cb2d185..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_asynciterable: Record; -//# sourceMappingURL=esnext.asynciterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map deleted file mode 100644 index ba5973e4..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.asynciterable.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.asynciterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAK9D,eAAO,MAAM,oBAAoB,4CAOc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js deleted file mode 100644 index fe47f00e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_asynciterable = void 0; -const base_config_1 = require("./base-config"); -const es2015_iterable_1 = require("./es2015.iterable"); -const es2015_symbol_1 = require("./es2015.symbol"); -exports.esnext_asynciterable = Object.assign(Object.assign(Object.assign({}, es2015_symbol_1.es2015_symbol), es2015_iterable_1.es2015_iterable), { SymbolConstructor: base_config_1.TYPE, AsyncIterator: base_config_1.TYPE, AsyncIterable: base_config_1.TYPE, AsyncIterableIterator: base_config_1.TYPE }); -//# sourceMappingURL=esnext.asynciterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map deleted file mode 100644 index 11cd0f37..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.asynciterable.js","sourceRoot":"","sources":["../../src/lib/esnext.asynciterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AACrC,uDAAoD;AACpD,mDAAgD;AAEnC,QAAA,oBAAoB,GAAG,8CAC/B,6BAAa,GACb,iCAAe,KAClB,iBAAiB,EAAE,kBAAI,EACvB,aAAa,EAAE,kBAAI,EACnB,aAAa,EAAE,kBAAI,EACnB,qBAAqB,EAAE,kBAAI,GACkB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts deleted file mode 100644 index d879c0e7..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_bigint: Record; -//# sourceMappingURL=esnext.bigint.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map deleted file mode 100644 index 20081b5a..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.bigint.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.bigint.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,aAAa,4CAWqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js deleted file mode 100644 index 4ea75c2b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_bigint = void 0; -const base_config_1 = require("./base-config"); -const es2020_intl_1 = require("./es2020.intl"); -exports.esnext_bigint = Object.assign(Object.assign({}, es2020_intl_1.es2020_intl), { BigIntToLocaleStringOptions: base_config_1.TYPE, BigInt: base_config_1.TYPE_VALUE, BigIntConstructor: base_config_1.TYPE, BigInt64Array: base_config_1.TYPE_VALUE, BigInt64ArrayConstructor: base_config_1.TYPE, BigUint64Array: base_config_1.TYPE_VALUE, BigUint64ArrayConstructor: base_config_1.TYPE, DataView: base_config_1.TYPE, Intl: base_config_1.TYPE_VALUE }); -//# sourceMappingURL=esnext.bigint.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map deleted file mode 100644 index 2df82f2c..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.bigint.js","sourceRoot":"","sources":["../../src/lib/esnext.bigint.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAiD;AACjD,+CAA4C;AAE/B,QAAA,aAAa,GAAG,gCACxB,yBAAW,KACd,2BAA2B,EAAE,kBAAI,EACjC,MAAM,EAAE,wBAAU,EAClB,iBAAiB,EAAE,kBAAI,EACvB,aAAa,EAAE,wBAAU,EACzB,wBAAwB,EAAE,kBAAI,EAC9B,cAAc,EAAE,wBAAU,EAC1B,yBAAyB,EAAE,kBAAI,EAC/B,QAAQ,EAAE,kBAAI,EACd,IAAI,EAAE,wBAAU,GAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts deleted file mode 100644 index 30897cb1..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext: Record; -//# sourceMappingURL=esnext.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map deleted file mode 100644 index 10f9d8f2..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAI9D,eAAO,MAAM,MAAM,4CAG4B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts deleted file mode 100644 index 6c0fb48d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_full: Record; -//# sourceMappingURL=esnext.full.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map deleted file mode 100644 index 34c3cc05..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.full.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.full.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAO9D,eAAO,MAAM,WAAW,4CAMuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js deleted file mode 100644 index 09d84847..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_full = void 0; -const dom_1 = require("./dom"); -const dom_iterable_1 = require("./dom.iterable"); -const esnext_1 = require("./esnext"); -const scripthost_1 = require("./scripthost"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -exports.esnext_full = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, esnext_1.esnext), dom_1.dom), webworker_importscripts_1.webworker_importscripts), scripthost_1.scripthost), dom_iterable_1.dom_iterable); -//# sourceMappingURL=esnext.full.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map deleted file mode 100644 index a56d99a2..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.full.js","sourceRoot":"","sources":["../../src/lib/esnext.full.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+BAA4B;AAC5B,iDAA8C;AAC9C,qCAAkC;AAClC,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,WAAW,GAAG,0EACtB,eAAM,GACN,SAAG,GACH,iDAAuB,GACvB,uBAAU,GACV,2BAAY,CAC8B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts deleted file mode 100644 index 892587a4..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_intl: Record; -//# sourceMappingURL=esnext.intl.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map deleted file mode 100644 index dd844874..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.intl.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.intl.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,WAAW,4CAEuB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js deleted file mode 100644 index fab7c3d2..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_intl = void 0; -const base_config_1 = require("./base-config"); -exports.esnext_intl = { - Intl: base_config_1.TYPE_VALUE, -}; -//# sourceMappingURL=esnext.intl.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map deleted file mode 100644 index 1e0169aa..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.intl.js","sourceRoot":"","sources":["../../src/lib/esnext.intl.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAA2C;AAE9B,QAAA,WAAW,GAAG;IACzB,IAAI,EAAE,wBAAU;CAC6B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js deleted file mode 100644 index 29cd1b4d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext = void 0; -const es2023_1 = require("./es2023"); -const esnext_intl_1 = require("./esnext.intl"); -exports.esnext = Object.assign(Object.assign({}, es2023_1.es2023), esnext_intl_1.esnext_intl); -//# sourceMappingURL=esnext.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map deleted file mode 100644 index 94d597ab..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.js","sourceRoot":"","sources":["../../src/lib/esnext.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,qCAAkC;AAClC,+CAA4C;AAE/B,QAAA,MAAM,GAAG,gCACjB,eAAM,GACN,yBAAW,CAC+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts deleted file mode 100644 index aae1ed13..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_promise: Record; -//# sourceMappingURL=esnext.promise.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map deleted file mode 100644 index 85d8d27c..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.promise.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.promise.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,cAAc,4CAIoB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js deleted file mode 100644 index 9dcdb2c2..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_promise = void 0; -const base_config_1 = require("./base-config"); -exports.esnext_promise = { - AggregateError: base_config_1.TYPE_VALUE, - AggregateErrorConstructor: base_config_1.TYPE, - PromiseConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=esnext.promise.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map deleted file mode 100644 index a8b9597e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.promise.js","sourceRoot":"","sources":["../../src/lib/esnext.promise.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAiD;AAEpC,QAAA,cAAc,GAAG;IAC5B,cAAc,EAAE,wBAAU;IAC1B,yBAAyB,EAAE,kBAAI;IAC/B,kBAAkB,EAAE,kBAAI;CACqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts deleted file mode 100644 index 238f2890..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_string: Record; -//# sourceMappingURL=esnext.string.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map deleted file mode 100644 index 95433af3..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.string.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.string.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,4CAEqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js deleted file mode 100644 index d9d29279..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_string = void 0; -const base_config_1 = require("./base-config"); -exports.esnext_string = { - String: base_config_1.TYPE, -}; -//# sourceMappingURL=esnext.string.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map deleted file mode 100644 index 36bfbbe3..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.string.js","sourceRoot":"","sources":["../../src/lib/esnext.string.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts deleted file mode 100644 index a09a2927..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_symbol: Record; -//# sourceMappingURL=esnext.symbol.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map deleted file mode 100644 index 1f2e0b5e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.symbol.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.symbol.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,aAAa,4CAEqB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js deleted file mode 100644 index c5f9e5b8..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_symbol = void 0; -const base_config_1 = require("./base-config"); -exports.esnext_symbol = { - Symbol: base_config_1.TYPE, -}; -//# sourceMappingURL=esnext.symbol.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map deleted file mode 100644 index 6ddf4a08..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.symbol.js","sourceRoot":"","sources":["../../src/lib/esnext.symbol.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,kBAAI;CACiC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts deleted file mode 100644 index 1f2b6727..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const esnext_weakref: Record; -//# sourceMappingURL=esnext.weakref.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map deleted file mode 100644 index 7377c336..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.weakref.d.ts","sourceRoot":"","sources":["../../src/lib/esnext.weakref.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,cAAc,4CAKoB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js deleted file mode 100644 index e409234c..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.esnext_weakref = void 0; -const base_config_1 = require("./base-config"); -exports.esnext_weakref = { - WeakRef: base_config_1.TYPE_VALUE, - WeakRefConstructor: base_config_1.TYPE, - FinalizationRegistry: base_config_1.TYPE_VALUE, - FinalizationRegistryConstructor: base_config_1.TYPE, -}; -//# sourceMappingURL=esnext.weakref.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map deleted file mode 100644 index c1c6f8ed..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"esnext.weakref.js","sourceRoot":"","sources":["../../src/lib/esnext.weakref.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAiD;AAEpC,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;IACxB,oBAAoB,EAAE,wBAAU;IAChC,+BAA+B,EAAE,kBAAI;CACQ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts deleted file mode 100644 index 517f2631..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts +++ /dev/null @@ -1,88 +0,0 @@ -declare const lib: { - readonly es5: Record; - readonly es6: Record; - readonly es2015: Record; - readonly es7: Record; - readonly es2016: Record; - readonly es2017: Record; - readonly es2018: Record; - readonly es2019: Record; - readonly es2020: Record; - readonly es2021: Record; - readonly es2022: Record; - readonly es2023: Record; - readonly esnext: Record; - readonly dom: Record; - readonly 'dom.iterable': Record; - readonly webworker: Record; - readonly 'webworker.importscripts': Record; - readonly 'webworker.iterable': Record; - readonly scripthost: Record; - readonly 'es2015.core': Record; - readonly 'es2015.collection': Record; - readonly 'es2015.generator': Record; - readonly 'es2015.iterable': Record; - readonly 'es2015.promise': Record; - readonly 'es2015.proxy': Record; - readonly 'es2015.reflect': Record; - readonly 'es2015.symbol': Record; - readonly 'es2015.symbol.wellknown': Record; - readonly 'es2016.array.include': Record; - readonly 'es2017.object': Record; - readonly 'es2017.sharedmemory': Record; - readonly 'es2017.string': Record; - readonly 'es2017.intl': Record; - readonly 'es2017.typedarrays': Record; - readonly 'es2018.asyncgenerator': Record; - readonly 'es2018.asynciterable': Record; - readonly 'es2018.intl': Record; - readonly 'es2018.promise': Record; - readonly 'es2018.regexp': Record; - readonly 'es2019.array': Record; - readonly 'es2019.object': Record; - readonly 'es2019.string': Record; - readonly 'es2019.symbol': Record; - readonly 'es2019.intl': Record; - readonly 'es2020.bigint': Record; - readonly 'es2020.date': Record; - readonly 'es2020.promise': Record; - readonly 'es2020.sharedmemory': Record; - readonly 'es2020.string': Record; - readonly 'es2020.symbol.wellknown': Record; - readonly 'es2020.intl': Record; - readonly 'es2020.number': Record; - readonly 'es2021.promise': Record; - readonly 'es2021.string': Record; - readonly 'es2021.weakref': Record; - readonly 'es2021.intl': Record; - readonly 'es2022.array': Record; - readonly 'es2022.error': Record; - readonly 'es2022.intl': Record; - readonly 'es2022.object': Record; - readonly 'es2022.sharedmemory': Record; - readonly 'es2022.string': Record; - readonly 'es2022.regexp': Record; - readonly 'es2023.array': Record; - readonly 'esnext.array': Record; - readonly 'esnext.symbol': Record; - readonly 'esnext.asynciterable': Record; - readonly 'esnext.intl': Record; - readonly 'esnext.bigint': Record; - readonly 'esnext.string': Record; - readonly 'esnext.promise': Record; - readonly 'esnext.weakref': Record; - readonly decorators: Record; - readonly 'decorators.legacy': Record; - readonly 'es2016.full': Record; - readonly 'es2017.full': Record; - readonly 'es2018.full': Record; - readonly 'es2019.full': Record; - readonly 'es2020.full': Record; - readonly 'es2021.full': Record; - readonly 'es2022.full': Record; - readonly 'es2023.full': Record; - readonly 'esnext.full': Record; - readonly lib: Record; -}; -export { lib }; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map deleted file mode 100644 index 34bb1400..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AA0FA,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqFC,CAAC;AAEX,OAAO,EAAE,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js deleted file mode 100644 index 5b821277..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js +++ /dev/null @@ -1,179 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.lib = void 0; -const decorators_1 = require("./decorators"); -const decorators_legacy_1 = require("./decorators.legacy"); -const dom_1 = require("./dom"); -const dom_iterable_1 = require("./dom.iterable"); -const es5_1 = require("./es5"); -const es6_1 = require("./es6"); -const es7_1 = require("./es7"); -const es2015_1 = require("./es2015"); -const es2015_collection_1 = require("./es2015.collection"); -const es2015_core_1 = require("./es2015.core"); -const es2015_generator_1 = require("./es2015.generator"); -const es2015_iterable_1 = require("./es2015.iterable"); -const es2015_promise_1 = require("./es2015.promise"); -const es2015_proxy_1 = require("./es2015.proxy"); -const es2015_reflect_1 = require("./es2015.reflect"); -const es2015_symbol_1 = require("./es2015.symbol"); -const es2015_symbol_wellknown_1 = require("./es2015.symbol.wellknown"); -const es2016_1 = require("./es2016"); -const es2016_array_include_1 = require("./es2016.array.include"); -const es2016_full_1 = require("./es2016.full"); -const es2017_1 = require("./es2017"); -const es2017_full_1 = require("./es2017.full"); -const es2017_intl_1 = require("./es2017.intl"); -const es2017_object_1 = require("./es2017.object"); -const es2017_sharedmemory_1 = require("./es2017.sharedmemory"); -const es2017_string_1 = require("./es2017.string"); -const es2017_typedarrays_1 = require("./es2017.typedarrays"); -const es2018_1 = require("./es2018"); -const es2018_asyncgenerator_1 = require("./es2018.asyncgenerator"); -const es2018_asynciterable_1 = require("./es2018.asynciterable"); -const es2018_full_1 = require("./es2018.full"); -const es2018_intl_1 = require("./es2018.intl"); -const es2018_promise_1 = require("./es2018.promise"); -const es2018_regexp_1 = require("./es2018.regexp"); -const es2019_1 = require("./es2019"); -const es2019_array_1 = require("./es2019.array"); -const es2019_full_1 = require("./es2019.full"); -const es2019_intl_1 = require("./es2019.intl"); -const es2019_object_1 = require("./es2019.object"); -const es2019_string_1 = require("./es2019.string"); -const es2019_symbol_1 = require("./es2019.symbol"); -const es2020_1 = require("./es2020"); -const es2020_bigint_1 = require("./es2020.bigint"); -const es2020_date_1 = require("./es2020.date"); -const es2020_full_1 = require("./es2020.full"); -const es2020_intl_1 = require("./es2020.intl"); -const es2020_number_1 = require("./es2020.number"); -const es2020_promise_1 = require("./es2020.promise"); -const es2020_sharedmemory_1 = require("./es2020.sharedmemory"); -const es2020_string_1 = require("./es2020.string"); -const es2020_symbol_wellknown_1 = require("./es2020.symbol.wellknown"); -const es2021_1 = require("./es2021"); -const es2021_full_1 = require("./es2021.full"); -const es2021_intl_1 = require("./es2021.intl"); -const es2021_promise_1 = require("./es2021.promise"); -const es2021_string_1 = require("./es2021.string"); -const es2021_weakref_1 = require("./es2021.weakref"); -const es2022_1 = require("./es2022"); -const es2022_array_1 = require("./es2022.array"); -const es2022_error_1 = require("./es2022.error"); -const es2022_full_1 = require("./es2022.full"); -const es2022_intl_1 = require("./es2022.intl"); -const es2022_object_1 = require("./es2022.object"); -const es2022_regexp_1 = require("./es2022.regexp"); -const es2022_sharedmemory_1 = require("./es2022.sharedmemory"); -const es2022_string_1 = require("./es2022.string"); -const es2023_1 = require("./es2023"); -const es2023_array_1 = require("./es2023.array"); -const es2023_full_1 = require("./es2023.full"); -const esnext_1 = require("./esnext"); -const esnext_array_1 = require("./esnext.array"); -const esnext_asynciterable_1 = require("./esnext.asynciterable"); -const esnext_bigint_1 = require("./esnext.bigint"); -const esnext_full_1 = require("./esnext.full"); -const esnext_intl_1 = require("./esnext.intl"); -const esnext_promise_1 = require("./esnext.promise"); -const esnext_string_1 = require("./esnext.string"); -const esnext_symbol_1 = require("./esnext.symbol"); -const esnext_weakref_1 = require("./esnext.weakref"); -const lib_1 = require("./lib"); -const scripthost_1 = require("./scripthost"); -const webworker_1 = require("./webworker"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -const webworker_iterable_1 = require("./webworker.iterable"); -const lib = { - es5: es5_1.es5, - es6: es6_1.es6, - es2015: es2015_1.es2015, - es7: es7_1.es7, - es2016: es2016_1.es2016, - es2017: es2017_1.es2017, - es2018: es2018_1.es2018, - es2019: es2019_1.es2019, - es2020: es2020_1.es2020, - es2021: es2021_1.es2021, - es2022: es2022_1.es2022, - es2023: es2023_1.es2023, - esnext: esnext_1.esnext, - dom: dom_1.dom, - 'dom.iterable': dom_iterable_1.dom_iterable, - webworker: webworker_1.webworker, - 'webworker.importscripts': webworker_importscripts_1.webworker_importscripts, - 'webworker.iterable': webworker_iterable_1.webworker_iterable, - scripthost: scripthost_1.scripthost, - 'es2015.core': es2015_core_1.es2015_core, - 'es2015.collection': es2015_collection_1.es2015_collection, - 'es2015.generator': es2015_generator_1.es2015_generator, - 'es2015.iterable': es2015_iterable_1.es2015_iterable, - 'es2015.promise': es2015_promise_1.es2015_promise, - 'es2015.proxy': es2015_proxy_1.es2015_proxy, - 'es2015.reflect': es2015_reflect_1.es2015_reflect, - 'es2015.symbol': es2015_symbol_1.es2015_symbol, - 'es2015.symbol.wellknown': es2015_symbol_wellknown_1.es2015_symbol_wellknown, - 'es2016.array.include': es2016_array_include_1.es2016_array_include, - 'es2017.object': es2017_object_1.es2017_object, - 'es2017.sharedmemory': es2017_sharedmemory_1.es2017_sharedmemory, - 'es2017.string': es2017_string_1.es2017_string, - 'es2017.intl': es2017_intl_1.es2017_intl, - 'es2017.typedarrays': es2017_typedarrays_1.es2017_typedarrays, - 'es2018.asyncgenerator': es2018_asyncgenerator_1.es2018_asyncgenerator, - 'es2018.asynciterable': es2018_asynciterable_1.es2018_asynciterable, - 'es2018.intl': es2018_intl_1.es2018_intl, - 'es2018.promise': es2018_promise_1.es2018_promise, - 'es2018.regexp': es2018_regexp_1.es2018_regexp, - 'es2019.array': es2019_array_1.es2019_array, - 'es2019.object': es2019_object_1.es2019_object, - 'es2019.string': es2019_string_1.es2019_string, - 'es2019.symbol': es2019_symbol_1.es2019_symbol, - 'es2019.intl': es2019_intl_1.es2019_intl, - 'es2020.bigint': es2020_bigint_1.es2020_bigint, - 'es2020.date': es2020_date_1.es2020_date, - 'es2020.promise': es2020_promise_1.es2020_promise, - 'es2020.sharedmemory': es2020_sharedmemory_1.es2020_sharedmemory, - 'es2020.string': es2020_string_1.es2020_string, - 'es2020.symbol.wellknown': es2020_symbol_wellknown_1.es2020_symbol_wellknown, - 'es2020.intl': es2020_intl_1.es2020_intl, - 'es2020.number': es2020_number_1.es2020_number, - 'es2021.promise': es2021_promise_1.es2021_promise, - 'es2021.string': es2021_string_1.es2021_string, - 'es2021.weakref': es2021_weakref_1.es2021_weakref, - 'es2021.intl': es2021_intl_1.es2021_intl, - 'es2022.array': es2022_array_1.es2022_array, - 'es2022.error': es2022_error_1.es2022_error, - 'es2022.intl': es2022_intl_1.es2022_intl, - 'es2022.object': es2022_object_1.es2022_object, - 'es2022.sharedmemory': es2022_sharedmemory_1.es2022_sharedmemory, - 'es2022.string': es2022_string_1.es2022_string, - 'es2022.regexp': es2022_regexp_1.es2022_regexp, - 'es2023.array': es2023_array_1.es2023_array, - 'esnext.array': esnext_array_1.esnext_array, - 'esnext.symbol': esnext_symbol_1.esnext_symbol, - 'esnext.asynciterable': esnext_asynciterable_1.esnext_asynciterable, - 'esnext.intl': esnext_intl_1.esnext_intl, - 'esnext.bigint': esnext_bigint_1.esnext_bigint, - 'esnext.string': esnext_string_1.esnext_string, - 'esnext.promise': esnext_promise_1.esnext_promise, - 'esnext.weakref': esnext_weakref_1.esnext_weakref, - decorators: decorators_1.decorators, - 'decorators.legacy': decorators_legacy_1.decorators_legacy, - 'es2016.full': es2016_full_1.es2016_full, - 'es2017.full': es2017_full_1.es2017_full, - 'es2018.full': es2018_full_1.es2018_full, - 'es2019.full': es2019_full_1.es2019_full, - 'es2020.full': es2020_full_1.es2020_full, - 'es2021.full': es2021_full_1.es2021_full, - 'es2022.full': es2022_full_1.es2022_full, - 'es2023.full': es2023_full_1.es2023_full, - 'esnext.full': esnext_full_1.esnext_full, - lib: lib_1.lib, -}; -exports.lib = lib; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map deleted file mode 100644 index c4d35000..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"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leted file mode 100644 index a6b2263d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const lib: Record; -//# sourceMappingURL=lib.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map deleted file mode 100644 index 406de8e0..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/lib/lib.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAM9D,eAAO,MAAM,GAAG,4CAK+B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js deleted file mode 100644 index 4e07dc34..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.lib = void 0; -const dom_1 = require("./dom"); -const es5_1 = require("./es5"); -const scripthost_1 = require("./scripthost"); -const webworker_importscripts_1 = require("./webworker.importscripts"); -exports.lib = Object.assign(Object.assign(Object.assign(Object.assign({}, es5_1.es5), dom_1.dom), webworker_importscripts_1.webworker_importscripts), scripthost_1.scripthost); -//# sourceMappingURL=lib.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map deleted file mode 100644 index f763bc33..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lib.js","sourceRoot":"","sources":["../../src/lib/lib.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+BAA4B;AAC5B,+BAA4B;AAC5B,6CAA0C;AAC1C,uEAAoE;AAEvD,QAAA,GAAG,GAAG,4DACd,SAAG,GACH,SAAG,GACH,iDAAuB,GACvB,uBAAU,CACgC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts deleted file mode 100644 index 4e066f50..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const scripthost: Record; -//# sourceMappingURL=scripthost.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map deleted file mode 100644 index bda9060b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scripthost.d.ts","sourceRoot":"","sources":["../../src/lib/scripthost.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,UAAU,4CAcwB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js deleted file mode 100644 index 12a45e40..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.scripthost = void 0; -const base_config_1 = require("./base-config"); -exports.scripthost = { - ActiveXObject: base_config_1.TYPE_VALUE, - ITextWriter: base_config_1.TYPE, - TextStreamBase: base_config_1.TYPE, - TextStreamWriter: base_config_1.TYPE, - TextStreamReader: base_config_1.TYPE, - SafeArray: base_config_1.TYPE_VALUE, - Enumerator: base_config_1.TYPE_VALUE, - EnumeratorConstructor: base_config_1.TYPE, - VBArray: base_config_1.TYPE_VALUE, - VBArrayConstructor: base_config_1.TYPE, - VarDate: base_config_1.TYPE_VALUE, - DateConstructor: base_config_1.TYPE, - Date: base_config_1.TYPE, -}; -//# sourceMappingURL=scripthost.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map deleted file mode 100644 index b551c6d2..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scripthost.js","sourceRoot":"","sources":["../../src/lib/scripthost.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAiD;AAEpC,QAAA,UAAU,GAAG;IACxB,aAAa,EAAE,wBAAU;IACzB,WAAW,EAAE,kBAAI;IACjB,cAAc,EAAE,kBAAI;IACpB,gBAAgB,EAAE,kBAAI;IACtB,gBAAgB,EAAE,kBAAI;IACtB,SAAS,EAAE,wBAAU;IACrB,UAAU,EAAE,wBAAU;IACtB,qBAAqB,EAAE,kBAAI;IAC3B,OAAO,EAAE,wBAAU;IACnB,kBAAkB,EAAE,kBAAI;IACxB,OAAO,EAAE,wBAAU;IACnB,eAAe,EAAE,kBAAI;IACrB,IAAI,EAAE,kBAAI;CACmC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts deleted file mode 100644 index 87c0e941..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const webworker: Record; -//# sourceMappingURL=webworker.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map deleted file mode 100644 index f9c29ce7..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webworker.d.ts","sourceRoot":"","sources":["../../src/lib/webworker.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,SAAS,4CAqeyB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts deleted file mode 100644 index c042e506..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const webworker_importscripts: Record; -//# sourceMappingURL=webworker.importscripts.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map deleted file mode 100644 index d1c37fad..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webworker.importscripts.d.ts","sourceRoot":"","sources":["../../src/lib/webworker.importscripts.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAE9D,eAAO,MAAM,uBAAuB,4CAGnC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js deleted file mode 100644 index e9413d6c..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.webworker_importscripts = void 0; -exports.webworker_importscripts = {}; -//# sourceMappingURL=webworker.importscripts.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map deleted file mode 100644 index 52a15f20..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webworker.importscripts.js","sourceRoot":"","sources":["../../src/lib/webworker.importscripts.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAI1C,QAAA,uBAAuB,GAAG,EAGtC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts deleted file mode 100644 index 207cf1f7..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ImplicitLibVariableOptions } from '../variable'; -export declare const webworker_iterable: Record; -//# sourceMappingURL=webworker.iterable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map deleted file mode 100644 index 26a8a755..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webworker.iterable.d.ts","sourceRoot":"","sources":["../../src/lib/webworker.iterable.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAG9D,eAAO,MAAM,kBAAkB,4CAoBgB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js deleted file mode 100644 index 59f02ec8..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.webworker_iterable = void 0; -const base_config_1 = require("./base-config"); -exports.webworker_iterable = { - Cache: base_config_1.TYPE, - CanvasPath: base_config_1.TYPE, - CanvasPathDrawingStyles: base_config_1.TYPE, - DOMStringList: base_config_1.TYPE, - FileList: base_config_1.TYPE, - FontFaceSet: base_config_1.TYPE, - FormData: base_config_1.TYPE, - Headers: base_config_1.TYPE, - IDBDatabase: base_config_1.TYPE, - IDBObjectStore: base_config_1.TYPE, - MessageEvent: base_config_1.TYPE, - SubtleCrypto: base_config_1.TYPE, - URLSearchParams: base_config_1.TYPE, - WEBGL_draw_buffers: base_config_1.TYPE, - WEBGL_multi_draw: base_config_1.TYPE, - WebGL2RenderingContextBase: base_config_1.TYPE, - WebGL2RenderingContextOverloads: base_config_1.TYPE, - WebGLRenderingContextBase: base_config_1.TYPE, - WebGLRenderingContextOverloads: base_config_1.TYPE, -}; -//# sourceMappingURL=webworker.iterable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map deleted file mode 100644 index 3fc7f711..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webworker.iterable.js","sourceRoot":"","sources":["../../src/lib/webworker.iterable.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAqC;AAExB,QAAA,kBAAkB,GAAG;IAChC,KAAK,EAAE,kBAAI;IACX,UAAU,EAAE,kBAAI;IAChB,uBAAuB,EAAE,kBAAI;IAC7B,aAAa,EAAE,kBAAI;IACnB,QAAQ,EAAE,kBAAI;IACd,WAAW,EAAE,kBAAI;IACjB,QAAQ,EAAE,kBAAI;IACd,OAAO,EAAE,kBAAI;IACb,WAAW,EAAE,kBAAI;IACjB,cAAc,EAAE,kBAAI;IACpB,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,eAAe,EAAE,kBAAI;IACrB,kBAAkB,EAAE,kBAAI;IACxB,gBAAgB,EAAE,kBAAI;IACtB,0BAA0B,EAAE,kBAAI;IAChC,+BAA+B,EAAE,kBAAI;IACrC,yBAAyB,EAAE,kBAAI;IAC/B,8BAA8B,EAAE,kBAAI;CACS,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js b/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js deleted file mode 100644 index a22e61a6..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js +++ /dev/null @@ -1,495 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -exports.webworker = void 0; -const base_config_1 = require("./base-config"); -exports.webworker = { - AddEventListenerOptions: base_config_1.TYPE, - AesCbcParams: base_config_1.TYPE, - AesCtrParams: base_config_1.TYPE, - AesDerivedKeyParams: base_config_1.TYPE, - AesGcmParams: base_config_1.TYPE, - AesKeyAlgorithm: base_config_1.TYPE, - AesKeyGenParams: base_config_1.TYPE, - Algorithm: base_config_1.TYPE, - AudioConfiguration: base_config_1.TYPE, - BlobPropertyBag: base_config_1.TYPE, - CacheQueryOptions: base_config_1.TYPE, - ClientQueryOptions: base_config_1.TYPE, - CloseEventInit: base_config_1.TYPE, - CryptoKeyPair: base_config_1.TYPE, - CustomEventInit: base_config_1.TYPE, - DOMMatrix2DInit: base_config_1.TYPE, - DOMMatrixInit: base_config_1.TYPE, - DOMPointInit: base_config_1.TYPE, - DOMQuadInit: base_config_1.TYPE, - DOMRectInit: base_config_1.TYPE, - EcKeyGenParams: base_config_1.TYPE, - EcKeyImportParams: base_config_1.TYPE, - EcdhKeyDeriveParams: base_config_1.TYPE, - EcdsaParams: base_config_1.TYPE, - ErrorEventInit: base_config_1.TYPE, - EventInit: base_config_1.TYPE, - EventListenerOptions: base_config_1.TYPE, - EventSourceInit: base_config_1.TYPE, - ExtendableEventInit: base_config_1.TYPE, - ExtendableMessageEventInit: base_config_1.TYPE, - FetchEventInit: base_config_1.TYPE, - FilePropertyBag: base_config_1.TYPE, - FileSystemGetDirectoryOptions: base_config_1.TYPE, - FileSystemGetFileOptions: base_config_1.TYPE, - FileSystemReadWriteOptions: base_config_1.TYPE, - FileSystemRemoveOptions: base_config_1.TYPE, - FontFaceDescriptors: base_config_1.TYPE, - FontFaceSetLoadEventInit: base_config_1.TYPE, - GetNotificationOptions: base_config_1.TYPE, - HkdfParams: base_config_1.TYPE, - HmacImportParams: base_config_1.TYPE, - HmacKeyGenParams: base_config_1.TYPE, - IDBDatabaseInfo: base_config_1.TYPE, - IDBIndexParameters: base_config_1.TYPE, - IDBObjectStoreParameters: base_config_1.TYPE, - IDBTransactionOptions: base_config_1.TYPE, - IDBVersionChangeEventInit: base_config_1.TYPE, - ImageBitmapOptions: base_config_1.TYPE, - ImageBitmapRenderingContextSettings: base_config_1.TYPE, - ImageDataSettings: base_config_1.TYPE, - ImageEncodeOptions: base_config_1.TYPE, - ImportMeta: base_config_1.TYPE, - JsonWebKey: base_config_1.TYPE, - KeyAlgorithm: base_config_1.TYPE, - LockInfo: base_config_1.TYPE, - LockManagerSnapshot: base_config_1.TYPE, - LockOptions: base_config_1.TYPE, - MediaCapabilitiesDecodingInfo: base_config_1.TYPE, - MediaCapabilitiesEncodingInfo: base_config_1.TYPE, - MediaCapabilitiesInfo: base_config_1.TYPE, - MediaConfiguration: base_config_1.TYPE, - MediaDecodingConfiguration: base_config_1.TYPE, - MediaEncodingConfiguration: base_config_1.TYPE, - MessageEventInit: base_config_1.TYPE, - MultiCacheQueryOptions: base_config_1.TYPE, - NavigationPreloadState: base_config_1.TYPE, - NotificationAction: base_config_1.TYPE, - NotificationEventInit: base_config_1.TYPE, - NotificationOptions: base_config_1.TYPE, - Pbkdf2Params: base_config_1.TYPE, - PerformanceMarkOptions: base_config_1.TYPE, - PerformanceMeasureOptions: base_config_1.TYPE, - PerformanceObserverInit: base_config_1.TYPE, - PermissionDescriptor: base_config_1.TYPE, - ProgressEventInit: base_config_1.TYPE, - PromiseRejectionEventInit: base_config_1.TYPE, - PushEventInit: base_config_1.TYPE, - PushSubscriptionJSON: base_config_1.TYPE, - PushSubscriptionOptionsInit: base_config_1.TYPE, - QueuingStrategy: base_config_1.TYPE, - QueuingStrategyInit: base_config_1.TYPE, - RTCEncodedAudioFrameMetadata: base_config_1.TYPE, - RTCEncodedVideoFrameMetadata: base_config_1.TYPE, - ReadableStreamGetReaderOptions: base_config_1.TYPE, - ReadableStreamReadDoneResult: base_config_1.TYPE, - ReadableStreamReadValueResult: base_config_1.TYPE, - ReadableWritablePair: base_config_1.TYPE, - RegistrationOptions: base_config_1.TYPE, - RequestInit: base_config_1.TYPE, - ResponseInit: base_config_1.TYPE, - RsaHashedImportParams: base_config_1.TYPE, - RsaHashedKeyGenParams: base_config_1.TYPE, - RsaKeyGenParams: base_config_1.TYPE, - RsaOaepParams: base_config_1.TYPE, - RsaOtherPrimesInfo: base_config_1.TYPE, - RsaPssParams: base_config_1.TYPE, - SecurityPolicyViolationEventInit: base_config_1.TYPE, - StorageEstimate: base_config_1.TYPE, - StreamPipeOptions: base_config_1.TYPE, - StructuredSerializeOptions: base_config_1.TYPE, - TextDecodeOptions: base_config_1.TYPE, - TextDecoderOptions: base_config_1.TYPE, - TextEncoderEncodeIntoResult: base_config_1.TYPE, - Transformer: base_config_1.TYPE, - UnderlyingByteSource: base_config_1.TYPE, - UnderlyingDefaultSource: base_config_1.TYPE, - UnderlyingSink: base_config_1.TYPE, - UnderlyingSource: base_config_1.TYPE, - VideoColorSpaceInit: base_config_1.TYPE, - VideoConfiguration: base_config_1.TYPE, - WebGLContextAttributes: base_config_1.TYPE, - WebGLContextEventInit: base_config_1.TYPE, - WorkerOptions: base_config_1.TYPE, - ANGLE_instanced_arrays: base_config_1.TYPE, - AbortController: base_config_1.TYPE_VALUE, - AbortSignalEventMap: base_config_1.TYPE, - AbortSignal: base_config_1.TYPE_VALUE, - AbstractWorkerEventMap: base_config_1.TYPE, - AbstractWorker: base_config_1.TYPE, - AnimationFrameProvider: base_config_1.TYPE, - Blob: base_config_1.TYPE_VALUE, - Body: base_config_1.TYPE, - BroadcastChannelEventMap: base_config_1.TYPE, - BroadcastChannel: base_config_1.TYPE_VALUE, - ByteLengthQueuingStrategy: base_config_1.TYPE_VALUE, - Cache: base_config_1.TYPE_VALUE, - CacheStorage: base_config_1.TYPE_VALUE, - CanvasCompositing: base_config_1.TYPE, - CanvasDrawImage: base_config_1.TYPE, - CanvasDrawPath: base_config_1.TYPE, - CanvasFillStrokeStyles: base_config_1.TYPE, - CanvasFilters: base_config_1.TYPE, - CanvasGradient: base_config_1.TYPE_VALUE, - CanvasImageData: base_config_1.TYPE, - CanvasImageSmoothing: base_config_1.TYPE, - CanvasPath: base_config_1.TYPE, - CanvasPathDrawingStyles: base_config_1.TYPE, - CanvasPattern: base_config_1.TYPE_VALUE, - CanvasRect: base_config_1.TYPE, - CanvasShadowStyles: base_config_1.TYPE, - CanvasState: base_config_1.TYPE, - CanvasText: base_config_1.TYPE, - CanvasTextDrawingStyles: base_config_1.TYPE, - CanvasTransform: base_config_1.TYPE, - Client: base_config_1.TYPE_VALUE, - Clients: base_config_1.TYPE_VALUE, - CloseEvent: base_config_1.TYPE_VALUE, - CountQueuingStrategy: base_config_1.TYPE_VALUE, - Crypto: base_config_1.TYPE_VALUE, - CryptoKey: base_config_1.TYPE_VALUE, - CustomEvent: base_config_1.TYPE_VALUE, - DOMException: base_config_1.TYPE_VALUE, - DOMMatrix: base_config_1.TYPE_VALUE, - DOMMatrixReadOnly: base_config_1.TYPE_VALUE, - DOMPoint: base_config_1.TYPE_VALUE, - DOMPointReadOnly: base_config_1.TYPE_VALUE, - DOMQuad: base_config_1.TYPE_VALUE, - DOMRect: base_config_1.TYPE_VALUE, - DOMRectReadOnly: base_config_1.TYPE_VALUE, - DOMStringList: base_config_1.TYPE_VALUE, - DedicatedWorkerGlobalScopeEventMap: base_config_1.TYPE, - DedicatedWorkerGlobalScope: base_config_1.TYPE_VALUE, - EXT_blend_minmax: base_config_1.TYPE, - EXT_color_buffer_float: base_config_1.TYPE, - EXT_color_buffer_half_float: base_config_1.TYPE, - EXT_float_blend: base_config_1.TYPE, - EXT_frag_depth: base_config_1.TYPE, - EXT_sRGB: base_config_1.TYPE, - EXT_shader_texture_lod: base_config_1.TYPE, - EXT_texture_compression_bptc: base_config_1.TYPE, - EXT_texture_compression_rgtc: base_config_1.TYPE, - EXT_texture_filter_anisotropic: base_config_1.TYPE, - EXT_texture_norm16: base_config_1.TYPE, - ErrorEvent: base_config_1.TYPE_VALUE, - Event: base_config_1.TYPE_VALUE, - EventListener: base_config_1.TYPE, - EventListenerObject: base_config_1.TYPE, - EventSourceEventMap: base_config_1.TYPE, - EventSource: base_config_1.TYPE_VALUE, - EventTarget: base_config_1.TYPE_VALUE, - ExtendableEvent: base_config_1.TYPE_VALUE, - ExtendableMessageEvent: base_config_1.TYPE_VALUE, - FetchEvent: base_config_1.TYPE_VALUE, - File: base_config_1.TYPE_VALUE, - FileList: base_config_1.TYPE_VALUE, - FileReaderEventMap: base_config_1.TYPE, - FileReader: base_config_1.TYPE_VALUE, - FileReaderSync: base_config_1.TYPE_VALUE, - FileSystemDirectoryHandle: base_config_1.TYPE_VALUE, - FileSystemFileHandle: base_config_1.TYPE_VALUE, - FileSystemHandle: base_config_1.TYPE_VALUE, - FileSystemSyncAccessHandle: base_config_1.TYPE_VALUE, - FontFace: base_config_1.TYPE_VALUE, - FontFaceSetEventMap: base_config_1.TYPE, - FontFaceSet: base_config_1.TYPE_VALUE, - FontFaceSetLoadEvent: base_config_1.TYPE_VALUE, - FontFaceSource: base_config_1.TYPE, - FormData: base_config_1.TYPE_VALUE, - GenericTransformStream: base_config_1.TYPE, - Headers: base_config_1.TYPE_VALUE, - IDBCursor: base_config_1.TYPE_VALUE, - IDBCursorWithValue: base_config_1.TYPE_VALUE, - IDBDatabaseEventMap: base_config_1.TYPE, - IDBDatabase: base_config_1.TYPE_VALUE, - IDBFactory: base_config_1.TYPE_VALUE, - IDBIndex: base_config_1.TYPE_VALUE, - IDBKeyRange: base_config_1.TYPE_VALUE, - IDBObjectStore: base_config_1.TYPE_VALUE, - IDBOpenDBRequestEventMap: base_config_1.TYPE, - IDBOpenDBRequest: base_config_1.TYPE_VALUE, - IDBRequestEventMap: base_config_1.TYPE, - IDBRequest: base_config_1.TYPE_VALUE, - IDBTransactionEventMap: base_config_1.TYPE, - IDBTransaction: base_config_1.TYPE_VALUE, - IDBVersionChangeEvent: base_config_1.TYPE_VALUE, - ImageBitmap: base_config_1.TYPE_VALUE, - ImageBitmapRenderingContext: base_config_1.TYPE_VALUE, - ImageData: base_config_1.TYPE_VALUE, - KHR_parallel_shader_compile: base_config_1.TYPE, - Lock: base_config_1.TYPE_VALUE, - LockManager: base_config_1.TYPE_VALUE, - MediaCapabilities: base_config_1.TYPE_VALUE, - MessageChannel: base_config_1.TYPE_VALUE, - MessageEvent: base_config_1.TYPE_VALUE, - MessagePortEventMap: base_config_1.TYPE, - MessagePort: base_config_1.TYPE_VALUE, - NavigationPreloadManager: base_config_1.TYPE_VALUE, - NavigatorConcurrentHardware: base_config_1.TYPE, - NavigatorID: base_config_1.TYPE, - NavigatorLanguage: base_config_1.TYPE, - NavigatorLocks: base_config_1.TYPE, - NavigatorOnLine: base_config_1.TYPE, - NavigatorStorage: base_config_1.TYPE, - NotificationEventMap: base_config_1.TYPE, - Notification: base_config_1.TYPE_VALUE, - NotificationEvent: base_config_1.TYPE_VALUE, - OES_draw_buffers_indexed: base_config_1.TYPE, - OES_element_index_uint: base_config_1.TYPE, - OES_fbo_render_mipmap: base_config_1.TYPE, - OES_standard_derivatives: base_config_1.TYPE, - OES_texture_float: base_config_1.TYPE, - OES_texture_float_linear: base_config_1.TYPE, - OES_texture_half_float: base_config_1.TYPE, - OES_texture_half_float_linear: base_config_1.TYPE, - OES_vertex_array_object: base_config_1.TYPE, - OVR_multiview2: base_config_1.TYPE, - OffscreenCanvasEventMap: base_config_1.TYPE, - OffscreenCanvas: base_config_1.TYPE_VALUE, - OffscreenCanvasRenderingContext2D: base_config_1.TYPE_VALUE, - Path2D: base_config_1.TYPE_VALUE, - PerformanceEventMap: base_config_1.TYPE, - Performance: base_config_1.TYPE_VALUE, - PerformanceEntry: base_config_1.TYPE_VALUE, - PerformanceMark: base_config_1.TYPE_VALUE, - PerformanceMeasure: base_config_1.TYPE_VALUE, - PerformanceObserver: base_config_1.TYPE_VALUE, - PerformanceObserverEntryList: base_config_1.TYPE_VALUE, - PerformanceResourceTiming: base_config_1.TYPE_VALUE, - PerformanceServerTiming: base_config_1.TYPE_VALUE, - PermissionStatusEventMap: base_config_1.TYPE, - PermissionStatus: base_config_1.TYPE_VALUE, - Permissions: base_config_1.TYPE_VALUE, - ProgressEvent: base_config_1.TYPE_VALUE, - PromiseRejectionEvent: base_config_1.TYPE_VALUE, - PushEvent: base_config_1.TYPE_VALUE, - PushManager: base_config_1.TYPE_VALUE, - PushMessageData: base_config_1.TYPE_VALUE, - PushSubscription: base_config_1.TYPE_VALUE, - PushSubscriptionOptions: base_config_1.TYPE_VALUE, - RTCEncodedAudioFrame: base_config_1.TYPE_VALUE, - RTCEncodedVideoFrame: base_config_1.TYPE_VALUE, - ReadableByteStreamController: base_config_1.TYPE_VALUE, - ReadableStream: base_config_1.TYPE_VALUE, - ReadableStreamBYOBReader: base_config_1.TYPE_VALUE, - ReadableStreamBYOBRequest: base_config_1.TYPE_VALUE, - ReadableStreamDefaultController: base_config_1.TYPE_VALUE, - ReadableStreamDefaultReader: base_config_1.TYPE_VALUE, - ReadableStreamGenericReader: base_config_1.TYPE, - Request: base_config_1.TYPE_VALUE, - Response: base_config_1.TYPE_VALUE, - SecurityPolicyViolationEvent: base_config_1.TYPE_VALUE, - ServiceWorkerEventMap: base_config_1.TYPE, - ServiceWorker: base_config_1.TYPE_VALUE, - ServiceWorkerContainerEventMap: base_config_1.TYPE, - ServiceWorkerContainer: base_config_1.TYPE_VALUE, - ServiceWorkerGlobalScopeEventMap: base_config_1.TYPE, - ServiceWorkerGlobalScope: base_config_1.TYPE_VALUE, - ServiceWorkerRegistrationEventMap: base_config_1.TYPE, - ServiceWorkerRegistration: base_config_1.TYPE_VALUE, - SharedWorkerGlobalScopeEventMap: base_config_1.TYPE, - SharedWorkerGlobalScope: base_config_1.TYPE_VALUE, - StorageManager: base_config_1.TYPE_VALUE, - SubtleCrypto: base_config_1.TYPE_VALUE, - TextDecoder: base_config_1.TYPE_VALUE, - TextDecoderCommon: base_config_1.TYPE, - TextDecoderStream: base_config_1.TYPE_VALUE, - TextEncoder: base_config_1.TYPE_VALUE, - TextEncoderCommon: base_config_1.TYPE, - TextEncoderStream: base_config_1.TYPE_VALUE, - TextMetrics: base_config_1.TYPE_VALUE, - TransformStream: base_config_1.TYPE_VALUE, - TransformStreamDefaultController: base_config_1.TYPE_VALUE, - URL: base_config_1.TYPE_VALUE, - URLSearchParams: base_config_1.TYPE_VALUE, - VideoColorSpace: base_config_1.TYPE_VALUE, - WEBGL_color_buffer_float: base_config_1.TYPE, - WEBGL_compressed_texture_astc: base_config_1.TYPE, - WEBGL_compressed_texture_etc: base_config_1.TYPE, - WEBGL_compressed_texture_etc1: base_config_1.TYPE, - WEBGL_compressed_texture_s3tc: base_config_1.TYPE, - WEBGL_compressed_texture_s3tc_srgb: base_config_1.TYPE, - WEBGL_debug_renderer_info: base_config_1.TYPE, - WEBGL_debug_shaders: base_config_1.TYPE, - WEBGL_depth_texture: base_config_1.TYPE, - WEBGL_draw_buffers: base_config_1.TYPE, - WEBGL_lose_context: base_config_1.TYPE, - WEBGL_multi_draw: base_config_1.TYPE, - WebGL2RenderingContext: base_config_1.TYPE_VALUE, - WebGL2RenderingContextBase: base_config_1.TYPE, - WebGL2RenderingContextOverloads: base_config_1.TYPE, - WebGLActiveInfo: base_config_1.TYPE_VALUE, - WebGLBuffer: base_config_1.TYPE_VALUE, - WebGLContextEvent: base_config_1.TYPE_VALUE, - WebGLFramebuffer: base_config_1.TYPE_VALUE, - WebGLProgram: base_config_1.TYPE_VALUE, - WebGLQuery: base_config_1.TYPE_VALUE, - WebGLRenderbuffer: base_config_1.TYPE_VALUE, - WebGLRenderingContext: base_config_1.TYPE_VALUE, - WebGLRenderingContextBase: base_config_1.TYPE, - WebGLRenderingContextOverloads: base_config_1.TYPE, - WebGLSampler: base_config_1.TYPE_VALUE, - WebGLShader: base_config_1.TYPE_VALUE, - WebGLShaderPrecisionFormat: base_config_1.TYPE_VALUE, - WebGLSync: base_config_1.TYPE_VALUE, - WebGLTexture: base_config_1.TYPE_VALUE, - WebGLTransformFeedback: base_config_1.TYPE_VALUE, - WebGLUniformLocation: base_config_1.TYPE_VALUE, - WebGLVertexArrayObject: base_config_1.TYPE_VALUE, - WebGLVertexArrayObjectOES: base_config_1.TYPE, - WebSocketEventMap: base_config_1.TYPE, - WebSocket: base_config_1.TYPE_VALUE, - WindowClient: base_config_1.TYPE_VALUE, - WindowOrWorkerGlobalScope: base_config_1.TYPE, - WorkerEventMap: base_config_1.TYPE, - Worker: base_config_1.TYPE_VALUE, - WorkerGlobalScopeEventMap: base_config_1.TYPE, - WorkerGlobalScope: base_config_1.TYPE_VALUE, - WorkerLocation: base_config_1.TYPE_VALUE, - WorkerNavigator: base_config_1.TYPE_VALUE, - WritableStream: base_config_1.TYPE_VALUE, - WritableStreamDefaultController: base_config_1.TYPE_VALUE, - WritableStreamDefaultWriter: base_config_1.TYPE_VALUE, - XMLHttpRequestEventMap: base_config_1.TYPE, - XMLHttpRequest: base_config_1.TYPE_VALUE, - XMLHttpRequestEventTargetEventMap: base_config_1.TYPE, - XMLHttpRequestEventTarget: base_config_1.TYPE_VALUE, - XMLHttpRequestUpload: base_config_1.TYPE_VALUE, - Console: base_config_1.TYPE, - WebAssembly: base_config_1.TYPE_VALUE, - FrameRequestCallback: base_config_1.TYPE, - LockGrantedCallback: base_config_1.TYPE, - OnErrorEventHandlerNonNull: base_config_1.TYPE, - PerformanceObserverCallback: base_config_1.TYPE, - QueuingStrategySize: base_config_1.TYPE, - TransformerFlushCallback: base_config_1.TYPE, - TransformerStartCallback: base_config_1.TYPE, - TransformerTransformCallback: base_config_1.TYPE, - UnderlyingSinkAbortCallback: base_config_1.TYPE, - UnderlyingSinkCloseCallback: base_config_1.TYPE, - UnderlyingSinkStartCallback: base_config_1.TYPE, - UnderlyingSinkWriteCallback: base_config_1.TYPE, - UnderlyingSourceCancelCallback: base_config_1.TYPE, - UnderlyingSourcePullCallback: base_config_1.TYPE, - UnderlyingSourceStartCallback: base_config_1.TYPE, - VoidFunction: base_config_1.TYPE, - AlgorithmIdentifier: base_config_1.TYPE, - BigInteger: base_config_1.TYPE, - BinaryData: base_config_1.TYPE, - BlobPart: base_config_1.TYPE, - BodyInit: base_config_1.TYPE, - BufferSource: base_config_1.TYPE, - CanvasImageSource: base_config_1.TYPE, - DOMHighResTimeStamp: base_config_1.TYPE, - EpochTimeStamp: base_config_1.TYPE, - EventListenerOrEventListenerObject: base_config_1.TYPE, - Float32List: base_config_1.TYPE, - FormDataEntryValue: base_config_1.TYPE, - GLbitfield: base_config_1.TYPE, - GLboolean: base_config_1.TYPE, - GLclampf: base_config_1.TYPE, - GLenum: base_config_1.TYPE, - GLfloat: base_config_1.TYPE, - GLint: base_config_1.TYPE, - GLint64: base_config_1.TYPE, - GLintptr: base_config_1.TYPE, - GLsizei: base_config_1.TYPE, - GLsizeiptr: base_config_1.TYPE, - GLuint: base_config_1.TYPE, - GLuint64: base_config_1.TYPE, - HashAlgorithmIdentifier: base_config_1.TYPE, - HeadersInit: base_config_1.TYPE, - IDBValidKey: base_config_1.TYPE, - ImageBitmapSource: base_config_1.TYPE, - Int32List: base_config_1.TYPE, - MessageEventSource: base_config_1.TYPE, - NamedCurve: base_config_1.TYPE, - OffscreenRenderingContext: base_config_1.TYPE, - OnErrorEventHandler: base_config_1.TYPE, - PerformanceEntryList: base_config_1.TYPE, - PushMessageDataInit: base_config_1.TYPE, - ReadableStreamController: base_config_1.TYPE, - ReadableStreamReadResult: base_config_1.TYPE, - ReadableStreamReader: base_config_1.TYPE, - RequestInfo: base_config_1.TYPE, - TexImageSource: base_config_1.TYPE, - TimerHandler: base_config_1.TYPE, - Transferable: base_config_1.TYPE, - Uint32List: base_config_1.TYPE, - VibratePattern: base_config_1.TYPE, - XMLHttpRequestBodyInit: base_config_1.TYPE, - BinaryType: base_config_1.TYPE, - CanvasDirection: base_config_1.TYPE, - CanvasFillRule: base_config_1.TYPE, - CanvasFontKerning: base_config_1.TYPE, - CanvasFontStretch: base_config_1.TYPE, - CanvasFontVariantCaps: base_config_1.TYPE, - CanvasLineCap: base_config_1.TYPE, - CanvasLineJoin: base_config_1.TYPE, - CanvasTextAlign: base_config_1.TYPE, - CanvasTextBaseline: base_config_1.TYPE, - CanvasTextRendering: base_config_1.TYPE, - ClientTypes: base_config_1.TYPE, - ColorGamut: base_config_1.TYPE, - ColorSpaceConversion: base_config_1.TYPE, - DocumentVisibilityState: base_config_1.TYPE, - EndingType: base_config_1.TYPE, - FileSystemHandleKind: base_config_1.TYPE, - FontDisplay: base_config_1.TYPE, - FontFaceLoadStatus: base_config_1.TYPE, - FontFaceSetLoadStatus: base_config_1.TYPE, - FrameType: base_config_1.TYPE, - GlobalCompositeOperation: base_config_1.TYPE, - HdrMetadataType: base_config_1.TYPE, - IDBCursorDirection: base_config_1.TYPE, - IDBRequestReadyState: base_config_1.TYPE, - IDBTransactionDurability: base_config_1.TYPE, - IDBTransactionMode: base_config_1.TYPE, - ImageOrientation: base_config_1.TYPE, - ImageSmoothingQuality: base_config_1.TYPE, - KeyFormat: base_config_1.TYPE, - KeyType: base_config_1.TYPE, - KeyUsage: base_config_1.TYPE, - LockMode: base_config_1.TYPE, - MediaDecodingType: base_config_1.TYPE, - MediaEncodingType: base_config_1.TYPE, - NotificationDirection: base_config_1.TYPE, - NotificationPermission: base_config_1.TYPE, - OffscreenRenderingContextId: base_config_1.TYPE, - PermissionName: base_config_1.TYPE, - PermissionState: base_config_1.TYPE, - PredefinedColorSpace: base_config_1.TYPE, - PremultiplyAlpha: base_config_1.TYPE, - PushEncryptionKeyName: base_config_1.TYPE, - RTCEncodedVideoFrameType: base_config_1.TYPE, - ReadableStreamReaderMode: base_config_1.TYPE, - ReadableStreamType: base_config_1.TYPE, - ReferrerPolicy: base_config_1.TYPE, - RequestCache: base_config_1.TYPE, - RequestCredentials: base_config_1.TYPE, - RequestDestination: base_config_1.TYPE, - RequestMode: base_config_1.TYPE, - RequestRedirect: base_config_1.TYPE, - ResizeQuality: base_config_1.TYPE, - ResponseType: base_config_1.TYPE, - SecurityPolicyViolationEventDisposition: base_config_1.TYPE, - ServiceWorkerState: base_config_1.TYPE, - ServiceWorkerUpdateViaCache: base_config_1.TYPE, - TransferFunction: base_config_1.TYPE, - VideoColorPrimaries: base_config_1.TYPE, - VideoMatrixCoefficients: base_config_1.TYPE, - VideoTransferCharacteristics: base_config_1.TYPE, - WebGLPowerPreference: base_config_1.TYPE, - WorkerType: base_config_1.TYPE, - XMLHttpRequestResponseType: base_config_1.TYPE, -}; -//# sourceMappingURL=webworker.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map b/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map deleted file mode 100644 index 2e05ea12..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webworker.js","sourceRoot":"","sources":["../../src/lib/webworker.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD;;;AAGvD,+CAAiD;AAEpC,QAAA,SAAS,GAAG;IACvB,uBAAuB,EAAE,kBAAI;IAC7B,YAAY,EAAE,kBAAI;IAClB,YAAY,EAAE,kBAAI;IAClB,mBAAmB,EAAE,kBAAI;IACzB,YAAY,EAAE,kBAAI;IAClB,eAAe,EAAE,kBAAI;IACrB,eAAe,EAAE,kBAAI;IACrB,SAAS,EAAE,kBAAI;IACf,kBAAkB,EAAE,kBAAI;IACxB,eAAe,EAAE,kBAAI;IACrB,iBAAiB,EAAE,kBAAI;IACvB,kBAAkB,EAAE,kBAAI;IACxB,cAA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AAkB,EAAE,kBAAI;IACxB,WAAW,EAAE,kBAAI;IACjB,eAAe,EAAE,kBAAI;IACrB,aAAa,EAAE,kBAAI;IACnB,YAAY,EAAE,kBAAI;IAClB,uCAAuC,EAAE,kBAAI;IAC7C,kBAAkB,EAAE,kBAAI;IACxB,2BAA2B,EAAE,kBAAI;IACjC,gBAAgB,EAAE,kBAAI;IACtB,mBAAmB,EAAE,kBAAI;IACzB,uBAAuB,EAAE,kBAAI;IAC7B,4BAA4B,EAAE,kBAAI;IAClC,oBAAoB,EAAE,kBAAI;IAC1B,UAAU,EAAE,kBAAI;IAChB,0BAA0B,EAAE,kBAAI;CACa,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts deleted file mode 100644 index 27d303e4..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { Referencer } from './Referencer'; -import { Visitor } from './Visitor'; -declare class ClassVisitor extends Visitor { - #private; - constructor(referencer: Referencer, node: TSESTree.ClassDeclaration | TSESTree.ClassExpression, emitDecoratorMetadata: boolean); - static visit(referencer: Referencer, node: TSESTree.ClassDeclaration | TSESTree.ClassExpression, emitDecoratorMetadata: boolean): void; - visit(node: TSESTree.Node | null | undefined): void; - protected visitClass(node: TSESTree.ClassDeclaration | TSESTree.ClassExpression): void; - protected visitPropertyDefinition(node: TSESTree.AccessorProperty | TSESTree.PropertyDefinition | TSESTree.TSAbstractAccessorProperty | TSESTree.TSAbstractPropertyDefinition): void; - protected visitFunctionParameterTypeAnnotation(node: TSESTree.Parameter, withDecorators: boolean): void; - protected visitMethodFunction(node: TSESTree.FunctionExpression, methodNode: TSESTree.MethodDefinition): void; - protected visitPropertyBase(node: TSESTree.AccessorProperty | TSESTree.PropertyDefinition | TSESTree.TSAbstractAccessorProperty | TSESTree.TSAbstractPropertyDefinition | TSESTree.TSAbstractMethodDefinition): void; - protected visitMethod(node: TSESTree.MethodDefinition): void; - protected visitType(node: TSESTree.Node | null | undefined): void; - protected visitMetadataType(node: TSESTree.TSTypeAnnotation | null | undefined, withDecorators: boolean): void; - protected AccessorProperty(node: TSESTree.AccessorProperty): void; - protected ClassBody(node: TSESTree.ClassBody): void; - protected PropertyDefinition(node: TSESTree.PropertyDefinition): void; - protected MethodDefinition(node: TSESTree.MethodDefinition): void; - protected TSAbstractAccessorProperty(node: TSESTree.TSAbstractAccessorProperty): void; - protected TSAbstractPropertyDefinition(node: TSESTree.TSAbstractPropertyDefinition): void; - protected TSAbstractMethodDefinition(node: TSESTree.TSAbstractMethodDefinition): void; - protected Identifier(node: TSESTree.Identifier): void; - protected PrivateIdentifier(): void; - protected StaticBlock(node: TSESTree.StaticBlock): void; -} -export { ClassVisitor }; -//# sourceMappingURL=ClassVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map deleted file mode 100644 index 4c8a9dc2..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/ClassVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,cAAM,YAAa,SAAQ,OAAO;;gBAM9B,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,EAC1D,qBAAqB,EAAE,OAAO;IAQ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,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAIjE,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,GAAG,IAAI;IAMnD,SAAS,CAAC,kBAAkB,CAAC,IAAI,EAAE,QAAQ,CAAC,kBAAkB,GAAG,IAAI;IAIrE,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAIjE,SAAS,CAAC,0BAA0B,CAClC,IAAI,EAAE,QAAQ,CAAC,0BAA0B,GACxC,IAAI;IAIP,SAAS,CAAC,4BAA4B,CACpC,IAAI,EAAE,QAAQ,CAAC,4BAA4B,GAC1C,IAAI;IAIP,SAAS,CAAC,0BAA0B,CAClC,IAAI,EAAE,QAAQ,CAAC,0BAA0B,GACxC,IAAI;IAIP,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;IAIrD,SAAS,CAAC,iBAAiB,IAAI,IAAI;IAInC,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,WAAW,GAAG,IAAI;CAOxD;AAsCD,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js b/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js deleted file mode 100644 index 524719fa..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +++ /dev/null @@ -1,329 +0,0 @@ -"use strict"; -var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -}; -var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _ClassVisitor_classNode, _ClassVisitor_referencer, _ClassVisitor_emitDecoratorMetadata; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ClassVisitor = void 0; -const types_1 = require("@typescript-eslint/types"); -const definition_1 = require("../definition"); -const TypeVisitor_1 = require("./TypeVisitor"); -const Visitor_1 = require("./Visitor"); -class ClassVisitor extends Visitor_1.Visitor { - constructor(referencer, node, emitDecoratorMetadata) { - super(referencer); - _ClassVisitor_classNode.set(this, void 0); - _ClassVisitor_referencer.set(this, void 0); - _ClassVisitor_emitDecoratorMetadata.set(this, void 0); - __classPrivateFieldSet(this, _ClassVisitor_referencer, referencer, "f"); - __classPrivateFieldSet(this, _ClassVisitor_classNode, node, "f"); - __classPrivateFieldSet(this, _ClassVisitor_emitDecoratorMetadata, emitDecoratorMetadata, "f"); - } - static visit(referencer, node, emitDecoratorMetadata) { - const classVisitor = new ClassVisitor(referencer, node, emitDecoratorMetadata); - classVisitor.visitClass(node); - } - visit(node) { - // make sure we only handle the nodes we are designed to handle - if (node && node.type in this) { - super.visit(node); - } - else { - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").visit(node); - } - } - /////////////////// - // Visit helpers // - /////////////////// - visitClass(node) { - var _a, _b; - if (node.type === types_1.AST_NODE_TYPES.ClassDeclaration && node.id) { - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f") - .currentScope() - .defineIdentifier(node.id, new definition_1.ClassNameDefinition(node.id, node)); - } - (_a = node.decorators) === null || _a === void 0 ? void 0 : _a.forEach(d => __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").visit(d)); - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").scopeManager.nestClassScope(node); - if (node.id) { - // define the class name again inside the new scope - // references to the class should not resolve directly to the parent class - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f") - .currentScope() - .defineIdentifier(node.id, new definition_1.ClassNameDefinition(node.id, node)); - } - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").visit(node.superClass); - // visit the type param declarations - this.visitType(node.typeParameters); - // then the usages - this.visitType(node.superTypeParameters); - (_b = node.implements) === null || _b === void 0 ? void 0 : _b.forEach(imp => this.visitType(imp)); - this.visit(node.body); - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").close(node); - } - visitPropertyDefinition(node) { - this.visitPropertyBase(node); - /** - * class A { - * @meta // <--- check this - * foo: Type; - * } - */ - this.visitMetadataType(node.typeAnnotation, !!node.decorators); - } - visitFunctionParameterTypeAnnotation(node, withDecorators) { - if ('typeAnnotation' in node) { - this.visitMetadataType(node.typeAnnotation, withDecorators); - } - else if (node.type === types_1.AST_NODE_TYPES.AssignmentPattern) { - this.visitMetadataType(node.left.typeAnnotation, withDecorators); - } - else if (node.type === types_1.AST_NODE_TYPES.TSParameterProperty) { - this.visitFunctionParameterTypeAnnotation(node.parameter, withDecorators); - } - } - visitMethodFunction(node, methodNode) { - var _a, _b; - if (node.id) { - // FunctionExpression with name creates its special scope; - // FunctionExpressionNameScope. - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").scopeManager.nestFunctionExpressionNameScope(node); - } - // Consider this function is in the MethodDefinition. - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").scopeManager.nestFunctionScope(node, true); - /** - * class A { - * @meta // <--- check this - * foo(a: Type) {} - * - * @meta // <--- check this - * foo(): Type {} - * } - */ - let withMethodDecorators = !!methodNode.decorators; - /** - * class A { - * foo( - * @meta // <--- check this - * a: Type - * ) {} - * - * set foo( - * @meta // <--- EXCEPT this. TS do nothing for this - * a: Type - * ) {} - * } - */ - withMethodDecorators = - withMethodDecorators || - (methodNode.kind !== 'set' && - node.params.some(param => param.decorators)); - if (!withMethodDecorators && methodNode.kind === 'set') { - const keyName = getLiteralMethodKeyName(methodNode); - /** - * class A { - * @meta // <--- check this - * get a() {} - * set ['a'](v: Type) {} - * } - */ - if (keyName != null && - ((_a = __classPrivateFieldGet(this, _ClassVisitor_classNode, "f").body.body.find((node) => node !== methodNode && - node.type === types_1.AST_NODE_TYPES.MethodDefinition && - // Node must both be static or not - node.static === methodNode.static && - getLiteralMethodKeyName(node) === keyName)) === null || _a === void 0 ? void 0 : _a.decorators)) { - withMethodDecorators = true; - } - } - /** - * @meta // <--- check this - * class A { - * constructor(a: Type) {} - * } - */ - if (!withMethodDecorators && - methodNode.kind === 'constructor' && - __classPrivateFieldGet(this, _ClassVisitor_classNode, "f").decorators) { - withMethodDecorators = true; - } - // Process parameter declarations. - for (const param of node.params) { - this.visitPattern(param, (pattern, info) => { - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f") - .currentScope() - .defineIdentifier(pattern, new definition_1.ParameterDefinition(pattern, node, info.rest)); - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").referencingDefaultValue(pattern, info.assignments, null, true); - }, { processRightHandNodes: true }); - this.visitFunctionParameterTypeAnnotation(param, withMethodDecorators); - (_b = param.decorators) === null || _b === void 0 ? void 0 : _b.forEach(d => this.visit(d)); - } - this.visitMetadataType(node.returnType, withMethodDecorators); - this.visitType(node.typeParameters); - // In TypeScript there are a number of function-like constructs which have no body, - // so check it exists before traversing - if (node.body) { - // Skip BlockStatement to prevent creating BlockStatement scope. - if (node.body.type === types_1.AST_NODE_TYPES.BlockStatement) { - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").visitChildren(node.body); - } - else { - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").visit(node.body); - } - } - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").close(node); - } - visitPropertyBase(node) { - var _a; - if (node.computed) { - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").visit(node.key); - } - if (node.value) { - if (node.type === types_1.AST_NODE_TYPES.PropertyDefinition || - node.type === types_1.AST_NODE_TYPES.AccessorProperty) { - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").scopeManager.nestClassFieldInitializerScope(node.value); - } - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").visit(node.value); - if (node.type === types_1.AST_NODE_TYPES.PropertyDefinition || - node.type === types_1.AST_NODE_TYPES.AccessorProperty) { - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").close(node.value); - } - } - if ('decorators' in node) { - (_a = node.decorators) === null || _a === void 0 ? void 0 : _a.forEach(d => __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").visit(d)); - } - } - visitMethod(node) { - var _a; - if (node.computed) { - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").visit(node.key); - } - if (node.value.type === types_1.AST_NODE_TYPES.FunctionExpression) { - this.visitMethodFunction(node.value, node); - } - else { - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").visit(node.value); - } - if ('decorators' in node) { - (_a = node.decorators) === null || _a === void 0 ? void 0 : _a.forEach(d => __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").visit(d)); - } - } - visitType(node) { - if (!node) { - return; - } - TypeVisitor_1.TypeVisitor.visit(__classPrivateFieldGet(this, _ClassVisitor_referencer, "f"), node); - } - visitMetadataType(node, withDecorators) { - if (!node) { - return; - } - // emit decorators metadata only work for TSTypeReference in ClassDeclaration - if (__classPrivateFieldGet(this, _ClassVisitor_classNode, "f").type === types_1.AST_NODE_TYPES.ClassDeclaration && - !__classPrivateFieldGet(this, _ClassVisitor_classNode, "f").declare && - node.typeAnnotation.type === types_1.AST_NODE_TYPES.TSTypeReference && - __classPrivateFieldGet(this, _ClassVisitor_emitDecoratorMetadata, "f")) { - let entityName; - if (node.typeAnnotation.typeName.type === types_1.AST_NODE_TYPES.TSQualifiedName) { - let iter = node.typeAnnotation.typeName; - while (iter.left.type === types_1.AST_NODE_TYPES.TSQualifiedName) { - iter = iter.left; - } - entityName = iter.left; - } - else { - entityName = node.typeAnnotation.typeName; - } - if (withDecorators) { - if (entityName.type === types_1.AST_NODE_TYPES.Identifier) { - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").currentScope().referenceDualValueType(entityName); - } - if (node.typeAnnotation.typeParameters) { - this.visitType(node.typeAnnotation.typeParameters); - } - // everything is handled now - return; - } - } - this.visitType(node); - } - ///////////////////// - // Visit selectors // - ///////////////////// - AccessorProperty(node) { - this.visitPropertyDefinition(node); - } - ClassBody(node) { - // this is here on purpose so that this visitor explicitly declares visitors - // for all nodes it cares about (see the instance visit method above) - this.visitChildren(node); - } - PropertyDefinition(node) { - this.visitPropertyDefinition(node); - } - MethodDefinition(node) { - this.visitMethod(node); - } - TSAbstractAccessorProperty(node) { - this.visitPropertyDefinition(node); - } - TSAbstractPropertyDefinition(node) { - this.visitPropertyDefinition(node); - } - TSAbstractMethodDefinition(node) { - this.visitPropertyBase(node); - } - Identifier(node) { - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").visit(node); - } - PrivateIdentifier() { - // intentionally skip - } - StaticBlock(node) { - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").scopeManager.nestClassStaticBlockScope(node); - node.body.forEach(b => this.visit(b)); - __classPrivateFieldGet(this, _ClassVisitor_referencer, "f").close(node); - } -} -exports.ClassVisitor = ClassVisitor; -_ClassVisitor_classNode = new WeakMap(), _ClassVisitor_referencer = new WeakMap(), _ClassVisitor_emitDecoratorMetadata = new WeakMap(); -/** - * Only if key is one of [identifier, string, number], ts will combine metadata of accessors . - * class A { - * get a() {} - * set ['a'](v: Type) {} - * - * get [1]() {} - * set [1](v: Type) {} - * - * // Following won't be combined - * get [key]() {} - * set [key](v: Type) {} - * - * get [true]() {} - * set [true](v: Type) {} - * - * get ['a'+'b']() {} - * set ['a'+'b']() {} - * } - */ -function getLiteralMethodKeyName(node) { - if (node.computed && node.key.type === types_1.AST_NODE_TYPES.Literal) { - if (typeof node.key.value === 'string' || - typeof node.key.value === 'number') { - return node.key.value; - } - } - else if (!node.computed && node.key.type === types_1.AST_NODE_TYPES.Identifier) { - return node.key.name; - } - return null; -} -//# sourceMappingURL=ClassVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map deleted file mode 100644 index 03726621..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassVisitor.js","sourceRoot":"","sources":["../../src/referencer/ClassVisitor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAyE;AAEzE,+CAA4C;AAC5C,uCAAoC;AAEpC,MAAM,YAAa,SAAQ,iBAAO;IAKhC,YACE,UAAsB,EACtB,IAA0D,EAC1D,qBAA8B;QAE9B,KAAK,CAAC,UAAU,CAAC,CAAC;QATX,0CAAiE;QACjE,2CAAwB;QACxB,sDAAgC;QAQvC,uBAAA,IAAI,4BAAe,UAAU,MAAA,CAAC;QAC9B,uBAAA,IAAI,2BAAc,IAAI,MAAA,CAAC;QACvB,uBAAA,IAAI,uCAA0B,qBAAqB,MAAA,CAAC;IACtD,CAAC;IAED,MAAM,CAAC,KAAK,CACV,UAAsB,EACtB,IAA0D,EAC1D,qBAA8B;QAE9B,MAAM,YAAY,GAAG,IAAI,YAAY,CACnC,UAAU,EACV,IAAI,EACJ,qBAAqB,CACtB,CAAC;QACF,YAAY,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;IAED,KAAK,CAAC,IAAsC;QAC1C,+DAA+D;QAC/D,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YAC7B,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;SACnB;aAAM;YACL,uBAAA,IAAI,gCAAY,CAAC,KAAK,CAAC,IAAI,CAAC,C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AAC,GAAG,CAAC,KAAK,CAAC;SACvB;KACF;SAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAAE;QACxE,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;KACtB;IACD,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts deleted file mode 100644 index 8d09c2ae..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { Referencer } from './Referencer'; -import { Visitor } from './Visitor'; -type ExportNode = TSESTree.ExportAllDeclaration | TSESTree.ExportDefaultDeclaration | TSESTree.ExportNamedDeclaration; -declare class ExportVisitor extends Visitor { - #private; - constructor(node: ExportNode, referencer: Referencer); - static visit(referencer: Referencer, node: ExportNode): void; - protected Identifier(node: TSESTree.Identifier): void; - protected ExportDefaultDeclaration(node: TSESTree.ExportDefaultDeclaration): void; - protected ExportNamedDeclaration(node: TSESTree.ExportNamedDeclaration): void; - protected ExportSpecifier(node: TSESTree.ExportSpecifier): void; -} -export { ExportVisitor }; -//# sourceMappingURL=ExportVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map deleted file mode 100644 index 47a0fc6e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ExportVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/ExportVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,KAAK,UAAU,GACX,QAAQ,CAAC,oBAAoB,GAC7B,QAAQ,CAAC,wBAAwB,GACjC,QAAQ,CAAC,sBAAsB,CAAC;AAEpC,cAAM,aAAc,SAAQ,OAAO;;gBAIrB,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAMpD,MAAM,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,GAAG,IAAI;IAK5D,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;IAUrD,SAAS,CAAC,wBAAwB,CAChC,IAAI,EAAE,QAAQ,CAAC,wBAAwB,GACtC,IAAI;IAaP,SAAS,CAAC,sBAAsB,CAC9B,IAAI,EAAE,QAAQ,CAAC,sBAAsB,GACpC,IAAI;IAgBP,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;CAYhE;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js b/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js deleted file mode 100644 index d3c5a15f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js +++ /dev/null @@ -1,84 +0,0 @@ -"use strict"; -var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -}; -var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _ExportVisitor_referencer, _ExportVisitor_exportNode; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ExportVisitor = void 0; -const types_1 = require("@typescript-eslint/types"); -const Visitor_1 = require("./Visitor"); -class ExportVisitor extends Visitor_1.Visitor { - constructor(node, referencer) { - super(referencer); - _ExportVisitor_referencer.set(this, void 0); - _ExportVisitor_exportNode.set(this, void 0); - __classPrivateFieldSet(this, _ExportVisitor_exportNode, node, "f"); - __classPrivateFieldSet(this, _ExportVisitor_referencer, referencer, "f"); - } - static visit(referencer, node) { - const exportReferencer = new ExportVisitor(node, referencer); - exportReferencer.visit(node); - } - Identifier(node) { - if (__classPrivateFieldGet(this, _ExportVisitor_exportNode, "f").exportKind === 'type') { - // export type { T }; - // type exports can only reference types - __classPrivateFieldGet(this, _ExportVisitor_referencer, "f").currentScope().referenceType(node); - } - else { - __classPrivateFieldGet(this, _ExportVisitor_referencer, "f").currentScope().referenceDualValueType(node); - } - } - ExportDefaultDeclaration(node) { - if (node.declaration.type === types_1.AST_NODE_TYPES.Identifier) { - // export default A; - // this could be a type or a variable - this.visit(node.declaration); - } - else { - // export const a = 1; - // export something(); - // etc - // these not included in the scope of this visitor as they are all guaranteed to be values or declare variables - } - } - ExportNamedDeclaration(node) { - if (node.source) { - // export ... from 'foo'; - // these are external identifiers so there shouldn't be references or defs - return; - } - if (!node.declaration) { - // export { x }; - this.visitChildren(node); - } - else { - // export const x = 1; - // this is not included in the scope of this visitor as it creates a variable - } - } - ExportSpecifier(node) { - if (node.exportKind === 'type') { - // export { type T }; - // type exports can only reference types - // - // we can't let this fall through to the Identifier selector because the exportKind is on this node - // and we don't have access to the `.parent` during scope analysis - __classPrivateFieldGet(this, _ExportVisitor_referencer, "f").currentScope().referenceType(node.local); - } - else { - this.visit(node.local); - } - } -} -exports.ExportVisitor = ExportVisitor; -_ExportVisitor_referencer = new WeakMap(), _ExportVisitor_exportNode = new WeakMap(); -//# sourceMappingURL=ExportVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map deleted file mode 100644 index 8b90cf2a..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ExportVisitor.js","sourceRoot":"","sources":["../../src/referencer/ExportVisitor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,oDAA0D;AAG1D,uCAAoC;AAOpC,MAAM,aAAc,SAAQ,iBAAO;IAIjC,YAAY,IAAgB,EAAE,UAAsB;QAClD,KAAK,CAAC,UAAU,CAAC,CAAC;QAJX,4CAAwB;QACxB,4CAAwB;QAI/B,uBAAA,IAAI,6BAAe,IAAI,MAAA,CAAC;QACxB,uBAAA,IAAI,6BAAe,UAAU,MAAA,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,UAAsB,EAAE,IAAgB;QACnD,MAAM,gBAAgB,GAAG,IAAI,aAAa,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7D,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAES,UAAU,CAAC,IAAyB;QAC5C,IAAI,uBAAA,IAAI,iCAAY,CAAC,UAAU,KAAK,MAAM,EAAE;YAC1C,qBAAqB;YACrB,wCAAwC;YACxC,uBAAA,IAAI,iCAAY,CAAC,YAAY,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;SACrD;aAAM;YACL,uBAAA,IAAI,iCAAY,CAAC,YAAY,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;SAC9D;IACH,CAAC;IAES,wBAAwB,CAChC,IAAuC;QAEvC,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAAE;YACvD,oBAAoB;YACpB,qCAAqC;YACrC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SAC9B;aAAM;YACL,sBAAsB;YACtB,sBAAsB;YACtB,MAAM;YACN,+GAA+G;SAChH;IACH,CAAC;IAES,sBAAsB,CAC9B,IAAqC;QAErC,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,yBAAyB;YACzB,0EAA0E;YAC1E,OAAO;SACR;QAED,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACrB,gBAAgB;YAChB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;SAC1B;aAAM;YACL,sBAAsB;YACtB,6EAA6E;SAC9E;IACH,CAAC;IAES,eAAe,CAAC,IAA8B;QACtD,IAAI,IAAI,CAAC,UAAU,KAAK,MAAM,EAAE;YAC9B,qBAAqB;YACrB,wCAAwC;YACxC,EAAE;YACF,mGAAmG;YACnG,kEAAkE;YAClE,uBAAA,IAAI,iCAAY,CAAC,YAAY,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC3D;aAAM;YACL,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACxB;IACH,CAAC;CACF;AAEQ,sCAAa"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts deleted file mode 100644 index 78d1efc3..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { Referencer } from './Referencer'; -import { Visitor } from './Visitor'; -declare class ImportVisitor extends Visitor { - #private; - constructor(declaration: TSESTree.ImportDeclaration, referencer: Referencer); - static visit(referencer: Referencer, declaration: TSESTree.ImportDeclaration): void; - protected visitImport(id: TSESTree.Identifier, specifier: TSESTree.ImportDefaultSpecifier | TSESTree.ImportNamespaceSpecifier | TSESTree.ImportSpecifier): void; - protected ImportNamespaceSpecifier(node: TSESTree.ImportNamespaceSpecifier): void; - protected ImportDefaultSpecifier(node: TSESTree.ImportDefaultSpecifier): void; - protected ImportSpecifier(node: TSESTree.ImportSpecifier): void; -} -export { ImportVisitor }; -//# sourceMappingURL=ImportVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map deleted file mode 100644 index 7c8c5cff..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ImportVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/ImportVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,cAAM,aAAc,SAAQ,OAAO;;gBAIrB,WAAW,EAAE,QAAQ,CAAC,iBAAiB,EAAE,UAAU,EAAE,UAAU;IAM3E,MAAM,CAAC,KAAK,CACV,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,QAAQ,CAAC,iBAAiB,GACtC,IAAI;IAKP,SAAS,CAAC,WAAW,CACnB,EAAE,EAAE,QAAQ,CAAC,UAAU,EACvB,SAAS,EACL,QAAQ,CAAC,sBAAsB,GAC/B,QAAQ,CAAC,wBAAwB,GACjC,QAAQ,CAAC,eAAe,GAC3B,IAAI;IASP,SAAS,CAAC,wBAAwB,CAChC,IAAI,EAAE,QAAQ,CAAC,wBAAwB,GACtC,IAAI;IAKP,SAAS,CAAC,sBAAsB,CAC9B,IAAI,EAAE,QAAQ,CAAC,sBAAsB,GACpC,IAAI;IAKP,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;CAIhE;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js b/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js deleted file mode 100644 index 7f494b28..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -}; -var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _ImportVisitor_declaration, _ImportVisitor_referencer; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ImportVisitor = void 0; -const definition_1 = require("../definition"); -const Visitor_1 = require("./Visitor"); -class ImportVisitor extends Visitor_1.Visitor { - constructor(declaration, referencer) { - super(referencer); - _ImportVisitor_declaration.set(this, void 0); - _ImportVisitor_referencer.set(this, void 0); - __classPrivateFieldSet(this, _ImportVisitor_declaration, declaration, "f"); - __classPrivateFieldSet(this, _ImportVisitor_referencer, referencer, "f"); - } - static visit(referencer, declaration) { - const importReferencer = new ImportVisitor(declaration, referencer); - importReferencer.visit(declaration); - } - visitImport(id, specifier) { - __classPrivateFieldGet(this, _ImportVisitor_referencer, "f") - .currentScope() - .defineIdentifier(id, new definition_1.ImportBindingDefinition(id, specifier, __classPrivateFieldGet(this, _ImportVisitor_declaration, "f"))); - } - ImportNamespaceSpecifier(node) { - const local = node.local; - this.visitImport(local, node); - } - ImportDefaultSpecifier(node) { - const local = node.local; - this.visitImport(local, node); - } - ImportSpecifier(node) { - const local = node.local; - this.visitImport(local, node); - } -} -exports.ImportVisitor = ImportVisitor; -_ImportVisitor_declaration = new WeakMap(), _ImportVisitor_referencer = new WeakMap(); -//# sourceMappingURL=ImportVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map deleted file mode 100644 index e9172759..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ImportVisitor.js","sourceRoot":"","sources":["../../src/referencer/ImportVisitor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,8CAAwD;AAExD,uCAAoC;AAEpC,MAAM,aAAc,SAAQ,iBAAO;IAIjC,YAAY,WAAuC,EAAE,UAAsB;QACzE,KAAK,CAAC,UAAU,CAAC,CAAC;QAJX,6CAAyC;QACzC,4CAAwB;QAI/B,uBAAA,IAAI,8BAAgB,WAAW,MAAA,CAAC;QAChC,uBAAA,IAAI,6BAAe,UAAU,MAAA,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,KAAK,CACV,UAAsB,EACtB,WAAuC;QAEvC,MAAM,gBAAgB,GAAG,IAAI,aAAa,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QACpE,gBAAgB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;IAES,WAAW,CACnB,EAAuB,EACvB,SAG4B;QAE5B,uBAAA,IAAI,iCAAY;aACb,YAAY,EAAE;aACd,gBAAgB,CACf,EAAE,EACF,IAAI,oCAAuB,CAAC,EAAE,EAAE,SAAS,EAAE,uBAAA,IAAI,kCAAa,CAAC,CAC9D,CAAC;IACN,CAAC;IAES,wBAAwB,CAChC,IAAuC;QAEvC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAChC,CAAC;IAES,sBAAsB,CAC9B,IAAqC;QAErC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAChC,CAAC;IAES,eAAe,CAAC,IAA8B;QACtD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACzB,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAChC,CAAC;CACF;AAEQ,sCAAa"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts deleted file mode 100644 index c683eb1d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { VisitorOptions } from './VisitorBase'; -import { VisitorBase } from './VisitorBase'; -type PatternVisitorCallback = (pattern: TSESTree.Identifier, info: { - assignments: (TSESTree.AssignmentPattern | TSESTree.AssignmentExpression)[]; - rest: boolean; - topLevel: boolean; -}) => void; -type PatternVisitorOptions = VisitorOptions; -declare class PatternVisitor extends VisitorBase { - #private; - static isPattern(node: TSESTree.Node): node is TSESTree.Identifier | TSESTree.ObjectPattern | TSESTree.ArrayPattern | TSESTree.SpreadElement | TSESTree.RestElement | TSESTree.AssignmentPattern; - readonly rightHandNodes: TSESTree.Node[]; - constructor(options: PatternVisitorOptions, rootPattern: TSESTree.Node, callback: PatternVisitorCallback); - protected ArrayExpression(node: TSESTree.ArrayExpression): void; - protected ArrayPattern(pattern: TSESTree.ArrayPattern): void; - protected AssignmentExpression(node: TSESTree.AssignmentExpression): void; - protected AssignmentPattern(pattern: TSESTree.AssignmentPattern): void; - protected CallExpression(node: TSESTree.CallExpression): void; - protected Decorator(): void; - protected Identifier(pattern: TSESTree.Identifier): void; - protected MemberExpression(node: TSESTree.MemberExpression): void; - protected Property(property: TSESTree.Property): void; - protected RestElement(pattern: TSESTree.RestElement): void; - protected SpreadElement(node: TSESTree.SpreadElement): void; - protected TSTypeAnnotation(): void; -} -export { PatternVisitor, PatternVisitorCallback, PatternVisitorOptions }; -//# sourceMappingURL=PatternVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map deleted file mode 100644 index 0cd822fa..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PatternVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/PatternVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,KAAK,sBAAsB,GAAG,CAC5B,OAAO,EAAE,QAAQ,CAAC,UAAU,EAC5B,IAAI,EAAE;IACJ,WAAW,EAAE,CAAC,QAAQ,CAAC,iBAAiB,GAAG,QAAQ,CAAC,oBAAoB,CAAC,EAA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AQ,CAAC,WAAW,GAAG,IAAI;IAM1D,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI;IAI3D,SAAS,CAAC,gBAAgB,IAAI,IAAI;CAGnC;AAED,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js b/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js deleted file mode 100644 index 2785dcfe..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +++ /dev/null @@ -1,109 +0,0 @@ -"use strict"; -var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -}; -var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _PatternVisitor_rootPattern, _PatternVisitor_callback, _PatternVisitor_assignments, _PatternVisitor_restElements; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PatternVisitor = void 0; -const types_1 = require("@typescript-eslint/types"); -const VisitorBase_1 = require("./VisitorBase"); -class PatternVisitor extends VisitorBase_1.VisitorBase { - static isPattern(node) { - const nodeType = node.type; - return (nodeType === types_1.AST_NODE_TYPES.Identifier || - nodeType === types_1.AST_NODE_TYPES.ObjectPattern || - nodeType === types_1.AST_NODE_TYPES.ArrayPattern || - nodeType === types_1.AST_NODE_TYPES.SpreadElement || - nodeType === types_1.AST_NODE_TYPES.RestElement || - nodeType === types_1.AST_NODE_TYPES.AssignmentPattern); - } - constructor(options, rootPattern, callback) { - super(options); - _PatternVisitor_rootPattern.set(this, void 0); - _PatternVisitor_callback.set(this, void 0); - _PatternVisitor_assignments.set(this, []); - this.rightHandNodes = []; - _PatternVisitor_restElements.set(this, []); - __classPrivateFieldSet(this, _PatternVisitor_rootPattern, rootPattern, "f"); - __classPrivateFieldSet(this, _PatternVisitor_callback, callback, "f"); - } - ArrayExpression(node) { - node.elements.forEach(this.visit, this); - } - ArrayPattern(pattern) { - for (const element of pattern.elements) { - this.visit(element); - } - } - AssignmentExpression(node) { - __classPrivateFieldGet(this, _PatternVisitor_assignments, "f").push(node); - this.visit(node.left); - this.rightHandNodes.push(node.right); - __classPrivateFieldGet(this, _PatternVisitor_assignments, "f").pop(); - } - AssignmentPattern(pattern) { - __classPrivateFieldGet(this, _PatternVisitor_assignments, "f").push(pattern); - this.visit(pattern.left); - this.rightHandNodes.push(pattern.right); - __classPrivateFieldGet(this, _PatternVisitor_assignments, "f").pop(); - } - CallExpression(node) { - // arguments are right hand nodes. - node.arguments.forEach(a => { - this.rightHandNodes.push(a); - }); - this.visit(node.callee); - } - Decorator() { - // don't visit any decorators when exploring a pattern - } - Identifier(pattern) { - var _a; - const lastRestElement = (_a = __classPrivateFieldGet(this, _PatternVisitor_restElements, "f")[__classPrivateFieldGet(this, _PatternVisitor_restElements, "f").length - 1]) !== null && _a !== void 0 ? _a : null; - __classPrivateFieldGet(this, _PatternVisitor_callback, "f").call(this, pattern, { - topLevel: pattern === __classPrivateFieldGet(this, _PatternVisitor_rootPattern, "f"), - rest: lastRestElement != null && lastRestElement.argument === pattern, - assignments: __classPrivateFieldGet(this, _PatternVisitor_assignments, "f"), - }); - } - MemberExpression(node) { - // Computed property's key is a right hand node. - if (node.computed) { - this.rightHandNodes.push(node.property); - } - // the object is only read, write to its property. - this.rightHandNodes.push(node.object); - } - Property(property) { - // Computed property's key is a right hand node. - if (property.computed) { - this.rightHandNodes.push(property.key); - } - // If it's shorthand, its key is same as its value. - // If it's shorthand and has its default value, its key is same as its value.left (the value is AssignmentPattern). - // If it's not shorthand, the name of new variable is its value's. - this.visit(property.value); - } - RestElement(pattern) { - __classPrivateFieldGet(this, _PatternVisitor_restElements, "f").push(pattern); - this.visit(pattern.argument); - __classPrivateFieldGet(this, _PatternVisitor_restElements, "f").pop(); - } - SpreadElement(node) { - this.visit(node.argument); - } - TSTypeAnnotation() { - // we don't want to visit types - } -} -exports.PatternVisitor = PatternVisitor; -_PatternVisitor_rootPattern = new WeakMap(), _PatternVisitor_callback = new WeakMap(), _PatternVisitor_assignments = new WeakMap(), _PatternVisitor_restElements = new WeakMap(); -//# sourceMappingURL=PatternVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map deleted file mode 100644 index 5d203464..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PatternVisitor.js","sourceRoot":"","sources":["../../src/referencer/PatternVisitor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,oDAA0D;AAG1D,+CAA4C;AAY5C,MAAM,cAAe,SAAQ,yBAAW;IAC/B,MAAM,CAAC,SAAS,CACrB,IAAmB;QAQnB,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC;QAE3B,OAAO,CACL,QAAQ,KAAK,sBAAc,CAAC,UAAU;YACtC,QAAQ,KAAK,sBAAc,CAAC,aAAa;YACzC,QAAQ,KAAK,sBAAc,CAAC,YAAY;YACxC,QAAQ,KAAK,sBAAc,CAAC,aAAa;YACzC,QAAQ,KAAK,sBAAc,CAAC,WAAW;YACvC,QAAQ,KAAK,sBAAc,C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AC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC7B,uBAAA,IAAI,oCAAc,CAAC,GAAG,EAAE,CAAC;IAC3B,CAAC;IAES,aAAa,CAAC,IAA4B;QAClD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC5B,CAAC;IAES,gBAAgB;QACxB,+BAA+B;IACjC,CAAC;CACF;AAEQ,wCAAc"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts deleted file mode 100644 index 2ec30e3e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { Scope } from '../scope'; -import type { Variable } from '../variable'; -declare enum ReferenceFlag { - Read = 1, - Write = 2, - ReadWrite = 3 -} -interface ReferenceImplicitGlobal { - node: TSESTree.Node; - pattern: TSESTree.BindingName; - ref?: Reference; -} -declare enum ReferenceTypeFlag { - Value = 1, - Type = 2 -} -/** - * A Reference represents a single occurrence of an identifier in code. - */ -declare class Reference { - #private; - /** - * A unique ID for this instance - primarily used to help debugging and testing - */ - readonly $id: number; - /** - * Reference to the enclosing Scope. - * @public - */ - readonly from: Scope; - /** - * Identifier syntax node. - * @public - */ - readonly identifier: TSESTree.Identifier | TSESTree.JSXIdentifier; - /** - * `true` if this writing reference is a variable initializer or a default value. - * @public - */ - readonly init?: boolean; - /** - * The {@link Variable} object that this reference refers to. If such variable was not defined, this is `null`. - * @public - */ - resolved: Variable | null; - /** - * If reference is writeable, this is the node being written to it. - * @public - */ - readonly writeExpr?: TSESTree.Node | null; - readonly maybeImplicitGlobal?: ReferenceImplicitGlobal | null; - /** - * True if this reference can reference types - */ - get isTypeReference(): boolean; - /** - * True if this reference can reference values - */ - get isValueReference(): boolean; - constructor(identifier: TSESTree.Identifier | TSESTree.JSXIdentifier, scope: Scope, flag: ReferenceFlag, writeExpr?: TSESTree.Node | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean, referenceType?: ReferenceTypeFlag); - /** - * Whether the reference is writeable. - * @public - */ - isWrite(): boolean; - /** - * Whether the reference is readable. - * @public - */ - isRead(): boolean; - /** - * Whether the reference is read-only. - * @public - */ - isReadOnly(): boolean; - /** - * Whether the reference is write-only. - * @public - */ - isWriteOnly(): boolean; - /** - * Whether the reference is read-write. - * @public - */ - isReadWrite(): boolean; -} -export { Reference, ReferenceFlag, ReferenceTypeFlag, ReferenceImplicitGlobal }; -//# sourceMappingURL=Reference.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map deleted file mode 100644 index 31505e34..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Reference.d.ts","sourceRoot":"","sources":["../../src/referencer/Reference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,aAAK,aAAa;IAChB,IAAI,IAAM;IACV,KAAK,IAAM;IACX,SAAS,IAAM;CAChB;AAED,UAAU,uBAAuB;IAC/B,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;IACpB,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC;IAC9B,GAAG,CAAC,EAAE,SAAS,CAAC;CACjB;AAID,aAAK,iBAAiB;IACpB,KAAK,IAAM;IACX,IAAI,IAAM;CACX;AAED;;GAEG;AACH,cAAM,SAAS;;IACb;;OAEG;IACH,SAAgB,GAAG,EAAE,MAAM,CAAe;IAK1C;;;OAGG;IACH,SAAgB,IAAI,EAAE,KAAK,CAAC;IAC5B;;;OAGG;IACH,SAAgB,UAAU,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC;IACzE;;;OAGG;IACH,SAAgB,IAAI,CAAC,EAAE,OAAO,CAAC;IAC/B;;;OAGG;IACI,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IACjC;;;OAGG;IACH,SAAgB,SAAS,CAAC,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAEjD,SAAgB,mBAAmB,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAOrE;;OAEG;IACH,IAAW,eAAe,IAAI,OAAO,CAEpC;IAED;;OAEG;IACH,IAAW,gBAAgB,IAAI,OAAO,CAErC;gBAGC,UAAU,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,EACxD,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,aAAa,EACnB,SAAS,CAAC,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,EAChC,mBAAmB,CAAC,EAAE,uBAAuB,GAAG,IAAI,EACpD,IAAI,CAAC,EAAE,OAAO,EACd,aAAa,oBAA0B;IAgBzC;;;OAGG;IACI,OAAO,IAAI,OAAO;IAIzB;;;OAGG;IACI,MAAM,IAAI,OAAO;IAIxB;;;OAGG;IACI,UAAU,IAAI,OAAO;IAI5B;;;OAGG;IACI,WAAW,IAAI,OAAO;IAI7B;;;OAGG;IACI,WAAW,IAAI,OAAO;CAG9B;AAED,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js b/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js deleted file mode 100644 index 8db5bbbf..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js +++ /dev/null @@ -1,107 +0,0 @@ -"use strict"; -var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -}; -var _Reference_flag, _Reference_referenceType; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ReferenceTypeFlag = exports.ReferenceFlag = exports.Reference = void 0; -const ID_1 = require("../ID"); -var ReferenceFlag; -(function (ReferenceFlag) { - ReferenceFlag[ReferenceFlag["Read"] = 1] = "Read"; - ReferenceFlag[ReferenceFlag["Write"] = 2] = "Write"; - ReferenceFlag[ReferenceFlag["ReadWrite"] = 3] = "ReadWrite"; -})(ReferenceFlag || (exports.ReferenceFlag = ReferenceFlag = {})); -const generator = (0, ID_1.createIdGenerator)(); -var ReferenceTypeFlag; -(function (ReferenceTypeFlag) { - ReferenceTypeFlag[ReferenceTypeFlag["Value"] = 1] = "Value"; - ReferenceTypeFlag[ReferenceTypeFlag["Type"] = 2] = "Type"; -})(ReferenceTypeFlag || (exports.ReferenceTypeFlag = ReferenceTypeFlag = {})); -/** - * A Reference represents a single occurrence of an identifier in code. - */ -class Reference { - /** - * True if this reference can reference types - */ - get isTypeReference() { - return (__classPrivateFieldGet(this, _Reference_referenceType, "f") & ReferenceTypeFlag.Type) !== 0; - } - /** - * True if this reference can reference values - */ - get isValueReference() { - return (__classPrivateFieldGet(this, _Reference_referenceType, "f") & ReferenceTypeFlag.Value) !== 0; - } - constructor(identifier, scope, flag, writeExpr, maybeImplicitGlobal, init, referenceType = ReferenceTypeFlag.Value) { - /** - * A unique ID for this instance - primarily used to help debugging and testing - */ - this.$id = generator(); - /** - * The read-write mode of the reference. - */ - _Reference_flag.set(this, void 0); - /** - * In some cases, a reference may be a type, value or both a type and value reference. - */ - _Reference_referenceType.set(this, void 0); - this.identifier = identifier; - this.from = scope; - this.resolved = null; - __classPrivateFieldSet(this, _Reference_flag, flag, "f"); - if (this.isWrite()) { - this.writeExpr = writeExpr; - this.init = init; - } - this.maybeImplicitGlobal = maybeImplicitGlobal; - __classPrivateFieldSet(this, _Reference_referenceType, referenceType, "f"); - } - /** - * Whether the reference is writeable. - * @public - */ - isWrite() { - return !!(__classPrivateFieldGet(this, _Reference_flag, "f") & ReferenceFlag.Write); - } - /** - * Whether the reference is readable. - * @public - */ - isRead() { - return !!(__classPrivateFieldGet(this, _Reference_flag, "f") & ReferenceFlag.Read); - } - /** - * Whether the reference is read-only. - * @public - */ - isReadOnly() { - return __classPrivateFieldGet(this, _Reference_flag, "f") === ReferenceFlag.Read; - } - /** - * Whether the reference is write-only. - * @public - */ - isWriteOnly() { - return __classPrivateFieldGet(this, _Reference_flag, "f") === ReferenceFlag.Write; - } - /** - * Whether the reference is read-write. - * @public - */ - isReadWrite() { - return __classPrivateFieldGet(this, _Reference_flag, "f") === ReferenceFlag.ReadWrite; - } -} -exports.Reference = Reference; -_Reference_flag = new WeakMap(), _Reference_referenceType = new WeakMap(); -//# sourceMappingURL=Reference.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map deleted file mode 100644 index 3c57513d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3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CAAC;SAClB;QAED,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;QAC/C,uBAAA,IAAI,4BAAkB,aAAa,MAAA,CAAC;IACtC,CAAC;IAED;;;OAGG;IACI,OAAO;QACZ,OAAO,CAAC,CAAC,CAAC,uBAAA,IAAI,uBAAM,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACI,MAAM;QACX,OAAO,CAAC,CAAC,CAAC,uBAAA,IAAI,uBAAM,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IAED;;;OAGG;IACI,UAAU;QACf,OAAO,uBAAA,IAAI,uBAAM,KAAK,aAAa,CAAC,IAAI,CAAC;IAC3C,CAAC;IAED;;;OAGG;IACI,WAAW;QAChB,OAAO,uBAAA,IAAI,uBAAM,KAAK,aAAa,CAAC,KAAK,CAAC;IAC5C,CAAC;IAED;;;OAGG;IACI,WAAW;QAChB,OAAO,uBAAA,IAAI,uBAAM,KAAK,aAAa,CAAC,SAAS,CAAC;IAChD,CAAC;CACF;AAEQ,8BAAS"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts deleted file mode 100644 index 0ccf1edc..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts +++ /dev/null @@ -1,86 +0,0 @@ -import type { Lib, TSESTree } from '@typescript-eslint/types'; -import type { Scope } from '../scope'; -import type { ScopeManager } from '../ScopeManager'; -import type { ReferenceImplicitGlobal } from './Reference'; -import type { VisitorOptions } from './Visitor'; -import { Visitor } from './Visitor'; -interface ReferencerOptions extends VisitorOptions { - jsxPragma: string | null; - jsxFragmentName: string | null; - lib: Lib[]; - emitDecoratorMetadata: boolean; -} -declare class Referencer extends Visitor { - #private; - readonly scopeManager: ScopeManager; - constructor(options: ReferencerOptions, scopeManager: ScopeManager); - currentScope(): Scope; - currentScope(throwOnNull: true): Scope | null; - close(node: TSESTree.Node): void; - referencingDefaultValue(pattern: TSESTree.Identifier, assignments: (TSESTree.AssignmentExpression | TSESTree.AssignmentPattern)[], maybeImplicitGlobal: ReferenceImplicitGlobal | null, init: boolean): void; - private populateGlobalsFromLib; - /** - * Searches for a variable named "name" in the upper scopes and adds a pseudo-reference from itself to itself - */ - private referenceInSomeUpperScope; - private referenceJsxPragma; - private referenceJsxFragment; - protected visitClass(node: TSESTree.ClassDeclaration | TSESTree.ClassExpression): void; - protected visitForIn(node: TSESTree.ForInStatement | TSESTree.ForOfStatement): void; - protected visitFunctionParameterTypeAnnotation(node: TSESTree.Parameter): void; - protected visitFunction(node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.TSDeclareFunction | TSESTree.TSEmptyBodyFunctionExpression): void; - protected visitProperty(node: TSESTree.Property): void; - protected visitType(node: TSESTree.Node | null | undefined): void; - protected visitTypeAssertion(node: TSESTree.TSAsExpression | TSESTree.TSTypeAssertion | TSESTree.TSSatisfiesExpression): void; - protected ArrowFunctionExpression(node: TSESTree.ArrowFunctionExpression): void; - protected AssignmentExpression(node: TSESTree.AssignmentExpression): void; - protected BlockStatement(node: TSESTree.BlockStatement): void; - protected BreakStatement(): void; - protected CallExpression(node: TSESTree.CallExpression): void; - protected CatchClause(node: TSESTree.CatchClause): void; - protected ClassExpression(node: TSESTree.ClassExpression): void; - protected ClassDeclaration(node: TSESTree.ClassDeclaration): void; - protected ContinueStatement(): void; - protected ExportAllDeclaration(): void; - protected ExportDefaultDeclaration(node: TSESTree.ExportDefaultDeclaration): void; - protected ExportNamedDeclaration(node: TSESTree.ExportNamedDeclaration): void; - protected ForInStatement(node: TSESTree.ForInStatement): void; - protected ForOfStatement(node: TSESTree.ForOfStatement): void; - protected ForStatement(node: TSESTree.ForStatement): void; - protected FunctionDeclaration(node: TSESTree.FunctionDeclaration): void; - protected FunctionExpression(node: TSESTree.FunctionExpression): void; - protected Identifier(node: TSESTree.Identifier): void; - protected ImportDeclaration(node: TSESTree.ImportDeclaration): void; - protected JSXAttribute(node: TSESTree.JSXAttribute): void; - protected JSXClosingElement(): void; - protected JSXFragment(node: TSESTree.JSXFragment): void; - protected JSXIdentifier(node: TSESTree.JSXIdentifier): void; - protected JSXMemberExpression(node: TSESTree.JSXMemberExpression): void; - protected JSXOpeningElement(node: TSESTree.JSXOpeningElement): void; - protected LabeledStatement(node: TSESTree.LabeledStatement): void; - protected MemberExpression(node: TSESTree.MemberExpression): void; - protected MetaProperty(): void; - protected NewExpression(node: TSESTree.NewExpression): void; - protected PrivateIdentifier(): void; - protected Program(node: TSESTree.Program): void; - protected Property(node: TSESTree.Property): void; - protected SwitchStatement(node: TSESTree.SwitchStatement): void; - protected TaggedTemplateExpression(node: TSESTree.TaggedTemplateExpression): void; - protected TSAsExpression(node: TSESTree.TSAsExpression): void; - protected TSDeclareFunction(node: TSESTree.TSDeclareFunction): void; - protected TSImportEqualsDeclaration(node: TSESTree.TSImportEqualsDeclaration): void; - protected TSEmptyBodyFunctionExpression(node: TSESTree.TSEmptyBodyFunctionExpression): void; - protected TSEnumDeclaration(node: TSESTree.TSEnumDeclaration): void; - protected TSInstantiationExpression(node: TSESTree.TSInstantiationExpression): void; - protected TSInterfaceDeclaration(node: TSESTree.TSInterfaceDeclaration): void; - protected TSModuleDeclaration(node: TSESTree.TSModuleDeclaration): void; - protected TSSatisfiesExpression(node: TSESTree.TSSatisfiesExpression): void; - protected TSTypeAliasDeclaration(node: TSESTree.TSTypeAliasDeclaration): void; - protected TSTypeAssertion(node: TSESTree.TSTypeAssertion): void; - protected UpdateExpression(node: TSESTree.UpdateExpression): void; - protected VariableDeclaration(node: TSESTree.VariableDeclaration): void; - protected WithStatement(node: TSESTree.WithStatement): void; - protected ImportAttribute(): void; -} -export { Referencer, ReferencerOptions }; -//# sourceMappingURL=Referencer.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map deleted file mode 100644 index 069a706f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Referencer.d.ts","sourceRoot":"","sources":["../../src/referencer/Referencer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAe9D,OAAO,KAAK,EAAe,KAAK,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAKpD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAG3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,UAAU,iBAAkB,SAAQ,cAAc;IAChD,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,GAAG,EAAE,GAAG,EAAE,CAAC;IACX,qBAAqB,EAAE,OAAO,CAAC;CAChC;AAGD,cAAM,UAAW,SAAQ,OAAO;;IAO9B,SAAgB,YAAY,EAAE,YAAY,CAAC;gBAE/B,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,YAAY;IAS3D,YAAY,IAAI,KAAK;IACrB,YAAY,CAAC,WAAW,EAAE,IAAI,GAAG,KAAK,GAAG,IAAI;IAQ7C,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI;IAQhC,uBAAuB,CAC5B,OAAO,EAAE,QAAQ,CAAC,UAAU,EAC5B,WAAW,EAAE,CAAC,QAAQ,CAAC,oBAAoB,GAAG,QAAQ,CAAC,iBAAiB,CAAC,EAAE,EAC3E,mBAAmB,EAAE,uBAAuB,GAAG,IAAI,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G,IAAI;IA+CnE,SAAS,CAAC,yBAAyB,CACjC,IAAI,EAAE,QAAQ,CAAC,yBAAyB,GACvC,IAAI;IAKP,SAAS,CAAC,sBAAsB,CAC9B,IAAI,EAAE,QAAQ,CAAC,sBAAsB,GACpC,IAAI;IAIP,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,mBAAmB,GAAG,IAAI;IAevE,SAAS,CAAC,qBAAqB,CAAC,IAAI,EAAE,QAAQ,CAAC,qBAAqB,GAAG,IAAI;IAI3E,SAAS,CAAC,sBAAsB,CAC9B,IAAI,EAAE,QAAQ,CAAC,sBAAsB,GACpC,IAAI;IAIP,SAAS,CAAC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,GAAG,IAAI;IAI/D,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAcjE,SAAS,CAAC,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,mBAAmB,GAAG,IAAI;IAyCvE,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,aAAa,GAAG,IAAI;IAW3D,SAAS,CAAC,eAAe,IAAI,IAAI;CAGlC;AAED,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js b/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js deleted file mode 100644 index 0aed89c7..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +++ /dev/null @@ -1,547 +0,0 @@ -"use strict"; -var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -}; -var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _Referencer_jsxPragma, _Referencer_jsxFragmentName, _Referencer_hasReferencedJsxFactory, _Referencer_hasReferencedJsxFragmentFactory, _Referencer_lib, _Referencer_emitDecoratorMetadata; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Referencer = void 0; -const types_1 = require("@typescript-eslint/types"); -const assert_1 = require("../assert"); -const definition_1 = require("../definition"); -const lib_1 = require("../lib"); -const ClassVisitor_1 = require("./ClassVisitor"); -const ExportVisitor_1 = require("./ExportVisitor"); -const ImportVisitor_1 = require("./ImportVisitor"); -const PatternVisitor_1 = require("./PatternVisitor"); -const Reference_1 = require("./Reference"); -const TypeVisitor_1 = require("./TypeVisitor"); -const Visitor_1 = require("./Visitor"); -// Referencing variables and creating bindings. -class Referencer extends Visitor_1.Visitor { - constructor(options, scopeManager) { - super(options); - _Referencer_jsxPragma.set(this, void 0); - _Referencer_jsxFragmentName.set(this, void 0); - _Referencer_hasReferencedJsxFactory.set(this, false); - _Referencer_hasReferencedJsxFragmentFactory.set(this, false); - _Referencer_lib.set(this, void 0); - _Referencer_emitDecoratorMetadata.set(this, void 0); - this.scopeManager = scopeManager; - __classPrivateFieldSet(this, _Referencer_jsxPragma, options.jsxPragma, "f"); - __classPrivateFieldSet(this, _Referencer_jsxFragmentName, options.jsxFragmentName, "f"); - __classPrivateFieldSet(this, _Referencer_lib, options.lib, "f"); - __classPrivateFieldSet(this, _Referencer_emitDecoratorMetadata, options.emitDecoratorMetadata, "f"); - } - currentScope(dontThrowOnNull) { - if (!dontThrowOnNull) { - (0, assert_1.assert)(this.scopeManager.currentScope, 'aaa'); - } - return this.scopeManager.currentScope; - } - close(node) { - while (this.currentScope(true) && node === this.currentScope().block) { - this.scopeManager.currentScope = this.currentScope().close(this.scopeManager); - } - } - referencingDefaultValue(pattern, assignments, maybeImplicitGlobal, init) { - assignments.forEach(assignment => { - this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, assignment.right, maybeImplicitGlobal, init); - }); - } - populateGlobalsFromLib(globalScope) { - for (const lib of __classPrivateFieldGet(this, _Referencer_lib, "f")) { - const variables = lib_1.lib[lib]; - /* istanbul ignore if */ if (!variables) { - throw new Error(`Invalid value for lib provided: ${lib}`); - } - for (const [name, variable] of Object.entries(variables)) { - globalScope.defineImplicitVariable(name, variable); - } - } - // for const assertions (`{} as const` / `{}`) - globalScope.defineImplicitVariable('const', { - eslintImplicitGlobalSetting: 'readonly', - isTypeVariable: true, - isValueVariable: false, - }); - } - /** - * Searches for a variable named "name" in the upper scopes and adds a pseudo-reference from itself to itself - */ - referenceInSomeUpperScope(name) { - let scope = this.scopeManager.currentScope; - while (scope) { - const variable = scope.set.get(name); - if (!variable) { - scope = scope.upper; - continue; - } - scope.referenceValue(variable.identifiers[0]); - return true; - } - return false; - } - referenceJsxPragma() { - if (__classPrivateFieldGet(this, _Referencer_jsxPragma, "f") == null || __classPrivateFieldGet(this, _Referencer_hasReferencedJsxFactory, "f")) { - return; - } - __classPrivateFieldSet(this, _Referencer_hasReferencedJsxFactory, this.referenceInSomeUpperScope(__classPrivateFieldGet(this, _Referencer_jsxPragma, "f")), "f"); - } - referenceJsxFragment() { - if (__classPrivateFieldGet(this, _Referencer_jsxFragmentName, "f") == null || - __classPrivateFieldGet(this, _Referencer_hasReferencedJsxFragmentFactory, "f")) { - return; - } - __classPrivateFieldSet(this, _Referencer_hasReferencedJsxFragmentFactory, this.referenceInSomeUpperScope(__classPrivateFieldGet(this, _Referencer_jsxFragmentName, "f")), "f"); - } - /////////////////// - // Visit helpers // - /////////////////// - visitClass(node) { - ClassVisitor_1.ClassVisitor.visit(this, node, __classPrivateFieldGet(this, _Referencer_emitDecoratorMetadata, "f")); - } - visitForIn(node) { - if (node.left.type === types_1.AST_NODE_TYPES.VariableDeclaration && - node.left.kind !== 'var') { - this.scopeManager.nestForScope(node); - } - if (node.left.type === types_1.AST_NODE_TYPES.VariableDeclaration) { - this.visit(node.left); - this.visitPattern(node.left.declarations[0].id, pattern => { - this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, node.right, null, true); - }); - } - else { - this.visitPattern(node.left, (pattern, info) => { - const maybeImplicitGlobal = !this.currentScope().isStrict - ? { - pattern, - node, - } - : null; - this.referencingDefaultValue(pattern, info.assignments, maybeImplicitGlobal, false); - this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, node.right, maybeImplicitGlobal, false); - }, { processRightHandNodes: true }); - } - this.visit(node.right); - this.visit(node.body); - this.close(node); - } - visitFunctionParameterTypeAnnotation(node) { - if ('typeAnnotation' in node) { - this.visitType(node.typeAnnotation); - } - else if (node.type === types_1.AST_NODE_TYPES.AssignmentPattern) { - this.visitType(node.left.typeAnnotation); - } - else if (node.type === types_1.AST_NODE_TYPES.TSParameterProperty) { - this.visitFunctionParameterTypeAnnotation(node.parameter); - } - } - visitFunction(node) { - // FunctionDeclaration name is defined in upper scope - // NOTE: Not referring variableScope. It is intended. - // Since - // in ES5, FunctionDeclaration should be in FunctionBody. - // in ES6, FunctionDeclaration should be block scoped. - var _a; - if (node.type === types_1.AST_NODE_TYPES.FunctionExpression) { - if (node.id) { - // FunctionExpression with name creates its special scope; - // FunctionExpressionNameScope. - this.scopeManager.nestFunctionExpressionNameScope(node); - } - } - else if (node.id) { - // id is defined in upper scope - this.currentScope().defineIdentifier(node.id, new definition_1.FunctionNameDefinition(node.id, node)); - } - // Consider this function is in the MethodDefinition. - this.scopeManager.nestFunctionScope(node, false); - // Process parameter declarations. - for (const param of node.params) { - this.visitPattern(param, (pattern, info) => { - this.currentScope().defineIdentifier(pattern, new definition_1.ParameterDefinition(pattern, node, info.rest)); - this.referencingDefaultValue(pattern, info.assignments, null, true); - }, { processRightHandNodes: true }); - this.visitFunctionParameterTypeAnnotation(param); - (_a = param.decorators) === null || _a === void 0 ? void 0 : _a.forEach(d => this.visit(d)); - } - this.visitType(node.returnType); - this.visitType(node.typeParameters); - // In TypeScript there are a number of function-like constructs which have no body, - // so check it exists before traversing - if (node.body) { - // Skip BlockStatement to prevent creating BlockStatement scope. - if (node.body.type === types_1.AST_NODE_TYPES.BlockStatement) { - this.visitChildren(node.body); - } - else { - this.visit(node.body); - } - } - this.close(node); - } - visitProperty(node) { - if (node.computed) { - this.visit(node.key); - } - this.visit(node.value); - } - visitType(node) { - if (!node) { - return; - } - TypeVisitor_1.TypeVisitor.visit(this, node); - } - visitTypeAssertion(node) { - this.visit(node.expression); - this.visitType(node.typeAnnotation); - } - ///////////////////// - // Visit selectors // - ///////////////////// - ArrowFunctionExpression(node) { - this.visitFunction(node); - } - AssignmentExpression(node) { - let left = node.left; - switch (left.type) { - case types_1.AST_NODE_TYPES.TSAsExpression: - case types_1.AST_NODE_TYPES.TSTypeAssertion: - // explicitly visit the type annotation - this.visitType(left.typeAnnotation); - // intentional fallthrough - case types_1.AST_NODE_TYPES.TSNonNullExpression: - // unwrap the expression - left = left.expression; - } - if (PatternVisitor_1.PatternVisitor.isPattern(left)) { - if (node.operator === '=') { - this.visitPattern(left, (pattern, info) => { - const maybeImplicitGlobal = !this.currentScope().isStrict - ? { - pattern, - node, - } - : null; - this.referencingDefaultValue(pattern, info.assignments, maybeImplicitGlobal, false); - this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, node.right, maybeImplicitGlobal, false); - }, { processRightHandNodes: true }); - } - else if (left.type === types_1.AST_NODE_TYPES.Identifier) { - this.currentScope().referenceValue(left, Reference_1.ReferenceFlag.ReadWrite, node.right); - } - } - else { - this.visit(left); - } - this.visit(node.right); - } - BlockStatement(node) { - if (this.scopeManager.isES6()) { - this.scopeManager.nestBlockScope(node); - } - this.visitChildren(node); - this.close(node); - } - BreakStatement() { - // don't reference the break statement's label - } - CallExpression(node) { - this.visitChildren(node, ['typeParameters']); - this.visitType(node.typeParameters); - } - CatchClause(node) { - this.scopeManager.nestCatchScope(node); - if (node.param) { - const param = node.param; - this.visitPattern(param, (pattern, info) => { - this.currentScope().defineIdentifier(pattern, new definition_1.CatchClauseDefinition(param, node)); - this.referencingDefaultValue(pattern, info.assignments, null, true); - }, { processRightHandNodes: true }); - } - this.visit(node.body); - this.close(node); - } - ClassExpression(node) { - this.visitClass(node); - } - ClassDeclaration(node) { - this.visitClass(node); - } - ContinueStatement() { - // don't reference the continue statement's label - } - ExportAllDeclaration() { - // this defines no local variables - } - ExportDefaultDeclaration(node) { - if (node.declaration.type === types_1.AST_NODE_TYPES.Identifier) { - ExportVisitor_1.ExportVisitor.visit(this, node); - } - else { - this.visit(node.declaration); - } - } - ExportNamedDeclaration(node) { - if (node.declaration) { - this.visit(node.declaration); - } - else { - ExportVisitor_1.ExportVisitor.visit(this, node); - } - } - ForInStatement(node) { - this.visitForIn(node); - } - ForOfStatement(node) { - this.visitForIn(node); - } - ForStatement(node) { - // Create ForStatement declaration. - // NOTE: In ES6, ForStatement dynamically generates per iteration environment. However, this is - // a static analyzer, we only generate one scope for ForStatement. - if (node.init && - node.init.type === types_1.AST_NODE_TYPES.VariableDeclaration && - node.init.kind !== 'var') { - this.scopeManager.nestForScope(node); - } - this.visitChildren(node); - this.close(node); - } - FunctionDeclaration(node) { - this.visitFunction(node); - } - FunctionExpression(node) { - this.visitFunction(node); - } - Identifier(node) { - this.currentScope().referenceValue(node); - this.visitType(node.typeAnnotation); - } - ImportDeclaration(node) { - (0, assert_1.assert)(this.scopeManager.isES6() && this.scopeManager.isModule(), 'ImportDeclaration should appear when the mode is ES6 and in the module context.'); - ImportVisitor_1.ImportVisitor.visit(this, node); - } - JSXAttribute(node) { - this.visit(node.value); - } - JSXClosingElement() { - // should not be counted as a reference - } - JSXFragment(node) { - this.referenceJsxPragma(); - this.referenceJsxFragment(); - this.visitChildren(node); - } - JSXIdentifier(node) { - this.currentScope().referenceValue(node); - } - JSXMemberExpression(node) { - if (node.object.type !== types_1.AST_NODE_TYPES.JSXIdentifier) { - this.visit(node.object); - } - else { - if (node.object.name !== 'this') { - this.visit(node.object); - } - } - // we don't ever reference the property as it's always going to be a property on the thing - } - JSXOpeningElement(node) { - this.referenceJsxPragma(); - if (node.name.type === types_1.AST_NODE_TYPES.JSXIdentifier) { - if (node.name.name[0].toUpperCase() === node.name.name[0] || - node.name.name === 'this') { - // lower cased component names are always treated as "intrinsic" names, and are converted to a string, - // not a variable by JSX transforms: - //
=> React.createElement("div", null) - // the only case we want to visit a lower-cased component has its name as "this", - this.visit(node.name); - } - } - else { - this.visit(node.name); - } - this.visitType(node.typeParameters); - for (const attr of node.attributes) { - this.visit(attr); - } - } - LabeledStatement(node) { - this.visit(node.body); - } - MemberExpression(node) { - this.visit(node.object); - if (node.computed) { - this.visit(node.property); - } - } - MetaProperty() { - // meta properties all builtin globals - } - NewExpression(node) { - this.visitChildren(node, ['typeParameters']); - this.visitType(node.typeParameters); - } - PrivateIdentifier() { - // private identifiers are members on classes and thus have no variables to to reference - } - Program(node) { - const globalScope = this.scopeManager.nestGlobalScope(node); - this.populateGlobalsFromLib(globalScope); - if (this.scopeManager.isGlobalReturn()) { - // Force strictness of GlobalScope to false when using node.js scope. - this.currentScope().isStrict = false; - this.scopeManager.nestFunctionScope(node, false); - } - if (this.scopeManager.isES6() && this.scopeManager.isModule()) { - this.scopeManager.nestModuleScope(node); - } - if (this.scopeManager.isStrictModeSupported() && - this.scopeManager.isImpliedStrict()) { - this.currentScope().isStrict = true; - } - this.visitChildren(node); - this.close(node); - } - Property(node) { - this.visitProperty(node); - } - SwitchStatement(node) { - this.visit(node.discriminant); - if (this.scopeManager.isES6()) { - this.scopeManager.nestSwitchScope(node); - } - for (const switchCase of node.cases) { - this.visit(switchCase); - } - this.close(node); - } - TaggedTemplateExpression(node) { - this.visit(node.tag); - this.visit(node.quasi); - this.visitType(node.typeParameters); - } - TSAsExpression(node) { - this.visitTypeAssertion(node); - } - TSDeclareFunction(node) { - this.visitFunction(node); - } - TSImportEqualsDeclaration(node) { - this.currentScope().defineIdentifier(node.id, new definition_1.ImportBindingDefinition(node.id, node, node)); - if (node.moduleReference.type === types_1.AST_NODE_TYPES.TSQualifiedName) { - this.visit(node.moduleReference.left); - } - else { - this.visit(node.moduleReference); - } - } - TSEmptyBodyFunctionExpression(node) { - this.visitFunction(node); - } - TSEnumDeclaration(node) { - this.currentScope().defineIdentifier(node.id, new definition_1.TSEnumNameDefinition(node.id, node)); - // enum members can be referenced within the enum body - this.scopeManager.nestTSEnumScope(node); - // define the enum name again inside the new enum scope - // references to the enum should not resolve directly to the enum - this.currentScope().defineIdentifier(node.id, new definition_1.TSEnumNameDefinition(node.id, node)); - for (const member of node.members) { - // TS resolves literal named members to be actual names - // enum Foo { - // 'a' = 1, - // b = a, // this references the 'a' member - // } - if (member.id.type === types_1.AST_NODE_TYPES.Literal && - typeof member.id.value === 'string') { - const name = member.id; - this.currentScope().defineLiteralIdentifier(name, new definition_1.TSEnumMemberDefinition(name, member)); - } - else if (!member.computed && - member.id.type === types_1.AST_NODE_TYPES.Identifier) { - this.currentScope().defineIdentifier(member.id, new definition_1.TSEnumMemberDefinition(member.id, member)); - } - this.visit(member.initializer); - } - this.close(node); - } - TSInstantiationExpression(node) { - this.visitChildren(node, ['typeParameters']); - this.visitType(node.typeParameters); - } - TSInterfaceDeclaration(node) { - this.visitType(node); - } - TSModuleDeclaration(node) { - if (node.id.type === types_1.AST_NODE_TYPES.Identifier && !node.global) { - this.currentScope().defineIdentifier(node.id, new definition_1.TSModuleNameDefinition(node.id, node)); - } - this.scopeManager.nestTSModuleScope(node); - this.visit(node.body); - this.close(node); - } - TSSatisfiesExpression(node) { - this.visitTypeAssertion(node); - } - TSTypeAliasDeclaration(node) { - this.visitType(node); - } - TSTypeAssertion(node) { - this.visitTypeAssertion(node); - } - UpdateExpression(node) { - if (PatternVisitor_1.PatternVisitor.isPattern(node.argument)) { - this.visitPattern(node.argument, pattern => { - this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.ReadWrite, null); - }); - } - else { - this.visitChildren(node); - } - } - VariableDeclaration(node) { - const variableTargetScope = node.kind === 'var' - ? this.currentScope().variableScope - : this.currentScope(); - for (const decl of node.declarations) { - const init = decl.init; - this.visitPattern(decl.id, (pattern, info) => { - variableTargetScope.defineIdentifier(pattern, new definition_1.VariableDefinition(pattern, decl, node)); - this.referencingDefaultValue(pattern, info.assignments, null, true); - if (init) { - this.currentScope().referenceValue(pattern, Reference_1.ReferenceFlag.Write, init, null, true); - } - }, { processRightHandNodes: true }); - if (decl.init) { - this.visit(decl.init); - } - if ('typeAnnotation' in decl.id) { - this.visitType(decl.id.typeAnnotation); - } - } - } - WithStatement(node) { - this.visit(node.object); - // Then nest scope for WithStatement. - this.scopeManager.nestWithScope(node); - this.visit(node.body); - this.close(node); - } - ImportAttribute() { - // import assertions are module metadata and thus have no variables to reference - } -} -exports.Referencer = Referencer; -_Referencer_jsxPragma = new WeakMap(), _Referencer_jsxFragmentName = new WeakMap(), _Referencer_hasReferencedJsxFactory = new WeakMap(), _Referencer_hasReferencedJsxFragmentFactory = new WeakMap(), _Referencer_lib = new WeakMap(), _Referencer_emitDecoratorMetadata = new WeakMap(); -//# sourceMappingURL=Referencer.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map deleted file mode 100644 index dbc3bda4..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Referencer.js","sourceRoot":"","sources":["../../src/referencer/Referencer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,sCAAmC;AACnC,8CASuB;AACvB,gCA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C,EAAE,EACP,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;gBAChB,mBAAmB,CAAC,gBAAgB,CAClC,OAAO,EACP,IAAI,+BAAkB,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAC5C,CAAC;gBAEF,IAAI,CAAC,uBAAuB,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;gBACpE,IAAI,IAAI,EAAE;oBACR,IAAI,CAAC,YAAY,EAAE,CAAC,cAAc,CAChC,OAAO,EACP,yBAAa,CAAC,KAAK,EACnB,IAAI,EACJ,IAAI,EACJ,IAAI,CACL,CAAC;iBACH;YACH,CAAC,EACD,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAChC,CAAC;YAEF,IAAI,IAAI,CAAC,IAAI,EAAE;gBACb,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACvB;YAED,IAAI,gBAAgB,IAAI,IAAI,CAAC,EAAE,EAAE;gBAC/B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC;aACxC;SACF;IACH,CAAC;IAES,aAAa,CAAC,IAA4B;QAClD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAExB,qCAAqC;QACrC,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAEtC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEtB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;IAES,eAAe;QACvB,gFAAgF;IAClF,CAAC;CACF;AAEQ,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts deleted file mode 100644 index 5a0dafa3..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { Referencer } from './Referencer'; -import { Visitor } from './Visitor'; -declare class TypeVisitor extends Visitor { - #private; - constructor(referencer: Referencer); - static visit(referencer: Referencer, node: TSESTree.Node): void; - protected visitFunctionType(node: TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSFunctionType | TSESTree.TSMethodSignature): void; - protected visitPropertyKey(node: TSESTree.TSMethodSignature | TSESTree.TSPropertySignature): void; - protected Identifier(node: TSESTree.Identifier): void; - protected MemberExpression(node: TSESTree.MemberExpression): void; - protected TSCallSignatureDeclaration(node: TSESTree.TSCallSignatureDeclaration): void; - protected TSConditionalType(node: TSESTree.TSConditionalType): void; - protected TSConstructorType(node: TSESTree.TSConstructorType): void; - protected TSConstructSignatureDeclaration(node: TSESTree.TSConstructSignatureDeclaration): void; - protected TSFunctionType(node: TSESTree.TSFunctionType): void; - protected TSImportType(node: TSESTree.TSImportType): void; - protected TSIndexSignature(node: TSESTree.TSIndexSignature): void; - protected TSInferType(node: TSESTree.TSInferType): void; - protected TSInterfaceDeclaration(node: TSESTree.TSInterfaceDeclaration): void; - protected TSMappedType(node: TSESTree.TSMappedType): void; - protected TSMethodSignature(node: TSESTree.TSMethodSignature): void; - protected TSNamedTupleMember(node: TSESTree.TSNamedTupleMember): void; - protected TSPropertySignature(node: TSESTree.TSPropertySignature): void; - protected TSQualifiedName(node: TSESTree.TSQualifiedName): void; - protected TSTypeAliasDeclaration(node: TSESTree.TSTypeAliasDeclaration): void; - protected TSTypeParameter(node: TSESTree.TSTypeParameter): void; - protected TSTypePredicate(node: TSESTree.TSTypePredicate): void; - protected TSTypeQuery(node: TSESTree.TSTypeQuery): void; - protected TSTypeAnnotation(node: TSESTree.TSTypeAnnotation): void; -} -export { TypeVisitor }; -//# sourceMappingURL=TypeVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map deleted file mode 100644 index beb5c408..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TypeVisitor.d.ts","sourceRoot":"","sources":["../../src/referencer/TypeVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAKzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,cAAM,WAAY,SAAQ,OAAO;;gBAGnB,UAAU,EAAE,UAAU;IAKlC,MAAM,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI;IAS/D,SAAS,CAAC,iBAAiB,CACzB,IAAI,EACA,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,+BAA+B,GACxC,QAAQ,CAAC,cAAc,GACvB,QAAQ,CAAC,iBAAiB,GAC7B,IAAI;IAgCP,SAAS,CAAC,gBAAgB,CACxB,IAAI,EAAE,QAAQ,CAAC,iBAAiB,GAAG,QAAQ,CAAC,mBAAmB,GAC9D,IAAI;IAYP,SAAS,CAAC,UAAU,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;IAIrD,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAKjE,SAAS,CAAC,0BAA0B,CAClC,IAAI,EAAE,QAAQ,CAAC,0BAA0B,GACxC,IAAI;IAIP,SAAS,CAAC,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,iBAAiB,GAAG,IAAI;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;IAkBvD,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;CAIlE;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js b/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js deleted file mode 100644 index efbaa6dc..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js +++ /dev/null @@ -1,228 +0,0 @@ -"use strict"; -var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -}; -var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _TypeVisitor_referencer; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TypeVisitor = void 0; -const types_1 = require("@typescript-eslint/types"); -const definition_1 = require("../definition"); -const scope_1 = require("../scope"); -const Visitor_1 = require("./Visitor"); -class TypeVisitor extends Visitor_1.Visitor { - constructor(referencer) { - super(referencer); - _TypeVisitor_referencer.set(this, void 0); - __classPrivateFieldSet(this, _TypeVisitor_referencer, referencer, "f"); - } - static visit(referencer, node) { - const typeReferencer = new TypeVisitor(referencer); - typeReferencer.visit(node); - } - /////////////////// - // Visit helpers // - /////////////////// - visitFunctionType(node) { - // arguments and type parameters can only be referenced from within the function - __classPrivateFieldGet(this, _TypeVisitor_referencer, "f").scopeManager.nestFunctionTypeScope(node); - this.visit(node.typeParameters); - for (const param of node.params) { - let didVisitAnnotation = false; - this.visitPattern(param, (pattern, info) => { - // a parameter name creates a value type variable which can be referenced later via typeof arg - __classPrivateFieldGet(this, _TypeVisitor_referencer, "f") - .currentScope() - .defineIdentifier(pattern, new definition_1.ParameterDefinition(pattern, node, info.rest)); - if (pattern.typeAnnotation) { - this.visit(pattern.typeAnnotation); - didVisitAnnotation = true; - } - }); - // there are a few special cases where the type annotation is owned by the parameter, not the pattern - if (!didVisitAnnotation && 'typeAnnotation' in param) { - this.visit(param.typeAnnotation); - } - } - this.visit(node.returnType); - __classPrivateFieldGet(this, _TypeVisitor_referencer, "f").close(node); - } - visitPropertyKey(node) { - if (!node.computed) { - return; - } - // computed members are treated as value references, and TS expects they have a literal type - __classPrivateFieldGet(this, _TypeVisitor_referencer, "f").visit(node.key); - } - ///////////////////// - // Visit selectors // - ///////////////////// - Identifier(node) { - __classPrivateFieldGet(this, _TypeVisitor_referencer, "f").currentScope().referenceType(node); - } - MemberExpression(node) { - this.visit(node.object); - // don't visit the property - } - TSCallSignatureDeclaration(node) { - this.visitFunctionType(node); - } - TSConditionalType(node) { - // conditional types can define inferred type parameters - // which are only accessible from inside the conditional parameter - __classPrivateFieldGet(this, _TypeVisitor_referencer, "f").scopeManager.nestConditionalTypeScope(node); - // type parameters inferred in the condition clause are not accessible within the false branch - this.visitChildren(node, ['falseType']); - __classPrivateFieldGet(this, _TypeVisitor_referencer, "f").close(node); - this.visit(node.falseType); - } - TSConstructorType(node) { - this.visitFunctionType(node); - } - TSConstructSignatureDeclaration(node) { - this.visitFunctionType(node); - } - TSFunctionType(node) { - this.visitFunctionType(node); - } - TSImportType(node) { - // the TS parser allows any type to be the parameter, but it's a syntax error - so we can ignore it - this.visit(node.typeParameters); - // the qualifier is just part of a standard EntityName, so it should not be visited - } - TSIndexSignature(node) { - for (const param of node.parameters) { - if (param.type === types_1.AST_NODE_TYPES.Identifier) { - this.visit(param.typeAnnotation); - } - } - this.visit(node.typeAnnotation); - } - TSInferType(node) { - const typeParameter = node.typeParameter; - let scope = __classPrivateFieldGet(this, _TypeVisitor_referencer, "f").currentScope(); - /* - In cases where there is a sub-type scope created within a conditional type, then the generic should be defined in the - conditional type's scope, not the child type scope. - If we define it within the child type's scope then it won't be able to be referenced outside the child type - */ - if (scope.type === scope_1.ScopeType.functionType || - scope.type === scope_1.ScopeType.mappedType) { - // search up the scope tree to figure out if we're in a nested type scope - let currentScope = scope.upper; - while (currentScope) { - if (currentScope.type === scope_1.ScopeType.functionType || - currentScope.type === scope_1.ScopeType.mappedType) { - // ensure valid type parents only - currentScope = currentScope.upper; - continue; - } - if (currentScope.type === scope_1.ScopeType.conditionalType) { - scope = currentScope; - break; - } - break; - } - } - scope.defineIdentifier(typeParameter.name, new definition_1.TypeDefinition(typeParameter.name, typeParameter)); - this.visit(typeParameter.constraint); - } - TSInterfaceDeclaration(node) { - var _a, _b; - __classPrivateFieldGet(this, _TypeVisitor_referencer, "f") - .currentScope() - .defineIdentifier(node.id, new definition_1.TypeDefinition(node.id, node)); - if (node.typeParameters) { - // type parameters cannot be referenced from outside their current scope - __classPrivateFieldGet(this, _TypeVisitor_referencer, "f").scopeManager.nestTypeScope(node); - this.visit(node.typeParameters); - } - (_a = node.extends) === null || _a === void 0 ? void 0 : _a.forEach(this.visit, this); - (_b = node.implements) === null || _b === void 0 ? void 0 : _b.forEach(this.visit, this); - this.visit(node.body); - if (node.typeParameters) { - __classPrivateFieldGet(this, _TypeVisitor_referencer, "f").close(node); - } - } - TSMappedType(node) { - // mapped types key can only be referenced within their return value - __classPrivateFieldGet(this, _TypeVisitor_referencer, "f").scopeManager.nestMappedTypeScope(node); - this.visitChildren(node); - __classPrivateFieldGet(this, _TypeVisitor_referencer, "f").close(node); - } - TSMethodSignature(node) { - this.visitPropertyKey(node); - this.visitFunctionType(node); - } - TSNamedTupleMember(node) { - this.visit(node.elementType); - // we don't visit the label as the label only exists for the purposes of documentation - } - TSPropertySignature(node) { - this.visitPropertyKey(node); - this.visit(node.typeAnnotation); - } - TSQualifiedName(node) { - this.visit(node.left); - // we don't visit the right as it a name on the thing, not a name to reference - } - TSTypeAliasDeclaration(node) { - __classPrivateFieldGet(this, _TypeVisitor_referencer, "f") - .currentScope() - .defineIdentifier(node.id, new definition_1.TypeDefinition(node.id, node)); - if (node.typeParameters) { - // type parameters cannot be referenced from outside their current scope - __classPrivateFieldGet(this, _TypeVisitor_referencer, "f").scopeManager.nestTypeScope(node); - this.visit(node.typeParameters); - } - this.visit(node.typeAnnotation); - if (node.typeParameters) { - __classPrivateFieldGet(this, _TypeVisitor_referencer, "f").close(node); - } - } - TSTypeParameter(node) { - __classPrivateFieldGet(this, _TypeVisitor_referencer, "f") - .currentScope() - .defineIdentifier(node.name, new definition_1.TypeDefinition(node.name, node)); - this.visit(node.constraint); - this.visit(node.default); - } - TSTypePredicate(node) { - if (node.parameterName.type !== types_1.AST_NODE_TYPES.TSThisType) { - __classPrivateFieldGet(this, _TypeVisitor_referencer, "f").currentScope().referenceValue(node.parameterName); - } - this.visit(node.typeAnnotation); - } - // a type query `typeof foo` is a special case that references a _non-type_ variable, - TSTypeQuery(node) { - let entityName; - if (node.exprName.type === types_1.AST_NODE_TYPES.TSQualifiedName) { - let iter = node.exprName; - while (iter.left.type === types_1.AST_NODE_TYPES.TSQualifiedName) { - iter = iter.left; - } - entityName = iter.left; - } - else { - entityName = node.exprName; - } - if (entityName.type === types_1.AST_NODE_TYPES.Identifier) { - __classPrivateFieldGet(this, _TypeVisitor_referencer, "f").currentScope().referenceValue(entityName); - } - this.visit(node.typeParameters); - } - TSTypeAnnotation(node) { - // check - this.visitChildren(node); - } -} -exports.TypeVisitor = TypeVisitor; -_TypeVisitor_referencer = new WeakMap(); -//# sourceMappingURL=TypeVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map deleted file mode 100644 index 8191da7b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TypeVisitor.js","sourceRoot":"","sources":["../../src/referencer/TypeVisitor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,8CAAoE;AACpE,oCAAqC;AAErC,uCAAoC;AAEpC,MAAM,WAAY,SAAQ,iBAAO;IAG/B,YAAY,UAAsB;QAChC,KAAK,CAAC,UAAU,CAAC,CAAC;QAHX,0CAAwB;QAI/B,uBAAA,IAAI,2BAAe,UAAU,MAAA,CAAC;IAChC,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,UAAsB,EAAE,IAAmB;QACtD,MAAM,cAAc,GAAG,IAAI,WAAW,CAAC,UAAU,CAAC,CAAC;QACnD,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAED,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IAET,iBAAiB,CACzB,IAK8B;QAE9B,gFAAgF;QAChF,uBAAA,IAAI,+BAAY,CAAC,YAAY,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;QAC1D,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAEhC,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,MAAM,EAAE;YAC/B,IAAI,kBAAkB,GAAG,KAAK,CAAC;YAC/B,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;gBACzC,8FAA8F;gBAC9F,uBAAA,IAAI,+BAAY;qBACb,YAAY,EAAE;qBACd,gBAAgB,CACf,OAAO,EACP,IAAI,gCAAmB,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAClD,CAAC;gBAEJ,IAAI,OAAO,CAAC,cAA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AAgB,CAAC,IAA+B;QACxD,QAAQ;QACR,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts deleted file mode 100644 index 843e2712..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { PatternVisitorCallback, PatternVisitorOptions } from './PatternVisitor'; -import { VisitorBase, VisitorOptions } from './VisitorBase'; -interface VisitPatternOptions extends PatternVisitorOptions { - processRightHandNodes?: boolean; -} -declare class Visitor extends VisitorBase { - #private; - constructor(optionsOrVisitor: VisitorOptions | Visitor); - protected visitPattern(node: TSESTree.Node, callback: PatternVisitorCallback, options?: VisitPatternOptions): void; -} -export { Visitor, VisitorBase, VisitorOptions }; -//# sourceMappingURL=Visitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map deleted file mode 100644 index 862e63ab..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Visitor.d.ts","sourceRoot":"","sources":["../../src/referencer/Visitor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE5D,UAAU,mBAAoB,SAAQ,qBAAqB;IACzD,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AACD,cAAM,OAAQ,SAAQ,WAAW;;gBAEnB,gBAAgB,EAAE,cAAc,GAAG,OAAO;IAatD,SAAS,CAAC,YAAY,CACpB,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,QAAQ,EAAE,sBAAsB,EAChC,OAAO,GAAE,mBAAsD,GAC9D,IAAI;CAWR;AAED,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js b/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js deleted file mode 100644 index 5584c1d1..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -}; -var _Visitor_options; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.VisitorBase = exports.Visitor = void 0; -const PatternVisitor_1 = require("./PatternVisitor"); -const VisitorBase_1 = require("./VisitorBase"); -Object.defineProperty(exports, "VisitorBase", { enumerable: true, get: function () { return VisitorBase_1.VisitorBase; } }); -class Visitor extends VisitorBase_1.VisitorBase { - constructor(optionsOrVisitor) { - super(optionsOrVisitor instanceof Visitor - ? __classPrivateFieldGet(optionsOrVisitor, _Visitor_options, "f") - : optionsOrVisitor); - _Visitor_options.set(this, void 0); - __classPrivateFieldSet(this, _Visitor_options, optionsOrVisitor instanceof Visitor - ? __classPrivateFieldGet(optionsOrVisitor, _Visitor_options, "f") - : optionsOrVisitor, "f"); - } - visitPattern(node, callback, options = { processRightHandNodes: false }) { - // Call the callback at left hand identifier nodes, and Collect right hand nodes. - const visitor = new PatternVisitor_1.PatternVisitor(__classPrivateFieldGet(this, _Visitor_options, "f"), node, callback); - visitor.visit(node); - // Process the right hand nodes recursively. - if (options.processRightHandNodes) { - visitor.rightHandNodes.forEach(this.visit, this); - } - } -} -exports.Visitor = Visitor; -_Visitor_options = new WeakMap(); -//# sourceMappingURL=Visitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map deleted file mode 100644 index 336529a3..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Visitor.js","sourceRoot":"","sources":["../../src/referencer/Visitor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAMA,qDAAkD;AAClD,+CAA4D;AAqC1C,4FArCT,yBAAW,OAqCS;AAhC7B,MAAM,OAAQ,SAAQ,yBAAW;IAE/B,YAAY,gBAA0C;QACpD,KAAK,CACH,gBAAgB,YAAY,OAAO;YACjC,CAAC,CAAC,uBAAA,gBAAgB,wBAAS;YAC3B,CAAC,CAAC,gBAAgB,CACrB,CAAC;QANK,mCAAyB;QAQhC,uBAAA,IAAI,oBACF,gBAAgB,YAAY,OAAO;YACjC,CAAC,CAAC,uBAAA,gBAAgB,wBAAS;YAC3B,CAAC,CAAC,gBAAgB,MAAA,CAAC;IACzB,CAAC;IAES,YAAY,CACpB,IAAmB,EACnB,QAAgC,EAChC,UAA+B,EAAE,qBAAqB,EAAE,KAAK,EAAE;QAE/D,iFAAiF;QACjF,MAAM,OAAO,GAAG,IAAI,+BAAc,CAAC,uBAAA,IAAI,wBAAS,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;QAElE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAEpB,4CAA4C;QAC5C,IAAI,OAAO,CAAC,qBAAqB,EAAE;YACjC,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;SAClD;IACH,CAAC;CACF;AAEQ,0BAAO"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts deleted file mode 100644 index 38b38a69..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { VisitorKeys } from '@typescript-eslint/visitor-keys'; -interface VisitorOptions { - childVisitorKeys?: VisitorKeys | null; - visitChildrenEvenIfSelectorExists?: boolean; -} -declare abstract class VisitorBase { - #private; - constructor(options: VisitorOptions); - /** - * Default method for visiting children. - * @param node the node whose children should be visited - * @param exclude a list of keys to not visit - */ - visitChildren(node: T | null | undefined, excludeArr?: (keyof T)[]): void; - /** - * Dispatching node. - */ - visit(node: TSESTree.Node | null | undefined): void; -} -export { VisitorBase, VisitorOptions, VisitorKeys }; -//# sourceMappingURL=VisitorBase.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map deleted file mode 100644 index 8423d85c..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VisitorBase.d.ts","sourceRoot":"","sources":["../../src/referencer/VisitorBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAe,MAAM,iCAAiC,CAAC;AAE3E,UAAU,cAAc;IACtB,gBAAgB,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IACtC,iCAAiC,CAAC,EAAE,OAAO,CAAC;CAC7C;AAaD,uBAAe,WAAW;;gBAGZ,OAAO,EAAE,cAAc;IAMnC;;;;OAIG;IACH,aAAa,CAAC,CAAC,SAAS,QAAQ,CAAC,IAAI,EACnC,IAAI,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAC1B,UAAU,GAAE,CAAC,MAAM,CAAC,CAAC,EAAO,GAC3B,IAAI;IA6BP;;OAEG;IACH,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;CAepD;AAED,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js b/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js deleted file mode 100644 index d1ab2ead..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; -var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -}; -var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _VisitorBase_childVisitorKeys, _VisitorBase_visitChildrenEvenIfSelectorExists; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.VisitorBase = void 0; -const visitor_keys_1 = require("@typescript-eslint/visitor-keys"); -function isObject(obj) { - return typeof obj === 'object' && obj != null; -} -function isNode(node) { - return isObject(node) && typeof node.type === 'string'; -} -class VisitorBase { - constructor(options) { - var _a, _b; - _VisitorBase_childVisitorKeys.set(this, void 0); - _VisitorBase_visitChildrenEvenIfSelectorExists.set(this, void 0); - __classPrivateFieldSet(this, _VisitorBase_childVisitorKeys, (_a = options.childVisitorKeys) !== null && _a !== void 0 ? _a : visitor_keys_1.visitorKeys, "f"); - __classPrivateFieldSet(this, _VisitorBase_visitChildrenEvenIfSelectorExists, (_b = options.visitChildrenEvenIfSelectorExists) !== null && _b !== void 0 ? _b : false, "f"); - } - /** - * Default method for visiting children. - * @param node the node whose children should be visited - * @param exclude a list of keys to not visit - */ - visitChildren(node, excludeArr = []) { - var _a; - if (node == null || node.type == null) { - return; - } - const exclude = new Set(excludeArr.concat(['parent'])); - const children = (_a = __classPrivateFieldGet(this, _VisitorBase_childVisitorKeys, "f")[node.type]) !== null && _a !== void 0 ? _a : Object.keys(node); - for (const key of children) { - if (exclude.has(key)) { - continue; - } - const child = node[key]; - if (!child) { - continue; - } - if (Array.isArray(child)) { - for (const subChild of child) { - if (isNode(subChild)) { - this.visit(subChild); - } - } - } - else if (isNode(child)) { - this.visit(child); - } - } - } - /** - * Dispatching node. - */ - visit(node) { - if (node == null || node.type == null) { - return; - } - const visitor = this[node.type]; - if (visitor) { - visitor.call(this, node); - if (!__classPrivateFieldGet(this, _VisitorBase_visitChildrenEvenIfSelectorExists, "f")) { - return; - } - } - this.visitChildren(node); - } -} -exports.VisitorBase = VisitorBase; -_VisitorBase_childVisitorKeys = new WeakMap(), _VisitorBase_visitChildrenEvenIfSelectorExists = new WeakMap(); -//# sourceMappingURL=VisitorBase.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map deleted file mode 100644 index 2ed51617..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VisitorBase.js","sourceRoot":"","sources":["../../src/referencer/VisitorBase.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,kEAA2E;AAO3E,SAAS,QAAQ,CAAC,GAAY;IAC5B,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,IAAI,IAAI,CAAC;AAChD,CAAC;AACD,SAAS,MAAM,CAAC,IAAa;IAC3B,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC;AACzD,CAAC;AAMD,MAAe,WAAW;IAGxB,YAAY,OAAuB;;QAF1B,gDAA+B;QAC/B,iEAA4C;QAEnD,uBAAA,IAAI,iCAAqB,MAAA,OAAO,CAAC,gBAAgB,mCAAI,0BAAW,MAAA,CAAC;QACjE,uBAAA,IAAI,kDACF,MAAA,OAAO,CAAC,iCAAiC,mCAAI,KAAK,MAAA,CAAC;IACvD,CAAC;IAED;;;;OAIG;IACH,aAAa,CACX,IAA0B,EAC1B,aAA0B,EAAE;;QAE5B,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACrC,OAAO;SACR;QAED,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAgB,CAAC;QACtE,MAAM,QAAQ,GAAG,MAAA,uBAAA,IAAI,qCAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,mCAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxE,KAAK,MAAM,GAAG,IAAI,QAAQ,EAAE;YAC1B,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;gBACpB,SAAS;aACV;YAED,MAAM,KAAK,GAAG,IAAI,CAAC,GAA0B,CAAY,CAAC;YAC1D,IAAI,CAAC,KAAK,EAAE;gBACV,SAAS;aACV;YAED,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBACxB,KAAK,MAAM,QAAQ,IAAI,KAAK,EAAE;oBAC5B,IAAI,MAAM,CAAC,QAAQ,CAAC,EAAE;wBACpB,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;qBACtB;iBACF;aACF;iBAAM,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE;gBACxB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;aACnB;SACF;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAsC;QAC1C,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACrC,OAAO;SACR;QAED,MAAM,OAAO,GAAI,IAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,OAAO,EAAE;YACX,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACzB,IAAI,CAAC,uBAAA,IAAI,sDAAmC,EAAE;gBAC5C,OAAO;aACR;SACF;QAED,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts deleted file mode 100644 index d2a8121c..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { Referencer, ReferencerOptions } from './Referencer'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map deleted file mode 100644 index 5b48579f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/referencer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js b/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js deleted file mode 100644 index 16625137..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Referencer = void 0; -var Referencer_1 = require("./Referencer"); -Object.defineProperty(exports, "Referencer", { enumerable: true, get: function () { return Referencer_1.Referencer; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map b/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map deleted file mode 100644 index aa5dc621..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/referencer/index.ts"],"names":[],"mappings":";;;AAAA,2CAA6D;AAApD,wGAAA,UAAU,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts deleted file mode 100644 index 66f2713f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class BlockScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: BlockScope['upper'], block: BlockScope['block']); -} -export { BlockScope }; -//# sourceMappingURL=BlockScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map deleted file mode 100644 index 74e95a89..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BlockScope.d.ts","sourceRoot":"","sources":["../../src/scope/BlockScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,UAAW,SAAQ,SAAS,CAChC,SAAS,CAAC,KAAK,EACf,QAAQ,CAAC,cAAc,EACvB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,EAC/B,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;CAI7B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js deleted file mode 100644 index 0fc34d61..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BlockScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class BlockScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.block, upperScope, block, false); - } -} -exports.BlockScope = BlockScope; -//# sourceMappingURL=BlockScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map deleted file mode 100644 index 9934c6c8..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BlockScope.js","sourceRoot":"","sources":["../../src/scope/BlockScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,UAAW,SAAQ,qBAIxB;IACC,YACE,YAA0B,EAC1B,UAA+B,EAC/B,KAA0B;QAE1B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACjE,CAAC;CACF;AAEQ,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts deleted file mode 100644 index 59532d23..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class CatchScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: CatchScope['upper'], block: CatchScope['block']); -} -export { CatchScope }; -//# sourceMappingURL=CatchScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map deleted file mode 100644 index de507516..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CatchScope.d.ts","sourceRoot":"","sources":["../../src/scope/CatchScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,UAAW,SAAQ,SAAS,CAChC,SAAS,CAAC,KAAK,EACf,QAAQ,CAAC,WAAW,EACpB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,EAC/B,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;CAI7B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js deleted file mode 100644 index dbb630f2..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CatchScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class CatchScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.catch, upperScope, block, false); - } -} -exports.CatchScope = CatchScope; -//# sourceMappingURL=CatchScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map deleted file mode 100644 index e13f07e3..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CatchScope.js","sourceRoot":"","sources":["../../src/scope/CatchScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,UAAW,SAAQ,qBAIxB;IACC,YACE,YAA0B,EAC1B,UAA+B,EAC/B,KAA0B;QAE1B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACjE,CAAC;CACF;AAEQ,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts deleted file mode 100644 index a6467363..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class ClassFieldInitializerScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: ClassFieldInitializerScope['upper'], block: ClassFieldInitializerScope['block']); -} -export { ClassFieldInitializerScope }; -//# sourceMappingURL=ClassFieldInitializerScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map deleted file mode 100644 index c625a6b6..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassFieldInitializerScope.d.ts","sourceRoot":"","sources":["../../src/scope/ClassFieldInitializerScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,0BAA2B,SAAQ,SAAS,CAChD,SAAS,CAAC,qBAAqB,EAE/B,QAAQ,CAAC,UAAU,EACnB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,0BAA0B,CAAC,OAAO,CAAC,EAC/C,KAAK,EAAE,0BAA0B,CAAC,OAAO,CAAC;CAU7C;AAED,OAAO,EAAE,0BAA0B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js deleted file mode 100644 index 5d3bb691..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ClassFieldInitializerScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class ClassFieldInitializerScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.classFieldInitializer, upperScope, block, false); - } -} -exports.ClassFieldInitializerScope = ClassFieldInitializerScope; -//# sourceMappingURL=ClassFieldInitializerScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map deleted file mode 100644 index c14cc0f1..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassFieldInitializerScope.js","sourceRoot":"","sources":["../../src/scope/ClassFieldInitializerScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,0BAA2B,SAAQ,qBAKxC;IACC,YACE,YAA0B,EAC1B,UAA+C,EAC/C,KAA0C;QAE1C,KAAK,CACH,YAAY,EACZ,qBAAS,CAAC,qBAAqB,EAC/B,UAAU,EACV,KAAK,EACL,KAAK,CACN,CAAC;IACJ,CAAC;CACF;AAEQ,gEAA0B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts deleted file mode 100644 index c31a3364..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class ClassScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: ClassScope['upper'], block: ClassScope['block']); -} -export { ClassScope }; -//# sourceMappingURL=ClassScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map deleted file mode 100644 index 540877e5..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassScope.d.ts","sourceRoot":"","sources":["../../src/scope/ClassScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,UAAW,SAAQ,SAAS,CAChC,SAAS,CAAC,KAAK,EACf,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,EACpD,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,EAC/B,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC;CAI7B;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js deleted file mode 100644 index 003e214f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ClassScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class ClassScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.class, upperScope, block, false); - } -} -exports.ClassScope = ClassScope; -//# sourceMappingURL=ClassScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map deleted file mode 100644 index 3ba1ca90..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassScope.js","sourceRoot":"","sources":["../../src/scope/ClassScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,UAAW,SAAQ,qBAIxB;IACC,YACE,YAA0B,EAC1B,UAA+B,EAC/B,KAA0B;QAE1B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACjE,CAAC;CACF;AAEQ,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts deleted file mode 100644 index 7d7e81b0..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class ClassStaticBlockScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: ClassStaticBlockScope['upper'], block: ClassStaticBlockScope['block']); -} -export { ClassStaticBlockScope }; -//# sourceMappingURL=ClassStaticBlockScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map deleted file mode 100644 index 1bdcd785..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassStaticBlockScope.d.ts","sourceRoot":"","sources":["../../src/scope/ClassStaticBlockScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,qBAAsB,SAAQ,SAAS,CAC3C,SAAS,CAAC,gBAAgB,EAC1B,QAAQ,CAAC,WAAW,EACpB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,qBAAqB,CAAC,OAAO,CAAC,EAC1C,KAAK,EAAE,qBAAqB,CAAC,OAAO,CAAC;CAIxC;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js deleted file mode 100644 index 3f23aa68..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ClassStaticBlockScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class ClassStaticBlockScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.classStaticBlock, upperScope, block, false); - } -} -exports.ClassStaticBlockScope = ClassStaticBlockScope; -//# sourceMappingURL=ClassStaticBlockScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map deleted file mode 100644 index 8456365f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClassStaticBlockScope.js","sourceRoot":"","sources":["../../src/scope/ClassStaticBlockScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,qBAAsB,SAAQ,qBAInC;IACC,YACE,YAA0B,EAC1B,UAA0C,EAC1C,KAAqC;QAErC,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,gBAAgB,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC5E,CAAC;CACF;AAEQ,sDAAqB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts deleted file mode 100644 index 6d35e6ec..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class ConditionalTypeScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: ConditionalTypeScope['upper'], block: ConditionalTypeScope['block']); -} -export { ConditionalTypeScope }; -//# sourceMappingURL=ConditionalTypeScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map deleted file mode 100644 index 44f849aa..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ConditionalTypeScope.d.ts","sourceRoot":"","sources":["../../src/scope/ConditionalTypeScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,oBAAqB,SAAQ,SAAS,CAC1C,SAAS,CAAC,eAAe,EACzB,QAAQ,CAAC,iBAAiB,EAC1B,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,oBAAoB,CAAC,OAAO,CAAC,EACzC,KAAK,EAAE,oBAAoB,CAAC,OAAO,CAAC;CAIvC;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js deleted file mode 100644 index 8fbd7c50..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ConditionalTypeScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class ConditionalTypeScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.conditionalType, upperScope, block, false); - } -} -exports.ConditionalTypeScope = ConditionalTypeScope; -//# sourceMappingURL=ConditionalTypeScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map deleted file mode 100644 index 0b60bfee..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ConditionalTypeScope.js","sourceRoot":"","sources":["../../src/scope/ConditionalTypeScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,oBAAqB,SAAQ,qBAIlC;IACC,YACE,YAA0B,EAC1B,UAAyC,EACzC,KAAoC;QAEpC,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,eAAe,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC3E,CAAC;CACF;AAEQ,oDAAoB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts deleted file mode 100644 index ed2f2245..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class ForScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: ForScope['upper'], block: ForScope['block']); -} -export { ForScope }; -//# sourceMappingURL=ForScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map deleted file mode 100644 index fb1348fe..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ForScope.d.ts","sourceRoot":"","sources":["../../src/scope/ForScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,QAAS,SAAQ,SAAS,CAC9B,SAAS,CAAC,GAAG,EACb,QAAQ,CAAC,cAAc,GAAG,QAAQ,CAAC,cAAc,GAAG,QAAQ,CAAC,YAAY,EACzE,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,QAAQ,CAAC,OAAO,CAAC,EAC7B,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC;CAI3B;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js deleted file mode 100644 index cd27683e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ForScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class ForScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.for, upperScope, block, false); - } -} -exports.ForScope = ForScope; -//# sourceMappingURL=ForScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map deleted file mode 100644 index d8f8e8ea..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ForScope.js","sourceRoot":"","sources":["../../src/scope/ForScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,QAAS,SAAQ,qBAItB;IACC,YACE,YAA0B,EAC1B,UAA6B,EAC7B,KAAwB;QAExB,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC/D,CAAC;CACF;AAEQ,4BAAQ"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts deleted file mode 100644 index 2f5044ca..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class FunctionExpressionNameScope extends ScopeBase { - readonly functionExpressionScope: true; - constructor(scopeManager: ScopeManager, upperScope: FunctionExpressionNameScope['upper'], block: FunctionExpressionNameScope['block']); -} -export { FunctionExpressionNameScope }; -//# sourceMappingURL=FunctionExpressionNameScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map deleted file mode 100644 index 89161c4f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FunctionExpressionNameScope.d.ts","sourceRoot":"","sources":["../../src/scope/FunctionExpressionNameScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,2BAA4B,SAAQ,SAAS,CACjD,SAAS,CAAC,sBAAsB,EAChC,QAAQ,CAAC,kBAAkB,EAC3B,KAAK,CACN;IACC,SAAgB,uBAAuB,EAAE,IAAI,CAAC;gBAE5C,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,2BAA2B,CAAC,OAAO,CAAC,EAChD,KAAK,EAAE,2BAA2B,CAAC,OAAO,CAAC;CAiB9C;AAED,OAAO,EAAE,2BAA2B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js deleted file mode 100644 index 5c0e0ca8..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FunctionExpressionNameScope = void 0; -const definition_1 = require("../definition"); -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class FunctionExpressionNameScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.functionExpressionName, upperScope, block, false); - if (block.id) { - this.defineIdentifier(block.id, new definition_1.FunctionNameDefinition(block.id, block)); - } - this.functionExpressionScope = true; - } -} -exports.FunctionExpressionNameScope = FunctionExpressionNameScope; -//# sourceMappingURL=FunctionExpressionNameScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map deleted file mode 100644 index bdbbdff3..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FunctionExpressionNameScope.js","sourceRoot":"","sources":["../../src/scope/FunctionExpressionNameScope.ts"],"names":[],"mappings":";;;AAEA,8CAAuD;AAGvD,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,2BAA4B,SAAQ,qBAIzC;IAEC,YACE,YAA0B,EAC1B,UAAgD,EAChD,KAA2C;QAE3C,KAAK,CACH,YAAY,EACZ,qBAAS,CAAC,sBAAsB,EAChC,UAAU,EACV,KAAK,EACL,KAAK,CACN,CAAC;QACF,IAAI,KAAK,CAAC,EAAE,EAAE;YACZ,IAAI,CAAC,gBAAgB,CACnB,KAAK,CAAC,EAAE,EACR,IAAI,mCAAsB,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAC5C,CAAC;SACH;QACD,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC;IACtC,CAAC;CACF;AAEQ,kEAA2B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts deleted file mode 100644 index 8a8ddeef..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { Reference } from '../referencer/Reference'; -import type { ScopeManager } from '../ScopeManager'; -import type { Variable } from '../variable'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class FunctionScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: FunctionScope['upper'], block: FunctionScope['block'], isMethodDefinition: boolean); - protected isValidResolution(ref: Reference, variable: Variable): boolean; -} -export { FunctionScope }; -//# sourceMappingURL=FunctionScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map deleted file mode 100644 index dcf33420..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FunctionScope.d.ts","sourceRoot":"","sources":["../../src/scope/FunctionScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,aAAc,SAAQ,SAAS,CACnC,SAAS,CAAC,QAAQ,EAChB,QAAQ,CAAC,uBAAuB,GAChC,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,6BAA6B,GACtC,QAAQ,CAAC,OAAO,EAClB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,aAAa,CAAC,OAAO,CAAC,EAClC,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,EAC7B,kBAAkB,EAAE,OAAO;IAuB7B,SAAS,CAAC,iBAAiB,CAAC,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO;CAiBzE;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js deleted file mode 100644 index c69b7417..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FunctionScope = void 0; -const types_1 = require("@typescript-eslint/types"); -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class FunctionScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block, isMethodDefinition) { - super(scopeManager, ScopeType_1.ScopeType.function, upperScope, block, isMethodDefinition); - // section 9.2.13, FunctionDeclarationInstantiation. - // NOTE Arrow functions never have an arguments objects. - if (this.block.type !== types_1.AST_NODE_TYPES.ArrowFunctionExpression) { - this.defineVariable('arguments', this.set, this.variables, null, null); - } - } - // References in default parameters isn't resolved to variables which are in their function body. - // const x = 1 - // function f(a = x) { // This `x` is resolved to the `x` in the outer scope. - // const x = 2 - // console.log(a) - // } - isValidResolution(ref, variable) { - var _a, _b; - // If `options.globalReturn` is true, `this.block` becomes a Program node. - if (this.block.type === types_1.AST_NODE_TYPES.Program) { - return true; - } - const bodyStart = (_b = (_a = this.block.body) === null || _a === void 0 ? void 0 : _a.range[0]) !== null && _b !== void 0 ? _b : -1; - // It's invalid resolution in the following case: - return !((variable.scope === this && - ref.identifier.range[0] < bodyStart && // the reference is in the parameter part. - variable.defs.every(d => d.name.range[0] >= bodyStart)) // the variable is in the body. - ); - } -} -exports.FunctionScope = FunctionScope; -//# sourceMappingURL=FunctionScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map deleted file mode 100644 index d34bfeba..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FunctionScope.js","sourceRoot":"","sources":["../../src/scope/FunctionScope.ts"],"names":[],"mappings":";;;AACA,oDAA0D;AAM1D,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,aAAc,SAAQ,qBAS3B;IACC,YACE,YAA0B,EAC1B,UAAkC,EAClC,KAA6B,EAC7B,kBAA2B;QAE3B,KAAK,CACH,YAAY,EACZ,qBAAS,CAAC,QAAQ,EAClB,UAAU,EACV,KAAK,EACL,kBAAkB,CACnB,CAAC;QAEF,oDAAoD;QACpD,wDAAwD;QACxD,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,uBAAuB,EAAE;YAC9D,IAAI,CAAC,cAAc,CAAC,WAAW,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;SACxE;IACH,CAAC;IAED,iGAAiG;IACjG,kBAAkB;IAClB,iFAAiF;IACjF,sBAAsB;IACtB,yBAAyB;IACzB,QAAQ;IACE,iBAAiB,CAAC,GAAc,EAAE,QAAkB;;QAC5D,0EAA0E;QAC1E,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,sBAAc,CAAC,OAAO,EAAE;YAC9C,OAAO,IAAI,CAAC;SACb;QAED,MAAM,SAAS,GAAG,MAAA,MAAA,IAAI,CAAC,KAAK,CAAC,IAAI,0CAAE,KAAK,CAAC,CAAC,CAAC,mCAAI,CAAC,CAAC,CAAC;QAElD,iDAAiD;QACjD,OAAO,CAAC,CACN,CACE,QAAQ,CAAC,KAAK,KAAK,IAAI;YACvB,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,IAAI,0CAA0C;YACjF,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC,CACvD,CAAC,+BAA+B;SAClC,CAAC;IACJ,CAAC;CACF;AAEQ,sCAAa"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts deleted file mode 100644 index 5cdeb57f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class FunctionTypeScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: FunctionTypeScope['upper'], block: FunctionTypeScope['block']); -} -export { FunctionTypeScope }; -//# sourceMappingURL=FunctionTypeScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map deleted file mode 100644 index fa77ec34..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FunctionTypeScope.d.ts","sourceRoot":"","sources":["../../src/scope/FunctionTypeScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,iBAAkB,SAAQ,SAAS,CACvC,SAAS,CAAC,YAAY,EACpB,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,iBAAiB,GAC1B,QAAQ,CAAC,+BAA+B,GACxC,QAAQ,CAAC,cAAc,GACvB,QAAQ,CAAC,iBAAiB,EAC5B,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,iBAAiB,CAAC,OAAO,CAAC,EACtC,KAAK,EAAE,iBAAiB,CAAC,OAAO,CAAC;CAIpC;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js deleted file mode 100644 index 3d7fe797..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FunctionTypeScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class FunctionTypeScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.functionType, upperScope, block, false); - } -} -exports.FunctionTypeScope = FunctionTypeScope; -//# sourceMappingURL=FunctionTypeScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map deleted file mode 100644 index 6bb883e2..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FunctionTypeScope.js","sourceRoot":"","sources":["../../src/scope/FunctionTypeScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,iBAAkB,SAAQ,qBAQ/B;IACC,YACE,YAA0B,EAC1B,UAAsC,EACtC,KAAiC;QAEjC,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACxE,CAAC;CACF;AAEQ,8CAAiB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts deleted file mode 100644 index aab46334..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { ImplicitLibVariableOptions } from '../variable'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class GlobalScope extends ScopeBase { - private readonly implicit; - constructor(scopeManager: ScopeManager, block: GlobalScope['block']); - defineImplicitVariable(name: string, options: ImplicitLibVariableOptions): void; - close(scopeManager: ScopeManager): Scope | null; -} -export { GlobalScope }; -//# sourceMappingURL=GlobalScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map deleted file mode 100644 index 129515e8..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GlobalScope.d.ts","sourceRoot":"","sources":["../../src/scope/GlobalScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAMzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,0BAA0B,EAAY,MAAM,aAAa,CAAC;AAExE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS,CACjC,SAAS,CAAC,MAAM,EAChB,QAAQ,CAAC,OAAO;AAChB;;GAEG;AACH,IAAI,CACL;IAEC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAQvB;gBAEU,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;IAS5D,sBAAsB,CAC3B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,0BAA0B,GAClC,IAAI;IAUA,KAAK,CAAC,YAAY,EAAE,YAAY,GAAG,KAAK,GAAG,IAAI;CAuBvD;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js deleted file mode 100644 index 2d163437..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GlobalScope = void 0; -const types_1 = require("@typescript-eslint/types"); -const assert_1 = require("../assert"); -const ImplicitGlobalVariableDefinition_1 = require("../definition/ImplicitGlobalVariableDefinition"); -const variable_1 = require("../variable"); -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class GlobalScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, block) { - super(scopeManager, ScopeType_1.ScopeType.global, null, block, false); - this.implicit = { - set: new Map(), - variables: [], - leftToBeResolved: [], - }; - } - defineImplicitVariable(name, options) { - this.defineVariable(new variable_1.ImplicitLibVariable(this, name, options), this.set, this.variables, null, null); - } - close(scopeManager) { - (0, assert_1.assert)(this.leftToResolve); - for (const ref of this.leftToResolve) { - if (ref.maybeImplicitGlobal && !this.set.has(ref.identifier.name)) { - // create an implicit global variable from assignment expression - const info = ref.maybeImplicitGlobal; - const node = info.pattern; - if (node && node.type === types_1.AST_NODE_TYPES.Identifier) { - this.defineVariable(node.name, this.implicit.set, this.implicit.variables, node, new ImplicitGlobalVariableDefinition_1.ImplicitGlobalVariableDefinition(info.pattern, info.node)); - } - } - } - this.implicit.leftToBeResolved = this.leftToResolve; - return super.close(scopeManager); - } -} -exports.GlobalScope = GlobalScope; -//# sourceMappingURL=GlobalScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map deleted file mode 100644 index f13f4481..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GlobalScope.js","sourceRoot":"","sources":["../../src/scope/GlobalScope.ts"],"names":[],"mappings":";;;AACA,oDAA0D;AAE1D,sCAAmC;AACnC,qGAAkG;AAIlG,0CAAkD;AAElD,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,WAAY,SAAQ,qBAOzB;IAYC,YAAY,YAA0B,EAAE,KAA2B;QACjE,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;QAC1D,IAAI,CAAC,QAAQ,GAAG;YACd,GAAG,EAAE,IAAI,GAAG,EAAoB;YAChC,SAAS,EAAE,EAAE;YACb,gBAAgB,EAAE,EAAE;SACrB,CAAC;IACJ,CAAC;IAEM,sBAAsB,CAC3B,IAAY,EACZ,OAAmC;QAEnC,IAAI,CAAC,cAAc,CACjB,IAAI,8BAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,EAC5C,IAAI,CAAC,GAAG,EACR,IAAI,CAAC,SAAS,EACd,IAAI,EACJ,IAAI,CACL,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,YAA0B;QACrC,IAAA,eAAM,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAE3B,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,aAAa,EAAE;YACpC,IAAI,GAAG,CAAC,mBAAmB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;gBACjE,gEAAgE;gBAChE,MAAM,IAAI,GAAG,GAAG,CAAC,mBAAmB,CAAC;gBACrC,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC;gBAC1B,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU,EAAE;oBACnD,IAAI,CAAC,cAAc,CACjB,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,QAAQ,CAAC,GAAG,EACjB,IAAI,CAAC,QAAQ,CAAC,SAAS,EACvB,IAAI,EACJ,IAAI,mEAAgC,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAC9D,CAAC;iBACH;aACF;SACF;QAED,IAAI,CAAC,QAAQ,CAAC,gBAAgB,GAAG,IAAI,CAAC,aAAa,CAAC;QACpD,OAAO,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IACnC,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts deleted file mode 100644 index b8ee01c0..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class MappedTypeScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: MappedTypeScope['upper'], block: MappedTypeScope['block']); -} -export { MappedTypeScope }; -//# sourceMappingURL=MappedTypeScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map deleted file mode 100644 index 727fa23f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MappedTypeScope.d.ts","sourceRoot":"","sources":["../../src/scope/MappedTypeScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,eAAgB,SAAQ,SAAS,CACrC,SAAS,CAAC,UAAU,EACpB,QAAQ,CAAC,YAAY,EACrB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,eAAe,CAAC,OAAO,CAAC,EACpC,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC;CAIlC;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js deleted file mode 100644 index 81879c5f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MappedTypeScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class MappedTypeScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.mappedType, upperScope, block, false); - } -} -exports.MappedTypeScope = MappedTypeScope; -//# sourceMappingURL=MappedTypeScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map deleted file mode 100644 index f33fab4d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MappedTypeScope.js","sourceRoot":"","sources":["../../src/scope/MappedTypeScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,eAAgB,SAAQ,qBAI7B;IACC,YACE,YAA0B,EAC1B,UAAoC,EACpC,KAA+B;QAE/B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACtE,CAAC;CACF;AAEQ,0CAAe"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts deleted file mode 100644 index ac537d89..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class ModuleScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: ModuleScope['upper'], block: ModuleScope['block']); -} -export { ModuleScope }; -//# sourceMappingURL=ModuleScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map deleted file mode 100644 index 448b9b68..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ModuleScope.d.ts","sourceRoot":"","sources":["../../src/scope/ModuleScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC;gBAE1E,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,EAChC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;CAI9B;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js deleted file mode 100644 index 9d84e34a..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ModuleScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class ModuleScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.module, upperScope, block, false); - } -} -exports.ModuleScope = ModuleScope; -//# sourceMappingURL=ModuleScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map deleted file mode 100644 index 05ded0c5..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ModuleScope.js","sourceRoot":"","sources":["../../src/scope/ModuleScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,WAAY,SAAQ,qBAAoD;IAC5E,YACE,YAA0B,EAC1B,UAAgC,EAChC,KAA2B;QAE3B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts deleted file mode 100644 index 78d66cf7..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type { BlockScope } from './BlockScope'; -import type { CatchScope } from './CatchScope'; -import type { ClassFieldInitializerScope } from './ClassFieldInitializerScope'; -import type { ClassScope } from './ClassScope'; -import type { ClassStaticBlockScope } from './ClassStaticBlockScope'; -import type { ConditionalTypeScope } from './ConditionalTypeScope'; -import type { ForScope } from './ForScope'; -import type { FunctionExpressionNameScope } from './FunctionExpressionNameScope'; -import type { FunctionScope } from './FunctionScope'; -import type { FunctionTypeScope } from './FunctionTypeScope'; -import type { GlobalScope } from './GlobalScope'; -import type { MappedTypeScope } from './MappedTypeScope'; -import type { ModuleScope } from './ModuleScope'; -import type { SwitchScope } from './SwitchScope'; -import type { TSEnumScope } from './TSEnumScope'; -import type { TSModuleScope } from './TSModuleScope'; -import type { TypeScope } from './TypeScope'; -import type { WithScope } from './WithScope'; -type Scope = BlockScope | CatchScope | ClassScope | ClassFieldInitializerScope | ClassStaticBlockScope | ConditionalTypeScope | ForScope | FunctionExpressionNameScope | FunctionScope | FunctionTypeScope | GlobalScope | MappedTypeScope | ModuleScope | SwitchScope | TSEnumScope | TSModuleScope | TypeScope | WithScope; -export { Scope }; -//# sourceMappingURL=Scope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map deleted file mode 100644 index fdc2e09b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Scope.d.ts","sourceR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,WAAW,GACX,WAAW,GACX,WAAW,GACX,aAAa,GACb,SAAS,GACT,SAAS,CAAC;AAEd,OAAO,EAAE,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js deleted file mode 100644 index 676430c1..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Scope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map deleted file mode 100644 index 03b04c83..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../src/scope/Scope.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts deleted file mode 100644 index 8ffeefb6..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts +++ /dev/null @@ -1,107 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { Definition } from '../definition'; -import type { ReferenceImplicitGlobal } from '../referencer/Reference'; -import { Reference, ReferenceFlag } from '../referencer/Reference'; -import type { ScopeManager } from '../ScopeManager'; -import { Variable } from '../variable'; -import type { FunctionScope } from './FunctionScope'; -import type { GlobalScope } from './GlobalScope'; -import type { ModuleScope } from './ModuleScope'; -import type { Scope } from './Scope'; -import { ScopeType } from './ScopeType'; -import type { TSModuleScope } from './TSModuleScope'; -type VariableScope = GlobalScope | FunctionScope | ModuleScope | TSModuleScope; -declare abstract class ScopeBase { - #private; - /** - * A unique ID for this instance - primarily used to help debugging and testing - */ - readonly $id: number; - /** - * The AST node which created this scope. - * @public - */ - readonly block: TBlock; - /** - * The array of child scopes. This does not include grandchild scopes. - * @public - */ - readonly childScopes: Scope[]; - /** - * Whether this scope is created by a FunctionExpression. - * @public - */ - readonly functionExpressionScope: boolean; - /** - * Whether 'use strict' is in effect in this scope. - * @public - */ - isStrict: boolean; - /** - * List of {@link Reference}s that are left to be resolved (i.e. which - * need to be linked to the variable they refer to). - */ - protected leftToResolve: Reference[] | null; - /** - * Any variable {@link Reference} found in this scope. - * This includes occurrences of local variables as well as variables from parent scopes (including the global scope). - * For local variables this also includes defining occurrences (like in a 'var' statement). - * In a 'function' scope this does not include the occurrences of the formal parameter in the parameter list. - * @public - */ - readonly references: Reference[]; - /** - * The map from variable names to variable objects. - * @public - */ - readonly set: Map; - /** - * The {@link Reference}s that are not resolved with this scope. - * @public - */ - readonly through: Reference[]; - /** - * The type of scope - * @public - */ - readonly type: TType; - /** - * Reference to the parent {@link Scope}. - * @public - */ - readonly upper: TUpper; - /** - * The scoped {@link Variable}s of this scope. - * In the case of a 'function' scope this includes the automatic argument `arguments` as its first element, as well - * as all further formal arguments. - * This does not include variables which are defined in child scopes. - * @public - */ - readonly variables: Variable[]; - /** - * For scopes that can contain variable declarations, this is a self-reference. - * For other scope types this is the *variableScope* value of the parent scope. - * @public - */ - readonly variableScope: VariableScope; - constructor(scopeManager: ScopeManager, type: TType, upperScope: TUpper, block: TBlock, isMethodDefinition: boolean); - private isVariableScope; - shouldStaticallyClose(): boolean; - private shouldStaticallyCloseForGlobal; - close(scopeManager: ScopeManager): Scope | null; - /** - * To override by function scopes. - * References in default parameters isn't resolved to variables which are in their function body. - */ - protected isValidResolution(_ref: Reference, _variable: Variable): boolean; - protected delegateToUpperScope(ref: Reference): void; - private addDeclaredVariablesOfNode; - protected defineVariable(nameOrVariable: string | Variable, set: Map, variables: Variable[], node: TSESTree.Identifier | null, def: Definition | null): void; - defineIdentifier(node: TSESTree.Identifier, def: Definition): void; - defineLiteralIdentifier(node: TSESTree.StringLiteral, def: Definition): void; - referenceValue(node: TSESTree.Identifier | TSESTree.JSXIdentifier, assign?: ReferenceFlag, writeExpr?: TSESTree.Expression | null, maybeImplicitGlobal?: ReferenceImplicitGlobal | null, init?: boolean): void; - referenceType(node: TSESTree.Identifier): void; - referenceDualValueType(node: TSESTree.Identifier): void; -} -export { ScopeBase }; -//# sourceMappingURL=ScopeBase.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map deleted file mode 100644 index 58660337..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ScopeBase.d.ts","sourceRoot":"","sources":["../../src/scope/ScopeBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAIzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EACL,SAAS,EACT,aAAa,EAEd,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AA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AAS,EAAE,SAAS,EAAE,QAAQ,GAAG,OAAO;IAI1E,SAAS,CAAC,oBAAoB,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI;IAQpD,OAAO,CAAC,0BAA0B;IAmBlC,SAAS,CAAC,cAAc,CACtB,cAAc,EAAE,MAAM,GAAG,QAAQ,EACjC,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,EAC1B,SAAS,EAAE,QAAQ,EAAE,EACrB,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI,EAChC,GAAG,EAAE,UAAU,GAAG,IAAI,GACrB,IAAI;IAuBA,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE,UAAU,GAAG,IAAI;IAIlE,uBAAuB,CAC5B,IAAI,EAAE,QAAQ,CAAC,aAAa,EAC5B,GAAG,EAAE,UAAU,GACd,IAAI;IAIA,cAAc,CACnB,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,EAClD,MAAM,GAAE,aAAkC,EAC1C,SAAS,CAAC,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI,EACtC,mBAAmB,CAAC,EAAE,uBAAuB,GAAG,IAAI,EACpD,IAAI,UAAQ,GACX,IAAI;IAeA,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;IAe9C,sBAAsB,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,GAAG,IAAI;CAc/D;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js deleted file mode 100644 index 1e4c63a0..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js +++ /dev/null @@ -1,363 +0,0 @@ -"use strict"; -var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -}; -var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _ScopeBase_declaredVariables, _ScopeBase_dynamic, _ScopeBase_staticCloseRef, _ScopeBase_dynamicCloseRef, _ScopeBase_globalCloseRef; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ScopeBase = void 0; -const types_1 = require("@typescript-eslint/types"); -const assert_1 = require("../assert"); -const definition_1 = require("../definition"); -const ID_1 = require("../ID"); -const Reference_1 = require("../referencer/Reference"); -const variable_1 = require("../variable"); -const ScopeType_1 = require("./ScopeType"); -/** - * Test if scope is strict - */ -function isStrictScope(scope, block, isMethodDefinition) { - var _a; - let body; - // When upper scope is exists and strict, inner scope is also strict. - if ((_a = scope.upper) === null || _a === void 0 ? void 0 : _a.isStrict) { - return true; - } - if (isMethodDefinition) { - return true; - } - if (scope.type === ScopeType_1.ScopeType.class || - scope.type === ScopeType_1.ScopeType.conditionalType || - scope.type === ScopeType_1.ScopeType.functionType || - scope.type === ScopeType_1.ScopeType.mappedType || - scope.type === ScopeType_1.ScopeType.module || - scope.type === ScopeType_1.ScopeType.tsEnum || - scope.type === ScopeType_1.ScopeType.tsModule || - scope.type === ScopeType_1.ScopeType.type) { - return true; - } - if (scope.type === ScopeType_1.ScopeType.block || scope.type === ScopeType_1.ScopeType.switch) { - return false; - } - if (scope.type === ScopeType_1.ScopeType.function) { - const functionBody = block; - switch (functionBody.type) { - case types_1.AST_NODE_TYPES.ArrowFunctionExpression: - if (functionBody.body.type !== types_1.AST_NODE_TYPES.BlockStatement) { - return false; - } - body = functionBody.body; - break; - case types_1.AST_NODE_TYPES.Program: - body = functionBody; - break; - default: - body = functionBody.body; - } - if (!body) { - return false; - } - } - else if (scope.type === ScopeType_1.ScopeType.global) { - body = block; - } - else { - return false; - } - // Search 'use strict' directive. - for (const stmt of body.body) { - if (stmt.type !== types_1.AST_NODE_TYPES.ExpressionStatement) { - break; - } - if (stmt.directive === 'use strict') { - return true; - } - const expr = stmt.expression; - if (expr.type !== types_1.AST_NODE_TYPES.Literal) { - break; - } - if (expr.raw === '"use strict"' || expr.raw === "'use strict'") { - return true; - } - if (expr.value === 'use strict') { - return true; - } - } - return false; -} -/** - * Register scope - */ -function registerScope(scopeManager, scope) { - scopeManager.scopes.push(scope); - const scopes = scopeManager.nodeToScope.get(scope.block); - if (scopes) { - scopes.push(scope); - } - else { - scopeManager.nodeToScope.set(scope.block, [scope]); - } -} -const generator = (0, ID_1.createIdGenerator)(); -const VARIABLE_SCOPE_TYPES = new Set([ - ScopeType_1.ScopeType.classFieldInitializer, - ScopeType_1.ScopeType.classStaticBlock, - ScopeType_1.ScopeType.function, - ScopeType_1.ScopeType.global, - ScopeType_1.ScopeType.module, - ScopeType_1.ScopeType.tsModule, -]); -class ScopeBase { - constructor(scopeManager, type, upperScope, block, isMethodDefinition) { - /** - * A unique ID for this instance - primarily used to help debugging and testing - */ - this.$id = generator(); - /** - * The array of child scopes. This does not include grandchild scopes. - * @public - */ - this.childScopes = []; - /** - * A map of the variables for each node in this scope. - * This is map is a pointer to the one in the parent ScopeManager instance - */ - _ScopeBase_declaredVariables.set(this, void 0); - /** - * Generally, through the lexical scoping of JS you can always know which variable an identifier in the source code - * refers to. There are a few exceptions to this rule. With `global` and `with` scopes you can only decide at runtime - * which variable a reference refers to. - * All those scopes are considered "dynamic". - */ - _ScopeBase_dynamic.set(this, void 0); - /** - * Whether this scope is created by a FunctionExpression. - * @public - */ - this.functionExpressionScope = false; - /** - * List of {@link Reference}s that are left to be resolved (i.e. which - * need to be linked to the variable they refer to). - */ - this.leftToResolve = []; - /** - * Any variable {@link Reference} found in this scope. - * This includes occurrences of local variables as well as variables from parent scopes (including the global scope). - * For local variables this also includes defining occurrences (like in a 'var' statement). - * In a 'function' scope this does not include the occurrences of the formal parameter in the parameter list. - * @public - */ - this.references = []; - /** - * The map from variable names to variable objects. - * @public - */ - this.set = new Map(); - /** - * The {@link Reference}s that are not resolved with this scope. - * @public - */ - this.through = []; - /** - * The scoped {@link Variable}s of this scope. - * In the case of a 'function' scope this includes the automatic argument `arguments` as its first element, as well - * as all further formal arguments. - * This does not include variables which are defined in child scopes. - * @public - */ - this.variables = []; - _ScopeBase_staticCloseRef.set(this, (ref) => { - const resolve = () => { - const name = ref.identifier.name; - const variable = this.set.get(name); - if (!variable) { - return false; - } - if (!this.isValidResolution(ref, variable)) { - return false; - } - // make sure we don't match a type reference to a value variable - const isValidTypeReference = ref.isTypeReference && variable.isTypeVariable; - const isValidValueReference = ref.isValueReference && variable.isValueVariable; - if (!isValidTypeReference && !isValidValueReference) { - return false; - } - variable.references.push(ref); - ref.resolved = variable; - return true; - }; - if (!resolve()) { - this.delegateToUpperScope(ref); - } - }); - _ScopeBase_dynamicCloseRef.set(this, (ref) => { - // notify all names are through to global - let current = this; - do { - current.through.push(ref); - current = current.upper; - } while (current); - }); - _ScopeBase_globalCloseRef.set(this, (ref, scopeManager) => { - // let/const/class declarations should be resolved statically. - // others should be resolved dynamically. - if (this.shouldStaticallyCloseForGlobal(ref, scopeManager)) { - __classPrivateFieldGet(this, _ScopeBase_staticCloseRef, "f").call(this, ref); - } - else { - __classPrivateFieldGet(this, _ScopeBase_dynamicCloseRef, "f").call(this, ref); - } - }); - const upperScopeAsScopeBase = upperScope; - this.type = type; - __classPrivateFieldSet(this, _ScopeBase_dynamic, this.type === ScopeType_1.ScopeType.global || this.type === ScopeType_1.ScopeType.with, "f"); - this.block = block; - this.variableScope = this.isVariableScope() - ? this - : upperScopeAsScopeBase.variableScope; - this.upper = upperScope; - /** - * Whether 'use strict' is in effect in this scope. - * @member {boolean} Scope#isStrict - */ - this.isStrict = isStrictScope(this, block, isMethodDefinition); - if (upperScopeAsScopeBase) { - // this is guaranteed to be correct at runtime - upperScopeAsScopeBase.childScopes.push(this); - } - __classPrivateFieldSet(this, _ScopeBase_declaredVariables, scopeManager.declaredVariables, "f"); - registerScope(scopeManager, this); - } - isVariableScope() { - return VARIABLE_SCOPE_TYPES.has(this.type); - } - shouldStaticallyClose() { - return !__classPrivateFieldGet(this, _ScopeBase_dynamic, "f"); - } - shouldStaticallyCloseForGlobal(ref, scopeManager) { - // On global scope, let/const/class declarations should be resolved statically. - const name = ref.identifier.name; - const variable = this.set.get(name); - if (!variable) { - return false; - } - // variable exists on the scope - // in module mode, we can statically resolve everything, regardless of its decl type - if (scopeManager.isModule()) { - return true; - } - // in script mode, only certain cases should be statically resolved - // Example: - // a `var` decl is ignored by the runtime if it clashes with a global name - // this means that we should not resolve the reference to the variable - const defs = variable.defs; - return (defs.length > 0 && - defs.every(def => { - var _a; - if (def.type === definition_1.DefinitionType.Variable && - ((_a = def.parent) === null || _a === void 0 ? void 0 : _a.type) === types_1.AST_NODE_TYPES.VariableDeclaration && - def.parent.kind === 'var') { - return false; - } - return true; - })); - } - close(scopeManager) { - let closeRef; - if (this.shouldStaticallyClose()) { - closeRef = __classPrivateFieldGet(this, _ScopeBase_staticCloseRef, "f"); - } - else if (this.type !== 'global') { - closeRef = __classPrivateFieldGet(this, _ScopeBase_dynamicCloseRef, "f"); - } - else { - closeRef = __classPrivateFieldGet(this, _ScopeBase_globalCloseRef, "f"); - } - // Try Resolving all references in this scope. - (0, assert_1.assert)(this.leftToResolve); - this.leftToResolve.forEach(ref => closeRef(ref, scopeManager)); - this.leftToResolve = null; - return this.upper; - } - /** - * To override by function scopes. - * References in default parameters isn't resolved to variables which are in their function body. - */ - isValidResolution(_ref, _variable) { - return true; - } - delegateToUpperScope(ref) { - const upper = this.upper; - if (upper === null || upper === void 0 ? void 0 : upper.leftToResolve) { - upper.leftToResolve.push(ref); - } - this.through.push(ref); - } - addDeclaredVariablesOfNode(variable, node) { - if (node == null) { - return; - } - let variables = __classPrivateFieldGet(this, _ScopeBase_declaredVariables, "f").get(node); - if (variables == null) { - variables = []; - __classPrivateFieldGet(this, _ScopeBase_declaredVariables, "f").set(node, variables); - } - if (!variables.includes(variable)) { - variables.push(variable); - } - } - defineVariable(nameOrVariable, set, variables, node, def) { - const name = typeof nameOrVariable === 'string' ? nameOrVariable : nameOrVariable.name; - let variable = set.get(name); - if (!variable) { - variable = - typeof nameOrVariable === 'string' - ? new variable_1.Variable(name, this) - : nameOrVariable; - set.set(name, variable); - variables.push(variable); - } - if (def) { - variable.defs.push(def); - this.addDeclaredVariablesOfNode(variable, def.node); - this.addDeclaredVariablesOfNode(variable, def.parent); - } - if (node) { - variable.identifiers.push(node); - } - } - defineIdentifier(node, def) { - this.defineVariable(node.name, this.set, this.variables, node, def); - } - defineLiteralIdentifier(node, def) { - this.defineVariable(node.value, this.set, this.variables, null, def); - } - referenceValue(node, assign = Reference_1.ReferenceFlag.Read, writeExpr, maybeImplicitGlobal, init = false) { - var _a; - const ref = new Reference_1.Reference(node, this, assign, writeExpr, maybeImplicitGlobal, init, Reference_1.ReferenceTypeFlag.Value); - this.references.push(ref); - (_a = this.leftToResolve) === null || _a === void 0 ? void 0 : _a.push(ref); - } - referenceType(node) { - var _a; - const ref = new Reference_1.Reference(node, this, Reference_1.ReferenceFlag.Read, null, null, false, Reference_1.ReferenceTypeFlag.Type); - this.references.push(ref); - (_a = this.leftToResolve) === null || _a === void 0 ? void 0 : _a.push(ref); - } - referenceDualValueType(node) { - var _a; - const ref = new Reference_1.Reference(node, this, Reference_1.ReferenceFlag.Read, null, null, false, Reference_1.ReferenceTypeFlag.Type | Reference_1.ReferenceTypeFlag.Value); - this.references.push(ref); - (_a = this.leftToResolve) === null || _a === void 0 ? void 0 : _a.push(ref); - } -} -exports.ScopeBase = ScopeBase; -_ScopeBase_declaredVariables = new WeakMap(), _ScopeBase_dynamic = new WeakMap(), _ScopeBase_staticCloseRef = new WeakMap(), _ScopeBase_dynamicCloseRef = new WeakMap(), _ScopeBase_globalCloseRef = new WeakMap(); -//# sourceMappingURL=ScopeBase.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map deleted file mode 100644 index 4eff7f75..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ScopeBase.js","sourceRoot":"","sources":["../../src/scope/ScopeBase.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,oDAA0D;AAE1D,sCAAmC;AAEnC,8CAA+C;AAC/C,8BAA0C;AAE1C,uDAIiC;AAEjC,0CAAuC;AAKvC,2CAAwC;AAGxC;;GAEG;AACH,SAAS,aAAa,CACpB,KAAY,EACZ,KAAoB,EACpB,kBAA2B;;IAE3B,IAAI,IAAmE,CAAC;IAExE,qEAAqE;IACrE,IAAI,MAAA,KAAK,CAAC,KAAK,0CAAE,QAAQ,EAAE;QACzB,OAAO,IAAI,CAAC;KACb;IAED,IAAI,kBAAkB,EAAE;QACtB,OAAO,IAAI,CAAC;KACb;IAED,IACE,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,KAAK;QAC9B,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,eAAe;QACxC,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,YAAY;QACrC,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,UAAU;QACnC,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,MAAM;QAC/B,KAAK,CAAC,IAAI,KAAK,qBAAS,CAAC,MAAM;QAC/B,KAAK,CAAC,IAAI,KAA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B,IAAkD,EAClD,SAAwB,yBAAa,CAAC,IAAI,EAC1C,SAAsC,EACtC,mBAAoD,EACpD,IAAI,GAAG,KAAK;;QAEZ,MAAM,GAAG,GAAG,IAAI,qBAAS,CACvB,IAAI,EACJ,IAAa,EACb,MAAM,EACN,SAAS,EACT,mBAAmB,EACnB,IAAI,EACJ,6BAAiB,CAAC,KAAK,CACxB,CAAC;QAEF,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,MAAA,IAAI,CAAC,aAAa,0CAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;IAEM,aAAa,CAAC,IAAyB;;QAC5C,MAAM,GAAG,GAAG,IAAI,qBAAS,CACvB,IAAI,EACJ,IAAa,EACb,yBAAa,CAAC,IAAI,EAClB,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,6BAAiB,CAAC,IAAI,CACvB,CAAC;QAEF,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,MAAA,IAAI,CAAC,aAAa,0CAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;IAEM,sBAAsB,CAAC,IAAyB;;QACrD,MAAM,GAAG,GAAG,IAAI,qBAAS,CACvB,IAAI,EACJ,IAAa,EACb,yBAAa,CAAC,IAAI,EAClB,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,6BAAiB,CAAC,IAAI,GAAG,6BAAiB,CAAC,KAAK,CACjD,CAAC;QAEF,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,MAAA,IAAI,CAAC,aAAa,0CAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;CACF;AAEQ,8BAAS"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts deleted file mode 100644 index 8b5dea31..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -declare enum ScopeType { - block = "block", - catch = "catch", - class = "class", - classFieldInitializer = "class-field-initializer", - classStaticBlock = "class-static-block", - conditionalType = "conditionalType", - for = "for", - function = "function", - functionExpressionName = "function-expression-name", - functionType = "functionType", - global = "global", - mappedType = "mappedType", - module = "module", - switch = "switch", - tsEnum = "tsEnum", - tsModule = "tsModule", - type = "type", - with = "with" -} -export { ScopeType }; -//# sourceMappingURL=ScopeType.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map deleted file mode 100644 index 7201b33a..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ScopeType.d.ts","sourceRoot":"","sources":["../../src/scope/ScopeType.ts"],"names":[],"mappings":"AAAA,aAAK,SAAS;IACZ,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,qBAAqB,4BAA4B;IACjD,gBAAgB,uBAAuB;IACvC,eAAe,oBAAoB;IACnC,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,sBAAsB,6BAA6B;IACnD,YAAY,iBAAiB;IAC7B,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,IAAI,SAAS;CACd;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js deleted file mode 100644 index 93dab0eb..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ScopeType = void 0; -var ScopeType; -(function (ScopeType) { - ScopeType["block"] = "block"; - ScopeType["catch"] = "catch"; - ScopeType["class"] = "class"; - ScopeType["classFieldInitializer"] = "class-field-initializer"; - ScopeType["classStaticBlock"] = "class-static-block"; - ScopeType["conditionalType"] = "conditionalType"; - ScopeType["for"] = "for"; - ScopeType["function"] = "function"; - ScopeType["functionExpressionName"] = "function-expression-name"; - ScopeType["functionType"] = "functionType"; - ScopeType["global"] = "global"; - ScopeType["mappedType"] = "mappedType"; - ScopeType["module"] = "module"; - ScopeType["switch"] = "switch"; - ScopeType["tsEnum"] = "tsEnum"; - ScopeType["tsModule"] = "tsModule"; - ScopeType["type"] = "type"; - ScopeType["with"] = "with"; -})(ScopeType || (exports.ScopeType = ScopeType = {})); -//# sourceMappingURL=ScopeType.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map deleted file mode 100644 index 6481f328..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ScopeType.js","sourceRoot":"","sources":["../../src/scope/ScopeType.ts"],"names":[],"mappings":";;;AAAA,IAAK,SAmBJ;AAnBD,WAAK,SAAS;IACZ,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,8DAAiD,CAAA;IACjD,oDAAuC,CAAA;IACvC,gDAAmC,CAAA;IACnC,wBAAW,CAAA;IACX,kCAAqB,CAAA;IACrB,gEAAmD,CAAA;IACnD,0CAA6B,CAAA;IAC7B,8BAAiB,CAAA;IACjB,sCAAyB,CAAA;IACzB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,0BAAa,CAAA;IACb,0BAAa,CAAA;AACf,CAAC,EAnBI,SAAS,yBAAT,SAAS,QAmBb"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts deleted file mode 100644 index fe4c0dc1..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class SwitchScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: SwitchScope['upper'], block: SwitchScope['block']); -} -export { SwitchScope }; -//# sourceMappingURL=SwitchScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map deleted file mode 100644 index 1e9368bc..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SwitchScope.d.ts","sourceRoot":"","sources":["../../src/scope/SwitchScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS,CACjC,SAAS,CAAC,MAAM,EAChB,QAAQ,CAAC,eAAe,EACxB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,EAChC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;CAI9B;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js deleted file mode 100644 index 9229e4ed..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SwitchScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class SwitchScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.switch, upperScope, block, false); - } -} -exports.SwitchScope = SwitchScope; -//# sourceMappingURL=SwitchScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map deleted file mode 100644 index 6f65580e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SwitchScope.js","sourceRoot":"","sources":["../../src/scope/SwitchScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,WAAY,SAAQ,qBAIzB;IACC,YACE,YAA0B,EAC1B,UAAgC,EAChC,KAA2B;QAE3B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts deleted file mode 100644 index 38c09ea9..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class TSEnumScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: TSEnumScope['upper'], block: TSEnumScope['block']); -} -export { TSEnumScope }; -//# sourceMappingURL=TSEnumScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map deleted file mode 100644 index 3f589e4a..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TSEnumScope.d.ts","sourceRoot":"","sources":["../../src/scope/TSEnumScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,WAAY,SAAQ,SAAS,CACjC,SAAS,CAAC,MAAM,EAChB,QAAQ,CAAC,iBAAiB,EAC1B,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,EAChC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;CAI9B;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js deleted file mode 100644 index 1f51bfb1..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSEnumScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class TSEnumScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.tsEnum, upperScope, block, false); - } -} -exports.TSEnumScope = TSEnumScope; -//# sourceMappingURL=TSEnumScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map deleted file mode 100644 index 816eb2f6..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TSEnumScope.js","sourceRoot":"","sources":["../../src/scope/TSEnumScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,WAAY,SAAQ,qBAIzB;IACC,YACE,YAA0B,EAC1B,UAAgC,EAChC,KAA2B;QAE3B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClE,CAAC;CACF;AAEQ,kCAAW"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts deleted file mode 100644 index 386180a0..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class TSModuleScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: TSModuleScope['upper'], block: TSModuleScope['block']); -} -export { TSModuleScope }; -//# sourceMappingURL=TSModuleScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map deleted file mode 100644 index d4694253..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TSModuleScope.d.ts","sourceRoot":"","sources":["../../src/scope/TSModuleScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,aAAc,SAAQ,SAAS,CACnC,SAAS,CAAC,QAAQ,EAClB,QAAQ,CAAC,mBAAmB,EAC5B,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,aAAa,CAAC,OAAO,CAAC,EAClC,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC;CAIhC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js deleted file mode 100644 index 86279082..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSModuleScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class TSModuleScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.tsModule, upperScope, block, false); - } -} -exports.TSModuleScope = TSModuleScope; -//# sourceMappingURL=TSModuleScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map deleted file mode 100644 index 210e9862..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TSModuleScope.js","sourceRoot":"","sources":["../../src/scope/TSModuleScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,aAAc,SAAQ,qBAI3B;IACC,YACE,YAA0B,EAC1B,UAAkC,EAClC,KAA6B;QAE7B,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IACpE,CAAC;CACF;AAEQ,sCAAa"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts deleted file mode 100644 index bde4d536..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class TypeScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: TypeScope['upper'], block: TypeScope['block']); -} -export { TypeScope }; -//# sourceMappingURL=TypeScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map deleted file mode 100644 index 721d8588..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TypeScope.d.ts","sourceRoot":"","sources":["../../src/scope/TypeScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,SAAU,SAAQ,SAAS,CAC/B,SAAS,CAAC,IAAI,EACd,QAAQ,CAAC,sBAAsB,GAAG,QAAQ,CAAC,sBAAsB,EACjE,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,SAAS,CAAC,OAAO,CAAC,EAC9B,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC;CAI5B;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js deleted file mode 100644 index ebbf5fe6..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TypeScope = void 0; -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class TypeScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.type, upperScope, block, false); - } -} -exports.TypeScope = TypeScope; -//# sourceMappingURL=TypeScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map deleted file mode 100644 index a328ea3d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TypeScope.js","sourceRoot":"","sources":["../../src/scope/TypeScope.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,SAAU,SAAQ,qBAIvB;IACC,YACE,YAA0B,EAC1B,UAA8B,EAC9B,KAAyB;QAEzB,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAChE,CAAC;CACF;AAEQ,8BAAS"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts deleted file mode 100644 index 1eaa4854..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { ScopeManager } from '../ScopeManager'; -import type { Scope } from './Scope'; -import { ScopeBase } from './ScopeBase'; -import { ScopeType } from './ScopeType'; -declare class WithScope extends ScopeBase { - constructor(scopeManager: ScopeManager, upperScope: WithScope['upper'], block: WithScope['block']); - close(scopeManager: ScopeManager): Scope | null; -} -export { WithScope }; -//# sourceMappingURL=WithScope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map deleted file mode 100644 index e2943c8d..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WithScope.d.ts","sourceRoot":"","sources":["../../src/scope/WithScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,cAAM,SAAU,SAAQ,SAAS,CAC/B,SAAS,CAAC,IAAI,EACd,QAAQ,CAAC,aAAa,EACtB,KAAK,CACN;gBAEG,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,SAAS,CAAC,OAAO,CAAC,EAC9B,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC;IAI3B,KAAK,CAAC,YAAY,EAAE,YAAY,GAAG,KAAK,GAAG,IAAI;CAShD;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js deleted file mode 100644 index 734034d6..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WithScope = void 0; -const assert_1 = require("../assert"); -const ScopeBase_1 = require("./ScopeBase"); -const ScopeType_1 = require("./ScopeType"); -class WithScope extends ScopeBase_1.ScopeBase { - constructor(scopeManager, upperScope, block) { - super(scopeManager, ScopeType_1.ScopeType.with, upperScope, block, false); - } - close(scopeManager) { - if (this.shouldStaticallyClose()) { - return super.close(scopeManager); - } - (0, assert_1.assert)(this.leftToResolve); - this.leftToResolve.forEach(ref => this.delegateToUpperScope(ref)); - this.leftToResolve = null; - return this.upper; - } -} -exports.WithScope = WithScope; -//# sourceMappingURL=WithScope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map deleted file mode 100644 index a3b9a65f..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WithScope.js","sourceRoot":"","sources":["../../src/scope/WithScope.ts"],"names":[],"mappings":";;;AAEA,sCAAmC;AAGnC,2CAAwC;AACxC,2CAAwC;AAExC,MAAM,SAAU,SAAQ,qBAIvB;IACC,YACE,YAA0B,EAC1B,UAA8B,EAC9B,KAAyB;QAEzB,KAAK,CAAC,YAAY,EAAE,qBAAS,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAChE,CAAC;IACD,KAAK,CAAC,YAA0B;QAC9B,IAAI,IAAI,CAAC,qBAAqB,EAAE,EAAE;YAChC,OAAO,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;SAClC;QACD,IAAA,eAAM,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,CAAC;QAClE,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF;AAEQ,8BAAS"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts deleted file mode 100644 index 7bf60717..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -export * from './BlockScope'; -export * from './CatchScope'; -export * from './ClassFieldInitializerScope'; -export * from './ClassScope'; -export * from './ConditionalTypeScope'; -export * from './ForScope'; -export * from './FunctionExpressionNameScope'; -export * from './FunctionScope'; -export * from './FunctionTypeScope'; -export * from './GlobalScope'; -export * from './MappedTypeScope'; -export * from './ModuleScope'; -export * from './Scope'; -export * from './ScopeType'; -export * from './SwitchScope'; -export * from './TSEnumScope'; -export * from './TSModuleScope'; -export * from './TypeScope'; -export * from './WithScope'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map deleted file mode 100644 index 43f10ba3..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js b/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js deleted file mode 100644 index 22187136..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./BlockScope"), exports); -__exportStar(require("./CatchScope"), exports); -__exportStar(require("./ClassFieldInitializerScope"), exports); -__exportStar(require("./ClassScope"), exports); -__exportStar(require("./ConditionalTypeScope"), exports); -__exportStar(require("./ForScope"), exports); -__exportStar(require("./FunctionExpressionNameScope"), exports); -__exportStar(require("./FunctionScope"), exports); -__exportStar(require("./FunctionTypeScope"), exports); -__exportStar(require("./GlobalScope"), exports); -__exportStar(require("./MappedTypeScope"), exports); -__exportStar(require("./ModuleScope"), exports); -__exportStar(require("./Scope"), exports); -__exportStar(require("./ScopeType"), exports); -__exportStar(require("./SwitchScope"), exports); -__exportStar(require("./TSEnumScope"), exports); -__exportStar(require("./TSModuleScope"), exports); -__exportStar(require("./TypeScope"), exports); -__exportStar(require("./WithScope"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map b/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map deleted file mode 100644 index 2ceff644..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,+DAA6C;AAC7C,+CAA6B;AAC7B,yDAAuC;AACvC,6CAA2B;AAC3B,gEAA8C;AAC9C,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B;AAC9B,oDAAkC;AAClC,gDAA8B;AAC9B,0CAAwB;AACxB,8CAA4B;AAC5B,gDAA8B;AAC9B,gDAA8B;AAC9B,kDAAgC;AAChC,8CAA4B;AAC5B,8CAA4B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts deleted file mode 100644 index fd5e08be..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import { VariableBase } from './VariableBase'; -/** - * ESLint defines global variables using the eslint-scope Variable class - * This is declared her for consumers to use - */ -declare class ESLintScopeVariable extends VariableBase { - /** - * Written to by ESLint. - * If this key exists, this variable is a global variable added by ESLint. - * If this is `true`, this variable can be assigned arbitrary values. - * If this is `false`, this variable is readonly. - */ - writeable?: boolean; - /** - * Written to by ESLint. - * This property is undefined if there are no globals directive comments. - * The array of globals directive comments which defined this global variable in the source code file. - */ - eslintExplicitGlobal?: boolean; - /** - * Written to by ESLint. - * The configured value in config files. This can be different from `variable.writeable` if there are globals directive comments. - */ - eslintImplicitGlobalSetting?: 'readonly' | 'writable'; - /** - * Written to by ESLint. - * If this key exists, it is a global variable added by ESLint. - * If `true`, this global variable was defined by a globals directive comment in the source code file. - */ - eslintExplicitGlobalComments?: TSESTree.Comment[]; -} -export { ESLintScopeVariable }; -//# sourceMappingURL=ESLintScopeVariable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map deleted file mode 100644 index b544931c..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ESLintScopeVariable.d.ts","sourceRoot":"","sources":["../../src/variable/ESLintScopeVariable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;GAGG;AACH,cAAM,mBAAoB,SAAQ,YAAY;IAC5C;;;;;OAKG;IACI,SAAS,CAAC,EAAE,OAAO,CAAC;IAE3B;;;;OAIG;IACI,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAEtC;;;OAGG;IACI,2BAA2B,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAE7D;;;;OAIG;IACI,4BAA4B,CAAC,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;CAC1D;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js b/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js deleted file mode 100644 index f0a2f609..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ESLintScopeVariable = void 0; -const VariableBase_1 = require("./VariableBase"); -/** - * ESLint defines global variables using the eslint-scope Variable class - * This is declared her for consumers to use - */ -class ESLintScopeVariable extends VariableBase_1.VariableBase { -} -exports.ESLintScopeVariable = ESLintScopeVariable; -//# sourceMappingURL=ESLintScopeVariable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map b/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map deleted file mode 100644 index 09244356..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ESLintScopeVariable.js","sourceRoot":"","sources":["../../src/variable/ESLintScopeVariable.ts"],"names":[],"mappings":";;;AAEA,iDAA8C;AAE9C;;;GAGG;AACH,MAAM,mBAAoB,SAAQ,2BAAY;CA4B7C;AAEQ,kDAAmB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts deleted file mode 100644 index ad6ba004..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type { Scope } from '../scope'; -import { ESLintScopeVariable } from './ESLintScopeVariable'; -import type { Variable } from './Variable'; -interface ImplicitLibVariableOptions { - readonly eslintImplicitGlobalSetting?: ESLintScopeVariable['eslintImplicitGlobalSetting']; - readonly isTypeVariable?: boolean; - readonly isValueVariable?: boolean; - readonly writeable?: boolean; -} -/** - * An variable implicitly defined by the TS Lib - */ -declare class ImplicitLibVariable extends ESLintScopeVariable implements Variable { - /** - * `true` if the variable is valid in a type context, false otherwise - */ - readonly isTypeVariable: boolean; - /** - * `true` if the variable is valid in a value context, false otherwise - */ - readonly isValueVariable: boolean; - constructor(scope: Scope, name: string, { isTypeVariable, isValueVariable, writeable, eslintImplicitGlobalSetting, }: ImplicitLibVariableOptions); -} -export { ImplicitLibVariable, ImplicitLibVariableOptions }; -//# sourceMappingURL=ImplicitLibVariable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map deleted file mode 100644 index 1fbb27da..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ImplicitLibVariable.d.ts","sourceRoot":"","sources":["../../src/variable/ImplicitLibVariable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,UAAU,0BAA0B;IAClC,QAAQ,CAAC,2BAA2B,CAAC,EAAE,mBAAmB,CAAC,6BAA6B,CAAC,CAAC;IAC1F,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;GAEG;AACH,cAAM,mBAAoB,SAAQ,mBAAoB,YAAW,QAAQ;IACvE;;OAEG;IACH,SAAgB,cAAc,EAAE,OAAO,CAAC;IAExC;;OAEG;IACH,SAAgB,eAAe,EAAE,OAAO,CAAC;gBAGvC,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,MAAM,EACZ,EACE,cAAc,EACd,eAAe,EACf,SAAS,EACT,2BAA2B,GAC5B,EAAE,0BAA0B;CAShC;AAED,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js b/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js deleted file mode 100644 index 745a6aff..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ImplicitLibVariable = void 0; -const ESLintScopeVariable_1 = require("./ESLintScopeVariable"); -/** - * An variable implicitly defined by the TS Lib - */ -class ImplicitLibVariable extends ESLintScopeVariable_1.ESLintScopeVariable { - constructor(scope, name, { isTypeVariable, isValueVariable, writeable, eslintImplicitGlobalSetting, }) { - super(name, scope); - this.isTypeVariable = isTypeVariable !== null && isTypeVariable !== void 0 ? isTypeVariable : false; - this.isValueVariable = isValueVariable !== null && isValueVariable !== void 0 ? isValueVariable : false; - this.writeable = writeable !== null && writeable !== void 0 ? writeable : false; - this.eslintImplicitGlobalSetting = - eslintImplicitGlobalSetting !== null && eslintImplicitGlobalSetting !== void 0 ? eslintImplicitGlobalSetting : 'readonly'; - } -} -exports.ImplicitLibVariable = ImplicitLibVariable; -//# sourceMappingURL=ImplicitLibVariable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map b/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map deleted file mode 100644 index 74376abb..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ImplicitLibVariable.js","sourceRoot":"","sources":["../../src/variable/ImplicitLibVariable.ts"],"names":[],"mappings":";;;AACA,+DAA4D;AAU5D;;GAEG;AACH,MAAM,mBAAoB,SAAQ,yCAAmB;IAWnD,YACE,KAAY,EACZ,IAAY,EACZ,EACE,cAAc,EACd,eAAe,EACf,SAAS,EACT,2BAA2B,GACA;QAE7B,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACnB,IAAI,CAAC,cAAc,GAAG,cAAc,aAAd,cAAc,cAAd,cAAc,GAAI,KAAK,CAAC;QAC9C,IAAI,CAAC,eAAe,GAAG,eAAe,aAAf,eAAe,cAAf,eAAe,GAAI,KAAK,CAAC;QAChD,IAAI,CAAC,SAAS,GAAG,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,KAAK,CAAC;QACpC,IAAI,CAAC,2BAA2B;YAC9B,2BAA2B,aAA3B,2BAA2B,cAA3B,2BAA2B,GAAI,UAAU,CAAC;IAC9C,CAAC;CACF;AAEQ,kDAAmB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts deleted file mode 100644 index 83754b17..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { VariableBase } from './VariableBase'; -/** - * A Variable represents a locally scoped identifier. These include arguments to functions. - */ -declare class Variable extends VariableBase { - /** - * `true` if the variable is valid in a type context, false otherwise - * @public - */ - get isTypeVariable(): boolean; - /** - * `true` if the variable is valid in a value context, false otherwise - * @public - */ - get isValueVariable(): boolean; -} -export { Variable }; -//# sourceMappingURL=Variable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map deleted file mode 100644 index 9b56c4f4..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Variable.d.ts","sourceRoot":"","sources":["../../src/variable/Variable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;GAEG;AACH,cAAM,QAAS,SAAQ,YAAY;IACjC;;;OAGG;IACH,IAAW,cAAc,IAAI,OAAO,CAOnC;IAED;;;OAGG;IACH,IAAW,eAAe,IAAI,OAAO,CAOpC;CACF;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js b/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js deleted file mode 100644 index 8b72550e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Variable = void 0; -const VariableBase_1 = require("./VariableBase"); -/** - * A Variable represents a locally scoped identifier. These include arguments to functions. - */ -class Variable extends VariableBase_1.VariableBase { - /** - * `true` if the variable is valid in a type context, false otherwise - * @public - */ - get isTypeVariable() { - if (this.defs.length === 0) { - // we don't statically know whether this is a type or a value - return true; - } - return this.defs.some(def => def.isTypeDefinition); - } - /** - * `true` if the variable is valid in a value context, false otherwise - * @public - */ - get isValueVariable() { - if (this.defs.length === 0) { - // we don't statically know whether this is a type or a value - return true; - } - return this.defs.some(def => def.isVariableDefinition); - } -} -exports.Variable = Variable; -//# sourceMappingURL=Variable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map b/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map deleted file mode 100644 index 43c4b8c6..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Variable.js","sourceRoot":"","sources":["../../src/variable/Variable.ts"],"names":[],"mappings":";;;AAAA,iDAA8C;AAE9C;;GAEG;AACH,MAAM,QAAS,SAAQ,2BAAY;IACjC;;;OAGG;IACH,IAAW,cAAc;QACvB,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;YAC1B,6DAA6D;YAC7D,OAAO,IAAI,CAAC;SACb;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACH,IAAW,eAAe;QACxB,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;YAC1B,6DAA6D;YAC7D,OAAO,IAAI,CAAC;SACb;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACzD,CAAC;CACF;AAEQ,4BAAQ"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts deleted file mode 100644 index c74c7a38..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -import type { Definition } from '../definition'; -import type { Reference } from '../referencer/Reference'; -import type { Scope } from '../scope'; -declare class VariableBase { - /** - * A unique ID for this instance - primarily used to help debugging and testing - */ - readonly $id: number; - /** - * The array of the definitions of this variable. - * @public - */ - readonly defs: Definition[]; - /** - * True if the variable is considered used for the purposes of `no-unused-vars`, false otherwise. - * @public - */ - eslintUsed: boolean; - /** - * The array of `Identifier` nodes which define this variable. - * If this variable is redeclared, this array includes two or more nodes. - * @public - */ - readonly identifiers: TSESTree.Identifier[]; - /** - * The variable name, as given in the source code. - * @public - */ - readonly name: string; - /** - * List of {@link Reference} of this variable (excluding parameter entries) in its defining scope and all nested scopes. - * For defining occurrences only see {@link Variable#defs}. - * @public - */ - readonly references: Reference[]; - /** - * Reference to the enclosing Scope. - */ - readonly scope: Scope; - constructor(name: string, scope: Scope); -} -export { VariableBase }; -//# sourceMappingURL=VariableBase.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map deleted file mode 100644 index b830e835..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VariableBase.d.ts","sourceRoot":"","sources":["../../src/variable/VariableBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAItC,cAAM,YAAY;IAChB;;OAEG;IACH,SAAgB,GAAG,EAAE,MAAM,CAAe;IAE1C;;;OAGG;IACH,SAAgB,IAAI,EAAE,UAAU,EAAE,CAAM;IACxC;;;OAGG;IACI,UAAU,UAAS;IAC1B;;;;OAIG;IACH,SAAgB,WAAW,EAAE,QAAQ,CAAC,UAAU,EAAE,CAAM;IACxD;;;OAGG;IACH,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,SAAgB,UAAU,EAAE,SAAS,EAAE,CAAM;IAC7C;;OAEG;IACH,SAAgB,KAAK,EAAE,KAAK,CAAC;gBAEjB,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK;CAIvC;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js b/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js deleted file mode 100644 index 426eb0aa..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.VariableBase = void 0; -const ID_1 = require("../ID"); -const generator = (0, ID_1.createIdGenerator)(); -class VariableBase { - constructor(name, scope) { - /** - * A unique ID for this instance - primarily used to help debugging and testing - */ - this.$id = generator(); - /** - * The array of the definitions of this variable. - * @public - */ - this.defs = []; - /** - * True if the variable is considered used for the purposes of `no-unused-vars`, false otherwise. - * @public - */ - this.eslintUsed = false; - /** - * The array of `Identifier` nodes which define this variable. - * If this variable is redeclared, this array includes two or more nodes. - * @public - */ - this.identifiers = []; - /** - * List of {@link Reference} of this variable (excluding parameter entries) in its defining scope and all nested scopes. - * For defining occurrences only see {@link Variable#defs}. - * @public - */ - this.references = []; - this.name = name; - this.scope = scope; - } -} -exports.VariableBase = VariableBase; -//# sourceMappingURL=VariableBase.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map b/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map deleted file mode 100644 index 21e4280e..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VariableBase.js","sourceRoot":"","sources":["../../src/variable/VariableBase.ts"],"names":[],"mappings":";;;AAGA,8BAA0C;AAI1C,MAAM,SAAS,GAAG,IAAA,sBAAiB,GAAE,CAAC;AAEtC,MAAM,YAAY;IAsChB,YAAY,IAAY,EAAE,KAAY;QArCtC;;WAEG;QACa,QAAG,GAAW,SAAS,EAAE,CAAC;QAE1C;;;WAGG;QACa,SAAI,GAAiB,EAAE,CAAC;QACxC;;;WAGG;QACI,eAAU,GAAG,KAAK,CAAC;QAC1B;;;;WAIG;QACa,gBAAW,GAA0B,EAAE,CAAC;QAMxD;;;;WAIG;QACa,eAAU,GAAgB,EAAE,CAAC;QAO3C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAEQ,oCAAY"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts b/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts deleted file mode 100644 index e62df983..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { ESLintScopeVariable } from './ESLintScopeVariable'; -export { ImplicitLibVariable, ImplicitLibVariableOptions, } from './ImplicitLibVariable'; -export { Variable } from './Variable'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map b/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map deleted file mode 100644 index 4fdcff24..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/variable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EACL,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js b/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js deleted file mode 100644 index 1e36582b..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Variable = exports.ImplicitLibVariable = exports.ESLintScopeVariable = void 0; -var ESLintScopeVariable_1 = require("./ESLintScopeVariable"); -Object.defineProperty(exports, "ESLintScopeVariable", { enumerable: true, get: function () { return ESLintScopeVariable_1.ESLintScopeVariable; } }); -var ImplicitLibVariable_1 = require("./ImplicitLibVariable"); -Object.defineProperty(exports, "ImplicitLibVariable", { enumerable: true, get: function () { return ImplicitLibVariable_1.ImplicitLibVariable; } }); -var Variable_1 = require("./Variable"); -Object.defineProperty(exports, "Variable", { enumerable: true, get: function () { return Variable_1.Variable; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map b/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map deleted file mode 100644 index 4798d0e2..00000000 --- a/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/variable/index.ts"],"names":[],"mappings":";;;AAAA,6DAA4D;AAAnD,0HAAA,mBAAmB,OAAA;AAC5B,6DAG+B;AAF7B,0HAAA,mBAAmB,OAAA;AAGrB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/containsAllTypesByName.d.ts b/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/containsAllTypesByName.d.ts deleted file mode 100644 index 09557967..00000000 --- a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/containsAllTypesByName.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import * as ts from 'typescript'; -/** - * @param type Type being checked by name. - * @param allowAny Whether to consider `any` and `unknown` to match. - * @param allowedNames Symbol names checking on the type. - * @param matchAnyInstead Whether to instead just check if any parts match, rather than all parts. - * @returns Whether the type is, extends, or contains the allowed names (or all matches the allowed names, if mustMatchAll is true). - */ -export declare function containsAllTypesByName(type: ts.Type, allowAny: boolean, allowedNames: Set, matchAnyInstead?: boolean): boolean; -//# sourceMappingURL=containsAllTypesByName.d.ts.map diff --git a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getConstrainedTypeAtLocation.d.ts b/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getConstrainedTypeAtLocation.d.ts deleted file mode 100644 index 35798712..00000000 --- a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getConstrainedTypeAtLocation.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as ts from 'typescript'; -/** - * Resolves the given node's type. Will resolve to the type's generic constraint, if it has one. - */ -export declare function getConstrainedTypeAtLocation(checker: ts.TypeChecker, node: ts.Node): ts.Type; -//# sourceMappingURL=getConstrainedTypeAtLocation.d.ts.map diff --git a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getContextualType.d.ts b/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getContextualType.d.ts deleted file mode 100644 index 44bb8ab7..00000000 --- a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getContextualType.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import * as ts from 'typescript'; -/** - * Returns the contextual type of a given node. - * Contextual type is the type of the target the node is going into. - * i.e. the type of a called function's parameter, or the defined type of a variable declaration - */ -export declare function getContextualType(checker: ts.TypeChecker, node: ts.Expression): ts.Type | undefined; -//# sourceMappingURL=getContextualType.d.ts.map diff --git a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getDeclaration.d.ts b/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getDeclaration.d.ts deleted file mode 100644 index a7d65089..00000000 --- a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getDeclaration.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as ts from 'typescript'; -/** - * Gets the declaration for the given variable - */ -export declare function getDeclaration(checker: ts.TypeChecker, node: ts.Expression): ts.Declaration | null; -//# sourceMappingURL=getDeclaration.d.ts.map diff --git a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getSourceFileOfNode.d.ts b/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getSourceFileOfNode.d.ts deleted file mode 100644 index 4855880f..00000000 --- a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getSourceFileOfNode.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as ts from 'typescript'; -/** - * Gets the source file for a given node - */ -export declare function getSourceFileOfNode(node: ts.Node): ts.SourceFile; -//# sourceMappingURL=getSourceFileOfNode.d.ts.map diff --git a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getTokenAtPosition.d.ts b/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getTokenAtPosition.d.ts deleted file mode 100644 index c63d0820..00000000 --- a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getTokenAtPosition.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as ts from 'typescript'; -export declare function getTokenAtPosition(sourceFile: ts.SourceFile, position: number): ts.Node; -//# sourceMappingURL=getTokenAtPosition.d.ts.map diff --git a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getTypeArguments.d.ts b/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getTypeArguments.d.ts deleted file mode 100644 index 6214de79..00000000 --- a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getTypeArguments.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as ts from 'typescript'; -export declare function getTypeArguments(type: ts.TypeReference, checker: ts.TypeChecker): readonly ts.Type[]; -//# sourceMappingURL=getTypeArguments.d.ts.map diff --git a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getTypeName.d.ts b/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getTypeName.d.ts deleted file mode 100644 index 1d46b978..00000000 --- a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/getTypeName.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import * as ts from 'typescript'; -/** - * Get the type name of a given type. - * @param typeChecker The context sensitive TypeScript TypeChecker. - * @param type The type to get the name of. - */ -export declare function getTypeName(typeChecker: ts.TypeChecker, type: ts.Type): string; -//# sourceMappingURL=getTypeName.d.ts.map diff --git a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/index.d.ts b/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/index.d.ts deleted file mode 100644 index fbdc620a..00000000 --- a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export * from './containsAllTypesByName'; -export * from './getConstrainedTypeAtLocation'; -export * from './getContextualType'; -export * from './getDeclaration'; -export * from './getSourceFileOfNode'; -export * from './getTokenAtPosition'; -export * from './getTypeArguments'; -export * from './getTypeName'; -export * from './isTypeReadonly'; -export * from './isUnsafeAssignment'; -export * from './predicates'; -export * from './propertyTypes'; -export * from './requiresQuoting'; -export * from './typeFlagUtils'; -export { getDecorators, getModifiers, typescriptVersionIsAtLeast, } from '@typescript-eslint/typescript-estree'; -//# sourceMappingURL=index.d.ts.map diff --git a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/isTypeReadonly.d.ts b/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/isTypeReadonly.d.ts deleted file mode 100644 index 4ab19b5e..00000000 --- a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/isTypeReadonly.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import * as ts from 'typescript'; -export interface ReadonlynessOptions { - readonly treatMethodsAsReadonly?: boolean; -} -export declare const readonlynessOptionsSchema: { - type: string; - additionalProperties: boolean; - properties: { - treatMethodsAsReadonly: { - type: string; - }; - }; -}; -export declare const readonlynessOptionsDefaults: ReadonlynessOptions; -/** - * Checks if the given type is readonly - */ -declare function isTypeReadonly(checker: ts.TypeChecker, type: ts.Type, options?: ReadonlynessOptions): boolean; -export { isTypeReadonly }; -//# sourceMappingURL=isTypeReadonly.d.ts.map diff --git a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/isUnsafeAssignment.d.ts b/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/isUnsafeAssignment.d.ts deleted file mode 100644 index dd379ebc..00000000 --- a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/isUnsafeAssignment.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { TSESTree } from '@typescript-eslint/utils'; -import * as ts from 'typescript'; -/** - * Does a simple check to see if there is an any being assigned to a non-any type. - * - * This also checks generic positions to ensure there's no unsafe sub-assignments. - * Note: in the case of generic positions, it makes the assumption that the two types are the same. - * - * @example See tests for examples - * - * @returns false if it's safe, or an object with the two types if it's unsafe - */ -export declare function isUnsafeAssignment(type: ts.Type, receiver: ts.Type, checker: ts.TypeChecker, senderNode: TSESTree.Node | null): false | { - sender: ts.Type; - receiver: ts.Type; -}; -//# sourceMappingURL=isUnsafeAssignment.d.ts.map diff --git a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/predicates.d.ts b/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/predicates.d.ts deleted file mode 100644 index 895f5064..00000000 --- a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/predicates.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -import * as ts from 'typescript'; -/** - * Checks if the given type is (or accepts) nullable - * @param isReceiver true if the type is a receiving type (i.e. the type of a called function's parameter) - */ -export declare function isNullableType(type: ts.Type, { isReceiver, allowUndefined, }?: { - isReceiver?: boolean; - allowUndefined?: boolean; -}): boolean; -/** - * Checks if the given type is either an array type, - * or a union made up solely of array types. - */ -export declare function isTypeArrayTypeOrUnionOfArrayTypes(type: ts.Type, checker: ts.TypeChecker): boolean; -/** - * @returns true if the type is `never` - */ -export declare function isTypeNeverType(type: ts.Type): boolean; -/** - * @returns true if the type is `unknown` - */ -export declare function isTypeUnknownType(type: ts.Type): boolean; -export declare function isTypeReferenceType(type: ts.Type): type is ts.TypeReference; -/** - * @returns true if the type is `any` - */ -export declare function isTypeAnyType(type: ts.Type): boolean; -/** - * @returns true if the type is `any[]` - */ -export declare function isTypeAnyArrayType(type: ts.Type, checker: ts.TypeChecker): boolean; -/** - * @returns true if the type is `unknown[]` - */ -export declare function isTypeUnknownArrayType(type: ts.Type, checker: ts.TypeChecker): boolean; -export declare enum AnyType { - Any = 0, - AnyArray = 1, - Safe = 2 -} -/** - * @returns `AnyType.Any` if the type is `any`, `AnyType.AnyArray` if the type is `any[]` or `readonly any[]`, - * otherwise it returns `AnyType.Safe`. - */ -export declare function isAnyOrAnyArrayTypeDiscriminated(node: ts.Node, checker: ts.TypeChecker): AnyType; -/** - * @returns Whether a type is an instance of the parent type, including for the parent's base types. - */ -export declare function typeIsOrHasBaseType(type: ts.Type, parentType: ts.Type): boolean; -export declare function isTypeBigIntLiteralType(type: ts.Type): type is ts.BigIntLiteralType; -export declare function isTypeTemplateLiteralType(type: ts.Type): type is ts.TemplateLiteralType; -//# sourceMappingURL=predicates.d.ts.map diff --git a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/propertyTypes.d.ts b/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/propertyTypes.d.ts deleted file mode 100644 index c7c0156b..00000000 --- a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/propertyTypes.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import * as ts from 'typescript'; -export declare function getTypeOfPropertyOfName(checker: ts.TypeChecker, type: ts.Type, name: string, escapedName?: ts.__String): ts.Type | undefined; -export declare function getTypeOfPropertyOfType(checker: ts.TypeChecker, type: ts.Type, property: ts.Symbol): ts.Type | undefined; -//# sourceMappingURL=propertyTypes.d.ts.map diff --git a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/requiresQuoting.d.ts b/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/requiresQuoting.d.ts deleted file mode 100644 index aa63f84c..00000000 --- a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/requiresQuoting.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import * as ts from 'typescript'; -declare function requiresQuoting(name: string, target?: ts.ScriptTarget): boolean; -export { requiresQuoting }; -//# sourceMappingURL=requiresQuoting.d.ts.map diff --git a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/typeFlagUtils.d.ts b/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/typeFlagUtils.d.ts deleted file mode 100644 index 956076dc..00000000 --- a/node_modules/@typescript-eslint/type-utils/_ts3.4/dist/typeFlagUtils.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import * as ts from 'typescript'; -/** - * Gets all of the type flags in a type, iterating through unions automatically. - */ -export declare function getTypeFlags(type: ts.Type): ts.TypeFlags; -/** - * @param flagsToCheck The composition of one or more `ts.TypeFlags`. - * @param isReceiver Whether the type is a receiving type (e.g. the type of a - * called function's parameter). - * @remarks - * Note that if the type is a union, this function will decompose it into the - * parts and get the flags of every union constituent. If this is not desired, - * use the `isTypeFlag` function from tsutils. - */ -export declare function isTypeFlagSet(type: ts.Type, flagsToCheck: ts.TypeFlags, isReceiver?: boolean): boolean; -//# sourceMappingURL=typeFlagUtils.d.ts.map diff --git a/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts b/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts deleted file mode 100644 index d40e2047..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import * as ts from 'typescript'; -/** - * @param type Type being checked by name. - * @param allowAny Whether to consider `any` and `unknown` to match. - * @param allowedNames Symbol names checking on the type. - * @param matchAnyInstead Whether to instead just check if any parts match, rather than all parts. - * @returns Whether the type is, extends, or contains the allowed names (or all matches the allowed names, if mustMatchAll is true). - */ -export declare function containsAllTypesByName(type: ts.Type, allowAny: boolean, allowedNames: Set, matchAnyInstead?: boolean): boolean; -//# sourceMappingURL=containsAllTypesByName.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts.map b/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts.map deleted file mode 100644 index d043e638..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"containsAllTypesByName.d.ts","sourceRoot":"","sources":["../src/containsAllTypesByName.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAIjC;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,QAAQ,EAAE,OAAO,EACjB,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,EACzB,eAAe,UAAQ,GACtB,OAAO,CA+BT"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js b/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js deleted file mode 100644 index 9170b334..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.containsAllTypesByName = void 0; -const tsutils_1 = require("tsutils"); -const ts = __importStar(require("typescript")); -const typeFlagUtils_1 = require("./typeFlagUtils"); -/** - * @param type Type being checked by name. - * @param allowAny Whether to consider `any` and `unknown` to match. - * @param allowedNames Symbol names checking on the type. - * @param matchAnyInstead Whether to instead just check if any parts match, rather than all parts. - * @returns Whether the type is, extends, or contains the allowed names (or all matches the allowed names, if mustMatchAll is true). - */ -function containsAllTypesByName(type, allowAny, allowedNames, matchAnyInstead = false) { - if ((0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.Any | ts.TypeFlags.Unknown)) { - return !allowAny; - } - if ((0, tsutils_1.isTypeReference)(type)) { - type = type.target; - } - const symbol = type.getSymbol(); - if (symbol && allowedNames.has(symbol.name)) { - return true; - } - const predicate = (t) => containsAllTypesByName(t, allowAny, allowedNames, matchAnyInstead); - if ((0, tsutils_1.isUnionOrIntersectionType)(type)) { - return matchAnyInstead - ? type.types.some(predicate) - : type.types.every(predicate); - } - const bases = type.getBaseTypes(); - return (bases !== undefined && - (matchAnyInstead - ? bases.some(predicate) - : bases.length > 0 && bases.every(predicate))); -} -exports.containsAllTypesByName = containsAllTypesByName; -//# sourceMappingURL=containsAllTypesByName.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map b/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map deleted file mode 100644 index ca17ccbc..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/containsAllTypesByName.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"containsAllTypesByName.js","sourceRoot":"","sources":["../src/containsAllTypesByName.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAqE;AACrE,+CAAiC;AAEjC,mDAAgD;AAEhD;;;;;;GAMG;AACH,SAAgB,sBAAsB,CACpC,IAAa,EACb,QAAiB,EACjB,YAAyB,EACzB,eAAe,GAAG,KAAK;IAEvB,IAAI,IAAA,6BAAa,EAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE;QAChE,OAAO,CAAC,QAAQ,CAAC;KAClB;IAED,IAAI,IAAA,yBAAe,EAAC,IAAI,CAAC,EAAE;QACzB,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;KACpB;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;IAChC,IAAI,MAAM,IAAI,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;QAC3C,OAAO,IAAI,CAAC;KACb;IAED,MAAM,SAAS,GAAG,CAAC,CAAU,EAAW,EAAE,CACxC,sBAAsB,CAAC,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,eAAe,CAAC,CAAC;IAErE,IAAI,IAAA,mCAAyB,EAAC,IAAI,CAAC,EAAE;QACnC,OAAO,eAAe;YACpB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC;YAC5B,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;KACjC;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;IAElC,OAAO,CACL,KAAK,KAAK,SAAS;QACnB,CAAC,eAAe;YACd,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC;YACvB,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAChD,CAAC;AACJ,CAAC;AApCD,wDAoCC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts b/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts deleted file mode 100644 index a234f4d6..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type * as ts from 'typescript'; -/** - * Resolves the given node's type. Will resolve to the type's generic constraint, if it has one. - */ -export declare function getConstrainedTypeAtLocation(checker: ts.TypeChecker, node: ts.Node): ts.Type; -//# sourceMappingURL=getConstrainedTypeAtLocation.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts.map b/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts.map deleted file mode 100644 index 282f255a..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getConstrainedTypeAtLocation.d.ts","sourceRoot":"","sources":["../src/getConstrainedTypeAtLocation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,EAAE,CAAC,IAAI,CAKT"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js b/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js deleted file mode 100644 index 3d37ace9..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getConstrainedTypeAtLocation = void 0; -/** - * Resolves the given node's type. Will resolve to the type's generic constraint, if it has one. - */ -function getConstrainedTypeAtLocation(checker, node) { - const nodeType = checker.getTypeAtLocation(node); - const constrained = checker.getBaseConstraintOfType(nodeType); - return constrained !== null && constrained !== void 0 ? constrained : nodeType; -} -exports.getConstrainedTypeAtLocation = getConstrainedTypeAtLocation; -//# sourceMappingURL=getConstrainedTypeAtLocation.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js.map b/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js.map deleted file mode 100644 index e61fadf0..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getConstrainedTypeAtLocation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getConstrainedTypeAtLocation.js","sourceRoot":"","sources":["../src/getConstrainedTypeAtLocation.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,SAAgB,4BAA4B,CAC1C,OAAuB,EACvB,IAAa;IAEb,MAAM,QAAQ,GAAG,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACjD,MAAM,WAAW,GAAG,OAAO,CAAC,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IAE9D,OAAO,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,QAAQ,CAAC;AACjC,CAAC;AARD,oEAQC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts b/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts deleted file mode 100644 index cfd2c83a..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import * as ts from 'typescript'; -/** - * Returns the contextual type of a given node. - * Contextual type is the type of the target the node is going into. - * i.e. the type of a called function's parameter, or the defined type of a variable declaration - */ -export declare function getContextualType(checker: ts.TypeChecker, node: ts.Expression): ts.Type | undefined; -//# sourceMappingURL=getContextualType.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts.map b/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts.map deleted file mode 100644 index 01c81c2e..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getContextualType.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getContextualType.d.ts","sourceRoot":"","sources":["../src/getContextualType.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,IAAI,EAAE,EAAE,CAAC,UAAU,GAClB,EAAE,CAAC,IAAI,GAAG,SAAS,CAuCrB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js b/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js deleted file mode 100644 index d0bd2393..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getContextualType = void 0; -const tsutils_1 = require("tsutils"); -const ts = __importStar(require("typescript")); -/** - * Returns the contextual type of a given node. - * Contextual type is the type of the target the node is going into. - * i.e. the type of a called function's parameter, or the defined type of a variable declaration - */ -function getContextualType(checker, node) { - const parent = node.parent; - if (!parent) { - return; - } - if ((0, tsutils_1.isCallExpression)(parent) || (0, tsutils_1.isNewExpression)(parent)) { - if (node === parent.expression) { - // is the callee, so has no contextual type - return; - } - } - else if ((0, tsutils_1.isVariableDeclaration)(parent) || - (0, tsutils_1.isPropertyDeclaration)(parent) || - (0, tsutils_1.isParameterDeclaration)(parent)) { - return parent.type ? checker.getTypeFromTypeNode(parent.type) : undefined; - } - else if ((0, tsutils_1.isJsxExpression)(parent)) { - return checker.getContextualType(parent); - } - else if ((0, tsutils_1.isPropertyAssignment)(parent) && (0, tsutils_1.isIdentifier)(node)) { - return checker.getContextualType(node); - } - else if ((0, tsutils_1.isBinaryExpression)(parent) && - parent.operatorToken.kind === ts.SyntaxKind.EqualsToken && - parent.right === node) { - // is RHS of assignment - return checker.getTypeAtLocation(parent.left); - } - else if (![ts.SyntaxKind.TemplateSpan, ts.SyntaxKind.JsxExpression].includes(parent.kind)) { - // parent is not something we know we can get the contextual type of - return; - } - // TODO - support return statement checking - return checker.getContextualType(node); -} -exports.getContextualType = getContextualType; -//# sourceMappingURL=getContextualType.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js.map b/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js.map deleted file mode 100644 index d25f0bb7..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getContextualType.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getContextualType.js","sourceRoot":"","sources":["../src/getContextualType.ts"],"names":[],"mappings":";;;;;;;;;;;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AU,CAAC,aAAa,CAAC,CAAC,QAAQ,CACjE,MAAM,CAAC,IAAI,CACZ,EACD;QACA,oEAAoE;QACpE,OAAO;KACR;IACD,2CAA2C;IAE3C,OAAO,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;AACzC,CAAC;AA1CD,8CA0CC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts b/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts deleted file mode 100644 index 8e469f10..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type * as ts from 'typescript'; -/** - * Gets the declaration for the given variable - */ -export declare function getDeclaration(checker: ts.TypeChecker, node: ts.Expression): ts.Declaration | null; -//# sourceMappingURL=getDeclaration.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts.map b/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts.map deleted file mode 100644 index 9eab276d..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getDeclaration.d.ts","sourceRoot":"","sources":["../src/getDeclaration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC;;GAEG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,IAAI,EAAE,EAAE,CAAC,UAAU,GAClB,EAAE,CAAC,WAAW,GAAG,IAAI,CAOvB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js b/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js deleted file mode 100644 index 08fbac3a..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getDeclaration = void 0; -/** - * Gets the declaration for the given variable - */ -function getDeclaration(checker, node) { - var _a; - const symbol = checker.getSymbolAtLocation(node); - if (!symbol) { - return null; - } - const declarations = symbol.getDeclarations(); - return (_a = declarations === null || declarations === void 0 ? void 0 : declarations[0]) !== null && _a !== void 0 ? _a : null; -} -exports.getDeclaration = getDeclaration; -//# sourceMappingURL=getDeclaration.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js.map b/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js.map deleted file mode 100644 index 564598db..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getDeclaration.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getDeclaration.js","sourceRoot":"","sources":["../src/getDeclaration.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,SAAgB,cAAc,CAC5B,OAAuB,EACvB,IAAmB;;IAEnB,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IACjD,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,IAAI,CAAC;KACb;IACD,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,EAAE,CAAC;IAC9C,OAAO,MAAA,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAG,CAAC,CAAC,mCAAI,IAAI,CAAC;AACnC,CAAC;AAVD,wCAUC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts b/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts deleted file mode 100644 index 2eb4a7cf..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import * as ts from 'typescript'; -/** - * Gets the source file for a given node - */ -export declare function getSourceFileOfNode(node: ts.Node): ts.SourceFile; -//# sourceMappingURL=getSourceFileOfNode.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts.map b/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts.map deleted file mode 100644 index 4b992bd8..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getSourceFileOfNode.d.ts","sourceRoot":"","sources":["../src/getSourceFileOfNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,UAAU,CAKhE"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js b/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js deleted file mode 100644 index c3acf845..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getSourceFileOfNode = void 0; -const ts = __importStar(require("typescript")); -/** - * Gets the source file for a given node - */ -function getSourceFileOfNode(node) { - while (node && node.kind !== ts.SyntaxKind.SourceFile) { - node = node.parent; - } - return node; -} -exports.getSourceFileOfNode = getSourceFileOfNode; -//# sourceMappingURL=getSourceFileOfNode.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js.map b/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js.map deleted file mode 100644 index 47b019fb..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getSourceFileOfNode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getSourceFileOfNode.js","sourceRoot":"","sources":["../src/getSourceFileOfNode.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAEjC;;GAEG;AACH,SAAgB,mBAAmB,CAAC,IAAa;IAC/C,OAAO,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE;QACrD,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;KACpB;IACD,OAAO,IAAqB,CAAC;AAC/B,CAAC;AALD,kDAKC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.d.ts b/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.d.ts deleted file mode 100644 index 2175c2c6..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as ts from 'typescript'; -export declare function getTokenAtPosition(sourceFile: ts.SourceFile, position: number): ts.Node; -//# sourceMappingURL=getTokenAtPosition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.d.ts.map b/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.d.ts.map deleted file mode 100644 index 8bdbf314..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getTokenAtPosition.d.ts","sourceRoot":"","sources":["../src/getTokenAtPosition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,EAAE,CAAC,UAAU,EACzB,QAAQ,EAAE,MAAM,GACf,EAAE,CAAC,IAAI,CAwBT"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.js b/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.js deleted file mode 100644 index 8ff8125b..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getTokenAtPosition = void 0; -const ts = __importStar(require("typescript")); -function getTokenAtPosition(sourceFile, position) { - const queue = [sourceFile]; - let current; - while (queue.length > 0) { - current = queue.shift(); - // find the child that contains 'position' - for (const child of current.getChildren(sourceFile)) { - const start = child.getFullStart(); - if (start > position) { - // If this child begins after position, then all subsequent children will as well. - return current; - } - const end = child.getEnd(); - if (position < end || - (position === end && child.kind === ts.SyntaxKind.EndOfFileToken)) { - queue.push(child); - break; - } - } - } - return current; -} -exports.getTokenAtPosition = getTokenAtPosition; -//# sourceMappingURL=getTokenAtPosition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.js.map b/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.js.map deleted file mode 100644 index 205e1f63..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getTokenAtPosition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getTokenAtPosition.js","sourceRoot":"","sources":["../src/getTokenAtPosition.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAEjC,SAAgB,kBAAkB,CAChC,UAAyB,EACzB,QAAgB;IAEhB,MAAM,KAAK,GAAc,CAAC,UAAU,CAAC,CAAC;IACtC,IAAI,OAAgB,CAAC;IACrB,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QACvB,OAAO,GAAG,KAAK,CAAC,KAAK,EAAG,CAAC;QACzB,0CAA0C;QAC1C,KAAK,MAAM,KAAK,IAAI,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE;YACnD,MAAM,KAAK,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;YACnC,IAAI,KAAK,GAAG,QAAQ,EAAE;gBACpB,kFAAkF;gBAClF,OAAO,OAAO,CAAC;aAChB;YAED,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;YAC3B,IACE,QAAQ,GAAG,GAAG;gBACd,CAAC,QAAQ,KAAK,GAAG,IAAI,KAAK,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,EACjE;gBACA,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAClB,MAAM;aACP;SACF;KACF;IACD,OAAO,OAAQ,CAAC;AAClB,CAAC;AA3BD,gDA2BC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.d.ts b/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.d.ts deleted file mode 100644 index 4019984e..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type * as ts from 'typescript'; -export declare function getTypeArguments(type: ts.TypeReference, checker: ts.TypeChecker): readonly ts.Type[]; -//# sourceMappingURL=getTypeArguments.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.d.ts.map b/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.d.ts.map deleted file mode 100644 index c89ecd87..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getTypeArguments.d.ts","sourceRoot":"","sources":["../src/getTypeArguments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,EAAE,CAAC,aAAa,EACtB,OAAO,EAAE,EAAE,CAAC,WAAW,GACtB,SAAS,EAAE,CAAC,IAAI,EAAE,CAOpB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.js b/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.js deleted file mode 100644 index ed6997aa..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getTypeArguments = void 0; -function getTypeArguments(type, checker) { - var _a; - // getTypeArguments was only added in TS3.7 - if (checker.getTypeArguments) { - return checker.getTypeArguments(type); - } - return (_a = type.typeArguments) !== null && _a !== void 0 ? _a : []; -} -exports.getTypeArguments = getTypeArguments; -//# sourceMappingURL=getTypeArguments.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.js.map b/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.js.map deleted file mode 100644 index 178f9249..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getTypeArguments.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getTypeArguments.js","sourceRoot":"","sources":["../src/getTypeArguments.ts"],"names":[],"mappings":";;;AAEA,SAAgB,gBAAgB,CAC9B,IAAsB,EACtB,OAAuB;;IAEvB,2CAA2C;IAC3C,IAAI,OAAO,CAAC,gBAAgB,EAAE;QAC5B,OAAO,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;KACvC;IAED,OAAO,MAAA,IAAI,CAAC,aAAa,mCAAI,EAAE,CAAC;AAClC,CAAC;AAVD,4CAUC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts b/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts deleted file mode 100644 index 0d7b92ae..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import * as ts from 'typescript'; -/** - * Get the type name of a given type. - * @param typeChecker The context sensitive TypeScript TypeChecker. - * @param type The type to get the name of. - */ -export declare function getTypeName(typeChecker: ts.TypeChecker, type: ts.Type): string; -//# sourceMappingURL=getTypeName.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts.map b/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts.map deleted file mode 100644 index a0451233..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getTypeName.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getTypeName.d.ts","sourceRoot":"","sources":["../src/getTypeName.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,WAAW,EAAE,EAAE,CAAC,WAAW,EAC3B,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,MAAM,CAoDR"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js b/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js deleted file mode 100644 index 95deb7b7..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getTypeName = void 0; -const ts = __importStar(require("typescript")); -/** - * Get the type name of a given type. - * @param typeChecker The context sensitive TypeScript TypeChecker. - * @param type The type to get the name of. - */ -function getTypeName(typeChecker, type) { - // It handles `string` and string literal types as string. - if ((type.flags & ts.TypeFlags.StringLike) !== 0) { - return 'string'; - } - // If the type is a type parameter which extends primitive string types, - // but it was not recognized as a string like. So check the constraint - // type of the type parameter. - if ((type.flags & ts.TypeFlags.TypeParameter) !== 0) { - // `type.getConstraint()` method doesn't return the constraint type of - // the type parameter for some reason. So this gets the constraint type - // via AST. - const symbol = type.getSymbol(); - const decls = symbol === null || symbol === void 0 ? void 0 : symbol.getDeclarations(); - const typeParamDecl = decls === null || decls === void 0 ? void 0 : decls[0]; - if (ts.isTypeParameterDeclaration(typeParamDecl) && - typeParamDecl.constraint != null) { - return getTypeName(typeChecker, typeChecker.getTypeFromTypeNode(typeParamDecl.constraint)); - } - } - // If the type is a union and all types in the union are string like, - // return `string`. For example: - // - `"a" | "b"` is string. - // - `string | string[]` is not string. - if (type.isUnion() && - type.types - .map(value => getTypeName(typeChecker, value)) - .every(t => t === 'string')) { - return 'string'; - } - // If the type is an intersection and a type in the intersection is string - // like, return `string`. For example: `string & {__htmlEscaped: void}` - if (type.isIntersection() && - type.types - .map(value => getTypeName(typeChecker, value)) - .some(t => t === 'string')) { - return 'string'; - } - return typeChecker.typeToString(type); -} -exports.getTypeName = getTypeName; -//# sourceMappingURL=getTypeName.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js.map b/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js.map deleted file mode 100644 index e56fef01..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/getTypeName.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getTypeName.js","sourceRoot":"","sources":["../src/getTypeName.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAEjC;;;;GAIG;AACH,SAAgB,WAAW,CACzB,WAA2B,EAC3B,IAAa;IAEb,0DAA0D;IAC1D,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;QAChD,OAAO,QAAQ,CAAC;KACjB;IAED,wEAAwE;IACxE,sEAAsE;IACtE,8BAA8B;IAC9B,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE;QACnD,sEAAsE;QACtE,uEAAuE;QACvE,WAAW;QACX,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QAChC,MAAM,KAAK,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,eAAe,EAAE,CAAC;QACxC,MAAM,aAAa,GAAG,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAG,CAAC,CAAgC,CAAC;QAChE,IACE,EAAE,CAAC,0BAA0B,CAAC,aAAa,CAAC;YAC5C,aAAa,CAAC,UAAU,IAAI,IAAI,EAChC;YACA,OAAO,WAAW,CAChB,WAAW,EACX,WAAW,CAAC,mBAAmB,CAAC,aAAa,CAAC,UAAU,CAAC,CAC1D,CAAC;SACH;KACF;IAED,qEAAqE;IACrE,gCAAgC;IAChC,2BAA2B;IAC3B,uCAAuC;IACvC,IACE,IAAI,CAAC,OAAO,EAAE;QACd,IAAI,CAAC,KAAK;aACP,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;aAC7C,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,QAAQ,CAAC,EAC7B;QACA,OAAO,QAAQ,CAAC;KACjB;IAED,0EAA0E;IAC1E,uEAAuE;IACvE,IACE,IAAI,CAAC,cAAc,EAAE;QACrB,IAAI,CAAC,KAAK;aACP,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;aAC7C,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,QAAQ,CAAC,EAC5B;QACA,OAAO,QAAQ,CAAC;KACjB;IAED,OAAO,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;AACxC,CAAC;AAvDD,kCAuDC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/index.d.ts b/node_modules/@typescript-eslint/type-utils/dist/index.d.ts deleted file mode 100644 index d73da911..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export * from './containsAllTypesByName'; -export * from './getConstrainedTypeAtLocation'; -export * from './getContextualType'; -export * from './getDeclaration'; -export * from './getSourceFileOfNode'; -export * from './getTokenAtPosition'; -export * from './getTypeArguments'; -export * from './getTypeName'; -export * from './isTypeReadonly'; -export * from './isUnsafeAssignment'; -export * from './predicates'; -export * from './propertyTypes'; -export * from './requiresQuoting'; -export * from './typeFlagUtils'; -export { getDecorators, getModifiers, typescriptVersionIsAtLeast, } from '@typescript-eslint/typescript-estree'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/index.d.ts.map b/node_modules/@typescript-eslint/type-utils/dist/index.d.ts.map deleted file mode 100644 index f3500e5a..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,OAAO,EACL,aAAa,EACb,YAAY,EACZ,0BAA0B,GAC3B,MAAM,sCAAsC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/index.js b/node_modules/@typescript-eslint/type-utils/dist/index.js deleted file mode 100644 index c4ad14ea..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/index.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.typescriptVersionIsAtLeast = exports.getModifiers = exports.getDecorators = void 0; -__exportStar(require("./containsAllTypesByName"), exports); -__exportStar(require("./getConstrainedTypeAtLocation"), exports); -__exportStar(require("./getContextualType"), exports); -__exportStar(require("./getDeclaration"), exports); -__exportStar(require("./getSourceFileOfNode"), exports); -__exportStar(require("./getTokenAtPosition"), exports); -__exportStar(require("./getTypeArguments"), exports); -__exportStar(require("./getTypeName"), exports); -__exportStar(require("./isTypeReadonly"), exports); -__exportStar(require("./isUnsafeAssignment"), exports); -__exportStar(require("./predicates"), exports); -__exportStar(require("./propertyTypes"), exports); -__exportStar(require("./requiresQuoting"), exports); -__exportStar(require("./typeFlagUtils"), exports); -var typescript_estree_1 = require("@typescript-eslint/typescript-estree"); -Object.defineProperty(exports, "getDecorators", { enumerable: true, get: function () { return typescript_estree_1.getDecorators; } }); -Object.defineProperty(exports, "getModifiers", { enumerable: true, get: function () { return typescript_estree_1.getModifiers; } }); -Object.defineProperty(exports, "typescriptVersionIsAtLeast", { enumerable: true, get: function () { return typescript_estree_1.typescriptVersionIsAtLeast; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/index.js.map b/node_modules/@typescript-eslint/type-utils/dist/index.js.map deleted file mode 100644 index 8ef8f886..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,iEAA+C;AAC/C,sDAAoC;AACpC,mDAAiC;AACjC,wDAAsC;AACtC,uDAAqC;AACrC,qDAAmC;AACnC,gDAA8B;AAC9B,mDAAiC;AACjC,uDAAqC;AACrC,+CAA6B;AAC7B,kDAAgC;AAChC,oDAAkC;AAClC,kDAAgC;AAChC,0EAI8C;AAH5C,kHAAA,aAAa,OAAA;AACb,iHAAA,YAAY,OAAA;AACZ,+HAAA,0BAA0B,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts b/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts deleted file mode 100644 index be571d96..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import * as ts from 'typescript'; -export interface ReadonlynessOptions { - readonly treatMethodsAsReadonly?: boolean; -} -export declare const readonlynessOptionsSchema: { - type: string; - additionalProperties: boolean; - properties: { - treatMethodsAsReadonly: { - type: string; - }; - }; -}; -export declare const readonlynessOptionsDefaults: ReadonlynessOptions; -/** - * Checks if the given type is readonly - */ -declare function isTypeReadonly(checker: ts.TypeChecker, type: ts.Type, options?: ReadonlynessOptions): boolean; -export { isTypeReadonly }; -//# sourceMappingURL=isTypeReadonly.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map b/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map deleted file mode 100644 index c53637e9..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isTypeReadonly.d.ts","sourceRoot":"","sources":["../src/isTypeReadonly.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAcjC,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAC3C;AAED,eAAO,MAAM,yBAAyB;;;;;;;;CAQrC,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,mBAEzC,CAAC;AAkRF;;GAEG;AACH,iBAAS,cAAc,CACrB,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,OAAO,GAAE,mBAAiD,GACzD,OAAO,CAKT;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js b/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js deleted file mode 100644 index 6fb63c4e..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js +++ /dev/null @@ -1,214 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isTypeReadonly = exports.readonlynessOptionsDefaults = exports.readonlynessOptionsSchema = void 0; -const utils_1 = require("@typescript-eslint/utils"); -const tsutils_1 = require("tsutils"); -const ts = __importStar(require("typescript")); -const getTypeArguments_1 = require("./getTypeArguments"); -const propertyTypes_1 = require("./propertyTypes"); -exports.readonlynessOptionsSchema = { - type: 'object', - additionalProperties: false, - properties: { - treatMethodsAsReadonly: { - type: 'boolean', - }, - }, -}; -exports.readonlynessOptionsDefaults = { - treatMethodsAsReadonly: false, -}; -function hasSymbol(node) { - return Object.prototype.hasOwnProperty.call(node, 'symbol'); -} -function isTypeReadonlyArrayOrTuple(checker, type, options, seenTypes) { - function checkTypeArguments(arrayType) { - const typeArguments = - // getTypeArguments was only added in TS3.7 - (0, getTypeArguments_1.getTypeArguments)(arrayType, checker); - // this shouldn't happen in reality as: - // - tuples require at least 1 type argument - // - ReadonlyArray requires at least 1 type argument - /* istanbul ignore if */ if (typeArguments.length === 0) { - return 3 /* Readonlyness.Readonly */; - } - // validate the element types are also readonly - if (typeArguments.some(typeArg => isTypeReadonlyRecurser(checker, typeArg, options, seenTypes) === - 2 /* Readonlyness.Mutable */)) { - return 2 /* Readonlyness.Mutable */; - } - return 3 /* Readonlyness.Readonly */; - } - if (checker.isArrayType(type)) { - const symbol = utils_1.ESLintUtils.nullThrows(type.getSymbol(), utils_1.ESLintUtils.NullThrowsReasons.MissingToken('symbol', 'array type')); - const escapedName = symbol.getEscapedName(); - if (escapedName === 'Array') { - return 2 /* Readonlyness.Mutable */; - } - return checkTypeArguments(type); - } - if (checker.isTupleType(type)) { - if (!type.target.readonly) { - return 2 /* Readonlyness.Mutable */; - } - return checkTypeArguments(type); - } - return 1 /* Readonlyness.UnknownType */; -} -function isTypeReadonlyObject(checker, type, options, seenTypes) { - function checkIndexSignature(kind) { - const indexInfo = checker.getIndexInfoOfType(type, kind); - if (indexInfo) { - if (!indexInfo.isReadonly) { - return 2 /* Readonlyness.Mutable */; - } - if (indexInfo.type === type || seenTypes.has(indexInfo.type)) { - return 3 /* Readonlyness.Readonly */; - } - return isTypeReadonlyRecurser(checker, indexInfo.type, options, seenTypes); - } - return 1 /* Readonlyness.UnknownType */; - } - const properties = type.getProperties(); - if (properties.length) { - // ensure the properties are marked as readonly - for (const property of properties) { - if (options.treatMethodsAsReadonly) { - if (property.valueDeclaration !== undefined && - hasSymbol(property.valueDeclaration) && - (0, tsutils_1.isSymbolFlagSet)(property.valueDeclaration.symbol, ts.SymbolFlags.Method)) { - continue; - } - const declarations = property.getDeclarations(); - const lastDeclaration = declarations !== undefined && declarations.length > 0 - ? declarations[declarations.length - 1] - : undefined; - if (lastDeclaration !== undefined && - hasSymbol(lastDeclaration) && - (0, tsutils_1.isSymbolFlagSet)(lastDeclaration.symbol, ts.SymbolFlags.Method)) { - continue; - } - } - if ((0, tsutils_1.isPropertyReadonlyInType)(type, property.getEscapedName(), checker)) { - continue; - } - const name = ts.getNameOfDeclaration(property.valueDeclaration); - if (name && ts.isPrivateIdentifier(name)) { - continue; - } - return 2 /* Readonlyness.Mutable */; - } - // all properties were readonly - // now ensure that all of the values are readonly also. - // do this after checking property readonly-ness as a perf optimization, - // as we might be able to bail out early due to a mutable property before - // doing this deep, potentially expensive check. - for (const property of properties) { - const propertyType = utils_1.ESLintUtils.nullThrows((0, propertyTypes_1.getTypeOfPropertyOfType)(checker, type, property), utils_1.ESLintUtils.NullThrowsReasons.MissingToken(`property "${property.name}"`, 'type')); - // handle recursive types. - // we only need this simple check, because a mutable recursive type will break via the above prop readonly check - if (seenTypes.has(propertyType)) { - continue; - } - if (isTypeReadonlyRecurser(checker, propertyType, options, seenTypes) === - 2 /* Readonlyness.Mutable */) { - return 2 /* Readonlyness.Mutable */; - } - } - } - const isStringIndexSigReadonly = checkIndexSignature(ts.IndexKind.String); - if (isStringIndexSigReadonly === 2 /* Readonlyness.Mutable */) { - return isStringIndexSigReadonly; - } - const isNumberIndexSigReadonly = checkIndexSignature(ts.IndexKind.Number); - if (isNumberIndexSigReadonly === 2 /* Readonlyness.Mutable */) { - return isNumberIndexSigReadonly; - } - return 3 /* Readonlyness.Readonly */; -} -// a helper function to ensure the seenTypes map is always passed down, except by the external caller -function isTypeReadonlyRecurser(checker, type, options, seenTypes) { - seenTypes.add(type); - if ((0, tsutils_1.isUnionType)(type)) { - // all types in the union must be readonly - const result = (0, tsutils_1.unionTypeParts)(type).every(t => seenTypes.has(t) || - isTypeReadonlyRecurser(checker, t, options, seenTypes) === - 3 /* Readonlyness.Readonly */); - const readonlyness = result ? 3 /* Readonlyness.Readonly */ : 2 /* Readonlyness.Mutable */; - return readonlyness; - } - if ((0, tsutils_1.isIntersectionType)(type)) { - // Special case for handling arrays/tuples (as readonly arrays/tuples always have mutable methods). - if (type.types.some(t => checker.isArrayType(t) || checker.isTupleType(t))) { - const allReadonlyParts = type.types.every(t => seenTypes.has(t) || - isTypeReadonlyRecurser(checker, t, options, seenTypes) === - 3 /* Readonlyness.Readonly */); - return allReadonlyParts ? 3 /* Readonlyness.Readonly */ : 2 /* Readonlyness.Mutable */; - } - // Normal case. - const isReadonlyObject = isTypeReadonlyObject(checker, type, options, seenTypes); - if (isReadonlyObject !== 1 /* Readonlyness.UnknownType */) { - return isReadonlyObject; - } - } - if ((0, tsutils_1.isConditionalType)(type)) { - const result = [type.root.node.trueType, type.root.node.falseType] - .map(checker.getTypeFromTypeNode) - .every(t => seenTypes.has(t) || - isTypeReadonlyRecurser(checker, t, options, seenTypes) === - 3 /* Readonlyness.Readonly */); - const readonlyness = result ? 3 /* Readonlyness.Readonly */ : 2 /* Readonlyness.Mutable */; - return readonlyness; - } - // all non-object, non-intersection types are readonly. - // this should only be primitive types - if (!(0, tsutils_1.isObjectType)(type)) { - return 3 /* Readonlyness.Readonly */; - } - // pure function types are readonly - if (type.getCallSignatures().length > 0 && - type.getProperties().length === 0) { - return 3 /* Readonlyness.Readonly */; - } - const isReadonlyArray = isTypeReadonlyArrayOrTuple(checker, type, options, seenTypes); - if (isReadonlyArray !== 1 /* Readonlyness.UnknownType */) { - return isReadonlyArray; - } - const isReadonlyObject = isTypeReadonlyObject(checker, type, options, seenTypes); - /* istanbul ignore else */ if (isReadonlyObject !== 1 /* Readonlyness.UnknownType */) { - return isReadonlyObject; - } - throw new Error('Unhandled type'); -} -/** - * Checks if the given type is readonly - */ -function isTypeReadonly(checker, type, options = exports.readonlynessOptionsDefaults) { - return (isTypeReadonlyRecurser(checker, type, options, new Set()) === - 3 /* Readonlyness.Readonly */); -} -exports.isTypeReadonly = isTypeReadonly; -//# sourceMappingURL=isTypeReadonly.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map b/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map deleted file mode 100644 index ff47429c..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/isTypeReadonly.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isTypeReadonly.js","sourceRoot":"","sources":["../src/isTypeReadonly.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuD;AACvD,qCAQiB;AACjB,+CAAiC;AAEjC,yDAAsD;AACtD,mDAA0D;AAe7C,QAAA,yBAAyB,GAAG;IACvC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,sBAAsB,EAAE;YACtB,IAAI,EAAE,SAAS;SAChB;KACF;CACF,CAAC;AAEW,QAAA,2BAA2B,GAAwB;IAC9D,sBAAsB,EAAE,KAAK;CAC9B,CAAC;AAEF,SAAS,SAAS,CAAC,IAAa;IAC9B,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9D,CAAC;AAED,SAAS,0BAA0B,CACjC,OAAuB,EACvB,IAAa,EACb,OAA4B,EAC5B,SAAuB;IAEvB,SAAS,kBAAkB,CAAC,SAA2B;QACrD,MAAM,aAAa;QACjB,2CAA2C;QAC3C,IAAA,mCAAgB,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAEvC,uCAAuC;QACvC,4CAA4C;QAC5C,oD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AAE,OAAO,EAAE,SAAS,CAAC;6CAC/B,CAC1B,CAAC;QAEJ,MAAM,YAAY,GAAG,MAAM,CAAC,CAAC,+BAAuB,CAAC,6BAAqB,CAAC;QAC3E,OAAO,YAAY,CAAC;KACrB;IAED,uDAAuD;IACvD,sCAAsC;IACtC,IAAI,CAAC,IAAA,sBAAY,EAAC,IAAI,CAAC,EAAE;QACvB,qCAA6B;KAC9B;IAED,mCAAmC;IACnC,IACE,IAAI,CAAC,iBAAiB,EAAE,CAAC,MAAM,GAAG,CAAC;QACnC,IAAI,CAAC,aAAa,EAAE,CAAC,MAAM,KAAK,CAAC,EACjC;QACA,qCAA6B;KAC9B;IAED,MAAM,eAAe,GAAG,0BAA0B,CAChD,OAAO,EACP,IAAI,EACJ,OAAO,EACP,SAAS,CACV,CAAC;IACF,IAAI,eAAe,qCAA6B,EAAE;QAChD,OAAO,eAAe,CAAC;KACxB;IAED,MAAM,gBAAgB,GAAG,oBAAoB,CAC3C,OAAO,EACP,IAAI,EACJ,OAAO,EACP,SAAS,CACV,CAAC;IACF,0BAA0B,CAAC,IACzB,gBAAgB,qCAA6B,EAC7C;QACA,OAAO,gBAAgB,CAAC;KACzB;IAED,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;AACpC,CAAC;AAED;;GAEG;AACH,SAAS,cAAc,CACrB,OAAuB,EACvB,IAAa,EACb,UAA+B,mCAA2B;IAE1D,OAAO,CACL,sBAAsB,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,CAAC;qCACpC,CACtB,CAAC;AACJ,CAAC;AAEQ,wCAAc"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts b/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts deleted file mode 100644 index 67bef348..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/utils'; -import type * as ts from 'typescript'; -/** - * Does a simple check to see if there is an any being assigned to a non-any type. - * - * This also checks generic positions to ensure there's no unsafe sub-assignments. - * Note: in the case of generic positions, it makes the assumption that the two types are the same. - * - * @example See tests for examples - * - * @returns false if it's safe, or an object with the two types if it's unsafe - */ -export declare function isUnsafeAssignment(type: ts.Type, receiver: ts.Type, checker: ts.TypeChecker, senderNode: TSESTree.Node | null): false | { - sender: ts.Type; - receiver: ts.Type; -}; -//# sourceMappingURL=isUnsafeAssignment.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts.map b/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts.map deleted file mode 100644 index f5311c93..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isUnsafeAssignment.d.ts","sourceRoot":"","sources":["../src/isUnsafeAssignment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAItC;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,QAAQ,EAAE,EAAE,CAAC,IAAI,EACjB,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,UAAU,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,GAC/B,KAAK,GAAG;IAAE,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC;IAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAA;CAAE,CA8DhD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js b/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js deleted file mode 100644 index e6f39454..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isUnsafeAssignment = void 0; -const utils_1 = require("@typescript-eslint/utils"); -const tsutils_1 = require("tsutils"); -const predicates_1 = require("./predicates"); -/** - * Does a simple check to see if there is an any being assigned to a non-any type. - * - * This also checks generic positions to ensure there's no unsafe sub-assignments. - * Note: in the case of generic positions, it makes the assumption that the two types are the same. - * - * @example See tests for examples - * - * @returns false if it's safe, or an object with the two types if it's unsafe - */ -function isUnsafeAssignment(type, receiver, checker, senderNode) { - var _a, _b; - if ((0, predicates_1.isTypeAnyType)(type)) { - // Allow assignment of any ==> unknown. - if ((0, predicates_1.isTypeUnknownType)(receiver)) { - return false; - } - if (!(0, predicates_1.isTypeAnyType)(receiver)) { - return { sender: type, receiver }; - } - } - if ((0, tsutils_1.isTypeReference)(type) && (0, tsutils_1.isTypeReference)(receiver)) { - // TODO - figure out how to handle cases like this, - // where the types are assignable, but not the same type - /* - function foo(): ReadonlySet { return new Set(); } - - // and - - type Test = { prop: T } - type Test2 = { prop: string } - declare const a: Test; - const b: Test2 = a; - */ - if (type.target !== receiver.target) { - // if the type references are different, assume safe, as we won't know how to compare the two types - // the generic positions might not be equivalent for both types - return false; - } - if ((senderNode === null || senderNode === void 0 ? void 0 : senderNode.type) === utils_1.AST_NODE_TYPES.NewExpression && - senderNode.callee.type === utils_1.AST_NODE_TYPES.Identifier && - senderNode.callee.name === 'Map' && - senderNode.arguments.length === 0 && - senderNode.typeParameters == null) { - // special case to handle `new Map()` - // unfortunately Map's default empty constructor is typed to return `Map` :( - // https://github.com/typescript-eslint/typescript-eslint/issues/2109#issuecomment-634144396 - return false; - } - const typeArguments = (_a = type.typeArguments) !== null && _a !== void 0 ? _a : []; - const receiverTypeArguments = (_b = receiver.typeArguments) !== null && _b !== void 0 ? _b : []; - for (let i = 0; i < typeArguments.length; i += 1) { - const arg = typeArguments[i]; - const receiverArg = receiverTypeArguments[i]; - const unsafe = isUnsafeAssignment(arg, receiverArg, checker, senderNode); - if (unsafe) { - return { sender: type, receiver }; - } - } - return false; - } - return false; -} -exports.isUnsafeAssignment = isUnsafeAssignment; -//# sourceMappingURL=isUnsafeAssignment.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js.map b/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js.map deleted file mode 100644 index 01b1a4c2..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/isUnsafeAssignment.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isUnsafeAssignment.js","sourceRoot":"","sources":["../src/isUnsafeAssignment.ts"],"names":[],"mappings":";;;AACA,oDAA0D;AAC1D,qCAA0C;AAG1C,6CAAgE;AAEhE;;;;;;;;;GASG;AACH,SAAgB,kBAAkB,CAChC,IAAa,EACb,QAAiB,EACjB,OAAuB,EACvB,UAAgC;;IAEhC,IAAI,IAAA,0BAAa,EAAC,IAAI,CAAC,EAAE;QACvB,uCAAuC;QACvC,IAAI,IAAA,8BAAiB,EAAC,QAAQ,CAAC,EAAE;YAC/B,OAAO,KAAK,CAAC;SACd;QAED,IAAI,CAAC,IAAA,0BAAa,EAAC,QAAQ,CAAC,EAAE;YAC5B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;SACnC;KACF;IAED,IAAI,IAAA,yBAAe,EAAC,IAAI,CAAC,IAAI,IAAA,yBAAe,EAAC,QAAQ,CAAC,EAAE;QACtD,mDAAmD;QACnD,wDAAwD;QACxD;;;;;;;;;UASE;QAEF,IAAI,IAAI,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM,EAAE;YACnC,mGAAmG;YACnG,+DAA+D;YAC/D,OAAO,KAAK,CAAC;SACd;QAED,IACE,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,MAAK,sBAAc,CAAC,aAAa;YACjD,UAAU,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,UAAU;YACpD,UAAU,CAAC,MAAM,CAAC,IAAI,KAAK,KAAK;YAChC,UAAU,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC;YACjC,UAAU,CAAC,cAAc,IAAI,IAAI,EACjC;YACA,qCAAqC;YACrC,sFAAsF;YACtF,4FAA4F;YAC5F,OAAO,KAAK,CAAC;SACd;QAED,MAAM,aAAa,GAAG,MAAA,IAAI,CAAC,aAAa,mCAAI,EAAE,CAAC;QAC/C,MAAM,qBAAqB,GAAG,MAAA,QAAQ,CAAC,aAAa,mCAAI,EAAE,CAAC;QAE3D,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;YAChD,MAAM,GAAG,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;YAC7B,MAAM,WAAW,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;YAE7C,MAAM,MAAM,GAAG,kBAAkB,CAAC,GAAG,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;YACzE,IAAI,MAAM,EAAE;gBACV,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;aACnC;SACF;QAED,OAAO,KAAK,CAAC;KACd;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAnED,gDAmEC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts b/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts deleted file mode 100644 index f9bcc086..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -import * as ts from 'typescript'; -/** - * Checks if the given type is (or accepts) nullable - * @param isReceiver true if the type is a receiving type (i.e. the type of a called function's parameter) - */ -export declare function isNullableType(type: ts.Type, { isReceiver, allowUndefined, }?: { - isReceiver?: boolean; - allowUndefined?: boolean; -}): boolean; -/** - * Checks if the given type is either an array type, - * or a union made up solely of array types. - */ -export declare function isTypeArrayTypeOrUnionOfArrayTypes(type: ts.Type, checker: ts.TypeChecker): boolean; -/** - * @returns true if the type is `never` - */ -export declare function isTypeNeverType(type: ts.Type): boolean; -/** - * @returns true if the type is `unknown` - */ -export declare function isTypeUnknownType(type: ts.Type): boolean; -export declare function isTypeReferenceType(type: ts.Type): type is ts.TypeReference; -/** - * @returns true if the type is `any` - */ -export declare function isTypeAnyType(type: ts.Type): boolean; -/** - * @returns true if the type is `any[]` - */ -export declare function isTypeAnyArrayType(type: ts.Type, checker: ts.TypeChecker): boolean; -/** - * @returns true if the type is `unknown[]` - */ -export declare function isTypeUnknownArrayType(type: ts.Type, checker: ts.TypeChecker): boolean; -export declare enum AnyType { - Any = 0, - AnyArray = 1, - Safe = 2 -} -/** - * @returns `AnyType.Any` if the type is `any`, `AnyType.AnyArray` if the type is `any[]` or `readonly any[]`, - * otherwise it returns `AnyType.Safe`. - */ -export declare function isAnyOrAnyArrayTypeDiscriminated(node: ts.Node, checker: ts.TypeChecker): AnyType; -/** - * @returns Whether a type is an instance of the parent type, including for the parent's base types. - */ -export declare function typeIsOrHasBaseType(type: ts.Type, parentType: ts.Type): boolean; -export declare function isTypeBigIntLiteralType(type: ts.Type): type is ts.BigIntLiteralType; -export declare function isTypeTemplateLiteralType(type: ts.Type): type is ts.TemplateLiteralType; -//# sourceMappingURL=predicates.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts.map b/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts.map deleted file mode 100644 index 9ed94ed7..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/predicates.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../src/predicates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAOjC;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE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uB,CACrC,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,IAAI,IAAI,EAAE,CAAC,iBAAiB,CAE9B;AAED,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,IAAI,IAAI,EAAE,CAAC,mBAAmB,CAEhC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/predicates.js b/node_modules/@typescript-eslint/type-utils/dist/predicates.js deleted file mode 100644 index b472c250..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/predicates.js +++ /dev/null @@ -1,181 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isTypeTemplateLiteralType = exports.isTypeBigIntLiteralType = exports.typeIsOrHasBaseType = exports.isAnyOrAnyArrayTypeDiscriminated = exports.AnyType = exports.isTypeUnknownArrayType = exports.isTypeAnyArrayType = exports.isTypeAnyType = exports.isTypeReferenceType = exports.isTypeUnknownType = exports.isTypeNeverType = exports.isTypeArrayTypeOrUnionOfArrayTypes = exports.isNullableType = void 0; -const debug_1 = __importDefault(require("debug")); -const tsutils_1 = require("tsutils"); -const ts = __importStar(require("typescript")); -const getTypeArguments_1 = require("./getTypeArguments"); -const typeFlagUtils_1 = require("./typeFlagUtils"); -const log = (0, debug_1.default)('typescript-eslint:eslint-plugin:utils:types'); -/** - * Checks if the given type is (or accepts) nullable - * @param isReceiver true if the type is a receiving type (i.e. the type of a called function's parameter) - */ -function isNullableType(type, { isReceiver = false, allowUndefined = true, } = {}) { - const flags = (0, typeFlagUtils_1.getTypeFlags)(type); - if (isReceiver && flags & (ts.TypeFlags.Any | ts.TypeFlags.Unknown)) { - return true; - } - if (allowUndefined) { - return (flags & (ts.TypeFlags.Null | ts.TypeFlags.Undefined)) !== 0; - } - else { - return (flags & ts.TypeFlags.Null) !== 0; - } -} -exports.isNullableType = isNullableType; -/** - * Checks if the given type is either an array type, - * or a union made up solely of array types. - */ -function isTypeArrayTypeOrUnionOfArrayTypes(type, checker) { - for (const t of (0, tsutils_1.unionTypeParts)(type)) { - if (!checker.isArrayType(t)) { - return false; - } - } - return true; -} -exports.isTypeArrayTypeOrUnionOfArrayTypes = isTypeArrayTypeOrUnionOfArrayTypes; -/** - * @returns true if the type is `never` - */ -function isTypeNeverType(type) { - return (0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.Never); -} -exports.isTypeNeverType = isTypeNeverType; -/** - * @returns true if the type is `unknown` - */ -function isTypeUnknownType(type) { - return (0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.Unknown); -} -exports.isTypeUnknownType = isTypeUnknownType; -// https://github.com/microsoft/TypeScript/blob/42aa18bf442c4df147e30deaf27261a41cbdc617/src/compiler/types.ts#L5157 -const Nullable = ts.TypeFlags.Undefined | ts.TypeFlags.Null; -// https://github.com/microsoft/TypeScript/blob/42aa18bf442c4df147e30deaf27261a41cbdc617/src/compiler/types.ts#L5187 -const ObjectFlagsType = ts.TypeFlags.Any | - Nullable | - ts.TypeFlags.Never | - ts.TypeFlags.Object | - ts.TypeFlags.Union | - ts.TypeFlags.Intersection; -function isTypeReferenceType(type) { - if ((type.flags & ObjectFlagsType) === 0) { - return false; - } - const objectTypeFlags = type.objectFlags; - return (objectTypeFlags & ts.ObjectFlags.Reference) !== 0; -} -exports.isTypeReferenceType = isTypeReferenceType; -/** - * @returns true if the type is `any` - */ -function isTypeAnyType(type) { - if ((0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.Any)) { - if (type.intrinsicName === 'error') { - log('Found an "error" any type'); - } - return true; - } - return false; -} -exports.isTypeAnyType = isTypeAnyType; -/** - * @returns true if the type is `any[]` - */ -function isTypeAnyArrayType(type, checker) { - return (checker.isArrayType(type) && - isTypeAnyType( - // getTypeArguments was only added in TS3.7 - (0, getTypeArguments_1.getTypeArguments)(type, checker)[0])); -} -exports.isTypeAnyArrayType = isTypeAnyArrayType; -/** - * @returns true if the type is `unknown[]` - */ -function isTypeUnknownArrayType(type, checker) { - return (checker.isArrayType(type) && - isTypeUnknownType( - // getTypeArguments was only added in TS3.7 - (0, getTypeArguments_1.getTypeArguments)(type, checker)[0])); -} -exports.isTypeUnknownArrayType = isTypeUnknownArrayType; -var AnyType; -(function (AnyType) { - AnyType[AnyType["Any"] = 0] = "Any"; - AnyType[AnyType["AnyArray"] = 1] = "AnyArray"; - AnyType[AnyType["Safe"] = 2] = "Safe"; -})(AnyType || (exports.AnyType = AnyType = {})); -/** - * @returns `AnyType.Any` if the type is `any`, `AnyType.AnyArray` if the type is `any[]` or `readonly any[]`, - * otherwise it returns `AnyType.Safe`. - */ -function isAnyOrAnyArrayTypeDiscriminated(node, checker) { - const type = checker.getTypeAtLocation(node); - if (isTypeAnyType(type)) { - return AnyType.Any; - } - if (isTypeAnyArrayType(type, checker)) { - return AnyType.AnyArray; - } - return AnyType.Safe; -} -exports.isAnyOrAnyArrayTypeDiscriminated = isAnyOrAnyArrayTypeDiscriminated; -/** - * @returns Whether a type is an instance of the parent type, including for the parent's base types. - */ -function typeIsOrHasBaseType(type, parentType) { - const parentSymbol = parentType.getSymbol(); - if (!type.getSymbol() || !parentSymbol) { - return false; - } - const typeAndBaseTypes = [type]; - const ancestorTypes = type.getBaseTypes(); - if (ancestorTypes) { - typeAndBaseTypes.push(...ancestorTypes); - } - for (const baseType of typeAndBaseTypes) { - const baseSymbol = baseType.getSymbol(); - if (baseSymbol && baseSymbol.name === parentSymbol.name) { - return true; - } - } - return false; -} -exports.typeIsOrHasBaseType = typeIsOrHasBaseType; -function isTypeBigIntLiteralType(type) { - return (0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.BigIntLiteral); -} -exports.isTypeBigIntLiteralType = isTypeBigIntLiteralType; -function isTypeTemplateLiteralType(type) { - return (0, typeFlagUtils_1.isTypeFlagSet)(type, ts.TypeFlags.TemplateLiteral); -} -exports.isTypeTemplateLiteralType = isTypeTemplateLiteralType; -//# sourceMappingURL=predicates.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map b/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map deleted file mode 100644 index 89d3d7c0..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/predicates.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../src/predicates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,qCAAyC;AACzC,+CAAiC;AAEjC,yDAAsD;AACtD,mDAA8D;AAE9D,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,6CAA6C,CAAC,CAAC;AAEjE;;;GAGG;AACH,SAAgB,cAAc,CAC5B,IAAa,EACb,EACE,UAAU,GAAG,KAAK,EAClB,cAAc,GAAG,IAAI,MACiC,EAAE;IAE1D,MAAM,KAAK,GAAG,IAAA,4BAAY,EAAC,IAAI,CAAC,CAAC;IAEjC,IAAI,UAAU,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC,SAAS,CAA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yBAAyB,CACvC,IAAa;IAEb,OAAO,IAAA,6BAAa,EAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;AAC3D,CAAC;AAJD,8DAIC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts b/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts deleted file mode 100644 index 068d208e..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type * as ts from 'typescript'; -export declare function getTypeOfPropertyOfName(checker: ts.TypeChecker, type: ts.Type, name: string, escapedName?: ts.__String): ts.Type | undefined; -export declare function getTypeOfPropertyOfType(checker: ts.TypeChecker, type: ts.Type, property: ts.Symbol): ts.Type | undefined; -//# sourceMappingURL=propertyTypes.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts.map b/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts.map deleted file mode 100644 index 214952c1..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"propertyTypes.d.ts","sourceRoot":"","sources":["../src/propertyTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,IAAI,EAAE,MAAM,EACZ,WAAW,CAAC,EAAE,EAAE,CAAC,QAAQ,GACxB,EAAE,CAAC,IAAI,GAAG,SAAS,CAerB;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,EAAE,CAAC,WAAW,EACvB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,QAAQ,EAAE,EAAE,CAAC,MAAM,GAClB,EAAE,CAAC,IAAI,GAAG,SAAS,CAOrB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js b/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js deleted file mode 100644 index 9f7a6c45..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getTypeOfPropertyOfType = exports.getTypeOfPropertyOfName = void 0; -function getTypeOfPropertyOfName(checker, type, name, escapedName) { - // Most names are directly usable in the checker and aren't different from escaped names - if (!escapedName || !isSymbol(escapedName)) { - return checker.getTypeOfPropertyOfType(type, name); - } - // Symbolic names may differ in their escaped name compared to their human-readable name - // https://github.com/typescript-eslint/typescript-eslint/issues/2143 - const escapedProperty = type - .getProperties() - .find(property => property.escapedName === escapedName); - return escapedProperty - ? checker.getDeclaredTypeOfSymbol(escapedProperty) - : undefined; -} -exports.getTypeOfPropertyOfName = getTypeOfPropertyOfName; -function getTypeOfPropertyOfType(checker, type, property) { - return getTypeOfPropertyOfName(checker, type, property.getName(), property.getEscapedName()); -} -exports.getTypeOfPropertyOfType = getTypeOfPropertyOfType; -// Symbolic names need to be specially handled because TS api is not sufficient for these cases. -// Source based on: -// https://github.com/microsoft/TypeScript/blob/0043abe982aae0d35f8df59f9715be6ada758ff7/src/compiler/utilities.ts#L3388-L3402 -function isSymbol(escapedName) { - return isKnownSymbol(escapedName) || isPrivateIdentifierSymbol(escapedName); -} -// case for escapedName: "__@foo@10", name: "__@foo@10" -function isKnownSymbol(escapedName) { - return escapedName.startsWith('__@'); -} -// case for escapedName: "__#1@#foo", name: "#foo" -function isPrivateIdentifierSymbol(escapedName) { - return escapedName.startsWith('__#'); -} -//# sourceMappingURL=propertyTypes.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js.map b/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js.map deleted file mode 100644 index 0783dc08..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/propertyTypes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"propertyTypes.js","sourceRoot":"","sources":["../src/propertyTypes.ts"],"names":[],"mappings":";;;AAEA,SAAgB,uBAAuB,CACrC,OAAuB,EACvB,IAAa,EACb,IAAY,EACZ,WAAyB;IAEzB,wFAAwF;IACxF,IAAI,CAAC,WAAW,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE;QAC1C,OAAO,OAAO,CAAC,uBAAuB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;KACpD;IAED,wFAAwF;IACxF,qEAAqE;IACrE,MAAM,eAAe,GAAG,IAAI;SACzB,aAAa,EAAE;SACf,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,WAAW,KAAK,WAAW,CAAC,CAAC;IAE1D,OAAO,eAAe;QACpB,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC,eAAe,CAAC;QAClD,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC;AApBD,0DAoBC;AAED,SAAgB,uBAAuB,CACrC,OAAuB,EACvB,IAAa,EACb,QAAmB;IAEnB,OAAO,uBAAuB,CAC5B,OAAO,EACP,IAAI,EACJ,QAAQ,CAAC,OAAO,EAAE,EAClB,QAAQ,CAAC,cAAc,EAAE,CAC1B,CAAC;AACJ,CAAC;AAXD,0DAWC;AAED,gGAAgG;AAChG,mBAAmB;AACnB,8HAA8H;AAC9H,SAAS,QAAQ,CAAC,WAAmB;IACnC,OAAO,aAAa,CAAC,WAAW,CAAC,IAAI,yBAAyB,CAAC,WAAW,CAAC,CAAC;AAC9E,CAAC;AAED,uDAAuD;AACvD,SAAS,aAAa,CAAC,WAAmB;IACxC,OAAO,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AACvC,CAAC;AAED,kDAAkD;AAClD,SAAS,yBAAyB,CAAC,WAAmB;IACpD,OAAO,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AACvC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts b/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts deleted file mode 100644 index 59b6379f..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import * as ts from 'typescript'; -declare function requiresQuoting(name: string, target?: ts.ScriptTarget): boolean; -export { requiresQuoting }; -//# sourceMappingURL=requiresQuoting.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts.map b/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts.map deleted file mode 100644 index e1aff414..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"requiresQuoting.d.ts","sourceRoot":"","sources":["../src/requiresQuoting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,iBAAS,eAAe,CACtB,IAAI,EAAE,MAAM,EACZ,MAAM,GAAE,EAAE,CAAC,YAAqC,GAC/C,OAAO,CAgBT;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js b/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js deleted file mode 100644 index f743c7ae..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.requiresQuoting = void 0; -const ts = __importStar(require("typescript")); -function requiresQuoting(name, target = ts.ScriptTarget.ESNext) { - if (name.length === 0) { - return true; - } - if (!ts.isIdentifierStart(name.charCodeAt(0), target)) { - return true; - } - for (let i = 1; i < name.length; i += 1) { - if (!ts.isIdentifierPart(name.charCodeAt(i), target)) { - return true; - } - } - return false; -} -exports.requiresQuoting = requiresQuoting; -//# sourceMappingURL=requiresQuoting.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js.map b/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js.map deleted file mode 100644 index f9efa7aa..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/requiresQuoting.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"requiresQuoting.js","sourceRoot":"","sources":["../src/requiresQuoting.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAEjC,SAAS,eAAe,CACtB,IAAY,EACZ,SAA0B,EAAE,CAAC,YAAY,CAAC,MAAM;IAEhD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QACrB,OAAO,IAAI,CAAC;KACb;IAED,IAAI,CAAC,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE;QACrD,OAAO,IAAI,CAAC;KACb;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE;QACvC,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE;YACpD,OAAO,IAAI,CAAC;SACb;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAEQ,0CAAe"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts b/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts deleted file mode 100644 index c798126b..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import * as ts from 'typescript'; -/** - * Gets all of the type flags in a type, iterating through unions automatically. - */ -export declare function getTypeFlags(type: ts.Type): ts.TypeFlags; -/** - * @param flagsToCheck The composition of one or more `ts.TypeFlags`. - * @param isReceiver Whether the type is a receiving type (e.g. the type of a - * called function's parameter). - * @remarks - * Note that if the type is a union, this function will decompose it into the - * parts and get the flags of every union constituent. If this is not desired, - * use the `isTypeFlag` function from tsutils. - */ -export declare function isTypeFlagSet(type: ts.Type, flagsToCheck: ts.TypeFlags, isReceiver?: boolean): boolean; -//# sourceMappingURL=typeFlagUtils.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts.map b/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts.map deleted file mode 100644 index 9cc5be8b..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"typeFlagUtils.d.ts","sourceRoot":"","sources":["../src/typeFlagUtils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAIjC;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,SAAS,CAOxD;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,YAAY,EAAE,EAAE,CAAC,SAAS,EAC1B,UAAU,CAAC,EAAE,OAAO,GACnB,OAAO,CAQT"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js b/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js deleted file mode 100644 index cd28eb95..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isTypeFlagSet = exports.getTypeFlags = void 0; -const tsutils_1 = require("tsutils"); -const ts = __importStar(require("typescript")); -const ANY_OR_UNKNOWN = ts.TypeFlags.Any | ts.TypeFlags.Unknown; -/** - * Gets all of the type flags in a type, iterating through unions automatically. - */ -function getTypeFlags(type) { - // @ts-expect-error Since typescript 5.0, this is invalid, but uses 0 as the default value of TypeFlags. - let flags = 0; - for (const t of (0, tsutils_1.unionTypeParts)(type)) { - flags |= t.flags; - } - return flags; -} -exports.getTypeFlags = getTypeFlags; -/** - * @param flagsToCheck The composition of one or more `ts.TypeFlags`. - * @param isReceiver Whether the type is a receiving type (e.g. the type of a - * called function's parameter). - * @remarks - * Note that if the type is a union, this function will decompose it into the - * parts and get the flags of every union constituent. If this is not desired, - * use the `isTypeFlag` function from tsutils. - */ -function isTypeFlagSet(type, flagsToCheck, isReceiver) { - const flags = getTypeFlags(type); - if (isReceiver && flags & ANY_OR_UNKNOWN) { - return true; - } - return (flags & flagsToCheck) !== 0; -} -exports.isTypeFlagSet = isTypeFlagSet; -//# sourceMappingURL=typeFlagUtils.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map b/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map deleted file mode 100644 index 01824b32..00000000 --- a/node_modules/@typescript-eslint/type-utils/dist/typeFlagUtils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"typeFlagUtils.js","sourceRoot":"","sources":["../src/typeFlagUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAyC;AACzC,+CAAiC;AAEjC,MAAM,cAAc,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC;AAE/D;;GAEG;AACH,SAAgB,YAAY,CAAC,IAAa;IACxC,wGAAwG;IACxG,IAAI,KAAK,GAAiB,CAAC,CAAC;IAC5B,KAAK,MAAM,CAAC,IAAI,IAAA,wBAAc,EAAC,IAAI,CAAC,EAAE;QACpC,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC;KAClB;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAPD,oCAOC;AAED;;;;;;;;GAQG;AACH,SAAgB,aAAa,CAC3B,IAAa,EACb,YAA0B,EAC1B,UAAoB;IAEpB,MAAM,KAAK,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAEjC,IAAI,UAAU,IAAI,KAAK,GAAG,cAAc,EAAE;QACxC,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CAAC,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;AACtC,CAAC;AAZD,sCAYC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/types/_ts3.4/dist/generated/ast-spec.d.ts b/node_modules/@typescript-eslint/types/_ts3.4/dist/generated/ast-spec.d.ts deleted file mode 100644 index fbb09ffa..00000000 --- a/node_modules/@typescript-eslint/types/_ts3.4/dist/generated/ast-spec.d.ts +++ /dev/null @@ -1,1806 +0,0 @@ -/********************************************** - * DO NOT MODIFY THIS FILE MANUALLY * - * * - * THIS FILE HAS BEEN COPIED FROM ast-spec. * - * ANY CHANGES WILL BE LOST ON THE NEXT BUILD * - * * - * MAKE CHANGES TO ast-spec AND THEN RUN * - * yarn build * - **********************************************/ -import { SyntaxKind } from 'typescript'; -export declare type Accessibility = 'private' | 'protected' | 'public'; -export declare type AccessorProperty = AccessorPropertyComputedName | AccessorPropertyNonComputedName; -export declare interface AccessorPropertyComputedName extends PropertyDefinitionComputedNameBase { - type: AST_NODE_TYPES.AccessorProperty; -} -export declare interface AccessorPropertyNonComputedName extends PropertyDefinitionNonComputedNameBase { - type: AST_NODE_TYPES.AccessorProperty; -} -export declare interface ArrayExpression extends BaseNode { - type: AST_NODE_TYPES.ArrayExpression; - /** - * an element will be `null` in the case of a sparse array: `[1, ,3]` - */ - elements: (Expression | SpreadElement | null)[]; -} -export declare interface ArrayPattern extends BaseNode { - type: AST_NODE_TYPES.ArrayPattern; - elements: (DestructuringPattern | null)[]; - typeAnnotation?: TSTypeAnnotation; - optional?: boolean; - decorators?: Decorator[]; -} -export declare interface ArrowFunctionExpression extends BaseNode { - type: AST_NODE_TYPES.ArrowFunctionExpression; - generator: boolean; - id: null; - params: Parameter[]; - body: BlockStatement | Expression; - async: boolean; - expression: boolean; - returnType?: TSTypeAnnotation; - typeParameters?: TSTypeParameterDeclaration; -} -export declare interface AssignmentExpression extends BaseNode { - type: AST_NODE_TYPES.AssignmentExpression; - operator: ValueOf; - left: Expression; - right: Expression; -} -export declare interface AssignmentOperatorToText { - [SyntaxKind.EqualsToken]: '='; - [SyntaxKind.PlusEqualsToken]: '+='; - [SyntaxKind.MinusEqualsToken]: '-='; - [SyntaxKind.AsteriskEqualsToken]: '*='; - [SyntaxKind.AsteriskAsteriskEqualsToken]: '**='; - [SyntaxKind.SlashEqualsToken]: '/='; - [SyntaxKind.PercentEqualsToken]: '%='; - [SyntaxKind.LessThanLessThanEqualsToken]: '<<='; - [SyntaxKind.GreaterThanGreaterThanEqualsToken]: '>>='; - [SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken]: '>>>='; - [SyntaxKind.AmpersandEqualsToken]: '&='; - [SyntaxKind.BarEqualsToken]: '|='; - [SyntaxKind.BarBarEqualsToken]: '||='; - [SyntaxKind.AmpersandAmpersandEqualsToken]: '&&='; - [SyntaxKind.QuestionQuestionEqualsToken]: '??='; - [SyntaxKind.CaretEqualsToken]: '^='; -} -export declare interface AssignmentPattern extends BaseNode { - type: AST_NODE_TYPES.AssignmentPattern; - left: BindingName; - right: Expression; - typeAnnotation?: TSTypeAnnotation; - optional?: boolean; - decorators?: Decorator[]; -} -export declare enum AST_NODE_TYPES { - AccessorProperty = "AccessorProperty", - ArrayExpression = "ArrayExpression", - ArrayPattern = "ArrayPattern", - ArrowFunctionExpression = "ArrowFunctionExpression", - AssignmentExpression = "AssignmentExpression", - AssignmentPattern = "AssignmentPattern", - AwaitExpression = "AwaitExpression", - BinaryExpression = "BinaryExpression", - BlockStatement = "BlockStatement", - BreakStatement = "BreakStatement", - CallExpression = "CallExpression", - CatchClause = "CatchClause", - ChainExpression = "ChainExpression", - ClassBody = "ClassBody", - ClassDeclaration = "ClassDeclaration", - ClassExpression = "ClassExpression", - ConditionalExpression = "ConditionalExpression", - ContinueStatement = "ContinueStatement", - DebuggerStatement = "DebuggerStatement", - Decorator = "Decorator", - DoWhileStatement = "DoWhileStatement", - EmptyStatement = "EmptyStatement", - ExportAllDeclaration = "ExportAllDeclaration", - ExportDefaultDeclaration = "ExportDefaultDeclaration", - ExportNamedDeclaration = "ExportNamedDeclaration", - ExportSpecifier = "ExportSpecifier", - ExpressionStatement = "ExpressionStatement", - ForInStatement = "ForInStatement", - ForOfStatement = "ForOfStatement", - ForStatement = "ForStatement", - FunctionDeclaration = "FunctionDeclaration", - FunctionExpression = "FunctionExpression", - Identifier = "Identifier", - IfStatement = "IfStatement", - ImportAttribute = "ImportAttribute", - ImportDeclaration = "ImportDeclaration", - ImportDefaultSpecifier = "ImportDefaultSpecifier", - ImportExpression = "ImportExpression", - ImportNamespaceSpecifier = "ImportNamespaceSpecifier", - ImportSpecifier = "ImportSpecifier", - JSXAttribute = "JSXAttribute", - JSXClosingElement = "JSXClosingElement", - JSXClosingFragment = "JSXClosingFragment", - JSXElement = "JSXElement", - JSXEmptyExpression = "JSXEmptyExpression", - JSXExpressionContainer = "JSXExpressionContainer", - JSXFragment = "JSXFragment", - JSXIdentifier = "JSXIdentifier", - JSXMemberExpression = "JSXMemberExpression", - JSXNamespacedName = "JSXNamespacedName", - JSXOpeningElement = "JSXOpeningElement", - JSXOpeningFragment = "JSXOpeningFragment", - JSXSpreadAttribute = "JSXSpreadAttribute", - JSXSpreadChild = "JSXSpreadChild", - JSXText = "JSXText", - LabeledStatement = "LabeledStatement", - Literal = "Literal", - LogicalExpression = "LogicalExpression", - MemberExpression = "MemberExpression", - MetaProperty = "MetaProperty", - MethodDefinition = "MethodDefinition", - NewExpression = "NewExpression", - ObjectExpression = "ObjectExpression", - ObjectPattern = "ObjectPattern", - PrivateIdentifier = "PrivateIdentifier", - Program = "Program", - Property = "Property", - PropertyDefinition = "PropertyDefinition", - RestElement = "RestElement", - ReturnStatement = "ReturnStatement", - SequenceExpression = "SequenceExpression", - SpreadElement = "SpreadElement", - StaticBlock = "StaticBlock", - Super = "Super", - SwitchCase = "SwitchCase", - SwitchStatement = "SwitchStatement", - TaggedTemplateExpression = "TaggedTemplateExpression", - TemplateElement = "TemplateElement", - TemplateLiteral = "TemplateLiteral", - ThisExpression = "ThisExpression", - ThrowStatement = "ThrowStatement", - TryStatement = "TryStatement", - UnaryExpression = "UnaryExpression", - UpdateExpression = "UpdateExpression", - VariableDeclaration = "VariableDeclaration", - VariableDeclarator = "VariableDeclarator", - WhileStatement = "WhileStatement", - WithStatement = "WithStatement", - YieldExpression = "YieldExpression", - /** - * TS-prefixed nodes - */ - TSAbstractAccessorProperty = "TSAbstractAccessorProperty", - TSAbstractKeyword = "TSAbstractKeyword", - TSAbstractMethodDefinition = "TSAbstractMethodDefinition", - TSAbstractPropertyDefinition = "TSAbstractPropertyDefinition", - TSAnyKeyword = "TSAnyKeyword", - TSArrayType = "TSArrayType", - TSAsExpression = "TSAsExpression", - TSAsyncKeyword = "TSAsyncKeyword", - TSBigIntKeyword = "TSBigIntKeyword", - TSBooleanKeyword = "TSBooleanKeyword", - TSCallSignatureDeclaration = "TSCallSignatureDeclaration", - TSClassImplements = "TSClassImplements", - TSConditionalType = "TSConditionalType", - TSConstructorType = "TSConstructorType", - TSConstructSignatureDeclaration = "TSConstructSignatureDeclaration", - TSDeclareFunction = "TSDeclareFunction", - TSDeclareKeyword = "TSDeclareKeyword", - TSEmptyBodyFunctionExpression = "TSEmptyBodyFunctionExpression", - TSEnumDeclaration = "TSEnumDeclaration", - TSEnumMember = "TSEnumMember", - TSExportAssignment = "TSExportAssignment", - TSExportKeyword = "TSExportKeyword", - TSExternalModuleReference = "TSExternalModuleReference", - TSFunctionType = "TSFunctionType", - TSInstantiationExpression = "TSInstantiationExpression", - TSImportEqualsDeclaration = "TSImportEqualsDeclaration", - TSImportType = "TSImportType", - TSIndexedAccessType = "TSIndexedAccessType", - TSIndexSignature = "TSIndexSignature", - TSInferType = "TSInferType", - TSInterfaceBody = "TSInterfaceBody", - TSInterfaceDeclaration = "TSInterfaceDeclaration", - TSInterfaceHeritage = "TSInterfaceHeritage", - TSIntersectionType = "TSIntersectionType", - TSIntrinsicKeyword = "TSIntrinsicKeyword", - TSLiteralType = "TSLiteralType", - TSMappedType = "TSMappedType", - TSMethodSignature = "TSMethodSignature", - TSModuleBlock = "TSModuleBlock", - TSModuleDeclaration = "TSModuleDeclaration", - TSNamedTupleMember = "TSNamedTupleMember", - TSNamespaceExportDeclaration = "TSNamespaceExportDeclaration", - TSNeverKeyword = "TSNeverKeyword", - TSNonNullExpression = "TSNonNullExpression", - TSNullKeyword = "TSNullKeyword", - TSNumberKeyword = "TSNumberKeyword", - TSObjectKeyword = "TSObjectKeyword", - TSOptionalType = "TSOptionalType", - TSParameterProperty = "TSParameterProperty", - TSPrivateKeyword = "TSPrivateKeyword", - TSPropertySignature = "TSPropertySignature", - TSProtectedKeyword = "TSProtectedKeyword", - TSPublicKeyword = "TSPublicKeyword", - TSQualifiedName = "TSQualifiedName", - TSReadonlyKeyword = "TSReadonlyKeyword", - TSRestType = "TSRestType", - TSSatisfiesExpression = "TSSatisfiesExpression", - TSStaticKeyword = "TSStaticKeyword", - TSStringKeyword = "TSStringKeyword", - TSSymbolKeyword = "TSSymbolKeyword", - TSTemplateLiteralType = "TSTemplateLiteralType", - TSThisType = "TSThisType", - TSTupleType = "TSTupleType", - TSTypeAliasDeclaration = "TSTypeAliasDeclaration", - TSTypeAnnotation = "TSTypeAnnotation", - TSTypeAssertion = "TSTypeAssertion", - TSTypeLiteral = "TSTypeLiteral", - TSTypeOperator = "TSTypeOperator", - TSTypeParameter = "TSTypeParameter", - TSTypeParameterDeclaration = "TSTypeParameterDeclaration", - TSTypeParameterInstantiation = "TSTypeParameterInstantiation", - TSTypePredicate = "TSTypePredicate", - TSTypeQuery = "TSTypeQuery", - TSTypeReference = "TSTypeReference", - TSUndefinedKeyword = "TSUndefinedKeyword", - TSUnionType = "TSUnionType", - TSUnknownKeyword = "TSUnknownKeyword", - TSVoidKeyword = "TSVoidKeyword" -} -export declare enum AST_TOKEN_TYPES { - Boolean = "Boolean", - Identifier = "Identifier", - JSXIdentifier = "JSXIdentifier", - JSXText = "JSXText", - Keyword = "Keyword", - Null = "Null", - Numeric = "Numeric", - Punctuator = "Punctuator", - RegularExpression = "RegularExpression", - String = "String", - Template = "Template", - Block = "Block", - Line = "Line" -} -export declare interface AwaitExpression extends BaseNode { - type: AST_NODE_TYPES.AwaitExpression; - argument: Expression; -} -export declare interface BaseNode extends NodeOrTokenData { - type: AST_NODE_TYPES; -} -declare interface BaseToken extends NodeOrTokenData { - type: AST_TOKEN_TYPES; - value: string; -} -export declare interface BigIntLiteral extends LiteralBase { - value: bigint | null; - bigint: string; -} -export declare interface BinaryExpression extends BaseNode { - type: AST_NODE_TYPES.BinaryExpression; - operator: string; - left: Expression | PrivateIdentifier; - right: Expression; -} -export declare type BindingName = BindingPattern | Identifier; -export declare type BindingPattern = ArrayPattern | ObjectPattern; -export declare interface BlockComment extends BaseToken { - type: AST_TOKEN_TYPES.Block; -} -export declare interface BlockStatement extends BaseNode { - type: AST_NODE_TYPES.BlockStatement; - body: Statement[]; -} -export declare interface BooleanLiteral extends LiteralBase { - value: boolean; - raw: 'false' | 'true'; -} -export declare interface BooleanToken extends BaseToken { - type: AST_TOKEN_TYPES.Boolean; -} -export declare interface BreakStatement extends BaseNode { - type: AST_NODE_TYPES.BreakStatement; - label: Identifier | null; -} -export declare interface CallExpression extends BaseNode { - type: AST_NODE_TYPES.CallExpression; - callee: LeftHandSideExpression; - arguments: CallExpressionArgument[]; - typeParameters?: TSTypeParameterInstantiation; - optional: boolean; -} -export declare type CallExpressionArgument = Expression | SpreadElement; -export declare interface CatchClause extends BaseNode { - type: AST_NODE_TYPES.CatchClause; - param: BindingName | null; - body: BlockStatement; -} -export declare type ChainElement = CallExpression | MemberExpression | TSNonNullExpression; -export declare interface ChainExpression extends BaseNode { - type: AST_NODE_TYPES.ChainExpression; - expression: ChainElement; -} -declare interface ClassBase extends BaseNode { - /** - * Whether the class is an abstract class. - * ``` - * abstract class Foo {...} - * ``` - * This is always `undefined` for `ClassExpression`. - */ - abstract?: boolean; - /** - * The class body. - */ - body: ClassBody; - /** - * Whether the class has been `declare`d: - * ``` - * declare class Foo {...} - * ``` - * This is always `undefined` for `ClassExpression`. - */ - declare?: boolean; - /** - * The decorators declared for the class. - * This is `undefined` if there are no decorators. - * ``` - * @deco - * class Foo {...} - * ``` - * This is always `undefined` for `ClassExpression`. - */ - decorators?: Decorator[]; - /** - * The class's name. - * - For a `ClassExpression` this may be `null` if the name is omitted. - * - For a `ClassDeclaration` this may be `null` if and only if the parent is - * an `ExportDefaultDeclaration`. - */ - id: Identifier | null; - /** - * The implemented interfaces for the class. - * This is `undefined` if there are no implemented interfaces. - */ - implements?: TSClassImplements[]; - /** - * The super class this class extends. - */ - superClass: LeftHandSideExpression | null; - /** - * The generic type parameters passed to the superClass. - * This is `undefined` if there are no generic type parameters passed. - */ - superTypeParameters?: TSTypeParameterInstantiation; - /** - * The generic type parameters declared for the class. - * This is `undefined` if there are no generic type parameters declared. - */ - typeParameters?: TSTypeParameterDeclaration; -} -export declare interface ClassBody extends BaseNode { - type: AST_NODE_TYPES.ClassBody; - body: ClassElement[]; -} -export declare type ClassDeclaration = ClassDeclarationWithName | ClassDeclarationWithOptionalName; -declare interface ClassDeclarationBase extends ClassBase { - type: AST_NODE_TYPES.ClassDeclaration; -} -export declare interface ClassDeclarationWithName extends ClassDeclarationBase { - id: Identifier; -} -export declare interface ClassDeclarationWithOptionalName extends ClassDeclarationBase { - id: Identifier | null; -} -export declare type ClassElement = AccessorProperty | MethodDefinition | PropertyDefinition | StaticBlock | TSAbstractAccessorProperty | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSIndexSignature; -export declare interface ClassExpression extends ClassBase { - type: AST_NODE_TYPES.ClassExpression; - abstract?: undefined; - declare?: undefined; - decorators?: undefined; -} -declare interface ClassMethodDefinitionNonComputedNameBase extends MethodDefinitionBase { - key: ClassPropertyNameNonComputed; - computed: false; -} -declare interface ClassPropertyDefinitionNonComputedNameBase extends PropertyDefinitionBase { - key: ClassPropertyNameNonComputed; - computed: false; -} -export declare type ClassPropertyNameNonComputed = PrivateIdentifier | PropertyNameNonComputed; -export declare type Comment = BlockComment | LineComment; -export declare interface ConditionalExpression extends BaseNode { - type: AST_NODE_TYPES.ConditionalExpression; - test: Expression; - consequent: Expression; - alternate: Expression; -} -export declare interface ContinueStatement extends BaseNode { - type: AST_NODE_TYPES.ContinueStatement; - label: Identifier | null; -} -export declare interface DebuggerStatement extends BaseNode { - type: AST_NODE_TYPES.DebuggerStatement; -} -export declare type DeclarationStatement = ClassDeclaration | ClassExpression | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | FunctionDeclaration | TSDeclareFunction | TSEnumDeclaration | TSImportEqualsDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSNamespaceExportDeclaration | TSTypeAliasDeclaration; -export declare interface Decorator extends BaseNode { - type: AST_NODE_TYPES.Decorator; - expression: LeftHandSideExpression; -} -export declare type DefaultExportDeclarations = ClassDeclarationWithOptionalName | Expression | FunctionDeclarationWithName | FunctionDeclarationWithOptionalName | TSDeclareFunction | TSEnumDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSTypeAliasDeclaration | VariableDeclaration; -export declare type DestructuringPattern = ArrayPattern | AssignmentPattern | Identifier | MemberExpression | ObjectPattern | RestElement; -export declare interface DoWhileStatement extends BaseNode { - type: AST_NODE_TYPES.DoWhileStatement; - test: Expression; - body: Statement; -} -export declare interface EmptyStatement extends BaseNode { - type: AST_NODE_TYPES.EmptyStatement; -} -export declare type EntityName = Identifier | ThisExpression | TSQualifiedName; -export declare interface ExportAllDeclaration extends BaseNode { - type: AST_NODE_TYPES.ExportAllDeclaration; - /** - * The assertions declared for the export. - * ``` - * export * from 'mod' assert { type: 'json' }; - * ``` - */ - assertions: ImportAttribute[]; - /** - * The name for the exported items. `null` if no name is assigned. - */ - exported: Identifier | null; - /** - * The kind of the export. - */ - exportKind: ExportKind; - /** - * The source module being exported from. - */ - source: StringLiteral; -} -declare type ExportAndImportKind = 'type' | 'value'; -export declare type ExportDeclaration = DefaultExportDeclarations | NamedExportDeclarations; -export declare interface ExportDefaultDeclaration extends BaseNode { - type: AST_NODE_TYPES.ExportDefaultDeclaration; - /** - * The declaration being exported. - */ - declaration: DefaultExportDeclarations; - /** - * The kind of the export. - */ - exportKind: ExportKind; -} -declare type ExportKind = ExportAndImportKind; -export declare type ExportNamedDeclaration = ExportNamedDeclarationWithoutSourceWithMultiple | ExportNamedDeclarationWithoutSourceWithSingle | ExportNamedDeclarationWithSource; -declare interface ExportNamedDeclarationBase extends BaseNode { - type: AST_NODE_TYPES.ExportNamedDeclaration; - /** - * The assertions declared for the export. - * ``` - * export { foo } from 'mod' assert { type: 'json' }; - * ``` - * This will be an empty array if `source` is `null` - */ - assertions: ImportAttribute[]; - /** - * The exported declaration. - * ``` - * export const x = 1; - * ``` - * This will be `null` if `source` is not `null`, or if there are `specifiers` - */ - declaration: NamedExportDeclarations | null; - /** - * The kind of the export. - */ - exportKind: ExportKind; - /** - * The source module being exported from. - */ - source: StringLiteral | null; - /** - * The specifiers being exported. - * ``` - * export { a, b }; - * ``` - * This will be an empty array if `declaration` is not `null` - */ - specifiers: ExportSpecifier[]; -} -export declare interface ExportNamedDeclarationWithoutSourceWithMultiple extends ExportNamedDeclarationBase { - assertions: ImportAttribute[]; - declaration: null; - source: null; - specifiers: ExportSpecifier[]; -} -export declare interface ExportNamedDeclarationWithoutSourceWithSingle extends ExportNamedDeclarationBase { - assertions: ImportAttribute[]; - declaration: NamedExportDeclarations; - source: null; - specifiers: ExportSpecifier[]; -} -export declare interface ExportNamedDeclarationWithSource extends ExportNamedDeclarationBase { - assertions: ImportAttribute[]; - declaration: null; - source: StringLiteral; - specifiers: ExportSpecifier[]; -} -export declare interface ExportSpecifier extends BaseNode { - type: AST_NODE_TYPES.ExportSpecifier; - local: Identifier; - exported: Identifier; - exportKind: ExportKind; -} -export declare type Expression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | BinaryExpression | CallExpression | ChainExpression | ClassExpression | ConditionalExpression | FunctionExpression | Identifier | ImportExpression | JSXElement | JSXFragment | LiteralExpression | LogicalExpression | MemberExpression | MetaProperty | NewExpression | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | TemplateLiteral | ThisExpression | TSAsExpression | TSInstantiationExpression | TSNonNullExpression | TSSatisfiesExpression | TSTypeAssertion | UnaryExpression | UpdateExpression | YieldExpression; -export declare interface ExpressionStatement extends BaseNode { - type: AST_NODE_TYPES.ExpressionStatement; - expression: Expression; - directive?: string; -} -export declare type ForInitialiser = Expression | VariableDeclaration; -export declare interface ForInStatement extends BaseNode { - type: AST_NODE_TYPES.ForInStatement; - left: ForInitialiser; - right: Expression; - body: Statement; -} -export declare interface ForOfStatement extends BaseNode { - type: AST_NODE_TYPES.ForOfStatement; - left: ForInitialiser; - right: Expression; - body: Statement; - await: boolean; -} -export declare interface ForStatement extends BaseNode { - type: AST_NODE_TYPES.ForStatement; - init: Expression | ForInitialiser | null; - test: Expression | null; - update: Expression | null; - body: Statement; -} -declare interface FunctionBase extends BaseNode { - /** - * Whether the function is async: - * ``` - * async function foo(...) {...} - * const x = async function (...) {...} - * const x = async (...) => {...} - * ``` - */ - async: boolean; - /** - * The body of the function. - * - For an `ArrowFunctionExpression` this may be an `Expression` or `BlockStatement`. - * - For a `FunctionDeclaration` or `FunctionExpression` this is always a `BlockStatement. - * - For a `TSDeclareFunction` this is always `undefined`. - * - For a `TSEmptyBodyFunctionExpression` this is always `null`. - */ - body?: BlockStatement | Expression | null; - /** - * This is only `true` if and only if the node is a `TSDeclareFunction` and it has `declare`: - * ``` - * declare function foo(...) {...} - * ``` - */ - declare?: boolean; - /** - * This is only ever `true` if and only the node is an `ArrowFunctionExpression` and the body - * is an expression: - * ``` - * (() => 1) - * ``` - */ - expression: boolean; - /** - * Whether the function is a generator function: - * ``` - * function *foo(...) {...} - * const x = function *(...) {...} - * ``` - * This is always `false` for arrow functions as they cannot be generators. - */ - generator: boolean; - /** - * The function's name. - * - For an `ArrowFunctionExpression` this is always `null`. - * - For a `FunctionExpression` this may be `null` if the name is omitted. - * - For a `FunctionDeclaration` or `TSDeclareFunction` this may be `null` if - * and only if the parent is an `ExportDefaultDeclaration`. - */ - id: Identifier | null; - /** - * The list of parameters declared for the function. - */ - params: Parameter[]; - /** - * The return type annotation for the function. - * This is `undefined` if there is no return type declared. - */ - returnType?: TSTypeAnnotation; - /** - * The generic type parameter declaration for the function. - * This is `undefined` if there are no generic type parameters declared. - */ - typeParameters?: TSTypeParameterDeclaration; -} -export declare type FunctionDeclaration = FunctionDeclarationWithName | FunctionDeclarationWithOptionalName; -declare interface FunctionDeclarationBase extends FunctionBase { - type: AST_NODE_TYPES.FunctionDeclaration; - body: BlockStatement; - declare?: false; - expression: false; -} -export declare interface FunctionDeclarationWithName extends FunctionDeclarationBase { - id: Identifier; -} -export declare interface FunctionDeclarationWithOptionalName extends FunctionDeclarationBase { - id: Identifier | null; -} -export declare interface FunctionExpression extends FunctionBase { - type: AST_NODE_TYPES.FunctionExpression; - body: BlockStatement; - expression: false; -} -export declare type FunctionLike = ArrowFunctionExpression | FunctionDeclaration | FunctionExpression | TSDeclareFunction | TSEmptyBodyFunctionExpression; -export declare interface Identifier extends BaseNode { - type: AST_NODE_TYPES.Identifier; - name: string; - typeAnnotation?: TSTypeAnnotation; - optional?: boolean; - decorators?: Decorator[]; -} -export declare interface IdentifierToken extends BaseToken { - type: AST_TOKEN_TYPES.Identifier; -} -export declare interface IfStatement extends BaseNode { - type: AST_NODE_TYPES.IfStatement; - test: Expression; - consequent: Statement; - alternate: Statement | null; -} -export declare interface ImportAttribute extends BaseNode { - type: AST_NODE_TYPES.ImportAttribute; - key: Identifier | Literal; - value: Literal; -} -export declare type ImportClause = ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier; -export declare interface ImportDeclaration extends BaseNode { - type: AST_NODE_TYPES.ImportDeclaration; - /** - * The assertions declared for the export. - * ``` - * import * from 'mod' assert { type: 'json' }; - * ``` - */ - assertions: ImportAttribute[]; - /** - * The kind of the import. - */ - importKind: ImportKind; - /** - * The source module being imported from. - */ - source: StringLiteral; - /** - * The specifiers being imported. - * If this is an empty array then either there are no specifiers: - * ``` - * import {} from 'mod'; - * ``` - * Or it is a side-effect import: - * ``` - * import 'mod'; - * ``` - */ - specifiers: ImportClause[]; -} -export declare interface ImportDefaultSpecifier extends BaseNode { - type: AST_NODE_TYPES.ImportDefaultSpecifier; - local: Identifier; -} -export declare interface ImportExpression extends BaseNode { - type: AST_NODE_TYPES.ImportExpression; - source: Expression; - attributes: Expression | null; -} -declare type ImportKind = ExportAndImportKind; -export declare interface ImportNamespaceSpecifier extends BaseNode { - type: AST_NODE_TYPES.ImportNamespaceSpecifier; - local: Identifier; -} -export declare interface ImportSpecifier extends BaseNode { - type: AST_NODE_TYPES.ImportSpecifier; - local: Identifier; - imported: Identifier; - importKind: ImportKind; -} -export declare type IterationStatement = DoWhileStatement | ForInStatement | ForOfStatement | ForStatement | WhileStatement; -export declare interface JSXAttribute extends BaseNode { - type: AST_NODE_TYPES.JSXAttribute; - name: JSXIdentifier | JSXNamespacedName; - value: JSXExpression | Literal | null; -} -export declare type JSXChild = JSXElement | JSXExpression | JSXFragment | JSXText; -export declare interface JSXClosingElement extends BaseNode { - type: AST_NODE_TYPES.JSXClosingElement; - name: JSXTagNameExpression; -} -export declare interface JSXClosingFragment extends BaseNode { - type: AST_NODE_TYPES.JSXClosingFragment; -} -export declare interface JSXElement extends BaseNode { - type: AST_NODE_TYPES.JSXElement; - openingElement: JSXOpeningElement; - closingElement: JSXClosingElement | null; - children: JSXChild[]; -} -export declare interface JSXEmptyExpression extends BaseNode { - type: AST_NODE_TYPES.JSXEmptyExpression; -} -export declare type JSXExpression = JSXExpressionContainer | JSXSpreadChild; -export declare interface JSXExpressionContainer extends BaseNode { - type: AST_NODE_TYPES.JSXExpressionContainer; - expression: Expression | JSXEmptyExpression; -} -export declare interface JSXFragment extends BaseNode { - type: AST_NODE_TYPES.JSXFragment; - openingFragment: JSXOpeningFragment; - closingFragment: JSXClosingFragment; - children: JSXChild[]; -} -export declare interface JSXIdentifier extends BaseNode { - type: AST_NODE_TYPES.JSXIdentifier; - name: string; -} -export declare interface JSXIdentifierToken extends BaseToken { - type: AST_TOKEN_TYPES.JSXIdentifier; -} -export declare interface JSXMemberExpression extends BaseNode { - type: AST_NODE_TYPES.JSXMemberExpression; - object: JSXTagNameExpression; - property: JSXIdentifier; -} -export declare interface JSXNamespacedName extends BaseNode { - type: AST_NODE_TYPES.JSXNamespacedName; - namespace: JSXIdentifier; - name: JSXIdentifier; -} -export declare interface JSXOpeningElement extends BaseNode { - type: AST_NODE_TYPES.JSXOpeningElement; - typeParameters?: TSTypeParameterInstantiation; - selfClosing: boolean; - name: JSXTagNameExpression; - attributes: (JSXAttribute | JSXSpreadAttribute)[]; -} -export declare interface JSXOpeningFragment extends BaseNode { - type: AST_NODE_TYPES.JSXOpeningFragment; -} -export declare interface JSXSpreadAttribute extends BaseNode { - type: AST_NODE_TYPES.JSXSpreadAttribute; - argument: Expression; -} -export declare interface JSXSpreadChild extends BaseNode { - type: AST_NODE_TYPES.JSXSpreadChild; - expression: Expression | JSXEmptyExpression; -} -export declare type JSXTagNameExpression = JSXIdentifier | JSXMemberExpression | JSXNamespacedName; -export declare interface JSXText extends BaseNode { - type: AST_NODE_TYPES.JSXText; - value: string; - raw: string; -} -export declare interface JSXTextToken extends BaseToken { - type: AST_TOKEN_TYPES.JSXText; -} -export declare interface KeywordToken extends BaseToken { - type: AST_TOKEN_TYPES.Keyword; -} -export declare interface LabeledStatement extends BaseNode { - type: AST_NODE_TYPES.LabeledStatement; - label: Identifier; - body: Statement; -} -export declare type LeftHandSideExpression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | CallExpression | ClassExpression | FunctionExpression | Identifier | JSXElement | JSXFragment | LiteralExpression | MemberExpression | MetaProperty | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | ThisExpression | TSAsExpression | TSNonNullExpression | TSTypeAssertion; -export declare interface LineComment extends BaseToken { - type: AST_TOKEN_TYPES.Line; -} -export declare type Literal = BigIntLiteral | BooleanLiteral | NullLiteral | NumberLiteral | RegExpLiteral | StringLiteral; -declare interface LiteralBase extends BaseNode { - type: AST_NODE_TYPES.Literal; - raw: string; - value: RegExp | bigint | boolean | number | string | null; -} -export declare type LiteralExpression = Literal | TemplateLiteral; -export declare interface LogicalExpression extends BaseNode { - type: AST_NODE_TYPES.LogicalExpression; - operator: '??' | '&&' | '||'; - left: Expression; - right: Expression; -} -export declare type MemberExpression = MemberExpressionComputedName | MemberExpressionNonComputedName; -declare interface MemberExpressionBase extends BaseNode { - object: Expression; - property: Expression | Identifier | PrivateIdentifier; - computed: boolean; - optional: boolean; -} -export declare interface MemberExpressionComputedName extends MemberExpressionBase { - type: AST_NODE_TYPES.MemberExpression; - property: Expression; - computed: true; -} -export declare interface MemberExpressionNonComputedName extends MemberExpressionBase { - type: AST_NODE_TYPES.MemberExpression; - property: Identifier | PrivateIdentifier; - computed: false; -} -export declare interface MetaProperty extends BaseNode { - type: AST_NODE_TYPES.MetaProperty; - meta: Identifier; - property: Identifier; -} -export declare type MethodDefinition = MethodDefinitionComputedName | MethodDefinitionNonComputedName; -/** this should not be directly used - instead use MethodDefinitionComputedNameBase or MethodDefinitionNonComputedNameBase */ -declare interface MethodDefinitionBase extends BaseNode { - key: PropertyName; - value: FunctionExpression | TSEmptyBodyFunctionExpression; - computed: boolean; - static: boolean; - kind: 'constructor' | 'get' | 'method' | 'set'; - optional?: boolean; - decorators?: Decorator[]; - accessibility?: Accessibility; - typeParameters?: TSTypeParameterDeclaration; - override?: boolean; -} -export declare interface MethodDefinitionComputedName extends MethodDefinitionComputedNameBase { - type: AST_NODE_TYPES.MethodDefinition; -} -declare interface MethodDefinitionComputedNameBase extends MethodDefinitionBase { - key: PropertyNameComputed; - computed: true; -} -export declare interface MethodDefinitionNonComputedName extends ClassMethodDefinitionNonComputedNameBase { - type: AST_NODE_TYPES.MethodDefinition; -} -declare interface MethodDefinitionNonComputedNameBase extends MethodDefinitionBase { - key: PropertyNameNonComputed; - computed: false; -} -export declare type Modifier = TSAbstractKeyword | TSAsyncKeyword | TSPrivateKeyword | TSProtectedKeyword | TSPublicKeyword | TSReadonlyKeyword | TSStaticKeyword; -declare type ModuleBody_TODOFixThis = TSModuleBlock | TSModuleDeclaration; -export declare type NamedExportDeclarations = ClassDeclarationWithName | ClassDeclarationWithOptionalName | FunctionDeclarationWithName | FunctionDeclarationWithOptionalName | TSDeclareFunction | TSEnumDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSTypeAliasDeclaration | VariableDeclaration; -export declare interface NewExpression extends BaseNode { - type: AST_NODE_TYPES.NewExpression; - callee: LeftHandSideExpression; - arguments: CallExpressionArgument[]; - typeParameters?: TSTypeParameterInstantiation; -} -export declare type Node = AccessorProperty | ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BlockStatement | BreakStatement | CallExpression | CatchClause | ChainExpression | ClassBody | ClassDeclaration | ClassExpression | ConditionalExpression | ContinueStatement | DebuggerStatement | Decorator | DoWhileStatement | EmptyStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportExpression | ImportNamespaceSpecifier | ImportSpecifier | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LabeledStatement | Literal | LogicalExpression | MemberExpression | MetaProperty | MethodDefinition | NewExpression | ObjectExpression | ObjectPattern | PrivateIdentifier | Program | Property | PropertyDefinition | RestElement | ReturnStatement | SequenceExpression | SpreadElement | StaticBlock | Super | SwitchCase | SwitchStatement | TaggedTemplateExpression | TemplateElement | TemplateLiteral | ThisExpression | ThrowStatement | TryStatement | TSAbstractAccessorProperty | TSAbstractKeyword | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSAnyKeyword | TSArrayType | TSAsExpression | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSClassImplements | TSConditionalType | TSConstructorType | TSConstructSignatureDeclaration | TSDeclareFunction | TSDeclareKeyword | TSEmptyBodyFunctionExpression | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExportKeyword | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexedAccessType | TSIndexSignature | TSInferType | TSInstantiationExpression | TSInterfaceBody | TSInterfaceDeclaration | TSInterfaceHeritage | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSPrivateKeyword | TSPropertySignature | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSSatisfiesExpression | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | YieldExpression; -declare interface NodeOrTokenData { - /** - * The source location information of the node. - * - * The loc property is defined as nullable by ESTree, but ESLint requires this property. - * - * @see {SourceLocation} - */ - loc: SourceLocation; - /** - * @see {Range} - */ - range: Range; - type: string; -} -export declare interface NullLiteral extends LiteralBase { - value: null; - raw: 'null'; -} -export declare interface NullToken extends BaseToken { - type: AST_TOKEN_TYPES.Null; -} -export declare interface NumberLiteral extends LiteralBase { - value: number; -} -export declare interface NumericToken extends BaseToken { - type: AST_TOKEN_TYPES.Numeric; -} -export declare interface ObjectExpression extends BaseNode { - type: AST_NODE_TYPES.ObjectExpression; - properties: ObjectLiteralElement[]; -} -export declare type ObjectLiteralElement = Property | SpreadElement; -export declare type ObjectLiteralElementLike = ObjectLiteralElement; -export declare interface ObjectPattern extends BaseNode { - type: AST_NODE_TYPES.ObjectPattern; - properties: (Property | RestElement)[]; - typeAnnotation?: TSTypeAnnotation; - optional?: boolean; - decorators?: Decorator[]; -} -export declare type OptionalRangeAndLoc = Pick> & { - range?: Range; - loc?: SourceLocation; -}; -export declare type Parameter = ArrayPattern | AssignmentPattern | Identifier | ObjectPattern | RestElement | TSParameterProperty; -export declare interface Position { - /** - * Line number (1-indexed) - */ - line: number; - /** - * Column number on the line (0-indexed) - */ - column: number; -} -export declare type PrimaryExpression = ArrayExpression | ArrayPattern | ClassExpression | FunctionExpression | Identifier | JSXElement | JSXFragment | JSXOpeningElement | LiteralExpression | MetaProperty | ObjectExpression | ObjectPattern | Super | TemplateLiteral | ThisExpression | TSNullKeyword; -export declare interface PrivateIdentifier extends BaseNode { - type: AST_NODE_TYPES.PrivateIdentifier; - name: string; -} -export declare interface Program extends BaseNode { - type: AST_NODE_TYPES.Program; - body: ProgramStatement[]; - sourceType: 'module' | 'script'; - comments?: Comment[]; - tokens?: Token[]; -} -export declare type ProgramStatement = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | Statement | TSImportEqualsDeclaration | TSNamespaceExportDeclaration; -export declare type Property = PropertyComputedName | PropertyNonComputedName; -declare interface PropertyBase extends BaseNode { - type: AST_NODE_TYPES.Property; - key: PropertyName; - value: AssignmentPattern | BindingName | Expression | TSEmptyBodyFunctionExpression; - computed: boolean; - method: boolean; - shorthand: boolean; - optional?: boolean; - kind: 'get' | 'init' | 'set'; -} -export declare interface PropertyComputedName extends PropertyBase { - key: PropertyNameComputed; - computed: true; -} -export declare type PropertyDefinition = PropertyDefinitionComputedName | PropertyDefinitionNonComputedName; -declare interface PropertyDefinitionBase extends BaseNode { - key: PropertyName; - value: Expression | null; - computed: boolean; - static: boolean; - declare: boolean; - readonly?: boolean; - decorators?: Decorator[]; - accessibility?: Accessibility; - optional?: boolean; - definite?: boolean; - typeAnnotation?: TSTypeAnnotation; - override?: boolean; -} -export declare interface PropertyDefinitionComputedName extends PropertyDefinitionComputedNameBase { - type: AST_NODE_TYPES.PropertyDefinition; -} -declare interface PropertyDefinitionComputedNameBase extends PropertyDefinitionBase { - key: PropertyNameComputed; - computed: true; -} -export declare interface PropertyDefinitionNonComputedName extends ClassPropertyDefinitionNonComputedNameBase { - type: AST_NODE_TYPES.PropertyDefinition; -} -declare interface PropertyDefinitionNonComputedNameBase extends PropertyDefinitionBase { - key: PropertyNameNonComputed; - computed: false; -} -export declare type PropertyName = ClassPropertyNameNonComputed | PropertyNameComputed | PropertyNameNonComputed; -export declare type PropertyNameComputed = Expression; -export declare type PropertyNameNonComputed = Identifier | NumberLiteral | StringLiteral; -export declare interface PropertyNonComputedName extends PropertyBase { - key: PropertyNameNonComputed; - computed: false; -} -export declare interface PunctuatorToken extends BaseToken { - type: AST_TOKEN_TYPES.Punctuator; - value: ValueOf; -} -export declare interface PunctuatorTokenToText extends AssignmentOperatorToText { - [SyntaxKind.OpenBraceToken]: '{'; - [SyntaxKind.CloseBraceToken]: '}'; - [SyntaxKind.OpenParenToken]: '('; - [SyntaxKind.CloseParenToken]: ')'; - [SyntaxKind.OpenBracketToken]: '['; - [SyntaxKind.CloseBracketToken]: ']'; - [SyntaxKind.DotToken]: '.'; - [SyntaxKind.DotDotDotToken]: '...'; - [SyntaxKind.SemicolonToken]: ';'; - [SyntaxKind.CommaToken]: ','; - [SyntaxKind.QuestionDotToken]: '?.'; - [SyntaxKind.LessThanToken]: '<'; - [SyntaxKind.LessThanSlashToken]: ''; - [SyntaxKind.LessThanEqualsToken]: '<='; - [SyntaxKind.GreaterThanEqualsToken]: '>='; - [SyntaxKind.EqualsEqualsToken]: '=='; - [SyntaxKind.ExclamationEqualsToken]: '!='; - [SyntaxKind.EqualsEqualsEqualsToken]: '==='; - [SyntaxKind.ExclamationEqualsEqualsToken]: '!=='; - [SyntaxKind.EqualsGreaterThanToken]: '=>'; - [SyntaxKind.PlusToken]: '+'; - [SyntaxKind.MinusToken]: '-'; - [SyntaxKind.AsteriskToken]: '*'; - [SyntaxKind.AsteriskAsteriskToken]: '**'; - [SyntaxKind.SlashToken]: '/'; - [SyntaxKind.PercentToken]: '%'; - [SyntaxKind.PlusPlusToken]: '++'; - [SyntaxKind.MinusMinusToken]: '--'; - [SyntaxKind.LessThanLessThanToken]: '<<'; - [SyntaxKind.GreaterThanGreaterThanToken]: '>>'; - [SyntaxKind.GreaterThanGreaterThanGreaterThanToken]: '>>>'; - [SyntaxKind.AmpersandToken]: '&'; - [SyntaxKind.BarToken]: '|'; - [SyntaxKind.CaretToken]: '^'; - [SyntaxKind.ExclamationToken]: '!'; - [SyntaxKind.TildeToken]: '~'; - [SyntaxKind.AmpersandAmpersandToken]: '&&'; - [SyntaxKind.BarBarToken]: '||'; - [SyntaxKind.QuestionToken]: '?'; - [SyntaxKind.ColonToken]: ':'; - [SyntaxKind.AtToken]: '@'; - [SyntaxKind.QuestionQuestionToken]: '??'; - [SyntaxKind.BacktickToken]: '`'; - [SyntaxKind.HashToken]: '#'; -} -/** - * An array of two numbers. - * Both numbers are a 0-based index which is the position in the array of source code characters. - * The first is the start position of the node, the second is the end position of the node. - */ -export declare type Range = [ - number, - number -]; -export declare interface RegExpLiteral extends LiteralBase { - value: RegExp | null; - regex: { - pattern: string; - flags: string; - }; -} -export declare interface RegularExpressionToken extends BaseToken { - type: AST_TOKEN_TYPES.RegularExpression; - regex: { - pattern: string; - flags: string; - }; -} -export declare interface RestElement extends BaseNode { - type: AST_NODE_TYPES.RestElement; - argument: DestructuringPattern; - typeAnnotation?: TSTypeAnnotation; - optional?: boolean; - value?: AssignmentPattern; - decorators?: Decorator[]; -} -export declare interface ReturnStatement extends BaseNode { - type: AST_NODE_TYPES.ReturnStatement; - argument: Expression | null; -} -export declare interface SequenceExpression extends BaseNode { - type: AST_NODE_TYPES.SequenceExpression; - expressions: Expression[]; -} -export declare interface SourceLocation { - /** - * The position of the first character of the parsed source region - */ - start: Position; - /** - * The position of the first character after the parsed source region - */ - end: Position; -} -export declare interface SpreadElement extends BaseNode { - type: AST_NODE_TYPES.SpreadElement; - argument: Expression; -} -export declare type Statement = BlockStatement | BreakStatement | ClassDeclarationWithName | ContinueStatement | DebuggerStatement | DoWhileStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclarationWithName | IfStatement | ImportDeclaration | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | TSDeclareFunction | TSEnumDeclaration | TSExportAssignment | TSImportEqualsDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSNamespaceExportDeclaration | TSTypeAliasDeclaration | VariableDeclaration | WhileStatement | WithStatement; -export declare interface StaticBlock extends BaseNode { - type: AST_NODE_TYPES.StaticBlock; - body: Statement[]; -} -export declare interface StringLiteral extends LiteralBase { - value: string; -} -export declare interface StringToken extends BaseToken { - type: AST_TOKEN_TYPES.String; -} -export declare interface Super extends BaseNode { - type: AST_NODE_TYPES.Super; -} -export declare interface SwitchCase extends BaseNode { - type: AST_NODE_TYPES.SwitchCase; - test: Expression | null; - consequent: Statement[]; -} -export declare interface SwitchStatement extends BaseNode { - type: AST_NODE_TYPES.SwitchStatement; - discriminant: Expression; - cases: SwitchCase[]; -} -export declare interface TaggedTemplateExpression extends BaseNode { - type: AST_NODE_TYPES.TaggedTemplateExpression; - typeParameters?: TSTypeParameterInstantiation; - tag: LeftHandSideExpression; - quasi: TemplateLiteral; -} -export declare interface TemplateElement extends BaseNode { - type: AST_NODE_TYPES.TemplateElement; - value: { - raw: string; - cooked: string; - }; - tail: boolean; -} -export declare interface TemplateLiteral extends BaseNode { - type: AST_NODE_TYPES.TemplateLiteral; - quasis: TemplateElement[]; - expressions: Expression[]; -} -export declare interface TemplateToken extends BaseToken { - type: AST_TOKEN_TYPES.Template; -} -export declare interface ThisExpression extends BaseNode { - type: AST_NODE_TYPES.ThisExpression; -} -export declare interface ThrowStatement extends BaseNode { - type: AST_NODE_TYPES.ThrowStatement; - argument: Statement | TSAsExpression | null; -} -export declare type Token = BooleanToken | Comment | IdentifierToken | JSXIdentifierToken | JSXTextToken | KeywordToken | NullToken | NumericToken | PunctuatorToken | RegularExpressionToken | StringToken | TemplateToken; -export declare interface TryStatement extends BaseNode { - type: AST_NODE_TYPES.TryStatement; - block: BlockStatement; - handler: CatchClause | null; - finalizer: BlockStatement | null; -} -export declare type TSAbstractAccessorProperty = TSAbstractAccessorPropertyComputedName | TSAbstractAccessorPropertyNonComputedName; -export declare interface TSAbstractAccessorPropertyComputedName extends PropertyDefinitionComputedNameBase { - type: AST_NODE_TYPES.TSAbstractAccessorProperty; - value: null; -} -export declare interface TSAbstractAccessorPropertyNonComputedName extends PropertyDefinitionNonComputedNameBase { - type: AST_NODE_TYPES.TSAbstractAccessorProperty; - value: null; -} -export declare interface TSAbstractKeyword extends BaseNode { - type: AST_NODE_TYPES.TSAbstractKeyword; -} -export declare type TSAbstractMethodDefinition = TSAbstractMethodDefinitionComputedName | TSAbstractMethodDefinitionNonComputedName; -export declare interface TSAbstractMethodDefinitionComputedName extends MethodDefinitionComputedNameBase { - type: AST_NODE_TYPES.TSAbstractMethodDefinition; -} -export declare interface TSAbstractMethodDefinitionNonComputedName extends MethodDefinitionNonComputedNameBase { - type: AST_NODE_TYPES.TSAbstractMethodDefinition; -} -export declare type TSAbstractPropertyDefinition = TSAbstractPropertyDefinitionComputedName | TSAbstractPropertyDefinitionNonComputedName; -export declare interface TSAbstractPropertyDefinitionComputedName extends PropertyDefinitionComputedNameBase { - type: AST_NODE_TYPES.TSAbstractPropertyDefinition; - value: null; -} -export declare interface TSAbstractPropertyDefinitionNonComputedName extends PropertyDefinitionNonComputedNameBase { - type: AST_NODE_TYPES.TSAbstractPropertyDefinition; - value: null; -} -export declare interface TSAnyKeyword extends BaseNode { - type: AST_NODE_TYPES.TSAnyKeyword; -} -export declare interface TSArrayType extends BaseNode { - type: AST_NODE_TYPES.TSArrayType; - elementType: TypeNode; -} -export declare interface TSAsExpression extends BaseNode { - type: AST_NODE_TYPES.TSAsExpression; - expression: Expression; - typeAnnotation: TypeNode; -} -export declare interface TSAsyncKeyword extends BaseNode { - type: AST_NODE_TYPES.TSAsyncKeyword; -} -export declare interface TSBigIntKeyword extends BaseNode { - type: AST_NODE_TYPES.TSBigIntKeyword; -} -export declare interface TSBooleanKeyword extends BaseNode { - type: AST_NODE_TYPES.TSBooleanKeyword; -} -export declare interface TSCallSignatureDeclaration extends TSFunctionSignatureBase { - type: AST_NODE_TYPES.TSCallSignatureDeclaration; -} -export declare interface TSClassImplements extends TSHeritageBase { - type: AST_NODE_TYPES.TSClassImplements; -} -export declare interface TSConditionalType extends BaseNode { - type: AST_NODE_TYPES.TSConditionalType; - checkType: TypeNode; - extendsType: TypeNode; - trueType: TypeNode; - falseType: TypeNode; -} -export declare interface TSConstructorType extends TSFunctionSignatureBase { - type: AST_NODE_TYPES.TSConstructorType; - abstract: boolean; -} -export declare interface TSConstructSignatureDeclaration extends TSFunctionSignatureBase { - type: AST_NODE_TYPES.TSConstructSignatureDeclaration; -} -export declare interface TSDeclareFunction extends FunctionBase { - type: AST_NODE_TYPES.TSDeclareFunction; - body?: BlockStatement; - declare?: boolean; - expression: false; -} -export declare interface TSDeclareKeyword extends BaseNode { - type: AST_NODE_TYPES.TSDeclareKeyword; -} -export declare interface TSEmptyBodyFunctionExpression extends FunctionBase { - type: AST_NODE_TYPES.TSEmptyBodyFunctionExpression; - body: null; - id: null; -} -export declare interface TSEnumDeclaration extends BaseNode { - type: AST_NODE_TYPES.TSEnumDeclaration; - /** - * Whether this is a `const` enum. - * ``` - * const enum Foo {...} - * ``` - */ - const?: boolean; - /** - * Whether this is a `declare`d enum. - * ``` - * declare enum Foo {...} - * ``` - */ - declare?: boolean; - /** - * The enum name. - */ - id: Identifier; - /** - * The enum members. - */ - members: TSEnumMember[]; - modifiers?: Modifier[]; -} -export declare type TSEnumMember = TSEnumMemberComputedName | TSEnumMemberNonComputedName; -declare interface TSEnumMemberBase extends BaseNode { - type: AST_NODE_TYPES.TSEnumMember; - id: PropertyNameComputed | PropertyNameNonComputed; - initializer?: Expression; - computed?: boolean; -} -/** - * this should only really happen in semantically invalid code (errors 1164 and 2452) - * - * VALID: - * enum Foo { ['a'] } - * - * INVALID: - * const x = 'a'; - * enum Foo { [x] } - * enum Bar { ['a' + 'b'] } - */ -export declare interface TSEnumMemberComputedName extends TSEnumMemberBase { - id: PropertyNameComputed; - computed: true; -} -export declare interface TSEnumMemberNonComputedName extends TSEnumMemberBase { - id: PropertyNameNonComputed; - computed?: false; -} -export declare interface TSExportAssignment extends BaseNode { - type: AST_NODE_TYPES.TSExportAssignment; - expression: Expression; -} -export declare interface TSExportKeyword extends BaseNode { - type: AST_NODE_TYPES.TSExportKeyword; -} -export declare interface TSExternalModuleReference extends BaseNode { - type: AST_NODE_TYPES.TSExternalModuleReference; - expression: Expression; -} -declare interface TSFunctionSignatureBase extends BaseNode { - params: Parameter[]; - returnType?: TSTypeAnnotation; - typeParameters?: TSTypeParameterDeclaration; -} -export declare interface TSFunctionType extends TSFunctionSignatureBase { - type: AST_NODE_TYPES.TSFunctionType; -} -declare interface TSHeritageBase extends BaseNode { - expression: Expression; - typeParameters?: TSTypeParameterInstantiation; -} -export declare interface TSImportEqualsDeclaration extends BaseNode { - type: AST_NODE_TYPES.TSImportEqualsDeclaration; - /** - * The locally imported name - */ - id: Identifier; - /** - * The value being aliased. - * ``` - * import F1 = A; - * import F2 = A.B.C; - * import F3 = require('mod'); - * ``` - */ - moduleReference: EntityName | TSExternalModuleReference; - importKind: ImportKind; - /** - * Whether this is immediately exported - * ``` - * export import F = A; - * ``` - */ - isExport: boolean; -} -export declare interface TSImportType extends BaseNode { - type: AST_NODE_TYPES.TSImportType; - isTypeOf: boolean; - parameter: TypeNode; - qualifier: EntityName | null; - typeParameters: TSTypeParameterInstantiation | null; -} -export declare interface TSIndexedAccessType extends BaseNode { - type: AST_NODE_TYPES.TSIndexedAccessType; - objectType: TypeNode; - indexType: TypeNode; -} -export declare interface TSIndexSignature extends BaseNode { - type: AST_NODE_TYPES.TSIndexSignature; - parameters: Parameter[]; - typeAnnotation?: TSTypeAnnotation; - readonly?: boolean; - accessibility?: Accessibility; - export?: boolean; - static?: boolean; -} -export declare interface TSInferType extends BaseNode { - type: AST_NODE_TYPES.TSInferType; - typeParameter: TSTypeParameter; -} -export declare interface TSInstantiationExpression extends BaseNode { - type: AST_NODE_TYPES.TSInstantiationExpression; - expression: Expression; - typeParameters: TSTypeParameterInstantiation; -} -export declare interface TSInterfaceBody extends BaseNode { - type: AST_NODE_TYPES.TSInterfaceBody; - body: TypeElement[]; -} -export declare interface TSInterfaceDeclaration extends BaseNode { - type: AST_NODE_TYPES.TSInterfaceDeclaration; - abstract?: boolean; - /** - * The body of the interface - */ - body: TSInterfaceBody; - /** - * Whether the interface was `declare`d, `undefined` otherwise - */ - declare?: boolean; - /** - * The types this interface `extends` - */ - extends?: TSInterfaceHeritage[]; - /** - * The name of this interface - */ - id: Identifier; - implements?: TSInterfaceHeritage[]; - /** - * The generic type parameters declared for the interface. - * This is `undefined` if there are no generic type parameters declared. - */ - typeParameters?: TSTypeParameterDeclaration; -} -export declare interface TSInterfaceHeritage extends TSHeritageBase { - type: AST_NODE_TYPES.TSInterfaceHeritage; -} -export declare interface TSIntersectionType extends BaseNode { - type: AST_NODE_TYPES.TSIntersectionType; - types: TypeNode[]; -} -export declare interface TSIntrinsicKeyword extends BaseNode { - type: AST_NODE_TYPES.TSIntrinsicKeyword; -} -export declare interface TSLiteralType extends BaseNode { - type: AST_NODE_TYPES.TSLiteralType; - literal: LiteralExpression | UnaryExpression | UpdateExpression; -} -export declare interface TSMappedType extends BaseNode { - type: AST_NODE_TYPES.TSMappedType; - typeParameter: TSTypeParameter; - readonly?: boolean | '-' | '+'; - optional?: boolean | '-' | '+'; - typeAnnotation?: TypeNode; - nameType: TypeNode | null; -} -export declare type TSMethodSignature = TSMethodSignatureComputedName | TSMethodSignatureNonComputedName; -declare interface TSMethodSignatureBase extends BaseNode { - type: AST_NODE_TYPES.TSMethodSignature; - key: PropertyName; - computed: boolean; - params: Parameter[]; - optional?: boolean; - returnType?: TSTypeAnnotation; - readonly?: boolean; - typeParameters?: TSTypeParameterDeclaration; - accessibility?: Accessibility; - export?: boolean; - static?: boolean; - kind: 'get' | 'method' | 'set'; -} -export declare interface TSMethodSignatureComputedName extends TSMethodSignatureBase { - key: PropertyNameComputed; - computed: true; -} -export declare interface TSMethodSignatureNonComputedName extends TSMethodSignatureBase { - key: PropertyNameNonComputed; - computed: false; -} -export declare interface TSModuleBlock extends BaseNode { - type: AST_NODE_TYPES.TSModuleBlock; - body: ProgramStatement[]; -} -export declare type TSModuleDeclaration = TSModuleDeclarationGlobal | TSModuleDeclarationModule | TSModuleDeclarationNamespace; -declare interface TSModuleDeclarationBase extends BaseNode { - type: AST_NODE_TYPES.TSModuleDeclaration; - /** - * The name of the module - * ``` - * namespace A {} - * namespace A.B.C {} - * module 'a' {} - * ``` - */ - id: Identifier | StringLiteral; - /** - * The body of the module. - * This can only be `undefined` for the code `declare module 'mod';` - * This will be a `TSModuleDeclaration` if the name is "nested" (`Foo.Bar`). - */ - body?: ModuleBody_TODOFixThis; - /** - * Whether this is a global declaration - * ``` - * declare global {} - * ``` - */ - global?: boolean; - /** - * Whether the module is `declare`d - * ``` - * declare namespace F {} - * ``` - */ - declare?: boolean; - modifiers?: Modifier[]; - /** - * The keyword used to define this module declaration - * ``` - * namespace Foo {} - * ^^^^^^^^^ - * - * module 'foo' {} - * ^^^^^^ - * - * declare global {} - * ^^^^^^ - * ``` - */ - kind: TSModuleDeclarationKind; -} -export declare interface TSModuleDeclarationGlobal extends TSModuleDeclarationBase { - kind: 'global'; - body: TSModuleBlock; - id: Identifier; - global: true; -} -export declare type TSModuleDeclarationKind = 'global' | 'module' | 'namespace'; -export declare type TSModuleDeclarationModule = TSModuleDeclarationModuleWithIdentifierId | TSModuleDeclarationModuleWithStringId; -declare interface TSModuleDeclarationModuleBase extends TSModuleDeclarationBase { - kind: 'module'; - global?: undefined; -} -export declare interface TSModuleDeclarationModuleWithIdentifierId extends TSModuleDeclarationModuleBase { - kind: 'module'; - id: Identifier; - body: ModuleBody_TODOFixThis; -} -export declare type TSModuleDeclarationModuleWithStringId = TSModuleDeclarationModuleWithStringIdDeclared | TSModuleDeclarationModuleWithStringIdNotDeclared; -export declare interface TSModuleDeclarationModuleWithStringIdDeclared extends TSModuleDeclarationModuleBase { - kind: 'module'; - id: StringLiteral; - declare: true; - body?: TSModuleBlock; -} -export declare interface TSModuleDeclarationModuleWithStringIdNotDeclared extends TSModuleDeclarationModuleBase { - kind: 'module'; - id: StringLiteral; - declare: false; - body: TSModuleBlock; -} -export declare interface TSModuleDeclarationNamespace extends TSModuleDeclarationBase { - kind: 'namespace'; - id: Identifier; - body: ModuleBody_TODOFixThis; - global?: undefined; -} -export declare interface TSNamedTupleMember extends BaseNode { - type: AST_NODE_TYPES.TSNamedTupleMember; - elementType: TypeNode; - label: Identifier; - optional: boolean; -} -export declare interface TSNamespaceExportDeclaration extends BaseNode { - type: AST_NODE_TYPES.TSNamespaceExportDeclaration; - /** - * The name the global variable being exported to - */ - id: Identifier; -} -export declare interface TSNeverKeyword extends BaseNode { - type: AST_NODE_TYPES.TSNeverKeyword; -} -export declare interface TSNonNullExpression extends BaseNode { - type: AST_NODE_TYPES.TSNonNullExpression; - expression: Expression; -} -export declare interface TSNullKeyword extends BaseNode { - type: AST_NODE_TYPES.TSNullKeyword; -} -export declare interface TSNumberKeyword extends BaseNode { - type: AST_NODE_TYPES.TSNumberKeyword; -} -export declare interface TSObjectKeyword extends BaseNode { - type: AST_NODE_TYPES.TSObjectKeyword; -} -export declare interface TSOptionalType extends BaseNode { - type: AST_NODE_TYPES.TSOptionalType; - typeAnnotation: TypeNode; -} -export declare interface TSParameterProperty extends BaseNode { - type: AST_NODE_TYPES.TSParameterProperty; - accessibility?: Accessibility; - readonly?: boolean; - static?: boolean; - export?: boolean; - override?: boolean; - parameter: AssignmentPattern | BindingName | RestElement; - decorators?: Decorator[]; -} -export declare interface TSPrivateKeyword extends BaseNode { - type: AST_NODE_TYPES.TSPrivateKeyword; -} -export declare type TSPropertySignature = TSPropertySignatureComputedName | TSPropertySignatureNonComputedName; -declare interface TSPropertySignatureBase extends BaseNode { - type: AST_NODE_TYPES.TSPropertySignature; - key: PropertyName; - optional?: boolean; - computed: boolean; - typeAnnotation?: TSTypeAnnotation; - initializer?: Expression; - readonly?: boolean; - static?: boolean; - export?: boolean; - accessibility?: Accessibility; -} -export declare interface TSPropertySignatureComputedName extends TSPropertySignatureBase { - key: PropertyNameComputed; - computed: true; -} -export declare interface TSPropertySignatureNonComputedName extends TSPropertySignatureBase { - key: PropertyNameNonComputed; - computed: false; -} -export declare interface TSProtectedKeyword extends BaseNode { - type: AST_NODE_TYPES.TSProtectedKeyword; -} -export declare interface TSPublicKeyword extends BaseNode { - type: AST_NODE_TYPES.TSPublicKeyword; -} -export declare interface TSQualifiedName extends BaseNode { - type: AST_NODE_TYPES.TSQualifiedName; - left: EntityName; - right: Identifier; -} -export declare interface TSReadonlyKeyword extends BaseNode { - type: AST_NODE_TYPES.TSReadonlyKeyword; -} -export declare interface TSRestType extends BaseNode { - type: AST_NODE_TYPES.TSRestType; - typeAnnotation: TypeNode; -} -export declare interface TSSatisfiesExpression extends BaseNode { - type: AST_NODE_TYPES.TSSatisfiesExpression; - expression: Expression; - typeAnnotation: TypeNode; -} -export declare interface TSStaticKeyword extends BaseNode { - type: AST_NODE_TYPES.TSStaticKeyword; -} -export declare interface TSStringKeyword extends BaseNode { - type: AST_NODE_TYPES.TSStringKeyword; -} -export declare interface TSSymbolKeyword extends BaseNode { - type: AST_NODE_TYPES.TSSymbolKeyword; -} -export declare interface TSTemplateLiteralType extends BaseNode { - type: AST_NODE_TYPES.TSTemplateLiteralType; - quasis: TemplateElement[]; - types: TypeNode[]; -} -export declare interface TSThisType extends BaseNode { - type: AST_NODE_TYPES.TSThisType; -} -export declare interface TSTupleType extends BaseNode { - type: AST_NODE_TYPES.TSTupleType; - elementTypes: TypeNode[]; -} -export declare interface TSTypeAliasDeclaration extends BaseNode { - type: AST_NODE_TYPES.TSTypeAliasDeclaration; - /** - * Whether the type was `declare`d. - * ``` - * declare type T = 1; - * ``` - */ - declare?: boolean; - /** - * The name of the type. - */ - id: Identifier; - /** - * The "value" (type) of the declaration - */ - typeAnnotation: TypeNode; - /** - * The generic type parameters declared for the type. - * This is `undefined` if there are no generic type parameters declared. - */ - typeParameters?: TSTypeParameterDeclaration; -} -export declare interface TSTypeAnnotation extends BaseNode { - type: AST_NODE_TYPES.TSTypeAnnotation; - typeAnnotation: TypeNode; -} -export declare interface TSTypeAssertion extends BaseNode { - type: AST_NODE_TYPES.TSTypeAssertion; - typeAnnotation: TypeNode; - expression: Expression; -} -export declare interface TSTypeLiteral extends BaseNode { - type: AST_NODE_TYPES.TSTypeLiteral; - members: TypeElement[]; -} -export declare interface TSTypeOperator extends BaseNode { - type: AST_NODE_TYPES.TSTypeOperator; - operator: 'keyof' | 'readonly' | 'unique'; - typeAnnotation?: TypeNode; -} -export declare interface TSTypeParameter extends BaseNode { - type: AST_NODE_TYPES.TSTypeParameter; - name: Identifier; - constraint?: TypeNode; - default?: TypeNode; - in: boolean; - out: boolean; - const: boolean; -} -export declare interface TSTypeParameterDeclaration extends BaseNode { - type: AST_NODE_TYPES.TSTypeParameterDeclaration; - params: TSTypeParameter[]; -} -export declare interface TSTypeParameterInstantiation extends BaseNode { - type: AST_NODE_TYPES.TSTypeParameterInstantiation; - params: TypeNode[]; -} -export declare interface TSTypePredicate extends BaseNode { - type: AST_NODE_TYPES.TSTypePredicate; - asserts: boolean; - parameterName: Identifier | TSThisType; - typeAnnotation: TSTypeAnnotation | null; -} -export declare interface TSTypeQuery extends BaseNode { - type: AST_NODE_TYPES.TSTypeQuery; - exprName: EntityName; - typeParameters?: TSTypeParameterInstantiation; -} -export declare interface TSTypeReference extends BaseNode { - type: AST_NODE_TYPES.TSTypeReference; - typeName: EntityName; - typeParameters?: TSTypeParameterInstantiation; -} -export declare type TSUnaryExpression = AwaitExpression | LeftHandSideExpression | UnaryExpression | UpdateExpression; -export declare interface TSUndefinedKeyword extends BaseNode { - type: AST_NODE_TYPES.TSUndefinedKeyword; -} -export declare interface TSUnionType extends BaseNode { - type: AST_NODE_TYPES.TSUnionType; - types: TypeNode[]; -} -export declare interface TSUnknownKeyword extends BaseNode { - type: AST_NODE_TYPES.TSUnknownKeyword; -} -export declare interface TSVoidKeyword extends BaseNode { - type: AST_NODE_TYPES.TSVoidKeyword; -} -export declare type TypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSIndexSignature | TSMethodSignature | TSPropertySignature; -export declare type TypeNode = TSAbstractKeyword | TSAnyKeyword | TSArrayType | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSConditionalType | TSConstructorType | TSDeclareKeyword | TSExportKeyword | TSFunctionType | TSImportType | TSIndexedAccessType | TSInferType | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSNamedTupleMember | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSPrivateKeyword | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeLiteral | TSTypeOperator | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword; -export declare interface UnaryExpression extends UnaryExpressionBase { - type: AST_NODE_TYPES.UnaryExpression; - operator: '-' | '!' | '+' | '~' | 'delete' | 'typeof' | 'void'; -} -declare interface UnaryExpressionBase extends BaseNode { - operator: string; - prefix: boolean; - argument: LeftHandSideExpression | Literal | UnaryExpression; -} -export declare interface UpdateExpression extends UnaryExpressionBase { - type: AST_NODE_TYPES.UpdateExpression; - operator: '--' | '++'; -} -declare type ValueOf = T[keyof T]; -export declare interface VariableDeclaration extends BaseNode { - type: AST_NODE_TYPES.VariableDeclaration; - /** - * The variables declared by this declaration. - * Note that there may be 0 declarations (i.e. `const;`). - * ``` - * let x; - * let y, z; - * ``` - */ - declarations: VariableDeclarator[]; - /** - * Whether the declaration is `declare`d - * ``` - * declare const x = 1; - * ``` - */ - declare?: boolean; - /** - * The keyword used to declare the variable(s) - * ``` - * const x = 1; - * let y = 2; - * var z = 3; - * ``` - */ - kind: 'const' | 'let' | 'var'; -} -export declare interface VariableDeclarator extends BaseNode { - type: AST_NODE_TYPES.VariableDeclarator; - id: BindingName; - init: Expression | null; - definite?: boolean; -} -export declare interface WhileStatement extends BaseNode { - type: AST_NODE_TYPES.WhileStatement; - test: Expression; - body: Statement; -} -export declare interface WithStatement extends BaseNode { - type: AST_NODE_TYPES.WithStatement; - object: Expression; - body: Statement; -} -export declare interface YieldExpression extends BaseNode { - type: AST_NODE_TYPES.YieldExpression; - delegate: boolean; - argument?: Expression; -} -export {}; -//# sourceMappingURL=ast-spec.d.ts.map diff --git a/node_modules/@typescript-eslint/types/_ts3.4/dist/index.d.ts b/node_modules/@typescript-eslint/types/_ts3.4/dist/index.d.ts deleted file mode 100644 index 7459fa5e..00000000 --- a/node_modules/@typescript-eslint/types/_ts3.4/dist/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { AST_NODE_TYPES, AST_TOKEN_TYPES } from './generated/ast-spec'; -export * from './lib'; -export * from './parser-options'; -export * from './ts-estree'; -//# sourceMappingURL=index.d.ts.map diff --git a/node_modules/@typescript-eslint/types/_ts3.4/dist/lib.d.ts b/node_modules/@typescript-eslint/types/_ts3.4/dist/lib.d.ts deleted file mode 100644 index d679f4cb..00000000 --- a/node_modules/@typescript-eslint/types/_ts3.4/dist/lib.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -type Lib = 'es5' | 'es6' | 'es2015' | 'es7' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'es2023' | 'esnext' | 'dom' | 'dom.iterable' | 'webworker' | 'webworker.importscripts' | 'webworker.iterable' | 'scripthost' | 'es2015.core' | 'es2015.collection' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' | 'es2015.symbol' | 'es2015.symbol.wellknown' | 'es2016.array.include' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' | 'es2017.intl' | 'es2017.typedarrays' | 'es2018.asyncgenerator' | 'es2018.asynciterable' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' | 'es2019.array' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' | 'es2019.intl' | 'es2020.bigint' | 'es2020.date' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2020.intl' | 'es2020.number' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' | 'es2021.intl' | 'es2022.array' | 'es2022.error' | 'es2022.intl' | 'es2022.object' | 'es2022.sharedmemory' | 'es2022.string' | 'es2022.regexp' | 'es2023.array' | 'esnext.array' | 'esnext.symbol' | 'esnext.asynciterable' | 'esnext.intl' | 'esnext.bigint' | 'esnext.string' | 'esnext.promise' | 'esnext.weakref' | 'decorators' | 'decorators.legacy' | 'es2016.full' | 'es2017.full' | 'es2018.full' | 'es2019.full' | 'es2020.full' | 'es2021.full' | 'es2022.full' | 'es2023.full' | 'esnext.full' | 'lib'; -export { Lib }; -//# sourceMappingURL=lib.d.ts.map diff --git a/node_modules/@typescript-eslint/types/_ts3.4/dist/parser-options.d.ts b/node_modules/@typescript-eslint/types/_ts3.4/dist/parser-options.d.ts deleted file mode 100644 index 0bed2ccb..00000000 --- a/node_modules/@typescript-eslint/types/_ts3.4/dist/parser-options.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { Program } from 'typescript'; -import { Lib } from './lib'; -type DebugLevel = boolean | ('typescript-eslint' | 'eslint' | 'typescript')[]; -type CacheDurationSeconds = number | 'Infinity'; -type EcmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022; -type SourceType = 'script' | 'module'; -interface ParserOptions { - ecmaFeatures?: { - globalReturn?: boolean; - jsx?: boolean; - }; - ecmaVersion?: EcmaVersion | 'latest'; - jsxPragma?: string | null; - jsxFragmentName?: string | null; - lib?: Lib[]; - emitDecoratorMetadata?: boolean; - comment?: boolean; - debugLevel?: DebugLevel; - errorOnTypeScriptSyntacticAndSemanticIssues?: boolean; - errorOnUnknownASTType?: boolean; - EXPERIMENTAL_useSourceOfProjectReferenceRedirect?: boolean; - extraFileExtensions?: string[]; - filePath?: string; - loc?: boolean; - program?: Program; - project?: string | string[] | true; - projectFolderIgnoreList?: (string | RegExp)[]; - range?: boolean; - sourceType?: SourceType; - tokens?: boolean; - tsconfigRootDir?: string; - warnOnUnsupportedTypeScriptVersion?: boolean; - moduleResolver?: string; - cacheLifetime?: { - glob?: CacheDurationSeconds; - }; - [additionalProperties: string]: unknown; -} -export { CacheDurationSeconds, DebugLevel, EcmaVersion, ParserOptions, SourceType, }; -//# sourceMappingURL=parser-options.d.ts.map diff --git a/node_modules/@typescript-eslint/types/_ts3.4/dist/ts-estree.d.ts b/node_modules/@typescript-eslint/types/_ts3.4/dist/ts-estree.d.ts deleted file mode 100644 index e3a6d9f0..00000000 --- a/node_modules/@typescript-eslint/types/_ts3.4/dist/ts-estree.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import * as TSESTree from './generated/ast-spec'; -declare module './generated/ast-spec' { - interface BaseNode { - parent?: TSESTree.Node; - } -} -import * as TSESTree_1 from './generated/ast-spec'; -export { TSESTree_1 as TSESTree }; -//# sourceMappingURL=ts-estree.d.ts.map diff --git a/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts b/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts deleted file mode 100644 index 0b73f968..00000000 --- a/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +++ /dev/null @@ -1,1803 +0,0 @@ -/********************************************** - * DO NOT MODIFY THIS FILE MANUALLY * - * * - * THIS FILE HAS BEEN COPIED FROM ast-spec. * - * ANY CHANGES WILL BE LOST ON THE NEXT BUILD * - * * - * MAKE CHANGES TO ast-spec AND THEN RUN * - * yarn build * - **********************************************/ -import type { SyntaxKind } from 'typescript'; -export declare type Accessibility = 'private' | 'protected' | 'public'; -export declare type AccessorProperty = AccessorPropertyComputedName | AccessorPropertyNonComputedName; -export declare interface AccessorPropertyComputedName extends PropertyDefinitionComputedNameBase { - type: AST_NODE_TYPES.AccessorProperty; -} -export declare interface AccessorPropertyNonComputedName extends PropertyDefinitionNonComputedNameBase { - type: AST_NODE_TYPES.AccessorProperty; -} -export declare interface ArrayExpression extends BaseNode { - type: AST_NODE_TYPES.ArrayExpression; - /** - * an element will be `null` in the case of a sparse array: `[1, ,3]` - */ - elements: (Expression | SpreadElement | null)[]; -} -export declare interface ArrayPattern extends BaseNode { - type: AST_NODE_TYPES.ArrayPattern; - elements: (DestructuringPattern | null)[]; - typeAnnotation?: TSTypeAnnotation; - optional?: boolean; - decorators?: Decorator[]; -} -export declare interface ArrowFunctionExpression extends BaseNode { - type: AST_NODE_TYPES.ArrowFunctionExpression; - generator: boolean; - id: null; - params: Parameter[]; - body: BlockStatement | Expression; - async: boolean; - expression: boolean; - returnType?: TSTypeAnnotation; - typeParameters?: TSTypeParameterDeclaration; -} -export declare interface AssignmentExpression extends BaseNode { - type: AST_NODE_TYPES.AssignmentExpression; - operator: ValueOf; - left: Expression; - right: Expression; -} -export declare interface AssignmentOperatorToText { - [SyntaxKind.EqualsToken]: '='; - [SyntaxKind.PlusEqualsToken]: '+='; - [SyntaxKind.MinusEqualsToken]: '-='; - [SyntaxKind.AsteriskEqualsToken]: '*='; - [SyntaxKind.AsteriskAsteriskEqualsToken]: '**='; - [SyntaxKind.SlashEqualsToken]: '/='; - [SyntaxKind.PercentEqualsToken]: '%='; - [SyntaxKind.LessThanLessThanEqualsToken]: '<<='; - [SyntaxKind.GreaterThanGreaterThanEqualsToken]: '>>='; - [SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken]: '>>>='; - [SyntaxKind.AmpersandEqualsToken]: '&='; - [SyntaxKind.BarEqualsToken]: '|='; - [SyntaxKind.BarBarEqualsToken]: '||='; - [SyntaxKind.AmpersandAmpersandEqualsToken]: '&&='; - [SyntaxKind.QuestionQuestionEqualsToken]: '??='; - [SyntaxKind.CaretEqualsToken]: '^='; -} -export declare interface AssignmentPattern extends BaseNode { - type: AST_NODE_TYPES.AssignmentPattern; - left: BindingName; - right: Expression; - typeAnnotation?: TSTypeAnnotation; - optional?: boolean; - decorators?: Decorator[]; -} -export declare enum AST_NODE_TYPES { - AccessorProperty = "AccessorProperty", - ArrayExpression = "ArrayExpression", - ArrayPattern = "ArrayPattern", - ArrowFunctionExpression = "ArrowFunctionExpression", - AssignmentExpression = "AssignmentExpression", - AssignmentPattern = "AssignmentPattern", - AwaitExpression = "AwaitExpression", - BinaryExpression = "BinaryExpression", - BlockStatement = "BlockStatement", - BreakStatement = "BreakStatement", - CallExpression = "CallExpression", - CatchClause = "CatchClause", - ChainExpression = "ChainExpression", - ClassBody = "ClassBody", - ClassDeclaration = "ClassDeclaration", - ClassExpression = "ClassExpression", - ConditionalExpression = "ConditionalExpression", - ContinueStatement = "ContinueStatement", - DebuggerStatement = "DebuggerStatement", - Decorator = "Decorator", - DoWhileStatement = "DoWhileStatement", - EmptyStatement = "EmptyStatement", - ExportAllDeclaration = "ExportAllDeclaration", - ExportDefaultDeclaration = "ExportDefaultDeclaration", - ExportNamedDeclaration = "ExportNamedDeclaration", - ExportSpecifier = "ExportSpecifier", - ExpressionStatement = "ExpressionStatement", - ForInStatement = "ForInStatement", - ForOfStatement = "ForOfStatement", - ForStatement = "ForStatement", - FunctionDeclaration = "FunctionDeclaration", - FunctionExpression = "FunctionExpression", - Identifier = "Identifier", - IfStatement = "IfStatement", - ImportAttribute = "ImportAttribute", - ImportDeclaration = "ImportDeclaration", - ImportDefaultSpecifier = "ImportDefaultSpecifier", - ImportExpression = "ImportExpression", - ImportNamespaceSpecifier = "ImportNamespaceSpecifier", - ImportSpecifier = "ImportSpecifier", - JSXAttribute = "JSXAttribute", - JSXClosingElement = "JSXClosingElement", - JSXClosingFragment = "JSXClosingFragment", - JSXElement = "JSXElement", - JSXEmptyExpression = "JSXEmptyExpression", - JSXExpressionContainer = "JSXExpressionContainer", - JSXFragment = "JSXFragment", - JSXIdentifier = "JSXIdentifier", - JSXMemberExpression = "JSXMemberExpression", - JSXNamespacedName = "JSXNamespacedName", - JSXOpeningElement = "JSXOpeningElement", - JSXOpeningFragment = "JSXOpeningFragment", - JSXSpreadAttribute = "JSXSpreadAttribute", - JSXSpreadChild = "JSXSpreadChild", - JSXText = "JSXText", - LabeledStatement = "LabeledStatement", - Literal = "Literal", - LogicalExpression = "LogicalExpression", - MemberExpression = "MemberExpression", - MetaProperty = "MetaProperty", - MethodDefinition = "MethodDefinition", - NewExpression = "NewExpression", - ObjectExpression = "ObjectExpression", - ObjectPattern = "ObjectPattern", - PrivateIdentifier = "PrivateIdentifier", - Program = "Program", - Property = "Property", - PropertyDefinition = "PropertyDefinition", - RestElement = "RestElement", - ReturnStatement = "ReturnStatement", - SequenceExpression = "SequenceExpression", - SpreadElement = "SpreadElement", - StaticBlock = "StaticBlock", - Super = "Super", - SwitchCase = "SwitchCase", - SwitchStatement = "SwitchStatement", - TaggedTemplateExpression = "TaggedTemplateExpression", - TemplateElement = "TemplateElement", - TemplateLiteral = "TemplateLiteral", - ThisExpression = "ThisExpression", - ThrowStatement = "ThrowStatement", - TryStatement = "TryStatement", - UnaryExpression = "UnaryExpression", - UpdateExpression = "UpdateExpression", - VariableDeclaration = "VariableDeclaration", - VariableDeclarator = "VariableDeclarator", - WhileStatement = "WhileStatement", - WithStatement = "WithStatement", - YieldExpression = "YieldExpression", - /** - * TS-prefixed nodes - */ - TSAbstractAccessorProperty = "TSAbstractAccessorProperty", - TSAbstractKeyword = "TSAbstractKeyword", - TSAbstractMethodDefinition = "TSAbstractMethodDefinition", - TSAbstractPropertyDefinition = "TSAbstractPropertyDefinition", - TSAnyKeyword = "TSAnyKeyword", - TSArrayType = "TSArrayType", - TSAsExpression = "TSAsExpression", - TSAsyncKeyword = "TSAsyncKeyword", - TSBigIntKeyword = "TSBigIntKeyword", - TSBooleanKeyword = "TSBooleanKeyword", - TSCallSignatureDeclaration = "TSCallSignatureDeclaration", - TSClassImplements = "TSClassImplements", - TSConditionalType = "TSConditionalType", - TSConstructorType = "TSConstructorType", - TSConstructSignatureDeclaration = "TSConstructSignatureDeclaration", - TSDeclareFunction = "TSDeclareFunction", - TSDeclareKeyword = "TSDeclareKeyword", - TSEmptyBodyFunctionExpression = "TSEmptyBodyFunctionExpression", - TSEnumDeclaration = "TSEnumDeclaration", - TSEnumMember = "TSEnumMember", - TSExportAssignment = "TSExportAssignment", - TSExportKeyword = "TSExportKeyword", - TSExternalModuleReference = "TSExternalModuleReference", - TSFunctionType = "TSFunctionType", - TSInstantiationExpression = "TSInstantiationExpression", - TSImportEqualsDeclaration = "TSImportEqualsDeclaration", - TSImportType = "TSImportType", - TSIndexedAccessType = "TSIndexedAccessType", - TSIndexSignature = "TSIndexSignature", - TSInferType = "TSInferType", - TSInterfaceBody = "TSInterfaceBody", - TSInterfaceDeclaration = "TSInterfaceDeclaration", - TSInterfaceHeritage = "TSInterfaceHeritage", - TSIntersectionType = "TSIntersectionType", - TSIntrinsicKeyword = "TSIntrinsicKeyword", - TSLiteralType = "TSLiteralType", - TSMappedType = "TSMappedType", - TSMethodSignature = "TSMethodSignature", - TSModuleBlock = "TSModuleBlock", - TSModuleDeclaration = "TSModuleDeclaration", - TSNamedTupleMember = "TSNamedTupleMember", - TSNamespaceExportDeclaration = "TSNamespaceExportDeclaration", - TSNeverKeyword = "TSNeverKeyword", - TSNonNullExpression = "TSNonNullExpression", - TSNullKeyword = "TSNullKeyword", - TSNumberKeyword = "TSNumberKeyword", - TSObjectKeyword = "TSObjectKeyword", - TSOptionalType = "TSOptionalType", - TSParameterProperty = "TSParameterProperty", - TSPrivateKeyword = "TSPrivateKeyword", - TSPropertySignature = "TSPropertySignature", - TSProtectedKeyword = "TSProtectedKeyword", - TSPublicKeyword = "TSPublicKeyword", - TSQualifiedName = "TSQualifiedName", - TSReadonlyKeyword = "TSReadonlyKeyword", - TSRestType = "TSRestType", - TSSatisfiesExpression = "TSSatisfiesExpression", - TSStaticKeyword = "TSStaticKeyword", - TSStringKeyword = "TSStringKeyword", - TSSymbolKeyword = "TSSymbolKeyword", - TSTemplateLiteralType = "TSTemplateLiteralType", - TSThisType = "TSThisType", - TSTupleType = "TSTupleType", - TSTypeAliasDeclaration = "TSTypeAliasDeclaration", - TSTypeAnnotation = "TSTypeAnnotation", - TSTypeAssertion = "TSTypeAssertion", - TSTypeLiteral = "TSTypeLiteral", - TSTypeOperator = "TSTypeOperator", - TSTypeParameter = "TSTypeParameter", - TSTypeParameterDeclaration = "TSTypeParameterDeclaration", - TSTypeParameterInstantiation = "TSTypeParameterInstantiation", - TSTypePredicate = "TSTypePredicate", - TSTypeQuery = "TSTypeQuery", - TSTypeReference = "TSTypeReference", - TSUndefinedKeyword = "TSUndefinedKeyword", - TSUnionType = "TSUnionType", - TSUnknownKeyword = "TSUnknownKeyword", - TSVoidKeyword = "TSVoidKeyword" -} -export declare enum AST_TOKEN_TYPES { - Boolean = "Boolean", - Identifier = "Identifier", - JSXIdentifier = "JSXIdentifier", - JSXText = "JSXText", - Keyword = "Keyword", - Null = "Null", - Numeric = "Numeric", - Punctuator = "Punctuator", - RegularExpression = "RegularExpression", - String = "String", - Template = "Template", - Block = "Block", - Line = "Line" -} -export declare interface AwaitExpression extends BaseNode { - type: AST_NODE_TYPES.AwaitExpression; - argument: Expression; -} -export declare interface BaseNode extends NodeOrTokenData { - type: AST_NODE_TYPES; -} -declare interface BaseToken extends NodeOrTokenData { - type: AST_TOKEN_TYPES; - value: string; -} -export declare interface BigIntLiteral extends LiteralBase { - value: bigint | null; - bigint: string; -} -export declare interface BinaryExpression extends BaseNode { - type: AST_NODE_TYPES.BinaryExpression; - operator: string; - left: Expression | PrivateIdentifier; - right: Expression; -} -export declare type BindingName = BindingPattern | Identifier; -export declare type BindingPattern = ArrayPattern | ObjectPattern; -export declare interface BlockComment extends BaseToken { - type: AST_TOKEN_TYPES.Block; -} -export declare interface BlockStatement extends BaseNode { - type: AST_NODE_TYPES.BlockStatement; - body: Statement[]; -} -export declare interface BooleanLiteral extends LiteralBase { - value: boolean; - raw: 'false' | 'true'; -} -export declare interface BooleanToken extends BaseToken { - type: AST_TOKEN_TYPES.Boolean; -} -export declare interface BreakStatement extends BaseNode { - type: AST_NODE_TYPES.BreakStatement; - label: Identifier | null; -} -export declare interface CallExpression extends BaseNode { - type: AST_NODE_TYPES.CallExpression; - callee: LeftHandSideExpression; - arguments: CallExpressionArgument[]; - typeParameters?: TSTypeParameterInstantiation; - optional: boolean; -} -export declare type CallExpressionArgument = Expression | SpreadElement; -export declare interface CatchClause extends BaseNode { - type: AST_NODE_TYPES.CatchClause; - param: BindingName | null; - body: BlockStatement; -} -export declare type ChainElement = CallExpression | MemberExpression | TSNonNullExpression; -export declare interface ChainExpression extends BaseNode { - type: AST_NODE_TYPES.ChainExpression; - expression: ChainElement; -} -declare interface ClassBase extends BaseNode { - /** - * Whether the class is an abstract class. - * ``` - * abstract class Foo {...} - * ``` - * This is always `undefined` for `ClassExpression`. - */ - abstract?: boolean; - /** - * The class body. - */ - body: ClassBody; - /** - * Whether the class has been `declare`d: - * ``` - * declare class Foo {...} - * ``` - * This is always `undefined` for `ClassExpression`. - */ - declare?: boolean; - /** - * The decorators declared for the class. - * This is `undefined` if there are no decorators. - * ``` - * @deco - * class Foo {...} - * ``` - * This is always `undefined` for `ClassExpression`. - */ - decorators?: Decorator[]; - /** - * The class's name. - * - For a `ClassExpression` this may be `null` if the name is omitted. - * - For a `ClassDeclaration` this may be `null` if and only if the parent is - * an `ExportDefaultDeclaration`. - */ - id: Identifier | null; - /** - * The implemented interfaces for the class. - * This is `undefined` if there are no implemented interfaces. - */ - implements?: TSClassImplements[]; - /** - * The super class this class extends. - */ - superClass: LeftHandSideExpression | null; - /** - * The generic type parameters passed to the superClass. - * This is `undefined` if there are no generic type parameters passed. - */ - superTypeParameters?: TSTypeParameterInstantiation; - /** - * The generic type parameters declared for the class. - * This is `undefined` if there are no generic type parameters declared. - */ - typeParameters?: TSTypeParameterDeclaration; -} -export declare interface ClassBody extends BaseNode { - type: AST_NODE_TYPES.ClassBody; - body: ClassElement[]; -} -export declare type ClassDeclaration = ClassDeclarationWithName | ClassDeclarationWithOptionalName; -declare interface ClassDeclarationBase extends ClassBase { - type: AST_NODE_TYPES.ClassDeclaration; -} -export declare interface ClassDeclarationWithName extends ClassDeclarationBase { - id: Identifier; -} -export declare interface ClassDeclarationWithOptionalName extends ClassDeclarationBase { - id: Identifier | null; -} -export declare type ClassElement = AccessorProperty | MethodDefinition | PropertyDefinition | StaticBlock | TSAbstractAccessorProperty | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSIndexSignature; -export declare interface ClassExpression extends ClassBase { - type: AST_NODE_TYPES.ClassExpression; - abstract?: undefined; - declare?: undefined; - decorators?: undefined; -} -declare interface ClassMethodDefinitionNonComputedNameBase extends MethodDefinitionBase { - key: ClassPropertyNameNonComputed; - computed: false; -} -declare interface ClassPropertyDefinitionNonComputedNameBase extends PropertyDefinitionBase { - key: ClassPropertyNameNonComputed; - computed: false; -} -export declare type ClassPropertyNameNonComputed = PrivateIdentifier | PropertyNameNonComputed; -export declare type Comment = BlockComment | LineComment; -export declare interface ConditionalExpression extends BaseNode { - type: AST_NODE_TYPES.ConditionalExpression; - test: Expression; - consequent: Expression; - alternate: Expression; -} -export declare interface ContinueStatement extends BaseNode { - type: AST_NODE_TYPES.ContinueStatement; - label: Identifier | null; -} -export declare interface DebuggerStatement extends BaseNode { - type: AST_NODE_TYPES.DebuggerStatement; -} -export declare type DeclarationStatement = ClassDeclaration | ClassExpression | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | FunctionDeclaration | TSDeclareFunction | TSEnumDeclaration | TSImportEqualsDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSNamespaceExportDeclaration | TSTypeAliasDeclaration; -export declare interface Decorator extends BaseNode { - type: AST_NODE_TYPES.Decorator; - expression: LeftHandSideExpression; -} -export declare type DefaultExportDeclarations = ClassDeclarationWithOptionalName | Expression | FunctionDeclarationWithName | FunctionDeclarationWithOptionalName | TSDeclareFunction | TSEnumDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSTypeAliasDeclaration | VariableDeclaration; -export declare type DestructuringPattern = ArrayPattern | AssignmentPattern | Identifier | MemberExpression | ObjectPattern | RestElement; -export declare interface DoWhileStatement extends BaseNode { - type: AST_NODE_TYPES.DoWhileStatement; - test: Expression; - body: Statement; -} -export declare interface EmptyStatement extends BaseNode { - type: AST_NODE_TYPES.EmptyStatement; -} -export declare type EntityName = Identifier | ThisExpression | TSQualifiedName; -export declare interface ExportAllDeclaration extends BaseNode { - type: AST_NODE_TYPES.ExportAllDeclaration; - /** - * The assertions declared for the export. - * ``` - * export * from 'mod' assert { type: 'json' }; - * ``` - */ - assertions: ImportAttribute[]; - /** - * The name for the exported items. `null` if no name is assigned. - */ - exported: Identifier | null; - /** - * The kind of the export. - */ - exportKind: ExportKind; - /** - * The source module being exported from. - */ - source: StringLiteral; -} -declare type ExportAndImportKind = 'type' | 'value'; -export declare type ExportDeclaration = DefaultExportDeclarations | NamedExportDeclarations; -export declare interface ExportDefaultDeclaration extends BaseNode { - type: AST_NODE_TYPES.ExportDefaultDeclaration; - /** - * The declaration being exported. - */ - declaration: DefaultExportDeclarations; - /** - * The kind of the export. - */ - exportKind: ExportKind; -} -declare type ExportKind = ExportAndImportKind; -export declare type ExportNamedDeclaration = ExportNamedDeclarationWithoutSourceWithMultiple | ExportNamedDeclarationWithoutSourceWithSingle | ExportNamedDeclarationWithSource; -declare interface ExportNamedDeclarationBase extends BaseNode { - type: AST_NODE_TYPES.ExportNamedDeclaration; - /** - * The assertions declared for the export. - * ``` - * export { foo } from 'mod' assert { type: 'json' }; - * ``` - * This will be an empty array if `source` is `null` - */ - assertions: ImportAttribute[]; - /** - * The exported declaration. - * ``` - * export const x = 1; - * ``` - * This will be `null` if `source` is not `null`, or if there are `specifiers` - */ - declaration: NamedExportDeclarations | null; - /** - * The kind of the export. - */ - exportKind: ExportKind; - /** - * The source module being exported from. - */ - source: StringLiteral | null; - /** - * The specifiers being exported. - * ``` - * export { a, b }; - * ``` - * This will be an empty array if `declaration` is not `null` - */ - specifiers: ExportSpecifier[]; -} -export declare interface ExportNamedDeclarationWithoutSourceWithMultiple extends ExportNamedDeclarationBase { - assertions: ImportAttribute[]; - declaration: null; - source: null; - specifiers: ExportSpecifier[]; -} -export declare interface ExportNamedDeclarationWithoutSourceWithSingle extends ExportNamedDeclarationBase { - assertions: ImportAttribute[]; - declaration: NamedExportDeclarations; - source: null; - specifiers: ExportSpecifier[]; -} -export declare interface ExportNamedDeclarationWithSource extends ExportNamedDeclarationBase { - assertions: ImportAttribute[]; - declaration: null; - source: StringLiteral; - specifiers: ExportSpecifier[]; -} -export declare interface ExportSpecifier extends BaseNode { - type: AST_NODE_TYPES.ExportSpecifier; - local: Identifier; - exported: Identifier; - exportKind: ExportKind; -} -export declare type Expression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | BinaryExpression | CallExpression | ChainExpression | ClassExpression | ConditionalExpression | FunctionExpression | Identifier | ImportExpression | JSXElement | JSXFragment | LiteralExpression | LogicalExpression | MemberExpression | MetaProperty | NewExpression | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | TemplateLiteral | ThisExpression | TSAsExpression | TSInstantiationExpression | TSNonNullExpression | TSSatisfiesExpression | TSTypeAssertion | UnaryExpression | UpdateExpression | YieldExpression; -export declare interface ExpressionStatement extends BaseNode { - type: AST_NODE_TYPES.ExpressionStatement; - expression: Expression; - directive?: string; -} -export declare type ForInitialiser = Expression | VariableDeclaration; -export declare interface ForInStatement extends BaseNode { - type: AST_NODE_TYPES.ForInStatement; - left: ForInitialiser; - right: Expression; - body: Statement; -} -export declare interface ForOfStatement extends BaseNode { - type: AST_NODE_TYPES.ForOfStatement; - left: ForInitialiser; - right: Expression; - body: Statement; - await: boolean; -} -export declare interface ForStatement extends BaseNode { - type: AST_NODE_TYPES.ForStatement; - init: Expression | ForInitialiser | null; - test: Expression | null; - update: Expression | null; - body: Statement; -} -declare interface FunctionBase extends BaseNode { - /** - * Whether the function is async: - * ``` - * async function foo(...) {...} - * const x = async function (...) {...} - * const x = async (...) => {...} - * ``` - */ - async: boolean; - /** - * The body of the function. - * - For an `ArrowFunctionExpression` this may be an `Expression` or `BlockStatement`. - * - For a `FunctionDeclaration` or `FunctionExpression` this is always a `BlockStatement. - * - For a `TSDeclareFunction` this is always `undefined`. - * - For a `TSEmptyBodyFunctionExpression` this is always `null`. - */ - body?: BlockStatement | Expression | null; - /** - * This is only `true` if and only if the node is a `TSDeclareFunction` and it has `declare`: - * ``` - * declare function foo(...) {...} - * ``` - */ - declare?: boolean; - /** - * This is only ever `true` if and only the node is an `ArrowFunctionExpression` and the body - * is an expression: - * ``` - * (() => 1) - * ``` - */ - expression: boolean; - /** - * Whether the function is a generator function: - * ``` - * function *foo(...) {...} - * const x = function *(...) {...} - * ``` - * This is always `false` for arrow functions as they cannot be generators. - */ - generator: boolean; - /** - * The function's name. - * - For an `ArrowFunctionExpression` this is always `null`. - * - For a `FunctionExpression` this may be `null` if the name is omitted. - * - For a `FunctionDeclaration` or `TSDeclareFunction` this may be `null` if - * and only if the parent is an `ExportDefaultDeclaration`. - */ - id: Identifier | null; - /** - * The list of parameters declared for the function. - */ - params: Parameter[]; - /** - * The return type annotation for the function. - * This is `undefined` if there is no return type declared. - */ - returnType?: TSTypeAnnotation; - /** - * The generic type parameter declaration for the function. - * This is `undefined` if there are no generic type parameters declared. - */ - typeParameters?: TSTypeParameterDeclaration; -} -export declare type FunctionDeclaration = FunctionDeclarationWithName | FunctionDeclarationWithOptionalName; -declare interface FunctionDeclarationBase extends FunctionBase { - type: AST_NODE_TYPES.FunctionDeclaration; - body: BlockStatement; - declare?: false; - expression: false; -} -export declare interface FunctionDeclarationWithName extends FunctionDeclarationBase { - id: Identifier; -} -export declare interface FunctionDeclarationWithOptionalName extends FunctionDeclarationBase { - id: Identifier | null; -} -export declare interface FunctionExpression extends FunctionBase { - type: AST_NODE_TYPES.FunctionExpression; - body: BlockStatement; - expression: false; -} -export declare type FunctionLike = ArrowFunctionExpression | FunctionDeclaration | FunctionExpression | TSDeclareFunction | TSEmptyBodyFunctionExpression; -export declare interface Identifier extends BaseNode { - type: AST_NODE_TYPES.Identifier; - name: string; - typeAnnotation?: TSTypeAnnotation; - optional?: boolean; - decorators?: Decorator[]; -} -export declare interface IdentifierToken extends BaseToken { - type: AST_TOKEN_TYPES.Identifier; -} -export declare interface IfStatement extends BaseNode { - type: AST_NODE_TYPES.IfStatement; - test: Expression; - consequent: Statement; - alternate: Statement | null; -} -export declare interface ImportAttribute extends BaseNode { - type: AST_NODE_TYPES.ImportAttribute; - key: Identifier | Literal; - value: Literal; -} -export declare type ImportClause = ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier; -export declare interface ImportDeclaration extends BaseNode { - type: AST_NODE_TYPES.ImportDeclaration; - /** - * The assertions declared for the export. - * ``` - * import * from 'mod' assert { type: 'json' }; - * ``` - */ - assertions: ImportAttribute[]; - /** - * The kind of the import. - */ - importKind: ImportKind; - /** - * The source module being imported from. - */ - source: StringLiteral; - /** - * The specifiers being imported. - * If this is an empty array then either there are no specifiers: - * ``` - * import {} from 'mod'; - * ``` - * Or it is a side-effect import: - * ``` - * import 'mod'; - * ``` - */ - specifiers: ImportClause[]; -} -export declare interface ImportDefaultSpecifier extends BaseNode { - type: AST_NODE_TYPES.ImportDefaultSpecifier; - local: Identifier; -} -export declare interface ImportExpression extends BaseNode { - type: AST_NODE_TYPES.ImportExpression; - source: Expression; - attributes: Expression | null; -} -declare type ImportKind = ExportAndImportKind; -export declare interface ImportNamespaceSpecifier extends BaseNode { - type: AST_NODE_TYPES.ImportNamespaceSpecifier; - local: Identifier; -} -export declare interface ImportSpecifier extends BaseNode { - type: AST_NODE_TYPES.ImportSpecifier; - local: Identifier; - imported: Identifier; - importKind: ImportKind; -} -export declare type IterationStatement = DoWhileStatement | ForInStatement | ForOfStatement | ForStatement | WhileStatement; -export declare interface JSXAttribute extends BaseNode { - type: AST_NODE_TYPES.JSXAttribute; - name: JSXIdentifier | JSXNamespacedName; - value: JSXExpression | Literal | null; -} -export declare type JSXChild = JSXElement | JSXExpression | JSXFragment | JSXText; -export declare interface JSXClosingElement extends BaseNode { - type: AST_NODE_TYPES.JSXClosingElement; - name: JSXTagNameExpression; -} -export declare interface JSXClosingFragment extends BaseNode { - type: AST_NODE_TYPES.JSXClosingFragment; -} -export declare interface JSXElement extends BaseNode { - type: AST_NODE_TYPES.JSXElement; - openingElement: JSXOpeningElement; - closingElement: JSXClosingElement | null; - children: JSXChild[]; -} -export declare interface JSXEmptyExpression extends BaseNode { - type: AST_NODE_TYPES.JSXEmptyExpression; -} -export declare type JSXExpression = JSXExpressionContainer | JSXSpreadChild; -export declare interface JSXExpressionContainer extends BaseNode { - type: AST_NODE_TYPES.JSXExpressionContainer; - expression: Expression | JSXEmptyExpression; -} -export declare interface JSXFragment extends BaseNode { - type: AST_NODE_TYPES.JSXFragment; - openingFragment: JSXOpeningFragment; - closingFragment: JSXClosingFragment; - children: JSXChild[]; -} -export declare interface JSXIdentifier extends BaseNode { - type: AST_NODE_TYPES.JSXIdentifier; - name: string; -} -export declare interface JSXIdentifierToken extends BaseToken { - type: AST_TOKEN_TYPES.JSXIdentifier; -} -export declare interface JSXMemberExpression extends BaseNode { - type: AST_NODE_TYPES.JSXMemberExpression; - object: JSXTagNameExpression; - property: JSXIdentifier; -} -export declare interface JSXNamespacedName extends BaseNode { - type: AST_NODE_TYPES.JSXNamespacedName; - namespace: JSXIdentifier; - name: JSXIdentifier; -} -export declare interface JSXOpeningElement extends BaseNode { - type: AST_NODE_TYPES.JSXOpeningElement; - typeParameters?: TSTypeParameterInstantiation; - selfClosing: boolean; - name: JSXTagNameExpression; - attributes: (JSXAttribute | JSXSpreadAttribute)[]; -} -export declare interface JSXOpeningFragment extends BaseNode { - type: AST_NODE_TYPES.JSXOpeningFragment; -} -export declare interface JSXSpreadAttribute extends BaseNode { - type: AST_NODE_TYPES.JSXSpreadAttribute; - argument: Expression; -} -export declare interface JSXSpreadChild extends BaseNode { - type: AST_NODE_TYPES.JSXSpreadChild; - expression: Expression | JSXEmptyExpression; -} -export declare type JSXTagNameExpression = JSXIdentifier | JSXMemberExpression | JSXNamespacedName; -export declare interface JSXText extends BaseNode { - type: AST_NODE_TYPES.JSXText; - value: string; - raw: string; -} -export declare interface JSXTextToken extends BaseToken { - type: AST_TOKEN_TYPES.JSXText; -} -export declare interface KeywordToken extends BaseToken { - type: AST_TOKEN_TYPES.Keyword; -} -export declare interface LabeledStatement extends BaseNode { - type: AST_NODE_TYPES.LabeledStatement; - label: Identifier; - body: Statement; -} -export declare type LeftHandSideExpression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | CallExpression | ClassExpression | FunctionExpression | Identifier | JSXElement | JSXFragment | LiteralExpression | MemberExpression | MetaProperty | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | ThisExpression | TSAsExpression | TSNonNullExpression | TSTypeAssertion; -export declare interface LineComment extends BaseToken { - type: AST_TOKEN_TYPES.Line; -} -export declare type Literal = BigIntLiteral | BooleanLiteral | NullLiteral | NumberLiteral | RegExpLiteral | StringLiteral; -declare interface LiteralBase extends BaseNode { - type: AST_NODE_TYPES.Literal; - raw: string; - value: RegExp | bigint | boolean | number | string | null; -} -export declare type LiteralExpression = Literal | TemplateLiteral; -export declare interface LogicalExpression extends BaseNode { - type: AST_NODE_TYPES.LogicalExpression; - operator: '??' | '&&' | '||'; - left: Expression; - right: Expression; -} -export declare type MemberExpression = MemberExpressionComputedName | MemberExpressionNonComputedName; -declare interface MemberExpressionBase extends BaseNode { - object: Expression; - property: Expression | Identifier | PrivateIdentifier; - computed: boolean; - optional: boolean; -} -export declare interface MemberExpressionComputedName extends MemberExpressionBase { - type: AST_NODE_TYPES.MemberExpression; - property: Expression; - computed: true; -} -export declare interface MemberExpressionNonComputedName extends MemberExpressionBase { - type: AST_NODE_TYPES.MemberExpression; - property: Identifier | PrivateIdentifier; - computed: false; -} -export declare interface MetaProperty extends BaseNode { - type: AST_NODE_TYPES.MetaProperty; - meta: Identifier; - property: Identifier; -} -export declare type MethodDefinition = MethodDefinitionComputedName | MethodDefinitionNonComputedName; -/** this should not be directly used - instead use MethodDefinitionComputedNameBase or MethodDefinitionNonComputedNameBase */ -declare interface MethodDefinitionBase extends BaseNode { - key: PropertyName; - value: FunctionExpression | TSEmptyBodyFunctionExpression; - computed: boolean; - static: boolean; - kind: 'constructor' | 'get' | 'method' | 'set'; - optional?: boolean; - decorators?: Decorator[]; - accessibility?: Accessibility; - typeParameters?: TSTypeParameterDeclaration; - override?: boolean; -} -export declare interface MethodDefinitionComputedName extends MethodDefinitionComputedNameBase { - type: AST_NODE_TYPES.MethodDefinition; -} -declare interface MethodDefinitionComputedNameBase extends MethodDefinitionBase { - key: PropertyNameComputed; - computed: true; -} -export declare interface MethodDefinitionNonComputedName extends ClassMethodDefinitionNonComputedNameBase { - type: AST_NODE_TYPES.MethodDefinition; -} -declare interface MethodDefinitionNonComputedNameBase extends MethodDefinitionBase { - key: PropertyNameNonComputed; - computed: false; -} -export declare type Modifier = TSAbstractKeyword | TSAsyncKeyword | TSPrivateKeyword | TSProtectedKeyword | TSPublicKeyword | TSReadonlyKeyword | TSStaticKeyword; -declare type ModuleBody_TODOFixThis = TSModuleBlock | TSModuleDeclaration; -export declare type NamedExportDeclarations = ClassDeclarationWithName | ClassDeclarationWithOptionalName | FunctionDeclarationWithName | FunctionDeclarationWithOptionalName | TSDeclareFunction | TSEnumDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSTypeAliasDeclaration | VariableDeclaration; -export declare interface NewExpression extends BaseNode { - type: AST_NODE_TYPES.NewExpression; - callee: LeftHandSideExpression; - arguments: CallExpressionArgument[]; - typeParameters?: TSTypeParameterInstantiation; -} -export declare type Node = AccessorProperty | ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BinaryExpression | BlockStatement | BreakStatement | CallExpression | CatchClause | ChainExpression | ClassBody | ClassDeclaration | ClassExpression | ConditionalExpression | ContinueStatement | DebuggerStatement | Decorator | DoWhileStatement | EmptyStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportExpression | ImportNamespaceSpecifier | ImportSpecifier | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LabeledStatement | Literal | LogicalExpression | MemberExpression | MetaProperty | MethodDefinition | NewExpression | ObjectExpression | ObjectPattern | PrivateIdentifier | Program | Property | PropertyDefinition | RestElement | ReturnStatement | SequenceExpression | SpreadElement | StaticBlock | Super | SwitchCase | SwitchStatement | TaggedTemplateExpression | TemplateElement | TemplateLiteral | ThisExpression | ThrowStatement | TryStatement | TSAbstractAccessorProperty | TSAbstractKeyword | TSAbstractMethodDefinition | TSAbstractPropertyDefinition | TSAnyKeyword | TSArrayType | TSAsExpression | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSClassImplements | TSConditionalType | TSConstructorType | TSConstructSignatureDeclaration | TSDeclareFunction | TSDeclareKeyword | TSEmptyBodyFunctionExpression | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExportKeyword | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexedAccessType | TSIndexSignature | TSInferType | TSInstantiationExpression | TSInterfaceBody | TSInterfaceDeclaration | TSInterfaceHeritage | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSPrivateKeyword | TSPropertySignature | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSSatisfiesExpression | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | YieldExpression; -declare interface NodeOrTokenData { - /** - * The source location information of the node. - * - * The loc property is defined as nullable by ESTree, but ESLint requires this property. - * - * @see {SourceLocation} - */ - loc: SourceLocation; - /** - * @see {Range} - */ - range: Range; - type: string; -} -export declare interface NullLiteral extends LiteralBase { - value: null; - raw: 'null'; -} -export declare interface NullToken extends BaseToken { - type: AST_TOKEN_TYPES.Null; -} -export declare interface NumberLiteral extends LiteralBase { - value: number; -} -export declare interface NumericToken extends BaseToken { - type: AST_TOKEN_TYPES.Numeric; -} -export declare interface ObjectExpression extends BaseNode { - type: AST_NODE_TYPES.ObjectExpression; - properties: ObjectLiteralElement[]; -} -export declare type ObjectLiteralElement = Property | SpreadElement; -export declare type ObjectLiteralElementLike = ObjectLiteralElement; -export declare interface ObjectPattern extends BaseNode { - type: AST_NODE_TYPES.ObjectPattern; - properties: (Property | RestElement)[]; - typeAnnotation?: TSTypeAnnotation; - optional?: boolean; - decorators?: Decorator[]; -} -export declare type OptionalRangeAndLoc = Pick> & { - range?: Range; - loc?: SourceLocation; -}; -export declare type Parameter = ArrayPattern | AssignmentPattern | Identifier | ObjectPattern | RestElement | TSParameterProperty; -export declare interface Position { - /** - * Line number (1-indexed) - */ - line: number; - /** - * Column number on the line (0-indexed) - */ - column: number; -} -export declare type PrimaryExpression = ArrayExpression | ArrayPattern | ClassExpression | FunctionExpression | Identifier | JSXElement | JSXFragment | JSXOpeningElement | LiteralExpression | MetaProperty | ObjectExpression | ObjectPattern | Super | TemplateLiteral | ThisExpression | TSNullKeyword; -export declare interface PrivateIdentifier extends BaseNode { - type: AST_NODE_TYPES.PrivateIdentifier; - name: string; -} -export declare interface Program extends BaseNode { - type: AST_NODE_TYPES.Program; - body: ProgramStatement[]; - sourceType: 'module' | 'script'; - comments?: Comment[]; - tokens?: Token[]; -} -export declare type ProgramStatement = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | Statement | TSImportEqualsDeclaration | TSNamespaceExportDeclaration; -export declare type Property = PropertyComputedName | PropertyNonComputedName; -declare interface PropertyBase extends BaseNode { - type: AST_NODE_TYPES.Property; - key: PropertyName; - value: AssignmentPattern | BindingName | Expression | TSEmptyBodyFunctionExpression; - computed: boolean; - method: boolean; - shorthand: boolean; - optional?: boolean; - kind: 'get' | 'init' | 'set'; -} -export declare interface PropertyComputedName extends PropertyBase { - key: PropertyNameComputed; - computed: true; -} -export declare type PropertyDefinition = PropertyDefinitionComputedName | PropertyDefinitionNonComputedName; -declare interface PropertyDefinitionBase extends BaseNode { - key: PropertyName; - value: Expression | null; - computed: boolean; - static: boolean; - declare: boolean; - readonly?: boolean; - decorators?: Decorator[]; - accessibility?: Accessibility; - optional?: boolean; - definite?: boolean; - typeAnnotation?: TSTypeAnnotation; - override?: boolean; -} -export declare interface PropertyDefinitionComputedName extends PropertyDefinitionComputedNameBase { - type: AST_NODE_TYPES.PropertyDefinition; -} -declare interface PropertyDefinitionComputedNameBase extends PropertyDefinitionBase { - key: PropertyNameComputed; - computed: true; -} -export declare interface PropertyDefinitionNonComputedName extends ClassPropertyDefinitionNonComputedNameBase { - type: AST_NODE_TYPES.PropertyDefinition; -} -declare interface PropertyDefinitionNonComputedNameBase extends PropertyDefinitionBase { - key: PropertyNameNonComputed; - computed: false; -} -export declare type PropertyName = ClassPropertyNameNonComputed | PropertyNameComputed | PropertyNameNonComputed; -export declare type PropertyNameComputed = Expression; -export declare type PropertyNameNonComputed = Identifier | NumberLiteral | StringLiteral; -export declare interface PropertyNonComputedName extends PropertyBase { - key: PropertyNameNonComputed; - computed: false; -} -export declare interface PunctuatorToken extends BaseToken { - type: AST_TOKEN_TYPES.Punctuator; - value: ValueOf; -} -export declare interface PunctuatorTokenToText extends AssignmentOperatorToText { - [SyntaxKind.OpenBraceToken]: '{'; - [SyntaxKind.CloseBraceToken]: '}'; - [SyntaxKind.OpenParenToken]: '('; - [SyntaxKind.CloseParenToken]: ')'; - [SyntaxKind.OpenBracketToken]: '['; - [SyntaxKind.CloseBracketToken]: ']'; - [SyntaxKind.DotToken]: '.'; - [SyntaxKind.DotDotDotToken]: '...'; - [SyntaxKind.SemicolonToken]: ';'; - [SyntaxKind.CommaToken]: ','; - [SyntaxKind.QuestionDotToken]: '?.'; - [SyntaxKind.LessThanToken]: '<'; - [SyntaxKind.LessThanSlashToken]: ''; - [SyntaxKind.LessThanEqualsToken]: '<='; - [SyntaxKind.GreaterThanEqualsToken]: '>='; - [SyntaxKind.EqualsEqualsToken]: '=='; - [SyntaxKind.ExclamationEqualsToken]: '!='; - [SyntaxKind.EqualsEqualsEqualsToken]: '==='; - [SyntaxKind.ExclamationEqualsEqualsToken]: '!=='; - [SyntaxKind.EqualsGreaterThanToken]: '=>'; - [SyntaxKind.PlusToken]: '+'; - [SyntaxKind.MinusToken]: '-'; - [SyntaxKind.AsteriskToken]: '*'; - [SyntaxKind.AsteriskAsteriskToken]: '**'; - [SyntaxKind.SlashToken]: '/'; - [SyntaxKind.PercentToken]: '%'; - [SyntaxKind.PlusPlusToken]: '++'; - [SyntaxKind.MinusMinusToken]: '--'; - [SyntaxKind.LessThanLessThanToken]: '<<'; - [SyntaxKind.GreaterThanGreaterThanToken]: '>>'; - [SyntaxKind.GreaterThanGreaterThanGreaterThanToken]: '>>>'; - [SyntaxKind.AmpersandToken]: '&'; - [SyntaxKind.BarToken]: '|'; - [SyntaxKind.CaretToken]: '^'; - [SyntaxKind.ExclamationToken]: '!'; - [SyntaxKind.TildeToken]: '~'; - [SyntaxKind.AmpersandAmpersandToken]: '&&'; - [SyntaxKind.BarBarToken]: '||'; - [SyntaxKind.QuestionToken]: '?'; - [SyntaxKind.ColonToken]: ':'; - [SyntaxKind.AtToken]: '@'; - [SyntaxKind.QuestionQuestionToken]: '??'; - [SyntaxKind.BacktickToken]: '`'; - [SyntaxKind.HashToken]: '#'; -} -/** - * An array of two numbers. - * Both numbers are a 0-based index which is the position in the array of source code characters. - * The first is the start position of the node, the second is the end position of the node. - */ -export declare type Range = [number, number]; -export declare interface RegExpLiteral extends LiteralBase { - value: RegExp | null; - regex: { - pattern: string; - flags: string; - }; -} -export declare interface RegularExpressionToken extends BaseToken { - type: AST_TOKEN_TYPES.RegularExpression; - regex: { - pattern: string; - flags: string; - }; -} -export declare interface RestElement extends BaseNode { - type: AST_NODE_TYPES.RestElement; - argument: DestructuringPattern; - typeAnnotation?: TSTypeAnnotation; - optional?: boolean; - value?: AssignmentPattern; - decorators?: Decorator[]; -} -export declare interface ReturnStatement extends BaseNode { - type: AST_NODE_TYPES.ReturnStatement; - argument: Expression | null; -} -export declare interface SequenceExpression extends BaseNode { - type: AST_NODE_TYPES.SequenceExpression; - expressions: Expression[]; -} -export declare interface SourceLocation { - /** - * The position of the first character of the parsed source region - */ - start: Position; - /** - * The position of the first character after the parsed source region - */ - end: Position; -} -export declare interface SpreadElement extends BaseNode { - type: AST_NODE_TYPES.SpreadElement; - argument: Expression; -} -export declare type Statement = BlockStatement | BreakStatement | ClassDeclarationWithName | ContinueStatement | DebuggerStatement | DoWhileStatement | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclarationWithName | IfStatement | ImportDeclaration | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | TSDeclareFunction | TSEnumDeclaration | TSExportAssignment | TSImportEqualsDeclaration | TSInterfaceDeclaration | TSModuleDeclaration | TSNamespaceExportDeclaration | TSTypeAliasDeclaration | VariableDeclaration | WhileStatement | WithStatement; -export declare interface StaticBlock extends BaseNode { - type: AST_NODE_TYPES.StaticBlock; - body: Statement[]; -} -export declare interface StringLiteral extends LiteralBase { - value: string; -} -export declare interface StringToken extends BaseToken { - type: AST_TOKEN_TYPES.String; -} -export declare interface Super extends BaseNode { - type: AST_NODE_TYPES.Super; -} -export declare interface SwitchCase extends BaseNode { - type: AST_NODE_TYPES.SwitchCase; - test: Expression | null; - consequent: Statement[]; -} -export declare interface SwitchStatement extends BaseNode { - type: AST_NODE_TYPES.SwitchStatement; - discriminant: Expression; - cases: SwitchCase[]; -} -export declare interface TaggedTemplateExpression extends BaseNode { - type: AST_NODE_TYPES.TaggedTemplateExpression; - typeParameters?: TSTypeParameterInstantiation; - tag: LeftHandSideExpression; - quasi: TemplateLiteral; -} -export declare interface TemplateElement extends BaseNode { - type: AST_NODE_TYPES.TemplateElement; - value: { - raw: string; - cooked: string; - }; - tail: boolean; -} -export declare interface TemplateLiteral extends BaseNode { - type: AST_NODE_TYPES.TemplateLiteral; - quasis: TemplateElement[]; - expressions: Expression[]; -} -export declare interface TemplateToken extends BaseToken { - type: AST_TOKEN_TYPES.Template; -} -export declare interface ThisExpression extends BaseNode { - type: AST_NODE_TYPES.ThisExpression; -} -export declare interface ThrowStatement extends BaseNode { - type: AST_NODE_TYPES.ThrowStatement; - argument: Statement | TSAsExpression | null; -} -export declare type Token = BooleanToken | Comment | IdentifierToken | JSXIdentifierToken | JSXTextToken | KeywordToken | NullToken | NumericToken | PunctuatorToken | RegularExpressionToken | StringToken | TemplateToken; -export declare interface TryStatement extends BaseNode { - type: AST_NODE_TYPES.TryStatement; - block: BlockStatement; - handler: CatchClause | null; - finalizer: BlockStatement | null; -} -export declare type TSAbstractAccessorProperty = TSAbstractAccessorPropertyComputedName | TSAbstractAccessorPropertyNonComputedName; -export declare interface TSAbstractAccessorPropertyComputedName extends PropertyDefinitionComputedNameBase { - type: AST_NODE_TYPES.TSAbstractAccessorProperty; - value: null; -} -export declare interface TSAbstractAccessorPropertyNonComputedName extends PropertyDefinitionNonComputedNameBase { - type: AST_NODE_TYPES.TSAbstractAccessorProperty; - value: null; -} -export declare interface TSAbstractKeyword extends BaseNode { - type: AST_NODE_TYPES.TSAbstractKeyword; -} -export declare type TSAbstractMethodDefinition = TSAbstractMethodDefinitionComputedName | TSAbstractMethodDefinitionNonComputedName; -export declare interface TSAbstractMethodDefinitionComputedName extends MethodDefinitionComputedNameBase { - type: AST_NODE_TYPES.TSAbstractMethodDefinition; -} -export declare interface TSAbstractMethodDefinitionNonComputedName extends MethodDefinitionNonComputedNameBase { - type: AST_NODE_TYPES.TSAbstractMethodDefinition; -} -export declare type TSAbstractPropertyDefinition = TSAbstractPropertyDefinitionComputedName | TSAbstractPropertyDefinitionNonComputedName; -export declare interface TSAbstractPropertyDefinitionComputedName extends PropertyDefinitionComputedNameBase { - type: AST_NODE_TYPES.TSAbstractPropertyDefinition; - value: null; -} -export declare interface TSAbstractPropertyDefinitionNonComputedName extends PropertyDefinitionNonComputedNameBase { - type: AST_NODE_TYPES.TSAbstractPropertyDefinition; - value: null; -} -export declare interface TSAnyKeyword extends BaseNode { - type: AST_NODE_TYPES.TSAnyKeyword; -} -export declare interface TSArrayType extends BaseNode { - type: AST_NODE_TYPES.TSArrayType; - elementType: TypeNode; -} -export declare interface TSAsExpression extends BaseNode { - type: AST_NODE_TYPES.TSAsExpression; - expression: Expression; - typeAnnotation: TypeNode; -} -export declare interface TSAsyncKeyword extends BaseNode { - type: AST_NODE_TYPES.TSAsyncKeyword; -} -export declare interface TSBigIntKeyword extends BaseNode { - type: AST_NODE_TYPES.TSBigIntKeyword; -} -export declare interface TSBooleanKeyword extends BaseNode { - type: AST_NODE_TYPES.TSBooleanKeyword; -} -export declare interface TSCallSignatureDeclaration extends TSFunctionSignatureBase { - type: AST_NODE_TYPES.TSCallSignatureDeclaration; -} -export declare interface TSClassImplements extends TSHeritageBase { - type: AST_NODE_TYPES.TSClassImplements; -} -export declare interface TSConditionalType extends BaseNode { - type: AST_NODE_TYPES.TSConditionalType; - checkType: TypeNode; - extendsType: TypeNode; - trueType: TypeNode; - falseType: TypeNode; -} -export declare interface TSConstructorType extends TSFunctionSignatureBase { - type: AST_NODE_TYPES.TSConstructorType; - abstract: boolean; -} -export declare interface TSConstructSignatureDeclaration extends TSFunctionSignatureBase { - type: AST_NODE_TYPES.TSConstructSignatureDeclaration; -} -export declare interface TSDeclareFunction extends FunctionBase { - type: AST_NODE_TYPES.TSDeclareFunction; - body?: BlockStatement; - declare?: boolean; - expression: false; -} -export declare interface TSDeclareKeyword extends BaseNode { - type: AST_NODE_TYPES.TSDeclareKeyword; -} -export declare interface TSEmptyBodyFunctionExpression extends FunctionBase { - type: AST_NODE_TYPES.TSEmptyBodyFunctionExpression; - body: null; - id: null; -} -export declare interface TSEnumDeclaration extends BaseNode { - type: AST_NODE_TYPES.TSEnumDeclaration; - /** - * Whether this is a `const` enum. - * ``` - * const enum Foo {...} - * ``` - */ - const?: boolean; - /** - * Whether this is a `declare`d enum. - * ``` - * declare enum Foo {...} - * ``` - */ - declare?: boolean; - /** - * The enum name. - */ - id: Identifier; - /** - * The enum members. - */ - members: TSEnumMember[]; - modifiers?: Modifier[]; -} -export declare type TSEnumMember = TSEnumMemberComputedName | TSEnumMemberNonComputedName; -declare interface TSEnumMemberBase extends BaseNode { - type: AST_NODE_TYPES.TSEnumMember; - id: PropertyNameComputed | PropertyNameNonComputed; - initializer?: Expression; - computed?: boolean; -} -/** - * this should only really happen in semantically invalid code (errors 1164 and 2452) - * - * VALID: - * enum Foo { ['a'] } - * - * INVALID: - * const x = 'a'; - * enum Foo { [x] } - * enum Bar { ['a' + 'b'] } - */ -export declare interface TSEnumMemberComputedName extends TSEnumMemberBase { - id: PropertyNameComputed; - computed: true; -} -export declare interface TSEnumMemberNonComputedName extends TSEnumMemberBase { - id: PropertyNameNonComputed; - computed?: false; -} -export declare interface TSExportAssignment extends BaseNode { - type: AST_NODE_TYPES.TSExportAssignment; - expression: Expression; -} -export declare interface TSExportKeyword extends BaseNode { - type: AST_NODE_TYPES.TSExportKeyword; -} -export declare interface TSExternalModuleReference extends BaseNode { - type: AST_NODE_TYPES.TSExternalModuleReference; - expression: Expression; -} -declare interface TSFunctionSignatureBase extends BaseNode { - params: Parameter[]; - returnType?: TSTypeAnnotation; - typeParameters?: TSTypeParameterDeclaration; -} -export declare interface TSFunctionType extends TSFunctionSignatureBase { - type: AST_NODE_TYPES.TSFunctionType; -} -declare interface TSHeritageBase extends BaseNode { - expression: Expression; - typeParameters?: TSTypeParameterInstantiation; -} -export declare interface TSImportEqualsDeclaration extends BaseNode { - type: AST_NODE_TYPES.TSImportEqualsDeclaration; - /** - * The locally imported name - */ - id: Identifier; - /** - * The value being aliased. - * ``` - * import F1 = A; - * import F2 = A.B.C; - * import F3 = require('mod'); - * ``` - */ - moduleReference: EntityName | TSExternalModuleReference; - importKind: ImportKind; - /** - * Whether this is immediately exported - * ``` - * export import F = A; - * ``` - */ - isExport: boolean; -} -export declare interface TSImportType extends BaseNode { - type: AST_NODE_TYPES.TSImportType; - isTypeOf: boolean; - parameter: TypeNode; - qualifier: EntityName | null; - typeParameters: TSTypeParameterInstantiation | null; -} -export declare interface TSIndexedAccessType extends BaseNode { - type: AST_NODE_TYPES.TSIndexedAccessType; - objectType: TypeNode; - indexType: TypeNode; -} -export declare interface TSIndexSignature extends BaseNode { - type: AST_NODE_TYPES.TSIndexSignature; - parameters: Parameter[]; - typeAnnotation?: TSTypeAnnotation; - readonly?: boolean; - accessibility?: Accessibility; - export?: boolean; - static?: boolean; -} -export declare interface TSInferType extends BaseNode { - type: AST_NODE_TYPES.TSInferType; - typeParameter: TSTypeParameter; -} -export declare interface TSInstantiationExpression extends BaseNode { - type: AST_NODE_TYPES.TSInstantiationExpression; - expression: Expression; - typeParameters: TSTypeParameterInstantiation; -} -export declare interface TSInterfaceBody extends BaseNode { - type: AST_NODE_TYPES.TSInterfaceBody; - body: TypeElement[]; -} -export declare interface TSInterfaceDeclaration extends BaseNode { - type: AST_NODE_TYPES.TSInterfaceDeclaration; - abstract?: boolean; - /** - * The body of the interface - */ - body: TSInterfaceBody; - /** - * Whether the interface was `declare`d, `undefined` otherwise - */ - declare?: boolean; - /** - * The types this interface `extends` - */ - extends?: TSInterfaceHeritage[]; - /** - * The name of this interface - */ - id: Identifier; - implements?: TSInterfaceHeritage[]; - /** - * The generic type parameters declared for the interface. - * This is `undefined` if there are no generic type parameters declared. - */ - typeParameters?: TSTypeParameterDeclaration; -} -export declare interface TSInterfaceHeritage extends TSHeritageBase { - type: AST_NODE_TYPES.TSInterfaceHeritage; -} -export declare interface TSIntersectionType extends BaseNode { - type: AST_NODE_TYPES.TSIntersectionType; - types: TypeNode[]; -} -export declare interface TSIntrinsicKeyword extends BaseNode { - type: AST_NODE_TYPES.TSIntrinsicKeyword; -} -export declare interface TSLiteralType extends BaseNode { - type: AST_NODE_TYPES.TSLiteralType; - literal: LiteralExpression | UnaryExpression | UpdateExpression; -} -export declare interface TSMappedType extends BaseNode { - type: AST_NODE_TYPES.TSMappedType; - typeParameter: TSTypeParameter; - readonly?: boolean | '-' | '+'; - optional?: boolean | '-' | '+'; - typeAnnotation?: TypeNode; - nameType: TypeNode | null; -} -export declare type TSMethodSignature = TSMethodSignatureComputedName | TSMethodSignatureNonComputedName; -declare interface TSMethodSignatureBase extends BaseNode { - type: AST_NODE_TYPES.TSMethodSignature; - key: PropertyName; - computed: boolean; - params: Parameter[]; - optional?: boolean; - returnType?: TSTypeAnnotation; - readonly?: boolean; - typeParameters?: TSTypeParameterDeclaration; - accessibility?: Accessibility; - export?: boolean; - static?: boolean; - kind: 'get' | 'method' | 'set'; -} -export declare interface TSMethodSignatureComputedName extends TSMethodSignatureBase { - key: PropertyNameComputed; - computed: true; -} -export declare interface TSMethodSignatureNonComputedName extends TSMethodSignatureBase { - key: PropertyNameNonComputed; - computed: false; -} -export declare interface TSModuleBlock extends BaseNode { - type: AST_NODE_TYPES.TSModuleBlock; - body: ProgramStatement[]; -} -export declare type TSModuleDeclaration = TSModuleDeclarationGlobal | TSModuleDeclarationModule | TSModuleDeclarationNamespace; -declare interface TSModuleDeclarationBase extends BaseNode { - type: AST_NODE_TYPES.TSModuleDeclaration; - /** - * The name of the module - * ``` - * namespace A {} - * namespace A.B.C {} - * module 'a' {} - * ``` - */ - id: Identifier | StringLiteral; - /** - * The body of the module. - * This can only be `undefined` for the code `declare module 'mod';` - * This will be a `TSModuleDeclaration` if the name is "nested" (`Foo.Bar`). - */ - body?: ModuleBody_TODOFixThis; - /** - * Whether this is a global declaration - * ``` - * declare global {} - * ``` - */ - global?: boolean; - /** - * Whether the module is `declare`d - * ``` - * declare namespace F {} - * ``` - */ - declare?: boolean; - modifiers?: Modifier[]; - /** - * The keyword used to define this module declaration - * ``` - * namespace Foo {} - * ^^^^^^^^^ - * - * module 'foo' {} - * ^^^^^^ - * - * declare global {} - * ^^^^^^ - * ``` - */ - kind: TSModuleDeclarationKind; -} -export declare interface TSModuleDeclarationGlobal extends TSModuleDeclarationBase { - kind: 'global'; - body: TSModuleBlock; - id: Identifier; - global: true; -} -export declare type TSModuleDeclarationKind = 'global' | 'module' | 'namespace'; -export declare type TSModuleDeclarationModule = TSModuleDeclarationModuleWithIdentifierId | TSModuleDeclarationModuleWithStringId; -declare interface TSModuleDeclarationModuleBase extends TSModuleDeclarationBase { - kind: 'module'; - global?: undefined; -} -export declare interface TSModuleDeclarationModuleWithIdentifierId extends TSModuleDeclarationModuleBase { - kind: 'module'; - id: Identifier; - body: ModuleBody_TODOFixThis; -} -export declare type TSModuleDeclarationModuleWithStringId = TSModuleDeclarationModuleWithStringIdDeclared | TSModuleDeclarationModuleWithStringIdNotDeclared; -export declare interface TSModuleDeclarationModuleWithStringIdDeclared extends TSModuleDeclarationModuleBase { - kind: 'module'; - id: StringLiteral; - declare: true; - body?: TSModuleBlock; -} -export declare interface TSModuleDeclarationModuleWithStringIdNotDeclared extends TSModuleDeclarationModuleBase { - kind: 'module'; - id: StringLiteral; - declare: false; - body: TSModuleBlock; -} -export declare interface TSModuleDeclarationNamespace extends TSModuleDeclarationBase { - kind: 'namespace'; - id: Identifier; - body: ModuleBody_TODOFixThis; - global?: undefined; -} -export declare interface TSNamedTupleMember extends BaseNode { - type: AST_NODE_TYPES.TSNamedTupleMember; - elementType: TypeNode; - label: Identifier; - optional: boolean; -} -export declare interface TSNamespaceExportDeclaration extends BaseNode { - type: AST_NODE_TYPES.TSNamespaceExportDeclaration; - /** - * The name the global variable being exported to - */ - id: Identifier; -} -export declare interface TSNeverKeyword extends BaseNode { - type: AST_NODE_TYPES.TSNeverKeyword; -} -export declare interface TSNonNullExpression extends BaseNode { - type: AST_NODE_TYPES.TSNonNullExpression; - expression: Expression; -} -export declare interface TSNullKeyword extends BaseNode { - type: AST_NODE_TYPES.TSNullKeyword; -} -export declare interface TSNumberKeyword extends BaseNode { - type: AST_NODE_TYPES.TSNumberKeyword; -} -export declare interface TSObjectKeyword extends BaseNode { - type: AST_NODE_TYPES.TSObjectKeyword; -} -export declare interface TSOptionalType extends BaseNode { - type: AST_NODE_TYPES.TSOptionalType; - typeAnnotation: TypeNode; -} -export declare interface TSParameterProperty extends BaseNode { - type: AST_NODE_TYPES.TSParameterProperty; - accessibility?: Accessibility; - readonly?: boolean; - static?: boolean; - export?: boolean; - override?: boolean; - parameter: AssignmentPattern | BindingName | RestElement; - decorators?: Decorator[]; -} -export declare interface TSPrivateKeyword extends BaseNode { - type: AST_NODE_TYPES.TSPrivateKeyword; -} -export declare type TSPropertySignature = TSPropertySignatureComputedName | TSPropertySignatureNonComputedName; -declare interface TSPropertySignatureBase extends BaseNode { - type: AST_NODE_TYPES.TSPropertySignature; - key: PropertyName; - optional?: boolean; - computed: boolean; - typeAnnotation?: TSTypeAnnotation; - initializer?: Expression; - readonly?: boolean; - static?: boolean; - export?: boolean; - accessibility?: Accessibility; -} -export declare interface TSPropertySignatureComputedName extends TSPropertySignatureBase { - key: PropertyNameComputed; - computed: true; -} -export declare interface TSPropertySignatureNonComputedName extends TSPropertySignatureBase { - key: PropertyNameNonComputed; - computed: false; -} -export declare interface TSProtectedKeyword extends BaseNode { - type: AST_NODE_TYPES.TSProtectedKeyword; -} -export declare interface TSPublicKeyword extends BaseNode { - type: AST_NODE_TYPES.TSPublicKeyword; -} -export declare interface TSQualifiedName extends BaseNode { - type: AST_NODE_TYPES.TSQualifiedName; - left: EntityName; - right: Identifier; -} -export declare interface TSReadonlyKeyword extends BaseNode { - type: AST_NODE_TYPES.TSReadonlyKeyword; -} -export declare interface TSRestType extends BaseNode { - type: AST_NODE_TYPES.TSRestType; - typeAnnotation: TypeNode; -} -export declare interface TSSatisfiesExpression extends BaseNode { - type: AST_NODE_TYPES.TSSatisfiesExpression; - expression: Expression; - typeAnnotation: TypeNode; -} -export declare interface TSStaticKeyword extends BaseNode { - type: AST_NODE_TYPES.TSStaticKeyword; -} -export declare interface TSStringKeyword extends BaseNode { - type: AST_NODE_TYPES.TSStringKeyword; -} -export declare interface TSSymbolKeyword extends BaseNode { - type: AST_NODE_TYPES.TSSymbolKeyword; -} -export declare interface TSTemplateLiteralType extends BaseNode { - type: AST_NODE_TYPES.TSTemplateLiteralType; - quasis: TemplateElement[]; - types: TypeNode[]; -} -export declare interface TSThisType extends BaseNode { - type: AST_NODE_TYPES.TSThisType; -} -export declare interface TSTupleType extends BaseNode { - type: AST_NODE_TYPES.TSTupleType; - elementTypes: TypeNode[]; -} -export declare interface TSTypeAliasDeclaration extends BaseNode { - type: AST_NODE_TYPES.TSTypeAliasDeclaration; - /** - * Whether the type was `declare`d. - * ``` - * declare type T = 1; - * ``` - */ - declare?: boolean; - /** - * The name of the type. - */ - id: Identifier; - /** - * The "value" (type) of the declaration - */ - typeAnnotation: TypeNode; - /** - * The generic type parameters declared for the type. - * This is `undefined` if there are no generic type parameters declared. - */ - typeParameters?: TSTypeParameterDeclaration; -} -export declare interface TSTypeAnnotation extends BaseNode { - type: AST_NODE_TYPES.TSTypeAnnotation; - typeAnnotation: TypeNode; -} -export declare interface TSTypeAssertion extends BaseNode { - type: AST_NODE_TYPES.TSTypeAssertion; - typeAnnotation: TypeNode; - expression: Expression; -} -export declare interface TSTypeLiteral extends BaseNode { - type: AST_NODE_TYPES.TSTypeLiteral; - members: TypeElement[]; -} -export declare interface TSTypeOperator extends BaseNode { - type: AST_NODE_TYPES.TSTypeOperator; - operator: 'keyof' | 'readonly' | 'unique'; - typeAnnotation?: TypeNode; -} -export declare interface TSTypeParameter extends BaseNode { - type: AST_NODE_TYPES.TSTypeParameter; - name: Identifier; - constraint?: TypeNode; - default?: TypeNode; - in: boolean; - out: boolean; - const: boolean; -} -export declare interface TSTypeParameterDeclaration extends BaseNode { - type: AST_NODE_TYPES.TSTypeParameterDeclaration; - params: TSTypeParameter[]; -} -export declare interface TSTypeParameterInstantiation extends BaseNode { - type: AST_NODE_TYPES.TSTypeParameterInstantiation; - params: TypeNode[]; -} -export declare interface TSTypePredicate extends BaseNode { - type: AST_NODE_TYPES.TSTypePredicate; - asserts: boolean; - parameterName: Identifier | TSThisType; - typeAnnotation: TSTypeAnnotation | null; -} -export declare interface TSTypeQuery extends BaseNode { - type: AST_NODE_TYPES.TSTypeQuery; - exprName: EntityName; - typeParameters?: TSTypeParameterInstantiation; -} -export declare interface TSTypeReference extends BaseNode { - type: AST_NODE_TYPES.TSTypeReference; - typeName: EntityName; - typeParameters?: TSTypeParameterInstantiation; -} -export declare type TSUnaryExpression = AwaitExpression | LeftHandSideExpression | UnaryExpression | UpdateExpression; -export declare interface TSUndefinedKeyword extends BaseNode { - type: AST_NODE_TYPES.TSUndefinedKeyword; -} -export declare interface TSUnionType extends BaseNode { - type: AST_NODE_TYPES.TSUnionType; - types: TypeNode[]; -} -export declare interface TSUnknownKeyword extends BaseNode { - type: AST_NODE_TYPES.TSUnknownKeyword; -} -export declare interface TSVoidKeyword extends BaseNode { - type: AST_NODE_TYPES.TSVoidKeyword; -} -export declare type TypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSIndexSignature | TSMethodSignature | TSPropertySignature; -export declare type TypeNode = TSAbstractKeyword | TSAnyKeyword | TSArrayType | TSAsyncKeyword | TSBigIntKeyword | TSBooleanKeyword | TSConditionalType | TSConstructorType | TSDeclareKeyword | TSExportKeyword | TSFunctionType | TSImportType | TSIndexedAccessType | TSInferType | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSNamedTupleMember | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSPrivateKeyword | TSProtectedKeyword | TSPublicKeyword | TSQualifiedName | TSReadonlyKeyword | TSRestType | TSStaticKeyword | TSStringKeyword | TSSymbolKeyword | TSTemplateLiteralType | TSThisType | TSTupleType | TSTypeLiteral | TSTypeOperator | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword; -export declare interface UnaryExpression extends UnaryExpressionBase { - type: AST_NODE_TYPES.UnaryExpression; - operator: '-' | '!' | '+' | '~' | 'delete' | 'typeof' | 'void'; -} -declare interface UnaryExpressionBase extends BaseNode { - operator: string; - prefix: boolean; - argument: LeftHandSideExpression | Literal | UnaryExpression; -} -export declare interface UpdateExpression extends UnaryExpressionBase { - type: AST_NODE_TYPES.UpdateExpression; - operator: '--' | '++'; -} -declare type ValueOf = T[keyof T]; -export declare interface VariableDeclaration extends BaseNode { - type: AST_NODE_TYPES.VariableDeclaration; - /** - * The variables declared by this declaration. - * Note that there may be 0 declarations (i.e. `const;`). - * ``` - * let x; - * let y, z; - * ``` - */ - declarations: VariableDeclarator[]; - /** - * Whether the declaration is `declare`d - * ``` - * declare const x = 1; - * ``` - */ - declare?: boolean; - /** - * The keyword used to declare the variable(s) - * ``` - * const x = 1; - * let y = 2; - * var z = 3; - * ``` - */ - kind: 'const' | 'let' | 'var'; -} -export declare interface VariableDeclarator extends BaseNode { - type: AST_NODE_TYPES.VariableDeclarator; - id: BindingName; - init: Expression | null; - definite?: boolean; -} -export declare interface WhileStatement extends BaseNode { - type: AST_NODE_TYPES.WhileStatement; - test: Expression; - body: Statement; -} -export declare interface WithStatement extends BaseNode { - type: AST_NODE_TYPES.WithStatement; - object: Expression; - body: Statement; -} -export declare interface YieldExpression extends BaseNode { - type: AST_NODE_TYPES.YieldExpression; - delegate: boolean; - argument?: Expression; -} -export {}; -//# sourceMappingURL=ast-spec.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map b/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map deleted file mode 100644 index 5ce74024..00000000 --- a/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ast-spec.d.ts","sourceRoot":"","sources":["../../src/generated/ast-spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;gDAQgD;AAEhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,CAAC,OAAO,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEvE,MAAM,CAAC,OAAO,MAAM,gBAAgB,GAChC,4BAA4B,GAC5B,+BAA+B,CAAC;AAEpC,MAAM,CAAC,OAAO,WAAW,4BACvB,SAAQ,kCAAkC;IAC1C,IAAI,EAAE,cAAc,CAAC,gBAAgB,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,WAAW,+BACvB,SAAQ,qCAAqC;IAC7C,IAAI,EAAE,cAAc,CAAC,gBAAgB,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,WAAW,eAAgB,SAAQ,QAAQ;IACvD,IAAI,EAAE,cAAc,CAAC,eAAe,CAAC;IACrC;;OAEG;IACH,QAAQ,EAAE,CAAC,UAAU,GAAG,aAAa,GAAG,IAAI,CAAC,EAAE,CAAC;CACjD;AAED,MAAM,CAAC,OAAO,WAAW,YAAa,SAAQ,QAAQ;IACpD,IAAI,EAAE,cAAc,CAAC,YAAY,CAAC;IAClC,QAAQ,EAAE,CAAC,oBAAoB,GAAG,IAAI,CAAC,EAAE,CAAC;IAC1C,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,uBAAwB,SAAQ,QAAQ;IAC/D,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AAI,CAAC;CACvB;AAED,OAAO,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAErC,MAAM,CAAC,OAAO,WAAW,mBAAoB,SAAQ,QAAQ;IAC3D,IAAI,EAAE,cAAc,CAAC,mBAAmB,CAAC;IACzC;;;;;;;OAOG;IACH,YAAY,EAAE,kBAAkB,EAAE,CAAC;IACnC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;OAOG;IACH,IAAI,EAAE,OAAO,GAAG,KAAK,GAAG,KAAK,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,WAAW,kBAAmB,SAAQ,QAAQ;IAC1D,IAAI,EAAE,cAAc,CAAC,kBAAkB,CAAC;IACxC,EAAE,EAAE,WAAW,CAAC;IAChB,IAAI,EAAE,UAAU,GAAG,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,cAAe,SAAQ,QAAQ;IACtD,IAAI,EAAE,cAAc,CAAC,cAAc,CAAC;IACpC,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,aAAc,SAAQ,QAAQ;IACrD,IAAI,EAAE,cAAc,CAAC,aAAa,CAAC;IACnC,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,eAAgB,SAAQ,QAAQ;IACvD,IAAI,EAAE,cAAc,CAAC,eAAe,CAAC;IACrC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,OAAO,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js b/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js deleted file mode 100644 index 1ffa85ae..00000000 --- a/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +++ /dev/null @@ -1,202 +0,0 @@ -"use strict"; -/********************************************** - * DO NOT MODIFY THIS FILE MANUALLY * - * * - * THIS FILE HAS BEEN COPIED FROM ast-spec. * - * ANY CHANGES WILL BE LOST ON THE NEXT BUILD * - * * - * MAKE CHANGES TO ast-spec AND THEN RUN * - * yarn build * - **********************************************/ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0; -var AST_NODE_TYPES; -(function (AST_NODE_TYPES) { - AST_NODE_TYPES["AccessorProperty"] = "AccessorProperty"; - AST_NODE_TYPES["ArrayExpression"] = "ArrayExpression"; - AST_NODE_TYPES["ArrayPattern"] = "ArrayPattern"; - AST_NODE_TYPES["ArrowFunctionExpression"] = "ArrowFunctionExpression"; - AST_NODE_TYPES["AssignmentExpression"] = "AssignmentExpression"; - AST_NODE_TYPES["AssignmentPattern"] = "AssignmentPattern"; - AST_NODE_TYPES["AwaitExpression"] = "AwaitExpression"; - AST_NODE_TYPES["BinaryExpression"] = "BinaryExpression"; - AST_NODE_TYPES["BlockStatement"] = "BlockStatement"; - AST_NODE_TYPES["BreakStatement"] = "BreakStatement"; - AST_NODE_TYPES["CallExpression"] = "CallExpression"; - AST_NODE_TYPES["CatchClause"] = "CatchClause"; - AST_NODE_TYPES["ChainExpression"] = "ChainExpression"; - AST_NODE_TYPES["ClassBody"] = "ClassBody"; - AST_NODE_TYPES["ClassDeclaration"] = "ClassDeclaration"; - AST_NODE_TYPES["ClassExpression"] = "ClassExpression"; - AST_NODE_TYPES["ConditionalExpression"] = "ConditionalExpression"; - AST_NODE_TYPES["ContinueStatement"] = "ContinueStatement"; - AST_NODE_TYPES["DebuggerStatement"] = "DebuggerStatement"; - AST_NODE_TYPES["Decorator"] = "Decorator"; - AST_NODE_TYPES["DoWhileStatement"] = "DoWhileStatement"; - AST_NODE_TYPES["EmptyStatement"] = "EmptyStatement"; - AST_NODE_TYPES["ExportAllDeclaration"] = "ExportAllDeclaration"; - AST_NODE_TYPES["ExportDefaultDeclaration"] = "ExportDefaultDeclaration"; - AST_NODE_TYPES["ExportNamedDeclaration"] = "ExportNamedDeclaration"; - AST_NODE_TYPES["ExportSpecifier"] = "ExportSpecifier"; - AST_NODE_TYPES["ExpressionStatement"] = "ExpressionStatement"; - AST_NODE_TYPES["ForInStatement"] = "ForInStatement"; - AST_NODE_TYPES["ForOfStatement"] = "ForOfStatement"; - AST_NODE_TYPES["ForStatement"] = "ForStatement"; - AST_NODE_TYPES["FunctionDeclaration"] = "FunctionDeclaration"; - AST_NODE_TYPES["FunctionExpression"] = "FunctionExpression"; - AST_NODE_TYPES["Identifier"] = "Identifier"; - AST_NODE_TYPES["IfStatement"] = "IfStatement"; - AST_NODE_TYPES["ImportAttribute"] = "ImportAttribute"; - AST_NODE_TYPES["ImportDeclaration"] = "ImportDeclaration"; - AST_NODE_TYPES["ImportDefaultSpecifier"] = "ImportDefaultSpecifier"; - AST_NODE_TYPES["ImportExpression"] = "ImportExpression"; - AST_NODE_TYPES["ImportNamespaceSpecifier"] = "ImportNamespaceSpecifier"; - AST_NODE_TYPES["ImportSpecifier"] = "ImportSpecifier"; - AST_NODE_TYPES["JSXAttribute"] = "JSXAttribute"; - AST_NODE_TYPES["JSXClosingElement"] = "JSXClosingElement"; - AST_NODE_TYPES["JSXClosingFragment"] = "JSXClosingFragment"; - AST_NODE_TYPES["JSXElement"] = "JSXElement"; - AST_NODE_TYPES["JSXEmptyExpression"] = "JSXEmptyExpression"; - AST_NODE_TYPES["JSXExpressionContainer"] = "JSXExpressionContainer"; - AST_NODE_TYPES["JSXFragment"] = "JSXFragment"; - AST_NODE_TYPES["JSXIdentifier"] = "JSXIdentifier"; - AST_NODE_TYPES["JSXMemberExpression"] = "JSXMemberExpression"; - AST_NODE_TYPES["JSXNamespacedName"] = "JSXNamespacedName"; - AST_NODE_TYPES["JSXOpeningElement"] = "JSXOpeningElement"; - AST_NODE_TYPES["JSXOpeningFragment"] = "JSXOpeningFragment"; - AST_NODE_TYPES["JSXSpreadAttribute"] = "JSXSpreadAttribute"; - AST_NODE_TYPES["JSXSpreadChild"] = "JSXSpreadChild"; - AST_NODE_TYPES["JSXText"] = "JSXText"; - AST_NODE_TYPES["LabeledStatement"] = "LabeledStatement"; - AST_NODE_TYPES["Literal"] = "Literal"; - AST_NODE_TYPES["LogicalExpression"] = "LogicalExpression"; - AST_NODE_TYPES["MemberExpression"] = "MemberExpression"; - AST_NODE_TYPES["MetaProperty"] = "MetaProperty"; - AST_NODE_TYPES["MethodDefinition"] = "MethodDefinition"; - AST_NODE_TYPES["NewExpression"] = "NewExpression"; - AST_NODE_TYPES["ObjectExpression"] = "ObjectExpression"; - AST_NODE_TYPES["ObjectPattern"] = "ObjectPattern"; - AST_NODE_TYPES["PrivateIdentifier"] = "PrivateIdentifier"; - AST_NODE_TYPES["Program"] = "Program"; - AST_NODE_TYPES["Property"] = "Property"; - AST_NODE_TYPES["PropertyDefinition"] = "PropertyDefinition"; - AST_NODE_TYPES["RestElement"] = "RestElement"; - AST_NODE_TYPES["ReturnStatement"] = "ReturnStatement"; - AST_NODE_TYPES["SequenceExpression"] = "SequenceExpression"; - AST_NODE_TYPES["SpreadElement"] = "SpreadElement"; - AST_NODE_TYPES["StaticBlock"] = "StaticBlock"; - AST_NODE_TYPES["Super"] = "Super"; - AST_NODE_TYPES["SwitchCase"] = "SwitchCase"; - AST_NODE_TYPES["SwitchStatement"] = "SwitchStatement"; - AST_NODE_TYPES["TaggedTemplateExpression"] = "TaggedTemplateExpression"; - AST_NODE_TYPES["TemplateElement"] = "TemplateElement"; - AST_NODE_TYPES["TemplateLiteral"] = "TemplateLiteral"; - AST_NODE_TYPES["ThisExpression"] = "ThisExpression"; - AST_NODE_TYPES["ThrowStatement"] = "ThrowStatement"; - AST_NODE_TYPES["TryStatement"] = "TryStatement"; - AST_NODE_TYPES["UnaryExpression"] = "UnaryExpression"; - AST_NODE_TYPES["UpdateExpression"] = "UpdateExpression"; - AST_NODE_TYPES["VariableDeclaration"] = "VariableDeclaration"; - AST_NODE_TYPES["VariableDeclarator"] = "VariableDeclarator"; - AST_NODE_TYPES["WhileStatement"] = "WhileStatement"; - AST_NODE_TYPES["WithStatement"] = "WithStatement"; - AST_NODE_TYPES["YieldExpression"] = "YieldExpression"; - /** - * TS-prefixed nodes - */ - AST_NODE_TYPES["TSAbstractAccessorProperty"] = "TSAbstractAccessorProperty"; - AST_NODE_TYPES["TSAbstractKeyword"] = "TSAbstractKeyword"; - AST_NODE_TYPES["TSAbstractMethodDefinition"] = "TSAbstractMethodDefinition"; - AST_NODE_TYPES["TSAbstractPropertyDefinition"] = "TSAbstractPropertyDefinition"; - AST_NODE_TYPES["TSAnyKeyword"] = "TSAnyKeyword"; - AST_NODE_TYPES["TSArrayType"] = "TSArrayType"; - AST_NODE_TYPES["TSAsExpression"] = "TSAsExpression"; - AST_NODE_TYPES["TSAsyncKeyword"] = "TSAsyncKeyword"; - AST_NODE_TYPES["TSBigIntKeyword"] = "TSBigIntKeyword"; - AST_NODE_TYPES["TSBooleanKeyword"] = "TSBooleanKeyword"; - AST_NODE_TYPES["TSCallSignatureDeclaration"] = "TSCallSignatureDeclaration"; - AST_NODE_TYPES["TSClassImplements"] = "TSClassImplements"; - AST_NODE_TYPES["TSConditionalType"] = "TSConditionalType"; - AST_NODE_TYPES["TSConstructorType"] = "TSConstructorType"; - AST_NODE_TYPES["TSConstructSignatureDeclaration"] = "TSConstructSignatureDeclaration"; - AST_NODE_TYPES["TSDeclareFunction"] = "TSDeclareFunction"; - AST_NODE_TYPES["TSDeclareKeyword"] = "TSDeclareKeyword"; - AST_NODE_TYPES["TSEmptyBodyFunctionExpression"] = "TSEmptyBodyFunctionExpression"; - AST_NODE_TYPES["TSEnumDeclaration"] = "TSEnumDeclaration"; - AST_NODE_TYPES["TSEnumMember"] = "TSEnumMember"; - AST_NODE_TYPES["TSExportAssignment"] = "TSExportAssignment"; - AST_NODE_TYPES["TSExportKeyword"] = "TSExportKeyword"; - AST_NODE_TYPES["TSExternalModuleReference"] = "TSExternalModuleReference"; - AST_NODE_TYPES["TSFunctionType"] = "TSFunctionType"; - AST_NODE_TYPES["TSInstantiationExpression"] = "TSInstantiationExpression"; - AST_NODE_TYPES["TSImportEqualsDeclaration"] = "TSImportEqualsDeclaration"; - AST_NODE_TYPES["TSImportType"] = "TSImportType"; - AST_NODE_TYPES["TSIndexedAccessType"] = "TSIndexedAccessType"; - AST_NODE_TYPES["TSIndexSignature"] = "TSIndexSignature"; - AST_NODE_TYPES["TSInferType"] = "TSInferType"; - AST_NODE_TYPES["TSInterfaceBody"] = "TSInterfaceBody"; - AST_NODE_TYPES["TSInterfaceDeclaration"] = "TSInterfaceDeclaration"; - AST_NODE_TYPES["TSInterfaceHeritage"] = "TSInterfaceHeritage"; - AST_NODE_TYPES["TSIntersectionType"] = "TSIntersectionType"; - AST_NODE_TYPES["TSIntrinsicKeyword"] = "TSIntrinsicKeyword"; - AST_NODE_TYPES["TSLiteralType"] = "TSLiteralType"; - AST_NODE_TYPES["TSMappedType"] = "TSMappedType"; - AST_NODE_TYPES["TSMethodSignature"] = "TSMethodSignature"; - AST_NODE_TYPES["TSModuleBlock"] = "TSModuleBlock"; - AST_NODE_TYPES["TSModuleDeclaration"] = "TSModuleDeclaration"; - AST_NODE_TYPES["TSNamedTupleMember"] = "TSNamedTupleMember"; - AST_NODE_TYPES["TSNamespaceExportDeclaration"] = "TSNamespaceExportDeclaration"; - AST_NODE_TYPES["TSNeverKeyword"] = "TSNeverKeyword"; - AST_NODE_TYPES["TSNonNullExpression"] = "TSNonNullExpression"; - AST_NODE_TYPES["TSNullKeyword"] = "TSNullKeyword"; - AST_NODE_TYPES["TSNumberKeyword"] = "TSNumberKeyword"; - AST_NODE_TYPES["TSObjectKeyword"] = "TSObjectKeyword"; - AST_NODE_TYPES["TSOptionalType"] = "TSOptionalType"; - AST_NODE_TYPES["TSParameterProperty"] = "TSParameterProperty"; - AST_NODE_TYPES["TSPrivateKeyword"] = "TSPrivateKeyword"; - AST_NODE_TYPES["TSPropertySignature"] = "TSPropertySignature"; - AST_NODE_TYPES["TSProtectedKeyword"] = "TSProtectedKeyword"; - AST_NODE_TYPES["TSPublicKeyword"] = "TSPublicKeyword"; - AST_NODE_TYPES["TSQualifiedName"] = "TSQualifiedName"; - AST_NODE_TYPES["TSReadonlyKeyword"] = "TSReadonlyKeyword"; - AST_NODE_TYPES["TSRestType"] = "TSRestType"; - AST_NODE_TYPES["TSSatisfiesExpression"] = "TSSatisfiesExpression"; - AST_NODE_TYPES["TSStaticKeyword"] = "TSStaticKeyword"; - AST_NODE_TYPES["TSStringKeyword"] = "TSStringKeyword"; - AST_NODE_TYPES["TSSymbolKeyword"] = "TSSymbolKeyword"; - AST_NODE_TYPES["TSTemplateLiteralType"] = "TSTemplateLiteralType"; - AST_NODE_TYPES["TSThisType"] = "TSThisType"; - AST_NODE_TYPES["TSTupleType"] = "TSTupleType"; - AST_NODE_TYPES["TSTypeAliasDeclaration"] = "TSTypeAliasDeclaration"; - AST_NODE_TYPES["TSTypeAnnotation"] = "TSTypeAnnotation"; - AST_NODE_TYPES["TSTypeAssertion"] = "TSTypeAssertion"; - AST_NODE_TYPES["TSTypeLiteral"] = "TSTypeLiteral"; - AST_NODE_TYPES["TSTypeOperator"] = "TSTypeOperator"; - AST_NODE_TYPES["TSTypeParameter"] = "TSTypeParameter"; - AST_NODE_TYPES["TSTypeParameterDeclaration"] = "TSTypeParameterDeclaration"; - AST_NODE_TYPES["TSTypeParameterInstantiation"] = "TSTypeParameterInstantiation"; - AST_NODE_TYPES["TSTypePredicate"] = "TSTypePredicate"; - AST_NODE_TYPES["TSTypeQuery"] = "TSTypeQuery"; - AST_NODE_TYPES["TSTypeReference"] = "TSTypeReference"; - AST_NODE_TYPES["TSUndefinedKeyword"] = "TSUndefinedKeyword"; - AST_NODE_TYPES["TSUnionType"] = "TSUnionType"; - AST_NODE_TYPES["TSUnknownKeyword"] = "TSUnknownKeyword"; - AST_NODE_TYPES["TSVoidKeyword"] = "TSVoidKeyword"; -})(AST_NODE_TYPES || (exports.AST_NODE_TYPES = AST_NODE_TYPES = {})); -var AST_TOKEN_TYPES; -(function (AST_TOKEN_TYPES) { - AST_TOKEN_TYPES["Boolean"] = "Boolean"; - AST_TOKEN_TYPES["Identifier"] = "Identifier"; - AST_TOKEN_TYPES["JSXIdentifier"] = "JSXIdentifier"; - AST_TOKEN_TYPES["JSXText"] = "JSXText"; - AST_TOKEN_TYPES["Keyword"] = "Keyword"; - AST_TOKEN_TYPES["Null"] = "Null"; - AST_TOKEN_TYPES["Numeric"] = "Numeric"; - AST_TOKEN_TYPES["Punctuator"] = "Punctuator"; - AST_TOKEN_TYPES["RegularExpression"] = "RegularExpression"; - AST_TOKEN_TYPES["String"] = "String"; - AST_TOKEN_TYPES["Template"] = "Template"; - AST_TOKEN_TYPES["Block"] = "Block"; - AST_TOKEN_TYPES["Line"] = "Line"; -})(AST_TOKEN_TYPES || (exports.AST_TOKEN_TYPES = AST_TOKEN_TYPES = {})); -//# sourceMappingURL=ast-spec.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map b/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map deleted file mode 100644 index e61423f0..00000000 --- a/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ast-spec.js","sourceRoot":"","sources":["../../src/generated/ast-spec.ts"],"names":[],"mappings":";AAAA;;;;;;;;gDAQgD;;;AAmFhD,IAAY,cA2KX;AA3KD,WAAY,cAAc;IACxB,uDAAqC,CAAA;IACrC,qDAAmC,CAAA;IACnC,+CAA6B,CAAA;IAC7B,qEAAmD,CAAA;IACnD,+DAA6C,CAAA;IAC7C,yDAAuC,CAAA;IACvC,qDAAmC,CAAA;IACnC,uDAAqC,CAAA;IACrC,mDAAiC,CAAA;IACjC,mDAAiC,CAAA;IACjC,mDAAiC,CA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node_modules/@typescript-eslint/types/dist/index.d.ts deleted file mode 100644 index 3d39147f..00000000 --- a/node_modules/@typescript-eslint/types/dist/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { AST_NODE_TYPES, AST_TOKEN_TYPES } from './generated/ast-spec'; -export * from './lib'; -export * from './parser-options'; -export * from './ts-estree'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/types/dist/index.d.ts.map b/node_modules/@typescript-eslint/types/dist/index.d.ts.map deleted file mode 100644 index 6a86c537..00000000 --- a/node_modules/@typescript-eslint/types/dist/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvE,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/types/dist/index.js b/node_modules/@typescript-eslint/types/dist/index.js deleted file mode 100644 index 00ff6a17..00000000 --- a/node_modules/@typescript-eslint/types/dist/index.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0; -var ast_spec_1 = require("./generated/ast-spec"); -Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return ast_spec_1.AST_NODE_TYPES; } }); -Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return ast_spec_1.AST_TOKEN_TYPES; } }); -__exportStar(require("./lib"), exports); -__exportStar(require("./parser-options"), exports); -__exportStar(require("./ts-estree"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/types/dist/index.js.map b/node_modules/@typescript-eslint/types/dist/index.js.map deleted file mode 100644 index 075ac156..00000000 --- a/node_modules/@typescript-eslint/types/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAAuE;AAA9D,0GAAA,cAAc,OAAA;AAAE,2GAAA,eAAe,OAAA;AACxC,wCAAsB;AACtB,mDAAiC;AACjC,8CAA4B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/types/dist/lib.d.ts b/node_modules/@typescript-eslint/types/dist/lib.d.ts deleted file mode 100644 index e4df3859..00000000 --- a/node_modules/@typescript-eslint/types/dist/lib.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -type Lib = 'es5' | 'es6' | 'es2015' | 'es7' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'es2023' | 'esnext' | 'dom' | 'dom.iterable' | 'webworker' | 'webworker.importscripts' | 'webworker.iterable' | 'scripthost' | 'es2015.core' | 'es2015.collection' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' | 'es2015.symbol' | 'es2015.symbol.wellknown' | 'es2016.array.include' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' | 'es2017.intl' | 'es2017.typedarrays' | 'es2018.asyncgenerator' | 'es2018.asynciterable' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' | 'es2019.array' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' | 'es2019.intl' | 'es2020.bigint' | 'es2020.date' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2020.intl' | 'es2020.number' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' | 'es2021.intl' | 'es2022.array' | 'es2022.error' | 'es2022.intl' | 'es2022.object' | 'es2022.sharedmemory' | 'es2022.string' | 'es2022.regexp' | 'es2023.array' | 'esnext.array' | 'esnext.symbol' | 'esnext.asynciterable' | 'esnext.intl' | 'esnext.bigint' | 'esnext.string' | 'esnext.promise' | 'esnext.weakref' | 'decorators' | 'decorators.legacy' | 'es2016.full' | 'es2017.full' | 'es2018.full' | 'es2019.full' | 'es2020.full' | 'es2021.full' | 'es2022.full' | 'es2023.full' | 'esnext.full' | 'lib'; -export { Lib }; -//# sourceMappingURL=lib.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/types/dist/lib.d.ts.map b/node_modules/@typescript-eslint/types/dist/lib.d.ts.map deleted file mode 100644 index 16cc22ef..00000000 --- a/node_modules/@typescript-eslint/types/dist/lib.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAKA,KAAK,GAAG,GACJ,KAAK,GACL,KAAK,GACL,QAAQ,GACR,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,KAAK,GACL,cAAc,GACd,WAAW,GACX,yBAAyB,GACzB,oBAAoB,GACpB,YAAY,GACZ,aAAa,GACb,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,eAAe,GACf,yBAAyB,GACzB,sBAAsB,GACtB,eAAe,GACf,qBAAqB,GACrB,eAAe,GACf,aAAa,GACb,oBAAoB,GACpB,uBAAuB,GACvB,sBAAsB,GACtB,aAAa,GACb,gBAAgB,GAChB,eAAe,GACf,cAAc,GACd,eAAe,GACf,eAAe,GACf,eAAe,GACf,aAAa,GACb,eAAe,GACf,aAAa,GACb,gBAAgB,GAChB,qBAAqB,GACrB,eAAe,GACf,yBAAyB,GACzB,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,gBAAgB,GAChB,aAAa,GACb,cAAc,GACd,cAAc,GACd,aAAa,GACb,eAAe,GACf,qBAAqB,GACrB,eAAe,GACf,eAAe,GACf,cAAc,GACd,cAAc,GACd,eAAe,GACf,sBAAsB,GACtB,aAAa,GACb,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,YAAY,GACZ,mBAAmB,GACnB,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,aAAa,GACb,KAAK,CAAC;AAEV,OAAO,EAAE,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/types/dist/lib.js b/node_modules/@typescript-eslint/types/dist/lib.js deleted file mode 100644 index b6f26257..00000000 --- a/node_modules/@typescript-eslint/types/dist/lib.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -// THIS CODE WAS AUTOMATICALLY GENERATED -// DO NOT EDIT THIS CODE BY HAND -// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE: -// npx nx generate-lib @typescript-eslint/scope-manager -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=lib.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/types/dist/lib.js.map b/node_modules/@typescript-eslint/types/dist/lib.js.map deleted file mode 100644 index 71d260aa..00000000 --- a/node_modules/@typescript-eslint/types/dist/lib.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lib.js","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":";AAAA,wCAAwC;AACxC,gCAAgC;AAChC,mEAAmE;AACnE,uDAAuD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/types/dist/parser-options.d.ts b/node_modules/@typescript-eslint/types/dist/parser-options.d.ts deleted file mode 100644 index 36d758d2..00000000 --- a/node_modules/@typescript-eslint/types/dist/parser-options.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import type { Program } from 'typescript'; -import type { Lib } from './lib'; -type DebugLevel = boolean | ('typescript-eslint' | 'eslint' | 'typescript')[]; -type CacheDurationSeconds = number | 'Infinity'; -type EcmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022; -type SourceType = 'script' | 'module'; -interface ParserOptions { - ecmaFeatures?: { - globalReturn?: boolean; - jsx?: boolean; - }; - ecmaVersion?: EcmaVersion | 'latest'; - jsxPragma?: string | null; - jsxFragmentName?: string | null; - lib?: Lib[]; - emitDecoratorMetadata?: boolean; - comment?: boolean; - debugLevel?: DebugLevel; - errorOnTypeScriptSyntacticAndSemanticIssues?: boolean; - errorOnUnknownASTType?: boolean; - EXPERIMENTAL_useSourceOfProjectReferenceRedirect?: boolean; - extraFileExtensions?: string[]; - filePath?: string; - loc?: boolean; - program?: Program; - project?: string | string[] | true; - projectFolderIgnoreList?: (string | RegExp)[]; - range?: boolean; - sourceType?: SourceType; - tokens?: boolean; - tsconfigRootDir?: string; - warnOnUnsupportedTypeScriptVersion?: boolean; - moduleResolver?: string; - cacheLifetime?: { - glob?: CacheDurationSeconds; - }; - [additionalProperties: string]: unknown; -} -export { CacheDurationSeconds, DebugLevel, EcmaVersion, ParserOptions, SourceType, }; -//# sourceMappingURL=parser-options.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map b/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map deleted file mode 100644 index 977d08e1..00000000 --- a/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser-options.d.ts","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,KAAK,UAAU,GAAG,OAAO,GAAG,CAAC,mBAAmB,GAAG,QAAQ,GAAG,YAAY,CAAC,EAAE,CAAC;AAC9E,KAAK,oBAAoB,GAAG,MAAM,GAAG,UAAU,CAAC;AAEhD,KAAK,WAAW,GACZ,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,CAAC;AAET,KAAK,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEtC,UAAU,aAAa;IACrB,YAAY,CAAC,EAAE;QACb,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,GAAG,CAAC,EAAE,OAAO,CAAC;KACf,CAAC;IACF,WAAW,CAAC,EAAE,WAAW,GAAG,QAAQ,CAAC;IAGrC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;IAGZ,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAGhC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,2CAA2C,CAAC,EAAE,OAAO,CAAC;IACtD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,gDAAgD,CAAC,EAAE,OAAO,CAAC;IAC3D,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAC;IACnC,uBAAuB,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC9C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kCAAkC,CAAC,EAAE,OAAO,CAAC;IAC7C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE;QACd,IAAI,CAAC,EAAE,oBAAoB,CAAC;KAC7B,CAAC;IAEF,CAAC,oBAAoB,EAAE,MAAM,GAAG,OAAO,CAAC;CACzC;AAED,OAAO,EACL,oBAAoB,EACpB,UAAU,EACV,WAAW,EACX,aAAa,EACb,UAAU,GACX,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/types/dist/parser-options.js b/node_modules/@typescript-eslint/types/dist/parser-options.js deleted file mode 100644 index 66f40a29..00000000 --- a/node_modules/@typescript-eslint/types/dist/parser-options.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=parser-options.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/types/dist/parser-options.js.map b/node_modules/@typescript-eslint/types/dist/parser-options.js.map deleted file mode 100644 index 22b7b8ab..00000000 --- a/node_modules/@typescript-eslint/types/dist/parser-options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser-options.js","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts b/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts deleted file mode 100644 index d37d795a..00000000 --- a/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type * as TSESTree from './generated/ast-spec'; -declare module './generated/ast-spec' { - interface BaseNode { - parent?: TSESTree.Node; - } -} -export * as TSESTree from './generated/ast-spec'; -//# sourceMappingURL=ts-estree.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map b/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map deleted file mode 100644 index 1dda41e4..00000000 --- a/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ts-estree.d.ts","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,QAAQ,MAAM,sBAAsB,CAAC;AAGtD,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,MAAM,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC;KACxB;CAYF;AAED,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/types/dist/ts-estree.js b/node_modules/@typescript-eslint/types/dist/ts-estree.js deleted file mode 100644 index e0dc7c61..00000000 --- a/node_modules/@typescript-eslint/types/dist/ts-estree.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSESTree = void 0; -exports.TSESTree = __importStar(require("./generated/ast-spec")); -//# sourceMappingURL=ts-estree.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/types/dist/ts-estree.js.map b/node_modules/@typescript-eslint/types/dist/ts-estree.js.map deleted file mode 100644 index bc1ab657..00000000 --- a/node_modules/@typescript-eslint/types/dist/ts-estree.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ts-estree.js","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,iEAAiD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ast-converter.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ast-converter.d.ts deleted file mode 100644 index 3c26eec9..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ast-converter.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { SourceFile } from 'typescript'; -import { ASTMaps } from './convert'; -import { ParseSettings } from './parseSettings'; -import { TSESTree } from './ts-estree'; -export declare function astConverter(ast: SourceFile, parseSettings: ParseSettings, shouldPreserveNodeMaps: boolean): { - estree: TSESTree.Program; - astMaps: ASTMaps; -}; -//# sourceMappingURL=ast-converter.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/clear-caches.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/clear-caches.d.ts deleted file mode 100644 index 7e85085b..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/clear-caches.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Clears all of the internal caches. - * Generally you shouldn't need or want to use this. - * Examples of intended uses: - * - In tests to reset parser state to keep tests isolated. - * - In custom lint tooling that iteratively lints one project at a time to prevent OOMs. - */ -export declare function clearCaches(): void; -export declare const clearProgramCache: typeof clearCaches; -//# sourceMappingURL=clear-caches.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/convert-comments.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/convert-comments.d.ts deleted file mode 100644 index aab88d88..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/convert-comments.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import * as ts from 'typescript'; -import { TSESTree } from './ts-estree'; -/** - * Convert all comments for the given AST. - * @param ast the AST object - * @param code the TypeScript code - * @returns the converted ESTreeComment - * @private - */ -export declare function convertComments(ast: ts.SourceFile, code: string): TSESTree.Comment[]; -//# sourceMappingURL=convert-comments.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/convert.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/convert.d.ts deleted file mode 100644 index e6c72b7e..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/convert.d.ts +++ /dev/null @@ -1,159 +0,0 @@ -import * as ts from 'typescript'; -import { TSError } from './node-utils'; -import { ParserWeakMap, ParserWeakMapESTreeToTSNode } from './parser-options'; -import { SemanticOrSyntacticError } from './semantic-or-syntactic-errors'; -import { TSESTree, TSNode } from './ts-estree'; -interface ConverterOptions { - errorOnUnknownASTType: boolean; - shouldPreserveNodeMaps: boolean; -} -/** - * Extends and formats a given error object - * @param error the error object - * @returns converted error object - */ -export declare function convertError(error: ts.DiagnosticWithLocation | SemanticOrSyntacticError): TSError; -export interface ASTMaps { - esTreeNodeToTSNodeMap: ParserWeakMapESTreeToTSNode; - tsNodeToESTreeNodeMap: ParserWeakMap; -} -export declare class Converter { - private readonly ast; - private readonly options; - private readonly esTreeNodeToTSNodeMap; - private readonly tsNodeToESTreeNodeMap; - private allowPattern; - private inTypeMode; - /** - * Converts a TypeScript node into an ESTree node - * @param ast the full TypeScript AST - * @param options additional options for the conversion - * @returns the converted ESTreeNode - */ - constructor(ast: ts.SourceFile, options: ConverterOptions); - getASTMaps(): ASTMaps; - convertProgram(): TSESTree.Program; - /** - * Converts a TypeScript node into an ESTree node. - * @param node the child ts.Node - * @param parent parentNode - * @param inTypeMode flag to determine if we are in typeMode - * @param allowPattern flag to determine if patterns are allowed - * @returns the converted ESTree node - */ - private converter; - /** - * Fixes the exports of the given ts.Node - * @param node the ts.Node - * @param result result - * @returns the ESTreeNode with fixed exports - */ - private fixExports; - /** - * Register specific TypeScript node into map with first ESTree node provided - */ - private registerTSNodeInNodeMap; - /** - * Converts a TypeScript node into an ESTree node. - * @param child the child ts.Node - * @param parent parentNode - * @returns the converted ESTree node - */ - private convertPattern; - /** - * Converts a TypeScript node into an ESTree node. - * @param child the child ts.Node - * @param parent parentNode - * @returns the converted ESTree node - */ - private convertChild; - /** - * Converts a TypeScript node into an ESTree node. - * @param child the child ts.Node - * @param parent parentNode - * @returns the converted ESTree node - */ - private convertType; - private createNode; - private convertBindingNameWithTypeAnnotation; - /** - * Converts a child into a type annotation. This creates an intermediary - * TypeAnnotation node to match what Flow does. - * @param child The TypeScript AST node to convert. - * @param parent parentNode - * @returns The type annotation node. - */ - private convertTypeAnnotation; - /** - * Coverts body Nodes and add a directive field to StringLiterals - * @param nodes of ts.Node - * @param parent parentNode - * @returns Array of body statements - */ - private convertBodyExpressions; - /** - * Converts a ts.Node's typeArguments to TSTypeParameterInstantiation node - * @param typeArguments ts.NodeArray typeArguments - * @param node parent used to create this node - * @returns TypeParameterInstantiation node - */ - private convertTypeArgumentsToTypeParameters; - /** - * Converts a ts.Node's typeParameters to TSTypeParameterDeclaration node - * @param typeParameters ts.Node typeParameters - * @returns TypeParameterDeclaration node - */ - private convertTSTypeParametersToTypeParametersDeclaration; - /** - * Converts an array of ts.Node parameters into an array of ESTreeNode params - * @param parameters An array of ts.Node params to be converted - * @returns an array of converted ESTreeNode params - */ - private convertParameters; - private convertChainExpression; - /** - * For nodes that are copied directly from the TypeScript AST into - * ESTree mostly as-is. The only difference is the addition of a type - * property instead of a kind property. Recursively copies all children. - */ - private deeplyCopy; - private convertJSXIdentifier; - private convertJSXNamespaceOrIdentifier; - /** - * Converts a TypeScript JSX node.tagName into an ESTree node.name - * @param node the tagName object from a JSX ts.Node - * @param parent - * @returns the converted ESTree name object - */ - private convertJSXTagName; - private convertMethodSignature; - private convertAssertClasue; - /** - * Applies the given TS modifiers to the given result object. - * - * This method adds not standardized `modifiers` property in nodes - * - * @param result - * @param modifiers original ts.Nodes from the node.modifiers array - * @returns the current result object will be mutated - */ - private applyModifiersToResult; - /** - * Uses the provided range location to adjust the location data of the given Node - * @param result The node that will have its location data mutated - * @param childRange The child node range used to expand location - */ - private fixParentLocation; - private assertModuleSpecifier; - /** - * Converts a TypeScript node into an ESTree node. - * The core of the conversion logic: - * Identify and convert each relevant TypeScript SyntaxKind - * @param node the child ts.Node - * @param parent parentNode - * @returns the converted ESTree node - */ - private convertNode; -} -export {}; -//# sourceMappingURL=convert.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/WatchCompilerHostOfConfigFile.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/WatchCompilerHostOfConfigFile.d.ts deleted file mode 100644 index 8f05e92b..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/WatchCompilerHostOfConfigFile.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import * as ts from 'typescript'; -interface DirectoryStructureHost { - readDirectory?(path: string, extensions?: ReadonlyArray, exclude?: ReadonlyArray, include?: ReadonlyArray, depth?: number): string[]; -} -interface CachedDirectoryStructureHost extends DirectoryStructureHost { - readDirectory(path: string, extensions?: ReadonlyArray, exclude?: ReadonlyArray, include?: ReadonlyArray, depth?: number): string[]; -} -interface WatchCompilerHostOfConfigFile extends ts.WatchCompilerHostOfConfigFile { - onCachedDirectoryStructureHostCreate(host: CachedDirectoryStructureHost): void; - extraFileExtensions?: readonly ts.FileExtensionInfo[]; -} -export { WatchCompilerHostOfConfigFile }; -//# sourceMappingURL=WatchCompilerHostOfConfigFile.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createDefaultProgram.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createDefaultProgram.d.ts deleted file mode 100644 index 054b4514..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createDefaultProgram.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { ParseSettings } from '../parseSettings'; -import { ASTAndProgram } from './shared'; -/** - * @param parseSettings Internal settings for parsing the file - * @returns If found, returns the source file corresponding to the code and the containing program - */ -declare function createDefaultProgram(parseSettings: ParseSettings): ASTAndProgram | undefined; -export { createDefaultProgram }; -//# sourceMappingURL=createDefaultProgram.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createIsolatedProgram.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createIsolatedProgram.d.ts deleted file mode 100644 index a0139cae..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createIsolatedProgram.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { ParseSettings } from '../parseSettings'; -import { ASTAndProgram } from './shared'; -/** - * @param code The code of the file being linted - * @returns Returns a new source file and program corresponding to the linted code - */ -declare function createIsolatedProgram(parseSettings: ParseSettings): ASTAndProgram; -export { createIsolatedProgram }; -//# sourceMappingURL=createIsolatedProgram.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createProjectProgram.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createProjectProgram.d.ts deleted file mode 100644 index 4dde7c3e..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createProjectProgram.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { ParseSettings } from '../parseSettings'; -import { ASTAndProgram } from './shared'; -/** - * @param parseSettings Internal settings for parsing the file - * @returns If found, the source file corresponding to the code and the containing program - */ -declare function createProjectProgram(parseSettings: ParseSettings): ASTAndProgram | undefined; -export { createProjectProgram }; -//# sourceMappingURL=createProjectProgram.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createSourceFile.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createSourceFile.d.ts deleted file mode 100644 index 9f294e49..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/createSourceFile.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import * as ts from 'typescript'; -import { ParseSettings } from '../parseSettings'; -declare function createSourceFile(parseSettings: ParseSettings): ts.SourceFile; -export { createSourceFile }; -//# sourceMappingURL=createSourceFile.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/describeFilePath.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/describeFilePath.d.ts deleted file mode 100644 index 88ae9a7a..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/describeFilePath.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function describeFilePath(filePath: string, tsconfigRootDir: string): string; -//# sourceMappingURL=describeFilePath.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/getScriptKind.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/getScriptKind.d.ts deleted file mode 100644 index c8e80746..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/getScriptKind.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import * as ts from 'typescript'; -declare function getScriptKind(filePath: string, jsx: boolean): ts.ScriptKind; -declare function getLanguageVariant(scriptKind: ts.ScriptKind): ts.LanguageVariant; -export { getScriptKind, getLanguageVariant }; -//# sourceMappingURL=getScriptKind.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/getWatchProgramsForProjects.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/getWatchProgramsForProjects.d.ts deleted file mode 100644 index f392fda6..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/getWatchProgramsForProjects.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import * as ts from 'typescript'; -import { ParseSettings } from '../parseSettings'; -/** - * Clear all of the parser caches. - * This should only be used in testing to ensure the parser is clean between tests. - */ -declare function clearWatchCaches(): void; -/** - * Calculate project environments using options provided by consumer and paths from config - * @param parseSettings Internal settings for parsing the file - * @returns The programs corresponding to the supplied tsconfig paths - */ -declare function getWatchProgramsForProjects(parseSettings: ParseSettings): ts.Program[]; -export { clearWatchCaches, getWatchProgramsForProjects }; -//# sourceMappingURL=getWatchProgramsForProjects.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/shared.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/shared.d.ts deleted file mode 100644 index 8ba2fb2d..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/shared.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Program } from 'typescript'; -import * as ts from 'typescript'; -import { ModuleResolver } from '../parser-options'; -import { ParseSettings } from '../parseSettings'; -interface ASTAndProgram { - ast: ts.SourceFile; - program: ts.Program; -} -/** - * Compiler options required to avoid critical functionality issues - */ -declare const CORE_COMPILER_OPTIONS: ts.CompilerOptions; -declare function createDefaultCompilerOptionsFromExtra(parseSettings: ParseSettings): ts.CompilerOptions; -type CanonicalPath = string & { - __brand: unknown; -}; -declare function getCanonicalFileName(filePath: string): CanonicalPath; -declare function ensureAbsolutePath(p: string, tsconfigRootDir: string): string; -declare function canonicalDirname(p: CanonicalPath): CanonicalPath; -declare function getAstFromProgram(currentProgram: Program, parseSettings: ParseSettings): ASTAndProgram | undefined; -declare function getModuleResolver(moduleResolverPath: string): ModuleResolver; -/** - * Hash content for compare content. - * @param content hashed contend - * @returns hashed result - */ -declare function createHash(content: string): string; -export { ASTAndProgram, CORE_COMPILER_OPTIONS, canonicalDirname, CanonicalPath, createDefaultCompilerOptionsFromExtra, createHash, ensureAbsolutePath, getCanonicalFileName, getAstFromProgram, getModuleResolver, }; -//# sourceMappingURL=shared.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/useProvidedPrograms.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/useProvidedPrograms.d.ts deleted file mode 100644 index 17fafada..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/useProvidedPrograms.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import * as ts from 'typescript'; -import { ParseSettings } from '../parseSettings'; -import { ASTAndProgram } from './shared'; -declare function useProvidedPrograms(programInstances: Iterable, parseSettings: ParseSettings): ASTAndProgram | undefined; -/** - * Utility offered by parser to help consumers construct their own program instance. - * - * @param configFile the path to the tsconfig.json file, relative to `projectDirectory` - * @param projectDirectory the project directory to use as the CWD, defaults to `process.cwd()` - */ -declare function createProgramFromConfigFile(configFile: string, projectDirectory?: string): ts.Program; -export { useProvidedPrograms, createProgramFromConfigFile }; -//# sourceMappingURL=useProvidedPrograms.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/getModifiers.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/getModifiers.d.ts deleted file mode 100644 index 4e64431d..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/getModifiers.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import * as ts from 'typescript'; -export declare function getModifiers(node: ts.Node | null | undefined): undefined | ts.Modifier[]; -export declare function getDecorators(node: ts.Node | null | undefined): undefined | ts.Decorator[]; -//# sourceMappingURL=getModifiers.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/index.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/index.d.ts deleted file mode 100644 index 04dea082..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export { AST, parse, parseAndGenerateServices, parseWithNodeMaps, ParseAndGenerateServicesResult, ParseWithNodeMapsResult, } from './parser'; -export { ParserServices, TSESTreeOptions } from './parser-options'; -export { simpleTraverse } from './simple-traverse'; -export * from './ts-estree'; -export { createProgramFromConfigFile as createProgram } from './create-program/useProvidedPrograms'; -export * from './create-program/getScriptKind'; -export { typescriptVersionIsAtLeast } from './version-check'; -export * from './getModifiers'; -export * from './clear-caches'; -export { visitorKeys } from '@typescript-eslint/visitor-keys'; -export declare const version: string; -//# sourceMappingURL=index.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/jsx/xhtml-entities.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/jsx/xhtml-entities.d.ts deleted file mode 100644 index c7ce3754..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/jsx/xhtml-entities.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const xhtmlEntities: Record; -//# sourceMappingURL=xhtml-entities.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/node-utils.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/node-utils.d.ts deleted file mode 100644 index 90411a7a..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/node-utils.d.ts +++ /dev/null @@ -1,231 +0,0 @@ -import * as ts from 'typescript'; -import { TSESTree } from './ts-estree'; -import { AST_NODE_TYPES, AST_TOKEN_TYPES } from './ts-estree'; -declare const SyntaxKind: typeof ts.SyntaxKind; -interface TokenToText extends TSESTree.PunctuatorTokenToText { - [SyntaxKind.ImportKeyword]: 'import'; - [SyntaxKind.InKeyword]: 'in'; - [SyntaxKind.InstanceOfKeyword]: 'instanceof'; - [SyntaxKind.NewKeyword]: 'new'; - [SyntaxKind.KeyOfKeyword]: 'keyof'; - [SyntaxKind.ReadonlyKeyword]: 'readonly'; - [SyntaxKind.UniqueKeyword]: 'unique'; -} -/** - * Returns true if the given ts.Token is the assignment operator - * @param operator the operator token - * @returns is assignment - */ -export declare function isAssignmentOperator(operator: ts.Token): boolean; -/** - * Returns true if the given ts.Token is a logical operator - * @param operator the operator token - * @returns is a logical operator - */ -export declare function isLogicalOperator(operator: ts.Token): boolean; -/** - * Returns the string form of the given TSToken SyntaxKind - * @param kind the token's SyntaxKind - * @returns the token applicable token as a string - */ -export declare function getTextForTokenKind(kind: T): T extends keyof TokenToText ? TokenToText[T] : string | undefined; -/** - * Returns true if the given ts.Node is a valid ESTree class member - * @param node TypeScript AST node - * @returns is valid ESTree class member - */ -export declare function isESTreeClassMember(node: ts.Node): boolean; -/** - * Checks if a ts.Node has a modifier - * @param modifierKind TypeScript SyntaxKind modifier - * @param node TypeScript AST node - * @returns has the modifier specified - */ -export declare function hasModifier(modifierKind: ts.KeywordSyntaxKind, node: ts.Node): boolean; -/** - * Get last last modifier in ast - * @param node TypeScript AST node - * @returns returns last modifier if present or null - */ -export declare function getLastModifier(node: ts.Node): ts.Modifier | null; -/** - * Returns true if the given ts.Token is a comma - * @param token the TypeScript token - * @returns is comma - */ -export declare function isComma(token: ts.Node): token is ts.Token; -/** - * Returns true if the given ts.Node is a comment - * @param node the TypeScript node - * @returns is comment - */ -export declare function isComment(node: ts.Node): boolean; -/** - * Returns true if the given ts.Node is a JSDoc comment - * @param node the TypeScript node - * @returns is JSDoc comment - */ -export declare function isJSDocComment(node: ts.Node): node is ts.JSDoc; -/** - * Returns the binary expression type of the given ts.Token - * @param operator the operator token - * @returns the binary expression type - */ -export declare function getBinaryExpressionType(operator: ts.Token): AST_NODE_TYPES.AssignmentExpression | AST_NODE_TYPES.LogicalExpression | AST_NODE_TYPES.BinaryExpression; -/** - * Returns line and column data for the given positions, - * @param pos position to check - * @param ast the AST object - * @returns line and column - */ -export declare function getLineAndCharacterFor(pos: number, ast: ts.SourceFile): TSESTree.Position; -/** - * Returns line and column data for the given start and end positions, - * for the given AST - * @param start start data - * @param end end data - * @param ast the AST object - * @returns the loc data - */ -export declare function getLocFor(start: number, end: number, ast: ts.SourceFile): TSESTree.SourceLocation; -/** - * Check whatever node can contain directive - * @param node - * @returns returns true if node can contain directive - */ -export declare function canContainDirective(node: ts.SourceFile | ts.Block | ts.ModuleBlock | ts.ClassStaticBlockDeclaration): boolean; -/** - * Returns range for the given ts.Node - * @param node the ts.Node or ts.Token - * @param ast the AST object - * @returns the range data - */ -export declare function getRange(node: ts.Node, ast: ts.SourceFile): [ - number, - number -]; -/** - * Returns true if a given ts.Node is a token - * @param node the ts.Node - * @returns is a token - */ -export declare function isToken(node: ts.Node): node is ts.Token; -/** - * Returns true if a given ts.Node is a JSX token - * @param node ts.Node to be checked - * @returns is a JSX token - */ -export declare function isJSXToken(node: ts.Node): boolean; -/** - * Returns the declaration kind of the given ts.Node - * @param node TypeScript AST node - * @returns declaration kind - */ -export declare function getDeclarationKind(node: ts.VariableDeclarationList): 'let' | 'const' | 'var'; -/** - * Gets a ts.Node's accessibility level - * @param node The ts.Node - * @returns accessibility "public", "protected", "private", or null - */ -export declare function getTSNodeAccessibility(node: ts.Node): 'public' | 'protected' | 'private' | null; -/** - * Finds the next token based on the previous one and its parent - * Had to copy this from TS instead of using TS's version because theirs doesn't pass the ast to getChildren - * @param previousToken The previous TSToken - * @param parent The parent TSNode - * @param ast The TS AST - * @returns the next TSToken - */ -export declare function findNextToken(previousToken: ts.TextRange, parent: ts.Node, ast: ts.SourceFile): ts.Node | undefined; -/** - * Find the first matching ancestor based on the given predicate function. - * @param node The current ts.Node - * @param predicate The predicate function to apply to each checked ancestor - * @returns a matching parent ts.Node - */ -export declare function findFirstMatchingAncestor(node: ts.Node, predicate: (node: ts.Node) => boolean): ts.Node | undefined; -/** - * Returns true if a given ts.Node has a JSX token within its hierarchy - * @param node ts.Node to be checked - * @returns has JSX ancestor - */ -export declare function hasJSXAncestor(node: ts.Node): boolean; -/** - * Unescape the text content of string literals, e.g. & -> & - * @param text The escaped string literal text. - * @returns The unescaped string literal text. - */ -export declare function unescapeStringLiteralText(text: string): string; -/** - * Returns true if a given ts.Node is a computed property - * @param node ts.Node to be checked - * @returns is Computed Property - */ -export declare function isComputedProperty(node: ts.Node): node is ts.ComputedPropertyName; -/** - * Returns true if a given ts.Node is optional (has QuestionToken) - * @param node ts.Node to be checked - * @returns is Optional - */ -export declare function isOptional(node: { - questionToken?: ts.QuestionToken; -}): boolean; -/** - * Returns true if the node is an optional chain node - */ -export declare function isChainExpression(node: TSESTree.Node): node is TSESTree.ChainExpression; -/** - * Returns true of the child of property access expression is an optional chain - */ -export declare function isChildUnwrappableOptionalChain(node: ts.PropertyAccessExpression | ts.ElementAccessExpression | ts.CallExpression | ts.NonNullExpression, child: TSESTree.Node): boolean; -/** - * Returns the type of a given ts.Token - * @param token the ts.Token - * @returns the token type - */ -export declare function getTokenType(token: ts.Identifier | ts.Token): Exclude; -/** - * Extends and formats a given ts.Token, for a given AST - * @param token the ts.Token - * @param ast the AST object - * @returns the converted Token - */ -export declare function convertToken(token: ts.Token, ast: ts.SourceFile): TSESTree.Token; -/** - * Converts all tokens for the given AST - * @param ast the AST object - * @returns the converted Tokens - */ -export declare function convertTokens(ast: ts.SourceFile): TSESTree.Token[]; -export declare class TSError extends Error { - readonly fileName: string; - readonly index: number; - readonly lineNumber: number; - readonly column: number; - constructor(message: string, fileName: string, index: number, lineNumber: number, column: number); -} -/** - * @param ast the AST object - * @param start the index at which the error starts - * @param message the error message - * @returns converted error object - */ -export declare function createError(ast: ts.SourceFile, start: number, message: string): TSError; -/** - * @param n the TSNode - * @param ast the TS AST - */ -export declare function nodeHasTokens(n: ts.Node, ast: ts.SourceFile): boolean; -/** - * Like `forEach`, but suitable for use with numbers and strings (which may be falsy). - * @template T - * @template U - * @param array - * @param callback - */ -export declare function firstDefined(array: readonly T[] | undefined, callback: (element: T, index: number) => U | undefined): U | undefined; -export declare function identifierIsThisKeyword(id: ts.Identifier): boolean; -export declare function isThisIdentifier(node: ts.Node | undefined): node is ts.Identifier; -export declare function isThisInTypeQuery(node: ts.Node): boolean; -export {}; -//# sourceMappingURL=node-utils.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/ExpiringCache.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/ExpiringCache.d.ts deleted file mode 100644 index 70723868..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/ExpiringCache.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { CacheDurationSeconds } from '@typescript-eslint/types'; -export declare const DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = 30; -export interface CacheLike { - get(key: Key): Value | void; - set(key: Key, value: Value): this; -} -/** - * A map with key-level expiration. - */ -export declare class ExpiringCache implements CacheLike { - private "ExpiringCache.#private"; - constructor(cacheDurationSeconds: CacheDurationSeconds); - set(key: TKey, value: TValue): this; - get(key: TKey): TValue | undefined; - clear(): void; -} -//# sourceMappingURL=ExpiringCache.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/createParseSettings.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/createParseSettings.d.ts deleted file mode 100644 index 9dad06f8..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/createParseSettings.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { TSESTreeOptions } from '../parser-options'; -import { MutableParseSettings } from './index'; -export declare function createParseSettings(code: string, options?: Partial): MutableParseSettings; -export declare function clearTSConfigMatchCache(): void; -//# sourceMappingURL=createParseSettings.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/getProjectConfigFiles.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/getProjectConfigFiles.d.ts deleted file mode 100644 index a9491030..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/getProjectConfigFiles.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ParseSettings } from '.'; -/** - * Checks for a matching TSConfig to a file including its parent directories, - * permanently caching results under each directory it checks. - * - * @remarks - * We don't (yet!) have a way to attach file watchers on disk, but still need to - * cache file checks for rapid subsequent calls to fs.existsSync. See discussion - * in https://github.com/typescript-eslint/typescript-eslint/issues/101. - */ -export declare function getProjectConfigFiles(parseSettings: Pick, project: string | string[] | true | undefined): string[] | undefined; -//# sourceMappingURL=getProjectConfigFiles.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/index.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/index.d.ts deleted file mode 100644 index 7e5c1f64..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/index.d.ts +++ /dev/null @@ -1,107 +0,0 @@ -import * as ts from 'typescript'; -import { CanonicalPath } from '../create-program/shared'; -import { TSESTree } from '../ts-estree'; -import { CacheLike } from './ExpiringCache'; -type DebugModule = 'typescript-eslint' | 'eslint' | 'typescript'; -/** - * Internal settings used by the parser to run on a file. - */ -export interface MutableParseSettings { - /** - * Code of the file being parsed. - */ - code: string; - /** - * Whether the `comment` parse option is enabled. - */ - comment: boolean; - /** - * If the `comment` parse option is enabled, retrieved comments. - */ - comments: TSESTree.Comment[]; - /** - * Whether to create a TypeScript program if one is not provided. - */ - createDefaultProgram: boolean; - /** - * Which debug areas should be logged. - */ - debugLevel: Set; - /** - * Whether to error if TypeScript reports a semantic or syntactic error diagnostic. - */ - errorOnTypeScriptSyntacticAndSemanticIssues: boolean; - /** - * Whether to error if an unknown AST node type is encountered. - */ - errorOnUnknownASTType: boolean; - /** - * Whether TS should use the source files for referenced projects instead of the compiled .d.ts files. - * - * @remarks - * This feature is not yet optimized, and is likely to cause OOMs for medium to large projects. - * This flag REQUIRES at least TS v3.9, otherwise it does nothing. - */ - EXPERIMENTAL_useSourceOfProjectReferenceRedirect: boolean; - /** - * Any non-standard file extensions which will be parsed. - */ - extraFileExtensions: string[]; - /** - * Path of the file being parsed. - */ - filePath: string; - /** - * Whether parsing of JSX is enabled. - * - * @remarks The applicable file extension is still required. - */ - jsx: boolean; - /** - * Whether to add `loc` information to each node. - */ - loc: boolean; - /** - * Log function, if not `console.log`. - */ - log: (message: string) => void; - /** - * Path for a module resolver to use for the compiler host's `resolveModuleNames`. - */ - moduleResolver: string; - /** - * Whether two-way AST node maps are preserved during the AST conversion process. - */ - preserveNodeMaps?: boolean; - /** - * One or more instances of TypeScript Program objects to be used for type information. - */ - programs: null | Iterable; - /** - * Normalized paths to provided project paths. - */ - projects: readonly CanonicalPath[]; - /** - * Whether to add the `range` property to AST nodes. - */ - range: boolean; - /** - * Whether this is part of a single run, rather than a long-running process. - */ - singleRun: boolean; - /** - * If the `tokens` parse option is enabled, retrieved tokens. - */ - tokens: null | TSESTree.Token[]; - /** - * Caches searches for TSConfigs from project directories. - */ - tsconfigMatchCache: CacheLike; - /** - * The absolute path to the root directory for all provided `project`s. - */ - tsconfigRootDir: string; -} -export type ParseSettings = Readonly; -export {}; -//# sourceMappingURL=index.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/inferSingleRun.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/inferSingleRun.d.ts deleted file mode 100644 index 385471fd..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/inferSingleRun.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { TSESTreeOptions } from '../parser-options'; -/** - * ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts, - * such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback - * on a file in an IDE). - * - * When typescript-eslint handles TypeScript Program management behind the scenes, this distinction - * is important because there is significant overhead to managing the so called Watch Programs - * needed for the long-running use-case. We therefore use the following logic to figure out which - * of these contexts applies to the current execution. - * - * @returns Whether this is part of a single run, rather than a long-running process. - */ -export declare function inferSingleRun(options: TSESTreeOptions | undefined): boolean; -//# sourceMappingURL=inferSingleRun.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/resolveProjectList.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/resolveProjectList.d.ts deleted file mode 100644 index 9142cd84..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/resolveProjectList.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { CanonicalPath } from '../create-program/shared'; -import { TSESTreeOptions } from '../parser-options'; -export declare function clearGlobCache(): void; -/** - * Normalizes, sanitizes, resolves and filters the provided project paths - */ -export declare function resolveProjectList(options: Readonly<{ - cacheLifetime?: TSESTreeOptions['cacheLifetime']; - project: TSESTreeOptions['project']; - projectFolderIgnoreList: TSESTreeOptions['projectFolderIgnoreList']; - singleRun: boolean; - tsconfigRootDir: string; -}>): readonly CanonicalPath[]; -/** - * Exported for testing purposes only - * @internal - */ -export declare function clearGlobResolutionCache(): void; -//# sourceMappingURL=resolveProjectList.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/warnAboutTSVersion.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/warnAboutTSVersion.d.ts deleted file mode 100644 index 1110f75a..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/warnAboutTSVersion.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { ParseSettings } from './index'; -export declare function warnAboutTSVersion(parseSettings: ParseSettings): void; -//# sourceMappingURL=warnAboutTSVersion.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser-options.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser-options.d.ts deleted file mode 100644 index 6dba6870..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser-options.d.ts +++ /dev/null @@ -1,181 +0,0 @@ -import { CacheDurationSeconds, DebugLevel } from '@typescript-eslint/types'; -import * as ts from 'typescript'; -import { TSESTree, TSESTreeToTSNode, TSNode, TSToken } from './ts-estree'; -interface ParseOptions { - /** - * create a top-level comments array containing all comments - */ - comment?: boolean; - /** - * An array of modules to turn explicit debugging on for. - * - 'typescript-eslint' is the same as setting the env var `DEBUG=typescript-eslint:*` - * - 'eslint' is the same as setting the env var `DEBUG=eslint:*` - * - 'typescript' is the same as setting `extendedDiagnostics: true` in your tsconfig compilerOptions - * - * For convenience, also supports a boolean: - * - true === ['typescript-eslint'] - * - false === [] - */ - debugLevel?: DebugLevel; - /** - * Cause the parser to error if it encounters an unknown AST node type (useful for testing). - * This case only usually occurs when TypeScript releases new features. - */ - errorOnUnknownASTType?: boolean; - /** - * Absolute (or relative to `cwd`) path to the file being parsed. - */ - filePath?: string; - /** - * Enable parsing of JSX. - * For more details, see https://www.typescriptlang.org/docs/handbook/jsx.html - * - * NOTE: this setting does not effect known file types (.js, .cjs, .mjs, .jsx, .ts, .mts, .cts, .tsx, .json) because the - * TypeScript compiler has its own internal handling for known file extensions. - * - * For the exact behavior, see https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/parser#parseroptionsecmafeaturesjsx - */ - jsx?: boolean; - /** - * Controls whether the `loc` information to each node. - * The `loc` property is an object which contains the exact line/column the node starts/ends on. - * This is similar to the `range` property, except it is line/column relative. - */ - loc?: boolean; - loggerFn?: ((message: string) => void) | false; - /** - * Controls whether the `range` property is included on AST nodes. - * The `range` property is a [number, number] which indicates the start/end index of the node in the file contents. - * This is similar to the `loc` property, except this is the absolute index. - */ - range?: boolean; - /** - * Set to true to create a top-level array containing all tokens from the file. - */ - tokens?: boolean; -} -interface ParseAndGenerateServicesOptions extends ParseOptions { - /** - * Causes the parser to error if the TypeScript compiler returns any unexpected syntax/semantic errors. - */ - errorOnTypeScriptSyntacticAndSemanticIssues?: boolean; - /** - * ***EXPERIMENTAL FLAG*** - Use this at your own risk. - * - * Causes TS to use the source files for referenced projects instead of the compiled .d.ts files. - * This feature is not yet optimized, and is likely to cause OOMs for medium to large projects. - * - * This flag REQUIRES at least TS v3.9, otherwise it does nothing. - * - * See: https://github.com/typescript-eslint/typescript-eslint/issues/2094 - */ - EXPERIMENTAL_useSourceOfProjectReferenceRedirect?: boolean; - /** - * When `project` is provided, this controls the non-standard file extensions which will be parsed. - * It accepts an array of file extensions, each preceded by a `.`. - */ - extraFileExtensions?: string[]; - /** - * Absolute (or relative to `tsconfigRootDir`) path to the file being parsed. - * When `project` is provided, this is required, as it is used to fetch the file from the TypeScript compiler's cache. - */ - filePath?: string; - /** - * Allows the user to control whether or not two-way AST node maps are preserved - * during the AST conversion process. - * - * By default: the AST node maps are NOT preserved, unless `project` has been specified, - * in which case the maps are made available on the returned `parserServices`. - * - * NOTE: If `preserveNodeMaps` is explicitly set by the user, it will be respected, - * regardless of whether or not `project` is in use. - */ - preserveNodeMaps?: boolean; - /** - * Absolute (or relative to `tsconfigRootDir`) paths to the tsconfig(s), - * or `true` to find the nearest tsconfig.json to the file. - * If this is provided, type information will be returned. - */ - project?: string | string[] | true; - /** - * If you provide a glob (or globs) to the project option, you can use this option to ignore certain folders from - * being matched by the globs. - * This accepts an array of globs to ignore. - * - * By default, this is set to ["**\/node_modules/**"] - */ - projectFolderIgnoreList?: string[]; - /** - * The absolute path to the root directory for all provided `project`s. - */ - tsconfigRootDir?: string; - /** - * An array of one or more instances of TypeScript Program objects to be used for type information. - * This overrides any program or programs that would have been computed from the `project` option. - * All linted files must be part of the provided program(s). - */ - programs?: ts.Program[]; - /** - *************************************************************************************** - * IT IS RECOMMENDED THAT YOU DO NOT USE THIS OPTION, AS IT CAUSES PERFORMANCE ISSUES. * - *************************************************************************************** - * - * When passed with `project`, this allows the parser to create a catch-all, default program. - * This means that if the parser encounters a file not included in any of the provided `project`s, - * it will not error, but will instead parse the file and its dependencies in a new program. - */ - createDefaultProgram?: boolean; - /** - * ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts, - * such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback - * on a file in an IDE). - * - * When typescript-eslint handles TypeScript Program management behind the scenes, this distinction - * is important because there is significant overhead to managing the so called Watch Programs - * needed for the long-running use-case. - * - * When allowAutomaticSingleRunInference is enabled, we will use common heuristics to infer - * whether or not ESLint is being used as part of a single run. - */ - allowAutomaticSingleRunInference?: boolean; - /** - * Granular control of the expiry lifetime of our internal caches. - * You can specify the number of seconds as an integer number, or the string - * 'Infinity' if you never want the cache to expire. - * - * By default cache entries will be evicted after 30 seconds, or will persist - * indefinitely if `allowAutomaticSingleRunInference = true` AND the parser - * infers that it is a single run. - */ - cacheLifetime?: { - /** - * Glob resolution for `parserOptions.project` values. - */ - glob?: CacheDurationSeconds; - }; - /** - * Path to a file exporting a custom `ModuleResolver`. - */ - moduleResolver?: string; -} -export type TSESTreeOptions = ParseAndGenerateServicesOptions; -export interface ParserWeakMap { - get(key: TKey): TValue; - has(key: unknown): boolean; -} -export interface ParserWeakMapESTreeToTSNode { - get(key: TKeyBase): TSESTreeToTSNode; - has(key: unknown): boolean; -} -export interface ParserServices { - program: ts.Program; - esTreeNodeToTSNodeMap: ParserWeakMapESTreeToTSNode; - tsNodeToESTreeNodeMap: ParserWeakMap; - hasFullTypeInformation: boolean; -} -export interface ModuleResolver { - version: 1; - resolveModuleNames(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ts.ResolvedProjectReference | undefined, options: ts.CompilerOptions): (ts.ResolvedModule | undefined)[]; -} -export {}; -//# sourceMappingURL=parser-options.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser.d.ts deleted file mode 100644 index 82f4a088..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ParserServices, TSESTreeOptions } from './parser-options'; -import { TSESTree } from './ts-estree'; -declare function clearProgramCache(): void; -interface EmptyObject { -} -type AST = TSESTree.Program & (T['tokens'] extends true ? { - tokens: TSESTree.Token[]; -} : EmptyObject) & (T['comment'] extends true ? { - comments: TSESTree.Comment[]; -} : EmptyObject); -interface ParseAndGenerateServicesResult { - ast: AST; - services: ParserServices; -} -interface ParseWithNodeMapsResult { - ast: AST; - esTreeNodeToTSNodeMap: ParserServices['esTreeNodeToTSNodeMap']; - tsNodeToESTreeNodeMap: ParserServices['tsNodeToESTreeNodeMap']; -} -declare function parse(code: string, options?: T): AST; -declare function parseWithNodeMaps(code: string, options?: T): ParseWithNodeMapsResult; -declare function clearParseAndGenerateServicesCalls(): void; -declare function parseAndGenerateServices(code: string, options: T): ParseAndGenerateServicesResult; -export { AST, parse, parseAndGenerateServices, parseWithNodeMaps, ParseAndGenerateServicesResult, ParseWithNodeMapsResult, clearProgramCache, clearParseAndGenerateServicesCalls, }; -//# sourceMappingURL=parser.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/semantic-or-syntactic-errors.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/semantic-or-syntactic-errors.d.ts deleted file mode 100644 index 3df225bd..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/semantic-or-syntactic-errors.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Diagnostic, Program, SourceFile } from 'typescript'; -export interface SemanticOrSyntacticError extends Diagnostic { - message: string; -} -/** - * By default, diagnostics from the TypeScript compiler contain all errors - regardless of whether - * they are related to generic ECMAScript standards, or TypeScript-specific constructs. - * - * Therefore, we filter out all diagnostics, except for the ones we explicitly want to consider when - * the user opts in to throwing errors on semantic issues. - */ -export declare function getFirstSemanticOrSyntacticError(program: Program, ast: SourceFile): SemanticOrSyntacticError | undefined; -//# sourceMappingURL=semantic-or-syntactic-errors.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/simple-traverse.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/simple-traverse.d.ts deleted file mode 100644 index e89daad3..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/simple-traverse.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { TSESTree } from './ts-estree'; -type SimpleTraverseOptions = { - enter: (node: TSESTree.Node, parent: TSESTree.Node | undefined) => void; -} | { - [key: string]: (node: TSESTree.Node, parent: TSESTree.Node | undefined) => void; -}; -export declare function simpleTraverse(startingNode: TSESTree.Node, options: SimpleTraverseOptions, setParentPointers?: boolean): void; -export {}; -//# sourceMappingURL=simple-traverse.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/estree-to-ts-node-types.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/estree-to-ts-node-types.d.ts deleted file mode 100644 index f0ad430c..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/estree-to-ts-node-types.d.ts +++ /dev/null @@ -1,178 +0,0 @@ -import { AST_NODE_TYPES, TSESTree } from '@typescript-eslint/types'; -import * as ts from 'typescript'; -import { TSNode } from './ts-nodes'; -export interface EstreeToTsNodeTypes { - [AST_NODE_TYPES.AccessorProperty]: ts.PropertyDeclaration; - [AST_NODE_TYPES.ArrayExpression]: ts.ArrayLiteralExpression; - [AST_NODE_TYPES.ArrayPattern]: ts.ArrayLiteralExpression | ts.ArrayBindingPattern; - [AST_NODE_TYPES.ArrowFunctionExpression]: ts.ArrowFunction; - [AST_NODE_TYPES.AssignmentExpression]: ts.BinaryExpression; - [AST_NODE_TYPES.AssignmentPattern]: ts.ShorthandPropertyAssignment | ts.BindingElement | ts.BinaryExpression | ts.ParameterDeclaration; - [AST_NODE_TYPES.AwaitExpression]: ts.AwaitExpression; - [AST_NODE_TYPES.BinaryExpression]: ts.BinaryExpression; - [AST_NODE_TYPES.BlockStatement]: ts.Block; - [AST_NODE_TYPES.BreakStatement]: ts.BreakStatement; - [AST_NODE_TYPES.CallExpression]: ts.CallExpression; - [AST_NODE_TYPES.CatchClause]: ts.CatchClause; - [AST_NODE_TYPES.ChainExpression]: ts.CallExpression | ts.PropertyAccessExpression | ts.ElementAccessExpression | ts.NonNullExpression; - [AST_NODE_TYPES.ClassBody]: ts.ClassDeclaration | ts.ClassExpression; - [AST_NODE_TYPES.ClassDeclaration]: ts.ClassDeclaration; - [AST_NODE_TYPES.ClassExpression]: ts.ClassExpression; - [AST_NODE_TYPES.PropertyDefinition]: ts.PropertyDeclaration; - [AST_NODE_TYPES.ConditionalExpression]: ts.ConditionalExpression; - [AST_NODE_TYPES.ContinueStatement]: ts.ContinueStatement; - [AST_NODE_TYPES.DebuggerStatement]: ts.DebuggerStatement; - [AST_NODE_TYPES.Decorator]: ts.Decorator; - [AST_NODE_TYPES.DoWhileStatement]: ts.DoStatement; - [AST_NODE_TYPES.EmptyStatement]: ts.EmptyStatement; - [AST_NODE_TYPES.ExportAllDeclaration]: ts.ExportDeclaration; - [AST_NODE_TYPES.ExportDefaultDeclaration]: ts.ExportAssignment | ts.FunctionDeclaration | ts.VariableStatement | ts.ClassDeclaration | ts.ClassExpression | ts.TypeAliasDeclaration | ts.InterfaceDeclaration | ts.EnumDeclaration | ts.ModuleDeclaration; - [AST_NODE_TYPES.ExportNamedDeclaration]: ts.ExportDeclaration | ts.FunctionDeclaration | ts.VariableStatement | ts.ClassDeclaration | ts.ClassExpression | ts.TypeAliasDeclaration | ts.InterfaceDeclaration | ts.EnumDeclaration | ts.ModuleDeclaration; - [AST_NODE_TYPES.ExportSpecifier]: ts.ExportSpecifier; - [AST_NODE_TYPES.ExpressionStatement]: ts.ExpressionStatement; - [AST_NODE_TYPES.ForInStatement]: ts.ForInStatement; - [AST_NODE_TYPES.ForOfStatement]: ts.ForOfStatement; - [AST_NODE_TYPES.ForStatement]: ts.ForStatement; - [AST_NODE_TYPES.FunctionDeclaration]: ts.FunctionDeclaration; - [AST_NODE_TYPES.FunctionExpression]: ts.FunctionExpression | ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ts.MethodDeclaration; - [AST_NODE_TYPES.Identifier]: ts.Identifier | ts.ConstructorDeclaration | ts.Token; - [AST_NODE_TYPES.PrivateIdentifier]: ts.PrivateIdentifier; - [AST_NODE_TYPES.IfStatement]: ts.IfStatement; - [AST_NODE_TYPES.ImportAttribute]: ts.AssertEntry; - [AST_NODE_TYPES.ImportDeclaration]: ts.ImportDeclaration; - [AST_NODE_TYPES.ImportDefaultSpecifier]: ts.ImportClause; - [AST_NODE_TYPES.ImportExpression]: ts.CallExpression; - [AST_NODE_TYPES.ImportNamespaceSpecifier]: ts.NamespaceImport; - [AST_NODE_TYPES.ImportSpecifier]: ts.ImportSpecifier; - [AST_NODE_TYPES.JSXAttribute]: ts.JsxAttribute; - [AST_NODE_TYPES.JSXClosingElement]: ts.JsxClosingElement; - [AST_NODE_TYPES.JSXClosingFragment]: ts.JsxClosingFragment; - [AST_NODE_TYPES.JSXElement]: ts.JsxElement | ts.JsxSelfClosingElement; - [AST_NODE_TYPES.JSXEmptyExpression]: ts.JsxExpression; - [AST_NODE_TYPES.JSXExpressionContainer]: ts.JsxExpression; - [AST_NODE_TYPES.JSXFragment]: ts.JsxFragment; - [AST_NODE_TYPES.JSXIdentifier]: ts.Identifier | ts.ThisExpression; - [AST_NODE_TYPES.JSXOpeningElement]: ts.JsxOpeningElement | ts.JsxSelfClosingElement; - [AST_NODE_TYPES.JSXOpeningFragment]: ts.JsxOpeningFragment; - [AST_NODE_TYPES.JSXSpreadAttribute]: ts.JsxSpreadAttribute; - [AST_NODE_TYPES.JSXSpreadChild]: ts.JsxExpression; - [AST_NODE_TYPES.JSXMemberExpression]: ts.PropertyAccessExpression; - [AST_NODE_TYPES.JSXNamespacedName]: ts.JsxNamespacedName; - [AST_NODE_TYPES.JSXText]: ts.JsxText; - [AST_NODE_TYPES.LabeledStatement]: ts.LabeledStatement; - [AST_NODE_TYPES.Literal]: ts.StringLiteral | ts.NumericLiteral | ts.RegularExpressionLiteral | ts.NullLiteral | ts.BooleanLiteral | ts.BigIntLiteral; - [AST_NODE_TYPES.LogicalExpression]: ts.BinaryExpression; - [AST_NODE_TYPES.MemberExpression]: ts.PropertyAccessExpression | ts.ElementAccessExpression; - [AST_NODE_TYPES.MetaProperty]: ts.MetaProperty; - [AST_NODE_TYPES.MethodDefinition]: ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ts.MethodDeclaration | ts.ConstructorDeclaration; - [AST_NODE_TYPES.NewExpression]: ts.NewExpression; - [AST_NODE_TYPES.ObjectExpression]: ts.ObjectLiteralExpression; - [AST_NODE_TYPES.ObjectPattern]: ts.ObjectLiteralExpression | ts.ObjectBindingPattern; - [AST_NODE_TYPES.Program]: ts.SourceFile; - [AST_NODE_TYPES.Property]: ts.PropertyAssignment | ts.ShorthandPropertyAssignment | ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ts.MethodDeclaration | ts.BindingElement; - [AST_NODE_TYPES.RestElement]: ts.BindingElement | ts.SpreadAssignment | ts.SpreadElement | ts.ParameterDeclaration; - [AST_NODE_TYPES.ReturnStatement]: ts.ReturnStatement; - [AST_NODE_TYPES.SequenceExpression]: ts.BinaryExpression; - [AST_NODE_TYPES.SpreadElement]: ts.SpreadElement | ts.SpreadAssignment; - [AST_NODE_TYPES.StaticBlock]: ts.ClassStaticBlockDeclaration; - [AST_NODE_TYPES.Super]: ts.SuperExpression; - [AST_NODE_TYPES.SwitchCase]: ts.CaseClause | ts.DefaultClause; - [AST_NODE_TYPES.SwitchStatement]: ts.SwitchStatement; - [AST_NODE_TYPES.TaggedTemplateExpression]: ts.TaggedTemplateExpression; - [AST_NODE_TYPES.TemplateElement]: ts.NoSubstitutionTemplateLiteral | ts.TemplateHead | ts.TemplateMiddle | ts.TemplateTail; - [AST_NODE_TYPES.TemplateLiteral]: ts.NoSubstitutionTemplateLiteral | ts.TemplateExpression; - [AST_NODE_TYPES.ThisExpression]: ts.ThisExpression | ts.KeywordTypeNode | ts.Identifier; - [AST_NODE_TYPES.ThrowStatement]: ts.ThrowStatement; - [AST_NODE_TYPES.TryStatement]: ts.TryStatement; - [AST_NODE_TYPES.TSAbstractAccessorProperty]: ts.PropertyDeclaration; - [AST_NODE_TYPES.TSAbstractPropertyDefinition]: ts.PropertyDeclaration; - [AST_NODE_TYPES.TSAbstractMethodDefinition]: ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ts.MethodDeclaration | ts.ConstructorDeclaration; - [AST_NODE_TYPES.TSArrayType]: ts.ArrayTypeNode; - [AST_NODE_TYPES.TSAsExpression]: ts.AsExpression; - [AST_NODE_TYPES.TSCallSignatureDeclaration]: ts.CallSignatureDeclaration; - [AST_NODE_TYPES.TSClassImplements]: ts.ExpressionWithTypeArguments; - [AST_NODE_TYPES.TSConditionalType]: ts.ConditionalTypeNode; - [AST_NODE_TYPES.TSConstructorType]: ts.ConstructorTypeNode; - [AST_NODE_TYPES.TSConstructSignatureDeclaration]: ts.ConstructSignatureDeclaration; - [AST_NODE_TYPES.TSDeclareFunction]: ts.FunctionDeclaration; - [AST_NODE_TYPES.TSEnumDeclaration]: ts.EnumDeclaration; - [AST_NODE_TYPES.TSEnumMember]: ts.EnumMember; - [AST_NODE_TYPES.TSExportAssignment]: ts.ExportAssignment; - [AST_NODE_TYPES.TSExternalModuleReference]: ts.ExternalModuleReference; - [AST_NODE_TYPES.TSFunctionType]: ts.FunctionTypeNode; - [AST_NODE_TYPES.TSImportEqualsDeclaration]: ts.ImportEqualsDeclaration; - [AST_NODE_TYPES.TSImportType]: ts.ImportTypeNode; - [AST_NODE_TYPES.TSIndexedAccessType]: ts.IndexedAccessTypeNode; - [AST_NODE_TYPES.TSIndexSignature]: ts.IndexSignatureDeclaration; - [AST_NODE_TYPES.TSInferType]: ts.InferTypeNode; - [AST_NODE_TYPES.TSInterfaceDeclaration]: ts.InterfaceDeclaration; - [AST_NODE_TYPES.TSInterfaceBody]: ts.InterfaceDeclaration; - [AST_NODE_TYPES.TSInterfaceHeritage]: ts.ExpressionWithTypeArguments; - [AST_NODE_TYPES.TSIntersectionType]: ts.IntersectionTypeNode; - [AST_NODE_TYPES.TSInstantiationExpression]: ts.ExpressionWithTypeArguments; - [AST_NODE_TYPES.TSSatisfiesExpression]: ts.SatisfiesExpression; - [AST_NODE_TYPES.TSLiteralType]: ts.LiteralTypeNode; - [AST_NODE_TYPES.TSMappedType]: ts.MappedTypeNode; - [AST_NODE_TYPES.TSMethodSignature]: ts.MethodSignature | ts.GetAccessorDeclaration | ts.SetAccessorDeclaration; - [AST_NODE_TYPES.TSModuleBlock]: ts.ModuleBlock; - [AST_NODE_TYPES.TSModuleDeclaration]: ts.ModuleDeclaration; - [AST_NODE_TYPES.TSNamedTupleMember]: ts.NamedTupleMember; - [AST_NODE_TYPES.TSNamespaceExportDeclaration]: ts.NamespaceExportDeclaration; - [AST_NODE_TYPES.TSNonNullExpression]: ts.NonNullExpression; - [AST_NODE_TYPES.TSOptionalType]: ts.OptionalTypeNode; - [AST_NODE_TYPES.TSParameterProperty]: ts.ParameterDeclaration; - [AST_NODE_TYPES.TSPropertySignature]: ts.PropertySignature; - [AST_NODE_TYPES.TSQualifiedName]: ts.QualifiedName; - [AST_NODE_TYPES.TSRestType]: ts.RestTypeNode | ts.NamedTupleMember; - [AST_NODE_TYPES.TSThisType]: ts.ThisTypeNode; - [AST_NODE_TYPES.TSTupleType]: ts.TupleTypeNode; - [AST_NODE_TYPES.TSTemplateLiteralType]: ts.TemplateLiteralTypeNode; - [AST_NODE_TYPES.TSTypeAliasDeclaration]: ts.TypeAliasDeclaration; - [AST_NODE_TYPES.TSTypeAnnotation]: undefined; - [AST_NODE_TYPES.TSTypeAssertion]: ts.TypeAssertion; - [AST_NODE_TYPES.TSTypeLiteral]: ts.TypeLiteralNode; - [AST_NODE_TYPES.TSTypeOperator]: ts.TypeOperatorNode; - [AST_NODE_TYPES.TSTypeParameter]: ts.TypeParameterDeclaration; - [AST_NODE_TYPES.TSTypeParameterDeclaration]: undefined; - [AST_NODE_TYPES.TSTypeParameterInstantiation]: ts.TaggedTemplateExpression | ts.ImportTypeNode | ts.ExpressionWithTypeArguments | ts.TypeReferenceNode | ts.JsxOpeningElement | ts.JsxSelfClosingElement | ts.NewExpression | ts.CallExpression | ts.TypeQueryNode; - [AST_NODE_TYPES.TSTypePredicate]: ts.TypePredicateNode; - [AST_NODE_TYPES.TSTypeQuery]: ts.TypeQueryNode; - [AST_NODE_TYPES.TSTypeReference]: ts.TypeReferenceNode; - [AST_NODE_TYPES.TSUnionType]: ts.UnionTypeNode; - [AST_NODE_TYPES.UpdateExpression]: ts.PrefixUnaryExpression | ts.PostfixUnaryExpression; - [AST_NODE_TYPES.UnaryExpression]: ts.PrefixUnaryExpression | ts.PostfixUnaryExpression | ts.DeleteExpression | ts.VoidExpression | ts.TypeOfExpression; - [AST_NODE_TYPES.VariableDeclaration]: ts.VariableDeclarationList | ts.VariableStatement; - [AST_NODE_TYPES.VariableDeclarator]: ts.VariableDeclaration; - [AST_NODE_TYPES.WhileStatement]: ts.WhileStatement; - [AST_NODE_TYPES.WithStatement]: ts.WithStatement; - [AST_NODE_TYPES.YieldExpression]: ts.YieldExpression; - [AST_NODE_TYPES.TSEmptyBodyFunctionExpression]: ts.FunctionExpression | ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ts.MethodDeclaration; - [AST_NODE_TYPES.TSAbstractKeyword]: ts.Token; - [AST_NODE_TYPES.TSNullKeyword]: ts.NullLiteral | ts.KeywordTypeNode; - [AST_NODE_TYPES.TSAnyKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSBigIntKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSBooleanKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSIntrinsicKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSNeverKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSNumberKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSObjectKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSStringKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSSymbolKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSUnknownKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSVoidKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSUndefinedKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSAsyncKeyword]: ts.Token; - [AST_NODE_TYPES.TSDeclareKeyword]: ts.Token; - [AST_NODE_TYPES.TSExportKeyword]: ts.Token; - [AST_NODE_TYPES.TSStaticKeyword]: ts.Token; - [AST_NODE_TYPES.TSPublicKeyword]: ts.Token; - [AST_NODE_TYPES.TSPrivateKeyword]: ts.Token; - [AST_NODE_TYPES.TSProtectedKeyword]: ts.Token; - [AST_NODE_TYPES.TSReadonlyKeyword]: ts.Token; -} -/** - * Maps TSESTree AST Node type to the expected TypeScript AST Node type(s). - * This mapping is based on the internal logic of the parser. - */ -export type TSESTreeToTSNode = Extract, EstreeToTsNodeTypes[T['type']]>; -//# sourceMappingURL=estree-to-ts-node-types.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/index.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/index.d.ts deleted file mode 100644 index d1a0cc80..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree, } from '@typescript-eslint/types'; -export * from './ts-nodes'; -export * from './estree-to-ts-node-types'; -//# sourceMappingURL=index.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/ts-nodes.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/ts-nodes.d.ts deleted file mode 100644 index 2021725e..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/ts-nodes.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import * as ts from 'typescript'; -declare module 'typescript' { - interface NamedTupleMember extends ts.Node { - } - interface TemplateLiteralTypeNode extends ts.Node { - } - interface PrivateIdentifier extends ts.Node { - } - interface ClassStaticBlockDeclaration extends ts.Node { - } - interface AssertClause extends ts.Node { - } - interface AssertEntry extends ts.Node { - } - interface SatisfiesExpression extends ts.Node { - } -} -export type TSToken = ts.Token; -export type TSNode = ts.AssertClause | ts.AssertEntry | ts.Modifier | ts.Identifier | ts.PrivateIdentifier | ts.QualifiedName | ts.ComputedPropertyName | ts.Decorator | ts.TypeParameterDeclaration | ts.CallSignatureDeclaration | ts.ConstructSignatureDeclaration | ts.VariableDeclaration | ts.VariableDeclarationList | ts.ParameterDeclaration | ts.BindingElement | ts.PropertySignature | ts.PropertyDeclaration | ts.PropertyAssignment | ts.ShorthandPropertyAssignment | ts.SpreadAssignment | ts.ObjectBindingPattern | ts.ArrayBindingPattern | ts.FunctionDeclaration | ts.MethodSignature | ts.MethodDeclaration | ts.ConstructorDeclaration | ts.SemicolonClassElement | ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ts.IndexSignatureDeclaration | ts.KeywordTypeNode | ts.ImportTypeNode | ts.ThisTypeNode | ts.ClassStaticBlockDeclaration | ts.ConstructorTypeNode | ts.FunctionTypeNode | ts.TypeReferenceNode | ts.TypePredicateNode | ts.TypeQueryNode | ts.TypeLiteralNode | ts.ArrayTypeNode | ts.NamedTupleMember | ts.TupleTypeNode | ts.OptionalTypeNode | ts.RestTypeNode | ts.UnionTypeNode | ts.IntersectionTypeNode | ts.ConditionalTypeNode | ts.InferTypeNode | ts.ParenthesizedTypeNode | ts.TypeOperatorNode | ts.IndexedAccessTypeNode | ts.MappedTypeNode | ts.LiteralTypeNode | ts.StringLiteral | ts.OmittedExpression | ts.PartiallyEmittedExpression | ts.PrefixUnaryExpression | ts.PostfixUnaryExpression | ts.NullLiteral | ts.BooleanLiteral | ts.ThisExpression | ts.SuperExpression | ts.ImportExpression | ts.DeleteExpression | ts.TypeOfExpression | ts.VoidExpression | ts.AwaitExpression | ts.YieldExpression | ts.SyntheticExpression | ts.BinaryExpression | ts.ConditionalExpression | ts.FunctionExpression | ts.ArrowFunction | ts.RegularExpressionLiteral | ts.NoSubstitutionTemplateLiteral | ts.NumericLiteral | ts.BigIntLiteral | ts.TemplateHead | ts.TemplateMiddle | ts.TemplateTail | ts.TemplateExpression | ts.TemplateSpan | ts.ParenthesizedExpression | ts.ArrayLiteralExpression | ts.SpreadElement | ts.ObjectLiteralExpression | ts.PropertyAccessExpression | ts.ElementAccessExpression | ts.CallExpression | ts.ExpressionWithTypeArguments | ts.NewExpression | ts.TaggedTemplateExpression | ts.AsExpression | ts.TypeAssertion | ts.NonNullExpression | ts.MetaProperty | ts.JsxElement | ts.JsxOpeningElement | ts.JsxSelfClosingElement | ts.JsxFragment | ts.JsxOpeningFragment | ts.JsxClosingFragment | ts.JsxAttribute | ts.JsxSpreadAttribute | ts.JsxClosingElement | ts.JsxExpression | ts.JsxNamespacedName | ts.JsxText | ts.NotEmittedStatement | ts.CommaListExpression | ts.EmptyStatement | ts.DebuggerStatement | ts.MissingDeclaration | ts.Block | ts.VariableStatement | ts.ExpressionStatement | ts.IfStatement | ts.DoStatement | ts.WhileStatement | ts.ForStatement | ts.ForInStatement | ts.ForOfStatement | ts.BreakStatement | ts.ContinueStatement | ts.ReturnStatement | ts.WithStatement | ts.SwitchStatement | ts.CaseBlock | ts.CaseClause | ts.DefaultClause | ts.LabeledStatement | ts.ThrowStatement | ts.TryStatement | ts.CatchClause | ts.ClassDeclaration | ts.ClassExpression | ts.InterfaceDeclaration | ts.HeritageClause | ts.TypeAliasDeclaration | ts.EnumMember | ts.EnumDeclaration | ts.ModuleDeclaration | ts.ModuleBlock | ts.ImportEqualsDeclaration | ts.ExternalModuleReference | ts.ImportDeclaration | ts.ImportClause | ts.NamespaceImport | ts.NamespaceExportDeclaration | ts.ExportDeclaration | ts.NamedImports | ts.NamedExports | ts.ImportSpecifier | ts.ExportSpecifier | ts.ExportAssignment | ts.SourceFile | ts.Bundle | ts.InputFiles | ts.UnparsedSource | ts.JsonMinusNumericLiteral | ts.TemplateLiteralTypeNode | ts.SatisfiesExpression | ts.JSDoc | ts.JSDocTypeExpression | ts.JSDocUnknownTag | ts.JSDocAugmentsTag | ts.JSDocClassTag | ts.JSDocEnumTag | ts.JSDocThisTag | ts.JSDocTemplateTag | ts.JSDocReturnTag | ts.JSDocTypeTag | ts.JSDocTypedefTag | ts.JSDocCallbackTag | ts.JSDocSignature | ts.JSDocPropertyTag | ts.JSDocParameterTag | ts.JSDocTypeLiteral | ts.JSDocFunctionType | ts.JSDocAllType | ts.JSDocUnknownType | ts.JSDocNullableType | ts.JSDocNonNullableType | ts.JSDocOptionalType | ts.JSDocVariadicType | ts.JSDocAuthorTag; -//# sourceMappingURL=ts-nodes.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/version-check.d.ts b/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/version-check.d.ts deleted file mode 100644 index 354fdc74..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/version-check.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare const typescriptVersionIsAtLeast: Record<"3.7" | "3.8" | "3.9" | "4.0" | "4.1" | "4.2" | "4.3" | "4.4" | "4.5" | "4.6" | "4.7" | "4.8" | "4.9" | "5.0", boolean>; -export { typescriptVersionIsAtLeast }; -//# sourceMappingURL=version-check.d.ts.map diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts deleted file mode 100644 index 3c812c65..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { SourceFile } from 'typescript'; -import type { ASTMaps } from './convert'; -import type { ParseSettings } from './parseSettings'; -import type { TSESTree } from './ts-estree'; -export declare function astConverter(ast: SourceFile, parseSettings: ParseSettings, shouldPreserveNodeMaps: boolean): { - estree: TSESTree.Program; - astMaps: ASTMaps; -}; -//# sourceMappingURL=ast-converter.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts.map deleted file mode 100644 index e5053ce8..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ast-converter.d.ts","sourceRoot":"","sources":["../src/ast-converter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,wBAAgB,YAAY,CAC1B,GAAG,EAAE,UAAU,EACf,aAAa,EAAE,aAAa,EAC5B,sBAAsB,EAAE,OAAO,GAC9B;IAAE,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAyDhD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js b/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js deleted file mode 100644 index 83b4108a..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.astConverter = void 0; -const convert_1 = require("./convert"); -const convert_comments_1 = require("./convert-comments"); -const node_utils_1 = require("./node-utils"); -const simple_traverse_1 = require("./simple-traverse"); -function astConverter(ast, parseSettings, shouldPreserveNodeMaps) { - /** - * The TypeScript compiler produced fundamental parse errors when parsing the - * source. - */ - const { parseDiagnostics } = ast; - if (parseDiagnostics.length) { - throw (0, convert_1.convertError)(parseDiagnostics[0]); - } - /** - * Recursively convert the TypeScript AST into an ESTree-compatible AST - */ - const instance = new convert_1.Converter(ast, { - errorOnUnknownASTType: parseSettings.errorOnUnknownASTType || false, - shouldPreserveNodeMaps, - }); - const estree = instance.convertProgram(); - /** - * Optionally remove range and loc if specified - */ - if (!parseSettings.range || !parseSettings.loc) { - (0, simple_traverse_1.simpleTraverse)(estree, { - enter: node => { - if (!parseSettings.range) { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- TS 4.0 made this an error because the types aren't optional - // @ts-expect-error - delete node.range; - } - if (!parseSettings.loc) { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- TS 4.0 made this an error because the types aren't optional - // @ts-expect-error - delete node.loc; - } - }, - }); - } - /** - * Optionally convert and include all tokens in the AST - */ - if (parseSettings.tokens) { - estree.tokens = (0, node_utils_1.convertTokens)(ast); - } - /** - * Optionally convert and include all comments in the AST - */ - if (parseSettings.comment) { - estree.comments = (0, convert_comments_1.convertComments)(ast, parseSettings.code); - } - const astMaps = instance.getASTMaps(); - return { estree, astMaps }; -} -exports.astConverter = astConverter; -//# sourceMappingURL=ast-converter.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map deleted file mode 100644 index 8837b5ea..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/ast-converter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ast-converter.js","sourceRoot":"","sources":["../src/ast-converter.ts"],"names":[],"mappings":";;;AAGA,uCAAoD;AACpD,yDAAqD;AACrD,6CAA6C;AAE7C,uDAAmD;AAGnD,SAAgB,YAAY,CAC1B,GAAe,EACf,aAA4B,EAC5B,sBAA+B;IAE/B;;;OAGG;IACH,MAAM,EAAE,gBAAgB,EAAE,GAAG,GAAG,CAAC;IACjC,IAAI,gBAAgB,CAAC,MAAM,EAAE;QAC3B,MAAM,IAAA,sBAAY,EAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;KACzC;IAED;;OAEG;IACH,MAAM,QAAQ,GAAG,IAAI,mBAAS,CAAC,GAAG,EAAE;QAClC,qBAAqB,EAAE,aAAa,CAAC,qBAAqB,IAAI,KAAK;QACnE,sBAAsB;KACvB,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,QAAQ,CAAC,cAAc,EAAE,CAAC;IAEzC;;OAEG;IACH,IAAI,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE;QAC9C,IAAA,gCAAc,EAAC,MAAM,EAAE;YACrB,KAAK,EAAE,IAAI,CAAC,EAAE;gBACZ,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE;oBACxB,4HAA4H;oBAC5H,mBAAmB;oBACnB,OAAO,IAAI,CAAC,KAAK,CAAC;iBACnB;gBACD,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE;oBACtB,4HAA4H;oBAC5H,mBAAmB;oBACnB,OAAO,IAAI,CAAC,GAAG,CAAC;iBACjB;YACH,CAAC;SACF,CAAC,CAAC;KACJ;IAED;;OAEG;IACH,IAAI,aAAa,CAAC,MAAM,EAAE;QACxB,MAAM,CAAC,MAAM,GAAG,IAAA,0BAAa,EAAC,GAAG,CAAC,CAAC;KACpC;IAED;;OAEG;IACH,IAAI,aAAa,CAAC,OAAO,EAAE;QACzB,MAAM,CAAC,QAAQ,GAAG,IAAA,kCAAe,EAAC,GAAG,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;KAC5D;IAED,MAAM,OAAO,GAAG,QAAQ,CAAC,UAAU,EAAE,CAAC;IAEtC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAC7B,CAAC;AA7DD,oCA6DC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts deleted file mode 100644 index 18457024..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Clears all of the internal caches. - * Generally you shouldn't need or want to use this. - * Examples of intended uses: - * - In tests to reset parser state to keep tests isolated. - * - In custom lint tooling that iteratively lints one project at a time to prevent OOMs. - */ -export declare function clearCaches(): void; -export declare const clearProgramCache: typeof clearCaches; -//# sourceMappingURL=clear-caches.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map deleted file mode 100644 index dbfae70a..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"clear-caches.d.ts","sourceRoot":"","sources":["../src/clear-caches.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAKlC;AAGD,eAAO,MAAM,iBAAiB,oBAAc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js b/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js deleted file mode 100644 index 5ad7a1d7..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.clearProgramCache = exports.clearCaches = void 0; -const getWatchProgramsForProjects_1 = require("./create-program/getWatchProgramsForProjects"); -const parser_1 = require("./parser"); -const createParseSettings_1 = require("./parseSettings/createParseSettings"); -const resolveProjectList_1 = require("./parseSettings/resolveProjectList"); -/** - * Clears all of the internal caches. - * Generally you shouldn't need or want to use this. - * Examples of intended uses: - * - In tests to reset parser state to keep tests isolated. - * - In custom lint tooling that iteratively lints one project at a time to prevent OOMs. - */ -function clearCaches() { - (0, parser_1.clearProgramCache)(); - (0, getWatchProgramsForProjects_1.clearWatchCaches)(); - (0, createParseSettings_1.clearTSConfigMatchCache)(); - (0, resolveProjectList_1.clearGlobCache)(); -} -exports.clearCaches = clearCaches; -// TODO - delete this in next major -exports.clearProgramCache = clearCaches; -//# sourceMappingURL=clear-caches.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map deleted file mode 100644 index 951ca841..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"clear-caches.js","sourceRoot":"","sources":["../src/clear-caches.ts"],"names":[],"mappings":";;;AAAA,8FAAgF;AAChF,qCAA0E;AAC1E,6EAA8E;AAC9E,2EAAoE;AAEpE;;;;;;GAMG;AACH,SAAgB,WAAW;IACzB,IAAA,0BAAyB,GAAE,CAAC;IAC5B,IAAA,8CAAgB,GAAE,CAAC;IACnB,IAAA,6CAAuB,GAAE,CAAC;IAC1B,IAAA,mCAAc,GAAE,CAAC;AACnB,CAAC;AALD,kCAKC;AAED,mCAAmC;AACtB,QAAA,iBAAiB,GAAG,WAAW,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts deleted file mode 100644 index bdf93691..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import * as ts from 'typescript'; -import type { TSESTree } from './ts-estree'; -/** - * Convert all comments for the given AST. - * @param ast the AST object - * @param code the TypeScript code - * @returns the converted ESTreeComment - * @private - */ -export declare function convertComments(ast: ts.SourceFile, code: string): TSESTree.Comment[]; -//# sourceMappingURL=convert-comments.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts.map deleted file mode 100644 index 68878b68..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"convert-comments.d.ts","sourceRoot":"","sources":["../src/convert-comments.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,EAAE,CAAC,UAAU,EAClB,IAAI,EAAE,MAAM,GACX,QAAQ,CAAC,OAAO,EAAE,CAgCpB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js b/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js deleted file mode 100644 index a78c9641..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.convertComments = void 0; -const util_1 = require("tsutils/util/util"); -const ts = __importStar(require("typescript")); -const node_utils_1 = require("./node-utils"); -const ts_estree_1 = require("./ts-estree"); -/** - * Convert all comments for the given AST. - * @param ast the AST object - * @param code the TypeScript code - * @returns the converted ESTreeComment - * @private - */ -function convertComments(ast, code) { - const comments = []; - (0, util_1.forEachComment)(ast, (_, comment) => { - const type = comment.kind === ts.SyntaxKind.SingleLineCommentTrivia - ? ts_estree_1.AST_TOKEN_TYPES.Line - : ts_estree_1.AST_TOKEN_TYPES.Block; - const range = [comment.pos, comment.end]; - const loc = (0, node_utils_1.getLocFor)(range[0], range[1], ast); - // both comments start with 2 characters - /* or // - const textStart = range[0] + 2; - const textEnd = comment.kind === ts.SyntaxKind.SingleLineCommentTrivia - ? // single line comments end at the end - range[1] - textStart - : // multiline comments end 2 characters early - range[1] - textStart - 2; - comments.push({ - type, - value: code.slice(textStart, textStart + textEnd), - range, - loc, - }); - }, ast); - return comments; -} -exports.convertComments = convertComments; -//# sourceMappingURL=convert-comments.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map deleted file mode 100644 index e4f1b1bf..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map +++ /dev/null @@ -1 +0,0 @@ -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AQ,CAAC;AAClB,CAAC;AAnCD,0CAmCC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts deleted file mode 100644 index b02f919b..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts +++ /dev/null @@ -1,159 +0,0 @@ -import * as ts from 'typescript'; -import type { TSError } from './node-utils'; -import type { ParserWeakMap, ParserWeakMapESTreeToTSNode } from './parser-options'; -import type { SemanticOrSyntacticError } from './semantic-or-syntactic-errors'; -import type { TSESTree, TSNode } from './ts-estree'; -interface ConverterOptions { - errorOnUnknownASTType: boolean; - shouldPreserveNodeMaps: boolean; -} -/** - * Extends and formats a given error object - * @param error the error object - * @returns converted error object - */ -export declare function convertError(error: ts.DiagnosticWithLocation | SemanticOrSyntacticError): TSError; -export interface ASTMaps { - esTreeNodeToTSNodeMap: ParserWeakMapESTreeToTSNode; - tsNodeToESTreeNodeMap: ParserWeakMap; -} -export declare class Converter { - private readonly ast; - private readonly options; - private readonly esTreeNodeToTSNodeMap; - private readonly tsNodeToESTreeNodeMap; - private allowPattern; - private inTypeMode; - /** - * Converts a TypeScript node into an ESTree node - * @param ast the full TypeScript AST - * @param options additional options for the conversion - * @returns the converted ESTreeNode - */ - constructor(ast: ts.SourceFile, options: ConverterOptions); - getASTMaps(): ASTMaps; - convertProgram(): TSESTree.Program; - /** - * Converts a TypeScript node into an ESTree node. - * @param node the child ts.Node - * @param parent parentNode - * @param inTypeMode flag to determine if we are in typeMode - * @param allowPattern flag to determine if patterns are allowed - * @returns the converted ESTree node - */ - private converter; - /** - * Fixes the exports of the given ts.Node - * @param node the ts.Node - * @param result result - * @returns the ESTreeNode with fixed exports - */ - private fixExports; - /** - * Register specific TypeScript node into map with first ESTree node provided - */ - private registerTSNodeInNodeMap; - /** - * Converts a TypeScript node into an ESTree node. - * @param child the child ts.Node - * @param parent parentNode - * @returns the converted ESTree node - */ - private convertPattern; - /** - * Converts a TypeScript node into an ESTree node. - * @param child the child ts.Node - * @param parent parentNode - * @returns the converted ESTree node - */ - private convertChild; - /** - * Converts a TypeScript node into an ESTree node. - * @param child the child ts.Node - * @param parent parentNode - * @returns the converted ESTree node - */ - private convertType; - private createNode; - private convertBindingNameWithTypeAnnotation; - /** - * Converts a child into a type annotation. This creates an intermediary - * TypeAnnotation node to match what Flow does. - * @param child The TypeScript AST node to convert. - * @param parent parentNode - * @returns The type annotation node. - */ - private convertTypeAnnotation; - /** - * Coverts body Nodes and add a directive field to StringLiterals - * @param nodes of ts.Node - * @param parent parentNode - * @returns Array of body statements - */ - private convertBodyExpressions; - /** - * Converts a ts.Node's typeArguments to TSTypeParameterInstantiation node - * @param typeArguments ts.NodeArray typeArguments - * @param node parent used to create this node - * @returns TypeParameterInstantiation node - */ - private convertTypeArgumentsToTypeParameters; - /** - * Converts a ts.Node's typeParameters to TSTypeParameterDeclaration node - * @param typeParameters ts.Node typeParameters - * @returns TypeParameterDeclaration node - */ - private convertTSTypeParametersToTypeParametersDeclaration; - /** - * Converts an array of ts.Node parameters into an array of ESTreeNode params - * @param parameters An array of ts.Node params to be converted - * @returns an array of converted ESTreeNode params - */ - private convertParameters; - private convertChainExpression; - /** - * For nodes that are copied directly from the TypeScript AST into - * ESTree mostly as-is. The only difference is the addition of a type - * property instead of a kind property. Recursively copies all children. - */ - private deeplyCopy; - private convertJSXIdentifier; - private convertJSXNamespaceOrIdentifier; - /** - * Converts a TypeScript JSX node.tagName into an ESTree node.name - * @param node the tagName object from a JSX ts.Node - * @param parent - * @returns the converted ESTree name object - */ - private convertJSXTagName; - private convertMethodSignature; - private convertAssertClasue; - /** - * Applies the given TS modifiers to the given result object. - * - * This method adds not standardized `modifiers` property in nodes - * - * @param result - * @param modifiers original ts.Nodes from the node.modifiers array - * @returns the current result object will be mutated - */ - private applyModifiersToResult; - /** - * Uses the provided range location to adjust the location data of the given Node - * @param result The node that will have its location data mutated - * @param childRange The child node range used to expand location - */ - private fixParentLocation; - private assertModuleSpecifier; - /** - * Converts a TypeScript node into an ESTree node. - * The core of the conversion logic: - * Identify and convert each relevant TypeScript SyntaxKind - * @param node the child ts.Node - * @param parent parentNode - * @returns the converted ESTree node - */ - private convertNode; -} -export {}; -//# sourceMappingURL=convert.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map deleted file mode 100644 index fa6af97a..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAuB5C,OAAO,KAAK,EACV,aAAa,EACb,2BAA2B,EAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAoB,MAAM,EAAE,MAAM,aAAa,CAAC;AAMtE,UAAU,gBAAgB;IACxB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,sBAAsB,EAAE,OAAO,CAAC;CACjC;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,EAAE,CAAC,sBAAsB,GAAG,wBAAwB,GAC1D,OAAO,CAMT;AAED,MAAM,WAAW,OAAO;IACtB,qBAAqB,EAAE,2BAA2B,CAAC;IACnD,qBAAqB,EAAE,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;CAC7D;AAED,qBAAa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;IACpC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IAC3C,OAAO,CAAC,QAAQ,CAAC,qBAAqB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b/node_modules/@typescript-eslint/typescript-estree/dist/convert.js deleted file mode 100644 index c35eaa87..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +++ /dev/null @@ -1,2423 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Converter = exports.convertError = void 0; -// There's lots of funny stuff due to the typing of ts.Node -/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access */ -const ts = __importStar(require("typescript")); -const getModifiers_1 = require("./getModifiers"); -const node_utils_1 = require("./node-utils"); -const ts_estree_1 = require("./ts-estree"); -const version_check_1 = require("./version-check"); -const SyntaxKind = ts.SyntaxKind; -/** - * Extends and formats a given error object - * @param error the error object - * @returns converted error object - */ -function convertError(error) { - return (0, node_utils_1.createError)(error.file, error.start, ('message' in error && error.message) || error.messageText); -} -exports.convertError = convertError; -class Converter { - /** - * Converts a TypeScript node into an ESTree node - * @param ast the full TypeScript AST - * @param options additional options for the conversion - * @returns the converted ESTreeNode - */ - constructor(ast, options) { - this.esTreeNodeToTSNodeMap = new WeakMap(); - this.tsNodeToESTreeNodeMap = new WeakMap(); - this.allowPattern = false; - this.inTypeMode = false; - this.ast = ast; - this.options = Object.assign({}, options); - } - getASTMaps() { - return { - esTreeNodeToTSNodeMap: this.esTreeNodeToTSNodeMap, - tsNodeToESTreeNodeMap: this.tsNodeToESTreeNodeMap, - }; - } - convertProgram() { - return this.converter(this.ast); - } - /** - * Converts a TypeScript node into an ESTree node. - * @param node the child ts.Node - * @param parent parentNode - * @param inTypeMode flag to determine if we are in typeMode - * @param allowPattern flag to determine if patterns are allowed - * @returns the converted ESTree node - */ - converter(node, parent, inTypeMode, allowPattern) { - /** - * Exit early for null and undefined - */ - if (!node) { - return null; - } - const typeMode = this.inTypeMode; - const pattern = this.allowPattern; - if (inTypeMode !== undefined) { - this.inTypeMode = inTypeMode; - } - if (allowPattern !== undefined) { - this.allowPattern = allowPattern; - } - const result = this.convertNode(node, (parent !== null && parent !== void 0 ? parent : node.parent)); - this.registerTSNodeInNodeMap(node, result); - this.inTypeMode = typeMode; - this.allowPattern = pattern; - return result; - } - /** - * Fixes the exports of the given ts.Node - * @param node the ts.Node - * @param result result - * @returns the ESTreeNode with fixed exports - */ - fixExports(node, result) { - // check for exports - const modifiers = (0, getModifiers_1.getModifiers)(node); - if ((modifiers === null || modifiers === void 0 ? void 0 : modifiers[0].kind) === SyntaxKind.ExportKeyword) { - /** - * Make sure that original node is registered instead of export - */ - this.registerTSNodeInNodeMap(node, result); - const exportKeyword = modifiers[0]; - const nextModifier = modifiers[1]; - const declarationIsDefault = nextModifier && nextModifier.kind === SyntaxKind.DefaultKeyword; - const varToken = declarationIsDefault - ? (0, node_utils_1.findNextToken)(nextModifier, this.ast, this.ast) - : (0, node_utils_1.findNextToken)(exportKeyword, this.ast, this.ast); - result.range[0] = varToken.getStart(this.ast); - result.loc = (0, node_utils_1.getLocFor)(result.range[0], result.range[1], this.ast); - if (declarationIsDefault) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ExportDefaultDeclaration, - declaration: result, - range: [exportKeyword.getStart(this.ast), result.range[1]], - exportKind: 'value', - }); - } - else { - const isType = result.type === ts_estree_1.AST_NODE_TYPES.TSInterfaceDeclaration || - result.type === ts_estree_1.AST_NODE_TYPES.TSTypeAliasDeclaration; - const isDeclare = 'declare' in result && result.declare === true; - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ExportNamedDeclaration, - // @ts-expect-error - TODO, narrow the types here - declaration: result, - specifiers: [], - source: null, - exportKind: isType || isDeclare ? 'type' : 'value', - range: [exportKeyword.getStart(this.ast), result.range[1]], - assertions: [], - }); - } - } - return result; - } - /** - * Register specific TypeScript node into map with first ESTree node provided - */ - registerTSNodeInNodeMap(node, result) { - if (result && this.options.shouldPreserveNodeMaps) { - if (!this.tsNodeToESTreeNodeMap.has(node)) { - this.tsNodeToESTreeNodeMap.set(node, result); - } - } - } - /** - * Converts a TypeScript node into an ESTree node. - * @param child the child ts.Node - * @param parent parentNode - * @returns the converted ESTree node - */ - convertPattern(child, parent) { - return this.converter(child, parent, this.inTypeMode, true); - } - /** - * Converts a TypeScript node into an ESTree node. - * @param child the child ts.Node - * @param parent parentNode - * @returns the converted ESTree node - */ - convertChild(child, parent) { - return this.converter(child, parent, this.inTypeMode, false); - } - /** - * Converts a TypeScript node into an ESTree node. - * @param child the child ts.Node - * @param parent parentNode - * @returns the converted ESTree node - */ - convertType(child, parent) { - return this.converter(child, parent, true, false); - } - createNode(node, data) { - const result = data; - if (!result.range) { - result.range = (0, node_utils_1.getRange)( - // this is completely valid, but TS hates it - node, this.ast); - } - if (!result.loc) { - result.loc = (0, node_utils_1.getLocFor)(result.range[0], result.range[1], this.ast); - } - if (result && this.options.shouldPreserveNodeMaps) { - this.esTreeNodeToTSNodeMap.set(result, node); - } - return result; - } - convertBindingNameWithTypeAnnotation(name, tsType, parent) { - const id = this.convertPattern(name); - if (tsType) { - id.typeAnnotation = this.convertTypeAnnotation(tsType, parent); - this.fixParentLocation(id, id.typeAnnotation.range); - } - return id; - } - /** - * Converts a child into a type annotation. This creates an intermediary - * TypeAnnotation node to match what Flow does. - * @param child The TypeScript AST node to convert. - * @param parent parentNode - * @returns The type annotation node. - */ - convertTypeAnnotation(child, parent) { - // in FunctionType and ConstructorType typeAnnotation has 2 characters `=>` and in other places is just colon - const offset = (parent === null || parent === void 0 ? void 0 : parent.kind) === SyntaxKind.FunctionType || - (parent === null || parent === void 0 ? void 0 : parent.kind) === SyntaxKind.ConstructorType - ? 2 - : 1; - const annotationStartCol = child.getFullStart() - offset; - const loc = (0, node_utils_1.getLocFor)(annotationStartCol, child.end, this.ast); - return { - type: ts_estree_1.AST_NODE_TYPES.TSTypeAnnotation, - loc, - range: [annotationStartCol, child.end], - typeAnnotation: this.convertType(child), - }; - } - /** - * Coverts body Nodes and add a directive field to StringLiterals - * @param nodes of ts.Node - * @param parent parentNode - * @returns Array of body statements - */ - convertBodyExpressions(nodes, parent) { - let allowDirectives = (0, node_utils_1.canContainDirective)(parent); - return (nodes - .map(statement => { - const child = this.convertChild(statement); - if (allowDirectives) { - if ((child === null || child === void 0 ? void 0 : child.expression) && - ts.isExpressionStatement(statement) && - ts.isStringLiteral(statement.expression)) { - const raw = child.expression.raw; - child.directive = raw.slice(1, -1); - return child; // child can be null, but it's filtered below - } - else { - allowDirectives = false; - } - } - return child; // child can be null, but it's filtered below - }) - // filter out unknown nodes for now - .filter(statement => statement)); - } - /** - * Converts a ts.Node's typeArguments to TSTypeParameterInstantiation node - * @param typeArguments ts.NodeArray typeArguments - * @param node parent used to create this node - * @returns TypeParameterInstantiation node - */ - convertTypeArgumentsToTypeParameters(typeArguments, node) { - const greaterThanToken = (0, node_utils_1.findNextToken)(typeArguments, this.ast, this.ast); - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTypeParameterInstantiation, - range: [typeArguments.pos - 1, greaterThanToken.end], - params: typeArguments.map(typeArgument => this.convertType(typeArgument)), - }); - } - /** - * Converts a ts.Node's typeParameters to TSTypeParameterDeclaration node - * @param typeParameters ts.Node typeParameters - * @returns TypeParameterDeclaration node - */ - convertTSTypeParametersToTypeParametersDeclaration(typeParameters) { - const greaterThanToken = (0, node_utils_1.findNextToken)(typeParameters, this.ast, this.ast); - return { - type: ts_estree_1.AST_NODE_TYPES.TSTypeParameterDeclaration, - range: [typeParameters.pos - 1, greaterThanToken.end], - loc: (0, node_utils_1.getLocFor)(typeParameters.pos - 1, greaterThanToken.end, this.ast), - params: typeParameters.map(typeParameter => this.convertType(typeParameter)), - }; - } - /** - * Converts an array of ts.Node parameters into an array of ESTreeNode params - * @param parameters An array of ts.Node params to be converted - * @returns an array of converted ESTreeNode params - */ - convertParameters(parameters) { - if (!(parameters === null || parameters === void 0 ? void 0 : parameters.length)) { - return []; - } - return parameters.map(param => { - const convertedParam = this.convertChild(param); - const decorators = (0, getModifiers_1.getDecorators)(param); - if (decorators === null || decorators === void 0 ? void 0 : decorators.length) { - convertedParam.decorators = decorators.map(el => this.convertChild(el)); - } - return convertedParam; - }); - } - convertChainExpression(node, tsNode) { - const { child, isOptional } = (() => { - if (node.type === ts_estree_1.AST_NODE_TYPES.MemberExpression) { - return { child: node.object, isOptional: node.optional }; - } - if (node.type === ts_estree_1.AST_NODE_TYPES.CallExpression) { - return { child: node.callee, isOptional: node.optional }; - } - return { child: node.expression, isOptional: false }; - })(); - const isChildUnwrappable = (0, node_utils_1.isChildUnwrappableOptionalChain)(tsNode, child); - if (!isChildUnwrappable && !isOptional) { - return node; - } - if (isChildUnwrappable && (0, node_utils_1.isChainExpression)(child)) { - // unwrap the chain expression child - const newChild = child.expression; - if (node.type === ts_estree_1.AST_NODE_TYPES.MemberExpression) { - node.object = newChild; - } - else if (node.type === ts_estree_1.AST_NODE_TYPES.CallExpression) { - node.callee = newChild; - } - else { - node.expression = newChild; - } - } - return this.createNode(tsNode, { - type: ts_estree_1.AST_NODE_TYPES.ChainExpression, - expression: node, - }); - } - /** - * For nodes that are copied directly from the TypeScript AST into - * ESTree mostly as-is. The only difference is the addition of a type - * property instead of a kind property. Recursively copies all children. - */ - deeplyCopy(node) { - if (node.kind === ts.SyntaxKind.JSDocFunctionType) { - throw (0, node_utils_1.createError)(this.ast, node.pos, 'JSDoc types can only be used inside documentation comments.'); - } - const customType = `TS${SyntaxKind[node.kind]}`; - /** - * If the "errorOnUnknownASTType" option is set to true, throw an error, - * otherwise fallback to just including the unknown type as-is. - */ - if (this.options.errorOnUnknownASTType && !ts_estree_1.AST_NODE_TYPES[customType]) { - throw new Error(`Unknown AST_NODE_TYPE: "${customType}"`); - } - const result = this.createNode(node, { - type: customType, - }); - if ('type' in node) { - result.typeAnnotation = - node.type && 'kind' in node.type && ts.isTypeNode(node.type) - ? this.convertTypeAnnotation(node.type, node) - : null; - } - if ('typeArguments' in node) { - result.typeParameters = - node.typeArguments && 'pos' in node.typeArguments - ? this.convertTypeArgumentsToTypeParameters(node.typeArguments, node) - : null; - } - if ('typeParameters' in node) { - result.typeParameters = - node.typeParameters && 'pos' in node.typeParameters - ? this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters) - : null; - } - const decorators = (0, getModifiers_1.getDecorators)(node); - if (decorators === null || decorators === void 0 ? void 0 : decorators.length) { - result.decorators = decorators.map(el => this.convertChild(el)); - } - // keys we never want to clone from the base typescript node as they - // introduce garbage into our AST - const KEYS_TO_NOT_COPY = new Set([ - '_children', - 'decorators', - 'end', - 'flags', - 'illegalDecorators', - 'heritageClauses', - 'locals', - 'localSymbol', - 'jsDoc', - 'kind', - 'modifierFlagsCache', - 'modifiers', - 'nextContainer', - 'parent', - 'pos', - 'symbol', - 'transformFlags', - 'type', - 'typeArguments', - 'typeParameters', - ]); - Object.entries(node) - .filter(([key]) => !KEYS_TO_NOT_COPY.has(key)) - .forEach(([key, value]) => { - if (Array.isArray(value)) { - result[key] = value.map(el => this.convertChild(el)); - } - else if (value && typeof value === 'object' && value.kind) { - // need to check node[key].kind to ensure we don't try to convert a symbol - result[key] = this.convertChild(value); - } - else { - result[key] = value; - } - }); - return result; - } - convertJSXIdentifier(node) { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, - name: node.getText(), - }); - this.registerTSNodeInNodeMap(node, result); - return result; - } - convertJSXNamespaceOrIdentifier(node) { - // TypeScript@5.1 added in ts.JsxNamespacedName directly - // We prefer using that if it's relevant for this node type - if (node.kind === ts.SyntaxKind.JsxNamespacedName) { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXNamespacedName, - namespace: this.createNode(node.namespace, { - type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, - name: node.namespace.text, - }), - name: this.createNode(node.name, { - type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, - name: node.name.text, - }), - }); - this.registerTSNodeInNodeMap(node, result); - return result; - } - // TypeScript@<5.1 has to manually parse the JSX attributes - const text = node.getText(); - const colonIndex = text.indexOf(':'); - // this is intentional we can ignore conversion if `:` is in first character - if (colonIndex > 0) { - const range = (0, node_utils_1.getRange)(node, this.ast); - // @ts-expect-error -- TypeScript@<5.1 doesn't have ts.JsxNamespacedName - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXNamespacedName, - namespace: this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, - name: text.slice(0, colonIndex), - range: [range[0], range[0] + colonIndex], - }), - name: this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXIdentifier, - name: text.slice(colonIndex + 1), - range: [range[0] + colonIndex + 1, range[1]], - }), - range, - }); - this.registerTSNodeInNodeMap(node, result); - return result; - } - return this.convertJSXIdentifier(node); - } - /** - * Converts a TypeScript JSX node.tagName into an ESTree node.name - * @param node the tagName object from a JSX ts.Node - * @param parent - * @returns the converted ESTree name object - */ - convertJSXTagName(node, parent) { - let result; - switch (node.kind) { - case SyntaxKind.PropertyAccessExpression: - if (node.name.kind === SyntaxKind.PrivateIdentifier) { - // This is one of the few times where TS explicitly errors, and doesn't even gracefully handle the syntax. - // So we shouldn't ever get into this state to begin with. - throw new Error('Non-private identifier expected.'); - } - result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXMemberExpression, - object: this.convertJSXTagName(node.expression, parent), - property: this.convertJSXIdentifier(node.name), - }); - break; - case SyntaxKind.ThisKeyword: - case SyntaxKind.Identifier: - default: - return this.convertJSXNamespaceOrIdentifier(node); - } - this.registerTSNodeInNodeMap(node, result); - return result; - } - convertMethodSignature(node) { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSMethodSignature, - computed: (0, node_utils_1.isComputedProperty)(node.name), - key: this.convertChild(node.name), - params: this.convertParameters(node.parameters), - kind: (() => { - switch (node.kind) { - case SyntaxKind.GetAccessor: - return 'get'; - case SyntaxKind.SetAccessor: - return 'set'; - case SyntaxKind.MethodSignature: - return 'method'; - } - })(), - }); - if ((0, node_utils_1.isOptional)(node)) { - result.optional = true; - } - if (node.type) { - result.returnType = this.convertTypeAnnotation(node.type, node); - } - if ((0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node)) { - result.readonly = true; - } - if (node.typeParameters) { - result.typeParameters = - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters); - } - const accessibility = (0, node_utils_1.getTSNodeAccessibility)(node); - if (accessibility) { - result.accessibility = accessibility; - } - if ((0, node_utils_1.hasModifier)(SyntaxKind.ExportKeyword, node)) { - result.export = true; - } - if ((0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node)) { - result.static = true; - } - return result; - } - convertAssertClasue(node) { - return node === undefined - ? [] - : node.elements.map(element => this.convertChild(element)); - } - /** - * Applies the given TS modifiers to the given result object. - * - * This method adds not standardized `modifiers` property in nodes - * - * @param result - * @param modifiers original ts.Nodes from the node.modifiers array - * @returns the current result object will be mutated - */ - applyModifiersToResult(result, modifiers) { - if (!modifiers) { - return; - } - const remainingModifiers = []; - /** - * Some modifiers are explicitly handled by applying them as - * boolean values on the result node. As well as adding them - * to the result, we remove them from the array, so that they - * are not handled twice. - */ - for (const modifier of modifiers) { - switch (modifier.kind) { - /** - * Ignore ExportKeyword and DefaultKeyword, they are handled - * via the fixExports utility function - */ - case SyntaxKind.ExportKeyword: - case SyntaxKind.DefaultKeyword: - break; - case SyntaxKind.ConstKeyword: - result.const = true; - break; - case SyntaxKind.DeclareKeyword: - result.declare = true; - break; - default: - remainingModifiers.push(this.convertChild(modifier)); - break; - } - } - /** - * If there are still valid modifiers available which have - * not been explicitly handled above, we just convert and - * add the modifiers array to the result node. - */ - if (remainingModifiers.length > 0) { - result.modifiers = remainingModifiers; - } - } - /** - * Uses the provided range location to adjust the location data of the given Node - * @param result The node that will have its location data mutated - * @param childRange The child node range used to expand location - */ - fixParentLocation(result, childRange) { - if (childRange[0] < result.range[0]) { - result.range[0] = childRange[0]; - result.loc.start = (0, node_utils_1.getLineAndCharacterFor)(result.range[0], this.ast); - } - if (childRange[1] > result.range[1]) { - result.range[1] = childRange[1]; - result.loc.end = (0, node_utils_1.getLineAndCharacterFor)(result.range[1], this.ast); - } - } - assertModuleSpecifier(node, allowNull) { - var _a; - if (!allowNull && node.moduleSpecifier == null) { - throw (0, node_utils_1.createError)(this.ast, node.pos, 'Module specifier must be a string literal.'); - } - if (node.moduleSpecifier && - ((_a = node.moduleSpecifier) === null || _a === void 0 ? void 0 : _a.kind) !== SyntaxKind.StringLiteral) { - throw (0, node_utils_1.createError)(this.ast, node.moduleSpecifier.pos, 'Module specifier must be a string literal.'); - } - } - /** - * Converts a TypeScript node into an ESTree node. - * The core of the conversion logic: - * Identify and convert each relevant TypeScript SyntaxKind - * @param node the child ts.Node - * @param parent parentNode - * @returns the converted ESTree node - */ - convertNode(node, parent) { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; - switch (node.kind) { - case SyntaxKind.SourceFile: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Program, - body: this.convertBodyExpressions(node.statements, node), - sourceType: node.externalModuleIndicator ? 'module' : 'script', - range: [node.getStart(this.ast), node.endOfFileToken.end], - }); - } - case SyntaxKind.Block: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.BlockStatement, - body: this.convertBodyExpressions(node.statements, node), - }); - } - case SyntaxKind.Identifier: { - if ((0, node_utils_1.isThisInTypeQuery)(node)) { - // special case for `typeof this.foo` - TS emits an Identifier for `this` - // but we want to treat it as a ThisExpression for consistency - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ThisExpression, - }); - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Identifier, - name: node.text, - }); - } - case SyntaxKind.PrivateIdentifier: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.PrivateIdentifier, - // typescript includes the `#` in the text - name: node.text.slice(1), - }); - } - case SyntaxKind.WithStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.WithStatement, - object: this.convertChild(node.expression), - body: this.convertChild(node.statement), - }); - // Control Flow - case SyntaxKind.ReturnStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ReturnStatement, - argument: this.convertChild(node.expression), - }); - case SyntaxKind.LabeledStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.LabeledStatement, - label: this.convertChild(node.label), - body: this.convertChild(node.statement), - }); - case SyntaxKind.ContinueStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ContinueStatement, - label: this.convertChild(node.label), - }); - case SyntaxKind.BreakStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.BreakStatement, - label: this.convertChild(node.label), - }); - // Choice - case SyntaxKind.IfStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.IfStatement, - test: this.convertChild(node.expression), - consequent: this.convertChild(node.thenStatement), - alternate: this.convertChild(node.elseStatement), - }); - case SyntaxKind.SwitchStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.SwitchStatement, - discriminant: this.convertChild(node.expression), - cases: node.caseBlock.clauses.map(el => this.convertChild(el)), - }); - case SyntaxKind.CaseClause: - case SyntaxKind.DefaultClause: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.SwitchCase, - // expression is present in case only - test: node.kind === SyntaxKind.CaseClause - ? this.convertChild(node.expression) - : null, - consequent: node.statements.map(el => this.convertChild(el)), - }); - // Exceptions - case SyntaxKind.ThrowStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ThrowStatement, - argument: this.convertChild(node.expression), - }); - case SyntaxKind.TryStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TryStatement, - block: this.convertChild(node.tryBlock), - handler: this.convertChild(node.catchClause), - finalizer: this.convertChild(node.finallyBlock), - }); - case SyntaxKind.CatchClause: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.CatchClause, - param: node.variableDeclaration - ? this.convertBindingNameWithTypeAnnotation(node.variableDeclaration.name, node.variableDeclaration.type) - : null, - body: this.convertChild(node.block), - }); - // Loops - case SyntaxKind.WhileStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.WhileStatement, - test: this.convertChild(node.expression), - body: this.convertChild(node.statement), - }); - /** - * Unlike other parsers, TypeScript calls a "DoWhileStatement" - * a "DoStatement" - */ - case SyntaxKind.DoStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.DoWhileStatement, - test: this.convertChild(node.expression), - body: this.convertChild(node.statement), - }); - case SyntaxKind.ForStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ForStatement, - init: this.convertChild(node.initializer), - test: this.convertChild(node.condition), - update: this.convertChild(node.incrementor), - body: this.convertChild(node.statement), - }); - case SyntaxKind.ForInStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ForInStatement, - left: this.convertPattern(node.initializer), - right: this.convertChild(node.expression), - body: this.convertChild(node.statement), - }); - case SyntaxKind.ForOfStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ForOfStatement, - left: this.convertPattern(node.initializer), - right: this.convertChild(node.expression), - body: this.convertChild(node.statement), - await: Boolean(node.awaitModifier && - node.awaitModifier.kind === SyntaxKind.AwaitKeyword), - }); - // Declarations - case SyntaxKind.FunctionDeclaration: { - const isDeclare = (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node); - const result = this.createNode(node, { - type: isDeclare || !node.body - ? ts_estree_1.AST_NODE_TYPES.TSDeclareFunction - : ts_estree_1.AST_NODE_TYPES.FunctionDeclaration, - id: this.convertChild(node.name), - generator: !!node.asteriskToken, - expression: false, - async: (0, node_utils_1.hasModifier)(SyntaxKind.AsyncKeyword, node), - params: this.convertParameters(node.parameters), - body: this.convertChild(node.body) || undefined, - }); - // Process returnType - if (node.type) { - result.returnType = this.convertTypeAnnotation(node.type, node); - } - // Process typeParameters - if (node.typeParameters) { - result.typeParameters = - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters); - } - if (isDeclare) { - result.declare = true; - } - // check for exports - return this.fixExports(node, result); - } - case SyntaxKind.VariableDeclaration: { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.VariableDeclarator, - id: this.convertBindingNameWithTypeAnnotation(node.name, node.type, node), - init: this.convertChild(node.initializer), - }); - if (node.exclamationToken) { - result.definite = true; - } - return result; - } - case SyntaxKind.VariableStatement: { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.VariableDeclaration, - declarations: node.declarationList.declarations.map(el => this.convertChild(el)), - kind: (0, node_utils_1.getDeclarationKind)(node.declarationList), - }); - /** - * Semantically, decorators are not allowed on variable declarations, - * Pre 4.8 TS would include them in the AST, so we did as well. - * However as of 4.8 TS no longer includes it (as it is, well, invalid). - * - * So for consistency across versions, we no longer include it either. - */ - if ((0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node)) { - result.declare = true; - } - // check for exports - return this.fixExports(node, result); - } - // mostly for for-of, for-in - case SyntaxKind.VariableDeclarationList: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.VariableDeclaration, - declarations: node.declarations.map(el => this.convertChild(el)), - kind: (0, node_utils_1.getDeclarationKind)(node), - }); - // Expressions - case SyntaxKind.ExpressionStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ExpressionStatement, - expression: this.convertChild(node.expression), - }); - case SyntaxKind.ThisKeyword: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ThisExpression, - }); - case SyntaxKind.ArrayLiteralExpression: { - // TypeScript uses ArrayLiteralExpression in destructuring assignment, too - if (this.allowPattern) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ArrayPattern, - elements: node.elements.map(el => this.convertPattern(el)), - }); - } - else { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ArrayExpression, - elements: node.elements.map(el => this.convertChild(el)), - }); - } - } - case SyntaxKind.ObjectLiteralExpression: { - // TypeScript uses ObjectLiteralExpression in destructuring assignment, too - if (this.allowPattern) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ObjectPattern, - properties: node.properties.map(el => this.convertPattern(el)), - }); - } - else { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ObjectExpression, - properties: node.properties.map(el => this.convertChild(el)), - }); - } - } - case SyntaxKind.PropertyAssignment: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Property, - key: this.convertChild(node.name), - value: this.converter(node.initializer, node, this.inTypeMode, this.allowPattern), - computed: (0, node_utils_1.isComputedProperty)(node.name), - method: false, - shorthand: false, - kind: 'init', - }); - case SyntaxKind.ShorthandPropertyAssignment: { - if (node.objectAssignmentInitializer) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Property, - key: this.convertChild(node.name), - value: this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, - left: this.convertPattern(node.name), - right: this.convertChild(node.objectAssignmentInitializer), - }), - computed: false, - method: false, - shorthand: true, - kind: 'init', - }); - } - else { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Property, - key: this.convertChild(node.name), - value: this.convertChild(node.name), - computed: false, - method: false, - shorthand: true, - kind: 'init', - }); - } - } - case SyntaxKind.ComputedPropertyName: - return this.convertChild(node.expression); - case SyntaxKind.PropertyDeclaration: { - const isAbstract = (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node); - const isAccessor = (0, node_utils_1.hasModifier)(SyntaxKind.AccessorKeyword, node); - // eslint-disable-next-line @typescript-eslint/explicit-function-return-type -- TODO - add ignore IIFE option - const type = (() => { - if (isAccessor) { - if (isAbstract) { - return ts_estree_1.AST_NODE_TYPES.TSAbstractAccessorProperty; - } - return ts_estree_1.AST_NODE_TYPES.AccessorProperty; - } - if (isAbstract) { - return ts_estree_1.AST_NODE_TYPES.TSAbstractPropertyDefinition; - } - return ts_estree_1.AST_NODE_TYPES.PropertyDefinition; - })(); - const result = this.createNode(node, { - type, - key: this.convertChild(node.name), - value: isAbstract ? null : this.convertChild(node.initializer), - computed: (0, node_utils_1.isComputedProperty)(node.name), - static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), - readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node) || undefined, - declare: (0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node), - override: (0, node_utils_1.hasModifier)(SyntaxKind.OverrideKeyword, node), - }); - if (node.type) { - result.typeAnnotation = this.convertTypeAnnotation(node.type, node); - } - const decorators = (0, getModifiers_1.getDecorators)(node); - if (decorators) { - result.decorators = decorators.map(el => this.convertChild(el)); - } - const accessibility = (0, node_utils_1.getTSNodeAccessibility)(node); - if (accessibility) { - result.accessibility = accessibility; - } - if ((node.name.kind === SyntaxKind.Identifier || - node.name.kind === SyntaxKind.ComputedPropertyName || - node.name.kind === SyntaxKind.PrivateIdentifier) && - node.questionToken) { - result.optional = true; - } - if (node.exclamationToken) { - result.definite = true; - } - if (result.key.type === ts_estree_1.AST_NODE_TYPES.Literal && node.questionToken) { - result.optional = true; - } - return result; - } - case SyntaxKind.GetAccessor: - case SyntaxKind.SetAccessor: { - if (node.parent.kind === SyntaxKind.InterfaceDeclaration || - node.parent.kind === SyntaxKind.TypeLiteral) { - return this.convertMethodSignature(node); - } - } - // otherwise, it is a non-type accessor - intentional fallthrough - case SyntaxKind.MethodDeclaration: { - const method = this.createNode(node, { - type: !node.body - ? ts_estree_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression - : ts_estree_1.AST_NODE_TYPES.FunctionExpression, - id: null, - generator: !!node.asteriskToken, - expression: false, - async: (0, node_utils_1.hasModifier)(SyntaxKind.AsyncKeyword, node), - body: this.convertChild(node.body), - range: [node.parameters.pos - 1, node.end], - params: [], - }); - if (node.type) { - method.returnType = this.convertTypeAnnotation(node.type, node); - } - // Process typeParameters - if (node.typeParameters) { - method.typeParameters = - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters); - this.fixParentLocation(method, method.typeParameters.range); - } - let result; - if (parent.kind === SyntaxKind.ObjectLiteralExpression) { - method.params = node.parameters.map(el => this.convertChild(el)); - result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Property, - key: this.convertChild(node.name), - value: method, - computed: (0, node_utils_1.isComputedProperty)(node.name), - method: node.kind === SyntaxKind.MethodDeclaration, - shorthand: false, - kind: 'init', - }); - } - else { - // class - /** - * Unlike in object literal methods, class method params can have decorators - */ - method.params = this.convertParameters(node.parameters); - /** - * TypeScript class methods can be defined as "abstract" - */ - const methodDefinitionType = (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node) - ? ts_estree_1.AST_NODE_TYPES.TSAbstractMethodDefinition - : ts_estree_1.AST_NODE_TYPES.MethodDefinition; - result = this.createNode(node, { - type: methodDefinitionType, - key: this.convertChild(node.name), - value: method, - computed: (0, node_utils_1.isComputedProperty)(node.name), - static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node), - kind: 'method', - override: (0, node_utils_1.hasModifier)(SyntaxKind.OverrideKeyword, node), - }); - const decorators = (0, getModifiers_1.getDecorators)(node); - if (decorators) { - result.decorators = decorators.map(el => this.convertChild(el)); - } - const accessibility = (0, node_utils_1.getTSNodeAccessibility)(node); - if (accessibility) { - result.accessibility = accessibility; - } - } - if (node.questionToken) { - result.optional = true; - } - if (node.kind === SyntaxKind.GetAccessor) { - result.kind = 'get'; - } - else if (node.kind === SyntaxKind.SetAccessor) { - result.kind = 'set'; - } - else if (!result.static && - node.name.kind === SyntaxKind.StringLiteral && - node.name.text === 'constructor' && - result.type !== ts_estree_1.AST_NODE_TYPES.Property) { - result.kind = 'constructor'; - } - return result; - } - // TypeScript uses this even for static methods named "constructor" - case SyntaxKind.Constructor: { - const lastModifier = (0, node_utils_1.getLastModifier)(node); - const constructorToken = (lastModifier && (0, node_utils_1.findNextToken)(lastModifier, node, this.ast)) || - node.getFirstToken(); - const constructor = this.createNode(node, { - type: !node.body - ? ts_estree_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression - : ts_estree_1.AST_NODE_TYPES.FunctionExpression, - id: null, - params: this.convertParameters(node.parameters), - generator: false, - expression: false, - async: false, - body: this.convertChild(node.body), - range: [node.parameters.pos - 1, node.end], - }); - // Process typeParameters - if (node.typeParameters) { - constructor.typeParameters = - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters); - this.fixParentLocation(constructor, constructor.typeParameters.range); - } - // Process returnType - if (node.type) { - constructor.returnType = this.convertTypeAnnotation(node.type, node); - } - const constructorKey = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Identifier, - name: 'constructor', - range: [constructorToken.getStart(this.ast), constructorToken.end], - }); - const isStatic = (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node); - const result = this.createNode(node, { - type: (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node) - ? ts_estree_1.AST_NODE_TYPES.TSAbstractMethodDefinition - : ts_estree_1.AST_NODE_TYPES.MethodDefinition, - key: constructorKey, - value: constructor, - computed: false, - static: isStatic, - kind: isStatic ? 'method' : 'constructor', - override: false, - }); - const accessibility = (0, node_utils_1.getTSNodeAccessibility)(node); - if (accessibility) { - result.accessibility = accessibility; - } - return result; - } - case SyntaxKind.FunctionExpression: { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.FunctionExpression, - id: this.convertChild(node.name), - generator: !!node.asteriskToken, - params: this.convertParameters(node.parameters), - body: this.convertChild(node.body), - async: (0, node_utils_1.hasModifier)(SyntaxKind.AsyncKeyword, node), - expression: false, - }); - // Process returnType - if (node.type) { - result.returnType = this.convertTypeAnnotation(node.type, node); - } - // Process typeParameters - if (node.typeParameters) { - result.typeParameters = - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters); - } - return result; - } - case SyntaxKind.SuperKeyword: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Super, - }); - case SyntaxKind.ArrayBindingPattern: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ArrayPattern, - elements: node.elements.map(el => this.convertPattern(el)), - }); - // occurs with missing array elements like [,] - case SyntaxKind.OmittedExpression: - return null; - case SyntaxKind.ObjectBindingPattern: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ObjectPattern, - properties: node.elements.map(el => this.convertPattern(el)), - }); - case SyntaxKind.BindingElement: { - if (parent.kind === SyntaxKind.ArrayBindingPattern) { - const arrayItem = this.convertChild(node.name, parent); - if (node.initializer) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, - left: arrayItem, - right: this.convertChild(node.initializer), - }); - } - else if (node.dotDotDotToken) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.RestElement, - argument: arrayItem, - }); - } - else { - return arrayItem; - } - } - else { - let result; - if (node.dotDotDotToken) { - result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.RestElement, - argument: this.convertChild((_a = node.propertyName) !== null && _a !== void 0 ? _a : node.name), - }); - } - else { - result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Property, - key: this.convertChild((_b = node.propertyName) !== null && _b !== void 0 ? _b : node.name), - value: this.convertChild(node.name), - computed: Boolean(node.propertyName && - node.propertyName.kind === SyntaxKind.ComputedPropertyName), - method: false, - shorthand: !node.propertyName, - kind: 'init', - }); - } - if (node.initializer) { - result.value = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, - left: this.convertChild(node.name), - right: this.convertChild(node.initializer), - range: [node.name.getStart(this.ast), node.initializer.end], - }); - } - return result; - } - } - case SyntaxKind.ArrowFunction: { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ArrowFunctionExpression, - generator: false, - id: null, - params: this.convertParameters(node.parameters), - body: this.convertChild(node.body), - async: (0, node_utils_1.hasModifier)(SyntaxKind.AsyncKeyword, node), - expression: node.body.kind !== SyntaxKind.Block, - }); - // Process returnType - if (node.type) { - result.returnType = this.convertTypeAnnotation(node.type, node); - } - // Process typeParameters - if (node.typeParameters) { - result.typeParameters = - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters); - } - return result; - } - case SyntaxKind.YieldExpression: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.YieldExpression, - delegate: !!node.asteriskToken, - argument: this.convertChild(node.expression), - }); - case SyntaxKind.AwaitExpression: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.AwaitExpression, - argument: this.convertChild(node.expression), - }); - // Template Literals - case SyntaxKind.NoSubstitutionTemplateLiteral: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TemplateLiteral, - quasis: [ - this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TemplateElement, - value: { - raw: this.ast.text.slice(node.getStart(this.ast) + 1, node.end - 1), - cooked: node.text, - }, - tail: true, - }), - ], - expressions: [], - }); - case SyntaxKind.TemplateExpression: { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TemplateLiteral, - quasis: [this.convertChild(node.head)], - expressions: [], - }); - node.templateSpans.forEach(templateSpan => { - result.expressions.push(this.convertChild(templateSpan.expression)); - result.quasis.push(this.convertChild(templateSpan.literal)); - }); - return result; - } - case SyntaxKind.TaggedTemplateExpression: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TaggedTemplateExpression, - typeParameters: node.typeArguments - ? this.convertTypeArgumentsToTypeParameters(node.typeArguments, node) - : undefined, - tag: this.convertChild(node.tag), - quasi: this.convertChild(node.template), - }); - case SyntaxKind.TemplateHead: - case SyntaxKind.TemplateMiddle: - case SyntaxKind.TemplateTail: { - const tail = node.kind === SyntaxKind.TemplateTail; - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TemplateElement, - value: { - raw: this.ast.text.slice(node.getStart(this.ast) + 1, node.end - (tail ? 1 : 2)), - cooked: node.text, - }, - tail, - }); - } - // Patterns - case SyntaxKind.SpreadAssignment: - case SyntaxKind.SpreadElement: { - if (this.allowPattern) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.RestElement, - argument: this.convertPattern(node.expression), - }); - } - else { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.SpreadElement, - argument: this.convertChild(node.expression), - }); - } - } - case SyntaxKind.Parameter: { - let parameter; - let result; - if (node.dotDotDotToken) { - parameter = result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.RestElement, - argument: this.convertChild(node.name), - }); - } - else if (node.initializer) { - parameter = this.convertChild(node.name); - result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, - left: parameter, - right: this.convertChild(node.initializer), - }); - const modifiers = (0, getModifiers_1.getModifiers)(node); - if (modifiers) { - // AssignmentPattern should not contain modifiers in range - result.range[0] = parameter.range[0]; - result.loc = (0, node_utils_1.getLocFor)(result.range[0], result.range[1], this.ast); - } - } - else { - parameter = result = this.convertChild(node.name, parent); - } - if (node.type) { - parameter.typeAnnotation = this.convertTypeAnnotation(node.type, node); - this.fixParentLocation(parameter, parameter.typeAnnotation.range); - } - if (node.questionToken) { - if (node.questionToken.end > parameter.range[1]) { - parameter.range[1] = node.questionToken.end; - parameter.loc.end = (0, node_utils_1.getLineAndCharacterFor)(parameter.range[1], this.ast); - } - parameter.optional = true; - } - const modifiers = (0, getModifiers_1.getModifiers)(node); - if (modifiers) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSParameterProperty, - accessibility: (_c = (0, node_utils_1.getTSNodeAccessibility)(node)) !== null && _c !== void 0 ? _c : undefined, - readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node) || undefined, - static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node) || undefined, - export: (0, node_utils_1.hasModifier)(SyntaxKind.ExportKeyword, node) || undefined, - override: (0, node_utils_1.hasModifier)(SyntaxKind.OverrideKeyword, node) || undefined, - parameter: result, - }); - } - return result; - } - // Classes - case SyntaxKind.ClassDeclaration: - case SyntaxKind.ClassExpression: { - const heritageClauses = (_d = node.heritageClauses) !== null && _d !== void 0 ? _d : []; - const classNodeType = node.kind === SyntaxKind.ClassDeclaration - ? ts_estree_1.AST_NODE_TYPES.ClassDeclaration - : ts_estree_1.AST_NODE_TYPES.ClassExpression; - const superClass = heritageClauses.find(clause => clause.token === SyntaxKind.ExtendsKeyword); - const implementsClause = heritageClauses.find(clause => clause.token === SyntaxKind.ImplementsKeyword); - const result = this.createNode(node, { - type: classNodeType, - id: this.convertChild(node.name), - body: this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ClassBody, - body: [], - range: [node.members.pos - 1, node.end], - }), - superClass: (superClass === null || superClass === void 0 ? void 0 : superClass.types[0]) - ? this.convertChild(superClass.types[0].expression) - : null, - }); - if (superClass) { - if (superClass.types.length > 1) { - throw (0, node_utils_1.createError)(this.ast, superClass.types[1].pos, 'Classes can only extend a single class.'); - } - if ((_e = superClass.types[0]) === null || _e === void 0 ? void 0 : _e.typeArguments) { - result.superTypeParameters = - this.convertTypeArgumentsToTypeParameters(superClass.types[0].typeArguments, superClass.types[0]); - } - } - if (node.typeParameters) { - result.typeParameters = - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters); - } - if (implementsClause) { - result.implements = implementsClause.types.map(el => this.convertChild(el)); - } - /** - * TypeScript class declarations can be defined as "abstract" - */ - if ((0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node)) { - result.abstract = true; - } - if ((0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node)) { - result.declare = true; - } - const decorators = (0, getModifiers_1.getDecorators)(node); - if (decorators) { - result.decorators = decorators.map(el => this.convertChild(el)); - } - const filteredMembers = node.members.filter(node_utils_1.isESTreeClassMember); - if (filteredMembers.length) { - result.body.body = filteredMembers.map(el => this.convertChild(el)); - } - // check for exports - return this.fixExports(node, result); - } - // Modules - case SyntaxKind.ModuleBlock: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSModuleBlock, - body: this.convertBodyExpressions(node.statements, node), - }); - case SyntaxKind.ImportDeclaration: { - this.assertModuleSpecifier(node, false); - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ImportDeclaration, - source: this.convertChild(node.moduleSpecifier), - specifiers: [], - importKind: 'value', - assertions: this.convertAssertClasue(node.assertClause), - }); - if (node.importClause) { - if (node.importClause.isTypeOnly) { - result.importKind = 'type'; - } - if (node.importClause.name) { - result.specifiers.push(this.convertChild(node.importClause)); - } - if (node.importClause.namedBindings) { - switch (node.importClause.namedBindings.kind) { - case SyntaxKind.NamespaceImport: - result.specifiers.push(this.convertChild(node.importClause.namedBindings)); - break; - case SyntaxKind.NamedImports: - result.specifiers = result.specifiers.concat(node.importClause.namedBindings.elements.map(el => this.convertChild(el))); - break; - } - } - } - return result; - } - case SyntaxKind.NamespaceImport: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ImportNamespaceSpecifier, - local: this.convertChild(node.name), - }); - case SyntaxKind.ImportSpecifier: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ImportSpecifier, - local: this.convertChild(node.name), - imported: this.convertChild((_f = node.propertyName) !== null && _f !== void 0 ? _f : node.name), - importKind: node.isTypeOnly ? 'type' : 'value', - }); - case SyntaxKind.ImportClause: { - const local = this.convertChild(node.name); - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ImportDefaultSpecifier, - local, - range: local.range, - }); - } - case SyntaxKind.ExportDeclaration: { - if (((_g = node.exportClause) === null || _g === void 0 ? void 0 : _g.kind) === SyntaxKind.NamedExports) { - this.assertModuleSpecifier(node, true); - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ExportNamedDeclaration, - source: this.convertChild(node.moduleSpecifier), - specifiers: node.exportClause.elements.map(el => this.convertChild(el)), - exportKind: node.isTypeOnly ? 'type' : 'value', - declaration: null, - assertions: this.convertAssertClasue(node.assertClause), - }); - } - else { - this.assertModuleSpecifier(node, false); - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ExportAllDeclaration, - source: this.convertChild(node.moduleSpecifier), - exportKind: node.isTypeOnly ? 'type' : 'value', - exported: - // note - for compat with 3.7.x, where node.exportClause is always undefined and - // SyntaxKind.NamespaceExport does not exist yet (i.e. is undefined), this - // cannot be shortened to an optional chain, or else you end up with - // undefined === undefined, and the true path will hard error at runtime - node.exportClause && - node.exportClause.kind === SyntaxKind.NamespaceExport - ? this.convertChild(node.exportClause.name) - : null, - assertions: this.convertAssertClasue(node.assertClause), - }); - } - } - case SyntaxKind.ExportSpecifier: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ExportSpecifier, - local: this.convertChild((_h = node.propertyName) !== null && _h !== void 0 ? _h : node.name), - exported: this.convertChild(node.name), - exportKind: node.isTypeOnly ? 'type' : 'value', - }); - case SyntaxKind.ExportAssignment: - if (node.isExportEquals) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSExportAssignment, - expression: this.convertChild(node.expression), - }); - } - else { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ExportDefaultDeclaration, - declaration: this.convertChild(node.expression), - exportKind: 'value', - }); - } - // Unary Operations - case SyntaxKind.PrefixUnaryExpression: - case SyntaxKind.PostfixUnaryExpression: { - const operator = (0, node_utils_1.getTextForTokenKind)(node.operator); - /** - * ESTree uses UpdateExpression for ++/-- - */ - if (operator === '++' || operator === '--') { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.UpdateExpression, - operator, - prefix: node.kind === SyntaxKind.PrefixUnaryExpression, - argument: this.convertChild(node.operand), - }); - } - else { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, - operator, - prefix: node.kind === SyntaxKind.PrefixUnaryExpression, - argument: this.convertChild(node.operand), - }); - } - } - case SyntaxKind.DeleteExpression: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, - operator: 'delete', - prefix: true, - argument: this.convertChild(node.expression), - }); - case SyntaxKind.VoidExpression: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, - operator: 'void', - prefix: true, - argument: this.convertChild(node.expression), - }); - case SyntaxKind.TypeOfExpression: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.UnaryExpression, - operator: 'typeof', - prefix: true, - argument: this.convertChild(node.expression), - }); - case SyntaxKind.TypeOperator: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTypeOperator, - operator: (0, node_utils_1.getTextForTokenKind)(node.operator), - typeAnnotation: this.convertChild(node.type), - }); - // Binary Operations - case SyntaxKind.BinaryExpression: { - // TypeScript uses BinaryExpression for sequences as well - if ((0, node_utils_1.isComma)(node.operatorToken)) { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.SequenceExpression, - expressions: [], - }); - const left = this.convertChild(node.left); - if (left.type === ts_estree_1.AST_NODE_TYPES.SequenceExpression && - node.left.kind !== SyntaxKind.ParenthesizedExpression) { - result.expressions = result.expressions.concat(left.expressions); - } - else { - result.expressions.push(left); - } - result.expressions.push(this.convertChild(node.right)); - return result; - } - else { - const type = (0, node_utils_1.getBinaryExpressionType)(node.operatorToken); - if (this.allowPattern && - type === ts_estree_1.AST_NODE_TYPES.AssignmentExpression) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern, - left: this.convertPattern(node.left, node), - right: this.convertChild(node.right), - }); - } - return this.createNode(node, { - type, - operator: (0, node_utils_1.getTextForTokenKind)(node.operatorToken.kind), - left: this.converter(node.left, node, this.inTypeMode, type === ts_estree_1.AST_NODE_TYPES.AssignmentExpression), - right: this.convertChild(node.right), - }); - } - } - case SyntaxKind.PropertyAccessExpression: { - const object = this.convertChild(node.expression); - const property = this.convertChild(node.name); - const computed = false; - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.MemberExpression, - object, - property, - computed, - optional: node.questionDotToken !== undefined, - }); - return this.convertChainExpression(result, node); - } - case SyntaxKind.ElementAccessExpression: { - const object = this.convertChild(node.expression); - const property = this.convertChild(node.argumentExpression); - const computed = true; - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.MemberExpression, - object, - property, - computed, - optional: node.questionDotToken !== undefined, - }); - return this.convertChainExpression(result, node); - } - case SyntaxKind.CallExpression: { - if (node.expression.kind === SyntaxKind.ImportKeyword) { - if (node.arguments.length !== 1 && node.arguments.length !== 2) { - throw (0, node_utils_1.createError)(this.ast, node.arguments.pos, 'Dynamic import requires exactly one or two arguments.'); - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ImportExpression, - source: this.convertChild(node.arguments[0]), - attributes: node.arguments[1] - ? this.convertChild(node.arguments[1]) - : null, - }); - } - const callee = this.convertChild(node.expression); - const args = node.arguments.map(el => this.convertChild(el)); - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.CallExpression, - callee, - arguments: args, - optional: node.questionDotToken !== undefined, - }); - if (node.typeArguments) { - result.typeParameters = this.convertTypeArgumentsToTypeParameters(node.typeArguments, node); - } - return this.convertChainExpression(result, node); - } - case SyntaxKind.NewExpression: { - // NOTE - NewExpression cannot have an optional chain in it - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.NewExpression, - callee: this.convertChild(node.expression), - arguments: node.arguments - ? node.arguments.map(el => this.convertChild(el)) - : [], - }); - if (node.typeArguments) { - result.typeParameters = this.convertTypeArgumentsToTypeParameters(node.typeArguments, node); - } - return result; - } - case SyntaxKind.ConditionalExpression: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ConditionalExpression, - test: this.convertChild(node.condition), - consequent: this.convertChild(node.whenTrue), - alternate: this.convertChild(node.whenFalse), - }); - case SyntaxKind.MetaProperty: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.MetaProperty, - meta: this.createNode( - // TODO: do we really want to convert it to Token? - node.getFirstToken(), { - type: ts_estree_1.AST_NODE_TYPES.Identifier, - name: (0, node_utils_1.getTextForTokenKind)(node.keywordToken), - }), - property: this.convertChild(node.name), - }); - } - case SyntaxKind.Decorator: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Decorator, - expression: this.convertChild(node.expression), - }); - } - // Literals - case SyntaxKind.StringLiteral: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Literal, - value: parent.kind === SyntaxKind.JsxAttribute - ? (0, node_utils_1.unescapeStringLiteralText)(node.text) - : node.text, - raw: node.getText(), - }); - } - case SyntaxKind.NumericLiteral: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Literal, - value: Number(node.text), - raw: node.getText(), - }); - } - case SyntaxKind.BigIntLiteral: { - const range = (0, node_utils_1.getRange)(node, this.ast); - const rawValue = this.ast.text.slice(range[0], range[1]); - const bigint = rawValue - // remove suffix `n` - .slice(0, -1) - // `BigInt` doesn't accept numeric separator - // and `bigint` property should not include numeric separator - .replace(/_/g, ''); - const value = typeof BigInt !== 'undefined' ? BigInt(bigint) : null; - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Literal, - raw: rawValue, - value: value, - bigint: value == null ? bigint : String(value), - range, - }); - } - case SyntaxKind.RegularExpressionLiteral: { - const pattern = node.text.slice(1, node.text.lastIndexOf('/')); - const flags = node.text.slice(node.text.lastIndexOf('/') + 1); - let regex = null; - try { - regex = new RegExp(pattern, flags); - } - catch (exception) { - regex = null; - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Literal, - value: regex, - raw: node.text, - regex: { - pattern, - flags, - }, - }); - } - case SyntaxKind.TrueKeyword: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Literal, - value: true, - raw: 'true', - }); - case SyntaxKind.FalseKeyword: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Literal, - value: false, - raw: 'false', - }); - case SyntaxKind.NullKeyword: { - if (!version_check_1.typescriptVersionIsAtLeast['4.0'] && this.inTypeMode) { - // 4.0 started nesting null types inside a LiteralType node, but we still need to support pre-4.0 - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSNullKeyword, - }); - } - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.Literal, - value: null, - raw: 'null', - }); - } - case SyntaxKind.EmptyStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.EmptyStatement, - }); - case SyntaxKind.DebuggerStatement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.DebuggerStatement, - }); - // JSX - case SyntaxKind.JsxElement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXElement, - openingElement: this.convertChild(node.openingElement), - closingElement: this.convertChild(node.closingElement), - children: node.children.map(el => this.convertChild(el)), - }); - case SyntaxKind.JsxFragment: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXFragment, - openingFragment: this.convertChild(node.openingFragment), - closingFragment: this.convertChild(node.closingFragment), - children: node.children.map(el => this.convertChild(el)), - }); - case SyntaxKind.JsxSelfClosingElement: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXElement, - /** - * Convert SyntaxKind.JsxSelfClosingElement to SyntaxKind.JsxOpeningElement, - * TypeScript does not seem to have the idea of openingElement when tag is self-closing - */ - openingElement: this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXOpeningElement, - typeParameters: node.typeArguments - ? this.convertTypeArgumentsToTypeParameters(node.typeArguments, node) - : undefined, - selfClosing: true, - name: this.convertJSXTagName(node.tagName, node), - attributes: node.attributes.properties.map(el => this.convertChild(el)), - range: (0, node_utils_1.getRange)(node, this.ast), - }), - closingElement: null, - children: [], - }); - } - case SyntaxKind.JsxOpeningElement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXOpeningElement, - typeParameters: node.typeArguments - ? this.convertTypeArgumentsToTypeParameters(node.typeArguments, node) - : undefined, - selfClosing: false, - name: this.convertJSXTagName(node.tagName, node), - attributes: node.attributes.properties.map(el => this.convertChild(el)), - }); - case SyntaxKind.JsxClosingElement: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXClosingElement, - name: this.convertJSXTagName(node.tagName, node), - }); - case SyntaxKind.JsxOpeningFragment: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXOpeningFragment, - }); - case SyntaxKind.JsxClosingFragment: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXClosingFragment, - }); - case SyntaxKind.JsxExpression: { - const expression = node.expression - ? this.convertChild(node.expression) - : this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXEmptyExpression, - range: [node.getStart(this.ast) + 1, node.getEnd() - 1], - }); - if (node.dotDotDotToken) { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXSpreadChild, - expression, - }); - } - else { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXExpressionContainer, - expression, - }); - } - } - case SyntaxKind.JsxAttribute: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXAttribute, - name: this.convertJSXNamespaceOrIdentifier(node.name), - value: this.convertChild(node.initializer), - }); - } - case SyntaxKind.JsxText: { - const start = node.getFullStart(); - const end = node.getEnd(); - const text = this.ast.text.slice(start, end); - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXText, - value: (0, node_utils_1.unescapeStringLiteralText)(text), - raw: text, - range: [start, end], - }); - } - case SyntaxKind.JsxSpreadAttribute: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.JSXSpreadAttribute, - argument: this.convertChild(node.expression), - }); - case SyntaxKind.QualifiedName: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSQualifiedName, - left: this.convertChild(node.left), - right: this.convertChild(node.right), - }); - } - // TypeScript specific - case SyntaxKind.TypeReference: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTypeReference, - typeName: this.convertType(node.typeName), - typeParameters: node.typeArguments - ? this.convertTypeArgumentsToTypeParameters(node.typeArguments, node) - : undefined, - }); - } - case SyntaxKind.TypeParameter: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTypeParameter, - name: this.convertType(node.name), - constraint: node.constraint - ? this.convertType(node.constraint) - : undefined, - default: node.default ? this.convertType(node.default) : undefined, - in: (0, node_utils_1.hasModifier)(SyntaxKind.InKeyword, node), - out: (0, node_utils_1.hasModifier)(SyntaxKind.OutKeyword, node), - const: (0, node_utils_1.hasModifier)(SyntaxKind.ConstKeyword, node), - }); - } - case SyntaxKind.ThisType: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSThisType, - }); - case SyntaxKind.AnyKeyword: - case SyntaxKind.BigIntKeyword: - case SyntaxKind.BooleanKeyword: - case SyntaxKind.NeverKeyword: - case SyntaxKind.NumberKeyword: - case SyntaxKind.ObjectKeyword: - case SyntaxKind.StringKeyword: - case SyntaxKind.SymbolKeyword: - case SyntaxKind.UnknownKeyword: - case SyntaxKind.VoidKeyword: - case SyntaxKind.UndefinedKeyword: - case SyntaxKind.IntrinsicKeyword: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES[`TS${SyntaxKind[node.kind]}`], - }); - } - case SyntaxKind.NonNullExpression: { - const nnExpr = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSNonNullExpression, - expression: this.convertChild(node.expression), - }); - return this.convertChainExpression(nnExpr, node); - } - case SyntaxKind.TypeLiteral: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTypeLiteral, - members: node.members.map(el => this.convertChild(el)), - }); - } - case SyntaxKind.ArrayType: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSArrayType, - elementType: this.convertType(node.elementType), - }); - } - case SyntaxKind.IndexedAccessType: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSIndexedAccessType, - objectType: this.convertType(node.objectType), - indexType: this.convertType(node.indexType), - }); - } - case SyntaxKind.ConditionalType: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSConditionalType, - checkType: this.convertType(node.checkType), - extendsType: this.convertType(node.extendsType), - trueType: this.convertType(node.trueType), - falseType: this.convertType(node.falseType), - }); - } - case SyntaxKind.TypeQuery: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTypeQuery, - exprName: this.convertType(node.exprName), - typeParameters: node.typeArguments && - this.convertTypeArgumentsToTypeParameters(node.typeArguments, node), - }); - } - case SyntaxKind.MappedType: { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSMappedType, - typeParameter: this.convertType(node.typeParameter), - nameType: (_j = this.convertType(node.nameType)) !== null && _j !== void 0 ? _j : null, - }); - if (node.readonlyToken) { - if (node.readonlyToken.kind === SyntaxKind.ReadonlyKeyword) { - result.readonly = true; - } - else { - result.readonly = (0, node_utils_1.getTextForTokenKind)(node.readonlyToken.kind); - } - } - if (node.questionToken) { - if (node.questionToken.kind === SyntaxKind.QuestionToken) { - result.optional = true; - } - else { - result.optional = (0, node_utils_1.getTextForTokenKind)(node.questionToken.kind); - } - } - if (node.type) { - result.typeAnnotation = this.convertType(node.type); - } - return result; - } - case SyntaxKind.ParenthesizedExpression: - return this.convertChild(node.expression, parent); - case SyntaxKind.TypeAliasDeclaration: { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTypeAliasDeclaration, - id: this.convertChild(node.name), - typeAnnotation: this.convertType(node.type), - }); - if ((0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node)) { - result.declare = true; - } - // Process typeParameters - if (node.typeParameters) { - result.typeParameters = - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters); - } - // check for exports - return this.fixExports(node, result); - } - case SyntaxKind.MethodSignature: { - return this.convertMethodSignature(node); - } - case SyntaxKind.PropertySignature: { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSPropertySignature, - optional: (0, node_utils_1.isOptional)(node) || undefined, - computed: (0, node_utils_1.isComputedProperty)(node.name), - key: this.convertChild(node.name), - typeAnnotation: node.type - ? this.convertTypeAnnotation(node.type, node) - : undefined, - initializer: this.convertChild( - // @ts-expect-error TODO breaking change remove this from the AST - node.initializer) || undefined, - readonly: (0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node) || undefined, - static: (0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node) || undefined, - export: (0, node_utils_1.hasModifier)(SyntaxKind.ExportKeyword, node) || undefined, - }); - const accessibility = (0, node_utils_1.getTSNodeAccessibility)(node); - if (accessibility) { - result.accessibility = accessibility; - } - return result; - } - case SyntaxKind.IndexSignature: { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSIndexSignature, - parameters: node.parameters.map(el => this.convertChild(el)), - }); - if (node.type) { - result.typeAnnotation = this.convertTypeAnnotation(node.type, node); - } - if ((0, node_utils_1.hasModifier)(SyntaxKind.ReadonlyKeyword, node)) { - result.readonly = true; - } - const accessibility = (0, node_utils_1.getTSNodeAccessibility)(node); - if (accessibility) { - result.accessibility = accessibility; - } - if ((0, node_utils_1.hasModifier)(SyntaxKind.ExportKeyword, node)) { - result.export = true; - } - if ((0, node_utils_1.hasModifier)(SyntaxKind.StaticKeyword, node)) { - result.static = true; - } - return result; - } - case SyntaxKind.ConstructorType: { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSConstructorType, - params: this.convertParameters(node.parameters), - abstract: (0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node), - }); - if (node.type) { - result.returnType = this.convertTypeAnnotation(node.type, node); - } - if (node.typeParameters) { - result.typeParameters = - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters); - } - return result; - } - case SyntaxKind.FunctionType: - case SyntaxKind.ConstructSignature: - case SyntaxKind.CallSignature: { - const type = node.kind === SyntaxKind.ConstructSignature - ? ts_estree_1.AST_NODE_TYPES.TSConstructSignatureDeclaration - : node.kind === SyntaxKind.CallSignature - ? ts_estree_1.AST_NODE_TYPES.TSCallSignatureDeclaration - : ts_estree_1.AST_NODE_TYPES.TSFunctionType; - const result = this.createNode(node, { - type: type, - params: this.convertParameters(node.parameters), - }); - if (node.type) { - result.returnType = this.convertTypeAnnotation(node.type, node); - } - if (node.typeParameters) { - result.typeParameters = - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters); - } - return result; - } - case SyntaxKind.ExpressionWithTypeArguments: { - const parentKind = parent.kind; - const type = parentKind === SyntaxKind.InterfaceDeclaration - ? ts_estree_1.AST_NODE_TYPES.TSInterfaceHeritage - : parentKind === SyntaxKind.HeritageClause - ? ts_estree_1.AST_NODE_TYPES.TSClassImplements - : ts_estree_1.AST_NODE_TYPES.TSInstantiationExpression; - const result = this.createNode(node, { - type, - expression: this.convertChild(node.expression), - }); - if (node.typeArguments) { - result.typeParameters = this.convertTypeArgumentsToTypeParameters(node.typeArguments, node); - } - return result; - } - case SyntaxKind.InterfaceDeclaration: { - const interfaceHeritageClauses = (_k = node.heritageClauses) !== null && _k !== void 0 ? _k : []; - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSInterfaceDeclaration, - body: this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSInterfaceBody, - body: node.members.map(member => this.convertChild(member)), - range: [node.members.pos - 1, node.end], - }), - id: this.convertChild(node.name), - }); - if (node.typeParameters) { - result.typeParameters = - this.convertTSTypeParametersToTypeParametersDeclaration(node.typeParameters); - } - if (interfaceHeritageClauses.length > 0) { - const interfaceExtends = []; - const interfaceImplements = []; - for (const heritageClause of interfaceHeritageClauses) { - if (heritageClause.token === SyntaxKind.ExtendsKeyword) { - for (const n of heritageClause.types) { - interfaceExtends.push(this.convertChild(n, node)); - } - } - else { - for (const n of heritageClause.types) { - interfaceImplements.push(this.convertChild(n, node)); - } - } - } - if (interfaceExtends.length) { - result.extends = interfaceExtends; - } - if (interfaceImplements.length) { - result.implements = interfaceImplements; - } - } - if ((0, node_utils_1.hasModifier)(SyntaxKind.AbstractKeyword, node)) { - result.abstract = true; - } - if ((0, node_utils_1.hasModifier)(SyntaxKind.DeclareKeyword, node)) { - result.declare = true; - } - // check for exports - return this.fixExports(node, result); - } - case SyntaxKind.TypePredicate: { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTypePredicate, - asserts: node.assertsModifier !== undefined, - parameterName: this.convertChild(node.parameterName), - typeAnnotation: null, - }); - /** - * Specific fix for type-guard location data - */ - if (node.type) { - result.typeAnnotation = this.convertTypeAnnotation(node.type, node); - result.typeAnnotation.loc = result.typeAnnotation.typeAnnotation.loc; - result.typeAnnotation.range = - result.typeAnnotation.typeAnnotation.range; - } - return result; - } - case SyntaxKind.ImportType: - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSImportType, - isTypeOf: !!node.isTypeOf, - parameter: this.convertChild(node.argument), - qualifier: this.convertChild(node.qualifier), - typeParameters: node.typeArguments - ? this.convertTypeArgumentsToTypeParameters(node.typeArguments, node) - : null, - }); - case SyntaxKind.EnumDeclaration: { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSEnumDeclaration, - id: this.convertChild(node.name), - members: node.members.map(el => this.convertChild(el)), - }); - // apply modifiers first... - this.applyModifiersToResult(result, (0, getModifiers_1.getModifiers)(node)); - // ...then check for exports - return this.fixExports(node, result); - } - case SyntaxKind.EnumMember: { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSEnumMember, - id: this.convertChild(node.name), - }); - if (node.initializer) { - result.initializer = this.convertChild(node.initializer); - } - if (node.name.kind === ts.SyntaxKind.ComputedPropertyName) { - result.computed = true; - } - return result; - } - case SyntaxKind.ModuleDeclaration: { - const result = this.createNode(node, Object.assign({ type: ts_estree_1.AST_NODE_TYPES.TSModuleDeclaration }, (() => { - const id = this.convertChild(node.name); - const body = this.convertChild(node.body); - // the constraints checked by this function are syntactically enforced by TS - // the checks mostly exist for type's sake - if (node.flags & ts.NodeFlags.GlobalAugmentation) { - if (body == null || - body.type === ts_estree_1.AST_NODE_TYPES.TSModuleDeclaration) { - throw new Error('Expected a valid module body'); - } - if (id.type !== ts_estree_1.AST_NODE_TYPES.Identifier) { - throw new Error('global module augmentation must have an Identifier id'); - } - return { - kind: 'global', - id, - body, - global: true, - }; - } - else if (node.flags & ts.NodeFlags.Namespace) { - if (body == null) { - throw new Error('Expected a module body'); - } - if (id.type !== ts_estree_1.AST_NODE_TYPES.Identifier) { - throw new Error('`namespace`s must have an Identifier id'); - } - return { - kind: 'namespace', - id, - body, - }; - } - else { - return Object.assign({ kind: 'module', id }, (body != null ? { body } : {})); - } - })())); - this.applyModifiersToResult(result, (0, getModifiers_1.getModifiers)(node)); - // ...then check for exports - return this.fixExports(node, result); - } - // TypeScript specific types - case SyntaxKind.ParenthesizedType: { - return this.convertType(node.type); - } - case SyntaxKind.UnionType: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSUnionType, - types: node.types.map(el => this.convertType(el)), - }); - } - case SyntaxKind.IntersectionType: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSIntersectionType, - types: node.types.map(el => this.convertType(el)), - }); - } - case SyntaxKind.AsExpression: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSAsExpression, - expression: this.convertChild(node.expression), - typeAnnotation: this.convertType(node.type), - }); - } - case SyntaxKind.InferType: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSInferType, - typeParameter: this.convertType(node.typeParameter), - }); - } - case SyntaxKind.LiteralType: { - if (version_check_1.typescriptVersionIsAtLeast['4.0'] && - node.literal.kind === SyntaxKind.NullKeyword) { - // 4.0 started nesting null types inside a LiteralType node - // but our AST is designed around the old way of null being a keyword - return this.createNode(node.literal, { - type: ts_estree_1.AST_NODE_TYPES.TSNullKeyword, - }); - } - else { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSLiteralType, - literal: this.convertType(node.literal), - }); - } - } - case SyntaxKind.TypeAssertionExpression: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTypeAssertion, - typeAnnotation: this.convertType(node.type), - expression: this.convertChild(node.expression), - }); - } - case SyntaxKind.ImportEqualsDeclaration: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSImportEqualsDeclaration, - id: this.convertChild(node.name), - moduleReference: this.convertChild(node.moduleReference), - importKind: node.isTypeOnly ? 'type' : 'value', - isExport: (0, node_utils_1.hasModifier)(SyntaxKind.ExportKeyword, node), - }); - } - case SyntaxKind.ExternalModuleReference: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSExternalModuleReference, - expression: this.convertChild(node.expression), - }); - } - case SyntaxKind.NamespaceExportDeclaration: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSNamespaceExportDeclaration, - id: this.convertChild(node.name), - }); - } - case SyntaxKind.AbstractKeyword: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSAbstractKeyword, - }); - } - // Tuple - case SyntaxKind.TupleType: { - // In TS 4.0, the `elementTypes` property was changed to `elements`. - // To support both at compile time, we cast to access the newer version - // if the former does not exist. - const elementTypes = 'elementTypes' in node - ? node.elementTypes.map((el) => this.convertType(el)) - : node.elements.map(el => this.convertType(el)); - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTupleType, - elementTypes, - }); - } - case SyntaxKind.NamedTupleMember: { - const member = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSNamedTupleMember, - elementType: this.convertType(node.type, node), - label: this.convertChild(node.name, node), - optional: node.questionToken != null, - }); - if (node.dotDotDotToken) { - // adjust the start to account for the "..." - member.range[0] = member.label.range[0]; - member.loc.start = member.label.loc.start; - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSRestType, - typeAnnotation: member, - }); - } - return member; - } - case SyntaxKind.OptionalType: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSOptionalType, - typeAnnotation: this.convertType(node.type), - }); - } - case SyntaxKind.RestType: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSRestType, - typeAnnotation: this.convertType(node.type), - }); - } - // Template Literal Types - case SyntaxKind.TemplateLiteralType: { - const result = this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSTemplateLiteralType, - quasis: [this.convertChild(node.head)], - types: [], - }); - node.templateSpans.forEach(templateSpan => { - result.types.push(this.convertChild(templateSpan.type)); - result.quasis.push(this.convertChild(templateSpan.literal)); - }); - return result; - } - case SyntaxKind.ClassStaticBlockDeclaration: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.StaticBlock, - body: this.convertBodyExpressions(node.body.statements, node), - }); - } - case SyntaxKind.AssertEntry: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.ImportAttribute, - key: this.convertChild(node.name), - value: this.convertChild(node.value), - }); - } - case SyntaxKind.SatisfiesExpression: { - return this.createNode(node, { - type: ts_estree_1.AST_NODE_TYPES.TSSatisfiesExpression, - expression: this.convertChild(node.expression), - typeAnnotation: this.convertChild(node.type), - }); - } - default: - return this.deeplyCopy(node); - } - } -} -exports.Converter = Converter; -//# sourceMappingURL=convert.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map deleted file mode 100644 index 5422385f..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"convert.js","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA2D;AAC3D,oNAAoN;AACpN,+CAAiC;AAEjC,iDAA6D;AAE7D,6CAqBsB;AAOtB,2CAA6C;AAC7C,mDAA6D;AAE7D,MAAM,UAAU,GAAG,EAAE,CAAC,UAAU,CAAC;AAOjC;;;;GAIG;AACH,SAAgB,YAAY,CAC1B,KAA2D;IAE3D,OAAO,IAAA,wBAAW,EAChB,KAAK,CAAC,IAAK,EACX,KAAK,CAAC,KAAM,EACZ,CAAC,SAAS,IAAI,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC,IAAK,KAAK,CAAC,WAAsB,CACvE,CAAC;AACJ,CAAC;AARD,oCAQC;AAOD,MAAa,SAAS;IASpB;;;;;OAKG;IACH,YAAY,GAAkB,EAAE,OAAyB;QAZxC,0BAAqB,GAAG,IAAI,OAAO,EAAE,CAAC;QACtC,0BAAqB,GAAG,IAAI,OAAO,EAAE,CAAC;QAE/C,iBAAY,GAAG,KAAK,CAAC;QACrB,eAAU,GAAG,KAAK,CAAC;QASzB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,OAAO,qBAAQ,OAAO,CAAE,CAAC;IAChC,CAAC;IAED,UAAU;QACR,OAAO;YACL,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;YACjD,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;SAClD,CAAC;IACJ,CAAC;IAED,cAAc;QACZ,OAAO,IAA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,EAAE;oBACjD,IAAI,EAAE,0BAAc,CAAC,WAAW;oBAChC,IAAI,EAAE,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC;iBAC9D,CAAC,CAAC;aACJ;YAED,KAAK,UAAU,CAAC,WAAW,CAAC,CAAC;gBAC3B,OAAO,IAAI,CAAC,UAAU,CAA2B,IAAI,EAAE;oBACrD,IAAI,EAAE,0BAAc,CAAC,eAAe;oBACpC,GAAG,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;oBACjC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;iBACrC,CAAC,CAAC;aACJ;YAED,KAAK,UAAU,CAAC,mBAAmB,CAAC,CAAC;gBACnC,OAAO,IAAI,CAAC,UAAU,CAAiC,IAAI,EAAE;oBAC3D,IAAI,EAAE,0BAAc,CAAC,qBAAqB;oBAC1C,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC;oBAC9C,cAAc,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;iBAC7C,CAAC,CAAC;aACJ;YAED;gBACE,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;SAChC;IACH,CAAC;CACF;AAh7FD,8BAg7FC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts deleted file mode 100644 index 5c2828c9..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type * as ts from 'typescript'; -interface DirectoryStructureHost { - readDirectory?(path: string, extensions?: ReadonlyArray, exclude?: ReadonlyArray, include?: ReadonlyArray, depth?: number): string[]; -} -interface CachedDirectoryStructureHost extends DirectoryStructureHost { - readDirectory(path: string, extensions?: ReadonlyArray, exclude?: ReadonlyArray, include?: ReadonlyArray, depth?: number): string[]; -} -interface WatchCompilerHostOfConfigFile extends ts.WatchCompilerHostOfConfigFile { - onCachedDirectoryStructureHostCreate(host: CachedDirectoryStructureHost): void; - extraFileExtensions?: readonly ts.FileExtensionInfo[]; -} -export { WatchCompilerHostOfConfigFile }; -//# sourceMappingURL=WatchCompilerHostOfConfigFile.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts.map deleted file mode 100644 index 7d6c1846..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WatchCompilerHostOfConfigFile.d.ts","sourceRoot":"","sources":["../../src/create-program/WatchCompilerHostOfConfigFile.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAGtC,UAAU,sBAAsB;IAC9B,aAAa,CAAC,CACZ,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,EAClC,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,EAC/B,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,EAC/B,KAAK,CAAC,EAAE,MAAM,GACb,MAAM,EAAE,CAAC;CACb;AAGD,UAAU,4BAA6B,SAAQ,sBAAsB;IACnE,aAAa,CACX,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,EAClC,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,EAC/B,OAAO,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,EAC/B,KAAK,CAAC,EAAE,MAAM,GACb,MAAM,EAAE,CAAC;CACb;AAGD,UAAU,6BAA6B,CAAC,CAAC,SAAS,EAAE,CAAC,cAAc,CACjE,SAAQ,EAAE,CAAC,6BAA6B,CAAC,CAAC,CAAC;IAC3C,oCAAoC,CAClC,IAAI,EAAE,4BAA4B,GACjC,IAAI,CAAC;IACR,mBAAmB,CAAC,EAAE,SAAS,EAAE,CAAC,iBAAiB,EAAE,CAAC;CACvD;AAED,OAAO,EAAE,6BAA6B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js deleted file mode 100644 index dcb07129..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -// These types are internal to TS. -// They have been trimmed down to only include the relevant bits -// We use some special internal TS apis to help us do our parsing flexibly -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=WatchCompilerHostOfConfigFile.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js.map deleted file mode 100644 index 757e885c..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/WatchCompilerHostOfConfigFile.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WatchCompilerHostOfConfigFile.js","sourceRoot":"","sources":["../../src/create-program/WatchCompilerHostOfConfigFile.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,gEAAgE;AAChE,0EAA0E"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.d.ts deleted file mode 100644 index 01658467..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { ParseSettings } from '../parseSettings'; -import type { ASTAndProgram } from './shared'; -/** - * @param parseSettings Internal settings for parsing the file - * @returns If found, returns the source file corresponding to the code and the containing program - */ -declare function createDefaultProgram(parseSettings: ParseSettings): ASTAndProgram | undefined; -export { createDefaultProgram }; -//# sourceMappingURL=createDefaultProgram.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.d.ts.map deleted file mode 100644 index d96dc853..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createDefaultProgram.d.ts","sourceRoot":"","sources":["../../src/create-program/createDefaultProgram.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAQ9C;;;GAGG;AACH,iBAAS,oBAAoB,CAC3B,aAAa,EAAE,aAAa,GAC3B,aAAa,GAAG,SAAS,CAgD3B;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js deleted file mode 100644 index a51cf286..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createDefaultProgram = void 0; -const debug_1 = __importDefault(require("debug")); -const path_1 = __importDefault(require("path")); -const ts = __importStar(require("typescript")); -const shared_1 = require("./shared"); -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createDefaultProgram'); -/** - * @param parseSettings Internal settings for parsing the file - * @returns If found, returns the source file corresponding to the code and the containing program - */ -function createDefaultProgram(parseSettings) { - var _a; - log('Getting default program for: %s', parseSettings.filePath || 'unnamed file'); - if (((_a = parseSettings.projects) === null || _a === void 0 ? void 0 : _a.length) !== 1) { - return undefined; - } - const tsconfigPath = parseSettings.projects[0]; - const commandLine = ts.getParsedCommandLineOfConfigFile(tsconfigPath, (0, shared_1.createDefaultCompilerOptionsFromExtra)(parseSettings), Object.assign(Object.assign({}, ts.sys), { onUnRecoverableConfigFileDiagnostic: () => { } })); - if (!commandLine) { - return undefined; - } - const compilerHost = ts.createCompilerHost(commandLine.options, - /* setParentNodes */ true); - if (parseSettings.moduleResolver) { - // eslint-disable-next-line deprecation/deprecation -- intentional for older TS versions - compilerHost.resolveModuleNames = (0, shared_1.getModuleResolver)(parseSettings.moduleResolver).resolveModuleNames; - } - const oldReadFile = compilerHost.readFile; - compilerHost.readFile = (fileName) => path_1.default.normalize(fileName) === path_1.default.normalize(parseSettings.filePath) - ? parseSettings.code - : oldReadFile(fileName); - const program = ts.createProgram([parseSettings.filePath], commandLine.options, compilerHost); - const ast = program.getSourceFile(parseSettings.filePath); - return ast && { ast, program }; -} -exports.createDefaultProgram = createDefaultProgram; -//# sourceMappingURL=createDefaultProgram.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js.map deleted file mode 100644 index a6ac9ec9..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createDefaultProgram.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createDefaultProgram.js","sourceRoot":"","sources":["../../src/create-program/createDefaultProgram.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,gDAAwB;AACxB,+CAAiC;AAIjC,qCAGkB;AAElB,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,0DAA0D,CAAC,CAAC;AAE9E;;;GAGG;AACH,SAAS,oBAAoB,CAC3B,aAA4B;;IAE5B,GAAG,CACD,iCAAiC,EACjC,aAAa,CAAC,QAAQ,IAAI,cAAc,CACzC,CAAC;IAEF,IAAI,CAAA,MAAA,aAAa,CAAC,QAAQ,0CAAE,MAAM,MAAK,CAAC,EAAE;QACxC,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,YAAY,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAE/C,MAAM,WAAW,GAAG,EAAE,CAAC,gCAAgC,CACrD,YAAY,EACZ,IAAA,8CAAqC,EAAC,aAAa,CAAC,kCAC/C,EAAE,CAAC,GAAG,KAAE,mCAAmC,EAAE,GAAG,EAAE,GAAE,CAAC,IAC3D,CAAC;IAEF,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,YAAY,GAAG,EAAE,CAAC,kBAAkB,CACxC,WAAW,CAAC,OAAO;IACnB,oBAAoB,CAAC,IAAI,CAC1B,CAAC;IAEF,IAAI,aAAa,CAAC,cAAc,EAAE;QAChC,wFAAwF;QACxF,YAAY,CAAC,kBAAkB,GAAG,IAAA,0BAAiB,EACjD,aAAa,CAAC,cAAc,CAC7B,CAAC,kBAAkB,CAAC;KACtB;IAED,MAAM,WAAW,GAAG,YAAY,CAAC,QAAQ,CAAC;IAC1C,YAAY,CAAC,QAAQ,GAAG,CAAC,QAAgB,EAAsB,EAAE,CAC/D,cAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,cAAI,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,CAAC;QACjE,CAAC,CAAC,aAAa,CAAC,IAAI;QACpB,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAE5B,MAAM,OAAO,GAAG,EAAE,CAAC,aAAa,CAC9B,CAAC,aAAa,CAAC,QAAQ,CAAC,EACxB,WAAW,CAAC,OAAO,EACnB,YAAY,CACb,CAAC;IACF,MAAM,GAAG,GAAG,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAE1D,OAAO,GAAG,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC;AACjC,CAAC;AAEQ,oDAAoB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts deleted file mode 100644 index babd0501..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { ParseSettings } from '../parseSettings'; -import type { ASTAndProgram } from './shared'; -/** - * @param code The code of the file being linted - * @returns Returns a new source file and program corresponding to the linted code - */ -declare function createIsolatedProgram(parseSettings: ParseSettings): ASTAndProgram; -export { createIsolatedProgram }; -//# sourceMappingURL=createIsolatedProgram.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map deleted file mode 100644 index e8bc1974..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createIsolatedProgram.d.ts","sourceRoot":"","sources":["../../src/create-program/createIsolatedProgram.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAK9C;;;GAGG;AACH,iBAAS,qBAAqB,CAAC,aAAa,EAAE,aAAa,GAAG,aAAa,CAmE1E;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js deleted file mode 100644 index e89ef61d..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js +++ /dev/null @@ -1,83 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createIsolatedProgram = void 0; -const debug_1 = __importDefault(require("debug")); -const ts = __importStar(require("typescript")); -const getScriptKind_1 = require("./getScriptKind"); -const shared_1 = require("./shared"); -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createIsolatedProgram'); -/** - * @param code The code of the file being linted - * @returns Returns a new source file and program corresponding to the linted code - */ -function createIsolatedProgram(parseSettings) { - log('Getting isolated program in %s mode for: %s', parseSettings.jsx ? 'TSX' : 'TS', parseSettings.filePath); - const compilerHost = { - fileExists() { - return true; - }, - getCanonicalFileName() { - return parseSettings.filePath; - }, - getCurrentDirectory() { - return ''; - }, - getDirectories() { - return []; - }, - getDefaultLibFileName() { - return 'lib.d.ts'; - }, - // TODO: Support Windows CRLF - getNewLine() { - return '\n'; - }, - getSourceFile(filename) { - return ts.createSourceFile(filename, parseSettings.code, ts.ScriptTarget.Latest, - /* setParentNodes */ true, (0, getScriptKind_1.getScriptKind)(parseSettings.filePath, parseSettings.jsx)); - }, - readFile() { - return undefined; - }, - useCaseSensitiveFileNames() { - return true; - }, - writeFile() { - return null; - }, - }; - const program = ts.createProgram([parseSettings.filePath], Object.assign({ noResolve: true, target: ts.ScriptTarget.Latest, jsx: parseSettings.jsx ? ts.JsxEmit.Preserve : undefined }, (0, shared_1.createDefaultCompilerOptionsFromExtra)(parseSettings)), compilerHost); - const ast = program.getSourceFile(parseSettings.filePath); - if (!ast) { - throw new Error('Expected an ast to be returned for the single-file isolated program.'); - } - return { ast, program }; -} -exports.createIsolatedProgram = createIsolatedProgram; -//# sourceMappingURL=createIsolatedProgram.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map deleted file mode 100644 index 90a6764a..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createIsolatedProgram.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createIsolatedProgram.js","sourceRoot":"","sources":["../../src/create-program/createIsolatedProgram.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,+CAAiC;AAGjC,mDAAgD;AAEhD,qCAAiE;AAEjE,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,2DAA2D,CAAC,CAAC;AAE/E;;;GAGG;AACH,SAAS,qBAAqB,CAAC,aAA4B;IACzD,GAAG,CACD,6CAA6C,EAC7C,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAChC,aAAa,CAAC,QAAQ,CACvB,CAAC;IAEF,MAAM,YAAY,GAAoB;QACpC,UAAU;YACR,OAAO,IAAI,CAAC;QACd,CAAC;QACD,oBAAoB;YAClB,OAAO,aAAa,CAAC,QAAQ,CAAC;QAChC,CAAC;QACD,mBAAmB;YACjB,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,cAAc;YACZ,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,qBAAqB;YACnB,OAAO,UAAU,CAAC;QACpB,CAAC;QAED,6BAA6B;QAC7B,UAAU;YACR,OAAO,IAAI,CAAC;QACd,CAAC;QACD,aAAa,CAAC,QAAgB;YAC5B,OAAO,EAAE,CAAC,gBAAgB,CACxB,QAAQ,EACR,aAAa,CAAC,IAAI,EAClB,EAAE,CAAC,YAAY,CAAC,MAAM;YACtB,oBAAoB,CAAC,IAAI,EACzB,IAAA,6BAAa,EAAC,aAAa,CAAC,QAAQ,EAAE,aAAa,CAAC,GAAG,CAAC,CACzD,CAAC;QACJ,CAAC;QACD,QAAQ;YACN,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,yBAAyB;YACvB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,SAAS;YACP,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;IAEF,MAAM,OAAO,GAAG,EAAE,CAAC,aAAa,CAC9B,CAAC,aAAa,CAAC,QAAQ,CAAC,kBAEtB,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,EAC9B,GAAG,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,IACrD,IAAA,8CAAqC,EAAC,aAAa,CAAC,GAEzD,YAAY,CACb,CAAC;IAEF,MAAM,GAAG,GAAG,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC1D,IAAI,CAAC,GAAG,EAAE;QACR,MAAM,IAAI,KAAK,CACb,sEAAsE,CACvE,CAAC;KACH;IAED,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC;AAC1B,CAAC;AAEQ,sDAAqB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts deleted file mode 100644 index 35fdf3d9..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { ParseSettings } from '../parseSettings'; -import type { ASTAndProgram } from './shared'; -/** - * @param parseSettings Internal settings for parsing the file - * @returns If found, the source file corresponding to the code and the containing program - */ -declare function createProjectProgram(parseSettings: ParseSettings): ASTAndProgram | undefined; -export { createProjectProgram }; -//# sourceMappingURL=createProjectProgram.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map deleted file mode 100644 index 7b7f9dfd..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createProjectProgram.d.ts","sourceRoot":"","sources":["../../src/create-program/createProjectProgram.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAgB9C;;;GAGG;AACH,iBAAS,oBAAoB,CAC3B,aAAa,EAAE,aAAa,GAC3B,aAAa,GAAG,SAAS,CA8E3B;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js deleted file mode 100644 index 59c382c0..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createProjectProgram = void 0; -const debug_1 = __importDefault(require("debug")); -const path_1 = __importDefault(require("path")); -const ts = __importStar(require("typescript")); -const node_utils_1 = require("../node-utils"); -const describeFilePath_1 = require("./describeFilePath"); -const getWatchProgramsForProjects_1 = require("./getWatchProgramsForProjects"); -const shared_1 = require("./shared"); -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createProjectProgram'); -const DEFAULT_EXTRA_FILE_EXTENSIONS = [ - ts.Extension.Ts, - ts.Extension.Tsx, - ts.Extension.Js, - ts.Extension.Jsx, - ts.Extension.Mjs, - ts.Extension.Mts, - ts.Extension.Cjs, - ts.Extension.Cts, -]; -/** - * @param parseSettings Internal settings for parsing the file - * @returns If found, the source file corresponding to the code and the containing program - */ -function createProjectProgram(parseSettings) { - log('Creating project program for: %s', parseSettings.filePath); - const programsForProjects = (0, getWatchProgramsForProjects_1.getWatchProgramsForProjects)(parseSettings); - const astAndProgram = (0, node_utils_1.firstDefined)(programsForProjects, currentProgram => (0, shared_1.getAstFromProgram)(currentProgram, parseSettings)); - // The file was either matched within the tsconfig, or we allow creating a default program - if (astAndProgram || parseSettings.createDefaultProgram) { - return astAndProgram; - } - const describeProjectFilePath = (projectFile) => (0, describeFilePath_1.describeFilePath)(projectFile, parseSettings.tsconfigRootDir); - const describedFilePath = (0, describeFilePath_1.describeFilePath)(parseSettings.filePath, parseSettings.tsconfigRootDir); - const relativeProjects = parseSettings.projects.map(describeProjectFilePath); - const describedPrograms = relativeProjects.length === 1 - ? relativeProjects[0] - : `\n${relativeProjects.map(project => `- ${project}`).join('\n')}`; - const errorLines = [ - `ESLint was configured to run on \`${describedFilePath}\` using \`parserOptions.project\`: ${describedPrograms}`, - ]; - let hasMatchedAnError = false; - const extraFileExtensions = parseSettings.extraFileExtensions || []; - extraFileExtensions.forEach(extraExtension => { - if (!extraExtension.startsWith('.')) { - errorLines.push(`Found unexpected extension \`${extraExtension}\` specified with the \`parserOptions.extraFileExtensions\` option. Did you mean \`.${extraExtension}\`?`); - } - if (DEFAULT_EXTRA_FILE_EXTENSIONS.includes(extraExtension)) { - errorLines.push(`You unnecessarily included the extension \`${extraExtension}\` with the \`parserOptions.extraFileExtensions\` option. This extension is already handled by the parser by default.`); - } - }); - const fileExtension = path_1.default.extname(parseSettings.filePath); - if (!DEFAULT_EXTRA_FILE_EXTENSIONS.includes(fileExtension)) { - const nonStandardExt = `The extension for the file (\`${fileExtension}\`) is non-standard`; - if (extraFileExtensions.length > 0) { - if (!extraFileExtensions.includes(fileExtension)) { - errorLines.push(`${nonStandardExt}. It should be added to your existing \`parserOptions.extraFileExtensions\`.`); - hasMatchedAnError = true; - } - } - else { - errorLines.push(`${nonStandardExt}. You should add \`parserOptions.extraFileExtensions\` to your config.`); - hasMatchedAnError = true; - } - } - if (!hasMatchedAnError) { - const [describedInclusions, describedSpecifiers] = parseSettings.projects.length === 1 - ? ['that TSConfig does not', 'that TSConfig'] - : ['none of those TSConfigs', 'one of those TSConfigs']; - errorLines.push(`However, ${describedInclusions} include this file. Either:`, `- Change ESLint's list of included files to not include this file`, `- Change ${describedSpecifiers} to include this file`, `- Create a new TSConfig that includes this file and include it in your parserOptions.project`, `See the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file`); - } - throw new Error(errorLines.join('\n')); -} -exports.createProjectProgram = createProjectProgram; -//# sourceMappingURL=createProjectProgram.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map deleted file mode 100644 index 438aac1d..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createProjectProgram.js","sourceRoot":"","sources":["../../src/create-program/createProj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1B;SACF;aAAM;YACL,UAAU,CAAC,IAAI,CACb,GAAG,cAAc,wEAAwE,CAC1F,CAAC;YACF,iBAAiB,GAAG,IAAI,CAAC;SAC1B;KACF;IAED,IAAI,CAAC,iBAAiB,EAAE;QACtB,MAAM,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,GAC9C,aAAa,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC;YACjC,CAAC,CAAC,CAAC,wBAAwB,EAAE,eAAe,CAAC;YAC7C,CAAC,CAAC,CAAC,yBAAyB,EAAE,wBAAwB,CAAC,CAAC;QAC5D,UAAU,CAAC,IAAI,CACb,YAAY,mBAAmB,6BAA6B,EAC5D,mEAAmE,EACnE,YAAY,mBAAmB,uBAAuB,EACtD,8FAA8F,EAC9F,oOAAoO,CACrO,CAAC;KACH;IAED,MAAM,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AACzC,CAAC;AAEQ,oDAAoB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts deleted file mode 100644 index cc5f3824..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import * as ts from 'typescript'; -import type { ParseSettings } from '../parseSettings'; -declare function createSourceFile(parseSettings: ParseSettings): ts.SourceFile; -export { createSourceFile }; -//# sourceMappingURL=createSourceFile.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts.map deleted file mode 100644 index a25654ba..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createSourceFile.d.ts","sourceRoot":"","sources":["../../src/create-program/createSourceFile.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKtD,iBAAS,gBAAgB,CAAC,aAAa,EAAE,aAAa,GAAG,EAAE,CAAC,UAAU,CAcrE;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js deleted file mode 100644 index c3055518..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createSourceFile = void 0; -const debug_1 = __importDefault(require("debug")); -const ts = __importStar(require("typescript")); -const getScriptKind_1 = require("./getScriptKind"); -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createSourceFile'); -function createSourceFile(parseSettings) { - log('Getting AST without type information in %s mode for: %s', parseSettings.jsx ? 'TSX' : 'TS', parseSettings.filePath); - return ts.createSourceFile(parseSettings.filePath, parseSettings.code, ts.ScriptTarget.Latest, - /* setParentNodes */ true, (0, getScriptKind_1.getScriptKind)(parseSettings.filePath, parseSettings.jsx)); -} -exports.createSourceFile = createSourceFile; -//# sourceMappingURL=createSourceFile.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map deleted file mode 100644 index 66331269..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createSourceFile.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createSourceFile.js","sourceRoot":"","sources":["../../src/create-program/createSourceFile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,+CAAiC;AAGjC,mDAAgD;AAEhD,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,sDAAsD,CAAC,CAAC;AAE1E,SAAS,gBAAgB,CAAC,aAA4B;IACpD,GAAG,CACD,yDAAyD,EACzD,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAChC,aAAa,CAAC,QAAQ,CACvB,CAAC;IAEF,OAAO,EAAE,CAAC,gBAAgB,CACxB,aAAa,CAAC,QAAQ,EACtB,aAAa,CAAC,IAAI,EAClB,EAAE,CAAC,YAAY,CAAC,MAAM;IACtB,oBAAoB,CAAC,IAAI,EACzB,IAAA,6BAAa,EAAC,aAAa,CAAC,QAAQ,EAAE,aAAa,CAAC,GAAG,CAAC,CACzD,CAAC;AACJ,CAAC;AAEQ,4CAAgB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts deleted file mode 100644 index d46f86aa..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function describeFilePath(filePath: string, tsconfigRootDir: string): string; -//# sourceMappingURL=describeFilePath.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map deleted file mode 100644 index 6d049bed..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"describeFilePath.d.ts","sourceRoot":"","sources":["../../src/create-program/describeFilePath.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,GACtB,MAAM,CAyBR"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js deleted file mode 100644 index ba353615..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.describeFilePath = void 0; -const path_1 = __importDefault(require("path")); -function describeFilePath(filePath, tsconfigRootDir) { - // If the TSConfig root dir is a parent of the filePath, use - // `` as a prefix for the path. - const relative = path_1.default.relative(tsconfigRootDir, filePath); - if (relative && !relative.startsWith('..') && !path_1.default.isAbsolute(relative)) { - return `/${relative}`; - } - // Root-like Mac/Linux (~/*, ~*) or Windows (C:/*, /) paths that aren't - // relative to the TSConfig root dir should be fully described. - // This avoids strings like /../../../../repo/file.ts. - // https://github.com/typescript-eslint/typescript-eslint/issues/6289 - if (/^[(\w+:)\\/~]/.test(filePath)) { - return filePath; - } - // Similarly, if the relative path would contain a lot of ../.., then - // ignore it and print the file path directly. - if (/\.\.[/\\]\.\./.test(relative)) { - return filePath; - } - // Lastly, since we've eliminated all special cases, we know the cleanest - // path to print is probably the prefixed relative one. - return `/${relative}`; -} -exports.describeFilePath = describeFilePath; -//# sourceMappingURL=describeFilePath.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map deleted file mode 100644 index 1d650edf..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"describeFilePath.js","sourceRoot":"","sources":["../../src/create-program/describeFilePath.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,SAAgB,gBAAgB,CAC9B,QAAgB,EAChB,eAAuB;IAEvB,4DAA4D;IAC5D,gDAAgD;IAChD,MAAM,QAAQ,GAAG,cAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC;IAC1D,IAAI,QAAQ,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,cAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QACxE,OAAO,qBAAqB,QAAQ,EAAE,CAAC;KACxC;IAED,uEAAuE;IACvE,+DAA+D;IAC/D,uEAAuE;IACvE,qEAAqE;IACrE,IAAI,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;QAClC,OAAO,QAAQ,CAAC;KACjB;IAED,qEAAqE;IACrE,8CAA8C;IAC9C,IAAI,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;QAClC,OAAO,QAAQ,CAAC;KACjB;IAED,yEAAyE;IACzE,uDAAuD;IACvD,OAAO,qBAAqB,QAAQ,EAAE,CAAC;AACzC,CAAC;AA5BD,4CA4BC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts deleted file mode 100644 index 6db50587..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import * as ts from 'typescript'; -declare function getScriptKind(filePath: string, jsx: boolean): ts.ScriptKind; -declare function getLanguageVariant(scriptKind: ts.ScriptKind): ts.LanguageVariant; -export { getScriptKind, getLanguageVariant }; -//# sourceMappingURL=getScriptKind.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts.map deleted file mode 100644 index a53274ef..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getScriptKind.d.ts","sourceRoot":"","sources":["../../src/create-program/getScriptKind.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,iBAAS,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,EAAE,CAAC,UAAU,CA8BpE;AAED,iBAAS,kBAAkB,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,GAAG,EAAE,CAAC,eAAe,CAYzE;AAED,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js deleted file mode 100644 index 964439ba..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getLanguageVariant = exports.getScriptKind = void 0; -const path_1 = __importDefault(require("path")); -const ts = __importStar(require("typescript")); -function getScriptKind(filePath, jsx) { - const extension = path_1.default.extname(filePath).toLowerCase(); - // note - we only respect the user's jsx setting for unknown extensions - // this is so that we always match TS's internal script kind logic, preventing - // weird errors due to a mismatch. - // https://github.com/microsoft/TypeScript/blob/da00ba67ed1182ad334f7c713b8254fba174aeba/src/compiler/utilities.ts#L6948-L6968 - switch (extension) { - case ts.Extension.Js: - case ts.Extension.Cjs: - case ts.Extension.Mjs: - return ts.ScriptKind.JS; - case ts.Extension.Jsx: - return ts.ScriptKind.JSX; - case ts.Extension.Ts: - case ts.Extension.Cts: - case ts.Extension.Mts: - return ts.ScriptKind.TS; - case ts.Extension.Tsx: - return ts.ScriptKind.TSX; - case ts.Extension.Json: - return ts.ScriptKind.JSON; - default: - // unknown extension, force typescript to ignore the file extension, and respect the user's setting - return jsx ? ts.ScriptKind.TSX : ts.ScriptKind.TS; - } -} -exports.getScriptKind = getScriptKind; -function getLanguageVariant(scriptKind) { - // https://github.com/microsoft/TypeScript/blob/d6e483b8dabd8fd37c00954c3f2184bb7f1eb90c/src/compiler/utilities.ts#L6281-L6285 - switch (scriptKind) { - case ts.ScriptKind.TSX: - case ts.ScriptKind.JSX: - case ts.ScriptKind.JS: - case ts.ScriptKind.JSON: - return ts.LanguageVariant.JSX; - default: - return ts.LanguageVariant.Standard; - } -} -exports.getLanguageVariant = getLanguageVariant; -//# sourceMappingURL=getScriptKind.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map deleted file mode 100644 index 23e1a75d..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getScriptKind.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getScriptKind.js","sourceRoot":"","sources":["../../src/create-program/getScriptKind.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,+CAAiC;AAEjC,SAAS,aAAa,CAAC,QAAgB,EAAE,GAAY;IACnD,MAAM,SAAS,GAAG,cAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,CAAC;IACvD,uEAAuE;IACvE,8EAA8E;IAC9E,kCAAkC;IAClC,8HAA8H;IAC9H,QAAQ,SAAS,EAAE;QACjB,KAAK,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC;QACrB,KAAK,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC;QACtB,KAAK,EAAE,CAAC,SAAS,CAAC,GAAG;YACnB,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QAE1B,KAAK,EAAE,CAAC,SAAS,CAAC,GAAG;YACnB,OAAO,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;QAE3B,KAAK,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC;QACrB,KAAK,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC;QACtB,KAAK,EAAE,CAAC,SAAS,CAAC,GAAG;YACnB,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QAE1B,KAAK,EAAE,CAAC,SAAS,CAAC,GAAG;YACnB,OAAO,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;QAE3B,KAAK,EAAE,CAAC,SAAS,CAAC,IAAI;YACpB,OAAO,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;QAE5B;YACE,mGAAmG;YACnG,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;KACrD;AACH,CAAC;AAgBQ,sCAAa;AAdtB,SAAS,kBAAkB,CAAC,UAAyB;IACnD,8HAA8H;IAC9H,QAAQ,UAAU,EAAE;QAClB,KAAK,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;QACvB,KAAK,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;QACvB,KAAK,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QACtB,KAAK,EAAE,CAAC,UAAU,CAAC,IAAI;YACrB,OAAO,EAAE,CAAC,eAAe,CAAC,GAAG,CAAC;QAEhC;YACE,OAAO,EAAE,CAAC,eAAe,CAAC,QAAQ,CAAC;KACtC;AACH,CAAC;AAEuB,gDAAkB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts deleted file mode 100644 index 621d9bd6..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import * as ts from 'typescript'; -import type { ParseSettings } from '../parseSettings'; -/** - * Clear all of the parser caches. - * This should only be used in testing to ensure the parser is clean between tests. - */ -declare function clearWatchCaches(): void; -/** - * Calculate project environments using options provided by consumer and paths from config - * @param parseSettings Internal settings for parsing the file - * @returns The programs corresponding to the supplied tsconfig paths - */ -declare function getWatchProgramsForProjects(parseSettings: ParseSettings): ts.Program[]; -export { clearWatchCaches, getWatchProgramsForProjects }; -//# sourceMappingURL=getWatchProgramsForProjects.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map deleted file mode 100644 index 07ea2104..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getWatchProgramsForProjects.d.ts","sourceRoot":"","sources":["../../src/create-program/getWatchProgramsForProjects.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA8CtD;;;GAGG;AACH,iBAAS,gBAAgB,IAAI,IAAI,CAOhC;AA6DD;;;;GAIG;AACH,iBAAS,2BAA2B,CAClC,aAAa,EAAE,aAAa,GAC3B,EAAE,CAAC,OAAO,EAAE,CAuHd;AAoSD,OAAO,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js deleted file mode 100644 index 8b95cea2..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js +++ /dev/null @@ -1,409 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getWatchProgramsForProjects = exports.clearWatchCaches = void 0; -const debug_1 = __importDefault(require("debug")); -const fs_1 = __importDefault(require("fs")); -const semver_1 = __importDefault(require("semver")); -const ts = __importStar(require("typescript")); -const shared_1 = require("./shared"); -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:createWatchProgram'); -/** - * Maps tsconfig paths to their corresponding file contents and resulting watches - */ -const knownWatchProgramMap = new Map(); -/** - * Maps file/folder paths to their set of corresponding watch callbacks - * There may be more than one per file/folder if a file/folder is shared between projects - */ -const fileWatchCallbackTrackingMap = new Map(); -const folderWatchCallbackTrackingMap = new Map(); -/** - * Stores the list of known files for each program - */ -const programFileListCache = new Map(); -/** - * Caches the last modified time of the tsconfig files - */ -const tsconfigLastModifiedTimestampCache = new Map(); -const parsedFilesSeenHash = new Map(); -/** - * Clear all of the parser caches. - * This should only be used in testing to ensure the parser is clean between tests. - */ -function clearWatchCaches() { - knownWatchProgramMap.clear(); - fileWatchCallbackTrackingMap.clear(); - folderWatchCallbackTrackingMap.clear(); - parsedFilesSeenHash.clear(); - programFileListCache.clear(); - tsconfigLastModifiedTimestampCache.clear(); -} -exports.clearWatchCaches = clearWatchCaches; -function saveWatchCallback(trackingMap) { - return (fileName, callback) => { - const normalizedFileName = (0, shared_1.getCanonicalFileName)(fileName); - const watchers = (() => { - let watchers = trackingMap.get(normalizedFileName); - if (!watchers) { - watchers = new Set(); - trackingMap.set(normalizedFileName, watchers); - } - return watchers; - })(); - watchers.add(callback); - return { - close: () => { - watchers.delete(callback); - }, - }; - }; -} -/** - * Holds information about the file currently being linted - */ -const currentLintOperationState = { - code: '', - filePath: '', -}; -/** - * Appropriately report issues found when reading a config file - * @param diagnostic The diagnostic raised when creating a program - */ -function diagnosticReporter(diagnostic) { - throw new Error(ts.flattenDiagnosticMessageText(diagnostic.messageText, ts.sys.newLine)); -} -function updateCachedFileList(tsconfigPath, program, parseSettings) { - const fileList = parseSettings.EXPERIMENTAL_useSourceOfProjectReferenceRedirect - ? new Set(program.getSourceFiles().map(sf => (0, shared_1.getCanonicalFileName)(sf.fileName))) - : new Set(program.getRootFileNames().map(f => (0, shared_1.getCanonicalFileName)(f))); - programFileListCache.set(tsconfigPath, fileList); - return fileList; -} -/** - * Calculate project environments using options provided by consumer and paths from config - * @param parseSettings Internal settings for parsing the file - * @returns The programs corresponding to the supplied tsconfig paths - */ -function getWatchProgramsForProjects(parseSettings) { - const filePath = (0, shared_1.getCanonicalFileName)(parseSettings.filePath); - const results = []; - // preserve reference to code and file being linted - currentLintOperationState.code = parseSettings.code; - currentLintOperationState.filePath = filePath; - // Update file version if necessary - const fileWatchCallbacks = fileWatchCallbackTrackingMap.get(filePath); - const codeHash = (0, shared_1.createHash)(parseSettings.code); - if (parsedFilesSeenHash.get(filePath) !== codeHash && - fileWatchCallbacks && - fileWatchCallbacks.size > 0) { - fileWatchCallbacks.forEach(cb => cb(filePath, ts.FileWatcherEventKind.Changed)); - } - const currentProjectsFromSettings = new Set(parseSettings.projects); - /* - * before we go into the process of attempting to find and update every program - * see if we know of a program that contains this file - */ - for (const [tsconfigPath, existingWatch] of knownWatchProgramMap.entries()) { - if (!currentProjectsFromSettings.has(tsconfigPath)) { - // the current parser run doesn't specify this tsconfig in parserOptions.project - // so we don't want to consider it for caching purposes. - // - // if we did consider it we might return a program for a project - // that wasn't specified in the current parser run (which is obv bad!). - continue; - } - let fileList = programFileListCache.get(tsconfigPath); - let updatedProgram = null; - if (!fileList) { - updatedProgram = existingWatch.getProgram().getProgram(); - fileList = updateCachedFileList(tsconfigPath, updatedProgram, parseSettings); - } - if (fileList.has(filePath)) { - log('Found existing program for file. %s', filePath); - updatedProgram = - updatedProgram !== null && updatedProgram !== void 0 ? updatedProgram : existingWatch.getProgram().getProgram(); - // sets parent pointers in source files - updatedProgram.getTypeChecker(); - return [updatedProgram]; - } - } - log('File did not belong to any existing programs, moving to create/update. %s', filePath); - /* - * We don't know of a program that contains the file, this means that either: - * - the required program hasn't been created yet, or - * - the file is new/renamed, and the program hasn't been updated. - */ - for (const tsconfigPath of parseSettings.projects) { - const existingWatch = knownWatchProgramMap.get(tsconfigPath); - if (existingWatch) { - const updatedProgram = maybeInvalidateProgram(existingWatch, filePath, tsconfigPath); - if (!updatedProgram) { - continue; - } - // sets parent pointers in source files - updatedProgram.getTypeChecker(); - // cache and check the file list - const fileList = updateCachedFileList(tsconfigPath, updatedProgram, parseSettings); - if (fileList.has(filePath)) { - log('Found updated program for file. %s', filePath); - // we can return early because we know this program contains the file - return [updatedProgram]; - } - results.push(updatedProgram); - continue; - } - const programWatch = createWatchProgram(tsconfigPath, parseSettings); - knownWatchProgramMap.set(tsconfigPath, programWatch); - const program = programWatch.getProgram().getProgram(); - // sets parent pointers in source files - program.getTypeChecker(); - // cache and check the file list - const fileList = updateCachedFileList(tsconfigPath, program, parseSettings); - if (fileList.has(filePath)) { - log('Found program for file. %s', filePath); - // we can return early because we know this program contains the file - return [program]; - } - results.push(program); - } - return results; -} -exports.getWatchProgramsForProjects = getWatchProgramsForProjects; -const isRunningNoTimeoutFix = semver_1.default.satisfies(ts.version, '>=3.9.0-beta', { - includePrerelease: true, -}); -function createWatchProgram(tsconfigPath, parseSettings) { - log('Creating watch program for %s.', tsconfigPath); - // create compiler host - const watchCompilerHost = ts.createWatchCompilerHost(tsconfigPath, (0, shared_1.createDefaultCompilerOptionsFromExtra)(parseSettings), ts.sys, ts.createAbstractBuilder, diagnosticReporter, - /*reportWatchStatus*/ () => { }); - if (parseSettings.moduleResolver) { - // eslint-disable-next-line deprecation/deprecation -- intentional for older TS versions - watchCompilerHost.resolveModuleNames = (0, shared_1.getModuleResolver)(parseSettings.moduleResolver).resolveModuleNames; - } - // ensure readFile reads the code being linted instead of the copy on disk - const oldReadFile = watchCompilerHost.readFile; - watchCompilerHost.readFile = (filePathIn, encoding) => { - const filePath = (0, shared_1.getCanonicalFileName)(filePathIn); - const fileContent = filePath === currentLintOperationState.filePath - ? currentLintOperationState.code - : oldReadFile(filePath, encoding); - if (fileContent !== undefined) { - parsedFilesSeenHash.set(filePath, (0, shared_1.createHash)(fileContent)); - } - return fileContent; - }; - // ensure process reports error on failure instead of exiting process immediately - watchCompilerHost.onUnRecoverableConfigFileDiagnostic = diagnosticReporter; - // ensure process doesn't emit programs - watchCompilerHost.afterProgramCreate = (program) => { - // report error if there are any errors in the config file - const configFileDiagnostics = program - .getConfigFileParsingDiagnostics() - .filter(diag => diag.category === ts.DiagnosticCategory.Error && diag.code !== 18003); - if (configFileDiagnostics.length > 0) { - diagnosticReporter(configFileDiagnostics[0]); - } - }; - /* - * From the CLI, the file watchers won't matter, as the files will be parsed once and then forgotten. - * When running from an IDE, these watchers will let us tell typescript about changes. - * - * ESLint IDE plugins will send us unfinished file content as the user types (before it's saved to disk). - * We use the file watchers to tell typescript about this latest file content. - * - * When files are created (or renamed), we won't know about them because we have no filesystem watchers attached. - * We use the folder watchers to tell typescript it needs to go and find new files in the project folders. - */ - watchCompilerHost.watchFile = saveWatchCallback(fileWatchCallbackTrackingMap); - watchCompilerHost.watchDirectory = saveWatchCallback(folderWatchCallbackTrackingMap); - // allow files with custom extensions to be included in program (uses internal ts api) - const oldOnDirectoryStructureHostCreate = watchCompilerHost.onCachedDirectoryStructureHostCreate; - watchCompilerHost.onCachedDirectoryStructureHostCreate = (host) => { - const oldReadDirectory = host.readDirectory; - host.readDirectory = (path, extensions, exclude, include, depth) => oldReadDirectory(path, !extensions - ? undefined - : extensions.concat(parseSettings.extraFileExtensions), exclude, include, depth); - oldOnDirectoryStructureHostCreate(host); - }; - // This works only on 3.9 - watchCompilerHost.extraFileExtensions = parseSettings.extraFileExtensions.map(extension => ({ - extension, - isMixedContent: true, - scriptKind: ts.ScriptKind.Deferred, - })); - watchCompilerHost.trace = log; - /** - * TODO: this needs refinement and development, but we're allowing users to opt-in to this for now for testing and feedback. - * See https://github.com/typescript-eslint/typescript-eslint/issues/2094 - */ - watchCompilerHost.useSourceOfProjectReferenceRedirect = () => parseSettings.EXPERIMENTAL_useSourceOfProjectReferenceRedirect; - // Since we don't want to asynchronously update program we want to disable timeout methods - // So any changes in the program will be delayed and updated when getProgram is called on watch - let callback; - if (isRunningNoTimeoutFix) { - watchCompilerHost.setTimeout = undefined; - watchCompilerHost.clearTimeout = undefined; - } - else { - log('Running without timeout fix'); - // But because of https://github.com/microsoft/TypeScript/pull/37308 we cannot just set it to undefined - // instead save it and call before getProgram is called - watchCompilerHost.setTimeout = (cb, _ms, ...args) => { - callback = cb.bind(/*this*/ undefined, ...args); - return callback; - }; - watchCompilerHost.clearTimeout = () => { - callback = undefined; - }; - } - const watch = ts.createWatchProgram(watchCompilerHost); - if (!isRunningNoTimeoutFix) { - const originalGetProgram = watch.getProgram; - watch.getProgram = () => { - if (callback) { - callback(); - } - callback = undefined; - return originalGetProgram.call(watch); - }; - } - return watch; -} -function hasTSConfigChanged(tsconfigPath) { - const stat = fs_1.default.statSync(tsconfigPath); - const lastModifiedAt = stat.mtimeMs; - const cachedLastModifiedAt = tsconfigLastModifiedTimestampCache.get(tsconfigPath); - tsconfigLastModifiedTimestampCache.set(tsconfigPath, lastModifiedAt); - if (cachedLastModifiedAt === undefined) { - return false; - } - return Math.abs(cachedLastModifiedAt - lastModifiedAt) > Number.EPSILON; -} -function maybeInvalidateProgram(existingWatch, filePath, tsconfigPath) { - /* - * By calling watchProgram.getProgram(), it will trigger a resync of the program based on - * whatever new file content we've given it from our input. - */ - let updatedProgram = existingWatch.getProgram().getProgram(); - // In case this change causes problems in larger real world codebases - // Provide an escape hatch so people don't _have_ to revert to an older version - if (process.env.TSESTREE_NO_INVALIDATION === 'true') { - return updatedProgram; - } - if (hasTSConfigChanged(tsconfigPath)) { - /* - * If the stat of the tsconfig has changed, that could mean the include/exclude/files lists has changed - * We need to make sure typescript knows this so it can update appropriately - */ - log('tsconfig has changed - triggering program update. %s', tsconfigPath); - fileWatchCallbackTrackingMap - .get(tsconfigPath) - .forEach(cb => cb(tsconfigPath, ts.FileWatcherEventKind.Changed)); - // tsconfig change means that the file list more than likely changed, so clear the cache - programFileListCache.delete(tsconfigPath); - } - let sourceFile = updatedProgram.getSourceFile(filePath); - if (sourceFile) { - return updatedProgram; - } - /* - * Missing source file means our program's folder structure might be out of date. - * So we need to tell typescript it needs to update the correct folder. - */ - log('File was not found in program - triggering folder update. %s', filePath); - // Find the correct directory callback by climbing the folder tree - const currentDir = (0, shared_1.canonicalDirname)(filePath); - let current = null; - let next = currentDir; - let hasCallback = false; - while (current !== next) { - current = next; - const folderWatchCallbacks = folderWatchCallbackTrackingMap.get(current); - if (folderWatchCallbacks) { - folderWatchCallbacks.forEach(cb => { - if (currentDir !== current) { - cb(currentDir, ts.FileWatcherEventKind.Changed); - } - cb(current, ts.FileWatcherEventKind.Changed); - }); - hasCallback = true; - } - next = (0, shared_1.canonicalDirname)(current); - } - if (!hasCallback) { - /* - * No callback means the paths don't matchup - so no point returning any program - * this will signal to the caller to skip this program - */ - log('No callback found for file, not part of this program. %s', filePath); - return null; - } - // directory update means that the file list more than likely changed, so clear the cache - programFileListCache.delete(tsconfigPath); - // force the immediate resync - updatedProgram = existingWatch.getProgram().getProgram(); - sourceFile = updatedProgram.getSourceFile(filePath); - if (sourceFile) { - return updatedProgram; - } - /* - * At this point we're in one of two states: - * - The file isn't supposed to be in this program due to exclusions - * - The file is new, and was renamed from an old, included filename - * - * For the latter case, we need to tell typescript that the old filename is now deleted - */ - log('File was still not found in program after directory update - checking file deletions. %s', filePath); - const rootFilenames = updatedProgram.getRootFileNames(); - // use find because we only need to "delete" one file to cause typescript to do a full resync - const deletedFile = rootFilenames.find(file => !fs_1.default.existsSync(file)); - if (!deletedFile) { - // There are no deleted files, so it must be the former case of the file not belonging to this program - return null; - } - const fileWatchCallbacks = fileWatchCallbackTrackingMap.get((0, shared_1.getCanonicalFileName)(deletedFile)); - if (!fileWatchCallbacks) { - // shouldn't happen, but just in case - log('Could not find watch callbacks for root file. %s', deletedFile); - return updatedProgram; - } - log('Marking file as deleted. %s', deletedFile); - fileWatchCallbacks.forEach(cb => cb(deletedFile, ts.FileWatcherEventKind.Deleted)); - // deleted files means that the file list _has_ changed, so clear the cache - programFileListCache.delete(tsconfigPath); - updatedProgram = existingWatch.getProgram().getProgram(); - sourceFile = updatedProgram.getSourceFile(filePath); - if (sourceFile) { - return updatedProgram; - } - log('File was still not found in program after deletion check, assuming it is not part of this program. %s', filePath); - return null; -} -//# sourceMappingURL=getWatchProgramsForProjects.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map deleted file mode 100644 index 8647bfe2..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getWatchProgramsForProjects.js","sourceRoot":"","sources":["../../src/create-program/getWatchProgramsForProjects.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,4CAAoB;AACpB,oDAA4B;AAC5B,+CAAiC;AAIjC,qCAMkB;AAGlB,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,wDAAwD,CAAC,CAAC;AAE5E;;G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d,OAAO,cAAc,CAAC;KACvB;IAED;;;;;;OAMG;IACH,GAAG,CACD,0FAA0F,EAC1F,QAAQ,CACT,CAAC;IAEF,MAAM,aAAa,GAAG,cAAc,CAAC,gBAAgB,EAAE,CAAC;IACxD,6FAA6F;IAC7F,MAAM,WAAW,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,YAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IACrE,IAAI,CAAC,WAAW,EAAE;QAChB,sGAAsG;QACtG,OAAO,IAAI,CAAC;KACb;IAED,MAAM,kBAAkB,GAAG,4BAA4B,CAAC,GAAG,CACzD,IAAA,6BAAoB,EAAC,WAAW,CAAC,CAClC,CAAC;IACF,IAAI,CAAC,kBAAkB,EAAE;QACvB,qCAAqC;QACrC,GAAG,CAAC,kDAAkD,EAAE,WAAW,CAAC,CAAC;QACrE,OAAO,cAAc,CAAC;KACvB;IAED,GAAG,CAAC,6BAA6B,EAAE,WAAW,CAAC,CAAC;IAChD,kBAAkB,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAC9B,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,oBAAoB,CAAC,OAAO,CAAC,CACjD,CAAC;IAEF,2EAA2E;IAC3E,oBAAoB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAE1C,cAAc,GAAG,aAAa,CAAC,UAAU,EAAE,CAAC,UAAU,EAAE,CAAC;IACzD,UAAU,GAAG,cAAc,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IACpD,IAAI,UAAU,EAAE;QACd,OAAO,cAAc,CAAC;KACvB;IAED,GAAG,CACD,uGAAuG,EACvG,QAAQ,CACT,CAAC;IACF,OAAO,IAAI,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts deleted file mode 100644 index bea8557b..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import type { Program } from 'typescript'; -import * as ts from 'typescript'; -import type { ModuleResolver } from '../parser-options'; -import type { ParseSettings } from '../parseSettings'; -interface ASTAndProgram { - ast: ts.SourceFile; - program: ts.Program; -} -/** - * Compiler options required to avoid critical functionality issues - */ -declare const CORE_COMPILER_OPTIONS: ts.CompilerOptions; -declare function createDefaultCompilerOptionsFromExtra(parseSettings: ParseSettings): ts.CompilerOptions; -type CanonicalPath = string & { - __brand: unknown; -}; -declare function getCanonicalFileName(filePath: string): CanonicalPath; -declare function ensureAbsolutePath(p: string, tsconfigRootDir: string): string; -declare function canonicalDirname(p: CanonicalPath): CanonicalPath; -declare function getAstFromProgram(currentProgram: Program, parseSettings: ParseSettings): ASTAndProgram | undefined; -declare function getModuleResolver(moduleResolverPath: string): ModuleResolver; -/** - * Hash content for compare content. - * @param content hashed contend - * @returns hashed result - */ -declare function createHash(content: string): string; -export { ASTAndProgram, CORE_COMPILER_OPTIONS, canonicalDirname, CanonicalPath, createDefaultCompilerOptionsFromExtra, createHash, ensureAbsolutePath, getCanonicalFileName, getAstFromProgram, getModuleResolver, }; -//# sourceMappingURL=shared.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map deleted file mode 100644 index 570eca11..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/create-program/shared.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,UAAU,aAAa;IACrB,GAAG,EAAE,EAAE,CAAC,UAAU,CAAC;IACnB,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,QAAA,MAAM,qBAAqB,EAAE,EAAE,CAAC,eAQ/B,CAAC;AAYF,iBAAS,qCAAqC,CAC5C,aAAa,EAAE,aAAa,GAC3B,EAAE,CAAC,eAAe,CASpB;AAGD,KAAK,aAAa,GAAG,MAAM,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC;AASnD,iBAAS,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa,CAM7D;AAED,iBAAS,kBAAkB,CAAC,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,MAAM,CAItE;AAED,iBAAS,gBAAgB,CAAC,CAAC,EAAE,aAAa,GAAG,aAAa,CAEzD;AAmBD,iBAAS,iBAAiB,CACxB,cAAc,EAAE,OAAO,EACvB,aAAa,EAAE,aAAa,GAC3B,aAAa,GAAG,SAAS,CAW3B;AAED,iBAAS,iBAAiB,CAAC,kBAAkB,EAAE,MAAM,GAAG,cAAc,CAerE;AAED;;;;GAIG;AACH,iBAAS,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAM3C;AAED,OAAO,EACL,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,qCAAqC,EACrC,UAAU,EACV,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,GAClB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js deleted file mode 100644 index 89d5fbfe..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +++ /dev/null @@ -1,130 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getModuleResolver = exports.getAstFromProgram = exports.getCanonicalFileName = exports.ensureAbsolutePath = exports.createHash = exports.createDefaultCompilerOptionsFromExtra = exports.canonicalDirname = exports.CORE_COMPILER_OPTIONS = void 0; -const path_1 = __importDefault(require("path")); -const ts = __importStar(require("typescript")); -/** - * Compiler options required to avoid critical functionality issues - */ -const CORE_COMPILER_OPTIONS = { - noEmit: true, - /** - * Flags required to make no-unused-vars work - */ - noUnusedLocals: true, - noUnusedParameters: true, -}; -exports.CORE_COMPILER_OPTIONS = CORE_COMPILER_OPTIONS; -/** - * Default compiler options for program generation - */ -const DEFAULT_COMPILER_OPTIONS = Object.assign(Object.assign({}, CORE_COMPILER_OPTIONS), { allowNonTsExtensions: true, allowJs: true, checkJs: true }); -function createDefaultCompilerOptionsFromExtra(parseSettings) { - if (parseSettings.debugLevel.has('typescript')) { - return Object.assign(Object.assign({}, DEFAULT_COMPILER_OPTIONS), { extendedDiagnostics: true }); - } - return DEFAULT_COMPILER_OPTIONS; -} -exports.createDefaultCompilerOptionsFromExtra = createDefaultCompilerOptionsFromExtra; -// typescript doesn't provide a ts.sys implementation for browser environments -const useCaseSensitiveFileNames = ts.sys !== undefined ? ts.sys.useCaseSensitiveFileNames : true; -const correctPathCasing = useCaseSensitiveFileNames - ? (filePath) => filePath - : (filePath) => filePath.toLowerCase(); -function getCanonicalFileName(filePath) { - let normalized = path_1.default.normalize(filePath); - if (normalized.endsWith(path_1.default.sep)) { - normalized = normalized.slice(0, -1); - } - return correctPathCasing(normalized); -} -exports.getCanonicalFileName = getCanonicalFileName; -function ensureAbsolutePath(p, tsconfigRootDir) { - return path_1.default.isAbsolute(p) - ? p - : path_1.default.join(tsconfigRootDir || process.cwd(), p); -} -exports.ensureAbsolutePath = ensureAbsolutePath; -function canonicalDirname(p) { - return path_1.default.dirname(p); -} -exports.canonicalDirname = canonicalDirname; -const DEFINITION_EXTENSIONS = [ - ts.Extension.Dts, - ts.Extension.Dcts, - ts.Extension.Dmts, -]; -function getExtension(fileName) { - var _a; - if (!fileName) { - return null; - } - return ((_a = DEFINITION_EXTENSIONS.find(definitionExt => fileName.endsWith(definitionExt))) !== null && _a !== void 0 ? _a : path_1.default.extname(fileName)); -} -function getAstFromProgram(currentProgram, parseSettings) { - const ast = currentProgram.getSourceFile(parseSettings.filePath); - // working around https://github.com/typescript-eslint/typescript-eslint/issues/1573 - const expectedExt = getExtension(parseSettings.filePath); - const returnedExt = getExtension(ast === null || ast === void 0 ? void 0 : ast.fileName); - if (expectedExt !== returnedExt) { - return undefined; - } - return ast && { ast, program: currentProgram }; -} -exports.getAstFromProgram = getAstFromProgram; -function getModuleResolver(moduleResolverPath) { - let moduleResolver; - try { - moduleResolver = require(moduleResolverPath); - } - catch (error) { - const errorLines = [ - 'Could not find the provided parserOptions.moduleResolver.', - 'Hint: use an absolute path if you are not in control over where the ESLint instance runs.', - ]; - throw new Error(errorLines.join('\n')); - } - return moduleResolver; -} -exports.getModuleResolver = getModuleResolver; -/** - * Hash content for compare content. - * @param content hashed contend - * @returns hashed result - */ -function createHash(content) { - var _a; - // No ts.sys in browser environments. - if ((_a = ts.sys) === null || _a === void 0 ? void 0 : _a.createHash) { - return ts.sys.createHash(content); - } - return content; -} -exports.createHash = createHash; -//# sourceMappingURL=shared.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map deleted file mode 100644 index 5952c31d..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/create-program/shared.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAwB;AAExB,+CAAiC;AAUjC;;GAEG;AACH,MAAM,qBAAqB,GAAuB;IAChD,MAAM,EAAE,IAAI;IAEZ;;OAEG;IACH,cAAc,EAAE,IAAI;IACpB,kBAAkB,EAAE,IAAI;CACzB,CAAC;AAsHA,sDAAqB;AApHvB;;GAEG;AACH,MAAM,wBAAwB,mCACzB,qBAAqB,KACxB,oBAAoB,EAAE,IAAI,EAC1B,OAAO,EAAE,IAAI,EACb,OAAO,EAAE,IAAI,GACd,CAAC;AAEF,SAAS,qCAAqC,CAC5C,aAA4B;IAE5B,IAAI,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE;QAC9C,uCACK,wBAAwB,KAC3B,mBAAmB,EAAE,IAAI,IACzB;KACH;IAED,OAAO,wBAAwB,CAAC;AAClC,CAAC;AAkGC,sFAAqC;AA7FvC,8EAA8E;AAC9E,MAAM,yBAAyB,GAC7B,EAAE,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC,CAAC,IAAI,CAAC;AACjE,MAAM,iBAAiB,GAAG,yBAAyB;IACjD,CAAC,CAAC,CAAC,QAAgB,EAAU,EAAE,CAAC,QAA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,cAAuB,EACvB,aAA4B;IAE5B,MAAM,GAAG,GAAG,cAAc,CAAC,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAEjE,oFAAoF;IACpF,MAAM,WAAW,GAAG,YAAY,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IACzD,MAAM,WAAW,GAAG,YAAY,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,QAAQ,CAAC,CAAC;IAChD,IAAI,WAAW,KAAK,WAAW,EAAE;QAC/B,OAAO,SAAS,CAAC;KAClB;IAED,OAAO,GAAG,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;AACjD,CAAC;AAyCC,8CAAiB;AAvCnB,SAAS,iBAAiB,CAAC,kBAA0B;IACnD,IAAI,cAA8B,CAAC;IAEnC,IAAI;QACF,cAAc,GAAG,OAAO,CAAC,kBAAkB,CAAmB,CAAC;KAChE;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,UAAU,GAAG;YACjB,2DAA2D;YAC3D,2FAA2F;SAC5F,CAAC;QAEF,MAAM,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;KACxC;IAED,OAAO,cAAc,CAAC;AACxB,CAAC;AAyBC,8CAAiB;AAvBnB;;;;GAIG;AACH,SAAS,UAAU,CAAC,OAAe;;IACjC,qCAAqC;IACrC,IAAI,MAAA,EAAE,CAAC,GAAG,0CAAE,UAAU,EAAE;QACtB,OAAO,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;KACnC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAQC,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts deleted file mode 100644 index 31e8b10b..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import * as ts from 'typescript'; -import type { ParseSettings } from '../parseSettings'; -import type { ASTAndProgram } from './shared'; -declare function useProvidedPrograms(programInstances: Iterable, parseSettings: ParseSettings): ASTAndProgram | undefined; -/** - * Utility offered by parser to help consumers construct their own program instance. - * - * @param configFile the path to the tsconfig.json file, relative to `projectDirectory` - * @param projectDirectory the project directory to use as the CWD, defaults to `process.cwd()` - */ -declare function createProgramFromConfigFile(configFile: string, projectDirectory?: string): ts.Program; -export { useProvidedPrograms, createProgramFromConfigFile }; -//# sourceMappingURL=useProvidedPrograms.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts.map deleted file mode 100644 index fe301b58..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useProvidedPrograms.d.ts","sourceRoot":"","sources":["../../src/create-program/useProvidedPrograms.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAK9C,iBAAS,mBAAmB,CAC1B,gBAAgB,EAAE,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,EACtC,aAAa,EAAE,aAAa,GAC3B,aAAa,GAAG,SAAS,CA+B3B;AAED;;;;;GAKG;AACH,iBAAS,2BAA2B,CAClC,UAAU,EAAE,MAAM,EAClB,gBAAgB,CAAC,EAAE,MAAM,GACxB,EAAE,CAAC,OAAO,CA4BZ;AAUD,OAAO,EAAE,mBAAmB,EAAE,2BAA2B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js deleted file mode 100644 index 5b291e94..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js +++ /dev/null @@ -1,93 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createProgramFromConfigFile = exports.useProvidedPrograms = void 0; -const debug_1 = __importDefault(require("debug")); -const fs = __importStar(require("fs")); -const path = __importStar(require("path")); -const ts = __importStar(require("typescript")); -const shared_1 = require("./shared"); -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:useProvidedProgram'); -function useProvidedPrograms(programInstances, parseSettings) { - log('Retrieving ast for %s from provided program instance(s)', parseSettings.filePath); - let astAndProgram; - for (const programInstance of programInstances) { - astAndProgram = (0, shared_1.getAstFromProgram)(programInstance, parseSettings); - // Stop at the first applicable program instance - if (astAndProgram) { - break; - } - } - if (!astAndProgram) { - const relativeFilePath = path.relative(parseSettings.tsconfigRootDir || process.cwd(), parseSettings.filePath); - const errorLines = [ - '"parserOptions.programs" has been provided for @typescript-eslint/parser.', - `The file was not found in any of the provided program instance(s): ${relativeFilePath}`, - ]; - throw new Error(errorLines.join('\n')); - } - astAndProgram.program.getTypeChecker(); // ensure parent pointers are set in source files - return astAndProgram; -} -exports.useProvidedPrograms = useProvidedPrograms; -/** - * Utility offered by parser to help consumers construct their own program instance. - * - * @param configFile the path to the tsconfig.json file, relative to `projectDirectory` - * @param projectDirectory the project directory to use as the CWD, defaults to `process.cwd()` - */ -function createProgramFromConfigFile(configFile, projectDirectory) { - if (ts.sys === undefined) { - throw new Error('`createProgramFromConfigFile` is only supported in a Node-like environment.'); - } - const parsed = ts.getParsedCommandLineOfConfigFile(configFile, shared_1.CORE_COMPILER_OPTIONS, { - onUnRecoverableConfigFileDiagnostic: diag => { - throw new Error(formatDiagnostics([diag])); // ensures that `parsed` is defined. - }, - fileExists: fs.existsSync, - getCurrentDirectory: () => (projectDirectory && path.resolve(projectDirectory)) || process.cwd(), - readDirectory: ts.sys.readDirectory, - readFile: file => fs.readFileSync(file, 'utf-8'), - useCaseSensitiveFileNames: ts.sys.useCaseSensitiveFileNames, - }); - const result = parsed; // parsed is not undefined, since we throw on failure. - if (result.errors.length) { - throw new Error(formatDiagnostics(result.errors)); - } - const host = ts.createCompilerHost(result.options, true); - return ts.createProgram(result.fileNames, result.options, host); -} -exports.createProgramFromConfigFile = createProgramFromConfigFile; -function formatDiagnostics(diagnostics) { - return ts.formatDiagnostics(diagnostics, { - getCanonicalFileName: f => f, - getCurrentDirectory: process.cwd, - getNewLine: () => '\n', - }); -} -//# sourceMappingURL=useProvidedPrograms.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map deleted file mode 100644 index 180e0905..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/create-program/useProvidedPrograms.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useProvidedPrograms.js","sourceRoot":"","sources":["../../src/create-program/useProvidedPrograms.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,uCAAyB;AACzB,2CAA6B;AAC7B,+CAAiC;AAIjC,qCAAoE;AAEpE,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,wDAAwD,CAAC,CAAC;AAE5E,SAAS,mBAAmB,CAC1B,gBAAsC,EACtC,aAA4B;IAE5B,GAAG,CACD,yDAAyD,EACzD,aAAa,CAAC,QAAQ,CACvB,CAAC;IAEF,IAAI,aAAwC,CAAC;IAC7C,KAAK,MAAM,eAAe,IAAI,gBAAgB,EAAE;QAC9C,aAAa,GAAG,IAAA,0BAAiB,EAAC,eAAe,EAAE,aAAa,CAAC,CAAC;QAClE,gDAAgD;QAChD,IAAI,aAAa,EAAE;YACjB,MAAM;SACP;KACF;IAED,IAAI,CAAC,aAAa,EAAE;QAClB,MAAM,gBAAgB,GAAG,IAAI,CAAC,QAAQ,CACpC,aAAa,CAAC,eAAe,IAAI,OAAO,CAAC,GAAG,EAAE,EAC9C,aAAa,CAAC,QAAQ,CACvB,CAAC;QACF,MAAM,UAAU,GAAG;YACjB,2EAA2E;YAC3E,sEAAsE,gBAAgB,EAAE;SACzF,CAAC;QAEF,MAAM,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;KACxC;IAED,aAAa,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC,iDAAiD;IAEzF,OAAO,aAAa,CAAC;AACvB,CAAC;AAiDQ,kDAAmB;AA/C5B;;;;;GAKG;AACH,SAAS,2BAA2B,CAClC,UAAkB,EAClB,gBAAyB;IAEzB,IAAI,EAAE,CAAC,GAAG,KAAK,SAAS,EAAE;QACxB,MAAM,IAAI,KAAK,CACb,6EAA6E,CAC9E,CAAC;KACH;IAED,MAAM,MAAM,G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"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts deleted file mode 100644 index bc5d4821..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import * as ts from 'typescript'; -export declare function getModifiers(node: ts.Node | null | undefined): undefined | ts.Modifier[]; -export declare function getDecorators(node: ts.Node | null | undefined): undefined | ts.Decorator[]; -//# sourceMappingURL=getModifiers.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map deleted file mode 100644 index 40c75f24..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getModifiers.d.ts","sourceRoot":"","sources":["../src/getModifiers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAMjC,wBAAgB,YAAY,CAC1B,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,GAC/B,SAAS,GAAG,EAAE,CAAC,QAAQ,EAAE,CAsB3B;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,GAC/B,SAAS,GAAG,EAAE,CAAC,SAAS,EAAE,CAoB5B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js b/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js deleted file mode 100644 index 1768fc20..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getDecorators = exports.getModifiers = void 0; -const ts = __importStar(require("typescript")); -const version_check_1 = require("./version-check"); -const isAtLeast48 = version_check_1.typescriptVersionIsAtLeast['4.8']; -function getModifiers(node) { - var _a; - if (node == null) { - return undefined; - } - if (isAtLeast48) { - // eslint-disable-next-line deprecation/deprecation -- this is safe as it's guarded - if (ts.canHaveModifiers(node)) { - // eslint-disable-next-line deprecation/deprecation -- this is safe as it's guarded - const modifiers = ts.getModifiers(node); - return modifiers ? Array.from(modifiers) : undefined; - } - return undefined; - } - return ( - // @ts-expect-error intentional fallback for older TS versions - (_a = node.modifiers) === null || _a === void 0 ? void 0 : _a.filter((m) => !ts.isDecorator(m))); -} -exports.getModifiers = getModifiers; -function getDecorators(node) { - var _a; - if (node == null) { - return undefined; - } - if (isAtLeast48) { - // eslint-disable-next-line deprecation/deprecation -- this is safe as it's guarded - if (ts.canHaveDecorators(node)) { - // eslint-disable-next-line deprecation/deprecation -- this is safe as it's guarded - const decorators = ts.getDecorators(node); - return decorators ? Array.from(decorators) : undefined; - } - return undefined; - } - return ( - // @ts-expect-error intentional fallback for older TS versions - (_a = node.decorators) === null || _a === void 0 ? void 0 : _a.filter(ts.isDecorator)); -} -exports.getDecorators = getDecorators; -//# sourceMappingURL=getModifiers.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map deleted file mode 100644 index f10bca4d..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getModifiers.js","sourceRoot":"","sources":["../src/getModifiers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAEjC,mDAA6D;AAE7D,MAAM,WAAW,GAAG,0CAA0B,CAAC,KAAK,CAAC,CAAC;AAEtD,SAAgB,YAAY,CAC1B,IAAgC;;IAEhC,IAAI,IAAI,IAAI,IAAI,EAAE;QAChB,OAAO,SAAS,CAAC;KAClB;IAED,IAAI,WAAW,EAAE;QACf,mFAAmF;QACnF,IAAI,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC7B,mFAAmF;YACnF,MAAM,SAAS,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YACxC,OAAO,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;SACtD;QAED,OAAO,SAAS,CAAC;KAClB;IAED,OAAO;IACL,8DAA8D;IAC9D,MAAC,IAAI,CAAC,SAA2B,0CAAE,MAAM,CACvC,CAAC,CAAC,EAAoB,EAAE,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,CAC5C,CACF,CAAC;AACJ,CAAC;AAxBD,oCAwBC;AAED,SAAgB,aAAa,CAC3B,IAAgC;;IAEhC,IAAI,IAAI,IAAI,IAAI,EAAE;QAChB,OAAO,SAAS,CAAC;KAClB;IAED,IAAI,WAAW,EAAE;QACf,mFAAmF;QACnF,IAAI,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE;YAC9B,mFAAmF;YACnF,MAAM,UAAU,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;YAC1C,OAAO,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;SACxD;QAED,OAAO,SAAS,CAAC;KAClB;IAED,OAAO;IACL,8DAA8D;IAC9D,MAAC,IAAI,CAAC,UAAwB,0CAAE,MAAM,CAAC,EAAE,CAAC,WAAW,CAAC,CACvD,CAAC;AACJ,CAAC;AAtBD,sCAsBC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts deleted file mode 100644 index c8263154..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export { AST, parse, parseAndGenerateServices, parseWithNodeMaps, ParseAndGenerateServicesResult, ParseWithNodeMapsResult, } from './parser'; -export { ParserServices, TSESTreeOptions } from './parser-options'; -export { simpleTraverse } from './simple-traverse'; -export * from './ts-estree'; -export { createProgramFromConfigFile as createProgram } from './create-program/useProvidedPrograms'; -export * from './create-program/getScriptKind'; -export { typescriptVersionIsAtLeast } from './version-check'; -export * from './getModifiers'; -export * from './clear-caches'; -export { visitorKeys } from '@typescript-eslint/visitor-keys'; -export declare const version: string; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map deleted file mode 100644 index 4dd1a8f3..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,GAAG,EACH,KAAK,EACL,wBAAwB,EACxB,iBAAiB,EACjB,8BAA8B,EAC9B,uBAAuB,GACxB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,2BAA2B,IAAI,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACpG,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7D,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAG/B,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAI9D,eAAO,MAAM,OAAO,EAAE,MAA2C,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/index.js b/node_modules/@typescript-eslint/typescript-estree/dist/index.js deleted file mode 100644 index ca1e3062..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/index.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.version = exports.visitorKeys = exports.typescriptVersionIsAtLeast = exports.createProgram = exports.simpleTraverse = exports.parseWithNodeMaps = exports.parseAndGenerateServices = exports.parse = void 0; -var parser_1 = require("./parser"); -Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return parser_1.parse; } }); -Object.defineProperty(exports, "parseAndGenerateServices", { enumerable: true, get: function () { return parser_1.parseAndGenerateServices; } }); -Object.defineProperty(exports, "parseWithNodeMaps", { enumerable: true, get: function () { return parser_1.parseWithNodeMaps; } }); -var simple_traverse_1 = require("./simple-traverse"); -Object.defineProperty(exports, "simpleTraverse", { enumerable: true, get: function () { return simple_traverse_1.simpleTraverse; } }); -__exportStar(require("./ts-estree"), exports); -var useProvidedPrograms_1 = require("./create-program/useProvidedPrograms"); -Object.defineProperty(exports, "createProgram", { enumerable: true, get: function () { return useProvidedPrograms_1.createProgramFromConfigFile; } }); -__exportStar(require("./create-program/getScriptKind"), exports); -var version_check_1 = require("./version-check"); -Object.defineProperty(exports, "typescriptVersionIsAtLeast", { enumerable: true, get: function () { return version_check_1.typescriptVersionIsAtLeast; } }); -__exportStar(require("./getModifiers"), exports); -__exportStar(require("./clear-caches"), exports); -// re-export for backwards-compat -var visitor_keys_1 = require("@typescript-eslint/visitor-keys"); -Object.defineProperty(exports, "visitorKeys", { enumerable: true, get: function () { return visitor_keys_1.visitorKeys; } }); -// note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder -// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access -exports.version = require('../package.json').version; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map deleted file mode 100644 index a58c6cbe..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,mCAOkB;AALhB,+FAAA,KAAK,OAAA;AACL,kHAAA,wBAAwB,OAAA;AACxB,2GAAA,iBAAiB,OAAA;AAKnB,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,8CAA4B;AAC5B,4EAAoG;AAA3F,oHAAA,2BAA2B,OAAiB;AACrD,iEAA+C;AAC/C,iDAA6D;AAApD,2HAAA,0BAA0B,OAAA;AACnC,iDAA+B;AAC/B,iDAA+B;AAE/B,iCAAiC;AACjC,gEAA8D;AAArD,2GAAA,WAAW,OAAA;AAEpB,sHAAsH;AACtH,+GAA+G;AAClG,QAAA,OAAO,GAAW,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts deleted file mode 100644 index 7953cc6f..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const xhtmlEntities: Record; -//# sourceMappingURL=xhtml-entities.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts.map deleted file mode 100644 index ce45e83d..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"xhtml-entities.d.ts","sourceRoot":"","sources":["../../src/jsx/xhtml-entities.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA8PhD,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js b/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js deleted file mode 100644 index bf58e965..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js +++ /dev/null @@ -1,259 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.xhtmlEntities = void 0; -exports.xhtmlEntities = { - quot: '\u0022', - amp: '&', - apos: '\u0027', - lt: '<', - gt: '>', - nbsp: '\u00A0', - iexcl: '\u00A1', - cent: '\u00A2', - pound: '\u00A3', - curren: '\u00A4', - yen: '\u00A5', - brvbar: '\u00A6', - sect: '\u00A7', - uml: '\u00A8', - copy: '\u00A9', - ordf: '\u00AA', - laquo: '\u00AB', - not: '\u00AC', - shy: '\u00AD', - reg: '\u00AE', - macr: '\u00AF', - deg: '\u00B0', - plusmn: '\u00B1', - sup2: '\u00B2', - sup3: '\u00B3', - acute: '\u00B4', - micro: '\u00B5', - para: '\u00B6', - middot: '\u00B7', - cedil: '\u00B8', - sup1: '\u00B9', - ordm: '\u00BA', - raquo: '\u00BB', - frac14: '\u00BC', - frac12: '\u00BD', - frac34: '\u00BE', - iquest: '\u00BF', - Agrave: '\u00C0', - Aacute: '\u00C1', - Acirc: '\u00C2', - Atilde: '\u00C3', - Auml: '\u00C4', - Aring: '\u00C5', - AElig: '\u00C6', - Ccedil: '\u00C7', - Egrave: '\u00C8', - Eacute: '\u00C9', - Ecirc: '\u00CA', - Euml: '\u00CB', - Igrave: '\u00CC', - Iacute: '\u00CD', - Icirc: '\u00CE', - Iuml: '\u00CF', - ETH: '\u00D0', - Ntilde: '\u00D1', - Ograve: '\u00D2', - Oacute: '\u00D3', - Ocirc: '\u00D4', - Otilde: '\u00D5', - Ouml: '\u00D6', - times: '\u00D7', - Oslash: '\u00D8', - Ugrave: '\u00D9', - Uacute: '\u00DA', - Ucirc: '\u00DB', - Uuml: '\u00DC', - Yacute: '\u00DD', - THORN: '\u00DE', - szlig: '\u00DF', - agrave: '\u00E0', - aacute: '\u00E1', - acirc: '\u00E2', - atilde: '\u00E3', - auml: '\u00E4', - aring: '\u00E5', - aelig: '\u00E6', - ccedil: '\u00E7', - egrave: '\u00E8', - eacute: '\u00E9', - ecirc: '\u00EA', - euml: '\u00EB', - igrave: '\u00EC', - iacute: '\u00ED', - icirc: '\u00EE', - iuml: '\u00EF', - eth: '\u00F0', - ntilde: '\u00F1', - ograve: '\u00F2', - oacute: '\u00F3', - ocirc: '\u00F4', - otilde: '\u00F5', - ouml: '\u00F6', - divide: '\u00F7', - oslash: '\u00F8', - ugrave: '\u00F9', - uacute: '\u00FA', - ucirc: '\u00FB', - uuml: '\u00FC', - yacute: '\u00FD', - thorn: '\u00FE', - yuml: '\u00FF', - OElig: '\u0152', - oelig: '\u0153', - Scaron: '\u0160', - scaron: '\u0161', - Yuml: '\u0178', - fnof: '\u0192', - circ: '\u02C6', - tilde: '\u02DC', - Alpha: '\u0391', - Beta: '\u0392', - Gamma: '\u0393', - Delta: '\u0394', - Epsilon: '\u0395', - Zeta: '\u0396', - Eta: '\u0397', - Theta: '\u0398', - Iota: '\u0399', - Kappa: '\u039A', - Lambda: '\u039B', - Mu: '\u039C', - Nu: '\u039D', - Xi: '\u039E', - Omicron: '\u039F', - Pi: '\u03A0', - Rho: '\u03A1', - Sigma: '\u03A3', - Tau: '\u03A4', - Upsilon: '\u03A5', - Phi: '\u03A6', - Chi: '\u03A7', - Psi: '\u03A8', - Omega: '\u03A9', - alpha: '\u03B1', - beta: '\u03B2', - gamma: '\u03B3', - delta: '\u03B4', - epsilon: '\u03B5', - zeta: '\u03B6', - eta: '\u03B7', - theta: '\u03B8', - iota: '\u03B9', - kappa: '\u03BA', - lambda: '\u03BB', - mu: '\u03BC', - nu: '\u03BD', - xi: '\u03BE', - omicron: '\u03BF', - pi: '\u03C0', - rho: '\u03C1', - sigmaf: '\u03C2', - sigma: '\u03C3', - tau: '\u03C4', - upsilon: '\u03C5', - phi: '\u03C6', - chi: '\u03C7', - psi: '\u03C8', - omega: '\u03C9', - thetasym: '\u03D1', - upsih: '\u03D2', - piv: '\u03D6', - ensp: '\u2002', - emsp: '\u2003', - thinsp: '\u2009', - zwnj: '\u200C', - zwj: '\u200D', - lrm: '\u200E', - rlm: '\u200F', - ndash: '\u2013', - mdash: '\u2014', - lsquo: '\u2018', - rsquo: '\u2019', - sbquo: '\u201A', - ldquo: '\u201C', - rdquo: '\u201D', - bdquo: '\u201E', - dagger: '\u2020', - Dagger: '\u2021', - bull: '\u2022', - hellip: '\u2026', - permil: '\u2030', - prime: '\u2032', - Prime: '\u2033', - lsaquo: '\u2039', - rsaquo: '\u203A', - oline: '\u203E', - frasl: '\u2044', - euro: '\u20AC', - image: '\u2111', - weierp: '\u2118', - real: '\u211C', - trade: '\u2122', - alefsym: '\u2135', - larr: '\u2190', - uarr: '\u2191', - rarr: '\u2192', - darr: '\u2193', - harr: '\u2194', - crarr: '\u21B5', - lArr: '\u21D0', - uArr: '\u21D1', - rArr: '\u21D2', - dArr: '\u21D3', - hArr: '\u21D4', - forall: '\u2200', - part: '\u2202', - exist: '\u2203', - empty: '\u2205', - nabla: '\u2207', - isin: '\u2208', - notin: '\u2209', - ni: '\u220B', - prod: '\u220F', - sum: '\u2211', - minus: '\u2212', - lowast: '\u2217', - radic: '\u221A', - prop: '\u221D', - infin: '\u221E', - ang: '\u2220', - and: '\u2227', - or: '\u2228', - cap: '\u2229', - cup: '\u222A', - int: '\u222B', - there4: '\u2234', - sim: '\u223C', - cong: '\u2245', - asymp: '\u2248', - ne: '\u2260', - equiv: '\u2261', - le: '\u2264', - ge: '\u2265', - sub: '\u2282', - sup: '\u2283', - nsub: '\u2284', - sube: '\u2286', - supe: '\u2287', - oplus: '\u2295', - otimes: '\u2297', - perp: '\u22A5', - sdot: '\u22C5', - lceil: '\u2308', - rceil: '\u2309', - lfloor: '\u230A', - rfloor: '\u230B', - lang: '\u2329', - rang: '\u232A', - loz: '\u25CA', - spades: '\u2660', - clubs: '\u2663', - hearts: '\u2665', - diams: '\u2666', -}; -//# sourceMappingURL=xhtml-entities.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js.map deleted file mode 100644 index 30c14ec7..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/jsx/xhtml-entities.js.map +++ /dev/null @@ -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d,IAAI,EAAE,QAAQ;IACd,GAAG,EAAE,QAAQ;IACb,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,QAAQ;CAChB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts deleted file mode 100644 index 083cbada..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts +++ /dev/null @@ -1,228 +0,0 @@ -import * as ts from 'typescript'; -import type { TSESTree } from './ts-estree'; -import { AST_NODE_TYPES, AST_TOKEN_TYPES } from './ts-estree'; -declare const SyntaxKind: typeof ts.SyntaxKind; -interface TokenToText extends TSESTree.PunctuatorTokenToText { - [SyntaxKind.ImportKeyword]: 'import'; - [SyntaxKind.InKeyword]: 'in'; - [SyntaxKind.InstanceOfKeyword]: 'instanceof'; - [SyntaxKind.NewKeyword]: 'new'; - [SyntaxKind.KeyOfKeyword]: 'keyof'; - [SyntaxKind.ReadonlyKeyword]: 'readonly'; - [SyntaxKind.UniqueKeyword]: 'unique'; -} -/** - * Returns true if the given ts.Token is the assignment operator - * @param operator the operator token - * @returns is assignment - */ -export declare function isAssignmentOperator(operator: ts.Token): boolean; -/** - * Returns true if the given ts.Token is a logical operator - * @param operator the operator token - * @returns is a logical operator - */ -export declare function isLogicalOperator(operator: ts.Token): boolean; -/** - * Returns the string form of the given TSToken SyntaxKind - * @param kind the token's SyntaxKind - * @returns the token applicable token as a string - */ -export declare function getTextForTokenKind(kind: T): T extends keyof TokenToText ? TokenToText[T] : string | undefined; -/** - * Returns true if the given ts.Node is a valid ESTree class member - * @param node TypeScript AST node - * @returns is valid ESTree class member - */ -export declare function isESTreeClassMember(node: ts.Node): boolean; -/** - * Checks if a ts.Node has a modifier - * @param modifierKind TypeScript SyntaxKind modifier - * @param node TypeScript AST node - * @returns has the modifier specified - */ -export declare function hasModifier(modifierKind: ts.KeywordSyntaxKind, node: ts.Node): boolean; -/** - * Get last last modifier in ast - * @param node TypeScript AST node - * @returns returns last modifier if present or null - */ -export declare function getLastModifier(node: ts.Node): ts.Modifier | null; -/** - * Returns true if the given ts.Token is a comma - * @param token the TypeScript token - * @returns is comma - */ -export declare function isComma(token: ts.Node): token is ts.Token; -/** - * Returns true if the given ts.Node is a comment - * @param node the TypeScript node - * @returns is comment - */ -export declare function isComment(node: ts.Node): boolean; -/** - * Returns true if the given ts.Node is a JSDoc comment - * @param node the TypeScript node - * @returns is JSDoc comment - */ -export declare function isJSDocComment(node: ts.Node): node is ts.JSDoc; -/** - * Returns the binary expression type of the given ts.Token - * @param operator the operator token - * @returns the binary expression type - */ -export declare function getBinaryExpressionType(operator: ts.Token): AST_NODE_TYPES.AssignmentExpression | AST_NODE_TYPES.LogicalExpression | AST_NODE_TYPES.BinaryExpression; -/** - * Returns line and column data for the given positions, - * @param pos position to check - * @param ast the AST object - * @returns line and column - */ -export declare function getLineAndCharacterFor(pos: number, ast: ts.SourceFile): TSESTree.Position; -/** - * Returns line and column data for the given start and end positions, - * for the given AST - * @param start start data - * @param end end data - * @param ast the AST object - * @returns the loc data - */ -export declare function getLocFor(start: number, end: number, ast: ts.SourceFile): TSESTree.SourceLocation; -/** - * Check whatever node can contain directive - * @param node - * @returns returns true if node can contain directive - */ -export declare function canContainDirective(node: ts.SourceFile | ts.Block | ts.ModuleBlock | ts.ClassStaticBlockDeclaration): boolean; -/** - * Returns range for the given ts.Node - * @param node the ts.Node or ts.Token - * @param ast the AST object - * @returns the range data - */ -export declare function getRange(node: ts.Node, ast: ts.SourceFile): [number, number]; -/** - * Returns true if a given ts.Node is a token - * @param node the ts.Node - * @returns is a token - */ -export declare function isToken(node: ts.Node): node is ts.Token; -/** - * Returns true if a given ts.Node is a JSX token - * @param node ts.Node to be checked - * @returns is a JSX token - */ -export declare function isJSXToken(node: ts.Node): boolean; -/** - * Returns the declaration kind of the given ts.Node - * @param node TypeScript AST node - * @returns declaration kind - */ -export declare function getDeclarationKind(node: ts.VariableDeclarationList): 'let' | 'const' | 'var'; -/** - * Gets a ts.Node's accessibility level - * @param node The ts.Node - * @returns accessibility "public", "protected", "private", or null - */ -export declare function getTSNodeAccessibility(node: ts.Node): 'public' | 'protected' | 'private' | null; -/** - * Finds the next token based on the previous one and its parent - * Had to copy this from TS instead of using TS's version because theirs doesn't pass the ast to getChildren - * @param previousToken The previous TSToken - * @param parent The parent TSNode - * @param ast The TS AST - * @returns the next TSToken - */ -export declare function findNextToken(previousToken: ts.TextRange, parent: ts.Node, ast: ts.SourceFile): ts.Node | undefined; -/** - * Find the first matching ancestor based on the given predicate function. - * @param node The current ts.Node - * @param predicate The predicate function to apply to each checked ancestor - * @returns a matching parent ts.Node - */ -export declare function findFirstMatchingAncestor(node: ts.Node, predicate: (node: ts.Node) => boolean): ts.Node | undefined; -/** - * Returns true if a given ts.Node has a JSX token within its hierarchy - * @param node ts.Node to be checked - * @returns has JSX ancestor - */ -export declare function hasJSXAncestor(node: ts.Node): boolean; -/** - * Unescape the text content of string literals, e.g. & -> & - * @param text The escaped string literal text. - * @returns The unescaped string literal text. - */ -export declare function unescapeStringLiteralText(text: string): string; -/** - * Returns true if a given ts.Node is a computed property - * @param node ts.Node to be checked - * @returns is Computed Property - */ -export declare function isComputedProperty(node: ts.Node): node is ts.ComputedPropertyName; -/** - * Returns true if a given ts.Node is optional (has QuestionToken) - * @param node ts.Node to be checked - * @returns is Optional - */ -export declare function isOptional(node: { - questionToken?: ts.QuestionToken; -}): boolean; -/** - * Returns true if the node is an optional chain node - */ -export declare function isChainExpression(node: TSESTree.Node): node is TSESTree.ChainExpression; -/** - * Returns true of the child of property access expression is an optional chain - */ -export declare function isChildUnwrappableOptionalChain(node: ts.PropertyAccessExpression | ts.ElementAccessExpression | ts.CallExpression | ts.NonNullExpression, child: TSESTree.Node): boolean; -/** - * Returns the type of a given ts.Token - * @param token the ts.Token - * @returns the token type - */ -export declare function getTokenType(token: ts.Identifier | ts.Token): Exclude; -/** - * Extends and formats a given ts.Token, for a given AST - * @param token the ts.Token - * @param ast the AST object - * @returns the converted Token - */ -export declare function convertToken(token: ts.Token, ast: ts.SourceFile): TSESTree.Token; -/** - * Converts all tokens for the given AST - * @param ast the AST object - * @returns the converted Tokens - */ -export declare function convertTokens(ast: ts.SourceFile): TSESTree.Token[]; -export declare class TSError extends Error { - readonly fileName: string; - readonly index: number; - readonly lineNumber: number; - readonly column: number; - constructor(message: string, fileName: string, index: number, lineNumber: number, column: number); -} -/** - * @param ast the AST object - * @param start the index at which the error starts - * @param message the error message - * @returns converted error object - */ -export declare function createError(ast: ts.SourceFile, start: number, message: string): TSError; -/** - * @param n the TSNode - * @param ast the TS AST - */ -export declare function nodeHasTokens(n: ts.Node, ast: ts.SourceFile): boolean; -/** - * Like `forEach`, but suitable for use with numbers and strings (which may be falsy). - * @template T - * @template U - * @param array - * @param callback - */ -export declare function firstDefined(array: readonly T[] | undefined, callback: (element: T, index: number) => U | undefined): U | undefined; -export declare function identifierIsThisKeyword(id: ts.Identifier): boolean; -export declare function isThisIdentifier(node: ts.Node | undefined): node is ts.Identifier; -export declare function isThisInTypeQuery(node: ts.Node): boolean; -export {}; -//# sourceMappingURL=node-utils.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map deleted file mode 100644 index 219b65af..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"node-utils.d.ts","sourceRoot":"","sources":["../src/node-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAIjC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAK9D,QAAA,MA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G;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC,UAAU,GAAG,OAAO,CAMrE;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAC/B,KAAK,EAAE,SAAS,CAAC,EAAE,GAAG,SAAS,EAC/B,QAAQ,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,GAAG,SAAS,GACrD,CAAC,GAAG,SAAS,CAYf;AAED,wBAAgB,uBAAuB,CAAC,EAAE,EAAE,EAAE,CAAC,UAAU,GAAG,OAAO,CAMlE;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,SAAS,GACxB,IAAI,IAAI,EAAE,CAAC,UAAU,CAMvB;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,OAAO,CAUxD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js b/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js deleted file mode 100644 index 986b5a8a..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js +++ /dev/null @@ -1,597 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isThisInTypeQuery = exports.isThisIdentifier = exports.identifierIsThisKeyword = exports.firstDefined = exports.nodeHasTokens = exports.createError = exports.TSError = exports.convertTokens = exports.convertToken = exports.getTokenType = exports.isChildUnwrappableOptionalChain = exports.isChainExpression = exports.isOptional = exports.isComputedProperty = exports.unescapeStringLiteralText = exports.hasJSXAncestor = exports.findFirstMatchingAncestor = exports.findNextToken = exports.getTSNodeAccessibility = exports.getDeclarationKind = exports.isJSXToken = exports.isToken = exports.getRange = exports.canContainDirective = exports.getLocFor = exports.getLineAndCharacterFor = exports.getBinaryExpressionType = exports.isJSDocComment = exports.isComment = exports.isComma = exports.getLastModifier = exports.hasModifier = exports.isESTreeClassMember = exports.getTextForTokenKind = exports.isLogicalOperator = exports.isAssignmentOperator = void 0; -const ts = __importStar(require("typescript")); -const getModifiers_1 = require("./getModifiers"); -const xhtml_entities_1 = require("./jsx/xhtml-entities"); -const ts_estree_1 = require("./ts-estree"); -const version_check_1 = require("./version-check"); -const isAtLeast50 = version_check_1.typescriptVersionIsAtLeast['5.0']; -const SyntaxKind = ts.SyntaxKind; -const LOGICAL_OPERATORS = [ - SyntaxKind.BarBarToken, - SyntaxKind.AmpersandAmpersandToken, - SyntaxKind.QuestionQuestionToken, -]; -/** - * Returns true if the given ts.Token is the assignment operator - * @param operator the operator token - * @returns is assignment - */ -function isAssignmentOperator(operator) { - return (operator.kind >= SyntaxKind.FirstAssignment && - operator.kind <= SyntaxKind.LastAssignment); -} -exports.isAssignmentOperator = isAssignmentOperator; -/** - * Returns true if the given ts.Token is a logical operator - * @param operator the operator token - * @returns is a logical operator - */ -function isLogicalOperator(operator) { - return LOGICAL_OPERATORS.includes(operator.kind); -} -exports.isLogicalOperator = isLogicalOperator; -/** - * Returns the string form of the given TSToken SyntaxKind - * @param kind the token's SyntaxKind - * @returns the token applicable token as a string - */ -function getTextForTokenKind(kind) { - return ts.tokenToString(kind); -} -exports.getTextForTokenKind = getTextForTokenKind; -/** - * Returns true if the given ts.Node is a valid ESTree class member - * @param node TypeScript AST node - * @returns is valid ESTree class member - */ -function isESTreeClassMember(node) { - return node.kind !== SyntaxKind.SemicolonClassElement; -} -exports.isESTreeClassMember = isESTreeClassMember; -/** - * Checks if a ts.Node has a modifier - * @param modifierKind TypeScript SyntaxKind modifier - * @param node TypeScript AST node - * @returns has the modifier specified - */ -function hasModifier(modifierKind, node) { - const modifiers = (0, getModifiers_1.getModifiers)(node); - return (modifiers === null || modifiers === void 0 ? void 0 : modifiers.some(modifier => modifier.kind === modifierKind)) === true; -} -exports.hasModifier = hasModifier; -/** - * Get last last modifier in ast - * @param node TypeScript AST node - * @returns returns last modifier if present or null - */ -function getLastModifier(node) { - var _a; - const modifiers = (0, getModifiers_1.getModifiers)(node); - if (modifiers == null) { - return null; - } - return (_a = modifiers[modifiers.length - 1]) !== null && _a !== void 0 ? _a : null; -} -exports.getLastModifier = getLastModifier; -/** - * Returns true if the given ts.Token is a comma - * @param token the TypeScript token - * @returns is comma - */ -function isComma(token) { - return token.kind === SyntaxKind.CommaToken; -} -exports.isComma = isComma; -/** - * Returns true if the given ts.Node is a comment - * @param node the TypeScript node - * @returns is comment - */ -function isComment(node) { - return (node.kind === SyntaxKind.SingleLineCommentTrivia || - node.kind === SyntaxKind.MultiLineCommentTrivia); -} -exports.isComment = isComment; -/** - * Returns true if the given ts.Node is a JSDoc comment - * @param node the TypeScript node - * @returns is JSDoc comment - */ -function isJSDocComment(node) { - return node.kind === SyntaxKind.JSDocComment; -} -exports.isJSDocComment = isJSDocComment; -/** - * Returns the binary expression type of the given ts.Token - * @param operator the operator token - * @returns the binary expression type - */ -function getBinaryExpressionType(operator) { - if (isAssignmentOperator(operator)) { - return ts_estree_1.AST_NODE_TYPES.AssignmentExpression; - } - else if (isLogicalOperator(operator)) { - return ts_estree_1.AST_NODE_TYPES.LogicalExpression; - } - return ts_estree_1.AST_NODE_TYPES.BinaryExpression; -} -exports.getBinaryExpressionType = getBinaryExpressionType; -/** - * Returns line and column data for the given positions, - * @param pos position to check - * @param ast the AST object - * @returns line and column - */ -function getLineAndCharacterFor(pos, ast) { - const loc = ast.getLineAndCharacterOfPosition(pos); - return { - line: loc.line + 1, - column: loc.character, - }; -} -exports.getLineAndCharacterFor = getLineAndCharacterFor; -/** - * Returns line and column data for the given start and end positions, - * for the given AST - * @param start start data - * @param end end data - * @param ast the AST object - * @returns the loc data - */ -function getLocFor(start, end, ast) { - return { - start: getLineAndCharacterFor(start, ast), - end: getLineAndCharacterFor(end, ast), - }; -} -exports.getLocFor = getLocFor; -/** - * Check whatever node can contain directive - * @param node - * @returns returns true if node can contain directive - */ -function canContainDirective(node) { - if (node.kind === ts.SyntaxKind.Block) { - switch (node.parent.kind) { - case ts.SyntaxKind.Constructor: - case ts.SyntaxKind.GetAccessor: - case ts.SyntaxKind.SetAccessor: - case ts.SyntaxKind.ArrowFunction: - case ts.SyntaxKind.FunctionExpression: - case ts.SyntaxKind.FunctionDeclaration: - case ts.SyntaxKind.MethodDeclaration: - return true; - default: - return false; - } - } - return true; -} -exports.canContainDirective = canContainDirective; -/** - * Returns range for the given ts.Node - * @param node the ts.Node or ts.Token - * @param ast the AST object - * @returns the range data - */ -function getRange(node, ast) { - return [node.getStart(ast), node.getEnd()]; -} -exports.getRange = getRange; -/** - * Returns true if a given ts.Node is a token - * @param node the ts.Node - * @returns is a token - */ -function isToken(node) { - return (node.kind >= SyntaxKind.FirstToken && node.kind <= SyntaxKind.LastToken); -} -exports.isToken = isToken; -/** - * Returns true if a given ts.Node is a JSX token - * @param node ts.Node to be checked - * @returns is a JSX token - */ -function isJSXToken(node) { - return (node.kind >= SyntaxKind.JsxElement && node.kind <= SyntaxKind.JsxAttribute); -} -exports.isJSXToken = isJSXToken; -/** - * Returns the declaration kind of the given ts.Node - * @param node TypeScript AST node - * @returns declaration kind - */ -function getDeclarationKind(node) { - if (node.flags & ts.NodeFlags.Let) { - return 'let'; - } - if (node.flags & ts.NodeFlags.Const) { - return 'const'; - } - return 'var'; -} -exports.getDeclarationKind = getDeclarationKind; -/** - * Gets a ts.Node's accessibility level - * @param node The ts.Node - * @returns accessibility "public", "protected", "private", or null - */ -function getTSNodeAccessibility(node) { - const modifiers = (0, getModifiers_1.getModifiers)(node); - if (modifiers == null) { - return null; - } - for (const modifier of modifiers) { - switch (modifier.kind) { - case SyntaxKind.PublicKeyword: - return 'public'; - case SyntaxKind.ProtectedKeyword: - return 'protected'; - case SyntaxKind.PrivateKeyword: - return 'private'; - default: - break; - } - } - return null; -} -exports.getTSNodeAccessibility = getTSNodeAccessibility; -/** - * Finds the next token based on the previous one and its parent - * Had to copy this from TS instead of using TS's version because theirs doesn't pass the ast to getChildren - * @param previousToken The previous TSToken - * @param parent The parent TSNode - * @param ast The TS AST - * @returns the next TSToken - */ -function findNextToken(previousToken, parent, ast) { - return find(parent); - function find(n) { - if (ts.isToken(n) && n.pos === previousToken.end) { - // this is token that starts at the end of previous token - return it - return n; - } - return firstDefined(n.getChildren(ast), (child) => { - const shouldDiveInChildNode = - // previous token is enclosed somewhere in the child - (child.pos <= previousToken.pos && child.end > previousToken.end) || - // previous token ends exactly at the beginning of child - child.pos === previousToken.end; - return shouldDiveInChildNode && nodeHasTokens(child, ast) - ? find(child) - : undefined; - }); - } -} -exports.findNextToken = findNextToken; -/** - * Find the first matching ancestor based on the given predicate function. - * @param node The current ts.Node - * @param predicate The predicate function to apply to each checked ancestor - * @returns a matching parent ts.Node - */ -function findFirstMatchingAncestor(node, predicate) { - while (node) { - if (predicate(node)) { - return node; - } - node = node.parent; - } - return undefined; -} -exports.findFirstMatchingAncestor = findFirstMatchingAncestor; -/** - * Returns true if a given ts.Node has a JSX token within its hierarchy - * @param node ts.Node to be checked - * @returns has JSX ancestor - */ -function hasJSXAncestor(node) { - return !!findFirstMatchingAncestor(node, isJSXToken); -} -exports.hasJSXAncestor = hasJSXAncestor; -/** - * Unescape the text content of string literals, e.g. & -> & - * @param text The escaped string literal text. - * @returns The unescaped string literal text. - */ -function unescapeStringLiteralText(text) { - return text.replace(/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g, entity => { - const item = entity.slice(1, -1); - if (item[0] === '#') { - const codePoint = item[1] === 'x' - ? parseInt(item.slice(2), 16) - : parseInt(item.slice(1), 10); - return codePoint > 0x10ffff // RangeError: Invalid code point - ? entity - : String.fromCodePoint(codePoint); - } - return xhtml_entities_1.xhtmlEntities[item] || entity; - }); -} -exports.unescapeStringLiteralText = unescapeStringLiteralText; -/** - * Returns true if a given ts.Node is a computed property - * @param node ts.Node to be checked - * @returns is Computed Property - */ -function isComputedProperty(node) { - return node.kind === SyntaxKind.ComputedPropertyName; -} -exports.isComputedProperty = isComputedProperty; -/** - * Returns true if a given ts.Node is optional (has QuestionToken) - * @param node ts.Node to be checked - * @returns is Optional - */ -function isOptional(node) { - return node.questionToken - ? node.questionToken.kind === SyntaxKind.QuestionToken - : false; -} -exports.isOptional = isOptional; -/** - * Returns true if the node is an optional chain node - */ -function isChainExpression(node) { - return node.type === ts_estree_1.AST_NODE_TYPES.ChainExpression; -} -exports.isChainExpression = isChainExpression; -/** - * Returns true of the child of property access expression is an optional chain - */ -function isChildUnwrappableOptionalChain(node, child) { - return (isChainExpression(child) && - // (x?.y).z is semantically different, and as such .z is no longer optional - node.expression.kind !== ts.SyntaxKind.ParenthesizedExpression); -} -exports.isChildUnwrappableOptionalChain = isChildUnwrappableOptionalChain; -/** - * Returns the type of a given ts.Token - * @param token the ts.Token - * @returns the token type - */ -function getTokenType(token) { - let keywordKind; - if (isAtLeast50 && token.kind === SyntaxKind.Identifier) { - keywordKind = ts.identifierToKeywordKind(token); - } - else if ('originalKeywordKind' in token) { - // eslint-disable-next-line deprecation/deprecation -- intentional fallback for older TS versions - keywordKind = token.originalKeywordKind; - } - if (keywordKind) { - if (keywordKind === SyntaxKind.NullKeyword) { - return ts_estree_1.AST_TOKEN_TYPES.Null; - } - else if (keywordKind >= SyntaxKind.FirstFutureReservedWord && - keywordKind <= SyntaxKind.LastKeyword) { - return ts_estree_1.AST_TOKEN_TYPES.Identifier; - } - return ts_estree_1.AST_TOKEN_TYPES.Keyword; - } - if (token.kind >= SyntaxKind.FirstKeyword && - token.kind <= SyntaxKind.LastFutureReservedWord) { - if (token.kind === SyntaxKind.FalseKeyword || - token.kind === SyntaxKind.TrueKeyword) { - return ts_estree_1.AST_TOKEN_TYPES.Boolean; - } - return ts_estree_1.AST_TOKEN_TYPES.Keyword; - } - if (token.kind >= SyntaxKind.FirstPunctuation && - token.kind <= SyntaxKind.LastPunctuation) { - return ts_estree_1.AST_TOKEN_TYPES.Punctuator; - } - if (token.kind >= SyntaxKind.NoSubstitutionTemplateLiteral && - token.kind <= SyntaxKind.TemplateTail) { - return ts_estree_1.AST_TOKEN_TYPES.Template; - } - switch (token.kind) { - case SyntaxKind.NumericLiteral: - return ts_estree_1.AST_TOKEN_TYPES.Numeric; - case SyntaxKind.JsxText: - return ts_estree_1.AST_TOKEN_TYPES.JSXText; - case SyntaxKind.StringLiteral: - // A TypeScript-StringLiteral token with a TypeScript-JsxAttribute or TypeScript-JsxElement parent, - // must actually be an ESTree-JSXText token - if (token.parent && - (token.parent.kind === SyntaxKind.JsxAttribute || - token.parent.kind === SyntaxKind.JsxElement)) { - return ts_estree_1.AST_TOKEN_TYPES.JSXText; - } - return ts_estree_1.AST_TOKEN_TYPES.String; - case SyntaxKind.RegularExpressionLiteral: - return ts_estree_1.AST_TOKEN_TYPES.RegularExpression; - case SyntaxKind.Identifier: - case SyntaxKind.ConstructorKeyword: - case SyntaxKind.GetKeyword: - case SyntaxKind.SetKeyword: - // intentional fallthrough - default: - } - // Some JSX tokens have to be determined based on their parent - if (token.parent && token.kind === SyntaxKind.Identifier) { - if (isJSXToken(token.parent)) { - return ts_estree_1.AST_TOKEN_TYPES.JSXIdentifier; - } - if (token.parent.kind === SyntaxKind.PropertyAccessExpression && - hasJSXAncestor(token)) { - return ts_estree_1.AST_TOKEN_TYPES.JSXIdentifier; - } - } - return ts_estree_1.AST_TOKEN_TYPES.Identifier; -} -exports.getTokenType = getTokenType; -/** - * Extends and formats a given ts.Token, for a given AST - * @param token the ts.Token - * @param ast the AST object - * @returns the converted Token - */ -function convertToken(token, ast) { - const start = token.kind === SyntaxKind.JsxText - ? token.getFullStart() - : token.getStart(ast); - const end = token.getEnd(); - const value = ast.text.slice(start, end); - const tokenType = getTokenType(token); - if (tokenType === ts_estree_1.AST_TOKEN_TYPES.RegularExpression) { - return { - type: tokenType, - value, - range: [start, end], - loc: getLocFor(start, end, ast), - regex: { - pattern: value.slice(1, value.lastIndexOf('/')), - flags: value.slice(value.lastIndexOf('/') + 1), - }, - }; - } - else { - // @ts-expect-error TS is complaining about `value` not being the correct - // type but it is - return { - type: tokenType, - value, - range: [start, end], - loc: getLocFor(start, end, ast), - }; - } -} -exports.convertToken = convertToken; -/** - * Converts all tokens for the given AST - * @param ast the AST object - * @returns the converted Tokens - */ -function convertTokens(ast) { - const result = []; - /** - * @param node the ts.Node - */ - function walk(node) { - // TypeScript generates tokens for types in JSDoc blocks. Comment tokens - // and their children should not be walked or added to the resulting tokens list. - if (isComment(node) || isJSDocComment(node)) { - return; - } - if (isToken(node) && node.kind !== SyntaxKind.EndOfFileToken) { - const converted = convertToken(node, ast); - if (converted) { - result.push(converted); - } - } - else { - node.getChildren(ast).forEach(walk); - } - } - walk(ast); - return result; -} -exports.convertTokens = convertTokens; -class TSError extends Error { - constructor(message, fileName, index, lineNumber, column) { - super(message); - this.fileName = fileName; - this.index = index; - this.lineNumber = lineNumber; - this.column = column; - Object.defineProperty(this, 'name', { - value: new.target.name, - enumerable: false, - configurable: true, - }); - } -} -exports.TSError = TSError; -/** - * @param ast the AST object - * @param start the index at which the error starts - * @param message the error message - * @returns converted error object - */ -function createError(ast, start, message) { - const loc = ast.getLineAndCharacterOfPosition(start); - return new TSError(message, ast.fileName, start, loc.line + 1, loc.character); -} -exports.createError = createError; -/** - * @param n the TSNode - * @param ast the TS AST - */ -function nodeHasTokens(n, ast) { - // If we have a token or node that has a non-zero width, it must have tokens. - // Note: getWidth() does not take trivia into account. - return n.kind === SyntaxKind.EndOfFileToken - ? !!n.jsDoc - : n.getWidth(ast) !== 0; -} -exports.nodeHasTokens = nodeHasTokens; -/** - * Like `forEach`, but suitable for use with numbers and strings (which may be falsy). - * @template T - * @template U - * @param array - * @param callback - */ -function firstDefined(array, callback) { - if (array === undefined) { - return undefined; - } - for (let i = 0; i < array.length; i++) { - const result = callback(array[i], i); - if (result !== undefined) { - return result; - } - } - return undefined; -} -exports.firstDefined = firstDefined; -function identifierIsThisKeyword(id) { - return ( - // eslint-disable-next-line deprecation/deprecation -- intentional for older TS versions - (isAtLeast50 ? ts.identifierToKeywordKind(id) : id.originalKeywordKind) === - SyntaxKind.ThisKeyword); -} -exports.identifierIsThisKeyword = identifierIsThisKeyword; -function isThisIdentifier(node) { - return (!!node && - node.kind === SyntaxKind.Identifier && - identifierIsThisKeyword(node)); -} -exports.isThisIdentifier = isThisIdentifier; -function isThisInTypeQuery(node) { - if (!isThisIdentifier(node)) { - return false; - } - while (ts.isQualifiedName(node.parent) && node.parent.left === node) { - node = node.parent; - } - return node.parent.kind === SyntaxKind.TypeQuery; -} -exports.isThisInTypeQuery = isThisInTypeQuery; -//# sourceMappingURL=node-utils.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map deleted file mode 100644 index 5fffbd7f..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"node-utils.js","sourceRoot":"","sources":["../src/node-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAEjC,iDA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IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI,EAAE;QACnE,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;KACpB;IAED,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,SAAS,CAAC;AACnD,CAAC;AAVD,8CAUC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts deleted file mode 100644 index 28d3b45e..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { CacheDurationSeconds } from '@typescript-eslint/types'; -export declare const DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = 30; -export interface CacheLike { - get(key: Key): Value | void; - set(key: Key, value: Value): this; -} -/** - * A map with key-level expiration. - */ -export declare class ExpiringCache implements CacheLike { - #private; - constructor(cacheDurationSeconds: CacheDurationSeconds); - set(key: TKey, value: TValue): this; - get(key: TKey): TValue | undefined; - clear(): void; -} -//# sourceMappingURL=ExpiringCache.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map deleted file mode 100644 index 4957d9fe..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ExpiringCache.d.ts","sourceRoot":"","sources":["../../src/parseSettings/ExpiringCache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAErE,eAAO,MAAM,uCAAuC,KAAK,CAAC;AAG1D,MAAM,WAAW,SAAS,CAAC,GAAG,EAAE,KAAK;IACnC,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,KAAK,GAAG,IAAI,CAAC;IAC5B,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,qBAAa,aAAa,CAAC,IAAI,EAAE,MAAM,CAAE,YAAW,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC;;gBAW7D,oBAAoB,EAAE,oBAAoB;IAItD,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAYnC,GAAG,CAAC,GAAG,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS;IAoBlC,KAAK,IAAI,IAAI;CAGd"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js deleted file mode 100644 index a924a23c..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -}; -var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var _ExpiringCache_cacheDurationSeconds, _ExpiringCache_map; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ExpiringCache = exports.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = void 0; -exports.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = 30; -const ZERO_HR_TIME = [0, 0]; -/** - * A map with key-level expiration. - */ -class ExpiringCache { - constructor(cacheDurationSeconds) { - _ExpiringCache_cacheDurationSeconds.set(this, void 0); - _ExpiringCache_map.set(this, new Map()); - __classPrivateFieldSet(this, _ExpiringCache_cacheDurationSeconds, cacheDurationSeconds, "f"); - } - set(key, value) { - __classPrivateFieldGet(this, _ExpiringCache_map, "f").set(key, { - value, - lastSeen: __classPrivateFieldGet(this, _ExpiringCache_cacheDurationSeconds, "f") === 'Infinity' - ? // no need to waste time calculating the hrtime in infinity mode as there's no expiry - ZERO_HR_TIME - : process.hrtime(), - }); - return this; - } - get(key) { - const entry = __classPrivateFieldGet(this, _ExpiringCache_map, "f").get(key); - if ((entry === null || entry === void 0 ? void 0 : entry.value) != null) { - if (__classPrivateFieldGet(this, _ExpiringCache_cacheDurationSeconds, "f") === 'Infinity') { - return entry.value; - } - const ageSeconds = process.hrtime(entry.lastSeen)[0]; - if (ageSeconds < __classPrivateFieldGet(this, _ExpiringCache_cacheDurationSeconds, "f")) { - // cache hit woo! - return entry.value; - } - else { - // key has expired - clean it up to free up memory - __classPrivateFieldGet(this, _ExpiringCache_map, "f").delete(key); - } - } - // no hit :'( - return undefined; - } - clear() { - __classPrivateFieldGet(this, _ExpiringCache_map, "f").clear(); - } -} -exports.ExpiringCache = ExpiringCache; -_ExpiringCache_cacheDurationSeconds = new WeakMap(), _ExpiringCache_map = new WeakMap(); -//# sourceMappingURL=ExpiringCache.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map deleted file mode 100644 index 6d6ee87b..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":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aAAa;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,KAAK;QACH,uBAAA,IAAI,0BAAK,CAAC,KAAK,EAAE,CAAC;IACpB,CAAC;CACF;AAlDD,sCAkDC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts deleted file mode 100644 index 5149d3d0..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { TSESTreeOptions } from '../parser-options'; -import type { MutableParseSettings } from './index'; -export declare function createParseSettings(code: string, options?: Partial): MutableParseSettings; -export declare function clearTSConfigMatchCache(): void; -//# sourceMappingURL=createParseSettings.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map deleted file mode 100644 index c54ce1a1..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createParseSettings.d.ts","sourceRoot":"","sources":["../../src/parseSettings/createParseSettings.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAMzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAWpD,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,OAAO,CAAC,eAAe,CAAM,GACrC,oBAAoB,CAkGtB;AAED,wBAAgB,uBAAuB,IAAI,IAAI,CAE9C"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js deleted file mode 100644 index 772cf833..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +++ /dev/null @@ -1,119 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.clearTSConfigMatchCache = exports.createParseSettings = void 0; -const debug_1 = __importDefault(require("debug")); -const shared_1 = require("../create-program/shared"); -const ExpiringCache_1 = require("./ExpiringCache"); -const getProjectConfigFiles_1 = require("./getProjectConfigFiles"); -const inferSingleRun_1 = require("./inferSingleRun"); -const resolveProjectList_1 = require("./resolveProjectList"); -const warnAboutTSVersion_1 = require("./warnAboutTSVersion"); -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:parser:parseSettings:createParseSettings'); -let TSCONFIG_MATCH_CACHE; -function createParseSettings(code, options = {}) { - var _a, _b, _c; - const singleRun = (0, inferSingleRun_1.inferSingleRun)(options); - const tsconfigRootDir = typeof options.tsconfigRootDir === 'string' - ? options.tsconfigRootDir - : process.cwd(); - const parseSettings = { - code: enforceString(code), - comment: options.comment === true, - comments: [], - createDefaultProgram: options.createDefaultProgram === true, - debugLevel: options.debugLevel === true - ? new Set(['typescript-eslint']) - : Array.isArray(options.debugLevel) - ? new Set(options.debugLevel) - : new Set(), - errorOnTypeScriptSyntacticAndSemanticIssues: false, - errorOnUnknownASTType: options.errorOnUnknownASTType === true, - EXPERIMENTAL_useSourceOfProjectReferenceRedirect: options.EXPERIMENTAL_useSourceOfProjectReferenceRedirect === true, - extraFileExtensions: Array.isArray(options.extraFileExtensions) && - options.extraFileExtensions.every(ext => typeof ext === 'string') - ? options.extraFileExtensions - : [], - filePath: (0, shared_1.ensureAbsolutePath)(typeof options.filePath === 'string' && options.filePath !== '' - ? options.filePath - : getFileName(options.jsx), tsconfigRootDir), - jsx: options.jsx === true, - loc: options.loc === true, - log: typeof options.loggerFn === 'function' - ? options.loggerFn - : options.loggerFn === false - ? () => { } - : console.log, - moduleResolver: (_a = options.moduleResolver) !== null && _a !== void 0 ? _a : '', - preserveNodeMaps: options.preserveNodeMaps !== false, - programs: Array.isArray(options.programs) ? options.programs : null, - projects: [], - range: options.range === true, - singleRun, - tokens: options.tokens === true ? [] : null, - tsconfigMatchCache: (TSCONFIG_MATCH_CACHE !== null && TSCONFIG_MATCH_CACHE !== void 0 ? TSCONFIG_MATCH_CACHE : (TSCONFIG_MATCH_CACHE = new ExpiringCache_1.ExpiringCache(singleRun - ? 'Infinity' - : (_c = (_b = options.cacheLifetime) === null || _b === void 0 ? void 0 : _b.glob) !== null && _c !== void 0 ? _c : ExpiringCache_1.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS))), - tsconfigRootDir, - }; - // debug doesn't support multiple `enable` calls, so have to do it all at once - if (parseSettings.debugLevel.size > 0) { - const namespaces = []; - if (parseSettings.debugLevel.has('typescript-eslint')) { - namespaces.push('typescript-eslint:*'); - } - if (parseSettings.debugLevel.has('eslint') || - // make sure we don't turn off the eslint debug if it was enabled via --debug - debug_1.default.enabled('eslint:*,-eslint:code-path')) { - // https://github.com/eslint/eslint/blob/9dfc8501fb1956c90dc11e6377b4cb38a6bea65d/bin/eslint.js#L25 - namespaces.push('eslint:*,-eslint:code-path'); - } - debug_1.default.enable(namespaces.join(',')); - } - if (Array.isArray(options.programs)) { - if (!options.programs.length) { - throw new Error(`You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.`); - } - log('parserOptions.programs was provided, so parserOptions.project will be ignored.'); - } - // Providing a program overrides project resolution - if (!parseSettings.programs) { - parseSettings.projects = (0, resolveProjectList_1.resolveProjectList)({ - cacheLifetime: options.cacheLifetime, - project: (0, getProjectConfigFiles_1.getProjectConfigFiles)(parseSettings, options.project), - projectFolderIgnoreList: options.projectFolderIgnoreList, - singleRun: parseSettings.singleRun, - tsconfigRootDir: tsconfigRootDir, - }); - } - (0, warnAboutTSVersion_1.warnAboutTSVersion)(parseSettings); - return parseSettings; -} -exports.createParseSettings = createParseSettings; -function clearTSConfigMatchCache() { - TSCONFIG_MATCH_CACHE === null || TSCONFIG_MATCH_CACHE === void 0 ? void 0 : TSCONFIG_MATCH_CACHE.clear(); -} -exports.clearTSConfigMatchCache = clearTSConfigMatchCache; -/** - * Ensures source code is a string. - */ -function enforceString(code) { - if (typeof code !== 'string') { - return String(code); - } - return code; -} -/** - * Compute the filename based on the parser options. - * - * Even if jsx option is set in typescript compiler, filename still has to - * contain .tsx file extension. - * - * @param options Parser options - */ -function getFileName(jsx) { - return jsx ? 'estree.tsx' : 'estree.ts'; -} -//# sourceMappingURL=createParseSettings.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map deleted file mode 100644 index 1d91bfb7..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createParseSettings.js","sourceRoot":"","sources":["../../src/parseSettings/createParseSettings.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,qDAA8D;AAE9D,mDAGyB;AACzB,mEAAgE;AAEhE,qDAAkD;AAClD,6DAA0D;AAC1D,6DAA0D;AAE1D,MAAM,GAAG,GAAG,IAAA,eAAK,EACf,8EAA8E,CAC/E,CAAC;AAEF,IAAI,oBAA0D,CAAC;AAE/D,SAAgB,mBAAmB,CACjC,IAAY,EACZ,UAAoC,EAAE;;IAEtC,MAAM,SAAS,GAAG,IAAA,+BAAc,EAAC,OAAO,CAAC,CAAC;IAC1C,MAAM,eAAe,GACnB,OAAO,OAAO,CAAC,eAAe,KAAK,QAAQ;QACzC,CAAC,CAAC,OAAO,CAAC,eAAe;QACzB,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;IACpB,MAAM,aAAa,GAAyB;QAC1C,IAAI,EAAE,a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AM,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;KACpC;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;QACnC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,EAAE;YAC5B,MAAM,IAAI,KAAK,CACb,qPAAqP,CACtP,CAAC;SACH;QACD,GAAG,CACD,gFAAgF,CACjF,CAAC;KACH;IAED,mDAAmD;IACnD,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE;QAC3B,aAAa,CAAC,QAAQ,GAAG,IAAA,uCAAkB,EAAC;YAC1C,aAAa,EAAE,OAAO,CAAC,aAAa;YACpC,OAAO,EAAE,IAAA,6CAAqB,EAAC,aAAa,EAAE,OAAO,CAAC,OAAO,CAAC;YAC9D,uBAAuB,EAAE,OAAO,CAAC,uBAAuB;YACxD,SAAS,EAAE,aAAa,CAAC,SAAS;YAClC,eAAe,EAAE,eAAe;SACjC,CAAC,CAAC;KACJ;IAED,IAAA,uCAAkB,EAAC,aAAa,CAAC,CAAC;IAElC,OAAO,aAAa,CAAC;AACvB,CAAC;AArGD,kDAqGC;AAED,SAAgB,uBAAuB;IACrC,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,KAAK,EAAE,CAAC;AAChC,CAAC;AAFD,0DAEC;AAED;;GAEG;AACH,SAAS,aAAa,CAAC,IAAa;IAClC,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;KACrB;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,WAAW,CAAC,GAAa;IAChC,OAAO,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC;AAC1C,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts deleted file mode 100644 index 0703e872..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { ParseSettings } from '.'; -/** - * Checks for a matching TSConfig to a file including its parent directories, - * permanently caching results under each directory it checks. - * - * @remarks - * We don't (yet!) have a way to attach file watchers on disk, but still need to - * cache file checks for rapid subsequent calls to fs.existsSync. See discussion - * in https://github.com/typescript-eslint/typescript-eslint/issues/101. - */ -export declare function getProjectConfigFiles(parseSettings: Pick, project: string | string[] | true | undefined): string[] | undefined; -//# sourceMappingURL=getProjectConfigFiles.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map deleted file mode 100644 index b901f007..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getProjectConfigFiles.d.ts","sourceRoot":"","sources":["../../src/parseSettings/getProjectConfigFiles.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,GAAG,CAAC;AAIvC;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,IAAI,CACjB,aAAa,EACb,UAAU,GAAG,oBAAoB,GAAG,iBAAiB,CACtD,EACD,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,GAC5C,MAAM,EAAE,GAAG,SAAS,CAmCtB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js deleted file mode 100644 index f0ec41af..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getProjectConfigFiles = void 0; -const debug_1 = __importDefault(require("debug")); -const fs = __importStar(require("fs")); -const path = __importStar(require("path")); -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:getProjectConfigFiles'); -/** - * Checks for a matching TSConfig to a file including its parent directories, - * permanently caching results under each directory it checks. - * - * @remarks - * We don't (yet!) have a way to attach file watchers on disk, but still need to - * cache file checks for rapid subsequent calls to fs.existsSync. See discussion - * in https://github.com/typescript-eslint/typescript-eslint/issues/101. - */ -function getProjectConfigFiles(parseSettings, project) { - var _a; - if (project !== true) { - return project === undefined || Array.isArray(project) - ? project - : [project]; - } - log('Looking for tsconfig.json at or above file: %s', parseSettings.filePath); - let directory = path.dirname(parseSettings.filePath); - const checkedDirectories = [directory]; - do { - log('Checking tsconfig.json path: %s', directory); - const tsconfigPath = path.join(directory, 'tsconfig.json'); - const cached = (_a = parseSettings.tsconfigMatchCache.get(directory)) !== null && _a !== void 0 ? _a : (fs.existsSync(tsconfigPath) && tsconfigPath); - if (cached) { - for (const directory of checkedDirectories) { - parseSettings.tsconfigMatchCache.set(directory, cached); - } - return [cached]; - } - directory = path.dirname(directory); - checkedDirectories.push(directory); - } while (directory.length > 1 && - directory.length >= parseSettings.tsconfigRootDir.length); - throw new Error(`project was set to \`true\` but couldn't find any tsconfig.json relative to '${parseSettings.filePath}' within '${parseSettings.tsconfigRootDir}'.`); -} -exports.getProjectConfigFiles = getProjectConfigFiles; -//# sourceMappingURL=getProjectConfigFiles.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map deleted file mode 100644 index 58298c63..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getProjectConfigFiles.js","sourceRoot":"","sources":["../../src/parseSettings/getProjectConfigFiles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,uCAAyB;AACzB,2CAA6B;AAI7B,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,2DAA2D,CAAC,CAAC;AAE/E;;;;;;;;GAQG;AACH,SAAgB,qBAAqB,CACnC,aAGC,EACD,OAA6C;;IAE7C,IAAI,OAAO,KAAK,IAAI,EAAE;QACpB,OAAO,OAAO,KAAK,SAAS,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;YACpD,CAAC,CAAC,OAAO;YACT,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;KACf;IAED,GAAG,CAAC,gDAAgD,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC9E,IAAI,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IACrD,MAAM,kBAAkB,GAAG,CAAC,SAAS,CAAC,CAAC;IAEvC,GAAG;QACD,GAAG,CAAC,iCAAiC,EAAE,SAAS,CAAC,CAAC;QAClD,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;QAC3D,MAAM,MAAM,GACV,MAAA,aAAa,CAAC,kBAAkB,CAAC,GAAG,CAAC,SAAS,CAAC,mCAC/C,CAAC,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,YAAY,CAAC,CAAC;QAEhD,IAAI,MAAM,EAAE;YACV,KAAK,MAAM,SAAS,IAAI,kBAAkB,EAAE;gBAC1C,aAAa,CAAC,kBAAkB,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;aACzD;YACD,OAAO,CAAC,MAAM,CAAC,CAAC;SACjB;QAED,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACpC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KACpC,QACC,SAAS,CAAC,MAAM,GAAG,CAAC;QACpB,SAAS,CAAC,MAAM,IAAI,aAAa,CAAC,eAAe,CAAC,MAAM,EACxD;IAEF,MAAM,IAAI,KAAK,CACb,gFAAgF,aAAa,CAAC,QAAQ,aAAa,aAAa,CAAC,eAAe,IAAI,CACrJ,CAAC;AACJ,CAAC;AAzCD,sDAyCC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts deleted file mode 100644 index 0854c613..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts +++ /dev/null @@ -1,107 +0,0 @@ -import type * as ts from 'typescript'; -import type { CanonicalPath } from '../create-program/shared'; -import type { TSESTree } from '../ts-estree'; -import type { CacheLike } from './ExpiringCache'; -type DebugModule = 'typescript-eslint' | 'eslint' | 'typescript'; -/** - * Internal settings used by the parser to run on a file. - */ -export interface MutableParseSettings { - /** - * Code of the file being parsed. - */ - code: string; - /** - * Whether the `comment` parse option is enabled. - */ - comment: boolean; - /** - * If the `comment` parse option is enabled, retrieved comments. - */ - comments: TSESTree.Comment[]; - /** - * Whether to create a TypeScript program if one is not provided. - */ - createDefaultProgram: boolean; - /** - * Which debug areas should be logged. - */ - debugLevel: Set; - /** - * Whether to error if TypeScript reports a semantic or syntactic error diagnostic. - */ - errorOnTypeScriptSyntacticAndSemanticIssues: boolean; - /** - * Whether to error if an unknown AST node type is encountered. - */ - errorOnUnknownASTType: boolean; - /** - * Whether TS should use the source files for referenced projects instead of the compiled .d.ts files. - * - * @remarks - * This feature is not yet optimized, and is likely to cause OOMs for medium to large projects. - * This flag REQUIRES at least TS v3.9, otherwise it does nothing. - */ - EXPERIMENTAL_useSourceOfProjectReferenceRedirect: boolean; - /** - * Any non-standard file extensions which will be parsed. - */ - extraFileExtensions: string[]; - /** - * Path of the file being parsed. - */ - filePath: string; - /** - * Whether parsing of JSX is enabled. - * - * @remarks The applicable file extension is still required. - */ - jsx: boolean; - /** - * Whether to add `loc` information to each node. - */ - loc: boolean; - /** - * Log function, if not `console.log`. - */ - log: (message: string) => void; - /** - * Path for a module resolver to use for the compiler host's `resolveModuleNames`. - */ - moduleResolver: string; - /** - * Whether two-way AST node maps are preserved during the AST conversion process. - */ - preserveNodeMaps?: boolean; - /** - * One or more instances of TypeScript Program objects to be used for type information. - */ - programs: null | Iterable; - /** - * Normalized paths to provided project paths. - */ - projects: readonly CanonicalPath[]; - /** - * Whether to add the `range` property to AST nodes. - */ - range: boolean; - /** - * Whether this is part of a single run, rather than a long-running process. - */ - singleRun: boolean; - /** - * If the `tokens` parse option is enabled, retrieved tokens. - */ - tokens: null | TSESTree.Token[]; - /** - * Caches searches for TSConfigs from project directories. - */ - tsconfigMatchCache: CacheLike; - /** - * The absolute path to the root directory for all provided `project`s. - */ - tsconfigRootDir: string; -} -export type ParseSettings = Readonly; -export {}; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map deleted file mode 100644 index 8339297a..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/parseSettings/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,KAAK,WAAW,GAAG,mBAAmB,GAAG,QAAQ,GAAG,YAAY,CAAC;AAEjE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;IAE7B;;OAEG;IACH,oBAAoB,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,UAAU,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;IAE7B;;OAEG;IACH,2CAA2C,EAAE,OAAO,CAAC;IAErD;;OAEG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAE/B;;;;;;OAMG;IACH,gDAAgD,EAAE,OAAO,CAAC;IAE1D;;OAEG;IACH,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAE9B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,GAAG,EAAE,OAAO,CAAC;IAEb;;OAEG;IACH,GAAG,EAAE,OAAO,CAAC;IAEb;;OAEG;IACH,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAE/B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,QAAQ,EAAE,IAAI,GAAG,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC;IAEtC;;OAEG;IACH,QAAQ,EAAE,SAAS,aAAa,EAAE,CAAC;IAEnC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,IAAI,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC;IAEhC;;OAEG;IACH,kBAAkB,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE9C;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,oBAAoB,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js deleted file mode 100644 index aa219d8f..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js.map deleted file mode 100644 index 66056421..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/parseSettings/index.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts deleted file mode 100644 index 1b28697f..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { TSESTreeOptions } from '../parser-options'; -/** - * ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts, - * such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback - * on a file in an IDE). - * - * When typescript-eslint handles TypeScript Program management behind the scenes, this distinction - * is important because there is significant overhead to managing the so called Watch Programs - * needed for the long-running use-case. We therefore use the following logic to figure out which - * of these contexts applies to the current execution. - * - * @returns Whether this is part of a single run, rather than a long-running process. - */ -export declare function inferSingleRun(options: TSESTreeOptions | undefined): boolean; -//# sourceMappingURL=inferSingleRun.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts.map deleted file mode 100644 index 6a4de986..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"inferSingleRun.d.ts","sourceRoot":"","sources":["../../src/parseSettings/inferSingleRun.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS,GAAG,OAAO,CAuC5E"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js deleted file mode 100644 index 6957a5cf..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.inferSingleRun = void 0; -const path_1 = require("path"); -/** - * ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts, - * such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback - * on a file in an IDE). - * - * When typescript-eslint handles TypeScript Program management behind the scenes, this distinction - * is important because there is significant overhead to managing the so called Watch Programs - * needed for the long-running use-case. We therefore use the following logic to figure out which - * of these contexts applies to the current execution. - * - * @returns Whether this is part of a single run, rather than a long-running process. - */ -function inferSingleRun(options) { - if ( - // single-run implies type-aware linting - no projects means we can't be in single-run mode - (options === null || options === void 0 ? void 0 : options.project) == null || - // programs passed via options means the user should be managing the programs, so we shouldn't - // be creating our own single-run programs accidentally - (options === null || options === void 0 ? void 0 : options.programs) != null) { - return false; - } - // Allow users to explicitly inform us of their intent to perform a single run (or not) with TSESTREE_SINGLE_RUN - if (process.env.TSESTREE_SINGLE_RUN === 'false') { - return false; - } - if (process.env.TSESTREE_SINGLE_RUN === 'true') { - return true; - } - // Currently behind a flag while we gather real-world feedback - if (options === null || options === void 0 ? void 0 : options.allowAutomaticSingleRunInference) { - if ( - // Default to single runs for CI processes. CI=true is set by most CI providers by default. - process.env.CI === 'true' || - // This will be true for invocations such as `npx eslint ...` and `./node_modules/.bin/eslint ...` - process.argv[1].endsWith((0, path_1.normalize)('node_modules/.bin/eslint'))) { - return true; - } - } - /** - * We default to assuming that this run could be part of a long-running session (e.g. in an IDE) - * and watch programs will therefore be required. - * - * Unless we can reliably infer otherwise, we default to assuming that this run could be part - * of a long-running session (e.g. in an IDE) and watch programs will therefore be required - */ - return false; -} -exports.inferSingleRun = inferSingleRun; -//# sourceMappingURL=inferSingleRun.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map deleted file mode 100644 index 5f327e36..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/inferSingleRun.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"inferSingleRun.js","sourceRoot":"","sources":["../../src/parseSettings/inferSingleRun.ts"],"names":[],"mappings":";;;AAAA,+BAAiC;AAIjC;;;;;;;;;;;GAWG;AACH,SAAgB,cAAc,CAAC,OAAoC;IACjE;IACE,2FAA2F;IAC3F,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,KAAI,IAAI;QACxB,8FAA8F;QAC9F,uDAAuD;QACvD,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,KAAI,IAAI,EACzB;QACA,OAAO,KAAK,CAAC;KACd;IAED,gHAAgH;IAChH,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB,KAAK,OAAO,EAAE;QAC/C,OAAO,KAAK,CAAC;KACd;IACD,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB,KAAK,MAAM,EAAE;QAC9C,OAAO,IAAI,CAAC;KACb;IAED,8DAA8D;IAC9D,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gCAAgC,EAAE;QAC7C;QACE,2FAA2F;QAC3F,OAAO,CAAC,GAAG,CAAC,EAAE,KAAK,MAAM;YACzB,kGAAkG;YAClG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAA,gBAAS,EAAC,0BAA0B,CAAC,CAAC,EAC/D;YACA,OAAO,IAAI,CAAC;SACb;KACF;IAED;;;;;;OAMG;IACH,OAAO,KAAK,CAAC;AACf,CAAC;AAvCD,wCAuCC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts deleted file mode 100644 index 3db071eb..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { CanonicalPath } from '../create-program/shared'; -import type { TSESTreeOptions } from '../parser-options'; -export declare function clearGlobCache(): void; -/** - * Normalizes, sanitizes, resolves and filters the provided project paths - */ -export declare function resolveProjectList(options: Readonly<{ - cacheLifetime?: TSESTreeOptions['cacheLifetime']; - project: TSESTreeOptions['project']; - projectFolderIgnoreList: TSESTreeOptions['projectFolderIgnoreList']; - singleRun: boolean; - tsconfigRootDir: string; -}>): readonly CanonicalPath[]; -/** - * Exported for testing purposes only - * @internal - */ -export declare function clearGlobResolutionCache(): void; -//# sourceMappingURL=resolveProjectList.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map deleted file mode 100644 index a248d3b2..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"resolveProjectList.d.ts","sourceRoot":"","sources":["../../src/parseSettings/resolveProjectList.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAM9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAazD,wBAAgB,cAAc,IAAI,IAAI,CAErC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,QAAQ,CAAC;IAChB,aAAa,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;IACjD,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACpC,uBAAuB,EAAE,eAAe,CAAC,yBAAyB,CAAC,CAAC;IACpE,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC,GACD,SAAS,aAAa,EAAE,CAiF1B;AAuBD;;;GAGG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAG/C"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js deleted file mode 100644 index 59b273d3..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js +++ /dev/null @@ -1,103 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.clearGlobResolutionCache = exports.resolveProjectList = exports.clearGlobCache = void 0; -const debug_1 = __importDefault(require("debug")); -const globby_1 = require("globby"); -const is_glob_1 = __importDefault(require("is-glob")); -const shared_1 = require("../create-program/shared"); -const ExpiringCache_1 = require("./ExpiringCache"); -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:parser:parseSettings:resolveProjectList'); -let RESOLUTION_CACHE = null; -function clearGlobCache() { - RESOLUTION_CACHE === null || RESOLUTION_CACHE === void 0 ? void 0 : RESOLUTION_CACHE.clear(); -} -exports.clearGlobCache = clearGlobCache; -/** - * Normalizes, sanitizes, resolves and filters the provided project paths - */ -function resolveProjectList(options) { - var _a, _b, _c; - const sanitizedProjects = []; - // Normalize and sanitize the project paths - if (typeof options.project === 'string') { - sanitizedProjects.push(options.project); - } - else if (Array.isArray(options.project)) { - for (const project of options.project) { - if (typeof project === 'string') { - sanitizedProjects.push(project); - } - } - } - if (sanitizedProjects.length === 0) { - return []; - } - const projectFolderIgnoreList = ((_a = options.projectFolderIgnoreList) !== null && _a !== void 0 ? _a : ['**/node_modules/**']) - .reduce((acc, folder) => { - if (typeof folder === 'string') { - acc.push(folder); - } - return acc; - }, []) - // prefix with a ! for not match glob - .map(folder => (folder.startsWith('!') ? folder : `!${folder}`)); - const cacheKey = getHash({ - project: sanitizedProjects, - projectFolderIgnoreList, - tsconfigRootDir: options.tsconfigRootDir, - }); - if (RESOLUTION_CACHE == null) { - // note - we initialize the global cache based on the first config we encounter. - // this does mean that you can't have multiple lifetimes set per folder - // I doubt that anyone will really bother reconfiguring this, let alone - // try to do complicated setups, so we'll deal with this later if ever. - RESOLUTION_CACHE = new ExpiringCache_1.ExpiringCache(options.singleRun - ? 'Infinity' - : (_c = (_b = options.cacheLifetime) === null || _b === void 0 ? void 0 : _b.glob) !== null && _c !== void 0 ? _c : ExpiringCache_1.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS); - } - else { - const cached = RESOLUTION_CACHE.get(cacheKey); - if (cached) { - return cached; - } - } - // Transform glob patterns into paths - const nonGlobProjects = sanitizedProjects.filter(project => !(0, is_glob_1.default)(project)); - const globProjects = sanitizedProjects.filter(project => (0, is_glob_1.default)(project)); - const uniqueCanonicalProjectPaths = new Set(nonGlobProjects - .concat(globProjects.length === 0 - ? [] - : (0, globby_1.sync)([...globProjects, ...projectFolderIgnoreList], { - cwd: options.tsconfigRootDir, - })) - .map(project => (0, shared_1.getCanonicalFileName)((0, shared_1.ensureAbsolutePath)(project, options.tsconfigRootDir)))); - log('parserOptions.project (excluding ignored) matched projects: %s', uniqueCanonicalProjectPaths); - const returnValue = Array.from(uniqueCanonicalProjectPaths); - RESOLUTION_CACHE.set(cacheKey, returnValue); - return returnValue; -} -exports.resolveProjectList = resolveProjectList; -function getHash({ project, projectFolderIgnoreList, tsconfigRootDir, }) { - // create a stable representation of the config - const hashObject = { - tsconfigRootDir, - // the project order does matter and can impact the resolved globs - project, - // the ignore order won't doesn't ever matter - projectFolderIgnoreList: [...projectFolderIgnoreList].sort(), - }; - return (0, shared_1.createHash)(JSON.stringify(hashObject)); -} -/** - * Exported for testing purposes only - * @internal - */ -function clearGlobResolutionCache() { - RESOLUTION_CACHE === null || RESOLUTION_CACHE === void 0 ? void 0 : RESOLUTION_CACHE.clear(); - RESOLUTION_CACHE = null; -} -exports.clearGlobResolutionCache = clearGlobResolutionCache; -//# sourceMappingURL=resolveProjectList.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map deleted file mode 100644 index c9043fae..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"resolveProjectList.js","sourceRoot":"","sources":["../../src/parseSettings/resolveProjectList.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,mCAA0C;AAC1C,sDAA6B;AAG7B,qDAIkC;AAElC,mDAGyB;AAEzB,MAAM,GAAG,GAAG,IAAA,eAAK,EACf,6EAA6E,CAC9E,CAAC;AAEF,IAAI,gBAAgB,GAClB,IAAI,CAAC;AAEP,SAAgB,cAAc;IAC5B,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,KAAK,EAAE,CAAC;AAC5B,CAAC;AAFD,wCAEC;AAED;;GAEG;AACH,SAAgB,kBAAkB,CAChC,OAME;;IAEF,MAAM,iBAAiB,GAAa,EAAE,CAAC;IAEvC,2CAA2C;IAC3C,IAAI,OAAO,OAAO,CAAC,OAAO,KAAK,QAAQ,EAAE;QACvC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;KACzC;SAAM,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QACzC,KAAK,MAAM,OAAO,IAAI,OAAO,CAAC,OAAO,EAAE;YACrC,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;gBAC/B,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aACjC;SACF;KACF;IAED,IAAI,iBAAiB,CAAC,MAAM,KAAK,CAAC,EAAE;QAClC,OAAO,EAAE,CAAC;KACX;IAED,MAAM,uBAAuB,GAAG,CAC9B,MAAA,OAAO,CAAC,uBAAuB,mCAAI,CAAC,oBAAoB,CAAC,CAC1D;SACE,MAAM,CAAW,CAAC,GAAG,EAAE,MAAM,EA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C;QACvB,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,IAAA,aAAQ,EAAC,CAAC,GAAG,YAAY,EAAE,GAAG,uBAAuB,CAAC,EAAE;YACtD,GAAG,EAAE,OAAO,CAAC,eAAe;SAC7B,CAAC,CACP;SACA,GAAG,CAAC,OAAO,CAAC,EAAE,CACb,IAAA,6BAAoB,EAClB,IAAA,2BAAkB,EAAC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,CACrD,CACF,CACJ,CAAC;IAEF,GAAG,CACD,gEAAgE,EAChE,2BAA2B,CAC5B,CAAC;IAEF,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;IAC5D,gBAAgB,CAAC,GAAG,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;IAC5C,OAAO,WAAW,CAAC;AACrB,CAAC;AAzFD,gDAyFC;AAED,SAAS,OAAO,CAAC,EACf,OAAO,EACP,uBAAuB,EACvB,eAAe,GAKf;IACA,+CAA+C;IAC/C,MAAM,UAAU,GAAG;QACjB,eAAe;QACf,kEAAkE;QAClE,OAAO;QACP,6CAA6C;QAC7C,uBAAuB,EAAE,CAAC,GAAG,uBAAuB,CAAC,CAAC,IAAI,EAAE;KAC7D,CAAC;IAEF,OAAO,IAAA,mBAAU,EAAC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;AAChD,CAAC;AAED;;;GAGG;AACH,SAAgB,wBAAwB;IACtC,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,KAAK,EAAE,CAAC;IAC1B,gBAAgB,GAAG,IAAI,CAAC;AAC1B,CAAC;AAHD,4DAGC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts deleted file mode 100644 index 54a7f47a..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type { ParseSettings } from './index'; -export declare function warnAboutTSVersion(parseSettings: ParseSettings): void; -//# sourceMappingURL=warnAboutTSVersion.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts.map deleted file mode 100644 index 82efcac9..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"warnAboutTSVersion.d.ts","sourceRoot":"","sources":["../../src/parseSettings/warnAboutTSVersion.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAsB7C,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI,CAmBrE"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js deleted file mode 100644 index 057b73fd..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.warnAboutTSVersion = void 0; -const semver_1 = __importDefault(require("semver")); -const ts = __importStar(require("typescript")); -/** - * This needs to be kept in sync with /docs/maintenance/Versioning.mdx - * in the typescript-eslint monorepo - */ -const SUPPORTED_TYPESCRIPT_VERSIONS = '>=3.3.1 <5.2.0'; -/* - * The semver package will ignore prerelease ranges, and we don't want to explicitly document every one - * List them all separately here, so we can automatically create the full string - */ -const SUPPORTED_PRERELEASE_RANGES = []; -const ACTIVE_TYPESCRIPT_VERSION = ts.version; -const isRunningSupportedTypeScriptVersion = semver_1.default.satisfies(ACTIVE_TYPESCRIPT_VERSION, [SUPPORTED_TYPESCRIPT_VERSIONS] - .concat(SUPPORTED_PRERELEASE_RANGES) - .join(' || ')); -let warnedAboutTSVersion = false; -function warnAboutTSVersion(parseSettings) { - var _a; - if (!isRunningSupportedTypeScriptVersion && !warnedAboutTSVersion) { - const isTTY = typeof process === 'undefined' ? false : (_a = process.stdout) === null || _a === void 0 ? void 0 : _a.isTTY; - if (isTTY) { - const border = '============='; - const versionWarning = [ - border, - 'WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.', - 'You may find that it works just fine, or you may not.', - `SUPPORTED TYPESCRIPT VERSIONS: ${SUPPORTED_TYPESCRIPT_VERSIONS}`, - `YOUR TYPESCRIPT VERSION: ${ACTIVE_TYPESCRIPT_VERSION}`, - 'Please only submit bug reports when using the officially supported version.', - border, - ]; - parseSettings.log(versionWarning.join('\n\n')); - } - warnedAboutTSVersion = true; - } -} -exports.warnAboutTSVersion = warnAboutTSVersion; -//# sourceMappingURL=warnAboutTSVersion.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map deleted file mode 100644 index 28129db3..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"warnAboutTSVersion.js","sourceRoot":"","sources":["../../src/parseSettings/warnAboutTSVersion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA4B;AAC5B,+CAAiC;AAGjC;;;GAGG;AACH,MAAM,6BAA6B,GAAG,gBAAgB,CAAC;AAEvD;;;GAGG;AACH,MAAM,2BAA2B,GAAa,EAAE,CAAC;AACjD,MAAM,yBAAyB,GAAG,EAAE,CAAC,OAAO,CAAC;AAC7C,MAAM,mCAAmC,GAAG,gBAAM,CAAC,SAAS,CAC1D,yBAAyB,EACzB,CAAC,6BAA6B,CAAC;KAC5B,MAAM,CAAC,2BAA2B,CAAC;KACnC,IAAI,CAAC,MAAM,CAAC,CAChB,CAAC;AAEF,IAAI,oBAAoB,GAAG,KAAK,CAAC;AAEjC,SAAgB,kBAAkB,CAAC,aAA4B;;IAC7D,IAAI,CAAC,mCAAmC,IAAI,CAAC,oBAAoB,EAAE;QACjE,MAAM,KAAK,GACT,OAAO,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAA,OAAO,CAAC,MAAM,0CAAE,KAAK,CAAC;QACjE,IAAI,KAAK,EAAE;YACT,MAAM,MAAM,GAAG,eAAe,CAAC;YAC/B,MAAM,cAAc,GAAG;gBACrB,MAAM;gBACN,uIAAuI;gBACvI,uDAAuD;gBACvD,kCAAkC,6BAA6B,EAAE;gBACjE,4BAA4B,yBAAyB,EAAE;gBACvD,6EAA6E;gBAC7E,MAAM;aACP,CAAC;YACF,aAAa,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;SAChD;QACD,oBAAoB,GAAG,IAAI,CAAC;KAC7B;AACH,CAAC;AAnBD,gDAmBC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts deleted file mode 100644 index 101ee1e1..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +++ /dev/null @@ -1,181 +0,0 @@ -import type { CacheDurationSeconds, DebugLevel } from '@typescript-eslint/types'; -import type * as ts from 'typescript'; -import type { TSESTree, TSESTreeToTSNode, TSNode, TSToken } from './ts-estree'; -interface ParseOptions { - /** - * create a top-level comments array containing all comments - */ - comment?: boolean; - /** - * An array of modules to turn explicit debugging on for. - * - 'typescript-eslint' is the same as setting the env var `DEBUG=typescript-eslint:*` - * - 'eslint' is the same as setting the env var `DEBUG=eslint:*` - * - 'typescript' is the same as setting `extendedDiagnostics: true` in your tsconfig compilerOptions - * - * For convenience, also supports a boolean: - * - true === ['typescript-eslint'] - * - false === [] - */ - debugLevel?: DebugLevel; - /** - * Cause the parser to error if it encounters an unknown AST node type (useful for testing). - * This case only usually occurs when TypeScript releases new features. - */ - errorOnUnknownASTType?: boolean; - /** - * Absolute (or relative to `cwd`) path to the file being parsed. - */ - filePath?: string; - /** - * Enable parsing of JSX. - * For more details, see https://www.typescriptlang.org/docs/handbook/jsx.html - * - * NOTE: this setting does not effect known file types (.js, .cjs, .mjs, .jsx, .ts, .mts, .cts, .tsx, .json) because the - * TypeScript compiler has its own internal handling for known file extensions. - * - * For the exact behavior, see https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/parser#parseroptionsecmafeaturesjsx - */ - jsx?: boolean; - /** - * Controls whether the `loc` information to each node. - * The `loc` property is an object which contains the exact line/column the node starts/ends on. - * This is similar to the `range` property, except it is line/column relative. - */ - loc?: boolean; - loggerFn?: ((message: string) => void) | false; - /** - * Controls whether the `range` property is included on AST nodes. - * The `range` property is a [number, number] which indicates the start/end index of the node in the file contents. - * This is similar to the `loc` property, except this is the absolute index. - */ - range?: boolean; - /** - * Set to true to create a top-level array containing all tokens from the file. - */ - tokens?: boolean; -} -interface ParseAndGenerateServicesOptions extends ParseOptions { - /** - * Causes the parser to error if the TypeScript compiler returns any unexpected syntax/semantic errors. - */ - errorOnTypeScriptSyntacticAndSemanticIssues?: boolean; - /** - * ***EXPERIMENTAL FLAG*** - Use this at your own risk. - * - * Causes TS to use the source files for referenced projects instead of the compiled .d.ts files. - * This feature is not yet optimized, and is likely to cause OOMs for medium to large projects. - * - * This flag REQUIRES at least TS v3.9, otherwise it does nothing. - * - * See: https://github.com/typescript-eslint/typescript-eslint/issues/2094 - */ - EXPERIMENTAL_useSourceOfProjectReferenceRedirect?: boolean; - /** - * When `project` is provided, this controls the non-standard file extensions which will be parsed. - * It accepts an array of file extensions, each preceded by a `.`. - */ - extraFileExtensions?: string[]; - /** - * Absolute (or relative to `tsconfigRootDir`) path to the file being parsed. - * When `project` is provided, this is required, as it is used to fetch the file from the TypeScript compiler's cache. - */ - filePath?: string; - /** - * Allows the user to control whether or not two-way AST node maps are preserved - * during the AST conversion process. - * - * By default: the AST node maps are NOT preserved, unless `project` has been specified, - * in which case the maps are made available on the returned `parserServices`. - * - * NOTE: If `preserveNodeMaps` is explicitly set by the user, it will be respected, - * regardless of whether or not `project` is in use. - */ - preserveNodeMaps?: boolean; - /** - * Absolute (or relative to `tsconfigRootDir`) paths to the tsconfig(s), - * or `true` to find the nearest tsconfig.json to the file. - * If this is provided, type information will be returned. - */ - project?: string | string[] | true; - /** - * If you provide a glob (or globs) to the project option, you can use this option to ignore certain folders from - * being matched by the globs. - * This accepts an array of globs to ignore. - * - * By default, this is set to ["**\/node_modules/**"] - */ - projectFolderIgnoreList?: string[]; - /** - * The absolute path to the root directory for all provided `project`s. - */ - tsconfigRootDir?: string; - /** - * An array of one or more instances of TypeScript Program objects to be used for type information. - * This overrides any program or programs that would have been computed from the `project` option. - * All linted files must be part of the provided program(s). - */ - programs?: ts.Program[]; - /** - *************************************************************************************** - * IT IS RECOMMENDED THAT YOU DO NOT USE THIS OPTION, AS IT CAUSES PERFORMANCE ISSUES. * - *************************************************************************************** - * - * When passed with `project`, this allows the parser to create a catch-all, default program. - * This means that if the parser encounters a file not included in any of the provided `project`s, - * it will not error, but will instead parse the file and its dependencies in a new program. - */ - createDefaultProgram?: boolean; - /** - * ESLint (and therefore typescript-eslint) is used in both "single run"/one-time contexts, - * such as an ESLint CLI invocation, and long-running sessions (such as continuous feedback - * on a file in an IDE). - * - * When typescript-eslint handles TypeScript Program management behind the scenes, this distinction - * is important because there is significant overhead to managing the so called Watch Programs - * needed for the long-running use-case. - * - * When allowAutomaticSingleRunInference is enabled, we will use common heuristics to infer - * whether or not ESLint is being used as part of a single run. - */ - allowAutomaticSingleRunInference?: boolean; - /** - * Granular control of the expiry lifetime of our internal caches. - * You can specify the number of seconds as an integer number, or the string - * 'Infinity' if you never want the cache to expire. - * - * By default cache entries will be evicted after 30 seconds, or will persist - * indefinitely if `allowAutomaticSingleRunInference = true` AND the parser - * infers that it is a single run. - */ - cacheLifetime?: { - /** - * Glob resolution for `parserOptions.project` values. - */ - glob?: CacheDurationSeconds; - }; - /** - * Path to a file exporting a custom `ModuleResolver`. - */ - moduleResolver?: string; -} -export type TSESTreeOptions = ParseAndGenerateServicesOptions; -export interface ParserWeakMap { - get(key: TKey): TValue; - has(key: unknown): boolean; -} -export interface ParserWeakMapESTreeToTSNode { - get(key: TKeyBase): TSESTreeToTSNode; - has(key: unknown): boolean; -} -export interface ParserServices { - program: ts.Program; - esTreeNodeToTSNodeMap: ParserWeakMapESTreeToTSNode; - tsNodeToESTreeNodeMap: ParserWeakMap; - hasFullTypeInformation: boolean; -} -export interface ModuleResolver { - version: 1; - resolveModuleNames(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ts.ResolvedProjectReference | undefined, options: ts.CompilerOptions): (ts.ResolvedModule | undefined)[]; -} -export {}; -//# sourceMappingURL=parser-options.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map deleted file mode 100644 index 8f15315e..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser-options.d.ts","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,UAAU,EACX,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAM/E,UAAU,YAAY;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;;OAQG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd;;;;OAIG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAOd,QAAQ,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC;IAE/C;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,UAAU,+BAAgC,SAAQ,YAAY;IAC5D;;OAEG;IACH,2CAA2C,CAAC,EAAE,OAAO,CAAC;IAEtD;;;;;;;;;OASG;IACH,gDAAgD,CAAC,EAAE,OAAO,CAAC;IAE3D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EAAE,EAAE,CAAC,OAAO,CAAC;IACpB,qBAAqB,EAAE,2BAA2B,CAAC;IACnD,qBAAqB,EAAE,aAAa,CAAC,MAAM,GAAG,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IACtE,sBAAsB,EAAE,OAAO,CAAC;CACjC;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,CAAC,CAAC;IACX,kBAAkB,CAChB,WAAW,EAAE,MAAM,EAAE,EACrB,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,EAAE,GAAG,SAAS,EACjC,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,GAAG,SAAS,EAC5D,OAAO,EAAE,EAAE,CAAC,eAAe,GAC1B,CAAC,EAAE,CAAC,cAAc,GAAG,SAAS,CAAC,EAAE,CAAC;CACtC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js b/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js deleted file mode 100644 index 66f40a29..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=parser-options.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js.map deleted file mode 100644 index 22b7b8ab..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser-options.js","sourceRoot":"","sources":["../src/parser-options.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts deleted file mode 100644 index 96b21bd5..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type { ParserServices, TSESTreeOptions } from './parser-options'; -import type { TSESTree } from './ts-estree'; -declare function clearProgramCache(): void; -interface EmptyObject { -} -type AST = TSESTree.Program & (T['tokens'] extends true ? { - tokens: TSESTree.Token[]; -} : EmptyObject) & (T['comment'] extends true ? { - comments: TSESTree.Comment[]; -} : EmptyObject); -interface ParseAndGenerateServicesResult { - ast: AST; - services: ParserServices; -} -interface ParseWithNodeMapsResult { - ast: AST; - esTreeNodeToTSNodeMap: ParserServices['esTreeNodeToTSNodeMap']; - tsNodeToESTreeNodeMap: ParserServices['tsNodeToESTreeNodeMap']; -} -declare function parse(code: string, options?: T): AST; -declare function parseWithNodeMaps(code: string, options?: T): ParseWithNodeMapsResult; -declare function clearParseAndGenerateServicesCalls(): void; -declare function parseAndGenerateServices(code: string, options: T): ParseAndGenerateServicesResult; -export { AST, parse, parseAndGenerateServices, parseWithNodeMaps, ParseAndGenerateServicesResult, ParseWithNodeMapsResult, clearProgramCache, clearParseAndGenerateServicesCalls, }; -//# sourceMappingURL=parser.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map deleted file mode 100644 index de66472d..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAIxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAU5C,iBAAS,iBAAiB,IAAI,IAAI,CAEjC;AAuBD,UAAU,WAAW;CAAG;AACxB,KAAK,GAAG,CAAC,CAAC,SAAS,eAAe,IAAI,QAAQ,CAAC,OAAO,GACpD,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,IAAI,GAAG;IAAE,MAAM,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAA;CAAE,GAAG,WAAW,CAAC,GACvE,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,IAAI,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAA;CAAE,GAAG,WAAW,CAAC,CAAC;AAE/E,UAAU,8BAA8B,CAAC,CAAC,SAAS,eAAe;IAChE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IACZ,QAAQ,EAAE,cAAc,CAAC;CAC1B;AACD,UAAU,uBAAuB,CAAC,CAAC,SAAS,eAAe;IACzD,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IACZ,qBAAqB,EAAE,cAAc,CAAC,uBAAuB,CAAC,CAAC;IAC/D,qBAAqB,EAAE,cAAc,CAAC,uBAAuB,CAAC,CAAC;CAChE;AAED,iBAAS,KAAK,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,EACxD,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,CAAC,GACV,GAAG,CAAC,CAAC,CAAC,CAGR;AA0CD,iBAAS,iBAAiB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,EACpE,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,CAAC,GACV,uBAAuB,CAAC,CAAC,CAAC,CAE5B;AAID,iBAAS,kCAAkC,IAAI,IAAI,CAElD;AAED,iBAAS,wBAAwB,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,EAC3E,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,CAAC,GACT,8BAA8B,CAAC,CAAC,CAAC,CA8GnC;AAED,OAAO,EACL,GAAG,EACH,KAAK,EACL,wBAAwB,EACxB,iBAAiB,EACjB,8BAA8B,EAC9B,uBAAuB,EACvB,iBAAiB,EACjB,kCAAkC,GACnC,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parser.js b/node_modules/@typescript-eslint/typescript-estree/dist/parser.js deleted file mode 100644 index ca184bd0..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parser.js +++ /dev/null @@ -1,173 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.clearParseAndGenerateServicesCalls = exports.clearProgramCache = exports.parseWithNodeMaps = exports.parseAndGenerateServices = exports.parse = void 0; -const debug_1 = __importDefault(require("debug")); -const ast_converter_1 = require("./ast-converter"); -const convert_1 = require("./convert"); -const createDefaultProgram_1 = require("./create-program/createDefaultProgram"); -const createIsolatedProgram_1 = require("./create-program/createIsolatedProgram"); -const createProjectProgram_1 = require("./create-program/createProjectProgram"); -const createSourceFile_1 = require("./create-program/createSourceFile"); -const useProvidedPrograms_1 = require("./create-program/useProvidedPrograms"); -const createParseSettings_1 = require("./parseSettings/createParseSettings"); -const semantic_or_syntactic_errors_1 = require("./semantic-or-syntactic-errors"); -const log = (0, debug_1.default)('typescript-eslint:typescript-estree:parser'); -/** - * Cache existing programs for the single run use-case. - * - * clearProgramCache() is only intended to be used in testing to ensure the parser is clean between tests. - */ -const existingPrograms = new Map(); -function clearProgramCache() { - existingPrograms.clear(); -} -exports.clearProgramCache = clearProgramCache; -/** - * @param parseSettings Internal settings for parsing the file - * @param shouldProvideParserServices True if the program should be attempted to be calculated from provided tsconfig files - * @returns Returns a source file and program corresponding to the linted code - */ -function getProgramAndAST(parseSettings, shouldProvideParserServices) { - return ((parseSettings.programs && - (0, useProvidedPrograms_1.useProvidedPrograms)(parseSettings.programs, parseSettings)) || - (shouldProvideParserServices && (0, createProjectProgram_1.createProjectProgram)(parseSettings)) || - (shouldProvideParserServices && - parseSettings.createDefaultProgram && - (0, createDefaultProgram_1.createDefaultProgram)(parseSettings)) || - (0, createIsolatedProgram_1.createIsolatedProgram)(parseSettings)); -} -function parse(code, options) { - const { ast } = parseWithNodeMapsInternal(code, options, false); - return ast; -} -exports.parse = parse; -function parseWithNodeMapsInternal(code, options, shouldPreserveNodeMaps) { - /** - * Reset the parse configuration - */ - const parseSettings = (0, createParseSettings_1.createParseSettings)(code, options); - /** - * Ensure users do not attempt to use parse() when they need parseAndGenerateServices() - */ - if (options === null || options === void 0 ? void 0 : options.errorOnTypeScriptSyntacticAndSemanticIssues) { - throw new Error(`"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()`); - } - /** - * Create a ts.SourceFile directly, no ts.Program is needed for a simple parse - */ - const ast = (0, createSourceFile_1.createSourceFile)(parseSettings); - /** - * Convert the TypeScript AST to an ESTree-compatible one - */ - const { estree, astMaps } = (0, ast_converter_1.astConverter)(ast, parseSettings, shouldPreserveNodeMaps); - return { - ast: estree, - esTreeNodeToTSNodeMap: astMaps.esTreeNodeToTSNodeMap, - tsNodeToESTreeNodeMap: astMaps.tsNodeToESTreeNodeMap, - }; -} -function parseWithNodeMaps(code, options) { - return parseWithNodeMapsInternal(code, options, true); -} -exports.parseWithNodeMaps = parseWithNodeMaps; -let parseAndGenerateServicesCalls = {}; -// Privately exported utility intended for use in typescript-eslint unit tests only -function clearParseAndGenerateServicesCalls() { - parseAndGenerateServicesCalls = {}; -} -exports.clearParseAndGenerateServicesCalls = clearParseAndGenerateServicesCalls; -function parseAndGenerateServices(code, options) { - var _a, _b; - /** - * Reset the parse configuration - */ - const parseSettings = (0, createParseSettings_1.createParseSettings)(code, options); - if (options !== undefined) { - if (typeof options.errorOnTypeScriptSyntacticAndSemanticIssues === - 'boolean' && - options.errorOnTypeScriptSyntacticAndSemanticIssues) { - parseSettings.errorOnTypeScriptSyntacticAndSemanticIssues = true; - } - } - /** - * If this is a single run in which the user has not provided any existing programs but there - * are programs which need to be created from the provided "project" option, - * create an Iterable which will lazily create the programs as needed by the iteration logic - */ - if (parseSettings.singleRun && - !parseSettings.programs && - ((_a = parseSettings.projects) === null || _a === void 0 ? void 0 : _a.length) > 0) { - parseSettings.programs = { - *[Symbol.iterator]() { - for (const configFile of parseSettings.projects) { - const existingProgram = existingPrograms.get(configFile); - if (existingProgram) { - yield existingProgram; - } - else { - log('Detected single-run/CLI usage, creating Program once ahead of time for project: %s', configFile); - const newProgram = (0, useProvidedPrograms_1.createProgramFromConfigFile)(configFile); - existingPrograms.set(configFile, newProgram); - yield newProgram; - } - } - }, - }; - } - /** - * Generate a full ts.Program or offer provided instances in order to be able to provide parser services, such as type-checking - */ - const shouldProvideParserServices = parseSettings.programs != null || ((_b = parseSettings.projects) === null || _b === void 0 ? void 0 : _b.length) > 0; - /** - * If we are in singleRun mode but the parseAndGenerateServices() function has been called more than once for the current file, - * it must mean that we are in the middle of an ESLint automated fix cycle (in which parsing can be performed up to an additional - * 10 times in order to apply all possible fixes for the file). - * - * In this scenario we cannot rely upon the singleRun AOT compiled programs because the SourceFiles will not contain the source - * with the latest fixes applied. Therefore we fallback to creating the quickest possible isolated program from the updated source. - */ - if (parseSettings.singleRun && options.filePath) { - parseAndGenerateServicesCalls[options.filePath] = - (parseAndGenerateServicesCalls[options.filePath] || 0) + 1; - } - const { ast, program } = parseSettings.singleRun && - options.filePath && - parseAndGenerateServicesCalls[options.filePath] > 1 - ? (0, createIsolatedProgram_1.createIsolatedProgram)(parseSettings) - : getProgramAndAST(parseSettings, shouldProvideParserServices); - /** - * Convert the TypeScript AST to an ESTree-compatible one, and optionally preserve - * mappings between converted and original AST nodes - */ - const shouldPreserveNodeMaps = typeof parseSettings.preserveNodeMaps === 'boolean' - ? parseSettings.preserveNodeMaps - : true; - const { estree, astMaps } = (0, ast_converter_1.astConverter)(ast, parseSettings, shouldPreserveNodeMaps); - /** - * Even if TypeScript parsed the source code ok, and we had no problems converting the AST, - * there may be other syntactic or semantic issues in the code that we can optionally report on. - */ - if (program && parseSettings.errorOnTypeScriptSyntacticAndSemanticIssues) { - const error = (0, semantic_or_syntactic_errors_1.getFirstSemanticOrSyntacticError)(program, ast); - if (error) { - throw (0, convert_1.convertError)(error); - } - } - /** - * Return the converted AST and additional parser services - */ - return { - ast: estree, - services: { - hasFullTypeInformation: shouldProvideParserServices, - program, - esTreeNodeToTSNodeMap: astMaps.esTreeNodeToTSNodeMap, - tsNodeToESTreeNodeMap: astMaps.tsNodeToESTreeNodeMap, - }, - }; -} -exports.parseAndGenerateServices = parseAndGenerateServices; -//# sourceMappingURL=parser.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map deleted file mode 100644 index ed8af5a3..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/parser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser.js","sourceRoot":"","sources":["../src/parser.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAG1B,mDAA+C;AAC/C,uCAAyC;AACzC,gFAA6E;AAC7E,kFAA+E;AAC/E,gFAA6E;AAC7E,wEAAqE;AAErE,8EAG8C;AAG9C,6EAA0E;AAC1E,iFAAkF;AAGlF,MAAM,GAAG,GAAG,IAAA,eAAK,EAAC,4CAA4C,CAAC,CAAC;AAEhE;;;;GAIG;AACH,MAAM,gBAAgB,GAAG,IAAI,GAAG,EAA6B,CAAC;AAC9D,SAAS,iBAAiB;IACxB,gBAAgB,CAAC,KAAK,EAAE,CAAC;AAC3B,CAAC;AA6NC,8CAAiB;AA3NnB;;;;GAIG;AACH,SAAS,gBAAgB,CACvB,aAA4B,EAC5B,2BAAoC;IAEpC,OAAO,CACL,CAAC,aAAa,CAAC,QAAQ;QACrB,IAAA,yCAAmB,EAAC,aAAa,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;QAC7D,CAAC,2BAA2B,IAAI,IAAA,2CAAoB,EAAC,aAAa,CAAC,CAAC;QACpE,CAAC,2BAA2B;YAC1B,aAAa,CAAC,oBAAoB;YAClC,IAAA,2CAAoB,EAAC,aAAa,CAAC,CAAC;QACtC,IAAA,6CAAqB,EAAC,aAAa,CAAC,CACrC,CAAC;AACJ,CAAC;AAkBD,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OAAO,CAAC,QAAQ;QAChB,6BAA6B,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC;QACjD,CAAC,CAAC,IAAA,6CAAqB,EAAC,aAAa,CAAC;QACtC,CAAC,CAAC,gBAAgB,CAAC,aAAa,EAAE,2BAA2B,CAAE,CAAC;IAEpE;;;OAGG;IACH,MAAM,sBAAsB,GAC1B,OAAO,aAAa,CAAC,gBAAgB,KAAK,SAAS;QACjD,CAAC,CAAC,aAAa,CAAC,gBAAgB;QAChC,CAAC,CAAC,IAAI,CAAC;IAEX,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,4BAAY,EACtC,GAAG,EACH,aAAa,EACb,sBAAsB,CACvB,CAAC;IAEF;;;OAGG;IACH,IAAI,OAAO,IAAI,aAAa,CAAC,2CAA2C,EAAE;QACxE,MAAM,KAAK,GAAG,IAAA,+DAAgC,EAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QAC7D,IAAI,KAAK,EAAE;YACT,MAAM,IAAA,sBAAY,EAAC,KAAK,CAAC,CAAC;SAC3B;KACF;IAED;;OAEG;IACH,OAAO;QACL,GAAG,EAAE,MAAgB;QACrB,QAAQ,EAAE;YACR,sBAAsB,EAAE,2BAA2B;YACnD,OAAO;YACP,qBAAqB,EAAE,OAAO,CAAC,qBAAqB;YACpD,qBAAqB,EAAE,OAAO,CAAC,qBAAqB;SACrD;KACF,CAAC;AACJ,CAAC;AAKC,4DAAwB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts deleted file mode 100644 index bd35968c..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type { Diagnostic, Program, SourceFile } from 'typescript'; -export interface SemanticOrSyntacticError extends Diagnostic { - message: string; -} -/** - * By default, diagnostics from the TypeScript compiler contain all errors - regardless of whether - * they are related to generic ECMAScript standards, or TypeScript-specific constructs. - * - * Therefore, we filter out all diagnostics, except for the ones we explicitly want to consider when - * the user opts in to throwing errors on semantic issues. - */ -export declare function getFirstSemanticOrSyntacticError(program: Program, ast: SourceFile): SemanticOrSyntacticError | undefined; -//# sourceMappingURL=semantic-or-syntactic-errors.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts.map deleted file mode 100644 index d17a7ae6..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"semantic-or-syntactic-errors.d.ts","sourceRoot":"","sources":["../src/semantic-or-syntactic-errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EAEV,OAAO,EACP,UAAU,EACX,MAAM,YAAY,CAAC;AAGpB,MAAM,WAAW,wBAAyB,SAAQ,UAAU;IAC1D,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,wBAAgB,gCAAgC,CAC9C,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,UAAU,GACd,wBAAwB,GAAG,SAAS,CAmCtC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js b/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js deleted file mode 100644 index 13b0fc05..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js +++ /dev/null @@ -1,93 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getFirstSemanticOrSyntacticError = void 0; -const typescript_1 = require("typescript"); -/** - * By default, diagnostics from the TypeScript compiler contain all errors - regardless of whether - * they are related to generic ECMAScript standards, or TypeScript-specific constructs. - * - * Therefore, we filter out all diagnostics, except for the ones we explicitly want to consider when - * the user opts in to throwing errors on semantic issues. - */ -function getFirstSemanticOrSyntacticError(program, ast) { - try { - const supportedSyntacticDiagnostics = whitelistSupportedDiagnostics(program.getSyntacticDiagnostics(ast)); - if (supportedSyntacticDiagnostics.length) { - return convertDiagnosticToSemanticOrSyntacticError(supportedSyntacticDiagnostics[0]); - } - const supportedSemanticDiagnostics = whitelistSupportedDiagnostics(program.getSemanticDiagnostics(ast)); - if (supportedSemanticDiagnostics.length) { - return convertDiagnosticToSemanticOrSyntacticError(supportedSemanticDiagnostics[0]); - } - return undefined; - } - catch (e) { - /** - * TypeScript compiler has certain Debug.fail() statements in, which will cause the diagnostics - * retrieval above to throw. - * - * E.g. from ast-alignment-tests - * "Debug Failure. Shouldn't ever directly check a JsxOpeningElement" - * - * For our current use-cases this is undesired behavior, so we just suppress it - * and log a a warning. - */ - /* istanbul ignore next */ - console.warn(`Warning From TSC: "${e.message}`); // eslint-disable-line no-console - /* istanbul ignore next */ - return undefined; - } -} -exports.getFirstSemanticOrSyntacticError = getFirstSemanticOrSyntacticError; -function whitelistSupportedDiagnostics(diagnostics) { - return diagnostics.filter(diagnostic => { - switch (diagnostic.code) { - case 1013: // "A rest parameter or binding pattern may not have a trailing comma." - case 1014: // "A rest parameter must be last in a parameter list." - case 1044: // "'{0}' modifier cannot appear on a module or namespace element." - case 1045: // "A '{0}' modifier cannot be used with an interface declaration." - case 1048: // "A rest parameter cannot have an initializer." - case 1049: // "A 'set' accessor must have exactly one parameter." - case 1070: // "'{0}' modifier cannot appear on a type member." - case 1071: // "'{0}' modifier cannot appear on an index signature." - case 1085: // "Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'." - case 1090: // "'{0}' modifier cannot appear on a parameter." - case 1096: // "An index signature must have exactly one parameter." - case 1097: // "'{0}' list cannot be empty." - case 1098: // "Type parameter list cannot be empty." - case 1099: // "Type argument list cannot be empty." - case 1117: // "An object literal cannot have multiple properties with the same name in strict mode." - case 1121: // "Octal literals are not allowed in strict mode." - case 1123: // "Variable declaration list cannot be empty." - case 1141: // "String literal expected." - case 1162: // "An object member cannot be declared optional." - case 1164: // "Computed property names are not allowed in enums." - case 1172: // "'extends' clause already seen." - case 1173: // "'extends' clause must precede 'implements' clause." - case 1175: // "'implements' clause already seen." - case 1176: // "Interface declaration cannot have 'implements' clause." - case 1190: // "The variable declaration of a 'for...of' statement cannot have an initializer." - case 1196: // "Catch clause variable type annotation must be 'any' or 'unknown' if specified." - case 1200: // "Line terminator not permitted before arrow." - case 1206: // "Decorators are not valid here." - case 1211: // "A class declaration without the 'default' modifier must have a name." - case 1242: // "'abstract' modifier can only appear on a class, method, or property declaration." - case 1246: // "An interface property cannot have an initializer." - case 1255: // "A definite assignment assertion '!' is not permitted in this context." - case 1308: // "'await' expression is only allowed within an async function." - case 2364: // "The left-hand side of an assignment expression must be a variable or a property access." - case 2369: // "A parameter property is only allowed in a constructor implementation." - case 2452: // "An enum member cannot have a numeric name." - case 2462: // "A rest element must be last in a destructuring pattern." - case 8017: // "Octal literal types must use ES2015 syntax. Use the syntax '{0}'." - case 17012: // "'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?" - case 17013: // "Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor." - return true; - } - return false; - }); -} -function convertDiagnosticToSemanticOrSyntacticError(diagnostic) { - return Object.assign(Object.assign({}, diagnostic), { message: (0, typescript_1.flattenDiagnosticMessageText)(diagnostic.messageText, typescript_1.sys.newLine) }); -} -//# sourceMappingURL=semantic-or-syntactic-errors.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js.map deleted file mode 100644 index 30a4a23f..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/semantic-or-syntactic-errors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"semantic-or-syntactic-errors.js","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,oHAAoH;gBAC9H,OAAO,IAAI,CAAC;SACf;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,2CAA2C,CAClD,UAAsB;IAEtB,uCACK,UAAU,KACb,OAAO,EAAE,IAAA,yCAA4B,EAAC,UAAU,CAAC,WAAW,EAAE,gBAAG,CAAC,OAAO,CAAC,IAC1E;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts deleted file mode 100644 index e6ca38d5..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { TSESTree } from './ts-estree'; -type SimpleTraverseOptions = { - enter: (node: TSESTree.Node, parent: TSESTree.Node | undefined) => void; -} | { - [key: string]: (node: TSESTree.Node, parent: TSESTree.Node | undefined) => void; -}; -export declare function simpleTraverse(startingNode: TSESTree.Node, options: SimpleTraverseOptions, setParentPointers?: boolean): void; -export {}; -//# sourceMappingURL=simple-traverse.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map deleted file mode 100644 index c716cd6c..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-traverse.d.ts","sourceRoot":"","sources":["../src/simple-traverse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAgB5C,KAAK,qBAAqB,GACtB;IACE,KAAK,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;CACzE,GACD;IACE,CAAC,GAAG,EAAE,MAAM,GAAG,CACb,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,MAAM,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,KAC9B,IAAI,CAAC;CACX,CAAC;AA8CN,wBAAgB,cAAc,CAC5B,YAAY,EAAE,QAAQ,CAAC,IAAI,EAC3B,OAAO,EAAE,qBAAqB,EAC9B,iBAAiB,UAAQ,GACxB,IAAI,CAKN"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js b/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js deleted file mode 100644 index 1295a64b..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.simpleTraverse = void 0; -const visitor_keys_1 = require("@typescript-eslint/visitor-keys"); -// eslint-disable-next-line @typescript-eslint/no-explicit-any -function isValidNode(x) { - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access - return x != null && typeof x === 'object' && typeof x.type === 'string'; -} -function getVisitorKeysForNode(allVisitorKeys, node) { - const keys = allVisitorKeys[node.type]; - return (keys !== null && keys !== void 0 ? keys : []); -} -class SimpleTraverser { - constructor(selectors, setParentPointers = false) { - this.allVisitorKeys = visitor_keys_1.visitorKeys; - this.selectors = selectors; - this.setParentPointers = setParentPointers; - } - traverse(node, parent) { - if (!isValidNode(node)) { - return; - } - if (this.setParentPointers) { - node.parent = parent; - } - if ('enter' in this.selectors) { - this.selectors.enter(node, parent); - } - else if (node.type in this.selectors) { - this.selectors[node.type](node, parent); - } - const keys = getVisitorKeysForNode(this.allVisitorKeys, node); - if (keys.length < 1) { - return; - } - for (const key of keys) { - const childOrChildren = node[key]; - if (Array.isArray(childOrChildren)) { - for (const child of childOrChildren) { - this.traverse(child, node); - } - } - else { - this.traverse(childOrChildren, node); - } - } - } -} -function simpleTraverse(startingNode, options, setParentPointers = false) { - new SimpleTraverser(options, setParentPointers).traverse(startingNode, undefined); -} -exports.simpleTraverse = simpleTraverse; -//# sourceMappingURL=simple-traverse.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map deleted file mode 100644 index 1cd6dc3d..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple-traverse.js","sourceRoot":"","sources":["../src/simple-traverse.ts"],"names":[],"mappings":";;;AAAA,kEAA8D;AAI9D,8DAA8D;AAC9D,SAAS,WAAW,CAAC,CAAM;IACzB,sEAAsE;IACtE,OAAO,CAAC,IAAI,IAAI,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,OAAO,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC;AAC1E,CAAC;AAED,SAAS,qBAAqB,CAC5B,cAAkC,EAClC,IAAmB;IAEnB,MAAM,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvC,OAAO,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAU,CAAC;AAC/B,CAAC;AAaD,MAAM,eAAe;IAKnB,YAAY,SAAgC,EAAE,iBAAiB,GAAG,KAAK;QAJtD,mBAAc,GAAG,0BAAW,CAAC;QAK5C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC7C,CAAC;IAED,QAAQ,CAAC,IAAa,EAAE,MAAiC;QACvD,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;YACtB,OAAO;SACR;QAED,IAAI,IAAI,CAAC,iBAAiB,EAAE;YAC1B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;SACtB;QAED,IAAI,OAAO,IAAI,IAAI,CAAC,SAAS,EAAE;YAC7B,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;SACpC;aAAM,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,EAAE;YACtC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;SACzC;QAED,MAAM,IAAI,GAAG,qBAAqB,CAAC,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;QAC9D,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;YACnB,OAAO;SACR;QAED,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;YACtB,MAAM,eAAe,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;YAElC,IAAI,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE;gBAClC,KAAK,MAAM,KAAK,IAAI,eAAe,EAAE;oBACnC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;iBAC5B;aACF;iBAAM;gBACL,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;aACtC;SACF;IACH,CAAC;CACF;AAED,SAAgB,cAAc,CAC5B,YAA2B,EAC3B,OAA8B,EAC9B,iBAAiB,GAAG,KAAK;IAEzB,IAAI,eAAe,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,QAAQ,CACtD,YAAY,EACZ,SAAS,CACV,CAAC;AACJ,CAAC;AATD,wCASC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts deleted file mode 100644 index 4110d515..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts +++ /dev/null @@ -1,178 +0,0 @@ -import type { AST_NODE_TYPES, TSESTree } from '@typescript-eslint/types'; -import type * as ts from 'typescript'; -import type { TSNode } from './ts-nodes'; -export interface EstreeToTsNodeTypes { - [AST_NODE_TYPES.AccessorProperty]: ts.PropertyDeclaration; - [AST_NODE_TYPES.ArrayExpression]: ts.ArrayLiteralExpression; - [AST_NODE_TYPES.ArrayPattern]: ts.ArrayLiteralExpression | ts.ArrayBindingPattern; - [AST_NODE_TYPES.ArrowFunctionExpression]: ts.ArrowFunction; - [AST_NODE_TYPES.AssignmentExpression]: ts.BinaryExpression; - [AST_NODE_TYPES.AssignmentPattern]: ts.ShorthandPropertyAssignment | ts.BindingElement | ts.BinaryExpression | ts.ParameterDeclaration; - [AST_NODE_TYPES.AwaitExpression]: ts.AwaitExpression; - [AST_NODE_TYPES.BinaryExpression]: ts.BinaryExpression; - [AST_NODE_TYPES.BlockStatement]: ts.Block; - [AST_NODE_TYPES.BreakStatement]: ts.BreakStatement; - [AST_NODE_TYPES.CallExpression]: ts.CallExpression; - [AST_NODE_TYPES.CatchClause]: ts.CatchClause; - [AST_NODE_TYPES.ChainExpression]: ts.CallExpression | ts.PropertyAccessExpression | ts.ElementAccessExpression | ts.NonNullExpression; - [AST_NODE_TYPES.ClassBody]: ts.ClassDeclaration | ts.ClassExpression; - [AST_NODE_TYPES.ClassDeclaration]: ts.ClassDeclaration; - [AST_NODE_TYPES.ClassExpression]: ts.ClassExpression; - [AST_NODE_TYPES.PropertyDefinition]: ts.PropertyDeclaration; - [AST_NODE_TYPES.ConditionalExpression]: ts.ConditionalExpression; - [AST_NODE_TYPES.ContinueStatement]: ts.ContinueStatement; - [AST_NODE_TYPES.DebuggerStatement]: ts.DebuggerStatement; - [AST_NODE_TYPES.Decorator]: ts.Decorator; - [AST_NODE_TYPES.DoWhileStatement]: ts.DoStatement; - [AST_NODE_TYPES.EmptyStatement]: ts.EmptyStatement; - [AST_NODE_TYPES.ExportAllDeclaration]: ts.ExportDeclaration; - [AST_NODE_TYPES.ExportDefaultDeclaration]: ts.ExportAssignment | ts.FunctionDeclaration | ts.VariableStatement | ts.ClassDeclaration | ts.ClassExpression | ts.TypeAliasDeclaration | ts.InterfaceDeclaration | ts.EnumDeclaration | ts.ModuleDeclaration; - [AST_NODE_TYPES.ExportNamedDeclaration]: ts.ExportDeclaration | ts.FunctionDeclaration | ts.VariableStatement | ts.ClassDeclaration | ts.ClassExpression | ts.TypeAliasDeclaration | ts.InterfaceDeclaration | ts.EnumDeclaration | ts.ModuleDeclaration; - [AST_NODE_TYPES.ExportSpecifier]: ts.ExportSpecifier; - [AST_NODE_TYPES.ExpressionStatement]: ts.ExpressionStatement; - [AST_NODE_TYPES.ForInStatement]: ts.ForInStatement; - [AST_NODE_TYPES.ForOfStatement]: ts.ForOfStatement; - [AST_NODE_TYPES.ForStatement]: ts.ForStatement; - [AST_NODE_TYPES.FunctionDeclaration]: ts.FunctionDeclaration; - [AST_NODE_TYPES.FunctionExpression]: ts.FunctionExpression | ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ts.MethodDeclaration; - [AST_NODE_TYPES.Identifier]: ts.Identifier | ts.ConstructorDeclaration | ts.Token; - [AST_NODE_TYPES.PrivateIdentifier]: ts.PrivateIdentifier; - [AST_NODE_TYPES.IfStatement]: ts.IfStatement; - [AST_NODE_TYPES.ImportAttribute]: ts.AssertEntry; - [AST_NODE_TYPES.ImportDeclaration]: ts.ImportDeclaration; - [AST_NODE_TYPES.ImportDefaultSpecifier]: ts.ImportClause; - [AST_NODE_TYPES.ImportExpression]: ts.CallExpression; - [AST_NODE_TYPES.ImportNamespaceSpecifier]: ts.NamespaceImport; - [AST_NODE_TYPES.ImportSpecifier]: ts.ImportSpecifier; - [AST_NODE_TYPES.JSXAttribute]: ts.JsxAttribute; - [AST_NODE_TYPES.JSXClosingElement]: ts.JsxClosingElement; - [AST_NODE_TYPES.JSXClosingFragment]: ts.JsxClosingFragment; - [AST_NODE_TYPES.JSXElement]: ts.JsxElement | ts.JsxSelfClosingElement; - [AST_NODE_TYPES.JSXEmptyExpression]: ts.JsxExpression; - [AST_NODE_TYPES.JSXExpressionContainer]: ts.JsxExpression; - [AST_NODE_TYPES.JSXFragment]: ts.JsxFragment; - [AST_NODE_TYPES.JSXIdentifier]: ts.Identifier | ts.ThisExpression; - [AST_NODE_TYPES.JSXOpeningElement]: ts.JsxOpeningElement | ts.JsxSelfClosingElement; - [AST_NODE_TYPES.JSXOpeningFragment]: ts.JsxOpeningFragment; - [AST_NODE_TYPES.JSXSpreadAttribute]: ts.JsxSpreadAttribute; - [AST_NODE_TYPES.JSXSpreadChild]: ts.JsxExpression; - [AST_NODE_TYPES.JSXMemberExpression]: ts.PropertyAccessExpression; - [AST_NODE_TYPES.JSXNamespacedName]: ts.JsxNamespacedName; - [AST_NODE_TYPES.JSXText]: ts.JsxText; - [AST_NODE_TYPES.LabeledStatement]: ts.LabeledStatement; - [AST_NODE_TYPES.Literal]: ts.StringLiteral | ts.NumericLiteral | ts.RegularExpressionLiteral | ts.NullLiteral | ts.BooleanLiteral | ts.BigIntLiteral; - [AST_NODE_TYPES.LogicalExpression]: ts.BinaryExpression; - [AST_NODE_TYPES.MemberExpression]: ts.PropertyAccessExpression | ts.ElementAccessExpression; - [AST_NODE_TYPES.MetaProperty]: ts.MetaProperty; - [AST_NODE_TYPES.MethodDefinition]: ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ts.MethodDeclaration | ts.ConstructorDeclaration; - [AST_NODE_TYPES.NewExpression]: ts.NewExpression; - [AST_NODE_TYPES.ObjectExpression]: ts.ObjectLiteralExpression; - [AST_NODE_TYPES.ObjectPattern]: ts.ObjectLiteralExpression | ts.ObjectBindingPattern; - [AST_NODE_TYPES.Program]: ts.SourceFile; - [AST_NODE_TYPES.Property]: ts.PropertyAssignment | ts.ShorthandPropertyAssignment | ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ts.MethodDeclaration | ts.BindingElement; - [AST_NODE_TYPES.RestElement]: ts.BindingElement | ts.SpreadAssignment | ts.SpreadElement | ts.ParameterDeclaration; - [AST_NODE_TYPES.ReturnStatement]: ts.ReturnStatement; - [AST_NODE_TYPES.SequenceExpression]: ts.BinaryExpression; - [AST_NODE_TYPES.SpreadElement]: ts.SpreadElement | ts.SpreadAssignment; - [AST_NODE_TYPES.StaticBlock]: ts.ClassStaticBlockDeclaration; - [AST_NODE_TYPES.Super]: ts.SuperExpression; - [AST_NODE_TYPES.SwitchCase]: ts.CaseClause | ts.DefaultClause; - [AST_NODE_TYPES.SwitchStatement]: ts.SwitchStatement; - [AST_NODE_TYPES.TaggedTemplateExpression]: ts.TaggedTemplateExpression; - [AST_NODE_TYPES.TemplateElement]: ts.NoSubstitutionTemplateLiteral | ts.TemplateHead | ts.TemplateMiddle | ts.TemplateTail; - [AST_NODE_TYPES.TemplateLiteral]: ts.NoSubstitutionTemplateLiteral | ts.TemplateExpression; - [AST_NODE_TYPES.ThisExpression]: ts.ThisExpression | ts.KeywordTypeNode | ts.Identifier; - [AST_NODE_TYPES.ThrowStatement]: ts.ThrowStatement; - [AST_NODE_TYPES.TryStatement]: ts.TryStatement; - [AST_NODE_TYPES.TSAbstractAccessorProperty]: ts.PropertyDeclaration; - [AST_NODE_TYPES.TSAbstractPropertyDefinition]: ts.PropertyDeclaration; - [AST_NODE_TYPES.TSAbstractMethodDefinition]: ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ts.MethodDeclaration | ts.ConstructorDeclaration; - [AST_NODE_TYPES.TSArrayType]: ts.ArrayTypeNode; - [AST_NODE_TYPES.TSAsExpression]: ts.AsExpression; - [AST_NODE_TYPES.TSCallSignatureDeclaration]: ts.CallSignatureDeclaration; - [AST_NODE_TYPES.TSClassImplements]: ts.ExpressionWithTypeArguments; - [AST_NODE_TYPES.TSConditionalType]: ts.ConditionalTypeNode; - [AST_NODE_TYPES.TSConstructorType]: ts.ConstructorTypeNode; - [AST_NODE_TYPES.TSConstructSignatureDeclaration]: ts.ConstructSignatureDeclaration; - [AST_NODE_TYPES.TSDeclareFunction]: ts.FunctionDeclaration; - [AST_NODE_TYPES.TSEnumDeclaration]: ts.EnumDeclaration; - [AST_NODE_TYPES.TSEnumMember]: ts.EnumMember; - [AST_NODE_TYPES.TSExportAssignment]: ts.ExportAssignment; - [AST_NODE_TYPES.TSExternalModuleReference]: ts.ExternalModuleReference; - [AST_NODE_TYPES.TSFunctionType]: ts.FunctionTypeNode; - [AST_NODE_TYPES.TSImportEqualsDeclaration]: ts.ImportEqualsDeclaration; - [AST_NODE_TYPES.TSImportType]: ts.ImportTypeNode; - [AST_NODE_TYPES.TSIndexedAccessType]: ts.IndexedAccessTypeNode; - [AST_NODE_TYPES.TSIndexSignature]: ts.IndexSignatureDeclaration; - [AST_NODE_TYPES.TSInferType]: ts.InferTypeNode; - [AST_NODE_TYPES.TSInterfaceDeclaration]: ts.InterfaceDeclaration; - [AST_NODE_TYPES.TSInterfaceBody]: ts.InterfaceDeclaration; - [AST_NODE_TYPES.TSInterfaceHeritage]: ts.ExpressionWithTypeArguments; - [AST_NODE_TYPES.TSIntersectionType]: ts.IntersectionTypeNode; - [AST_NODE_TYPES.TSInstantiationExpression]: ts.ExpressionWithTypeArguments; - [AST_NODE_TYPES.TSSatisfiesExpression]: ts.SatisfiesExpression; - [AST_NODE_TYPES.TSLiteralType]: ts.LiteralTypeNode; - [AST_NODE_TYPES.TSMappedType]: ts.MappedTypeNode; - [AST_NODE_TYPES.TSMethodSignature]: ts.MethodSignature | ts.GetAccessorDeclaration | ts.SetAccessorDeclaration; - [AST_NODE_TYPES.TSModuleBlock]: ts.ModuleBlock; - [AST_NODE_TYPES.TSModuleDeclaration]: ts.ModuleDeclaration; - [AST_NODE_TYPES.TSNamedTupleMember]: ts.NamedTupleMember; - [AST_NODE_TYPES.TSNamespaceExportDeclaration]: ts.NamespaceExportDeclaration; - [AST_NODE_TYPES.TSNonNullExpression]: ts.NonNullExpression; - [AST_NODE_TYPES.TSOptionalType]: ts.OptionalTypeNode; - [AST_NODE_TYPES.TSParameterProperty]: ts.ParameterDeclaration; - [AST_NODE_TYPES.TSPropertySignature]: ts.PropertySignature; - [AST_NODE_TYPES.TSQualifiedName]: ts.QualifiedName; - [AST_NODE_TYPES.TSRestType]: ts.RestTypeNode | ts.NamedTupleMember; - [AST_NODE_TYPES.TSThisType]: ts.ThisTypeNode; - [AST_NODE_TYPES.TSTupleType]: ts.TupleTypeNode; - [AST_NODE_TYPES.TSTemplateLiteralType]: ts.TemplateLiteralTypeNode; - [AST_NODE_TYPES.TSTypeAliasDeclaration]: ts.TypeAliasDeclaration; - [AST_NODE_TYPES.TSTypeAnnotation]: undefined; - [AST_NODE_TYPES.TSTypeAssertion]: ts.TypeAssertion; - [AST_NODE_TYPES.TSTypeLiteral]: ts.TypeLiteralNode; - [AST_NODE_TYPES.TSTypeOperator]: ts.TypeOperatorNode; - [AST_NODE_TYPES.TSTypeParameter]: ts.TypeParameterDeclaration; - [AST_NODE_TYPES.TSTypeParameterDeclaration]: undefined; - [AST_NODE_TYPES.TSTypeParameterInstantiation]: ts.TaggedTemplateExpression | ts.ImportTypeNode | ts.ExpressionWithTypeArguments | ts.TypeReferenceNode | ts.JsxOpeningElement | ts.JsxSelfClosingElement | ts.NewExpression | ts.CallExpression | ts.TypeQueryNode; - [AST_NODE_TYPES.TSTypePredicate]: ts.TypePredicateNode; - [AST_NODE_TYPES.TSTypeQuery]: ts.TypeQueryNode; - [AST_NODE_TYPES.TSTypeReference]: ts.TypeReferenceNode; - [AST_NODE_TYPES.TSUnionType]: ts.UnionTypeNode; - [AST_NODE_TYPES.UpdateExpression]: ts.PrefixUnaryExpression | ts.PostfixUnaryExpression; - [AST_NODE_TYPES.UnaryExpression]: ts.PrefixUnaryExpression | ts.PostfixUnaryExpression | ts.DeleteExpression | ts.VoidExpression | ts.TypeOfExpression; - [AST_NODE_TYPES.VariableDeclaration]: ts.VariableDeclarationList | ts.VariableStatement; - [AST_NODE_TYPES.VariableDeclarator]: ts.VariableDeclaration; - [AST_NODE_TYPES.WhileStatement]: ts.WhileStatement; - [AST_NODE_TYPES.WithStatement]: ts.WithStatement; - [AST_NODE_TYPES.YieldExpression]: ts.YieldExpression; - [AST_NODE_TYPES.TSEmptyBodyFunctionExpression]: ts.FunctionExpression | ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ts.MethodDeclaration; - [AST_NODE_TYPES.TSAbstractKeyword]: ts.Token; - [AST_NODE_TYPES.TSNullKeyword]: ts.NullLiteral | ts.KeywordTypeNode; - [AST_NODE_TYPES.TSAnyKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSBigIntKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSBooleanKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSIntrinsicKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSNeverKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSNumberKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSObjectKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSStringKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSSymbolKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSUnknownKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSVoidKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSUndefinedKeyword]: ts.KeywordTypeNode; - [AST_NODE_TYPES.TSAsyncKeyword]: ts.Token; - [AST_NODE_TYPES.TSDeclareKeyword]: ts.Token; - [AST_NODE_TYPES.TSExportKeyword]: ts.Token; - [AST_NODE_TYPES.TSStaticKeyword]: ts.Token; - [AST_NODE_TYPES.TSPublicKeyword]: ts.Token; - [AST_NODE_TYPES.TSPrivateKeyword]: ts.Token; - [AST_NODE_TYPES.TSProtectedKeyword]: ts.Token; - [AST_NODE_TYPES.TSReadonlyKeyword]: ts.Token; -} -/** - * Maps TSESTree AST Node type to the expected TypeScript AST Node type(s). - * This mapping is based on the internal logic of the parser. - */ -export type TSESTreeToTSNode = Extract, EstreeToTsNodeTypes[T['type']]>; -//# sourceMappingURL=estree-to-ts-node-types.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map deleted file mode 100644 index 1a35db35..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"estree-to-ts-node-types.d.ts","sourceRoot":"","sources":["../../src/ts-estree/estree-to-ts-node-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,WAAW,mBAAmB;IAClC,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC;IAC1D,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,sBAAsB,CAAC;IAC5D,CAAC,cAAc,CAAC,YAAY,CAAC,EACzB,EAAE,CAAC,sBAAsB,GACzB,EAAE,CAAC,mBAAmB,CAAC;IAC3B,CAAC,cAAc,CAAC,uBAAuB,CAAC,EAAE,EAAE,CAAC,aAAa,CAAC;IAC3D,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC;IAC3D,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAC9B,EAAE,CAAC,2BAA2B,GAC9B,EAAE,CAAC,cAAc,GACjB,EAAE,CAAC,gBAAgB,GACnB,EAAE,CAAC,oBAAoB,CAAC;IAC5B,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC;IACrD,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC;IAC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AAI,GAAG,QAAQ,CAAC,IAAI,IAAI,OAAO,CAC7E,MAAM,GAAG,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,UAAU,GAAG,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,EAEzE,mBAAmB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAC/B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js b/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js deleted file mode 100644 index e92a96f2..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=estree-to-ts-node-types.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js.map deleted file mode 100644 index a9cfa15f..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"estree-to-ts-node-types.js","sourceRoot":"","sources":["../../src/ts-estree/estree-to-ts-node-types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts deleted file mode 100644 index 37f26a39..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree, } from '@typescript-eslint/types'; -export * from './ts-nodes'; -export * from './estree-to-ts-node-types'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts.map deleted file mode 100644 index 6a839dc6..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts-estree/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,eAAe,EACf,QAAQ,GACT,MAAM,0BAA0B,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,2BAA2B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js b/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js deleted file mode 100644 index 6d010024..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSESTree = exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0; -// for simplicity and backwards-compatibility -var types_1 = require("@typescript-eslint/types"); -Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return types_1.AST_NODE_TYPES; } }); -Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return types_1.AST_TOKEN_TYPES; } }); -Object.defineProperty(exports, "TSESTree", { enumerable: true, get: function () { return types_1.TSESTree; } }); -__exportStar(require("./ts-nodes"), exports); -__exportStar(require("./estree-to-ts-node-types"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map deleted file mode 100644 index fc698263..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ts-estree/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,kDAIkC;AAHhC,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,iGAAA,QAAQ,OAAA;AAEV,6CAA2B;AAC3B,4DAA0C"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts deleted file mode 100644 index 1a90a38b..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import type * as ts from 'typescript'; -declare module 'typescript' { - interface NamedTupleMember extends ts.Node { - } - interface TemplateLiteralTypeNode extends ts.Node { - } - interface PrivateIdentifier extends ts.Node { - } - interface ClassStaticBlockDeclaration extends ts.Node { - } - interface AssertClause extends ts.Node { - } - interface AssertEntry extends ts.Node { - } - interface SatisfiesExpression extends ts.Node { - } -} -export type TSToken = ts.Token; -export type TSNode = ts.AssertClause | ts.AssertEntry | ts.Modifier | ts.Identifier | ts.PrivateIdentifier | ts.QualifiedName | ts.ComputedPropertyName | ts.Decorator | ts.TypeParameterDeclaration | ts.CallSignatureDeclaration | ts.ConstructSignatureDeclaration | ts.VariableDeclaration | ts.VariableDeclarationList | ts.ParameterDeclaration | ts.BindingElement | ts.PropertySignature | ts.PropertyDeclaration | ts.PropertyAssignment | ts.ShorthandPropertyAssignment | ts.SpreadAssignment | ts.ObjectBindingPattern | ts.ArrayBindingPattern | ts.FunctionDeclaration | ts.MethodSignature | ts.MethodDeclaration | ts.ConstructorDeclaration | ts.SemicolonClassElement | ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ts.IndexSignatureDeclaration | ts.KeywordTypeNode | ts.ImportTypeNode | ts.ThisTypeNode | ts.ClassStaticBlockDeclaration | ts.ConstructorTypeNode | ts.FunctionTypeNode | ts.TypeReferenceNode | ts.TypePredicateNode | ts.TypeQueryNode | ts.TypeLiteralNode | ts.ArrayTypeNode | ts.NamedTupleMember | ts.TupleTypeNode | ts.OptionalTypeNode | ts.RestTypeNode | ts.UnionTypeNode | ts.IntersectionTypeNode | ts.ConditionalTypeNode | ts.InferTypeNode | ts.ParenthesizedTypeNode | ts.TypeOperatorNode | ts.IndexedAccessTypeNode | ts.MappedTypeNode | ts.LiteralTypeNode | ts.StringLiteral | ts.OmittedExpression | ts.PartiallyEmittedExpression | ts.PrefixUnaryExpression | ts.PostfixUnaryExpression | ts.NullLiteral | ts.BooleanLiteral | ts.ThisExpression | ts.SuperExpression | ts.ImportExpression | ts.DeleteExpression | ts.TypeOfExpression | ts.VoidExpression | ts.AwaitExpression | ts.YieldExpression | ts.SyntheticExpression | ts.BinaryExpression | ts.ConditionalExpression | ts.FunctionExpression | ts.ArrowFunction | ts.RegularExpressionLiteral | ts.NoSubstitutionTemplateLiteral | ts.NumericLiteral | ts.BigIntLiteral | ts.TemplateHead | ts.TemplateMiddle | ts.TemplateTail | ts.TemplateExpression | ts.TemplateSpan | ts.ParenthesizedExpression | ts.ArrayLiteralExpression | ts.SpreadElement | ts.ObjectLiteralExpression | ts.PropertyAccessExpression | ts.ElementAccessExpression | ts.CallExpression | ts.ExpressionWithTypeArguments | ts.NewExpression | ts.TaggedTemplateExpression | ts.AsExpression | ts.TypeAssertion | ts.NonNullExpression | ts.MetaProperty | ts.JsxElement | ts.JsxOpeningElement | ts.JsxSelfClosingElement | ts.JsxFragment | ts.JsxOpeningFragment | ts.JsxClosingFragment | ts.JsxAttribute | ts.JsxSpreadAttribute | ts.JsxClosingElement | ts.JsxExpression | ts.JsxNamespacedName | ts.JsxText | ts.NotEmittedStatement | ts.CommaListExpression | ts.EmptyStatement | ts.DebuggerStatement | ts.MissingDeclaration | ts.Block | ts.VariableStatement | ts.ExpressionStatement | ts.IfStatement | ts.DoStatement | ts.WhileStatement | ts.ForStatement | ts.ForInStatement | ts.ForOfStatement | ts.BreakStatement | ts.ContinueStatement | ts.ReturnStatement | ts.WithStatement | ts.SwitchStatement | ts.CaseBlock | ts.CaseClause | ts.DefaultClause | ts.LabeledStatement | ts.ThrowStatement | ts.TryStatement | ts.CatchClause | ts.ClassDeclaration | ts.ClassExpression | ts.InterfaceDeclaration | ts.HeritageClause | ts.TypeAliasDeclaration | ts.EnumMember | ts.EnumDeclaration | ts.ModuleDeclaration | ts.ModuleBlock | ts.ImportEqualsDeclaration | ts.ExternalModuleReference | ts.ImportDeclaration | ts.ImportClause | ts.NamespaceImport | ts.NamespaceExportDeclaration | ts.ExportDeclaration | ts.NamedImports | ts.NamedExports | ts.ImportSpecifier | ts.ExportSpecifier | ts.ExportAssignment | ts.SourceFile | ts.Bundle | ts.InputFiles | ts.UnparsedSource | ts.JsonMinusNumericLiteral | ts.TemplateLiteralTypeNode | ts.SatisfiesExpression | ts.JSDoc | ts.JSDocTypeExpression | ts.JSDocUnknownTag | ts.JSDocAugmentsTag | ts.JSDocClassTag | ts.JSDocEnumTag | ts.JSDocThisTag | ts.JSDocTemplateTag | ts.JSDocReturnTag | ts.JSDocTypeTag | ts.JSDocTypedefTag | ts.JSDocCallbackTag | ts.JSDocSignature | ts.JSDocPropertyTag | ts.JSDocParameterTag | ts.JSDocTypeLiteral | ts.JSDocFunctionType | ts.JSDocAllType | ts.JSDocUnknownType | ts.JSDocNullableType | ts.JSDocNonNullableType | ts.JSDocOptionalType | ts.JSDocVariadicType | ts.JSDocAuthorTag; -//# sourceMappingURL=ts-nodes.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map deleted file mode 100644 index b4f0cf7b..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ts-nodes.d.ts","sourceRoot":"","sources":["../../src/ts-estree/ts-nodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAItC,OAAO,QAAQ,YAAY,CAAC;IAG1B,UAAiB,gBAAiB,SAAQ,EAAE,CAAC,IAAI;KAAG;IAEpD,UAAiB,uBAAwB,SAAQ,EAAE,CAAC,IAAI;KAAG;IAE3D,UAAiB,iBAAkB,SAAQ,EAAE,CAAC,IAAI;KAAG;IACrD,UAAiB,2BAA4B,SAAQ,EAAE,CAAC,IAAI;KAAG;IAE/D,UAAiB,YAAa,SAAQ,EAAE,CAAC,IAAI;KAAG;IAChD,UAAiB,WAAY,SAAQ,EAAE,CAAC,IAAI;KAAG;IAE/C,UAAiB,mBAAoB,SAAQ,EAAE,CAAC,IAAI;KAAG;CAExD;AAED,MAAM,MAAM,OAAO,GAAG,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;AAE9C,MAAM,MAAM,MAAM,GACd,EAAE,CAAC,YAAY,GACf,EAAE,CAAC,WAAW,GACd,EAAE,CAAC,QAAQ,GACX,EAAE,CAAC,UAAU,GACb,EAAE,CAAC,iBAAiB,GACpB,EAAE,CAAC,aAAa,GAChB,EAAE,CAAC,oBAAoB,GACvB,EAAE,CAAC,SAAS,GACZ,EAAE,CAAC,wBAAwB,GAE3B,EAAE,CAAC,wBAAwB,GAC3B,EAAE,CAAC,6BAA6B,GACh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AC,MAAM,GAET,EAAE,CAAC,UAAU,GAEb,EAAE,CAAC,cAAc,GACjB,EAAE,CAAC,uBAAuB,GAC1B,EAAE,CAAC,uBAAuB,GAC1B,EAAE,CAAC,mBAAmB,GAGtB,EAAE,CAAC,KAAK,GACR,EAAE,CAAC,mBAAmB,GACtB,EAAE,CAAC,eAAe,GAClB,EAAE,CAAC,gBAAgB,GACnB,EAAE,CAAC,aAAa,GAChB,EAAE,CAAC,YAAY,GACf,EAAE,CAAC,YAAY,GACf,EAAE,CAAC,gBAAgB,GACnB,EAAE,CAAC,cAAc,GACjB,EAAE,CAAC,YAAY,GACf,EAAE,CAAC,eAAe,GAClB,EAAE,CAAC,gBAAgB,GACnB,EAAE,CAAC,cAAc,GACjB,EAAE,CAAC,gBAAgB,GACnB,EAAE,CAAC,iBAAiB,GACpB,EAAE,CAAC,gBAAgB,GACnB,EAAE,CAAC,iBAAiB,GACpB,EAAE,CAAC,YAAY,GACf,EAAE,CAAC,gBAAgB,GACnB,EAAE,CAAC,iBAAiB,GACpB,EAAE,CAAC,oBAAoB,GACvB,EAAE,CAAC,iBAAiB,GACpB,EAAE,CAAC,iBAAiB,GACpB,EAAE,CAAC,cAAc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js b/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js deleted file mode 100644 index ba99b5f1..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ts-nodes.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js.map deleted file mode 100644 index a4fa02c4..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ts-nodes.js","sourceRoot":"","sources":["../../src/ts-estree/ts-nodes.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts b/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts deleted file mode 100644 index ad11a017..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare const typescriptVersionIsAtLeast: Record<"3.7" | "3.8" | "3.9" | "4.0" | "4.1" | "4.2" | "4.3" | "4.4" | "4.5" | "4.6" | "4.7" | "4.8" | "4.9" | "5.0", boolean>; -export { typescriptVersionIsAtLeast }; -//# sourceMappingURL=version-check.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map b/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map deleted file mode 100644 index ca10ab21..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/version-check.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"version-check.d.ts","sourceRoot":"","sources":["../src/version-check.ts"],"names":[],"mappings":"AA+BA,QAAA,MAAM,0BAA0B,gIAAkC,CAAC;AAKnE,OAAO,EAAE,0BAA0B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js b/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js deleted file mode 100644 index 28a716ce..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.typescriptVersionIsAtLeast = void 0; -const semver = __importStar(require("semver")); -const ts = __importStar(require("typescript")); -function semverCheck(version) { - return semver.satisfies(ts.version, `>= ${version}.0 || >= ${version}.1-rc || >= ${version}.0-beta`, { - includePrerelease: true, - }); -} -const versions = [ - '3.7', - '3.8', - '3.9', - '4.0', - '4.1', - '4.2', - '4.3', - '4.4', - '4.5', - '4.6', - '4.7', - '4.8', - '4.9', - '5.0', -]; -const typescriptVersionIsAtLeast = {}; -exports.typescriptVersionIsAtLeast = typescriptVersionIsAtLeast; -for (const version of versions) { - typescriptVersionIsAtLeast[version] = semverCheck(version); -} -//# sourceMappingURL=version-check.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map b/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map deleted file mode 100644 index cea245c1..00000000 --- a/node_modules/@typescript-eslint/typescript-estree/dist/version-check.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"version-check.js","sourceRoot":"","sources":["../src/version-check.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,+CAAiC;AAEjC,SAAS,WAAW,CAAC,OAAe;IAClC,OAAO,MAAM,CAAC,SAAS,CACrB,EAAE,CAAC,OAAO,EACV,MAAM,OAAO,YAAY,OAAO,eAAe,OAAO,SAAS,EAC/D;QACE,iBAAiB,EAAE,IAAI;KACxB,CACF,CAAC;AACJ,CAAC;AAED,MAAM,QAAQ,GAAG;IACf,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;CACG,CAAC;AAGX,MAAM,0BAA0B,GAAG,EAA+B,CAAC;AAK1D,gEAA0B;AAJnC,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;IAC9B,0BAA0B,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;CAC5D"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/PatternMatcher.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/PatternMatcher.d.ts deleted file mode 100644 index d1bf2f26..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -interface PatternMatcher { - /** - * Iterate all matched parts in a given string. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-execall} - */ - execAll(str: string): IterableIterator; - /** - * Check whether this pattern matches a given string or not. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-test} - */ - test(str: string): boolean; - /** - * Replace all matched parts by a given replacer. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-symbol-replace} - * @example - * const { PatternMatcher } = require("eslint-utils") - * const matcher = new PatternMatcher(/\\p{Script=Greek}/g) - * - * module.exports = { - * meta: {}, - * create(context) { - * return { - * "Literal[regex]"(node) { - * const replacedPattern = node.regex.pattern.replace( - * matcher, - * "[\\u0370-\\u0373\\u0375-\\u0377\\u037A-\\u037D\\u037F\\u0384\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03E1\\u03F0-\\u03FF\\u1D26-\\u1D2A\\u1D5D-\\u1D61\\u1D66-\\u1D6A\\u1DBF\\u1F00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FC4\\u1FC6-\\u1FD3\\u1FD6-\\u1FDB\\u1FDD-\\u1FEF\\u1FF2-\\u1FF4\\u1FF6-\\u1FFE\\u2126\\uAB65]|\\uD800[\\uDD40-\\uDD8E\\uDDA0]|\\uD834[\\uDE00-\\uDE45]" - * ) - * }, - * } - * }, - * } - */ - [Symbol.replace](str: string, replacer: string | ((...strs: string[]) => string)): string; -} -/** - * The class to find a pattern in strings as handling escape sequences. - * It ignores the found pattern if it's escaped with `\`. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#patternmatcher-class} - */ -declare const PatternMatcher: new (pattern: RegExp, options?: { - escaped?: boolean; -}) => PatternMatcher; -export { PatternMatcher }; -//# sourceMappingURL=PatternMatcher.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts deleted file mode 100644 index 9dd30a3d..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +++ /dev/null @@ -1,76 +0,0 @@ -import * as TSESLint from '../../ts-eslint'; -import { TSESTree } from '../../ts-estree'; -declare const ReferenceTrackerREAD: unique symbol; -declare const ReferenceTrackerCALL: unique symbol; -declare const ReferenceTrackerCONSTRUCT: unique symbol; -declare const ReferenceTrackerESM: unique symbol; -interface ReferenceTracker { - /** - * Iterate the references that the given `traceMap` determined. - * This method starts to search from global variables. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iterateglobalreferences} - */ - iterateGlobalReferences(traceMap: ReferenceTracker.TraceMap): IterableIterator>; - /** - * Iterate the references that the given `traceMap` determined. - * This method starts to search from `require()` expression. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iteratecjsreferences} - */ - iterateCjsReferences(traceMap: ReferenceTracker.TraceMap): IterableIterator>; - /** - * Iterate the references that the given `traceMap` determined. - * This method starts to search from `import`/`export` declarations. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iterateesmreferences} - */ - iterateEsmReferences(traceMap: ReferenceTracker.TraceMap): IterableIterator>; -} -interface ReferenceTrackerStatic { - new (globalScope: TSESLint.Scope.Scope, options?: { - /** - * The mode which determines how the `tracker.iterateEsmReferences()` method scans CommonJS modules. - * If this is `"strict"`, the method binds CommonJS modules to the default export. Otherwise, the method binds - * CommonJS modules to both the default export and named exports. Optional. Default is `"strict"`. - */ - mode?: 'strict' | 'legacy'; - /** - * The name list of Global Object. Optional. Default is `["global", "globalThis", "self", "window"]`. - */ - globalObjectNames?: readonly string[]; - }): ReferenceTracker; - readonly READ: typeof ReferenceTrackerREAD; - readonly CALL: typeof ReferenceTrackerCALL; - readonly CONSTRUCT: typeof ReferenceTrackerCONSTRUCT; - readonly ESM: typeof ReferenceTrackerESM; -} -declare namespace ReferenceTracker { - type READ = ReferenceTrackerStatic['READ']; - type CALL = ReferenceTrackerStatic['CALL']; - type CONSTRUCT = ReferenceTrackerStatic['CONSTRUCT']; - type ESM = ReferenceTrackerStatic['ESM']; - type ReferenceType = READ | CALL | CONSTRUCT; - type TraceMap = Record>; - interface TraceMapElement { - [ReferenceTrackerREAD]?: T; - [ReferenceTrackerCALL]?: T; - [ReferenceTrackerCONSTRUCT]?: T; - [ReferenceTrackerESM]?: true; - [key: string]: TraceMapElement; - } - interface FoundReference { - node: TSESTree.Node; - path: readonly string[]; - type: ReferenceType; - info: T; - } -} -/** - * The tracker for references. This provides reference tracking for global variables, CommonJS modules, and ES modules. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class} - */ -declare const ReferenceTracker: ReferenceTrackerStatic; -export { ReferenceTracker }; -//# sourceMappingURL=ReferenceTracker.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/astUtilities.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/astUtilities.d.ts deleted file mode 100644 index cc57312b..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/astUtilities.d.ts +++ /dev/null @@ -1,76 +0,0 @@ -import * as TSESLint from '../../ts-eslint'; -import { TSESTree } from '../../ts-estree'; -/** - * Get the proper location of a given function node to report. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionheadlocation} - */ -declare const getFunctionHeadLocation: (node: TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.ArrowFunctionExpression, sourceCode: TSESLint.SourceCode) => TSESTree.SourceLocation; -/** - * Get the name and kind of a given function node. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionnamewithkind} - */ -declare const getFunctionNameWithKind: (node: TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.ArrowFunctionExpression, sourceCode?: TSESLint.SourceCode) => string; -/** - * Get the property name of a given property node. - * If the node is a computed property, this tries to compute the property name by the getStringIfConstant function. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getpropertyname} - * @returns The property name of the node. If the property name is not constant then it returns `null`. - */ -declare const getPropertyName: (node: TSESTree.MemberExpression | TSESTree.Property | TSESTree.MethodDefinition | TSESTree.PropertyDefinition, initialScope?: TSESLint.Scope.Scope) => string | null; -/** - * Get the value of a given node if it can decide the value statically. - * If the 2nd parameter `initialScope` was given, this function tries to resolve identifier references which are in the - * given node as much as possible. In the resolving way, it does on the assumption that built-in global objects have - * not been modified. - * For example, it considers `Symbol.iterator`, ` String.raw``hello`` `, and `Object.freeze({a: 1}).a` as static. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue} - * @returns The `{ value: any }` shaped object. The `value` property is the static value. If it couldn't compute the - * static value of the node, it returns `null`. - */ -declare const getStaticValue: (node: TSESTree.Node, initialScope?: TSESLint.Scope.Scope) => { - value: unknown; -} | null; -/** - * Get the string value of a given node. - * This function is a tiny wrapper of the getStaticValue function. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstringifconstant} - */ -declare const getStringIfConstant: (node: TSESTree.Node, initialScope?: TSESLint.Scope.Scope) => string | null; -/** - * Check whether a given node has any side effect or not. - * The side effect means that it may modify a certain variable or object member. This function considers the node which - * contains the following types as the node which has side effects: - * - `AssignmentExpression` - * - `AwaitExpression` - * - `CallExpression` - * - `ImportExpression` - * - `NewExpression` - * - `UnaryExpression([operator = "delete"])` - * - `UpdateExpression` - * - `YieldExpression` - * - When `options.considerGetters` is `true`: - * - `MemberExpression` - * - When `options.considerImplicitTypeConversion` is `true`: - * - `BinaryExpression([operator = "==" | "!=" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "|" | "^" | "&" | "in"])` - * - `MemberExpression([computed = true])` - * - `MethodDefinition([computed = true])` - * - `Property([computed = true])` - * - `UnaryExpression([operator = "-" | "+" | "!" | "~"])` - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#hassideeffect} - */ -declare const hasSideEffect: (node: TSESTree.Node, sourceCode: TSESLint.SourceCode, options?: { - considerGetters?: boolean; - considerImplicitTypeConversion?: boolean; -}) => boolean; -declare const isParenthesized: { - (node: TSESTree.Node, sourceCode: TSESLint.SourceCode): boolean; - (times: number, node: TSESTree.Node, sourceCode: TSESLint.SourceCode): boolean; -}; -export { getFunctionHeadLocation, getFunctionNameWithKind, getPropertyName, getStaticValue, getStringIfConstant, hasSideEffect, isParenthesized, }; -//# sourceMappingURL=astUtilities.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/index.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/index.d.ts deleted file mode 100644 index ea4158a4..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from './astUtilities'; -export * from './PatternMatcher'; -export * from './predicates'; -export * from './ReferenceTracker'; -export * from './scopeAnalysis'; -//# sourceMappingURL=index.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/predicates.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/predicates.d.ts deleted file mode 100644 index 8ddce364..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/predicates.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { TSESTree } from '../../ts-estree'; -type IsSpecificTokenFunction = (token: TSESTree.Token) => token is SpecificToken; -type IsNotSpecificTokenFunction = (token: TSESTree.Token) => token is Exclude; -type PunctuatorTokenWithValue = TSESTree.PunctuatorToken & { - value: Value; -}; -type IsPunctuatorTokenWithValueFunction = IsSpecificTokenFunction>; -type IsNotPunctuatorTokenWithValueFunction = IsNotSpecificTokenFunction>; -declare const isArrowToken: IsPunctuatorTokenWithValueFunction<"=>">; -declare const isNotArrowToken: IsNotPunctuatorTokenWithValueFunction<"=>">; -declare const isClosingBraceToken: IsPunctuatorTokenWithValueFunction<"}">; -declare const isNotClosingBraceToken: IsNotPunctuatorTokenWithValueFunction<"}">; -declare const isClosingBracketToken: IsPunctuatorTokenWithValueFunction<"]">; -declare const isNotClosingBracketToken: IsNotPunctuatorTokenWithValueFunction<"]">; -declare const isClosingParenToken: IsPunctuatorTokenWithValueFunction<")">; -declare const isNotClosingParenToken: IsNotPunctuatorTokenWithValueFunction<")">; -declare const isColonToken: IsPunctuatorTokenWithValueFunction<":">; -declare const isNotColonToken: IsNotPunctuatorTokenWithValueFunction<":">; -declare const isCommaToken: IsPunctuatorTokenWithValueFunction<",">; -declare const isNotCommaToken: IsNotPunctuatorTokenWithValueFunction<",">; -declare const isCommentToken: IsSpecificTokenFunction; -declare const isNotCommentToken: IsNotSpecificTokenFunction; -declare const isOpeningBraceToken: IsPunctuatorTokenWithValueFunction<"{">; -declare const isNotOpeningBraceToken: IsNotPunctuatorTokenWithValueFunction<"{">; -declare const isOpeningBracketToken: IsPunctuatorTokenWithValueFunction<"[">; -declare const isNotOpeningBracketToken: IsNotPunctuatorTokenWithValueFunction<"[">; -declare const isOpeningParenToken: IsPunctuatorTokenWithValueFunction<"(">; -declare const isNotOpeningParenToken: IsNotPunctuatorTokenWithValueFunction<"(">; -declare const isSemicolonToken: IsPunctuatorTokenWithValueFunction<";">; -declare const isNotSemicolonToken: IsNotPunctuatorTokenWithValueFunction<";">; -export { isArrowToken, isClosingBraceToken, isClosingBracketToken, isClosingParenToken, isColonToken, isCommaToken, isCommentToken, isNotArrowToken, isNotClosingBraceToken, isNotClosingBracketToken, isNotClosingParenToken, isNotColonToken, isNotCommaToken, isNotCommentToken, isNotOpeningBraceToken, isNotOpeningBracketToken, isNotOpeningParenToken, isNotSemicolonToken, isOpeningBraceToken, isOpeningBracketToken, isOpeningParenToken, isSemicolonToken, }; -//# sourceMappingURL=predicates.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts deleted file mode 100644 index fec66a00..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import * as TSESLint from '../../ts-eslint'; -import { TSESTree } from '../../ts-estree'; -/** - * Get the variable of a given name. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#findvariable} - */ -declare const findVariable: (initialScope: TSESLint.Scope.Scope, nameOrNode: string | TSESTree.Identifier) => TSESLint.Scope.Variable | null; -/** - * Get the innermost scope which contains a given node. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#getinnermostscope} - * @returns The innermost scope which contains the given node. - * If such scope doesn't exist then it returns the 1st argument `initialScope`. - */ -declare const getInnermostScope: (initialScope: TSESLint.Scope.Scope, node: TSESTree.Node) => TSESLint.Scope.Scope; -export { findVariable, getInnermostScope }; -//# sourceMappingURL=scopeAnalysis.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/helpers.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/helpers.d.ts deleted file mode 100644 index 9383379b..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/helpers.d.ts +++ /dev/null @@ -1,1207 +0,0 @@ -import { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree } from '../ts-estree'; -export declare const isNodeOfType: (nodeType: NodeType) => (node: TSESTree.Node | null | undefined) => node is Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract; -export declare const isNodeOfTypes: (nodeTypes: NodeTypes) => (node: TSESTree.Node | null | undefined) => node is Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract; -export declare const isNodeOfTypeWithConditions: | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract, Conditions extends Partial>(nodeType: NodeType, conditions: Conditions) => (node: TSESTree.Node | null | undefined) => node is ExtractedNode & Conditions; -export declare const isTokenOfTypeWithConditions: | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract, Conditions extends Partial>(tokenType: TokenType, conditions: Conditions) => (token: TSESTree.Token | null | undefined) => token is ExtractedToken & Conditions; -export declare const isNotTokenOfTypeWithConditions: | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract, Conditions extends Partial>(tokenType: TokenType, conditions: Conditions) => (token: TSESTree.Token | null | undefined) => token is Exclude | Exclude | Exclude | Exclude | Exclude | Exclude | Exclude | Exclude | Exclude | Exclude | Exclude | Exclude | Exclude; -//# sourceMappingURL=helpers.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/index.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/index.d.ts deleted file mode 100644 index a38350b4..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from './eslint-utils'; -export * from './helpers'; -export * from './misc'; -export * from './predicates'; -//# sourceMappingURL=index.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/misc.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/misc.d.ts deleted file mode 100644 index b7df932b..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/misc.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { TSESTree } from '../ts-estree'; -declare const LINEBREAK_MATCHER: RegExp; -/** - * Determines whether two adjacent tokens are on the same line - */ -declare function isTokenOnSameLine(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token): boolean; -export { isTokenOnSameLine, LINEBREAK_MATCHER }; -//# sourceMappingURL=misc.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/predicates.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/predicates.d.ts deleted file mode 100644 index 3f7ac672..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ast-utils/predicates.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { TSESTree } from '../ts-estree'; -declare const isOptionalChainPunctuator: (token: TSESTree.Token | null | undefined) => token is TSESTree.PunctuatorToken & { - value: "?."; -}; -declare const isNotOptionalChainPunctuator: (token: TSESTree.Token | null | undefined) => token is TSESTree.BooleanToken | TSESTree.BlockComment | TSESTree.LineComment | TSESTree.IdentifierToken | TSESTree.JSXIdentifierToken | TSESTree.JSXTextToken | TSESTree.KeywordToken | TSESTree.NullToken | TSESTree.NumericToken | TSESTree.PunctuatorToken | TSESTree.RegularExpressionToken | TSESTree.StringToken | TSESTree.TemplateToken; -declare const isNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is TSESTree.PunctuatorToken & { - value: "!"; -}; -declare const isNotNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is TSESTree.BooleanToken | TSESTree.BlockComment | TSESTree.LineComment | TSESTree.IdentifierToken | TSESTree.JSXIdentifierToken | TSESTree.JSXTextToken | TSESTree.KeywordToken | TSESTree.NullToken | TSESTree.NumericToken | TSESTree.PunctuatorToken | TSESTree.RegularExpressionToken | TSESTree.StringToken | TSESTree.TemplateToken; -/** - * Returns true if and only if the node represents: foo?.() or foo.bar?.() - */ -declare const isOptionalCallExpression: (node: TSESTree.Node | null | undefined) => node is TSESTree.CallExpression & { - optional: boolean; -}; -/** - * Returns true if and only if the node represents logical OR - */ -declare const isLogicalOrOperator: (node: TSESTree.Node | null | undefined) => node is TSESTree.LogicalExpression & Partial; -/** - * Checks if a node is a type assertion: - * ``` - * x as foo - * x - * ``` - */ -declare const isTypeAssertion: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSAsExpression | TSESTree.TSTypeAssertion; -declare const isVariableDeclarator: (node: TSESTree.Node | null | undefined) => node is TSESTree.VariableDeclarator; -declare const isFunction: (node: TSESTree.Node | null | undefined) => node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression; -declare const isFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName; -declare const isFunctionOrFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression | TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName; -declare const isTSFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSFunctionType; -declare const isTSConstructorType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSConstructorType; -declare const isClassOrTypeElement: (node: TSESTree.Node | null | undefined) => node is TSESTree.FunctionExpression | TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName | TSESTree.PropertyDefinitionComputedName | TSESTree.PropertyDefinitionNonComputedName | TSESTree.TSAbstractMethodDefinitionComputedName | TSESTree.TSAbstractMethodDefinitionNonComputedName | TSESTree.TSAbstractPropertyDefinitionComputedName | TSESTree.TSAbstractPropertyDefinitionNonComputedName | TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSIndexSignature | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName | TSESTree.TSPropertySignatureComputedName | TSESTree.TSPropertySignatureNonComputedName; -/** - * Checks if a node is a constructor method. - */ -declare const isConstructor: (node: TSESTree.Node | null | undefined) => node is (TSESTree.MethodDefinitionComputedName & Partial) | (TSESTree.MethodDefinitionNonComputedName & Partial); -/** - * Checks if a node is a setter method. - */ -declare function isSetter(node: TSESTree.Node | undefined): node is (TSESTree.MethodDefinition | TSESTree.Property) & { - kind: 'set'; -}; -declare const isIdentifier: (node: TSESTree.Node | null | undefined) => node is TSESTree.Identifier; -/** - * Checks if a node represents an `await …` expression. - */ -declare const isAwaitExpression: (node: TSESTree.Node | null | undefined) => node is TSESTree.AwaitExpression; -/** - * Checks if a possible token is the `await` keyword. - */ -declare const isAwaitKeyword: (token: TSESTree.Token | null | undefined) => token is TSESTree.IdentifierToken & { - value: "await"; -}; -/** - * Checks if a possible token is the `type` keyword. - */ -declare const isTypeKeyword: (token: TSESTree.Token | null | undefined) => token is TSESTree.IdentifierToken & { - value: "type"; -}; -/** - * Checks if a possible token is the `import` keyword. - */ -declare const isImportKeyword: (token: TSESTree.Token | null | undefined) => token is TSESTree.KeywordToken & { - value: "import"; -}; -declare const isLoop: (node: TSESTree.Node | null | undefined) => node is TSESTree.DoWhileStatement | TSESTree.ForInStatement | TSESTree.ForOfStatement | TSESTree.ForStatement | TSESTree.WhileStatement; -export { isAwaitExpression, isAwaitKeyword, isConstructor, isClassOrTypeElement, isFunction, isFunctionOrFunctionType, isFunctionType, isIdentifier, isImportKeyword, isLoop, isLogicalOrOperator, isNonNullAssertionPunctuator, isNotNonNullAssertionPunctuator, isNotOptionalChainPunctuator, isOptionalChainPunctuator, isOptionalCallExpression, isSetter, isTSConstructorType, isTSFunctionType, isTypeAssertion, isTypeKeyword, isVariableDeclarator, }; -//# sourceMappingURL=predicates.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/InferTypesFromRule.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/InferTypesFromRule.d.ts deleted file mode 100644 index 99312c14..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/InferTypesFromRule.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { RuleCreateFunction, RuleModule } from '../ts-eslint'; -/** - * Uses type inference to fetch the TOptions type from the given RuleModule - */ -type InferOptionsTypeFromRule = T extends RuleModule ? TOptions : T extends RuleCreateFunction ? TOptions : unknown; -/** - * Uses type inference to fetch the TMessageIds type from the given RuleModule - */ -type InferMessageIdsTypeFromRule = T extends RuleModule ? TMessageIds : T extends RuleCreateFunction ? TMessageIds : unknown; -export { InferOptionsTypeFromRule, InferMessageIdsTypeFromRule }; -//# sourceMappingURL=InferTypesFromRule.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/RuleCreator.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/RuleCreator.d.ts deleted file mode 100644 index 52a55699..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/RuleCreator.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { RuleContext, RuleListener, RuleMetaData, RuleMetaDataDocs, RuleModule } from '../ts-eslint/Rule'; -export type NamedCreateRuleMetaDocs = Pick>; -export type NamedCreateRuleMeta = { - docs: NamedCreateRuleMetaDocs; -} & Pick, Exclude, 'docs'>>; -export interface RuleCreateAndOptions { - create: (context: Readonly>, optionsWithDefault: Readonly) => TRuleListener; - defaultOptions: Readonly; -} -export interface RuleWithMeta extends RuleCreateAndOptions { - meta: RuleMetaData; -} -export interface RuleWithMetaAndName extends RuleCreateAndOptions { - meta: NamedCreateRuleMeta; - name: string; -} -/** - * Creates reusable function to create rules with default options and docs URLs. - * - * @param urlCreator Creates a documentation URL for a given rule name. - * @returns Function to create a rule with the docs URL format. - */ -export declare function RuleCreator(urlCreator: (ruleName: string) => string): ({ name, meta, ...rule }: Readonly>) => RuleModule; -export declare namespace RuleCreator { - var withoutDocs: typeof createRule; -} -/** - * Creates a well-typed TSESLint custom ESLint rule without a docs URL. - * - * @returns Well-typed TSESLint custom ESLint rule. - * @remarks It is generally better to provide a docs URL function to RuleCreator. - */ -declare function createRule({ create, defaultOptions, meta, }: Readonly>): RuleModule; -export {}; -//# sourceMappingURL=RuleCreator.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/applyDefault.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/applyDefault.d.ts deleted file mode 100644 index b0c9405e..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/applyDefault.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Pure function - doesn't mutate either parameter! - * Uses the default options and overrides with the options provided by the user - * @param defaultOptions the defaults - * @param userOptions the user opts - * @returns the options with defaults - */ -declare function applyDefault(defaultOptions: Readonly, userOptions: Readonly | null): TDefault; -export { applyDefault }; -//# sourceMappingURL=applyDefault.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/batchedSingleLineTests.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/batchedSingleLineTests.d.ts deleted file mode 100644 index c9db216b..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/batchedSingleLineTests.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { InvalidTestCase, ValidTestCase } from '../eslint-utils/rule-tester/RuleTester'; -/** - * Converts a batch of single line tests into a number of separate test cases. - * This makes it easier to write tests which use the same options. - * - * Why wouldn't you just leave them as one test? - * Because it makes the test error messages harder to decipher. - * This way each line will fail separately, instead of them all failing together. - */ -declare function batchedSingleLineTests>(test: ValidTestCase): ValidTestCase[]; -/** - * Converts a batch of single line tests into a number of separate test cases. - * This makes it easier to write tests which use the same options. - * - * Why wouldn't you just leave them as one test? - * Because it makes the test error messages harder to decipher. - * This way each line will fail separately, instead of them all failing together. - * - * Make sure you have your line numbers correct for error reporting, as it will match - * the line numbers up with the split tests! - */ -declare function batchedSingleLineTests>(test: InvalidTestCase): InvalidTestCase[]; -export { batchedSingleLineTests }; -//# sourceMappingURL=batchedSingleLineTests.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/deepMerge.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/deepMerge.d.ts deleted file mode 100644 index e73c1a00..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/deepMerge.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -type ObjectLike = Record; -/** - * Check if the variable contains an object strictly rejecting arrays - * @param obj an object - * @returns `true` if obj is an object - */ -declare function isObjectNotArray(obj: unknown | unknown[]): obj is T; -/** - * Pure function - doesn't mutate either parameter! - * Merges two objects together deeply, overwriting the properties in first with the properties in second - * @param first The first object - * @param second The second object - * @returns a new object - */ -export declare function deepMerge(first?: ObjectLike, second?: ObjectLike): Record; -export { isObjectNotArray }; -//# sourceMappingURL=deepMerge.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/getParserServices.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/getParserServices.d.ts deleted file mode 100644 index 43ab6586..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/getParserServices.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import * as TSESLint from '../ts-eslint'; -import { ParserServices } from '../ts-estree'; -/** - * Try to retrieve typescript parser service from context - */ -declare function getParserServices(context: Readonly>, allowWithoutFullTypeInformation?: boolean): ParserServices; -export { getParserServices }; -//# sourceMappingURL=getParserServices.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/index.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/index.d.ts deleted file mode 100644 index e5b60d80..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export * from './applyDefault'; -export * from './batchedSingleLineTests'; -export * from './getParserServices'; -export * from './InferTypesFromRule'; -export * from './RuleCreator'; -export * from './rule-tester/RuleTester'; -export * from './deepMerge'; -export * from './nullThrows'; -//# sourceMappingURL=index.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/nullThrows.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/nullThrows.d.ts deleted file mode 100644 index 57029294..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/nullThrows.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * A set of common reasons for calling nullThrows - */ -declare const NullThrowsReasons: { - readonly MissingParent: "Expected node to have a parent."; - readonly MissingToken: (token: string, thing: string) => string; -}; -/** - * Assert that a value must not be null or undefined. - * This is a nice explicit alternative to the non-null assertion operator. - */ -declare function nullThrows(value: T | null | undefined, message: string): T; -export { nullThrows, NullThrowsReasons }; -//# sourceMappingURL=nullThrows.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/RuleTester.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/RuleTester.d.ts deleted file mode 100644 index c680361b..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/RuleTester.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { RuleModule } from '../../ts-eslint/Rule'; -import * as BaseRuleTester from '../../ts-eslint/RuleTester'; -import { DependencyConstraint } from './dependencyConstraints'; -declare const TS_ESLINT_PARSER = "@typescript-eslint/parser"; -type RuleTesterConfig = Pick> & { - parser: typeof TS_ESLINT_PARSER; - /** - * Constraints that must pass in the current environment for any tests to run - */ - dependencyConstraints?: DependencyConstraint; -}; -interface InvalidTestCase> extends BaseRuleTester.InvalidTestCase { - /** - * Constraints that must pass in the current environment for the test to run - */ - dependencyConstraints?: DependencyConstraint; -} -interface ValidTestCase> extends BaseRuleTester.ValidTestCase { - /** - * Constraints that must pass in the current environment for the test to run - */ - dependencyConstraints?: DependencyConstraint; -} -interface RunTests> { - readonly valid: readonly (ValidTestCase | string)[]; - readonly invalid: readonly InvalidTestCase[]; -} -type AfterAll = (fn: () => void) => void; -declare class RuleTester extends BaseRuleTester.RuleTester { - private "RuleTester.#private"; - /* - * If you supply a value to this property, the rule tester will call this instead of using the version defined on - * the global namespace. - */ - static afterAll: AfterAll; - private readonly staticThis: any; - constructor(baseOptions: RuleTesterConfig); - private getFilename; - run>(name: string, rule: RuleModule, testsReadonly: RunTests): void; -} -/** - * Simple no-op tag to mark code samples as "should not format with prettier" - * for the internal/plugin-test-formatting lint rule - */ -declare function noFormat(raw: TemplateStringsArray, ...keys: string[]): string; -export { noFormat, RuleTester }; -export { InvalidTestCase, ValidTestCase, RunTests }; -//# sourceMappingURL=RuleTester.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts deleted file mode 100644 index 80f1c6f5..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import * as semver from 'semver'; -interface SemverVersionConstraint { - readonly range: string; - readonly options?: Parameters[2]; -} -type AtLeastVersionConstraint = string | string | string | string; -type VersionConstraint = SemverVersionConstraint | AtLeastVersionConstraint; -interface DependencyConstraint { - /** - * Passing a string for the value is shorthand for a '>=' constraint - */ - readonly [packageName: string]: VersionConstraint; -} -declare function satisfiesAllDependencyConstraints(dependencyConstraints: DependencyConstraint | undefined): boolean; -export { satisfiesAllDependencyConstraints }; -export { DependencyConstraint }; -//# sourceMappingURL=dependencyConstraints.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/index.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/index.d.ts deleted file mode 100644 index 9d012254..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import * as ASTUtils from './ast-utils'; -import * as ESLintUtils from './eslint-utils'; -import * as JSONSchema from './json-schema'; -import * as TSESLint from './ts-eslint'; -import * as TSESLintScope from './ts-eslint-scope'; -export { ASTUtils, ESLintUtils, JSONSchema, TSESLint, TSESLintScope }; -export * from './ts-estree'; -//# sourceMappingURL=index.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/json-schema.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/json-schema.d.ts deleted file mode 100644 index fdef110f..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/json-schema.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { JSONSchema4, JSONSchema4Type, JSONSchema4TypeName, JSONSchema4Version, JSONSchema6, JSONSchema6Definition, JSONSchema6Type, JSONSchema6TypeName, JSONSchema6Version, JSONSchema7, JSONSchema7Array, JSONSchema7Definition, JSONSchema7Type, JSONSchema7TypeName, JSONSchema7Version, ValidationError, ValidationResult, } from 'json-schema'; -//# sourceMappingURL=json-schema.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Definition.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Definition.d.ts deleted file mode 100644 index d02600b3..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Definition.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { TSESTree } from '../ts-estree'; -interface Definition { - type: string; - name: TSESTree.BindingName; - node: TSESTree.Node; - parent?: TSESTree.Node | null; - index?: number | null; - kind?: string | null; - rest?: boolean; -} -interface DefinitionConstructor { - new (type: string, name: TSESTree.BindingName | TSESTree.PropertyName, node: TSESTree.Node, parent?: TSESTree.Node | null, index?: number | null, kind?: string | null): Definition; -} -declare const Definition: DefinitionConstructor; -interface ParameterDefinition extends Definition { -} -declare const ParameterDefinition: DefinitionConstructor & (new (name: TSESTree.Node, node: TSESTree.Node, index?: number | null, rest?: boolean) => ParameterDefinition); -export { Definition, ParameterDefinition }; -//# sourceMappingURL=Definition.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Options.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Options.d.ts deleted file mode 100644 index 88371476..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Options.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { TSESTree } from '../ts-estree'; -type PatternVisitorCallback = (pattern: TSESTree.Identifier, info: { - rest: boolean; - topLevel: boolean; - assignments: TSESTree.AssignmentPattern[]; -}) => void; -interface PatternVisitorOptions { - processRightHandNodes?: boolean; -} -interface Visitor { - visitChildren(node?: T): void; - visit(node?: T): void; -} -export { PatternVisitorCallback, PatternVisitorOptions, Visitor }; -//# sourceMappingURL=Options.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/PatternVisitor.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/PatternVisitor.d.ts deleted file mode 100644 index 6b682722..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/PatternVisitor.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { TSESTree } from '../ts-estree'; -import { PatternVisitorCallback, PatternVisitorOptions, Visitor } from './Options'; -import { ScopeManager } from './ScopeManager'; -interface PatternVisitor extends Visitor { - options: PatternVisitorOptions; - scopeManager: ScopeManager; - parent?: TSESTree.Node; - rightHandNodes: TSESTree.Node[]; - Identifier(pattern: TSESTree.Node): void; - Property(property: TSESTree.Node): void; - ArrayPattern(pattern: TSESTree.Node): void; - AssignmentPattern(pattern: TSESTree.Node): void; - RestElement(pattern: TSESTree.Node): void; - MemberExpression(node: TSESTree.Node): void; - SpreadElement(node: TSESTree.Node): void; - ArrayExpression(node: TSESTree.Node): void; - AssignmentExpression(node: TSESTree.Node): void; - CallExpression(node: TSESTree.Node): void; -} -declare const PatternVisitor: { - new (options: PatternVisitorOptions, rootPattern: TSESTree.BaseNode, callback: PatternVisitorCallback): PatternVisitor; - isPattern(node: TSESTree.Node): boolean; -}; -export { PatternVisitor }; -//# sourceMappingURL=PatternVisitor.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Reference.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Reference.d.ts deleted file mode 100644 index fdd7ba5d..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Reference.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { TSESTree } from '../ts-estree'; -import { Scope } from './Scope'; -import { Variable } from './Variable'; -export type ReferenceFlag = 0x1 | 0x2 | 0x3; -interface Reference { - identifier: TSESTree.Identifier; - from: Scope; - resolved: Variable | null; - writeExpr: TSESTree.Node | null; - init: boolean; - partial: boolean; - __maybeImplicitGlobal: boolean; - tainted?: boolean; - typeMode?: boolean; - isWrite(): boolean; - isRead(): boolean; - isWriteOnly(): boolean; - isReadOnly(): boolean; - isReadWrite(): boolean; -} -declare const Reference: { - new (identifier: TSESTree.Identifier, scope: Scope, flag?: ReferenceFlag, writeExpr?: TSESTree.Node | null, maybeImplicitGlobal?: boolean, partial?: boolean, init?: boolean): Reference; - READ: 0x1; - WRITE: 0x2; - RW: 0x3; -}; -export { Reference }; -//# sourceMappingURL=Reference.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Referencer.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Referencer.d.ts deleted file mode 100644 index eb5565a2..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Referencer.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { TSESTree } from '../ts-estree'; -import { PatternVisitorCallback, PatternVisitorOptions, Visitor } from './Options'; -import { Scope } from './Scope'; -import { ScopeManager } from './ScopeManager'; -interface Referencer extends Visitor { - isInnerMethodDefinition: boolean; - options: any; - scopeManager: SM; - parent?: TSESTree.Node; - currentScope(): Scope; - close(node: TSESTree.Node): void; - pushInnerMethodDefinition(isInnerMethodDefinition: boolean): boolean; - popInnerMethodDefinition(isInnerMethodDefinition: boolean): void; - referencingDefaultValue(pattern: any, assignments: any, maybeImplicitGlobal: any, init: boolean): void; - visitPattern(node: TSESTree.Node, options: PatternVisitorOptions, callback: PatternVisitorCallback): void; - visitFunction(node: TSESTree.Node): void; - visitClass(node: TSESTree.Node): void; - visitProperty(node: TSESTree.Node): void; - visitForIn(node: TSESTree.Node): void; - visitVariableDeclaration(variableTargetScope: any, type: any, node: TSESTree.Node, index: any): void; - AssignmentExpression(node: TSESTree.Node): void; - CatchClause(node: TSESTree.Node): void; - Program(node: TSESTree.Program): void; - Identifier(node: TSESTree.Identifier): void; - UpdateExpression(node: TSESTree.Node): void; - MemberExpression(node: TSESTree.Node): void; - Property(node: TSESTree.Node): void; - MethodDefinition(node: TSESTree.Node): void; - BreakStatement(): void; - ContinueStatement(): void; - LabeledStatement(node: TSESTree.Node): void; - ForStatement(node: TSESTree.Node): void; - ClassExpression(node: TSESTree.Node): void; - ClassDeclaration(node: TSESTree.Node): void; - CallExpression(node: TSESTree.Node): void; - BlockStatement(node: TSESTree.Node): void; - ThisExpression(): void; - WithStatement(node: TSESTree.Node): void; - VariableDeclaration(node: TSESTree.Node): void; - SwitchStatement(node: TSESTree.Node): void; - FunctionDeclaration(node: TSESTree.Node): void; - FunctionExpression(node: TSESTree.Node): void; - ForOfStatement(node: TSESTree.Node): void; - ForInStatement(node: TSESTree.Node): void; - ArrowFunctionExpression(node: TSESTree.Node): void; - ImportDeclaration(node: TSESTree.Node): void; - visitExportDeclaration(node: TSESTree.Node): void; - ExportDeclaration(node: TSESTree.Node): void; - ExportNamedDeclaration(node: TSESTree.Node): void; - ExportSpecifier(node: TSESTree.Node): void; - MetaProperty(): void; -} -declare const Referencer: new (options: any, scopeManager: SM) => Referencer; -export { Referencer }; -//# sourceMappingURL=Referencer.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Scope.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Scope.d.ts deleted file mode 100644 index d7492a55..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Scope.d.ts +++ /dev/null @@ -1,103 +0,0 @@ -import { TSESTree } from '../ts-estree'; -import { Definition } from './Definition'; -import { Reference, ReferenceFlag } from './Reference'; -import { ScopeManager } from './ScopeManager'; -import { Variable } from './Variable'; -type ScopeType = 'block' | 'catch' | 'class' | 'for' | 'function' | 'function-expression-name' | 'global' | 'module' | 'switch' | 'with' | 'TDZ' | 'enum' | 'empty-function'; -interface Scope { - type: ScopeType; - isStrict: boolean; - upper: Scope | null; - childScopes: Scope[]; - variableScope: Scope; - block: TSESTree.Node; - variables: Variable[]; - set: Map; - references: Reference[]; - through: Reference[]; - thisFound?: boolean; - taints: Map; - functionExpressionScope: boolean; - __left: Reference[]; - __shouldStaticallyClose(scopeManager: ScopeManager): boolean; - __shouldStaticallyCloseForGlobal(ref: any): boolean; - __staticCloseRef(ref: any): void; - __dynamicCloseRef(ref: any): void; - __globalCloseRef(ref: any): void; - __close(scopeManager: ScopeManager): Scope; - __isValidResolution(ref: any, variable: any): variable is Variable; - __resolve(ref: Reference): boolean; - __delegateToUpperScope(ref: any): void; - __addDeclaredVariablesOfNode(variable: any, node: TSESTree.Node): void; - __defineGeneric(name: string, set: Map, variables: Variable[], node: TSESTree.Identifier, def: Definition): void; - __define(node: TSESTree.Node, def: Definition): void; - __referencing(node: TSESTree.Node, assign?: ReferenceFlag, writeExpr?: TSESTree.Node, maybeImplicitGlobal?: any, partial?: any, init?: any): void; - __detectEval(): void; - __detectThis(): void; - __isClosed(): boolean; - /** - * returns resolved {Reference} - * @method Scope#resolve - * @param {Espree.Identifier} ident - identifier to be resolved. - * @returns {Reference} reference - */ - resolve(ident: TSESTree.Node): Reference; - /** - * returns this scope is static - * @method Scope#isStatic - * @returns {boolean} static - */ - isStatic(): boolean; - /** - * returns this scope has materialized arguments - * @method Scope#isArgumentsMaterialized - * @returns {boolean} arguments materialized - */ - isArgumentsMaterialized(): boolean; - /** - * returns this scope has materialized `this` reference - * @method Scope#isThisMaterialized - * @returns {boolean} this materialized - */ - isThisMaterialized(): boolean; - isUsedName(name: any): boolean; -} -interface ScopeConstructor { - new (scopeManager: ScopeManager, type: ScopeType, upperScope: Scope | null, block: TSESTree.Node | null, isMethodDefinition: boolean): Scope; -} -declare const Scope: ScopeConstructor; -interface ScopeChildConstructorWithUpperScope { - new (scopeManager: ScopeManager, upperScope: Scope, block: TSESTree.Node | null): T; -} -interface GlobalScope extends Scope { -} -declare const GlobalScope: ScopeConstructor & (new (scopeManager: ScopeManager, block: TSESTree.Node | null) => GlobalScope); -interface ModuleScope extends Scope { -} -declare const ModuleScope: ScopeConstructor & ScopeChildConstructorWithUpperScope; -interface FunctionExpressionNameScope extends Scope { -} -declare const FunctionExpressionNameScope: ScopeConstructor & ScopeChildConstructorWithUpperScope; -interface CatchScope extends Scope { -} -declare const CatchScope: ScopeConstructor & ScopeChildConstructorWithUpperScope; -interface WithScope extends Scope { -} -declare const WithScope: ScopeConstructor & ScopeChildConstructorWithUpperScope; -interface BlockScope extends Scope { -} -declare const BlockScope: ScopeConstructor & ScopeChildConstructorWithUpperScope; -interface SwitchScope extends Scope { -} -declare const SwitchScope: ScopeConstructor & ScopeChildConstructorWithUpperScope; -interface FunctionScope extends Scope { -} -declare const FunctionScope: ScopeConstructor & (new (scopeManager: ScopeManager, upperScope: Scope, block: TSESTree.Node | null, isMethodDefinition: boolean) => FunctionScope); -interface ForScope extends Scope { -} -declare const ForScope: ScopeConstructor & ScopeChildConstructorWithUpperScope; -interface ClassScope extends Scope { -} -declare const ClassScope: ScopeConstructor & ScopeChildConstructorWithUpperScope; -export { ScopeType, Scope, GlobalScope, ModuleScope, FunctionExpressionNameScope, CatchScope, WithScope, BlockScope, SwitchScope, FunctionScope, ForScope, ClassScope, }; -//# sourceMappingURL=Scope.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/ScopeManager.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/ScopeManager.d.ts deleted file mode 100644 index 561a2845..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/ScopeManager.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { EcmaVersion } from '../ts-eslint'; -import { TSESTree } from '../ts-estree'; -import { Scope } from './Scope'; -import { Variable } from './Variable'; -interface ScopeManagerOptions { - directive?: boolean; - optimistic?: boolean; - ignoreEval?: boolean; - nodejsScope?: boolean; - sourceType?: 'module' | 'script'; - impliedStrict?: boolean; - ecmaVersion?: EcmaVersion; -} -interface ScopeManager { - __options: ScopeManagerOptions; - __currentScope: Scope; - __nodeToScope: WeakMap; - __declaredVariables: WeakMap; - scopes: Scope[]; - globalScope: Scope; - __useDirective(): boolean; - __isOptimistic(): boolean; - __ignoreEval(): boolean; - __isNodejsScope(): boolean; - isModule(): boolean; - isImpliedStrict(): boolean; - isStrictModeSupported(): boolean; - __get(node: TSESTree.Node): Scope | undefined; - getDeclaredVariables(node: TSESTree.Node): Variable[]; - acquire(node: TSESTree.Node, inner?: boolean): Scope | null; - acquireAll(node: TSESTree.Node): Scope | null; - release(node: TSESTree.Node, inner?: boolean): Scope | null; - attach(): void; - detach(): void; - __nestScope(scope: T): T; - __nestGlobalScope(node: TSESTree.Node): Scope; - __nestBlockScope(node: TSESTree.Node): Scope; - __nestFunctionScope(node: TSESTree.Node, isMethodDefinition: boolean): Scope; - __nestForScope(node: TSESTree.Node): Scope; - __nestCatchScope(node: TSESTree.Node): Scope; - __nestWithScope(node: TSESTree.Node): Scope; - __nestClassScope(node: TSESTree.Node): Scope; - __nestSwitchScope(node: TSESTree.Node): Scope; - __nestModuleScope(node: TSESTree.Node): Scope; - __nestFunctionExpressionNameScope(node: TSESTree.Node): Scope; - __isES6(): boolean; -} -declare const ScopeManager: new (options: ScopeManagerOptions) => ScopeManager; -export { ScopeManager, ScopeManagerOptions }; -//# sourceMappingURL=ScopeManager.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Variable.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Variable.d.ts deleted file mode 100644 index ed5d603a..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/Variable.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { TSESTree } from '../ts-estree'; -import { Definition } from './Definition'; -import { Reference } from './Reference'; -import { Scope } from './Scope'; -interface Variable { - name: string; - identifiers: TSESTree.Identifier[]; - references: Reference[]; - defs: Definition[]; - eslintUsed?: boolean; - stack?: unknown; - tainted?: boolean; - scope?: Scope; -} -declare const Variable: new () => Variable; -export { Variable }; -//# sourceMappingURL=Variable.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/analyze.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/analyze.d.ts deleted file mode 100644 index a954b7dd..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/analyze.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { EcmaVersion } from '../ts-eslint'; -import { TSESTree } from '../ts-estree'; -import { ScopeManager } from './ScopeManager'; -interface AnalysisOptions { - optimistic?: boolean; - directive?: boolean; - ignoreEval?: boolean; - nodejsScope?: boolean; - impliedStrict?: boolean; - fallback?: string | ((node: TSESTree.Node) => string[]); - sourceType?: 'script' | 'module'; - ecmaVersion?: EcmaVersion; -} -declare const analyze: (ast: TSESTree.Node, options?: AnalysisOptions) => ScopeManager; -export { analyze, AnalysisOptions }; -//# sourceMappingURL=analyze.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/index.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/index.d.ts deleted file mode 100644 index 579b7f8b..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint-scope/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export * from './analyze'; -export * from './Definition'; -export * from './Options'; -export * from './PatternVisitor'; -export * from './Reference'; -export * from './Referencer'; -export * from './Scope'; -export * from './ScopeManager'; -export * from './Variable'; -export declare const version: string; -//# sourceMappingURL=index.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/AST.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/AST.d.ts deleted file mode 100644 index b79a5ca0..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/AST.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { AST_TOKEN_TYPES, TSESTree } from '../ts-estree'; -declare namespace AST { - type TokenType = AST_TOKEN_TYPES; - type Token = TSESTree.Token; - type SourceLocation = TSESTree.SourceLocation; - type Range = TSESTree.Range; -} -export { AST }; -//# sourceMappingURL=AST.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/CLIEngine.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/CLIEngine.d.ts deleted file mode 100644 index 8441ace0..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/CLIEngine.d.ts +++ /dev/null @@ -1,137 +0,0 @@ -import { Linter } from './Linter'; -import { RuleListener, RuleMetaData, RuleModule } from './Rule'; -declare namespace CLIEngine { - interface Options { - allowInlineConfig?: boolean; - baseConfig?: false | { - [name: string]: unknown; - }; - cache?: boolean; - cacheFile?: string; - cacheLocation?: string; - configFile?: string; - cwd?: string; - envs?: string[]; - errorOnUnmatchedPattern?: boolean; - extensions?: string[]; - fix?: boolean; - globals?: string[]; - ignore?: boolean; - ignorePath?: string; - ignorePattern?: string | string[]; - useEslintrc?: boolean; - parser?: string; - parserOptions?: Linter.ParserOptions; - plugins?: string[]; - resolvePluginsRelativeTo?: string; - rules?: { - [name: string]: Linter.RuleLevel | Linter.RuleLevelAndOptions; - }; - rulePaths?: string[]; - reportUnusedDisableDirectives?: boolean; - } - interface LintResult { - filePath: string; - messages: Linter.LintMessage[]; - errorCount: number; - warningCount: number; - fixableErrorCount: number; - fixableWarningCount: number; - output?: string; - source?: string; - } - interface LintReport { - results: LintResult[]; - errorCount: number; - warningCount: number; - fixableErrorCount: number; - fixableWarningCount: number; - usedDeprecatedRules: DeprecatedRuleUse[]; - } - interface DeprecatedRuleUse { - ruleId: string; - replacedBy: string[]; - } - interface LintResultData { - rulesMeta: { - [ruleId: string]: RuleMetaData; - }; - } - type Formatter = (results: LintResult[], data?: LintResultData) => string; -} -/** - * The underlying utility that runs the ESLint command line interface. This object will read the filesystem for - * configuration and file information but will not output any results. Instead, it allows you direct access to the - * important information so you can deal with the output yourself. - * @deprecated use the ESLint class instead - */ -declare const CLIEngine: { - new (options: CLIEngine.Options): { - /** - * Add a plugin by passing its configuration - * @param name Name of the plugin. - * @param pluginObject Plugin configuration object. - */ - addPlugin(name: string, pluginObject: Linter.Plugin): void; - /** - * Executes the current configuration on an array of file and directory names. - * @param patterns An array of file and directory names. - * @returns The results for all files that were linted. - */ - executeOnFiles(patterns: string[]): CLIEngine.LintReport; - /** - * Executes the current configuration on text. - * @param text A string of JavaScript code to lint. - * @param filename An optional string representing the texts filename. - * @param warnIgnored Always warn when a file is ignored - * @returns The results for the linting. - */ - executeOnText(text: string, filename?: string, warnIgnored?: boolean): CLIEngine.LintReport; - /** - * Returns a configuration object for the given file based on the CLI options. - * This is the same logic used by the ESLint CLI executable to determine configuration for each file it processes. - * @param filePath The path of the file to retrieve a config object for. - * @returns A configuration object for the file. - */ - getConfigForFile(filePath: string): Linter.Config; - /** - * Returns the formatter representing the given format. - * @param format The name of the format to load or the path to a custom formatter. - * @returns The formatter function. - */ - getFormatter(format?: string): CLIEngine.Formatter; - /** - * Checks if a given path is ignored by ESLint. - * @param filePath The path of the file to check. - * @returns Whether or not the given path is ignored. - */ - isPathIgnored(filePath: string): boolean; - /** - * Resolves the patterns passed into `executeOnFiles()` into glob-based patterns for easier handling. - * @param patterns The file patterns passed on the command line. - * @returns The equivalent glob patterns. - */ - resolveFileGlobPatterns(patterns: string[]): string[]; - getRules(): Map>; - }; - /** - * Returns results that only contains errors. - * @param results The results to filter. - * @returns The filtered results. - */ - getErrorResults(results: CLIEngine.LintResult[]): CLIEngine.LintResult[]; - /** - * Returns the formatter representing the given format or null if the `format` is not a string. - * @param format The name of the format to load or the path to a custom formatter. - * @returns The formatter function. - */ - getFormatter(format?: string): CLIEngine.Formatter; - /** - * Outputs fixes from the given results to files. - * @param report The report object created by CLIEngine. - */ - outputFixes(report: CLIEngine.LintReport): void; - version: string; -} | undefined; -export { CLIEngine }; -//# sourceMappingURL=CLIEngine.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/ESLint.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/ESLint.d.ts deleted file mode 100644 index ee8af5c1..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/ESLint.d.ts +++ /dev/null @@ -1,376 +0,0 @@ -import { Linter } from './Linter'; -declare class ESLintBase { - /** - * Creates a new instance of the main ESLint API. - * @param options The options for this instance. - */ - constructor(options?: ESLint.ESLintOptions); - /** - * This method calculates the configuration for a given file, which can be useful for debugging purposes. - * - It resolves and merges extends and overrides settings into the top level configuration. - * - It resolves the parser setting to absolute paths. - * - It normalizes the plugins setting to align short names. (e.g., eslint-plugin-foo → foo) - * - It adds the processor setting if a legacy file extension processor is matched. - * - It doesn't interpret the env setting to the globals and parserOptions settings, so the result object contains - * the env setting as is. - * @param filePath The path to the file whose configuration you would like to calculate. Directory paths are forbidden - * because ESLint cannot handle the overrides setting. - * @returns The promise that will be fulfilled with a configuration object. - */ - calculateConfigForFile(filePath: string): Promise; - /** - * This method checks if a given file is ignored by your configuration. - * @param filePath The path to the file you want to check. - * @returns The promise that will be fulfilled with whether the file is ignored or not. If the file is ignored, then - * it will return true. - */ - isPathIgnored(filePath: string): Promise; - /** - * This method lints the files that match the glob patterns and then returns the results. - * @param patterns The lint target files. This can contain any of file paths, directory paths, and glob patterns. - * @returns The promise that will be fulfilled with an array of LintResult objects. - */ - lintFiles(patterns: string | string[]): Promise; - /** - * This method lints the given source code text and then returns the results. - * - * By default, this method uses the configuration that applies to files in the current working directory (the cwd - * constructor option). If you want to use a different configuration, pass options.filePath, and ESLint will load the - * same configuration that eslint.lintFiles() would use for a file at options.filePath. - * - * If the options.filePath value is configured to be ignored, this method returns an empty array. If the - * options.warnIgnored option is set along with the options.filePath option, this method returns a LintResult object. - * In that case, the result may contain a warning that indicates the file was ignored. - * @param code The source code text to check. - * @param options The options. - * @returns The promise that will be fulfilled with an array of LintResult objects. This is an array (despite there - * being only one lint result) in order to keep the interfaces between this and the eslint.lintFiles() - * method similar. - */ - lintText(code: string, options?: ESLint.LintTextOptions): Promise; - /** - * This method loads a formatter. Formatters convert lint results to a human- or machine-readable string. - * @param name TThe path to the file you want to check. - * The following values are allowed: - * - undefined. In this case, loads the "stylish" built-in formatter. - * - A name of built-in formatters. - * - A name of third-party formatters. For examples: - * -- `foo` will load eslint-formatter-foo. - * -- `@foo` will load `@foo/eslint-formatter`. - * -- `@foo/bar` will load `@foo/eslint-formatter-bar`. - * - A path to the file that defines a formatter. The path must contain one or more path separators (/) in order to distinguish if it's a path or not. For example, start with ./. - * @returns The promise that will be fulfilled with a Formatter object. - */ - loadFormatter(name?: string): Promise; - /** - * This method copies the given results and removes warnings. The returned value contains only errors. - * @param results The LintResult objects to filter. - * @returns The filtered LintResult objects. - */ - static getErrorResults(results: ESLint.LintResult): ESLint.LintResult; - /** - * This method writes code modified by ESLint's autofix feature into its respective file. If any of the modified - * files don't exist, this method does nothing. - * @param results The LintResult objects to write. - * @returns The promise that will be fulfilled after all files are written. - */ - static outputFixes(results: ESLint.LintResult): Promise; - /** - * The version text. - */ - static readonly version: string; -} -declare namespace ESLint { - interface ESLintOptions { - /** - * If false is present, ESLint suppresses directive comments in source code. - * If this option is false, it overrides the noInlineConfig setting in your configurations. - */ - allowInlineConfig?: boolean; - /** - * Configuration object, extended by all configurations used with this instance. - * You can use this option to define the default settings that will be used if your configuration files don't - * configure it. - */ - baseConfig?: Linter.Config | null; - /** - * If true is present, the eslint.lintFiles() method caches lint results and uses it if each target file is not - * changed. Please mind that ESLint doesn't clear the cache when you upgrade ESLint plugins. In that case, you have - * to remove the cache file manually. The eslint.lintText() method doesn't use caches even if you pass the - * options.filePath to the method. - */ - cache?: boolean; - /** - * The eslint.lintFiles() method writes caches into this file. - */ - cacheLocation?: string; - /** - * The working directory. This must be an absolute path. - */ - cwd?: string; - /** - * Unless set to false, the eslint.lintFiles() method will throw an error when no target files are found. - */ - errorOnUnmatchedPattern?: boolean; - /** - * If you pass directory paths to the eslint.lintFiles() method, ESLint checks the files in those directories that - * have the given extensions. For example, when passing the src/ directory and extensions is [".js", ".ts"], ESLint - * will lint *.js and *.ts files in src/. If extensions is null, ESLint checks *.js files and files that match - * overrides[].files patterns in your configuration. - * Note: This option only applies when you pass directory paths to the eslint.lintFiles() method. - * If you pass glob patterns, ESLint will lint all files matching the glob pattern regardless of extension. - */ - extensions?: string[] | null; - /** - * If true is present, the eslint.lintFiles() and eslint.lintText() methods work in autofix mode. - * If a predicate function is present, the methods pass each lint message to the function, then use only the - * lint messages for which the function returned true. - */ - fix?: boolean | ((message: ESLint.LintMessage) => boolean); - /** - * The types of the rules that the eslint.lintFiles() and eslint.lintText() methods use for autofix. - */ - fixTypes?: ('directive' | 'problem' | 'suggestion' | 'layout')[] | null; - /** - * If false is present, the eslint.lintFiles() method doesn't interpret glob patterns. - */ - globInputPaths?: boolean; - /** - * If false is present, the eslint.lintFiles() method doesn't respect `.eslintignore` files or ignorePatterns in - * your configuration. - */ - ignore?: boolean; - /** - * The path to a file ESLint uses instead of `$CWD/.eslintignore`. - * If a path is present and the file doesn't exist, this constructor will throw an error. - */ - ignorePath?: string; - /** - * Configuration object, overrides all configurations used with this instance. - * You can use this option to define the settings that will be used even if your configuration files configure it. - */ - overrideConfig?: Linter.ConfigOverride | null; - /** - * The path to a configuration file, overrides all configurations used with this instance. - * The options.overrideConfig option is applied after this option is applied. - */ - overrideConfigFile?: string | null; - /** - * The plugin implementations that ESLint uses for the plugins setting of your configuration. - * This is a map-like object. Those keys are plugin IDs and each value is implementation. - */ - plugins?: Record | null; - /** - * The severity to report unused eslint-disable directives. - * If this option is a severity, it overrides the reportUnusedDisableDirectives setting in your configurations. - */ - reportUnusedDisableDirectives?: Linter.SeverityString | null; - /** - * The path to a directory where plugins should be resolved from. - * If null is present, ESLint loads plugins from the location of the configuration file that contains the plugin - * setting. - * If a path is present, ESLint loads all plugins from there. - */ - resolvePluginsRelativeTo?: string | null; - /** - * An array of paths to directories to load custom rules from. - */ - rulePaths?: string[]; - /** - * If false is present, ESLint doesn't load configuration files (.eslintrc.* files). - * Only the configuration of the constructor options is valid. - */ - useEslintrc?: boolean; - } - interface DeprecatedRuleInfo { - /** - * The rule ID. - */ - ruleId: string; - /** - * The rule IDs that replace this deprecated rule. - */ - replacedBy: string[]; - } - /** - * The LintResult value is the information of the linting result of each file. - */ - interface LintResult { - /** - * The number of errors. This includes fixable errors. - */ - errorCount: number; - /** - * The number of fatal errors. - * @since 7.32.0 - */ - fatalErrorCount?: number; - /** - * The absolute path to the file of this result. This is the string "" if the file path is unknown (when you - * didn't pass the options.filePath option to the eslint.lintText() method). - */ - filePath: string; - /** - * The number of errors that can be fixed automatically by the fix constructor option. - */ - fixableErrorCount: number; - /** - * The number of warnings that can be fixed automatically by the fix constructor option. - */ - fixableWarningCount: number; - /** - * The array of LintMessage objects. - */ - messages: ESLint.LintMessage[]; - /** - * The source code of the file that was linted, with as many fixes applied as possible. - */ - output?: string; - /** - * The original source code text. This property is undefined if any messages didn't exist or the output - * property exists. - */ - source?: string; - /** - * The array of SuppressedLintMessage objects. - * - * @since 8.8.0 - */ - suppressedMessages?: SuppressedLintMessage[]; - /** - * The information about the deprecated rules that were used to check this file. - */ - usedDeprecatedRules: DeprecatedRuleInfo[]; - /** - * The number of warnings. This includes fixable warnings. - */ - warningCount: number; - } - interface LintTextOptions { - /** - * The path to the file of the source code text. If omitted, the result.filePath becomes the string "". - */ - filePath?: string; - /** - * If true is present and the options.filePath is a file ESLint should ignore, this method returns a lint result - * contains a warning message. - */ - warnIgnored?: boolean; - } - /** - * The LintMessage value is the information of each linting error. - */ - interface LintMessage { - /** - * The 1-based column number of the begin point of this message. - */ - column: number | undefined; - /** - * The 1-based column number of the end point of this message. This property is undefined if this message - * is not a range. - */ - endColumn: number | undefined; - /** - * The 1-based line number of the end point of this message. This property is undefined if this - * message is not a range. - */ - endLine: number | undefined; - /** - * `true` if this is a fatal error unrelated to a rule, like a parsing error. - * @since 7.24.0 - */ - fatal?: boolean | undefined; - /** - * The EditInfo object of autofix. This property is undefined if this message is not fixable. - */ - fix: EditInfo | undefined; - /** - * The 1-based line number of the begin point of this message. - */ - line: number | undefined; - /** - * The error message - */ - message: string; - /** - * The rule name that generates this lint message. If this message is generated by the ESLint core rather than - * rules, this is null. - */ - ruleId: string | null; - /** - * The severity of this message. 1 means warning and 2 means error. - */ - severity: 1 | 2; - /** - * The list of suggestions. Each suggestion is the pair of a description and an EditInfo object to fix code. API - * users such as editor integrations can choose one of them to fix the problem of this message. This property is - * undefined if this message doesn't have any suggestions. - */ - suggestions: { - desc: string; - fix: EditInfo; - }[] | undefined; - } - /** - * The SuppressedLintMessage value is the information of each suppressed linting error. - */ - interface SuppressedLintMessage extends ESLint.LintMessage { - /** - * The list of suppressions. - */ - suppressions?: { - /** - * Right now, this is always `directive` - */ - kind: string; - /** - * The free text description added after the `--` in the comment - */ - justification: string; - }[]; - } - /** - * The EditInfo value is information to edit text. - * - * This edit information means replacing the range of the range property by the text property value. It's like - * sourceCodeText.slice(0, edit.range[0]) + edit.text + sourceCodeText.slice(edit.range[1]). Therefore, it's an add - * if the range[0] and range[1] property values are the same value, and it's removal if the text property value is - * empty string. - */ - interface EditInfo { - /** - * The pair of 0-based indices in source code text to remove. - */ - range: [ - number, - number - ]; - /** - * The text to add. - */ - text: string; - } - /** - * The Formatter value is the object to convert the LintResult objects to text. - */ - interface Formatter { - /** - * The method to convert the LintResult objects to text. - * Promise return supported since 8.4.0 - */ - format(results: LintResult[]): string | Promise; - } -} -declare const _ESLint: typeof ESLintBase; -/** - * The ESLint class is the primary class to use in Node.js applications. - * This class depends on the Node.js fs module and the file system, so you cannot use it in browsers. - * - * If you want to lint code on browsers, use the Linter class instead. - * - * @since 7.0.0 - */ -declare class ESLint extends _ESLint { -} -export { ESLint }; -//# sourceMappingURL=ESLint.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Linter.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Linter.d.ts deleted file mode 100644 index 52723af9..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Linter.d.ts +++ /dev/null @@ -1,326 +0,0 @@ -import { ParserServices, TSESTree } from '../ts-estree'; -import { ParserOptions as TSParserOptions } from './ParserOptions'; -import { RuleCreateFunction, RuleFix, RuleModule, SharedConfigurationSettings } from './Rule'; -import { Scope } from './Scope'; -import { SourceCode } from './SourceCode'; -declare class LinterBase { - /** - * Initialize the Linter. - * @param config the config object - */ - constructor(config?: Linter.LinterOptions); - /** - * Define a new parser module - * @param parserId Name of the parser - * @param parserModule The parser object - */ - defineParser(parserId: string, parserModule: Linter.ParserModule): void; - /** - * Defines a new linting rule. - * @param ruleId A unique rule identifier - * @param ruleModule Function from context to object mapping AST node types to event handlers - */ - defineRule(ruleId: string, ruleModule: RuleModule | RuleCreateFunction): void; - /** - * Defines many new linting rules. - * @param rulesToDefine map from unique rule identifier to rule - */ - defineRules(rulesToDefine: Record | RuleCreateFunction>): void; - /** - * Gets an object with all loaded rules. - * @returns All loaded rules - */ - getRules(): Map>; - /** - * Gets the `SourceCode` object representing the parsed source. - * @returns The `SourceCode` object. - */ - getSourceCode(): SourceCode; - /** - * Verifies the text against the rules specified by the second argument. - * @param textOrSourceCode The text to parse or a SourceCode object. - * @param config An ESLintConfig instance to configure everything. - * @param filenameOrOptions The optional filename of the file being checked. - * If this is not set, the filename will default to '' in the rule context. - * If this is an object, then it has "filename", "allowInlineConfig", and some properties. - * @returns The results as an array of messages or an empty array if no messages. - */ - verify(textOrSourceCode: SourceCode | string, config: Linter.Config, filenameOrOptions?: string | Linter.VerifyOptions): Linter.LintMessage[]; - /** - * Performs multiple autofix passes over the text until as many fixes as possible have been applied. - * @param code The source text to apply fixes to. - * @param config The ESLint config object to use. - * @param options The ESLint options object to use. - * @returns The result of the fix operation as returned from the SourceCodeFixer. - */ - verifyAndFix(code: string, config: Linter.Config, options: Linter.FixOptions): Linter.FixReport; - /** - * The version from package.json. - */ - readonly version: string; - /** - * The version from package.json. - */ - static readonly version: string; -} -declare namespace Linter { - export interface LinterOptions { - /** - * path to a directory that should be considered as the current working directory. - */ - cwd?: string; - } - export type Severity = 0 | 1 | 2; - export type SeverityString = 'off' | 'warn' | 'error'; - export type RuleLevel = Severity | SeverityString; - export type RuleLevelAndOptions = [ - RuleLevel, - ...unknown[] - ]; - export type RuleEntry = RuleLevel | RuleLevelAndOptions; - export type RulesRecord = Partial>; - export type GlobalVariableOption = 'readonly' | 'writable' | 'off' | boolean; - interface BaseConfig { - $schema?: string; - /** - * The environment settings. - */ - env?: { - [name: string]: boolean; - }; - /** - * The path to other config files or the package name of shareable configs. - */ - extends?: string | string[]; - /** - * The global variable settings. - */ - globals?: { - [name: string]: GlobalVariableOption; - }; - /** - * The flag that disables directive comments. - */ - noInlineConfig?: boolean; - /** - * The override settings per kind of files. - */ - overrides?: ConfigOverride[]; - /** - * The path to a parser or the package name of a parser. - */ - parser?: string; - /** - * The parser options. - */ - parserOptions?: ParserOptions; - /** - * The plugin specifiers. - */ - plugins?: string[]; - /** - * The processor specifier. - */ - processor?: string; - /** - * The flag to report unused `eslint-disable` comments. - */ - reportUnusedDisableDirectives?: boolean; - /** - * The rule settings. - */ - rules?: RulesRecord; - /** - * The shared settings. - */ - settings?: SharedConfigurationSettings; - } - export interface ConfigOverride extends BaseConfig { - excludedFiles?: string | string[]; - files: string | string[]; - } - export interface Config extends BaseConfig { - /** - * The glob patterns that ignore to lint. - */ - ignorePatterns?: string | string[]; - /** - * The root flag. - */ - root?: boolean; - } - export type ParserOptions = TSParserOptions; - export interface VerifyOptions { - /** - * Allow/disallow inline comments' ability to change config once it is set. Defaults to true if not supplied. - * Useful if you want to validate JS without comments overriding rules. - */ - allowInlineConfig?: boolean; - /** - * if `true` then the linter doesn't make `fix` properties into the lint result. - */ - disableFixes?: boolean; - /** - * the filename of the source code. - */ - filename?: string; - /** - * the predicate function that selects adopt code blocks. - */ - filterCodeBlock?: (filename: string, text: string) => boolean; - /** - * postprocessor for report messages. - * If provided, this should accept an array of the message lists - * for each code block returned from the preprocessor, apply a mapping to - * the messages as appropriate, and return a one-dimensional array of - * messages. - */ - postprocess?: Processor['postprocess']; - /** - * preprocessor for source text. - * If provided, this should accept a string of source text, and return an array of code blocks to lint. - */ - preprocess?: Processor['preprocess']; - /** - * Adds reported errors for unused `eslint-disable` directives. - */ - reportUnusedDisableDirectives?: boolean | SeverityString; - } - export interface FixOptions extends VerifyOptions { - /** - * Determines whether fixes should be applied. - */ - fix?: boolean; - } - export interface LintSuggestion { - desc: string; - fix: RuleFix; - messageId?: string; - } - export interface LintMessage { - /** - * The 1-based column number. - */ - column: number; - /** - * The 1-based column number of the end location. - */ - endColumn?: number; - /** - * The 1-based line number of the end location. - */ - endLine?: number; - /** - * If `true` then this is a fatal error. - */ - fatal?: true; - /** - * Information for autofix. - */ - fix?: RuleFix; - /** - * The 1-based line number. - */ - line: number; - /** - * The error message. - */ - message: string; - messageId?: string; - nodeType: string; - /** - * The ID of the rule which makes this message. - */ - ruleId: string | null; - /** - * The severity of this message. - */ - severity: Severity; - source: string | null; - /** - * Information for suggestions - */ - suggestions?: LintSuggestion[]; - } - export interface FixReport { - /** - * True, if the code was fixed - */ - fixed: boolean; - /** - * Fixed code text (might be the same as input if no fixes were applied). - */ - output: string; - /** - * Collection of all messages for the given code - */ - messages: LintMessage[]; - } - export type ParserModule = { - parse(text: string, options?: ParserOptions): TSESTree.Program; - } | { - parseForESLint(text: string, options?: ParserOptions): ESLintParseResult; - }; - export interface ESLintParseResult { - ast: TSESTree.Program; - services?: ParserServices; - scopeManager?: Scope.ScopeManager; - visitorKeys?: SourceCode.VisitorKeys; - } - export interface Processor { - /** - * The function to extract code blocks. - */ - preprocess?: (text: string, filename: string) => Array; - /** - * The function to merge messages. - */ - postprocess?: (messagesList: Linter.LintMessage[][], filename: string) => Linter.LintMessage[]; - /** - * If `true` then it means the processor supports autofix. - */ - supportsAutofix?: boolean; - } - export interface Environment { - /** - * The definition of global variables. - */ - globals?: Record; - /** - * The parser options that will be enabled under this environment. - */ - parserOptions?: ParserOptions; - } - export interface Plugin { - /** - * The definition of plugin configs. - */ - configs?: Record; - /** - * The definition of plugin environments. - */ - environments?: Record; - /** - * The definition of plugin processors. - */ - processors?: Record; - /** - * The definition of plugin rules. - */ - rules?: Record>; - } - export {}; -} -declare const Linter_base: typeof LinterBase; -/** - * The Linter object does the actual evaluation of the JavaScript code. It doesn't do any filesystem operations, it - * simply parses and reports on the code. In particular, the Linter object does not process configuration objects - * or files. - */ -declare class Linter extends Linter_base { -} -export { Linter }; -//# sourceMappingURL=Linter.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/ParserOptions.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/ParserOptions.d.ts deleted file mode 100644 index 3956b84e..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/ParserOptions.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { DebugLevel, EcmaVersion, ParserOptions, SourceType, } from '@typescript-eslint/types'; -//# sourceMappingURL=ParserOptions.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Rule.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Rule.d.ts deleted file mode 100644 index de6cd21a..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Rule.d.ts +++ /dev/null @@ -1,393 +0,0 @@ -import { JSONSchema4 } from '../json-schema'; -import { ParserServices, TSESTree } from '../ts-estree'; -import { AST } from './AST'; -import { Linter } from './Linter'; -import { Scope } from './Scope'; -import { SourceCode } from './SourceCode'; -export type RuleRecommendation = 'error' | 'strict' | 'warn' | false; -interface RuleMetaDataDocs { - /** - * Concise description of the rule - */ - description: string; - /** - * The recommendation level for the rule. - * Used by the build tools to generate the recommended and strict configs. - * Set to false to not include it as a recommendation - */ - recommended: 'error' | 'strict' | 'warn' | false; - /** - * The URL of the rule's docs - */ - url?: string; - /** - * Specifies whether the rule can return suggestions. - */ - suggestion?: boolean; - /** - * Does the rule require us to create a full TypeScript Program in order for it - * to type-check code. This is only used for documentation purposes. - */ - requiresTypeChecking?: boolean; - /** - * Does the rule extend (or is it based off of) an ESLint code rule? - * Alternately accepts the name of the base rule, in case the rule has been renamed. - * This is only used for documentation purposes. - */ - extendsBaseRule?: boolean | string; -} -interface RuleMetaData { - /** - * True if the rule is deprecated, false otherwise - */ - deprecated?: boolean; - /** - * Documentation for the rule, unnecessary for custom rules/plugins - */ - docs?: RuleMetaDataDocs; - /** - * The fixer category. Omit if there is no fixer - */ - fixable?: 'code' | 'whitespace'; - /** - * Specifies whether rules can return suggestions. Omit if there is no suggestions - */ - hasSuggestions?: boolean; - /** - * A map of messages which the rule can report. - * The key is the messageId, and the string is the parameterised error string. - * See: https://eslint.org/docs/developer-guide/working-with-rules#messageids - */ - messages: Record; - /** - * The type of rule. - * - `"problem"` means the rule is identifying code that either will cause an error or may cause a confusing behavior. Developers should consider this a high priority to resolve. - * - `"suggestion"` means the rule is identifying something that could be done in a better way but no errors will occur if the code isn’t changed. - * - `"layout"` means the rule cares primarily about whitespace, semicolons, commas, and parentheses, all the parts of the program that determine how the code looks rather than how it executes. These rules work on parts of the code that aren’t specified in the AST. - */ - type: 'suggestion' | 'problem' | 'layout'; - /** - * The name of the rule this rule was replaced by, if it was deprecated. - */ - replacedBy?: readonly string[]; - /** - * The options schema. Supply an empty array if there are no options. - */ - schema: JSONSchema4 | readonly JSONSchema4[]; -} -interface RuleFix { - range: Readonly; - text: string; -} -interface RuleFixer { - insertTextAfter(nodeOrToken: TSESTree.Node | TSESTree.Token, text: string): RuleFix; - insertTextAfterRange(range: Readonly, text: string): RuleFix; - insertTextBefore(nodeOrToken: TSESTree.Node | TSESTree.Token, text: string): RuleFix; - insertTextBeforeRange(range: Readonly, text: string): RuleFix; - remove(nodeOrToken: TSESTree.Node | TSESTree.Token): RuleFix; - removeRange(range: Readonly): RuleFix; - replaceText(nodeOrToken: TSESTree.Node | TSESTree.Token, text: string): RuleFix; - replaceTextRange(range: Readonly, text: string): RuleFix; -} -interface SuggestionReportDescriptor extends Pick, Exclude, 'fix'>> { - readonly fix: ReportFixFunction; -} -type ReportFixFunction = (fixer: RuleFixer) => null | RuleFix | readonly RuleFix[] | IterableIterator; -type ReportSuggestionArray = SuggestionReportDescriptor[]; -interface ReportDescriptorBase { - /** - * The parameters for the message string associated with `messageId`. - */ - readonly data?: Readonly>; - /** - * The fixer function. - */ - readonly fix?: ReportFixFunction | null; - /** - * The messageId which is being reported. - */ - readonly messageId: TMessageIds; -} -interface ReportDescriptorWithSuggestion extends ReportDescriptorBase { - /** - * 6.7's Suggestions API - */ - readonly suggest?: Readonly> | null; -} -interface ReportDescriptorNodeOptionalLoc { - /** - * The Node or AST Token which the report is being attached to - */ - readonly node: TSESTree.Node | TSESTree.Token; - /** - * An override of the location of the report - */ - readonly loc?: Readonly | Readonly; -} -interface ReportDescriptorLocOnly { - /** - * An override of the location of the report - */ - loc: Readonly | Readonly; -} -type ReportDescriptor = ReportDescriptorWithSuggestion & (ReportDescriptorNodeOptionalLoc | ReportDescriptorLocOnly); -/** - * Plugins can add their settings using declaration - * merging against this interface. - */ -interface SharedConfigurationSettings { - [name: string]: unknown; -} -interface RuleContext { - /** - * The rule ID. - */ - id: string; - /** - * An array of the configured options for this rule. - * This array does not include the rule severity. - */ - options: TOptions; - /** - * The name of the parser from configuration. - */ - parserPath: string; - /** - * The parser options configured for this run - */ - parserOptions: Linter.ParserOptions; - /** - * An object containing parser-provided services for rules - */ - parserServices?: ParserServices; - /** - * The shared settings from configuration. - * We do not have any shared settings in this plugin. - */ - settings: SharedConfigurationSettings; - /** - * Returns an array of the ancestors of the currently-traversed node, starting at - * the root of the AST and continuing through the direct parent of the current node. - * This array does not include the currently-traversed node itself. - */ - getAncestors(): TSESTree.Node[]; - /** - * Returns a list of variables declared by the given node. - * This information can be used to track references to variables. - */ - getDeclaredVariables(node: TSESTree.Node): readonly Scope.Variable[]; - /** - * Returns the current working directory passed to Linter. - * It is a path to a directory that should be considered as the current working directory. - * @since 6.6.0 - */ - getCwd?(): string; - /** - * Returns the filename associated with the source. - */ - getFilename(): string; - /** - * Returns the full path of the file on disk without any code block information (unlike `getFilename()`). - * @since 7.28.0 - */ - getPhysicalFilename?(): string; - /** - * Returns the scope of the currently-traversed node. - * This information can be used track references to variables. - */ - getScope(): Scope.Scope; - /** - * Returns a SourceCode object that you can use to work with the source that - * was passed to ESLint. - */ - getSourceCode(): Readonly; - /** - * Marks a variable with the given name in the current scope as used. - * This affects the no-unused-vars rule. - */ - markVariableAsUsed(name: string): boolean; - /** - * Reports a problem in the code. - */ - report(descriptor: ReportDescriptor): void; -} -type RuleFunction = (node: T) => void; -interface RuleListener { - [nodeSelector: string]: RuleFunction | undefined; - ArrayExpression?: RuleFunction; - ArrayPattern?: RuleFunction; - ArrowFunctionExpression?: RuleFunction; - AssignmentExpression?: RuleFunction; - AssignmentPattern?: RuleFunction; - AwaitExpression?: RuleFunction; - BigIntLiteral?: RuleFunction; - BinaryExpression?: RuleFunction; - BlockStatement?: RuleFunction; - BreakStatement?: RuleFunction; - CallExpression?: RuleFunction; - CatchClause?: RuleFunction; - ChainExpression?: RuleFunction; - ClassBody?: RuleFunction; - ClassDeclaration?: RuleFunction; - ClassExpression?: RuleFunction; - ConditionalExpression?: RuleFunction; - ContinueStatement?: RuleFunction; - DebuggerStatement?: RuleFunction; - Decorator?: RuleFunction; - DoWhileStatement?: RuleFunction; - EmptyStatement?: RuleFunction; - ExportAllDeclaration?: RuleFunction; - ExportDefaultDeclaration?: RuleFunction; - ExportNamedDeclaration?: RuleFunction; - ExportSpecifier?: RuleFunction; - ExpressionStatement?: RuleFunction; - ForInStatement?: RuleFunction; - ForOfStatement?: RuleFunction; - ForStatement?: RuleFunction; - FunctionDeclaration?: RuleFunction; - FunctionExpression?: RuleFunction; - Identifier?: RuleFunction; - IfStatement?: RuleFunction; - ImportDeclaration?: RuleFunction; - ImportDefaultSpecifier?: RuleFunction; - ImportExpression?: RuleFunction; - ImportNamespaceSpecifier?: RuleFunction; - ImportSpecifier?: RuleFunction; - JSXAttribute?: RuleFunction; - JSXClosingElement?: RuleFunction; - JSXClosingFragment?: RuleFunction; - JSXElement?: RuleFunction; - JSXEmptyExpression?: RuleFunction; - JSXExpressionContainer?: RuleFunction; - JSXFragment?: RuleFunction; - JSXIdentifier?: RuleFunction; - JSXMemberExpression?: RuleFunction; - JSXOpeningElement?: RuleFunction; - JSXOpeningFragment?: RuleFunction; - JSXSpreadAttribute?: RuleFunction; - JSXSpreadChild?: RuleFunction; - JSXText?: RuleFunction; - LabeledStatement?: RuleFunction; - Literal?: RuleFunction; - LogicalExpression?: RuleFunction; - MemberExpression?: RuleFunction; - MetaProperty?: RuleFunction; - MethodDefinition?: RuleFunction; - NewExpression?: RuleFunction; - ObjectExpression?: RuleFunction; - ObjectPattern?: RuleFunction; - Program?: RuleFunction; - Property?: RuleFunction; - PropertyDefinition?: RuleFunction; - RestElement?: RuleFunction; - ReturnStatement?: RuleFunction; - SequenceExpression?: RuleFunction; - SpreadElement?: RuleFunction; - Super?: RuleFunction; - SwitchCase?: RuleFunction; - SwitchStatement?: RuleFunction; - TaggedTemplateExpression?: RuleFunction; - TemplateElement?: RuleFunction; - TemplateLiteral?: RuleFunction; - ThisExpression?: RuleFunction; - ThrowStatement?: RuleFunction; - TryStatement?: RuleFunction; - TSAbstractKeyword?: RuleFunction; - TSAbstractMethodDefinition?: RuleFunction; - TSAbstractPropertyDefinition?: RuleFunction; - TSAnyKeyword?: RuleFunction; - TSArrayType?: RuleFunction; - TSAsExpression?: RuleFunction; - TSAsyncKeyword?: RuleFunction; - TSBigIntKeyword?: RuleFunction; - TSBooleanKeyword?: RuleFunction; - TSCallSignatureDeclaration?: RuleFunction; - TSClassImplements?: RuleFunction; - TSConditionalType?: RuleFunction; - TSConstructorType?: RuleFunction; - TSConstructSignatureDeclaration?: RuleFunction; - TSDeclareFunction?: RuleFunction; - TSDeclareKeyword?: RuleFunction; - TSEmptyBodyFunctionExpression?: RuleFunction; - TSEnumDeclaration?: RuleFunction; - TSEnumMember?: RuleFunction; - TSExportAssignment?: RuleFunction; - TSExportKeyword?: RuleFunction; - TSExternalModuleReference?: RuleFunction; - TSFunctionType?: RuleFunction; - TSImportEqualsDeclaration?: RuleFunction; - TSImportType?: RuleFunction; - TSIndexedAccessType?: RuleFunction; - TSIndexSignature?: RuleFunction; - TSInferType?: RuleFunction; - TSInterfaceBody?: RuleFunction; - TSInterfaceDeclaration?: RuleFunction; - TSInterfaceHeritage?: RuleFunction; - TSIntersectionType?: RuleFunction; - TSLiteralType?: RuleFunction; - TSMappedType?: RuleFunction; - TSMethodSignature?: RuleFunction; - TSModuleBlock?: RuleFunction; - TSModuleDeclaration?: RuleFunction; - TSNamespaceExportDeclaration?: RuleFunction; - TSNeverKeyword?: RuleFunction; - TSNonNullExpression?: RuleFunction; - TSNullKeyword?: RuleFunction; - TSNumberKeyword?: RuleFunction; - TSObjectKeyword?: RuleFunction; - TSOptionalType?: RuleFunction; - TSParameterProperty?: RuleFunction; - TSPrivateKeyword?: RuleFunction; - TSPropertySignature?: RuleFunction; - TSProtectedKeyword?: RuleFunction; - TSPublicKeyword?: RuleFunction; - TSQualifiedName?: RuleFunction; - TSReadonlyKeyword?: RuleFunction; - TSRestType?: RuleFunction; - TSStaticKeyword?: RuleFunction; - TSStringKeyword?: RuleFunction; - TSSymbolKeyword?: RuleFunction; - TSThisType?: RuleFunction; - TSTupleType?: RuleFunction; - TSTypeAliasDeclaration?: RuleFunction; - TSTypeAnnotation?: RuleFunction; - TSTypeAssertion?: RuleFunction; - TSTypeLiteral?: RuleFunction; - TSTypeOperator?: RuleFunction; - TSTypeParameter?: RuleFunction; - TSTypeParameterDeclaration?: RuleFunction; - TSTypeParameterInstantiation?: RuleFunction; - TSTypePredicate?: RuleFunction; - TSTypeQuery?: RuleFunction; - TSTypeReference?: RuleFunction; - TSUndefinedKeyword?: RuleFunction; - TSUnionType?: RuleFunction; - TSUnknownKeyword?: RuleFunction; - TSVoidKeyword?: RuleFunction; - UnaryExpression?: RuleFunction; - UpdateExpression?: RuleFunction; - VariableDeclaration?: RuleFunction; - VariableDeclarator?: RuleFunction; - WhileStatement?: RuleFunction; - WithStatement?: RuleFunction; - YieldExpression?: RuleFunction; -} -interface RuleModule { - /** - * Default options the rule will be run with - */ - defaultOptions: TOptions; - /** - * Metadata about the rule - */ - meta: RuleMetaData; - /** - * Function which returns an object with methods that ESLint calls to “visit” - * nodes while traversing the abstract syntax tree. - */ - create(context: Readonly>): TRuleListener; -} -type RuleCreateFunction = (context: Readonly>) => TRuleListener; -export { ReportDescriptor, ReportFixFunction, ReportSuggestionArray, RuleContext, RuleCreateFunction, RuleFix, RuleFixer, RuleFunction, RuleListener, RuleMetaData, RuleMetaDataDocs, RuleModule, SharedConfigurationSettings, }; -//# sourceMappingURL=Rule.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/RuleTester.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/RuleTester.d.ts deleted file mode 100644 index 70fdcaaa..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/RuleTester.d.ts +++ /dev/null @@ -1,158 +0,0 @@ -import { AST_NODE_TYPES, AST_TOKEN_TYPES } from '../ts-estree'; -import { Linter } from './Linter'; -import { ParserOptions } from './ParserOptions'; -import { RuleCreateFunction, RuleModule, SharedConfigurationSettings } from './Rule'; -interface ValidTestCase> { - /** - * Name for the test case. - * @since 8.1.0 - */ - readonly name?: string; - /** - * Code for the test case. - */ - readonly code: string; - /** - * Environments for the test case. - */ - readonly env?: Readonly>; - /** - * The fake filename for the test case. Useful for rules that make assertion about filenames. - */ - readonly filename?: string; - /** - * The additional global variables. - */ - readonly globals?: Record; - /** - * Options for the test case. - */ - readonly options?: Readonly; - /** - * The absolute path for the parser. - */ - readonly parser?: string; - /** - * Options for the parser. - */ - readonly parserOptions?: Readonly; - /** - * Settings for the test case. - */ - readonly settings?: Readonly; - /** - * Run this case exclusively for debugging in supported test frameworks. - * @since 7.29.0 - */ - readonly only?: boolean; -} -interface SuggestionOutput { - /** - * Reported message ID. - */ - readonly messageId: TMessageIds; - /** - * The data used to fill the message template. - */ - readonly data?: Readonly>; - /** - * NOTE: Suggestions will be applied as a stand-alone change, without triggering multi-pass fixes. - * Each individual error has its own suggestion, so you have to show the correct, _isolated_ output for each suggestion. - */ - readonly output: string; -} -interface InvalidTestCase> extends ValidTestCase { - /** - * Expected errors. - */ - readonly errors: readonly TestCaseError[]; - /** - * The expected code after autofixes are applied. If set to `null`, the test runner will assert that no autofix is suggested. - */ - readonly output?: string | null; -} -interface TestCaseError { - /** - * The 1-based column number of the reported start location. - */ - readonly column?: number; - /** - * The data used to fill the message template. - */ - readonly data?: Readonly>; - /** - * The 1-based column number of the reported end location. - */ - readonly endColumn?: number; - /** - * The 1-based line number of the reported end location. - */ - readonly endLine?: number; - /** - * The 1-based line number of the reported start location. - */ - readonly line?: number; - /** - * Reported message ID. - */ - readonly messageId: TMessageIds; - /** - * Reported suggestions. - */ - readonly suggestions?: readonly SuggestionOutput[] | null; - /** - * The type of the reported AST node. - */ - readonly type?: AST_NODE_TYPES | AST_TOKEN_TYPES; -} -/** - * @param text a string describing the rule - * @param callback the test callback - */ -type RuleTesterTestFrameworkFunction = (text: string, callback: () => void) => void; -interface RunTests> { - readonly valid: readonly (ValidTestCase | string)[]; - readonly invalid: readonly InvalidTestCase[]; -} -interface RuleTesterConfig extends Linter.Config { - readonly parser: string; - readonly parserOptions?: Readonly; -} -declare class RuleTesterBase { - /** - * Creates a new instance of RuleTester. - * @param testerConfig extra configuration for the tester - */ - constructor(testerConfig?: RuleTesterConfig); - /** - * Adds a new rule test to execute. - * @param ruleName The name of the rule to run. - * @param rule The rule to test. - * @param test The collection of tests to run. - */ - run>(ruleName: string, rule: RuleModule, tests: RunTests): void; - /* - * If you supply a value to this property, the rule tester will call this instead of using the version defined on - * the global namespace. - */ - static describe: RuleTesterTestFrameworkFunction; - /* - * If you supply a value to this property, the rule tester will call this instead of using the version defined on - * the global namespace. - */ - static it: RuleTesterTestFrameworkFunction; - /* - * If you supply a value to this property, the rule tester will call this instead of using the version defined on - * the global namespace. - */ - static itOnly: RuleTesterTestFrameworkFunction; - /** - * Define a rule for one particular run of tests. - */ - defineRule>(name: string, rule: RuleModule | RuleCreateFunction): void; -} -declare const RuleTester_base: typeof RuleTesterBase; -declare class RuleTester extends RuleTester_base { -} -export { InvalidTestCase, SuggestionOutput, RuleTester, RuleTesterConfig, RuleTesterTestFrameworkFunction, RunTests, TestCaseError, ValidTestCase, }; -//# sourceMappingURL=RuleTester.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Scope.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Scope.d.ts deleted file mode 100644 index 27d01c72..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/Scope.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import * as scopeManager from '@typescript-eslint/scope-manager'; -declare namespace Scope { - type ScopeManager = scopeManager.ScopeManager; - type Reference = scopeManager.Reference; - type Variable = scopeManager.Variable | scopeManager.ESLintScopeVariable; - type Scope = scopeManager.Scope; - const ScopeType: typeof scopeManager.ScopeType; - type DefinitionType = scopeManager.Definition; - type Definition = scopeManager.Definition; - const DefinitionType: typeof scopeManager.DefinitionType; - namespace Definitions { - type CatchClauseDefinition = scopeManager.CatchClauseDefinition; - type ClassNameDefinition = scopeManager.ClassNameDefinition; - type FunctionNameDefinition = scopeManager.FunctionNameDefinition; - type ImplicitGlobalVariableDefinition = scopeManager.ImplicitGlobalVariableDefinition; - type ImportBindingDefinition = scopeManager.ImportBindingDefinition; - type ParameterDefinition = scopeManager.ParameterDefinition; - type TSEnumMemberDefinition = scopeManager.TSEnumMemberDefinition; - type TSEnumNameDefinition = scopeManager.TSEnumNameDefinition; - type TSModuleNameDefinition = scopeManager.TSModuleNameDefinition; - type TypeDefinition = scopeManager.TypeDefinition; - type VariableDefinition = scopeManager.VariableDefinition; - } - namespace Scopes { - type BlockScope = scopeManager.BlockScope; - type CatchScope = scopeManager.CatchScope; - type ClassScope = scopeManager.ClassScope; - type ConditionalTypeScope = scopeManager.ConditionalTypeScope; - type ForScope = scopeManager.ForScope; - type FunctionExpressionNameScope = scopeManager.FunctionExpressionNameScope; - type FunctionScope = scopeManager.FunctionScope; - type FunctionTypeScope = scopeManager.FunctionTypeScope; - type GlobalScope = scopeManager.GlobalScope; - type MappedTypeScope = scopeManager.MappedTypeScope; - type ModuleScope = scopeManager.ModuleScope; - type SwitchScope = scopeManager.SwitchScope; - type TSEnumScope = scopeManager.TSEnumScope; - type TSModuleScope = scopeManager.TSModuleScope; - type TypeScope = scopeManager.TypeScope; - type WithScope = scopeManager.WithScope; - } -} -export { Scope }; -//# sourceMappingURL=Scope.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/SourceCode.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/SourceCode.d.ts deleted file mode 100644 index 66efbc57..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/SourceCode.d.ts +++ /dev/null @@ -1,346 +0,0 @@ -import { ParserServices, TSESTree } from '../ts-estree'; -import { Scope } from './Scope'; -declare class TokenStore { - /** - * Checks whether any comments exist or not between the given 2 nodes. - * @param left The node to check. - * @param right The node to check. - * @returns `true` if one or more comments exist. - */ - commentsExistBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token): boolean; - /** - * Gets all comment tokens directly after the given node or token. - * @param nodeOrToken The AST node or token to check for adjacent comment tokens. - * @returns An array of comments in occurrence order. - */ - getCommentsAfter(nodeOrToken: TSESTree.Node | TSESTree.Token): TSESTree.Comment[]; - /** - * Gets all comment tokens directly before the given node or token. - * @param nodeOrToken The AST node or token to check for adjacent comment tokens. - * @returns An array of comments in occurrence order. - */ - getCommentsBefore(nodeOrToken: TSESTree.Node | TSESTree.Token): TSESTree.Comment[]; - /** - * Gets all comment tokens inside the given node. - * @param node The AST node to get the comments for. - * @returns An array of comments in occurrence order. - */ - getCommentsInside(node: TSESTree.Node): TSESTree.Comment[]; - /** - * Gets the first token of the given node. - * @param node The AST node. - * @param option The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. - * @returns An object representing the token. - */ - getFirstToken(node: TSESTree.Node, options?: T): SourceCode.ReturnTypeFromOptions | null; - /** - * Gets the first token between two non-overlapping nodes. - * @param left Node before the desired token range. - * @param right Node after the desired token range. - * @param option The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. - * @returns An object representing the token. - */ - getFirstTokenBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions | null; - /** - * Gets the first `count` tokens of the given node. - * @param node The AST node. - * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. - * @returns Tokens. - */ - getFirstTokens(node: TSESTree.Node, options?: T): SourceCode.ReturnTypeFromOptions[]; - /** - * Gets the first `count` tokens between two non-overlapping nodes. - * @param left Node before the desired token range. - * @param right Node after the desired token range. - * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. - * @returns Tokens between left and right. - */ - getFirstTokensBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions[]; - /** - * Gets the last token of the given node. - * @param node The AST node. - * @param option The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. - * @returns An object representing the token. - */ - getLastToken(node: TSESTree.Node, options?: T): SourceCode.ReturnTypeFromOptions | null; - /** - * Gets the last token between two non-overlapping nodes. - * @param left Node before the desired token range. - * @param right Node after the desired token range. - * @param option The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. - * @returns An object representing the token. - */ - getLastTokenBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions | null; - /** - * Gets the last `count` tokens of the given node. - * @param node The AST node. - * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. - * @returns Tokens. - */ - getLastTokens(node: TSESTree.Node, options?: T): SourceCode.ReturnTypeFromOptions[]; - /** - * Gets the last `count` tokens between two non-overlapping nodes. - * @param left Node before the desired token range. - * @param right Node after the desired token range. - * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. - * @returns Tokens between left and right. - */ - getLastTokensBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions[]; - /** - * Gets the token that follows a given node or token. - * @param node The AST node or token. - * @param option The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. - * @returns An object representing the token. - */ - getTokenAfter(node: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions | null; - /** - * Gets the token that precedes a given node or token. - * @param node The AST node or token. - * @param options The option object - * @returns An object representing the token. - */ - getTokenBefore(node: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions | null; - /** - * Gets the token starting at the specified index. - * @param offset Index of the start of the token's range. - * @param option The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. - * @returns The token starting at index, or null if no such token. - */ - getTokenByRangeStart(offset: number, options?: T): SourceCode.ReturnTypeFromOptions | null; - /** - * Gets all tokens that are related to the given node. - * @param node The AST node. - * @param beforeCount The number of tokens before the node to retrieve. - * @param afterCount The number of tokens after the node to retrieve. - * @returns Array of objects representing tokens. - */ - getTokens(node: TSESTree.Node, beforeCount?: number, afterCount?: number): TSESTree.Token[]; - /** - * Gets all tokens that are related to the given node. - * @param node The AST node. - * @param options The option object. If this is a function then it's `options.filter`. - * @returns Array of objects representing tokens. - */ - getTokens(node: TSESTree.Node, options: T): SourceCode.ReturnTypeFromOptions[]; - /** - * Gets the `count` tokens that follows a given node or token. - * @param node The AST node. - * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. - * @returns Tokens. - */ - getTokensAfter(node: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions[]; - /** - * Gets the `count` tokens that precedes a given node or token. - * @param node The AST node. - * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. - * @returns Tokens. - */ - getTokensBefore(node: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions[]; - /** - * Gets all of the tokens between two non-overlapping nodes. - * @param left Node before the desired token range. - * @param right Node after the desired token range. - * @param options The option object. If this is a function then it's `options.filter`. - * @returns Tokens between left and right. - */ - getTokensBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, padding?: T): SourceCode.ReturnTypeFromOptions[]; - /** - * Gets all of the tokens between two non-overlapping nodes. - * @param left Node before the desired token range. - * @param right Node after the desired token range. - * @param padding Number of extra tokens on either side of center. - * @returns Tokens between left and right. - */ - getTokensBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, padding?: number): SourceCode.ReturnTypeFromOptions[]; -} -declare class SourceCodeBase extends TokenStore { - /** - * Represents parsed source code. - * @param text The source code text. - * @param ast The Program node of the AST representing the code. This AST should be created from the text that BOM was stripped. - */ - constructor(text: string, ast: SourceCode.Program); - /** - * Represents parsed source code. - * @param config The config object. - */ - constructor(config: SourceCode.SourceCodeConfig); - /** - * The parsed AST for the source code. - */ - ast: SourceCode.Program; - /** - * Retrieves an array containing all comments in the source code. - * @returns An array of comment nodes. - */ - getAllComments(): TSESTree.Comment[]; - /** - * Converts a (line, column) pair into a range index. - * @param loc A line/column location - * @returns The range index of the location in the file. - */ - getIndexFromLoc(location: TSESTree.Position): number; - /** - * Gets the entire source text split into an array of lines. - * @returns The source text as an array of lines. - */ - getLines(): string[]; - /** - * Converts a source text index into a (line, column) pair. - * @param index The index of a character in a file - * @returns A {line, column} location object with a 0-indexed column - */ - getLocFromIndex(index: number): TSESTree.Position; - /** - * Gets the deepest node containing a range index. - * @param index Range index of the desired node. - * @returns The node if found or `null` if not found. - */ - getNodeByRangeIndex(index: number): TSESTree.Node | null; - /** - * Gets the source code for the given node. - * @param node The AST node to get the text for. - * @param beforeCount The number of characters before the node to retrieve. - * @param afterCount The number of characters after the node to retrieve. - * @returns The text representing the AST node. - */ - getText(node?: TSESTree.Node | TSESTree.Token, beforeCount?: number, afterCount?: number): string; - /** - * The flag to indicate that the source code has Unicode BOM. - */ - hasBOM: boolean; - /** - * Determines if two nodes or tokens have at least one whitespace character - * between them. Order does not matter. Returns false if the given nodes or - * tokens overlap. - * @since 6.7.0 - * @param first The first node or token to check between. - * @param second The second node or token to check between. - * @returns True if there is a whitespace character between any of the tokens found between the two given nodes or tokens. - */ - isSpaceBetween?(first: TSESTree.Token | TSESTree.Node, second: TSESTree.Token | TSESTree.Node): boolean; - /** - * Determines if two nodes or tokens have at least one whitespace character - * between them. Order does not matter. Returns false if the given nodes or - * tokens overlap. - * For backward compatibility, this method returns true if there are - * `JSXText` tokens that contain whitespace between the two. - * @param first The first node or token to check between. - * @param second The second node or token to check between. - * @returns {boolean} True if there is a whitespace character between - * any of the tokens found between the two given nodes or tokens. - * @deprecated in favor of isSpaceBetween - */ - isSpaceBetweenTokens(first: TSESTree.Token, second: TSESTree.Token): boolean; - /** - * The source code split into lines according to ECMA-262 specification. - * This is done to avoid each rule needing to do so separately. - */ - lines: string[]; - /** - * The indexes in `text` that each line starts - */ - lineStartIndices: number[]; - /** - * The parser services of this source code. - */ - parserServices: ParserServices; - /** - * The scope of this source code. - */ - scopeManager: Scope.ScopeManager | null; - /** - * The original text source code. BOM was stripped from this text. - */ - text: string; - /** - * All of the tokens and comments in the AST. - * - * TODO: rename to 'tokens' - */ - tokensAndComments: TSESTree.Token[]; - /** - * The visitor keys to traverse AST. - */ - visitorKeys: SourceCode.VisitorKeys; - /** - * Split the source code into multiple lines based on the line delimiters. - * @param text Source code as a string. - * @returns Array of source code lines. - */ - static splitLines(text: string): string[]; -} -declare namespace SourceCode { - interface Program extends TSESTree.Program { - comments: TSESTree.Comment[]; - tokens: TSESTree.Token[]; - } - interface SourceCodeConfig { - /** - * The Program node of the AST representing the code. This AST should be created from the text that BOM was stripped. - */ - ast: Program; - /** - * The parser services. - */ - parserServices: ParserServices | null; - /** - * The scope of this source code. - */ - scopeManager: Scope.ScopeManager | null; - /** - * The source code text. - */ - text: string; - /** - * The visitor keys to traverse AST. - */ - visitorKeys: VisitorKeys | null; - } - interface VisitorKeys { - [nodeType: string]: string[]; - } - type FilterPredicate = (token: TSESTree.Token) => boolean; - type GetFilterPredicate = TFilter extends ((token: TSESTree.Token) => token is infer U extends TSESTree.Token) ? U : TDefault; - type GetFilterPredicateFromOptions = TOptions extends { - filter?: FilterPredicate; - } ? GetFilterPredicate : GetFilterPredicate; - type ReturnTypeFromOptions = T extends { - includeComments: true; - } ? GetFilterPredicateFromOptions : GetFilterPredicateFromOptions>; - type CursorWithSkipOptions = number | FilterPredicate | { - /** - * The predicate function to choose tokens. - */ - filter?: FilterPredicate; - /** - * The flag to iterate comments as well. - */ - includeComments?: boolean; - /** - * The count of tokens the cursor skips. - */ - skip?: number; - }; - type CursorWithCountOptions = number | FilterPredicate | { - /** - * The predicate function to choose tokens. - */ - filter?: FilterPredicate; - /** - * The flag to iterate comments as well. - */ - includeComments?: boolean; - /** - * The maximum count of tokens the cursor iterates. - */ - count?: number; - }; -} -declare const SourceCode_base: typeof SourceCodeBase; -declare class SourceCode extends SourceCode_base { -} -export { SourceCode }; -//# sourceMappingURL=SourceCode.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/index.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/index.d.ts deleted file mode 100644 index 2b6338ef..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-eslint/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export * from './AST'; -export * from './CLIEngine'; -export * from './ESLint'; -export * from './Linter'; -export * from './ParserOptions'; -export * from './Rule'; -export * from './RuleTester'; -export * from './Scope'; -export * from './SourceCode'; -//# sourceMappingURL=index.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-estree.d.ts b/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-estree.d.ts deleted file mode 100644 index 3129348e..00000000 --- a/node_modules/@typescript-eslint/utils/_ts3.4/dist/ts-estree.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree, } from '@typescript-eslint/types'; -export { ParserServices } from '@typescript-eslint/typescript-estree/dist/parser-options'; -//# sourceMappingURL=ts-estree.d.ts.map diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts deleted file mode 100644 index 46ee1765..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -interface PatternMatcher { - /** - * Iterate all matched parts in a given string. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-execall} - */ - execAll(str: string): IterableIterator; - /** - * Check whether this pattern matches a given string or not. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-test} - */ - test(str: string): boolean; - /** - * Replace all matched parts by a given replacer. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#matcher-symbol-replace} - * @example - * const { PatternMatcher } = require("eslint-utils") - * const matcher = new PatternMatcher(/\\p{Script=Greek}/g) - * - * module.exports = { - * meta: {}, - * create(context) { - * return { - * "Literal[regex]"(node) { - * const replacedPattern = node.regex.pattern.replace( - * matcher, - * "[\\u0370-\\u0373\\u0375-\\u0377\\u037A-\\u037D\\u037F\\u0384\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03E1\\u03F0-\\u03FF\\u1D26-\\u1D2A\\u1D5D-\\u1D61\\u1D66-\\u1D6A\\u1DBF\\u1F00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FC4\\u1FC6-\\u1FD3\\u1FD6-\\u1FDB\\u1FDD-\\u1FEF\\u1FF2-\\u1FF4\\u1FF6-\\u1FFE\\u2126\\uAB65]|\\uD800[\\uDD40-\\uDD8E\\uDDA0]|\\uD834[\\uDE00-\\uDE45]" - * ) - * }, - * } - * }, - * } - */ - [Symbol.replace](str: string, replacer: string | ((...strs: string[]) => string)): string; -} -/** - * The class to find a pattern in strings as handling escape sequences. - * It ignores the found pattern if it's escaped with `\`. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#patternmatcher-class} - */ -declare const PatternMatcher: new (pattern: RegExp, options?: { - escaped?: boolean; -}) => PatternMatcher; -export { PatternMatcher }; -//# sourceMappingURL=PatternMatcher.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map deleted file mode 100644 index 47134b33..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PatternMatcher.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/PatternMatcher.ts"],"names":[],"mappings":"AAEA,UAAU,cAAc;IACtB;;;;OAIG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC;IAExD;;;;OAIG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAE3B;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,CAAC,MAAM,CAAC,OAAO,CAAC,CACd,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,GACjD,MAAM,CAAC;CACX;AAED;;;;;GAKG;AACH,QAAA,MAAM,cAAc,gBACJ,MAAM,YAAY;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,KAAG,cACzD,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js deleted file mode 100644 index 1e2e87c8..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PatternMatcher = void 0; -const eslintUtils = __importStar(require("@eslint-community/eslint-utils")); -/** - * The class to find a pattern in strings as handling escape sequences. - * It ignores the found pattern if it's escaped with `\`. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#patternmatcher-class} - */ -const PatternMatcher = eslintUtils.PatternMatcher; -exports.PatternMatcher = PatternMatcher; -//# sourceMappingURL=PatternMatcher.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map deleted file mode 100644 index ffd368ee..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/PatternMatcher.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PatternMatcher.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/PatternMatcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AA6C9D;;;;;GAKG;AACH,MAAM,cAAc,GAAG,WAAW,CAAC,cAElC,CAAC;AAEO,wCAAc"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts deleted file mode 100644 index ab15220f..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +++ /dev/null @@ -1,76 +0,0 @@ -import type * as TSESLint from '../../ts-eslint'; -import type { TSESTree } from '../../ts-estree'; -declare const ReferenceTrackerREAD: unique symbol; -declare const ReferenceTrackerCALL: unique symbol; -declare const ReferenceTrackerCONSTRUCT: unique symbol; -declare const ReferenceTrackerESM: unique symbol; -interface ReferenceTracker { - /** - * Iterate the references that the given `traceMap` determined. - * This method starts to search from global variables. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iterateglobalreferences} - */ - iterateGlobalReferences(traceMap: ReferenceTracker.TraceMap): IterableIterator>; - /** - * Iterate the references that the given `traceMap` determined. - * This method starts to search from `require()` expression. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iteratecjsreferences} - */ - iterateCjsReferences(traceMap: ReferenceTracker.TraceMap): IterableIterator>; - /** - * Iterate the references that the given `traceMap` determined. - * This method starts to search from `import`/`export` declarations. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#tracker-iterateesmreferences} - */ - iterateEsmReferences(traceMap: ReferenceTracker.TraceMap): IterableIterator>; -} -interface ReferenceTrackerStatic { - new (globalScope: TSESLint.Scope.Scope, options?: { - /** - * The mode which determines how the `tracker.iterateEsmReferences()` method scans CommonJS modules. - * If this is `"strict"`, the method binds CommonJS modules to the default export. Otherwise, the method binds - * CommonJS modules to both the default export and named exports. Optional. Default is `"strict"`. - */ - mode?: 'strict' | 'legacy'; - /** - * The name list of Global Object. Optional. Default is `["global", "globalThis", "self", "window"]`. - */ - globalObjectNames?: readonly string[]; - }): ReferenceTracker; - readonly READ: typeof ReferenceTrackerREAD; - readonly CALL: typeof ReferenceTrackerCALL; - readonly CONSTRUCT: typeof ReferenceTrackerCONSTRUCT; - readonly ESM: typeof ReferenceTrackerESM; -} -declare namespace ReferenceTracker { - type READ = ReferenceTrackerStatic['READ']; - type CALL = ReferenceTrackerStatic['CALL']; - type CONSTRUCT = ReferenceTrackerStatic['CONSTRUCT']; - type ESM = ReferenceTrackerStatic['ESM']; - type ReferenceType = READ | CALL | CONSTRUCT; - type TraceMap = Record>; - interface TraceMapElement { - [ReferenceTrackerREAD]?: T; - [ReferenceTrackerCALL]?: T; - [ReferenceTrackerCONSTRUCT]?: T; - [ReferenceTrackerESM]?: true; - [key: string]: TraceMapElement; - } - interface FoundReference { - node: TSESTree.Node; - path: readonly string[]; - type: ReferenceType; - info: T; - } -} -/** - * The tracker for references. This provides reference tracking for global variables, CommonJS modules, and ES modules. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class} - */ -declare const ReferenceTracker: ReferenceTrackerStatic; -export { ReferenceTracker }; -//# sourceMappingURL=ReferenceTracker.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map deleted file mode 100644 index c0d2f409..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ReferenceTracker.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/ReferenceTracker.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,QAAA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AC;IACzB,KAAY,IAAI,GAAG,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAClD,KAAY,IAAI,GAAG,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAClD,KAAY,SAAS,GAAG,sBAAsB,CAAC,WAAW,CAAC,CAAC;IAC5D,KAAY,GAAG,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAC;IAChD,KAAY,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IAEpD,KAAY,QAAQ,CAAC,CAAC,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,UAAiB,eAAe,CAAC,CAAC;QAChC,CAAC,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC;QAC3B,CAAC,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC;QAC3B,CAAC,yBAAyB,CAAC,CAAC,EAAE,CAAC,CAAC;QAChC,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC;QAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;KACnC;IAED,UAAiB,cAAc,CAAC,CAAC,GAAG,GAAG;QACrC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;QACpB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;QACxB,IAAI,EAAE,aAAa,CAAC;QACpB,IAAI,EAAE,CAAC,CAAC;KACT;CACF;AAED;;;;GAIG;AACH,QAAA,MAAM,gBAAgB,wBAAyD,CAAC;AAEhF,OAAO,EAAE,gBAAgB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js deleted file mode 100644 index 3123c64d..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ReferenceTracker = void 0; -/* eslint-disable @typescript-eslint/no-namespace */ -const eslintUtils = __importStar(require("@eslint-community/eslint-utils")); -const ReferenceTrackerREAD = eslintUtils.ReferenceTracker.READ; -const ReferenceTrackerCALL = eslintUtils.ReferenceTracker.CALL; -const ReferenceTrackerCONSTRUCT = eslintUtils.ReferenceTracker.CONSTRUCT; -const ReferenceTrackerESM = eslintUtils.ReferenceTracker.ESM; -/** - * The tracker for references. This provides reference tracking for global variables, CommonJS modules, and ES modules. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class} - */ -const ReferenceTracker = eslintUtils.ReferenceTracker; -exports.ReferenceTracker = ReferenceTracker; -//# sourceMappingURL=ReferenceTracker.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map deleted file mode 100644 index 77ed5341..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/ReferenceTracker.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ReferenceTracker.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/ReferenceTracker.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,4EAA8D;AAK9D,MAAM,oBAAoB,GAAkB,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC;AAC9E,MAAM,oBAAoB,GAAkB,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC;AAC9E,MAAM,yBAAyB,GAC7B,WAAW,CAAC,gBAAgB,CAAC,SAAS,CAAC;AACzC,MAAM,mBAAmB,GAAkB,WAAW,CAAC,gBAAgB,CAAC,GAAG,CAAC;AAgF5E;;;;GAIG;AACH,MAAM,gBAAgB,GAAG,WAAW,CAAC,gBAA0C,CAAC;AAEvE,4CAAgB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts deleted file mode 100644 index 6062261d..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts +++ /dev/null @@ -1,76 +0,0 @@ -import type * as TSESLint from '../../ts-eslint'; -import type { TSESTree } from '../../ts-estree'; -/** - * Get the proper location of a given function node to report. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionheadlocation} - */ -declare const getFunctionHeadLocation: (node: TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.ArrowFunctionExpression, sourceCode: TSESLint.SourceCode) => TSESTree.SourceLocation; -/** - * Get the name and kind of a given function node. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionnamewithkind} - */ -declare const getFunctionNameWithKind: (node: TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.ArrowFunctionExpression, sourceCode?: TSESLint.SourceCode) => string; -/** - * Get the property name of a given property node. - * If the node is a computed property, this tries to compute the property name by the getStringIfConstant function. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getpropertyname} - * @returns The property name of the node. If the property name is not constant then it returns `null`. - */ -declare const getPropertyName: (node: TSESTree.MemberExpression | TSESTree.Property | TSESTree.MethodDefinition | TSESTree.PropertyDefinition, initialScope?: TSESLint.Scope.Scope) => string | null; -/** - * Get the value of a given node if it can decide the value statically. - * If the 2nd parameter `initialScope` was given, this function tries to resolve identifier references which are in the - * given node as much as possible. In the resolving way, it does on the assumption that built-in global objects have - * not been modified. - * For example, it considers `Symbol.iterator`, ` String.raw``hello`` `, and `Object.freeze({a: 1}).a` as static. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue} - * @returns The `{ value: any }` shaped object. The `value` property is the static value. If it couldn't compute the - * static value of the node, it returns `null`. - */ -declare const getStaticValue: (node: TSESTree.Node, initialScope?: TSESLint.Scope.Scope) => { - value: unknown; -} | null; -/** - * Get the string value of a given node. - * This function is a tiny wrapper of the getStaticValue function. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstringifconstant} - */ -declare const getStringIfConstant: (node: TSESTree.Node, initialScope?: TSESLint.Scope.Scope) => string | null; -/** - * Check whether a given node has any side effect or not. - * The side effect means that it may modify a certain variable or object member. This function considers the node which - * contains the following types as the node which has side effects: - * - `AssignmentExpression` - * - `AwaitExpression` - * - `CallExpression` - * - `ImportExpression` - * - `NewExpression` - * - `UnaryExpression([operator = "delete"])` - * - `UpdateExpression` - * - `YieldExpression` - * - When `options.considerGetters` is `true`: - * - `MemberExpression` - * - When `options.considerImplicitTypeConversion` is `true`: - * - `BinaryExpression([operator = "==" | "!=" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "|" | "^" | "&" | "in"])` - * - `MemberExpression([computed = true])` - * - `MethodDefinition([computed = true])` - * - `Property([computed = true])` - * - `UnaryExpression([operator = "-" | "+" | "!" | "~"])` - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#hassideeffect} - */ -declare const hasSideEffect: (node: TSESTree.Node, sourceCode: TSESLint.SourceCode, options?: { - considerGetters?: boolean; - considerImplicitTypeConversion?: boolean; -}) => boolean; -declare const isParenthesized: { - (node: TSESTree.Node, sourceCode: TSESLint.SourceCode): boolean; - (times: number, node: TSESTree.Node, sourceCode: TSESLint.SourceCode): boolean; -}; -export { getFunctionHeadLocation, getFunctionNameWithKind, getPropertyName, getStaticValue, getStringIfConstant, hasSideEffect, isParenthesized, }; -//# sourceMappingURL=astUtilities.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map deleted file mode 100644 index a8e8aaad..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"astUtilities.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/astUtilities.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;GAIG;AACH,QAAA,MAAM,uBAAuB,SAEvB,SAAS,mBAAmB,GAC5B,SAAS,kBAAkB,GAC3B,SAAS,uBAAuB,cACxB,SAAS,UAAU,KAC5B,SAAS,cAAc,CAAC;AAE7B;;;;GAIG;AACH,QAAA,MAAM,uBAAuB,SAEvB,SAAS,mBAAmB,GAC5B,SAAS,kBAAkB,GAC3B,SAAS,uBAAuB,eACvB,SAAS,UAAU,KAC7B,MAAM,CAAC;AAEZ;;;;;;GAMG;AACH,QAAA,MAAM,eAAe,SAEf,SAAS,gBAAgB,GACzB,SAAS,QAAQ,GACjB,SAAS,gBAAgB,GACzB,SAAS,kBAAkB,iBAChB,SAAS,KAAK,CAAC,KAAK,KAChC,MAAM,GAAG,IAAI,CAAC;AAEnB;;;;;;;;;;GAUG;AACH,QAAA,MAAM,cAAc,SACZ,SAAS,IAAI,iBACJ,SAAS,KAAK,CAAC,KAAK,KAChC;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CAAC;AAE/B;;;;;GAKG;AACH,QAAA,MAAM,mBAAmB,SACjB,SAAS,IAAI,iBACJ,SAAS,KAAK,CAAC,KAAK,KAChC,MAAM,GAAG,IAAI,CAAC;AAEnB;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,QAAA,MAAM,aAAa,SACX,SAAS,IAAI,cACP,SAAS,UAAU,YACrB;IACR,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,8BAA8B,CAAC,EAAE,OAAO,CAAC;CAC1C,KACE,OAAO,CAAC;AAEb,QAAA,MAAM,eAAe;WAUZ,SAAS,IAAI,cAAc,SAAS,UAAU,GAAG,OAAO;YAEtD,MAAM,QACP,SAAS,IAAI,cACP,SAAS,UAAU,GAC9B,OAAO;CACX,CAAC;AAEF,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,eAAe,GAChB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js deleted file mode 100644 index d7487c14..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isParenthesized = exports.hasSideEffect = exports.getStringIfConstant = exports.getStaticValue = exports.getPropertyName = exports.getFunctionNameWithKind = exports.getFunctionHeadLocation = void 0; -const eslintUtils = __importStar(require("@eslint-community/eslint-utils")); -/** - * Get the proper location of a given function node to report. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionheadlocation} - */ -const getFunctionHeadLocation = eslintUtils.getFunctionHeadLocation; -exports.getFunctionHeadLocation = getFunctionHeadLocation; -/** - * Get the name and kind of a given function node. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionnamewithkind} - */ -const getFunctionNameWithKind = eslintUtils.getFunctionNameWithKind; -exports.getFunctionNameWithKind = getFunctionNameWithKind; -/** - * Get the property name of a given property node. - * If the node is a computed property, this tries to compute the property name by the getStringIfConstant function. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getpropertyname} - * @returns The property name of the node. If the property name is not constant then it returns `null`. - */ -const getPropertyName = eslintUtils.getPropertyName; -exports.getPropertyName = getPropertyName; -/** - * Get the value of a given node if it can decide the value statically. - * If the 2nd parameter `initialScope` was given, this function tries to resolve identifier references which are in the - * given node as much as possible. In the resolving way, it does on the assumption that built-in global objects have - * not been modified. - * For example, it considers `Symbol.iterator`, ` String.raw``hello`` `, and `Object.freeze({a: 1}).a` as static. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstaticvalue} - * @returns The `{ value: any }` shaped object. The `value` property is the static value. If it couldn't compute the - * static value of the node, it returns `null`. - */ -const getStaticValue = eslintUtils.getStaticValue; -exports.getStaticValue = getStaticValue; -/** - * Get the string value of a given node. - * This function is a tiny wrapper of the getStaticValue function. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstringifconstant} - */ -const getStringIfConstant = eslintUtils.getStringIfConstant; -exports.getStringIfConstant = getStringIfConstant; -/** - * Check whether a given node has any side effect or not. - * The side effect means that it may modify a certain variable or object member. This function considers the node which - * contains the following types as the node which has side effects: - * - `AssignmentExpression` - * - `AwaitExpression` - * - `CallExpression` - * - `ImportExpression` - * - `NewExpression` - * - `UnaryExpression([operator = "delete"])` - * - `UpdateExpression` - * - `YieldExpression` - * - When `options.considerGetters` is `true`: - * - `MemberExpression` - * - When `options.considerImplicitTypeConversion` is `true`: - * - `BinaryExpression([operator = "==" | "!=" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "|" | "^" | "&" | "in"])` - * - `MemberExpression([computed = true])` - * - `MethodDefinition([computed = true])` - * - `Property([computed = true])` - * - `UnaryExpression([operator = "-" | "+" | "!" | "~"])` - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#hassideeffect} - */ -const hasSideEffect = eslintUtils.hasSideEffect; -exports.hasSideEffect = hasSideEffect; -const isParenthesized = eslintUtils.isParenthesized; -exports.isParenthesized = isParenthesized; -//# sourceMappingURL=astUtilities.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map deleted file mode 100644 index b73d69b4..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/astUtilities.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"astUtilities.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/astUtilities.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AAK9D;;;;GAIG;AACH,MAAM,uBAAuB,GAAG,WAAW,CAAC,uBAMhB,CAAC;AA6G3B,0DAAuB;AA3GzB;;;;GAIG;AACH,MAAM,uBAAuB,GAAG,WAAW,CAAC,uBAMjC,CAAC;AAiGV,0DAAuB;AA/FzB;;;;;;GAMG;AACH,MAAM,eAAe,GAAG,WAAW,CAAC,eAOlB,CAAC;AAkFjB,0CAAe;AAhFjB;;;;;;;;;;GAUG;AACH,MAAM,cAAc,GAAG,WAAW,CAAC,cAGL,CAAC;AAmE7B,wCAAc;AAjEhB;;;;;GAKG;AACH,MAAM,mBAAmB,GAAG,WAAW,CAAC,mBAGtB,CAAC;AAyDjB,kDAAmB;AAvDrB;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,aAAa,GAAG,WAAW,CAAC,aAOtB,CAAC;AA0BX,sCAAa;AAxBf,MAAM,eAAe,GAAG,WAAW,CAAC,eAgBnC,CAAC;AASA,0CAAe"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts deleted file mode 100644 index 3ec74aa2..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from './astUtilities'; -export * from './PatternMatcher'; -export * from './predicates'; -export * from './ReferenceTracker'; -export * from './scopeAnalysis'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts.map deleted file mode 100644 index e6a66720..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js deleted file mode 100644 index 6e0fbf72..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./astUtilities"), exports); -__exportStar(require("./PatternMatcher"), exports); -__exportStar(require("./predicates"), exports); -__exportStar(require("./ReferenceTracker"), exports); -__exportStar(require("./scopeAnalysis"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js.map b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js.map deleted file mode 100644 index c1f12696..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,mDAAiC;AACjC,+CAA6B;AAC7B,qDAAmC;AACnC,kDAAgC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts deleted file mode 100644 index a0aebd1e..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type { TSESTree } from '../../ts-estree'; -type IsSpecificTokenFunction = (token: TSESTree.Token) => token is SpecificToken; -type IsNotSpecificTokenFunction = (token: TSESTree.Token) => token is Exclude; -type PunctuatorTokenWithValue = TSESTree.PunctuatorToken & { - value: Value; -}; -type IsPunctuatorTokenWithValueFunction = IsSpecificTokenFunction>; -type IsNotPunctuatorTokenWithValueFunction = IsNotSpecificTokenFunction>; -declare const isArrowToken: IsPunctuatorTokenWithValueFunction<"=>">; -declare const isNotArrowToken: IsNotPunctuatorTokenWithValueFunction<"=>">; -declare const isClosingBraceToken: IsPunctuatorTokenWithValueFunction<"}">; -declare const isNotClosingBraceToken: IsNotPunctuatorTokenWithValueFunction<"}">; -declare const isClosingBracketToken: IsPunctuatorTokenWithValueFunction<"]">; -declare const isNotClosingBracketToken: IsNotPunctuatorTokenWithValueFunction<"]">; -declare const isClosingParenToken: IsPunctuatorTokenWithValueFunction<")">; -declare const isNotClosingParenToken: IsNotPunctuatorTokenWithValueFunction<")">; -declare const isColonToken: IsPunctuatorTokenWithValueFunction<":">; -declare const isNotColonToken: IsNotPunctuatorTokenWithValueFunction<":">; -declare const isCommaToken: IsPunctuatorTokenWithValueFunction<",">; -declare const isNotCommaToken: IsNotPunctuatorTokenWithValueFunction<",">; -declare const isCommentToken: IsSpecificTokenFunction; -declare const isNotCommentToken: IsNotSpecificTokenFunction; -declare const isOpeningBraceToken: IsPunctuatorTokenWithValueFunction<"{">; -declare const isNotOpeningBraceToken: IsNotPunctuatorTokenWithValueFunction<"{">; -declare const isOpeningBracketToken: IsPunctuatorTokenWithValueFunction<"[">; -declare const isNotOpeningBracketToken: IsNotPunctuatorTokenWithValueFunction<"[">; -declare const isOpeningParenToken: IsPunctuatorTokenWithValueFunction<"(">; -declare const isNotOpeningParenToken: IsNotPunctuatorTokenWithValueFunction<"(">; -declare const isSemicolonToken: IsPunctuatorTokenWithValueFunction<";">; -declare const isNotSemicolonToken: IsNotPunctuatorTokenWithValueFunction<";">; -export { isArrowToken, isClosingBraceToken, isClosingBracketToken, isClosingParenToken, isColonToken, isCommaToken, isCommentToken, isNotArrowToken, isNotClosingBraceToken, isNotClosingBracketToken, isNotClosingParenToken, isNotColonToken, isNotCommaToken, isNotCommentToken, isNotOpeningBraceToken, isNotOpeningBracketToken, isNotOpeningParenToken, isNotSemicolonToken, isOpeningBraceToken, isOpeningBracketToken, isOpeningParenToken, isSemicolonToken, }; -//# sourceMappingURL=predicates.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map deleted file mode 100644 index f1fc1bbf..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/predicates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,KAAK,uBAAuB,CAAC,aAAa,SAAS,QAAQ,CAAC,KAAK,IAAI,CACnE,KAAK,EAAE,QAAQ,CAAC,KAAK,KAClB,KAAK,IAAI,aAAa,CAAC;AAE5B,KAAK,0BAA0B,CAAC,aA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C7E,QAAA,MAAM,sBAAsB,4CACsD,CAAC;AAEnF,QAAA,MAAM,gBAAgB,yCACmD,CAAC;AAC1E,QAAA,MAAM,mBAAmB,4CACsD,CAAC;AAEhF,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,GACjB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js deleted file mode 100644 index d5bdf567..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isSemicolonToken = exports.isOpeningParenToken = exports.isOpeningBracketToken = exports.isOpeningBraceToken = exports.isNotSemicolonToken = exports.isNotOpeningParenToken = exports.isNotOpeningBracketToken = exports.isNotOpeningBraceToken = exports.isNotCommentToken = exports.isNotCommaToken = exports.isNotColonToken = exports.isNotClosingParenToken = exports.isNotClosingBracketToken = exports.isNotClosingBraceToken = exports.isNotArrowToken = exports.isCommentToken = exports.isCommaToken = exports.isColonToken = exports.isClosingParenToken = exports.isClosingBracketToken = exports.isClosingBraceToken = exports.isArrowToken = void 0; -const eslintUtils = __importStar(require("@eslint-community/eslint-utils")); -const isArrowToken = eslintUtils.isArrowToken; -exports.isArrowToken = isArrowToken; -const isNotArrowToken = eslintUtils.isNotArrowToken; -exports.isNotArrowToken = isNotArrowToken; -const isClosingBraceToken = eslintUtils.isClosingBraceToken; -exports.isClosingBraceToken = isClosingBraceToken; -const isNotClosingBraceToken = eslintUtils.isNotClosingBraceToken; -exports.isNotClosingBraceToken = isNotClosingBraceToken; -const isClosingBracketToken = eslintUtils.isClosingBracketToken; -exports.isClosingBracketToken = isClosingBracketToken; -const isNotClosingBracketToken = eslintUtils.isNotClosingBracketToken; -exports.isNotClosingBracketToken = isNotClosingBracketToken; -const isClosingParenToken = eslintUtils.isClosingParenToken; -exports.isClosingParenToken = isClosingParenToken; -const isNotClosingParenToken = eslintUtils.isNotClosingParenToken; -exports.isNotClosingParenToken = isNotClosingParenToken; -const isColonToken = eslintUtils.isColonToken; -exports.isColonToken = isColonToken; -const isNotColonToken = eslintUtils.isNotColonToken; -exports.isNotColonToken = isNotColonToken; -const isCommaToken = eslintUtils.isCommaToken; -exports.isCommaToken = isCommaToken; -const isNotCommaToken = eslintUtils.isNotCommaToken; -exports.isNotCommaToken = isNotCommaToken; -const isCommentToken = eslintUtils.isCommentToken; -exports.isCommentToken = isCommentToken; -const isNotCommentToken = eslintUtils.isNotCommentToken; -exports.isNotCommentToken = isNotCommentToken; -const isOpeningBraceToken = eslintUtils.isOpeningBraceToken; -exports.isOpeningBraceToken = isOpeningBraceToken; -const isNotOpeningBraceToken = eslintUtils.isNotOpeningBraceToken; -exports.isNotOpeningBraceToken = isNotOpeningBraceToken; -const isOpeningBracketToken = eslintUtils.isOpeningBracketToken; -exports.isOpeningBracketToken = isOpeningBracketToken; -const isNotOpeningBracketToken = eslintUtils.isNotOpeningBracketToken; -exports.isNotOpeningBracketToken = isNotOpeningBracketToken; -const isOpeningParenToken = eslintUtils.isOpeningParenToken; -exports.isOpeningParenToken = isOpeningParenToken; -const isNotOpeningParenToken = eslintUtils.isNotOpeningParenToken; -exports.isNotOpeningParenToken = isNotOpeningParenToken; -const isSemicolonToken = eslintUtils.isSemicolonToken; -exports.isSemicolonToken = isSemicolonToken; -const isNotSemicolonToken = eslintUtils.isNotSemicolonToken; -exports.isNotSemicolonToken = isNotSemicolonToken; -//# sourceMappingURL=predicates.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map deleted file mode 100644 index 9edca10c..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/predicates.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/predicates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AAmB9D,MAAM,YAAY,GAChB,WAAW,CAAC,YAAwD,CAAC;AAuDrE,oCAAY;AAtDd,MAAM,eAAe,GACnB,WAAW,CAAC,eAA8D,CAAC;AA4D3E,0CAAe;AA1DjB,MAAM,mBAAmB,GACvB,WAAW,CAAC,mBAA8D,CAAC;AAmD3E,kDAAmB;AAlDrB,MAAM,sBAAsB,GAC1B,WAAW,CAAC,sBAAoE,CAAC;AAwDjF,wDAAsB;AAtDxB,MAAM,qBAAqB,GACzB,WAAW,CAAC,qBAAgE,C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newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts deleted file mode 100644 index 480e9b5a..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type * as TSESLint from '../../ts-eslint'; -import type { TSESTree } from '../../ts-estree'; -/** - * Get the variable of a given name. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#findvariable} - */ -declare const findVariable: (initialScope: TSESLint.Scope.Scope, nameOrNode: string | TSESTree.Identifier) => TSESLint.Scope.Variable | null; -/** - * Get the innermost scope which contains a given node. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#getinnermostscope} - * @returns The innermost scope which contains the given node. - * If such scope doesn't exist then it returns the 1st argument `initialScope`. - */ -declare const getInnermostScope: (initialScope: TSESLint.Scope.Scope, node: TSESTree.Node) => TSESLint.Scope.Scope; -export { findVariable, getInnermostScope }; -//# sourceMappingURL=scopeAnalysis.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map deleted file mode 100644 index 8d66e7c5..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scopeAnalysis.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/scopeAnalysis.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;GAIG;AACH,QAAA,MAAM,YAAY,iBACF,SAAS,KAAK,CAAC,KAAK,cACtB,MAAM,GAAG,SAAS,UAAU,KACrC,SAAS,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;AAEpC;;;;;;GAMG;AACH,QAAA,MAAM,iBAAiB,iBACP,SAAS,KAAK,CAAC,KAAK,QAC5B,SAAS,IAAI,KAChB,SAAS,KAAK,CAAC,KAAK,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js deleted file mode 100644 index 2cb15275..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getInnermostScope = exports.findVariable = void 0; -const eslintUtils = __importStar(require("@eslint-community/eslint-utils")); -/** - * Get the variable of a given name. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#findvariable} - */ -const findVariable = eslintUtils.findVariable; -exports.findVariable = findVariable; -/** - * Get the innermost scope which contains a given node. - * - * @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#getinnermostscope} - * @returns The innermost scope which contains the given node. - * If such scope doesn't exist then it returns the 1st argument `initialScope`. - */ -const getInnermostScope = eslintUtils.getInnermostScope; -exports.getInnermostScope = getInnermostScope; -//# sourceMappingURL=scopeAnalysis.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map b/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map deleted file mode 100644 index 800ecf86..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/eslint-utils/scopeAnalysis.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scopeAnalysis.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/scopeAnalysis.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AAK9D;;;;GAIG;AACH,MAAM,YAAY,GAAG,WAAW,CAAC,YAGE,CAAC;AAc3B,oCAAY;AAZrB;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,WAAW,CAAC,iBAGb,CAAC;AAEH,8CAAiB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts b/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts deleted file mode 100644 index a4d8fabd..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts +++ /dev/null @@ -1,1207 +0,0 @@ -import type { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree } from '../ts-estree'; -export declare const isNodeOfType: (nodeType: NodeType) => (node: TSESTree.Node | null | undefined) => node is Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract; -export declare const isNodeOfTypes: (nodeTypes: NodeTypes) => (node: TSESTree.Node | null | undefined) => node is Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract; -export declare const isNodeOfTypeWithConditions: | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract, Conditions extends Partial>(nodeType: NodeType, conditions: Conditions) => (node: TSESTree.Node | null | undefined) => node is ExtractedNode & Conditions; -export declare const isTokenOfTypeWithConditions: | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract, Conditions extends Partial>(tokenType: TokenType, conditions: Conditions) => (token: TSESTree.Token | null | undefined) => token is ExtractedToken & Conditions; -export declare const isNotTokenOfTypeWithConditions: | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract | Extract, Conditions extends Partial>(tokenType: TokenType, conditions: Conditions) => (token: TSESTree.Token | null | undefined) => token is Exclude | Exclude | Exclude | Exclude | Exclude | Exclude | Exclude | Exclude | Exclude | Exclude | Exclude | Exclude | Exclude; -//# sourceMappingURL=helpers.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map deleted file mode 100644 index 0e934dd3..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/ast-utils/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAO9E,eAAO,MAAM,YAAY,kEAGf,SAAS,IAAI,GAAG,IAAI,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qGAQ/B,SAAS,IAAI,GAAG,IAAI,GAAG,SAAS,uCASvC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;6DAQ/B,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,yCAWzC,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;yGAShC,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,m0BAGkB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js b/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js deleted file mode 100644 index d5c3760a..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isNotTokenOfTypeWithConditions = exports.isTokenOfTypeWithConditions = exports.isNodeOfTypeWithConditions = exports.isNodeOfTypes = exports.isNodeOfType = void 0; -const isNodeOfType = (nodeType) => (node) => (node === null || node === void 0 ? void 0 : node.type) === nodeType; -exports.isNodeOfType = isNodeOfType; -const isNodeOfTypes = (nodeTypes) => (node) => !!node && nodeTypes.includes(node.type); -exports.isNodeOfTypes = isNodeOfTypes; -const isNodeOfTypeWithConditions = (nodeType, conditions) => { - const entries = Object.entries(conditions); - return (node) => (node === null || node === void 0 ? void 0 : node.type) === nodeType && - entries.every(([key, value]) => node[key] === value); -}; -exports.isNodeOfTypeWithConditions = isNodeOfTypeWithConditions; -const isTokenOfTypeWithConditions = (tokenType, conditions) => { - const entries = Object.entries(conditions); - return (token) => (token === null || token === void 0 ? void 0 : token.type) === tokenType && - entries.every(([key, value]) => token[key] === value); -}; -exports.isTokenOfTypeWithConditions = isTokenOfTypeWithConditions; -const isNotTokenOfTypeWithConditions = (tokenType, conditions) => (token) => !(0, exports.isTokenOfTypeWithConditions)(tokenType, conditions)(token); -exports.isNotTokenOfTypeWithConditions = isNotTokenOfTypeWithConditions; -//# sourceMappingURL=helpers.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js.map b/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js.map deleted file mode 100644 index c2ec80b9..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/ast-utils/helpers.ts"],"names":[],"mappings":";;;AAOO,MAAM,YAAY,GACvB,CAAkC,QAAkB,EAAE,EAAE,CACxD,CACE,IAAsC,EACc,EAAE,CACtD,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,MAAK,QAAQ,CAAC;AALf,QAAA,YAAY,gBAKG;AAErB,MAAM,aAAa,GACxB,CAA8C,SAAoB,EAAE,EAAE,CACtE,CACE,IAAsC,EACuB,EAAE,CAC/D,CAAC,CAAC,IAAI,IAAI,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAL/B,QAAA,aAAa,iBAKkB;AAErC,MAAM,0BAA0B,GAAG,CAKxC,QAAkB,EAClB,UAAsB,EAGiB,EAAE;IACzC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAiC,CAAC;IAE3E,OAAO,CACL,IAAsC,EACF,EAAE,CACtC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,MAAK,QAAQ;QACvB,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAA0B,CAAC,KAAK,KAAK,CAAC,CAAC;AAChF,CAAC,CAAC;AAjBW,QAAA,0BAA0B,8BAiBrC;AAEK,MAAM,2BAA2B,GAAG,CAKzC,SAAoB,EACpB,UAAsB,EAGmB,EAAE;IAC3C,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAkC,CAAC;IAE5E,OAAO,CACL,KAAwC,EACF,EAAE,CACxC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,MAAK,SAAS;QACzB,OAAO,CAAC,KAAK,CACX,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,GAA2B,CAAC,KAAK,KAAK,CAC/D,CAAC;AACN,CAAC,CAAC;AAnBW,QAAA,2BAA2B,+BAmBtC;AAEK,MAAM,8BAA8B,GACzC,CAKE,SAAoB,EACpB,UAAsB,EAG4C,EAAE,CACtE,CAAC,KAAK,EAAiE,EAAE,CACvE,CAAC,IAAA,mCAA2B,EAAC,SAAS,EAAE,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC;AAZlD,QAAA,8BAA8B,kCAYoB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts b/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts deleted file mode 100644 index 714b9952..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from './eslint-utils'; -export * from './helpers'; -export * from './misc'; -export * from './predicates'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts.map deleted file mode 100644 index c6f5e7f6..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ast-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js b/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js deleted file mode 100644 index 6c5b6600..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./eslint-utils"), exports); -__exportStar(require("./helpers"), exports); -__exportStar(require("./misc"), exports); -__exportStar(require("./predicates"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js.map b/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js.map deleted file mode 100644 index f373ac53..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ast-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,4CAA0B;AAC1B,yCAAuB;AACvB,+CAA6B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts b/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts deleted file mode 100644 index cbbd04bc..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { TSESTree } from '../ts-estree'; -declare const LINEBREAK_MATCHER: RegExp; -/** - * Determines whether two adjacent tokens are on the same line - */ -declare function isTokenOnSameLine(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token): boolean; -export { isTokenOnSameLine, LINEBREAK_MATCHER }; -//# sourceMappingURL=misc.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts.map deleted file mode 100644 index 071c0afe..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../src/ast-utils/misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,QAAA,MAAM,iBAAiB,QAA4B,CAAC;AAEpD;;GAEG;AACH,iBAAS,iBAAiB,CACxB,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,EACpC,KAAK,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,GACpC,OAAO,CAET;AAED,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js b/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js deleted file mode 100644 index ea03c98e..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LINEBREAK_MATCHER = exports.isTokenOnSameLine = void 0; -const LINEBREAK_MATCHER = /\r\n|[\r\n\u2028\u2029]/; -exports.LINEBREAK_MATCHER = LINEBREAK_MATCHER; -/** - * Determines whether two adjacent tokens are on the same line - */ -function isTokenOnSameLine(left, right) { - return left.loc.end.line === right.loc.start.line; -} -exports.isTokenOnSameLine = isTokenOnSameLine; -//# sourceMappingURL=misc.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js.map b/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js.map deleted file mode 100644 index 2e6ef313..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/misc.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/ast-utils/misc.ts"],"names":[],"mappings":";;;AAEA,MAAM,iBAAiB,GAAG,yBAAyB,CAAC;AAYxB,8CAAiB;AAV7C;;GAEG;AACH,SAAS,iBAAiB,CACxB,IAAoC,EACpC,KAAqC;IAErC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,KAAK,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;AACpD,CAAC;AAEQ,8CAAiB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts b/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts deleted file mode 100644 index 807204f9..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -import type { TSESTree } from '../ts-estree'; -declare const isOptionalChainPunctuator: (token: TSESTree.Token | null | undefined) => token is TSESTree.PunctuatorToken & { - value: "?."; -}; -declare const isNotOptionalChainPunctuator: (token: TSESTree.Token | null | undefined) => token is TSESTree.BooleanToken | TSESTree.BlockComment | TSESTree.LineComment | TSESTree.IdentifierToken | TSESTree.JSXIdentifierToken | TSESTree.JSXTextToken | TSESTree.KeywordToken | TSESTree.NullToken | TSESTree.NumericToken | TSESTree.PunctuatorToken | TSESTree.RegularExpressionToken | TSESTree.StringToken | TSESTree.TemplateToken; -declare const isNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is TSESTree.PunctuatorToken & { - value: "!"; -}; -declare const isNotNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is TSESTree.BooleanToken | TSESTree.BlockComment | TSESTree.LineComment | TSESTree.IdentifierToken | TSESTree.JSXIdentifierToken | TSESTree.JSXTextToken | TSESTree.KeywordToken | TSESTree.NullToken | TSESTree.NumericToken | TSESTree.PunctuatorToken | TSESTree.RegularExpressionToken | TSESTree.StringToken | TSESTree.TemplateToken; -/** - * Returns true if and only if the node represents: foo?.() or foo.bar?.() - */ -declare const isOptionalCallExpression: (node: TSESTree.Node | null | undefined) => node is TSESTree.CallExpression & { - optional: boolean; -}; -/** - * Returns true if and only if the node represents logical OR - */ -declare const isLogicalOrOperator: (node: TSESTree.Node | null | undefined) => node is TSESTree.LogicalExpression & Partial; -/** - * Checks if a node is a type assertion: - * ``` - * x as foo - * x - * ``` - */ -declare const isTypeAssertion: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSAsExpression | TSESTree.TSTypeAssertion; -declare const isVariableDeclarator: (node: TSESTree.Node | null | undefined) => node is TSESTree.VariableDeclarator; -declare const isFunction: (node: TSESTree.Node | null | undefined) => node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression; -declare const isFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName; -declare const isFunctionOrFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression | TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName; -declare const isTSFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSFunctionType; -declare const isTSConstructorType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSConstructorType; -declare const isClassOrTypeElement: (node: TSESTree.Node | null | undefined) => node is TSESTree.FunctionExpression | TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName | TSESTree.PropertyDefinitionComputedName | TSESTree.PropertyDefinitionNonComputedName | TSESTree.TSAbstractMethodDefinitionComputedName | TSESTree.TSAbstractMethodDefinitionNonComputedName | TSESTree.TSAbstractPropertyDefinitionComputedName | TSESTree.TSAbstractPropertyDefinitionNonComputedName | TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSIndexSignature | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName | TSESTree.TSPropertySignatureComputedName | TSESTree.TSPropertySignatureNonComputedName; -/** - * Checks if a node is a constructor method. - */ -declare const isConstructor: (node: TSESTree.Node | null | undefined) => node is (TSESTree.MethodDefinitionComputedName & Partial) | (TSESTree.MethodDefinitionNonComputedName & Partial); -/** - * Checks if a node is a setter method. - */ -declare function isSetter(node: TSESTree.Node | undefined): node is (TSESTree.MethodDefinition | TSESTree.Property) & { - kind: 'set'; -}; -declare const isIdentifier: (node: TSESTree.Node | null | undefined) => node is TSESTree.Identifier; -/** - * Checks if a node represents an `await …` expression. - */ -declare const isAwaitExpression: (node: TSESTree.Node | null | undefined) => node is TSESTree.AwaitExpression; -/** - * Checks if a possible token is the `await` keyword. - */ -declare const isAwaitKeyword: (token: TSESTree.Token | null | undefined) => token is TSESTree.IdentifierToken & { - value: "await"; -}; -/** - * Checks if a possible token is the `type` keyword. - */ -declare const isTypeKeyword: (token: TSESTree.Token | null | undefined) => token is TSESTree.IdentifierToken & { - value: "type"; -}; -/** - * Checks if a possible token is the `import` keyword. - */ -declare const isImportKeyword: (token: TSESTree.Token | null | undefined) => token is TSESTree.KeywordToken & { - value: "import"; -}; -declare const isLoop: (node: TSESTree.Node | null | undefined) => node is TSESTree.DoWhileStatement | TSESTree.ForInStatement | TSESTree.ForOfStatement | TSESTree.ForStatement | TSESTree.WhileStatement; -export { isAwaitExpression, isAwaitKeyword, isConstructor, isClassOrTypeElement, isFunction, isFunctionOrFunctionType, isFunctionType, isIdentifier, isImportKeyword, isLoop, isLogicalOrOperator, isNonNullAssertionPunctuator, isNotNonNullAssertionPunctuator, isNotOptionalChainPunctuator, isOptionalChainPunctuator, isOptionalCallExpression, isSetter, isTSConstructorType, isTSFunctionType, isTypeAssertion, isTypeKeyword, isVariableDeclarator, }; -//# sourceMappingURL=predicates.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map deleted file mode 100644 index 93d1fccd..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../src/ast-utils/predicates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAU7C,QAAA,MAAM,yBAAyB;;CAG9B,CAAC;AAEF,QAAA,MAAM,4BAA4B,gYAGjC,CAAC;AAEF,QAAA,MAAM,4BAA4B;;CAGjC,CAAC;AAEF,QAAA,MAAM,+BAA+B,gYAGpC,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,wBAAwB;;CAK7B,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,mBAAmB,sHAGxB,CAAC;AAEF;;;;;;GAMG;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b/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js deleted file mode 100644 index 1b5bbe14..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js +++ /dev/null @@ -1,135 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isVariableDeclarator = exports.isTypeKeyword = exports.isTypeAssertion = exports.isTSFunctionType = exports.isTSConstructorType = exports.isSetter = exports.isOptionalCallExpression = exports.isOptionalChainPunctuator = exports.isNotOptionalChainPunctuator = exports.isNotNonNullAssertionPunctuator = exports.isNonNullAssertionPunctuator = exports.isLogicalOrOperator = exports.isLoop = exports.isImportKeyword = exports.isIdentifier = exports.isFunctionType = exports.isFunctionOrFunctionType = exports.isFunction = exports.isClassOrTypeElement = exports.isConstructor = exports.isAwaitKeyword = exports.isAwaitExpression = void 0; -const ts_estree_1 = require("../ts-estree"); -const helpers_1 = require("./helpers"); -const isOptionalChainPunctuator = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '?.' }); -exports.isOptionalChainPunctuator = isOptionalChainPunctuator; -const isNotOptionalChainPunctuator = (0, helpers_1.isNotTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '?.' }); -exports.isNotOptionalChainPunctuator = isNotOptionalChainPunctuator; -const isNonNullAssertionPunctuator = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '!' }); -exports.isNonNullAssertionPunctuator = isNonNullAssertionPunctuator; -const isNotNonNullAssertionPunctuator = (0, helpers_1.isNotTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '!' }); -exports.isNotNonNullAssertionPunctuator = isNotNonNullAssertionPunctuator; -/** - * Returns true if and only if the node represents: foo?.() or foo.bar?.() - */ -const isOptionalCallExpression = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.CallExpression, -// this flag means the call expression itself is option -// i.e. it is foo.bar?.() and not foo?.bar() -{ optional: true }); -exports.isOptionalCallExpression = isOptionalCallExpression; -/** - * Returns true if and only if the node represents logical OR - */ -const isLogicalOrOperator = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.LogicalExpression, { operator: '||' }); -exports.isLogicalOrOperator = isLogicalOrOperator; -/** - * Checks if a node is a type assertion: - * ``` - * x as foo - * x - * ``` - */ -const isTypeAssertion = (0, helpers_1.isNodeOfTypes)([ - ts_estree_1.AST_NODE_TYPES.TSAsExpression, - ts_estree_1.AST_NODE_TYPES.TSTypeAssertion, -]); -exports.isTypeAssertion = isTypeAssertion; -const isVariableDeclarator = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.VariableDeclarator); -exports.isVariableDeclarator = isVariableDeclarator; -const functionTypes = [ - ts_estree_1.AST_NODE_TYPES.ArrowFunctionExpression, - ts_estree_1.AST_NODE_TYPES.FunctionDeclaration, - ts_estree_1.AST_NODE_TYPES.FunctionExpression, -]; -const isFunction = (0, helpers_1.isNodeOfTypes)(functionTypes); -exports.isFunction = isFunction; -const functionTypeTypes = [ - ts_estree_1.AST_NODE_TYPES.TSCallSignatureDeclaration, - ts_estree_1.AST_NODE_TYPES.TSConstructorType, - ts_estree_1.AST_NODE_TYPES.TSConstructSignatureDeclaration, - ts_estree_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression, - ts_estree_1.AST_NODE_TYPES.TSFunctionType, - ts_estree_1.AST_NODE_TYPES.TSMethodSignature, -]; -const isFunctionType = (0, helpers_1.isNodeOfTypes)(functionTypeTypes); -exports.isFunctionType = isFunctionType; -const isFunctionOrFunctionType = (0, helpers_1.isNodeOfTypes)([ - ...functionTypes, - ...functionTypeTypes, -]); -exports.isFunctionOrFunctionType = isFunctionOrFunctionType; -const isTSFunctionType = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.TSFunctionType); -exports.isTSFunctionType = isTSFunctionType; -const isTSConstructorType = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.TSConstructorType); -exports.isTSConstructorType = isTSConstructorType; -const isClassOrTypeElement = (0, helpers_1.isNodeOfTypes)([ - // ClassElement - ts_estree_1.AST_NODE_TYPES.PropertyDefinition, - ts_estree_1.AST_NODE_TYPES.FunctionExpression, - ts_estree_1.AST_NODE_TYPES.MethodDefinition, - ts_estree_1.AST_NODE_TYPES.TSAbstractPropertyDefinition, - ts_estree_1.AST_NODE_TYPES.TSAbstractMethodDefinition, - ts_estree_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression, - ts_estree_1.AST_NODE_TYPES.TSIndexSignature, - // TypeElement - ts_estree_1.AST_NODE_TYPES.TSCallSignatureDeclaration, - ts_estree_1.AST_NODE_TYPES.TSConstructSignatureDeclaration, - // AST_NODE_TYPES.TSIndexSignature, - ts_estree_1.AST_NODE_TYPES.TSMethodSignature, - ts_estree_1.AST_NODE_TYPES.TSPropertySignature, -]); -exports.isClassOrTypeElement = isClassOrTypeElement; -/** - * Checks if a node is a constructor method. - */ -const isConstructor = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.MethodDefinition, { kind: 'constructor' }); -exports.isConstructor = isConstructor; -/** - * Checks if a node is a setter method. - */ -function isSetter(node) { - return (!!node && - (node.type === ts_estree_1.AST_NODE_TYPES.MethodDefinition || - node.type === ts_estree_1.AST_NODE_TYPES.Property) && - node.kind === 'set'); -} -exports.isSetter = isSetter; -const isIdentifier = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.Identifier); -exports.isIdentifier = isIdentifier; -/** - * Checks if a node represents an `await …` expression. - */ -const isAwaitExpression = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.AwaitExpression); -exports.isAwaitExpression = isAwaitExpression; -/** - * Checks if a possible token is the `await` keyword. - */ -const isAwaitKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Identifier, { - value: 'await', -}); -exports.isAwaitKeyword = isAwaitKeyword; -/** - * Checks if a possible token is the `type` keyword. - */ -const isTypeKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Identifier, { - value: 'type', -}); -exports.isTypeKeyword = isTypeKeyword; -/** - * Checks if a possible token is the `import` keyword. - */ -const isImportKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Keyword, { - value: 'import', -}); -exports.isImportKeyword = isImportKeyword; -const isLoop = (0, helpers_1.isNodeOfTypes)([ - ts_estree_1.AST_NODE_TYPES.DoWhileStatement, - ts_estree_1.AST_NODE_TYPES.ForStatement, - ts_estree_1.AST_NODE_TYPES.ForInStatement, - ts_estree_1.AST_NODE_TYPES.ForOfStatement, - ts_estree_1.AST_NODE_TYPES.WhileStatement, -]); -exports.isLoop = isLoop; -//# sourceMappingURL=predicates.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map b/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map deleted file mode 100644 index 62018d3e..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../../src/ast-utils/predicates.ts"],"names":[],"mappings":";;;AACA,4CAA+D;AAC/D,uCAMmB;AAEnB,MAAM,yBAAyB,GAAG,IAAA,qCAA2B,EAC3D,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,IAAI,EAAE,CAChB,CAAC;AAqKA,8DAAyB;AAnK3B,MAAM,4BAA4B,GAAG,IAAA,wCAA8B,EACjE,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,IAAI,EAAE,CAChB,CAAC;AA+JA,oEAA4B;AA7J9B,MAAM,4BAA4B,GAAG,IAAA,qCAA2B,EAC9D,2BAAe,CAAC,UA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,CAAC,UAAU,CAAC,CAAC;AA4C3D,oCAAY;AA1Cd;;GAEG;AACH,MAAM,iBAAiB,GAAG,IAAA,sBAAY,EAAC,0BAAc,CAAC,eAAe,CAAC,CAAC;AAgCrE,8CAAiB;AA9BnB;;GAEG;AACH,MAAM,cAAc,GAAG,IAAA,qCAA2B,EAAC,2BAAe,CAAC,UAAU,EAAE;IAC7E,KAAK,EAAE,OAAO;CACf,CAAC,CAAC;AA0BD,wCAAc;AAxBhB;;GAEG;AACH,MAAM,aAAa,GAAG,IAAA,qCAA2B,EAAC,2BAAe,CAAC,UAAU,EAAE;IAC5E,KAAK,EAAE,MAAM;CACd,CAAC,CAAC;AAsCD,sCAAa;AApCf;;GAEG;AACH,MAAM,eAAe,GAAG,IAAA,qCAA2B,EAAC,2BAAe,CAAC,OAAO,EAAE;IAC3E,KAAK,EAAE,QAAQ;CAChB,CAAC,CAAC;AAmBD,0CAAe;AAjBjB,MAAM,MAAM,GAAG,IAAA,uBAAa,EAAC;IAC3B,0BAAc,CAAC,gBAAgB;IAC/B,0BAAc,CAAC,YAAY;IAC3B,0BAAc,CAAC,cAAc;IAC7B,0BAAc,CAAC,cAAc;IAC7B,0BAAc,CAAC,cAAc;CACrB,CAAC,CAAC;AAYV,wBAAM"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts b/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts deleted file mode 100644 index bb20f522..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { RuleCreateFunction, RuleModule } from '../ts-eslint'; -/** - * Uses type inference to fetch the TOptions type from the given RuleModule - */ -type InferOptionsTypeFromRule = T extends RuleModule ? TOptions : T extends RuleCreateFunction ? TOptions : unknown; -/** - * Uses type inference to fetch the TMessageIds type from the given RuleModule - */ -type InferMessageIdsTypeFromRule = T extends RuleModule ? TMessageIds : T extends RuleCreateFunction ? TMessageIds : unknown; -export { InferOptionsTypeFromRule, InferMessageIdsTypeFromRule }; -//# sourceMappingURL=InferTypesFromRule.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map b/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map deleted file mode 100644 index ed4fa6d8..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"InferTypesFromRule.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/InferTypesFromRule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEnE;;GAEG;AACH,KAAK,wBAAwB,CAAC,CAAC,IAAI,CAAC,SAAS,UAAU,CACrD,MAAM,YAAY,EAClB,MAAM,QAAQ,CACf,GACG,QAAQ,GACR,CAAC,SAAS,kBAAkB,CAAC,MAAM,YAAY,EAAE,MAAM,QAAQ,CAAC,GAChE,QAAQ,GACR,OAAO,CAAC;AAEZ;;GAEG;AACH,KAAK,2BAA2B,CAAC,CAAC,IAAI,CAAC,SAAS,UAAU,CACxD,MAAM,WAAW,EACjB,MAAM,SAAS,CAChB,GACG,WAAW,GACX,CAAC,SAAS,kBAAkB,CAAC,MAAM,WAAW,EAAE,MAAM,SAAS,CAAC,GAChE,WAAW,GACX,OAAO,CAAC;AAEZ,OAAO,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js b/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js deleted file mode 100644 index 9305805b..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=InferTypesFromRule.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js.map b/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js.map deleted file mode 100644 index 99fe846c..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"InferTypesFromRule.js","sourceRoot":"","sources":["../../src/eslint-utils/InferTypesFromRule.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts b/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts deleted file mode 100644 index 9e2a1bcc..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import type { RuleContext, RuleListener, RuleMetaData, RuleMetaDataDocs, RuleModule } from '../ts-eslint/Rule'; -export type NamedCreateRuleMetaDocs = Omit; -export type NamedCreateRuleMeta = { - docs: NamedCreateRuleMetaDocs; -} & Omit, 'docs'>; -export interface RuleCreateAndOptions { - create: (context: Readonly>, optionsWithDefault: Readonly) => TRuleListener; - defaultOptions: Readonly; -} -export interface RuleWithMeta extends RuleCreateAndOptions { - meta: RuleMetaData; -} -export interface RuleWithMetaAndName extends RuleCreateAndOptions { - meta: NamedCreateRuleMeta; - name: string; -} -/** - * Creates reusable function to create rules with default options and docs URLs. - * - * @param urlCreator Creates a documentation URL for a given rule name. - * @returns Function to create a rule with the docs URL format. - */ -export declare function RuleCreator(urlCreator: (ruleName: string) => string): ({ name, meta, ...rule }: Readonly>) => RuleModule; -export declare namespace RuleCreator { - var withoutDocs: typeof createRule; -} -/** - * Creates a well-typed TSESLint custom ESLint rule without a docs URL. - * - * @returns Well-typed TSESLint custom ESLint rule. - * @remarks It is generally better to provide a docs URL function to RuleCreator. - */ -declare function createRule({ create, defaultOptions, meta, }: Readonly>): RuleModule; -export {}; -//# sourceMappingURL=RuleCreator.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map b/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map deleted file mode 100644 index b2f8f747..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RuleCreator.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/RuleCreator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACX,MAAM,mBAAmB,CAAC;AAI3B,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;AACpE,MAAM,MAAM,mBAAmB,CAAC,WAAW,SAAS,MAAM,IAAI;IAC5D,IAAI,EAAE,uBAAuB,CAAC;CAC/B,GAAG,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,CAAC;AAE5C,MAAM,WAAW,oBAAoB,CACnC,QAAQ,SAAS,SAAS,OAAO,EAAE,EACnC,WAAW,SAAS,MAAM,EAC1B,aAAa,SAAS,YAAY;IAElC,MAAM,EAAE,CACN,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,EACrD,kBAAkB,EAAE,QAAQ,CAAC,QAAQ,CAAC,KACnC,aAAa,CAAC;IACnB,cAAc,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,YAAY,CAC3B,QAAQ,SAAS,SAAS,OAAO,EAAE,EACnC,WAAW,SAAS,MAAM,EAC1B,aAAa,SAAS,YAAY,CAClC,SAAQ,oBAAoB,CAAC,QAAQ,EAAE,WAAW,EAAE,aAAa,CAAC;IAClE,IAAI,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,mBAAmB,CAClC,QAAQ,SAAS,SAAS,OAAO,EAAE,EACnC,WAAW,SAAS,MAAM,EAC1B,aAAa,SAAS,YAAY,CAClC,SAAQ,oBAAoB,CAAC,QAAQ,EAAE,WAAW,EAAE,aAAa,CAAC;IAClE,IAAI,EAAE,mBAAmB,CAAC,WAAW,CAAC,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,0QAyBnE;yBAzBe,WAAW;;;AA2B3B;;;;;GAKG;AACH,iBAAS,UAAU,CACjB,QAAQ,SAAS,SAAS,OAAO,EAAE,EACnC,WAAW,SAAS,MAAM,EAC1B,aAAa,SAAS,YAAY,GAAG,YAAY,EACjD,EACA,MAAM,EACN,cAAc,EACd,IAAI,GACL,EAAE,QAAQ,CAAC,YAAY,CAAC,QAAQ,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC,GAAG,UAAU,CAC1E,WAAW,EACX,QAAQ,EACR,aAAa,CACd,CAWA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js b/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js deleted file mode 100644 index 43236075..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RuleCreator = void 0; -const applyDefault_1 = require("./applyDefault"); -/** - * Creates reusable function to create rules with default options and docs URLs. - * - * @param urlCreator Creates a documentation URL for a given rule name. - * @returns Function to create a rule with the docs URL format. - */ -function RuleCreator(urlCreator) { - // This function will get much easier to call when this is merged https://github.com/Microsoft/TypeScript/pull/26349 - // TODO - when the above PR lands; add type checking for the context.report `data` property - return function createNamedRule(_a) { - var { name, meta } = _a, rule = __rest(_a, ["name", "meta"]); - return createRule(Object.assign({ meta: Object.assign(Object.assign({}, meta), { docs: Object.assign(Object.assign({}, meta.docs), { url: urlCreator(name) }) }) }, rule)); - }; -} -exports.RuleCreator = RuleCreator; -/** - * Creates a well-typed TSESLint custom ESLint rule without a docs URL. - * - * @returns Well-typed TSESLint custom ESLint rule. - * @remarks It is generally better to provide a docs URL function to RuleCreator. - */ -function createRule({ create, defaultOptions, meta, }) { - return { - create(context) { - const optionsWithDefault = (0, applyDefault_1.applyDefault)(defaultOptions, context.options); - return create(context, optionsWithDefault); - }, - defaultOptions, - meta, - }; -} -RuleCreator.withoutDocs = createRule; -//# sourceMappingURL=RuleCreator.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js.map b/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js.map deleted file mode 100644 index 60ebbdf5..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RuleCreator.js","sourceRoot":"","sources":["../../src/eslint-utils/RuleCreator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAOA,iDAA8C;AAqC9C;;;;;GAKG;AACH,SAAgB,WAAW,CAAC,UAAwC;IAClE,oHAAoH;IACpH,2FAA2F;IAC3F,OAAO,SAAS,eAAe,CAI7B,EAMD;YANC,EACA,IAAI,EACJ,IAAI,OAIL,EAHI,IAAI,cAHP,gBAID,CADQ;QAIP,OAAO,UAAU,iBACf,IAAI,kCACC,IAAI,KACP,IAAI,kCACC,IAAI,CAAC,IAAI,KACZ,GAAG,EAAE,UAAU,CAAC,IAAI,CAAC,UAGtB,IAAI,EACP,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAzBD,kCAyBC;AAED;;;;;GAKG;AACH,SAAS,UAAU,CAIjB,EACA,MAAM,EACN,cAAc,EACd,IAAI,GACyD;IAK7D,OAAO;QACL,MAAM,CACJ,OAAqD;YAErD,MAAM,kBAAkB,GAAG,IAAA,2BAAY,EAAC,cAAc,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;YACzE,OAAO,MAAM,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC;QAC7C,CAAC;QACD,cAAc;QACd,IAAI;KACL,CAAC;AACJ,CAAC;AAED,WAAW,CAAC,WAAW,GAAG,UAAU,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts b/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts deleted file mode 100644 index 6bc5b6d1..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Pure function - doesn't mutate either parameter! - * Uses the default options and overrides with the options provided by the user - * @param defaultOptions the defaults - * @param userOptions the user opts - * @returns the options with defaults - */ -declare function applyDefault(defaultOptions: Readonly, userOptions: Readonly | null): TDefault; -export { applyDefault }; -//# sourceMappingURL=applyDefault.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts.map b/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts.map deleted file mode 100644 index eb2f4102..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"applyDefault.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/applyDefault.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,iBAAS,YAAY,CAAC,KAAK,SAAS,SAAS,OAAO,EAAE,EAAE,QAAQ,SAAS,KAAK,EAC5E,cAAc,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAClC,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,IAAI,GAClC,QAAQ,CAyBV;AAMD,OAAO,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js b/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js deleted file mode 100644 index cf66b178..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.applyDefault = void 0; -const deepMerge_1 = require("./deepMerge"); -/** - * Pure function - doesn't mutate either parameter! - * Uses the default options and overrides with the options provided by the user - * @param defaultOptions the defaults - * @param userOptions the user opts - * @returns the options with defaults - */ -function applyDefault(defaultOptions, userOptions) { - // clone defaults - const options = JSON.parse(JSON.stringify(defaultOptions)); - if (userOptions == null) { - return options; - } - // For avoiding the type error - // `This expression is not callable. Type 'unknown' has no call signatures.ts(2349)` - options.forEach((opt, i) => { - if (userOptions[i] !== undefined) { - const userOpt = userOptions[i]; - if ((0, deepMerge_1.isObjectNotArray)(userOpt) && (0, deepMerge_1.isObjectNotArray)(opt)) { - options[i] = (0, deepMerge_1.deepMerge)(opt, userOpt); - } - else { - options[i] = userOpt; - } - } - }); - return options; -} -exports.applyDefault = applyDefault; -//# sourceMappingURL=applyDefault.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map b/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map deleted file mode 100644 index 99707fd3..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"applyDefault.js","sourceRoot":"","sources":["../../src/eslint-utils/applyDefault.ts"],"names":[],"mappings":";;;AAAA,2CAA0D;AAE1D;;;;;;GAMG;AACH,SAAS,YAAY,CACnB,cAAkC,EAClC,WAAmC;IAEnC,iBAAiB;IACjB,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CACxB,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CACR,CAAC;IAEzB,IAAI,WAAW,IAAI,IAAI,EAAE;QACvB,OAAO,OAAO,CAAC;KAChB;IAED,8BAA8B;IAC9B,sFAAsF;IACrF,OAAqB,CAAC,OAAO,CAAC,CAAC,GAAY,EAAE,CAAS,EAAE,EAAE;QACzD,IAAI,WAAW,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE;YAChC,MAAM,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;YAE/B,IAAI,IAAA,4BAAgB,EAAC,OAAO,CAAC,IAAI,IAAA,4BAAgB,EAAC,GAAG,CAAC,EAAE;gBACtD,OAAO,CAAC,CAAC,CAAC,GAAG,IAAA,qBAAS,EAAC,GAAG,EAAE,OAAO,CAAC,CAAC;aACtC;iBAAM;gBACL,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC;aACtB;SACF;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACjB,CAAC;AAMQ,oCAAY"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/batchedSingleLineTests.d.ts b/node_modules/@typescript-eslint/utils/dist/eslint-utils/batchedSingleLineTests.d.ts deleted file mode 100644 index 8269e9d5..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/batchedSingleLineTests.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import type { InvalidTestCase, ValidTestCase } from '../eslint-utils/rule-tester/RuleTester'; -/** - * Converts a batch of single line tests into a number of separate test cases. - * This makes it easier to write tests which use the same options. - * - * Why wouldn't you just leave them as one test? - * Because it makes the test error messages harder to decipher. - * This way each line will fail separately, instead of them all failing together. - */ -declare function batchedSingleLineTests>(test: ValidTestCase): ValidTestCase[]; -/** - * Converts a batch of single line tests into a number of separate test cases. - * This makes it easier to write tests which use the same options. - * - * Why wouldn't you just leave them as one test? - * Because it makes the test error messages harder to decipher. - * This way each line will fail separately, instead of them all failing together. - * - * Make sure you have your line numbers correct for error reporting, as it will match - * the line numbers up with the split tests! - */ -declare function batchedSingleLineTests>(test: InvalidTestCase): InvalidTestCase[]; -export { batchedSingleLineTests }; -//# sourceMappingURL=batchedSingleLineTests.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/batchedSingleLineTests.d.ts.map b/node_modules/@typescript-eslint/utils/dist/eslint-utils/batchedSingleLineTests.d.ts.map deleted file mode 100644 index 56db8291..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/batchedSingleLineTests.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"batchedSingleLineTests.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/batchedSingleLineTests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACd,MAAM,wCAAwC,CAAC;AAEhD;;;;;;;GAOG;AACH,iBAAS,sBAAsB,CAAC,QAAQ,SAAS,QAAQ,CAAC,OAAO,EAAE,CAAC,EAClE,IAAI,EAAE,aAAa,CAAC,QAAQ,CAAC,GAC5B,aAAa,CAAC,QAAQ,CAAC,EAAE,CAAC;AAC7B;;;;;;;;;;GAUG;AACH,iBAAS,sBAAsB,CAC7B,WAAW,SAAS,MAAM,EAC1B,QAAQ,SAAS,QAAQ,CAAC,OAAO,EAAE,CAAC,EAEpC,IAAI,EAAE,eAAe,CAAC,WAAW,EAAE,QAAQ,CAAC,GAC3C,eAAe,CAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,CAAC;AAwC5C,OAAO,EAAE,sBAAsB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/batchedSingleLineTests.js b/node_modules/@typescript-eslint/utils/dist/eslint-utils/batchedSingleLineTests.js deleted file mode 100644 index 98bc8c62..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/batchedSingleLineTests.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.batchedSingleLineTests = void 0; -function batchedSingleLineTests(options) { - // -- eslint counts lines from 1 - const lineOffset = options.code.startsWith('\n') ? 2 : 1; - const output = 'output' in options && options.output - ? options.output.trim().split('\n') - : null; - return options.code - .trim() - .split('\n') - .map((code, i) => { - const lineNum = i + lineOffset; - const errors = 'errors' in options - ? options.errors.filter(e => e.line === lineNum) - : []; - const returnVal = Object.assign(Object.assign({}, options), { code, errors: errors.map(e => (Object.assign(Object.assign({}, e), { line: 1 }))) }); - if (output === null || output === void 0 ? void 0 : output[i]) { - return Object.assign(Object.assign({}, returnVal), { output: output[i] }); - } - return returnVal; - }); -} -exports.batchedSingleLineTests = batchedSingleLineTests; -//# sourceMappingURL=batchedSingleLineTests.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/batchedSingleLineTests.js.map b/node_modules/@typescript-eslint/utils/dist/eslint-utils/batchedSingleLineTests.js.map deleted file mode 100644 index 6d2fbc75..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/batchedSingleLineTests.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"batchedSingleLineTests.js","sourceRoot":"","sources":["../../src/eslint-utils/batchedSingleLineTests.ts"],"names":[],"mappings":";;;AAiCA,SAAS,sBAAsB,CAI7B,OAAyE;IAEzE,gCAAgC;IAChC,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACzD,MAAM,MAAM,GACV,QAAQ,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM;QACnC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;QACnC,CAAC,CAAC,IAAI,CAAC;IACX,OAAO,OAAO,CAAC,IAAI;SAChB,IAAI,EAAE;SACN,KAAK,CAAC,IAAI,CAAC;SACX,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;QACf,MAAM,OAAO,GAAG,CAAC,GAAG,UAAU,CAAC;QAC/B,MAAM,MAAM,GACV,QAAQ,IAAI,OAAO;YACjB,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC;YAChD,CAAC,CAAC,EAAE,CAAC;QACT,MAAM,SAAS,mCACV,OAAO,KACV,IAAI,EACJ,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,iCACnB,CAAC,KACJ,IAAI,EAAE,CAAC,IACP,CAAC,GACJ,CAAC;QACF,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,CAAC,CAAC,EAAE;YACf,uCACK,SAAS,KACZ,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,IACjB;SACH;QACD,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC,CAAC;AACP,CAAC;AAEQ,wDAAsB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts b/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts deleted file mode 100644 index 9f769052..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -type ObjectLike = Record; -/** - * Check if the variable contains an object strictly rejecting arrays - * @param obj an object - * @returns `true` if obj is an object - */ -declare function isObjectNotArray(obj: unknown | unknown[]): obj is T; -/** - * Pure function - doesn't mutate either parameter! - * Merges two objects together deeply, overwriting the properties in first with the properties in second - * @param first The first object - * @param second The second object - * @returns a new object - */ -export declare function deepMerge(first?: ObjectLike, second?: ObjectLike): Record; -export { isObjectNotArray }; -//# sourceMappingURL=deepMerge.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map b/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map deleted file mode 100644 index eff4dcc8..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"deepMerge.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/deepMerge.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,CAAC,CAAC,GAAG,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEjD;;;;GAIG;AACH,iBAAS,gBAAgB,CAAC,CAAC,SAAS,UAAU,EAC5C,GAAG,EAAE,OAAO,GAAG,OAAO,EAAE,GACvB,GAAG,IAAI,CAAC,CAEV;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CACvB,KAAK,GAAE,UAAe,EACtB,MAAM,GAAE,UAAe,GACtB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA0BzB;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js b/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js deleted file mode 100644 index 34fdffc5..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isObjectNotArray = exports.deepMerge = void 0; -/** - * Check if the variable contains an object strictly rejecting arrays - * @param obj an object - * @returns `true` if obj is an object - */ -function isObjectNotArray(obj) { - return typeof obj === 'object' && !Array.isArray(obj); -} -exports.isObjectNotArray = isObjectNotArray; -/** - * Pure function - doesn't mutate either parameter! - * Merges two objects together deeply, overwriting the properties in first with the properties in second - * @param first The first object - * @param second The second object - * @returns a new object - */ -function deepMerge(first = {}, second = {}) { - // get the unique set of keys across both objects - const keys = new Set(Object.keys(first).concat(Object.keys(second))); - return Array.from(keys).reduce((acc, key) => { - const firstHasKey = key in first; - const secondHasKey = key in second; - const firstValue = first[key]; - const secondValue = second[key]; - if (firstHasKey && secondHasKey) { - if (isObjectNotArray(firstValue) && isObjectNotArray(secondValue)) { - // object type - acc[key] = deepMerge(firstValue, secondValue); - } - else { - // value type - acc[key] = secondValue; - } - } - else if (firstHasKey) { - acc[key] = firstValue; - } - else { - acc[key] = secondValue; - } - return acc; - }, {}); -} -exports.deepMerge = deepMerge; -//# sourceMappingURL=deepMerge.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js.map b/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js.map deleted file mode 100644 index 7ee4604b..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"deepMerge.js","sourceRoot":"","sources":["../../src/eslint-utils/deepMerge.ts"],"names":[],"mappings":";;;AAEA;;;;GAIG;AACH,SAAS,gBAAgB,CACvB,GAAwB;IAExB,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AACxD,CAAC;AAwCQ,4CAAgB;AAtCzB;;;;;;GAMG;AACH,SAAgB,SAAS,CACvB,QAAoB,EAAE,EACtB,SAAqB,EAAE;IAEvB,iDAAiD;IACjD,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAErE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAa,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QACtD,MAAM,WAAW,GAAG,GAAG,IAAI,KAAK,CAAC;QACjC,MAAM,YAAY,GAAG,GAAG,IAAI,MAAM,CAAC;QACnC,MAAM,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;QAC9B,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAEhC,IAAI,WAAW,IAAI,YAAY,EAAE;YAC/B,IAAI,gBAAgB,CAAC,UAAU,CAAC,IAAI,gBAAgB,CAAC,WAAW,CAAC,EAAE;gBACjE,cAAc;gBACd,GAAG,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;aAC/C;iBAAM;gBACL,aAAa;gBACb,GAAG,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC;aACxB;SACF;aAAM,IAAI,WAAW,EAAE;YACtB,GAAG,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC;SACvB;aAAM;YACL,GAAG,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC;SACxB;QAED,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC;AA7BD,8BA6BC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts b/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts deleted file mode 100644 index 9d76d5ba..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type * as TSESLint from '../ts-eslint'; -import type { ParserServices } from '../ts-estree'; -/** - * Try to retrieve typescript parser service from context - */ -declare function getParserServices(context: Readonly>, allowWithoutFullTypeInformation?: boolean): ParserServices; -export { getParserServices }; -//# sourceMappingURL=getParserServices.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts.map b/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts.map deleted file mode 100644 index 9e8f2efa..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getParserServices.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/getParserServices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,QAAQ,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAKnD;;GAEG;AACH,iBAAS,iBAAiB,CACxB,WAAW,SAAS,MAAM,EAC1B,QAAQ,SAAS,SAAS,OAAO,EAAE,EAEnC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,EAC9D,+BAA+B,UAAQ,GACtC,cAAc,CAsBhB;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js b/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js deleted file mode 100644 index 679ae05a..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getParserServices = void 0; -const ERROR_MESSAGE = 'You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.'; -/** - * Try to retrieve typescript parser service from context - */ -function getParserServices(context, allowWithoutFullTypeInformation = false) { - var _a, _b; - // backwards compatibility check - // old versions of the parser would not return any parserServices unless parserOptions.project was set - if (!((_a = context.parserServices) === null || _a === void 0 ? void 0 : _a.program) || - !context.parserServices.esTreeNodeToTSNodeMap || - !context.parserServices.tsNodeToESTreeNodeMap) { - throw new Error(ERROR_MESSAGE); - } - const hasFullTypeInformation = (_b = context.parserServices.hasFullTypeInformation) !== null && _b !== void 0 ? _b : - /* backwards compatible */ true; - // if a rule requires full type information, then hard fail if it doesn't exist - // this forces the user to supply parserOptions.project - if (!hasFullTypeInformation && !allowWithoutFullTypeInformation) { - throw new Error(ERROR_MESSAGE); - } - return context.parserServices; -} -exports.getParserServices = getParserServices; -//# sourceMappingURL=getParserServices.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js.map b/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js.map deleted file mode 100644 index fc2bcddc..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getParserServices.js","sourceRoot":"","sources":["../../src/eslint-utils/getParserServices.ts"],"names":[],"mappings":";;;AAGA,MAAM,aAAa,GACjB,gLAAgL,CAAC;AAEnL;;GAEG;AACH,SAAS,iBAAiB,CAIxB,OAA8D,EAC9D,+BAA+B,GAAG,KAAK;;IAEvC,gCAAgC;IAChC,sGAAsG;IACtG,IACE,CAAC,CAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,OAAO,CAAA;QAChC,CAAC,OAAO,CAAC,cAAc,CAAC,qBAAqB;QAC7C,CAAC,OAAO,CAAC,cAAc,CAAC,qBAAqB,EAC7C;QACA,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;KAChC;IAED,MAAM,sBAAsB,GAC1B,MAAA,OAAO,CAAC,cAAc,CAAC,sBAAsB;IAC7C,0BAA0B,CAAC,IAAI,CAAC;IAElC,+EAA+E;IAC/E,uDAAuD;IACvD,IAAI,CAAC,sBAAsB,IAAI,CAAC,+BAA+B,EAAE;QAC/D,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;KAChC;IAED,OAAO,OAAO,CAAC,cAAc,CAAC;AAChC,CAAC;AAEQ,8CAAiB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts b/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts deleted file mode 100644 index 84484885..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export * from './applyDefault'; -export * from './batchedSingleLineTests'; -export * from './getParserServices'; -export * from './InferTypesFromRule'; -export * from './RuleCreator'; -export * from './rule-tester/RuleTester'; -export * from './deepMerge'; -export * from './nullThrows'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts.map b/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts.map deleted file mode 100644 index e8084c35..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js b/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js deleted file mode 100644 index d1a73af9..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./applyDefault"), exports); -__exportStar(require("./batchedSingleLineTests"), exports); -__exportStar(require("./getParserServices"), exports); -__exportStar(require("./InferTypesFromRule"), exports); -__exportStar(require("./RuleCreator"), exports); -__exportStar(require("./rule-tester/RuleTester"), exports); -__exportStar(require("./deepMerge"), exports); -__exportStar(require("./nullThrows"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js.map b/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js.map deleted file mode 100644 index 498b1912..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,2DAAyC;AACzC,sDAAoC;AACpC,uDAAqC;AACrC,gDAA8B;AAC9B,2DAAyC;AACzC,8CAA4B;AAC5B,+CAA6B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts b/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts deleted file mode 100644 index d351bef4..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * A set of common reasons for calling nullThrows - */ -declare const NullThrowsReasons: { - readonly MissingParent: "Expected node to have a parent."; - readonly MissingToken: (token: string, thing: string) => string; -}; -/** - * Assert that a value must not be null or undefined. - * This is a nice explicit alternative to the non-null assertion operator. - */ -declare function nullThrows(value: T | null | undefined, message: string): T; -export { nullThrows, NullThrowsReasons }; -//# sourceMappingURL=nullThrows.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts.map b/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts.map deleted file mode 100644 index f16f5cdb..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"nullThrows.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/nullThrows.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,QAAA,MAAM,iBAAiB;;mCAEC,MAAM,SAAS,MAAM;CAEnC,CAAC;AAEX;;;GAGG;AACH,iBAAS,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC,CAYtE;AAED,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js b/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js deleted file mode 100644 index ae58c738..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NullThrowsReasons = exports.nullThrows = void 0; -/** - * A set of common reasons for calling nullThrows - */ -const NullThrowsReasons = { - MissingParent: 'Expected node to have a parent.', - MissingToken: (token, thing) => `Expected to find a ${token} for the ${thing}.`, -}; -exports.NullThrowsReasons = NullThrowsReasons; -/** - * Assert that a value must not be null or undefined. - * This is a nice explicit alternative to the non-null assertion operator. - */ -function nullThrows(value, message) { - // this function is primarily used to keep types happy in a safe way - // i.e. is used when we expect that a value is never nullish - // this means that it's pretty much impossible to test the below if... - // so ignore it in coverage metrics. - /* istanbul ignore if */ - if (value == null) { - throw new Error(`Non-null Assertion Failed: ${message}`); - } - return value; -} -exports.nullThrows = nullThrows; -//# sourceMappingURL=nullThrows.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map b/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map deleted file mode 100644 index 17dbd85e..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"nullThrows.js","sourceRoot":"","sources":["../../src/eslint-utils/nullThrows.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAM,iBAAiB,GAAG;IACxB,aAAa,EAAE,iCAAiC;IAChD,YAAY,EAAE,CAAC,KAAa,EAAE,KAAa,EAAE,EAAE,CAC7C,sBAAsB,KAAK,YAAY,KAAK,GAAG;CACzC,CAAC;AAoBU,8CAAiB;AAlBtC;;;GAGG;AACH,SAAS,UAAU,CAAI,KAA2B,EAAE,OAAe;IACjE,oEAAoE;IACpE,4DAA4D;IAC5D,sEAAsE;IAEtE,oCAAoC;IACpC,wBAAwB;IACxB,IAAI,KAAK,IAAI,IAAI,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,8BAA8B,OAAO,EAAE,CAAC,CAAC;KAC1D;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAEQ,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts b/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts deleted file mode 100644 index c6e046f7..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import type { RuleModule } from '../../ts-eslint/Rule'; -import * as BaseRuleTester from '../../ts-eslint/RuleTester'; -import type { DependencyConstraint } from './dependencyConstraints'; -declare const TS_ESLINT_PARSER = "@typescript-eslint/parser"; -type RuleTesterConfig = Omit & { - parser: typeof TS_ESLINT_PARSER; - /** - * Constraints that must pass in the current environment for any tests to run - */ - dependencyConstraints?: DependencyConstraint; -}; -interface InvalidTestCase> extends BaseRuleTester.InvalidTestCase { - /** - * Constraints that must pass in the current environment for the test to run - */ - dependencyConstraints?: DependencyConstraint; -} -interface ValidTestCase> extends BaseRuleTester.ValidTestCase { - /** - * Constraints that must pass in the current environment for the test to run - */ - dependencyConstraints?: DependencyConstraint; -} -interface RunTests> { - readonly valid: readonly (ValidTestCase | string)[]; - readonly invalid: readonly InvalidTestCase[]; -} -type AfterAll = (fn: () => void) => void; -declare class RuleTester extends BaseRuleTester.RuleTester { - #private; - /** - * If you supply a value to this property, the rule tester will call this instead of using the version defined on - * the global namespace. - */ - static get afterAll(): AfterAll; - static set afterAll(value: AfterAll | undefined); - private get staticThis(); - constructor(baseOptions: RuleTesterConfig); - private getFilename; - run>(name: string, rule: RuleModule, testsReadonly: RunTests): void; -} -/** - * Simple no-op tag to mark code samples as "should not format with prettier" - * for the internal/plugin-test-formatting lint rule - */ -declare function noFormat(raw: TemplateStringsArray, ...keys: string[]): string; -export { noFormat, RuleTester }; -export type { InvalidTestCase, ValidTestCase, RunTests }; -//# sourceMappingURL=RuleTester.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts.map b/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts.map deleted file mode 100644 index d9ca2886..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RuleTester.d.ts","sourceRoot":"","sources":["../../../src/eslint-utils/rule-tester/RuleTester.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAC;AAE7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAA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AAgB;IAiCzC,OAAO,CAAC,WAAW;IAoBnB,GAAG,CAAC,WAAW,SAAS,MAAM,EAAE,QAAQ,SAAS,QAAQ,CAAC,OAAO,EAAE,CAAC,EAClE,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,UAAU,CAAC,WAAW,EAAE,QAAQ,CAAC,EACvC,aAAa,EAAE,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,GAC7C,IAAI;CA6JR;AAED;;;GAGG;AACH,iBAAS,QAAQ,CAAC,GAAG,EAAE,oBAAoB,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAEtE;AAED,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;AAChC,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js b/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js deleted file mode 100644 index a9b463ea..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js +++ /dev/null @@ -1,251 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); -}; -var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; -}; -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -var _a, _RuleTester_baseOptions, _RuleTester_afterAll; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RuleTester = exports.noFormat = void 0; -const assert_1 = __importDefault(require("assert")); -const package_json_1 = require("eslint/package.json"); -const path = __importStar(require("path")); -const semver = __importStar(require("semver")); -const BaseRuleTester = __importStar(require("../../ts-eslint/RuleTester")); -const deepMerge_1 = require("../deepMerge"); -const dependencyConstraints_1 = require("./dependencyConstraints"); -const TS_ESLINT_PARSER = '@typescript-eslint/parser'; -const ERROR_MESSAGE = `Do not set the parser at the test level unless you want to use a parser other than ${TS_ESLINT_PARSER}`; -function isDescribeWithSkip(value) { - return (typeof value === 'object' && - value != null && - 'skip' in value && - typeof value.skip === 'function'); -} -class RuleTester extends BaseRuleTester.RuleTester { - /** - * If you supply a value to this property, the rule tester will call this instead of using the version defined on - * the global namespace. - */ - static get afterAll() { - var _b; - return ((_b = __classPrivateFieldGet(this, _a, "f", _RuleTester_afterAll)) !== null && _b !== void 0 ? _b : (typeof afterAll === 'function' ? afterAll : () => { })); - } - static set afterAll(value) { - __classPrivateFieldSet(this, _a, value, "f", _RuleTester_afterAll); - } - get staticThis() { - // the cast here is due to https://github.com/microsoft/TypeScript/issues/3841 - return this.constructor; - } - constructor(baseOptions) { - var _b, _c; - // eslint will hard-error if you include non-standard top-level properties - const { dependencyConstraints: _ } = baseOptions, baseOptionsSafeForESLint = __rest(baseOptions, ["dependencyConstraints"]); - super(Object.assign(Object.assign({}, baseOptionsSafeForESLint), { parserOptions: Object.assign(Object.assign({}, baseOptions.parserOptions), { warnOnUnsupportedTypeScriptVersion: (_c = (_b = baseOptions.parserOptions) === null || _b === void 0 ? void 0 : _b.warnOnUnsupportedTypeScriptVersion) !== null && _c !== void 0 ? _c : false }), - // as of eslint 6 you have to provide an absolute path to the parser - // but that's not as clean to type, this saves us trying to manually enforce - // that contributors require.resolve everything - parser: require.resolve(baseOptions.parser) })); - _RuleTester_baseOptions.set(this, void 0); - __classPrivateFieldSet(this, _RuleTester_baseOptions, baseOptions, "f"); - // make sure that the parser doesn't hold onto file handles between tests - // on linux (i.e. our CI env), there can be very a limited number of watch handles available - this.staticThis.afterAll(() => { - try { - // instead of creating a hard dependency, just use a soft require - // a bit weird, but if they're using this tooling, it'll be installed - const parser = require(TS_ESLINT_PARSER); - parser.clearCaches(); - } - catch (_b) { - // ignored on purpose - } - }); - } - getFilename(testOptions) { - var _b; - const resolvedOptions = (0, deepMerge_1.deepMerge)(__classPrivateFieldGet(this, _RuleTester_baseOptions, "f").parserOptions, testOptions); - const filename = `file.ts${((_b = resolvedOptions.ecmaFeatures) === null || _b === void 0 ? void 0 : _b.jsx) ? 'x' : ''}`; - if (resolvedOptions.project) { - return path.join(resolvedOptions.tsconfigRootDir != null - ? resolvedOptions.tsconfigRootDir - : process.cwd(), filename); - } - return filename; - } - // as of eslint 6 you have to provide an absolute path to the parser - // If you don't do that at the test level, the test will fail somewhat cryptically... - // This is a lot more explicit - run(name, rule, testsReadonly) { - if (__classPrivateFieldGet(this, _RuleTester_baseOptions, "f").dependencyConstraints && - !(0, dependencyConstraints_1.satisfiesAllDependencyConstraints)(__classPrivateFieldGet(this, _RuleTester_baseOptions, "f").dependencyConstraints)) { - if (isDescribeWithSkip(this.staticThis.describe)) { - // for frameworks like mocha or jest that have a "skip" version of their function - // we can provide a nice skipped test! - this.staticThis.describe.skip(name, () => { - this.staticThis.it('All tests skipped due to unsatisfied constructor dependency constraints', () => { }); - }); - } - else { - // otherwise just declare an empty test - this.staticThis.describe(name, () => { - this.staticThis.it('All tests skipped due to unsatisfied constructor dependency constraints', () => { - // some frameworks error if there are no assertions - assert_1.default.equal(true, true); - }); - }); - } - // don't run any tests because we don't match the base constraint - return; - } - const tests = { - // standardize the valid tests as objects - valid: testsReadonly.valid.map(test => { - if (typeof test === 'string') { - return { - code: test, - }; - } - return test; - }), - invalid: testsReadonly.invalid, - }; - // convenience iterator to make it easy to loop all tests without a concat - const allTestsIterator = { - *[Symbol.iterator]() { - for (const test of tests.valid) { - yield test; - } - for (const test of tests.invalid) { - yield test; - } - }, - }; - /* - Automatically add a filename to the tests to enable type-aware tests to "just work". - This saves users having to verbosely and manually add the filename to every - single test case. - Hugely helps with the string-based valid test cases as it means they don't - need to be made objects! - Also removes dependencyConstraints, which we support but ESLint core doesn't. - */ - const normalizeTest = (_b) => { - var { dependencyConstraints: _ } = _b, test = __rest(_b, ["dependencyConstraints"]); - if (test.parser === TS_ESLINT_PARSER) { - throw new Error(ERROR_MESSAGE); - } - if (!test.filename) { - return Object.assign(Object.assign({}, test), { filename: this.getFilename(test.parserOptions) }); - } - return test; - }; - tests.valid = tests.valid.map(normalizeTest); - tests.invalid = tests.invalid.map(normalizeTest); - const hasOnly = (() => { - for (const test of allTestsIterator) { - if (test.only) { - return true; - } - } - return false; - })(); - // if there is an `only: true` - don't apply constraints - assume that - // we are in "local development" mode rather than "CI validation" mode - if (!hasOnly) { - /* - Automatically skip tests that don't satisfy the dependency constraints. - */ - const hasConstraints = (() => { - for (const test of allTestsIterator) { - if (test.dependencyConstraints && - Object.keys(test.dependencyConstraints).length > 0) { - return true; - } - } - return false; - })(); - if (hasConstraints) { - // The `only: boolean` test property was only added in ESLint v7.29.0. - if (semver.satisfies(package_json_1.version, '>=7.29.0')) { - /* - Mark all satisfactory tests as `only: true`, and all other tests as - `only: false`. - When multiple tests are marked as "only", test frameworks like jest and mocha - will run all of those tests and will just skip the other tests. - - We do this instead of just omitting the tests entirely because it gives the - test framework the opportunity to log the test as skipped rather than the test - just disappearing. - */ - const maybeMarkAsOnly = (test) => { - return Object.assign(Object.assign({}, test), { only: (0, dependencyConstraints_1.satisfiesAllDependencyConstraints)(test.dependencyConstraints) }); - }; - tests.valid = tests.valid.map(maybeMarkAsOnly); - tests.invalid = tests.invalid.map(maybeMarkAsOnly); - } - else { - // On older versions we just fallback to raw array filtering like SAVAGES - tests.valid = tests.valid.filter(test => (0, dependencyConstraints_1.satisfiesAllDependencyConstraints)(test.dependencyConstraints)); - tests.invalid = tests.invalid.filter(test => (0, dependencyConstraints_1.satisfiesAllDependencyConstraints)(test.dependencyConstraints)); - } - } - } - super.run(name, rule, tests); - } -} -exports.RuleTester = RuleTester; -_a = RuleTester, _RuleTester_baseOptions = new WeakMap(); -_RuleTester_afterAll = { value: void 0 }; -/** - * Simple no-op tag to mark code samples as "should not format with prettier" - * for the internal/plugin-test-formatting lint rule - */ -function noFormat(raw, ...keys) { - return String.raw({ raw }, ...keys); -} -exports.noFormat = noFormat; -//# sourceMappingURL=RuleTester.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js.map b/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js.map deleted file mode 100644 index e66c9584..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/RuleTester.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RuleTester.js","sourceRoot":"","sources":["../../../src/eslint-utils/rule-tester/RuleTester.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oDAA4B;AAC5B,sDAA+D;AAC/D,2CAA6B;AAC7B,+CAAiC;AAKjC,2EAA6D;AAC7D,4CAAyC;AAEzC,mEAA4E;AAE5E,MAAM,gBAAgB,GAAG,2BAA2B,CAAC;AACrD,MAAM,aAAa,GAAG,sFAAsF,gBAAgB,EAAE,CAAC;AAqC/H,SAAS,kBAAkB,CACzB,KAAc;IAId,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,IAAI,IAAI;QACb,MAAM,IAAI,KAAK;QACf,OAAQ,KAAiC,CAAC,IAAI,KAAK,UAAU,CAC9D,CAAC;AACJ,CAAC;AAED,MAAM,UAAW,SAAQ,cAAc,CAAC,UAAU;IAIhD;;;OAGG;IACH,MAAM,KAAK,QAAQ;;QACjB,OAAO,CACL,MAAA,uBAAA,IAAI,gCAAU,mCACd,CAAC,OAAO,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAS,EAAE,GAAE,CAAC,CAAC,CAC7D,CAAC;IACJ,CAAC;IACD,MAAM,KAAK,QAAQ,CAAC,KAA2B;QAC7C,uBAAA,IAAI,MAAa,KAAK,4BAAA,CAAC;IACzB,CAAC;IAED,IAAY,UAAU;QACpB,8EAA8E;QAC9E,OAAO,IAAI,CAAC,WAAgC,CAAC;IAC/C,CAAC;IAED,YAAY,WAA6B;;QACvC,0EAA0E;QAC1E,MAAM,EAAE,qBAAqB,EAAE,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"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts b/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts deleted file mode 100644 index e1152a20..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import * as semver from 'semver'; -interface SemverVersionConstraint { - readonly range: string; - readonly options?: Parameters[2]; -} -type AtLeastVersionConstraint = `${number}` | `${number}.${number}` | `${number}.${number}.${number}` | `${number}.${number}.${number}-${string}`; -type VersionConstraint = SemverVersionConstraint | AtLeastVersionConstraint; -interface DependencyConstraint { - /** - * Passing a string for the value is shorthand for a '>=' constraint - */ - readonly [packageName: string]: VersionConstraint; -} -declare function satisfiesAllDependencyConstraints(dependencyConstraints: DependencyConstraint | undefined): boolean; -export { satisfiesAllDependencyConstraints }; -export type { DependencyConstraint }; -//# sourceMappingURL=dependencyConstraints.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts.map b/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts.map deleted file mode 100644 index e6a56fd6..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dependencyConstraints.d.ts","sourceRoot":"","sources":["../../../src/eslint-utils/rule-tester/dependencyConstraints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,UAAU,uBAAuB;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3D;AACD,KAAK,wBAAwB,GACzB,GAAG,MAAM,EAAE,GACX,GAAG,MAAM,IAAI,MAAM,EAAE,GACrB,GAAG,MAAM,IAAI,MAAM,IAAI,MAAM,EAAE,GAC/B,GAAG,MAAM,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;AAC9C,KAAK,iBAAiB,GAAG,uBAAuB,GAAG,wBAAwB,CAAC;AAC5E,UAAU,oBAAoB;IAC5B;;OAEG;IACH,QAAQ,EAAE,WAAW,EAAE,MAAM,GAAG,iBAAiB,CAAC;CACnD;AA0BD,iBAAS,iCAAiC,CACxC,qBAAqB,EAAE,oBAAoB,GAAG,SAAS,GACtD,OAAO,CAcT;AAED,OAAO,EAAE,iCAAiC,EAAE,CAAC;AAC7C,YAAY,EAAE,oBAAoB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.js b/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.js deleted file mode 100644 index 93dd5fdd..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.satisfiesAllDependencyConstraints = void 0; -const semver = __importStar(require("semver")); -const BASE_SATISFIES_OPTIONS = { - includePrerelease: true, -}; -function satisfiesDependencyConstraint(packageName, constraintIn) { - const constraint = typeof constraintIn === 'string' - ? { - range: `>=${constraintIn}`, - } - : constraintIn; - return semver.satisfies(require(`${packageName}/package.json`).version, constraint.range, typeof constraint.options === 'object' - ? Object.assign(Object.assign({}, BASE_SATISFIES_OPTIONS), constraint.options) : constraint.options); -} -function satisfiesAllDependencyConstraints(dependencyConstraints) { - if (dependencyConstraints == null) { - return true; - } - for (const [packageName, constraint] of Object.entries(dependencyConstraints)) { - if (!satisfiesDependencyConstraint(packageName, constraint)) { - return false; - } - } - return true; -} -exports.satisfiesAllDependencyConstraints = satisfiesAllDependencyConstraints; -//# sourceMappingURL=dependencyConstraints.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.js.map b/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.js.map deleted file mode 100644 index 1dc1ae4d..00000000 --- a/node_modules/@typescript-eslint/utils/dist/eslint-utils/rule-tester/dependencyConstraints.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dependencyConstraints.js","sourceRoot":"","sources":["../../../src/eslint-utils/rule-tester/dependencyConstraints.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAmBjC,MAAM,sBAAsB,GAAwB;IAClD,iBAAiB,EAAE,IAAI;CACxB,CAAC;AAEF,SAAS,6BAA6B,CACpC,WAAmB,EACnB,YAA0C;IAE1C,MAAM,UAAU,GACd,OAAO,YAAY,KAAK,QAAQ;QAC9B,CAAC,CAAC;YACE,KAAK,EAAE,KAAK,YAAY,EAAE;SAC3B;QACH,CAAC,CAAC,YAAY,CAAC;IAEnB,OAAO,MAAM,CAAC,SAAS,CACpB,OAAO,CAAC,GAAG,WAAW,eAAe,CAAyB,CAAC,OAAO,EACvE,UAAU,CAAC,KAAK,EAChB,OAAO,UAAU,CAAC,OAAO,KAAK,QAAQ;QACpC,CAAC,iCAAM,sBAAsB,GAAK,UAAU,CAAC,OAAO,EACpD,CAAC,CAAC,UAAU,CAAC,OAAO,CACvB,CAAC;AACJ,CAAC;AAED,SAAS,iCAAiC,CACxC,qBAAuD;IAEvD,IAAI,qBAAqB,IAAI,IAAI,EAAE;QACjC,OAAO,IAAI,CAAC;KACb;IAED,KAAK,MAAM,CAAC,WAAW,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC,OAAO,CACpD,qBAAqB,CACtB,EAAE;QACD,IAAI,CAAC,6BAA6B,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE;YAC3D,OAAO,KAAK,CAAC;SACd;KACF;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAEQ,8EAAiC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/index.d.ts b/node_modules/@typescript-eslint/utils/dist/index.d.ts deleted file mode 100644 index b8a60a9b..00000000 --- a/node_modules/@typescript-eslint/utils/dist/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import * as ASTUtils from './ast-utils'; -import * as ESLintUtils from './eslint-utils'; -import * as JSONSchema from './json-schema'; -import * as TSESLint from './ts-eslint'; -import * as TSESLintScope from './ts-eslint-scope'; -export { ASTUtils, ESLintUtils, JSONSchema, TSESLint, TSESLintScope }; -export * from './ts-estree'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/index.d.ts.map b/node_modules/@typescript-eslint/utils/dist/index.d.ts.map deleted file mode 100644 index 822db074..00000000 --- a/node_modules/@typescript-eslint/utils/dist/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC;AACtE,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/index.js b/node_modules/@typescript-eslint/utils/dist/index.js deleted file mode 100644 index 761e83c8..00000000 --- a/node_modules/@typescript-eslint/utils/dist/index.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSESLintScope = exports.TSESLint = exports.JSONSchema = exports.ESLintUtils = exports.ASTUtils = void 0; -const ASTUtils = __importStar(require("./ast-utils")); -exports.ASTUtils = ASTUtils; -const ESLintUtils = __importStar(require("./eslint-utils")); -exports.ESLintUtils = ESLintUtils; -const JSONSchema = __importStar(require("./json-schema")); -exports.JSONSchema = JSONSchema; -const TSESLint = __importStar(require("./ts-eslint")); -exports.TSESLint = TSESLint; -const TSESLintScope = __importStar(require("./ts-eslint-scope")); -exports.TSESLintScope = TSESLintScope; -__exportStar(require("./ts-estree"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/index.js.map b/node_modules/@typescript-eslint/utils/dist/index.js.map deleted file mode 100644 index 00bd567f..00000000 --- a/node_modules/@typescript-eslint/utils/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAAwC;AAM/B,4BAAQ;AALjB,4DAA8C;AAK3B,kCAAW;AAJ9B,0DAA4C;AAIZ,gCAAU;AAH1C,sDAAwC;AAGI,4BAAQ;AAFpD,iEAAmD;AAEG,sCAAa;AACnE,8CAA4B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts b/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts deleted file mode 100644 index bd6f29cd..00000000 --- a/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { JSONSchema4, JSONSchema4Type, JSONSchema4TypeName, JSONSchema4Version, JSONSchema6, JSONSchema6Definition, JSONSchema6Type, JSONSchema6TypeName, JSONSchema6Version, JSONSchema7, JSONSchema7Array, JSONSchema7Definition, JSONSchema7Type, JSONSchema7TypeName, JSONSchema7Version, ValidationError, ValidationResult, } from 'json-schema'; -//# sourceMappingURL=json-schema.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts.map b/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts.map deleted file mode 100644 index abb3e923..00000000 --- a/node_modules/@typescript-eslint/utils/dist/json-schema.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../src/json-schema.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,GACjB,MAAM,aAAa,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/json-schema.js b/node_modules/@typescript-eslint/utils/dist/json-schema.js deleted file mode 100644 index 289fb57e..00000000 --- a/node_modules/@typescript-eslint/utils/dist/json-schema.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -// Note - @types/json-schema@7.0.4 added some function declarations to the type package -// If we do export *, then it will also export these function declarations. -// This will cause typescript to not scrub the require from the build, breaking anyone who doesn't have it as a dependency -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=json-schema.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/json-schema.js.map b/node_modules/@typescript-eslint/utils/dist/json-schema.js.map deleted file mode 100644 index 51d0b026..00000000 --- a/node_modules/@typescript-eslint/utils/dist/json-schema.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"json-schema.js","sourceRoot":"","sources":["../src/json-schema.ts"],"names":[],"mappings":";AAAA,uFAAuF;AACvF,2EAA2E;AAC3E,0HAA0H"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Definition.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Definition.d.ts deleted file mode 100644 index 345485b1..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Definition.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { TSESTree } from '../ts-estree'; -interface Definition { - type: string; - name: TSESTree.BindingName; - node: TSESTree.Node; - parent?: TSESTree.Node | null; - index?: number | null; - kind?: string | null; - rest?: boolean; -} -interface DefinitionConstructor { - new (type: string, name: TSESTree.BindingName | TSESTree.PropertyName, node: TSESTree.Node, parent?: TSESTree.Node | null, index?: number | null, kind?: string | null): Definition; -} -declare const Definition: DefinitionConstructor; -interface ParameterDefinition extends Definition { -} -declare const ParameterDefinition: DefinitionConstructor & (new (name: TSESTree.Node, node: TSESTree.Node, index?: number | null, rest?: boolean) => ParameterDefinition); -export { Definition, ParameterDefinition }; -//# sourceMappingURL=Definition.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Definition.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Definition.d.ts.map deleted file mode 100644 index e511a86c..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Definition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Definition.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/Definition.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,UAAU,UAAU;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC,WAAW,CAAC;IAC3B,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AACD,UAAU,qBAAqB;IAC7B,KACE,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC,YAAY,EAClD,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,MAAM,CAAC,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,EAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,EACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GACnB,UAAU,CAAC;CACf;AACD,QAAA,MAAM,UAAU,uBAA4C,CAAC;AAG7D,UAAU,mBAAoB,SAAQ,UAAU;CAAG;AACnD,QAAA,MAAM,mBAAmB,sCAGb,SAAS,IAAI,QACb,SAAS,IAAI,UACX,MAAM,GAAG,IAAI,SACd,OAAO,KACb,mBAAmB,CACvB,CAAC;AAEJ,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Definition.js b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Definition.js deleted file mode 100644 index dd3de1f5..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Definition.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ParameterDefinition = exports.Definition = void 0; -const definition_1 = require("eslint-scope/lib/definition"); -const Definition = definition_1.Definition; -exports.Definition = Definition; -const ParameterDefinition = definition_1.ParameterDefinition; -exports.ParameterDefinition = ParameterDefinition; -//# sourceMappingURL=Definition.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Definition.js.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Definition.js.map deleted file mode 100644 index e0d2a392..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Definition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Definition.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/Definition.ts"],"names":[],"mappings":";;;AAAA,4DAGqC;AAuBrC,MAAM,UAAU,GAAG,uBAAyC,CAAC;AAcpD,gCAAU;AAVnB,MAAM,mBAAmB,GACvB,gCAOC,CAAC;AAEiB,kDAAmB"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.d.ts deleted file mode 100644 index 55c4adf3..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { TSESTree } from '../ts-estree'; -type PatternVisitorCallback = (pattern: TSESTree.Identifier, info: { - rest: boolean; - topLevel: boolean; - assignments: TSESTree.AssignmentPattern[]; -}) => void; -interface PatternVisitorOptions { - processRightHandNodes?: boolean; -} -interface Visitor { - visitChildren(node?: T): void; - visit(node?: T): void; -} -export { PatternVisitorCallback, PatternVisitorOptions, Visitor }; -//# sourceMappingURL=Options.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.d.ts.map deleted file mode 100644 index 51ee72bb..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/Options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,KAAK,sBAAsB,GAAG,CAC5B,OAAO,EAAE,QAAQ,CAAC,UAAU,EAC5B,IAAI,EAAE;IACJ,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,QAAQ,CAAC,iBAAiB,EAAE,CAAC;CAC3C,KACE,IAAI,CAAC;AAEV,UAAU,qBAAqB;IAC7B,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,UAAU,OAAO;IACf,aAAa,CAAC,CAAC,SAAS,QAAQ,CAAC,QAAQ,GAAG,SAAS,GAAG,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IAC9E,KAAK,CAAC,CAAC,SAAS,QAAQ,CAAC,QAAQ,GAAG,SAAS,GAAG,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;CACvE;AAED,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,OAAO,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.js b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.js deleted file mode 100644 index 08cea894..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Options.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.js.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.js.map deleted file mode 100644 index 8d8fb9ec..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Options.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Options.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/Options.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/PatternVisitor.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/PatternVisitor.d.ts deleted file mode 100644 index f6c28382..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/PatternVisitor.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type { TSESTree } from '../ts-estree'; -import type { PatternVisitorCallback, PatternVisitorOptions, Visitor } from './Options'; -import type { ScopeManager } from './ScopeManager'; -interface PatternVisitor extends Visitor { - options: PatternVisitorOptions; - scopeManager: ScopeManager; - parent?: TSESTree.Node; - rightHandNodes: TSESTree.Node[]; - Identifier(pattern: TSESTree.Node): void; - Property(property: TSESTree.Node): void; - ArrayPattern(pattern: TSESTree.Node): void; - AssignmentPattern(pattern: TSESTree.Node): void; - RestElement(pattern: TSESTree.Node): void; - MemberExpression(node: TSESTree.Node): void; - SpreadElement(node: TSESTree.Node): void; - ArrayExpression(node: TSESTree.Node): void; - AssignmentExpression(node: TSESTree.Node): void; - CallExpression(node: TSESTree.Node): void; -} -declare const PatternVisitor: { - new (options: PatternVisitorOptions, rootPattern: TSESTree.BaseNode, callback: PatternVisitorCallback): PatternVisitor; - isPattern(node: TSESTree.Node): boolean; -}; -export { PatternVisitor }; -//# sourceMappingURL=PatternVisitor.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/PatternVisitor.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/PatternVisitor.d.ts.map deleted file mode 100644 index c4382cbe..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/PatternVisitor.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PatternVisitor.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/PatternVisitor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACrB,OAAO,EACR,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,UAAU,cAAe,SAAQ,OAAO;IACtC,OAAO,EAAE,qBAAqB,CAAC;IAC/B,YAAY,EAAE,YAAY,CAAC;IAC3B,MAAM,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC;IACvB,cAAc,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC;IAEhC,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IACxC,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAC3C,iBAAiB,CAAC,OAAO,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAChD,WAAW,CAAC,OAAO,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAC1C,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAC5C,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IACzC,eAAe,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAC3C,oBAAoB,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAChD,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;CAC3C;AACD,QAAA,MAAM,cAAc;kBAEP,qBAAqB,eACjB,SAAS,QAAQ,YACpB,sBAAsB,GAC/B,cAAc;oBAGD,SAAS,IAAI,GAAG,OAAO;CACxC,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/PatternVisitor.js b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/PatternVisitor.js deleted file mode 100644 index 43aa849a..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/PatternVisitor.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PatternVisitor = void 0; -const pattern_visitor_1 = __importDefault(require("eslint-scope/lib/pattern-visitor")); -const PatternVisitor = pattern_visitor_1.default; -exports.PatternVisitor = PatternVisitor; -//# sourceMappingURL=PatternVisitor.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/PatternVisitor.js.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/PatternVisitor.js.map deleted file mode 100644 index c5e1e412..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/PatternVisitor.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PatternVisitor.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/PatternVisitor.ts"],"names":[],"mappings":";;;;;;AAAA,uFAAoE;AA2BpE,MAAM,cAAc,GAAG,yBAStB,CAAC;AAEO,wCAAc"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts deleted file mode 100644 index 535bdf14..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import type { TSESTree } from '../ts-estree'; -import type { Scope } from './Scope'; -import type { Variable } from './Variable'; -export type ReferenceFlag = 0x1 | 0x2 | 0x3; -interface Reference { - identifier: TSESTree.Identifier; - from: Scope; - resolved: Variable | null; - writeExpr: TSESTree.Node | null; - init: boolean; - partial: boolean; - __maybeImplicitGlobal: boolean; - tainted?: boolean; - typeMode?: boolean; - isWrite(): boolean; - isRead(): boolean; - isWriteOnly(): boolean; - isReadOnly(): boolean; - isReadWrite(): boolean; -} -declare const Reference: { - new (identifier: TSESTree.Identifier, scope: Scope, flag?: ReferenceFlag, writeExpr?: TSESTree.Node | null, maybeImplicitGlobal?: boolean, partial?: boolean, init?: boolean): Reference; - READ: 0x1; - WRITE: 0x2; - RW: 0x3; -}; -export { Reference }; -//# sourceMappingURL=Reference.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts.map deleted file mode 100644 index d2f7bcdb..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Reference.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/Reference.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,aAAa,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE5C,UAAU,SAAS;IACjB,UAAU,EAAE,QAAQ,CAAC,UAAU,CAAC;IAChC,IAAI,EAAE,KAAK,CAAC;IACZ,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IAEd,OAAO,EAAE,OAAO,CAAC;IACjB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,OAAO,IAAI,OAAO,CAAC;IACnB,MAAM,IAAI,OAAO,CAAC;IAClB,WAAW,IAAI,OAAO,CAAC;IACvB,UAAU,IAAI,OAAO,CAAC;IACtB,WAAW,IAAI,OAAO,CAAC;CACxB;AACD,QAAA,MAAM,SAAS;qBAEC,SAAS,UAAU,SACxB,KAAK,SACL,aAAa,cACR,SAAS,IAAI,GAAG,IAAI,wBACV,OAAO,YACnB,OAAO,SACV,OAAO,GACb,SAAS;UAEN,GAAG;WACF,GAAG;QACN,GAAG;CACR,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.js b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.js deleted file mode 100644 index 71a4559a..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Reference = void 0; -const reference_1 = __importDefault(require("eslint-scope/lib/reference")); -const Reference = reference_1.default; -exports.Reference = Reference; -//# sourceMappingURL=Reference.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.js.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.js.map deleted file mode 100644 index e898ac38..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Reference.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Reference.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/Reference.ts"],"names":[],"mappings":";;;;;;AAAA,2EAAyD;AA0BzD,MAAM,SAAS,GAAG,mBAcjB,CAAC;AAEO,8BAAS"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Referencer.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Referencer.d.ts deleted file mode 100644 index 75b109ee..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Referencer.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -import type { TSESTree } from '../ts-estree'; -import type { PatternVisitorCallback, PatternVisitorOptions, Visitor } from './Options'; -import type { Scope } from './Scope'; -import type { ScopeManager } from './ScopeManager'; -interface Referencer extends Visitor { - isInnerMethodDefinition: boolean; - options: any; - scopeManager: SM; - parent?: TSESTree.Node; - currentScope(): Scope; - close(node: TSESTree.Node): void; - pushInnerMethodDefinition(isInnerMethodDefinition: boolean): boolean; - popInnerMethodDefinition(isInnerMethodDefinition: boolean): void; - referencingDefaultValue(pattern: any, assignments: any, maybeImplicitGlobal: any, init: boolean): void; - visitPattern(node: TSESTree.Node, options: PatternVisitorOptions, callback: PatternVisitorCallback): void; - visitFunction(node: TSESTree.Node): void; - visitClass(node: TSESTree.Node): void; - visitProperty(node: TSESTree.Node): void; - visitForIn(node: TSESTree.Node): void; - visitVariableDeclaration(variableTargetScope: any, type: any, node: TSESTree.Node, index: any): void; - AssignmentExpression(node: TSESTree.Node): void; - CatchClause(node: TSESTree.Node): void; - Program(node: TSESTree.Program): void; - Identifier(node: TSESTree.Identifier): void; - UpdateExpression(node: TSESTree.Node): void; - MemberExpression(node: TSESTree.Node): void; - Property(node: TSESTree.Node): void; - MethodDefinition(node: TSESTree.Node): void; - BreakStatement(): void; - ContinueStatement(): void; - LabeledStatement(node: TSESTree.Node): void; - ForStatement(node: TSESTree.Node): void; - ClassExpression(node: TSESTree.Node): void; - ClassDeclaration(node: TSESTree.Node): void; - CallExpression(node: TSESTree.Node): void; - BlockStatement(node: TSESTree.Node): void; - ThisExpression(): void; - WithStatement(node: TSESTree.Node): void; - VariableDeclaration(node: TSESTree.Node): void; - SwitchStatement(node: TSESTree.Node): void; - FunctionDeclaration(node: TSESTree.Node): void; - FunctionExpression(node: TSESTree.Node): void; - ForOfStatement(node: TSESTree.Node): void; - ForInStatement(node: TSESTree.Node): void; - ArrowFunctionExpression(node: TSESTree.Node): void; - ImportDeclaration(node: TSESTree.Node): void; - visitExportDeclaration(node: TSESTree.Node): void; - ExportDeclaration(node: TSESTree.Node): void; - ExportNamedDeclaration(node: TSESTree.Node): void; - ExportSpecifier(node: TSESTree.Node): void; - MetaProperty(): void; -} -declare const Referencer: new (options: any, scopeManager: SM) => Referencer; -export { Referencer }; -//# sourceMappingURL=Referencer.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Referencer.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Referencer.d.ts.map deleted file mode 100644 index bf1f9d84..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Referencer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Referencer.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/Referencer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACrB,OAAO,EACR,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,UAAU,UAAU,CAAC,EAAE,SAAS,YAAY,CAAE,SAAQ,OAAO;IAC3D,uBAAuB,EAAE,OAAO,CAAC;IACjC,OAAO,EAAE,GAAG,CAAC;IACb,YAAY,EAAE,EAAE,CAAC;IACjB,MAAM,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC;IAEvB,YAAY,IAAI,KAAK,CAAC;IACtB,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IACjC,yBAAyB,CAAC,uBAAuB,EAAE,OAAO,GAAG,OAAO,CAAC;IACrE,wBAAwB,CAAC,uBAAuB,EAAE,OAAO,GAAG,IAAI,CAAC;IAEjE,uBAAuB,CACrB,OAAO,EAAE,GAAG,EACZ,WAAW,EAAE,GAAG,EAChB,mBAAmB,EAAE,GAAG,EACxB,IAAI,EAAE,OAAO,GACZ,IAAI,CAAC;IACR,YAAY,CACV,IAAI,EAAE,QAAQ,CAAC,IAAI,EACnB,OAAO,EAAE,qBAAqB,EAC9B,QAAQ,EAAE,sBAAsB,GAC/B,IAAI,CAAC;IACR,aAAa,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC;IACzC,UAAU,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI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eslint/utils/dist/ts-eslint-scope/Referencer.js deleted file mode 100644 index 4aafa5aa..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Referencer.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Referencer = void 0; -/* eslint-disable @typescript-eslint/no-explicit-any */ -const referencer_1 = __importDefault(require("eslint-scope/lib/referencer")); -const Referencer = referencer_1.default; -exports.Referencer = Referencer; -//# sourceMappingURL=Referencer.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Referencer.js.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Referencer.js.map deleted file mode 100644 index 75300b31..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Referencer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Referencer.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/Referencer.ts"],"names":[],"mappings":";;;;;;AAAA,uDAAuD;AACvD,6EAA2D;AA4E3D,MAAM,UAAU,GAAG,oBAElB,CAAC;AAEO,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.d.ts deleted file mode 100644 index cd92863a..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.d.ts +++ /dev/null @@ -1,103 +0,0 @@ -import type { TSESTree } from '../ts-estree'; -import type { Definition } from './Definition'; -import type { Reference, ReferenceFlag } from './Reference'; -import type { ScopeManager } from './ScopeManager'; -import type { Variable } from './Variable'; -type ScopeType = 'block' | 'catch' | 'class' | 'for' | 'function' | 'function-expression-name' | 'global' | 'module' | 'switch' | 'with' | 'TDZ' | 'enum' | 'empty-function'; -interface Scope { - type: ScopeType; - isStrict: boolean; - upper: Scope | null; - childScopes: Scope[]; - variableScope: Scope; - block: TSESTree.Node; - variables: Variable[]; - set: Map; - references: Reference[]; - through: Reference[]; - thisFound?: boolean; - taints: Map; - functionExpressionScope: boolean; - __left: Reference[]; - __shouldStaticallyClose(scopeManager: ScopeManager): boolean; - __shouldStaticallyCloseForGlobal(ref: any): boolean; - __staticCloseRef(ref: any): void; - __dynamicCloseRef(ref: any): void; - __globalCloseRef(ref: any): void; - __close(scopeManager: ScopeManager): Scope; - __isValidResolution(ref: any, variable: any): variable is Variable; - __resolve(ref: Reference): boolean; - __delegateToUpperScope(ref: any): void; - __addDeclaredVariablesOfNode(variable: any, node: TSESTree.Node): void; - __defineGeneric(name: string, set: Map, variables: Variable[], node: TSESTree.Identifier, def: Definition): void; - __define(node: TSESTree.Node, def: Definition): void; - __referencing(node: TSESTree.Node, assign?: ReferenceFlag, writeExpr?: TSESTree.Node, maybeImplicitGlobal?: any, partial?: any, init?: any): void; - __detectEval(): void; - __detectThis(): void; - __isClosed(): boolean; - /** - * returns resolved {Reference} - * @method Scope#resolve - * @param {Espree.Identifier} ident - identifier to be resolved. - * @returns {Reference} reference - */ - resolve(ident: TSESTree.Node): Reference; - /** - * returns this scope is static - * @method Scope#isStatic - * @returns {boolean} static - */ - isStatic(): boolean; - /** - * returns this scope has materialized arguments - * @method Scope#isArgumentsMaterialized - * @returns {boolean} arguments materialized - */ - isArgumentsMaterialized(): boolean; - /** - * returns this scope has materialized `this` reference - * @method Scope#isThisMaterialized - * @returns {boolean} this materialized - */ - isThisMaterialized(): boolean; - isUsedName(name: any): boolean; -} -interface ScopeConstructor { - new (scopeManager: ScopeManager, type: ScopeType, upperScope: Scope | null, block: TSESTree.Node | null, isMethodDefinition: boolean): Scope; -} -declare const Scope: ScopeConstructor; -interface ScopeChildConstructorWithUpperScope { - new (scopeManager: ScopeManager, upperScope: Scope, block: TSESTree.Node | null): T; -} -interface GlobalScope extends Scope { -} -declare const GlobalScope: ScopeConstructor & (new (scopeManager: ScopeManager, block: TSESTree.Node | null) => GlobalScope); -interface ModuleScope extends Scope { -} -declare const ModuleScope: ScopeConstructor & ScopeChildConstructorWithUpperScope; -interface FunctionExpressionNameScope extends Scope { -} -declare const FunctionExpressionNameScope: ScopeConstructor & ScopeChildConstructorWithUpperScope; -interface CatchScope extends Scope { -} -declare const CatchScope: ScopeConstructor & ScopeChildConstructorWithUpperScope; -interface WithScope extends Scope { -} -declare const WithScope: ScopeConstructor & ScopeChildConstructorWithUpperScope; -interface BlockScope extends Scope { -} -declare const BlockScope: ScopeConstructor & ScopeChildConstructorWithUpperScope; -interface SwitchScope extends Scope { -} -declare const SwitchScope: ScopeConstructor & ScopeChildConstructorWithUpperScope; -interface FunctionScope extends Scope { -} -declare const FunctionScope: ScopeConstructor & (new (scopeManager: ScopeManager, upperScope: Scope, block: TSESTree.Node | null, isMethodDefinition: boolean) => FunctionScope); -interface ForScope extends Scope { -} -declare const ForScope: ScopeConstructor & ScopeChildConstructorWithUpperScope; -interface ClassScope extends Scope { -} -declare const ClassScope: ScopeConstructor & ScopeChildConstructorWithUpperScope; -export { ScopeType, Scope, GlobalScope, ModuleScope, FunctionExpressionNameScope, CatchScope, WithScope, BlockScope, SwitchScope, FunctionScope, ForScope, ClassScope, }; -//# sourceMappingURL=Scope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.d.ts.map deleted file mode 100644 index 3dd17db9..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/Scope.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,O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,SAAQ,KAAK;CAAG;AACrC,QAAA,MAAM,UAAU,oEACiC,CAAC;AAElD,OAAO,EACL,SAAS,EACT,KAAK,EACL,WAAW,EACX,WAAW,EACX,2BAA2B,EAC3B,UAAU,EACV,SAAS,EACT,UAAU,EACV,WAAW,EACX,aAAa,EACb,QAAQ,EACR,UAAU,GACX,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.js b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.js deleted file mode 100644 index f4f604fc..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -/* eslint-disable @typescript-eslint/no-empty-interface, @typescript-eslint/no-explicit-any */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ClassScope = exports.ForScope = exports.FunctionScope = exports.SwitchScope = exports.BlockScope = exports.WithScope = exports.CatchScope = exports.FunctionExpressionNameScope = exports.ModuleScope = exports.GlobalScope = exports.Scope = void 0; -const scope_1 = require("eslint-scope/lib/scope"); -const Scope = scope_1.Scope; -exports.Scope = Scope; -const GlobalScope = scope_1.GlobalScope; -exports.GlobalScope = GlobalScope; -const ModuleScope = scope_1.ModuleScope; -exports.ModuleScope = ModuleScope; -const FunctionExpressionNameScope = scope_1.FunctionExpressionNameScope; -exports.FunctionExpressionNameScope = FunctionExpressionNameScope; -const CatchScope = scope_1.CatchScope; -exports.CatchScope = CatchScope; -const WithScope = scope_1.WithScope; -exports.WithScope = WithScope; -const BlockScope = scope_1.BlockScope; -exports.BlockScope = BlockScope; -const SwitchScope = scope_1.SwitchScope; -exports.SwitchScope = SwitchScope; -const FunctionScope = scope_1.FunctionScope; -exports.FunctionScope = FunctionScope; -const ForScope = scope_1.ForScope; -exports.ForScope = ForScope; -const ClassScope = scope_1.ClassScope; -exports.ClassScope = ClassScope; -//# sourceMappingURL=Scope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.js.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.js.map deleted file mode 100644 index f47b9eac..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Scope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/Scope.ts"],"names":[],"mappings":";AAAA,8FAA8F;;;AAE9F,kDAYgC;AA+GhC,MAAM,KAAK,GAAG,aAA+B,CAAC;AA4D5C,sBAAK;AAjDP,MAAM,WAAW,GAAG,mBAEnB,CAAC;AAgDA,kCAAW;AA7Cb,MAAM,WAAW,GAAG,mBAC8B,CAAC;AA6CjD,kCAAW;AA1Cb,MAAM,2BAA2B,GAC/B,mCACkE,CAAC;AAyCnE,kEAA2B;AAtC7B,MAAM,UAAU,GAAG,kBAC8B,CAAC;AAsChD,gCAAU;AAnCZ,MAAM,SAAS,GAAG,iBAC8B,CAAC;AAmC/C,8BAAS;AAhCX,MAAM,UAAU,GAAG,kBAC8B,CAAC;AAgChD,gCAAU;AA7BZ,MAAM,WAAW,GAAG,mBAC8B,CAAC;AA6BjD,kCAAW;AA1Bb,MAAM,aAAa,GAAG,qBAOrB,CAAC;AAoBA,sCAAa;AAjBf,MAAM,QAAQ,GAAG,gBAC8B,CAAC;AAiB9C,4BAAQ;AAdV,MAAM,UAAU,GAAG,kBAC8B,CAAC;AAchD,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/ScopeManager.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/ScopeManager.d.ts deleted file mode 100644 index 8cd3f7d9..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/ScopeManager.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -import type { EcmaVersion } from '../ts-eslint'; -import type { TSESTree } from '../ts-estree'; -import type { Scope } from './Scope'; -import type { Variable } from './Variable'; -interface ScopeManagerOptions { - directive?: boolean; - optimistic?: boolean; - ignoreEval?: boolean; - nodejsScope?: boolean; - sourceType?: 'module' | 'script'; - impliedStrict?: boolean; - ecmaVersion?: EcmaVersion; -} -interface ScopeManager { - __options: ScopeManagerOptions; - __currentScope: Scope; - __nodeToScope: WeakMap; - __declaredVariables: WeakMap; - scopes: Scope[]; - globalScope: Scope; - __useDirective(): boolean; - __isOptimistic(): boolean; - __ignoreEval(): boolean; - __isNodejsScope(): boolean; - isModule(): boolean; - isImpliedStrict(): boolean; - isStrictModeSupported(): boolean; - __get(node: TSESTree.Node): Scope | undefined; - getDeclaredVariables(node: TSESTree.Node): Variable[]; - acquire(node: TSESTree.Node, inner?: boolean): Scope | null; - acquireAll(node: TSESTree.Node): Scope | null; - release(node: TSESTree.Node, inner?: boolean): Scope | null; - attach(): void; - detach(): void; - __nestScope(scope: T): T; - __nestGlobalScope(node: TSESTree.Node): Scope; - __nestBlockScope(node: TSESTree.Node): Scope; - __nestFunctionScope(node: TSESTree.Node, isMethodDefinition: boolean): Scope; - __nestForScope(node: TSESTree.Node): Scope; - __nestCatchScope(node: TSESTree.Node): Scope; - __nestWithScope(node: TSESTree.Node): Scope; - __nestClassScope(node: TSESTree.Node): Scope; - __nestSwitchScope(node: TSESTree.Node): Scope; - __nestModuleScope(node: TSESTree.Node): Scope; - __nestFunctionExpressionNameScope(node: TSESTree.Node): Scope; - __isES6(): boolean; -} -declare const ScopeManager: new (options: ScopeManagerOptions) => ScopeManager; -export { ScopeManager, ScopeManagerOptions }; -//# sourceMappingURL=ScopeManager.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/ScopeManager.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/ScopeManager.d.ts.map deleted file mode 100644 index a4240aa7..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/ScopeManager.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ScopeManager.d.ts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AAC;CACpB;AACD,QAAA,MAAM,YAAY,gBACF,mBAAmB,KAAG,YACrC,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/ScopeManager.js b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/ScopeManager.js deleted file mode 100644 index c886eb72..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/ScopeManager.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ScopeManager = void 0; -const scope_manager_1 = __importDefault(require("eslint-scope/lib/scope-manager")); -const ScopeManager = scope_manager_1.default; -exports.ScopeManager = ScopeManager; -//# sourceMappingURL=ScopeManager.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/ScopeManager.js.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/ScopeManager.js.map deleted file mode 100644 index fc07790e..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/ScopeManager.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ScopeManager.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/ScopeManager.ts"],"names":[],"mappings":";;;;;;AAAA,mFAAgE;AAyDhE,MAAM,YAAY,GAAG,uBAEpB,CAAC;AAEO,oCAAY"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Variable.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Variable.d.ts deleted file mode 100644 index 1e4e99a4..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Variable.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { TSESTree } from '../ts-estree'; -import type { Definition } from './Definition'; -import type { Reference } from './Reference'; -import type { Scope } from './Scope'; -interface Variable { - name: string; - identifiers: TSESTree.Identifier[]; - references: Reference[]; - defs: Definition[]; - eslintUsed?: boolean; - stack?: unknown; - tainted?: boolean; - scope?: Scope; -} -declare const Variable: new () => Variable; -export { Variable }; -//# sourceMappingURL=Variable.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Variable.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Variable.d.ts.map deleted file mode 100644 index 166f748c..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Variable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Variable.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/Variable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,UAAU,QAAQ;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,QAAQ,CAAC,UAAU,EAAE,CAAC;IACnC,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,IAAI,EAAE,UAAU,EAAE,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,QAAA,MAAM,QAAQ,YACJ,QACT,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Variable.js b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Variable.js deleted file mode 100644 index c0fdac2b..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Variable.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Variable = void 0; -const variable_1 = __importDefault(require("eslint-scope/lib/variable")); -const Variable = variable_1.default; -exports.Variable = Variable; -//# sourceMappingURL=Variable.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Variable.js.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Variable.js.map deleted file mode 100644 index 5cef1128..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/Variable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Variable.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/Variable.ts"],"names":[],"mappings":";;;;;;AAAA,yEAAuD;AAkBvD,MAAM,QAAQ,GAAG,kBAEhB,CAAC;AAEO,4BAAQ"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/analyze.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/analyze.d.ts deleted file mode 100644 index 0a4bb624..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/analyze.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { EcmaVersion } from '../ts-eslint'; -import type { TSESTree } from '../ts-estree'; -import type { ScopeManager } from './ScopeManager'; -interface AnalysisOptions { - optimistic?: boolean; - directive?: boolean; - ignoreEval?: boolean; - nodejsScope?: boolean; - impliedStrict?: boolean; - fallback?: string | ((node: TSESTree.Node) => string[]); - sourceType?: 'script' | 'module'; - ecmaVersion?: EcmaVersion; -} -declare const analyze: (ast: TSESTree.Node, options?: AnalysisOptions) => ScopeManager; -export { analyze, AnalysisOptions }; -//# sourceMappingURL=analyze.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/analyze.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/analyze.d.ts.map deleted file mode 100644 index 433ede54..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/analyze.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/analyze.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,UAAU,eAAe;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC,CAAC;IACxD,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACjC,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AACD,QAAA,MAAM,OAAO,QACN,SAAS,IAAI,YACR,eAAe,KACtB,YAAY,CAAC;AAElB,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/analyze.js b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/analyze.js deleted file mode 100644 index 7fddff17..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/analyze.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.analyze = void 0; -const eslint_scope_1 = require("eslint-scope"); -const analyze = eslint_scope_1.analyze; -exports.analyze = analyze; -//# sourceMappingURL=analyze.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/analyze.js.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/analyze.js.map deleted file mode 100644 index 66bead5c..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/analyze.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"analyze.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/analyze.ts"],"names":[],"mappings":";;;AAAA,+CAAwD;AAgBxD,MAAM,OAAO,GAAG,sBAGC,CAAC;AAET,0BAAO"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/index.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/index.d.ts deleted file mode 100644 index c795b88d..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export * from './analyze'; -export * from './Definition'; -export * from './Options'; -export * from './PatternVisitor'; -export * from './Reference'; -export * from './Referencer'; -export * from './Scope'; -export * from './ScopeManager'; -export * from './Variable'; -export declare const version: string; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/index.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/index.d.ts.map deleted file mode 100644 index c9103cfe..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts-eslint-scope/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAE3B,eAAO,MAAM,OAAO,EAAE,MAAsB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/index.js b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/index.js deleted file mode 100644 index 828da312..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/index.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.version = void 0; -const eslint_scope_1 = require("eslint-scope"); -__exportStar(require("./analyze"), exports); -__exportStar(require("./Definition"), exports); -__exportStar(require("./Options"), exports); -__exportStar(require("./PatternVisitor"), exports); -__exportStar(require("./Reference"), exports); -__exportStar(require("./Referencer"), exports); -__exportStar(require("./Scope"), exports); -__exportStar(require("./ScopeManager"), exports); -__exportStar(require("./Variable"), exports); -exports.version = eslint_scope_1.version; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/index.js.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/index.js.map deleted file mode 100644 index 51076b27..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint-scope/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ts-eslint-scope/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+CAAwD;AAExD,4CAA0B;AAC1B,+CAA6B;AAC7B,4CAA0B;AAC1B,mDAAiC;AACjC,8CAA4B;AAC5B,+CAA6B;AAC7B,0CAAwB;AACxB,iDAA+B;AAC/B,6CAA2B;AAEd,QAAA,OAAO,GAAW,sBAAa,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts deleted file mode 100644 index 6a76e35c..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { AST_TOKEN_TYPES, TSESTree } from '../ts-estree'; -declare namespace AST { - type TokenType = AST_TOKEN_TYPES; - type Token = TSESTree.Token; - type SourceLocation = TSESTree.SourceLocation; - type Range = TSESTree.Range; -} -export { AST }; -//# sourceMappingURL=AST.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts.map deleted file mode 100644 index c9e5db27..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AST.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/AST.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE9D,kBAAU,GAAG,CAAC;IACZ,KAAY,SAAS,GAAG,eAAe,CAAC;IAExC,KAAY,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEnC,KAAY,cAAc,GAAG,QAAQ,CAAC,cAAc,CAAC;IAErD,KAAY,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;CACpC;AAED,OAAO,EAAE,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js b/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js deleted file mode 100644 index 323ed556..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -/* eslint-disable @typescript-eslint/no-namespace */ -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=AST.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js.map deleted file mode 100644 index 2aa7f04b..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/AST.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AST.js","sourceRoot":"","sources":["../../src/ts-eslint/AST.ts"],"names":[],"mappings":";AAAA,oDAAoD"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.d.ts deleted file mode 100644 index 6c95b44a..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.d.ts +++ /dev/null @@ -1,137 +0,0 @@ -import type { Linter } from './Linter'; -import type { RuleListener, RuleMetaData, RuleModule } from './Rule'; -declare namespace CLIEngine { - interface Options { - allowInlineConfig?: boolean; - baseConfig?: false | { - [name: string]: unknown; - }; - cache?: boolean; - cacheFile?: string; - cacheLocation?: string; - configFile?: string; - cwd?: string; - envs?: string[]; - errorOnUnmatchedPattern?: boolean; - extensions?: string[]; - fix?: boolean; - globals?: string[]; - ignore?: boolean; - ignorePath?: string; - ignorePattern?: string | string[]; - useEslintrc?: boolean; - parser?: string; - parserOptions?: Linter.ParserOptions; - plugins?: string[]; - resolvePluginsRelativeTo?: string; - rules?: { - [name: string]: Linter.RuleLevel | Linter.RuleLevelAndOptions; - }; - rulePaths?: string[]; - reportUnusedDisableDirectives?: boolean; - } - interface LintResult { - filePath: string; - messages: Linter.LintMessage[]; - errorCount: number; - warningCount: number; - fixableErrorCount: number; - fixableWarningCount: number; - output?: string; - source?: string; - } - interface LintReport { - results: LintResult[]; - errorCount: number; - warningCount: number; - fixableErrorCount: number; - fixableWarningCount: number; - usedDeprecatedRules: DeprecatedRuleUse[]; - } - interface DeprecatedRuleUse { - ruleId: string; - replacedBy: string[]; - } - interface LintResultData { - rulesMeta: { - [ruleId: string]: RuleMetaData; - }; - } - type Formatter = (results: LintResult[], data?: LintResultData) => string; -} -/** - * The underlying utility that runs the ESLint command line interface. This object will read the filesystem for - * configuration and file information but will not output any results. Instead, it allows you direct access to the - * important information so you can deal with the output yourself. - * @deprecated use the ESLint class instead - */ -declare const CLIEngine: { - new (options: CLIEngine.Options): { - /** - * Add a plugin by passing its configuration - * @param name Name of the plugin. - * @param pluginObject Plugin configuration object. - */ - addPlugin(name: string, pluginObject: Linter.Plugin): void; - /** - * Executes the current configuration on an array of file and directory names. - * @param patterns An array of file and directory names. - * @returns The results for all files that were linted. - */ - executeOnFiles(patterns: string[]): CLIEngine.LintReport; - /** - * Executes the current configuration on text. - * @param text A string of JavaScript code to lint. - * @param filename An optional string representing the texts filename. - * @param warnIgnored Always warn when a file is ignored - * @returns The results for the linting. - */ - executeOnText(text: string, filename?: string, warnIgnored?: boolean): CLIEngine.LintReport; - /** - * Returns a configuration object for the given file based on the CLI options. - * This is the same logic used by the ESLint CLI executable to determine configuration for each file it processes. - * @param filePath The path of the file to retrieve a config object for. - * @returns A configuration object for the file. - */ - getConfigForFile(filePath: string): Linter.Config; - /** - * Returns the formatter representing the given format. - * @param format The name of the format to load or the path to a custom formatter. - * @returns The formatter function. - */ - getFormatter(format?: string): CLIEngine.Formatter; - /** - * Checks if a given path is ignored by ESLint. - * @param filePath The path of the file to check. - * @returns Whether or not the given path is ignored. - */ - isPathIgnored(filePath: string): boolean; - /** - * Resolves the patterns passed into `executeOnFiles()` into glob-based patterns for easier handling. - * @param patterns The file patterns passed on the command line. - * @returns The equivalent glob patterns. - */ - resolveFileGlobPatterns(patterns: string[]): string[]; - getRules(): Map>; - }; - /** - * Returns results that only contains errors. - * @param results The results to filter. - * @returns The filtered results. - */ - getErrorResults(results: CLIEngine.LintResult[]): CLIEngine.LintResult[]; - /** - * Returns the formatter representing the given format or null if the `format` is not a string. - * @param format The name of the format to load or the path to a custom formatter. - * @returns The formatter function. - */ - getFormatter(format?: string): CLIEngine.Formatter; - /** - * Outputs fixes from the given results to files. - * @param report The report object created by CLIEngine. - */ - outputFixes(report: CLIEngine.LintReport): void; - version: string; -} | undefined; -export { CLIEngine }; -//# sourceMappingURL=CLIEngine.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.d.ts.map deleted file mode 100644 index dbb33e6c..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CLIEngine.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/CLIEngine.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAqGrE,kBAAU,SAAS,CAAC;IAClB,UAAiB,OAAO;QACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,UAAU,CAAC,EAAE,KAAK,GAAG;YAAE,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QACjD,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,GAAG,C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AAM,CAAC;QAC5B,mBAAmB,EAAE,iBAAiB,EAAE,CAAC;KAC1C;IAED,UAAiB,iBAAiB;QAChC,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,EAAE,CAAC;KACtB;IAED,UAAiB,cAAc,CAAC,WAAW,SAAS,MAAM;QACxD,SAAS,EAAE;YACT,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,CAAC,WAAW,CAAC,CAAC;SAC7C,CAAC;KACH;IAED,KAAY,SAAS,GAAG,CAAC,WAAW,SAAS,MAAM,EACjD,OAAO,EAAE,UAAU,EAAE,EACrB,IAAI,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,KAC/B,MAAM,CAAC;CACb;AAED;;;;;GAKG;AACH,QAAA,MAAM,SAAS;kBAtKQ,UAAU,OAAO;QAEtC;;;;WAIG;wBACa,MAAM,gBAAgB,OAAO,MAAM,GAAG,IAAI;QAE1D;;;;WAIG;iCACsB,MAAM,EAAE,GAAG,UAAU,UAAU;QAExD;;;;;;WAMG;4BAEK,MAAM,aACD,MAAM,gBACH,OAAO,GACpB,UAAU,UAAU;QAEvB;;;;;WAKG;mCACwB,MAAM,GAAG,OAAO,MAAM;QAEjD;;;;WAIG;8BACmB,MAAM,GAAG,UAAU,SAAS;QAElD;;;;WAIG;gCACqB,MAAM,GAAG,OAAO;QAExC;;;;WAIG;0CAC+B,MAAM,EAAE,GAAG,MAAM,EAAE;;;IAarD;;;;OAIG;6BAEQ,UAAU,UAAU,EAAE,GAC9B,UAAU,UAAU,EAAE;IAEzB;;;;OAIG;0BAC0B,MAAM,GAAG,UAAU,SAAS;IAEzD;;;OAGG;wBACwB,UAAU,UAAU,GAAG,IAAI;aAEtC,MAAM;aA6EX,CAAC;AAEd,OAAO,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.js b/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.js deleted file mode 100644 index efd23c6d..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -/* eslint-disable @typescript-eslint/no-namespace */ -/* eslint-disable deprecation/deprecation -- "uses" deprecated API to define the deprecated API */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CLIEngine = void 0; -const eslint_1 = require("eslint"); -/** - * The underlying utility that runs the ESLint command line interface. This object will read the filesystem for - * configuration and file information but will not output any results. Instead, it allows you direct access to the - * important information so you can deal with the output yourself. - * @deprecated use the ESLint class instead - */ -const CLIEngine = eslint_1.CLIEngine - ? class CLIEngine extends eslint_1.CLIEngine { - } - : undefined; -exports.CLIEngine = CLIEngine; -//# sourceMappingURL=CLIEngine.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.js.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.js.map deleted file mode 100644 index ee6ea19f..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/CLIEngine.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CLIEngine.js","sourceRoot":"","sources":["../../src/ts-eslint/CLIEngine.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,kGAAkG;;;AAElG,mCAAsD;AA0KtD;;;;;GAKG;AACH,MAAM,SAAS,GAAG,kBAAe;IAC/B,CAAC,CAAC,MAAM,SAAU,SAAS,kBAAwC;KAAG;IACtE,CAAC,CAAC,SAAS,CAAC;AAEL,8BAAS"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts deleted file mode 100644 index 642eb56e..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts +++ /dev/null @@ -1,373 +0,0 @@ -import type { Linter } from './Linter'; -declare class ESLintBase { - /** - * Creates a new instance of the main ESLint API. - * @param options The options for this instance. - */ - constructor(options?: ESLint.ESLintOptions); - /** - * This method calculates the configuration for a given file, which can be useful for debugging purposes. - * - It resolves and merges extends and overrides settings into the top level configuration. - * - It resolves the parser setting to absolute paths. - * - It normalizes the plugins setting to align short names. (e.g., eslint-plugin-foo → foo) - * - It adds the processor setting if a legacy file extension processor is matched. - * - It doesn't interpret the env setting to the globals and parserOptions settings, so the result object contains - * the env setting as is. - * @param filePath The path to the file whose configuration you would like to calculate. Directory paths are forbidden - * because ESLint cannot handle the overrides setting. - * @returns The promise that will be fulfilled with a configuration object. - */ - calculateConfigForFile(filePath: string): Promise; - /** - * This method checks if a given file is ignored by your configuration. - * @param filePath The path to the file you want to check. - * @returns The promise that will be fulfilled with whether the file is ignored or not. If the file is ignored, then - * it will return true. - */ - isPathIgnored(filePath: string): Promise; - /** - * This method lints the files that match the glob patterns and then returns the results. - * @param patterns The lint target files. This can contain any of file paths, directory paths, and glob patterns. - * @returns The promise that will be fulfilled with an array of LintResult objects. - */ - lintFiles(patterns: string | string[]): Promise; - /** - * This method lints the given source code text and then returns the results. - * - * By default, this method uses the configuration that applies to files in the current working directory (the cwd - * constructor option). If you want to use a different configuration, pass options.filePath, and ESLint will load the - * same configuration that eslint.lintFiles() would use for a file at options.filePath. - * - * If the options.filePath value is configured to be ignored, this method returns an empty array. If the - * options.warnIgnored option is set along with the options.filePath option, this method returns a LintResult object. - * In that case, the result may contain a warning that indicates the file was ignored. - * @param code The source code text to check. - * @param options The options. - * @returns The promise that will be fulfilled with an array of LintResult objects. This is an array (despite there - * being only one lint result) in order to keep the interfaces between this and the eslint.lintFiles() - * method similar. - */ - lintText(code: string, options?: ESLint.LintTextOptions): Promise; - /** - * This method loads a formatter. Formatters convert lint results to a human- or machine-readable string. - * @param name TThe path to the file you want to check. - * The following values are allowed: - * - undefined. In this case, loads the "stylish" built-in formatter. - * - A name of built-in formatters. - * - A name of third-party formatters. For examples: - * -- `foo` will load eslint-formatter-foo. - * -- `@foo` will load `@foo/eslint-formatter`. - * -- `@foo/bar` will load `@foo/eslint-formatter-bar`. - * - A path to the file that defines a formatter. The path must contain one or more path separators (/) in order to distinguish if it's a path or not. For example, start with ./. - * @returns The promise that will be fulfilled with a Formatter object. - */ - loadFormatter(name?: string): Promise; - /** - * This method copies the given results and removes warnings. The returned value contains only errors. - * @param results The LintResult objects to filter. - * @returns The filtered LintResult objects. - */ - static getErrorResults(results: ESLint.LintResult): ESLint.LintResult; - /** - * This method writes code modified by ESLint's autofix feature into its respective file. If any of the modified - * files don't exist, this method does nothing. - * @param results The LintResult objects to write. - * @returns The promise that will be fulfilled after all files are written. - */ - static outputFixes(results: ESLint.LintResult): Promise; - /** - * The version text. - */ - static readonly version: string; -} -declare namespace ESLint { - interface ESLintOptions { - /** - * If false is present, ESLint suppresses directive comments in source code. - * If this option is false, it overrides the noInlineConfig setting in your configurations. - */ - allowInlineConfig?: boolean; - /** - * Configuration object, extended by all configurations used with this instance. - * You can use this option to define the default settings that will be used if your configuration files don't - * configure it. - */ - baseConfig?: Linter.Config | null; - /** - * If true is present, the eslint.lintFiles() method caches lint results and uses it if each target file is not - * changed. Please mind that ESLint doesn't clear the cache when you upgrade ESLint plugins. In that case, you have - * to remove the cache file manually. The eslint.lintText() method doesn't use caches even if you pass the - * options.filePath to the method. - */ - cache?: boolean; - /** - * The eslint.lintFiles() method writes caches into this file. - */ - cacheLocation?: string; - /** - * The working directory. This must be an absolute path. - */ - cwd?: string; - /** - * Unless set to false, the eslint.lintFiles() method will throw an error when no target files are found. - */ - errorOnUnmatchedPattern?: boolean; - /** - * If you pass directory paths to the eslint.lintFiles() method, ESLint checks the files in those directories that - * have the given extensions. For example, when passing the src/ directory and extensions is [".js", ".ts"], ESLint - * will lint *.js and *.ts files in src/. If extensions is null, ESLint checks *.js files and files that match - * overrides[].files patterns in your configuration. - * Note: This option only applies when you pass directory paths to the eslint.lintFiles() method. - * If you pass glob patterns, ESLint will lint all files matching the glob pattern regardless of extension. - */ - extensions?: string[] | null; - /** - * If true is present, the eslint.lintFiles() and eslint.lintText() methods work in autofix mode. - * If a predicate function is present, the methods pass each lint message to the function, then use only the - * lint messages for which the function returned true. - */ - fix?: boolean | ((message: ESLint.LintMessage) => boolean); - /** - * The types of the rules that the eslint.lintFiles() and eslint.lintText() methods use for autofix. - */ - fixTypes?: ('directive' | 'problem' | 'suggestion' | 'layout')[] | null; - /** - * If false is present, the eslint.lintFiles() method doesn't interpret glob patterns. - */ - globInputPaths?: boolean; - /** - * If false is present, the eslint.lintFiles() method doesn't respect `.eslintignore` files or ignorePatterns in - * your configuration. - */ - ignore?: boolean; - /** - * The path to a file ESLint uses instead of `$CWD/.eslintignore`. - * If a path is present and the file doesn't exist, this constructor will throw an error. - */ - ignorePath?: string; - /** - * Configuration object, overrides all configurations used with this instance. - * You can use this option to define the settings that will be used even if your configuration files configure it. - */ - overrideConfig?: Linter.ConfigOverride | null; - /** - * The path to a configuration file, overrides all configurations used with this instance. - * The options.overrideConfig option is applied after this option is applied. - */ - overrideConfigFile?: string | null; - /** - * The plugin implementations that ESLint uses for the plugins setting of your configuration. - * This is a map-like object. Those keys are plugin IDs and each value is implementation. - */ - plugins?: Record | null; - /** - * The severity to report unused eslint-disable directives. - * If this option is a severity, it overrides the reportUnusedDisableDirectives setting in your configurations. - */ - reportUnusedDisableDirectives?: Linter.SeverityString | null; - /** - * The path to a directory where plugins should be resolved from. - * If null is present, ESLint loads plugins from the location of the configuration file that contains the plugin - * setting. - * If a path is present, ESLint loads all plugins from there. - */ - resolvePluginsRelativeTo?: string | null; - /** - * An array of paths to directories to load custom rules from. - */ - rulePaths?: string[]; - /** - * If false is present, ESLint doesn't load configuration files (.eslintrc.* files). - * Only the configuration of the constructor options is valid. - */ - useEslintrc?: boolean; - } - interface DeprecatedRuleInfo { - /** - * The rule ID. - */ - ruleId: string; - /** - * The rule IDs that replace this deprecated rule. - */ - replacedBy: string[]; - } - /** - * The LintResult value is the information of the linting result of each file. - */ - interface LintResult { - /** - * The number of errors. This includes fixable errors. - */ - errorCount: number; - /** - * The number of fatal errors. - * @since 7.32.0 - */ - fatalErrorCount?: number; - /** - * The absolute path to the file of this result. This is the string "" if the file path is unknown (when you - * didn't pass the options.filePath option to the eslint.lintText() method). - */ - filePath: string; - /** - * The number of errors that can be fixed automatically by the fix constructor option. - */ - fixableErrorCount: number; - /** - * The number of warnings that can be fixed automatically by the fix constructor option. - */ - fixableWarningCount: number; - /** - * The array of LintMessage objects. - */ - messages: ESLint.LintMessage[]; - /** - * The source code of the file that was linted, with as many fixes applied as possible. - */ - output?: string; - /** - * The original source code text. This property is undefined if any messages didn't exist or the output - * property exists. - */ - source?: string; - /** - * The array of SuppressedLintMessage objects. - * - * @since 8.8.0 - */ - suppressedMessages?: SuppressedLintMessage[]; - /** - * The information about the deprecated rules that were used to check this file. - */ - usedDeprecatedRules: DeprecatedRuleInfo[]; - /** - * The number of warnings. This includes fixable warnings. - */ - warningCount: number; - } - interface LintTextOptions { - /** - * The path to the file of the source code text. If omitted, the result.filePath becomes the string "". - */ - filePath?: string; - /** - * If true is present and the options.filePath is a file ESLint should ignore, this method returns a lint result - * contains a warning message. - */ - warnIgnored?: boolean; - } - /** - * The LintMessage value is the information of each linting error. - */ - interface LintMessage { - /** - * The 1-based column number of the begin point of this message. - */ - column: number | undefined; - /** - * The 1-based column number of the end point of this message. This property is undefined if this message - * is not a range. - */ - endColumn: number | undefined; - /** - * The 1-based line number of the end point of this message. This property is undefined if this - * message is not a range. - */ - endLine: number | undefined; - /** - * `true` if this is a fatal error unrelated to a rule, like a parsing error. - * @since 7.24.0 - */ - fatal?: boolean | undefined; - /** - * The EditInfo object of autofix. This property is undefined if this message is not fixable. - */ - fix: EditInfo | undefined; - /** - * The 1-based line number of the begin point of this message. - */ - line: number | undefined; - /** - * The error message - */ - message: string; - /** - * The rule name that generates this lint message. If this message is generated by the ESLint core rather than - * rules, this is null. - */ - ruleId: string | null; - /** - * The severity of this message. 1 means warning and 2 means error. - */ - severity: 1 | 2; - /** - * The list of suggestions. Each suggestion is the pair of a description and an EditInfo object to fix code. API - * users such as editor integrations can choose one of them to fix the problem of this message. This property is - * undefined if this message doesn't have any suggestions. - */ - suggestions: { - desc: string; - fix: EditInfo; - }[] | undefined; - } - /** - * The SuppressedLintMessage value is the information of each suppressed linting error. - */ - interface SuppressedLintMessage extends ESLint.LintMessage { - /** - * The list of suppressions. - */ - suppressions?: { - /** - * Right now, this is always `directive` - */ - kind: string; - /** - * The free text description added after the `--` in the comment - */ - justification: string; - }[]; - } - /** - * The EditInfo value is information to edit text. - * - * This edit information means replacing the range of the range property by the text property value. It's like - * sourceCodeText.slice(0, edit.range[0]) + edit.text + sourceCodeText.slice(edit.range[1]). Therefore, it's an add - * if the range[0] and range[1] property values are the same value, and it's removal if the text property value is - * empty string. - */ - interface EditInfo { - /** - * The pair of 0-based indices in source code text to remove. - */ - range: [number, number]; - /** - * The text to add. - */ - text: string; - } - /** - * The Formatter value is the object to convert the LintResult objects to text. - */ - interface Formatter { - /** - * The method to convert the LintResult objects to text. - * Promise return supported since 8.4.0 - */ - format(results: LintResult[]): string | Promise; - } -} -declare const _ESLint: typeof ESLintBase; -/** - * The ESLint class is the primary class to use in Node.js applications. - * This class depends on the Node.js fs module and the file system, so you cannot use it in browsers. - * - * If you want to lint code on browsers, use the Linter class instead. - * - * @since 7.0.0 - */ -declare class ESLint extends _ESLint { -} -export { ESLint }; -//# sourceMappingURL=ESLint.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts.map deleted file mode 100644 index b4950d4d..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ESLint.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/ESLint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC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ACH,SAAS,CAAC;KACf;IAED;;OAEG;IACH,UAAiB,qBAAsB,SAAQ,MAAM,CAAC,WAAW;QAC/D;;WAEG;QACH,YAAY,CAAC,EAAE;YACb;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YACb;;eAEG;YACH,aAAa,EAAE,MAAM,CAAC;SACvB,EAAE,CAAC;KACL;IAED;;;;;;;OAOG;IACH,UAAiB,QAAQ;QACvB;;WAEG;QACH,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACxB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd;IAED;;OAEG;IACH,UAAiB,SAAS;QACxB;;;WAGG;QACH,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;KACzD;CACF;AAKD,QAAA,MAAM,OAAO,mBAKY,CAAC;AAE1B;;;;;;;GAOG;AACH,cAAM,MAAO,SAAQ,OAAO;CAAG;AAE/B,OAAO,EAAE,MAAM,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js b/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js deleted file mode 100644 index 5b509969..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -/* eslint-disable @typescript-eslint/no-namespace */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ESLint = void 0; -const eslint_1 = require("eslint"); -// We want to export this class always so it's easy for end users to consume. -// However on ESLint v6, this class will not exist, so we provide a fallback to make it clear -// The only users of this should be users scripting ESLint locally, so _they_ should have the correct version installed. -const _ESLint = (eslint_1.ESLint !== null && eslint_1.ESLint !== void 0 ? eslint_1.ESLint : function () { - throw new Error('Attempted to construct an ESLint instance on less than ESLint v7.0.0'); -}); -/** - * The ESLint class is the primary class to use in Node.js applications. - * This class depends on the Node.js fs module and the file system, so you cannot use it in browsers. - * - * If you want to lint code on browsers, use the Linter class instead. - * - * @since 7.0.0 - */ -class ESLint extends _ESLint { -} -exports.ESLint = ESLint; -//# sourceMappingURL=ESLint.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js.map deleted file mode 100644 index c3fc9a35..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/ESLint.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ESLint.js","sourceRoot":"","sources":["../../src/ts-eslint/ESLint.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;AAEpD,mCAAgD;AA+XhD,6EAA6E;AAC7E,6FAA6F;AAC7F,wHAAwH;AACxH,MAAM,OAAO,GAAG,CAAC,eAAY,aAAZ,eAAY,cAAZ,eAAY,GAC3B;IACE,MAAM,IAAI,KAAK,CACb,sEAAsE,CACvE,CAAC;AACJ,CAAC,CAAsB,CAAC;AAE1B;;;;;;;GAOG;AACH,MAAM,MAAO,SAAQ,OAAO;CAAG;AAEtB,wBAAM"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts deleted file mode 100644 index 3cd57189..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts +++ /dev/null @@ -1,323 +0,0 @@ -import type { ParserServices, TSESTree } from '../ts-estree'; -import type { ParserOptions as TSParserOptions } from './ParserOptions'; -import type { RuleCreateFunction, RuleFix, RuleModule, SharedConfigurationSettings } from './Rule'; -import type { Scope } from './Scope'; -import type { SourceCode } from './SourceCode'; -declare class LinterBase { - /** - * Initialize the Linter. - * @param config the config object - */ - constructor(config?: Linter.LinterOptions); - /** - * Define a new parser module - * @param parserId Name of the parser - * @param parserModule The parser object - */ - defineParser(parserId: string, parserModule: Linter.ParserModule): void; - /** - * Defines a new linting rule. - * @param ruleId A unique rule identifier - * @param ruleModule Function from context to object mapping AST node types to event handlers - */ - defineRule(ruleId: string, ruleModule: RuleModule | RuleCreateFunction): void; - /** - * Defines many new linting rules. - * @param rulesToDefine map from unique rule identifier to rule - */ - defineRules(rulesToDefine: Record | RuleCreateFunction>): void; - /** - * Gets an object with all loaded rules. - * @returns All loaded rules - */ - getRules(): Map>; - /** - * Gets the `SourceCode` object representing the parsed source. - * @returns The `SourceCode` object. - */ - getSourceCode(): SourceCode; - /** - * Verifies the text against the rules specified by the second argument. - * @param textOrSourceCode The text to parse or a SourceCode object. - * @param config An ESLintConfig instance to configure everything. - * @param filenameOrOptions The optional filename of the file being checked. - * If this is not set, the filename will default to '' in the rule context. - * If this is an object, then it has "filename", "allowInlineConfig", and some properties. - * @returns The results as an array of messages or an empty array if no messages. - */ - verify(textOrSourceCode: SourceCode | string, config: Linter.Config, filenameOrOptions?: string | Linter.VerifyOptions): Linter.LintMessage[]; - /** - * Performs multiple autofix passes over the text until as many fixes as possible have been applied. - * @param code The source text to apply fixes to. - * @param config The ESLint config object to use. - * @param options The ESLint options object to use. - * @returns The result of the fix operation as returned from the SourceCodeFixer. - */ - verifyAndFix(code: string, config: Linter.Config, options: Linter.FixOptions): Linter.FixReport; - /** - * The version from package.json. - */ - readonly version: string; - /** - * The version from package.json. - */ - static readonly version: string; -} -declare namespace Linter { - export interface LinterOptions { - /** - * path to a directory that should be considered as the current working directory. - */ - cwd?: string; - } - export type Severity = 0 | 1 | 2; - export type SeverityString = 'off' | 'warn' | 'error'; - export type RuleLevel = Severity | SeverityString; - export type RuleLevelAndOptions = [RuleLevel, ...unknown[]]; - export type RuleEntry = RuleLevel | RuleLevelAndOptions; - export type RulesRecord = Partial>; - export type GlobalVariableOption = 'readonly' | 'writable' | 'off' | boolean; - interface BaseConfig { - $schema?: string; - /** - * The environment settings. - */ - env?: { - [name: string]: boolean; - }; - /** - * The path to other config files or the package name of shareable configs. - */ - extends?: string | string[]; - /** - * The global variable settings. - */ - globals?: { - [name: string]: GlobalVariableOption; - }; - /** - * The flag that disables directive comments. - */ - noInlineConfig?: boolean; - /** - * The override settings per kind of files. - */ - overrides?: ConfigOverride[]; - /** - * The path to a parser or the package name of a parser. - */ - parser?: string; - /** - * The parser options. - */ - parserOptions?: ParserOptions; - /** - * The plugin specifiers. - */ - plugins?: string[]; - /** - * The processor specifier. - */ - processor?: string; - /** - * The flag to report unused `eslint-disable` comments. - */ - reportUnusedDisableDirectives?: boolean; - /** - * The rule settings. - */ - rules?: RulesRecord; - /** - * The shared settings. - */ - settings?: SharedConfigurationSettings; - } - export interface ConfigOverride extends BaseConfig { - excludedFiles?: string | string[]; - files: string | string[]; - } - export interface Config extends BaseConfig { - /** - * The glob patterns that ignore to lint. - */ - ignorePatterns?: string | string[]; - /** - * The root flag. - */ - root?: boolean; - } - export type ParserOptions = TSParserOptions; - export interface VerifyOptions { - /** - * Allow/disallow inline comments' ability to change config once it is set. Defaults to true if not supplied. - * Useful if you want to validate JS without comments overriding rules. - */ - allowInlineConfig?: boolean; - /** - * if `true` then the linter doesn't make `fix` properties into the lint result. - */ - disableFixes?: boolean; - /** - * the filename of the source code. - */ - filename?: string; - /** - * the predicate function that selects adopt code blocks. - */ - filterCodeBlock?: (filename: string, text: string) => boolean; - /** - * postprocessor for report messages. - * If provided, this should accept an array of the message lists - * for each code block returned from the preprocessor, apply a mapping to - * the messages as appropriate, and return a one-dimensional array of - * messages. - */ - postprocess?: Processor['postprocess']; - /** - * preprocessor for source text. - * If provided, this should accept a string of source text, and return an array of code blocks to lint. - */ - preprocess?: Processor['preprocess']; - /** - * Adds reported errors for unused `eslint-disable` directives. - */ - reportUnusedDisableDirectives?: boolean | SeverityString; - } - export interface FixOptions extends VerifyOptions { - /** - * Determines whether fixes should be applied. - */ - fix?: boolean; - } - export interface LintSuggestion { - desc: string; - fix: RuleFix; - messageId?: string; - } - export interface LintMessage { - /** - * The 1-based column number. - */ - column: number; - /** - * The 1-based column number of the end location. - */ - endColumn?: number; - /** - * The 1-based line number of the end location. - */ - endLine?: number; - /** - * If `true` then this is a fatal error. - */ - fatal?: true; - /** - * Information for autofix. - */ - fix?: RuleFix; - /** - * The 1-based line number. - */ - line: number; - /** - * The error message. - */ - message: string; - messageId?: string; - nodeType: string; - /** - * The ID of the rule which makes this message. - */ - ruleId: string | null; - /** - * The severity of this message. - */ - severity: Severity; - source: string | null; - /** - * Information for suggestions - */ - suggestions?: LintSuggestion[]; - } - export interface FixReport { - /** - * True, if the code was fixed - */ - fixed: boolean; - /** - * Fixed code text (might be the same as input if no fixes were applied). - */ - output: string; - /** - * Collection of all messages for the given code - */ - messages: LintMessage[]; - } - export type ParserModule = { - parse(text: string, options?: ParserOptions): TSESTree.Program; - } | { - parseForESLint(text: string, options?: ParserOptions): ESLintParseResult; - }; - export interface ESLintParseResult { - ast: TSESTree.Program; - services?: ParserServices; - scopeManager?: Scope.ScopeManager; - visitorKeys?: SourceCode.VisitorKeys; - } - export interface Processor { - /** - * The function to extract code blocks. - */ - preprocess?: (text: string, filename: string) => Array; - /** - * The function to merge messages. - */ - postprocess?: (messagesList: Linter.LintMessage[][], filename: string) => Linter.LintMessage[]; - /** - * If `true` then it means the processor supports autofix. - */ - supportsAutofix?: boolean; - } - export interface Environment { - /** - * The definition of global variables. - */ - globals?: Record; - /** - * The parser options that will be enabled under this environment. - */ - parserOptions?: ParserOptions; - } - export interface Plugin { - /** - * The definition of plugin configs. - */ - configs?: Record; - /** - * The definition of plugin environments. - */ - environments?: Record; - /** - * The definition of plugin processors. - */ - processors?: Record; - /** - * The definition of plugin rules. - */ - rules?: Record>; - } - export {}; -} -declare const Linter_base: typeof LinterBase; -/** - * The Linter object does the actual evaluation of the JavaScript code. It doesn't do any filesystem operations, it - * simply parses and reports on the code. In particular, the Linter object does not process configuration objects - * or files. - */ -declare class Linter extends Linter_base { -} -export { Linter }; -//# sourceMappingURL=Linter.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts.map deleted file mode 100644 index 67b00853..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Linter.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Linter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,IAAI,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,KAAK,EACV,kBAAkB,EAClB,OAAO,EACP,UAAU,EACV,2BAA2B,EAC5B,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,OAAO,UAAU;IACtB;;;OAGG;gBACS,MAAM,CAAC,EAAE,MAAM,CAAC,aAAa;IAEzC;;;;OAIG;IACH,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,CAAC,YAAY,GAAG,IAAI;IAEvE;;;;OAIG;IACH,UAAU,CAAC,WAAW,SAAS,MAAM,EAAE,QAAQ,SAAS,SAAS,OAAO,EAAE,EACxE,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,UAAU,CAAC,WAAW,EAAE,QAAQ,CAAC,GAAG,kBAAkB,GACjE,IAAI;IAEP;;;OAGG;IACH,WAAW,CAAC,WAAW,SAAS,MAAM,EAAE,QAAQ,SAAS,SAAS,OAAO,EAAE,EACzE,aAAa,EAAE,MAAM,CACnB,MAAM,EACN,UAAU,CAAC,WAAW,EAAE,QAAQ,CAAC,GAAG,kBAAkB,CACvD,GACA,IAAI;IAEP;;;OAGG;IACH,QAAQ,IAAI,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,CA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AAC;QAC3C;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QACvC;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAG,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;KAC5E;;CACF;;AAED;;;;GAIG;AACH,cAAM,MAAO,SAAQ,WAAmC;CAAG;AAE3D,OAAO,EAAE,MAAM,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js b/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js deleted file mode 100644 index 4fd16f1b..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -/* eslint-disable @typescript-eslint/no-namespace */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Linter = void 0; -const eslint_1 = require("eslint"); -/** - * The Linter object does the actual evaluation of the JavaScript code. It doesn't do any filesystem operations, it - * simply parses and reports on the code. In particular, the Linter object does not process configuration objects - * or files. - */ -class Linter extends eslint_1.Linter { -} -exports.Linter = Linter; -//# sourceMappingURL=Linter.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js.map deleted file mode 100644 index 88a5e0ee..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Linter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Linter.js","sourceRoot":"","sources":["../../src/ts-eslint/Linter.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;AAEpD,mCAAgD;AAsXhD;;;;GAIG;AACH,MAAM,MAAO,SAAS,eAAkC;CAAG;AAElD,wBAAM"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts deleted file mode 100644 index d864322b..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { DebugLevel, EcmaVersion, ParserOptions, SourceType, } from '@typescript-eslint/types'; -//# sourceMappingURL=ParserOptions.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts.map deleted file mode 100644 index 33c6d0e0..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ParserOptions.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/ParserOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,WAAW,EACX,aAAa,EACb,UAAU,GACX,MAAM,0BAA0B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js b/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js deleted file mode 100644 index 40b03dd5..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ParserOptions.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js.map deleted file mode 100644 index 7bd7a94c..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/ParserOptions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ParserOptions.js","sourceRoot":"","sources":["../../src/ts-eslint/ParserOptions.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts deleted file mode 100644 index 9a3a1fd5..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts +++ /dev/null @@ -1,392 +0,0 @@ -import type { JSONSchema4 } from '../json-schema'; -import type { ParserServices, TSESTree } from '../ts-estree'; -import type { AST } from './AST'; -import type { Linter } from './Linter'; -import type { Scope } from './Scope'; -import type { SourceCode } from './SourceCode'; -export type RuleRecommendation = 'error' | 'strict' | 'warn' | false; -interface RuleMetaDataDocs { - /** - * Concise description of the rule - */ - description: string; - /** - * The recommendation level for the rule. - * Used by the build tools to generate the recommended and strict configs. - * Set to false to not include it as a recommendation - */ - recommended: 'error' | 'strict' | 'warn' | false; - /** - * The URL of the rule's docs - */ - url?: string; - /** - * Specifies whether the rule can return suggestions. - */ - suggestion?: boolean; - /** - * Does the rule require us to create a full TypeScript Program in order for it - * to type-check code. This is only used for documentation purposes. - */ - requiresTypeChecking?: boolean; - /** - * Does the rule extend (or is it based off of) an ESLint code rule? - * Alternately accepts the name of the base rule, in case the rule has been renamed. - * This is only used for documentation purposes. - */ - extendsBaseRule?: boolean | string; -} -interface RuleMetaData { - /** - * True if the rule is deprecated, false otherwise - */ - deprecated?: boolean; - /** - * Documentation for the rule, unnecessary for custom rules/plugins - */ - docs?: RuleMetaDataDocs; - /** - * The fixer category. Omit if there is no fixer - */ - fixable?: 'code' | 'whitespace'; - /** - * Specifies whether rules can return suggestions. Omit if there is no suggestions - */ - hasSuggestions?: boolean; - /** - * A map of messages which the rule can report. - * The key is the messageId, and the string is the parameterised error string. - * See: https://eslint.org/docs/developer-guide/working-with-rules#messageids - */ - messages: Record; - /** - * The type of rule. - * - `"problem"` means the rule is identifying code that either will cause an error or may cause a confusing behavior. Developers should consider this a high priority to resolve. - * - `"suggestion"` means the rule is identifying something that could be done in a better way but no errors will occur if the code isn’t changed. - * - `"layout"` means the rule cares primarily about whitespace, semicolons, commas, and parentheses, all the parts of the program that determine how the code looks rather than how it executes. These rules work on parts of the code that aren’t specified in the AST. - */ - type: 'suggestion' | 'problem' | 'layout'; - /** - * The name of the rule this rule was replaced by, if it was deprecated. - */ - replacedBy?: readonly string[]; - /** - * The options schema. Supply an empty array if there are no options. - */ - schema: JSONSchema4 | readonly JSONSchema4[]; -} -interface RuleFix { - range: Readonly; - text: string; -} -interface RuleFixer { - insertTextAfter(nodeOrToken: TSESTree.Node | TSESTree.Token, text: string): RuleFix; - insertTextAfterRange(range: Readonly, text: string): RuleFix; - insertTextBefore(nodeOrToken: TSESTree.Node | TSESTree.Token, text: string): RuleFix; - insertTextBeforeRange(range: Readonly, text: string): RuleFix; - remove(nodeOrToken: TSESTree.Node | TSESTree.Token): RuleFix; - removeRange(range: Readonly): RuleFix; - replaceText(nodeOrToken: TSESTree.Node | TSESTree.Token, text: string): RuleFix; - replaceTextRange(range: Readonly, text: string): RuleFix; -} -interface SuggestionReportDescriptor extends Omit, 'fix'> { - readonly fix: ReportFixFunction; -} -type ReportFixFunction = (fixer: RuleFixer) => null | RuleFix | readonly RuleFix[] | IterableIterator; -type ReportSuggestionArray = SuggestionReportDescriptor[]; -interface ReportDescriptorBase { - /** - * The parameters for the message string associated with `messageId`. - */ - readonly data?: Readonly>; - /** - * The fixer function. - */ - readonly fix?: ReportFixFunction | null; - /** - * The messageId which is being reported. - */ - readonly messageId: TMessageIds; -} -interface ReportDescriptorWithSuggestion extends ReportDescriptorBase { - /** - * 6.7's Suggestions API - */ - readonly suggest?: Readonly> | null; -} -interface ReportDescriptorNodeOptionalLoc { - /** - * The Node or AST Token which the report is being attached to - */ - readonly node: TSESTree.Node | TSESTree.Token; - /** - * An override of the location of the report - */ - readonly loc?: Readonly | Readonly; -} -interface ReportDescriptorLocOnly { - /** - * An override of the location of the report - */ - loc: Readonly | Readonly; -} -type ReportDescriptor = ReportDescriptorWithSuggestion & (ReportDescriptorNodeOptionalLoc | ReportDescriptorLocOnly); -/** - * Plugins can add their settings using declaration - * merging against this interface. - */ -interface SharedConfigurationSettings { - [name: string]: unknown; -} -interface RuleContext { - /** - * The rule ID. - */ - id: string; - /** - * An array of the configured options for this rule. - * This array does not include the rule severity. - */ - options: TOptions; - /** - * The name of the parser from configuration. - */ - parserPath: string; - /** - * The parser options configured for this run - */ - parserOptions: Linter.ParserOptions; - /** - * An object containing parser-provided services for rules - */ - parserServices?: ParserServices; - /** - * The shared settings from configuration. - * We do not have any shared settings in this plugin. - */ - settings: SharedConfigurationSettings; - /** - * Returns an array of the ancestors of the currently-traversed node, starting at - * the root of the AST and continuing through the direct parent of the current node. - * This array does not include the currently-traversed node itself. - */ - getAncestors(): TSESTree.Node[]; - /** - * Returns a list of variables declared by the given node. - * This information can be used to track references to variables. - */ - getDeclaredVariables(node: TSESTree.Node): readonly Scope.Variable[]; - /** - * Returns the current working directory passed to Linter. - * It is a path to a directory that should be considered as the current working directory. - * @since 6.6.0 - */ - getCwd?(): string; - /** - * Returns the filename associated with the source. - */ - getFilename(): string; - /** - * Returns the full path of the file on disk without any code block information (unlike `getFilename()`). - * @since 7.28.0 - */ - getPhysicalFilename?(): string; - /** - * Returns the scope of the currently-traversed node. - * This information can be used track references to variables. - */ - getScope(): Scope.Scope; - /** - * Returns a SourceCode object that you can use to work with the source that - * was passed to ESLint. - */ - getSourceCode(): Readonly; - /** - * Marks a variable with the given name in the current scope as used. - * This affects the no-unused-vars rule. - */ - markVariableAsUsed(name: string): boolean; - /** - * Reports a problem in the code. - */ - report(descriptor: ReportDescriptor): void; -} -type RuleFunction = (node: T) => void; -interface RuleListener { - [nodeSelector: string]: RuleFunction | undefined; - ArrayExpression?: RuleFunction; - ArrayPattern?: RuleFunction; - ArrowFunctionExpression?: RuleFunction; - AssignmentExpression?: RuleFunction; - AssignmentPattern?: RuleFunction; - AwaitExpression?: RuleFunction; - BigIntLiteral?: RuleFunction; - BinaryExpression?: RuleFunction; - BlockStatement?: RuleFunction; - BreakStatement?: RuleFunction; - CallExpression?: RuleFunction; - CatchClause?: RuleFunction; - ChainExpression?: RuleFunction; - ClassBody?: RuleFunction; - ClassDeclaration?: RuleFunction; - ClassExpression?: RuleFunction; - ConditionalExpression?: RuleFunction; - ContinueStatement?: RuleFunction; - DebuggerStatement?: RuleFunction; - Decorator?: RuleFunction; - DoWhileStatement?: RuleFunction; - EmptyStatement?: RuleFunction; - ExportAllDeclaration?: RuleFunction; - ExportDefaultDeclaration?: RuleFunction; - ExportNamedDeclaration?: RuleFunction; - ExportSpecifier?: RuleFunction; - ExpressionStatement?: RuleFunction; - ForInStatement?: RuleFunction; - ForOfStatement?: RuleFunction; - ForStatement?: RuleFunction; - FunctionDeclaration?: RuleFunction; - FunctionExpression?: RuleFunction; - Identifier?: RuleFunction; - IfStatement?: RuleFunction; - ImportDeclaration?: RuleFunction; - ImportDefaultSpecifier?: RuleFunction; - ImportExpression?: RuleFunction; - ImportNamespaceSpecifier?: RuleFunction; - ImportSpecifier?: RuleFunction; - JSXAttribute?: RuleFunction; - JSXClosingElement?: RuleFunction; - JSXClosingFragment?: RuleFunction; - JSXElement?: RuleFunction; - JSXEmptyExpression?: RuleFunction; - JSXExpressionContainer?: RuleFunction; - JSXFragment?: RuleFunction; - JSXIdentifier?: RuleFunction; - JSXMemberExpression?: RuleFunction; - JSXOpeningElement?: RuleFunction; - JSXOpeningFragment?: RuleFunction; - JSXSpreadAttribute?: RuleFunction; - JSXSpreadChild?: RuleFunction; - JSXText?: RuleFunction; - LabeledStatement?: RuleFunction; - Literal?: RuleFunction; - LogicalExpression?: RuleFunction; - MemberExpression?: RuleFunction; - MetaProperty?: RuleFunction; - MethodDefinition?: RuleFunction; - NewExpression?: RuleFunction; - ObjectExpression?: RuleFunction; - ObjectPattern?: RuleFunction; - Program?: RuleFunction; - Property?: RuleFunction; - PropertyDefinition?: RuleFunction; - RestElement?: RuleFunction; - ReturnStatement?: RuleFunction; - SequenceExpression?: RuleFunction; - SpreadElement?: RuleFunction; - Super?: RuleFunction; - SwitchCase?: RuleFunction; - SwitchStatement?: RuleFunction; - TaggedTemplateExpression?: RuleFunction; - TemplateElement?: RuleFunction; - TemplateLiteral?: RuleFunction; - ThisExpression?: RuleFunction; - ThrowStatement?: RuleFunction; - TryStatement?: RuleFunction; - TSAbstractKeyword?: RuleFunction; - TSAbstractMethodDefinition?: RuleFunction; - TSAbstractPropertyDefinition?: RuleFunction; - TSAnyKeyword?: RuleFunction; - TSArrayType?: RuleFunction; - TSAsExpression?: RuleFunction; - TSAsyncKeyword?: RuleFunction; - TSBigIntKeyword?: RuleFunction; - TSBooleanKeyword?: RuleFunction; - TSCallSignatureDeclaration?: RuleFunction; - TSClassImplements?: RuleFunction; - TSConditionalType?: RuleFunction; - TSConstructorType?: RuleFunction; - TSConstructSignatureDeclaration?: RuleFunction; - TSDeclareFunction?: RuleFunction; - TSDeclareKeyword?: RuleFunction; - TSEmptyBodyFunctionExpression?: RuleFunction; - TSEnumDeclaration?: RuleFunction; - TSEnumMember?: RuleFunction; - TSExportAssignment?: RuleFunction; - TSExportKeyword?: RuleFunction; - TSExternalModuleReference?: RuleFunction; - TSFunctionType?: RuleFunction; - TSImportEqualsDeclaration?: RuleFunction; - TSImportType?: RuleFunction; - TSIndexedAccessType?: RuleFunction; - TSIndexSignature?: RuleFunction; - TSInferType?: RuleFunction; - TSInterfaceBody?: RuleFunction; - TSInterfaceDeclaration?: RuleFunction; - TSInterfaceHeritage?: RuleFunction; - TSIntersectionType?: RuleFunction; - TSLiteralType?: RuleFunction; - TSMappedType?: RuleFunction; - TSMethodSignature?: RuleFunction; - TSModuleBlock?: RuleFunction; - TSModuleDeclaration?: RuleFunction; - TSNamespaceExportDeclaration?: RuleFunction; - TSNeverKeyword?: RuleFunction; - TSNonNullExpression?: RuleFunction; - TSNullKeyword?: RuleFunction; - TSNumberKeyword?: RuleFunction; - TSObjectKeyword?: RuleFunction; - TSOptionalType?: RuleFunction; - TSParameterProperty?: RuleFunction; - TSPrivateKeyword?: RuleFunction; - TSPropertySignature?: RuleFunction; - TSProtectedKeyword?: RuleFunction; - TSPublicKeyword?: RuleFunction; - TSQualifiedName?: RuleFunction; - TSReadonlyKeyword?: RuleFunction; - TSRestType?: RuleFunction; - TSStaticKeyword?: RuleFunction; - TSStringKeyword?: RuleFunction; - TSSymbolKeyword?: RuleFunction; - TSThisType?: RuleFunction; - TSTupleType?: RuleFunction; - TSTypeAliasDeclaration?: RuleFunction; - TSTypeAnnotation?: RuleFunction; - TSTypeAssertion?: RuleFunction; - TSTypeLiteral?: RuleFunction; - TSTypeOperator?: RuleFunction; - TSTypeParameter?: RuleFunction; - TSTypeParameterDeclaration?: RuleFunction; - TSTypeParameterInstantiation?: RuleFunction; - TSTypePredicate?: RuleFunction; - TSTypeQuery?: RuleFunction; - TSTypeReference?: RuleFunction; - TSUndefinedKeyword?: RuleFunction; - TSUnionType?: RuleFunction; - TSUnknownKeyword?: RuleFunction; - TSVoidKeyword?: RuleFunction; - UnaryExpression?: RuleFunction; - UpdateExpression?: RuleFunction; - VariableDeclaration?: RuleFunction; - VariableDeclarator?: RuleFunction; - WhileStatement?: RuleFunction; - WithStatement?: RuleFunction; - YieldExpression?: RuleFunction; -} -interface RuleModule { - /** - * Default options the rule will be run with - */ - defaultOptions: TOptions; - /** - * Metadata about the rule - */ - meta: RuleMetaData; - /** - * Function which returns an object with methods that ESLint calls to “visit” - * nodes while traversing the abstract syntax tree. - */ - create(context: Readonly>): TRuleListener; -} -type RuleCreateFunction = (context: Readonly>) => TRuleListener; -export { ReportDescriptor, ReportFixFunction, ReportSuggestionArray, RuleContext, RuleCreateFunction, RuleFix, RuleFixer, RuleFunction, RuleListener, RuleMetaData, RuleMetaDataDocs, RuleModule, SharedConfigurationSettings, }; -//# sourceMappingURL=Rule.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map deleted file mode 100644 index 957927cf..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-e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AAC,aAAa,CAAC,CAAC;IACrD,eAAe,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;CAC1D;AAED,UAAU,UAAU,CAClB,WAAW,SAAS,MAAM,EAC1B,QAAQ,SAAS,SAAS,OAAO,EAAE,GAAG,EAAE,EAExC,aAAa,SAAS,YAAY,GAAG,YAAY;IAEjD;;OAEG;IACH,cAAc,EAAE,QAAQ,CAAC;IAEzB;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;IAEhC;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,GAAG,aAAa,CAAC;CAC9E;AAED,KAAK,kBAAkB,CACrB,WAAW,SAAS,MAAM,GAAG,KAAK,EAClC,QAAQ,SAAS,SAAS,OAAO,EAAE,GAAG,OAAO,EAAE,EAE/C,aAAa,SAAS,YAAY,GAAG,YAAY,IAC/C,CAAC,OAAO,EAAE,QAAQ,CAAC,WAAW,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC,KAAK,aAAa,CAAC;AAE7E,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,WAAW,EACX,kBAAkB,EAClB,OAAO,EACP,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,2BAA2B,GAC5B,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js b/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js deleted file mode 100644 index 8113a7eb..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Rule.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js.map deleted file mode 100644 index 88c1f037..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../src/ts-eslint/Rule.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts deleted file mode 100644 index c8afefea..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts +++ /dev/null @@ -1,161 +0,0 @@ -import type { AST_NODE_TYPES, AST_TOKEN_TYPES } from '../ts-estree'; -import type { Linter } from './Linter'; -import type { ParserOptions } from './ParserOptions'; -import type { RuleCreateFunction, RuleModule, SharedConfigurationSettings } from './Rule'; -interface ValidTestCase> { - /** - * Name for the test case. - * @since 8.1.0 - */ - readonly name?: string; - /** - * Code for the test case. - */ - readonly code: string; - /** - * Environments for the test case. - */ - readonly env?: Readonly>; - /** - * The fake filename for the test case. Useful for rules that make assertion about filenames. - */ - readonly filename?: string; - /** - * The additional global variables. - */ - readonly globals?: Record; - /** - * Options for the test case. - */ - readonly options?: Readonly; - /** - * The absolute path for the parser. - */ - readonly parser?: string; - /** - * Options for the parser. - */ - readonly parserOptions?: Readonly; - /** - * Settings for the test case. - */ - readonly settings?: Readonly; - /** - * Run this case exclusively for debugging in supported test frameworks. - * @since 7.29.0 - */ - readonly only?: boolean; -} -interface SuggestionOutput { - /** - * Reported message ID. - */ - readonly messageId: TMessageIds; - /** - * The data used to fill the message template. - */ - readonly data?: Readonly>; - /** - * NOTE: Suggestions will be applied as a stand-alone change, without triggering multi-pass fixes. - * Each individual error has its own suggestion, so you have to show the correct, _isolated_ output for each suggestion. - */ - readonly output: string; -} -interface InvalidTestCase> extends ValidTestCase { - /** - * Expected errors. - */ - readonly errors: readonly TestCaseError[]; - /** - * The expected code after autofixes are applied. If set to `null`, the test runner will assert that no autofix is suggested. - */ - readonly output?: string | null; -} -interface TestCaseError { - /** - * The 1-based column number of the reported start location. - */ - readonly column?: number; - /** - * The data used to fill the message template. - */ - readonly data?: Readonly>; - /** - * The 1-based column number of the reported end location. - */ - readonly endColumn?: number; - /** - * The 1-based line number of the reported end location. - */ - readonly endLine?: number; - /** - * The 1-based line number of the reported start location. - */ - readonly line?: number; - /** - * Reported message ID. - */ - readonly messageId: TMessageIds; - /** - * Reported suggestions. - */ - readonly suggestions?: readonly SuggestionOutput[] | null; - /** - * The type of the reported AST node. - */ - readonly type?: AST_NODE_TYPES | AST_TOKEN_TYPES; -} -/** - * @param text a string describing the rule - * @param callback the test callback - */ -type RuleTesterTestFrameworkFunction = (text: string, callback: () => void) => void; -interface RunTests> { - readonly valid: readonly (ValidTestCase | string)[]; - readonly invalid: readonly InvalidTestCase[]; -} -interface RuleTesterConfig extends Linter.Config { - readonly parser: string; - readonly parserOptions?: Readonly; -} -declare class RuleTesterBase { - /** - * Creates a new instance of RuleTester. - * @param testerConfig extra configuration for the tester - */ - constructor(testerConfig?: RuleTesterConfig); - /** - * Adds a new rule test to execute. - * @param ruleName The name of the rule to run. - * @param rule The rule to test. - * @param test The collection of tests to run. - */ - run>(ruleName: string, rule: RuleModule, tests: RunTests): void; - /** - * If you supply a value to this property, the rule tester will call this instead of using the version defined on - * the global namespace. - */ - static get describe(): RuleTesterTestFrameworkFunction; - static set describe(value: RuleTesterTestFrameworkFunction | undefined); - /** - * If you supply a value to this property, the rule tester will call this instead of using the version defined on - * the global namespace. - */ - static get it(): RuleTesterTestFrameworkFunction; - static set it(value: RuleTesterTestFrameworkFunction | undefined); - /** - * If you supply a value to this property, the rule tester will call this instead of using the version defined on - * the global namespace. - */ - static get itOnly(): RuleTesterTestFrameworkFunction; - static set itOnly(value: RuleTesterTestFrameworkFunction | undefined); - /** - * Define a rule for one particular run of tests. - */ - defineRule>(name: string, rule: RuleModule | RuleCreateFunction): void; -} -declare const RuleTester_base: typeof RuleTesterBase; -declare class RuleTester extends RuleTester_base { -} -export { InvalidTestCase, SuggestionOutput, RuleTester, RuleTesterConfig, RuleTesterTestFrameworkFunction, RunTests, TestCaseError, ValidTestCase, }; -//# sourceMappingURL=RuleTester.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map deleted file mode 100644 index 8c62110e..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RuleTester.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/RuleTester.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EACV,2BAA2B,EAC5B,MAAM,QAAQ,CAAC;AAEhB,UAAU,aAAa,CAAC,QAAQ,SAAS,QAAQ,CAAC,OAAO,EAAE,CAAC;IAC1D;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACjD;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC;IAC1E;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,IAAI;IAEP;;;OAGG;IACH,MAAM,KAAK,QAAQ,IAAI,+BAA+B,CAAC;IACvD,MAAM,KAAK,QAAQ,CAAC,KAAK,EAAE,+BAA+B,GAAG,SAAS,EAAE;IAExE;;;OAGG;IACH,MAAM,KAAK,EAAE,IAAI,+BAA+B,CAAC;IACjD,MAAM,KAAK,EAAE,CAAC,KAAK,EAAE,+BAA+B,GAAG,SAAS,EAAE;IAElE;;;OAGG;IACH,MAAM,KAAK,MAAM,IAAI,+BAA+B,CAAC;IACrD,MAAM,KAAK,MAAM,CAAC,KAAK,EAAE,+BAA+B,GAAG,SAAS,EAAE;IAEtE;;OAEG;IACH,UAAU,CAAC,WAAW,SAAS,MAAM,EAAE,QAAQ,SAAS,QAAQ,CAAC,OAAO,EAAE,CAAC,EACzE,IAAI,EAAE,MAAM,EACZ,IAAI,EACA,UAAU,CAAC,WAAW,EAAE,QAAQ,CAAC,GACjC,kBAAkB,CAAC,WAAW,EAAE,QAAQ,CAAC,GAC5C,IAAI;CACR;;AAED,cAAM,UAAW,SAAQ,eAA2C;CAAG;AAEvE,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,+BAA+B,EAC/B,QAAQ,EACR,aAAa,EACb,aAAa,GACd,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js b/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js deleted file mode 100644 index f31d0a67..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RuleTester = void 0; -const eslint_1 = require("eslint"); -class RuleTester extends eslint_1.RuleTester { -} -exports.RuleTester = RuleTester; -//# sourceMappingURL=RuleTester.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js.map deleted file mode 100644 index ddcd0917..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/RuleTester.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RuleTester.js","sourceRoot":"","sources":["../../src/ts-eslint/RuleTester.ts"],"names":[],"mappings":";;;AAAA,mCAAwD;AAyMxD,MAAM,UAAW,SAAS,mBAA0C;CAAG;AAKrE,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts deleted file mode 100644 index 37af4166..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import * as scopeManager from '@typescript-eslint/scope-manager'; -declare namespace Scope { - type ScopeManager = scopeManager.ScopeManager; - type Reference = scopeManager.Reference; - type Variable = scopeManager.Variable | scopeManager.ESLintScopeVariable; - type Scope = scopeManager.Scope; - const ScopeType: typeof scopeManager.ScopeType; - type DefinitionType = scopeManager.Definition; - type Definition = scopeManager.Definition; - const DefinitionType: typeof scopeManager.DefinitionType; - namespace Definitions { - type CatchClauseDefinition = scopeManager.CatchClauseDefinition; - type ClassNameDefinition = scopeManager.ClassNameDefinition; - type FunctionNameDefinition = scopeManager.FunctionNameDefinition; - type ImplicitGlobalVariableDefinition = scopeManager.ImplicitGlobalVariableDefinition; - type ImportBindingDefinition = scopeManager.ImportBindingDefinition; - type ParameterDefinition = scopeManager.ParameterDefinition; - type TSEnumMemberDefinition = scopeManager.TSEnumMemberDefinition; - type TSEnumNameDefinition = scopeManager.TSEnumNameDefinition; - type TSModuleNameDefinition = scopeManager.TSModuleNameDefinition; - type TypeDefinition = scopeManager.TypeDefinition; - type VariableDefinition = scopeManager.VariableDefinition; - } - namespace Scopes { - type BlockScope = scopeManager.BlockScope; - type CatchScope = scopeManager.CatchScope; - type ClassScope = scopeManager.ClassScope; - type ConditionalTypeScope = scopeManager.ConditionalTypeScope; - type ForScope = scopeManager.ForScope; - type FunctionExpressionNameScope = scopeManager.FunctionExpressionNameScope; - type FunctionScope = scopeManager.FunctionScope; - type FunctionTypeScope = scopeManager.FunctionTypeScope; - type GlobalScope = scopeManager.GlobalScope; - type MappedTypeScope = scopeManager.MappedTypeScope; - type ModuleScope = scopeManager.ModuleScope; - type SwitchScope = scopeManager.SwitchScope; - type TSEnumScope = scopeManager.TSEnumScope; - type TSModuleScope = scopeManager.TSModuleScope; - type TypeScope = scopeManager.TypeScope; - type WithScope = scopeManager.WithScope; - } -} -export { Scope }; -//# sourceMappingURL=Scope.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts.map deleted file mode 100644 index 868fbb24..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Scope.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,YAAY,MAAM,kCAAkC,CAAC;AAEjE,kBAAU,KAAK,CAAC;IACd,KAAY,YAAY,GAAG,YAAY,CAAC,YAAY,CAAC;IACrD,KAAY,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IAC/C,KAAY,QAAQ,GAChB,YAAY,CAAC,QAAQ,GACrB,YAAY,CAAC,mBAAmB,CAAC;IACrC,KAAY,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC;IAChC,MAAM,SAAS,+BAAyB,CAAC;IAEhD,KAAY,cAAc,GAAG,YAAY,CAAC,UAAU,CAAC;IACrD,KAAY,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC;IAC1C,MAAM,cAAc,oCAA8B,CAAC;IAE1D,UAAiB,WAAW,CAAC;QAC3B,KAAY,qBAAqB,GAAG,YAAY,CAAC,qBAAqB,CAAC;QACvE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AC,aAAa,CAAC;QACvD,KAAY,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC;QAC/C,KAAY,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC;KAChD;CACF;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js b/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js deleted file mode 100644 index 091c76c6..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -/* eslint-disable @typescript-eslint/no-namespace */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Scope = void 0; -const scopeManager = __importStar(require("@typescript-eslint/scope-manager")); -var Scope; -(function (Scope) { - Scope.ScopeType = scopeManager.ScopeType; - Scope.DefinitionType = scopeManager.DefinitionType; -})(Scope || (exports.Scope = Scope = {})); -//# sourceMappingURL=Scope.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js.map deleted file mode 100644 index c20c5c2c..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/Scope.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../src/ts-eslint/Scope.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpD,+EAAiE;AAEjE,IAAU,KAAK,CA8Cd;AA9CD,WAAU,KAAK;IAOA,eAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IAInC,oBAAc,GAAG,YAAY,CAAC,cAAc,CAAC;AAmC5D,CAAC,EA9CS,KAAK,qBAAL,KAAK,QA8Cd"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts deleted file mode 100644 index d2856e14..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts +++ /dev/null @@ -1,346 +0,0 @@ -import type { ParserServices, TSESTree } from '../ts-estree'; -import type { Scope } from './Scope'; -declare class TokenStore { - /** - * Checks whether any comments exist or not between the given 2 nodes. - * @param left The node to check. - * @param right The node to check. - * @returns `true` if one or more comments exist. - */ - commentsExistBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token): boolean; - /** - * Gets all comment tokens directly after the given node or token. - * @param nodeOrToken The AST node or token to check for adjacent comment tokens. - * @returns An array of comments in occurrence order. - */ - getCommentsAfter(nodeOrToken: TSESTree.Node | TSESTree.Token): TSESTree.Comment[]; - /** - * Gets all comment tokens directly before the given node or token. - * @param nodeOrToken The AST node or token to check for adjacent comment tokens. - * @returns An array of comments in occurrence order. - */ - getCommentsBefore(nodeOrToken: TSESTree.Node | TSESTree.Token): TSESTree.Comment[]; - /** - * Gets all comment tokens inside the given node. - * @param node The AST node to get the comments for. - * @returns An array of comments in occurrence order. - */ - getCommentsInside(node: TSESTree.Node): TSESTree.Comment[]; - /** - * Gets the first token of the given node. - * @param node The AST node. - * @param option The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. - * @returns An object representing the token. - */ - getFirstToken(node: TSESTree.Node, options?: T): SourceCode.ReturnTypeFromOptions | null; - /** - * Gets the first token between two non-overlapping nodes. - * @param left Node before the desired token range. - * @param right Node after the desired token range. - * @param option The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. - * @returns An object representing the token. - */ - getFirstTokenBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions | null; - /** - * Gets the first `count` tokens of the given node. - * @param node The AST node. - * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. - * @returns Tokens. - */ - getFirstTokens(node: TSESTree.Node, options?: T): SourceCode.ReturnTypeFromOptions[]; - /** - * Gets the first `count` tokens between two non-overlapping nodes. - * @param left Node before the desired token range. - * @param right Node after the desired token range. - * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. - * @returns Tokens between left and right. - */ - getFirstTokensBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions[]; - /** - * Gets the last token of the given node. - * @param node The AST node. - * @param option The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. - * @returns An object representing the token. - */ - getLastToken(node: TSESTree.Node, options?: T): SourceCode.ReturnTypeFromOptions | null; - /** - * Gets the last token between two non-overlapping nodes. - * @param left Node before the desired token range. - * @param right Node after the desired token range. - * @param option The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. - * @returns An object representing the token. - */ - getLastTokenBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions | null; - /** - * Gets the last `count` tokens of the given node. - * @param node The AST node. - * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. - * @returns Tokens. - */ - getLastTokens(node: TSESTree.Node, options?: T): SourceCode.ReturnTypeFromOptions[]; - /** - * Gets the last `count` tokens between two non-overlapping nodes. - * @param left Node before the desired token range. - * @param right Node after the desired token range. - * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. - * @returns Tokens between left and right. - */ - getLastTokensBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions[]; - /** - * Gets the token that follows a given node or token. - * @param node The AST node or token. - * @param option The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. - * @returns An object representing the token. - */ - getTokenAfter(node: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions | null; - /** - * Gets the token that precedes a given node or token. - * @param node The AST node or token. - * @param options The option object - * @returns An object representing the token. - */ - getTokenBefore(node: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions | null; - /** - * Gets the token starting at the specified index. - * @param offset Index of the start of the token's range. - * @param option The option object. If this is a number then it's `options.skip`. If this is a function then it's `options.filter`. - * @returns The token starting at index, or null if no such token. - */ - getTokenByRangeStart(offset: number, options?: T): SourceCode.ReturnTypeFromOptions | null; - /** - * Gets all tokens that are related to the given node. - * @param node The AST node. - * @param beforeCount The number of tokens before the node to retrieve. - * @param afterCount The number of tokens after the node to retrieve. - * @returns Array of objects representing tokens. - */ - getTokens(node: TSESTree.Node, beforeCount?: number, afterCount?: number): TSESTree.Token[]; - /** - * Gets all tokens that are related to the given node. - * @param node The AST node. - * @param options The option object. If this is a function then it's `options.filter`. - * @returns Array of objects representing tokens. - */ - getTokens(node: TSESTree.Node, options: T): SourceCode.ReturnTypeFromOptions[]; - /** - * Gets the `count` tokens that follows a given node or token. - * @param node The AST node. - * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. - * @returns Tokens. - */ - getTokensAfter(node: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions[]; - /** - * Gets the `count` tokens that precedes a given node or token. - * @param node The AST node. - * @param options The option object. If this is a number then it's `options.count`. If this is a function then it's `options.filter`. - * @returns Tokens. - */ - getTokensBefore(node: TSESTree.Node | TSESTree.Token, options?: T): SourceCode.ReturnTypeFromOptions[]; - /** - * Gets all of the tokens between two non-overlapping nodes. - * @param left Node before the desired token range. - * @param right Node after the desired token range. - * @param options The option object. If this is a function then it's `options.filter`. - * @returns Tokens between left and right. - */ - getTokensBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, padding?: T): SourceCode.ReturnTypeFromOptions[]; - /** - * Gets all of the tokens between two non-overlapping nodes. - * @param left Node before the desired token range. - * @param right Node after the desired token range. - * @param padding Number of extra tokens on either side of center. - * @returns Tokens between left and right. - */ - getTokensBetween(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token, padding?: number): SourceCode.ReturnTypeFromOptions[]; -} -declare class SourceCodeBase extends TokenStore { - /** - * Represents parsed source code. - * @param text The source code text. - * @param ast The Program node of the AST representing the code. This AST should be created from the text that BOM was stripped. - */ - constructor(text: string, ast: SourceCode.Program); - /** - * Represents parsed source code. - * @param config The config object. - */ - constructor(config: SourceCode.SourceCodeConfig); - /** - * The parsed AST for the source code. - */ - ast: SourceCode.Program; - /** - * Retrieves an array containing all comments in the source code. - * @returns An array of comment nodes. - */ - getAllComments(): TSESTree.Comment[]; - /** - * Converts a (line, column) pair into a range index. - * @param loc A line/column location - * @returns The range index of the location in the file. - */ - getIndexFromLoc(location: TSESTree.Position): number; - /** - * Gets the entire source text split into an array of lines. - * @returns The source text as an array of lines. - */ - getLines(): string[]; - /** - * Converts a source text index into a (line, column) pair. - * @param index The index of a character in a file - * @returns A {line, column} location object with a 0-indexed column - */ - getLocFromIndex(index: number): TSESTree.Position; - /** - * Gets the deepest node containing a range index. - * @param index Range index of the desired node. - * @returns The node if found or `null` if not found. - */ - getNodeByRangeIndex(index: number): TSESTree.Node | null; - /** - * Gets the source code for the given node. - * @param node The AST node to get the text for. - * @param beforeCount The number of characters before the node to retrieve. - * @param afterCount The number of characters after the node to retrieve. - * @returns The text representing the AST node. - */ - getText(node?: TSESTree.Node | TSESTree.Token, beforeCount?: number, afterCount?: number): string; - /** - * The flag to indicate that the source code has Unicode BOM. - */ - hasBOM: boolean; - /** - * Determines if two nodes or tokens have at least one whitespace character - * between them. Order does not matter. Returns false if the given nodes or - * tokens overlap. - * @since 6.7.0 - * @param first The first node or token to check between. - * @param second The second node or token to check between. - * @returns True if there is a whitespace character between any of the tokens found between the two given nodes or tokens. - */ - isSpaceBetween?(first: TSESTree.Token | TSESTree.Node, second: TSESTree.Token | TSESTree.Node): boolean; - /** - * Determines if two nodes or tokens have at least one whitespace character - * between them. Order does not matter. Returns false if the given nodes or - * tokens overlap. - * For backward compatibility, this method returns true if there are - * `JSXText` tokens that contain whitespace between the two. - * @param first The first node or token to check between. - * @param second The second node or token to check between. - * @returns {boolean} True if there is a whitespace character between - * any of the tokens found between the two given nodes or tokens. - * @deprecated in favor of isSpaceBetween - */ - isSpaceBetweenTokens(first: TSESTree.Token, second: TSESTree.Token): boolean; - /** - * The source code split into lines according to ECMA-262 specification. - * This is done to avoid each rule needing to do so separately. - */ - lines: string[]; - /** - * The indexes in `text` that each line starts - */ - lineStartIndices: number[]; - /** - * The parser services of this source code. - */ - parserServices: ParserServices; - /** - * The scope of this source code. - */ - scopeManager: Scope.ScopeManager | null; - /** - * The original text source code. BOM was stripped from this text. - */ - text: string; - /** - * All of the tokens and comments in the AST. - * - * TODO: rename to 'tokens' - */ - tokensAndComments: TSESTree.Token[]; - /** - * The visitor keys to traverse AST. - */ - visitorKeys: SourceCode.VisitorKeys; - /** - * Split the source code into multiple lines based on the line delimiters. - * @param text Source code as a string. - * @returns Array of source code lines. - */ - static splitLines(text: string): string[]; -} -declare namespace SourceCode { - interface Program extends TSESTree.Program { - comments: TSESTree.Comment[]; - tokens: TSESTree.Token[]; - } - interface SourceCodeConfig { - /** - * The Program node of the AST representing the code. This AST should be created from the text that BOM was stripped. - */ - ast: Program; - /** - * The parser services. - */ - parserServices: ParserServices | null; - /** - * The scope of this source code. - */ - scopeManager: Scope.ScopeManager | null; - /** - * The source code text. - */ - text: string; - /** - * The visitor keys to traverse AST. - */ - visitorKeys: VisitorKeys | null; - } - interface VisitorKeys { - [nodeType: string]: string[]; - } - type FilterPredicate = (token: TSESTree.Token) => boolean; - type GetFilterPredicate = TFilter extends ((token: TSESTree.Token) => token is infer U extends TSESTree.Token) ? U : TDefault; - type GetFilterPredicateFromOptions = TOptions extends { - filter?: FilterPredicate; - } ? GetFilterPredicate : GetFilterPredicate; - type ReturnTypeFromOptions = T extends { - includeComments: true; - } ? GetFilterPredicateFromOptions : GetFilterPredicateFromOptions>; - type CursorWithSkipOptions = number | FilterPredicate | { - /** - * The predicate function to choose tokens. - */ - filter?: FilterPredicate; - /** - * The flag to iterate comments as well. - */ - includeComments?: boolean; - /** - * The count of tokens the cursor skips. - */ - skip?: number; - }; - type CursorWithCountOptions = number | FilterPredicate | { - /** - * The predicate function to choose tokens. - */ - filter?: FilterPredicate; - /** - * The flag to iterate comments as well. - */ - includeComments?: boolean; - /** - * The maximum count of tokens the cursor iterates. - */ - count?: number; - }; -} -declare const SourceCode_base: typeof SourceCodeBase; -declare class SourceCode extends SourceCode_base { -} -export { SourceCode }; -//# sourceMappingURL=SourceCode.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map deleted file mode 100644 index c5cf4de8..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SourceCode.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/SourceCode.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK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,MAAM,CAAC;KACf,CAAC;IAEN,KAAY,sBAAsB,GAC9B,MAAM,GACN,eAAe,GACf;QACE;;WAEG;QACH,MAAM,CAAC,EAAE,eAAe,CAAC;QACzB;;WAEG;QACH,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACP;;AAED,cAAM,UAAW,SAAQ,eAA2C;CAAG;AAEvE,OAAO,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js b/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js deleted file mode 100644 index 8e029b15..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -/* eslint-disable @typescript-eslint/no-namespace */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SourceCode = void 0; -const eslint_1 = require("eslint"); -class SourceCode extends eslint_1.SourceCode { -} -exports.SourceCode = SourceCode; -//# sourceMappingURL=SourceCode.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map deleted file mode 100644 index 541d1042..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/SourceCode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SourceCode.js","sourceRoot":"","sources":["../../src/ts-eslint/SourceCode.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;AAEpD,mCAAwD;AA8bxD,MAAM,UAAW,SAAS,mBAA0C;CAAG;AAE9D,gCAAU"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts deleted file mode 100644 index 05d889d9..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export * from './AST'; -export * from './CLIEngine'; -export * from './ESLint'; -export * from './Linter'; -export * from './ParserOptions'; -export * from './Rule'; -export * from './RuleTester'; -export * from './Scope'; -export * from './SourceCode'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts.map deleted file mode 100644 index 6b3df411..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js b/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js deleted file mode 100644 index 8d3430d6..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./AST"), exports); -__exportStar(require("./CLIEngine"), exports); -__exportStar(require("./ESLint"), exports); -__exportStar(require("./Linter"), exports); -__exportStar(require("./ParserOptions"), exports); -__exportStar(require("./Rule"), exports); -__exportStar(require("./RuleTester"), exports); -__exportStar(require("./Scope"), exports); -__exportStar(require("./SourceCode"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js.map b/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js.map deleted file mode 100644 index 4a488376..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ts-eslint/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,8CAA4B;AAC5B,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC;AAChC,yCAAuB;AACvB,+CAA6B;AAC7B,0CAAwB;AACxB,+CAA6B"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts b/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts deleted file mode 100644 index e72291e1..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree, } from '@typescript-eslint/types'; -export { ParserServices } from '@typescript-eslint/typescript-estree/dist/parser-options'; -//# sourceMappingURL=ts-estree.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts.map b/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts.map deleted file mode 100644 index 7e7b3d9f..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-estree.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ts-estree.d.ts","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EACd,eAAe,EACf,QAAQ,GACT,MAAM,0BAA0B,CAAC;AAKlC,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-estree.js b/node_modules/@typescript-eslint/utils/dist/ts-estree.js deleted file mode 100644 index 4a32e9c8..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-estree.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -// for convenience's sake - export the types directly from here so consumers -// don't need to reference/install both packages in their code -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TSESTree = exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0; -var types_1 = require("@typescript-eslint/types"); -Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return types_1.AST_NODE_TYPES; } }); -Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return types_1.AST_TOKEN_TYPES; } }); -Object.defineProperty(exports, "TSESTree", { enumerable: true, get: function () { return types_1.TSESTree; } }); -//# sourceMappingURL=ts-estree.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/utils/dist/ts-estree.js.map b/node_modules/@typescript-eslint/utils/dist/ts-estree.js.map deleted file mode 100644 index 4806a284..00000000 --- a/node_modules/@typescript-eslint/utils/dist/ts-estree.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ts-estree.js","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":";AAAA,4EAA4E;AAC5E,8DAA8D;;;AAE9D,kDAIkC;AAHhC,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,iGAAA,QAAQ,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/visitor-keys/_ts3.4/dist/get-keys.d.ts b/node_modules/@typescript-eslint/visitor-keys/_ts3.4/dist/get-keys.d.ts deleted file mode 100644 index 644c3bd6..00000000 --- a/node_modules/@typescript-eslint/visitor-keys/_ts3.4/dist/get-keys.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { TSESTree } from '@typescript-eslint/types'; -declare const getKeys: (node: TSESTree.Node) => ReadonlyArray; -export { getKeys }; -//# sourceMappingURL=get-keys.d.ts.map diff --git a/node_modules/@typescript-eslint/visitor-keys/_ts3.4/dist/index.d.ts b/node_modules/@typescript-eslint/visitor-keys/_ts3.4/dist/index.d.ts deleted file mode 100644 index ed381a9a..00000000 --- a/node_modules/@typescript-eslint/visitor-keys/_ts3.4/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { getKeys } from './get-keys'; -export { visitorKeys, VisitorKeys } from './visitor-keys'; -//# sourceMappingURL=index.d.ts.map diff --git a/node_modules/@typescript-eslint/visitor-keys/_ts3.4/dist/visitor-keys.d.ts b/node_modules/@typescript-eslint/visitor-keys/_ts3.4/dist/visitor-keys.d.ts deleted file mode 100644 index 693637a0..00000000 --- a/node_modules/@typescript-eslint/visitor-keys/_ts3.4/dist/visitor-keys.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -interface VisitorKeys { - readonly [type: string]: readonly string[] | undefined; -} -declare const visitorKeys: VisitorKeys; -export { visitorKeys, VisitorKeys }; -//# sourceMappingURL=visitor-keys.d.ts.map diff --git a/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts b/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts deleted file mode 100644 index 188e1a2c..00000000 --- a/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { TSESTree } from '@typescript-eslint/types'; -declare const getKeys: (node: TSESTree.Node) => ReadonlyArray; -export { getKeys }; -//# sourceMappingURL=get-keys.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts.map b/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts.map deleted file mode 100644 index 21fe722a..00000000 --- a/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"get-keys.d.ts","sourceRoot":"","sources":["../src/get-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,QAAA,MAAM,OAAO,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,KAAK,aAAa,CAAC,MAAM,CAAmB,CAAC;AAEhF,OAAO,EAAE,OAAO,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js b/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js deleted file mode 100644 index 309b72b9..00000000 --- a/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getKeys = void 0; -const eslint_visitor_keys_1 = require("eslint-visitor-keys"); -const getKeys = eslint_visitor_keys_1.getKeys; -exports.getKeys = getKeys; -//# sourceMappingURL=get-keys.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map b/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map deleted file mode 100644 index 4a0c0986..00000000 --- a/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"get-keys.js","sourceRoot":"","sources":["../src/get-keys.ts"],"names":[],"mappings":";;;AACA,6DAAiE;AAEjE,MAAM,OAAO,GAAmD,6BAAe,CAAC;AAEvE,0BAAO"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts b/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts deleted file mode 100644 index 895ff52b..00000000 --- a/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { getKeys } from './get-keys'; -export { visitorKeys, VisitorKeys } from './visitor-keys'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts.map b/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts.map deleted file mode 100644 index 393a7067..00000000 --- a/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/visitor-keys/dist/index.js b/node_modules/@typescript-eslint/visitor-keys/dist/index.js deleted file mode 100644 index a5b4b62a..00000000 --- a/node_modules/@typescript-eslint/visitor-keys/dist/index.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.visitorKeys = exports.getKeys = void 0; -var get_keys_1 = require("./get-keys"); -Object.defineProperty(exports, "getKeys", { enumerable: true, get: function () { return get_keys_1.getKeys; } }); -var visitor_keys_1 = require("./visitor-keys"); -Object.defineProperty(exports, "visitorKeys", { enumerable: true, get: function () { return visitor_keys_1.visitorKeys; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map b/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map deleted file mode 100644 index 5f74496f..00000000 --- a/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAA5B,mGAAA,OAAO,OAAA;AAChB,+CAA0D;AAAjD,2GAAA,WAAW,OAAA"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts b/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts deleted file mode 100644 index ceb5a2b5..00000000 --- a/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -interface VisitorKeys { - readonly [type: string]: readonly string[] | undefined; -} -declare const visitorKeys: VisitorKeys; -export { visitorKeys, VisitorKeys }; -//# sourceMappingURL=visitor-keys.d.ts.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map b/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map deleted file mode 100644 index da9fd621..00000000 --- a/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"visitor-keys.d.ts","sourceRoot":"","sources":["../src/visitor-keys.ts"],"names":[],"mappings":"AAGA,UAAU,WAAW;IACnB,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;CACxD;AAmQD,QAAA,MAAM,WAAW,EAAE,WAAyD,CAAC;AAE7E,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js b/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js deleted file mode 100644 index 6a8f8f5d..00000000 --- a/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js +++ /dev/null @@ -1,175 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.visitorKeys = void 0; -const eslintVisitorKeys = __importStar(require("eslint-visitor-keys")); -/** - * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! IMPORTANT NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - * - * The key arrays should be sorted in the order in which you would want to visit - * the child keys - don't just sort them alphabetically. - */ -// eslint-disable-next-line @typescript-eslint/explicit-function-return-type -- TODO - add ignore IIFE option -const SharedVisitorKeys = (() => { - const FunctionType = ['typeParameters', 'params', 'returnType']; - const AnonymousFunction = [...FunctionType, 'body']; - const AbstractPropertyDefinition = [ - 'decorators', - 'key', - 'typeAnnotation', - ]; - return { - AnonymousFunction, - Function: ['id', ...AnonymousFunction], - FunctionType, - ClassDeclaration: [ - 'decorators', - 'id', - 'typeParameters', - 'superClass', - 'superTypeParameters', - 'implements', - 'body', - ], - AbstractPropertyDefinition: ['decorators', 'key', 'typeAnnotation'], - PropertyDefinition: [...AbstractPropertyDefinition, 'value'], - TypeAssertion: ['expression', 'typeAnnotation'], - }; -})(); -const additionalKeys = { - AccessorProperty: SharedVisitorKeys.PropertyDefinition, - ArrayPattern: ['decorators', 'elements', 'typeAnnotation'], - ArrowFunctionExpression: SharedVisitorKeys.AnonymousFunction, - AssignmentPattern: ['decorators', 'left', 'right', 'typeAnnotation'], - CallExpression: ['callee', 'typeParameters', 'arguments'], - ClassDeclaration: SharedVisitorKeys.ClassDeclaration, - ClassExpression: SharedVisitorKeys.ClassDeclaration, - Decorator: ['expression'], - ExportAllDeclaration: ['exported', 'source', 'assertions'], - ExportNamedDeclaration: ['declaration', 'specifiers', 'source', 'assertions'], - FunctionDeclaration: SharedVisitorKeys.Function, - FunctionExpression: SharedVisitorKeys.Function, - Identifier: ['decorators', 'typeAnnotation'], - ImportAttribute: ['key', 'value'], - ImportDeclaration: ['specifiers', 'source', 'assertions'], - ImportExpression: ['source', 'attributes'], - JSXClosingFragment: [], - JSXOpeningElement: ['name', 'typeParameters', 'attributes'], - JSXOpeningFragment: [], - JSXSpreadChild: ['expression'], - MethodDefinition: ['decorators', 'key', 'value', 'typeParameters'], - NewExpression: ['callee', 'typeParameters', 'arguments'], - ObjectPattern: ['decorators', 'properties', 'typeAnnotation'], - PropertyDefinition: SharedVisitorKeys.PropertyDefinition, - RestElement: ['decorators', 'argument', 'typeAnnotation'], - StaticBlock: ['body'], - TaggedTemplateExpression: ['tag', 'typeParameters', 'quasi'], - TSAbstractAccessorProperty: SharedVisitorKeys.AbstractPropertyDefinition, - TSAbstractKeyword: [], - TSAbstractMethodDefinition: ['key', 'value'], - TSAbstractPropertyDefinition: SharedVisitorKeys.AbstractPropertyDefinition, - TSAnyKeyword: [], - TSArrayType: ['elementType'], - TSAsExpression: SharedVisitorKeys.TypeAssertion, - TSAsyncKeyword: [], - TSBigIntKeyword: [], - TSBooleanKeyword: [], - TSCallSignatureDeclaration: SharedVisitorKeys.FunctionType, - TSClassImplements: ['expression', 'typeParameters'], - TSConditionalType: ['checkType', 'extendsType', 'trueType', 'falseType'], - TSConstructorType: SharedVisitorKeys.FunctionType, - TSConstructSignatureDeclaration: SharedVisitorKeys.FunctionType, - TSDeclareFunction: SharedVisitorKeys.Function, - TSDeclareKeyword: [], - TSEmptyBodyFunctionExpression: ['id', ...SharedVisitorKeys.FunctionType], - TSEnumDeclaration: ['id', 'members'], - TSEnumMember: ['id', 'initializer'], - TSExportAssignment: ['expression'], - TSExportKeyword: [], - TSExternalModuleReference: ['expression'], - TSFunctionType: SharedVisitorKeys.FunctionType, - TSImportEqualsDeclaration: ['id', 'moduleReference'], - TSImportType: ['parameter', 'qualifier', 'typeParameters'], - TSIndexedAccessType: ['indexType', 'objectType'], - TSIndexSignature: ['parameters', 'typeAnnotation'], - TSInferType: ['typeParameter'], - TSInstantiationExpression: ['expression', 'typeParameters'], - TSInterfaceBody: ['body'], - TSInterfaceDeclaration: ['id', 'typeParameters', 'extends', 'body'], - TSInterfaceHeritage: ['expression', 'typeParameters'], - TSIntersectionType: ['types'], - TSIntrinsicKeyword: [], - TSLiteralType: ['literal'], - TSMappedType: ['nameType', 'typeParameter', 'typeAnnotation'], - TSMethodSignature: ['typeParameters', 'key', 'params', 'returnType'], - TSModuleBlock: ['body'], - TSModuleDeclaration: ['id', 'body'], - TSNamedTupleMember: ['label', 'elementType'], - TSNamespaceExportDeclaration: ['id'], - TSNeverKeyword: [], - TSNonNullExpression: ['expression'], - TSNullKeyword: [], - TSNumberKeyword: [], - TSObjectKeyword: [], - TSOptionalType: ['typeAnnotation'], - TSParameterProperty: ['decorators', 'parameter'], - TSPrivateKeyword: [], - TSPropertySignature: ['typeAnnotation', 'key', 'initializer'], - TSProtectedKeyword: [], - TSPublicKeyword: [], - TSQualifiedName: ['left', 'right'], - TSReadonlyKeyword: [], - TSRestType: ['typeAnnotation'], - TSSatisfiesExpression: [ - // this is intentionally different to SharedVisitorKeys.TypeAssertion because - // the type annotation comes first in the source code - 'typeAnnotation', - 'expression', - ], - TSStaticKeyword: [], - TSStringKeyword: [], - TSSymbolKeyword: [], - TSTemplateLiteralType: ['quasis', 'types'], - TSThisType: [], - TSTupleType: ['elementTypes'], - TSTypeAliasDeclaration: ['id', 'typeParameters', 'typeAnnotation'], - TSTypeAnnotation: ['typeAnnotation'], - TSTypeAssertion: SharedVisitorKeys.TypeAssertion, - TSTypeLiteral: ['members'], - TSTypeOperator: ['typeAnnotation'], - TSTypeParameter: ['name', 'constraint', 'default'], - TSTypeParameterDeclaration: ['params'], - TSTypeParameterInstantiation: ['params'], - TSTypePredicate: ['typeAnnotation', 'parameterName'], - TSTypeQuery: ['exprName', 'typeParameters'], - TSTypeReference: ['typeName', 'typeParameters'], - TSUndefinedKeyword: [], - TSUnionType: ['types'], - TSUnknownKeyword: [], - TSVoidKeyword: [], -}; -const visitorKeys = eslintVisitorKeys.unionWith(additionalKeys); -exports.visitorKeys = visitorKeys; -//# sourceMappingURL=visitor-keys.js.map \ No newline at end of file diff --git a/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map b/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map deleted file mode 100644 index b9986e3d..00000000 --- a/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"visitor-keys.js","sourceRoot":"","sources":["../src/visitor-keys.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uEAAyD;AAgHzD;;;;;GAKG;AAEH,6GAA6G;AAC7G,MAAM,iBAAiB,GAAG,CAAC,GAAG,EAAE;IAC9B,MAAM,YAAY,GAAG,CAAC,gBAAgB,EAAE,QAAQ,EAAE,YAAY,CAAU,CAAC;IACzE,MAAM,iBAAiB,GAAG,CAAC,GAAG,YAAY,EAAE,MAAM,CAAU,CAAC;IAC7D,MAAM,0BAA0B,GAAG;QACjC,YAAY;QACZ,KAAK;QACL,gBAAgB;KACR,CAAC;IAEX,OAAO;QACL,iBAAiB;QACjB,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,iBAAiB,CAAC;QACtC,YAAY;QAEZ,gBAAgB,EAAE;YAChB,YAAY;YACZ,IAAI;YACJ,gBAAgB;YAChB,YAAY;YACZ,qBAAqB;YACrB,YAAY;YACZ,MAAM;SACP;QAED,0BAA0B,EAAE,CAAC,YAAY,EAAE,KAAK,EAAE,gBAAgB,CAAC;QACnE,kBAAkB,EAAE,CAAC,GAAG,0BAA0B,EAAE,OAAO,CAAC;QAC5D,aAAa,EAAE,CAAC,YAAY,EAAE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/dist/index.d.ts deleted file mode 100644 index a466712a..00000000 --- a/node_modules/@vitest/coverage-v8/dist/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Profiler } from 'node:inspector'; -import { V8CoverageProvider } from './provider.js'; -import 'istanbul-lib-coverage'; -import 'vitest/coverage'; -import 'vitest'; -import 'vitest/node'; - -declare const _default: { - startCoverage(): void; - takeCoverage(): Promise<{ - result: Profiler.ScriptCoverage[]; - }>; - stopCoverage(): void; - getProvider(): Promise; -}; - -export { _default as default }; diff --git a/node_modules/@vitest/coverage-v8/dist/index.js b/node_modules/@vitest/coverage-v8/dist/index.js deleted file mode 100644 index 236fa6bd..00000000 --- a/node_modules/@vitest/coverage-v8/dist/index.js +++ /dev/null @@ -1,59 +0,0 @@ -import inspector from 'node:inspector'; -import { provider } from 'std-env'; - -const session = new inspector.Session(); -function startCoverage() { - session.connect(); - session.post("Profiler.enable"); - session.post("Profiler.startPreciseCoverage", { - callCount: true, - detailed: true - }); -} -async function takeCoverage() { - return new Promise((resolve, reject) => { - session.post("Profiler.takePreciseCoverage", async (error, coverage) => { - if (error) { - return reject(error); - } - const result = coverage.result.filter(filterResult); - resolve({ result }); - }); - if (provider === "stackblitz") { - resolve({ result: [] }); - } - }); -} -function stopCoverage() { - session.post("Profiler.stopPreciseCoverage"); - session.post("Profiler.disable"); - session.disconnect(); -} -function filterResult(coverage) { - if (!coverage.url.startsWith("file://")) { - return false; - } - if (coverage.url.includes("/node_modules/")) { - return false; - } - return true; -} - -var index = { - startCoverage() { - return startCoverage(); - }, - takeCoverage() { - return takeCoverage(); - }, - stopCoverage() { - return stopCoverage(); - }, - async getProvider() { - const name = "./provider.js"; - const { V8CoverageProvider } = await import(name); - return new V8CoverageProvider(); - } -}; - -export { index as default }; diff --git a/node_modules/@vitest/coverage-v8/dist/provider.d.ts b/node_modules/@vitest/coverage-v8/dist/provider.d.ts deleted file mode 100644 index adc58faf..00000000 --- a/node_modules/@vitest/coverage-v8/dist/provider.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { CoverageMap } from 'istanbul-lib-coverage'; -import { BaseCoverageProvider } from 'vitest/coverage'; -import { CoverageProvider, AfterSuiteRunMeta, ReportContext, ResolvedCoverageOptions } from 'vitest'; -import { Vitest } from 'vitest/node'; - -interface TestExclude { - new (opts: { - cwd?: string | string[]; - include?: string | string[]; - exclude?: string | string[]; - extension?: string | string[]; - excludeNodeModules?: boolean; - relativePath?: boolean; - }): { - shouldInstrument: (filePath: string) => boolean; - glob: (cwd: string) => Promise; - }; -} -type Options = ResolvedCoverageOptions<'v8'>; -type Filename = string; -type CoverageFilesByTransformMode = Record; -type ProjectName = NonNullable | typeof DEFAULT_PROJECT; -declare const DEFAULT_PROJECT: unique symbol; -declare class V8CoverageProvider extends BaseCoverageProvider implements CoverageProvider { - name: string; - ctx: Vitest; - options: Options; - testExclude: InstanceType; - coverageFiles: Map; - coverageFilesDirectory: string; - pendingPromises: Promise[]; - initialize(ctx: Vitest): void; - resolveOptions(): Options; - clean(clean?: boolean): Promise; - onAfterSuiteRun({ coverage, transformMode, projectName }: AfterSuiteRunMeta): void; - generateCoverage({ allTestsRun }: ReportContext): Promise; - reportCoverage(coverageMap: unknown, { allTestsRun }: ReportContext): Promise; - generateReports(coverageMap: CoverageMap, allTestsRun?: boolean): Promise; - mergeReports(coverageMaps: unknown[]): Promise; - private getUntestedFiles; - private getSources; - private convertCoverage; -} - -export { V8CoverageProvider }; diff --git a/node_modules/@vitest/coverage-v8/dist/provider.js b/node_modules/@vitest/coverage-v8/dist/provider.js deleted file mode 100644 index 1cb55fc8..00000000 --- a/node_modules/@vitest/coverage-v8/dist/provider.js +++ /dev/null @@ -1,2658 +0,0 @@ -import { existsSync, promises as promises$1, readdirSync, writeFileSync } from 'node:fs'; -import { pathToFileURL, fileURLToPath as fileURLToPath$1 } from 'node:url'; -import require$$0 from 'assert'; -import require$$2 from 'util'; -import require$$3 from 'path'; -import require$$4 from 'url'; -import require$$9 from 'fs'; -import require$$11 from 'module'; -import { mergeProcessCovs } from '@bcoe/v8-coverage'; -import libReport from 'istanbul-lib-report'; -import reports from 'istanbul-reports'; -import libCoverage from 'istanbul-lib-coverage'; -import libSourceMaps from 'istanbul-lib-source-maps'; -import MagicString from 'magic-string'; -import { parseModule } from 'magicast'; -import remapping from '@ampproject/remapping'; -import c from 'tinyrainbow'; -import { provider } from 'std-env'; -import createDebug from 'debug'; -import { builtinModules } from 'node:module'; -import { coverageConfigDefaults } from 'vitest/config'; -import { BaseCoverageProvider } from 'vitest/coverage'; -import _TestExclude from 'test-exclude'; - -var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; - -function getDefaultExportFromCjs (x) { - return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; -} - -var convertSourceMap$1 = {}; - -(function (exports) { - - Object.defineProperty(exports, 'commentRegex', { - get: function getCommentRegex () { - // Groups: 1: media type, 2: MIME type, 3: charset, 4: encoding, 5: data. - return /^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/mg; - } - }); - - - Object.defineProperty(exports, 'mapFileCommentRegex', { - get: function getMapFileCommentRegex () { - // Matches sourceMappingURL in either // or /* comment styles. - return /(?:\/\/[@#][ \t]+?sourceMappingURL=([^\s'"`]+?)[ \t]*?$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*?(?:\*\/){1}[ \t]*?$)/mg; - } - }); - - var decodeBase64; - if (typeof Buffer !== 'undefined') { - if (typeof Buffer.from === 'function') { - decodeBase64 = decodeBase64WithBufferFrom; - } else { - decodeBase64 = decodeBase64WithNewBuffer; - } - } else { - decodeBase64 = decodeBase64WithAtob; - } - - function decodeBase64WithBufferFrom(base64) { - return Buffer.from(base64, 'base64').toString(); - } - - function decodeBase64WithNewBuffer(base64) { - if (typeof value === 'number') { - throw new TypeError('The value to decode must not be of type number.'); - } - return new Buffer(base64, 'base64').toString(); - } - - function decodeBase64WithAtob(base64) { - return decodeURIComponent(escape(atob(base64))); - } - - function stripComment(sm) { - return sm.split(',').pop(); - } - - function readFromFileMap(sm, read) { - var r = exports.mapFileCommentRegex.exec(sm); - // for some odd reason //# .. captures in 1 and /* .. */ in 2 - var filename = r[1] || r[2]; - - try { - var sm = read(filename); - if (sm != null && typeof sm.catch === 'function') { - return sm.catch(throwError); - } else { - return sm; - } - } catch (e) { - throwError(e); - } - - function throwError(e) { - throw new Error('An error occurred while trying to read the map file at ' + filename + '\n' + e.stack); - } - } - - function Converter (sm, opts) { - opts = opts || {}; - - if (opts.hasComment) { - sm = stripComment(sm); - } - - if (opts.encoding === 'base64') { - sm = decodeBase64(sm); - } else if (opts.encoding === 'uri') { - sm = decodeURIComponent(sm); - } - - if (opts.isJSON || opts.encoding) { - sm = JSON.parse(sm); - } - - this.sourcemap = sm; - } - - Converter.prototype.toJSON = function (space) { - return JSON.stringify(this.sourcemap, null, space); - }; - - if (typeof Buffer !== 'undefined') { - if (typeof Buffer.from === 'function') { - Converter.prototype.toBase64 = encodeBase64WithBufferFrom; - } else { - Converter.prototype.toBase64 = encodeBase64WithNewBuffer; - } - } else { - Converter.prototype.toBase64 = encodeBase64WithBtoa; - } - - function encodeBase64WithBufferFrom() { - var json = this.toJSON(); - return Buffer.from(json, 'utf8').toString('base64'); - } - - function encodeBase64WithNewBuffer() { - var json = this.toJSON(); - if (typeof json === 'number') { - throw new TypeError('The json to encode must not be of type number.'); - } - return new Buffer(json, 'utf8').toString('base64'); - } - - function encodeBase64WithBtoa() { - var json = this.toJSON(); - return btoa(unescape(encodeURIComponent(json))); - } - - Converter.prototype.toURI = function () { - var json = this.toJSON(); - return encodeURIComponent(json); - }; - - Converter.prototype.toComment = function (options) { - var encoding, content, data; - if (options != null && options.encoding === 'uri') { - encoding = ''; - content = this.toURI(); - } else { - encoding = ';base64'; - content = this.toBase64(); - } - data = 'sourceMappingURL=data:application/json;charset=utf-8' + encoding + ',' + content; - return options != null && options.multiline ? '/*# ' + data + ' */' : '//# ' + data; - }; - - // returns copy instead of original - Converter.prototype.toObject = function () { - return JSON.parse(this.toJSON()); - }; - - Converter.prototype.addProperty = function (key, value) { - if (this.sourcemap.hasOwnProperty(key)) throw new Error('property "' + key + '" already exists on the sourcemap, use set property instead'); - return this.setProperty(key, value); - }; - - Converter.prototype.setProperty = function (key, value) { - this.sourcemap[key] = value; - return this; - }; - - Converter.prototype.getProperty = function (key) { - return this.sourcemap[key]; - }; - - exports.fromObject = function (obj) { - return new Converter(obj); - }; - - exports.fromJSON = function (json) { - return new Converter(json, { isJSON: true }); - }; - - exports.fromURI = function (uri) { - return new Converter(uri, { encoding: 'uri' }); - }; - - exports.fromBase64 = function (base64) { - return new Converter(base64, { encoding: 'base64' }); - }; - - exports.fromComment = function (comment) { - var m, encoding; - comment = comment - .replace(/^\/\*/g, '//') - .replace(/\*\/$/g, ''); - m = exports.commentRegex.exec(comment); - encoding = m && m[4] || 'uri'; - return new Converter(comment, { encoding: encoding, hasComment: true }); - }; - - function makeConverter(sm) { - return new Converter(sm, { isJSON: true }); - } - - exports.fromMapFileComment = function (comment, read) { - if (typeof read === 'string') { - throw new Error( - 'String directory paths are no longer supported with `fromMapFileComment`\n' + - 'Please review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading' - ) - } - - var sm = readFromFileMap(comment, read); - if (sm != null && typeof sm.then === 'function') { - return sm.then(makeConverter); - } else { - return makeConverter(sm); - } - }; - - // Finds last sourcemap comment in file or returns null if none was found - exports.fromSource = function (content) { - var m = content.match(exports.commentRegex); - return m ? exports.fromComment(m.pop()) : null; - }; - - // Finds last sourcemap comment in file or returns null if none was found - exports.fromMapFileSource = function (content, read) { - if (typeof read === 'string') { - throw new Error( - 'String directory paths are no longer supported with `fromMapFileSource`\n' + - 'Please review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading' - ) - } - var m = content.match(exports.mapFileCommentRegex); - return m ? exports.fromMapFileComment(m.pop(), read) : null; - }; - - exports.removeComments = function (src) { - return src.replace(exports.commentRegex, ''); - }; - - exports.removeMapFileComments = function (src) { - return src.replace(exports.mapFileCommentRegex, ''); - }; - - exports.generateMapFileComment = function (file, options) { - var data = 'sourceMappingURL=' + file; - return options && options.multiline ? '/*# ' + data + ' */' : '//# ' + data; - }; -} (convertSourceMap$1)); - -var branch; -var hasRequiredBranch; - -function requireBranch () { - if (hasRequiredBranch) return branch; - hasRequiredBranch = 1; - branch = class CovBranch { - constructor (startLine, startCol, endLine, endCol, count) { - this.startLine = startLine; - this.startCol = startCol; - this.endLine = endLine; - this.endCol = endCol; - this.count = count; - } - - toIstanbul () { - const location = { - start: { - line: this.startLine, - column: this.startCol - }, - end: { - line: this.endLine, - column: this.endCol - } - }; - return { - type: 'branch', - line: this.startLine, - loc: location, - locations: [Object.assign({}, location)] - } - } - }; - return branch; -} - -var _function; -var hasRequired_function; - -function require_function () { - if (hasRequired_function) return _function; - hasRequired_function = 1; - _function = class CovFunction { - constructor (name, startLine, startCol, endLine, endCol, count) { - this.name = name; - this.startLine = startLine; - this.startCol = startCol; - this.endLine = endLine; - this.endCol = endCol; - this.count = count; - } - - toIstanbul () { - const loc = { - start: { - line: this.startLine, - column: this.startCol - }, - end: { - line: this.endLine, - column: this.endCol - } - }; - return { - name: this.name, - decl: loc, - loc, - line: this.startLine - } - } - }; - return _function; -} - -var line; -var hasRequiredLine; - -function requireLine () { - if (hasRequiredLine) return line; - hasRequiredLine = 1; - line = class CovLine { - constructor (line, startCol, lineStr) { - this.line = line; - // note that startCol and endCol are absolute positions - // within a file, not relative to the line. - this.startCol = startCol; - - // the line length itself does not include the newline characters, - // these are however taken into account when enumerating absolute offset. - const matchedNewLineChar = lineStr.match(/\r?\n$/u); - const newLineLength = matchedNewLineChar ? matchedNewLineChar[0].length : 0; - this.endCol = startCol + lineStr.length - newLineLength; - - // we start with all lines having been executed, and work - // backwards zeroing out lines based on V8 output. - this.count = 1; - - // set by source.js during parsing, if /* c8 ignore next */ is found. - this.ignore = false; - } - - toIstanbul () { - return { - start: { - line: this.line, - column: 0 - }, - end: { - line: this.line, - column: this.endCol - this.startCol - } - } - } - }; - return line; -} - -var range = {}; - -/** - * ...something resembling a binary search, to find the lowest line within the range. - * And then you could break as soon as the line is longer than the range... - */ - -var hasRequiredRange; - -function requireRange () { - if (hasRequiredRange) return range; - hasRequiredRange = 1; - range.sliceRange = (lines, startCol, endCol, inclusive = false) => { - let start = 0; - let end = lines.length; - - if (inclusive) { - // I consider this a temporary solution until I find an alternaive way to fix the "off by one issue" - --startCol; - } - - while (start < end) { - let mid = (start + end) >> 1; - if (startCol >= lines[mid].endCol) { - start = mid + 1; - } else if (endCol < lines[mid].startCol) { - end = mid - 1; - } else { - end = mid; - while (mid >= 0 && startCol < lines[mid].endCol && endCol >= lines[mid].startCol) { - --mid; - } - start = mid + 1; - break - } - } - - while (end < lines.length && startCol < lines[end].endCol && endCol >= lines[end].startCol) { - ++end; - } - - return lines.slice(start, end) - }; - return range; -} - -var traceMapping_umd = {exports: {}}; - -var sourcemapCodec_umd = {exports: {}}; - -var hasRequiredSourcemapCodec_umd; - -function requireSourcemapCodec_umd () { - if (hasRequiredSourcemapCodec_umd) return sourcemapCodec_umd.exports; - hasRequiredSourcemapCodec_umd = 1; - (function (module, exports) { - (function (global, factory) { - factory(exports) ; - })(commonjsGlobal, (function (exports) { - const comma = ','.charCodeAt(0); - const semicolon = ';'.charCodeAt(0); - const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; - const intToChar = new Uint8Array(64); // 64 possible chars. - const charToInt = new Uint8Array(128); // z is 122 in ASCII - for (let i = 0; i < chars.length; i++) { - const c = chars.charCodeAt(i); - intToChar[i] = c; - charToInt[c] = i; - } - // Provide a fallback for older environments. - const td = typeof TextDecoder !== 'undefined' - ? /* #__PURE__ */ new TextDecoder() - : typeof Buffer !== 'undefined' - ? { - decode(buf) { - const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength); - return out.toString(); - }, - } - : { - decode(buf) { - let out = ''; - for (let i = 0; i < buf.length; i++) { - out += String.fromCharCode(buf[i]); - } - return out; - }, - }; - function decode(mappings) { - const state = new Int32Array(5); - const decoded = []; - let index = 0; - do { - const semi = indexOf(mappings, index); - const line = []; - let sorted = true; - let lastCol = 0; - state[0] = 0; - for (let i = index; i < semi; i++) { - let seg; - i = decodeInteger(mappings, i, state, 0); // genColumn - const col = state[0]; - if (col < lastCol) - sorted = false; - lastCol = col; - if (hasMoreVlq(mappings, i, semi)) { - i = decodeInteger(mappings, i, state, 1); // sourcesIndex - i = decodeInteger(mappings, i, state, 2); // sourceLine - i = decodeInteger(mappings, i, state, 3); // sourceColumn - if (hasMoreVlq(mappings, i, semi)) { - i = decodeInteger(mappings, i, state, 4); // namesIndex - seg = [col, state[1], state[2], state[3], state[4]]; - } - else { - seg = [col, state[1], state[2], state[3]]; - } - } - else { - seg = [col]; - } - line.push(seg); - } - if (!sorted) - sort(line); - decoded.push(line); - index = semi + 1; - } while (index <= mappings.length); - return decoded; - } - function indexOf(mappings, index) { - const idx = mappings.indexOf(';', index); - return idx === -1 ? mappings.length : idx; - } - function decodeInteger(mappings, pos, state, j) { - let value = 0; - let shift = 0; - let integer = 0; - do { - const c = mappings.charCodeAt(pos++); - integer = charToInt[c]; - value |= (integer & 31) << shift; - shift += 5; - } while (integer & 32); - const shouldNegate = value & 1; - value >>>= 1; - if (shouldNegate) { - value = -0x80000000 | -value; - } - state[j] += value; - return pos; - } - function hasMoreVlq(mappings, i, length) { - if (i >= length) - return false; - return mappings.charCodeAt(i) !== comma; - } - function sort(line) { - line.sort(sortComparator); - } - function sortComparator(a, b) { - return a[0] - b[0]; - } - function encode(decoded) { - const state = new Int32Array(5); - const bufLength = 1024 * 16; - const subLength = bufLength - 36; - const buf = new Uint8Array(bufLength); - const sub = buf.subarray(0, subLength); - let pos = 0; - let out = ''; - for (let i = 0; i < decoded.length; i++) { - const line = decoded[i]; - if (i > 0) { - if (pos === bufLength) { - out += td.decode(buf); - pos = 0; - } - buf[pos++] = semicolon; - } - if (line.length === 0) - continue; - state[0] = 0; - for (let j = 0; j < line.length; j++) { - const segment = line[j]; - // We can push up to 5 ints, each int can take at most 7 chars, and we - // may push a comma. - if (pos > subLength) { - out += td.decode(sub); - buf.copyWithin(0, subLength, pos); - pos -= subLength; - } - if (j > 0) - buf[pos++] = comma; - pos = encodeInteger(buf, pos, state, segment, 0); // genColumn - if (segment.length === 1) - continue; - pos = encodeInteger(buf, pos, state, segment, 1); // sourcesIndex - pos = encodeInteger(buf, pos, state, segment, 2); // sourceLine - pos = encodeInteger(buf, pos, state, segment, 3); // sourceColumn - if (segment.length === 4) - continue; - pos = encodeInteger(buf, pos, state, segment, 4); // namesIndex - } - } - return out + td.decode(buf.subarray(0, pos)); - } - function encodeInteger(buf, pos, state, segment, j) { - const next = segment[j]; - let num = next - state[j]; - state[j] = next; - num = num < 0 ? (-num << 1) | 1 : num << 1; - do { - let clamped = num & 0b011111; - num >>>= 5; - if (num > 0) - clamped |= 0b100000; - buf[pos++] = intToChar[clamped]; - } while (num > 0); - return pos; - } - - exports.decode = decode; - exports.encode = encode; - - Object.defineProperty(exports, '__esModule', { value: true }); - - })); - - } (sourcemapCodec_umd, sourcemapCodec_umd.exports)); - return sourcemapCodec_umd.exports; -} - -var resolveUri_umd = {exports: {}}; - -var hasRequiredResolveUri_umd; - -function requireResolveUri_umd () { - if (hasRequiredResolveUri_umd) return resolveUri_umd.exports; - hasRequiredResolveUri_umd = 1; - (function (module, exports) { - (function (global, factory) { - module.exports = factory() ; - })(commonjsGlobal, (function () { - // Matches the scheme of a URL, eg "http://" - const schemeRegex = /^[\w+.-]+:\/\//; - /** - * Matches the parts of a URL: - * 1. Scheme, including ":", guaranteed. - * 2. User/password, including "@", optional. - * 3. Host, guaranteed. - * 4. Port, including ":", optional. - * 5. Path, including "/", optional. - * 6. Query, including "?", optional. - * 7. Hash, including "#", optional. - */ - const urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/; - /** - * File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start - * with a leading `/`, they can have a domain (but only if they don't start with a Windows drive). - * - * 1. Host, optional. - * 2. Path, which may include "/", guaranteed. - * 3. Query, including "?", optional. - * 4. Hash, including "#", optional. - */ - const fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i; - var UrlType; - (function (UrlType) { - UrlType[UrlType["Empty"] = 1] = "Empty"; - UrlType[UrlType["Hash"] = 2] = "Hash"; - UrlType[UrlType["Query"] = 3] = "Query"; - UrlType[UrlType["RelativePath"] = 4] = "RelativePath"; - UrlType[UrlType["AbsolutePath"] = 5] = "AbsolutePath"; - UrlType[UrlType["SchemeRelative"] = 6] = "SchemeRelative"; - UrlType[UrlType["Absolute"] = 7] = "Absolute"; - })(UrlType || (UrlType = {})); - function isAbsoluteUrl(input) { - return schemeRegex.test(input); - } - function isSchemeRelativeUrl(input) { - return input.startsWith('//'); - } - function isAbsolutePath(input) { - return input.startsWith('/'); - } - function isFileUrl(input) { - return input.startsWith('file:'); - } - function isRelative(input) { - return /^[.?#]/.test(input); - } - function parseAbsoluteUrl(input) { - const match = urlRegex.exec(input); - return makeUrl(match[1], match[2] || '', match[3], match[4] || '', match[5] || '/', match[6] || '', match[7] || ''); - } - function parseFileUrl(input) { - const match = fileRegex.exec(input); - const path = match[2]; - return makeUrl('file:', '', match[1] || '', '', isAbsolutePath(path) ? path : '/' + path, match[3] || '', match[4] || ''); - } - function makeUrl(scheme, user, host, port, path, query, hash) { - return { - scheme, - user, - host, - port, - path, - query, - hash, - type: UrlType.Absolute, - }; - } - function parseUrl(input) { - if (isSchemeRelativeUrl(input)) { - const url = parseAbsoluteUrl('http:' + input); - url.scheme = ''; - url.type = UrlType.SchemeRelative; - return url; - } - if (isAbsolutePath(input)) { - const url = parseAbsoluteUrl('http://foo.com' + input); - url.scheme = ''; - url.host = ''; - url.type = UrlType.AbsolutePath; - return url; - } - if (isFileUrl(input)) - return parseFileUrl(input); - if (isAbsoluteUrl(input)) - return parseAbsoluteUrl(input); - const url = parseAbsoluteUrl('http://foo.com/' + input); - url.scheme = ''; - url.host = ''; - url.type = input - ? input.startsWith('?') - ? UrlType.Query - : input.startsWith('#') - ? UrlType.Hash - : UrlType.RelativePath - : UrlType.Empty; - return url; - } - function stripPathFilename(path) { - // If a path ends with a parent directory "..", then it's a relative path with excess parent - // paths. It's not a file, so we can't strip it. - if (path.endsWith('/..')) - return path; - const index = path.lastIndexOf('/'); - return path.slice(0, index + 1); - } - function mergePaths(url, base) { - normalizePath(base, base.type); - // If the path is just a "/", then it was an empty path to begin with (remember, we're a relative - // path). - if (url.path === '/') { - url.path = base.path; - } - else { - // Resolution happens relative to the base path's directory, not the file. - url.path = stripPathFilename(base.path) + url.path; - } - } - /** - * The path can have empty directories "//", unneeded parents "foo/..", or current directory - * "foo/.". We need to normalize to a standard representation. - */ - function normalizePath(url, type) { - const rel = type <= UrlType.RelativePath; - const pieces = url.path.split('/'); - // We need to preserve the first piece always, so that we output a leading slash. The item at - // pieces[0] is an empty string. - let pointer = 1; - // Positive is the number of real directories we've output, used for popping a parent directory. - // Eg, "foo/bar/.." will have a positive 2, and we can decrement to be left with just "foo". - let positive = 0; - // We need to keep a trailing slash if we encounter an empty directory (eg, splitting "foo/" will - // generate `["foo", ""]` pieces). And, if we pop a parent directory. But once we encounter a - // real directory, we won't need to append, unless the other conditions happen again. - let addTrailingSlash = false; - for (let i = 1; i < pieces.length; i++) { - const piece = pieces[i]; - // An empty directory, could be a trailing slash, or just a double "//" in the path. - if (!piece) { - addTrailingSlash = true; - continue; - } - // If we encounter a real directory, then we don't need to append anymore. - addTrailingSlash = false; - // A current directory, which we can always drop. - if (piece === '.') - continue; - // A parent directory, we need to see if there are any real directories we can pop. Else, we - // have an excess of parents, and we'll need to keep the "..". - if (piece === '..') { - if (positive) { - addTrailingSlash = true; - positive--; - pointer--; - } - else if (rel) { - // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute - // URL, protocol relative URL, or an absolute path, we don't need to keep excess. - pieces[pointer++] = piece; - } - continue; - } - // We've encountered a real directory. Move it to the next insertion pointer, which accounts for - // any popped or dropped directories. - pieces[pointer++] = piece; - positive++; - } - let path = ''; - for (let i = 1; i < pointer; i++) { - path += '/' + pieces[i]; - } - if (!path || (addTrailingSlash && !path.endsWith('/..'))) { - path += '/'; - } - url.path = path; - } - /** - * Attempts to resolve `input` URL/path relative to `base`. - */ - function resolve(input, base) { - if (!input && !base) - return ''; - const url = parseUrl(input); - let inputType = url.type; - if (base && inputType !== UrlType.Absolute) { - const baseUrl = parseUrl(base); - const baseType = baseUrl.type; - switch (inputType) { - case UrlType.Empty: - url.hash = baseUrl.hash; - // fall through - case UrlType.Hash: - url.query = baseUrl.query; - // fall through - case UrlType.Query: - case UrlType.RelativePath: - mergePaths(url, baseUrl); - // fall through - case UrlType.AbsolutePath: - // The host, user, and port are joined, you can't copy one without the others. - url.user = baseUrl.user; - url.host = baseUrl.host; - url.port = baseUrl.port; - // fall through - case UrlType.SchemeRelative: - // The input doesn't have a schema at least, so we need to copy at least that over. - url.scheme = baseUrl.scheme; - } - if (baseType > inputType) - inputType = baseType; - } - normalizePath(url, inputType); - const queryHash = url.query + url.hash; - switch (inputType) { - // This is impossible, because of the empty checks at the start of the function. - // case UrlType.Empty: - case UrlType.Hash: - case UrlType.Query: - return queryHash; - case UrlType.RelativePath: { - // The first char is always a "/", and we need it to be relative. - const path = url.path.slice(1); - if (!path) - return queryHash || '.'; - if (isRelative(base || input) && !isRelative(path)) { - // If base started with a leading ".", or there is no base and input started with a ".", - // then we need to ensure that the relative path starts with a ".". We don't know if - // relative starts with a "..", though, so check before prepending. - return './' + path + queryHash; - } - return path + queryHash; - } - case UrlType.AbsolutePath: - return url.path + queryHash; - default: - return url.scheme + '//' + url.user + url.host + url.port + url.path + queryHash; - } - } - - return resolve; - - })); - - } (resolveUri_umd)); - return resolveUri_umd.exports; -} - -var hasRequiredTraceMapping_umd; - -function requireTraceMapping_umd () { - if (hasRequiredTraceMapping_umd) return traceMapping_umd.exports; - hasRequiredTraceMapping_umd = 1; - (function (module, exports) { - (function (global, factory) { - factory(exports, requireSourcemapCodec_umd(), requireResolveUri_umd()) ; - })(commonjsGlobal, (function (exports, sourcemapCodec, resolveUri) { - function resolve(input, base) { - // The base is always treated as a directory, if it's not empty. - // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327 - // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401 - if (base && !base.endsWith('/')) - base += '/'; - return resolveUri(input, base); - } - - /** - * Removes everything after the last "/", but leaves the slash. - */ - function stripFilename(path) { - if (!path) - return ''; - const index = path.lastIndexOf('/'); - return path.slice(0, index + 1); - } - - const COLUMN = 0; - const SOURCES_INDEX = 1; - const SOURCE_LINE = 2; - const SOURCE_COLUMN = 3; - const NAMES_INDEX = 4; - const REV_GENERATED_LINE = 1; - const REV_GENERATED_COLUMN = 2; - - function maybeSort(mappings, owned) { - const unsortedIndex = nextUnsortedSegmentLine(mappings, 0); - if (unsortedIndex === mappings.length) - return mappings; - // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If - // not, we do not want to modify the consumer's input array. - if (!owned) - mappings = mappings.slice(); - for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) { - mappings[i] = sortSegments(mappings[i], owned); - } - return mappings; - } - function nextUnsortedSegmentLine(mappings, start) { - for (let i = start; i < mappings.length; i++) { - if (!isSorted(mappings[i])) - return i; - } - return mappings.length; - } - function isSorted(line) { - for (let j = 1; j < line.length; j++) { - if (line[j][COLUMN] < line[j - 1][COLUMN]) { - return false; - } - } - return true; - } - function sortSegments(line, owned) { - if (!owned) - line = line.slice(); - return line.sort(sortComparator); - } - function sortComparator(a, b) { - return a[COLUMN] - b[COLUMN]; - } - - let found = false; - /** - * A binary search implementation that returns the index if a match is found. - * If no match is found, then the left-index (the index associated with the item that comes just - * before the desired index) is returned. To maintain proper sort order, a splice would happen at - * the next index: - * - * ```js - * const array = [1, 3]; - * const needle = 2; - * const index = binarySearch(array, needle, (item, needle) => item - needle); - * - * assert.equal(index, 0); - * array.splice(index + 1, 0, needle); - * assert.deepEqual(array, [1, 2, 3]); - * ``` - */ - function binarySearch(haystack, needle, low, high) { - while (low <= high) { - const mid = low + ((high - low) >> 1); - const cmp = haystack[mid][COLUMN] - needle; - if (cmp === 0) { - found = true; - return mid; - } - if (cmp < 0) { - low = mid + 1; - } - else { - high = mid - 1; - } - } - found = false; - return low - 1; - } - function upperBound(haystack, needle, index) { - for (let i = index + 1; i < haystack.length; index = i++) { - if (haystack[i][COLUMN] !== needle) - break; - } - return index; - } - function lowerBound(haystack, needle, index) { - for (let i = index - 1; i >= 0; index = i--) { - if (haystack[i][COLUMN] !== needle) - break; - } - return index; - } - function memoizedState() { - return { - lastKey: -1, - lastNeedle: -1, - lastIndex: -1, - }; - } - /** - * This overly complicated beast is just to record the last tested line/column and the resulting - * index, allowing us to skip a few tests if mappings are monotonically increasing. - */ - function memoizedBinarySearch(haystack, needle, state, key) { - const { lastKey, lastNeedle, lastIndex } = state; - let low = 0; - let high = haystack.length - 1; - if (key === lastKey) { - if (needle === lastNeedle) { - found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle; - return lastIndex; - } - if (needle >= lastNeedle) { - // lastIndex may be -1 if the previous needle was not found. - low = lastIndex === -1 ? 0 : lastIndex; - } - else { - high = lastIndex; - } - } - state.lastKey = key; - state.lastNeedle = needle; - return (state.lastIndex = binarySearch(haystack, needle, low, high)); - } - - // Rebuilds the original source files, with mappings that are ordered by source line/column instead - // of generated line/column. - function buildBySources(decoded, memos) { - const sources = memos.map(buildNullArray); - for (let i = 0; i < decoded.length; i++) { - const line = decoded[i]; - for (let j = 0; j < line.length; j++) { - const seg = line[j]; - if (seg.length === 1) - continue; - const sourceIndex = seg[SOURCES_INDEX]; - const sourceLine = seg[SOURCE_LINE]; - const sourceColumn = seg[SOURCE_COLUMN]; - const originalSource = sources[sourceIndex]; - const originalLine = (originalSource[sourceLine] || (originalSource[sourceLine] = [])); - const memo = memos[sourceIndex]; - // The binary search either found a match, or it found the left-index just before where the - // segment should go. Either way, we want to insert after that. And there may be multiple - // generated segments associated with an original location, so there may need to move several - // indexes before we find where we need to insert. - let index = upperBound(originalLine, sourceColumn, memoizedBinarySearch(originalLine, sourceColumn, memo, sourceLine)); - memo.lastIndex = ++index; - insert(originalLine, index, [sourceColumn, i, seg[COLUMN]]); - } - } - return sources; - } - function insert(array, index, value) { - for (let i = array.length; i > index; i--) { - array[i] = array[i - 1]; - } - array[index] = value; - } - // Null arrays allow us to use ordered index keys without actually allocating contiguous memory like - // a real array. We use a null-prototype object to avoid prototype pollution and deoptimizations. - // Numeric properties on objects are magically sorted in ascending order by the engine regardless of - // the insertion order. So, by setting any numeric keys, even out of order, we'll get ascending - // order when iterating with for-in. - function buildNullArray() { - return { __proto__: null }; - } - - const AnyMap = function (map, mapUrl) { - const parsed = parse(map); - if (!('sections' in parsed)) { - return new TraceMap(parsed, mapUrl); - } - const mappings = []; - const sources = []; - const sourcesContent = []; - const names = []; - const ignoreList = []; - recurse(parsed, mapUrl, mappings, sources, sourcesContent, names, ignoreList, 0, 0, Infinity, Infinity); - const joined = { - version: 3, - file: parsed.file, - names, - sources, - sourcesContent, - mappings, - ignoreList, - }; - return presortedDecodedMap(joined); - }; - function parse(map) { - return typeof map === 'string' ? JSON.parse(map) : map; - } - function recurse(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) { - const { sections } = input; - for (let i = 0; i < sections.length; i++) { - const { map, offset } = sections[i]; - let sl = stopLine; - let sc = stopColumn; - if (i + 1 < sections.length) { - const nextOffset = sections[i + 1].offset; - sl = Math.min(stopLine, lineOffset + nextOffset.line); - if (sl === stopLine) { - sc = Math.min(stopColumn, columnOffset + nextOffset.column); - } - else if (sl < stopLine) { - sc = columnOffset + nextOffset.column; - } - } - addSection(map, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset + offset.line, columnOffset + offset.column, sl, sc); - } - } - function addSection(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) { - const parsed = parse(input); - if ('sections' in parsed) - return recurse(...arguments); - const map = new TraceMap(parsed, mapUrl); - const sourcesOffset = sources.length; - const namesOffset = names.length; - const decoded = decodedMappings(map); - const { resolvedSources, sourcesContent: contents, ignoreList: ignores } = map; - append(sources, resolvedSources); - append(names, map.names); - if (contents) - append(sourcesContent, contents); - else - for (let i = 0; i < resolvedSources.length; i++) - sourcesContent.push(null); - if (ignores) - for (let i = 0; i < ignores.length; i++) - ignoreList.push(ignores[i] + sourcesOffset); - for (let i = 0; i < decoded.length; i++) { - const lineI = lineOffset + i; - // We can only add so many lines before we step into the range that the next section's map - // controls. When we get to the last line, then we'll start checking the segments to see if - // they've crossed into the column range. But it may not have any columns that overstep, so we - // still need to check that we don't overstep lines, too. - if (lineI > stopLine) - return; - // The out line may already exist in mappings (if we're continuing the line started by a - // previous section). Or, we may have jumped ahead several lines to start this section. - const out = getLine(mappings, lineI); - // On the 0th loop, the section's column offset shifts us forward. On all other lines (since the - // map can be multiple lines), it doesn't. - const cOffset = i === 0 ? columnOffset : 0; - const line = decoded[i]; - for (let j = 0; j < line.length; j++) { - const seg = line[j]; - const column = cOffset + seg[COLUMN]; - // If this segment steps into the column range that the next section's map controls, we need - // to stop early. - if (lineI === stopLine && column >= stopColumn) - return; - if (seg.length === 1) { - out.push([column]); - continue; - } - const sourcesIndex = sourcesOffset + seg[SOURCES_INDEX]; - const sourceLine = seg[SOURCE_LINE]; - const sourceColumn = seg[SOURCE_COLUMN]; - out.push(seg.length === 4 - ? [column, sourcesIndex, sourceLine, sourceColumn] - : [column, sourcesIndex, sourceLine, sourceColumn, namesOffset + seg[NAMES_INDEX]]); - } - } - } - function append(arr, other) { - for (let i = 0; i < other.length; i++) - arr.push(other[i]); - } - function getLine(arr, index) { - for (let i = arr.length; i <= index; i++) - arr[i] = []; - return arr[index]; - } - - const LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)'; - const COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)'; - const LEAST_UPPER_BOUND = -1; - const GREATEST_LOWER_BOUND = 1; - class TraceMap { - constructor(map, mapUrl) { - const isString = typeof map === 'string'; - if (!isString && map._decodedMemo) - return map; - const parsed = (isString ? JSON.parse(map) : map); - const { version, file, names, sourceRoot, sources, sourcesContent } = parsed; - this.version = version; - this.file = file; - this.names = names || []; - this.sourceRoot = sourceRoot; - this.sources = sources; - this.sourcesContent = sourcesContent; - this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || undefined; - const from = resolve(sourceRoot || '', stripFilename(mapUrl)); - this.resolvedSources = sources.map((s) => resolve(s || '', from)); - const { mappings } = parsed; - if (typeof mappings === 'string') { - this._encoded = mappings; - this._decoded = undefined; - } - else { - this._encoded = undefined; - this._decoded = maybeSort(mappings, isString); - } - this._decodedMemo = memoizedState(); - this._bySources = undefined; - this._bySourceMemos = undefined; - } - } - /** - * Typescript doesn't allow friend access to private fields, so this just casts the map into a type - * with public access modifiers. - */ - function cast(map) { - return map; - } - /** - * Returns the encoded (VLQ string) form of the SourceMap's mappings field. - */ - function encodedMappings(map) { - var _a; - var _b; - return ((_a = (_b = cast(map))._encoded) !== null && _a !== void 0 ? _a : (_b._encoded = sourcemapCodec.encode(cast(map)._decoded))); - } - /** - * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field. - */ - function decodedMappings(map) { - var _a; - return ((_a = cast(map))._decoded || (_a._decoded = sourcemapCodec.decode(cast(map)._encoded))); - } - /** - * A low-level API to find the segment associated with a generated line/column (think, from a - * stack trace). Line and column here are 0-based, unlike `originalPositionFor`. - */ - function traceSegment(map, line, column) { - const decoded = decodedMappings(map); - // It's common for parent source maps to have pointers to lines that have no - // mapping (like a "//# sourceMappingURL=") at the end of the child file. - if (line >= decoded.length) - return null; - const segments = decoded[line]; - const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, GREATEST_LOWER_BOUND); - return index === -1 ? null : segments[index]; - } - /** - * A higher-level API to find the source/line/column associated with a generated line/column - * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in - * `source-map` library. - */ - function originalPositionFor(map, needle) { - let { line, column, bias } = needle; - line--; - if (line < 0) - throw new Error(LINE_GTR_ZERO); - if (column < 0) - throw new Error(COL_GTR_EQ_ZERO); - const decoded = decodedMappings(map); - // It's common for parent source maps to have pointers to lines that have no - // mapping (like a "//# sourceMappingURL=") at the end of the child file. - if (line >= decoded.length) - return OMapping(null, null, null, null); - const segments = decoded[line]; - const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND); - if (index === -1) - return OMapping(null, null, null, null); - const segment = segments[index]; - if (segment.length === 1) - return OMapping(null, null, null, null); - const { names, resolvedSources } = map; - return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null); - } - /** - * Finds the generated line/column position of the provided source/line/column source position. - */ - function generatedPositionFor(map, needle) { - const { source, line, column, bias } = needle; - return generatedPosition(map, source, line, column, bias || GREATEST_LOWER_BOUND, false); - } - /** - * Finds all generated line/column positions of the provided source/line/column source position. - */ - function allGeneratedPositionsFor(map, needle) { - const { source, line, column, bias } = needle; - // SourceMapConsumer uses LEAST_UPPER_BOUND for some reason, so we follow suit. - return generatedPosition(map, source, line, column, bias || LEAST_UPPER_BOUND, true); - } - /** - * Iterates each mapping in generated position order. - */ - function eachMapping(map, cb) { - const decoded = decodedMappings(map); - const { names, resolvedSources } = map; - for (let i = 0; i < decoded.length; i++) { - const line = decoded[i]; - for (let j = 0; j < line.length; j++) { - const seg = line[j]; - const generatedLine = i + 1; - const generatedColumn = seg[0]; - let source = null; - let originalLine = null; - let originalColumn = null; - let name = null; - if (seg.length !== 1) { - source = resolvedSources[seg[1]]; - originalLine = seg[2] + 1; - originalColumn = seg[3]; - } - if (seg.length === 5) - name = names[seg[4]]; - cb({ - generatedLine, - generatedColumn, - source, - originalLine, - originalColumn, - name, - }); - } - } - } - function sourceIndex(map, source) { - const { sources, resolvedSources } = map; - let index = sources.indexOf(source); - if (index === -1) - index = resolvedSources.indexOf(source); - return index; - } - /** - * Retrieves the source content for a particular source, if its found. Returns null if not. - */ - function sourceContentFor(map, source) { - const { sourcesContent } = map; - if (sourcesContent == null) - return null; - const index = sourceIndex(map, source); - return index === -1 ? null : sourcesContent[index]; - } - /** - * Determines if the source is marked to ignore by the source map. - */ - function isIgnored(map, source) { - const { ignoreList } = map; - if (ignoreList == null) - return false; - const index = sourceIndex(map, source); - return index === -1 ? false : ignoreList.includes(index); - } - /** - * A helper that skips sorting of the input map's mappings array, which can be expensive for larger - * maps. - */ - function presortedDecodedMap(map, mapUrl) { - const tracer = new TraceMap(clone(map, []), mapUrl); - cast(tracer)._decoded = map.mappings; - return tracer; - } - /** - * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ - function decodedMap(map) { - return clone(map, decodedMappings(map)); - } - /** - * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects - * a sourcemap, or to JSON.stringify. - */ - function encodedMap(map) { - return clone(map, encodedMappings(map)); - } - function clone(map, mappings) { - return { - version: map.version, - file: map.file, - names: map.names, - sourceRoot: map.sourceRoot, - sources: map.sources, - sourcesContent: map.sourcesContent, - mappings, - ignoreList: map.ignoreList || map.x_google_ignoreList, - }; - } - function OMapping(source, line, column, name) { - return { source, line, column, name }; - } - function GMapping(line, column) { - return { line, column }; - } - function traceSegmentInternal(segments, memo, line, column, bias) { - let index = memoizedBinarySearch(segments, column, memo, line); - if (found) { - index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index); - } - else if (bias === LEAST_UPPER_BOUND) - index++; - if (index === -1 || index === segments.length) - return -1; - return index; - } - function sliceGeneratedPositions(segments, memo, line, column, bias) { - let min = traceSegmentInternal(segments, memo, line, column, GREATEST_LOWER_BOUND); - // We ignored the bias when tracing the segment so that we're guarnateed to find the first (in - // insertion order) segment that matched. Even if we did respect the bias when tracing, we would - // still need to call `lowerBound()` to find the first segment, which is slower than just looking - // for the GREATEST_LOWER_BOUND to begin with. The only difference that matters for us is when the - // binary search didn't match, in which case GREATEST_LOWER_BOUND just needs to increment to - // match LEAST_UPPER_BOUND. - if (!found && bias === LEAST_UPPER_BOUND) - min++; - if (min === -1 || min === segments.length) - return []; - // We may have found the segment that started at an earlier column. If this is the case, then we - // need to slice all generated segments that match _that_ column, because all such segments span - // to our desired column. - const matchedColumn = found ? column : segments[min][COLUMN]; - // The binary search is not guaranteed to find the lower bound when a match wasn't found. - if (!found) - min = lowerBound(segments, matchedColumn, min); - const max = upperBound(segments, matchedColumn, min); - const result = []; - for (; min <= max; min++) { - const segment = segments[min]; - result.push(GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN])); - } - return result; - } - function generatedPosition(map, source, line, column, bias, all) { - var _a; - line--; - if (line < 0) - throw new Error(LINE_GTR_ZERO); - if (column < 0) - throw new Error(COL_GTR_EQ_ZERO); - const { sources, resolvedSources } = map; - let sourceIndex = sources.indexOf(source); - if (sourceIndex === -1) - sourceIndex = resolvedSources.indexOf(source); - if (sourceIndex === -1) - return all ? [] : GMapping(null, null); - const generated = ((_a = cast(map))._bySources || (_a._bySources = buildBySources(decodedMappings(map), (cast(map)._bySourceMemos = sources.map(memoizedState))))); - const segments = generated[sourceIndex][line]; - if (segments == null) - return all ? [] : GMapping(null, null); - const memo = cast(map)._bySourceMemos[sourceIndex]; - if (all) - return sliceGeneratedPositions(segments, memo, line, column, bias); - const index = traceSegmentInternal(segments, memo, line, column, bias); - if (index === -1) - return GMapping(null, null); - const segment = segments[index]; - return GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]); - } - - exports.AnyMap = AnyMap; - exports.GREATEST_LOWER_BOUND = GREATEST_LOWER_BOUND; - exports.LEAST_UPPER_BOUND = LEAST_UPPER_BOUND; - exports.TraceMap = TraceMap; - exports.allGeneratedPositionsFor = allGeneratedPositionsFor; - exports.decodedMap = decodedMap; - exports.decodedMappings = decodedMappings; - exports.eachMapping = eachMapping; - exports.encodedMap = encodedMap; - exports.encodedMappings = encodedMappings; - exports.generatedPositionFor = generatedPositionFor; - exports.isIgnored = isIgnored; - exports.originalPositionFor = originalPositionFor; - exports.presortedDecodedMap = presortedDecodedMap; - exports.sourceContentFor = sourceContentFor; - exports.traceSegment = traceSegment; - - })); - - } (traceMapping_umd, traceMapping_umd.exports)); - return traceMapping_umd.exports; -} - -var source; -var hasRequiredSource; - -function requireSource () { - if (hasRequiredSource) return source; - hasRequiredSource = 1; - // Patch applied: https://github.com/istanbuljs/v8-to-istanbul/pull/244 - const CovLine = requireLine(); - const { sliceRange } = requireRange(); - const { originalPositionFor, generatedPositionFor, eachMapping, GREATEST_LOWER_BOUND, LEAST_UPPER_BOUND } = requireTraceMapping_umd(); - - source = class CovSource { - constructor (sourceRaw, wrapperLength, traceMap) { - sourceRaw = sourceRaw ? sourceRaw.trimEnd() : ''; - this.lines = []; - this.eof = sourceRaw.length; - this.shebangLength = getShebangLength(sourceRaw); - this.wrapperLength = wrapperLength - this.shebangLength; - this._buildLines(sourceRaw, traceMap); - } - - _buildLines (source, traceMap) { - let position = 0; - let ignoreCount = 0; - let ignoreAll = false; - const linesToCover = traceMap && this._parseLinesToCover(traceMap); - - for (const [i, lineStr] of source.split(/(?<=\r?\n)/u).entries()) { - const lineNumber = i + 1; - const line = new CovLine(lineNumber, position, lineStr); - - if (linesToCover && !linesToCover.has(lineNumber)) { - line.ignore = true; - } - - if (ignoreCount > 0) { - line.ignore = true; - ignoreCount--; - } else if (ignoreAll) { - line.ignore = true; - } - this.lines.push(line); - position += lineStr.length; - - const ignoreToken = this._parseIgnore(lineStr); - if (!ignoreToken) continue - - line.ignore = true; - if (ignoreToken.count !== undefined) { - ignoreCount = ignoreToken.count; - } - if (ignoreToken.start || ignoreToken.stop) { - ignoreAll = ignoreToken.start; - ignoreCount = 0; - } - } - } - - /** - * Parses for comments: - * c8 ignore next - * c8 ignore next 3 - * c8 ignore start - * c8 ignore stop - * And equivalent ones for v8, e.g. v8 ignore next. - * @param {string} lineStr - * @return {{count?: number, start?: boolean, stop?: boolean}|undefined} - */ - _parseIgnore (lineStr) { - const testIgnoreNextLines = lineStr.match(/^\W*\/\* (?:[cv]8|node:coverage) ignore next (?[0-9]+)/); - if (testIgnoreNextLines) { - return { count: Number(testIgnoreNextLines.groups.count) } - } - - // Check if comment is on its own line. - if (lineStr.match(/^\W*\/\* (?:[cv]8|node:coverage) ignore next/)) { - return { count: 1 } - } - - if (lineStr.match(/\/\* ([cv]8|node:coverage) ignore next/)) { - // Won't ignore successive lines, but the current line will be ignored. - return { count: 0 } - } - - const testIgnoreStartStop = lineStr.match(/\/\* [c|v]8 ignore (?start|stop)/); - if (testIgnoreStartStop) { - if (testIgnoreStartStop.groups.mode === 'start') return { start: true } - if (testIgnoreStartStop.groups.mode === 'stop') return { stop: true } - } - - const testNodeIgnoreStartStop = lineStr.match(/\/\* node:coverage (?enable|disable)/); - if (testNodeIgnoreStartStop) { - if (testNodeIgnoreStartStop.groups.mode === 'disable') return { start: true } - if (testNodeIgnoreStartStop.groups.mode === 'enable') return { stop: true } - } - } - - // given a start column and end column in absolute offsets within - // a source file (0 - EOF), returns the relative line column positions. - offsetToOriginalRelative (sourceMap, startCol, endCol) { - const lines = sliceRange(this.lines, startCol, endCol, true); - if (!lines.length) return {} - - const start = originalPositionTryBoth( - sourceMap, - lines[0].line, - Math.max(0, startCol - lines[0].startCol) - ); - if (!(start && start.source)) { - return {} - } - - let end = originalEndPositionFor( - sourceMap, - lines[lines.length - 1].line, - endCol - lines[lines.length - 1].startCol - ); - if (!(end && end.source)) { - return {} - } - - if (start.source !== end.source) { - return {} - } - - if (start.line === end.line && start.column === end.column) { - end = originalPositionFor(sourceMap, { - line: lines[lines.length - 1].line, - column: endCol - lines[lines.length - 1].startCol, - bias: LEAST_UPPER_BOUND - }); - end.column -= 1; - } - - return { - source: start.source, - startLine: start.line, - relStartCol: start.column, - endLine: end.line, - relEndCol: end.column - } - } - - relativeToOffset (line, relCol) { - line = Math.max(line, 1); - if (this.lines[line - 1] === undefined) return this.eof - return Math.min(this.lines[line - 1].startCol + relCol, this.lines[line - 1].endCol) - } - - _parseLinesToCover (traceMap) { - const linesToCover = new Set(); - - eachMapping(traceMap, (mapping) => { - if (mapping.originalLine !== null) { - linesToCover.add(mapping.originalLine); - } - }); - - return linesToCover - } - }; - - // this implementation is pulled over from istanbul-lib-sourcemap: - // https://github.com/istanbuljs/istanbuljs/blob/master/packages/istanbul-lib-source-maps/lib/get-mapping.js - // - /** - * AST ranges are inclusive for start positions and exclusive for end positions. - * Source maps are also logically ranges over text, though interacting with - * them is generally achieved by working with explicit positions. - * - * When finding the _end_ location of an AST item, the range behavior is - * important because what we're asking for is the _end_ of whatever range - * corresponds to the end location we seek. - * - * This boils down to the following steps, conceptually, though the source-map - * library doesn't expose primitives to do this nicely: - * - * 1. Find the range on the generated file that ends at, or exclusively - * contains the end position of the AST node. - * 2. Find the range on the original file that corresponds to - * that generated range. - * 3. Find the _end_ location of that original range. - */ - function originalEndPositionFor (sourceMap, line, column) { - // Given the generated location, find the original location of the mapping - // that corresponds to a range on the generated file that overlaps the - // generated file end location. Note however that this position on its - // own is not useful because it is the position of the _start_ of the range - // on the original file, and we want the _end_ of the range. - const beforeEndMapping = originalPositionTryBoth( - sourceMap, - line, - Math.max(column - 1, 1) - ); - - if (beforeEndMapping.source === null) { - return null - } - - // Convert that original position back to a generated one, with a bump - // to the right, and a rightward bias. Since 'generatedPositionFor' searches - // for mappings in the original-order sorted list, this will find the - // mapping that corresponds to the one immediately after the - // beforeEndMapping mapping. - const afterEndMapping = generatedPositionFor(sourceMap, { - source: beforeEndMapping.source, - line: beforeEndMapping.line, - column: beforeEndMapping.column + 1, - bias: LEAST_UPPER_BOUND - }); - if ( - // If this is null, it means that we've hit the end of the file, - // so we can use Infinity as the end column. - afterEndMapping.line === null || - // If these don't match, it means that the call to - // 'generatedPositionFor' didn't find any other original mappings on - // the line we gave, so consider the binding to extend to infinity. - originalPositionFor(sourceMap, afterEndMapping).line !== - beforeEndMapping.line - ) { - return { - source: beforeEndMapping.source, - line: beforeEndMapping.line, - column: Infinity - } - } - - // Convert the end mapping into the real original position. - return originalPositionFor(sourceMap, afterEndMapping) - } - - function originalPositionTryBoth (sourceMap, line, column) { - let original = originalPositionFor(sourceMap, { - line, - column, - bias: GREATEST_LOWER_BOUND - }); - if (original.line === null) { - original = originalPositionFor(sourceMap, { - line, - column, - bias: LEAST_UPPER_BOUND - }); - } - // The source maps generated by https://github.com/istanbuljs/istanbuljs - // (using @babel/core 7.7.5) have behavior, such that a mapping - // mid-way through a line maps to an earlier line than a mapping - // at position 0. Using the line at positon 0 seems to provide better reports: - // - // if (true) { - // cov_y5divc6zu().b[1][0]++; - // cov_y5divc6zu().s[3]++; - // console.info('reachable'); - // } else { ... } - // ^ ^ - // l5 l3 - const min = originalPositionFor(sourceMap, { - line, - column: 0, - bias: GREATEST_LOWER_BOUND - }); - if (min.line > original.line) { - original = min; - } - return original - } - - // Not required since Node 12, see: https://github.com/nodejs/node/pull/27375 - const isPreNode12 = /^v1[0-1]\./u.test(process.version); - function getShebangLength (source) { - /* c8 ignore start - platform-specific */ - if (isPreNode12 && source.indexOf('#!') === 0) { - const match = source.match(/(?#!.*)/); - if (match) { - return match.groups.shebang.length - } - } else { - /* c8 ignore stop - platform-specific */ - return 0 - } - } - return source; -} - -// Patch applied: https://github.com/istanbuljs/v8-to-istanbul/pull/244 -const assert = require$$0; -const convertSourceMap = convertSourceMap$1; -const util = require$$2; -const debuglog = util.debuglog('c8'); -const { dirname, isAbsolute: isAbsolute$1, join, resolve: resolve$1 } = require$$3; -const { fileURLToPath } = require$$4; -const CovBranch = requireBranch(); -const CovFunction = require_function(); -const CovSource = requireSource(); -const { sliceRange } = requireRange(); -const { readFileSync, promises } = require$$9; -const readFile = promises.readFile; - -const { TraceMap } = requireTraceMapping_umd(); -const isOlderNode10 = /^v10\.(([0-9]\.)|(1[0-5]\.))/u.test(process.version); -const isNode8 = /^v8\./.test(process.version); - -// Injected when Node.js is loading script into isolate pre Node 10.16.x. -// see: https://github.com/nodejs/node/pull/21573. -const cjsWrapperLength = isOlderNode10 ? require$$11.wrapper[0].length : 0; - -var v8ToIstanbul$2 = class V8ToIstanbul { - constructor (scriptPath, wrapperLength, sources, excludePath, excludeEmptyLines) { - assert(typeof scriptPath === 'string', 'scriptPath must be a string'); - assert(!isNode8, 'This module does not support node 8 or lower, please upgrade to node 10'); - this.path = parsePath(scriptPath); - this.wrapperLength = wrapperLength === undefined ? cjsWrapperLength : wrapperLength; - this.excludePath = excludePath || (() => false); - this.excludeEmptyLines = excludeEmptyLines === true; - this.sources = sources || {}; - this.generatedLines = []; - this.branches = {}; - this.functions = {}; - this.covSources = []; - this.rawSourceMap = undefined; - this.sourceMap = undefined; - this.sourceTranspiled = undefined; - // Indicate that this report was generated with placeholder data from - // running --all: - this.all = false; - } - - async load () { - const rawSource = this.sources.source || await readFile(this.path, 'utf8'); - this.rawSourceMap = this.sources.sourceMap || - // if we find a source-map (either inline, or a .map file) we load - // both the transpiled and original source, both of which are used during - // the backflips we perform to remap absolute to relative positions. - convertSourceMap.fromSource(rawSource) || convertSourceMap.fromMapFileSource(rawSource, this._readFileFromDir.bind(this)); - - if (this.rawSourceMap) { - if (this.rawSourceMap.sourcemap.sources.length > 1) { - this.sourceMap = new TraceMap(this.rawSourceMap.sourcemap); - if (!this.sourceMap.sourcesContent) { - this.sourceMap.sourcesContent = await this.sourcesContentFromSources(); - } - this.covSources = this.sourceMap.sourcesContent.map((rawSource, i) => ({ source: new CovSource(rawSource, this.wrapperLength, this.excludeEmptyLines ? this.sourceMap : null), path: this.sourceMap.sources[i] })); - this.sourceTranspiled = new CovSource(rawSource, this.wrapperLength, this.excludeEmptyLines ? this.sourceMap : null); - } else { - const candidatePath = this.rawSourceMap.sourcemap.sources.length >= 1 ? this.rawSourceMap.sourcemap.sources[0] : this.rawSourceMap.sourcemap.file; - this.path = this._resolveSource(this.rawSourceMap, candidatePath || this.path); - this.sourceMap = new TraceMap(this.rawSourceMap.sourcemap); - - let originalRawSource; - if (this.sources.sourceMap && this.sources.sourceMap.sourcemap && this.sources.sourceMap.sourcemap.sourcesContent && this.sources.sourceMap.sourcemap.sourcesContent.length === 1) { - // If the sourcesContent field has been provided, return it rather than attempting - // to load the original source from disk. - // TODO: investigate whether there's ever a case where we hit this logic with 1:many sources. - originalRawSource = this.sources.sourceMap.sourcemap.sourcesContent[0]; - } else if (this.sources.originalSource) { - // Original source may be populated on the sources object. - originalRawSource = this.sources.originalSource; - } else if (this.sourceMap.sourcesContent && this.sourceMap.sourcesContent[0]) { - // perhaps we loaded sourcesContent was populated by an inline source map, or .map file? - // TODO: investigate whether there's ever a case where we hit this logic with 1:many sources. - originalRawSource = this.sourceMap.sourcesContent[0]; - } else { - // We fallback to reading the original source from disk. - originalRawSource = await readFile(this.path, 'utf8'); - } - this.covSources = [{ source: new CovSource(originalRawSource, this.wrapperLength, this.excludeEmptyLines ? this.sourceMap : null), path: this.path }]; - this.sourceTranspiled = new CovSource(rawSource, this.wrapperLength, this.excludeEmptyLines ? this.sourceMap : null); - } - } else { - this.covSources = [{ source: new CovSource(rawSource, this.wrapperLength), path: this.path }]; - } - } - - _readFileFromDir (filename) { - return readFileSync(resolve$1(dirname(this.path), filename), 'utf-8') - } - - async sourcesContentFromSources () { - const fileList = this.sourceMap.sources.map(relativePath => { - const realPath = this._resolveSource(this.rawSourceMap, relativePath); - return readFile(realPath, 'utf-8') - .then(result => result) - .catch(err => { - debuglog(`failed to load ${realPath}: ${err.message}`); - }) - }); - return await Promise.all(fileList) - } - - destroy () { - // no longer necessary, but preserved for backwards compatibility. - } - - _resolveSource (rawSourceMap, sourcePath) { - if (sourcePath.startsWith('file://')) { - return fileURLToPath(sourcePath) - } - sourcePath = sourcePath.replace(/^webpack:\/\//, ''); - const sourceRoot = rawSourceMap.sourcemap.sourceRoot ? rawSourceMap.sourcemap.sourceRoot.replace('file://', '') : ''; - const candidatePath = join(sourceRoot, sourcePath); - - if (isAbsolute$1(candidatePath)) { - return candidatePath - } else { - return resolve$1(dirname(this.path), candidatePath) - } - } - - applyCoverage (blocks) { - blocks.forEach(block => { - block.ranges.forEach((range, i) => { - const isEmptyCoverage = block.functionName === '(empty-report)'; - const { startCol, endCol, path, covSource } = this._maybeRemapStartColEndCol(range, isEmptyCoverage); - if (this.excludePath(path)) { - return - } - let lines; - if (isEmptyCoverage) { - // (empty-report), this will result in a report that has all lines zeroed out. - lines = covSource.lines.filter((line) => { - line.count = 0; - return true - }); - this.all = lines.length > 0; - } else { - lines = sliceRange(covSource.lines, startCol, endCol); - } - if (!lines.length) { - return - } - - const startLineInstance = lines[0]; - const endLineInstance = lines[lines.length - 1]; - - if (block.isBlockCoverage) { - this.branches[path] = this.branches[path] || []; - // record branches. - this.branches[path].push(new CovBranch( - startLineInstance.line, - startCol - startLineInstance.startCol, - endLineInstance.line, - endCol - endLineInstance.startCol, - range.count - )); - - // if block-level granularity is enabled, we still create a single - // CovFunction tracking object for each set of ranges. - if (block.functionName && i === 0) { - this.functions[path] = this.functions[path] || []; - this.functions[path].push(new CovFunction( - block.functionName, - startLineInstance.line, - startCol - startLineInstance.startCol, - endLineInstance.line, - endCol - endLineInstance.startCol, - range.count - )); - } - } else if (block.functionName) { - this.functions[path] = this.functions[path] || []; - // record functions. - this.functions[path].push(new CovFunction( - block.functionName, - startLineInstance.line, - startCol - startLineInstance.startCol, - endLineInstance.line, - endCol - endLineInstance.startCol, - range.count - )); - } - - // record the lines (we record these as statements, such that we're - // compatible with Istanbul 2.0). - lines.forEach(line => { - // make sure branch spans entire line; don't record 'goodbye' - // branch in `const foo = true ? 'hello' : 'goodbye'` as a - // 0 for line coverage. - // - // All lines start out with coverage of 1, and are later set to 0 - // if they are not invoked; line.ignore prevents a line from being - // set to 0, and is set if the special comment /* c8 ignore next */ - // is used. - - if (startCol <= line.startCol && endCol >= line.endCol && !line.ignore) { - line.count = range.count; - } - }); - }); - }); - } - - _maybeRemapStartColEndCol (range, isEmptyCoverage) { - let covSource = this.covSources[0].source; - const covSourceWrapperLength = isEmptyCoverage ? 0 : covSource.wrapperLength; - let startCol = Math.max(0, range.startOffset - covSourceWrapperLength); - let endCol = Math.min(covSource.eof, range.endOffset - covSourceWrapperLength); - let path = this.path; - - if (this.sourceMap) { - const sourceTranspiledWrapperLength = isEmptyCoverage ? 0 : this.sourceTranspiled.wrapperLength; - startCol = Math.max(0, range.startOffset - sourceTranspiledWrapperLength); - endCol = Math.min(this.sourceTranspiled.eof, range.endOffset - sourceTranspiledWrapperLength); - - const { startLine, relStartCol, endLine, relEndCol, source } = this.sourceTranspiled.offsetToOriginalRelative( - this.sourceMap, - startCol, - endCol - ); - - const matchingSource = this.covSources.find(covSource => covSource.path === source); - covSource = matchingSource ? matchingSource.source : this.covSources[0].source; - path = matchingSource ? matchingSource.path : this.covSources[0].path; - - // next we convert these relative positions back to absolute positions - // in the original source (which is the format expected in the next step). - startCol = covSource.relativeToOffset(startLine, relStartCol); - endCol = covSource.relativeToOffset(endLine, relEndCol); - } - - return { - path, - covSource, - startCol, - endCol - } - } - - getInnerIstanbul (source, path) { - // We apply the "Resolving Sources" logic (as defined in - // sourcemaps.info/spec.html) as a final step for 1:many source maps. - // for 1:1 source maps, the resolve logic is applied while loading. - // - // TODO: could we move the resolving logic for 1:1 source maps to the final - // step as well? currently this breaks some tests in c8. - let resolvedPath = path; - if (this.rawSourceMap && this.rawSourceMap.sourcemap.sources.length > 1) { - resolvedPath = this._resolveSource(this.rawSourceMap, path); - } - - if (this.excludePath(resolvedPath)) { - return - } - - return { - [resolvedPath]: { - path: resolvedPath, - all: this.all, - ...this._statementsToIstanbul(source, path), - ...this._branchesToIstanbul(source, path), - ...this._functionsToIstanbul(source, path) - } - } - } - - toIstanbul () { - return this.covSources.reduce((istanbulOuter, { source, path }) => Object.assign(istanbulOuter, this.getInnerIstanbul(source, path)), {}) - } - - _statementsToIstanbul (source, path) { - const statements = { - statementMap: {}, - s: {} - }; - source.lines.forEach((line, index) => { - if (!line.ignore) { - statements.statementMap[`${index}`] = line.toIstanbul(); - statements.s[`${index}`] = line.count; - } - }); - return statements - } - - _branchesToIstanbul (source, path) { - const branches = { - branchMap: {}, - b: {} - }; - this.branches[path] = this.branches[path] || []; - this.branches[path].forEach((branch, index) => { - const srcLine = source.lines[branch.startLine - 1]; - const ignore = srcLine === undefined ? true : srcLine.ignore; - branches.branchMap[`${index}`] = branch.toIstanbul(); - branches.b[`${index}`] = [ignore ? 1 : branch.count]; - }); - return branches - } - - _functionsToIstanbul (source, path) { - const functions = { - fnMap: {}, - f: {} - }; - this.functions[path] = this.functions[path] || []; - this.functions[path].forEach((fn, index) => { - const srcLine = source.lines[fn.startLine - 1]; - const ignore = srcLine === undefined ? true : srcLine.ignore; - functions.fnMap[`${index}`] = fn.toIstanbul(); - functions.f[`${index}`] = ignore ? 1 : fn.count; - }); - return functions - } -}; - -function parsePath (scriptPath) { - return scriptPath.startsWith('file://') ? fileURLToPath(scriptPath) : scriptPath -} - -// Patch applied: https://github.com/istanbuljs/v8-to-istanbul/pull/244 -const V8ToIstanbul = v8ToIstanbul$2; - -var v8ToIstanbul = function (path, wrapperLength, sources, excludePath, excludeEmptyLines) { - return new V8ToIstanbul(path, wrapperLength, sources, excludePath, excludeEmptyLines) -}; - -var v8ToIstanbul$1 = /*@__PURE__*/getDefaultExportFromCjs(v8ToIstanbul); - -const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//; -function normalizeWindowsPath(input = "") { - if (!input) { - return input; - } - return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase()); -} - -const _UNC_REGEX = /^[/\\]{2}/; -const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/; -const _DRIVE_LETTER_RE = /^[A-Za-z]:$/; -const normalize = function(path) { - if (path.length === 0) { - return "."; - } - path = normalizeWindowsPath(path); - const isUNCPath = path.match(_UNC_REGEX); - const isPathAbsolute = isAbsolute(path); - const trailingSeparator = path[path.length - 1] === "/"; - path = normalizeString(path, !isPathAbsolute); - if (path.length === 0) { - if (isPathAbsolute) { - return "/"; - } - return trailingSeparator ? "./" : "."; - } - if (trailingSeparator) { - path += "/"; - } - if (_DRIVE_LETTER_RE.test(path)) { - path += "/"; - } - if (isUNCPath) { - if (!isPathAbsolute) { - return `//./${path}`; - } - return `//${path}`; - } - return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path; -}; -function cwd() { - if (typeof process !== "undefined" && typeof process.cwd === "function") { - return process.cwd().replace(/\\/g, "/"); - } - return "/"; -} -const resolve = function(...arguments_) { - arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument)); - let resolvedPath = ""; - let resolvedAbsolute = false; - for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) { - const path = index >= 0 ? arguments_[index] : cwd(); - if (!path || path.length === 0) { - continue; - } - resolvedPath = `${path}/${resolvedPath}`; - resolvedAbsolute = isAbsolute(path); - } - resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute); - if (resolvedAbsolute && !isAbsolute(resolvedPath)) { - return `/${resolvedPath}`; - } - return resolvedPath.length > 0 ? resolvedPath : "."; -}; -function normalizeString(path, allowAboveRoot) { - let res = ""; - let lastSegmentLength = 0; - let lastSlash = -1; - let dots = 0; - let char = null; - for (let index = 0; index <= path.length; ++index) { - if (index < path.length) { - char = path[index]; - } else if (char === "/") { - break; - } else { - char = "/"; - } - if (char === "/") { - if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) { - if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") { - if (res.length > 2) { - const lastSlashIndex = res.lastIndexOf("/"); - if (lastSlashIndex === -1) { - res = ""; - lastSegmentLength = 0; - } else { - res = res.slice(0, lastSlashIndex); - lastSegmentLength = res.length - 1 - res.lastIndexOf("/"); - } - lastSlash = index; - dots = 0; - continue; - } else if (res.length > 0) { - res = ""; - lastSegmentLength = 0; - lastSlash = index; - dots = 0; - continue; - } - } - if (allowAboveRoot) { - res += res.length > 0 ? "/.." : ".."; - lastSegmentLength = 2; - } - } else { - if (res.length > 0) { - res += `/${path.slice(lastSlash + 1, index)}`; - } else { - res = path.slice(lastSlash + 1, index); - } - lastSegmentLength = index - lastSlash - 1; - } - lastSlash = index; - dots = 0; - } else if (char === "." && dots !== -1) { - ++dots; - } else { - dots = -1; - } - } - return res; -} -const isAbsolute = function(p) { - return _IS_ABSOLUTE_RE.test(p); -}; - -const isWindows = process.platform === "win32"; -const drive = isWindows ? process.cwd()[0] : null; -drive ? drive === drive.toUpperCase() ? drive.toLowerCase() : drive.toUpperCase() : null; -const postfixRE = /[?#].*$/; -function cleanUrl(url) { - return url.replace(postfixRE, ""); -} -/* @__PURE__ */ new Set([ - ...builtinModules, - "assert/strict", - "diagnostics_channel", - "dns/promises", - "fs/promises", - "path/posix", - "path/win32", - "readline/promises", - "stream/consumers", - "stream/promises", - "stream/web", - "timers/promises", - "util/types", - "wasi" -]); - -const WRAPPER_LENGTH = 185; -const VITE_EXPORTS_LINE_PATTERN = /Object\.defineProperty\(__vite_ssr_exports__.*\n/g; -const DECORATOR_METADATA_PATTERN = /_ts_metadata\("design:paramtypes", \[[^\]]*\]\),*/g; -const DEFAULT_PROJECT = Symbol.for("default-project"); -const debug = createDebug("vitest:coverage"); -let uniqueId = 0; -class V8CoverageProvider extends BaseCoverageProvider { - name = "v8"; - ctx; - options; - testExclude; - coverageFiles = /* @__PURE__ */ new Map(); - coverageFilesDirectory; - pendingPromises = []; - initialize(ctx) { - const config = ctx.config.coverage; - this.ctx = ctx; - this.options = { - ...coverageConfigDefaults, - // User's options - ...config, - // Resolved fields - provider: "v8", - reporter: this.resolveReporters( - config.reporter || coverageConfigDefaults.reporter - ), - reportsDirectory: resolve( - ctx.config.root, - config.reportsDirectory || coverageConfigDefaults.reportsDirectory - ), - thresholds: config.thresholds && { - ...config.thresholds, - lines: config.thresholds["100"] ? 100 : config.thresholds.lines, - branches: config.thresholds["100"] ? 100 : config.thresholds.branches, - functions: config.thresholds["100"] ? 100 : config.thresholds.functions, - statements: config.thresholds["100"] ? 100 : config.thresholds.statements - } - }; - this.testExclude = new _TestExclude({ - cwd: ctx.config.root, - include: this.options.include, - exclude: this.options.exclude, - excludeNodeModules: true, - extension: this.options.extension, - relativePath: !this.options.allowExternal - }); - const shard = this.ctx.config.shard; - const tempDirectory = `.tmp${shard ? `-${shard.index}-${shard.count}` : ""}`; - this.coverageFilesDirectory = resolve( - this.options.reportsDirectory, - tempDirectory - ); - } - resolveOptions() { - return this.options; - } - async clean(clean = true) { - if (clean && existsSync(this.options.reportsDirectory)) { - await promises$1.rm(this.options.reportsDirectory, { - recursive: true, - force: true, - maxRetries: 10 - }); - } - if (existsSync(this.coverageFilesDirectory)) { - await promises$1.rm(this.coverageFilesDirectory, { - recursive: true, - force: true, - maxRetries: 10 - }); - } - await promises$1.mkdir(this.coverageFilesDirectory, { recursive: true }); - this.coverageFiles = /* @__PURE__ */ new Map(); - this.pendingPromises = []; - } - /* - * Coverage and meta information passed from Vitest runners. - * Note that adding new entries here and requiring on those without - * backwards compatibility is a breaking change. - */ - onAfterSuiteRun({ coverage, transformMode, projectName }) { - if (transformMode !== "web" && transformMode !== "ssr") { - throw new Error(`Invalid transform mode: ${transformMode}`); - } - let entry = this.coverageFiles.get(projectName || DEFAULT_PROJECT); - if (!entry) { - entry = { web: [], ssr: [] }; - this.coverageFiles.set(projectName || DEFAULT_PROJECT, entry); - } - const filename = resolve( - this.coverageFilesDirectory, - `coverage-${uniqueId++}.json` - ); - entry[transformMode].push(filename); - const promise = promises$1.writeFile(filename, JSON.stringify(coverage), "utf-8"); - this.pendingPromises.push(promise); - } - async generateCoverage({ allTestsRun }) { - const coverageMap = libCoverage.createCoverageMap({}); - let index = 0; - const total = this.pendingPromises.length; - await Promise.all(this.pendingPromises); - this.pendingPromises = []; - for (const [ - projectName, - coveragePerProject - ] of this.coverageFiles.entries()) { - for (const [transformMode, filenames] of Object.entries( - coveragePerProject - )) { - let merged = { result: [] }; - for (const chunk of this.toSlices( - filenames, - this.options.processingConcurrency - )) { - if (debug.enabled) { - index += chunk.length; - debug("Covered files %d/%d", index, total); - } - await Promise.all( - chunk.map(async (filename) => { - const contents = await promises$1.readFile(filename, "utf-8"); - const coverage = JSON.parse(contents); - merged = mergeProcessCovs([merged, coverage]); - }) - ); - } - const converted = await this.convertCoverage( - merged, - projectName, - transformMode - ); - const transformedCoverage = await transformCoverage(converted); - coverageMap.merge(transformedCoverage); - } - } - if (this.options.all && allTestsRun) { - const coveredFiles = coverageMap.files(); - const untestedCoverage = await this.getUntestedFiles(coveredFiles); - const converted = await this.convertCoverage(untestedCoverage); - coverageMap.merge(await transformCoverage(converted)); - } - return coverageMap; - } - async reportCoverage(coverageMap, { allTestsRun }) { - if (provider === "stackblitz") { - this.ctx.logger.log( - c.blue(" % ") + c.yellow( - "@vitest/coverage-v8 does not work on Stackblitz. Report will be empty." - ) - ); - } - await this.generateReports( - coverageMap || libCoverage.createCoverageMap({}), - allTestsRun - ); - const keepResults = !this.options.cleanOnRerun && this.ctx.config.watch; - if (!keepResults) { - this.coverageFiles = /* @__PURE__ */ new Map(); - await promises$1.rm(this.coverageFilesDirectory, { recursive: true }); - if (readdirSync(this.options.reportsDirectory).length === 0) { - await promises$1.rm(this.options.reportsDirectory, { recursive: true }); - } - } - } - async generateReports(coverageMap, allTestsRun) { - const context = libReport.createContext({ - dir: this.options.reportsDirectory, - coverageMap, - watermarks: this.options.watermarks - }); - if (this.hasTerminalReporter(this.options.reporter)) { - this.ctx.logger.log( - c.blue(" % ") + c.dim("Coverage report from ") + c.yellow(this.name) - ); - } - for (const reporter of this.options.reporter) { - reports.create(reporter[0], { - skipFull: this.options.skipFull, - projectRoot: this.ctx.config.root, - ...reporter[1] - }).execute(context); - } - if (this.options.thresholds) { - const resolvedThresholds = this.resolveThresholds({ - coverageMap, - thresholds: this.options.thresholds, - createCoverageMap: () => libCoverage.createCoverageMap({}), - root: this.ctx.config.root - }); - this.checkThresholds({ - thresholds: resolvedThresholds, - perFile: this.options.thresholds.perFile, - onError: (error) => this.ctx.logger.error(error) - }); - if (this.options.thresholds.autoUpdate && allTestsRun) { - if (!this.ctx.server.config.configFile) { - throw new Error( - 'Missing configurationFile. The "coverage.thresholds.autoUpdate" can only be enabled when configuration file is used.' - ); - } - const configFilePath = this.ctx.server.config.configFile; - const configModule = parseModule( - await promises$1.readFile(configFilePath, "utf8") - ); - this.updateThresholds({ - thresholds: resolvedThresholds, - perFile: this.options.thresholds.perFile, - configurationFile: configModule, - onUpdate: () => writeFileSync( - configFilePath, - configModule.generate().code, - "utf-8" - ) - }); - } - } - } - async mergeReports(coverageMaps) { - const coverageMap = libCoverage.createCoverageMap({}); - for (const coverage of coverageMaps) { - coverageMap.merge(coverage); - } - await this.generateReports(coverageMap, true); - } - async getUntestedFiles(testedFiles) { - const transformResults = normalizeTransformResults( - this.ctx.vitenode.fetchCache - ); - const allFiles = await this.testExclude.glob(this.ctx.config.root); - let includedFiles = allFiles.map( - (file) => resolve(this.ctx.config.root, file) - ); - if (this.ctx.config.changed) { - includedFiles = (this.ctx.config.related || []).filter( - (file) => includedFiles.includes(file) - ); - } - const uncoveredFiles = includedFiles.map((file) => pathToFileURL(file)).filter((file) => !testedFiles.includes(file.pathname)); - let merged = { result: [] }; - let index = 0; - for (const chunk of this.toSlices( - uncoveredFiles, - this.options.processingConcurrency - )) { - if (debug.enabled) { - index += chunk.length; - debug("Uncovered files %d/%d", index, uncoveredFiles.length); - } - const coverages = await Promise.all( - chunk.map(async (filename) => { - const { originalSource } = await this.getSources( - filename.href, - transformResults - ); - const coverage = { - url: filename.href, - scriptId: "0", - // Create a made up function to mark whole file as uncovered. Note that this does not exist in source maps. - functions: [ - { - ranges: [ - { - startOffset: 0, - endOffset: originalSource.length, - count: 0 - } - ], - isBlockCoverage: true, - // This is magical value that indicates an empty report: https://github.com/istanbuljs/v8-to-istanbul/blob/fca5e6a9e6ef38a9cdc3a178d5a6cf9ef82e6cab/lib/v8-to-istanbul.js#LL131C40-L131C40 - functionName: "(empty-report)" - } - ] - }; - return { result: [coverage] }; - }) - ); - merged = mergeProcessCovs([ - merged, - ...coverages.filter( - (cov) => cov != null - ) - ]); - } - return merged; - } - async getSources(url, transformResults, functions = []) { - const filePath = normalize(fileURLToPath$1(url)); - let isExecuted = true; - let transformResult = transformResults.get(filePath); - if (!transformResult) { - isExecuted = false; - transformResult = await this.ctx.vitenode.transformRequest(filePath).catch(() => null); - } - const map = transformResult?.map; - const code = transformResult?.code; - const sourcesContent = map?.sourcesContent?.[0] || await promises$1.readFile(filePath, "utf-8").catch(() => { - const length = findLongestFunctionLength(functions); - return ".".repeat(length); - }); - if (!map) { - return { - isExecuted, - source: code || sourcesContent, - originalSource: sourcesContent - }; - } - const sources = [url]; - if (map.sources && map.sources[0] && !url.endsWith(map.sources[0])) { - sources[0] = new URL(map.sources[0], url).href; - } - return { - isExecuted, - originalSource: sourcesContent, - source: code || sourcesContent, - sourceMap: { - sourcemap: excludeGeneratedCode(code, { - ...map, - version: 3, - sources, - sourcesContent: [sourcesContent] - }) - } - }; - } - async convertCoverage(coverage, projectName, transformMode) { - const viteNode = this.ctx.projects.find((project) => project.getName() === projectName)?.vitenode || this.ctx.vitenode; - const fetchCache = transformMode ? viteNode.fetchCaches[transformMode] : viteNode.fetchCache; - const transformResults = normalizeTransformResults(fetchCache); - const scriptCoverages = coverage.result.filter( - (result) => this.testExclude.shouldInstrument(fileURLToPath$1(result.url)) - ); - const coverageMap = libCoverage.createCoverageMap({}); - let index = 0; - for (const chunk of this.toSlices( - scriptCoverages, - this.options.processingConcurrency - )) { - if (debug.enabled) { - index += chunk.length; - debug("Converting %d/%d", index, scriptCoverages.length); - } - await Promise.all( - chunk.map(async ({ url, functions }) => { - const sources = await this.getSources( - url, - transformResults, - functions - ); - const wrapperLength = sources.isExecuted ? WRAPPER_LENGTH : 0; - const converter = v8ToIstanbul$1( - url, - wrapperLength, - sources, - void 0, - this.options.ignoreEmptyLines - ); - await converter.load(); - converter.applyCoverage(functions); - coverageMap.merge(converter.toIstanbul()); - }) - ); - } - return coverageMap; - } -} -async function transformCoverage(coverageMap) { - const sourceMapStore = libSourceMaps.createSourceMapStore(); - return await sourceMapStore.transformCoverage(coverageMap); -} -function excludeGeneratedCode(source, map) { - if (!source) { - return map; - } - if (!source.match(VITE_EXPORTS_LINE_PATTERN) && !source.match(DECORATOR_METADATA_PATTERN)) { - return map; - } - const trimmed = new MagicString(source); - trimmed.replaceAll(VITE_EXPORTS_LINE_PATTERN, "\n"); - trimmed.replaceAll(DECORATOR_METADATA_PATTERN, (match) => "\n".repeat(match.split("\n").length - 1)); - const trimmedMap = trimmed.generateMap({ hires: "boundary" }); - const combinedMap = remapping( - [{ ...trimmedMap, version: 3 }, map], - () => null - ); - return combinedMap; -} -function findLongestFunctionLength(functions) { - return functions.reduce((previous, current) => { - const maxEndOffset = current.ranges.reduce( - (endOffset, range) => Math.max(endOffset, range.endOffset), - 0 - ); - return Math.max(previous, maxEndOffset); - }, 0); -} -function normalizeTransformResults(fetchCache) { - const normalized = /* @__PURE__ */ new Map(); - for (const [key, value] of fetchCache.entries()) { - const cleanEntry = cleanUrl(key); - if (!normalized.has(cleanEntry)) { - normalized.set(cleanEntry, value.result); - } - } - return normalized; -} - -export { V8CoverageProvider }; diff --git a/node_modules/@vitest/expect/dist/chai.d.cts b/node_modules/@vitest/expect/dist/chai.d.cts deleted file mode 100644 index 7e231313..00000000 --- a/node_modules/@vitest/expect/dist/chai.d.cts +++ /dev/null @@ -1,1968 +0,0 @@ -// Type definitions for chai 4.3 -// Project: http://chaijs.com/ -// Definitions by: Bart van der Schoor -// Andrew Brown -// Olivier Chevet -// Matt Wistrand -// Shaun Luttin -// Satana Charuwichitratana -// Erik Schierboom -// Bogdan Paranytsia -// CXuesong -// Joey Kilpatrick -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 3.0 - -declare namespace Chai { - type Message = string | (() => string); - type ObjectProperty = string | symbol | number; - - interface PathInfo { - parent: object; - name: string; - value?: any; - exists: boolean; - } - - interface ErrorConstructor { - new(...args: any[]): Error; - } - - interface ChaiUtils { - addChainableMethod( - // object to define the method on, e.g. chai.Assertion.prototype - ctx: object, - // method name - name: string, - // method itself; any arguments - method: (...args: any[]) => void, - // called when property is accessed - chainingBehavior?: () => void, - ): void; - overwriteChainableMethod( - ctx: object, - name: string, - method: (...args: any[]) => void, - chainingBehavior?: () => void, - ): void; - addLengthGuard( - fn: Function, - assertionName: string, - isChainable: boolean, - ): void; - addMethod(ctx: object, name: string, method: Function): void; - addProperty(ctx: object, name: string, getter: () => any): void; - overwriteMethod(ctx: object, name: string, method: Function): void; - overwriteProperty(ctx: object, name: string, getter: () => any): void; - compareByInspect(a: object, b: object): -1 | 1; - expectTypes(obj: object, types: string[]): void; - flag(obj: object, key: string, value?: any): any; - getActual(obj: object, args: AssertionArgs): any; - getProperties(obj: object): string[]; - getEnumerableProperties(obj: object): string[]; - getOwnEnumerablePropertySymbols(obj: object): symbol[]; - getOwnEnumerableProperties(obj: object): Array; - getMessage(errorLike: Error | string): string; - getMessage(obj: any, args: AssertionArgs): string; - inspect(obj: any, showHidden?: boolean, depth?: number, colors?: boolean): string; - isProxyEnabled(): boolean; - objDisplay(obj: object): void; - proxify(obj: object, nonChainableMethodName: string): object; - test(obj: object, args: AssertionArgs): boolean; - transferFlags(assertion: Assertion, obj: object, includeAll?: boolean): void; - compatibleInstance(thrown: Error, errorLike: Error | ErrorConstructor): boolean; - compatibleConstructor(thrown: Error, errorLike: Error | ErrorConstructor): boolean; - compatibleMessage(thrown: Error, errMatcher: string | RegExp): boolean; - getConstructorName(constructorFn: Function): string; - getFuncName(constructorFn: Function): string | null; - - // Reexports from pathval: - hasProperty(obj: object | undefined | null, name: ObjectProperty): boolean; - getPathInfo(obj: object, path: string): PathInfo; - getPathValue(obj: object, path: string): object | undefined; - } - - type ChaiPlugin = (chai: ChaiStatic, utils: ChaiUtils) => void; - - interface ChaiStatic { - expect: ExpectStatic; - should(): Should; - /** - * Provides a way to extend the internals of Chai - */ - use(fn: ChaiPlugin): ChaiStatic; - util: ChaiUtils; - assert: AssertStatic; - config: Config; - Assertion: AssertionStatic; - AssertionError: typeof AssertionError; - version: string; - } - - export interface ExpectStatic { - (val: any, message?: string): Assertion; - fail(message?: string): never; - fail(actual: any, expected: any, message?: string, operator?: Operator): never; - } - - export interface AssertStatic extends Assert { - } - - // chai.Assertion.prototype.assert arguments - type AssertionArgs = [ - // 'expression to be tested' - // This parameter is unused and the docs list its type as - // 'Philosophical', which is mentioned nowhere else in the source. Do - // with that what you will! - any, - Message, // message if value fails - Message, // message if negated value fails - any, // expected value - any?, // actual value - boolean?, // showDiff - ]; - - export interface AssertionPrototype { - assert(...args: AssertionArgs): void; - _obj: any; - } - - export interface AssertionStatic extends AssertionPrototype { - prototype: AssertionPrototype; - - new(target: any, message?: string, ssfi?: Function, lockSsfi?: boolean): Assertion; - - // Deprecated properties: - includeStack: boolean; - showDiff: boolean; - - // Partials of functions on ChaiUtils: - addProperty(name: string, getter: (this: AssertionStatic) => any): void; - addMethod(name: string, method: (this: AssertionStatic, ...args: any[]) => any): void; - addChainableMethod( - name: string, - method: (this: AssertionStatic, ...args: any[]) => void, - chainingBehavior?: () => void, - ): void; - overwriteProperty(name: string, getter: (this: AssertionStatic) => any): void; - overwriteMethod(name: string, method: (this: AssertionStatic, ...args: any[]) => any): void; - overwriteChainableMethod( - name: string, - method: (this: AssertionStatic, ...args: any[]) => void, - chainingBehavior?: () => void, - ): void; - } - - export type Operator = string; // "==" | "===" | ">" | ">=" | "<" | "<=" | "!=" | "!=="; - - export type OperatorComparable = boolean | null | number | string | undefined | Date; - - interface ShouldAssertion { - equal(value1: any, value2: any, message?: string): void; - Throw: ShouldThrow; - throw: ShouldThrow; - exist(value: any, message?: string): void; - } - - interface Should extends ShouldAssertion { - not: ShouldAssertion; - fail(message?: string): never; - fail(actual: any, expected: any, message?: string, operator?: Operator): never; - } - - interface ShouldThrow { - (actual: Function, expected?: string | RegExp, message?: string): void; - (actual: Function, constructor: Error | Function, expected?: string | RegExp, message?: string): void; - } - - interface Assertion extends LanguageChains, NumericComparison, TypeComparison { - not: Assertion; - deep: Deep; - ordered: Ordered; - nested: Nested; - own: Own; - any: KeyFilter; - all: KeyFilter; - a: Assertion; - an: Assertion; - include: Include; - includes: Include; - contain: Include; - contains: Include; - ok: Assertion; - true: Assertion; - false: Assertion; - null: Assertion; - undefined: Assertion; - NaN: Assertion; - exist: Assertion; - empty: Assertion; - arguments: Assertion; - Arguments: Assertion; - finite: Assertion; - equal: Equal; - equals: Equal; - eq: Equal; - eql: Equal; - eqls: Equal; - property: Property; - ownProperty: Property; - haveOwnProperty: Property; - ownPropertyDescriptor: OwnPropertyDescriptor; - haveOwnPropertyDescriptor: OwnPropertyDescriptor; - length: Length; - lengthOf: Length; - match: Match; - matches: Match; - string(string: string, message?: string): Assertion; - keys: Keys; - key(string: string): Assertion; - throw: Throw; - throws: Throw; - Throw: Throw; - respondTo: RespondTo; - respondsTo: RespondTo; - itself: Assertion; - satisfy: Satisfy; - satisfies: Satisfy; - closeTo: CloseTo; - approximately: CloseTo; - members: Members; - increase: PropertyChange; - increases: PropertyChange; - decrease: PropertyChange; - decreases: PropertyChange; - change: PropertyChange; - changes: PropertyChange; - extensible: Assertion; - sealed: Assertion; - frozen: Assertion; - oneOf: OneOf; - } - - interface LanguageChains { - to: Assertion; - be: Assertion; - been: Assertion; - is: Assertion; - that: Assertion; - which: Assertion; - and: Assertion; - has: Assertion; - have: Assertion; - with: Assertion; - at: Assertion; - of: Assertion; - same: Assertion; - but: Assertion; - does: Assertion; - } - - interface NumericComparison { - above: NumberComparer; - gt: NumberComparer; - greaterThan: NumberComparer; - least: NumberComparer; - gte: NumberComparer; - greaterThanOrEqual: NumberComparer; - below: NumberComparer; - lt: NumberComparer; - lessThan: NumberComparer; - most: NumberComparer; - lte: NumberComparer; - lessThanOrEqual: NumberComparer; - within(start: number, finish: number, message?: string): Assertion; - within(start: Date, finish: Date, message?: string): Assertion; - } - - interface NumberComparer { - (value: number | Date, message?: string): Assertion; - } - - interface TypeComparison { - (type: string, message?: string): Assertion; - instanceof: InstanceOf; - instanceOf: InstanceOf; - } - - interface InstanceOf { - (constructor: any, message?: string): Assertion; - } - - interface CloseTo { - (expected: number, delta: number, message?: string): Assertion; - } - - interface Nested { - include: Include; - includes: Include; - contain: Include; - contains: Include; - property: Property; - members: Members; - } - - interface Own { - include: Include; - includes: Include; - contain: Include; - contains: Include; - property: Property; - } - - interface Deep extends KeyFilter { - be: Assertion; - equal: Equal; - equals: Equal; - eq: Equal; - include: Include; - includes: Include; - contain: Include; - contains: Include; - property: Property; - ordered: Ordered; - nested: Nested; - oneOf: OneOf; - own: Own; - } - - interface Ordered { - members: Members; - } - - interface KeyFilter { - keys: Keys; - members: Members; - } - - interface Equal { - (value: any, message?: string): Assertion; - } - - interface Property { - (name: string | symbol, value: any, message?: string): Assertion; - (name: string | symbol, message?: string): Assertion; - } - - interface OwnPropertyDescriptor { - (name: string | symbol, descriptor: PropertyDescriptor, message?: string): Assertion; - (name: string | symbol, message?: string): Assertion; - } - - interface Length extends LanguageChains, NumericComparison { - (length: number, message?: string): Assertion; - } - - interface Include { - (value: any, message?: string): Assertion; - keys: Keys; - deep: Deep; - ordered: Ordered; - members: Members; - any: KeyFilter; - all: KeyFilter; - oneOf: OneOf; - } - - interface OneOf { - (list: ReadonlyArray, message?: string): Assertion; - } - - interface Match { - (regexp: RegExp, message?: string): Assertion; - } - - interface Keys { - (...keys: string[]): Assertion; - (keys: ReadonlyArray | Object): Assertion; - } - - interface Throw { - (expected?: string | RegExp, message?: string): Assertion; - (constructor: Error | Function, expected?: string | RegExp, message?: string): Assertion; - } - - interface RespondTo { - (method: string, message?: string): Assertion; - } - - interface Satisfy { - (matcher: Function, message?: string): Assertion; - } - - interface Members { - (set: ReadonlyArray, message?: string): Assertion; - } - - interface PropertyChange { - (object: Object, property?: string, message?: string): DeltaAssertion; - } - - interface DeltaAssertion extends Assertion { - by(delta: number, msg?: string): Assertion; - } - - export interface Assert { - /** - * @param expression Expression to test for truthiness. - * @param message Message to display on error. - */ - (expression: any, message?: string): asserts expression; - - /** - * Throws a failure. - * - * @param message Message to display on error. - * @remarks Node.js assert module-compatible. - */ - fail(message?: string): never; - - /** - * Throws a failure. - * - * T Type of the objects. - * @param actual Actual value. - * @param expected Potential expected value. - * @param message Message to display on error. - * @param operator Comparison operator, if not strict equality. - * @remarks Node.js assert module-compatible. - */ - fail(actual: T, expected: T, message?: string, operator?: Operator): never; - - /** - * Asserts that object is truthy. - * - * T Type of object. - * @param object Object to test. - * @param message Message to display on error. - */ - isOk(value: T, message?: string): void; - - /** - * Asserts that object is truthy. - * - * T Type of object. - * @param object Object to test. - * @param message Message to display on error. - */ - ok(value: T, message?: string): void; - - /** - * Asserts that object is falsy. - * - * T Type of object. - * @param object Object to test. - * @param message Message to display on error. - */ - isNotOk(value: T, message?: string): void; - - /** - * Asserts that object is falsy. - * - * T Type of object. - * @param object Object to test. - * @param message Message to display on error. - */ - notOk(value: T, message?: string): void; - - /** - * Asserts non-strict equality (==) of actual and expected. - * - * T Type of the objects. - * @param actual Actual value. - * @param expected Potential expected value. - * @param message Message to display on error. - */ - equal(actual: T, expected: T, message?: string): void; - - /** - * Asserts non-strict inequality (!=) of actual and expected. - * - * T Type of the objects. - * @param actual Actual value. - * @param expected Potential expected value. - * @param message Message to display on error. - */ - notEqual(actual: T, expected: T, message?: string): void; - - /** - * Asserts strict equality (===) of actual and expected. - * - * T Type of the objects. - * @param actual Actual value. - * @param expected Potential expected value. - * @param message Message to display on error. - */ - strictEqual(actual: T, expected: T, message?: string): void; - - /** - * Asserts strict inequality (!==) of actual and expected. - * - * T Type of the objects. - * @param actual Actual value. - * @param expected Potential expected value. - * @param message Message to display on error. - */ - notStrictEqual(actual: T, expected: T, message?: string): void; - - /** - * Asserts that actual is deeply equal to expected. - * - * T Type of the objects. - * @param actual Actual value. - * @param expected Potential expected value. - * @param message Message to display on error. - */ - deepEqual(actual: T, expected: T, message?: string): void; - - /** - * Asserts that actual is not deeply equal to expected. - * - * T Type of the objects. - * @param actual Actual value. - * @param expected Potential expected value. - * @param message Message to display on error. - */ - notDeepEqual(actual: T, expected: T, message?: string): void; - - /** - * Alias to deepEqual - * - * T Type of the objects. - * @param actual Actual value. - * @param expected Potential expected value. - * @param message Message to display on error. - */ - deepStrictEqual(actual: T, expected: T, message?: string): void; - - /** - * Asserts valueToCheck is strictly greater than (>) valueToBeAbove. - * - * @param valueToCheck Actual value. - * @param valueToBeAbove Minimum Potential expected value. - * @param message Message to display on error. - */ - isAbove(valueToCheck: number, valueToBeAbove: number, message?: string): void; - - /** - * Asserts valueToCheck is greater than or equal to (>=) valueToBeAtLeast. - * - * @param valueToCheck Actual value. - * @param valueToBeAtLeast Minimum Potential expected value. - * @param message Message to display on error. - */ - isAtLeast(valueToCheck: number, valueToBeAtLeast: number, message?: string): void; - - /** - * Asserts valueToCheck is strictly less than (<) valueToBeBelow. - * - * @param valueToCheck Actual value. - * @param valueToBeBelow Minimum Potential expected value. - * @param message Message to display on error. - */ - isBelow(valueToCheck: number, valueToBeBelow: number, message?: string): void; - - /** - * Asserts valueToCheck is less than or equal to (<=) valueToBeAtMost. - * - * @param valueToCheck Actual value. - * @param valueToBeAtMost Minimum Potential expected value. - * @param message Message to display on error. - */ - isAtMost(valueToCheck: number, valueToBeAtMost: number, message?: string): void; - - /** - * Asserts that value is true. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isTrue(value: T, message?: string): void; - - /** - * Asserts that value is false. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isFalse(value: T, message?: string): void; - - /** - * Asserts that value is not true. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNotTrue(value: T, message?: string): void; - - /** - * Asserts that value is not false. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNotFalse(value: T, message?: string): void; - - /** - * Asserts that value is null. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNull(value: T, message?: string): void; - - /** - * Asserts that value is not null. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNotNull(value: T, message?: string): void; - - /** - * Asserts that value is NaN. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNaN(value: T, message?: string): void; - - /** - * Asserts that value is not NaN. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNotNaN(value: T, message?: string): void; - - /** - * Asserts that the target is neither null nor undefined. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - exists(value: T, message?: string): void; - - /** - * Asserts that the target is either null or undefined. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - notExists(value: T, message?: string): void; - - /** - * Asserts that value is undefined. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isUndefined(value: T, message?: string): void; - - /** - * Asserts that value is not undefined. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isDefined(value: T, message?: string): void; - - /** - * Asserts that value is a function. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isFunction(value: T, message?: string): void; - - /** - * Asserts that value is not a function. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNotFunction(value: T, message?: string): void; - - /** - * Asserts that value is an object of type 'Object' - * (as revealed by Object.prototype.toString). - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - * @remarks The assertion does not match subclassed objects. - */ - isObject(value: T, message?: string): void; - - /** - * Asserts that value is not an object of type 'Object' - * (as revealed by Object.prototype.toString). - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNotObject(value: T, message?: string): void; - - /** - * Asserts that value is an array. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isArray(value: T, message?: string): void; - - /** - * Asserts that value is not an array. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNotArray(value: T, message?: string): void; - - /** - * Asserts that value is a string. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isString(value: T, message?: string): void; - - /** - * Asserts that value is not a string. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNotString(value: T, message?: string): void; - - /** - * Asserts that value is a number. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNumber(value: T, message?: string): void; - - /** - * Asserts that value is not a number. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNotNumber(value: T, message?: string): void; - - /** - * Asserts that value is a finite number. - * Unlike `.isNumber`, this will fail for `NaN` and `Infinity`. - * - * T Type of value - * @param value Actual value - * @param message Message to display on error. - */ - isFinite(value: T, message?: string): void; - - /** - * Asserts that value is a boolean. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isBoolean(value: T, message?: string): void; - - /** - * Asserts that value is not a boolean. - * - * T Type of value. - * @param value Actual value. - * @param message Message to display on error. - */ - isNotBoolean(value: T, message?: string): void; - - /** - * Asserts that value's type is name, as determined by Object.prototype.toString. - * - * T Type of value. - * @param value Actual value. - * @param name Potential expected type name of value. - * @param message Message to display on error. - */ - typeOf(value: T, name: string, message?: string): void; - - /** - * Asserts that value's type is not name, as determined by Object.prototype.toString. - * - * T Type of value. - * @param value Actual value. - * @param name Potential expected type name of value. - * @param message Message to display on error. - */ - notTypeOf(value: T, name: string, message?: string): void; - - /** - * Asserts that value is an instance of constructor. - * - * T Type of value. - * @param value Actual value. - * @param constructor Potential expected contructor of value. - * @param message Message to display on error. - */ - instanceOf(value: T, constructor: Function, message?: string): void; - - /** - * Asserts that value is not an instance of constructor. - * - * T Type of value. - * @param value Actual value. - * @param constructor Potential expected contructor of value. - * @param message Message to display on error. - */ - notInstanceOf(value: T, type: Function, message?: string): void; - - /** - * Asserts that haystack includes needle. - * - * @param haystack Container string. - * @param needle Potential substring of haystack. - * @param message Message to display on error. - */ - include(haystack: string, needle: string, message?: string): void; - - /** - * Asserts that haystack includes needle. - * - * T Type of values in haystack. - * @param haystack Container array, set or map. - * @param needle Potential value contained in haystack. - * @param message Message to display on error. - */ - include( - haystack: ReadonlyArray | ReadonlySet | ReadonlyMap, - needle: T, - message?: string, - ): void; - - /** - * Asserts that haystack includes needle. - * - * T Type of values in haystack. - * @param haystack WeakSet container. - * @param needle Potential value contained in haystack. - * @param message Message to display on error. - */ - include(haystack: WeakSet, needle: T, message?: string): void; - - /** - * Asserts that haystack includes needle. - * - * T Type of haystack. - * @param haystack Object. - * @param needle Potential subset of the haystack's properties. - * @param message Message to display on error. - */ - include(haystack: T, needle: Partial, message?: string): void; - - /** - * Asserts that haystack does not includes needle. - * - * @param haystack Container string. - * @param needle Potential substring of haystack. - * @param message Message to display on error. - */ - notInclude(haystack: string, needle: string, message?: string): void; - - /** - * Asserts that haystack does not includes needle. - * - * T Type of values in haystack. - * @param haystack Container array, set or map. - * @param needle Potential value contained in haystack. - * @param message Message to display on error. - */ - notInclude( - haystack: ReadonlyArray | ReadonlySet | ReadonlyMap, - needle: T, - message?: string, - ): void; - - /** - * Asserts that haystack does not includes needle. - * - * T Type of values in haystack. - * @param haystack WeakSet container. - * @param needle Potential value contained in haystack. - * @param message Message to display on error. - */ - notInclude(haystack: WeakSet, needle: T, message?: string): void; - - /** - * Asserts that haystack does not includes needle. - * - * T Type of haystack. - * @param haystack Object. - * @param needle Potential subset of the haystack's properties. - * @param message Message to display on error. - */ - notInclude(haystack: T, needle: Partial, message?: string): void; - - /** - * Asserts that haystack includes needle. Deep equality is used. - * - * @param haystack Container string. - * @param needle Potential substring of haystack. - * @param message Message to display on error. - * - * @deprecated Does not have any effect on string. Use {@link Assert#include} instead. - */ - deepInclude(haystack: string, needle: string, message?: string): void; - - /** - * Asserts that haystack includes needle. Deep equality is used. - * - * T Type of values in haystack. - * @param haystack Container array, set or map. - * @param needle Potential value contained in haystack. - * @param message Message to display on error. - */ - deepInclude( - haystack: ReadonlyArray | ReadonlySet | ReadonlyMap, - needle: T, - message?: string, - ): void; - - /** - * Asserts that haystack does not includes needle. - * - * T Type of haystack. - * @param haystack Object. - * @param needle Potential subset of the haystack's properties. - * @param message Message to display on error. - */ - deepInclude(haystack: T, needle: T extends WeakSet ? never : Partial, message?: string): void; - - /** - * Asserts that haystack does not includes needle. Deep equality is used. - * - * @param haystack Container string. - * @param needle Potential substring of haystack. - * @param message Message to display on error. - * - * @deprecated Does not have any effect on string. Use {@link Assert#notInclude} instead. - */ - notDeepInclude(haystack: string, needle: string, message?: string): void; - - /** - * Asserts that haystack does not includes needle. Deep equality is used. - * - * T Type of values in haystack. - * @param haystack Container array, set or map. - * @param needle Potential value contained in haystack. - * @param message Message to display on error. - */ - notDeepInclude( - haystack: ReadonlyArray | ReadonlySet | ReadonlyMap, - needle: T, - message?: string, - ): void; - - /** - * Asserts that haystack does not includes needle. Deep equality is used. - * - * T Type of haystack. - * @param haystack Object. - * @param needle Potential subset of the haystack's properties. - * @param message Message to display on error. - */ - notDeepInclude(haystack: T, needle: T extends WeakSet ? never : Partial, message?: string): void; - - /** - * Asserts that ‘haystack’ includes ‘needle’. Can be used to assert the inclusion of a subset of properties in an object. - * - * Enables the use of dot- and bracket-notation for referencing nested properties. - * ‘[]’ and ‘.’ in property names can be escaped using double backslashes.Asserts that ‘haystack’ includes ‘needle’. - * Can be used to assert the inclusion of a subset of properties in an object. - * Enables the use of dot- and bracket-notation for referencing nested properties. - * ‘[]’ and ‘.’ in property names can be escaped using double backslashes. - * - * @param haystack - * @param needle - * @param message Message to display on error. - */ - nestedInclude(haystack: any, needle: any, message?: string): void; - - /** - * Asserts that ‘haystack’ does not include ‘needle’. Can be used to assert the absence of a subset of properties in an object. - * - * Enables the use of dot- and bracket-notation for referencing nested properties. - * ‘[]’ and ‘.’ in property names can be escaped using double backslashes.Asserts that ‘haystack’ includes ‘needle’. - * Can be used to assert the inclusion of a subset of properties in an object. - * Enables the use of dot- and bracket-notation for referencing nested properties. - * ‘[]’ and ‘.’ in property names can be escaped using double backslashes. - * - * @param haystack - * @param needle - * @param message Message to display on error. - */ - notNestedInclude(haystack: any, needle: any, message?: string): void; - - /** - * Asserts that ‘haystack’ includes ‘needle’. Can be used to assert the inclusion of a subset of properties in an object while checking for deep equality - * - * Enables the use of dot- and bracket-notation for referencing nested properties. - * ‘[]’ and ‘.’ in property names can be escaped using double backslashes.Asserts that ‘haystack’ includes ‘needle’. - * Can be used to assert the inclusion of a subset of properties in an object. - * Enables the use of dot- and bracket-notation for referencing nested properties. - * ‘[]’ and ‘.’ in property names can be escaped using double backslashes. - * - * @param haystack - * @param needle - * @param message Message to display on error. - */ - deepNestedInclude(haystack: any, needle: any, message?: string): void; - - /** - * Asserts that ‘haystack’ does not include ‘needle’. Can be used to assert the absence of a subset of properties in an object while checking for deep equality. - * - * Enables the use of dot- and bracket-notation for referencing nested properties. - * ‘[]’ and ‘.’ in property names can be escaped using double backslashes.Asserts that ‘haystack’ includes ‘needle’. - * Can be used to assert the inclusion of a subset of properties in an object. - * Enables the use of dot- and bracket-notation for referencing nested properties. - * ‘[]’ and ‘.’ in property names can be escaped using double backslashes. - * - * @param haystack - * @param needle - * @param message Message to display on error. - */ - notDeepNestedInclude(haystack: any, needle: any, message?: string): void; - - /** - * Asserts that ‘haystack’ includes ‘needle’. Can be used to assert the inclusion of a subset of properties in an object while ignoring inherited properties. - * - * @param haystack - * @param needle - * @param message Message to display on error. - */ - ownInclude(haystack: any, needle: any, message?: string): void; - - /** - * Asserts that ‘haystack’ includes ‘needle’. Can be used to assert the absence of a subset of properties in an object while ignoring inherited properties. - * - * @param haystack - * @param needle - * @param message Message to display on error. - */ - notOwnInclude(haystack: any, needle: any, message?: string): void; - - /** - * Asserts that ‘haystack’ includes ‘needle’. Can be used to assert the inclusion of a subset of properties in an object while ignoring inherited properties and checking for deep - * - * @param haystack - * @param needle - * @param message Message to display on error. - */ - deepOwnInclude(haystack: any, needle: any, message?: string): void; - - /** - * Asserts that ‘haystack’ includes ‘needle’. Can be used to assert the absence of a subset of properties in an object while ignoring inherited properties and checking for deep equality. - * - * @param haystack - * @param needle - * @param message Message to display on error. - */ - notDeepOwnInclude(haystack: any, needle: any, message?: string): void; - - /** - * Asserts that value matches the regular expression regexp. - * - * @param value Actual value. - * @param regexp Potential match of value. - * @param message Message to display on error. - */ - match(value: string, regexp: RegExp, message?: string): void; - - /** - * Asserts that value does not match the regular expression regexp. - * - * @param value Actual value. - * @param regexp Potential match of value. - * @param message Message to display on error. - */ - notMatch(expected: any, regexp: RegExp, message?: string): void; - - /** - * Asserts that object has a property named by property. - * - * T Type of object. - * @param object Container object. - * @param property Potential contained property of object. - * @param message Message to display on error. - */ - property(object: T, property: string, /* keyof T */ message?: string): void; - - /** - * Asserts that object has a property named by property. - * - * T Type of object. - * @param object Container object. - * @param property Potential contained property of object. - * @param message Message to display on error. - */ - notProperty(object: T, property: string, /* keyof T */ message?: string): void; - - /** - * Asserts that object has a property named by property, which can be a string - * using dot- and bracket-notation for deep reference. - * - * T Type of object. - * @param object Container object. - * @param property Potential contained property of object. - * @param message Message to display on error. - */ - deepProperty(object: T, property: string, message?: string): void; - - /** - * Asserts that object does not have a property named by property, which can be a - * string using dot- and bracket-notation for deep reference. - * - * T Type of object. - * @param object Container object. - * @param property Potential contained property of object. - * @param message Message to display on error. - */ - notDeepProperty(object: T, property: string, message?: string): void; - - /** - * Asserts that object has a property named by property with value given by value. - * - * T Type of object. - * V Type of value. - * @param object Container object. - * @param property Potential contained property of object. - * @param value Potential expected property value. - * @param message Message to display on error. - */ - propertyVal(object: T, property: string, /* keyof T */ value: V, message?: string): void; - - /** - * Asserts that object has a property named by property with value given by value. - * - * T Type of object. - * V Type of value. - * @param object Container object. - * @param property Potential contained property of object. - * @param value Potential expected property value. - * @param message Message to display on error. - */ - notPropertyVal(object: T, property: string, /* keyof T */ value: V, message?: string): void; - - /** - * Asserts that object has a property named by property, which can be a string - * using dot- and bracket-notation for deep reference. - * - * T Type of object. - * V Type of value. - * @param object Container object. - * @param property Potential contained property of object. - * @param value Potential expected property value. - * @param message Message to display on error. - */ - deepPropertyVal(object: T, property: string, value: V, message?: string): void; - - /** - * Asserts that object does not have a property named by property, which can be a - * string using dot- and bracket-notation for deep reference. - * - * T Type of object. - * V Type of value. - * @param object Container object. - * @param property Potential contained property of object. - * @param value Potential expected property value. - * @param message Message to display on error. - */ - notDeepPropertyVal(object: T, property: string, value: V, message?: string): void; - - /** - * Asserts that object has a length property with the expected value. - * - * T Type of object. - * @param object Container object. - * @param length Potential expected length of object. - * @param message Message to display on error. - */ - lengthOf(object: T, length: number, message?: string): void; - - /** - * Asserts that fn will throw an error. - * - * @param fn Function that may throw. - * @param errMsgMatcher Expected error message matcher. - * @param ignored Ignored parameter. - * @param message Message to display on error. - */ - throw(fn: () => void, errMsgMatcher?: RegExp | string, ignored?: any, message?: string): void; - - /** - * Asserts that fn will throw an error. - * - * @param fn Function that may throw. - * @param errorLike Expected error constructor or error instance. - * @param errMsgMatcher Expected error message matcher. - * @param message Message to display on error. - */ - throw( - fn: () => void, - errorLike?: ErrorConstructor | Error | null, - errMsgMatcher?: RegExp | string | null, - message?: string, - ): void; - - /** - * Asserts that fn will throw an error. - * - * @param fn Function that may throw. - * @param errMsgMatcher Expected error message matcher. - * @param ignored Ignored parameter. - * @param message Message to display on error. - */ - throws(fn: () => void, errMsgMatcher?: RegExp | string, ignored?: any, message?: string): void; - - /** - * Asserts that fn will throw an error. - * - * @param fn Function that may throw. - * @param errorLike Expected error constructor or error instance. - * @param errMsgMatcher Expected error message matcher. - * @param message Message to display on error. - */ - throws( - fn: () => void, - errorLike?: ErrorConstructor | Error | null, - errMsgMatcher?: RegExp | string | null, - message?: string, - ): void; - - /** - * Asserts that fn will throw an error. - * - * @param fn Function that may throw. - * @param errMsgMatcher Expected error message matcher. - * @param ignored Ignored parameter. - * @param message Message to display on error. - */ - Throw(fn: () => void, errMsgMatcher?: RegExp | string, ignored?: any, message?: string): void; - - /** - * Asserts that fn will throw an error. - * - * @param fn Function that may throw. - * @param errorLike Expected error constructor or error instance. - * @param errMsgMatcher Expected error message matcher. - * @param message Message to display on error. - */ - Throw( - fn: () => void, - errorLike?: ErrorConstructor | Error | null, - errMsgMatcher?: RegExp | string | null, - message?: string, - ): void; - - /** - * Asserts that fn will not throw an error. - * - * @param fn Function that may throw. - * @param errMsgMatcher Expected error message matcher. - * @param ignored Ignored parameter. - * @param message Message to display on error. - */ - doesNotThrow(fn: () => void, errMsgMatcher?: RegExp | string, ignored?: any, message?: string): void; - - /** - * Asserts that fn will not throw an error. - * - * @param fn Function that may throw. - * @param errorLike Expected error constructor or error instance. - * @param errMsgMatcher Expected error message matcher. - * @param message Message to display on error. - */ - doesNotThrow( - fn: () => void, - errorLike?: ErrorConstructor | Error | null, - errMsgMatcher?: RegExp | string | null, - message?: string, - ): void; - - /** - * Compares two values using operator. - * - * @param val1 Left value during comparison. - * @param operator Comparison operator. - * @param val2 Right value during comparison. - * @param message Message to display on error. - */ - operator(val1: OperatorComparable, operator: Operator, val2: OperatorComparable, message?: string): void; - - /** - * Asserts that the target is equal to expected, to within a +/- delta range. - * - * @param actual Actual value - * @param expected Potential expected value. - * @param delta Maximum differenced between values. - * @param message Message to display on error. - */ - closeTo(actual: number, expected: number, delta: number, message?: string): void; - - /** - * Asserts that the target is equal to expected, to within a +/- delta range. - * - * @param actual Actual value - * @param expected Potential expected value. - * @param delta Maximum differenced between values. - * @param message Message to display on error. - */ - approximately(act: number, exp: number, delta: number, message?: string): void; - - /** - * Asserts that set1 and set2 have the same members. Order is not take into account. - * - * T Type of set values. - * @param set1 Actual set of values. - * @param set2 Potential expected set of values. - * @param message Message to display on error. - */ - sameMembers(set1: T[], set2: T[], message?: string): void; - - /** - * Asserts that set1 and set2 have the same members using deep equality checking. - * Order is not take into account. - * - * T Type of set values. - * @param set1 Actual set of values. - * @param set2 Potential expected set of values. - * @param message Message to display on error. - */ - sameDeepMembers(set1: T[], set2: T[], message?: string): void; - - /** - * Asserts that set1 and set2 have the same members in the same order. - * Uses a strict equality check (===). - * - * T Type of set values. - * @param set1 Actual set of values. - * @param set2 Potential expected set of values. - * @param message Message to display on error. - */ - sameOrderedMembers(set1: T[], set2: T[], message?: string): void; - - /** - * Asserts that set1 and set2 don’t have the same members in the same order. - * Uses a strict equality check (===). - * - * T Type of set values. - * @param set1 Actual set of values. - * @param set2 Potential expected set of values. - * @param message Message to display on error. - */ - notSameOrderedMembers(set1: T[], set2: T[], message?: string): void; - - /** - * Asserts that set1 and set2 have the same members in the same order. - * Uses a deep equality check. - * - * T Type of set values. - * @param set1 Actual set of values. - * @param set2 Potential expected set of values. - * @param message Message to display on error. - */ - sameDeepOrderedMembers(set1: T[], set2: T[], message?: string): void; - - /** - * Asserts that set1 and set2 don’t have the same members in the same order. - * Uses a deep equality check. - * - * T Type of set values. - * @param set1 Actual set of values. - * @param set2 Potential expected set of values. - * @param message Message to display on error. - */ - notSameDeepOrderedMembers(set1: T[], set2: T[], message?: string): void; - - /** - * Asserts that subset is included in superset in the same order beginning with the first element in superset. - * Uses a strict equality check (===). - * - * T Type of set values. - * @param superset Actual set of values. - * @param subset Potential contained set of values. - * @param message Message to display on error. - */ - includeOrderedMembers(superset: T[], subset: T[], message?: string): void; - - /** - * Asserts that subset isn’t included in superset in the same order beginning with the first element in superset. - * Uses a strict equality check (===). - * - * T Type of set values. - * @param superset Actual set of values. - * @param subset Potential contained set of values. - * @param message Message to display on error. - */ - notIncludeOrderedMembers(superset: T[], subset: T[], message?: string): void; - - /** - * Asserts that subset is included in superset in the same order beginning with the first element in superset. - * Uses a deep equality check. - * - * T Type of set values. - * @param superset Actual set of values. - * @param subset Potential contained set of values. - * @param message Message to display on error. - */ - includeDeepOrderedMembers(superset: T[], subset: T[], message?: string): void; - - /** - * Asserts that subset isn’t included in superset in the same order beginning with the first element in superset. - * Uses a deep equality check. - * - * T Type of set values. - * @param superset Actual set of values. - * @param subset Potential contained set of values. - * @param message Message to display on error. - */ - notIncludeDeepOrderedMembers(superset: T[], subset: T[], message?: string): void; - - /** - * Asserts that subset is included in superset. Order is not take into account. - * - * T Type of set values. - * @param superset Actual set of values. - * @param subset Potential contained set of values. - * @param message Message to display on error. - */ - includeMembers(superset: T[], subset: T[], message?: string): void; - - /** - * Asserts that subset isn’t included in superset in any order. - * Uses a strict equality check (===). Duplicates are ignored. - * - * T Type of set values. - * @param superset Actual set of values. - * @param subset Potential not contained set of values. - * @param message Message to display on error. - */ - notIncludeMembers(superset: T[], subset: T[], message?: string): void; - - /** - * Asserts that subset is included in superset using deep equality checking. - * Order is not take into account. - * - * T Type of set values. - * @param superset Actual set of values. - * @param subset Potential contained set of values. - * @param message Message to display on error. - */ - includeDeepMembers(superset: T[], subset: T[], message?: string): void; - - /** - * Asserts that non-object, non-array value inList appears in the flat array list. - * - * T Type of list values. - * @param inList Value expected to be in the list. - * @param list List of values. - * @param message Message to display on error. - */ - oneOf(inList: T, list: T[], message?: string): void; - - /** - * Asserts that a function changes the value of a property. - * - * T Type of object. - * @param modifier Function to run. - * @param object Container object. - * @param property Property of object expected to be modified. - * @param message Message to display on error. - */ - changes(modifier: Function, object: T, property: string, /* keyof T */ message?: string): void; - - /** - * Asserts that a function does not change the value of a property. - * - * T Type of object. - * @param modifier Function to run. - * @param object Container object. - * @param property Property of object expected not to be modified. - * @param message Message to display on error. - */ - doesNotChange(modifier: Function, object: T, property: string, /* keyof T */ message?: string): void; - - /** - * Asserts that a function increases an object property. - * - * T Type of object. - * @param modifier Function to run. - * @param object Container object. - * @param property Property of object expected to be increased. - * @param message Message to display on error. - */ - increases(modifier: Function, object: T, property: string, /* keyof T */ message?: string): void; - - /** - * Asserts that a function does not increase an object property. - * - * T Type of object. - * @param modifier Function to run. - * @param object Container object. - * @param property Property of object expected not to be increased. - * @param message Message to display on error. - */ - doesNotIncrease(modifier: Function, object: T, property: string, /* keyof T */ message?: string): void; - - /** - * Asserts that a function decreases an object property. - * - * T Type of object. - * @param modifier Function to run. - * @param object Container object. - * @param property Property of object expected to be decreased. - * @param message Message to display on error. - */ - decreases(modifier: Function, object: T, property: string, /* keyof T */ message?: string): void; - - /** - * Asserts that a function does not decrease an object property. - * - * T Type of object. - * @param modifier Function to run. - * @param object Container object. - * @param property Property of object expected not to be decreased. - * @param message Message to display on error. - */ - doesNotDecrease(modifier: Function, object: T, property: string, /* keyof T */ message?: string): void; - - /** - * Asserts if value is not a false value, and throws if it is a true value. - * - * T Type of object. - * @param object Actual value. - * @param message Message to display on error. - * @remarks This is added to allow for chai to be a drop-in replacement for - * Node’s assert class. - */ - ifError(object: T, message?: string): void; - - /** - * Asserts that object is extensible (can have new properties added to it). - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - isExtensible(object: T, message?: string): void; - - /** - * Asserts that object is extensible (can have new properties added to it). - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - extensible(object: T, message?: string): void; - - /** - * Asserts that object is not extensible. - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - isNotExtensible(object: T, message?: string): void; - - /** - * Asserts that object is not extensible. - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - notExtensible(object: T, message?: string): void; - - /** - * Asserts that object is sealed (can have new properties added to it - * and its existing properties cannot be removed). - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - isSealed(object: T, message?: string): void; - - /** - * Asserts that object is sealed (can have new properties added to it - * and its existing properties cannot be removed). - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - sealed(object: T, message?: string): void; - - /** - * Asserts that object is not sealed. - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - isNotSealed(object: T, message?: string): void; - - /** - * Asserts that object is not sealed. - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - notSealed(object: T, message?: string): void; - - /** - * Asserts that object is frozen (cannot have new properties added to it - * and its existing properties cannot be removed). - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - isFrozen(object: T, message?: string): void; - - /** - * Asserts that object is frozen (cannot have new properties added to it - * and its existing properties cannot be removed). - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - frozen(object: T, message?: string): void; - - /** - * Asserts that object is not frozen (cannot have new properties added to it - * and its existing properties cannot be removed). - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - isNotFrozen(object: T, message?: string): void; - - /** - * Asserts that object is not frozen (cannot have new properties added to it - * and its existing properties cannot be removed). - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - notFrozen(object: T, message?: string): void; - - /** - * Asserts that the target does not contain any values. For arrays and - * strings, it checks the length property. For Map and Set instances, it - * checks the size property. For non-function objects, it gets the count - * of own enumerable string keys. - * - * T Type of object - * @param object Actual value. - * @param message Message to display on error. - */ - isEmpty(object: T, message?: string): void; - - /** - * Asserts that the target contains values. For arrays and strings, it checks - * the length property. For Map and Set instances, it checks the size property. - * For non-function objects, it gets the count of own enumerable string keys. - * - * T Type of object. - * @param object Object to test. - * @param message Message to display on error. - */ - isNotEmpty(object: T, message?: string): void; - - /** - * Asserts that `object` has at least one of the `keys` provided. - * You can also provide a single object instead of a `keys` array and its keys - * will be used as the expected set of keys. - * - * T Type of object. - * @param object Object to test. - * @param keys Keys to check - * @param message Message to display on error. - */ - hasAnyKeys(object: T, keys: Array | { [key: string]: any }, message?: string): void; - - /** - * Asserts that `object` has all and only all of the `keys` provided. - * You can also provide a single object instead of a `keys` array and its keys - * will be used as the expected set of keys. - * - * T Type of object. - * @param object Object to test. - * @param keys Keys to check - * @param message Message to display on error. - */ - hasAllKeys(object: T, keys: Array | { [key: string]: any }, message?: string): void; - - /** - * Asserts that `object` has all of the `keys` provided but may have more keys not listed. - * You can also provide a single object instead of a `keys` array and its keys - * will be used as the expected set of keys. - * - * T Type of object. - * @param object Object to test. - * @param keys Keys to check - * @param message Message to display on error. - */ - containsAllKeys(object: T, keys: Array | { [key: string]: any }, message?: string): void; - - /** - * Asserts that `object` has none of the `keys` provided. - * You can also provide a single object instead of a `keys` array and its keys - * will be used as the expected set of keys. - * - * T Type of object. - * @param object Object to test. - * @param keys Keys to check - * @param message Message to display on error. - */ - doesNotHaveAnyKeys(object: T, keys: Array | { [key: string]: any }, message?: string): void; - - /** - * Asserts that `object` does not have at least one of the `keys` provided. - * You can also provide a single object instead of a `keys` array and its keys - * will be used as the expected set of keys. - * - * T Type of object. - * @param object Object to test. - * @param keys Keys to check - * @param message Message to display on error. - */ - doesNotHaveAllKeys(object: T, keys: Array | { [key: string]: any }, message?: string): void; - - /** - * Asserts that `object` has at least one of the `keys` provided. - * Since Sets and Maps can have objects as keys you can use this assertion to perform - * a deep comparison. - * You can also provide a single object instead of a `keys` array and its keys - * will be used as the expected set of keys. - * - * T Type of object. - * @param object Object to test. - * @param keys Keys to check - * @param message Message to display on error. - */ - hasAnyDeepKeys(object: T, keys: Array | { [key: string]: any }, message?: string): void; - - /** - * Asserts that `object` has all and only all of the `keys` provided. - * Since Sets and Maps can have objects as keys you can use this assertion to perform - * a deep comparison. - * You can also provide a single object instead of a `keys` array and its keys - * will be used as the expected set of keys. - * - * T Type of object. - * @param object Object to test. - * @param keys Keys to check - * @param message Message to display on error. - */ - hasAllDeepKeys(object: T, keys: Array | { [key: string]: any }, message?: string): void; - - /** - * Asserts that `object` contains all of the `keys` provided. - * Since Sets and Maps can have objects as keys you can use this assertion to perform - * a deep comparison. - * You can also provide a single object instead of a `keys` array and its keys - * will be used as the expected set of keys. - * - * T Type of object. - * @param object Object to test. - * @param keys Keys to check - * @param message Message to display on error. - */ - containsAllDeepKeys( - object: T, - keys: Array | { [key: string]: any }, - message?: string, - ): void; - - /** - * Asserts that `object` contains all of the `keys` provided. - * Since Sets and Maps can have objects as keys you can use this assertion to perform - * a deep comparison. - * You can also provide a single object instead of a `keys` array and its keys - * will be used as the expected set of keys. - * - * T Type of object. - * @param object Object to test. - * @param keys Keys to check - * @param message Message to display on error. - */ - doesNotHaveAnyDeepKeys( - object: T, - keys: Array | { [key: string]: any }, - message?: string, - ): void; - - /** - * Asserts that `object` contains all of the `keys` provided. - * Since Sets and Maps can have objects as keys you can use this assertion to perform - * a deep comparison. - * You can also provide a single object instead of a `keys` array and its keys - * will be used as the expected set of keys. - * - * T Type of object. - * @param object Object to test. - * @param keys Keys to check - * @param message Message to display on error. - */ - doesNotHaveAllDeepKeys( - object: T, - keys: Array | { [key: string]: any }, - message?: string, - ): void; - - /** - * Asserts that object has a direct or inherited property named by property, - * which can be a string using dot- and bracket-notation for nested reference. - * - * T Type of object. - * @param object Object to test. - * @param property Property to test. - * @param message Message to display on error. - */ - nestedProperty(object: T, property: string, message?: string): void; - - /** - * Asserts that object does not have a property named by property, - * which can be a string using dot- and bracket-notation for nested reference. - * The property cannot exist on the object nor anywhere in its prototype chain. - * - * T Type of object. - * @param object Object to test. - * @param property Property to test. - * @param message Message to display on error. - */ - notNestedProperty(object: T, property: string, message?: string): void; - - /** - * Asserts that object has a property named by property with value given by value. - * property can use dot- and bracket-notation for nested reference. Uses a strict equality check (===). - * - * T Type of object. - * @param object Object to test. - * @param property Property to test. - * @param value Value to test. - * @param message Message to display on error. - */ - nestedPropertyVal(object: T, property: string, value: any, message?: string): void; - - /** - * Asserts that object does not have a property named by property with value given by value. - * property can use dot- and bracket-notation for nested reference. Uses a strict equality check (===). - * - * T Type of object. - * @param object Object to test. - * @param property Property to test. - * @param value Value to test. - * @param message Message to display on error. - */ - notNestedPropertyVal(object: T, property: string, value: any, message?: string): void; - - /** - * Asserts that object has a property named by property with a value given by value. - * property can use dot- and bracket-notation for nested reference. Uses a deep equality check. - * - * T Type of object. - * @param object Object to test. - * @param property Property to test. - * @param value Value to test. - * @param message Message to display on error. - */ - deepNestedPropertyVal(object: T, property: string, value: any, message?: string): void; - - /** - * Asserts that object does not have a property named by property with value given by value. - * property can use dot- and bracket-notation for nested reference. Uses a deep equality check. - * - * T Type of object. - * @param object Object to test. - * @param property Property to test. - * @param value Value to test. - * @param message Message to display on error. - */ - notDeepNestedPropertyVal(object: T, property: string, value: any, message?: string): void; - } - - export interface Config { - /** - * Default: false - */ - includeStack: boolean; - - /** - * Default: true - */ - showDiff: boolean; - - /** - * Default: 40 - */ - truncateThreshold: number; - - /** - * Default: true - */ - useProxy: boolean; - - /** - * Default: ['then', 'catch', 'inspect', 'toJSON'] - */ - proxyExcludedKeys: string[]; - } - - export class AssertionError { - constructor(message: string, _props?: any, ssf?: Function); - name: string; - message: string; - showDiff: boolean; - stack: string; - } -} - -declare const chai: Chai.ChaiStatic; - -declare module "chai" { - export = chai; -} - -// interface Object { -// should: Chai.Assertion; -// } diff --git a/node_modules/@vitest/expect/dist/index.d.ts b/node_modules/@vitest/expect/dist/index.d.ts deleted file mode 100644 index d3949716..00000000 --- a/node_modules/@vitest/expect/dist/index.d.ts +++ /dev/null @@ -1,263 +0,0 @@ -import * as tinyrainbow from 'tinyrainbow'; -import { Formatter } from 'tinyrainbow'; -import { stringify, Constructable } from '@vitest/utils'; -import { diff, printDiffOrStringify } from '@vitest/utils/diff'; -export { DiffOptions } from '@vitest/utils/diff'; - -declare function matcherHint(matcherName: string, received?: string, expected?: string, options?: MatcherHintOptions): string; -declare function printReceived(object: unknown): string; -declare function printExpected(value: unknown): string; -declare function getMatcherUtils(): { - EXPECTED_COLOR: tinyrainbow.Formatter; - RECEIVED_COLOR: tinyrainbow.Formatter; - INVERTED_COLOR: tinyrainbow.Formatter; - BOLD_WEIGHT: tinyrainbow.Formatter; - DIM_COLOR: tinyrainbow.Formatter; - diff: typeof diff; - matcherHint: typeof matcherHint; - printReceived: typeof printReceived; - printExpected: typeof printExpected; - printDiffOrStringify: typeof printDiffOrStringify; -}; -declare function addCustomEqualityTesters(newTesters: Array): void; - -/** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -type ChaiPlugin = Chai.ChaiPlugin; -type Tester = (this: TesterContext, a: any, b: any, customTesters: Array) => boolean | undefined; -interface TesterContext { - equals: (a: unknown, b: unknown, customTesters?: Array, strictCheck?: boolean) => boolean; -} - -interface MatcherHintOptions { - comment?: string; - expectedColor?: Formatter; - isDirectExpectCall?: boolean; - isNot?: boolean; - promise?: string; - receivedColor?: Formatter; - secondArgument?: string; - secondArgumentColor?: Formatter; -} -interface MatcherState { - customTesters: Array; - assertionCalls: number; - currentTestName?: string; - dontThrow?: () => void; - error?: Error; - equals: (a: unknown, b: unknown, customTesters?: Array, strictCheck?: boolean) => boolean; - expand?: boolean; - expectedAssertionsNumber?: number | null; - expectedAssertionsNumberErrorGen?: (() => Error) | null; - isExpectingAssertions?: boolean; - isExpectingAssertionsError?: Error | null; - isNot: boolean; - promise: string; - suppressedErrors: Array; - testPath?: string; - utils: ReturnType & { - diff: typeof diff; - stringify: typeof stringify; - iterableEquality: Tester; - subsetEquality: Tester; - }; - soft?: boolean; - poll?: boolean; -} -interface SyncExpectationResult { - pass: boolean; - message: () => string; - actual?: any; - expected?: any; -} -type AsyncExpectationResult = Promise; -type ExpectationResult = SyncExpectationResult | AsyncExpectationResult; -interface RawMatcherFn { - (this: T, received: any, expected: any, options?: any): ExpectationResult; -} -type MatchersObject = Record>; -interface ExpectStatic extends Chai.ExpectStatic, AsymmetricMatchersContaining { - (actual: T, message?: string): Assertion; - extend: (expects: MatchersObject) => void; - anything: () => any; - any: (constructor: unknown) => any; - getState: () => MatcherState; - setState: (state: Partial) => void; - not: AsymmetricMatchersContaining; -} -interface AsymmetricMatchersContaining { - stringContaining: (expected: string) => any; - objectContaining: (expected: T) => any; - arrayContaining: (expected: Array) => any; - stringMatching: (expected: string | RegExp) => any; - closeTo: (expected: number, precision?: number) => any; -} -interface JestAssertion extends jest.Matchers { - toEqual: (expected: E) => void; - toStrictEqual: (expected: E) => void; - toBe: (expected: E) => void; - toMatch: (expected: string | RegExp) => void; - toMatchObject: (expected: E) => void; - toContain: (item: E) => void; - toContainEqual: (item: E) => void; - toBeTruthy: () => void; - toBeFalsy: () => void; - toBeGreaterThan: (num: number | bigint) => void; - toBeGreaterThanOrEqual: (num: number | bigint) => void; - toBeLessThan: (num: number | bigint) => void; - toBeLessThanOrEqual: (num: number | bigint) => void; - toBeNaN: () => void; - toBeUndefined: () => void; - toBeNull: () => void; - toBeDefined: () => void; - toBeInstanceOf: (expected: E) => void; - toBeCalledTimes: (times: number) => void; - toHaveLength: (length: number) => void; - toHaveProperty: (property: string | (string | number)[], value?: E) => void; - toBeCloseTo: (number: number, numDigits?: number) => void; - toHaveBeenCalledTimes: (times: number) => void; - toHaveBeenCalled: () => void; - toBeCalled: () => void; - toHaveBeenCalledWith: (...args: E) => void; - toBeCalledWith: (...args: E) => void; - toHaveBeenNthCalledWith: (n: number, ...args: E) => void; - nthCalledWith: (nthCall: number, ...args: E) => void; - toHaveBeenLastCalledWith: (...args: E) => void; - lastCalledWith: (...args: E) => void; - toThrow: (expected?: string | Constructable | RegExp | Error) => void; - toThrowError: (expected?: string | Constructable | RegExp | Error) => void; - toReturn: () => void; - toHaveReturned: () => void; - toReturnTimes: (times: number) => void; - toHaveReturnedTimes: (times: number) => void; - toReturnWith: (value: E) => void; - toHaveReturnedWith: (value: E) => void; - toHaveLastReturnedWith: (value: E) => void; - lastReturnedWith: (value: E) => void; - toHaveNthReturnedWith: (nthCall: number, value: E) => void; - nthReturnedWith: (nthCall: number, value: E) => void; -} -type VitestAssertion = { - [K in keyof A]: A[K] extends Chai.Assertion ? Assertion : A[K] extends (...args: any[]) => any ? A[K] : VitestAssertion; -} & ((type: string, message?: string) => Assertion); -type Promisify = { - [K in keyof O]: O[K] extends (...args: infer A) => infer R ? O extends R ? Promisify : (...args: A) => Promise : O[K]; -}; -type PromisifyAssertion = Promisify>; -interface Assertion extends VitestAssertion, JestAssertion { - toBeTypeOf: (expected: 'bigint' | 'boolean' | 'function' | 'number' | 'object' | 'string' | 'symbol' | 'undefined') => void; - toHaveBeenCalledOnce: () => void; - toSatisfy: (matcher: (value: E) => boolean, message?: string) => void; - toHaveResolved: () => void; - toHaveResolvedWith: (value: E) => void; - toHaveResolvedTimes: (times: number) => void; - toHaveLastResolvedWith: (value: E) => void; - toHaveNthResolvedWith: (nthCall: number, value: E) => void; - resolves: PromisifyAssertion; - rejects: PromisifyAssertion; -} -declare global { - namespace jest { - interface Matchers { - } - } -} - -interface AsymmetricMatcherInterface { - asymmetricMatch: (other: unknown) => boolean; - toString: () => string; - getExpectedType?: () => string; - toAsymmetricMatcher?: () => string; -} -declare abstract class AsymmetricMatcher implements AsymmetricMatcherInterface { - protected sample: T; - protected inverse: boolean; - $$typeof: symbol; - constructor(sample: T, inverse?: boolean); - protected getMatcherContext(expect?: Chai.ExpectStatic): State; - abstract asymmetricMatch(other: unknown): boolean; - abstract toString(): string; - getExpectedType?(): string; - toAsymmetricMatcher?(): string; -} -declare class StringContaining extends AsymmetricMatcher { - constructor(sample: string, inverse?: boolean); - asymmetricMatch(other: string): boolean; - toString(): string; - getExpectedType(): string; -} -declare class Anything extends AsymmetricMatcher { - asymmetricMatch(other: unknown): other is {}; - toString(): string; - toAsymmetricMatcher(): string; -} -declare class ObjectContaining extends AsymmetricMatcher> { - constructor(sample: Record, inverse?: boolean); - getPrototype(obj: object): any; - hasProperty(obj: object | null, property: string): boolean; - asymmetricMatch(other: any): boolean; - toString(): string; - getExpectedType(): string; -} -declare class ArrayContaining extends AsymmetricMatcher> { - constructor(sample: Array, inverse?: boolean); - asymmetricMatch(other: Array): boolean; - toString(): string; - getExpectedType(): string; -} -declare class Any extends AsymmetricMatcher { - constructor(sample: unknown); - fnNameFor(func: Function): string; - asymmetricMatch(other: unknown): boolean; - toString(): string; - getExpectedType(): string; - toAsymmetricMatcher(): string; -} -declare class StringMatching extends AsymmetricMatcher { - constructor(sample: string | RegExp, inverse?: boolean); - asymmetricMatch(other: string): boolean; - toString(): string; - getExpectedType(): string; -} -declare const JestAsymmetricMatchers: ChaiPlugin; - -declare function equals(a: unknown, b: unknown, customTesters?: Array, strictCheck?: boolean): boolean; -declare function isAsymmetric(obj: any): boolean; -declare function hasAsymmetric(obj: any, seen?: Set): boolean; -declare function isA(typeName: string, value: unknown): boolean; -declare function fnNameFor(func: Function): string; -declare function hasProperty(obj: object | null, property: string): boolean; -declare function isImmutableUnorderedKeyed(maybeKeyed: any): boolean; -declare function isImmutableUnorderedSet(maybeSet: any): boolean; -declare function iterableEquality(a: any, b: any, customTesters?: Array, aStack?: Array, bStack?: Array): boolean | undefined; -declare function subsetEquality(object: unknown, subset: unknown, customTesters?: Array): boolean | undefined; -declare function typeEquality(a: any, b: any): boolean | undefined; -declare function arrayBufferEquality(a: unknown, b: unknown): boolean | undefined; -declare function sparseArrayEquality(a: unknown, b: unknown, customTesters?: Array): boolean | undefined; -declare function generateToBeMessage(deepEqualityName: string, expected?: string, actual?: string): string; -declare function pluralize(word: string, count: number): string; -declare function getObjectKeys(object: object): Array; -declare function getObjectSubset(object: any, subset: any, customTesters?: Array): { - subset: any; - stripped: number; -}; - -declare const MATCHERS_OBJECT: unique symbol; -declare const JEST_MATCHERS_OBJECT: unique symbol; -declare const GLOBAL_EXPECT: unique symbol; -declare const ASYMMETRIC_MATCHERS_OBJECT: unique symbol; - -declare function getState(expect: ExpectStatic): State; -declare function setState(state: Partial, expect: ExpectStatic): void; - -declare const JestChaiExpect: ChaiPlugin; - -declare const JestExtend: ChaiPlugin; - -export { ASYMMETRIC_MATCHERS_OBJECT, Any, Anything, ArrayContaining, type Assertion, AsymmetricMatcher, type AsymmetricMatcherInterface, type AsymmetricMatchersContaining, type AsyncExpectationResult, type ChaiPlugin, type ExpectStatic, type ExpectationResult, GLOBAL_EXPECT, JEST_MATCHERS_OBJECT, type JestAssertion, JestAsymmetricMatchers, JestChaiExpect, JestExtend, MATCHERS_OBJECT, type MatcherHintOptions, type MatcherState, type MatchersObject, ObjectContaining, type PromisifyAssertion, type RawMatcherFn, StringContaining, StringMatching, type SyncExpectationResult, type Tester, type TesterContext, addCustomEqualityTesters, arrayBufferEquality, equals, fnNameFor, generateToBeMessage, getObjectKeys, getObjectSubset, getState, hasAsymmetric, hasProperty, isA, isAsymmetric, isImmutableUnorderedKeyed, isImmutableUnorderedSet, iterableEquality, pluralize, setState, sparseArrayEquality, subsetEquality, typeEquality }; diff --git a/node_modules/@vitest/expect/dist/index.js b/node_modules/@vitest/expect/dist/index.js deleted file mode 100644 index ea14a7a5..00000000 --- a/node_modules/@vitest/expect/dist/index.js +++ /dev/null @@ -1,1982 +0,0 @@ -import { getType, stringify, isObject, assertTypes } from '@vitest/utils'; -import c from 'tinyrainbow'; -import { diff, printDiffOrStringify } from '@vitest/utils/diff'; -import { isMockFunction } from '@vitest/spy'; -import { processError } from '@vitest/utils/error'; -import { use, util } from 'chai'; - -const MATCHERS_OBJECT = Symbol.for("matchers-object"); -const JEST_MATCHERS_OBJECT = Symbol.for("$$jest-matchers-object"); -const GLOBAL_EXPECT = Symbol.for("expect-global"); -const ASYMMETRIC_MATCHERS_OBJECT = Symbol.for( - "asymmetric-matchers-object" -); - -if (!Object.prototype.hasOwnProperty.call(globalThis, MATCHERS_OBJECT)) { - const globalState = /* @__PURE__ */ new WeakMap(); - const matchers = /* @__PURE__ */ Object.create(null); - const customEqualityTesters = []; - const assymetricMatchers = /* @__PURE__ */ Object.create(null); - Object.defineProperty(globalThis, MATCHERS_OBJECT, { - get: () => globalState - }); - Object.defineProperty(globalThis, JEST_MATCHERS_OBJECT, { - configurable: true, - get: () => ({ - state: globalState.get(globalThis[GLOBAL_EXPECT]), - matchers, - customEqualityTesters - }) - }); - Object.defineProperty(globalThis, ASYMMETRIC_MATCHERS_OBJECT, { - get: () => assymetricMatchers - }); -} -function getState(expect) { - return globalThis[MATCHERS_OBJECT].get(expect); -} -function setState(state, expect) { - const map = globalThis[MATCHERS_OBJECT]; - const current = map.get(expect) || {}; - Object.assign(current, state); - map.set(expect, current); -} - -const EXPECTED_COLOR = c.green; -const RECEIVED_COLOR = c.red; -const INVERTED_COLOR = c.inverse; -const BOLD_WEIGHT = c.bold; -const DIM_COLOR = c.dim; -function matcherHint(matcherName, received = "received", expected = "expected", options = {}) { - const { - comment = "", - isDirectExpectCall = false, - // seems redundant with received === '' - isNot = false, - promise = "", - secondArgument = "", - expectedColor = EXPECTED_COLOR, - receivedColor = RECEIVED_COLOR, - secondArgumentColor = EXPECTED_COLOR - } = options; - let hint = ""; - let dimString = "expect"; - if (!isDirectExpectCall && received !== "") { - hint += DIM_COLOR(`${dimString}(`) + receivedColor(received); - dimString = ")"; - } - if (promise !== "") { - hint += DIM_COLOR(`${dimString}.`) + promise; - dimString = ""; - } - if (isNot) { - hint += `${DIM_COLOR(`${dimString}.`)}not`; - dimString = ""; - } - if (matcherName.includes(".")) { - dimString += matcherName; - } else { - hint += DIM_COLOR(`${dimString}.`) + matcherName; - dimString = ""; - } - if (expected === "") { - dimString += "()"; - } else { - hint += DIM_COLOR(`${dimString}(`) + expectedColor(expected); - if (secondArgument) { - hint += DIM_COLOR(", ") + secondArgumentColor(secondArgument); - } - dimString = ")"; - } - if (comment !== "") { - dimString += ` // ${comment}`; - } - if (dimString !== "") { - hint += DIM_COLOR(dimString); - } - return hint; -} -const SPACE_SYMBOL = "\xB7"; -function replaceTrailingSpaces(text) { - return text.replace(/\s+$/gm, (spaces) => SPACE_SYMBOL.repeat(spaces.length)); -} -function printReceived(object) { - return RECEIVED_COLOR(replaceTrailingSpaces(stringify(object))); -} -function printExpected(value) { - return EXPECTED_COLOR(replaceTrailingSpaces(stringify(value))); -} -function getMatcherUtils() { - return { - EXPECTED_COLOR, - RECEIVED_COLOR, - INVERTED_COLOR, - BOLD_WEIGHT, - DIM_COLOR, - diff, - matcherHint, - printReceived, - printExpected, - printDiffOrStringify - }; -} -function addCustomEqualityTesters(newTesters) { - if (!Array.isArray(newTesters)) { - throw new TypeError( - `expect.customEqualityTesters: Must be set to an array of Testers. Was given "${getType( - newTesters - )}"` - ); - } - globalThis[JEST_MATCHERS_OBJECT].customEqualityTesters.push( - ...newTesters - ); -} -function getCustomEqualityTesters() { - return globalThis[JEST_MATCHERS_OBJECT].customEqualityTesters; -} - -function equals(a, b, customTesters, strictCheck) { - customTesters = customTesters || []; - return eq(a, b, [], [], customTesters, strictCheck ? hasKey : hasDefinedKey); -} -const functionToString = Function.prototype.toString; -function isAsymmetric(obj) { - return !!obj && typeof obj === "object" && "asymmetricMatch" in obj && isA("Function", obj.asymmetricMatch); -} -function hasAsymmetric(obj, seen = /* @__PURE__ */ new Set()) { - if (seen.has(obj)) { - return false; - } - seen.add(obj); - if (isAsymmetric(obj)) { - return true; - } - if (Array.isArray(obj)) { - return obj.some((i) => hasAsymmetric(i, seen)); - } - if (obj instanceof Set) { - return Array.from(obj).some((i) => hasAsymmetric(i, seen)); - } - if (isObject(obj)) { - return Object.values(obj).some((v) => hasAsymmetric(v, seen)); - } - return false; -} -function asymmetricMatch(a, b) { - const asymmetricA = isAsymmetric(a); - const asymmetricB = isAsymmetric(b); - if (asymmetricA && asymmetricB) { - return void 0; - } - if (asymmetricA) { - return a.asymmetricMatch(b); - } - if (asymmetricB) { - return b.asymmetricMatch(a); - } -} -function eq(a, b, aStack, bStack, customTesters, hasKey2) { - let result = true; - const asymmetricResult = asymmetricMatch(a, b); - if (asymmetricResult !== void 0) { - return asymmetricResult; - } - const testerContext = { equals }; - for (let i = 0; i < customTesters.length; i++) { - const customTesterResult = customTesters[i].call( - testerContext, - a, - b, - customTesters - ); - if (customTesterResult !== void 0) { - return customTesterResult; - } - } - if (a instanceof Error && b instanceof Error) { - return a.message === b.message; - } - if (typeof URL === "function" && a instanceof URL && b instanceof URL) { - return a.href === b.href; - } - if (Object.is(a, b)) { - return true; - } - if (a === null || b === null) { - return a === b; - } - const className = Object.prototype.toString.call(a); - if (className !== Object.prototype.toString.call(b)) { - return false; - } - switch (className) { - case "[object Boolean]": - case "[object String]": - case "[object Number]": - if (typeof a !== typeof b) { - return false; - } else if (typeof a !== "object" && typeof b !== "object") { - return Object.is(a, b); - } else { - return Object.is(a.valueOf(), b.valueOf()); - } - case "[object Date]": { - const numA = +a; - const numB = +b; - return numA === numB || Number.isNaN(numA) && Number.isNaN(numB); - } - case "[object RegExp]": - return a.source === b.source && a.flags === b.flags; - } - if (typeof a !== "object" || typeof b !== "object") { - return false; - } - if (isDomNode(a) && isDomNode(b)) { - return a.isEqualNode(b); - } - let length = aStack.length; - while (length--) { - if (aStack[length] === a) { - return bStack[length] === b; - } else if (bStack[length] === b) { - return false; - } - } - aStack.push(a); - bStack.push(b); - if (className === "[object Array]" && a.length !== b.length) { - return false; - } - const aKeys = keys(a, hasKey2); - let key; - let size = aKeys.length; - if (keys(b, hasKey2).length !== size) { - return false; - } - while (size--) { - key = aKeys[size]; - result = hasKey2(b, key) && eq(a[key], b[key], aStack, bStack, customTesters, hasKey2); - if (!result) { - return false; - } - } - aStack.pop(); - bStack.pop(); - return result; -} -function keys(obj, hasKey2) { - const keys2 = []; - for (const key in obj) { - if (hasKey2(obj, key)) { - keys2.push(key); - } - } - return keys2.concat( - Object.getOwnPropertySymbols(obj).filter( - (symbol) => Object.getOwnPropertyDescriptor(obj, symbol).enumerable - ) - ); -} -function hasDefinedKey(obj, key) { - return hasKey(obj, key) && obj[key] !== void 0; -} -function hasKey(obj, key) { - return Object.prototype.hasOwnProperty.call(obj, key); -} -function isA(typeName, value) { - return Object.prototype.toString.apply(value) === `[object ${typeName}]`; -} -function isDomNode(obj) { - return obj !== null && typeof obj === "object" && "nodeType" in obj && typeof obj.nodeType === "number" && "nodeName" in obj && typeof obj.nodeName === "string" && "isEqualNode" in obj && typeof obj.isEqualNode === "function"; -} -function fnNameFor(func) { - if (func.name) { - return func.name; - } - const matches = functionToString.call(func).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/); - return matches ? matches[1] : ""; -} -function getPrototype(obj) { - if (Object.getPrototypeOf) { - return Object.getPrototypeOf(obj); - } - if (obj.constructor.prototype === obj) { - return null; - } - return obj.constructor.prototype; -} -function hasProperty(obj, property) { - if (!obj) { - return false; - } - if (Object.prototype.hasOwnProperty.call(obj, property)) { - return true; - } - return hasProperty(getPrototype(obj), property); -} -const IS_KEYED_SENTINEL = "@@__IMMUTABLE_KEYED__@@"; -const IS_SET_SENTINEL = "@@__IMMUTABLE_SET__@@"; -const IS_LIST_SENTINEL = "@@__IMMUTABLE_LIST__@@"; -const IS_ORDERED_SENTINEL = "@@__IMMUTABLE_ORDERED__@@"; -const IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@"; -function isImmutableUnorderedKeyed(maybeKeyed) { - return !!(maybeKeyed && maybeKeyed[IS_KEYED_SENTINEL] && !maybeKeyed[IS_ORDERED_SENTINEL]); -} -function isImmutableUnorderedSet(maybeSet) { - return !!(maybeSet && maybeSet[IS_SET_SENTINEL] && !maybeSet[IS_ORDERED_SENTINEL]); -} -function isObjectLiteral(source) { - return source != null && typeof source === "object" && !Array.isArray(source); -} -function isImmutableList(source) { - return Boolean(source && isObjectLiteral(source) && source[IS_LIST_SENTINEL]); -} -function isImmutableOrderedKeyed(source) { - return Boolean( - source && isObjectLiteral(source) && source[IS_KEYED_SENTINEL] && source[IS_ORDERED_SENTINEL] - ); -} -function isImmutableOrderedSet(source) { - return Boolean( - source && isObjectLiteral(source) && source[IS_SET_SENTINEL] && source[IS_ORDERED_SENTINEL] - ); -} -function isImmutableRecord(source) { - return Boolean(source && isObjectLiteral(source) && source[IS_RECORD_SYMBOL]); -} -const IteratorSymbol = Symbol.iterator; -function hasIterator(object) { - return !!(object != null && object[IteratorSymbol]); -} -function iterableEquality(a, b, customTesters = [], aStack = [], bStack = []) { - if (typeof a !== "object" || typeof b !== "object" || Array.isArray(a) || Array.isArray(b) || !hasIterator(a) || !hasIterator(b)) { - return void 0; - } - if (a.constructor !== b.constructor) { - return false; - } - let length = aStack.length; - while (length--) { - if (aStack[length] === a) { - return bStack[length] === b; - } - } - aStack.push(a); - bStack.push(b); - const filteredCustomTesters = [ - ...customTesters.filter((t) => t !== iterableEquality), - iterableEqualityWithStack - ]; - function iterableEqualityWithStack(a2, b2) { - return iterableEquality(a2, b2, [...customTesters], [...aStack], [...bStack]); - } - if (a.size !== void 0) { - if (a.size !== b.size) { - return false; - } else if (isA("Set", a) || isImmutableUnorderedSet(a)) { - let allFound = true; - for (const aValue of a) { - if (!b.has(aValue)) { - let has = false; - for (const bValue of b) { - const isEqual = equals(aValue, bValue, filteredCustomTesters); - if (isEqual === true) { - has = true; - } - } - if (has === false) { - allFound = false; - break; - } - } - } - aStack.pop(); - bStack.pop(); - return allFound; - } else if (isA("Map", a) || isImmutableUnorderedKeyed(a)) { - let allFound = true; - for (const aEntry of a) { - if (!b.has(aEntry[0]) || !equals(aEntry[1], b.get(aEntry[0]), filteredCustomTesters)) { - let has = false; - for (const bEntry of b) { - const matchedKey = equals( - aEntry[0], - bEntry[0], - filteredCustomTesters - ); - let matchedValue = false; - if (matchedKey === true) { - matchedValue = equals( - aEntry[1], - bEntry[1], - filteredCustomTesters - ); - } - if (matchedValue === true) { - has = true; - } - } - if (has === false) { - allFound = false; - break; - } - } - } - aStack.pop(); - bStack.pop(); - return allFound; - } - } - const bIterator = b[IteratorSymbol](); - for (const aValue of a) { - const nextB = bIterator.next(); - if (nextB.done || !equals(aValue, nextB.value, filteredCustomTesters)) { - return false; - } - } - if (!bIterator.next().done) { - return false; - } - if (!isImmutableList(a) && !isImmutableOrderedKeyed(a) && !isImmutableOrderedSet(a) && !isImmutableRecord(a)) { - const aEntries = Object.entries(a); - const bEntries = Object.entries(b); - if (!equals(aEntries, bEntries)) { - return false; - } - } - aStack.pop(); - bStack.pop(); - return true; -} -function hasPropertyInObject(object, key) { - const shouldTerminate = !object || typeof object !== "object" || object === Object.prototype; - if (shouldTerminate) { - return false; - } - return Object.prototype.hasOwnProperty.call(object, key) || hasPropertyInObject(Object.getPrototypeOf(object), key); -} -function isObjectWithKeys(a) { - return isObject(a) && !(a instanceof Error) && !Array.isArray(a) && !(a instanceof Date); -} -function subsetEquality(object, subset, customTesters = []) { - const filteredCustomTesters = customTesters.filter( - (t) => t !== subsetEquality - ); - const subsetEqualityWithContext = (seenReferences = /* @__PURE__ */ new WeakMap()) => (object2, subset2) => { - if (!isObjectWithKeys(subset2)) { - return void 0; - } - return Object.keys(subset2).every((key) => { - if (subset2[key] != null && typeof subset2[key] === "object") { - if (seenReferences.has(subset2[key])) { - return equals(object2[key], subset2[key], filteredCustomTesters); - } - seenReferences.set(subset2[key], true); - } - const result = object2 != null && hasPropertyInObject(object2, key) && equals(object2[key], subset2[key], [ - ...filteredCustomTesters, - subsetEqualityWithContext(seenReferences) - ]); - seenReferences.delete(subset2[key]); - return result; - }); - }; - return subsetEqualityWithContext()(object, subset); -} -function typeEquality(a, b) { - if (a == null || b == null || a.constructor === b.constructor) { - return void 0; - } - return false; -} -function arrayBufferEquality(a, b) { - let dataViewA = a; - let dataViewB = b; - if (!(a instanceof DataView && b instanceof DataView)) { - if (!(a instanceof ArrayBuffer) || !(b instanceof ArrayBuffer)) { - return void 0; - } - try { - dataViewA = new DataView(a); - dataViewB = new DataView(b); - } catch { - return void 0; - } - } - if (dataViewA.byteLength !== dataViewB.byteLength) { - return false; - } - for (let i = 0; i < dataViewA.byteLength; i++) { - if (dataViewA.getUint8(i) !== dataViewB.getUint8(i)) { - return false; - } - } - return true; -} -function sparseArrayEquality(a, b, customTesters = []) { - if (!Array.isArray(a) || !Array.isArray(b)) { - return void 0; - } - const aKeys = Object.keys(a); - const bKeys = Object.keys(b); - const filteredCustomTesters = customTesters.filter( - (t) => t !== sparseArrayEquality - ); - return equals(a, b, filteredCustomTesters, true) && equals(aKeys, bKeys); -} -function generateToBeMessage(deepEqualityName, expected = "#{this}", actual = "#{exp}") { - const toBeMessage = `expected ${expected} to be ${actual} // Object.is equality`; - if (["toStrictEqual", "toEqual"].includes(deepEqualityName)) { - return `${toBeMessage} - -If it should pass with deep equality, replace "toBe" with "${deepEqualityName}" - -Expected: ${expected} -Received: serializes to the same string -`; - } - return toBeMessage; -} -function pluralize(word, count) { - return `${count} ${word}${count === 1 ? "" : "s"}`; -} -function getObjectKeys(object) { - return [ - ...Object.keys(object), - ...Object.getOwnPropertySymbols(object).filter( - (s) => { - var _a; - return (_a = Object.getOwnPropertyDescriptor(object, s)) == null ? void 0 : _a.enumerable; - } - ) - ]; -} -function getObjectSubset(object, subset, customTesters = []) { - let stripped = 0; - const getObjectSubsetWithContext = (seenReferences = /* @__PURE__ */ new WeakMap()) => (object2, subset2) => { - if (Array.isArray(object2)) { - if (Array.isArray(subset2) && subset2.length === object2.length) { - return subset2.map( - (sub, i) => getObjectSubsetWithContext(seenReferences)(object2[i], sub) - ); - } - } else if (object2 instanceof Date) { - return object2; - } else if (isObject(object2) && isObject(subset2)) { - if (equals(object2, subset2, [ - ...customTesters, - iterableEquality, - subsetEquality - ])) { - return subset2; - } - const trimmed = {}; - seenReferences.set(object2, trimmed); - for (const key of getObjectKeys(object2)) { - if (hasPropertyInObject(subset2, key)) { - trimmed[key] = seenReferences.has(object2[key]) ? seenReferences.get(object2[key]) : getObjectSubsetWithContext(seenReferences)( - object2[key], - subset2[key] - ); - } else { - if (!seenReferences.has(object2[key])) { - stripped += 1; - if (isObject(object2[key])) { - stripped += getObjectKeys(object2[key]).length; - } - getObjectSubsetWithContext(seenReferences)( - object2[key], - subset2[key] - ); - } - } - } - if (getObjectKeys(trimmed).length > 0) { - return trimmed; - } - } - return object2; - }; - return { subset: getObjectSubsetWithContext()(object, subset), stripped }; -} - -class AsymmetricMatcher { - constructor(sample, inverse = false) { - this.sample = sample; - this.inverse = inverse; - } - // should have "jest" to be compatible with its ecosystem - $$typeof = Symbol.for("jest.asymmetricMatcher"); - getMatcherContext(expect) { - return { - ...getState(expect || globalThis[GLOBAL_EXPECT]), - equals, - isNot: this.inverse, - customTesters: getCustomEqualityTesters(), - utils: { - ...getMatcherUtils(), - diff, - stringify, - iterableEquality, - subsetEquality - } - }; - } - // implement custom chai/loupe inspect for better AssertionError.message formatting - // https://github.com/chaijs/loupe/blob/9b8a6deabcd50adc056a64fb705896194710c5c6/src/index.ts#L29 - [Symbol.for("chai/inspect")](options) { - const result = stringify(this, options.depth, { min: true }); - if (result.length <= options.truncate) { - return result; - } - return `${this.toString()}{\u2026}`; - } -} -class StringContaining extends AsymmetricMatcher { - constructor(sample, inverse = false) { - if (!isA("String", sample)) { - throw new Error("Expected is not a string"); - } - super(sample, inverse); - } - asymmetricMatch(other) { - const result = isA("String", other) && other.includes(this.sample); - return this.inverse ? !result : result; - } - toString() { - return `String${this.inverse ? "Not" : ""}Containing`; - } - getExpectedType() { - return "string"; - } -} -class Anything extends AsymmetricMatcher { - asymmetricMatch(other) { - return other != null; - } - toString() { - return "Anything"; - } - toAsymmetricMatcher() { - return "Anything"; - } -} -class ObjectContaining extends AsymmetricMatcher { - constructor(sample, inverse = false) { - super(sample, inverse); - } - getPrototype(obj) { - if (Object.getPrototypeOf) { - return Object.getPrototypeOf(obj); - } - if (obj.constructor.prototype === obj) { - return null; - } - return obj.constructor.prototype; - } - hasProperty(obj, property) { - if (!obj) { - return false; - } - if (Object.prototype.hasOwnProperty.call(obj, property)) { - return true; - } - return this.hasProperty(this.getPrototype(obj), property); - } - asymmetricMatch(other) { - if (typeof this.sample !== "object") { - throw new TypeError( - `You must provide an object to ${this.toString()}, not '${typeof this.sample}'.` - ); - } - let result = true; - const matcherContext = this.getMatcherContext(); - for (const property in this.sample) { - if (!this.hasProperty(other, property) || !equals( - this.sample[property], - other[property], - matcherContext.customTesters - )) { - result = false; - break; - } - } - return this.inverse ? !result : result; - } - toString() { - return `Object${this.inverse ? "Not" : ""}Containing`; - } - getExpectedType() { - return "object"; - } -} -class ArrayContaining extends AsymmetricMatcher { - constructor(sample, inverse = false) { - super(sample, inverse); - } - asymmetricMatch(other) { - if (!Array.isArray(this.sample)) { - throw new TypeError( - `You must provide an array to ${this.toString()}, not '${typeof this.sample}'.` - ); - } - const matcherContext = this.getMatcherContext(); - const result = this.sample.length === 0 || Array.isArray(other) && this.sample.every( - (item) => other.some( - (another) => equals(item, another, matcherContext.customTesters) - ) - ); - return this.inverse ? !result : result; - } - toString() { - return `Array${this.inverse ? "Not" : ""}Containing`; - } - getExpectedType() { - return "array"; - } -} -class Any extends AsymmetricMatcher { - constructor(sample) { - if (typeof sample === "undefined") { - throw new TypeError( - "any() expects to be passed a constructor function. Please pass one or use anything() to match any object." - ); - } - super(sample); - } - fnNameFor(func) { - if (func.name) { - return func.name; - } - const functionToString = Function.prototype.toString; - const matches = functionToString.call(func).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/); - return matches ? matches[1] : ""; - } - asymmetricMatch(other) { - if (this.sample === String) { - return typeof other == "string" || other instanceof String; - } - if (this.sample === Number) { - return typeof other == "number" || other instanceof Number; - } - if (this.sample === Function) { - return typeof other == "function" || other instanceof Function; - } - if (this.sample === Boolean) { - return typeof other == "boolean" || other instanceof Boolean; - } - if (this.sample === BigInt) { - return typeof other == "bigint" || other instanceof BigInt; - } - if (this.sample === Symbol) { - return typeof other == "symbol" || other instanceof Symbol; - } - if (this.sample === Object) { - return typeof other == "object"; - } - return other instanceof this.sample; - } - toString() { - return "Any"; - } - getExpectedType() { - if (this.sample === String) { - return "string"; - } - if (this.sample === Number) { - return "number"; - } - if (this.sample === Function) { - return "function"; - } - if (this.sample === Object) { - return "object"; - } - if (this.sample === Boolean) { - return "boolean"; - } - return this.fnNameFor(this.sample); - } - toAsymmetricMatcher() { - return `Any<${this.fnNameFor(this.sample)}>`; - } -} -class StringMatching extends AsymmetricMatcher { - constructor(sample, inverse = false) { - if (!isA("String", sample) && !isA("RegExp", sample)) { - throw new Error("Expected is not a String or a RegExp"); - } - super(new RegExp(sample), inverse); - } - asymmetricMatch(other) { - const result = isA("String", other) && this.sample.test(other); - return this.inverse ? !result : result; - } - toString() { - return `String${this.inverse ? "Not" : ""}Matching`; - } - getExpectedType() { - return "string"; - } -} -class CloseTo extends AsymmetricMatcher { - precision; - constructor(sample, precision = 2, inverse = false) { - if (!isA("Number", sample)) { - throw new Error("Expected is not a Number"); - } - if (!isA("Number", precision)) { - throw new Error("Precision is not a Number"); - } - super(sample); - this.inverse = inverse; - this.precision = precision; - } - asymmetricMatch(other) { - if (!isA("Number", other)) { - return false; - } - let result = false; - if (other === Number.POSITIVE_INFINITY && this.sample === Number.POSITIVE_INFINITY) { - result = true; - } else if (other === Number.NEGATIVE_INFINITY && this.sample === Number.NEGATIVE_INFINITY) { - result = true; - } else { - result = Math.abs(this.sample - other) < 10 ** -this.precision / 2; - } - return this.inverse ? !result : result; - } - toString() { - return `Number${this.inverse ? "Not" : ""}CloseTo`; - } - getExpectedType() { - return "number"; - } - toAsymmetricMatcher() { - return [ - this.toString(), - this.sample, - `(${pluralize("digit", this.precision)})` - ].join(" "); - } -} -const JestAsymmetricMatchers = (chai, utils) => { - utils.addMethod(chai.expect, "anything", () => new Anything()); - utils.addMethod(chai.expect, "any", (expected) => new Any(expected)); - utils.addMethod( - chai.expect, - "stringContaining", - (expected) => new StringContaining(expected) - ); - utils.addMethod( - chai.expect, - "objectContaining", - (expected) => new ObjectContaining(expected) - ); - utils.addMethod( - chai.expect, - "arrayContaining", - (expected) => new ArrayContaining(expected) - ); - utils.addMethod( - chai.expect, - "stringMatching", - (expected) => new StringMatching(expected) - ); - utils.addMethod( - chai.expect, - "closeTo", - (expected, precision) => new CloseTo(expected, precision) - ); - chai.expect.not = { - stringContaining: (expected) => new StringContaining(expected, true), - objectContaining: (expected) => new ObjectContaining(expected, true), - arrayContaining: (expected) => new ArrayContaining(expected, true), - stringMatching: (expected) => new StringMatching(expected, true), - closeTo: (expected, precision) => new CloseTo(expected, precision, true) - }; -}; - -function recordAsyncExpect(test, promise) { - if (test && promise instanceof Promise) { - promise = promise.finally(() => { - const index = test.promises.indexOf(promise); - if (index !== -1) { - test.promises.splice(index, 1); - } - }); - if (!test.promises) { - test.promises = []; - } - test.promises.push(promise); - } - return promise; -} -function wrapSoft(utils, fn) { - return function(...args) { - var _a; - if (!utils.flag(this, "soft")) { - return fn.apply(this, args); - } - const test = utils.flag(this, "vitest-test"); - if (!test) { - throw new Error("expect.soft() can only be used inside a test"); - } - try { - return fn.apply(this, args); - } catch (err) { - test.result || (test.result = { state: "fail" }); - test.result.state = "fail"; - (_a = test.result).errors || (_a.errors = []); - test.result.errors.push(processError(err)); - } - }; -} - -const JestChaiExpect = (chai, utils) => { - const { AssertionError } = chai; - const customTesters = getCustomEqualityTesters(); - function def(name, fn) { - const addMethod = (n) => { - const softWrapper = wrapSoft(utils, fn); - utils.addMethod(chai.Assertion.prototype, n, softWrapper); - utils.addMethod( - globalThis[JEST_MATCHERS_OBJECT].matchers, - n, - softWrapper - ); - }; - if (Array.isArray(name)) { - name.forEach((n) => addMethod(n)); - } else { - addMethod(name); - } - } - ["throw", "throws", "Throw"].forEach((m) => { - utils.overwriteMethod(chai.Assertion.prototype, m, (_super) => { - return function(...args) { - const promise = utils.flag(this, "promise"); - const object = utils.flag(this, "object"); - const isNot = utils.flag(this, "negate"); - if (promise === "rejects") { - utils.flag(this, "object", () => { - throw object; - }); - } else if (promise === "resolves" && typeof object !== "function") { - if (!isNot) { - const message = utils.flag(this, "message") || "expected promise to throw an error, but it didn't"; - const error = { - showDiff: false - }; - throw new AssertionError(message, error, utils.flag(this, "ssfi")); - } else { - return; - } - } - _super.apply(this, args); - }; - }); - }); - def("withTest", function(test) { - utils.flag(this, "vitest-test", test); - return this; - }); - def("toEqual", function(expected) { - const actual = utils.flag(this, "object"); - const equal = equals(actual, expected, [ - ...customTesters, - iterableEquality - ]); - return this.assert( - equal, - "expected #{this} to deeply equal #{exp}", - "expected #{this} to not deeply equal #{exp}", - expected, - actual - ); - }); - def("toStrictEqual", function(expected) { - const obj = utils.flag(this, "object"); - const equal = equals( - obj, - expected, - [ - ...customTesters, - iterableEquality, - typeEquality, - sparseArrayEquality, - arrayBufferEquality - ], - true - ); - return this.assert( - equal, - "expected #{this} to strictly equal #{exp}", - "expected #{this} to not strictly equal #{exp}", - expected, - obj - ); - }); - def("toBe", function(expected) { - const actual = this._obj; - const pass = Object.is(actual, expected); - let deepEqualityName = ""; - if (!pass) { - const toStrictEqualPass = equals( - actual, - expected, - [ - ...customTesters, - iterableEquality, - typeEquality, - sparseArrayEquality, - arrayBufferEquality - ], - true - ); - if (toStrictEqualPass) { - deepEqualityName = "toStrictEqual"; - } else { - const toEqualPass = equals(actual, expected, [ - ...customTesters, - iterableEquality - ]); - if (toEqualPass) { - deepEqualityName = "toEqual"; - } - } - } - return this.assert( - pass, - generateToBeMessage(deepEqualityName), - "expected #{this} not to be #{exp} // Object.is equality", - expected, - actual - ); - }); - def("toMatchObject", function(expected) { - const actual = this._obj; - const pass = equals(actual, expected, [ - ...customTesters, - iterableEquality, - subsetEquality - ]); - const isNot = utils.flag(this, "negate"); - const { subset: actualSubset, stripped } = getObjectSubset( - actual, - expected - ); - if (pass && isNot || !pass && !isNot) { - const msg = utils.getMessage(this, [ - pass, - "expected #{this} to match object #{exp}", - "expected #{this} to not match object #{exp}", - expected, - actualSubset, - false - ]); - const message = stripped === 0 ? msg : `${msg} -(${stripped} matching ${stripped === 1 ? "property" : "properties"} omitted from actual)`; - throw new AssertionError(message, { - showDiff: true, - expected, - actual: actualSubset - }); - } - }); - def("toMatch", function(expected) { - const actual = this._obj; - if (typeof actual !== "string") { - throw new TypeError( - `.toMatch() expects to receive a string, but got ${typeof actual}` - ); - } - return this.assert( - typeof expected === "string" ? actual.includes(expected) : actual.match(expected), - `expected #{this} to match #{exp}`, - `expected #{this} not to match #{exp}`, - expected, - actual - ); - }); - def("toContain", function(item) { - const actual = this._obj; - if (typeof Node !== "undefined" && actual instanceof Node) { - if (!(item instanceof Node)) { - throw new TypeError( - `toContain() expected a DOM node as the argument, but got ${typeof item}` - ); - } - return this.assert( - actual.contains(item), - "expected #{this} to contain element #{exp}", - "expected #{this} not to contain element #{exp}", - item, - actual - ); - } - if (typeof DOMTokenList !== "undefined" && actual instanceof DOMTokenList) { - assertTypes(item, "class name", ["string"]); - const isNot = utils.flag(this, "negate"); - const expectedClassList = isNot ? actual.value.replace(item, "").trim() : `${actual.value} ${item}`; - return this.assert( - actual.contains(item), - `expected "${actual.value}" to contain "${item}"`, - `expected "${actual.value}" not to contain "${item}"`, - expectedClassList, - actual.value - ); - } - if (typeof actual === "string" && typeof item === "string") { - return this.assert( - actual.includes(item), - `expected #{this} to contain #{exp}`, - `expected #{this} not to contain #{exp}`, - item, - actual - ); - } - if (actual != null && typeof actual !== "string") { - utils.flag(this, "object", Array.from(actual)); - } - return this.contain(item); - }); - def("toContainEqual", function(expected) { - const obj = utils.flag(this, "object"); - const index = Array.from(obj).findIndex((item) => { - return equals(item, expected, customTesters); - }); - this.assert( - index !== -1, - "expected #{this} to deep equally contain #{exp}", - "expected #{this} to not deep equally contain #{exp}", - expected - ); - }); - def("toBeTruthy", function() { - const obj = utils.flag(this, "object"); - this.assert( - Boolean(obj), - "expected #{this} to be truthy", - "expected #{this} to not be truthy", - obj, - false - ); - }); - def("toBeFalsy", function() { - const obj = utils.flag(this, "object"); - this.assert( - !obj, - "expected #{this} to be falsy", - "expected #{this} to not be falsy", - obj, - false - ); - }); - def("toBeGreaterThan", function(expected) { - const actual = this._obj; - assertTypes(actual, "actual", ["number", "bigint"]); - assertTypes(expected, "expected", ["number", "bigint"]); - return this.assert( - actual > expected, - `expected ${actual} to be greater than ${expected}`, - `expected ${actual} to be not greater than ${expected}`, - actual, - expected, - false - ); - }); - def("toBeGreaterThanOrEqual", function(expected) { - const actual = this._obj; - assertTypes(actual, "actual", ["number", "bigint"]); - assertTypes(expected, "expected", ["number", "bigint"]); - return this.assert( - actual >= expected, - `expected ${actual} to be greater than or equal to ${expected}`, - `expected ${actual} to be not greater than or equal to ${expected}`, - actual, - expected, - false - ); - }); - def("toBeLessThan", function(expected) { - const actual = this._obj; - assertTypes(actual, "actual", ["number", "bigint"]); - assertTypes(expected, "expected", ["number", "bigint"]); - return this.assert( - actual < expected, - `expected ${actual} to be less than ${expected}`, - `expected ${actual} to be not less than ${expected}`, - actual, - expected, - false - ); - }); - def("toBeLessThanOrEqual", function(expected) { - const actual = this._obj; - assertTypes(actual, "actual", ["number", "bigint"]); - assertTypes(expected, "expected", ["number", "bigint"]); - return this.assert( - actual <= expected, - `expected ${actual} to be less than or equal to ${expected}`, - `expected ${actual} to be not less than or equal to ${expected}`, - actual, - expected, - false - ); - }); - def("toBeNaN", function() { - return this.be.NaN; - }); - def("toBeUndefined", function() { - return this.be.undefined; - }); - def("toBeNull", function() { - return this.be.null; - }); - def("toBeDefined", function() { - const negate = utils.flag(this, "negate"); - utils.flag(this, "negate", false); - if (negate) { - return this.be.undefined; - } - return this.not.be.undefined; - }); - def( - "toBeTypeOf", - function(expected) { - const actual = typeof this._obj; - const equal = expected === actual; - return this.assert( - equal, - "expected #{this} to be type of #{exp}", - "expected #{this} not to be type of #{exp}", - expected, - actual - ); - } - ); - def("toBeInstanceOf", function(obj) { - return this.instanceOf(obj); - }); - def("toHaveLength", function(length) { - return this.have.length(length); - }); - def( - "toHaveProperty", - function(...args) { - if (Array.isArray(args[0])) { - args[0] = args[0].map((key) => String(key).replace(/([.[\]])/g, "\\$1")).join("."); - } - const actual = this._obj; - const [propertyName, expected] = args; - const getValue = () => { - const hasOwn = Object.prototype.hasOwnProperty.call( - actual, - propertyName - ); - if (hasOwn) { - return { value: actual[propertyName], exists: true }; - } - return utils.getPathInfo(actual, propertyName); - }; - const { value, exists } = getValue(); - const pass = exists && (args.length === 1 || equals(expected, value, customTesters)); - const valueString = args.length === 1 ? "" : ` with value ${utils.objDisplay(expected)}`; - return this.assert( - pass, - `expected #{this} to have property "${propertyName}"${valueString}`, - `expected #{this} to not have property "${propertyName}"${valueString}`, - expected, - exists ? value : void 0 - ); - } - ); - def("toBeCloseTo", function(received, precision = 2) { - const expected = this._obj; - let pass = false; - let expectedDiff = 0; - let receivedDiff = 0; - if (received === Number.POSITIVE_INFINITY && expected === Number.POSITIVE_INFINITY) { - pass = true; - } else if (received === Number.NEGATIVE_INFINITY && expected === Number.NEGATIVE_INFINITY) { - pass = true; - } else { - expectedDiff = 10 ** -precision / 2; - receivedDiff = Math.abs(expected - received); - pass = receivedDiff < expectedDiff; - } - return this.assert( - pass, - `expected #{this} to be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff}`, - `expected #{this} to not be close to #{exp}, received difference is ${receivedDiff}, but expected ${expectedDiff}`, - received, - expected, - false - ); - }); - const assertIsMock = (assertion) => { - if (!isMockFunction(assertion._obj)) { - throw new TypeError( - `${utils.inspect(assertion._obj)} is not a spy or a call to a spy!` - ); - } - }; - const getSpy = (assertion) => { - assertIsMock(assertion); - return assertion._obj; - }; - const ordinalOf = (i) => { - const j = i % 10; - const k = i % 100; - if (j === 1 && k !== 11) { - return `${i}st`; - } - if (j === 2 && k !== 12) { - return `${i}nd`; - } - if (j === 3 && k !== 13) { - return `${i}rd`; - } - return `${i}th`; - }; - const formatCalls = (spy, msg, showActualCall) => { - if (spy.mock.calls) { - msg += c.gray( - ` - -Received: - -${spy.mock.calls.map((callArg, i) => { - let methodCall = c.bold( - ` ${ordinalOf(i + 1)} ${spy.getMockName()} call: - -` - ); - if (showActualCall) { - methodCall += diff(showActualCall, callArg, { - omitAnnotationLines: true - }); - } else { - methodCall += stringify(callArg).split("\n").map((line) => ` ${line}`).join("\n"); - } - methodCall += "\n"; - return methodCall; - }).join("\n")}` - ); - } - msg += c.gray( - ` - -Number of calls: ${c.bold(spy.mock.calls.length)} -` - ); - return msg; - }; - const formatReturns = (spy, results, msg, showActualReturn) => { - msg += c.gray( - ` - -Received: - -${results.map((callReturn, i) => { - let methodCall = c.bold( - ` ${ordinalOf(i + 1)} ${spy.getMockName()} call return: - -` - ); - if (showActualReturn) { - methodCall += diff(showActualReturn, callReturn.value, { - omitAnnotationLines: true - }); - } else { - methodCall += stringify(callReturn).split("\n").map((line) => ` ${line}`).join("\n"); - } - methodCall += "\n"; - return methodCall; - }).join("\n")}` - ); - msg += c.gray( - ` - -Number of calls: ${c.bold(spy.mock.calls.length)} -` - ); - return msg; - }; - def(["toHaveBeenCalledTimes", "toBeCalledTimes"], function(number) { - const spy = getSpy(this); - const spyName = spy.getMockName(); - const callCount = spy.mock.calls.length; - return this.assert( - callCount === number, - `expected "${spyName}" to be called #{exp} times, but got ${callCount} times`, - `expected "${spyName}" to not be called #{exp} times`, - number, - callCount, - false - ); - }); - def("toHaveBeenCalledOnce", function() { - const spy = getSpy(this); - const spyName = spy.getMockName(); - const callCount = spy.mock.calls.length; - return this.assert( - callCount === 1, - `expected "${spyName}" to be called once, but got ${callCount} times`, - `expected "${spyName}" to not be called once`, - 1, - callCount, - false - ); - }); - def(["toHaveBeenCalled", "toBeCalled"], function() { - const spy = getSpy(this); - const spyName = spy.getMockName(); - const callCount = spy.mock.calls.length; - const called = callCount > 0; - const isNot = utils.flag(this, "negate"); - let msg = utils.getMessage(this, [ - called, - `expected "${spyName}" to be called at least once`, - `expected "${spyName}" to not be called at all, but actually been called ${callCount} times`, - true, - called - ]); - if (called && isNot) { - msg = formatCalls(spy, msg); - } - if (called && isNot || !called && !isNot) { - throw new AssertionError(msg); - } - }); - def(["toHaveBeenCalledWith", "toBeCalledWith"], function(...args) { - const spy = getSpy(this); - const spyName = spy.getMockName(); - const pass = spy.mock.calls.some( - (callArg) => equals(callArg, args, [...customTesters, iterableEquality]) - ); - const isNot = utils.flag(this, "negate"); - const msg = utils.getMessage(this, [ - pass, - `expected "${spyName}" to be called with arguments: #{exp}`, - `expected "${spyName}" to not be called with arguments: #{exp}`, - args - ]); - if (pass && isNot || !pass && !isNot) { - throw new AssertionError(formatCalls(spy, msg, args)); - } - }); - def( - ["toHaveBeenNthCalledWith", "nthCalledWith"], - function(times, ...args) { - const spy = getSpy(this); - const spyName = spy.getMockName(); - const nthCall = spy.mock.calls[times - 1]; - const callCount = spy.mock.calls.length; - const isCalled = times <= callCount; - this.assert( - equals(nthCall, args, [...customTesters, iterableEquality]), - `expected ${ordinalOf( - times - )} "${spyName}" call to have been called with #{exp}${isCalled ? `` : `, but called only ${callCount} times`}`, - `expected ${ordinalOf( - times - )} "${spyName}" call to not have been called with #{exp}`, - args, - nthCall, - isCalled - ); - } - ); - def( - ["toHaveBeenLastCalledWith", "lastCalledWith"], - function(...args) { - const spy = getSpy(this); - const spyName = spy.getMockName(); - const lastCall = spy.mock.calls[spy.mock.calls.length - 1]; - this.assert( - equals(lastCall, args, [...customTesters, iterableEquality]), - `expected last "${spyName}" call to have been called with #{exp}`, - `expected last "${spyName}" call to not have been called with #{exp}`, - args, - lastCall - ); - } - ); - def( - ["toThrow", "toThrowError"], - function(expected) { - if (typeof expected === "string" || typeof expected === "undefined" || expected instanceof RegExp) { - return this.throws(expected); - } - const obj = this._obj; - const promise = utils.flag(this, "promise"); - const isNot = utils.flag(this, "negate"); - let thrown = null; - if (promise === "rejects") { - thrown = obj; - } else if (promise === "resolves" && typeof obj !== "function") { - if (!isNot) { - const message = utils.flag(this, "message") || "expected promise to throw an error, but it didn't"; - const error = { - showDiff: false - }; - throw new AssertionError(message, error, utils.flag(this, "ssfi")); - } else { - return; - } - } else { - let isThrow = false; - try { - obj(); - } catch (err) { - isThrow = true; - thrown = err; - } - if (!isThrow && !isNot) { - const message = utils.flag(this, "message") || "expected function to throw an error, but it didn't"; - const error = { - showDiff: false - }; - throw new AssertionError(message, error, utils.flag(this, "ssfi")); - } - } - if (typeof expected === "function") { - const name = expected.name || expected.prototype.constructor.name; - return this.assert( - thrown && thrown instanceof expected, - `expected error to be instance of ${name}`, - `expected error not to be instance of ${name}`, - expected, - thrown - ); - } - if (expected instanceof Error) { - return this.assert( - thrown && expected.message === thrown.message, - `expected error to have message: ${expected.message}`, - `expected error not to have message: ${expected.message}`, - expected.message, - thrown && thrown.message - ); - } - if (typeof expected === "object" && "asymmetricMatch" in expected && typeof expected.asymmetricMatch === "function") { - const matcher = expected; - return this.assert( - thrown && matcher.asymmetricMatch(thrown), - "expected error to match asymmetric matcher", - "expected error not to match asymmetric matcher", - matcher, - thrown - ); - } - throw new Error( - `"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof expected}"` - ); - } - ); - [ - { - name: "toHaveResolved", - condition: (spy) => spy.mock.settledResults.length > 0 && spy.mock.settledResults.some(({ type }) => type === "fulfilled"), - action: "resolved" - }, - { - name: ["toHaveReturned", "toReturn"], - condition: (spy) => spy.mock.calls.length > 0 && spy.mock.results.some(({ type }) => type !== "throw"), - action: "called" - } - ].forEach(({ name, condition, action }) => { - def(name, function() { - const spy = getSpy(this); - const spyName = spy.getMockName(); - const pass = condition(spy); - this.assert( - pass, - `expected "${spyName}" to be successfully ${action} at least once`, - `expected "${spyName}" to not be successfully ${action}`, - pass, - !pass, - false - ); - }); - }); - [ - { - name: "toHaveResolvedTimes", - condition: (spy, times) => spy.mock.settledResults.reduce( - (s, { type }) => type === "fulfilled" ? ++s : s, - 0 - ) === times, - action: "resolved" - }, - { - name: ["toHaveReturnedTimes", "toReturnTimes"], - condition: (spy, times) => spy.mock.results.reduce( - (s, { type }) => type === "throw" ? s : ++s, - 0 - ) === times, - action: "called" - } - ].forEach(({ name, condition, action }) => { - def(name, function(times) { - const spy = getSpy(this); - const spyName = spy.getMockName(); - const pass = condition(spy, times); - this.assert( - pass, - `expected "${spyName}" to be successfully ${action} ${times} times`, - `expected "${spyName}" to not be successfully ${action} ${times} times`, - `expected resolved times: ${times}`, - `received resolved times: ${pass}`, - false - ); - }); - }); - [ - { - name: "toHaveResolvedWith", - condition: (spy, value) => spy.mock.settledResults.some( - ({ type, value: result }) => type === "fulfilled" && equals(value, result) - ), - action: "resolve" - }, - { - name: ["toHaveReturnedWith", "toReturnWith"], - condition: (spy, value) => spy.mock.results.some( - ({ type, value: result }) => type === "return" && equals(value, result) - ), - action: "return" - } - ].forEach(({ name, condition, action }) => { - def(name, function(value) { - const spy = getSpy(this); - const pass = condition(spy, value); - const isNot = utils.flag(this, "negate"); - if (pass && isNot || !pass && !isNot) { - const spyName = spy.getMockName(); - const msg = utils.getMessage(this, [ - pass, - `expected "${spyName}" to ${action} with: #{exp} at least once`, - `expected "${spyName}" to not ${action} with: #{exp}`, - value - ]); - const results = action === "return" ? spy.mock.results : spy.mock.settledResults; - throw new AssertionError(formatReturns(spy, results, msg, value)); - } - }); - }); - [ - { - name: "toHaveLastResolvedWith", - condition: (spy, value) => { - const result = spy.mock.settledResults[spy.mock.settledResults.length - 1]; - return result && result.type === "fulfilled" && equals(result.value, value); - }, - action: "resolve" - }, - { - name: ["toHaveLastReturnedWith", "lastReturnedWith"], - condition: (spy, value) => { - const result = spy.mock.results[spy.mock.results.length - 1]; - return result && result.type === "return" && equals(result.value, value); - }, - action: "return" - } - ].forEach(({ name, condition, action }) => { - def(name, function(value) { - const spy = getSpy(this); - const results = action === "return" ? spy.mock.results : spy.mock.settledResults; - const result = results[results.length - 1]; - const spyName = spy.getMockName(); - this.assert( - condition(spy, value), - `expected last "${spyName}" call to ${action} #{exp}`, - `expected last "${spyName}" call to not ${action} #{exp}`, - value, - result == null ? void 0 : result.value - ); - }); - }); - [ - { - name: "toHaveNthResolvedWith", - condition: (spy, index, value) => { - const result = spy.mock.settledResults[index - 1]; - return result && result.type === "fulfilled" && equals(result.value, value); - }, - action: "resolve" - }, - { - name: ["toHaveNthReturnedWith", "nthReturnedWith"], - condition: (spy, index, value) => { - const result = spy.mock.results[index - 1]; - return result && result.type === "return" && equals(result.value, value); - }, - action: "return" - } - ].forEach(({ name, condition, action }) => { - def(name, function(nthCall, value) { - const spy = getSpy(this); - const spyName = spy.getMockName(); - const results = action === "return" ? spy.mock.results : spy.mock.settledResults; - const result = results[nthCall - 1]; - const ordinalCall = `${ordinalOf(nthCall)} call`; - this.assert( - condition(spy, nthCall, value), - `expected ${ordinalCall} "${spyName}" call to ${action} #{exp}`, - `expected ${ordinalCall} "${spyName}" call to not ${action} #{exp}`, - value, - result == null ? void 0 : result.value - ); - }); - }); - def("toSatisfy", function(matcher, message) { - return this.be.satisfy(matcher, message); - }); - def("withContext", function(context) { - for (const key in context) { - utils.flag(this, key, context[key]); - } - return this; - }); - utils.addProperty( - chai.Assertion.prototype, - "resolves", - function __VITEST_RESOLVES__() { - const error = new Error("resolves"); - utils.flag(this, "promise", "resolves"); - utils.flag(this, "error", error); - const test = utils.flag(this, "vitest-test"); - const obj = utils.flag(this, "object"); - if (utils.flag(this, "poll")) { - throw new SyntaxError( - `expect.poll() is not supported in combination with .resolves` - ); - } - if (typeof (obj == null ? void 0 : obj.then) !== "function") { - throw new TypeError( - `You must provide a Promise to expect() when using .resolves, not '${typeof obj}'.` - ); - } - const proxy = new Proxy(this, { - get: (target, key, receiver) => { - const result = Reflect.get(target, key, receiver); - if (typeof result !== "function") { - return result instanceof chai.Assertion ? proxy : result; - } - return async (...args) => { - const promise = obj.then( - (value) => { - utils.flag(this, "object", value); - return result.call(this, ...args); - }, - (err) => { - const _error = new AssertionError( - `promise rejected "${utils.inspect( - err - )}" instead of resolving`, - { showDiff: false } - ); - _error.cause = err; - _error.stack = error.stack.replace( - error.message, - _error.message - ); - throw _error; - } - ); - return recordAsyncExpect(test, promise); - }; - } - }); - return proxy; - } - ); - utils.addProperty( - chai.Assertion.prototype, - "rejects", - function __VITEST_REJECTS__() { - const error = new Error("rejects"); - utils.flag(this, "promise", "rejects"); - utils.flag(this, "error", error); - const test = utils.flag(this, "vitest-test"); - const obj = utils.flag(this, "object"); - const wrapper = typeof obj === "function" ? obj() : obj; - if (utils.flag(this, "poll")) { - throw new SyntaxError( - `expect.poll() is not supported in combination with .rejects` - ); - } - if (typeof (wrapper == null ? void 0 : wrapper.then) !== "function") { - throw new TypeError( - `You must provide a Promise to expect() when using .rejects, not '${typeof wrapper}'.` - ); - } - const proxy = new Proxy(this, { - get: (target, key, receiver) => { - const result = Reflect.get(target, key, receiver); - if (typeof result !== "function") { - return result instanceof chai.Assertion ? proxy : result; - } - return async (...args) => { - const promise = wrapper.then( - (value) => { - const _error = new AssertionError( - `promise resolved "${utils.inspect( - value - )}" instead of rejecting`, - { - showDiff: true, - expected: new Error("rejected promise"), - actual: value - } - ); - _error.stack = error.stack.replace( - error.message, - _error.message - ); - throw _error; - }, - (err) => { - utils.flag(this, "object", err); - return result.call(this, ...args); - } - ); - return recordAsyncExpect(test, promise); - }; - } - }); - return proxy; - } - ); -}; - -function getMatcherState(assertion, expect) { - const obj = assertion._obj; - const isNot = util.flag(assertion, "negate"); - const promise = util.flag(assertion, "promise") || ""; - const jestUtils = { - ...getMatcherUtils(), - diff, - stringify, - iterableEquality, - subsetEquality - }; - const matcherState = { - ...getState(expect), - customTesters: getCustomEqualityTesters(), - isNot, - utils: jestUtils, - promise, - equals, - // needed for built-in jest-snapshots, but we don't use it - suppressedErrors: [], - soft: util.flag(assertion, "soft"), - poll: util.flag(assertion, "poll") - }; - return { - state: matcherState, - isNot, - obj - }; -} -class JestExtendError extends Error { - constructor(message, actual, expected) { - super(message); - this.actual = actual; - this.expected = expected; - } -} -function JestExtendPlugin(c, expect, matchers) { - return (_, utils) => { - Object.entries(matchers).forEach( - ([expectAssertionName, expectAssertion]) => { - function expectWrapper(...args) { - const { state, isNot, obj } = getMatcherState(this, expect); - const result = expectAssertion.call(state, obj, ...args); - if (result && typeof result === "object" && result instanceof Promise) { - return result.then(({ pass: pass2, message: message2, actual: actual2, expected: expected2 }) => { - if (pass2 && isNot || !pass2 && !isNot) { - throw new JestExtendError(message2(), actual2, expected2); - } - }); - } - const { pass, message, actual, expected } = result; - if (pass && isNot || !pass && !isNot) { - throw new JestExtendError(message(), actual, expected); - } - } - const softWrapper = wrapSoft(utils, expectWrapper); - utils.addMethod( - globalThis[JEST_MATCHERS_OBJECT].matchers, - expectAssertionName, - softWrapper - ); - utils.addMethod( - c.Assertion.prototype, - expectAssertionName, - softWrapper - ); - class CustomMatcher extends AsymmetricMatcher { - constructor(inverse = false, ...sample) { - super(sample, inverse); - } - asymmetricMatch(other) { - const { pass } = expectAssertion.call( - this.getMatcherContext(expect), - other, - ...this.sample - ); - return this.inverse ? !pass : pass; - } - toString() { - return `${this.inverse ? "not." : ""}${expectAssertionName}`; - } - getExpectedType() { - return "any"; - } - toAsymmetricMatcher() { - return `${this.toString()}<${this.sample.map(String).join(", ")}>`; - } - } - const customMatcher = (...sample) => new CustomMatcher(false, ...sample); - Object.defineProperty(expect, expectAssertionName, { - configurable: true, - enumerable: true, - value: customMatcher, - writable: true - }); - Object.defineProperty(expect.not, expectAssertionName, { - configurable: true, - enumerable: true, - value: (...sample) => new CustomMatcher(true, ...sample), - writable: true - }); - Object.defineProperty( - globalThis[ASYMMETRIC_MATCHERS_OBJECT], - expectAssertionName, - { - configurable: true, - enumerable: true, - value: customMatcher, - writable: true - } - ); - } - ); - }; -} -const JestExtend = (chai, utils) => { - utils.addMethod( - chai.expect, - "extend", - (expect, expects) => { - use(JestExtendPlugin(chai, expect, expects)); - } - ); -}; - -export { ASYMMETRIC_MATCHERS_OBJECT, Any, Anything, ArrayContaining, AsymmetricMatcher, GLOBAL_EXPECT, JEST_MATCHERS_OBJECT, JestAsymmetricMatchers, JestChaiExpect, JestExtend, MATCHERS_OBJECT, ObjectContaining, StringContaining, StringMatching, addCustomEqualityTesters, arrayBufferEquality, equals, fnNameFor, generateToBeMessage, getObjectKeys, getObjectSubset, getState, hasAsymmetric, hasProperty, isA, isAsymmetric, isImmutableUnorderedKeyed, isImmutableUnorderedSet, iterableEquality, pluralize, setState, sparseArrayEquality, subsetEquality, typeEquality }; diff --git a/node_modules/@vitest/pretty-format/dist/index.d.ts b/node_modules/@vitest/pretty-format/dist/index.d.ts deleted file mode 100644 index dabef1a5..00000000 --- a/node_modules/@vitest/pretty-format/dist/index.d.ts +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -interface Colors { - comment: { - close: string; - open: string; - }; - content: { - close: string; - open: string; - }; - prop: { - close: string; - open: string; - }; - tag: { - close: string; - open: string; - }; - value: { - close: string; - open: string; - }; -} -type Indent = (arg0: string) => string; -type Refs = Array; -type Print = (arg0: unknown) => string; -type Theme = Required<{ - comment?: string; - content?: string; - prop?: string; - tag?: string; - value?: string; -}>; -type CompareKeys = ((a: string, b: string) => number) | null | undefined; -type RequiredOptions = Required; -interface Options extends Omit { - compareKeys: CompareKeys; - theme: Theme; -} -interface PrettyFormatOptions { - callToJSON?: boolean; - escapeRegex?: boolean; - escapeString?: boolean; - highlight?: boolean; - indent?: number; - maxDepth?: number; - maxWidth?: number; - min?: boolean; - printBasicPrototype?: boolean; - printFunctionName?: boolean; - compareKeys?: CompareKeys; - plugins?: Plugins; -} -type OptionsReceived = PrettyFormatOptions; -interface Config { - callToJSON: boolean; - compareKeys: CompareKeys; - colors: Colors; - escapeRegex: boolean; - escapeString: boolean; - indent: string; - maxDepth: number; - maxWidth: number; - min: boolean; - plugins: Plugins; - printBasicPrototype: boolean; - printFunctionName: boolean; - spacingInner: string; - spacingOuter: string; -} -type Printer = (val: unknown, config: Config, indentation: string, depth: number, refs: Refs, hasCalledToJSON?: boolean) => string; -type Test = (arg0: any) => boolean; -interface NewPlugin { - serialize: (val: any, config: Config, indentation: string, depth: number, refs: Refs, printer: Printer) => string; - test: Test; -} -interface PluginOptions { - edgeSpacing: string; - min: boolean; - spacing: string; -} -interface OldPlugin { - print: (val: unknown, print: Print, indent: Indent, options: PluginOptions, colors: Colors) => string; - test: Test; -} -type Plugin = NewPlugin | OldPlugin; -type Plugins = Array; - -/** - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -declare const DEFAULT_OPTIONS: Options; -/** - * Returns a presentation string of your `val` object - * @param val any potential JavaScript object - * @param options Custom settings - */ -declare function format(val: unknown, options?: OptionsReceived): string; -declare const plugins: { - AsymmetricMatcher: NewPlugin; - DOMCollection: NewPlugin; - DOMElement: NewPlugin; - Immutable: NewPlugin; - ReactElement: NewPlugin; - ReactTestComponent: NewPlugin; -}; - -export { type Colors, type CompareKeys, type Config, DEFAULT_OPTIONS, type NewPlugin, type OldPlugin, type Options, type OptionsReceived, type Plugin, type Plugins, type PrettyFormatOptions, type Printer, type Refs, type Theme, format, plugins }; diff --git a/node_modules/@vitest/pretty-format/dist/index.js b/node_modules/@vitest/pretty-format/dist/index.js deleted file mode 100644 index 9b7d5439..00000000 --- a/node_modules/@vitest/pretty-format/dist/index.js +++ /dev/null @@ -1,1170 +0,0 @@ -import styles from 'tinyrainbow'; - -function getKeysOfEnumerableProperties(object, compareKeys) { - const rawKeys = Object.keys(object); - const keys = compareKeys === null ? rawKeys : rawKeys.sort(compareKeys); - if (Object.getOwnPropertySymbols) { - for (const symbol of Object.getOwnPropertySymbols(object)) { - if (Object.getOwnPropertyDescriptor(object, symbol).enumerable) { - keys.push(symbol); - } - } - } - return keys; -} -function printIteratorEntries(iterator, config, indentation, depth, refs, printer, separator = ": ") { - let result = ""; - let width = 0; - let current = iterator.next(); - if (!current.done) { - result += config.spacingOuter; - const indentationNext = indentation + config.indent; - while (!current.done) { - result += indentationNext; - if (width++ === config.maxWidth) { - result += "\u2026"; - break; - } - const name = printer( - current.value[0], - config, - indentationNext, - depth, - refs - ); - const value = printer( - current.value[1], - config, - indentationNext, - depth, - refs - ); - result += name + separator + value; - current = iterator.next(); - if (!current.done) { - result += `,${config.spacingInner}`; - } else if (!config.min) { - result += ","; - } - } - result += config.spacingOuter + indentation; - } - return result; -} -function printIteratorValues(iterator, config, indentation, depth, refs, printer) { - let result = ""; - let width = 0; - let current = iterator.next(); - if (!current.done) { - result += config.spacingOuter; - const indentationNext = indentation + config.indent; - while (!current.done) { - result += indentationNext; - if (width++ === config.maxWidth) { - result += "\u2026"; - break; - } - result += printer(current.value, config, indentationNext, depth, refs); - current = iterator.next(); - if (!current.done) { - result += `,${config.spacingInner}`; - } else if (!config.min) { - result += ","; - } - } - result += config.spacingOuter + indentation; - } - return result; -} -function printListItems(list, config, indentation, depth, refs, printer) { - let result = ""; - list = list instanceof ArrayBuffer ? new DataView(list) : list; - const isDataView = (l) => l instanceof DataView; - const length = isDataView(list) ? list.byteLength : list.length; - if (length > 0) { - result += config.spacingOuter; - const indentationNext = indentation + config.indent; - for (let i = 0; i < length; i++) { - result += indentationNext; - if (i === config.maxWidth) { - result += "\u2026"; - break; - } - if (isDataView(list) || i in list) { - result += printer( - isDataView(list) ? list.getInt8(i) : list[i], - config, - indentationNext, - depth, - refs - ); - } - if (i < length - 1) { - result += `,${config.spacingInner}`; - } else if (!config.min) { - result += ","; - } - } - result += config.spacingOuter + indentation; - } - return result; -} -function printObjectProperties(val, config, indentation, depth, refs, printer) { - let result = ""; - const keys = getKeysOfEnumerableProperties(val, config.compareKeys); - if (keys.length > 0) { - result += config.spacingOuter; - const indentationNext = indentation + config.indent; - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - const name = printer(key, config, indentationNext, depth, refs); - const value = printer(val[key], config, indentationNext, depth, refs); - result += `${indentationNext + name}: ${value}`; - if (i < keys.length - 1) { - result += `,${config.spacingInner}`; - } else if (!config.min) { - result += ","; - } - } - result += config.spacingOuter + indentation; - } - return result; -} - -const asymmetricMatcher = typeof Symbol === "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621; -const SPACE$2 = " "; -const serialize$5 = (val, config, indentation, depth, refs, printer) => { - const stringedValue = val.toString(); - if (stringedValue === "ArrayContaining" || stringedValue === "ArrayNotContaining") { - if (++depth > config.maxDepth) { - return `[${stringedValue}]`; - } - return `${stringedValue + SPACE$2}[${printListItems( - val.sample, - config, - indentation, - depth, - refs, - printer - )}]`; - } - if (stringedValue === "ObjectContaining" || stringedValue === "ObjectNotContaining") { - if (++depth > config.maxDepth) { - return `[${stringedValue}]`; - } - return `${stringedValue + SPACE$2}{${printObjectProperties( - val.sample, - config, - indentation, - depth, - refs, - printer - )}}`; - } - if (stringedValue === "StringMatching" || stringedValue === "StringNotMatching") { - return stringedValue + SPACE$2 + printer(val.sample, config, indentation, depth, refs); - } - if (stringedValue === "StringContaining" || stringedValue === "StringNotContaining") { - return stringedValue + SPACE$2 + printer(val.sample, config, indentation, depth, refs); - } - if (typeof val.toAsymmetricMatcher !== "function") { - throw new TypeError( - `Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()` - ); - } - return val.toAsymmetricMatcher(); -}; -const test$5 = (val) => val && val.$$typeof === asymmetricMatcher; -const plugin$5 = { serialize: serialize$5, test: test$5 }; - -const SPACE$1 = " "; -const OBJECT_NAMES = /* @__PURE__ */ new Set(["DOMStringMap", "NamedNodeMap"]); -const ARRAY_REGEXP = /^(?:HTML\w*Collection|NodeList)$/; -function testName(name) { - return OBJECT_NAMES.has(name) || ARRAY_REGEXP.test(name); -} -const test$4 = (val) => val && val.constructor && !!val.constructor.name && testName(val.constructor.name); -function isNamedNodeMap(collection) { - return collection.constructor.name === "NamedNodeMap"; -} -const serialize$4 = (collection, config, indentation, depth, refs, printer) => { - const name = collection.constructor.name; - if (++depth > config.maxDepth) { - return `[${name}]`; - } - return (config.min ? "" : name + SPACE$1) + (OBJECT_NAMES.has(name) ? `{${printObjectProperties( - isNamedNodeMap(collection) ? [...collection].reduce( - (props, attribute) => { - props[attribute.name] = attribute.value; - return props; - }, - {} - ) : { ...collection }, - config, - indentation, - depth, - refs, - printer - )}}` : `[${printListItems( - [...collection], - config, - indentation, - depth, - refs, - printer - )}]`); -}; -const plugin$4 = { serialize: serialize$4, test: test$4 }; - -function escapeHTML(str) { - return str.replaceAll("<", "<").replaceAll(">", ">"); -} - -function printProps(keys, props, config, indentation, depth, refs, printer) { - const indentationNext = indentation + config.indent; - const colors = config.colors; - return keys.map((key) => { - const value = props[key]; - let printed = printer(value, config, indentationNext, depth, refs); - if (typeof value !== "string") { - if (printed.includes("\n")) { - printed = config.spacingOuter + indentationNext + printed + config.spacingOuter + indentation; - } - printed = `{${printed}}`; - } - return `${config.spacingInner + indentation + colors.prop.open + key + colors.prop.close}=${colors.value.open}${printed}${colors.value.close}`; - }).join(""); -} -function printChildren(children, config, indentation, depth, refs, printer) { - return children.map( - (child) => config.spacingOuter + indentation + (typeof child === "string" ? printText(child, config) : printer(child, config, indentation, depth, refs)) - ).join(""); -} -function printText(text, config) { - const contentColor = config.colors.content; - return contentColor.open + escapeHTML(text) + contentColor.close; -} -function printComment(comment, config) { - const commentColor = config.colors.comment; - return `${commentColor.open}${commentColor.close}`; -} -function printElement(type, printedProps, printedChildren, config, indentation) { - const tagColor = config.colors.tag; - return `${tagColor.open}<${type}${printedProps && tagColor.close + printedProps + config.spacingOuter + indentation + tagColor.open}${printedChildren ? `>${tagColor.close}${printedChildren}${config.spacingOuter}${indentation}${tagColor.open}${tagColor.close}`; -} -function printElementAsLeaf(type, config) { - const tagColor = config.colors.tag; - return `${tagColor.open}<${type}${tagColor.close} \u2026${tagColor.open} />${tagColor.close}`; -} - -const ELEMENT_NODE = 1; -const TEXT_NODE = 3; -const COMMENT_NODE = 8; -const FRAGMENT_NODE = 11; -const ELEMENT_REGEXP = /^(?:(?:HTML|SVG)\w*)?Element$/; -function testHasAttribute(val) { - try { - return typeof val.hasAttribute === "function" && val.hasAttribute("is"); - } catch { - return false; - } -} -function testNode(val) { - const constructorName = val.constructor.name; - const { nodeType, tagName } = val; - const isCustomElement = typeof tagName === "string" && tagName.includes("-") || testHasAttribute(val); - return nodeType === ELEMENT_NODE && (ELEMENT_REGEXP.test(constructorName) || isCustomElement) || nodeType === TEXT_NODE && constructorName === "Text" || nodeType === COMMENT_NODE && constructorName === "Comment" || nodeType === FRAGMENT_NODE && constructorName === "DocumentFragment"; -} -const test$3 = (val) => { - var _a; - return ((_a = val == null ? void 0 : val.constructor) == null ? void 0 : _a.name) && testNode(val); -}; -function nodeIsText(node) { - return node.nodeType === TEXT_NODE; -} -function nodeIsComment(node) { - return node.nodeType === COMMENT_NODE; -} -function nodeIsFragment(node) { - return node.nodeType === FRAGMENT_NODE; -} -const serialize$3 = (node, config, indentation, depth, refs, printer) => { - if (nodeIsText(node)) { - return printText(node.data, config); - } - if (nodeIsComment(node)) { - return printComment(node.data, config); - } - const type = nodeIsFragment(node) ? "DocumentFragment" : node.tagName.toLowerCase(); - if (++depth > config.maxDepth) { - return printElementAsLeaf(type, config); - } - return printElement( - type, - printProps( - nodeIsFragment(node) ? [] : Array.from(node.attributes, (attr) => attr.name).sort(), - nodeIsFragment(node) ? {} : [...node.attributes].reduce( - (props, attribute) => { - props[attribute.name] = attribute.value; - return props; - }, - {} - ), - config, - indentation + config.indent, - depth, - refs, - printer - ), - printChildren( - Array.prototype.slice.call(node.childNodes || node.children), - config, - indentation + config.indent, - depth, - refs, - printer - ), - config, - indentation - ); -}; -const plugin$3 = { serialize: serialize$3, test: test$3 }; - -const IS_ITERABLE_SENTINEL = "@@__IMMUTABLE_ITERABLE__@@"; -const IS_LIST_SENTINEL = "@@__IMMUTABLE_LIST__@@"; -const IS_KEYED_SENTINEL = "@@__IMMUTABLE_KEYED__@@"; -const IS_MAP_SENTINEL = "@@__IMMUTABLE_MAP__@@"; -const IS_ORDERED_SENTINEL = "@@__IMMUTABLE_ORDERED__@@"; -const IS_RECORD_SENTINEL = "@@__IMMUTABLE_RECORD__@@"; -const IS_SEQ_SENTINEL = "@@__IMMUTABLE_SEQ__@@"; -const IS_SET_SENTINEL = "@@__IMMUTABLE_SET__@@"; -const IS_STACK_SENTINEL = "@@__IMMUTABLE_STACK__@@"; -const getImmutableName = (name) => `Immutable.${name}`; -const printAsLeaf = (name) => `[${name}]`; -const SPACE = " "; -const LAZY = "\u2026"; -function printImmutableEntries(val, config, indentation, depth, refs, printer, type) { - return ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}{${printIteratorEntries( - val.entries(), - config, - indentation, - depth, - refs, - printer - )}}`; -} -function getRecordEntries(val) { - let i = 0; - return { - next() { - if (i < val._keys.length) { - const key = val._keys[i++]; - return { done: false, value: [key, val.get(key)] }; - } - return { done: true, value: void 0 }; - } - }; -} -function printImmutableRecord(val, config, indentation, depth, refs, printer) { - const name = getImmutableName(val._name || "Record"); - return ++depth > config.maxDepth ? printAsLeaf(name) : `${name + SPACE}{${printIteratorEntries( - getRecordEntries(val), - config, - indentation, - depth, - refs, - printer - )}}`; -} -function printImmutableSeq(val, config, indentation, depth, refs, printer) { - const name = getImmutableName("Seq"); - if (++depth > config.maxDepth) { - return printAsLeaf(name); - } - if (val[IS_KEYED_SENTINEL]) { - return `${name + SPACE}{${// from Immutable collection of entries or from ECMAScript object - val._iter || val._object ? printIteratorEntries( - val.entries(), - config, - indentation, - depth, - refs, - printer - ) : LAZY}}`; - } - return `${name + SPACE}[${val._iter || val._array || val._collection || val._iterable ? printIteratorValues( - val.values(), - config, - indentation, - depth, - refs, - printer - ) : LAZY}]`; -} -function printImmutableValues(val, config, indentation, depth, refs, printer, type) { - return ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}[${printIteratorValues( - val.values(), - config, - indentation, - depth, - refs, - printer - )}]`; -} -const serialize$2 = (val, config, indentation, depth, refs, printer) => { - if (val[IS_MAP_SENTINEL]) { - return printImmutableEntries( - val, - config, - indentation, - depth, - refs, - printer, - val[IS_ORDERED_SENTINEL] ? "OrderedMap" : "Map" - ); - } - if (val[IS_LIST_SENTINEL]) { - return printImmutableValues( - val, - config, - indentation, - depth, - refs, - printer, - "List" - ); - } - if (val[IS_SET_SENTINEL]) { - return printImmutableValues( - val, - config, - indentation, - depth, - refs, - printer, - val[IS_ORDERED_SENTINEL] ? "OrderedSet" : "Set" - ); - } - if (val[IS_STACK_SENTINEL]) { - return printImmutableValues( - val, - config, - indentation, - depth, - refs, - printer, - "Stack" - ); - } - if (val[IS_SEQ_SENTINEL]) { - return printImmutableSeq(val, config, indentation, depth, refs, printer); - } - return printImmutableRecord(val, config, indentation, depth, refs, printer); -}; -const test$2 = (val) => val && (val[IS_ITERABLE_SENTINEL] === true || val[IS_RECORD_SENTINEL] === true); -const plugin$2 = { serialize: serialize$2, test: test$2 }; - -var reactIs = {exports: {}}; - -var reactIs_production_min = {}; - -/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -var hasRequiredReactIs_production_min; - -function requireReactIs_production_min () { - if (hasRequiredReactIs_production_min) return reactIs_production_min; - hasRequiredReactIs_production_min = 1; -var b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen"),u;u=Symbol.for("react.module.reference"); - function v(a){if("object"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}reactIs_production_min.ContextConsumer=h;reactIs_production_min.ContextProvider=g;reactIs_production_min.Element=b;reactIs_production_min.ForwardRef=l;reactIs_production_min.Fragment=d;reactIs_production_min.Lazy=q;reactIs_production_min.Memo=p;reactIs_production_min.Portal=c;reactIs_production_min.Profiler=f;reactIs_production_min.StrictMode=e;reactIs_production_min.Suspense=m; - reactIs_production_min.SuspenseList=n;reactIs_production_min.isAsyncMode=function(){return !1};reactIs_production_min.isConcurrentMode=function(){return !1};reactIs_production_min.isContextConsumer=function(a){return v(a)===h};reactIs_production_min.isContextProvider=function(a){return v(a)===g};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b};reactIs_production_min.isForwardRef=function(a){return v(a)===l};reactIs_production_min.isFragment=function(a){return v(a)===d};reactIs_production_min.isLazy=function(a){return v(a)===q};reactIs_production_min.isMemo=function(a){return v(a)===p}; - reactIs_production_min.isPortal=function(a){return v(a)===c};reactIs_production_min.isProfiler=function(a){return v(a)===f};reactIs_production_min.isStrictMode=function(a){return v(a)===e};reactIs_production_min.isSuspense=function(a){return v(a)===m};reactIs_production_min.isSuspenseList=function(a){return v(a)===n}; - reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||"object"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};reactIs_production_min.typeOf=v; - return reactIs_production_min; -} - -var reactIs_development = {}; - -/** - * @license React - * react-is.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -var hasRequiredReactIs_development; - -function requireReactIs_development () { - if (hasRequiredReactIs_development) return reactIs_development; - hasRequiredReactIs_development = 1; - - if (process.env.NODE_ENV !== "production") { - (function() { - - // ATTENTION - // When adding new symbols to this file, - // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' - // The Symbol used to tag the ReactElement-like types. - var REACT_ELEMENT_TYPE = Symbol.for('react.element'); - var REACT_PORTAL_TYPE = Symbol.for('react.portal'); - var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); - var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); - var REACT_PROFILER_TYPE = Symbol.for('react.profiler'); - var REACT_PROVIDER_TYPE = Symbol.for('react.provider'); - var REACT_CONTEXT_TYPE = Symbol.for('react.context'); - var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context'); - var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref'); - var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense'); - var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list'); - var REACT_MEMO_TYPE = Symbol.for('react.memo'); - var REACT_LAZY_TYPE = Symbol.for('react.lazy'); - var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen'); - - // ----------------------------------------------------------------------------- - - var enableScopeAPI = false; // Experimental Create Event Handle API. - var enableCacheElement = false; - var enableTransitionTracing = false; // No known bugs, but needs performance testing - - var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber - // stuff. Intended to enable React core members to more easily debug scheduling - // issues in DEV builds. - - var enableDebugTracing = false; // Track which Fiber(s) schedule render work. - - var REACT_MODULE_REFERENCE; - - { - REACT_MODULE_REFERENCE = Symbol.for('react.module.reference'); - } - - function isValidElementType(type) { - if (typeof type === 'string' || typeof type === 'function') { - return true; - } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill). - - - if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) { - return true; - } - - if (typeof type === 'object' && type !== null) { - if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object - // types supported by any Flight configuration anywhere since - // we don't know which Flight build this will end up being used - // with. - type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) { - return true; - } - } - - return false; - } - - function typeOf(object) { - if (typeof object === 'object' && object !== null) { - var $$typeof = object.$$typeof; - - switch ($$typeof) { - case REACT_ELEMENT_TYPE: - var type = object.type; - - switch (type) { - case REACT_FRAGMENT_TYPE: - case REACT_PROFILER_TYPE: - case REACT_STRICT_MODE_TYPE: - case REACT_SUSPENSE_TYPE: - case REACT_SUSPENSE_LIST_TYPE: - return type; - - default: - var $$typeofType = type && type.$$typeof; - - switch ($$typeofType) { - case REACT_SERVER_CONTEXT_TYPE: - case REACT_CONTEXT_TYPE: - case REACT_FORWARD_REF_TYPE: - case REACT_LAZY_TYPE: - case REACT_MEMO_TYPE: - case REACT_PROVIDER_TYPE: - return $$typeofType; - - default: - return $$typeof; - } - - } - - case REACT_PORTAL_TYPE: - return $$typeof; - } - } - - return undefined; - } - var ContextConsumer = REACT_CONTEXT_TYPE; - var ContextProvider = REACT_PROVIDER_TYPE; - var Element = REACT_ELEMENT_TYPE; - var ForwardRef = REACT_FORWARD_REF_TYPE; - var Fragment = REACT_FRAGMENT_TYPE; - var Lazy = REACT_LAZY_TYPE; - var Memo = REACT_MEMO_TYPE; - var Portal = REACT_PORTAL_TYPE; - var Profiler = REACT_PROFILER_TYPE; - var StrictMode = REACT_STRICT_MODE_TYPE; - var Suspense = REACT_SUSPENSE_TYPE; - var SuspenseList = REACT_SUSPENSE_LIST_TYPE; - var hasWarnedAboutDeprecatedIsAsyncMode = false; - var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated - - function isAsyncMode(object) { - { - if (!hasWarnedAboutDeprecatedIsAsyncMode) { - hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint - - console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.'); - } - } - - return false; - } - function isConcurrentMode(object) { - { - if (!hasWarnedAboutDeprecatedIsConcurrentMode) { - hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint - - console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.'); - } - } - - return false; - } - function isContextConsumer(object) { - return typeOf(object) === REACT_CONTEXT_TYPE; - } - function isContextProvider(object) { - return typeOf(object) === REACT_PROVIDER_TYPE; - } - function isElement(object) { - return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; - } - function isForwardRef(object) { - return typeOf(object) === REACT_FORWARD_REF_TYPE; - } - function isFragment(object) { - return typeOf(object) === REACT_FRAGMENT_TYPE; - } - function isLazy(object) { - return typeOf(object) === REACT_LAZY_TYPE; - } - function isMemo(object) { - return typeOf(object) === REACT_MEMO_TYPE; - } - function isPortal(object) { - return typeOf(object) === REACT_PORTAL_TYPE; - } - function isProfiler(object) { - return typeOf(object) === REACT_PROFILER_TYPE; - } - function isStrictMode(object) { - return typeOf(object) === REACT_STRICT_MODE_TYPE; - } - function isSuspense(object) { - return typeOf(object) === REACT_SUSPENSE_TYPE; - } - function isSuspenseList(object) { - return typeOf(object) === REACT_SUSPENSE_LIST_TYPE; - } - - reactIs_development.ContextConsumer = ContextConsumer; - reactIs_development.ContextProvider = ContextProvider; - reactIs_development.Element = Element; - reactIs_development.ForwardRef = ForwardRef; - reactIs_development.Fragment = Fragment; - reactIs_development.Lazy = Lazy; - reactIs_development.Memo = Memo; - reactIs_development.Portal = Portal; - reactIs_development.Profiler = Profiler; - reactIs_development.StrictMode = StrictMode; - reactIs_development.Suspense = Suspense; - reactIs_development.SuspenseList = SuspenseList; - reactIs_development.isAsyncMode = isAsyncMode; - reactIs_development.isConcurrentMode = isConcurrentMode; - reactIs_development.isContextConsumer = isContextConsumer; - reactIs_development.isContextProvider = isContextProvider; - reactIs_development.isElement = isElement; - reactIs_development.isForwardRef = isForwardRef; - reactIs_development.isFragment = isFragment; - reactIs_development.isLazy = isLazy; - reactIs_development.isMemo = isMemo; - reactIs_development.isPortal = isPortal; - reactIs_development.isProfiler = isProfiler; - reactIs_development.isStrictMode = isStrictMode; - reactIs_development.isSuspense = isSuspense; - reactIs_development.isSuspenseList = isSuspenseList; - reactIs_development.isValidElementType = isValidElementType; - reactIs_development.typeOf = typeOf; - })(); - } - return reactIs_development; -} - -if (process.env.NODE_ENV === 'production') { - reactIs.exports = requireReactIs_production_min(); -} else { - reactIs.exports = requireReactIs_development(); -} - -var reactIsExports = reactIs.exports; - -function getChildren(arg, children = []) { - if (Array.isArray(arg)) { - for (const item of arg) { - getChildren(item, children); - } - } else if (arg != null && arg !== false && arg !== "") { - children.push(arg); - } - return children; -} -function getType(element) { - const type = element.type; - if (typeof type === "string") { - return type; - } - if (typeof type === "function") { - return type.displayName || type.name || "Unknown"; - } - if (reactIsExports.isFragment(element)) { - return "React.Fragment"; - } - if (reactIsExports.isSuspense(element)) { - return "React.Suspense"; - } - if (typeof type === "object" && type !== null) { - if (reactIsExports.isContextProvider(element)) { - return "Context.Provider"; - } - if (reactIsExports.isContextConsumer(element)) { - return "Context.Consumer"; - } - if (reactIsExports.isForwardRef(element)) { - if (type.displayName) { - return type.displayName; - } - const functionName = type.render.displayName || type.render.name || ""; - return functionName === "" ? "ForwardRef" : `ForwardRef(${functionName})`; - } - if (reactIsExports.isMemo(element)) { - const functionName = type.displayName || type.type.displayName || type.type.name || ""; - return functionName === "" ? "Memo" : `Memo(${functionName})`; - } - } - return "UNDEFINED"; -} -function getPropKeys$1(element) { - const { props } = element; - return Object.keys(props).filter((key) => key !== "children" && props[key] !== void 0).sort(); -} -const serialize$1 = (element, config, indentation, depth, refs, printer) => ++depth > config.maxDepth ? printElementAsLeaf(getType(element), config) : printElement( - getType(element), - printProps( - getPropKeys$1(element), - element.props, - config, - indentation + config.indent, - depth, - refs, - printer - ), - printChildren( - getChildren(element.props.children), - config, - indentation + config.indent, - depth, - refs, - printer - ), - config, - indentation -); -const test$1 = (val) => val != null && reactIsExports.isElement(val); -const plugin$1 = { serialize: serialize$1, test: test$1 }; - -const testSymbol = typeof Symbol === "function" && Symbol.for ? Symbol.for("react.test.json") : 245830487; -function getPropKeys(object) { - const { props } = object; - return props ? Object.keys(props).filter((key) => props[key] !== void 0).sort() : []; -} -const serialize = (object, config, indentation, depth, refs, printer) => ++depth > config.maxDepth ? printElementAsLeaf(object.type, config) : printElement( - object.type, - object.props ? printProps( - getPropKeys(object), - object.props, - config, - indentation + config.indent, - depth, - refs, - printer - ) : "", - object.children ? printChildren( - object.children, - config, - indentation + config.indent, - depth, - refs, - printer - ) : "", - config, - indentation -); -const test = (val) => val && val.$$typeof === testSymbol; -const plugin = { serialize, test }; - -const toString = Object.prototype.toString; -const toISOString = Date.prototype.toISOString; -const errorToString = Error.prototype.toString; -const regExpToString = RegExp.prototype.toString; -function getConstructorName(val) { - return typeof val.constructor === "function" && val.constructor.name || "Object"; -} -function isWindow(val) { - return typeof window !== "undefined" && val === window; -} -const SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/; -const NEWLINE_REGEXP = /\n/g; -class PrettyFormatPluginError extends Error { - constructor(message, stack) { - super(message); - this.stack = stack; - this.name = this.constructor.name; - } -} -function isToStringedArrayType(toStringed) { - return toStringed === "[object Array]" || toStringed === "[object ArrayBuffer]" || toStringed === "[object DataView]" || toStringed === "[object Float32Array]" || toStringed === "[object Float64Array]" || toStringed === "[object Int8Array]" || toStringed === "[object Int16Array]" || toStringed === "[object Int32Array]" || toStringed === "[object Uint8Array]" || toStringed === "[object Uint8ClampedArray]" || toStringed === "[object Uint16Array]" || toStringed === "[object Uint32Array]"; -} -function printNumber(val) { - return Object.is(val, -0) ? "-0" : String(val); -} -function printBigInt(val) { - return String(`${val}n`); -} -function printFunction(val, printFunctionName) { - if (!printFunctionName) { - return "[Function]"; - } - return `[Function ${val.name || "anonymous"}]`; -} -function printSymbol(val) { - return String(val).replace(SYMBOL_REGEXP, "Symbol($1)"); -} -function printError(val) { - return `[${errorToString.call(val)}]`; -} -function printBasicValue(val, printFunctionName, escapeRegex, escapeString) { - if (val === true || val === false) { - return `${val}`; - } - if (val === void 0) { - return "undefined"; - } - if (val === null) { - return "null"; - } - const typeOf = typeof val; - if (typeOf === "number") { - return printNumber(val); - } - if (typeOf === "bigint") { - return printBigInt(val); - } - if (typeOf === "string") { - if (escapeString) { - return `"${val.replaceAll(/"|\\/g, "\\$&")}"`; - } - return `"${val}"`; - } - if (typeOf === "function") { - return printFunction(val, printFunctionName); - } - if (typeOf === "symbol") { - return printSymbol(val); - } - const toStringed = toString.call(val); - if (toStringed === "[object WeakMap]") { - return "WeakMap {}"; - } - if (toStringed === "[object WeakSet]") { - return "WeakSet {}"; - } - if (toStringed === "[object Function]" || toStringed === "[object GeneratorFunction]") { - return printFunction(val, printFunctionName); - } - if (toStringed === "[object Symbol]") { - return printSymbol(val); - } - if (toStringed === "[object Date]") { - return Number.isNaN(+val) ? "Date { NaN }" : toISOString.call(val); - } - if (toStringed === "[object Error]") { - return printError(val); - } - if (toStringed === "[object RegExp]") { - if (escapeRegex) { - return regExpToString.call(val).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&"); - } - return regExpToString.call(val); - } - if (val instanceof Error) { - return printError(val); - } - return null; -} -function printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON) { - if (refs.includes(val)) { - return "[Circular]"; - } - refs = [...refs]; - refs.push(val); - const hitMaxDepth = ++depth > config.maxDepth; - const min = config.min; - if (config.callToJSON && !hitMaxDepth && val.toJSON && typeof val.toJSON === "function" && !hasCalledToJSON) { - return printer(val.toJSON(), config, indentation, depth, refs, true); - } - const toStringed = toString.call(val); - if (toStringed === "[object Arguments]") { - return hitMaxDepth ? "[Arguments]" : `${min ? "" : "Arguments "}[${printListItems( - val, - config, - indentation, - depth, - refs, - printer - )}]`; - } - if (isToStringedArrayType(toStringed)) { - return hitMaxDepth ? `[${val.constructor.name}]` : `${min ? "" : !config.printBasicPrototype && val.constructor.name === "Array" ? "" : `${val.constructor.name} `}[${printListItems(val, config, indentation, depth, refs, printer)}]`; - } - if (toStringed === "[object Map]") { - return hitMaxDepth ? "[Map]" : `Map {${printIteratorEntries( - val.entries(), - config, - indentation, - depth, - refs, - printer, - " => " - )}}`; - } - if (toStringed === "[object Set]") { - return hitMaxDepth ? "[Set]" : `Set {${printIteratorValues( - val.values(), - config, - indentation, - depth, - refs, - printer - )}}`; - } - return hitMaxDepth || isWindow(val) ? `[${getConstructorName(val)}]` : `${min ? "" : !config.printBasicPrototype && getConstructorName(val) === "Object" ? "" : `${getConstructorName(val)} `}{${printObjectProperties( - val, - config, - indentation, - depth, - refs, - printer - )}}`; -} -function isNewPlugin(plugin) { - return plugin.serialize != null; -} -function printPlugin(plugin, val, config, indentation, depth, refs) { - let printed; - try { - printed = isNewPlugin(plugin) ? plugin.serialize(val, config, indentation, depth, refs, printer) : plugin.print( - val, - (valChild) => printer(valChild, config, indentation, depth, refs), - (str) => { - const indentationNext = indentation + config.indent; - return indentationNext + str.replaceAll(NEWLINE_REGEXP, ` -${indentationNext}`); - }, - { - edgeSpacing: config.spacingOuter, - min: config.min, - spacing: config.spacingInner - }, - config.colors - ); - } catch (error) { - throw new PrettyFormatPluginError(error.message, error.stack); - } - if (typeof printed !== "string") { - throw new TypeError( - `pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".` - ); - } - return printed; -} -function findPlugin(plugins2, val) { - for (const plugin of plugins2) { - try { - if (plugin.test(val)) { - return plugin; - } - } catch (error) { - throw new PrettyFormatPluginError(error.message, error.stack); - } - } - return null; -} -function printer(val, config, indentation, depth, refs, hasCalledToJSON) { - const plugin = findPlugin(config.plugins, val); - if (plugin !== null) { - return printPlugin(plugin, val, config, indentation, depth, refs); - } - const basicResult = printBasicValue( - val, - config.printFunctionName, - config.escapeRegex, - config.escapeString - ); - if (basicResult !== null) { - return basicResult; - } - return printComplexValue( - val, - config, - indentation, - depth, - refs, - hasCalledToJSON - ); -} -const DEFAULT_THEME = { - comment: "gray", - content: "reset", - prop: "yellow", - tag: "cyan", - value: "green" -}; -const DEFAULT_THEME_KEYS = Object.keys(DEFAULT_THEME); -const DEFAULT_OPTIONS = { - callToJSON: true, - compareKeys: void 0, - escapeRegex: false, - escapeString: true, - highlight: false, - indent: 2, - maxDepth: Number.POSITIVE_INFINITY, - maxWidth: Number.POSITIVE_INFINITY, - min: false, - plugins: [], - printBasicPrototype: true, - printFunctionName: true, - theme: DEFAULT_THEME -}; -function validateOptions(options) { - for (const key of Object.keys(options)) { - if (!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS, key)) { - throw new Error(`pretty-format: Unknown option "${key}".`); - } - } - if (options.min && options.indent !== void 0 && options.indent !== 0) { - throw new Error( - 'pretty-format: Options "min" and "indent" cannot be used together.' - ); - } -} -function getColorsHighlight() { - return DEFAULT_THEME_KEYS.reduce((colors, key) => { - const value = DEFAULT_THEME[key]; - const color = value && styles[value]; - if (color && typeof color.close === "string" && typeof color.open === "string") { - colors[key] = color; - } else { - throw new Error( - `pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.` - ); - } - return colors; - }, /* @__PURE__ */ Object.create(null)); -} -function getColorsEmpty() { - return DEFAULT_THEME_KEYS.reduce((colors, key) => { - colors[key] = { close: "", open: "" }; - return colors; - }, /* @__PURE__ */ Object.create(null)); -} -function getPrintFunctionName(options) { - return (options == null ? void 0 : options.printFunctionName) ?? DEFAULT_OPTIONS.printFunctionName; -} -function getEscapeRegex(options) { - return (options == null ? void 0 : options.escapeRegex) ?? DEFAULT_OPTIONS.escapeRegex; -} -function getEscapeString(options) { - return (options == null ? void 0 : options.escapeString) ?? DEFAULT_OPTIONS.escapeString; -} -function getConfig(options) { - return { - callToJSON: (options == null ? void 0 : options.callToJSON) ?? DEFAULT_OPTIONS.callToJSON, - colors: (options == null ? void 0 : options.highlight) ? getColorsHighlight() : getColorsEmpty(), - compareKeys: typeof (options == null ? void 0 : options.compareKeys) === "function" || (options == null ? void 0 : options.compareKeys) === null ? options.compareKeys : DEFAULT_OPTIONS.compareKeys, - escapeRegex: getEscapeRegex(options), - escapeString: getEscapeString(options), - indent: (options == null ? void 0 : options.min) ? "" : createIndent((options == null ? void 0 : options.indent) ?? DEFAULT_OPTIONS.indent), - maxDepth: (options == null ? void 0 : options.maxDepth) ?? DEFAULT_OPTIONS.maxDepth, - maxWidth: (options == null ? void 0 : options.maxWidth) ?? DEFAULT_OPTIONS.maxWidth, - min: (options == null ? void 0 : options.min) ?? DEFAULT_OPTIONS.min, - plugins: (options == null ? void 0 : options.plugins) ?? DEFAULT_OPTIONS.plugins, - printBasicPrototype: (options == null ? void 0 : options.printBasicPrototype) ?? true, - printFunctionName: getPrintFunctionName(options), - spacingInner: (options == null ? void 0 : options.min) ? " " : "\n", - spacingOuter: (options == null ? void 0 : options.min) ? "" : "\n" - }; -} -function createIndent(indent) { - return Array.from({ length: indent + 1 }).join(" "); -} -function format(val, options) { - if (options) { - validateOptions(options); - if (options.plugins) { - const plugin = findPlugin(options.plugins, val); - if (plugin !== null) { - return printPlugin(plugin, val, getConfig(options), "", 0, []); - } - } - } - const basicResult = printBasicValue( - val, - getPrintFunctionName(options), - getEscapeRegex(options), - getEscapeString(options) - ); - if (basicResult !== null) { - return basicResult; - } - return printComplexValue(val, getConfig(options), "", 0, []); -} -const plugins = { - AsymmetricMatcher: plugin$5, - DOMCollection: plugin$4, - DOMElement: plugin$3, - Immutable: plugin$2, - ReactElement: plugin$1, - ReactTestComponent: plugin -}; - -export { DEFAULT_OPTIONS, format, plugins }; diff --git a/node_modules/@vitest/runner/dist/chunk-tasks.js b/node_modules/@vitest/runner/dist/chunk-tasks.js deleted file mode 100644 index 8d5d39d8..00000000 --- a/node_modules/@vitest/runner/dist/chunk-tasks.js +++ /dev/null @@ -1,243 +0,0 @@ -import { processError } from '@vitest/utils/error'; -import { relative } from 'pathe'; -import { toArray } from '@vitest/utils'; - -function partitionSuiteChildren(suite) { - let tasksGroup = []; - const tasksGroups = []; - for (const c of suite.tasks) { - if (tasksGroup.length === 0 || c.concurrent === tasksGroup[0].concurrent) { - tasksGroup.push(c); - } else { - tasksGroups.push(tasksGroup); - tasksGroup = [c]; - } - } - if (tasksGroup.length > 0) { - tasksGroups.push(tasksGroup); - } - return tasksGroups; -} - -function limitConcurrency(concurrency = Infinity) { - let count = 0; - let head; - let tail; - const finish = () => { - count--; - if (head) { - head[0](); - head = head[1]; - tail = head && tail; - } - }; - return (func, ...args) => { - return new Promise((resolve) => { - if (count++ < concurrency) { - resolve(); - } else if (tail) { - tail = tail[1] = [resolve]; - } else { - head = tail = [resolve]; - } - }).then(() => { - return func(...args); - }).finally(finish); - }; -} - -function interpretTaskModes(suite, namePattern, onlyMode, parentIsOnly, allowOnly) { - const suiteIsOnly = parentIsOnly || suite.mode === "only"; - suite.tasks.forEach((t) => { - const includeTask = suiteIsOnly || t.mode === "only"; - if (onlyMode) { - if (t.type === "suite" && (includeTask || someTasksAreOnly(t))) { - if (t.mode === "only") { - checkAllowOnly(t, allowOnly); - t.mode = "run"; - } - } else if (t.mode === "run" && !includeTask) { - t.mode = "skip"; - } else if (t.mode === "only") { - checkAllowOnly(t, allowOnly); - t.mode = "run"; - } - } - if (t.type === "test") { - if (namePattern && !getTaskFullName(t).match(namePattern)) { - t.mode = "skip"; - } - } else if (t.type === "suite") { - if (t.mode === "skip") { - skipAllTasks(t); - } else { - interpretTaskModes(t, namePattern, onlyMode, includeTask, allowOnly); - } - } - }); - if (suite.mode === "run") { - if (suite.tasks.length && suite.tasks.every((i) => i.mode !== "run")) { - suite.mode = "skip"; - } - } -} -function getTaskFullName(task) { - return `${task.suite ? `${getTaskFullName(task.suite)} ` : ""}${task.name}`; -} -function someTasksAreOnly(suite) { - return suite.tasks.some( - (t) => t.mode === "only" || t.type === "suite" && someTasksAreOnly(t) - ); -} -function skipAllTasks(suite) { - suite.tasks.forEach((t) => { - if (t.mode === "run") { - t.mode = "skip"; - if (t.type === "suite") { - skipAllTasks(t); - } - } - }); -} -function checkAllowOnly(task, allowOnly) { - if (allowOnly) { - return; - } - const error = processError( - new Error( - "[Vitest] Unexpected .only modifier. Remove it or pass --allowOnly argument to bypass this error" - ) - ); - task.result = { - state: "fail", - errors: [error] - }; -} -function generateHash(str) { - let hash = 0; - if (str.length === 0) { - return `${hash}`; - } - for (let i = 0; i < str.length; i++) { - const char = str.charCodeAt(i); - hash = (hash << 5) - hash + char; - hash = hash & hash; - } - return `${hash}`; -} -function calculateSuiteHash(parent) { - parent.tasks.forEach((t, idx) => { - t.id = `${parent.id}_${idx}`; - if (t.type === "suite") { - calculateSuiteHash(t); - } - }); -} -function createFileTask(filepath, root, projectName, pool) { - const path = relative(root, filepath); - const file = { - id: generateHash(`${path}${projectName || ""}`), - name: path, - type: "suite", - mode: "run", - filepath, - tasks: [], - meta: /* @__PURE__ */ Object.create(null), - projectName, - file: void 0, - pool - }; - file.file = file; - return file; -} - -function createChainable(keys, fn) { - function create(context) { - const chain2 = function(...args) { - return fn.apply(context, args); - }; - Object.assign(chain2, fn); - chain2.withContext = () => chain2.bind(context); - chain2.setContext = (key, value) => { - context[key] = value; - }; - chain2.mergeContext = (ctx) => { - Object.assign(context, ctx); - }; - for (const key of keys) { - Object.defineProperty(chain2, key, { - get() { - return create({ ...context, [key]: true }); - } - }); - } - return chain2; - } - const chain = create({}); - chain.fn = fn; - return chain; -} - -function isAtomTest(s) { - return s.type === "test" || s.type === "custom"; -} -function getTests(suite) { - const tests = []; - const arraySuites = toArray(suite); - for (const s of arraySuites) { - if (isAtomTest(s)) { - tests.push(s); - } else { - for (const task of s.tasks) { - if (isAtomTest(task)) { - tests.push(task); - } else { - const taskTests = getTests(task); - for (const test of taskTests) { - tests.push(test); - } - } - } - } - } - return tests; -} -function getTasks(tasks = []) { - return toArray(tasks).flatMap( - (s) => isAtomTest(s) ? [s] : [s, ...getTasks(s.tasks)] - ); -} -function getSuites(suite) { - return toArray(suite).flatMap( - (s) => s.type === "suite" ? [s, ...getSuites(s.tasks)] : [] - ); -} -function hasTests(suite) { - return toArray(suite).some( - (s) => s.tasks.some((c) => isAtomTest(c) || hasTests(c)) - ); -} -function hasFailed(suite) { - return toArray(suite).some( - (s) => { - var _a; - return ((_a = s.result) == null ? void 0 : _a.state) === "fail" || s.type === "suite" && hasFailed(s.tasks); - } - ); -} -function getNames(task) { - const names = [task.name]; - let current = task; - while (current == null ? void 0 : current.suite) { - current = current.suite; - if (current == null ? void 0 : current.name) { - names.unshift(current.name); - } - } - if (current !== task.file) { - names.unshift(task.file.name); - } - return names; -} - -export { createFileTask as a, isAtomTest as b, calculateSuiteHash as c, getTests as d, getTasks as e, getSuites as f, generateHash as g, hasTests as h, interpretTaskModes as i, hasFailed as j, getNames as k, createChainable as l, limitConcurrency as m, partitionSuiteChildren as p, someTasksAreOnly as s }; diff --git a/node_modules/@vitest/runner/dist/index.d.ts b/node_modules/@vitest/runner/dist/index.d.ts deleted file mode 100644 index 183c10fa..00000000 --- a/node_modules/@vitest/runner/dist/index.d.ts +++ /dev/null @@ -1,259 +0,0 @@ -import { VitestRunner } from './types.js'; -export { CancelReason, VitestRunnerConfig, VitestRunnerConstructor, VitestRunnerImportSource } from './types.js'; -import { T as Task, F as File, d as SuiteAPI, e as TestAPI, f as SuiteCollector, g as CustomAPI, B as BeforeAllListener, A as AfterAllListener, h as BeforeEachListener, i as AfterEachListener, j as TaskHook, O as OnTestFailedHandler, k as OnTestFinishedHandler, a as Test, C as Custom, S as Suite, l as SuiteHooks } from './tasks-zB5uPauP.js'; -export { D as DoneCallback, L as ExtendedContext, w as Fixture, v as FixtureFn, u as FixtureOptions, x as Fixtures, y as HookCleanupCallback, H as HookListener, I as InferFixturesTypes, R as RunMode, G as RuntimeContext, M as SequenceHooks, N as SequenceSetupFiles, E as SuiteFactory, n as TaskBase, K as TaskContext, z as TaskCustomOptions, p as TaskMeta, o as TaskPopulated, q as TaskResult, r as TaskResultPack, m as TaskState, J as TestContext, s as TestFunction, t as TestOptions, U as Use } from './tasks-zB5uPauP.js'; -import { Awaitable } from '@vitest/utils'; -export { processError } from '@vitest/utils/error'; -import '@vitest/utils/diff'; - -declare function updateTask(task: Task, runner: VitestRunner): void; -declare function startTests(paths: string[], runner: VitestRunner): Promise; -declare function publicCollect(paths: string[], runner: VitestRunner): Promise; - -/** - * Creates a suite of tests, allowing for grouping and hierarchical organization of tests. - * Suites can contain both tests and other suites, enabling complex test structures. - * - * @param {string} name - The name of the suite, used for identification and reporting. - * @param {Function} fn - A function that defines the tests and suites within this suite. - * @example - * ```ts - * // Define a suite with two tests - * suite('Math operations', () => { - * test('should add two numbers', () => { - * expect(add(1, 2)).toBe(3); - * }); - * - * test('should subtract two numbers', () => { - * expect(subtract(5, 2)).toBe(3); - * }); - * }); - * ``` - * @example - * ```ts - * // Define nested suites - * suite('String operations', () => { - * suite('Trimming', () => { - * test('should trim whitespace from start and end', () => { - * expect(' hello '.trim()).toBe('hello'); - * }); - * }); - * - * suite('Concatenation', () => { - * test('should concatenate two strings', () => { - * expect('hello' + ' ' + 'world').toBe('hello world'); - * }); - * }); - * }); - * ``` - */ -declare const suite: SuiteAPI; -/** - * Defines a test case with a given name and test function. The test function can optionally be configured with test options. - * - * @param {string | Function} name - The name of the test or a function that will be used as a test name. - * @param {TestOptions | TestFunction} [optionsOrFn] - Optional. The test options or the test function if no explicit name is provided. - * @param {number | TestOptions | TestFunction} [optionsOrTest] - Optional. The test function or options, depending on the previous parameters. - * @throws {Error} If called inside another test function. - * @example - * ```ts - * // Define a simple test - * test('should add two numbers', () => { - * expect(add(1, 2)).toBe(3); - * }); - * ``` - * @example - * ```ts - * // Define a test with options - * test('should subtract two numbers', { retry: 3 }, () => { - * expect(subtract(5, 2)).toBe(3); - * }); - * ``` - */ -declare const test: TestAPI; -/** - * Creates a suite of tests, allowing for grouping and hierarchical organization of tests. - * Suites can contain both tests and other suites, enabling complex test structures. - * - * @param {string} name - The name of the suite, used for identification and reporting. - * @param {Function} fn - A function that defines the tests and suites within this suite. - * @example - * ```ts - * // Define a suite with two tests - * describe('Math operations', () => { - * test('should add two numbers', () => { - * expect(add(1, 2)).toBe(3); - * }); - * - * test('should subtract two numbers', () => { - * expect(subtract(5, 2)).toBe(3); - * }); - * }); - * ``` - * @example - * ```ts - * // Define nested suites - * describe('String operations', () => { - * describe('Trimming', () => { - * test('should trim whitespace from start and end', () => { - * expect(' hello '.trim()).toBe('hello'); - * }); - * }); - * - * describe('Concatenation', () => { - * test('should concatenate two strings', () => { - * expect('hello' + ' ' + 'world').toBe('hello world'); - * }); - * }); - * }); - * ``` - */ -declare const describe: SuiteAPI; -/** - * Defines a test case with a given name and test function. The test function can optionally be configured with test options. - * - * @param {string | Function} name - The name of the test or a function that will be used as a test name. - * @param {TestOptions | TestFunction} [optionsOrFn] - Optional. The test options or the test function if no explicit name is provided. - * @param {number | TestOptions | TestFunction} [optionsOrTest] - Optional. The test function or options, depending on the previous parameters. - * @throws {Error} If called inside another test function. - * @example - * ```ts - * // Define a simple test - * it('adds two numbers', () => { - * expect(add(1, 2)).toBe(3); - * }); - * ``` - * @example - * ```ts - * // Define a test with options - * it('subtracts two numbers', { retry: 3 }, () => { - * expect(subtract(5, 2)).toBe(3); - * }); - * ``` - */ -declare const it: TestAPI; -declare function getCurrentSuite(): SuiteCollector; -declare function createTaskCollector(fn: (...args: any[]) => any, context?: Record): CustomAPI; - -/** - * Registers a callback function to be executed once before all tests within the current suite. - * This hook is useful for scenarios where you need to perform setup operations that are common to all tests in a suite, such as initializing a database connection or setting up a test environment. - * - * **Note:** The `beforeAll` hooks are executed in the order they are defined one after another. You can configure this by changing the `sequence.hooks` option in the config file. - * - * @param {Function} fn - The callback function to be executed before all tests. - * @param {number} [timeout] - Optional timeout in milliseconds for the hook. If not provided, the default hook timeout from the runner's configuration is used. - * @returns {void} - * @example - * ```ts - * // Example of using beforeAll to set up a database connection - * beforeAll(async () => { - * await database.connect(); - * }); - * ``` - */ -declare function beforeAll(fn: BeforeAllListener, timeout?: number): void; -/** - * Registers a callback function to be executed once after all tests within the current suite have completed. - * This hook is useful for scenarios where you need to perform cleanup operations after all tests in a suite have run, such as closing database connections or cleaning up temporary files. - * - * **Note:** The `afterAll` hooks are running in reverse order of their registration. You can configure this by changing the `sequence.hooks` option in the config file. - * - * @param {Function} fn - The callback function to be executed after all tests. - * @param {number} [timeout] - Optional timeout in milliseconds for the hook. If not provided, the default hook timeout from the runner's configuration is used. - * @returns {void} - * @example - * ```ts - * // Example of using afterAll to close a database connection - * afterAll(async () => { - * await database.disconnect(); - * }); - * ``` - */ -declare function afterAll(fn: AfterAllListener, timeout?: number): void; -/** - * Registers a callback function to be executed before each test within the current suite. - * This hook is useful for scenarios where you need to reset or reinitialize the test environment before each test runs, such as resetting database states, clearing caches, or reinitializing variables. - * - * **Note:** The `beforeEach` hooks are executed in the order they are defined one after another. You can configure this by changing the `sequence.hooks` option in the config file. - * - * @param {Function} fn - The callback function to be executed before each test. This function receives an `TestContext` parameter if additional test context is needed. - * @param {number} [timeout] - Optional timeout in milliseconds for the hook. If not provided, the default hook timeout from the runner's configuration is used. - * @returns {void} - * @example - * ```ts - * // Example of using beforeEach to reset a database state - * beforeEach(async () => { - * await database.reset(); - * }); - * ``` - */ -declare function beforeEach(fn: BeforeEachListener, timeout?: number): void; -/** - * Registers a callback function to be executed after each test within the current suite has completed. - * This hook is useful for scenarios where you need to clean up or reset the test environment after each test runs, such as deleting temporary files, clearing test-specific database entries, or resetting mocked functions. - * - * **Note:** The `afterEach` hooks are running in reverse order of their registration. You can configure this by changing the `sequence.hooks` option in the config file. - * - * @param {Function} fn - The callback function to be executed after each test. This function receives an `TestContext` parameter if additional test context is needed. - * @param {number} [timeout] - Optional timeout in milliseconds for the hook. If not provided, the default hook timeout from the runner's configuration is used. - * @returns {void} - * @example - * ```ts - * // Example of using afterEach to delete temporary files created during a test - * afterEach(async () => { - * await fileSystem.deleteTempFiles(); - * }); - * ``` - */ -declare function afterEach(fn: AfterEachListener, timeout?: number): void; -/** - * Registers a callback function to be executed when a test fails within the current suite. - * This function allows for custom actions to be performed in response to test failures, such as logging, cleanup, or additional diagnostics. - * - * **Note:** The `onTestFailed` hooks are running in reverse order of their registration. You can configure this by changing the `sequence.hooks` option in the config file. - * - * @param {Function} fn - The callback function to be executed upon a test failure. The function receives the test result (including errors). - * @param {number} [timeout] - Optional timeout in milliseconds for the hook. If not provided, the default hook timeout from the runner's configuration is used. - * @throws {Error} Throws an error if the function is not called within a test. - * @returns {void} - * @example - * ```ts - * // Example of using onTestFailed to log failure details - * onTestFailed(({ errors }) => { - * console.log(`Test failed: ${test.name}`, errors); - * }); - * ``` - */ -declare const onTestFailed: TaskHook; -/** - * Registers a callback function to be executed when the current test finishes, regardless of the outcome (pass or fail). - * This function is ideal for performing actions that should occur after every test execution, such as cleanup, logging, or resetting shared resources. - * - * This hook is useful if you have access to a resource in the test itself and you want to clean it up after the test finishes. It is a more compact way to clean up resources than using the combination of `beforeEach` and `afterEach`. - * - * **Note:** The `onTestFinished` hooks are running in reverse order of their registration. You can configure this by changing the `sequence.hooks` option in the config file. - * - * @param {Function} fn - The callback function to be executed after a test finishes. The function can receive parameters providing details about the completed test, including its success or failure status. - * @param {number} [timeout] - Optional timeout in milliseconds for the hook. If not provided, the default hook timeout from the runner's configuration is used. - * @throws {Error} Throws an error if the function is not called within a test. - * @returns {void} - * @example - * ```ts - * // Example of using onTestFinished for cleanup - * const db = await connectToDatabase(); - * onTestFinished(async () => { - * await db.disconnect(); - * }); - * ``` - */ -declare const onTestFinished: TaskHook; - -declare function setFn(key: Test | Custom, fn: () => Awaitable): void; -declare function getFn(key: Task): () => Awaitable; -declare function setHooks(key: Suite, hooks: SuiteHooks): void; -declare function getHooks(key: Suite): SuiteHooks; - -declare function getCurrentTest(): T; - -export { AfterAllListener, AfterEachListener, BeforeAllListener, BeforeEachListener, Custom, CustomAPI, File, OnTestFailedHandler, OnTestFinishedHandler, Suite, SuiteAPI, SuiteCollector, SuiteHooks, Task, TaskHook, Test, TestAPI, VitestRunner, afterAll, afterEach, beforeAll, beforeEach, publicCollect as collectTests, createTaskCollector, describe, getCurrentSuite, getCurrentTest, getFn, getHooks, it, onTestFailed, onTestFinished, setFn, setHooks, startTests, suite, test, updateTask }; diff --git a/node_modules/@vitest/runner/dist/index.js b/node_modules/@vitest/runner/dist/index.js deleted file mode 100644 index 8abd3f14..00000000 --- a/node_modules/@vitest/runner/dist/index.js +++ /dev/null @@ -1,1250 +0,0 @@ -import { getSafeTimers, isObject, createDefer, isNegativeNaN, format, objDisplay, objectAttr, toArray, shuffle } from '@vitest/utils'; -import { processError } from '@vitest/utils/error'; -export { processError } from '@vitest/utils/error'; -import { l as createChainable, a as createFileTask, c as calculateSuiteHash, s as someTasksAreOnly, i as interpretTaskModes, m as limitConcurrency, p as partitionSuiteChildren, h as hasTests, j as hasFailed } from './chunk-tasks.js'; -import { parseSingleStack } from '@vitest/utils/source-map'; -import 'pathe'; - -const fnMap = /* @__PURE__ */ new WeakMap(); -const fixtureMap = /* @__PURE__ */ new WeakMap(); -const hooksMap = /* @__PURE__ */ new WeakMap(); -function setFn(key, fn) { - fnMap.set(key, fn); -} -function getFn(key) { - return fnMap.get(key); -} -function setFixture(key, fixture) { - fixtureMap.set(key, fixture); -} -function getFixture(key) { - return fixtureMap.get(key); -} -function setHooks(key, hooks) { - hooksMap.set(key, hooks); -} -function getHooks(key) { - return hooksMap.get(key); -} - -class PendingError extends Error { - constructor(message, task) { - super(message); - this.message = message; - this.taskId = task.id; - } - code = "VITEST_PENDING"; - taskId; -} - -const collectorContext = { - tasks: [], - currentSuite: null -}; -function collectTask(task) { - var _a; - (_a = collectorContext.currentSuite) == null ? void 0 : _a.tasks.push(task); -} -async function runWithSuite(suite, fn) { - const prev = collectorContext.currentSuite; - collectorContext.currentSuite = suite; - await fn(); - collectorContext.currentSuite = prev; -} -function withTimeout(fn, timeout, isHook = false) { - if (timeout <= 0 || timeout === Number.POSITIVE_INFINITY) { - return fn; - } - const { setTimeout, clearTimeout } = getSafeTimers(); - return (...args) => { - return Promise.race([ - fn(...args), - new Promise((resolve, reject) => { - var _a; - const timer = setTimeout(() => { - clearTimeout(timer); - reject(new Error(makeTimeoutMsg(isHook, timeout))); - }, timeout); - (_a = timer.unref) == null ? void 0 : _a.call(timer); - }) - ]); - }; -} -function createTestContext(test, runner) { - var _a; - const context = function() { - throw new Error("done() callback is deprecated, use promise instead"); - }; - context.task = test; - context.skip = () => { - test.pending = true; - throw new PendingError("test is skipped; abort execution", test); - }; - context.onTestFailed = (fn) => { - test.onFailed || (test.onFailed = []); - test.onFailed.push(fn); - }; - context.onTestFinished = (fn) => { - test.onFinished || (test.onFinished = []); - test.onFinished.push(fn); - }; - return ((_a = runner.extendTaskContext) == null ? void 0 : _a.call(runner, context)) || context; -} -function makeTimeoutMsg(isHook, timeout) { - return `${isHook ? "Hook" : "Test"} timed out in ${timeout}ms. -If this is a long-running ${isHook ? "hook" : "test"}, pass a timeout value as the last argument or configure it globally with "${isHook ? "hookTimeout" : "testTimeout"}".`; -} - -function mergeContextFixtures(fixtures, context = {}) { - const fixtureOptionKeys = ["auto"]; - const fixtureArray = Object.entries(fixtures).map( - ([prop, value]) => { - const fixtureItem = { value }; - if (Array.isArray(value) && value.length >= 2 && isObject(value[1]) && Object.keys(value[1]).some((key) => fixtureOptionKeys.includes(key))) { - Object.assign(fixtureItem, value[1]); - fixtureItem.value = value[0]; - } - fixtureItem.prop = prop; - fixtureItem.isFn = typeof fixtureItem.value === "function"; - return fixtureItem; - } - ); - if (Array.isArray(context.fixtures)) { - context.fixtures = context.fixtures.concat(fixtureArray); - } else { - context.fixtures = fixtureArray; - } - fixtureArray.forEach((fixture) => { - if (fixture.isFn) { - const usedProps = getUsedProps(fixture.value); - if (usedProps.length) { - fixture.deps = context.fixtures.filter( - ({ prop }) => prop !== fixture.prop && usedProps.includes(prop) - ); - } - } - }); - return context; -} -const fixtureValueMaps = /* @__PURE__ */ new Map(); -const cleanupFnArrayMap = /* @__PURE__ */ new Map(); -async function callFixtureCleanup(context) { - const cleanupFnArray = cleanupFnArrayMap.get(context) ?? []; - for (const cleanup of cleanupFnArray.reverse()) { - await cleanup(); - } - cleanupFnArrayMap.delete(context); -} -function withFixtures(fn, testContext) { - return (hookContext) => { - const context = hookContext || testContext; - if (!context) { - return fn({}); - } - const fixtures = getFixture(context); - if (!(fixtures == null ? void 0 : fixtures.length)) { - return fn(context); - } - const usedProps = getUsedProps(fn); - const hasAutoFixture = fixtures.some(({ auto }) => auto); - if (!usedProps.length && !hasAutoFixture) { - return fn(context); - } - if (!fixtureValueMaps.get(context)) { - fixtureValueMaps.set(context, /* @__PURE__ */ new Map()); - } - const fixtureValueMap = fixtureValueMaps.get(context); - if (!cleanupFnArrayMap.has(context)) { - cleanupFnArrayMap.set(context, []); - } - const cleanupFnArray = cleanupFnArrayMap.get(context); - const usedFixtures = fixtures.filter( - ({ prop, auto }) => auto || usedProps.includes(prop) - ); - const pendingFixtures = resolveDeps(usedFixtures); - if (!pendingFixtures.length) { - return fn(context); - } - async function resolveFixtures() { - for (const fixture of pendingFixtures) { - if (fixtureValueMap.has(fixture)) { - continue; - } - const resolvedValue = fixture.isFn ? await resolveFixtureFunction(fixture.value, context, cleanupFnArray) : fixture.value; - context[fixture.prop] = resolvedValue; - fixtureValueMap.set(fixture, resolvedValue); - cleanupFnArray.unshift(() => { - fixtureValueMap.delete(fixture); - }); - } - } - return resolveFixtures().then(() => fn(context)); - }; -} -async function resolveFixtureFunction(fixtureFn, context, cleanupFnArray) { - const useFnArgPromise = createDefer(); - let isUseFnArgResolved = false; - const fixtureReturn = fixtureFn(context, async (useFnArg) => { - isUseFnArgResolved = true; - useFnArgPromise.resolve(useFnArg); - const useReturnPromise = createDefer(); - cleanupFnArray.push(async () => { - useReturnPromise.resolve(); - await fixtureReturn; - }); - await useReturnPromise; - }).catch((e) => { - if (!isUseFnArgResolved) { - useFnArgPromise.reject(e); - return; - } - throw e; - }); - return useFnArgPromise; -} -function resolveDeps(fixtures, depSet = /* @__PURE__ */ new Set(), pendingFixtures = []) { - fixtures.forEach((fixture) => { - if (pendingFixtures.includes(fixture)) { - return; - } - if (!fixture.isFn || !fixture.deps) { - pendingFixtures.push(fixture); - return; - } - if (depSet.has(fixture)) { - throw new Error( - `Circular fixture dependency detected: ${fixture.prop} <- ${[...depSet].reverse().map((d) => d.prop).join(" <- ")}` - ); - } - depSet.add(fixture); - resolveDeps(fixture.deps, depSet, pendingFixtures); - pendingFixtures.push(fixture); - depSet.clear(); - }); - return pendingFixtures; -} -function getUsedProps(fn) { - const match = fn.toString().match(/[^(]*\(([^)]*)/); - if (!match) { - return []; - } - const args = splitByComma(match[1]); - if (!args.length) { - return []; - } - let first = args[0]; - if ("__VITEST_FIXTURE_INDEX__" in fn) { - first = args[fn.__VITEST_FIXTURE_INDEX__]; - if (!first) { - return []; - } - } - if (!(first.startsWith("{") && first.endsWith("}"))) { - throw new Error( - `The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "${first}".` - ); - } - const _first = first.slice(1, -1).replace(/\s/g, ""); - const props = splitByComma(_first).map((prop) => { - return prop.replace(/:.*|=.*/g, ""); - }); - const last = props.at(-1); - if (last && last.startsWith("...")) { - throw new Error( - `Rest parameters are not supported in fixtures, received "${last}".` - ); - } - return props; -} -function splitByComma(s) { - const result = []; - const stack = []; - let start = 0; - for (let i = 0; i < s.length; i++) { - if (s[i] === "{" || s[i] === "[") { - stack.push(s[i] === "{" ? "}" : "]"); - } else if (s[i] === stack[stack.length - 1]) { - stack.pop(); - } else if (!stack.length && s[i] === ",") { - const token = s.substring(start, i).trim(); - if (token) { - result.push(token); - } - start = i + 1; - } - } - const lastToken = s.substring(start).trim(); - if (lastToken) { - result.push(lastToken); - } - return result; -} - -let _test; -function setCurrentTest(test) { - _test = test; -} -function getCurrentTest() { - return _test; -} - -const suite = createSuite(); -const test = createTest(function(name, optionsOrFn, optionsOrTest) { - if (getCurrentTest()) { - throw new Error( - 'Calling the test function inside another test function is not allowed. Please put it inside "describe" or "suite" so it can be properly collected.' - ); - } - getCurrentSuite().test.fn.call( - this, - formatName(name), - optionsOrFn, - optionsOrTest - ); -}); -const describe = suite; -const it = test; -let runner; -let defaultSuite; -let currentTestFilepath; -function getDefaultSuite() { - return defaultSuite; -} -function getTestFilepath() { - return currentTestFilepath; -} -function getRunner() { - return runner; -} -function createDefaultSuite(runner2) { - const config = runner2.config.sequence; - const api = config.shuffle ? suite.shuffle : suite; - return api("", { concurrent: config.concurrent }, () => { - }); -} -function clearCollectorContext(filepath, currentRunner) { - if (!defaultSuite) { - defaultSuite = createDefaultSuite(currentRunner); - } - runner = currentRunner; - currentTestFilepath = filepath; - collectorContext.tasks.length = 0; - defaultSuite.clear(); - collectorContext.currentSuite = defaultSuite; -} -function getCurrentSuite() { - return collectorContext.currentSuite || defaultSuite; -} -function createSuiteHooks() { - return { - beforeAll: [], - afterAll: [], - beforeEach: [], - afterEach: [] - }; -} -function parseArguments(optionsOrFn, optionsOrTest) { - let options = {}; - let fn = () => { - }; - if (typeof optionsOrTest === "object") { - if (typeof optionsOrFn === "object") { - throw new TypeError( - "Cannot use two objects as arguments. Please provide options and a function callback in that order." - ); - } - options = optionsOrTest; - } else if (typeof optionsOrTest === "number") { - options = { timeout: optionsOrTest }; - } else if (typeof optionsOrFn === "object") { - options = optionsOrFn; - } - if (typeof optionsOrFn === "function") { - if (typeof optionsOrTest === "function") { - throw new TypeError( - "Cannot use two functions as arguments. Please use the second argument for options." - ); - } - fn = optionsOrFn; - } else if (typeof optionsOrTest === "function") { - fn = optionsOrTest; - } - return { - options, - handler: fn - }; -} -function createSuiteCollector(name, factory = () => { -}, mode, shuffle, each, suiteOptions) { - const tasks = []; - const factoryQueue = []; - let suite2; - initSuite(true); - const task = function(name2 = "", options = {}) { - const task2 = { - id: "", - name: name2, - suite: void 0, - each: options.each, - fails: options.fails, - context: void 0, - type: "custom", - file: void 0, - retry: options.retry ?? runner.config.retry, - repeats: options.repeats, - mode: options.only ? "only" : options.skip ? "skip" : options.todo ? "todo" : "run", - meta: options.meta ?? /* @__PURE__ */ Object.create(null) - }; - const handler = options.handler; - if (options.concurrent || !options.sequential && runner.config.sequence.concurrent) { - task2.concurrent = true; - } - if (shuffle) { - task2.shuffle = true; - } - const context = createTestContext(task2, runner); - Object.defineProperty(task2, "context", { - value: context, - enumerable: false - }); - setFixture(context, options.fixtures); - if (handler) { - setFn( - task2, - withTimeout( - withFixtures(handler, context), - (options == null ? void 0 : options.timeout) ?? runner.config.testTimeout - ) - ); - } - if (runner.config.includeTaskLocation) { - const limit = Error.stackTraceLimit; - Error.stackTraceLimit = 15; - const error = new Error("stacktrace").stack; - Error.stackTraceLimit = limit; - const stack = findTestFileStackTrace(error, task2.each ?? false); - if (stack) { - task2.location = stack; - } - } - tasks.push(task2); - return task2; - }; - const test2 = createTest(function(name2, optionsOrFn, optionsOrTest) { - let { options, handler } = parseArguments(optionsOrFn, optionsOrTest); - if (typeof suiteOptions === "object") { - options = Object.assign({}, suiteOptions, options); - } - options.concurrent = this.concurrent || !this.sequential && (options == null ? void 0 : options.concurrent); - options.sequential = this.sequential || !this.concurrent && (options == null ? void 0 : options.sequential); - const test3 = task(formatName(name2), { - ...this, - ...options, - handler - }); - test3.type = "test"; - }); - const collector = { - type: "collector", - name, - mode, - options: suiteOptions, - test: test2, - tasks, - collect, - task, - clear, - on: addHook - }; - function addHook(name2, ...fn) { - getHooks(suite2)[name2].push(...fn); - } - function initSuite(includeLocation) { - if (typeof suiteOptions === "number") { - suiteOptions = { timeout: suiteOptions }; - } - suite2 = { - id: "", - type: "suite", - name, - mode, - each, - file: void 0, - shuffle, - tasks: [], - meta: /* @__PURE__ */ Object.create(null), - concurrent: suiteOptions == null ? void 0 : suiteOptions.concurrent - }; - if (runner && includeLocation && runner.config.includeTaskLocation) { - const limit = Error.stackTraceLimit; - Error.stackTraceLimit = 15; - const error = new Error("stacktrace").stack; - Error.stackTraceLimit = limit; - const stack = findTestFileStackTrace(error, suite2.each ?? false); - if (stack) { - suite2.location = stack; - } - } - setHooks(suite2, createSuiteHooks()); - } - function clear() { - tasks.length = 0; - factoryQueue.length = 0; - initSuite(false); - } - async function collect(file) { - if (!file) { - throw new TypeError("File is required to collect tasks."); - } - factoryQueue.length = 0; - if (factory) { - await runWithSuite(collector, () => factory(test2)); - } - const allChildren = []; - for (const i of [...factoryQueue, ...tasks]) { - allChildren.push(i.type === "collector" ? await i.collect(file) : i); - } - suite2.file = file; - suite2.tasks = allChildren; - allChildren.forEach((task2) => { - task2.suite = suite2; - task2.file = file; - }); - return suite2; - } - collectTask(collector); - return collector; -} -function createSuite() { - function suiteFn(name, factoryOrOptions, optionsOrFactory = {}) { - const mode = this.only ? "only" : this.skip ? "skip" : this.todo ? "todo" : "run"; - const currentSuite = getCurrentSuite(); - let { options, handler: factory } = parseArguments( - factoryOrOptions, - optionsOrFactory - ); - if (currentSuite == null ? void 0 : currentSuite.options) { - options = { ...currentSuite.options, ...options }; - } - const isConcurrent = options.concurrent || this.concurrent && !this.sequential; - const isSequential = options.sequential || this.sequential && !this.concurrent; - options.concurrent = isConcurrent && !isSequential; - options.sequential = isSequential && !isConcurrent; - return createSuiteCollector( - formatName(name), - factory, - mode, - this.shuffle, - this.each, - options - ); - } - suiteFn.each = function(cases, ...args) { - const suite2 = this.withContext(); - this.setContext("each", true); - if (Array.isArray(cases) && args.length) { - cases = formatTemplateString(cases, args); - } - return (name, optionsOrFn, fnOrOptions) => { - const _name = formatName(name); - const arrayOnlyCases = cases.every(Array.isArray); - const { options, handler } = parseArguments(optionsOrFn, fnOrOptions); - const fnFirst = typeof optionsOrFn === "function"; - cases.forEach((i, idx) => { - const items = Array.isArray(i) ? i : [i]; - if (fnFirst) { - if (arrayOnlyCases) { - suite2( - formatTitle(_name, items, idx), - () => handler(...items), - options - ); - } else { - suite2(formatTitle(_name, items, idx), () => handler(i), options); - } - } else { - if (arrayOnlyCases) { - suite2(formatTitle(_name, items, idx), options, () => handler(...items)); - } else { - suite2(formatTitle(_name, items, idx), options, () => handler(i)); - } - } - }); - this.setContext("each", void 0); - }; - }; - suiteFn.skipIf = (condition) => condition ? suite.skip : suite; - suiteFn.runIf = (condition) => condition ? suite : suite.skip; - return createChainable( - ["concurrent", "sequential", "shuffle", "skip", "only", "todo"], - suiteFn - ); -} -function createTaskCollector(fn, context) { - const taskFn = fn; - taskFn.each = function(cases, ...args) { - const test2 = this.withContext(); - this.setContext("each", true); - if (Array.isArray(cases) && args.length) { - cases = formatTemplateString(cases, args); - } - return (name, optionsOrFn, fnOrOptions) => { - const _name = formatName(name); - const arrayOnlyCases = cases.every(Array.isArray); - const { options, handler } = parseArguments(optionsOrFn, fnOrOptions); - const fnFirst = typeof optionsOrFn === "function"; - cases.forEach((i, idx) => { - const items = Array.isArray(i) ? i : [i]; - if (fnFirst) { - if (arrayOnlyCases) { - test2( - formatTitle(_name, items, idx), - () => handler(...items), - options - ); - } else { - test2(formatTitle(_name, items, idx), () => handler(i), options); - } - } else { - if (arrayOnlyCases) { - test2(formatTitle(_name, items, idx), options, () => handler(...items)); - } else { - test2(formatTitle(_name, items, idx), options, () => handler(i)); - } - } - }); - this.setContext("each", void 0); - }; - }; - taskFn.for = function(cases, ...args) { - const test2 = this.withContext(); - if (Array.isArray(cases) && args.length) { - cases = formatTemplateString(cases, args); - } - return (name, optionsOrFn, fnOrOptions) => { - const _name = formatName(name); - const { options, handler } = parseArguments(optionsOrFn, fnOrOptions); - cases.forEach((item, idx) => { - const handlerWrapper = (ctx) => handler(item, ctx); - handlerWrapper.__VITEST_FIXTURE_INDEX__ = 1; - handlerWrapper.toString = () => handler.toString(); - test2(formatTitle(_name, toArray(item), idx), options, handlerWrapper); - }); - }; - }; - taskFn.skipIf = function(condition) { - return condition ? this.skip : this; - }; - taskFn.runIf = function(condition) { - return condition ? this : this.skip; - }; - taskFn.extend = function(fixtures) { - const _context = mergeContextFixtures(fixtures, context); - return createTest(function fn2(name, optionsOrFn, optionsOrTest) { - getCurrentSuite().test.fn.call( - this, - formatName(name), - optionsOrFn, - optionsOrTest - ); - }, _context); - }; - const _test = createChainable( - ["concurrent", "sequential", "skip", "only", "todo", "fails"], - taskFn - ); - if (context) { - _test.mergeContext(context); - } - return _test; -} -function createTest(fn, context) { - return createTaskCollector(fn, context); -} -function formatName(name) { - return typeof name === "string" ? name : name instanceof Function ? name.name || "" : String(name); -} -function formatTitle(template, items, idx) { - if (template.includes("%#")) { - template = template.replace(/%%/g, "__vitest_escaped_%__").replace(/%#/g, `${idx}`).replace(/__vitest_escaped_%__/g, "%%"); - } - const count = template.split("%").length - 1; - if (template.includes("%f")) { - const placeholders = template.match(/%f/g) || []; - placeholders.forEach((_, i) => { - if (isNegativeNaN(items[i]) || Object.is(items[i], -0)) { - let occurrence = 0; - template = template.replace(/%f/g, (match) => { - occurrence++; - return occurrence === i + 1 ? "-%f" : match; - }); - } - }); - } - let formatted = format(template, ...items.slice(0, count)); - if (isObject(items[0])) { - formatted = formatted.replace( - /\$([$\w.]+)/g, - // https://github.com/chaijs/chai/pull/1490 - (_, key) => { - var _a, _b; - return objDisplay(objectAttr(items[0], key), { - truncate: (_b = (_a = runner == null ? void 0 : runner.config) == null ? void 0 : _a.chaiConfig) == null ? void 0 : _b.truncateThreshold - }); - } - ); - } - return formatted; -} -function formatTemplateString(cases, args) { - const header = cases.join("").trim().replace(/ /g, "").split("\n").map((i) => i.split("|"))[0]; - const res = []; - for (let i = 0; i < Math.floor(args.length / header.length); i++) { - const oneCase = {}; - for (let j = 0; j < header.length; j++) { - oneCase[header[j]] = args[i * header.length + j]; - } - res.push(oneCase); - } - return res; -} -function findTestFileStackTrace(error, each) { - const lines = error.split("\n").slice(1); - for (const line of lines) { - const stack = parseSingleStack(line); - if (stack && stack.file === getTestFilepath()) { - return { - line: stack.line, - /** - * test.each([1, 2])('name') - * ^ leads here, but should - * ^ lead here - * in source maps it's the same boundary, so it just points to the start of it - */ - column: each ? stack.column + 1 : stack.column - }; - } - } -} - -async function runSetupFiles(config, files, runner) { - if (config.sequence.setupFiles === "parallel") { - await Promise.all( - files.map(async (fsPath) => { - await runner.importFile(fsPath, "setup"); - }) - ); - } else { - for (const fsPath of files) { - await runner.importFile(fsPath, "setup"); - } - } -} - -const now$1 = Date.now; -async function collectTests(paths, runner) { - var _a; - const files = []; - const config = runner.config; - for (const filepath of paths) { - const file = createFileTask(filepath, config.root, config.name, runner.pool); - (_a = runner.onCollectStart) == null ? void 0 : _a.call(runner, file); - clearCollectorContext(filepath, runner); - try { - const setupFiles = toArray(config.setupFiles); - if (setupFiles.length) { - const setupStart = now$1(); - await runSetupFiles(config, setupFiles, runner); - const setupEnd = now$1(); - file.setupDuration = setupEnd - setupStart; - } else { - file.setupDuration = 0; - } - const collectStart = now$1(); - await runner.importFile(filepath, "collect"); - const defaultTasks = await getDefaultSuite().collect(file); - const fileHooks = createSuiteHooks(); - mergeHooks(fileHooks, getHooks(defaultTasks)); - for (const c of [...defaultTasks.tasks, ...collectorContext.tasks]) { - if (c.type === "test" || c.type === "custom" || c.type === "suite") { - file.tasks.push(c); - } else if (c.type === "collector") { - const suite = await c.collect(file); - if (suite.name || suite.tasks.length) { - mergeHooks(fileHooks, getHooks(suite)); - file.tasks.push(suite); - } - } else { - c; - } - } - setHooks(file, fileHooks); - file.collectDuration = now$1() - collectStart; - } catch (e) { - const error = processError(e); - file.result = { - state: "fail", - errors: [error] - }; - } - calculateSuiteHash(file); - file.tasks.forEach((task) => { - var _a2; - if (((_a2 = task.suite) == null ? void 0 : _a2.id) === "") { - delete task.suite; - } - }); - const hasOnlyTasks = someTasksAreOnly(file); - interpretTaskModes( - file, - config.testNamePattern, - hasOnlyTasks, - false, - config.allowOnly - ); - files.push(file); - } - return files; -} -function mergeHooks(baseHooks, hooks) { - for (const _key in hooks) { - const key = _key; - baseHooks[key].push(...hooks[key]); - } - return baseHooks; -} - -const now = Date.now; -function updateSuiteHookState(suite, name, state, runner) { - var _a; - if (!suite.result) { - suite.result = { state: "run" }; - } - if (!((_a = suite.result) == null ? void 0 : _a.hooks)) { - suite.result.hooks = {}; - } - const suiteHooks = suite.result.hooks; - if (suiteHooks) { - suiteHooks[name] = state; - updateTask(suite, runner); - } -} -function getSuiteHooks(suite, name, sequence) { - const hooks = getHooks(suite)[name]; - if (sequence === "stack" && (name === "afterAll" || name === "afterEach")) { - return hooks.slice().reverse(); - } - return hooks; -} -async function callTaskHooks(task, hooks, sequence) { - if (sequence === "stack") { - hooks = hooks.slice().reverse(); - } - if (sequence === "parallel") { - await Promise.all(hooks.map((fn) => fn(task.result))); - } else { - for (const fn of hooks) { - await fn(task.result); - } - } -} -async function callSuiteHook(suite, currentTask, name, runner, args) { - const sequence = runner.config.sequence.hooks; - const callbacks = []; - const parentSuite = "filepath" in suite ? null : suite.suite || suite.file; - if (name === "beforeEach" && parentSuite) { - callbacks.push( - ...await callSuiteHook(parentSuite, currentTask, name, runner, args) - ); - } - updateSuiteHookState(currentTask, name, "run", runner); - const hooks = getSuiteHooks(suite, name, sequence); - if (sequence === "parallel") { - callbacks.push( - ...await Promise.all(hooks.map((hook) => hook(...args))) - ); - } else { - for (const hook of hooks) { - callbacks.push(await hook(...args)); - } - } - updateSuiteHookState(currentTask, name, "pass", runner); - if (name === "afterEach" && parentSuite) { - callbacks.push( - ...await callSuiteHook(parentSuite, currentTask, name, runner, args) - ); - } - return callbacks; -} -const packs = /* @__PURE__ */ new Map(); -let updateTimer; -let previousUpdate; -function updateTask(task, runner) { - packs.set(task.id, [task.result, task.meta]); - const { clearTimeout, setTimeout } = getSafeTimers(); - clearTimeout(updateTimer); - updateTimer = setTimeout(() => { - previousUpdate = sendTasksUpdate(runner); - }, 10); -} -async function sendTasksUpdate(runner) { - var _a; - const { clearTimeout } = getSafeTimers(); - clearTimeout(updateTimer); - await previousUpdate; - if (packs.size) { - const taskPacks = Array.from(packs).map(([id, task]) => { - return [id, task[0], task[1]]; - }); - const p = (_a = runner.onTaskUpdate) == null ? void 0 : _a.call(runner, taskPacks); - packs.clear(); - return p; - } -} -async function callCleanupHooks(cleanups) { - await Promise.all( - cleanups.map(async (fn) => { - if (typeof fn !== "function") { - return; - } - await fn(); - }) - ); -} -async function runTest(test, runner) { - var _a, _b, _c, _d, _e, _f, _g; - await ((_a = runner.onBeforeRunTask) == null ? void 0 : _a.call(runner, test)); - if (test.mode !== "run") { - return; - } - if (((_b = test.result) == null ? void 0 : _b.state) === "fail") { - updateTask(test, runner); - return; - } - const start = now(); - test.result = { - state: "run", - startTime: start, - retryCount: 0 - }; - updateTask(test, runner); - setCurrentTest(test); - const suite = test.suite || test.file; - const repeats = test.repeats ?? 0; - for (let repeatCount = 0; repeatCount <= repeats; repeatCount++) { - const retry = test.retry ?? 0; - for (let retryCount = 0; retryCount <= retry; retryCount++) { - let beforeEachCleanups = []; - try { - await ((_c = runner.onBeforeTryTask) == null ? void 0 : _c.call(runner, test, { - retry: retryCount, - repeats: repeatCount - })); - test.result.repeatCount = repeatCount; - beforeEachCleanups = await callSuiteHook( - suite, - test, - "beforeEach", - runner, - [test.context, suite] - ); - if (runner.runTask) { - await runner.runTask(test); - } else { - const fn = getFn(test); - if (!fn) { - throw new Error( - "Test function is not found. Did you add it using `setFn`?" - ); - } - await fn(); - } - if (test.promises) { - const result = await Promise.allSettled(test.promises); - const errors = result.map((r) => r.status === "rejected" ? r.reason : void 0).filter(Boolean); - if (errors.length) { - throw errors; - } - } - await ((_d = runner.onAfterTryTask) == null ? void 0 : _d.call(runner, test, { - retry: retryCount, - repeats: repeatCount - })); - if (test.result.state !== "fail") { - if (!test.repeats) { - test.result.state = "pass"; - } else if (test.repeats && retry === retryCount) { - test.result.state = "pass"; - } - } - } catch (e) { - failTask(test.result, e, runner.config.diffOptions); - } - if (test.pending || ((_e = test.result) == null ? void 0 : _e.state) === "skip") { - test.mode = "skip"; - test.result = { state: "skip" }; - updateTask(test, runner); - setCurrentTest(void 0); - return; - } - try { - await ((_f = runner.onTaskFinished) == null ? void 0 : _f.call(runner, test)); - } catch (e) { - failTask(test.result, e, runner.config.diffOptions); - } - try { - await callSuiteHook(suite, test, "afterEach", runner, [ - test.context, - suite - ]); - await callCleanupHooks(beforeEachCleanups); - await callFixtureCleanup(test.context); - } catch (e) { - failTask(test.result, e, runner.config.diffOptions); - } - if (test.result.state === "pass") { - break; - } - if (retryCount < retry) { - test.result.state = "run"; - test.result.retryCount = (test.result.retryCount ?? 0) + 1; - } - updateTask(test, runner); - } - } - try { - await callTaskHooks(test, test.onFinished || [], "stack"); - } catch (e) { - failTask(test.result, e, runner.config.diffOptions); - } - if (test.result.state === "fail") { - try { - await callTaskHooks( - test, - test.onFailed || [], - runner.config.sequence.hooks - ); - } catch (e) { - failTask(test.result, e, runner.config.diffOptions); - } - } - if (test.fails) { - if (test.result.state === "pass") { - const error = processError(new Error("Expect test to fail")); - test.result.state = "fail"; - test.result.errors = [error]; - } else { - test.result.state = "pass"; - test.result.errors = void 0; - } - } - setCurrentTest(void 0); - test.result.duration = now() - start; - await ((_g = runner.onAfterRunTask) == null ? void 0 : _g.call(runner, test)); - updateTask(test, runner); -} -function failTask(result, err, diffOptions) { - if (err instanceof PendingError) { - result.state = "skip"; - return; - } - result.state = "fail"; - const errors = Array.isArray(err) ? err : [err]; - for (const e of errors) { - const error = processError(e, diffOptions); - result.errors ?? (result.errors = []); - result.errors.push(error); - } -} -function markTasksAsSkipped(suite, runner) { - suite.tasks.forEach((t) => { - t.mode = "skip"; - t.result = { ...t.result, state: "skip" }; - updateTask(t, runner); - if (t.type === "suite") { - markTasksAsSkipped(t, runner); - } - }); -} -async function runSuite(suite, runner) { - var _a, _b, _c, _d; - await ((_a = runner.onBeforeRunSuite) == null ? void 0 : _a.call(runner, suite)); - if (((_b = suite.result) == null ? void 0 : _b.state) === "fail") { - markTasksAsSkipped(suite, runner); - updateTask(suite, runner); - return; - } - const start = now(); - suite.result = { - state: "run", - startTime: start - }; - updateTask(suite, runner); - let beforeAllCleanups = []; - if (suite.mode === "skip") { - suite.result.state = "skip"; - } else if (suite.mode === "todo") { - suite.result.state = "todo"; - } else { - try { - beforeAllCleanups = await callSuiteHook( - suite, - suite, - "beforeAll", - runner, - [suite] - ); - if (runner.runSuite) { - await runner.runSuite(suite); - } else { - for (let tasksGroup of partitionSuiteChildren(suite)) { - if (tasksGroup[0].concurrent === true) { - await Promise.all(tasksGroup.map((c) => runSuiteChild(c, runner))); - } else { - const { sequence } = runner.config; - if (sequence.shuffle || suite.shuffle) { - const suites = tasksGroup.filter( - (group) => group.type === "suite" - ); - const tests = tasksGroup.filter((group) => group.type === "test"); - const groups = shuffle([suites, tests], sequence.seed); - tasksGroup = groups.flatMap( - (group) => shuffle(group, sequence.seed) - ); - } - for (const c of tasksGroup) { - await runSuiteChild(c, runner); - } - } - } - } - } catch (e) { - failTask(suite.result, e, runner.config.diffOptions); - } - try { - await callSuiteHook(suite, suite, "afterAll", runner, [suite]); - await callCleanupHooks(beforeAllCleanups); - } catch (e) { - failTask(suite.result, e, runner.config.diffOptions); - } - if (suite.mode === "run") { - if (!runner.config.passWithNoTests && !hasTests(suite)) { - suite.result.state = "fail"; - if (!((_c = suite.result.errors) == null ? void 0 : _c.length)) { - const error = processError( - new Error(`No test found in suite ${suite.name}`) - ); - suite.result.errors = [error]; - } - } else if (hasFailed(suite)) { - suite.result.state = "fail"; - } else { - suite.result.state = "pass"; - } - } - updateTask(suite, runner); - suite.result.duration = now() - start; - await ((_d = runner.onAfterRunSuite) == null ? void 0 : _d.call(runner, suite)); - } -} -let limitMaxConcurrency; -async function runSuiteChild(c, runner) { - if (c.type === "test" || c.type === "custom") { - return limitMaxConcurrency(() => runTest(c, runner)); - } else if (c.type === "suite") { - return runSuite(c, runner); - } -} -async function runFiles(files, runner) { - var _a, _b; - limitMaxConcurrency ?? (limitMaxConcurrency = limitConcurrency(runner.config.maxConcurrency)); - for (const file of files) { - if (!file.tasks.length && !runner.config.passWithNoTests) { - if (!((_b = (_a = file.result) == null ? void 0 : _a.errors) == null ? void 0 : _b.length)) { - const error = processError( - new Error(`No test suite found in file ${file.filepath}`) - ); - file.result = { - state: "fail", - errors: [error] - }; - } - } - await runSuite(file, runner); - } -} -async function startTests(paths, runner) { - var _a, _b, _c, _d; - await ((_a = runner.onBeforeCollect) == null ? void 0 : _a.call(runner, paths)); - const files = await collectTests(paths, runner); - await ((_b = runner.onCollected) == null ? void 0 : _b.call(runner, files)); - await ((_c = runner.onBeforeRunFiles) == null ? void 0 : _c.call(runner, files)); - await runFiles(files, runner); - await ((_d = runner.onAfterRunFiles) == null ? void 0 : _d.call(runner, files)); - await sendTasksUpdate(runner); - return files; -} -async function publicCollect(paths, runner) { - var _a, _b; - await ((_a = runner.onBeforeCollect) == null ? void 0 : _a.call(runner, paths)); - const files = await collectTests(paths, runner); - await ((_b = runner.onCollected) == null ? void 0 : _b.call(runner, files)); - return files; -} - -function getDefaultHookTimeout() { - return getRunner().config.hookTimeout; -} -function beforeAll(fn, timeout) { - return getCurrentSuite().on( - "beforeAll", - withTimeout(fn, timeout ?? getDefaultHookTimeout(), true) - ); -} -function afterAll(fn, timeout) { - return getCurrentSuite().on( - "afterAll", - withTimeout(fn, timeout ?? getDefaultHookTimeout(), true) - ); -} -function beforeEach(fn, timeout) { - return getCurrentSuite().on( - "beforeEach", - withTimeout(withFixtures(fn), timeout ?? getDefaultHookTimeout(), true) - ); -} -function afterEach(fn, timeout) { - return getCurrentSuite().on( - "afterEach", - withTimeout(withFixtures(fn), timeout ?? getDefaultHookTimeout(), true) - ); -} -const onTestFailed = createTestHook( - "onTestFailed", - (test, handler, timeout) => { - test.onFailed || (test.onFailed = []); - test.onFailed.push( - withTimeout(handler, timeout ?? getDefaultHookTimeout(), true) - ); - } -); -const onTestFinished = createTestHook( - "onTestFinished", - (test, handler, timeout) => { - test.onFinished || (test.onFinished = []); - test.onFinished.push( - withTimeout(handler, timeout ?? getDefaultHookTimeout(), true) - ); - } -); -function createTestHook(name, handler) { - return (fn, timeout) => { - const current = getCurrentTest(); - if (!current) { - throw new Error(`Hook ${name}() can only be called inside a test`); - } - return handler(current, fn, timeout); - }; -} - -export { afterAll, afterEach, beforeAll, beforeEach, publicCollect as collectTests, createTaskCollector, describe, getCurrentSuite, getCurrentTest, getFn, getHooks, it, onTestFailed, onTestFinished, setFn, setHooks, startTests, suite, test, updateTask }; diff --git a/node_modules/@vitest/runner/dist/tasks-zB5uPauP.d.ts b/node_modules/@vitest/runner/dist/tasks-zB5uPauP.d.ts deleted file mode 100644 index 21f026b2..00000000 --- a/node_modules/@vitest/runner/dist/tasks-zB5uPauP.d.ts +++ /dev/null @@ -1,315 +0,0 @@ -import { ErrorWithDiff, Awaitable } from '@vitest/utils'; - -type ChainableFunction any, C = object> = F & { - [x in T]: ChainableFunction; -} & { - fn: (this: Record, ...args: Parameters) => ReturnType; -} & C; -declare function createChainable(keys: T[], fn: (this: Record, ...args: Args) => R): ChainableFunction R>; - -interface FixtureItem extends FixtureOptions { - prop: string; - value: any; - /** - * Indicates whether the fixture is a function - */ - isFn: boolean; - /** - * The dependencies(fixtures) of current fixture function. - */ - deps?: FixtureItem[]; -} - -type RunMode = 'run' | 'skip' | 'only' | 'todo'; -type TaskState = RunMode | 'pass' | 'fail'; -interface TaskBase { - id: string; - name: string; - mode: RunMode; - meta: TaskMeta; - each?: boolean; - concurrent?: boolean; - shuffle?: boolean; - suite?: Suite; - result?: TaskResult; - retry?: number; - repeats?: number; - location?: { - line: number; - column: number; - }; -} -interface TaskPopulated extends TaskBase { - file: File; - pending?: boolean; - result?: TaskResult; - fails?: boolean; - onFailed?: OnTestFailedHandler[]; - onFinished?: OnTestFinishedHandler[]; - /** - * Store promises (from async expects) to wait for them before finishing the test - */ - promises?: Promise[]; -} -interface TaskMeta { -} -interface TaskResult { - state: TaskState; - duration?: number; - startTime?: number; - heap?: number; - errors?: ErrorWithDiff[]; - htmlError?: string; - hooks?: Partial>; - retryCount?: number; - repeatCount?: number; -} -type TaskResultPack = [ - id: string, - result: TaskResult | undefined, - meta: TaskMeta -]; -interface Suite extends TaskBase { - file: File; - type: 'suite'; - tasks: Task[]; -} -interface File extends Suite { - pool?: string; - filepath: string; - projectName: string | undefined; - collectDuration?: number; - setupDuration?: number; - /** - * Whether the file is initiated without running any tests. - */ - local?: boolean; -} -interface Test extends TaskPopulated { - type: 'test'; - context: TaskContext & ExtraContext & TestContext; -} -interface Custom extends TaskPopulated { - type: 'custom'; - context: TaskContext & ExtraContext & TestContext; -} -type Task = Test | Suite | Custom | File; -type DoneCallback = (error?: any) => void; -type TestFunction = (context: ExtendedContext & ExtraContext) => Awaitable | void; -type ExtractEachCallbackArgs> = { - 1: [T[0]]; - 2: [T[0], T[1]]; - 3: [T[0], T[1], T[2]]; - 4: [T[0], T[1], T[2], T[3]]; - 5: [T[0], T[1], T[2], T[3], T[4]]; - 6: [T[0], T[1], T[2], T[3], T[4], T[5]]; - 7: [T[0], T[1], T[2], T[3], T[4], T[5], T[6]]; - 8: [T[0], T[1], T[2], T[3], T[4], T[5], T[6], T[7]]; - 9: [T[0], T[1], T[2], T[3], T[4], T[5], T[6], T[7], T[8]]; - 10: [T[0], T[1], T[2], T[3], T[4], T[5], T[6], T[7], T[8], T[9]]; - fallback: Array ? U : any>; -}[T extends Readonly<[any]> ? 1 : T extends Readonly<[any, any]> ? 2 : T extends Readonly<[any, any, any]> ? 3 : T extends Readonly<[any, any, any, any]> ? 4 : T extends Readonly<[any, any, any, any, any]> ? 5 : T extends Readonly<[any, any, any, any, any, any]> ? 6 : T extends Readonly<[any, any, any, any, any, any, any]> ? 7 : T extends Readonly<[any, any, any, any, any, any, any, any]> ? 8 : T extends Readonly<[any, any, any, any, any, any, any, any, any]> ? 9 : T extends Readonly<[any, any, any, any, any, any, any, any, any, any]> ? 10 : 'fallback']; -interface EachFunctionReturn { - /** - * @deprecated Use options as the second argument instead - */ - (name: string | Function, fn: (...args: T) => Awaitable, options: TestOptions): void; - (name: string | Function, fn: (...args: T) => Awaitable, options?: number | TestOptions): void; - (name: string | Function, options: TestOptions, fn: (...args: T) => Awaitable): void; -} -interface TestEachFunction { - (cases: ReadonlyArray): EachFunctionReturn; - >(cases: ReadonlyArray): EachFunctionReturn>; - (cases: ReadonlyArray): EachFunctionReturn; - (...args: [TemplateStringsArray, ...any]): EachFunctionReturn; -} -interface TestForFunctionReturn { - (name: string | Function, fn: (arg: Arg, context: Context) => Awaitable): void; - (name: string | Function, options: TestOptions, fn: (args: Arg, context: Context) => Awaitable): void; -} -interface TestForFunction { - (cases: ReadonlyArray): TestForFunctionReturn & ExtraContext>; - (strings: TemplateStringsArray, ...values: any[]): TestForFunctionReturn & ExtraContext>; -} -interface TestCollectorCallable { - /** - * @deprecated Use options as the second argument instead - */ - (name: string | Function, fn: TestFunction, options: TestOptions): void; - (name: string | Function, fn?: TestFunction, options?: number | TestOptions): void; - (name: string | Function, options?: TestOptions, fn?: TestFunction): void; -} -type ChainableTestAPI = ChainableFunction<'concurrent' | 'sequential' | 'only' | 'skip' | 'todo' | 'fails', TestCollectorCallable, { - each: TestEachFunction; - for: TestForFunction; -}>; -interface TestOptions { - /** - * Test timeout. - */ - timeout?: number; - /** - * Times to retry the test if fails. Useful for making flaky tests more stable. - * When retries is up, the last test error will be thrown. - * - * @default 0 - */ - retry?: number; - /** - * How many times the test will run. - * Only inner tests will repeat if set on `describe()`, nested `describe()` will inherit parent's repeat by default. - * - * @default 0 - */ - repeats?: number; - /** - * Whether suites and tests run concurrently. - * Tests inherit `concurrent` from `describe()` and nested `describe()` will inherit from parent's `concurrent`. - */ - concurrent?: boolean; - /** - * Whether tests run sequentially. - * Tests inherit `sequential` from `describe()` and nested `describe()` will inherit from parent's `sequential`. - */ - sequential?: boolean; - /** - * Whether the test should be skipped. - */ - skip?: boolean; - /** - * Should this test be the only one running in a suite. - */ - only?: boolean; - /** - * Whether the test should be skipped and marked as a todo. - */ - todo?: boolean; - /** - * Whether the test is expected to fail. If it does, the test will pass, otherwise it will fail. - */ - fails?: boolean; -} -interface ExtendedAPI { - skipIf: (condition: any) => ChainableTestAPI; - runIf: (condition: any) => ChainableTestAPI; -} -type CustomAPI = ChainableTestAPI & ExtendedAPI & { - extend: = object>(fixtures: Fixtures) => CustomAPI<{ - [K in keyof T | keyof ExtraContext]: K extends keyof T ? T[K] : K extends keyof ExtraContext ? ExtraContext[K] : never; - }>; -}; -type TestAPI = ChainableTestAPI & ExtendedAPI & { - extend: = object>(fixtures: Fixtures) => TestAPI<{ - [K in keyof T | keyof ExtraContext]: K extends keyof T ? T[K] : K extends keyof ExtraContext ? ExtraContext[K] : never; - }>; -}; -interface FixtureOptions { - /** - * Whether to automatically set up current fixture, even though it's not being used in tests. - */ - auto?: boolean; -} -type Use = (value: T) => Promise; -type FixtureFn = (context: Omit & ExtraContext, use: Use) => Promise; -type Fixture = ((...args: any) => any) extends T[K] ? T[K] extends any ? FixtureFn>> : never : T[K] | (T[K] extends any ? FixtureFn>> : never); -type Fixtures, ExtraContext = object> = { - [K in keyof T]: Fixture> | [Fixture>, FixtureOptions?]; -}; -type InferFixturesTypes = T extends TestAPI ? C : T; -interface SuiteCollectorCallable { - /** - * @deprecated Use options as the second argument instead - */ - (name: string | Function, fn: SuiteFactory, options: TestOptions): SuiteCollector; - (name: string | Function, fn?: SuiteFactory, options?: number | TestOptions): SuiteCollector; - (name: string | Function, options: TestOptions, fn?: SuiteFactory): SuiteCollector; -} -type ChainableSuiteAPI = ChainableFunction<'concurrent' | 'sequential' | 'only' | 'skip' | 'todo' | 'shuffle', SuiteCollectorCallable, { - each: TestEachFunction; -}>; -type SuiteAPI = ChainableSuiteAPI & { - skipIf: (condition: any) => ChainableSuiteAPI; - runIf: (condition: any) => ChainableSuiteAPI; -}; -/** - * @deprecated - */ -type HookListener = (...args: T) => Awaitable; -type HookCleanupCallback = (() => Awaitable) | void; -interface BeforeAllListener { - (suite: Readonly): Awaitable; -} -interface AfterAllListener { - (suite: Readonly): Awaitable; -} -interface BeforeEachListener { - (context: ExtendedContext & ExtraContext, suite: Readonly): Awaitable; -} -interface AfterEachListener { - (context: ExtendedContext & ExtraContext, suite: Readonly): Awaitable; -} -interface SuiteHooks { - beforeAll: BeforeAllListener[]; - afterAll: AfterAllListener[]; - beforeEach: BeforeEachListener[]; - afterEach: AfterEachListener[]; -} -interface TaskCustomOptions extends TestOptions { - concurrent?: boolean; - sequential?: boolean; - skip?: boolean; - only?: boolean; - todo?: boolean; - fails?: boolean; - each?: boolean; - meta?: Record; - fixtures?: FixtureItem[]; - handler?: (context: TaskContext) => Awaitable; -} -interface SuiteCollector { - readonly name: string; - readonly mode: RunMode; - options?: TestOptions; - type: 'collector'; - test: TestAPI; - tasks: (Suite | Custom | Test | SuiteCollector)[]; - task: (name: string, options?: TaskCustomOptions) => Custom; - collect: (file: File) => Promise; - clear: () => void; - on: >(name: T, ...fn: SuiteHooks[T]) => void; -} -type SuiteFactory = (test: TestAPI) => Awaitable; -interface RuntimeContext { - tasks: (SuiteCollector | Test)[]; - currentSuite: SuiteCollector | null; -} -interface TestContext { -} -interface TaskContext { - /** - * Metadata of the current test - */ - task: Readonly; - /** - * Extract hooks on test failed - */ - onTestFailed: (fn: OnTestFailedHandler) => void; - /** - * Extract hooks on test failed - */ - onTestFinished: (fn: OnTestFinishedHandler) => void; - /** - * Mark tests as skipped. All execution after this call will be skipped. - */ - skip: () => void; -} -type ExtendedContext = TaskContext & TestContext; -type OnTestFailedHandler = (result: TaskResult) => Awaitable; -type OnTestFinishedHandler = (result: TaskResult) => Awaitable; -interface TaskHook { - (fn: HookListener, timeout?: number): void; -} -type SequenceHooks = 'stack' | 'list' | 'parallel'; -type SequenceSetupFiles = 'list' | 'parallel'; - -export { type AfterAllListener as A, type BeforeAllListener as B, type Custom as C, type DoneCallback as D, type SuiteFactory as E, type File as F, type RuntimeContext as G, type HookListener as H, type InferFixturesTypes as I, type TestContext as J, type TaskContext as K, type ExtendedContext as L, type SequenceHooks as M, type SequenceSetupFiles as N, type OnTestFailedHandler as O, type RunMode as R, type Suite as S, type Task as T, type Use as U, type Test as a, type ChainableFunction as b, createChainable as c, type SuiteAPI as d, type TestAPI as e, type SuiteCollector as f, type CustomAPI as g, type BeforeEachListener as h, type AfterEachListener as i, type TaskHook as j, type OnTestFinishedHandler as k, type SuiteHooks as l, type TaskState as m, type TaskBase as n, type TaskPopulated as o, type TaskMeta as p, type TaskResult as q, type TaskResultPack as r, type TestFunction as s, type TestOptions as t, type FixtureOptions as u, type FixtureFn as v, type Fixture as w, type Fixtures as x, type HookCleanupCallback as y, type TaskCustomOptions as z }; diff --git a/node_modules/@vitest/runner/dist/types.d.ts b/node_modules/@vitest/runner/dist/types.d.ts deleted file mode 100644 index 1a717a6e..00000000 --- a/node_modules/@vitest/runner/dist/types.d.ts +++ /dev/null @@ -1,133 +0,0 @@ -import { M as SequenceHooks, N as SequenceSetupFiles, F as File, T as Task, S as Suite, r as TaskResultPack, a as Test, C as Custom, K as TaskContext, L as ExtendedContext } from './tasks-zB5uPauP.js'; -export { A as AfterAllListener, i as AfterEachListener, B as BeforeAllListener, h as BeforeEachListener, g as CustomAPI, D as DoneCallback, w as Fixture, v as FixtureFn, u as FixtureOptions, x as Fixtures, y as HookCleanupCallback, H as HookListener, I as InferFixturesTypes, O as OnTestFailedHandler, k as OnTestFinishedHandler, R as RunMode, G as RuntimeContext, d as SuiteAPI, f as SuiteCollector, E as SuiteFactory, l as SuiteHooks, n as TaskBase, z as TaskCustomOptions, j as TaskHook, p as TaskMeta, o as TaskPopulated, q as TaskResult, m as TaskState, e as TestAPI, J as TestContext, s as TestFunction, t as TestOptions, U as Use } from './tasks-zB5uPauP.js'; -import { DiffOptions } from '@vitest/utils/diff'; -import '@vitest/utils'; - -interface VitestRunnerConfig { - root: string; - setupFiles: string[]; - name?: string; - passWithNoTests: boolean; - testNamePattern?: RegExp; - allowOnly?: boolean; - sequence: { - shuffle?: boolean; - concurrent?: boolean; - seed: number; - hooks: SequenceHooks; - setupFiles: SequenceSetupFiles; - }; - chaiConfig?: { - truncateThreshold?: number; - }; - maxConcurrency: number; - testTimeout: number; - hookTimeout: number; - retry: number; - includeTaskLocation?: boolean; - diffOptions?: DiffOptions; -} -type VitestRunnerImportSource = 'collect' | 'setup'; -interface VitestRunnerConstructor { - new (config: VitestRunnerConfig): VitestRunner; -} -type CancelReason = 'keyboard-input' | 'test-failure' | (string & Record); -interface VitestRunner { - /** - * First thing that's getting called before actually collecting and running tests. - */ - onBeforeCollect?: (paths: string[]) => unknown; - /** - * Called after the file task was created but not collected yet. - */ - onCollectStart?: (file: File) => unknown; - /** - * Called after collecting tests and before "onBeforeRun". - */ - onCollected?: (files: File[]) => unknown; - /** - * Called when test runner should cancel next test runs. - * Runner should listen for this method and mark tests and suites as skipped in - * "onBeforeRunSuite" and "onBeforeRunTask" when called. - */ - onCancel?: (reason: CancelReason) => unknown; - /** - * Called before running a single test. Doesn't have "result" yet. - */ - onBeforeRunTask?: (test: Task) => unknown; - /** - * Called before actually running the test function. Already has "result" with "state" and "startTime". - */ - onBeforeTryTask?: (test: Task, options: { - retry: number; - repeats: number; - }) => unknown; - /** - * When the task has finished running, but before cleanup hooks are called - */ - onTaskFinished?: (test: Task) => unknown; - /** - * Called after result and state are set. - */ - onAfterRunTask?: (test: Task) => unknown; - /** - * Called right after running the test function. Doesn't have new state yet. Will not be called, if the test function throws. - */ - onAfterTryTask?: (test: Task, options: { - retry: number; - repeats: number; - }) => unknown; - /** - * Called before running a single suite. Doesn't have "result" yet. - */ - onBeforeRunSuite?: (suite: Suite) => unknown; - /** - * Called after running a single suite. Has state and result. - */ - onAfterRunSuite?: (suite: Suite) => unknown; - /** - * If defined, will be called instead of usual Vitest suite partition and handling. - * "before" and "after" hooks will not be ignored. - */ - runSuite?: (suite: Suite) => Promise; - /** - * If defined, will be called instead of usual Vitest handling. Useful, if you have your custom test function. - * "before" and "after" hooks will not be ignored. - */ - runTask?: (test: Task) => Promise; - /** - * Called, when a task is updated. The same as "onTaskUpdate" in a reporter, but this is running in the same thread as tests. - */ - onTaskUpdate?: (task: TaskResultPack[]) => Promise; - /** - * Called before running all tests in collected paths. - */ - onBeforeRunFiles?: (files: File[]) => unknown; - /** - * Called right after running all tests in collected paths. - */ - onAfterRunFiles?: (files: File[]) => unknown; - /** - * Called when new context for a test is defined. Useful, if you want to add custom properties to the context. - * If you only want to define custom context, consider using "beforeAll" in "setupFiles" instead. - * - * This method is called for both "test" and "custom" handlers. - * - * @see https://vitest.dev/advanced/runner.html#your-task-function - */ - extendTaskContext?: (context: TaskContext) => ExtendedContext; - /** - * Called, when files are imported. Can be called in two situations: when collecting tests and when importing setup files. - */ - importFile: (filepath: string, source: VitestRunnerImportSource) => unknown; - /** - * Publicly available configuration. - */ - config: VitestRunnerConfig; - /** - * The name of the current pool. Can affect how stack trace is inferred on the server side. - */ - pool?: string; -} - -export { type CancelReason, Custom, ExtendedContext, File, SequenceHooks, SequenceSetupFiles, Suite, Task, TaskContext, TaskResultPack, Test, type VitestRunner, type VitestRunnerConfig, type VitestRunnerConstructor, type VitestRunnerImportSource }; diff --git a/node_modules/@vitest/runner/dist/types.js b/node_modules/@vitest/runner/dist/types.js deleted file mode 100644 index 8b137891..00000000 --- a/node_modules/@vitest/runner/dist/types.js +++ /dev/null @@ -1 +0,0 @@ - diff --git a/node_modules/@vitest/runner/dist/utils.d.ts b/node_modules/@vitest/runner/dist/utils.d.ts deleted file mode 100644 index 1d5200a0..00000000 --- a/node_modules/@vitest/runner/dist/utils.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { S as Suite, F as File, T as Task, a as Test, C as Custom } from './tasks-zB5uPauP.js'; -export { b as ChainableFunction, c as createChainable } from './tasks-zB5uPauP.js'; -import { Arrayable } from '@vitest/utils'; - -/** - * If any tasks been marked as `only`, mark all other tasks as `skip`. - */ -declare function interpretTaskModes(suite: Suite, namePattern?: string | RegExp, onlyMode?: boolean, parentIsOnly?: boolean, allowOnly?: boolean): void; -declare function someTasksAreOnly(suite: Suite): boolean; -declare function generateHash(str: string): string; -declare function calculateSuiteHash(parent: Suite): void; -declare function createFileTask(filepath: string, root: string, projectName: string | undefined, pool?: string): File; - -/** - * Partition in tasks groups by consecutive concurrent - */ -declare function partitionSuiteChildren(suite: Suite): Task[][]; - -declare function isAtomTest(s: Task): s is Test | Custom; -declare function getTests(suite: Arrayable): (Test | Custom)[]; -declare function getTasks(tasks?: Arrayable): Task[]; -declare function getSuites(suite: Arrayable): Suite[]; -declare function hasTests(suite: Arrayable): boolean; -declare function hasFailed(suite: Arrayable): boolean; -declare function getNames(task: Task): string[]; - -/** - * Return a function for running multiple async operations with limited concurrency. - */ -declare function limitConcurrency(concurrency?: number): (func: (...args: Args) => PromiseLike | T, ...args: Args) => Promise; - -export { calculateSuiteHash, createFileTask, generateHash, getNames, getSuites, getTasks, getTests, hasFailed, hasTests, interpretTaskModes, isAtomTest, limitConcurrency, partitionSuiteChildren, someTasksAreOnly }; diff --git a/node_modules/@vitest/runner/dist/utils.js b/node_modules/@vitest/runner/dist/utils.js deleted file mode 100644 index 179d00b2..00000000 --- a/node_modules/@vitest/runner/dist/utils.js +++ /dev/null @@ -1,4 +0,0 @@ -export { c as calculateSuiteHash, l as createChainable, a as createFileTask, g as generateHash, k as getNames, f as getSuites, e as getTasks, d as getTests, j as hasFailed, h as hasTests, i as interpretTaskModes, b as isAtomTest, m as limitConcurrency, p as partitionSuiteChildren, s as someTasksAreOnly } from './chunk-tasks.js'; -import '@vitest/utils/error'; -import 'pathe'; -import '@vitest/utils'; diff --git a/node_modules/@vitest/snapshot/dist/environment-Ddx0EDtY.d.ts b/node_modules/@vitest/snapshot/dist/environment-Ddx0EDtY.d.ts deleted file mode 100644 index 729224f3..00000000 --- a/node_modules/@vitest/snapshot/dist/environment-Ddx0EDtY.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -interface ParsedStack { - method: string; - file: string; - line: number; - column: number; -} - -interface SnapshotEnvironment { - getVersion: () => string; - getHeader: () => string; - resolvePath: (filepath: string) => Promise; - resolveRawPath: (testPath: string, rawPath: string) => Promise; - saveSnapshotFile: (filepath: string, snapshot: string) => Promise; - readSnapshotFile: (filepath: string) => Promise; - removeSnapshotFile: (filepath: string) => Promise; - processStackTrace?: (stack: ParsedStack) => ParsedStack; -} -interface SnapshotEnvironmentOptions { - snapshotsDirName?: string; -} - -export type { SnapshotEnvironment as S, SnapshotEnvironmentOptions as a }; diff --git a/node_modules/@vitest/snapshot/dist/environment.d.ts b/node_modules/@vitest/snapshot/dist/environment.d.ts deleted file mode 100644 index 6ab278cc..00000000 --- a/node_modules/@vitest/snapshot/dist/environment.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { S as SnapshotEnvironment, a as SnapshotEnvironmentOptions } from './environment-Ddx0EDtY.js'; - -declare class NodeSnapshotEnvironment implements SnapshotEnvironment { - private options; - constructor(options?: SnapshotEnvironmentOptions); - getVersion(): string; - getHeader(): string; - resolveRawPath(testPath: string, rawPath: string): Promise; - resolvePath(filepath: string): Promise; - prepareDirectory(dirPath: string): Promise; - saveSnapshotFile(filepath: string, snapshot: string): Promise; - readSnapshotFile(filepath: string): Promise; - removeSnapshotFile(filepath: string): Promise; -} - -export { NodeSnapshotEnvironment, SnapshotEnvironment }; diff --git a/node_modules/@vitest/snapshot/dist/environment.js b/node_modules/@vitest/snapshot/dist/environment.js deleted file mode 100644 index 21e0f262..00000000 --- a/node_modules/@vitest/snapshot/dist/environment.js +++ /dev/null @@ -1,43 +0,0 @@ -import { promises, existsSync } from 'node:fs'; -import { isAbsolute, resolve, dirname, join, basename } from 'pathe'; - -class NodeSnapshotEnvironment { - constructor(options = {}) { - this.options = options; - } - getVersion() { - return "1"; - } - getHeader() { - return `// Snapshot v${this.getVersion()}`; - } - async resolveRawPath(testPath, rawPath) { - return isAbsolute(rawPath) ? rawPath : resolve(dirname(testPath), rawPath); - } - async resolvePath(filepath) { - return join( - join(dirname(filepath), this.options.snapshotsDirName ?? "__snapshots__"), - `${basename(filepath)}.snap` - ); - } - async prepareDirectory(dirPath) { - await promises.mkdir(dirPath, { recursive: true }); - } - async saveSnapshotFile(filepath, snapshot) { - await promises.mkdir(dirname(filepath), { recursive: true }); - await promises.writeFile(filepath, snapshot, "utf-8"); - } - async readSnapshotFile(filepath) { - if (!existsSync(filepath)) { - return null; - } - return promises.readFile(filepath, "utf-8"); - } - async removeSnapshotFile(filepath) { - if (existsSync(filepath)) { - await promises.unlink(filepath); - } - } -} - -export { NodeSnapshotEnvironment }; diff --git a/node_modules/@vitest/snapshot/dist/index-Y6kQUiCB.d.ts b/node_modules/@vitest/snapshot/dist/index-Y6kQUiCB.d.ts deleted file mode 100644 index 92be4f15..00000000 --- a/node_modules/@vitest/snapshot/dist/index-Y6kQUiCB.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { Plugin, OptionsReceived } from '@vitest/pretty-format'; -import { S as SnapshotEnvironment } from './environment-Ddx0EDtY.js'; - -interface RawSnapshotInfo { - file: string; - readonly?: boolean; - content?: string; -} - -type SnapshotData = Record; -type SnapshotUpdateState = 'all' | 'new' | 'none'; -type SnapshotSerializer = Plugin; -interface SnapshotStateOptions { - updateSnapshot: SnapshotUpdateState; - snapshotEnvironment: SnapshotEnvironment; - expand?: boolean; - snapshotFormat?: OptionsReceived; - resolveSnapshotPath?: (path: string, extension: string) => string; -} -interface SnapshotMatchOptions { - testName: string; - received: unknown; - key?: string; - inlineSnapshot?: string; - isInline: boolean; - error?: Error; - rawSnapshot?: RawSnapshotInfo; -} -interface SnapshotResult { - filepath: string; - added: number; - fileDeleted: boolean; - matched: number; - unchecked: number; - uncheckedKeys: Array; - unmatched: number; - updated: number; -} -interface UncheckedSnapshot { - filePath: string; - keys: Array; -} -interface SnapshotSummary { - added: number; - didUpdate: boolean; - failure: boolean; - filesAdded: number; - filesRemoved: number; - filesRemovedList: Array; - filesUnmatched: number; - filesUpdated: number; - matched: number; - total: number; - unchecked: number; - uncheckedKeysByFile: Array; - unmatched: number; - updated: number; -} - -export type { RawSnapshotInfo as R, SnapshotStateOptions as S, UncheckedSnapshot as U, SnapshotMatchOptions as a, SnapshotResult as b, SnapshotData as c, SnapshotUpdateState as d, SnapshotSerializer as e, SnapshotSummary as f }; diff --git a/node_modules/@vitest/snapshot/dist/index.d.ts b/node_modules/@vitest/snapshot/dist/index.d.ts deleted file mode 100644 index d52794a6..00000000 --- a/node_modules/@vitest/snapshot/dist/index.d.ts +++ /dev/null @@ -1,109 +0,0 @@ -import { S as SnapshotStateOptions, a as SnapshotMatchOptions, b as SnapshotResult, R as RawSnapshotInfo } from './index-Y6kQUiCB.js'; -export { c as SnapshotData, e as SnapshotSerializer, f as SnapshotSummary, d as SnapshotUpdateState, U as UncheckedSnapshot } from './index-Y6kQUiCB.js'; -import { S as SnapshotEnvironment } from './environment-Ddx0EDtY.js'; -import { Plugin, Plugins } from '@vitest/pretty-format'; - -interface ParsedStack { - method: string; - file: string; - line: number; - column: number; -} - -/** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -interface SnapshotReturnOptions { - actual: string; - count: number; - expected?: string; - key: string; - pass: boolean; -} -interface SaveStatus { - deleted: boolean; - saved: boolean; -} -declare class SnapshotState { - testFilePath: string; - snapshotPath: string; - private _counters; - private _dirty; - private _updateSnapshot; - private _snapshotData; - private _initialData; - private _inlineSnapshots; - private _rawSnapshots; - private _uncheckedKeys; - private _snapshotFormat; - private _environment; - private _fileExists; - added: number; - expand: boolean; - matched: number; - unmatched: number; - updated: number; - private constructor(); - static create(testFilePath: string, options: SnapshotStateOptions): Promise; - get environment(): SnapshotEnvironment; - markSnapshotsAsCheckedForTest(testName: string): void; - protected _inferInlineSnapshotStack(stacks: ParsedStack[]): ParsedStack | null; - private _addSnapshot; - clear(): void; - save(): Promise; - getUncheckedCount(): number; - getUncheckedKeys(): Array; - removeUncheckedKeys(): void; - match({ testName, received, key, inlineSnapshot, isInline, error, rawSnapshot, }: SnapshotMatchOptions): SnapshotReturnOptions; - pack(): Promise; -} - -interface AssertOptions { - received: unknown; - filepath?: string; - name?: string; - message?: string; - isInline?: boolean; - properties?: object; - inlineSnapshot?: string; - error?: Error; - errorMessage?: string; - rawSnapshot?: RawSnapshotInfo; -} -interface SnapshotClientOptions { - isEqual?: (received: unknown, expected: unknown) => boolean; -} -declare class SnapshotClient { - private options; - filepath?: string; - name?: string; - snapshotState: SnapshotState | undefined; - snapshotStateMap: Map; - constructor(options?: SnapshotClientOptions); - startCurrentRun(filepath: string, name: string, options: SnapshotStateOptions): Promise; - getSnapshotState(filepath: string): SnapshotState; - clearTest(): void; - skipTestSnapshots(name: string): void; - assert(options: AssertOptions): void; - assertRaw(options: AssertOptions): Promise; - finishCurrentRun(): Promise; - clear(): void; -} - -/** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -declare function addSerializer(plugin: Plugin): void; -declare function getSerializers(): Plugins; - -declare function stripSnapshotIndentation(inlineSnapshot: string): string; - -export { SnapshotClient, SnapshotMatchOptions, SnapshotResult, SnapshotState, SnapshotStateOptions, addSerializer, getSerializers, stripSnapshotIndentation }; diff --git a/node_modules/@vitest/snapshot/dist/index.js b/node_modules/@vitest/snapshot/dist/index.js deleted file mode 100644 index 042e6ef9..00000000 --- a/node_modules/@vitest/snapshot/dist/index.js +++ /dev/null @@ -1,1788 +0,0 @@ -import { plugins, format } from '@vitest/pretty-format'; -import { resolve as resolve$2 } from 'pathe'; - -function getDefaultExportFromCjs (x) { - return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; -} - -var naturalCompare$2 = {exports: {}}; - -/* - * @version 1.4.0 - * @date 2015-10-26 - * @stability 3 - Stable - * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite) - * @license MIT License - */ - - -var naturalCompare = function(a, b) { - var i, codeA - , codeB = 1 - , posA = 0 - , posB = 0 - , alphabet = String.alphabet; - - function getCode(str, pos, code) { - if (code) { - for (i = pos; code = getCode(str, i), code < 76 && code > 65;) ++i; - return +str.slice(pos - 1, i) - } - code = alphabet && alphabet.indexOf(str.charAt(pos)); - return code > -1 ? code + 76 : ((code = str.charCodeAt(pos) || 0), code < 45 || code > 127) ? code - : code < 46 ? 65 // - - : code < 48 ? code - 1 - : code < 58 ? code + 18 // 0-9 - : code < 65 ? code - 11 - : code < 91 ? code + 11 // A-Z - : code < 97 ? code - 37 - : code < 123 ? code + 5 // a-z - : code - 63 - } - - - if ((a+="") != (b+="")) for (;codeB;) { - codeA = getCode(a, posA++); - codeB = getCode(b, posB++); - - if (codeA < 76 && codeB < 76 && codeA > 66 && codeB > 66) { - codeA = getCode(a, posA, posA); - codeB = getCode(b, posB, posA = i); - posB = i; - } - - if (codeA != codeB) return (codeA < codeB) ? -1 : 1 - } - return 0 -}; - -try { - naturalCompare$2.exports = naturalCompare; -} catch (e) { - String.naturalCompare = naturalCompare; -} - -var naturalCompareExports = naturalCompare$2.exports; -var naturalCompare$1 = /*@__PURE__*/getDefaultExportFromCjs(naturalCompareExports); - -function notNullish(v) { - return v != null; -} -function isPrimitive(value) { - return value === null || typeof value !== "function" && typeof value !== "object"; -} -function isObject(item) { - return item != null && typeof item === "object" && !Array.isArray(item); -} -function getCallLastIndex(code) { - let charIndex = -1; - let inString = null; - let startedBracers = 0; - let endedBracers = 0; - let beforeChar = null; - while (charIndex <= code.length) { - beforeChar = code[charIndex]; - charIndex++; - const char = code[charIndex]; - const isCharString = char === '"' || char === "'" || char === "`"; - if (isCharString && beforeChar !== "\\") { - if (inString === char) { - inString = null; - } else if (!inString) { - inString = char; - } - } - if (!inString) { - if (char === "(") { - startedBracers++; - } - if (char === ")") { - endedBracers++; - } - } - if (startedBracers && endedBracers && startedBracers === endedBracers) { - return charIndex; - } - } - return null; -} - -let getPromiseValue = () => 'Promise{…}'; -try { - // @ts-ignore - const { getPromiseDetails, kPending, kRejected } = process.binding('util'); - if (Array.isArray(getPromiseDetails(Promise.resolve()))) { - getPromiseValue = (value, options) => { - const [state, innerValue] = getPromiseDetails(value); - if (state === kPending) { - return 'Promise{}'; - } - return `Promise${state === kRejected ? '!' : ''}{${options.inspect(innerValue, options)}}`; - }; - } -} -catch (notNode) { - /* ignore */ -} - -/* ! - * loupe - * Copyright(c) 2013 Jake Luer - * MIT Licensed - */ -let nodeInspect = false; -try { - // eslint-disable-next-line global-require - // @ts-ignore - const nodeUtil = require('util'); - nodeInspect = nodeUtil.inspect ? nodeUtil.inspect.custom : false; -} -catch (noNodeInspect) { - nodeInspect = false; -} - -const lineSplitRE = /\r?\n/; -function positionToOffset(source, lineNumber, columnNumber) { - const lines = source.split(lineSplitRE); - const nl = /\r\n/.test(source) ? 2 : 1; - let start = 0; - if (lineNumber > lines.length) { - return source.length; - } - for (let i = 0; i < lineNumber - 1; i++) { - start += lines[i].length + nl; - } - return start + columnNumber; -} -function offsetToLineNumber(source, offset) { - if (offset > source.length) { - throw new Error( - `offset is longer than source length! offset ${offset} > length ${source.length}` - ); - } - const lines = source.split(lineSplitRE); - const nl = /\r\n/.test(source) ? 2 : 1; - let counted = 0; - let line = 0; - for (; line < lines.length; line++) { - const lineLength = lines[line].length + nl; - if (counted + lineLength >= offset) { - break; - } - counted += lineLength; - } - return line + 1; -} - -// Copyright 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Simon Lydell -// License: MIT. -var LineTerminatorSequence; -LineTerminatorSequence = /\r?\n|[\r\u2028\u2029]/y; -RegExp(LineTerminatorSequence.source); - -// src/index.ts -var reservedWords = { - keyword: [ - "break", - "case", - "catch", - "continue", - "debugger", - "default", - "do", - "else", - "finally", - "for", - "function", - "if", - "return", - "switch", - "throw", - "try", - "var", - "const", - "while", - "with", - "new", - "this", - "super", - "class", - "extends", - "export", - "import", - "null", - "true", - "false", - "in", - "instanceof", - "typeof", - "void", - "delete" - ], - strict: [ - "implements", - "interface", - "let", - "package", - "private", - "protected", - "public", - "static", - "yield" - ] -}; new Set(reservedWords.keyword); new Set(reservedWords.strict); - -// src/index.ts -var f = { - reset: [0, 0], - bold: [1, 22, "\x1B[22m\x1B[1m"], - dim: [2, 22, "\x1B[22m\x1B[2m"], - italic: [3, 23], - underline: [4, 24], - inverse: [7, 27], - hidden: [8, 28], - strikethrough: [9, 29], - black: [30, 39], - red: [31, 39], - green: [32, 39], - yellow: [33, 39], - blue: [34, 39], - magenta: [35, 39], - cyan: [36, 39], - white: [37, 39], - gray: [90, 39], - bgBlack: [40, 49], - bgRed: [41, 49], - bgGreen: [42, 49], - bgYellow: [43, 49], - bgBlue: [44, 49], - bgMagenta: [45, 49], - bgCyan: [46, 49], - bgWhite: [47, 49], - blackBright: [90, 39], - redBright: [91, 39], - greenBright: [92, 39], - yellowBright: [93, 39], - blueBright: [94, 39], - magentaBright: [95, 39], - cyanBright: [96, 39], - whiteBright: [97, 39], - bgBlackBright: [100, 49], - bgRedBright: [101, 49], - bgGreenBright: [102, 49], - bgYellowBright: [103, 49], - bgBlueBright: [104, 49], - bgMagentaBright: [105, 49], - bgCyanBright: [106, 49], - bgWhiteBright: [107, 49] -}, h = Object.entries(f); -function a(n) { - return String(n); -} -a.open = ""; -a.close = ""; -function C(n = !1) { - let e = typeof process != "undefined" ? process : void 0, i = (e == null ? void 0 : e.env) || {}, g = (e == null ? void 0 : e.argv) || []; - return !("NO_COLOR" in i || g.includes("--no-color")) && ("FORCE_COLOR" in i || g.includes("--color") || (e == null ? void 0 : e.platform) === "win32" || n && i.TERM !== "dumb" || "CI" in i) || typeof window != "undefined" && !!window.chrome; -} -function p(n = !1) { - let e = C(n), i = (r, t, c, o) => { - let l = "", s = 0; - do - l += r.substring(s, o) + c, s = o + t.length, o = r.indexOf(t, s); - while (~o); - return l + r.substring(s); - }, g = (r, t, c = r) => { - let o = (l) => { - let s = String(l), b = s.indexOf(t, r.length); - return ~b ? r + i(s, t, c, b) + t : r + s + t; - }; - return o.open = r, o.close = t, o; - }, u = { - isColorSupported: e - }, d = (r) => `\x1B[${r}m`; - for (let [r, t] of h) - u[r] = e ? g( - d(t[0]), - d(t[1]), - t[2] - ) : a; - return u; -} - -// src/browser.ts -p(!1); - -const serialize$1 = (val, config, indentation, depth, refs, printer) => { - const name = val.getMockName(); - const nameString = name === "vi.fn()" ? "" : ` ${name}`; - let callsString = ""; - if (val.mock.calls.length !== 0) { - const indentationNext = indentation + config.indent; - callsString = ` {${config.spacingOuter}${indentationNext}"calls": ${printer( - val.mock.calls, - config, - indentationNext, - depth, - refs - )}${config.min ? ", " : ","}${config.spacingOuter}${indentationNext}"results": ${printer( - val.mock.results, - config, - indentationNext, - depth, - refs - )}${config.min ? "" : ","}${config.spacingOuter}${indentation}}`; - } - return `[MockFunction${nameString}]${callsString}`; -}; -const test = (val) => val && !!val._isMockFunction; -const plugin = { serialize: serialize$1, test }; - -const { - DOMCollection, - DOMElement, - Immutable, - ReactElement, - ReactTestComponent, - AsymmetricMatcher -} = plugins; -let PLUGINS = [ - ReactTestComponent, - ReactElement, - DOMElement, - DOMCollection, - Immutable, - AsymmetricMatcher, - plugin -]; -function addSerializer(plugin) { - PLUGINS = [plugin].concat(PLUGINS); -} -function getSerializers() { - return PLUGINS; -} - -function testNameToKey(testName, count) { - return `${testName} ${count}`; -} -function keyToTestName(key) { - if (!/ \d+$/.test(key)) { - throw new Error("Snapshot keys must end with a number."); - } - return key.replace(/ \d+$/, ""); -} -function getSnapshotData(content, options) { - const update = options.updateSnapshot; - const data = /* @__PURE__ */ Object.create(null); - let snapshotContents = ""; - let dirty = false; - if (content != null) { - try { - snapshotContents = content; - const populate = new Function("exports", snapshotContents); - populate(data); - } catch { - } - } - const isInvalid = snapshotContents; - if ((update === "all" || update === "new") && isInvalid) { - dirty = true; - } - return { data, dirty }; -} -function addExtraLineBreaks(string) { - return string.includes("\n") ? ` -${string} -` : string; -} -function removeExtraLineBreaks(string) { - return string.length > 2 && string.startsWith("\n") && string.endsWith("\n") ? string.slice(1, -1) : string; -} -const escapeRegex = true; -const printFunctionName = false; -function serialize(val, indent = 2, formatOverrides = {}) { - return normalizeNewlines( - format(val, { - escapeRegex, - indent, - plugins: getSerializers(), - printFunctionName, - ...formatOverrides - }) - ); -} -function escapeBacktickString(str) { - return str.replace(/`|\\|\$\{/g, "\\$&"); -} -function printBacktickString(str) { - return `\`${escapeBacktickString(str)}\``; -} -function normalizeNewlines(string) { - return string.replace(/\r\n|\r/g, "\n"); -} -async function saveSnapshotFile(environment, snapshotData, snapshotPath) { - const snapshots = Object.keys(snapshotData).sort(naturalCompare$1).map( - (key) => `exports[${printBacktickString(key)}] = ${printBacktickString( - normalizeNewlines(snapshotData[key]) - )};` - ); - const content = `${environment.getHeader()} - -${snapshots.join("\n\n")} -`; - const oldContent = await environment.readSnapshotFile(snapshotPath); - const skipWriting = oldContent != null && oldContent === content; - if (skipWriting) { - return; - } - await environment.saveSnapshotFile(snapshotPath, content); -} -function prepareExpected(expected) { - function findStartIndent() { - var _a, _b; - const matchObject = /^( +)\}\s+$/m.exec(expected || ""); - const objectIndent = (_a = matchObject == null ? void 0 : matchObject[1]) == null ? void 0 : _a.length; - if (objectIndent) { - return objectIndent; - } - const matchText = /^\n( +)"/.exec(expected || ""); - return ((_b = matchText == null ? void 0 : matchText[1]) == null ? void 0 : _b.length) || 0; - } - const startIndent = findStartIndent(); - let expectedTrimmed = expected == null ? void 0 : expected.trim(); - if (startIndent) { - expectedTrimmed = expectedTrimmed == null ? void 0 : expectedTrimmed.replace(new RegExp(`^${" ".repeat(startIndent)}`, "gm"), "").replace(/ +\}$/, "}"); - } - return expectedTrimmed; -} -function deepMergeArray(target = [], source = []) { - const mergedOutput = Array.from(target); - source.forEach((sourceElement, index) => { - const targetElement = mergedOutput[index]; - if (Array.isArray(target[index])) { - mergedOutput[index] = deepMergeArray(target[index], sourceElement); - } else if (isObject(targetElement)) { - mergedOutput[index] = deepMergeSnapshot(target[index], sourceElement); - } else { - mergedOutput[index] = sourceElement; - } - }); - return mergedOutput; -} -function deepMergeSnapshot(target, source) { - if (isObject(target) && isObject(source)) { - const mergedOutput = { ...target }; - Object.keys(source).forEach((key) => { - if (isObject(source[key]) && !source[key].$$typeof) { - if (!(key in target)) { - Object.assign(mergedOutput, { [key]: source[key] }); - } else { - mergedOutput[key] = deepMergeSnapshot(target[key], source[key]); - } - } else if (Array.isArray(source[key])) { - mergedOutput[key] = deepMergeArray(target[key], source[key]); - } else { - Object.assign(mergedOutput, { [key]: source[key] }); - } - }); - return mergedOutput; - } else if (Array.isArray(target) && Array.isArray(source)) { - return deepMergeArray(target, source); - } - return target; -} - -const comma = ','.charCodeAt(0); -const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; -const intToChar = new Uint8Array(64); // 64 possible chars. -const charToInt = new Uint8Array(128); // z is 122 in ASCII -for (let i = 0; i < chars.length; i++) { - const c = chars.charCodeAt(i); - intToChar[i] = c; - charToInt[c] = i; -} -function decode(mappings) { - const state = new Int32Array(5); - const decoded = []; - let index = 0; - do { - const semi = indexOf(mappings, index); - const line = []; - let sorted = true; - let lastCol = 0; - state[0] = 0; - for (let i = index; i < semi; i++) { - let seg; - i = decodeInteger(mappings, i, state, 0); // genColumn - const col = state[0]; - if (col < lastCol) - sorted = false; - lastCol = col; - if (hasMoreVlq(mappings, i, semi)) { - i = decodeInteger(mappings, i, state, 1); // sourcesIndex - i = decodeInteger(mappings, i, state, 2); // sourceLine - i = decodeInteger(mappings, i, state, 3); // sourceColumn - if (hasMoreVlq(mappings, i, semi)) { - i = decodeInteger(mappings, i, state, 4); // namesIndex - seg = [col, state[1], state[2], state[3], state[4]]; - } - else { - seg = [col, state[1], state[2], state[3]]; - } - } - else { - seg = [col]; - } - line.push(seg); - } - if (!sorted) - sort(line); - decoded.push(line); - index = semi + 1; - } while (index <= mappings.length); - return decoded; -} -function indexOf(mappings, index) { - const idx = mappings.indexOf(';', index); - return idx === -1 ? mappings.length : idx; -} -function decodeInteger(mappings, pos, state, j) { - let value = 0; - let shift = 0; - let integer = 0; - do { - const c = mappings.charCodeAt(pos++); - integer = charToInt[c]; - value |= (integer & 31) << shift; - shift += 5; - } while (integer & 32); - const shouldNegate = value & 1; - value >>>= 1; - if (shouldNegate) { - value = -0x80000000 | -value; - } - state[j] += value; - return pos; -} -function hasMoreVlq(mappings, i, length) { - if (i >= length) - return false; - return mappings.charCodeAt(i) !== comma; -} -function sort(line) { - line.sort(sortComparator$1); -} -function sortComparator$1(a, b) { - return a[0] - b[0]; -} - -// Matches the scheme of a URL, eg "http://" -const schemeRegex = /^[\w+.-]+:\/\//; -/** - * Matches the parts of a URL: - * 1. Scheme, including ":", guaranteed. - * 2. User/password, including "@", optional. - * 3. Host, guaranteed. - * 4. Port, including ":", optional. - * 5. Path, including "/", optional. - * 6. Query, including "?", optional. - * 7. Hash, including "#", optional. - */ -const urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/; -/** - * File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start - * with a leading `/`, they can have a domain (but only if they don't start with a Windows drive). - * - * 1. Host, optional. - * 2. Path, which may include "/", guaranteed. - * 3. Query, including "?", optional. - * 4. Hash, including "#", optional. - */ -const fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i; -var UrlType; -(function (UrlType) { - UrlType[UrlType["Empty"] = 1] = "Empty"; - UrlType[UrlType["Hash"] = 2] = "Hash"; - UrlType[UrlType["Query"] = 3] = "Query"; - UrlType[UrlType["RelativePath"] = 4] = "RelativePath"; - UrlType[UrlType["AbsolutePath"] = 5] = "AbsolutePath"; - UrlType[UrlType["SchemeRelative"] = 6] = "SchemeRelative"; - UrlType[UrlType["Absolute"] = 7] = "Absolute"; -})(UrlType || (UrlType = {})); -function isAbsoluteUrl(input) { - return schemeRegex.test(input); -} -function isSchemeRelativeUrl(input) { - return input.startsWith('//'); -} -function isAbsolutePath(input) { - return input.startsWith('/'); -} -function isFileUrl(input) { - return input.startsWith('file:'); -} -function isRelative(input) { - return /^[.?#]/.test(input); -} -function parseAbsoluteUrl(input) { - const match = urlRegex.exec(input); - return makeUrl(match[1], match[2] || '', match[3], match[4] || '', match[5] || '/', match[6] || '', match[7] || ''); -} -function parseFileUrl(input) { - const match = fileRegex.exec(input); - const path = match[2]; - return makeUrl('file:', '', match[1] || '', '', isAbsolutePath(path) ? path : '/' + path, match[3] || '', match[4] || ''); -} -function makeUrl(scheme, user, host, port, path, query, hash) { - return { - scheme, - user, - host, - port, - path, - query, - hash, - type: UrlType.Absolute, - }; -} -function parseUrl(input) { - if (isSchemeRelativeUrl(input)) { - const url = parseAbsoluteUrl('http:' + input); - url.scheme = ''; - url.type = UrlType.SchemeRelative; - return url; - } - if (isAbsolutePath(input)) { - const url = parseAbsoluteUrl('http://foo.com' + input); - url.scheme = ''; - url.host = ''; - url.type = UrlType.AbsolutePath; - return url; - } - if (isFileUrl(input)) - return parseFileUrl(input); - if (isAbsoluteUrl(input)) - return parseAbsoluteUrl(input); - const url = parseAbsoluteUrl('http://foo.com/' + input); - url.scheme = ''; - url.host = ''; - url.type = input - ? input.startsWith('?') - ? UrlType.Query - : input.startsWith('#') - ? UrlType.Hash - : UrlType.RelativePath - : UrlType.Empty; - return url; -} -function stripPathFilename(path) { - // If a path ends with a parent directory "..", then it's a relative path with excess parent - // paths. It's not a file, so we can't strip it. - if (path.endsWith('/..')) - return path; - const index = path.lastIndexOf('/'); - return path.slice(0, index + 1); -} -function mergePaths(url, base) { - normalizePath(base, base.type); - // If the path is just a "/", then it was an empty path to begin with (remember, we're a relative - // path). - if (url.path === '/') { - url.path = base.path; - } - else { - // Resolution happens relative to the base path's directory, not the file. - url.path = stripPathFilename(base.path) + url.path; - } -} -/** - * The path can have empty directories "//", unneeded parents "foo/..", or current directory - * "foo/.". We need to normalize to a standard representation. - */ -function normalizePath(url, type) { - const rel = type <= UrlType.RelativePath; - const pieces = url.path.split('/'); - // We need to preserve the first piece always, so that we output a leading slash. The item at - // pieces[0] is an empty string. - let pointer = 1; - // Positive is the number of real directories we've output, used for popping a parent directory. - // Eg, "foo/bar/.." will have a positive 2, and we can decrement to be left with just "foo". - let positive = 0; - // We need to keep a trailing slash if we encounter an empty directory (eg, splitting "foo/" will - // generate `["foo", ""]` pieces). And, if we pop a parent directory. But once we encounter a - // real directory, we won't need to append, unless the other conditions happen again. - let addTrailingSlash = false; - for (let i = 1; i < pieces.length; i++) { - const piece = pieces[i]; - // An empty directory, could be a trailing slash, or just a double "//" in the path. - if (!piece) { - addTrailingSlash = true; - continue; - } - // If we encounter a real directory, then we don't need to append anymore. - addTrailingSlash = false; - // A current directory, which we can always drop. - if (piece === '.') - continue; - // A parent directory, we need to see if there are any real directories we can pop. Else, we - // have an excess of parents, and we'll need to keep the "..". - if (piece === '..') { - if (positive) { - addTrailingSlash = true; - positive--; - pointer--; - } - else if (rel) { - // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute - // URL, protocol relative URL, or an absolute path, we don't need to keep excess. - pieces[pointer++] = piece; - } - continue; - } - // We've encountered a real directory. Move it to the next insertion pointer, which accounts for - // any popped or dropped directories. - pieces[pointer++] = piece; - positive++; - } - let path = ''; - for (let i = 1; i < pointer; i++) { - path += '/' + pieces[i]; - } - if (!path || (addTrailingSlash && !path.endsWith('/..'))) { - path += '/'; - } - url.path = path; -} -/** - * Attempts to resolve `input` URL/path relative to `base`. - */ -function resolve$1(input, base) { - if (!input && !base) - return ''; - const url = parseUrl(input); - let inputType = url.type; - if (base && inputType !== UrlType.Absolute) { - const baseUrl = parseUrl(base); - const baseType = baseUrl.type; - switch (inputType) { - case UrlType.Empty: - url.hash = baseUrl.hash; - // fall through - case UrlType.Hash: - url.query = baseUrl.query; - // fall through - case UrlType.Query: - case UrlType.RelativePath: - mergePaths(url, baseUrl); - // fall through - case UrlType.AbsolutePath: - // The host, user, and port are joined, you can't copy one without the others. - url.user = baseUrl.user; - url.host = baseUrl.host; - url.port = baseUrl.port; - // fall through - case UrlType.SchemeRelative: - // The input doesn't have a schema at least, so we need to copy at least that over. - url.scheme = baseUrl.scheme; - } - if (baseType > inputType) - inputType = baseType; - } - normalizePath(url, inputType); - const queryHash = url.query + url.hash; - switch (inputType) { - // This is impossible, because of the empty checks at the start of the function. - // case UrlType.Empty: - case UrlType.Hash: - case UrlType.Query: - return queryHash; - case UrlType.RelativePath: { - // The first char is always a "/", and we need it to be relative. - const path = url.path.slice(1); - if (!path) - return queryHash || '.'; - if (isRelative(base || input) && !isRelative(path)) { - // If base started with a leading ".", or there is no base and input started with a ".", - // then we need to ensure that the relative path starts with a ".". We don't know if - // relative starts with a "..", though, so check before prepending. - return './' + path + queryHash; - } - return path + queryHash; - } - case UrlType.AbsolutePath: - return url.path + queryHash; - default: - return url.scheme + '//' + url.user + url.host + url.port + url.path + queryHash; - } -} - -function resolve(input, base) { - // The base is always treated as a directory, if it's not empty. - // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327 - // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401 - if (base && !base.endsWith('/')) - base += '/'; - return resolve$1(input, base); -} - -/** - * Removes everything after the last "/", but leaves the slash. - */ -function stripFilename(path) { - if (!path) - return ''; - const index = path.lastIndexOf('/'); - return path.slice(0, index + 1); -} - -const COLUMN = 0; -const SOURCES_INDEX = 1; -const SOURCE_LINE = 2; -const SOURCE_COLUMN = 3; -const NAMES_INDEX = 4; - -function maybeSort(mappings, owned) { - const unsortedIndex = nextUnsortedSegmentLine(mappings, 0); - if (unsortedIndex === mappings.length) - return mappings; - // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If - // not, we do not want to modify the consumer's input array. - if (!owned) - mappings = mappings.slice(); - for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) { - mappings[i] = sortSegments(mappings[i], owned); - } - return mappings; -} -function nextUnsortedSegmentLine(mappings, start) { - for (let i = start; i < mappings.length; i++) { - if (!isSorted(mappings[i])) - return i; - } - return mappings.length; -} -function isSorted(line) { - for (let j = 1; j < line.length; j++) { - if (line[j][COLUMN] < line[j - 1][COLUMN]) { - return false; - } - } - return true; -} -function sortSegments(line, owned) { - if (!owned) - line = line.slice(); - return line.sort(sortComparator); -} -function sortComparator(a, b) { - return a[COLUMN] - b[COLUMN]; -} - -let found = false; -/** - * A binary search implementation that returns the index if a match is found. - * If no match is found, then the left-index (the index associated with the item that comes just - * before the desired index) is returned. To maintain proper sort order, a splice would happen at - * the next index: - * - * ```js - * const array = [1, 3]; - * const needle = 2; - * const index = binarySearch(array, needle, (item, needle) => item - needle); - * - * assert.equal(index, 0); - * array.splice(index + 1, 0, needle); - * assert.deepEqual(array, [1, 2, 3]); - * ``` - */ -function binarySearch(haystack, needle, low, high) { - while (low <= high) { - const mid = low + ((high - low) >> 1); - const cmp = haystack[mid][COLUMN] - needle; - if (cmp === 0) { - found = true; - return mid; - } - if (cmp < 0) { - low = mid + 1; - } - else { - high = mid - 1; - } - } - found = false; - return low - 1; -} -function upperBound(haystack, needle, index) { - for (let i = index + 1; i < haystack.length; index = i++) { - if (haystack[i][COLUMN] !== needle) - break; - } - return index; -} -function lowerBound(haystack, needle, index) { - for (let i = index - 1; i >= 0; index = i--) { - if (haystack[i][COLUMN] !== needle) - break; - } - return index; -} -function memoizedState() { - return { - lastKey: -1, - lastNeedle: -1, - lastIndex: -1, - }; -} -/** - * This overly complicated beast is just to record the last tested line/column and the resulting - * index, allowing us to skip a few tests if mappings are monotonically increasing. - */ -function memoizedBinarySearch(haystack, needle, state, key) { - const { lastKey, lastNeedle, lastIndex } = state; - let low = 0; - let high = haystack.length - 1; - if (key === lastKey) { - if (needle === lastNeedle) { - found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle; - return lastIndex; - } - if (needle >= lastNeedle) { - // lastIndex may be -1 if the previous needle was not found. - low = lastIndex === -1 ? 0 : lastIndex; - } - else { - high = lastIndex; - } - } - state.lastKey = key; - state.lastNeedle = needle; - return (state.lastIndex = binarySearch(haystack, needle, low, high)); -} - -const LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)'; -const COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)'; -const LEAST_UPPER_BOUND = -1; -const GREATEST_LOWER_BOUND = 1; -class TraceMap { - constructor(map, mapUrl) { - const isString = typeof map === 'string'; - if (!isString && map._decodedMemo) - return map; - const parsed = (isString ? JSON.parse(map) : map); - const { version, file, names, sourceRoot, sources, sourcesContent } = parsed; - this.version = version; - this.file = file; - this.names = names || []; - this.sourceRoot = sourceRoot; - this.sources = sources; - this.sourcesContent = sourcesContent; - this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || undefined; - const from = resolve(sourceRoot || '', stripFilename(mapUrl)); - this.resolvedSources = sources.map((s) => resolve(s || '', from)); - const { mappings } = parsed; - if (typeof mappings === 'string') { - this._encoded = mappings; - this._decoded = undefined; - } - else { - this._encoded = undefined; - this._decoded = maybeSort(mappings, isString); - } - this._decodedMemo = memoizedState(); - this._bySources = undefined; - this._bySourceMemos = undefined; - } -} -/** - * Typescript doesn't allow friend access to private fields, so this just casts the map into a type - * with public access modifiers. - */ -function cast(map) { - return map; -} -/** - * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field. - */ -function decodedMappings(map) { - var _a; - return ((_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded))); -} -/** - * A higher-level API to find the source/line/column associated with a generated line/column - * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in - * `source-map` library. - */ -function originalPositionFor(map, needle) { - let { line, column, bias } = needle; - line--; - if (line < 0) - throw new Error(LINE_GTR_ZERO); - if (column < 0) - throw new Error(COL_GTR_EQ_ZERO); - const decoded = decodedMappings(map); - // It's common for parent source maps to have pointers to lines that have no - // mapping (like a "//# sourceMappingURL=") at the end of the child file. - if (line >= decoded.length) - return OMapping(null, null, null, null); - const segments = decoded[line]; - const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND); - if (index === -1) - return OMapping(null, null, null, null); - const segment = segments[index]; - if (segment.length === 1) - return OMapping(null, null, null, null); - const { names, resolvedSources } = map; - return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null); -} -function OMapping(source, line, column, name) { - return { source, line, column, name }; -} -function traceSegmentInternal(segments, memo, line, column, bias) { - let index = memoizedBinarySearch(segments, column, memo, line); - if (found) { - index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index); - } - else if (bias === LEAST_UPPER_BOUND) - index++; - if (index === -1 || index === segments.length) - return -1; - return index; -} - -const CHROME_IE_STACK_REGEXP = /^\s*at .*(?:\S:\d+|\(native\))/m; -const SAFARI_NATIVE_CODE_REGEXP = /^(?:eval@)?(?:\[native code\])?$/; -const stackIgnorePatterns = [ - "node:internal", - /\/packages\/\w+\/dist\//, - /\/@vitest\/\w+\/dist\//, - "/vitest/dist/", - "/vitest/src/", - "/vite-node/dist/", - "/vite-node/src/", - "/node_modules/chai/", - "/node_modules/tinypool/", - "/node_modules/tinyspy/", - // browser related deps - "/deps/chunk-", - "/deps/@vitest", - "/deps/loupe", - "/deps/chai", - /node:\w+/, - /__vitest_test__/, - /__vitest_browser__/, - /\/deps\/vitest_/ -]; -function extractLocation(urlLike) { - if (!urlLike.includes(":")) { - return [urlLike]; - } - const regExp = /(.+?)(?::(\d+))?(?::(\d+))?$/; - const parts = regExp.exec(urlLike.replace(/^\(|\)$/g, "")); - if (!parts) { - return [urlLike]; - } - let url = parts[1]; - if (url.startsWith("async ")) { - url = url.slice(6); - } - if (url.startsWith("http:") || url.startsWith("https:")) { - const urlObj = new URL(url); - url = urlObj.pathname; - } - if (url.startsWith("/@fs/")) { - const isWindows = /^\/@fs\/[a-zA-Z]:\//.test(url); - url = url.slice(isWindows ? 5 : 4); - } - return [url, parts[2] || void 0, parts[3] || void 0]; -} -function parseSingleFFOrSafariStack(raw) { - let line = raw.trim(); - if (SAFARI_NATIVE_CODE_REGEXP.test(line)) { - return null; - } - if (line.includes(" > eval")) { - line = line.replace( - / line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, - ":$1" - ); - } - if (!line.includes("@") && !line.includes(":")) { - return null; - } - const functionNameRegex = /((.*".+"[^@]*)?[^@]*)(@)/; - const matches = line.match(functionNameRegex); - const functionName = matches && matches[1] ? matches[1] : void 0; - const [url, lineNumber, columnNumber] = extractLocation( - line.replace(functionNameRegex, "") - ); - if (!url || !lineNumber || !columnNumber) { - return null; - } - return { - file: url, - method: functionName || "", - line: Number.parseInt(lineNumber), - column: Number.parseInt(columnNumber) - }; -} -function parseSingleV8Stack(raw) { - let line = raw.trim(); - if (!CHROME_IE_STACK_REGEXP.test(line)) { - return null; - } - if (line.includes("(eval ")) { - line = line.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, ""); - } - let sanitizedLine = line.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, ""); - const location = sanitizedLine.match(/ (\(.+\)$)/); - sanitizedLine = location ? sanitizedLine.replace(location[0], "") : sanitizedLine; - const [url, lineNumber, columnNumber] = extractLocation( - location ? location[1] : sanitizedLine - ); - let method = location && sanitizedLine || ""; - let file = url && ["eval", ""].includes(url) ? void 0 : url; - if (!file || !lineNumber || !columnNumber) { - return null; - } - if (method.startsWith("async ")) { - method = method.slice(6); - } - if (file.startsWith("file://")) { - file = file.slice(7); - } - file = resolve$2(file); - if (method) { - method = method.replace(/__vite_ssr_import_\d+__\./g, ""); - } - return { - method, - file, - line: Number.parseInt(lineNumber), - column: Number.parseInt(columnNumber) - }; -} -function parseStacktrace(stack, options = {}) { - const { ignoreStackEntries = stackIgnorePatterns } = options; - let stacks = !CHROME_IE_STACK_REGEXP.test(stack) ? parseFFOrSafariStackTrace(stack) : parseV8Stacktrace(stack); - if (ignoreStackEntries.length) { - stacks = stacks.filter( - (stack2) => !ignoreStackEntries.some((p) => stack2.file.match(p)) - ); - } - return stacks.map((stack2) => { - var _a; - if (options.getFileName) { - stack2.file = options.getFileName(stack2.file); - } - const map = (_a = options.getSourceMap) == null ? void 0 : _a.call(options, stack2.file); - if (!map || typeof map !== "object" || !map.version) { - return stack2; - } - const traceMap = new TraceMap(map); - const { line, column } = originalPositionFor(traceMap, stack2); - if (line != null && column != null) { - return { ...stack2, line, column }; - } - return stack2; - }); -} -function parseFFOrSafariStackTrace(stack) { - return stack.split("\n").map((line) => parseSingleFFOrSafariStack(line)).filter(notNullish); -} -function parseV8Stacktrace(stack) { - return stack.split("\n").map((line) => parseSingleV8Stack(line)).filter(notNullish); -} -function parseErrorStacktrace(e, options = {}) { - if (!e || isPrimitive(e)) { - return []; - } - if (e.stacks) { - return e.stacks; - } - const stackStr = e.stack || e.stackStr || ""; - let stackFrames = parseStacktrace(stackStr, options); - if (options.frameFilter) { - stackFrames = stackFrames.filter( - (f) => options.frameFilter(e, f) !== false - ); - } - e.stacks = stackFrames; - return stackFrames; -} - -async function saveInlineSnapshots(environment, snapshots) { - const MagicString = (await import('magic-string')).default; - const files = new Set(snapshots.map((i) => i.file)); - await Promise.all( - Array.from(files).map(async (file) => { - const snaps = snapshots.filter((i) => i.file === file); - const code = await environment.readSnapshotFile(file); - const s = new MagicString(code); - for (const snap of snaps) { - const index = positionToOffset(code, snap.line, snap.column); - replaceInlineSnap(code, s, index, snap.snapshot); - } - const transformed = s.toString(); - if (transformed !== code) { - await environment.saveSnapshotFile(file, transformed); - } - }) - ); -} -const startObjectRegex = /(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/; -function replaceObjectSnap(code, s, index, newSnap) { - let _code = code.slice(index); - const startMatch = startObjectRegex.exec(_code); - if (!startMatch) { - return false; - } - _code = _code.slice(startMatch.index); - let callEnd = getCallLastIndex(_code); - if (callEnd === null) { - return false; - } - callEnd += index + startMatch.index; - const shapeStart = index + startMatch.index + startMatch[0].length; - const shapeEnd = getObjectShapeEndIndex(code, shapeStart); - const snap = `, ${prepareSnapString(newSnap, code, index)}`; - if (shapeEnd === callEnd) { - s.appendLeft(callEnd, snap); - } else { - s.overwrite(shapeEnd, callEnd, snap); - } - return true; -} -function getObjectShapeEndIndex(code, index) { - let startBraces = 1; - let endBraces = 0; - while (startBraces !== endBraces && index < code.length) { - const s = code[index++]; - if (s === "{") { - startBraces++; - } else if (s === "}") { - endBraces++; - } - } - return index; -} -function prepareSnapString(snap, source, index) { - const lineNumber = offsetToLineNumber(source, index); - const line = source.split(lineSplitRE)[lineNumber - 1]; - const indent = line.match(/^\s*/)[0] || ""; - const indentNext = indent.includes(" ") ? `${indent} ` : `${indent} `; - const lines = snap.trim().replace(/\\/g, "\\\\").split(/\n/g); - const isOneline = lines.length <= 1; - const quote = "`"; - if (isOneline) { - return `${quote}${lines.join("\n").replace(/`/g, "\\`").replace(/\$\{/g, "\\${")}${quote}`; - } - return `${quote} -${lines.map((i) => i ? indentNext + i : "").join("\n").replace(/`/g, "\\`").replace(/\$\{/g, "\\${")} -${indent}${quote}`; -} -const toMatchInlineName = "toMatchInlineSnapshot"; -const toThrowErrorMatchingInlineName = "toThrowErrorMatchingInlineSnapshot"; -function getCodeStartingAtIndex(code, index) { - const indexInline = index - toMatchInlineName.length; - if (code.slice(indexInline, index) === toMatchInlineName) { - return { - code: code.slice(indexInline), - index: indexInline - }; - } - const indexThrowInline = index - toThrowErrorMatchingInlineName.length; - if (code.slice(index - indexThrowInline, index) === toThrowErrorMatchingInlineName) { - return { - code: code.slice(index - indexThrowInline), - index: index - indexThrowInline - }; - } - return { - code: code.slice(index), - index - }; -} -const startRegex = /(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*[\w$]*(['"`)])/; -function replaceInlineSnap(code, s, currentIndex, newSnap) { - const { code: codeStartingAtIndex, index } = getCodeStartingAtIndex(code, currentIndex); - const startMatch = startRegex.exec(codeStartingAtIndex); - const firstKeywordMatch = /toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec( - codeStartingAtIndex - ); - if (!startMatch || startMatch.index !== (firstKeywordMatch == null ? void 0 : firstKeywordMatch.index)) { - return replaceObjectSnap(code, s, index, newSnap); - } - const quote = startMatch[1]; - const startIndex = index + startMatch.index + startMatch[0].length; - const snapString = prepareSnapString(newSnap, code, index); - if (quote === ")") { - s.appendRight(startIndex - 1, snapString); - return true; - } - const quoteEndRE = new RegExp(`(?:^|[^\\\\])${quote}`); - const endMatch = quoteEndRE.exec(code.slice(startIndex)); - if (!endMatch) { - return false; - } - const endIndex = startIndex + endMatch.index + endMatch[0].length; - s.overwrite(startIndex - 1, endIndex, snapString); - return true; -} -const INDENTATION_REGEX = /^([^\S\n]*)\S/m; -function stripSnapshotIndentation(inlineSnapshot) { - const match = inlineSnapshot.match(INDENTATION_REGEX); - if (!match || !match[1]) { - return inlineSnapshot; - } - const indentation = match[1]; - const lines = inlineSnapshot.split(/\n/g); - if (lines.length <= 2) { - return inlineSnapshot; - } - if (lines[0].trim() !== "" || lines[lines.length - 1].trim() !== "") { - return inlineSnapshot; - } - for (let i = 1; i < lines.length - 1; i++) { - if (lines[i] !== "") { - if (lines[i].indexOf(indentation) !== 0) { - return inlineSnapshot; - } - lines[i] = lines[i].substring(indentation.length); - } - } - lines[lines.length - 1] = ""; - inlineSnapshot = lines.join("\n"); - return inlineSnapshot; -} - -async function saveRawSnapshots(environment, snapshots) { - await Promise.all( - snapshots.map(async (snap) => { - if (!snap.readonly) { - await environment.saveSnapshotFile(snap.file, snap.snapshot); - } - }) - ); -} - -class SnapshotState { - constructor(testFilePath, snapshotPath, snapshotContent, options) { - this.testFilePath = testFilePath; - this.snapshotPath = snapshotPath; - const { data, dirty } = getSnapshotData(snapshotContent, options); - this._fileExists = snapshotContent != null; - this._initialData = data; - this._snapshotData = data; - this._dirty = dirty; - this._inlineSnapshots = []; - this._rawSnapshots = []; - this._uncheckedKeys = new Set(Object.keys(this._snapshotData)); - this._counters = /* @__PURE__ */ new Map(); - this.expand = options.expand || false; - this.added = 0; - this.matched = 0; - this.unmatched = 0; - this._updateSnapshot = options.updateSnapshot; - this.updated = 0; - this._snapshotFormat = { - printBasicPrototype: false, - escapeString: false, - ...options.snapshotFormat - }; - this._environment = options.snapshotEnvironment; - } - _counters; - _dirty; - _updateSnapshot; - _snapshotData; - _initialData; - _inlineSnapshots; - _rawSnapshots; - _uncheckedKeys; - _snapshotFormat; - _environment; - _fileExists; - added; - expand; - matched; - unmatched; - updated; - static async create(testFilePath, options) { - const snapshotPath = await options.snapshotEnvironment.resolvePath( - testFilePath - ); - const content = await options.snapshotEnvironment.readSnapshotFile( - snapshotPath - ); - return new SnapshotState(testFilePath, snapshotPath, content, options); - } - get environment() { - return this._environment; - } - markSnapshotsAsCheckedForTest(testName) { - this._uncheckedKeys.forEach((uncheckedKey) => { - if (keyToTestName(uncheckedKey) === testName) { - this._uncheckedKeys.delete(uncheckedKey); - } - }); - } - _inferInlineSnapshotStack(stacks) { - const promiseIndex = stacks.findIndex( - (i) => i.method.match(/__VITEST_(RESOLVES|REJECTS)__/) - ); - if (promiseIndex !== -1) { - return stacks[promiseIndex + 3]; - } - const stackIndex = stacks.findIndex( - (i) => i.method.includes("__INLINE_SNAPSHOT__") - ); - return stackIndex !== -1 ? stacks[stackIndex + 2] : null; - } - _addSnapshot(key, receivedSerialized, options) { - var _a, _b; - this._dirty = true; - if (options.isInline) { - const error = options.error || new Error("snapshot"); - const stacks = parseErrorStacktrace( - error, - { ignoreStackEntries: [] } - ); - const _stack = this._inferInlineSnapshotStack(stacks); - if (!_stack) { - throw new Error( - `@vitest/snapshot: Couldn't infer stack frame for inline snapshot. -${JSON.stringify( - stacks - )}` - ); - } - const stack = ((_b = (_a = this.environment).processStackTrace) == null ? void 0 : _b.call(_a, _stack)) || _stack; - stack.column--; - this._inlineSnapshots.push({ - snapshot: receivedSerialized, - ...stack - }); - } else if (options.rawSnapshot) { - this._rawSnapshots.push({ - ...options.rawSnapshot, - snapshot: receivedSerialized - }); - } else { - this._snapshotData[key] = receivedSerialized; - } - } - clear() { - this._snapshotData = this._initialData; - this._counters = /* @__PURE__ */ new Map(); - this.added = 0; - this.matched = 0; - this.unmatched = 0; - this.updated = 0; - this._dirty = false; - } - async save() { - const hasExternalSnapshots = Object.keys(this._snapshotData).length; - const hasInlineSnapshots = this._inlineSnapshots.length; - const hasRawSnapshots = this._rawSnapshots.length; - const isEmpty = !hasExternalSnapshots && !hasInlineSnapshots && !hasRawSnapshots; - const status = { - deleted: false, - saved: false - }; - if ((this._dirty || this._uncheckedKeys.size) && !isEmpty) { - if (hasExternalSnapshots) { - await saveSnapshotFile( - this._environment, - this._snapshotData, - this.snapshotPath - ); - this._fileExists = true; - } - if (hasInlineSnapshots) { - await saveInlineSnapshots(this._environment, this._inlineSnapshots); - } - if (hasRawSnapshots) { - await saveRawSnapshots(this._environment, this._rawSnapshots); - } - status.saved = true; - } else if (!hasExternalSnapshots && this._fileExists) { - if (this._updateSnapshot === "all") { - await this._environment.removeSnapshotFile(this.snapshotPath); - this._fileExists = false; - } - status.deleted = true; - } - return status; - } - getUncheckedCount() { - return this._uncheckedKeys.size || 0; - } - getUncheckedKeys() { - return Array.from(this._uncheckedKeys); - } - removeUncheckedKeys() { - if (this._updateSnapshot === "all" && this._uncheckedKeys.size) { - this._dirty = true; - this._uncheckedKeys.forEach((key) => delete this._snapshotData[key]); - this._uncheckedKeys.clear(); - } - } - match({ - testName, - received, - key, - inlineSnapshot, - isInline, - error, - rawSnapshot - }) { - this._counters.set(testName, (this._counters.get(testName) || 0) + 1); - const count = Number(this._counters.get(testName)); - if (!key) { - key = testNameToKey(testName, count); - } - if (!(isInline && this._snapshotData[key] !== void 0)) { - this._uncheckedKeys.delete(key); - } - let receivedSerialized = rawSnapshot && typeof received === "string" ? received : serialize(received, void 0, this._snapshotFormat); - if (!rawSnapshot) { - receivedSerialized = addExtraLineBreaks(receivedSerialized); - } - if (rawSnapshot) { - if (rawSnapshot.content && rawSnapshot.content.match(/\r\n/) && !receivedSerialized.match(/\r\n/)) { - rawSnapshot.content = normalizeNewlines(rawSnapshot.content); - } - } - const expected = isInline ? inlineSnapshot : rawSnapshot ? rawSnapshot.content : this._snapshotData[key]; - const expectedTrimmed = prepareExpected(expected); - const pass = expectedTrimmed === prepareExpected(receivedSerialized); - const hasSnapshot = expected !== void 0; - const snapshotIsPersisted = isInline || this._fileExists || rawSnapshot && rawSnapshot.content != null; - if (pass && !isInline && !rawSnapshot) { - this._snapshotData[key] = receivedSerialized; - } - if (hasSnapshot && this._updateSnapshot === "all" || (!hasSnapshot || !snapshotIsPersisted) && (this._updateSnapshot === "new" || this._updateSnapshot === "all")) { - if (this._updateSnapshot === "all") { - if (!pass) { - if (hasSnapshot) { - this.updated++; - } else { - this.added++; - } - this._addSnapshot(key, receivedSerialized, { - error, - isInline, - rawSnapshot - }); - } else { - this.matched++; - } - } else { - this._addSnapshot(key, receivedSerialized, { - error, - isInline, - rawSnapshot - }); - this.added++; - } - return { - actual: "", - count, - expected: "", - key, - pass: true - }; - } else { - if (!pass) { - this.unmatched++; - return { - actual: removeExtraLineBreaks(receivedSerialized), - count, - expected: expectedTrimmed !== void 0 ? removeExtraLineBreaks(expectedTrimmed) : void 0, - key, - pass: false - }; - } else { - this.matched++; - return { - actual: "", - count, - expected: "", - key, - pass: true - }; - } - } - } - async pack() { - const snapshot = { - filepath: this.testFilePath, - added: 0, - fileDeleted: false, - matched: 0, - unchecked: 0, - uncheckedKeys: [], - unmatched: 0, - updated: 0 - }; - const uncheckedCount = this.getUncheckedCount(); - const uncheckedKeys = this.getUncheckedKeys(); - if (uncheckedCount) { - this.removeUncheckedKeys(); - } - const status = await this.save(); - snapshot.fileDeleted = status.deleted; - snapshot.added = this.added; - snapshot.matched = this.matched; - snapshot.unmatched = this.unmatched; - snapshot.updated = this.updated; - snapshot.unchecked = !status.deleted ? uncheckedCount : 0; - snapshot.uncheckedKeys = Array.from(uncheckedKeys); - return snapshot; - } -} - -function createMismatchError(message, expand, actual, expected) { - const error = new Error(message); - Object.defineProperty(error, "actual", { - value: actual, - enumerable: true, - configurable: true, - writable: true - }); - Object.defineProperty(error, "expected", { - value: expected, - enumerable: true, - configurable: true, - writable: true - }); - Object.defineProperty(error, "diffOptions", { value: { expand } }); - return error; -} -class SnapshotClient { - constructor(options = {}) { - this.options = options; - } - filepath; - name; - snapshotState; - snapshotStateMap = /* @__PURE__ */ new Map(); - async startCurrentRun(filepath, name, options) { - var _a; - this.filepath = filepath; - this.name = name; - if (((_a = this.snapshotState) == null ? void 0 : _a.testFilePath) !== filepath) { - await this.finishCurrentRun(); - if (!this.getSnapshotState(filepath)) { - this.snapshotStateMap.set( - filepath, - await SnapshotState.create(filepath, options) - ); - } - this.snapshotState = this.getSnapshotState(filepath); - } - } - getSnapshotState(filepath) { - return this.snapshotStateMap.get(filepath); - } - clearTest() { - this.filepath = void 0; - this.name = void 0; - } - skipTestSnapshots(name) { - var _a; - (_a = this.snapshotState) == null ? void 0 : _a.markSnapshotsAsCheckedForTest(name); - } - assert(options) { - var _a, _b, _c, _d; - const { - filepath = this.filepath, - name = this.name, - message, - isInline = false, - properties, - inlineSnapshot, - error, - errorMessage, - rawSnapshot - } = options; - let { received } = options; - if (!filepath) { - throw new Error("Snapshot cannot be used outside of test"); - } - if (typeof properties === "object") { - if (typeof received !== "object" || !received) { - throw new Error( - "Received value must be an object when the matcher has properties" - ); - } - try { - const pass2 = ((_b = (_a = this.options).isEqual) == null ? void 0 : _b.call(_a, received, properties)) ?? false; - if (!pass2) { - throw createMismatchError( - "Snapshot properties mismatched", - (_c = this.snapshotState) == null ? void 0 : _c.expand, - received, - properties - ); - } else { - received = deepMergeSnapshot(received, properties); - } - } catch (err) { - err.message = errorMessage || "Snapshot mismatched"; - throw err; - } - } - const testName = [name, ...message ? [message] : []].join(" > "); - const snapshotState = this.getSnapshotState(filepath); - const { actual, expected, key, pass } = snapshotState.match({ - testName, - received, - isInline, - error, - inlineSnapshot, - rawSnapshot - }); - if (!pass) { - throw createMismatchError( - `Snapshot \`${key || "unknown"}\` mismatched`, - (_d = this.snapshotState) == null ? void 0 : _d.expand, - actual == null ? void 0 : actual.trim(), - expected == null ? void 0 : expected.trim() - ); - } - } - async assertRaw(options) { - if (!options.rawSnapshot) { - throw new Error("Raw snapshot is required"); - } - const { filepath = this.filepath, rawSnapshot } = options; - if (rawSnapshot.content == null) { - if (!filepath) { - throw new Error("Snapshot cannot be used outside of test"); - } - const snapshotState = this.getSnapshotState(filepath); - options.filepath || (options.filepath = filepath); - rawSnapshot.file = await snapshotState.environment.resolveRawPath( - filepath, - rawSnapshot.file - ); - rawSnapshot.content = await snapshotState.environment.readSnapshotFile(rawSnapshot.file) ?? void 0; - } - return this.assert(options); - } - async finishCurrentRun() { - if (!this.snapshotState) { - return null; - } - const result = await this.snapshotState.pack(); - this.snapshotState = void 0; - return result; - } - clear() { - this.snapshotStateMap.clear(); - } -} - -export { SnapshotClient, SnapshotState, addSerializer, getSerializers, stripSnapshotIndentation }; diff --git a/node_modules/@vitest/snapshot/dist/manager.d.ts b/node_modules/@vitest/snapshot/dist/manager.d.ts deleted file mode 100644 index 7176eeb2..00000000 --- a/node_modules/@vitest/snapshot/dist/manager.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { S as SnapshotStateOptions, f as SnapshotSummary, b as SnapshotResult } from './index-Y6kQUiCB.js'; -import '@vitest/pretty-format'; -import './environment-Ddx0EDtY.js'; - -declare class SnapshotManager { - options: Omit; - summary: SnapshotSummary; - extension: string; - constructor(options: Omit); - clear(): void; - add(result: SnapshotResult): void; - resolvePath(testPath: string): string; - resolveRawPath(testPath: string, rawPath: string): string; -} -declare function emptySummary(options: Omit): SnapshotSummary; -declare function addSnapshotResult(summary: SnapshotSummary, result: SnapshotResult): void; - -export { SnapshotManager, addSnapshotResult, emptySummary }; diff --git a/node_modules/@vitest/snapshot/dist/manager.js b/node_modules/@vitest/snapshot/dist/manager.js deleted file mode 100644 index 34ed5228..00000000 --- a/node_modules/@vitest/snapshot/dist/manager.js +++ /dev/null @@ -1,76 +0,0 @@ -import { join, dirname, basename, isAbsolute, resolve } from 'pathe'; - -class SnapshotManager { - constructor(options) { - this.options = options; - this.clear(); - } - summary = void 0; - extension = ".snap"; - clear() { - this.summary = emptySummary(this.options); - } - add(result) { - addSnapshotResult(this.summary, result); - } - resolvePath(testPath) { - const resolver = this.options.resolveSnapshotPath || (() => { - return join( - join(dirname(testPath), "__snapshots__"), - `${basename(testPath)}${this.extension}` - ); - }); - const path = resolver(testPath, this.extension); - return path; - } - resolveRawPath(testPath, rawPath) { - return isAbsolute(rawPath) ? rawPath : resolve(dirname(testPath), rawPath); - } -} -function emptySummary(options) { - const summary = { - added: 0, - failure: false, - filesAdded: 0, - filesRemoved: 0, - filesRemovedList: [], - filesUnmatched: 0, - filesUpdated: 0, - matched: 0, - total: 0, - unchecked: 0, - uncheckedKeysByFile: [], - unmatched: 0, - updated: 0, - didUpdate: options.updateSnapshot === "all" - }; - return summary; -} -function addSnapshotResult(summary, result) { - if (result.added) { - summary.filesAdded++; - } - if (result.fileDeleted) { - summary.filesRemoved++; - } - if (result.unmatched) { - summary.filesUnmatched++; - } - if (result.updated) { - summary.filesUpdated++; - } - summary.added += result.added; - summary.matched += result.matched; - summary.unchecked += result.unchecked; - if (result.uncheckedKeys && result.uncheckedKeys.length > 0) { - summary.uncheckedKeysByFile.push({ - filePath: result.filepath, - keys: result.uncheckedKeys - }); - } - summary.unmatched += result.unmatched; - summary.updated += result.updated; - summary.total += result.added + result.matched + result.unmatched + result.updated; -} - -export { SnapshotManager, addSnapshotResult, emptySummary }; diff --git a/node_modules/@vitest/spy/dist/index.d.ts b/node_modules/@vitest/spy/dist/index.d.ts deleted file mode 100644 index 0ebbf680..00000000 --- a/node_modules/@vitest/spy/dist/index.d.ts +++ /dev/null @@ -1,322 +0,0 @@ -interface MockResultReturn { - type: 'return'; - /** - * The value that was returned from the function. If function returned a Promise, then this will be a resolved value. - */ - value: T; -} -interface MockResultIncomplete { - type: 'incomplete'; - value: undefined; -} -interface MockResultThrow { - type: 'throw'; - /** - * An error that was thrown during function execution. - */ - value: any; -} -interface MockSettledResultFulfilled { - type: 'fulfilled'; - value: T; -} -interface MockSettledResultRejected { - type: 'rejected'; - value: any; -} -type MockResult = MockResultReturn | MockResultThrow | MockResultIncomplete; -type MockSettledResult = MockSettledResultFulfilled | MockSettledResultRejected; -interface MockContext { - /** - * This is an array containing all arguments for each call. One item of the array is the arguments of that call. - * - * @example - * const fn = vi.fn() - * - * fn('arg1', 'arg2') - * fn('arg3') - * - * fn.mock.calls === [ - * ['arg1', 'arg2'], // first call - * ['arg3'], // second call - * ] - */ - calls: Parameters[]; - /** - * This is an array containing all instances that were instantiated when mock was called with a `new` keyword. Note that this is an actual context (`this`) of the function, not a return value. - */ - instances: ReturnType[]; - /** - * An array of `this` values that were used during each call to the mock function. - */ - contexts: ThisParameterType[]; - /** - * The order of mock's execution. This returns an array of numbers which are shared between all defined mocks. - * - * @example - * const fn1 = vi.fn() - * const fn2 = vi.fn() - * - * fn1() - * fn2() - * fn1() - * - * fn1.mock.invocationCallOrder === [1, 3] - * fn2.mock.invocationCallOrder === [2] - */ - invocationCallOrder: number[]; - /** - * This is an array containing all values that were `returned` from the function. - * - * The `value` property contains the returned value or thrown error. If the function returned a `Promise`, then `result` will always be `'return'` even if the promise was rejected. - * - * @example - * const fn = vi.fn() - * .mockReturnValueOnce('result') - * .mockImplementationOnce(() => { throw new Error('thrown error') }) - * - * const result = fn() - * - * try { - * fn() - * } - * catch {} - * - * fn.mock.results === [ - * { - * type: 'return', - * value: 'result', - * }, - * { - * type: 'throw', - * value: Error, - * }, - * ] - */ - results: MockResult>[]; - /** - * An array containing all values that were `resolved` or `rejected` from the function. - * - * This array will be empty if the function was never resolved or rejected. - * - * @example - * const fn = vi.fn().mockResolvedValueOnce('result') - * - * const result = fn() - * - * fn.mock.settledResults === [] - * fn.mock.results === [ - * { - * type: 'return', - * value: Promise<'result'>, - * }, - * ] - * - * await result - * - * fn.mock.settledResults === [ - * { - * type: 'fulfilled', - * value: 'result', - * }, - * ] - */ - settledResults: MockSettledResult>>[]; - /** - * This contains the arguments of the last call. If spy wasn't called, will return `undefined`. - */ - lastCall: Parameters | undefined; -} -type Procedure = (...args: any[]) => any; -type NormalizedPrecedure = (...args: Parameters) => ReturnType; -type Methods = keyof { - [K in keyof T as T[K] extends Procedure ? K : never]: T[K]; -}; -type Properties = { - [K in keyof T]: T[K] extends Procedure ? never : K; -}[keyof T] & (string | symbol); -type Classes = { - [K in keyof T]: T[K] extends new (...args: any[]) => any ? K : never; -}[keyof T] & (string | symbol); -interface MockInstance { - /** - * Use it to return the name given to mock with method `.mockName(name)`. - */ - getMockName(): string; - /** - * Sets internal mock name. Useful to see the name of the mock if an assertion fails. - */ - mockName(n: string): this; - /** - * Current context of the mock. It stores information about all invocation calls, instances, and results. - */ - mock: MockContext; - /** - * Clears all information about every call. After calling it, all properties on `.mock` will return an empty state. This method does not reset implementations. - * - * It is useful if you need to clean up mock between different assertions. - */ - mockClear(): this; - /** - * Does what `mockClear` does and makes inner implementation an empty function (returning `undefined` when invoked). This also resets all "once" implementations. - * - * This is useful when you want to completely reset a mock to the default state. - */ - mockReset(): this; - /** - * Does what `mockReset` does and restores inner implementation to the original function. - * - * Note that restoring mock from `vi.fn()` will set implementation to an empty function that returns `undefined`. Restoring a `vi.fn(impl)` will restore implementation to `impl`. - */ - mockRestore(): void; - /** - * Returns current mock implementation if there is one. - * - * If mock was created with `vi.fn`, it will consider passed down method as a mock implementation. - * - * If mock was created with `vi.spyOn`, it will return `undefined` unless a custom implementation was provided. - */ - getMockImplementation(): NormalizedPrecedure | undefined; - /** - * Accepts a function that will be used as an implementation of the mock. - * @example - * const increment = vi.fn().mockImplementation(count => count + 1); - * expect(increment(3)).toBe(4); - */ - mockImplementation(fn: NormalizedPrecedure): this; - /** - * Accepts a function that will be used as a mock implementation during the next call. Can be chained so that multiple function calls produce different results. - * @example - * const fn = vi.fn(count => count).mockImplementationOnce(count => count + 1); - * expect(fn(3)).toBe(4); - * expect(fn(3)).toBe(3); - */ - mockImplementationOnce(fn: NormalizedPrecedure): this; - /** - * Overrides the original mock implementation temporarily while the callback is being executed. - * @example - * const myMockFn = vi.fn(() => 'original') - * - * myMockFn.withImplementation(() => 'temp', () => { - * myMockFn() // 'temp' - * }) - * - * myMockFn() // 'original' - */ - withImplementation(fn: NormalizedPrecedure, cb: () => T2): T2 extends Promise ? Promise : this; - /** - * Use this if you need to return `this` context from the method without invoking actual implementation. - */ - mockReturnThis(): this; - /** - * Accepts a value that will be returned whenever the mock function is called. - */ - mockReturnValue(obj: ReturnType): this; - /** - * Accepts a value that will be returned during the next function call. If chained, every consecutive call will return the specified value. - * - * When there are no more `mockReturnValueOnce` values to use, mock will fallback to the previously defined implementation if there is one. - * @example - * const myMockFn = vi - * .fn() - * .mockReturnValue('default') - * .mockReturnValueOnce('first call') - * .mockReturnValueOnce('second call') - * - * // 'first call', 'second call', 'default' - * console.log(myMockFn(), myMockFn(), myMockFn()) - */ - mockReturnValueOnce(obj: ReturnType): this; - /** - * Accepts a value that will be resolved when async function is called. - * @example - * const asyncMock = vi.fn().mockResolvedValue(42) - * asyncMock() // Promise<42> - */ - mockResolvedValue(obj: Awaited>): this; - /** - * Accepts a value that will be resolved during the next function call. If chained, every consecutive call will resolve specified value. - * @example - * const myMockFn = vi - * .fn() - * .mockResolvedValue('default') - * .mockResolvedValueOnce('first call') - * .mockResolvedValueOnce('second call') - * - * // Promise<'first call'>, Promise<'second call'>, Promise<'default'> - * console.log(myMockFn(), myMockFn(), myMockFn()) - */ - mockResolvedValueOnce(obj: Awaited>): this; - /** - * Accepts an error that will be rejected when async function is called. - * @example - * const asyncMock = vi.fn().mockRejectedValue(new Error('Async error')) - * await asyncMock() // throws 'Async error' - */ - mockRejectedValue(obj: any): this; - /** - * Accepts a value that will be rejected during the next function call. If chained, every consecutive call will reject specified value. - * @example - * const asyncMock = vi - * .fn() - * .mockResolvedValueOnce('first call') - * .mockRejectedValueOnce(new Error('Async error')) - * - * await asyncMock() // first call - * await asyncMock() // throws "Async error" - */ - mockRejectedValueOnce(obj: any): this; -} -interface Mock extends MockInstance { - new (...args: Parameters): ReturnType; - (...args: Parameters): ReturnType; -} -type PartialMaybePromise = T extends Promise> ? Promise>> : Partial; -interface PartialMock extends MockInstance<(...args: Parameters) => PartialMaybePromise>> { - new (...args: Parameters): ReturnType; - (...args: Parameters): ReturnType; -} -type MaybeMockedConstructor = T extends new (...args: Array) => infer R ? Mock<(...args: ConstructorParameters) => R> : T; -type MockedFunction = Mock & { - [K in keyof T]: T[K]; -}; -type PartiallyMockedFunction = PartialMock & { - [K in keyof T]: T[K]; -}; -type MockedFunctionDeep = Mock & MockedObjectDeep; -type PartiallyMockedFunctionDeep = PartialMock & MockedObjectDeep; -type MockedObject = MaybeMockedConstructor & { - [K in Methods]: T[K] extends Procedure ? MockedFunction : T[K]; -} & { - [K in Properties]: T[K]; -}; -type MockedObjectDeep = MaybeMockedConstructor & { - [K in Methods]: T[K] extends Procedure ? MockedFunctionDeep : T[K]; -} & { - [K in Properties]: MaybeMockedDeep; -}; -type MaybeMockedDeep = T extends Procedure ? MockedFunctionDeep : T extends object ? MockedObjectDeep : T; -type MaybePartiallyMockedDeep = T extends Procedure ? PartiallyMockedFunctionDeep : T extends object ? MockedObjectDeep : T; -type MaybeMocked = T extends Procedure ? MockedFunction : T extends object ? MockedObject : T; -type MaybePartiallyMocked = T extends Procedure ? PartiallyMockedFunction : T extends object ? MockedObject : T; -interface Constructable { - new (...args: any[]): any; -} -type MockedClass = MockInstance<(...args: ConstructorParameters) => InstanceType> & { - prototype: T extends { - prototype: any; - } ? Mocked : never; -} & T; -type Mocked = { - [P in keyof T]: T[P] extends Procedure ? MockInstance : T[P] extends Constructable ? MockedClass : T[P]; -} & T; -declare const mocks: Set; -declare function isMockFunction(fn: any): fn is MockInstance; -declare function spyOn>>(obj: T, methodName: S, accessType: 'get'): MockInstance<() => T[S]>; -declare function spyOn>>(obj: T, methodName: G, accessType: 'set'): MockInstance<(arg: T[G]) => void>; -declare function spyOn> | Methods>>(obj: T, methodName: M): Required[M] extends { - new (...args: infer A): infer R; -} ? MockInstance<(this: R, ...args: A) => R> : T[M] extends Procedure ? MockInstance : never; -declare function fn(implementation?: T): Mock; - -export { type MaybeMocked, type MaybeMockedConstructor, type MaybeMockedDeep, type MaybePartiallyMocked, type MaybePartiallyMockedDeep, type Mock, type MockContext, type MockInstance, type MockResult, type MockSettledResult, type Mocked, type MockedClass, type MockedFunction, type MockedFunctionDeep, type MockedObject, type MockedObjectDeep, type PartialMock, type PartiallyMockedFunction, type PartiallyMockedFunctionDeep, fn, isMockFunction, mocks, spyOn }; diff --git a/node_modules/@vitest/spy/dist/index.js b/node_modules/@vitest/spy/dist/index.js deleted file mode 100644 index 5c47f80e..00000000 --- a/node_modules/@vitest/spy/dist/index.js +++ /dev/null @@ -1,145 +0,0 @@ -import * as tinyspy from 'tinyspy'; - -const mocks = /* @__PURE__ */ new Set(); -function isMockFunction(fn2) { - return typeof fn2 === "function" && "_isMockFunction" in fn2 && fn2._isMockFunction; -} -function spyOn(obj, method, accessType) { - const dictionary = { - get: "getter", - set: "setter" - }; - const objMethod = accessType ? { [dictionary[accessType]]: method } : method; - const stub = tinyspy.internalSpyOn(obj, objMethod); - return enhanceSpy(stub); -} -let callOrder = 0; -function enhanceSpy(spy) { - const stub = spy; - let implementation; - let instances = []; - let contexts = []; - let invocations = []; - const state = tinyspy.getInternalState(spy); - const mockContext = { - get calls() { - return state.calls; - }, - get contexts() { - return contexts; - }, - get instances() { - return instances; - }, - get invocationCallOrder() { - return invocations; - }, - get results() { - return state.results.map(([callType, value]) => { - const type = callType === "error" ? "throw" : "return"; - return { type, value }; - }); - }, - get settledResults() { - return state.resolves.map(([callType, value]) => { - const type = callType === "error" ? "rejected" : "fulfilled"; - return { type, value }; - }); - }, - get lastCall() { - return state.calls[state.calls.length - 1]; - } - }; - let onceImplementations = []; - let implementationChangedTemporarily = false; - function mockCall(...args) { - instances.push(this); - contexts.push(this); - invocations.push(++callOrder); - const impl = implementationChangedTemporarily ? implementation : onceImplementations.shift() || implementation || state.getOriginal() || (() => { - }); - return impl.apply(this, args); - } - let name = stub.name; - stub.getMockName = () => name || "vi.fn()"; - stub.mockName = (n) => { - name = n; - return stub; - }; - stub.mockClear = () => { - state.reset(); - instances = []; - contexts = []; - invocations = []; - return stub; - }; - stub.mockReset = () => { - stub.mockClear(); - implementation = () => void 0; - onceImplementations = []; - return stub; - }; - stub.mockRestore = () => { - stub.mockReset(); - state.restore(); - implementation = void 0; - return stub; - }; - stub.getMockImplementation = () => implementation; - stub.mockImplementation = (fn2) => { - implementation = fn2; - state.willCall(mockCall); - return stub; - }; - stub.mockImplementationOnce = (fn2) => { - onceImplementations.push(fn2); - return stub; - }; - function withImplementation(fn2, cb) { - const originalImplementation = implementation; - implementation = fn2; - state.willCall(mockCall); - implementationChangedTemporarily = true; - const reset = () => { - implementation = originalImplementation; - implementationChangedTemporarily = false; - }; - const result = cb(); - if (result instanceof Promise) { - return result.then(() => { - reset(); - return stub; - }); - } - reset(); - return stub; - } - stub.withImplementation = withImplementation; - stub.mockReturnThis = () => stub.mockImplementation(function() { - return this; - }); - stub.mockReturnValue = (val) => stub.mockImplementation(() => val); - stub.mockReturnValueOnce = (val) => stub.mockImplementationOnce(() => val); - stub.mockResolvedValue = (val) => stub.mockImplementation(() => Promise.resolve(val)); - stub.mockResolvedValueOnce = (val) => stub.mockImplementationOnce(() => Promise.resolve(val)); - stub.mockRejectedValue = (val) => stub.mockImplementation(() => Promise.reject(val)); - stub.mockRejectedValueOnce = (val) => stub.mockImplementationOnce(() => Promise.reject(val)); - Object.defineProperty(stub, "mock", { - get: () => mockContext - }); - state.willCall(mockCall); - mocks.add(stub); - return stub; -} -function fn(implementation) { - const enhancedSpy = enhanceSpy(tinyspy.internalSpyOn({ - spy: implementation || function() { - } - }, "spy")); - if (implementation) { - enhancedSpy.mockImplementation(implementation); - } - return enhancedSpy; -} - -export { fn, isMockFunction, mocks, spyOn }; diff --git a/node_modules/@vitest/utils/dist/ast.d.ts b/node_modules/@vitest/utils/dist/ast.d.ts deleted file mode 100644 index 80e095a5..00000000 --- a/node_modules/@vitest/utils/dist/ast.d.ts +++ /dev/null @@ -1,723 +0,0 @@ -// This definition file follows a somewhat unusual format. ESTree allows -// runtime type checks based on the `type` parameter. In order to explain this -// to typescript we want to use discriminated union types: -// https://github.com/Microsoft/TypeScript/pull/9163 -// -// For ESTree this is a bit tricky because the high level interfaces like -// Node or Function are pulling double duty. We want to pass common fields down -// to the interfaces that extend them (like Identifier or -// ArrowFunctionExpression), but you can't extend a type union or enforce -// common fields on them. So we've split the high level interfaces into two -// types, a base type which passes down inherited fields, and a type union of -// all types which extend the base type. Only the type union is exported, and -// the union is how other types refer to the collection of inheriting types. -// -// This makes the definitions file here somewhat more difficult to maintain, -// but it has the notable advantage of making ESTree much easier to use as -// an end user. - -interface BaseNodeWithoutComments { - // Every leaf interface that extends BaseNode must specify a type property. - // The type property should be a string literal. For example, Identifier - // has: `type: "Identifier"` - type: string; - loc?: SourceLocation | null | undefined; - range?: [number, number] | undefined; -} - -interface BaseNode extends BaseNodeWithoutComments { - leadingComments?: Comment[] | undefined; - trailingComments?: Comment[] | undefined; -} - -interface NodeMap { - AssignmentProperty: AssignmentProperty; - CatchClause: CatchClause; - Class: Class; - ClassBody: ClassBody; - Expression: Expression; - Function: Function; - Identifier: Identifier; - Literal: Literal; - MethodDefinition: MethodDefinition; - ModuleDeclaration: ModuleDeclaration; - ModuleSpecifier: ModuleSpecifier; - Pattern: Pattern; - PrivateIdentifier: PrivateIdentifier; - Program: Program; - Property: Property; - PropertyDefinition: PropertyDefinition; - SpreadElement: SpreadElement; - Statement: Statement; - Super: Super; - SwitchCase: SwitchCase; - TemplateElement: TemplateElement; - VariableDeclarator: VariableDeclarator; -} - -type Node$1 = NodeMap[keyof NodeMap]; - -interface Comment extends BaseNodeWithoutComments { - type: "Line" | "Block"; - value: string; -} - -interface SourceLocation { - source?: string | null | undefined; - start: Position; - end: Position; -} - -interface Position { - /** >= 1 */ - line: number; - /** >= 0 */ - column: number; -} - -interface Program extends BaseNode { - type: "Program"; - sourceType: "script" | "module"; - body: Array; - comments?: Comment[] | undefined; -} - -interface Directive extends BaseNode { - type: "ExpressionStatement"; - expression: Literal; - directive: string; -} - -interface BaseFunction extends BaseNode { - params: Pattern[]; - generator?: boolean | undefined; - async?: boolean | undefined; - // The body is either BlockStatement or Expression because arrow functions - // can have a body that's either. FunctionDeclarations and - // FunctionExpressions have only BlockStatement bodies. - body: BlockStatement | Expression; -} - -type Function = FunctionDeclaration | FunctionExpression | ArrowFunctionExpression; - -type Statement = - | ExpressionStatement - | BlockStatement - | StaticBlock - | EmptyStatement - | DebuggerStatement - | WithStatement - | ReturnStatement - | LabeledStatement - | BreakStatement - | ContinueStatement - | IfStatement - | SwitchStatement - | ThrowStatement - | TryStatement - | WhileStatement - | DoWhileStatement - | ForStatement - | ForInStatement - | ForOfStatement - | Declaration; - -interface BaseStatement extends BaseNode {} - -interface EmptyStatement extends BaseStatement { - type: "EmptyStatement"; -} - -interface BlockStatement extends BaseStatement { - type: "BlockStatement"; - body: Statement[]; - innerComments?: Comment[] | undefined; -} - -interface StaticBlock extends Omit { - type: "StaticBlock"; -} - -interface ExpressionStatement extends BaseStatement { - type: "ExpressionStatement"; - expression: Expression; -} - -interface IfStatement extends BaseStatement { - type: "IfStatement"; - test: Expression; - consequent: Statement; - alternate?: Statement | null | undefined; -} - -interface LabeledStatement extends BaseStatement { - type: "LabeledStatement"; - label: Identifier; - body: Statement; -} - -interface BreakStatement extends BaseStatement { - type: "BreakStatement"; - label?: Identifier | null | undefined; -} - -interface ContinueStatement extends BaseStatement { - type: "ContinueStatement"; - label?: Identifier | null | undefined; -} - -interface WithStatement extends BaseStatement { - type: "WithStatement"; - object: Expression; - body: Statement; -} - -interface SwitchStatement extends BaseStatement { - type: "SwitchStatement"; - discriminant: Expression; - cases: SwitchCase[]; -} - -interface ReturnStatement extends BaseStatement { - type: "ReturnStatement"; - argument?: Expression | null | undefined; -} - -interface ThrowStatement extends BaseStatement { - type: "ThrowStatement"; - argument: Expression; -} - -interface TryStatement extends BaseStatement { - type: "TryStatement"; - block: BlockStatement; - handler?: CatchClause | null | undefined; - finalizer?: BlockStatement | null | undefined; -} - -interface WhileStatement extends BaseStatement { - type: "WhileStatement"; - test: Expression; - body: Statement; -} - -interface DoWhileStatement extends BaseStatement { - type: "DoWhileStatement"; - body: Statement; - test: Expression; -} - -interface ForStatement extends BaseStatement { - type: "ForStatement"; - init?: VariableDeclaration | Expression | null | undefined; - test?: Expression | null | undefined; - update?: Expression | null | undefined; - body: Statement; -} - -interface BaseForXStatement extends BaseStatement { - left: VariableDeclaration | Pattern; - right: Expression; - body: Statement; -} - -interface ForInStatement extends BaseForXStatement { - type: "ForInStatement"; -} - -interface DebuggerStatement extends BaseStatement { - type: "DebuggerStatement"; -} - -type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration; - -interface BaseDeclaration extends BaseStatement {} - -interface MaybeNamedFunctionDeclaration extends BaseFunction, BaseDeclaration { - type: "FunctionDeclaration"; - /** It is null when a function declaration is a part of the `export default function` statement */ - id: Identifier | null; - body: BlockStatement; -} - -interface FunctionDeclaration extends MaybeNamedFunctionDeclaration { - id: Identifier; -} - -interface VariableDeclaration extends BaseDeclaration { - type: "VariableDeclaration"; - declarations: VariableDeclarator[]; - kind: "var" | "let" | "const"; -} - -interface VariableDeclarator extends BaseNode { - type: "VariableDeclarator"; - id: Pattern; - init?: Expression | null | undefined; -} - -interface ExpressionMap { - ArrayExpression: ArrayExpression; - ArrowFunctionExpression: ArrowFunctionExpression; - AssignmentExpression: AssignmentExpression; - AwaitExpression: AwaitExpression; - BinaryExpression: BinaryExpression; - CallExpression: CallExpression; - ChainExpression: ChainExpression; - ClassExpression: ClassExpression; - ConditionalExpression: ConditionalExpression; - FunctionExpression: FunctionExpression; - Identifier: Identifier; - ImportExpression: ImportExpression; - Literal: Literal; - LogicalExpression: LogicalExpression; - MemberExpression: MemberExpression; - MetaProperty: MetaProperty; - NewExpression: NewExpression; - ObjectExpression: ObjectExpression; - SequenceExpression: SequenceExpression; - TaggedTemplateExpression: TaggedTemplateExpression; - TemplateLiteral: TemplateLiteral; - ThisExpression: ThisExpression; - UnaryExpression: UnaryExpression; - UpdateExpression: UpdateExpression; - YieldExpression: YieldExpression; -} - -type Expression = ExpressionMap[keyof ExpressionMap]; - -interface BaseExpression extends BaseNode {} - -type ChainElement = SimpleCallExpression | MemberExpression; - -interface ChainExpression extends BaseExpression { - type: "ChainExpression"; - expression: ChainElement; -} - -interface ThisExpression extends BaseExpression { - type: "ThisExpression"; -} - -interface ArrayExpression extends BaseExpression { - type: "ArrayExpression"; - elements: Array; -} - -interface ObjectExpression extends BaseExpression { - type: "ObjectExpression"; - properties: Array; -} - -interface PrivateIdentifier extends BaseNode { - type: "PrivateIdentifier"; - name: string; -} - -interface Property extends BaseNode { - type: "Property"; - key: Expression | PrivateIdentifier; - value: Expression | Pattern; // Could be an AssignmentProperty - kind: "init" | "get" | "set"; - method: boolean; - shorthand: boolean; - computed: boolean; -} - -interface PropertyDefinition extends BaseNode { - type: "PropertyDefinition"; - key: Expression | PrivateIdentifier; - value?: Expression | null | undefined; - computed: boolean; - static: boolean; -} - -interface FunctionExpression extends BaseFunction, BaseExpression { - id?: Identifier | null | undefined; - type: "FunctionExpression"; - body: BlockStatement; -} - -interface SequenceExpression extends BaseExpression { - type: "SequenceExpression"; - expressions: Expression[]; -} - -interface UnaryExpression extends BaseExpression { - type: "UnaryExpression"; - operator: UnaryOperator; - prefix: true; - argument: Expression; -} - -interface BinaryExpression extends BaseExpression { - type: "BinaryExpression"; - operator: BinaryOperator; - left: Expression; - right: Expression; -} - -interface AssignmentExpression extends BaseExpression { - type: "AssignmentExpression"; - operator: AssignmentOperator; - left: Pattern | MemberExpression; - right: Expression; -} - -interface UpdateExpression extends BaseExpression { - type: "UpdateExpression"; - operator: UpdateOperator; - argument: Expression; - prefix: boolean; -} - -interface LogicalExpression extends BaseExpression { - type: "LogicalExpression"; - operator: LogicalOperator; - left: Expression; - right: Expression; -} - -interface ConditionalExpression extends BaseExpression { - type: "ConditionalExpression"; - test: Expression; - alternate: Expression; - consequent: Expression; -} - -interface BaseCallExpression extends BaseExpression { - callee: Expression | Super; - arguments: Array; -} -type CallExpression = SimpleCallExpression | NewExpression; - -interface SimpleCallExpression extends BaseCallExpression { - type: "CallExpression"; - optional: boolean; -} - -interface NewExpression extends BaseCallExpression { - type: "NewExpression"; -} - -interface MemberExpression extends BaseExpression, BasePattern { - type: "MemberExpression"; - object: Expression | Super; - property: Expression | PrivateIdentifier; - computed: boolean; - optional: boolean; -} - -type Pattern = Identifier | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | MemberExpression; - -interface BasePattern extends BaseNode {} - -interface SwitchCase extends BaseNode { - type: "SwitchCase"; - test?: Expression | null | undefined; - consequent: Statement[]; -} - -interface CatchClause extends BaseNode { - type: "CatchClause"; - param: Pattern | null; - body: BlockStatement; -} - -interface Identifier extends BaseNode, BaseExpression, BasePattern { - type: "Identifier"; - name: string; -} - -type Literal = SimpleLiteral | RegExpLiteral | BigIntLiteral; - -interface SimpleLiteral extends BaseNode, BaseExpression { - type: "Literal"; - value: string | boolean | number | null; - raw?: string | undefined; -} - -interface RegExpLiteral extends BaseNode, BaseExpression { - type: "Literal"; - value?: RegExp | null | undefined; - regex: { - pattern: string; - flags: string; - }; - raw?: string | undefined; -} - -interface BigIntLiteral extends BaseNode, BaseExpression { - type: "Literal"; - value?: bigint | null | undefined; - bigint: string; - raw?: string | undefined; -} - -type UnaryOperator = "-" | "+" | "!" | "~" | "typeof" | "void" | "delete"; - -type BinaryOperator = - | "==" - | "!=" - | "===" - | "!==" - | "<" - | "<=" - | ">" - | ">=" - | "<<" - | ">>" - | ">>>" - | "+" - | "-" - | "*" - | "/" - | "%" - | "**" - | "|" - | "^" - | "&" - | "in" - | "instanceof"; - -type LogicalOperator = "||" | "&&" | "??"; - -type AssignmentOperator = - | "=" - | "+=" - | "-=" - | "*=" - | "/=" - | "%=" - | "**=" - | "<<=" - | ">>=" - | ">>>=" - | "|=" - | "^=" - | "&=" - | "||=" - | "&&=" - | "??="; - -type UpdateOperator = "++" | "--"; - -interface ForOfStatement extends BaseForXStatement { - type: "ForOfStatement"; - await: boolean; -} - -interface Super extends BaseNode { - type: "Super"; -} - -interface SpreadElement extends BaseNode { - type: "SpreadElement"; - argument: Expression; -} - -interface ArrowFunctionExpression extends BaseExpression, BaseFunction { - type: "ArrowFunctionExpression"; - expression: boolean; - body: BlockStatement | Expression; -} - -interface YieldExpression extends BaseExpression { - type: "YieldExpression"; - argument?: Expression | null | undefined; - delegate: boolean; -} - -interface TemplateLiteral extends BaseExpression { - type: "TemplateLiteral"; - quasis: TemplateElement[]; - expressions: Expression[]; -} - -interface TaggedTemplateExpression extends BaseExpression { - type: "TaggedTemplateExpression"; - tag: Expression; - quasi: TemplateLiteral; -} - -interface TemplateElement extends BaseNode { - type: "TemplateElement"; - tail: boolean; - value: { - /** It is null when the template literal is tagged and the text has an invalid escape (e.g. - tag`\unicode and \u{55}`) */ - cooked?: string | null | undefined; - raw: string; - }; -} - -interface AssignmentProperty extends Property { - value: Pattern; - kind: "init"; - method: boolean; // false -} - -interface ObjectPattern extends BasePattern { - type: "ObjectPattern"; - properties: Array; -} - -interface ArrayPattern extends BasePattern { - type: "ArrayPattern"; - elements: Array; -} - -interface RestElement extends BasePattern { - type: "RestElement"; - argument: Pattern; -} - -interface AssignmentPattern extends BasePattern { - type: "AssignmentPattern"; - left: Pattern; - right: Expression; -} - -type Class = ClassDeclaration | ClassExpression; -interface BaseClass extends BaseNode { - superClass?: Expression | null | undefined; - body: ClassBody; -} - -interface ClassBody extends BaseNode { - type: "ClassBody"; - body: Array; -} - -interface MethodDefinition extends BaseNode { - type: "MethodDefinition"; - key: Expression | PrivateIdentifier; - value: FunctionExpression; - kind: "constructor" | "method" | "get" | "set"; - computed: boolean; - static: boolean; -} - -interface MaybeNamedClassDeclaration extends BaseClass, BaseDeclaration { - type: "ClassDeclaration"; - /** It is null when a class declaration is a part of the `export default class` statement */ - id: Identifier | null; -} - -interface ClassDeclaration extends MaybeNamedClassDeclaration { - id: Identifier; -} - -interface ClassExpression extends BaseClass, BaseExpression { - type: "ClassExpression"; - id?: Identifier | null | undefined; -} - -interface MetaProperty extends BaseExpression { - type: "MetaProperty"; - meta: Identifier; - property: Identifier; -} - -type ModuleDeclaration = - | ImportDeclaration - | ExportNamedDeclaration - | ExportDefaultDeclaration - | ExportAllDeclaration; -interface BaseModuleDeclaration extends BaseNode {} - -type ModuleSpecifier = ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier; -interface BaseModuleSpecifier extends BaseNode { - local: Identifier; -} - -interface ImportDeclaration extends BaseModuleDeclaration { - type: "ImportDeclaration"; - specifiers: Array; - source: Literal; -} - -interface ImportSpecifier extends BaseModuleSpecifier { - type: "ImportSpecifier"; - imported: Identifier; -} - -interface ImportExpression extends BaseExpression { - type: "ImportExpression"; - source: Expression; -} - -interface ImportDefaultSpecifier extends BaseModuleSpecifier { - type: "ImportDefaultSpecifier"; -} - -interface ImportNamespaceSpecifier extends BaseModuleSpecifier { - type: "ImportNamespaceSpecifier"; -} - -interface ExportNamedDeclaration extends BaseModuleDeclaration { - type: "ExportNamedDeclaration"; - declaration?: Declaration | null | undefined; - specifiers: ExportSpecifier[]; - source?: Literal | null | undefined; -} - -interface ExportSpecifier extends BaseModuleSpecifier { - type: "ExportSpecifier"; - exported: Identifier; -} - -interface ExportDefaultDeclaration extends BaseModuleDeclaration { - type: "ExportDefaultDeclaration"; - declaration: MaybeNamedFunctionDeclaration | MaybeNamedClassDeclaration | Expression; -} - -interface ExportAllDeclaration extends BaseModuleDeclaration { - type: "ExportAllDeclaration"; - exported: Identifier | null; - source: Literal; -} - -interface AwaitExpression extends BaseExpression { - type: "AwaitExpression"; - argument: Expression; -} - -type Positioned = T & { - start: number; - end: number; -}; -type Node = Positioned; -interface IdentifierInfo { - /** - * If the identifier is used in a property shorthand - * { foo } -> { foo: __import_x__.foo } - */ - hasBindingShortcut: boolean; - /** - * The identifier is used in a class declaration - */ - classDeclaration: boolean; - /** - * The identifier is a name for a class expression - */ - classExpression: boolean; -} -interface Visitors { - onIdentifier?: (node: Positioned, info: IdentifierInfo, parentStack: Node[]) => void; - onImportMeta?: (node: Node) => void; - onDynamicImport?: (node: Positioned) => void; - onCallExpression?: (node: Positioned) => void; -} -declare function setIsNodeInPattern(node: Property): WeakSet; -declare function isNodeInPattern(node: Node$1): node is Property; -/** - * Same logic from \@vue/compiler-core & \@vue/compiler-sfc - * Except this is using acorn AST - */ -declare function esmWalker(root: Node, { onIdentifier, onImportMeta, onDynamicImport, onCallExpression }: Visitors): void; -declare function isStaticProperty(node: Node$1): node is Property; -declare function isStaticPropertyKey(node: Node$1, parent: Node$1): boolean; -declare function isFunctionNode(node: Node$1): node is Function; -declare function isInDestructuringAssignment(parent: Node$1, parentStack: Node$1[]): boolean; - -export { type ArrayExpression, type ArrayPattern, type ArrowFunctionExpression, type AssignmentExpression, type AssignmentOperator, type AssignmentPattern, type AssignmentProperty, type AwaitExpression, type BaseCallExpression, type BaseClass, type BaseDeclaration, type BaseExpression, type BaseForXStatement, type BaseFunction, type BaseModuleDeclaration, type BaseModuleSpecifier, type BaseNode, type BaseNodeWithoutComments, type BasePattern, type BaseStatement, type BigIntLiteral, type BinaryExpression, type BinaryOperator, type BlockStatement, type BreakStatement, type CallExpression, type CatchClause, type ChainElement, type ChainExpression, type Class, type ClassBody, type ClassDeclaration, type ClassExpression, type Comment, type ConditionalExpression, type ContinueStatement, type DebuggerStatement, type Declaration, type Directive, type DoWhileStatement, type EmptyStatement, type ExportAllDeclaration, type ExportDefaultDeclaration, type ExportNamedDeclaration, type ExportSpecifier, type Expression, type ExpressionMap, type ExpressionStatement, type ForInStatement, type ForOfStatement, type ForStatement, type Function, type FunctionDeclaration, type FunctionExpression, type Identifier, type IfStatement, type ImportDeclaration, type ImportDefaultSpecifier, type ImportExpression, type ImportNamespaceSpecifier, type ImportSpecifier, type LabeledStatement, type Literal, type LogicalExpression, type LogicalOperator, type MaybeNamedClassDeclaration, type MaybeNamedFunctionDeclaration, type MemberExpression, type MetaProperty, type MethodDefinition, type ModuleDeclaration, type ModuleSpecifier, type NewExpression, type Node, type NodeMap, type ObjectExpression, type ObjectPattern, type Pattern, type Position, type Positioned, type PrivateIdentifier, type Program, type Property, type PropertyDefinition, type RegExpLiteral, type RestElement, type ReturnStatement, type SequenceExpression, type SimpleCallExpression, type SimpleLiteral, type SourceLocation, type SpreadElement, type Statement, type StaticBlock, type Super, type SwitchCase, type SwitchStatement, type TaggedTemplateExpression, type TemplateElement, type TemplateLiteral, type ThisExpression, type ThrowStatement, type TryStatement, type UnaryExpression, type UnaryOperator, type UpdateExpression, type UpdateOperator, type VariableDeclaration, type VariableDeclarator, type WhileStatement, type WithStatement, type YieldExpression, esmWalker, isFunctionNode, isInDestructuringAssignment, isNodeInPattern, isStaticProperty, isStaticPropertyKey, setIsNodeInPattern }; diff --git a/node_modules/@vitest/utils/dist/ast.js b/node_modules/@vitest/utils/dist/ast.js deleted file mode 100644 index 7f2c6ac2..00000000 --- a/node_modules/@vitest/utils/dist/ast.js +++ /dev/null @@ -1,211 +0,0 @@ -import { walk } from 'estree-walker'; - -const isNodeInPatternWeakSet = /* @__PURE__ */ new WeakSet(); -function setIsNodeInPattern(node) { - return isNodeInPatternWeakSet.add(node); -} -function isNodeInPattern(node) { - return isNodeInPatternWeakSet.has(node); -} -function esmWalker(root, { onIdentifier, onImportMeta, onDynamicImport, onCallExpression }) { - const parentStack = []; - const varKindStack = []; - const scopeMap = /* @__PURE__ */ new WeakMap(); - const identifiers = []; - const setScope = (node, name) => { - let scopeIds = scopeMap.get(node); - if (scopeIds && scopeIds.has(name)) { - return; - } - if (!scopeIds) { - scopeIds = /* @__PURE__ */ new Set(); - scopeMap.set(node, scopeIds); - } - scopeIds.add(name); - }; - function isInScope(name, parents) { - return parents.some((node) => { - var _a; - return node && ((_a = scopeMap.get(node)) == null ? void 0 : _a.has(name)); - }); - } - function handlePattern(p, parentScope) { - if (p.type === "Identifier") { - setScope(parentScope, p.name); - } else if (p.type === "RestElement") { - handlePattern(p.argument, parentScope); - } else if (p.type === "ObjectPattern") { - p.properties.forEach((property) => { - if (property.type === "RestElement") { - setScope(parentScope, property.argument.name); - } else { - handlePattern(property.value, parentScope); - } - }); - } else if (p.type === "ArrayPattern") { - p.elements.forEach((element) => { - if (element) { - handlePattern(element, parentScope); - } - }); - } else if (p.type === "AssignmentPattern") { - handlePattern(p.left, parentScope); - } else { - setScope(parentScope, p.name); - } - } - walk(root, { - enter(node, parent) { - if (node.type === "ImportDeclaration") { - return this.skip(); - } - if (parent && !(parent.type === "IfStatement" && node === parent.alternate)) { - parentStack.unshift(parent); - } - if (node.type === "VariableDeclaration") { - varKindStack.unshift(node.kind); - } - if (node.type === "CallExpression") { - onCallExpression == null ? void 0 : onCallExpression(node); - } - if (node.type === "MetaProperty" && node.meta.name === "import") { - onImportMeta == null ? void 0 : onImportMeta(node); - } else if (node.type === "ImportExpression") { - onDynamicImport == null ? void 0 : onDynamicImport(node); - } - if (node.type === "Identifier") { - if (!isInScope(node.name, parentStack) && isRefIdentifier(node, parent, parentStack)) { - identifiers.push([node, parentStack.slice(0)]); - } - } else if (isFunctionNode(node)) { - if (node.type === "FunctionDeclaration") { - const parentScope = findParentScope(parentStack); - if (parentScope) { - setScope(parentScope, node.id.name); - } - } - node.params.forEach((p) => { - if (p.type === "ObjectPattern" || p.type === "ArrayPattern") { - handlePattern(p, node); - return; - } - walk(p.type === "AssignmentPattern" ? p.left : p, { - enter(child, parent2) { - if ((parent2 == null ? void 0 : parent2.type) === "AssignmentPattern" && (parent2 == null ? void 0 : parent2.right) === child) { - return this.skip(); - } - if (child.type !== "Identifier") { - return; - } - if (isStaticPropertyKey(child, parent2)) { - return; - } - if ((parent2 == null ? void 0 : parent2.type) === "TemplateLiteral" && (parent2 == null ? void 0 : parent2.expressions.includes(child)) || (parent2 == null ? void 0 : parent2.type) === "CallExpression" && (parent2 == null ? void 0 : parent2.callee) === child) { - return; - } - setScope(node, child.name); - } - }); - }); - } else if (node.type === "Property" && parent.type === "ObjectPattern") { - setIsNodeInPattern(node); - } else if (node.type === "VariableDeclarator") { - const parentFunction = findParentScope( - parentStack, - varKindStack[0] === "var" - ); - if (parentFunction) { - handlePattern(node.id, parentFunction); - } - } else if (node.type === "CatchClause" && node.param) { - handlePattern(node.param, node); - } - }, - leave(node, parent) { - if (parent && !(parent.type === "IfStatement" && node === parent.alternate)) { - parentStack.shift(); - } - if (node.type === "VariableDeclaration") { - varKindStack.shift(); - } - } - }); - identifiers.forEach(([node, stack]) => { - if (!isInScope(node.name, stack)) { - const parent = stack[0]; - const grandparent = stack[1]; - const hasBindingShortcut = isStaticProperty(parent) && parent.shorthand && (!isNodeInPattern(parent) || isInDestructuringAssignment(parent, parentStack)); - const classDeclaration = parent.type === "PropertyDefinition" && (grandparent == null ? void 0 : grandparent.type) === "ClassBody" || parent.type === "ClassDeclaration" && node === parent.superClass; - const classExpression = parent.type === "ClassExpression" && node === parent.id; - onIdentifier == null ? void 0 : onIdentifier( - node, - { - hasBindingShortcut, - classDeclaration, - classExpression - }, - stack - ); - } - }); -} -function isRefIdentifier(id, parent, parentStack) { - if (parent.type === "CatchClause" || (parent.type === "VariableDeclarator" || parent.type === "ClassDeclaration") && parent.id === id) { - return false; - } - if (isFunctionNode(parent)) { - if (parent.id === id) { - return false; - } - if (parent.params.includes(id)) { - return false; - } - } - if (parent.type === "MethodDefinition" && !parent.computed) { - return false; - } - if (isStaticPropertyKey(id, parent)) { - return false; - } - if (isNodeInPattern(parent) && parent.value === id) { - return false; - } - if (parent.type === "ArrayPattern" && !isInDestructuringAssignment(parent, parentStack)) { - return false; - } - if (parent.type === "MemberExpression" && parent.property === id && !parent.computed) { - return false; - } - if (parent.type === "ExportSpecifier") { - return false; - } - if (id.name === "arguments") { - return false; - } - return true; -} -function isStaticProperty(node) { - return node && node.type === "Property" && !node.computed; -} -function isStaticPropertyKey(node, parent) { - return isStaticProperty(parent) && parent.key === node; -} -const functionNodeTypeRE = /Function(?:Expression|Declaration)$|Method$/; -function isFunctionNode(node) { - return functionNodeTypeRE.test(node.type); -} -const blockNodeTypeRE = /^BlockStatement$|^For(?:In|Of)?Statement$/; -function isBlock(node) { - return blockNodeTypeRE.test(node.type); -} -function findParentScope(parentStack, isVar = false) { - return parentStack.find(isVar ? isFunctionNode : isBlock); -} -function isInDestructuringAssignment(parent, parentStack) { - if (parent && (parent.type === "Property" || parent.type === "ArrayPattern")) { - return parentStack.some((i) => i.type === "AssignmentExpression"); - } - return false; -} - -export { esmWalker, isFunctionNode, isInDestructuringAssignment, isNodeInPattern, isStaticProperty, isStaticPropertyKey, setIsNodeInPattern }; diff --git a/node_modules/@vitest/utils/dist/chunk-display.js b/node_modules/@vitest/utils/dist/chunk-display.js deleted file mode 100644 index 258c1793..00000000 --- a/node_modules/@vitest/utils/dist/chunk-display.js +++ /dev/null @@ -1,155 +0,0 @@ -import * as loupe from 'loupe'; -import { format as format$1, plugins } from '@vitest/pretty-format'; - -const { - AsymmetricMatcher, - DOMCollection, - DOMElement, - Immutable, - ReactElement, - ReactTestComponent -} = plugins; -const PLUGINS = [ - ReactTestComponent, - ReactElement, - DOMElement, - DOMCollection, - Immutable, - AsymmetricMatcher -]; -function stringify(object, maxDepth = 10, { maxLength, ...options } = {}) { - const MAX_LENGTH = maxLength ?? 1e4; - let result; - try { - result = format$1(object, { - maxDepth, - escapeString: false, - // min: true, - plugins: PLUGINS, - ...options - }); - } catch { - result = format$1(object, { - callToJSON: false, - maxDepth, - escapeString: false, - // min: true, - plugins: PLUGINS, - ...options - }); - } - return result.length >= MAX_LENGTH && maxDepth > 1 ? stringify(object, Math.floor(maxDepth / 2)) : result; -} -const formatRegExp = /%[sdjifoOc%]/g; -function format(...args) { - if (typeof args[0] !== "string") { - const objects = []; - for (let i2 = 0; i2 < args.length; i2++) { - objects.push(inspect(args[i2], { depth: 0, colors: false })); - } - return objects.join(" "); - } - const len = args.length; - let i = 1; - const template = args[0]; - let str = String(template).replace(formatRegExp, (x) => { - if (x === "%%") { - return "%"; - } - if (i >= len) { - return x; - } - switch (x) { - case "%s": { - const value = args[i++]; - if (typeof value === "bigint") { - return `${value.toString()}n`; - } - if (typeof value === "number" && value === 0 && 1 / value < 0) { - return "-0"; - } - if (typeof value === "object" && value !== null) { - return inspect(value, { depth: 0, colors: false }); - } - return String(value); - } - case "%d": { - const value = args[i++]; - if (typeof value === "bigint") { - return `${value.toString()}n`; - } - return Number(value).toString(); - } - case "%i": { - const value = args[i++]; - if (typeof value === "bigint") { - return `${value.toString()}n`; - } - return Number.parseInt(String(value)).toString(); - } - case "%f": - return Number.parseFloat(String(args[i++])).toString(); - case "%o": - return inspect(args[i++], { showHidden: true, showProxy: true }); - case "%O": - return inspect(args[i++]); - case "%c": { - i++; - return ""; - } - case "%j": - try { - return JSON.stringify(args[i++]); - } catch (err) { - const m = err.message; - if ( - // chromium - m.includes("circular structure") || m.includes("cyclic structures") || m.includes("cyclic object") - ) { - return "[Circular]"; - } - throw err; - } - default: - return x; - } - }); - for (let x = args[i]; i < len; x = args[++i]) { - if (x === null || typeof x !== "object") { - str += ` ${x}`; - } else { - str += ` ${inspect(x)}`; - } - } - return str; -} -function inspect(obj, options = {}) { - if (options.truncate === 0) { - options.truncate = Number.POSITIVE_INFINITY; - } - return loupe.inspect(obj, options); -} -function objDisplay(obj, options = {}) { - if (typeof options.truncate === "undefined") { - options.truncate = 40; - } - const str = inspect(obj, options); - const type = Object.prototype.toString.call(obj); - if (options.truncate && str.length >= options.truncate) { - if (type === "[object Function]") { - const fn = obj; - return !fn.name ? "[Function]" : `[Function: ${fn.name}]`; - } else if (type === "[object Array]") { - return `[ Array(${obj.length}) ]`; - } else if (type === "[object Object]") { - const keys = Object.keys(obj); - const kstr = keys.length > 2 ? `${keys.splice(0, 2).join(", ")}, ...` : keys.join(", "); - return `{ Object (${kstr}) }`; - } else { - return str; - } - } - return str; -} - -export { format as f, inspect as i, objDisplay as o, stringify as s }; diff --git a/node_modules/@vitest/utils/dist/diff.d.ts b/node_modules/@vitest/utils/dist/diff.d.ts deleted file mode 100644 index cead10e3..00000000 --- a/node_modules/@vitest/utils/dist/diff.d.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { D as DiffOptions } from './types-Bxe-2Udy.js'; -export { a as DiffOptionsColor } from './types-Bxe-2Udy.js'; -import '@vitest/pretty-format'; - -/** - * Diff Match and Patch - * Copyright 2018 The diff-match-patch Authors. - * https://github.com/google/diff-match-patch - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * @fileoverview Computes the difference between two texts to create a patch. - * Applies the patch onto another text, allowing for errors. - * @author fraser@google.com (Neil Fraser) - */ -/** - * CHANGES by pedrottimark to diff_match_patch_uncompressed.ts file: - * - * 1. Delete anything not needed to use diff_cleanupSemantic method - * 2. Convert from prototype properties to var declarations - * 3. Convert Diff to class from constructor and prototype - * 4. Add type annotations for arguments and return values - * 5. Add exports - */ -/** - * The data structure representing a diff is an array of tuples: - * [[DIFF_DELETE, 'Hello'], [DIFF_INSERT, 'Goodbye'], [DIFF_EQUAL, ' world.']] - * which means: delete 'Hello', add 'Goodbye' and keep ' world.' - */ -declare const DIFF_DELETE = -1; -declare const DIFF_INSERT = 1; -declare const DIFF_EQUAL = 0; -/** - * Class representing one diff tuple. - * Attempts to look like a two-element array (which is what this used to be). - * @param {number} op Operation, one of: DIFF_DELETE, DIFF_INSERT, DIFF_EQUAL. - * @param {string} text Text to be deleted, inserted, or retained. - * @constructor - */ -declare class Diff { - 0: number; - 1: string; - constructor(op: number, text: string); -} - -/** - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -declare function diffLinesUnified(aLines: Array, bLines: Array, options?: DiffOptions): string; -declare function diffLinesUnified2(aLinesDisplay: Array, bLinesDisplay: Array, aLinesCompare: Array, bLinesCompare: Array, options?: DiffOptions): string; -declare function diffLinesRaw(aLines: Array, bLines: Array, options?: DiffOptions): [Array, boolean]; - -/** - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -declare function diffStringsUnified(a: string, b: string, options?: DiffOptions): string; -declare function diffStringsRaw(a: string, b: string, cleanup: boolean, options?: DiffOptions): [Array, boolean]; - -/** - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -/** - * @param a Expected value - * @param b Received value - * @param options Diff options - * @returns {string | null} a string diff - */ -declare function diff(a: any, b: any, options?: DiffOptions): string | undefined; -declare function printDiffOrStringify(expected: unknown, received: unknown, options?: DiffOptions): string | undefined; -declare function replaceAsymmetricMatcher(actual: any, expected: any, actualReplaced?: WeakSet, expectedReplaced?: WeakSet): { - replacedActual: any; - replacedExpected: any; -}; -type PrintLabel = (string: string) => string; -declare function getLabelPrinter(...strings: Array): PrintLabel; - -export { DIFF_DELETE, DIFF_EQUAL, DIFF_INSERT, Diff, DiffOptions, diff, diffLinesRaw, diffLinesUnified, diffLinesUnified2, diffStringsRaw, diffStringsUnified, getLabelPrinter, printDiffOrStringify, replaceAsymmetricMatcher }; diff --git a/node_modules/@vitest/utils/dist/diff.js b/node_modules/@vitest/utils/dist/diff.js deleted file mode 100644 index 9d32cadc..00000000 --- a/node_modules/@vitest/utils/dist/diff.js +++ /dev/null @@ -1,2049 +0,0 @@ -import { format, plugins } from '@vitest/pretty-format'; -import c from 'tinyrainbow'; -import { s as stringify } from './chunk-display.js'; -import { deepClone, getOwnProperties, getType as getType$1 } from './helpers.js'; -import 'loupe'; - -function getType(value) { - if (value === void 0) { - return "undefined"; - } else if (value === null) { - return "null"; - } else if (Array.isArray(value)) { - return "array"; - } else if (typeof value === "boolean") { - return "boolean"; - } else if (typeof value === "function") { - return "function"; - } else if (typeof value === "number") { - return "number"; - } else if (typeof value === "string") { - return "string"; - } else if (typeof value === "bigint") { - return "bigint"; - } else if (typeof value === "object") { - if (value != null) { - if (value.constructor === RegExp) { - return "regexp"; - } else if (value.constructor === Map) { - return "map"; - } else if (value.constructor === Set) { - return "set"; - } else if (value.constructor === Date) { - return "date"; - } - } - return "object"; - } else if (typeof value === "symbol") { - return "symbol"; - } - throw new Error(`value of unknown type: ${value}`); -} - -const DIFF_DELETE = -1; -const DIFF_INSERT = 1; -const DIFF_EQUAL = 0; -class Diff { - 0; - 1; - constructor(op, text) { - this[0] = op; - this[1] = text; - } -} -const diff_commonPrefix = function(text1, text2) { - if (!text1 || !text2 || text1.charAt(0) !== text2.charAt(0)) { - return 0; - } - let pointermin = 0; - let pointermax = Math.min(text1.length, text2.length); - let pointermid = pointermax; - let pointerstart = 0; - while (pointermin < pointermid) { - if (text1.substring(pointerstart, pointermid) === text2.substring(pointerstart, pointermid)) { - pointermin = pointermid; - pointerstart = pointermin; - } else { - pointermax = pointermid; - } - pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin); - } - return pointermid; -}; -const diff_commonSuffix = function(text1, text2) { - if (!text1 || !text2 || text1.charAt(text1.length - 1) !== text2.charAt(text2.length - 1)) { - return 0; - } - let pointermin = 0; - let pointermax = Math.min(text1.length, text2.length); - let pointermid = pointermax; - let pointerend = 0; - while (pointermin < pointermid) { - if (text1.substring(text1.length - pointermid, text1.length - pointerend) === text2.substring(text2.length - pointermid, text2.length - pointerend)) { - pointermin = pointermid; - pointerend = pointermin; - } else { - pointermax = pointermid; - } - pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin); - } - return pointermid; -}; -const diff_commonOverlap_ = function(text1, text2) { - const text1_length = text1.length; - const text2_length = text2.length; - if (text1_length === 0 || text2_length === 0) { - return 0; - } - if (text1_length > text2_length) { - text1 = text1.substring(text1_length - text2_length); - } else if (text1_length < text2_length) { - text2 = text2.substring(0, text1_length); - } - const text_length = Math.min(text1_length, text2_length); - if (text1 === text2) { - return text_length; - } - let best = 0; - let length = 1; - while (true) { - const pattern = text1.substring(text_length - length); - const found = text2.indexOf(pattern); - if (found === -1) { - return best; - } - length += found; - if (found === 0 || text1.substring(text_length - length) === text2.substring(0, length)) { - best = length; - length++; - } - } -}; -const diff_cleanupSemantic = function(diffs) { - let changes = false; - const equalities = []; - let equalitiesLength = 0; - let lastEquality = null; - let pointer = 0; - let length_insertions1 = 0; - let length_deletions1 = 0; - let length_insertions2 = 0; - let length_deletions2 = 0; - while (pointer < diffs.length) { - if (diffs[pointer][0] === DIFF_EQUAL) { - equalities[equalitiesLength++] = pointer; - length_insertions1 = length_insertions2; - length_deletions1 = length_deletions2; - length_insertions2 = 0; - length_deletions2 = 0; - lastEquality = diffs[pointer][1]; - } else { - if (diffs[pointer][0] === DIFF_INSERT) { - length_insertions2 += diffs[pointer][1].length; - } else { - length_deletions2 += diffs[pointer][1].length; - } - if (lastEquality && lastEquality.length <= Math.max(length_insertions1, length_deletions1) && lastEquality.length <= Math.max(length_insertions2, length_deletions2)) { - diffs.splice( - equalities[equalitiesLength - 1], - 0, - new Diff(DIFF_DELETE, lastEquality) - ); - diffs[equalities[equalitiesLength - 1] + 1][0] = DIFF_INSERT; - equalitiesLength--; - equalitiesLength--; - pointer = equalitiesLength > 0 ? equalities[equalitiesLength - 1] : -1; - length_insertions1 = 0; - length_deletions1 = 0; - length_insertions2 = 0; - length_deletions2 = 0; - lastEquality = null; - changes = true; - } - } - pointer++; - } - if (changes) { - diff_cleanupMerge(diffs); - } - diff_cleanupSemanticLossless(diffs); - pointer = 1; - while (pointer < diffs.length) { - if (diffs[pointer - 1][0] === DIFF_DELETE && diffs[pointer][0] === DIFF_INSERT) { - const deletion = diffs[pointer - 1][1]; - const insertion = diffs[pointer][1]; - const overlap_length1 = diff_commonOverlap_(deletion, insertion); - const overlap_length2 = diff_commonOverlap_(insertion, deletion); - if (overlap_length1 >= overlap_length2) { - if (overlap_length1 >= deletion.length / 2 || overlap_length1 >= insertion.length / 2) { - diffs.splice( - pointer, - 0, - new Diff(DIFF_EQUAL, insertion.substring(0, overlap_length1)) - ); - diffs[pointer - 1][1] = deletion.substring( - 0, - deletion.length - overlap_length1 - ); - diffs[pointer + 1][1] = insertion.substring(overlap_length1); - pointer++; - } - } else { - if (overlap_length2 >= deletion.length / 2 || overlap_length2 >= insertion.length / 2) { - diffs.splice( - pointer, - 0, - new Diff(DIFF_EQUAL, deletion.substring(0, overlap_length2)) - ); - diffs[pointer - 1][0] = DIFF_INSERT; - diffs[pointer - 1][1] = insertion.substring( - 0, - insertion.length - overlap_length2 - ); - diffs[pointer + 1][0] = DIFF_DELETE; - diffs[pointer + 1][1] = deletion.substring(overlap_length2); - pointer++; - } - } - pointer++; - } - pointer++; - } -}; -const nonAlphaNumericRegex_ = /[^a-z0-9]/i; -const whitespaceRegex_ = /\s/; -const linebreakRegex_ = /[\r\n]/; -const blanklineEndRegex_ = /\n\r?\n$/; -const blanklineStartRegex_ = /^\r?\n\r?\n/; -function diff_cleanupSemanticLossless(diffs) { - function diff_cleanupSemanticScore_(one, two) { - if (!one || !two) { - return 6; - } - const char1 = one.charAt(one.length - 1); - const char2 = two.charAt(0); - const nonAlphaNumeric1 = char1.match(nonAlphaNumericRegex_); - const nonAlphaNumeric2 = char2.match(nonAlphaNumericRegex_); - const whitespace1 = nonAlphaNumeric1 && char1.match(whitespaceRegex_); - const whitespace2 = nonAlphaNumeric2 && char2.match(whitespaceRegex_); - const lineBreak1 = whitespace1 && char1.match(linebreakRegex_); - const lineBreak2 = whitespace2 && char2.match(linebreakRegex_); - const blankLine1 = lineBreak1 && one.match(blanklineEndRegex_); - const blankLine2 = lineBreak2 && two.match(blanklineStartRegex_); - if (blankLine1 || blankLine2) { - return 5; - } else if (lineBreak1 || lineBreak2) { - return 4; - } else if (nonAlphaNumeric1 && !whitespace1 && whitespace2) { - return 3; - } else if (whitespace1 || whitespace2) { - return 2; - } else if (nonAlphaNumeric1 || nonAlphaNumeric2) { - return 1; - } - return 0; - } - let pointer = 1; - while (pointer < diffs.length - 1) { - if (diffs[pointer - 1][0] === DIFF_EQUAL && diffs[pointer + 1][0] === DIFF_EQUAL) { - let equality1 = diffs[pointer - 1][1]; - let edit = diffs[pointer][1]; - let equality2 = diffs[pointer + 1][1]; - const commonOffset = diff_commonSuffix(equality1, edit); - if (commonOffset) { - const commonString = edit.substring(edit.length - commonOffset); - equality1 = equality1.substring(0, equality1.length - commonOffset); - edit = commonString + edit.substring(0, edit.length - commonOffset); - equality2 = commonString + equality2; - } - let bestEquality1 = equality1; - let bestEdit = edit; - let bestEquality2 = equality2; - let bestScore = diff_cleanupSemanticScore_(equality1, edit) + diff_cleanupSemanticScore_(edit, equality2); - while (edit.charAt(0) === equality2.charAt(0)) { - equality1 += edit.charAt(0); - edit = edit.substring(1) + equality2.charAt(0); - equality2 = equality2.substring(1); - const score = diff_cleanupSemanticScore_(equality1, edit) + diff_cleanupSemanticScore_(edit, equality2); - if (score >= bestScore) { - bestScore = score; - bestEquality1 = equality1; - bestEdit = edit; - bestEquality2 = equality2; - } - } - if (diffs[pointer - 1][1] !== bestEquality1) { - if (bestEquality1) { - diffs[pointer - 1][1] = bestEquality1; - } else { - diffs.splice(pointer - 1, 1); - pointer--; - } - diffs[pointer][1] = bestEdit; - if (bestEquality2) { - diffs[pointer + 1][1] = bestEquality2; - } else { - diffs.splice(pointer + 1, 1); - pointer--; - } - } - } - pointer++; - } -} -function diff_cleanupMerge(diffs) { - diffs.push(new Diff(DIFF_EQUAL, "")); - let pointer = 0; - let count_delete = 0; - let count_insert = 0; - let text_delete = ""; - let text_insert = ""; - let commonlength; - while (pointer < diffs.length) { - switch (diffs[pointer][0]) { - case DIFF_INSERT: - count_insert++; - text_insert += diffs[pointer][1]; - pointer++; - break; - case DIFF_DELETE: - count_delete++; - text_delete += diffs[pointer][1]; - pointer++; - break; - case DIFF_EQUAL: - if (count_delete + count_insert > 1) { - if (count_delete !== 0 && count_insert !== 0) { - commonlength = diff_commonPrefix(text_insert, text_delete); - if (commonlength !== 0) { - if (pointer - count_delete - count_insert > 0 && diffs[pointer - count_delete - count_insert - 1][0] === DIFF_EQUAL) { - diffs[pointer - count_delete - count_insert - 1][1] += text_insert.substring(0, commonlength); - } else { - diffs.splice( - 0, - 0, - new Diff(DIFF_EQUAL, text_insert.substring(0, commonlength)) - ); - pointer++; - } - text_insert = text_insert.substring(commonlength); - text_delete = text_delete.substring(commonlength); - } - commonlength = diff_commonSuffix(text_insert, text_delete); - if (commonlength !== 0) { - diffs[pointer][1] = text_insert.substring(text_insert.length - commonlength) + diffs[pointer][1]; - text_insert = text_insert.substring( - 0, - text_insert.length - commonlength - ); - text_delete = text_delete.substring( - 0, - text_delete.length - commonlength - ); - } - } - pointer -= count_delete + count_insert; - diffs.splice(pointer, count_delete + count_insert); - if (text_delete.length) { - diffs.splice(pointer, 0, new Diff(DIFF_DELETE, text_delete)); - pointer++; - } - if (text_insert.length) { - diffs.splice(pointer, 0, new Diff(DIFF_INSERT, text_insert)); - pointer++; - } - pointer++; - } else if (pointer !== 0 && diffs[pointer - 1][0] === DIFF_EQUAL) { - diffs[pointer - 1][1] += diffs[pointer][1]; - diffs.splice(pointer, 1); - } else { - pointer++; - } - count_insert = 0; - count_delete = 0; - text_delete = ""; - text_insert = ""; - break; - } - } - if (diffs[diffs.length - 1][1] === "") { - diffs.pop(); - } - let changes = false; - pointer = 1; - while (pointer < diffs.length - 1) { - if (diffs[pointer - 1][0] === DIFF_EQUAL && diffs[pointer + 1][0] === DIFF_EQUAL) { - if (diffs[pointer][1].substring( - diffs[pointer][1].length - diffs[pointer - 1][1].length - ) === diffs[pointer - 1][1]) { - diffs[pointer][1] = diffs[pointer - 1][1] + diffs[pointer][1].substring( - 0, - diffs[pointer][1].length - diffs[pointer - 1][1].length - ); - diffs[pointer + 1][1] = diffs[pointer - 1][1] + diffs[pointer + 1][1]; - diffs.splice(pointer - 1, 1); - changes = true; - } else if (diffs[pointer][1].substring(0, diffs[pointer + 1][1].length) === diffs[pointer + 1][1]) { - diffs[pointer - 1][1] += diffs[pointer + 1][1]; - diffs[pointer][1] = diffs[pointer][1].substring(diffs[pointer + 1][1].length) + diffs[pointer + 1][1]; - diffs.splice(pointer + 1, 1); - changes = true; - } - } - pointer++; - } - if (changes) { - diff_cleanupMerge(diffs); - } -} - -const NO_DIFF_MESSAGE = "Compared values have no visual difference."; -const SIMILAR_MESSAGE = "Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead."; - -var build = {}; - -Object.defineProperty(build, '__esModule', { - value: true -}); -var _default = build.default = diffSequence; -/** - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - */ - -// This diff-sequences package implements the linear space variation in -// An O(ND) Difference Algorithm and Its Variations by Eugene W. Myers - -// Relationship in notation between Myers paper and this package: -// A is a -// N is aLength, aEnd - aStart, and so on -// x is aIndex, aFirst, aLast, and so on -// B is b -// M is bLength, bEnd - bStart, and so on -// y is bIndex, bFirst, bLast, and so on -// Δ = N - M is negative of baDeltaLength = bLength - aLength -// D is d -// k is kF -// k + Δ is kF = kR - baDeltaLength -// V is aIndexesF or aIndexesR (see comment below about Indexes type) -// index intervals [1, N] and [1, M] are [0, aLength) and [0, bLength) -// starting point in forward direction (0, 0) is (-1, -1) -// starting point in reverse direction (N + 1, M + 1) is (aLength, bLength) - -// The “edit graph” for sequences a and b corresponds to items: -// in a on the horizontal axis -// in b on the vertical axis -// -// Given a-coordinate of a point in a diagonal, you can compute b-coordinate. -// -// Forward diagonals kF: -// zero diagonal intersects top left corner -// positive diagonals intersect top edge -// negative diagonals insersect left edge -// -// Reverse diagonals kR: -// zero diagonal intersects bottom right corner -// positive diagonals intersect right edge -// negative diagonals intersect bottom edge - -// The graph contains a directed acyclic graph of edges: -// horizontal: delete an item from a -// vertical: insert an item from b -// diagonal: common item in a and b -// -// The algorithm solves dual problems in the graph analogy: -// Find longest common subsequence: path with maximum number of diagonal edges -// Find shortest edit script: path with minimum number of non-diagonal edges - -// Input callback function compares items at indexes in the sequences. - -// Output callback function receives the number of adjacent items -// and starting indexes of each common subsequence. -// Either original functions or wrapped to swap indexes if graph is transposed. -// Indexes in sequence a of last point of forward or reverse paths in graph. -// Myers algorithm indexes by diagonal k which for negative is bad deopt in V8. -// This package indexes by iF and iR which are greater than or equal to zero. -// and also updates the index arrays in place to cut memory in half. -// kF = 2 * iF - d -// kR = d - 2 * iR -// Division of index intervals in sequences a and b at the middle change. -// Invariant: intervals do not have common items at the start or end. -const pkg = 'diff-sequences'; // for error messages -const NOT_YET_SET = 0; // small int instead of undefined to avoid deopt in V8 - -// Return the number of common items that follow in forward direction. -// The length of what Myers paper calls a “snake” in a forward path. -const countCommonItemsF = (aIndex, aEnd, bIndex, bEnd, isCommon) => { - let nCommon = 0; - while (aIndex < aEnd && bIndex < bEnd && isCommon(aIndex, bIndex)) { - aIndex += 1; - bIndex += 1; - nCommon += 1; - } - return nCommon; -}; - -// Return the number of common items that precede in reverse direction. -// The length of what Myers paper calls a “snake” in a reverse path. -const countCommonItemsR = (aStart, aIndex, bStart, bIndex, isCommon) => { - let nCommon = 0; - while (aStart <= aIndex && bStart <= bIndex && isCommon(aIndex, bIndex)) { - aIndex -= 1; - bIndex -= 1; - nCommon += 1; - } - return nCommon; -}; - -// A simple function to extend forward paths from (d - 1) to d changes -// when forward and reverse paths cannot yet overlap. -const extendPathsF = ( - d, - aEnd, - bEnd, - bF, - isCommon, - aIndexesF, - iMaxF // return the value because optimization might decrease it -) => { - // Unroll the first iteration. - let iF = 0; - let kF = -d; // kF = 2 * iF - d - let aFirst = aIndexesF[iF]; // in first iteration always insert - let aIndexPrev1 = aFirst; // prev value of [iF - 1] in next iteration - aIndexesF[iF] += countCommonItemsF( - aFirst + 1, - aEnd, - bF + aFirst - kF + 1, - bEnd, - isCommon - ); - - // Optimization: skip diagonals in which paths cannot ever overlap. - const nF = d < iMaxF ? d : iMaxF; - - // The diagonals kF are odd when d is odd and even when d is even. - for (iF += 1, kF += 2; iF <= nF; iF += 1, kF += 2) { - // To get first point of path segment, move one change in forward direction - // from last point of previous path segment in an adjacent diagonal. - // In last possible iteration when iF === d and kF === d always delete. - if (iF !== d && aIndexPrev1 < aIndexesF[iF]) { - aFirst = aIndexesF[iF]; // vertical to insert from b - } else { - aFirst = aIndexPrev1 + 1; // horizontal to delete from a - - if (aEnd <= aFirst) { - // Optimization: delete moved past right of graph. - return iF - 1; - } - } - - // To get last point of path segment, move along diagonal of common items. - aIndexPrev1 = aIndexesF[iF]; - aIndexesF[iF] = - aFirst + - countCommonItemsF(aFirst + 1, aEnd, bF + aFirst - kF + 1, bEnd, isCommon); - } - return iMaxF; -}; - -// A simple function to extend reverse paths from (d - 1) to d changes -// when reverse and forward paths cannot yet overlap. -const extendPathsR = ( - d, - aStart, - bStart, - bR, - isCommon, - aIndexesR, - iMaxR // return the value because optimization might decrease it -) => { - // Unroll the first iteration. - let iR = 0; - let kR = d; // kR = d - 2 * iR - let aFirst = aIndexesR[iR]; // in first iteration always insert - let aIndexPrev1 = aFirst; // prev value of [iR - 1] in next iteration - aIndexesR[iR] -= countCommonItemsR( - aStart, - aFirst - 1, - bStart, - bR + aFirst - kR - 1, - isCommon - ); - - // Optimization: skip diagonals in which paths cannot ever overlap. - const nR = d < iMaxR ? d : iMaxR; - - // The diagonals kR are odd when d is odd and even when d is even. - for (iR += 1, kR -= 2; iR <= nR; iR += 1, kR -= 2) { - // To get first point of path segment, move one change in reverse direction - // from last point of previous path segment in an adjacent diagonal. - // In last possible iteration when iR === d and kR === -d always delete. - if (iR !== d && aIndexesR[iR] < aIndexPrev1) { - aFirst = aIndexesR[iR]; // vertical to insert from b - } else { - aFirst = aIndexPrev1 - 1; // horizontal to delete from a - - if (aFirst < aStart) { - // Optimization: delete moved past left of graph. - return iR - 1; - } - } - - // To get last point of path segment, move along diagonal of common items. - aIndexPrev1 = aIndexesR[iR]; - aIndexesR[iR] = - aFirst - - countCommonItemsR( - aStart, - aFirst - 1, - bStart, - bR + aFirst - kR - 1, - isCommon - ); - } - return iMaxR; -}; - -// A complete function to extend forward paths from (d - 1) to d changes. -// Return true if a path overlaps reverse path of (d - 1) changes in its diagonal. -const extendOverlappablePathsF = ( - d, - aStart, - aEnd, - bStart, - bEnd, - isCommon, - aIndexesF, - iMaxF, - aIndexesR, - iMaxR, - division // update prop values if return true -) => { - const bF = bStart - aStart; // bIndex = bF + aIndex - kF - const aLength = aEnd - aStart; - const bLength = bEnd - bStart; - const baDeltaLength = bLength - aLength; // kF = kR - baDeltaLength - - // Range of diagonals in which forward and reverse paths might overlap. - const kMinOverlapF = -baDeltaLength - (d - 1); // -(d - 1) <= kR - const kMaxOverlapF = -baDeltaLength + (d - 1); // kR <= (d - 1) - - let aIndexPrev1 = NOT_YET_SET; // prev value of [iF - 1] in next iteration - - // Optimization: skip diagonals in which paths cannot ever overlap. - const nF = d < iMaxF ? d : iMaxF; - - // The diagonals kF = 2 * iF - d are odd when d is odd and even when d is even. - for (let iF = 0, kF = -d; iF <= nF; iF += 1, kF += 2) { - // To get first point of path segment, move one change in forward direction - // from last point of previous path segment in an adjacent diagonal. - // In first iteration when iF === 0 and kF === -d always insert. - // In last possible iteration when iF === d and kF === d always delete. - const insert = iF === 0 || (iF !== d && aIndexPrev1 < aIndexesF[iF]); - const aLastPrev = insert ? aIndexesF[iF] : aIndexPrev1; - const aFirst = insert - ? aLastPrev // vertical to insert from b - : aLastPrev + 1; // horizontal to delete from a - - // To get last point of path segment, move along diagonal of common items. - const bFirst = bF + aFirst - kF; - const nCommonF = countCommonItemsF( - aFirst + 1, - aEnd, - bFirst + 1, - bEnd, - isCommon - ); - const aLast = aFirst + nCommonF; - aIndexPrev1 = aIndexesF[iF]; - aIndexesF[iF] = aLast; - if (kMinOverlapF <= kF && kF <= kMaxOverlapF) { - // Solve for iR of reverse path with (d - 1) changes in diagonal kF: - // kR = kF + baDeltaLength - // kR = (d - 1) - 2 * iR - const iR = (d - 1 - (kF + baDeltaLength)) / 2; - - // If this forward path overlaps the reverse path in this diagonal, - // then this is the middle change of the index intervals. - if (iR <= iMaxR && aIndexesR[iR] - 1 <= aLast) { - // Unlike the Myers algorithm which finds only the middle “snake” - // this package can find two common subsequences per division. - // Last point of previous path segment is on an adjacent diagonal. - const bLastPrev = bF + aLastPrev - (insert ? kF + 1 : kF - 1); - - // Because of invariant that intervals preceding the middle change - // cannot have common items at the end, - // move in reverse direction along a diagonal of common items. - const nCommonR = countCommonItemsR( - aStart, - aLastPrev, - bStart, - bLastPrev, - isCommon - ); - const aIndexPrevFirst = aLastPrev - nCommonR; - const bIndexPrevFirst = bLastPrev - nCommonR; - const aEndPreceding = aIndexPrevFirst + 1; - const bEndPreceding = bIndexPrevFirst + 1; - division.nChangePreceding = d - 1; - if (d - 1 === aEndPreceding + bEndPreceding - aStart - bStart) { - // Optimization: number of preceding changes in forward direction - // is equal to number of items in preceding interval, - // therefore it cannot contain any common items. - division.aEndPreceding = aStart; - division.bEndPreceding = bStart; - } else { - division.aEndPreceding = aEndPreceding; - division.bEndPreceding = bEndPreceding; - } - division.nCommonPreceding = nCommonR; - if (nCommonR !== 0) { - division.aCommonPreceding = aEndPreceding; - division.bCommonPreceding = bEndPreceding; - } - division.nCommonFollowing = nCommonF; - if (nCommonF !== 0) { - division.aCommonFollowing = aFirst + 1; - division.bCommonFollowing = bFirst + 1; - } - const aStartFollowing = aLast + 1; - const bStartFollowing = bFirst + nCommonF + 1; - division.nChangeFollowing = d - 1; - if (d - 1 === aEnd + bEnd - aStartFollowing - bStartFollowing) { - // Optimization: number of changes in reverse direction - // is equal to number of items in following interval, - // therefore it cannot contain any common items. - division.aStartFollowing = aEnd; - division.bStartFollowing = bEnd; - } else { - division.aStartFollowing = aStartFollowing; - division.bStartFollowing = bStartFollowing; - } - return true; - } - } - } - return false; -}; - -// A complete function to extend reverse paths from (d - 1) to d changes. -// Return true if a path overlaps forward path of d changes in its diagonal. -const extendOverlappablePathsR = ( - d, - aStart, - aEnd, - bStart, - bEnd, - isCommon, - aIndexesF, - iMaxF, - aIndexesR, - iMaxR, - division // update prop values if return true -) => { - const bR = bEnd - aEnd; // bIndex = bR + aIndex - kR - const aLength = aEnd - aStart; - const bLength = bEnd - bStart; - const baDeltaLength = bLength - aLength; // kR = kF + baDeltaLength - - // Range of diagonals in which forward and reverse paths might overlap. - const kMinOverlapR = baDeltaLength - d; // -d <= kF - const kMaxOverlapR = baDeltaLength + d; // kF <= d - - let aIndexPrev1 = NOT_YET_SET; // prev value of [iR - 1] in next iteration - - // Optimization: skip diagonals in which paths cannot ever overlap. - const nR = d < iMaxR ? d : iMaxR; - - // The diagonals kR = d - 2 * iR are odd when d is odd and even when d is even. - for (let iR = 0, kR = d; iR <= nR; iR += 1, kR -= 2) { - // To get first point of path segment, move one change in reverse direction - // from last point of previous path segment in an adjacent diagonal. - // In first iteration when iR === 0 and kR === d always insert. - // In last possible iteration when iR === d and kR === -d always delete. - const insert = iR === 0 || (iR !== d && aIndexesR[iR] < aIndexPrev1); - const aLastPrev = insert ? aIndexesR[iR] : aIndexPrev1; - const aFirst = insert - ? aLastPrev // vertical to insert from b - : aLastPrev - 1; // horizontal to delete from a - - // To get last point of path segment, move along diagonal of common items. - const bFirst = bR + aFirst - kR; - const nCommonR = countCommonItemsR( - aStart, - aFirst - 1, - bStart, - bFirst - 1, - isCommon - ); - const aLast = aFirst - nCommonR; - aIndexPrev1 = aIndexesR[iR]; - aIndexesR[iR] = aLast; - if (kMinOverlapR <= kR && kR <= kMaxOverlapR) { - // Solve for iF of forward path with d changes in diagonal kR: - // kF = kR - baDeltaLength - // kF = 2 * iF - d - const iF = (d + (kR - baDeltaLength)) / 2; - - // If this reverse path overlaps the forward path in this diagonal, - // then this is a middle change of the index intervals. - if (iF <= iMaxF && aLast - 1 <= aIndexesF[iF]) { - const bLast = bFirst - nCommonR; - division.nChangePreceding = d; - if (d === aLast + bLast - aStart - bStart) { - // Optimization: number of changes in reverse direction - // is equal to number of items in preceding interval, - // therefore it cannot contain any common items. - division.aEndPreceding = aStart; - division.bEndPreceding = bStart; - } else { - division.aEndPreceding = aLast; - division.bEndPreceding = bLast; - } - division.nCommonPreceding = nCommonR; - if (nCommonR !== 0) { - // The last point of reverse path segment is start of common subsequence. - division.aCommonPreceding = aLast; - division.bCommonPreceding = bLast; - } - division.nChangeFollowing = d - 1; - if (d === 1) { - // There is no previous path segment. - division.nCommonFollowing = 0; - division.aStartFollowing = aEnd; - division.bStartFollowing = bEnd; - } else { - // Unlike the Myers algorithm which finds only the middle “snake” - // this package can find two common subsequences per division. - // Last point of previous path segment is on an adjacent diagonal. - const bLastPrev = bR + aLastPrev - (insert ? kR - 1 : kR + 1); - - // Because of invariant that intervals following the middle change - // cannot have common items at the start, - // move in forward direction along a diagonal of common items. - const nCommonF = countCommonItemsF( - aLastPrev, - aEnd, - bLastPrev, - bEnd, - isCommon - ); - division.nCommonFollowing = nCommonF; - if (nCommonF !== 0) { - // The last point of reverse path segment is start of common subsequence. - division.aCommonFollowing = aLastPrev; - division.bCommonFollowing = bLastPrev; - } - const aStartFollowing = aLastPrev + nCommonF; // aFirstPrev - const bStartFollowing = bLastPrev + nCommonF; // bFirstPrev - - if (d - 1 === aEnd + bEnd - aStartFollowing - bStartFollowing) { - // Optimization: number of changes in forward direction - // is equal to number of items in following interval, - // therefore it cannot contain any common items. - division.aStartFollowing = aEnd; - division.bStartFollowing = bEnd; - } else { - division.aStartFollowing = aStartFollowing; - division.bStartFollowing = bStartFollowing; - } - } - return true; - } - } - } - return false; -}; - -// Given index intervals and input function to compare items at indexes, -// divide at the middle change. -// -// DO NOT CALL if start === end, because interval cannot contain common items -// and because this function will throw the “no overlap” error. -const divide = ( - nChange, - aStart, - aEnd, - bStart, - bEnd, - isCommon, - aIndexesF, - aIndexesR, - division // output -) => { - const bF = bStart - aStart; // bIndex = bF + aIndex - kF - const bR = bEnd - aEnd; // bIndex = bR + aIndex - kR - const aLength = aEnd - aStart; - const bLength = bEnd - bStart; - - // Because graph has square or portrait orientation, - // length difference is minimum number of items to insert from b. - // Corresponding forward and reverse diagonals in graph - // depend on length difference of the sequences: - // kF = kR - baDeltaLength - // kR = kF + baDeltaLength - const baDeltaLength = bLength - aLength; - - // Optimization: max diagonal in graph intersects corner of shorter side. - let iMaxF = aLength; - let iMaxR = aLength; - - // Initialize no changes yet in forward or reverse direction: - aIndexesF[0] = aStart - 1; // at open start of interval, outside closed start - aIndexesR[0] = aEnd; // at open end of interval - - if (baDeltaLength % 2 === 0) { - // The number of changes in paths is 2 * d if length difference is even. - const dMin = (nChange || baDeltaLength) / 2; - const dMax = (aLength + bLength) / 2; - for (let d = 1; d <= dMax; d += 1) { - iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF); - if (d < dMin) { - iMaxR = extendPathsR(d, aStart, bStart, bR, isCommon, aIndexesR, iMaxR); - } else if ( - // If a reverse path overlaps a forward path in the same diagonal, - // return a division of the index intervals at the middle change. - extendOverlappablePathsR( - d, - aStart, - aEnd, - bStart, - bEnd, - isCommon, - aIndexesF, - iMaxF, - aIndexesR, - iMaxR, - division - ) - ) { - return; - } - } - } else { - // The number of changes in paths is 2 * d - 1 if length difference is odd. - const dMin = ((nChange || baDeltaLength) + 1) / 2; - const dMax = (aLength + bLength + 1) / 2; - - // Unroll first half iteration so loop extends the relevant pairs of paths. - // Because of invariant that intervals have no common items at start or end, - // and limitation not to call divide with empty intervals, - // therefore it cannot be called if a forward path with one change - // would overlap a reverse path with no changes, even if dMin === 1. - let d = 1; - iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF); - for (d += 1; d <= dMax; d += 1) { - iMaxR = extendPathsR( - d - 1, - aStart, - bStart, - bR, - isCommon, - aIndexesR, - iMaxR - ); - if (d < dMin) { - iMaxF = extendPathsF(d, aEnd, bEnd, bF, isCommon, aIndexesF, iMaxF); - } else if ( - // If a forward path overlaps a reverse path in the same diagonal, - // return a division of the index intervals at the middle change. - extendOverlappablePathsF( - d, - aStart, - aEnd, - bStart, - bEnd, - isCommon, - aIndexesF, - iMaxF, - aIndexesR, - iMaxR, - division - ) - ) { - return; - } - } - } - - /* istanbul ignore next */ - throw new Error( - `${pkg}: no overlap aStart=${aStart} aEnd=${aEnd} bStart=${bStart} bEnd=${bEnd}` - ); -}; - -// Given index intervals and input function to compare items at indexes, -// return by output function the number of adjacent items and starting indexes -// of each common subsequence. Divide and conquer with only linear space. -// -// The index intervals are half open [start, end) like array slice method. -// DO NOT CALL if start === end, because interval cannot contain common items -// and because divide function will throw the “no overlap” error. -const findSubsequences = ( - nChange, - aStart, - aEnd, - bStart, - bEnd, - transposed, - callbacks, - aIndexesF, - aIndexesR, - division // temporary memory, not input nor output -) => { - if (bEnd - bStart < aEnd - aStart) { - // Transpose graph so it has portrait instead of landscape orientation. - // Always compare shorter to longer sequence for consistency and optimization. - transposed = !transposed; - if (transposed && callbacks.length === 1) { - // Lazily wrap callback functions to swap args if graph is transposed. - const {foundSubsequence, isCommon} = callbacks[0]; - callbacks[1] = { - foundSubsequence: (nCommon, bCommon, aCommon) => { - foundSubsequence(nCommon, aCommon, bCommon); - }, - isCommon: (bIndex, aIndex) => isCommon(aIndex, bIndex) - }; - } - const tStart = aStart; - const tEnd = aEnd; - aStart = bStart; - aEnd = bEnd; - bStart = tStart; - bEnd = tEnd; - } - const {foundSubsequence, isCommon} = callbacks[transposed ? 1 : 0]; - - // Divide the index intervals at the middle change. - divide( - nChange, - aStart, - aEnd, - bStart, - bEnd, - isCommon, - aIndexesF, - aIndexesR, - division - ); - const { - nChangePreceding, - aEndPreceding, - bEndPreceding, - nCommonPreceding, - aCommonPreceding, - bCommonPreceding, - nCommonFollowing, - aCommonFollowing, - bCommonFollowing, - nChangeFollowing, - aStartFollowing, - bStartFollowing - } = division; - - // Unless either index interval is empty, they might contain common items. - if (aStart < aEndPreceding && bStart < bEndPreceding) { - // Recursely find and return common subsequences preceding the division. - findSubsequences( - nChangePreceding, - aStart, - aEndPreceding, - bStart, - bEndPreceding, - transposed, - callbacks, - aIndexesF, - aIndexesR, - division - ); - } - - // Return common subsequences that are adjacent to the middle change. - if (nCommonPreceding !== 0) { - foundSubsequence(nCommonPreceding, aCommonPreceding, bCommonPreceding); - } - if (nCommonFollowing !== 0) { - foundSubsequence(nCommonFollowing, aCommonFollowing, bCommonFollowing); - } - - // Unless either index interval is empty, they might contain common items. - if (aStartFollowing < aEnd && bStartFollowing < bEnd) { - // Recursely find and return common subsequences following the division. - findSubsequences( - nChangeFollowing, - aStartFollowing, - aEnd, - bStartFollowing, - bEnd, - transposed, - callbacks, - aIndexesF, - aIndexesR, - division - ); - } -}; -const validateLength = (name, arg) => { - if (typeof arg !== 'number') { - throw new TypeError(`${pkg}: ${name} typeof ${typeof arg} is not a number`); - } - if (!Number.isSafeInteger(arg)) { - throw new RangeError(`${pkg}: ${name} value ${arg} is not a safe integer`); - } - if (arg < 0) { - throw new RangeError(`${pkg}: ${name} value ${arg} is a negative integer`); - } -}; -const validateCallback = (name, arg) => { - const type = typeof arg; - if (type !== 'function') { - throw new TypeError(`${pkg}: ${name} typeof ${type} is not a function`); - } -}; - -// Compare items in two sequences to find a longest common subsequence. -// Given lengths of sequences and input function to compare items at indexes, -// return by output function the number of adjacent items and starting indexes -// of each common subsequence. -function diffSequence(aLength, bLength, isCommon, foundSubsequence) { - validateLength('aLength', aLength); - validateLength('bLength', bLength); - validateCallback('isCommon', isCommon); - validateCallback('foundSubsequence', foundSubsequence); - - // Count common items from the start in the forward direction. - const nCommonF = countCommonItemsF(0, aLength, 0, bLength, isCommon); - if (nCommonF !== 0) { - foundSubsequence(nCommonF, 0, 0); - } - - // Unless both sequences consist of common items only, - // find common items in the half-trimmed index intervals. - if (aLength !== nCommonF || bLength !== nCommonF) { - // Invariant: intervals do not have common items at the start. - // The start of an index interval is closed like array slice method. - const aStart = nCommonF; - const bStart = nCommonF; - - // Count common items from the end in the reverse direction. - const nCommonR = countCommonItemsR( - aStart, - aLength - 1, - bStart, - bLength - 1, - isCommon - ); - - // Invariant: intervals do not have common items at the end. - // The end of an index interval is open like array slice method. - const aEnd = aLength - nCommonR; - const bEnd = bLength - nCommonR; - - // Unless one sequence consists of common items only, - // therefore the other trimmed index interval consists of changes only, - // find common items in the trimmed index intervals. - const nCommonFR = nCommonF + nCommonR; - if (aLength !== nCommonFR && bLength !== nCommonFR) { - const nChange = 0; // number of change items is not yet known - const transposed = false; // call the original unwrapped functions - const callbacks = [ - { - foundSubsequence, - isCommon - } - ]; - - // Indexes in sequence a of last points in furthest reaching paths - // from outside the start at top left in the forward direction: - const aIndexesF = [NOT_YET_SET]; - // from the end at bottom right in the reverse direction: - const aIndexesR = [NOT_YET_SET]; - - // Initialize one object as output of all calls to divide function. - const division = { - aCommonFollowing: NOT_YET_SET, - aCommonPreceding: NOT_YET_SET, - aEndPreceding: NOT_YET_SET, - aStartFollowing: NOT_YET_SET, - bCommonFollowing: NOT_YET_SET, - bCommonPreceding: NOT_YET_SET, - bEndPreceding: NOT_YET_SET, - bStartFollowing: NOT_YET_SET, - nChangeFollowing: NOT_YET_SET, - nChangePreceding: NOT_YET_SET, - nCommonFollowing: NOT_YET_SET, - nCommonPreceding: NOT_YET_SET - }; - - // Find and return common subsequences in the trimmed index intervals. - findSubsequences( - nChange, - aStart, - aEnd, - bStart, - bEnd, - transposed, - callbacks, - aIndexesF, - aIndexesR, - division - ); - } - if (nCommonR !== 0) { - foundSubsequence(nCommonR, aEnd, bEnd); - } - } -} - -function formatTrailingSpaces(line, trailingSpaceFormatter) { - return line.replace(/\s+$/, (match) => trailingSpaceFormatter(match)); -} -function printDiffLine(line, isFirstOrLast, color, indicator, trailingSpaceFormatter, emptyFirstOrLastLinePlaceholder) { - return line.length !== 0 ? color( - `${indicator} ${formatTrailingSpaces(line, trailingSpaceFormatter)}` - ) : indicator !== " " ? color(indicator) : isFirstOrLast && emptyFirstOrLastLinePlaceholder.length !== 0 ? color(`${indicator} ${emptyFirstOrLastLinePlaceholder}`) : ""; -} -function printDeleteLine(line, isFirstOrLast, { - aColor, - aIndicator, - changeLineTrailingSpaceColor, - emptyFirstOrLastLinePlaceholder -}) { - return printDiffLine( - line, - isFirstOrLast, - aColor, - aIndicator, - changeLineTrailingSpaceColor, - emptyFirstOrLastLinePlaceholder - ); -} -function printInsertLine(line, isFirstOrLast, { - bColor, - bIndicator, - changeLineTrailingSpaceColor, - emptyFirstOrLastLinePlaceholder -}) { - return printDiffLine( - line, - isFirstOrLast, - bColor, - bIndicator, - changeLineTrailingSpaceColor, - emptyFirstOrLastLinePlaceholder - ); -} -function printCommonLine(line, isFirstOrLast, { - commonColor, - commonIndicator, - commonLineTrailingSpaceColor, - emptyFirstOrLastLinePlaceholder -}) { - return printDiffLine( - line, - isFirstOrLast, - commonColor, - commonIndicator, - commonLineTrailingSpaceColor, - emptyFirstOrLastLinePlaceholder - ); -} -function createPatchMark(aStart, aEnd, bStart, bEnd, { patchColor }) { - return patchColor( - `@@ -${aStart + 1},${aEnd - aStart} +${bStart + 1},${bEnd - bStart} @@` - ); -} -function joinAlignedDiffsNoExpand(diffs, options) { - const iLength = diffs.length; - const nContextLines = options.contextLines; - const nContextLines2 = nContextLines + nContextLines; - let jLength = iLength; - let hasExcessAtStartOrEnd = false; - let nExcessesBetweenChanges = 0; - let i = 0; - while (i !== iLength) { - const iStart = i; - while (i !== iLength && diffs[i][0] === DIFF_EQUAL) { - i += 1; - } - if (iStart !== i) { - if (iStart === 0) { - if (i > nContextLines) { - jLength -= i - nContextLines; - hasExcessAtStartOrEnd = true; - } - } else if (i === iLength) { - const n = i - iStart; - if (n > nContextLines) { - jLength -= n - nContextLines; - hasExcessAtStartOrEnd = true; - } - } else { - const n = i - iStart; - if (n > nContextLines2) { - jLength -= n - nContextLines2; - nExcessesBetweenChanges += 1; - } - } - } - while (i !== iLength && diffs[i][0] !== DIFF_EQUAL) { - i += 1; - } - } - const hasPatch = nExcessesBetweenChanges !== 0 || hasExcessAtStartOrEnd; - if (nExcessesBetweenChanges !== 0) { - jLength += nExcessesBetweenChanges + 1; - } else if (hasExcessAtStartOrEnd) { - jLength += 1; - } - const jLast = jLength - 1; - const lines = []; - let jPatchMark = 0; - if (hasPatch) { - lines.push(""); - } - let aStart = 0; - let bStart = 0; - let aEnd = 0; - let bEnd = 0; - const pushCommonLine = (line) => { - const j = lines.length; - lines.push(printCommonLine(line, j === 0 || j === jLast, options)); - aEnd += 1; - bEnd += 1; - }; - const pushDeleteLine = (line) => { - const j = lines.length; - lines.push(printDeleteLine(line, j === 0 || j === jLast, options)); - aEnd += 1; - }; - const pushInsertLine = (line) => { - const j = lines.length; - lines.push(printInsertLine(line, j === 0 || j === jLast, options)); - bEnd += 1; - }; - i = 0; - while (i !== iLength) { - let iStart = i; - while (i !== iLength && diffs[i][0] === DIFF_EQUAL) { - i += 1; - } - if (iStart !== i) { - if (iStart === 0) { - if (i > nContextLines) { - iStart = i - nContextLines; - aStart = iStart; - bStart = iStart; - aEnd = aStart; - bEnd = bStart; - } - for (let iCommon = iStart; iCommon !== i; iCommon += 1) { - pushCommonLine(diffs[iCommon][1]); - } - } else if (i === iLength) { - const iEnd = i - iStart > nContextLines ? iStart + nContextLines : i; - for (let iCommon = iStart; iCommon !== iEnd; iCommon += 1) { - pushCommonLine(diffs[iCommon][1]); - } - } else { - const nCommon = i - iStart; - if (nCommon > nContextLines2) { - const iEnd = iStart + nContextLines; - for (let iCommon = iStart; iCommon !== iEnd; iCommon += 1) { - pushCommonLine(diffs[iCommon][1]); - } - lines[jPatchMark] = createPatchMark( - aStart, - aEnd, - bStart, - bEnd, - options - ); - jPatchMark = lines.length; - lines.push(""); - const nOmit = nCommon - nContextLines2; - aStart = aEnd + nOmit; - bStart = bEnd + nOmit; - aEnd = aStart; - bEnd = bStart; - for (let iCommon = i - nContextLines; iCommon !== i; iCommon += 1) { - pushCommonLine(diffs[iCommon][1]); - } - } else { - for (let iCommon = iStart; iCommon !== i; iCommon += 1) { - pushCommonLine(diffs[iCommon][1]); - } - } - } - } - while (i !== iLength && diffs[i][0] === DIFF_DELETE) { - pushDeleteLine(diffs[i][1]); - i += 1; - } - while (i !== iLength && diffs[i][0] === DIFF_INSERT) { - pushInsertLine(diffs[i][1]); - i += 1; - } - } - if (hasPatch) { - lines[jPatchMark] = createPatchMark(aStart, aEnd, bStart, bEnd, options); - } - return lines.join("\n"); -} -function joinAlignedDiffsExpand(diffs, options) { - return diffs.map((diff, i, diffs2) => { - const line = diff[1]; - const isFirstOrLast = i === 0 || i === diffs2.length - 1; - switch (diff[0]) { - case DIFF_DELETE: - return printDeleteLine(line, isFirstOrLast, options); - case DIFF_INSERT: - return printInsertLine(line, isFirstOrLast, options); - default: - return printCommonLine(line, isFirstOrLast, options); - } - }).join("\n"); -} - -const noColor = (string) => string; -const DIFF_CONTEXT_DEFAULT = 5; -const DIFF_TRUNCATE_THRESHOLD_DEFAULT = 0; -function getDefaultOptions() { - return { - aAnnotation: "Expected", - aColor: c.green, - aIndicator: "-", - bAnnotation: "Received", - bColor: c.red, - bIndicator: "+", - changeColor: c.inverse, - changeLineTrailingSpaceColor: noColor, - commonColor: c.dim, - commonIndicator: " ", - commonLineTrailingSpaceColor: noColor, - compareKeys: void 0, - contextLines: DIFF_CONTEXT_DEFAULT, - emptyFirstOrLastLinePlaceholder: "", - expand: true, - includeChangeCounts: false, - omitAnnotationLines: false, - patchColor: c.yellow, - truncateThreshold: DIFF_TRUNCATE_THRESHOLD_DEFAULT, - truncateAnnotation: "... Diff result is truncated", - truncateAnnotationColor: noColor - }; -} -function getCompareKeys(compareKeys) { - return compareKeys && typeof compareKeys === "function" ? compareKeys : void 0; -} -function getContextLines(contextLines) { - return typeof contextLines === "number" && Number.isSafeInteger(contextLines) && contextLines >= 0 ? contextLines : DIFF_CONTEXT_DEFAULT; -} -function normalizeDiffOptions(options = {}) { - return { - ...getDefaultOptions(), - ...options, - compareKeys: getCompareKeys(options.compareKeys), - contextLines: getContextLines(options.contextLines) - }; -} - -function isEmptyString(lines) { - return lines.length === 1 && lines[0].length === 0; -} -function countChanges(diffs) { - let a = 0; - let b = 0; - diffs.forEach((diff) => { - switch (diff[0]) { - case DIFF_DELETE: - a += 1; - break; - case DIFF_INSERT: - b += 1; - break; - } - }); - return { a, b }; -} -function printAnnotation({ - aAnnotation, - aColor, - aIndicator, - bAnnotation, - bColor, - bIndicator, - includeChangeCounts, - omitAnnotationLines -}, changeCounts) { - if (omitAnnotationLines) { - return ""; - } - let aRest = ""; - let bRest = ""; - if (includeChangeCounts) { - const aCount = String(changeCounts.a); - const bCount = String(changeCounts.b); - const baAnnotationLengthDiff = bAnnotation.length - aAnnotation.length; - const aAnnotationPadding = " ".repeat(Math.max(0, baAnnotationLengthDiff)); - const bAnnotationPadding = " ".repeat(Math.max(0, -baAnnotationLengthDiff)); - const baCountLengthDiff = bCount.length - aCount.length; - const aCountPadding = " ".repeat(Math.max(0, baCountLengthDiff)); - const bCountPadding = " ".repeat(Math.max(0, -baCountLengthDiff)); - aRest = `${aAnnotationPadding} ${aIndicator} ${aCountPadding}${aCount}`; - bRest = `${bAnnotationPadding} ${bIndicator} ${bCountPadding}${bCount}`; - } - const a = `${aIndicator} ${aAnnotation}${aRest}`; - const b = `${bIndicator} ${bAnnotation}${bRest}`; - return `${aColor(a)} -${bColor(b)} - -`; -} -function printDiffLines(diffs, truncated, options) { - return printAnnotation(options, countChanges(diffs)) + (options.expand ? joinAlignedDiffsExpand(diffs, options) : joinAlignedDiffsNoExpand(diffs, options)) + (truncated ? options.truncateAnnotationColor(` -${options.truncateAnnotation}`) : ""); -} -function diffLinesUnified(aLines, bLines, options) { - const normalizedOptions = normalizeDiffOptions(options); - const [diffs, truncated] = diffLinesRaw( - isEmptyString(aLines) ? [] : aLines, - isEmptyString(bLines) ? [] : bLines, - normalizedOptions - ); - return printDiffLines(diffs, truncated, normalizedOptions); -} -function diffLinesUnified2(aLinesDisplay, bLinesDisplay, aLinesCompare, bLinesCompare, options) { - if (isEmptyString(aLinesDisplay) && isEmptyString(aLinesCompare)) { - aLinesDisplay = []; - aLinesCompare = []; - } - if (isEmptyString(bLinesDisplay) && isEmptyString(bLinesCompare)) { - bLinesDisplay = []; - bLinesCompare = []; - } - if (aLinesDisplay.length !== aLinesCompare.length || bLinesDisplay.length !== bLinesCompare.length) { - return diffLinesUnified(aLinesDisplay, bLinesDisplay, options); - } - const [diffs, truncated] = diffLinesRaw( - aLinesCompare, - bLinesCompare, - options - ); - let aIndex = 0; - let bIndex = 0; - diffs.forEach((diff) => { - switch (diff[0]) { - case DIFF_DELETE: - diff[1] = aLinesDisplay[aIndex]; - aIndex += 1; - break; - case DIFF_INSERT: - diff[1] = bLinesDisplay[bIndex]; - bIndex += 1; - break; - default: - diff[1] = bLinesDisplay[bIndex]; - aIndex += 1; - bIndex += 1; - } - }); - return printDiffLines(diffs, truncated, normalizeDiffOptions(options)); -} -function diffLinesRaw(aLines, bLines, options) { - const truncate = (options == null ? void 0 : options.truncateThreshold) ?? false; - const truncateThreshold = Math.max( - Math.floor((options == null ? void 0 : options.truncateThreshold) ?? 0), - 0 - ); - const aLength = truncate ? Math.min(aLines.length, truncateThreshold) : aLines.length; - const bLength = truncate ? Math.min(bLines.length, truncateThreshold) : bLines.length; - const truncated = aLength !== aLines.length || bLength !== bLines.length; - const isCommon = (aIndex2, bIndex2) => aLines[aIndex2] === bLines[bIndex2]; - const diffs = []; - let aIndex = 0; - let bIndex = 0; - const foundSubsequence = (nCommon, aCommon, bCommon) => { - for (; aIndex !== aCommon; aIndex += 1) { - diffs.push(new Diff(DIFF_DELETE, aLines[aIndex])); - } - for (; bIndex !== bCommon; bIndex += 1) { - diffs.push(new Diff(DIFF_INSERT, bLines[bIndex])); - } - for (; nCommon !== 0; nCommon -= 1, aIndex += 1, bIndex += 1) { - diffs.push(new Diff(DIFF_EQUAL, bLines[bIndex])); - } - }; - _default(aLength, bLength, isCommon, foundSubsequence); - for (; aIndex !== aLength; aIndex += 1) { - diffs.push(new Diff(DIFF_DELETE, aLines[aIndex])); - } - for (; bIndex !== bLength; bIndex += 1) { - diffs.push(new Diff(DIFF_INSERT, bLines[bIndex])); - } - return [diffs, truncated]; -} - -function getNewLineSymbol(string) { - return string.includes("\r\n") ? "\r\n" : "\n"; -} -function diffStrings(a, b, options) { - const truncate = (options == null ? void 0 : options.truncateThreshold) ?? false; - const truncateThreshold = Math.max( - Math.floor((options == null ? void 0 : options.truncateThreshold) ?? 0), - 0 - ); - let aLength = a.length; - let bLength = b.length; - if (truncate) { - const aMultipleLines = a.includes("\n"); - const bMultipleLines = b.includes("\n"); - const aNewLineSymbol = getNewLineSymbol(a); - const bNewLineSymbol = getNewLineSymbol(b); - const _a = aMultipleLines ? `${a.split(aNewLineSymbol, truncateThreshold).join(aNewLineSymbol)} -` : a; - const _b = bMultipleLines ? `${b.split(bNewLineSymbol, truncateThreshold).join(bNewLineSymbol)} -` : b; - aLength = _a.length; - bLength = _b.length; - } - const truncated = aLength !== a.length || bLength !== b.length; - const isCommon = (aIndex2, bIndex2) => a[aIndex2] === b[bIndex2]; - let aIndex = 0; - let bIndex = 0; - const diffs = []; - const foundSubsequence = (nCommon, aCommon, bCommon) => { - if (aIndex !== aCommon) { - diffs.push(new Diff(DIFF_DELETE, a.slice(aIndex, aCommon))); - } - if (bIndex !== bCommon) { - diffs.push(new Diff(DIFF_INSERT, b.slice(bIndex, bCommon))); - } - aIndex = aCommon + nCommon; - bIndex = bCommon + nCommon; - diffs.push(new Diff(DIFF_EQUAL, b.slice(bCommon, bIndex))); - }; - _default(aLength, bLength, isCommon, foundSubsequence); - if (aIndex !== aLength) { - diffs.push(new Diff(DIFF_DELETE, a.slice(aIndex))); - } - if (bIndex !== bLength) { - diffs.push(new Diff(DIFF_INSERT, b.slice(bIndex))); - } - return [diffs, truncated]; -} - -function concatenateRelevantDiffs(op, diffs, changeColor) { - return diffs.reduce( - (reduced, diff) => reduced + (diff[0] === DIFF_EQUAL ? diff[1] : diff[0] === op && diff[1].length !== 0 ? changeColor(diff[1]) : ""), - "" - ); -} -class ChangeBuffer { - op; - line; - // incomplete line - lines; - // complete lines - changeColor; - constructor(op, changeColor) { - this.op = op; - this.line = []; - this.lines = []; - this.changeColor = changeColor; - } - pushSubstring(substring) { - this.pushDiff(new Diff(this.op, substring)); - } - pushLine() { - this.lines.push( - this.line.length !== 1 ? new Diff( - this.op, - concatenateRelevantDiffs(this.op, this.line, this.changeColor) - ) : this.line[0][0] === this.op ? this.line[0] : new Diff(this.op, this.line[0][1]) - // was common diff - ); - this.line.length = 0; - } - isLineEmpty() { - return this.line.length === 0; - } - // Minor input to buffer. - pushDiff(diff) { - this.line.push(diff); - } - // Main input to buffer. - align(diff) { - const string = diff[1]; - if (string.includes("\n")) { - const substrings = string.split("\n"); - const iLast = substrings.length - 1; - substrings.forEach((substring, i) => { - if (i < iLast) { - this.pushSubstring(substring); - this.pushLine(); - } else if (substring.length !== 0) { - this.pushSubstring(substring); - } - }); - } else { - this.pushDiff(diff); - } - } - // Output from buffer. - moveLinesTo(lines) { - if (!this.isLineEmpty()) { - this.pushLine(); - } - lines.push(...this.lines); - this.lines.length = 0; - } -} -class CommonBuffer { - deleteBuffer; - insertBuffer; - lines; - constructor(deleteBuffer, insertBuffer) { - this.deleteBuffer = deleteBuffer; - this.insertBuffer = insertBuffer; - this.lines = []; - } - pushDiffCommonLine(diff) { - this.lines.push(diff); - } - pushDiffChangeLines(diff) { - const isDiffEmpty = diff[1].length === 0; - if (!isDiffEmpty || this.deleteBuffer.isLineEmpty()) { - this.deleteBuffer.pushDiff(diff); - } - if (!isDiffEmpty || this.insertBuffer.isLineEmpty()) { - this.insertBuffer.pushDiff(diff); - } - } - flushChangeLines() { - this.deleteBuffer.moveLinesTo(this.lines); - this.insertBuffer.moveLinesTo(this.lines); - } - // Input to buffer. - align(diff) { - const op = diff[0]; - const string = diff[1]; - if (string.includes("\n")) { - const substrings = string.split("\n"); - const iLast = substrings.length - 1; - substrings.forEach((substring, i) => { - if (i === 0) { - const subdiff = new Diff(op, substring); - if (this.deleteBuffer.isLineEmpty() && this.insertBuffer.isLineEmpty()) { - this.flushChangeLines(); - this.pushDiffCommonLine(subdiff); - } else { - this.pushDiffChangeLines(subdiff); - this.flushChangeLines(); - } - } else if (i < iLast) { - this.pushDiffCommonLine(new Diff(op, substring)); - } else if (substring.length !== 0) { - this.pushDiffChangeLines(new Diff(op, substring)); - } - }); - } else { - this.pushDiffChangeLines(diff); - } - } - // Output from buffer. - getLines() { - this.flushChangeLines(); - return this.lines; - } -} -function getAlignedDiffs(diffs, changeColor) { - const deleteBuffer = new ChangeBuffer(DIFF_DELETE, changeColor); - const insertBuffer = new ChangeBuffer(DIFF_INSERT, changeColor); - const commonBuffer = new CommonBuffer(deleteBuffer, insertBuffer); - diffs.forEach((diff) => { - switch (diff[0]) { - case DIFF_DELETE: - deleteBuffer.align(diff); - break; - case DIFF_INSERT: - insertBuffer.align(diff); - break; - default: - commonBuffer.align(diff); - } - }); - return commonBuffer.getLines(); -} - -function hasCommonDiff(diffs, isMultiline) { - if (isMultiline) { - const iLast = diffs.length - 1; - return diffs.some( - (diff, i) => diff[0] === DIFF_EQUAL && (i !== iLast || diff[1] !== "\n") - ); - } - return diffs.some((diff) => diff[0] === DIFF_EQUAL); -} -function diffStringsUnified(a, b, options) { - if (a !== b && a.length !== 0 && b.length !== 0) { - const isMultiline = a.includes("\n") || b.includes("\n"); - const [diffs, truncated] = diffStringsRaw( - isMultiline ? `${a} -` : a, - isMultiline ? `${b} -` : b, - true, - // cleanupSemantic - options - ); - if (hasCommonDiff(diffs, isMultiline)) { - const optionsNormalized = normalizeDiffOptions(options); - const lines = getAlignedDiffs(diffs, optionsNormalized.changeColor); - return printDiffLines(lines, truncated, optionsNormalized); - } - } - return diffLinesUnified(a.split("\n"), b.split("\n"), options); -} -function diffStringsRaw(a, b, cleanup, options) { - const [diffs, truncated] = diffStrings(a, b, options); - if (cleanup) { - diff_cleanupSemantic(diffs); - } - return [diffs, truncated]; -} - -function getCommonMessage(message, options) { - const { commonColor } = normalizeDiffOptions(options); - return commonColor(message); -} -const { - AsymmetricMatcher, - DOMCollection, - DOMElement, - Immutable, - ReactElement, - ReactTestComponent -} = plugins; -const PLUGINS = [ - ReactTestComponent, - ReactElement, - DOMElement, - DOMCollection, - Immutable, - AsymmetricMatcher -]; -const FORMAT_OPTIONS = { - plugins: PLUGINS -}; -const FALLBACK_FORMAT_OPTIONS = { - callToJSON: false, - maxDepth: 10, - plugins: PLUGINS -}; -function diff(a, b, options) { - if (Object.is(a, b)) { - return ""; - } - const aType = getType(a); - let expectedType = aType; - let omitDifference = false; - if (aType === "object" && typeof a.asymmetricMatch === "function") { - if (a.$$typeof !== Symbol.for("jest.asymmetricMatcher")) { - return void 0; - } - if (typeof a.getExpectedType !== "function") { - return void 0; - } - expectedType = a.getExpectedType(); - omitDifference = expectedType === "string"; - } - if (expectedType !== getType(b)) { - const { aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator } = normalizeDiffOptions(options); - const formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options); - const aDisplay = format(a, formatOptions); - const bDisplay = format(b, formatOptions); - const aDiff = `${aColor(`${aIndicator} ${aAnnotation}:`)} -${aDisplay}`; - const bDiff = `${bColor(`${bIndicator} ${bAnnotation}:`)} -${bDisplay}`; - return `${aDiff} - -${bDiff}`; - } - if (omitDifference) { - return void 0; - } - switch (aType) { - case "string": - return diffLinesUnified(a.split("\n"), b.split("\n"), options); - case "boolean": - case "number": - return comparePrimitive(a, b, options); - case "map": - return compareObjects(sortMap(a), sortMap(b), options); - case "set": - return compareObjects(sortSet(a), sortSet(b), options); - default: - return compareObjects(a, b, options); - } -} -function comparePrimitive(a, b, options) { - const aFormat = format(a, FORMAT_OPTIONS); - const bFormat = format(b, FORMAT_OPTIONS); - return aFormat === bFormat ? "" : diffLinesUnified(aFormat.split("\n"), bFormat.split("\n"), options); -} -function sortMap(map) { - return new Map(Array.from(map.entries()).sort()); -} -function sortSet(set) { - return new Set(Array.from(set.values()).sort()); -} -function compareObjects(a, b, options) { - let difference; - let hasThrown = false; - try { - const formatOptions = getFormatOptions(FORMAT_OPTIONS, options); - difference = getObjectsDifference(a, b, formatOptions, options); - } catch { - hasThrown = true; - } - const noDiffMessage = getCommonMessage(NO_DIFF_MESSAGE, options); - if (difference === void 0 || difference === noDiffMessage) { - const formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options); - difference = getObjectsDifference(a, b, formatOptions, options); - if (difference !== noDiffMessage && !hasThrown) { - difference = `${getCommonMessage( - SIMILAR_MESSAGE, - options - )} - -${difference}`; - } - } - return difference; -} -function getFormatOptions(formatOptions, options) { - const { compareKeys } = normalizeDiffOptions(options); - return { - ...formatOptions, - compareKeys - }; -} -function getObjectsDifference(a, b, formatOptions, options) { - const formatOptionsZeroIndent = { ...formatOptions, indent: 0 }; - const aCompare = format(a, formatOptionsZeroIndent); - const bCompare = format(b, formatOptionsZeroIndent); - if (aCompare === bCompare) { - return getCommonMessage(NO_DIFF_MESSAGE, options); - } else { - const aDisplay = format(a, formatOptions); - const bDisplay = format(b, formatOptions); - return diffLinesUnified2( - aDisplay.split("\n"), - bDisplay.split("\n"), - aCompare.split("\n"), - bCompare.split("\n"), - options - ); - } -} -const MAX_DIFF_STRING_LENGTH = 2e4; -function isAsymmetricMatcher(data) { - const type = getType$1(data); - return type === "Object" && typeof data.asymmetricMatch === "function"; -} -function isReplaceable(obj1, obj2) { - const obj1Type = getType$1(obj1); - const obj2Type = getType$1(obj2); - return obj1Type === obj2Type && (obj1Type === "Object" || obj1Type === "Array"); -} -function printDiffOrStringify(expected, received, options) { - const { aAnnotation, bAnnotation } = normalizeDiffOptions(options); - if (typeof expected === "string" && typeof received === "string" && expected.length > 0 && received.length > 0 && expected.length <= MAX_DIFF_STRING_LENGTH && received.length <= MAX_DIFF_STRING_LENGTH && expected !== received) { - if (expected.includes("\n") || received.includes("\n")) { - return diffStringsUnified(received, expected, options); - } - const [diffs] = diffStringsRaw(received, expected, true); - const hasCommonDiff = diffs.some((diff2) => diff2[0] === DIFF_EQUAL); - const printLabel = getLabelPrinter(aAnnotation, bAnnotation); - const expectedLine = printLabel(aAnnotation) + printExpected( - getCommonAndChangedSubstrings(diffs, DIFF_DELETE, hasCommonDiff) - ); - const receivedLine = printLabel(bAnnotation) + printReceived( - getCommonAndChangedSubstrings(diffs, DIFF_INSERT, hasCommonDiff) - ); - return `${expectedLine} -${receivedLine}`; - } - const clonedExpected = deepClone(expected, { forceWritable: true }); - const clonedReceived = deepClone(received, { forceWritable: true }); - const { replacedExpected, replacedActual } = replaceAsymmetricMatcher(clonedExpected, clonedReceived); - const difference = diff(replacedExpected, replacedActual, options); - return difference; -} -function replaceAsymmetricMatcher(actual, expected, actualReplaced = /* @__PURE__ */ new WeakSet(), expectedReplaced = /* @__PURE__ */ new WeakSet()) { - if (!isReplaceable(actual, expected)) { - return { replacedActual: actual, replacedExpected: expected }; - } - if (actualReplaced.has(actual) || expectedReplaced.has(expected)) { - return { replacedActual: actual, replacedExpected: expected }; - } - actualReplaced.add(actual); - expectedReplaced.add(expected); - getOwnProperties(expected).forEach((key) => { - const expectedValue = expected[key]; - const actualValue = actual[key]; - if (isAsymmetricMatcher(expectedValue)) { - if (expectedValue.asymmetricMatch(actualValue)) { - actual[key] = expectedValue; - } - } else if (isAsymmetricMatcher(actualValue)) { - if (actualValue.asymmetricMatch(expectedValue)) { - expected[key] = actualValue; - } - } else if (isReplaceable(actualValue, expectedValue)) { - const replaced = replaceAsymmetricMatcher( - actualValue, - expectedValue, - actualReplaced, - expectedReplaced - ); - actual[key] = replaced.replacedActual; - expected[key] = replaced.replacedExpected; - } - }); - return { - replacedActual: actual, - replacedExpected: expected - }; -} -function getLabelPrinter(...strings) { - const maxLength = strings.reduce( - (max, string) => string.length > max ? string.length : max, - 0 - ); - return (string) => `${string}: ${" ".repeat(maxLength - string.length)}`; -} -const SPACE_SYMBOL = "\xB7"; -function replaceTrailingSpaces(text) { - return text.replace(/\s+$/gm, (spaces) => SPACE_SYMBOL.repeat(spaces.length)); -} -function printReceived(object) { - return c.red(replaceTrailingSpaces(stringify(object))); -} -function printExpected(value) { - return c.green(replaceTrailingSpaces(stringify(value))); -} -function getCommonAndChangedSubstrings(diffs, op, hasCommonDiff) { - return diffs.reduce( - (reduced, diff2) => reduced + (diff2[0] === DIFF_EQUAL ? diff2[1] : diff2[0] === op ? hasCommonDiff ? c.inverse(diff2[1]) : diff2[1] : ""), - "" - ); -} - -export { DIFF_DELETE, DIFF_EQUAL, DIFF_INSERT, Diff, diff, diffLinesRaw, diffLinesUnified, diffLinesUnified2, diffStringsRaw, diffStringsUnified, getLabelPrinter, printDiffOrStringify, replaceAsymmetricMatcher }; diff --git a/node_modules/@vitest/utils/dist/error.d.ts b/node_modules/@vitest/utils/dist/error.d.ts deleted file mode 100644 index 5fc17a06..00000000 --- a/node_modules/@vitest/utils/dist/error.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { D as DiffOptions } from './types-Bxe-2Udy.js'; -import '@vitest/pretty-format'; - -declare function serializeValue(val: any, seen?: WeakMap): any; - -declare function processError(_err: any, diffOptions?: DiffOptions, seen?: WeakSet): any; - -export { processError, serializeValue as serializeError, serializeValue }; diff --git a/node_modules/@vitest/utils/dist/error.js b/node_modules/@vitest/utils/dist/error.js deleted file mode 100644 index e57a8d60..00000000 --- a/node_modules/@vitest/utils/dist/error.js +++ /dev/null @@ -1,137 +0,0 @@ -import { printDiffOrStringify } from './diff.js'; -import { f as format, s as stringify } from './chunk-display.js'; -import '@vitest/pretty-format'; -import 'tinyrainbow'; -import './helpers.js'; -import 'loupe'; - -const IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@"; -const IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@"; -function isImmutable(v) { - return v && (v[IS_COLLECTION_SYMBOL] || v[IS_RECORD_SYMBOL]); -} -const OBJECT_PROTO = Object.getPrototypeOf({}); -function getUnserializableMessage(err) { - if (err instanceof Error) { - return `: ${err.message}`; - } - if (typeof err === "string") { - return `: ${err}`; - } - return ""; -} -function serializeValue(val, seen = /* @__PURE__ */ new WeakMap()) { - if (!val || typeof val === "string") { - return val; - } - if (typeof val === "function") { - return `Function<${val.name || "anonymous"}>`; - } - if (typeof val === "symbol") { - return val.toString(); - } - if (typeof val !== "object") { - return val; - } - if (isImmutable(val)) { - return serializeValue(val.toJSON(), seen); - } - if (val instanceof Promise || val.constructor && val.constructor.prototype === "AsyncFunction") { - return "Promise"; - } - if (typeof Element !== "undefined" && val instanceof Element) { - return val.tagName; - } - if (typeof val.asymmetricMatch === "function") { - return `${val.toString()} ${format(val.sample)}`; - } - if (typeof val.toJSON === "function") { - return serializeValue(val.toJSON(), seen); - } - if (seen.has(val)) { - return seen.get(val); - } - if (Array.isArray(val)) { - const clone = new Array(val.length); - seen.set(val, clone); - val.forEach((e, i) => { - try { - clone[i] = serializeValue(e, seen); - } catch (err) { - clone[i] = getUnserializableMessage(err); - } - }); - return clone; - } else { - const clone = /* @__PURE__ */ Object.create(null); - seen.set(val, clone); - let obj = val; - while (obj && obj !== OBJECT_PROTO) { - Object.getOwnPropertyNames(obj).forEach((key) => { - if (key in clone) { - return; - } - try { - clone[key] = serializeValue(val[key], seen); - } catch (err) { - delete clone[key]; - clone[key] = getUnserializableMessage(err); - } - }); - obj = Object.getPrototypeOf(obj); - } - return clone; - } -} -function normalizeErrorMessage(message) { - return message.replace(/__(vite_ssr_import|vi_import)_\d+__\./g, ""); -} -function processError(_err, diffOptions, seen = /* @__PURE__ */ new WeakSet()) { - if (!_err || typeof _err !== "object") { - return { message: String(_err) }; - } - const err = _err; - if (err.stack) { - err.stackStr = String(err.stack); - } - if (err.name) { - err.nameStr = String(err.name); - } - if (err.showDiff || err.showDiff === void 0 && err.expected !== void 0 && err.actual !== void 0) { - err.diff = printDiffOrStringify(err.actual, err.expected, { - ...diffOptions, - ...err.diffOptions - }); - } - if (typeof err.expected !== "string") { - err.expected = stringify(err.expected, 10); - } - if (typeof err.actual !== "string") { - err.actual = stringify(err.actual, 10); - } - try { - if (typeof err.message === "string") { - err.message = normalizeErrorMessage(err.message); - } - } catch { - } - try { - if (!seen.has(err) && typeof err.cause === "object") { - seen.add(err); - err.cause = processError(err.cause, diffOptions, seen); - } - } catch { - } - try { - return serializeValue(err); - } catch (e) { - return serializeValue( - new Error( - `Failed to fully serialize error: ${e == null ? void 0 : e.message} -Inner error message: ${err == null ? void 0 : err.message}` - ) - ); - } -} - -export { processError, serializeValue as serializeError, serializeValue }; diff --git a/node_modules/@vitest/utils/dist/helpers.d.ts b/node_modules/@vitest/utils/dist/helpers.d.ts deleted file mode 100644 index 00a9d64f..00000000 --- a/node_modules/@vitest/utils/dist/helpers.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { Nullable, Arrayable } from './types.js'; - -interface CloneOptions { - forceWritable?: boolean; -} -interface ErrorOptions { - message?: string; - stackTraceLimit?: number; -} -/** - * Get original stacktrace without source map support the most performant way. - * - Create only 1 stack frame. - * - Rewrite prepareStackTrace to bypass "support-stack-trace" (usually takes ~250ms). - */ -declare function createSimpleStackTrace(options?: ErrorOptions): string; -declare function notNullish(v: T | null | undefined): v is NonNullable; -declare function assertTypes(value: unknown, name: string, types: string[]): void; -declare function isPrimitive(value: unknown): boolean; -declare function slash(path: string): string; -declare function parseRegexp(input: string): RegExp; -declare function toArray(array?: Nullable>): Array; -declare function isObject(item: unknown): boolean; -declare function getType(value: unknown): string; -declare function getOwnProperties(obj: any): (string | symbol)[]; -declare function deepClone(val: T, options?: CloneOptions): T; -declare function clone(val: T, seen: WeakMap, options?: CloneOptions): T; -declare function noop(): void; -declare function objectAttr(source: any, path: string, defaultValue?: undefined): any; -type DeferPromise = Promise & { - resolve: (value: T | PromiseLike) => void; - reject: (reason?: any) => void; -}; -declare function createDefer(): DeferPromise; -/** - * If code starts with a function call, will return its last index, respecting arguments. - * This will return 25 - last ending character of toMatch ")" - * Also works with callbacks - * ``` - * toMatch({ test: '123' }); - * toBeAliased('123') - * ``` - */ -declare function getCallLastIndex(code: string): number | null; -declare function isNegativeNaN(val: number): boolean; - -export { type DeferPromise, assertTypes, clone, createDefer, createSimpleStackTrace, deepClone, getCallLastIndex, getOwnProperties, getType, isNegativeNaN, isObject, isPrimitive, noop, notNullish, objectAttr, parseRegexp, slash, toArray }; diff --git a/node_modules/@vitest/utils/dist/helpers.js b/node_modules/@vitest/utils/dist/helpers.js deleted file mode 100644 index ce511804..00000000 --- a/node_modules/@vitest/utils/dist/helpers.js +++ /dev/null @@ -1,192 +0,0 @@ -function createSimpleStackTrace(options) { - const { message = "$$stack trace error", stackTraceLimit = 1 } = options || {}; - const limit = Error.stackTraceLimit; - const prepareStackTrace = Error.prepareStackTrace; - Error.stackTraceLimit = stackTraceLimit; - Error.prepareStackTrace = (e) => e.stack; - const err = new Error(message); - const stackTrace = err.stack || ""; - Error.prepareStackTrace = prepareStackTrace; - Error.stackTraceLimit = limit; - return stackTrace; -} -function notNullish(v) { - return v != null; -} -function assertTypes(value, name, types) { - const receivedType = typeof value; - const pass = types.includes(receivedType); - if (!pass) { - throw new TypeError( - `${name} value must be ${types.join(" or ")}, received "${receivedType}"` - ); - } -} -function isPrimitive(value) { - return value === null || typeof value !== "function" && typeof value !== "object"; -} -function slash(path) { - return path.replace(/\\/g, "/"); -} -function parseRegexp(input) { - const m = input.match(/(\/?)(.+)\1([a-z]*)/i); - if (!m) { - return /$^/; - } - if (m[3] && !/^(?!.*?(.).*?\1)[gmixXsuUAJ]+$/.test(m[3])) { - return RegExp(input); - } - return new RegExp(m[2], m[3]); -} -function toArray(array) { - if (array === null || array === void 0) { - array = []; - } - if (Array.isArray(array)) { - return array; - } - return [array]; -} -function isObject(item) { - return item != null && typeof item === "object" && !Array.isArray(item); -} -function isFinalObj(obj) { - return obj === Object.prototype || obj === Function.prototype || obj === RegExp.prototype; -} -function getType(value) { - return Object.prototype.toString.apply(value).slice(8, -1); -} -function collectOwnProperties(obj, collector) { - const collect = typeof collector === "function" ? collector : (key) => collector.add(key); - Object.getOwnPropertyNames(obj).forEach(collect); - Object.getOwnPropertySymbols(obj).forEach(collect); -} -function getOwnProperties(obj) { - const ownProps = /* @__PURE__ */ new Set(); - if (isFinalObj(obj)) { - return []; - } - collectOwnProperties(obj, ownProps); - return Array.from(ownProps); -} -const defaultCloneOptions = { forceWritable: false }; -function deepClone(val, options = defaultCloneOptions) { - const seen = /* @__PURE__ */ new WeakMap(); - return clone(val, seen, options); -} -function clone(val, seen, options = defaultCloneOptions) { - let k, out; - if (seen.has(val)) { - return seen.get(val); - } - if (Array.isArray(val)) { - out = Array(k = val.length); - seen.set(val, out); - while (k--) { - out[k] = clone(val[k], seen, options); - } - return out; - } - if (Object.prototype.toString.call(val) === "[object Object]") { - out = Object.create(Object.getPrototypeOf(val)); - seen.set(val, out); - const props = getOwnProperties(val); - for (const k2 of props) { - const descriptor = Object.getOwnPropertyDescriptor(val, k2); - if (!descriptor) { - continue; - } - const cloned = clone(val[k2], seen, options); - if (options.forceWritable) { - Object.defineProperty(out, k2, { - enumerable: descriptor.enumerable, - configurable: true, - writable: true, - value: cloned - }); - } else if ("get" in descriptor) { - Object.defineProperty(out, k2, { - ...descriptor, - get() { - return cloned; - } - }); - } else { - Object.defineProperty(out, k2, { - ...descriptor, - value: cloned - }); - } - } - return out; - } - return val; -} -function noop() { -} -function objectAttr(source, path, defaultValue = void 0) { - const paths = path.replace(/\[(\d+)\]/g, ".$1").split("."); - let result = source; - for (const p of paths) { - result = Object(result)[p]; - if (result === void 0) { - return defaultValue; - } - } - return result; -} -function createDefer() { - let resolve = null; - let reject = null; - const p = new Promise((_resolve, _reject) => { - resolve = _resolve; - reject = _reject; - }); - p.resolve = resolve; - p.reject = reject; - return p; -} -function getCallLastIndex(code) { - let charIndex = -1; - let inString = null; - let startedBracers = 0; - let endedBracers = 0; - let beforeChar = null; - while (charIndex <= code.length) { - beforeChar = code[charIndex]; - charIndex++; - const char = code[charIndex]; - const isCharString = char === '"' || char === "'" || char === "`"; - if (isCharString && beforeChar !== "\\") { - if (inString === char) { - inString = null; - } else if (!inString) { - inString = char; - } - } - if (!inString) { - if (char === "(") { - startedBracers++; - } - if (char === ")") { - endedBracers++; - } - } - if (startedBracers && endedBracers && startedBracers === endedBracers) { - return charIndex; - } - } - return null; -} -function isNegativeNaN(val) { - if (!Number.isNaN(val)) { - return false; - } - const f64 = new Float64Array(1); - f64[0] = val; - const u32 = new Uint32Array(f64.buffer); - const isNegative = u32[1] >>> 31 === 1; - return isNegative; -} - -export { assertTypes, clone, createDefer, createSimpleStackTrace, deepClone, getCallLastIndex, getOwnProperties, getType, isNegativeNaN, isObject, isPrimitive, noop, notNullish, objectAttr, parseRegexp, slash, toArray }; diff --git a/node_modules/@vitest/utils/dist/index.d.ts b/node_modules/@vitest/utils/dist/index.d.ts deleted file mode 100644 index 1a0e6a5f..00000000 --- a/node_modules/@vitest/utils/dist/index.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -export { DeferPromise, assertTypes, clone, createDefer, createSimpleStackTrace, deepClone, getCallLastIndex, getOwnProperties, getType, isNegativeNaN, isObject, isPrimitive, noop, notNullish, objectAttr, parseRegexp, slash, toArray } from './helpers.js'; -import { PrettyFormatOptions } from '@vitest/pretty-format'; -import { Colors } from 'tinyrainbow'; -export { ArgumentsType, Arrayable, Awaitable, Constructable, DeepMerge, ErrorWithDiff, MergeInsertions, MutableArray, Nullable, ParsedStack, SerializedError, TestError } from './types.js'; - -interface SafeTimers { - nextTick: (cb: () => void) => void; - setTimeout: typeof setTimeout; - setInterval: typeof setInterval; - clearInterval: typeof clearInterval; - clearTimeout: typeof clearTimeout; - setImmediate: typeof setImmediate; - clearImmediate: typeof clearImmediate; -} -declare function getSafeTimers(): SafeTimers; -declare function setSafeTimers(): void; - -declare function shuffle(array: T[], seed?: number): T[]; - -type Inspect = (value: unknown, options: Options) => string; -interface Options { - showHidden: boolean; - depth: number; - colors: boolean; - customInspect: boolean; - showProxy: boolean; - maxArrayLength: number; - breakLength: number; - truncate: number; - seen: unknown[]; - inspect: Inspect; - stylize: (value: string, styleType: string) => string; -} -type LoupeOptions = Partial; -declare function stringify(object: unknown, maxDepth?: number, { maxLength, ...options }?: PrettyFormatOptions & { - maxLength?: number; -}): string; -declare function format(...args: unknown[]): string; -declare function inspect(obj: unknown, options?: LoupeOptions): string; -declare function objDisplay(obj: unknown, options?: LoupeOptions): string; - -declare const lineSplitRE: RegExp; -declare function positionToOffset(source: string, lineNumber: number, columnNumber: number): number; -declare function offsetToLineNumber(source: string, offset: number): number; - -interface HighlightOptions { - jsx?: boolean; - colors?: Colors; -} -declare function highlight(code: string, options?: HighlightOptions): string; - -export { type SafeTimers, format, getSafeTimers, highlight, inspect, lineSplitRE, objDisplay, offsetToLineNumber, positionToOffset, setSafeTimers, shuffle, stringify }; diff --git a/node_modules/@vitest/utils/dist/index.js b/node_modules/@vitest/utils/dist/index.js deleted file mode 100644 index 32e17628..00000000 --- a/node_modules/@vitest/utils/dist/index.js +++ /dev/null @@ -1,631 +0,0 @@ -export { assertTypes, clone, createDefer, createSimpleStackTrace, deepClone, getCallLastIndex, getOwnProperties, getType, isNegativeNaN, isObject, isPrimitive, noop, notNullish, objectAttr, parseRegexp, slash, toArray } from './helpers.js'; -export { f as format, i as inspect, o as objDisplay, s as stringify } from './chunk-display.js'; -import c from 'tinyrainbow'; -import 'loupe'; -import '@vitest/pretty-format'; - -const SAFE_TIMERS_SYMBOL = Symbol("vitest:SAFE_TIMERS"); -function getSafeTimers() { - const { - setTimeout: safeSetTimeout, - setInterval: safeSetInterval, - clearInterval: safeClearInterval, - clearTimeout: safeClearTimeout, - setImmediate: safeSetImmediate, - clearImmediate: safeClearImmediate - } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis; - const { nextTick: safeNextTick } = globalThis[SAFE_TIMERS_SYMBOL] || globalThis.process || { nextTick: (cb) => cb() }; - return { - nextTick: safeNextTick, - setTimeout: safeSetTimeout, - setInterval: safeSetInterval, - clearInterval: safeClearInterval, - clearTimeout: safeClearTimeout, - setImmediate: safeSetImmediate, - clearImmediate: safeClearImmediate - }; -} -function setSafeTimers() { - const { - setTimeout: safeSetTimeout, - setInterval: safeSetInterval, - clearInterval: safeClearInterval, - clearTimeout: safeClearTimeout, - setImmediate: safeSetImmediate, - clearImmediate: safeClearImmediate - } = globalThis; - const { nextTick: safeNextTick } = globalThis.process || { - nextTick: (cb) => cb() - }; - const timers = { - nextTick: safeNextTick, - setTimeout: safeSetTimeout, - setInterval: safeSetInterval, - clearInterval: safeClearInterval, - clearTimeout: safeClearTimeout, - setImmediate: safeSetImmediate, - clearImmediate: safeClearImmediate - }; - globalThis[SAFE_TIMERS_SYMBOL] = timers; -} - -const RealDate = Date; -function random(seed) { - const x = Math.sin(seed++) * 1e4; - return x - Math.floor(x); -} -function shuffle(array, seed = RealDate.now()) { - let length = array.length; - while (length) { - const index = Math.floor(random(seed) * length--); - const previous = array[length]; - array[length] = array[index]; - array[index] = previous; - ++seed; - } - return array; -} - -const lineSplitRE = /\r?\n/; -function positionToOffset(source, lineNumber, columnNumber) { - const lines = source.split(lineSplitRE); - const nl = /\r\n/.test(source) ? 2 : 1; - let start = 0; - if (lineNumber > lines.length) { - return source.length; - } - for (let i = 0; i < lineNumber - 1; i++) { - start += lines[i].length + nl; - } - return start + columnNumber; -} -function offsetToLineNumber(source, offset) { - if (offset > source.length) { - throw new Error( - `offset is longer than source length! offset ${offset} > length ${source.length}` - ); - } - const lines = source.split(lineSplitRE); - const nl = /\r\n/.test(source) ? 2 : 1; - let counted = 0; - let line = 0; - for (; line < lines.length; line++) { - const lineLength = lines[line].length + nl; - if (counted + lineLength >= offset) { - break; - } - counted += lineLength; - } - return line + 1; -} - -function getDefaultExportFromCjs (x) { - return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; -} - -// Copyright 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Simon Lydell -// License: MIT. -var Identifier, JSXIdentifier, JSXPunctuator, JSXString, JSXText, KeywordsWithExpressionAfter, KeywordsWithNoLineTerminatorAfter, LineTerminatorSequence, MultiLineComment, Newline, NumericLiteral, Punctuator, RegularExpressionLiteral, SingleLineComment, StringLiteral, Template, TokensNotPrecedingObjectLiteral, TokensPrecedingExpression, WhiteSpace; -RegularExpressionLiteral = /\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu; -Punctuator = /--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y; -Identifier = /(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu; -StringLiteral = /(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y; -NumericLiteral = /(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y; -Template = /[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y; -WhiteSpace = /[\t\v\f\ufeff\p{Zs}]+/yu; -LineTerminatorSequence = /\r?\n|[\r\u2028\u2029]/y; -MultiLineComment = /\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y; -SingleLineComment = /\/\/.*/y; -JSXPunctuator = /[<>.:={}]|\/(?![\/*])/y; -JSXIdentifier = /[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu; -JSXString = /(['"])(?:(?!\1)[^])*(\1)?/y; -JSXText = /[^<>{}]+/y; -TokensPrecedingExpression = /^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/; -TokensNotPrecedingObjectLiteral = /^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/; -KeywordsWithExpressionAfter = /^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/; -KeywordsWithNoLineTerminatorAfter = /^(?:return|throw|yield)$/; -Newline = RegExp(LineTerminatorSequence.source); -var jsTokens_1 = function*(input, {jsx = false} = {}) { - var braces, firstCodePoint, isExpression, lastIndex, lastSignificantToken, length, match, mode, nextLastIndex, nextLastSignificantToken, parenNesting, postfixIncDec, punctuator, stack; - ({length} = input); - lastIndex = 0; - lastSignificantToken = ""; - stack = [ - {tag: "JS"} - ]; - braces = []; - parenNesting = 0; - postfixIncDec = false; - while (lastIndex < length) { - mode = stack[stack.length - 1]; - switch (mode.tag) { - case "JS": - case "JSNonExpressionParen": - case "InterpolationInTemplate": - case "InterpolationInJSX": - if (input[lastIndex] === "/" && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) { - RegularExpressionLiteral.lastIndex = lastIndex; - if (match = RegularExpressionLiteral.exec(input)) { - lastIndex = RegularExpressionLiteral.lastIndex; - lastSignificantToken = match[0]; - postfixIncDec = true; - yield ({ - type: "RegularExpressionLiteral", - value: match[0], - closed: match[1] !== void 0 && match[1] !== "\\" - }); - continue; - } - } - Punctuator.lastIndex = lastIndex; - if (match = Punctuator.exec(input)) { - punctuator = match[0]; - nextLastIndex = Punctuator.lastIndex; - nextLastSignificantToken = punctuator; - switch (punctuator) { - case "(": - if (lastSignificantToken === "?NonExpressionParenKeyword") { - stack.push({ - tag: "JSNonExpressionParen", - nesting: parenNesting - }); - } - parenNesting++; - postfixIncDec = false; - break; - case ")": - parenNesting--; - postfixIncDec = true; - if (mode.tag === "JSNonExpressionParen" && parenNesting === mode.nesting) { - stack.pop(); - nextLastSignificantToken = "?NonExpressionParenEnd"; - postfixIncDec = false; - } - break; - case "{": - Punctuator.lastIndex = 0; - isExpression = !TokensNotPrecedingObjectLiteral.test(lastSignificantToken) && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken)); - braces.push(isExpression); - postfixIncDec = false; - break; - case "}": - switch (mode.tag) { - case "InterpolationInTemplate": - if (braces.length === mode.nesting) { - Template.lastIndex = lastIndex; - match = Template.exec(input); - lastIndex = Template.lastIndex; - lastSignificantToken = match[0]; - if (match[1] === "${") { - lastSignificantToken = "?InterpolationInTemplate"; - postfixIncDec = false; - yield ({ - type: "TemplateMiddle", - value: match[0] - }); - } else { - stack.pop(); - postfixIncDec = true; - yield ({ - type: "TemplateTail", - value: match[0], - closed: match[1] === "`" - }); - } - continue; - } - break; - case "InterpolationInJSX": - if (braces.length === mode.nesting) { - stack.pop(); - lastIndex += 1; - lastSignificantToken = "}"; - yield ({ - type: "JSXPunctuator", - value: "}" - }); - continue; - } - } - postfixIncDec = braces.pop(); - nextLastSignificantToken = postfixIncDec ? "?ExpressionBraceEnd" : "}"; - break; - case "]": - postfixIncDec = true; - break; - case "++": - case "--": - nextLastSignificantToken = postfixIncDec ? "?PostfixIncDec" : "?UnaryIncDec"; - break; - case "<": - if (jsx && (TokensPrecedingExpression.test(lastSignificantToken) || KeywordsWithExpressionAfter.test(lastSignificantToken))) { - stack.push({tag: "JSXTag"}); - lastIndex += 1; - lastSignificantToken = "<"; - yield ({ - type: "JSXPunctuator", - value: punctuator - }); - continue; - } - postfixIncDec = false; - break; - default: - postfixIncDec = false; - } - lastIndex = nextLastIndex; - lastSignificantToken = nextLastSignificantToken; - yield ({ - type: "Punctuator", - value: punctuator - }); - continue; - } - Identifier.lastIndex = lastIndex; - if (match = Identifier.exec(input)) { - lastIndex = Identifier.lastIndex; - nextLastSignificantToken = match[0]; - switch (match[0]) { - case "for": - case "if": - case "while": - case "with": - if (lastSignificantToken !== "." && lastSignificantToken !== "?.") { - nextLastSignificantToken = "?NonExpressionParenKeyword"; - } - } - lastSignificantToken = nextLastSignificantToken; - postfixIncDec = !KeywordsWithExpressionAfter.test(match[0]); - yield ({ - type: match[1] === "#" ? "PrivateIdentifier" : "IdentifierName", - value: match[0] - }); - continue; - } - StringLiteral.lastIndex = lastIndex; - if (match = StringLiteral.exec(input)) { - lastIndex = StringLiteral.lastIndex; - lastSignificantToken = match[0]; - postfixIncDec = true; - yield ({ - type: "StringLiteral", - value: match[0], - closed: match[2] !== void 0 - }); - continue; - } - NumericLiteral.lastIndex = lastIndex; - if (match = NumericLiteral.exec(input)) { - lastIndex = NumericLiteral.lastIndex; - lastSignificantToken = match[0]; - postfixIncDec = true; - yield ({ - type: "NumericLiteral", - value: match[0] - }); - continue; - } - Template.lastIndex = lastIndex; - if (match = Template.exec(input)) { - lastIndex = Template.lastIndex; - lastSignificantToken = match[0]; - if (match[1] === "${") { - lastSignificantToken = "?InterpolationInTemplate"; - stack.push({ - tag: "InterpolationInTemplate", - nesting: braces.length - }); - postfixIncDec = false; - yield ({ - type: "TemplateHead", - value: match[0] - }); - } else { - postfixIncDec = true; - yield ({ - type: "NoSubstitutionTemplate", - value: match[0], - closed: match[1] === "`" - }); - } - continue; - } - break; - case "JSXTag": - case "JSXTagEnd": - JSXPunctuator.lastIndex = lastIndex; - if (match = JSXPunctuator.exec(input)) { - lastIndex = JSXPunctuator.lastIndex; - nextLastSignificantToken = match[0]; - switch (match[0]) { - case "<": - stack.push({tag: "JSXTag"}); - break; - case ">": - stack.pop(); - if (lastSignificantToken === "/" || mode.tag === "JSXTagEnd") { - nextLastSignificantToken = "?JSX"; - postfixIncDec = true; - } else { - stack.push({tag: "JSXChildren"}); - } - break; - case "{": - stack.push({ - tag: "InterpolationInJSX", - nesting: braces.length - }); - nextLastSignificantToken = "?InterpolationInJSX"; - postfixIncDec = false; - break; - case "/": - if (lastSignificantToken === "<") { - stack.pop(); - if (stack[stack.length - 1].tag === "JSXChildren") { - stack.pop(); - } - stack.push({tag: "JSXTagEnd"}); - } - } - lastSignificantToken = nextLastSignificantToken; - yield ({ - type: "JSXPunctuator", - value: match[0] - }); - continue; - } - JSXIdentifier.lastIndex = lastIndex; - if (match = JSXIdentifier.exec(input)) { - lastIndex = JSXIdentifier.lastIndex; - lastSignificantToken = match[0]; - yield ({ - type: "JSXIdentifier", - value: match[0] - }); - continue; - } - JSXString.lastIndex = lastIndex; - if (match = JSXString.exec(input)) { - lastIndex = JSXString.lastIndex; - lastSignificantToken = match[0]; - yield ({ - type: "JSXString", - value: match[0], - closed: match[2] !== void 0 - }); - continue; - } - break; - case "JSXChildren": - JSXText.lastIndex = lastIndex; - if (match = JSXText.exec(input)) { - lastIndex = JSXText.lastIndex; - lastSignificantToken = match[0]; - yield ({ - type: "JSXText", - value: match[0] - }); - continue; - } - switch (input[lastIndex]) { - case "<": - stack.push({tag: "JSXTag"}); - lastIndex++; - lastSignificantToken = "<"; - yield ({ - type: "JSXPunctuator", - value: "<" - }); - continue; - case "{": - stack.push({ - tag: "InterpolationInJSX", - nesting: braces.length - }); - lastIndex++; - lastSignificantToken = "?InterpolationInJSX"; - postfixIncDec = false; - yield ({ - type: "JSXPunctuator", - value: "{" - }); - continue; - } - } - WhiteSpace.lastIndex = lastIndex; - if (match = WhiteSpace.exec(input)) { - lastIndex = WhiteSpace.lastIndex; - yield ({ - type: "WhiteSpace", - value: match[0] - }); - continue; - } - LineTerminatorSequence.lastIndex = lastIndex; - if (match = LineTerminatorSequence.exec(input)) { - lastIndex = LineTerminatorSequence.lastIndex; - postfixIncDec = false; - if (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) { - lastSignificantToken = "?NoLineTerminatorHere"; - } - yield ({ - type: "LineTerminatorSequence", - value: match[0] - }); - continue; - } - MultiLineComment.lastIndex = lastIndex; - if (match = MultiLineComment.exec(input)) { - lastIndex = MultiLineComment.lastIndex; - if (Newline.test(match[0])) { - postfixIncDec = false; - if (KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)) { - lastSignificantToken = "?NoLineTerminatorHere"; - } - } - yield ({ - type: "MultiLineComment", - value: match[0], - closed: match[1] !== void 0 - }); - continue; - } - SingleLineComment.lastIndex = lastIndex; - if (match = SingleLineComment.exec(input)) { - lastIndex = SingleLineComment.lastIndex; - postfixIncDec = false; - yield ({ - type: "SingleLineComment", - value: match[0] - }); - continue; - } - firstCodePoint = String.fromCodePoint(input.codePointAt(lastIndex)); - lastIndex += firstCodePoint.length; - lastSignificantToken = firstCodePoint; - postfixIncDec = false; - yield ({ - type: mode.tag.startsWith("JSX") ? "JSXInvalid" : "Invalid", - value: firstCodePoint - }); - } - return void 0; -}; - -var jsTokens = /*@__PURE__*/getDefaultExportFromCjs(jsTokens_1); - -// src/index.ts -var reservedWords = { - keyword: [ - "break", - "case", - "catch", - "continue", - "debugger", - "default", - "do", - "else", - "finally", - "for", - "function", - "if", - "return", - "switch", - "throw", - "try", - "var", - "const", - "while", - "with", - "new", - "this", - "super", - "class", - "extends", - "export", - "import", - "null", - "true", - "false", - "in", - "instanceof", - "typeof", - "void", - "delete" - ], - strict: [ - "implements", - "interface", - "let", - "package", - "private", - "protected", - "public", - "static", - "yield" - ] -}, keywords = new Set(reservedWords.keyword), reservedWordsStrictSet = new Set(reservedWords.strict), sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]); -function isReservedWord(word) { - return word === "await" || word === "enum"; -} -function isStrictReservedWord(word) { - return isReservedWord(word) || reservedWordsStrictSet.has(word); -} -function isKeyword(word) { - return keywords.has(word); -} -var BRACKET = /^[()[\]{}]$/, getTokenType = function(token) { - if (token.type === "IdentifierName") { - if (isKeyword(token.value) || isStrictReservedWord(token.value) || sometimesKeywords.has(token.value)) - return "Keyword"; - if (token.value[0] && token.value[0] !== token.value[0].toLowerCase()) - return "IdentifierCapitalized"; - } - return token.type === "Punctuator" && BRACKET.test(token.value) ? "Bracket" : token.type === "Invalid" && (token.value === "@" || token.value === "#") ? "Punctuator" : token.type; -}; -function getCallableType(token) { - if (token.type === "IdentifierName") - return "IdentifierCallable"; - if (token.type === "PrivateIdentifier") - return "PrivateIdentifierCallable"; - throw new Error("Not a callable token"); -} -var colorize = (defs, type, value) => { - let colorize2 = defs[type]; - return colorize2 ? colorize2(value) : value; -}, highlightTokens = (defs, text, jsx) => { - let highlighted = "", lastPotentialCallable = null, stackedHighlight = ""; - for (let token of jsTokens(text, { jsx })) { - let type = getTokenType(token); - if (type === "IdentifierName" || type === "PrivateIdentifier") { - lastPotentialCallable && (highlighted += colorize(defs, getTokenType(lastPotentialCallable), lastPotentialCallable.value) + stackedHighlight, stackedHighlight = ""), lastPotentialCallable = token; - continue; - } - if (lastPotentialCallable && (token.type === "WhiteSpace" || token.type === "LineTerminatorSequence" || token.type === "Punctuator" && (token.value === "?." || token.value === "!"))) { - stackedHighlight += colorize(defs, type, token.value); - continue; - } - if (stackedHighlight && !lastPotentialCallable && (highlighted += stackedHighlight, stackedHighlight = ""), lastPotentialCallable) { - let type2 = token.type === "Punctuator" && token.value === "(" ? getCallableType(lastPotentialCallable) : getTokenType(lastPotentialCallable); - highlighted += colorize(defs, type2, lastPotentialCallable.value) + stackedHighlight, stackedHighlight = "", lastPotentialCallable = null; - } - highlighted += colorize(defs, type, token.value); - } - return highlighted; -}; -function highlight$1(code, options = { jsx: !1, colors: {} }) { - return code && highlightTokens(options.colors || {}, code, options.jsx); -} - -function getDefs(c2) { - const Invalid = (text) => c2.white(c2.bgRed(c2.bold(text))); - return { - Keyword: c2.magenta, - IdentifierCapitalized: c2.yellow, - Punctuator: c2.yellow, - StringLiteral: c2.green, - NoSubstitutionTemplate: c2.green, - MultiLineComment: c2.gray, - SingleLineComment: c2.gray, - RegularExpressionLiteral: c2.cyan, - NumericLiteral: c2.blue, - TemplateHead: (text) => c2.green(text.slice(0, text.length - 2)) + c2.cyan(text.slice(-2)), - TemplateTail: (text) => c2.cyan(text.slice(0, 1)) + c2.green(text.slice(1)), - TemplateMiddle: (text) => c2.cyan(text.slice(0, 1)) + c2.green(text.slice(1, text.length - 2)) + c2.cyan(text.slice(-2)), - IdentifierCallable: c2.blue, - PrivateIdentifierCallable: (text) => `#${c2.blue(text.slice(1))}`, - Invalid, - JSXString: c2.green, - JSXIdentifier: c2.yellow, - JSXInvalid: Invalid, - JSXPunctuator: c2.yellow - }; -} -function highlight(code, options = { jsx: false }) { - return highlight$1(code, { - jsx: options.jsx, - colors: getDefs(options.colors || c) - }); -} - -export { getSafeTimers, highlight, lineSplitRE, offsetToLineNumber, positionToOffset, setSafeTimers, shuffle }; diff --git a/node_modules/@vitest/utils/dist/source-map.d.ts b/node_modules/@vitest/utils/dist/source-map.d.ts deleted file mode 100644 index 80e1e6c7..00000000 --- a/node_modules/@vitest/utils/dist/source-map.d.ts +++ /dev/null @@ -1,116 +0,0 @@ -import { ErrorWithDiff, ParsedStack } from './types.js'; - -type GeneratedColumn = number; -type SourcesIndex = number; -type SourceLine = number; -type SourceColumn = number; -type NamesIndex = number; -type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex]; - -interface SourceMapV3 { - file?: string | null; - names: string[]; - sourceRoot?: string; - sources: (string | null)[]; - sourcesContent?: (string | null)[]; - version: 3; - ignoreList?: number[]; -} -interface EncodedSourceMap extends SourceMapV3 { - mappings: string; -} -interface DecodedSourceMap extends SourceMapV3 { - mappings: SourceMapSegment[][]; -} -type OriginalMapping = { - source: string | null; - line: number; - column: number; - name: string | null; -}; -type InvalidOriginalMapping = { - source: null; - line: null; - column: null; - name: null; -}; -type GeneratedMapping = { - line: number; - column: number; -}; -type InvalidGeneratedMapping = { - line: null; - column: null; -}; -type Bias = typeof GREATEST_LOWER_BOUND | typeof LEAST_UPPER_BOUND; -type XInput = { - x_google_ignoreList?: SourceMapV3['ignoreList']; -}; -type EncodedSourceMapXInput = EncodedSourceMap & XInput; -type DecodedSourceMapXInput = DecodedSourceMap & XInput; -type SourceMapInput = string | EncodedSourceMapXInput | DecodedSourceMapXInput | TraceMap; -type Needle = { - line: number; - column: number; - bias?: Bias; -}; -type SourceNeedle = { - source: string; - line: number; - column: number; - bias?: Bias; -}; -declare abstract class SourceMap { - version: SourceMapV3['version']; - file: SourceMapV3['file']; - names: SourceMapV3['names']; - sourceRoot: SourceMapV3['sourceRoot']; - sources: SourceMapV3['sources']; - sourcesContent: SourceMapV3['sourcesContent']; - resolvedSources: SourceMapV3['sources']; - ignoreList: SourceMapV3['ignoreList']; -} - -declare const LEAST_UPPER_BOUND = -1; -declare const GREATEST_LOWER_BOUND = 1; - -declare class TraceMap implements SourceMap { - version: SourceMapV3['version']; - file: SourceMapV3['file']; - names: SourceMapV3['names']; - sourceRoot: SourceMapV3['sourceRoot']; - sources: SourceMapV3['sources']; - sourcesContent: SourceMapV3['sourcesContent']; - ignoreList: SourceMapV3['ignoreList']; - resolvedSources: string[]; - private _encoded; - private _decoded; - private _decodedMemo; - private _bySources; - private _bySourceMemos; - constructor(map: SourceMapInput, mapUrl?: string | null); -} -/** - * A higher-level API to find the source/line/column associated with a generated line/column - * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in - * `source-map` library. - */ -declare function originalPositionFor(map: TraceMap, needle: Needle): OriginalMapping | InvalidOriginalMapping; -/** - * Finds the generated line/column position of the provided source/line/column source position. - */ -declare function generatedPositionFor(map: TraceMap, needle: SourceNeedle): GeneratedMapping | InvalidGeneratedMapping; - -interface StackTraceParserOptions { - ignoreStackEntries?: (RegExp | string)[]; - getSourceMap?: (file: string) => unknown; - getFileName?: (id: string) => string; - frameFilter?: (error: ErrorWithDiff, frame: ParsedStack) => boolean | void; -} -declare function parseSingleFFOrSafariStack(raw: string): ParsedStack | null; -declare function parseSingleStack(raw: string): ParsedStack | null; -declare function parseSingleV8Stack(raw: string): ParsedStack | null; -declare function parseStacktrace(stack: string, options?: StackTraceParserOptions): ParsedStack[]; -declare function parseErrorStacktrace(e: ErrorWithDiff, options?: StackTraceParserOptions): ParsedStack[]; - -export { type SourceMapInput, type StackTraceParserOptions, TraceMap, generatedPositionFor, originalPositionFor, parseErrorStacktrace, parseSingleFFOrSafariStack, parseSingleStack, parseSingleV8Stack, parseStacktrace }; diff --git a/node_modules/@vitest/utils/dist/source-map.js b/node_modules/@vitest/utils/dist/source-map.js deleted file mode 100644 index e4aae099..00000000 --- a/node_modules/@vitest/utils/dist/source-map.js +++ /dev/null @@ -1,931 +0,0 @@ -import { notNullish, isPrimitive } from './helpers.js'; - -const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//; -function normalizeWindowsPath(input = "") { - if (!input) { - return input; - } - return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase()); -} -const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/; -function cwd() { - if (typeof process !== "undefined" && typeof process.cwd === "function") { - return process.cwd().replace(/\\/g, "/"); - } - return "/"; -} -const resolve$2 = function(...arguments_) { - arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument)); - let resolvedPath = ""; - let resolvedAbsolute = false; - for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) { - const path = index >= 0 ? arguments_[index] : cwd(); - if (!path || path.length === 0) { - continue; - } - resolvedPath = `${path}/${resolvedPath}`; - resolvedAbsolute = isAbsolute(path); - } - resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute); - if (resolvedAbsolute && !isAbsolute(resolvedPath)) { - return `/${resolvedPath}`; - } - return resolvedPath.length > 0 ? resolvedPath : "."; -}; -function normalizeString(path, allowAboveRoot) { - let res = ""; - let lastSegmentLength = 0; - let lastSlash = -1; - let dots = 0; - let char = null; - for (let index = 0; index <= path.length; ++index) { - if (index < path.length) { - char = path[index]; - } else if (char === "/") { - break; - } else { - char = "/"; - } - if (char === "/") { - if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) { - if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") { - if (res.length > 2) { - const lastSlashIndex = res.lastIndexOf("/"); - if (lastSlashIndex === -1) { - res = ""; - lastSegmentLength = 0; - } else { - res = res.slice(0, lastSlashIndex); - lastSegmentLength = res.length - 1 - res.lastIndexOf("/"); - } - lastSlash = index; - dots = 0; - continue; - } else if (res.length > 0) { - res = ""; - lastSegmentLength = 0; - lastSlash = index; - dots = 0; - continue; - } - } - if (allowAboveRoot) { - res += res.length > 0 ? "/.." : ".."; - lastSegmentLength = 2; - } - } else { - if (res.length > 0) { - res += `/${path.slice(lastSlash + 1, index)}`; - } else { - res = path.slice(lastSlash + 1, index); - } - lastSegmentLength = index - lastSlash - 1; - } - lastSlash = index; - dots = 0; - } else if (char === "." && dots !== -1) { - ++dots; - } else { - dots = -1; - } - } - return res; -} -const isAbsolute = function(p) { - return _IS_ABSOLUTE_RE.test(p); -}; - -const comma = ','.charCodeAt(0); -const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; -const intToChar = new Uint8Array(64); // 64 possible chars. -const charToInt = new Uint8Array(128); // z is 122 in ASCII -for (let i = 0; i < chars.length; i++) { - const c = chars.charCodeAt(i); - intToChar[i] = c; - charToInt[c] = i; -} -function decode(mappings) { - const state = new Int32Array(5); - const decoded = []; - let index = 0; - do { - const semi = indexOf(mappings, index); - const line = []; - let sorted = true; - let lastCol = 0; - state[0] = 0; - for (let i = index; i < semi; i++) { - let seg; - i = decodeInteger(mappings, i, state, 0); // genColumn - const col = state[0]; - if (col < lastCol) - sorted = false; - lastCol = col; - if (hasMoreVlq(mappings, i, semi)) { - i = decodeInteger(mappings, i, state, 1); // sourcesIndex - i = decodeInteger(mappings, i, state, 2); // sourceLine - i = decodeInteger(mappings, i, state, 3); // sourceColumn - if (hasMoreVlq(mappings, i, semi)) { - i = decodeInteger(mappings, i, state, 4); // namesIndex - seg = [col, state[1], state[2], state[3], state[4]]; - } - else { - seg = [col, state[1], state[2], state[3]]; - } - } - else { - seg = [col]; - } - line.push(seg); - } - if (!sorted) - sort(line); - decoded.push(line); - index = semi + 1; - } while (index <= mappings.length); - return decoded; -} -function indexOf(mappings, index) { - const idx = mappings.indexOf(';', index); - return idx === -1 ? mappings.length : idx; -} -function decodeInteger(mappings, pos, state, j) { - let value = 0; - let shift = 0; - let integer = 0; - do { - const c = mappings.charCodeAt(pos++); - integer = charToInt[c]; - value |= (integer & 31) << shift; - shift += 5; - } while (integer & 32); - const shouldNegate = value & 1; - value >>>= 1; - if (shouldNegate) { - value = -0x80000000 | -value; - } - state[j] += value; - return pos; -} -function hasMoreVlq(mappings, i, length) { - if (i >= length) - return false; - return mappings.charCodeAt(i) !== comma; -} -function sort(line) { - line.sort(sortComparator$1); -} -function sortComparator$1(a, b) { - return a[0] - b[0]; -} - -// Matches the scheme of a URL, eg "http://" -const schemeRegex = /^[\w+.-]+:\/\//; -/** - * Matches the parts of a URL: - * 1. Scheme, including ":", guaranteed. - * 2. User/password, including "@", optional. - * 3. Host, guaranteed. - * 4. Port, including ":", optional. - * 5. Path, including "/", optional. - * 6. Query, including "?", optional. - * 7. Hash, including "#", optional. - */ -const urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/; -/** - * File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start - * with a leading `/`, they can have a domain (but only if they don't start with a Windows drive). - * - * 1. Host, optional. - * 2. Path, which may include "/", guaranteed. - * 3. Query, including "?", optional. - * 4. Hash, including "#", optional. - */ -const fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i; -var UrlType; -(function (UrlType) { - UrlType[UrlType["Empty"] = 1] = "Empty"; - UrlType[UrlType["Hash"] = 2] = "Hash"; - UrlType[UrlType["Query"] = 3] = "Query"; - UrlType[UrlType["RelativePath"] = 4] = "RelativePath"; - UrlType[UrlType["AbsolutePath"] = 5] = "AbsolutePath"; - UrlType[UrlType["SchemeRelative"] = 6] = "SchemeRelative"; - UrlType[UrlType["Absolute"] = 7] = "Absolute"; -})(UrlType || (UrlType = {})); -function isAbsoluteUrl(input) { - return schemeRegex.test(input); -} -function isSchemeRelativeUrl(input) { - return input.startsWith('//'); -} -function isAbsolutePath(input) { - return input.startsWith('/'); -} -function isFileUrl(input) { - return input.startsWith('file:'); -} -function isRelative(input) { - return /^[.?#]/.test(input); -} -function parseAbsoluteUrl(input) { - const match = urlRegex.exec(input); - return makeUrl(match[1], match[2] || '', match[3], match[4] || '', match[5] || '/', match[6] || '', match[7] || ''); -} -function parseFileUrl(input) { - const match = fileRegex.exec(input); - const path = match[2]; - return makeUrl('file:', '', match[1] || '', '', isAbsolutePath(path) ? path : '/' + path, match[3] || '', match[4] || ''); -} -function makeUrl(scheme, user, host, port, path, query, hash) { - return { - scheme, - user, - host, - port, - path, - query, - hash, - type: UrlType.Absolute, - }; -} -function parseUrl(input) { - if (isSchemeRelativeUrl(input)) { - const url = parseAbsoluteUrl('http:' + input); - url.scheme = ''; - url.type = UrlType.SchemeRelative; - return url; - } - if (isAbsolutePath(input)) { - const url = parseAbsoluteUrl('http://foo.com' + input); - url.scheme = ''; - url.host = ''; - url.type = UrlType.AbsolutePath; - return url; - } - if (isFileUrl(input)) - return parseFileUrl(input); - if (isAbsoluteUrl(input)) - return parseAbsoluteUrl(input); - const url = parseAbsoluteUrl('http://foo.com/' + input); - url.scheme = ''; - url.host = ''; - url.type = input - ? input.startsWith('?') - ? UrlType.Query - : input.startsWith('#') - ? UrlType.Hash - : UrlType.RelativePath - : UrlType.Empty; - return url; -} -function stripPathFilename(path) { - // If a path ends with a parent directory "..", then it's a relative path with excess parent - // paths. It's not a file, so we can't strip it. - if (path.endsWith('/..')) - return path; - const index = path.lastIndexOf('/'); - return path.slice(0, index + 1); -} -function mergePaths(url, base) { - normalizePath(base, base.type); - // If the path is just a "/", then it was an empty path to begin with (remember, we're a relative - // path). - if (url.path === '/') { - url.path = base.path; - } - else { - // Resolution happens relative to the base path's directory, not the file. - url.path = stripPathFilename(base.path) + url.path; - } -} -/** - * The path can have empty directories "//", unneeded parents "foo/..", or current directory - * "foo/.". We need to normalize to a standard representation. - */ -function normalizePath(url, type) { - const rel = type <= UrlType.RelativePath; - const pieces = url.path.split('/'); - // We need to preserve the first piece always, so that we output a leading slash. The item at - // pieces[0] is an empty string. - let pointer = 1; - // Positive is the number of real directories we've output, used for popping a parent directory. - // Eg, "foo/bar/.." will have a positive 2, and we can decrement to be left with just "foo". - let positive = 0; - // We need to keep a trailing slash if we encounter an empty directory (eg, splitting "foo/" will - // generate `["foo", ""]` pieces). And, if we pop a parent directory. But once we encounter a - // real directory, we won't need to append, unless the other conditions happen again. - let addTrailingSlash = false; - for (let i = 1; i < pieces.length; i++) { - const piece = pieces[i]; - // An empty directory, could be a trailing slash, or just a double "//" in the path. - if (!piece) { - addTrailingSlash = true; - continue; - } - // If we encounter a real directory, then we don't need to append anymore. - addTrailingSlash = false; - // A current directory, which we can always drop. - if (piece === '.') - continue; - // A parent directory, we need to see if there are any real directories we can pop. Else, we - // have an excess of parents, and we'll need to keep the "..". - if (piece === '..') { - if (positive) { - addTrailingSlash = true; - positive--; - pointer--; - } - else if (rel) { - // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute - // URL, protocol relative URL, or an absolute path, we don't need to keep excess. - pieces[pointer++] = piece; - } - continue; - } - // We've encountered a real directory. Move it to the next insertion pointer, which accounts for - // any popped or dropped directories. - pieces[pointer++] = piece; - positive++; - } - let path = ''; - for (let i = 1; i < pointer; i++) { - path += '/' + pieces[i]; - } - if (!path || (addTrailingSlash && !path.endsWith('/..'))) { - path += '/'; - } - url.path = path; -} -/** - * Attempts to resolve `input` URL/path relative to `base`. - */ -function resolve$1(input, base) { - if (!input && !base) - return ''; - const url = parseUrl(input); - let inputType = url.type; - if (base && inputType !== UrlType.Absolute) { - const baseUrl = parseUrl(base); - const baseType = baseUrl.type; - switch (inputType) { - case UrlType.Empty: - url.hash = baseUrl.hash; - // fall through - case UrlType.Hash: - url.query = baseUrl.query; - // fall through - case UrlType.Query: - case UrlType.RelativePath: - mergePaths(url, baseUrl); - // fall through - case UrlType.AbsolutePath: - // The host, user, and port are joined, you can't copy one without the others. - url.user = baseUrl.user; - url.host = baseUrl.host; - url.port = baseUrl.port; - // fall through - case UrlType.SchemeRelative: - // The input doesn't have a schema at least, so we need to copy at least that over. - url.scheme = baseUrl.scheme; - } - if (baseType > inputType) - inputType = baseType; - } - normalizePath(url, inputType); - const queryHash = url.query + url.hash; - switch (inputType) { - // This is impossible, because of the empty checks at the start of the function. - // case UrlType.Empty: - case UrlType.Hash: - case UrlType.Query: - return queryHash; - case UrlType.RelativePath: { - // The first char is always a "/", and we need it to be relative. - const path = url.path.slice(1); - if (!path) - return queryHash || '.'; - if (isRelative(base || input) && !isRelative(path)) { - // If base started with a leading ".", or there is no base and input started with a ".", - // then we need to ensure that the relative path starts with a ".". We don't know if - // relative starts with a "..", though, so check before prepending. - return './' + path + queryHash; - } - return path + queryHash; - } - case UrlType.AbsolutePath: - return url.path + queryHash; - default: - return url.scheme + '//' + url.user + url.host + url.port + url.path + queryHash; - } -} - -function resolve(input, base) { - // The base is always treated as a directory, if it's not empty. - // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327 - // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401 - if (base && !base.endsWith('/')) - base += '/'; - return resolve$1(input, base); -} - -/** - * Removes everything after the last "/", but leaves the slash. - */ -function stripFilename(path) { - if (!path) - return ''; - const index = path.lastIndexOf('/'); - return path.slice(0, index + 1); -} - -const COLUMN = 0; -const SOURCES_INDEX = 1; -const SOURCE_LINE = 2; -const SOURCE_COLUMN = 3; -const NAMES_INDEX = 4; -const REV_GENERATED_LINE = 1; -const REV_GENERATED_COLUMN = 2; - -function maybeSort(mappings, owned) { - const unsortedIndex = nextUnsortedSegmentLine(mappings, 0); - if (unsortedIndex === mappings.length) - return mappings; - // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If - // not, we do not want to modify the consumer's input array. - if (!owned) - mappings = mappings.slice(); - for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) { - mappings[i] = sortSegments(mappings[i], owned); - } - return mappings; -} -function nextUnsortedSegmentLine(mappings, start) { - for (let i = start; i < mappings.length; i++) { - if (!isSorted(mappings[i])) - return i; - } - return mappings.length; -} -function isSorted(line) { - for (let j = 1; j < line.length; j++) { - if (line[j][COLUMN] < line[j - 1][COLUMN]) { - return false; - } - } - return true; -} -function sortSegments(line, owned) { - if (!owned) - line = line.slice(); - return line.sort(sortComparator); -} -function sortComparator(a, b) { - return a[COLUMN] - b[COLUMN]; -} - -let found = false; -/** - * A binary search implementation that returns the index if a match is found. - * If no match is found, then the left-index (the index associated with the item that comes just - * before the desired index) is returned. To maintain proper sort order, a splice would happen at - * the next index: - * - * ```js - * const array = [1, 3]; - * const needle = 2; - * const index = binarySearch(array, needle, (item, needle) => item - needle); - * - * assert.equal(index, 0); - * array.splice(index + 1, 0, needle); - * assert.deepEqual(array, [1, 2, 3]); - * ``` - */ -function binarySearch(haystack, needle, low, high) { - while (low <= high) { - const mid = low + ((high - low) >> 1); - const cmp = haystack[mid][COLUMN] - needle; - if (cmp === 0) { - found = true; - return mid; - } - if (cmp < 0) { - low = mid + 1; - } - else { - high = mid - 1; - } - } - found = false; - return low - 1; -} -function upperBound(haystack, needle, index) { - for (let i = index + 1; i < haystack.length; index = i++) { - if (haystack[i][COLUMN] !== needle) - break; - } - return index; -} -function lowerBound(haystack, needle, index) { - for (let i = index - 1; i >= 0; index = i--) { - if (haystack[i][COLUMN] !== needle) - break; - } - return index; -} -function memoizedState() { - return { - lastKey: -1, - lastNeedle: -1, - lastIndex: -1, - }; -} -/** - * This overly complicated beast is just to record the last tested line/column and the resulting - * index, allowing us to skip a few tests if mappings are monotonically increasing. - */ -function memoizedBinarySearch(haystack, needle, state, key) { - const { lastKey, lastNeedle, lastIndex } = state; - let low = 0; - let high = haystack.length - 1; - if (key === lastKey) { - if (needle === lastNeedle) { - found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle; - return lastIndex; - } - if (needle >= lastNeedle) { - // lastIndex may be -1 if the previous needle was not found. - low = lastIndex === -1 ? 0 : lastIndex; - } - else { - high = lastIndex; - } - } - state.lastKey = key; - state.lastNeedle = needle; - return (state.lastIndex = binarySearch(haystack, needle, low, high)); -} - -// Rebuilds the original source files, with mappings that are ordered by source line/column instead -// of generated line/column. -function buildBySources(decoded, memos) { - const sources = memos.map(buildNullArray); - for (let i = 0; i < decoded.length; i++) { - const line = decoded[i]; - for (let j = 0; j < line.length; j++) { - const seg = line[j]; - if (seg.length === 1) - continue; - const sourceIndex = seg[SOURCES_INDEX]; - const sourceLine = seg[SOURCE_LINE]; - const sourceColumn = seg[SOURCE_COLUMN]; - const originalSource = sources[sourceIndex]; - const originalLine = (originalSource[sourceLine] || (originalSource[sourceLine] = [])); - const memo = memos[sourceIndex]; - // The binary search either found a match, or it found the left-index just before where the - // segment should go. Either way, we want to insert after that. And there may be multiple - // generated segments associated with an original location, so there may need to move several - // indexes before we find where we need to insert. - let index = upperBound(originalLine, sourceColumn, memoizedBinarySearch(originalLine, sourceColumn, memo, sourceLine)); - memo.lastIndex = ++index; - insert(originalLine, index, [sourceColumn, i, seg[COLUMN]]); - } - } - return sources; -} -function insert(array, index, value) { - for (let i = array.length; i > index; i--) { - array[i] = array[i - 1]; - } - array[index] = value; -} -// Null arrays allow us to use ordered index keys without actually allocating contiguous memory like -// a real array. We use a null-prototype object to avoid prototype pollution and deoptimizations. -// Numeric properties on objects are magically sorted in ascending order by the engine regardless of -// the insertion order. So, by setting any numeric keys, even out of order, we'll get ascending -// order when iterating with for-in. -function buildNullArray() { - return { __proto__: null }; -} - -const LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)'; -const COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)'; -const LEAST_UPPER_BOUND = -1; -const GREATEST_LOWER_BOUND = 1; -class TraceMap { - constructor(map, mapUrl) { - const isString = typeof map === 'string'; - if (!isString && map._decodedMemo) - return map; - const parsed = (isString ? JSON.parse(map) : map); - const { version, file, names, sourceRoot, sources, sourcesContent } = parsed; - this.version = version; - this.file = file; - this.names = names || []; - this.sourceRoot = sourceRoot; - this.sources = sources; - this.sourcesContent = sourcesContent; - this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || undefined; - const from = resolve(sourceRoot || '', stripFilename(mapUrl)); - this.resolvedSources = sources.map((s) => resolve(s || '', from)); - const { mappings } = parsed; - if (typeof mappings === 'string') { - this._encoded = mappings; - this._decoded = undefined; - } - else { - this._encoded = undefined; - this._decoded = maybeSort(mappings, isString); - } - this._decodedMemo = memoizedState(); - this._bySources = undefined; - this._bySourceMemos = undefined; - } -} -/** - * Typescript doesn't allow friend access to private fields, so this just casts the map into a type - * with public access modifiers. - */ -function cast(map) { - return map; -} -/** - * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field. - */ -function decodedMappings(map) { - var _a; - return ((_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded))); -} -/** - * A higher-level API to find the source/line/column associated with a generated line/column - * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in - * `source-map` library. - */ -function originalPositionFor(map, needle) { - let { line, column, bias } = needle; - line--; - if (line < 0) - throw new Error(LINE_GTR_ZERO); - if (column < 0) - throw new Error(COL_GTR_EQ_ZERO); - const decoded = decodedMappings(map); - // It's common for parent source maps to have pointers to lines that have no - // mapping (like a "//# sourceMappingURL=") at the end of the child file. - if (line >= decoded.length) - return OMapping(null, null, null, null); - const segments = decoded[line]; - const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND); - if (index === -1) - return OMapping(null, null, null, null); - const segment = segments[index]; - if (segment.length === 1) - return OMapping(null, null, null, null); - const { names, resolvedSources } = map; - return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null); -} -/** - * Finds the generated line/column position of the provided source/line/column source position. - */ -function generatedPositionFor(map, needle) { - const { source, line, column, bias } = needle; - return generatedPosition(map, source, line, column, bias || GREATEST_LOWER_BOUND, false); -} -function OMapping(source, line, column, name) { - return { source, line, column, name }; -} -function GMapping(line, column) { - return { line, column }; -} -function traceSegmentInternal(segments, memo, line, column, bias) { - let index = memoizedBinarySearch(segments, column, memo, line); - if (found) { - index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index); - } - else if (bias === LEAST_UPPER_BOUND) - index++; - if (index === -1 || index === segments.length) - return -1; - return index; -} -function sliceGeneratedPositions(segments, memo, line, column, bias) { - let min = traceSegmentInternal(segments, memo, line, column, GREATEST_LOWER_BOUND); - // We ignored the bias when tracing the segment so that we're guarnateed to find the first (in - // insertion order) segment that matched. Even if we did respect the bias when tracing, we would - // still need to call `lowerBound()` to find the first segment, which is slower than just looking - // for the GREATEST_LOWER_BOUND to begin with. The only difference that matters for us is when the - // binary search didn't match, in which case GREATEST_LOWER_BOUND just needs to increment to - // match LEAST_UPPER_BOUND. - if (!found && bias === LEAST_UPPER_BOUND) - min++; - if (min === -1 || min === segments.length) - return []; - // We may have found the segment that started at an earlier column. If this is the case, then we - // need to slice all generated segments that match _that_ column, because all such segments span - // to our desired column. - const matchedColumn = found ? column : segments[min][COLUMN]; - // The binary search is not guaranteed to find the lower bound when a match wasn't found. - if (!found) - min = lowerBound(segments, matchedColumn, min); - const max = upperBound(segments, matchedColumn, min); - const result = []; - for (; min <= max; min++) { - const segment = segments[min]; - result.push(GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN])); - } - return result; -} -function generatedPosition(map, source, line, column, bias, all) { - var _a; - line--; - if (line < 0) - throw new Error(LINE_GTR_ZERO); - if (column < 0) - throw new Error(COL_GTR_EQ_ZERO); - const { sources, resolvedSources } = map; - let sourceIndex = sources.indexOf(source); - if (sourceIndex === -1) - sourceIndex = resolvedSources.indexOf(source); - if (sourceIndex === -1) - return all ? [] : GMapping(null, null); - const generated = ((_a = cast(map))._bySources || (_a._bySources = buildBySources(decodedMappings(map), (cast(map)._bySourceMemos = sources.map(memoizedState))))); - const segments = generated[sourceIndex][line]; - if (segments == null) - return all ? [] : GMapping(null, null); - const memo = cast(map)._bySourceMemos[sourceIndex]; - if (all) - return sliceGeneratedPositions(segments, memo, line, column, bias); - const index = traceSegmentInternal(segments, memo, line, column, bias); - if (index === -1) - return GMapping(null, null); - const segment = segments[index]; - return GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]); -} - -const CHROME_IE_STACK_REGEXP = /^\s*at .*(?:\S:\d+|\(native\))/m; -const SAFARI_NATIVE_CODE_REGEXP = /^(?:eval@)?(?:\[native code\])?$/; -const stackIgnorePatterns = [ - "node:internal", - /\/packages\/\w+\/dist\//, - /\/@vitest\/\w+\/dist\//, - "/vitest/dist/", - "/vitest/src/", - "/vite-node/dist/", - "/vite-node/src/", - "/node_modules/chai/", - "/node_modules/tinypool/", - "/node_modules/tinyspy/", - // browser related deps - "/deps/chunk-", - "/deps/@vitest", - "/deps/loupe", - "/deps/chai", - /node:\w+/, - /__vitest_test__/, - /__vitest_browser__/, - /\/deps\/vitest_/ -]; -function extractLocation(urlLike) { - if (!urlLike.includes(":")) { - return [urlLike]; - } - const regExp = /(.+?)(?::(\d+))?(?::(\d+))?$/; - const parts = regExp.exec(urlLike.replace(/^\(|\)$/g, "")); - if (!parts) { - return [urlLike]; - } - let url = parts[1]; - if (url.startsWith("async ")) { - url = url.slice(6); - } - if (url.startsWith("http:") || url.startsWith("https:")) { - const urlObj = new URL(url); - url = urlObj.pathname; - } - if (url.startsWith("/@fs/")) { - const isWindows = /^\/@fs\/[a-zA-Z]:\//.test(url); - url = url.slice(isWindows ? 5 : 4); - } - return [url, parts[2] || void 0, parts[3] || void 0]; -} -function parseSingleFFOrSafariStack(raw) { - let line = raw.trim(); - if (SAFARI_NATIVE_CODE_REGEXP.test(line)) { - return null; - } - if (line.includes(" > eval")) { - line = line.replace( - / line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, - ":$1" - ); - } - if (!line.includes("@") && !line.includes(":")) { - return null; - } - const functionNameRegex = /((.*".+"[^@]*)?[^@]*)(@)/; - const matches = line.match(functionNameRegex); - const functionName = matches && matches[1] ? matches[1] : void 0; - const [url, lineNumber, columnNumber] = extractLocation( - line.replace(functionNameRegex, "") - ); - if (!url || !lineNumber || !columnNumber) { - return null; - } - return { - file: url, - method: functionName || "", - line: Number.parseInt(lineNumber), - column: Number.parseInt(columnNumber) - }; -} -function parseSingleStack(raw) { - const line = raw.trim(); - if (!CHROME_IE_STACK_REGEXP.test(line)) { - return parseSingleFFOrSafariStack(line); - } - return parseSingleV8Stack(line); -} -function parseSingleV8Stack(raw) { - let line = raw.trim(); - if (!CHROME_IE_STACK_REGEXP.test(line)) { - return null; - } - if (line.includes("(eval ")) { - line = line.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, ""); - } - let sanitizedLine = line.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, ""); - const location = sanitizedLine.match(/ (\(.+\)$)/); - sanitizedLine = location ? sanitizedLine.replace(location[0], "") : sanitizedLine; - const [url, lineNumber, columnNumber] = extractLocation( - location ? location[1] : sanitizedLine - ); - let method = location && sanitizedLine || ""; - let file = url && ["eval", ""].includes(url) ? void 0 : url; - if (!file || !lineNumber || !columnNumber) { - return null; - } - if (method.startsWith("async ")) { - method = method.slice(6); - } - if (file.startsWith("file://")) { - file = file.slice(7); - } - file = resolve$2(file); - if (method) { - method = method.replace(/__vite_ssr_import_\d+__\./g, ""); - } - return { - method, - file, - line: Number.parseInt(lineNumber), - column: Number.parseInt(columnNumber) - }; -} -function parseStacktrace(stack, options = {}) { - const { ignoreStackEntries = stackIgnorePatterns } = options; - let stacks = !CHROME_IE_STACK_REGEXP.test(stack) ? parseFFOrSafariStackTrace(stack) : parseV8Stacktrace(stack); - if (ignoreStackEntries.length) { - stacks = stacks.filter( - (stack2) => !ignoreStackEntries.some((p) => stack2.file.match(p)) - ); - } - return stacks.map((stack2) => { - var _a; - if (options.getFileName) { - stack2.file = options.getFileName(stack2.file); - } - const map = (_a = options.getSourceMap) == null ? void 0 : _a.call(options, stack2.file); - if (!map || typeof map !== "object" || !map.version) { - return stack2; - } - const traceMap = new TraceMap(map); - const { line, column } = originalPositionFor(traceMap, stack2); - if (line != null && column != null) { - return { ...stack2, line, column }; - } - return stack2; - }); -} -function parseFFOrSafariStackTrace(stack) { - return stack.split("\n").map((line) => parseSingleFFOrSafariStack(line)).filter(notNullish); -} -function parseV8Stacktrace(stack) { - return stack.split("\n").map((line) => parseSingleV8Stack(line)).filter(notNullish); -} -function parseErrorStacktrace(e, options = {}) { - if (!e || isPrimitive(e)) { - return []; - } - if (e.stacks) { - return e.stacks; - } - const stackStr = e.stack || e.stackStr || ""; - let stackFrames = parseStacktrace(stackStr, options); - if (options.frameFilter) { - stackFrames = stackFrames.filter( - (f) => options.frameFilter(e, f) !== false - ); - } - e.stacks = stackFrames; - return stackFrames; -} - -export { TraceMap, generatedPositionFor, originalPositionFor, parseErrorStacktrace, parseSingleFFOrSafariStack, parseSingleStack, parseSingleV8Stack, parseStacktrace }; diff --git a/node_modules/@vitest/utils/dist/types-Bxe-2Udy.d.ts b/node_modules/@vitest/utils/dist/types-Bxe-2Udy.d.ts deleted file mode 100644 index 44ffc108..00000000 --- a/node_modules/@vitest/utils/dist/types-Bxe-2Udy.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { CompareKeys } from '@vitest/pretty-format'; - -/** - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -type DiffOptionsColor = (arg: string) => string; -interface DiffOptions { - aAnnotation?: string; - aColor?: DiffOptionsColor; - aIndicator?: string; - bAnnotation?: string; - bColor?: DiffOptionsColor; - bIndicator?: string; - changeColor?: DiffOptionsColor; - changeLineTrailingSpaceColor?: DiffOptionsColor; - commonColor?: DiffOptionsColor; - commonIndicator?: string; - commonLineTrailingSpaceColor?: DiffOptionsColor; - contextLines?: number; - emptyFirstOrLastLinePlaceholder?: string; - expand?: boolean; - includeChangeCounts?: boolean; - omitAnnotationLines?: boolean; - patchColor?: DiffOptionsColor; - compareKeys?: CompareKeys; - truncateThreshold?: number; - truncateAnnotation?: string; - truncateAnnotationColor?: DiffOptionsColor; -} - -export type { DiffOptions as D, DiffOptionsColor as a }; diff --git a/node_modules/@vitest/utils/dist/types.d.ts b/node_modules/@vitest/utils/dist/types.d.ts deleted file mode 100644 index c169cd2d..00000000 --- a/node_modules/@vitest/utils/dist/types.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -type Awaitable = T | PromiseLike; -type Nullable = T | null | undefined; -type Arrayable = T | Array; -type ArgumentsType = T extends (...args: infer U) => any ? U : never; -type MergeInsertions = T extends object ? { - [K in keyof T]: MergeInsertions; -} : T; -type DeepMerge = MergeInsertions<{ - [K in keyof F | keyof S]: K extends keyof S & keyof F ? DeepMerge : K extends keyof S ? S[K] : K extends keyof F ? F[K] : never; -}>; -type MutableArray = { - -readonly [k in keyof T]: T[k]; -}; -interface Constructable { - new (...args: any[]): any; -} -interface ParsedStack { - method: string; - file: string; - line: number; - column: number; -} -interface SerializedError { - message: string; - stack?: string; - name?: string; - stacks?: ParsedStack[]; - cause?: SerializedError; - [key: string]: unknown; -} -interface TestError extends SerializedError { - cause?: TestError; - diff?: string; - actual?: string; - expected?: string; -} -/** - * @deprecated Use `TestError` instead - */ -interface ErrorWithDiff { - message: string; - name?: string; - cause?: unknown; - nameStr?: string; - stack?: string; - stackStr?: string; - stacks?: ParsedStack[]; - showDiff?: boolean; - actual?: any; - expected?: any; - operator?: string; - type?: string; - frame?: string; - diff?: string; - codeFrame?: string; -} - -export type { ArgumentsType, Arrayable, Awaitable, Constructable, DeepMerge, ErrorWithDiff, MergeInsertions, MutableArray, Nullable, ParsedStack, SerializedError, TestError }; diff --git a/node_modules/@vitest/utils/dist/types.js b/node_modules/@vitest/utils/dist/types.js deleted file mode 100644 index 8b137891..00000000 --- a/node_modules/@vitest/utils/dist/types.js +++ /dev/null @@ -1 +0,0 @@ - diff --git a/node_modules/acorn/dist/acorn.d.mts b/node_modules/acorn/dist/acorn.d.mts deleted file mode 100644 index cd204b1c..00000000 --- a/node_modules/acorn/dist/acorn.d.mts +++ /dev/null @@ -1,856 +0,0 @@ -export interface Node { - start: number - end: number - type: string - range?: [number, number] - loc?: SourceLocation | null -} - -export interface SourceLocation { - source?: string | null - start: Position - end: Position -} - -export interface Position { - /** 1-based */ - line: number - /** 0-based */ - column: number -} - -export interface Identifier extends Node { - type: "Identifier" - name: string -} - -export interface Literal extends Node { - type: "Literal" - value?: string | boolean | null | number | RegExp | bigint - raw?: string - regex?: { - pattern: string - flags: string - } - bigint?: string -} - -export interface Program extends Node { - type: "Program" - body: Array - sourceType: "script" | "module" -} - -export interface Function extends Node { - id?: Identifier | null - params: Array - body: BlockStatement | Expression - generator: boolean - expression: boolean - async: boolean -} - -export interface ExpressionStatement extends Node { - type: "ExpressionStatement" - expression: Expression | Literal - directive?: string -} - -export interface BlockStatement extends Node { - type: "BlockStatement" - body: Array -} - -export interface EmptyStatement extends Node { - type: "EmptyStatement" -} - -export interface DebuggerStatement extends Node { - type: "DebuggerStatement" -} - -export interface WithStatement extends Node { - type: "WithStatement" - object: Expression - body: Statement -} - -export interface ReturnStatement extends Node { - type: "ReturnStatement" - argument?: Expression | null -} - -export interface LabeledStatement extends Node { - type: "LabeledStatement" - label: Identifier - body: Statement -} - -export interface BreakStatement extends Node { - type: "BreakStatement" - label?: Identifier | null -} - -export interface ContinueStatement extends Node { - type: "ContinueStatement" - label?: Identifier | null -} - -export interface IfStatement extends Node { - type: "IfStatement" - test: Expression - consequent: Statement - alternate?: Statement | null -} - -export interface SwitchStatement extends Node { - type: "SwitchStatement" - discriminant: Expression - cases: Array -} - -export interface SwitchCase extends Node { - type: "SwitchCase" - test?: Expression | null - consequent: Array -} - -export interface ThrowStatement extends Node { - type: "ThrowStatement" - argument: Expression -} - -export interface TryStatement extends Node { - type: "TryStatement" - block: BlockStatement - handler?: CatchClause | null - finalizer?: BlockStatement | null -} - -export interface CatchClause extends Node { - type: "CatchClause" - param?: Pattern | null - body: BlockStatement -} - -export interface WhileStatement extends Node { - type: "WhileStatement" - test: Expression - body: Statement -} - -export interface DoWhileStatement extends Node { - type: "DoWhileStatement" - body: Statement - test: Expression -} - -export interface ForStatement extends Node { - type: "ForStatement" - init?: VariableDeclaration | Expression | null - test?: Expression | null - update?: Expression | null - body: Statement -} - -export interface ForInStatement extends Node { - type: "ForInStatement" - left: VariableDeclaration | Pattern - right: Expression - body: Statement -} - -export interface FunctionDeclaration extends Function { - type: "FunctionDeclaration" - id: Identifier - body: BlockStatement -} - -export interface VariableDeclaration extends Node { - type: "VariableDeclaration" - declarations: Array - kind: "var" | "let" | "const" -} - -export interface VariableDeclarator extends Node { - type: "VariableDeclarator" - id: Pattern - init?: Expression | null -} - -export interface ThisExpression extends Node { - type: "ThisExpression" -} - -export interface ArrayExpression extends Node { - type: "ArrayExpression" - elements: Array -} - -export interface ObjectExpression extends Node { - type: "ObjectExpression" - properties: Array -} - -export interface Property extends Node { - type: "Property" - key: Expression - value: Expression - kind: "init" | "get" | "set" - method: boolean - shorthand: boolean - computed: boolean -} - -export interface FunctionExpression extends Function { - type: "FunctionExpression" - body: BlockStatement -} - -export interface UnaryExpression extends Node { - type: "UnaryExpression" - operator: UnaryOperator - prefix: boolean - argument: Expression -} - -export type UnaryOperator = "-" | "+" | "!" | "~" | "typeof" | "void" | "delete" - -export interface UpdateExpression extends Node { - type: "UpdateExpression" - operator: UpdateOperator - argument: Expression - prefix: boolean -} - -export type UpdateOperator = "++" | "--" - -export interface BinaryExpression extends Node { - type: "BinaryExpression" - operator: BinaryOperator - left: Expression | PrivateIdentifier - right: Expression -} - -export type BinaryOperator = "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "|" | "^" | "&" | "in" | "instanceof" | "**" - -export interface AssignmentExpression extends Node { - type: "AssignmentExpression" - operator: AssignmentOperator - left: Pattern - right: Expression -} - -export type AssignmentOperator = "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "**=" | "||=" | "&&=" | "??=" - -export interface LogicalExpression extends Node { - type: "LogicalExpression" - operator: LogicalOperator - left: Expression - right: Expression -} - -export type LogicalOperator = "||" | "&&" | "??" - -export interface MemberExpression extends Node { - type: "MemberExpression" - object: Expression | Super - property: Expression | PrivateIdentifier - computed: boolean - optional: boolean -} - -export interface ConditionalExpression extends Node { - type: "ConditionalExpression" - test: Expression - alternate: Expression - consequent: Expression -} - -export interface CallExpression extends Node { - type: "CallExpression" - callee: Expression | Super - arguments: Array - optional: boolean -} - -export interface NewExpression extends Node { - type: "NewExpression" - callee: Expression - arguments: Array -} - -export interface SequenceExpression extends Node { - type: "SequenceExpression" - expressions: Array -} - -export interface ForOfStatement extends Node { - type: "ForOfStatement" - left: VariableDeclaration | Pattern - right: Expression - body: Statement - await: boolean -} - -export interface Super extends Node { - type: "Super" -} - -export interface SpreadElement extends Node { - type: "SpreadElement" - argument: Expression -} - -export interface ArrowFunctionExpression extends Function { - type: "ArrowFunctionExpression" -} - -export interface YieldExpression extends Node { - type: "YieldExpression" - argument?: Expression | null - delegate: boolean -} - -export interface TemplateLiteral extends Node { - type: "TemplateLiteral" - quasis: Array - expressions: Array -} - -export interface TaggedTemplateExpression extends Node { - type: "TaggedTemplateExpression" - tag: Expression - quasi: TemplateLiteral -} - -export interface TemplateElement extends Node { - type: "TemplateElement" - tail: boolean - value: { - cooked?: string | null - raw: string - } -} - -export interface AssignmentProperty extends Node { - type: "Property" - key: Expression - value: Pattern - kind: "init" - method: false - shorthand: boolean - computed: boolean -} - -export interface ObjectPattern extends Node { - type: "ObjectPattern" - properties: Array -} - -export interface ArrayPattern extends Node { - type: "ArrayPattern" - elements: Array -} - -export interface RestElement extends Node { - type: "RestElement" - argument: Pattern -} - -export interface AssignmentPattern extends Node { - type: "AssignmentPattern" - left: Pattern - right: Expression -} - -export interface Class extends Node { - id?: Identifier | null - superClass?: Expression | null - body: ClassBody -} - -export interface ClassBody extends Node { - type: "ClassBody" - body: Array -} - -export interface MethodDefinition extends Node { - type: "MethodDefinition" - key: Expression | PrivateIdentifier - value: FunctionExpression - kind: "constructor" | "method" | "get" | "set" - computed: boolean - static: boolean -} - -export interface ClassDeclaration extends Class { - type: "ClassDeclaration" - id: Identifier -} - -export interface ClassExpression extends Class { - type: "ClassExpression" -} - -export interface MetaProperty extends Node { - type: "MetaProperty" - meta: Identifier - property: Identifier -} - -export interface ImportDeclaration extends Node { - type: "ImportDeclaration" - specifiers: Array - source: Literal -} - -export interface ImportSpecifier extends Node { - type: "ImportSpecifier" - imported: Identifier | Literal - local: Identifier -} - -export interface ImportDefaultSpecifier extends Node { - type: "ImportDefaultSpecifier" - local: Identifier -} - -export interface ImportNamespaceSpecifier extends Node { - type: "ImportNamespaceSpecifier" - local: Identifier -} - -export interface ExportNamedDeclaration extends Node { - type: "ExportNamedDeclaration" - declaration?: Declaration | null - specifiers: Array - source?: Literal | null -} - -export interface ExportSpecifier extends Node { - type: "ExportSpecifier" - exported: Identifier | Literal - local: Identifier | Literal -} - -export interface AnonymousFunctionDeclaration extends Function { - type: "FunctionDeclaration" - id: null - body: BlockStatement -} - -export interface AnonymousClassDeclaration extends Class { - type: "ClassDeclaration" - id: null -} - -export interface ExportDefaultDeclaration extends Node { - type: "ExportDefaultDeclaration" - declaration: AnonymousFunctionDeclaration | FunctionDeclaration | AnonymousClassDeclaration | ClassDeclaration | Expression -} - -export interface ExportAllDeclaration extends Node { - type: "ExportAllDeclaration" - source: Literal - exported?: Identifier | Literal | null -} - -export interface AwaitExpression extends Node { - type: "AwaitExpression" - argument: Expression -} - -export interface ChainExpression extends Node { - type: "ChainExpression" - expression: MemberExpression | CallExpression -} - -export interface ImportExpression extends Node { - type: "ImportExpression" - source: Expression -} - -export interface ParenthesizedExpression extends Node { - type: "ParenthesizedExpression" - expression: Expression -} - -export interface PropertyDefinition extends Node { - type: "PropertyDefinition" - key: Expression | PrivateIdentifier - value?: Expression | null - computed: boolean - static: boolean -} - -export interface PrivateIdentifier extends Node { - type: "PrivateIdentifier" - name: string -} - -export interface StaticBlock extends Node { - type: "StaticBlock" - body: Array -} - -export type Statement = -| ExpressionStatement -| BlockStatement -| EmptyStatement -| DebuggerStatement -| WithStatement -| ReturnStatement -| LabeledStatement -| BreakStatement -| ContinueStatement -| IfStatement -| SwitchStatement -| ThrowStatement -| TryStatement -| WhileStatement -| DoWhileStatement -| ForStatement -| ForInStatement -| ForOfStatement -| Declaration - -export type Declaration = -| FunctionDeclaration -| VariableDeclaration -| ClassDeclaration - -export type Expression = -| Identifier -| Literal -| ThisExpression -| ArrayExpression -| ObjectExpression -| FunctionExpression -| UnaryExpression -| UpdateExpression -| BinaryExpression -| AssignmentExpression -| LogicalExpression -| MemberExpression -| ConditionalExpression -| CallExpression -| NewExpression -| SequenceExpression -| ArrowFunctionExpression -| YieldExpression -| TemplateLiteral -| TaggedTemplateExpression -| ClassExpression -| MetaProperty -| AwaitExpression -| ChainExpression -| ImportExpression -| ParenthesizedExpression - -export type Pattern = -| Identifier -| MemberExpression -| ObjectPattern -| ArrayPattern -| RestElement -| AssignmentPattern - -export type ModuleDeclaration = -| ImportDeclaration -| ExportNamedDeclaration -| ExportDefaultDeclaration -| ExportAllDeclaration - -export type AnyNode = Statement | Expression | Declaration | ModuleDeclaration | Literal | Program | SwitchCase | CatchClause | Property | Super | SpreadElement | TemplateElement | AssignmentProperty | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | ClassBody | MethodDefinition | MetaProperty | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier | AnonymousFunctionDeclaration | AnonymousClassDeclaration | PropertyDefinition | PrivateIdentifier | StaticBlock | VariableDeclarator - -export function parse(input: string, options: Options): Program - -export function parseExpressionAt(input: string, pos: number, options: Options): Expression - -export function tokenizer(input: string, options: Options): { - getToken(): Token - [Symbol.iterator](): Iterator -} - -export type ecmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | "latest" - -export interface Options { - /** - * `ecmaVersion` indicates the ECMAScript version to parse. Can be a - * number, either in year (`2022`) or plain version number (`6`) form, - * or `"latest"` (the latest the library supports). This influences - * support for strict mode, the set of reserved words, and support for - * new syntax features. - */ - ecmaVersion: ecmaVersion - - /** - * `sourceType` indicates the mode the code should be parsed in. - * Can be either `"script"` or `"module"`. This influences global - * strict mode and parsing of `import` and `export` declarations. - */ - sourceType?: "script" | "module" - - /** - * a callback that will be called when a semicolon is automatically inserted. - * @param lastTokEnd the position of the comma as an offset - * @param lastTokEndLoc location if {@link locations} is enabled - */ - onInsertedSemicolon?: (lastTokEnd: number, lastTokEndLoc?: Position) => void - - /** - * similar to `onInsertedSemicolon`, but for trailing commas - * @param lastTokEnd the position of the comma as an offset - * @param lastTokEndLoc location if `locations` is enabled - */ - onTrailingComma?: (lastTokEnd: number, lastTokEndLoc?: Position) => void - - /** - * By default, reserved words are only enforced if ecmaVersion >= 5. - * Set `allowReserved` to a boolean value to explicitly turn this on - * an off. When this option has the value "never", reserved words - * and keywords can also not be used as property names. - */ - allowReserved?: boolean | "never" - - /** - * When enabled, a return at the top level is not considered an error. - */ - allowReturnOutsideFunction?: boolean - - /** - * When enabled, import/export statements are not constrained to - * appearing at the top of the program, and an import.meta expression - * in a script isn't considered an error. - */ - allowImportExportEverywhere?: boolean - - /** - * By default, `await` identifiers are allowed to appear at the top-level scope only if {@link ecmaVersion} >= 2022. - * When enabled, await identifiers are allowed to appear at the top-level scope, - * but they are still not allowed in non-async functions. - */ - allowAwaitOutsideFunction?: boolean - - /** - * When enabled, super identifiers are not constrained to - * appearing in methods and do not raise an error when they appear elsewhere. - */ - allowSuperOutsideMethod?: boolean - - /** - * When enabled, hashbang directive in the beginning of file is - * allowed and treated as a line comment. Enabled by default when - * {@link ecmaVersion} >= 2023. - */ - allowHashBang?: boolean - - /** - * By default, the parser will verify that private properties are - * only used in places where they are valid and have been declared. - * Set this to false to turn such checks off. - */ - checkPrivateFields?: boolean - - /** - * When `locations` is on, `loc` properties holding objects with - * `start` and `end` properties as {@link Position} objects will be attached to the - * nodes. - */ - locations?: boolean - - /** - * a callback that will cause Acorn to call that export function with object in the same - * format as tokens returned from `tokenizer().getToken()`. Note - * that you are not allowed to call the parser from the - * callback—that will corrupt its internal state. - */ - onToken?: ((token: Token) => void) | Token[] - - - /** - * This takes a export function or an array. - * - * When a export function is passed, Acorn will call that export function with `(block, text, start, - * end)` parameters whenever a comment is skipped. `block` is a - * boolean indicating whether this is a block (`/* *\/`) comment, - * `text` is the content of the comment, and `start` and `end` are - * character offsets that denote the start and end of the comment. - * When the {@link locations} option is on, two more parameters are - * passed, the full locations of {@link Position} export type of the start and - * end of the comments. - * - * When a array is passed, each found comment of {@link Comment} export type is pushed to the array. - * - * Note that you are not allowed to call the - * parser from the callback—that will corrupt its internal state. - */ - onComment?: (( - isBlock: boolean, text: string, start: number, end: number, startLoc?: Position, - endLoc?: Position - ) => void) | Comment[] - - /** - * Nodes have their start and end characters offsets recorded in - * `start` and `end` properties (directly on the node, rather than - * the `loc` object, which holds line/column data. To also add a - * [semi-standardized][range] `range` property holding a `[start, - * end]` array with the same numbers, set the `ranges` option to - * `true`. - */ - ranges?: boolean - - /** - * It is possible to parse multiple files into a single AST by - * passing the tree produced by parsing the first file as - * `program` option in subsequent parses. This will add the - * toplevel forms of the parsed file to the `Program` (top) node - * of an existing parse tree. - */ - program?: Node - - /** - * When {@link locations} is on, you can pass this to record the source - * file in every node's `loc` object. - */ - sourceFile?: string - - /** - * This value, if given, is stored in every node, whether {@link locations} is on or off. - */ - directSourceFile?: string - - /** - * When enabled, parenthesized expressions are represented by - * (non-standard) ParenthesizedExpression nodes - */ - preserveParens?: boolean -} - -export class Parser { - options: Options - input: string - - protected constructor(options: Options, input: string, startPos?: number) - parse(): Program - - static parse(input: string, options: Options): Program - static parseExpressionAt(input: string, pos: number, options: Options): Expression - static tokenizer(input: string, options: Options): { - getToken(): Token - [Symbol.iterator](): Iterator - } - static extend(...plugins: ((BaseParser: typeof Parser) => typeof Parser)[]): typeof Parser -} - -export const defaultOptions: Options - -export function getLineInfo(input: string, offset: number): Position - -export class TokenType { - label: string - keyword: string | undefined -} - -export const tokTypes: { - num: TokenType - regexp: TokenType - string: TokenType - name: TokenType - privateId: TokenType - eof: TokenType - - bracketL: TokenType - bracketR: TokenType - braceL: TokenType - braceR: TokenType - parenL: TokenType - parenR: TokenType - comma: TokenType - semi: TokenType - colon: TokenType - dot: TokenType - question: TokenType - questionDot: TokenType - arrow: TokenType - template: TokenType - invalidTemplate: TokenType - ellipsis: TokenType - backQuote: TokenType - dollarBraceL: TokenType - - eq: TokenType - assign: TokenType - incDec: TokenType - prefix: TokenType - logicalOR: TokenType - logicalAND: TokenType - bitwiseOR: TokenType - bitwiseXOR: TokenType - bitwiseAND: TokenType - equality: TokenType - relational: TokenType - bitShift: TokenType - plusMin: TokenType - modulo: TokenType - star: TokenType - slash: TokenType - starstar: TokenType - coalesce: TokenType - - _break: TokenType - _case: TokenType - _catch: TokenType - _continue: TokenType - _debugger: TokenType - _default: TokenType - _do: TokenType - _else: TokenType - _finally: TokenType - _for: TokenType - _function: TokenType - _if: TokenType - _return: TokenType - _switch: TokenType - _throw: TokenType - _try: TokenType - _var: TokenType - _const: TokenType - _while: TokenType - _with: TokenType - _new: TokenType - _this: TokenType - _super: TokenType - _class: TokenType - _extends: TokenType - _export: TokenType - _import: TokenType - _null: TokenType - _true: TokenType - _false: TokenType - _in: TokenType - _instanceof: TokenType - _typeof: TokenType - _void: TokenType - _delete: TokenType -} - -export interface Comment { - type: "Line" | "Block" - value: string - start: number - end: number - loc?: SourceLocation - range?: [number, number] -} - -export class Token { - type: TokenType - start: number - end: number - loc?: SourceLocation - range?: [number, number] -} - -export const version: string diff --git a/node_modules/acorn/dist/acorn.d.ts b/node_modules/acorn/dist/acorn.d.ts deleted file mode 100644 index cd204b1c..00000000 --- a/node_modules/acorn/dist/acorn.d.ts +++ /dev/null @@ -1,856 +0,0 @@ -export interface Node { - start: number - end: number - type: string - range?: [number, number] - loc?: SourceLocation | null -} - -export interface SourceLocation { - source?: string | null - start: Position - end: Position -} - -export interface Position { - /** 1-based */ - line: number - /** 0-based */ - column: number -} - -export interface Identifier extends Node { - type: "Identifier" - name: string -} - -export interface Literal extends Node { - type: "Literal" - value?: string | boolean | null | number | RegExp | bigint - raw?: string - regex?: { - pattern: string - flags: string - } - bigint?: string -} - -export interface Program extends Node { - type: "Program" - body: Array - sourceType: "script" | "module" -} - -export interface Function extends Node { - id?: Identifier | null - params: Array - body: BlockStatement | Expression - generator: boolean - expression: boolean - async: boolean -} - -export interface ExpressionStatement extends Node { - type: "ExpressionStatement" - expression: Expression | Literal - directive?: string -} - -export interface BlockStatement extends Node { - type: "BlockStatement" - body: Array -} - -export interface EmptyStatement extends Node { - type: "EmptyStatement" -} - -export interface DebuggerStatement extends Node { - type: "DebuggerStatement" -} - -export interface WithStatement extends Node { - type: "WithStatement" - object: Expression - body: Statement -} - -export interface ReturnStatement extends Node { - type: "ReturnStatement" - argument?: Expression | null -} - -export interface LabeledStatement extends Node { - type: "LabeledStatement" - label: Identifier - body: Statement -} - -export interface BreakStatement extends Node { - type: "BreakStatement" - label?: Identifier | null -} - -export interface ContinueStatement extends Node { - type: "ContinueStatement" - label?: Identifier | null -} - -export interface IfStatement extends Node { - type: "IfStatement" - test: Expression - consequent: Statement - alternate?: Statement | null -} - -export interface SwitchStatement extends Node { - type: "SwitchStatement" - discriminant: Expression - cases: Array -} - -export interface SwitchCase extends Node { - type: "SwitchCase" - test?: Expression | null - consequent: Array -} - -export interface ThrowStatement extends Node { - type: "ThrowStatement" - argument: Expression -} - -export interface TryStatement extends Node { - type: "TryStatement" - block: BlockStatement - handler?: CatchClause | null - finalizer?: BlockStatement | null -} - -export interface CatchClause extends Node { - type: "CatchClause" - param?: Pattern | null - body: BlockStatement -} - -export interface WhileStatement extends Node { - type: "WhileStatement" - test: Expression - body: Statement -} - -export interface DoWhileStatement extends Node { - type: "DoWhileStatement" - body: Statement - test: Expression -} - -export interface ForStatement extends Node { - type: "ForStatement" - init?: VariableDeclaration | Expression | null - test?: Expression | null - update?: Expression | null - body: Statement -} - -export interface ForInStatement extends Node { - type: "ForInStatement" - left: VariableDeclaration | Pattern - right: Expression - body: Statement -} - -export interface FunctionDeclaration extends Function { - type: "FunctionDeclaration" - id: Identifier - body: BlockStatement -} - -export interface VariableDeclaration extends Node { - type: "VariableDeclaration" - declarations: Array - kind: "var" | "let" | "const" -} - -export interface VariableDeclarator extends Node { - type: "VariableDeclarator" - id: Pattern - init?: Expression | null -} - -export interface ThisExpression extends Node { - type: "ThisExpression" -} - -export interface ArrayExpression extends Node { - type: "ArrayExpression" - elements: Array -} - -export interface ObjectExpression extends Node { - type: "ObjectExpression" - properties: Array -} - -export interface Property extends Node { - type: "Property" - key: Expression - value: Expression - kind: "init" | "get" | "set" - method: boolean - shorthand: boolean - computed: boolean -} - -export interface FunctionExpression extends Function { - type: "FunctionExpression" - body: BlockStatement -} - -export interface UnaryExpression extends Node { - type: "UnaryExpression" - operator: UnaryOperator - prefix: boolean - argument: Expression -} - -export type UnaryOperator = "-" | "+" | "!" | "~" | "typeof" | "void" | "delete" - -export interface UpdateExpression extends Node { - type: "UpdateExpression" - operator: UpdateOperator - argument: Expression - prefix: boolean -} - -export type UpdateOperator = "++" | "--" - -export interface BinaryExpression extends Node { - type: "BinaryExpression" - operator: BinaryOperator - left: Expression | PrivateIdentifier - right: Expression -} - -export type BinaryOperator = "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "|" | "^" | "&" | "in" | "instanceof" | "**" - -export interface AssignmentExpression extends Node { - type: "AssignmentExpression" - operator: AssignmentOperator - left: Pattern - right: Expression -} - -export type AssignmentOperator = "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=" | "**=" | "||=" | "&&=" | "??=" - -export interface LogicalExpression extends Node { - type: "LogicalExpression" - operator: LogicalOperator - left: Expression - right: Expression -} - -export type LogicalOperator = "||" | "&&" | "??" - -export interface MemberExpression extends Node { - type: "MemberExpression" - object: Expression | Super - property: Expression | PrivateIdentifier - computed: boolean - optional: boolean -} - -export interface ConditionalExpression extends Node { - type: "ConditionalExpression" - test: Expression - alternate: Expression - consequent: Expression -} - -export interface CallExpression extends Node { - type: "CallExpression" - callee: Expression | Super - arguments: Array - optional: boolean -} - -export interface NewExpression extends Node { - type: "NewExpression" - callee: Expression - arguments: Array -} - -export interface SequenceExpression extends Node { - type: "SequenceExpression" - expressions: Array -} - -export interface ForOfStatement extends Node { - type: "ForOfStatement" - left: VariableDeclaration | Pattern - right: Expression - body: Statement - await: boolean -} - -export interface Super extends Node { - type: "Super" -} - -export interface SpreadElement extends Node { - type: "SpreadElement" - argument: Expression -} - -export interface ArrowFunctionExpression extends Function { - type: "ArrowFunctionExpression" -} - -export interface YieldExpression extends Node { - type: "YieldExpression" - argument?: Expression | null - delegate: boolean -} - -export interface TemplateLiteral extends Node { - type: "TemplateLiteral" - quasis: Array - expressions: Array -} - -export interface TaggedTemplateExpression extends Node { - type: "TaggedTemplateExpression" - tag: Expression - quasi: TemplateLiteral -} - -export interface TemplateElement extends Node { - type: "TemplateElement" - tail: boolean - value: { - cooked?: string | null - raw: string - } -} - -export interface AssignmentProperty extends Node { - type: "Property" - key: Expression - value: Pattern - kind: "init" - method: false - shorthand: boolean - computed: boolean -} - -export interface ObjectPattern extends Node { - type: "ObjectPattern" - properties: Array -} - -export interface ArrayPattern extends Node { - type: "ArrayPattern" - elements: Array -} - -export interface RestElement extends Node { - type: "RestElement" - argument: Pattern -} - -export interface AssignmentPattern extends Node { - type: "AssignmentPattern" - left: Pattern - right: Expression -} - -export interface Class extends Node { - id?: Identifier | null - superClass?: Expression | null - body: ClassBody -} - -export interface ClassBody extends Node { - type: "ClassBody" - body: Array -} - -export interface MethodDefinition extends Node { - type: "MethodDefinition" - key: Expression | PrivateIdentifier - value: FunctionExpression - kind: "constructor" | "method" | "get" | "set" - computed: boolean - static: boolean -} - -export interface ClassDeclaration extends Class { - type: "ClassDeclaration" - id: Identifier -} - -export interface ClassExpression extends Class { - type: "ClassExpression" -} - -export interface MetaProperty extends Node { - type: "MetaProperty" - meta: Identifier - property: Identifier -} - -export interface ImportDeclaration extends Node { - type: "ImportDeclaration" - specifiers: Array - source: Literal -} - -export interface ImportSpecifier extends Node { - type: "ImportSpecifier" - imported: Identifier | Literal - local: Identifier -} - -export interface ImportDefaultSpecifier extends Node { - type: "ImportDefaultSpecifier" - local: Identifier -} - -export interface ImportNamespaceSpecifier extends Node { - type: "ImportNamespaceSpecifier" - local: Identifier -} - -export interface ExportNamedDeclaration extends Node { - type: "ExportNamedDeclaration" - declaration?: Declaration | null - specifiers: Array - source?: Literal | null -} - -export interface ExportSpecifier extends Node { - type: "ExportSpecifier" - exported: Identifier | Literal - local: Identifier | Literal -} - -export interface AnonymousFunctionDeclaration extends Function { - type: "FunctionDeclaration" - id: null - body: BlockStatement -} - -export interface AnonymousClassDeclaration extends Class { - type: "ClassDeclaration" - id: null -} - -export interface ExportDefaultDeclaration extends Node { - type: "ExportDefaultDeclaration" - declaration: AnonymousFunctionDeclaration | FunctionDeclaration | AnonymousClassDeclaration | ClassDeclaration | Expression -} - -export interface ExportAllDeclaration extends Node { - type: "ExportAllDeclaration" - source: Literal - exported?: Identifier | Literal | null -} - -export interface AwaitExpression extends Node { - type: "AwaitExpression" - argument: Expression -} - -export interface ChainExpression extends Node { - type: "ChainExpression" - expression: MemberExpression | CallExpression -} - -export interface ImportExpression extends Node { - type: "ImportExpression" - source: Expression -} - -export interface ParenthesizedExpression extends Node { - type: "ParenthesizedExpression" - expression: Expression -} - -export interface PropertyDefinition extends Node { - type: "PropertyDefinition" - key: Expression | PrivateIdentifier - value?: Expression | null - computed: boolean - static: boolean -} - -export interface PrivateIdentifier extends Node { - type: "PrivateIdentifier" - name: string -} - -export interface StaticBlock extends Node { - type: "StaticBlock" - body: Array -} - -export type Statement = -| ExpressionStatement -| BlockStatement -| EmptyStatement -| DebuggerStatement -| WithStatement -| ReturnStatement -| LabeledStatement -| BreakStatement -| ContinueStatement -| IfStatement -| SwitchStatement -| ThrowStatement -| TryStatement -| WhileStatement -| DoWhileStatement -| ForStatement -| ForInStatement -| ForOfStatement -| Declaration - -export type Declaration = -| FunctionDeclaration -| VariableDeclaration -| ClassDeclaration - -export type Expression = -| Identifier -| Literal -| ThisExpression -| ArrayExpression -| ObjectExpression -| FunctionExpression -| UnaryExpression -| UpdateExpression -| BinaryExpression -| AssignmentExpression -| LogicalExpression -| MemberExpression -| ConditionalExpression -| CallExpression -| NewExpression -| SequenceExpression -| ArrowFunctionExpression -| YieldExpression -| TemplateLiteral -| TaggedTemplateExpression -| ClassExpression -| MetaProperty -| AwaitExpression -| ChainExpression -| ImportExpression -| ParenthesizedExpression - -export type Pattern = -| Identifier -| MemberExpression -| ObjectPattern -| ArrayPattern -| RestElement -| AssignmentPattern - -export type ModuleDeclaration = -| ImportDeclaration -| ExportNamedDeclaration -| ExportDefaultDeclaration -| ExportAllDeclaration - -export type AnyNode = Statement | Expression | Declaration | ModuleDeclaration | Literal | Program | SwitchCase | CatchClause | Property | Super | SpreadElement | TemplateElement | AssignmentProperty | ObjectPattern | ArrayPattern | RestElement | AssignmentPattern | ClassBody | MethodDefinition | MetaProperty | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ExportSpecifier | AnonymousFunctionDeclaration | AnonymousClassDeclaration | PropertyDefinition | PrivateIdentifier | StaticBlock | VariableDeclarator - -export function parse(input: string, options: Options): Program - -export function parseExpressionAt(input: string, pos: number, options: Options): Expression - -export function tokenizer(input: string, options: Options): { - getToken(): Token - [Symbol.iterator](): Iterator -} - -export type ecmaVersion = 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 | 2025 | "latest" - -export interface Options { - /** - * `ecmaVersion` indicates the ECMAScript version to parse. Can be a - * number, either in year (`2022`) or plain version number (`6`) form, - * or `"latest"` (the latest the library supports). This influences - * support for strict mode, the set of reserved words, and support for - * new syntax features. - */ - ecmaVersion: ecmaVersion - - /** - * `sourceType` indicates the mode the code should be parsed in. - * Can be either `"script"` or `"module"`. This influences global - * strict mode and parsing of `import` and `export` declarations. - */ - sourceType?: "script" | "module" - - /** - * a callback that will be called when a semicolon is automatically inserted. - * @param lastTokEnd the position of the comma as an offset - * @param lastTokEndLoc location if {@link locations} is enabled - */ - onInsertedSemicolon?: (lastTokEnd: number, lastTokEndLoc?: Position) => void - - /** - * similar to `onInsertedSemicolon`, but for trailing commas - * @param lastTokEnd the position of the comma as an offset - * @param lastTokEndLoc location if `locations` is enabled - */ - onTrailingComma?: (lastTokEnd: number, lastTokEndLoc?: Position) => void - - /** - * By default, reserved words are only enforced if ecmaVersion >= 5. - * Set `allowReserved` to a boolean value to explicitly turn this on - * an off. When this option has the value "never", reserved words - * and keywords can also not be used as property names. - */ - allowReserved?: boolean | "never" - - /** - * When enabled, a return at the top level is not considered an error. - */ - allowReturnOutsideFunction?: boolean - - /** - * When enabled, import/export statements are not constrained to - * appearing at the top of the program, and an import.meta expression - * in a script isn't considered an error. - */ - allowImportExportEverywhere?: boolean - - /** - * By default, `await` identifiers are allowed to appear at the top-level scope only if {@link ecmaVersion} >= 2022. - * When enabled, await identifiers are allowed to appear at the top-level scope, - * but they are still not allowed in non-async functions. - */ - allowAwaitOutsideFunction?: boolean - - /** - * When enabled, super identifiers are not constrained to - * appearing in methods and do not raise an error when they appear elsewhere. - */ - allowSuperOutsideMethod?: boolean - - /** - * When enabled, hashbang directive in the beginning of file is - * allowed and treated as a line comment. Enabled by default when - * {@link ecmaVersion} >= 2023. - */ - allowHashBang?: boolean - - /** - * By default, the parser will verify that private properties are - * only used in places where they are valid and have been declared. - * Set this to false to turn such checks off. - */ - checkPrivateFields?: boolean - - /** - * When `locations` is on, `loc` properties holding objects with - * `start` and `end` properties as {@link Position} objects will be attached to the - * nodes. - */ - locations?: boolean - - /** - * a callback that will cause Acorn to call that export function with object in the same - * format as tokens returned from `tokenizer().getToken()`. Note - * that you are not allowed to call the parser from the - * callback—that will corrupt its internal state. - */ - onToken?: ((token: Token) => void) | Token[] - - - /** - * This takes a export function or an array. - * - * When a export function is passed, Acorn will call that export function with `(block, text, start, - * end)` parameters whenever a comment is skipped. `block` is a - * boolean indicating whether this is a block (`/* *\/`) comment, - * `text` is the content of the comment, and `start` and `end` are - * character offsets that denote the start and end of the comment. - * When the {@link locations} option is on, two more parameters are - * passed, the full locations of {@link Position} export type of the start and - * end of the comments. - * - * When a array is passed, each found comment of {@link Comment} export type is pushed to the array. - * - * Note that you are not allowed to call the - * parser from the callback—that will corrupt its internal state. - */ - onComment?: (( - isBlock: boolean, text: string, start: number, end: number, startLoc?: Position, - endLoc?: Position - ) => void) | Comment[] - - /** - * Nodes have their start and end characters offsets recorded in - * `start` and `end` properties (directly on the node, rather than - * the `loc` object, which holds line/column data. To also add a - * [semi-standardized][range] `range` property holding a `[start, - * end]` array with the same numbers, set the `ranges` option to - * `true`. - */ - ranges?: boolean - - /** - * It is possible to parse multiple files into a single AST by - * passing the tree produced by parsing the first file as - * `program` option in subsequent parses. This will add the - * toplevel forms of the parsed file to the `Program` (top) node - * of an existing parse tree. - */ - program?: Node - - /** - * When {@link locations} is on, you can pass this to record the source - * file in every node's `loc` object. - */ - sourceFile?: string - - /** - * This value, if given, is stored in every node, whether {@link locations} is on or off. - */ - directSourceFile?: string - - /** - * When enabled, parenthesized expressions are represented by - * (non-standard) ParenthesizedExpression nodes - */ - preserveParens?: boolean -} - -export class Parser { - options: Options - input: string - - protected constructor(options: Options, input: string, startPos?: number) - parse(): Program - - static parse(input: string, options: Options): Program - static parseExpressionAt(input: string, pos: number, options: Options): Expression - static tokenizer(input: string, options: Options): { - getToken(): Token - [Symbol.iterator](): Iterator - } - static extend(...plugins: ((BaseParser: typeof Parser) => typeof Parser)[]): typeof Parser -} - -export const defaultOptions: Options - -export function getLineInfo(input: string, offset: number): Position - -export class TokenType { - label: string - keyword: string | undefined -} - -export const tokTypes: { - num: TokenType - regexp: TokenType - string: TokenType - name: TokenType - privateId: TokenType - eof: TokenType - - bracketL: TokenType - bracketR: TokenType - braceL: TokenType - braceR: TokenType - parenL: TokenType - parenR: TokenType - comma: TokenType - semi: TokenType - colon: TokenType - dot: TokenType - question: TokenType - questionDot: TokenType - arrow: TokenType - template: TokenType - invalidTemplate: TokenType - ellipsis: TokenType - backQuote: TokenType - dollarBraceL: TokenType - - eq: TokenType - assign: TokenType - incDec: TokenType - prefix: TokenType - logicalOR: TokenType - logicalAND: TokenType - bitwiseOR: TokenType - bitwiseXOR: TokenType - bitwiseAND: TokenType - equality: TokenType - relational: TokenType - bitShift: TokenType - plusMin: TokenType - modulo: TokenType - star: TokenType - slash: TokenType - starstar: TokenType - coalesce: TokenType - - _break: TokenType - _case: TokenType - _catch: TokenType - _continue: TokenType - _debugger: TokenType - _default: TokenType - _do: TokenType - _else: TokenType - _finally: TokenType - _for: TokenType - _function: TokenType - _if: TokenType - _return: TokenType - _switch: TokenType - _throw: TokenType - _try: TokenType - _var: TokenType - _const: TokenType - _while: TokenType - _with: TokenType - _new: TokenType - _this: TokenType - _super: TokenType - _class: TokenType - _extends: TokenType - _export: TokenType - _import: TokenType - _null: TokenType - _true: TokenType - _false: TokenType - _in: TokenType - _instanceof: TokenType - _typeof: TokenType - _void: TokenType - _delete: TokenType -} - -export interface Comment { - type: "Line" | "Block" - value: string - start: number - end: number - loc?: SourceLocation - range?: [number, number] -} - -export class Token { - type: TokenType - start: number - end: number - loc?: SourceLocation - range?: [number, number] -} - -export const version: string diff --git a/node_modules/acorn/dist/acorn.js b/node_modules/acorn/dist/acorn.js deleted file mode 100644 index 68bf2a71..00000000 --- a/node_modules/acorn/dist/acorn.js +++ /dev/null @@ -1,6065 +0,0 @@ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : - typeof define === 'function' && define.amd ? define(['exports'], factory) : - (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.acorn = {})); -})(this, (function (exports) { 'use strict'; - - // This file was generated. Do not modify manually! - var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239]; - - // This file was generated. Do not modify manually! - var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191]; - - // This file was generated. Do not modify manually! - var nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0898-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0cf3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ece\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\u30fb\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f\uff65"; - - // This file was generated. Do not modify manually! - var nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ca\ua7d0\ua7d1\ua7d3\ua7d5-\ua7d9\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc"; - - // These are a run-length and offset encoded representation of the - // >0xffff code points that are a valid part of identifiers. The - // offset starts at 0x10000, and each pair of numbers represents an - // offset to the next range, and then a size of the range. - - // Reserved word lists for various dialects of the language - - var reservedWords = { - 3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile", - 5: "class enum extends super const export import", - 6: "enum", - strict: "implements interface let package private protected public static yield", - strictBind: "eval arguments" - }; - - // And the keywords - - var ecma5AndLessKeywords = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"; - - var keywords$1 = { - 5: ecma5AndLessKeywords, - "5module": ecma5AndLessKeywords + " export import", - 6: ecma5AndLessKeywords + " const class extends export import super" - }; - - var keywordRelationalOperator = /^in(stanceof)?$/; - - // ## Character categories - - var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]"); - var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]"); - - // This has a complexity linear to the value of the code. The - // assumption is that looking up astral identifier characters is - // rare. - function isInAstralSet(code, set) { - var pos = 0x10000; - for (var i = 0; i < set.length; i += 2) { - pos += set[i]; - if (pos > code) { return false } - pos += set[i + 1]; - if (pos >= code) { return true } - } - return false - } - - // Test whether a given character code starts an identifier. - - function isIdentifierStart(code, astral) { - if (code < 65) { return code === 36 } - if (code < 91) { return true } - if (code < 97) { return code === 95 } - if (code < 123) { return true } - if (code <= 0xffff) { return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code)) } - if (astral === false) { return false } - return isInAstralSet(code, astralIdentifierStartCodes) - } - - // Test whether a given character is part of an identifier. - - function isIdentifierChar(code, astral) { - if (code < 48) { return code === 36 } - if (code < 58) { return true } - if (code < 65) { return false } - if (code < 91) { return true } - if (code < 97) { return code === 95 } - if (code < 123) { return true } - if (code <= 0xffff) { return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code)) } - if (astral === false) { return false } - return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes) - } - - // ## Token types - - // The assignment of fine-grained, information-carrying type objects - // allows the tokenizer to store the information it has about a - // token in a way that is very cheap for the parser to look up. - - // All token type variables start with an underscore, to make them - // easy to recognize. - - // The `beforeExpr` property is used to disambiguate between regular - // expressions and divisions. It is set on all token types that can - // be followed by an expression (thus, a slash after them would be a - // regular expression). - // - // The `startsExpr` property is used to check if the token ends a - // `yield` expression. It is set on all token types that either can - // directly start an expression (like a quotation mark) or can - // continue an expression (like the body of a string). - // - // `isLoop` marks a keyword as starting a loop, which is important - // to know when parsing a label, in order to allow or disallow - // continue jumps to that label. - - var TokenType = function TokenType(label, conf) { - if ( conf === void 0 ) conf = {}; - - this.label = label; - this.keyword = conf.keyword; - this.beforeExpr = !!conf.beforeExpr; - this.startsExpr = !!conf.startsExpr; - this.isLoop = !!conf.isLoop; - this.isAssign = !!conf.isAssign; - this.prefix = !!conf.prefix; - this.postfix = !!conf.postfix; - this.binop = conf.binop || null; - this.updateContext = null; - }; - - function binop(name, prec) { - return new TokenType(name, {beforeExpr: true, binop: prec}) - } - var beforeExpr = {beforeExpr: true}, startsExpr = {startsExpr: true}; - - // Map keyword names to token types. - - var keywords = {}; - - // Succinct definitions of keyword token types - function kw(name, options) { - if ( options === void 0 ) options = {}; - - options.keyword = name; - return keywords[name] = new TokenType(name, options) - } - - var types$1 = { - num: new TokenType("num", startsExpr), - regexp: new TokenType("regexp", startsExpr), - string: new TokenType("string", startsExpr), - name: new TokenType("name", startsExpr), - privateId: new TokenType("privateId", startsExpr), - eof: new TokenType("eof"), - - // Punctuation token types. - bracketL: new TokenType("[", {beforeExpr: true, startsExpr: true}), - bracketR: new TokenType("]"), - braceL: new TokenType("{", {beforeExpr: true, startsExpr: true}), - braceR: new TokenType("}"), - parenL: new TokenType("(", {beforeExpr: true, startsExpr: true}), - parenR: new TokenType(")"), - comma: new TokenType(",", beforeExpr), - semi: new TokenType(";", beforeExpr), - colon: new TokenType(":", beforeExpr), - dot: new TokenType("."), - question: new TokenType("?", beforeExpr), - questionDot: new TokenType("?."), - arrow: new TokenType("=>", beforeExpr), - template: new TokenType("template"), - invalidTemplate: new TokenType("invalidTemplate"), - ellipsis: new TokenType("...", beforeExpr), - backQuote: new TokenType("`", startsExpr), - dollarBraceL: new TokenType("${", {beforeExpr: true, startsExpr: true}), - - // Operators. These carry several kinds of properties to help the - // parser use them properly (the presence of these properties is - // what categorizes them as operators). - // - // `binop`, when present, specifies that this operator is a binary - // operator, and will refer to its precedence. - // - // `prefix` and `postfix` mark the operator as a prefix or postfix - // unary operator. - // - // `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as - // binary operators with a very low precedence, that should result - // in AssignmentExpression nodes. - - eq: new TokenType("=", {beforeExpr: true, isAssign: true}), - assign: new TokenType("_=", {beforeExpr: true, isAssign: true}), - incDec: new TokenType("++/--", {prefix: true, postfix: true, startsExpr: true}), - prefix: new TokenType("!/~", {beforeExpr: true, prefix: true, startsExpr: true}), - logicalOR: binop("||", 1), - logicalAND: binop("&&", 2), - bitwiseOR: binop("|", 3), - bitwiseXOR: binop("^", 4), - bitwiseAND: binop("&", 5), - equality: binop("==/!=/===/!==", 6), - relational: binop("/<=/>=", 7), - bitShift: binop("<>/>>>", 8), - plusMin: new TokenType("+/-", {beforeExpr: true, binop: 9, prefix: true, startsExpr: true}), - modulo: binop("%", 10), - star: binop("*", 10), - slash: binop("/", 10), - starstar: new TokenType("**", {beforeExpr: true}), - coalesce: binop("??", 1), - - // Keyword token types. - _break: kw("break"), - _case: kw("case", beforeExpr), - _catch: kw("catch"), - _continue: kw("continue"), - _debugger: kw("debugger"), - _default: kw("default", beforeExpr), - _do: kw("do", {isLoop: true, beforeExpr: true}), - _else: kw("else", beforeExpr), - _finally: kw("finally"), - _for: kw("for", {isLoop: true}), - _function: kw("function", startsExpr), - _if: kw("if"), - _return: kw("return", beforeExpr), - _switch: kw("switch"), - _throw: kw("throw", beforeExpr), - _try: kw("try"), - _var: kw("var"), - _const: kw("const"), - _while: kw("while", {isLoop: true}), - _with: kw("with"), - _new: kw("new", {beforeExpr: true, startsExpr: true}), - _this: kw("this", startsExpr), - _super: kw("super", startsExpr), - _class: kw("class", startsExpr), - _extends: kw("extends", beforeExpr), - _export: kw("export"), - _import: kw("import", startsExpr), - _null: kw("null", startsExpr), - _true: kw("true", startsExpr), - _false: kw("false", startsExpr), - _in: kw("in", {beforeExpr: true, binop: 7}), - _instanceof: kw("instanceof", {beforeExpr: true, binop: 7}), - _typeof: kw("typeof", {beforeExpr: true, prefix: true, startsExpr: true}), - _void: kw("void", {beforeExpr: true, prefix: true, startsExpr: true}), - _delete: kw("delete", {beforeExpr: true, prefix: true, startsExpr: true}) - }; - - // Matches a whole line break (where CRLF is considered a single - // line break). Used to count lines. - - var lineBreak = /\r\n?|\n|\u2028|\u2029/; - var lineBreakG = new RegExp(lineBreak.source, "g"); - - function isNewLine(code) { - return code === 10 || code === 13 || code === 0x2028 || code === 0x2029 - } - - function nextLineBreak(code, from, end) { - if ( end === void 0 ) end = code.length; - - for (var i = from; i < end; i++) { - var next = code.charCodeAt(i); - if (isNewLine(next)) - { return i < end - 1 && next === 13 && code.charCodeAt(i + 1) === 10 ? i + 2 : i + 1 } - } - return -1 - } - - var nonASCIIwhitespace = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/; - - var skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g; - - var ref = Object.prototype; - var hasOwnProperty = ref.hasOwnProperty; - var toString = ref.toString; - - var hasOwn = Object.hasOwn || (function (obj, propName) { return ( - hasOwnProperty.call(obj, propName) - ); }); - - var isArray = Array.isArray || (function (obj) { return ( - toString.call(obj) === "[object Array]" - ); }); - - var regexpCache = Object.create(null); - - function wordsRegexp(words) { - return regexpCache[words] || (regexpCache[words] = new RegExp("^(?:" + words.replace(/ /g, "|") + ")$")) - } - - function codePointToString(code) { - // UTF-16 Decoding - if (code <= 0xFFFF) { return String.fromCharCode(code) } - code -= 0x10000; - return String.fromCharCode((code >> 10) + 0xD800, (code & 1023) + 0xDC00) - } - - var loneSurrogate = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/; - - // These are used when `options.locations` is on, for the - // `startLoc` and `endLoc` properties. - - var Position = function Position(line, col) { - this.line = line; - this.column = col; - }; - - Position.prototype.offset = function offset (n) { - return new Position(this.line, this.column + n) - }; - - var SourceLocation = function SourceLocation(p, start, end) { - this.start = start; - this.end = end; - if (p.sourceFile !== null) { this.source = p.sourceFile; } - }; - - // The `getLineInfo` function is mostly useful when the - // `locations` option is off (for performance reasons) and you - // want to find the line/column position for a given character - // offset. `input` should be the code string that the offset refers - // into. - - function getLineInfo(input, offset) { - for (var line = 1, cur = 0;;) { - var nextBreak = nextLineBreak(input, cur, offset); - if (nextBreak < 0) { return new Position(line, offset - cur) } - ++line; - cur = nextBreak; - } - } - - // A second argument must be given to configure the parser process. - // These options are recognized (only `ecmaVersion` is required): - - var defaultOptions = { - // `ecmaVersion` indicates the ECMAScript version to parse. Must be - // either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10 - // (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"` - // (the latest version the library supports). This influences - // support for strict mode, the set of reserved words, and support - // for new syntax features. - ecmaVersion: null, - // `sourceType` indicates the mode the code should be parsed in. - // Can be either `"script"` or `"module"`. This influences global - // strict mode and parsing of `import` and `export` declarations. - sourceType: "script", - // `onInsertedSemicolon` can be a callback that will be called when - // a semicolon is automatically inserted. It will be passed the - // position of the inserted semicolon as an offset, and if - // `locations` is enabled, it is given the location as a `{line, - // column}` object as second argument. - onInsertedSemicolon: null, - // `onTrailingComma` is similar to `onInsertedSemicolon`, but for - // trailing commas. - onTrailingComma: null, - // By default, reserved words are only enforced if ecmaVersion >= 5. - // Set `allowReserved` to a boolean value to explicitly turn this on - // an off. When this option has the value "never", reserved words - // and keywords can also not be used as property names. - allowReserved: null, - // When enabled, a return at the top level is not considered an - // error. - allowReturnOutsideFunction: false, - // When enabled, import/export statements are not constrained to - // appearing at the top of the program, and an import.meta expression - // in a script isn't considered an error. - allowImportExportEverywhere: false, - // By default, await identifiers are allowed to appear at the top-level scope only if ecmaVersion >= 2022. - // When enabled, await identifiers are allowed to appear at the top-level scope, - // but they are still not allowed in non-async functions. - allowAwaitOutsideFunction: null, - // When enabled, super identifiers are not constrained to - // appearing in methods and do not raise an error when they appear elsewhere. - allowSuperOutsideMethod: null, - // When enabled, hashbang directive in the beginning of file is - // allowed and treated as a line comment. Enabled by default when - // `ecmaVersion` >= 2023. - allowHashBang: false, - // By default, the parser will verify that private properties are - // only used in places where they are valid and have been declared. - // Set this to false to turn such checks off. - checkPrivateFields: true, - // When `locations` is on, `loc` properties holding objects with - // `start` and `end` properties in `{line, column}` form (with - // line being 1-based and column 0-based) will be attached to the - // nodes. - locations: false, - // A function can be passed as `onToken` option, which will - // cause Acorn to call that function with object in the same - // format as tokens returned from `tokenizer().getToken()`. Note - // that you are not allowed to call the parser from the - // callback—that will corrupt its internal state. - onToken: null, - // A function can be passed as `onComment` option, which will - // cause Acorn to call that function with `(block, text, start, - // end)` parameters whenever a comment is skipped. `block` is a - // boolean indicating whether this is a block (`/* */`) comment, - // `text` is the content of the comment, and `start` and `end` are - // character offsets that denote the start and end of the comment. - // When the `locations` option is on, two more parameters are - // passed, the full `{line, column}` locations of the start and - // end of the comments. Note that you are not allowed to call the - // parser from the callback—that will corrupt its internal state. - // When this option has an array as value, objects representing the - // comments are pushed to it. - onComment: null, - // Nodes have their start and end characters offsets recorded in - // `start` and `end` properties (directly on the node, rather than - // the `loc` object, which holds line/column data. To also add a - // [semi-standardized][range] `range` property holding a `[start, - // end]` array with the same numbers, set the `ranges` option to - // `true`. - // - // [range]: https://bugzilla.mozilla.org/show_bug.cgi?id=745678 - ranges: false, - // It is possible to parse multiple files into a single AST by - // passing the tree produced by parsing the first file as - // `program` option in subsequent parses. This will add the - // toplevel forms of the parsed file to the `Program` (top) node - // of an existing parse tree. - program: null, - // When `locations` is on, you can pass this to record the source - // file in every node's `loc` object. - sourceFile: null, - // This value, if given, is stored in every node, whether - // `locations` is on or off. - directSourceFile: null, - // When enabled, parenthesized expressions are represented by - // (non-standard) ParenthesizedExpression nodes - preserveParens: false - }; - - // Interpret and default an options object - - var warnedAboutEcmaVersion = false; - - function getOptions(opts) { - var options = {}; - - for (var opt in defaultOptions) - { options[opt] = opts && hasOwn(opts, opt) ? opts[opt] : defaultOptions[opt]; } - - if (options.ecmaVersion === "latest") { - options.ecmaVersion = 1e8; - } else if (options.ecmaVersion == null) { - if (!warnedAboutEcmaVersion && typeof console === "object" && console.warn) { - warnedAboutEcmaVersion = true; - console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future."); - } - options.ecmaVersion = 11; - } else if (options.ecmaVersion >= 2015) { - options.ecmaVersion -= 2009; - } - - if (options.allowReserved == null) - { options.allowReserved = options.ecmaVersion < 5; } - - if (!opts || opts.allowHashBang == null) - { options.allowHashBang = options.ecmaVersion >= 14; } - - if (isArray(options.onToken)) { - var tokens = options.onToken; - options.onToken = function (token) { return tokens.push(token); }; - } - if (isArray(options.onComment)) - { options.onComment = pushComment(options, options.onComment); } - - return options - } - - function pushComment(options, array) { - return function(block, text, start, end, startLoc, endLoc) { - var comment = { - type: block ? "Block" : "Line", - value: text, - start: start, - end: end - }; - if (options.locations) - { comment.loc = new SourceLocation(this, startLoc, endLoc); } - if (options.ranges) - { comment.range = [start, end]; } - array.push(comment); - } - } - - // Each scope gets a bitset that may contain these flags - var - SCOPE_TOP = 1, - SCOPE_FUNCTION = 2, - SCOPE_ASYNC = 4, - SCOPE_GENERATOR = 8, - SCOPE_ARROW = 16, - SCOPE_SIMPLE_CATCH = 32, - SCOPE_SUPER = 64, - SCOPE_DIRECT_SUPER = 128, - SCOPE_CLASS_STATIC_BLOCK = 256, - SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK; - - function functionFlags(async, generator) { - return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0) - } - - // Used in checkLVal* and declareName to determine the type of a binding - var - BIND_NONE = 0, // Not a binding - BIND_VAR = 1, // Var-style binding - BIND_LEXICAL = 2, // Let- or const-style binding - BIND_FUNCTION = 3, // Function declaration - BIND_SIMPLE_CATCH = 4, // Simple (identifier pattern) catch binding - BIND_OUTSIDE = 5; // Special case for function names as bound inside the function - - var Parser = function Parser(options, input, startPos) { - this.options = options = getOptions(options); - this.sourceFile = options.sourceFile; - this.keywords = wordsRegexp(keywords$1[options.ecmaVersion >= 6 ? 6 : options.sourceType === "module" ? "5module" : 5]); - var reserved = ""; - if (options.allowReserved !== true) { - reserved = reservedWords[options.ecmaVersion >= 6 ? 6 : options.ecmaVersion === 5 ? 5 : 3]; - if (options.sourceType === "module") { reserved += " await"; } - } - this.reservedWords = wordsRegexp(reserved); - var reservedStrict = (reserved ? reserved + " " : "") + reservedWords.strict; - this.reservedWordsStrict = wordsRegexp(reservedStrict); - this.reservedWordsStrictBind = wordsRegexp(reservedStrict + " " + reservedWords.strictBind); - this.input = String(input); - - // Used to signal to callers of `readWord1` whether the word - // contained any escape sequences. This is needed because words with - // escape sequences must not be interpreted as keywords. - this.containsEsc = false; - - // Set up token state - - // The current position of the tokenizer in the input. - if (startPos) { - this.pos = startPos; - this.lineStart = this.input.lastIndexOf("\n", startPos - 1) + 1; - this.curLine = this.input.slice(0, this.lineStart).split(lineBreak).length; - } else { - this.pos = this.lineStart = 0; - this.curLine = 1; - } - - // Properties of the current token: - // Its type - this.type = types$1.eof; - // For tokens that include more information than their type, the value - this.value = null; - // Its start and end offset - this.start = this.end = this.pos; - // And, if locations are used, the {line, column} object - // corresponding to those offsets - this.startLoc = this.endLoc = this.curPosition(); - - // Position information for the previous token - this.lastTokEndLoc = this.lastTokStartLoc = null; - this.lastTokStart = this.lastTokEnd = this.pos; - - // The context stack is used to superficially track syntactic - // context to predict whether a regular expression is allowed in a - // given position. - this.context = this.initialContext(); - this.exprAllowed = true; - - // Figure out if it's a module code. - this.inModule = options.sourceType === "module"; - this.strict = this.inModule || this.strictDirective(this.pos); - - // Used to signify the start of a potential arrow function - this.potentialArrowAt = -1; - this.potentialArrowInForAwait = false; - - // Positions to delayed-check that yield/await does not exist in default parameters. - this.yieldPos = this.awaitPos = this.awaitIdentPos = 0; - // Labels in scope. - this.labels = []; - // Thus-far undefined exports. - this.undefinedExports = Object.create(null); - - // If enabled, skip leading hashbang line. - if (this.pos === 0 && options.allowHashBang && this.input.slice(0, 2) === "#!") - { this.skipLineComment(2); } - - // Scope tracking for duplicate variable names (see scope.js) - this.scopeStack = []; - this.enterScope(SCOPE_TOP); - - // For RegExp validation - this.regexpState = null; - - // The stack of private names. - // Each element has two properties: 'declared' and 'used'. - // When it exited from the outermost class definition, all used private names must be declared. - this.privateNameStack = []; - }; - - var prototypeAccessors = { inFunction: { configurable: true },inGenerator: { configurable: true },inAsync: { configurable: true },canAwait: { configurable: true },allowSuper: { configurable: true },allowDirectSuper: { configurable: true },treatFunctionsAsVar: { configurable: true },allowNewDotTarget: { configurable: true },inClassStaticBlock: { configurable: true } }; - - Parser.prototype.parse = function parse () { - var node = this.options.program || this.startNode(); - this.nextToken(); - return this.parseTopLevel(node) - }; - - prototypeAccessors.inFunction.get = function () { return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0 }; - - prototypeAccessors.inGenerator.get = function () { return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0 && !this.currentVarScope().inClassFieldInit }; - - prototypeAccessors.inAsync.get = function () { return (this.currentVarScope().flags & SCOPE_ASYNC) > 0 && !this.currentVarScope().inClassFieldInit }; - - prototypeAccessors.canAwait.get = function () { - for (var i = this.scopeStack.length - 1; i >= 0; i--) { - var scope = this.scopeStack[i]; - if (scope.inClassFieldInit || scope.flags & SCOPE_CLASS_STATIC_BLOCK) { return false } - if (scope.flags & SCOPE_FUNCTION) { return (scope.flags & SCOPE_ASYNC) > 0 } - } - return (this.inModule && this.options.ecmaVersion >= 13) || this.options.allowAwaitOutsideFunction - }; - - prototypeAccessors.allowSuper.get = function () { - var ref = this.currentThisScope(); - var flags = ref.flags; - var inClassFieldInit = ref.inClassFieldInit; - return (flags & SCOPE_SUPER) > 0 || inClassFieldInit || this.options.allowSuperOutsideMethod - }; - - prototypeAccessors.allowDirectSuper.get = function () { return (this.currentThisScope().flags & SCOPE_DIRECT_SUPER) > 0 }; - - prototypeAccessors.treatFunctionsAsVar.get = function () { return this.treatFunctionsAsVarInScope(this.currentScope()) }; - - prototypeAccessors.allowNewDotTarget.get = function () { - var ref = this.currentThisScope(); - var flags = ref.flags; - var inClassFieldInit = ref.inClassFieldInit; - return (flags & (SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK)) > 0 || inClassFieldInit - }; - - prototypeAccessors.inClassStaticBlock.get = function () { - return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0 - }; - - Parser.extend = function extend () { - var plugins = [], len = arguments.length; - while ( len-- ) plugins[ len ] = arguments[ len ]; - - var cls = this; - for (var i = 0; i < plugins.length; i++) { cls = plugins[i](cls); } - return cls - }; - - Parser.parse = function parse (input, options) { - return new this(options, input).parse() - }; - - Parser.parseExpressionAt = function parseExpressionAt (input, pos, options) { - var parser = new this(options, input, pos); - parser.nextToken(); - return parser.parseExpression() - }; - - Parser.tokenizer = function tokenizer (input, options) { - return new this(options, input) - }; - - Object.defineProperties( Parser.prototype, prototypeAccessors ); - - var pp$9 = Parser.prototype; - - // ## Parser utilities - - var literal = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/; - pp$9.strictDirective = function(start) { - if (this.options.ecmaVersion < 5) { return false } - for (;;) { - // Try to find string literal. - skipWhiteSpace.lastIndex = start; - start += skipWhiteSpace.exec(this.input)[0].length; - var match = literal.exec(this.input.slice(start)); - if (!match) { return false } - if ((match[1] || match[2]) === "use strict") { - skipWhiteSpace.lastIndex = start + match[0].length; - var spaceAfter = skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length; - var next = this.input.charAt(end); - return next === ";" || next === "}" || - (lineBreak.test(spaceAfter[0]) && - !(/[(`.[+\-/*%<>=,?^&]/.test(next) || next === "!" && this.input.charAt(end + 1) === "=")) - } - start += match[0].length; - - // Skip semicolon, if any. - skipWhiteSpace.lastIndex = start; - start += skipWhiteSpace.exec(this.input)[0].length; - if (this.input[start] === ";") - { start++; } - } - }; - - // Predicate that tests whether the next token is of the given - // type, and if yes, consumes it as a side effect. - - pp$9.eat = function(type) { - if (this.type === type) { - this.next(); - return true - } else { - return false - } - }; - - // Tests whether parsed token is a contextual keyword. - - pp$9.isContextual = function(name) { - return this.type === types$1.name && this.value === name && !this.containsEsc - }; - - // Consumes contextual keyword if possible. - - pp$9.eatContextual = function(name) { - if (!this.isContextual(name)) { return false } - this.next(); - return true - }; - - // Asserts that following token is given contextual keyword. - - pp$9.expectContextual = function(name) { - if (!this.eatContextual(name)) { this.unexpected(); } - }; - - // Test whether a semicolon can be inserted at the current position. - - pp$9.canInsertSemicolon = function() { - return this.type === types$1.eof || - this.type === types$1.braceR || - lineBreak.test(this.input.slice(this.lastTokEnd, this.start)) - }; - - pp$9.insertSemicolon = function() { - if (this.canInsertSemicolon()) { - if (this.options.onInsertedSemicolon) - { this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc); } - return true - } - }; - - // Consume a semicolon, or, failing that, see if we are allowed to - // pretend that there is a semicolon at this position. - - pp$9.semicolon = function() { - if (!this.eat(types$1.semi) && !this.insertSemicolon()) { this.unexpected(); } - }; - - pp$9.afterTrailingComma = function(tokType, notNext) { - if (this.type === tokType) { - if (this.options.onTrailingComma) - { this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc); } - if (!notNext) - { this.next(); } - return true - } - }; - - // Expect a token of a given type. If found, consume it, otherwise, - // raise an unexpected token error. - - pp$9.expect = function(type) { - this.eat(type) || this.unexpected(); - }; - - // Raise an unexpected token error. - - pp$9.unexpected = function(pos) { - this.raise(pos != null ? pos : this.start, "Unexpected token"); - }; - - var DestructuringErrors = function DestructuringErrors() { - this.shorthandAssign = - this.trailingComma = - this.parenthesizedAssign = - this.parenthesizedBind = - this.doubleProto = - -1; - }; - - pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) { - if (!refDestructuringErrors) { return } - if (refDestructuringErrors.trailingComma > -1) - { this.raiseRecoverable(refDestructuringErrors.trailingComma, "Comma is not permitted after the rest element"); } - var parens = isAssign ? refDestructuringErrors.parenthesizedAssign : refDestructuringErrors.parenthesizedBind; - if (parens > -1) { this.raiseRecoverable(parens, isAssign ? "Assigning to rvalue" : "Parenthesized pattern"); } - }; - - pp$9.checkExpressionErrors = function(refDestructuringErrors, andThrow) { - if (!refDestructuringErrors) { return false } - var shorthandAssign = refDestructuringErrors.shorthandAssign; - var doubleProto = refDestructuringErrors.doubleProto; - if (!andThrow) { return shorthandAssign >= 0 || doubleProto >= 0 } - if (shorthandAssign >= 0) - { this.raise(shorthandAssign, "Shorthand property assignments are valid only in destructuring patterns"); } - if (doubleProto >= 0) - { this.raiseRecoverable(doubleProto, "Redefinition of __proto__ property"); } - }; - - pp$9.checkYieldAwaitInDefaultParams = function() { - if (this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos)) - { this.raise(this.yieldPos, "Yield expression cannot be a default value"); } - if (this.awaitPos) - { this.raise(this.awaitPos, "Await expression cannot be a default value"); } - }; - - pp$9.isSimpleAssignTarget = function(expr) { - if (expr.type === "ParenthesizedExpression") - { return this.isSimpleAssignTarget(expr.expression) } - return expr.type === "Identifier" || expr.type === "MemberExpression" - }; - - var pp$8 = Parser.prototype; - - // ### Statement parsing - - // Parse a program. Initializes the parser, reads any number of - // statements, and wraps them in a Program node. Optionally takes a - // `program` argument. If present, the statements will be appended - // to its body instead of creating a new node. - - pp$8.parseTopLevel = function(node) { - var exports = Object.create(null); - if (!node.body) { node.body = []; } - while (this.type !== types$1.eof) { - var stmt = this.parseStatement(null, true, exports); - node.body.push(stmt); - } - if (this.inModule) - { for (var i = 0, list = Object.keys(this.undefinedExports); i < list.length; i += 1) - { - var name = list[i]; - - this.raiseRecoverable(this.undefinedExports[name].start, ("Export '" + name + "' is not defined")); - } } - this.adaptDirectivePrologue(node.body); - this.next(); - node.sourceType = this.options.sourceType; - return this.finishNode(node, "Program") - }; - - var loopLabel = {kind: "loop"}, switchLabel = {kind: "switch"}; - - pp$8.isLet = function(context) { - if (this.options.ecmaVersion < 6 || !this.isContextual("let")) { return false } - skipWhiteSpace.lastIndex = this.pos; - var skip = skipWhiteSpace.exec(this.input); - var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next); - // For ambiguous cases, determine if a LexicalDeclaration (or only a - // Statement) is allowed here. If context is not empty then only a Statement - // is allowed. However, `let [` is an explicit negative lookahead for - // ExpressionStatement, so special-case it first. - if (nextCh === 91 || nextCh === 92) { return true } // '[', '\' - if (context) { return false } - - if (nextCh === 123 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true } // '{', astral - if (isIdentifierStart(nextCh, true)) { - var pos = next + 1; - while (isIdentifierChar(nextCh = this.input.charCodeAt(pos), true)) { ++pos; } - if (nextCh === 92 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true } - var ident = this.input.slice(next, pos); - if (!keywordRelationalOperator.test(ident)) { return true } - } - return false - }; - - // check 'async [no LineTerminator here] function' - // - 'async /*foo*/ function' is OK. - // - 'async /*\n*/ function' is invalid. - pp$8.isAsyncFunction = function() { - if (this.options.ecmaVersion < 8 || !this.isContextual("async")) - { return false } - - skipWhiteSpace.lastIndex = this.pos; - var skip = skipWhiteSpace.exec(this.input); - var next = this.pos + skip[0].length, after; - return !lineBreak.test(this.input.slice(this.pos, next)) && - this.input.slice(next, next + 8) === "function" && - (next + 8 === this.input.length || - !(isIdentifierChar(after = this.input.charCodeAt(next + 8)) || after > 0xd7ff && after < 0xdc00)) - }; - - // Parse a single statement. - // - // If expecting a statement and finding a slash operator, parse a - // regular expression literal. This is to handle cases like - // `if (foo) /blah/.exec(foo)`, where looking at the previous token - // does not help. - - pp$8.parseStatement = function(context, topLevel, exports) { - var starttype = this.type, node = this.startNode(), kind; - - if (this.isLet(context)) { - starttype = types$1._var; - kind = "let"; - } - - // Most types of statements are recognized by the keyword they - // start with. Many are trivial to parse, some require a bit of - // complexity. - - switch (starttype) { - case types$1._break: case types$1._continue: return this.parseBreakContinueStatement(node, starttype.keyword) - case types$1._debugger: return this.parseDebuggerStatement(node) - case types$1._do: return this.parseDoStatement(node) - case types$1._for: return this.parseForStatement(node) - case types$1._function: - // Function as sole body of either an if statement or a labeled statement - // works, but not when it is part of a labeled statement that is the sole - // body of an if statement. - if ((context && (this.strict || context !== "if" && context !== "label")) && this.options.ecmaVersion >= 6) { this.unexpected(); } - return this.parseFunctionStatement(node, false, !context) - case types$1._class: - if (context) { this.unexpected(); } - return this.parseClass(node, true) - case types$1._if: return this.parseIfStatement(node) - case types$1._return: return this.parseReturnStatement(node) - case types$1._switch: return this.parseSwitchStatement(node) - case types$1._throw: return this.parseThrowStatement(node) - case types$1._try: return this.parseTryStatement(node) - case types$1._const: case types$1._var: - kind = kind || this.value; - if (context && kind !== "var") { this.unexpected(); } - return this.parseVarStatement(node, kind) - case types$1._while: return this.parseWhileStatement(node) - case types$1._with: return this.parseWithStatement(node) - case types$1.braceL: return this.parseBlock(true, node) - case types$1.semi: return this.parseEmptyStatement(node) - case types$1._export: - case types$1._import: - if (this.options.ecmaVersion > 10 && starttype === types$1._import) { - skipWhiteSpace.lastIndex = this.pos; - var skip = skipWhiteSpace.exec(this.input); - var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next); - if (nextCh === 40 || nextCh === 46) // '(' or '.' - { return this.parseExpressionStatement(node, this.parseExpression()) } - } - - if (!this.options.allowImportExportEverywhere) { - if (!topLevel) - { this.raise(this.start, "'import' and 'export' may only appear at the top level"); } - if (!this.inModule) - { this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'"); } - } - return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports) - - // If the statement does not start with a statement keyword or a - // brace, it's an ExpressionStatement or LabeledStatement. We - // simply start parsing an expression, and afterwards, if the - // next token is a colon and the expression was a simple - // Identifier node, we switch to interpreting it as a label. - default: - if (this.isAsyncFunction()) { - if (context) { this.unexpected(); } - this.next(); - return this.parseFunctionStatement(node, true, !context) - } - - var maybeName = this.value, expr = this.parseExpression(); - if (starttype === types$1.name && expr.type === "Identifier" && this.eat(types$1.colon)) - { return this.parseLabeledStatement(node, maybeName, expr, context) } - else { return this.parseExpressionStatement(node, expr) } - } - }; - - pp$8.parseBreakContinueStatement = function(node, keyword) { - var isBreak = keyword === "break"; - this.next(); - if (this.eat(types$1.semi) || this.insertSemicolon()) { node.label = null; } - else if (this.type !== types$1.name) { this.unexpected(); } - else { - node.label = this.parseIdent(); - this.semicolon(); - } - - // Verify that there is an actual destination to break or - // continue to. - var i = 0; - for (; i < this.labels.length; ++i) { - var lab = this.labels[i]; - if (node.label == null || lab.name === node.label.name) { - if (lab.kind != null && (isBreak || lab.kind === "loop")) { break } - if (node.label && isBreak) { break } - } - } - if (i === this.labels.length) { this.raise(node.start, "Unsyntactic " + keyword); } - return this.finishNode(node, isBreak ? "BreakStatement" : "ContinueStatement") - }; - - pp$8.parseDebuggerStatement = function(node) { - this.next(); - this.semicolon(); - return this.finishNode(node, "DebuggerStatement") - }; - - pp$8.parseDoStatement = function(node) { - this.next(); - this.labels.push(loopLabel); - node.body = this.parseStatement("do"); - this.labels.pop(); - this.expect(types$1._while); - node.test = this.parseParenExpression(); - if (this.options.ecmaVersion >= 6) - { this.eat(types$1.semi); } - else - { this.semicolon(); } - return this.finishNode(node, "DoWhileStatement") - }; - - // Disambiguating between a `for` and a `for`/`in` or `for`/`of` - // loop is non-trivial. Basically, we have to parse the init `var` - // statement or expression, disallowing the `in` operator (see - // the second parameter to `parseExpression`), and then check - // whether the next token is `in` or `of`. When there is no init - // part (semicolon immediately after the opening parenthesis), it - // is a regular `for` loop. - - pp$8.parseForStatement = function(node) { - this.next(); - var awaitAt = (this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await")) ? this.lastTokStart : -1; - this.labels.push(loopLabel); - this.enterScope(0); - this.expect(types$1.parenL); - if (this.type === types$1.semi) { - if (awaitAt > -1) { this.unexpected(awaitAt); } - return this.parseFor(node, null) - } - var isLet = this.isLet(); - if (this.type === types$1._var || this.type === types$1._const || isLet) { - var init$1 = this.startNode(), kind = isLet ? "let" : this.value; - this.next(); - this.parseVar(init$1, true, kind); - this.finishNode(init$1, "VariableDeclaration"); - if ((this.type === types$1._in || (this.options.ecmaVersion >= 6 && this.isContextual("of"))) && init$1.declarations.length === 1) { - if (this.options.ecmaVersion >= 9) { - if (this.type === types$1._in) { - if (awaitAt > -1) { this.unexpected(awaitAt); } - } else { node.await = awaitAt > -1; } - } - return this.parseForIn(node, init$1) - } - if (awaitAt > -1) { this.unexpected(awaitAt); } - return this.parseFor(node, init$1) - } - var startsWithLet = this.isContextual("let"), isForOf = false; - var containsEsc = this.containsEsc; - var refDestructuringErrors = new DestructuringErrors; - var initPos = this.start; - var init = awaitAt > -1 - ? this.parseExprSubscripts(refDestructuringErrors, "await") - : this.parseExpression(true, refDestructuringErrors); - if (this.type === types$1._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual("of"))) { - if (awaitAt > -1) { // implies `ecmaVersion >= 9` (see declaration of awaitAt) - if (this.type === types$1._in) { this.unexpected(awaitAt); } - node.await = true; - } else if (isForOf && this.options.ecmaVersion >= 8) { - if (init.start === initPos && !containsEsc && init.type === "Identifier" && init.name === "async") { this.unexpected(); } - else if (this.options.ecmaVersion >= 9) { node.await = false; } - } - if (startsWithLet && isForOf) { this.raise(init.start, "The left-hand side of a for-of loop may not start with 'let'."); } - this.toAssignable(init, false, refDestructuringErrors); - this.checkLValPattern(init); - return this.parseForIn(node, init) - } else { - this.checkExpressionErrors(refDestructuringErrors, true); - } - if (awaitAt > -1) { this.unexpected(awaitAt); } - return this.parseFor(node, init) - }; - - pp$8.parseFunctionStatement = function(node, isAsync, declarationPosition) { - this.next(); - return this.parseFunction(node, FUNC_STATEMENT | (declarationPosition ? 0 : FUNC_HANGING_STATEMENT), false, isAsync) - }; - - pp$8.parseIfStatement = function(node) { - this.next(); - node.test = this.parseParenExpression(); - // allow function declarations in branches, but only in non-strict mode - node.consequent = this.parseStatement("if"); - node.alternate = this.eat(types$1._else) ? this.parseStatement("if") : null; - return this.finishNode(node, "IfStatement") - }; - - pp$8.parseReturnStatement = function(node) { - if (!this.inFunction && !this.options.allowReturnOutsideFunction) - { this.raise(this.start, "'return' outside of function"); } - this.next(); - - // In `return` (and `break`/`continue`), the keywords with - // optional arguments, we eagerly look for a semicolon or the - // possibility to insert one. - - if (this.eat(types$1.semi) || this.insertSemicolon()) { node.argument = null; } - else { node.argument = this.parseExpression(); this.semicolon(); } - return this.finishNode(node, "ReturnStatement") - }; - - pp$8.parseSwitchStatement = function(node) { - this.next(); - node.discriminant = this.parseParenExpression(); - node.cases = []; - this.expect(types$1.braceL); - this.labels.push(switchLabel); - this.enterScope(0); - - // Statements under must be grouped (by label) in SwitchCase - // nodes. `cur` is used to keep the node that we are currently - // adding statements to. - - var cur; - for (var sawDefault = false; this.type !== types$1.braceR;) { - if (this.type === types$1._case || this.type === types$1._default) { - var isCase = this.type === types$1._case; - if (cur) { this.finishNode(cur, "SwitchCase"); } - node.cases.push(cur = this.startNode()); - cur.consequent = []; - this.next(); - if (isCase) { - cur.test = this.parseExpression(); - } else { - if (sawDefault) { this.raiseRecoverable(this.lastTokStart, "Multiple default clauses"); } - sawDefault = true; - cur.test = null; - } - this.expect(types$1.colon); - } else { - if (!cur) { this.unexpected(); } - cur.consequent.push(this.parseStatement(null)); - } - } - this.exitScope(); - if (cur) { this.finishNode(cur, "SwitchCase"); } - this.next(); // Closing brace - this.labels.pop(); - return this.finishNode(node, "SwitchStatement") - }; - - pp$8.parseThrowStatement = function(node) { - this.next(); - if (lineBreak.test(this.input.slice(this.lastTokEnd, this.start))) - { this.raise(this.lastTokEnd, "Illegal newline after throw"); } - node.argument = this.parseExpression(); - this.semicolon(); - return this.finishNode(node, "ThrowStatement") - }; - - // Reused empty array added for node fields that are always empty. - - var empty$1 = []; - - pp$8.parseCatchClauseParam = function() { - var param = this.parseBindingAtom(); - var simple = param.type === "Identifier"; - this.enterScope(simple ? SCOPE_SIMPLE_CATCH : 0); - this.checkLValPattern(param, simple ? BIND_SIMPLE_CATCH : BIND_LEXICAL); - this.expect(types$1.parenR); - - return param - }; - - pp$8.parseTryStatement = function(node) { - this.next(); - node.block = this.parseBlock(); - node.handler = null; - if (this.type === types$1._catch) { - var clause = this.startNode(); - this.next(); - if (this.eat(types$1.parenL)) { - clause.param = this.parseCatchClauseParam(); - } else { - if (this.options.ecmaVersion < 10) { this.unexpected(); } - clause.param = null; - this.enterScope(0); - } - clause.body = this.parseBlock(false); - this.exitScope(); - node.handler = this.finishNode(clause, "CatchClause"); - } - node.finalizer = this.eat(types$1._finally) ? this.parseBlock() : null; - if (!node.handler && !node.finalizer) - { this.raise(node.start, "Missing catch or finally clause"); } - return this.finishNode(node, "TryStatement") - }; - - pp$8.parseVarStatement = function(node, kind, allowMissingInitializer) { - this.next(); - this.parseVar(node, false, kind, allowMissingInitializer); - this.semicolon(); - return this.finishNode(node, "VariableDeclaration") - }; - - pp$8.parseWhileStatement = function(node) { - this.next(); - node.test = this.parseParenExpression(); - this.labels.push(loopLabel); - node.body = this.parseStatement("while"); - this.labels.pop(); - return this.finishNode(node, "WhileStatement") - }; - - pp$8.parseWithStatement = function(node) { - if (this.strict) { this.raise(this.start, "'with' in strict mode"); } - this.next(); - node.object = this.parseParenExpression(); - node.body = this.parseStatement("with"); - return this.finishNode(node, "WithStatement") - }; - - pp$8.parseEmptyStatement = function(node) { - this.next(); - return this.finishNode(node, "EmptyStatement") - }; - - pp$8.parseLabeledStatement = function(node, maybeName, expr, context) { - for (var i$1 = 0, list = this.labels; i$1 < list.length; i$1 += 1) - { - var label = list[i$1]; - - if (label.name === maybeName) - { this.raise(expr.start, "Label '" + maybeName + "' is already declared"); - } } - var kind = this.type.isLoop ? "loop" : this.type === types$1._switch ? "switch" : null; - for (var i = this.labels.length - 1; i >= 0; i--) { - var label$1 = this.labels[i]; - if (label$1.statementStart === node.start) { - // Update information about previous labels on this node - label$1.statementStart = this.start; - label$1.kind = kind; - } else { break } - } - this.labels.push({name: maybeName, kind: kind, statementStart: this.start}); - node.body = this.parseStatement(context ? context.indexOf("label") === -1 ? context + "label" : context : "label"); - this.labels.pop(); - node.label = expr; - return this.finishNode(node, "LabeledStatement") - }; - - pp$8.parseExpressionStatement = function(node, expr) { - node.expression = expr; - this.semicolon(); - return this.finishNode(node, "ExpressionStatement") - }; - - // Parse a semicolon-enclosed block of statements, handling `"use - // strict"` declarations when `allowStrict` is true (used for - // function bodies). - - pp$8.parseBlock = function(createNewLexicalScope, node, exitStrict) { - if ( createNewLexicalScope === void 0 ) createNewLexicalScope = true; - if ( node === void 0 ) node = this.startNode(); - - node.body = []; - this.expect(types$1.braceL); - if (createNewLexicalScope) { this.enterScope(0); } - while (this.type !== types$1.braceR) { - var stmt = this.parseStatement(null); - node.body.push(stmt); - } - if (exitStrict) { this.strict = false; } - this.next(); - if (createNewLexicalScope) { this.exitScope(); } - return this.finishNode(node, "BlockStatement") - }; - - // Parse a regular `for` loop. The disambiguation code in - // `parseStatement` will already have parsed the init statement or - // expression. - - pp$8.parseFor = function(node, init) { - node.init = init; - this.expect(types$1.semi); - node.test = this.type === types$1.semi ? null : this.parseExpression(); - this.expect(types$1.semi); - node.update = this.type === types$1.parenR ? null : this.parseExpression(); - this.expect(types$1.parenR); - node.body = this.parseStatement("for"); - this.exitScope(); - this.labels.pop(); - return this.finishNode(node, "ForStatement") - }; - - // Parse a `for`/`in` and `for`/`of` loop, which are almost - // same from parser's perspective. - - pp$8.parseForIn = function(node, init) { - var isForIn = this.type === types$1._in; - this.next(); - - if ( - init.type === "VariableDeclaration" && - init.declarations[0].init != null && - ( - !isForIn || - this.options.ecmaVersion < 8 || - this.strict || - init.kind !== "var" || - init.declarations[0].id.type !== "Identifier" - ) - ) { - this.raise( - init.start, - ((isForIn ? "for-in" : "for-of") + " loop variable declaration may not have an initializer") - ); - } - node.left = init; - node.right = isForIn ? this.parseExpression() : this.parseMaybeAssign(); - this.expect(types$1.parenR); - node.body = this.parseStatement("for"); - this.exitScope(); - this.labels.pop(); - return this.finishNode(node, isForIn ? "ForInStatement" : "ForOfStatement") - }; - - // Parse a list of variable declarations. - - pp$8.parseVar = function(node, isFor, kind, allowMissingInitializer) { - node.declarations = []; - node.kind = kind; - for (;;) { - var decl = this.startNode(); - this.parseVarId(decl, kind); - if (this.eat(types$1.eq)) { - decl.init = this.parseMaybeAssign(isFor); - } else if (!allowMissingInitializer && kind === "const" && !(this.type === types$1._in || (this.options.ecmaVersion >= 6 && this.isContextual("of")))) { - this.unexpected(); - } else if (!allowMissingInitializer && decl.id.type !== "Identifier" && !(isFor && (this.type === types$1._in || this.isContextual("of")))) { - this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value"); - } else { - decl.init = null; - } - node.declarations.push(this.finishNode(decl, "VariableDeclarator")); - if (!this.eat(types$1.comma)) { break } - } - return node - }; - - pp$8.parseVarId = function(decl, kind) { - decl.id = this.parseBindingAtom(); - this.checkLValPattern(decl.id, kind === "var" ? BIND_VAR : BIND_LEXICAL, false); - }; - - var FUNC_STATEMENT = 1, FUNC_HANGING_STATEMENT = 2, FUNC_NULLABLE_ID = 4; - - // Parse a function declaration or literal (depending on the - // `statement & FUNC_STATEMENT`). - - // Remove `allowExpressionBody` for 7.0.0, as it is only called with false - pp$8.parseFunction = function(node, statement, allowExpressionBody, isAsync, forInit) { - this.initFunction(node); - if (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !isAsync) { - if (this.type === types$1.star && (statement & FUNC_HANGING_STATEMENT)) - { this.unexpected(); } - node.generator = this.eat(types$1.star); - } - if (this.options.ecmaVersion >= 8) - { node.async = !!isAsync; } - - if (statement & FUNC_STATEMENT) { - node.id = (statement & FUNC_NULLABLE_ID) && this.type !== types$1.name ? null : this.parseIdent(); - if (node.id && !(statement & FUNC_HANGING_STATEMENT)) - // If it is a regular function declaration in sloppy mode, then it is - // subject to Annex B semantics (BIND_FUNCTION). Otherwise, the binding - // mode depends on properties of the current scope (see - // treatFunctionsAsVar). - { this.checkLValSimple(node.id, (this.strict || node.generator || node.async) ? this.treatFunctionsAsVar ? BIND_VAR : BIND_LEXICAL : BIND_FUNCTION); } - } - - var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos; - this.yieldPos = 0; - this.awaitPos = 0; - this.awaitIdentPos = 0; - this.enterScope(functionFlags(node.async, node.generator)); - - if (!(statement & FUNC_STATEMENT)) - { node.id = this.type === types$1.name ? this.parseIdent() : null; } - - this.parseFunctionParams(node); - this.parseFunctionBody(node, allowExpressionBody, false, forInit); - - this.yieldPos = oldYieldPos; - this.awaitPos = oldAwaitPos; - this.awaitIdentPos = oldAwaitIdentPos; - return this.finishNode(node, (statement & FUNC_STATEMENT) ? "FunctionDeclaration" : "FunctionExpression") - }; - - pp$8.parseFunctionParams = function(node) { - this.expect(types$1.parenL); - node.params = this.parseBindingList(types$1.parenR, false, this.options.ecmaVersion >= 8); - this.checkYieldAwaitInDefaultParams(); - }; - - // Parse a class declaration or literal (depending on the - // `isStatement` parameter). - - pp$8.parseClass = function(node, isStatement) { - this.next(); - - // ecma-262 14.6 Class Definitions - // A class definition is always strict mode code. - var oldStrict = this.strict; - this.strict = true; - - this.parseClassId(node, isStatement); - this.parseClassSuper(node); - var privateNameMap = this.enterClassBody(); - var classBody = this.startNode(); - var hadConstructor = false; - classBody.body = []; - this.expect(types$1.braceL); - while (this.type !== types$1.braceR) { - var element = this.parseClassElement(node.superClass !== null); - if (element) { - classBody.body.push(element); - if (element.type === "MethodDefinition" && element.kind === "constructor") { - if (hadConstructor) { this.raiseRecoverable(element.start, "Duplicate constructor in the same class"); } - hadConstructor = true; - } else if (element.key && element.key.type === "PrivateIdentifier" && isPrivateNameConflicted(privateNameMap, element)) { - this.raiseRecoverable(element.key.start, ("Identifier '#" + (element.key.name) + "' has already been declared")); - } - } - } - this.strict = oldStrict; - this.next(); - node.body = this.finishNode(classBody, "ClassBody"); - this.exitClassBody(); - return this.finishNode(node, isStatement ? "ClassDeclaration" : "ClassExpression") - }; - - pp$8.parseClassElement = function(constructorAllowsSuper) { - if (this.eat(types$1.semi)) { return null } - - var ecmaVersion = this.options.ecmaVersion; - var node = this.startNode(); - var keyName = ""; - var isGenerator = false; - var isAsync = false; - var kind = "method"; - var isStatic = false; - - if (this.eatContextual("static")) { - // Parse static init block - if (ecmaVersion >= 13 && this.eat(types$1.braceL)) { - this.parseClassStaticBlock(node); - return node - } - if (this.isClassElementNameStart() || this.type === types$1.star) { - isStatic = true; - } else { - keyName = "static"; - } - } - node.static = isStatic; - if (!keyName && ecmaVersion >= 8 && this.eatContextual("async")) { - if ((this.isClassElementNameStart() || this.type === types$1.star) && !this.canInsertSemicolon()) { - isAsync = true; - } else { - keyName = "async"; - } - } - if (!keyName && (ecmaVersion >= 9 || !isAsync) && this.eat(types$1.star)) { - isGenerator = true; - } - if (!keyName && !isAsync && !isGenerator) { - var lastValue = this.value; - if (this.eatContextual("get") || this.eatContextual("set")) { - if (this.isClassElementNameStart()) { - kind = lastValue; - } else { - keyName = lastValue; - } - } - } - - // Parse element name - if (keyName) { - // 'async', 'get', 'set', or 'static' were not a keyword contextually. - // The last token is any of those. Make it the element name. - node.computed = false; - node.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc); - node.key.name = keyName; - this.finishNode(node.key, "Identifier"); - } else { - this.parseClassElementName(node); - } - - // Parse element value - if (ecmaVersion < 13 || this.type === types$1.parenL || kind !== "method" || isGenerator || isAsync) { - var isConstructor = !node.static && checkKeyName(node, "constructor"); - var allowsDirectSuper = isConstructor && constructorAllowsSuper; - // Couldn't move this check into the 'parseClassMethod' method for backward compatibility. - if (isConstructor && kind !== "method") { this.raise(node.key.start, "Constructor can't have get/set modifier"); } - node.kind = isConstructor ? "constructor" : kind; - this.parseClassMethod(node, isGenerator, isAsync, allowsDirectSuper); - } else { - this.parseClassField(node); - } - - return node - }; - - pp$8.isClassElementNameStart = function() { - return ( - this.type === types$1.name || - this.type === types$1.privateId || - this.type === types$1.num || - this.type === types$1.string || - this.type === types$1.bracketL || - this.type.keyword - ) - }; - - pp$8.parseClassElementName = function(element) { - if (this.type === types$1.privateId) { - if (this.value === "constructor") { - this.raise(this.start, "Classes can't have an element named '#constructor'"); - } - element.computed = false; - element.key = this.parsePrivateIdent(); - } else { - this.parsePropertyName(element); - } - }; - - pp$8.parseClassMethod = function(method, isGenerator, isAsync, allowsDirectSuper) { - // Check key and flags - var key = method.key; - if (method.kind === "constructor") { - if (isGenerator) { this.raise(key.start, "Constructor can't be a generator"); } - if (isAsync) { this.raise(key.start, "Constructor can't be an async method"); } - } else if (method.static && checkKeyName(method, "prototype")) { - this.raise(key.start, "Classes may not have a static property named prototype"); - } - - // Parse value - var value = method.value = this.parseMethod(isGenerator, isAsync, allowsDirectSuper); - - // Check value - if (method.kind === "get" && value.params.length !== 0) - { this.raiseRecoverable(value.start, "getter should have no params"); } - if (method.kind === "set" && value.params.length !== 1) - { this.raiseRecoverable(value.start, "setter should have exactly one param"); } - if (method.kind === "set" && value.params[0].type === "RestElement") - { this.raiseRecoverable(value.params[0].start, "Setter cannot use rest params"); } - - return this.finishNode(method, "MethodDefinition") - }; - - pp$8.parseClassField = function(field) { - if (checkKeyName(field, "constructor")) { - this.raise(field.key.start, "Classes can't have a field named 'constructor'"); - } else if (field.static && checkKeyName(field, "prototype")) { - this.raise(field.key.start, "Classes can't have a static field named 'prototype'"); - } - - if (this.eat(types$1.eq)) { - // To raise SyntaxError if 'arguments' exists in the initializer. - var scope = this.currentThisScope(); - var inClassFieldInit = scope.inClassFieldInit; - scope.inClassFieldInit = true; - field.value = this.parseMaybeAssign(); - scope.inClassFieldInit = inClassFieldInit; - } else { - field.value = null; - } - this.semicolon(); - - return this.finishNode(field, "PropertyDefinition") - }; - - pp$8.parseClassStaticBlock = function(node) { - node.body = []; - - var oldLabels = this.labels; - this.labels = []; - this.enterScope(SCOPE_CLASS_STATIC_BLOCK | SCOPE_SUPER); - while (this.type !== types$1.braceR) { - var stmt = this.parseStatement(null); - node.body.push(stmt); - } - this.next(); - this.exitScope(); - this.labels = oldLabels; - - return this.finishNode(node, "StaticBlock") - }; - - pp$8.parseClassId = function(node, isStatement) { - if (this.type === types$1.name) { - node.id = this.parseIdent(); - if (isStatement) - { this.checkLValSimple(node.id, BIND_LEXICAL, false); } - } else { - if (isStatement === true) - { this.unexpected(); } - node.id = null; - } - }; - - pp$8.parseClassSuper = function(node) { - node.superClass = this.eat(types$1._extends) ? this.parseExprSubscripts(null, false) : null; - }; - - pp$8.enterClassBody = function() { - var element = {declared: Object.create(null), used: []}; - this.privateNameStack.push(element); - return element.declared - }; - - pp$8.exitClassBody = function() { - var ref = this.privateNameStack.pop(); - var declared = ref.declared; - var used = ref.used; - if (!this.options.checkPrivateFields) { return } - var len = this.privateNameStack.length; - var parent = len === 0 ? null : this.privateNameStack[len - 1]; - for (var i = 0; i < used.length; ++i) { - var id = used[i]; - if (!hasOwn(declared, id.name)) { - if (parent) { - parent.used.push(id); - } else { - this.raiseRecoverable(id.start, ("Private field '#" + (id.name) + "' must be declared in an enclosing class")); - } - } - } - }; - - function isPrivateNameConflicted(privateNameMap, element) { - var name = element.key.name; - var curr = privateNameMap[name]; - - var next = "true"; - if (element.type === "MethodDefinition" && (element.kind === "get" || element.kind === "set")) { - next = (element.static ? "s" : "i") + element.kind; - } - - // `class { get #a(){}; static set #a(_){} }` is also conflict. - if ( - curr === "iget" && next === "iset" || - curr === "iset" && next === "iget" || - curr === "sget" && next === "sset" || - curr === "sset" && next === "sget" - ) { - privateNameMap[name] = "true"; - return false - } else if (!curr) { - privateNameMap[name] = next; - return false - } else { - return true - } - } - - function checkKeyName(node, name) { - var computed = node.computed; - var key = node.key; - return !computed && ( - key.type === "Identifier" && key.name === name || - key.type === "Literal" && key.value === name - ) - } - - // Parses module export declaration. - - pp$8.parseExportAllDeclaration = function(node, exports) { - if (this.options.ecmaVersion >= 11) { - if (this.eatContextual("as")) { - node.exported = this.parseModuleExportName(); - this.checkExport(exports, node.exported, this.lastTokStart); - } else { - node.exported = null; - } - } - this.expectContextual("from"); - if (this.type !== types$1.string) { this.unexpected(); } - node.source = this.parseExprAtom(); - this.semicolon(); - return this.finishNode(node, "ExportAllDeclaration") - }; - - pp$8.parseExport = function(node, exports) { - this.next(); - // export * from '...' - if (this.eat(types$1.star)) { - return this.parseExportAllDeclaration(node, exports) - } - if (this.eat(types$1._default)) { // export default ... - this.checkExport(exports, "default", this.lastTokStart); - node.declaration = this.parseExportDefaultDeclaration(); - return this.finishNode(node, "ExportDefaultDeclaration") - } - // export var|const|let|function|class ... - if (this.shouldParseExportStatement()) { - node.declaration = this.parseExportDeclaration(node); - if (node.declaration.type === "VariableDeclaration") - { this.checkVariableExport(exports, node.declaration.declarations); } - else - { this.checkExport(exports, node.declaration.id, node.declaration.id.start); } - node.specifiers = []; - node.source = null; - } else { // export { x, y as z } [from '...'] - node.declaration = null; - node.specifiers = this.parseExportSpecifiers(exports); - if (this.eatContextual("from")) { - if (this.type !== types$1.string) { this.unexpected(); } - node.source = this.parseExprAtom(); - } else { - for (var i = 0, list = node.specifiers; i < list.length; i += 1) { - // check for keywords used as local names - var spec = list[i]; - - this.checkUnreserved(spec.local); - // check if export is defined - this.checkLocalExport(spec.local); - - if (spec.local.type === "Literal") { - this.raise(spec.local.start, "A string literal cannot be used as an exported binding without `from`."); - } - } - - node.source = null; - } - this.semicolon(); - } - return this.finishNode(node, "ExportNamedDeclaration") - }; - - pp$8.parseExportDeclaration = function(node) { - return this.parseStatement(null) - }; - - pp$8.parseExportDefaultDeclaration = function() { - var isAsync; - if (this.type === types$1._function || (isAsync = this.isAsyncFunction())) { - var fNode = this.startNode(); - this.next(); - if (isAsync) { this.next(); } - return this.parseFunction(fNode, FUNC_STATEMENT | FUNC_NULLABLE_ID, false, isAsync) - } else if (this.type === types$1._class) { - var cNode = this.startNode(); - return this.parseClass(cNode, "nullableID") - } else { - var declaration = this.parseMaybeAssign(); - this.semicolon(); - return declaration - } - }; - - pp$8.checkExport = function(exports, name, pos) { - if (!exports) { return } - if (typeof name !== "string") - { name = name.type === "Identifier" ? name.name : name.value; } - if (hasOwn(exports, name)) - { this.raiseRecoverable(pos, "Duplicate export '" + name + "'"); } - exports[name] = true; - }; - - pp$8.checkPatternExport = function(exports, pat) { - var type = pat.type; - if (type === "Identifier") - { this.checkExport(exports, pat, pat.start); } - else if (type === "ObjectPattern") - { for (var i = 0, list = pat.properties; i < list.length; i += 1) - { - var prop = list[i]; - - this.checkPatternExport(exports, prop); - } } - else if (type === "ArrayPattern") - { for (var i$1 = 0, list$1 = pat.elements; i$1 < list$1.length; i$1 += 1) { - var elt = list$1[i$1]; - - if (elt) { this.checkPatternExport(exports, elt); } - } } - else if (type === "Property") - { this.checkPatternExport(exports, pat.value); } - else if (type === "AssignmentPattern") - { this.checkPatternExport(exports, pat.left); } - else if (type === "RestElement") - { this.checkPatternExport(exports, pat.argument); } - }; - - pp$8.checkVariableExport = function(exports, decls) { - if (!exports) { return } - for (var i = 0, list = decls; i < list.length; i += 1) - { - var decl = list[i]; - - this.checkPatternExport(exports, decl.id); - } - }; - - pp$8.shouldParseExportStatement = function() { - return this.type.keyword === "var" || - this.type.keyword === "const" || - this.type.keyword === "class" || - this.type.keyword === "function" || - this.isLet() || - this.isAsyncFunction() - }; - - // Parses a comma-separated list of module exports. - - pp$8.parseExportSpecifier = function(exports) { - var node = this.startNode(); - node.local = this.parseModuleExportName(); - - node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local; - this.checkExport( - exports, - node.exported, - node.exported.start - ); - - return this.finishNode(node, "ExportSpecifier") - }; - - pp$8.parseExportSpecifiers = function(exports) { - var nodes = [], first = true; - // export { x, y as z } [from '...'] - this.expect(types$1.braceL); - while (!this.eat(types$1.braceR)) { - if (!first) { - this.expect(types$1.comma); - if (this.afterTrailingComma(types$1.braceR)) { break } - } else { first = false; } - - nodes.push(this.parseExportSpecifier(exports)); - } - return nodes - }; - - // Parses import declaration. - - pp$8.parseImport = function(node) { - this.next(); - - // import '...' - if (this.type === types$1.string) { - node.specifiers = empty$1; - node.source = this.parseExprAtom(); - } else { - node.specifiers = this.parseImportSpecifiers(); - this.expectContextual("from"); - node.source = this.type === types$1.string ? this.parseExprAtom() : this.unexpected(); - } - this.semicolon(); - return this.finishNode(node, "ImportDeclaration") - }; - - // Parses a comma-separated list of module imports. - - pp$8.parseImportSpecifier = function() { - var node = this.startNode(); - node.imported = this.parseModuleExportName(); - - if (this.eatContextual("as")) { - node.local = this.parseIdent(); - } else { - this.checkUnreserved(node.imported); - node.local = node.imported; - } - this.checkLValSimple(node.local, BIND_LEXICAL); - - return this.finishNode(node, "ImportSpecifier") - }; - - pp$8.parseImportDefaultSpecifier = function() { - // import defaultObj, { x, y as z } from '...' - var node = this.startNode(); - node.local = this.parseIdent(); - this.checkLValSimple(node.local, BIND_LEXICAL); - return this.finishNode(node, "ImportDefaultSpecifier") - }; - - pp$8.parseImportNamespaceSpecifier = function() { - var node = this.startNode(); - this.next(); - this.expectContextual("as"); - node.local = this.parseIdent(); - this.checkLValSimple(node.local, BIND_LEXICAL); - return this.finishNode(node, "ImportNamespaceSpecifier") - }; - - pp$8.parseImportSpecifiers = function() { - var nodes = [], first = true; - if (this.type === types$1.name) { - nodes.push(this.parseImportDefaultSpecifier()); - if (!this.eat(types$1.comma)) { return nodes } - } - if (this.type === types$1.star) { - nodes.push(this.parseImportNamespaceSpecifier()); - return nodes - } - this.expect(types$1.braceL); - while (!this.eat(types$1.braceR)) { - if (!first) { - this.expect(types$1.comma); - if (this.afterTrailingComma(types$1.braceR)) { break } - } else { first = false; } - - nodes.push(this.parseImportSpecifier()); - } - return nodes - }; - - pp$8.parseModuleExportName = function() { - if (this.options.ecmaVersion >= 13 && this.type === types$1.string) { - var stringLiteral = this.parseLiteral(this.value); - if (loneSurrogate.test(stringLiteral.value)) { - this.raise(stringLiteral.start, "An export name cannot include a lone surrogate."); - } - return stringLiteral - } - return this.parseIdent(true) - }; - - // Set `ExpressionStatement#directive` property for directive prologues. - pp$8.adaptDirectivePrologue = function(statements) { - for (var i = 0; i < statements.length && this.isDirectiveCandidate(statements[i]); ++i) { - statements[i].directive = statements[i].expression.raw.slice(1, -1); - } - }; - pp$8.isDirectiveCandidate = function(statement) { - return ( - this.options.ecmaVersion >= 5 && - statement.type === "ExpressionStatement" && - statement.expression.type === "Literal" && - typeof statement.expression.value === "string" && - // Reject parenthesized strings. - (this.input[statement.start] === "\"" || this.input[statement.start] === "'") - ) - }; - - var pp$7 = Parser.prototype; - - // Convert existing expression atom to assignable pattern - // if possible. - - pp$7.toAssignable = function(node, isBinding, refDestructuringErrors) { - if (this.options.ecmaVersion >= 6 && node) { - switch (node.type) { - case "Identifier": - if (this.inAsync && node.name === "await") - { this.raise(node.start, "Cannot use 'await' as identifier inside an async function"); } - break - - case "ObjectPattern": - case "ArrayPattern": - case "AssignmentPattern": - case "RestElement": - break - - case "ObjectExpression": - node.type = "ObjectPattern"; - if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); } - for (var i = 0, list = node.properties; i < list.length; i += 1) { - var prop = list[i]; - - this.toAssignable(prop, isBinding); - // Early error: - // AssignmentRestProperty[Yield, Await] : - // `...` DestructuringAssignmentTarget[Yield, Await] - // - // It is a Syntax Error if |DestructuringAssignmentTarget| is an |ArrayLiteral| or an |ObjectLiteral|. - if ( - prop.type === "RestElement" && - (prop.argument.type === "ArrayPattern" || prop.argument.type === "ObjectPattern") - ) { - this.raise(prop.argument.start, "Unexpected token"); - } - } - break - - case "Property": - // AssignmentProperty has type === "Property" - if (node.kind !== "init") { this.raise(node.key.start, "Object pattern can't contain getter or setter"); } - this.toAssignable(node.value, isBinding); - break - - case "ArrayExpression": - node.type = "ArrayPattern"; - if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); } - this.toAssignableList(node.elements, isBinding); - break - - case "SpreadElement": - node.type = "RestElement"; - this.toAssignable(node.argument, isBinding); - if (node.argument.type === "AssignmentPattern") - { this.raise(node.argument.start, "Rest elements cannot have a default value"); } - break - - case "AssignmentExpression": - if (node.operator !== "=") { this.raise(node.left.end, "Only '=' operator can be used for specifying default value."); } - node.type = "AssignmentPattern"; - delete node.operator; - this.toAssignable(node.left, isBinding); - break - - case "ParenthesizedExpression": - this.toAssignable(node.expression, isBinding, refDestructuringErrors); - break - - case "ChainExpression": - this.raiseRecoverable(node.start, "Optional chaining cannot appear in left-hand side"); - break - - case "MemberExpression": - if (!isBinding) { break } - - default: - this.raise(node.start, "Assigning to rvalue"); - } - } else if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); } - return node - }; - - // Convert list of expression atoms to binding list. - - pp$7.toAssignableList = function(exprList, isBinding) { - var end = exprList.length; - for (var i = 0; i < end; i++) { - var elt = exprList[i]; - if (elt) { this.toAssignable(elt, isBinding); } - } - if (end) { - var last = exprList[end - 1]; - if (this.options.ecmaVersion === 6 && isBinding && last && last.type === "RestElement" && last.argument.type !== "Identifier") - { this.unexpected(last.argument.start); } - } - return exprList - }; - - // Parses spread element. - - pp$7.parseSpread = function(refDestructuringErrors) { - var node = this.startNode(); - this.next(); - node.argument = this.parseMaybeAssign(false, refDestructuringErrors); - return this.finishNode(node, "SpreadElement") - }; - - pp$7.parseRestBinding = function() { - var node = this.startNode(); - this.next(); - - // RestElement inside of a function parameter must be an identifier - if (this.options.ecmaVersion === 6 && this.type !== types$1.name) - { this.unexpected(); } - - node.argument = this.parseBindingAtom(); - - return this.finishNode(node, "RestElement") - }; - - // Parses lvalue (assignable) atom. - - pp$7.parseBindingAtom = function() { - if (this.options.ecmaVersion >= 6) { - switch (this.type) { - case types$1.bracketL: - var node = this.startNode(); - this.next(); - node.elements = this.parseBindingList(types$1.bracketR, true, true); - return this.finishNode(node, "ArrayPattern") - - case types$1.braceL: - return this.parseObj(true) - } - } - return this.parseIdent() - }; - - pp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma, allowModifiers) { - var elts = [], first = true; - while (!this.eat(close)) { - if (first) { first = false; } - else { this.expect(types$1.comma); } - if (allowEmpty && this.type === types$1.comma) { - elts.push(null); - } else if (allowTrailingComma && this.afterTrailingComma(close)) { - break - } else if (this.type === types$1.ellipsis) { - var rest = this.parseRestBinding(); - this.parseBindingListItem(rest); - elts.push(rest); - if (this.type === types$1.comma) { this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"); } - this.expect(close); - break - } else { - elts.push(this.parseAssignableListItem(allowModifiers)); - } - } - return elts - }; - - pp$7.parseAssignableListItem = function(allowModifiers) { - var elem = this.parseMaybeDefault(this.start, this.startLoc); - this.parseBindingListItem(elem); - return elem - }; - - pp$7.parseBindingListItem = function(param) { - return param - }; - - // Parses assignment pattern around given atom if possible. - - pp$7.parseMaybeDefault = function(startPos, startLoc, left) { - left = left || this.parseBindingAtom(); - if (this.options.ecmaVersion < 6 || !this.eat(types$1.eq)) { return left } - var node = this.startNodeAt(startPos, startLoc); - node.left = left; - node.right = this.parseMaybeAssign(); - return this.finishNode(node, "AssignmentPattern") - }; - - // The following three functions all verify that a node is an lvalue — - // something that can be bound, or assigned to. In order to do so, they perform - // a variety of checks: - // - // - Check that none of the bound/assigned-to identifiers are reserved words. - // - Record name declarations for bindings in the appropriate scope. - // - Check duplicate argument names, if checkClashes is set. - // - // If a complex binding pattern is encountered (e.g., object and array - // destructuring), the entire pattern is recursively checked. - // - // There are three versions of checkLVal*() appropriate for different - // circumstances: - // - // - checkLValSimple() shall be used if the syntactic construct supports - // nothing other than identifiers and member expressions. Parenthesized - // expressions are also correctly handled. This is generally appropriate for - // constructs for which the spec says - // - // > It is a Syntax Error if AssignmentTargetType of [the production] is not - // > simple. - // - // It is also appropriate for checking if an identifier is valid and not - // defined elsewhere, like import declarations or function/class identifiers. - // - // Examples where this is used include: - // a += …; - // import a from '…'; - // where a is the node to be checked. - // - // - checkLValPattern() shall be used if the syntactic construct supports - // anything checkLValSimple() supports, as well as object and array - // destructuring patterns. This is generally appropriate for constructs for - // which the spec says - // - // > It is a Syntax Error if [the production] is neither an ObjectLiteral nor - // > an ArrayLiteral and AssignmentTargetType of [the production] is not - // > simple. - // - // Examples where this is used include: - // (a = …); - // const a = …; - // try { … } catch (a) { … } - // where a is the node to be checked. - // - // - checkLValInnerPattern() shall be used if the syntactic construct supports - // anything checkLValPattern() supports, as well as default assignment - // patterns, rest elements, and other constructs that may appear within an - // object or array destructuring pattern. - // - // As a special case, function parameters also use checkLValInnerPattern(), - // as they also support defaults and rest constructs. - // - // These functions deliberately support both assignment and binding constructs, - // as the logic for both is exceedingly similar. If the node is the target of - // an assignment, then bindingType should be set to BIND_NONE. Otherwise, it - // should be set to the appropriate BIND_* constant, like BIND_VAR or - // BIND_LEXICAL. - // - // If the function is called with a non-BIND_NONE bindingType, then - // additionally a checkClashes object may be specified to allow checking for - // duplicate argument names. checkClashes is ignored if the provided construct - // is an assignment (i.e., bindingType is BIND_NONE). - - pp$7.checkLValSimple = function(expr, bindingType, checkClashes) { - if ( bindingType === void 0 ) bindingType = BIND_NONE; - - var isBind = bindingType !== BIND_NONE; - - switch (expr.type) { - case "Identifier": - if (this.strict && this.reservedWordsStrictBind.test(expr.name)) - { this.raiseRecoverable(expr.start, (isBind ? "Binding " : "Assigning to ") + expr.name + " in strict mode"); } - if (isBind) { - if (bindingType === BIND_LEXICAL && expr.name === "let") - { this.raiseRecoverable(expr.start, "let is disallowed as a lexically bound name"); } - if (checkClashes) { - if (hasOwn(checkClashes, expr.name)) - { this.raiseRecoverable(expr.start, "Argument name clash"); } - checkClashes[expr.name] = true; - } - if (bindingType !== BIND_OUTSIDE) { this.declareName(expr.name, bindingType, expr.start); } - } - break - - case "ChainExpression": - this.raiseRecoverable(expr.start, "Optional chaining cannot appear in left-hand side"); - break - - case "MemberExpression": - if (isBind) { this.raiseRecoverable(expr.start, "Binding member expression"); } - break - - case "ParenthesizedExpression": - if (isBind) { this.raiseRecoverable(expr.start, "Binding parenthesized expression"); } - return this.checkLValSimple(expr.expression, bindingType, checkClashes) - - default: - this.raise(expr.start, (isBind ? "Binding" : "Assigning to") + " rvalue"); - } - }; - - pp$7.checkLValPattern = function(expr, bindingType, checkClashes) { - if ( bindingType === void 0 ) bindingType = BIND_NONE; - - switch (expr.type) { - case "ObjectPattern": - for (var i = 0, list = expr.properties; i < list.length; i += 1) { - var prop = list[i]; - - this.checkLValInnerPattern(prop, bindingType, checkClashes); - } - break - - case "ArrayPattern": - for (var i$1 = 0, list$1 = expr.elements; i$1 < list$1.length; i$1 += 1) { - var elem = list$1[i$1]; - - if (elem) { this.checkLValInnerPattern(elem, bindingType, checkClashes); } - } - break - - default: - this.checkLValSimple(expr, bindingType, checkClashes); - } - }; - - pp$7.checkLValInnerPattern = function(expr, bindingType, checkClashes) { - if ( bindingType === void 0 ) bindingType = BIND_NONE; - - switch (expr.type) { - case "Property": - // AssignmentProperty has type === "Property" - this.checkLValInnerPattern(expr.value, bindingType, checkClashes); - break - - case "AssignmentPattern": - this.checkLValPattern(expr.left, bindingType, checkClashes); - break - - case "RestElement": - this.checkLValPattern(expr.argument, bindingType, checkClashes); - break - - default: - this.checkLValPattern(expr, bindingType, checkClashes); - } - }; - - // The algorithm used to determine whether a regexp can appear at a - // given point in the program is loosely based on sweet.js' approach. - // See https://github.com/mozilla/sweet.js/wiki/design - - - var TokContext = function TokContext(token, isExpr, preserveSpace, override, generator) { - this.token = token; - this.isExpr = !!isExpr; - this.preserveSpace = !!preserveSpace; - this.override = override; - this.generator = !!generator; - }; - - var types = { - b_stat: new TokContext("{", false), - b_expr: new TokContext("{", true), - b_tmpl: new TokContext("${", false), - p_stat: new TokContext("(", false), - p_expr: new TokContext("(", true), - q_tmpl: new TokContext("`", true, true, function (p) { return p.tryReadTemplateToken(); }), - f_stat: new TokContext("function", false), - f_expr: new TokContext("function", true), - f_expr_gen: new TokContext("function", true, false, null, true), - f_gen: new TokContext("function", false, false, null, true) - }; - - var pp$6 = Parser.prototype; - - pp$6.initialContext = function() { - return [types.b_stat] - }; - - pp$6.curContext = function() { - return this.context[this.context.length - 1] - }; - - pp$6.braceIsBlock = function(prevType) { - var parent = this.curContext(); - if (parent === types.f_expr || parent === types.f_stat) - { return true } - if (prevType === types$1.colon && (parent === types.b_stat || parent === types.b_expr)) - { return !parent.isExpr } - - // The check for `tt.name && exprAllowed` detects whether we are - // after a `yield` or `of` construct. See the `updateContext` for - // `tt.name`. - if (prevType === types$1._return || prevType === types$1.name && this.exprAllowed) - { return lineBreak.test(this.input.slice(this.lastTokEnd, this.start)) } - if (prevType === types$1._else || prevType === types$1.semi || prevType === types$1.eof || prevType === types$1.parenR || prevType === types$1.arrow) - { return true } - if (prevType === types$1.braceL) - { return parent === types.b_stat } - if (prevType === types$1._var || prevType === types$1._const || prevType === types$1.name) - { return false } - return !this.exprAllowed - }; - - pp$6.inGeneratorContext = function() { - for (var i = this.context.length - 1; i >= 1; i--) { - var context = this.context[i]; - if (context.token === "function") - { return context.generator } - } - return false - }; - - pp$6.updateContext = function(prevType) { - var update, type = this.type; - if (type.keyword && prevType === types$1.dot) - { this.exprAllowed = false; } - else if (update = type.updateContext) - { update.call(this, prevType); } - else - { this.exprAllowed = type.beforeExpr; } - }; - - // Used to handle edge cases when token context could not be inferred correctly during tokenization phase - - pp$6.overrideContext = function(tokenCtx) { - if (this.curContext() !== tokenCtx) { - this.context[this.context.length - 1] = tokenCtx; - } - }; - - // Token-specific context update code - - types$1.parenR.updateContext = types$1.braceR.updateContext = function() { - if (this.context.length === 1) { - this.exprAllowed = true; - return - } - var out = this.context.pop(); - if (out === types.b_stat && this.curContext().token === "function") { - out = this.context.pop(); - } - this.exprAllowed = !out.isExpr; - }; - - types$1.braceL.updateContext = function(prevType) { - this.context.push(this.braceIsBlock(prevType) ? types.b_stat : types.b_expr); - this.exprAllowed = true; - }; - - types$1.dollarBraceL.updateContext = function() { - this.context.push(types.b_tmpl); - this.exprAllowed = true; - }; - - types$1.parenL.updateContext = function(prevType) { - var statementParens = prevType === types$1._if || prevType === types$1._for || prevType === types$1._with || prevType === types$1._while; - this.context.push(statementParens ? types.p_stat : types.p_expr); - this.exprAllowed = true; - }; - - types$1.incDec.updateContext = function() { - // tokExprAllowed stays unchanged - }; - - types$1._function.updateContext = types$1._class.updateContext = function(prevType) { - if (prevType.beforeExpr && prevType !== types$1._else && - !(prevType === types$1.semi && this.curContext() !== types.p_stat) && - !(prevType === types$1._return && lineBreak.test(this.input.slice(this.lastTokEnd, this.start))) && - !((prevType === types$1.colon || prevType === types$1.braceL) && this.curContext() === types.b_stat)) - { this.context.push(types.f_expr); } - else - { this.context.push(types.f_stat); } - this.exprAllowed = false; - }; - - types$1.colon.updateContext = function() { - if (this.curContext().token === "function") { this.context.pop(); } - this.exprAllowed = true; - }; - - types$1.backQuote.updateContext = function() { - if (this.curContext() === types.q_tmpl) - { this.context.pop(); } - else - { this.context.push(types.q_tmpl); } - this.exprAllowed = false; - }; - - types$1.star.updateContext = function(prevType) { - if (prevType === types$1._function) { - var index = this.context.length - 1; - if (this.context[index] === types.f_expr) - { this.context[index] = types.f_expr_gen; } - else - { this.context[index] = types.f_gen; } - } - this.exprAllowed = true; - }; - - types$1.name.updateContext = function(prevType) { - var allowed = false; - if (this.options.ecmaVersion >= 6 && prevType !== types$1.dot) { - if (this.value === "of" && !this.exprAllowed || - this.value === "yield" && this.inGeneratorContext()) - { allowed = true; } - } - this.exprAllowed = allowed; - }; - - // A recursive descent parser operates by defining functions for all - // syntactic elements, and recursively calling those, each function - // advancing the input stream and returning an AST node. Precedence - // of constructs (for example, the fact that `!x[1]` means `!(x[1])` - // instead of `(!x)[1]` is handled by the fact that the parser - // function that parses unary prefix operators is called first, and - // in turn calls the function that parses `[]` subscripts — that - // way, it'll receive the node for `x[1]` already parsed, and wraps - // *that* in the unary operator node. - // - // Acorn uses an [operator precedence parser][opp] to handle binary - // operator precedence, because it is much more compact than using - // the technique outlined above, which uses different, nesting - // functions to specify precedence, for all of the ten binary - // precedence levels that JavaScript defines. - // - // [opp]: http://en.wikipedia.org/wiki/Operator-precedence_parser - - - var pp$5 = Parser.prototype; - - // Check if property name clashes with already added. - // Object/class getters and setters are not allowed to clash — - // either with each other or with an init property — and in - // strict mode, init properties are also not allowed to be repeated. - - pp$5.checkPropClash = function(prop, propHash, refDestructuringErrors) { - if (this.options.ecmaVersion >= 9 && prop.type === "SpreadElement") - { return } - if (this.options.ecmaVersion >= 6 && (prop.computed || prop.method || prop.shorthand)) - { return } - var key = prop.key; - var name; - switch (key.type) { - case "Identifier": name = key.name; break - case "Literal": name = String(key.value); break - default: return - } - var kind = prop.kind; - if (this.options.ecmaVersion >= 6) { - if (name === "__proto__" && kind === "init") { - if (propHash.proto) { - if (refDestructuringErrors) { - if (refDestructuringErrors.doubleProto < 0) { - refDestructuringErrors.doubleProto = key.start; - } - } else { - this.raiseRecoverable(key.start, "Redefinition of __proto__ property"); - } - } - propHash.proto = true; - } - return - } - name = "$" + name; - var other = propHash[name]; - if (other) { - var redefinition; - if (kind === "init") { - redefinition = this.strict && other.init || other.get || other.set; - } else { - redefinition = other.init || other[kind]; - } - if (redefinition) - { this.raiseRecoverable(key.start, "Redefinition of property"); } - } else { - other = propHash[name] = { - init: false, - get: false, - set: false - }; - } - other[kind] = true; - }; - - // ### Expression parsing - - // These nest, from the most general expression type at the top to - // 'atomic', nondivisible expression types at the bottom. Most of - // the functions will simply let the function(s) below them parse, - // and, *if* the syntactic construct they handle is present, wrap - // the AST node that the inner parser gave them in another node. - - // Parse a full expression. The optional arguments are used to - // forbid the `in` operator (in for loops initalization expressions) - // and provide reference for storing '=' operator inside shorthand - // property assignment in contexts where both object expression - // and object pattern might appear (so it's possible to raise - // delayed syntax error at correct position). - - pp$5.parseExpression = function(forInit, refDestructuringErrors) { - var startPos = this.start, startLoc = this.startLoc; - var expr = this.parseMaybeAssign(forInit, refDestructuringErrors); - if (this.type === types$1.comma) { - var node = this.startNodeAt(startPos, startLoc); - node.expressions = [expr]; - while (this.eat(types$1.comma)) { node.expressions.push(this.parseMaybeAssign(forInit, refDestructuringErrors)); } - return this.finishNode(node, "SequenceExpression") - } - return expr - }; - - // Parse an assignment expression. This includes applications of - // operators like `+=`. - - pp$5.parseMaybeAssign = function(forInit, refDestructuringErrors, afterLeftParse) { - if (this.isContextual("yield")) { - if (this.inGenerator) { return this.parseYield(forInit) } - // The tokenizer will assume an expression is allowed after - // `yield`, but this isn't that kind of yield - else { this.exprAllowed = false; } - } - - var ownDestructuringErrors = false, oldParenAssign = -1, oldTrailingComma = -1, oldDoubleProto = -1; - if (refDestructuringErrors) { - oldParenAssign = refDestructuringErrors.parenthesizedAssign; - oldTrailingComma = refDestructuringErrors.trailingComma; - oldDoubleProto = refDestructuringErrors.doubleProto; - refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = -1; - } else { - refDestructuringErrors = new DestructuringErrors; - ownDestructuringErrors = true; - } - - var startPos = this.start, startLoc = this.startLoc; - if (this.type === types$1.parenL || this.type === types$1.name) { - this.potentialArrowAt = this.start; - this.potentialArrowInForAwait = forInit === "await"; - } - var left = this.parseMaybeConditional(forInit, refDestructuringErrors); - if (afterLeftParse) { left = afterLeftParse.call(this, left, startPos, startLoc); } - if (this.type.isAssign) { - var node = this.startNodeAt(startPos, startLoc); - node.operator = this.value; - if (this.type === types$1.eq) - { left = this.toAssignable(left, false, refDestructuringErrors); } - if (!ownDestructuringErrors) { - refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = refDestructuringErrors.doubleProto = -1; - } - if (refDestructuringErrors.shorthandAssign >= left.start) - { refDestructuringErrors.shorthandAssign = -1; } // reset because shorthand default was used correctly - if (this.type === types$1.eq) - { this.checkLValPattern(left); } - else - { this.checkLValSimple(left); } - node.left = left; - this.next(); - node.right = this.parseMaybeAssign(forInit); - if (oldDoubleProto > -1) { refDestructuringErrors.doubleProto = oldDoubleProto; } - return this.finishNode(node, "AssignmentExpression") - } else { - if (ownDestructuringErrors) { this.checkExpressionErrors(refDestructuringErrors, true); } - } - if (oldParenAssign > -1) { refDestructuringErrors.parenthesizedAssign = oldParenAssign; } - if (oldTrailingComma > -1) { refDestructuringErrors.trailingComma = oldTrailingComma; } - return left - }; - - // Parse a ternary conditional (`?:`) operator. - - pp$5.parseMaybeConditional = function(forInit, refDestructuringErrors) { - var startPos = this.start, startLoc = this.startLoc; - var expr = this.parseExprOps(forInit, refDestructuringErrors); - if (this.checkExpressionErrors(refDestructuringErrors)) { return expr } - if (this.eat(types$1.question)) { - var node = this.startNodeAt(startPos, startLoc); - node.test = expr; - node.consequent = this.parseMaybeAssign(); - this.expect(types$1.colon); - node.alternate = this.parseMaybeAssign(forInit); - return this.finishNode(node, "ConditionalExpression") - } - return expr - }; - - // Start the precedence parser. - - pp$5.parseExprOps = function(forInit, refDestructuringErrors) { - var startPos = this.start, startLoc = this.startLoc; - var expr = this.parseMaybeUnary(refDestructuringErrors, false, false, forInit); - if (this.checkExpressionErrors(refDestructuringErrors)) { return expr } - return expr.start === startPos && expr.type === "ArrowFunctionExpression" ? expr : this.parseExprOp(expr, startPos, startLoc, -1, forInit) - }; - - // Parse binary operators with the operator precedence parsing - // algorithm. `left` is the left-hand side of the operator. - // `minPrec` provides context that allows the function to stop and - // defer further parser to one of its callers when it encounters an - // operator that has a lower precedence than the set it is parsing. - - pp$5.parseExprOp = function(left, leftStartPos, leftStartLoc, minPrec, forInit) { - var prec = this.type.binop; - if (prec != null && (!forInit || this.type !== types$1._in)) { - if (prec > minPrec) { - var logical = this.type === types$1.logicalOR || this.type === types$1.logicalAND; - var coalesce = this.type === types$1.coalesce; - if (coalesce) { - // Handle the precedence of `tt.coalesce` as equal to the range of logical expressions. - // In other words, `node.right` shouldn't contain logical expressions in order to check the mixed error. - prec = types$1.logicalAND.binop; - } - var op = this.value; - this.next(); - var startPos = this.start, startLoc = this.startLoc; - var right = this.parseExprOp(this.parseMaybeUnary(null, false, false, forInit), startPos, startLoc, prec, forInit); - var node = this.buildBinary(leftStartPos, leftStartLoc, left, right, op, logical || coalesce); - if ((logical && this.type === types$1.coalesce) || (coalesce && (this.type === types$1.logicalOR || this.type === types$1.logicalAND))) { - this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"); - } - return this.parseExprOp(node, leftStartPos, leftStartLoc, minPrec, forInit) - } - } - return left - }; - - pp$5.buildBinary = function(startPos, startLoc, left, right, op, logical) { - if (right.type === "PrivateIdentifier") { this.raise(right.start, "Private identifier can only be left side of binary expression"); } - var node = this.startNodeAt(startPos, startLoc); - node.left = left; - node.operator = op; - node.right = right; - return this.finishNode(node, logical ? "LogicalExpression" : "BinaryExpression") - }; - - // Parse unary operators, both prefix and postfix. - - pp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forInit) { - var startPos = this.start, startLoc = this.startLoc, expr; - if (this.isContextual("await") && this.canAwait) { - expr = this.parseAwait(forInit); - sawUnary = true; - } else if (this.type.prefix) { - var node = this.startNode(), update = this.type === types$1.incDec; - node.operator = this.value; - node.prefix = true; - this.next(); - node.argument = this.parseMaybeUnary(null, true, update, forInit); - this.checkExpressionErrors(refDestructuringErrors, true); - if (update) { this.checkLValSimple(node.argument); } - else if (this.strict && node.operator === "delete" && isLocalVariableAccess(node.argument)) - { this.raiseRecoverable(node.start, "Deleting local variable in strict mode"); } - else if (node.operator === "delete" && isPrivateFieldAccess(node.argument)) - { this.raiseRecoverable(node.start, "Private fields can not be deleted"); } - else { sawUnary = true; } - expr = this.finishNode(node, update ? "UpdateExpression" : "UnaryExpression"); - } else if (!sawUnary && this.type === types$1.privateId) { - if ((forInit || this.privateNameStack.length === 0) && this.options.checkPrivateFields) { this.unexpected(); } - expr = this.parsePrivateIdent(); - // only could be private fields in 'in', such as #x in obj - if (this.type !== types$1._in) { this.unexpected(); } - } else { - expr = this.parseExprSubscripts(refDestructuringErrors, forInit); - if (this.checkExpressionErrors(refDestructuringErrors)) { return expr } - while (this.type.postfix && !this.canInsertSemicolon()) { - var node$1 = this.startNodeAt(startPos, startLoc); - node$1.operator = this.value; - node$1.prefix = false; - node$1.argument = expr; - this.checkLValSimple(expr); - this.next(); - expr = this.finishNode(node$1, "UpdateExpression"); - } - } - - if (!incDec && this.eat(types$1.starstar)) { - if (sawUnary) - { this.unexpected(this.lastTokStart); } - else - { return this.buildBinary(startPos, startLoc, expr, this.parseMaybeUnary(null, false, false, forInit), "**", false) } - } else { - return expr - } - }; - - function isLocalVariableAccess(node) { - return ( - node.type === "Identifier" || - node.type === "ParenthesizedExpression" && isLocalVariableAccess(node.expression) - ) - } - - function isPrivateFieldAccess(node) { - return ( - node.type === "MemberExpression" && node.property.type === "PrivateIdentifier" || - node.type === "ChainExpression" && isPrivateFieldAccess(node.expression) || - node.type === "ParenthesizedExpression" && isPrivateFieldAccess(node.expression) - ) - } - - // Parse call, dot, and `[]`-subscript expressions. - - pp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) { - var startPos = this.start, startLoc = this.startLoc; - var expr = this.parseExprAtom(refDestructuringErrors, forInit); - if (expr.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")") - { return expr } - var result = this.parseSubscripts(expr, startPos, startLoc, false, forInit); - if (refDestructuringErrors && result.type === "MemberExpression") { - if (refDestructuringErrors.parenthesizedAssign >= result.start) { refDestructuringErrors.parenthesizedAssign = -1; } - if (refDestructuringErrors.parenthesizedBind >= result.start) { refDestructuringErrors.parenthesizedBind = -1; } - if (refDestructuringErrors.trailingComma >= result.start) { refDestructuringErrors.trailingComma = -1; } - } - return result - }; - - pp$5.parseSubscripts = function(base, startPos, startLoc, noCalls, forInit) { - var maybeAsyncArrow = this.options.ecmaVersion >= 8 && base.type === "Identifier" && base.name === "async" && - this.lastTokEnd === base.end && !this.canInsertSemicolon() && base.end - base.start === 5 && - this.potentialArrowAt === base.start; - var optionalChained = false; - - while (true) { - var element = this.parseSubscript(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit); - - if (element.optional) { optionalChained = true; } - if (element === base || element.type === "ArrowFunctionExpression") { - if (optionalChained) { - var chainNode = this.startNodeAt(startPos, startLoc); - chainNode.expression = element; - element = this.finishNode(chainNode, "ChainExpression"); - } - return element - } - - base = element; - } - }; - - pp$5.shouldParseAsyncArrow = function() { - return !this.canInsertSemicolon() && this.eat(types$1.arrow) - }; - - pp$5.parseSubscriptAsyncArrow = function(startPos, startLoc, exprList, forInit) { - return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, true, forInit) - }; - - pp$5.parseSubscript = function(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) { - var optionalSupported = this.options.ecmaVersion >= 11; - var optional = optionalSupported && this.eat(types$1.questionDot); - if (noCalls && optional) { this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions"); } - - var computed = this.eat(types$1.bracketL); - if (computed || (optional && this.type !== types$1.parenL && this.type !== types$1.backQuote) || this.eat(types$1.dot)) { - var node = this.startNodeAt(startPos, startLoc); - node.object = base; - if (computed) { - node.property = this.parseExpression(); - this.expect(types$1.bracketR); - } else if (this.type === types$1.privateId && base.type !== "Super") { - node.property = this.parsePrivateIdent(); - } else { - node.property = this.parseIdent(this.options.allowReserved !== "never"); - } - node.computed = !!computed; - if (optionalSupported) { - node.optional = optional; - } - base = this.finishNode(node, "MemberExpression"); - } else if (!noCalls && this.eat(types$1.parenL)) { - var refDestructuringErrors = new DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos; - this.yieldPos = 0; - this.awaitPos = 0; - this.awaitIdentPos = 0; - var exprList = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false, refDestructuringErrors); - if (maybeAsyncArrow && !optional && this.shouldParseAsyncArrow()) { - this.checkPatternErrors(refDestructuringErrors, false); - this.checkYieldAwaitInDefaultParams(); - if (this.awaitIdentPos > 0) - { this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"); } - this.yieldPos = oldYieldPos; - this.awaitPos = oldAwaitPos; - this.awaitIdentPos = oldAwaitIdentPos; - return this.parseSubscriptAsyncArrow(startPos, startLoc, exprList, forInit) - } - this.checkExpressionErrors(refDestructuringErrors, true); - this.yieldPos = oldYieldPos || this.yieldPos; - this.awaitPos = oldAwaitPos || this.awaitPos; - this.awaitIdentPos = oldAwaitIdentPos || this.awaitIdentPos; - var node$1 = this.startNodeAt(startPos, startLoc); - node$1.callee = base; - node$1.arguments = exprList; - if (optionalSupported) { - node$1.optional = optional; - } - base = this.finishNode(node$1, "CallExpression"); - } else if (this.type === types$1.backQuote) { - if (optional || optionalChained) { - this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions"); - } - var node$2 = this.startNodeAt(startPos, startLoc); - node$2.tag = base; - node$2.quasi = this.parseTemplate({isTagged: true}); - base = this.finishNode(node$2, "TaggedTemplateExpression"); - } - return base - }; - - // Parse an atomic expression — either a single token that is an - // expression, an expression started by a keyword like `function` or - // `new`, or an expression wrapped in punctuation like `()`, `[]`, - // or `{}`. - - pp$5.parseExprAtom = function(refDestructuringErrors, forInit, forNew) { - // If a division operator appears in an expression position, the - // tokenizer got confused, and we force it to read a regexp instead. - if (this.type === types$1.slash) { this.readRegexp(); } - - var node, canBeArrow = this.potentialArrowAt === this.start; - switch (this.type) { - case types$1._super: - if (!this.allowSuper) - { this.raise(this.start, "'super' keyword outside a method"); } - node = this.startNode(); - this.next(); - if (this.type === types$1.parenL && !this.allowDirectSuper) - { this.raise(node.start, "super() call outside constructor of a subclass"); } - // The `super` keyword can appear at below: - // SuperProperty: - // super [ Expression ] - // super . IdentifierName - // SuperCall: - // super ( Arguments ) - if (this.type !== types$1.dot && this.type !== types$1.bracketL && this.type !== types$1.parenL) - { this.unexpected(); } - return this.finishNode(node, "Super") - - case types$1._this: - node = this.startNode(); - this.next(); - return this.finishNode(node, "ThisExpression") - - case types$1.name: - var startPos = this.start, startLoc = this.startLoc, containsEsc = this.containsEsc; - var id = this.parseIdent(false); - if (this.options.ecmaVersion >= 8 && !containsEsc && id.name === "async" && !this.canInsertSemicolon() && this.eat(types$1._function)) { - this.overrideContext(types.f_expr); - return this.parseFunction(this.startNodeAt(startPos, startLoc), 0, false, true, forInit) - } - if (canBeArrow && !this.canInsertSemicolon()) { - if (this.eat(types$1.arrow)) - { return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id], false, forInit) } - if (this.options.ecmaVersion >= 8 && id.name === "async" && this.type === types$1.name && !containsEsc && - (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc)) { - id = this.parseIdent(false); - if (this.canInsertSemicolon() || !this.eat(types$1.arrow)) - { this.unexpected(); } - return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id], true, forInit) - } - } - return id - - case types$1.regexp: - var value = this.value; - node = this.parseLiteral(value.value); - node.regex = {pattern: value.pattern, flags: value.flags}; - return node - - case types$1.num: case types$1.string: - return this.parseLiteral(this.value) - - case types$1._null: case types$1._true: case types$1._false: - node = this.startNode(); - node.value = this.type === types$1._null ? null : this.type === types$1._true; - node.raw = this.type.keyword; - this.next(); - return this.finishNode(node, "Literal") - - case types$1.parenL: - var start = this.start, expr = this.parseParenAndDistinguishExpression(canBeArrow, forInit); - if (refDestructuringErrors) { - if (refDestructuringErrors.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(expr)) - { refDestructuringErrors.parenthesizedAssign = start; } - if (refDestructuringErrors.parenthesizedBind < 0) - { refDestructuringErrors.parenthesizedBind = start; } - } - return expr - - case types$1.bracketL: - node = this.startNode(); - this.next(); - node.elements = this.parseExprList(types$1.bracketR, true, true, refDestructuringErrors); - return this.finishNode(node, "ArrayExpression") - - case types$1.braceL: - this.overrideContext(types.b_expr); - return this.parseObj(false, refDestructuringErrors) - - case types$1._function: - node = this.startNode(); - this.next(); - return this.parseFunction(node, 0) - - case types$1._class: - return this.parseClass(this.startNode(), false) - - case types$1._new: - return this.parseNew() - - case types$1.backQuote: - return this.parseTemplate() - - case types$1._import: - if (this.options.ecmaVersion >= 11) { - return this.parseExprImport(forNew) - } else { - return this.unexpected() - } - - default: - return this.parseExprAtomDefault() - } - }; - - pp$5.parseExprAtomDefault = function() { - this.unexpected(); - }; - - pp$5.parseExprImport = function(forNew) { - var node = this.startNode(); - - // Consume `import` as an identifier for `import.meta`. - // Because `this.parseIdent(true)` doesn't check escape sequences, it needs the check of `this.containsEsc`. - if (this.containsEsc) { this.raiseRecoverable(this.start, "Escape sequence in keyword import"); } - this.next(); - - if (this.type === types$1.parenL && !forNew) { - return this.parseDynamicImport(node) - } else if (this.type === types$1.dot) { - var meta = this.startNodeAt(node.start, node.loc && node.loc.start); - meta.name = "import"; - node.meta = this.finishNode(meta, "Identifier"); - return this.parseImportMeta(node) - } else { - this.unexpected(); - } - }; - - pp$5.parseDynamicImport = function(node) { - this.next(); // skip `(` - - // Parse node.source. - node.source = this.parseMaybeAssign(); - - // Verify ending. - if (!this.eat(types$1.parenR)) { - var errorPos = this.start; - if (this.eat(types$1.comma) && this.eat(types$1.parenR)) { - this.raiseRecoverable(errorPos, "Trailing comma is not allowed in import()"); - } else { - this.unexpected(errorPos); - } - } - - return this.finishNode(node, "ImportExpression") - }; - - pp$5.parseImportMeta = function(node) { - this.next(); // skip `.` - - var containsEsc = this.containsEsc; - node.property = this.parseIdent(true); - - if (node.property.name !== "meta") - { this.raiseRecoverable(node.property.start, "The only valid meta property for import is 'import.meta'"); } - if (containsEsc) - { this.raiseRecoverable(node.start, "'import.meta' must not contain escaped characters"); } - if (this.options.sourceType !== "module" && !this.options.allowImportExportEverywhere) - { this.raiseRecoverable(node.start, "Cannot use 'import.meta' outside a module"); } - - return this.finishNode(node, "MetaProperty") - }; - - pp$5.parseLiteral = function(value) { - var node = this.startNode(); - node.value = value; - node.raw = this.input.slice(this.start, this.end); - if (node.raw.charCodeAt(node.raw.length - 1) === 110) { node.bigint = node.raw.slice(0, -1).replace(/_/g, ""); } - this.next(); - return this.finishNode(node, "Literal") - }; - - pp$5.parseParenExpression = function() { - this.expect(types$1.parenL); - var val = this.parseExpression(); - this.expect(types$1.parenR); - return val - }; - - pp$5.shouldParseArrow = function(exprList) { - return !this.canInsertSemicolon() - }; - - pp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) { - var startPos = this.start, startLoc = this.startLoc, val, allowTrailingComma = this.options.ecmaVersion >= 8; - if (this.options.ecmaVersion >= 6) { - this.next(); - - var innerStartPos = this.start, innerStartLoc = this.startLoc; - var exprList = [], first = true, lastIsComma = false; - var refDestructuringErrors = new DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, spreadStart; - this.yieldPos = 0; - this.awaitPos = 0; - // Do not save awaitIdentPos to allow checking awaits nested in parameters - while (this.type !== types$1.parenR) { - first ? first = false : this.expect(types$1.comma); - if (allowTrailingComma && this.afterTrailingComma(types$1.parenR, true)) { - lastIsComma = true; - break - } else if (this.type === types$1.ellipsis) { - spreadStart = this.start; - exprList.push(this.parseParenItem(this.parseRestBinding())); - if (this.type === types$1.comma) { - this.raiseRecoverable( - this.start, - "Comma is not permitted after the rest element" - ); - } - break - } else { - exprList.push(this.parseMaybeAssign(false, refDestructuringErrors, this.parseParenItem)); - } - } - var innerEndPos = this.lastTokEnd, innerEndLoc = this.lastTokEndLoc; - this.expect(types$1.parenR); - - if (canBeArrow && this.shouldParseArrow(exprList) && this.eat(types$1.arrow)) { - this.checkPatternErrors(refDestructuringErrors, false); - this.checkYieldAwaitInDefaultParams(); - this.yieldPos = oldYieldPos; - this.awaitPos = oldAwaitPos; - return this.parseParenArrowList(startPos, startLoc, exprList, forInit) - } - - if (!exprList.length || lastIsComma) { this.unexpected(this.lastTokStart); } - if (spreadStart) { this.unexpected(spreadStart); } - this.checkExpressionErrors(refDestructuringErrors, true); - this.yieldPos = oldYieldPos || this.yieldPos; - this.awaitPos = oldAwaitPos || this.awaitPos; - - if (exprList.length > 1) { - val = this.startNodeAt(innerStartPos, innerStartLoc); - val.expressions = exprList; - this.finishNodeAt(val, "SequenceExpression", innerEndPos, innerEndLoc); - } else { - val = exprList[0]; - } - } else { - val = this.parseParenExpression(); - } - - if (this.options.preserveParens) { - var par = this.startNodeAt(startPos, startLoc); - par.expression = val; - return this.finishNode(par, "ParenthesizedExpression") - } else { - return val - } - }; - - pp$5.parseParenItem = function(item) { - return item - }; - - pp$5.parseParenArrowList = function(startPos, startLoc, exprList, forInit) { - return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, false, forInit) - }; - - // New's precedence is slightly tricky. It must allow its argument to - // be a `[]` or dot subscript expression, but not a call — at least, - // not without wrapping it in parentheses. Thus, it uses the noCalls - // argument to parseSubscripts to prevent it from consuming the - // argument list. - - var empty = []; - - pp$5.parseNew = function() { - if (this.containsEsc) { this.raiseRecoverable(this.start, "Escape sequence in keyword new"); } - var node = this.startNode(); - this.next(); - if (this.options.ecmaVersion >= 6 && this.type === types$1.dot) { - var meta = this.startNodeAt(node.start, node.loc && node.loc.start); - meta.name = "new"; - node.meta = this.finishNode(meta, "Identifier"); - this.next(); - var containsEsc = this.containsEsc; - node.property = this.parseIdent(true); - if (node.property.name !== "target") - { this.raiseRecoverable(node.property.start, "The only valid meta property for new is 'new.target'"); } - if (containsEsc) - { this.raiseRecoverable(node.start, "'new.target' must not contain escaped characters"); } - if (!this.allowNewDotTarget) - { this.raiseRecoverable(node.start, "'new.target' can only be used in functions and class static block"); } - return this.finishNode(node, "MetaProperty") - } - var startPos = this.start, startLoc = this.startLoc; - node.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), startPos, startLoc, true, false); - if (this.eat(types$1.parenL)) { node.arguments = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false); } - else { node.arguments = empty; } - return this.finishNode(node, "NewExpression") - }; - - // Parse template expression. - - pp$5.parseTemplateElement = function(ref) { - var isTagged = ref.isTagged; - - var elem = this.startNode(); - if (this.type === types$1.invalidTemplate) { - if (!isTagged) { - this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"); - } - elem.value = { - raw: this.value.replace(/\r\n?/g, "\n"), - cooked: null - }; - } else { - elem.value = { - raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, "\n"), - cooked: this.value - }; - } - this.next(); - elem.tail = this.type === types$1.backQuote; - return this.finishNode(elem, "TemplateElement") - }; - - pp$5.parseTemplate = function(ref) { - if ( ref === void 0 ) ref = {}; - var isTagged = ref.isTagged; if ( isTagged === void 0 ) isTagged = false; - - var node = this.startNode(); - this.next(); - node.expressions = []; - var curElt = this.parseTemplateElement({isTagged: isTagged}); - node.quasis = [curElt]; - while (!curElt.tail) { - if (this.type === types$1.eof) { this.raise(this.pos, "Unterminated template literal"); } - this.expect(types$1.dollarBraceL); - node.expressions.push(this.parseExpression()); - this.expect(types$1.braceR); - node.quasis.push(curElt = this.parseTemplateElement({isTagged: isTagged})); - } - this.next(); - return this.finishNode(node, "TemplateLiteral") - }; - - pp$5.isAsyncProp = function(prop) { - return !prop.computed && prop.key.type === "Identifier" && prop.key.name === "async" && - (this.type === types$1.name || this.type === types$1.num || this.type === types$1.string || this.type === types$1.bracketL || this.type.keyword || (this.options.ecmaVersion >= 9 && this.type === types$1.star)) && - !lineBreak.test(this.input.slice(this.lastTokEnd, this.start)) - }; - - // Parse an object literal or binding pattern. - - pp$5.parseObj = function(isPattern, refDestructuringErrors) { - var node = this.startNode(), first = true, propHash = {}; - node.properties = []; - this.next(); - while (!this.eat(types$1.braceR)) { - if (!first) { - this.expect(types$1.comma); - if (this.options.ecmaVersion >= 5 && this.afterTrailingComma(types$1.braceR)) { break } - } else { first = false; } - - var prop = this.parseProperty(isPattern, refDestructuringErrors); - if (!isPattern) { this.checkPropClash(prop, propHash, refDestructuringErrors); } - node.properties.push(prop); - } - return this.finishNode(node, isPattern ? "ObjectPattern" : "ObjectExpression") - }; - - pp$5.parseProperty = function(isPattern, refDestructuringErrors) { - var prop = this.startNode(), isGenerator, isAsync, startPos, startLoc; - if (this.options.ecmaVersion >= 9 && this.eat(types$1.ellipsis)) { - if (isPattern) { - prop.argument = this.parseIdent(false); - if (this.type === types$1.comma) { - this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"); - } - return this.finishNode(prop, "RestElement") - } - // Parse argument. - prop.argument = this.parseMaybeAssign(false, refDestructuringErrors); - // To disallow trailing comma via `this.toAssignable()`. - if (this.type === types$1.comma && refDestructuringErrors && refDestructuringErrors.trailingComma < 0) { - refDestructuringErrors.trailingComma = this.start; - } - // Finish - return this.finishNode(prop, "SpreadElement") - } - if (this.options.ecmaVersion >= 6) { - prop.method = false; - prop.shorthand = false; - if (isPattern || refDestructuringErrors) { - startPos = this.start; - startLoc = this.startLoc; - } - if (!isPattern) - { isGenerator = this.eat(types$1.star); } - } - var containsEsc = this.containsEsc; - this.parsePropertyName(prop); - if (!isPattern && !containsEsc && this.options.ecmaVersion >= 8 && !isGenerator && this.isAsyncProp(prop)) { - isAsync = true; - isGenerator = this.options.ecmaVersion >= 9 && this.eat(types$1.star); - this.parsePropertyName(prop); - } else { - isAsync = false; - } - this.parsePropertyValue(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc); - return this.finishNode(prop, "Property") - }; - - pp$5.parseGetterSetter = function(prop) { - prop.kind = prop.key.name; - this.parsePropertyName(prop); - prop.value = this.parseMethod(false); - var paramCount = prop.kind === "get" ? 0 : 1; - if (prop.value.params.length !== paramCount) { - var start = prop.value.start; - if (prop.kind === "get") - { this.raiseRecoverable(start, "getter should have no params"); } - else - { this.raiseRecoverable(start, "setter should have exactly one param"); } - } else { - if (prop.kind === "set" && prop.value.params[0].type === "RestElement") - { this.raiseRecoverable(prop.value.params[0].start, "Setter cannot use rest params"); } - } - }; - - pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) { - if ((isGenerator || isAsync) && this.type === types$1.colon) - { this.unexpected(); } - - if (this.eat(types$1.colon)) { - prop.value = isPattern ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(false, refDestructuringErrors); - prop.kind = "init"; - } else if (this.options.ecmaVersion >= 6 && this.type === types$1.parenL) { - if (isPattern) { this.unexpected(); } - prop.kind = "init"; - prop.method = true; - prop.value = this.parseMethod(isGenerator, isAsync); - } else if (!isPattern && !containsEsc && - this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === "Identifier" && - (prop.key.name === "get" || prop.key.name === "set") && - (this.type !== types$1.comma && this.type !== types$1.braceR && this.type !== types$1.eq)) { - if (isGenerator || isAsync) { this.unexpected(); } - this.parseGetterSetter(prop); - } else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === "Identifier") { - if (isGenerator || isAsync) { this.unexpected(); } - this.checkUnreserved(prop.key); - if (prop.key.name === "await" && !this.awaitIdentPos) - { this.awaitIdentPos = startPos; } - prop.kind = "init"; - if (isPattern) { - prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key)); - } else if (this.type === types$1.eq && refDestructuringErrors) { - if (refDestructuringErrors.shorthandAssign < 0) - { refDestructuringErrors.shorthandAssign = this.start; } - prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key)); - } else { - prop.value = this.copyNode(prop.key); - } - prop.shorthand = true; - } else { this.unexpected(); } - }; - - pp$5.parsePropertyName = function(prop) { - if (this.options.ecmaVersion >= 6) { - if (this.eat(types$1.bracketL)) { - prop.computed = true; - prop.key = this.parseMaybeAssign(); - this.expect(types$1.bracketR); - return prop.key - } else { - prop.computed = false; - } - } - return prop.key = this.type === types$1.num || this.type === types$1.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never") - }; - - // Initialize empty function node. - - pp$5.initFunction = function(node) { - node.id = null; - if (this.options.ecmaVersion >= 6) { node.generator = node.expression = false; } - if (this.options.ecmaVersion >= 8) { node.async = false; } - }; - - // Parse object or class method. - - pp$5.parseMethod = function(isGenerator, isAsync, allowDirectSuper) { - var node = this.startNode(), oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos; - - this.initFunction(node); - if (this.options.ecmaVersion >= 6) - { node.generator = isGenerator; } - if (this.options.ecmaVersion >= 8) - { node.async = !!isAsync; } - - this.yieldPos = 0; - this.awaitPos = 0; - this.awaitIdentPos = 0; - this.enterScope(functionFlags(isAsync, node.generator) | SCOPE_SUPER | (allowDirectSuper ? SCOPE_DIRECT_SUPER : 0)); - - this.expect(types$1.parenL); - node.params = this.parseBindingList(types$1.parenR, false, this.options.ecmaVersion >= 8); - this.checkYieldAwaitInDefaultParams(); - this.parseFunctionBody(node, false, true, false); - - this.yieldPos = oldYieldPos; - this.awaitPos = oldAwaitPos; - this.awaitIdentPos = oldAwaitIdentPos; - return this.finishNode(node, "FunctionExpression") - }; - - // Parse arrow function expression with given parameters. - - pp$5.parseArrowExpression = function(node, params, isAsync, forInit) { - var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos; - - this.enterScope(functionFlags(isAsync, false) | SCOPE_ARROW); - this.initFunction(node); - if (this.options.ecmaVersion >= 8) { node.async = !!isAsync; } - - this.yieldPos = 0; - this.awaitPos = 0; - this.awaitIdentPos = 0; - - node.params = this.toAssignableList(params, true); - this.parseFunctionBody(node, true, false, forInit); - - this.yieldPos = oldYieldPos; - this.awaitPos = oldAwaitPos; - this.awaitIdentPos = oldAwaitIdentPos; - return this.finishNode(node, "ArrowFunctionExpression") - }; - - // Parse function body and check parameters. - - pp$5.parseFunctionBody = function(node, isArrowFunction, isMethod, forInit) { - var isExpression = isArrowFunction && this.type !== types$1.braceL; - var oldStrict = this.strict, useStrict = false; - - if (isExpression) { - node.body = this.parseMaybeAssign(forInit); - node.expression = true; - this.checkParams(node, false); - } else { - var nonSimple = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(node.params); - if (!oldStrict || nonSimple) { - useStrict = this.strictDirective(this.end); - // If this is a strict mode function, verify that argument names - // are not repeated, and it does not try to bind the words `eval` - // or `arguments`. - if (useStrict && nonSimple) - { this.raiseRecoverable(node.start, "Illegal 'use strict' directive in function with non-simple parameter list"); } - } - // Start a new scope with regard to labels and the `inFunction` - // flag (restore them to their old value afterwards). - var oldLabels = this.labels; - this.labels = []; - if (useStrict) { this.strict = true; } - - // Add the params to varDeclaredNames to ensure that an error is thrown - // if a let/const declaration in the function clashes with one of the params. - this.checkParams(node, !oldStrict && !useStrict && !isArrowFunction && !isMethod && this.isSimpleParamList(node.params)); - // Ensure the function name isn't a forbidden identifier in strict mode, e.g. 'eval' - if (this.strict && node.id) { this.checkLValSimple(node.id, BIND_OUTSIDE); } - node.body = this.parseBlock(false, undefined, useStrict && !oldStrict); - node.expression = false; - this.adaptDirectivePrologue(node.body.body); - this.labels = oldLabels; - } - this.exitScope(); - }; - - pp$5.isSimpleParamList = function(params) { - for (var i = 0, list = params; i < list.length; i += 1) - { - var param = list[i]; - - if (param.type !== "Identifier") { return false - } } - return true - }; - - // Checks function params for various disallowed patterns such as using "eval" - // or "arguments" and duplicate parameters. - - pp$5.checkParams = function(node, allowDuplicates) { - var nameHash = Object.create(null); - for (var i = 0, list = node.params; i < list.length; i += 1) - { - var param = list[i]; - - this.checkLValInnerPattern(param, BIND_VAR, allowDuplicates ? null : nameHash); - } - }; - - // Parses a comma-separated list of expressions, and returns them as - // an array. `close` is the token type that ends the list, and - // `allowEmpty` can be turned on to allow subsequent commas with - // nothing in between them to be parsed as `null` (which is needed - // for array literals). - - pp$5.parseExprList = function(close, allowTrailingComma, allowEmpty, refDestructuringErrors) { - var elts = [], first = true; - while (!this.eat(close)) { - if (!first) { - this.expect(types$1.comma); - if (allowTrailingComma && this.afterTrailingComma(close)) { break } - } else { first = false; } - - var elt = (void 0); - if (allowEmpty && this.type === types$1.comma) - { elt = null; } - else if (this.type === types$1.ellipsis) { - elt = this.parseSpread(refDestructuringErrors); - if (refDestructuringErrors && this.type === types$1.comma && refDestructuringErrors.trailingComma < 0) - { refDestructuringErrors.trailingComma = this.start; } - } else { - elt = this.parseMaybeAssign(false, refDestructuringErrors); - } - elts.push(elt); - } - return elts - }; - - pp$5.checkUnreserved = function(ref) { - var start = ref.start; - var end = ref.end; - var name = ref.name; - - if (this.inGenerator && name === "yield") - { this.raiseRecoverable(start, "Cannot use 'yield' as identifier inside a generator"); } - if (this.inAsync && name === "await") - { this.raiseRecoverable(start, "Cannot use 'await' as identifier inside an async function"); } - if (this.currentThisScope().inClassFieldInit && name === "arguments") - { this.raiseRecoverable(start, "Cannot use 'arguments' in class field initializer"); } - if (this.inClassStaticBlock && (name === "arguments" || name === "await")) - { this.raise(start, ("Cannot use " + name + " in class static initialization block")); } - if (this.keywords.test(name)) - { this.raise(start, ("Unexpected keyword '" + name + "'")); } - if (this.options.ecmaVersion < 6 && - this.input.slice(start, end).indexOf("\\") !== -1) { return } - var re = this.strict ? this.reservedWordsStrict : this.reservedWords; - if (re.test(name)) { - if (!this.inAsync && name === "await") - { this.raiseRecoverable(start, "Cannot use keyword 'await' outside an async function"); } - this.raiseRecoverable(start, ("The keyword '" + name + "' is reserved")); - } - }; - - // Parse the next token as an identifier. If `liberal` is true (used - // when parsing properties), it will also convert keywords into - // identifiers. - - pp$5.parseIdent = function(liberal) { - var node = this.parseIdentNode(); - this.next(!!liberal); - this.finishNode(node, "Identifier"); - if (!liberal) { - this.checkUnreserved(node); - if (node.name === "await" && !this.awaitIdentPos) - { this.awaitIdentPos = node.start; } - } - return node - }; - - pp$5.parseIdentNode = function() { - var node = this.startNode(); - if (this.type === types$1.name) { - node.name = this.value; - } else if (this.type.keyword) { - node.name = this.type.keyword; - - // To fix https://github.com/acornjs/acorn/issues/575 - // `class` and `function` keywords push new context into this.context. - // But there is no chance to pop the context if the keyword is consumed as an identifier such as a property name. - // If the previous token is a dot, this does not apply because the context-managing code already ignored the keyword - if ((node.name === "class" || node.name === "function") && - (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46)) { - this.context.pop(); - } - this.type = types$1.name; - } else { - this.unexpected(); - } - return node - }; - - pp$5.parsePrivateIdent = function() { - var node = this.startNode(); - if (this.type === types$1.privateId) { - node.name = this.value; - } else { - this.unexpected(); - } - this.next(); - this.finishNode(node, "PrivateIdentifier"); - - // For validating existence - if (this.options.checkPrivateFields) { - if (this.privateNameStack.length === 0) { - this.raise(node.start, ("Private field '#" + (node.name) + "' must be declared in an enclosing class")); - } else { - this.privateNameStack[this.privateNameStack.length - 1].used.push(node); - } - } - - return node - }; - - // Parses yield expression inside generator. - - pp$5.parseYield = function(forInit) { - if (!this.yieldPos) { this.yieldPos = this.start; } - - var node = this.startNode(); - this.next(); - if (this.type === types$1.semi || this.canInsertSemicolon() || (this.type !== types$1.star && !this.type.startsExpr)) { - node.delegate = false; - node.argument = null; - } else { - node.delegate = this.eat(types$1.star); - node.argument = this.parseMaybeAssign(forInit); - } - return this.finishNode(node, "YieldExpression") - }; - - pp$5.parseAwait = function(forInit) { - if (!this.awaitPos) { this.awaitPos = this.start; } - - var node = this.startNode(); - this.next(); - node.argument = this.parseMaybeUnary(null, true, false, forInit); - return this.finishNode(node, "AwaitExpression") - }; - - var pp$4 = Parser.prototype; - - // This function is used to raise exceptions on parse errors. It - // takes an offset integer (into the current `input`) to indicate - // the location of the error, attaches the position to the end - // of the error message, and then raises a `SyntaxError` with that - // message. - - pp$4.raise = function(pos, message) { - var loc = getLineInfo(this.input, pos); - message += " (" + loc.line + ":" + loc.column + ")"; - var err = new SyntaxError(message); - err.pos = pos; err.loc = loc; err.raisedAt = this.pos; - throw err - }; - - pp$4.raiseRecoverable = pp$4.raise; - - pp$4.curPosition = function() { - if (this.options.locations) { - return new Position(this.curLine, this.pos - this.lineStart) - } - }; - - var pp$3 = Parser.prototype; - - var Scope = function Scope(flags) { - this.flags = flags; - // A list of var-declared names in the current lexical scope - this.var = []; - // A list of lexically-declared names in the current lexical scope - this.lexical = []; - // A list of lexically-declared FunctionDeclaration names in the current lexical scope - this.functions = []; - // A switch to disallow the identifier reference 'arguments' - this.inClassFieldInit = false; - }; - - // The functions in this module keep track of declared variables in the current scope in order to detect duplicate variable names. - - pp$3.enterScope = function(flags) { - this.scopeStack.push(new Scope(flags)); - }; - - pp$3.exitScope = function() { - this.scopeStack.pop(); - }; - - // The spec says: - // > At the top level of a function, or script, function declarations are - // > treated like var declarations rather than like lexical declarations. - pp$3.treatFunctionsAsVarInScope = function(scope) { - return (scope.flags & SCOPE_FUNCTION) || !this.inModule && (scope.flags & SCOPE_TOP) - }; - - pp$3.declareName = function(name, bindingType, pos) { - var redeclared = false; - if (bindingType === BIND_LEXICAL) { - var scope = this.currentScope(); - redeclared = scope.lexical.indexOf(name) > -1 || scope.functions.indexOf(name) > -1 || scope.var.indexOf(name) > -1; - scope.lexical.push(name); - if (this.inModule && (scope.flags & SCOPE_TOP)) - { delete this.undefinedExports[name]; } - } else if (bindingType === BIND_SIMPLE_CATCH) { - var scope$1 = this.currentScope(); - scope$1.lexical.push(name); - } else if (bindingType === BIND_FUNCTION) { - var scope$2 = this.currentScope(); - if (this.treatFunctionsAsVar) - { redeclared = scope$2.lexical.indexOf(name) > -1; } - else - { redeclared = scope$2.lexical.indexOf(name) > -1 || scope$2.var.indexOf(name) > -1; } - scope$2.functions.push(name); - } else { - for (var i = this.scopeStack.length - 1; i >= 0; --i) { - var scope$3 = this.scopeStack[i]; - if (scope$3.lexical.indexOf(name) > -1 && !((scope$3.flags & SCOPE_SIMPLE_CATCH) && scope$3.lexical[0] === name) || - !this.treatFunctionsAsVarInScope(scope$3) && scope$3.functions.indexOf(name) > -1) { - redeclared = true; - break - } - scope$3.var.push(name); - if (this.inModule && (scope$3.flags & SCOPE_TOP)) - { delete this.undefinedExports[name]; } - if (scope$3.flags & SCOPE_VAR) { break } - } - } - if (redeclared) { this.raiseRecoverable(pos, ("Identifier '" + name + "' has already been declared")); } - }; - - pp$3.checkLocalExport = function(id) { - // scope.functions must be empty as Module code is always strict. - if (this.scopeStack[0].lexical.indexOf(id.name) === -1 && - this.scopeStack[0].var.indexOf(id.name) === -1) { - this.undefinedExports[id.name] = id; - } - }; - - pp$3.currentScope = function() { - return this.scopeStack[this.scopeStack.length - 1] - }; - - pp$3.currentVarScope = function() { - for (var i = this.scopeStack.length - 1;; i--) { - var scope = this.scopeStack[i]; - if (scope.flags & SCOPE_VAR) { return scope } - } - }; - - // Could be useful for `this`, `new.target`, `super()`, `super.property`, and `super[property]`. - pp$3.currentThisScope = function() { - for (var i = this.scopeStack.length - 1;; i--) { - var scope = this.scopeStack[i]; - if (scope.flags & SCOPE_VAR && !(scope.flags & SCOPE_ARROW)) { return scope } - } - }; - - var Node = function Node(parser, pos, loc) { - this.type = ""; - this.start = pos; - this.end = 0; - if (parser.options.locations) - { this.loc = new SourceLocation(parser, loc); } - if (parser.options.directSourceFile) - { this.sourceFile = parser.options.directSourceFile; } - if (parser.options.ranges) - { this.range = [pos, 0]; } - }; - - // Start an AST node, attaching a start offset. - - var pp$2 = Parser.prototype; - - pp$2.startNode = function() { - return new Node(this, this.start, this.startLoc) - }; - - pp$2.startNodeAt = function(pos, loc) { - return new Node(this, pos, loc) - }; - - // Finish an AST node, adding `type` and `end` properties. - - function finishNodeAt(node, type, pos, loc) { - node.type = type; - node.end = pos; - if (this.options.locations) - { node.loc.end = loc; } - if (this.options.ranges) - { node.range[1] = pos; } - return node - } - - pp$2.finishNode = function(node, type) { - return finishNodeAt.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc) - }; - - // Finish node at given position - - pp$2.finishNodeAt = function(node, type, pos, loc) { - return finishNodeAt.call(this, node, type, pos, loc) - }; - - pp$2.copyNode = function(node) { - var newNode = new Node(this, node.start, this.startLoc); - for (var prop in node) { newNode[prop] = node[prop]; } - return newNode - }; - - // This file contains Unicode properties extracted from the ECMAScript specification. - // The lists are extracted like so: - // $$('#table-binary-unicode-properties > figure > table > tbody > tr > td:nth-child(1) code').map(el => el.innerText) - - // #table-binary-unicode-properties - var ecma9BinaryProperties = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS"; - var ecma10BinaryProperties = ecma9BinaryProperties + " Extended_Pictographic"; - var ecma11BinaryProperties = ecma10BinaryProperties; - var ecma12BinaryProperties = ecma11BinaryProperties + " EBase EComp EMod EPres ExtPict"; - var ecma13BinaryProperties = ecma12BinaryProperties; - var ecma14BinaryProperties = ecma13BinaryProperties; - - var unicodeBinaryProperties = { - 9: ecma9BinaryProperties, - 10: ecma10BinaryProperties, - 11: ecma11BinaryProperties, - 12: ecma12BinaryProperties, - 13: ecma13BinaryProperties, - 14: ecma14BinaryProperties - }; - - // #table-binary-unicode-properties-of-strings - var ecma14BinaryPropertiesOfStrings = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"; - - var unicodeBinaryPropertiesOfStrings = { - 9: "", - 10: "", - 11: "", - 12: "", - 13: "", - 14: ecma14BinaryPropertiesOfStrings - }; - - // #table-unicode-general-category-values - var unicodeGeneralCategoryValues = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu"; - - // #table-unicode-script-values - var ecma9ScriptValues = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb"; - var ecma10ScriptValues = ecma9ScriptValues + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd"; - var ecma11ScriptValues = ecma10ScriptValues + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"; - var ecma12ScriptValues = ecma11ScriptValues + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi"; - var ecma13ScriptValues = ecma12ScriptValues + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith"; - var ecma14ScriptValues = ecma13ScriptValues + " Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"; - - var unicodeScriptValues = { - 9: ecma9ScriptValues, - 10: ecma10ScriptValues, - 11: ecma11ScriptValues, - 12: ecma12ScriptValues, - 13: ecma13ScriptValues, - 14: ecma14ScriptValues - }; - - var data = {}; - function buildUnicodeData(ecmaVersion) { - var d = data[ecmaVersion] = { - binary: wordsRegexp(unicodeBinaryProperties[ecmaVersion] + " " + unicodeGeneralCategoryValues), - binaryOfStrings: wordsRegexp(unicodeBinaryPropertiesOfStrings[ecmaVersion]), - nonBinary: { - General_Category: wordsRegexp(unicodeGeneralCategoryValues), - Script: wordsRegexp(unicodeScriptValues[ecmaVersion]) - } - }; - d.nonBinary.Script_Extensions = d.nonBinary.Script; - - d.nonBinary.gc = d.nonBinary.General_Category; - d.nonBinary.sc = d.nonBinary.Script; - d.nonBinary.scx = d.nonBinary.Script_Extensions; - } - - for (var i = 0, list = [9, 10, 11, 12, 13, 14]; i < list.length; i += 1) { - var ecmaVersion = list[i]; - - buildUnicodeData(ecmaVersion); - } - - var pp$1 = Parser.prototype; - - // Track disjunction structure to determine whether a duplicate - // capture group name is allowed because it is in a separate branch. - var BranchID = function BranchID(parent, base) { - // Parent disjunction branch - this.parent = parent; - // Identifies this set of sibling branches - this.base = base || this; - }; - - BranchID.prototype.separatedFrom = function separatedFrom (alt) { - // A branch is separate from another branch if they or any of - // their parents are siblings in a given disjunction - for (var self = this; self; self = self.parent) { - for (var other = alt; other; other = other.parent) { - if (self.base === other.base && self !== other) { return true } - } - } - return false - }; - - BranchID.prototype.sibling = function sibling () { - return new BranchID(this.parent, this.base) - }; - - var RegExpValidationState = function RegExpValidationState(parser) { - this.parser = parser; - this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "") + (parser.options.ecmaVersion >= 15 ? "v" : ""); - this.unicodeProperties = data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion]; - this.source = ""; - this.flags = ""; - this.start = 0; - this.switchU = false; - this.switchV = false; - this.switchN = false; - this.pos = 0; - this.lastIntValue = 0; - this.lastStringValue = ""; - this.lastAssertionIsQuantifiable = false; - this.numCapturingParens = 0; - this.maxBackReference = 0; - this.groupNames = Object.create(null); - this.backReferenceNames = []; - this.branchID = null; - }; - - RegExpValidationState.prototype.reset = function reset (start, pattern, flags) { - var unicodeSets = flags.indexOf("v") !== -1; - var unicode = flags.indexOf("u") !== -1; - this.start = start | 0; - this.source = pattern + ""; - this.flags = flags; - if (unicodeSets && this.parser.options.ecmaVersion >= 15) { - this.switchU = true; - this.switchV = true; - this.switchN = true; - } else { - this.switchU = unicode && this.parser.options.ecmaVersion >= 6; - this.switchV = false; - this.switchN = unicode && this.parser.options.ecmaVersion >= 9; - } - }; - - RegExpValidationState.prototype.raise = function raise (message) { - this.parser.raiseRecoverable(this.start, ("Invalid regular expression: /" + (this.source) + "/: " + message)); - }; - - // If u flag is given, this returns the code point at the index (it combines a surrogate pair). - // Otherwise, this returns the code unit of the index (can be a part of a surrogate pair). - RegExpValidationState.prototype.at = function at (i, forceU) { - if ( forceU === void 0 ) forceU = false; - - var s = this.source; - var l = s.length; - if (i >= l) { - return -1 - } - var c = s.charCodeAt(i); - if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l) { - return c - } - var next = s.charCodeAt(i + 1); - return next >= 0xDC00 && next <= 0xDFFF ? (c << 10) + next - 0x35FDC00 : c - }; - - RegExpValidationState.prototype.nextIndex = function nextIndex (i, forceU) { - if ( forceU === void 0 ) forceU = false; - - var s = this.source; - var l = s.length; - if (i >= l) { - return l - } - var c = s.charCodeAt(i), next; - if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l || - (next = s.charCodeAt(i + 1)) < 0xDC00 || next > 0xDFFF) { - return i + 1 - } - return i + 2 - }; - - RegExpValidationState.prototype.current = function current (forceU) { - if ( forceU === void 0 ) forceU = false; - - return this.at(this.pos, forceU) - }; - - RegExpValidationState.prototype.lookahead = function lookahead (forceU) { - if ( forceU === void 0 ) forceU = false; - - return this.at(this.nextIndex(this.pos, forceU), forceU) - }; - - RegExpValidationState.prototype.advance = function advance (forceU) { - if ( forceU === void 0 ) forceU = false; - - this.pos = this.nextIndex(this.pos, forceU); - }; - - RegExpValidationState.prototype.eat = function eat (ch, forceU) { - if ( forceU === void 0 ) forceU = false; - - if (this.current(forceU) === ch) { - this.advance(forceU); - return true - } - return false - }; - - RegExpValidationState.prototype.eatChars = function eatChars (chs, forceU) { - if ( forceU === void 0 ) forceU = false; - - var pos = this.pos; - for (var i = 0, list = chs; i < list.length; i += 1) { - var ch = list[i]; - - var current = this.at(pos, forceU); - if (current === -1 || current !== ch) { - return false - } - pos = this.nextIndex(pos, forceU); - } - this.pos = pos; - return true - }; - - /** - * Validate the flags part of a given RegExpLiteral. - * - * @param {RegExpValidationState} state The state to validate RegExp. - * @returns {void} - */ - pp$1.validateRegExpFlags = function(state) { - var validFlags = state.validFlags; - var flags = state.flags; - - var u = false; - var v = false; - - for (var i = 0; i < flags.length; i++) { - var flag = flags.charAt(i); - if (validFlags.indexOf(flag) === -1) { - this.raise(state.start, "Invalid regular expression flag"); - } - if (flags.indexOf(flag, i + 1) > -1) { - this.raise(state.start, "Duplicate regular expression flag"); - } - if (flag === "u") { u = true; } - if (flag === "v") { v = true; } - } - if (this.options.ecmaVersion >= 15 && u && v) { - this.raise(state.start, "Invalid regular expression flag"); - } - }; - - function hasProp(obj) { - for (var _ in obj) { return true } - return false - } - - /** - * Validate the pattern part of a given RegExpLiteral. - * - * @param {RegExpValidationState} state The state to validate RegExp. - * @returns {void} - */ - pp$1.validateRegExpPattern = function(state) { - this.regexp_pattern(state); - - // The goal symbol for the parse is |Pattern[~U, ~N]|. If the result of - // parsing contains a |GroupName|, reparse with the goal symbol - // |Pattern[~U, +N]| and use this result instead. Throw a *SyntaxError* - // exception if _P_ did not conform to the grammar, if any elements of _P_ - // were not matched by the parse, or if any Early Error conditions exist. - if (!state.switchN && this.options.ecmaVersion >= 9 && hasProp(state.groupNames)) { - state.switchN = true; - this.regexp_pattern(state); - } - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-Pattern - pp$1.regexp_pattern = function(state) { - state.pos = 0; - state.lastIntValue = 0; - state.lastStringValue = ""; - state.lastAssertionIsQuantifiable = false; - state.numCapturingParens = 0; - state.maxBackReference = 0; - state.groupNames = Object.create(null); - state.backReferenceNames.length = 0; - state.branchID = null; - - this.regexp_disjunction(state); - - if (state.pos !== state.source.length) { - // Make the same messages as V8. - if (state.eat(0x29 /* ) */)) { - state.raise("Unmatched ')'"); - } - if (state.eat(0x5D /* ] */) || state.eat(0x7D /* } */)) { - state.raise("Lone quantifier brackets"); - } - } - if (state.maxBackReference > state.numCapturingParens) { - state.raise("Invalid escape"); - } - for (var i = 0, list = state.backReferenceNames; i < list.length; i += 1) { - var name = list[i]; - - if (!state.groupNames[name]) { - state.raise("Invalid named capture referenced"); - } - } - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-Disjunction - pp$1.regexp_disjunction = function(state) { - var trackDisjunction = this.options.ecmaVersion >= 16; - if (trackDisjunction) { state.branchID = new BranchID(state.branchID, null); } - this.regexp_alternative(state); - while (state.eat(0x7C /* | */)) { - if (trackDisjunction) { state.branchID = state.branchID.sibling(); } - this.regexp_alternative(state); - } - if (trackDisjunction) { state.branchID = state.branchID.parent; } - - // Make the same message as V8. - if (this.regexp_eatQuantifier(state, true)) { - state.raise("Nothing to repeat"); - } - if (state.eat(0x7B /* { */)) { - state.raise("Lone quantifier brackets"); - } - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-Alternative - pp$1.regexp_alternative = function(state) { - while (state.pos < state.source.length && this.regexp_eatTerm(state)) {} - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Term - pp$1.regexp_eatTerm = function(state) { - if (this.regexp_eatAssertion(state)) { - // Handle `QuantifiableAssertion Quantifier` alternative. - // `state.lastAssertionIsQuantifiable` is true if the last eaten Assertion - // is a QuantifiableAssertion. - if (state.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(state)) { - // Make the same message as V8. - if (state.switchU) { - state.raise("Invalid quantifier"); - } - } - return true - } - - if (state.switchU ? this.regexp_eatAtom(state) : this.regexp_eatExtendedAtom(state)) { - this.regexp_eatQuantifier(state); - return true - } - - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Assertion - pp$1.regexp_eatAssertion = function(state) { - var start = state.pos; - state.lastAssertionIsQuantifiable = false; - - // ^, $ - if (state.eat(0x5E /* ^ */) || state.eat(0x24 /* $ */)) { - return true - } - - // \b \B - if (state.eat(0x5C /* \ */)) { - if (state.eat(0x42 /* B */) || state.eat(0x62 /* b */)) { - return true - } - state.pos = start; - } - - // Lookahead / Lookbehind - if (state.eat(0x28 /* ( */) && state.eat(0x3F /* ? */)) { - var lookbehind = false; - if (this.options.ecmaVersion >= 9) { - lookbehind = state.eat(0x3C /* < */); - } - if (state.eat(0x3D /* = */) || state.eat(0x21 /* ! */)) { - this.regexp_disjunction(state); - if (!state.eat(0x29 /* ) */)) { - state.raise("Unterminated group"); - } - state.lastAssertionIsQuantifiable = !lookbehind; - return true - } - } - - state.pos = start; - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-Quantifier - pp$1.regexp_eatQuantifier = function(state, noError) { - if ( noError === void 0 ) noError = false; - - if (this.regexp_eatQuantifierPrefix(state, noError)) { - state.eat(0x3F /* ? */); - return true - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-QuantifierPrefix - pp$1.regexp_eatQuantifierPrefix = function(state, noError) { - return ( - state.eat(0x2A /* * */) || - state.eat(0x2B /* + */) || - state.eat(0x3F /* ? */) || - this.regexp_eatBracedQuantifier(state, noError) - ) - }; - pp$1.regexp_eatBracedQuantifier = function(state, noError) { - var start = state.pos; - if (state.eat(0x7B /* { */)) { - var min = 0, max = -1; - if (this.regexp_eatDecimalDigits(state)) { - min = state.lastIntValue; - if (state.eat(0x2C /* , */) && this.regexp_eatDecimalDigits(state)) { - max = state.lastIntValue; - } - if (state.eat(0x7D /* } */)) { - // SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-term - if (max !== -1 && max < min && !noError) { - state.raise("numbers out of order in {} quantifier"); - } - return true - } - } - if (state.switchU && !noError) { - state.raise("Incomplete quantifier"); - } - state.pos = start; - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-Atom - pp$1.regexp_eatAtom = function(state) { - return ( - this.regexp_eatPatternCharacters(state) || - state.eat(0x2E /* . */) || - this.regexp_eatReverseSolidusAtomEscape(state) || - this.regexp_eatCharacterClass(state) || - this.regexp_eatUncapturingGroup(state) || - this.regexp_eatCapturingGroup(state) - ) - }; - pp$1.regexp_eatReverseSolidusAtomEscape = function(state) { - var start = state.pos; - if (state.eat(0x5C /* \ */)) { - if (this.regexp_eatAtomEscape(state)) { - return true - } - state.pos = start; - } - return false - }; - pp$1.regexp_eatUncapturingGroup = function(state) { - var start = state.pos; - if (state.eat(0x28 /* ( */)) { - if (state.eat(0x3F /* ? */) && state.eat(0x3A /* : */)) { - this.regexp_disjunction(state); - if (state.eat(0x29 /* ) */)) { - return true - } - state.raise("Unterminated group"); - } - state.pos = start; - } - return false - }; - pp$1.regexp_eatCapturingGroup = function(state) { - if (state.eat(0x28 /* ( */)) { - if (this.options.ecmaVersion >= 9) { - this.regexp_groupSpecifier(state); - } else if (state.current() === 0x3F /* ? */) { - state.raise("Invalid group"); - } - this.regexp_disjunction(state); - if (state.eat(0x29 /* ) */)) { - state.numCapturingParens += 1; - return true - } - state.raise("Unterminated group"); - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedAtom - pp$1.regexp_eatExtendedAtom = function(state) { - return ( - state.eat(0x2E /* . */) || - this.regexp_eatReverseSolidusAtomEscape(state) || - this.regexp_eatCharacterClass(state) || - this.regexp_eatUncapturingGroup(state) || - this.regexp_eatCapturingGroup(state) || - this.regexp_eatInvalidBracedQuantifier(state) || - this.regexp_eatExtendedPatternCharacter(state) - ) - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-InvalidBracedQuantifier - pp$1.regexp_eatInvalidBracedQuantifier = function(state) { - if (this.regexp_eatBracedQuantifier(state, true)) { - state.raise("Nothing to repeat"); - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-SyntaxCharacter - pp$1.regexp_eatSyntaxCharacter = function(state) { - var ch = state.current(); - if (isSyntaxCharacter(ch)) { - state.lastIntValue = ch; - state.advance(); - return true - } - return false - }; - function isSyntaxCharacter(ch) { - return ( - ch === 0x24 /* $ */ || - ch >= 0x28 /* ( */ && ch <= 0x2B /* + */ || - ch === 0x2E /* . */ || - ch === 0x3F /* ? */ || - ch >= 0x5B /* [ */ && ch <= 0x5E /* ^ */ || - ch >= 0x7B /* { */ && ch <= 0x7D /* } */ - ) - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-PatternCharacter - // But eat eager. - pp$1.regexp_eatPatternCharacters = function(state) { - var start = state.pos; - var ch = 0; - while ((ch = state.current()) !== -1 && !isSyntaxCharacter(ch)) { - state.advance(); - } - return state.pos !== start - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedPatternCharacter - pp$1.regexp_eatExtendedPatternCharacter = function(state) { - var ch = state.current(); - if ( - ch !== -1 && - ch !== 0x24 /* $ */ && - !(ch >= 0x28 /* ( */ && ch <= 0x2B /* + */) && - ch !== 0x2E /* . */ && - ch !== 0x3F /* ? */ && - ch !== 0x5B /* [ */ && - ch !== 0x5E /* ^ */ && - ch !== 0x7C /* | */ - ) { - state.advance(); - return true - } - return false - }; - - // GroupSpecifier :: - // [empty] - // `?` GroupName - pp$1.regexp_groupSpecifier = function(state) { - if (state.eat(0x3F /* ? */)) { - if (!this.regexp_eatGroupName(state)) { state.raise("Invalid group"); } - var trackDisjunction = this.options.ecmaVersion >= 16; - var known = state.groupNames[state.lastStringValue]; - if (known) { - if (trackDisjunction) { - for (var i = 0, list = known; i < list.length; i += 1) { - var altID = list[i]; - - if (!altID.separatedFrom(state.branchID)) - { state.raise("Duplicate capture group name"); } - } - } else { - state.raise("Duplicate capture group name"); - } - } - if (trackDisjunction) { - (known || (state.groupNames[state.lastStringValue] = [])).push(state.branchID); - } else { - state.groupNames[state.lastStringValue] = true; - } - } - }; - - // GroupName :: - // `<` RegExpIdentifierName `>` - // Note: this updates `state.lastStringValue` property with the eaten name. - pp$1.regexp_eatGroupName = function(state) { - state.lastStringValue = ""; - if (state.eat(0x3C /* < */)) { - if (this.regexp_eatRegExpIdentifierName(state) && state.eat(0x3E /* > */)) { - return true - } - state.raise("Invalid capture group name"); - } - return false - }; - - // RegExpIdentifierName :: - // RegExpIdentifierStart - // RegExpIdentifierName RegExpIdentifierPart - // Note: this updates `state.lastStringValue` property with the eaten name. - pp$1.regexp_eatRegExpIdentifierName = function(state) { - state.lastStringValue = ""; - if (this.regexp_eatRegExpIdentifierStart(state)) { - state.lastStringValue += codePointToString(state.lastIntValue); - while (this.regexp_eatRegExpIdentifierPart(state)) { - state.lastStringValue += codePointToString(state.lastIntValue); - } - return true - } - return false - }; - - // RegExpIdentifierStart :: - // UnicodeIDStart - // `$` - // `_` - // `\` RegExpUnicodeEscapeSequence[+U] - pp$1.regexp_eatRegExpIdentifierStart = function(state) { - var start = state.pos; - var forceU = this.options.ecmaVersion >= 11; - var ch = state.current(forceU); - state.advance(forceU); - - if (ch === 0x5C /* \ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) { - ch = state.lastIntValue; - } - if (isRegExpIdentifierStart(ch)) { - state.lastIntValue = ch; - return true - } - - state.pos = start; - return false - }; - function isRegExpIdentifierStart(ch) { - return isIdentifierStart(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */ - } - - // RegExpIdentifierPart :: - // UnicodeIDContinue - // `$` - // `_` - // `\` RegExpUnicodeEscapeSequence[+U] - // - // - pp$1.regexp_eatRegExpIdentifierPart = function(state) { - var start = state.pos; - var forceU = this.options.ecmaVersion >= 11; - var ch = state.current(forceU); - state.advance(forceU); - - if (ch === 0x5C /* \ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) { - ch = state.lastIntValue; - } - if (isRegExpIdentifierPart(ch)) { - state.lastIntValue = ch; - return true - } - - state.pos = start; - return false - }; - function isRegExpIdentifierPart(ch) { - return isIdentifierChar(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */ || ch === 0x200C /* */ || ch === 0x200D /* */ - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-AtomEscape - pp$1.regexp_eatAtomEscape = function(state) { - if ( - this.regexp_eatBackReference(state) || - this.regexp_eatCharacterClassEscape(state) || - this.regexp_eatCharacterEscape(state) || - (state.switchN && this.regexp_eatKGroupName(state)) - ) { - return true - } - if (state.switchU) { - // Make the same message as V8. - if (state.current() === 0x63 /* c */) { - state.raise("Invalid unicode escape"); - } - state.raise("Invalid escape"); - } - return false - }; - pp$1.regexp_eatBackReference = function(state) { - var start = state.pos; - if (this.regexp_eatDecimalEscape(state)) { - var n = state.lastIntValue; - if (state.switchU) { - // For SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-atomescape - if (n > state.maxBackReference) { - state.maxBackReference = n; - } - return true - } - if (n <= state.numCapturingParens) { - return true - } - state.pos = start; - } - return false - }; - pp$1.regexp_eatKGroupName = function(state) { - if (state.eat(0x6B /* k */)) { - if (this.regexp_eatGroupName(state)) { - state.backReferenceNames.push(state.lastStringValue); - return true - } - state.raise("Invalid named reference"); - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-CharacterEscape - pp$1.regexp_eatCharacterEscape = function(state) { - return ( - this.regexp_eatControlEscape(state) || - this.regexp_eatCControlLetter(state) || - this.regexp_eatZero(state) || - this.regexp_eatHexEscapeSequence(state) || - this.regexp_eatRegExpUnicodeEscapeSequence(state, false) || - (!state.switchU && this.regexp_eatLegacyOctalEscapeSequence(state)) || - this.regexp_eatIdentityEscape(state) - ) - }; - pp$1.regexp_eatCControlLetter = function(state) { - var start = state.pos; - if (state.eat(0x63 /* c */)) { - if (this.regexp_eatControlLetter(state)) { - return true - } - state.pos = start; - } - return false - }; - pp$1.regexp_eatZero = function(state) { - if (state.current() === 0x30 /* 0 */ && !isDecimalDigit(state.lookahead())) { - state.lastIntValue = 0; - state.advance(); - return true - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-ControlEscape - pp$1.regexp_eatControlEscape = function(state) { - var ch = state.current(); - if (ch === 0x74 /* t */) { - state.lastIntValue = 0x09; /* \t */ - state.advance(); - return true - } - if (ch === 0x6E /* n */) { - state.lastIntValue = 0x0A; /* \n */ - state.advance(); - return true - } - if (ch === 0x76 /* v */) { - state.lastIntValue = 0x0B; /* \v */ - state.advance(); - return true - } - if (ch === 0x66 /* f */) { - state.lastIntValue = 0x0C; /* \f */ - state.advance(); - return true - } - if (ch === 0x72 /* r */) { - state.lastIntValue = 0x0D; /* \r */ - state.advance(); - return true - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-ControlLetter - pp$1.regexp_eatControlLetter = function(state) { - var ch = state.current(); - if (isControlLetter(ch)) { - state.lastIntValue = ch % 0x20; - state.advance(); - return true - } - return false - }; - function isControlLetter(ch) { - return ( - (ch >= 0x41 /* A */ && ch <= 0x5A /* Z */) || - (ch >= 0x61 /* a */ && ch <= 0x7A /* z */) - ) - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-RegExpUnicodeEscapeSequence - pp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) { - if ( forceU === void 0 ) forceU = false; - - var start = state.pos; - var switchU = forceU || state.switchU; - - if (state.eat(0x75 /* u */)) { - if (this.regexp_eatFixedHexDigits(state, 4)) { - var lead = state.lastIntValue; - if (switchU && lead >= 0xD800 && lead <= 0xDBFF) { - var leadSurrogateEnd = state.pos; - if (state.eat(0x5C /* \ */) && state.eat(0x75 /* u */) && this.regexp_eatFixedHexDigits(state, 4)) { - var trail = state.lastIntValue; - if (trail >= 0xDC00 && trail <= 0xDFFF) { - state.lastIntValue = (lead - 0xD800) * 0x400 + (trail - 0xDC00) + 0x10000; - return true - } - } - state.pos = leadSurrogateEnd; - state.lastIntValue = lead; - } - return true - } - if ( - switchU && - state.eat(0x7B /* { */) && - this.regexp_eatHexDigits(state) && - state.eat(0x7D /* } */) && - isValidUnicode(state.lastIntValue) - ) { - return true - } - if (switchU) { - state.raise("Invalid unicode escape"); - } - state.pos = start; - } - - return false - }; - function isValidUnicode(ch) { - return ch >= 0 && ch <= 0x10FFFF - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-IdentityEscape - pp$1.regexp_eatIdentityEscape = function(state) { - if (state.switchU) { - if (this.regexp_eatSyntaxCharacter(state)) { - return true - } - if (state.eat(0x2F /* / */)) { - state.lastIntValue = 0x2F; /* / */ - return true - } - return false - } - - var ch = state.current(); - if (ch !== 0x63 /* c */ && (!state.switchN || ch !== 0x6B /* k */)) { - state.lastIntValue = ch; - state.advance(); - return true - } - - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalEscape - pp$1.regexp_eatDecimalEscape = function(state) { - state.lastIntValue = 0; - var ch = state.current(); - if (ch >= 0x31 /* 1 */ && ch <= 0x39 /* 9 */) { - do { - state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */); - state.advance(); - } while ((ch = state.current()) >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */) - return true - } - return false - }; - - // Return values used by character set parsing methods, needed to - // forbid negation of sets that can match strings. - var CharSetNone = 0; // Nothing parsed - var CharSetOk = 1; // Construct parsed, cannot contain strings - var CharSetString = 2; // Construct parsed, can contain strings - - // https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClassEscape - pp$1.regexp_eatCharacterClassEscape = function(state) { - var ch = state.current(); - - if (isCharacterClassEscape(ch)) { - state.lastIntValue = -1; - state.advance(); - return CharSetOk - } - - var negate = false; - if ( - state.switchU && - this.options.ecmaVersion >= 9 && - ((negate = ch === 0x50 /* P */) || ch === 0x70 /* p */) - ) { - state.lastIntValue = -1; - state.advance(); - var result; - if ( - state.eat(0x7B /* { */) && - (result = this.regexp_eatUnicodePropertyValueExpression(state)) && - state.eat(0x7D /* } */) - ) { - if (negate && result === CharSetString) { state.raise("Invalid property name"); } - return result - } - state.raise("Invalid property name"); - } - - return CharSetNone - }; - - function isCharacterClassEscape(ch) { - return ( - ch === 0x64 /* d */ || - ch === 0x44 /* D */ || - ch === 0x73 /* s */ || - ch === 0x53 /* S */ || - ch === 0x77 /* w */ || - ch === 0x57 /* W */ - ) - } - - // UnicodePropertyValueExpression :: - // UnicodePropertyName `=` UnicodePropertyValue - // LoneUnicodePropertyNameOrValue - pp$1.regexp_eatUnicodePropertyValueExpression = function(state) { - var start = state.pos; - - // UnicodePropertyName `=` UnicodePropertyValue - if (this.regexp_eatUnicodePropertyName(state) && state.eat(0x3D /* = */)) { - var name = state.lastStringValue; - if (this.regexp_eatUnicodePropertyValue(state)) { - var value = state.lastStringValue; - this.regexp_validateUnicodePropertyNameAndValue(state, name, value); - return CharSetOk - } - } - state.pos = start; - - // LoneUnicodePropertyNameOrValue - if (this.regexp_eatLoneUnicodePropertyNameOrValue(state)) { - var nameOrValue = state.lastStringValue; - return this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue) - } - return CharSetNone - }; - - pp$1.regexp_validateUnicodePropertyNameAndValue = function(state, name, value) { - if (!hasOwn(state.unicodeProperties.nonBinary, name)) - { state.raise("Invalid property name"); } - if (!state.unicodeProperties.nonBinary[name].test(value)) - { state.raise("Invalid property value"); } - }; - - pp$1.regexp_validateUnicodePropertyNameOrValue = function(state, nameOrValue) { - if (state.unicodeProperties.binary.test(nameOrValue)) { return CharSetOk } - if (state.switchV && state.unicodeProperties.binaryOfStrings.test(nameOrValue)) { return CharSetString } - state.raise("Invalid property name"); - }; - - // UnicodePropertyName :: - // UnicodePropertyNameCharacters - pp$1.regexp_eatUnicodePropertyName = function(state) { - var ch = 0; - state.lastStringValue = ""; - while (isUnicodePropertyNameCharacter(ch = state.current())) { - state.lastStringValue += codePointToString(ch); - state.advance(); - } - return state.lastStringValue !== "" - }; - - function isUnicodePropertyNameCharacter(ch) { - return isControlLetter(ch) || ch === 0x5F /* _ */ - } - - // UnicodePropertyValue :: - // UnicodePropertyValueCharacters - pp$1.regexp_eatUnicodePropertyValue = function(state) { - var ch = 0; - state.lastStringValue = ""; - while (isUnicodePropertyValueCharacter(ch = state.current())) { - state.lastStringValue += codePointToString(ch); - state.advance(); - } - return state.lastStringValue !== "" - }; - function isUnicodePropertyValueCharacter(ch) { - return isUnicodePropertyNameCharacter(ch) || isDecimalDigit(ch) - } - - // LoneUnicodePropertyNameOrValue :: - // UnicodePropertyValueCharacters - pp$1.regexp_eatLoneUnicodePropertyNameOrValue = function(state) { - return this.regexp_eatUnicodePropertyValue(state) - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClass - pp$1.regexp_eatCharacterClass = function(state) { - if (state.eat(0x5B /* [ */)) { - var negate = state.eat(0x5E /* ^ */); - var result = this.regexp_classContents(state); - if (!state.eat(0x5D /* ] */)) - { state.raise("Unterminated character class"); } - if (negate && result === CharSetString) - { state.raise("Negated character class may contain strings"); } - return true - } - return false - }; - - // https://tc39.es/ecma262/#prod-ClassContents - // https://www.ecma-international.org/ecma-262/8.0/#prod-ClassRanges - pp$1.regexp_classContents = function(state) { - if (state.current() === 0x5D /* ] */) { return CharSetOk } - if (state.switchV) { return this.regexp_classSetExpression(state) } - this.regexp_nonEmptyClassRanges(state); - return CharSetOk - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRanges - // https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRangesNoDash - pp$1.regexp_nonEmptyClassRanges = function(state) { - while (this.regexp_eatClassAtom(state)) { - var left = state.lastIntValue; - if (state.eat(0x2D /* - */) && this.regexp_eatClassAtom(state)) { - var right = state.lastIntValue; - if (state.switchU && (left === -1 || right === -1)) { - state.raise("Invalid character class"); - } - if (left !== -1 && right !== -1 && left > right) { - state.raise("Range out of order in character class"); - } - } - } - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtom - // https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtomNoDash - pp$1.regexp_eatClassAtom = function(state) { - var start = state.pos; - - if (state.eat(0x5C /* \ */)) { - if (this.regexp_eatClassEscape(state)) { - return true - } - if (state.switchU) { - // Make the same message as V8. - var ch$1 = state.current(); - if (ch$1 === 0x63 /* c */ || isOctalDigit(ch$1)) { - state.raise("Invalid class escape"); - } - state.raise("Invalid escape"); - } - state.pos = start; - } - - var ch = state.current(); - if (ch !== 0x5D /* ] */) { - state.lastIntValue = ch; - state.advance(); - return true - } - - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassEscape - pp$1.regexp_eatClassEscape = function(state) { - var start = state.pos; - - if (state.eat(0x62 /* b */)) { - state.lastIntValue = 0x08; /* */ - return true - } - - if (state.switchU && state.eat(0x2D /* - */)) { - state.lastIntValue = 0x2D; /* - */ - return true - } - - if (!state.switchU && state.eat(0x63 /* c */)) { - if (this.regexp_eatClassControlLetter(state)) { - return true - } - state.pos = start; - } - - return ( - this.regexp_eatCharacterClassEscape(state) || - this.regexp_eatCharacterEscape(state) - ) - }; - - // https://tc39.es/ecma262/#prod-ClassSetExpression - // https://tc39.es/ecma262/#prod-ClassUnion - // https://tc39.es/ecma262/#prod-ClassIntersection - // https://tc39.es/ecma262/#prod-ClassSubtraction - pp$1.regexp_classSetExpression = function(state) { - var result = CharSetOk, subResult; - if (this.regexp_eatClassSetRange(state)) ; else if (subResult = this.regexp_eatClassSetOperand(state)) { - if (subResult === CharSetString) { result = CharSetString; } - // https://tc39.es/ecma262/#prod-ClassIntersection - var start = state.pos; - while (state.eatChars([0x26, 0x26] /* && */)) { - if ( - state.current() !== 0x26 /* & */ && - (subResult = this.regexp_eatClassSetOperand(state)) - ) { - if (subResult !== CharSetString) { result = CharSetOk; } - continue - } - state.raise("Invalid character in character class"); - } - if (start !== state.pos) { return result } - // https://tc39.es/ecma262/#prod-ClassSubtraction - while (state.eatChars([0x2D, 0x2D] /* -- */)) { - if (this.regexp_eatClassSetOperand(state)) { continue } - state.raise("Invalid character in character class"); - } - if (start !== state.pos) { return result } - } else { - state.raise("Invalid character in character class"); - } - // https://tc39.es/ecma262/#prod-ClassUnion - for (;;) { - if (this.regexp_eatClassSetRange(state)) { continue } - subResult = this.regexp_eatClassSetOperand(state); - if (!subResult) { return result } - if (subResult === CharSetString) { result = CharSetString; } - } - }; - - // https://tc39.es/ecma262/#prod-ClassSetRange - pp$1.regexp_eatClassSetRange = function(state) { - var start = state.pos; - if (this.regexp_eatClassSetCharacter(state)) { - var left = state.lastIntValue; - if (state.eat(0x2D /* - */) && this.regexp_eatClassSetCharacter(state)) { - var right = state.lastIntValue; - if (left !== -1 && right !== -1 && left > right) { - state.raise("Range out of order in character class"); - } - return true - } - state.pos = start; - } - return false - }; - - // https://tc39.es/ecma262/#prod-ClassSetOperand - pp$1.regexp_eatClassSetOperand = function(state) { - if (this.regexp_eatClassSetCharacter(state)) { return CharSetOk } - return this.regexp_eatClassStringDisjunction(state) || this.regexp_eatNestedClass(state) - }; - - // https://tc39.es/ecma262/#prod-NestedClass - pp$1.regexp_eatNestedClass = function(state) { - var start = state.pos; - if (state.eat(0x5B /* [ */)) { - var negate = state.eat(0x5E /* ^ */); - var result = this.regexp_classContents(state); - if (state.eat(0x5D /* ] */)) { - if (negate && result === CharSetString) { - state.raise("Negated character class may contain strings"); - } - return result - } - state.pos = start; - } - if (state.eat(0x5C /* \ */)) { - var result$1 = this.regexp_eatCharacterClassEscape(state); - if (result$1) { - return result$1 - } - state.pos = start; - } - return null - }; - - // https://tc39.es/ecma262/#prod-ClassStringDisjunction - pp$1.regexp_eatClassStringDisjunction = function(state) { - var start = state.pos; - if (state.eatChars([0x5C, 0x71] /* \q */)) { - if (state.eat(0x7B /* { */)) { - var result = this.regexp_classStringDisjunctionContents(state); - if (state.eat(0x7D /* } */)) { - return result - } - } else { - // Make the same message as V8. - state.raise("Invalid escape"); - } - state.pos = start; - } - return null - }; - - // https://tc39.es/ecma262/#prod-ClassStringDisjunctionContents - pp$1.regexp_classStringDisjunctionContents = function(state) { - var result = this.regexp_classString(state); - while (state.eat(0x7C /* | */)) { - if (this.regexp_classString(state) === CharSetString) { result = CharSetString; } - } - return result - }; - - // https://tc39.es/ecma262/#prod-ClassString - // https://tc39.es/ecma262/#prod-NonEmptyClassString - pp$1.regexp_classString = function(state) { - var count = 0; - while (this.regexp_eatClassSetCharacter(state)) { count++; } - return count === 1 ? CharSetOk : CharSetString - }; - - // https://tc39.es/ecma262/#prod-ClassSetCharacter - pp$1.regexp_eatClassSetCharacter = function(state) { - var start = state.pos; - if (state.eat(0x5C /* \ */)) { - if ( - this.regexp_eatCharacterEscape(state) || - this.regexp_eatClassSetReservedPunctuator(state) - ) { - return true - } - if (state.eat(0x62 /* b */)) { - state.lastIntValue = 0x08; /* */ - return true - } - state.pos = start; - return false - } - var ch = state.current(); - if (ch < 0 || ch === state.lookahead() && isClassSetReservedDoublePunctuatorCharacter(ch)) { return false } - if (isClassSetSyntaxCharacter(ch)) { return false } - state.advance(); - state.lastIntValue = ch; - return true - }; - - // https://tc39.es/ecma262/#prod-ClassSetReservedDoublePunctuator - function isClassSetReservedDoublePunctuatorCharacter(ch) { - return ( - ch === 0x21 /* ! */ || - ch >= 0x23 /* # */ && ch <= 0x26 /* & */ || - ch >= 0x2A /* * */ && ch <= 0x2C /* , */ || - ch === 0x2E /* . */ || - ch >= 0x3A /* : */ && ch <= 0x40 /* @ */ || - ch === 0x5E /* ^ */ || - ch === 0x60 /* ` */ || - ch === 0x7E /* ~ */ - ) - } - - // https://tc39.es/ecma262/#prod-ClassSetSyntaxCharacter - function isClassSetSyntaxCharacter(ch) { - return ( - ch === 0x28 /* ( */ || - ch === 0x29 /* ) */ || - ch === 0x2D /* - */ || - ch === 0x2F /* / */ || - ch >= 0x5B /* [ */ && ch <= 0x5D /* ] */ || - ch >= 0x7B /* { */ && ch <= 0x7D /* } */ - ) - } - - // https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator - pp$1.regexp_eatClassSetReservedPunctuator = function(state) { - var ch = state.current(); - if (isClassSetReservedPunctuator(ch)) { - state.lastIntValue = ch; - state.advance(); - return true - } - return false - }; - - // https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator - function isClassSetReservedPunctuator(ch) { - return ( - ch === 0x21 /* ! */ || - ch === 0x23 /* # */ || - ch === 0x25 /* % */ || - ch === 0x26 /* & */ || - ch === 0x2C /* , */ || - ch === 0x2D /* - */ || - ch >= 0x3A /* : */ && ch <= 0x3E /* > */ || - ch === 0x40 /* @ */ || - ch === 0x60 /* ` */ || - ch === 0x7E /* ~ */ - ) - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassControlLetter - pp$1.regexp_eatClassControlLetter = function(state) { - var ch = state.current(); - if (isDecimalDigit(ch) || ch === 0x5F /* _ */) { - state.lastIntValue = ch % 0x20; - state.advance(); - return true - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence - pp$1.regexp_eatHexEscapeSequence = function(state) { - var start = state.pos; - if (state.eat(0x78 /* x */)) { - if (this.regexp_eatFixedHexDigits(state, 2)) { - return true - } - if (state.switchU) { - state.raise("Invalid escape"); - } - state.pos = start; - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalDigits - pp$1.regexp_eatDecimalDigits = function(state) { - var start = state.pos; - var ch = 0; - state.lastIntValue = 0; - while (isDecimalDigit(ch = state.current())) { - state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */); - state.advance(); - } - return state.pos !== start - }; - function isDecimalDigit(ch) { - return ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */ - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigits - pp$1.regexp_eatHexDigits = function(state) { - var start = state.pos; - var ch = 0; - state.lastIntValue = 0; - while (isHexDigit(ch = state.current())) { - state.lastIntValue = 16 * state.lastIntValue + hexToInt(ch); - state.advance(); - } - return state.pos !== start - }; - function isHexDigit(ch) { - return ( - (ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */) || - (ch >= 0x41 /* A */ && ch <= 0x46 /* F */) || - (ch >= 0x61 /* a */ && ch <= 0x66 /* f */) - ) - } - function hexToInt(ch) { - if (ch >= 0x41 /* A */ && ch <= 0x46 /* F */) { - return 10 + (ch - 0x41 /* A */) - } - if (ch >= 0x61 /* a */ && ch <= 0x66 /* f */) { - return 10 + (ch - 0x61 /* a */) - } - return ch - 0x30 /* 0 */ - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-LegacyOctalEscapeSequence - // Allows only 0-377(octal) i.e. 0-255(decimal). - pp$1.regexp_eatLegacyOctalEscapeSequence = function(state) { - if (this.regexp_eatOctalDigit(state)) { - var n1 = state.lastIntValue; - if (this.regexp_eatOctalDigit(state)) { - var n2 = state.lastIntValue; - if (n1 <= 3 && this.regexp_eatOctalDigit(state)) { - state.lastIntValue = n1 * 64 + n2 * 8 + state.lastIntValue; - } else { - state.lastIntValue = n1 * 8 + n2; - } - } else { - state.lastIntValue = n1; - } - return true - } - return false - }; - - // https://www.ecma-international.org/ecma-262/8.0/#prod-OctalDigit - pp$1.regexp_eatOctalDigit = function(state) { - var ch = state.current(); - if (isOctalDigit(ch)) { - state.lastIntValue = ch - 0x30; /* 0 */ - state.advance(); - return true - } - state.lastIntValue = 0; - return false - }; - function isOctalDigit(ch) { - return ch >= 0x30 /* 0 */ && ch <= 0x37 /* 7 */ - } - - // https://www.ecma-international.org/ecma-262/8.0/#prod-Hex4Digits - // https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigit - // And HexDigit HexDigit in https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence - pp$1.regexp_eatFixedHexDigits = function(state, length) { - var start = state.pos; - state.lastIntValue = 0; - for (var i = 0; i < length; ++i) { - var ch = state.current(); - if (!isHexDigit(ch)) { - state.pos = start; - return false - } - state.lastIntValue = 16 * state.lastIntValue + hexToInt(ch); - state.advance(); - } - return true - }; - - // Object type used to represent tokens. Note that normally, tokens - // simply exist as properties on the parser object. This is only - // used for the onToken callback and the external tokenizer. - - var Token = function Token(p) { - this.type = p.type; - this.value = p.value; - this.start = p.start; - this.end = p.end; - if (p.options.locations) - { this.loc = new SourceLocation(p, p.startLoc, p.endLoc); } - if (p.options.ranges) - { this.range = [p.start, p.end]; } - }; - - // ## Tokenizer - - var pp = Parser.prototype; - - // Move to the next token - - pp.next = function(ignoreEscapeSequenceInKeyword) { - if (!ignoreEscapeSequenceInKeyword && this.type.keyword && this.containsEsc) - { this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword); } - if (this.options.onToken) - { this.options.onToken(new Token(this)); } - - this.lastTokEnd = this.end; - this.lastTokStart = this.start; - this.lastTokEndLoc = this.endLoc; - this.lastTokStartLoc = this.startLoc; - this.nextToken(); - }; - - pp.getToken = function() { - this.next(); - return new Token(this) - }; - - // If we're in an ES6 environment, make parsers iterable - if (typeof Symbol !== "undefined") - { pp[Symbol.iterator] = function() { - var this$1$1 = this; - - return { - next: function () { - var token = this$1$1.getToken(); - return { - done: token.type === types$1.eof, - value: token - } - } - } - }; } - - // Toggle strict mode. Re-reads the next number or string to please - // pedantic tests (`"use strict"; 010;` should fail). - - // Read a single token, updating the parser object's token-related - // properties. - - pp.nextToken = function() { - var curContext = this.curContext(); - if (!curContext || !curContext.preserveSpace) { this.skipSpace(); } - - this.start = this.pos; - if (this.options.locations) { this.startLoc = this.curPosition(); } - if (this.pos >= this.input.length) { return this.finishToken(types$1.eof) } - - if (curContext.override) { return curContext.override(this) } - else { this.readToken(this.fullCharCodeAtPos()); } - }; - - pp.readToken = function(code) { - // Identifier or keyword. '\uXXXX' sequences are allowed in - // identifiers, so '\' also dispatches to that. - if (isIdentifierStart(code, this.options.ecmaVersion >= 6) || code === 92 /* '\' */) - { return this.readWord() } - - return this.getTokenFromCode(code) - }; - - pp.fullCharCodeAtPos = function() { - var code = this.input.charCodeAt(this.pos); - if (code <= 0xd7ff || code >= 0xdc00) { return code } - var next = this.input.charCodeAt(this.pos + 1); - return next <= 0xdbff || next >= 0xe000 ? code : (code << 10) + next - 0x35fdc00 - }; - - pp.skipBlockComment = function() { - var startLoc = this.options.onComment && this.curPosition(); - var start = this.pos, end = this.input.indexOf("*/", this.pos += 2); - if (end === -1) { this.raise(this.pos - 2, "Unterminated comment"); } - this.pos = end + 2; - if (this.options.locations) { - for (var nextBreak = (void 0), pos = start; (nextBreak = nextLineBreak(this.input, pos, this.pos)) > -1;) { - ++this.curLine; - pos = this.lineStart = nextBreak; - } - } - if (this.options.onComment) - { this.options.onComment(true, this.input.slice(start + 2, end), start, this.pos, - startLoc, this.curPosition()); } - }; - - pp.skipLineComment = function(startSkip) { - var start = this.pos; - var startLoc = this.options.onComment && this.curPosition(); - var ch = this.input.charCodeAt(this.pos += startSkip); - while (this.pos < this.input.length && !isNewLine(ch)) { - ch = this.input.charCodeAt(++this.pos); - } - if (this.options.onComment) - { this.options.onComment(false, this.input.slice(start + startSkip, this.pos), start, this.pos, - startLoc, this.curPosition()); } - }; - - // Called at the start of the parse and after every token. Skips - // whitespace and comments, and. - - pp.skipSpace = function() { - loop: while (this.pos < this.input.length) { - var ch = this.input.charCodeAt(this.pos); - switch (ch) { - case 32: case 160: // ' ' - ++this.pos; - break - case 13: - if (this.input.charCodeAt(this.pos + 1) === 10) { - ++this.pos; - } - case 10: case 8232: case 8233: - ++this.pos; - if (this.options.locations) { - ++this.curLine; - this.lineStart = this.pos; - } - break - case 47: // '/' - switch (this.input.charCodeAt(this.pos + 1)) { - case 42: // '*' - this.skipBlockComment(); - break - case 47: - this.skipLineComment(2); - break - default: - break loop - } - break - default: - if (ch > 8 && ch < 14 || ch >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(ch))) { - ++this.pos; - } else { - break loop - } - } - } - }; - - // Called at the end of every token. Sets `end`, `val`, and - // maintains `context` and `exprAllowed`, and skips the space after - // the token, so that the next one's `start` will point at the - // right position. - - pp.finishToken = function(type, val) { - this.end = this.pos; - if (this.options.locations) { this.endLoc = this.curPosition(); } - var prevType = this.type; - this.type = type; - this.value = val; - - this.updateContext(prevType); - }; - - // ### Token reading - - // This is the function that is called to fetch the next token. It - // is somewhat obscure, because it works in character codes rather - // than characters, and because operator parsing has been inlined - // into it. - // - // All in the name of speed. - // - pp.readToken_dot = function() { - var next = this.input.charCodeAt(this.pos + 1); - if (next >= 48 && next <= 57) { return this.readNumber(true) } - var next2 = this.input.charCodeAt(this.pos + 2); - if (this.options.ecmaVersion >= 6 && next === 46 && next2 === 46) { // 46 = dot '.' - this.pos += 3; - return this.finishToken(types$1.ellipsis) - } else { - ++this.pos; - return this.finishToken(types$1.dot) - } - }; - - pp.readToken_slash = function() { // '/' - var next = this.input.charCodeAt(this.pos + 1); - if (this.exprAllowed) { ++this.pos; return this.readRegexp() } - if (next === 61) { return this.finishOp(types$1.assign, 2) } - return this.finishOp(types$1.slash, 1) - }; - - pp.readToken_mult_modulo_exp = function(code) { // '%*' - var next = this.input.charCodeAt(this.pos + 1); - var size = 1; - var tokentype = code === 42 ? types$1.star : types$1.modulo; - - // exponentiation operator ** and **= - if (this.options.ecmaVersion >= 7 && code === 42 && next === 42) { - ++size; - tokentype = types$1.starstar; - next = this.input.charCodeAt(this.pos + 2); - } - - if (next === 61) { return this.finishOp(types$1.assign, size + 1) } - return this.finishOp(tokentype, size) - }; - - pp.readToken_pipe_amp = function(code) { // '|&' - var next = this.input.charCodeAt(this.pos + 1); - if (next === code) { - if (this.options.ecmaVersion >= 12) { - var next2 = this.input.charCodeAt(this.pos + 2); - if (next2 === 61) { return this.finishOp(types$1.assign, 3) } - } - return this.finishOp(code === 124 ? types$1.logicalOR : types$1.logicalAND, 2) - } - if (next === 61) { return this.finishOp(types$1.assign, 2) } - return this.finishOp(code === 124 ? types$1.bitwiseOR : types$1.bitwiseAND, 1) - }; - - pp.readToken_caret = function() { // '^' - var next = this.input.charCodeAt(this.pos + 1); - if (next === 61) { return this.finishOp(types$1.assign, 2) } - return this.finishOp(types$1.bitwiseXOR, 1) - }; - - pp.readToken_plus_min = function(code) { // '+-' - var next = this.input.charCodeAt(this.pos + 1); - if (next === code) { - if (next === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && - (this.lastTokEnd === 0 || lineBreak.test(this.input.slice(this.lastTokEnd, this.pos)))) { - // A `-->` line comment - this.skipLineComment(3); - this.skipSpace(); - return this.nextToken() - } - return this.finishOp(types$1.incDec, 2) - } - if (next === 61) { return this.finishOp(types$1.assign, 2) } - return this.finishOp(types$1.plusMin, 1) - }; - - pp.readToken_lt_gt = function(code) { // '<>' - var next = this.input.charCodeAt(this.pos + 1); - var size = 1; - if (next === code) { - size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2; - if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types$1.assign, size + 1) } - return this.finishOp(types$1.bitShift, size) - } - if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && - this.input.charCodeAt(this.pos + 3) === 45) { - // `` line comment - this.skipLineComment(3); - this.skipSpace(); - return this.nextToken() - } - return this.finishOp(types$1.incDec, 2) - } - if (next === 61) { return this.finishOp(types$1.assign, 2) } - return this.finishOp(types$1.plusMin, 1) -}; - -pp.readToken_lt_gt = function(code) { // '<>' - var next = this.input.charCodeAt(this.pos + 1); - var size = 1; - if (next === code) { - size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2; - if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types$1.assign, size + 1) } - return this.finishOp(types$1.bitShift, size) - } - if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && - this.input.charCodeAt(this.pos + 3) === 45) { - // `' is a single-line comment - this.index += 3; - var comment = this.skipSingleLineComment(3); - if (this.trackComment) { - comments = comments.concat(comment); - } - } - else { - break; - } - } - else if (ch === 0x3C && !this.isModule) { - if (this.source.slice(this.index + 1, this.index + 4) === '!--') { - this.index += 4; // ` - -# uuid [![CI](https://github.com/uuidjs/uuid/workflows/CI/badge.svg)](https://github.com/uuidjs/uuid/actions?query=workflow%3ACI) [![Browser](https://github.com/uuidjs/uuid/workflows/Browser/badge.svg)](https://github.com/uuidjs/uuid/actions?query=workflow%3ABrowser) - -For the creation of [RFC4122](http://www.ietf.org/rfc/rfc4122.txt) UUIDs - -- **Complete** - Support for RFC4122 version 1, 3, 4, and 5 UUIDs -- **Cross-platform** - Support for ... - - CommonJS, [ECMAScript Modules](#ecmascript-modules) and [CDN builds](#cdn-builds) - - Node 8, 10, 12, 14 - - Chrome, Safari, Firefox, Edge, IE 11 browsers - - Webpack and rollup.js module bundlers - - [React Native / Expo](#react-native--expo) -- **Secure** - Cryptographically-strong random values -- **Small** - Zero-dependency, small footprint, plays nice with "tree shaking" packagers -- **CLI** - Includes the [`uuid` command line](#command-line) utility - -**Upgrading from `uuid@3.x`?** Your code is probably okay, but check out [Upgrading From `uuid@3.x`](#upgrading-from-uuid3x) for details. - -## Quickstart - -To create a random UUID... - -**1. Install** - -```shell -npm install uuid -``` - -**2. Create a UUID** (ES6 module syntax) - -```javascript -import { v4 as uuidv4 } from 'uuid'; -uuidv4(); // ⇨ '9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d' -``` - -... or using CommonJS syntax: - -```javascript -const { v4: uuidv4 } = require('uuid'); -uuidv4(); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed' -``` - -For timestamp UUIDs, namespace UUIDs, and other options read on ... - -## API Summary - -| | | | -| --- | --- | --- | -| [`uuid.NIL`](#uuidnil) | The nil UUID string (all zeros) | New in `uuid@8.3` | -| [`uuid.parse()`](#uuidparsestr) | Convert UUID string to array of bytes | New in `uuid@8.3` | -| [`uuid.stringify()`](#uuidstringifyarr-offset) | Convert array of bytes to UUID string | New in `uuid@8.3` | -| [`uuid.v1()`](#uuidv1options-buffer-offset) | Create a version 1 (timestamp) UUID | | -| [`uuid.v3()`](#uuidv3name-namespace-buffer-offset) | Create a version 3 (namespace w/ MD5) UUID | | -| [`uuid.v4()`](#uuidv4options-buffer-offset) | Create a version 4 (random) UUID | | -| [`uuid.v5()`](#uuidv5name-namespace-buffer-offset) | Create a version 5 (namespace w/ SHA-1) UUID | | -| [`uuid.validate()`](#uuidvalidatestr) | Test a string to see if it is a valid UUID | New in `uuid@8.3` | -| [`uuid.version()`](#uuidversionstr) | Detect RFC version of a UUID | New in `uuid@8.3` | - -## API - -### uuid.NIL - -The nil UUID string (all zeros). - -Example: - -```javascript -import { NIL as NIL_UUID } from 'uuid'; - -NIL_UUID; // ⇨ '00000000-0000-0000-0000-000000000000' -``` - -### uuid.parse(str) - -Convert UUID string to array of bytes - -| | | -| --------- | ---------------------------------------- | -| `str` | A valid UUID `String` | -| _returns_ | `Uint8Array[16]` | -| _throws_ | `TypeError` if `str` is not a valid UUID | - -Note: Ordering of values in the byte arrays used by `parse()` and `stringify()` follows the left ↠ right order of hex-pairs in UUID strings. As shown in the example below. - -Example: - -```javascript -import { parse as uuidParse } from 'uuid'; - -// Parse a UUID -const bytes = uuidParse('6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'); - -// Convert to hex strings to show byte order (for documentation purposes) -[...bytes].map((v) => v.toString(16).padStart(2, '0')); // ⇨ - // [ - // '6e', 'c0', 'bd', '7f', - // '11', 'c0', '43', 'da', - // '97', '5e', '2a', '8a', - // 'd9', 'eb', 'ae', '0b' - // ] -``` - -### uuid.stringify(arr[, offset]) - -Convert array of bytes to UUID string - -| | | -| -------------- | ---------------------------------------------------------------------------- | -| `arr` | `Array`-like collection of 16 values (starting from `offset`) between 0-255. | -| [`offset` = 0] | `Number` Starting index in the Array | -| _returns_ | `String` | -| _throws_ | `TypeError` if a valid UUID string cannot be generated | - -Note: Ordering of values in the byte arrays used by `parse()` and `stringify()` follows the left ↠ right order of hex-pairs in UUID strings. As shown in the example below. - -Example: - -```javascript -import { stringify as uuidStringify } from 'uuid'; - -const uuidBytes = [ - 0x6e, - 0xc0, - 0xbd, - 0x7f, - 0x11, - 0xc0, - 0x43, - 0xda, - 0x97, - 0x5e, - 0x2a, - 0x8a, - 0xd9, - 0xeb, - 0xae, - 0x0b, -]; - -uuidStringify(uuidBytes); // ⇨ '6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b' -``` - -### uuid.v1([options[, buffer[, offset]]]) - -Create an RFC version 1 (timestamp) UUID - -| | | -| --- | --- | -| [`options`] | `Object` with one or more of the following properties: | -| [`options.node` ] | RFC "node" field as an `Array[6]` of byte values (per 4.1.6) | -| [`options.clockseq`] | RFC "clock sequence" as a `Number` between 0 - 0x3fff | -| [`options.msecs`] | RFC "timestamp" field (`Number` of milliseconds, unix epoch) | -| [`options.nsecs`] | RFC "timestamp" field (`Number` of nanseconds to add to `msecs`, should be 0-10,000) | -| [`options.random`] | `Array` of 16 random bytes (0-255) | -| [`options.rng`] | Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) | -| [`buffer`] | `Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset` | -| [`offset` = 0] | `Number` Index to start writing UUID bytes in `buffer` | -| _returns_ | UUID `String` if no `buffer` is specified, otherwise returns `buffer` | -| _throws_ | `Error` if more than 10M UUIDs/sec are requested | - -Note: The default [node id](https://tools.ietf.org/html/rfc4122#section-4.1.6) (the last 12 digits in the UUID) is generated once, randomly, on process startup, and then remains unchanged for the duration of the process. - -Note: `options.random` and `options.rng` are only meaningful on the very first call to `v1()`, where they may be passed to initialize the internal `node` and `clockseq` fields. - -Example: - -```javascript -import { v1 as uuidv1 } from 'uuid'; - -uuidv1(); // ⇨ '2c5ea4c0-4067-11e9-8bad-9b1deb4d3b7d' -``` - -Example using `options`: - -```javascript -import { v1 as uuidv1 } from 'uuid'; - -const v1options = { - node: [0x01, 0x23, 0x45, 0x67, 0x89, 0xab], - clockseq: 0x1234, - msecs: new Date('2011-11-01').getTime(), - nsecs: 5678, -}; -uuidv1(v1options); // ⇨ '710b962e-041c-11e1-9234-0123456789ab' -``` - -### uuid.v3(name, namespace[, buffer[, offset]]) - -Create an RFC version 3 (namespace w/ MD5) UUID - -API is identical to `v5()`, but uses "v3" instead. - -⚠️ Note: Per the RFC, "_If backward compatibility is not an issue, SHA-1 [Version 5] is preferred_." - -### uuid.v4([options[, buffer[, offset]]]) - -Create an RFC version 4 (random) UUID - -| | | -| --- | --- | -| [`options`] | `Object` with one or more of the following properties: | -| [`options.random`] | `Array` of 16 random bytes (0-255) | -| [`options.rng`] | Alternative to `options.random`, a `Function` that returns an `Array` of 16 random bytes (0-255) | -| [`buffer`] | `Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset` | -| [`offset` = 0] | `Number` Index to start writing UUID bytes in `buffer` | -| _returns_ | UUID `String` if no `buffer` is specified, otherwise returns `buffer` | - -Example: - -```javascript -import { v4 as uuidv4 } from 'uuid'; - -uuidv4(); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed' -``` - -Example using predefined `random` values: - -```javascript -import { v4 as uuidv4 } from 'uuid'; - -const v4options = { - random: [ - 0x10, - 0x91, - 0x56, - 0xbe, - 0xc4, - 0xfb, - 0xc1, - 0xea, - 0x71, - 0xb4, - 0xef, - 0xe1, - 0x67, - 0x1c, - 0x58, - 0x36, - ], -}; -uuidv4(v4options); // ⇨ '109156be-c4fb-41ea-b1b4-efe1671c5836' -``` - -### uuid.v5(name, namespace[, buffer[, offset]]) - -Create an RFC version 5 (namespace w/ SHA-1) UUID - -| | | -| --- | --- | -| `name` | `String \| Array` | -| `namespace` | `String \| Array[16]` Namespace UUID | -| [`buffer`] | `Array \| Buffer` If specified, uuid will be written here in byte-form, starting at `offset` | -| [`offset` = 0] | `Number` Index to start writing UUID bytes in `buffer` | -| _returns_ | UUID `String` if no `buffer` is specified, otherwise returns `buffer` | - -Note: The RFC `DNS` and `URL` namespaces are available as `v5.DNS` and `v5.URL`. - -Example with custom namespace: - -```javascript -import { v5 as uuidv5 } from 'uuid'; - -// Define a custom namespace. Readers, create your own using something like -// https://www.uuidgenerator.net/ -const MY_NAMESPACE = '1b671a64-40d5-491e-99b0-da01ff1f3341'; - -uuidv5('Hello, World!', MY_NAMESPACE); // ⇨ '630eb68f-e0fa-5ecc-887a-7c7a62614681' -``` - -Example with RFC `URL` namespace: - -```javascript -import { v5 as uuidv5 } from 'uuid'; - -uuidv5('https://www.w3.org/', uuidv5.URL); // ⇨ 'c106a26a-21bb-5538-8bf2-57095d1976c1' -``` - -### uuid.validate(str) - -Test a string to see if it is a valid UUID - -| | | -| --------- | --------------------------------------------------- | -| `str` | `String` to validate | -| _returns_ | `true` if string is a valid UUID, `false` otherwise | - -Example: - -```javascript -import { validate as uuidValidate } from 'uuid'; - -uuidValidate('not a UUID'); // ⇨ false -uuidValidate('6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'); // ⇨ true -``` - -Using `validate` and `version` together it is possible to do per-version validation, e.g. validate for only v4 UUIds. - -```javascript -import { version as uuidVersion } from 'uuid'; -import { validate as uuidValidate } from 'uuid'; - -function uuidValidateV4(uuid) { - return uuidValidate(uuid) && uuidVersion(uuid) === 4; -} - -const v1Uuid = 'd9428888-122b-11e1-b85c-61cd3cbb3210'; -const v4Uuid = '109156be-c4fb-41ea-b1b4-efe1671c5836'; - -uuidValidateV4(v4Uuid); // ⇨ true -uuidValidateV4(v1Uuid); // ⇨ false -``` - -### uuid.version(str) - -Detect RFC version of a UUID - -| | | -| --------- | ---------------------------------------- | -| `str` | A valid UUID `String` | -| _returns_ | `Number` The RFC version of the UUID | -| _throws_ | `TypeError` if `str` is not a valid UUID | - -Example: - -```javascript -import { version as uuidVersion } from 'uuid'; - -uuidVersion('45637ec4-c85f-11ea-87d0-0242ac130003'); // ⇨ 1 -uuidVersion('6ec0bd7f-11c0-43da-975e-2a8ad9ebae0b'); // ⇨ 4 -``` - -## Command Line - -UUIDs can be generated from the command line using `uuid`. - -```shell -$ uuid -ddeb27fb-d9a0-4624-be4d-4615062daed4 -``` - -The default is to generate version 4 UUIDS, however the other versions are supported. Type `uuid --help` for details: - -```shell -$ uuid --help - -Usage: - uuid - uuid v1 - uuid v3 - uuid v4 - uuid v5 - uuid --help - -Note: may be "URL" or "DNS" to use the corresponding UUIDs -defined by RFC4122 -``` - -## ECMAScript Modules - -This library comes with [ECMAScript Modules](https://www.ecma-international.org/ecma-262/6.0/#sec-modules) (ESM) support for Node.js versions that support it ([example](./examples/node-esmodules/)) as well as bundlers like [rollup.js](https://rollupjs.org/guide/en/#tree-shaking) ([example](./examples/browser-rollup/)) and [webpack](https://webpack.js.org/guides/tree-shaking/) ([example](./examples/browser-webpack/)) (targeting both, Node.js and browser environments). - -```javascript -import { v4 as uuidv4 } from 'uuid'; -uuidv4(); // ⇨ '1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed' -``` - -To run the examples you must first create a dist build of this library in the module root: - -```shell -npm run build -``` - -## CDN Builds - -### ECMAScript Modules - -To load this module directly into modern browsers that [support loading ECMAScript Modules](https://caniuse.com/#feat=es6-module) you can make use of [jspm](https://jspm.org/): - -```html - -``` - -### UMD - -To load this module directly into older browsers you can use the [UMD (Universal Module Definition)](https://github.com/umdjs/umd) builds from any of the following CDNs: - -**Using [UNPKG](https://unpkg.com/uuid@latest/dist/umd/)**: - -```html - -``` - -**Using [jsDelivr](https://cdn.jsdelivr.net/npm/uuid@latest/dist/umd/)**: - -```html - -``` - -**Using [cdnjs](https://cdnjs.com/libraries/uuid)**: - -```html - -``` - -These CDNs all provide the same [`uuidv4()`](#uuidv4options-buffer-offset) method: - -```html - -``` - -Methods for the other algorithms ([`uuidv1()`](#uuidv1options-buffer-offset), [`uuidv3()`](#uuidv3name-namespace-buffer-offset) and [`uuidv5()`](#uuidv5name-namespace-buffer-offset)) are available from the files `uuidv1.min.js`, `uuidv3.min.js` and `uuidv5.min.js` respectively. - -## "getRandomValues() not supported" - -This error occurs in environments where the standard [`crypto.getRandomValues()`](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues) API is not supported. This issue can be resolved by adding an appropriate polyfill: - -### React Native / Expo - -1. Install [`react-native-get-random-values`](https://github.com/LinusU/react-native-get-random-values#readme) -1. Import it _before_ `uuid`. Since `uuid` might also appear as a transitive dependency of some other imports it's safest to just import `react-native-get-random-values` as the very first thing in your entry point: - -```javascript -import 'react-native-get-random-values'; -import { v4 as uuidv4 } from 'uuid'; -``` - -Note: If you are using Expo, you must be using at least `react-native-get-random-values@1.5.0` and `expo@39.0.0`. - -### Web Workers / Service Workers (Edge <= 18) - -[In Edge <= 18, Web Crypto is not supported in Web Workers or Service Workers](https://caniuse.com/#feat=cryptography) and we are not aware of a polyfill (let us know if you find one, please). - -## Upgrading From `uuid@7.x` - -### Only Named Exports Supported When Using with Node.js ESM - -`uuid@7.x` did not come with native ECMAScript Module (ESM) support for Node.js. Importing it in Node.js ESM consequently imported the CommonJS source with a default export. This library now comes with true Node.js ESM support and only provides named exports. - -Instead of doing: - -```javascript -import uuid from 'uuid'; -uuid.v4(); -``` - -you will now have to use the named exports: - -```javascript -import { v4 as uuidv4 } from 'uuid'; -uuidv4(); -``` - -### Deep Requires No Longer Supported - -Deep requires like `require('uuid/v4')` [which have been deprecated in `uuid@7.x`](#deep-requires-now-deprecated) are no longer supported. - -## Upgrading From `uuid@3.x` - -"_Wait... what happened to `uuid@4.x` - `uuid@6.x`?!?_" - -In order to avoid confusion with RFC [version 4](#uuidv4options-buffer-offset) and [version 5](#uuidv5name-namespace-buffer-offset) UUIDs, and a possible [version 6](http://gh.peabody.io/uuidv6/), releases 4 thru 6 of this module have been skipped. - -### Deep Requires Now Deprecated - -`uuid@3.x` encouraged the use of deep requires to minimize the bundle size of browser builds: - -```javascript -const uuidv4 = require('uuid/v4'); // <== NOW DEPRECATED! -uuidv4(); -``` - -As of `uuid@7.x` this library now provides ECMAScript modules builds, which allow packagers like Webpack and Rollup to do "tree-shaking" to remove dead code. Instead, use the `import` syntax: - -```javascript -import { v4 as uuidv4 } from 'uuid'; -uuidv4(); -``` - -... or for CommonJS: - -```javascript -const { v4: uuidv4 } = require('uuid'); -uuidv4(); -``` - -### Default Export Removed - -`uuid@3.x` was exporting the Version 4 UUID method as a default export: - -```javascript -const uuid = require('uuid'); // <== REMOVED! -``` - -This usage pattern was already discouraged in `uuid@3.x` and has been removed in `uuid@7.x`. - ----- -Markdown generated from [README_js.md](README_js.md) by [![RunMD Logo](http://i.imgur.com/h0FVyzU.png)](https://github.com/broofa/runmd) \ No newline at end of file diff --git a/node_modules/uuid/dist/bin/uuid b/node_modules/uuid/dist/bin/uuid deleted file mode 100755 index f38d2ee1..00000000 --- a/node_modules/uuid/dist/bin/uuid +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env node -require('../uuid-bin'); diff --git a/node_modules/uuid/dist/esm-browser/index.js b/node_modules/uuid/dist/esm-browser/index.js deleted file mode 100644 index 1db6f6d2..00000000 --- a/node_modules/uuid/dist/esm-browser/index.js +++ /dev/null @@ -1,9 +0,0 @@ -export { default as v1 } from './v1.js'; -export { default as v3 } from './v3.js'; -export { default as v4 } from './v4.js'; -export { default as v5 } from './v5.js'; -export { default as NIL } from './nil.js'; -export { default as version } from './version.js'; -export { default as validate } from './validate.js'; -export { default as stringify } from './stringify.js'; -export { default as parse } from './parse.js'; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/md5.js b/node_modules/uuid/dist/esm-browser/md5.js deleted file mode 100644 index 8b5d46a7..00000000 --- a/node_modules/uuid/dist/esm-browser/md5.js +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Browser-compatible JavaScript MD5 - * - * Modification of JavaScript MD5 - * https://github.com/blueimp/JavaScript-MD5 - * - * Copyright 2011, Sebastian Tschan - * https://blueimp.net - * - * Licensed under the MIT license: - * https://opensource.org/licenses/MIT - * - * Based on - * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message - * Digest Algorithm, as defined in RFC 1321. - * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 - * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet - * Distributed under the BSD License - * See http://pajhome.org.uk/crypt/md5 for more info. - */ -function md5(bytes) { - if (typeof bytes === 'string') { - var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape - - bytes = new Uint8Array(msg.length); - - for (var i = 0; i < msg.length; ++i) { - bytes[i] = msg.charCodeAt(i); - } - } - - return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8)); -} -/* - * Convert an array of little-endian words to an array of bytes - */ - - -function md5ToHexEncodedArray(input) { - var output = []; - var length32 = input.length * 32; - var hexTab = '0123456789abcdef'; - - for (var i = 0; i < length32; i += 8) { - var x = input[i >> 5] >>> i % 32 & 0xff; - var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16); - output.push(hex); - } - - return output; -} -/** - * Calculate output length with padding and bit length - */ - - -function getOutputLength(inputLength8) { - return (inputLength8 + 64 >>> 9 << 4) + 14 + 1; -} -/* - * Calculate the MD5 of an array of little-endian words, and a bit length. - */ - - -function wordsToMd5(x, len) { - /* append padding */ - x[len >> 5] |= 0x80 << len % 32; - x[getOutputLength(len) - 1] = len; - var a = 1732584193; - var b = -271733879; - var c = -1732584194; - var d = 271733878; - - for (var i = 0; i < x.length; i += 16) { - var olda = a; - var oldb = b; - var oldc = c; - var oldd = d; - a = md5ff(a, b, c, d, x[i], 7, -680876936); - d = md5ff(d, a, b, c, x[i + 1], 12, -389564586); - c = md5ff(c, d, a, b, x[i + 2], 17, 606105819); - b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330); - a = md5ff(a, b, c, d, x[i + 4], 7, -176418897); - d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426); - c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341); - b = md5ff(b, c, d, a, x[i + 7], 22, -45705983); - a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416); - d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417); - c = md5ff(c, d, a, b, x[i + 10], 17, -42063); - b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162); - a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682); - d = md5ff(d, a, b, c, x[i + 13], 12, -40341101); - c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290); - b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329); - a = md5gg(a, b, c, d, x[i + 1], 5, -165796510); - d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632); - c = md5gg(c, d, a, b, x[i + 11], 14, 643717713); - b = md5gg(b, c, d, a, x[i], 20, -373897302); - a = md5gg(a, b, c, d, x[i + 5], 5, -701558691); - d = md5gg(d, a, b, c, x[i + 10], 9, 38016083); - c = md5gg(c, d, a, b, x[i + 15], 14, -660478335); - b = md5gg(b, c, d, a, x[i + 4], 20, -405537848); - a = md5gg(a, b, c, d, x[i + 9], 5, 568446438); - d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690); - c = md5gg(c, d, a, b, x[i + 3], 14, -187363961); - b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501); - a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467); - d = md5gg(d, a, b, c, x[i + 2], 9, -51403784); - c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473); - b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734); - a = md5hh(a, b, c, d, x[i + 5], 4, -378558); - d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463); - c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562); - b = md5hh(b, c, d, a, x[i + 14], 23, -35309556); - a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060); - d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353); - c = md5hh(c, d, a, b, x[i + 7], 16, -155497632); - b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640); - a = md5hh(a, b, c, d, x[i + 13], 4, 681279174); - d = md5hh(d, a, b, c, x[i], 11, -358537222); - c = md5hh(c, d, a, b, x[i + 3], 16, -722521979); - b = md5hh(b, c, d, a, x[i + 6], 23, 76029189); - a = md5hh(a, b, c, d, x[i + 9], 4, -640364487); - d = md5hh(d, a, b, c, x[i + 12], 11, -421815835); - c = md5hh(c, d, a, b, x[i + 15], 16, 530742520); - b = md5hh(b, c, d, a, x[i + 2], 23, -995338651); - a = md5ii(a, b, c, d, x[i], 6, -198630844); - d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415); - c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905); - b = md5ii(b, c, d, a, x[i + 5], 21, -57434055); - a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571); - d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606); - c = md5ii(c, d, a, b, x[i + 10], 15, -1051523); - b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799); - a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359); - d = md5ii(d, a, b, c, x[i + 15], 10, -30611744); - c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380); - b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649); - a = md5ii(a, b, c, d, x[i + 4], 6, -145523070); - d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379); - c = md5ii(c, d, a, b, x[i + 2], 15, 718787259); - b = md5ii(b, c, d, a, x[i + 9], 21, -343485551); - a = safeAdd(a, olda); - b = safeAdd(b, oldb); - c = safeAdd(c, oldc); - d = safeAdd(d, oldd); - } - - return [a, b, c, d]; -} -/* - * Convert an array bytes to an array of little-endian words - * Characters >255 have their high-byte silently ignored. - */ - - -function bytesToWords(input) { - if (input.length === 0) { - return []; - } - - var length8 = input.length * 8; - var output = new Uint32Array(getOutputLength(length8)); - - for (var i = 0; i < length8; i += 8) { - output[i >> 5] |= (input[i / 8] & 0xff) << i % 32; - } - - return output; -} -/* - * Add integers, wrapping at 2^32. This uses 16-bit operations internally - * to work around bugs in some JS interpreters. - */ - - -function safeAdd(x, y) { - var lsw = (x & 0xffff) + (y & 0xffff); - var msw = (x >> 16) + (y >> 16) + (lsw >> 16); - return msw << 16 | lsw & 0xffff; -} -/* - * Bitwise rotate a 32-bit number to the left. - */ - - -function bitRotateLeft(num, cnt) { - return num << cnt | num >>> 32 - cnt; -} -/* - * These functions implement the four basic operations the algorithm uses. - */ - - -function md5cmn(q, a, b, x, s, t) { - return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b); -} - -function md5ff(a, b, c, d, x, s, t) { - return md5cmn(b & c | ~b & d, a, b, x, s, t); -} - -function md5gg(a, b, c, d, x, s, t) { - return md5cmn(b & d | c & ~d, a, b, x, s, t); -} - -function md5hh(a, b, c, d, x, s, t) { - return md5cmn(b ^ c ^ d, a, b, x, s, t); -} - -function md5ii(a, b, c, d, x, s, t) { - return md5cmn(c ^ (b | ~d), a, b, x, s, t); -} - -export default md5; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/nil.js b/node_modules/uuid/dist/esm-browser/nil.js deleted file mode 100644 index b36324c2..00000000 --- a/node_modules/uuid/dist/esm-browser/nil.js +++ /dev/null @@ -1 +0,0 @@ -export default '00000000-0000-0000-0000-000000000000'; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/parse.js b/node_modules/uuid/dist/esm-browser/parse.js deleted file mode 100644 index 7c5b1d5a..00000000 --- a/node_modules/uuid/dist/esm-browser/parse.js +++ /dev/null @@ -1,35 +0,0 @@ -import validate from './validate.js'; - -function parse(uuid) { - if (!validate(uuid)) { - throw TypeError('Invalid UUID'); - } - - var v; - var arr = new Uint8Array(16); // Parse ########-....-....-....-............ - - arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; - arr[1] = v >>> 16 & 0xff; - arr[2] = v >>> 8 & 0xff; - arr[3] = v & 0xff; // Parse ........-####-....-....-............ - - arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; - arr[5] = v & 0xff; // Parse ........-....-####-....-............ - - arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; - arr[7] = v & 0xff; // Parse ........-....-....-####-............ - - arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; - arr[9] = v & 0xff; // Parse ........-....-....-....-############ - // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) - - arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; - arr[11] = v / 0x100000000 & 0xff; - arr[12] = v >>> 24 & 0xff; - arr[13] = v >>> 16 & 0xff; - arr[14] = v >>> 8 & 0xff; - arr[15] = v & 0xff; - return arr; -} - -export default parse; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/regex.js b/node_modules/uuid/dist/esm-browser/regex.js deleted file mode 100644 index 3da8673a..00000000 --- a/node_modules/uuid/dist/esm-browser/regex.js +++ /dev/null @@ -1 +0,0 @@ -export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/rng.js b/node_modules/uuid/dist/esm-browser/rng.js deleted file mode 100644 index 8abbf2ea..00000000 --- a/node_modules/uuid/dist/esm-browser/rng.js +++ /dev/null @@ -1,19 +0,0 @@ -// Unique ID creation requires a high quality random # generator. In the browser we therefore -// require the crypto API and do not support built-in fallback to lower quality random number -// generators (like Math.random()). -var getRandomValues; -var rnds8 = new Uint8Array(16); -export default function rng() { - // lazy load so that environments that need to polyfill have a chance to do so - if (!getRandomValues) { - // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also, - // find the complete implementation of crypto (msCrypto) on IE11. - getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto); - - if (!getRandomValues) { - throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); - } - } - - return getRandomValues(rnds8); -} \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/sha1.js b/node_modules/uuid/dist/esm-browser/sha1.js deleted file mode 100644 index 940548ba..00000000 --- a/node_modules/uuid/dist/esm-browser/sha1.js +++ /dev/null @@ -1,96 +0,0 @@ -// Adapted from Chris Veness' SHA1 code at -// http://www.movable-type.co.uk/scripts/sha1.html -function f(s, x, y, z) { - switch (s) { - case 0: - return x & y ^ ~x & z; - - case 1: - return x ^ y ^ z; - - case 2: - return x & y ^ x & z ^ y & z; - - case 3: - return x ^ y ^ z; - } -} - -function ROTL(x, n) { - return x << n | x >>> 32 - n; -} - -function sha1(bytes) { - var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6]; - var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]; - - if (typeof bytes === 'string') { - var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape - - bytes = []; - - for (var i = 0; i < msg.length; ++i) { - bytes.push(msg.charCodeAt(i)); - } - } else if (!Array.isArray(bytes)) { - // Convert Array-like to Array - bytes = Array.prototype.slice.call(bytes); - } - - bytes.push(0x80); - var l = bytes.length / 4 + 2; - var N = Math.ceil(l / 16); - var M = new Array(N); - - for (var _i = 0; _i < N; ++_i) { - var arr = new Uint32Array(16); - - for (var j = 0; j < 16; ++j) { - arr[j] = bytes[_i * 64 + j * 4] << 24 | bytes[_i * 64 + j * 4 + 1] << 16 | bytes[_i * 64 + j * 4 + 2] << 8 | bytes[_i * 64 + j * 4 + 3]; - } - - M[_i] = arr; - } - - M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32); - M[N - 1][14] = Math.floor(M[N - 1][14]); - M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff; - - for (var _i2 = 0; _i2 < N; ++_i2) { - var W = new Uint32Array(80); - - for (var t = 0; t < 16; ++t) { - W[t] = M[_i2][t]; - } - - for (var _t = 16; _t < 80; ++_t) { - W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1); - } - - var a = H[0]; - var b = H[1]; - var c = H[2]; - var d = H[3]; - var e = H[4]; - - for (var _t2 = 0; _t2 < 80; ++_t2) { - var s = Math.floor(_t2 / 20); - var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0; - e = d; - d = c; - c = ROTL(b, 30) >>> 0; - b = a; - a = T; - } - - H[0] = H[0] + a >>> 0; - H[1] = H[1] + b >>> 0; - H[2] = H[2] + c >>> 0; - H[3] = H[3] + d >>> 0; - H[4] = H[4] + e >>> 0; - } - - return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff]; -} - -export default sha1; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/stringify.js b/node_modules/uuid/dist/esm-browser/stringify.js deleted file mode 100644 index 31021115..00000000 --- a/node_modules/uuid/dist/esm-browser/stringify.js +++ /dev/null @@ -1,30 +0,0 @@ -import validate from './validate.js'; -/** - * Convert array of 16 byte values to UUID string format of the form: - * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - */ - -var byteToHex = []; - -for (var i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).substr(1)); -} - -function stringify(arr) { - var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - // Note: Be careful editing this code! It's been tuned for performance - // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 - var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one - // of the following: - // - One or more input array values don't map to a hex octet (leading to - // "undefined" in the uuid) - // - Invalid input values for the RFC `version` or `variant` fields - - if (!validate(uuid)) { - throw TypeError('Stringified UUID is invalid'); - } - - return uuid; -} - -export default stringify; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v1.js b/node_modules/uuid/dist/esm-browser/v1.js deleted file mode 100644 index 1a22591e..00000000 --- a/node_modules/uuid/dist/esm-browser/v1.js +++ /dev/null @@ -1,95 +0,0 @@ -import rng from './rng.js'; -import stringify from './stringify.js'; // **`v1()` - Generate time-based UUID** -// -// Inspired by https://github.com/LiosK/UUID.js -// and http://docs.python.org/library/uuid.html - -var _nodeId; - -var _clockseq; // Previous uuid creation time - - -var _lastMSecs = 0; -var _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details - -function v1(options, buf, offset) { - var i = buf && offset || 0; - var b = buf || new Array(16); - options = options || {}; - var node = options.node || _nodeId; - var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not - // specified. We do this lazily to minimize issues related to insufficient - // system entropy. See #189 - - if (node == null || clockseq == null) { - var seedBytes = options.random || (options.rng || rng)(); - - if (node == null) { - // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) - node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; - } - - if (clockseq == null) { - // Per 4.2.2, randomize (14 bit) clockseq - clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; - } - } // UUID timestamps are 100 nano-second units since the Gregorian epoch, - // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so - // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' - // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. - - - var msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock - // cycle to simulate higher resolution clock - - var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) - - var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression - - if (dt < 0 && options.clockseq === undefined) { - clockseq = clockseq + 1 & 0x3fff; - } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new - // time interval - - - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { - nsecs = 0; - } // Per 4.2.1.2 Throw error if too many uuids are requested - - - if (nsecs >= 10000) { - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - } - - _lastMSecs = msecs; - _lastNSecs = nsecs; - _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch - - msecs += 12219292800000; // `time_low` - - var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; - b[i++] = tl >>> 24 & 0xff; - b[i++] = tl >>> 16 & 0xff; - b[i++] = tl >>> 8 & 0xff; - b[i++] = tl & 0xff; // `time_mid` - - var tmh = msecs / 0x100000000 * 10000 & 0xfffffff; - b[i++] = tmh >>> 8 & 0xff; - b[i++] = tmh & 0xff; // `time_high_and_version` - - b[i++] = tmh >>> 24 & 0xf | 0x10; // include version - - b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) - - b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` - - b[i++] = clockseq & 0xff; // `node` - - for (var n = 0; n < 6; ++n) { - b[i + n] = node[n]; - } - - return buf || stringify(b); -} - -export default v1; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v3.js b/node_modules/uuid/dist/esm-browser/v3.js deleted file mode 100644 index c9ab9a4c..00000000 --- a/node_modules/uuid/dist/esm-browser/v3.js +++ /dev/null @@ -1,4 +0,0 @@ -import v35 from './v35.js'; -import md5 from './md5.js'; -var v3 = v35('v3', 0x30, md5); -export default v3; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v35.js b/node_modules/uuid/dist/esm-browser/v35.js deleted file mode 100644 index 31dd8a1c..00000000 --- a/node_modules/uuid/dist/esm-browser/v35.js +++ /dev/null @@ -1,64 +0,0 @@ -import stringify from './stringify.js'; -import parse from './parse.js'; - -function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); // UTF8 escape - - var bytes = []; - - for (var i = 0; i < str.length; ++i) { - bytes.push(str.charCodeAt(i)); - } - - return bytes; -} - -export var DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; -export var URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; -export default function (name, version, hashfunc) { - function generateUUID(value, namespace, buf, offset) { - if (typeof value === 'string') { - value = stringToBytes(value); - } - - if (typeof namespace === 'string') { - namespace = parse(namespace); - } - - if (namespace.length !== 16) { - throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); - } // Compute hash of namespace and value, Per 4.3 - // Future: Use spread syntax when supported on all platforms, e.g. `bytes = - // hashfunc([...namespace, ... value])` - - - var bytes = new Uint8Array(16 + value.length); - bytes.set(namespace); - bytes.set(value, namespace.length); - bytes = hashfunc(bytes); - bytes[6] = bytes[6] & 0x0f | version; - bytes[8] = bytes[8] & 0x3f | 0x80; - - if (buf) { - offset = offset || 0; - - for (var i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } - - return buf; - } - - return stringify(bytes); - } // Function#name is not settable on some platforms (#270) - - - try { - generateUUID.name = name; // eslint-disable-next-line no-empty - } catch (err) {} // For CommonJS default export support - - - generateUUID.DNS = DNS; - generateUUID.URL = URL; - return generateUUID; -} \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v4.js b/node_modules/uuid/dist/esm-browser/v4.js deleted file mode 100644 index 404810a4..00000000 --- a/node_modules/uuid/dist/esm-browser/v4.js +++ /dev/null @@ -1,24 +0,0 @@ -import rng from './rng.js'; -import stringify from './stringify.js'; - -function v4(options, buf, offset) { - options = options || {}; - var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` - - rnds[6] = rnds[6] & 0x0f | 0x40; - rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided - - if (buf) { - offset = offset || 0; - - for (var i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - - return buf; - } - - return stringify(rnds); -} - -export default v4; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/v5.js b/node_modules/uuid/dist/esm-browser/v5.js deleted file mode 100644 index c08d96ba..00000000 --- a/node_modules/uuid/dist/esm-browser/v5.js +++ /dev/null @@ -1,4 +0,0 @@ -import v35 from './v35.js'; -import sha1 from './sha1.js'; -var v5 = v35('v5', 0x50, sha1); -export default v5; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/validate.js b/node_modules/uuid/dist/esm-browser/validate.js deleted file mode 100644 index f1cdc7af..00000000 --- a/node_modules/uuid/dist/esm-browser/validate.js +++ /dev/null @@ -1,7 +0,0 @@ -import REGEX from './regex.js'; - -function validate(uuid) { - return typeof uuid === 'string' && REGEX.test(uuid); -} - -export default validate; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-browser/version.js b/node_modules/uuid/dist/esm-browser/version.js deleted file mode 100644 index 77530e9c..00000000 --- a/node_modules/uuid/dist/esm-browser/version.js +++ /dev/null @@ -1,11 +0,0 @@ -import validate from './validate.js'; - -function version(uuid) { - if (!validate(uuid)) { - throw TypeError('Invalid UUID'); - } - - return parseInt(uuid.substr(14, 1), 16); -} - -export default version; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/index.js b/node_modules/uuid/dist/esm-node/index.js deleted file mode 100644 index 1db6f6d2..00000000 --- a/node_modules/uuid/dist/esm-node/index.js +++ /dev/null @@ -1,9 +0,0 @@ -export { default as v1 } from './v1.js'; -export { default as v3 } from './v3.js'; -export { default as v4 } from './v4.js'; -export { default as v5 } from './v5.js'; -export { default as NIL } from './nil.js'; -export { default as version } from './version.js'; -export { default as validate } from './validate.js'; -export { default as stringify } from './stringify.js'; -export { default as parse } from './parse.js'; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/md5.js b/node_modules/uuid/dist/esm-node/md5.js deleted file mode 100644 index 4d68b040..00000000 --- a/node_modules/uuid/dist/esm-node/md5.js +++ /dev/null @@ -1,13 +0,0 @@ -import crypto from 'crypto'; - -function md5(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - - return crypto.createHash('md5').update(bytes).digest(); -} - -export default md5; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/nil.js b/node_modules/uuid/dist/esm-node/nil.js deleted file mode 100644 index b36324c2..00000000 --- a/node_modules/uuid/dist/esm-node/nil.js +++ /dev/null @@ -1 +0,0 @@ -export default '00000000-0000-0000-0000-000000000000'; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/parse.js b/node_modules/uuid/dist/esm-node/parse.js deleted file mode 100644 index 6421c5d5..00000000 --- a/node_modules/uuid/dist/esm-node/parse.js +++ /dev/null @@ -1,35 +0,0 @@ -import validate from './validate.js'; - -function parse(uuid) { - if (!validate(uuid)) { - throw TypeError('Invalid UUID'); - } - - let v; - const arr = new Uint8Array(16); // Parse ########-....-....-....-............ - - arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; - arr[1] = v >>> 16 & 0xff; - arr[2] = v >>> 8 & 0xff; - arr[3] = v & 0xff; // Parse ........-####-....-....-............ - - arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; - arr[5] = v & 0xff; // Parse ........-....-####-....-............ - - arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; - arr[7] = v & 0xff; // Parse ........-....-....-####-............ - - arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; - arr[9] = v & 0xff; // Parse ........-....-....-....-############ - // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) - - arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; - arr[11] = v / 0x100000000 & 0xff; - arr[12] = v >>> 24 & 0xff; - arr[13] = v >>> 16 & 0xff; - arr[14] = v >>> 8 & 0xff; - arr[15] = v & 0xff; - return arr; -} - -export default parse; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/regex.js b/node_modules/uuid/dist/esm-node/regex.js deleted file mode 100644 index 3da8673a..00000000 --- a/node_modules/uuid/dist/esm-node/regex.js +++ /dev/null @@ -1 +0,0 @@ -export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/rng.js b/node_modules/uuid/dist/esm-node/rng.js deleted file mode 100644 index 80062449..00000000 --- a/node_modules/uuid/dist/esm-node/rng.js +++ /dev/null @@ -1,12 +0,0 @@ -import crypto from 'crypto'; -const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate - -let poolPtr = rnds8Pool.length; -export default function rng() { - if (poolPtr > rnds8Pool.length - 16) { - crypto.randomFillSync(rnds8Pool); - poolPtr = 0; - } - - return rnds8Pool.slice(poolPtr, poolPtr += 16); -} \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/sha1.js b/node_modules/uuid/dist/esm-node/sha1.js deleted file mode 100644 index e23850b4..00000000 --- a/node_modules/uuid/dist/esm-node/sha1.js +++ /dev/null @@ -1,13 +0,0 @@ -import crypto from 'crypto'; - -function sha1(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - - return crypto.createHash('sha1').update(bytes).digest(); -} - -export default sha1; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/stringify.js b/node_modules/uuid/dist/esm-node/stringify.js deleted file mode 100644 index f9bca120..00000000 --- a/node_modules/uuid/dist/esm-node/stringify.js +++ /dev/null @@ -1,29 +0,0 @@ -import validate from './validate.js'; -/** - * Convert array of 16 byte values to UUID string format of the form: - * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - */ - -const byteToHex = []; - -for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).substr(1)); -} - -function stringify(arr, offset = 0) { - // Note: Be careful editing this code! It's been tuned for performance - // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 - const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one - // of the following: - // - One or more input array values don't map to a hex octet (leading to - // "undefined" in the uuid) - // - Invalid input values for the RFC `version` or `variant` fields - - if (!validate(uuid)) { - throw TypeError('Stringified UUID is invalid'); - } - - return uuid; -} - -export default stringify; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v1.js b/node_modules/uuid/dist/esm-node/v1.js deleted file mode 100644 index ebf81acb..00000000 --- a/node_modules/uuid/dist/esm-node/v1.js +++ /dev/null @@ -1,95 +0,0 @@ -import rng from './rng.js'; -import stringify from './stringify.js'; // **`v1()` - Generate time-based UUID** -// -// Inspired by https://github.com/LiosK/UUID.js -// and http://docs.python.org/library/uuid.html - -let _nodeId; - -let _clockseq; // Previous uuid creation time - - -let _lastMSecs = 0; -let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details - -function v1(options, buf, offset) { - let i = buf && offset || 0; - const b = buf || new Array(16); - options = options || {}; - let node = options.node || _nodeId; - let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not - // specified. We do this lazily to minimize issues related to insufficient - // system entropy. See #189 - - if (node == null || clockseq == null) { - const seedBytes = options.random || (options.rng || rng)(); - - if (node == null) { - // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) - node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; - } - - if (clockseq == null) { - // Per 4.2.2, randomize (14 bit) clockseq - clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; - } - } // UUID timestamps are 100 nano-second units since the Gregorian epoch, - // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so - // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' - // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. - - - let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock - // cycle to simulate higher resolution clock - - let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) - - const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression - - if (dt < 0 && options.clockseq === undefined) { - clockseq = clockseq + 1 & 0x3fff; - } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new - // time interval - - - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { - nsecs = 0; - } // Per 4.2.1.2 Throw error if too many uuids are requested - - - if (nsecs >= 10000) { - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - } - - _lastMSecs = msecs; - _lastNSecs = nsecs; - _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch - - msecs += 12219292800000; // `time_low` - - const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; - b[i++] = tl >>> 24 & 0xff; - b[i++] = tl >>> 16 & 0xff; - b[i++] = tl >>> 8 & 0xff; - b[i++] = tl & 0xff; // `time_mid` - - const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; - b[i++] = tmh >>> 8 & 0xff; - b[i++] = tmh & 0xff; // `time_high_and_version` - - b[i++] = tmh >>> 24 & 0xf | 0x10; // include version - - b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) - - b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` - - b[i++] = clockseq & 0xff; // `node` - - for (let n = 0; n < 6; ++n) { - b[i + n] = node[n]; - } - - return buf || stringify(b); -} - -export default v1; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v3.js b/node_modules/uuid/dist/esm-node/v3.js deleted file mode 100644 index 09063b86..00000000 --- a/node_modules/uuid/dist/esm-node/v3.js +++ /dev/null @@ -1,4 +0,0 @@ -import v35 from './v35.js'; -import md5 from './md5.js'; -const v3 = v35('v3', 0x30, md5); -export default v3; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v35.js b/node_modules/uuid/dist/esm-node/v35.js deleted file mode 100644 index 22f6a196..00000000 --- a/node_modules/uuid/dist/esm-node/v35.js +++ /dev/null @@ -1,64 +0,0 @@ -import stringify from './stringify.js'; -import parse from './parse.js'; - -function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); // UTF8 escape - - const bytes = []; - - for (let i = 0; i < str.length; ++i) { - bytes.push(str.charCodeAt(i)); - } - - return bytes; -} - -export const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; -export const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; -export default function (name, version, hashfunc) { - function generateUUID(value, namespace, buf, offset) { - if (typeof value === 'string') { - value = stringToBytes(value); - } - - if (typeof namespace === 'string') { - namespace = parse(namespace); - } - - if (namespace.length !== 16) { - throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); - } // Compute hash of namespace and value, Per 4.3 - // Future: Use spread syntax when supported on all platforms, e.g. `bytes = - // hashfunc([...namespace, ... value])` - - - let bytes = new Uint8Array(16 + value.length); - bytes.set(namespace); - bytes.set(value, namespace.length); - bytes = hashfunc(bytes); - bytes[6] = bytes[6] & 0x0f | version; - bytes[8] = bytes[8] & 0x3f | 0x80; - - if (buf) { - offset = offset || 0; - - for (let i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } - - return buf; - } - - return stringify(bytes); - } // Function#name is not settable on some platforms (#270) - - - try { - generateUUID.name = name; // eslint-disable-next-line no-empty - } catch (err) {} // For CommonJS default export support - - - generateUUID.DNS = DNS; - generateUUID.URL = URL; - return generateUUID; -} \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v4.js b/node_modules/uuid/dist/esm-node/v4.js deleted file mode 100644 index efad926f..00000000 --- a/node_modules/uuid/dist/esm-node/v4.js +++ /dev/null @@ -1,24 +0,0 @@ -import rng from './rng.js'; -import stringify from './stringify.js'; - -function v4(options, buf, offset) { - options = options || {}; - const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` - - rnds[6] = rnds[6] & 0x0f | 0x40; - rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided - - if (buf) { - offset = offset || 0; - - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - - return buf; - } - - return stringify(rnds); -} - -export default v4; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/v5.js b/node_modules/uuid/dist/esm-node/v5.js deleted file mode 100644 index e87fe317..00000000 --- a/node_modules/uuid/dist/esm-node/v5.js +++ /dev/null @@ -1,4 +0,0 @@ -import v35 from './v35.js'; -import sha1 from './sha1.js'; -const v5 = v35('v5', 0x50, sha1); -export default v5; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/validate.js b/node_modules/uuid/dist/esm-node/validate.js deleted file mode 100644 index f1cdc7af..00000000 --- a/node_modules/uuid/dist/esm-node/validate.js +++ /dev/null @@ -1,7 +0,0 @@ -import REGEX from './regex.js'; - -function validate(uuid) { - return typeof uuid === 'string' && REGEX.test(uuid); -} - -export default validate; \ No newline at end of file diff --git a/node_modules/uuid/dist/esm-node/version.js b/node_modules/uuid/dist/esm-node/version.js deleted file mode 100644 index 77530e9c..00000000 --- a/node_modules/uuid/dist/esm-node/version.js +++ /dev/null @@ -1,11 +0,0 @@ -import validate from './validate.js'; - -function version(uuid) { - if (!validate(uuid)) { - throw TypeError('Invalid UUID'); - } - - return parseInt(uuid.substr(14, 1), 16); -} - -export default version; \ No newline at end of file diff --git a/node_modules/uuid/dist/index.js b/node_modules/uuid/dist/index.js deleted file mode 100644 index bf13b103..00000000 --- a/node_modules/uuid/dist/index.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -Object.defineProperty(exports, "v1", { - enumerable: true, - get: function () { - return _v.default; - } -}); -Object.defineProperty(exports, "v3", { - enumerable: true, - get: function () { - return _v2.default; - } -}); -Object.defineProperty(exports, "v4", { - enumerable: true, - get: function () { - return _v3.default; - } -}); -Object.defineProperty(exports, "v5", { - enumerable: true, - get: function () { - return _v4.default; - } -}); -Object.defineProperty(exports, "NIL", { - enumerable: true, - get: function () { - return _nil.default; - } -}); -Object.defineProperty(exports, "version", { - enumerable: true, - get: function () { - return _version.default; - } -}); -Object.defineProperty(exports, "validate", { - enumerable: true, - get: function () { - return _validate.default; - } -}); -Object.defineProperty(exports, "stringify", { - enumerable: true, - get: function () { - return _stringify.default; - } -}); -Object.defineProperty(exports, "parse", { - enumerable: true, - get: function () { - return _parse.default; - } -}); - -var _v = _interopRequireDefault(require("./v1.js")); - -var _v2 = _interopRequireDefault(require("./v3.js")); - -var _v3 = _interopRequireDefault(require("./v4.js")); - -var _v4 = _interopRequireDefault(require("./v5.js")); - -var _nil = _interopRequireDefault(require("./nil.js")); - -var _version = _interopRequireDefault(require("./version.js")); - -var _validate = _interopRequireDefault(require("./validate.js")); - -var _stringify = _interopRequireDefault(require("./stringify.js")); - -var _parse = _interopRequireDefault(require("./parse.js")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } \ No newline at end of file diff --git a/node_modules/uuid/dist/md5-browser.js b/node_modules/uuid/dist/md5-browser.js deleted file mode 100644 index 7a4582ac..00000000 --- a/node_modules/uuid/dist/md5-browser.js +++ /dev/null @@ -1,223 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -/* - * Browser-compatible JavaScript MD5 - * - * Modification of JavaScript MD5 - * https://github.com/blueimp/JavaScript-MD5 - * - * Copyright 2011, Sebastian Tschan - * https://blueimp.net - * - * Licensed under the MIT license: - * https://opensource.org/licenses/MIT - * - * Based on - * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message - * Digest Algorithm, as defined in RFC 1321. - * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 - * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet - * Distributed under the BSD License - * See http://pajhome.org.uk/crypt/md5 for more info. - */ -function md5(bytes) { - if (typeof bytes === 'string') { - const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape - - bytes = new Uint8Array(msg.length); - - for (let i = 0; i < msg.length; ++i) { - bytes[i] = msg.charCodeAt(i); - } - } - - return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8)); -} -/* - * Convert an array of little-endian words to an array of bytes - */ - - -function md5ToHexEncodedArray(input) { - const output = []; - const length32 = input.length * 32; - const hexTab = '0123456789abcdef'; - - for (let i = 0; i < length32; i += 8) { - const x = input[i >> 5] >>> i % 32 & 0xff; - const hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16); - output.push(hex); - } - - return output; -} -/** - * Calculate output length with padding and bit length - */ - - -function getOutputLength(inputLength8) { - return (inputLength8 + 64 >>> 9 << 4) + 14 + 1; -} -/* - * Calculate the MD5 of an array of little-endian words, and a bit length. - */ - - -function wordsToMd5(x, len) { - /* append padding */ - x[len >> 5] |= 0x80 << len % 32; - x[getOutputLength(len) - 1] = len; - let a = 1732584193; - let b = -271733879; - let c = -1732584194; - let d = 271733878; - - for (let i = 0; i < x.length; i += 16) { - const olda = a; - const oldb = b; - const oldc = c; - const oldd = d; - a = md5ff(a, b, c, d, x[i], 7, -680876936); - d = md5ff(d, a, b, c, x[i + 1], 12, -389564586); - c = md5ff(c, d, a, b, x[i + 2], 17, 606105819); - b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330); - a = md5ff(a, b, c, d, x[i + 4], 7, -176418897); - d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426); - c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341); - b = md5ff(b, c, d, a, x[i + 7], 22, -45705983); - a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416); - d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417); - c = md5ff(c, d, a, b, x[i + 10], 17, -42063); - b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162); - a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682); - d = md5ff(d, a, b, c, x[i + 13], 12, -40341101); - c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290); - b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329); - a = md5gg(a, b, c, d, x[i + 1], 5, -165796510); - d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632); - c = md5gg(c, d, a, b, x[i + 11], 14, 643717713); - b = md5gg(b, c, d, a, x[i], 20, -373897302); - a = md5gg(a, b, c, d, x[i + 5], 5, -701558691); - d = md5gg(d, a, b, c, x[i + 10], 9, 38016083); - c = md5gg(c, d, a, b, x[i + 15], 14, -660478335); - b = md5gg(b, c, d, a, x[i + 4], 20, -405537848); - a = md5gg(a, b, c, d, x[i + 9], 5, 568446438); - d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690); - c = md5gg(c, d, a, b, x[i + 3], 14, -187363961); - b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501); - a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467); - d = md5gg(d, a, b, c, x[i + 2], 9, -51403784); - c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473); - b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734); - a = md5hh(a, b, c, d, x[i + 5], 4, -378558); - d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463); - c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562); - b = md5hh(b, c, d, a, x[i + 14], 23, -35309556); - a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060); - d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353); - c = md5hh(c, d, a, b, x[i + 7], 16, -155497632); - b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640); - a = md5hh(a, b, c, d, x[i + 13], 4, 681279174); - d = md5hh(d, a, b, c, x[i], 11, -358537222); - c = md5hh(c, d, a, b, x[i + 3], 16, -722521979); - b = md5hh(b, c, d, a, x[i + 6], 23, 76029189); - a = md5hh(a, b, c, d, x[i + 9], 4, -640364487); - d = md5hh(d, a, b, c, x[i + 12], 11, -421815835); - c = md5hh(c, d, a, b, x[i + 15], 16, 530742520); - b = md5hh(b, c, d, a, x[i + 2], 23, -995338651); - a = md5ii(a, b, c, d, x[i], 6, -198630844); - d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415); - c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905); - b = md5ii(b, c, d, a, x[i + 5], 21, -57434055); - a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571); - d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606); - c = md5ii(c, d, a, b, x[i + 10], 15, -1051523); - b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799); - a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359); - d = md5ii(d, a, b, c, x[i + 15], 10, -30611744); - c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380); - b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649); - a = md5ii(a, b, c, d, x[i + 4], 6, -145523070); - d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379); - c = md5ii(c, d, a, b, x[i + 2], 15, 718787259); - b = md5ii(b, c, d, a, x[i + 9], 21, -343485551); - a = safeAdd(a, olda); - b = safeAdd(b, oldb); - c = safeAdd(c, oldc); - d = safeAdd(d, oldd); - } - - return [a, b, c, d]; -} -/* - * Convert an array bytes to an array of little-endian words - * Characters >255 have their high-byte silently ignored. - */ - - -function bytesToWords(input) { - if (input.length === 0) { - return []; - } - - const length8 = input.length * 8; - const output = new Uint32Array(getOutputLength(length8)); - - for (let i = 0; i < length8; i += 8) { - output[i >> 5] |= (input[i / 8] & 0xff) << i % 32; - } - - return output; -} -/* - * Add integers, wrapping at 2^32. This uses 16-bit operations internally - * to work around bugs in some JS interpreters. - */ - - -function safeAdd(x, y) { - const lsw = (x & 0xffff) + (y & 0xffff); - const msw = (x >> 16) + (y >> 16) + (lsw >> 16); - return msw << 16 | lsw & 0xffff; -} -/* - * Bitwise rotate a 32-bit number to the left. - */ - - -function bitRotateLeft(num, cnt) { - return num << cnt | num >>> 32 - cnt; -} -/* - * These functions implement the four basic operations the algorithm uses. - */ - - -function md5cmn(q, a, b, x, s, t) { - return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b); -} - -function md5ff(a, b, c, d, x, s, t) { - return md5cmn(b & c | ~b & d, a, b, x, s, t); -} - -function md5gg(a, b, c, d, x, s, t) { - return md5cmn(b & d | c & ~d, a, b, x, s, t); -} - -function md5hh(a, b, c, d, x, s, t) { - return md5cmn(b ^ c ^ d, a, b, x, s, t); -} - -function md5ii(a, b, c, d, x, s, t) { - return md5cmn(c ^ (b | ~d), a, b, x, s, t); -} - -var _default = md5; -exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/md5.js b/node_modules/uuid/dist/md5.js deleted file mode 100644 index 824d4816..00000000 --- a/node_modules/uuid/dist/md5.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _crypto = _interopRequireDefault(require("crypto")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function md5(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - - return _crypto.default.createHash('md5').update(bytes).digest(); -} - -var _default = md5; -exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/nil.js b/node_modules/uuid/dist/nil.js deleted file mode 100644 index 7ade577b..00000000 --- a/node_modules/uuid/dist/nil.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _default = '00000000-0000-0000-0000-000000000000'; -exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/parse.js b/node_modules/uuid/dist/parse.js deleted file mode 100644 index 4c69fc39..00000000 --- a/node_modules/uuid/dist/parse.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _validate = _interopRequireDefault(require("./validate.js")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function parse(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError('Invalid UUID'); - } - - let v; - const arr = new Uint8Array(16); // Parse ########-....-....-....-............ - - arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24; - arr[1] = v >>> 16 & 0xff; - arr[2] = v >>> 8 & 0xff; - arr[3] = v & 0xff; // Parse ........-####-....-....-............ - - arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8; - arr[5] = v & 0xff; // Parse ........-....-####-....-............ - - arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8; - arr[7] = v & 0xff; // Parse ........-....-....-####-............ - - arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8; - arr[9] = v & 0xff; // Parse ........-....-....-....-############ - // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes) - - arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff; - arr[11] = v / 0x100000000 & 0xff; - arr[12] = v >>> 24 & 0xff; - arr[13] = v >>> 16 & 0xff; - arr[14] = v >>> 8 & 0xff; - arr[15] = v & 0xff; - return arr; -} - -var _default = parse; -exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/regex.js b/node_modules/uuid/dist/regex.js deleted file mode 100644 index 1ef91d64..00000000 --- a/node_modules/uuid/dist/regex.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; -var _default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; -exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/rng-browser.js b/node_modules/uuid/dist/rng-browser.js deleted file mode 100644 index 91faeae6..00000000 --- a/node_modules/uuid/dist/rng-browser.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = rng; -// Unique ID creation requires a high quality random # generator. In the browser we therefore -// require the crypto API and do not support built-in fallback to lower quality random number -// generators (like Math.random()). -let getRandomValues; -const rnds8 = new Uint8Array(16); - -function rng() { - // lazy load so that environments that need to polyfill have a chance to do so - if (!getRandomValues) { - // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also, - // find the complete implementation of crypto (msCrypto) on IE11. - getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto); - - if (!getRandomValues) { - throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported'); - } - } - - return getRandomValues(rnds8); -} \ No newline at end of file diff --git a/node_modules/uuid/dist/rng.js b/node_modules/uuid/dist/rng.js deleted file mode 100644 index 3507f937..00000000 --- a/node_modules/uuid/dist/rng.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = rng; - -var _crypto = _interopRequireDefault(require("crypto")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -const rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate - -let poolPtr = rnds8Pool.length; - -function rng() { - if (poolPtr > rnds8Pool.length - 16) { - _crypto.default.randomFillSync(rnds8Pool); - - poolPtr = 0; - } - - return rnds8Pool.slice(poolPtr, poolPtr += 16); -} \ No newline at end of file diff --git a/node_modules/uuid/dist/sha1-browser.js b/node_modules/uuid/dist/sha1-browser.js deleted file mode 100644 index 24cbcedc..00000000 --- a/node_modules/uuid/dist/sha1-browser.js +++ /dev/null @@ -1,104 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -// Adapted from Chris Veness' SHA1 code at -// http://www.movable-type.co.uk/scripts/sha1.html -function f(s, x, y, z) { - switch (s) { - case 0: - return x & y ^ ~x & z; - - case 1: - return x ^ y ^ z; - - case 2: - return x & y ^ x & z ^ y & z; - - case 3: - return x ^ y ^ z; - } -} - -function ROTL(x, n) { - return x << n | x >>> 32 - n; -} - -function sha1(bytes) { - const K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6]; - const H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]; - - if (typeof bytes === 'string') { - const msg = unescape(encodeURIComponent(bytes)); // UTF8 escape - - bytes = []; - - for (let i = 0; i < msg.length; ++i) { - bytes.push(msg.charCodeAt(i)); - } - } else if (!Array.isArray(bytes)) { - // Convert Array-like to Array - bytes = Array.prototype.slice.call(bytes); - } - - bytes.push(0x80); - const l = bytes.length / 4 + 2; - const N = Math.ceil(l / 16); - const M = new Array(N); - - for (let i = 0; i < N; ++i) { - const arr = new Uint32Array(16); - - for (let j = 0; j < 16; ++j) { - arr[j] = bytes[i * 64 + j * 4] << 24 | bytes[i * 64 + j * 4 + 1] << 16 | bytes[i * 64 + j * 4 + 2] << 8 | bytes[i * 64 + j * 4 + 3]; - } - - M[i] = arr; - } - - M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32); - M[N - 1][14] = Math.floor(M[N - 1][14]); - M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff; - - for (let i = 0; i < N; ++i) { - const W = new Uint32Array(80); - - for (let t = 0; t < 16; ++t) { - W[t] = M[i][t]; - } - - for (let t = 16; t < 80; ++t) { - W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1); - } - - let a = H[0]; - let b = H[1]; - let c = H[2]; - let d = H[3]; - let e = H[4]; - - for (let t = 0; t < 80; ++t) { - const s = Math.floor(t / 20); - const T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t] >>> 0; - e = d; - d = c; - c = ROTL(b, 30) >>> 0; - b = a; - a = T; - } - - H[0] = H[0] + a >>> 0; - H[1] = H[1] + b >>> 0; - H[2] = H[2] + c >>> 0; - H[3] = H[3] + d >>> 0; - H[4] = H[4] + e >>> 0; - } - - return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff]; -} - -var _default = sha1; -exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/sha1.js b/node_modules/uuid/dist/sha1.js deleted file mode 100644 index 03bdd63c..00000000 --- a/node_modules/uuid/dist/sha1.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _crypto = _interopRequireDefault(require("crypto")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function sha1(bytes) { - if (Array.isArray(bytes)) { - bytes = Buffer.from(bytes); - } else if (typeof bytes === 'string') { - bytes = Buffer.from(bytes, 'utf8'); - } - - return _crypto.default.createHash('sha1').update(bytes).digest(); -} - -var _default = sha1; -exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/stringify.js b/node_modules/uuid/dist/stringify.js deleted file mode 100644 index b8e75194..00000000 --- a/node_modules/uuid/dist/stringify.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _validate = _interopRequireDefault(require("./validate.js")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -/** - * Convert array of 16 byte values to UUID string format of the form: - * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX - */ -const byteToHex = []; - -for (let i = 0; i < 256; ++i) { - byteToHex.push((i + 0x100).toString(16).substr(1)); -} - -function stringify(arr, offset = 0) { - // Note: Be careful editing this code! It's been tuned for performance - // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 - const uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one - // of the following: - // - One or more input array values don't map to a hex octet (leading to - // "undefined" in the uuid) - // - Invalid input values for the RFC `version` or `variant` fields - - if (!(0, _validate.default)(uuid)) { - throw TypeError('Stringified UUID is invalid'); - } - - return uuid; -} - -var _default = stringify; -exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuid.min.js b/node_modules/uuid/dist/umd/uuid.min.js deleted file mode 100644 index 639ca2f2..00000000 --- a/node_modules/uuid/dist/umd/uuid.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((r="undefined"!=typeof globalThis?globalThis:r||self).uuid={})}(this,(function(r){"use strict";var e,n=new Uint8Array(16);function t(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(n)}var o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function a(r){return"string"==typeof r&&o.test(r)}for(var i,u,f=[],s=0;s<256;++s)f.push((s+256).toString(16).substr(1));function c(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(f[r[e+0]]+f[r[e+1]]+f[r[e+2]]+f[r[e+3]]+"-"+f[r[e+4]]+f[r[e+5]]+"-"+f[r[e+6]]+f[r[e+7]]+"-"+f[r[e+8]]+f[r[e+9]]+"-"+f[r[e+10]]+f[r[e+11]]+f[r[e+12]]+f[r[e+13]]+f[r[e+14]]+f[r[e+15]]).toLowerCase();if(!a(n))throw TypeError("Stringified UUID is invalid");return n}var l=0,d=0;function v(r){if(!a(r))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(r.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(r.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(r.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(r.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(r.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n}function p(r,e,n){function t(r,t,o,a){if("string"==typeof r&&(r=function(r){r=unescape(encodeURIComponent(r));for(var e=[],n=0;n>>9<<4)+1}function y(r,e){var n=(65535&r)+(65535&e);return(r>>16)+(e>>16)+(n>>16)<<16|65535&n}function g(r,e,n,t,o,a){return y((i=y(y(e,r),y(t,a)))<<(u=o)|i>>>32-u,n);var i,u}function m(r,e,n,t,o,a,i){return g(e&n|~e&t,r,e,o,a,i)}function w(r,e,n,t,o,a,i){return g(e&t|n&~t,r,e,o,a,i)}function b(r,e,n,t,o,a,i){return g(e^n^t,r,e,o,a,i)}function A(r,e,n,t,o,a,i){return g(n^(e|~t),r,e,o,a,i)}var U=p("v3",48,(function(r){if("string"==typeof r){var e=unescape(encodeURIComponent(r));r=new Uint8Array(e.length);for(var n=0;n>5]>>>o%32&255,i=parseInt(t.charAt(a>>>4&15)+t.charAt(15&a),16);e.push(i)}return e}(function(r,e){r[e>>5]|=128<>5]|=(255&r[t/8])<>>32-e}var R=p("v5",80,(function(r){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof r){var t=unescape(encodeURIComponent(r));r=[];for(var o=0;o>>0;w=m,m=g,g=C(y,30)>>>0,y=h,h=U}n[0]=n[0]+h>>>0,n[1]=n[1]+y>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+m>>>0,n[4]=n[4]+w>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));r.NIL="00000000-0000-0000-0000-000000000000",r.parse=v,r.stringify=c,r.v1=function(r,e,n){var o=e&&n||0,a=e||new Array(16),f=(r=r||{}).node||i,s=void 0!==r.clockseq?r.clockseq:u;if(null==f||null==s){var v=r.random||(r.rng||t)();null==f&&(f=i=[1|v[0],v[1],v[2],v[3],v[4],v[5]]),null==s&&(s=u=16383&(v[6]<<8|v[7]))}var p=void 0!==r.msecs?r.msecs:Date.now(),h=void 0!==r.nsecs?r.nsecs:d+1,y=p-l+(h-d)/1e4;if(y<0&&void 0===r.clockseq&&(s=s+1&16383),(y<0||p>l)&&void 0===r.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=p,d=h,u=s;var g=(1e4*(268435455&(p+=122192928e5))+h)%4294967296;a[o++]=g>>>24&255,a[o++]=g>>>16&255,a[o++]=g>>>8&255,a[o++]=255&g;var m=p/4294967296*1e4&268435455;a[o++]=m>>>8&255,a[o++]=255&m,a[o++]=m>>>24&15|16,a[o++]=m>>>16&255,a[o++]=s>>>8|128,a[o++]=255&s;for(var w=0;w<6;++w)a[o+w]=f[w];return e||c(a)},r.v3=U,r.v4=function(r,e,n){var o=(r=r||{}).random||(r.rng||t)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){n=n||0;for(var a=0;a<16;++a)e[n+a]=o[a];return e}return c(o)},r.v5=R,r.validate=a,r.version=function(r){if(!a(r))throw TypeError("Invalid UUID");return parseInt(r.substr(14,1),16)},Object.defineProperty(r,"__esModule",{value:!0})})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidNIL.min.js b/node_modules/uuid/dist/umd/uuidNIL.min.js deleted file mode 100644 index 30b28a7e..00000000 --- a/node_modules/uuid/dist/umd/uuidNIL.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidNIL=n()}(this,(function(){"use strict";return"00000000-0000-0000-0000-000000000000"})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidParse.min.js b/node_modules/uuid/dist/umd/uuidParse.min.js deleted file mode 100644 index d48ea6af..00000000 --- a/node_modules/uuid/dist/umd/uuidParse.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidParse=n()}(this,(function(){"use strict";var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return function(n){if(!function(n){return"string"==typeof n&&e.test(n)}(n))throw TypeError("Invalid UUID");var t,i=new Uint8Array(16);return i[0]=(t=parseInt(n.slice(0,8),16))>>>24,i[1]=t>>>16&255,i[2]=t>>>8&255,i[3]=255&t,i[4]=(t=parseInt(n.slice(9,13),16))>>>8,i[5]=255&t,i[6]=(t=parseInt(n.slice(14,18),16))>>>8,i[7]=255&t,i[8]=(t=parseInt(n.slice(19,23),16))>>>8,i[9]=255&t,i[10]=(t=parseInt(n.slice(24,36),16))/1099511627776&255,i[11]=t/4294967296&255,i[12]=t>>>24&255,i[13]=t>>>16&255,i[14]=t>>>8&255,i[15]=255&t,i}})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidStringify.min.js b/node_modules/uuid/dist/umd/uuidStringify.min.js deleted file mode 100644 index fd39adc3..00000000 --- a/node_modules/uuid/dist/umd/uuidStringify.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidStringify=t()}(this,(function(){"use strict";var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function t(t){return"string"==typeof t&&e.test(t)}for(var i=[],n=0;n<256;++n)i.push((n+256).toString(16).substr(1));return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,f=(i[e[n+0]]+i[e[n+1]]+i[e[n+2]]+i[e[n+3]]+"-"+i[e[n+4]]+i[e[n+5]]+"-"+i[e[n+6]]+i[e[n+7]]+"-"+i[e[n+8]]+i[e[n+9]]+"-"+i[e[n+10]]+i[e[n+11]]+i[e[n+12]]+i[e[n+13]]+i[e[n+14]]+i[e[n+15]]).toLowerCase();if(!t(f))throw TypeError("Stringified UUID is invalid");return f}})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidValidate.min.js b/node_modules/uuid/dist/umd/uuidValidate.min.js deleted file mode 100644 index 378e5b90..00000000 --- a/node_modules/uuid/dist/umd/uuidValidate.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidValidate=t()}(this,(function(){"use strict";var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return function(t){return"string"==typeof t&&e.test(t)}})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidVersion.min.js b/node_modules/uuid/dist/umd/uuidVersion.min.js deleted file mode 100644 index 274bb090..00000000 --- a/node_modules/uuid/dist/umd/uuidVersion.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidVersion=t()}(this,(function(){"use strict";var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return function(t){if(!function(t){return"string"==typeof t&&e.test(t)}(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidv1.min.js b/node_modules/uuid/dist/umd/uuidv1.min.js deleted file mode 100644 index 2622889a..00000000 --- a/node_modules/uuid/dist/umd/uuidv1.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):(e="undefined"!=typeof globalThis?globalThis:e||self).uuidv1=o()}(this,(function(){"use strict";var e,o=new Uint8Array(16);function t(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(o)}var n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function r(e){return"string"==typeof e&&n.test(e)}for(var i,u,s=[],a=0;a<256;++a)s.push((a+256).toString(16).substr(1));var d=0,f=0;return function(e,o,n){var a=o&&n||0,c=o||new Array(16),l=(e=e||{}).node||i,p=void 0!==e.clockseq?e.clockseq:u;if(null==l||null==p){var v=e.random||(e.rng||t)();null==l&&(l=i=[1|v[0],v[1],v[2],v[3],v[4],v[5]]),null==p&&(p=u=16383&(v[6]<<8|v[7]))}var y=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:f+1,g=y-d+(m-f)/1e4;if(g<0&&void 0===e.clockseq&&(p=p+1&16383),(g<0||y>d)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");d=y,f=m,u=p;var h=(1e4*(268435455&(y+=122192928e5))+m)%4294967296;c[a++]=h>>>24&255,c[a++]=h>>>16&255,c[a++]=h>>>8&255,c[a++]=255&h;var w=y/4294967296*1e4&268435455;c[a++]=w>>>8&255,c[a++]=255&w,c[a++]=w>>>24&15|16,c[a++]=w>>>16&255,c[a++]=p>>>8|128,c[a++]=255&p;for(var b=0;b<6;++b)c[a+b]=l[b];return o||function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(s[e[o+0]]+s[e[o+1]]+s[e[o+2]]+s[e[o+3]]+"-"+s[e[o+4]]+s[e[o+5]]+"-"+s[e[o+6]]+s[e[o+7]]+"-"+s[e[o+8]]+s[e[o+9]]+"-"+s[e[o+10]]+s[e[o+11]]+s[e[o+12]]+s[e[o+13]]+s[e[o+14]]+s[e[o+15]]).toLowerCase();if(!r(t))throw TypeError("Stringified UUID is invalid");return t}(c)}})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidv3.min.js b/node_modules/uuid/dist/umd/uuidv3.min.js deleted file mode 100644 index 8d37b62d..00000000 --- a/node_modules/uuid/dist/umd/uuidv3.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(n="undefined"!=typeof globalThis?globalThis:n||self).uuidv3=r()}(this,(function(){"use strict";var n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function r(r){return"string"==typeof r&&n.test(r)}for(var e=[],t=0;t<256;++t)e.push((t+256).toString(16).substr(1));function i(n){return 14+(n+64>>>9<<4)+1}function o(n,r){var e=(65535&n)+(65535&r);return(n>>16)+(r>>16)+(e>>16)<<16|65535&e}function a(n,r,e,t,i,a){return o((f=o(o(r,n),o(t,a)))<<(u=i)|f>>>32-u,e);var f,u}function f(n,r,e,t,i,o,f){return a(r&e|~r&t,n,r,i,o,f)}function u(n,r,e,t,i,o,f){return a(r&t|e&~t,n,r,i,o,f)}function c(n,r,e,t,i,o,f){return a(r^e^t,n,r,i,o,f)}function s(n,r,e,t,i,o,f){return a(e^(r|~t),n,r,i,o,f)}return function(n,t,i){function o(n,o,a,f){if("string"==typeof n&&(n=function(n){n=unescape(encodeURIComponent(n));for(var r=[],e=0;e>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=255&e,t[4]=(e=parseInt(n.slice(9,13),16))>>>8,t[5]=255&e,t[6]=(e=parseInt(n.slice(14,18),16))>>>8,t[7]=255&e,t[8]=(e=parseInt(n.slice(19,23),16))>>>8,t[9]=255&e,t[10]=(e=parseInt(n.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=255&e,t}(o)),16!==o.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+n.length);if(u.set(o),u.set(n,o.length),(u=i(u))[6]=15&u[6]|t,u[8]=63&u[8]|128,a){f=f||0;for(var c=0;c<16;++c)a[f+c]=u[c];return a}return function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(e[n[t+0]]+e[n[t+1]]+e[n[t+2]]+e[n[t+3]]+"-"+e[n[t+4]]+e[n[t+5]]+"-"+e[n[t+6]]+e[n[t+7]]+"-"+e[n[t+8]]+e[n[t+9]]+"-"+e[n[t+10]]+e[n[t+11]]+e[n[t+12]]+e[n[t+13]]+e[n[t+14]]+e[n[t+15]]).toLowerCase();if(!r(i))throw TypeError("Stringified UUID is invalid");return i}(u)}try{o.name=n}catch(n){}return o.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",o}("v3",48,(function(n){if("string"==typeof n){var r=unescape(encodeURIComponent(n));n=new Uint8Array(r.length);for(var e=0;e>5]>>>i%32&255,a=parseInt(t.charAt(o>>>4&15)+t.charAt(15&o),16);r.push(a)}return r}(function(n,r){n[r>>5]|=128<>5]|=(255&n[t/8])<1&&void 0!==arguments[1]?arguments[1]:0,o=(i[t[e+0]]+i[t[e+1]]+i[t[e+2]]+i[t[e+3]]+"-"+i[t[e+4]]+i[t[e+5]]+"-"+i[t[e+6]]+i[t[e+7]]+"-"+i[t[e+8]]+i[t[e+9]]+"-"+i[t[e+10]]+i[t[e+11]]+i[t[e+12]]+i[t[e+13]]+i[t[e+14]]+i[t[e+15]]).toLowerCase();if(!r(o))throw TypeError("Stringified UUID is invalid");return o}(u)}})); \ No newline at end of file diff --git a/node_modules/uuid/dist/umd/uuidv5.min.js b/node_modules/uuid/dist/umd/uuidv5.min.js deleted file mode 100644 index ba6fc63d..00000000 --- a/node_modules/uuid/dist/umd/uuidv5.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(r="undefined"!=typeof globalThis?globalThis:r||self).uuidv5=e()}(this,(function(){"use strict";var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function e(e){return"string"==typeof e&&r.test(e)}for(var t=[],n=0;n<256;++n)t.push((n+256).toString(16).substr(1));function a(r,e,t,n){switch(r){case 0:return e&t^~e&n;case 1:return e^t^n;case 2:return e&t^e&n^t&n;case 3:return e^t^n}}function o(r,e){return r<>>32-e}return function(r,n,a){function o(r,o,i,f){if("string"==typeof r&&(r=function(r){r=unescape(encodeURIComponent(r));for(var e=[],t=0;t>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(r.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(r.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(r.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(r.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}(o)),16!==o.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+r.length);if(s.set(o),s.set(r,o.length),(s=a(s))[6]=15&s[6]|n,s[8]=63&s[8]|128,i){f=f||0;for(var u=0;u<16;++u)i[f+u]=s[u];return i}return function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(t[r[n+0]]+t[r[n+1]]+t[r[n+2]]+t[r[n+3]]+"-"+t[r[n+4]]+t[r[n+5]]+"-"+t[r[n+6]]+t[r[n+7]]+"-"+t[r[n+8]]+t[r[n+9]]+"-"+t[r[n+10]]+t[r[n+11]]+t[r[n+12]]+t[r[n+13]]+t[r[n+14]]+t[r[n+15]]).toLowerCase();if(!e(a))throw TypeError("Stringified UUID is invalid");return a}(s)}try{o.name=r}catch(r){}return o.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",o.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",o}("v5",80,(function(r){var e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof r){var n=unescape(encodeURIComponent(r));r=[];for(var i=0;i>>0;A=U,U=w,w=o(b,30)>>>0,b=g,g=C}t[0]=t[0]+g>>>0,t[1]=t[1]+b>>>0,t[2]=t[2]+w>>>0,t[3]=t[3]+U>>>0,t[4]=t[4]+A>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,255&t[0],t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,255&t[1],t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,255&t[2],t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,255&t[3],t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,255&t[4]]}))})); \ No newline at end of file diff --git a/node_modules/uuid/dist/uuid-bin.js b/node_modules/uuid/dist/uuid-bin.js deleted file mode 100644 index 50a7a9f1..00000000 --- a/node_modules/uuid/dist/uuid-bin.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; - -var _assert = _interopRequireDefault(require("assert")); - -var _v = _interopRequireDefault(require("./v1.js")); - -var _v2 = _interopRequireDefault(require("./v3.js")); - -var _v3 = _interopRequireDefault(require("./v4.js")); - -var _v4 = _interopRequireDefault(require("./v5.js")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function usage() { - console.log('Usage:'); - console.log(' uuid'); - console.log(' uuid v1'); - console.log(' uuid v3 '); - console.log(' uuid v4'); - console.log(' uuid v5 '); - console.log(' uuid --help'); - console.log('\nNote: may be "URL" or "DNS" to use the corresponding UUIDs defined by RFC4122'); -} - -const args = process.argv.slice(2); - -if (args.indexOf('--help') >= 0) { - usage(); - process.exit(0); -} - -const version = args.shift() || 'v4'; - -switch (version) { - case 'v1': - console.log((0, _v.default)()); - break; - - case 'v3': - { - const name = args.shift(); - let namespace = args.shift(); - (0, _assert.default)(name != null, 'v3 name not specified'); - (0, _assert.default)(namespace != null, 'v3 namespace not specified'); - - if (namespace === 'URL') { - namespace = _v2.default.URL; - } - - if (namespace === 'DNS') { - namespace = _v2.default.DNS; - } - - console.log((0, _v2.default)(name, namespace)); - break; - } - - case 'v4': - console.log((0, _v3.default)()); - break; - - case 'v5': - { - const name = args.shift(); - let namespace = args.shift(); - (0, _assert.default)(name != null, 'v5 name not specified'); - (0, _assert.default)(namespace != null, 'v5 namespace not specified'); - - if (namespace === 'URL') { - namespace = _v4.default.URL; - } - - if (namespace === 'DNS') { - namespace = _v4.default.DNS; - } - - console.log((0, _v4.default)(name, namespace)); - break; - } - - default: - usage(); - process.exit(1); -} \ No newline at end of file diff --git a/node_modules/uuid/dist/v1.js b/node_modules/uuid/dist/v1.js deleted file mode 100644 index abb9b3d1..00000000 --- a/node_modules/uuid/dist/v1.js +++ /dev/null @@ -1,107 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _rng = _interopRequireDefault(require("./rng.js")); - -var _stringify = _interopRequireDefault(require("./stringify.js")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -// **`v1()` - Generate time-based UUID** -// -// Inspired by https://github.com/LiosK/UUID.js -// and http://docs.python.org/library/uuid.html -let _nodeId; - -let _clockseq; // Previous uuid creation time - - -let _lastMSecs = 0; -let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details - -function v1(options, buf, offset) { - let i = buf && offset || 0; - const b = buf || new Array(16); - options = options || {}; - let node = options.node || _nodeId; - let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not - // specified. We do this lazily to minimize issues related to insufficient - // system entropy. See #189 - - if (node == null || clockseq == null) { - const seedBytes = options.random || (options.rng || _rng.default)(); - - if (node == null) { - // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) - node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; - } - - if (clockseq == null) { - // Per 4.2.2, randomize (14 bit) clockseq - clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; - } - } // UUID timestamps are 100 nano-second units since the Gregorian epoch, - // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so - // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' - // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. - - - let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock - // cycle to simulate higher resolution clock - - let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) - - const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression - - if (dt < 0 && options.clockseq === undefined) { - clockseq = clockseq + 1 & 0x3fff; - } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new - // time interval - - - if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { - nsecs = 0; - } // Per 4.2.1.2 Throw error if too many uuids are requested - - - if (nsecs >= 10000) { - throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); - } - - _lastMSecs = msecs; - _lastNSecs = nsecs; - _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch - - msecs += 12219292800000; // `time_low` - - const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; - b[i++] = tl >>> 24 & 0xff; - b[i++] = tl >>> 16 & 0xff; - b[i++] = tl >>> 8 & 0xff; - b[i++] = tl & 0xff; // `time_mid` - - const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; - b[i++] = tmh >>> 8 & 0xff; - b[i++] = tmh & 0xff; // `time_high_and_version` - - b[i++] = tmh >>> 24 & 0xf | 0x10; // include version - - b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) - - b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` - - b[i++] = clockseq & 0xff; // `node` - - for (let n = 0; n < 6; ++n) { - b[i + n] = node[n]; - } - - return buf || (0, _stringify.default)(b); -} - -var _default = v1; -exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/v3.js b/node_modules/uuid/dist/v3.js deleted file mode 100644 index 6b47ff51..00000000 --- a/node_modules/uuid/dist/v3.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _v = _interopRequireDefault(require("./v35.js")); - -var _md = _interopRequireDefault(require("./md5.js")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -const v3 = (0, _v.default)('v3', 0x30, _md.default); -var _default = v3; -exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/v35.js b/node_modules/uuid/dist/v35.js deleted file mode 100644 index f784c633..00000000 --- a/node_modules/uuid/dist/v35.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = _default; -exports.URL = exports.DNS = void 0; - -var _stringify = _interopRequireDefault(require("./stringify.js")); - -var _parse = _interopRequireDefault(require("./parse.js")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function stringToBytes(str) { - str = unescape(encodeURIComponent(str)); // UTF8 escape - - const bytes = []; - - for (let i = 0; i < str.length; ++i) { - bytes.push(str.charCodeAt(i)); - } - - return bytes; -} - -const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; -exports.DNS = DNS; -const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; -exports.URL = URL; - -function _default(name, version, hashfunc) { - function generateUUID(value, namespace, buf, offset) { - if (typeof value === 'string') { - value = stringToBytes(value); - } - - if (typeof namespace === 'string') { - namespace = (0, _parse.default)(namespace); - } - - if (namespace.length !== 16) { - throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)'); - } // Compute hash of namespace and value, Per 4.3 - // Future: Use spread syntax when supported on all platforms, e.g. `bytes = - // hashfunc([...namespace, ... value])` - - - let bytes = new Uint8Array(16 + value.length); - bytes.set(namespace); - bytes.set(value, namespace.length); - bytes = hashfunc(bytes); - bytes[6] = bytes[6] & 0x0f | version; - bytes[8] = bytes[8] & 0x3f | 0x80; - - if (buf) { - offset = offset || 0; - - for (let i = 0; i < 16; ++i) { - buf[offset + i] = bytes[i]; - } - - return buf; - } - - return (0, _stringify.default)(bytes); - } // Function#name is not settable on some platforms (#270) - - - try { - generateUUID.name = name; // eslint-disable-next-line no-empty - } catch (err) {} // For CommonJS default export support - - - generateUUID.DNS = DNS; - generateUUID.URL = URL; - return generateUUID; -} \ No newline at end of file diff --git a/node_modules/uuid/dist/v4.js b/node_modules/uuid/dist/v4.js deleted file mode 100644 index 838ce0b2..00000000 --- a/node_modules/uuid/dist/v4.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _rng = _interopRequireDefault(require("./rng.js")); - -var _stringify = _interopRequireDefault(require("./stringify.js")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function v4(options, buf, offset) { - options = options || {}; - - const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` - - - rnds[6] = rnds[6] & 0x0f | 0x40; - rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided - - if (buf) { - offset = offset || 0; - - for (let i = 0; i < 16; ++i) { - buf[offset + i] = rnds[i]; - } - - return buf; - } - - return (0, _stringify.default)(rnds); -} - -var _default = v4; -exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/v5.js b/node_modules/uuid/dist/v5.js deleted file mode 100644 index 99d615e0..00000000 --- a/node_modules/uuid/dist/v5.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _v = _interopRequireDefault(require("./v35.js")); - -var _sha = _interopRequireDefault(require("./sha1.js")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -const v5 = (0, _v.default)('v5', 0x50, _sha.default); -var _default = v5; -exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/validate.js b/node_modules/uuid/dist/validate.js deleted file mode 100644 index fd052157..00000000 --- a/node_modules/uuid/dist/validate.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _regex = _interopRequireDefault(require("./regex.js")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function validate(uuid) { - return typeof uuid === 'string' && _regex.default.test(uuid); -} - -var _default = validate; -exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/dist/version.js b/node_modules/uuid/dist/version.js deleted file mode 100644 index b72949cd..00000000 --- a/node_modules/uuid/dist/version.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _validate = _interopRequireDefault(require("./validate.js")); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function version(uuid) { - if (!(0, _validate.default)(uuid)) { - throw TypeError('Invalid UUID'); - } - - return parseInt(uuid.substr(14, 1), 16); -} - -var _default = version; -exports.default = _default; \ No newline at end of file diff --git a/node_modules/uuid/package.json b/node_modules/uuid/package.json deleted file mode 100644 index f0ab3711..00000000 --- a/node_modules/uuid/package.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "name": "uuid", - "version": "8.3.2", - "description": "RFC4122 (v1, v4, and v5) UUIDs", - "commitlint": { - "extends": [ - "@commitlint/config-conventional" - ] - }, - "keywords": [ - "uuid", - "guid", - "rfc4122" - ], - "license": "MIT", - "bin": { - "uuid": "./dist/bin/uuid" - }, - "sideEffects": false, - "main": "./dist/index.js", - "exports": { - ".": { - "node": { - "module": "./dist/esm-node/index.js", - "require": "./dist/index.js", - "import": "./wrapper.mjs" - }, - "default": "./dist/esm-browser/index.js" - }, - "./package.json": "./package.json" - }, - "module": "./dist/esm-node/index.js", - "browser": { - "./dist/md5.js": "./dist/md5-browser.js", - "./dist/rng.js": "./dist/rng-browser.js", - "./dist/sha1.js": "./dist/sha1-browser.js", - "./dist/esm-node/index.js": "./dist/esm-browser/index.js" - }, - "files": [ - "CHANGELOG.md", - "CONTRIBUTING.md", - "LICENSE.md", - "README.md", - "dist", - "wrapper.mjs" - ], - "devDependencies": { - "@babel/cli": "7.11.6", - "@babel/core": "7.11.6", - "@babel/preset-env": "7.11.5", - "@commitlint/cli": "11.0.0", - "@commitlint/config-conventional": "11.0.0", - "@rollup/plugin-node-resolve": "9.0.0", - "babel-eslint": "10.1.0", - "bundlewatch": "0.3.1", - "eslint": "7.10.0", - "eslint-config-prettier": "6.12.0", - "eslint-config-standard": "14.1.1", - "eslint-plugin-import": "2.22.1", - "eslint-plugin-node": "11.1.0", - "eslint-plugin-prettier": "3.1.4", - "eslint-plugin-promise": "4.2.1", - "eslint-plugin-standard": "4.0.1", - "husky": "4.3.0", - "jest": "25.5.4", - "lint-staged": "10.4.0", - "npm-run-all": "4.1.5", - "optional-dev-dependency": "2.0.1", - "prettier": "2.1.2", - "random-seed": "0.3.0", - "rollup": "2.28.2", - "rollup-plugin-terser": "7.0.2", - "runmd": "1.3.2", - "standard-version": "9.0.0" - }, - "optionalDevDependencies": { - "@wdio/browserstack-service": "6.4.0", - "@wdio/cli": "6.4.0", - "@wdio/jasmine-framework": "6.4.0", - "@wdio/local-runner": "6.4.0", - "@wdio/spec-reporter": "6.4.0", - "@wdio/static-server-service": "6.4.0", - "@wdio/sync": "6.4.0" - }, - "scripts": { - "examples:browser:webpack:build": "cd examples/browser-webpack && npm install && npm run build", - "examples:browser:rollup:build": "cd examples/browser-rollup && npm install && npm run build", - "examples:node:commonjs:test": "cd examples/node-commonjs && npm install && npm test", - "examples:node:esmodules:test": "cd examples/node-esmodules && npm install && npm test", - "lint": "npm run eslint:check && npm run prettier:check", - "eslint:check": "eslint src/ test/ examples/ *.js", - "eslint:fix": "eslint --fix src/ test/ examples/ *.js", - "pretest": "[ -n $CI ] || npm run build", - "test": "BABEL_ENV=commonjs node --throw-deprecation node_modules/.bin/jest test/unit/", - "pretest:browser": "optional-dev-dependency && npm run build && npm-run-all --parallel examples:browser:**", - "test:browser": "wdio run ./wdio.conf.js", - "pretest:node": "npm run build", - "test:node": "npm-run-all --parallel examples:node:**", - "test:pack": "./scripts/testpack.sh", - "pretest:benchmark": "npm run build", - "test:benchmark": "cd examples/benchmark && npm install && npm test", - "prettier:check": "prettier --ignore-path .prettierignore --check '**/*.{js,jsx,json,md}'", - "prettier:fix": "prettier --ignore-path .prettierignore --write '**/*.{js,jsx,json,md}'", - "bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json", - "md": "runmd --watch --output=README.md README_js.md", - "docs": "( node --version | grep -q 'v12' ) && ( npm run build && runmd --output=README.md README_js.md )", - "docs:diff": "npm run docs && git diff --quiet README.md", - "build": "./scripts/build.sh", - "prepack": "npm run build", - "release": "standard-version --no-verify" - }, - "repository": { - "type": "git", - "url": "https://github.com/uuidjs/uuid.git" - }, - "husky": { - "hooks": { - "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", - "pre-commit": "lint-staged" - } - }, - "lint-staged": { - "*.{js,jsx,json,md}": [ - "prettier --write" - ], - "*.{js,jsx}": [ - "eslint --fix" - ] - }, - "standard-version": { - "scripts": { - "postchangelog": "prettier --write CHANGELOG.md" - } - } -} diff --git a/node_modules/uuid/wrapper.mjs b/node_modules/uuid/wrapper.mjs deleted file mode 100644 index c31e9cef..00000000 --- a/node_modules/uuid/wrapper.mjs +++ /dev/null @@ -1,10 +0,0 @@ -import uuid from './dist/index.js'; -export const v1 = uuid.v1; -export const v3 = uuid.v3; -export const v4 = uuid.v4; -export const v5 = uuid.v5; -export const NIL = uuid.NIL; -export const version = uuid.version; -export const validate = uuid.validate; -export const stringify = uuid.stringify; -export const parse = uuid.parse; diff --git a/node_modules/vite-node/dist/chunk-hmr.cjs b/node_modules/vite-node/dist/chunk-hmr.cjs deleted file mode 100644 index 31738e70..00000000 --- a/node_modules/vite-node/dist/chunk-hmr.cjs +++ /dev/null @@ -1,272 +0,0 @@ -'use strict'; - -var node_events = require('node:events'); -var c = require('tinyrainbow'); -var createDebug = require('debug'); -var utils = require('./utils.cjs'); - -function createHmrEmitter() { - const emitter = new node_events.EventEmitter(); - return emitter; -} -function viteNodeHmrPlugin() { - const emitter = createHmrEmitter(); - return { - name: "vite-node:hmr", - config() { - if (process.platform === "darwin" && false) { - return { - server: { - watch: { - useFsEvents: false, - usePolling: false - } - } - }; - } - }, - configureServer(server) { - const _send = server.ws.send; - server.emitter = emitter; - server.ws.send = function(payload) { - _send(payload); - emitter.emit("message", payload); - }; - } - }; -} - -const debugHmr = createDebug("vite-node:hmr"); -const cache = /* @__PURE__ */ new WeakMap(); -function getCache(runner) { - if (!cache.has(runner)) { - cache.set(runner, { - hotModulesMap: /* @__PURE__ */ new Map(), - dataMap: /* @__PURE__ */ new Map(), - disposeMap: /* @__PURE__ */ new Map(), - pruneMap: /* @__PURE__ */ new Map(), - customListenersMap: /* @__PURE__ */ new Map(), - ctxToListenersMap: /* @__PURE__ */ new Map(), - messageBuffer: [], - isFirstUpdate: false, - pending: false, - queued: [] - }); - } - return cache.get(runner); -} -function sendMessageBuffer(runner, emitter) { - const maps = getCache(runner); - maps.messageBuffer.forEach((msg) => emitter.emit("custom", msg)); - maps.messageBuffer.length = 0; -} -async function reload(runner, files) { - Array.from(runner.moduleCache.keys()).forEach((fsPath) => { - if (!fsPath.includes("node_modules")) { - runner.moduleCache.delete(fsPath); - } - }); - return Promise.all(files.map((file) => runner.executeId(file))); -} -async function notifyListeners(runner, event, data) { - const maps = getCache(runner); - const cbs = maps.customListenersMap.get(event); - if (cbs) { - await Promise.all(cbs.map((cb) => cb(data))); - } -} -async function queueUpdate(runner, p) { - const maps = getCache(runner); - maps.queued.push(p); - if (!maps.pending) { - maps.pending = true; - await Promise.resolve(); - maps.pending = false; - const loading = [...maps.queued]; - maps.queued = []; - (await Promise.all(loading)).forEach((fn) => fn && fn()); - } -} -async function fetchUpdate(runner, { path, acceptedPath }) { - path = utils.normalizeRequestId(path); - acceptedPath = utils.normalizeRequestId(acceptedPath); - const maps = getCache(runner); - const mod = maps.hotModulesMap.get(path); - if (!mod) { - return; - } - const isSelfUpdate = path === acceptedPath; - let fetchedModule; - const qualifiedCallbacks = mod.callbacks.filter( - ({ deps }) => deps.includes(acceptedPath) - ); - if (isSelfUpdate || qualifiedCallbacks.length > 0) { - const disposer = maps.disposeMap.get(acceptedPath); - if (disposer) { - await disposer(maps.dataMap.get(acceptedPath)); - } - try { - [fetchedModule] = await reload(runner, [acceptedPath]); - } catch (e) { - warnFailedFetch(e, acceptedPath); - } - } - return () => { - for (const { deps, fn } of qualifiedCallbacks) { - fn(deps.map((dep) => dep === acceptedPath ? fetchedModule : void 0)); - } - const loggedPath = isSelfUpdate ? path : `${acceptedPath} via ${path}`; - console.log(`${c.cyan("[vite-node]")} hot updated: ${loggedPath}`); - }; -} -function warnFailedFetch(err, path) { - if (!err.message.match("fetch")) { - console.error(err); - } - console.error( - `[hmr] Failed to reload ${path}. This could be due to syntax errors or importing non-existent modules. (see errors above)` - ); -} -async function handleMessage(runner, emitter, files, payload) { - const maps = getCache(runner); - switch (payload.type) { - case "connected": - sendMessageBuffer(runner, emitter); - break; - case "update": - await notifyListeners(runner, "vite:beforeUpdate", payload); - await Promise.all( - payload.updates.map((update) => { - if (update.type === "js-update") { - return queueUpdate(runner, fetchUpdate(runner, update)); - } - console.error(`${c.cyan("[vite-node]")} no support css hmr.}`); - return null; - }) - ); - await notifyListeners(runner, "vite:afterUpdate", payload); - break; - case "full-reload": - await notifyListeners(runner, "vite:beforeFullReload", payload); - maps.customListenersMap.delete("vite:beforeFullReload"); - await reload(runner, files); - break; - case "custom": - await notifyListeners(runner, payload.event, payload.data); - break; - case "prune": - await notifyListeners(runner, "vite:beforePrune", payload); - payload.paths.forEach((path) => { - const fn = maps.pruneMap.get(path); - if (fn) { - fn(maps.dataMap.get(path)); - } - }); - break; - case "error": { - await notifyListeners(runner, "vite:error", payload); - const err = payload.err; - console.error( - `${c.cyan("[vite-node]")} Internal Server Error -${err.message} -${err.stack}` - ); - break; - } - } -} -function createHotContext(runner, emitter, files, ownerPath) { - debugHmr("createHotContext", ownerPath); - const maps = getCache(runner); - if (!maps.dataMap.has(ownerPath)) { - maps.dataMap.set(ownerPath, {}); - } - const mod = maps.hotModulesMap.get(ownerPath); - if (mod) { - mod.callbacks = []; - } - const newListeners = /* @__PURE__ */ new Map(); - maps.ctxToListenersMap.set(ownerPath, newListeners); - function acceptDeps(deps, callback = () => { - }) { - const mod2 = maps.hotModulesMap.get(ownerPath) || { - id: ownerPath, - callbacks: [] - }; - mod2.callbacks.push({ - deps, - fn: callback - }); - maps.hotModulesMap.set(ownerPath, mod2); - } - const hot = { - get data() { - return maps.dataMap.get(ownerPath); - }, - acceptExports(_, callback) { - acceptDeps([ownerPath], callback && (([mod2]) => callback(mod2))); - }, - accept(deps, callback) { - if (typeof deps === "function" || !deps) { - acceptDeps([ownerPath], ([mod2]) => deps && deps(mod2)); - } else if (typeof deps === "string") { - acceptDeps([deps], ([mod2]) => callback && callback(mod2)); - } else if (Array.isArray(deps)) { - acceptDeps(deps, callback); - } else { - throw new TypeError("invalid hot.accept() usage."); - } - }, - dispose(cb) { - maps.disposeMap.set(ownerPath, cb); - }, - prune(cb) { - maps.pruneMap.set(ownerPath, cb); - }, - invalidate() { - notifyListeners(runner, "vite:invalidate", { - path: ownerPath, - message: void 0 - }); - return reload(runner, files); - }, - on(event, cb) { - const addToMap = (map) => { - const existing = map.get(event) || []; - existing.push(cb); - map.set(event, existing); - }; - addToMap(maps.customListenersMap); - addToMap(newListeners); - }, - off(event, cb) { - const removeFromMap = (map) => { - const existing = map.get(event); - if (existing === void 0) { - return; - } - const pruned = existing.filter((l) => l !== cb); - if (pruned.length === 0) { - map.delete(event); - return; - } - map.set(event, pruned); - }; - removeFromMap(maps.customListenersMap); - removeFromMap(newListeners); - }, - send(event, data) { - maps.messageBuffer.push(JSON.stringify({ type: "custom", event, data })); - sendMessageBuffer(runner, emitter); - } - }; - return hot; -} - -exports.createHmrEmitter = createHmrEmitter; -exports.createHotContext = createHotContext; -exports.getCache = getCache; -exports.handleMessage = handleMessage; -exports.reload = reload; -exports.sendMessageBuffer = sendMessageBuffer; -exports.viteNodeHmrPlugin = viteNodeHmrPlugin; diff --git a/node_modules/vite-node/dist/chunk-hmr.mjs b/node_modules/vite-node/dist/chunk-hmr.mjs deleted file mode 100644 index 78132d76..00000000 --- a/node_modules/vite-node/dist/chunk-hmr.mjs +++ /dev/null @@ -1,264 +0,0 @@ -import { EventEmitter } from 'node:events'; -import c from 'tinyrainbow'; -import createDebug from 'debug'; -import { normalizeRequestId } from './utils.mjs'; - -function createHmrEmitter() { - const emitter = new EventEmitter(); - return emitter; -} -function viteNodeHmrPlugin() { - const emitter = createHmrEmitter(); - return { - name: "vite-node:hmr", - config() { - if (process.platform === "darwin" && false) { - return { - server: { - watch: { - useFsEvents: false, - usePolling: false - } - } - }; - } - }, - configureServer(server) { - const _send = server.ws.send; - server.emitter = emitter; - server.ws.send = function(payload) { - _send(payload); - emitter.emit("message", payload); - }; - } - }; -} - -const debugHmr = createDebug("vite-node:hmr"); -const cache = /* @__PURE__ */ new WeakMap(); -function getCache(runner) { - if (!cache.has(runner)) { - cache.set(runner, { - hotModulesMap: /* @__PURE__ */ new Map(), - dataMap: /* @__PURE__ */ new Map(), - disposeMap: /* @__PURE__ */ new Map(), - pruneMap: /* @__PURE__ */ new Map(), - customListenersMap: /* @__PURE__ */ new Map(), - ctxToListenersMap: /* @__PURE__ */ new Map(), - messageBuffer: [], - isFirstUpdate: false, - pending: false, - queued: [] - }); - } - return cache.get(runner); -} -function sendMessageBuffer(runner, emitter) { - const maps = getCache(runner); - maps.messageBuffer.forEach((msg) => emitter.emit("custom", msg)); - maps.messageBuffer.length = 0; -} -async function reload(runner, files) { - Array.from(runner.moduleCache.keys()).forEach((fsPath) => { - if (!fsPath.includes("node_modules")) { - runner.moduleCache.delete(fsPath); - } - }); - return Promise.all(files.map((file) => runner.executeId(file))); -} -async function notifyListeners(runner, event, data) { - const maps = getCache(runner); - const cbs = maps.customListenersMap.get(event); - if (cbs) { - await Promise.all(cbs.map((cb) => cb(data))); - } -} -async function queueUpdate(runner, p) { - const maps = getCache(runner); - maps.queued.push(p); - if (!maps.pending) { - maps.pending = true; - await Promise.resolve(); - maps.pending = false; - const loading = [...maps.queued]; - maps.queued = []; - (await Promise.all(loading)).forEach((fn) => fn && fn()); - } -} -async function fetchUpdate(runner, { path, acceptedPath }) { - path = normalizeRequestId(path); - acceptedPath = normalizeRequestId(acceptedPath); - const maps = getCache(runner); - const mod = maps.hotModulesMap.get(path); - if (!mod) { - return; - } - const isSelfUpdate = path === acceptedPath; - let fetchedModule; - const qualifiedCallbacks = mod.callbacks.filter( - ({ deps }) => deps.includes(acceptedPath) - ); - if (isSelfUpdate || qualifiedCallbacks.length > 0) { - const disposer = maps.disposeMap.get(acceptedPath); - if (disposer) { - await disposer(maps.dataMap.get(acceptedPath)); - } - try { - [fetchedModule] = await reload(runner, [acceptedPath]); - } catch (e) { - warnFailedFetch(e, acceptedPath); - } - } - return () => { - for (const { deps, fn } of qualifiedCallbacks) { - fn(deps.map((dep) => dep === acceptedPath ? fetchedModule : void 0)); - } - const loggedPath = isSelfUpdate ? path : `${acceptedPath} via ${path}`; - console.log(`${c.cyan("[vite-node]")} hot updated: ${loggedPath}`); - }; -} -function warnFailedFetch(err, path) { - if (!err.message.match("fetch")) { - console.error(err); - } - console.error( - `[hmr] Failed to reload ${path}. This could be due to syntax errors or importing non-existent modules. (see errors above)` - ); -} -async function handleMessage(runner, emitter, files, payload) { - const maps = getCache(runner); - switch (payload.type) { - case "connected": - sendMessageBuffer(runner, emitter); - break; - case "update": - await notifyListeners(runner, "vite:beforeUpdate", payload); - await Promise.all( - payload.updates.map((update) => { - if (update.type === "js-update") { - return queueUpdate(runner, fetchUpdate(runner, update)); - } - console.error(`${c.cyan("[vite-node]")} no support css hmr.}`); - return null; - }) - ); - await notifyListeners(runner, "vite:afterUpdate", payload); - break; - case "full-reload": - await notifyListeners(runner, "vite:beforeFullReload", payload); - maps.customListenersMap.delete("vite:beforeFullReload"); - await reload(runner, files); - break; - case "custom": - await notifyListeners(runner, payload.event, payload.data); - break; - case "prune": - await notifyListeners(runner, "vite:beforePrune", payload); - payload.paths.forEach((path) => { - const fn = maps.pruneMap.get(path); - if (fn) { - fn(maps.dataMap.get(path)); - } - }); - break; - case "error": { - await notifyListeners(runner, "vite:error", payload); - const err = payload.err; - console.error( - `${c.cyan("[vite-node]")} Internal Server Error -${err.message} -${err.stack}` - ); - break; - } - } -} -function createHotContext(runner, emitter, files, ownerPath) { - debugHmr("createHotContext", ownerPath); - const maps = getCache(runner); - if (!maps.dataMap.has(ownerPath)) { - maps.dataMap.set(ownerPath, {}); - } - const mod = maps.hotModulesMap.get(ownerPath); - if (mod) { - mod.callbacks = []; - } - const newListeners = /* @__PURE__ */ new Map(); - maps.ctxToListenersMap.set(ownerPath, newListeners); - function acceptDeps(deps, callback = () => { - }) { - const mod2 = maps.hotModulesMap.get(ownerPath) || { - id: ownerPath, - callbacks: [] - }; - mod2.callbacks.push({ - deps, - fn: callback - }); - maps.hotModulesMap.set(ownerPath, mod2); - } - const hot = { - get data() { - return maps.dataMap.get(ownerPath); - }, - acceptExports(_, callback) { - acceptDeps([ownerPath], callback && (([mod2]) => callback(mod2))); - }, - accept(deps, callback) { - if (typeof deps === "function" || !deps) { - acceptDeps([ownerPath], ([mod2]) => deps && deps(mod2)); - } else if (typeof deps === "string") { - acceptDeps([deps], ([mod2]) => callback && callback(mod2)); - } else if (Array.isArray(deps)) { - acceptDeps(deps, callback); - } else { - throw new TypeError("invalid hot.accept() usage."); - } - }, - dispose(cb) { - maps.disposeMap.set(ownerPath, cb); - }, - prune(cb) { - maps.pruneMap.set(ownerPath, cb); - }, - invalidate() { - notifyListeners(runner, "vite:invalidate", { - path: ownerPath, - message: void 0 - }); - return reload(runner, files); - }, - on(event, cb) { - const addToMap = (map) => { - const existing = map.get(event) || []; - existing.push(cb); - map.set(event, existing); - }; - addToMap(maps.customListenersMap); - addToMap(newListeners); - }, - off(event, cb) { - const removeFromMap = (map) => { - const existing = map.get(event); - if (existing === void 0) { - return; - } - const pruned = existing.filter((l) => l !== cb); - if (pruned.length === 0) { - map.delete(event); - return; - } - map.set(event, pruned); - }; - removeFromMap(maps.customListenersMap); - removeFromMap(newListeners); - }, - send(event, data) { - maps.messageBuffer.push(JSON.stringify({ type: "custom", event, data })); - sendMessageBuffer(runner, emitter); - } - }; - return hot; -} - -export { createHotContext as a, createHmrEmitter as c, getCache as g, handleMessage as h, reload as r, sendMessageBuffer as s, viteNodeHmrPlugin as v }; diff --git a/node_modules/vite-node/dist/cli.cjs b/node_modules/vite-node/dist/cli.cjs deleted file mode 100644 index 9c193222..00000000 --- a/node_modules/vite-node/dist/cli.cjs +++ /dev/null @@ -1,138 +0,0 @@ -'use strict'; - -var path = require('node:path'); -var cac = require('cac'); -var c = require('tinyrainbow'); -var vite = require('vite'); -var server = require('./server.cjs'); -var client = require('./client.cjs'); -var utils = require('./utils.cjs'); -var sourceMap = require('./source-map.cjs'); -var hmr = require('./chunk-hmr.cjs'); -require('node:perf_hooks'); -require('node:fs'); -require('node:assert'); -require('pathe'); -require('debug'); -require('./constants.cjs'); -require('node:module'); -require('node:url'); -require('node:vm'); -require('node:events'); - -var version = "2.0.5"; - -const cli = cac("vite-node"); -cli.option("-r, --root ", "Use specified root directory").option("-c, --config ", "Use specified config file").option("-m, --mode ", "Set env mode").option("-w, --watch", 'Restart on file changes, similar to "nodemon"').option("--script", "Use vite-node as a script runner").option("--options ", "Use specified Vite server options").option("-v, --version", "Output the version number").option("-h, --help", "Display help for command"); -cli.command("[...files]").allowUnknownOptions().action(run); -cli.parse(process.argv, { run: false }); -if (cli.args.length === 0) { - cli.runMatchedCommand(); -} else { - const i = cli.rawArgs.indexOf(cli.args[0]) + 1; - const scriptArgs = cli.rawArgs.slice(i).filter((it) => it !== "--"); - const executeArgs = [...cli.rawArgs.slice(0, i), "--", ...scriptArgs]; - cli.parse(executeArgs); -} -async function run(files, options = {}) { - var _a, _b; - if (options.script) { - files = [files[0]]; - options = {}; - process.argv = [ - process.argv[0], - path.resolve(files[0]), - ...process.argv.slice(2).filter((arg) => arg !== "--script" && arg !== files[0]) - ]; - } else { - process.argv = [...process.argv.slice(0, 2), ...options["--"] || []]; - } - if (options.version) { - cli.version(version); - cli.outputVersion(); - process.exit(0); - } - if (options.help) { - cli.version(version).outputHelp(); - process.exit(0); - } - if (!files.length) { - console.error(c.red("No files specified.")); - cli.version(version).outputHelp(); - process.exit(1); - } - const serverOptions = options.options ? parseServerOptions(options.options) : {}; - const server$1 = await vite.createServer({ - logLevel: "error", - configFile: options.config, - root: options.root, - mode: options.mode, - server: { - hmr: !!options.watch - }, - plugins: [options.watch && hmr.viteNodeHmrPlugin()] - }); - await server$1.pluginContainer.buildStart({}); - const env = vite.loadEnv(server$1.config.mode, server$1.config.envDir, ""); - for (const key in env) { - (_a = process.env)[key] ?? (_a[key] = env[key]); - } - const node = new server.ViteNodeServer(server$1, serverOptions); - sourceMap.installSourcemapsSupport({ - getSourceMap: (source) => node.getSourceMap(source) - }); - const runner = new client.ViteNodeRunner({ - root: server$1.config.root, - base: server$1.config.base, - fetchModule(id) { - return node.fetchModule(id); - }, - resolveId(id, importer) { - return node.resolveId(id, importer); - }, - createHotContext(runner2, url) { - return hmr.createHotContext(runner2, server$1.emitter, files, url); - } - }); - await runner.executeId("/@vite/env"); - for (const file of files) { - await runner.executeFile(file); - } - if (!options.watch) { - await server$1.close(); - } - (_b = server$1.emitter) == null ? void 0 : _b.on("message", (payload) => { - hmr.handleMessage(runner, server$1.emitter, files, payload); - }); - if (options.watch) { - process.on("uncaughtException", (err) => { - console.error(c.red("[vite-node] Failed to execute file: \n"), err); - }); - } -} -function parseServerOptions(serverOptions) { - var _a, _b, _c, _d, _e, _f, _g; - const inlineOptions = ((_a = serverOptions.deps) == null ? void 0 : _a.inline) === true ? true : utils.toArray((_b = serverOptions.deps) == null ? void 0 : _b.inline); - return { - ...serverOptions, - deps: { - ...serverOptions.deps, - inline: inlineOptions !== true ? inlineOptions.map((dep) => { - return dep.startsWith("/") && dep.endsWith("/") ? new RegExp(dep) : dep; - }) : true, - external: utils.toArray((_c = serverOptions.deps) == null ? void 0 : _c.external).map((dep) => { - return dep.startsWith("/") && dep.endsWith("/") ? new RegExp(dep) : dep; - }), - moduleDirectories: ((_d = serverOptions.deps) == null ? void 0 : _d.moduleDirectories) ? utils.toArray((_e = serverOptions.deps) == null ? void 0 : _e.moduleDirectories) : void 0 - }, - transformMode: { - ...serverOptions.transformMode, - ssr: utils.toArray((_f = serverOptions.transformMode) == null ? void 0 : _f.ssr).map( - (dep) => new RegExp(dep) - ), - web: utils.toArray((_g = serverOptions.transformMode) == null ? void 0 : _g.web).map( - (dep) => new RegExp(dep) - ) - } - }; -} diff --git a/node_modules/vite-node/dist/cli.d.ts b/node_modules/vite-node/dist/cli.d.ts deleted file mode 100644 index b4aeea5e..00000000 --- a/node_modules/vite-node/dist/cli.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { V as ViteNodeServerOptions } from './index-CCsqCcr7.js'; -import './trace-mapping.d-DLVdEqOp.js'; - -interface CliOptions { - 'root'?: string; - 'script'?: boolean; - 'config'?: string; - 'mode'?: string; - 'watch'?: boolean; - 'options'?: ViteNodeServerOptionsCLI; - 'version'?: boolean; - 'help'?: boolean; - '--'?: string[]; -} -type Optional = T | undefined; -type ComputeViteNodeServerOptionsCLI> = { - [K in keyof T]: T[K] extends Optional ? string | string[] : T[K] extends Optional<(string | RegExp)[]> ? string | string[] : T[K] extends Optional<(string | RegExp)[] | true> ? string | string[] | true : T[K] extends Optional> ? ComputeViteNodeServerOptionsCLI : T[K]; -}; -type ViteNodeServerOptionsCLI = ComputeViteNodeServerOptionsCLI; - -export type { CliOptions, ViteNodeServerOptionsCLI }; diff --git a/node_modules/vite-node/dist/cli.mjs b/node_modules/vite-node/dist/cli.mjs deleted file mode 100644 index 7b98a5c7..00000000 --- a/node_modules/vite-node/dist/cli.mjs +++ /dev/null @@ -1,136 +0,0 @@ -import { resolve } from 'node:path'; -import cac from 'cac'; -import c from 'tinyrainbow'; -import { createServer, loadEnv } from 'vite'; -import { ViteNodeServer } from './server.mjs'; -import { ViteNodeRunner } from './client.mjs'; -import { toArray } from './utils.mjs'; -import { installSourcemapsSupport } from './source-map.mjs'; -import { v as viteNodeHmrPlugin, a as createHotContext, h as handleMessage } from './chunk-hmr.mjs'; -import 'node:perf_hooks'; -import 'node:fs'; -import 'node:assert'; -import 'pathe'; -import 'debug'; -import './constants.mjs'; -import 'node:module'; -import 'node:url'; -import 'node:vm'; -import 'node:events'; - -var version = "2.0.5"; - -const cli = cac("vite-node"); -cli.option("-r, --root ", "Use specified root directory").option("-c, --config ", "Use specified config file").option("-m, --mode ", "Set env mode").option("-w, --watch", 'Restart on file changes, similar to "nodemon"').option("--script", "Use vite-node as a script runner").option("--options ", "Use specified Vite server options").option("-v, --version", "Output the version number").option("-h, --help", "Display help for command"); -cli.command("[...files]").allowUnknownOptions().action(run); -cli.parse(process.argv, { run: false }); -if (cli.args.length === 0) { - cli.runMatchedCommand(); -} else { - const i = cli.rawArgs.indexOf(cli.args[0]) + 1; - const scriptArgs = cli.rawArgs.slice(i).filter((it) => it !== "--"); - const executeArgs = [...cli.rawArgs.slice(0, i), "--", ...scriptArgs]; - cli.parse(executeArgs); -} -async function run(files, options = {}) { - var _a, _b; - if (options.script) { - files = [files[0]]; - options = {}; - process.argv = [ - process.argv[0], - resolve(files[0]), - ...process.argv.slice(2).filter((arg) => arg !== "--script" && arg !== files[0]) - ]; - } else { - process.argv = [...process.argv.slice(0, 2), ...options["--"] || []]; - } - if (options.version) { - cli.version(version); - cli.outputVersion(); - process.exit(0); - } - if (options.help) { - cli.version(version).outputHelp(); - process.exit(0); - } - if (!files.length) { - console.error(c.red("No files specified.")); - cli.version(version).outputHelp(); - process.exit(1); - } - const serverOptions = options.options ? parseServerOptions(options.options) : {}; - const server = await createServer({ - logLevel: "error", - configFile: options.config, - root: options.root, - mode: options.mode, - server: { - hmr: !!options.watch - }, - plugins: [options.watch && viteNodeHmrPlugin()] - }); - await server.pluginContainer.buildStart({}); - const env = loadEnv(server.config.mode, server.config.envDir, ""); - for (const key in env) { - (_a = process.env)[key] ?? (_a[key] = env[key]); - } - const node = new ViteNodeServer(server, serverOptions); - installSourcemapsSupport({ - getSourceMap: (source) => node.getSourceMap(source) - }); - const runner = new ViteNodeRunner({ - root: server.config.root, - base: server.config.base, - fetchModule(id) { - return node.fetchModule(id); - }, - resolveId(id, importer) { - return node.resolveId(id, importer); - }, - createHotContext(runner2, url) { - return createHotContext(runner2, server.emitter, files, url); - } - }); - await runner.executeId("/@vite/env"); - for (const file of files) { - await runner.executeFile(file); - } - if (!options.watch) { - await server.close(); - } - (_b = server.emitter) == null ? void 0 : _b.on("message", (payload) => { - handleMessage(runner, server.emitter, files, payload); - }); - if (options.watch) { - process.on("uncaughtException", (err) => { - console.error(c.red("[vite-node] Failed to execute file: \n"), err); - }); - } -} -function parseServerOptions(serverOptions) { - var _a, _b, _c, _d, _e, _f, _g; - const inlineOptions = ((_a = serverOptions.deps) == null ? void 0 : _a.inline) === true ? true : toArray((_b = serverOptions.deps) == null ? void 0 : _b.inline); - return { - ...serverOptions, - deps: { - ...serverOptions.deps, - inline: inlineOptions !== true ? inlineOptions.map((dep) => { - return dep.startsWith("/") && dep.endsWith("/") ? new RegExp(dep) : dep; - }) : true, - external: toArray((_c = serverOptions.deps) == null ? void 0 : _c.external).map((dep) => { - return dep.startsWith("/") && dep.endsWith("/") ? new RegExp(dep) : dep; - }), - moduleDirectories: ((_d = serverOptions.deps) == null ? void 0 : _d.moduleDirectories) ? toArray((_e = serverOptions.deps) == null ? void 0 : _e.moduleDirectories) : void 0 - }, - transformMode: { - ...serverOptions.transformMode, - ssr: toArray((_f = serverOptions.transformMode) == null ? void 0 : _f.ssr).map( - (dep) => new RegExp(dep) - ), - web: toArray((_g = serverOptions.transformMode) == null ? void 0 : _g.web).map( - (dep) => new RegExp(dep) - ) - } - }; -} diff --git a/node_modules/vite-node/dist/client.cjs b/node_modules/vite-node/dist/client.cjs deleted file mode 100644 index 677b082b..00000000 --- a/node_modules/vite-node/dist/client.cjs +++ /dev/null @@ -1,499 +0,0 @@ -'use strict'; - -var node_module = require('node:module'); -var path = require('node:path'); -var node_url = require('node:url'); -var vm = require('node:vm'); -var pathe = require('pathe'); -var createDebug = require('debug'); -var utils = require('./utils.cjs'); -var sourceMap = require('./source-map.cjs'); -require('node:fs'); - -const { setTimeout, clearTimeout } = globalThis; -const debugExecute = createDebug("vite-node:client:execute"); -const debugNative = createDebug("vite-node:client:native"); -const clientStub = { - injectQuery: (id) => id, - createHotContext: () => { - return { - accept: () => { - }, - prune: () => { - }, - dispose: () => { - }, - decline: () => { - }, - invalidate: () => { - }, - on: () => { - }, - send: () => { - } - }; - }, - updateStyle: () => { - }, - removeStyle: () => { - } -}; -const env = utils.createImportMetaEnvProxy(); -const DEFAULT_REQUEST_STUBS = { - "/@vite/client": clientStub, - "@vite/client": clientStub -}; -class ModuleCacheMap extends Map { - normalizePath(fsPath) { - return utils.normalizeModuleId(fsPath); - } - /** - * Assign partial data to the map - */ - update(fsPath, mod) { - fsPath = this.normalizePath(fsPath); - if (!super.has(fsPath)) { - this.setByModuleId(fsPath, mod); - } else { - Object.assign(super.get(fsPath), mod); - } - return this; - } - setByModuleId(modulePath, mod) { - return super.set(modulePath, mod); - } - set(fsPath, mod) { - return this.setByModuleId(this.normalizePath(fsPath), mod); - } - getByModuleId(modulePath) { - if (!super.has(modulePath)) { - this.setByModuleId(modulePath, {}); - } - const mod = super.get(modulePath); - if (!mod.imports) { - Object.assign(mod, { - imports: /* @__PURE__ */ new Set(), - importers: /* @__PURE__ */ new Set() - }); - } - return mod; - } - get(fsPath) { - return this.getByModuleId(this.normalizePath(fsPath)); - } - deleteByModuleId(modulePath) { - return super.delete(modulePath); - } - delete(fsPath) { - return this.deleteByModuleId(this.normalizePath(fsPath)); - } - invalidateModule(mod) { - var _a, _b; - delete mod.evaluated; - delete mod.resolving; - delete mod.promise; - delete mod.exports; - (_a = mod.importers) == null ? void 0 : _a.clear(); - (_b = mod.imports) == null ? void 0 : _b.clear(); - return true; - } - /** - * Invalidate modules that dependent on the given modules, up to the main entry - */ - invalidateDepTree(ids, invalidated = /* @__PURE__ */ new Set()) { - for (const _id of ids) { - const id = this.normalizePath(_id); - if (invalidated.has(id)) { - continue; - } - invalidated.add(id); - const mod = super.get(id); - if (mod == null ? void 0 : mod.importers) { - this.invalidateDepTree(mod.importers, invalidated); - } - super.delete(id); - } - return invalidated; - } - /** - * Invalidate dependency modules of the given modules, down to the bottom-level dependencies - */ - invalidateSubDepTree(ids, invalidated = /* @__PURE__ */ new Set()) { - for (const _id of ids) { - const id = this.normalizePath(_id); - if (invalidated.has(id)) { - continue; - } - invalidated.add(id); - const subIds = Array.from(super.entries()).filter(([, mod]) => { - var _a; - return (_a = mod.importers) == null ? void 0 : _a.has(id); - }).map(([key]) => key); - if (subIds.length) { - this.invalidateSubDepTree(subIds, invalidated); - } - super.delete(id); - } - return invalidated; - } - /** - * Return parsed source map based on inlined source map of the module - */ - getSourceMap(id) { - const cache = this.get(id); - if (cache.map) { - return cache.map; - } - const map = cache.code && sourceMap.extractSourceMap(cache.code); - if (map) { - cache.map = map; - return map; - } - return null; - } -} -class ViteNodeRunner { - constructor(options) { - this.options = options; - this.root = options.root ?? process.cwd(); - this.moduleCache = options.moduleCache ?? new ModuleCacheMap(); - this.debug = options.debug ?? (typeof process !== "undefined" ? !!process.env.VITE_NODE_DEBUG_RUNNER : false); - } - root; - debug; - /** - * Holds the cache of modules - * Keys of the map are filepaths, or plain package names - */ - moduleCache; - async executeFile(file) { - const url = `/@fs/${utils.slash(pathe.resolve(file))}`; - return await this.cachedRequest(url, url, []); - } - async executeId(rawId) { - const [id, url] = await this.resolveUrl(rawId); - return await this.cachedRequest(id, url, []); - } - /** @internal */ - async cachedRequest(id, fsPath, callstack) { - const importee = callstack[callstack.length - 1]; - const mod = this.moduleCache.get(fsPath); - const { imports, importers } = mod; - if (importee) { - importers.add(importee); - } - const getStack = () => `stack: -${[...callstack, fsPath].reverse().map((p) => ` - ${p}`).join("\n")}`; - if (callstack.includes(fsPath) || Array.from(imports.values()).some((i) => importers.has(i))) { - if (mod.exports) { - return mod.exports; - } - } - let debugTimer; - if (this.debug) { - debugTimer = setTimeout( - () => console.warn( - `[vite-node] module ${fsPath} takes over 2s to load. -${getStack()}` - ), - 2e3 - ); - } - try { - if (mod.promise) { - return await mod.promise; - } - const promise = this.directRequest(id, fsPath, callstack); - Object.assign(mod, { promise, evaluated: false }); - return await promise; - } finally { - mod.evaluated = true; - if (debugTimer) { - clearTimeout(debugTimer); - } - } - } - shouldResolveId(id, _importee) { - return !utils.isInternalRequest(id) && !utils.isNodeBuiltin(id) && !id.startsWith("data:"); - } - async _resolveUrl(id, importer) { - var _a, _b; - const dep = utils.normalizeRequestId(id, this.options.base); - if (!this.shouldResolveId(dep)) { - return [dep, dep]; - } - const { path, exists } = utils.toFilePath(dep, this.root); - if (!this.options.resolveId || exists) { - return [dep, path]; - } - const resolved = await this.options.resolveId(dep, importer); - if ((_b = (_a = resolved == null ? void 0 : resolved.meta) == null ? void 0 : _a["vite:alias"]) == null ? void 0 : _b.noResolved) { - const error = new Error( - `Cannot find module '${id}'${importer ? ` imported from '${importer}'` : ""}. - -- If you rely on tsconfig.json's "paths" to resolve modules, please install "vite-tsconfig-paths" plugin to handle module resolution. -- Make sure you don't have relative aliases in your Vitest config. Use absolute paths instead. Read more: https://vitest.dev/guide/common-errors` - ); - Object.defineProperty(error, "code", { - value: "ERR_MODULE_NOT_FOUND", - enumerable: true - }); - Object.defineProperty(error, Symbol.for("vitest.error.not_found.data"), { - value: { id: dep, importer }, - enumerable: false - }); - throw error; - } - const resolvedId = resolved ? utils.normalizeRequestId(resolved.id, this.options.base) : dep; - return [resolvedId, resolvedId]; - } - async resolveUrl(id, importee) { - const resolveKey = `resolve:${id}`; - this.moduleCache.setByModuleId(resolveKey, { resolving: true }); - try { - return await this._resolveUrl(id, importee); - } finally { - this.moduleCache.deleteByModuleId(resolveKey); - } - } - /** @internal */ - async dependencyRequest(id, fsPath, callstack) { - return await this.cachedRequest(id, fsPath, callstack); - } - /** @internal */ - async directRequest(id, fsPath, _callstack) { - const moduleId = utils.normalizeModuleId(fsPath); - const callstack = [..._callstack, moduleId]; - const mod = this.moduleCache.getByModuleId(moduleId); - const request = async (dep) => { - const [id2, depFsPath] = await this.resolveUrl(String(dep), fsPath); - const depMod = this.moduleCache.getByModuleId(depFsPath); - depMod.importers.add(moduleId); - mod.imports.add(depFsPath); - return this.dependencyRequest(id2, depFsPath, callstack); - }; - const requestStubs = this.options.requestStubs || DEFAULT_REQUEST_STUBS; - if (id in requestStubs) { - return requestStubs[id]; - } - let { code: transformed, externalize } = await this.options.fetchModule(id); - if (externalize) { - debugNative(externalize); - const exports2 = await this.interopedImport(externalize); - mod.exports = exports2; - return exports2; - } - if (transformed == null) { - throw new Error( - `[vite-node] Failed to load "${id}" imported from ${callstack[callstack.length - 2]}` - ); - } - const { Object: Object2, Reflect: Reflect2, Symbol: Symbol2 } = this.getContextPrimitives(); - const modulePath = utils.cleanUrl(moduleId); - const href = node_url.pathToFileURL(modulePath).href; - const __filename = node_url.fileURLToPath(href); - const __dirname = path.dirname(__filename); - const meta = { - url: href, - env, - filename: __filename, - dirname: __dirname - }; - const exports = Object2.create(null); - Object2.defineProperty(exports, Symbol2.toStringTag, { - value: "Module", - enumerable: false, - configurable: false - }); - const SYMBOL_NOT_DEFINED = Symbol2("not defined"); - let moduleExports = SYMBOL_NOT_DEFINED; - const cjsExports = new Proxy(exports, { - get: (target, p, receiver) => { - if (Reflect2.has(target, p)) { - return Reflect2.get(target, p, receiver); - } - return Reflect2.get(Object2.prototype, p, receiver); - }, - getPrototypeOf: () => Object2.prototype, - set: (_, p, value) => { - if (p === "default" && this.shouldInterop(modulePath, { default: value }) && cjsExports !== value) { - exportAll(cjsExports, value); - exports.default = value; - return true; - } - if (!Reflect2.has(exports, "default")) { - exports.default = {}; - } - if (moduleExports !== SYMBOL_NOT_DEFINED && utils.isPrimitive(moduleExports)) { - defineExport(exports, p, () => void 0); - return true; - } - if (!utils.isPrimitive(exports.default)) { - exports.default[p] = value; - } - if (p !== "default") { - defineExport(exports, p, () => value); - } - return true; - } - }); - Object2.assign(mod, { code: transformed, exports }); - const moduleProxy = { - set exports(value) { - exportAll(cjsExports, value); - exports.default = value; - moduleExports = value; - }, - get exports() { - return cjsExports; - } - }; - let hotContext; - if (this.options.createHotContext) { - Object2.defineProperty(meta, "hot", { - enumerable: true, - get: () => { - var _a, _b; - hotContext || (hotContext = (_b = (_a = this.options).createHotContext) == null ? void 0 : _b.call(_a, this, moduleId)); - return hotContext; - }, - set: (value) => { - hotContext = value; - } - }); - } - const context = this.prepareContext({ - // esm transformed by Vite - __vite_ssr_import__: request, - __vite_ssr_dynamic_import__: request, - __vite_ssr_exports__: exports, - __vite_ssr_exportAll__: (obj) => exportAll(exports, obj), - __vite_ssr_import_meta__: meta, - // cjs compact - require: node_module.createRequire(href), - exports: cjsExports, - module: moduleProxy, - __filename, - __dirname - }); - debugExecute(__filename); - if (transformed[0] === "#") { - transformed = transformed.replace(/^#!.*/, (s) => " ".repeat(s.length)); - } - await this.runModule(context, transformed); - return exports; - } - getContextPrimitives() { - return { Object, Reflect, Symbol }; - } - async runModule(context, transformed) { - const codeDefinition = `'use strict';async (${Object.keys(context).join( - "," - )})=>{{`; - const code = `${codeDefinition}${transformed} -}}`; - const options = { - filename: context.__filename, - lineOffset: 0, - columnOffset: -codeDefinition.length - }; - const fn = vm.runInThisContext(code, options); - await fn(...Object.values(context)); - } - prepareContext(context) { - return context; - } - /** - * Define if a module should be interop-ed - * This function mostly for the ability to override by subclass - */ - shouldInterop(path, mod) { - if (this.options.interopDefault === false) { - return false; - } - return !path.endsWith(".mjs") && "default" in mod; - } - importExternalModule(path) { - return import(path); - } - /** - * Import a module and interop it - */ - async interopedImport(path) { - const importedModule = await this.importExternalModule(path); - if (!this.shouldInterop(path, importedModule)) { - return importedModule; - } - const { mod, defaultExport } = interopModule(importedModule); - return new Proxy(mod, { - get(mod2, prop) { - if (prop === "default") { - return defaultExport; - } - return mod2[prop] ?? (defaultExport == null ? void 0 : defaultExport[prop]); - }, - has(mod2, prop) { - if (prop === "default") { - return defaultExport !== void 0; - } - return prop in mod2 || defaultExport && prop in defaultExport; - }, - getOwnPropertyDescriptor(mod2, prop) { - const descriptor = Reflect.getOwnPropertyDescriptor(mod2, prop); - if (descriptor) { - return descriptor; - } - if (prop === "default" && defaultExport !== void 0) { - return { - value: defaultExport, - enumerable: true, - configurable: true - }; - } - } - }); - } -} -function interopModule(mod) { - if (utils.isPrimitive(mod)) { - return { - mod: { default: mod }, - defaultExport: mod - }; - } - let defaultExport = "default" in mod ? mod.default : mod; - if (!utils.isPrimitive(defaultExport) && "__esModule" in defaultExport) { - mod = defaultExport; - if ("default" in defaultExport) { - defaultExport = defaultExport.default; - } - } - return { mod, defaultExport }; -} -function defineExport(exports, key, value) { - Object.defineProperty(exports, key, { - enumerable: true, - configurable: true, - get: value - }); -} -function exportAll(exports, sourceModule) { - if (exports === sourceModule) { - return; - } - if (utils.isPrimitive(sourceModule) || Array.isArray(sourceModule) || sourceModule instanceof Promise) { - return; - } - for (const key in sourceModule) { - if (key !== "default") { - try { - defineExport(exports, key, () => sourceModule[key]); - } catch { - } - } - } -} - -exports.DEFAULT_REQUEST_STUBS = DEFAULT_REQUEST_STUBS; -exports.ModuleCacheMap = ModuleCacheMap; -exports.ViteNodeRunner = ViteNodeRunner; diff --git a/node_modules/vite-node/dist/client.d.ts b/node_modules/vite-node/dist/client.d.ts deleted file mode 100644 index 927266ae..00000000 --- a/node_modules/vite-node/dist/client.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { e as DEFAULT_REQUEST_STUBS, M as ModuleCacheMap, a as ViteNodeRunner } from './index-CCsqCcr7.js'; -import './trace-mapping.d-DLVdEqOp.js'; diff --git a/node_modules/vite-node/dist/client.mjs b/node_modules/vite-node/dist/client.mjs deleted file mode 100644 index 0712702a..00000000 --- a/node_modules/vite-node/dist/client.mjs +++ /dev/null @@ -1,495 +0,0 @@ -import { createRequire } from 'node:module'; -import { dirname } from 'node:path'; -import { pathToFileURL, fileURLToPath } from 'node:url'; -import vm from 'node:vm'; -import { resolve } from 'pathe'; -import createDebug from 'debug'; -import { createImportMetaEnvProxy, normalizeModuleId, slash, isInternalRequest, isNodeBuiltin, normalizeRequestId, toFilePath, cleanUrl, isPrimitive } from './utils.mjs'; -import { extractSourceMap } from './source-map.mjs'; -import 'node:fs'; - -const { setTimeout, clearTimeout } = globalThis; -const debugExecute = createDebug("vite-node:client:execute"); -const debugNative = createDebug("vite-node:client:native"); -const clientStub = { - injectQuery: (id) => id, - createHotContext: () => { - return { - accept: () => { - }, - prune: () => { - }, - dispose: () => { - }, - decline: () => { - }, - invalidate: () => { - }, - on: () => { - }, - send: () => { - } - }; - }, - updateStyle: () => { - }, - removeStyle: () => { - } -}; -const env = createImportMetaEnvProxy(); -const DEFAULT_REQUEST_STUBS = { - "/@vite/client": clientStub, - "@vite/client": clientStub -}; -class ModuleCacheMap extends Map { - normalizePath(fsPath) { - return normalizeModuleId(fsPath); - } - /** - * Assign partial data to the map - */ - update(fsPath, mod) { - fsPath = this.normalizePath(fsPath); - if (!super.has(fsPath)) { - this.setByModuleId(fsPath, mod); - } else { - Object.assign(super.get(fsPath), mod); - } - return this; - } - setByModuleId(modulePath, mod) { - return super.set(modulePath, mod); - } - set(fsPath, mod) { - return this.setByModuleId(this.normalizePath(fsPath), mod); - } - getByModuleId(modulePath) { - if (!super.has(modulePath)) { - this.setByModuleId(modulePath, {}); - } - const mod = super.get(modulePath); - if (!mod.imports) { - Object.assign(mod, { - imports: /* @__PURE__ */ new Set(), - importers: /* @__PURE__ */ new Set() - }); - } - return mod; - } - get(fsPath) { - return this.getByModuleId(this.normalizePath(fsPath)); - } - deleteByModuleId(modulePath) { - return super.delete(modulePath); - } - delete(fsPath) { - return this.deleteByModuleId(this.normalizePath(fsPath)); - } - invalidateModule(mod) { - var _a, _b; - delete mod.evaluated; - delete mod.resolving; - delete mod.promise; - delete mod.exports; - (_a = mod.importers) == null ? void 0 : _a.clear(); - (_b = mod.imports) == null ? void 0 : _b.clear(); - return true; - } - /** - * Invalidate modules that dependent on the given modules, up to the main entry - */ - invalidateDepTree(ids, invalidated = /* @__PURE__ */ new Set()) { - for (const _id of ids) { - const id = this.normalizePath(_id); - if (invalidated.has(id)) { - continue; - } - invalidated.add(id); - const mod = super.get(id); - if (mod == null ? void 0 : mod.importers) { - this.invalidateDepTree(mod.importers, invalidated); - } - super.delete(id); - } - return invalidated; - } - /** - * Invalidate dependency modules of the given modules, down to the bottom-level dependencies - */ - invalidateSubDepTree(ids, invalidated = /* @__PURE__ */ new Set()) { - for (const _id of ids) { - const id = this.normalizePath(_id); - if (invalidated.has(id)) { - continue; - } - invalidated.add(id); - const subIds = Array.from(super.entries()).filter(([, mod]) => { - var _a; - return (_a = mod.importers) == null ? void 0 : _a.has(id); - }).map(([key]) => key); - if (subIds.length) { - this.invalidateSubDepTree(subIds, invalidated); - } - super.delete(id); - } - return invalidated; - } - /** - * Return parsed source map based on inlined source map of the module - */ - getSourceMap(id) { - const cache = this.get(id); - if (cache.map) { - return cache.map; - } - const map = cache.code && extractSourceMap(cache.code); - if (map) { - cache.map = map; - return map; - } - return null; - } -} -class ViteNodeRunner { - constructor(options) { - this.options = options; - this.root = options.root ?? process.cwd(); - this.moduleCache = options.moduleCache ?? new ModuleCacheMap(); - this.debug = options.debug ?? (typeof process !== "undefined" ? !!process.env.VITE_NODE_DEBUG_RUNNER : false); - } - root; - debug; - /** - * Holds the cache of modules - * Keys of the map are filepaths, or plain package names - */ - moduleCache; - async executeFile(file) { - const url = `/@fs/${slash(resolve(file))}`; - return await this.cachedRequest(url, url, []); - } - async executeId(rawId) { - const [id, url] = await this.resolveUrl(rawId); - return await this.cachedRequest(id, url, []); - } - /** @internal */ - async cachedRequest(id, fsPath, callstack) { - const importee = callstack[callstack.length - 1]; - const mod = this.moduleCache.get(fsPath); - const { imports, importers } = mod; - if (importee) { - importers.add(importee); - } - const getStack = () => `stack: -${[...callstack, fsPath].reverse().map((p) => ` - ${p}`).join("\n")}`; - if (callstack.includes(fsPath) || Array.from(imports.values()).some((i) => importers.has(i))) { - if (mod.exports) { - return mod.exports; - } - } - let debugTimer; - if (this.debug) { - debugTimer = setTimeout( - () => console.warn( - `[vite-node] module ${fsPath} takes over 2s to load. -${getStack()}` - ), - 2e3 - ); - } - try { - if (mod.promise) { - return await mod.promise; - } - const promise = this.directRequest(id, fsPath, callstack); - Object.assign(mod, { promise, evaluated: false }); - return await promise; - } finally { - mod.evaluated = true; - if (debugTimer) { - clearTimeout(debugTimer); - } - } - } - shouldResolveId(id, _importee) { - return !isInternalRequest(id) && !isNodeBuiltin(id) && !id.startsWith("data:"); - } - async _resolveUrl(id, importer) { - var _a, _b; - const dep = normalizeRequestId(id, this.options.base); - if (!this.shouldResolveId(dep)) { - return [dep, dep]; - } - const { path, exists } = toFilePath(dep, this.root); - if (!this.options.resolveId || exists) { - return [dep, path]; - } - const resolved = await this.options.resolveId(dep, importer); - if ((_b = (_a = resolved == null ? void 0 : resolved.meta) == null ? void 0 : _a["vite:alias"]) == null ? void 0 : _b.noResolved) { - const error = new Error( - `Cannot find module '${id}'${importer ? ` imported from '${importer}'` : ""}. - -- If you rely on tsconfig.json's "paths" to resolve modules, please install "vite-tsconfig-paths" plugin to handle module resolution. -- Make sure you don't have relative aliases in your Vitest config. Use absolute paths instead. Read more: https://vitest.dev/guide/common-errors` - ); - Object.defineProperty(error, "code", { - value: "ERR_MODULE_NOT_FOUND", - enumerable: true - }); - Object.defineProperty(error, Symbol.for("vitest.error.not_found.data"), { - value: { id: dep, importer }, - enumerable: false - }); - throw error; - } - const resolvedId = resolved ? normalizeRequestId(resolved.id, this.options.base) : dep; - return [resolvedId, resolvedId]; - } - async resolveUrl(id, importee) { - const resolveKey = `resolve:${id}`; - this.moduleCache.setByModuleId(resolveKey, { resolving: true }); - try { - return await this._resolveUrl(id, importee); - } finally { - this.moduleCache.deleteByModuleId(resolveKey); - } - } - /** @internal */ - async dependencyRequest(id, fsPath, callstack) { - return await this.cachedRequest(id, fsPath, callstack); - } - /** @internal */ - async directRequest(id, fsPath, _callstack) { - const moduleId = normalizeModuleId(fsPath); - const callstack = [..._callstack, moduleId]; - const mod = this.moduleCache.getByModuleId(moduleId); - const request = async (dep) => { - const [id2, depFsPath] = await this.resolveUrl(String(dep), fsPath); - const depMod = this.moduleCache.getByModuleId(depFsPath); - depMod.importers.add(moduleId); - mod.imports.add(depFsPath); - return this.dependencyRequest(id2, depFsPath, callstack); - }; - const requestStubs = this.options.requestStubs || DEFAULT_REQUEST_STUBS; - if (id in requestStubs) { - return requestStubs[id]; - } - let { code: transformed, externalize } = await this.options.fetchModule(id); - if (externalize) { - debugNative(externalize); - const exports2 = await this.interopedImport(externalize); - mod.exports = exports2; - return exports2; - } - if (transformed == null) { - throw new Error( - `[vite-node] Failed to load "${id}" imported from ${callstack[callstack.length - 2]}` - ); - } - const { Object: Object2, Reflect: Reflect2, Symbol: Symbol2 } = this.getContextPrimitives(); - const modulePath = cleanUrl(moduleId); - const href = pathToFileURL(modulePath).href; - const __filename = fileURLToPath(href); - const __dirname = dirname(__filename); - const meta = { - url: href, - env, - filename: __filename, - dirname: __dirname - }; - const exports = Object2.create(null); - Object2.defineProperty(exports, Symbol2.toStringTag, { - value: "Module", - enumerable: false, - configurable: false - }); - const SYMBOL_NOT_DEFINED = Symbol2("not defined"); - let moduleExports = SYMBOL_NOT_DEFINED; - const cjsExports = new Proxy(exports, { - get: (target, p, receiver) => { - if (Reflect2.has(target, p)) { - return Reflect2.get(target, p, receiver); - } - return Reflect2.get(Object2.prototype, p, receiver); - }, - getPrototypeOf: () => Object2.prototype, - set: (_, p, value) => { - if (p === "default" && this.shouldInterop(modulePath, { default: value }) && cjsExports !== value) { - exportAll(cjsExports, value); - exports.default = value; - return true; - } - if (!Reflect2.has(exports, "default")) { - exports.default = {}; - } - if (moduleExports !== SYMBOL_NOT_DEFINED && isPrimitive(moduleExports)) { - defineExport(exports, p, () => void 0); - return true; - } - if (!isPrimitive(exports.default)) { - exports.default[p] = value; - } - if (p !== "default") { - defineExport(exports, p, () => value); - } - return true; - } - }); - Object2.assign(mod, { code: transformed, exports }); - const moduleProxy = { - set exports(value) { - exportAll(cjsExports, value); - exports.default = value; - moduleExports = value; - }, - get exports() { - return cjsExports; - } - }; - let hotContext; - if (this.options.createHotContext) { - Object2.defineProperty(meta, "hot", { - enumerable: true, - get: () => { - var _a, _b; - hotContext || (hotContext = (_b = (_a = this.options).createHotContext) == null ? void 0 : _b.call(_a, this, moduleId)); - return hotContext; - }, - set: (value) => { - hotContext = value; - } - }); - } - const context = this.prepareContext({ - // esm transformed by Vite - __vite_ssr_import__: request, - __vite_ssr_dynamic_import__: request, - __vite_ssr_exports__: exports, - __vite_ssr_exportAll__: (obj) => exportAll(exports, obj), - __vite_ssr_import_meta__: meta, - // cjs compact - require: createRequire(href), - exports: cjsExports, - module: moduleProxy, - __filename, - __dirname - }); - debugExecute(__filename); - if (transformed[0] === "#") { - transformed = transformed.replace(/^#!.*/, (s) => " ".repeat(s.length)); - } - await this.runModule(context, transformed); - return exports; - } - getContextPrimitives() { - return { Object, Reflect, Symbol }; - } - async runModule(context, transformed) { - const codeDefinition = `'use strict';async (${Object.keys(context).join( - "," - )})=>{{`; - const code = `${codeDefinition}${transformed} -}}`; - const options = { - filename: context.__filename, - lineOffset: 0, - columnOffset: -codeDefinition.length - }; - const fn = vm.runInThisContext(code, options); - await fn(...Object.values(context)); - } - prepareContext(context) { - return context; - } - /** - * Define if a module should be interop-ed - * This function mostly for the ability to override by subclass - */ - shouldInterop(path, mod) { - if (this.options.interopDefault === false) { - return false; - } - return !path.endsWith(".mjs") && "default" in mod; - } - importExternalModule(path) { - return import(path); - } - /** - * Import a module and interop it - */ - async interopedImport(path) { - const importedModule = await this.importExternalModule(path); - if (!this.shouldInterop(path, importedModule)) { - return importedModule; - } - const { mod, defaultExport } = interopModule(importedModule); - return new Proxy(mod, { - get(mod2, prop) { - if (prop === "default") { - return defaultExport; - } - return mod2[prop] ?? (defaultExport == null ? void 0 : defaultExport[prop]); - }, - has(mod2, prop) { - if (prop === "default") { - return defaultExport !== void 0; - } - return prop in mod2 || defaultExport && prop in defaultExport; - }, - getOwnPropertyDescriptor(mod2, prop) { - const descriptor = Reflect.getOwnPropertyDescriptor(mod2, prop); - if (descriptor) { - return descriptor; - } - if (prop === "default" && defaultExport !== void 0) { - return { - value: defaultExport, - enumerable: true, - configurable: true - }; - } - } - }); - } -} -function interopModule(mod) { - if (isPrimitive(mod)) { - return { - mod: { default: mod }, - defaultExport: mod - }; - } - let defaultExport = "default" in mod ? mod.default : mod; - if (!isPrimitive(defaultExport) && "__esModule" in defaultExport) { - mod = defaultExport; - if ("default" in defaultExport) { - defaultExport = defaultExport.default; - } - } - return { mod, defaultExport }; -} -function defineExport(exports, key, value) { - Object.defineProperty(exports, key, { - enumerable: true, - configurable: true, - get: value - }); -} -function exportAll(exports, sourceModule) { - if (exports === sourceModule) { - return; - } - if (isPrimitive(sourceModule) || Array.isArray(sourceModule) || sourceModule instanceof Promise) { - return; - } - for (const key in sourceModule) { - if (key !== "default") { - try { - defineExport(exports, key, () => sourceModule[key]); - } catch { - } - } - } -} - -export { DEFAULT_REQUEST_STUBS, ModuleCacheMap, ViteNodeRunner }; diff --git a/node_modules/vite-node/dist/constants.cjs b/node_modules/vite-node/dist/constants.cjs deleted file mode 100644 index d1bc9a11..00000000 --- a/node_modules/vite-node/dist/constants.cjs +++ /dev/null @@ -1,42 +0,0 @@ -'use strict'; - -const KNOWN_ASSET_TYPES = [ - // images - "apng", - "bmp", - "png", - "jpe?g", - "jfif", - "pjpeg", - "pjp", - "gif", - "svg", - "ico", - "webp", - "avif", - // media - "mp4", - "webm", - "ogg", - "mp3", - "wav", - "flac", - "aac", - // fonts - "woff2?", - "eot", - "ttf", - "otf", - // other - "webmanifest", - "pdf", - "txt" -]; -const KNOWN_ASSET_RE = new RegExp( - `\\.(${KNOWN_ASSET_TYPES.join("|")})$` -); -const CSS_LANGS_RE = /\.(css|less|sass|scss|styl|stylus|pcss|postcss|sss)(?:$|\?)/; - -exports.CSS_LANGS_RE = CSS_LANGS_RE; -exports.KNOWN_ASSET_RE = KNOWN_ASSET_RE; -exports.KNOWN_ASSET_TYPES = KNOWN_ASSET_TYPES; diff --git a/node_modules/vite-node/dist/constants.d.ts b/node_modules/vite-node/dist/constants.d.ts deleted file mode 100644 index 201b69a9..00000000 --- a/node_modules/vite-node/dist/constants.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -declare const KNOWN_ASSET_TYPES: string[]; -declare const KNOWN_ASSET_RE: RegExp; -declare const CSS_LANGS_RE: RegExp; - -export { CSS_LANGS_RE, KNOWN_ASSET_RE, KNOWN_ASSET_TYPES }; diff --git a/node_modules/vite-node/dist/constants.mjs b/node_modules/vite-node/dist/constants.mjs deleted file mode 100644 index 7bb606ed..00000000 --- a/node_modules/vite-node/dist/constants.mjs +++ /dev/null @@ -1,38 +0,0 @@ -const KNOWN_ASSET_TYPES = [ - // images - "apng", - "bmp", - "png", - "jpe?g", - "jfif", - "pjpeg", - "pjp", - "gif", - "svg", - "ico", - "webp", - "avif", - // media - "mp4", - "webm", - "ogg", - "mp3", - "wav", - "flac", - "aac", - // fonts - "woff2?", - "eot", - "ttf", - "otf", - // other - "webmanifest", - "pdf", - "txt" -]; -const KNOWN_ASSET_RE = new RegExp( - `\\.(${KNOWN_ASSET_TYPES.join("|")})$` -); -const CSS_LANGS_RE = /\.(css|less|sass|scss|styl|stylus|pcss|postcss|sss)(?:$|\?)/; - -export { CSS_LANGS_RE, KNOWN_ASSET_RE, KNOWN_ASSET_TYPES }; diff --git a/node_modules/vite-node/dist/hmr.cjs b/node_modules/vite-node/dist/hmr.cjs deleted file mode 100644 index 873b2b69..00000000 --- a/node_modules/vite-node/dist/hmr.cjs +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -var hmr = require('./chunk-hmr.cjs'); -require('node:events'); -require('tinyrainbow'); -require('debug'); -require('./utils.cjs'); -require('node:url'); -require('node:module'); -require('node:fs'); -require('pathe'); - - - -exports.createHmrEmitter = hmr.createHmrEmitter; -exports.createHotContext = hmr.createHotContext; -exports.getCache = hmr.getCache; -exports.handleMessage = hmr.handleMessage; -exports.reload = hmr.reload; -exports.sendMessageBuffer = hmr.sendMessageBuffer; -exports.viteNodeHmrPlugin = hmr.viteNodeHmrPlugin; diff --git a/node_modules/vite-node/dist/hmr.d.ts b/node_modules/vite-node/dist/hmr.d.ts deleted file mode 100644 index c43b9169..00000000 --- a/node_modules/vite-node/dist/hmr.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { EventEmitter } from 'node:events'; -import { HMRPayload, Plugin } from 'vite'; -import { C as CustomEventMap, a as ViteNodeRunner, H as HMRPayload$1, b as HotContext } from './index-CCsqCcr7.js'; -import './trace-mapping.d-DLVdEqOp.js'; - -type EventType = string | symbol; -type Handler = (event: T) => void; -interface Emitter> { - on: (type: Key, handler: Handler) => void; - off: (type: Key, handler?: Handler) => void; - emit: ((type: Key, event: Events[Key]) => void) & ((type: undefined extends Events[Key] ? Key : never) => void); -} -type HMREmitter = Emitter<{ - message: HMRPayload; -}> & EventEmitter; -declare module 'vite' { - interface ViteDevServer { - emitter: HMREmitter; - } -} -declare function createHmrEmitter(): HMREmitter; -declare function viteNodeHmrPlugin(): Plugin; - -type ModuleNamespace = Record & { - [Symbol.toStringTag]: 'Module'; -}; -type InferCustomEventPayload = T extends keyof CustomEventMap ? CustomEventMap[T] : any; -interface HotModule { - id: string; - callbacks: HotCallback[]; -} -interface HotCallback { - deps: string[]; - fn: (modules: (ModuleNamespace | undefined)[]) => void; -} -interface CacheData { - hotModulesMap: Map; - dataMap: Map; - disposeMap: Map void | Promise>; - pruneMap: Map void | Promise>; - customListenersMap: Map void)[]>; - ctxToListenersMap: Map void)[]>>; - messageBuffer: string[]; - isFirstUpdate: boolean; - pending: boolean; - queued: Promise<(() => void) | undefined>[]; -} -declare function getCache(runner: ViteNodeRunner): CacheData; -declare function sendMessageBuffer(runner: ViteNodeRunner, emitter: HMREmitter): void; -declare function reload(runner: ViteNodeRunner, files: string[]): Promise; -declare function handleMessage(runner: ViteNodeRunner, emitter: HMREmitter, files: string[], payload: HMRPayload$1): Promise; -declare function createHotContext(runner: ViteNodeRunner, emitter: HMREmitter, files: string[], ownerPath: string): HotContext; - -export { type Emitter, type EventType, type HMREmitter, type Handler, type HotCallback, type HotModule, type InferCustomEventPayload, type ModuleNamespace, createHmrEmitter, createHotContext, getCache, handleMessage, reload, sendMessageBuffer, viteNodeHmrPlugin }; diff --git a/node_modules/vite-node/dist/hmr.mjs b/node_modules/vite-node/dist/hmr.mjs deleted file mode 100644 index f9022a85..00000000 --- a/node_modules/vite-node/dist/hmr.mjs +++ /dev/null @@ -1,9 +0,0 @@ -export { c as createHmrEmitter, a as createHotContext, g as getCache, h as handleMessage, r as reload, s as sendMessageBuffer, v as viteNodeHmrPlugin } from './chunk-hmr.mjs'; -import 'node:events'; -import 'tinyrainbow'; -import 'debug'; -import './utils.mjs'; -import 'node:url'; -import 'node:module'; -import 'node:fs'; -import 'pathe'; diff --git a/node_modules/vite-node/dist/index-CCsqCcr7.d.ts b/node_modules/vite-node/dist/index-CCsqCcr7.d.ts deleted file mode 100644 index 0586152f..00000000 --- a/node_modules/vite-node/dist/index-CCsqCcr7.d.ts +++ /dev/null @@ -1,315 +0,0 @@ -import { E as EncodedSourceMap } from './trace-mapping.d-DLVdEqOp.js'; - -type HMRPayload = - | ConnectedPayload - | UpdatePayload - | FullReloadPayload - | CustomPayload - | ErrorPayload - | PrunePayload - -interface ConnectedPayload { - type: 'connected' -} - -interface UpdatePayload { - type: 'update' - updates: Update[] -} - -interface Update { - type: 'js-update' | 'css-update' - path: string - acceptedPath: string - timestamp: number - /** @internal */ - explicitImportRequired?: boolean - /** @internal */ - isWithinCircularImport?: boolean - /** @internal */ - ssrInvalidates?: string[] -} - -interface PrunePayload { - type: 'prune' - paths: string[] -} - -interface FullReloadPayload { - type: 'full-reload' - path?: string - /** @internal */ - triggeredBy?: string -} - -interface CustomPayload { - type: 'custom' - event: string - data?: any -} - -interface ErrorPayload { - type: 'error' - err: { - [name: string]: any - message: string - stack: string - id?: string - frame?: string - plugin?: string - pluginCode?: string - loc?: { - file?: string - line: number - column: number - } - } -} - -interface CustomEventMap { - 'vite:beforeUpdate': UpdatePayload - 'vite:afterUpdate': UpdatePayload - 'vite:beforePrune': PrunePayload - 'vite:beforeFullReload': FullReloadPayload - 'vite:error': ErrorPayload - 'vite:invalidate': InvalidatePayload - 'vite:ws:connect': WebSocketConnectionPayload - 'vite:ws:disconnect': WebSocketConnectionPayload -} - -interface WebSocketConnectionPayload { - /** - * @experimental - * We expose this instance experimentally to see potential usage. - * This might be removed in the future if we didn't find reasonable use cases. - * If you find this useful, please open an issue with details so we can discuss and make it stable API. - */ - // eslint-disable-next-line n/no-unsupported-features/node-builtins - webSocket: WebSocket -} - -interface InvalidatePayload { - path: string - message: string | undefined -} - -/** - * provides types for built-in Vite events - */ -type InferCustomEventPayload = - T extends keyof CustomEventMap ? CustomEventMap[T] : any - -type ModuleNamespace = Record & { - [Symbol.toStringTag]: 'Module' -} - -interface ViteHotContext { - readonly data: any - - accept(): void - accept(cb: (mod: ModuleNamespace | undefined) => void): void - accept(dep: string, cb: (mod: ModuleNamespace | undefined) => void): void - accept( - deps: readonly string[], - cb: (mods: Array) => void, - ): void - - acceptExports( - exportNames: string | readonly string[], - cb?: (mod: ModuleNamespace | undefined) => void, - ): void - - dispose(cb: (data: any) => void): void - prune(cb: (data: any) => void): void - invalidate(message?: string): void - - on( - event: T, - cb: (payload: InferCustomEventPayload) => void, - ): void - off( - event: T, - cb: (payload: InferCustomEventPayload) => void, - ): void - send(event: T, data?: InferCustomEventPayload): void -} - -declare const DEFAULT_REQUEST_STUBS: Record>; -declare class ModuleCacheMap extends Map { - normalizePath(fsPath: string): string; - /** - * Assign partial data to the map - */ - update(fsPath: string, mod: ModuleCache): this; - setByModuleId(modulePath: string, mod: ModuleCache): this; - set(fsPath: string, mod: ModuleCache): this; - getByModuleId(modulePath: string): ModuleCache & Required>; - get(fsPath: string): ModuleCache & Required>; - deleteByModuleId(modulePath: string): boolean; - delete(fsPath: string): boolean; - invalidateModule(mod: ModuleCache): boolean; - /** - * Invalidate modules that dependent on the given modules, up to the main entry - */ - invalidateDepTree(ids: string[] | Set, invalidated?: Set): Set; - /** - * Invalidate dependency modules of the given modules, down to the bottom-level dependencies - */ - invalidateSubDepTree(ids: string[] | Set, invalidated?: Set): Set; - /** - * Return parsed source map based on inlined source map of the module - */ - getSourceMap(id: string): EncodedSourceMap | null; -} -declare class ViteNodeRunner { - options: ViteNodeRunnerOptions; - root: string; - debug: boolean; - /** - * Holds the cache of modules - * Keys of the map are filepaths, or plain package names - */ - moduleCache: ModuleCacheMap; - constructor(options: ViteNodeRunnerOptions); - executeFile(file: string): Promise; - executeId(rawId: string): Promise; - /** @internal */ - cachedRequest(id: string, fsPath: string, callstack: string[]): Promise; - shouldResolveId(id: string, _importee?: string): boolean; - private _resolveUrl; - resolveUrl(id: string, importee?: string): Promise<[url: string, fsPath: string]>; - /** @internal */ - dependencyRequest(id: string, fsPath: string, callstack: string[]): Promise; - /** @internal */ - directRequest(id: string, fsPath: string, _callstack: string[]): Promise; - protected getContextPrimitives(): { - Object: ObjectConstructor; - Reflect: typeof Reflect; - Symbol: SymbolConstructor; - }; - protected runModule(context: Record, transformed: string): Promise; - prepareContext(context: Record): Record; - /** - * Define if a module should be interop-ed - * This function mostly for the ability to override by subclass - */ - shouldInterop(path: string, mod: any): boolean; - protected importExternalModule(path: string): Promise; - /** - * Import a module and interop it - */ - interopedImport(path: string): Promise; -} - -type Nullable = T | null | undefined; -type Arrayable = T | Array; -type Awaitable = T | PromiseLike; -interface DepsHandlingOptions { - external?: (string | RegExp)[]; - inline?: (string | RegExp)[] | true; - /** - * A list of directories that are considered to hold Node.js modules - * Have to include "/" at the start and end of the path - * - * Vite-Node checks the whole absolute path of the import, so make sure you don't include - * unwanted files accidentally - * @default ['/node_modules/'] - */ - moduleDirectories?: string[]; - cacheDir?: string; - /** - * Try to guess the CJS version of a package when it's invalid ESM - * @default false - */ - fallbackCJS?: boolean; -} -interface StartOfSourceMap { - file?: string; - sourceRoot?: string; -} - -interface RawSourceMap extends StartOfSourceMap { - version: number; - sources: string[]; - names: string[]; - sourcesContent?: (string | null)[]; - mappings: string; -} -interface FetchResult { - code?: string; - externalize?: string; - map?: EncodedSourceMap | null; -} -type HotContext = Omit; -type FetchFunction = (id: string) => Promise; -type ResolveIdFunction = (id: string, importer?: string) => Awaitable; -type CreateHotContextFunction = (runner: ViteNodeRunner, url: string) => HotContext; -interface ModuleCache { - promise?: Promise; - exports?: any; - evaluated?: boolean; - resolving?: boolean; - code?: string; - map?: EncodedSourceMap; - /** - * Module ids that imports this module - */ - importers?: Set; - imports?: Set; -} -interface ViteNodeRunnerOptions { - root: string; - fetchModule: FetchFunction; - resolveId?: ResolveIdFunction; - createHotContext?: CreateHotContextFunction; - base?: string; - moduleCache?: ModuleCacheMap; - interopDefault?: boolean; - requestStubs?: Record; - debug?: boolean; -} -interface ViteNodeResolveId { - external?: boolean | 'absolute' | 'relative'; - id: string; - meta?: Record | null; - moduleSideEffects?: boolean | 'no-treeshake' | null; - syntheticNamedExports?: boolean | string | null; -} -interface ViteNodeResolveModule { - external: string | null; - id: string; - fsPath: string; -} -interface ViteNodeServerOptions { - /** - * Inject inline sourcemap to modules - * @default 'inline' - */ - sourcemap?: 'inline' | boolean; - /** - * Deps handling - */ - deps?: DepsHandlingOptions; - /** - * Transform method for modules - */ - transformMode?: { - ssr?: RegExp[]; - web?: RegExp[]; - }; - debug?: DebuggerOptions; -} -interface DebuggerOptions { - /** - * Dump the transformed module to filesystem - * Passing a string will dump to the specified path - */ - dumpModules?: boolean | string; - /** - * Read dumpped module from filesystem whenever exists. - * Useful for debugging by modifying the dump result from the filesystem. - */ - loadDumppedModules?: boolean; -} - -export { type Arrayable as A, type CustomEventMap as C, type DebuggerOptions as D, type FetchResult as F, type HMRPayload as H, ModuleCacheMap as M, type Nullable as N, type RawSourceMap as R, type StartOfSourceMap as S, type ViteNodeServerOptions as V, ViteNodeRunner as a, type HotContext as b, type DepsHandlingOptions as c, type ViteNodeResolveId as d, DEFAULT_REQUEST_STUBS as e, type Awaitable as f, type FetchFunction as g, type ResolveIdFunction as h, type CreateHotContextFunction as i, type ModuleCache as j, type ViteNodeRunnerOptions as k, type ViteNodeResolveModule as l }; diff --git a/node_modules/vite-node/dist/index.cjs b/node_modules/vite-node/dist/index.cjs deleted file mode 100644 index eb109abb..00000000 --- a/node_modules/vite-node/dist/index.cjs +++ /dev/null @@ -1,2 +0,0 @@ -'use strict'; - diff --git a/node_modules/vite-node/dist/index.d.ts b/node_modules/vite-node/dist/index.d.ts deleted file mode 100644 index 3c0d2239..00000000 --- a/node_modules/vite-node/dist/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { A as Arrayable, f as Awaitable, i as CreateHotContextFunction, D as DebuggerOptions, c as DepsHandlingOptions, g as FetchFunction, F as FetchResult, b as HotContext, j as ModuleCache, M as ModuleCacheMap, N as Nullable, R as RawSourceMap, h as ResolveIdFunction, S as StartOfSourceMap, d as ViteNodeResolveId, l as ViteNodeResolveModule, k as ViteNodeRunnerOptions, V as ViteNodeServerOptions } from './index-CCsqCcr7.js'; -export { D as DecodedSourceMap, E as EncodedSourceMap, S as SourceMapInput } from './trace-mapping.d-DLVdEqOp.js'; diff --git a/node_modules/vite-node/dist/index.mjs b/node_modules/vite-node/dist/index.mjs deleted file mode 100644 index 8b137891..00000000 --- a/node_modules/vite-node/dist/index.mjs +++ /dev/null @@ -1 +0,0 @@ - diff --git a/node_modules/vite-node/dist/server.cjs b/node_modules/vite-node/dist/server.cjs deleted file mode 100644 index b80ce8e4..00000000 --- a/node_modules/vite-node/dist/server.cjs +++ /dev/null @@ -1,541 +0,0 @@ -'use strict'; - -var node_perf_hooks = require('node:perf_hooks'); -var fs = require('node:fs'); -var assert = require('node:assert'); -var pathe = require('pathe'); -var createDebug = require('debug'); -var utils = require('./utils.cjs'); -var constants = require('./constants.cjs'); -var c = require('tinyrainbow'); -var sourceMap = require('./source-map.cjs'); -require('node:url'); -require('node:module'); -require('node:path'); - -const BUILTIN_EXTENSIONS = /* @__PURE__ */ new Set([".mjs", ".cjs", ".node", ".wasm"]); -const ESM_SYNTAX_RE = /(?:[\s;]|^)(?:import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m; -const ESM_EXT_RE = /\.(es|esm|esm-browser|esm-bundler|es6|module)\.js$/; -const ESM_FOLDER_RE = /\/(es|esm)\/(.*\.js)$/; -const defaultInline = [ - /virtual:/, - /\.[mc]?ts$/, - // special Vite query strings - /[?&](init|raw|url|inline)\b/, - // Vite returns a string for assets imports, even if it's inside "node_modules" - constants.KNOWN_ASSET_RE -]; -const depsExternal = [ - /\/node_modules\/.*\.cjs\.js$/, - /\/node_modules\/.*\.mjs$/ -]; -function guessCJSversion(id) { - if (id.match(ESM_EXT_RE)) { - for (const i of [ - id.replace(ESM_EXT_RE, ".mjs"), - id.replace(ESM_EXT_RE, ".umd.js"), - id.replace(ESM_EXT_RE, ".cjs.js"), - id.replace(ESM_EXT_RE, ".js") - ]) { - if (fs.existsSync(i)) { - return i; - } - } - } - if (id.match(ESM_FOLDER_RE)) { - for (const i of [ - id.replace(ESM_FOLDER_RE, "/umd/$1"), - id.replace(ESM_FOLDER_RE, "/cjs/$1"), - id.replace(ESM_FOLDER_RE, "/lib/$1"), - id.replace(ESM_FOLDER_RE, "/$1") - ]) { - if (fs.existsSync(i)) { - return i; - } - } - } -} -async function isValidNodeImport(id) { - const extension = pathe.extname(id); - if (BUILTIN_EXTENSIONS.has(extension)) { - return true; - } - if (extension !== ".js") { - return false; - } - id = id.replace("file:///", ""); - const package_ = await utils.findNearestPackageData(pathe.dirname(id)); - if (package_.type === "module") { - return true; - } - if (/\.(?:\w+-)?esm?(?:-\w+)?\.js$|\/esm?\//.test(id)) { - return false; - } - const code = await fs.promises.readFile(id, "utf8").catch(() => ""); - return !ESM_SYNTAX_RE.test(code); -} -const _defaultExternalizeCache = /* @__PURE__ */ new Map(); -async function shouldExternalize(id, options, cache = _defaultExternalizeCache) { - if (!cache.has(id)) { - cache.set(id, _shouldExternalize(id, options)); - } - return cache.get(id); -} -async function _shouldExternalize(id, options) { - if (utils.isNodeBuiltin(id)) { - return id; - } - if (id.startsWith("data:") || /^(?:https?:)?\/\//.test(id)) { - return id; - } - id = patchWindowsImportPath(id); - if ((options == null ? void 0 : options.cacheDir) && id.includes(options.cacheDir)) { - return id; - } - const moduleDirectories = (options == null ? void 0 : options.moduleDirectories) || ["/node_modules/"]; - if (matchExternalizePattern(id, moduleDirectories, options == null ? void 0 : options.inline)) { - return false; - } - if (matchExternalizePattern(id, moduleDirectories, options == null ? void 0 : options.external)) { - return id; - } - const isLibraryModule = moduleDirectories.some((dir) => id.includes(dir)); - const guessCJS = isLibraryModule && (options == null ? void 0 : options.fallbackCJS); - id = guessCJS ? guessCJSversion(id) || id : id; - if (matchExternalizePattern(id, moduleDirectories, defaultInline)) { - return false; - } - if (matchExternalizePattern(id, moduleDirectories, depsExternal)) { - return id; - } - if (isLibraryModule && await isValidNodeImport(id)) { - return id; - } - return false; -} -function matchExternalizePattern(id, moduleDirectories, patterns) { - if (patterns == null) { - return false; - } - if (patterns === true) { - return true; - } - for (const ex of patterns) { - if (typeof ex === "string") { - if (moduleDirectories.some((dir) => id.includes(pathe.join(dir, ex)))) { - return true; - } - } else { - if (ex.test(id)) { - return true; - } - } - } - return false; -} -function patchWindowsImportPath(path) { - if (path.match(/^\w:\\/)) { - return `file:///${utils.slash(path)}`; - } else if (path.match(/^\w:\//)) { - return `file:///${path}`; - } else { - return path; - } -} - -function hashCode(s) { - return s.split("").reduce((a, b) => { - a = (a << 5) - a + b.charCodeAt(0); - return a & a; - }, 0); -} -class Debugger { - constructor(root, options) { - this.options = options; - if (options.dumpModules) { - this.dumpDir = pathe.resolve( - root, - options.dumpModules === true ? ".vite-node/dump" : options.dumpModules - ); - } - if (this.dumpDir) { - if (options.loadDumppedModules) { - console.info( - c.gray(`[vite-node] [debug] load modules from ${this.dumpDir}`) - ); - } else { - console.info( - c.gray(`[vite-node] [debug] dump modules to ${this.dumpDir}`) - ); - } - } - this.initPromise = this.clearDump(); - } - dumpDir; - initPromise; - externalizeMap = /* @__PURE__ */ new Map(); - async clearDump() { - if (!this.dumpDir) { - return; - } - if (!this.options.loadDumppedModules && fs.existsSync(this.dumpDir)) { - await fs.promises.rm(this.dumpDir, { recursive: true, force: true }); - } - await fs.promises.mkdir(this.dumpDir, { recursive: true }); - } - encodeId(id) { - return `${id.replace(/[^\w@\-]/g, "_").replace(/_+/g, "_")}-${hashCode( - id - )}.js`; - } - async recordExternalize(id, path) { - if (!this.dumpDir) { - return; - } - this.externalizeMap.set(id, path); - await this.writeInfo(); - } - async dumpFile(id, result) { - if (!result || !this.dumpDir) { - return; - } - await this.initPromise; - const name = this.encodeId(id); - return await fs.promises.writeFile( - pathe.join(this.dumpDir, name), - `// ${id.replace(/\0/g, "\\0")} -${result.code}`, - "utf-8" - ); - } - async loadDump(id) { - if (!this.dumpDir) { - return null; - } - await this.initPromise; - const name = this.encodeId(id); - const path = pathe.join(this.dumpDir, name); - if (!fs.existsSync(path)) { - return null; - } - const code = await fs.promises.readFile(path, "utf-8"); - return { - code: code.replace(/^\/\/.*\n/, ""), - map: void 0 - }; - } - async writeInfo() { - if (!this.dumpDir) { - return; - } - const info = JSON.stringify( - { - time: (/* @__PURE__ */ new Date()).toLocaleString(), - externalize: Object.fromEntries(this.externalizeMap.entries()) - }, - null, - 2 - ); - return fs.promises.writeFile(pathe.join(this.dumpDir, "info.json"), info, "utf-8"); - } -} - -const debugRequest = createDebug("vite-node:server:request"); -class ViteNodeServer { - constructor(server, options = {}) { - this.server = server; - this.options = options; - var _a, _b, _c; - const ssrOptions = server.config.ssr; - options.deps ?? (options.deps = {}); - options.deps.cacheDir = pathe.relative( - server.config.root, - options.deps.cacheDir || server.config.cacheDir - ); - if (ssrOptions) { - if (ssrOptions.noExternal === true) { - (_a = options.deps).inline ?? (_a.inline = true); - } else if (options.deps.inline !== true) { - (_b = options.deps).inline ?? (_b.inline = []); - const inline = options.deps.inline; - options.deps.inline.push( - ...utils.toArray(ssrOptions.noExternal).filter( - (dep) => !inline.includes(dep) - ) - ); - } - } - if (process.env.VITE_NODE_DEBUG_DUMP) { - options.debug = Object.assign( - { - dumpModules: !!process.env.VITE_NODE_DEBUG_DUMP, - loadDumppedModules: process.env.VITE_NODE_DEBUG_DUMP === "load" - }, - options.debug ?? {} - ); - } - if (options.debug) { - this.debugger = new Debugger(server.config.root, options.debug); - } - (_c = options.deps).moduleDirectories ?? (_c.moduleDirectories = []); - const envValue = process.env.VITE_NODE_DEPS_MODULE_DIRECTORIES || process.env.npm_config_VITE_NODE_DEPS_MODULE_DIRECTORIES; - const customModuleDirectories = envValue == null ? void 0 : envValue.split(","); - if (customModuleDirectories) { - options.deps.moduleDirectories.push(...customModuleDirectories); - } - options.deps.moduleDirectories = options.deps.moduleDirectories.map( - (dir) => { - if (!dir.startsWith("/")) { - dir = `/${dir}`; - } - if (!dir.endsWith("/")) { - dir += "/"; - } - return pathe.normalize(dir); - } - ); - if (!options.deps.moduleDirectories.includes("/node_modules/")) { - options.deps.moduleDirectories.push("/node_modules/"); - } - } - fetchPromiseMap = { - ssr: /* @__PURE__ */ new Map(), - web: /* @__PURE__ */ new Map() - }; - transformPromiseMap = { - ssr: /* @__PURE__ */ new Map(), - web: /* @__PURE__ */ new Map() - }; - durations = { - ssr: /* @__PURE__ */ new Map(), - web: /* @__PURE__ */ new Map() - }; - existingOptimizedDeps = /* @__PURE__ */ new Set(); - fetchCaches = { - ssr: /* @__PURE__ */ new Map(), - web: /* @__PURE__ */ new Map() - }; - fetchCache = /* @__PURE__ */ new Map(); - externalizeCache = /* @__PURE__ */ new Map(); - debugger; - shouldExternalize(id) { - return shouldExternalize(id, this.options.deps, this.externalizeCache); - } - getTotalDuration() { - const ssrDurations = [...this.durations.ssr.values()].flat(); - const webDurations = [...this.durations.web.values()].flat(); - return [...ssrDurations, ...webDurations].reduce((a, b) => a + b, 0); - } - async ensureExists(id) { - if (this.existingOptimizedDeps.has(id)) { - return true; - } - if (fs.existsSync(id)) { - this.existingOptimizedDeps.add(id); - return true; - } - return new Promise((resolve2) => { - setTimeout(() => { - this.ensureExists(id).then(() => { - resolve2(true); - }); - }); - }); - } - async resolveId(id, importer, transformMode) { - if (importer && !importer.startsWith(utils.withTrailingSlash(this.server.config.root))) { - importer = pathe.resolve(this.server.config.root, importer); - } - const mode = transformMode ?? (importer && this.getTransformMode(importer) || "ssr"); - return this.server.pluginContainer.resolveId(id, importer, { - ssr: mode === "ssr" - }); - } - getSourceMap(source) { - var _a, _b; - const fetchResult = (_a = this.fetchCache.get(source)) == null ? void 0 : _a.result; - if (fetchResult == null ? void 0 : fetchResult.map) { - return fetchResult.map; - } - const ssrTransformResult = (_b = this.server.moduleGraph.getModuleById(source)) == null ? void 0 : _b.ssrTransformResult; - return (ssrTransformResult == null ? void 0 : ssrTransformResult.map) || null; - } - assertMode(mode) { - assert( - mode === "web" || mode === "ssr", - `"transformMode" can only be "web" or "ssr", received "${mode}".` - ); - } - async fetchModule(id, transformMode) { - const mode = transformMode || this.getTransformMode(id); - return this.fetchResult(id, mode).then((r) => { - return this.options.sourcemap !== true ? { ...r, map: void 0 } : r; - }); - } - async fetchResult(id, mode) { - const moduleId = utils.normalizeModuleId(id); - this.assertMode(mode); - const promiseMap = this.fetchPromiseMap[mode]; - if (!promiseMap.has(moduleId)) { - promiseMap.set( - moduleId, - this._fetchModule(moduleId, mode).finally(() => { - promiseMap.delete(moduleId); - }) - ); - } - return promiseMap.get(moduleId); - } - async transformRequest(id, filepath = id, transformMode) { - const mode = transformMode || this.getTransformMode(id); - this.assertMode(mode); - const promiseMap = this.transformPromiseMap[mode]; - if (!promiseMap.has(id)) { - promiseMap.set( - id, - this._transformRequest(id, filepath, mode).finally(() => { - promiseMap.delete(id); - }) - ); - } - return promiseMap.get(id); - } - async transformModule(id, transformMode) { - if (transformMode !== "web") { - throw new Error( - '`transformModule` only supports `transformMode: "web"`.' - ); - } - const normalizedId = utils.normalizeModuleId(id); - const mod = this.server.moduleGraph.getModuleById(normalizedId); - const result = (mod == null ? void 0 : mod.transformResult) || await this.server.transformRequest(normalizedId); - return { - code: result == null ? void 0 : result.code - }; - } - getTransformMode(id) { - var _a, _b, _c, _d; - const withoutQuery = id.split("?")[0]; - if ((_b = (_a = this.options.transformMode) == null ? void 0 : _a.web) == null ? void 0 : _b.some((r) => withoutQuery.match(r))) { - return "web"; - } - if ((_d = (_c = this.options.transformMode) == null ? void 0 : _c.ssr) == null ? void 0 : _d.some((r) => withoutQuery.match(r))) { - return "ssr"; - } - if (withoutQuery.match(/\.([cm]?[jt]sx?|json)$/)) { - return "ssr"; - } - return "web"; - } - getChangedModule(id, file) { - const module = this.server.moduleGraph.getModuleById(id) || this.server.moduleGraph.getModuleById(file); - if (module) { - return module; - } - const _modules = this.server.moduleGraph.getModulesByFile(file); - if (!_modules || !_modules.size) { - return null; - } - const modules = [..._modules]; - let mod = modules[0]; - let latestMax = -1; - for (const m of _modules) { - const timestamp = Math.max( - m.lastHMRTimestamp, - m.lastInvalidationTimestamp - ); - if (timestamp > latestMax) { - latestMax = timestamp; - mod = m; - } - } - return mod; - } - async _fetchModule(id, transformMode) { - var _a, _b; - let result; - const cacheDir = (_a = this.options.deps) == null ? void 0 : _a.cacheDir; - if (cacheDir && id.includes(cacheDir)) { - if (!id.startsWith(utils.withTrailingSlash(this.server.config.root))) { - id = pathe.join(this.server.config.root, id); - } - const timeout = setTimeout(() => { - throw new Error( - `ViteNodeServer: ${id} not found. This is a bug, please report it.` - ); - }, 5e3); - await this.ensureExists(id); - clearTimeout(timeout); - } - const { path: filePath } = utils.toFilePath(id, this.server.config.root); - const moduleNode = this.getChangedModule(id, filePath); - const cache = this.fetchCaches[transformMode].get(filePath); - const timestamp = moduleNode ? Math.max( - moduleNode.lastHMRTimestamp, - moduleNode.lastInvalidationTimestamp - ) : 0; - if (cache && (timestamp === 0 || cache.timestamp >= timestamp)) { - return cache.result; - } - const time = Date.now(); - const externalize = await this.shouldExternalize(filePath); - let duration; - if (externalize) { - result = { externalize }; - (_b = this.debugger) == null ? void 0 : _b.recordExternalize(id, externalize); - } else { - const start = node_perf_hooks.performance.now(); - const r = await this._transformRequest(id, filePath, transformMode); - duration = node_perf_hooks.performance.now() - start; - result = { code: r == null ? void 0 : r.code, map: r == null ? void 0 : r.map }; - } - const cacheEntry = { - duration, - timestamp: time, - result - }; - const durations = this.durations[transformMode].get(filePath) || []; - this.durations[transformMode].set(filePath, [...durations, duration ?? 0]); - this.fetchCaches[transformMode].set(filePath, cacheEntry); - this.fetchCache.set(filePath, cacheEntry); - return result; - } - async processTransformResult(filepath, result) { - const mod = this.server.moduleGraph.getModuleById(filepath); - return sourceMap.withInlineSourcemap(result, { - filepath: (mod == null ? void 0 : mod.file) || filepath, - root: this.server.config.root - }); - } - async _transformRequest(id, filepath, transformMode) { - var _a, _b, _c, _d; - debugRequest(id); - let result = null; - if ((_a = this.options.debug) == null ? void 0 : _a.loadDumppedModules) { - result = await ((_b = this.debugger) == null ? void 0 : _b.loadDump(id)) ?? null; - if (result) { - return result; - } - } - if (transformMode === "web") { - result = await this.server.transformRequest(id); - if (result) { - result = await this.server.ssrTransform(result.code, result.map, id); - } - } else { - result = await this.server.transformRequest(id, { ssr: true }); - } - const sourcemap = this.options.sourcemap ?? "inline"; - if (sourcemap === "inline" && result && !id.includes("node_modules")) { - result = await this.processTransformResult(filepath, result); - } - if ((_c = this.options.debug) == null ? void 0 : _c.dumpModules) { - await ((_d = this.debugger) == null ? void 0 : _d.dumpFile(id, result)); - } - return result; - } -} - -exports.ViteNodeServer = ViteNodeServer; -exports.guessCJSversion = guessCJSversion; -exports.shouldExternalize = shouldExternalize; diff --git a/node_modules/vite-node/dist/server.d.ts b/node_modules/vite-node/dist/server.d.ts deleted file mode 100644 index 5d4230ac..00000000 --- a/node_modules/vite-node/dist/server.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { TransformResult, ViteDevServer } from 'vite'; -import { D as DebuggerOptions, c as DepsHandlingOptions, V as ViteNodeServerOptions, d as ViteNodeResolveId, F as FetchResult } from './index-CCsqCcr7.js'; -import { E as EncodedSourceMap } from './trace-mapping.d-DLVdEqOp.js'; - -declare class Debugger { - options: DebuggerOptions; - dumpDir: string | undefined; - initPromise: Promise | undefined; - externalizeMap: Map; - constructor(root: string, options: DebuggerOptions); - clearDump(): Promise; - encodeId(id: string): string; - recordExternalize(id: string, path: string): Promise; - dumpFile(id: string, result: TransformResult | null): Promise; - loadDump(id: string): Promise; - writeInfo(): Promise; -} - -declare function guessCJSversion(id: string): string | undefined; -declare function shouldExternalize(id: string, options?: DepsHandlingOptions, cache?: Map>): Promise; - -interface FetchCache { - duration?: number; - timestamp: number; - result: FetchResult; -} -declare class ViteNodeServer { - server: ViteDevServer; - options: ViteNodeServerOptions; - private fetchPromiseMap; - private transformPromiseMap; - private durations; - private existingOptimizedDeps; - fetchCaches: { - ssr: Map; - web: Map; - }; - fetchCache: Map; - externalizeCache: Map>; - debugger?: Debugger; - constructor(server: ViteDevServer, options?: ViteNodeServerOptions); - shouldExternalize(id: string): Promise; - getTotalDuration(): number; - private ensureExists; - resolveId(id: string, importer?: string, transformMode?: 'web' | 'ssr'): Promise; - getSourceMap(source: string): EncodedSourceMap | null; - private assertMode; - fetchModule(id: string, transformMode?: 'web' | 'ssr'): Promise; - fetchResult(id: string, mode: 'web' | 'ssr'): Promise; - transformRequest(id: string, filepath?: string, transformMode?: 'web' | 'ssr'): Promise; - transformModule(id: string, transformMode?: 'web' | 'ssr'): Promise<{ - code: string | undefined; - }>; - getTransformMode(id: string): "web" | "ssr"; - private getChangedModule; - private _fetchModule; - protected processTransformResult(filepath: string, result: TransformResult): Promise; - private _transformRequest; -} - -export { ViteNodeServer, guessCJSversion, shouldExternalize }; diff --git a/node_modules/vite-node/dist/server.mjs b/node_modules/vite-node/dist/server.mjs deleted file mode 100644 index 443c8b43..00000000 --- a/node_modules/vite-node/dist/server.mjs +++ /dev/null @@ -1,537 +0,0 @@ -import { performance } from 'node:perf_hooks'; -import { existsSync, promises } from 'node:fs'; -import assert from 'node:assert'; -import { join, extname, dirname, resolve, relative, normalize } from 'pathe'; -import createDebug from 'debug'; -import { isNodeBuiltin, slash, findNearestPackageData, toArray, withTrailingSlash, normalizeModuleId, toFilePath } from './utils.mjs'; -import { KNOWN_ASSET_RE } from './constants.mjs'; -import c from 'tinyrainbow'; -import { withInlineSourcemap } from './source-map.mjs'; -import 'node:url'; -import 'node:module'; -import 'node:path'; - -const BUILTIN_EXTENSIONS = /* @__PURE__ */ new Set([".mjs", ".cjs", ".node", ".wasm"]); -const ESM_SYNTAX_RE = /(?:[\s;]|^)(?:import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m; -const ESM_EXT_RE = /\.(es|esm|esm-browser|esm-bundler|es6|module)\.js$/; -const ESM_FOLDER_RE = /\/(es|esm)\/(.*\.js)$/; -const defaultInline = [ - /virtual:/, - /\.[mc]?ts$/, - // special Vite query strings - /[?&](init|raw|url|inline)\b/, - // Vite returns a string for assets imports, even if it's inside "node_modules" - KNOWN_ASSET_RE -]; -const depsExternal = [ - /\/node_modules\/.*\.cjs\.js$/, - /\/node_modules\/.*\.mjs$/ -]; -function guessCJSversion(id) { - if (id.match(ESM_EXT_RE)) { - for (const i of [ - id.replace(ESM_EXT_RE, ".mjs"), - id.replace(ESM_EXT_RE, ".umd.js"), - id.replace(ESM_EXT_RE, ".cjs.js"), - id.replace(ESM_EXT_RE, ".js") - ]) { - if (existsSync(i)) { - return i; - } - } - } - if (id.match(ESM_FOLDER_RE)) { - for (const i of [ - id.replace(ESM_FOLDER_RE, "/umd/$1"), - id.replace(ESM_FOLDER_RE, "/cjs/$1"), - id.replace(ESM_FOLDER_RE, "/lib/$1"), - id.replace(ESM_FOLDER_RE, "/$1") - ]) { - if (existsSync(i)) { - return i; - } - } - } -} -async function isValidNodeImport(id) { - const extension = extname(id); - if (BUILTIN_EXTENSIONS.has(extension)) { - return true; - } - if (extension !== ".js") { - return false; - } - id = id.replace("file:///", ""); - const package_ = await findNearestPackageData(dirname(id)); - if (package_.type === "module") { - return true; - } - if (/\.(?:\w+-)?esm?(?:-\w+)?\.js$|\/esm?\//.test(id)) { - return false; - } - const code = await promises.readFile(id, "utf8").catch(() => ""); - return !ESM_SYNTAX_RE.test(code); -} -const _defaultExternalizeCache = /* @__PURE__ */ new Map(); -async function shouldExternalize(id, options, cache = _defaultExternalizeCache) { - if (!cache.has(id)) { - cache.set(id, _shouldExternalize(id, options)); - } - return cache.get(id); -} -async function _shouldExternalize(id, options) { - if (isNodeBuiltin(id)) { - return id; - } - if (id.startsWith("data:") || /^(?:https?:)?\/\//.test(id)) { - return id; - } - id = patchWindowsImportPath(id); - if ((options == null ? void 0 : options.cacheDir) && id.includes(options.cacheDir)) { - return id; - } - const moduleDirectories = (options == null ? void 0 : options.moduleDirectories) || ["/node_modules/"]; - if (matchExternalizePattern(id, moduleDirectories, options == null ? void 0 : options.inline)) { - return false; - } - if (matchExternalizePattern(id, moduleDirectories, options == null ? void 0 : options.external)) { - return id; - } - const isLibraryModule = moduleDirectories.some((dir) => id.includes(dir)); - const guessCJS = isLibraryModule && (options == null ? void 0 : options.fallbackCJS); - id = guessCJS ? guessCJSversion(id) || id : id; - if (matchExternalizePattern(id, moduleDirectories, defaultInline)) { - return false; - } - if (matchExternalizePattern(id, moduleDirectories, depsExternal)) { - return id; - } - if (isLibraryModule && await isValidNodeImport(id)) { - return id; - } - return false; -} -function matchExternalizePattern(id, moduleDirectories, patterns) { - if (patterns == null) { - return false; - } - if (patterns === true) { - return true; - } - for (const ex of patterns) { - if (typeof ex === "string") { - if (moduleDirectories.some((dir) => id.includes(join(dir, ex)))) { - return true; - } - } else { - if (ex.test(id)) { - return true; - } - } - } - return false; -} -function patchWindowsImportPath(path) { - if (path.match(/^\w:\\/)) { - return `file:///${slash(path)}`; - } else if (path.match(/^\w:\//)) { - return `file:///${path}`; - } else { - return path; - } -} - -function hashCode(s) { - return s.split("").reduce((a, b) => { - a = (a << 5) - a + b.charCodeAt(0); - return a & a; - }, 0); -} -class Debugger { - constructor(root, options) { - this.options = options; - if (options.dumpModules) { - this.dumpDir = resolve( - root, - options.dumpModules === true ? ".vite-node/dump" : options.dumpModules - ); - } - if (this.dumpDir) { - if (options.loadDumppedModules) { - console.info( - c.gray(`[vite-node] [debug] load modules from ${this.dumpDir}`) - ); - } else { - console.info( - c.gray(`[vite-node] [debug] dump modules to ${this.dumpDir}`) - ); - } - } - this.initPromise = this.clearDump(); - } - dumpDir; - initPromise; - externalizeMap = /* @__PURE__ */ new Map(); - async clearDump() { - if (!this.dumpDir) { - return; - } - if (!this.options.loadDumppedModules && existsSync(this.dumpDir)) { - await promises.rm(this.dumpDir, { recursive: true, force: true }); - } - await promises.mkdir(this.dumpDir, { recursive: true }); - } - encodeId(id) { - return `${id.replace(/[^\w@\-]/g, "_").replace(/_+/g, "_")}-${hashCode( - id - )}.js`; - } - async recordExternalize(id, path) { - if (!this.dumpDir) { - return; - } - this.externalizeMap.set(id, path); - await this.writeInfo(); - } - async dumpFile(id, result) { - if (!result || !this.dumpDir) { - return; - } - await this.initPromise; - const name = this.encodeId(id); - return await promises.writeFile( - join(this.dumpDir, name), - `// ${id.replace(/\0/g, "\\0")} -${result.code}`, - "utf-8" - ); - } - async loadDump(id) { - if (!this.dumpDir) { - return null; - } - await this.initPromise; - const name = this.encodeId(id); - const path = join(this.dumpDir, name); - if (!existsSync(path)) { - return null; - } - const code = await promises.readFile(path, "utf-8"); - return { - code: code.replace(/^\/\/.*\n/, ""), - map: void 0 - }; - } - async writeInfo() { - if (!this.dumpDir) { - return; - } - const info = JSON.stringify( - { - time: (/* @__PURE__ */ new Date()).toLocaleString(), - externalize: Object.fromEntries(this.externalizeMap.entries()) - }, - null, - 2 - ); - return promises.writeFile(join(this.dumpDir, "info.json"), info, "utf-8"); - } -} - -const debugRequest = createDebug("vite-node:server:request"); -class ViteNodeServer { - constructor(server, options = {}) { - this.server = server; - this.options = options; - var _a, _b, _c; - const ssrOptions = server.config.ssr; - options.deps ?? (options.deps = {}); - options.deps.cacheDir = relative( - server.config.root, - options.deps.cacheDir || server.config.cacheDir - ); - if (ssrOptions) { - if (ssrOptions.noExternal === true) { - (_a = options.deps).inline ?? (_a.inline = true); - } else if (options.deps.inline !== true) { - (_b = options.deps).inline ?? (_b.inline = []); - const inline = options.deps.inline; - options.deps.inline.push( - ...toArray(ssrOptions.noExternal).filter( - (dep) => !inline.includes(dep) - ) - ); - } - } - if (process.env.VITE_NODE_DEBUG_DUMP) { - options.debug = Object.assign( - { - dumpModules: !!process.env.VITE_NODE_DEBUG_DUMP, - loadDumppedModules: process.env.VITE_NODE_DEBUG_DUMP === "load" - }, - options.debug ?? {} - ); - } - if (options.debug) { - this.debugger = new Debugger(server.config.root, options.debug); - } - (_c = options.deps).moduleDirectories ?? (_c.moduleDirectories = []); - const envValue = process.env.VITE_NODE_DEPS_MODULE_DIRECTORIES || process.env.npm_config_VITE_NODE_DEPS_MODULE_DIRECTORIES; - const customModuleDirectories = envValue == null ? void 0 : envValue.split(","); - if (customModuleDirectories) { - options.deps.moduleDirectories.push(...customModuleDirectories); - } - options.deps.moduleDirectories = options.deps.moduleDirectories.map( - (dir) => { - if (!dir.startsWith("/")) { - dir = `/${dir}`; - } - if (!dir.endsWith("/")) { - dir += "/"; - } - return normalize(dir); - } - ); - if (!options.deps.moduleDirectories.includes("/node_modules/")) { - options.deps.moduleDirectories.push("/node_modules/"); - } - } - fetchPromiseMap = { - ssr: /* @__PURE__ */ new Map(), - web: /* @__PURE__ */ new Map() - }; - transformPromiseMap = { - ssr: /* @__PURE__ */ new Map(), - web: /* @__PURE__ */ new Map() - }; - durations = { - ssr: /* @__PURE__ */ new Map(), - web: /* @__PURE__ */ new Map() - }; - existingOptimizedDeps = /* @__PURE__ */ new Set(); - fetchCaches = { - ssr: /* @__PURE__ */ new Map(), - web: /* @__PURE__ */ new Map() - }; - fetchCache = /* @__PURE__ */ new Map(); - externalizeCache = /* @__PURE__ */ new Map(); - debugger; - shouldExternalize(id) { - return shouldExternalize(id, this.options.deps, this.externalizeCache); - } - getTotalDuration() { - const ssrDurations = [...this.durations.ssr.values()].flat(); - const webDurations = [...this.durations.web.values()].flat(); - return [...ssrDurations, ...webDurations].reduce((a, b) => a + b, 0); - } - async ensureExists(id) { - if (this.existingOptimizedDeps.has(id)) { - return true; - } - if (existsSync(id)) { - this.existingOptimizedDeps.add(id); - return true; - } - return new Promise((resolve2) => { - setTimeout(() => { - this.ensureExists(id).then(() => { - resolve2(true); - }); - }); - }); - } - async resolveId(id, importer, transformMode) { - if (importer && !importer.startsWith(withTrailingSlash(this.server.config.root))) { - importer = resolve(this.server.config.root, importer); - } - const mode = transformMode ?? (importer && this.getTransformMode(importer) || "ssr"); - return this.server.pluginContainer.resolveId(id, importer, { - ssr: mode === "ssr" - }); - } - getSourceMap(source) { - var _a, _b; - const fetchResult = (_a = this.fetchCache.get(source)) == null ? void 0 : _a.result; - if (fetchResult == null ? void 0 : fetchResult.map) { - return fetchResult.map; - } - const ssrTransformResult = (_b = this.server.moduleGraph.getModuleById(source)) == null ? void 0 : _b.ssrTransformResult; - return (ssrTransformResult == null ? void 0 : ssrTransformResult.map) || null; - } - assertMode(mode) { - assert( - mode === "web" || mode === "ssr", - `"transformMode" can only be "web" or "ssr", received "${mode}".` - ); - } - async fetchModule(id, transformMode) { - const mode = transformMode || this.getTransformMode(id); - return this.fetchResult(id, mode).then((r) => { - return this.options.sourcemap !== true ? { ...r, map: void 0 } : r; - }); - } - async fetchResult(id, mode) { - const moduleId = normalizeModuleId(id); - this.assertMode(mode); - const promiseMap = this.fetchPromiseMap[mode]; - if (!promiseMap.has(moduleId)) { - promiseMap.set( - moduleId, - this._fetchModule(moduleId, mode).finally(() => { - promiseMap.delete(moduleId); - }) - ); - } - return promiseMap.get(moduleId); - } - async transformRequest(id, filepath = id, transformMode) { - const mode = transformMode || this.getTransformMode(id); - this.assertMode(mode); - const promiseMap = this.transformPromiseMap[mode]; - if (!promiseMap.has(id)) { - promiseMap.set( - id, - this._transformRequest(id, filepath, mode).finally(() => { - promiseMap.delete(id); - }) - ); - } - return promiseMap.get(id); - } - async transformModule(id, transformMode) { - if (transformMode !== "web") { - throw new Error( - '`transformModule` only supports `transformMode: "web"`.' - ); - } - const normalizedId = normalizeModuleId(id); - const mod = this.server.moduleGraph.getModuleById(normalizedId); - const result = (mod == null ? void 0 : mod.transformResult) || await this.server.transformRequest(normalizedId); - return { - code: result == null ? void 0 : result.code - }; - } - getTransformMode(id) { - var _a, _b, _c, _d; - const withoutQuery = id.split("?")[0]; - if ((_b = (_a = this.options.transformMode) == null ? void 0 : _a.web) == null ? void 0 : _b.some((r) => withoutQuery.match(r))) { - return "web"; - } - if ((_d = (_c = this.options.transformMode) == null ? void 0 : _c.ssr) == null ? void 0 : _d.some((r) => withoutQuery.match(r))) { - return "ssr"; - } - if (withoutQuery.match(/\.([cm]?[jt]sx?|json)$/)) { - return "ssr"; - } - return "web"; - } - getChangedModule(id, file) { - const module = this.server.moduleGraph.getModuleById(id) || this.server.moduleGraph.getModuleById(file); - if (module) { - return module; - } - const _modules = this.server.moduleGraph.getModulesByFile(file); - if (!_modules || !_modules.size) { - return null; - } - const modules = [..._modules]; - let mod = modules[0]; - let latestMax = -1; - for (const m of _modules) { - const timestamp = Math.max( - m.lastHMRTimestamp, - m.lastInvalidationTimestamp - ); - if (timestamp > latestMax) { - latestMax = timestamp; - mod = m; - } - } - return mod; - } - async _fetchModule(id, transformMode) { - var _a, _b; - let result; - const cacheDir = (_a = this.options.deps) == null ? void 0 : _a.cacheDir; - if (cacheDir && id.includes(cacheDir)) { - if (!id.startsWith(withTrailingSlash(this.server.config.root))) { - id = join(this.server.config.root, id); - } - const timeout = setTimeout(() => { - throw new Error( - `ViteNodeServer: ${id} not found. This is a bug, please report it.` - ); - }, 5e3); - await this.ensureExists(id); - clearTimeout(timeout); - } - const { path: filePath } = toFilePath(id, this.server.config.root); - const moduleNode = this.getChangedModule(id, filePath); - const cache = this.fetchCaches[transformMode].get(filePath); - const timestamp = moduleNode ? Math.max( - moduleNode.lastHMRTimestamp, - moduleNode.lastInvalidationTimestamp - ) : 0; - if (cache && (timestamp === 0 || cache.timestamp >= timestamp)) { - return cache.result; - } - const time = Date.now(); - const externalize = await this.shouldExternalize(filePath); - let duration; - if (externalize) { - result = { externalize }; - (_b = this.debugger) == null ? void 0 : _b.recordExternalize(id, externalize); - } else { - const start = performance.now(); - const r = await this._transformRequest(id, filePath, transformMode); - duration = performance.now() - start; - result = { code: r == null ? void 0 : r.code, map: r == null ? void 0 : r.map }; - } - const cacheEntry = { - duration, - timestamp: time, - result - }; - const durations = this.durations[transformMode].get(filePath) || []; - this.durations[transformMode].set(filePath, [...durations, duration ?? 0]); - this.fetchCaches[transformMode].set(filePath, cacheEntry); - this.fetchCache.set(filePath, cacheEntry); - return result; - } - async processTransformResult(filepath, result) { - const mod = this.server.moduleGraph.getModuleById(filepath); - return withInlineSourcemap(result, { - filepath: (mod == null ? void 0 : mod.file) || filepath, - root: this.server.config.root - }); - } - async _transformRequest(id, filepath, transformMode) { - var _a, _b, _c, _d; - debugRequest(id); - let result = null; - if ((_a = this.options.debug) == null ? void 0 : _a.loadDumppedModules) { - result = await ((_b = this.debugger) == null ? void 0 : _b.loadDump(id)) ?? null; - if (result) { - return result; - } - } - if (transformMode === "web") { - result = await this.server.transformRequest(id); - if (result) { - result = await this.server.ssrTransform(result.code, result.map, id); - } - } else { - result = await this.server.transformRequest(id, { ssr: true }); - } - const sourcemap = this.options.sourcemap ?? "inline"; - if (sourcemap === "inline" && result && !id.includes("node_modules")) { - result = await this.processTransformResult(filepath, result); - } - if ((_c = this.options.debug) == null ? void 0 : _c.dumpModules) { - await ((_d = this.debugger) == null ? void 0 : _d.dumpFile(id, result)); - } - return result; - } -} - -export { ViteNodeServer, guessCJSversion, shouldExternalize }; diff --git a/node_modules/vite-node/dist/source-map.cjs b/node_modules/vite-node/dist/source-map.cjs deleted file mode 100644 index 944b28f6..00000000 --- a/node_modules/vite-node/dist/source-map.cjs +++ /dev/null @@ -1,958 +0,0 @@ -'use strict'; - -var pathe = require('pathe'); -var utils = require('./utils.cjs'); -var path = require('node:path'); -var fs = require('node:fs'); -require('node:url'); -require('node:module'); - -const comma = ','.charCodeAt(0); -const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; -const intToChar = new Uint8Array(64); // 64 possible chars. -const charToInt = new Uint8Array(128); // z is 122 in ASCII -for (let i = 0; i < chars.length; i++) { - const c = chars.charCodeAt(i); - intToChar[i] = c; - charToInt[c] = i; -} -function decode(mappings) { - const state = new Int32Array(5); - const decoded = []; - let index = 0; - do { - const semi = indexOf(mappings, index); - const line = []; - let sorted = true; - let lastCol = 0; - state[0] = 0; - for (let i = index; i < semi; i++) { - let seg; - i = decodeInteger(mappings, i, state, 0); // genColumn - const col = state[0]; - if (col < lastCol) - sorted = false; - lastCol = col; - if (hasMoreVlq(mappings, i, semi)) { - i = decodeInteger(mappings, i, state, 1); // sourcesIndex - i = decodeInteger(mappings, i, state, 2); // sourceLine - i = decodeInteger(mappings, i, state, 3); // sourceColumn - if (hasMoreVlq(mappings, i, semi)) { - i = decodeInteger(mappings, i, state, 4); // namesIndex - seg = [col, state[1], state[2], state[3], state[4]]; - } - else { - seg = [col, state[1], state[2], state[3]]; - } - } - else { - seg = [col]; - } - line.push(seg); - } - if (!sorted) - sort(line); - decoded.push(line); - index = semi + 1; - } while (index <= mappings.length); - return decoded; -} -function indexOf(mappings, index) { - const idx = mappings.indexOf(';', index); - return idx === -1 ? mappings.length : idx; -} -function decodeInteger(mappings, pos, state, j) { - let value = 0; - let shift = 0; - let integer = 0; - do { - const c = mappings.charCodeAt(pos++); - integer = charToInt[c]; - value |= (integer & 31) << shift; - shift += 5; - } while (integer & 32); - const shouldNegate = value & 1; - value >>>= 1; - if (shouldNegate) { - value = -0x80000000 | -value; - } - state[j] += value; - return pos; -} -function hasMoreVlq(mappings, i, length) { - if (i >= length) - return false; - return mappings.charCodeAt(i) !== comma; -} -function sort(line) { - line.sort(sortComparator$1); -} -function sortComparator$1(a, b) { - return a[0] - b[0]; -} - -// Matches the scheme of a URL, eg "http://" -const schemeRegex = /^[\w+.-]+:\/\//; -/** - * Matches the parts of a URL: - * 1. Scheme, including ":", guaranteed. - * 2. User/password, including "@", optional. - * 3. Host, guaranteed. - * 4. Port, including ":", optional. - * 5. Path, including "/", optional. - * 6. Query, including "?", optional. - * 7. Hash, including "#", optional. - */ -const urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/; -/** - * File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start - * with a leading `/`, they can have a domain (but only if they don't start with a Windows drive). - * - * 1. Host, optional. - * 2. Path, which may include "/", guaranteed. - * 3. Query, including "?", optional. - * 4. Hash, including "#", optional. - */ -const fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i; -var UrlType; -(function (UrlType) { - UrlType[UrlType["Empty"] = 1] = "Empty"; - UrlType[UrlType["Hash"] = 2] = "Hash"; - UrlType[UrlType["Query"] = 3] = "Query"; - UrlType[UrlType["RelativePath"] = 4] = "RelativePath"; - UrlType[UrlType["AbsolutePath"] = 5] = "AbsolutePath"; - UrlType[UrlType["SchemeRelative"] = 6] = "SchemeRelative"; - UrlType[UrlType["Absolute"] = 7] = "Absolute"; -})(UrlType || (UrlType = {})); -function isAbsoluteUrl(input) { - return schemeRegex.test(input); -} -function isSchemeRelativeUrl(input) { - return input.startsWith('//'); -} -function isAbsolutePath(input) { - return input.startsWith('/'); -} -function isFileUrl(input) { - return input.startsWith('file:'); -} -function isRelative(input) { - return /^[.?#]/.test(input); -} -function parseAbsoluteUrl(input) { - const match = urlRegex.exec(input); - return makeUrl(match[1], match[2] || '', match[3], match[4] || '', match[5] || '/', match[6] || '', match[7] || ''); -} -function parseFileUrl(input) { - const match = fileRegex.exec(input); - const path = match[2]; - return makeUrl('file:', '', match[1] || '', '', isAbsolutePath(path) ? path : '/' + path, match[3] || '', match[4] || ''); -} -function makeUrl(scheme, user, host, port, path, query, hash) { - return { - scheme, - user, - host, - port, - path, - query, - hash, - type: UrlType.Absolute, - }; -} -function parseUrl(input) { - if (isSchemeRelativeUrl(input)) { - const url = parseAbsoluteUrl('http:' + input); - url.scheme = ''; - url.type = UrlType.SchemeRelative; - return url; - } - if (isAbsolutePath(input)) { - const url = parseAbsoluteUrl('http://foo.com' + input); - url.scheme = ''; - url.host = ''; - url.type = UrlType.AbsolutePath; - return url; - } - if (isFileUrl(input)) - return parseFileUrl(input); - if (isAbsoluteUrl(input)) - return parseAbsoluteUrl(input); - const url = parseAbsoluteUrl('http://foo.com/' + input); - url.scheme = ''; - url.host = ''; - url.type = input - ? input.startsWith('?') - ? UrlType.Query - : input.startsWith('#') - ? UrlType.Hash - : UrlType.RelativePath - : UrlType.Empty; - return url; -} -function stripPathFilename(path) { - // If a path ends with a parent directory "..", then it's a relative path with excess parent - // paths. It's not a file, so we can't strip it. - if (path.endsWith('/..')) - return path; - const index = path.lastIndexOf('/'); - return path.slice(0, index + 1); -} -function mergePaths(url, base) { - normalizePath(base, base.type); - // If the path is just a "/", then it was an empty path to begin with (remember, we're a relative - // path). - if (url.path === '/') { - url.path = base.path; - } - else { - // Resolution happens relative to the base path's directory, not the file. - url.path = stripPathFilename(base.path) + url.path; - } -} -/** - * The path can have empty directories "//", unneeded parents "foo/..", or current directory - * "foo/.". We need to normalize to a standard representation. - */ -function normalizePath(url, type) { - const rel = type <= UrlType.RelativePath; - const pieces = url.path.split('/'); - // We need to preserve the first piece always, so that we output a leading slash. The item at - // pieces[0] is an empty string. - let pointer = 1; - // Positive is the number of real directories we've output, used for popping a parent directory. - // Eg, "foo/bar/.." will have a positive 2, and we can decrement to be left with just "foo". - let positive = 0; - // We need to keep a trailing slash if we encounter an empty directory (eg, splitting "foo/" will - // generate `["foo", ""]` pieces). And, if we pop a parent directory. But once we encounter a - // real directory, we won't need to append, unless the other conditions happen again. - let addTrailingSlash = false; - for (let i = 1; i < pieces.length; i++) { - const piece = pieces[i]; - // An empty directory, could be a trailing slash, or just a double "//" in the path. - if (!piece) { - addTrailingSlash = true; - continue; - } - // If we encounter a real directory, then we don't need to append anymore. - addTrailingSlash = false; - // A current directory, which we can always drop. - if (piece === '.') - continue; - // A parent directory, we need to see if there are any real directories we can pop. Else, we - // have an excess of parents, and we'll need to keep the "..". - if (piece === '..') { - if (positive) { - addTrailingSlash = true; - positive--; - pointer--; - } - else if (rel) { - // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute - // URL, protocol relative URL, or an absolute path, we don't need to keep excess. - pieces[pointer++] = piece; - } - continue; - } - // We've encountered a real directory. Move it to the next insertion pointer, which accounts for - // any popped or dropped directories. - pieces[pointer++] = piece; - positive++; - } - let path = ''; - for (let i = 1; i < pointer; i++) { - path += '/' + pieces[i]; - } - if (!path || (addTrailingSlash && !path.endsWith('/..'))) { - path += '/'; - } - url.path = path; -} -/** - * Attempts to resolve `input` URL/path relative to `base`. - */ -function resolve$1(input, base) { - if (!input && !base) - return ''; - const url = parseUrl(input); - let inputType = url.type; - if (base && inputType !== UrlType.Absolute) { - const baseUrl = parseUrl(base); - const baseType = baseUrl.type; - switch (inputType) { - case UrlType.Empty: - url.hash = baseUrl.hash; - // fall through - case UrlType.Hash: - url.query = baseUrl.query; - // fall through - case UrlType.Query: - case UrlType.RelativePath: - mergePaths(url, baseUrl); - // fall through - case UrlType.AbsolutePath: - // The host, user, and port are joined, you can't copy one without the others. - url.user = baseUrl.user; - url.host = baseUrl.host; - url.port = baseUrl.port; - // fall through - case UrlType.SchemeRelative: - // The input doesn't have a schema at least, so we need to copy at least that over. - url.scheme = baseUrl.scheme; - } - if (baseType > inputType) - inputType = baseType; - } - normalizePath(url, inputType); - const queryHash = url.query + url.hash; - switch (inputType) { - // This is impossible, because of the empty checks at the start of the function. - // case UrlType.Empty: - case UrlType.Hash: - case UrlType.Query: - return queryHash; - case UrlType.RelativePath: { - // The first char is always a "/", and we need it to be relative. - const path = url.path.slice(1); - if (!path) - return queryHash || '.'; - if (isRelative(base || input) && !isRelative(path)) { - // If base started with a leading ".", or there is no base and input started with a ".", - // then we need to ensure that the relative path starts with a ".". We don't know if - // relative starts with a "..", though, so check before prepending. - return './' + path + queryHash; - } - return path + queryHash; - } - case UrlType.AbsolutePath: - return url.path + queryHash; - default: - return url.scheme + '//' + url.user + url.host + url.port + url.path + queryHash; - } -} - -function resolve(input, base) { - // The base is always treated as a directory, if it's not empty. - // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327 - // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401 - if (base && !base.endsWith('/')) - base += '/'; - return resolve$1(input, base); -} - -/** - * Removes everything after the last "/", but leaves the slash. - */ -function stripFilename(path) { - if (!path) - return ''; - const index = path.lastIndexOf('/'); - return path.slice(0, index + 1); -} - -const COLUMN = 0; -const SOURCES_INDEX = 1; -const SOURCE_LINE = 2; -const SOURCE_COLUMN = 3; -const NAMES_INDEX = 4; - -function maybeSort(mappings, owned) { - const unsortedIndex = nextUnsortedSegmentLine(mappings, 0); - if (unsortedIndex === mappings.length) - return mappings; - // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If - // not, we do not want to modify the consumer's input array. - if (!owned) - mappings = mappings.slice(); - for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) { - mappings[i] = sortSegments(mappings[i], owned); - } - return mappings; -} -function nextUnsortedSegmentLine(mappings, start) { - for (let i = start; i < mappings.length; i++) { - if (!isSorted(mappings[i])) - return i; - } - return mappings.length; -} -function isSorted(line) { - for (let j = 1; j < line.length; j++) { - if (line[j][COLUMN] < line[j - 1][COLUMN]) { - return false; - } - } - return true; -} -function sortSegments(line, owned) { - if (!owned) - line = line.slice(); - return line.sort(sortComparator); -} -function sortComparator(a, b) { - return a[COLUMN] - b[COLUMN]; -} - -let found = false; -/** - * A binary search implementation that returns the index if a match is found. - * If no match is found, then the left-index (the index associated with the item that comes just - * before the desired index) is returned. To maintain proper sort order, a splice would happen at - * the next index: - * - * ```js - * const array = [1, 3]; - * const needle = 2; - * const index = binarySearch(array, needle, (item, needle) => item - needle); - * - * assert.equal(index, 0); - * array.splice(index + 1, 0, needle); - * assert.deepEqual(array, [1, 2, 3]); - * ``` - */ -function binarySearch(haystack, needle, low, high) { - while (low <= high) { - const mid = low + ((high - low) >> 1); - const cmp = haystack[mid][COLUMN] - needle; - if (cmp === 0) { - found = true; - return mid; - } - if (cmp < 0) { - low = mid + 1; - } - else { - high = mid - 1; - } - } - found = false; - return low - 1; -} -function upperBound(haystack, needle, index) { - for (let i = index + 1; i < haystack.length; index = i++) { - if (haystack[i][COLUMN] !== needle) - break; - } - return index; -} -function lowerBound(haystack, needle, index) { - for (let i = index - 1; i >= 0; index = i--) { - if (haystack[i][COLUMN] !== needle) - break; - } - return index; -} -function memoizedState() { - return { - lastKey: -1, - lastNeedle: -1, - lastIndex: -1, - }; -} -/** - * This overly complicated beast is just to record the last tested line/column and the resulting - * index, allowing us to skip a few tests if mappings are monotonically increasing. - */ -function memoizedBinarySearch(haystack, needle, state, key) { - const { lastKey, lastNeedle, lastIndex } = state; - let low = 0; - let high = haystack.length - 1; - if (key === lastKey) { - if (needle === lastNeedle) { - found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle; - return lastIndex; - } - if (needle >= lastNeedle) { - // lastIndex may be -1 if the previous needle was not found. - low = lastIndex === -1 ? 0 : lastIndex; - } - else { - high = lastIndex; - } - } - state.lastKey = key; - state.lastNeedle = needle; - return (state.lastIndex = binarySearch(haystack, needle, low, high)); -} - -const LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)'; -const COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)'; -const LEAST_UPPER_BOUND = -1; -const GREATEST_LOWER_BOUND = 1; -class TraceMap { - constructor(map, mapUrl) { - const isString = typeof map === 'string'; - if (!isString && map._decodedMemo) - return map; - const parsed = (isString ? JSON.parse(map) : map); - const { version, file, names, sourceRoot, sources, sourcesContent } = parsed; - this.version = version; - this.file = file; - this.names = names || []; - this.sourceRoot = sourceRoot; - this.sources = sources; - this.sourcesContent = sourcesContent; - this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || undefined; - const from = resolve(sourceRoot || '', stripFilename(mapUrl)); - this.resolvedSources = sources.map((s) => resolve(s || '', from)); - const { mappings } = parsed; - if (typeof mappings === 'string') { - this._encoded = mappings; - this._decoded = undefined; - } - else { - this._encoded = undefined; - this._decoded = maybeSort(mappings, isString); - } - this._decodedMemo = memoizedState(); - this._bySources = undefined; - this._bySourceMemos = undefined; - } -} -/** - * Typescript doesn't allow friend access to private fields, so this just casts the map into a type - * with public access modifiers. - */ -function cast(map) { - return map; -} -/** - * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field. - */ -function decodedMappings(map) { - var _a; - return ((_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded))); -} -/** - * A higher-level API to find the source/line/column associated with a generated line/column - * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in - * `source-map` library. - */ -function originalPositionFor(map, needle) { - let { line, column, bias } = needle; - line--; - if (line < 0) - throw new Error(LINE_GTR_ZERO); - if (column < 0) - throw new Error(COL_GTR_EQ_ZERO); - const decoded = decodedMappings(map); - // It's common for parent source maps to have pointers to lines that have no - // mapping (like a "//# sourceMappingURL=") at the end of the child file. - if (line >= decoded.length) - return OMapping(null, null, null, null); - const segments = decoded[line]; - const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND); - if (index === -1) - return OMapping(null, null, null, null); - const segment = segments[index]; - if (segment.length === 1) - return OMapping(null, null, null, null); - const { names, resolvedSources } = map; - return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null); -} -function OMapping(source, line, column, name) { - return { source, line, column, name }; -} -function traceSegmentInternal(segments, memo, line, column, bias) { - let index = memoizedBinarySearch(segments, column, memo, line); - if (found) { - index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index); - } - else if (bias === LEAST_UPPER_BOUND) - index++; - if (index === -1 || index === segments.length) - return -1; - return index; -} - -let errorFormatterInstalled = false; -const fileContentsCache = {}; -const sourceMapCache = {}; -const reSourceMap = /^data:application\/json[^,]+base64,/; -let retrieveFileHandlers = []; -let retrieveMapHandlers = []; -function globalProcessVersion() { - if (typeof process === "object" && process !== null) { - return process.version; - } else { - return ""; - } -} -function handlerExec(list) { - return function(arg) { - for (let i = 0; i < list.length; i++) { - const ret = list[i](arg); - if (ret) { - return ret; - } - } - return null; - }; -} -let retrieveFile = handlerExec(retrieveFileHandlers); -retrieveFileHandlers.push((path2) => { - path2 = path2.trim(); - if (path2.startsWith("file:")) { - path2 = path2.replace(/file:\/\/\/(\w:)?/, (protocol, drive) => { - return drive ? "" : "/"; - }); - } - if (path2 in fileContentsCache) { - return fileContentsCache[path2]; - } - let contents = ""; - try { - if (fs.existsSync(path2)) { - contents = fs.readFileSync(path2, "utf8"); - } - } catch { - } - return fileContentsCache[path2] = contents; -}); -function supportRelativeURL(file, url) { - if (!file) { - return url; - } - const dir = path.dirname(file); - const match = /^\w+:\/\/[^/]*/.exec(dir); - let protocol = match ? match[0] : ""; - const startPath = dir.slice(protocol.length); - if (protocol && /^\/\w:/.test(startPath)) { - protocol += "/"; - return protocol + path.resolve(dir.slice(protocol.length), url).replace(/\\/g, "/"); - } - return protocol + path.resolve(dir.slice(protocol.length), url); -} -function retrieveSourceMapURL(source) { - const fileData = retrieveFile(source); - if (!fileData) { - return null; - } - const re = /\/\/[@#]\s*sourceMappingURL=([^\s'"]+)\s*$|\/\*[@#]\s*sourceMappingURL=[^\s*'"]+\s*\*\/\s*$/gm; - let lastMatch, match; - while (match = re.exec(fileData)) { - lastMatch = match; - } - if (!lastMatch) { - return null; - } - return lastMatch[1]; -} -let retrieveSourceMap = handlerExec(retrieveMapHandlers); -retrieveMapHandlers.push((source) => { - let sourceMappingURL = retrieveSourceMapURL(source); - if (!sourceMappingURL) { - return null; - } - let sourceMapData; - if (reSourceMap.test(sourceMappingURL)) { - const rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(",") + 1); - sourceMapData = Buffer.from(rawData, "base64").toString(); - sourceMappingURL = source; - } else { - sourceMappingURL = supportRelativeURL(source, sourceMappingURL); - sourceMapData = retrieveFile(sourceMappingURL); - } - if (!sourceMapData) { - return null; - } - return { - url: sourceMappingURL, - map: sourceMapData - }; -}); -function mapSourcePosition(position) { - var _a; - if (!position.source) { - return position; - } - let sourceMap = sourceMapCache[position.source]; - if (!sourceMap) { - const urlAndMap = retrieveSourceMap(position.source); - if (urlAndMap && urlAndMap.map) { - sourceMap = sourceMapCache[position.source] = { - url: urlAndMap.url, - map: new TraceMap(urlAndMap.map) - }; - if ((_a = sourceMap.map) == null ? void 0 : _a.sourcesContent) { - sourceMap.map.sources.forEach((source, i) => { - var _a2, _b; - const contents = (_b = (_a2 = sourceMap.map) == null ? void 0 : _a2.sourcesContent) == null ? void 0 : _b[i]; - if (contents && source && sourceMap.url) { - const url = supportRelativeURL(sourceMap.url, source); - fileContentsCache[url] = contents; - } - }); - } - } else { - sourceMap = sourceMapCache[position.source] = { - url: null, - map: null - }; - } - } - if (sourceMap && sourceMap.map && sourceMap.url) { - const originalPosition = originalPositionFor(sourceMap.map, position); - if (originalPosition.source !== null) { - originalPosition.source = supportRelativeURL( - sourceMap.url, - originalPosition.source - ); - return originalPosition; - } - } - return position; -} -function mapEvalOrigin(origin) { - let match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin); - if (match) { - const position = mapSourcePosition({ - name: null, - source: match[2], - line: +match[3], - column: +match[4] - 1 - }); - return `eval at ${match[1]} (${position.source}:${position.line}:${position.column + 1})`; - } - match = /^eval at ([^(]+) \((.+)\)$/.exec(origin); - if (match) { - return `eval at ${match[1]} (${mapEvalOrigin(match[2])})`; - } - return origin; -} -function CallSiteToString() { - let fileName; - let fileLocation = ""; - if (this.isNative()) { - fileLocation = "native"; - } else { - fileName = this.getScriptNameOrSourceURL(); - if (!fileName && this.isEval()) { - fileLocation = this.getEvalOrigin(); - fileLocation += ", "; - } - if (fileName) { - fileLocation += fileName; - } else { - fileLocation += ""; - } - const lineNumber = this.getLineNumber(); - if (lineNumber != null) { - fileLocation += `:${lineNumber}`; - const columnNumber = this.getColumnNumber(); - if (columnNumber) { - fileLocation += `:${columnNumber}`; - } - } - } - let line = ""; - const functionName = this.getFunctionName(); - let addSuffix = true; - const isConstructor = this.isConstructor(); - const isMethodCall = !(this.isToplevel() || isConstructor); - if (isMethodCall) { - let typeName = this.getTypeName(); - if (typeName === "[object Object]") { - typeName = "null"; - } - const methodName = this.getMethodName(); - if (functionName) { - if (typeName && functionName.indexOf(typeName) !== 0) { - line += `${typeName}.`; - } - line += functionName; - if (methodName && functionName.indexOf(`.${methodName}`) !== functionName.length - methodName.length - 1) { - line += ` [as ${methodName}]`; - } - } else { - line += `${typeName}.${methodName || ""}`; - } - } else if (isConstructor) { - line += `new ${functionName || ""}`; - } else if (functionName) { - line += functionName; - } else { - line += fileLocation; - addSuffix = false; - } - if (addSuffix) { - line += ` (${fileLocation})`; - } - return line; -} -function cloneCallSite(frame) { - const object = {}; - Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach((name) => { - const key = name; - object[key] = /^(?:is|get)/.test(name) ? function() { - return frame[key].call(frame); - } : frame[key]; - }); - object.toString = CallSiteToString; - return object; -} -function wrapCallSite(frame, state) { - if (state === void 0) { - state = { nextPosition: null, curPosition: null }; - } - if (frame.isNative()) { - state.curPosition = null; - return frame; - } - const source = frame.getFileName() || frame.getScriptNameOrSourceURL(); - if (source) { - const line = frame.getLineNumber(); - let column = frame.getColumnNumber() - 1; - const noHeader = /^v(?:10\.1[6-9]|10\.[2-9]\d|10\.\d{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/; - const headerLength = noHeader.test(globalProcessVersion()) ? 0 : 62; - if (line === 1 && column > headerLength && !frame.isEval()) { - column -= headerLength; - } - const position = mapSourcePosition({ - name: null, - source, - line, - column - }); - state.curPosition = position; - frame = cloneCallSite(frame); - const originalFunctionName = frame.getFunctionName; - frame.getFunctionName = function() { - if (state.nextPosition == null) { - return originalFunctionName(); - } - return state.nextPosition.name || originalFunctionName(); - }; - frame.getFileName = function() { - return position.source ?? void 0; - }; - frame.getLineNumber = function() { - return position.line; - }; - frame.getColumnNumber = function() { - return position.column + 1; - }; - frame.getScriptNameOrSourceURL = function() { - return position.source; - }; - return frame; - } - let origin = frame.isEval() && frame.getEvalOrigin(); - if (origin) { - origin = mapEvalOrigin(origin); - frame = cloneCallSite(frame); - frame.getEvalOrigin = function() { - return origin || void 0; - }; - return frame; - } - return frame; -} -function prepareStackTrace(error, stack) { - const name = error.name || "Error"; - const message = error.message || ""; - const errorString = `${name}: ${message}`; - const state = { nextPosition: null, curPosition: null }; - const processedStack = []; - for (let i = stack.length - 1; i >= 0; i--) { - processedStack.push(` - at ${wrapCallSite(stack[i], state)}`); - state.nextPosition = state.curPosition; - } - state.curPosition = state.nextPosition = null; - return errorString + processedStack.reverse().join(""); -} -retrieveFileHandlers.slice(0); -retrieveMapHandlers.slice(0); -const install = function(options) { - options = options || {}; - if (options.retrieveFile) { - if (options.overrideRetrieveFile) { - retrieveFileHandlers.length = 0; - } - retrieveFileHandlers.unshift(options.retrieveFile); - } - if (options.retrieveSourceMap) { - if (options.overrideRetrieveSourceMap) { - retrieveMapHandlers.length = 0; - } - retrieveMapHandlers.unshift(options.retrieveSourceMap); - } - if (!errorFormatterInstalled) { - errorFormatterInstalled = true; - Error.prepareStackTrace = prepareStackTrace; - } -}; - -let SOURCEMAPPING_URL = "sourceMa"; -SOURCEMAPPING_URL += "ppingURL"; -const VITE_NODE_SOURCEMAPPING_SOURCE = "//# sourceMappingSource=vite-node"; -const VITE_NODE_SOURCEMAPPING_URL = `${SOURCEMAPPING_URL}=data:application/json;charset=utf-8`; -const VITE_NODE_SOURCEMAPPING_REGEXP = new RegExp( - `//# ${VITE_NODE_SOURCEMAPPING_URL};base64,(.+)` -); -function withInlineSourcemap(result, options) { - var _a; - const map = result.map; - let code = result.code; - if (!map || code.includes(VITE_NODE_SOURCEMAPPING_SOURCE)) { - return result; - } - if ("sources" in map) { - map.sources = (_a = map.sources) == null ? void 0 : _a.map((source) => { - if (!source) { - return source; - } - if (pathe.isAbsolute(source)) { - const actualPath = !source.startsWith(utils.withTrailingSlash(options.root)) && source.startsWith("/") ? pathe.resolve(options.root, source.slice(1)) : source; - return pathe.relative(pathe.dirname(options.filepath), actualPath); - } - return source; - }); - } - const OTHER_SOURCE_MAP_REGEXP = new RegExp( - `//# ${SOURCEMAPPING_URL}=data:application/json[^,]+base64,([A-Za-z0-9+/=]+)$`, - "gm" - ); - while (OTHER_SOURCE_MAP_REGEXP.test(code)) { - code = code.replace(OTHER_SOURCE_MAP_REGEXP, ""); - } - if (map.mappings.startsWith(";")) { - map.mappings = `AAAA,CAAA${map.mappings}`; - } - const sourceMap = Buffer.from(JSON.stringify(map), "utf-8").toString( - "base64" - ); - result.code = `${code.trimEnd()} - -${VITE_NODE_SOURCEMAPPING_SOURCE} -//# ${VITE_NODE_SOURCEMAPPING_URL};base64,${sourceMap} -`; - return result; -} -function extractSourceMap(code) { - var _a; - const mapString = (_a = code.match(VITE_NODE_SOURCEMAPPING_REGEXP)) == null ? void 0 : _a[1]; - if (mapString) { - return JSON.parse(Buffer.from(mapString, "base64").toString("utf-8")); - } - return null; -} -function installSourcemapsSupport(options) { - install({ - retrieveSourceMap(source) { - const map = options.getSourceMap(source); - if (map) { - return { - url: source, - map - }; - } - return null; - } - }); -} - -exports.extractSourceMap = extractSourceMap; -exports.installSourcemapsSupport = installSourcemapsSupport; -exports.withInlineSourcemap = withInlineSourcemap; diff --git a/node_modules/vite-node/dist/source-map.d.ts b/node_modules/vite-node/dist/source-map.d.ts deleted file mode 100644 index 80ba0abd..00000000 --- a/node_modules/vite-node/dist/source-map.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { TransformResult } from 'vite'; -import { E as EncodedSourceMap } from './trace-mapping.d-DLVdEqOp.js'; - -interface InstallSourceMapSupportOptions { - getSourceMap: (source: string) => EncodedSourceMap | null | undefined; -} -declare function withInlineSourcemap(result: TransformResult, options: { - root: string; - filepath: string; -}): TransformResult; -declare function extractSourceMap(code: string): EncodedSourceMap | null; -declare function installSourcemapsSupport(options: InstallSourceMapSupportOptions): void; - -export { extractSourceMap, installSourcemapsSupport, withInlineSourcemap }; diff --git a/node_modules/vite-node/dist/source-map.mjs b/node_modules/vite-node/dist/source-map.mjs deleted file mode 100644 index f231f791..00000000 --- a/node_modules/vite-node/dist/source-map.mjs +++ /dev/null @@ -1,954 +0,0 @@ -import { isAbsolute, resolve as resolve$2, relative, dirname } from 'pathe'; -import { withTrailingSlash } from './utils.mjs'; -import path from 'node:path'; -import fs from 'node:fs'; -import 'node:url'; -import 'node:module'; - -const comma = ','.charCodeAt(0); -const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; -const intToChar = new Uint8Array(64); // 64 possible chars. -const charToInt = new Uint8Array(128); // z is 122 in ASCII -for (let i = 0; i < chars.length; i++) { - const c = chars.charCodeAt(i); - intToChar[i] = c; - charToInt[c] = i; -} -function decode(mappings) { - const state = new Int32Array(5); - const decoded = []; - let index = 0; - do { - const semi = indexOf(mappings, index); - const line = []; - let sorted = true; - let lastCol = 0; - state[0] = 0; - for (let i = index; i < semi; i++) { - let seg; - i = decodeInteger(mappings, i, state, 0); // genColumn - const col = state[0]; - if (col < lastCol) - sorted = false; - lastCol = col; - if (hasMoreVlq(mappings, i, semi)) { - i = decodeInteger(mappings, i, state, 1); // sourcesIndex - i = decodeInteger(mappings, i, state, 2); // sourceLine - i = decodeInteger(mappings, i, state, 3); // sourceColumn - if (hasMoreVlq(mappings, i, semi)) { - i = decodeInteger(mappings, i, state, 4); // namesIndex - seg = [col, state[1], state[2], state[3], state[4]]; - } - else { - seg = [col, state[1], state[2], state[3]]; - } - } - else { - seg = [col]; - } - line.push(seg); - } - if (!sorted) - sort(line); - decoded.push(line); - index = semi + 1; - } while (index <= mappings.length); - return decoded; -} -function indexOf(mappings, index) { - const idx = mappings.indexOf(';', index); - return idx === -1 ? mappings.length : idx; -} -function decodeInteger(mappings, pos, state, j) { - let value = 0; - let shift = 0; - let integer = 0; - do { - const c = mappings.charCodeAt(pos++); - integer = charToInt[c]; - value |= (integer & 31) << shift; - shift += 5; - } while (integer & 32); - const shouldNegate = value & 1; - value >>>= 1; - if (shouldNegate) { - value = -0x80000000 | -value; - } - state[j] += value; - return pos; -} -function hasMoreVlq(mappings, i, length) { - if (i >= length) - return false; - return mappings.charCodeAt(i) !== comma; -} -function sort(line) { - line.sort(sortComparator$1); -} -function sortComparator$1(a, b) { - return a[0] - b[0]; -} - -// Matches the scheme of a URL, eg "http://" -const schemeRegex = /^[\w+.-]+:\/\//; -/** - * Matches the parts of a URL: - * 1. Scheme, including ":", guaranteed. - * 2. User/password, including "@", optional. - * 3. Host, guaranteed. - * 4. Port, including ":", optional. - * 5. Path, including "/", optional. - * 6. Query, including "?", optional. - * 7. Hash, including "#", optional. - */ -const urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/; -/** - * File URLs are weird. They dont' need the regular `//` in the scheme, they may or may not start - * with a leading `/`, they can have a domain (but only if they don't start with a Windows drive). - * - * 1. Host, optional. - * 2. Path, which may include "/", guaranteed. - * 3. Query, including "?", optional. - * 4. Hash, including "#", optional. - */ -const fileRegex = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i; -var UrlType; -(function (UrlType) { - UrlType[UrlType["Empty"] = 1] = "Empty"; - UrlType[UrlType["Hash"] = 2] = "Hash"; - UrlType[UrlType["Query"] = 3] = "Query"; - UrlType[UrlType["RelativePath"] = 4] = "RelativePath"; - UrlType[UrlType["AbsolutePath"] = 5] = "AbsolutePath"; - UrlType[UrlType["SchemeRelative"] = 6] = "SchemeRelative"; - UrlType[UrlType["Absolute"] = 7] = "Absolute"; -})(UrlType || (UrlType = {})); -function isAbsoluteUrl(input) { - return schemeRegex.test(input); -} -function isSchemeRelativeUrl(input) { - return input.startsWith('//'); -} -function isAbsolutePath(input) { - return input.startsWith('/'); -} -function isFileUrl(input) { - return input.startsWith('file:'); -} -function isRelative(input) { - return /^[.?#]/.test(input); -} -function parseAbsoluteUrl(input) { - const match = urlRegex.exec(input); - return makeUrl(match[1], match[2] || '', match[3], match[4] || '', match[5] || '/', match[6] || '', match[7] || ''); -} -function parseFileUrl(input) { - const match = fileRegex.exec(input); - const path = match[2]; - return makeUrl('file:', '', match[1] || '', '', isAbsolutePath(path) ? path : '/' + path, match[3] || '', match[4] || ''); -} -function makeUrl(scheme, user, host, port, path, query, hash) { - return { - scheme, - user, - host, - port, - path, - query, - hash, - type: UrlType.Absolute, - }; -} -function parseUrl(input) { - if (isSchemeRelativeUrl(input)) { - const url = parseAbsoluteUrl('http:' + input); - url.scheme = ''; - url.type = UrlType.SchemeRelative; - return url; - } - if (isAbsolutePath(input)) { - const url = parseAbsoluteUrl('http://foo.com' + input); - url.scheme = ''; - url.host = ''; - url.type = UrlType.AbsolutePath; - return url; - } - if (isFileUrl(input)) - return parseFileUrl(input); - if (isAbsoluteUrl(input)) - return parseAbsoluteUrl(input); - const url = parseAbsoluteUrl('http://foo.com/' + input); - url.scheme = ''; - url.host = ''; - url.type = input - ? input.startsWith('?') - ? UrlType.Query - : input.startsWith('#') - ? UrlType.Hash - : UrlType.RelativePath - : UrlType.Empty; - return url; -} -function stripPathFilename(path) { - // If a path ends with a parent directory "..", then it's a relative path with excess parent - // paths. It's not a file, so we can't strip it. - if (path.endsWith('/..')) - return path; - const index = path.lastIndexOf('/'); - return path.slice(0, index + 1); -} -function mergePaths(url, base) { - normalizePath(base, base.type); - // If the path is just a "/", then it was an empty path to begin with (remember, we're a relative - // path). - if (url.path === '/') { - url.path = base.path; - } - else { - // Resolution happens relative to the base path's directory, not the file. - url.path = stripPathFilename(base.path) + url.path; - } -} -/** - * The path can have empty directories "//", unneeded parents "foo/..", or current directory - * "foo/.". We need to normalize to a standard representation. - */ -function normalizePath(url, type) { - const rel = type <= UrlType.RelativePath; - const pieces = url.path.split('/'); - // We need to preserve the first piece always, so that we output a leading slash. The item at - // pieces[0] is an empty string. - let pointer = 1; - // Positive is the number of real directories we've output, used for popping a parent directory. - // Eg, "foo/bar/.." will have a positive 2, and we can decrement to be left with just "foo". - let positive = 0; - // We need to keep a trailing slash if we encounter an empty directory (eg, splitting "foo/" will - // generate `["foo", ""]` pieces). And, if we pop a parent directory. But once we encounter a - // real directory, we won't need to append, unless the other conditions happen again. - let addTrailingSlash = false; - for (let i = 1; i < pieces.length; i++) { - const piece = pieces[i]; - // An empty directory, could be a trailing slash, or just a double "//" in the path. - if (!piece) { - addTrailingSlash = true; - continue; - } - // If we encounter a real directory, then we don't need to append anymore. - addTrailingSlash = false; - // A current directory, which we can always drop. - if (piece === '.') - continue; - // A parent directory, we need to see if there are any real directories we can pop. Else, we - // have an excess of parents, and we'll need to keep the "..". - if (piece === '..') { - if (positive) { - addTrailingSlash = true; - positive--; - pointer--; - } - else if (rel) { - // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute - // URL, protocol relative URL, or an absolute path, we don't need to keep excess. - pieces[pointer++] = piece; - } - continue; - } - // We've encountered a real directory. Move it to the next insertion pointer, which accounts for - // any popped or dropped directories. - pieces[pointer++] = piece; - positive++; - } - let path = ''; - for (let i = 1; i < pointer; i++) { - path += '/' + pieces[i]; - } - if (!path || (addTrailingSlash && !path.endsWith('/..'))) { - path += '/'; - } - url.path = path; -} -/** - * Attempts to resolve `input` URL/path relative to `base`. - */ -function resolve$1(input, base) { - if (!input && !base) - return ''; - const url = parseUrl(input); - let inputType = url.type; - if (base && inputType !== UrlType.Absolute) { - const baseUrl = parseUrl(base); - const baseType = baseUrl.type; - switch (inputType) { - case UrlType.Empty: - url.hash = baseUrl.hash; - // fall through - case UrlType.Hash: - url.query = baseUrl.query; - // fall through - case UrlType.Query: - case UrlType.RelativePath: - mergePaths(url, baseUrl); - // fall through - case UrlType.AbsolutePath: - // The host, user, and port are joined, you can't copy one without the others. - url.user = baseUrl.user; - url.host = baseUrl.host; - url.port = baseUrl.port; - // fall through - case UrlType.SchemeRelative: - // The input doesn't have a schema at least, so we need to copy at least that over. - url.scheme = baseUrl.scheme; - } - if (baseType > inputType) - inputType = baseType; - } - normalizePath(url, inputType); - const queryHash = url.query + url.hash; - switch (inputType) { - // This is impossible, because of the empty checks at the start of the function. - // case UrlType.Empty: - case UrlType.Hash: - case UrlType.Query: - return queryHash; - case UrlType.RelativePath: { - // The first char is always a "/", and we need it to be relative. - const path = url.path.slice(1); - if (!path) - return queryHash || '.'; - if (isRelative(base || input) && !isRelative(path)) { - // If base started with a leading ".", or there is no base and input started with a ".", - // then we need to ensure that the relative path starts with a ".". We don't know if - // relative starts with a "..", though, so check before prepending. - return './' + path + queryHash; - } - return path + queryHash; - } - case UrlType.AbsolutePath: - return url.path + queryHash; - default: - return url.scheme + '//' + url.user + url.host + url.port + url.path + queryHash; - } -} - -function resolve(input, base) { - // The base is always treated as a directory, if it's not empty. - // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327 - // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401 - if (base && !base.endsWith('/')) - base += '/'; - return resolve$1(input, base); -} - -/** - * Removes everything after the last "/", but leaves the slash. - */ -function stripFilename(path) { - if (!path) - return ''; - const index = path.lastIndexOf('/'); - return path.slice(0, index + 1); -} - -const COLUMN = 0; -const SOURCES_INDEX = 1; -const SOURCE_LINE = 2; -const SOURCE_COLUMN = 3; -const NAMES_INDEX = 4; - -function maybeSort(mappings, owned) { - const unsortedIndex = nextUnsortedSegmentLine(mappings, 0); - if (unsortedIndex === mappings.length) - return mappings; - // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If - // not, we do not want to modify the consumer's input array. - if (!owned) - mappings = mappings.slice(); - for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) { - mappings[i] = sortSegments(mappings[i], owned); - } - return mappings; -} -function nextUnsortedSegmentLine(mappings, start) { - for (let i = start; i < mappings.length; i++) { - if (!isSorted(mappings[i])) - return i; - } - return mappings.length; -} -function isSorted(line) { - for (let j = 1; j < line.length; j++) { - if (line[j][COLUMN] < line[j - 1][COLUMN]) { - return false; - } - } - return true; -} -function sortSegments(line, owned) { - if (!owned) - line = line.slice(); - return line.sort(sortComparator); -} -function sortComparator(a, b) { - return a[COLUMN] - b[COLUMN]; -} - -let found = false; -/** - * A binary search implementation that returns the index if a match is found. - * If no match is found, then the left-index (the index associated with the item that comes just - * before the desired index) is returned. To maintain proper sort order, a splice would happen at - * the next index: - * - * ```js - * const array = [1, 3]; - * const needle = 2; - * const index = binarySearch(array, needle, (item, needle) => item - needle); - * - * assert.equal(index, 0); - * array.splice(index + 1, 0, needle); - * assert.deepEqual(array, [1, 2, 3]); - * ``` - */ -function binarySearch(haystack, needle, low, high) { - while (low <= high) { - const mid = low + ((high - low) >> 1); - const cmp = haystack[mid][COLUMN] - needle; - if (cmp === 0) { - found = true; - return mid; - } - if (cmp < 0) { - low = mid + 1; - } - else { - high = mid - 1; - } - } - found = false; - return low - 1; -} -function upperBound(haystack, needle, index) { - for (let i = index + 1; i < haystack.length; index = i++) { - if (haystack[i][COLUMN] !== needle) - break; - } - return index; -} -function lowerBound(haystack, needle, index) { - for (let i = index - 1; i >= 0; index = i--) { - if (haystack[i][COLUMN] !== needle) - break; - } - return index; -} -function memoizedState() { - return { - lastKey: -1, - lastNeedle: -1, - lastIndex: -1, - }; -} -/** - * This overly complicated beast is just to record the last tested line/column and the resulting - * index, allowing us to skip a few tests if mappings are monotonically increasing. - */ -function memoizedBinarySearch(haystack, needle, state, key) { - const { lastKey, lastNeedle, lastIndex } = state; - let low = 0; - let high = haystack.length - 1; - if (key === lastKey) { - if (needle === lastNeedle) { - found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle; - return lastIndex; - } - if (needle >= lastNeedle) { - // lastIndex may be -1 if the previous needle was not found. - low = lastIndex === -1 ? 0 : lastIndex; - } - else { - high = lastIndex; - } - } - state.lastKey = key; - state.lastNeedle = needle; - return (state.lastIndex = binarySearch(haystack, needle, low, high)); -} - -const LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)'; -const COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)'; -const LEAST_UPPER_BOUND = -1; -const GREATEST_LOWER_BOUND = 1; -class TraceMap { - constructor(map, mapUrl) { - const isString = typeof map === 'string'; - if (!isString && map._decodedMemo) - return map; - const parsed = (isString ? JSON.parse(map) : map); - const { version, file, names, sourceRoot, sources, sourcesContent } = parsed; - this.version = version; - this.file = file; - this.names = names || []; - this.sourceRoot = sourceRoot; - this.sources = sources; - this.sourcesContent = sourcesContent; - this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || undefined; - const from = resolve(sourceRoot || '', stripFilename(mapUrl)); - this.resolvedSources = sources.map((s) => resolve(s || '', from)); - const { mappings } = parsed; - if (typeof mappings === 'string') { - this._encoded = mappings; - this._decoded = undefined; - } - else { - this._encoded = undefined; - this._decoded = maybeSort(mappings, isString); - } - this._decodedMemo = memoizedState(); - this._bySources = undefined; - this._bySourceMemos = undefined; - } -} -/** - * Typescript doesn't allow friend access to private fields, so this just casts the map into a type - * with public access modifiers. - */ -function cast(map) { - return map; -} -/** - * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field. - */ -function decodedMappings(map) { - var _a; - return ((_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded))); -} -/** - * A higher-level API to find the source/line/column associated with a generated line/column - * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in - * `source-map` library. - */ -function originalPositionFor(map, needle) { - let { line, column, bias } = needle; - line--; - if (line < 0) - throw new Error(LINE_GTR_ZERO); - if (column < 0) - throw new Error(COL_GTR_EQ_ZERO); - const decoded = decodedMappings(map); - // It's common for parent source maps to have pointers to lines that have no - // mapping (like a "//# sourceMappingURL=") at the end of the child file. - if (line >= decoded.length) - return OMapping(null, null, null, null); - const segments = decoded[line]; - const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND); - if (index === -1) - return OMapping(null, null, null, null); - const segment = segments[index]; - if (segment.length === 1) - return OMapping(null, null, null, null); - const { names, resolvedSources } = map; - return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null); -} -function OMapping(source, line, column, name) { - return { source, line, column, name }; -} -function traceSegmentInternal(segments, memo, line, column, bias) { - let index = memoizedBinarySearch(segments, column, memo, line); - if (found) { - index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index); - } - else if (bias === LEAST_UPPER_BOUND) - index++; - if (index === -1 || index === segments.length) - return -1; - return index; -} - -let errorFormatterInstalled = false; -const fileContentsCache = {}; -const sourceMapCache = {}; -const reSourceMap = /^data:application\/json[^,]+base64,/; -let retrieveFileHandlers = []; -let retrieveMapHandlers = []; -function globalProcessVersion() { - if (typeof process === "object" && process !== null) { - return process.version; - } else { - return ""; - } -} -function handlerExec(list) { - return function(arg) { - for (let i = 0; i < list.length; i++) { - const ret = list[i](arg); - if (ret) { - return ret; - } - } - return null; - }; -} -let retrieveFile = handlerExec(retrieveFileHandlers); -retrieveFileHandlers.push((path2) => { - path2 = path2.trim(); - if (path2.startsWith("file:")) { - path2 = path2.replace(/file:\/\/\/(\w:)?/, (protocol, drive) => { - return drive ? "" : "/"; - }); - } - if (path2 in fileContentsCache) { - return fileContentsCache[path2]; - } - let contents = ""; - try { - if (fs.existsSync(path2)) { - contents = fs.readFileSync(path2, "utf8"); - } - } catch { - } - return fileContentsCache[path2] = contents; -}); -function supportRelativeURL(file, url) { - if (!file) { - return url; - } - const dir = path.dirname(file); - const match = /^\w+:\/\/[^/]*/.exec(dir); - let protocol = match ? match[0] : ""; - const startPath = dir.slice(protocol.length); - if (protocol && /^\/\w:/.test(startPath)) { - protocol += "/"; - return protocol + path.resolve(dir.slice(protocol.length), url).replace(/\\/g, "/"); - } - return protocol + path.resolve(dir.slice(protocol.length), url); -} -function retrieveSourceMapURL(source) { - const fileData = retrieveFile(source); - if (!fileData) { - return null; - } - const re = /\/\/[@#]\s*sourceMappingURL=([^\s'"]+)\s*$|\/\*[@#]\s*sourceMappingURL=[^\s*'"]+\s*\*\/\s*$/gm; - let lastMatch, match; - while (match = re.exec(fileData)) { - lastMatch = match; - } - if (!lastMatch) { - return null; - } - return lastMatch[1]; -} -let retrieveSourceMap = handlerExec(retrieveMapHandlers); -retrieveMapHandlers.push((source) => { - let sourceMappingURL = retrieveSourceMapURL(source); - if (!sourceMappingURL) { - return null; - } - let sourceMapData; - if (reSourceMap.test(sourceMappingURL)) { - const rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(",") + 1); - sourceMapData = Buffer.from(rawData, "base64").toString(); - sourceMappingURL = source; - } else { - sourceMappingURL = supportRelativeURL(source, sourceMappingURL); - sourceMapData = retrieveFile(sourceMappingURL); - } - if (!sourceMapData) { - return null; - } - return { - url: sourceMappingURL, - map: sourceMapData - }; -}); -function mapSourcePosition(position) { - var _a; - if (!position.source) { - return position; - } - let sourceMap = sourceMapCache[position.source]; - if (!sourceMap) { - const urlAndMap = retrieveSourceMap(position.source); - if (urlAndMap && urlAndMap.map) { - sourceMap = sourceMapCache[position.source] = { - url: urlAndMap.url, - map: new TraceMap(urlAndMap.map) - }; - if ((_a = sourceMap.map) == null ? void 0 : _a.sourcesContent) { - sourceMap.map.sources.forEach((source, i) => { - var _a2, _b; - const contents = (_b = (_a2 = sourceMap.map) == null ? void 0 : _a2.sourcesContent) == null ? void 0 : _b[i]; - if (contents && source && sourceMap.url) { - const url = supportRelativeURL(sourceMap.url, source); - fileContentsCache[url] = contents; - } - }); - } - } else { - sourceMap = sourceMapCache[position.source] = { - url: null, - map: null - }; - } - } - if (sourceMap && sourceMap.map && sourceMap.url) { - const originalPosition = originalPositionFor(sourceMap.map, position); - if (originalPosition.source !== null) { - originalPosition.source = supportRelativeURL( - sourceMap.url, - originalPosition.source - ); - return originalPosition; - } - } - return position; -} -function mapEvalOrigin(origin) { - let match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin); - if (match) { - const position = mapSourcePosition({ - name: null, - source: match[2], - line: +match[3], - column: +match[4] - 1 - }); - return `eval at ${match[1]} (${position.source}:${position.line}:${position.column + 1})`; - } - match = /^eval at ([^(]+) \((.+)\)$/.exec(origin); - if (match) { - return `eval at ${match[1]} (${mapEvalOrigin(match[2])})`; - } - return origin; -} -function CallSiteToString() { - let fileName; - let fileLocation = ""; - if (this.isNative()) { - fileLocation = "native"; - } else { - fileName = this.getScriptNameOrSourceURL(); - if (!fileName && this.isEval()) { - fileLocation = this.getEvalOrigin(); - fileLocation += ", "; - } - if (fileName) { - fileLocation += fileName; - } else { - fileLocation += ""; - } - const lineNumber = this.getLineNumber(); - if (lineNumber != null) { - fileLocation += `:${lineNumber}`; - const columnNumber = this.getColumnNumber(); - if (columnNumber) { - fileLocation += `:${columnNumber}`; - } - } - } - let line = ""; - const functionName = this.getFunctionName(); - let addSuffix = true; - const isConstructor = this.isConstructor(); - const isMethodCall = !(this.isToplevel() || isConstructor); - if (isMethodCall) { - let typeName = this.getTypeName(); - if (typeName === "[object Object]") { - typeName = "null"; - } - const methodName = this.getMethodName(); - if (functionName) { - if (typeName && functionName.indexOf(typeName) !== 0) { - line += `${typeName}.`; - } - line += functionName; - if (methodName && functionName.indexOf(`.${methodName}`) !== functionName.length - methodName.length - 1) { - line += ` [as ${methodName}]`; - } - } else { - line += `${typeName}.${methodName || ""}`; - } - } else if (isConstructor) { - line += `new ${functionName || ""}`; - } else if (functionName) { - line += functionName; - } else { - line += fileLocation; - addSuffix = false; - } - if (addSuffix) { - line += ` (${fileLocation})`; - } - return line; -} -function cloneCallSite(frame) { - const object = {}; - Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach((name) => { - const key = name; - object[key] = /^(?:is|get)/.test(name) ? function() { - return frame[key].call(frame); - } : frame[key]; - }); - object.toString = CallSiteToString; - return object; -} -function wrapCallSite(frame, state) { - if (state === void 0) { - state = { nextPosition: null, curPosition: null }; - } - if (frame.isNative()) { - state.curPosition = null; - return frame; - } - const source = frame.getFileName() || frame.getScriptNameOrSourceURL(); - if (source) { - const line = frame.getLineNumber(); - let column = frame.getColumnNumber() - 1; - const noHeader = /^v(?:10\.1[6-9]|10\.[2-9]\d|10\.\d{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/; - const headerLength = noHeader.test(globalProcessVersion()) ? 0 : 62; - if (line === 1 && column > headerLength && !frame.isEval()) { - column -= headerLength; - } - const position = mapSourcePosition({ - name: null, - source, - line, - column - }); - state.curPosition = position; - frame = cloneCallSite(frame); - const originalFunctionName = frame.getFunctionName; - frame.getFunctionName = function() { - if (state.nextPosition == null) { - return originalFunctionName(); - } - return state.nextPosition.name || originalFunctionName(); - }; - frame.getFileName = function() { - return position.source ?? void 0; - }; - frame.getLineNumber = function() { - return position.line; - }; - frame.getColumnNumber = function() { - return position.column + 1; - }; - frame.getScriptNameOrSourceURL = function() { - return position.source; - }; - return frame; - } - let origin = frame.isEval() && frame.getEvalOrigin(); - if (origin) { - origin = mapEvalOrigin(origin); - frame = cloneCallSite(frame); - frame.getEvalOrigin = function() { - return origin || void 0; - }; - return frame; - } - return frame; -} -function prepareStackTrace(error, stack) { - const name = error.name || "Error"; - const message = error.message || ""; - const errorString = `${name}: ${message}`; - const state = { nextPosition: null, curPosition: null }; - const processedStack = []; - for (let i = stack.length - 1; i >= 0; i--) { - processedStack.push(` - at ${wrapCallSite(stack[i], state)}`); - state.nextPosition = state.curPosition; - } - state.curPosition = state.nextPosition = null; - return errorString + processedStack.reverse().join(""); -} -retrieveFileHandlers.slice(0); -retrieveMapHandlers.slice(0); -const install = function(options) { - options = options || {}; - if (options.retrieveFile) { - if (options.overrideRetrieveFile) { - retrieveFileHandlers.length = 0; - } - retrieveFileHandlers.unshift(options.retrieveFile); - } - if (options.retrieveSourceMap) { - if (options.overrideRetrieveSourceMap) { - retrieveMapHandlers.length = 0; - } - retrieveMapHandlers.unshift(options.retrieveSourceMap); - } - if (!errorFormatterInstalled) { - errorFormatterInstalled = true; - Error.prepareStackTrace = prepareStackTrace; - } -}; - -let SOURCEMAPPING_URL = "sourceMa"; -SOURCEMAPPING_URL += "ppingURL"; -const VITE_NODE_SOURCEMAPPING_SOURCE = "//# sourceMappingSource=vite-node"; -const VITE_NODE_SOURCEMAPPING_URL = `${SOURCEMAPPING_URL}=data:application/json;charset=utf-8`; -const VITE_NODE_SOURCEMAPPING_REGEXP = new RegExp( - `//# ${VITE_NODE_SOURCEMAPPING_URL};base64,(.+)` -); -function withInlineSourcemap(result, options) { - var _a; - const map = result.map; - let code = result.code; - if (!map || code.includes(VITE_NODE_SOURCEMAPPING_SOURCE)) { - return result; - } - if ("sources" in map) { - map.sources = (_a = map.sources) == null ? void 0 : _a.map((source) => { - if (!source) { - return source; - } - if (isAbsolute(source)) { - const actualPath = !source.startsWith(withTrailingSlash(options.root)) && source.startsWith("/") ? resolve$2(options.root, source.slice(1)) : source; - return relative(dirname(options.filepath), actualPath); - } - return source; - }); - } - const OTHER_SOURCE_MAP_REGEXP = new RegExp( - `//# ${SOURCEMAPPING_URL}=data:application/json[^,]+base64,([A-Za-z0-9+/=]+)$`, - "gm" - ); - while (OTHER_SOURCE_MAP_REGEXP.test(code)) { - code = code.replace(OTHER_SOURCE_MAP_REGEXP, ""); - } - if (map.mappings.startsWith(";")) { - map.mappings = `AAAA,CAAA${map.mappings}`; - } - const sourceMap = Buffer.from(JSON.stringify(map), "utf-8").toString( - "base64" - ); - result.code = `${code.trimEnd()} - -${VITE_NODE_SOURCEMAPPING_SOURCE} -//# ${VITE_NODE_SOURCEMAPPING_URL};base64,${sourceMap} -`; - return result; -} -function extractSourceMap(code) { - var _a; - const mapString = (_a = code.match(VITE_NODE_SOURCEMAPPING_REGEXP)) == null ? void 0 : _a[1]; - if (mapString) { - return JSON.parse(Buffer.from(mapString, "base64").toString("utf-8")); - } - return null; -} -function installSourcemapsSupport(options) { - install({ - retrieveSourceMap(source) { - const map = options.getSourceMap(source); - if (map) { - return { - url: source, - map - }; - } - return null; - } - }); -} - -export { extractSourceMap, installSourcemapsSupport, withInlineSourcemap }; diff --git a/node_modules/vite-node/dist/trace-mapping.d-DLVdEqOp.d.ts b/node_modules/vite-node/dist/trace-mapping.d-DLVdEqOp.d.ts deleted file mode 100644 index c0146890..00000000 --- a/node_modules/vite-node/dist/trace-mapping.d-DLVdEqOp.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -type GeneratedColumn = number; -type SourcesIndex = number; -type SourceLine = number; -type SourceColumn = number; -type NamesIndex = number; -type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex]; - -interface SourceMapV3 { - file?: string | null; - names: string[]; - sourceRoot?: string; - sources: (string | null)[]; - sourcesContent?: (string | null)[]; - version: 3; - ignoreList?: number[]; -} -interface EncodedSourceMap extends SourceMapV3 { - mappings: string; -} -interface DecodedSourceMap extends SourceMapV3 { - mappings: SourceMapSegment[][]; -} -type XInput = { - x_google_ignoreList?: SourceMapV3['ignoreList']; -}; -type EncodedSourceMapXInput = EncodedSourceMap & XInput; -type DecodedSourceMapXInput = DecodedSourceMap & XInput; -type SourceMapInput = string | EncodedSourceMapXInput | DecodedSourceMapXInput | TraceMap; -declare abstract class SourceMap { - version: SourceMapV3['version']; - file: SourceMapV3['file']; - names: SourceMapV3['names']; - sourceRoot: SourceMapV3['sourceRoot']; - sources: SourceMapV3['sources']; - sourcesContent: SourceMapV3['sourcesContent']; - resolvedSources: SourceMapV3['sources']; - ignoreList: SourceMapV3['ignoreList']; -} - -declare class TraceMap implements SourceMap { - version: SourceMapV3['version']; - file: SourceMapV3['file']; - names: SourceMapV3['names']; - sourceRoot: SourceMapV3['sourceRoot']; - sources: SourceMapV3['sources']; - sourcesContent: SourceMapV3['sourcesContent']; - ignoreList: SourceMapV3['ignoreList']; - resolvedSources: string[]; - private _encoded; - private _decoded; - private _decodedMemo; - private _bySources; - private _bySourceMemos; - constructor(map: SourceMapInput, mapUrl?: string | null); -} - -export type { DecodedSourceMap as D, EncodedSourceMap as E, SourceMapInput as S }; diff --git a/node_modules/vite-node/dist/types.cjs b/node_modules/vite-node/dist/types.cjs deleted file mode 100644 index eb109abb..00000000 --- a/node_modules/vite-node/dist/types.cjs +++ /dev/null @@ -1,2 +0,0 @@ -'use strict'; - diff --git a/node_modules/vite-node/dist/types.d.ts b/node_modules/vite-node/dist/types.d.ts deleted file mode 100644 index 3c0d2239..00000000 --- a/node_modules/vite-node/dist/types.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { A as Arrayable, f as Awaitable, i as CreateHotContextFunction, D as DebuggerOptions, c as DepsHandlingOptions, g as FetchFunction, F as FetchResult, b as HotContext, j as ModuleCache, M as ModuleCacheMap, N as Nullable, R as RawSourceMap, h as ResolveIdFunction, S as StartOfSourceMap, d as ViteNodeResolveId, l as ViteNodeResolveModule, k as ViteNodeRunnerOptions, V as ViteNodeServerOptions } from './index-CCsqCcr7.js'; -export { D as DecodedSourceMap, E as EncodedSourceMap, S as SourceMapInput } from './trace-mapping.d-DLVdEqOp.js'; diff --git a/node_modules/vite-node/dist/types.mjs b/node_modules/vite-node/dist/types.mjs deleted file mode 100644 index 8b137891..00000000 --- a/node_modules/vite-node/dist/types.mjs +++ /dev/null @@ -1 +0,0 @@ - diff --git a/node_modules/vite-node/dist/utils.cjs b/node_modules/vite-node/dist/utils.cjs deleted file mode 100644 index 1d04708d..00000000 --- a/node_modules/vite-node/dist/utils.cjs +++ /dev/null @@ -1,201 +0,0 @@ -'use strict'; - -var node_url = require('node:url'); -var node_module = require('node:module'); -var fs = require('node:fs'); -var pathe = require('pathe'); - -const isWindows = process.platform === "win32"; -const drive = isWindows ? process.cwd()[0] : null; -const driveOpposite = drive ? drive === drive.toUpperCase() ? drive.toLowerCase() : drive.toUpperCase() : null; -const driveRegexp = drive ? new RegExp(`(?:^|/@fs/)${drive}(:[\\/])`) : null; -const driveOppositeRegext = driveOpposite ? new RegExp(`(?:^|/@fs/)${driveOpposite}(:[\\/])`) : null; -function slash(str) { - return str.replace(/\\/g, "/"); -} -const VALID_ID_PREFIX = "/@id/"; -function normalizeRequestId(id, base) { - if (base && id.startsWith(withTrailingSlash(base))) { - id = `/${id.slice(base.length)}`; - } - if (driveRegexp && !(driveRegexp == null ? void 0 : driveRegexp.test(id)) && (driveOppositeRegext == null ? void 0 : driveOppositeRegext.test(id))) { - id = id.replace(driveOppositeRegext, `${drive}$1`); - } - return id.replace(/^\/@id\/__x00__/, "\0").replace(/^\/@id\//, "").replace(/^__vite-browser-external:/, "").replace(/^file:(\/+)/, isWindows ? "" : "/").replace(/\?v=\w+/, "?").replace(/&v=\w+/, "").replace(/\?t=\w+/, "?").replace(/&t=\w+/, "").replace(/\?import/, "?").replace(/&import/, "").replace(/\?&/, "?").replace(/\?+$/, ""); -} -const postfixRE = /[?#].*$/; -function cleanUrl(url) { - return url.replace(postfixRE, ""); -} -const internalRequests = ["@vite/client", "@vite/env"]; -const internalRequestRegexp = new RegExp( - `^/?(?:${internalRequests.join("|")})$` -); -function isInternalRequest(id) { - return internalRequestRegexp.test(id); -} -const prefixedBuiltins = /* @__PURE__ */ new Set(["node:test"]); -const builtins = /* @__PURE__ */ new Set([ - ...node_module.builtinModules, - "assert/strict", - "diagnostics_channel", - "dns/promises", - "fs/promises", - "path/posix", - "path/win32", - "readline/promises", - "stream/consumers", - "stream/promises", - "stream/web", - "timers/promises", - "util/types", - "wasi" -]); -function normalizeModuleId(id) { - if (prefixedBuiltins.has(id)) { - return id; - } - return id.replace(/\\/g, "/").replace(/^\/@fs\//, isWindows ? "" : "/").replace(/^file:\//, "/").replace(/^node:/, "").replace(/^\/+/, "/"); -} -function isPrimitive(v) { - return v !== Object(v); -} -function toFilePath(id, root) { - let { absolute, exists } = (() => { - if (id.startsWith("/@fs/")) { - return { absolute: id.slice(4), exists: true }; - } - if (!id.startsWith(withTrailingSlash(root)) && id.startsWith("/")) { - const resolved = pathe.resolve(root, id.slice(1)); - if (fs.existsSync(cleanUrl(resolved))) { - return { absolute: resolved, exists: true }; - } - } else if (id.startsWith(withTrailingSlash(root)) && fs.existsSync(cleanUrl(id))) { - return { absolute: id, exists: true }; - } - return { absolute: id, exists: false }; - })(); - if (absolute.startsWith("//")) { - absolute = absolute.slice(1); - } - return { - path: isWindows && absolute.startsWith("/") ? slash(node_url.fileURLToPath(node_url.pathToFileURL(absolute.slice(1)).href)) : absolute, - exists - }; -} -const NODE_BUILTIN_NAMESPACE = "node:"; -function isNodeBuiltin(id) { - if (prefixedBuiltins.has(id)) { - return true; - } - return builtins.has( - id.startsWith(NODE_BUILTIN_NAMESPACE) ? id.slice(NODE_BUILTIN_NAMESPACE.length) : id - ); -} -function toArray(array) { - if (array === null || array === void 0) { - array = []; - } - if (Array.isArray(array)) { - return array; - } - return [array]; -} -function getCachedData(cache, basedir, originalBasedir) { - const pkgData = cache.get(getFnpdCacheKey(basedir)); - if (pkgData) { - traverseBetweenDirs(originalBasedir, basedir, (dir) => { - cache.set(getFnpdCacheKey(dir), pkgData); - }); - return pkgData; - } -} -function setCacheData(cache, data, basedir, originalBasedir) { - cache.set(getFnpdCacheKey(basedir), data); - traverseBetweenDirs(originalBasedir, basedir, (dir) => { - cache.set(getFnpdCacheKey(dir), data); - }); -} -function getFnpdCacheKey(basedir) { - return `fnpd_${basedir}`; -} -function traverseBetweenDirs(longerDir, shorterDir, cb) { - while (longerDir !== shorterDir) { - cb(longerDir); - longerDir = pathe.dirname(longerDir); - } -} -function withTrailingSlash(path) { - if (path[path.length - 1] !== "/") { - return `${path}/`; - } - return path; -} -function createImportMetaEnvProxy() { - const booleanKeys = ["DEV", "PROD", "SSR"]; - return new Proxy(process.env, { - get(_, key) { - if (typeof key !== "string") { - return void 0; - } - if (booleanKeys.includes(key)) { - return !!process.env[key]; - } - return process.env[key]; - }, - set(_, key, value) { - if (typeof key !== "string") { - return true; - } - if (booleanKeys.includes(key)) { - process.env[key] = value ? "1" : ""; - } else { - process.env[key] = value; - } - return true; - } - }); -} -const packageCache = /* @__PURE__ */ new Map(); -async function findNearestPackageData(basedir) { - var _a; - const originalBasedir = basedir; - while (basedir) { - const cached = getCachedData(packageCache, basedir, originalBasedir); - if (cached) { - return cached; - } - const pkgPath = pathe.join(basedir, "package.json"); - if ((_a = await fs.promises.stat(pkgPath).catch(() => { - })) == null ? void 0 : _a.isFile()) { - const pkgData = JSON.parse(await fs.promises.readFile(pkgPath, "utf8")); - if (packageCache) { - setCacheData(packageCache, pkgData, basedir, originalBasedir); - } - return pkgData; - } - const nextBasedir = pathe.dirname(basedir); - if (nextBasedir === basedir) { - break; - } - basedir = nextBasedir; - } - return {}; -} - -exports.VALID_ID_PREFIX = VALID_ID_PREFIX; -exports.cleanUrl = cleanUrl; -exports.createImportMetaEnvProxy = createImportMetaEnvProxy; -exports.findNearestPackageData = findNearestPackageData; -exports.getCachedData = getCachedData; -exports.isInternalRequest = isInternalRequest; -exports.isNodeBuiltin = isNodeBuiltin; -exports.isPrimitive = isPrimitive; -exports.isWindows = isWindows; -exports.normalizeModuleId = normalizeModuleId; -exports.normalizeRequestId = normalizeRequestId; -exports.setCacheData = setCacheData; -exports.slash = slash; -exports.toArray = toArray; -exports.toFilePath = toFilePath; -exports.withTrailingSlash = withTrailingSlash; diff --git a/node_modules/vite-node/dist/utils.d.ts b/node_modules/vite-node/dist/utils.d.ts deleted file mode 100644 index 2cc21002..00000000 --- a/node_modules/vite-node/dist/utils.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { N as Nullable, A as Arrayable } from './index-CCsqCcr7.js'; -import './trace-mapping.d-DLVdEqOp.js'; - -declare const isWindows: boolean; -declare function slash(str: string): string; -declare const VALID_ID_PREFIX = "/@id/"; -declare function normalizeRequestId(id: string, base?: string): string; -declare function cleanUrl(url: string): string; -declare function isInternalRequest(id: string): boolean; -declare function normalizeModuleId(id: string): string; -declare function isPrimitive(v: any): boolean; -declare function toFilePath(id: string, root: string): { - path: string; - exists: boolean; -}; -declare function isNodeBuiltin(id: string): boolean; -/** - * Convert `Arrayable` to `Array` - * - * @category Array - */ -declare function toArray(array?: Nullable>): Array; -declare function getCachedData(cache: Map, basedir: string, originalBasedir: string): NonNullable | undefined; -declare function setCacheData(cache: Map, data: T, basedir: string, originalBasedir: string): void; -declare function withTrailingSlash(path: string): string; -declare function createImportMetaEnvProxy(): NodeJS.ProcessEnv; -declare function findNearestPackageData(basedir: string): Promise<{ - type?: 'module' | 'commonjs'; -}>; - -export { VALID_ID_PREFIX, cleanUrl, createImportMetaEnvProxy, findNearestPackageData, getCachedData, isInternalRequest, isNodeBuiltin, isPrimitive, isWindows, normalizeModuleId, normalizeRequestId, setCacheData, slash, toArray, toFilePath, withTrailingSlash }; diff --git a/node_modules/vite-node/dist/utils.mjs b/node_modules/vite-node/dist/utils.mjs deleted file mode 100644 index 9e2f8384..00000000 --- a/node_modules/vite-node/dist/utils.mjs +++ /dev/null @@ -1,184 +0,0 @@ -import { fileURLToPath, pathToFileURL } from 'node:url'; -import { builtinModules } from 'node:module'; -import { existsSync, promises } from 'node:fs'; -import { resolve, dirname, join } from 'pathe'; - -const isWindows = process.platform === "win32"; -const drive = isWindows ? process.cwd()[0] : null; -const driveOpposite = drive ? drive === drive.toUpperCase() ? drive.toLowerCase() : drive.toUpperCase() : null; -const driveRegexp = drive ? new RegExp(`(?:^|/@fs/)${drive}(:[\\/])`) : null; -const driveOppositeRegext = driveOpposite ? new RegExp(`(?:^|/@fs/)${driveOpposite}(:[\\/])`) : null; -function slash(str) { - return str.replace(/\\/g, "/"); -} -const VALID_ID_PREFIX = "/@id/"; -function normalizeRequestId(id, base) { - if (base && id.startsWith(withTrailingSlash(base))) { - id = `/${id.slice(base.length)}`; - } - if (driveRegexp && !(driveRegexp == null ? void 0 : driveRegexp.test(id)) && (driveOppositeRegext == null ? void 0 : driveOppositeRegext.test(id))) { - id = id.replace(driveOppositeRegext, `${drive}$1`); - } - return id.replace(/^\/@id\/__x00__/, "\0").replace(/^\/@id\//, "").replace(/^__vite-browser-external:/, "").replace(/^file:(\/+)/, isWindows ? "" : "/").replace(/\?v=\w+/, "?").replace(/&v=\w+/, "").replace(/\?t=\w+/, "?").replace(/&t=\w+/, "").replace(/\?import/, "?").replace(/&import/, "").replace(/\?&/, "?").replace(/\?+$/, ""); -} -const postfixRE = /[?#].*$/; -function cleanUrl(url) { - return url.replace(postfixRE, ""); -} -const internalRequests = ["@vite/client", "@vite/env"]; -const internalRequestRegexp = new RegExp( - `^/?(?:${internalRequests.join("|")})$` -); -function isInternalRequest(id) { - return internalRequestRegexp.test(id); -} -const prefixedBuiltins = /* @__PURE__ */ new Set(["node:test"]); -const builtins = /* @__PURE__ */ new Set([ - ...builtinModules, - "assert/strict", - "diagnostics_channel", - "dns/promises", - "fs/promises", - "path/posix", - "path/win32", - "readline/promises", - "stream/consumers", - "stream/promises", - "stream/web", - "timers/promises", - "util/types", - "wasi" -]); -function normalizeModuleId(id) { - if (prefixedBuiltins.has(id)) { - return id; - } - return id.replace(/\\/g, "/").replace(/^\/@fs\//, isWindows ? "" : "/").replace(/^file:\//, "/").replace(/^node:/, "").replace(/^\/+/, "/"); -} -function isPrimitive(v) { - return v !== Object(v); -} -function toFilePath(id, root) { - let { absolute, exists } = (() => { - if (id.startsWith("/@fs/")) { - return { absolute: id.slice(4), exists: true }; - } - if (!id.startsWith(withTrailingSlash(root)) && id.startsWith("/")) { - const resolved = resolve(root, id.slice(1)); - if (existsSync(cleanUrl(resolved))) { - return { absolute: resolved, exists: true }; - } - } else if (id.startsWith(withTrailingSlash(root)) && existsSync(cleanUrl(id))) { - return { absolute: id, exists: true }; - } - return { absolute: id, exists: false }; - })(); - if (absolute.startsWith("//")) { - absolute = absolute.slice(1); - } - return { - path: isWindows && absolute.startsWith("/") ? slash(fileURLToPath(pathToFileURL(absolute.slice(1)).href)) : absolute, - exists - }; -} -const NODE_BUILTIN_NAMESPACE = "node:"; -function isNodeBuiltin(id) { - if (prefixedBuiltins.has(id)) { - return true; - } - return builtins.has( - id.startsWith(NODE_BUILTIN_NAMESPACE) ? id.slice(NODE_BUILTIN_NAMESPACE.length) : id - ); -} -function toArray(array) { - if (array === null || array === void 0) { - array = []; - } - if (Array.isArray(array)) { - return array; - } - return [array]; -} -function getCachedData(cache, basedir, originalBasedir) { - const pkgData = cache.get(getFnpdCacheKey(basedir)); - if (pkgData) { - traverseBetweenDirs(originalBasedir, basedir, (dir) => { - cache.set(getFnpdCacheKey(dir), pkgData); - }); - return pkgData; - } -} -function setCacheData(cache, data, basedir, originalBasedir) { - cache.set(getFnpdCacheKey(basedir), data); - traverseBetweenDirs(originalBasedir, basedir, (dir) => { - cache.set(getFnpdCacheKey(dir), data); - }); -} -function getFnpdCacheKey(basedir) { - return `fnpd_${basedir}`; -} -function traverseBetweenDirs(longerDir, shorterDir, cb) { - while (longerDir !== shorterDir) { - cb(longerDir); - longerDir = dirname(longerDir); - } -} -function withTrailingSlash(path) { - if (path[path.length - 1] !== "/") { - return `${path}/`; - } - return path; -} -function createImportMetaEnvProxy() { - const booleanKeys = ["DEV", "PROD", "SSR"]; - return new Proxy(process.env, { - get(_, key) { - if (typeof key !== "string") { - return void 0; - } - if (booleanKeys.includes(key)) { - return !!process.env[key]; - } - return process.env[key]; - }, - set(_, key, value) { - if (typeof key !== "string") { - return true; - } - if (booleanKeys.includes(key)) { - process.env[key] = value ? "1" : ""; - } else { - process.env[key] = value; - } - return true; - } - }); -} -const packageCache = /* @__PURE__ */ new Map(); -async function findNearestPackageData(basedir) { - var _a; - const originalBasedir = basedir; - while (basedir) { - const cached = getCachedData(packageCache, basedir, originalBasedir); - if (cached) { - return cached; - } - const pkgPath = join(basedir, "package.json"); - if ((_a = await promises.stat(pkgPath).catch(() => { - })) == null ? void 0 : _a.isFile()) { - const pkgData = JSON.parse(await promises.readFile(pkgPath, "utf8")); - if (packageCache) { - setCacheData(packageCache, pkgData, basedir, originalBasedir); - } - return pkgData; - } - const nextBasedir = dirname(basedir); - if (nextBasedir === basedir) { - break; - } - basedir = nextBasedir; - } - return {}; -} - -export { VALID_ID_PREFIX, cleanUrl, createImportMetaEnvProxy, findNearestPackageData, getCachedData, isInternalRequest, isNodeBuiltin, isPrimitive, isWindows, normalizeModuleId, normalizeRequestId, setCacheData, slash, toArray, toFilePath, withTrailingSlash }; diff --git a/node_modules/vite/dist/client/client.mjs b/node_modules/vite/dist/client/client.mjs deleted file mode 100644 index e1d26d86..00000000 --- a/node_modules/vite/dist/client/client.mjs +++ /dev/null @@ -1,829 +0,0 @@ -import '@vite/env'; - -class HMRContext { - constructor(hmrClient, ownerPath) { - this.hmrClient = hmrClient; - this.ownerPath = ownerPath; - if (!hmrClient.dataMap.has(ownerPath)) { - hmrClient.dataMap.set(ownerPath, {}); - } - const mod = hmrClient.hotModulesMap.get(ownerPath); - if (mod) { - mod.callbacks = []; - } - const staleListeners = hmrClient.ctxToListenersMap.get(ownerPath); - if (staleListeners) { - for (const [event, staleFns] of staleListeners) { - const listeners = hmrClient.customListenersMap.get(event); - if (listeners) { - hmrClient.customListenersMap.set( - event, - listeners.filter((l) => !staleFns.includes(l)) - ); - } - } - } - this.newListeners = /* @__PURE__ */ new Map(); - hmrClient.ctxToListenersMap.set(ownerPath, this.newListeners); - } - get data() { - return this.hmrClient.dataMap.get(this.ownerPath); - } - accept(deps, callback) { - if (typeof deps === "function" || !deps) { - this.acceptDeps([this.ownerPath], ([mod]) => deps?.(mod)); - } else if (typeof deps === "string") { - this.acceptDeps([deps], ([mod]) => callback?.(mod)); - } else if (Array.isArray(deps)) { - this.acceptDeps(deps, callback); - } else { - throw new Error(`invalid hot.accept() usage.`); - } - } - // export names (first arg) are irrelevant on the client side, they're - // extracted in the server for propagation - acceptExports(_, callback) { - this.acceptDeps([this.ownerPath], ([mod]) => callback?.(mod)); - } - dispose(cb) { - this.hmrClient.disposeMap.set(this.ownerPath, cb); - } - prune(cb) { - this.hmrClient.pruneMap.set(this.ownerPath, cb); - } - // Kept for backward compatibility (#11036) - // eslint-disable-next-line @typescript-eslint/no-empty-function - decline() { - } - invalidate(message) { - this.hmrClient.notifyListeners("vite:invalidate", { - path: this.ownerPath, - message - }); - this.send("vite:invalidate", { path: this.ownerPath, message }); - this.hmrClient.logger.debug( - `[vite] invalidate ${this.ownerPath}${message ? `: ${message}` : ""}` - ); - } - on(event, cb) { - const addToMap = (map) => { - const existing = map.get(event) || []; - existing.push(cb); - map.set(event, existing); - }; - addToMap(this.hmrClient.customListenersMap); - addToMap(this.newListeners); - } - off(event, cb) { - const removeFromMap = (map) => { - const existing = map.get(event); - if (existing === void 0) { - return; - } - const pruned = existing.filter((l) => l !== cb); - if (pruned.length === 0) { - map.delete(event); - return; - } - map.set(event, pruned); - }; - removeFromMap(this.hmrClient.customListenersMap); - removeFromMap(this.newListeners); - } - send(event, data) { - this.hmrClient.messenger.send( - JSON.stringify({ type: "custom", event, data }) - ); - } - acceptDeps(deps, callback = () => { - }) { - const mod = this.hmrClient.hotModulesMap.get(this.ownerPath) || { - id: this.ownerPath, - callbacks: [] - }; - mod.callbacks.push({ - deps, - fn: callback - }); - this.hmrClient.hotModulesMap.set(this.ownerPath, mod); - } -} -class HMRMessenger { - constructor(connection) { - this.connection = connection; - this.queue = []; - } - send(message) { - this.queue.push(message); - this.flush(); - } - flush() { - if (this.connection.isReady()) { - this.queue.forEach((msg) => this.connection.send(msg)); - this.queue = []; - } - } -} -class HMRClient { - constructor(logger, connection, importUpdatedModule) { - this.logger = logger; - this.importUpdatedModule = importUpdatedModule; - this.hotModulesMap = /* @__PURE__ */ new Map(); - this.disposeMap = /* @__PURE__ */ new Map(); - this.pruneMap = /* @__PURE__ */ new Map(); - this.dataMap = /* @__PURE__ */ new Map(); - this.customListenersMap = /* @__PURE__ */ new Map(); - this.ctxToListenersMap = /* @__PURE__ */ new Map(); - this.updateQueue = []; - this.pendingUpdateQueue = false; - this.messenger = new HMRMessenger(connection); - } - async notifyListeners(event, data) { - const cbs = this.customListenersMap.get(event); - if (cbs) { - await Promise.allSettled(cbs.map((cb) => cb(data))); - } - } - clear() { - this.hotModulesMap.clear(); - this.disposeMap.clear(); - this.pruneMap.clear(); - this.dataMap.clear(); - this.customListenersMap.clear(); - this.ctxToListenersMap.clear(); - } - // After an HMR update, some modules are no longer imported on the page - // but they may have left behind side effects that need to be cleaned up - // (.e.g style injections) - async prunePaths(paths) { - await Promise.all( - paths.map((path) => { - const disposer = this.disposeMap.get(path); - if (disposer) return disposer(this.dataMap.get(path)); - }) - ); - paths.forEach((path) => { - const fn = this.pruneMap.get(path); - if (fn) { - fn(this.dataMap.get(path)); - } - }); - } - warnFailedUpdate(err, path) { - if (!err.message.includes("fetch")) { - this.logger.error(err); - } - this.logger.error( - `[hmr] Failed to reload ${path}. This could be due to syntax errors or importing non-existent modules. (see errors above)` - ); - } - /** - * buffer multiple hot updates triggered by the same src change - * so that they are invoked in the same order they were sent. - * (otherwise the order may be inconsistent because of the http request round trip) - */ - async queueUpdate(payload) { - this.updateQueue.push(this.fetchUpdate(payload)); - if (!this.pendingUpdateQueue) { - this.pendingUpdateQueue = true; - await Promise.resolve(); - this.pendingUpdateQueue = false; - const loading = [...this.updateQueue]; - this.updateQueue = []; - (await Promise.all(loading)).forEach((fn) => fn && fn()); - } - } - async fetchUpdate(update) { - const { path, acceptedPath } = update; - const mod = this.hotModulesMap.get(path); - if (!mod) { - return; - } - let fetchedModule; - const isSelfUpdate = path === acceptedPath; - const qualifiedCallbacks = mod.callbacks.filter( - ({ deps }) => deps.includes(acceptedPath) - ); - if (isSelfUpdate || qualifiedCallbacks.length > 0) { - const disposer = this.disposeMap.get(acceptedPath); - if (disposer) await disposer(this.dataMap.get(acceptedPath)); - try { - fetchedModule = await this.importUpdatedModule(update); - } catch (e) { - this.warnFailedUpdate(e, acceptedPath); - } - } - return () => { - for (const { deps, fn } of qualifiedCallbacks) { - fn( - deps.map((dep) => dep === acceptedPath ? fetchedModule : void 0) - ); - } - const loggedPath = isSelfUpdate ? path : `${acceptedPath} via ${path}`; - this.logger.debug(`[vite] hot updated: ${loggedPath}`); - }; - } -} - -const hmrConfigName = __HMR_CONFIG_NAME__; -const base$1 = __BASE__ || "/"; -function h(e, attrs = {}, ...children) { - const elem = document.createElement(e); - for (const [k, v] of Object.entries(attrs)) { - elem.setAttribute(k, v); - } - elem.append(...children); - return elem; -} -const templateStyle = ( - /*css*/ - ` -:host { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - z-index: 99999; - --monospace: 'SFMono-Regular', Consolas, - 'Liberation Mono', Menlo, Courier, monospace; - --red: #ff5555; - --yellow: #e2aa53; - --purple: #cfa4ff; - --cyan: #2dd9da; - --dim: #c9c9c9; - - --window-background: #181818; - --window-color: #d8d8d8; -} - -.backdrop { - position: fixed; - z-index: 99999; - top: 0; - left: 0; - width: 100%; - height: 100%; - overflow-y: scroll; - margin: 0; - background: rgba(0, 0, 0, 0.66); -} - -.window { - font-family: var(--monospace); - line-height: 1.5; - max-width: 80vw; - color: var(--window-color); - box-sizing: border-box; - margin: 30px auto; - padding: 2.5vh 4vw; - position: relative; - background: var(--window-background); - border-radius: 6px 6px 8px 8px; - box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22); - overflow: hidden; - border-top: 8px solid var(--red); - direction: ltr; - text-align: left; -} - -pre { - font-family: var(--monospace); - font-size: 16px; - margin-top: 0; - margin-bottom: 1em; - overflow-x: scroll; - scrollbar-width: none; -} - -pre::-webkit-scrollbar { - display: none; -} - -pre.frame::-webkit-scrollbar { - display: block; - height: 5px; -} - -pre.frame::-webkit-scrollbar-thumb { - background: #999; - border-radius: 5px; -} - -pre.frame { - scrollbar-width: thin; -} - -.message { - line-height: 1.3; - font-weight: 600; - white-space: pre-wrap; -} - -.message-body { - color: var(--red); -} - -.plugin { - color: var(--purple); -} - -.file { - color: var(--cyan); - margin-bottom: 0; - white-space: pre-wrap; - word-break: break-all; -} - -.frame { - color: var(--yellow); -} - -.stack { - font-size: 13px; - color: var(--dim); -} - -.tip { - font-size: 13px; - color: #999; - border-top: 1px dotted #999; - padding-top: 13px; - line-height: 1.8; -} - -code { - font-size: 13px; - font-family: var(--monospace); - color: var(--yellow); -} - -.file-link { - text-decoration: underline; - cursor: pointer; -} - -kbd { - line-height: 1.5; - font-family: ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; - font-size: 0.75rem; - font-weight: 700; - background-color: rgb(38, 40, 44); - color: rgb(166, 167, 171); - padding: 0.15rem 0.3rem; - border-radius: 0.25rem; - border-width: 0.0625rem 0.0625rem 0.1875rem; - border-style: solid; - border-color: rgb(54, 57, 64); - border-image: initial; -} -` -); -const createTemplate = () => h( - "div", - { class: "backdrop", part: "backdrop" }, - h( - "div", - { class: "window", part: "window" }, - h( - "pre", - { class: "message", part: "message" }, - h("span", { class: "plugin", part: "plugin" }), - h("span", { class: "message-body", part: "message-body" }) - ), - h("pre", { class: "file", part: "file" }), - h("pre", { class: "frame", part: "frame" }), - h("pre", { class: "stack", part: "stack" }), - h( - "div", - { class: "tip", part: "tip" }, - "Click outside, press ", - h("kbd", {}, "Esc"), - " key, or fix the code to dismiss.", - h("br"), - "You can also disable this overlay by setting ", - h("code", { part: "config-option-name" }, "server.hmr.overlay"), - " to ", - h("code", { part: "config-option-value" }, "false"), - " in ", - h("code", { part: "config-file-name" }, hmrConfigName), - "." - ) - ), - h("style", {}, templateStyle) -); -const fileRE = /(?:[a-zA-Z]:\\|\/).*?:\d+:\d+/g; -const codeframeRE = /^(?:>?\s*\d+\s+\|.*|\s+\|\s*\^.*)\r?\n/gm; -const { HTMLElement = class { -} } = globalThis; -class ErrorOverlay extends HTMLElement { - constructor(err, links = true) { - super(); - this.root = this.attachShadow({ mode: "open" }); - this.root.appendChild(createTemplate()); - codeframeRE.lastIndex = 0; - const hasFrame = err.frame && codeframeRE.test(err.frame); - const message = hasFrame ? err.message.replace(codeframeRE, "") : err.message; - if (err.plugin) { - this.text(".plugin", `[plugin:${err.plugin}] `); - } - this.text(".message-body", message.trim()); - const [file] = (err.loc?.file || err.id || "unknown file").split(`?`); - if (err.loc) { - this.text(".file", `${file}:${err.loc.line}:${err.loc.column}`, links); - } else if (err.id) { - this.text(".file", file); - } - if (hasFrame) { - this.text(".frame", err.frame.trim()); - } - this.text(".stack", err.stack, links); - this.root.querySelector(".window").addEventListener("click", (e) => { - e.stopPropagation(); - }); - this.addEventListener("click", () => { - this.close(); - }); - this.closeOnEsc = (e) => { - if (e.key === "Escape" || e.code === "Escape") { - this.close(); - } - }; - document.addEventListener("keydown", this.closeOnEsc); - } - text(selector, text, linkFiles = false) { - const el = this.root.querySelector(selector); - if (!linkFiles) { - el.textContent = text; - } else { - let curIndex = 0; - let match; - fileRE.lastIndex = 0; - while (match = fileRE.exec(text)) { - const { 0: file, index } = match; - if (index != null) { - const frag = text.slice(curIndex, index); - el.appendChild(document.createTextNode(frag)); - const link = document.createElement("a"); - link.textContent = file; - link.className = "file-link"; - link.onclick = () => { - fetch( - new URL( - `${base$1}__open-in-editor?file=${encodeURIComponent(file)}`, - import.meta.url - ) - ); - }; - el.appendChild(link); - curIndex += frag.length + file.length; - } - } - } - } - close() { - this.parentNode?.removeChild(this); - document.removeEventListener("keydown", this.closeOnEsc); - } -} -const overlayId = "vite-error-overlay"; -const { customElements } = globalThis; -if (customElements && !customElements.get(overlayId)) { - customElements.define(overlayId, ErrorOverlay); -} - -console.debug("[vite] connecting..."); -const importMetaUrl = new URL(import.meta.url); -const serverHost = __SERVER_HOST__; -const socketProtocol = __HMR_PROTOCOL__ || (importMetaUrl.protocol === "https:" ? "wss" : "ws"); -const hmrPort = __HMR_PORT__; -const socketHost = `${__HMR_HOSTNAME__ || importMetaUrl.hostname}:${hmrPort || importMetaUrl.port}${__HMR_BASE__}`; -const directSocketHost = __HMR_DIRECT_TARGET__; -const base = __BASE__ || "/"; -const wsToken = __WS_TOKEN__; -let socket; -try { - let fallback; - if (!hmrPort) { - fallback = () => { - socket = setupWebSocket(socketProtocol, directSocketHost, () => { - const currentScriptHostURL = new URL(import.meta.url); - const currentScriptHost = currentScriptHostURL.host + currentScriptHostURL.pathname.replace(/@vite\/client$/, ""); - console.error( - `[vite] failed to connect to websocket. -your current setup: - (browser) ${currentScriptHost} <--[HTTP]--> ${serverHost} (server) - (browser) ${socketHost} <--[WebSocket (failing)]--> ${directSocketHost} (server) -Check out your Vite / network configuration and https://vite.dev/config/server-options.html#server-hmr .` - ); - }); - socket.addEventListener( - "open", - () => { - console.info( - "[vite] Direct websocket connection fallback. Check out https://vite.dev/config/server-options.html#server-hmr to remove the previous connection error." - ); - }, - { once: true } - ); - }; - } - socket = setupWebSocket(socketProtocol, socketHost, fallback); -} catch (error) { - console.error(`[vite] failed to connect to websocket (${error}). `); -} -function setupWebSocket(protocol, hostAndPath, onCloseWithoutOpen) { - const socket2 = new WebSocket( - `${protocol}://${hostAndPath}?token=${wsToken}`, - "vite-hmr" - ); - let isOpened = false; - socket2.addEventListener( - "open", - () => { - isOpened = true; - notifyListeners("vite:ws:connect", { webSocket: socket2 }); - }, - { once: true } - ); - socket2.addEventListener("message", async ({ data }) => { - handleMessage(JSON.parse(data)); - }); - socket2.addEventListener("close", async ({ wasClean }) => { - if (wasClean) return; - if (!isOpened && onCloseWithoutOpen) { - onCloseWithoutOpen(); - return; - } - notifyListeners("vite:ws:disconnect", { webSocket: socket2 }); - if (hasDocument) { - console.log(`[vite] server connection lost. Polling for restart...`); - await waitForSuccessfulPing(protocol, hostAndPath); - location.reload(); - } - }); - return socket2; -} -function cleanUrl(pathname) { - const url = new URL(pathname, "http://vite.dev"); - url.searchParams.delete("direct"); - return url.pathname + url.search; -} -let isFirstUpdate = true; -const outdatedLinkTags = /* @__PURE__ */ new WeakSet(); -const debounceReload = (time) => { - let timer; - return () => { - if (timer) { - clearTimeout(timer); - timer = null; - } - timer = setTimeout(() => { - location.reload(); - }, time); - }; -}; -const pageReload = debounceReload(50); -const hmrClient = new HMRClient( - console, - { - isReady: () => socket && socket.readyState === 1, - send: (message) => socket.send(message) - }, - async function importUpdatedModule({ - acceptedPath, - timestamp, - explicitImportRequired, - isWithinCircularImport - }) { - const [acceptedPathWithoutQuery, query] = acceptedPath.split(`?`); - const importPromise = import( - /* @vite-ignore */ - base + acceptedPathWithoutQuery.slice(1) + `?${explicitImportRequired ? "import&" : ""}t=${timestamp}${query ? `&${query}` : ""}` - ); - if (isWithinCircularImport) { - importPromise.catch(() => { - console.info( - `[hmr] ${acceptedPath} failed to apply HMR as it's within a circular import. Reloading page to reset the execution order. To debug and break the circular import, you can run \`vite --debug hmr\` to log the circular dependency path if a file change triggered it.` - ); - pageReload(); - }); - } - return await importPromise; - } -); -async function handleMessage(payload) { - switch (payload.type) { - case "connected": - console.debug(`[vite] connected.`); - hmrClient.messenger.flush(); - setInterval(() => { - if (socket.readyState === socket.OPEN) { - socket.send('{"type":"ping"}'); - } - }, __HMR_TIMEOUT__); - break; - case "update": - notifyListeners("vite:beforeUpdate", payload); - if (hasDocument) { - if (isFirstUpdate && hasErrorOverlay()) { - location.reload(); - return; - } else { - if (enableOverlay) { - clearErrorOverlay(); - } - isFirstUpdate = false; - } - } - await Promise.all( - payload.updates.map(async (update) => { - if (update.type === "js-update") { - return hmrClient.queueUpdate(update); - } - const { path, timestamp } = update; - const searchUrl = cleanUrl(path); - const el = Array.from( - document.querySelectorAll("link") - ).find( - (e) => !outdatedLinkTags.has(e) && cleanUrl(e.href).includes(searchUrl) - ); - if (!el) { - return; - } - const newPath = `${base}${searchUrl.slice(1)}${searchUrl.includes("?") ? "&" : "?"}t=${timestamp}`; - return new Promise((resolve) => { - const newLinkTag = el.cloneNode(); - newLinkTag.href = new URL(newPath, el.href).href; - const removeOldEl = () => { - el.remove(); - console.debug(`[vite] css hot updated: ${searchUrl}`); - resolve(); - }; - newLinkTag.addEventListener("load", removeOldEl); - newLinkTag.addEventListener("error", removeOldEl); - outdatedLinkTags.add(el); - el.after(newLinkTag); - }); - }) - ); - notifyListeners("vite:afterUpdate", payload); - break; - case "custom": { - notifyListeners(payload.event, payload.data); - break; - } - case "full-reload": - notifyListeners("vite:beforeFullReload", payload); - if (hasDocument) { - if (payload.path && payload.path.endsWith(".html")) { - const pagePath = decodeURI(location.pathname); - const payloadPath = base + payload.path.slice(1); - if (pagePath === payloadPath || payload.path === "/index.html" || pagePath.endsWith("/") && pagePath + "index.html" === payloadPath) { - pageReload(); - } - return; - } else { - pageReload(); - } - } - break; - case "prune": - notifyListeners("vite:beforePrune", payload); - await hmrClient.prunePaths(payload.paths); - break; - case "error": { - notifyListeners("vite:error", payload); - if (hasDocument) { - const err = payload.err; - if (enableOverlay) { - createErrorOverlay(err); - } else { - console.error( - `[vite] Internal Server Error -${err.message} -${err.stack}` - ); - } - } - break; - } - default: { - const check = payload; - return check; - } - } -} -function notifyListeners(event, data) { - hmrClient.notifyListeners(event, data); -} -const enableOverlay = __HMR_ENABLE_OVERLAY__; -const hasDocument = "document" in globalThis; -function createErrorOverlay(err) { - clearErrorOverlay(); - document.body.appendChild(new ErrorOverlay(err)); -} -function clearErrorOverlay() { - document.querySelectorAll(overlayId).forEach((n) => n.close()); -} -function hasErrorOverlay() { - return document.querySelectorAll(overlayId).length; -} -async function waitForSuccessfulPing(socketProtocol2, hostAndPath, ms = 1e3) { - const pingHostProtocol = socketProtocol2 === "wss" ? "https" : "http"; - const ping = async () => { - try { - await fetch(`${pingHostProtocol}://${hostAndPath}`, { - mode: "no-cors", - headers: { - // Custom headers won't be included in a request with no-cors so (ab)use one of the - // safelisted headers to identify the ping request - Accept: "text/x-vite-ping" - } - }); - return true; - } catch { - } - return false; - }; - if (await ping()) { - return; - } - await wait(ms); - while (true) { - if (document.visibilityState === "visible") { - if (await ping()) { - break; - } - await wait(ms); - } else { - await waitForWindowShow(); - } - } -} -function wait(ms) { - return new Promise((resolve) => setTimeout(resolve, ms)); -} -function waitForWindowShow() { - return new Promise((resolve) => { - const onChange = async () => { - if (document.visibilityState === "visible") { - resolve(); - document.removeEventListener("visibilitychange", onChange); - } - }; - document.addEventListener("visibilitychange", onChange); - }); -} -const sheetsMap = /* @__PURE__ */ new Map(); -if ("document" in globalThis) { - document.querySelectorAll("style[data-vite-dev-id]").forEach((el) => { - sheetsMap.set(el.getAttribute("data-vite-dev-id"), el); - }); -} -const cspNonce = "document" in globalThis ? document.querySelector("meta[property=csp-nonce]")?.nonce : void 0; -let lastInsertedStyle; -function updateStyle(id, content) { - let style = sheetsMap.get(id); - if (!style) { - style = document.createElement("style"); - style.setAttribute("type", "text/css"); - style.setAttribute("data-vite-dev-id", id); - style.textContent = content; - if (cspNonce) { - style.setAttribute("nonce", cspNonce); - } - if (!lastInsertedStyle) { - document.head.appendChild(style); - setTimeout(() => { - lastInsertedStyle = void 0; - }, 0); - } else { - lastInsertedStyle.insertAdjacentElement("afterend", style); - } - lastInsertedStyle = style; - } else { - style.textContent = content; - } - sheetsMap.set(id, style); -} -function removeStyle(id) { - const style = sheetsMap.get(id); - if (style) { - document.head.removeChild(style); - sheetsMap.delete(id); - } -} -function createHotContext(ownerPath) { - return new HMRContext(hmrClient, ownerPath); -} -function injectQuery(url, queryToInject) { - if (url[0] !== "." && url[0] !== "/") { - return url; - } - const pathname = url.replace(/[?#].*$/, ""); - const { search, hash } = new URL(url, "http://vite.dev"); - return `${pathname}?${queryToInject}${search ? `&` + search.slice(1) : ""}${hash || ""}`; -} - -export { ErrorOverlay, createHotContext, injectQuery, removeStyle, updateStyle }; diff --git a/node_modules/vite/dist/client/env.mjs b/node_modules/vite/dist/client/env.mjs deleted file mode 100644 index b58bfc1e..00000000 --- a/node_modules/vite/dist/client/env.mjs +++ /dev/null @@ -1,24 +0,0 @@ -const context = (() => { - if (typeof globalThis !== "undefined") { - return globalThis; - } else if (typeof self !== "undefined") { - return self; - } else if (typeof window !== "undefined") { - return window; - } else { - return Function("return this")(); - } -})(); -const defines = __DEFINES__; -Object.keys(defines).forEach((key) => { - const segments = key.split("."); - let target = context; - for (let i = 0; i < segments.length; i++) { - const segment = segments[i]; - if (i === segments.length - 1) { - target[segment] = defines[key]; - } else { - target = target[segment] || (target[segment] = {}); - } - } -}); diff --git a/node_modules/vite/dist/node-cjs/publicUtils.cjs b/node_modules/vite/dist/node-cjs/publicUtils.cjs deleted file mode 100644 index e8eac711..00000000 --- a/node_modules/vite/dist/node-cjs/publicUtils.cjs +++ /dev/null @@ -1,6165 +0,0 @@ -'use strict'; - -var path$3 = require('node:path'); -var node_url = require('node:url'); -var fs$1 = require('node:fs'); -var esbuild = require('esbuild'); -var node_module = require('node:module'); -var require$$0 = require('tty'); -var require$$1 = require('util'); -var require$$0$1 = require('path'); -var require$$0$2 = require('crypto'); -var fs$2 = require('fs'); -var readline = require('node:readline'); -var require$$2 = require('os'); - -var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null; -const { version: version$2 } = JSON.parse( - fs$1.readFileSync(new URL("../../package.json", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('node-cjs/publicUtils.cjs', document.baseURI).href)))).toString() -); -const VERSION = version$2; -const FS_PREFIX = `/@fs/`; -const VITE_PACKAGE_DIR = path$3.resolve( - // import.meta.url is `dist/node/constants.js` after bundle - node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('node-cjs/publicUtils.cjs', document.baseURI).href))), - "../../.." -); -const CLIENT_ENTRY = path$3.resolve(VITE_PACKAGE_DIR, "dist/client/client.mjs"); -path$3.resolve(VITE_PACKAGE_DIR, "dist/client/env.mjs"); -path$3.dirname(CLIENT_ENTRY); - -const comma = ','.charCodeAt(0); -const semicolon = ';'.charCodeAt(0); -const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; -const intToChar = new Uint8Array(64); // 64 possible chars. -const charToInt = new Uint8Array(128); // z is 122 in ASCII -for (let i = 0; i < chars.length; i++) { - const c = chars.charCodeAt(i); - intToChar[i] = c; - charToInt[c] = i; -} -function encodeInteger(builder, num, relative) { - let delta = num - relative; - delta = delta < 0 ? (-delta << 1) | 1 : delta << 1; - do { - let clamped = delta & 0b011111; - delta >>>= 5; - if (delta > 0) - clamped |= 0b100000; - builder.write(intToChar[clamped]); - } while (delta > 0); - return num; -} - -const bufLength = 1024 * 16; -// Provide a fallback for older environments. -const td = typeof TextDecoder !== 'undefined' - ? /* #__PURE__ */ new TextDecoder() - : typeof Buffer !== 'undefined' - ? { - decode(buf) { - const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength); - return out.toString(); - }, - } - : { - decode(buf) { - let out = ''; - for (let i = 0; i < buf.length; i++) { - out += String.fromCharCode(buf[i]); - } - return out; - }, - }; -class StringWriter { - constructor() { - this.pos = 0; - this.out = ''; - this.buffer = new Uint8Array(bufLength); - } - write(v) { - const { buffer } = this; - buffer[this.pos++] = v; - if (this.pos === bufLength) { - this.out += td.decode(buffer); - this.pos = 0; - } - } - flush() { - const { buffer, out, pos } = this; - return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out; - } -} -function encode(decoded) { - const writer = new StringWriter(); - let sourcesIndex = 0; - let sourceLine = 0; - let sourceColumn = 0; - let namesIndex = 0; - for (let i = 0; i < decoded.length; i++) { - const line = decoded[i]; - if (i > 0) - writer.write(semicolon); - if (line.length === 0) - continue; - let genColumn = 0; - for (let j = 0; j < line.length; j++) { - const segment = line[j]; - if (j > 0) - writer.write(comma); - genColumn = encodeInteger(writer, segment[0], genColumn); - if (segment.length === 1) - continue; - sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex); - sourceLine = encodeInteger(writer, segment[2], sourceLine); - sourceColumn = encodeInteger(writer, segment[3], sourceColumn); - if (segment.length === 4) - continue; - namesIndex = encodeInteger(writer, segment[4], namesIndex); - } - } - return writer.flush(); -} - -function getDefaultExportFromCjs (x) { - return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; -} - -function commonjsRequire(path) { - throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'); -} - -var picocolors = {exports: {}}; - -let argv = process.argv || [], - env = process.env; -let isColorSupported = - !("NO_COLOR" in env || argv.includes("--no-color")) && - ("FORCE_COLOR" in env || - argv.includes("--color") || - process.platform === "win32" || - (commonjsRequire != null && require$$0.isatty(1) && env.TERM !== "dumb") || - "CI" in env); - -let formatter = - (open, close, replace = open) => - input => { - let string = "" + input; - let index = string.indexOf(close, open.length); - return ~index - ? open + replaceClose(string, close, replace, index) + close - : open + string + close - }; - -let replaceClose = (string, close, replace, index) => { - let result = ""; - let cursor = 0; - do { - result += string.substring(cursor, index) + replace; - cursor = index + close.length; - index = string.indexOf(close, cursor); - } while (~index) - return result + string.substring(cursor) -}; - -let createColors = (enabled = isColorSupported) => { - let init = enabled ? formatter : () => String; - return { - isColorSupported: enabled, - reset: init("\x1b[0m", "\x1b[0m"), - bold: init("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"), - dim: init("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"), - italic: init("\x1b[3m", "\x1b[23m"), - underline: init("\x1b[4m", "\x1b[24m"), - inverse: init("\x1b[7m", "\x1b[27m"), - hidden: init("\x1b[8m", "\x1b[28m"), - strikethrough: init("\x1b[9m", "\x1b[29m"), - black: init("\x1b[30m", "\x1b[39m"), - red: init("\x1b[31m", "\x1b[39m"), - green: init("\x1b[32m", "\x1b[39m"), - yellow: init("\x1b[33m", "\x1b[39m"), - blue: init("\x1b[34m", "\x1b[39m"), - magenta: init("\x1b[35m", "\x1b[39m"), - cyan: init("\x1b[36m", "\x1b[39m"), - white: init("\x1b[37m", "\x1b[39m"), - gray: init("\x1b[90m", "\x1b[39m"), - bgBlack: init("\x1b[40m", "\x1b[49m"), - bgRed: init("\x1b[41m", "\x1b[49m"), - bgGreen: init("\x1b[42m", "\x1b[49m"), - bgYellow: init("\x1b[43m", "\x1b[49m"), - bgBlue: init("\x1b[44m", "\x1b[49m"), - bgMagenta: init("\x1b[45m", "\x1b[49m"), - bgCyan: init("\x1b[46m", "\x1b[49m"), - bgWhite: init("\x1b[47m", "\x1b[49m"), - } -}; - -picocolors.exports = createColors(); -picocolors.exports.createColors = createColors; - -var picocolorsExports = picocolors.exports; -var colors = /*@__PURE__*/getDefaultExportFromCjs(picocolorsExports); - -var src = {exports: {}}; - -var browser$1 = {exports: {}}; - -/** - * Helpers. - */ - -var ms; -var hasRequiredMs; - -function requireMs () { - if (hasRequiredMs) return ms; - hasRequiredMs = 1; - var s = 1000; - var m = s * 60; - var h = m * 60; - var d = h * 24; - var w = d * 7; - var y = d * 365.25; - - /** - * Parse or format the given `val`. - * - * Options: - * - * - `long` verbose formatting [false] - * - * @param {String|Number} val - * @param {Object} [options] - * @throws {Error} throw an error if val is not a non-empty string or a number - * @return {String|Number} - * @api public - */ - - ms = function(val, options) { - options = options || {}; - var type = typeof val; - if (type === 'string' && val.length > 0) { - return parse(val); - } else if (type === 'number' && isFinite(val)) { - return options.long ? fmtLong(val) : fmtShort(val); - } - throw new Error( - 'val is not a non-empty string or a valid number. val=' + - JSON.stringify(val) - ); - }; - - /** - * Parse the given `str` and return milliseconds. - * - * @param {String} str - * @return {Number} - * @api private - */ - - function parse(str) { - str = String(str); - if (str.length > 100) { - return; - } - var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( - str - ); - if (!match) { - return; - } - var n = parseFloat(match[1]); - var type = (match[2] || 'ms').toLowerCase(); - switch (type) { - case 'years': - case 'year': - case 'yrs': - case 'yr': - case 'y': - return n * y; - case 'weeks': - case 'week': - case 'w': - return n * w; - case 'days': - case 'day': - case 'd': - return n * d; - case 'hours': - case 'hour': - case 'hrs': - case 'hr': - case 'h': - return n * h; - case 'minutes': - case 'minute': - case 'mins': - case 'min': - case 'm': - return n * m; - case 'seconds': - case 'second': - case 'secs': - case 'sec': - case 's': - return n * s; - case 'milliseconds': - case 'millisecond': - case 'msecs': - case 'msec': - case 'ms': - return n; - default: - return undefined; - } - } - - /** - * Short format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - - function fmtShort(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return Math.round(ms / d) + 'd'; - } - if (msAbs >= h) { - return Math.round(ms / h) + 'h'; - } - if (msAbs >= m) { - return Math.round(ms / m) + 'm'; - } - if (msAbs >= s) { - return Math.round(ms / s) + 's'; - } - return ms + 'ms'; - } - - /** - * Long format for `ms`. - * - * @param {Number} ms - * @return {String} - * @api private - */ - - function fmtLong(ms) { - var msAbs = Math.abs(ms); - if (msAbs >= d) { - return plural(ms, msAbs, d, 'day'); - } - if (msAbs >= h) { - return plural(ms, msAbs, h, 'hour'); - } - if (msAbs >= m) { - return plural(ms, msAbs, m, 'minute'); - } - if (msAbs >= s) { - return plural(ms, msAbs, s, 'second'); - } - return ms + ' ms'; - } - - /** - * Pluralization helper. - */ - - function plural(ms, msAbs, n, name) { - var isPlural = msAbs >= n * 1.5; - return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : ''); - } - return ms; -} - -var common; -var hasRequiredCommon; - -function requireCommon () { - if (hasRequiredCommon) return common; - hasRequiredCommon = 1; - /** - * This is the common logic for both the Node.js and web browser - * implementations of `debug()`. - */ - - function setup(env) { - createDebug.debug = createDebug; - createDebug.default = createDebug; - createDebug.coerce = coerce; - createDebug.disable = disable; - createDebug.enable = enable; - createDebug.enabled = enabled; - createDebug.humanize = requireMs(); - createDebug.destroy = destroy; - - Object.keys(env).forEach(key => { - createDebug[key] = env[key]; - }); - - /** - * The currently active debug mode names, and names to skip. - */ - - createDebug.names = []; - createDebug.skips = []; - - /** - * Map of special "%n" handling functions, for the debug "format" argument. - * - * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". - */ - createDebug.formatters = {}; - - /** - * Selects a color for a debug namespace - * @param {String} namespace The namespace string for the debug instance to be colored - * @return {Number|String} An ANSI color code for the given namespace - * @api private - */ - function selectColor(namespace) { - let hash = 0; - - for (let i = 0; i < namespace.length; i++) { - hash = ((hash << 5) - hash) + namespace.charCodeAt(i); - hash |= 0; // Convert to 32bit integer - } - - return createDebug.colors[Math.abs(hash) % createDebug.colors.length]; - } - createDebug.selectColor = selectColor; - - /** - * Create a debugger with the given `namespace`. - * - * @param {String} namespace - * @return {Function} - * @api public - */ - function createDebug(namespace) { - let prevTime; - let enableOverride = null; - let namespacesCache; - let enabledCache; - - function debug(...args) { - // Disabled? - if (!debug.enabled) { - return; - } - - const self = debug; - - // Set `diff` timestamp - const curr = Number(new Date()); - const ms = curr - (prevTime || curr); - self.diff = ms; - self.prev = prevTime; - self.curr = curr; - prevTime = curr; - - args[0] = createDebug.coerce(args[0]); - - if (typeof args[0] !== 'string') { - // Anything else let's inspect with %O - args.unshift('%O'); - } - - // Apply any `formatters` transformations - let index = 0; - args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => { - // If we encounter an escaped % then don't increase the array index - if (match === '%%') { - return '%'; - } - index++; - const formatter = createDebug.formatters[format]; - if (typeof formatter === 'function') { - const val = args[index]; - match = formatter.call(self, val); - - // Now we need to remove `args[index]` since it's inlined in the `format` - args.splice(index, 1); - index--; - } - return match; - }); - - // Apply env-specific formatting (colors, etc.) - createDebug.formatArgs.call(self, args); - - const logFn = self.log || createDebug.log; - logFn.apply(self, args); - } - - debug.namespace = namespace; - debug.useColors = createDebug.useColors(); - debug.color = createDebug.selectColor(namespace); - debug.extend = extend; - debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release. - - Object.defineProperty(debug, 'enabled', { - enumerable: true, - configurable: false, - get: () => { - if (enableOverride !== null) { - return enableOverride; - } - if (namespacesCache !== createDebug.namespaces) { - namespacesCache = createDebug.namespaces; - enabledCache = createDebug.enabled(namespace); - } - - return enabledCache; - }, - set: v => { - enableOverride = v; - } - }); - - // Env-specific initialization logic for debug instances - if (typeof createDebug.init === 'function') { - createDebug.init(debug); - } - - return debug; - } - - function extend(namespace, delimiter) { - const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace); - newDebug.log = this.log; - return newDebug; - } - - /** - * Enables a debug mode by namespaces. This can include modes - * separated by a colon and wildcards. - * - * @param {String} namespaces - * @api public - */ - function enable(namespaces) { - createDebug.save(namespaces); - createDebug.namespaces = namespaces; - - createDebug.names = []; - createDebug.skips = []; - - let i; - const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/); - const len = split.length; - - for (i = 0; i < len; i++) { - if (!split[i]) { - // ignore empty strings - continue; - } - - namespaces = split[i].replace(/\*/g, '.*?'); - - if (namespaces[0] === '-') { - createDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$')); - } else { - createDebug.names.push(new RegExp('^' + namespaces + '$')); - } - } - } - - /** - * Disable debug output. - * - * @return {String} namespaces - * @api public - */ - function disable() { - const namespaces = [ - ...createDebug.names.map(toNamespace), - ...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace) - ].join(','); - createDebug.enable(''); - return namespaces; - } - - /** - * Returns true if the given mode name is enabled, false otherwise. - * - * @param {String} name - * @return {Boolean} - * @api public - */ - function enabled(name) { - if (name[name.length - 1] === '*') { - return true; - } - - let i; - let len; - - for (i = 0, len = createDebug.skips.length; i < len; i++) { - if (createDebug.skips[i].test(name)) { - return false; - } - } - - for (i = 0, len = createDebug.names.length; i < len; i++) { - if (createDebug.names[i].test(name)) { - return true; - } - } - - return false; - } - - /** - * Convert regexp to namespace - * - * @param {RegExp} regxep - * @return {String} namespace - * @api private - */ - function toNamespace(regexp) { - return regexp.toString() - .substring(2, regexp.toString().length - 2) - .replace(/\.\*\?$/, '*'); - } - - /** - * Coerce `val`. - * - * @param {Mixed} val - * @return {Mixed} - * @api private - */ - function coerce(val) { - if (val instanceof Error) { - return val.stack || val.message; - } - return val; - } - - /** - * XXX DO NOT USE. This is a temporary stub function. - * XXX It WILL be removed in the next major release. - */ - function destroy() { - console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'); - } - - createDebug.enable(createDebug.load()); - - return createDebug; - } - - common = setup; - return common; -} - -/* eslint-env browser */ - -var hasRequiredBrowser; - -function requireBrowser () { - if (hasRequiredBrowser) return browser$1.exports; - hasRequiredBrowser = 1; - (function (module, exports) { - /** - * This is the web browser implementation of `debug()`. - */ - - exports.formatArgs = formatArgs; - exports.save = save; - exports.load = load; - exports.useColors = useColors; - exports.storage = localstorage(); - exports.destroy = (() => { - let warned = false; - - return () => { - if (!warned) { - warned = true; - console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'); - } - }; - })(); - - /** - * Colors. - */ - - exports.colors = [ - '#0000CC', - '#0000FF', - '#0033CC', - '#0033FF', - '#0066CC', - '#0066FF', - '#0099CC', - '#0099FF', - '#00CC00', - '#00CC33', - '#00CC66', - '#00CC99', - '#00CCCC', - '#00CCFF', - '#3300CC', - '#3300FF', - '#3333CC', - '#3333FF', - '#3366CC', - '#3366FF', - '#3399CC', - '#3399FF', - '#33CC00', - '#33CC33', - '#33CC66', - '#33CC99', - '#33CCCC', - '#33CCFF', - '#6600CC', - '#6600FF', - '#6633CC', - '#6633FF', - '#66CC00', - '#66CC33', - '#9900CC', - '#9900FF', - '#9933CC', - '#9933FF', - '#99CC00', - '#99CC33', - '#CC0000', - '#CC0033', - '#CC0066', - '#CC0099', - '#CC00CC', - '#CC00FF', - '#CC3300', - '#CC3333', - '#CC3366', - '#CC3399', - '#CC33CC', - '#CC33FF', - '#CC6600', - '#CC6633', - '#CC9900', - '#CC9933', - '#CCCC00', - '#CCCC33', - '#FF0000', - '#FF0033', - '#FF0066', - '#FF0099', - '#FF00CC', - '#FF00FF', - '#FF3300', - '#FF3333', - '#FF3366', - '#FF3399', - '#FF33CC', - '#FF33FF', - '#FF6600', - '#FF6633', - '#FF9900', - '#FF9933', - '#FFCC00', - '#FFCC33' - ]; - - /** - * Currently only WebKit-based Web Inspectors, Firefox >= v31, - * and the Firebug extension (any Firefox version) are known - * to support "%c" CSS customizations. - * - * TODO: add a `localStorage` variable to explicitly enable/disable colors - */ - - // eslint-disable-next-line complexity - function useColors() { - // NB: In an Electron preload script, document will be defined but not fully - // initialized. Since we know we're in Chrome, we'll just detect this case - // explicitly - if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) { - return true; - } - - // Internet Explorer and Edge do not support colors. - if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) { - return false; - } - - let m; - - // Is webkit? http://stackoverflow.com/a/16459606/376773 - // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 - return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || - // Is firebug? http://stackoverflow.com/a/398120/376773 - (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || - // Is firefox >= v31? - // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages - (typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31) || - // Double check webkit in userAgent just in case we are in a worker - (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); - } - - /** - * Colorize log arguments if enabled. - * - * @api public - */ - - function formatArgs(args) { - args[0] = (this.useColors ? '%c' : '') + - this.namespace + - (this.useColors ? ' %c' : ' ') + - args[0] + - (this.useColors ? '%c ' : ' ') + - '+' + module.exports.humanize(this.diff); - - if (!this.useColors) { - return; - } - - const c = 'color: ' + this.color; - args.splice(1, 0, c, 'color: inherit'); - - // The final "%c" is somewhat tricky, because there could be other - // arguments passed either before or after the %c, so we need to - // figure out the correct index to insert the CSS into - let index = 0; - let lastC = 0; - args[0].replace(/%[a-zA-Z%]/g, match => { - if (match === '%%') { - return; - } - index++; - if (match === '%c') { - // We only are interested in the *last* %c - // (the user may have provided their own) - lastC = index; - } - }); - - args.splice(lastC, 0, c); - } - - /** - * Invokes `console.debug()` when available. - * No-op when `console.debug` is not a "function". - * If `console.debug` is not available, falls back - * to `console.log`. - * - * @api public - */ - exports.log = console.debug || console.log || (() => {}); - - /** - * Save `namespaces`. - * - * @param {String} namespaces - * @api private - */ - function save(namespaces) { - try { - if (namespaces) { - exports.storage.setItem('debug', namespaces); - } else { - exports.storage.removeItem('debug'); - } - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } - } - - /** - * Load `namespaces`. - * - * @return {String} returns the previously persisted debug modes - * @api private - */ - function load() { - let r; - try { - r = exports.storage.getItem('debug'); - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } - - // If debug isn't set in LS, and we're in Electron, try to load $DEBUG - if (!r && typeof process !== 'undefined' && 'env' in process) { - r = process.env.DEBUG; - } - - return r; - } - - /** - * Localstorage attempts to return the localstorage. - * - * This is necessary because safari throws - * when a user disables cookies/localstorage - * and you attempt to access it. - * - * @return {LocalStorage} - * @api private - */ - - function localstorage() { - try { - // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context - // The Browser also has localStorage in the global context. - return localStorage; - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } - } - - module.exports = requireCommon()(exports); - - const {formatters} = module.exports; - - /** - * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. - */ - - formatters.j = function (v) { - try { - return JSON.stringify(v); - } catch (error) { - return '[UnexpectedJSONParseError]: ' + error.message; - } - }; - } (browser$1, browser$1.exports)); - return browser$1.exports; -} - -var node = {exports: {}}; - -/** - * Module dependencies. - */ - -var hasRequiredNode; - -function requireNode () { - if (hasRequiredNode) return node.exports; - hasRequiredNode = 1; - (function (module, exports) { - const tty = require$$0; - const util = require$$1; - - /** - * This is the Node.js implementation of `debug()`. - */ - - exports.init = init; - exports.log = log; - exports.formatArgs = formatArgs; - exports.save = save; - exports.load = load; - exports.useColors = useColors; - exports.destroy = util.deprecate( - () => {}, - 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.' - ); - - /** - * Colors. - */ - - exports.colors = [6, 2, 3, 4, 5, 1]; - - try { - // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json) - // eslint-disable-next-line import/no-extraneous-dependencies - const supportsColor = require('supports-color'); - - if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) { - exports.colors = [ - 20, - 21, - 26, - 27, - 32, - 33, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 56, - 57, - 62, - 63, - 68, - 69, - 74, - 75, - 76, - 77, - 78, - 79, - 80, - 81, - 92, - 93, - 98, - 99, - 112, - 113, - 128, - 129, - 134, - 135, - 148, - 149, - 160, - 161, - 162, - 163, - 164, - 165, - 166, - 167, - 168, - 169, - 170, - 171, - 172, - 173, - 178, - 179, - 184, - 185, - 196, - 197, - 198, - 199, - 200, - 201, - 202, - 203, - 204, - 205, - 206, - 207, - 208, - 209, - 214, - 215, - 220, - 221 - ]; - } - } catch (error) { - // Swallow - we only care if `supports-color` is available; it doesn't have to be. - } - - /** - * Build up the default `inspectOpts` object from the environment variables. - * - * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js - */ - - exports.inspectOpts = Object.keys(process.env).filter(key => { - return /^debug_/i.test(key); - }).reduce((obj, key) => { - // Camel-case - const prop = key - .substring(6) - .toLowerCase() - .replace(/_([a-z])/g, (_, k) => { - return k.toUpperCase(); - }); - - // Coerce string value into JS value - let val = process.env[key]; - if (/^(yes|on|true|enabled)$/i.test(val)) { - val = true; - } else if (/^(no|off|false|disabled)$/i.test(val)) { - val = false; - } else if (val === 'null') { - val = null; - } else { - val = Number(val); - } - - obj[prop] = val; - return obj; - }, {}); - - /** - * Is stdout a TTY? Colored output is enabled when `true`. - */ - - function useColors() { - return 'colors' in exports.inspectOpts ? - Boolean(exports.inspectOpts.colors) : - tty.isatty(process.stderr.fd); - } - - /** - * Adds ANSI color escape codes if enabled. - * - * @api public - */ - - function formatArgs(args) { - const {namespace: name, useColors} = this; - - if (useColors) { - const c = this.color; - const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c); - const prefix = ` ${colorCode};1m${name} \u001B[0m`; - - args[0] = prefix + args[0].split('\n').join('\n' + prefix); - args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m'); - } else { - args[0] = getDate() + name + ' ' + args[0]; - } - } - - function getDate() { - if (exports.inspectOpts.hideDate) { - return ''; - } - return new Date().toISOString() + ' '; - } - - /** - * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr. - */ - - function log(...args) { - return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\n'); - } - - /** - * Save `namespaces`. - * - * @param {String} namespaces - * @api private - */ - function save(namespaces) { - if (namespaces) { - process.env.DEBUG = namespaces; - } else { - // If you set a process.env field to null or undefined, it gets cast to the - // string 'null' or 'undefined'. Just delete instead. - delete process.env.DEBUG; - } - } - - /** - * Load `namespaces`. - * - * @return {String} returns the previously persisted debug modes - * @api private - */ - - function load() { - return process.env.DEBUG; - } - - /** - * Init logic for `debug` instances. - * - * Create a new `inspectOpts` object in case `useColors` is set - * differently for a particular `debug` instance. - */ - - function init(debug) { - debug.inspectOpts = {}; - - const keys = Object.keys(exports.inspectOpts); - for (let i = 0; i < keys.length; i++) { - debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]]; - } - } - - module.exports = requireCommon()(exports); - - const {formatters} = module.exports; - - /** - * Map %o to `util.inspect()`, all on a single line. - */ - - formatters.o = function (v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts) - .split('\n') - .map(str => str.trim()) - .join(' '); - }; - - /** - * Map %O to `util.inspect()`, allowing multiple lines if needed. - */ - - formatters.O = function (v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts); - }; - } (node, node.exports)); - return node.exports; -} - -/** - * Detect Electron renderer / nwjs process, which is node, but we should - * treat as a browser. - */ - -if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { - src.exports = requireBrowser(); -} else { - src.exports = requireNode(); -} - -var srcExports = src.exports; -var debug$2 = /*@__PURE__*/getDefaultExportFromCjs(srcExports); - -var utils$3 = {}; - -const path$2 = require$$0$1; -const WIN_SLASH = '\\\\/'; -const WIN_NO_SLASH = `[^${WIN_SLASH}]`; - -/** - * Posix glob regex - */ - -const DOT_LITERAL = '\\.'; -const PLUS_LITERAL = '\\+'; -const QMARK_LITERAL = '\\?'; -const SLASH_LITERAL = '\\/'; -const ONE_CHAR = '(?=.)'; -const QMARK = '[^/]'; -const END_ANCHOR = `(?:${SLASH_LITERAL}|$)`; -const START_ANCHOR = `(?:^|${SLASH_LITERAL})`; -const DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`; -const NO_DOT = `(?!${DOT_LITERAL})`; -const NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`; -const NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`; -const NO_DOTS_SLASH = `(?!${DOTS_SLASH})`; -const QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`; -const STAR = `${QMARK}*?`; - -const POSIX_CHARS = { - DOT_LITERAL, - PLUS_LITERAL, - QMARK_LITERAL, - SLASH_LITERAL, - ONE_CHAR, - QMARK, - END_ANCHOR, - DOTS_SLASH, - NO_DOT, - NO_DOTS, - NO_DOT_SLASH, - NO_DOTS_SLASH, - QMARK_NO_DOT, - STAR, - START_ANCHOR -}; - -/** - * Windows glob regex - */ - -const WINDOWS_CHARS = { - ...POSIX_CHARS, - - SLASH_LITERAL: `[${WIN_SLASH}]`, - QMARK: WIN_NO_SLASH, - STAR: `${WIN_NO_SLASH}*?`, - DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`, - NO_DOT: `(?!${DOT_LITERAL})`, - NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`, - NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`, - NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`, - QMARK_NO_DOT: `[^.${WIN_SLASH}]`, - START_ANCHOR: `(?:^|[${WIN_SLASH}])`, - END_ANCHOR: `(?:[${WIN_SLASH}]|$)` -}; - -/** - * POSIX Bracket Regex - */ - -const POSIX_REGEX_SOURCE$1 = { - alnum: 'a-zA-Z0-9', - alpha: 'a-zA-Z', - ascii: '\\x00-\\x7F', - blank: ' \\t', - cntrl: '\\x00-\\x1F\\x7F', - digit: '0-9', - graph: '\\x21-\\x7E', - lower: 'a-z', - print: '\\x20-\\x7E ', - punct: '\\-!"#$%&\'()\\*+,./:;<=>?@[\\]^_`{|}~', - space: ' \\t\\r\\n\\v\\f', - upper: 'A-Z', - word: 'A-Za-z0-9_', - xdigit: 'A-Fa-f0-9' -}; - -var constants$2 = { - MAX_LENGTH: 1024 * 64, - POSIX_REGEX_SOURCE: POSIX_REGEX_SOURCE$1, - - // regular expressions - REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, - REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, - REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, - REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, - REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, - REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, - - // Replace globs with equivalent patterns to reduce parsing time. - REPLACEMENTS: { - '***': '*', - '**/**': '**', - '**/**/**': '**' - }, - - // Digits - CHAR_0: 48, /* 0 */ - CHAR_9: 57, /* 9 */ - - // Alphabet chars. - CHAR_UPPERCASE_A: 65, /* A */ - CHAR_LOWERCASE_A: 97, /* a */ - CHAR_UPPERCASE_Z: 90, /* Z */ - CHAR_LOWERCASE_Z: 122, /* z */ - - CHAR_LEFT_PARENTHESES: 40, /* ( */ - CHAR_RIGHT_PARENTHESES: 41, /* ) */ - - CHAR_ASTERISK: 42, /* * */ - - // Non-alphabetic chars. - CHAR_AMPERSAND: 38, /* & */ - CHAR_AT: 64, /* @ */ - CHAR_BACKWARD_SLASH: 92, /* \ */ - CHAR_CARRIAGE_RETURN: 13, /* \r */ - CHAR_CIRCUMFLEX_ACCENT: 94, /* ^ */ - CHAR_COLON: 58, /* : */ - CHAR_COMMA: 44, /* , */ - CHAR_DOT: 46, /* . */ - CHAR_DOUBLE_QUOTE: 34, /* " */ - CHAR_EQUAL: 61, /* = */ - CHAR_EXCLAMATION_MARK: 33, /* ! */ - CHAR_FORM_FEED: 12, /* \f */ - CHAR_FORWARD_SLASH: 47, /* / */ - CHAR_GRAVE_ACCENT: 96, /* ` */ - CHAR_HASH: 35, /* # */ - CHAR_HYPHEN_MINUS: 45, /* - */ - CHAR_LEFT_ANGLE_BRACKET: 60, /* < */ - CHAR_LEFT_CURLY_BRACE: 123, /* { */ - CHAR_LEFT_SQUARE_BRACKET: 91, /* [ */ - CHAR_LINE_FEED: 10, /* \n */ - CHAR_NO_BREAK_SPACE: 160, /* \u00A0 */ - CHAR_PERCENT: 37, /* % */ - CHAR_PLUS: 43, /* + */ - CHAR_QUESTION_MARK: 63, /* ? */ - CHAR_RIGHT_ANGLE_BRACKET: 62, /* > */ - CHAR_RIGHT_CURLY_BRACE: 125, /* } */ - CHAR_RIGHT_SQUARE_BRACKET: 93, /* ] */ - CHAR_SEMICOLON: 59, /* ; */ - CHAR_SINGLE_QUOTE: 39, /* ' */ - CHAR_SPACE: 32, /* */ - CHAR_TAB: 9, /* \t */ - CHAR_UNDERSCORE: 95, /* _ */ - CHAR_VERTICAL_LINE: 124, /* | */ - CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, /* \uFEFF */ - - SEP: path$2.sep, - - /** - * Create EXTGLOB_CHARS - */ - - extglobChars(chars) { - return { - '!': { type: 'negate', open: '(?:(?!(?:', close: `))${chars.STAR})` }, - '?': { type: 'qmark', open: '(?:', close: ')?' }, - '+': { type: 'plus', open: '(?:', close: ')+' }, - '*': { type: 'star', open: '(?:', close: ')*' }, - '@': { type: 'at', open: '(?:', close: ')' } - }; - }, - - /** - * Create GLOB_CHARS - */ - - globChars(win32) { - return win32 === true ? WINDOWS_CHARS : POSIX_CHARS; - } -}; - -(function (exports) { - - const path = require$$0$1; - const win32 = process.platform === 'win32'; - const { - REGEX_BACKSLASH, - REGEX_REMOVE_BACKSLASH, - REGEX_SPECIAL_CHARS, - REGEX_SPECIAL_CHARS_GLOBAL - } = constants$2; - - exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val); - exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str); - exports.isRegexChar = str => str.length === 1 && exports.hasRegexChars(str); - exports.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1'); - exports.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/'); - - exports.removeBackslashes = str => { - return str.replace(REGEX_REMOVE_BACKSLASH, match => { - return match === '\\' ? '' : match; - }); - }; - - exports.supportsLookbehinds = () => { - const segs = process.version.slice(1).split('.').map(Number); - if (segs.length === 3 && segs[0] >= 9 || (segs[0] === 8 && segs[1] >= 10)) { - return true; - } - return false; - }; - - exports.isWindows = options => { - if (options && typeof options.windows === 'boolean') { - return options.windows; - } - return win32 === true || path.sep === '\\'; - }; - - exports.escapeLast = (input, char, lastIdx) => { - const idx = input.lastIndexOf(char, lastIdx); - if (idx === -1) return input; - if (input[idx - 1] === '\\') return exports.escapeLast(input, char, idx - 1); - return `${input.slice(0, idx)}\\${input.slice(idx)}`; - }; - - exports.removePrefix = (input, state = {}) => { - let output = input; - if (output.startsWith('./')) { - output = output.slice(2); - state.prefix = './'; - } - return output; - }; - - exports.wrapOutput = (input, state = {}, options = {}) => { - const prepend = options.contains ? '' : '^'; - const append = options.contains ? '' : '$'; - - let output = `${prepend}(?:${input})${append}`; - if (state.negated === true) { - output = `(?:^(?!${output}).*$)`; - } - return output; - }; -} (utils$3)); - -const utils$2 = utils$3; -const { - CHAR_ASTERISK, /* * */ - CHAR_AT, /* @ */ - CHAR_BACKWARD_SLASH, /* \ */ - CHAR_COMMA, /* , */ - CHAR_DOT, /* . */ - CHAR_EXCLAMATION_MARK, /* ! */ - CHAR_FORWARD_SLASH, /* / */ - CHAR_LEFT_CURLY_BRACE, /* { */ - CHAR_LEFT_PARENTHESES, /* ( */ - CHAR_LEFT_SQUARE_BRACKET, /* [ */ - CHAR_PLUS, /* + */ - CHAR_QUESTION_MARK, /* ? */ - CHAR_RIGHT_CURLY_BRACE, /* } */ - CHAR_RIGHT_PARENTHESES, /* ) */ - CHAR_RIGHT_SQUARE_BRACKET /* ] */ -} = constants$2; - -const isPathSeparator = code => { - return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH; -}; - -const depth = token => { - if (token.isPrefix !== true) { - token.depth = token.isGlobstar ? Infinity : 1; - } -}; - -/** - * Quickly scans a glob pattern and returns an object with a handful of - * useful properties, like `isGlob`, `path` (the leading non-glob, if it exists), - * `glob` (the actual pattern), `negated` (true if the path starts with `!` but not - * with `!(`) and `negatedExtglob` (true if the path starts with `!(`). - * - * ```js - * const pm = require('picomatch'); - * console.log(pm.scan('foo/bar/*.js')); - * { isGlob: true, input: 'foo/bar/*.js', base: 'foo/bar', glob: '*.js' } - * ``` - * @param {String} `str` - * @param {Object} `options` - * @return {Object} Returns an object with tokens and regex source string. - * @api public - */ - -const scan$1 = (input, options) => { - const opts = options || {}; - - const length = input.length - 1; - const scanToEnd = opts.parts === true || opts.scanToEnd === true; - const slashes = []; - const tokens = []; - const parts = []; - - let str = input; - let index = -1; - let start = 0; - let lastIndex = 0; - let isBrace = false; - let isBracket = false; - let isGlob = false; - let isExtglob = false; - let isGlobstar = false; - let braceEscaped = false; - let backslashes = false; - let negated = false; - let negatedExtglob = false; - let finished = false; - let braces = 0; - let prev; - let code; - let token = { value: '', depth: 0, isGlob: false }; - - const eos = () => index >= length; - const peek = () => str.charCodeAt(index + 1); - const advance = () => { - prev = code; - return str.charCodeAt(++index); - }; - - while (index < length) { - code = advance(); - let next; - - if (code === CHAR_BACKWARD_SLASH) { - backslashes = token.backslashes = true; - code = advance(); - - if (code === CHAR_LEFT_CURLY_BRACE) { - braceEscaped = true; - } - continue; - } - - if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) { - braces++; - - while (eos() !== true && (code = advance())) { - if (code === CHAR_BACKWARD_SLASH) { - backslashes = token.backslashes = true; - advance(); - continue; - } - - if (code === CHAR_LEFT_CURLY_BRACE) { - braces++; - continue; - } - - if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) { - isBrace = token.isBrace = true; - isGlob = token.isGlob = true; - finished = true; - - if (scanToEnd === true) { - continue; - } - - break; - } - - if (braceEscaped !== true && code === CHAR_COMMA) { - isBrace = token.isBrace = true; - isGlob = token.isGlob = true; - finished = true; - - if (scanToEnd === true) { - continue; - } - - break; - } - - if (code === CHAR_RIGHT_CURLY_BRACE) { - braces--; - - if (braces === 0) { - braceEscaped = false; - isBrace = token.isBrace = true; - finished = true; - break; - } - } - } - - if (scanToEnd === true) { - continue; - } - - break; - } - - if (code === CHAR_FORWARD_SLASH) { - slashes.push(index); - tokens.push(token); - token = { value: '', depth: 0, isGlob: false }; - - if (finished === true) continue; - if (prev === CHAR_DOT && index === (start + 1)) { - start += 2; - continue; - } - - lastIndex = index + 1; - continue; - } - - if (opts.noext !== true) { - const isExtglobChar = code === CHAR_PLUS - || code === CHAR_AT - || code === CHAR_ASTERISK - || code === CHAR_QUESTION_MARK - || code === CHAR_EXCLAMATION_MARK; - - if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) { - isGlob = token.isGlob = true; - isExtglob = token.isExtglob = true; - finished = true; - if (code === CHAR_EXCLAMATION_MARK && index === start) { - negatedExtglob = true; - } - - if (scanToEnd === true) { - while (eos() !== true && (code = advance())) { - if (code === CHAR_BACKWARD_SLASH) { - backslashes = token.backslashes = true; - code = advance(); - continue; - } - - if (code === CHAR_RIGHT_PARENTHESES) { - isGlob = token.isGlob = true; - finished = true; - break; - } - } - continue; - } - break; - } - } - - if (code === CHAR_ASTERISK) { - if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true; - isGlob = token.isGlob = true; - finished = true; - - if (scanToEnd === true) { - continue; - } - break; - } - - if (code === CHAR_QUESTION_MARK) { - isGlob = token.isGlob = true; - finished = true; - - if (scanToEnd === true) { - continue; - } - break; - } - - if (code === CHAR_LEFT_SQUARE_BRACKET) { - while (eos() !== true && (next = advance())) { - if (next === CHAR_BACKWARD_SLASH) { - backslashes = token.backslashes = true; - advance(); - continue; - } - - if (next === CHAR_RIGHT_SQUARE_BRACKET) { - isBracket = token.isBracket = true; - isGlob = token.isGlob = true; - finished = true; - break; - } - } - - if (scanToEnd === true) { - continue; - } - - break; - } - - if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) { - negated = token.negated = true; - start++; - continue; - } - - if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) { - isGlob = token.isGlob = true; - - if (scanToEnd === true) { - while (eos() !== true && (code = advance())) { - if (code === CHAR_LEFT_PARENTHESES) { - backslashes = token.backslashes = true; - code = advance(); - continue; - } - - if (code === CHAR_RIGHT_PARENTHESES) { - finished = true; - break; - } - } - continue; - } - break; - } - - if (isGlob === true) { - finished = true; - - if (scanToEnd === true) { - continue; - } - - break; - } - } - - if (opts.noext === true) { - isExtglob = false; - isGlob = false; - } - - let base = str; - let prefix = ''; - let glob = ''; - - if (start > 0) { - prefix = str.slice(0, start); - str = str.slice(start); - lastIndex -= start; - } - - if (base && isGlob === true && lastIndex > 0) { - base = str.slice(0, lastIndex); - glob = str.slice(lastIndex); - } else if (isGlob === true) { - base = ''; - glob = str; - } else { - base = str; - } - - if (base && base !== '' && base !== '/' && base !== str) { - if (isPathSeparator(base.charCodeAt(base.length - 1))) { - base = base.slice(0, -1); - } - } - - if (opts.unescape === true) { - if (glob) glob = utils$2.removeBackslashes(glob); - - if (base && backslashes === true) { - base = utils$2.removeBackslashes(base); - } - } - - const state = { - prefix, - input, - start, - base, - glob, - isBrace, - isBracket, - isGlob, - isExtglob, - isGlobstar, - negated, - negatedExtglob - }; - - if (opts.tokens === true) { - state.maxDepth = 0; - if (!isPathSeparator(code)) { - tokens.push(token); - } - state.tokens = tokens; - } - - if (opts.parts === true || opts.tokens === true) { - let prevIndex; - - for (let idx = 0; idx < slashes.length; idx++) { - const n = prevIndex ? prevIndex + 1 : start; - const i = slashes[idx]; - const value = input.slice(n, i); - if (opts.tokens) { - if (idx === 0 && start !== 0) { - tokens[idx].isPrefix = true; - tokens[idx].value = prefix; - } else { - tokens[idx].value = value; - } - depth(tokens[idx]); - state.maxDepth += tokens[idx].depth; - } - if (idx !== 0 || value !== '') { - parts.push(value); - } - prevIndex = i; - } - - if (prevIndex && prevIndex + 1 < input.length) { - const value = input.slice(prevIndex + 1); - parts.push(value); - - if (opts.tokens) { - tokens[tokens.length - 1].value = value; - depth(tokens[tokens.length - 1]); - state.maxDepth += tokens[tokens.length - 1].depth; - } - } - - state.slashes = slashes; - state.parts = parts; - } - - return state; -}; - -var scan_1 = scan$1; - -const constants$1 = constants$2; -const utils$1 = utils$3; - -/** - * Constants - */ - -const { - MAX_LENGTH, - POSIX_REGEX_SOURCE, - REGEX_NON_SPECIAL_CHARS, - REGEX_SPECIAL_CHARS_BACKREF, - REPLACEMENTS -} = constants$1; - -/** - * Helpers - */ - -const expandRange = (args, options) => { - if (typeof options.expandRange === 'function') { - return options.expandRange(...args, options); - } - - args.sort(); - const value = `[${args.join('-')}]`; - - return value; -}; - -/** - * Create the message for a syntax error - */ - -const syntaxError = (type, char) => { - return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`; -}; - -/** - * Parse the given input string. - * @param {String} input - * @param {Object} options - * @return {Object} - */ - -const parse$2 = (input, options) => { - if (typeof input !== 'string') { - throw new TypeError('Expected a string'); - } - - input = REPLACEMENTS[input] || input; - - const opts = { ...options }; - const max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; - - let len = input.length; - if (len > max) { - throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`); - } - - const bos = { type: 'bos', value: '', output: opts.prepend || '' }; - const tokens = [bos]; - - const capture = opts.capture ? '' : '?:'; - const win32 = utils$1.isWindows(options); - - // create constants based on platform, for windows or posix - const PLATFORM_CHARS = constants$1.globChars(win32); - const EXTGLOB_CHARS = constants$1.extglobChars(PLATFORM_CHARS); - - const { - DOT_LITERAL, - PLUS_LITERAL, - SLASH_LITERAL, - ONE_CHAR, - DOTS_SLASH, - NO_DOT, - NO_DOT_SLASH, - NO_DOTS_SLASH, - QMARK, - QMARK_NO_DOT, - STAR, - START_ANCHOR - } = PLATFORM_CHARS; - - const globstar = opts => { - return `(${capture}(?:(?!${START_ANCHOR}${opts.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`; - }; - - const nodot = opts.dot ? '' : NO_DOT; - const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT; - let star = opts.bash === true ? globstar(opts) : STAR; - - if (opts.capture) { - star = `(${star})`; - } - - // minimatch options support - if (typeof opts.noext === 'boolean') { - opts.noextglob = opts.noext; - } - - const state = { - input, - index: -1, - start: 0, - dot: opts.dot === true, - consumed: '', - output: '', - prefix: '', - backtrack: false, - negated: false, - brackets: 0, - braces: 0, - parens: 0, - quotes: 0, - globstar: false, - tokens - }; - - input = utils$1.removePrefix(input, state); - len = input.length; - - const extglobs = []; - const braces = []; - const stack = []; - let prev = bos; - let value; - - /** - * Tokenizing helpers - */ - - const eos = () => state.index === len - 1; - const peek = state.peek = (n = 1) => input[state.index + n]; - const advance = state.advance = () => input[++state.index] || ''; - const remaining = () => input.slice(state.index + 1); - const consume = (value = '', num = 0) => { - state.consumed += value; - state.index += num; - }; - - const append = token => { - state.output += token.output != null ? token.output : token.value; - consume(token.value); - }; - - const negate = () => { - let count = 1; - - while (peek() === '!' && (peek(2) !== '(' || peek(3) === '?')) { - advance(); - state.start++; - count++; - } - - if (count % 2 === 0) { - return false; - } - - state.negated = true; - state.start++; - return true; - }; - - const increment = type => { - state[type]++; - stack.push(type); - }; - - const decrement = type => { - state[type]--; - stack.pop(); - }; - - /** - * Push tokens onto the tokens array. This helper speeds up - * tokenizing by 1) helping us avoid backtracking as much as possible, - * and 2) helping us avoid creating extra tokens when consecutive - * characters are plain text. This improves performance and simplifies - * lookbehinds. - */ - - const push = tok => { - if (prev.type === 'globstar') { - const isBrace = state.braces > 0 && (tok.type === 'comma' || tok.type === 'brace'); - const isExtglob = tok.extglob === true || (extglobs.length && (tok.type === 'pipe' || tok.type === 'paren')); - - if (tok.type !== 'slash' && tok.type !== 'paren' && !isBrace && !isExtglob) { - state.output = state.output.slice(0, -prev.output.length); - prev.type = 'star'; - prev.value = '*'; - prev.output = star; - state.output += prev.output; - } - } - - if (extglobs.length && tok.type !== 'paren') { - extglobs[extglobs.length - 1].inner += tok.value; - } - - if (tok.value || tok.output) append(tok); - if (prev && prev.type === 'text' && tok.type === 'text') { - prev.value += tok.value; - prev.output = (prev.output || '') + tok.value; - return; - } - - tok.prev = prev; - tokens.push(tok); - prev = tok; - }; - - const extglobOpen = (type, value) => { - const token = { ...EXTGLOB_CHARS[value], conditions: 1, inner: '' }; - - token.prev = prev; - token.parens = state.parens; - token.output = state.output; - const output = (opts.capture ? '(' : '') + token.open; - - increment('parens'); - push({ type, value, output: state.output ? '' : ONE_CHAR }); - push({ type: 'paren', extglob: true, value: advance(), output }); - extglobs.push(token); - }; - - const extglobClose = token => { - let output = token.close + (opts.capture ? ')' : ''); - let rest; - - if (token.type === 'negate') { - let extglobStar = star; - - if (token.inner && token.inner.length > 1 && token.inner.includes('/')) { - extglobStar = globstar(opts); - } - - if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) { - output = token.close = `)$))${extglobStar}`; - } - - if (token.inner.includes('*') && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) { - // Any non-magical string (`.ts`) or even nested expression (`.{ts,tsx}`) can follow after the closing parenthesis. - // In this case, we need to parse the string and use it in the output of the original pattern. - // Suitable patterns: `/!(*.d).ts`, `/!(*.d).{ts,tsx}`, `**/!(*-dbg).@(js)`. - // - // Disabling the `fastpaths` option due to a problem with parsing strings as `.ts` in the pattern like `**/!(*.d).ts`. - const expression = parse$2(rest, { ...options, fastpaths: false }).output; - - output = token.close = `)${expression})${extglobStar})`; - } - - if (token.prev.type === 'bos') { - state.negatedExtglob = true; - } - } - - push({ type: 'paren', extglob: true, value, output }); - decrement('parens'); - }; - - /** - * Fast paths - */ - - if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) { - let backslashes = false; - - let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => { - if (first === '\\') { - backslashes = true; - return m; - } - - if (first === '?') { - if (esc) { - return esc + first + (rest ? QMARK.repeat(rest.length) : ''); - } - if (index === 0) { - return qmarkNoDot + (rest ? QMARK.repeat(rest.length) : ''); - } - return QMARK.repeat(chars.length); - } - - if (first === '.') { - return DOT_LITERAL.repeat(chars.length); - } - - if (first === '*') { - if (esc) { - return esc + first + (rest ? star : ''); - } - return star; - } - return esc ? m : `\\${m}`; - }); - - if (backslashes === true) { - if (opts.unescape === true) { - output = output.replace(/\\/g, ''); - } else { - output = output.replace(/\\+/g, m => { - return m.length % 2 === 0 ? '\\\\' : (m ? '\\' : ''); - }); - } - } - - if (output === input && opts.contains === true) { - state.output = input; - return state; - } - - state.output = utils$1.wrapOutput(output, state, options); - return state; - } - - /** - * Tokenize input until we reach end-of-string - */ - - while (!eos()) { - value = advance(); - - if (value === '\u0000') { - continue; - } - - /** - * Escaped characters - */ - - if (value === '\\') { - const next = peek(); - - if (next === '/' && opts.bash !== true) { - continue; - } - - if (next === '.' || next === ';') { - continue; - } - - if (!next) { - value += '\\'; - push({ type: 'text', value }); - continue; - } - - // collapse slashes to reduce potential for exploits - const match = /^\\+/.exec(remaining()); - let slashes = 0; - - if (match && match[0].length > 2) { - slashes = match[0].length; - state.index += slashes; - if (slashes % 2 !== 0) { - value += '\\'; - } - } - - if (opts.unescape === true) { - value = advance(); - } else { - value += advance(); - } - - if (state.brackets === 0) { - push({ type: 'text', value }); - continue; - } - } - - /** - * If we're inside a regex character class, continue - * until we reach the closing bracket. - */ - - if (state.brackets > 0 && (value !== ']' || prev.value === '[' || prev.value === '[^')) { - if (opts.posix !== false && value === ':') { - const inner = prev.value.slice(1); - if (inner.includes('[')) { - prev.posix = true; - - if (inner.includes(':')) { - const idx = prev.value.lastIndexOf('['); - const pre = prev.value.slice(0, idx); - const rest = prev.value.slice(idx + 2); - const posix = POSIX_REGEX_SOURCE[rest]; - if (posix) { - prev.value = pre + posix; - state.backtrack = true; - advance(); - - if (!bos.output && tokens.indexOf(prev) === 1) { - bos.output = ONE_CHAR; - } - continue; - } - } - } - } - - if ((value === '[' && peek() !== ':') || (value === '-' && peek() === ']')) { - value = `\\${value}`; - } - - if (value === ']' && (prev.value === '[' || prev.value === '[^')) { - value = `\\${value}`; - } - - if (opts.posix === true && value === '!' && prev.value === '[') { - value = '^'; - } - - prev.value += value; - append({ value }); - continue; - } - - /** - * If we're inside a quoted string, continue - * until we reach the closing double quote. - */ - - if (state.quotes === 1 && value !== '"') { - value = utils$1.escapeRegex(value); - prev.value += value; - append({ value }); - continue; - } - - /** - * Double quotes - */ - - if (value === '"') { - state.quotes = state.quotes === 1 ? 0 : 1; - if (opts.keepQuotes === true) { - push({ type: 'text', value }); - } - continue; - } - - /** - * Parentheses - */ - - if (value === '(') { - increment('parens'); - push({ type: 'paren', value }); - continue; - } - - if (value === ')') { - if (state.parens === 0 && opts.strictBrackets === true) { - throw new SyntaxError(syntaxError('opening', '(')); - } - - const extglob = extglobs[extglobs.length - 1]; - if (extglob && state.parens === extglob.parens + 1) { - extglobClose(extglobs.pop()); - continue; - } - - push({ type: 'paren', value, output: state.parens ? ')' : '\\)' }); - decrement('parens'); - continue; - } - - /** - * Square brackets - */ - - if (value === '[') { - if (opts.nobracket === true || !remaining().includes(']')) { - if (opts.nobracket !== true && opts.strictBrackets === true) { - throw new SyntaxError(syntaxError('closing', ']')); - } - - value = `\\${value}`; - } else { - increment('brackets'); - } - - push({ type: 'bracket', value }); - continue; - } - - if (value === ']') { - if (opts.nobracket === true || (prev && prev.type === 'bracket' && prev.value.length === 1)) { - push({ type: 'text', value, output: `\\${value}` }); - continue; - } - - if (state.brackets === 0) { - if (opts.strictBrackets === true) { - throw new SyntaxError(syntaxError('opening', '[')); - } - - push({ type: 'text', value, output: `\\${value}` }); - continue; - } - - decrement('brackets'); - - const prevValue = prev.value.slice(1); - if (prev.posix !== true && prevValue[0] === '^' && !prevValue.includes('/')) { - value = `/${value}`; - } - - prev.value += value; - append({ value }); - - // when literal brackets are explicitly disabled - // assume we should match with a regex character class - if (opts.literalBrackets === false || utils$1.hasRegexChars(prevValue)) { - continue; - } - - const escaped = utils$1.escapeRegex(prev.value); - state.output = state.output.slice(0, -prev.value.length); - - // when literal brackets are explicitly enabled - // assume we should escape the brackets to match literal characters - if (opts.literalBrackets === true) { - state.output += escaped; - prev.value = escaped; - continue; - } - - // when the user specifies nothing, try to match both - prev.value = `(${capture}${escaped}|${prev.value})`; - state.output += prev.value; - continue; - } - - /** - * Braces - */ - - if (value === '{' && opts.nobrace !== true) { - increment('braces'); - - const open = { - type: 'brace', - value, - output: '(', - outputIndex: state.output.length, - tokensIndex: state.tokens.length - }; - - braces.push(open); - push(open); - continue; - } - - if (value === '}') { - const brace = braces[braces.length - 1]; - - if (opts.nobrace === true || !brace) { - push({ type: 'text', value, output: value }); - continue; - } - - let output = ')'; - - if (brace.dots === true) { - const arr = tokens.slice(); - const range = []; - - for (let i = arr.length - 1; i >= 0; i--) { - tokens.pop(); - if (arr[i].type === 'brace') { - break; - } - if (arr[i].type !== 'dots') { - range.unshift(arr[i].value); - } - } - - output = expandRange(range, opts); - state.backtrack = true; - } - - if (brace.comma !== true && brace.dots !== true) { - const out = state.output.slice(0, brace.outputIndex); - const toks = state.tokens.slice(brace.tokensIndex); - brace.value = brace.output = '\\{'; - value = output = '\\}'; - state.output = out; - for (const t of toks) { - state.output += (t.output || t.value); - } - } - - push({ type: 'brace', value, output }); - decrement('braces'); - braces.pop(); - continue; - } - - /** - * Pipes - */ - - if (value === '|') { - if (extglobs.length > 0) { - extglobs[extglobs.length - 1].conditions++; - } - push({ type: 'text', value }); - continue; - } - - /** - * Commas - */ - - if (value === ',') { - let output = value; - - const brace = braces[braces.length - 1]; - if (brace && stack[stack.length - 1] === 'braces') { - brace.comma = true; - output = '|'; - } - - push({ type: 'comma', value, output }); - continue; - } - - /** - * Slashes - */ - - if (value === '/') { - // if the beginning of the glob is "./", advance the start - // to the current index, and don't add the "./" characters - // to the state. This greatly simplifies lookbehinds when - // checking for BOS characters like "!" and "." (not "./") - if (prev.type === 'dot' && state.index === state.start + 1) { - state.start = state.index + 1; - state.consumed = ''; - state.output = ''; - tokens.pop(); - prev = bos; // reset "prev" to the first token - continue; - } - - push({ type: 'slash', value, output: SLASH_LITERAL }); - continue; - } - - /** - * Dots - */ - - if (value === '.') { - if (state.braces > 0 && prev.type === 'dot') { - if (prev.value === '.') prev.output = DOT_LITERAL; - const brace = braces[braces.length - 1]; - prev.type = 'dots'; - prev.output += value; - prev.value += value; - brace.dots = true; - continue; - } - - if ((state.braces + state.parens) === 0 && prev.type !== 'bos' && prev.type !== 'slash') { - push({ type: 'text', value, output: DOT_LITERAL }); - continue; - } - - push({ type: 'dot', value, output: DOT_LITERAL }); - continue; - } - - /** - * Question marks - */ - - if (value === '?') { - const isGroup = prev && prev.value === '('; - if (!isGroup && opts.noextglob !== true && peek() === '(' && peek(2) !== '?') { - extglobOpen('qmark', value); - continue; - } - - if (prev && prev.type === 'paren') { - const next = peek(); - let output = value; - - if (next === '<' && !utils$1.supportsLookbehinds()) { - throw new Error('Node.js v10 or higher is required for regex lookbehinds'); - } - - if ((prev.value === '(' && !/[!=<:]/.test(next)) || (next === '<' && !/<([!=]|\w+>)/.test(remaining()))) { - output = `\\${value}`; - } - - push({ type: 'text', value, output }); - continue; - } - - if (opts.dot !== true && (prev.type === 'slash' || prev.type === 'bos')) { - push({ type: 'qmark', value, output: QMARK_NO_DOT }); - continue; - } - - push({ type: 'qmark', value, output: QMARK }); - continue; - } - - /** - * Exclamation - */ - - if (value === '!') { - if (opts.noextglob !== true && peek() === '(') { - if (peek(2) !== '?' || !/[!=<:]/.test(peek(3))) { - extglobOpen('negate', value); - continue; - } - } - - if (opts.nonegate !== true && state.index === 0) { - negate(); - continue; - } - } - - /** - * Plus - */ - - if (value === '+') { - if (opts.noextglob !== true && peek() === '(' && peek(2) !== '?') { - extglobOpen('plus', value); - continue; - } - - if ((prev && prev.value === '(') || opts.regex === false) { - push({ type: 'plus', value, output: PLUS_LITERAL }); - continue; - } - - if ((prev && (prev.type === 'bracket' || prev.type === 'paren' || prev.type === 'brace')) || state.parens > 0) { - push({ type: 'plus', value }); - continue; - } - - push({ type: 'plus', value: PLUS_LITERAL }); - continue; - } - - /** - * Plain text - */ - - if (value === '@') { - if (opts.noextglob !== true && peek() === '(' && peek(2) !== '?') { - push({ type: 'at', extglob: true, value, output: '' }); - continue; - } - - push({ type: 'text', value }); - continue; - } - - /** - * Plain text - */ - - if (value !== '*') { - if (value === '$' || value === '^') { - value = `\\${value}`; - } - - const match = REGEX_NON_SPECIAL_CHARS.exec(remaining()); - if (match) { - value += match[0]; - state.index += match[0].length; - } - - push({ type: 'text', value }); - continue; - } - - /** - * Stars - */ - - if (prev && (prev.type === 'globstar' || prev.star === true)) { - prev.type = 'star'; - prev.star = true; - prev.value += value; - prev.output = star; - state.backtrack = true; - state.globstar = true; - consume(value); - continue; - } - - let rest = remaining(); - if (opts.noextglob !== true && /^\([^?]/.test(rest)) { - extglobOpen('star', value); - continue; - } - - if (prev.type === 'star') { - if (opts.noglobstar === true) { - consume(value); - continue; - } - - const prior = prev.prev; - const before = prior.prev; - const isStart = prior.type === 'slash' || prior.type === 'bos'; - const afterStar = before && (before.type === 'star' || before.type === 'globstar'); - - if (opts.bash === true && (!isStart || (rest[0] && rest[0] !== '/'))) { - push({ type: 'star', value, output: '' }); - continue; - } - - const isBrace = state.braces > 0 && (prior.type === 'comma' || prior.type === 'brace'); - const isExtglob = extglobs.length && (prior.type === 'pipe' || prior.type === 'paren'); - if (!isStart && prior.type !== 'paren' && !isBrace && !isExtglob) { - push({ type: 'star', value, output: '' }); - continue; - } - - // strip consecutive `/**/` - while (rest.slice(0, 3) === '/**') { - const after = input[state.index + 4]; - if (after && after !== '/') { - break; - } - rest = rest.slice(3); - consume('/**', 3); - } - - if (prior.type === 'bos' && eos()) { - prev.type = 'globstar'; - prev.value += value; - prev.output = globstar(opts); - state.output = prev.output; - state.globstar = true; - consume(value); - continue; - } - - if (prior.type === 'slash' && prior.prev.type !== 'bos' && !afterStar && eos()) { - state.output = state.output.slice(0, -(prior.output + prev.output).length); - prior.output = `(?:${prior.output}`; - - prev.type = 'globstar'; - prev.output = globstar(opts) + (opts.strictSlashes ? ')' : '|$)'); - prev.value += value; - state.globstar = true; - state.output += prior.output + prev.output; - consume(value); - continue; - } - - if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') { - const end = rest[1] !== void 0 ? '|$' : ''; - - state.output = state.output.slice(0, -(prior.output + prev.output).length); - prior.output = `(?:${prior.output}`; - - prev.type = 'globstar'; - prev.output = `${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`; - prev.value += value; - - state.output += prior.output + prev.output; - state.globstar = true; - - consume(value + advance()); - - push({ type: 'slash', value: '/', output: '' }); - continue; - } - - if (prior.type === 'bos' && rest[0] === '/') { - prev.type = 'globstar'; - prev.value += value; - prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`; - state.output = prev.output; - state.globstar = true; - consume(value + advance()); - push({ type: 'slash', value: '/', output: '' }); - continue; - } - - // remove single star from output - state.output = state.output.slice(0, -prev.output.length); - - // reset previous token to globstar - prev.type = 'globstar'; - prev.output = globstar(opts); - prev.value += value; - - // reset output with globstar - state.output += prev.output; - state.globstar = true; - consume(value); - continue; - } - - const token = { type: 'star', value, output: star }; - - if (opts.bash === true) { - token.output = '.*?'; - if (prev.type === 'bos' || prev.type === 'slash') { - token.output = nodot + token.output; - } - push(token); - continue; - } - - if (prev && (prev.type === 'bracket' || prev.type === 'paren') && opts.regex === true) { - token.output = value; - push(token); - continue; - } - - if (state.index === state.start || prev.type === 'slash' || prev.type === 'dot') { - if (prev.type === 'dot') { - state.output += NO_DOT_SLASH; - prev.output += NO_DOT_SLASH; - - } else if (opts.dot === true) { - state.output += NO_DOTS_SLASH; - prev.output += NO_DOTS_SLASH; - - } else { - state.output += nodot; - prev.output += nodot; - } - - if (peek() !== '*') { - state.output += ONE_CHAR; - prev.output += ONE_CHAR; - } - } - - push(token); - } - - while (state.brackets > 0) { - if (opts.strictBrackets === true) throw new SyntaxError(syntaxError('closing', ']')); - state.output = utils$1.escapeLast(state.output, '['); - decrement('brackets'); - } - - while (state.parens > 0) { - if (opts.strictBrackets === true) throw new SyntaxError(syntaxError('closing', ')')); - state.output = utils$1.escapeLast(state.output, '('); - decrement('parens'); - } - - while (state.braces > 0) { - if (opts.strictBrackets === true) throw new SyntaxError(syntaxError('closing', '}')); - state.output = utils$1.escapeLast(state.output, '{'); - decrement('braces'); - } - - if (opts.strictSlashes !== true && (prev.type === 'star' || prev.type === 'bracket')) { - push({ type: 'maybe_slash', value: '', output: `${SLASH_LITERAL}?` }); - } - - // rebuild the output if we had to backtrack at any point - if (state.backtrack === true) { - state.output = ''; - - for (const token of state.tokens) { - state.output += token.output != null ? token.output : token.value; - - if (token.suffix) { - state.output += token.suffix; - } - } - } - - return state; -}; - -/** - * Fast paths for creating regular expressions for common glob patterns. - * This can significantly speed up processing and has very little downside - * impact when none of the fast paths match. - */ - -parse$2.fastpaths = (input, options) => { - const opts = { ...options }; - const max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; - const len = input.length; - if (len > max) { - throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`); - } - - input = REPLACEMENTS[input] || input; - const win32 = utils$1.isWindows(options); - - // create constants based on platform, for windows or posix - const { - DOT_LITERAL, - SLASH_LITERAL, - ONE_CHAR, - DOTS_SLASH, - NO_DOT, - NO_DOTS, - NO_DOTS_SLASH, - STAR, - START_ANCHOR - } = constants$1.globChars(win32); - - const nodot = opts.dot ? NO_DOTS : NO_DOT; - const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT; - const capture = opts.capture ? '' : '?:'; - const state = { negated: false, prefix: '' }; - let star = opts.bash === true ? '.*?' : STAR; - - if (opts.capture) { - star = `(${star})`; - } - - const globstar = opts => { - if (opts.noglobstar === true) return star; - return `(${capture}(?:(?!${START_ANCHOR}${opts.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`; - }; - - const create = str => { - switch (str) { - case '*': - return `${nodot}${ONE_CHAR}${star}`; - - case '.*': - return `${DOT_LITERAL}${ONE_CHAR}${star}`; - - case '*.*': - return `${nodot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`; - - case '*/*': - return `${nodot}${star}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star}`; - - case '**': - return nodot + globstar(opts); - - case '**/*': - return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star}`; - - case '**/*.*': - return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`; - - case '**/.*': - return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`; - - default: { - const match = /^(.*?)\.(\w+)$/.exec(str); - if (!match) return; - - const source = create(match[1]); - if (!source) return; - - return source + DOT_LITERAL + match[2]; - } - } - }; - - const output = utils$1.removePrefix(input, state); - let source = create(output); - - if (source && opts.strictSlashes !== true) { - source += `${SLASH_LITERAL}?`; - } - - return source; -}; - -var parse_1$1 = parse$2; - -const path$1 = require$$0$1; -const scan = scan_1; -const parse$1 = parse_1$1; -const utils = utils$3; -const constants = constants$2; -const isObject$2 = val => val && typeof val === 'object' && !Array.isArray(val); - -/** - * Creates a matcher function from one or more glob patterns. The - * returned function takes a string to match as its first argument, - * and returns true if the string is a match. The returned matcher - * function also takes a boolean as the second argument that, when true, - * returns an object with additional information. - * - * ```js - * const picomatch = require('picomatch'); - * // picomatch(glob[, options]); - * - * const isMatch = picomatch('*.!(*a)'); - * console.log(isMatch('a.a')); //=> false - * console.log(isMatch('a.b')); //=> true - * ``` - * @name picomatch - * @param {String|Array} `globs` One or more glob patterns. - * @param {Object=} `options` - * @return {Function=} Returns a matcher function. - * @api public - */ - -const picomatch$1 = (glob, options, returnState = false) => { - if (Array.isArray(glob)) { - const fns = glob.map(input => picomatch$1(input, options, returnState)); - const arrayMatcher = str => { - for (const isMatch of fns) { - const state = isMatch(str); - if (state) return state; - } - return false; - }; - return arrayMatcher; - } - - const isState = isObject$2(glob) && glob.tokens && glob.input; - - if (glob === '' || (typeof glob !== 'string' && !isState)) { - throw new TypeError('Expected pattern to be a non-empty string'); - } - - const opts = options || {}; - const posix = utils.isWindows(options); - const regex = isState - ? picomatch$1.compileRe(glob, options) - : picomatch$1.makeRe(glob, options, false, true); - - const state = regex.state; - delete regex.state; - - let isIgnored = () => false; - if (opts.ignore) { - const ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null }; - isIgnored = picomatch$1(opts.ignore, ignoreOpts, returnState); - } - - const matcher = (input, returnObject = false) => { - const { isMatch, match, output } = picomatch$1.test(input, regex, options, { glob, posix }); - const result = { glob, state, regex, posix, input, output, match, isMatch }; - - if (typeof opts.onResult === 'function') { - opts.onResult(result); - } - - if (isMatch === false) { - result.isMatch = false; - return returnObject ? result : false; - } - - if (isIgnored(input)) { - if (typeof opts.onIgnore === 'function') { - opts.onIgnore(result); - } - result.isMatch = false; - return returnObject ? result : false; - } - - if (typeof opts.onMatch === 'function') { - opts.onMatch(result); - } - return returnObject ? result : true; - }; - - if (returnState) { - matcher.state = state; - } - - return matcher; -}; - -/** - * Test `input` with the given `regex`. This is used by the main - * `picomatch()` function to test the input string. - * - * ```js - * const picomatch = require('picomatch'); - * // picomatch.test(input, regex[, options]); - * - * console.log(picomatch.test('foo/bar', /^(?:([^/]*?)\/([^/]*?))$/)); - * // { isMatch: true, match: [ 'foo/', 'foo', 'bar' ], output: 'foo/bar' } - * ``` - * @param {String} `input` String to test. - * @param {RegExp} `regex` - * @return {Object} Returns an object with matching info. - * @api public - */ - -picomatch$1.test = (input, regex, options, { glob, posix } = {}) => { - if (typeof input !== 'string') { - throw new TypeError('Expected input to be a string'); - } - - if (input === '') { - return { isMatch: false, output: '' }; - } - - const opts = options || {}; - const format = opts.format || (posix ? utils.toPosixSlashes : null); - let match = input === glob; - let output = (match && format) ? format(input) : input; - - if (match === false) { - output = format ? format(input) : input; - match = output === glob; - } - - if (match === false || opts.capture === true) { - if (opts.matchBase === true || opts.basename === true) { - match = picomatch$1.matchBase(input, regex, options, posix); - } else { - match = regex.exec(output); - } - } - - return { isMatch: Boolean(match), match, output }; -}; - -/** - * Match the basename of a filepath. - * - * ```js - * const picomatch = require('picomatch'); - * // picomatch.matchBase(input, glob[, options]); - * console.log(picomatch.matchBase('foo/bar.js', '*.js'); // true - * ``` - * @param {String} `input` String to test. - * @param {RegExp|String} `glob` Glob pattern or regex created by [.makeRe](#makeRe). - * @return {Boolean} - * @api public - */ - -picomatch$1.matchBase = (input, glob, options, posix = utils.isWindows(options)) => { - const regex = glob instanceof RegExp ? glob : picomatch$1.makeRe(glob, options); - return regex.test(path$1.basename(input)); -}; - -/** - * Returns true if **any** of the given glob `patterns` match the specified `string`. - * - * ```js - * const picomatch = require('picomatch'); - * // picomatch.isMatch(string, patterns[, options]); - * - * console.log(picomatch.isMatch('a.a', ['b.*', '*.a'])); //=> true - * console.log(picomatch.isMatch('a.a', 'b.*')); //=> false - * ``` - * @param {String|Array} str The string to test. - * @param {String|Array} patterns One or more glob patterns to use for matching. - * @param {Object} [options] See available [options](#options). - * @return {Boolean} Returns true if any patterns match `str` - * @api public - */ - -picomatch$1.isMatch = (str, patterns, options) => picomatch$1(patterns, options)(str); - -/** - * Parse a glob pattern to create the source string for a regular - * expression. - * - * ```js - * const picomatch = require('picomatch'); - * const result = picomatch.parse(pattern[, options]); - * ``` - * @param {String} `pattern` - * @param {Object} `options` - * @return {Object} Returns an object with useful properties and output to be used as a regex source string. - * @api public - */ - -picomatch$1.parse = (pattern, options) => { - if (Array.isArray(pattern)) return pattern.map(p => picomatch$1.parse(p, options)); - return parse$1(pattern, { ...options, fastpaths: false }); -}; - -/** - * Scan a glob pattern to separate the pattern into segments. - * - * ```js - * const picomatch = require('picomatch'); - * // picomatch.scan(input[, options]); - * - * const result = picomatch.scan('!./foo/*.js'); - * console.log(result); - * { prefix: '!./', - * input: '!./foo/*.js', - * start: 3, - * base: 'foo', - * glob: '*.js', - * isBrace: false, - * isBracket: false, - * isGlob: true, - * isExtglob: false, - * isGlobstar: false, - * negated: true } - * ``` - * @param {String} `input` Glob pattern to scan. - * @param {Object} `options` - * @return {Object} Returns an object with - * @api public - */ - -picomatch$1.scan = (input, options) => scan(input, options); - -/** - * Compile a regular expression from the `state` object returned by the - * [parse()](#parse) method. - * - * @param {Object} `state` - * @param {Object} `options` - * @param {Boolean} `returnOutput` Intended for implementors, this argument allows you to return the raw output from the parser. - * @param {Boolean} `returnState` Adds the state to a `state` property on the returned regex. Useful for implementors and debugging. - * @return {RegExp} - * @api public - */ - -picomatch$1.compileRe = (state, options, returnOutput = false, returnState = false) => { - if (returnOutput === true) { - return state.output; - } - - const opts = options || {}; - const prepend = opts.contains ? '' : '^'; - const append = opts.contains ? '' : '$'; - - let source = `${prepend}(?:${state.output})${append}`; - if (state && state.negated === true) { - source = `^(?!${source}).*$`; - } - - const regex = picomatch$1.toRegex(source, options); - if (returnState === true) { - regex.state = state; - } - - return regex; -}; - -/** - * Create a regular expression from a parsed glob pattern. - * - * ```js - * const picomatch = require('picomatch'); - * const state = picomatch.parse('*.js'); - * // picomatch.compileRe(state[, options]); - * - * console.log(picomatch.compileRe(state)); - * //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/ - * ``` - * @param {String} `state` The object returned from the `.parse` method. - * @param {Object} `options` - * @param {Boolean} `returnOutput` Implementors may use this argument to return the compiled output, instead of a regular expression. This is not exposed on the options to prevent end-users from mutating the result. - * @param {Boolean} `returnState` Implementors may use this argument to return the state from the parsed glob with the returned regular expression. - * @return {RegExp} Returns a regex created from the given pattern. - * @api public - */ - -picomatch$1.makeRe = (input, options = {}, returnOutput = false, returnState = false) => { - if (!input || typeof input !== 'string') { - throw new TypeError('Expected a non-empty string'); - } - - let parsed = { negated: false, fastpaths: true }; - - if (options.fastpaths !== false && (input[0] === '.' || input[0] === '*')) { - parsed.output = parse$1.fastpaths(input, options); - } - - if (!parsed.output) { - parsed = parse$1(input, options); - } - - return picomatch$1.compileRe(parsed, options, returnOutput, returnState); -}; - -/** - * Create a regular expression from the given regex source string. - * - * ```js - * const picomatch = require('picomatch'); - * // picomatch.toRegex(source[, options]); - * - * const { output } = picomatch.parse('*.js'); - * console.log(picomatch.toRegex(output)); - * //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/ - * ``` - * @param {String} `source` Regular expression source string. - * @param {Object} `options` - * @return {RegExp} - * @api public - */ - -picomatch$1.toRegex = (source, options) => { - try { - const opts = options || {}; - return new RegExp(source, opts.flags || (opts.nocase ? 'i' : '')); - } catch (err) { - if (options && options.debug === true) throw err; - return /$^/; - } -}; - -/** - * Picomatch constants. - * @return {Object} - */ - -picomatch$1.constants = constants; - -/** - * Expose "picomatch" - */ - -var picomatch_1 = picomatch$1; - -var picomatch = picomatch_1; - -var pm = /*@__PURE__*/getDefaultExportFromCjs(picomatch); - -// Helper since Typescript can't detect readonly arrays with Array.isArray -function isArray(arg) { - return Array.isArray(arg); -} -function ensureArray(thing) { - if (isArray(thing)) - return thing; - if (thing == null) - return []; - return [thing]; -} - -const normalizePath$1 = function normalizePath(filename) { - return filename.split(require$$0$1.win32.sep).join(require$$0$1.posix.sep); -}; - -function getMatcherString(id, resolutionBase) { - if (resolutionBase === false || require$$0$1.isAbsolute(id) || id.startsWith('**')) { - return normalizePath$1(id); - } - // resolve('') is valid and will default to process.cwd() - const basePath = normalizePath$1(require$$0$1.resolve(resolutionBase || '')) - // escape all possible (posix + win) path characters that might interfere with regex - .replace(/[-^$*+?.()|[\]{}]/g, '\\$&'); - // Note that we use posix.join because: - // 1. the basePath has been normalized to use / - // 2. the incoming glob (id) matcher, also uses / - // otherwise Node will force backslash (\) on windows - return require$$0$1.posix.join(basePath, normalizePath$1(id)); -} -const createFilter$1 = function createFilter(include, exclude, options) { - const resolutionBase = options && options.resolve; - const getMatcher = (id) => id instanceof RegExp - ? id - : { - test: (what) => { - // this refactor is a tad overly verbose but makes for easy debugging - const pattern = getMatcherString(id, resolutionBase); - const fn = pm(pattern, { dot: true }); - const result = fn(what); - return result; - } - }; - const includeMatchers = ensureArray(include).map(getMatcher); - const excludeMatchers = ensureArray(exclude).map(getMatcher); - return function result(id) { - if (typeof id !== 'string') - return false; - if (/\0/.test(id)) - return false; - const pathId = normalizePath$1(id); - for (let i = 0; i < excludeMatchers.length; ++i) { - const matcher = excludeMatchers[i]; - if (matcher.test(pathId)) - return false; - } - for (let i = 0; i < includeMatchers.length; ++i) { - const matcher = includeMatchers[i]; - if (matcher.test(pathId)) - return true; - } - return !includeMatchers.length; - }; -}; - -const reservedWords = 'break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public'; -const builtins = 'arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl'; -const forbiddenIdentifiers = new Set(`${reservedWords} ${builtins}`.split(' ')); -forbiddenIdentifiers.add(''); - -const isWindows = typeof process !== "undefined" && process.platform === "win32"; -const windowsSlashRE = /\\/g; -function slash(p) { - return p.replace(windowsSlashRE, "/"); -} -const postfixRE = /[?#].*$/; -function cleanUrl(url) { - return url.replace(postfixRE, ""); -} -function withTrailingSlash(path) { - if (path[path.length - 1] !== "/") { - return `${path}/`; - } - return path; -} - -if (process.versions.pnp) { - try { - node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('node-cjs/publicUtils.cjs', document.baseURI).href)))("pnpapi"); - } catch { - } -} - -const createFilter = createFilter$1; -node_module.builtinModules.filter((id) => !id.includes(":")); -function isInNodeModules(id) { - return id.includes("node_modules"); -} -const _require = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('node-cjs/publicUtils.cjs', document.baseURI).href))); -function resolveDependencyVersion(dep, pkgRelativePath = "../../package.json") { - const pkgPath = path$3.resolve(_require.resolve(dep), pkgRelativePath); - return JSON.parse(fs$1.readFileSync(pkgPath, "utf-8")).version; -} -const rollupVersion = resolveDependencyVersion("rollup"); -const filter = process.env.VITE_DEBUG_FILTER; -const DEBUG = process.env.DEBUG; -function createDebugger(namespace, options = {}) { - const log = debug$2(namespace); - const { onlyWhenFocused } = options; - let enabled = log.enabled; - if (enabled && onlyWhenFocused) { - const ns = typeof onlyWhenFocused === "string" ? onlyWhenFocused : namespace; - enabled = !!DEBUG?.includes(ns); - } - if (enabled) { - return (...args) => { - if (!filter || args.some((a) => a?.includes?.(filter))) { - log(...args); - } - }; - } -} -function testCaseInsensitiveFS() { - if (!CLIENT_ENTRY.endsWith("client.mjs")) { - throw new Error( - `cannot test case insensitive FS, CLIENT_ENTRY const doesn't contain client.mjs` - ); - } - if (!fs$1.existsSync(CLIENT_ENTRY)) { - throw new Error( - "cannot test case insensitive FS, CLIENT_ENTRY does not point to an existing file: " + CLIENT_ENTRY - ); - } - return fs$1.existsSync(CLIENT_ENTRY.replace("client.mjs", "cLiEnT.mjs")); -} -const isCaseInsensitiveFS = testCaseInsensitiveFS(); -const VOLUME_RE = /^[A-Z]:/i; -function normalizePath(id) { - return path$3.posix.normalize(isWindows ? slash(id) : id); -} -function fsPathFromId(id) { - const fsPath = normalizePath( - id.startsWith(FS_PREFIX) ? id.slice(FS_PREFIX.length) : id - ); - return fsPath[0] === "/" || VOLUME_RE.test(fsPath) ? fsPath : `/${fsPath}`; -} -function fsPathFromUrl(url) { - return fsPathFromId(cleanUrl(url)); -} -function isParentDirectory(dir, file) { - dir = withTrailingSlash(dir); - return file.startsWith(dir) || isCaseInsensitiveFS && file.toLowerCase().startsWith(dir.toLowerCase()); -} -function isSameFileUri(file1, file2) { - return file1 === file2 || isCaseInsensitiveFS && file1.toLowerCase() === file2.toLowerCase(); -} -const trailingSeparatorRE = /[?&]$/; -const timestampRE = /\bt=\d{13}&?\b/; -function removeTimestampQuery(url) { - return url.replace(timestampRE, "").replace(trailingSeparatorRE, ""); -} -function isObject$1(value) { - return Object.prototype.toString.call(value) === "[object Object]"; -} -function tryStatSync(file) { - try { - return fs$1.statSync(file, { throwIfNoEntry: false }); - } catch { - } -} -function isFileReadable(filename) { - if (!tryStatSync(filename)) { - return false; - } - try { - fs$1.accessSync(filename, fs$1.constants.R_OK); - return true; - } catch { - return false; - } -} -function arraify(target) { - return Array.isArray(target) ? target : [target]; -} -path$3.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('node-cjs/publicUtils.cjs', document.baseURI).href)))); -function backwardCompatibleWorkerPlugins(plugins) { - if (Array.isArray(plugins)) { - return plugins; - } - if (typeof plugins === "function") { - return plugins(); - } - return []; -} -function mergeConfigRecursively(defaults, overrides, rootPath) { - const merged = { ...defaults }; - for (const key in overrides) { - const value = overrides[key]; - if (value == null) { - continue; - } - const existing = merged[key]; - if (existing == null) { - merged[key] = value; - continue; - } - if (key === "alias" && (rootPath === "resolve" || rootPath === "")) { - merged[key] = mergeAlias(existing, value); - continue; - } else if (key === "assetsInclude" && rootPath === "") { - merged[key] = [].concat(existing, value); - continue; - } else if (key === "noExternal" && rootPath === "ssr" && (existing === true || value === true)) { - merged[key] = true; - continue; - } else if (key === "plugins" && rootPath === "worker") { - merged[key] = () => [ - ...backwardCompatibleWorkerPlugins(existing), - ...backwardCompatibleWorkerPlugins(value) - ]; - continue; - } else if (key === "server" && rootPath === "server.hmr") { - merged[key] = value; - continue; - } - if (Array.isArray(existing) || Array.isArray(value)) { - merged[key] = [...arraify(existing), ...arraify(value)]; - continue; - } - if (isObject$1(existing) && isObject$1(value)) { - merged[key] = mergeConfigRecursively( - existing, - value, - rootPath ? `${rootPath}.${key}` : key - ); - continue; - } - merged[key] = value; - } - return merged; -} -function mergeConfig(defaults, overrides, isRoot = true) { - if (typeof defaults === "function" || typeof overrides === "function") { - throw new Error(`Cannot merge config in form of callback`); - } - return mergeConfigRecursively(defaults, overrides, isRoot ? "" : "."); -} -function mergeAlias(a, b) { - if (!a) return b; - if (!b) return a; - if (isObject$1(a) && isObject$1(b)) { - return { ...a, ...b }; - } - return [...normalizeAlias(b), ...normalizeAlias(a)]; -} -function normalizeAlias(o = []) { - return Array.isArray(o) ? o.map(normalizeSingleAlias) : Object.keys(o).map( - (find) => normalizeSingleAlias({ - find, - replacement: o[find] - }) - ); -} -function normalizeSingleAlias({ - find, - replacement, - customResolver -}) { - if (typeof find === "string" && find[find.length - 1] === "/" && replacement[replacement.length - 1] === "/") { - find = find.slice(0, find.length - 1); - replacement = replacement.slice(0, replacement.length - 1); - } - const alias = { - find, - replacement - }; - if (customResolver) { - alias.customResolver = customResolver; - } - return alias; -} - -const CSS_LANGS_RE = ( - // eslint-disable-next-line regexp/no-unused-capturing-group - /\.(css|less|sass|scss|styl|stylus|pcss|postcss|sss)(?:$|\?)/ -); -const isCSSRequest = (request) => CSS_LANGS_RE.test(request); -class SplitVendorChunkCache { - cache; - constructor() { - this.cache = /* @__PURE__ */ new Map(); - } - reset() { - this.cache = /* @__PURE__ */ new Map(); - } -} -function splitVendorChunk(options = {}) { - const cache = options.cache ?? new SplitVendorChunkCache(); - return (id, { getModuleInfo }) => { - if (isInNodeModules(id) && !isCSSRequest(id) && staticImportedByEntry(id, getModuleInfo, cache.cache)) { - return "vendor"; - } - }; -} -function staticImportedByEntry(id, getModuleInfo, cache, importStack = []) { - if (cache.has(id)) { - return cache.get(id); - } - if (importStack.includes(id)) { - cache.set(id, false); - return false; - } - const mod = getModuleInfo(id); - if (!mod) { - cache.set(id, false); - return false; - } - if (mod.isEntry) { - cache.set(id, true); - return true; - } - const someImporterIs = mod.importers.some( - (importer) => staticImportedByEntry( - importer, - getModuleInfo, - cache, - importStack.concat(id) - ) - ); - cache.set(id, someImporterIs); - return someImporterIs; -} -function splitVendorChunkPlugin() { - const caches = []; - function createSplitVendorChunk(output, config) { - const cache = new SplitVendorChunkCache(); - caches.push(cache); - const build = config.build ?? {}; - const format = output?.format; - if (!build.ssr && !build.lib && format !== "umd" && format !== "iife") { - return splitVendorChunk({ cache }); - } - } - return { - name: "vite:split-vendor-chunk", - config(config) { - let outputs = config?.build?.rollupOptions?.output; - if (outputs) { - outputs = arraify(outputs); - for (const output of outputs) { - const viteManualChunks = createSplitVendorChunk(output, config); - if (viteManualChunks) { - if (output.manualChunks) { - if (typeof output.manualChunks === "function") { - const userManualChunks = output.manualChunks; - output.manualChunks = (id, api) => { - return userManualChunks(id, api) ?? viteManualChunks(id, api); - }; - } else { - console.warn( - "(!) the `splitVendorChunk` plugin doesn't have any effect when using the object form of `build.rollupOptions.output.manualChunks`. Consider using the function form instead." - ); - } - } else { - output.manualChunks = viteManualChunks; - } - } - } - } else { - return { - build: { - rollupOptions: { - output: { - manualChunks: createSplitVendorChunk({}, config) - } - } - } - }; - } - }, - buildStart() { - caches.forEach((cache) => cache.reset()); - } - }; -} - -var convertSourceMap$1 = {}; - -(function (exports) { - - Object.defineProperty(exports, 'commentRegex', { - get: function getCommentRegex () { - // Groups: 1: media type, 2: MIME type, 3: charset, 4: encoding, 5: data. - return /^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/mg; - } - }); - - - Object.defineProperty(exports, 'mapFileCommentRegex', { - get: function getMapFileCommentRegex () { - // Matches sourceMappingURL in either // or /* comment styles. - return /(?:\/\/[@#][ \t]+?sourceMappingURL=([^\s'"`]+?)[ \t]*?$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*?(?:\*\/){1}[ \t]*?$)/mg; - } - }); - - var decodeBase64; - if (typeof Buffer !== 'undefined') { - if (typeof Buffer.from === 'function') { - decodeBase64 = decodeBase64WithBufferFrom; - } else { - decodeBase64 = decodeBase64WithNewBuffer; - } - } else { - decodeBase64 = decodeBase64WithAtob; - } - - function decodeBase64WithBufferFrom(base64) { - return Buffer.from(base64, 'base64').toString(); - } - - function decodeBase64WithNewBuffer(base64) { - if (typeof value === 'number') { - throw new TypeError('The value to decode must not be of type number.'); - } - return new Buffer(base64, 'base64').toString(); - } - - function decodeBase64WithAtob(base64) { - return decodeURIComponent(escape(atob(base64))); - } - - function stripComment(sm) { - return sm.split(',').pop(); - } - - function readFromFileMap(sm, read) { - var r = exports.mapFileCommentRegex.exec(sm); - // for some odd reason //# .. captures in 1 and /* .. */ in 2 - var filename = r[1] || r[2]; - - try { - var sm = read(filename); - if (sm != null && typeof sm.catch === 'function') { - return sm.catch(throwError); - } else { - return sm; - } - } catch (e) { - throwError(e); - } - - function throwError(e) { - throw new Error('An error occurred while trying to read the map file at ' + filename + '\n' + e.stack); - } - } - - function Converter (sm, opts) { - opts = opts || {}; - - if (opts.hasComment) { - sm = stripComment(sm); - } - - if (opts.encoding === 'base64') { - sm = decodeBase64(sm); - } else if (opts.encoding === 'uri') { - sm = decodeURIComponent(sm); - } - - if (opts.isJSON || opts.encoding) { - sm = JSON.parse(sm); - } - - this.sourcemap = sm; - } - - Converter.prototype.toJSON = function (space) { - return JSON.stringify(this.sourcemap, null, space); - }; - - if (typeof Buffer !== 'undefined') { - if (typeof Buffer.from === 'function') { - Converter.prototype.toBase64 = encodeBase64WithBufferFrom; - } else { - Converter.prototype.toBase64 = encodeBase64WithNewBuffer; - } - } else { - Converter.prototype.toBase64 = encodeBase64WithBtoa; - } - - function encodeBase64WithBufferFrom() { - var json = this.toJSON(); - return Buffer.from(json, 'utf8').toString('base64'); - } - - function encodeBase64WithNewBuffer() { - var json = this.toJSON(); - if (typeof json === 'number') { - throw new TypeError('The json to encode must not be of type number.'); - } - return new Buffer(json, 'utf8').toString('base64'); - } - - function encodeBase64WithBtoa() { - var json = this.toJSON(); - return btoa(unescape(encodeURIComponent(json))); - } - - Converter.prototype.toURI = function () { - var json = this.toJSON(); - return encodeURIComponent(json); - }; - - Converter.prototype.toComment = function (options) { - var encoding, content, data; - if (options != null && options.encoding === 'uri') { - encoding = ''; - content = this.toURI(); - } else { - encoding = ';base64'; - content = this.toBase64(); - } - data = 'sourceMappingURL=data:application/json;charset=utf-8' + encoding + ',' + content; - return options != null && options.multiline ? '/*# ' + data + ' */' : '//# ' + data; - }; - - // returns copy instead of original - Converter.prototype.toObject = function () { - return JSON.parse(this.toJSON()); - }; - - Converter.prototype.addProperty = function (key, value) { - if (this.sourcemap.hasOwnProperty(key)) throw new Error('property "' + key + '" already exists on the sourcemap, use set property instead'); - return this.setProperty(key, value); - }; - - Converter.prototype.setProperty = function (key, value) { - this.sourcemap[key] = value; - return this; - }; - - Converter.prototype.getProperty = function (key) { - return this.sourcemap[key]; - }; - - exports.fromObject = function (obj) { - return new Converter(obj); - }; - - exports.fromJSON = function (json) { - return new Converter(json, { isJSON: true }); - }; - - exports.fromURI = function (uri) { - return new Converter(uri, { encoding: 'uri' }); - }; - - exports.fromBase64 = function (base64) { - return new Converter(base64, { encoding: 'base64' }); - }; - - exports.fromComment = function (comment) { - var m, encoding; - comment = comment - .replace(/^\/\*/g, '//') - .replace(/\*\/$/g, ''); - m = exports.commentRegex.exec(comment); - encoding = m && m[4] || 'uri'; - return new Converter(comment, { encoding: encoding, hasComment: true }); - }; - - function makeConverter(sm) { - return new Converter(sm, { isJSON: true }); - } - - exports.fromMapFileComment = function (comment, read) { - if (typeof read === 'string') { - throw new Error( - 'String directory paths are no longer supported with `fromMapFileComment`\n' + - 'Please review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading' - ) - } - - var sm = readFromFileMap(comment, read); - if (sm != null && typeof sm.then === 'function') { - return sm.then(makeConverter); - } else { - return makeConverter(sm); - } - }; - - // Finds last sourcemap comment in file or returns null if none was found - exports.fromSource = function (content) { - var m = content.match(exports.commentRegex); - return m ? exports.fromComment(m.pop()) : null; - }; - - // Finds last sourcemap comment in file or returns null if none was found - exports.fromMapFileSource = function (content, read) { - if (typeof read === 'string') { - throw new Error( - 'String directory paths are no longer supported with `fromMapFileSource`\n' + - 'Please review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading' - ) - } - var m = content.match(exports.mapFileCommentRegex); - return m ? exports.fromMapFileComment(m.pop(), read) : null; - }; - - exports.removeComments = function (src) { - return src.replace(exports.commentRegex, ''); - }; - - exports.removeMapFileComments = function (src) { - return src.replace(exports.mapFileCommentRegex, ''); - }; - - exports.generateMapFileComment = function (file, options) { - var data = 'sourceMappingURL=' + file; - return options && options.multiline ? '/*# ' + data + ' */' : '//# ' + data; - }; -} (convertSourceMap$1)); - -var convertSourceMap = /*@__PURE__*/getDefaultExportFromCjs(convertSourceMap$1); - -/*! - * etag - * Copyright(c) 2014-2016 Douglas Christopher Wilson - * MIT Licensed - */ - -/** - * Module exports. - * @public - */ - -var etag_1 = etag; - -/** - * Module dependencies. - * @private - */ - -var crypto$1 = require$$0$2; -var Stats = fs$2.Stats; - -/** - * Module variables. - * @private - */ - -var toString$1 = Object.prototype.toString; - -/** - * Generate an entity tag. - * - * @param {Buffer|string} entity - * @return {string} - * @private - */ - -function entitytag (entity) { - if (entity.length === 0) { - // fast-path empty - return '"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk"' - } - - // compute hash of entity - var hash = crypto$1 - .createHash('sha1') - .update(entity, 'utf8') - .digest('base64') - .substring(0, 27); - - // compute length of entity - var len = typeof entity === 'string' - ? Buffer.byteLength(entity, 'utf8') - : entity.length; - - return '"' + len.toString(16) + '-' + hash + '"' -} - -/** - * Create a simple ETag. - * - * @param {string|Buffer|Stats} entity - * @param {object} [options] - * @param {boolean} [options.weak] - * @return {String} - * @public - */ - -function etag (entity, options) { - if (entity == null) { - throw new TypeError('argument entity is required') - } - - // support fs.Stats object - var isStats = isstats(entity); - var weak = options && typeof options.weak === 'boolean' - ? options.weak - : isStats; - - // validate argument - if (!isStats && typeof entity !== 'string' && !Buffer.isBuffer(entity)) { - throw new TypeError('argument entity must be string, Buffer, or fs.Stats') - } - - // generate entity tag - var tag = isStats - ? stattag(entity) - : entitytag(entity); - - return weak - ? 'W/' + tag - : tag -} - -/** - * Determine if object is a Stats object. - * - * @param {object} obj - * @return {boolean} - * @api private - */ - -function isstats (obj) { - // genuine fs.Stats - if (typeof Stats === 'function' && obj instanceof Stats) { - return true - } - - // quack quack - return obj && typeof obj === 'object' && - 'ctime' in obj && toString$1.call(obj.ctime) === '[object Date]' && - 'mtime' in obj && toString$1.call(obj.mtime) === '[object Date]' && - 'ino' in obj && typeof obj.ino === 'number' && - 'size' in obj && typeof obj.size === 'number' -} - -/** - * Generate a tag for a stat. - * - * @param {object} stat - * @return {string} - * @private - */ - -function stattag (stat) { - var mtime = stat.mtime.getTime().toString(16); - var size = stat.size.toString(16); - - return '"' + size + '-' + mtime + '"' -} - -var getEtag = /*@__PURE__*/getDefaultExportFromCjs(etag_1); - -class BitSet { - constructor(arg) { - this.bits = arg instanceof BitSet ? arg.bits.slice() : []; - } - - add(n) { - this.bits[n >> 5] |= 1 << (n & 31); - } - - has(n) { - return !!(this.bits[n >> 5] & (1 << (n & 31))); - } -} - -class Chunk { - constructor(start, end, content) { - this.start = start; - this.end = end; - this.original = content; - - this.intro = ''; - this.outro = ''; - - this.content = content; - this.storeName = false; - this.edited = false; - - { - this.previous = null; - this.next = null; - } - } - - appendLeft(content) { - this.outro += content; - } - - appendRight(content) { - this.intro = this.intro + content; - } - - clone() { - const chunk = new Chunk(this.start, this.end, this.original); - - chunk.intro = this.intro; - chunk.outro = this.outro; - chunk.content = this.content; - chunk.storeName = this.storeName; - chunk.edited = this.edited; - - return chunk; - } - - contains(index) { - return this.start < index && index < this.end; - } - - eachNext(fn) { - let chunk = this; - while (chunk) { - fn(chunk); - chunk = chunk.next; - } - } - - eachPrevious(fn) { - let chunk = this; - while (chunk) { - fn(chunk); - chunk = chunk.previous; - } - } - - edit(content, storeName, contentOnly) { - this.content = content; - if (!contentOnly) { - this.intro = ''; - this.outro = ''; - } - this.storeName = storeName; - - this.edited = true; - - return this; - } - - prependLeft(content) { - this.outro = content + this.outro; - } - - prependRight(content) { - this.intro = content + this.intro; - } - - reset() { - this.intro = ''; - this.outro = ''; - if (this.edited) { - this.content = this.original; - this.storeName = false; - this.edited = false; - } - } - - split(index) { - const sliceIndex = index - this.start; - - const originalBefore = this.original.slice(0, sliceIndex); - const originalAfter = this.original.slice(sliceIndex); - - this.original = originalBefore; - - const newChunk = new Chunk(index, this.end, originalAfter); - newChunk.outro = this.outro; - this.outro = ''; - - this.end = index; - - if (this.edited) { - // after split we should save the edit content record into the correct chunk - // to make sure sourcemap correct - // For example: - // ' test'.trim() - // split -> ' ' + 'test' - // ✔️ edit -> '' + 'test' - // ✖️ edit -> 'test' + '' - // TODO is this block necessary?... - newChunk.edit('', false); - this.content = ''; - } else { - this.content = originalBefore; - } - - newChunk.next = this.next; - if (newChunk.next) newChunk.next.previous = newChunk; - newChunk.previous = this; - this.next = newChunk; - - return newChunk; - } - - toString() { - return this.intro + this.content + this.outro; - } - - trimEnd(rx) { - this.outro = this.outro.replace(rx, ''); - if (this.outro.length) return true; - - const trimmed = this.content.replace(rx, ''); - - if (trimmed.length) { - if (trimmed !== this.content) { - this.split(this.start + trimmed.length).edit('', undefined, true); - if (this.edited) { - // save the change, if it has been edited - this.edit(trimmed, this.storeName, true); - } - } - return true; - } else { - this.edit('', undefined, true); - - this.intro = this.intro.replace(rx, ''); - if (this.intro.length) return true; - } - } - - trimStart(rx) { - this.intro = this.intro.replace(rx, ''); - if (this.intro.length) return true; - - const trimmed = this.content.replace(rx, ''); - - if (trimmed.length) { - if (trimmed !== this.content) { - const newChunk = this.split(this.end - trimmed.length); - if (this.edited) { - // save the change, if it has been edited - newChunk.edit(trimmed, this.storeName, true); - } - this.edit('', undefined, true); - } - return true; - } else { - this.edit('', undefined, true); - - this.outro = this.outro.replace(rx, ''); - if (this.outro.length) return true; - } - } -} - -function getBtoa() { - if (typeof globalThis !== 'undefined' && typeof globalThis.btoa === 'function') { - return (str) => globalThis.btoa(unescape(encodeURIComponent(str))); - } else if (typeof Buffer === 'function') { - return (str) => Buffer.from(str, 'utf-8').toString('base64'); - } else { - return () => { - throw new Error('Unsupported environment: `window.btoa` or `Buffer` should be supported.'); - }; - } -} - -const btoa$1 = /*#__PURE__*/ getBtoa(); - -class SourceMap { - constructor(properties) { - this.version = 3; - this.file = properties.file; - this.sources = properties.sources; - this.sourcesContent = properties.sourcesContent; - this.names = properties.names; - this.mappings = encode(properties.mappings); - if (typeof properties.x_google_ignoreList !== 'undefined') { - this.x_google_ignoreList = properties.x_google_ignoreList; - } - } - - toString() { - return JSON.stringify(this); - } - - toUrl() { - return 'data:application/json;charset=utf-8;base64,' + btoa$1(this.toString()); - } -} - -function guessIndent(code) { - const lines = code.split('\n'); - - const tabbed = lines.filter((line) => /^\t+/.test(line)); - const spaced = lines.filter((line) => /^ {2,}/.test(line)); - - if (tabbed.length === 0 && spaced.length === 0) { - return null; - } - - // More lines tabbed than spaced? Assume tabs, and - // default to tabs in the case of a tie (or nothing - // to go on) - if (tabbed.length >= spaced.length) { - return '\t'; - } - - // Otherwise, we need to guess the multiple - const min = spaced.reduce((previous, current) => { - const numSpaces = /^ +/.exec(current)[0].length; - return Math.min(numSpaces, previous); - }, Infinity); - - return new Array(min + 1).join(' '); -} - -function getRelativePath(from, to) { - const fromParts = from.split(/[/\\]/); - const toParts = to.split(/[/\\]/); - - fromParts.pop(); // get dirname - - while (fromParts[0] === toParts[0]) { - fromParts.shift(); - toParts.shift(); - } - - if (fromParts.length) { - let i = fromParts.length; - while (i--) fromParts[i] = '..'; - } - - return fromParts.concat(toParts).join('/'); -} - -const toString = Object.prototype.toString; - -function isObject(thing) { - return toString.call(thing) === '[object Object]'; -} - -function getLocator(source) { - const originalLines = source.split('\n'); - const lineOffsets = []; - - for (let i = 0, pos = 0; i < originalLines.length; i++) { - lineOffsets.push(pos); - pos += originalLines[i].length + 1; - } - - return function locate(index) { - let i = 0; - let j = lineOffsets.length; - while (i < j) { - const m = (i + j) >> 1; - if (index < lineOffsets[m]) { - j = m; - } else { - i = m + 1; - } - } - const line = i - 1; - const column = index - lineOffsets[line]; - return { line, column }; - }; -} - -const wordRegex = /\w/; - -class Mappings { - constructor(hires) { - this.hires = hires; - this.generatedCodeLine = 0; - this.generatedCodeColumn = 0; - this.raw = []; - this.rawSegments = this.raw[this.generatedCodeLine] = []; - this.pending = null; - } - - addEdit(sourceIndex, content, loc, nameIndex) { - if (content.length) { - const contentLengthMinusOne = content.length - 1; - let contentLineEnd = content.indexOf('\n', 0); - let previousContentLineEnd = -1; - // Loop through each line in the content and add a segment, but stop if the last line is empty, - // else code afterwards would fill one line too many - while (contentLineEnd >= 0 && contentLengthMinusOne > contentLineEnd) { - const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column]; - if (nameIndex >= 0) { - segment.push(nameIndex); - } - this.rawSegments.push(segment); - - this.generatedCodeLine += 1; - this.raw[this.generatedCodeLine] = this.rawSegments = []; - this.generatedCodeColumn = 0; - - previousContentLineEnd = contentLineEnd; - contentLineEnd = content.indexOf('\n', contentLineEnd + 1); - } - - const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column]; - if (nameIndex >= 0) { - segment.push(nameIndex); - } - this.rawSegments.push(segment); - - this.advance(content.slice(previousContentLineEnd + 1)); - } else if (this.pending) { - this.rawSegments.push(this.pending); - this.advance(content); - } - - this.pending = null; - } - - addUneditedChunk(sourceIndex, chunk, original, loc, sourcemapLocations) { - let originalCharIndex = chunk.start; - let first = true; - // when iterating each char, check if it's in a word boundary - let charInHiresBoundary = false; - - while (originalCharIndex < chunk.end) { - if (this.hires || first || sourcemapLocations.has(originalCharIndex)) { - const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column]; - - if (this.hires === 'boundary') { - // in hires "boundary", group segments per word boundary than per char - if (wordRegex.test(original[originalCharIndex])) { - // for first char in the boundary found, start the boundary by pushing a segment - if (!charInHiresBoundary) { - this.rawSegments.push(segment); - charInHiresBoundary = true; - } - } else { - // for non-word char, end the boundary by pushing a segment - this.rawSegments.push(segment); - charInHiresBoundary = false; - } - } else { - this.rawSegments.push(segment); - } - } - - if (original[originalCharIndex] === '\n') { - loc.line += 1; - loc.column = 0; - this.generatedCodeLine += 1; - this.raw[this.generatedCodeLine] = this.rawSegments = []; - this.generatedCodeColumn = 0; - first = true; - } else { - loc.column += 1; - this.generatedCodeColumn += 1; - first = false; - } - - originalCharIndex += 1; - } - - this.pending = null; - } - - advance(str) { - if (!str) return; - - const lines = str.split('\n'); - - if (lines.length > 1) { - for (let i = 0; i < lines.length - 1; i++) { - this.generatedCodeLine++; - this.raw[this.generatedCodeLine] = this.rawSegments = []; - } - this.generatedCodeColumn = 0; - } - - this.generatedCodeColumn += lines[lines.length - 1].length; - } -} - -const n = '\n'; - -const warned = { - insertLeft: false, - insertRight: false, - storeName: false, -}; - -class MagicString { - constructor(string, options = {}) { - const chunk = new Chunk(0, string.length, string); - - Object.defineProperties(this, { - original: { writable: true, value: string }, - outro: { writable: true, value: '' }, - intro: { writable: true, value: '' }, - firstChunk: { writable: true, value: chunk }, - lastChunk: { writable: true, value: chunk }, - lastSearchedChunk: { writable: true, value: chunk }, - byStart: { writable: true, value: {} }, - byEnd: { writable: true, value: {} }, - filename: { writable: true, value: options.filename }, - indentExclusionRanges: { writable: true, value: options.indentExclusionRanges }, - sourcemapLocations: { writable: true, value: new BitSet() }, - storedNames: { writable: true, value: {} }, - indentStr: { writable: true, value: undefined }, - ignoreList: { writable: true, value: options.ignoreList }, - }); - - this.byStart[0] = chunk; - this.byEnd[string.length] = chunk; - } - - addSourcemapLocation(char) { - this.sourcemapLocations.add(char); - } - - append(content) { - if (typeof content !== 'string') throw new TypeError('outro content must be a string'); - - this.outro += content; - return this; - } - - appendLeft(index, content) { - if (typeof content !== 'string') throw new TypeError('inserted content must be a string'); - - this._split(index); - - const chunk = this.byEnd[index]; - - if (chunk) { - chunk.appendLeft(content); - } else { - this.intro += content; - } - return this; - } - - appendRight(index, content) { - if (typeof content !== 'string') throw new TypeError('inserted content must be a string'); - - this._split(index); - - const chunk = this.byStart[index]; - - if (chunk) { - chunk.appendRight(content); - } else { - this.outro += content; - } - return this; - } - - clone() { - const cloned = new MagicString(this.original, { filename: this.filename }); - - let originalChunk = this.firstChunk; - let clonedChunk = (cloned.firstChunk = cloned.lastSearchedChunk = originalChunk.clone()); - - while (originalChunk) { - cloned.byStart[clonedChunk.start] = clonedChunk; - cloned.byEnd[clonedChunk.end] = clonedChunk; - - const nextOriginalChunk = originalChunk.next; - const nextClonedChunk = nextOriginalChunk && nextOriginalChunk.clone(); - - if (nextClonedChunk) { - clonedChunk.next = nextClonedChunk; - nextClonedChunk.previous = clonedChunk; - - clonedChunk = nextClonedChunk; - } - - originalChunk = nextOriginalChunk; - } - - cloned.lastChunk = clonedChunk; - - if (this.indentExclusionRanges) { - cloned.indentExclusionRanges = this.indentExclusionRanges.slice(); - } - - cloned.sourcemapLocations = new BitSet(this.sourcemapLocations); - - cloned.intro = this.intro; - cloned.outro = this.outro; - - return cloned; - } - - generateDecodedMap(options) { - options = options || {}; - - const sourceIndex = 0; - const names = Object.keys(this.storedNames); - const mappings = new Mappings(options.hires); - - const locate = getLocator(this.original); - - if (this.intro) { - mappings.advance(this.intro); - } - - this.firstChunk.eachNext((chunk) => { - const loc = locate(chunk.start); - - if (chunk.intro.length) mappings.advance(chunk.intro); - - if (chunk.edited) { - mappings.addEdit( - sourceIndex, - chunk.content, - loc, - chunk.storeName ? names.indexOf(chunk.original) : -1, - ); - } else { - mappings.addUneditedChunk(sourceIndex, chunk, this.original, loc, this.sourcemapLocations); - } - - if (chunk.outro.length) mappings.advance(chunk.outro); - }); - - return { - file: options.file ? options.file.split(/[/\\]/).pop() : undefined, - sources: [ - options.source ? getRelativePath(options.file || '', options.source) : options.file || '', - ], - sourcesContent: options.includeContent ? [this.original] : undefined, - names, - mappings: mappings.raw, - x_google_ignoreList: this.ignoreList ? [sourceIndex] : undefined, - }; - } - - generateMap(options) { - return new SourceMap(this.generateDecodedMap(options)); - } - - _ensureindentStr() { - if (this.indentStr === undefined) { - this.indentStr = guessIndent(this.original); - } - } - - _getRawIndentString() { - this._ensureindentStr(); - return this.indentStr; - } - - getIndentString() { - this._ensureindentStr(); - return this.indentStr === null ? '\t' : this.indentStr; - } - - indent(indentStr, options) { - const pattern = /^[^\r\n]/gm; - - if (isObject(indentStr)) { - options = indentStr; - indentStr = undefined; - } - - if (indentStr === undefined) { - this._ensureindentStr(); - indentStr = this.indentStr || '\t'; - } - - if (indentStr === '') return this; // noop - - options = options || {}; - - // Process exclusion ranges - const isExcluded = {}; - - if (options.exclude) { - const exclusions = - typeof options.exclude[0] === 'number' ? [options.exclude] : options.exclude; - exclusions.forEach((exclusion) => { - for (let i = exclusion[0]; i < exclusion[1]; i += 1) { - isExcluded[i] = true; - } - }); - } - - let shouldIndentNextCharacter = options.indentStart !== false; - const replacer = (match) => { - if (shouldIndentNextCharacter) return `${indentStr}${match}`; - shouldIndentNextCharacter = true; - return match; - }; - - this.intro = this.intro.replace(pattern, replacer); - - let charIndex = 0; - let chunk = this.firstChunk; - - while (chunk) { - const end = chunk.end; - - if (chunk.edited) { - if (!isExcluded[charIndex]) { - chunk.content = chunk.content.replace(pattern, replacer); - - if (chunk.content.length) { - shouldIndentNextCharacter = chunk.content[chunk.content.length - 1] === '\n'; - } - } - } else { - charIndex = chunk.start; - - while (charIndex < end) { - if (!isExcluded[charIndex]) { - const char = this.original[charIndex]; - - if (char === '\n') { - shouldIndentNextCharacter = true; - } else if (char !== '\r' && shouldIndentNextCharacter) { - shouldIndentNextCharacter = false; - - if (charIndex === chunk.start) { - chunk.prependRight(indentStr); - } else { - this._splitChunk(chunk, charIndex); - chunk = chunk.next; - chunk.prependRight(indentStr); - } - } - } - - charIndex += 1; - } - } - - charIndex = chunk.end; - chunk = chunk.next; - } - - this.outro = this.outro.replace(pattern, replacer); - - return this; - } - - insert() { - throw new Error( - 'magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)', - ); - } - - insertLeft(index, content) { - if (!warned.insertLeft) { - console.warn( - 'magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead', - ); // eslint-disable-line no-console - warned.insertLeft = true; - } - - return this.appendLeft(index, content); - } - - insertRight(index, content) { - if (!warned.insertRight) { - console.warn( - 'magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead', - ); // eslint-disable-line no-console - warned.insertRight = true; - } - - return this.prependRight(index, content); - } - - move(start, end, index) { - if (index >= start && index <= end) throw new Error('Cannot move a selection inside itself'); - - this._split(start); - this._split(end); - this._split(index); - - const first = this.byStart[start]; - const last = this.byEnd[end]; - - const oldLeft = first.previous; - const oldRight = last.next; - - const newRight = this.byStart[index]; - if (!newRight && last === this.lastChunk) return this; - const newLeft = newRight ? newRight.previous : this.lastChunk; - - if (oldLeft) oldLeft.next = oldRight; - if (oldRight) oldRight.previous = oldLeft; - - if (newLeft) newLeft.next = first; - if (newRight) newRight.previous = last; - - if (!first.previous) this.firstChunk = last.next; - if (!last.next) { - this.lastChunk = first.previous; - this.lastChunk.next = null; - } - - first.previous = newLeft; - last.next = newRight || null; - - if (!newLeft) this.firstChunk = first; - if (!newRight) this.lastChunk = last; - return this; - } - - overwrite(start, end, content, options) { - options = options || {}; - return this.update(start, end, content, { ...options, overwrite: !options.contentOnly }); - } - - update(start, end, content, options) { - if (typeof content !== 'string') throw new TypeError('replacement content must be a string'); - - if (this.original.length !== 0) { - while (start < 0) start += this.original.length; - while (end < 0) end += this.original.length; - } - - if (end > this.original.length) throw new Error('end is out of bounds'); - if (start === end) - throw new Error( - 'Cannot overwrite a zero-length range – use appendLeft or prependRight instead', - ); - - this._split(start); - this._split(end); - - if (options === true) { - if (!warned.storeName) { - console.warn( - 'The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string', - ); // eslint-disable-line no-console - warned.storeName = true; - } - - options = { storeName: true }; - } - const storeName = options !== undefined ? options.storeName : false; - const overwrite = options !== undefined ? options.overwrite : false; - - if (storeName) { - const original = this.original.slice(start, end); - Object.defineProperty(this.storedNames, original, { - writable: true, - value: true, - enumerable: true, - }); - } - - const first = this.byStart[start]; - const last = this.byEnd[end]; - - if (first) { - let chunk = first; - while (chunk !== last) { - if (chunk.next !== this.byStart[chunk.end]) { - throw new Error('Cannot overwrite across a split point'); - } - chunk = chunk.next; - chunk.edit('', false); - } - - first.edit(content, storeName, !overwrite); - } else { - // must be inserting at the end - const newChunk = new Chunk(start, end, '').edit(content, storeName); - - // TODO last chunk in the array may not be the last chunk, if it's moved... - last.next = newChunk; - newChunk.previous = last; - } - return this; - } - - prepend(content) { - if (typeof content !== 'string') throw new TypeError('outro content must be a string'); - - this.intro = content + this.intro; - return this; - } - - prependLeft(index, content) { - if (typeof content !== 'string') throw new TypeError('inserted content must be a string'); - - this._split(index); - - const chunk = this.byEnd[index]; - - if (chunk) { - chunk.prependLeft(content); - } else { - this.intro = content + this.intro; - } - return this; - } - - prependRight(index, content) { - if (typeof content !== 'string') throw new TypeError('inserted content must be a string'); - - this._split(index); - - const chunk = this.byStart[index]; - - if (chunk) { - chunk.prependRight(content); - } else { - this.outro = content + this.outro; - } - return this; - } - - remove(start, end) { - if (this.original.length !== 0) { - while (start < 0) start += this.original.length; - while (end < 0) end += this.original.length; - } - - if (start === end) return this; - - if (start < 0 || end > this.original.length) throw new Error('Character is out of bounds'); - if (start > end) throw new Error('end must be greater than start'); - - this._split(start); - this._split(end); - - let chunk = this.byStart[start]; - - while (chunk) { - chunk.intro = ''; - chunk.outro = ''; - chunk.edit(''); - - chunk = end > chunk.end ? this.byStart[chunk.end] : null; - } - return this; - } - - reset(start, end) { - if (this.original.length !== 0) { - while (start < 0) start += this.original.length; - while (end < 0) end += this.original.length; - } - - if (start === end) return this; - - if (start < 0 || end > this.original.length) throw new Error('Character is out of bounds'); - if (start > end) throw new Error('end must be greater than start'); - - this._split(start); - this._split(end); - - let chunk = this.byStart[start]; - - while (chunk) { - chunk.reset(); - - chunk = end > chunk.end ? this.byStart[chunk.end] : null; - } - return this; - } - - lastChar() { - if (this.outro.length) return this.outro[this.outro.length - 1]; - let chunk = this.lastChunk; - do { - if (chunk.outro.length) return chunk.outro[chunk.outro.length - 1]; - if (chunk.content.length) return chunk.content[chunk.content.length - 1]; - if (chunk.intro.length) return chunk.intro[chunk.intro.length - 1]; - } while ((chunk = chunk.previous)); - if (this.intro.length) return this.intro[this.intro.length - 1]; - return ''; - } - - lastLine() { - let lineIndex = this.outro.lastIndexOf(n); - if (lineIndex !== -1) return this.outro.substr(lineIndex + 1); - let lineStr = this.outro; - let chunk = this.lastChunk; - do { - if (chunk.outro.length > 0) { - lineIndex = chunk.outro.lastIndexOf(n); - if (lineIndex !== -1) return chunk.outro.substr(lineIndex + 1) + lineStr; - lineStr = chunk.outro + lineStr; - } - - if (chunk.content.length > 0) { - lineIndex = chunk.content.lastIndexOf(n); - if (lineIndex !== -1) return chunk.content.substr(lineIndex + 1) + lineStr; - lineStr = chunk.content + lineStr; - } - - if (chunk.intro.length > 0) { - lineIndex = chunk.intro.lastIndexOf(n); - if (lineIndex !== -1) return chunk.intro.substr(lineIndex + 1) + lineStr; - lineStr = chunk.intro + lineStr; - } - } while ((chunk = chunk.previous)); - lineIndex = this.intro.lastIndexOf(n); - if (lineIndex !== -1) return this.intro.substr(lineIndex + 1) + lineStr; - return this.intro + lineStr; - } - - slice(start = 0, end = this.original.length) { - if (this.original.length !== 0) { - while (start < 0) start += this.original.length; - while (end < 0) end += this.original.length; - } - - let result = ''; - - // find start chunk - let chunk = this.firstChunk; - while (chunk && (chunk.start > start || chunk.end <= start)) { - // found end chunk before start - if (chunk.start < end && chunk.end >= end) { - return result; - } - - chunk = chunk.next; - } - - if (chunk && chunk.edited && chunk.start !== start) - throw new Error(`Cannot use replaced character ${start} as slice start anchor.`); - - const startChunk = chunk; - while (chunk) { - if (chunk.intro && (startChunk !== chunk || chunk.start === start)) { - result += chunk.intro; - } - - const containsEnd = chunk.start < end && chunk.end >= end; - if (containsEnd && chunk.edited && chunk.end !== end) - throw new Error(`Cannot use replaced character ${end} as slice end anchor.`); - - const sliceStart = startChunk === chunk ? start - chunk.start : 0; - const sliceEnd = containsEnd ? chunk.content.length + end - chunk.end : chunk.content.length; - - result += chunk.content.slice(sliceStart, sliceEnd); - - if (chunk.outro && (!containsEnd || chunk.end === end)) { - result += chunk.outro; - } - - if (containsEnd) { - break; - } - - chunk = chunk.next; - } - - return result; - } - - // TODO deprecate this? not really very useful - snip(start, end) { - const clone = this.clone(); - clone.remove(0, start); - clone.remove(end, clone.original.length); - - return clone; - } - - _split(index) { - if (this.byStart[index] || this.byEnd[index]) return; - - let chunk = this.lastSearchedChunk; - const searchForward = index > chunk.end; - - while (chunk) { - if (chunk.contains(index)) return this._splitChunk(chunk, index); - - chunk = searchForward ? this.byStart[chunk.end] : this.byEnd[chunk.start]; - } - } - - _splitChunk(chunk, index) { - if (chunk.edited && chunk.content.length) { - // zero-length edited chunks are a special case (overlapping replacements) - const loc = getLocator(this.original)(index); - throw new Error( - `Cannot split a chunk that has already been edited (${loc.line}:${loc.column} – "${chunk.original}")`, - ); - } - - const newChunk = chunk.split(index); - - this.byEnd[index] = chunk; - this.byStart[index] = newChunk; - this.byEnd[newChunk.end] = newChunk; - - if (chunk === this.lastChunk) this.lastChunk = newChunk; - - this.lastSearchedChunk = chunk; - return true; - } - - toString() { - let str = this.intro; - - let chunk = this.firstChunk; - while (chunk) { - str += chunk.toString(); - chunk = chunk.next; - } - - return str + this.outro; - } - - isEmpty() { - let chunk = this.firstChunk; - do { - if ( - (chunk.intro.length && chunk.intro.trim()) || - (chunk.content.length && chunk.content.trim()) || - (chunk.outro.length && chunk.outro.trim()) - ) - return false; - } while ((chunk = chunk.next)); - return true; - } - - length() { - let chunk = this.firstChunk; - let length = 0; - do { - length += chunk.intro.length + chunk.content.length + chunk.outro.length; - } while ((chunk = chunk.next)); - return length; - } - - trimLines() { - return this.trim('[\\r\\n]'); - } - - trim(charType) { - return this.trimStart(charType).trimEnd(charType); - } - - trimEndAborted(charType) { - const rx = new RegExp((charType || '\\s') + '+$'); - - this.outro = this.outro.replace(rx, ''); - if (this.outro.length) return true; - - let chunk = this.lastChunk; - - do { - const end = chunk.end; - const aborted = chunk.trimEnd(rx); - - // if chunk was trimmed, we have a new lastChunk - if (chunk.end !== end) { - if (this.lastChunk === chunk) { - this.lastChunk = chunk.next; - } - - this.byEnd[chunk.end] = chunk; - this.byStart[chunk.next.start] = chunk.next; - this.byEnd[chunk.next.end] = chunk.next; - } - - if (aborted) return true; - chunk = chunk.previous; - } while (chunk); - - return false; - } - - trimEnd(charType) { - this.trimEndAborted(charType); - return this; - } - trimStartAborted(charType) { - const rx = new RegExp('^' + (charType || '\\s') + '+'); - - this.intro = this.intro.replace(rx, ''); - if (this.intro.length) return true; - - let chunk = this.firstChunk; - - do { - const end = chunk.end; - const aborted = chunk.trimStart(rx); - - if (chunk.end !== end) { - // special case... - if (chunk === this.lastChunk) this.lastChunk = chunk.next; - - this.byEnd[chunk.end] = chunk; - this.byStart[chunk.next.start] = chunk.next; - this.byEnd[chunk.next.end] = chunk.next; - } - - if (aborted) return true; - chunk = chunk.next; - } while (chunk); - - return false; - } - - trimStart(charType) { - this.trimStartAborted(charType); - return this; - } - - hasChanged() { - return this.original !== this.toString(); - } - - _replaceRegexp(searchValue, replacement) { - function getReplacement(match, str) { - if (typeof replacement === 'string') { - return replacement.replace(/\$(\$|&|\d+)/g, (_, i) => { - // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#specifying_a_string_as_a_parameter - if (i === '$') return '$'; - if (i === '&') return match[0]; - const num = +i; - if (num < match.length) return match[+i]; - return `$${i}`; - }); - } else { - return replacement(...match, match.index, str, match.groups); - } - } - function matchAll(re, str) { - let match; - const matches = []; - while ((match = re.exec(str))) { - matches.push(match); - } - return matches; - } - if (searchValue.global) { - const matches = matchAll(searchValue, this.original); - matches.forEach((match) => { - if (match.index != null) { - const replacement = getReplacement(match, this.original); - if (replacement !== match[0]) { - this.overwrite( - match.index, - match.index + match[0].length, - replacement - ); - } - } - }); - } else { - const match = this.original.match(searchValue); - if (match && match.index != null) { - const replacement = getReplacement(match, this.original); - if (replacement !== match[0]) { - this.overwrite( - match.index, - match.index + match[0].length, - replacement - ); - } - } - } - return this; - } - - _replaceString(string, replacement) { - const { original } = this; - const index = original.indexOf(string); - - if (index !== -1) { - this.overwrite(index, index + string.length, replacement); - } - - return this; - } - - replace(searchValue, replacement) { - if (typeof searchValue === 'string') { - return this._replaceString(searchValue, replacement); - } - - return this._replaceRegexp(searchValue, replacement); - } - - _replaceAllString(string, replacement) { - const { original } = this; - const stringLength = string.length; - for ( - let index = original.indexOf(string); - index !== -1; - index = original.indexOf(string, index + stringLength) - ) { - const previous = original.slice(index, index + stringLength); - if (previous !== replacement) - this.overwrite(index, index + stringLength, replacement); - } - - return this; - } - - replaceAll(searchValue, replacement) { - if (typeof searchValue === 'string') { - return this._replaceAllString(searchValue, replacement); - } - - if (!searchValue.global) { - throw new TypeError( - 'MagicString.prototype.replaceAll called with a non-global RegExp argument', - ); - } - - return this._replaceRegexp(searchValue, replacement); - } -} - -const debug$1 = createDebugger("vite:sourcemap", { - onlyWhenFocused: true -}); -function genSourceMapUrl(map) { - if (typeof map !== "string") { - map = JSON.stringify(map); - } - return `data:application/json;base64,${Buffer.from(map).toString("base64")}`; -} -function getCodeWithSourcemap(type, code, map) { - if (debug$1) { - code += ` -/*${JSON.stringify(map, null, 2).replace(/\*\//g, "*\\/")}*/ -`; - } - if (type === "js") { - code += ` -//# sourceMappingURL=${genSourceMapUrl(map)}`; - } else if (type === "css") { - code += ` -/*# sourceMappingURL=${genSourceMapUrl(map)} */`; - } - return code; -} - -const debug = createDebugger("vite:send", { - onlyWhenFocused: true -}); -const alias = { - js: "text/javascript", - css: "text/css", - html: "text/html", - json: "application/json" -}; -function send(req, res, content, type, options) { - const { - etag = getEtag(content, { weak: true }), - cacheControl = "no-cache", - headers, - map - } = options; - if (res.writableEnded) { - return; - } - if (req.headers["if-none-match"] === etag) { - res.statusCode = 304; - res.end(); - return; - } - res.setHeader("Content-Type", alias[type] || type); - res.setHeader("Cache-Control", cacheControl); - res.setHeader("Etag", etag); - if (headers) { - for (const name in headers) { - res.setHeader(name, headers[name]); - } - } - if (map && "version" in map && map.mappings) { - if (type === "js" || type === "css") { - content = getCodeWithSourcemap(type, content.toString(), map); - } - } else if (type === "js" && (!map || map.mappings !== "")) { - const code = content.toString(); - if (convertSourceMap.mapFileCommentRegex.test(code)) { - debug?.(`Skipped injecting fallback sourcemap for ${req.url}`); - } else { - const urlWithoutTimestamp = removeTimestampQuery(req.url); - const ms = new MagicString(code); - content = getCodeWithSourcemap( - type, - code, - ms.generateMap({ - source: path$3.basename(urlWithoutTimestamp), - hires: "boundary", - includeContent: true - }) - ); - } - } - res.statusCode = 200; - res.end(content); - return; -} - -const LogLevels = { - silent: 0, - error: 1, - warn: 2, - info: 3 -}; -let lastType; -let lastMsg; -let sameCount = 0; -function clearScreen() { - const repeatCount = process.stdout.rows - 2; - const blank = repeatCount > 0 ? "\n".repeat(repeatCount) : ""; - console.log(blank); - readline.cursorTo(process.stdout, 0, 0); - readline.clearScreenDown(process.stdout); -} -let timeFormatter; -function getTimeFormatter() { - timeFormatter ??= new Intl.DateTimeFormat(void 0, { - hour: "numeric", - minute: "numeric", - second: "numeric" - }); - return timeFormatter; -} -function createLogger(level = "info", options = {}) { - if (options.customLogger) { - return options.customLogger; - } - const loggedErrors = /* @__PURE__ */ new WeakSet(); - const { prefix = "[vite]", allowClearScreen = true } = options; - const thresh = LogLevels[level]; - const canClearScreen = allowClearScreen && process.stdout.isTTY && !process.env.CI; - const clear = canClearScreen ? clearScreen : () => { - }; - function format(type, msg, options2 = {}) { - if (options2.timestamp) { - let tag = ""; - if (type === "info") { - tag = colors.cyan(colors.bold(prefix)); - } else if (type === "warn") { - tag = colors.yellow(colors.bold(prefix)); - } else { - tag = colors.red(colors.bold(prefix)); - } - return `${colors.dim(getTimeFormatter().format(/* @__PURE__ */ new Date()))} ${tag} ${msg}`; - } else { - return msg; - } - } - function output(type, msg, options2 = {}) { - if (thresh >= LogLevels[type]) { - const method = type === "info" ? "log" : type; - if (options2.error) { - loggedErrors.add(options2.error); - } - if (canClearScreen) { - if (type === lastType && msg === lastMsg) { - sameCount++; - clear(); - console[method]( - format(type, msg, options2), - colors.yellow(`(x${sameCount + 1})`) - ); - } else { - sameCount = 0; - lastMsg = msg; - lastType = type; - if (options2.clear) { - clear(); - } - console[method](format(type, msg, options2)); - } - } else { - console[method](format(type, msg, options2)); - } - } - } - const warnedMessages = /* @__PURE__ */ new Set(); - const logger = { - hasWarned: false, - info(msg, opts) { - output("info", msg, opts); - }, - warn(msg, opts) { - logger.hasWarned = true; - output("warn", msg, opts); - }, - warnOnce(msg, opts) { - if (warnedMessages.has(msg)) return; - logger.hasWarned = true; - output("warn", msg, opts); - warnedMessages.add(msg); - }, - error(msg, opts) { - logger.hasWarned = true; - output("error", msg, opts); - }, - clearScreen(type) { - if (thresh >= LogLevels[type]) { - clear(); - } - }, - hasErrorLogged(error) { - return loggedErrors.has(error); - } - }; - return logger; -} - -const ROOT_FILES = [ - // '.git', - // https://pnpm.io/workspaces/ - "pnpm-workspace.yaml", - // https://rushjs.io/pages/advanced/config_files/ - // 'rush.json', - // https://nx.dev/latest/react/getting-started/nx-setup - // 'workspace.json', - // 'nx.json', - // https://github.com/lerna/lerna#lernajson - "lerna.json" -]; -function hasWorkspacePackageJSON(root) { - const path = path$3.join(root, "package.json"); - if (!isFileReadable(path)) { - return false; - } - try { - const content = JSON.parse(fs$1.readFileSync(path, "utf-8")) || {}; - return !!content.workspaces; - } catch { - return false; - } -} -function hasRootFile(root) { - return ROOT_FILES.some((file) => fs$1.existsSync(path$3.join(root, file))); -} -function hasPackageJSON(root) { - const path = path$3.join(root, "package.json"); - return fs$1.existsSync(path); -} -function searchForPackageRoot(current, root = current) { - if (hasPackageJSON(current)) return current; - const dir = path$3.dirname(current); - if (!dir || dir === current) return root; - return searchForPackageRoot(dir, root); -} -function searchForWorkspaceRoot(current, root = searchForPackageRoot(current)) { - if (hasRootFile(current)) return current; - if (hasWorkspacePackageJSON(current)) return current; - const dir = path$3.dirname(current); - if (!dir || dir === current) return root; - return searchForWorkspaceRoot(dir, root); -} - -function isFileServingAllowed(url, server) { - if (!server.config.server.fs.strict) return true; - const file = fsPathFromUrl(url); - if (server._fsDenyGlob(file)) return false; - if (server.moduleGraph.safeModulesPath.has(file)) return true; - if (server.config.server.fs.allow.some( - (uri) => isSameFileUri(uri, file) || isParentDirectory(uri, file) - )) - return true; - return false; -} - -var main$1 = {exports: {}}; - -var name = "dotenv"; -var version$1 = "16.4.5"; -var description = "Loads environment variables from .env file"; -var main = "lib/main.js"; -var types = "lib/main.d.ts"; -var exports$1 = { - ".": { - types: "./lib/main.d.ts", - require: "./lib/main.js", - "default": "./lib/main.js" - }, - "./config": "./config.js", - "./config.js": "./config.js", - "./lib/env-options": "./lib/env-options.js", - "./lib/env-options.js": "./lib/env-options.js", - "./lib/cli-options": "./lib/cli-options.js", - "./lib/cli-options.js": "./lib/cli-options.js", - "./package.json": "./package.json" -}; -var scripts = { - "dts-check": "tsc --project tests/types/tsconfig.json", - lint: "standard", - "lint-readme": "standard-markdown", - pretest: "npm run lint && npm run dts-check", - test: "tap tests/*.js --100 -Rspec", - "test:coverage": "tap --coverage-report=lcov", - prerelease: "npm test", - release: "standard-version" -}; -var repository = { - type: "git", - url: "git://github.com/motdotla/dotenv.git" -}; -var funding = "https://dotenvx.com"; -var keywords = [ - "dotenv", - "env", - ".env", - "environment", - "variables", - "config", - "settings" -]; -var readmeFilename = "README.md"; -var license = "BSD-2-Clause"; -var devDependencies = { - "@definitelytyped/dtslint": "^0.0.133", - "@types/node": "^18.11.3", - decache: "^4.6.1", - sinon: "^14.0.1", - standard: "^17.0.0", - "standard-markdown": "^7.1.0", - "standard-version": "^9.5.0", - tap: "^16.3.0", - tar: "^6.1.11", - typescript: "^4.8.4" -}; -var engines = { - node: ">=12" -}; -var browser = { - fs: false -}; -var require$$4 = { - name: name, - version: version$1, - description: description, - main: main, - types: types, - exports: exports$1, - scripts: scripts, - repository: repository, - funding: funding, - keywords: keywords, - readmeFilename: readmeFilename, - license: license, - devDependencies: devDependencies, - engines: engines, - browser: browser -}; - -const fs = fs$2; -const path = require$$0$1; -const os = require$$2; -const crypto = require$$0$2; -const packageJson = require$$4; - -const version = packageJson.version; - -const LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg; - -// Parse src into an Object -function parse (src) { - const obj = {}; - - // Convert buffer to string - let lines = src.toString(); - - // Convert line breaks to same format - lines = lines.replace(/\r\n?/mg, '\n'); - - let match; - while ((match = LINE.exec(lines)) != null) { - const key = match[1]; - - // Default undefined or null to empty string - let value = (match[2] || ''); - - // Remove whitespace - value = value.trim(); - - // Check if double quoted - const maybeQuote = value[0]; - - // Remove surrounding quotes - value = value.replace(/^(['"`])([\s\S]*)\1$/mg, '$2'); - - // Expand newlines if double quoted - if (maybeQuote === '"') { - value = value.replace(/\\n/g, '\n'); - value = value.replace(/\\r/g, '\r'); - } - - // Add to object - obj[key] = value; - } - - return obj -} - -function _parseVault (options) { - const vaultPath = _vaultPath(options); - - // Parse .env.vault - const result = DotenvModule.configDotenv({ path: vaultPath }); - if (!result.parsed) { - const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`); - err.code = 'MISSING_DATA'; - throw err - } - - // handle scenario for comma separated keys - for use with key rotation - // example: DOTENV_KEY="dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=prod,dotenv://:key_7890@dotenvx.com/vault/.env.vault?environment=prod" - const keys = _dotenvKey(options).split(','); - const length = keys.length; - - let decrypted; - for (let i = 0; i < length; i++) { - try { - // Get full key - const key = keys[i].trim(); - - // Get instructions for decrypt - const attrs = _instructions(result, key); - - // Decrypt - decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key); - - break - } catch (error) { - // last key - if (i + 1 >= length) { - throw error - } - // try next key - } - } - - // Parse decrypted .env string - return DotenvModule.parse(decrypted) -} - -function _log (message) { - console.log(`[dotenv@${version}][INFO] ${message}`); -} - -function _warn (message) { - console.log(`[dotenv@${version}][WARN] ${message}`); -} - -function _debug (message) { - console.log(`[dotenv@${version}][DEBUG] ${message}`); -} - -function _dotenvKey (options) { - // prioritize developer directly setting options.DOTENV_KEY - if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) { - return options.DOTENV_KEY - } - - // secondary infra already contains a DOTENV_KEY environment variable - if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) { - return process.env.DOTENV_KEY - } - - // fallback to empty string - return '' -} - -function _instructions (result, dotenvKey) { - // Parse DOTENV_KEY. Format is a URI - let uri; - try { - uri = new URL(dotenvKey); - } catch (error) { - if (error.code === 'ERR_INVALID_URL') { - const err = new Error('INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development'); - err.code = 'INVALID_DOTENV_KEY'; - throw err - } - - throw error - } - - // Get decrypt key - const key = uri.password; - if (!key) { - const err = new Error('INVALID_DOTENV_KEY: Missing key part'); - err.code = 'INVALID_DOTENV_KEY'; - throw err - } - - // Get environment - const environment = uri.searchParams.get('environment'); - if (!environment) { - const err = new Error('INVALID_DOTENV_KEY: Missing environment part'); - err.code = 'INVALID_DOTENV_KEY'; - throw err - } - - // Get ciphertext payload - const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`; - const ciphertext = result.parsed[environmentKey]; // DOTENV_VAULT_PRODUCTION - if (!ciphertext) { - const err = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`); - err.code = 'NOT_FOUND_DOTENV_ENVIRONMENT'; - throw err - } - - return { ciphertext, key } -} - -function _vaultPath (options) { - let possibleVaultPath = null; - - if (options && options.path && options.path.length > 0) { - if (Array.isArray(options.path)) { - for (const filepath of options.path) { - if (fs.existsSync(filepath)) { - possibleVaultPath = filepath.endsWith('.vault') ? filepath : `${filepath}.vault`; - } - } - } else { - possibleVaultPath = options.path.endsWith('.vault') ? options.path : `${options.path}.vault`; - } - } else { - possibleVaultPath = path.resolve(process.cwd(), '.env.vault'); - } - - if (fs.existsSync(possibleVaultPath)) { - return possibleVaultPath - } - - return null -} - -function _resolveHome (envPath) { - return envPath[0] === '~' ? path.join(os.homedir(), envPath.slice(1)) : envPath -} - -function _configVault (options) { - _log('Loading env from encrypted .env.vault'); - - const parsed = DotenvModule._parseVault(options); - - let processEnv = process.env; - if (options && options.processEnv != null) { - processEnv = options.processEnv; - } - - DotenvModule.populate(processEnv, parsed, options); - - return { parsed } -} - -function configDotenv (options) { - const dotenvPath = path.resolve(process.cwd(), '.env'); - let encoding = 'utf8'; - const debug = Boolean(options && options.debug); - - if (options && options.encoding) { - encoding = options.encoding; - } else { - if (debug) { - _debug('No encoding is specified. UTF-8 is used by default'); - } - } - - let optionPaths = [dotenvPath]; // default, look for .env - if (options && options.path) { - if (!Array.isArray(options.path)) { - optionPaths = [_resolveHome(options.path)]; - } else { - optionPaths = []; // reset default - for (const filepath of options.path) { - optionPaths.push(_resolveHome(filepath)); - } - } - } - - // Build the parsed data in a temporary object (because we need to return it). Once we have the final - // parsed data, we will combine it with process.env (or options.processEnv if provided). - let lastError; - const parsedAll = {}; - for (const path of optionPaths) { - try { - // Specifying an encoding returns a string instead of a buffer - const parsed = DotenvModule.parse(fs.readFileSync(path, { encoding })); - - DotenvModule.populate(parsedAll, parsed, options); - } catch (e) { - if (debug) { - _debug(`Failed to load ${path} ${e.message}`); - } - lastError = e; - } - } - - let processEnv = process.env; - if (options && options.processEnv != null) { - processEnv = options.processEnv; - } - - DotenvModule.populate(processEnv, parsedAll, options); - - if (lastError) { - return { parsed: parsedAll, error: lastError } - } else { - return { parsed: parsedAll } - } -} - -// Populates process.env from .env file -function config (options) { - // fallback to original dotenv if DOTENV_KEY is not set - if (_dotenvKey(options).length === 0) { - return DotenvModule.configDotenv(options) - } - - const vaultPath = _vaultPath(options); - - // dotenvKey exists but .env.vault file does not exist - if (!vaultPath) { - _warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`); - - return DotenvModule.configDotenv(options) - } - - return DotenvModule._configVault(options) -} - -function decrypt (encrypted, keyStr) { - const key = Buffer.from(keyStr.slice(-64), 'hex'); - let ciphertext = Buffer.from(encrypted, 'base64'); - - const nonce = ciphertext.subarray(0, 12); - const authTag = ciphertext.subarray(-16); - ciphertext = ciphertext.subarray(12, -16); - - try { - const aesgcm = crypto.createDecipheriv('aes-256-gcm', key, nonce); - aesgcm.setAuthTag(authTag); - return `${aesgcm.update(ciphertext)}${aesgcm.final()}` - } catch (error) { - const isRange = error instanceof RangeError; - const invalidKeyLength = error.message === 'Invalid key length'; - const decryptionFailed = error.message === 'Unsupported state or unable to authenticate data'; - - if (isRange || invalidKeyLength) { - const err = new Error('INVALID_DOTENV_KEY: It must be 64 characters long (or more)'); - err.code = 'INVALID_DOTENV_KEY'; - throw err - } else if (decryptionFailed) { - const err = new Error('DECRYPTION_FAILED: Please check your DOTENV_KEY'); - err.code = 'DECRYPTION_FAILED'; - throw err - } else { - throw error - } - } -} - -// Populate process.env with parsed values -function populate (processEnv, parsed, options = {}) { - const debug = Boolean(options && options.debug); - const override = Boolean(options && options.override); - - if (typeof parsed !== 'object') { - const err = new Error('OBJECT_REQUIRED: Please check the processEnv argument being passed to populate'); - err.code = 'OBJECT_REQUIRED'; - throw err - } - - // Set process.env - for (const key of Object.keys(parsed)) { - if (Object.prototype.hasOwnProperty.call(processEnv, key)) { - if (override === true) { - processEnv[key] = parsed[key]; - } - - if (debug) { - if (override === true) { - _debug(`"${key}" is already defined and WAS overwritten`); - } else { - _debug(`"${key}" is already defined and was NOT overwritten`); - } - } - } else { - processEnv[key] = parsed[key]; - } - } -} - -const DotenvModule = { - configDotenv, - _configVault, - _parseVault, - config, - decrypt, - parse, - populate -}; - -main$1.exports.configDotenv = DotenvModule.configDotenv; -main$1.exports._configVault = DotenvModule._configVault; -main$1.exports._parseVault = DotenvModule._parseVault; -main$1.exports.config = DotenvModule.config; -main$1.exports.decrypt = DotenvModule.decrypt; -var parse_1 = main$1.exports.parse = DotenvModule.parse; -main$1.exports.populate = DotenvModule.populate; - -main$1.exports = DotenvModule; - -// * / -// * (\\)? # is it escaped with a backslash? -// * (\$) # literal $ -// * (?!\() # shouldnt be followed by parenthesis -// * (\{?) # first brace wrap opening -// * ([\w.]+) # key -// * (?::-((?:\$\{(?:\$\{(?:\$\{[^}]*\}|[^}])*}|[^}])*}|[^}])+))? # optional default nested 3 times -// * (\}?) # last brace warp closing -// * /xi - -const DOTENV_SUBSTITUTION_REGEX = /(\\)?(\$)(?!\()(\{?)([\w.]+)(?::?-((?:\$\{(?:\$\{(?:\$\{[^}]*\}|[^}])*}|[^}])*}|[^}])+))?(\}?)/gi; - -function _resolveEscapeSequences (value) { - return value.replace(/\\\$/g, '$') -} - -function interpolate (value, processEnv, parsed) { - return value.replace(DOTENV_SUBSTITUTION_REGEX, (match, escaped, dollarSign, openBrace, key, defaultValue, closeBrace) => { - if (escaped === '\\') { - return match.slice(1) - } else { - if (processEnv[key]) { - if (processEnv[key] === parsed[key]) { - return processEnv[key] - } else { - // scenario: PASSWORD_EXPAND_NESTED=${PASSWORD_EXPAND} - return interpolate(processEnv[key], processEnv, parsed) - } - } - - if (parsed[key]) { - // avoid recursion from EXPAND_SELF=$EXPAND_SELF - if (parsed[key] === value) { - return parsed[key] - } else { - return interpolate(parsed[key], processEnv, parsed) - } - } - - if (defaultValue) { - if (defaultValue.startsWith('$')) { - return interpolate(defaultValue, processEnv, parsed) - } else { - return defaultValue - } - } - - return '' - } - }) -} - -function expand (options) { - let processEnv = process.env; - if (options && options.processEnv != null) { - processEnv = options.processEnv; - } - - for (const key in options.parsed) { - let value = options.parsed[key]; - - const inProcessEnv = Object.prototype.hasOwnProperty.call(processEnv, key); - if (inProcessEnv) { - if (processEnv[key] === options.parsed[key]) { - // assume was set to processEnv from the .env file if the values match and therefore interpolate - value = interpolate(value, processEnv, options.parsed); - } else { - // do not interpolate - assume processEnv had the intended value even if containing a $. - value = processEnv[key]; - } - } else { - // not inProcessEnv so assume interpolation for this .env key - value = interpolate(value, processEnv, options.parsed); - } - - options.parsed[key] = _resolveEscapeSequences(value); - } - - for (const processKey in options.parsed) { - processEnv[processKey] = options.parsed[processKey]; - } - - return options -} - -var expand_1 = expand; - -function getEnvFilesForMode(mode, envDir) { - return [ - /** default file */ - `.env`, - /** local file */ - `.env.local`, - /** mode file */ - `.env.${mode}`, - /** mode local file */ - `.env.${mode}.local` - ].map((file) => normalizePath(path$3.join(envDir, file))); -} -function loadEnv(mode, envDir, prefixes = "VITE_") { - if (mode === "local") { - throw new Error( - `"local" cannot be used as a mode name because it conflicts with the .local postfix for .env files.` - ); - } - prefixes = arraify(prefixes); - const env = {}; - const envFiles = getEnvFilesForMode(mode, envDir); - const parsed = Object.fromEntries( - envFiles.flatMap((filePath) => { - if (!tryStatSync(filePath)?.isFile()) return []; - return Object.entries(parse_1(fs$1.readFileSync(filePath))); - }) - ); - if (parsed.NODE_ENV && process.env.VITE_USER_NODE_ENV === void 0) { - process.env.VITE_USER_NODE_ENV = parsed.NODE_ENV; - } - if (parsed.BROWSER && process.env.BROWSER === void 0) { - process.env.BROWSER = parsed.BROWSER; - } - if (parsed.BROWSER_ARGS && process.env.BROWSER_ARGS === void 0) { - process.env.BROWSER_ARGS = parsed.BROWSER_ARGS; - } - const processEnv = { ...process.env }; - expand_1({ parsed, processEnv }); - for (const [key, value] of Object.entries(parsed)) { - if (prefixes.some((prefix) => key.startsWith(prefix))) { - env[key] = value; - } - } - for (const key in process.env) { - if (prefixes.some((prefix) => key.startsWith(prefix))) { - env[key] = process.env[key]; - } - } - return env; -} -function resolveEnvPrefix({ - envPrefix = "VITE_" -}) { - envPrefix = arraify(envPrefix); - if (envPrefix.includes("")) { - throw new Error( - `envPrefix option contains value '', which could lead unexpected exposure of sensitive information.` - ); - } - return envPrefix; -} - -exports.esbuildVersion = esbuild.version; -exports.createFilter = createFilter; -exports.createLogger = createLogger; -exports.isCSSRequest = isCSSRequest; -exports.isFileServingAllowed = isFileServingAllowed; -exports.loadEnv = loadEnv; -exports.mergeAlias = mergeAlias; -exports.mergeConfig = mergeConfig; -exports.normalizePath = normalizePath; -exports.resolveEnvPrefix = resolveEnvPrefix; -exports.rollupVersion = rollupVersion; -exports.searchForWorkspaceRoot = searchForWorkspaceRoot; -exports.send = send; -exports.splitVendorChunk = splitVendorChunk; -exports.splitVendorChunkPlugin = splitVendorChunkPlugin; -exports.version = VERSION; diff --git a/node_modules/vite/dist/node/chunks/dep-Bg3it0Nb.js b/node_modules/vite/dist/node/chunks/dep-Bg3it0Nb.js deleted file mode 100644 index 669c2033..00000000 --- a/node_modules/vite/dist/node/chunks/dep-Bg3it0Nb.js +++ /dev/null @@ -1,993 +0,0 @@ -import { B as getDefaultExportFromCjs } from './dep-Dyl6b77n.js'; -import require$$0 from 'path'; -import require$$0__default from 'fs'; -import { l as lib } from './dep-IQS-Za7F.js'; - -import { fileURLToPath as __cjs_fileURLToPath } from 'node:url'; -import { dirname as __cjs_dirname } from 'node:path'; -import { createRequire as __cjs_createRequire } from 'node:module'; - -const __filename = __cjs_fileURLToPath(import.meta.url); -const __dirname = __cjs_dirname(__filename); -const require = __cjs_createRequire(import.meta.url); -const __require = require; -function _mergeNamespaces(n, m) { - for (var i = 0; i < m.length; i++) { - var e = m[i]; - if (typeof e !== 'string' && !Array.isArray(e)) { for (var k in e) { - if (k !== 'default' && !(k in n)) { - n[k] = e[k]; - } - } } - } - return n; -} - -var formatImportPrelude$2 = function formatImportPrelude(layer, media, supports) { - const parts = []; - - if (typeof layer !== "undefined") { - let layerParams = "layer"; - if (layer) { - layerParams = `layer(${layer})`; - } - - parts.push(layerParams); - } - - if (typeof supports !== "undefined") { - parts.push(`supports(${supports})`); - } - - if (typeof media !== "undefined") { - parts.push(media); - } - - return parts.join(" ") -}; - -const formatImportPrelude$1 = formatImportPrelude$2; - -// Base64 encode an import with conditions -// The order of conditions is important and is interleaved with cascade layer declarations -// Each group of conditions and cascade layers needs to be interpreted in order -// To achieve this we create a list of base64 encoded imports, where each import contains a stylesheet with another import. -// Each import can define a single group of conditions and a single cascade layer. -var base64EncodedImport = function base64EncodedConditionalImport(prelude, conditions) { - conditions.reverse(); - const first = conditions.pop(); - let params = `${prelude} ${formatImportPrelude$1( - first.layer, - first.media, - first.supports, - )}`; - - for (const condition of conditions) { - params = `'data:text/css;base64,${Buffer.from(`@import ${params}`).toString( - "base64", - )}' ${formatImportPrelude$1( - condition.layer, - condition.media, - condition.supports, - )}`; - } - - return params -}; - -const base64EncodedConditionalImport = base64EncodedImport; - -var applyConditions$1 = function applyConditions(bundle, atRule) { - bundle.forEach(stmt => { - if ( - stmt.type === "charset" || - stmt.type === "warning" || - !stmt.conditions?.length - ) { - return - } - - if (stmt.type === "import") { - stmt.node.params = base64EncodedConditionalImport( - stmt.fullUri, - stmt.conditions, - ); - return - } - - const { nodes } = stmt; - const { parent } = nodes[0]; - - const atRules = []; - - // Convert conditions to at-rules - for (const condition of stmt.conditions) { - if (typeof condition.media !== "undefined") { - const mediaNode = atRule({ - name: "media", - params: condition.media, - source: parent.source, - }); - - atRules.push(mediaNode); - } - - if (typeof condition.supports !== "undefined") { - const supportsNode = atRule({ - name: "supports", - params: `(${condition.supports})`, - source: parent.source, - }); - - atRules.push(supportsNode); - } - - if (typeof condition.layer !== "undefined") { - const layerNode = atRule({ - name: "layer", - params: condition.layer, - source: parent.source, - }); - - atRules.push(layerNode); - } - } - - // Add nodes to AST - const outerAtRule = atRules.shift(); - const innerAtRule = atRules.reduce((previous, next) => { - previous.append(next); - return next - }, outerAtRule); - - parent.insertBefore(nodes[0], outerAtRule); - - // remove nodes - nodes.forEach(node => { - node.parent = undefined; - }); - - // better output - nodes[0].raws.before = nodes[0].raws.before || "\n"; - - // wrap new rules with media query and/or layer at rule - innerAtRule.append(nodes); - - stmt.type = "nodes"; - stmt.nodes = [outerAtRule]; - delete stmt.node; - }); -}; - -var applyRaws$1 = function applyRaws(bundle) { - bundle.forEach((stmt, index) => { - if (index === 0) return - - if (stmt.parent) { - const { before } = stmt.parent.node.raws; - if (stmt.type === "nodes") stmt.nodes[0].raws.before = before; - else stmt.node.raws.before = before; - } else if (stmt.type === "nodes") { - stmt.nodes[0].raws.before = stmt.nodes[0].raws.before || "\n"; - } - }); -}; - -var applyStyles$1 = function applyStyles(bundle, styles) { - styles.nodes = []; - - // Strip additional statements. - bundle.forEach(stmt => { - if (["charset", "import"].includes(stmt.type)) { - stmt.node.parent = undefined; - styles.append(stmt.node); - } else if (stmt.type === "nodes") { - stmt.nodes.forEach(node => { - node.parent = undefined; - styles.append(node); - }); - } - }); -}; - -var readCache$1 = {exports: {}}; - -var pify$2 = {exports: {}}; - -var processFn = function (fn, P, opts) { - return function () { - var that = this; - var args = new Array(arguments.length); - - for (var i = 0; i < arguments.length; i++) { - args[i] = arguments[i]; - } - - return new P(function (resolve, reject) { - args.push(function (err, result) { - if (err) { - reject(err); - } else if (opts.multiArgs) { - var results = new Array(arguments.length - 1); - - for (var i = 1; i < arguments.length; i++) { - results[i - 1] = arguments[i]; - } - - resolve(results); - } else { - resolve(result); - } - }); - - fn.apply(that, args); - }); - }; -}; - -var pify$1 = pify$2.exports = function (obj, P, opts) { - if (typeof P !== 'function') { - opts = P; - P = Promise; - } - - opts = opts || {}; - opts.exclude = opts.exclude || [/.+Sync$/]; - - var filter = function (key) { - var match = function (pattern) { - return typeof pattern === 'string' ? key === pattern : pattern.test(key); - }; - - return opts.include ? opts.include.some(match) : !opts.exclude.some(match); - }; - - var ret = typeof obj === 'function' ? function () { - if (opts.excludeMain) { - return obj.apply(this, arguments); - } - - return processFn(obj, P, opts).apply(this, arguments); - } : {}; - - return Object.keys(obj).reduce(function (ret, key) { - var x = obj[key]; - - ret[key] = typeof x === 'function' && filter(key) ? processFn(x, P, opts) : x; - - return ret; - }, ret); -}; - -pify$1.all = pify$1; - -var pifyExports = pify$2.exports; - -var fs = require$$0__default; -var path$3 = require$$0; -var pify = pifyExports; - -var stat = pify(fs.stat); -var readFile = pify(fs.readFile); -var resolve = path$3.resolve; - -var cache = Object.create(null); - -function convert(content, encoding) { - if (Buffer.isEncoding(encoding)) { - return content.toString(encoding); - } - return content; -} - -readCache$1.exports = function (path, encoding) { - path = resolve(path); - - return stat(path).then(function (stats) { - var item = cache[path]; - - if (item && item.mtime.getTime() === stats.mtime.getTime()) { - return convert(item.content, encoding); - } - - return readFile(path).then(function (data) { - cache[path] = { - mtime: stats.mtime, - content: data - }; - - return convert(data, encoding); - }); - }).catch(function (err) { - cache[path] = null; - return Promise.reject(err); - }); -}; - -readCache$1.exports.sync = function (path, encoding) { - path = resolve(path); - - try { - var stats = fs.statSync(path); - var item = cache[path]; - - if (item && item.mtime.getTime() === stats.mtime.getTime()) { - return convert(item.content, encoding); - } - - var data = fs.readFileSync(path); - - cache[path] = { - mtime: stats.mtime, - content: data - }; - - return convert(data, encoding); - } catch (err) { - cache[path] = null; - throw err; - } - -}; - -readCache$1.exports.get = function (path, encoding) { - path = resolve(path); - if (cache[path]) { - return convert(cache[path].content, encoding); - } - return null; -}; - -readCache$1.exports.clear = function () { - cache = Object.create(null); -}; - -var readCacheExports = readCache$1.exports; - -const anyDataURLRegexp = /^data:text\/css(?:;(base64|plain))?,/i; -const base64DataURLRegexp = /^data:text\/css;base64,/i; -const plainDataURLRegexp = /^data:text\/css;plain,/i; - -function isValid(url) { - return anyDataURLRegexp.test(url) -} - -function contents(url) { - if (base64DataURLRegexp.test(url)) { - // "data:text/css;base64,".length === 21 - return Buffer.from(url.slice(21), "base64").toString() - } - - if (plainDataURLRegexp.test(url)) { - // "data:text/css;plain,".length === 20 - return decodeURIComponent(url.slice(20)) - } - - // "data:text/css,".length === 14 - return decodeURIComponent(url.slice(14)) -} - -var dataUrl = { - isValid, - contents, -}; - -const readCache = readCacheExports; -const dataURL$1 = dataUrl; - -var loadContent$1 = function loadContent(filename) { - if (dataURL$1.isValid(filename)) { - return dataURL$1.contents(filename) - } - - return readCache(filename, "utf-8") -}; - -// external tooling -const valueParser = lib; - -// extended tooling -const { stringify } = valueParser; - -var parseStatements$1 = function parseStatements(result, styles, conditions, from) { - const statements = []; - let nodes = []; - - styles.each(node => { - let stmt; - if (node.type === "atrule") { - if (node.name === "import") - stmt = parseImport(result, node, conditions, from); - else if (node.name === "charset") - stmt = parseCharset(result, node, conditions, from); - } - - if (stmt) { - if (nodes.length) { - statements.push({ - type: "nodes", - nodes, - conditions: [...conditions], - from, - }); - nodes = []; - } - statements.push(stmt); - } else nodes.push(node); - }); - - if (nodes.length) { - statements.push({ - type: "nodes", - nodes, - conditions: [...conditions], - from, - }); - } - - return statements -}; - -function parseCharset(result, atRule, conditions, from) { - if (atRule.prev()) { - return result.warn("@charset must precede all other statements", { - node: atRule, - }) - } - return { - type: "charset", - node: atRule, - conditions: [...conditions], - from, - } -} - -function parseImport(result, atRule, conditions, from) { - let prev = atRule.prev(); - - // `@import` statements may follow other `@import` statements. - if (prev) { - do { - if ( - prev.type === "comment" || - (prev.type === "atrule" && prev.name === "import") - ) { - prev = prev.prev(); - continue - } - - break - } while (prev) - } - - // All `@import` statements may be preceded by `@charset` or `@layer` statements. - // But the `@import` statements must be consecutive. - if (prev) { - do { - if ( - prev.type === "comment" || - (prev.type === "atrule" && - (prev.name === "charset" || (prev.name === "layer" && !prev.nodes))) - ) { - prev = prev.prev(); - continue - } - - return result.warn( - "@import must precede all other statements (besides @charset or empty @layer)", - { node: atRule }, - ) - } while (prev) - } - - if (atRule.nodes) { - return result.warn( - "It looks like you didn't end your @import statement correctly. " + - "Child nodes are attached to it.", - { node: atRule }, - ) - } - - const params = valueParser(atRule.params).nodes; - const stmt = { - type: "import", - uri: "", - fullUri: "", - node: atRule, - conditions: [...conditions], - from, - }; - - let layer; - let media; - let supports; - - for (let i = 0; i < params.length; i++) { - const node = params[i]; - - if (node.type === "space" || node.type === "comment") continue - - if (node.type === "string") { - if (stmt.uri) { - return result.warn(`Multiple url's in '${atRule.toString()}'`, { - node: atRule, - }) - } - - if (!node.value) { - return result.warn(`Unable to find uri in '${atRule.toString()}'`, { - node: atRule, - }) - } - - stmt.uri = node.value; - stmt.fullUri = stringify(node); - continue - } - - if (node.type === "function" && /^url$/i.test(node.value)) { - if (stmt.uri) { - return result.warn(`Multiple url's in '${atRule.toString()}'`, { - node: atRule, - }) - } - - if (!node.nodes?.[0]?.value) { - return result.warn(`Unable to find uri in '${atRule.toString()}'`, { - node: atRule, - }) - } - - stmt.uri = node.nodes[0].value; - stmt.fullUri = stringify(node); - continue - } - - if (!stmt.uri) { - return result.warn(`Unable to find uri in '${atRule.toString()}'`, { - node: atRule, - }) - } - - if ( - (node.type === "word" || node.type === "function") && - /^layer$/i.test(node.value) - ) { - if (typeof layer !== "undefined") { - return result.warn(`Multiple layers in '${atRule.toString()}'`, { - node: atRule, - }) - } - - if (typeof supports !== "undefined") { - return result.warn( - `layers must be defined before support conditions in '${atRule.toString()}'`, - { - node: atRule, - }, - ) - } - - if (node.nodes) { - layer = stringify(node.nodes); - } else { - layer = ""; - } - - continue - } - - if (node.type === "function" && /^supports$/i.test(node.value)) { - if (typeof supports !== "undefined") { - return result.warn( - `Multiple support conditions in '${atRule.toString()}'`, - { - node: atRule, - }, - ) - } - - supports = stringify(node.nodes); - - continue - } - - media = stringify(params.slice(i)); - break - } - - if (!stmt.uri) { - return result.warn(`Unable to find uri in '${atRule.toString()}'`, { - node: atRule, - }) - } - - if ( - typeof media !== "undefined" || - typeof layer !== "undefined" || - typeof supports !== "undefined" - ) { - stmt.conditions.push({ - layer, - media, - supports, - }); - } - - return stmt -} - -// builtin tooling -const path$2 = require$$0; - -// placeholder tooling -let sugarss; - -var processContent$1 = function processContent( - result, - content, - filename, - options, - postcss, -) { - const { plugins } = options; - const ext = path$2.extname(filename); - - const parserList = []; - - // SugarSS support: - if (ext === ".sss") { - if (!sugarss) { - /* c8 ignore next 3 */ - try { - sugarss = __require('sugarss'); - } catch {} // Ignore - } - if (sugarss) - return runPostcss(postcss, content, filename, plugins, [sugarss]) - } - - // Syntax support: - if (result.opts.syntax?.parse) { - parserList.push(result.opts.syntax.parse); - } - - // Parser support: - if (result.opts.parser) parserList.push(result.opts.parser); - // Try the default as a last resort: - parserList.push(null); - - return runPostcss(postcss, content, filename, plugins, parserList) -}; - -function runPostcss(postcss, content, filename, plugins, parsers, index) { - if (!index) index = 0; - return postcss(plugins) - .process(content, { - from: filename, - parser: parsers[index], - }) - .catch(err => { - // If there's an error, try the next parser - index++; - // If there are no parsers left, throw it - if (index === parsers.length) throw err - return runPostcss(postcss, content, filename, plugins, parsers, index) - }) -} - -const path$1 = require$$0; - -const dataURL = dataUrl; -const parseStatements = parseStatements$1; -const processContent = processContent$1; -const resolveId$1 = (id) => id; -const formatImportPrelude = formatImportPrelude$2; - -async function parseStyles$1( - result, - styles, - options, - state, - conditions, - from, - postcss, -) { - const statements = parseStatements(result, styles, conditions, from); - - for (const stmt of statements) { - if (stmt.type !== "import" || !isProcessableURL(stmt.uri)) { - continue - } - - if (options.filter && !options.filter(stmt.uri)) { - // rejected by filter - continue - } - - await resolveImportId(result, stmt, options, state, postcss); - } - - let charset; - const imports = []; - const bundle = []; - - function handleCharset(stmt) { - if (!charset) charset = stmt; - // charsets aren't case-sensitive, so convert to lower case to compare - else if ( - stmt.node.params.toLowerCase() !== charset.node.params.toLowerCase() - ) { - throw stmt.node.error( - `Incompatible @charset statements: - ${stmt.node.params} specified in ${stmt.node.source.input.file} - ${charset.node.params} specified in ${charset.node.source.input.file}`, - ) - } - } - - // squash statements and their children - statements.forEach(stmt => { - if (stmt.type === "charset") handleCharset(stmt); - else if (stmt.type === "import") { - if (stmt.children) { - stmt.children.forEach((child, index) => { - if (child.type === "import") imports.push(child); - else if (child.type === "charset") handleCharset(child); - else bundle.push(child); - // For better output - if (index === 0) child.parent = stmt; - }); - } else imports.push(stmt); - } else if (stmt.type === "nodes") { - bundle.push(stmt); - } - }); - - return charset ? [charset, ...imports.concat(bundle)] : imports.concat(bundle) -} - -async function resolveImportId(result, stmt, options, state, postcss) { - if (dataURL.isValid(stmt.uri)) { - // eslint-disable-next-line require-atomic-updates - stmt.children = await loadImportContent( - result, - stmt, - stmt.uri, - options, - state, - postcss, - ); - - return - } else if (dataURL.isValid(stmt.from.slice(-1))) { - // Data urls can't be used as a base url to resolve imports. - throw stmt.node.error( - `Unable to import '${stmt.uri}' from a stylesheet that is embedded in a data url`, - ) - } - - const atRule = stmt.node; - let sourceFile; - if (atRule.source?.input?.file) { - sourceFile = atRule.source.input.file; - } - const base = sourceFile - ? path$1.dirname(atRule.source.input.file) - : options.root; - - const paths = [await options.resolve(stmt.uri, base, options, atRule)].flat(); - - // Ensure that each path is absolute: - const resolved = await Promise.all( - paths.map(file => { - return !path$1.isAbsolute(file) - ? resolveId$1(file) - : file - }), - ); - - // Add dependency messages: - resolved.forEach(file => { - result.messages.push({ - type: "dependency", - plugin: "postcss-import", - file, - parent: sourceFile, - }); - }); - - const importedContent = await Promise.all( - resolved.map(file => { - return loadImportContent(result, stmt, file, options, state, postcss) - }), - ); - - // Merge loaded statements - // eslint-disable-next-line require-atomic-updates - stmt.children = importedContent.flat().filter(x => !!x); -} - -async function loadImportContent( - result, - stmt, - filename, - options, - state, - postcss, -) { - const atRule = stmt.node; - const { conditions, from } = stmt; - const stmtDuplicateCheckKey = conditions - .map(condition => - formatImportPrelude(condition.layer, condition.media, condition.supports), - ) - .join(":"); - - if (options.skipDuplicates) { - // skip files already imported at the same scope - if (state.importedFiles[filename]?.[stmtDuplicateCheckKey]) { - return - } - - // save imported files to skip them next time - if (!state.importedFiles[filename]) { - state.importedFiles[filename] = {}; - } - state.importedFiles[filename][stmtDuplicateCheckKey] = true; - } - - if (from.includes(filename)) { - return - } - - const content = await options.load(filename, options); - - if (content.trim() === "" && options.warnOnEmpty) { - result.warn(`${filename} is empty`, { node: atRule }); - return - } - - // skip previous imported files not containing @import rules - if ( - options.skipDuplicates && - state.hashFiles[content]?.[stmtDuplicateCheckKey] - ) { - return - } - - const importedResult = await processContent( - result, - content, - filename, - options, - postcss, - ); - - const styles = importedResult.root; - result.messages = result.messages.concat(importedResult.messages); - - if (options.skipDuplicates) { - const hasImport = styles.some(child => { - return child.type === "atrule" && child.name === "import" - }); - if (!hasImport) { - // save hash files to skip them next time - if (!state.hashFiles[content]) { - state.hashFiles[content] = {}; - } - - state.hashFiles[content][stmtDuplicateCheckKey] = true; - } - } - - // recursion: import @import from imported file - return parseStyles$1( - result, - styles, - options, - state, - conditions, - [...from, filename], - postcss, - ) -} - -function isProcessableURL(uri) { - // skip protocol base uri (protocol://url) or protocol-relative - if (/^(?:[a-z]+:)?\/\//i.test(uri)) { - return false - } - - // check for fragment or query - try { - // needs a base to parse properly - const url = new URL(uri, "https://example.com"); - if (url.search) { - return false - } - } catch {} // Ignore - - return true -} - -var parseStyles_1 = parseStyles$1; - -// builtin tooling -const path = require$$0; - -// internal tooling -const applyConditions = applyConditions$1; -const applyRaws = applyRaws$1; -const applyStyles = applyStyles$1; -const loadContent = loadContent$1; -const parseStyles = parseStyles_1; -const resolveId = (id) => id; - -function AtImport(options) { - options = { - root: process.cwd(), - path: [], - skipDuplicates: true, - resolve: resolveId, - load: loadContent, - plugins: [], - addModulesDirectories: [], - warnOnEmpty: true, - ...options, - }; - - options.root = path.resolve(options.root); - - // convert string to an array of a single element - if (typeof options.path === "string") options.path = [options.path]; - - if (!Array.isArray(options.path)) options.path = []; - - options.path = options.path.map(p => path.resolve(options.root, p)); - - return { - postcssPlugin: "postcss-import", - async Once(styles, { result, atRule, postcss }) { - const state = { - importedFiles: {}, - hashFiles: {}, - }; - - if (styles.source?.input?.file) { - state.importedFiles[styles.source.input.file] = {}; - } - - if (options.plugins && !Array.isArray(options.plugins)) { - throw new Error("plugins option must be an array") - } - - const bundle = await parseStyles( - result, - styles, - options, - state, - [], - [], - postcss, - ); - - applyRaws(bundle); - applyConditions(bundle, atRule); - applyStyles(bundle, styles); - }, - } -} - -AtImport.postcss = true; - -var postcssImport = AtImport; - -var index = /*@__PURE__*/getDefaultExportFromCjs(postcssImport); - -var index$1 = /*#__PURE__*/_mergeNamespaces({ - __proto__: null, - default: index -}, [postcssImport]); - -export { index$1 as i }; diff --git a/node_modules/vite/dist/node/chunks/dep-D-7KCb9p.js b/node_modules/vite/dist/node/chunks/dep-D-7KCb9p.js deleted file mode 100644 index 70412374..00000000 --- a/node_modules/vite/dist/node/chunks/dep-D-7KCb9p.js +++ /dev/null @@ -1,7960 +0,0 @@ -import { fileURLToPath as __cjs_fileURLToPath } from 'node:url'; -import { dirname as __cjs_dirname } from 'node:path'; -import { createRequire as __cjs_createRequire } from 'node:module'; - -const __filename = __cjs_fileURLToPath(import.meta.url); -const __dirname = __cjs_dirname(__filename); -const require = __cjs_createRequire(import.meta.url); -const __require = require; -const UNDEFINED_CODE_POINTS = new Set([ - 65534, 65535, 131070, 131071, 196606, 196607, 262142, 262143, 327678, 327679, 393214, - 393215, 458750, 458751, 524286, 524287, 589822, 589823, 655358, 655359, 720894, - 720895, 786430, 786431, 851966, 851967, 917502, 917503, 983038, 983039, 1048574, - 1048575, 1114110, 1114111, -]); -const REPLACEMENT_CHARACTER = '\uFFFD'; -var CODE_POINTS; -(function (CODE_POINTS) { - CODE_POINTS[CODE_POINTS["EOF"] = -1] = "EOF"; - CODE_POINTS[CODE_POINTS["NULL"] = 0] = "NULL"; - CODE_POINTS[CODE_POINTS["TABULATION"] = 9] = "TABULATION"; - CODE_POINTS[CODE_POINTS["CARRIAGE_RETURN"] = 13] = "CARRIAGE_RETURN"; - CODE_POINTS[CODE_POINTS["LINE_FEED"] = 10] = "LINE_FEED"; - CODE_POINTS[CODE_POINTS["FORM_FEED"] = 12] = "FORM_FEED"; - CODE_POINTS[CODE_POINTS["SPACE"] = 32] = "SPACE"; - CODE_POINTS[CODE_POINTS["EXCLAMATION_MARK"] = 33] = "EXCLAMATION_MARK"; - CODE_POINTS[CODE_POINTS["QUOTATION_MARK"] = 34] = "QUOTATION_MARK"; - CODE_POINTS[CODE_POINTS["NUMBER_SIGN"] = 35] = "NUMBER_SIGN"; - CODE_POINTS[CODE_POINTS["AMPERSAND"] = 38] = "AMPERSAND"; - CODE_POINTS[CODE_POINTS["APOSTROPHE"] = 39] = "APOSTROPHE"; - CODE_POINTS[CODE_POINTS["HYPHEN_MINUS"] = 45] = "HYPHEN_MINUS"; - CODE_POINTS[CODE_POINTS["SOLIDUS"] = 47] = "SOLIDUS"; - CODE_POINTS[CODE_POINTS["DIGIT_0"] = 48] = "DIGIT_0"; - CODE_POINTS[CODE_POINTS["DIGIT_9"] = 57] = "DIGIT_9"; - CODE_POINTS[CODE_POINTS["SEMICOLON"] = 59] = "SEMICOLON"; - CODE_POINTS[CODE_POINTS["LESS_THAN_SIGN"] = 60] = "LESS_THAN_SIGN"; - CODE_POINTS[CODE_POINTS["EQUALS_SIGN"] = 61] = "EQUALS_SIGN"; - CODE_POINTS[CODE_POINTS["GREATER_THAN_SIGN"] = 62] = "GREATER_THAN_SIGN"; - CODE_POINTS[CODE_POINTS["QUESTION_MARK"] = 63] = "QUESTION_MARK"; - CODE_POINTS[CODE_POINTS["LATIN_CAPITAL_A"] = 65] = "LATIN_CAPITAL_A"; - CODE_POINTS[CODE_POINTS["LATIN_CAPITAL_F"] = 70] = "LATIN_CAPITAL_F"; - CODE_POINTS[CODE_POINTS["LATIN_CAPITAL_X"] = 88] = "LATIN_CAPITAL_X"; - CODE_POINTS[CODE_POINTS["LATIN_CAPITAL_Z"] = 90] = "LATIN_CAPITAL_Z"; - CODE_POINTS[CODE_POINTS["RIGHT_SQUARE_BRACKET"] = 93] = "RIGHT_SQUARE_BRACKET"; - CODE_POINTS[CODE_POINTS["GRAVE_ACCENT"] = 96] = "GRAVE_ACCENT"; - CODE_POINTS[CODE_POINTS["LATIN_SMALL_A"] = 97] = "LATIN_SMALL_A"; - CODE_POINTS[CODE_POINTS["LATIN_SMALL_F"] = 102] = "LATIN_SMALL_F"; - CODE_POINTS[CODE_POINTS["LATIN_SMALL_X"] = 120] = "LATIN_SMALL_X"; - CODE_POINTS[CODE_POINTS["LATIN_SMALL_Z"] = 122] = "LATIN_SMALL_Z"; - CODE_POINTS[CODE_POINTS["REPLACEMENT_CHARACTER"] = 65533] = "REPLACEMENT_CHARACTER"; -})(CODE_POINTS = CODE_POINTS || (CODE_POINTS = {})); -const SEQUENCES = { - DASH_DASH: '--', - CDATA_START: '[CDATA[', - DOCTYPE: 'doctype', - SCRIPT: 'script', - PUBLIC: 'public', - SYSTEM: 'system', -}; -//Surrogates -function isSurrogate(cp) { - return cp >= 55296 && cp <= 57343; -} -function isSurrogatePair(cp) { - return cp >= 56320 && cp <= 57343; -} -function getSurrogatePairCodePoint(cp1, cp2) { - return (cp1 - 55296) * 1024 + 9216 + cp2; -} -//NOTE: excluding NULL and ASCII whitespace -function isControlCodePoint(cp) { - return ((cp !== 0x20 && cp !== 0x0a && cp !== 0x0d && cp !== 0x09 && cp !== 0x0c && cp >= 0x01 && cp <= 0x1f) || - (cp >= 0x7f && cp <= 0x9f)); -} -function isUndefinedCodePoint(cp) { - return (cp >= 64976 && cp <= 65007) || UNDEFINED_CODE_POINTS.has(cp); -} - -var ERR; -(function (ERR) { - ERR["controlCharacterInInputStream"] = "control-character-in-input-stream"; - ERR["noncharacterInInputStream"] = "noncharacter-in-input-stream"; - ERR["surrogateInInputStream"] = "surrogate-in-input-stream"; - ERR["nonVoidHtmlElementStartTagWithTrailingSolidus"] = "non-void-html-element-start-tag-with-trailing-solidus"; - ERR["endTagWithAttributes"] = "end-tag-with-attributes"; - ERR["endTagWithTrailingSolidus"] = "end-tag-with-trailing-solidus"; - ERR["unexpectedSolidusInTag"] = "unexpected-solidus-in-tag"; - ERR["unexpectedNullCharacter"] = "unexpected-null-character"; - ERR["unexpectedQuestionMarkInsteadOfTagName"] = "unexpected-question-mark-instead-of-tag-name"; - ERR["invalidFirstCharacterOfTagName"] = "invalid-first-character-of-tag-name"; - ERR["unexpectedEqualsSignBeforeAttributeName"] = "unexpected-equals-sign-before-attribute-name"; - ERR["missingEndTagName"] = "missing-end-tag-name"; - ERR["unexpectedCharacterInAttributeName"] = "unexpected-character-in-attribute-name"; - ERR["unknownNamedCharacterReference"] = "unknown-named-character-reference"; - ERR["missingSemicolonAfterCharacterReference"] = "missing-semicolon-after-character-reference"; - ERR["unexpectedCharacterAfterDoctypeSystemIdentifier"] = "unexpected-character-after-doctype-system-identifier"; - ERR["unexpectedCharacterInUnquotedAttributeValue"] = "unexpected-character-in-unquoted-attribute-value"; - ERR["eofBeforeTagName"] = "eof-before-tag-name"; - ERR["eofInTag"] = "eof-in-tag"; - ERR["missingAttributeValue"] = "missing-attribute-value"; - ERR["missingWhitespaceBetweenAttributes"] = "missing-whitespace-between-attributes"; - ERR["missingWhitespaceAfterDoctypePublicKeyword"] = "missing-whitespace-after-doctype-public-keyword"; - ERR["missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers"] = "missing-whitespace-between-doctype-public-and-system-identifiers"; - ERR["missingWhitespaceAfterDoctypeSystemKeyword"] = "missing-whitespace-after-doctype-system-keyword"; - ERR["missingQuoteBeforeDoctypePublicIdentifier"] = "missing-quote-before-doctype-public-identifier"; - ERR["missingQuoteBeforeDoctypeSystemIdentifier"] = "missing-quote-before-doctype-system-identifier"; - ERR["missingDoctypePublicIdentifier"] = "missing-doctype-public-identifier"; - ERR["missingDoctypeSystemIdentifier"] = "missing-doctype-system-identifier"; - ERR["abruptDoctypePublicIdentifier"] = "abrupt-doctype-public-identifier"; - ERR["abruptDoctypeSystemIdentifier"] = "abrupt-doctype-system-identifier"; - ERR["cdataInHtmlContent"] = "cdata-in-html-content"; - ERR["incorrectlyOpenedComment"] = "incorrectly-opened-comment"; - ERR["eofInScriptHtmlCommentLikeText"] = "eof-in-script-html-comment-like-text"; - ERR["eofInDoctype"] = "eof-in-doctype"; - ERR["nestedComment"] = "nested-comment"; - ERR["abruptClosingOfEmptyComment"] = "abrupt-closing-of-empty-comment"; - ERR["eofInComment"] = "eof-in-comment"; - ERR["incorrectlyClosedComment"] = "incorrectly-closed-comment"; - ERR["eofInCdata"] = "eof-in-cdata"; - ERR["absenceOfDigitsInNumericCharacterReference"] = "absence-of-digits-in-numeric-character-reference"; - ERR["nullCharacterReference"] = "null-character-reference"; - ERR["surrogateCharacterReference"] = "surrogate-character-reference"; - ERR["characterReferenceOutsideUnicodeRange"] = "character-reference-outside-unicode-range"; - ERR["controlCharacterReference"] = "control-character-reference"; - ERR["noncharacterCharacterReference"] = "noncharacter-character-reference"; - ERR["missingWhitespaceBeforeDoctypeName"] = "missing-whitespace-before-doctype-name"; - ERR["missingDoctypeName"] = "missing-doctype-name"; - ERR["invalidCharacterSequenceAfterDoctypeName"] = "invalid-character-sequence-after-doctype-name"; - ERR["duplicateAttribute"] = "duplicate-attribute"; - ERR["nonConformingDoctype"] = "non-conforming-doctype"; - ERR["missingDoctype"] = "missing-doctype"; - ERR["misplacedDoctype"] = "misplaced-doctype"; - ERR["endTagWithoutMatchingOpenElement"] = "end-tag-without-matching-open-element"; - ERR["closingOfElementWithOpenChildElements"] = "closing-of-element-with-open-child-elements"; - ERR["disallowedContentInNoscriptInHead"] = "disallowed-content-in-noscript-in-head"; - ERR["openElementsLeftAfterEof"] = "open-elements-left-after-eof"; - ERR["abandonedHeadElementChild"] = "abandoned-head-element-child"; - ERR["misplacedStartTagForHeadElement"] = "misplaced-start-tag-for-head-element"; - ERR["nestedNoscriptInHead"] = "nested-noscript-in-head"; - ERR["eofInElementThatCanContainOnlyText"] = "eof-in-element-that-can-contain-only-text"; -})(ERR = ERR || (ERR = {})); - -//Const -const DEFAULT_BUFFER_WATERLINE = 1 << 16; -//Preprocessor -//NOTE: HTML input preprocessing -//(see: http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#preprocessing-the-input-stream) -class Preprocessor { - constructor(handler) { - this.handler = handler; - this.html = ''; - this.pos = -1; - // NOTE: Initial `lastGapPos` is -2, to ensure `col` on initialisation is 0 - this.lastGapPos = -2; - this.gapStack = []; - this.skipNextNewLine = false; - this.lastChunkWritten = false; - this.endOfChunkHit = false; - this.bufferWaterline = DEFAULT_BUFFER_WATERLINE; - this.isEol = false; - this.lineStartPos = 0; - this.droppedBufferSize = 0; - this.line = 1; - //NOTE: avoid reporting errors twice on advance/retreat - this.lastErrOffset = -1; - } - /** The column on the current line. If we just saw a gap (eg. a surrogate pair), return the index before. */ - get col() { - return this.pos - this.lineStartPos + Number(this.lastGapPos !== this.pos); - } - get offset() { - return this.droppedBufferSize + this.pos; - } - getError(code) { - const { line, col, offset } = this; - return { - code, - startLine: line, - endLine: line, - startCol: col, - endCol: col, - startOffset: offset, - endOffset: offset, - }; - } - _err(code) { - if (this.handler.onParseError && this.lastErrOffset !== this.offset) { - this.lastErrOffset = this.offset; - this.handler.onParseError(this.getError(code)); - } - } - _addGap() { - this.gapStack.push(this.lastGapPos); - this.lastGapPos = this.pos; - } - _processSurrogate(cp) { - //NOTE: try to peek a surrogate pair - if (this.pos !== this.html.length - 1) { - const nextCp = this.html.charCodeAt(this.pos + 1); - if (isSurrogatePair(nextCp)) { - //NOTE: we have a surrogate pair. Peek pair character and recalculate code point. - this.pos++; - //NOTE: add a gap that should be avoided during retreat - this._addGap(); - return getSurrogatePairCodePoint(cp, nextCp); - } - } - //NOTE: we are at the end of a chunk, therefore we can't infer the surrogate pair yet. - else if (!this.lastChunkWritten) { - this.endOfChunkHit = true; - return CODE_POINTS.EOF; - } - //NOTE: isolated surrogate - this._err(ERR.surrogateInInputStream); - return cp; - } - willDropParsedChunk() { - return this.pos > this.bufferWaterline; - } - dropParsedChunk() { - if (this.willDropParsedChunk()) { - this.html = this.html.substring(this.pos); - this.lineStartPos -= this.pos; - this.droppedBufferSize += this.pos; - this.pos = 0; - this.lastGapPos = -2; - this.gapStack.length = 0; - } - } - write(chunk, isLastChunk) { - if (this.html.length > 0) { - this.html += chunk; - } - else { - this.html = chunk; - } - this.endOfChunkHit = false; - this.lastChunkWritten = isLastChunk; - } - insertHtmlAtCurrentPos(chunk) { - this.html = this.html.substring(0, this.pos + 1) + chunk + this.html.substring(this.pos + 1); - this.endOfChunkHit = false; - } - startsWith(pattern, caseSensitive) { - // Check if our buffer has enough characters - if (this.pos + pattern.length > this.html.length) { - this.endOfChunkHit = !this.lastChunkWritten; - return false; - } - if (caseSensitive) { - return this.html.startsWith(pattern, this.pos); - } - for (let i = 0; i < pattern.length; i++) { - const cp = this.html.charCodeAt(this.pos + i) | 0x20; - if (cp !== pattern.charCodeAt(i)) { - return false; - } - } - return true; - } - peek(offset) { - const pos = this.pos + offset; - if (pos >= this.html.length) { - this.endOfChunkHit = !this.lastChunkWritten; - return CODE_POINTS.EOF; - } - const code = this.html.charCodeAt(pos); - return code === CODE_POINTS.CARRIAGE_RETURN ? CODE_POINTS.LINE_FEED : code; - } - advance() { - this.pos++; - //NOTE: LF should be in the last column of the line - if (this.isEol) { - this.isEol = false; - this.line++; - this.lineStartPos = this.pos; - } - if (this.pos >= this.html.length) { - this.endOfChunkHit = !this.lastChunkWritten; - return CODE_POINTS.EOF; - } - let cp = this.html.charCodeAt(this.pos); - //NOTE: all U+000D CARRIAGE RETURN (CR) characters must be converted to U+000A LINE FEED (LF) characters - if (cp === CODE_POINTS.CARRIAGE_RETURN) { - this.isEol = true; - this.skipNextNewLine = true; - return CODE_POINTS.LINE_FEED; - } - //NOTE: any U+000A LINE FEED (LF) characters that immediately follow a U+000D CARRIAGE RETURN (CR) character - //must be ignored. - if (cp === CODE_POINTS.LINE_FEED) { - this.isEol = true; - if (this.skipNextNewLine) { - // `line` will be bumped again in the recursive call. - this.line--; - this.skipNextNewLine = false; - this._addGap(); - return this.advance(); - } - } - this.skipNextNewLine = false; - if (isSurrogate(cp)) { - cp = this._processSurrogate(cp); - } - //OPTIMIZATION: first check if code point is in the common allowed - //range (ASCII alphanumeric, whitespaces, big chunk of BMP) - //before going into detailed performance cost validation. - const isCommonValidRange = this.handler.onParseError === null || - (cp > 0x1f && cp < 0x7f) || - cp === CODE_POINTS.LINE_FEED || - cp === CODE_POINTS.CARRIAGE_RETURN || - (cp > 0x9f && cp < 64976); - if (!isCommonValidRange) { - this._checkForProblematicCharacters(cp); - } - return cp; - } - _checkForProblematicCharacters(cp) { - if (isControlCodePoint(cp)) { - this._err(ERR.controlCharacterInInputStream); - } - else if (isUndefinedCodePoint(cp)) { - this._err(ERR.noncharacterInInputStream); - } - } - retreat(count) { - this.pos -= count; - while (this.pos < this.lastGapPos) { - this.lastGapPos = this.gapStack.pop(); - this.pos--; - } - this.isEol = false; - } -} - -var TokenType; -(function (TokenType) { - TokenType[TokenType["CHARACTER"] = 0] = "CHARACTER"; - TokenType[TokenType["NULL_CHARACTER"] = 1] = "NULL_CHARACTER"; - TokenType[TokenType["WHITESPACE_CHARACTER"] = 2] = "WHITESPACE_CHARACTER"; - TokenType[TokenType["START_TAG"] = 3] = "START_TAG"; - TokenType[TokenType["END_TAG"] = 4] = "END_TAG"; - TokenType[TokenType["COMMENT"] = 5] = "COMMENT"; - TokenType[TokenType["DOCTYPE"] = 6] = "DOCTYPE"; - TokenType[TokenType["EOF"] = 7] = "EOF"; - TokenType[TokenType["HIBERNATION"] = 8] = "HIBERNATION"; -})(TokenType = TokenType || (TokenType = {})); -function getTokenAttr(token, attrName) { - for (let i = token.attrs.length - 1; i >= 0; i--) { - if (token.attrs[i].name === attrName) { - return token.attrs[i].value; - } - } - return null; -} - -// Generated using scripts/write-decode-map.ts -var htmlDecodeTree = new Uint16Array( -// prettier-ignore -"\u1d41<\xd5\u0131\u028a\u049d\u057b\u05d0\u0675\u06de\u07a2\u07d6\u080f\u0a4a\u0a91\u0da1\u0e6d\u0f09\u0f26\u10ca\u1228\u12e1\u1415\u149d\u14c3\u14df\u1525\0\0\0\0\0\0\u156b\u16cd\u198d\u1c12\u1ddd\u1f7e\u2060\u21b0\u228d\u23c0\u23fb\u2442\u2824\u2912\u2d08\u2e48\u2fce\u3016\u32ba\u3639\u37ac\u38fe\u3a28\u3a71\u3ae0\u3b2e\u0800EMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig\u803b\xc6\u40c6P\u803b&\u4026cute\u803b\xc1\u40c1reve;\u4102\u0100iyx}rc\u803b\xc2\u40c2;\u4410r;\uc000\ud835\udd04rave\u803b\xc0\u40c0pha;\u4391acr;\u4100d;\u6a53\u0100gp\x9d\xa1on;\u4104f;\uc000\ud835\udd38plyFunction;\u6061ing\u803b\xc5\u40c5\u0100cs\xbe\xc3r;\uc000\ud835\udc9cign;\u6254ilde\u803b\xc3\u40c3ml\u803b\xc4\u40c4\u0400aceforsu\xe5\xfb\xfe\u0117\u011c\u0122\u0127\u012a\u0100cr\xea\xf2kslash;\u6216\u0176\xf6\xf8;\u6ae7ed;\u6306y;\u4411\u0180crt\u0105\u010b\u0114ause;\u6235noullis;\u612ca;\u4392r;\uc000\ud835\udd05pf;\uc000\ud835\udd39eve;\u42d8c\xf2\u0113mpeq;\u624e\u0700HOacdefhilorsu\u014d\u0151\u0156\u0180\u019e\u01a2\u01b5\u01b7\u01ba\u01dc\u0215\u0273\u0278\u027ecy;\u4427PY\u803b\xa9\u40a9\u0180cpy\u015d\u0162\u017aute;\u4106\u0100;i\u0167\u0168\u62d2talDifferentialD;\u6145leys;\u612d\u0200aeio\u0189\u018e\u0194\u0198ron;\u410cdil\u803b\xc7\u40c7rc;\u4108nint;\u6230ot;\u410a\u0100dn\u01a7\u01adilla;\u40b8terDot;\u40b7\xf2\u017fi;\u43a7rcle\u0200DMPT\u01c7\u01cb\u01d1\u01d6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01e2\u01f8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020foubleQuote;\u601duote;\u6019\u0200lnpu\u021e\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6a74\u0180git\u022f\u0236\u023aruent;\u6261nt;\u622fourIntegral;\u622e\u0100fr\u024c\u024e;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6a2fcr;\uc000\ud835\udc9ep\u0100;C\u0284\u0285\u62d3ap;\u624d\u0580DJSZacefios\u02a0\u02ac\u02b0\u02b4\u02b8\u02cb\u02d7\u02e1\u02e6\u0333\u048d\u0100;o\u0179\u02a5trahd;\u6911cy;\u4402cy;\u4405cy;\u440f\u0180grs\u02bf\u02c4\u02c7ger;\u6021r;\u61a1hv;\u6ae4\u0100ay\u02d0\u02d5ron;\u410e;\u4414l\u0100;t\u02dd\u02de\u6207a;\u4394r;\uc000\ud835\udd07\u0100af\u02eb\u0327\u0100cm\u02f0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031ccute;\u40b4o\u0174\u030b\u030d;\u42d9bleAcute;\u42ddrave;\u4060ilde;\u42dcond;\u62c4ferentialD;\u6146\u0470\u033d\0\0\0\u0342\u0354\0\u0405f;\uc000\ud835\udd3b\u0180;DE\u0348\u0349\u034d\u40a8ot;\u60dcqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03cf\u03e2\u03f8ontourIntegra\xec\u0239o\u0274\u0379\0\0\u037b\xbb\u0349nArrow;\u61d3\u0100eo\u0387\u03a4ft\u0180ART\u0390\u0396\u03a1rrow;\u61d0ightArrow;\u61d4e\xe5\u02cang\u0100LR\u03ab\u03c4eft\u0100AR\u03b3\u03b9rrow;\u67f8ightArrow;\u67faightArrow;\u67f9ight\u0100AT\u03d8\u03derrow;\u61d2ee;\u62a8p\u0241\u03e9\0\0\u03efrrow;\u61d1ownArrow;\u61d5erticalBar;\u6225n\u0300ABLRTa\u0412\u042a\u0430\u045e\u047f\u037crrow\u0180;BU\u041d\u041e\u0422\u6193ar;\u6913pArrow;\u61f5reve;\u4311eft\u02d2\u043a\0\u0446\0\u0450ightVector;\u6950eeVector;\u695eector\u0100;B\u0459\u045a\u61bdar;\u6956ight\u01d4\u0467\0\u0471eeVector;\u695fector\u0100;B\u047a\u047b\u61c1ar;\u6957ee\u0100;A\u0486\u0487\u62a4rrow;\u61a7\u0100ct\u0492\u0497r;\uc000\ud835\udc9frok;\u4110\u0800NTacdfglmopqstux\u04bd\u04c0\u04c4\u04cb\u04de\u04e2\u04e7\u04ee\u04f5\u0521\u052f\u0536\u0552\u055d\u0560\u0565G;\u414aH\u803b\xd0\u40d0cute\u803b\xc9\u40c9\u0180aiy\u04d2\u04d7\u04dcron;\u411arc\u803b\xca\u40ca;\u442dot;\u4116r;\uc000\ud835\udd08rave\u803b\xc8\u40c8ement;\u6208\u0100ap\u04fa\u04fecr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65fberySmallSquare;\u65ab\u0100gp\u0526\u052aon;\u4118f;\uc000\ud835\udd3csilon;\u4395u\u0100ai\u053c\u0549l\u0100;T\u0542\u0543\u6a75ilde;\u6242librium;\u61cc\u0100ci\u0557\u055ar;\u6130m;\u6a73a;\u4397ml\u803b\xcb\u40cb\u0100ip\u056a\u056fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058d\u05b2\u05ccy;\u4424r;\uc000\ud835\udd09lled\u0253\u0597\0\0\u05a3mallSquare;\u65fcerySmallSquare;\u65aa\u0370\u05ba\0\u05bf\0\0\u05c4f;\uc000\ud835\udd3dAll;\u6200riertrf;\u6131c\xf2\u05cb\u0600JTabcdfgorst\u05e8\u05ec\u05ef\u05fa\u0600\u0612\u0616\u061b\u061d\u0623\u066c\u0672cy;\u4403\u803b>\u403emma\u0100;d\u05f7\u05f8\u4393;\u43dcreve;\u411e\u0180eiy\u0607\u060c\u0610dil;\u4122rc;\u411c;\u4413ot;\u4120r;\uc000\ud835\udd0a;\u62d9pf;\uc000\ud835\udd3eeater\u0300EFGLST\u0635\u0644\u064e\u0656\u065b\u0666qual\u0100;L\u063e\u063f\u6265ess;\u62dbullEqual;\u6267reater;\u6aa2ess;\u6277lantEqual;\u6a7eilde;\u6273cr;\uc000\ud835\udca2;\u626b\u0400Aacfiosu\u0685\u068b\u0696\u069b\u069e\u06aa\u06be\u06caRDcy;\u442a\u0100ct\u0690\u0694ek;\u42c7;\u405eirc;\u4124r;\u610clbertSpace;\u610b\u01f0\u06af\0\u06b2f;\u610dizontalLine;\u6500\u0100ct\u06c3\u06c5\xf2\u06a9rok;\u4126mp\u0144\u06d0\u06d8ownHum\xf0\u012fqual;\u624f\u0700EJOacdfgmnostu\u06fa\u06fe\u0703\u0707\u070e\u071a\u071e\u0721\u0728\u0744\u0778\u078b\u078f\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803b\xcd\u40cd\u0100iy\u0713\u0718rc\u803b\xce\u40ce;\u4418ot;\u4130r;\u6111rave\u803b\xcc\u40cc\u0180;ap\u0720\u072f\u073f\u0100cg\u0734\u0737r;\u412ainaryI;\u6148lie\xf3\u03dd\u01f4\u0749\0\u0762\u0100;e\u074d\u074e\u622c\u0100gr\u0753\u0758ral;\u622bsection;\u62c2isible\u0100CT\u076c\u0772omma;\u6063imes;\u6062\u0180gpt\u077f\u0783\u0788on;\u412ef;\uc000\ud835\udd40a;\u4399cr;\u6110ilde;\u4128\u01eb\u079a\0\u079ecy;\u4406l\u803b\xcf\u40cf\u0280cfosu\u07ac\u07b7\u07bc\u07c2\u07d0\u0100iy\u07b1\u07b5rc;\u4134;\u4419r;\uc000\ud835\udd0dpf;\uc000\ud835\udd41\u01e3\u07c7\0\u07ccr;\uc000\ud835\udca5rcy;\u4408kcy;\u4404\u0380HJacfos\u07e4\u07e8\u07ec\u07f1\u07fd\u0802\u0808cy;\u4425cy;\u440cppa;\u439a\u0100ey\u07f6\u07fbdil;\u4136;\u441ar;\uc000\ud835\udd0epf;\uc000\ud835\udd42cr;\uc000\ud835\udca6\u0580JTaceflmost\u0825\u0829\u082c\u0850\u0863\u09b3\u09b8\u09c7\u09cd\u0a37\u0a47cy;\u4409\u803b<\u403c\u0280cmnpr\u0837\u083c\u0841\u0844\u084dute;\u4139bda;\u439bg;\u67ealacetrf;\u6112r;\u619e\u0180aey\u0857\u085c\u0861ron;\u413ddil;\u413b;\u441b\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087e\u08a9\u08b1\u08e0\u08e6\u08fc\u092f\u095b\u0390\u096a\u0100nr\u0883\u088fgleBracket;\u67e8row\u0180;BR\u0899\u089a\u089e\u6190ar;\u61e4ightArrow;\u61c6eiling;\u6308o\u01f5\u08b7\0\u08c3bleBracket;\u67e6n\u01d4\u08c8\0\u08d2eeVector;\u6961ector\u0100;B\u08db\u08dc\u61c3ar;\u6959loor;\u630aight\u0100AV\u08ef\u08f5rrow;\u6194ector;\u694e\u0100er\u0901\u0917e\u0180;AV\u0909\u090a\u0910\u62a3rrow;\u61a4ector;\u695aiangle\u0180;BE\u0924\u0925\u0929\u62b2ar;\u69cfqual;\u62b4p\u0180DTV\u0937\u0942\u094cownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61bfar;\u6958ector\u0100;B\u0965\u0966\u61bcar;\u6952ight\xe1\u039cs\u0300EFGLST\u097e\u098b\u0995\u099d\u09a2\u09adqualGreater;\u62daullEqual;\u6266reater;\u6276ess;\u6aa1lantEqual;\u6a7dilde;\u6272r;\uc000\ud835\udd0f\u0100;e\u09bd\u09be\u62d8ftarrow;\u61daidot;\u413f\u0180npw\u09d4\u0a16\u0a1bg\u0200LRlr\u09de\u09f7\u0a02\u0a10eft\u0100AR\u09e6\u09ecrrow;\u67f5ightArrow;\u67f7ightArrow;\u67f6eft\u0100ar\u03b3\u0a0aight\xe1\u03bfight\xe1\u03caf;\uc000\ud835\udd43er\u0100LR\u0a22\u0a2ceftArrow;\u6199ightArrow;\u6198\u0180cht\u0a3e\u0a40\u0a42\xf2\u084c;\u61b0rok;\u4141;\u626a\u0400acefiosu\u0a5a\u0a5d\u0a60\u0a77\u0a7c\u0a85\u0a8b\u0a8ep;\u6905y;\u441c\u0100dl\u0a65\u0a6fiumSpace;\u605flintrf;\u6133r;\uc000\ud835\udd10nusPlus;\u6213pf;\uc000\ud835\udd44c\xf2\u0a76;\u439c\u0480Jacefostu\u0aa3\u0aa7\u0aad\u0ac0\u0b14\u0b19\u0d91\u0d97\u0d9ecy;\u440acute;\u4143\u0180aey\u0ab4\u0ab9\u0aberon;\u4147dil;\u4145;\u441d\u0180gsw\u0ac7\u0af0\u0b0eative\u0180MTV\u0ad3\u0adf\u0ae8ediumSpace;\u600bhi\u0100cn\u0ae6\u0ad8\xeb\u0ad9eryThi\xee\u0ad9ted\u0100GL\u0af8\u0b06reaterGreate\xf2\u0673essLes\xf3\u0a48Line;\u400ar;\uc000\ud835\udd11\u0200Bnpt\u0b22\u0b28\u0b37\u0b3areak;\u6060BreakingSpace;\u40a0f;\u6115\u0680;CDEGHLNPRSTV\u0b55\u0b56\u0b6a\u0b7c\u0ba1\u0beb\u0c04\u0c5e\u0c84\u0ca6\u0cd8\u0d61\u0d85\u6aec\u0100ou\u0b5b\u0b64ngruent;\u6262pCap;\u626doubleVerticalBar;\u6226\u0180lqx\u0b83\u0b8a\u0b9bement;\u6209ual\u0100;T\u0b92\u0b93\u6260ilde;\uc000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0bb6\u0bb7\u0bbd\u0bc9\u0bd3\u0bd8\u0be5\u626fqual;\u6271ullEqual;\uc000\u2267\u0338reater;\uc000\u226b\u0338ess;\u6279lantEqual;\uc000\u2a7e\u0338ilde;\u6275ump\u0144\u0bf2\u0bfdownHump;\uc000\u224e\u0338qual;\uc000\u224f\u0338e\u0100fs\u0c0a\u0c27tTriangle\u0180;BE\u0c1a\u0c1b\u0c21\u62eaar;\uc000\u29cf\u0338qual;\u62ecs\u0300;EGLST\u0c35\u0c36\u0c3c\u0c44\u0c4b\u0c58\u626equal;\u6270reater;\u6278ess;\uc000\u226a\u0338lantEqual;\uc000\u2a7d\u0338ilde;\u6274ested\u0100GL\u0c68\u0c79reaterGreater;\uc000\u2aa2\u0338essLess;\uc000\u2aa1\u0338recedes\u0180;ES\u0c92\u0c93\u0c9b\u6280qual;\uc000\u2aaf\u0338lantEqual;\u62e0\u0100ei\u0cab\u0cb9verseElement;\u620cghtTriangle\u0180;BE\u0ccb\u0ccc\u0cd2\u62ebar;\uc000\u29d0\u0338qual;\u62ed\u0100qu\u0cdd\u0d0cuareSu\u0100bp\u0ce8\u0cf9set\u0100;E\u0cf0\u0cf3\uc000\u228f\u0338qual;\u62e2erset\u0100;E\u0d03\u0d06\uc000\u2290\u0338qual;\u62e3\u0180bcp\u0d13\u0d24\u0d4eset\u0100;E\u0d1b\u0d1e\uc000\u2282\u20d2qual;\u6288ceeds\u0200;EST\u0d32\u0d33\u0d3b\u0d46\u6281qual;\uc000\u2ab0\u0338lantEqual;\u62e1ilde;\uc000\u227f\u0338erset\u0100;E\u0d58\u0d5b\uc000\u2283\u20d2qual;\u6289ilde\u0200;EFT\u0d6e\u0d6f\u0d75\u0d7f\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uc000\ud835\udca9ilde\u803b\xd1\u40d1;\u439d\u0700Eacdfgmoprstuv\u0dbd\u0dc2\u0dc9\u0dd5\u0ddb\u0de0\u0de7\u0dfc\u0e02\u0e20\u0e22\u0e32\u0e3f\u0e44lig;\u4152cute\u803b\xd3\u40d3\u0100iy\u0dce\u0dd3rc\u803b\xd4\u40d4;\u441eblac;\u4150r;\uc000\ud835\udd12rave\u803b\xd2\u40d2\u0180aei\u0dee\u0df2\u0df6cr;\u414cga;\u43a9cron;\u439fpf;\uc000\ud835\udd46enCurly\u0100DQ\u0e0e\u0e1aoubleQuote;\u601cuote;\u6018;\u6a54\u0100cl\u0e27\u0e2cr;\uc000\ud835\udcaaash\u803b\xd8\u40d8i\u016c\u0e37\u0e3cde\u803b\xd5\u40d5es;\u6a37ml\u803b\xd6\u40d6er\u0100BP\u0e4b\u0e60\u0100ar\u0e50\u0e53r;\u603eac\u0100ek\u0e5a\u0e5c;\u63deet;\u63b4arenthesis;\u63dc\u0480acfhilors\u0e7f\u0e87\u0e8a\u0e8f\u0e92\u0e94\u0e9d\u0eb0\u0efcrtialD;\u6202y;\u441fr;\uc000\ud835\udd13i;\u43a6;\u43a0usMinus;\u40b1\u0100ip\u0ea2\u0eadncareplan\xe5\u069df;\u6119\u0200;eio\u0eb9\u0eba\u0ee0\u0ee4\u6abbcedes\u0200;EST\u0ec8\u0ec9\u0ecf\u0eda\u627aqual;\u6aaflantEqual;\u627cilde;\u627eme;\u6033\u0100dp\u0ee9\u0eeeuct;\u620fortion\u0100;a\u0225\u0ef9l;\u621d\u0100ci\u0f01\u0f06r;\uc000\ud835\udcab;\u43a8\u0200Ufos\u0f11\u0f16\u0f1b\u0f1fOT\u803b\"\u4022r;\uc000\ud835\udd14pf;\u611acr;\uc000\ud835\udcac\u0600BEacefhiorsu\u0f3e\u0f43\u0f47\u0f60\u0f73\u0fa7\u0faa\u0fad\u1096\u10a9\u10b4\u10bearr;\u6910G\u803b\xae\u40ae\u0180cnr\u0f4e\u0f53\u0f56ute;\u4154g;\u67ebr\u0100;t\u0f5c\u0f5d\u61a0l;\u6916\u0180aey\u0f67\u0f6c\u0f71ron;\u4158dil;\u4156;\u4420\u0100;v\u0f78\u0f79\u611cerse\u0100EU\u0f82\u0f99\u0100lq\u0f87\u0f8eement;\u620builibrium;\u61cbpEquilibrium;\u696fr\xbb\u0f79o;\u43a1ght\u0400ACDFTUVa\u0fc1\u0feb\u0ff3\u1022\u1028\u105b\u1087\u03d8\u0100nr\u0fc6\u0fd2gleBracket;\u67e9row\u0180;BL\u0fdc\u0fdd\u0fe1\u6192ar;\u61e5eftArrow;\u61c4eiling;\u6309o\u01f5\u0ff9\0\u1005bleBracket;\u67e7n\u01d4\u100a\0\u1014eeVector;\u695dector\u0100;B\u101d\u101e\u61c2ar;\u6955loor;\u630b\u0100er\u102d\u1043e\u0180;AV\u1035\u1036\u103c\u62a2rrow;\u61a6ector;\u695biangle\u0180;BE\u1050\u1051\u1055\u62b3ar;\u69d0qual;\u62b5p\u0180DTV\u1063\u106e\u1078ownVector;\u694feeVector;\u695cector\u0100;B\u1082\u1083\u61bear;\u6954ector\u0100;B\u1091\u1092\u61c0ar;\u6953\u0100pu\u109b\u109ef;\u611dndImplies;\u6970ightarrow;\u61db\u0100ch\u10b9\u10bcr;\u611b;\u61b1leDelayed;\u69f4\u0680HOacfhimoqstu\u10e4\u10f1\u10f7\u10fd\u1119\u111e\u1151\u1156\u1161\u1167\u11b5\u11bb\u11bf\u0100Cc\u10e9\u10eeHcy;\u4429y;\u4428FTcy;\u442ccute;\u415a\u0280;aeiy\u1108\u1109\u110e\u1113\u1117\u6abcron;\u4160dil;\u415erc;\u415c;\u4421r;\uc000\ud835\udd16ort\u0200DLRU\u112a\u1134\u113e\u1149ownArrow\xbb\u041eeftArrow\xbb\u089aightArrow\xbb\u0fddpArrow;\u6191gma;\u43a3allCircle;\u6218pf;\uc000\ud835\udd4a\u0272\u116d\0\0\u1170t;\u621aare\u0200;ISU\u117b\u117c\u1189\u11af\u65a1ntersection;\u6293u\u0100bp\u118f\u119eset\u0100;E\u1197\u1198\u628fqual;\u6291erset\u0100;E\u11a8\u11a9\u6290qual;\u6292nion;\u6294cr;\uc000\ud835\udcaear;\u62c6\u0200bcmp\u11c8\u11db\u1209\u120b\u0100;s\u11cd\u11ce\u62d0et\u0100;E\u11cd\u11d5qual;\u6286\u0100ch\u11e0\u1205eeds\u0200;EST\u11ed\u11ee\u11f4\u11ff\u627bqual;\u6ab0lantEqual;\u627dilde;\u627fTh\xe1\u0f8c;\u6211\u0180;es\u1212\u1213\u1223\u62d1rset\u0100;E\u121c\u121d\u6283qual;\u6287et\xbb\u1213\u0580HRSacfhiors\u123e\u1244\u1249\u1255\u125e\u1271\u1276\u129f\u12c2\u12c8\u12d1ORN\u803b\xde\u40deADE;\u6122\u0100Hc\u124e\u1252cy;\u440by;\u4426\u0100bu\u125a\u125c;\u4009;\u43a4\u0180aey\u1265\u126a\u126fron;\u4164dil;\u4162;\u4422r;\uc000\ud835\udd17\u0100ei\u127b\u1289\u01f2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128e\u1298kSpace;\uc000\u205f\u200aSpace;\u6009lde\u0200;EFT\u12ab\u12ac\u12b2\u12bc\u623cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uc000\ud835\udd4bipleDot;\u60db\u0100ct\u12d6\u12dbr;\uc000\ud835\udcafrok;\u4166\u0ae1\u12f7\u130e\u131a\u1326\0\u132c\u1331\0\0\0\0\0\u1338\u133d\u1377\u1385\0\u13ff\u1404\u140a\u1410\u0100cr\u12fb\u1301ute\u803b\xda\u40dar\u0100;o\u1307\u1308\u619fcir;\u6949r\u01e3\u1313\0\u1316y;\u440eve;\u416c\u0100iy\u131e\u1323rc\u803b\xdb\u40db;\u4423blac;\u4170r;\uc000\ud835\udd18rave\u803b\xd9\u40d9acr;\u416a\u0100di\u1341\u1369er\u0100BP\u1348\u135d\u0100ar\u134d\u1350r;\u405fac\u0100ek\u1357\u1359;\u63dfet;\u63b5arenthesis;\u63ddon\u0100;P\u1370\u1371\u62c3lus;\u628e\u0100gp\u137b\u137fon;\u4172f;\uc000\ud835\udd4c\u0400ADETadps\u1395\u13ae\u13b8\u13c4\u03e8\u13d2\u13d7\u13f3rrow\u0180;BD\u1150\u13a0\u13a4ar;\u6912ownArrow;\u61c5ownArrow;\u6195quilibrium;\u696eee\u0100;A\u13cb\u13cc\u62a5rrow;\u61a5own\xe1\u03f3er\u0100LR\u13de\u13e8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13f9\u13fa\u43d2on;\u43a5ing;\u416ecr;\uc000\ud835\udcb0ilde;\u4168ml\u803b\xdc\u40dc\u0480Dbcdefosv\u1427\u142c\u1430\u1433\u143e\u1485\u148a\u1490\u1496ash;\u62abar;\u6aeby;\u4412ash\u0100;l\u143b\u143c\u62a9;\u6ae6\u0100er\u1443\u1445;\u62c1\u0180bty\u144c\u1450\u147aar;\u6016\u0100;i\u144f\u1455cal\u0200BLST\u1461\u1465\u146a\u1474ar;\u6223ine;\u407ceparator;\u6758ilde;\u6240ThinSpace;\u600ar;\uc000\ud835\udd19pf;\uc000\ud835\udd4dcr;\uc000\ud835\udcb1dash;\u62aa\u0280cefos\u14a7\u14ac\u14b1\u14b6\u14bcirc;\u4174dge;\u62c0r;\uc000\ud835\udd1apf;\uc000\ud835\udd4ecr;\uc000\ud835\udcb2\u0200fios\u14cb\u14d0\u14d2\u14d8r;\uc000\ud835\udd1b;\u439epf;\uc000\ud835\udd4fcr;\uc000\ud835\udcb3\u0480AIUacfosu\u14f1\u14f5\u14f9\u14fd\u1504\u150f\u1514\u151a\u1520cy;\u442fcy;\u4407cy;\u442ecute\u803b\xdd\u40dd\u0100iy\u1509\u150drc;\u4176;\u442br;\uc000\ud835\udd1cpf;\uc000\ud835\udd50cr;\uc000\ud835\udcb4ml;\u4178\u0400Hacdefos\u1535\u1539\u153f\u154b\u154f\u155d\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417d;\u4417ot;\u417b\u01f2\u1554\0\u155boWidt\xe8\u0ad9a;\u4396r;\u6128pf;\u6124cr;\uc000\ud835\udcb5\u0be1\u1583\u158a\u1590\0\u15b0\u15b6\u15bf\0\0\0\0\u15c6\u15db\u15eb\u165f\u166d\0\u1695\u169b\u16b2\u16b9\0\u16becute\u803b\xe1\u40e1reve;\u4103\u0300;Ediuy\u159c\u159d\u15a1\u15a3\u15a8\u15ad\u623e;\uc000\u223e\u0333;\u623frc\u803b\xe2\u40e2te\u80bb\xb4\u0306;\u4430lig\u803b\xe6\u40e6\u0100;r\xb2\u15ba;\uc000\ud835\udd1erave\u803b\xe0\u40e0\u0100ep\u15ca\u15d6\u0100fp\u15cf\u15d4sym;\u6135\xe8\u15d3ha;\u43b1\u0100ap\u15dfc\u0100cl\u15e4\u15e7r;\u4101g;\u6a3f\u0264\u15f0\0\0\u160a\u0280;adsv\u15fa\u15fb\u15ff\u1601\u1607\u6227nd;\u6a55;\u6a5clope;\u6a58;\u6a5a\u0380;elmrsz\u1618\u1619\u161b\u161e\u163f\u164f\u1659\u6220;\u69a4e\xbb\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163a\u163c\u163e;\u69a8;\u69a9;\u69aa;\u69ab;\u69ac;\u69ad;\u69ae;\u69aft\u0100;v\u1645\u1646\u621fb\u0100;d\u164c\u164d\u62be;\u699d\u0100pt\u1654\u1657h;\u6222\xbb\xb9arr;\u637c\u0100gp\u1663\u1667on;\u4105f;\uc000\ud835\udd52\u0380;Eaeiop\u12c1\u167b\u167d\u1682\u1684\u1687\u168a;\u6a70cir;\u6a6f;\u624ad;\u624bs;\u4027rox\u0100;e\u12c1\u1692\xf1\u1683ing\u803b\xe5\u40e5\u0180cty\u16a1\u16a6\u16a8r;\uc000\ud835\udcb6;\u402amp\u0100;e\u12c1\u16af\xf1\u0288ilde\u803b\xe3\u40e3ml\u803b\xe4\u40e4\u0100ci\u16c2\u16c8onin\xf4\u0272nt;\u6a11\u0800Nabcdefiklnoprsu\u16ed\u16f1\u1730\u173c\u1743\u1748\u1778\u177d\u17e0\u17e6\u1839\u1850\u170d\u193d\u1948\u1970ot;\u6aed\u0100cr\u16f6\u171ek\u0200ceps\u1700\u1705\u170d\u1713ong;\u624cpsilon;\u43f6rime;\u6035im\u0100;e\u171a\u171b\u623dq;\u62cd\u0176\u1722\u1726ee;\u62bded\u0100;g\u172c\u172d\u6305e\xbb\u172drk\u0100;t\u135c\u1737brk;\u63b6\u0100oy\u1701\u1741;\u4431quo;\u601e\u0280cmprt\u1753\u175b\u1761\u1764\u1768aus\u0100;e\u010a\u0109ptyv;\u69b0s\xe9\u170cno\xf5\u0113\u0180ahw\u176f\u1771\u1773;\u43b2;\u6136een;\u626cr;\uc000\ud835\udd1fg\u0380costuvw\u178d\u179d\u17b3\u17c1\u17d5\u17db\u17de\u0180aiu\u1794\u1796\u179a\xf0\u0760rc;\u65efp\xbb\u1371\u0180dpt\u17a4\u17a8\u17adot;\u6a00lus;\u6a01imes;\u6a02\u0271\u17b9\0\0\u17becup;\u6a06ar;\u6605riangle\u0100du\u17cd\u17d2own;\u65bdp;\u65b3plus;\u6a04e\xe5\u1444\xe5\u14adarow;\u690d\u0180ako\u17ed\u1826\u1835\u0100cn\u17f2\u1823k\u0180lst\u17fa\u05ab\u1802ozenge;\u69ebriangle\u0200;dlr\u1812\u1813\u1818\u181d\u65b4own;\u65beeft;\u65c2ight;\u65b8k;\u6423\u01b1\u182b\0\u1833\u01b2\u182f\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183e\u184d\u0100;q\u1843\u1846\uc000=\u20e5uiv;\uc000\u2261\u20e5t;\u6310\u0200ptwx\u1859\u185e\u1867\u186cf;\uc000\ud835\udd53\u0100;t\u13cb\u1863om\xbb\u13cctie;\u62c8\u0600DHUVbdhmptuv\u1885\u1896\u18aa\u18bb\u18d7\u18db\u18ec\u18ff\u1905\u190a\u1910\u1921\u0200LRlr\u188e\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18a1\u18a2\u18a4\u18a6\u18a8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18b3\u18b5\u18b7\u18b9;\u655d;\u655a;\u655c;\u6559\u0380;HLRhlr\u18ca\u18cb\u18cd\u18cf\u18d1\u18d3\u18d5\u6551;\u656c;\u6563;\u6560;\u656b;\u6562;\u655fox;\u69c9\u0200LRlr\u18e4\u18e6\u18e8\u18ea;\u6555;\u6552;\u6510;\u650c\u0280;DUdu\u06bd\u18f7\u18f9\u18fb\u18fd;\u6565;\u6568;\u652c;\u6534inus;\u629flus;\u629eimes;\u62a0\u0200LRlr\u1919\u191b\u191d\u191f;\u655b;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193b\u6502;\u656a;\u6561;\u655e;\u653c;\u6524;\u651c\u0100ev\u0123\u1942bar\u803b\xa6\u40a6\u0200ceio\u1951\u1956\u195a\u1960r;\uc000\ud835\udcb7mi;\u604fm\u0100;e\u171a\u171cl\u0180;bh\u1968\u1969\u196b\u405c;\u69c5sub;\u67c8\u016c\u1974\u197el\u0100;e\u1979\u197a\u6022t\xbb\u197ap\u0180;Ee\u012f\u1985\u1987;\u6aae\u0100;q\u06dc\u06db\u0ce1\u19a7\0\u19e8\u1a11\u1a15\u1a32\0\u1a37\u1a50\0\0\u1ab4\0\0\u1ac1\0\0\u1b21\u1b2e\u1b4d\u1b52\0\u1bfd\0\u1c0c\u0180cpr\u19ad\u19b2\u19ddute;\u4107\u0300;abcds\u19bf\u19c0\u19c4\u19ca\u19d5\u19d9\u6229nd;\u6a44rcup;\u6a49\u0100au\u19cf\u19d2p;\u6a4bp;\u6a47ot;\u6a40;\uc000\u2229\ufe00\u0100eo\u19e2\u19e5t;\u6041\xee\u0693\u0200aeiu\u19f0\u19fb\u1a01\u1a05\u01f0\u19f5\0\u19f8s;\u6a4don;\u410ddil\u803b\xe7\u40e7rc;\u4109ps\u0100;s\u1a0c\u1a0d\u6a4cm;\u6a50ot;\u410b\u0180dmn\u1a1b\u1a20\u1a26il\u80bb\xb8\u01adptyv;\u69b2t\u8100\xa2;e\u1a2d\u1a2e\u40a2r\xe4\u01b2r;\uc000\ud835\udd20\u0180cei\u1a3d\u1a40\u1a4dy;\u4447ck\u0100;m\u1a47\u1a48\u6713ark\xbb\u1a48;\u43c7r\u0380;Ecefms\u1a5f\u1a60\u1a62\u1a6b\u1aa4\u1aaa\u1aae\u65cb;\u69c3\u0180;el\u1a69\u1a6a\u1a6d\u42c6q;\u6257e\u0261\u1a74\0\0\u1a88rrow\u0100lr\u1a7c\u1a81eft;\u61baight;\u61bb\u0280RSacd\u1a92\u1a94\u1a96\u1a9a\u1a9f\xbb\u0f47;\u64c8st;\u629birc;\u629aash;\u629dnint;\u6a10id;\u6aefcir;\u69c2ubs\u0100;u\u1abb\u1abc\u6663it\xbb\u1abc\u02ec\u1ac7\u1ad4\u1afa\0\u1b0aon\u0100;e\u1acd\u1ace\u403a\u0100;q\xc7\xc6\u026d\u1ad9\0\0\u1ae2a\u0100;t\u1ade\u1adf\u402c;\u4040\u0180;fl\u1ae8\u1ae9\u1aeb\u6201\xee\u1160e\u0100mx\u1af1\u1af6ent\xbb\u1ae9e\xf3\u024d\u01e7\u1afe\0\u1b07\u0100;d\u12bb\u1b02ot;\u6a6dn\xf4\u0246\u0180fry\u1b10\u1b14\u1b17;\uc000\ud835\udd54o\xe4\u0254\u8100\xa9;s\u0155\u1b1dr;\u6117\u0100ao\u1b25\u1b29rr;\u61b5ss;\u6717\u0100cu\u1b32\u1b37r;\uc000\ud835\udcb8\u0100bp\u1b3c\u1b44\u0100;e\u1b41\u1b42\u6acf;\u6ad1\u0100;e\u1b49\u1b4a\u6ad0;\u6ad2dot;\u62ef\u0380delprvw\u1b60\u1b6c\u1b77\u1b82\u1bac\u1bd4\u1bf9arr\u0100lr\u1b68\u1b6a;\u6938;\u6935\u0270\u1b72\0\0\u1b75r;\u62dec;\u62dfarr\u0100;p\u1b7f\u1b80\u61b6;\u693d\u0300;bcdos\u1b8f\u1b90\u1b96\u1ba1\u1ba5\u1ba8\u622arcap;\u6a48\u0100au\u1b9b\u1b9ep;\u6a46p;\u6a4aot;\u628dr;\u6a45;\uc000\u222a\ufe00\u0200alrv\u1bb5\u1bbf\u1bde\u1be3rr\u0100;m\u1bbc\u1bbd\u61b7;\u693cy\u0180evw\u1bc7\u1bd4\u1bd8q\u0270\u1bce\0\0\u1bd2re\xe3\u1b73u\xe3\u1b75ee;\u62ceedge;\u62cfen\u803b\xa4\u40a4earrow\u0100lr\u1bee\u1bf3eft\xbb\u1b80ight\xbb\u1bbde\xe4\u1bdd\u0100ci\u1c01\u1c07onin\xf4\u01f7nt;\u6231lcty;\u632d\u0980AHabcdefhijlorstuwz\u1c38\u1c3b\u1c3f\u1c5d\u1c69\u1c75\u1c8a\u1c9e\u1cac\u1cb7\u1cfb\u1cff\u1d0d\u1d7b\u1d91\u1dab\u1dbb\u1dc6\u1dcdr\xf2\u0381ar;\u6965\u0200glrs\u1c48\u1c4d\u1c52\u1c54ger;\u6020eth;\u6138\xf2\u1133h\u0100;v\u1c5a\u1c5b\u6010\xbb\u090a\u016b\u1c61\u1c67arow;\u690fa\xe3\u0315\u0100ay\u1c6e\u1c73ron;\u410f;\u4434\u0180;ao\u0332\u1c7c\u1c84\u0100gr\u02bf\u1c81r;\u61catseq;\u6a77\u0180glm\u1c91\u1c94\u1c98\u803b\xb0\u40b0ta;\u43b4ptyv;\u69b1\u0100ir\u1ca3\u1ca8sht;\u697f;\uc000\ud835\udd21ar\u0100lr\u1cb3\u1cb5\xbb\u08dc\xbb\u101e\u0280aegsv\u1cc2\u0378\u1cd6\u1cdc\u1ce0m\u0180;os\u0326\u1cca\u1cd4nd\u0100;s\u0326\u1cd1uit;\u6666amma;\u43ddin;\u62f2\u0180;io\u1ce7\u1ce8\u1cf8\u40f7de\u8100\xf7;o\u1ce7\u1cf0ntimes;\u62c7n\xf8\u1cf7cy;\u4452c\u026f\u1d06\0\0\u1d0arn;\u631eop;\u630d\u0280lptuw\u1d18\u1d1d\u1d22\u1d49\u1d55lar;\u4024f;\uc000\ud835\udd55\u0280;emps\u030b\u1d2d\u1d37\u1d3d\u1d42q\u0100;d\u0352\u1d33ot;\u6251inus;\u6238lus;\u6214quare;\u62a1blebarwedg\xe5\xfan\u0180adh\u112e\u1d5d\u1d67ownarrow\xf3\u1c83arpoon\u0100lr\u1d72\u1d76ef\xf4\u1cb4igh\xf4\u1cb6\u0162\u1d7f\u1d85karo\xf7\u0f42\u026f\u1d8a\0\0\u1d8ern;\u631fop;\u630c\u0180cot\u1d98\u1da3\u1da6\u0100ry\u1d9d\u1da1;\uc000\ud835\udcb9;\u4455l;\u69f6rok;\u4111\u0100dr\u1db0\u1db4ot;\u62f1i\u0100;f\u1dba\u1816\u65bf\u0100ah\u1dc0\u1dc3r\xf2\u0429a\xf2\u0fa6angle;\u69a6\u0100ci\u1dd2\u1dd5y;\u445fgrarr;\u67ff\u0900Dacdefglmnopqrstux\u1e01\u1e09\u1e19\u1e38\u0578\u1e3c\u1e49\u1e61\u1e7e\u1ea5\u1eaf\u1ebd\u1ee1\u1f2a\u1f37\u1f44\u1f4e\u1f5a\u0100Do\u1e06\u1d34o\xf4\u1c89\u0100cs\u1e0e\u1e14ute\u803b\xe9\u40e9ter;\u6a6e\u0200aioy\u1e22\u1e27\u1e31\u1e36ron;\u411br\u0100;c\u1e2d\u1e2e\u6256\u803b\xea\u40ealon;\u6255;\u444dot;\u4117\u0100Dr\u1e41\u1e45ot;\u6252;\uc000\ud835\udd22\u0180;rs\u1e50\u1e51\u1e57\u6a9aave\u803b\xe8\u40e8\u0100;d\u1e5c\u1e5d\u6a96ot;\u6a98\u0200;ils\u1e6a\u1e6b\u1e72\u1e74\u6a99nters;\u63e7;\u6113\u0100;d\u1e79\u1e7a\u6a95ot;\u6a97\u0180aps\u1e85\u1e89\u1e97cr;\u4113ty\u0180;sv\u1e92\u1e93\u1e95\u6205et\xbb\u1e93p\u01001;\u1e9d\u1ea4\u0133\u1ea1\u1ea3;\u6004;\u6005\u6003\u0100gs\u1eaa\u1eac;\u414bp;\u6002\u0100gp\u1eb4\u1eb8on;\u4119f;\uc000\ud835\udd56\u0180als\u1ec4\u1ece\u1ed2r\u0100;s\u1eca\u1ecb\u62d5l;\u69e3us;\u6a71i\u0180;lv\u1eda\u1edb\u1edf\u43b5on\xbb\u1edb;\u43f5\u0200csuv\u1eea\u1ef3\u1f0b\u1f23\u0100io\u1eef\u1e31rc\xbb\u1e2e\u0269\u1ef9\0\0\u1efb\xed\u0548ant\u0100gl\u1f02\u1f06tr\xbb\u1e5dess\xbb\u1e7a\u0180aei\u1f12\u1f16\u1f1als;\u403dst;\u625fv\u0100;D\u0235\u1f20D;\u6a78parsl;\u69e5\u0100Da\u1f2f\u1f33ot;\u6253rr;\u6971\u0180cdi\u1f3e\u1f41\u1ef8r;\u612fo\xf4\u0352\u0100ah\u1f49\u1f4b;\u43b7\u803b\xf0\u40f0\u0100mr\u1f53\u1f57l\u803b\xeb\u40ebo;\u60ac\u0180cip\u1f61\u1f64\u1f67l;\u4021s\xf4\u056e\u0100eo\u1f6c\u1f74ctatio\xee\u0559nential\xe5\u0579\u09e1\u1f92\0\u1f9e\0\u1fa1\u1fa7\0\0\u1fc6\u1fcc\0\u1fd3\0\u1fe6\u1fea\u2000\0\u2008\u205allingdotse\xf1\u1e44y;\u4444male;\u6640\u0180ilr\u1fad\u1fb3\u1fc1lig;\u8000\ufb03\u0269\u1fb9\0\0\u1fbdg;\u8000\ufb00ig;\u8000\ufb04;\uc000\ud835\udd23lig;\u8000\ufb01lig;\uc000fj\u0180alt\u1fd9\u1fdc\u1fe1t;\u666dig;\u8000\ufb02ns;\u65b1of;\u4192\u01f0\u1fee\0\u1ff3f;\uc000\ud835\udd57\u0100ak\u05bf\u1ff7\u0100;v\u1ffc\u1ffd\u62d4;\u6ad9artint;\u6a0d\u0100ao\u200c\u2055\u0100cs\u2011\u2052\u03b1\u201a\u2030\u2038\u2045\u2048\0\u2050\u03b2\u2022\u2025\u2027\u202a\u202c\0\u202e\u803b\xbd\u40bd;\u6153\u803b\xbc\u40bc;\u6155;\u6159;\u615b\u01b3\u2034\0\u2036;\u6154;\u6156\u02b4\u203e\u2041\0\0\u2043\u803b\xbe\u40be;\u6157;\u615c5;\u6158\u01b6\u204c\0\u204e;\u615a;\u615d8;\u615el;\u6044wn;\u6322cr;\uc000\ud835\udcbb\u0880Eabcdefgijlnorstv\u2082\u2089\u209f\u20a5\u20b0\u20b4\u20f0\u20f5\u20fa\u20ff\u2103\u2112\u2138\u0317\u213e\u2152\u219e\u0100;l\u064d\u2087;\u6a8c\u0180cmp\u2090\u2095\u209dute;\u41f5ma\u0100;d\u209c\u1cda\u43b3;\u6a86reve;\u411f\u0100iy\u20aa\u20aerc;\u411d;\u4433ot;\u4121\u0200;lqs\u063e\u0642\u20bd\u20c9\u0180;qs\u063e\u064c\u20c4lan\xf4\u0665\u0200;cdl\u0665\u20d2\u20d5\u20e5c;\u6aa9ot\u0100;o\u20dc\u20dd\u6a80\u0100;l\u20e2\u20e3\u6a82;\u6a84\u0100;e\u20ea\u20ed\uc000\u22db\ufe00s;\u6a94r;\uc000\ud835\udd24\u0100;g\u0673\u061bmel;\u6137cy;\u4453\u0200;Eaj\u065a\u210c\u210e\u2110;\u6a92;\u6aa5;\u6aa4\u0200Eaes\u211b\u211d\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6a8arox\xbb\u2124\u0100;q\u212e\u212f\u6a88\u0100;q\u212e\u211bim;\u62e7pf;\uc000\ud835\udd58\u0100ci\u2143\u2146r;\u610am\u0180;el\u066b\u214e\u2150;\u6a8e;\u6a90\u8300>;cdlqr\u05ee\u2160\u216a\u216e\u2173\u2179\u0100ci\u2165\u2167;\u6aa7r;\u6a7aot;\u62d7Par;\u6995uest;\u6a7c\u0280adels\u2184\u216a\u2190\u0656\u219b\u01f0\u2189\0\u218epro\xf8\u209er;\u6978q\u0100lq\u063f\u2196les\xf3\u2088i\xed\u066b\u0100en\u21a3\u21adrtneqq;\uc000\u2269\ufe00\xc5\u21aa\u0500Aabcefkosy\u21c4\u21c7\u21f1\u21f5\u21fa\u2218\u221d\u222f\u2268\u227dr\xf2\u03a0\u0200ilmr\u21d0\u21d4\u21d7\u21dbrs\xf0\u1484f\xbb\u2024il\xf4\u06a9\u0100dr\u21e0\u21e4cy;\u444a\u0180;cw\u08f4\u21eb\u21efir;\u6948;\u61adar;\u610firc;\u4125\u0180alr\u2201\u220e\u2213rts\u0100;u\u2209\u220a\u6665it\xbb\u220alip;\u6026con;\u62b9r;\uc000\ud835\udd25s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223a\u223e\u2243\u225e\u2263rr;\u61fftht;\u623bk\u0100lr\u2249\u2253eftarrow;\u61a9ightarrow;\u61aaf;\uc000\ud835\udd59bar;\u6015\u0180clt\u226f\u2274\u2278r;\uc000\ud835\udcbdas\xe8\u21f4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xbb\u1c5b\u0ae1\u22a3\0\u22aa\0\u22b8\u22c5\u22ce\0\u22d5\u22f3\0\0\u22f8\u2322\u2367\u2362\u237f\0\u2386\u23aa\u23b4cute\u803b\xed\u40ed\u0180;iy\u0771\u22b0\u22b5rc\u803b\xee\u40ee;\u4438\u0100cx\u22bc\u22bfy;\u4435cl\u803b\xa1\u40a1\u0100fr\u039f\u22c9;\uc000\ud835\udd26rave\u803b\xec\u40ec\u0200;ino\u073e\u22dd\u22e9\u22ee\u0100in\u22e2\u22e6nt;\u6a0ct;\u622dfin;\u69dcta;\u6129lig;\u4133\u0180aop\u22fe\u231a\u231d\u0180cgt\u2305\u2308\u2317r;\u412b\u0180elp\u071f\u230f\u2313in\xe5\u078ear\xf4\u0720h;\u4131f;\u62b7ed;\u41b5\u0280;cfot\u04f4\u232c\u2331\u233d\u2341are;\u6105in\u0100;t\u2338\u2339\u621eie;\u69dddo\xf4\u2319\u0280;celp\u0757\u234c\u2350\u235b\u2361al;\u62ba\u0100gr\u2355\u2359er\xf3\u1563\xe3\u234darhk;\u6a17rod;\u6a3c\u0200cgpt\u236f\u2372\u2376\u237by;\u4451on;\u412ff;\uc000\ud835\udd5aa;\u43b9uest\u803b\xbf\u40bf\u0100ci\u238a\u238fr;\uc000\ud835\udcben\u0280;Edsv\u04f4\u239b\u239d\u23a1\u04f3;\u62f9ot;\u62f5\u0100;v\u23a6\u23a7\u62f4;\u62f3\u0100;i\u0777\u23aelde;\u4129\u01eb\u23b8\0\u23bccy;\u4456l\u803b\xef\u40ef\u0300cfmosu\u23cc\u23d7\u23dc\u23e1\u23e7\u23f5\u0100iy\u23d1\u23d5rc;\u4135;\u4439r;\uc000\ud835\udd27ath;\u4237pf;\uc000\ud835\udd5b\u01e3\u23ec\0\u23f1r;\uc000\ud835\udcbfrcy;\u4458kcy;\u4454\u0400acfghjos\u240b\u2416\u2422\u2427\u242d\u2431\u2435\u243bppa\u0100;v\u2413\u2414\u43ba;\u43f0\u0100ey\u241b\u2420dil;\u4137;\u443ar;\uc000\ud835\udd28reen;\u4138cy;\u4445cy;\u445cpf;\uc000\ud835\udd5ccr;\uc000\ud835\udcc0\u0b80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248d\u2491\u250e\u253d\u255a\u2580\u264e\u265e\u2665\u2679\u267d\u269a\u26b2\u26d8\u275d\u2768\u278b\u27c0\u2801\u2812\u0180art\u2477\u247a\u247cr\xf2\u09c6\xf2\u0395ail;\u691barr;\u690e\u0100;g\u0994\u248b;\u6a8bar;\u6962\u0963\u24a5\0\u24aa\0\u24b1\0\0\0\0\0\u24b5\u24ba\0\u24c6\u24c8\u24cd\0\u24f9ute;\u413amptyv;\u69b4ra\xee\u084cbda;\u43bbg\u0180;dl\u088e\u24c1\u24c3;\u6991\xe5\u088e;\u6a85uo\u803b\xab\u40abr\u0400;bfhlpst\u0899\u24de\u24e6\u24e9\u24eb\u24ee\u24f1\u24f5\u0100;f\u089d\u24e3s;\u691fs;\u691d\xeb\u2252p;\u61abl;\u6939im;\u6973l;\u61a2\u0180;ae\u24ff\u2500\u2504\u6aabil;\u6919\u0100;s\u2509\u250a\u6aad;\uc000\u2aad\ufe00\u0180abr\u2515\u2519\u251drr;\u690crk;\u6772\u0100ak\u2522\u252cc\u0100ek\u2528\u252a;\u407b;\u405b\u0100es\u2531\u2533;\u698bl\u0100du\u2539\u253b;\u698f;\u698d\u0200aeuy\u2546\u254b\u2556\u2558ron;\u413e\u0100di\u2550\u2554il;\u413c\xec\u08b0\xe2\u2529;\u443b\u0200cqrs\u2563\u2566\u256d\u257da;\u6936uo\u0100;r\u0e19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694bh;\u61b2\u0280;fgqs\u258b\u258c\u0989\u25f3\u25ff\u6264t\u0280ahlrt\u2598\u25a4\u25b7\u25c2\u25e8rrow\u0100;t\u0899\u25a1a\xe9\u24f6arpoon\u0100du\u25af\u25b4own\xbb\u045ap\xbb\u0966eftarrows;\u61c7ight\u0180ahs\u25cd\u25d6\u25derrow\u0100;s\u08f4\u08a7arpoon\xf3\u0f98quigarro\xf7\u21f0hreetimes;\u62cb\u0180;qs\u258b\u0993\u25falan\xf4\u09ac\u0280;cdgs\u09ac\u260a\u260d\u261d\u2628c;\u6aa8ot\u0100;o\u2614\u2615\u6a7f\u0100;r\u261a\u261b\u6a81;\u6a83\u0100;e\u2622\u2625\uc000\u22da\ufe00s;\u6a93\u0280adegs\u2633\u2639\u263d\u2649\u264bppro\xf8\u24c6ot;\u62d6q\u0100gq\u2643\u2645\xf4\u0989gt\xf2\u248c\xf4\u099bi\xed\u09b2\u0180ilr\u2655\u08e1\u265asht;\u697c;\uc000\ud835\udd29\u0100;E\u099c\u2663;\u6a91\u0161\u2669\u2676r\u0100du\u25b2\u266e\u0100;l\u0965\u2673;\u696alk;\u6584cy;\u4459\u0280;acht\u0a48\u2688\u268b\u2691\u2696r\xf2\u25c1orne\xf2\u1d08ard;\u696bri;\u65fa\u0100io\u269f\u26a4dot;\u4140ust\u0100;a\u26ac\u26ad\u63b0che\xbb\u26ad\u0200Eaes\u26bb\u26bd\u26c9\u26d4;\u6268p\u0100;p\u26c3\u26c4\u6a89rox\xbb\u26c4\u0100;q\u26ce\u26cf\u6a87\u0100;q\u26ce\u26bbim;\u62e6\u0400abnoptwz\u26e9\u26f4\u26f7\u271a\u272f\u2741\u2747\u2750\u0100nr\u26ee\u26f1g;\u67ecr;\u61fdr\xeb\u08c1g\u0180lmr\u26ff\u270d\u2714eft\u0100ar\u09e6\u2707ight\xe1\u09f2apsto;\u67fcight\xe1\u09fdparrow\u0100lr\u2725\u2729ef\xf4\u24edight;\u61ac\u0180afl\u2736\u2739\u273dr;\u6985;\uc000\ud835\udd5dus;\u6a2dimes;\u6a34\u0161\u274b\u274fst;\u6217\xe1\u134e\u0180;ef\u2757\u2758\u1800\u65cange\xbb\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277c\u2785\u2787r\xf2\u08a8orne\xf2\u1d8car\u0100;d\u0f98\u2783;\u696d;\u600eri;\u62bf\u0300achiqt\u2798\u279d\u0a40\u27a2\u27ae\u27bbquo;\u6039r;\uc000\ud835\udcc1m\u0180;eg\u09b2\u27aa\u27ac;\u6a8d;\u6a8f\u0100bu\u252a\u27b3o\u0100;r\u0e1f\u27b9;\u601arok;\u4142\u8400<;cdhilqr\u082b\u27d2\u2639\u27dc\u27e0\u27e5\u27ea\u27f0\u0100ci\u27d7\u27d9;\u6aa6r;\u6a79re\xe5\u25f2mes;\u62c9arr;\u6976uest;\u6a7b\u0100Pi\u27f5\u27f9ar;\u6996\u0180;ef\u2800\u092d\u181b\u65c3r\u0100du\u2807\u280dshar;\u694ahar;\u6966\u0100en\u2817\u2821rtneqq;\uc000\u2268\ufe00\xc5\u281e\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288e\u2893\u28a0\u28a5\u28a8\u28da\u28e2\u28e4\u0a83\u28f3\u2902Dot;\u623a\u0200clpr\u284e\u2852\u2863\u287dr\u803b\xaf\u40af\u0100et\u2857\u2859;\u6642\u0100;e\u285e\u285f\u6720se\xbb\u285f\u0100;s\u103b\u2868to\u0200;dlu\u103b\u2873\u2877\u287bow\xee\u048cef\xf4\u090f\xf0\u13d1ker;\u65ae\u0100oy\u2887\u288cmma;\u6a29;\u443cash;\u6014asuredangle\xbb\u1626r;\uc000\ud835\udd2ao;\u6127\u0180cdn\u28af\u28b4\u28c9ro\u803b\xb5\u40b5\u0200;acd\u1464\u28bd\u28c0\u28c4s\xf4\u16a7ir;\u6af0ot\u80bb\xb7\u01b5us\u0180;bd\u28d2\u1903\u28d3\u6212\u0100;u\u1d3c\u28d8;\u6a2a\u0163\u28de\u28e1p;\u6adb\xf2\u2212\xf0\u0a81\u0100dp\u28e9\u28eeels;\u62a7f;\uc000\ud835\udd5e\u0100ct\u28f8\u28fdr;\uc000\ud835\udcc2pos\xbb\u159d\u0180;lm\u2909\u290a\u290d\u43bctimap;\u62b8\u0c00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297e\u2989\u2998\u29da\u29e9\u2a15\u2a1a\u2a58\u2a5d\u2a83\u2a95\u2aa4\u2aa8\u2b04\u2b07\u2b44\u2b7f\u2bae\u2c34\u2c67\u2c7c\u2ce9\u0100gt\u2947\u294b;\uc000\u22d9\u0338\u0100;v\u2950\u0bcf\uc000\u226b\u20d2\u0180elt\u295a\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61cdightarrow;\u61ce;\uc000\u22d8\u0338\u0100;v\u297b\u0c47\uc000\u226a\u20d2ightarrow;\u61cf\u0100Dd\u298e\u2993ash;\u62afash;\u62ae\u0280bcnpt\u29a3\u29a7\u29ac\u29b1\u29ccla\xbb\u02deute;\u4144g;\uc000\u2220\u20d2\u0280;Eiop\u0d84\u29bc\u29c0\u29c5\u29c8;\uc000\u2a70\u0338d;\uc000\u224b\u0338s;\u4149ro\xf8\u0d84ur\u0100;a\u29d3\u29d4\u666el\u0100;s\u29d3\u0b38\u01f3\u29df\0\u29e3p\u80bb\xa0\u0b37mp\u0100;e\u0bf9\u0c00\u0280aeouy\u29f4\u29fe\u2a03\u2a10\u2a13\u01f0\u29f9\0\u29fb;\u6a43on;\u4148dil;\u4146ng\u0100;d\u0d7e\u2a0aot;\uc000\u2a6d\u0338p;\u6a42;\u443dash;\u6013\u0380;Aadqsx\u0b92\u2a29\u2a2d\u2a3b\u2a41\u2a45\u2a50rr;\u61d7r\u0100hr\u2a33\u2a36k;\u6924\u0100;o\u13f2\u13f0ot;\uc000\u2250\u0338ui\xf6\u0b63\u0100ei\u2a4a\u2a4ear;\u6928\xed\u0b98ist\u0100;s\u0ba0\u0b9fr;\uc000\ud835\udd2b\u0200Eest\u0bc5\u2a66\u2a79\u2a7c\u0180;qs\u0bbc\u2a6d\u0be1\u0180;qs\u0bbc\u0bc5\u2a74lan\xf4\u0be2i\xed\u0bea\u0100;r\u0bb6\u2a81\xbb\u0bb7\u0180Aap\u2a8a\u2a8d\u2a91r\xf2\u2971rr;\u61aear;\u6af2\u0180;sv\u0f8d\u2a9c\u0f8c\u0100;d\u2aa1\u2aa2\u62fc;\u62facy;\u445a\u0380AEadest\u2ab7\u2aba\u2abe\u2ac2\u2ac5\u2af6\u2af9r\xf2\u2966;\uc000\u2266\u0338rr;\u619ar;\u6025\u0200;fqs\u0c3b\u2ace\u2ae3\u2aeft\u0100ar\u2ad4\u2ad9rro\xf7\u2ac1ightarro\xf7\u2a90\u0180;qs\u0c3b\u2aba\u2aealan\xf4\u0c55\u0100;s\u0c55\u2af4\xbb\u0c36i\xed\u0c5d\u0100;r\u0c35\u2afei\u0100;e\u0c1a\u0c25i\xe4\u0d90\u0100pt\u2b0c\u2b11f;\uc000\ud835\udd5f\u8180\xac;in\u2b19\u2b1a\u2b36\u40acn\u0200;Edv\u0b89\u2b24\u2b28\u2b2e;\uc000\u22f9\u0338ot;\uc000\u22f5\u0338\u01e1\u0b89\u2b33\u2b35;\u62f7;\u62f6i\u0100;v\u0cb8\u2b3c\u01e1\u0cb8\u2b41\u2b43;\u62fe;\u62fd\u0180aor\u2b4b\u2b63\u2b69r\u0200;ast\u0b7b\u2b55\u2b5a\u2b5flle\xec\u0b7bl;\uc000\u2afd\u20e5;\uc000\u2202\u0338lint;\u6a14\u0180;ce\u0c92\u2b70\u2b73u\xe5\u0ca5\u0100;c\u0c98\u2b78\u0100;e\u0c92\u2b7d\xf1\u0c98\u0200Aait\u2b88\u2b8b\u2b9d\u2ba7r\xf2\u2988rr\u0180;cw\u2b94\u2b95\u2b99\u619b;\uc000\u2933\u0338;\uc000\u219d\u0338ghtarrow\xbb\u2b95ri\u0100;e\u0ccb\u0cd6\u0380chimpqu\u2bbd\u2bcd\u2bd9\u2b04\u0b78\u2be4\u2bef\u0200;cer\u0d32\u2bc6\u0d37\u2bc9u\xe5\u0d45;\uc000\ud835\udcc3ort\u026d\u2b05\0\0\u2bd6ar\xe1\u2b56m\u0100;e\u0d6e\u2bdf\u0100;q\u0d74\u0d73su\u0100bp\u2beb\u2bed\xe5\u0cf8\xe5\u0d0b\u0180bcp\u2bf6\u2c11\u2c19\u0200;Ees\u2bff\u2c00\u0d22\u2c04\u6284;\uc000\u2ac5\u0338et\u0100;e\u0d1b\u2c0bq\u0100;q\u0d23\u2c00c\u0100;e\u0d32\u2c17\xf1\u0d38\u0200;Ees\u2c22\u2c23\u0d5f\u2c27\u6285;\uc000\u2ac6\u0338et\u0100;e\u0d58\u2c2eq\u0100;q\u0d60\u2c23\u0200gilr\u2c3d\u2c3f\u2c45\u2c47\xec\u0bd7lde\u803b\xf1\u40f1\xe7\u0c43iangle\u0100lr\u2c52\u2c5ceft\u0100;e\u0c1a\u2c5a\xf1\u0c26ight\u0100;e\u0ccb\u2c65\xf1\u0cd7\u0100;m\u2c6c\u2c6d\u43bd\u0180;es\u2c74\u2c75\u2c79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2c8f\u2c94\u2c99\u2c9e\u2ca3\u2cb0\u2cb6\u2cd3\u2ce3ash;\u62adarr;\u6904p;\uc000\u224d\u20d2ash;\u62ac\u0100et\u2ca8\u2cac;\uc000\u2265\u20d2;\uc000>\u20d2nfin;\u69de\u0180Aet\u2cbd\u2cc1\u2cc5rr;\u6902;\uc000\u2264\u20d2\u0100;r\u2cca\u2ccd\uc000<\u20d2ie;\uc000\u22b4\u20d2\u0100At\u2cd8\u2cdcrr;\u6903rie;\uc000\u22b5\u20d2im;\uc000\u223c\u20d2\u0180Aan\u2cf0\u2cf4\u2d02rr;\u61d6r\u0100hr\u2cfa\u2cfdk;\u6923\u0100;o\u13e7\u13e5ear;\u6927\u1253\u1a95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2d2d\0\u2d38\u2d48\u2d60\u2d65\u2d72\u2d84\u1b07\0\0\u2d8d\u2dab\0\u2dc8\u2dce\0\u2ddc\u2e19\u2e2b\u2e3e\u2e43\u0100cs\u2d31\u1a97ute\u803b\xf3\u40f3\u0100iy\u2d3c\u2d45r\u0100;c\u1a9e\u2d42\u803b\xf4\u40f4;\u443e\u0280abios\u1aa0\u2d52\u2d57\u01c8\u2d5alac;\u4151v;\u6a38old;\u69bclig;\u4153\u0100cr\u2d69\u2d6dir;\u69bf;\uc000\ud835\udd2c\u036f\u2d79\0\0\u2d7c\0\u2d82n;\u42dbave\u803b\xf2\u40f2;\u69c1\u0100bm\u2d88\u0df4ar;\u69b5\u0200acit\u2d95\u2d98\u2da5\u2da8r\xf2\u1a80\u0100ir\u2d9d\u2da0r;\u69beoss;\u69bbn\xe5\u0e52;\u69c0\u0180aei\u2db1\u2db5\u2db9cr;\u414dga;\u43c9\u0180cdn\u2dc0\u2dc5\u01cdron;\u43bf;\u69b6pf;\uc000\ud835\udd60\u0180ael\u2dd4\u2dd7\u01d2r;\u69b7rp;\u69b9\u0380;adiosv\u2dea\u2deb\u2dee\u2e08\u2e0d\u2e10\u2e16\u6228r\xf2\u1a86\u0200;efm\u2df7\u2df8\u2e02\u2e05\u6a5dr\u0100;o\u2dfe\u2dff\u6134f\xbb\u2dff\u803b\xaa\u40aa\u803b\xba\u40bagof;\u62b6r;\u6a56lope;\u6a57;\u6a5b\u0180clo\u2e1f\u2e21\u2e27\xf2\u2e01ash\u803b\xf8\u40f8l;\u6298i\u016c\u2e2f\u2e34de\u803b\xf5\u40f5es\u0100;a\u01db\u2e3as;\u6a36ml\u803b\xf6\u40f6bar;\u633d\u0ae1\u2e5e\0\u2e7d\0\u2e80\u2e9d\0\u2ea2\u2eb9\0\0\u2ecb\u0e9c\0\u2f13\0\0\u2f2b\u2fbc\0\u2fc8r\u0200;ast\u0403\u2e67\u2e72\u0e85\u8100\xb6;l\u2e6d\u2e6e\u40b6le\xec\u0403\u0269\u2e78\0\0\u2e7bm;\u6af3;\u6afdy;\u443fr\u0280cimpt\u2e8b\u2e8f\u2e93\u1865\u2e97nt;\u4025od;\u402eil;\u6030enk;\u6031r;\uc000\ud835\udd2d\u0180imo\u2ea8\u2eb0\u2eb4\u0100;v\u2ead\u2eae\u43c6;\u43d5ma\xf4\u0a76ne;\u660e\u0180;tv\u2ebf\u2ec0\u2ec8\u43c0chfork\xbb\u1ffd;\u43d6\u0100au\u2ecf\u2edfn\u0100ck\u2ed5\u2eddk\u0100;h\u21f4\u2edb;\u610e\xf6\u21f4s\u0480;abcdemst\u2ef3\u2ef4\u1908\u2ef9\u2efd\u2f04\u2f06\u2f0a\u2f0e\u402bcir;\u6a23ir;\u6a22\u0100ou\u1d40\u2f02;\u6a25;\u6a72n\u80bb\xb1\u0e9dim;\u6a26wo;\u6a27\u0180ipu\u2f19\u2f20\u2f25ntint;\u6a15f;\uc000\ud835\udd61nd\u803b\xa3\u40a3\u0500;Eaceinosu\u0ec8\u2f3f\u2f41\u2f44\u2f47\u2f81\u2f89\u2f92\u2f7e\u2fb6;\u6ab3p;\u6ab7u\xe5\u0ed9\u0100;c\u0ece\u2f4c\u0300;acens\u0ec8\u2f59\u2f5f\u2f66\u2f68\u2f7eppro\xf8\u2f43urlye\xf1\u0ed9\xf1\u0ece\u0180aes\u2f6f\u2f76\u2f7approx;\u6ab9qq;\u6ab5im;\u62e8i\xed\u0edfme\u0100;s\u2f88\u0eae\u6032\u0180Eas\u2f78\u2f90\u2f7a\xf0\u2f75\u0180dfp\u0eec\u2f99\u2faf\u0180als\u2fa0\u2fa5\u2faalar;\u632eine;\u6312urf;\u6313\u0100;t\u0efb\u2fb4\xef\u0efbrel;\u62b0\u0100ci\u2fc0\u2fc5r;\uc000\ud835\udcc5;\u43c8ncsp;\u6008\u0300fiopsu\u2fda\u22e2\u2fdf\u2fe5\u2feb\u2ff1r;\uc000\ud835\udd2epf;\uc000\ud835\udd62rime;\u6057cr;\uc000\ud835\udcc6\u0180aeo\u2ff8\u3009\u3013t\u0100ei\u2ffe\u3005rnion\xf3\u06b0nt;\u6a16st\u0100;e\u3010\u3011\u403f\xf1\u1f19\xf4\u0f14\u0a80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30e0\u310e\u312b\u3147\u3162\u3172\u318e\u3206\u3215\u3224\u3229\u3258\u326e\u3272\u3290\u32b0\u32b7\u0180art\u3047\u304a\u304cr\xf2\u10b3\xf2\u03ddail;\u691car\xf2\u1c65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307f\u308f\u3094\u30cc\u0100eu\u306d\u3071;\uc000\u223d\u0331te;\u4155i\xe3\u116emptyv;\u69b3g\u0200;del\u0fd1\u3089\u308b\u308d;\u6992;\u69a5\xe5\u0fd1uo\u803b\xbb\u40bbr\u0580;abcfhlpstw\u0fdc\u30ac\u30af\u30b7\u30b9\u30bc\u30be\u30c0\u30c3\u30c7\u30cap;\u6975\u0100;f\u0fe0\u30b4s;\u6920;\u6933s;\u691e\xeb\u225d\xf0\u272el;\u6945im;\u6974l;\u61a3;\u619d\u0100ai\u30d1\u30d5il;\u691ao\u0100;n\u30db\u30dc\u6236al\xf3\u0f1e\u0180abr\u30e7\u30ea\u30eer\xf2\u17e5rk;\u6773\u0100ak\u30f3\u30fdc\u0100ek\u30f9\u30fb;\u407d;\u405d\u0100es\u3102\u3104;\u698cl\u0100du\u310a\u310c;\u698e;\u6990\u0200aeuy\u3117\u311c\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xec\u0ff2\xe2\u30fa;\u4440\u0200clqs\u3134\u3137\u313d\u3144a;\u6937dhar;\u6969uo\u0100;r\u020e\u020dh;\u61b3\u0180acg\u314e\u315f\u0f44l\u0200;ips\u0f78\u3158\u315b\u109cn\xe5\u10bbar\xf4\u0fa9t;\u65ad\u0180ilr\u3169\u1023\u316esht;\u697d;\uc000\ud835\udd2f\u0100ao\u3177\u3186r\u0100du\u317d\u317f\xbb\u047b\u0100;l\u1091\u3184;\u696c\u0100;v\u318b\u318c\u43c1;\u43f1\u0180gns\u3195\u31f9\u31fcht\u0300ahlrst\u31a4\u31b0\u31c2\u31d8\u31e4\u31eerrow\u0100;t\u0fdc\u31ada\xe9\u30c8arpoon\u0100du\u31bb\u31bfow\xee\u317ep\xbb\u1092eft\u0100ah\u31ca\u31d0rrow\xf3\u0feaarpoon\xf3\u0551ightarrows;\u61c9quigarro\xf7\u30cbhreetimes;\u62ccg;\u42daingdotse\xf1\u1f32\u0180ahm\u320d\u3210\u3213r\xf2\u0feaa\xf2\u0551;\u600foust\u0100;a\u321e\u321f\u63b1che\xbb\u321fmid;\u6aee\u0200abpt\u3232\u323d\u3240\u3252\u0100nr\u3237\u323ag;\u67edr;\u61fer\xeb\u1003\u0180afl\u3247\u324a\u324er;\u6986;\uc000\ud835\udd63us;\u6a2eimes;\u6a35\u0100ap\u325d\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6a12ar\xf2\u31e3\u0200achq\u327b\u3280\u10bc\u3285quo;\u603ar;\uc000\ud835\udcc7\u0100bu\u30fb\u328ao\u0100;r\u0214\u0213\u0180hir\u3297\u329b\u32a0re\xe5\u31f8mes;\u62cai\u0200;efl\u32aa\u1059\u1821\u32ab\u65b9tri;\u69celuhar;\u6968;\u611e\u0d61\u32d5\u32db\u32df\u332c\u3338\u3371\0\u337a\u33a4\0\0\u33ec\u33f0\0\u3428\u3448\u345a\u34ad\u34b1\u34ca\u34f1\0\u3616\0\0\u3633cute;\u415bqu\xef\u27ba\u0500;Eaceinpsy\u11ed\u32f3\u32f5\u32ff\u3302\u330b\u330f\u331f\u3326\u3329;\u6ab4\u01f0\u32fa\0\u32fc;\u6ab8on;\u4161u\xe5\u11fe\u0100;d\u11f3\u3307il;\u415frc;\u415d\u0180Eas\u3316\u3318\u331b;\u6ab6p;\u6abaim;\u62e9olint;\u6a13i\xed\u1204;\u4441ot\u0180;be\u3334\u1d47\u3335\u62c5;\u6a66\u0380Aacmstx\u3346\u334a\u3357\u335b\u335e\u3363\u336drr;\u61d8r\u0100hr\u3350\u3352\xeb\u2228\u0100;o\u0a36\u0a34t\u803b\xa7\u40a7i;\u403bwar;\u6929m\u0100in\u3369\xf0nu\xf3\xf1t;\u6736r\u0100;o\u3376\u2055\uc000\ud835\udd30\u0200acoy\u3382\u3386\u3391\u33a0rp;\u666f\u0100hy\u338b\u338fcy;\u4449;\u4448rt\u026d\u3399\0\0\u339ci\xe4\u1464ara\xec\u2e6f\u803b\xad\u40ad\u0100gm\u33a8\u33b4ma\u0180;fv\u33b1\u33b2\u33b2\u43c3;\u43c2\u0400;deglnpr\u12ab\u33c5\u33c9\u33ce\u33d6\u33de\u33e1\u33e6ot;\u6a6a\u0100;q\u12b1\u12b0\u0100;E\u33d3\u33d4\u6a9e;\u6aa0\u0100;E\u33db\u33dc\u6a9d;\u6a9fe;\u6246lus;\u6a24arr;\u6972ar\xf2\u113d\u0200aeit\u33f8\u3408\u340f\u3417\u0100ls\u33fd\u3404lsetm\xe9\u336ahp;\u6a33parsl;\u69e4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341c\u341d\u6aaa\u0100;s\u3422\u3423\u6aac;\uc000\u2aac\ufe00\u0180flp\u342e\u3433\u3442tcy;\u444c\u0100;b\u3438\u3439\u402f\u0100;a\u343e\u343f\u69c4r;\u633ff;\uc000\ud835\udd64a\u0100dr\u344d\u0402es\u0100;u\u3454\u3455\u6660it\xbb\u3455\u0180csu\u3460\u3479\u349f\u0100au\u3465\u346fp\u0100;s\u1188\u346b;\uc000\u2293\ufe00p\u0100;s\u11b4\u3475;\uc000\u2294\ufe00u\u0100bp\u347f\u348f\u0180;es\u1197\u119c\u3486et\u0100;e\u1197\u348d\xf1\u119d\u0180;es\u11a8\u11ad\u3496et\u0100;e\u11a8\u349d\xf1\u11ae\u0180;af\u117b\u34a6\u05b0r\u0165\u34ab\u05b1\xbb\u117car\xf2\u1148\u0200cemt\u34b9\u34be\u34c2\u34c5r;\uc000\ud835\udcc8tm\xee\xf1i\xec\u3415ar\xe6\u11be\u0100ar\u34ce\u34d5r\u0100;f\u34d4\u17bf\u6606\u0100an\u34da\u34edight\u0100ep\u34e3\u34eapsilo\xee\u1ee0h\xe9\u2eafs\xbb\u2852\u0280bcmnp\u34fb\u355e\u1209\u358b\u358e\u0480;Edemnprs\u350e\u350f\u3511\u3515\u351e\u3523\u352c\u3531\u3536\u6282;\u6ac5ot;\u6abd\u0100;d\u11da\u351aot;\u6ac3ult;\u6ac1\u0100Ee\u3528\u352a;\u6acb;\u628alus;\u6abfarr;\u6979\u0180eiu\u353d\u3552\u3555t\u0180;en\u350e\u3545\u354bq\u0100;q\u11da\u350feq\u0100;q\u352b\u3528m;\u6ac7\u0100bp\u355a\u355c;\u6ad5;\u6ad3c\u0300;acens\u11ed\u356c\u3572\u3579\u357b\u3326ppro\xf8\u32faurlye\xf1\u11fe\xf1\u11f3\u0180aes\u3582\u3588\u331bppro\xf8\u331aq\xf1\u3317g;\u666a\u0680123;Edehlmnps\u35a9\u35ac\u35af\u121c\u35b2\u35b4\u35c0\u35c9\u35d5\u35da\u35df\u35e8\u35ed\u803b\xb9\u40b9\u803b\xb2\u40b2\u803b\xb3\u40b3;\u6ac6\u0100os\u35b9\u35bct;\u6abeub;\u6ad8\u0100;d\u1222\u35c5ot;\u6ac4s\u0100ou\u35cf\u35d2l;\u67c9b;\u6ad7arr;\u697bult;\u6ac2\u0100Ee\u35e4\u35e6;\u6acc;\u628blus;\u6ac0\u0180eiu\u35f4\u3609\u360ct\u0180;en\u121c\u35fc\u3602q\u0100;q\u1222\u35b2eq\u0100;q\u35e7\u35e4m;\u6ac8\u0100bp\u3611\u3613;\u6ad4;\u6ad6\u0180Aan\u361c\u3620\u362drr;\u61d9r\u0100hr\u3626\u3628\xeb\u222e\u0100;o\u0a2b\u0a29war;\u692alig\u803b\xdf\u40df\u0be1\u3651\u365d\u3660\u12ce\u3673\u3679\0\u367e\u36c2\0\0\0\0\0\u36db\u3703\0\u3709\u376c\0\0\0\u3787\u0272\u3656\0\0\u365bget;\u6316;\u43c4r\xeb\u0e5f\u0180aey\u3666\u366b\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uc000\ud835\udd31\u0200eiko\u3686\u369d\u36b5\u36bc\u01f2\u368b\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369b\u43b8ym;\u43d1\u0100cn\u36a2\u36b2k\u0100as\u36a8\u36aeppro\xf8\u12c1im\xbb\u12acs\xf0\u129e\u0100as\u36ba\u36ae\xf0\u12c1rn\u803b\xfe\u40fe\u01ec\u031f\u36c6\u22e7es\u8180\xd7;bd\u36cf\u36d0\u36d8\u40d7\u0100;a\u190f\u36d5r;\u6a31;\u6a30\u0180eps\u36e1\u36e3\u3700\xe1\u2a4d\u0200;bcf\u0486\u36ec\u36f0\u36f4ot;\u6336ir;\u6af1\u0100;o\u36f9\u36fc\uc000\ud835\udd65rk;\u6ada\xe1\u3362rime;\u6034\u0180aip\u370f\u3712\u3764d\xe5\u1248\u0380adempst\u3721\u374d\u3740\u3751\u3757\u375c\u375fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65b5own\xbb\u1dbbeft\u0100;e\u2800\u373e\xf1\u092e;\u625cight\u0100;e\u32aa\u374b\xf1\u105aot;\u65ecinus;\u6a3alus;\u6a39b;\u69cdime;\u6a3bezium;\u63e2\u0180cht\u3772\u377d\u3781\u0100ry\u3777\u377b;\uc000\ud835\udcc9;\u4446cy;\u445brok;\u4167\u0100io\u378b\u378ex\xf4\u1777head\u0100lr\u3797\u37a0eftarro\xf7\u084fightarrow\xbb\u0f5d\u0900AHabcdfghlmoprstuw\u37d0\u37d3\u37d7\u37e4\u37f0\u37fc\u380e\u381c\u3823\u3834\u3851\u385d\u386b\u38a9\u38cc\u38d2\u38ea\u38f6r\xf2\u03edar;\u6963\u0100cr\u37dc\u37e2ute\u803b\xfa\u40fa\xf2\u1150r\u01e3\u37ea\0\u37edy;\u445eve;\u416d\u0100iy\u37f5\u37farc\u803b\xfb\u40fb;\u4443\u0180abh\u3803\u3806\u380br\xf2\u13adlac;\u4171a\xf2\u13c3\u0100ir\u3813\u3818sht;\u697e;\uc000\ud835\udd32rave\u803b\xf9\u40f9\u0161\u3827\u3831r\u0100lr\u382c\u382e\xbb\u0957\xbb\u1083lk;\u6580\u0100ct\u3839\u384d\u026f\u383f\0\0\u384arn\u0100;e\u3845\u3846\u631cr\xbb\u3846op;\u630fri;\u65f8\u0100al\u3856\u385acr;\u416b\u80bb\xa8\u0349\u0100gp\u3862\u3866on;\u4173f;\uc000\ud835\udd66\u0300adhlsu\u114b\u3878\u387d\u1372\u3891\u38a0own\xe1\u13b3arpoon\u0100lr\u3888\u388cef\xf4\u382digh\xf4\u382fi\u0180;hl\u3899\u389a\u389c\u43c5\xbb\u13faon\xbb\u389aparrows;\u61c8\u0180cit\u38b0\u38c4\u38c8\u026f\u38b6\0\0\u38c1rn\u0100;e\u38bc\u38bd\u631dr\xbb\u38bdop;\u630eng;\u416fri;\u65f9cr;\uc000\ud835\udcca\u0180dir\u38d9\u38dd\u38e2ot;\u62f0lde;\u4169i\u0100;f\u3730\u38e8\xbb\u1813\u0100am\u38ef\u38f2r\xf2\u38a8l\u803b\xfc\u40fcangle;\u69a7\u0780ABDacdeflnoprsz\u391c\u391f\u3929\u392d\u39b5\u39b8\u39bd\u39df\u39e4\u39e8\u39f3\u39f9\u39fd\u3a01\u3a20r\xf2\u03f7ar\u0100;v\u3926\u3927\u6ae8;\u6ae9as\xe8\u03e1\u0100nr\u3932\u3937grt;\u699c\u0380eknprst\u34e3\u3946\u394b\u3952\u395d\u3964\u3996app\xe1\u2415othin\xe7\u1e96\u0180hir\u34eb\u2ec8\u3959op\xf4\u2fb5\u0100;h\u13b7\u3962\xef\u318d\u0100iu\u3969\u396dgm\xe1\u33b3\u0100bp\u3972\u3984setneq\u0100;q\u397d\u3980\uc000\u228a\ufe00;\uc000\u2acb\ufe00setneq\u0100;q\u398f\u3992\uc000\u228b\ufe00;\uc000\u2acc\ufe00\u0100hr\u399b\u399fet\xe1\u369ciangle\u0100lr\u39aa\u39afeft\xbb\u0925ight\xbb\u1051y;\u4432ash\xbb\u1036\u0180elr\u39c4\u39d2\u39d7\u0180;be\u2dea\u39cb\u39cfar;\u62bbq;\u625alip;\u62ee\u0100bt\u39dc\u1468a\xf2\u1469r;\uc000\ud835\udd33tr\xe9\u39aesu\u0100bp\u39ef\u39f1\xbb\u0d1c\xbb\u0d59pf;\uc000\ud835\udd67ro\xf0\u0efbtr\xe9\u39b4\u0100cu\u3a06\u3a0br;\uc000\ud835\udccb\u0100bp\u3a10\u3a18n\u0100Ee\u3980\u3a16\xbb\u397en\u0100Ee\u3992\u3a1e\xbb\u3990igzag;\u699a\u0380cefoprs\u3a36\u3a3b\u3a56\u3a5b\u3a54\u3a61\u3a6airc;\u4175\u0100di\u3a40\u3a51\u0100bg\u3a45\u3a49ar;\u6a5fe\u0100;q\u15fa\u3a4f;\u6259erp;\u6118r;\uc000\ud835\udd34pf;\uc000\ud835\udd68\u0100;e\u1479\u3a66at\xe8\u1479cr;\uc000\ud835\udccc\u0ae3\u178e\u3a87\0\u3a8b\0\u3a90\u3a9b\0\0\u3a9d\u3aa8\u3aab\u3aaf\0\0\u3ac3\u3ace\0\u3ad8\u17dc\u17dftr\xe9\u17d1r;\uc000\ud835\udd35\u0100Aa\u3a94\u3a97r\xf2\u03c3r\xf2\u09f6;\u43be\u0100Aa\u3aa1\u3aa4r\xf2\u03b8r\xf2\u09eba\xf0\u2713is;\u62fb\u0180dpt\u17a4\u3ab5\u3abe\u0100fl\u3aba\u17a9;\uc000\ud835\udd69im\xe5\u17b2\u0100Aa\u3ac7\u3acar\xf2\u03cer\xf2\u0a01\u0100cq\u3ad2\u17b8r;\uc000\ud835\udccd\u0100pt\u17d6\u3adcr\xe9\u17d4\u0400acefiosu\u3af0\u3afd\u3b08\u3b0c\u3b11\u3b15\u3b1b\u3b21c\u0100uy\u3af6\u3afbte\u803b\xfd\u40fd;\u444f\u0100iy\u3b02\u3b06rc;\u4177;\u444bn\u803b\xa5\u40a5r;\uc000\ud835\udd36cy;\u4457pf;\uc000\ud835\udd6acr;\uc000\ud835\udcce\u0100cm\u3b26\u3b29y;\u444el\u803b\xff\u40ff\u0500acdefhiosw\u3b42\u3b48\u3b54\u3b58\u3b64\u3b69\u3b6d\u3b74\u3b7a\u3b80cute;\u417a\u0100ay\u3b4d\u3b52ron;\u417e;\u4437ot;\u417c\u0100et\u3b5d\u3b61tr\xe6\u155fa;\u43b6r;\uc000\ud835\udd37cy;\u4436grarr;\u61ddpf;\uc000\ud835\udd6bcr;\uc000\ud835\udccf\u0100jn\u3b85\u3b87;\u600dj;\u600c" - .split("") - .map((c) => c.charCodeAt(0))); - -// Generated using scripts/write-decode-map.ts -new Uint16Array( -// prettier-ignore -"\u0200aglq\t\x15\x18\x1b\u026d\x0f\0\0\x12p;\u4026os;\u4027t;\u403et;\u403cuot;\u4022" - .split("") - .map((c) => c.charCodeAt(0))); - -var CharCodes; -(function (CharCodes) { - CharCodes[CharCodes["NUM"] = 35] = "NUM"; - CharCodes[CharCodes["SEMI"] = 59] = "SEMI"; - CharCodes[CharCodes["EQUALS"] = 61] = "EQUALS"; - CharCodes[CharCodes["ZERO"] = 48] = "ZERO"; - CharCodes[CharCodes["NINE"] = 57] = "NINE"; - CharCodes[CharCodes["LOWER_A"] = 97] = "LOWER_A"; - CharCodes[CharCodes["LOWER_F"] = 102] = "LOWER_F"; - CharCodes[CharCodes["LOWER_X"] = 120] = "LOWER_X"; - CharCodes[CharCodes["LOWER_Z"] = 122] = "LOWER_Z"; - CharCodes[CharCodes["UPPER_A"] = 65] = "UPPER_A"; - CharCodes[CharCodes["UPPER_F"] = 70] = "UPPER_F"; - CharCodes[CharCodes["UPPER_Z"] = 90] = "UPPER_Z"; -})(CharCodes || (CharCodes = {})); -var BinTrieFlags; -(function (BinTrieFlags) { - BinTrieFlags[BinTrieFlags["VALUE_LENGTH"] = 49152] = "VALUE_LENGTH"; - BinTrieFlags[BinTrieFlags["BRANCH_LENGTH"] = 16256] = "BRANCH_LENGTH"; - BinTrieFlags[BinTrieFlags["JUMP_TABLE"] = 127] = "JUMP_TABLE"; -})(BinTrieFlags || (BinTrieFlags = {})); -var EntityDecoderState; -(function (EntityDecoderState) { - EntityDecoderState[EntityDecoderState["EntityStart"] = 0] = "EntityStart"; - EntityDecoderState[EntityDecoderState["NumericStart"] = 1] = "NumericStart"; - EntityDecoderState[EntityDecoderState["NumericDecimal"] = 2] = "NumericDecimal"; - EntityDecoderState[EntityDecoderState["NumericHex"] = 3] = "NumericHex"; - EntityDecoderState[EntityDecoderState["NamedEntity"] = 4] = "NamedEntity"; -})(EntityDecoderState || (EntityDecoderState = {})); -var DecodingMode; -(function (DecodingMode) { - /** Entities in text nodes that can end with any character. */ - DecodingMode[DecodingMode["Legacy"] = 0] = "Legacy"; - /** Only allow entities terminated with a semicolon. */ - DecodingMode[DecodingMode["Strict"] = 1] = "Strict"; - /** Entities in attributes have limitations on ending characters. */ - DecodingMode[DecodingMode["Attribute"] = 2] = "Attribute"; -})(DecodingMode || (DecodingMode = {})); -/** - * Determines the branch of the current node that is taken given the current - * character. This function is used to traverse the trie. - * - * @param decodeTree The trie. - * @param current The current node. - * @param nodeIdx The index right after the current node and its value. - * @param char The current character. - * @returns The index of the next node, or -1 if no branch is taken. - */ -function determineBranch(decodeTree, current, nodeIdx, char) { - const branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7; - const jumpOffset = current & BinTrieFlags.JUMP_TABLE; - // Case 1: Single branch encoded in jump offset - if (branchCount === 0) { - return jumpOffset !== 0 && char === jumpOffset ? nodeIdx : -1; - } - // Case 2: Multiple branches encoded in jump table - if (jumpOffset) { - const value = char - jumpOffset; - return value < 0 || value >= branchCount - ? -1 - : decodeTree[nodeIdx + value] - 1; - } - // Case 3: Multiple branches encoded in dictionary - // Binary search for the character. - let lo = nodeIdx; - let hi = lo + branchCount - 1; - while (lo <= hi) { - const mid = (lo + hi) >>> 1; - const midVal = decodeTree[mid]; - if (midVal < char) { - lo = mid + 1; - } - else if (midVal > char) { - hi = mid - 1; - } - else { - return decodeTree[mid + branchCount]; - } - } - return -1; -} - -/** All valid namespaces in HTML. */ -var NS; -(function (NS) { - NS["HTML"] = "http://www.w3.org/1999/xhtml"; - NS["MATHML"] = "http://www.w3.org/1998/Math/MathML"; - NS["SVG"] = "http://www.w3.org/2000/svg"; - NS["XLINK"] = "http://www.w3.org/1999/xlink"; - NS["XML"] = "http://www.w3.org/XML/1998/namespace"; - NS["XMLNS"] = "http://www.w3.org/2000/xmlns/"; -})(NS = NS || (NS = {})); -var ATTRS; -(function (ATTRS) { - ATTRS["TYPE"] = "type"; - ATTRS["ACTION"] = "action"; - ATTRS["ENCODING"] = "encoding"; - ATTRS["PROMPT"] = "prompt"; - ATTRS["NAME"] = "name"; - ATTRS["COLOR"] = "color"; - ATTRS["FACE"] = "face"; - ATTRS["SIZE"] = "size"; -})(ATTRS = ATTRS || (ATTRS = {})); -/** - * The mode of the document. - * - * @see {@link https://dom.spec.whatwg.org/#concept-document-limited-quirks} - */ -var DOCUMENT_MODE; -(function (DOCUMENT_MODE) { - DOCUMENT_MODE["NO_QUIRKS"] = "no-quirks"; - DOCUMENT_MODE["QUIRKS"] = "quirks"; - DOCUMENT_MODE["LIMITED_QUIRKS"] = "limited-quirks"; -})(DOCUMENT_MODE = DOCUMENT_MODE || (DOCUMENT_MODE = {})); -var TAG_NAMES; -(function (TAG_NAMES) { - TAG_NAMES["A"] = "a"; - TAG_NAMES["ADDRESS"] = "address"; - TAG_NAMES["ANNOTATION_XML"] = "annotation-xml"; - TAG_NAMES["APPLET"] = "applet"; - TAG_NAMES["AREA"] = "area"; - TAG_NAMES["ARTICLE"] = "article"; - TAG_NAMES["ASIDE"] = "aside"; - TAG_NAMES["B"] = "b"; - TAG_NAMES["BASE"] = "base"; - TAG_NAMES["BASEFONT"] = "basefont"; - TAG_NAMES["BGSOUND"] = "bgsound"; - TAG_NAMES["BIG"] = "big"; - TAG_NAMES["BLOCKQUOTE"] = "blockquote"; - TAG_NAMES["BODY"] = "body"; - TAG_NAMES["BR"] = "br"; - TAG_NAMES["BUTTON"] = "button"; - TAG_NAMES["CAPTION"] = "caption"; - TAG_NAMES["CENTER"] = "center"; - TAG_NAMES["CODE"] = "code"; - TAG_NAMES["COL"] = "col"; - TAG_NAMES["COLGROUP"] = "colgroup"; - TAG_NAMES["DD"] = "dd"; - TAG_NAMES["DESC"] = "desc"; - TAG_NAMES["DETAILS"] = "details"; - TAG_NAMES["DIALOG"] = "dialog"; - TAG_NAMES["DIR"] = "dir"; - TAG_NAMES["DIV"] = "div"; - TAG_NAMES["DL"] = "dl"; - TAG_NAMES["DT"] = "dt"; - TAG_NAMES["EM"] = "em"; - TAG_NAMES["EMBED"] = "embed"; - TAG_NAMES["FIELDSET"] = "fieldset"; - TAG_NAMES["FIGCAPTION"] = "figcaption"; - TAG_NAMES["FIGURE"] = "figure"; - TAG_NAMES["FONT"] = "font"; - TAG_NAMES["FOOTER"] = "footer"; - TAG_NAMES["FOREIGN_OBJECT"] = "foreignObject"; - TAG_NAMES["FORM"] = "form"; - TAG_NAMES["FRAME"] = "frame"; - TAG_NAMES["FRAMESET"] = "frameset"; - TAG_NAMES["H1"] = "h1"; - TAG_NAMES["H2"] = "h2"; - TAG_NAMES["H3"] = "h3"; - TAG_NAMES["H4"] = "h4"; - TAG_NAMES["H5"] = "h5"; - TAG_NAMES["H6"] = "h6"; - TAG_NAMES["HEAD"] = "head"; - TAG_NAMES["HEADER"] = "header"; - TAG_NAMES["HGROUP"] = "hgroup"; - TAG_NAMES["HR"] = "hr"; - TAG_NAMES["HTML"] = "html"; - TAG_NAMES["I"] = "i"; - TAG_NAMES["IMG"] = "img"; - TAG_NAMES["IMAGE"] = "image"; - TAG_NAMES["INPUT"] = "input"; - TAG_NAMES["IFRAME"] = "iframe"; - TAG_NAMES["KEYGEN"] = "keygen"; - TAG_NAMES["LABEL"] = "label"; - TAG_NAMES["LI"] = "li"; - TAG_NAMES["LINK"] = "link"; - TAG_NAMES["LISTING"] = "listing"; - TAG_NAMES["MAIN"] = "main"; - TAG_NAMES["MALIGNMARK"] = "malignmark"; - TAG_NAMES["MARQUEE"] = "marquee"; - TAG_NAMES["MATH"] = "math"; - TAG_NAMES["MENU"] = "menu"; - TAG_NAMES["META"] = "meta"; - TAG_NAMES["MGLYPH"] = "mglyph"; - TAG_NAMES["MI"] = "mi"; - TAG_NAMES["MO"] = "mo"; - TAG_NAMES["MN"] = "mn"; - TAG_NAMES["MS"] = "ms"; - TAG_NAMES["MTEXT"] = "mtext"; - TAG_NAMES["NAV"] = "nav"; - TAG_NAMES["NOBR"] = "nobr"; - TAG_NAMES["NOFRAMES"] = "noframes"; - TAG_NAMES["NOEMBED"] = "noembed"; - TAG_NAMES["NOSCRIPT"] = "noscript"; - TAG_NAMES["OBJECT"] = "object"; - TAG_NAMES["OL"] = "ol"; - TAG_NAMES["OPTGROUP"] = "optgroup"; - TAG_NAMES["OPTION"] = "option"; - TAG_NAMES["P"] = "p"; - TAG_NAMES["PARAM"] = "param"; - TAG_NAMES["PLAINTEXT"] = "plaintext"; - TAG_NAMES["PRE"] = "pre"; - TAG_NAMES["RB"] = "rb"; - TAG_NAMES["RP"] = "rp"; - TAG_NAMES["RT"] = "rt"; - TAG_NAMES["RTC"] = "rtc"; - TAG_NAMES["RUBY"] = "ruby"; - TAG_NAMES["S"] = "s"; - TAG_NAMES["SCRIPT"] = "script"; - TAG_NAMES["SECTION"] = "section"; - TAG_NAMES["SELECT"] = "select"; - TAG_NAMES["SOURCE"] = "source"; - TAG_NAMES["SMALL"] = "small"; - TAG_NAMES["SPAN"] = "span"; - TAG_NAMES["STRIKE"] = "strike"; - TAG_NAMES["STRONG"] = "strong"; - TAG_NAMES["STYLE"] = "style"; - TAG_NAMES["SUB"] = "sub"; - TAG_NAMES["SUMMARY"] = "summary"; - TAG_NAMES["SUP"] = "sup"; - TAG_NAMES["TABLE"] = "table"; - TAG_NAMES["TBODY"] = "tbody"; - TAG_NAMES["TEMPLATE"] = "template"; - TAG_NAMES["TEXTAREA"] = "textarea"; - TAG_NAMES["TFOOT"] = "tfoot"; - TAG_NAMES["TD"] = "td"; - TAG_NAMES["TH"] = "th"; - TAG_NAMES["THEAD"] = "thead"; - TAG_NAMES["TITLE"] = "title"; - TAG_NAMES["TR"] = "tr"; - TAG_NAMES["TRACK"] = "track"; - TAG_NAMES["TT"] = "tt"; - TAG_NAMES["U"] = "u"; - TAG_NAMES["UL"] = "ul"; - TAG_NAMES["SVG"] = "svg"; - TAG_NAMES["VAR"] = "var"; - TAG_NAMES["WBR"] = "wbr"; - TAG_NAMES["XMP"] = "xmp"; -})(TAG_NAMES = TAG_NAMES || (TAG_NAMES = {})); -/** - * Tag IDs are numeric IDs for known tag names. - * - * We use tag IDs to improve the performance of tag name comparisons. - */ -var TAG_ID; -(function (TAG_ID) { - TAG_ID[TAG_ID["UNKNOWN"] = 0] = "UNKNOWN"; - TAG_ID[TAG_ID["A"] = 1] = "A"; - TAG_ID[TAG_ID["ADDRESS"] = 2] = "ADDRESS"; - TAG_ID[TAG_ID["ANNOTATION_XML"] = 3] = "ANNOTATION_XML"; - TAG_ID[TAG_ID["APPLET"] = 4] = "APPLET"; - TAG_ID[TAG_ID["AREA"] = 5] = "AREA"; - TAG_ID[TAG_ID["ARTICLE"] = 6] = "ARTICLE"; - TAG_ID[TAG_ID["ASIDE"] = 7] = "ASIDE"; - TAG_ID[TAG_ID["B"] = 8] = "B"; - TAG_ID[TAG_ID["BASE"] = 9] = "BASE"; - TAG_ID[TAG_ID["BASEFONT"] = 10] = "BASEFONT"; - TAG_ID[TAG_ID["BGSOUND"] = 11] = "BGSOUND"; - TAG_ID[TAG_ID["BIG"] = 12] = "BIG"; - TAG_ID[TAG_ID["BLOCKQUOTE"] = 13] = "BLOCKQUOTE"; - TAG_ID[TAG_ID["BODY"] = 14] = "BODY"; - TAG_ID[TAG_ID["BR"] = 15] = "BR"; - TAG_ID[TAG_ID["BUTTON"] = 16] = "BUTTON"; - TAG_ID[TAG_ID["CAPTION"] = 17] = "CAPTION"; - TAG_ID[TAG_ID["CENTER"] = 18] = "CENTER"; - TAG_ID[TAG_ID["CODE"] = 19] = "CODE"; - TAG_ID[TAG_ID["COL"] = 20] = "COL"; - TAG_ID[TAG_ID["COLGROUP"] = 21] = "COLGROUP"; - TAG_ID[TAG_ID["DD"] = 22] = "DD"; - TAG_ID[TAG_ID["DESC"] = 23] = "DESC"; - TAG_ID[TAG_ID["DETAILS"] = 24] = "DETAILS"; - TAG_ID[TAG_ID["DIALOG"] = 25] = "DIALOG"; - TAG_ID[TAG_ID["DIR"] = 26] = "DIR"; - TAG_ID[TAG_ID["DIV"] = 27] = "DIV"; - TAG_ID[TAG_ID["DL"] = 28] = "DL"; - TAG_ID[TAG_ID["DT"] = 29] = "DT"; - TAG_ID[TAG_ID["EM"] = 30] = "EM"; - TAG_ID[TAG_ID["EMBED"] = 31] = "EMBED"; - TAG_ID[TAG_ID["FIELDSET"] = 32] = "FIELDSET"; - TAG_ID[TAG_ID["FIGCAPTION"] = 33] = "FIGCAPTION"; - TAG_ID[TAG_ID["FIGURE"] = 34] = "FIGURE"; - TAG_ID[TAG_ID["FONT"] = 35] = "FONT"; - TAG_ID[TAG_ID["FOOTER"] = 36] = "FOOTER"; - TAG_ID[TAG_ID["FOREIGN_OBJECT"] = 37] = "FOREIGN_OBJECT"; - TAG_ID[TAG_ID["FORM"] = 38] = "FORM"; - TAG_ID[TAG_ID["FRAME"] = 39] = "FRAME"; - TAG_ID[TAG_ID["FRAMESET"] = 40] = "FRAMESET"; - TAG_ID[TAG_ID["H1"] = 41] = "H1"; - TAG_ID[TAG_ID["H2"] = 42] = "H2"; - TAG_ID[TAG_ID["H3"] = 43] = "H3"; - TAG_ID[TAG_ID["H4"] = 44] = "H4"; - TAG_ID[TAG_ID["H5"] = 45] = "H5"; - TAG_ID[TAG_ID["H6"] = 46] = "H6"; - TAG_ID[TAG_ID["HEAD"] = 47] = "HEAD"; - TAG_ID[TAG_ID["HEADER"] = 48] = "HEADER"; - TAG_ID[TAG_ID["HGROUP"] = 49] = "HGROUP"; - TAG_ID[TAG_ID["HR"] = 50] = "HR"; - TAG_ID[TAG_ID["HTML"] = 51] = "HTML"; - TAG_ID[TAG_ID["I"] = 52] = "I"; - TAG_ID[TAG_ID["IMG"] = 53] = "IMG"; - TAG_ID[TAG_ID["IMAGE"] = 54] = "IMAGE"; - TAG_ID[TAG_ID["INPUT"] = 55] = "INPUT"; - TAG_ID[TAG_ID["IFRAME"] = 56] = "IFRAME"; - TAG_ID[TAG_ID["KEYGEN"] = 57] = "KEYGEN"; - TAG_ID[TAG_ID["LABEL"] = 58] = "LABEL"; - TAG_ID[TAG_ID["LI"] = 59] = "LI"; - TAG_ID[TAG_ID["LINK"] = 60] = "LINK"; - TAG_ID[TAG_ID["LISTING"] = 61] = "LISTING"; - TAG_ID[TAG_ID["MAIN"] = 62] = "MAIN"; - TAG_ID[TAG_ID["MALIGNMARK"] = 63] = "MALIGNMARK"; - TAG_ID[TAG_ID["MARQUEE"] = 64] = "MARQUEE"; - TAG_ID[TAG_ID["MATH"] = 65] = "MATH"; - TAG_ID[TAG_ID["MENU"] = 66] = "MENU"; - TAG_ID[TAG_ID["META"] = 67] = "META"; - TAG_ID[TAG_ID["MGLYPH"] = 68] = "MGLYPH"; - TAG_ID[TAG_ID["MI"] = 69] = "MI"; - TAG_ID[TAG_ID["MO"] = 70] = "MO"; - TAG_ID[TAG_ID["MN"] = 71] = "MN"; - TAG_ID[TAG_ID["MS"] = 72] = "MS"; - TAG_ID[TAG_ID["MTEXT"] = 73] = "MTEXT"; - TAG_ID[TAG_ID["NAV"] = 74] = "NAV"; - TAG_ID[TAG_ID["NOBR"] = 75] = "NOBR"; - TAG_ID[TAG_ID["NOFRAMES"] = 76] = "NOFRAMES"; - TAG_ID[TAG_ID["NOEMBED"] = 77] = "NOEMBED"; - TAG_ID[TAG_ID["NOSCRIPT"] = 78] = "NOSCRIPT"; - TAG_ID[TAG_ID["OBJECT"] = 79] = "OBJECT"; - TAG_ID[TAG_ID["OL"] = 80] = "OL"; - TAG_ID[TAG_ID["OPTGROUP"] = 81] = "OPTGROUP"; - TAG_ID[TAG_ID["OPTION"] = 82] = "OPTION"; - TAG_ID[TAG_ID["P"] = 83] = "P"; - TAG_ID[TAG_ID["PARAM"] = 84] = "PARAM"; - TAG_ID[TAG_ID["PLAINTEXT"] = 85] = "PLAINTEXT"; - TAG_ID[TAG_ID["PRE"] = 86] = "PRE"; - TAG_ID[TAG_ID["RB"] = 87] = "RB"; - TAG_ID[TAG_ID["RP"] = 88] = "RP"; - TAG_ID[TAG_ID["RT"] = 89] = "RT"; - TAG_ID[TAG_ID["RTC"] = 90] = "RTC"; - TAG_ID[TAG_ID["RUBY"] = 91] = "RUBY"; - TAG_ID[TAG_ID["S"] = 92] = "S"; - TAG_ID[TAG_ID["SCRIPT"] = 93] = "SCRIPT"; - TAG_ID[TAG_ID["SECTION"] = 94] = "SECTION"; - TAG_ID[TAG_ID["SELECT"] = 95] = "SELECT"; - TAG_ID[TAG_ID["SOURCE"] = 96] = "SOURCE"; - TAG_ID[TAG_ID["SMALL"] = 97] = "SMALL"; - TAG_ID[TAG_ID["SPAN"] = 98] = "SPAN"; - TAG_ID[TAG_ID["STRIKE"] = 99] = "STRIKE"; - TAG_ID[TAG_ID["STRONG"] = 100] = "STRONG"; - TAG_ID[TAG_ID["STYLE"] = 101] = "STYLE"; - TAG_ID[TAG_ID["SUB"] = 102] = "SUB"; - TAG_ID[TAG_ID["SUMMARY"] = 103] = "SUMMARY"; - TAG_ID[TAG_ID["SUP"] = 104] = "SUP"; - TAG_ID[TAG_ID["TABLE"] = 105] = "TABLE"; - TAG_ID[TAG_ID["TBODY"] = 106] = "TBODY"; - TAG_ID[TAG_ID["TEMPLATE"] = 107] = "TEMPLATE"; - TAG_ID[TAG_ID["TEXTAREA"] = 108] = "TEXTAREA"; - TAG_ID[TAG_ID["TFOOT"] = 109] = "TFOOT"; - TAG_ID[TAG_ID["TD"] = 110] = "TD"; - TAG_ID[TAG_ID["TH"] = 111] = "TH"; - TAG_ID[TAG_ID["THEAD"] = 112] = "THEAD"; - TAG_ID[TAG_ID["TITLE"] = 113] = "TITLE"; - TAG_ID[TAG_ID["TR"] = 114] = "TR"; - TAG_ID[TAG_ID["TRACK"] = 115] = "TRACK"; - TAG_ID[TAG_ID["TT"] = 116] = "TT"; - TAG_ID[TAG_ID["U"] = 117] = "U"; - TAG_ID[TAG_ID["UL"] = 118] = "UL"; - TAG_ID[TAG_ID["SVG"] = 119] = "SVG"; - TAG_ID[TAG_ID["VAR"] = 120] = "VAR"; - TAG_ID[TAG_ID["WBR"] = 121] = "WBR"; - TAG_ID[TAG_ID["XMP"] = 122] = "XMP"; -})(TAG_ID = TAG_ID || (TAG_ID = {})); -const TAG_NAME_TO_ID = new Map([ - [TAG_NAMES.A, TAG_ID.A], - [TAG_NAMES.ADDRESS, TAG_ID.ADDRESS], - [TAG_NAMES.ANNOTATION_XML, TAG_ID.ANNOTATION_XML], - [TAG_NAMES.APPLET, TAG_ID.APPLET], - [TAG_NAMES.AREA, TAG_ID.AREA], - [TAG_NAMES.ARTICLE, TAG_ID.ARTICLE], - [TAG_NAMES.ASIDE, TAG_ID.ASIDE], - [TAG_NAMES.B, TAG_ID.B], - [TAG_NAMES.BASE, TAG_ID.BASE], - [TAG_NAMES.BASEFONT, TAG_ID.BASEFONT], - [TAG_NAMES.BGSOUND, TAG_ID.BGSOUND], - [TAG_NAMES.BIG, TAG_ID.BIG], - [TAG_NAMES.BLOCKQUOTE, TAG_ID.BLOCKQUOTE], - [TAG_NAMES.BODY, TAG_ID.BODY], - [TAG_NAMES.BR, TAG_ID.BR], - [TAG_NAMES.BUTTON, TAG_ID.BUTTON], - [TAG_NAMES.CAPTION, TAG_ID.CAPTION], - [TAG_NAMES.CENTER, TAG_ID.CENTER], - [TAG_NAMES.CODE, TAG_ID.CODE], - [TAG_NAMES.COL, TAG_ID.COL], - [TAG_NAMES.COLGROUP, TAG_ID.COLGROUP], - [TAG_NAMES.DD, TAG_ID.DD], - [TAG_NAMES.DESC, TAG_ID.DESC], - [TAG_NAMES.DETAILS, TAG_ID.DETAILS], - [TAG_NAMES.DIALOG, TAG_ID.DIALOG], - [TAG_NAMES.DIR, TAG_ID.DIR], - [TAG_NAMES.DIV, TAG_ID.DIV], - [TAG_NAMES.DL, TAG_ID.DL], - [TAG_NAMES.DT, TAG_ID.DT], - [TAG_NAMES.EM, TAG_ID.EM], - [TAG_NAMES.EMBED, TAG_ID.EMBED], - [TAG_NAMES.FIELDSET, TAG_ID.FIELDSET], - [TAG_NAMES.FIGCAPTION, TAG_ID.FIGCAPTION], - [TAG_NAMES.FIGURE, TAG_ID.FIGURE], - [TAG_NAMES.FONT, TAG_ID.FONT], - [TAG_NAMES.FOOTER, TAG_ID.FOOTER], - [TAG_NAMES.FOREIGN_OBJECT, TAG_ID.FOREIGN_OBJECT], - [TAG_NAMES.FORM, TAG_ID.FORM], - [TAG_NAMES.FRAME, TAG_ID.FRAME], - [TAG_NAMES.FRAMESET, TAG_ID.FRAMESET], - [TAG_NAMES.H1, TAG_ID.H1], - [TAG_NAMES.H2, TAG_ID.H2], - [TAG_NAMES.H3, TAG_ID.H3], - [TAG_NAMES.H4, TAG_ID.H4], - [TAG_NAMES.H5, TAG_ID.H5], - [TAG_NAMES.H6, TAG_ID.H6], - [TAG_NAMES.HEAD, TAG_ID.HEAD], - [TAG_NAMES.HEADER, TAG_ID.HEADER], - [TAG_NAMES.HGROUP, TAG_ID.HGROUP], - [TAG_NAMES.HR, TAG_ID.HR], - [TAG_NAMES.HTML, TAG_ID.HTML], - [TAG_NAMES.I, TAG_ID.I], - [TAG_NAMES.IMG, TAG_ID.IMG], - [TAG_NAMES.IMAGE, TAG_ID.IMAGE], - [TAG_NAMES.INPUT, TAG_ID.INPUT], - [TAG_NAMES.IFRAME, TAG_ID.IFRAME], - [TAG_NAMES.KEYGEN, TAG_ID.KEYGEN], - [TAG_NAMES.LABEL, TAG_ID.LABEL], - [TAG_NAMES.LI, TAG_ID.LI], - [TAG_NAMES.LINK, TAG_ID.LINK], - [TAG_NAMES.LISTING, TAG_ID.LISTING], - [TAG_NAMES.MAIN, TAG_ID.MAIN], - [TAG_NAMES.MALIGNMARK, TAG_ID.MALIGNMARK], - [TAG_NAMES.MARQUEE, TAG_ID.MARQUEE], - [TAG_NAMES.MATH, TAG_ID.MATH], - [TAG_NAMES.MENU, TAG_ID.MENU], - [TAG_NAMES.META, TAG_ID.META], - [TAG_NAMES.MGLYPH, TAG_ID.MGLYPH], - [TAG_NAMES.MI, TAG_ID.MI], - [TAG_NAMES.MO, TAG_ID.MO], - [TAG_NAMES.MN, TAG_ID.MN], - [TAG_NAMES.MS, TAG_ID.MS], - [TAG_NAMES.MTEXT, TAG_ID.MTEXT], - [TAG_NAMES.NAV, TAG_ID.NAV], - [TAG_NAMES.NOBR, TAG_ID.NOBR], - [TAG_NAMES.NOFRAMES, TAG_ID.NOFRAMES], - [TAG_NAMES.NOEMBED, TAG_ID.NOEMBED], - [TAG_NAMES.NOSCRIPT, TAG_ID.NOSCRIPT], - [TAG_NAMES.OBJECT, TAG_ID.OBJECT], - [TAG_NAMES.OL, TAG_ID.OL], - [TAG_NAMES.OPTGROUP, TAG_ID.OPTGROUP], - [TAG_NAMES.OPTION, TAG_ID.OPTION], - [TAG_NAMES.P, TAG_ID.P], - [TAG_NAMES.PARAM, TAG_ID.PARAM], - [TAG_NAMES.PLAINTEXT, TAG_ID.PLAINTEXT], - [TAG_NAMES.PRE, TAG_ID.PRE], - [TAG_NAMES.RB, TAG_ID.RB], - [TAG_NAMES.RP, TAG_ID.RP], - [TAG_NAMES.RT, TAG_ID.RT], - [TAG_NAMES.RTC, TAG_ID.RTC], - [TAG_NAMES.RUBY, TAG_ID.RUBY], - [TAG_NAMES.S, TAG_ID.S], - [TAG_NAMES.SCRIPT, TAG_ID.SCRIPT], - [TAG_NAMES.SECTION, TAG_ID.SECTION], - [TAG_NAMES.SELECT, TAG_ID.SELECT], - [TAG_NAMES.SOURCE, TAG_ID.SOURCE], - [TAG_NAMES.SMALL, TAG_ID.SMALL], - [TAG_NAMES.SPAN, TAG_ID.SPAN], - [TAG_NAMES.STRIKE, TAG_ID.STRIKE], - [TAG_NAMES.STRONG, TAG_ID.STRONG], - [TAG_NAMES.STYLE, TAG_ID.STYLE], - [TAG_NAMES.SUB, TAG_ID.SUB], - [TAG_NAMES.SUMMARY, TAG_ID.SUMMARY], - [TAG_NAMES.SUP, TAG_ID.SUP], - [TAG_NAMES.TABLE, TAG_ID.TABLE], - [TAG_NAMES.TBODY, TAG_ID.TBODY], - [TAG_NAMES.TEMPLATE, TAG_ID.TEMPLATE], - [TAG_NAMES.TEXTAREA, TAG_ID.TEXTAREA], - [TAG_NAMES.TFOOT, TAG_ID.TFOOT], - [TAG_NAMES.TD, TAG_ID.TD], - [TAG_NAMES.TH, TAG_ID.TH], - [TAG_NAMES.THEAD, TAG_ID.THEAD], - [TAG_NAMES.TITLE, TAG_ID.TITLE], - [TAG_NAMES.TR, TAG_ID.TR], - [TAG_NAMES.TRACK, TAG_ID.TRACK], - [TAG_NAMES.TT, TAG_ID.TT], - [TAG_NAMES.U, TAG_ID.U], - [TAG_NAMES.UL, TAG_ID.UL], - [TAG_NAMES.SVG, TAG_ID.SVG], - [TAG_NAMES.VAR, TAG_ID.VAR], - [TAG_NAMES.WBR, TAG_ID.WBR], - [TAG_NAMES.XMP, TAG_ID.XMP], -]); -function getTagID(tagName) { - var _a; - return (_a = TAG_NAME_TO_ID.get(tagName)) !== null && _a !== void 0 ? _a : TAG_ID.UNKNOWN; -} -const $ = TAG_ID; -const SPECIAL_ELEMENTS = { - [NS.HTML]: new Set([ - $.ADDRESS, - $.APPLET, - $.AREA, - $.ARTICLE, - $.ASIDE, - $.BASE, - $.BASEFONT, - $.BGSOUND, - $.BLOCKQUOTE, - $.BODY, - $.BR, - $.BUTTON, - $.CAPTION, - $.CENTER, - $.COL, - $.COLGROUP, - $.DD, - $.DETAILS, - $.DIR, - $.DIV, - $.DL, - $.DT, - $.EMBED, - $.FIELDSET, - $.FIGCAPTION, - $.FIGURE, - $.FOOTER, - $.FORM, - $.FRAME, - $.FRAMESET, - $.H1, - $.H2, - $.H3, - $.H4, - $.H5, - $.H6, - $.HEAD, - $.HEADER, - $.HGROUP, - $.HR, - $.HTML, - $.IFRAME, - $.IMG, - $.INPUT, - $.LI, - $.LINK, - $.LISTING, - $.MAIN, - $.MARQUEE, - $.MENU, - $.META, - $.NAV, - $.NOEMBED, - $.NOFRAMES, - $.NOSCRIPT, - $.OBJECT, - $.OL, - $.P, - $.PARAM, - $.PLAINTEXT, - $.PRE, - $.SCRIPT, - $.SECTION, - $.SELECT, - $.SOURCE, - $.STYLE, - $.SUMMARY, - $.TABLE, - $.TBODY, - $.TD, - $.TEMPLATE, - $.TEXTAREA, - $.TFOOT, - $.TH, - $.THEAD, - $.TITLE, - $.TR, - $.TRACK, - $.UL, - $.WBR, - $.XMP, - ]), - [NS.MATHML]: new Set([$.MI, $.MO, $.MN, $.MS, $.MTEXT, $.ANNOTATION_XML]), - [NS.SVG]: new Set([$.TITLE, $.FOREIGN_OBJECT, $.DESC]), - [NS.XLINK]: new Set(), - [NS.XML]: new Set(), - [NS.XMLNS]: new Set(), -}; -function isNumberedHeader(tn) { - return tn === $.H1 || tn === $.H2 || tn === $.H3 || tn === $.H4 || tn === $.H5 || tn === $.H6; -} - -//C1 Unicode control character reference replacements -const C1_CONTROLS_REFERENCE_REPLACEMENTS = new Map([ - [0x80, 8364], - [0x82, 8218], - [0x83, 402], - [0x84, 8222], - [0x85, 8230], - [0x86, 8224], - [0x87, 8225], - [0x88, 710], - [0x89, 8240], - [0x8a, 352], - [0x8b, 8249], - [0x8c, 338], - [0x8e, 381], - [0x91, 8216], - [0x92, 8217], - [0x93, 8220], - [0x94, 8221], - [0x95, 8226], - [0x96, 8211], - [0x97, 8212], - [0x98, 732], - [0x99, 8482], - [0x9a, 353], - [0x9b, 8250], - [0x9c, 339], - [0x9e, 382], - [0x9f, 376], -]); -//States -var State; -(function (State) { - State[State["DATA"] = 0] = "DATA"; - State[State["RCDATA"] = 1] = "RCDATA"; - State[State["RAWTEXT"] = 2] = "RAWTEXT"; - State[State["SCRIPT_DATA"] = 3] = "SCRIPT_DATA"; - State[State["PLAINTEXT"] = 4] = "PLAINTEXT"; - State[State["TAG_OPEN"] = 5] = "TAG_OPEN"; - State[State["END_TAG_OPEN"] = 6] = "END_TAG_OPEN"; - State[State["TAG_NAME"] = 7] = "TAG_NAME"; - State[State["RCDATA_LESS_THAN_SIGN"] = 8] = "RCDATA_LESS_THAN_SIGN"; - State[State["RCDATA_END_TAG_OPEN"] = 9] = "RCDATA_END_TAG_OPEN"; - State[State["RCDATA_END_TAG_NAME"] = 10] = "RCDATA_END_TAG_NAME"; - State[State["RAWTEXT_LESS_THAN_SIGN"] = 11] = "RAWTEXT_LESS_THAN_SIGN"; - State[State["RAWTEXT_END_TAG_OPEN"] = 12] = "RAWTEXT_END_TAG_OPEN"; - State[State["RAWTEXT_END_TAG_NAME"] = 13] = "RAWTEXT_END_TAG_NAME"; - State[State["SCRIPT_DATA_LESS_THAN_SIGN"] = 14] = "SCRIPT_DATA_LESS_THAN_SIGN"; - State[State["SCRIPT_DATA_END_TAG_OPEN"] = 15] = "SCRIPT_DATA_END_TAG_OPEN"; - State[State["SCRIPT_DATA_END_TAG_NAME"] = 16] = "SCRIPT_DATA_END_TAG_NAME"; - State[State["SCRIPT_DATA_ESCAPE_START"] = 17] = "SCRIPT_DATA_ESCAPE_START"; - State[State["SCRIPT_DATA_ESCAPE_START_DASH"] = 18] = "SCRIPT_DATA_ESCAPE_START_DASH"; - State[State["SCRIPT_DATA_ESCAPED"] = 19] = "SCRIPT_DATA_ESCAPED"; - State[State["SCRIPT_DATA_ESCAPED_DASH"] = 20] = "SCRIPT_DATA_ESCAPED_DASH"; - State[State["SCRIPT_DATA_ESCAPED_DASH_DASH"] = 21] = "SCRIPT_DATA_ESCAPED_DASH_DASH"; - State[State["SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN"] = 22] = "SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN"; - State[State["SCRIPT_DATA_ESCAPED_END_TAG_OPEN"] = 23] = "SCRIPT_DATA_ESCAPED_END_TAG_OPEN"; - State[State["SCRIPT_DATA_ESCAPED_END_TAG_NAME"] = 24] = "SCRIPT_DATA_ESCAPED_END_TAG_NAME"; - State[State["SCRIPT_DATA_DOUBLE_ESCAPE_START"] = 25] = "SCRIPT_DATA_DOUBLE_ESCAPE_START"; - State[State["SCRIPT_DATA_DOUBLE_ESCAPED"] = 26] = "SCRIPT_DATA_DOUBLE_ESCAPED"; - State[State["SCRIPT_DATA_DOUBLE_ESCAPED_DASH"] = 27] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH"; - State[State["SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH"] = 28] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH"; - State[State["SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN"] = 29] = "SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN"; - State[State["SCRIPT_DATA_DOUBLE_ESCAPE_END"] = 30] = "SCRIPT_DATA_DOUBLE_ESCAPE_END"; - State[State["BEFORE_ATTRIBUTE_NAME"] = 31] = "BEFORE_ATTRIBUTE_NAME"; - State[State["ATTRIBUTE_NAME"] = 32] = "ATTRIBUTE_NAME"; - State[State["AFTER_ATTRIBUTE_NAME"] = 33] = "AFTER_ATTRIBUTE_NAME"; - State[State["BEFORE_ATTRIBUTE_VALUE"] = 34] = "BEFORE_ATTRIBUTE_VALUE"; - State[State["ATTRIBUTE_VALUE_DOUBLE_QUOTED"] = 35] = "ATTRIBUTE_VALUE_DOUBLE_QUOTED"; - State[State["ATTRIBUTE_VALUE_SINGLE_QUOTED"] = 36] = "ATTRIBUTE_VALUE_SINGLE_QUOTED"; - State[State["ATTRIBUTE_VALUE_UNQUOTED"] = 37] = "ATTRIBUTE_VALUE_UNQUOTED"; - State[State["AFTER_ATTRIBUTE_VALUE_QUOTED"] = 38] = "AFTER_ATTRIBUTE_VALUE_QUOTED"; - State[State["SELF_CLOSING_START_TAG"] = 39] = "SELF_CLOSING_START_TAG"; - State[State["BOGUS_COMMENT"] = 40] = "BOGUS_COMMENT"; - State[State["MARKUP_DECLARATION_OPEN"] = 41] = "MARKUP_DECLARATION_OPEN"; - State[State["COMMENT_START"] = 42] = "COMMENT_START"; - State[State["COMMENT_START_DASH"] = 43] = "COMMENT_START_DASH"; - State[State["COMMENT"] = 44] = "COMMENT"; - State[State["COMMENT_LESS_THAN_SIGN"] = 45] = "COMMENT_LESS_THAN_SIGN"; - State[State["COMMENT_LESS_THAN_SIGN_BANG"] = 46] = "COMMENT_LESS_THAN_SIGN_BANG"; - State[State["COMMENT_LESS_THAN_SIGN_BANG_DASH"] = 47] = "COMMENT_LESS_THAN_SIGN_BANG_DASH"; - State[State["COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH"] = 48] = "COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH"; - State[State["COMMENT_END_DASH"] = 49] = "COMMENT_END_DASH"; - State[State["COMMENT_END"] = 50] = "COMMENT_END"; - State[State["COMMENT_END_BANG"] = 51] = "COMMENT_END_BANG"; - State[State["DOCTYPE"] = 52] = "DOCTYPE"; - State[State["BEFORE_DOCTYPE_NAME"] = 53] = "BEFORE_DOCTYPE_NAME"; - State[State["DOCTYPE_NAME"] = 54] = "DOCTYPE_NAME"; - State[State["AFTER_DOCTYPE_NAME"] = 55] = "AFTER_DOCTYPE_NAME"; - State[State["AFTER_DOCTYPE_PUBLIC_KEYWORD"] = 56] = "AFTER_DOCTYPE_PUBLIC_KEYWORD"; - State[State["BEFORE_DOCTYPE_PUBLIC_IDENTIFIER"] = 57] = "BEFORE_DOCTYPE_PUBLIC_IDENTIFIER"; - State[State["DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED"] = 58] = "DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED"; - State[State["DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED"] = 59] = "DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED"; - State[State["AFTER_DOCTYPE_PUBLIC_IDENTIFIER"] = 60] = "AFTER_DOCTYPE_PUBLIC_IDENTIFIER"; - State[State["BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS"] = 61] = "BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS"; - State[State["AFTER_DOCTYPE_SYSTEM_KEYWORD"] = 62] = "AFTER_DOCTYPE_SYSTEM_KEYWORD"; - State[State["BEFORE_DOCTYPE_SYSTEM_IDENTIFIER"] = 63] = "BEFORE_DOCTYPE_SYSTEM_IDENTIFIER"; - State[State["DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED"] = 64] = "DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED"; - State[State["DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED"] = 65] = "DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED"; - State[State["AFTER_DOCTYPE_SYSTEM_IDENTIFIER"] = 66] = "AFTER_DOCTYPE_SYSTEM_IDENTIFIER"; - State[State["BOGUS_DOCTYPE"] = 67] = "BOGUS_DOCTYPE"; - State[State["CDATA_SECTION"] = 68] = "CDATA_SECTION"; - State[State["CDATA_SECTION_BRACKET"] = 69] = "CDATA_SECTION_BRACKET"; - State[State["CDATA_SECTION_END"] = 70] = "CDATA_SECTION_END"; - State[State["CHARACTER_REFERENCE"] = 71] = "CHARACTER_REFERENCE"; - State[State["NAMED_CHARACTER_REFERENCE"] = 72] = "NAMED_CHARACTER_REFERENCE"; - State[State["AMBIGUOUS_AMPERSAND"] = 73] = "AMBIGUOUS_AMPERSAND"; - State[State["NUMERIC_CHARACTER_REFERENCE"] = 74] = "NUMERIC_CHARACTER_REFERENCE"; - State[State["HEXADEMICAL_CHARACTER_REFERENCE_START"] = 75] = "HEXADEMICAL_CHARACTER_REFERENCE_START"; - State[State["HEXADEMICAL_CHARACTER_REFERENCE"] = 76] = "HEXADEMICAL_CHARACTER_REFERENCE"; - State[State["DECIMAL_CHARACTER_REFERENCE"] = 77] = "DECIMAL_CHARACTER_REFERENCE"; - State[State["NUMERIC_CHARACTER_REFERENCE_END"] = 78] = "NUMERIC_CHARACTER_REFERENCE_END"; -})(State || (State = {})); -//Tokenizer initial states for different modes -const TokenizerMode = { - DATA: State.DATA, - RCDATA: State.RCDATA, - RAWTEXT: State.RAWTEXT, - SCRIPT_DATA: State.SCRIPT_DATA, - PLAINTEXT: State.PLAINTEXT, - CDATA_SECTION: State.CDATA_SECTION, -}; -//Utils -//OPTIMIZATION: these utility functions should not be moved out of this module. V8 Crankshaft will not inline -//this functions if they will be situated in another module due to context switch. -//Always perform inlining check before modifying this functions ('node --trace-inlining'). -function isAsciiDigit(cp) { - return cp >= CODE_POINTS.DIGIT_0 && cp <= CODE_POINTS.DIGIT_9; -} -function isAsciiUpper(cp) { - return cp >= CODE_POINTS.LATIN_CAPITAL_A && cp <= CODE_POINTS.LATIN_CAPITAL_Z; -} -function isAsciiLower(cp) { - return cp >= CODE_POINTS.LATIN_SMALL_A && cp <= CODE_POINTS.LATIN_SMALL_Z; -} -function isAsciiLetter(cp) { - return isAsciiLower(cp) || isAsciiUpper(cp); -} -function isAsciiAlphaNumeric(cp) { - return isAsciiLetter(cp) || isAsciiDigit(cp); -} -function isAsciiUpperHexDigit(cp) { - return cp >= CODE_POINTS.LATIN_CAPITAL_A && cp <= CODE_POINTS.LATIN_CAPITAL_F; -} -function isAsciiLowerHexDigit(cp) { - return cp >= CODE_POINTS.LATIN_SMALL_A && cp <= CODE_POINTS.LATIN_SMALL_F; -} -function isAsciiHexDigit(cp) { - return isAsciiDigit(cp) || isAsciiUpperHexDigit(cp) || isAsciiLowerHexDigit(cp); -} -function toAsciiLower(cp) { - return cp + 32; -} -function isWhitespace(cp) { - return cp === CODE_POINTS.SPACE || cp === CODE_POINTS.LINE_FEED || cp === CODE_POINTS.TABULATION || cp === CODE_POINTS.FORM_FEED; -} -function isEntityInAttributeInvalidEnd(nextCp) { - return nextCp === CODE_POINTS.EQUALS_SIGN || isAsciiAlphaNumeric(nextCp); -} -function isScriptDataDoubleEscapeSequenceEnd(cp) { - return isWhitespace(cp) || cp === CODE_POINTS.SOLIDUS || cp === CODE_POINTS.GREATER_THAN_SIGN; -} -//Tokenizer -class Tokenizer { - constructor(options, handler) { - this.options = options; - this.handler = handler; - this.paused = false; - /** Ensures that the parsing loop isn't run multiple times at once. */ - this.inLoop = false; - /** - * Indicates that the current adjusted node exists, is not an element in the HTML namespace, - * and that it is not an integration point for either MathML or HTML. - * - * @see {@link https://html.spec.whatwg.org/multipage/parsing.html#tree-construction} - */ - this.inForeignNode = false; - this.lastStartTagName = ''; - this.active = false; - this.state = State.DATA; - this.returnState = State.DATA; - this.charRefCode = -1; - this.consumedAfterSnapshot = -1; - this.currentCharacterToken = null; - this.currentToken = null; - this.currentAttr = { name: '', value: '' }; - this.preprocessor = new Preprocessor(handler); - this.currentLocation = this.getCurrentLocation(-1); - } - //Errors - _err(code) { - var _a, _b; - (_b = (_a = this.handler).onParseError) === null || _b === void 0 ? void 0 : _b.call(_a, this.preprocessor.getError(code)); - } - // NOTE: `offset` may never run across line boundaries. - getCurrentLocation(offset) { - if (!this.options.sourceCodeLocationInfo) { - return null; - } - return { - startLine: this.preprocessor.line, - startCol: this.preprocessor.col - offset, - startOffset: this.preprocessor.offset - offset, - endLine: -1, - endCol: -1, - endOffset: -1, - }; - } - _runParsingLoop() { - if (this.inLoop) - return; - this.inLoop = true; - while (this.active && !this.paused) { - this.consumedAfterSnapshot = 0; - const cp = this._consume(); - if (!this._ensureHibernation()) { - this._callState(cp); - } - } - this.inLoop = false; - } - //API - pause() { - this.paused = true; - } - resume(writeCallback) { - if (!this.paused) { - throw new Error('Parser was already resumed'); - } - this.paused = false; - // Necessary for synchronous resume. - if (this.inLoop) - return; - this._runParsingLoop(); - if (!this.paused) { - writeCallback === null || writeCallback === void 0 ? void 0 : writeCallback(); - } - } - write(chunk, isLastChunk, writeCallback) { - this.active = true; - this.preprocessor.write(chunk, isLastChunk); - this._runParsingLoop(); - if (!this.paused) { - writeCallback === null || writeCallback === void 0 ? void 0 : writeCallback(); - } - } - insertHtmlAtCurrentPos(chunk) { - this.active = true; - this.preprocessor.insertHtmlAtCurrentPos(chunk); - this._runParsingLoop(); - } - //Hibernation - _ensureHibernation() { - if (this.preprocessor.endOfChunkHit) { - this._unconsume(this.consumedAfterSnapshot); - this.active = false; - return true; - } - return false; - } - //Consumption - _consume() { - this.consumedAfterSnapshot++; - return this.preprocessor.advance(); - } - _unconsume(count) { - this.consumedAfterSnapshot -= count; - this.preprocessor.retreat(count); - } - _reconsumeInState(state, cp) { - this.state = state; - this._callState(cp); - } - _advanceBy(count) { - this.consumedAfterSnapshot += count; - for (let i = 0; i < count; i++) { - this.preprocessor.advance(); - } - } - _consumeSequenceIfMatch(pattern, caseSensitive) { - if (this.preprocessor.startsWith(pattern, caseSensitive)) { - // We will already have consumed one character before calling this method. - this._advanceBy(pattern.length - 1); - return true; - } - return false; - } - //Token creation - _createStartTagToken() { - this.currentToken = { - type: TokenType.START_TAG, - tagName: '', - tagID: TAG_ID.UNKNOWN, - selfClosing: false, - ackSelfClosing: false, - attrs: [], - location: this.getCurrentLocation(1), - }; - } - _createEndTagToken() { - this.currentToken = { - type: TokenType.END_TAG, - tagName: '', - tagID: TAG_ID.UNKNOWN, - selfClosing: false, - ackSelfClosing: false, - attrs: [], - location: this.getCurrentLocation(2), - }; - } - _createCommentToken(offset) { - this.currentToken = { - type: TokenType.COMMENT, - data: '', - location: this.getCurrentLocation(offset), - }; - } - _createDoctypeToken(initialName) { - this.currentToken = { - type: TokenType.DOCTYPE, - name: initialName, - forceQuirks: false, - publicId: null, - systemId: null, - location: this.currentLocation, - }; - } - _createCharacterToken(type, chars) { - this.currentCharacterToken = { - type, - chars, - location: this.currentLocation, - }; - } - //Tag attributes - _createAttr(attrNameFirstCh) { - this.currentAttr = { - name: attrNameFirstCh, - value: '', - }; - this.currentLocation = this.getCurrentLocation(0); - } - _leaveAttrName() { - var _a; - var _b; - const token = this.currentToken; - if (getTokenAttr(token, this.currentAttr.name) === null) { - token.attrs.push(this.currentAttr); - if (token.location && this.currentLocation) { - const attrLocations = ((_a = (_b = token.location).attrs) !== null && _a !== void 0 ? _a : (_b.attrs = Object.create(null))); - attrLocations[this.currentAttr.name] = this.currentLocation; - // Set end location - this._leaveAttrValue(); - } - } - else { - this._err(ERR.duplicateAttribute); - } - } - _leaveAttrValue() { - if (this.currentLocation) { - this.currentLocation.endLine = this.preprocessor.line; - this.currentLocation.endCol = this.preprocessor.col; - this.currentLocation.endOffset = this.preprocessor.offset; - } - } - //Token emission - prepareToken(ct) { - this._emitCurrentCharacterToken(ct.location); - this.currentToken = null; - if (ct.location) { - ct.location.endLine = this.preprocessor.line; - ct.location.endCol = this.preprocessor.col + 1; - ct.location.endOffset = this.preprocessor.offset + 1; - } - this.currentLocation = this.getCurrentLocation(-1); - } - emitCurrentTagToken() { - const ct = this.currentToken; - this.prepareToken(ct); - ct.tagID = getTagID(ct.tagName); - if (ct.type === TokenType.START_TAG) { - this.lastStartTagName = ct.tagName; - this.handler.onStartTag(ct); - } - else { - if (ct.attrs.length > 0) { - this._err(ERR.endTagWithAttributes); - } - if (ct.selfClosing) { - this._err(ERR.endTagWithTrailingSolidus); - } - this.handler.onEndTag(ct); - } - this.preprocessor.dropParsedChunk(); - } - emitCurrentComment(ct) { - this.prepareToken(ct); - this.handler.onComment(ct); - this.preprocessor.dropParsedChunk(); - } - emitCurrentDoctype(ct) { - this.prepareToken(ct); - this.handler.onDoctype(ct); - this.preprocessor.dropParsedChunk(); - } - _emitCurrentCharacterToken(nextLocation) { - if (this.currentCharacterToken) { - //NOTE: if we have a pending character token, make it's end location equal to the - //current token's start location. - if (nextLocation && this.currentCharacterToken.location) { - this.currentCharacterToken.location.endLine = nextLocation.startLine; - this.currentCharacterToken.location.endCol = nextLocation.startCol; - this.currentCharacterToken.location.endOffset = nextLocation.startOffset; - } - switch (this.currentCharacterToken.type) { - case TokenType.CHARACTER: { - this.handler.onCharacter(this.currentCharacterToken); - break; - } - case TokenType.NULL_CHARACTER: { - this.handler.onNullCharacter(this.currentCharacterToken); - break; - } - case TokenType.WHITESPACE_CHARACTER: { - this.handler.onWhitespaceCharacter(this.currentCharacterToken); - break; - } - } - this.currentCharacterToken = null; - } - } - _emitEOFToken() { - const location = this.getCurrentLocation(0); - if (location) { - location.endLine = location.startLine; - location.endCol = location.startCol; - location.endOffset = location.startOffset; - } - this._emitCurrentCharacterToken(location); - this.handler.onEof({ type: TokenType.EOF, location }); - this.active = false; - } - //Characters emission - //OPTIMIZATION: specification uses only one type of character tokens (one token per character). - //This causes a huge memory overhead and a lot of unnecessary parser loops. parse5 uses 3 groups of characters. - //If we have a sequence of characters that belong to the same group, the parser can process it - //as a single solid character token. - //So, there are 3 types of character tokens in parse5: - //1)TokenType.NULL_CHARACTER - \u0000-character sequences (e.g. '\u0000\u0000\u0000') - //2)TokenType.WHITESPACE_CHARACTER - any whitespace/new-line character sequences (e.g. '\n \r\t \f') - //3)TokenType.CHARACTER - any character sequence which don't belong to groups 1 and 2 (e.g. 'abcdef1234@@#$%^') - _appendCharToCurrentCharacterToken(type, ch) { - if (this.currentCharacterToken) { - if (this.currentCharacterToken.type !== type) { - this.currentLocation = this.getCurrentLocation(0); - this._emitCurrentCharacterToken(this.currentLocation); - this.preprocessor.dropParsedChunk(); - } - else { - this.currentCharacterToken.chars += ch; - return; - } - } - this._createCharacterToken(type, ch); - } - _emitCodePoint(cp) { - const type = isWhitespace(cp) - ? TokenType.WHITESPACE_CHARACTER - : cp === CODE_POINTS.NULL - ? TokenType.NULL_CHARACTER - : TokenType.CHARACTER; - this._appendCharToCurrentCharacterToken(type, String.fromCodePoint(cp)); - } - //NOTE: used when we emit characters explicitly. - //This is always for non-whitespace and non-null characters, which allows us to avoid additional checks. - _emitChars(ch) { - this._appendCharToCurrentCharacterToken(TokenType.CHARACTER, ch); - } - // Character reference helpers - _matchNamedCharacterReference(cp) { - let result = null; - let excess = 0; - let withoutSemicolon = false; - for (let i = 0, current = htmlDecodeTree[0]; i >= 0; cp = this._consume()) { - i = determineBranch(htmlDecodeTree, current, i + 1, cp); - if (i < 0) - break; - excess += 1; - current = htmlDecodeTree[i]; - const masked = current & BinTrieFlags.VALUE_LENGTH; - // If the branch is a value, store it and continue - if (masked) { - // The mask is the number of bytes of the value, including the current byte. - const valueLength = (masked >> 14) - 1; - // Attribute values that aren't terminated properly aren't parsed, and shouldn't lead to a parser error. - // See the example in https://html.spec.whatwg.org/multipage/parsing.html#named-character-reference-state - if (cp !== CODE_POINTS.SEMICOLON && - this._isCharacterReferenceInAttribute() && - isEntityInAttributeInvalidEnd(this.preprocessor.peek(1))) { - //NOTE: we don't flush all consumed code points here, and instead switch back to the original state after - //emitting an ampersand. This is fine, as alphanumeric characters won't be parsed differently in attributes. - result = [CODE_POINTS.AMPERSAND]; - // Skip over the value. - i += valueLength; - } - else { - // If this is a surrogate pair, consume the next two bytes. - result = - valueLength === 0 - ? [htmlDecodeTree[i] & ~BinTrieFlags.VALUE_LENGTH] - : valueLength === 1 - ? [htmlDecodeTree[++i]] - : [htmlDecodeTree[++i], htmlDecodeTree[++i]]; - excess = 0; - withoutSemicolon = cp !== CODE_POINTS.SEMICOLON; - } - if (valueLength === 0) { - // If the value is zero-length, we're done. - this._consume(); - break; - } - } - } - this._unconsume(excess); - if (withoutSemicolon && !this.preprocessor.endOfChunkHit) { - this._err(ERR.missingSemicolonAfterCharacterReference); - } - // We want to emit the error above on the code point after the entity. - // We always consume one code point too many in the loop, and we wait to - // unconsume it until after the error is emitted. - this._unconsume(1); - return result; - } - _isCharacterReferenceInAttribute() { - return (this.returnState === State.ATTRIBUTE_VALUE_DOUBLE_QUOTED || - this.returnState === State.ATTRIBUTE_VALUE_SINGLE_QUOTED || - this.returnState === State.ATTRIBUTE_VALUE_UNQUOTED); - } - _flushCodePointConsumedAsCharacterReference(cp) { - if (this._isCharacterReferenceInAttribute()) { - this.currentAttr.value += String.fromCodePoint(cp); - } - else { - this._emitCodePoint(cp); - } - } - // Calling states this way turns out to be much faster than any other approach. - _callState(cp) { - switch (this.state) { - case State.DATA: { - this._stateData(cp); - break; - } - case State.RCDATA: { - this._stateRcdata(cp); - break; - } - case State.RAWTEXT: { - this._stateRawtext(cp); - break; - } - case State.SCRIPT_DATA: { - this._stateScriptData(cp); - break; - } - case State.PLAINTEXT: { - this._statePlaintext(cp); - break; - } - case State.TAG_OPEN: { - this._stateTagOpen(cp); - break; - } - case State.END_TAG_OPEN: { - this._stateEndTagOpen(cp); - break; - } - case State.TAG_NAME: { - this._stateTagName(cp); - break; - } - case State.RCDATA_LESS_THAN_SIGN: { - this._stateRcdataLessThanSign(cp); - break; - } - case State.RCDATA_END_TAG_OPEN: { - this._stateRcdataEndTagOpen(cp); - break; - } - case State.RCDATA_END_TAG_NAME: { - this._stateRcdataEndTagName(cp); - break; - } - case State.RAWTEXT_LESS_THAN_SIGN: { - this._stateRawtextLessThanSign(cp); - break; - } - case State.RAWTEXT_END_TAG_OPEN: { - this._stateRawtextEndTagOpen(cp); - break; - } - case State.RAWTEXT_END_TAG_NAME: { - this._stateRawtextEndTagName(cp); - break; - } - case State.SCRIPT_DATA_LESS_THAN_SIGN: { - this._stateScriptDataLessThanSign(cp); - break; - } - case State.SCRIPT_DATA_END_TAG_OPEN: { - this._stateScriptDataEndTagOpen(cp); - break; - } - case State.SCRIPT_DATA_END_TAG_NAME: { - this._stateScriptDataEndTagName(cp); - break; - } - case State.SCRIPT_DATA_ESCAPE_START: { - this._stateScriptDataEscapeStart(cp); - break; - } - case State.SCRIPT_DATA_ESCAPE_START_DASH: { - this._stateScriptDataEscapeStartDash(cp); - break; - } - case State.SCRIPT_DATA_ESCAPED: { - this._stateScriptDataEscaped(cp); - break; - } - case State.SCRIPT_DATA_ESCAPED_DASH: { - this._stateScriptDataEscapedDash(cp); - break; - } - case State.SCRIPT_DATA_ESCAPED_DASH_DASH: { - this._stateScriptDataEscapedDashDash(cp); - break; - } - case State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN: { - this._stateScriptDataEscapedLessThanSign(cp); - break; - } - case State.SCRIPT_DATA_ESCAPED_END_TAG_OPEN: { - this._stateScriptDataEscapedEndTagOpen(cp); - break; - } - case State.SCRIPT_DATA_ESCAPED_END_TAG_NAME: { - this._stateScriptDataEscapedEndTagName(cp); - break; - } - case State.SCRIPT_DATA_DOUBLE_ESCAPE_START: { - this._stateScriptDataDoubleEscapeStart(cp); - break; - } - case State.SCRIPT_DATA_DOUBLE_ESCAPED: { - this._stateScriptDataDoubleEscaped(cp); - break; - } - case State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH: { - this._stateScriptDataDoubleEscapedDash(cp); - break; - } - case State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH: { - this._stateScriptDataDoubleEscapedDashDash(cp); - break; - } - case State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN: { - this._stateScriptDataDoubleEscapedLessThanSign(cp); - break; - } - case State.SCRIPT_DATA_DOUBLE_ESCAPE_END: { - this._stateScriptDataDoubleEscapeEnd(cp); - break; - } - case State.BEFORE_ATTRIBUTE_NAME: { - this._stateBeforeAttributeName(cp); - break; - } - case State.ATTRIBUTE_NAME: { - this._stateAttributeName(cp); - break; - } - case State.AFTER_ATTRIBUTE_NAME: { - this._stateAfterAttributeName(cp); - break; - } - case State.BEFORE_ATTRIBUTE_VALUE: { - this._stateBeforeAttributeValue(cp); - break; - } - case State.ATTRIBUTE_VALUE_DOUBLE_QUOTED: { - this._stateAttributeValueDoubleQuoted(cp); - break; - } - case State.ATTRIBUTE_VALUE_SINGLE_QUOTED: { - this._stateAttributeValueSingleQuoted(cp); - break; - } - case State.ATTRIBUTE_VALUE_UNQUOTED: { - this._stateAttributeValueUnquoted(cp); - break; - } - case State.AFTER_ATTRIBUTE_VALUE_QUOTED: { - this._stateAfterAttributeValueQuoted(cp); - break; - } - case State.SELF_CLOSING_START_TAG: { - this._stateSelfClosingStartTag(cp); - break; - } - case State.BOGUS_COMMENT: { - this._stateBogusComment(cp); - break; - } - case State.MARKUP_DECLARATION_OPEN: { - this._stateMarkupDeclarationOpen(cp); - break; - } - case State.COMMENT_START: { - this._stateCommentStart(cp); - break; - } - case State.COMMENT_START_DASH: { - this._stateCommentStartDash(cp); - break; - } - case State.COMMENT: { - this._stateComment(cp); - break; - } - case State.COMMENT_LESS_THAN_SIGN: { - this._stateCommentLessThanSign(cp); - break; - } - case State.COMMENT_LESS_THAN_SIGN_BANG: { - this._stateCommentLessThanSignBang(cp); - break; - } - case State.COMMENT_LESS_THAN_SIGN_BANG_DASH: { - this._stateCommentLessThanSignBangDash(cp); - break; - } - case State.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH: { - this._stateCommentLessThanSignBangDashDash(cp); - break; - } - case State.COMMENT_END_DASH: { - this._stateCommentEndDash(cp); - break; - } - case State.COMMENT_END: { - this._stateCommentEnd(cp); - break; - } - case State.COMMENT_END_BANG: { - this._stateCommentEndBang(cp); - break; - } - case State.DOCTYPE: { - this._stateDoctype(cp); - break; - } - case State.BEFORE_DOCTYPE_NAME: { - this._stateBeforeDoctypeName(cp); - break; - } - case State.DOCTYPE_NAME: { - this._stateDoctypeName(cp); - break; - } - case State.AFTER_DOCTYPE_NAME: { - this._stateAfterDoctypeName(cp); - break; - } - case State.AFTER_DOCTYPE_PUBLIC_KEYWORD: { - this._stateAfterDoctypePublicKeyword(cp); - break; - } - case State.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER: { - this._stateBeforeDoctypePublicIdentifier(cp); - break; - } - case State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED: { - this._stateDoctypePublicIdentifierDoubleQuoted(cp); - break; - } - case State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED: { - this._stateDoctypePublicIdentifierSingleQuoted(cp); - break; - } - case State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER: { - this._stateAfterDoctypePublicIdentifier(cp); - break; - } - case State.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS: { - this._stateBetweenDoctypePublicAndSystemIdentifiers(cp); - break; - } - case State.AFTER_DOCTYPE_SYSTEM_KEYWORD: { - this._stateAfterDoctypeSystemKeyword(cp); - break; - } - case State.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER: { - this._stateBeforeDoctypeSystemIdentifier(cp); - break; - } - case State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED: { - this._stateDoctypeSystemIdentifierDoubleQuoted(cp); - break; - } - case State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED: { - this._stateDoctypeSystemIdentifierSingleQuoted(cp); - break; - } - case State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER: { - this._stateAfterDoctypeSystemIdentifier(cp); - break; - } - case State.BOGUS_DOCTYPE: { - this._stateBogusDoctype(cp); - break; - } - case State.CDATA_SECTION: { - this._stateCdataSection(cp); - break; - } - case State.CDATA_SECTION_BRACKET: { - this._stateCdataSectionBracket(cp); - break; - } - case State.CDATA_SECTION_END: { - this._stateCdataSectionEnd(cp); - break; - } - case State.CHARACTER_REFERENCE: { - this._stateCharacterReference(cp); - break; - } - case State.NAMED_CHARACTER_REFERENCE: { - this._stateNamedCharacterReference(cp); - break; - } - case State.AMBIGUOUS_AMPERSAND: { - this._stateAmbiguousAmpersand(cp); - break; - } - case State.NUMERIC_CHARACTER_REFERENCE: { - this._stateNumericCharacterReference(cp); - break; - } - case State.HEXADEMICAL_CHARACTER_REFERENCE_START: { - this._stateHexademicalCharacterReferenceStart(cp); - break; - } - case State.HEXADEMICAL_CHARACTER_REFERENCE: { - this._stateHexademicalCharacterReference(cp); - break; - } - case State.DECIMAL_CHARACTER_REFERENCE: { - this._stateDecimalCharacterReference(cp); - break; - } - case State.NUMERIC_CHARACTER_REFERENCE_END: { - this._stateNumericCharacterReferenceEnd(cp); - break; - } - default: { - throw new Error('Unknown state'); - } - } - } - // State machine - // Data state - //------------------------------------------------------------------ - _stateData(cp) { - switch (cp) { - case CODE_POINTS.LESS_THAN_SIGN: { - this.state = State.TAG_OPEN; - break; - } - case CODE_POINTS.AMPERSAND: { - this.returnState = State.DATA; - this.state = State.CHARACTER_REFERENCE; - break; - } - case CODE_POINTS.NULL: { - this._err(ERR.unexpectedNullCharacter); - this._emitCodePoint(cp); - break; - } - case CODE_POINTS.EOF: { - this._emitEOFToken(); - break; - } - default: { - this._emitCodePoint(cp); - } - } - } - // RCDATA state - //------------------------------------------------------------------ - _stateRcdata(cp) { - switch (cp) { - case CODE_POINTS.AMPERSAND: { - this.returnState = State.RCDATA; - this.state = State.CHARACTER_REFERENCE; - break; - } - case CODE_POINTS.LESS_THAN_SIGN: { - this.state = State.RCDATA_LESS_THAN_SIGN; - break; - } - case CODE_POINTS.NULL: { - this._err(ERR.unexpectedNullCharacter); - this._emitChars(REPLACEMENT_CHARACTER); - break; - } - case CODE_POINTS.EOF: { - this._emitEOFToken(); - break; - } - default: { - this._emitCodePoint(cp); - } - } - } - // RAWTEXT state - //------------------------------------------------------------------ - _stateRawtext(cp) { - switch (cp) { - case CODE_POINTS.LESS_THAN_SIGN: { - this.state = State.RAWTEXT_LESS_THAN_SIGN; - break; - } - case CODE_POINTS.NULL: { - this._err(ERR.unexpectedNullCharacter); - this._emitChars(REPLACEMENT_CHARACTER); - break; - } - case CODE_POINTS.EOF: { - this._emitEOFToken(); - break; - } - default: { - this._emitCodePoint(cp); - } - } - } - // Script data state - //------------------------------------------------------------------ - _stateScriptData(cp) { - switch (cp) { - case CODE_POINTS.LESS_THAN_SIGN: { - this.state = State.SCRIPT_DATA_LESS_THAN_SIGN; - break; - } - case CODE_POINTS.NULL: { - this._err(ERR.unexpectedNullCharacter); - this._emitChars(REPLACEMENT_CHARACTER); - break; - } - case CODE_POINTS.EOF: { - this._emitEOFToken(); - break; - } - default: { - this._emitCodePoint(cp); - } - } - } - // PLAINTEXT state - //------------------------------------------------------------------ - _statePlaintext(cp) { - switch (cp) { - case CODE_POINTS.NULL: { - this._err(ERR.unexpectedNullCharacter); - this._emitChars(REPLACEMENT_CHARACTER); - break; - } - case CODE_POINTS.EOF: { - this._emitEOFToken(); - break; - } - default: { - this._emitCodePoint(cp); - } - } - } - // Tag open state - //------------------------------------------------------------------ - _stateTagOpen(cp) { - if (isAsciiLetter(cp)) { - this._createStartTagToken(); - this.state = State.TAG_NAME; - this._stateTagName(cp); - } - else - switch (cp) { - case CODE_POINTS.EXCLAMATION_MARK: { - this.state = State.MARKUP_DECLARATION_OPEN; - break; - } - case CODE_POINTS.SOLIDUS: { - this.state = State.END_TAG_OPEN; - break; - } - case CODE_POINTS.QUESTION_MARK: { - this._err(ERR.unexpectedQuestionMarkInsteadOfTagName); - this._createCommentToken(1); - this.state = State.BOGUS_COMMENT; - this._stateBogusComment(cp); - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofBeforeTagName); - this._emitChars('<'); - this._emitEOFToken(); - break; - } - default: { - this._err(ERR.invalidFirstCharacterOfTagName); - this._emitChars('<'); - this.state = State.DATA; - this._stateData(cp); - } - } - } - // End tag open state - //------------------------------------------------------------------ - _stateEndTagOpen(cp) { - if (isAsciiLetter(cp)) { - this._createEndTagToken(); - this.state = State.TAG_NAME; - this._stateTagName(cp); - } - else - switch (cp) { - case CODE_POINTS.GREATER_THAN_SIGN: { - this._err(ERR.missingEndTagName); - this.state = State.DATA; - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofBeforeTagName); - this._emitChars(''); - break; - } - case CODE_POINTS.NULL: { - this._err(ERR.unexpectedNullCharacter); - this.state = State.SCRIPT_DATA_ESCAPED; - this._emitChars(REPLACEMENT_CHARACTER); - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInScriptHtmlCommentLikeText); - this._emitEOFToken(); - break; - } - default: { - this.state = State.SCRIPT_DATA_ESCAPED; - this._emitCodePoint(cp); - } - } - } - // Script data escaped less-than sign state - //------------------------------------------------------------------ - _stateScriptDataEscapedLessThanSign(cp) { - if (cp === CODE_POINTS.SOLIDUS) { - this.state = State.SCRIPT_DATA_ESCAPED_END_TAG_OPEN; - } - else if (isAsciiLetter(cp)) { - this._emitChars('<'); - this.state = State.SCRIPT_DATA_DOUBLE_ESCAPE_START; - this._stateScriptDataDoubleEscapeStart(cp); - } - else { - this._emitChars('<'); - this.state = State.SCRIPT_DATA_ESCAPED; - this._stateScriptDataEscaped(cp); - } - } - // Script data escaped end tag open state - //------------------------------------------------------------------ - _stateScriptDataEscapedEndTagOpen(cp) { - if (isAsciiLetter(cp)) { - this.state = State.SCRIPT_DATA_ESCAPED_END_TAG_NAME; - this._stateScriptDataEscapedEndTagName(cp); - } - else { - this._emitChars(''); - break; - } - case CODE_POINTS.NULL: { - this._err(ERR.unexpectedNullCharacter); - this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED; - this._emitChars(REPLACEMENT_CHARACTER); - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInScriptHtmlCommentLikeText); - this._emitEOFToken(); - break; - } - default: { - this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED; - this._emitCodePoint(cp); - } - } - } - // Script data double escaped less-than sign state - //------------------------------------------------------------------ - _stateScriptDataDoubleEscapedLessThanSign(cp) { - if (cp === CODE_POINTS.SOLIDUS) { - this.state = State.SCRIPT_DATA_DOUBLE_ESCAPE_END; - this._emitChars('/'); - } - else { - this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED; - this._stateScriptDataDoubleEscaped(cp); - } - } - // Script data double escape end state - //------------------------------------------------------------------ - _stateScriptDataDoubleEscapeEnd(cp) { - if (this.preprocessor.startsWith(SEQUENCES.SCRIPT, false) && - isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek(SEQUENCES.SCRIPT.length))) { - this._emitCodePoint(cp); - for (let i = 0; i < SEQUENCES.SCRIPT.length; i++) { - this._emitCodePoint(this._consume()); - } - this.state = State.SCRIPT_DATA_ESCAPED; - } - else if (!this._ensureHibernation()) { - this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED; - this._stateScriptDataDoubleEscaped(cp); - } - } - // Before attribute name state - //------------------------------------------------------------------ - _stateBeforeAttributeName(cp) { - switch (cp) { - case CODE_POINTS.SPACE: - case CODE_POINTS.LINE_FEED: - case CODE_POINTS.TABULATION: - case CODE_POINTS.FORM_FEED: { - // Ignore whitespace - break; - } - case CODE_POINTS.SOLIDUS: - case CODE_POINTS.GREATER_THAN_SIGN: - case CODE_POINTS.EOF: { - this.state = State.AFTER_ATTRIBUTE_NAME; - this._stateAfterAttributeName(cp); - break; - } - case CODE_POINTS.EQUALS_SIGN: { - this._err(ERR.unexpectedEqualsSignBeforeAttributeName); - this._createAttr('='); - this.state = State.ATTRIBUTE_NAME; - break; - } - default: { - this._createAttr(''); - this.state = State.ATTRIBUTE_NAME; - this._stateAttributeName(cp); - } - } - } - // Attribute name state - //------------------------------------------------------------------ - _stateAttributeName(cp) { - switch (cp) { - case CODE_POINTS.SPACE: - case CODE_POINTS.LINE_FEED: - case CODE_POINTS.TABULATION: - case CODE_POINTS.FORM_FEED: - case CODE_POINTS.SOLIDUS: - case CODE_POINTS.GREATER_THAN_SIGN: - case CODE_POINTS.EOF: { - this._leaveAttrName(); - this.state = State.AFTER_ATTRIBUTE_NAME; - this._stateAfterAttributeName(cp); - break; - } - case CODE_POINTS.EQUALS_SIGN: { - this._leaveAttrName(); - this.state = State.BEFORE_ATTRIBUTE_VALUE; - break; - } - case CODE_POINTS.QUOTATION_MARK: - case CODE_POINTS.APOSTROPHE: - case CODE_POINTS.LESS_THAN_SIGN: { - this._err(ERR.unexpectedCharacterInAttributeName); - this.currentAttr.name += String.fromCodePoint(cp); - break; - } - case CODE_POINTS.NULL: { - this._err(ERR.unexpectedNullCharacter); - this.currentAttr.name += REPLACEMENT_CHARACTER; - break; - } - default: { - this.currentAttr.name += String.fromCodePoint(isAsciiUpper(cp) ? toAsciiLower(cp) : cp); - } - } - } - // After attribute name state - //------------------------------------------------------------------ - _stateAfterAttributeName(cp) { - switch (cp) { - case CODE_POINTS.SPACE: - case CODE_POINTS.LINE_FEED: - case CODE_POINTS.TABULATION: - case CODE_POINTS.FORM_FEED: { - // Ignore whitespace - break; - } - case CODE_POINTS.SOLIDUS: { - this.state = State.SELF_CLOSING_START_TAG; - break; - } - case CODE_POINTS.EQUALS_SIGN: { - this.state = State.BEFORE_ATTRIBUTE_VALUE; - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this.state = State.DATA; - this.emitCurrentTagToken(); - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInTag); - this._emitEOFToken(); - break; - } - default: { - this._createAttr(''); - this.state = State.ATTRIBUTE_NAME; - this._stateAttributeName(cp); - } - } - } - // Before attribute value state - //------------------------------------------------------------------ - _stateBeforeAttributeValue(cp) { - switch (cp) { - case CODE_POINTS.SPACE: - case CODE_POINTS.LINE_FEED: - case CODE_POINTS.TABULATION: - case CODE_POINTS.FORM_FEED: { - // Ignore whitespace - break; - } - case CODE_POINTS.QUOTATION_MARK: { - this.state = State.ATTRIBUTE_VALUE_DOUBLE_QUOTED; - break; - } - case CODE_POINTS.APOSTROPHE: { - this.state = State.ATTRIBUTE_VALUE_SINGLE_QUOTED; - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this._err(ERR.missingAttributeValue); - this.state = State.DATA; - this.emitCurrentTagToken(); - break; - } - default: { - this.state = State.ATTRIBUTE_VALUE_UNQUOTED; - this._stateAttributeValueUnquoted(cp); - } - } - } - // Attribute value (double-quoted) state - //------------------------------------------------------------------ - _stateAttributeValueDoubleQuoted(cp) { - switch (cp) { - case CODE_POINTS.QUOTATION_MARK: { - this.state = State.AFTER_ATTRIBUTE_VALUE_QUOTED; - break; - } - case CODE_POINTS.AMPERSAND: { - this.returnState = State.ATTRIBUTE_VALUE_DOUBLE_QUOTED; - this.state = State.CHARACTER_REFERENCE; - break; - } - case CODE_POINTS.NULL: { - this._err(ERR.unexpectedNullCharacter); - this.currentAttr.value += REPLACEMENT_CHARACTER; - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInTag); - this._emitEOFToken(); - break; - } - default: { - this.currentAttr.value += String.fromCodePoint(cp); - } - } - } - // Attribute value (single-quoted) state - //------------------------------------------------------------------ - _stateAttributeValueSingleQuoted(cp) { - switch (cp) { - case CODE_POINTS.APOSTROPHE: { - this.state = State.AFTER_ATTRIBUTE_VALUE_QUOTED; - break; - } - case CODE_POINTS.AMPERSAND: { - this.returnState = State.ATTRIBUTE_VALUE_SINGLE_QUOTED; - this.state = State.CHARACTER_REFERENCE; - break; - } - case CODE_POINTS.NULL: { - this._err(ERR.unexpectedNullCharacter); - this.currentAttr.value += REPLACEMENT_CHARACTER; - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInTag); - this._emitEOFToken(); - break; - } - default: { - this.currentAttr.value += String.fromCodePoint(cp); - } - } - } - // Attribute value (unquoted) state - //------------------------------------------------------------------ - _stateAttributeValueUnquoted(cp) { - switch (cp) { - case CODE_POINTS.SPACE: - case CODE_POINTS.LINE_FEED: - case CODE_POINTS.TABULATION: - case CODE_POINTS.FORM_FEED: { - this._leaveAttrValue(); - this.state = State.BEFORE_ATTRIBUTE_NAME; - break; - } - case CODE_POINTS.AMPERSAND: { - this.returnState = State.ATTRIBUTE_VALUE_UNQUOTED; - this.state = State.CHARACTER_REFERENCE; - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this._leaveAttrValue(); - this.state = State.DATA; - this.emitCurrentTagToken(); - break; - } - case CODE_POINTS.NULL: { - this._err(ERR.unexpectedNullCharacter); - this.currentAttr.value += REPLACEMENT_CHARACTER; - break; - } - case CODE_POINTS.QUOTATION_MARK: - case CODE_POINTS.APOSTROPHE: - case CODE_POINTS.LESS_THAN_SIGN: - case CODE_POINTS.EQUALS_SIGN: - case CODE_POINTS.GRAVE_ACCENT: { - this._err(ERR.unexpectedCharacterInUnquotedAttributeValue); - this.currentAttr.value += String.fromCodePoint(cp); - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInTag); - this._emitEOFToken(); - break; - } - default: { - this.currentAttr.value += String.fromCodePoint(cp); - } - } - } - // After attribute value (quoted) state - //------------------------------------------------------------------ - _stateAfterAttributeValueQuoted(cp) { - switch (cp) { - case CODE_POINTS.SPACE: - case CODE_POINTS.LINE_FEED: - case CODE_POINTS.TABULATION: - case CODE_POINTS.FORM_FEED: { - this._leaveAttrValue(); - this.state = State.BEFORE_ATTRIBUTE_NAME; - break; - } - case CODE_POINTS.SOLIDUS: { - this._leaveAttrValue(); - this.state = State.SELF_CLOSING_START_TAG; - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this._leaveAttrValue(); - this.state = State.DATA; - this.emitCurrentTagToken(); - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInTag); - this._emitEOFToken(); - break; - } - default: { - this._err(ERR.missingWhitespaceBetweenAttributes); - this.state = State.BEFORE_ATTRIBUTE_NAME; - this._stateBeforeAttributeName(cp); - } - } - } - // Self-closing start tag state - //------------------------------------------------------------------ - _stateSelfClosingStartTag(cp) { - switch (cp) { - case CODE_POINTS.GREATER_THAN_SIGN: { - const token = this.currentToken; - token.selfClosing = true; - this.state = State.DATA; - this.emitCurrentTagToken(); - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInTag); - this._emitEOFToken(); - break; - } - default: { - this._err(ERR.unexpectedSolidusInTag); - this.state = State.BEFORE_ATTRIBUTE_NAME; - this._stateBeforeAttributeName(cp); - } - } - } - // Bogus comment state - //------------------------------------------------------------------ - _stateBogusComment(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.GREATER_THAN_SIGN: { - this.state = State.DATA; - this.emitCurrentComment(token); - break; - } - case CODE_POINTS.EOF: { - this.emitCurrentComment(token); - this._emitEOFToken(); - break; - } - case CODE_POINTS.NULL: { - this._err(ERR.unexpectedNullCharacter); - token.data += REPLACEMENT_CHARACTER; - break; - } - default: { - token.data += String.fromCodePoint(cp); - } - } - } - // Markup declaration open state - //------------------------------------------------------------------ - _stateMarkupDeclarationOpen(cp) { - if (this._consumeSequenceIfMatch(SEQUENCES.DASH_DASH, true)) { - this._createCommentToken(SEQUENCES.DASH_DASH.length + 1); - this.state = State.COMMENT_START; - } - else if (this._consumeSequenceIfMatch(SEQUENCES.DOCTYPE, false)) { - // NOTE: Doctypes tokens are created without fixed offsets. We keep track of the moment a doctype *might* start here. - this.currentLocation = this.getCurrentLocation(SEQUENCES.DOCTYPE.length + 1); - this.state = State.DOCTYPE; - } - else if (this._consumeSequenceIfMatch(SEQUENCES.CDATA_START, true)) { - if (this.inForeignNode) { - this.state = State.CDATA_SECTION; - } - else { - this._err(ERR.cdataInHtmlContent); - this._createCommentToken(SEQUENCES.CDATA_START.length + 1); - this.currentToken.data = '[CDATA['; - this.state = State.BOGUS_COMMENT; - } - } - //NOTE: Sequence lookups can be abrupted by hibernation. In that case, lookup - //results are no longer valid and we will need to start over. - else if (!this._ensureHibernation()) { - this._err(ERR.incorrectlyOpenedComment); - this._createCommentToken(2); - this.state = State.BOGUS_COMMENT; - this._stateBogusComment(cp); - } - } - // Comment start state - //------------------------------------------------------------------ - _stateCommentStart(cp) { - switch (cp) { - case CODE_POINTS.HYPHEN_MINUS: { - this.state = State.COMMENT_START_DASH; - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this._err(ERR.abruptClosingOfEmptyComment); - this.state = State.DATA; - const token = this.currentToken; - this.emitCurrentComment(token); - break; - } - default: { - this.state = State.COMMENT; - this._stateComment(cp); - } - } - } - // Comment start dash state - //------------------------------------------------------------------ - _stateCommentStartDash(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.HYPHEN_MINUS: { - this.state = State.COMMENT_END; - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this._err(ERR.abruptClosingOfEmptyComment); - this.state = State.DATA; - this.emitCurrentComment(token); - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInComment); - this.emitCurrentComment(token); - this._emitEOFToken(); - break; - } - default: { - token.data += '-'; - this.state = State.COMMENT; - this._stateComment(cp); - } - } - } - // Comment state - //------------------------------------------------------------------ - _stateComment(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.HYPHEN_MINUS: { - this.state = State.COMMENT_END_DASH; - break; - } - case CODE_POINTS.LESS_THAN_SIGN: { - token.data += '<'; - this.state = State.COMMENT_LESS_THAN_SIGN; - break; - } - case CODE_POINTS.NULL: { - this._err(ERR.unexpectedNullCharacter); - token.data += REPLACEMENT_CHARACTER; - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInComment); - this.emitCurrentComment(token); - this._emitEOFToken(); - break; - } - default: { - token.data += String.fromCodePoint(cp); - } - } - } - // Comment less-than sign state - //------------------------------------------------------------------ - _stateCommentLessThanSign(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.EXCLAMATION_MARK: { - token.data += '!'; - this.state = State.COMMENT_LESS_THAN_SIGN_BANG; - break; - } - case CODE_POINTS.LESS_THAN_SIGN: { - token.data += '<'; - break; - } - default: { - this.state = State.COMMENT; - this._stateComment(cp); - } - } - } - // Comment less-than sign bang state - //------------------------------------------------------------------ - _stateCommentLessThanSignBang(cp) { - if (cp === CODE_POINTS.HYPHEN_MINUS) { - this.state = State.COMMENT_LESS_THAN_SIGN_BANG_DASH; - } - else { - this.state = State.COMMENT; - this._stateComment(cp); - } - } - // Comment less-than sign bang dash state - //------------------------------------------------------------------ - _stateCommentLessThanSignBangDash(cp) { - if (cp === CODE_POINTS.HYPHEN_MINUS) { - this.state = State.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH; - } - else { - this.state = State.COMMENT_END_DASH; - this._stateCommentEndDash(cp); - } - } - // Comment less-than sign bang dash dash state - //------------------------------------------------------------------ - _stateCommentLessThanSignBangDashDash(cp) { - if (cp !== CODE_POINTS.GREATER_THAN_SIGN && cp !== CODE_POINTS.EOF) { - this._err(ERR.nestedComment); - } - this.state = State.COMMENT_END; - this._stateCommentEnd(cp); - } - // Comment end dash state - //------------------------------------------------------------------ - _stateCommentEndDash(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.HYPHEN_MINUS: { - this.state = State.COMMENT_END; - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInComment); - this.emitCurrentComment(token); - this._emitEOFToken(); - break; - } - default: { - token.data += '-'; - this.state = State.COMMENT; - this._stateComment(cp); - } - } - } - // Comment end state - //------------------------------------------------------------------ - _stateCommentEnd(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.GREATER_THAN_SIGN: { - this.state = State.DATA; - this.emitCurrentComment(token); - break; - } - case CODE_POINTS.EXCLAMATION_MARK: { - this.state = State.COMMENT_END_BANG; - break; - } - case CODE_POINTS.HYPHEN_MINUS: { - token.data += '-'; - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInComment); - this.emitCurrentComment(token); - this._emitEOFToken(); - break; - } - default: { - token.data += '--'; - this.state = State.COMMENT; - this._stateComment(cp); - } - } - } - // Comment end bang state - //------------------------------------------------------------------ - _stateCommentEndBang(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.HYPHEN_MINUS: { - token.data += '--!'; - this.state = State.COMMENT_END_DASH; - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this._err(ERR.incorrectlyClosedComment); - this.state = State.DATA; - this.emitCurrentComment(token); - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInComment); - this.emitCurrentComment(token); - this._emitEOFToken(); - break; - } - default: { - token.data += '--!'; - this.state = State.COMMENT; - this._stateComment(cp); - } - } - } - // DOCTYPE state - //------------------------------------------------------------------ - _stateDoctype(cp) { - switch (cp) { - case CODE_POINTS.SPACE: - case CODE_POINTS.LINE_FEED: - case CODE_POINTS.TABULATION: - case CODE_POINTS.FORM_FEED: { - this.state = State.BEFORE_DOCTYPE_NAME; - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this.state = State.BEFORE_DOCTYPE_NAME; - this._stateBeforeDoctypeName(cp); - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInDoctype); - this._createDoctypeToken(null); - const token = this.currentToken; - token.forceQuirks = true; - this.emitCurrentDoctype(token); - this._emitEOFToken(); - break; - } - default: { - this._err(ERR.missingWhitespaceBeforeDoctypeName); - this.state = State.BEFORE_DOCTYPE_NAME; - this._stateBeforeDoctypeName(cp); - } - } - } - // Before DOCTYPE name state - //------------------------------------------------------------------ - _stateBeforeDoctypeName(cp) { - if (isAsciiUpper(cp)) { - this._createDoctypeToken(String.fromCharCode(toAsciiLower(cp))); - this.state = State.DOCTYPE_NAME; - } - else - switch (cp) { - case CODE_POINTS.SPACE: - case CODE_POINTS.LINE_FEED: - case CODE_POINTS.TABULATION: - case CODE_POINTS.FORM_FEED: { - // Ignore whitespace - break; - } - case CODE_POINTS.NULL: { - this._err(ERR.unexpectedNullCharacter); - this._createDoctypeToken(REPLACEMENT_CHARACTER); - this.state = State.DOCTYPE_NAME; - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this._err(ERR.missingDoctypeName); - this._createDoctypeToken(null); - const token = this.currentToken; - token.forceQuirks = true; - this.emitCurrentDoctype(token); - this.state = State.DATA; - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInDoctype); - this._createDoctypeToken(null); - const token = this.currentToken; - token.forceQuirks = true; - this.emitCurrentDoctype(token); - this._emitEOFToken(); - break; - } - default: { - this._createDoctypeToken(String.fromCodePoint(cp)); - this.state = State.DOCTYPE_NAME; - } - } - } - // DOCTYPE name state - //------------------------------------------------------------------ - _stateDoctypeName(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.SPACE: - case CODE_POINTS.LINE_FEED: - case CODE_POINTS.TABULATION: - case CODE_POINTS.FORM_FEED: { - this.state = State.AFTER_DOCTYPE_NAME; - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this.state = State.DATA; - this.emitCurrentDoctype(token); - break; - } - case CODE_POINTS.NULL: { - this._err(ERR.unexpectedNullCharacter); - token.name += REPLACEMENT_CHARACTER; - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInDoctype); - token.forceQuirks = true; - this.emitCurrentDoctype(token); - this._emitEOFToken(); - break; - } - default: { - token.name += String.fromCodePoint(isAsciiUpper(cp) ? toAsciiLower(cp) : cp); - } - } - } - // After DOCTYPE name state - //------------------------------------------------------------------ - _stateAfterDoctypeName(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.SPACE: - case CODE_POINTS.LINE_FEED: - case CODE_POINTS.TABULATION: - case CODE_POINTS.FORM_FEED: { - // Ignore whitespace - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this.state = State.DATA; - this.emitCurrentDoctype(token); - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInDoctype); - token.forceQuirks = true; - this.emitCurrentDoctype(token); - this._emitEOFToken(); - break; - } - default: { - if (this._consumeSequenceIfMatch(SEQUENCES.PUBLIC, false)) { - this.state = State.AFTER_DOCTYPE_PUBLIC_KEYWORD; - } - else if (this._consumeSequenceIfMatch(SEQUENCES.SYSTEM, false)) { - this.state = State.AFTER_DOCTYPE_SYSTEM_KEYWORD; - } - //NOTE: sequence lookup can be abrupted by hibernation. In that case lookup - //results are no longer valid and we will need to start over. - else if (!this._ensureHibernation()) { - this._err(ERR.invalidCharacterSequenceAfterDoctypeName); - token.forceQuirks = true; - this.state = State.BOGUS_DOCTYPE; - this._stateBogusDoctype(cp); - } - } - } - } - // After DOCTYPE public keyword state - //------------------------------------------------------------------ - _stateAfterDoctypePublicKeyword(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.SPACE: - case CODE_POINTS.LINE_FEED: - case CODE_POINTS.TABULATION: - case CODE_POINTS.FORM_FEED: { - this.state = State.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER; - break; - } - case CODE_POINTS.QUOTATION_MARK: { - this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword); - token.publicId = ''; - this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED; - break; - } - case CODE_POINTS.APOSTROPHE: { - this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword); - token.publicId = ''; - this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED; - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this._err(ERR.missingDoctypePublicIdentifier); - token.forceQuirks = true; - this.state = State.DATA; - this.emitCurrentDoctype(token); - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInDoctype); - token.forceQuirks = true; - this.emitCurrentDoctype(token); - this._emitEOFToken(); - break; - } - default: { - this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier); - token.forceQuirks = true; - this.state = State.BOGUS_DOCTYPE; - this._stateBogusDoctype(cp); - } - } - } - // Before DOCTYPE public identifier state - //------------------------------------------------------------------ - _stateBeforeDoctypePublicIdentifier(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.SPACE: - case CODE_POINTS.LINE_FEED: - case CODE_POINTS.TABULATION: - case CODE_POINTS.FORM_FEED: { - // Ignore whitespace - break; - } - case CODE_POINTS.QUOTATION_MARK: { - token.publicId = ''; - this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED; - break; - } - case CODE_POINTS.APOSTROPHE: { - token.publicId = ''; - this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED; - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this._err(ERR.missingDoctypePublicIdentifier); - token.forceQuirks = true; - this.state = State.DATA; - this.emitCurrentDoctype(token); - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInDoctype); - token.forceQuirks = true; - this.emitCurrentDoctype(token); - this._emitEOFToken(); - break; - } - default: { - this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier); - token.forceQuirks = true; - this.state = State.BOGUS_DOCTYPE; - this._stateBogusDoctype(cp); - } - } - } - // DOCTYPE public identifier (double-quoted) state - //------------------------------------------------------------------ - _stateDoctypePublicIdentifierDoubleQuoted(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.QUOTATION_MARK: { - this.state = State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER; - break; - } - case CODE_POINTS.NULL: { - this._err(ERR.unexpectedNullCharacter); - token.publicId += REPLACEMENT_CHARACTER; - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this._err(ERR.abruptDoctypePublicIdentifier); - token.forceQuirks = true; - this.emitCurrentDoctype(token); - this.state = State.DATA; - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInDoctype); - token.forceQuirks = true; - this.emitCurrentDoctype(token); - this._emitEOFToken(); - break; - } - default: { - token.publicId += String.fromCodePoint(cp); - } - } - } - // DOCTYPE public identifier (single-quoted) state - //------------------------------------------------------------------ - _stateDoctypePublicIdentifierSingleQuoted(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.APOSTROPHE: { - this.state = State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER; - break; - } - case CODE_POINTS.NULL: { - this._err(ERR.unexpectedNullCharacter); - token.publicId += REPLACEMENT_CHARACTER; - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this._err(ERR.abruptDoctypePublicIdentifier); - token.forceQuirks = true; - this.emitCurrentDoctype(token); - this.state = State.DATA; - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInDoctype); - token.forceQuirks = true; - this.emitCurrentDoctype(token); - this._emitEOFToken(); - break; - } - default: { - token.publicId += String.fromCodePoint(cp); - } - } - } - // After DOCTYPE public identifier state - //------------------------------------------------------------------ - _stateAfterDoctypePublicIdentifier(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.SPACE: - case CODE_POINTS.LINE_FEED: - case CODE_POINTS.TABULATION: - case CODE_POINTS.FORM_FEED: { - this.state = State.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS; - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this.state = State.DATA; - this.emitCurrentDoctype(token); - break; - } - case CODE_POINTS.QUOTATION_MARK: { - this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers); - token.systemId = ''; - this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED; - break; - } - case CODE_POINTS.APOSTROPHE: { - this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers); - token.systemId = ''; - this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED; - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInDoctype); - token.forceQuirks = true; - this.emitCurrentDoctype(token); - this._emitEOFToken(); - break; - } - default: { - this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier); - token.forceQuirks = true; - this.state = State.BOGUS_DOCTYPE; - this._stateBogusDoctype(cp); - } - } - } - // Between DOCTYPE public and system identifiers state - //------------------------------------------------------------------ - _stateBetweenDoctypePublicAndSystemIdentifiers(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.SPACE: - case CODE_POINTS.LINE_FEED: - case CODE_POINTS.TABULATION: - case CODE_POINTS.FORM_FEED: { - // Ignore whitespace - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this.emitCurrentDoctype(token); - this.state = State.DATA; - break; - } - case CODE_POINTS.QUOTATION_MARK: { - token.systemId = ''; - this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED; - break; - } - case CODE_POINTS.APOSTROPHE: { - token.systemId = ''; - this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED; - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInDoctype); - token.forceQuirks = true; - this.emitCurrentDoctype(token); - this._emitEOFToken(); - break; - } - default: { - this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier); - token.forceQuirks = true; - this.state = State.BOGUS_DOCTYPE; - this._stateBogusDoctype(cp); - } - } - } - // After DOCTYPE system keyword state - //------------------------------------------------------------------ - _stateAfterDoctypeSystemKeyword(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.SPACE: - case CODE_POINTS.LINE_FEED: - case CODE_POINTS.TABULATION: - case CODE_POINTS.FORM_FEED: { - this.state = State.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER; - break; - } - case CODE_POINTS.QUOTATION_MARK: { - this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword); - token.systemId = ''; - this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED; - break; - } - case CODE_POINTS.APOSTROPHE: { - this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword); - token.systemId = ''; - this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED; - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this._err(ERR.missingDoctypeSystemIdentifier); - token.forceQuirks = true; - this.state = State.DATA; - this.emitCurrentDoctype(token); - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInDoctype); - token.forceQuirks = true; - this.emitCurrentDoctype(token); - this._emitEOFToken(); - break; - } - default: { - this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier); - token.forceQuirks = true; - this.state = State.BOGUS_DOCTYPE; - this._stateBogusDoctype(cp); - } - } - } - // Before DOCTYPE system identifier state - //------------------------------------------------------------------ - _stateBeforeDoctypeSystemIdentifier(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.SPACE: - case CODE_POINTS.LINE_FEED: - case CODE_POINTS.TABULATION: - case CODE_POINTS.FORM_FEED: { - // Ignore whitespace - break; - } - case CODE_POINTS.QUOTATION_MARK: { - token.systemId = ''; - this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED; - break; - } - case CODE_POINTS.APOSTROPHE: { - token.systemId = ''; - this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED; - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this._err(ERR.missingDoctypeSystemIdentifier); - token.forceQuirks = true; - this.state = State.DATA; - this.emitCurrentDoctype(token); - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInDoctype); - token.forceQuirks = true; - this.emitCurrentDoctype(token); - this._emitEOFToken(); - break; - } - default: { - this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier); - token.forceQuirks = true; - this.state = State.BOGUS_DOCTYPE; - this._stateBogusDoctype(cp); - } - } - } - // DOCTYPE system identifier (double-quoted) state - //------------------------------------------------------------------ - _stateDoctypeSystemIdentifierDoubleQuoted(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.QUOTATION_MARK: { - this.state = State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER; - break; - } - case CODE_POINTS.NULL: { - this._err(ERR.unexpectedNullCharacter); - token.systemId += REPLACEMENT_CHARACTER; - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this._err(ERR.abruptDoctypeSystemIdentifier); - token.forceQuirks = true; - this.emitCurrentDoctype(token); - this.state = State.DATA; - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInDoctype); - token.forceQuirks = true; - this.emitCurrentDoctype(token); - this._emitEOFToken(); - break; - } - default: { - token.systemId += String.fromCodePoint(cp); - } - } - } - // DOCTYPE system identifier (single-quoted) state - //------------------------------------------------------------------ - _stateDoctypeSystemIdentifierSingleQuoted(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.APOSTROPHE: { - this.state = State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER; - break; - } - case CODE_POINTS.NULL: { - this._err(ERR.unexpectedNullCharacter); - token.systemId += REPLACEMENT_CHARACTER; - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this._err(ERR.abruptDoctypeSystemIdentifier); - token.forceQuirks = true; - this.emitCurrentDoctype(token); - this.state = State.DATA; - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInDoctype); - token.forceQuirks = true; - this.emitCurrentDoctype(token); - this._emitEOFToken(); - break; - } - default: { - token.systemId += String.fromCodePoint(cp); - } - } - } - // After DOCTYPE system identifier state - //------------------------------------------------------------------ - _stateAfterDoctypeSystemIdentifier(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.SPACE: - case CODE_POINTS.LINE_FEED: - case CODE_POINTS.TABULATION: - case CODE_POINTS.FORM_FEED: { - // Ignore whitespace - break; - } - case CODE_POINTS.GREATER_THAN_SIGN: { - this.emitCurrentDoctype(token); - this.state = State.DATA; - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInDoctype); - token.forceQuirks = true; - this.emitCurrentDoctype(token); - this._emitEOFToken(); - break; - } - default: { - this._err(ERR.unexpectedCharacterAfterDoctypeSystemIdentifier); - this.state = State.BOGUS_DOCTYPE; - this._stateBogusDoctype(cp); - } - } - } - // Bogus DOCTYPE state - //------------------------------------------------------------------ - _stateBogusDoctype(cp) { - const token = this.currentToken; - switch (cp) { - case CODE_POINTS.GREATER_THAN_SIGN: { - this.emitCurrentDoctype(token); - this.state = State.DATA; - break; - } - case CODE_POINTS.NULL: { - this._err(ERR.unexpectedNullCharacter); - break; - } - case CODE_POINTS.EOF: { - this.emitCurrentDoctype(token); - this._emitEOFToken(); - break; - } - // Do nothing - } - } - // CDATA section state - //------------------------------------------------------------------ - _stateCdataSection(cp) { - switch (cp) { - case CODE_POINTS.RIGHT_SQUARE_BRACKET: { - this.state = State.CDATA_SECTION_BRACKET; - break; - } - case CODE_POINTS.EOF: { - this._err(ERR.eofInCdata); - this._emitEOFToken(); - break; - } - default: { - this._emitCodePoint(cp); - } - } - } - // CDATA section bracket state - //------------------------------------------------------------------ - _stateCdataSectionBracket(cp) { - if (cp === CODE_POINTS.RIGHT_SQUARE_BRACKET) { - this.state = State.CDATA_SECTION_END; - } - else { - this._emitChars(']'); - this.state = State.CDATA_SECTION; - this._stateCdataSection(cp); - } - } - // CDATA section end state - //------------------------------------------------------------------ - _stateCdataSectionEnd(cp) { - switch (cp) { - case CODE_POINTS.GREATER_THAN_SIGN: { - this.state = State.DATA; - break; - } - case CODE_POINTS.RIGHT_SQUARE_BRACKET: { - this._emitChars(']'); - break; - } - default: { - this._emitChars(']]'); - this.state = State.CDATA_SECTION; - this._stateCdataSection(cp); - } - } - } - // Character reference state - //------------------------------------------------------------------ - _stateCharacterReference(cp) { - if (cp === CODE_POINTS.NUMBER_SIGN) { - this.state = State.NUMERIC_CHARACTER_REFERENCE; - } - else if (isAsciiAlphaNumeric(cp)) { - this.state = State.NAMED_CHARACTER_REFERENCE; - this._stateNamedCharacterReference(cp); - } - else { - this._flushCodePointConsumedAsCharacterReference(CODE_POINTS.AMPERSAND); - this._reconsumeInState(this.returnState, cp); - } - } - // Named character reference state - //------------------------------------------------------------------ - _stateNamedCharacterReference(cp) { - const matchResult = this._matchNamedCharacterReference(cp); - //NOTE: Matching can be abrupted by hibernation. In that case, match - //results are no longer valid and we will need to start over. - if (this._ensureHibernation()) ; - else if (matchResult) { - for (let i = 0; i < matchResult.length; i++) { - this._flushCodePointConsumedAsCharacterReference(matchResult[i]); - } - this.state = this.returnState; - } - else { - this._flushCodePointConsumedAsCharacterReference(CODE_POINTS.AMPERSAND); - this.state = State.AMBIGUOUS_AMPERSAND; - } - } - // Ambiguos ampersand state - //------------------------------------------------------------------ - _stateAmbiguousAmpersand(cp) { - if (isAsciiAlphaNumeric(cp)) { - this._flushCodePointConsumedAsCharacterReference(cp); - } - else { - if (cp === CODE_POINTS.SEMICOLON) { - this._err(ERR.unknownNamedCharacterReference); - } - this._reconsumeInState(this.returnState, cp); - } - } - // Numeric character reference state - //------------------------------------------------------------------ - _stateNumericCharacterReference(cp) { - this.charRefCode = 0; - if (cp === CODE_POINTS.LATIN_SMALL_X || cp === CODE_POINTS.LATIN_CAPITAL_X) { - this.state = State.HEXADEMICAL_CHARACTER_REFERENCE_START; - } - // Inlined decimal character reference start state - else if (isAsciiDigit(cp)) { - this.state = State.DECIMAL_CHARACTER_REFERENCE; - this._stateDecimalCharacterReference(cp); - } - else { - this._err(ERR.absenceOfDigitsInNumericCharacterReference); - this._flushCodePointConsumedAsCharacterReference(CODE_POINTS.AMPERSAND); - this._flushCodePointConsumedAsCharacterReference(CODE_POINTS.NUMBER_SIGN); - this._reconsumeInState(this.returnState, cp); - } - } - // Hexademical character reference start state - //------------------------------------------------------------------ - _stateHexademicalCharacterReferenceStart(cp) { - if (isAsciiHexDigit(cp)) { - this.state = State.HEXADEMICAL_CHARACTER_REFERENCE; - this._stateHexademicalCharacterReference(cp); - } - else { - this._err(ERR.absenceOfDigitsInNumericCharacterReference); - this._flushCodePointConsumedAsCharacterReference(CODE_POINTS.AMPERSAND); - this._flushCodePointConsumedAsCharacterReference(CODE_POINTS.NUMBER_SIGN); - this._unconsume(2); - this.state = this.returnState; - } - } - // Hexademical character reference state - //------------------------------------------------------------------ - _stateHexademicalCharacterReference(cp) { - if (isAsciiUpperHexDigit(cp)) { - this.charRefCode = this.charRefCode * 16 + cp - 0x37; - } - else if (isAsciiLowerHexDigit(cp)) { - this.charRefCode = this.charRefCode * 16 + cp - 0x57; - } - else if (isAsciiDigit(cp)) { - this.charRefCode = this.charRefCode * 16 + cp - 0x30; - } - else if (cp === CODE_POINTS.SEMICOLON) { - this.state = State.NUMERIC_CHARACTER_REFERENCE_END; - } - else { - this._err(ERR.missingSemicolonAfterCharacterReference); - this.state = State.NUMERIC_CHARACTER_REFERENCE_END; - this._stateNumericCharacterReferenceEnd(cp); - } - } - // Decimal character reference state - //------------------------------------------------------------------ - _stateDecimalCharacterReference(cp) { - if (isAsciiDigit(cp)) { - this.charRefCode = this.charRefCode * 10 + cp - 0x30; - } - else if (cp === CODE_POINTS.SEMICOLON) { - this.state = State.NUMERIC_CHARACTER_REFERENCE_END; - } - else { - this._err(ERR.missingSemicolonAfterCharacterReference); - this.state = State.NUMERIC_CHARACTER_REFERENCE_END; - this._stateNumericCharacterReferenceEnd(cp); - } - } - // Numeric character reference end state - //------------------------------------------------------------------ - _stateNumericCharacterReferenceEnd(cp) { - if (this.charRefCode === CODE_POINTS.NULL) { - this._err(ERR.nullCharacterReference); - this.charRefCode = CODE_POINTS.REPLACEMENT_CHARACTER; - } - else if (this.charRefCode > 1114111) { - this._err(ERR.characterReferenceOutsideUnicodeRange); - this.charRefCode = CODE_POINTS.REPLACEMENT_CHARACTER; - } - else if (isSurrogate(this.charRefCode)) { - this._err(ERR.surrogateCharacterReference); - this.charRefCode = CODE_POINTS.REPLACEMENT_CHARACTER; - } - else if (isUndefinedCodePoint(this.charRefCode)) { - this._err(ERR.noncharacterCharacterReference); - } - else if (isControlCodePoint(this.charRefCode) || this.charRefCode === CODE_POINTS.CARRIAGE_RETURN) { - this._err(ERR.controlCharacterReference); - const replacement = C1_CONTROLS_REFERENCE_REPLACEMENTS.get(this.charRefCode); - if (replacement !== undefined) { - this.charRefCode = replacement; - } - } - this._flushCodePointConsumedAsCharacterReference(this.charRefCode); - this._reconsumeInState(this.returnState, cp); - } -} - -//Element utils -const IMPLICIT_END_TAG_REQUIRED = new Set([TAG_ID.DD, TAG_ID.DT, TAG_ID.LI, TAG_ID.OPTGROUP, TAG_ID.OPTION, TAG_ID.P, TAG_ID.RB, TAG_ID.RP, TAG_ID.RT, TAG_ID.RTC]); -const IMPLICIT_END_TAG_REQUIRED_THOROUGHLY = new Set([ - ...IMPLICIT_END_TAG_REQUIRED, - TAG_ID.CAPTION, - TAG_ID.COLGROUP, - TAG_ID.TBODY, - TAG_ID.TD, - TAG_ID.TFOOT, - TAG_ID.TH, - TAG_ID.THEAD, - TAG_ID.TR, -]); -const SCOPING_ELEMENT_NS = new Map([ - [TAG_ID.APPLET, NS.HTML], - [TAG_ID.CAPTION, NS.HTML], - [TAG_ID.HTML, NS.HTML], - [TAG_ID.MARQUEE, NS.HTML], - [TAG_ID.OBJECT, NS.HTML], - [TAG_ID.TABLE, NS.HTML], - [TAG_ID.TD, NS.HTML], - [TAG_ID.TEMPLATE, NS.HTML], - [TAG_ID.TH, NS.HTML], - [TAG_ID.ANNOTATION_XML, NS.MATHML], - [TAG_ID.MI, NS.MATHML], - [TAG_ID.MN, NS.MATHML], - [TAG_ID.MO, NS.MATHML], - [TAG_ID.MS, NS.MATHML], - [TAG_ID.MTEXT, NS.MATHML], - [TAG_ID.DESC, NS.SVG], - [TAG_ID.FOREIGN_OBJECT, NS.SVG], - [TAG_ID.TITLE, NS.SVG], -]); -const NAMED_HEADERS = [TAG_ID.H1, TAG_ID.H2, TAG_ID.H3, TAG_ID.H4, TAG_ID.H5, TAG_ID.H6]; -const TABLE_ROW_CONTEXT = [TAG_ID.TR, TAG_ID.TEMPLATE, TAG_ID.HTML]; -const TABLE_BODY_CONTEXT = [TAG_ID.TBODY, TAG_ID.TFOOT, TAG_ID.THEAD, TAG_ID.TEMPLATE, TAG_ID.HTML]; -const TABLE_CONTEXT = [TAG_ID.TABLE, TAG_ID.TEMPLATE, TAG_ID.HTML]; -const TABLE_CELLS = [TAG_ID.TD, TAG_ID.TH]; -//Stack of open elements -class OpenElementStack { - get currentTmplContentOrNode() { - return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current; - } - constructor(document, treeAdapter, handler) { - this.treeAdapter = treeAdapter; - this.handler = handler; - this.items = []; - this.tagIDs = []; - this.stackTop = -1; - this.tmplCount = 0; - this.currentTagId = TAG_ID.UNKNOWN; - this.current = document; - } - //Index of element - _indexOf(element) { - return this.items.lastIndexOf(element, this.stackTop); - } - //Update current element - _isInTemplate() { - return this.currentTagId === TAG_ID.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === NS.HTML; - } - _updateCurrentElement() { - this.current = this.items[this.stackTop]; - this.currentTagId = this.tagIDs[this.stackTop]; - } - //Mutations - push(element, tagID) { - this.stackTop++; - this.items[this.stackTop] = element; - this.current = element; - this.tagIDs[this.stackTop] = tagID; - this.currentTagId = tagID; - if (this._isInTemplate()) { - this.tmplCount++; - } - this.handler.onItemPush(element, tagID, true); - } - pop() { - const popped = this.current; - if (this.tmplCount > 0 && this._isInTemplate()) { - this.tmplCount--; - } - this.stackTop--; - this._updateCurrentElement(); - this.handler.onItemPop(popped, true); - } - replace(oldElement, newElement) { - const idx = this._indexOf(oldElement); - this.items[idx] = newElement; - if (idx === this.stackTop) { - this.current = newElement; - } - } - insertAfter(referenceElement, newElement, newElementID) { - const insertionIdx = this._indexOf(referenceElement) + 1; - this.items.splice(insertionIdx, 0, newElement); - this.tagIDs.splice(insertionIdx, 0, newElementID); - this.stackTop++; - if (insertionIdx === this.stackTop) { - this._updateCurrentElement(); - } - this.handler.onItemPush(this.current, this.currentTagId, insertionIdx === this.stackTop); - } - popUntilTagNamePopped(tagName) { - let targetIdx = this.stackTop + 1; - do { - targetIdx = this.tagIDs.lastIndexOf(tagName, targetIdx - 1); - } while (targetIdx > 0 && this.treeAdapter.getNamespaceURI(this.items[targetIdx]) !== NS.HTML); - this.shortenToLength(targetIdx < 0 ? 0 : targetIdx); - } - shortenToLength(idx) { - while (this.stackTop >= idx) { - const popped = this.current; - if (this.tmplCount > 0 && this._isInTemplate()) { - this.tmplCount -= 1; - } - this.stackTop--; - this._updateCurrentElement(); - this.handler.onItemPop(popped, this.stackTop < idx); - } - } - popUntilElementPopped(element) { - const idx = this._indexOf(element); - this.shortenToLength(idx < 0 ? 0 : idx); - } - popUntilPopped(tagNames, targetNS) { - const idx = this._indexOfTagNames(tagNames, targetNS); - this.shortenToLength(idx < 0 ? 0 : idx); - } - popUntilNumberedHeaderPopped() { - this.popUntilPopped(NAMED_HEADERS, NS.HTML); - } - popUntilTableCellPopped() { - this.popUntilPopped(TABLE_CELLS, NS.HTML); - } - popAllUpToHtmlElement() { - //NOTE: here we assume that the root element is always first in the open element stack, so - //we perform this fast stack clean up. - this.tmplCount = 0; - this.shortenToLength(1); - } - _indexOfTagNames(tagNames, namespace) { - for (let i = this.stackTop; i >= 0; i--) { - if (tagNames.includes(this.tagIDs[i]) && this.treeAdapter.getNamespaceURI(this.items[i]) === namespace) { - return i; - } - } - return -1; - } - clearBackTo(tagNames, targetNS) { - const idx = this._indexOfTagNames(tagNames, targetNS); - this.shortenToLength(idx + 1); - } - clearBackToTableContext() { - this.clearBackTo(TABLE_CONTEXT, NS.HTML); - } - clearBackToTableBodyContext() { - this.clearBackTo(TABLE_BODY_CONTEXT, NS.HTML); - } - clearBackToTableRowContext() { - this.clearBackTo(TABLE_ROW_CONTEXT, NS.HTML); - } - remove(element) { - const idx = this._indexOf(element); - if (idx >= 0) { - if (idx === this.stackTop) { - this.pop(); - } - else { - this.items.splice(idx, 1); - this.tagIDs.splice(idx, 1); - this.stackTop--; - this._updateCurrentElement(); - this.handler.onItemPop(element, false); - } - } - } - //Search - tryPeekProperlyNestedBodyElement() { - //Properly nested element (should be second element in stack). - return this.stackTop >= 1 && this.tagIDs[1] === TAG_ID.BODY ? this.items[1] : null; - } - contains(element) { - return this._indexOf(element) > -1; - } - getCommonAncestor(element) { - const elementIdx = this._indexOf(element) - 1; - return elementIdx >= 0 ? this.items[elementIdx] : null; - } - isRootHtmlElementCurrent() { - return this.stackTop === 0 && this.tagIDs[0] === TAG_ID.HTML; - } - //Element in scope - hasInScope(tagName) { - for (let i = this.stackTop; i >= 0; i--) { - const tn = this.tagIDs[i]; - const ns = this.treeAdapter.getNamespaceURI(this.items[i]); - if (tn === tagName && ns === NS.HTML) { - return true; - } - if (SCOPING_ELEMENT_NS.get(tn) === ns) { - return false; - } - } - return true; - } - hasNumberedHeaderInScope() { - for (let i = this.stackTop; i >= 0; i--) { - const tn = this.tagIDs[i]; - const ns = this.treeAdapter.getNamespaceURI(this.items[i]); - if (isNumberedHeader(tn) && ns === NS.HTML) { - return true; - } - if (SCOPING_ELEMENT_NS.get(tn) === ns) { - return false; - } - } - return true; - } - hasInListItemScope(tagName) { - for (let i = this.stackTop; i >= 0; i--) { - const tn = this.tagIDs[i]; - const ns = this.treeAdapter.getNamespaceURI(this.items[i]); - if (tn === tagName && ns === NS.HTML) { - return true; - } - if (((tn === TAG_ID.UL || tn === TAG_ID.OL) && ns === NS.HTML) || SCOPING_ELEMENT_NS.get(tn) === ns) { - return false; - } - } - return true; - } - hasInButtonScope(tagName) { - for (let i = this.stackTop; i >= 0; i--) { - const tn = this.tagIDs[i]; - const ns = this.treeAdapter.getNamespaceURI(this.items[i]); - if (tn === tagName && ns === NS.HTML) { - return true; - } - if ((tn === TAG_ID.BUTTON && ns === NS.HTML) || SCOPING_ELEMENT_NS.get(tn) === ns) { - return false; - } - } - return true; - } - hasInTableScope(tagName) { - for (let i = this.stackTop; i >= 0; i--) { - const tn = this.tagIDs[i]; - const ns = this.treeAdapter.getNamespaceURI(this.items[i]); - if (ns !== NS.HTML) { - continue; - } - if (tn === tagName) { - return true; - } - if (tn === TAG_ID.TABLE || tn === TAG_ID.TEMPLATE || tn === TAG_ID.HTML) { - return false; - } - } - return true; - } - hasTableBodyContextInTableScope() { - for (let i = this.stackTop; i >= 0; i--) { - const tn = this.tagIDs[i]; - const ns = this.treeAdapter.getNamespaceURI(this.items[i]); - if (ns !== NS.HTML) { - continue; - } - if (tn === TAG_ID.TBODY || tn === TAG_ID.THEAD || tn === TAG_ID.TFOOT) { - return true; - } - if (tn === TAG_ID.TABLE || tn === TAG_ID.HTML) { - return false; - } - } - return true; - } - hasInSelectScope(tagName) { - for (let i = this.stackTop; i >= 0; i--) { - const tn = this.tagIDs[i]; - const ns = this.treeAdapter.getNamespaceURI(this.items[i]); - if (ns !== NS.HTML) { - continue; - } - if (tn === tagName) { - return true; - } - if (tn !== TAG_ID.OPTION && tn !== TAG_ID.OPTGROUP) { - return false; - } - } - return true; - } - //Implied end tags - generateImpliedEndTags() { - while (IMPLICIT_END_TAG_REQUIRED.has(this.currentTagId)) { - this.pop(); - } - } - generateImpliedEndTagsThoroughly() { - while (IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId)) { - this.pop(); - } - } - generateImpliedEndTagsWithExclusion(exclusionId) { - while (this.currentTagId !== exclusionId && IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId)) { - this.pop(); - } - } -} - -//Const -const NOAH_ARK_CAPACITY = 3; -var EntryType; -(function (EntryType) { - EntryType[EntryType["Marker"] = 0] = "Marker"; - EntryType[EntryType["Element"] = 1] = "Element"; -})(EntryType = EntryType || (EntryType = {})); -const MARKER = { type: EntryType.Marker }; -//List of formatting elements -class FormattingElementList { - constructor(treeAdapter) { - this.treeAdapter = treeAdapter; - this.entries = []; - this.bookmark = null; - } - //Noah Ark's condition - //OPTIMIZATION: at first we try to find possible candidates for exclusion using - //lightweight heuristics without thorough attributes check. - _getNoahArkConditionCandidates(newElement, neAttrs) { - const candidates = []; - const neAttrsLength = neAttrs.length; - const neTagName = this.treeAdapter.getTagName(newElement); - const neNamespaceURI = this.treeAdapter.getNamespaceURI(newElement); - for (let i = 0; i < this.entries.length; i++) { - const entry = this.entries[i]; - if (entry.type === EntryType.Marker) { - break; - } - const { element } = entry; - if (this.treeAdapter.getTagName(element) === neTagName && - this.treeAdapter.getNamespaceURI(element) === neNamespaceURI) { - const elementAttrs = this.treeAdapter.getAttrList(element); - if (elementAttrs.length === neAttrsLength) { - candidates.push({ idx: i, attrs: elementAttrs }); - } - } - } - return candidates; - } - _ensureNoahArkCondition(newElement) { - if (this.entries.length < NOAH_ARK_CAPACITY) - return; - const neAttrs = this.treeAdapter.getAttrList(newElement); - const candidates = this._getNoahArkConditionCandidates(newElement, neAttrs); - if (candidates.length < NOAH_ARK_CAPACITY) - return; - //NOTE: build attrs map for the new element, so we can perform fast lookups - const neAttrsMap = new Map(neAttrs.map((neAttr) => [neAttr.name, neAttr.value])); - let validCandidates = 0; - //NOTE: remove bottommost candidates, until Noah's Ark condition will not be met - for (let i = 0; i < candidates.length; i++) { - const candidate = candidates[i]; - // We know that `candidate.attrs.length === neAttrs.length` - if (candidate.attrs.every((cAttr) => neAttrsMap.get(cAttr.name) === cAttr.value)) { - validCandidates += 1; - if (validCandidates >= NOAH_ARK_CAPACITY) { - this.entries.splice(candidate.idx, 1); - } - } - } - } - //Mutations - insertMarker() { - this.entries.unshift(MARKER); - } - pushElement(element, token) { - this._ensureNoahArkCondition(element); - this.entries.unshift({ - type: EntryType.Element, - element, - token, - }); - } - insertElementAfterBookmark(element, token) { - const bookmarkIdx = this.entries.indexOf(this.bookmark); - this.entries.splice(bookmarkIdx, 0, { - type: EntryType.Element, - element, - token, - }); - } - removeEntry(entry) { - const entryIndex = this.entries.indexOf(entry); - if (entryIndex >= 0) { - this.entries.splice(entryIndex, 1); - } - } - /** - * Clears the list of formatting elements up to the last marker. - * - * @see https://html.spec.whatwg.org/multipage/parsing.html#clear-the-list-of-active-formatting-elements-up-to-the-last-marker - */ - clearToLastMarker() { - const markerIdx = this.entries.indexOf(MARKER); - if (markerIdx >= 0) { - this.entries.splice(0, markerIdx + 1); - } - else { - this.entries.length = 0; - } - } - //Search - getElementEntryInScopeWithTagName(tagName) { - const entry = this.entries.find((entry) => entry.type === EntryType.Marker || this.treeAdapter.getTagName(entry.element) === tagName); - return entry && entry.type === EntryType.Element ? entry : null; - } - getElementEntry(element) { - return this.entries.find((entry) => entry.type === EntryType.Element && entry.element === element); - } -} - -function createTextNode(value) { - return { - nodeName: '#text', - value, - parentNode: null, - }; -} -const defaultTreeAdapter = { - //Node construction - createDocument() { - return { - nodeName: '#document', - mode: DOCUMENT_MODE.NO_QUIRKS, - childNodes: [], - }; - }, - createDocumentFragment() { - return { - nodeName: '#document-fragment', - childNodes: [], - }; - }, - createElement(tagName, namespaceURI, attrs) { - return { - nodeName: tagName, - tagName, - attrs, - namespaceURI, - childNodes: [], - parentNode: null, - }; - }, - createCommentNode(data) { - return { - nodeName: '#comment', - data, - parentNode: null, - }; - }, - //Tree mutation - appendChild(parentNode, newNode) { - parentNode.childNodes.push(newNode); - newNode.parentNode = parentNode; - }, - insertBefore(parentNode, newNode, referenceNode) { - const insertionIdx = parentNode.childNodes.indexOf(referenceNode); - parentNode.childNodes.splice(insertionIdx, 0, newNode); - newNode.parentNode = parentNode; - }, - setTemplateContent(templateElement, contentElement) { - templateElement.content = contentElement; - }, - getTemplateContent(templateElement) { - return templateElement.content; - }, - setDocumentType(document, name, publicId, systemId) { - const doctypeNode = document.childNodes.find((node) => node.nodeName === '#documentType'); - if (doctypeNode) { - doctypeNode.name = name; - doctypeNode.publicId = publicId; - doctypeNode.systemId = systemId; - } - else { - const node = { - nodeName: '#documentType', - name, - publicId, - systemId, - parentNode: null, - }; - defaultTreeAdapter.appendChild(document, node); - } - }, - setDocumentMode(document, mode) { - document.mode = mode; - }, - getDocumentMode(document) { - return document.mode; - }, - detachNode(node) { - if (node.parentNode) { - const idx = node.parentNode.childNodes.indexOf(node); - node.parentNode.childNodes.splice(idx, 1); - node.parentNode = null; - } - }, - insertText(parentNode, text) { - if (parentNode.childNodes.length > 0) { - const prevNode = parentNode.childNodes[parentNode.childNodes.length - 1]; - if (defaultTreeAdapter.isTextNode(prevNode)) { - prevNode.value += text; - return; - } - } - defaultTreeAdapter.appendChild(parentNode, createTextNode(text)); - }, - insertTextBefore(parentNode, text, referenceNode) { - const prevNode = parentNode.childNodes[parentNode.childNodes.indexOf(referenceNode) - 1]; - if (prevNode && defaultTreeAdapter.isTextNode(prevNode)) { - prevNode.value += text; - } - else { - defaultTreeAdapter.insertBefore(parentNode, createTextNode(text), referenceNode); - } - }, - adoptAttributes(recipient, attrs) { - const recipientAttrsMap = new Set(recipient.attrs.map((attr) => attr.name)); - for (let j = 0; j < attrs.length; j++) { - if (!recipientAttrsMap.has(attrs[j].name)) { - recipient.attrs.push(attrs[j]); - } - } - }, - //Tree traversing - getFirstChild(node) { - return node.childNodes[0]; - }, - getChildNodes(node) { - return node.childNodes; - }, - getParentNode(node) { - return node.parentNode; - }, - getAttrList(element) { - return element.attrs; - }, - //Node data - getTagName(element) { - return element.tagName; - }, - getNamespaceURI(element) { - return element.namespaceURI; - }, - getTextNodeContent(textNode) { - return textNode.value; - }, - getCommentNodeContent(commentNode) { - return commentNode.data; - }, - getDocumentTypeNodeName(doctypeNode) { - return doctypeNode.name; - }, - getDocumentTypeNodePublicId(doctypeNode) { - return doctypeNode.publicId; - }, - getDocumentTypeNodeSystemId(doctypeNode) { - return doctypeNode.systemId; - }, - //Node types - isTextNode(node) { - return node.nodeName === '#text'; - }, - isCommentNode(node) { - return node.nodeName === '#comment'; - }, - isDocumentTypeNode(node) { - return node.nodeName === '#documentType'; - }, - isElementNode(node) { - return Object.prototype.hasOwnProperty.call(node, 'tagName'); - }, - // Source code location - setNodeSourceCodeLocation(node, location) { - node.sourceCodeLocation = location; - }, - getNodeSourceCodeLocation(node) { - return node.sourceCodeLocation; - }, - updateNodeSourceCodeLocation(node, endLocation) { - node.sourceCodeLocation = { ...node.sourceCodeLocation, ...endLocation }; - }, -}; - -//Const -const VALID_DOCTYPE_NAME = 'html'; -const VALID_SYSTEM_ID = 'about:legacy-compat'; -const QUIRKS_MODE_SYSTEM_ID = 'http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd'; -const QUIRKS_MODE_PUBLIC_ID_PREFIXES = [ - '+//silmaril//dtd html pro v0r11 19970101//', - '-//as//dtd html 3.0 aswedit + extensions//', - '-//advasoft ltd//dtd html 3.0 aswedit + extensions//', - '-//ietf//dtd html 2.0 level 1//', - '-//ietf//dtd html 2.0 level 2//', - '-//ietf//dtd html 2.0 strict level 1//', - '-//ietf//dtd html 2.0 strict level 2//', - '-//ietf//dtd html 2.0 strict//', - '-//ietf//dtd html 2.0//', - '-//ietf//dtd html 2.1e//', - '-//ietf//dtd html 3.0//', - '-//ietf//dtd html 3.2 final//', - '-//ietf//dtd html 3.2//', - '-//ietf//dtd html 3//', - '-//ietf//dtd html level 0//', - '-//ietf//dtd html level 1//', - '-//ietf//dtd html level 2//', - '-//ietf//dtd html level 3//', - '-//ietf//dtd html strict level 0//', - '-//ietf//dtd html strict level 1//', - '-//ietf//dtd html strict level 2//', - '-//ietf//dtd html strict level 3//', - '-//ietf//dtd html strict//', - '-//ietf//dtd html//', - '-//metrius//dtd metrius presentational//', - '-//microsoft//dtd internet explorer 2.0 html strict//', - '-//microsoft//dtd internet explorer 2.0 html//', - '-//microsoft//dtd internet explorer 2.0 tables//', - '-//microsoft//dtd internet explorer 3.0 html strict//', - '-//microsoft//dtd internet explorer 3.0 html//', - '-//microsoft//dtd internet explorer 3.0 tables//', - '-//netscape comm. corp.//dtd html//', - '-//netscape comm. corp.//dtd strict html//', - "-//o'reilly and associates//dtd html 2.0//", - "-//o'reilly and associates//dtd html extended 1.0//", - "-//o'reilly and associates//dtd html extended relaxed 1.0//", - '-//sq//dtd html 2.0 hotmetal + extensions//', - '-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//', - '-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//', - '-//spyglass//dtd html 2.0 extended//', - '-//sun microsystems corp.//dtd hotjava html//', - '-//sun microsystems corp.//dtd hotjava strict html//', - '-//w3c//dtd html 3 1995-03-24//', - '-//w3c//dtd html 3.2 draft//', - '-//w3c//dtd html 3.2 final//', - '-//w3c//dtd html 3.2//', - '-//w3c//dtd html 3.2s draft//', - '-//w3c//dtd html 4.0 frameset//', - '-//w3c//dtd html 4.0 transitional//', - '-//w3c//dtd html experimental 19960712//', - '-//w3c//dtd html experimental 970421//', - '-//w3c//dtd w3 html//', - '-//w3o//dtd w3 html 3.0//', - '-//webtechs//dtd mozilla html 2.0//', - '-//webtechs//dtd mozilla html//', -]; -const QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES = [ - ...QUIRKS_MODE_PUBLIC_ID_PREFIXES, - '-//w3c//dtd html 4.01 frameset//', - '-//w3c//dtd html 4.01 transitional//', -]; -const QUIRKS_MODE_PUBLIC_IDS = new Set([ - '-//w3o//dtd w3 html strict 3.0//en//', - '-/w3c/dtd html 4.0 transitional/en', - 'html', -]); -const LIMITED_QUIRKS_PUBLIC_ID_PREFIXES = ['-//w3c//dtd xhtml 1.0 frameset//', '-//w3c//dtd xhtml 1.0 transitional//']; -const LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES = [ - ...LIMITED_QUIRKS_PUBLIC_ID_PREFIXES, - '-//w3c//dtd html 4.01 frameset//', - '-//w3c//dtd html 4.01 transitional//', -]; -//Utils -function hasPrefix(publicId, prefixes) { - return prefixes.some((prefix) => publicId.startsWith(prefix)); -} -//API -function isConforming(token) { - return (token.name === VALID_DOCTYPE_NAME && - token.publicId === null && - (token.systemId === null || token.systemId === VALID_SYSTEM_ID)); -} -function getDocumentMode(token) { - if (token.name !== VALID_DOCTYPE_NAME) { - return DOCUMENT_MODE.QUIRKS; - } - const { systemId } = token; - if (systemId && systemId.toLowerCase() === QUIRKS_MODE_SYSTEM_ID) { - return DOCUMENT_MODE.QUIRKS; - } - let { publicId } = token; - if (publicId !== null) { - publicId = publicId.toLowerCase(); - if (QUIRKS_MODE_PUBLIC_IDS.has(publicId)) { - return DOCUMENT_MODE.QUIRKS; - } - let prefixes = systemId === null ? QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES : QUIRKS_MODE_PUBLIC_ID_PREFIXES; - if (hasPrefix(publicId, prefixes)) { - return DOCUMENT_MODE.QUIRKS; - } - prefixes = - systemId === null ? LIMITED_QUIRKS_PUBLIC_ID_PREFIXES : LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES; - if (hasPrefix(publicId, prefixes)) { - return DOCUMENT_MODE.LIMITED_QUIRKS; - } - } - return DOCUMENT_MODE.NO_QUIRKS; -} - -//MIME types -const MIME_TYPES = { - TEXT_HTML: 'text/html', - APPLICATION_XML: 'application/xhtml+xml', -}; -//Attributes -const DEFINITION_URL_ATTR = 'definitionurl'; -const ADJUSTED_DEFINITION_URL_ATTR = 'definitionURL'; -const SVG_ATTRS_ADJUSTMENT_MAP = new Map([ - 'attributeName', - 'attributeType', - 'baseFrequency', - 'baseProfile', - 'calcMode', - 'clipPathUnits', - 'diffuseConstant', - 'edgeMode', - 'filterUnits', - 'glyphRef', - 'gradientTransform', - 'gradientUnits', - 'kernelMatrix', - 'kernelUnitLength', - 'keyPoints', - 'keySplines', - 'keyTimes', - 'lengthAdjust', - 'limitingConeAngle', - 'markerHeight', - 'markerUnits', - 'markerWidth', - 'maskContentUnits', - 'maskUnits', - 'numOctaves', - 'pathLength', - 'patternContentUnits', - 'patternTransform', - 'patternUnits', - 'pointsAtX', - 'pointsAtY', - 'pointsAtZ', - 'preserveAlpha', - 'preserveAspectRatio', - 'primitiveUnits', - 'refX', - 'refY', - 'repeatCount', - 'repeatDur', - 'requiredExtensions', - 'requiredFeatures', - 'specularConstant', - 'specularExponent', - 'spreadMethod', - 'startOffset', - 'stdDeviation', - 'stitchTiles', - 'surfaceScale', - 'systemLanguage', - 'tableValues', - 'targetX', - 'targetY', - 'textLength', - 'viewBox', - 'viewTarget', - 'xChannelSelector', - 'yChannelSelector', - 'zoomAndPan', -].map((attr) => [attr.toLowerCase(), attr])); -const XML_ATTRS_ADJUSTMENT_MAP = new Map([ - ['xlink:actuate', { prefix: 'xlink', name: 'actuate', namespace: NS.XLINK }], - ['xlink:arcrole', { prefix: 'xlink', name: 'arcrole', namespace: NS.XLINK }], - ['xlink:href', { prefix: 'xlink', name: 'href', namespace: NS.XLINK }], - ['xlink:role', { prefix: 'xlink', name: 'role', namespace: NS.XLINK }], - ['xlink:show', { prefix: 'xlink', name: 'show', namespace: NS.XLINK }], - ['xlink:title', { prefix: 'xlink', name: 'title', namespace: NS.XLINK }], - ['xlink:type', { prefix: 'xlink', name: 'type', namespace: NS.XLINK }], - ['xml:base', { prefix: 'xml', name: 'base', namespace: NS.XML }], - ['xml:lang', { prefix: 'xml', name: 'lang', namespace: NS.XML }], - ['xml:space', { prefix: 'xml', name: 'space', namespace: NS.XML }], - ['xmlns', { prefix: '', name: 'xmlns', namespace: NS.XMLNS }], - ['xmlns:xlink', { prefix: 'xmlns', name: 'xlink', namespace: NS.XMLNS }], -]); -//SVG tag names adjustment map -const SVG_TAG_NAMES_ADJUSTMENT_MAP = new Map([ - 'altGlyph', - 'altGlyphDef', - 'altGlyphItem', - 'animateColor', - 'animateMotion', - 'animateTransform', - 'clipPath', - 'feBlend', - 'feColorMatrix', - 'feComponentTransfer', - 'feComposite', - 'feConvolveMatrix', - 'feDiffuseLighting', - 'feDisplacementMap', - 'feDistantLight', - 'feFlood', - 'feFuncA', - 'feFuncB', - 'feFuncG', - 'feFuncR', - 'feGaussianBlur', - 'feImage', - 'feMerge', - 'feMergeNode', - 'feMorphology', - 'feOffset', - 'fePointLight', - 'feSpecularLighting', - 'feSpotLight', - 'feTile', - 'feTurbulence', - 'foreignObject', - 'glyphRef', - 'linearGradient', - 'radialGradient', - 'textPath', -].map((tn) => [tn.toLowerCase(), tn])); -//Tags that causes exit from foreign content -const EXITS_FOREIGN_CONTENT = new Set([ - TAG_ID.B, - TAG_ID.BIG, - TAG_ID.BLOCKQUOTE, - TAG_ID.BODY, - TAG_ID.BR, - TAG_ID.CENTER, - TAG_ID.CODE, - TAG_ID.DD, - TAG_ID.DIV, - TAG_ID.DL, - TAG_ID.DT, - TAG_ID.EM, - TAG_ID.EMBED, - TAG_ID.H1, - TAG_ID.H2, - TAG_ID.H3, - TAG_ID.H4, - TAG_ID.H5, - TAG_ID.H6, - TAG_ID.HEAD, - TAG_ID.HR, - TAG_ID.I, - TAG_ID.IMG, - TAG_ID.LI, - TAG_ID.LISTING, - TAG_ID.MENU, - TAG_ID.META, - TAG_ID.NOBR, - TAG_ID.OL, - TAG_ID.P, - TAG_ID.PRE, - TAG_ID.RUBY, - TAG_ID.S, - TAG_ID.SMALL, - TAG_ID.SPAN, - TAG_ID.STRONG, - TAG_ID.STRIKE, - TAG_ID.SUB, - TAG_ID.SUP, - TAG_ID.TABLE, - TAG_ID.TT, - TAG_ID.U, - TAG_ID.UL, - TAG_ID.VAR, -]); -//Check exit from foreign content -function causesExit(startTagToken) { - const tn = startTagToken.tagID; - const isFontWithAttrs = tn === TAG_ID.FONT && - startTagToken.attrs.some(({ name }) => name === ATTRS.COLOR || name === ATTRS.SIZE || name === ATTRS.FACE); - return isFontWithAttrs || EXITS_FOREIGN_CONTENT.has(tn); -} -//Token adjustments -function adjustTokenMathMLAttrs(token) { - for (let i = 0; i < token.attrs.length; i++) { - if (token.attrs[i].name === DEFINITION_URL_ATTR) { - token.attrs[i].name = ADJUSTED_DEFINITION_URL_ATTR; - break; - } - } -} -function adjustTokenSVGAttrs(token) { - for (let i = 0; i < token.attrs.length; i++) { - const adjustedAttrName = SVG_ATTRS_ADJUSTMENT_MAP.get(token.attrs[i].name); - if (adjustedAttrName != null) { - token.attrs[i].name = adjustedAttrName; - } - } -} -function adjustTokenXMLAttrs(token) { - for (let i = 0; i < token.attrs.length; i++) { - const adjustedAttrEntry = XML_ATTRS_ADJUSTMENT_MAP.get(token.attrs[i].name); - if (adjustedAttrEntry) { - token.attrs[i].prefix = adjustedAttrEntry.prefix; - token.attrs[i].name = adjustedAttrEntry.name; - token.attrs[i].namespace = adjustedAttrEntry.namespace; - } - } -} -function adjustTokenSVGTagName(token) { - const adjustedTagName = SVG_TAG_NAMES_ADJUSTMENT_MAP.get(token.tagName); - if (adjustedTagName != null) { - token.tagName = adjustedTagName; - token.tagID = getTagID(token.tagName); - } -} -//Integration points -function isMathMLTextIntegrationPoint(tn, ns) { - return ns === NS.MATHML && (tn === TAG_ID.MI || tn === TAG_ID.MO || tn === TAG_ID.MN || tn === TAG_ID.MS || tn === TAG_ID.MTEXT); -} -function isHtmlIntegrationPoint(tn, ns, attrs) { - if (ns === NS.MATHML && tn === TAG_ID.ANNOTATION_XML) { - for (let i = 0; i < attrs.length; i++) { - if (attrs[i].name === ATTRS.ENCODING) { - const value = attrs[i].value.toLowerCase(); - return value === MIME_TYPES.TEXT_HTML || value === MIME_TYPES.APPLICATION_XML; - } - } - } - return ns === NS.SVG && (tn === TAG_ID.FOREIGN_OBJECT || tn === TAG_ID.DESC || tn === TAG_ID.TITLE); -} -function isIntegrationPoint(tn, ns, attrs, foreignNS) { - return (((!foreignNS || foreignNS === NS.HTML) && isHtmlIntegrationPoint(tn, ns, attrs)) || - ((!foreignNS || foreignNS === NS.MATHML) && isMathMLTextIntegrationPoint(tn, ns))); -} - -//Misc constants -const HIDDEN_INPUT_TYPE = 'hidden'; -//Adoption agency loops iteration count -const AA_OUTER_LOOP_ITER = 8; -const AA_INNER_LOOP_ITER = 3; -//Insertion modes -var InsertionMode; -(function (InsertionMode) { - InsertionMode[InsertionMode["INITIAL"] = 0] = "INITIAL"; - InsertionMode[InsertionMode["BEFORE_HTML"] = 1] = "BEFORE_HTML"; - InsertionMode[InsertionMode["BEFORE_HEAD"] = 2] = "BEFORE_HEAD"; - InsertionMode[InsertionMode["IN_HEAD"] = 3] = "IN_HEAD"; - InsertionMode[InsertionMode["IN_HEAD_NO_SCRIPT"] = 4] = "IN_HEAD_NO_SCRIPT"; - InsertionMode[InsertionMode["AFTER_HEAD"] = 5] = "AFTER_HEAD"; - InsertionMode[InsertionMode["IN_BODY"] = 6] = "IN_BODY"; - InsertionMode[InsertionMode["TEXT"] = 7] = "TEXT"; - InsertionMode[InsertionMode["IN_TABLE"] = 8] = "IN_TABLE"; - InsertionMode[InsertionMode["IN_TABLE_TEXT"] = 9] = "IN_TABLE_TEXT"; - InsertionMode[InsertionMode["IN_CAPTION"] = 10] = "IN_CAPTION"; - InsertionMode[InsertionMode["IN_COLUMN_GROUP"] = 11] = "IN_COLUMN_GROUP"; - InsertionMode[InsertionMode["IN_TABLE_BODY"] = 12] = "IN_TABLE_BODY"; - InsertionMode[InsertionMode["IN_ROW"] = 13] = "IN_ROW"; - InsertionMode[InsertionMode["IN_CELL"] = 14] = "IN_CELL"; - InsertionMode[InsertionMode["IN_SELECT"] = 15] = "IN_SELECT"; - InsertionMode[InsertionMode["IN_SELECT_IN_TABLE"] = 16] = "IN_SELECT_IN_TABLE"; - InsertionMode[InsertionMode["IN_TEMPLATE"] = 17] = "IN_TEMPLATE"; - InsertionMode[InsertionMode["AFTER_BODY"] = 18] = "AFTER_BODY"; - InsertionMode[InsertionMode["IN_FRAMESET"] = 19] = "IN_FRAMESET"; - InsertionMode[InsertionMode["AFTER_FRAMESET"] = 20] = "AFTER_FRAMESET"; - InsertionMode[InsertionMode["AFTER_AFTER_BODY"] = 21] = "AFTER_AFTER_BODY"; - InsertionMode[InsertionMode["AFTER_AFTER_FRAMESET"] = 22] = "AFTER_AFTER_FRAMESET"; -})(InsertionMode || (InsertionMode = {})); -const BASE_LOC = { - startLine: -1, - startCol: -1, - startOffset: -1, - endLine: -1, - endCol: -1, - endOffset: -1, -}; -const TABLE_STRUCTURE_TAGS = new Set([TAG_ID.TABLE, TAG_ID.TBODY, TAG_ID.TFOOT, TAG_ID.THEAD, TAG_ID.TR]); -const defaultParserOptions = { - scriptingEnabled: true, - sourceCodeLocationInfo: false, - treeAdapter: defaultTreeAdapter, - onParseError: null, -}; -//Parser -class Parser { - constructor(options, document, fragmentContext = null, scriptHandler = null) { - this.fragmentContext = fragmentContext; - this.scriptHandler = scriptHandler; - this.currentToken = null; - this.stopped = false; - this.insertionMode = InsertionMode.INITIAL; - this.originalInsertionMode = InsertionMode.INITIAL; - this.headElement = null; - this.formElement = null; - /** Indicates that the current node is not an element in the HTML namespace */ - this.currentNotInHTML = false; - /** - * The template insertion mode stack is maintained from the left. - * Ie. the topmost element will always have index 0. - */ - this.tmplInsertionModeStack = []; - this.pendingCharacterTokens = []; - this.hasNonWhitespacePendingCharacterToken = false; - this.framesetOk = true; - this.skipNextNewLine = false; - this.fosterParentingEnabled = false; - this.options = { - ...defaultParserOptions, - ...options, - }; - this.treeAdapter = this.options.treeAdapter; - this.onParseError = this.options.onParseError; - // Always enable location info if we report parse errors. - if (this.onParseError) { - this.options.sourceCodeLocationInfo = true; - } - this.document = document !== null && document !== void 0 ? document : this.treeAdapter.createDocument(); - this.tokenizer = new Tokenizer(this.options, this); - this.activeFormattingElements = new FormattingElementList(this.treeAdapter); - this.fragmentContextID = fragmentContext ? getTagID(this.treeAdapter.getTagName(fragmentContext)) : TAG_ID.UNKNOWN; - this._setContextModes(fragmentContext !== null && fragmentContext !== void 0 ? fragmentContext : this.document, this.fragmentContextID); - this.openElements = new OpenElementStack(this.document, this.treeAdapter, this); - } - // API - static parse(html, options) { - const parser = new this(options); - parser.tokenizer.write(html, true); - return parser.document; - } - static getFragmentParser(fragmentContext, options) { - const opts = { - ...defaultParserOptions, - ...options, - }; - //NOTE: use a