Merge branch 'main' into update-bundle/codeql-bundle-v2.14.3
This commit is contained in:
Коммит
a2d14d32b8
|
@ -31,7 +31,7 @@ runs:
|
|||
fi
|
||||
echo "version=$VERSION" | tee -a $GITHUB_OUTPUT
|
||||
|
||||
- uses: swift-actions/setup-swift@65540b95f51493d65f5e59e97dcef9629ddf11bf # Please update the corresponding SHA in the CLI's CodeQL Action Integration Test.
|
||||
- uses: swift-actions/setup-swift@cdcbe8e35d3801acd82d7109285e6ab22c9212c2 # Please update the corresponding SHA in the CLI's CodeQL Action Integration Test.
|
||||
if: runner.os == 'Linux' && steps.get_swift_version.outputs.version != 'null'
|
||||
with:
|
||||
swift-version: "${{ steps.get_swift_version.outputs.version }}"
|
||||
|
|
|
@ -4,8 +4,9 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th
|
|||
|
||||
## [UNRELEASED]
|
||||
|
||||
- Fixed a bug in CodeQL Action 2.21.3 onwards that affected beta support for [Project Lombok](https://projectlombok.org/) when analyzing Java. The environment variable `CODEQL_EXTRACTOR_JAVA_RUN_ANNOTATION_PROCESSORS` will now be respected if it was manually configured in the workflow. [#1844](https://github.com/github/codeql-action/pull/1844)
|
||||
- Update default CodeQL bundle version to 2.14.3. [#1845](https://github.com/github/codeql-action/pull/1845)
|
||||
- Fixed a bug in CodeQL Action 2.21.3 onwards that affected beta support for [Project Lombok](https://projectlombok.org/) when analyzing Java. The environment variable `CODEQL_EXTRACTOR_JAVA_RUN_ANNOTATION_PROCESSORS` will now be respected if it was manually configured in the workflow. [#1844](https://github.com/github/codeql-action/pull/1844)
|
||||
- Enable support for Kotlin 1.9.20 when running with CodeQL CLI v2.13.4 through v2.14.3. [#1853](https://github.com/github/codeql-action/pull/1853)
|
||||
|
||||
## 2.21.4 - 14 Aug 2023
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@ The underlying CodeQL CLI, used in this action, is licensed under the [GitHub Co
|
|||
|
||||
## Usage
|
||||
|
||||
We recommend using default setup to configure CodeQL analysis for your repository. For more information, see "[Configuring default setup for code scanning](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-default-setup-for-code-scanning)."
|
||||
We recommend using default setup to configure CodeQL analysis for your repository. For more information, see "[Configuring default setup for code scanning](https://docs.github.com/en/code-security/code-scanning/enabling-code-scanning/configuring-default-setup-for-code-scanning)."
|
||||
|
||||
You can also configure advanced setup for a repository to find security vulnerabilities in your code using a highly customizable code scanning configuration. For more information, see "[Configuring advanced setup for code scanning](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-advanced-setup-for-code-scanning)" and "[Customizing code scanning](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/customizing-code-scanning)."
|
||||
You can also configure advanced setup for a repository to find security vulnerabilities in your code using a highly customizable code scanning configuration. For more information, see "[Configuring advanced setup for code scanning](https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/configuring-advanced-setup-for-code-scanning)" and "[Customizing your advanced setup for code scanning](https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning)."
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
|
|
|
@ -179,6 +179,11 @@ async function run() {
|
|||
if (await features.getValue(feature_flags_1.Feature.DisableKotlinAnalysisEnabled)) {
|
||||
core.exportVariable("CODEQL_EXTRACTOR_JAVA_AGENT_DISABLE_KOTLIN", "true");
|
||||
}
|
||||
const kotlinLimitVar = "CODEQL_EXTRACTOR_KOTLIN_OVERRIDE_MAXIMUM_VERSION_LIMIT";
|
||||
if ((await (0, util_1.codeQlVersionAbove)(codeql, "2.13.4")) &&
|
||||
!(await (0, util_1.codeQlVersionAbove)(codeql, "2.14.4"))) {
|
||||
core.exportVariable(kotlinLimitVar, "1.9.20");
|
||||
}
|
||||
if (config.languages.includes(languages_1.Language.java)) {
|
||||
const envVar = "CODEQL_EXTRACTOR_JAVA_RUN_ANNOTATION_PROCESSORS";
|
||||
if (process.env[envVar]) {
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -41,6 +41,14 @@
|
|||
"uuid": "^3.3.3"
|
||||
}
|
||||
},
|
||||
"node_modules/@actions/cache/node_modules/semver": {
|
||||
"version": "6.3.1",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
|
||||
"integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
|
||||
"bin": {
|
||||
"semver": "bin/semver.js"
|
||||
}
|
||||
},
|
||||
"node_modules/@actions/cache/node_modules/uuid": {
|
||||
"version": "3.4.0",
|
||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
|
||||
|
@ -926,16 +934,16 @@
|
|||
"integrity": "sha512-kNnC1GFBLuhImSnV7w4njQkUiJi0ZXUycu1rUaouPqiKlXkh77JKgdRnTAp1x5eBwcIwbtI+3otwzuIDEuDoxQ=="
|
||||
},
|
||||
"node_modules/@typescript-eslint/eslint-plugin": {
|
||||
"version": "6.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.4.0.tgz",
|
||||
"integrity": "sha512-62o2Hmc7Gs3p8SLfbXcipjWAa6qk2wZGChXG2JbBtYpwSRmti/9KHLqfbLs9uDigOexG+3PaQ9G2g3201FWLKg==",
|
||||
"version": "6.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.4.1.tgz",
|
||||
"integrity": "sha512-3F5PtBzUW0dYlq77Lcqo13fv+58KDwUib3BddilE8ajPJT+faGgxmI9Sw+I8ZS22BYwoir9ZhNXcLi+S+I2bkw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@eslint-community/regexpp": "^4.5.1",
|
||||
"@typescript-eslint/scope-manager": "6.4.0",
|
||||
"@typescript-eslint/type-utils": "6.4.0",
|
||||
"@typescript-eslint/utils": "6.4.0",
|
||||
"@typescript-eslint/visitor-keys": "6.4.0",
|
||||
"@typescript-eslint/scope-manager": "6.4.1",
|
||||
"@typescript-eslint/type-utils": "6.4.1",
|
||||
"@typescript-eslint/utils": "6.4.1",
|
||||
"@typescript-eslint/visitor-keys": "6.4.1",
|
||||
"debug": "^4.3.4",
|
||||
"graphemer": "^1.4.0",
|
||||
"ignore": "^5.2.4",
|
||||
|
@ -961,15 +969,15 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/parser": {
|
||||
"version": "6.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.4.0.tgz",
|
||||
"integrity": "sha512-I1Ah1irl033uxjxO9Xql7+biL3YD7w9IU8zF+xlzD/YxY6a4b7DYA08PXUUCbm2sEljwJF6ERFy2kTGAGcNilg==",
|
||||
"version": "6.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.4.1.tgz",
|
||||
"integrity": "sha512-610G6KHymg9V7EqOaNBMtD1GgpAmGROsmfHJPXNLCU9bfIuLrkdOygltK784F6Crboyd5tBFayPB7Sf0McrQwg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/scope-manager": "6.4.0",
|
||||
"@typescript-eslint/types": "6.4.0",
|
||||
"@typescript-eslint/typescript-estree": "6.4.0",
|
||||
"@typescript-eslint/visitor-keys": "6.4.0",
|
||||
"@typescript-eslint/scope-manager": "6.4.1",
|
||||
"@typescript-eslint/types": "6.4.1",
|
||||
"@typescript-eslint/typescript-estree": "6.4.1",
|
||||
"@typescript-eslint/visitor-keys": "6.4.1",
|
||||
"debug": "^4.3.4"
|
||||
},
|
||||
"engines": {
|
||||
|
@ -989,13 +997,13 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/scope-manager": {
|
||||
"version": "6.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.4.0.tgz",
|
||||
"integrity": "sha512-TUS7vaKkPWDVvl7GDNHFQMsMruD+zhkd3SdVW0d7b+7Zo+bd/hXJQ8nsiUZMi1jloWo6c9qt3B7Sqo+flC1nig==",
|
||||
"version": "6.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.4.1.tgz",
|
||||
"integrity": "sha512-p/OavqOQfm4/Hdrr7kvacOSFjwQ2rrDVJRPxt/o0TOWdFnjJptnjnZ+sYDR7fi4OimvIuKp+2LCkc+rt9fIW+A==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "6.4.0",
|
||||
"@typescript-eslint/visitor-keys": "6.4.0"
|
||||
"@typescript-eslint/types": "6.4.1",
|
||||
"@typescript-eslint/visitor-keys": "6.4.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^16.0.0 || >=18.0.0"
|
||||
|
@ -1006,13 +1014,13 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/type-utils": {
|
||||
"version": "6.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.4.0.tgz",
|
||||
"integrity": "sha512-TvqrUFFyGY0cX3WgDHcdl2/mMCWCDv/0thTtx/ODMY1QhEiyFtv/OlLaNIiYLwRpAxAtOLOY9SUf1H3Q3dlwAg==",
|
||||
"version": "6.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.4.1.tgz",
|
||||
"integrity": "sha512-7ON8M8NXh73SGZ5XvIqWHjgX2f+vvaOarNliGhjrJnv1vdjG0LVIz+ToYfPirOoBi56jxAKLfsLm40+RvxVVXA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/typescript-estree": "6.4.0",
|
||||
"@typescript-eslint/utils": "6.4.0",
|
||||
"@typescript-eslint/typescript-estree": "6.4.1",
|
||||
"@typescript-eslint/utils": "6.4.1",
|
||||
"debug": "^4.3.4",
|
||||
"ts-api-utils": "^1.0.1"
|
||||
},
|
||||
|
@ -1033,9 +1041,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/types": {
|
||||
"version": "6.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.4.0.tgz",
|
||||
"integrity": "sha512-+FV9kVFrS7w78YtzkIsNSoYsnOtrYVnKWSTVXoL1761CsCRv5wpDOINgsXpxD67YCLZtVQekDDyaxfjVWUJmmg==",
|
||||
"version": "6.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.4.1.tgz",
|
||||
"integrity": "sha512-zAAopbNuYu++ijY1GV2ylCsQsi3B8QvfPHVqhGdDcbx/NK5lkqMnCGU53amAjccSpk+LfeONxwzUhDzArSfZJg==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": "^16.0.0 || >=18.0.0"
|
||||
|
@ -1046,13 +1054,13 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/typescript-estree": {
|
||||
"version": "6.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.4.0.tgz",
|
||||
"integrity": "sha512-iDPJArf/K2sxvjOR6skeUCNgHR/tCQXBsa+ee1/clRKr3olZjZ/dSkXPZjG6YkPtnW6p5D1egeEPMCW6Gn4yLA==",
|
||||
"version": "6.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.4.1.tgz",
|
||||
"integrity": "sha512-xF6Y7SatVE/OyV93h1xGgfOkHr2iXuo8ip0gbfzaKeGGuKiAnzS+HtVhSPx8Www243bwlW8IF7X0/B62SzFftg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "6.4.0",
|
||||
"@typescript-eslint/visitor-keys": "6.4.0",
|
||||
"@typescript-eslint/types": "6.4.1",
|
||||
"@typescript-eslint/visitor-keys": "6.4.1",
|
||||
"debug": "^4.3.4",
|
||||
"globby": "^11.1.0",
|
||||
"is-glob": "^4.0.3",
|
||||
|
@ -1073,17 +1081,17 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/utils": {
|
||||
"version": "6.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.4.0.tgz",
|
||||
"integrity": "sha512-BvvwryBQpECPGo8PwF/y/q+yacg8Hn/2XS+DqL/oRsOPK+RPt29h5Ui5dqOKHDlbXrAeHUTnyG3wZA0KTDxRZw==",
|
||||
"version": "6.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.4.1.tgz",
|
||||
"integrity": "sha512-F/6r2RieNeorU0zhqZNv89s9bDZSovv3bZQpUNOmmQK1L80/cV4KEu95YUJWi75u5PhboFoKUJBnZ4FQcoqhDw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@eslint-community/eslint-utils": "^4.4.0",
|
||||
"@types/json-schema": "^7.0.12",
|
||||
"@types/semver": "^7.5.0",
|
||||
"@typescript-eslint/scope-manager": "6.4.0",
|
||||
"@typescript-eslint/types": "6.4.0",
|
||||
"@typescript-eslint/typescript-estree": "6.4.0",
|
||||
"@typescript-eslint/scope-manager": "6.4.1",
|
||||
"@typescript-eslint/types": "6.4.1",
|
||||
"@typescript-eslint/typescript-estree": "6.4.1",
|
||||
"semver": "^7.5.4"
|
||||
},
|
||||
"engines": {
|
||||
|
@ -1098,12 +1106,12 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/visitor-keys": {
|
||||
"version": "6.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.4.0.tgz",
|
||||
"integrity": "sha512-yJSfyT+uJm+JRDWYRYdCm2i+pmvXJSMtPR9Cq5/XQs4QIgNoLcoRtDdzsLbLsFM/c6um6ohQkg/MLxWvoIndJA==",
|
||||
"version": "6.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.4.1.tgz",
|
||||
"integrity": "sha512-y/TyRJsbZPkJIZQXrHfdnxVnxyKegnpEvnRGNam7s3TRR2ykGefEWOhaef00/UUN3IZxizS7BTO3svd3lCOJRQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "6.4.0",
|
||||
"@typescript-eslint/types": "6.4.1",
|
||||
"eslint-visitor-keys": "^3.4.1"
|
||||
},
|
||||
"engines": {
|
||||
|
@ -2678,9 +2686,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-import": {
|
||||
"version": "2.28.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.28.0.tgz",
|
||||
"integrity": "sha512-B8s/n+ZluN7sxj9eUf7/pRFERX0r5bnFA2dCaLHy2ZeaQEAz0k+ZZkFWRFHJAqxfxQDx6KLv9LeIki7cFdwW+Q==",
|
||||
"version": "2.28.1",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.28.1.tgz",
|
||||
"integrity": "sha512-9I9hFlITvOV55alzoKBI+K9q74kv0iKMeY6av5+umsNwayt59fz692daGyjR+oStBQgx6nwR9rXldDev3Clw+A==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"array-includes": "^3.1.6",
|
||||
|
@ -2692,13 +2700,12 @@
|
|||
"eslint-import-resolver-node": "^0.3.7",
|
||||
"eslint-module-utils": "^2.8.0",
|
||||
"has": "^1.0.3",
|
||||
"is-core-module": "^2.12.1",
|
||||
"is-core-module": "^2.13.0",
|
||||
"is-glob": "^4.0.3",
|
||||
"minimatch": "^3.1.2",
|
||||
"object.fromentries": "^2.0.6",
|
||||
"object.groupby": "^1.0.0",
|
||||
"object.values": "^1.1.6",
|
||||
"resolve": "^1.22.3",
|
||||
"semver": "^6.3.1",
|
||||
"tsconfig-paths": "^3.14.2"
|
||||
},
|
||||
|
@ -3761,9 +3768,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/is-core-module": {
|
||||
"version": "2.12.1",
|
||||
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz",
|
||||
"integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==",
|
||||
"version": "2.13.0",
|
||||
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz",
|
||||
"integrity": "sha512-Z7dk6Qo8pOCp3l4tsX2C5ZVas4V+UxwQodwZhLopL91TX8UyyHEXafPcyoeeWuLrwzHcr3igO78wNLwHJHsMCQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"has": "^1.0.3"
|
||||
|
@ -4475,9 +4482,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/nock": {
|
||||
"version": "13.3.2",
|
||||
"resolved": "https://registry.npmjs.org/nock/-/nock-13.3.2.tgz",
|
||||
"integrity": "sha512-CwbljitiWJhF1gL83NbanhoKs1l23TDlRioNraPTZrzZIEooPemrHRj5m0FZCPkB1ecdYCSWWGcHysJgX/ngnQ==",
|
||||
"version": "13.3.3",
|
||||
"resolved": "https://registry.npmjs.org/nock/-/nock-13.3.3.tgz",
|
||||
"integrity": "sha512-z+KUlILy9SK/RjpeXDiDUEAq4T94ADPHE3qaRkf66mpEhzc/ytOMm3Bwdrbq6k1tMWkbdujiKim3G2tfQARuJw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"debug": "^4.1.0",
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
../semver/bin/semver.js
|
|
@ -0,0 +1,15 @@
|
|||
The ISC License
|
||||
|
||||
Copyright (c) Isaac Z. Schlueter and 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.
|
443
node_modules/@actions/cache/node_modules/semver/README.md
сгенерированный
поставляемый
Normal file
443
node_modules/@actions/cache/node_modules/semver/README.md
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,443 @@
|
|||
semver(1) -- The semantic versioner for npm
|
||||
===========================================
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
npm install semver
|
||||
````
|
||||
|
||||
## Usage
|
||||
|
||||
As a node module:
|
||||
|
||||
```js
|
||||
const semver = require('semver')
|
||||
|
||||
semver.valid('1.2.3') // '1.2.3'
|
||||
semver.valid('a.b.c') // null
|
||||
semver.clean(' =v1.2.3 ') // '1.2.3'
|
||||
semver.satisfies('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') // true
|
||||
semver.gt('1.2.3', '9.8.7') // false
|
||||
semver.lt('1.2.3', '9.8.7') // true
|
||||
semver.minVersion('>=1.0.0') // '1.0.0'
|
||||
semver.valid(semver.coerce('v2')) // '2.0.0'
|
||||
semver.valid(semver.coerce('42.6.7.9.3-alpha')) // '42.6.7'
|
||||
```
|
||||
|
||||
As a command-line utility:
|
||||
|
||||
```
|
||||
$ semver -h
|
||||
|
||||
A JavaScript implementation of the https://semver.org/ specification
|
||||
Copyright Isaac Z. Schlueter
|
||||
|
||||
Usage: semver [options] <version> [<version> [...]]
|
||||
Prints valid versions sorted by SemVer precedence
|
||||
|
||||
Options:
|
||||
-r --range <range>
|
||||
Print versions that match the specified range.
|
||||
|
||||
-i --increment [<level>]
|
||||
Increment a version by the specified level. Level can
|
||||
be one of: major, minor, patch, premajor, preminor,
|
||||
prepatch, or prerelease. Default level is 'patch'.
|
||||
Only one version may be specified.
|
||||
|
||||
--preid <identifier>
|
||||
Identifier to be used to prefix premajor, preminor,
|
||||
prepatch or prerelease version increments.
|
||||
|
||||
-l --loose
|
||||
Interpret versions and ranges loosely
|
||||
|
||||
-p --include-prerelease
|
||||
Always include prerelease versions in range matching
|
||||
|
||||
-c --coerce
|
||||
Coerce a string into SemVer if possible
|
||||
(does not imply --loose)
|
||||
|
||||
--rtl
|
||||
Coerce version strings right to left
|
||||
|
||||
--ltr
|
||||
Coerce version strings left to right (default)
|
||||
|
||||
Program exits successfully if any valid version satisfies
|
||||
all supplied ranges, and prints all satisfying versions.
|
||||
|
||||
If no satisfying versions are found, then exits failure.
|
||||
|
||||
Versions are printed in ascending order, so supplying
|
||||
multiple versions to the utility will just sort them.
|
||||
```
|
||||
|
||||
## Versions
|
||||
|
||||
A "version" is described by the `v2.0.0` specification found at
|
||||
<https://semver.org/>.
|
||||
|
||||
A leading `"="` or `"v"` character is stripped off and ignored.
|
||||
|
||||
## Ranges
|
||||
|
||||
A `version range` is a set of `comparators` which specify versions
|
||||
that satisfy the range.
|
||||
|
||||
A `comparator` is composed of an `operator` and a `version`. The set
|
||||
of primitive `operators` is:
|
||||
|
||||
* `<` Less than
|
||||
* `<=` Less than or equal to
|
||||
* `>` Greater than
|
||||
* `>=` Greater than or equal to
|
||||
* `=` Equal. If no operator is specified, then equality is assumed,
|
||||
so this operator is optional, but MAY be included.
|
||||
|
||||
For example, the comparator `>=1.2.7` would match the versions
|
||||
`1.2.7`, `1.2.8`, `2.5.3`, and `1.3.9`, but not the versions `1.2.6`
|
||||
or `1.1.0`.
|
||||
|
||||
Comparators can be joined by whitespace to form a `comparator set`,
|
||||
which is satisfied by the **intersection** of all of the comparators
|
||||
it includes.
|
||||
|
||||
A range is composed of one or more comparator sets, joined by `||`. A
|
||||
version matches a range if and only if every comparator in at least
|
||||
one of the `||`-separated comparator sets is satisfied by the version.
|
||||
|
||||
For example, the range `>=1.2.7 <1.3.0` would match the versions
|
||||
`1.2.7`, `1.2.8`, and `1.2.99`, but not the versions `1.2.6`, `1.3.0`,
|
||||
or `1.1.0`.
|
||||
|
||||
The range `1.2.7 || >=1.2.9 <2.0.0` would match the versions `1.2.7`,
|
||||
`1.2.9`, and `1.4.6`, but not the versions `1.2.8` or `2.0.0`.
|
||||
|
||||
### Prerelease Tags
|
||||
|
||||
If a version has a prerelease tag (for example, `1.2.3-alpha.3`) then
|
||||
it will only be allowed to satisfy comparator sets if at least one
|
||||
comparator with the same `[major, minor, patch]` tuple also has a
|
||||
prerelease tag.
|
||||
|
||||
For example, the range `>1.2.3-alpha.3` would be allowed to match the
|
||||
version `1.2.3-alpha.7`, but it would *not* be satisfied by
|
||||
`3.4.5-alpha.9`, even though `3.4.5-alpha.9` is technically "greater
|
||||
than" `1.2.3-alpha.3` according to the SemVer sort rules. The version
|
||||
range only accepts prerelease tags on the `1.2.3` version. The
|
||||
version `3.4.5` *would* satisfy the range, because it does not have a
|
||||
prerelease flag, and `3.4.5` is greater than `1.2.3-alpha.7`.
|
||||
|
||||
The purpose for this behavior is twofold. First, prerelease versions
|
||||
frequently are updated very quickly, and contain many breaking changes
|
||||
that are (by the author's design) not yet fit for public consumption.
|
||||
Therefore, by default, they are excluded from range matching
|
||||
semantics.
|
||||
|
||||
Second, a user who has opted into using a prerelease version has
|
||||
clearly indicated the intent to use *that specific* set of
|
||||
alpha/beta/rc versions. By including a prerelease tag in the range,
|
||||
the user is indicating that they are aware of the risk. However, it
|
||||
is still not appropriate to assume that they have opted into taking a
|
||||
similar risk on the *next* set of prerelease versions.
|
||||
|
||||
Note that this behavior can be suppressed (treating all prerelease
|
||||
versions as if they were normal versions, for the purpose of range
|
||||
matching) by setting the `includePrerelease` flag on the options
|
||||
object to any
|
||||
[functions](https://github.com/npm/node-semver#functions) that do
|
||||
range matching.
|
||||
|
||||
#### Prerelease Identifiers
|
||||
|
||||
The method `.inc` takes an additional `identifier` string argument that
|
||||
will append the value of the string as a prerelease identifier:
|
||||
|
||||
```javascript
|
||||
semver.inc('1.2.3', 'prerelease', 'beta')
|
||||
// '1.2.4-beta.0'
|
||||
```
|
||||
|
||||
command-line example:
|
||||
|
||||
```bash
|
||||
$ semver 1.2.3 -i prerelease --preid beta
|
||||
1.2.4-beta.0
|
||||
```
|
||||
|
||||
Which then can be used to increment further:
|
||||
|
||||
```bash
|
||||
$ semver 1.2.4-beta.0 -i prerelease
|
||||
1.2.4-beta.1
|
||||
```
|
||||
|
||||
### Advanced Range Syntax
|
||||
|
||||
Advanced range syntax desugars to primitive comparators in
|
||||
deterministic ways.
|
||||
|
||||
Advanced ranges may be combined in the same way as primitive
|
||||
comparators using white space or `||`.
|
||||
|
||||
#### Hyphen Ranges `X.Y.Z - A.B.C`
|
||||
|
||||
Specifies an inclusive set.
|
||||
|
||||
* `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4`
|
||||
|
||||
If a partial version is provided as the first version in the inclusive
|
||||
range, then the missing pieces are replaced with zeroes.
|
||||
|
||||
* `1.2 - 2.3.4` := `>=1.2.0 <=2.3.4`
|
||||
|
||||
If a partial version is provided as the second version in the
|
||||
inclusive range, then all versions that start with the supplied parts
|
||||
of the tuple are accepted, but nothing that would be greater than the
|
||||
provided tuple parts.
|
||||
|
||||
* `1.2.3 - 2.3` := `>=1.2.3 <2.4.0`
|
||||
* `1.2.3 - 2` := `>=1.2.3 <3.0.0`
|
||||
|
||||
#### X-Ranges `1.2.x` `1.X` `1.2.*` `*`
|
||||
|
||||
Any of `X`, `x`, or `*` may be used to "stand in" for one of the
|
||||
numeric values in the `[major, minor, patch]` tuple.
|
||||
|
||||
* `*` := `>=0.0.0` (Any version satisfies)
|
||||
* `1.x` := `>=1.0.0 <2.0.0` (Matching major version)
|
||||
* `1.2.x` := `>=1.2.0 <1.3.0` (Matching major and minor versions)
|
||||
|
||||
A partial version range is treated as an X-Range, so the special
|
||||
character is in fact optional.
|
||||
|
||||
* `""` (empty string) := `*` := `>=0.0.0`
|
||||
* `1` := `1.x.x` := `>=1.0.0 <2.0.0`
|
||||
* `1.2` := `1.2.x` := `>=1.2.0 <1.3.0`
|
||||
|
||||
#### Tilde Ranges `~1.2.3` `~1.2` `~1`
|
||||
|
||||
Allows patch-level changes if a minor version is specified on the
|
||||
comparator. Allows minor-level changes if not.
|
||||
|
||||
* `~1.2.3` := `>=1.2.3 <1.(2+1).0` := `>=1.2.3 <1.3.0`
|
||||
* `~1.2` := `>=1.2.0 <1.(2+1).0` := `>=1.2.0 <1.3.0` (Same as `1.2.x`)
|
||||
* `~1` := `>=1.0.0 <(1+1).0.0` := `>=1.0.0 <2.0.0` (Same as `1.x`)
|
||||
* `~0.2.3` := `>=0.2.3 <0.(2+1).0` := `>=0.2.3 <0.3.0`
|
||||
* `~0.2` := `>=0.2.0 <0.(2+1).0` := `>=0.2.0 <0.3.0` (Same as `0.2.x`)
|
||||
* `~0` := `>=0.0.0 <(0+1).0.0` := `>=0.0.0 <1.0.0` (Same as `0.x`)
|
||||
* `~1.2.3-beta.2` := `>=1.2.3-beta.2 <1.3.0` Note that prereleases in
|
||||
the `1.2.3` version will be allowed, if they are greater than or
|
||||
equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but
|
||||
`1.2.4-beta.2` would not, because it is a prerelease of a
|
||||
different `[major, minor, patch]` tuple.
|
||||
|
||||
#### Caret Ranges `^1.2.3` `^0.2.5` `^0.0.4`
|
||||
|
||||
Allows changes that do not modify the left-most non-zero element in the
|
||||
`[major, minor, patch]` tuple. In other words, this allows patch and
|
||||
minor updates for versions `1.0.0` and above, patch updates for
|
||||
versions `0.X >=0.1.0`, and *no* updates for versions `0.0.X`.
|
||||
|
||||
Many authors treat a `0.x` version as if the `x` were the major
|
||||
"breaking-change" indicator.
|
||||
|
||||
Caret ranges are ideal when an author may make breaking changes
|
||||
between `0.2.4` and `0.3.0` releases, which is a common practice.
|
||||
However, it presumes that there will *not* be breaking changes between
|
||||
`0.2.4` and `0.2.5`. It allows for changes that are presumed to be
|
||||
additive (but non-breaking), according to commonly observed practices.
|
||||
|
||||
* `^1.2.3` := `>=1.2.3 <2.0.0`
|
||||
* `^0.2.3` := `>=0.2.3 <0.3.0`
|
||||
* `^0.0.3` := `>=0.0.3 <0.0.4`
|
||||
* `^1.2.3-beta.2` := `>=1.2.3-beta.2 <2.0.0` Note that prereleases in
|
||||
the `1.2.3` version will be allowed, if they are greater than or
|
||||
equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but
|
||||
`1.2.4-beta.2` would not, because it is a prerelease of a
|
||||
different `[major, minor, patch]` tuple.
|
||||
* `^0.0.3-beta` := `>=0.0.3-beta <0.0.4` Note that prereleases in the
|
||||
`0.0.3` version *only* will be allowed, if they are greater than or
|
||||
equal to `beta`. So, `0.0.3-pr.2` would be allowed.
|
||||
|
||||
When parsing caret ranges, a missing `patch` value desugars to the
|
||||
number `0`, but will allow flexibility within that value, even if the
|
||||
major and minor versions are both `0`.
|
||||
|
||||
* `^1.2.x` := `>=1.2.0 <2.0.0`
|
||||
* `^0.0.x` := `>=0.0.0 <0.1.0`
|
||||
* `^0.0` := `>=0.0.0 <0.1.0`
|
||||
|
||||
A missing `minor` and `patch` values will desugar to zero, but also
|
||||
allow flexibility within those values, even if the major version is
|
||||
zero.
|
||||
|
||||
* `^1.x` := `>=1.0.0 <2.0.0`
|
||||
* `^0.x` := `>=0.0.0 <1.0.0`
|
||||
|
||||
### Range Grammar
|
||||
|
||||
Putting all this together, here is a Backus-Naur grammar for ranges,
|
||||
for the benefit of parser authors:
|
||||
|
||||
```bnf
|
||||
range-set ::= range ( logical-or range ) *
|
||||
logical-or ::= ( ' ' ) * '||' ( ' ' ) *
|
||||
range ::= hyphen | simple ( ' ' simple ) * | ''
|
||||
hyphen ::= partial ' - ' partial
|
||||
simple ::= primitive | partial | tilde | caret
|
||||
primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial
|
||||
partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )?
|
||||
xr ::= 'x' | 'X' | '*' | nr
|
||||
nr ::= '0' | ['1'-'9'] ( ['0'-'9'] ) *
|
||||
tilde ::= '~' partial
|
||||
caret ::= '^' partial
|
||||
qualifier ::= ( '-' pre )? ( '+' build )?
|
||||
pre ::= parts
|
||||
build ::= parts
|
||||
parts ::= part ( '.' part ) *
|
||||
part ::= nr | [-0-9A-Za-z]+
|
||||
```
|
||||
|
||||
## Functions
|
||||
|
||||
All methods and classes take a final `options` object argument. All
|
||||
options in this object are `false` by default. The options supported
|
||||
are:
|
||||
|
||||
- `loose` Be more forgiving about not-quite-valid semver strings.
|
||||
(Any resulting output will always be 100% strict compliant, of
|
||||
course.) For backwards compatibility reasons, if the `options`
|
||||
argument is a boolean value instead of an object, it is interpreted
|
||||
to be the `loose` param.
|
||||
- `includePrerelease` Set to suppress the [default
|
||||
behavior](https://github.com/npm/node-semver#prerelease-tags) of
|
||||
excluding prerelease tagged versions from ranges unless they are
|
||||
explicitly opted into.
|
||||
|
||||
Strict-mode Comparators and Ranges will be strict about the SemVer
|
||||
strings that they parse.
|
||||
|
||||
* `valid(v)`: Return the parsed version, or null if it's not valid.
|
||||
* `inc(v, release)`: Return the version incremented by the release
|
||||
type (`major`, `premajor`, `minor`, `preminor`, `patch`,
|
||||
`prepatch`, or `prerelease`), or null if it's not valid
|
||||
* `premajor` in one call will bump the version up to the next major
|
||||
version and down to a prerelease of that major version.
|
||||
`preminor`, and `prepatch` work the same way.
|
||||
* If called from a non-prerelease version, the `prerelease` will work the
|
||||
same as `prepatch`. It increments the patch version, then makes a
|
||||
prerelease. If the input version is already a prerelease it simply
|
||||
increments it.
|
||||
* `prerelease(v)`: Returns an array of prerelease components, or null
|
||||
if none exist. Example: `prerelease('1.2.3-alpha.1') -> ['alpha', 1]`
|
||||
* `major(v)`: Return the major version number.
|
||||
* `minor(v)`: Return the minor version number.
|
||||
* `patch(v)`: Return the patch version number.
|
||||
* `intersects(r1, r2, loose)`: Return true if the two supplied ranges
|
||||
or comparators intersect.
|
||||
* `parse(v)`: Attempt to parse a string as a semantic version, returning either
|
||||
a `SemVer` object or `null`.
|
||||
|
||||
### Comparison
|
||||
|
||||
* `gt(v1, v2)`: `v1 > v2`
|
||||
* `gte(v1, v2)`: `v1 >= v2`
|
||||
* `lt(v1, v2)`: `v1 < v2`
|
||||
* `lte(v1, v2)`: `v1 <= v2`
|
||||
* `eq(v1, v2)`: `v1 == v2` This is true if they're logically equivalent,
|
||||
even if they're not the exact same string. You already know how to
|
||||
compare strings.
|
||||
* `neq(v1, v2)`: `v1 != v2` The opposite of `eq`.
|
||||
* `cmp(v1, comparator, v2)`: Pass in a comparison string, and it'll call
|
||||
the corresponding function above. `"==="` and `"!=="` do simple
|
||||
string comparison, but are included for completeness. Throws if an
|
||||
invalid comparison string is provided.
|
||||
* `compare(v1, v2)`: Return `0` if `v1 == v2`, or `1` if `v1` is greater, or `-1` if
|
||||
`v2` is greater. Sorts in ascending order if passed to `Array.sort()`.
|
||||
* `rcompare(v1, v2)`: The reverse of compare. Sorts an array of versions
|
||||
in descending order when passed to `Array.sort()`.
|
||||
* `compareBuild(v1, v2)`: The same as `compare` but considers `build` when two versions
|
||||
are equal. Sorts in ascending order if passed to `Array.sort()`.
|
||||
`v2` is greater. Sorts in ascending order if passed to `Array.sort()`.
|
||||
* `diff(v1, v2)`: Returns difference between two versions by the release type
|
||||
(`major`, `premajor`, `minor`, `preminor`, `patch`, `prepatch`, or `prerelease`),
|
||||
or null if the versions are the same.
|
||||
|
||||
### Comparators
|
||||
|
||||
* `intersects(comparator)`: Return true if the comparators intersect
|
||||
|
||||
### Ranges
|
||||
|
||||
* `validRange(range)`: Return the valid range or null if it's not valid
|
||||
* `satisfies(version, range)`: Return true if the version satisfies the
|
||||
range.
|
||||
* `maxSatisfying(versions, range)`: Return the highest version in the list
|
||||
that satisfies the range, or `null` if none of them do.
|
||||
* `minSatisfying(versions, range)`: Return the lowest version in the list
|
||||
that satisfies the range, or `null` if none of them do.
|
||||
* `minVersion(range)`: Return the lowest version that can possibly match
|
||||
the given range.
|
||||
* `gtr(version, range)`: Return `true` if version is greater than all the
|
||||
versions possible in the range.
|
||||
* `ltr(version, range)`: Return `true` if version is less than all the
|
||||
versions possible in the range.
|
||||
* `outside(version, range, hilo)`: Return true if the version is outside
|
||||
the bounds of the range in either the high or low direction. The
|
||||
`hilo` argument must be either the string `'>'` or `'<'`. (This is
|
||||
the function called by `gtr` and `ltr`.)
|
||||
* `intersects(range)`: Return true if any of the ranges comparators intersect
|
||||
|
||||
Note that, since ranges may be non-contiguous, a version might not be
|
||||
greater than a range, less than a range, *or* satisfy a range! For
|
||||
example, the range `1.2 <1.2.9 || >2.0.0` would have a hole from `1.2.9`
|
||||
until `2.0.0`, so the version `1.2.10` would not be greater than the
|
||||
range (because `2.0.1` satisfies, which is higher), nor less than the
|
||||
range (since `1.2.8` satisfies, which is lower), and it also does not
|
||||
satisfy the range.
|
||||
|
||||
If you want to know if a version satisfies or does not satisfy a
|
||||
range, use the `satisfies(version, range)` function.
|
||||
|
||||
### Coercion
|
||||
|
||||
* `coerce(version, options)`: Coerces a string to semver if possible
|
||||
|
||||
This aims to provide a very forgiving translation of a non-semver string to
|
||||
semver. It looks for the first digit in a string, and consumes all
|
||||
remaining characters which satisfy at least a partial semver (e.g., `1`,
|
||||
`1.2`, `1.2.3`) up to the max permitted length (256 characters). Longer
|
||||
versions are simply truncated (`4.6.3.9.2-alpha2` becomes `4.6.3`). All
|
||||
surrounding text is simply ignored (`v3.4 replaces v3.3.1` becomes
|
||||
`3.4.0`). Only text which lacks digits will fail coercion (`version one`
|
||||
is not valid). The maximum length for any semver component considered for
|
||||
coercion is 16 characters; longer components will be ignored
|
||||
(`10000000000000000.4.7.4` becomes `4.7.4`). The maximum value for any
|
||||
semver component is `Integer.MAX_SAFE_INTEGER || (2**53 - 1)`; higher value
|
||||
components are invalid (`9999999999999999.4.7.4` is likely invalid).
|
||||
|
||||
If the `options.rtl` flag is set, then `coerce` will return the right-most
|
||||
coercible tuple that does not share an ending index with a longer coercible
|
||||
tuple. For example, `1.2.3.4` will return `2.3.4` in rtl mode, not
|
||||
`4.0.0`. `1.2.3/4` will return `4.0.0`, because the `4` is not a part of
|
||||
any other overlapping SemVer tuple.
|
||||
|
||||
### Clean
|
||||
|
||||
* `clean(version)`: Clean a string to be a valid semver if possible
|
||||
|
||||
This will return a cleaned and trimmed semver version. If the provided version is not valid a null will be returned. This does not work for ranges.
|
||||
|
||||
ex.
|
||||
* `s.clean(' = v 2.1.5foo')`: `null`
|
||||
* `s.clean(' = v 2.1.5foo', { loose: true })`: `'2.1.5-foo'`
|
||||
* `s.clean(' = v 2.1.5-foo')`: `null`
|
||||
* `s.clean(' = v 2.1.5-foo', { loose: true })`: `'2.1.5-foo'`
|
||||
* `s.clean('=v2.1.5')`: `'2.1.5'`
|
||||
* `s.clean(' =v2.1.5')`: `2.1.5`
|
||||
* `s.clean(' 2.1.5 ')`: `'2.1.5'`
|
||||
* `s.clean('~1.0.0')`: `null`
|
174
node_modules/@actions/cache/node_modules/semver/bin/semver.js
сгенерированный
поставляемый
Executable file
174
node_modules/@actions/cache/node_modules/semver/bin/semver.js
сгенерированный
поставляемый
Executable file
|
@ -0,0 +1,174 @@
|
|||
#!/usr/bin/env node
|
||||
// Standalone semver comparison program.
|
||||
// Exits successfully and prints matching version(s) if
|
||||
// any supplied version is valid and passes all tests.
|
||||
|
||||
var argv = process.argv.slice(2)
|
||||
|
||||
var versions = []
|
||||
|
||||
var range = []
|
||||
|
||||
var inc = null
|
||||
|
||||
var version = require('../package.json').version
|
||||
|
||||
var loose = false
|
||||
|
||||
var includePrerelease = false
|
||||
|
||||
var coerce = false
|
||||
|
||||
var rtl = false
|
||||
|
||||
var identifier
|
||||
|
||||
var semver = require('../semver')
|
||||
|
||||
var reverse = false
|
||||
|
||||
var options = {}
|
||||
|
||||
main()
|
||||
|
||||
function main () {
|
||||
if (!argv.length) return help()
|
||||
while (argv.length) {
|
||||
var a = argv.shift()
|
||||
var indexOfEqualSign = a.indexOf('=')
|
||||
if (indexOfEqualSign !== -1) {
|
||||
a = a.slice(0, indexOfEqualSign)
|
||||
argv.unshift(a.slice(indexOfEqualSign + 1))
|
||||
}
|
||||
switch (a) {
|
||||
case '-rv': case '-rev': case '--rev': case '--reverse':
|
||||
reverse = true
|
||||
break
|
||||
case '-l': case '--loose':
|
||||
loose = true
|
||||
break
|
||||
case '-p': case '--include-prerelease':
|
||||
includePrerelease = true
|
||||
break
|
||||
case '-v': case '--version':
|
||||
versions.push(argv.shift())
|
||||
break
|
||||
case '-i': case '--inc': case '--increment':
|
||||
switch (argv[0]) {
|
||||
case 'major': case 'minor': case 'patch': case 'prerelease':
|
||||
case 'premajor': case 'preminor': case 'prepatch':
|
||||
inc = argv.shift()
|
||||
break
|
||||
default:
|
||||
inc = 'patch'
|
||||
break
|
||||
}
|
||||
break
|
||||
case '--preid':
|
||||
identifier = argv.shift()
|
||||
break
|
||||
case '-r': case '--range':
|
||||
range.push(argv.shift())
|
||||
break
|
||||
case '-c': case '--coerce':
|
||||
coerce = true
|
||||
break
|
||||
case '--rtl':
|
||||
rtl = true
|
||||
break
|
||||
case '--ltr':
|
||||
rtl = false
|
||||
break
|
||||
case '-h': case '--help': case '-?':
|
||||
return help()
|
||||
default:
|
||||
versions.push(a)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
var options = { loose: loose, includePrerelease: includePrerelease, rtl: rtl }
|
||||
|
||||
versions = versions.map(function (v) {
|
||||
return coerce ? (semver.coerce(v, options) || { version: v }).version : v
|
||||
}).filter(function (v) {
|
||||
return semver.valid(v)
|
||||
})
|
||||
if (!versions.length) return fail()
|
||||
if (inc && (versions.length !== 1 || range.length)) { return failInc() }
|
||||
|
||||
for (var i = 0, l = range.length; i < l; i++) {
|
||||
versions = versions.filter(function (v) {
|
||||
return semver.satisfies(v, range[i], options)
|
||||
})
|
||||
if (!versions.length) return fail()
|
||||
}
|
||||
return success(versions)
|
||||
}
|
||||
|
||||
function failInc () {
|
||||
console.error('--inc can only be used on a single version with no range')
|
||||
fail()
|
||||
}
|
||||
|
||||
function fail () { process.exit(1) }
|
||||
|
||||
function success () {
|
||||
var compare = reverse ? 'rcompare' : 'compare'
|
||||
versions.sort(function (a, b) {
|
||||
return semver[compare](a, b, options)
|
||||
}).map(function (v) {
|
||||
return semver.clean(v, options)
|
||||
}).map(function (v) {
|
||||
return inc ? semver.inc(v, inc, options, identifier) : v
|
||||
}).forEach(function (v, i, _) { console.log(v) })
|
||||
}
|
||||
|
||||
function help () {
|
||||
console.log(['SemVer ' + version,
|
||||
'',
|
||||
'A JavaScript implementation of the https://semver.org/ specification',
|
||||
'Copyright Isaac Z. Schlueter',
|
||||
'',
|
||||
'Usage: semver [options] <version> [<version> [...]]',
|
||||
'Prints valid versions sorted by SemVer precedence',
|
||||
'',
|
||||
'Options:',
|
||||
'-r --range <range>',
|
||||
' Print versions that match the specified range.',
|
||||
'',
|
||||
'-i --increment [<level>]',
|
||||
' Increment a version by the specified level. Level can',
|
||||
' be one of: major, minor, patch, premajor, preminor,',
|
||||
" prepatch, or prerelease. Default level is 'patch'.",
|
||||
' Only one version may be specified.',
|
||||
'',
|
||||
'--preid <identifier>',
|
||||
' Identifier to be used to prefix premajor, preminor,',
|
||||
' prepatch or prerelease version increments.',
|
||||
'',
|
||||
'-l --loose',
|
||||
' Interpret versions and ranges loosely',
|
||||
'',
|
||||
'-p --include-prerelease',
|
||||
' Always include prerelease versions in range matching',
|
||||
'',
|
||||
'-c --coerce',
|
||||
' Coerce a string into SemVer if possible',
|
||||
' (does not imply --loose)',
|
||||
'',
|
||||
'--rtl',
|
||||
' Coerce version strings right to left',
|
||||
'',
|
||||
'--ltr',
|
||||
' Coerce version strings left to right (default)',
|
||||
'',
|
||||
'Program exits successfully if any valid version satisfies',
|
||||
'all supplied ranges, and prints all satisfying versions.',
|
||||
'',
|
||||
'If no satisfying versions are found, then exits failure.',
|
||||
'',
|
||||
'Versions are printed in ascending order, so supplying',
|
||||
'multiple versions to the utility will just sort them.'
|
||||
].join('\n'))
|
||||
}
|
38
node_modules/@actions/cache/node_modules/semver/package.json
сгенерированный
поставляемый
Normal file
38
node_modules/@actions/cache/node_modules/semver/package.json
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
"name": "semver",
|
||||
"version": "6.3.1",
|
||||
"description": "The semantic version parser used by npm.",
|
||||
"main": "semver.js",
|
||||
"scripts": {
|
||||
"test": "tap test/ --100 --timeout=30",
|
||||
"lint": "echo linting disabled",
|
||||
"postlint": "template-oss-check",
|
||||
"template-oss-apply": "template-oss-apply --force",
|
||||
"lintfix": "npm run lint -- --fix",
|
||||
"snap": "tap test/ --100 --timeout=30",
|
||||
"posttest": "npm run lint"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@npmcli/template-oss": "4.17.0",
|
||||
"tap": "^12.7.0"
|
||||
},
|
||||
"license": "ISC",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/npm/node-semver.git"
|
||||
},
|
||||
"bin": {
|
||||
"semver": "./bin/semver.js"
|
||||
},
|
||||
"files": [
|
||||
"bin",
|
||||
"range.bnf",
|
||||
"semver.js"
|
||||
],
|
||||
"author": "GitHub Inc.",
|
||||
"templateOSS": {
|
||||
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
||||
"content": "./scripts/template-oss",
|
||||
"version": "4.17.0"
|
||||
}
|
||||
}
|
16
node_modules/@actions/cache/node_modules/semver/range.bnf
сгенерированный
поставляемый
Normal file
16
node_modules/@actions/cache/node_modules/semver/range.bnf
сгенерированный
поставляемый
Normal file
|
@ -0,0 +1,16 @@
|
|||
range-set ::= range ( logical-or range ) *
|
||||
logical-or ::= ( ' ' ) * '||' ( ' ' ) *
|
||||
range ::= hyphen | simple ( ' ' simple ) * | ''
|
||||
hyphen ::= partial ' - ' partial
|
||||
simple ::= primitive | partial | tilde | caret
|
||||
primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial
|
||||
partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )?
|
||||
xr ::= 'x' | 'X' | '*' | nr
|
||||
nr ::= '0' | [1-9] ( [0-9] ) *
|
||||
tilde ::= '~' partial
|
||||
caret ::= '^' partial
|
||||
qualifier ::= ( '-' pre )? ( '+' build )?
|
||||
pre ::= parts
|
||||
build ::= parts
|
||||
parts ::= part ( '.' part ) *
|
||||
part ::= nr | [-0-9A-Za-z]+
|
1643
node_modules/@actions/cache/node_modules/semver/semver.js
сгенерированный
поставляемый
Normal file
1643
node_modules/@actions/cache/node_modules/semver/semver.js
сгенерированный
поставляемый
Normal file
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
16
node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js
сгенерированный
поставляемый
16
node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js
сгенерированный
поставляемый
|
@ -82,14 +82,14 @@ exports.default = util.createRule({
|
|||
ImportDeclaration(node) {
|
||||
const source = node.source.value;
|
||||
// sourceImports is the object containing all the specifics for a particular import source, type or value
|
||||
const sourceImports = sourceImportsMap[source] ??
|
||||
(sourceImportsMap[source] = {
|
||||
source,
|
||||
reportValueImports: [],
|
||||
typeOnlyNamedImport: null,
|
||||
valueOnlyNamedImport: null,
|
||||
valueImport: null, // if only value imports
|
||||
});
|
||||
sourceImportsMap[source] ??= {
|
||||
source,
|
||||
reportValueImports: [],
|
||||
typeOnlyNamedImport: null,
|
||||
valueOnlyNamedImport: null,
|
||||
valueImport: null, // if only value imports
|
||||
};
|
||||
const sourceImports = sourceImportsMap[source];
|
||||
if (node.importKind === 'type') {
|
||||
if (!sourceImports.typeOnlyNamedImport &&
|
||||
node.specifiers.every(specifier => specifier.type === utils_1.AST_NODE_TYPES.ImportSpecifier)) {
|
||||
|
|
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map
сгенерированный
поставляемый
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-imports.js.map
сгенерированный
поставляемый
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
11
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js
сгенерированный
поставляемый
11
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js
сгенерированный
поставляемый
|
@ -34,11 +34,20 @@ const isTruthyLiteral = (type) => tsutils.isTrueLiteralType(type) ||
|
|||
(type.isLiteral() && !!type.value);
|
||||
const isPossiblyFalsy = (type) => tsutils
|
||||
.unionTypeParts(type)
|
||||
// Intersections like `string & {}` can also be possibly falsy,
|
||||
// requiring us to look into the intersection.
|
||||
.flatMap(type => tsutils.intersectionTypeParts(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) => tsutils.unionTypeParts(type).some(type => !tsutils.isFalsyType(type));
|
||||
const isPossiblyTruthy = (type) => tsutils
|
||||
.unionTypeParts(type)
|
||||
.map(type => tsutils.intersectionTypeParts(type))
|
||||
.some(intersectionParts =>
|
||||
// It is possible to define intersections that are always falsy,
|
||||
// like `"" & { __brand: string }`.
|
||||
intersectionParts.every(type => !tsutils.isFalsyType(type)));
|
||||
// Nullish utilities
|
||||
const nullishFlag = ts.TypeFlags.Undefined | ts.TypeFlags.Null;
|
||||
const isNullishType = (type) => (0, util_1.isTypeFlagSet)(type, nullishFlag);
|
||||
|
|
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map
сгенерированный
поставляемый
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unnecessary-condition.js.map
сгенерированный
поставляемый
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js
сгенерированный
поставляемый
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js
сгенерированный
поставляемый
|
@ -329,7 +329,7 @@ exports.default = util.createRule({
|
|||
currentScope = scopes.pop();
|
||||
}
|
||||
function addOverload(signature, key, containingNode) {
|
||||
key = key ?? getOverloadKey(signature);
|
||||
key ??= getOverloadKey(signature);
|
||||
if (currentScope &&
|
||||
(containingNode || signature).parent === currentScope.parent) {
|
||||
const overloads = currentScope.overloads.get(key);
|
||||
|
|
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map
сгенерированный
поставляемый
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/unified-signatures.js.map
сгенерированный
поставляемый
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
2
node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.md
сгенерированный
поставляемый
2
node_modules/@typescript-eslint/eslint-plugin/docs/rules/member-ordering.md
сгенерированный
поставляемый
|
@ -814,7 +814,7 @@ interface Foo {
|
|||
|
||||
#### Sorting Alphabetically Case Insensitive Within Member Groups
|
||||
|
||||
This config specifies that within each `memberTypes` group, members are in an alphabetic case-sensitive order.
|
||||
This config specifies that within each `memberTypes` group, members are in an alphabetic case-insensitive order.
|
||||
You can copy and paste the default order from [Default Configuration](#default-configuration).
|
||||
|
||||
```jsonc
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/eslint-plugin",
|
||||
"version": "6.4.0",
|
||||
"version": "6.4.1",
|
||||
"description": "TypeScript plugin for ESLint",
|
||||
"files": [
|
||||
"dist",
|
||||
|
@ -57,10 +57,10 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@eslint-community/regexpp": "^4.5.1",
|
||||
"@typescript-eslint/scope-manager": "6.4.0",
|
||||
"@typescript-eslint/type-utils": "6.4.0",
|
||||
"@typescript-eslint/utils": "6.4.0",
|
||||
"@typescript-eslint/visitor-keys": "6.4.0",
|
||||
"@typescript-eslint/scope-manager": "6.4.1",
|
||||
"@typescript-eslint/type-utils": "6.4.1",
|
||||
"@typescript-eslint/utils": "6.4.1",
|
||||
"@typescript-eslint/visitor-keys": "6.4.1",
|
||||
"debug": "^4.3.4",
|
||||
"graphemer": "^1.4.0",
|
||||
"ignore": "^5.2.4",
|
||||
|
@ -73,17 +73,21 @@
|
|||
"@types/marked": "*",
|
||||
"@types/natural-compare": "*",
|
||||
"@types/prettier": "*",
|
||||
"@typescript-eslint/rule-schema-to-typescript-types": "6.4.0",
|
||||
"@typescript-eslint/rule-tester": "6.4.0",
|
||||
"@typescript-eslint/rule-schema-to-typescript-types": "6.4.1",
|
||||
"@typescript-eslint/rule-tester": "6.4.1",
|
||||
"ajv": "^6.12.6",
|
||||
"chalk": "^5.3.0",
|
||||
"cross-fetch": "*",
|
||||
"jest-specific-snapshot": "*",
|
||||
"grapheme-splitter": "^1.0.4",
|
||||
"jest": "29.6.2",
|
||||
"jest-specific-snapshot": "^8.0.0",
|
||||
"json-schema": "*",
|
||||
"markdown-table": "^3.0.3",
|
||||
"marked": "^5.1.1",
|
||||
"prettier": "*",
|
||||
"prettier": "^2.8.4",
|
||||
"rimraf": "*",
|
||||
"title-case": "^3.0.3",
|
||||
"tsx": "*",
|
||||
"typescript": "*"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
@ -99,5 +103,5 @@
|
|||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/typescript-eslint"
|
||||
},
|
||||
"gitHead": "14bea42e4864c72d28f502e0d15e675fe8bd729a"
|
||||
"gitHead": "ef1367eeed112fd6bbb94e0c9bd56d7e167a1a59"
|
||||
}
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
export { parse, parseForESLint, ParserOptions } from './parser';
|
||||
export { ParserServices, ParserServicesWithTypeInformation, ParserServicesWithoutTypeInformation, 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
|
|
@ -1,23 +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/visitor-keys';
|
||||
import type * as ts from 'typescript';
|
||||
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: ts.SourceFile | string, options?: ParserOptions): ParseForESLintResult['ast'];
|
||||
declare function parseForESLint(code: ts.SourceFile | string, options?: ParserOptions | null): ParseForESLintResult;
|
||||
export { parse, parseForESLint, ParserOptions };
|
||||
//# sourceMappingURL=parser.d.ts.map
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/parser",
|
||||
"version": "6.4.0",
|
||||
"version": "6.4.1",
|
||||
"description": "An ESLint custom parser which leverages TypeScript ESTree",
|
||||
"files": [
|
||||
"dist",
|
||||
|
@ -51,14 +51,19 @@
|
|||
"eslint": "^7.0.0 || ^8.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/scope-manager": "6.4.0",
|
||||
"@typescript-eslint/types": "6.4.0",
|
||||
"@typescript-eslint/typescript-estree": "6.4.0",
|
||||
"@typescript-eslint/visitor-keys": "6.4.0",
|
||||
"@typescript-eslint/scope-manager": "6.4.1",
|
||||
"@typescript-eslint/types": "6.4.1",
|
||||
"@typescript-eslint/typescript-estree": "6.4.1",
|
||||
"@typescript-eslint/visitor-keys": "6.4.1",
|
||||
"debug": "^4.3.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/glob": "*",
|
||||
"downlevel-dts": "*",
|
||||
"glob": "*",
|
||||
"jest": "29.6.2",
|
||||
"prettier": "^2.8.4",
|
||||
"rimraf": "*",
|
||||
"typescript": "*"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
|
@ -77,5 +82,5 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"gitHead": "14bea42e4864c72d28f502e0d15e675fe8bd729a"
|
||||
"gitHead": "ef1367eeed112fd6bbb94e0c9bd56d7e167a1a59"
|
||||
}
|
||||
|
|
2
node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map
сгенерированный
поставляемый
2
node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map
сгенерированный
поставляемый
|
@ -1 +1 @@
|
|||
{"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;IAQhC,MAAM,CAAC,KAAK,CACV,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,EAC1D,qBAAqB,EAAE,OAAO,GAC7B,IAAI;IASP,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;IAanD,SAAS,CAAC,UAAU,CAClB,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,GACzD,IAAI;IAgCP,SAAS,CAAC,uBAAuB,CAC/B,IAAI,EACA,QAAQ,CAAC,gBAAgB,GACzB,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,4BAA4B,GACxC,IAAI;IAWP,SAAS,CAAC,oCAAoC,CAC5C,IAAI,EAAE,QAAQ,CAAC,SAAS,EACxB,cAAc,EAAE,OAAO,GACtB,IAAI;IAgBP,SAAS,CAAC,mBAAmB,CAC3B,IAAI,EAAE,QAAQ,CAAC,kBAAkB,EACjC,UAAU,EAAE,QAAQ,CAAC,gBAAgB,GACpC,IAAI;IAsHP,SAAS,CAAC,iBAAiB,CACzB,IAAI,EACA,QAAQ,CAAC,gBAAgB,GACzB,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,4BAA4B,GACxC,IAAI;IA4BP,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAc5D,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;IAOjE,SAAS,CAAC,iBAAiB,CACzB,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI,GAAG,SAAS,EAClD,cAAc,EAAE,OAAO,GACtB,IAAI;IA4CP,SAAS,CAAC,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"}
|
||||
{"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;IAQhC,MAAM,CAAC,KAAK,CACV,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,EAC1D,qBAAqB,EAAE,OAAO,GAC7B,IAAI;IASP,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;IAanD,SAAS,CAAC,UAAU,CAClB,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,GACzD,IAAI;IAgCP,SAAS,CAAC,uBAAuB,CAC/B,IAAI,EACA,QAAQ,CAAC,gBAAgB,GACzB,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,4BAA4B,GACxC,IAAI;IAWP,SAAS,CAAC,oCAAoC,CAC5C,IAAI,EAAE,QAAQ,CAAC,SAAS,EACxB,cAAc,EAAE,OAAO,GACtB,IAAI;IAgBP,SAAS,CAAC,mBAAmB,CAC3B,IAAI,EAAE,QAAQ,CAAC,kBAAkB,EACjC,UAAU,EAAE,QAAQ,CAAC,gBAAgB,GACpC,IAAI;IAqHP,SAAS,CAAC,iBAAiB,CACzB,IAAI,EACA,QAAQ,CAAC,gBAAgB,GACzB,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,4BAA4B,GACxC,IAAI;IA4BP,SAAS,CAAC,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI;IAc5D,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;IAOjE,SAAS,CAAC,iBAAiB,CACzB,IAAI,EAAE,QAAQ,CAAC,gBAAgB,GAAG,IAAI,GAAG,SAAS,EAClD,cAAc,EAAE,OAAO,GACtB,IAAI;IA4CP,SAAS,CAAC,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"}
|
7
node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js
сгенерированный
поставляемый
7
node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js
сгенерированный
поставляемый
|
@ -120,10 +120,9 @@ class ClassVisitor extends Visitor_1.Visitor {
|
|||
* ) {}
|
||||
* }
|
||||
*/
|
||||
withMethodDecorators =
|
||||
withMethodDecorators ||
|
||||
(methodNode.kind !== 'set' &&
|
||||
node.params.some(param => param.decorators.length));
|
||||
withMethodDecorators ||=
|
||||
methodNode.kind !== 'set' &&
|
||||
node.params.some(param => param.decorators.length);
|
||||
if (!withMethodDecorators && methodNode.kind === 'set') {
|
||||
const keyName = getLiteralMethodKeyName(methodNode);
|
||||
/**
|
||||
|
|
2
node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map
сгенерированный
поставляемый
2
node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map
сгенерированный
поставляемый
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/scope-manager",
|
||||
"version": "6.4.0",
|
||||
"version": "6.4.1",
|
||||
"description": "TypeScript scope analyser for ESLint",
|
||||
"files": [
|
||||
"dist",
|
||||
|
@ -44,16 +44,16 @@
|
|||
"typecheck": "nx typecheck"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "6.4.0",
|
||||
"@typescript-eslint/visitor-keys": "6.4.0"
|
||||
"@typescript-eslint/types": "6.4.1",
|
||||
"@typescript-eslint/visitor-keys": "6.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/glob": "*",
|
||||
"@typescript-eslint/typescript-estree": "6.4.0",
|
||||
"@typescript-eslint/typescript-estree": "6.4.1",
|
||||
"glob": "*",
|
||||
"jest-specific-snapshot": "*",
|
||||
"make-dir": "*",
|
||||
"prettier": "*",
|
||||
"prettier": "^2.8.4",
|
||||
"pretty-format": "*",
|
||||
"rimraf": "*",
|
||||
"typescript": "*"
|
||||
|
@ -69,5 +69,5 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"gitHead": "14bea42e4864c72d28f502e0d15e675fe8bd729a"
|
||||
"gitHead": "ef1367eeed112fd6bbb94e0c9bd56d7e167a1a59"
|
||||
}
|
||||
|
|
21
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/TypeOrValueSpecifier.d.ts
сгенерированный
поставляемый
21
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/TypeOrValueSpecifier.d.ts
сгенерированный
поставляемый
|
@ -1,21 +0,0 @@
|
|||
import type { JSONSchema4 } from '@typescript-eslint/utils/json-schema';
|
||||
import type * as ts from 'typescript';
|
||||
interface FileSpecifier {
|
||||
from: 'file';
|
||||
name: string[] | string;
|
||||
path?: string;
|
||||
}
|
||||
interface LibSpecifier {
|
||||
from: 'lib';
|
||||
name: string[] | string;
|
||||
}
|
||||
interface PackageSpecifier {
|
||||
from: 'package';
|
||||
name: string[] | string;
|
||||
package: string;
|
||||
}
|
||||
export type TypeOrValueSpecifier = FileSpecifier | LibSpecifier | PackageSpecifier | string;
|
||||
export declare const typeOrValueSpecifierSchema: JSONSchema4;
|
||||
export declare function typeMatchesSpecifier(type: ts.Type, specifier: TypeOrValueSpecifier, program: ts.Program): boolean;
|
||||
export {};
|
||||
//# sourceMappingURL=TypeOrValueSpecifier.d.ts.map
|
10
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/containsAllTypesByName.d.ts
сгенерированный
поставляемый
10
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/containsAllTypesByName.d.ts
сгенерированный
поставляемый
|
@ -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<string>, matchAnyInstead?: boolean): boolean;
|
||||
//# sourceMappingURL=containsAllTypesByName.d.ts.map
|
7
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/getConstrainedTypeAtLocation.d.ts
сгенерированный
поставляемый
7
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/getConstrainedTypeAtLocation.d.ts
сгенерированный
поставляемый
|
@ -1,7 +0,0 @@
|
|||
import type { ParserServicesWithTypeInformation, TSESTree } from '@typescript-eslint/typescript-estree';
|
||||
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(services: ParserServicesWithTypeInformation, node: TSESTree.Node): ts.Type;
|
||||
//# sourceMappingURL=getConstrainedTypeAtLocation.d.ts.map
|
8
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/getContextualType.d.ts
сгенерированный
поставляемый
8
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/getContextualType.d.ts
сгенерированный
поставляемый
|
@ -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
|
7
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/getDeclaration.d.ts
сгенерированный
поставляемый
7
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/getDeclaration.d.ts
сгенерированный
поставляемый
|
@ -1,7 +0,0 @@
|
|||
import type { ParserServicesWithTypeInformation, TSESTree } from '@typescript-eslint/typescript-estree';
|
||||
import type * as ts from 'typescript';
|
||||
/**
|
||||
* Gets the declaration for the given variable
|
||||
*/
|
||||
export declare function getDeclaration(services: ParserServicesWithTypeInformation, node: TSESTree.Node): ts.Declaration | null;
|
||||
//# sourceMappingURL=getDeclaration.d.ts.map
|
6
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/getSourceFileOfNode.d.ts
сгенерированный
поставляемый
6
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/getSourceFileOfNode.d.ts
сгенерированный
поставляемый
|
@ -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
|
3
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/getTokenAtPosition.d.ts
сгенерированный
поставляемый
3
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/getTokenAtPosition.d.ts
сгенерированный
поставляемый
|
@ -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
|
3
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/getTypeArguments.d.ts
сгенерированный
поставляемый
3
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/getTypeArguments.d.ts
сгенерированный
поставляемый
|
@ -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
|
8
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/getTypeName.d.ts
сгенерированный
поставляемый
8
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/getTypeName.d.ts
сгенерированный
поставляемый
|
@ -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
|
|
@ -1,17 +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 './TypeOrValueSpecifier';
|
||||
export * from './typeFlagUtils';
|
||||
export { getDecorators, getModifiers, typescriptVersionIsAtLeast, } from '@typescript-eslint/typescript-estree';
|
||||
//# sourceMappingURL=index.d.ts.map
|
27
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/isTypeReadonly.d.ts
сгенерированный
поставляемый
27
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/isTypeReadonly.d.ts
сгенерированный
поставляемый
|
@ -1,27 +0,0 @@
|
|||
import type { JSONSchema4 } from '@typescript-eslint/utils/json-schema';
|
||||
import * as ts from 'typescript';
|
||||
import type { TypeOrValueSpecifier } from './TypeOrValueSpecifier';
|
||||
export interface ReadonlynessOptions {
|
||||
readonly treatMethodsAsReadonly?: boolean;
|
||||
readonly allow?: TypeOrValueSpecifier[];
|
||||
}
|
||||
export declare const readonlynessOptionsSchema: {
|
||||
type: "object";
|
||||
additionalProperties: false;
|
||||
properties: {
|
||||
treatMethodsAsReadonly: {
|
||||
type: "boolean";
|
||||
};
|
||||
allow: {
|
||||
type: "array";
|
||||
items: JSONSchema4;
|
||||
};
|
||||
};
|
||||
};
|
||||
export declare const readonlynessOptionsDefaults: ReadonlynessOptions;
|
||||
/**
|
||||
* Checks if the given type is readonly
|
||||
*/
|
||||
declare function isTypeReadonly(program: ts.Program, type: ts.Type, options?: ReadonlynessOptions): boolean;
|
||||
export { isTypeReadonly };
|
||||
//# sourceMappingURL=isTypeReadonly.d.ts.map
|
17
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/isUnsafeAssignment.d.ts
сгенерированный
поставляемый
17
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/isUnsafeAssignment.d.ts
сгенерированный
поставляемый
|
@ -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
|
52
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/predicates.d.ts
сгенерированный
поставляемый
52
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/predicates.d.ts
сгенерированный
поставляемый
|
@ -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
|
4
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/propertyTypes.d.ts
сгенерированный
поставляемый
4
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/propertyTypes.d.ts
сгенерированный
поставляемый
|
@ -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
|
4
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/requiresQuoting.d.ts
сгенерированный
поставляемый
4
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/requiresQuoting.d.ts
сгенерированный
поставляемый
|
@ -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
|
16
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/typeFlagUtils.d.ts
сгенерированный
поставляемый
16
node_modules/@typescript-eslint/type-utils/_ts4.3/dist/typeFlagUtils.d.ts
сгенерированный
поставляемый
|
@ -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
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/type-utils",
|
||||
"version": "6.4.0",
|
||||
"version": "6.4.1",
|
||||
"description": "Type utilities for working with TypeScript + ESLint together",
|
||||
"files": [
|
||||
"dist",
|
||||
|
@ -45,14 +45,18 @@
|
|||
"typecheck": "tsc -p tsconfig.json --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/typescript-estree": "6.4.0",
|
||||
"@typescript-eslint/utils": "6.4.0",
|
||||
"@typescript-eslint/typescript-estree": "6.4.1",
|
||||
"@typescript-eslint/utils": "6.4.1",
|
||||
"debug": "^4.3.4",
|
||||
"ts-api-utils": "^1.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/parser": "6.4.0",
|
||||
"ajv": "^8.12.0",
|
||||
"@typescript-eslint/parser": "6.4.1",
|
||||
"ajv": "^6.10.0",
|
||||
"downlevel-dts": "*",
|
||||
"jest": "29.6.2",
|
||||
"prettier": "^2.8.4",
|
||||
"rimraf": "*",
|
||||
"typescript": "*"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
@ -74,5 +78,5 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"gitHead": "14bea42e4864c72d28f502e0d15e675fe8bd729a"
|
||||
"gitHead": "ef1367eeed112fd6bbb94e0c9bd56d7e167a1a59"
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/types",
|
||||
"version": "6.4.0",
|
||||
"version": "6.4.1",
|
||||
"description": "Types for the TypeScript-ESTree AST spec",
|
||||
"files": [
|
||||
"dist",
|
||||
|
@ -73,6 +73,10 @@
|
|||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"downlevel-dts": "*",
|
||||
"prettier": "^2.8.4",
|
||||
"rimraf": "*",
|
||||
"tsx": "*",
|
||||
"typescript": "*"
|
||||
},
|
||||
"funding": {
|
||||
|
@ -86,5 +90,5 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"gitHead": "14bea42e4864c72d28f502e0d15e675fe8bd729a"
|
||||
"gitHead": "ef1367eeed112fd6bbb94e0c9bd56d7e167a1a59"
|
||||
}
|
||||
|
|
9
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/ast-converter.d.ts
сгенерированный
поставляемый
9
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/ast-converter.d.ts
сгенерированный
поставляемый
|
@ -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
|
10
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/clear-caches.d.ts
сгенерированный
поставляемый
10
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/clear-caches.d.ts
сгенерированный
поставляемый
|
@ -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
|
11
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/convert-comments.d.ts
сгенерированный
поставляемый
11
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/convert-comments.d.ts
сгенерированный
поставляемый
|
@ -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
|
142
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/convert.d.ts
сгенерированный
поставляемый
142
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/convert.d.ts
сгенерированный
поставляемый
|
@ -1,142 +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';
|
||||
export interface ConverterOptions {
|
||||
allowInvalidAST?: boolean;
|
||||
errorOnUnknownASTType?: boolean;
|
||||
shouldPreserveNodeMaps?: boolean;
|
||||
suppressDeprecatedPropertyWarnings?: boolean;
|
||||
}
|
||||
/**
|
||||
* Extends and formats a given error object
|
||||
* @param error the error object
|
||||
* @returns converted error object
|
||||
*/
|
||||
export declare function convertError(error: SemanticOrSyntacticError | ts.DiagnosticWithLocation): TSError;
|
||||
export interface ASTMaps {
|
||||
esTreeNodeToTSNodeMap: ParserWeakMapESTreeToTSNode;
|
||||
tsNodeToESTreeNodeMap: ParserWeakMap<TSNode, TSESTree.Node>;
|
||||
}
|
||||
export declare class Converter {
|
||||
#private;
|
||||
private readonly ast;
|
||||
private readonly options;
|
||||
private readonly esTreeNodeToTSNodeMap;
|
||||
private readonly tsNodeToESTreeNodeMap;
|
||||
private allowPattern;
|
||||
/**
|
||||
* 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 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;
|
||||
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 convertTypeArgumentsToTypeParameterInstantiation;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
//# sourceMappingURL=convert.d.ts.map
|
13
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/WatchCompilerHostOfConfigFile.d.ts
сгенерированный
поставляемый
13
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/WatchCompilerHostOfConfigFile.d.ts
сгенерированный
поставляемый
|
@ -1,13 +0,0 @@
|
|||
import type * as ts from 'typescript';
|
||||
interface DirectoryStructureHost {
|
||||
readDirectory?(path: string, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): string[];
|
||||
}
|
||||
interface CachedDirectoryStructureHost extends DirectoryStructureHost {
|
||||
readDirectory(path: string, extensions?: readonly string[], exclude?: readonly string[], include?: readonly string[], depth?: number): string[];
|
||||
}
|
||||
interface WatchCompilerHostOfConfigFile<T extends ts.BuilderProgram> extends ts.WatchCompilerHostOfConfigFile<T> {
|
||||
onCachedDirectoryStructureHostCreate(host: CachedDirectoryStructureHost): void;
|
||||
extraFileExtensions?: readonly ts.FileExtensionInfo[];
|
||||
}
|
||||
export { WatchCompilerHostOfConfigFile };
|
||||
//# sourceMappingURL=WatchCompilerHostOfConfigFile.d.ts.map
|
12
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/createDefaultProgram.d.ts
сгенерированный
поставляемый
12
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/createDefaultProgram.d.ts
сгенерированный
поставляемый
|
@ -1,12 +0,0 @@
|
|||
import type { ParseSettings } from '../parseSettings';
|
||||
import type { ASTAndDefiniteProgram } 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
|
||||
* @deprecated
|
||||
* This is a legacy option that comes with severe performance penalties.
|
||||
* Please do not use it.
|
||||
*/
|
||||
declare function createDefaultProgram(parseSettings: ParseSettings): ASTAndDefiniteProgram | undefined;
|
||||
export { createDefaultProgram };
|
||||
//# sourceMappingURL=createDefaultProgram.d.ts.map
|
9
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/createIsolatedProgram.d.ts
сгенерированный
поставляемый
9
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/createIsolatedProgram.d.ts
сгенерированный
поставляемый
|
@ -1,9 +0,0 @@
|
|||
import type { ParseSettings } from '../parseSettings';
|
||||
import type { ASTAndDefiniteProgram } 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): ASTAndDefiniteProgram;
|
||||
export { createIsolatedProgram };
|
||||
//# sourceMappingURL=createIsolatedProgram.d.ts.map
|
10
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/createProjectProgram.d.ts
сгенерированный
поставляемый
10
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/createProjectProgram.d.ts
сгенерированный
поставляемый
|
@ -1,10 +0,0 @@
|
|||
import * as ts from 'typescript';
|
||||
import type { ParseSettings } from '../parseSettings';
|
||||
import type { ASTAndDefiniteProgram } 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, programsForProjects: readonly ts.Program[]): ASTAndDefiniteProgram | undefined;
|
||||
export { createProjectProgram };
|
||||
//# sourceMappingURL=createProjectProgram.d.ts.map
|
4
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/createProjectService.d.ts
сгенерированный
поставляемый
4
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/createProjectService.d.ts
сгенерированный
поставляемый
|
@ -1,4 +0,0 @@
|
|||
import type * as ts from 'typescript/lib/tsserverlibrary';
|
||||
export type TypeScriptProjectService = ts.server.ProjectService;
|
||||
export declare function createProjectService(): TypeScriptProjectService;
|
||||
//# sourceMappingURL=createProjectService.d.ts.map
|
7
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/createSourceFile.d.ts
сгенерированный
поставляемый
7
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/createSourceFile.d.ts
сгенерированный
поставляемый
|
@ -1,7 +0,0 @@
|
|||
import * as ts from 'typescript';
|
||||
import type { ParseSettings } from '../parseSettings';
|
||||
import type { ASTAndNoProgram } from './shared';
|
||||
declare function createSourceFile(parseSettings: ParseSettings): ts.SourceFile;
|
||||
declare function createNoProgram(parseSettings: ParseSettings): ASTAndNoProgram;
|
||||
export { createSourceFile, createNoProgram };
|
||||
//# sourceMappingURL=createSourceFile.d.ts.map
|
2
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/describeFilePath.d.ts
сгенерированный
поставляемый
2
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/describeFilePath.d.ts
сгенерированный
поставляемый
|
@ -1,2 +0,0 @@
|
|||
export declare function describeFilePath(filePath: string, tsconfigRootDir: string): string;
|
||||
//# sourceMappingURL=describeFilePath.d.ts.map
|
5
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/getScriptKind.d.ts
сгенерированный
поставляемый
5
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/getScriptKind.d.ts
сгенерированный
поставляемый
|
@ -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
|
15
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/getWatchProgramsForProjects.d.ts
сгенерированный
поставляемый
15
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/getWatchProgramsForProjects.d.ts
сгенерированный
поставляемый
|
@ -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
|
32
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/shared.d.ts
сгенерированный
поставляемый
32
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/shared.d.ts
сгенерированный
поставляемый
|
@ -1,32 +0,0 @@
|
|||
import type { Program } from 'typescript';
|
||||
import * as ts from 'typescript';
|
||||
import type { ParseSettings } from '../parseSettings';
|
||||
interface ASTAndNoProgram {
|
||||
ast: ts.SourceFile;
|
||||
program: null;
|
||||
}
|
||||
interface ASTAndDefiniteProgram {
|
||||
ast: ts.SourceFile;
|
||||
program: ts.Program;
|
||||
}
|
||||
type ASTAndProgram = ASTAndDefiniteProgram | ASTAndNoProgram;
|
||||
/**
|
||||
* 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, filePath: string): ASTAndDefiniteProgram | undefined;
|
||||
/**
|
||||
* Hash content for compare content.
|
||||
* @param content hashed contend
|
||||
* @returns hashed result
|
||||
*/
|
||||
declare function createHash(content: string): string;
|
||||
export { ASTAndDefiniteProgram, ASTAndNoProgram, ASTAndProgram, CORE_COMPILER_OPTIONS, canonicalDirname, CanonicalPath, createDefaultCompilerOptionsFromExtra, createHash, ensureAbsolutePath, getCanonicalFileName, getAstFromProgram, };
|
||||
//# sourceMappingURL=shared.d.ts.map
|
16
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/useProvidedPrograms.d.ts
сгенерированный
поставляемый
16
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/create-program/useProvidedPrograms.d.ts
сгенерированный
поставляемый
|
@ -1,16 +0,0 @@
|
|||
import * as ts from 'typescript';
|
||||
import type { ASTAndDefiniteProgram } from './shared';
|
||||
export interface ProvidedProgramsSettings {
|
||||
filePath: string;
|
||||
tsconfigRootDir: string;
|
||||
}
|
||||
declare function useProvidedPrograms(programInstances: Iterable<ts.Program>, { filePath, tsconfigRootDir }: ProvidedProgramsSettings): ASTAndDefiniteProgram | 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
|
5
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/createParserServices.d.ts
сгенерированный
поставляемый
5
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/createParserServices.d.ts
сгенерированный
поставляемый
|
@ -1,5 +0,0 @@
|
|||
import type * as ts from 'typescript';
|
||||
import type { ASTMaps } from './convert';
|
||||
import type { ParserServices } from './parser-options';
|
||||
export declare function createParserServices(astMaps: ASTMaps, program: ts.Program | null): ParserServices;
|
||||
//# sourceMappingURL=createParserServices.d.ts.map
|
4
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/getModifiers.d.ts
сгенерированный
поставляемый
4
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/getModifiers.d.ts
сгенерированный
поставляемый
|
@ -1,4 +0,0 @@
|
|||
import * as ts from 'typescript';
|
||||
export declare function getModifiers(node: ts.Node | null | undefined, includeIllegalModifiers?: boolean): ts.Modifier[] | undefined;
|
||||
export declare function getDecorators(node: ts.Node | null | undefined, includeIllegalDecorators?: boolean): ts.Decorator[] | undefined;
|
||||
//# sourceMappingURL=getModifiers.d.ts.map
|
13
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/index.d.ts
сгенерированный
поставляемый
13
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/index.d.ts
сгенерированный
поставляемый
|
@ -1,13 +0,0 @@
|
|||
export { AST, parse, parseAndGenerateServices, ParseAndGenerateServicesResult, } from './parser';
|
||||
export { ParserServices, ParserServicesWithTypeInformation, ParserServicesWithoutTypeInformation, 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 { getCanonicalFileName } from './create-program/shared';
|
||||
export { typescriptVersionIsAtLeast } from './version-check';
|
||||
export * from './getModifiers';
|
||||
export { TSError } from './node-utils';
|
||||
export * from './clear-caches';
|
||||
export declare const version: string;
|
||||
//# sourceMappingURL=index.d.ts.map
|
2
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/jsx/xhtml-entities.d.ts
сгенерированный
поставляемый
2
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/jsx/xhtml-entities.d.ts
сгенерированный
поставляемый
|
@ -1,2 +0,0 @@
|
|||
export declare const xhtmlEntities: Record<string, string>;
|
||||
//# sourceMappingURL=xhtml-entities.d.ts.map
|
255
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/node-utils.d.ts
сгенерированный
поставляемый
255
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/node-utils.d.ts
сгенерированный
поставляемый
|
@ -1,255 +0,0 @@
|
|||
import * as ts from 'typescript';
|
||||
import type { TSESTree, TSNode } from './ts-estree';
|
||||
import { AST_NODE_TYPES, AST_TOKEN_TYPES } from './ts-estree';
|
||||
declare const SyntaxKind: typeof ts.SyntaxKind;
|
||||
type LogicalOperatorKind = ts.SyntaxKind.AmpersandAmpersandToken | ts.SyntaxKind.BarBarToken | ts.SyntaxKind.QuestionQuestionToken;
|
||||
interface TokenToText extends TSESTree.PunctuatorTokenToText, TSESTree.BinaryOperatorToText {
|
||||
[SyntaxKind.ImportKeyword]: 'import';
|
||||
[SyntaxKind.NewKeyword]: 'new';
|
||||
[SyntaxKind.KeyOfKeyword]: 'keyof';
|
||||
[SyntaxKind.ReadonlyKeyword]: 'readonly';
|
||||
[SyntaxKind.UniqueKeyword]: 'unique';
|
||||
}
|
||||
type AssignmentOperatorKind = keyof TSESTree.AssignmentOperatorToText;
|
||||
type BinaryOperatorKind = keyof TSESTree.BinaryOperatorToText;
|
||||
/**
|
||||
* 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.BinaryOperatorToken): operator is ts.Token<LogicalOperatorKind>;
|
||||
export declare function isESTreeBinaryOperator(operator: ts.BinaryOperatorToken): operator is ts.Token<BinaryOperatorKind>;
|
||||
type TokenForTokenKind<T extends ts.SyntaxKind> = T extends keyof TokenToText ? TokenToText[T] : string | undefined;
|
||||
/**
|
||||
* 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<T extends ts.SyntaxKind>(kind: T): TokenForTokenKind<T>;
|
||||
/**
|
||||
* 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<ts.SyntaxKind.CommaToken>;
|
||||
/**
|
||||
* 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 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.BinaryOperatorToken): {
|
||||
type: AST_NODE_TYPES.AssignmentExpression;
|
||||
operator: TokenForTokenKind<AssignmentOperatorKind>;
|
||||
} | {
|
||||
type: AST_NODE_TYPES.BinaryExpression;
|
||||
operator: TokenForTokenKind<BinaryOperatorKind>;
|
||||
} | {
|
||||
type: AST_NODE_TYPES.LogicalExpression;
|
||||
operator: TokenForTokenKind<LogicalOperatorKind>;
|
||||
};
|
||||
/**
|
||||
* 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 range start end data
|
||||
* @param ast the AST object
|
||||
* @returns the loc data
|
||||
*/
|
||||
export declare function getLocFor(range: TSESTree.Range, 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.Block | ts.ClassStaticBlockDeclaration | ts.ModuleBlock | ts.SourceFile): 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: Pick<ts.Node, 'getEnd' | 'getStart'>, ast: ts.SourceFile): [
|
||||
number,
|
||||
number
|
||||
];
|
||||
/**
|
||||
* 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): 'const' | 'let' | '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): 'private' | 'protected' | 'public' | undefined;
|
||||
/**
|
||||
* 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.CallExpression | ts.ElementAccessExpression | ts.NonNullExpression | ts.PropertyAccessExpression, 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<ts.SyntaxKind>): Exclude<AST_TOKEN_TYPES, AST_TOKEN_TYPES.Block | AST_TOKEN_TYPES.Line>;
|
||||
/**
|
||||
* 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<ts.TokenSyntaxKind>, 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 location: {
|
||||
start: {
|
||||
line: number;
|
||||
column: number;
|
||||
offset: number;
|
||||
};
|
||||
end: {
|
||||
line: number;
|
||||
column: number;
|
||||
offset: number;
|
||||
};
|
||||
};
|
||||
constructor(message: string, fileName: string, location: {
|
||||
start: {
|
||||
line: number;
|
||||
column: number;
|
||||
offset: number;
|
||||
};
|
||||
end: {
|
||||
line: number;
|
||||
column: number;
|
||||
offset: number;
|
||||
};
|
||||
});
|
||||
get index(): number;
|
||||
get lineNumber(): number;
|
||||
get column(): number;
|
||||
}
|
||||
/**
|
||||
* @param message the error message
|
||||
* @param ast the AST object
|
||||
* @param startIndex the index at which the error starts
|
||||
* @param endIndex the index at which the error ends
|
||||
* @returns converted error object
|
||||
*/
|
||||
export declare function createError(message: string, ast: ts.SourceFile, startIndex: number, endIndex?: number): TSError;
|
||||
export declare function nodeHasIllegalDecorators(node: ts.Node): node is ts.Node & {
|
||||
illegalDecorators: ts.Node[];
|
||||
};
|
||||
/**
|
||||
* @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<T, U>(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 declare function nodeIsPresent(node: ts.Node | undefined): node is ts.Node;
|
||||
export declare function getContainingFunction(node: ts.Node): ts.SignatureDeclaration | undefined;
|
||||
export declare function nodeCanBeDecorated(node: TSNode): boolean;
|
||||
export declare function getNamespaceModifiers(node: ts.ModuleDeclaration): ts.Modifier[] | undefined;
|
||||
export {};
|
||||
//# sourceMappingURL=node-utils.d.ts.map
|
17
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/parseSettings/ExpiringCache.d.ts
сгенерированный
поставляемый
17
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/parseSettings/ExpiringCache.d.ts
сгенерированный
поставляемый
|
@ -1,17 +0,0 @@
|
|||
import type { CacheDurationSeconds } from '@typescript-eslint/types';
|
||||
export declare const DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS = 30;
|
||||
export interface CacheLike<Key, Value> {
|
||||
get(key: Key): Value | void;
|
||||
set(key: Key, value: Value): this;
|
||||
}
|
||||
/**
|
||||
* A map with key-level expiration.
|
||||
*/
|
||||
export declare class ExpiringCache<TKey, TValue> implements CacheLike<TKey, TValue> {
|
||||
#private;
|
||||
constructor(cacheDurationSeconds: CacheDurationSeconds);
|
||||
set(key: TKey, value: TValue): this;
|
||||
get(key: TKey): TValue | undefined;
|
||||
clear(): void;
|
||||
}
|
||||
//# sourceMappingURL=ExpiringCache.d.ts.map
|
7
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/parseSettings/createParseSettings.d.ts
сгенерированный
поставляемый
7
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/parseSettings/createParseSettings.d.ts
сгенерированный
поставляемый
|
@ -1,7 +0,0 @@
|
|||
import type * as ts from 'typescript';
|
||||
import type { TSESTreeOptions } from '../parser-options';
|
||||
import type { MutableParseSettings } from './index';
|
||||
export declare function createParseSettings(code: ts.SourceFile | string, options?: Partial<TSESTreeOptions>): MutableParseSettings;
|
||||
export declare function clearTSConfigMatchCache(): void;
|
||||
export declare function clearTSServerProjectService(): void;
|
||||
//# sourceMappingURL=createParseSettings.d.ts.map
|
12
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/parseSettings/getProjectConfigFiles.d.ts
сгенерированный
поставляемый
12
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/parseSettings/getProjectConfigFiles.d.ts
сгенерированный
поставляемый
|
@ -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<ParseSettings, 'filePath' | 'tsconfigMatchCache' | 'tsconfigRootDir'>, project: string[] | string | true | null | undefined): string[] | null;
|
||||
//# sourceMappingURL=getProjectConfigFiles.d.ts.map
|
122
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/parseSettings/index.d.ts
сгенерированный
поставляемый
122
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/parseSettings/index.d.ts
сгенерированный
поставляемый
|
@ -1,122 +0,0 @@
|
|||
import type * as ts from 'typescript';
|
||||
import type * as tsserverlibrary from 'typescript/lib/tsserverlibrary';
|
||||
import type { CanonicalPath } from '../create-program/shared';
|
||||
import type { TSESTree } from '../ts-estree';
|
||||
import type { CacheLike } from './ExpiringCache';
|
||||
type DebugModule = 'eslint' | 'typescript-eslint' | 'typescript';
|
||||
/**
|
||||
* Internal settings used by the parser to run on a file.
|
||||
*/
|
||||
export interface MutableParseSettings {
|
||||
/**
|
||||
* Prevents the parser from throwing an error if it receives an invalid AST from TypeScript.
|
||||
*/
|
||||
allowInvalidAST: boolean;
|
||||
/**
|
||||
* Code of the file being parsed, or raw source file containing it.
|
||||
*/
|
||||
code: ts.SourceFile | string;
|
||||
/**
|
||||
* Full text of the file being parsed.
|
||||
*/
|
||||
codeFullText: string;
|
||||
/**
|
||||
* Whether the `comment` parse option is enabled.
|
||||
*/
|
||||
comment: boolean;
|
||||
/**
|
||||
* If the `comment` parse option is enabled, retrieved comments.
|
||||
*/
|
||||
comments: TSESTree.Comment[];
|
||||
/**
|
||||
* @deprecated
|
||||
* This is a legacy option that comes with severe performance penalties.
|
||||
* Please do not use it.
|
||||
*/
|
||||
DEPRECATED__createDefaultProgram: boolean;
|
||||
/**
|
||||
* Which debug areas should be logged.
|
||||
*/
|
||||
debugLevel: Set<DebugModule>;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* Experimental: TypeScript server to power program creation.
|
||||
*/
|
||||
EXPERIMENTAL_projectService: tsserverlibrary.server.ProjectService | undefined;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* 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: Iterable<ts.Program> | null;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* Whether deprecated AST properties should skip calling console.warn on accesses.
|
||||
*/
|
||||
suppressDeprecatedPropertyWarnings: boolean;
|
||||
/**
|
||||
* If the `tokens` parse option is enabled, retrieved tokens.
|
||||
*/
|
||||
tokens: TSESTree.Token[] | null;
|
||||
/**
|
||||
* Caches searches for TSConfigs from project directories.
|
||||
*/
|
||||
tsconfigMatchCache: CacheLike<string, string>;
|
||||
/**
|
||||
* The absolute path to the root directory for all provided `project`s.
|
||||
*/
|
||||
tsconfigRootDir: string;
|
||||
}
|
||||
export type ParseSettings = Readonly<MutableParseSettings>;
|
||||
export {};
|
||||
//# sourceMappingURL=index.d.ts.map
|
15
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/parseSettings/inferSingleRun.d.ts
сгенерированный
поставляемый
15
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/parseSettings/inferSingleRun.d.ts
сгенерированный
поставляемый
|
@ -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
|
19
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/parseSettings/resolveProjectList.d.ts
сгенерированный
поставляемый
19
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/parseSettings/resolveProjectList.d.ts
сгенерированный
поставляемый
|
@ -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: string[] | null;
|
||||
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
|
3
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/parseSettings/warnAboutTSVersion.d.ts
сгенерированный
поставляемый
3
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/parseSettings/warnAboutTSVersion.d.ts
сгенерированный
поставляемый
|
@ -1,3 +0,0 @@
|
|||
import type { ParseSettings } from './index';
|
||||
export declare function warnAboutTSVersion(parseSettings: ParseSettings): void;
|
||||
//# sourceMappingURL=warnAboutTSVersion.d.ts.map
|
192
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/parser-options.d.ts
сгенерированный
поставляемый
192
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/parser-options.d.ts
сгенерированный
поставляемый
|
@ -1,192 +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 {
|
||||
/**
|
||||
* Prevents the parser from throwing an error if it receives an invalid AST from TypeScript.
|
||||
* This case only usually occurs when attempting to lint invalid code.
|
||||
*/
|
||||
allowInvalidAST?: boolean;
|
||||
/**
|
||||
* 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?: false | ((message: string) => void);
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* Whether deprecated AST properties should skip calling console.warn on accesses.
|
||||
*/
|
||||
suppressDeprecatedPropertyWarnings?: 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.
|
||||
*
|
||||
* Whether to create a shared TypeScript server to power program creation.
|
||||
*
|
||||
* @see https://github.com/typescript-eslint/typescript-eslint/issues/6575
|
||||
*/
|
||||
EXPERIMENTAL_useProjectService?: 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 | null;
|
||||
/**
|
||||
* 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[] | null;
|
||||
/**
|
||||
* @deprecated - this flag will be removed in the next major.
|
||||
* Do not rely on the behavior provided by this flag.
|
||||
*/
|
||||
DEPRECATED__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;
|
||||
};
|
||||
}
|
||||
export type TSESTreeOptions = ParseAndGenerateServicesOptions;
|
||||
export interface ParserWeakMap<TKey, TValueBase> {
|
||||
get<TValue extends TValueBase>(key: TKey): TValue;
|
||||
has(key: unknown): boolean;
|
||||
}
|
||||
export interface ParserWeakMapESTreeToTSNode<TKey extends TSESTree.Node = TSESTree.Node> {
|
||||
get<TKeyBase extends TKey>(key: TKeyBase): TSESTreeToTSNode<TKeyBase>;
|
||||
has(key: unknown): boolean;
|
||||
}
|
||||
export interface ParserServicesNodeMaps {
|
||||
esTreeNodeToTSNodeMap: ParserWeakMapESTreeToTSNode;
|
||||
tsNodeToESTreeNodeMap: ParserWeakMap<TSNode | TSToken, TSESTree.Node>;
|
||||
}
|
||||
export interface ParserServicesWithTypeInformation extends ParserServicesNodeMaps {
|
||||
program: ts.Program;
|
||||
getSymbolAtLocation: (node: TSESTree.Node) => ts.Symbol | undefined;
|
||||
getTypeAtLocation: (node: TSESTree.Node) => ts.Type;
|
||||
}
|
||||
export interface ParserServicesWithoutTypeInformation extends ParserServicesNodeMaps {
|
||||
program: null;
|
||||
}
|
||||
export type ParserServices = ParserServicesWithoutTypeInformation | ParserServicesWithTypeInformation;
|
||||
export {};
|
||||
//# sourceMappingURL=parser-options.d.ts.map
|
20
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/parser.d.ts
сгенерированный
поставляемый
20
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/parser.d.ts
сгенерированный
поставляемый
|
@ -1,20 +0,0 @@
|
|||
import type * as ts from 'typescript';
|
||||
import type { ParserServices, TSESTreeOptions } from './parser-options';
|
||||
import type { TSESTree } from './ts-estree';
|
||||
declare function clearProgramCache(): void;
|
||||
interface EmptyObject {
|
||||
}
|
||||
type AST<T extends TSESTreeOptions> = TSESTree.Program & (T['comment'] extends true ? {
|
||||
comments: TSESTree.Comment[];
|
||||
} : EmptyObject) & (T['tokens'] extends true ? {
|
||||
tokens: TSESTree.Token[];
|
||||
} : EmptyObject);
|
||||
interface ParseAndGenerateServicesResult<T extends TSESTreeOptions> {
|
||||
ast: AST<T>;
|
||||
services: ParserServices;
|
||||
}
|
||||
declare function parse<T extends TSESTreeOptions = TSESTreeOptions>(code: string, options?: T): AST<T>;
|
||||
declare function clearParseAndGenerateServicesCalls(): void;
|
||||
declare function parseAndGenerateServices<T extends TSESTreeOptions = TSESTreeOptions>(code: ts.SourceFile | string, options: T): ParseAndGenerateServicesResult<T>;
|
||||
export { AST, parse, parseAndGenerateServices, ParseAndGenerateServicesResult, clearProgramCache, clearParseAndGenerateServicesCalls, };
|
||||
//# sourceMappingURL=parser.d.ts.map
|
13
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/semantic-or-syntactic-errors.d.ts
сгенерированный
поставляемый
13
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/semantic-or-syntactic-errors.d.ts
сгенерированный
поставляемый
|
@ -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
|
12
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/simple-traverse.d.ts
сгенерированный
поставляемый
12
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/simple-traverse.d.ts
сгенерированный
поставляемый
|
@ -1,12 +0,0 @@
|
|||
import type { VisitorKeys } from '@typescript-eslint/visitor-keys';
|
||||
import type { TSESTree } from './ts-estree';
|
||||
type SimpleTraverseOptions = Readonly<{
|
||||
visitorKeys?: Readonly<VisitorKeys>;
|
||||
enter: (node: TSESTree.Node, parent: TSESTree.Node | undefined) => void;
|
||||
} | {
|
||||
visitorKeys?: Readonly<VisitorKeys>;
|
||||
visitors: Record<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
|
4
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/source-files.d.ts
сгенерированный
поставляемый
4
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/source-files.d.ts
сгенерированный
поставляемый
|
@ -1,4 +0,0 @@
|
|||
import * as ts from 'typescript';
|
||||
export declare function isSourceFile(code: unknown): code is ts.SourceFile;
|
||||
export declare function getCodeText(code: ts.SourceFile | string): string;
|
||||
//# sourceMappingURL=source-files.d.ts.map
|
178
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/ts-estree/estree-to-ts-node-types.d.ts
сгенерированный
поставляемый
178
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/ts-estree/estree-to-ts-node-types.d.ts
сгенерированный
поставляемый
|
@ -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.ArrayBindingPattern | ts.ArrayLiteralExpression;
|
||||
[AST_NODE_TYPES.ArrowFunctionExpression]: ts.ArrowFunction;
|
||||
[AST_NODE_TYPES.AssignmentExpression]: ts.BinaryExpression;
|
||||
[AST_NODE_TYPES.AssignmentPattern]: ts.BinaryExpression | ts.BindingElement | ts.ParameterDeclaration | ts.ShorthandPropertyAssignment;
|
||||
[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.ElementAccessExpression | ts.NonNullExpression | ts.PropertyAccessExpression;
|
||||
[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.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportAssignment | ts.FunctionDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement;
|
||||
[AST_NODE_TYPES.ExportNamedDeclaration]: ts.ClassDeclaration | ts.ClassExpression | ts.EnumDeclaration | ts.ExportDeclaration | ts.FunctionDeclaration | ts.ImportEqualsDeclaration | ts.InterfaceDeclaration | ts.ModuleDeclaration | ts.TypeAliasDeclaration | ts.VariableStatement;
|
||||
[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.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
|
||||
[AST_NODE_TYPES.Identifier]: ts.ConstructorDeclaration | ts.Identifier | ts.Token<ts.SyntaxKind.ImportKeyword | ts.SyntaxKind.NewKeyword>;
|
||||
[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.BigIntLiteral | ts.BooleanLiteral | ts.NullLiteral | ts.NumericLiteral | ts.RegularExpressionLiteral | ts.StringLiteral;
|
||||
[AST_NODE_TYPES.LogicalExpression]: ts.BinaryExpression;
|
||||
[AST_NODE_TYPES.MemberExpression]: ts.ElementAccessExpression | ts.PropertyAccessExpression;
|
||||
[AST_NODE_TYPES.MetaProperty]: ts.MetaProperty;
|
||||
[AST_NODE_TYPES.MethodDefinition]: ts.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
|
||||
[AST_NODE_TYPES.NewExpression]: ts.NewExpression;
|
||||
[AST_NODE_TYPES.ObjectExpression]: ts.ObjectLiteralExpression;
|
||||
[AST_NODE_TYPES.ObjectPattern]: ts.ObjectBindingPattern | ts.ObjectLiteralExpression;
|
||||
[AST_NODE_TYPES.Program]: ts.SourceFile;
|
||||
[AST_NODE_TYPES.Property]: ts.BindingElement | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.PropertyAssignment | ts.SetAccessorDeclaration | ts.ShorthandPropertyAssignment;
|
||||
[AST_NODE_TYPES.RestElement]: ts.BindingElement | ts.ParameterDeclaration | ts.SpreadAssignment | ts.SpreadElement;
|
||||
[AST_NODE_TYPES.ReturnStatement]: ts.ReturnStatement;
|
||||
[AST_NODE_TYPES.SequenceExpression]: ts.BinaryExpression;
|
||||
[AST_NODE_TYPES.SpreadElement]: ts.SpreadAssignment | ts.SpreadElement;
|
||||
[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.Identifier | ts.KeywordTypeNode | ts.ThisExpression;
|
||||
[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.ConstructorDeclaration | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
|
||||
[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.GetAccessorDeclaration | ts.MethodSignature | 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.Identifier | ts.QualifiedName;
|
||||
[AST_NODE_TYPES.TSRestType]: ts.NamedTupleMember | ts.RestTypeNode;
|
||||
[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.CallExpression | ts.ExpressionWithTypeArguments | ts.ImportTypeNode | ts.JsxOpeningElement | ts.JsxSelfClosingElement | ts.NewExpression | ts.TaggedTemplateExpression | ts.TypeQueryNode | ts.TypeReferenceNode;
|
||||
[AST_NODE_TYPES.TSTypePredicate]: ts.TypePredicateNode;
|
||||
[AST_NODE_TYPES.TSTypeQuery]: ts.ImportTypeNode | ts.TypeQueryNode;
|
||||
[AST_NODE_TYPES.TSTypeReference]: ts.TypeReferenceNode;
|
||||
[AST_NODE_TYPES.TSUnionType]: ts.UnionTypeNode;
|
||||
[AST_NODE_TYPES.UpdateExpression]: ts.PostfixUnaryExpression | ts.PrefixUnaryExpression;
|
||||
[AST_NODE_TYPES.UnaryExpression]: ts.DeleteExpression | ts.PostfixUnaryExpression | ts.PrefixUnaryExpression | ts.TypeOfExpression | ts.VoidExpression;
|
||||
[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.ConstructorDeclaration | ts.FunctionExpression | ts.GetAccessorDeclaration | ts.MethodDeclaration | ts.SetAccessorDeclaration;
|
||||
[AST_NODE_TYPES.TSAbstractKeyword]: ts.Token<ts.SyntaxKind.AbstractKeyword>;
|
||||
[AST_NODE_TYPES.TSNullKeyword]: ts.KeywordTypeNode | ts.NullLiteral;
|
||||
[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<ts.SyntaxKind.AsyncKeyword>;
|
||||
[AST_NODE_TYPES.TSDeclareKeyword]: ts.Token<ts.SyntaxKind.DeclareKeyword>;
|
||||
[AST_NODE_TYPES.TSExportKeyword]: ts.Token<ts.SyntaxKind.ExportKeyword>;
|
||||
[AST_NODE_TYPES.TSStaticKeyword]: ts.Token<ts.SyntaxKind.StaticKeyword>;
|
||||
[AST_NODE_TYPES.TSPublicKeyword]: ts.Token<ts.SyntaxKind.PublicKeyword>;
|
||||
[AST_NODE_TYPES.TSPrivateKeyword]: ts.Token<ts.SyntaxKind.PrivateKeyword>;
|
||||
[AST_NODE_TYPES.TSProtectedKeyword]: ts.Token<ts.SyntaxKind.ProtectedKeyword>;
|
||||
[AST_NODE_TYPES.TSReadonlyKeyword]: ts.Token<ts.SyntaxKind.ReadonlyKeyword>;
|
||||
}
|
||||
/**
|
||||
* 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<T extends TSESTree.Node = TSESTree.Node> = Extract<ts.Token<ts.SyntaxKind.ImportKeyword | ts.SyntaxKind.NewKeyword> | TSNode, EstreeToTsNodeTypes[T['type']]>;
|
||||
//# sourceMappingURL=estree-to-ts-node-types.d.ts.map
|
4
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/ts-estree/index.d.ts
сгенерированный
поставляемый
4
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/ts-estree/index.d.ts
сгенерированный
поставляемый
|
@ -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
|
14
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/ts-estree/ts-nodes.d.ts
сгенерированный
поставляемый
14
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/ts-estree/ts-nodes.d.ts
сгенерированный
поставляемый
|
@ -1,14 +0,0 @@
|
|||
import type * as ts from 'typescript';
|
||||
declare module 'typescript' {
|
||||
interface AssertClause extends ts.Node {
|
||||
}
|
||||
interface AssertEntry extends ts.Node {
|
||||
}
|
||||
interface SatisfiesExpression extends ts.Node {
|
||||
}
|
||||
interface JsxNamespacedName extends ts.Node {
|
||||
}
|
||||
}
|
||||
export type TSToken = ts.Token<ts.SyntaxKind>;
|
||||
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
|
7
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/use-at-your-own-risk.d.ts
сгенерированный
поставляемый
7
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/use-at-your-own-risk.d.ts
сгенерированный
поставляемый
|
@ -1,7 +0,0 @@
|
|||
export * from './create-program/getScriptKind';
|
||||
export * from './ast-converter';
|
||||
export type { ParseSettings } from './parseSettings';
|
||||
export * from './getModifiers';
|
||||
export { typescriptVersionIsAtLeast } from './version-check';
|
||||
export { getCanonicalFileName } from './create-program/shared';
|
||||
//# sourceMappingURL=use-at-your-own-risk.d.ts.map
|
5
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/useProgramFromProjectService.d.ts
сгенерированный
поставляемый
5
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/useProgramFromProjectService.d.ts
сгенерированный
поставляемый
|
@ -1,5 +0,0 @@
|
|||
import type { server } from 'typescript/lib/tsserverlibrary';
|
||||
import type { ASTAndDefiniteProgram } from './create-program/shared';
|
||||
import type { MutableParseSettings } from './parseSettings';
|
||||
export declare function useProgramFromProjectService(projectService: server.ProjectService, parseSettings: Readonly<MutableParseSettings>): ASTAndDefiniteProgram | undefined;
|
||||
//# sourceMappingURL=useProgramFromProjectService.d.ts.map
|
3
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/version-check.d.ts
сгенерированный
поставляемый
3
node_modules/@typescript-eslint/typescript-estree/_ts4.3/dist/version-check.d.ts
сгенерированный
поставляемый
|
@ -1,3 +0,0 @@
|
|||
declare const typescriptVersionIsAtLeast: Record<"4.3" | "4.4" | "4.5" | "4.6" | "4.7" | "4.8" | "4.9" | "5.0" | "5.1" | "5.2", boolean>;
|
||||
export { typescriptVersionIsAtLeast };
|
||||
//# sourceMappingURL=version-check.d.ts.map
|
2
node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map
сгенерированный
поставляемый
2
node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map
сгенерированный
поставляемый
|
@ -1 +1 @@
|
|||
{"version":3,"file":"getWatchProgramsForProjects.d.ts","sourceRoot":"","sources":["../../src/create-program/getWatchProgramsForProjects.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA8CtD;;;GAGG;AACH,iBAAS,gBAAgB,IAAI,IAAI,CAOhC;AAgED;;;;GAIG;AACH,iBAAS,2BAA2B,CAClC,aAAa,EAAE,aAAa,GAC3B,EAAE,CAAC,OAAO,EAAE,CAuHd;AAkQD,OAAO,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,CAAC"}
|
||||
{"version":3,"file":"getWatchProgramsForProjects.d.ts","sourceRoot":"","sources":["../../src/create-program/getWatchProgramsForProjects.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA8CtD;;;GAGG;AACH,iBAAS,gBAAgB,IAAI,IAAI,CAOhC;AAgED;;;;GAIG;AACH,iBAAS,2BAA2B,CAClC,aAAa,EAAE,aAAa,GAC3B,EAAE,CAAC,OAAO,EAAE,CAsHd;AAkQD,OAAO,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,CAAC"}
|
3
node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js
сгенерированный
поставляемый
3
node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js
сгенерированный
поставляемый
|
@ -146,8 +146,7 @@ function getWatchProgramsForProjects(parseSettings) {
|
|||
}
|
||||
if (fileList.has(filePath)) {
|
||||
log('Found existing program for file. %s', filePath);
|
||||
updatedProgram =
|
||||
updatedProgram ?? existingWatch.getProgram().getProgram();
|
||||
updatedProgram ??= existingWatch.getProgram().getProgram();
|
||||
// sets parent pointers in source files
|
||||
updatedProgram.getTypeChecker();
|
||||
return [updatedProgram];
|
||||
|
|
2
node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map
сгенерированный
поставляемый
2
node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map
сгенерированный
поставляемый
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/typescript-estree",
|
||||
"version": "6.4.0",
|
||||
"version": "6.4.1",
|
||||
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
|
||||
"files": [
|
||||
"dist",
|
||||
|
@ -52,8 +52,8 @@
|
|||
"typecheck": "tsc -p tsconfig.json --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "6.4.0",
|
||||
"@typescript-eslint/visitor-keys": "6.4.0",
|
||||
"@typescript-eslint/types": "6.4.1",
|
||||
"@typescript-eslint/visitor-keys": "6.4.1",
|
||||
"debug": "^4.3.4",
|
||||
"globby": "^11.1.0",
|
||||
"is-glob": "^4.0.3",
|
||||
|
@ -64,8 +64,11 @@
|
|||
"@babel/code-frame": "*",
|
||||
"@babel/parser": "*",
|
||||
"glob": "*",
|
||||
"jest-specific-snapshot": "*",
|
||||
"jest": "29.6.2",
|
||||
"jest-specific-snapshot": "^8.0.0",
|
||||
"make-dir": "*",
|
||||
"prettier": "^2.8.4",
|
||||
"rimraf": "*",
|
||||
"tmp": "*",
|
||||
"typescript": "*"
|
||||
},
|
||||
|
@ -85,5 +88,5 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"gitHead": "14bea42e4864c72d28f502e0d15e675fe8bd729a"
|
||||
"gitHead": "ef1367eeed112fd6bbb94e0c9bd56d7e167a1a59"
|
||||
}
|
||||
|
|
48
node_modules/@typescript-eslint/utils/_ts4.3/dist/ast-utils/eslint-utils/PatternMatcher.d.ts
сгенерированный
поставляемый
48
node_modules/@typescript-eslint/utils/_ts4.3/dist/ast-utils/eslint-utils/PatternMatcher.d.ts
сгенерированный
поставляемый
|
@ -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<RegExpExecArray>;
|
||||
/**
|
||||
* 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
|
76
node_modules/@typescript-eslint/utils/_ts4.3/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts
сгенерированный
поставляемый
76
node_modules/@typescript-eslint/utils/_ts4.3/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts
сгенерированный
поставляемый
|
@ -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<T>(traceMap: ReferenceTracker.TraceMap<T>): IterableIterator<ReferenceTracker.FoundReference<T>>;
|
||||
/**
|
||||
* 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<T>(traceMap: ReferenceTracker.TraceMap<T>): IterableIterator<ReferenceTracker.FoundReference<T>>;
|
||||
/**
|
||||
* 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<T>(traceMap: ReferenceTracker.TraceMap<T>): IterableIterator<ReferenceTracker.FoundReference<T>>;
|
||||
}
|
||||
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?: 'legacy' | 'strict';
|
||||
/**
|
||||
* 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 = CALL | CONSTRUCT | READ;
|
||||
type TraceMap<T = any> = Record<string, TraceMapElement<T>>;
|
||||
interface TraceMapElement<T> {
|
||||
[ReferenceTrackerREAD]?: T;
|
||||
[ReferenceTrackerCALL]?: T;
|
||||
[ReferenceTrackerCONSTRUCT]?: T;
|
||||
[ReferenceTrackerESM]?: true;
|
||||
[key: string]: TraceMapElement<T>;
|
||||
}
|
||||
interface FoundReference<T = any> {
|
||||
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
|
76
node_modules/@typescript-eslint/utils/_ts4.3/dist/ast-utils/eslint-utils/astUtilities.d.ts
сгенерированный
поставляемый
76
node_modules/@typescript-eslint/utils/_ts4.3/dist/ast-utils/eslint-utils/astUtilities.d.ts
сгенерированный
поставляемый
|
@ -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.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression, 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.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression, 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.MethodDefinition | TSESTree.Property | 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
|
6
node_modules/@typescript-eslint/utils/_ts4.3/dist/ast-utils/eslint-utils/index.d.ts
сгенерированный
поставляемый
6
node_modules/@typescript-eslint/utils/_ts4.3/dist/ast-utils/eslint-utils/index.d.ts
сгенерированный
поставляемый
|
@ -1,6 +0,0 @@
|
|||
export * from './astUtilities';
|
||||
export * from './PatternMatcher';
|
||||
export * from './predicates';
|
||||
export * from './ReferenceTracker';
|
||||
export * from './scopeAnalysis';
|
||||
//# sourceMappingURL=index.d.ts.map
|
32
node_modules/@typescript-eslint/utils/_ts4.3/dist/ast-utils/eslint-utils/predicates.d.ts
сгенерированный
поставляемый
32
node_modules/@typescript-eslint/utils/_ts4.3/dist/ast-utils/eslint-utils/predicates.d.ts
сгенерированный
поставляемый
|
@ -1,32 +0,0 @@
|
|||
import type { TSESTree } from '../../ts-estree';
|
||||
type IsSpecificTokenFunction<SpecificToken extends TSESTree.Token> = (token: TSESTree.Token) => token is SpecificToken;
|
||||
type IsNotSpecificTokenFunction<SpecificToken extends TSESTree.Token> = (token: TSESTree.Token) => token is Exclude<TSESTree.Token, SpecificToken>;
|
||||
type PunctuatorTokenWithValue<Value extends string> = TSESTree.PunctuatorToken & {
|
||||
value: Value;
|
||||
};
|
||||
type IsPunctuatorTokenWithValueFunction<Value extends string> = IsSpecificTokenFunction<PunctuatorTokenWithValue<Value>>;
|
||||
type IsNotPunctuatorTokenWithValueFunction<Value extends string> = IsNotSpecificTokenFunction<PunctuatorTokenWithValue<Value>>;
|
||||
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<TSESTree.Comment>;
|
||||
declare const isNotCommentToken: IsNotSpecificTokenFunction<TSESTree.Comment>;
|
||||
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
|
18
node_modules/@typescript-eslint/utils/_ts4.3/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts
сгенерированный
поставляемый
18
node_modules/@typescript-eslint/utils/_ts4.3/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts
сгенерированный
поставляемый
|
@ -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: TSESTree.Identifier | string) => 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
|
1207
node_modules/@typescript-eslint/utils/_ts4.3/dist/ast-utils/helpers.d.ts
сгенерированный
поставляемый
1207
node_modules/@typescript-eslint/utils/_ts4.3/dist/ast-utils/helpers.d.ts
сгенерированный
поставляемый
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
5
node_modules/@typescript-eslint/utils/_ts4.3/dist/ast-utils/index.d.ts
сгенерированный
поставляемый
5
node_modules/@typescript-eslint/utils/_ts4.3/dist/ast-utils/index.d.ts
сгенерированный
поставляемый
|
@ -1,5 +0,0 @@
|
|||
export * from './eslint-utils';
|
||||
export * from './helpers';
|
||||
export * from './misc';
|
||||
export * from './predicates';
|
||||
//# sourceMappingURL=index.d.ts.map
|
8
node_modules/@typescript-eslint/utils/_ts4.3/dist/ast-utils/misc.d.ts
сгенерированный
поставляемый
8
node_modules/@typescript-eslint/utils/_ts4.3/dist/ast-utils/misc.d.ts
сгенерированный
поставляемый
|
@ -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
|
70
node_modules/@typescript-eslint/utils/_ts4.3/dist/ast-utils/predicates.d.ts
сгенерированный
поставляемый
70
node_modules/@typescript-eslint/utils/_ts4.3/dist/ast-utils/predicates.d.ts
сгенерированный
поставляемый
|
@ -1,70 +0,0 @@
|
|||
import type { TSESTree } from '../ts-estree';
|
||||
declare const isOptionalChainPunctuator: (token: TSESTree.Token | null | undefined) => token is {
|
||||
value: "?.";
|
||||
} & TSESTree.PunctuatorToken;
|
||||
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 {
|
||||
value: "!";
|
||||
} & TSESTree.PunctuatorToken;
|
||||
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 {
|
||||
optional: boolean;
|
||||
} & TSESTree.CallExpression;
|
||||
/**
|
||||
* Returns true if and only if the node represents logical OR
|
||||
*/
|
||||
declare const isLogicalOrOperator: (node: TSESTree.Node | null | undefined) => node is Partial<TSESTree.LogicalExpression> & TSESTree.LogicalExpression;
|
||||
/**
|
||||
* Checks if a node is a type assertion:
|
||||
* ```
|
||||
* x as foo
|
||||
* <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 (Partial<TSESTree.MethodDefinitionComputedName> & TSESTree.MethodDefinitionComputedName) | (Partial<TSESTree.MethodDefinitionNonComputedName> & TSESTree.MethodDefinitionNonComputedName);
|
||||
/**
|
||||
* Checks if a node is a setter method.
|
||||
*/
|
||||
declare function isSetter(node: TSESTree.Node | undefined): node is {
|
||||
kind: 'set';
|
||||
} & (TSESTree.MethodDefinition | TSESTree.Property);
|
||||
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 {
|
||||
value: "await";
|
||||
} & TSESTree.IdentifierToken;
|
||||
/**
|
||||
* Checks if a possible token is the `type` keyword.
|
||||
*/
|
||||
declare const isTypeKeyword: (token: TSESTree.Token | null | undefined) => token is {
|
||||
value: "type";
|
||||
} & TSESTree.IdentifierToken;
|
||||
/**
|
||||
* Checks if a possible token is the `import` keyword.
|
||||
*/
|
||||
declare const isImportKeyword: (token: TSESTree.Token | null | undefined) => token is {
|
||||
value: "import";
|
||||
} & TSESTree.KeywordToken;
|
||||
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
|
11
node_modules/@typescript-eslint/utils/_ts4.3/dist/eslint-utils/InferTypesFromRule.d.ts
сгенерированный
поставляемый
11
node_modules/@typescript-eslint/utils/_ts4.3/dist/eslint-utils/InferTypesFromRule.d.ts
сгенерированный
поставляемый
|
@ -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> = T extends RuleModule<infer _TMessageIds, infer TOptions> ? TOptions : T extends RuleCreateFunction<infer _TMessageIds, infer TOptions> ? TOptions : unknown;
|
||||
/**
|
||||
* Uses type inference to fetch the TMessageIds type from the given RuleModule
|
||||
*/
|
||||
type InferMessageIdsTypeFromRule<T> = T extends RuleModule<infer TMessageIds, infer _TOptions> ? TMessageIds : T extends RuleCreateFunction<infer TMessageIds, infer _TOptions> ? TMessageIds : unknown;
|
||||
export { InferOptionsTypeFromRule, InferMessageIdsTypeFromRule };
|
||||
//# sourceMappingURL=InferTypesFromRule.d.ts.map
|
35
node_modules/@typescript-eslint/utils/_ts4.3/dist/eslint-utils/RuleCreator.d.ts
сгенерированный
поставляемый
35
node_modules/@typescript-eslint/utils/_ts4.3/dist/eslint-utils/RuleCreator.d.ts
сгенерированный
поставляемый
|
@ -1,35 +0,0 @@
|
|||
import type { RuleContext, RuleListener, RuleMetaData, RuleMetaDataDocs, RuleModule } from '../ts-eslint/Rule';
|
||||
export type NamedCreateRuleMetaDocs = Omit<RuleMetaDataDocs, 'url'>;
|
||||
export type NamedCreateRuleMeta<TMessageIds extends string> = Omit<RuleMetaData<TMessageIds>, 'docs'> & {
|
||||
docs: NamedCreateRuleMetaDocs;
|
||||
};
|
||||
export interface RuleCreateAndOptions<TOptions extends readonly unknown[], TMessageIds extends string> {
|
||||
create: (context: Readonly<RuleContext<TMessageIds, TOptions>>, optionsWithDefault: Readonly<TOptions>) => RuleListener;
|
||||
defaultOptions: Readonly<TOptions>;
|
||||
}
|
||||
export interface RuleWithMeta<TOptions extends readonly unknown[], TMessageIds extends string> extends RuleCreateAndOptions<TOptions, TMessageIds> {
|
||||
meta: RuleMetaData<TMessageIds>;
|
||||
}
|
||||
export interface RuleWithMetaAndName<TOptions extends readonly unknown[], TMessageIds extends string> extends RuleCreateAndOptions<TOptions, TMessageIds> {
|
||||
meta: NamedCreateRuleMeta<TMessageIds>;
|
||||
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): <TOptions extends readonly unknown[], TMessageIds extends string>({ name, meta, ...rule }: Readonly<RuleWithMetaAndName<TOptions, TMessageIds>>) => RuleModule<TMessageIds, TOptions, RuleListener>;
|
||||
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<TOptions extends readonly unknown[], TMessageIds extends string>({ create, defaultOptions, meta, }: Readonly<RuleWithMeta<TOptions, TMessageIds>>): RuleModule<TMessageIds, TOptions>;
|
||||
export {};
|
||||
//# sourceMappingURL=RuleCreator.d.ts.map
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче