Update checked-in dependencies
This commit is contained in:
parent
08e5c8d618
commit
5275714183
148 changed files with 4045 additions and 39247 deletions
278
node_modules/.package-lock.json
generated
vendored
278
node_modules/.package-lock.json
generated
vendored
|
|
@ -208,10 +208,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/cache": {
|
"node_modules/@actions/cache": {
|
||||||
"version": "4.0.2",
|
"version": "4.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/cache/-/cache-4.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/cache/-/cache-4.0.3.tgz",
|
||||||
"integrity": "sha512-cBr7JL1q+JKjbBd3w3SZN5OQ1Xg+/D8QLMcE7MpgpghZlL4biBO0ZEeraoTxCZyfN0YY0dxXlLgsgGv/sT5BTg==",
|
"integrity": "sha512-SvrqFtYJ7I48A/uXNkoJrnukx5weQv1fGquhs3+4nkByZThBH109KTIqj5x/cGV7JGNvb8dLPVywUOqX1fjiXg==",
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
"@actions/exec": "^1.0.1",
|
"@actions/exec": "^1.0.1",
|
||||||
|
|
@ -734,11 +733,10 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@eslint/eslintrc": {
|
"node_modules/@eslint/eslintrc": {
|
||||||
"version": "3.3.0",
|
"version": "3.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz",
|
||||||
"integrity": "sha512-yaVPAiNAalnCZedKLdR21GOGILMLKPyqSLWaAjQFvYA2i/ciDi8ArYVr69Anohb6cH2Ukhqti4aFnYyPm8wdwQ==",
|
"integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ajv": "^6.12.4",
|
"ajv": "^6.12.4",
|
||||||
"debug": "^4.3.2",
|
"debug": "^4.3.2",
|
||||||
|
|
@ -799,9 +797,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@eslint/js": {
|
"node_modules/@eslint/js": {
|
||||||
"version": "9.22.0",
|
"version": "9.23.0",
|
||||||
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.22.0.tgz",
|
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.23.0.tgz",
|
||||||
"integrity": "sha512-vLFajx9o8d1/oL2ZkpMYbkLv8nDB6yaIwFNt7nI4+I80U/z03SxmfOMsLbvWr3p7C+Wnoh//aOu2pQW8cS0HCQ==",
|
"integrity": "sha512-35MJ8vCPU0ZMxo7zfev2pypqTwWTofFZO6m4KAtdoFhRpLJUpHTZZ+KB3C7Hb1d7bULYwO4lJXGCi5Se+8OMbw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||||
|
|
@ -1418,6 +1416,11 @@
|
||||||
"node": ">= 18"
|
"node": ">= 18"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@octokit/openapi-types": {
|
||||||
|
"version": "24.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz",
|
||||||
|
"integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg=="
|
||||||
|
},
|
||||||
"node_modules/@octokit/openapi-webhooks-types": {
|
"node_modules/@octokit/openapi-webhooks-types": {
|
||||||
"version": "9.1.0",
|
"version": "9.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-webhooks-types/-/openapi-webhooks-types-9.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/openapi-webhooks-types/-/openapi-webhooks-types-9.1.0.tgz",
|
||||||
|
|
@ -1543,20 +1546,13 @@
|
||||||
"integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q=="
|
"integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q=="
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/types": {
|
"node_modules/@octokit/types": {
|
||||||
"version": "13.8.0",
|
"version": "13.10.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.8.0.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz",
|
||||||
"integrity": "sha512-x7DjTIbEpEWXK99DMd01QfWy0hd5h4EN+Q7shkdKds3otGQP+oWE/y0A76i1OvH9fygo4ddvNf7ZvF0t78P98A==",
|
"integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==",
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/openapi-types": "^23.0.1"
|
"@octokit/openapi-types": "^24.2.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/types/node_modules/@octokit/openapi-types": {
|
|
||||||
"version": "23.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-23.0.1.tgz",
|
|
||||||
"integrity": "sha512-izFjMJ1sir0jn0ldEKhZ7xegCTj/ObmEDlEfpFrx4k/JyZSMRHbO3/rBwgE7f3m2DHt+RrNGIVw4wSmwnm3t/g==",
|
|
||||||
"license": "MIT"
|
|
||||||
},
|
|
||||||
"node_modules/@octokit/webhooks": {
|
"node_modules/@octokit/webhooks": {
|
||||||
"version": "13.6.1",
|
"version": "13.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/webhooks/-/webhooks-13.6.1.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/webhooks/-/webhooks-13.6.1.tgz",
|
||||||
|
|
@ -1726,9 +1722,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@sinonjs/fake-timers": {
|
"node_modules/@sinonjs/fake-timers": {
|
||||||
"version": "13.0.2",
|
"version": "13.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-13.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-13.0.5.tgz",
|
||||||
"integrity": "sha512-4Bb+oqXZTSTZ1q27Izly9lv8B9dlV61CROxPiVtywwzv5SnytJqhvYe6FclHYuXml4cd1VHPo1zd5PmTeJozvA==",
|
"integrity": "sha512-36/hTbH2uaWuGVERyC6da9YwGWnzUZXuPro/F2LfsdOsLnCojz/iSH8MxUt/FD2S5XBSVPhmArFUXcpCQ2Hkiw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sinonjs/commons": "^3.0.1"
|
"@sinonjs/commons": "^3.0.1"
|
||||||
|
|
@ -1754,12 +1750,6 @@
|
||||||
"node": ">=4"
|
"node": ">=4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@sinonjs/text-encoding": {
|
|
||||||
"version": "0.7.3",
|
|
||||||
"resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.3.tgz",
|
|
||||||
"integrity": "sha512-DE427ROAphMQzU4ENbliGYrBSYPXF+TtLg9S8vzeA+OF4ZKzoDdzfL8sxuMUGS/lgRhM6j1URSk9ghf7Xo1tyA==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"node_modules/@types/adm-zip": {
|
"node_modules/@types/adm-zip": {
|
||||||
"version": "0.5.7",
|
"version": "0.5.7",
|
||||||
"resolved": "https://registry.npmjs.org/@types/adm-zip/-/adm-zip-0.5.7.tgz",
|
"resolved": "https://registry.npmjs.org/@types/adm-zip/-/adm-zip-0.5.7.tgz",
|
||||||
|
|
@ -1851,16 +1841,16 @@
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/eslint-plugin": {
|
"node_modules/@typescript-eslint/eslint-plugin": {
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.26.1.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.28.0.tgz",
|
||||||
"integrity": "sha512-2X3mwqsj9Bd3Ciz508ZUtoQQYpOhU/kWoUqIf49H8Z0+Vbh6UF/y0OEYp0Q0axOGzaBGs7QxRwq0knSQ8khQNA==",
|
"integrity": "sha512-lvFK3TCGAHsItNdWZ/1FkvpzCxTHUVuFrdnOGLMa0GGCFIbCgQWVk3CzCGdA7kM3qGVc+dfW9tr0Z/sHnGDFyg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint-community/regexpp": "^4.10.0",
|
"@eslint-community/regexpp": "^4.10.0",
|
||||||
"@typescript-eslint/scope-manager": "8.26.1",
|
"@typescript-eslint/scope-manager": "8.28.0",
|
||||||
"@typescript-eslint/type-utils": "8.26.1",
|
"@typescript-eslint/type-utils": "8.28.0",
|
||||||
"@typescript-eslint/utils": "8.26.1",
|
"@typescript-eslint/utils": "8.28.0",
|
||||||
"@typescript-eslint/visitor-keys": "8.26.1",
|
"@typescript-eslint/visitor-keys": "8.28.0",
|
||||||
"graphemer": "^1.4.0",
|
"graphemer": "^1.4.0",
|
||||||
"ignore": "^5.3.1",
|
"ignore": "^5.3.1",
|
||||||
"natural-compare": "^1.4.0",
|
"natural-compare": "^1.4.0",
|
||||||
|
|
@ -1880,13 +1870,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager": {
|
"node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager": {
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.26.1.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.28.0.tgz",
|
||||||
"integrity": "sha512-6EIvbE5cNER8sqBu6V7+KeMZIC1664d2Yjt+B9EWUXrsyWpxx4lEZrmvxgSKRC6gX+efDL/UY9OpPZ267io3mg==",
|
"integrity": "sha512-u2oITX3BJwzWCapoZ/pXw6BCOl8rJP4Ij/3wPoGvY8XwvXflOzd1kLrDUUUAIEdJSFh+ASwdTHqtan9xSg8buw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"@typescript-eslint/visitor-keys": "8.26.1"
|
"@typescript-eslint/visitor-keys": "8.28.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||||
|
|
@ -1897,9 +1887,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types": {
|
"node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types": {
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.26.1.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.28.0.tgz",
|
||||||
"integrity": "sha512-n4THUQW27VmQMx+3P+B0Yptl7ydfceUj4ON/AQILAASwgYdZ/2dhfymRMh5egRUrvK5lSmaOm77Ry+lmXPOgBQ==",
|
"integrity": "sha512-bn4WS1bkKEjx7HqiwG2JNB3YJdC1q6Ue7GyGlwPHyt0TnVq6TtD/hiOdTZt71sq0s7UzqBFXD8t8o2e63tXgwA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||||
|
|
@ -1910,13 +1900,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree": {
|
"node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/typescript-estree": {
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.26.1.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.28.0.tgz",
|
||||||
"integrity": "sha512-yUwPpUHDgdrv1QJ7YQal3cMVBGWfnuCdKbXw1yyjArax3353rEJP1ZA+4F8nOlQ3RfS2hUN/wze3nlY+ZOhvoA==",
|
"integrity": "sha512-H74nHEeBGeklctAVUvmDkxB1mk+PAZ9FiOMPFncdqeRBXxk1lWSYraHw8V12b7aa6Sg9HOBNbGdSHobBPuQSuA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"@typescript-eslint/visitor-keys": "8.26.1",
|
"@typescript-eslint/visitor-keys": "8.28.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"fast-glob": "^3.3.2",
|
"fast-glob": "^3.3.2",
|
||||||
"is-glob": "^4.0.3",
|
"is-glob": "^4.0.3",
|
||||||
|
|
@ -1936,15 +1926,15 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils": {
|
"node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils": {
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.26.1.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.28.0.tgz",
|
||||||
"integrity": "sha512-V4Urxa/XtSUroUrnI7q6yUTD3hDtfJ2jzVfeT3VK0ciizfK2q/zGC0iDh1lFMUZR8cImRrep6/q0xd/1ZGPQpg==",
|
"integrity": "sha512-OELa9hbTYciYITqgurT1u/SzpQVtDLmQMFzy/N8pQE+tefOyCWT79jHsav294aTqV1q1u+VzqDGbuujvRYaeSQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint-community/eslint-utils": "^4.4.0",
|
"@eslint-community/eslint-utils": "^4.4.0",
|
||||||
"@typescript-eslint/scope-manager": "8.26.1",
|
"@typescript-eslint/scope-manager": "8.28.0",
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"@typescript-eslint/typescript-estree": "8.26.1"
|
"@typescript-eslint/typescript-estree": "8.28.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||||
|
|
@ -1959,12 +1949,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys": {
|
"node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys": {
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.26.1.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.28.0.tgz",
|
||||||
"integrity": "sha512-AjOC3zfnxd6S4Eiy3jwktJPclqhFHNyd8L6Gycf9WUPoKZpgM5PjkxY1X7uSy61xVpiJDhhk7XT2NVsN3ALTWg==",
|
"integrity": "sha512-hbn8SZ8w4u2pRwgQ1GlUrPKE+t2XvcCW5tTRF7j6SMYIuYG37XuzIW44JCZPa36evi0Oy2SnM664BlIaAuQcvg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"eslint-visitor-keys": "^4.2.0"
|
"eslint-visitor-keys": "^4.2.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
@ -2012,9 +2002,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/eslint-plugin/node_modules/ts-api-utils": {
|
"node_modules/@typescript-eslint/eslint-plugin/node_modules/ts-api-utils": {
|
||||||
"version": "2.0.1",
|
"version": "2.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz",
|
||||||
"integrity": "sha512-dnlgjFSVetynI8nzgJ+qF62efpglpWRk8isUEWZGWlJYySCTD6aKvbUDu+zbPeDakk3bg5H4XpitHukgfL1m9w==",
|
"integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.12"
|
"node": ">=18.12"
|
||||||
|
|
@ -2024,15 +2014,15 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/parser": {
|
"node_modules/@typescript-eslint/parser": {
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.26.1.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.28.0.tgz",
|
||||||
"integrity": "sha512-w6HZUV4NWxqd8BdeFf81t07d7/YV9s7TCWrQQbG5uhuvGUAW+fq1usZ1Hmz9UPNLniFnD8GLSsDpjP0hm1S4lQ==",
|
"integrity": "sha512-LPcw1yHD3ToaDEoljFEfQ9j2xShY367h7FZ1sq5NJT9I3yj4LHer1Xd1yRSOdYy9BpsrxU7R+eoDokChYM53lQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/scope-manager": "8.26.1",
|
"@typescript-eslint/scope-manager": "8.28.0",
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"@typescript-eslint/typescript-estree": "8.26.1",
|
"@typescript-eslint/typescript-estree": "8.28.0",
|
||||||
"@typescript-eslint/visitor-keys": "8.26.1",
|
"@typescript-eslint/visitor-keys": "8.28.0",
|
||||||
"debug": "^4.3.4"
|
"debug": "^4.3.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
@ -2048,13 +2038,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager": {
|
"node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager": {
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.26.1.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.28.0.tgz",
|
||||||
"integrity": "sha512-6EIvbE5cNER8sqBu6V7+KeMZIC1664d2Yjt+B9EWUXrsyWpxx4lEZrmvxgSKRC6gX+efDL/UY9OpPZ267io3mg==",
|
"integrity": "sha512-u2oITX3BJwzWCapoZ/pXw6BCOl8rJP4Ij/3wPoGvY8XwvXflOzd1kLrDUUUAIEdJSFh+ASwdTHqtan9xSg8buw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"@typescript-eslint/visitor-keys": "8.26.1"
|
"@typescript-eslint/visitor-keys": "8.28.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||||
|
|
@ -2065,9 +2055,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types": {
|
"node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types": {
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.26.1.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.28.0.tgz",
|
||||||
"integrity": "sha512-n4THUQW27VmQMx+3P+B0Yptl7ydfceUj4ON/AQILAASwgYdZ/2dhfymRMh5egRUrvK5lSmaOm77Ry+lmXPOgBQ==",
|
"integrity": "sha512-bn4WS1bkKEjx7HqiwG2JNB3YJdC1q6Ue7GyGlwPHyt0TnVq6TtD/hiOdTZt71sq0s7UzqBFXD8t8o2e63tXgwA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||||
|
|
@ -2078,13 +2068,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree": {
|
"node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree": {
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.26.1.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.28.0.tgz",
|
||||||
"integrity": "sha512-yUwPpUHDgdrv1QJ7YQal3cMVBGWfnuCdKbXw1yyjArax3353rEJP1ZA+4F8nOlQ3RfS2hUN/wze3nlY+ZOhvoA==",
|
"integrity": "sha512-H74nHEeBGeklctAVUvmDkxB1mk+PAZ9FiOMPFncdqeRBXxk1lWSYraHw8V12b7aa6Sg9HOBNbGdSHobBPuQSuA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"@typescript-eslint/visitor-keys": "8.26.1",
|
"@typescript-eslint/visitor-keys": "8.28.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"fast-glob": "^3.3.2",
|
"fast-glob": "^3.3.2",
|
||||||
"is-glob": "^4.0.3",
|
"is-glob": "^4.0.3",
|
||||||
|
|
@ -2104,12 +2094,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys": {
|
"node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys": {
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.26.1.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.28.0.tgz",
|
||||||
"integrity": "sha512-AjOC3zfnxd6S4Eiy3jwktJPclqhFHNyd8L6Gycf9WUPoKZpgM5PjkxY1X7uSy61xVpiJDhhk7XT2NVsN3ALTWg==",
|
"integrity": "sha512-hbn8SZ8w4u2pRwgQ1GlUrPKE+t2XvcCW5tTRF7j6SMYIuYG37XuzIW44JCZPa36evi0Oy2SnM664BlIaAuQcvg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"eslint-visitor-keys": "^4.2.0"
|
"eslint-visitor-keys": "^4.2.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
@ -2157,9 +2147,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/parser/node_modules/ts-api-utils": {
|
"node_modules/@typescript-eslint/parser/node_modules/ts-api-utils": {
|
||||||
"version": "2.0.1",
|
"version": "2.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz",
|
||||||
"integrity": "sha512-dnlgjFSVetynI8nzgJ+qF62efpglpWRk8isUEWZGWlJYySCTD6aKvbUDu+zbPeDakk3bg5H4XpitHukgfL1m9w==",
|
"integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.12"
|
"node": ">=18.12"
|
||||||
|
|
@ -2187,13 +2177,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/type-utils": {
|
"node_modules/@typescript-eslint/type-utils": {
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.26.1.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.28.0.tgz",
|
||||||
"integrity": "sha512-Kcj/TagJLwoY/5w9JGEFV0dclQdyqw9+VMndxOJKtoFSjfZhLXhYjzsQEeyza03rwHx2vFEGvrJWJBXKleRvZg==",
|
"integrity": "sha512-oRoXu2v0Rsy/VoOGhtWrOKDiIehvI+YNrDk5Oqj40Mwm0Yt01FC/Q7nFqg088d3yAsR1ZcZFVfPCTTFCe/KPwg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/typescript-estree": "8.26.1",
|
"@typescript-eslint/typescript-estree": "8.28.0",
|
||||||
"@typescript-eslint/utils": "8.26.1",
|
"@typescript-eslint/utils": "8.28.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"ts-api-utils": "^2.0.1"
|
"ts-api-utils": "^2.0.1"
|
||||||
},
|
},
|
||||||
|
|
@ -2210,13 +2200,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager": {
|
"node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/scope-manager": {
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.26.1.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.28.0.tgz",
|
||||||
"integrity": "sha512-6EIvbE5cNER8sqBu6V7+KeMZIC1664d2Yjt+B9EWUXrsyWpxx4lEZrmvxgSKRC6gX+efDL/UY9OpPZ267io3mg==",
|
"integrity": "sha512-u2oITX3BJwzWCapoZ/pXw6BCOl8rJP4Ij/3wPoGvY8XwvXflOzd1kLrDUUUAIEdJSFh+ASwdTHqtan9xSg8buw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"@typescript-eslint/visitor-keys": "8.26.1"
|
"@typescript-eslint/visitor-keys": "8.28.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||||
|
|
@ -2227,9 +2217,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types": {
|
"node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types": {
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.26.1.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.28.0.tgz",
|
||||||
"integrity": "sha512-n4THUQW27VmQMx+3P+B0Yptl7ydfceUj4ON/AQILAASwgYdZ/2dhfymRMh5egRUrvK5lSmaOm77Ry+lmXPOgBQ==",
|
"integrity": "sha512-bn4WS1bkKEjx7HqiwG2JNB3YJdC1q6Ue7GyGlwPHyt0TnVq6TtD/hiOdTZt71sq0s7UzqBFXD8t8o2e63tXgwA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||||
|
|
@ -2240,13 +2230,13 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree": {
|
"node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree": {
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.26.1.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.28.0.tgz",
|
||||||
"integrity": "sha512-yUwPpUHDgdrv1QJ7YQal3cMVBGWfnuCdKbXw1yyjArax3353rEJP1ZA+4F8nOlQ3RfS2hUN/wze3nlY+ZOhvoA==",
|
"integrity": "sha512-H74nHEeBGeklctAVUvmDkxB1mk+PAZ9FiOMPFncdqeRBXxk1lWSYraHw8V12b7aa6Sg9HOBNbGdSHobBPuQSuA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"@typescript-eslint/visitor-keys": "8.26.1",
|
"@typescript-eslint/visitor-keys": "8.28.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"fast-glob": "^3.3.2",
|
"fast-glob": "^3.3.2",
|
||||||
"is-glob": "^4.0.3",
|
"is-glob": "^4.0.3",
|
||||||
|
|
@ -2266,15 +2256,15 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils": {
|
"node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/utils": {
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.26.1.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.28.0.tgz",
|
||||||
"integrity": "sha512-V4Urxa/XtSUroUrnI7q6yUTD3hDtfJ2jzVfeT3VK0ciizfK2q/zGC0iDh1lFMUZR8cImRrep6/q0xd/1ZGPQpg==",
|
"integrity": "sha512-OELa9hbTYciYITqgurT1u/SzpQVtDLmQMFzy/N8pQE+tefOyCWT79jHsav294aTqV1q1u+VzqDGbuujvRYaeSQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint-community/eslint-utils": "^4.4.0",
|
"@eslint-community/eslint-utils": "^4.4.0",
|
||||||
"@typescript-eslint/scope-manager": "8.26.1",
|
"@typescript-eslint/scope-manager": "8.28.0",
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"@typescript-eslint/typescript-estree": "8.26.1"
|
"@typescript-eslint/typescript-estree": "8.28.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||||
|
|
@ -2289,12 +2279,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys": {
|
"node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys": {
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.26.1.tgz",
|
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.28.0.tgz",
|
||||||
"integrity": "sha512-AjOC3zfnxd6S4Eiy3jwktJPclqhFHNyd8L6Gycf9WUPoKZpgM5PjkxY1X7uSy61xVpiJDhhk7XT2NVsN3ALTWg==",
|
"integrity": "sha512-hbn8SZ8w4u2pRwgQ1GlUrPKE+t2XvcCW5tTRF7j6SMYIuYG37XuzIW44JCZPa36evi0Oy2SnM664BlIaAuQcvg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"eslint-visitor-keys": "^4.2.0"
|
"eslint-visitor-keys": "^4.2.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
@ -2342,9 +2332,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@typescript-eslint/type-utils/node_modules/ts-api-utils": {
|
"node_modules/@typescript-eslint/type-utils/node_modules/ts-api-utils": {
|
||||||
"version": "2.0.1",
|
"version": "2.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz",
|
||||||
"integrity": "sha512-dnlgjFSVetynI8nzgJ+qF62efpglpWRk8isUEWZGWlJYySCTD6aKvbUDu+zbPeDakk3bg5H4XpitHukgfL1m9w==",
|
"integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.12"
|
"node": ">=18.12"
|
||||||
|
|
@ -4056,11 +4046,10 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/eslint-import-resolver-typescript": {
|
"node_modules/eslint-import-resolver-typescript": {
|
||||||
"version": "3.8.3",
|
"version": "3.8.7",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.8.3.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.8.7.tgz",
|
||||||
"integrity": "sha512-A0bu4Ks2QqDWNpeEgTQMPTngaMhuDu4yv6xpftBMAf+1ziXnpx+eSR1WRfoPTe2BAiAjHFZ7kSNx1fvr5g5pmQ==",
|
"integrity": "sha512-U7k84gOzrfl09c33qrIbD3TkWTWu3nt3dK5sDajHSekfoLlYGusIwSdPlPzVeA6TFpi0Wpj+ZdBD8hX4hxPoww==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nolyfill/is-core-module": "1.0.39",
|
"@nolyfill/is-core-module": "1.0.39",
|
||||||
"debug": "^4.3.7",
|
"debug": "^4.3.7",
|
||||||
|
|
@ -5863,12 +5852,6 @@
|
||||||
"node": ">=4.0"
|
"node": ">=4.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/just-extend": {
|
|
||||||
"version": "6.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/just-extend/-/just-extend-6.2.0.tgz",
|
|
||||||
"integrity": "sha512-cYofQu2Xpom82S6qD778jBDpwvvy39s1l/hrYij2u9AMdQcGRpaBu6kY4mVhuno5kJVi1DAz4aiphA2WI1/OAw==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"node_modules/jwt-decode": {
|
"node_modules/jwt-decode": {
|
||||||
"version": "3.1.2",
|
"version": "3.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-3.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/jwt-decode/-/jwt-decode-3.1.2.tgz",
|
||||||
|
|
@ -6190,19 +6173,6 @@
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/nise": {
|
|
||||||
"version": "6.1.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/nise/-/nise-6.1.1.tgz",
|
|
||||||
"integrity": "sha512-aMSAzLVY7LyeM60gvBS423nBmIPP+Wy7St7hsb+8/fc1HmeoHJfLO8CKse4u3BtOZvQLJghYPI2i/1WZrEj5/g==",
|
|
||||||
"dev": true,
|
|
||||||
"dependencies": {
|
|
||||||
"@sinonjs/commons": "^3.0.1",
|
|
||||||
"@sinonjs/fake-timers": "^13.0.1",
|
|
||||||
"@sinonjs/text-encoding": "^0.7.3",
|
|
||||||
"just-extend": "^6.2.0",
|
|
||||||
"path-to-regexp": "^8.1.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/nock": {
|
"node_modules/nock": {
|
||||||
"version": "14.0.1",
|
"version": "14.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/nock/-/nock-14.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/nock/-/nock-14.0.1.tgz",
|
||||||
|
|
@ -6719,15 +6689,6 @@
|
||||||
"url": "https://github.com/sponsors/isaacs"
|
"url": "https://github.com/sponsors/isaacs"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/path-to-regexp": {
|
|
||||||
"version": "8.1.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.1.0.tgz",
|
|
||||||
"integrity": "sha512-Bqn3vc8CMHty6zuD+tG23s6v2kwxslHEhTj4eYaVKGIEB+YX/2wd0/rgXLFD9G9id9KCtbVy/3ZgmvZjpa0UdQ==",
|
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
|
||||||
"node": ">=16"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/path-type": {
|
"node_modules/path-type": {
|
||||||
"version": "4.0.0",
|
"version": "4.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
@ -7265,16 +7226,15 @@
|
||||||
"license": "ISC"
|
"license": "ISC"
|
||||||
},
|
},
|
||||||
"node_modules/sinon": {
|
"node_modules/sinon": {
|
||||||
"version": "19.0.2",
|
"version": "20.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/sinon/-/sinon-19.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/sinon/-/sinon-20.0.0.tgz",
|
||||||
"integrity": "sha512-euuToqM+PjO4UgXeLETsfQiuoyPXlqFezr6YZDFwHR3t4qaX0fZUe1MfPMznTL5f8BWrVS89KduLdMUsxFCO6g==",
|
"integrity": "sha512-+FXOAbdnj94AQIxH0w1v8gzNxkawVvNqE3jUzRLptR71Oykeu2RrQXXl/VQjKay+Qnh73fDt/oDfMo6xMeDQbQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sinonjs/commons": "^3.0.1",
|
"@sinonjs/commons": "^3.0.1",
|
||||||
"@sinonjs/fake-timers": "^13.0.2",
|
"@sinonjs/fake-timers": "^13.0.5",
|
||||||
"@sinonjs/samsam": "^8.0.1",
|
"@sinonjs/samsam": "^8.0.1",
|
||||||
"diff": "^7.0.0",
|
"diff": "^7.0.0",
|
||||||
"nise": "^6.1.1",
|
|
||||||
"supports-color": "^7.2.0"
|
"supports-color": "^7.2.0"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
|
|
|
||||||
2
node_modules/@actions/cache/lib/cache.js
generated
vendored
2
node_modules/@actions/cache/lib/cache.js
generated
vendored
|
|
@ -213,7 +213,7 @@ function restoreCacheV2(paths, primaryKey, restoreKeys, options, enableCrossOsAr
|
||||||
};
|
};
|
||||||
const response = yield twirpClient.GetCacheEntryDownloadURL(request);
|
const response = yield twirpClient.GetCacheEntryDownloadURL(request);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
core.debug(`Cache not found for keys: ${keys.join(', ')}`);
|
core.debug(`Cache not found for version ${request.version} of keys: ${keys.join(', ')}`);
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
core.info(`Cache hit for: ${request.key}`);
|
core.info(`Cache hit for: ${request.key}`);
|
||||||
|
|
|
||||||
2
node_modules/@actions/cache/lib/cache.js.map
generated
vendored
2
node_modules/@actions/cache/lib/cache.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/@actions/cache/lib/internal/shared/cacheTwirpClient.js
generated
vendored
2
node_modules/@actions/cache/lib/internal/shared/cacheTwirpClient.js
generated
vendored
|
|
@ -18,6 +18,7 @@ const cacheUtils_1 = require("../cacheUtils");
|
||||||
const auth_1 = require("@actions/http-client/lib/auth");
|
const auth_1 = require("@actions/http-client/lib/auth");
|
||||||
const http_client_1 = require("@actions/http-client");
|
const http_client_1 = require("@actions/http-client");
|
||||||
const cache_twirp_client_1 = require("../../generated/results/api/v1/cache.twirp-client");
|
const cache_twirp_client_1 = require("../../generated/results/api/v1/cache.twirp-client");
|
||||||
|
const util_1 = require("./util");
|
||||||
/**
|
/**
|
||||||
* This class is a wrapper around the CacheServiceClientJSON class generated by Twirp.
|
* This class is a wrapper around the CacheServiceClientJSON class generated by Twirp.
|
||||||
*
|
*
|
||||||
|
|
@ -77,6 +78,7 @@ class CacheServiceClient {
|
||||||
(0, core_1.debug)(`[Response] - ${response.message.statusCode}`);
|
(0, core_1.debug)(`[Response] - ${response.message.statusCode}`);
|
||||||
(0, core_1.debug)(`Headers: ${JSON.stringify(response.message.headers, null, 2)}`);
|
(0, core_1.debug)(`Headers: ${JSON.stringify(response.message.headers, null, 2)}`);
|
||||||
const body = JSON.parse(rawBody);
|
const body = JSON.parse(rawBody);
|
||||||
|
(0, util_1.maskSecretUrls)(body);
|
||||||
(0, core_1.debug)(`Body: ${JSON.stringify(body, null, 2)}`);
|
(0, core_1.debug)(`Body: ${JSON.stringify(body, null, 2)}`);
|
||||||
if (this.isSuccessStatusCode(statusCode)) {
|
if (this.isSuccessStatusCode(statusCode)) {
|
||||||
return { response, body };
|
return { response, body };
|
||||||
|
|
|
||||||
2
node_modules/@actions/cache/lib/internal/shared/cacheTwirpClient.js.map
generated
vendored
2
node_modules/@actions/cache/lib/internal/shared/cacheTwirpClient.js.map
generated
vendored
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"cacheTwirpClient.js","sourceRoot":"","sources":["../../../src/internal/shared/cacheTwirpClient.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAAyC;AACzC,6CAA+C;AAC/C,qCAAiD;AACjD,sCAA4C;AAC5C,8CAA6C;AAC7C,wDAAqE;AACrE,sDAA8E;AAC9E,0FAAwF;AAYxF;;;;;;GAMG;AACH,MAAM,kBAAkB;IAOtB,YACE,SAAiB,EACjB,WAAoB,EACpB,6BAAsC,EACtC,eAAwB;QARlB,gBAAW,GAAG,CAAC,CAAA;QACf,kCAA6B,GAAG,IAAI,CAAA;QACpC,oBAAe,GAAG,GAAG,CAAA;QAQ3B,MAAM,KAAK,GAAG,IAAA,4BAAe,GAAE,CAAA;QAC/B,IAAI,CAAC,OAAO,GAAG,IAAA,2BAAkB,GAAE,CAAA;QACnC,IAAI,WAAW,EAAE;YACf,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;SAC/B;QACD,IAAI,6BAA6B,EAAE;YACjC,IAAI,CAAC,6BAA6B,GAAG,6BAA6B,CAAA;SACnE;QACD,IAAI,eAAe,EAAE;YACnB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAA;SACvC;QAED,IAAI,CAAC,UAAU,GAAG,IAAI,wBAAU,CAAC,SAAS,EAAE;YAC1C,IAAI,8BAAuB,CAAC,KAAK,CAAC;SACnC,CAAC,CAAA;IACJ,CAAC;IAED,4EAA4E;IAC5E,yBAAyB;IACnB,OAAO,CACX,OAAe,EACf,MAAc,EACd,WAAwD,EACxD,IAAyB;;YAEzB,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,UAAU,OAAO,IAAI,MAAM,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAA;YACrE,IAAA,YAAK,EAAC,aAAa,MAAM,IAAI,GAAG,EAAE,CAAC,CAAA;YACnC,MAAM,OAAO,GAAG;gBACd,cAAc,EAAE,WAAW;aAC5B,CAAA;YACD,IAAI;gBACF,MAAM,EAAC,IAAI,EAAC,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,GAAS,EAAE,gDACpD,OAAA,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAA,GAAA,CACzD,CAAA;gBAED,OAAO,IAAI,CAAA;aACZ;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,IAAI,KAAK,CAAC,aAAa,MAAM,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;aACzD;QACH,CAAC;KAAA;IAEK,gBAAgB,CACpB,SAA4C;;YAE5C,IAAI,OAAO,GAAG,CAAC,CAAA;YACf,IAAI,YAAY,GAAG,EAAE,CAAA;YACrB,IAAI,OAAO,GAAG,EAAE,CAAA;YAChB,OAAO,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE;gBACjC,IAAI,WAAW,GAAG,KAAK,CAAA;gBAEvB,IAAI;oBACF,MAAM,QAAQ,GAAG,MAAM,SAAS,EAAE,CAAA;oBAClC,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAA;oBAC9C,OAAO,GAAG,MAAM,QAAQ,CAAC,QAAQ,EAAE,CAAA;oBACnC,IAAA,YAAK,EAAC,gBAAgB,QAAQ,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,CAAA;oBACpD,IAAA,YAAK,EAAC,YAAY,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAA;oBACtE,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;oBAChC,IAAA,YAAK,EAAC,SAAS,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAA;oBAC/C,IAAI,IAAI,CAAC,mBAAmB,CAAC,UAAU,CAAC,EAAE;wBACxC,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAA;qBACxB;oBACD,WAAW,GAAG,IAAI,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAAA;oBACxD,YAAY,GAAG,oBAAoB,UAAU,KAAK,QAAQ,CAAC,OAAO,CAAC,aAAa,EAAE,CAAA;oBAClF,IAAI,IAAI,CAAC,GAAG,EAAE;wBACZ,IAAI,mBAAU,CAAC,mBAAmB,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;4BAC5C,MAAM,IAAI,mBAAU,EAAE,CAAA;yBACvB;wBAED,YAAY,GAAG,GAAG,YAAY,KAAK,IAAI,CAAC,GAAG,EAAE,CAAA;qBAC9C;iBACF;gBAAC,OAAO,KAAK,EAAE;oBACd,IAAI,KAAK,YAAY,WAAW,EAAE;wBAChC,IAAA,YAAK,EAAC,aAAa,OAAO,EAAE,CAAC,CAAA;qBAC9B;oBAED,IAAI,KAAK,YAAY,mBAAU,EAAE;wBAC/B,MAAM,KAAK,CAAA;qBACZ;oBAED,IAAI,qBAAY,CAAC,kBAAkB,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,CAAC,EAAE;wBAChD,MAAM,IAAI,qBAAY,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,CAAC,CAAA;qBACpC;oBAED,WAAW,GAAG,IAAI,CAAA;oBAClB,YAAY,GAAG,KAAK,CAAC,OAAO,CAAA;iBAC7B;gBAED,IAAI,CAAC,WAAW,EAAE;oBAChB,MAAM,IAAI,KAAK,CAAC,iCAAiC,YAAY,EAAE,CAAC,CAAA;iBACjE;gBAED,IAAI,OAAO,GAAG,CAAC,KAAK,IAAI,CAAC,WAAW,EAAE;oBACpC,MAAM,IAAI,KAAK,CACb,gCAAgC,IAAI,CAAC,WAAW,cAAc,YAAY,EAAE,CAC7E,CAAA;iBACF;gBAED,MAAM,qBAAqB,GACzB,IAAI,CAAC,mCAAmC,CAAC,OAAO,CAAC,CAAA;gBACnD,IAAA,WAAI,EACF,WAAW,OAAO,GAAG,CAAC,OACpB,IAAI,CAAC,WACP,uBAAuB,YAAY,yBAAyB,qBAAqB,QAAQ,CAC1F,CAAA;gBACD,MAAM,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAA;gBACvC,OAAO,EAAE,CAAA;aACV;YAED,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAA;QACnC,CAAC;KAAA;IAED,mBAAmB,CAAC,UAAmB;QACrC,IAAI,CAAC,UAAU;YAAE,OAAO,KAAK,CAAA;QAC7B,OAAO,UAAU,IAAI,GAAG,IAAI,UAAU,GAAG,GAAG,CAAA;IAC9C,CAAC;IAED,yBAAyB,CAAC,UAAmB;QAC3C,IAAI,CAAC,UAAU;YAAE,OAAO,KAAK,CAAA;QAE7B,MAAM,oBAAoB,GAAG;YAC3B,uBAAS,CAAC,UAAU;YACpB,uBAAS,CAAC,cAAc;YACxB,uBAAS,CAAC,mBAAmB;YAC7B,uBAAS,CAAC,kBAAkB;YAC5B,uBAAS,CAAC,eAAe;SAC1B,CAAA;QAED,OAAO,oBAAoB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;IAClD,CAAC;IAEK,KAAK,CAAC,YAAoB;;YAC9B,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAA;QAClE,CAAC;KAAA;IAED,mCAAmC,CAAC,OAAe;QACjD,IAAI,OAAO,GAAG,CAAC,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAA;SACxD;QAED,IAAI,OAAO,KAAK,CAAC,EAAE;YACjB,OAAO,IAAI,CAAC,6BAA6B,CAAA;SAC1C;QAED,MAAM,OAAO,GACX,IAAI,CAAC,6BAA6B,GAAG,SAAA,IAAI,CAAC,eAAe,EAAI,OAAO,CAAA,CAAA;QACtE,MAAM,OAAO,GAAG,OAAO,GAAG,IAAI,CAAC,eAAe,CAAA;QAE9C,kEAAkE;QAClE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,OAAO,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC,CAAA;IAClE,CAAC;CACF;AAED,SAAgB,wBAAwB,CAAC,OAIxC;IACC,MAAM,MAAM,GAAG,IAAI,kBAAkB,CACnC,IAAA,+BAAkB,GAAE,EACpB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,EACpB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,EACxB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,CACzB,CAAA;IACD,OAAO,IAAI,2CAAsB,CAAC,MAAM,CAAC,CAAA;AAC3C,CAAC;AAZD,4DAYC"}
|
{"version":3,"file":"cacheTwirpClient.js","sourceRoot":"","sources":["../../../src/internal/shared/cacheTwirpClient.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAAyC;AACzC,6CAA+C;AAC/C,qCAAiD;AACjD,sCAA4C;AAC5C,8CAA6C;AAC7C,wDAAqE;AACrE,sDAA8E;AAC9E,0FAAwF;AACxF,iCAAqC;AAYrC;;;;;;GAMG;AACH,MAAM,kBAAkB;IAOtB,YACE,SAAiB,EACjB,WAAoB,EACpB,6BAAsC,EACtC,eAAwB;QARlB,gBAAW,GAAG,CAAC,CAAA;QACf,kCAA6B,GAAG,IAAI,CAAA;QACpC,oBAAe,GAAG,GAAG,CAAA;QAQ3B,MAAM,KAAK,GAAG,IAAA,4BAAe,GAAE,CAAA;QAC/B,IAAI,CAAC,OAAO,GAAG,IAAA,2BAAkB,GAAE,CAAA;QACnC,IAAI,WAAW,EAAE;YACf,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;SAC/B;QACD,IAAI,6BAA6B,EAAE;YACjC,IAAI,CAAC,6BAA6B,GAAG,6BAA6B,CAAA;SACnE;QACD,IAAI,eAAe,EAAE;YACnB,IAAI,CAAC,eAAe,GAAG,eAAe,CAAA;SACvC;QAED,IAAI,CAAC,UAAU,GAAG,IAAI,wBAAU,CAAC,SAAS,EAAE;YAC1C,IAAI,8BAAuB,CAAC,KAAK,CAAC;SACnC,CAAC,CAAA;IACJ,CAAC;IAED,4EAA4E;IAC5E,yBAAyB;IACnB,OAAO,CACX,OAAe,EACf,MAAc,EACd,WAAwD,EACxD,IAAyB;;YAEzB,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,UAAU,OAAO,IAAI,MAAM,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAA;YACrE,IAAA,YAAK,EAAC,aAAa,MAAM,IAAI,GAAG,EAAE,CAAC,CAAA;YACnC,MAAM,OAAO,GAAG;gBACd,cAAc,EAAE,WAAW;aAC5B,CAAA;YACD,IAAI;gBACF,MAAM,EAAC,IAAI,EAAC,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,GAAS,EAAE,gDACpD,OAAA,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAA,GAAA,CACzD,CAAA;gBAED,OAAO,IAAI,CAAA;aACZ;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,IAAI,KAAK,CAAC,aAAa,MAAM,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;aACzD;QACH,CAAC;KAAA;IAEK,gBAAgB,CACpB,SAA4C;;YAE5C,IAAI,OAAO,GAAG,CAAC,CAAA;YACf,IAAI,YAAY,GAAG,EAAE,CAAA;YACrB,IAAI,OAAO,GAAG,EAAE,CAAA;YAChB,OAAO,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE;gBACjC,IAAI,WAAW,GAAG,KAAK,CAAA;gBAEvB,IAAI;oBACF,MAAM,QAAQ,GAAG,MAAM,SAAS,EAAE,CAAA;oBAClC,MAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAA;oBAC9C,OAAO,GAAG,MAAM,QAAQ,CAAC,QAAQ,EAAE,CAAA;oBACnC,IAAA,YAAK,EAAC,gBAAgB,QAAQ,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,CAAA;oBACpD,IAAA,YAAK,EAAC,YAAY,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAA;oBACtE,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;oBAChC,IAAA,qBAAc,EAAC,IAAI,CAAC,CAAA;oBACpB,IAAA,YAAK,EAAC,SAAS,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAA;oBAC/C,IAAI,IAAI,CAAC,mBAAmB,CAAC,UAAU,CAAC,EAAE;wBACxC,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAA;qBACxB;oBACD,WAAW,GAAG,IAAI,CAAC,yBAAyB,CAAC,UAAU,CAAC,CAAA;oBACxD,YAAY,GAAG,oBAAoB,UAAU,KAAK,QAAQ,CAAC,OAAO,CAAC,aAAa,EAAE,CAAA;oBAClF,IAAI,IAAI,CAAC,GAAG,EAAE;wBACZ,IAAI,mBAAU,CAAC,mBAAmB,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;4BAC5C,MAAM,IAAI,mBAAU,EAAE,CAAA;yBACvB;wBAED,YAAY,GAAG,GAAG,YAAY,KAAK,IAAI,CAAC,GAAG,EAAE,CAAA;qBAC9C;iBACF;gBAAC,OAAO,KAAK,EAAE;oBACd,IAAI,KAAK,YAAY,WAAW,EAAE;wBAChC,IAAA,YAAK,EAAC,aAAa,OAAO,EAAE,CAAC,CAAA;qBAC9B;oBAED,IAAI,KAAK,YAAY,mBAAU,EAAE;wBAC/B,MAAM,KAAK,CAAA;qBACZ;oBAED,IAAI,qBAAY,CAAC,kBAAkB,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,CAAC,EAAE;wBAChD,MAAM,IAAI,qBAAY,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,CAAC,CAAA;qBACpC;oBAED,WAAW,GAAG,IAAI,CAAA;oBAClB,YAAY,GAAG,KAAK,CAAC,OAAO,CAAA;iBAC7B;gBAED,IAAI,CAAC,WAAW,EAAE;oBAChB,MAAM,IAAI,KAAK,CAAC,iCAAiC,YAAY,EAAE,CAAC,CAAA;iBACjE;gBAED,IAAI,OAAO,GAAG,CAAC,KAAK,IAAI,CAAC,WAAW,EAAE;oBACpC,MAAM,IAAI,KAAK,CACb,gCAAgC,IAAI,CAAC,WAAW,cAAc,YAAY,EAAE,CAC7E,CAAA;iBACF;gBAED,MAAM,qBAAqB,GACzB,IAAI,CAAC,mCAAmC,CAAC,OAAO,CAAC,CAAA;gBACnD,IAAA,WAAI,EACF,WAAW,OAAO,GAAG,CAAC,OACpB,IAAI,CAAC,WACP,uBAAuB,YAAY,yBAAyB,qBAAqB,QAAQ,CAC1F,CAAA;gBACD,MAAM,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAA;gBACvC,OAAO,EAAE,CAAA;aACV;YAED,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAA;QACnC,CAAC;KAAA;IAED,mBAAmB,CAAC,UAAmB;QACrC,IAAI,CAAC,UAAU;YAAE,OAAO,KAAK,CAAA;QAC7B,OAAO,UAAU,IAAI,GAAG,IAAI,UAAU,GAAG,GAAG,CAAA;IAC9C,CAAC;IAED,yBAAyB,CAAC,UAAmB;QAC3C,IAAI,CAAC,UAAU;YAAE,OAAO,KAAK,CAAA;QAE7B,MAAM,oBAAoB,GAAG;YAC3B,uBAAS,CAAC,UAAU;YACpB,uBAAS,CAAC,cAAc;YACxB,uBAAS,CAAC,mBAAmB;YAC7B,uBAAS,CAAC,kBAAkB;YAC5B,uBAAS,CAAC,eAAe;SAC1B,CAAA;QAED,OAAO,oBAAoB,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA;IAClD,CAAC;IAEK,KAAK,CAAC,YAAoB;;YAC9B,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAA;QAClE,CAAC;KAAA;IAED,mCAAmC,CAAC,OAAe;QACjD,IAAI,OAAO,GAAG,CAAC,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAA;SACxD;QAED,IAAI,OAAO,KAAK,CAAC,EAAE;YACjB,OAAO,IAAI,CAAC,6BAA6B,CAAA;SAC1C;QAED,MAAM,OAAO,GACX,IAAI,CAAC,6BAA6B,GAAG,SAAA,IAAI,CAAC,eAAe,EAAI,OAAO,CAAA,CAAA;QACtE,MAAM,OAAO,GAAG,OAAO,GAAG,IAAI,CAAC,eAAe,CAAA;QAE9C,kEAAkE;QAClE,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,OAAO,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC,CAAA;IAClE,CAAC;CACF;AAED,SAAgB,wBAAwB,CAAC,OAIxC;IACC,MAAM,MAAM,GAAG,IAAI,kBAAkB,CACnC,IAAA,+BAAkB,GAAE,EACpB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,EACpB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,EACxB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,CACzB,CAAA;IACD,OAAO,IAAI,2CAAsB,CAAC,MAAM,CAAC,CAAA;AAC3C,CAAC;AAZD,4DAYC"}
|
||||||
40
node_modules/@actions/cache/lib/internal/shared/util.d.ts
generated
vendored
Normal file
40
node_modules/@actions/cache/lib/internal/shared/util.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
/**
|
||||||
|
* Masks the `sig` parameter in a URL and sets it as a secret.
|
||||||
|
*
|
||||||
|
* @param url - The URL containing the signature parameter to mask
|
||||||
|
* @remarks
|
||||||
|
* This function attempts to parse the provided URL and identify the 'sig' query parameter.
|
||||||
|
* If found, it registers both the raw and URL-encoded signature values as secrets using
|
||||||
|
* the Actions `setSecret` API, which prevents them from being displayed in logs.
|
||||||
|
*
|
||||||
|
* The function handles errors gracefully if URL parsing fails, logging them as debug messages.
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* ```typescript
|
||||||
|
* // Mask a signature in an Azure SAS token URL
|
||||||
|
* maskSigUrl('https://example.blob.core.windows.net/container/file.txt?sig=abc123&se=2023-01-01');
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
export declare function maskSigUrl(url: string): void;
|
||||||
|
/**
|
||||||
|
* Masks sensitive information in URLs containing signature parameters.
|
||||||
|
* Currently supports masking 'sig' parameters in the 'signed_upload_url'
|
||||||
|
* and 'signed_download_url' properties of the provided object.
|
||||||
|
*
|
||||||
|
* @param body - The object should contain a signature
|
||||||
|
* @remarks
|
||||||
|
* This function extracts URLs from the object properties and calls maskSigUrl
|
||||||
|
* on each one to redact sensitive signature information. The function doesn't
|
||||||
|
* modify the original object; it only marks the signatures as secrets for
|
||||||
|
* logging purposes.
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* ```typescript
|
||||||
|
* const responseBody = {
|
||||||
|
* signed_upload_url: 'https://blob.core.windows.net/?sig=abc123',
|
||||||
|
* signed_download_url: 'https://blob.core/windows.net/?sig=def456'
|
||||||
|
* };
|
||||||
|
* maskSecretUrls(responseBody);
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
export declare function maskSecretUrls(body: Record<string, unknown> | null): void;
|
||||||
74
node_modules/@actions/cache/lib/internal/shared/util.js
generated
vendored
Normal file
74
node_modules/@actions/cache/lib/internal/shared/util.js
generated
vendored
Normal file
|
|
@ -0,0 +1,74 @@
|
||||||
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.maskSecretUrls = exports.maskSigUrl = void 0;
|
||||||
|
const core_1 = require("@actions/core");
|
||||||
|
/**
|
||||||
|
* Masks the `sig` parameter in a URL and sets it as a secret.
|
||||||
|
*
|
||||||
|
* @param url - The URL containing the signature parameter to mask
|
||||||
|
* @remarks
|
||||||
|
* This function attempts to parse the provided URL and identify the 'sig' query parameter.
|
||||||
|
* If found, it registers both the raw and URL-encoded signature values as secrets using
|
||||||
|
* the Actions `setSecret` API, which prevents them from being displayed in logs.
|
||||||
|
*
|
||||||
|
* The function handles errors gracefully if URL parsing fails, logging them as debug messages.
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* ```typescript
|
||||||
|
* // Mask a signature in an Azure SAS token URL
|
||||||
|
* maskSigUrl('https://example.blob.core.windows.net/container/file.txt?sig=abc123&se=2023-01-01');
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
function maskSigUrl(url) {
|
||||||
|
if (!url)
|
||||||
|
return;
|
||||||
|
try {
|
||||||
|
const parsedUrl = new URL(url);
|
||||||
|
const signature = parsedUrl.searchParams.get('sig');
|
||||||
|
if (signature) {
|
||||||
|
(0, core_1.setSecret)(signature);
|
||||||
|
(0, core_1.setSecret)(encodeURIComponent(signature));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (error) {
|
||||||
|
(0, core_1.debug)(`Failed to parse URL: ${url} ${error instanceof Error ? error.message : String(error)}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exports.maskSigUrl = maskSigUrl;
|
||||||
|
/**
|
||||||
|
* Masks sensitive information in URLs containing signature parameters.
|
||||||
|
* Currently supports masking 'sig' parameters in the 'signed_upload_url'
|
||||||
|
* and 'signed_download_url' properties of the provided object.
|
||||||
|
*
|
||||||
|
* @param body - The object should contain a signature
|
||||||
|
* @remarks
|
||||||
|
* This function extracts URLs from the object properties and calls maskSigUrl
|
||||||
|
* on each one to redact sensitive signature information. The function doesn't
|
||||||
|
* modify the original object; it only marks the signatures as secrets for
|
||||||
|
* logging purposes.
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* ```typescript
|
||||||
|
* const responseBody = {
|
||||||
|
* signed_upload_url: 'https://blob.core.windows.net/?sig=abc123',
|
||||||
|
* signed_download_url: 'https://blob.core/windows.net/?sig=def456'
|
||||||
|
* };
|
||||||
|
* maskSecretUrls(responseBody);
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
|
function maskSecretUrls(body) {
|
||||||
|
if (typeof body !== 'object' || body === null) {
|
||||||
|
(0, core_1.debug)('body is not an object or is null');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if ('signed_upload_url' in body &&
|
||||||
|
typeof body.signed_upload_url === 'string') {
|
||||||
|
maskSigUrl(body.signed_upload_url);
|
||||||
|
}
|
||||||
|
if ('signed_download_url' in body &&
|
||||||
|
typeof body.signed_download_url === 'string') {
|
||||||
|
maskSigUrl(body.signed_download_url);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exports.maskSecretUrls = maskSecretUrls;
|
||||||
|
//# sourceMappingURL=util.js.map
|
||||||
1
node_modules/@actions/cache/lib/internal/shared/util.js.map
generated
vendored
Normal file
1
node_modules/@actions/cache/lib/internal/shared/util.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/internal/shared/util.ts"],"names":[],"mappings":";;;AAAA,wCAA8C;AAE9C;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,UAAU,CAAC,GAAW;IACpC,IAAI,CAAC,GAAG;QAAE,OAAM;IAChB,IAAI;QACF,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAA;QAC9B,MAAM,SAAS,GAAG,SAAS,CAAC,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;QACnD,IAAI,SAAS,EAAE;YACb,IAAA,gBAAS,EAAC,SAAS,CAAC,CAAA;YACpB,IAAA,gBAAS,EAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAAA;SACzC;KACF;IAAC,OAAO,KAAK,EAAE;QACd,IAAA,YAAK,EACH,wBAAwB,GAAG,IACzB,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CACvD,EAAE,CACH,CAAA;KACF;AACH,CAAC;AAhBD,gCAgBC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,cAAc,CAAC,IAAoC;IACjE,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE;QAC7C,IAAA,YAAK,EAAC,kCAAkC,CAAC,CAAA;QACzC,OAAM;KACP;IACD,IACE,mBAAmB,IAAI,IAAI;QAC3B,OAAO,IAAI,CAAC,iBAAiB,KAAK,QAAQ,EAC1C;QACA,UAAU,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAA;KACnC;IACD,IACE,qBAAqB,IAAI,IAAI;QAC7B,OAAO,IAAI,CAAC,mBAAmB,KAAK,QAAQ,EAC5C;QACA,UAAU,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAA;KACrC;AACH,CAAC;AAjBD,wCAiBC"}
|
||||||
3
node_modules/@actions/cache/package.json
generated
vendored
3
node_modules/@actions/cache/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@actions/cache",
|
"name": "@actions/cache",
|
||||||
"version": "4.0.2",
|
"version": "4.0.3",
|
||||||
"preview": true,
|
"preview": true,
|
||||||
"description": "Actions cache lib",
|
"description": "Actions cache lib",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
@ -49,6 +49,7 @@
|
||||||
"semver": "^6.3.1"
|
"semver": "^6.3.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@types/node": "^22.13.9",
|
||||||
"@types/semver": "^6.0.0",
|
"@types/semver": "^6.0.0",
|
||||||
"typescript": "^5.2.2"
|
"typescript": "^5.2.2"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
10
node_modules/@eslint/eslintrc/README.md
generated
vendored
10
node_modules/@eslint/eslintrc/README.md
generated
vendored
|
|
@ -8,12 +8,14 @@ This repository contains the legacy ESLintRC configuration file format for ESLin
|
||||||
|
|
||||||
You can install the package as follows:
|
You can install the package as follows:
|
||||||
|
|
||||||
```
|
```shell
|
||||||
npm install @eslint/eslintrc --save-dev
|
npm install @eslint/eslintrc -D
|
||||||
|
|
||||||
# or
|
# or
|
||||||
|
|
||||||
yarn add @eslint/eslintrc -D
|
yarn add @eslint/eslintrc -D
|
||||||
|
# or
|
||||||
|
pnpm install @eslint/eslintrc -D
|
||||||
|
# or
|
||||||
|
bun install @eslint/eslintrc -D
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage (ESM)
|
## Usage (ESM)
|
||||||
|
|
|
||||||
4
node_modules/@eslint/eslintrc/package.json
generated
vendored
4
node_modules/@eslint/eslintrc/package.json
generated
vendored
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
"name": "@eslint/eslintrc",
|
"name": "@eslint/eslintrc",
|
||||||
"version": "3.3.0",
|
"version": "3.3.1",
|
||||||
"description": "The legacy ESLintRC config file format for ESLint",
|
"description": "The legacy ESLintRC config file format for ESLint",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/eslintrc.cjs",
|
"main": "./dist/eslintrc.cjs",
|
||||||
"types": "./dist/eslintrc.d.ts",
|
"types": "./dist/eslintrc.d.cts",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"import": "./lib/index.js",
|
"import": "./lib/index.js",
|
||||||
|
|
|
||||||
67
node_modules/@eslint/js/README.md
generated
vendored
67
node_modules/@eslint/js/README.md
generated
vendored
|
|
@ -8,8 +8,8 @@ The beginnings of separating out JavaScript-specific functionality from ESLint.
|
||||||
|
|
||||||
Right now, this plugin contains two configurations:
|
Right now, this plugin contains two configurations:
|
||||||
|
|
||||||
* `recommended` - enables the rules recommended by the ESLint team (the replacement for `"eslint:recommended"`)
|
- `recommended` - enables the rules recommended by the ESLint team (the replacement for `"eslint:recommended"`)
|
||||||
* `all` - enables all ESLint rules (the replacement for `"eslint:all"`)
|
- `all` - enables all ESLint rules (the replacement for `"eslint:all"`)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
|
@ -22,37 +22,46 @@ npm install @eslint/js -D
|
||||||
Use in your `eslint.config.js` file anytime you want to extend one of the configs:
|
Use in your `eslint.config.js` file anytime you want to extend one of the configs:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
import { defineConfig } from "eslint/config";
|
||||||
import js from "@eslint/js";
|
import js from "@eslint/js";
|
||||||
|
|
||||||
export default [
|
export default defineConfig([
|
||||||
|
// apply recommended rules to JS files
|
||||||
|
{
|
||||||
|
name: "your-project/recommended-rules",
|
||||||
|
files: ["**/*.js"],
|
||||||
|
plugins: {
|
||||||
|
js,
|
||||||
|
},
|
||||||
|
extends: ["js/recommended"],
|
||||||
|
},
|
||||||
|
|
||||||
// apply recommended rules to JS files
|
// apply recommended rules to JS files with an override
|
||||||
{
|
{
|
||||||
name: "your-project/recommended-rules",
|
name: "your-project/recommended-rules-with-override",
|
||||||
files: ["**/*.js"],
|
files: ["**/*.js"],
|
||||||
rules: js.configs.recommended.rules
|
plugins: {
|
||||||
},
|
js,
|
||||||
|
},
|
||||||
|
extends: ["js/recommended"],
|
||||||
|
rules: {
|
||||||
|
"no-unused-vars": "warn",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
// apply recommended rules to JS files with an override
|
// apply all rules to JS files
|
||||||
{
|
{
|
||||||
name: "your-project/recommended-rules-with-override",
|
name: "your-project/all-rules",
|
||||||
files: ["**/*.js"],
|
files: ["**/*.js"],
|
||||||
rules: {
|
plugins: {
|
||||||
...js.configs.recommended.rules,
|
js,
|
||||||
"no-unused-vars": "warn"
|
},
|
||||||
}
|
extends: ["js/all"],
|
||||||
},
|
rules: {
|
||||||
|
"no-unused-vars": "warn",
|
||||||
// apply all rules to JS files
|
},
|
||||||
{
|
},
|
||||||
name: "your-project/all-rules",
|
]);
|
||||||
files: ["**/*.js"],
|
|
||||||
rules: {
|
|
||||||
...js.configs.all.rules,
|
|
||||||
"no-unused-vars": "warn"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
|
||||||
2
node_modules/@eslint/js/package.json
generated
vendored
2
node_modules/@eslint/js/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@eslint/js",
|
"name": "@eslint/js",
|
||||||
"version": "9.22.0",
|
"version": "9.23.0",
|
||||||
"description": "ESLint JavaScript language implementation",
|
"description": "ESLint JavaScript language implementation",
|
||||||
"main": "./src/index.js",
|
"main": "./src/index.js",
|
||||||
"types": "./types/index.d.ts",
|
"types": "./types/index.d.ts",
|
||||||
|
|
|
||||||
2
node_modules/@eslint/js/src/configs/eslint-all.js
generated
vendored
2
node_modules/@eslint/js/src/configs/eslint-all.js
generated
vendored
|
|
@ -4,8 +4,6 @@
|
||||||
*/
|
*/
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/* eslint quote-props: off -- autogenerated so don't lint */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* IMPORTANT!
|
* IMPORTANT!
|
||||||
*
|
*
|
||||||
|
|
|
||||||
126
node_modules/@eslint/js/src/configs/eslint-recommended.js
generated
vendored
126
node_modules/@eslint/js/src/configs/eslint-recommended.js
generated
vendored
|
|
@ -17,67 +17,67 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module.exports = Object.freeze({
|
module.exports = Object.freeze({
|
||||||
rules: Object.freeze({
|
rules: Object.freeze({
|
||||||
"constructor-super": "error",
|
"constructor-super": "error",
|
||||||
"for-direction": "error",
|
"for-direction": "error",
|
||||||
"getter-return": "error",
|
"getter-return": "error",
|
||||||
"no-async-promise-executor": "error",
|
"no-async-promise-executor": "error",
|
||||||
"no-case-declarations": "error",
|
"no-case-declarations": "error",
|
||||||
"no-class-assign": "error",
|
"no-class-assign": "error",
|
||||||
"no-compare-neg-zero": "error",
|
"no-compare-neg-zero": "error",
|
||||||
"no-cond-assign": "error",
|
"no-cond-assign": "error",
|
||||||
"no-const-assign": "error",
|
"no-const-assign": "error",
|
||||||
"no-constant-binary-expression": "error",
|
"no-constant-binary-expression": "error",
|
||||||
"no-constant-condition": "error",
|
"no-constant-condition": "error",
|
||||||
"no-control-regex": "error",
|
"no-control-regex": "error",
|
||||||
"no-debugger": "error",
|
"no-debugger": "error",
|
||||||
"no-delete-var": "error",
|
"no-delete-var": "error",
|
||||||
"no-dupe-args": "error",
|
"no-dupe-args": "error",
|
||||||
"no-dupe-class-members": "error",
|
"no-dupe-class-members": "error",
|
||||||
"no-dupe-else-if": "error",
|
"no-dupe-else-if": "error",
|
||||||
"no-dupe-keys": "error",
|
"no-dupe-keys": "error",
|
||||||
"no-duplicate-case": "error",
|
"no-duplicate-case": "error",
|
||||||
"no-empty": "error",
|
"no-empty": "error",
|
||||||
"no-empty-character-class": "error",
|
"no-empty-character-class": "error",
|
||||||
"no-empty-pattern": "error",
|
"no-empty-pattern": "error",
|
||||||
"no-empty-static-block": "error",
|
"no-empty-static-block": "error",
|
||||||
"no-ex-assign": "error",
|
"no-ex-assign": "error",
|
||||||
"no-extra-boolean-cast": "error",
|
"no-extra-boolean-cast": "error",
|
||||||
"no-fallthrough": "error",
|
"no-fallthrough": "error",
|
||||||
"no-func-assign": "error",
|
"no-func-assign": "error",
|
||||||
"no-global-assign": "error",
|
"no-global-assign": "error",
|
||||||
"no-import-assign": "error",
|
"no-import-assign": "error",
|
||||||
"no-invalid-regexp": "error",
|
"no-invalid-regexp": "error",
|
||||||
"no-irregular-whitespace": "error",
|
"no-irregular-whitespace": "error",
|
||||||
"no-loss-of-precision": "error",
|
"no-loss-of-precision": "error",
|
||||||
"no-misleading-character-class": "error",
|
"no-misleading-character-class": "error",
|
||||||
"no-new-native-nonconstructor": "error",
|
"no-new-native-nonconstructor": "error",
|
||||||
"no-nonoctal-decimal-escape": "error",
|
"no-nonoctal-decimal-escape": "error",
|
||||||
"no-obj-calls": "error",
|
"no-obj-calls": "error",
|
||||||
"no-octal": "error",
|
"no-octal": "error",
|
||||||
"no-prototype-builtins": "error",
|
"no-prototype-builtins": "error",
|
||||||
"no-redeclare": "error",
|
"no-redeclare": "error",
|
||||||
"no-regex-spaces": "error",
|
"no-regex-spaces": "error",
|
||||||
"no-self-assign": "error",
|
"no-self-assign": "error",
|
||||||
"no-setter-return": "error",
|
"no-setter-return": "error",
|
||||||
"no-shadow-restricted-names": "error",
|
"no-shadow-restricted-names": "error",
|
||||||
"no-sparse-arrays": "error",
|
"no-sparse-arrays": "error",
|
||||||
"no-this-before-super": "error",
|
"no-this-before-super": "error",
|
||||||
"no-undef": "error",
|
"no-undef": "error",
|
||||||
"no-unexpected-multiline": "error",
|
"no-unexpected-multiline": "error",
|
||||||
"no-unreachable": "error",
|
"no-unreachable": "error",
|
||||||
"no-unsafe-finally": "error",
|
"no-unsafe-finally": "error",
|
||||||
"no-unsafe-negation": "error",
|
"no-unsafe-negation": "error",
|
||||||
"no-unsafe-optional-chaining": "error",
|
"no-unsafe-optional-chaining": "error",
|
||||||
"no-unused-labels": "error",
|
"no-unused-labels": "error",
|
||||||
"no-unused-private-class-members": "error",
|
"no-unused-private-class-members": "error",
|
||||||
"no-unused-vars": "error",
|
"no-unused-vars": "error",
|
||||||
"no-useless-backreference": "error",
|
"no-useless-backreference": "error",
|
||||||
"no-useless-catch": "error",
|
"no-useless-catch": "error",
|
||||||
"no-useless-escape": "error",
|
"no-useless-escape": "error",
|
||||||
"no-with": "error",
|
"no-with": "error",
|
||||||
"require-yield": "error",
|
"require-yield": "error",
|
||||||
"use-isnan": "error",
|
"use-isnan": "error",
|
||||||
"valid-typeof": "error"
|
"valid-typeof": "error",
|
||||||
})
|
}),
|
||||||
});
|
});
|
||||||
|
|
|
||||||
16
node_modules/@eslint/js/src/index.js
generated
vendored
16
node_modules/@eslint/js/src/index.js
generated
vendored
|
|
@ -12,12 +12,12 @@ const { name, version } = require("../package.json");
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
meta: {
|
meta: {
|
||||||
name,
|
name,
|
||||||
version
|
version,
|
||||||
},
|
},
|
||||||
configs: {
|
configs: {
|
||||||
all: require("./configs/eslint-all"),
|
all: require("./configs/eslint-all"),
|
||||||
recommended: require("./configs/eslint-recommended")
|
recommended: require("./configs/eslint-recommended"),
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
16
node_modules/@eslint/js/types/index.d.ts
generated
vendored
16
node_modules/@eslint/js/types/index.d.ts
generated
vendored
|
|
@ -1,14 +1,14 @@
|
||||||
import type { Linter } from "eslint";
|
import type { Linter } from "eslint";
|
||||||
|
|
||||||
declare const js: {
|
declare const js: {
|
||||||
readonly meta: {
|
readonly meta: {
|
||||||
readonly name: string;
|
readonly name: string;
|
||||||
readonly version: string;
|
readonly version: string;
|
||||||
},
|
};
|
||||||
readonly configs: {
|
readonly configs: {
|
||||||
readonly recommended: { readonly rules: Readonly<Linter.RulesRecord> };
|
readonly recommended: { readonly rules: Readonly<Linter.RulesRecord> };
|
||||||
readonly all: { readonly rules: Readonly<Linter.RulesRecord> };
|
readonly all: { readonly rules: Readonly<Linter.RulesRecord> };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export = js;
|
export = js;
|
||||||
|
|
|
||||||
|
|
@ -10,12 +10,12 @@
|
||||||
"access": "public",
|
"access": "public",
|
||||||
"provenance": true
|
"provenance": true
|
||||||
},
|
},
|
||||||
"version": "23.0.1",
|
"version": "24.2.0",
|
||||||
"main": "",
|
"main": "",
|
||||||
"types": "types.d.ts",
|
"types": "types.d.ts",
|
||||||
"author": "Gregor Martynus (https://twitter.com/gr2m)",
|
"author": "Gregor Martynus (https://twitter.com/gr2m)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"octokit": {
|
"octokit": {
|
||||||
"openapi-version": "17.1.1"
|
"openapi-version": "18.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
File diff suppressed because it is too large
Load diff
2
node_modules/@octokit/types/dist-types/VERSION.d.ts
generated
vendored
2
node_modules/@octokit/types/dist-types/VERSION.d.ts
generated
vendored
|
|
@ -1 +1 @@
|
||||||
export declare const VERSION = "13.8.0";
|
export declare const VERSION = "13.10.0";
|
||||||
|
|
|
||||||
106
node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts
generated
vendored
106
node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts
generated
vendored
|
|
@ -107,6 +107,10 @@ export interface Endpoints {
|
||||||
* @see https://docs.github.com/rest/orgs/orgs#delete-an-organization
|
* @see https://docs.github.com/rest/orgs/orgs#delete-an-organization
|
||||||
*/
|
*/
|
||||||
"DELETE /orgs/{org}": Operation<"/orgs/{org}", "delete">;
|
"DELETE /orgs/{org}": Operation<"/orgs/{org}", "delete">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/actions/hosted-runners#delete-a-github-hosted-runner-for-an-organization
|
||||||
|
*/
|
||||||
|
"DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}": Operation<"/orgs/{org}/actions/hosted-runners/{hosted_runner_id}", "delete">;
|
||||||
/**
|
/**
|
||||||
* @see https://docs.github.com/rest/actions/permissions#disable-a-selected-repository-for-github-actions-in-an-organization
|
* @see https://docs.github.com/rest/actions/permissions#disable-a-selected-repository-for-github-actions-in-an-organization
|
||||||
*/
|
*/
|
||||||
|
|
@ -203,6 +207,10 @@ export interface Endpoints {
|
||||||
* @see https://docs.github.com/rest/orgs/members#cancel-an-organization-invitation
|
* @see https://docs.github.com/rest/orgs/members#cancel-an-organization-invitation
|
||||||
*/
|
*/
|
||||||
"DELETE /orgs/{org}/invitations/{invitation_id}": Operation<"/orgs/{org}/invitations/{invitation_id}", "delete">;
|
"DELETE /orgs/{org}/invitations/{invitation_id}": Operation<"/orgs/{org}/invitations/{invitation_id}", "delete">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/orgs/issue-types#delete-issue-type-for-an-organization
|
||||||
|
*/
|
||||||
|
"DELETE /orgs/{org}/issue-types/{issue_type_id}": Operation<"/orgs/{org}/issue-types/{issue_type_id}", "delete">;
|
||||||
/**
|
/**
|
||||||
* @see https://docs.github.com/rest/orgs/members#remove-an-organization-member
|
* @see https://docs.github.com/rest/orgs/members#remove-an-organization-member
|
||||||
*/
|
*/
|
||||||
|
|
@ -271,6 +279,10 @@ export interface Endpoints {
|
||||||
* @see https://docs.github.com/rest/orgs/security-managers#remove-a-security-manager-team
|
* @see https://docs.github.com/rest/orgs/security-managers#remove-a-security-manager-team
|
||||||
*/
|
*/
|
||||||
"DELETE /orgs/{org}/security-managers/teams/{team_slug}": Operation<"/orgs/{org}/security-managers/teams/{team_slug}", "delete">;
|
"DELETE /orgs/{org}/security-managers/teams/{team_slug}": Operation<"/orgs/{org}/security-managers/teams/{team_slug}", "delete">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/orgs/network-configurations#delete-a-hosted-compute-network-configuration-from-an-organization
|
||||||
|
*/
|
||||||
|
"DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}": Operation<"/orgs/{org}/settings/network-configurations/{network_configuration_id}", "delete">;
|
||||||
/**
|
/**
|
||||||
* @see https://docs.github.com/rest/teams/teams#delete-a-team
|
* @see https://docs.github.com/rest/teams/teams#delete-a-team
|
||||||
*/
|
*/
|
||||||
|
|
@ -368,7 +380,7 @@ export interface Endpoints {
|
||||||
*/
|
*/
|
||||||
"DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}": Operation<"/repos/{owner}/{repo}/autolinks/{autolink_id}", "delete">;
|
"DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}": Operation<"/repos/{owner}/{repo}/autolinks/{autolink_id}", "delete">;
|
||||||
/**
|
/**
|
||||||
* @see https://docs.github.com/rest/repos/repos#disable-automated-security-fixes
|
* @see https://docs.github.com/rest/repos/repos#disable-dependabot-security-updates
|
||||||
*/
|
*/
|
||||||
"DELETE /repos/{owner}/{repo}/automated-security-fixes": Operation<"/repos/{owner}/{repo}/automated-security-fixes", "delete">;
|
"DELETE /repos/{owner}/{repo}/automated-security-fixes": Operation<"/repos/{owner}/{repo}/automated-security-fixes", "delete">;
|
||||||
/**
|
/**
|
||||||
|
|
@ -940,6 +952,34 @@ export interface Endpoints {
|
||||||
* @see https://docs.github.com/rest/actions/cache#list-repositories-with-github-actions-cache-usage-for-an-organization
|
* @see https://docs.github.com/rest/actions/cache#list-repositories-with-github-actions-cache-usage-for-an-organization
|
||||||
*/
|
*/
|
||||||
"GET /orgs/{org}/actions/cache/usage-by-repository": Operation<"/orgs/{org}/actions/cache/usage-by-repository", "get">;
|
"GET /orgs/{org}/actions/cache/usage-by-repository": Operation<"/orgs/{org}/actions/cache/usage-by-repository", "get">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/actions/hosted-runners#list-github-hosted-runners-for-an-organization
|
||||||
|
*/
|
||||||
|
"GET /orgs/{org}/actions/hosted-runners": Operation<"/orgs/{org}/actions/hosted-runners", "get">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/actions/hosted-runners#get-github-owned-images-for-github-hosted-runners-in-an-organization
|
||||||
|
*/
|
||||||
|
"GET /orgs/{org}/actions/hosted-runners/images/github-owned": Operation<"/orgs/{org}/actions/hosted-runners/images/github-owned", "get">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/actions/hosted-runners#get-partner-images-for-github-hosted-runners-in-an-organization
|
||||||
|
*/
|
||||||
|
"GET /orgs/{org}/actions/hosted-runners/images/partner": Operation<"/orgs/{org}/actions/hosted-runners/images/partner", "get">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/actions/hosted-runners#get-limits-on-github-hosted-runners-for-an-organization
|
||||||
|
*/
|
||||||
|
"GET /orgs/{org}/actions/hosted-runners/limits": Operation<"/orgs/{org}/actions/hosted-runners/limits", "get">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/actions/hosted-runners#get-github-hosted-runners-machine-specs-for-an-organization
|
||||||
|
*/
|
||||||
|
"GET /orgs/{org}/actions/hosted-runners/machine-sizes": Operation<"/orgs/{org}/actions/hosted-runners/machine-sizes", "get">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/actions/hosted-runners#get-platforms-for-github-hosted-runners-in-an-organization
|
||||||
|
*/
|
||||||
|
"GET /orgs/{org}/actions/hosted-runners/platforms": Operation<"/orgs/{org}/actions/hosted-runners/platforms", "get">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/actions/hosted-runners#get-a-github-hosted-runner-for-an-organization
|
||||||
|
*/
|
||||||
|
"GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}": Operation<"/orgs/{org}/actions/hosted-runners/{hosted_runner_id}", "get">;
|
||||||
/**
|
/**
|
||||||
* @see https://docs.github.com/rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-an-organization
|
* @see https://docs.github.com/rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-an-organization
|
||||||
*/
|
*/
|
||||||
|
|
@ -968,6 +1008,10 @@ export interface Endpoints {
|
||||||
* @see https://docs.github.com/rest/actions/self-hosted-runner-groups#get-a-self-hosted-runner-group-for-an-organization
|
* @see https://docs.github.com/rest/actions/self-hosted-runner-groups#get-a-self-hosted-runner-group-for-an-organization
|
||||||
*/
|
*/
|
||||||
"GET /orgs/{org}/actions/runner-groups/{runner_group_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}", "get">;
|
"GET /orgs/{org}/actions/runner-groups/{runner_group_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}", "get">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/actions/self-hosted-runner-groups#list-github-hosted-runners-in-a-group-for-an-organization
|
||||||
|
*/
|
||||||
|
"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners", "get">;
|
||||||
/**
|
/**
|
||||||
* @see https://docs.github.com/rest/actions/self-hosted-runner-groups#list-repository-access-to-a-self-hosted-runner-group-in-an-organization
|
* @see https://docs.github.com/rest/actions/self-hosted-runner-groups#list-repository-access-to-a-self-hosted-runner-group-in-an-organization
|
||||||
*/
|
*/
|
||||||
|
|
@ -1196,6 +1240,10 @@ export interface Endpoints {
|
||||||
* @see https://docs.github.com/rest/orgs/members#list-organization-invitation-teams
|
* @see https://docs.github.com/rest/orgs/members#list-organization-invitation-teams
|
||||||
*/
|
*/
|
||||||
"GET /orgs/{org}/invitations/{invitation_id}/teams": Operation<"/orgs/{org}/invitations/{invitation_id}/teams", "get">;
|
"GET /orgs/{org}/invitations/{invitation_id}/teams": Operation<"/orgs/{org}/invitations/{invitation_id}/teams", "get">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/orgs/issue-types#list-issue-types-for-an-organization
|
||||||
|
*/
|
||||||
|
"GET /orgs/{org}/issue-types": Operation<"/orgs/{org}/issue-types", "get">;
|
||||||
/**
|
/**
|
||||||
* @see https://docs.github.com/rest/issues/issues#list-organization-issues-assigned-to-the-authenticated-user
|
* @see https://docs.github.com/rest/issues/issues#list-organization-issues-assigned-to-the-authenticated-user
|
||||||
*/
|
*/
|
||||||
|
|
@ -1348,6 +1396,14 @@ export interface Endpoints {
|
||||||
* @see https://docs.github.com/rest/orgs/rules#get-an-organization-repository-ruleset
|
* @see https://docs.github.com/rest/orgs/rules#get-an-organization-repository-ruleset
|
||||||
*/
|
*/
|
||||||
"GET /orgs/{org}/rulesets/{ruleset_id}": Operation<"/orgs/{org}/rulesets/{ruleset_id}", "get">;
|
"GET /orgs/{org}/rulesets/{ruleset_id}": Operation<"/orgs/{org}/rulesets/{ruleset_id}", "get">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/orgs/rules#get-organization-ruleset-history
|
||||||
|
*/
|
||||||
|
"GET /orgs/{org}/rulesets/{ruleset_id}/history": Operation<"/orgs/{org}/rulesets/{ruleset_id}/history", "get">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/orgs/rules#get-organization-ruleset-version
|
||||||
|
*/
|
||||||
|
"GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}": Operation<"/orgs/{org}/rulesets/{ruleset_id}/history/{version_id}", "get">;
|
||||||
/**
|
/**
|
||||||
* @see https://docs.github.com/rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-an-organization
|
* @see https://docs.github.com/rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-an-organization
|
||||||
*/
|
*/
|
||||||
|
|
@ -1372,6 +1428,18 @@ export interface Endpoints {
|
||||||
* @see https://docs.github.com/rest/billing/billing#get-shared-storage-billing-for-an-organization
|
* @see https://docs.github.com/rest/billing/billing#get-shared-storage-billing-for-an-organization
|
||||||
*/
|
*/
|
||||||
"GET /orgs/{org}/settings/billing/shared-storage": Operation<"/orgs/{org}/settings/billing/shared-storage", "get">;
|
"GET /orgs/{org}/settings/billing/shared-storage": Operation<"/orgs/{org}/settings/billing/shared-storage", "get">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/orgs/network-configurations#list-hosted-compute-network-configurations-for-an-organization
|
||||||
|
*/
|
||||||
|
"GET /orgs/{org}/settings/network-configurations": Operation<"/orgs/{org}/settings/network-configurations", "get">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/orgs/network-configurations#get-a-hosted-compute-network-configuration-for-an-organization
|
||||||
|
*/
|
||||||
|
"GET /orgs/{org}/settings/network-configurations/{network_configuration_id}": Operation<"/orgs/{org}/settings/network-configurations/{network_configuration_id}", "get">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/orgs/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-organization
|
||||||
|
*/
|
||||||
|
"GET /orgs/{org}/settings/network-settings/{network_settings_id}": Operation<"/orgs/{org}/settings/network-settings/{network_settings_id}", "get">;
|
||||||
/**
|
/**
|
||||||
* @see https://docs.github.com/rest/copilot/copilot-metrics#get-copilot-metrics-for-a-team
|
* @see https://docs.github.com/rest/copilot/copilot-metrics#get-copilot-metrics-for-a-team
|
||||||
*/
|
*/
|
||||||
|
|
@ -1657,7 +1725,7 @@ export interface Endpoints {
|
||||||
*/
|
*/
|
||||||
"GET /repos/{owner}/{repo}/autolinks/{autolink_id}": Operation<"/repos/{owner}/{repo}/autolinks/{autolink_id}", "get">;
|
"GET /repos/{owner}/{repo}/autolinks/{autolink_id}": Operation<"/repos/{owner}/{repo}/autolinks/{autolink_id}", "get">;
|
||||||
/**
|
/**
|
||||||
* @see https://docs.github.com/rest/repos/repos#check-if-automated-security-fixes-are-enabled-for-a-repository
|
* @see https://docs.github.com/rest/repos/repos#check-if-dependabot-security-updates-are-enabled-for-a-repository
|
||||||
*/
|
*/
|
||||||
"GET /repos/{owner}/{repo}/automated-security-fixes": Operation<"/repos/{owner}/{repo}/automated-security-fixes", "get">;
|
"GET /repos/{owner}/{repo}/automated-security-fixes": Operation<"/repos/{owner}/{repo}/automated-security-fixes", "get">;
|
||||||
/**
|
/**
|
||||||
|
|
@ -2305,6 +2373,14 @@ export interface Endpoints {
|
||||||
* @see https://docs.github.com/rest/repos/rules#get-a-repository-ruleset
|
* @see https://docs.github.com/rest/repos/rules#get-a-repository-ruleset
|
||||||
*/
|
*/
|
||||||
"GET /repos/{owner}/{repo}/rulesets/{ruleset_id}": Operation<"/repos/{owner}/{repo}/rulesets/{ruleset_id}", "get">;
|
"GET /repos/{owner}/{repo}/rulesets/{ruleset_id}": Operation<"/repos/{owner}/{repo}/rulesets/{ruleset_id}", "get">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/repos/rules#get-repository-ruleset-history
|
||||||
|
*/
|
||||||
|
"GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history": Operation<"/repos/{owner}/{repo}/rulesets/{ruleset_id}/history", "get">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/repos/rules#get-repository-ruleset-version
|
||||||
|
*/
|
||||||
|
"GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}": Operation<"/repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}", "get">;
|
||||||
/**
|
/**
|
||||||
* @see https://docs.github.com/rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-a-repository
|
* @see https://docs.github.com/rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-a-repository
|
||||||
*/
|
*/
|
||||||
|
|
@ -2853,6 +2929,10 @@ export interface Endpoints {
|
||||||
* @see https://docs.github.com/rest/orgs/orgs#update-an-organization
|
* @see https://docs.github.com/rest/orgs/orgs#update-an-organization
|
||||||
*/
|
*/
|
||||||
"PATCH /orgs/{org}": Operation<"/orgs/{org}", "patch">;
|
"PATCH /orgs/{org}": Operation<"/orgs/{org}", "patch">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/actions/hosted-runners#update-a-github-hosted-runner-for-an-organization
|
||||||
|
*/
|
||||||
|
"PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}": Operation<"/orgs/{org}/actions/hosted-runners/{hosted_runner_id}", "patch">;
|
||||||
/**
|
/**
|
||||||
* @see https://docs.github.com/rest/actions/self-hosted-runner-groups#update-a-self-hosted-runner-group-for-an-organization
|
* @see https://docs.github.com/rest/actions/self-hosted-runner-groups#update-a-self-hosted-runner-group-for-an-organization
|
||||||
*/
|
*/
|
||||||
|
|
@ -2885,6 +2965,10 @@ export interface Endpoints {
|
||||||
* @see https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-property-values-for-organization-repositories
|
* @see https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-property-values-for-organization-repositories
|
||||||
*/
|
*/
|
||||||
"PATCH /orgs/{org}/properties/values": Operation<"/orgs/{org}/properties/values", "patch">;
|
"PATCH /orgs/{org}/properties/values": Operation<"/orgs/{org}/properties/values", "patch">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/orgs/network-configurations#update-a-hosted-compute-network-configuration-for-an-organization
|
||||||
|
*/
|
||||||
|
"PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}": Operation<"/orgs/{org}/settings/network-configurations/{network_configuration_id}", "patch">;
|
||||||
/**
|
/**
|
||||||
* @see https://docs.github.com/rest/teams/teams#update-a-team
|
* @see https://docs.github.com/rest/teams/teams#update-a-team
|
||||||
*/
|
*/
|
||||||
|
|
@ -3109,6 +3193,10 @@ export interface Endpoints {
|
||||||
* @see https://docs.github.com/rest/markdown/markdown#render-a-markdown-document-in-raw-mode
|
* @see https://docs.github.com/rest/markdown/markdown#render-a-markdown-document-in-raw-mode
|
||||||
*/
|
*/
|
||||||
"POST /markdown/raw": Operation<"/markdown/raw", "post">;
|
"POST /markdown/raw": Operation<"/markdown/raw", "post">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/actions/hosted-runners#create-a-github-hosted-runner-for-an-organization
|
||||||
|
*/
|
||||||
|
"POST /orgs/{org}/actions/hosted-runners": Operation<"/orgs/{org}/actions/hosted-runners", "post">;
|
||||||
/**
|
/**
|
||||||
* @see https://docs.github.com/rest/actions/self-hosted-runner-groups#create-a-self-hosted-runner-group-for-an-organization
|
* @see https://docs.github.com/rest/actions/self-hosted-runner-groups#create-a-self-hosted-runner-group-for-an-organization
|
||||||
*/
|
*/
|
||||||
|
|
@ -3169,6 +3257,10 @@ export interface Endpoints {
|
||||||
* @see https://docs.github.com/rest/orgs/members#create-an-organization-invitation
|
* @see https://docs.github.com/rest/orgs/members#create-an-organization-invitation
|
||||||
*/
|
*/
|
||||||
"POST /orgs/{org}/invitations": Operation<"/orgs/{org}/invitations", "post">;
|
"POST /orgs/{org}/invitations": Operation<"/orgs/{org}/invitations", "post">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/orgs/issue-types#create-issue-type-for-an-organization
|
||||||
|
*/
|
||||||
|
"POST /orgs/{org}/issue-types": Operation<"/orgs/{org}/issue-types", "post">;
|
||||||
/**
|
/**
|
||||||
* @see https://docs.github.com/rest/codespaces/organizations#stop-a-codespace-for-an-organization-user
|
* @see https://docs.github.com/rest/codespaces/organizations#stop-a-codespace-for-an-organization-user
|
||||||
*/
|
*/
|
||||||
|
|
@ -3217,6 +3309,10 @@ export interface Endpoints {
|
||||||
* @see https://docs.github.com/rest/orgs/rules#create-an-organization-repository-ruleset
|
* @see https://docs.github.com/rest/orgs/rules#create-an-organization-repository-ruleset
|
||||||
*/
|
*/
|
||||||
"POST /orgs/{org}/rulesets": Operation<"/orgs/{org}/rulesets", "post">;
|
"POST /orgs/{org}/rulesets": Operation<"/orgs/{org}/rulesets", "post">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/orgs/network-configurations#create-a-hosted-compute-network-configuration-for-an-organization
|
||||||
|
*/
|
||||||
|
"POST /orgs/{org}/settings/network-configurations": Operation<"/orgs/{org}/settings/network-configurations", "post">;
|
||||||
/**
|
/**
|
||||||
* @see https://docs.github.com/rest/teams/teams#create-a-team
|
* @see https://docs.github.com/rest/teams/teams#create-a-team
|
||||||
*/
|
*/
|
||||||
|
|
@ -3825,6 +3921,10 @@ export interface Endpoints {
|
||||||
* @see https://docs.github.com/rest/interactions/orgs#set-interaction-restrictions-for-an-organization
|
* @see https://docs.github.com/rest/interactions/orgs#set-interaction-restrictions-for-an-organization
|
||||||
*/
|
*/
|
||||||
"PUT /orgs/{org}/interaction-limits": Operation<"/orgs/{org}/interaction-limits", "put">;
|
"PUT /orgs/{org}/interaction-limits": Operation<"/orgs/{org}/interaction-limits", "put">;
|
||||||
|
/**
|
||||||
|
* @see https://docs.github.com/rest/orgs/issue-types#update-issue-type-for-an-organization
|
||||||
|
*/
|
||||||
|
"PUT /orgs/{org}/issue-types/{issue_type_id}": Operation<"/orgs/{org}/issue-types/{issue_type_id}", "put">;
|
||||||
/**
|
/**
|
||||||
* @see https://docs.github.com/rest/orgs/members#set-organization-membership-for-a-user
|
* @see https://docs.github.com/rest/orgs/members#set-organization-membership-for-a-user
|
||||||
*/
|
*/
|
||||||
|
|
@ -3910,7 +4010,7 @@ export interface Endpoints {
|
||||||
*/
|
*/
|
||||||
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable", "put">;
|
"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable", "put">;
|
||||||
/**
|
/**
|
||||||
* @see https://docs.github.com/rest/repos/repos#enable-automated-security-fixes
|
* @see https://docs.github.com/rest/repos/repos#enable-dependabot-security-updates
|
||||||
*/
|
*/
|
||||||
"PUT /repos/{owner}/{repo}/automated-security-fixes": Operation<"/repos/{owner}/{repo}/automated-security-fixes", "put">;
|
"PUT /repos/{owner}/{repo}/automated-security-fixes": Operation<"/repos/{owner}/{repo}/automated-security-fixes", "put">;
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
8
node_modules/@octokit/types/package.json
generated
vendored
8
node_modules/@octokit/types/package.json
generated
vendored
|
|
@ -1,13 +1,13 @@
|
||||||
{
|
{
|
||||||
"name": "@octokit/types",
|
"name": "@octokit/types",
|
||||||
"version": "13.8.0",
|
"version": "13.10.0",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
"provenance": true
|
"provenance": true
|
||||||
},
|
},
|
||||||
"description": "Shared TypeScript definitions for Octokit projects",
|
"description": "Shared TypeScript definitions for Octokit projects",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/openapi-types": "^23.0.1"
|
"@octokit/openapi-types": "^24.2.0"
|
||||||
},
|
},
|
||||||
"repository": "github:octokit/types.ts",
|
"repository": "github:octokit/types.ts",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
@ -26,13 +26,13 @@
|
||||||
"npm-run-all2": "^7.0.0",
|
"npm-run-all2": "^7.0.0",
|
||||||
"prettier": "^3.0.0",
|
"prettier": "^3.0.0",
|
||||||
"semantic-release": "^24.0.0",
|
"semantic-release": "^24.0.0",
|
||||||
"semantic-release-plugin-update-version-in-files": "^1.0.0",
|
"semantic-release-plugin-update-version-in-files": "^2.0.0",
|
||||||
"sort-keys": "^5.0.0",
|
"sort-keys": "^5.0.0",
|
||||||
"typedoc": "^0.26.0",
|
"typedoc": "^0.26.0",
|
||||||
"typescript": "^5.0.0"
|
"typescript": "^5.0.0"
|
||||||
},
|
},
|
||||||
"octokit": {
|
"octokit": {
|
||||||
"openapi-version": "17.1.1"
|
"openapi-version": "18.2.0"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist-types/**"
|
"dist-types/**"
|
||||||
|
|
|
||||||
2
node_modules/@sinonjs/fake-timers/package.json
generated
vendored
2
node_modules/@sinonjs/fake-timers/package.json
generated
vendored
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@sinonjs/fake-timers",
|
"name": "@sinonjs/fake-timers",
|
||||||
"description": "Fake JavaScript timers",
|
"description": "Fake JavaScript timers",
|
||||||
"version": "13.0.2",
|
"version": "13.0.5",
|
||||||
"homepage": "https://github.com/sinonjs/fake-timers",
|
"homepage": "https://github.com/sinonjs/fake-timers",
|
||||||
"author": "Christian Johansen",
|
"author": "Christian Johansen",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
||||||
7
node_modules/@sinonjs/fake-timers/src/fake-timers-src.js
generated
vendored
7
node_modules/@sinonjs/fake-timers/src/fake-timers-src.js
generated
vendored
|
|
@ -447,6 +447,13 @@ function withGlobal(_global) {
|
||||||
} else {
|
} else {
|
||||||
super(...arguments);
|
super(...arguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ensures identity checks using the constructor prop still works
|
||||||
|
// this should have no other functional effect
|
||||||
|
Object.defineProperty(this, "constructor", {
|
||||||
|
value: NativeDate,
|
||||||
|
enumerable: false,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
static [Symbol.hasInstance](instance) {
|
static [Symbol.hasInstance](instance) {
|
||||||
|
|
|
||||||
237
node_modules/@sinonjs/text-encoding/LICENSE.md
generated
vendored
237
node_modules/@sinonjs/text-encoding/LICENSE.md
generated
vendored
|
|
@ -1,237 +0,0 @@
|
||||||
The encoding indexes, algorithms, and many comments in the code
|
|
||||||
derive from the Encoding Standard https://encoding.spec.whatwg.org/
|
|
||||||
|
|
||||||
Otherwise, the code of this repository is released under the Unlicense
|
|
||||||
license and is also dual-licensed under an Apache 2.0 license. Both
|
|
||||||
are included below.
|
|
||||||
|
|
||||||
# Unlicense
|
|
||||||
|
|
||||||
This is free and unencumbered software released into the public domain.
|
|
||||||
|
|
||||||
Anyone is free to copy, modify, publish, use, compile, sell, or
|
|
||||||
distribute this software, either in source code form or as a compiled
|
|
||||||
binary, for any purpose, commercial or non-commercial, and by any
|
|
||||||
means.
|
|
||||||
|
|
||||||
In jurisdictions that recognize copyright laws, the author or authors
|
|
||||||
of this software dedicate any and all copyright interest in the
|
|
||||||
software to the public domain. We make this dedication for the benefit
|
|
||||||
of the public at large and to the detriment of our heirs and
|
|
||||||
successors. We intend this dedication to be an overt act of
|
|
||||||
relinquishment in perpetuity of all present and future rights to this
|
|
||||||
software under copyright law.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
||||||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
||||||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
||||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
||||||
OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
For more information, please refer to <http://unlicense.org/>
|
|
||||||
|
|
||||||
# Apache 2.0 License
|
|
||||||
|
|
||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
145
node_modules/@sinonjs/text-encoding/README.md
generated
vendored
145
node_modules/@sinonjs/text-encoding/README.md
generated
vendored
|
|
@ -1,145 +0,0 @@
|
||||||
text-encoding
|
|
||||||
==============
|
|
||||||
|
|
||||||
This is a fork of https://github.com/inexorabletash/text-encoding, which
|
|
||||||
has been marked as deprecated in the npm registry.
|
|
||||||
|
|
||||||
```
|
|
||||||
npm info text-encoding
|
|
||||||
|
|
||||||
text-encoding@0.7.0 | (Unlicense OR Apache-2.0) | deps: none | versions: 11
|
|
||||||
Polyfill for the Encoding Living Standard's API.
|
|
||||||
https://github.com/inexorabletash/text-encoding
|
|
||||||
|
|
||||||
DEPRECATED ⚠️ - no longer maintained
|
|
||||||
|
|
||||||
keywords: encoding, decoding, living standard
|
|
||||||
|
|
||||||
dist
|
|
||||||
.tarball: https://registry.npmjs.org/text-encoding/-/text-encoding-0.7.0.tgz
|
|
||||||
.shasum: f895e836e45990624086601798ea98e8f36ee643
|
|
||||||
.integrity: sha512-oJQ3f1hrOnbRLOcwKz0Liq2IcrvDeZRHXhd9RgLrsT+DjWY/nty1Hi7v3dtkaEYbPYe0mUoOfzRrMwfXXwgPUA==
|
|
||||||
.unpackedSize: 649.6 kB
|
|
||||||
|
|
||||||
maintainers:
|
|
||||||
- inexorabletash <inexorabletash@gmail.com>
|
|
||||||
|
|
||||||
dist-tags:
|
|
||||||
latest: 0.7.0
|
|
||||||
|
|
||||||
published a year ago by inexorabletash <inexorabletash@gmail.com>
|
|
||||||
```
|
|
||||||
|
|
||||||
This fork is published as `@sinonjs/text-encoding` and will be available as long
|
|
||||||
as it is in use by `@sinonjs` packages.
|
|
||||||
|
|
||||||
<hr />
|
|
||||||
|
|
||||||
This is a polyfill for the [Encoding Living
|
|
||||||
Standard](https://encoding.spec.whatwg.org/) API for the Web, allowing
|
|
||||||
encoding and decoding of textual data to and from Typed Array buffers
|
|
||||||
for binary data in JavaScript.
|
|
||||||
|
|
||||||
By default it adheres to the spec and does not support *encoding* to
|
|
||||||
legacy encodings, only *decoding*. It is also implemented to match the
|
|
||||||
specification's algorithms, rather than for performance. The intended
|
|
||||||
use is within Web pages, so it has no dependency on server frameworks
|
|
||||||
or particular module schemes.
|
|
||||||
|
|
||||||
Basic examples and tests are included.
|
|
||||||
|
|
||||||
### Install ###
|
|
||||||
|
|
||||||
There are a few ways you can get and use the `@sinonjs/text-encoding` library.
|
|
||||||
|
|
||||||
### HTML Page Usage ###
|
|
||||||
|
|
||||||
Clone the repo and include the files directly:
|
|
||||||
|
|
||||||
```html
|
|
||||||
<!-- Required for non-UTF encodings -->
|
|
||||||
<script src="encoding-indexes.js"></script>
|
|
||||||
<script src="encoding.js"></script>
|
|
||||||
```
|
|
||||||
|
|
||||||
This is the only use case the developer cares about. If you want those
|
|
||||||
fancy module and/or package manager things that are popular these days
|
|
||||||
you should probably use a different library.
|
|
||||||
|
|
||||||
#### Package Managers ####
|
|
||||||
|
|
||||||
The package is published to **npm** as `@sinonjs/text-encoding`.
|
|
||||||
Use through these is not really supported, since they aren't used by
|
|
||||||
the developer of the library. Using `require()` in interesting ways
|
|
||||||
probably breaks. Patches welcome, as long as they don't break the
|
|
||||||
basic use of the files via `<script>`.
|
|
||||||
|
|
||||||
### API Overview ###
|
|
||||||
|
|
||||||
Basic Usage
|
|
||||||
|
|
||||||
```js
|
|
||||||
var uint8array = new TextEncoder().encode(string);
|
|
||||||
var string = new TextDecoder(encoding).decode(uint8array);
|
|
||||||
```
|
|
||||||
|
|
||||||
Streaming Decode
|
|
||||||
|
|
||||||
```js
|
|
||||||
var string = "", decoder = new TextDecoder(encoding), buffer;
|
|
||||||
while (buffer = next_chunk()) {
|
|
||||||
string += decoder.decode(buffer, {stream:true});
|
|
||||||
}
|
|
||||||
string += decoder.decode(); // finish the stream
|
|
||||||
```
|
|
||||||
|
|
||||||
### Encodings ###
|
|
||||||
|
|
||||||
All encodings from the Encoding specification are supported:
|
|
||||||
|
|
||||||
utf-8 ibm866 iso-8859-2 iso-8859-3 iso-8859-4 iso-8859-5 iso-8859-6
|
|
||||||
iso-8859-7 iso-8859-8 iso-8859-8-i iso-8859-10 iso-8859-13 iso-8859-14
|
|
||||||
iso-8859-15 iso-8859-16 koi8-r koi8-u macintosh windows-874
|
|
||||||
windows-1250 windows-1251 windows-1252 windows-1253 windows-1254
|
|
||||||
windows-1255 windows-1256 windows-1257 windows-1258 x-mac-cyrillic
|
|
||||||
gb18030 hz-gb-2312 big5 euc-jp iso-2022-jp shift_jis euc-kr
|
|
||||||
replacement utf-16be utf-16le x-user-defined
|
|
||||||
|
|
||||||
(Some encodings may be supported under other names, e.g. ascii,
|
|
||||||
iso-8859-1, etc. See [Encoding](https://encoding.spec.whatwg.org/) for
|
|
||||||
additional labels for each encoding.)
|
|
||||||
|
|
||||||
Encodings other than **utf-8**, **utf-16le** and **utf-16be** require
|
|
||||||
an additional `encoding-indexes.js` file to be included. It is rather
|
|
||||||
large (596kB uncompressed, 188kB gzipped); portions may be deleted if
|
|
||||||
support for some encodings is not required.
|
|
||||||
|
|
||||||
### Non-Standard Behavior ###
|
|
||||||
|
|
||||||
As required by the specification, only encoding to **utf-8** is
|
|
||||||
supported. If you want to try it out, you can force a non-standard
|
|
||||||
behavior by passing the `NONSTANDARD_allowLegacyEncoding` option to
|
|
||||||
TextEncoder and a label. For example:
|
|
||||||
|
|
||||||
```js
|
|
||||||
var uint8array = new TextEncoder(
|
|
||||||
'windows-1252', { NONSTANDARD_allowLegacyEncoding: true }).encode(text);
|
|
||||||
```
|
|
||||||
|
|
||||||
But note that the above won't work if you're using the polyfill in a
|
|
||||||
browser that natively supports the TextEncoder API natively, since the
|
|
||||||
polyfill won't be used!
|
|
||||||
|
|
||||||
You can force the polyfill to be used by using this before the polyfill:
|
|
||||||
|
|
||||||
```html
|
|
||||||
<script>
|
|
||||||
window.TextEncoder = window.TextDecoder = null;
|
|
||||||
</script>
|
|
||||||
```
|
|
||||||
|
|
||||||
To support the legacy encodings (which may be stateful), the
|
|
||||||
TextEncoder `encode()` method accepts an optional dictionary and
|
|
||||||
`stream` option, e.g. `encoder.encode(string, {stream: true});` This
|
|
||||||
is not needed for standard encoding since the input is always in
|
|
||||||
complete code points.
|
|
||||||
9
node_modules/@sinonjs/text-encoding/index.js
generated
vendored
9
node_modules/@sinonjs/text-encoding/index.js
generated
vendored
|
|
@ -1,9 +0,0 @@
|
||||||
// This is free and unencumbered software released into the public domain.
|
|
||||||
// See LICENSE.md for more information.
|
|
||||||
|
|
||||||
var encoding = require("./lib/encoding.js");
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
TextEncoder: encoding.TextEncoder,
|
|
||||||
TextDecoder: encoding.TextDecoder,
|
|
||||||
};
|
|
||||||
47
node_modules/@sinonjs/text-encoding/lib/encoding-indexes.js
generated
vendored
47
node_modules/@sinonjs/text-encoding/lib/encoding-indexes.js
generated
vendored
File diff suppressed because one or more lines are too long
3313
node_modules/@sinonjs/text-encoding/lib/encoding.js
generated
vendored
3313
node_modules/@sinonjs/text-encoding/lib/encoding.js
generated
vendored
File diff suppressed because it is too large
Load diff
40
node_modules/@sinonjs/text-encoding/package.json
generated
vendored
40
node_modules/@sinonjs/text-encoding/package.json
generated
vendored
|
|
@ -1,40 +0,0 @@
|
||||||
{
|
|
||||||
"name": "@sinonjs/text-encoding",
|
|
||||||
"scripts": {
|
|
||||||
"postpublish": "git push --tags"
|
|
||||||
},
|
|
||||||
"author": "Joshua Bell <inexorabletash@gmail.com>",
|
|
||||||
"contributors": [
|
|
||||||
"Joshua Bell <inexorabletash@gmail.com>",
|
|
||||||
"Rick Eyre <rick.eyre@outlook.com>",
|
|
||||||
"Eugen Podaru <eugen.podaru@live.com>",
|
|
||||||
"Filip Dupanović <filip.dupanovic@gmail.com>",
|
|
||||||
"Anne van Kesteren <annevk@annevk.nl>",
|
|
||||||
"Author: Francis Avila <francisga@gmail.com>",
|
|
||||||
"Michael J. Ryan <tracker1@gmail.com>",
|
|
||||||
"Pierre Queinnec <pierre@queinnec.org>",
|
|
||||||
"Zack Weinberg <zackw@panix.com>"
|
|
||||||
],
|
|
||||||
"version": "0.7.3",
|
|
||||||
"description": "Polyfill for the Encoding Living Standard's API.",
|
|
||||||
"main": "index.js",
|
|
||||||
"files": [
|
|
||||||
"index.js",
|
|
||||||
"lib/encoding.js",
|
|
||||||
"lib/encoding-indexes.js"
|
|
||||||
],
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/sinonjs/text-encoding.git"
|
|
||||||
},
|
|
||||||
"keywords": [
|
|
||||||
"encoding",
|
|
||||||
"decoding",
|
|
||||||
"living standard"
|
|
||||||
],
|
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/sinonjs/text-encoding/issues"
|
|
||||||
},
|
|
||||||
"homepage": "https://github.com/sinonjs/text-encoding",
|
|
||||||
"license": "(Unlicense OR Apache-2.0)"
|
|
||||||
}
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"consistent-type-exports.d.ts","sourceRoot":"","sources":["../../src/rules/consistent-type-exports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAgBnE,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,sCAAsC,EAAE,OAAO,CAAC;KACjD;CACF,CAAC;AAgBF,MAAM,MAAM,UAAU,GAClB,yBAAyB,GACzB,oBAAoB,GACpB,eAAe,CAAC;;AAEpB,wBAgSG"}
|
{"version":3,"file":"consistent-type-exports.d.ts","sourceRoot":"","sources":["../../src/rules/consistent-type-exports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAgBnE,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,sCAAsC,EAAE,OAAO,CAAC;KACjD;CACF,CAAC;AAgBF,MAAM,MAAM,UAAU,GAClB,yBAAyB,GACzB,oBAAoB,GACpB,eAAe,CAAC;;AAEpB,wBA8RG"}
|
||||||
10
node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js
generated
vendored
10
node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js
generated
vendored
|
|
@ -158,14 +158,12 @@ exports.default = (0, util_1.createRule)({
|
||||||
// Cache the first encountered exports for the package. We will need to come
|
// Cache the first encountered exports for the package. We will need to come
|
||||||
// back to these later when fixing the problems.
|
// back to these later when fixing the problems.
|
||||||
if (node.exportKind === 'type') {
|
if (node.exportKind === 'type') {
|
||||||
if (sourceExports.typeOnlyNamedExport == null) {
|
// The export is a type export
|
||||||
// The export is a type export
|
sourceExports.typeOnlyNamedExport ??= node;
|
||||||
sourceExports.typeOnlyNamedExport = node;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (sourceExports.valueOnlyNamedExport == null) {
|
else {
|
||||||
// The export is a value export
|
// The export is a value export
|
||||||
sourceExports.valueOnlyNamedExport = node;
|
sourceExports.valueOnlyNamedExport ??= node;
|
||||||
}
|
}
|
||||||
// Next for the current export, we will separate type/value specifiers.
|
// Next for the current export, we will separate type/value specifiers.
|
||||||
const typeBasedSpecifiers = [];
|
const typeBasedSpecifiers = [];
|
||||||
|
|
|
||||||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.d.ts.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.d.ts.map
generated
vendored
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"no-empty-interface.d.ts","sourceRoot":"","sources":["../../src/rules/no-empty-interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAOzD,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,kBAAkB,CAAC,EAAE,OAAO,CAAC;KAC9B;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,kBAAkB,CAAC;;AAExD,wBAwGG"}
|
{"version":3,"file":"no-empty-interface.d.ts","sourceRoot":"","sources":["../../src/rules/no-empty-interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAOzD,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,kBAAkB,CAAC,EAAE,OAAO,CAAC;KAC9B;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,kBAAkB,CAAC;;AAExD,wBAmHG"}
|
||||||
13
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js
generated
vendored
13
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-empty-interface.js
generated
vendored
|
|
@ -7,7 +7,18 @@ exports.default = (0, util_1.createRule)({
|
||||||
name: 'no-empty-interface',
|
name: 'no-empty-interface',
|
||||||
meta: {
|
meta: {
|
||||||
type: 'suggestion',
|
type: 'suggestion',
|
||||||
deprecated: true,
|
deprecated: {
|
||||||
|
deprecatedSince: '8.0.0',
|
||||||
|
replacedBy: [
|
||||||
|
{
|
||||||
|
rule: {
|
||||||
|
name: '@typescript-eslint/no-empty-object-type',
|
||||||
|
url: 'https://typescript-eslint.io/rules/no-empty-object-type',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
url: 'https://github.com/typescript-eslint/typescript-eslint/pull/8977',
|
||||||
|
},
|
||||||
docs: {
|
docs: {
|
||||||
description: 'Disallow the declaration of empty interfaces',
|
description: 'Disallow the declaration of empty interfaces',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"no-loss-of-precision.d.ts","sourceRoot":"","sources":["../../src/rules/no-loss-of-precision.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,QAAA,MAAM,QAAQ,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAElD,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,wBAAwB,CAAC,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC;AAC7E,MAAM,MAAM,UAAU,GAAG,2BAA2B,CAClD,WAAW,CAAC,OAAO,QAAQ,CAAC,CAC7B,CAAC;;AAEF,wBAkBG"}
|
{"version":3,"file":"no-loss-of-precision.d.ts","sourceRoot":"","sources":["../../src/rules/no-loss-of-precision.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,QAAA,MAAM,QAAQ,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAElD,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,wBAAwB,CAAC,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC;AAC7E,MAAM,MAAM,UAAU,GAAG,2BAA2B,CAClD,WAAW,CAAC,OAAO,QAAQ,CAAC,CAC7B,CAAC;;AAEF,wBA6BG"}
|
||||||
13
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js
generated
vendored
13
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-loss-of-precision.js
generated
vendored
|
|
@ -8,7 +8,18 @@ exports.default = (0, util_1.createRule)({
|
||||||
meta: {
|
meta: {
|
||||||
type: 'problem',
|
type: 'problem',
|
||||||
// defaultOptions, -- base rule does not use defaultOptions
|
// defaultOptions, -- base rule does not use defaultOptions
|
||||||
deprecated: true,
|
deprecated: {
|
||||||
|
deprecatedSince: '8.0.0',
|
||||||
|
replacedBy: [
|
||||||
|
{
|
||||||
|
rule: {
|
||||||
|
name: 'no-loss-of-precision',
|
||||||
|
url: 'https://eslint.org/docs/latest/rules/no-loss-of-precision',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
url: 'https://github.com/typescript-eslint/typescript-eslint/pull/8832',
|
||||||
|
},
|
||||||
docs: {
|
docs: {
|
||||||
description: 'Disallow literal numbers that lose precision',
|
description: 'Disallow literal numbers that lose precision',
|
||||||
extendsBaseRule: true,
|
extendsBaseRule: true,
|
||||||
|
|
|
||||||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.d.ts.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.d.ts.map
generated
vendored
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"no-type-alias.d.ts","sourceRoot":"","sources":["../../src/rules/no-type-alias.ts"],"names":[],"mappings":"AAMA,KAAK,MAAM,GACP,QAAQ,GACR,kBAAkB,GAClB,WAAW,GACX,6BAA6B,GAC7B,OAAO,CAAC;AAEZ,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,cAAc,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;QACpC,qBAAqB,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;QAC3C,iBAAiB,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;QACvC,aAAa,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;QACnC,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,oBAAoB,GAAG,aAAa,CAAC;;AAU9D,wBAwTG"}
|
{"version":3,"file":"no-type-alias.d.ts","sourceRoot":"","sources":["../../src/rules/no-type-alias.ts"],"names":[],"mappings":"AAMA,KAAK,MAAM,GACP,QAAQ,GACR,kBAAkB,GAClB,WAAW,GACX,6BAA6B,GAC7B,OAAO,CAAC;AAEZ,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,cAAc,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;QACpC,qBAAqB,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;QAC3C,iBAAiB,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;QACvC,aAAa,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;QACnC,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,oBAAoB,GAAG,aAAa,CAAC;;AAU9D,wBAmUG"}
|
||||||
13
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js
generated
vendored
13
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-type-alias.js
generated
vendored
|
|
@ -6,7 +6,18 @@ exports.default = (0, util_1.createRule)({
|
||||||
name: 'no-type-alias',
|
name: 'no-type-alias',
|
||||||
meta: {
|
meta: {
|
||||||
type: 'suggestion',
|
type: 'suggestion',
|
||||||
deprecated: true,
|
deprecated: {
|
||||||
|
deprecatedSince: '6.0.0',
|
||||||
|
replacedBy: [
|
||||||
|
{
|
||||||
|
rule: {
|
||||||
|
name: '@typescript-eslint/consistent-type-definitions',
|
||||||
|
url: 'https://typescript-eslint.io/rules/consistent-type-definitions',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
url: 'https://github.com/typescript-eslint/typescript-eslint/pull/6229',
|
||||||
|
},
|
||||||
docs: {
|
docs: {
|
||||||
description: 'Disallow type aliases',
|
description: 'Disallow type aliases',
|
||||||
// too opinionated to be recommended
|
// too opinionated to be recommended
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"no-unsafe-function-type.d.ts","sourceRoot":"","sources":["../../src/rules/no-unsafe-function-type.ts"],"names":[],"mappings":";AAMA,wBA4CG"}
|
{"version":3,"file":"no-unsafe-function-type.d.ts","sourceRoot":"","sources":["../../src/rules/no-unsafe-function-type.ts"],"names":[],"mappings":";AAMA,wBA2CG"}
|
||||||
1
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js
generated
vendored
1
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-function-type.js
generated
vendored
|
|
@ -10,7 +10,6 @@ exports.default = (0, util_1.createRule)({
|
||||||
description: 'Disallow using the unsafe built-in Function type',
|
description: 'Disallow using the unsafe built-in Function type',
|
||||||
recommended: 'recommended',
|
recommended: 'recommended',
|
||||||
},
|
},
|
||||||
fixable: 'code',
|
|
||||||
messages: {
|
messages: {
|
||||||
bannedFunctionType: [
|
bannedFunctionType: [
|
||||||
'The `Function` type accepts any function-like value.',
|
'The `Function` type accepts any function-like value.',
|
||||||
|
|
|
||||||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.d.ts.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.d.ts.map
generated
vendored
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"no-unsafe-return.d.ts","sourceRoot":"","sources":["../../src/rules/no-unsafe-return.ts"],"names":[],"mappings":";AAqBA,wBAwMG"}
|
{"version":3,"file":"no-unsafe-return.d.ts","sourceRoot":"","sources":["../../src/rules/no-unsafe-return.ts"],"names":[],"mappings":";AAqBA,wBAsMG"}
|
||||||
4
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js
generated
vendored
4
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-return.js
generated
vendored
|
|
@ -81,9 +81,7 @@ exports.default = (0, util_1.createRule)({
|
||||||
ts.isArrowFunction(functionTSNode)
|
ts.isArrowFunction(functionTSNode)
|
||||||
? (0, util_1.getContextualType)(checker, functionTSNode)
|
? (0, util_1.getContextualType)(checker, functionTSNode)
|
||||||
: services.getTypeAtLocation(functionNode);
|
: services.getTypeAtLocation(functionNode);
|
||||||
if (!functionType) {
|
functionType ??= services.getTypeAtLocation(functionNode);
|
||||||
functionType = services.getTypeAtLocation(functionNode);
|
|
||||||
}
|
|
||||||
const callSignatures = tsutils.getCallSignaturesOfType(functionType);
|
const callSignatures = tsutils.getCallSignaturesOfType(functionType);
|
||||||
// If there is an explicit type annotation *and* that type matches the actual
|
// If there is an explicit type annotation *and* that type matches the actual
|
||||||
// function return type, we shouldn't complain (it's intentional, even if unsafe)
|
// function return type, we shouldn't complain (it's intentional, even if unsafe)
|
||||||
|
|
|
||||||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.d.ts.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.d.ts.map
generated
vendored
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"no-var-requires.d.ts","sourceRoot":"","sources":["../../src/rules/no-var-requires.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,KAAK,EAAE,MAAM,EAAE,CAAC;KACjB;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC;;AAErC,wBAmFG"}
|
{"version":3,"file":"no-var-requires.d.ts","sourceRoot":"","sources":["../../src/rules/no-var-requires.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,KAAK,EAAE,MAAM,EAAE,CAAC;KACjB;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC;;AAErC,wBA8FG"}
|
||||||
13
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js
generated
vendored
13
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-var-requires.js
generated
vendored
|
|
@ -6,7 +6,18 @@ exports.default = (0, util_1.createRule)({
|
||||||
name: 'no-var-requires',
|
name: 'no-var-requires',
|
||||||
meta: {
|
meta: {
|
||||||
type: 'problem',
|
type: 'problem',
|
||||||
deprecated: true,
|
deprecated: {
|
||||||
|
deprecatedSince: '8.0.0',
|
||||||
|
replacedBy: [
|
||||||
|
{
|
||||||
|
rule: {
|
||||||
|
name: '@typescript-eslint/no-require-imports',
|
||||||
|
url: 'https://typescript-eslint.io/rules/no-require-imports',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
url: 'https://github.com/typescript-eslint/typescript-eslint/pull/8334',
|
||||||
|
},
|
||||||
docs: {
|
docs: {
|
||||||
description: 'Disallow `require` statements except in import statements',
|
description: 'Disallow `require` statements except in import statements',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ export type Options = [
|
||||||
ignoreTernaryTests?: boolean;
|
ignoreTernaryTests?: boolean;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
export type MessageIds = 'noStrictNullCheck' | 'preferNullishOverOr' | 'preferNullishOverTernary' | 'suggestNullish';
|
export type MessageIds = 'noStrictNullCheck' | 'preferNullishOverAssignment' | 'preferNullishOverOr' | 'preferNullishOverTernary' | 'suggestNullish';
|
||||||
declare const _default: TSESLint.RuleModule<MessageIds, Options, import("../../rules").ESLintPluginDocs, TSESLint.RuleListener>;
|
declare const _default: TSESLint.RuleModule<MessageIds, Options, import("../../rules").ESLintPluginDocs, TSESLint.RuleListener>;
|
||||||
export default _default;
|
export default _default;
|
||||||
//# sourceMappingURL=prefer-nullish-coalescing.d.ts.map
|
//# sourceMappingURL=prefer-nullish-coalescing.d.ts.map
|
||||||
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"prefer-nullish-coalescing.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-nullish-coalescing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AA8BnE,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,sDAAsD,CAAC,EAAE,OAAO,CAAC;QACjE,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,sBAAsB,CAAC,EAAE,OAAO,CAAC;QACjC,6BAA6B,CAAC,EAAE,OAAO,CAAC;QACxC,gBAAgB,CAAC,EACb;YACE,MAAM,CAAC,EAAE,OAAO,CAAC;YACjB,OAAO,CAAC,EAAE,OAAO,CAAC;YAClB,MAAM,CAAC,EAAE,OAAO,CAAC;YACjB,MAAM,CAAC,EAAE,OAAO,CAAC;SAClB,GACD,IAAI,CAAC;QACT,kBAAkB,CAAC,EAAE,OAAO,CAAC;KAC9B;CACF,CAAC;AAEF,MAAM,MAAM,UAAU,GAClB,mBAAmB,GACnB,qBAAqB,GACrB,0BAA0B,GAC1B,gBAAgB,CAAC;;AAErB,wBAsfG"}
|
{"version":3,"file":"prefer-nullish-coalescing.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-nullish-coalescing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAqCnE,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,sDAAsD,CAAC,EAAE,OAAO,CAAC;QACjE,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,sBAAsB,CAAC,EAAE,OAAO,CAAC;QACjC,6BAA6B,CAAC,EAAE,OAAO,CAAC;QACxC,gBAAgB,CAAC,EACb;YACE,MAAM,CAAC,EAAE,OAAO,CAAC;YACjB,OAAO,CAAC,EAAE,OAAO,CAAC;YAClB,MAAM,CAAC,EAAE,OAAO,CAAC;YACjB,MAAM,CAAC,EAAE,OAAO,CAAC;SAClB,GACD,IAAI,CAAC;QACT,kBAAkB,CAAC,EAAE,OAAO,CAAC;KAC9B;CACF,CAAC;AAEF,MAAM,MAAM,UAAU,GAClB,mBAAmB,GACnB,6BAA6B,GAC7B,qBAAqB,GACrB,0BAA0B,GAC1B,gBAAgB,CAAC;;AAErB,wBAujBG"}
|
||||||
362
node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js
generated
vendored
362
node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-nullish-coalescing.js
generated
vendored
|
|
@ -37,11 +37,14 @@ const utils_1 = require("@typescript-eslint/utils");
|
||||||
const tsutils = __importStar(require("ts-api-utils"));
|
const tsutils = __importStar(require("ts-api-utils"));
|
||||||
const ts = __importStar(require("typescript"));
|
const ts = __importStar(require("typescript"));
|
||||||
const util_1 = require("../util");
|
const util_1 = require("../util");
|
||||||
const isIdentifierOrMemberOrChainExpression = (0, util_1.isNodeOfTypes)([
|
const isMemberAccessLike = (0, util_1.isNodeOfTypes)([
|
||||||
utils_1.AST_NODE_TYPES.ChainExpression,
|
utils_1.AST_NODE_TYPES.ChainExpression,
|
||||||
utils_1.AST_NODE_TYPES.Identifier,
|
utils_1.AST_NODE_TYPES.Identifier,
|
||||||
utils_1.AST_NODE_TYPES.MemberExpression,
|
utils_1.AST_NODE_TYPES.MemberExpression,
|
||||||
]);
|
]);
|
||||||
|
const isNullLiteralOrUndefinedIdentifier = (node) => (0, util_1.isNullLiteral)(node) || (0, util_1.isUndefinedIdentifier)(node);
|
||||||
|
const isNodeNullishComparison = (node) => isNullLiteralOrUndefinedIdentifier(node.left) &&
|
||||||
|
isNullLiteralOrUndefinedIdentifier(node.right);
|
||||||
exports.default = (0, util_1.createRule)({
|
exports.default = (0, util_1.createRule)({
|
||||||
name: 'prefer-nullish-coalescing',
|
name: 'prefer-nullish-coalescing',
|
||||||
meta: {
|
meta: {
|
||||||
|
|
@ -54,6 +57,7 @@ exports.default = (0, util_1.createRule)({
|
||||||
hasSuggestions: true,
|
hasSuggestions: true,
|
||||||
messages: {
|
messages: {
|
||||||
noStrictNullCheck: 'This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.',
|
noStrictNullCheck: 'This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.',
|
||||||
|
preferNullishOverAssignment: 'Prefer using nullish coalescing operator (`??{{ equals }}`) instead of an assignment expression, as it is simpler to read.',
|
||||||
preferNullishOverOr: 'Prefer using nullish coalescing operator (`??{{ equals }}`) instead of a logical {{ description }} (`||{{ equals }}`), as it is a safer operator.',
|
preferNullishOverOr: 'Prefer using nullish coalescing operator (`??{{ equals }}`) instead of a logical {{ description }} (`||{{ equals }}`), as it is a safer operator.',
|
||||||
preferNullishOverTernary: 'Prefer using nullish coalescing operator (`??{{ equals }}`) instead of a ternary expression, as it is simpler to read.',
|
preferNullishOverTernary: 'Prefer using nullish coalescing operator (`??{{ equals }}`) instead of a ternary expression, as it is simpler to read.',
|
||||||
suggestNullish: 'Fix to nullish coalescing operator (`??{{ equals }}`).',
|
suggestNullish: 'Fix to nullish coalescing operator (`??{{ equals }}`).',
|
||||||
|
|
@ -258,6 +262,81 @@ exports.default = (0, util_1.createRule)({
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
function getNullishCoalescingParams(node, nonNullishNode, nodesInsideTestExpression, operator) {
|
||||||
|
let nullishCoalescingLeftNode;
|
||||||
|
let hasTruthinessCheck = false;
|
||||||
|
let hasNullCheckWithoutTruthinessCheck = false;
|
||||||
|
let hasUndefinedCheckWithoutTruthinessCheck = false;
|
||||||
|
if (!nodesInsideTestExpression.length) {
|
||||||
|
hasTruthinessCheck = true;
|
||||||
|
nullishCoalescingLeftNode =
|
||||||
|
node.test.type === utils_1.AST_NODE_TYPES.UnaryExpression
|
||||||
|
? node.test.argument
|
||||||
|
: node.test;
|
||||||
|
if (!areNodesSimilarMemberAccess(nullishCoalescingLeftNode, nonNullishNode)) {
|
||||||
|
return { isFixable: false };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// we check that the test only contains null, undefined and the identifier
|
||||||
|
for (const testNode of nodesInsideTestExpression) {
|
||||||
|
if ((0, util_1.isNullLiteral)(testNode)) {
|
||||||
|
hasNullCheckWithoutTruthinessCheck = true;
|
||||||
|
}
|
||||||
|
else if ((0, util_1.isUndefinedIdentifier)(testNode)) {
|
||||||
|
hasUndefinedCheckWithoutTruthinessCheck = true;
|
||||||
|
}
|
||||||
|
else if (areNodesSimilarMemberAccess(testNode, nonNullishNode)) {
|
||||||
|
// Only consider the first expression in a multi-part nullish check,
|
||||||
|
// as subsequent expressions might not require all the optional chaining operators.
|
||||||
|
// For example: a?.b?.c !== undefined && a.b.c !== null ? a.b.c : 'foo';
|
||||||
|
// This works because `node.test` is always evaluated first in the loop
|
||||||
|
// and has the same or more necessary optional chaining operators
|
||||||
|
// than `node.alternate` or `node.consequent`.
|
||||||
|
nullishCoalescingLeftNode ??= testNode;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return { isFixable: false };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!nullishCoalescingLeftNode) {
|
||||||
|
return { isFixable: false };
|
||||||
|
}
|
||||||
|
const isFixable = (() => {
|
||||||
|
if (hasTruthinessCheck) {
|
||||||
|
return isTruthinessCheckEligibleForPreferNullish({
|
||||||
|
node,
|
||||||
|
testNode: nullishCoalescingLeftNode,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// it is fixable if we check for both null and undefined, or not if neither
|
||||||
|
if (hasUndefinedCheckWithoutTruthinessCheck ===
|
||||||
|
hasNullCheckWithoutTruthinessCheck) {
|
||||||
|
return hasUndefinedCheckWithoutTruthinessCheck;
|
||||||
|
}
|
||||||
|
// it is fixable if we loosely check for either null or undefined
|
||||||
|
if (['==', '!='].includes(operator)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
const type = parserServices.getTypeAtLocation(nullishCoalescingLeftNode);
|
||||||
|
const flags = (0, util_1.getTypeFlags)(type);
|
||||||
|
if (flags & (ts.TypeFlags.Any | ts.TypeFlags.Unknown)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
const hasNullType = (flags & ts.TypeFlags.Null) !== 0;
|
||||||
|
// it is fixable if we check for undefined and the type is not nullable
|
||||||
|
if (hasUndefinedCheckWithoutTruthinessCheck && !hasNullType) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
const hasUndefinedType = (flags & ts.TypeFlags.Undefined) !== 0;
|
||||||
|
// it is fixable if we check for null and the type can't be undefined
|
||||||
|
return hasNullCheckWithoutTruthinessCheck && !hasUndefinedType;
|
||||||
|
})();
|
||||||
|
return isFixable
|
||||||
|
? { isFixable: true, nullishCoalescingLeftNode }
|
||||||
|
: { isFixable: false };
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
'AssignmentExpression[operator = "||="]'(node) {
|
'AssignmentExpression[operator = "||="]'(node) {
|
||||||
checkAndFixWithPreferNullishOverOr(node, 'assignment', '=');
|
checkAndFixWithPreferNullishOverOr(node, 'assignment', '=');
|
||||||
|
|
@ -266,134 +345,12 @@ exports.default = (0, util_1.createRule)({
|
||||||
if (ignoreTernaryTests) {
|
if (ignoreTernaryTests) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let operator;
|
const { nodesInsideTestExpression, operator } = getOperatorAndNodesInsideTestExpression(node);
|
||||||
let nodesInsideTestExpression = [];
|
if (operator == null) {
|
||||||
if (node.test.type === utils_1.AST_NODE_TYPES.BinaryExpression) {
|
|
||||||
nodesInsideTestExpression = [node.test.left, node.test.right];
|
|
||||||
if (node.test.operator === '==' ||
|
|
||||||
node.test.operator === '!=' ||
|
|
||||||
node.test.operator === '===' ||
|
|
||||||
node.test.operator === '!==') {
|
|
||||||
operator = node.test.operator;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (node.test.type === utils_1.AST_NODE_TYPES.LogicalExpression &&
|
|
||||||
node.test.left.type === utils_1.AST_NODE_TYPES.BinaryExpression &&
|
|
||||||
node.test.right.type === utils_1.AST_NODE_TYPES.BinaryExpression) {
|
|
||||||
nodesInsideTestExpression = [
|
|
||||||
node.test.left.left,
|
|
||||||
node.test.left.right,
|
|
||||||
node.test.right.left,
|
|
||||||
node.test.right.right,
|
|
||||||
];
|
|
||||||
if (['||', '||='].includes(node.test.operator)) {
|
|
||||||
if (node.test.left.operator === '===' &&
|
|
||||||
node.test.right.operator === '===') {
|
|
||||||
operator = '===';
|
|
||||||
}
|
|
||||||
else if (((node.test.left.operator === '===' ||
|
|
||||||
node.test.right.operator === '===') &&
|
|
||||||
(node.test.left.operator === '==' ||
|
|
||||||
node.test.right.operator === '==')) ||
|
|
||||||
(node.test.left.operator === '==' &&
|
|
||||||
node.test.right.operator === '==')) {
|
|
||||||
operator = '==';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (node.test.operator === '&&') {
|
|
||||||
if (node.test.left.operator === '!==' &&
|
|
||||||
node.test.right.operator === '!==') {
|
|
||||||
operator = '!==';
|
|
||||||
}
|
|
||||||
else if (((node.test.left.operator === '!==' ||
|
|
||||||
node.test.right.operator === '!==') &&
|
|
||||||
(node.test.left.operator === '!=' ||
|
|
||||||
node.test.right.operator === '!=')) ||
|
|
||||||
(node.test.left.operator === '!=' &&
|
|
||||||
node.test.right.operator === '!=')) {
|
|
||||||
operator = '!=';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let nullishCoalescingLeftNode;
|
|
||||||
let hasTruthinessCheck = false;
|
|
||||||
let hasNullCheckWithoutTruthinessCheck = false;
|
|
||||||
let hasUndefinedCheckWithoutTruthinessCheck = false;
|
|
||||||
if (!operator) {
|
|
||||||
let testNode;
|
|
||||||
hasTruthinessCheck = true;
|
|
||||||
if (isIdentifierOrMemberOrChainExpression(node.test)) {
|
|
||||||
testNode = node.test;
|
|
||||||
}
|
|
||||||
else if (node.test.type === utils_1.AST_NODE_TYPES.UnaryExpression &&
|
|
||||||
isIdentifierOrMemberOrChainExpression(node.test.argument) &&
|
|
||||||
node.test.operator === '!') {
|
|
||||||
testNode = node.test.argument;
|
|
||||||
operator = '!';
|
|
||||||
}
|
|
||||||
if (testNode &&
|
|
||||||
areNodesSimilarMemberAccess(testNode, getBranchNodes(node, operator).nonNullishBranch)) {
|
|
||||||
nullishCoalescingLeftNode = testNode;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
// we check that the test only contains null, undefined and the identifier
|
|
||||||
for (const testNode of nodesInsideTestExpression) {
|
|
||||||
if ((0, util_1.isNullLiteral)(testNode)) {
|
|
||||||
hasNullCheckWithoutTruthinessCheck = true;
|
|
||||||
}
|
|
||||||
else if ((0, util_1.isUndefinedIdentifier)(testNode)) {
|
|
||||||
hasUndefinedCheckWithoutTruthinessCheck = true;
|
|
||||||
}
|
|
||||||
else if (areNodesSimilarMemberAccess(testNode, getBranchNodes(node, operator).nonNullishBranch)) {
|
|
||||||
// Only consider the first expression in a multi-part nullish check,
|
|
||||||
// as subsequent expressions might not require all the optional chaining operators.
|
|
||||||
// For example: a?.b?.c !== undefined && a.b.c !== null ? a.b.c : 'foo';
|
|
||||||
// This works because `node.test` is always evaluated first in the loop
|
|
||||||
// and has the same or more necessary optional chaining operators
|
|
||||||
// than `node.alternate` or `node.consequent`.
|
|
||||||
nullishCoalescingLeftNode ??= testNode;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!nullishCoalescingLeftNode) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const isFixableWithPreferNullishOverTernary = (() => {
|
const nullishCoalescingParams = getNullishCoalescingParams(node, getBranchNodes(node, operator).nonNullishBranch, nodesInsideTestExpression, operator);
|
||||||
// x ? x : y and !x ? y : x patterns
|
if (nullishCoalescingParams.isFixable) {
|
||||||
if (hasTruthinessCheck) {
|
|
||||||
return isTruthinessCheckEligibleForPreferNullish({
|
|
||||||
node,
|
|
||||||
testNode: nullishCoalescingLeftNode,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
// it is fixable if we check for both null and undefined, or not if neither
|
|
||||||
if (hasUndefinedCheckWithoutTruthinessCheck ===
|
|
||||||
hasNullCheckWithoutTruthinessCheck) {
|
|
||||||
return hasUndefinedCheckWithoutTruthinessCheck;
|
|
||||||
}
|
|
||||||
// it is fixable if we loosely check for either null or undefined
|
|
||||||
if (operator === '==' || operator === '!=') {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
const type = parserServices.getTypeAtLocation(nullishCoalescingLeftNode);
|
|
||||||
const flags = (0, util_1.getTypeFlags)(type);
|
|
||||||
if (flags & (ts.TypeFlags.Any | ts.TypeFlags.Unknown)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
const hasNullType = (flags & ts.TypeFlags.Null) !== 0;
|
|
||||||
// it is fixable if we check for undefined and the type is not nullable
|
|
||||||
if (hasUndefinedCheckWithoutTruthinessCheck && !hasNullType) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
const hasUndefinedType = (flags & ts.TypeFlags.Undefined) !== 0;
|
|
||||||
// it is fixable if we check for null and the type can't be undefined
|
|
||||||
return hasNullCheckWithoutTruthinessCheck && !hasUndefinedType;
|
|
||||||
})();
|
|
||||||
if (isFixableWithPreferNullishOverTernary) {
|
|
||||||
context.report({
|
context.report({
|
||||||
node,
|
node,
|
||||||
messageId: 'preferNullishOverTernary',
|
messageId: 'preferNullishOverTernary',
|
||||||
|
|
@ -404,7 +361,63 @@ exports.default = (0, util_1.createRule)({
|
||||||
messageId: 'suggestNullish',
|
messageId: 'suggestNullish',
|
||||||
data: { equals: '' },
|
data: { equals: '' },
|
||||||
fix(fixer) {
|
fix(fixer) {
|
||||||
return fixer.replaceText(node, `${(0, util_1.getTextWithParentheses)(context.sourceCode, nullishCoalescingLeftNode)} ?? ${(0, util_1.getTextWithParentheses)(context.sourceCode, getBranchNodes(node, operator).nullishBranch)}`);
|
return fixer.replaceText(node, `${(0, util_1.getTextWithParentheses)(context.sourceCode, nullishCoalescingParams.nullishCoalescingLeftNode)} ?? ${(0, util_1.getTextWithParentheses)(context.sourceCode, getBranchNodes(node, operator).nullishBranch)}`);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
IfStatement(node) {
|
||||||
|
if (node.alternate != null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
let assignmentExpression;
|
||||||
|
if (node.consequent.type === utils_1.AST_NODE_TYPES.BlockStatement &&
|
||||||
|
node.consequent.body.length === 1 &&
|
||||||
|
node.consequent.body[0].type === utils_1.AST_NODE_TYPES.ExpressionStatement) {
|
||||||
|
assignmentExpression = node.consequent.body[0].expression;
|
||||||
|
}
|
||||||
|
else if (node.consequent.type === utils_1.AST_NODE_TYPES.ExpressionStatement) {
|
||||||
|
assignmentExpression = node.consequent.expression;
|
||||||
|
}
|
||||||
|
if (!assignmentExpression ||
|
||||||
|
assignmentExpression.type !== utils_1.AST_NODE_TYPES.AssignmentExpression ||
|
||||||
|
!isMemberAccessLike(assignmentExpression.left)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const nullishCoalescingLeftNode = assignmentExpression.left;
|
||||||
|
const nullishCoalescingRightNode = assignmentExpression.right;
|
||||||
|
const { nodesInsideTestExpression, operator } = getOperatorAndNodesInsideTestExpression(node);
|
||||||
|
if (operator == null || !['!', '==', '==='].includes(operator)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const nullishCoalescingParams = getNullishCoalescingParams(node, nullishCoalescingLeftNode, nodesInsideTestExpression, operator);
|
||||||
|
if (nullishCoalescingParams.isFixable) {
|
||||||
|
// Handle comments
|
||||||
|
const isConsequentNodeBlockStatement = node.consequent.type === utils_1.AST_NODE_TYPES.BlockStatement;
|
||||||
|
const commentsBefore = formatComments(context.sourceCode.getCommentsBefore(assignmentExpression), isConsequentNodeBlockStatement ? '\n' : ' ');
|
||||||
|
const commentsAfter = isConsequentNodeBlockStatement
|
||||||
|
? formatComments(context.sourceCode.getCommentsAfter(assignmentExpression.parent), '\n')
|
||||||
|
: '';
|
||||||
|
context.report({
|
||||||
|
node,
|
||||||
|
messageId: 'preferNullishOverAssignment',
|
||||||
|
data: { equals: '=' },
|
||||||
|
suggest: [
|
||||||
|
{
|
||||||
|
messageId: 'suggestNullish',
|
||||||
|
data: { equals: '=' },
|
||||||
|
fix(fixer) {
|
||||||
|
const fixes = [];
|
||||||
|
if (commentsBefore) {
|
||||||
|
fixes.push(fixer.insertTextBefore(node, commentsBefore));
|
||||||
|
}
|
||||||
|
fixes.push(fixer.replaceText(node, `${(0, util_1.getTextWithParentheses)(context.sourceCode, nullishCoalescingLeftNode)} ??= ${(0, util_1.getTextWithParentheses)(context.sourceCode, nullishCoalescingRightNode)};`));
|
||||||
|
if (commentsAfter) {
|
||||||
|
fixes.push(fixer.insertTextAfter(node, ` ${commentsAfter.slice(0, -1)}`));
|
||||||
|
}
|
||||||
|
return fixes;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
@ -512,8 +525,21 @@ function isMixedLogicalExpression(node) {
|
||||||
function areNodesSimilarMemberAccess(a, b) {
|
function areNodesSimilarMemberAccess(a, b) {
|
||||||
if (a.type === utils_1.AST_NODE_TYPES.MemberExpression &&
|
if (a.type === utils_1.AST_NODE_TYPES.MemberExpression &&
|
||||||
b.type === utils_1.AST_NODE_TYPES.MemberExpression) {
|
b.type === utils_1.AST_NODE_TYPES.MemberExpression) {
|
||||||
return ((0, util_1.isNodeEqual)(a.property, b.property) &&
|
if (!areNodesSimilarMemberAccess(a.object, b.object)) {
|
||||||
areNodesSimilarMemberAccess(a.object, b.object));
|
return false;
|
||||||
|
}
|
||||||
|
if (a.computed === b.computed) {
|
||||||
|
return (0, util_1.isNodeEqual)(a.property, b.property);
|
||||||
|
}
|
||||||
|
if (a.property.type === utils_1.AST_NODE_TYPES.Literal &&
|
||||||
|
b.property.type === utils_1.AST_NODE_TYPES.Identifier) {
|
||||||
|
return a.property.value === b.property.name;
|
||||||
|
}
|
||||||
|
if (a.property.type === utils_1.AST_NODE_TYPES.Identifier &&
|
||||||
|
b.property.type === utils_1.AST_NODE_TYPES.Literal) {
|
||||||
|
return a.property.name === b.property.value;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
if (a.type === utils_1.AST_NODE_TYPES.ChainExpression ||
|
if (a.type === utils_1.AST_NODE_TYPES.ChainExpression ||
|
||||||
b.type === utils_1.AST_NODE_TYPES.ChainExpression) {
|
b.type === utils_1.AST_NODE_TYPES.ChainExpression) {
|
||||||
|
|
@ -527,8 +553,82 @@ function areNodesSimilarMemberAccess(a, b) {
|
||||||
* - the "nullish branch" is the branch when test node is nullish
|
* - the "nullish branch" is the branch when test node is nullish
|
||||||
*/
|
*/
|
||||||
function getBranchNodes(node, operator) {
|
function getBranchNodes(node, operator) {
|
||||||
if (!operator || ['!=', '!=='].includes(operator)) {
|
if (['', '!=', '!=='].includes(operator)) {
|
||||||
return { nonNullishBranch: node.consequent, nullishBranch: node.alternate };
|
return { nonNullishBranch: node.consequent, nullishBranch: node.alternate };
|
||||||
}
|
}
|
||||||
return { nonNullishBranch: node.alternate, nullishBranch: node.consequent };
|
return { nonNullishBranch: node.alternate, nullishBranch: node.consequent };
|
||||||
}
|
}
|
||||||
|
function getOperatorAndNodesInsideTestExpression(node) {
|
||||||
|
let operator = null;
|
||||||
|
let nodesInsideTestExpression = [];
|
||||||
|
if (isMemberAccessLike(node.test) ||
|
||||||
|
node.test.type === utils_1.AST_NODE_TYPES.UnaryExpression) {
|
||||||
|
operator = getNonBinaryNodeOperator(node.test);
|
||||||
|
}
|
||||||
|
else if (node.test.type === utils_1.AST_NODE_TYPES.BinaryExpression) {
|
||||||
|
nodesInsideTestExpression = [node.test.left, node.test.right];
|
||||||
|
if (node.test.operator === '==' ||
|
||||||
|
node.test.operator === '!=' ||
|
||||||
|
node.test.operator === '===' ||
|
||||||
|
node.test.operator === '!==') {
|
||||||
|
operator = node.test.operator;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (node.test.type === utils_1.AST_NODE_TYPES.LogicalExpression &&
|
||||||
|
node.test.left.type === utils_1.AST_NODE_TYPES.BinaryExpression &&
|
||||||
|
node.test.right.type === utils_1.AST_NODE_TYPES.BinaryExpression) {
|
||||||
|
if (isNodeNullishComparison(node.test.left) ||
|
||||||
|
isNodeNullishComparison(node.test.right)) {
|
||||||
|
return { nodesInsideTestExpression, operator };
|
||||||
|
}
|
||||||
|
nodesInsideTestExpression = [
|
||||||
|
node.test.left.left,
|
||||||
|
node.test.left.right,
|
||||||
|
node.test.right.left,
|
||||||
|
node.test.right.right,
|
||||||
|
];
|
||||||
|
if (['||', '||='].includes(node.test.operator)) {
|
||||||
|
if (node.test.left.operator === '===' &&
|
||||||
|
node.test.right.operator === '===') {
|
||||||
|
operator = '===';
|
||||||
|
}
|
||||||
|
else if (((node.test.left.operator === '===' ||
|
||||||
|
node.test.right.operator === '===') &&
|
||||||
|
(node.test.left.operator === '==' ||
|
||||||
|
node.test.right.operator === '==')) ||
|
||||||
|
(node.test.left.operator === '==' && node.test.right.operator === '==')) {
|
||||||
|
operator = '==';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (node.test.operator === '&&') {
|
||||||
|
if (node.test.left.operator === '!==' &&
|
||||||
|
node.test.right.operator === '!==') {
|
||||||
|
operator = '!==';
|
||||||
|
}
|
||||||
|
else if (((node.test.left.operator === '!==' ||
|
||||||
|
node.test.right.operator === '!==') &&
|
||||||
|
(node.test.left.operator === '!=' ||
|
||||||
|
node.test.right.operator === '!=')) ||
|
||||||
|
(node.test.left.operator === '!=' && node.test.right.operator === '!=')) {
|
||||||
|
operator = '!=';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return { nodesInsideTestExpression, operator };
|
||||||
|
}
|
||||||
|
function getNonBinaryNodeOperator(node) {
|
||||||
|
if (node.type !== utils_1.AST_NODE_TYPES.UnaryExpression) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
if (isMemberAccessLike(node.argument) && node.operator === '!') {
|
||||||
|
return '!';
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
function formatComments(comments, separator) {
|
||||||
|
return comments
|
||||||
|
.map(({ type, value }) => type === utils_1.AST_TOKEN_TYPES.Line
|
||||||
|
? `//${value}${separator}`
|
||||||
|
: `/*${value}*/${separator}`)
|
||||||
|
.join('');
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"prefer-ts-expect-error.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-ts-expect-error.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,UAAU,GAAG,0BAA0B,CAAC;;AAEpD,wBA0EG"}
|
{"version":3,"file":"prefer-ts-expect-error.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-ts-expect-error.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,UAAU,GAAG,0BAA0B,CAAC;;AAEpD,wBAqFG"}
|
||||||
13
node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js
generated
vendored
13
node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-ts-expect-error.js
generated
vendored
|
|
@ -6,7 +6,18 @@ exports.default = (0, util_1.createRule)({
|
||||||
name: 'prefer-ts-expect-error',
|
name: 'prefer-ts-expect-error',
|
||||||
meta: {
|
meta: {
|
||||||
type: 'problem',
|
type: 'problem',
|
||||||
deprecated: true,
|
deprecated: {
|
||||||
|
deprecatedSince: '7.11.0',
|
||||||
|
replacedBy: [
|
||||||
|
{
|
||||||
|
rule: {
|
||||||
|
name: '@typescript-eslint/ban-ts-comment',
|
||||||
|
url: 'https://typescript-eslint.io/rules/ban-ts-comment',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
url: 'https://github.com/typescript-eslint/typescript-eslint/pull/9081',
|
||||||
|
},
|
||||||
docs: {
|
docs: {
|
||||||
description: 'Enforce using `@ts-expect-error` over `@ts-ignore`',
|
description: 'Enforce using `@ts-expect-error` over `@ts-ignore`',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"sort-type-constituents.d.ts","sourceRoot":"","sources":["../../src/rules/sort-type-constituents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AA6GnE,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;QAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;KACvB;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,gBAAgB,GAAG,YAAY,CAAC;;AAEvE,wBAiLG"}
|
{"version":3,"file":"sort-type-constituents.d.ts","sourceRoot":"","sources":["../../src/rules/sort-type-constituents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AA6GnE,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;QAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;KACvB;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,gBAAgB,GAAG,YAAY,CAAC;;AAEvE,wBA0MG"}
|
||||||
27
node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js
generated
vendored
27
node_modules/@typescript-eslint/eslint-plugin/dist/rules/sort-type-constituents.js
generated
vendored
|
|
@ -94,7 +94,32 @@ exports.default = (0, util_1.createRule)({
|
||||||
name: 'sort-type-constituents',
|
name: 'sort-type-constituents',
|
||||||
meta: {
|
meta: {
|
||||||
type: 'suggestion',
|
type: 'suggestion',
|
||||||
deprecated: true,
|
deprecated: {
|
||||||
|
deprecatedSince: '7.13.0',
|
||||||
|
replacedBy: [
|
||||||
|
{
|
||||||
|
plugin: {
|
||||||
|
name: 'eslint-plugin-perfectionist',
|
||||||
|
url: 'https://perfectionist.dev',
|
||||||
|
},
|
||||||
|
rule: {
|
||||||
|
name: 'perfectionist/sort-intersection-types',
|
||||||
|
url: 'https://perfectionist.dev/rules/sort-intersection-types',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
plugin: {
|
||||||
|
name: 'eslint-plugin-perfectionist',
|
||||||
|
url: 'https://perfectionist.dev',
|
||||||
|
},
|
||||||
|
rule: {
|
||||||
|
name: 'perfectionist/sort-union-types',
|
||||||
|
url: 'https://perfectionist.dev/rules/sort-union-types',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
url: 'https://github.com/typescript-eslint/typescript-eslint/pull/9253',
|
||||||
|
},
|
||||||
docs: {
|
docs: {
|
||||||
description: 'Enforce constituents of a type union/intersection to be sorted alphabetically',
|
description: 'Enforce constituents of a type union/intersection to be sorted alphabetically',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
79
node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-condition.mdx
generated
vendored
79
node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-condition.mdx
generated
vendored
|
|
@ -218,26 +218,75 @@ You should be using `strictNullChecks` to ensure complete type-safety in your co
|
||||||
|
|
||||||
If for some reason you cannot turn on `strictNullChecks`, but still want to use this rule - you can use this option to allow it - but know that the behavior of this rule is _undefined_ with the compiler option turned off. We will not accept bug reports if you are using this option.
|
If for some reason you cannot turn on `strictNullChecks`, but still want to use this rule - you can use this option to allow it - but know that the behavior of this rule is _undefined_ with the compiler option turned off. We will not accept bug reports if you are using this option.
|
||||||
|
|
||||||
|
## Limitations
|
||||||
|
|
||||||
|
This rule is powered by TypeScript types, therefore, if the types do not match match the runtime behavior, the rule may report inaccurately.
|
||||||
|
This can happen in several commonplace scenarios.
|
||||||
|
|
||||||
|
### Possibly-undefined indexed access
|
||||||
|
|
||||||
|
By default, TypeScript optimistically assumes that indexed access will always return a value.
|
||||||
|
This means that cases like the following will be erroneously flagged as unnecessary conditions:
|
||||||
|
|
||||||
|
```ts showPlaygroundButton
|
||||||
|
const array: string[] = [];
|
||||||
|
const firstElement = array[0];
|
||||||
|
// false positive
|
||||||
|
if (firstElement != null) {
|
||||||
|
// ...
|
||||||
|
}
|
||||||
|
|
||||||
|
const record: Record<string, string> = {};
|
||||||
|
const someValue = record.someKey;
|
||||||
|
// false positive
|
||||||
|
if (someValue != null) {
|
||||||
|
// ...
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
To get pessimistic, but correct, types for these cases, you can use TypeScript's [`noUncheckedIndexedAccess` compiler option](https://www.typescriptlang.org/tsconfig/#noUncheckedIndexedAccess), though this is often unwieldy in real-world usage.
|
||||||
|
Another workaround is to use `array.at(0)` (which is always possibly-undefined) to indicate array access that may be out-of-bounds.
|
||||||
|
Otherwise, a disable comment will often make sense for these kinds of cases.
|
||||||
|
|
||||||
|
### Values modified within function calls
|
||||||
|
|
||||||
|
The following code will be erroneously flagged as unnecessary, even though the condition is modified within the function call.
|
||||||
|
|
||||||
|
```ts showPlaygroundButton
|
||||||
|
let condition = false;
|
||||||
|
|
||||||
|
const f = () => {
|
||||||
|
condition = Math.random() > 0.5;
|
||||||
|
};
|
||||||
|
f();
|
||||||
|
|
||||||
|
if (condition) {
|
||||||
|
// ...
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
This occurs due to limitations of TypeScript's type narrowing.
|
||||||
|
See [microsoft/TypeScript#9998](https://github.com/microsoft/TypeScript/issues/9998) for details.
|
||||||
|
We recommend using a [type assertion](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#type-assertions) in these cases, like so:
|
||||||
|
|
||||||
|
```ts showPlaygroundButton
|
||||||
|
let condition = false as boolean;
|
||||||
|
|
||||||
|
const f = () => {
|
||||||
|
condition = Math.random() > 0.5;
|
||||||
|
};
|
||||||
|
f();
|
||||||
|
|
||||||
|
if (condition) {
|
||||||
|
// ...
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## When Not To Use It
|
## When Not To Use It
|
||||||
|
|
||||||
If your project is not accurately typed, such as if it's in the process of being converted to TypeScript or is susceptible to [trade-offs in control flow analysis](https://github.com/Microsoft/TypeScript/issues/9998), it may be difficult to enable this rule for particularly non-type-safe areas of code.
|
If your project is not accurately typed, such as if it's in the process of being converted to TypeScript or is susceptible to [trade-offs in control flow analysis](https://github.com/Microsoft/TypeScript/issues/9998), it may be difficult to enable this rule for particularly non-type-safe areas of code.
|
||||||
You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule.
|
You might consider using [ESLint disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) for those specific situations instead of completely disabling this rule.
|
||||||
|
|
||||||
This rule has a known edge case of triggering on conditions that were modified within function calls (as side effects).
|
|
||||||
It is due to limitations of TypeScript's type narrowing.
|
|
||||||
See [#9998](https://github.com/microsoft/TypeScript/issues/9998) for details.
|
|
||||||
We recommend using a [type assertion](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#type-assertions) in those cases.
|
|
||||||
|
|
||||||
```ts
|
|
||||||
let condition = false as boolean;
|
|
||||||
|
|
||||||
const f = () => (condition = true);
|
|
||||||
f();
|
|
||||||
|
|
||||||
if (condition) {
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## Related To
|
## Related To
|
||||||
|
|
||||||
- ESLint: [no-constant-condition](https://eslint.org/docs/rules/no-constant-condition) - `no-unnecessary-condition` is essentially a stronger version of `no-constant-condition`, but requires type information.
|
- ESLint: [no-constant-condition](https://eslint.org/docs/rules/no-constant-condition) - `no-unnecessary-condition` is essentially a stronger version of `no-constant-condition`, but requires type information.
|
||||||
|
|
|
||||||
49
node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.mdx
generated
vendored
49
node_modules/@typescript-eslint/eslint-plugin/docs/rules/prefer-nullish-coalescing.mdx
generated
vendored
|
|
@ -17,6 +17,54 @@ This rule reports when you may consider replacing:
|
||||||
- An `||` operator with `??`
|
- An `||` operator with `??`
|
||||||
- An `||=` operator with `??=`
|
- An `||=` operator with `??=`
|
||||||
- Ternary expressions (`?:`) that are equivalent to `||` or `??` with `??`
|
- Ternary expressions (`?:`) that are equivalent to `||` or `??` with `??`
|
||||||
|
- Assignment expressions (`=`) that can be safely replaced by `??=`
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
<Tabs>
|
||||||
|
<TabItem value="❌ Incorrect">
|
||||||
|
|
||||||
|
```ts
|
||||||
|
declare const a: string | null;
|
||||||
|
declare const b: string | null;
|
||||||
|
|
||||||
|
const c = a || b;
|
||||||
|
|
||||||
|
declare let foo: { a: string } | null;
|
||||||
|
declare function makeFoo(): { a: string };
|
||||||
|
|
||||||
|
function lazyInitializeFooByTruthiness() {
|
||||||
|
if (!foo) {
|
||||||
|
foo = makeFoo();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function lazyInitializeFooByNullCheck() {
|
||||||
|
if (foo == null) {
|
||||||
|
foo = makeFoo();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
</TabItem>
|
||||||
|
<TabItem value="✅ Correct">
|
||||||
|
|
||||||
|
```ts
|
||||||
|
declare const a: string | null;
|
||||||
|
declare const b: string | null;
|
||||||
|
|
||||||
|
const c = a ?? b;
|
||||||
|
|
||||||
|
declare let foo: { a: string } | null;
|
||||||
|
declare function makeFoo(): { a: string };
|
||||||
|
|
||||||
|
function lazyInitializeFoo() {
|
||||||
|
foo ??= makeFoo();
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
</TabItem>
|
||||||
|
</Tabs>
|
||||||
|
|
||||||
:::caution
|
:::caution
|
||||||
This rule will not work as expected if [`strictNullChecks`](https://www.typescriptlang.org/tsconfig#strictNullChecks) is not enabled.
|
This rule will not work as expected if [`strictNullChecks`](https://www.typescriptlang.org/tsconfig#strictNullChecks) is not enabled.
|
||||||
|
|
@ -255,3 +303,4 @@ If you are not using TypeScript 3.7 (or greater), then you will not be able to u
|
||||||
|
|
||||||
- [TypeScript 3.7 Release Notes](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html)
|
- [TypeScript 3.7 Release Notes](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html)
|
||||||
- [Nullish Coalescing Operator Proposal](https://github.com/tc39/proposal-nullish-coalescing/)
|
- [Nullish Coalescing Operator Proposal](https://github.com/tc39/proposal-nullish-coalescing/)
|
||||||
|
- [`logical-assignment-operators`](https://eslint.org/docs/latest/rules/logical-assignment-operators)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@typescript-eslint/scope-manager",
|
"name": "@typescript-eslint/scope-manager",
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"description": "TypeScript scope analyser for ESLint",
|
"description": "TypeScript scope analyser for ESLint",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
|
@ -47,12 +47,12 @@
|
||||||
"check-types": "npx nx typecheck"
|
"check-types": "npx nx typecheck"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"@typescript-eslint/visitor-keys": "8.26.1"
|
"@typescript-eslint/visitor-keys": "8.28.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@jest/types": "29.6.3",
|
"@jest/types": "29.6.3",
|
||||||
"@typescript-eslint/typescript-estree": "8.26.1",
|
"@typescript-eslint/typescript-estree": "8.28.0",
|
||||||
"glob": "*",
|
"glob": "*",
|
||||||
"jest": "29.7.0",
|
"jest": "29.7.0",
|
||||||
"jest-specific-snapshot": "*",
|
"jest-specific-snapshot": "*",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@typescript-eslint/types",
|
"name": "@typescript-eslint/types",
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"description": "Types for the TypeScript-ESTree AST spec",
|
"description": "Types for the TypeScript-ESTree AST spec",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EACV,aAAa,EACb,2BAA2B,EAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAoB,MAAM,EAAE,MAAM,aAAa,CAAC;AAmCtE,MAAM,WAAW,gBAAgB;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,kCAAkC,CAAC,EAAE,OAAO,CAAC;CAC9C;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,wBAAwB,GAAG,EAAE,CAAC,sBAAsB,GAC1D,OAAO,CAMT;AAED,MAAM,WAAW,OAAO;IACtB,qBAAqB,EAAE,2BAA2B,CAAC;IACnD,qBAAqB,EAAE,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;CAC7D;AAED,qBAAa,SAAS;;IACpB,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;IACpC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAiB;IACvD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IAC3C,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAiB;IAEvD;;;;;OAKG;gBACS,GAAG,EAAE,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAsZ1D,OAAO,CAAC,qBAAqB;IAsB7B,OAAO,CAAC,oCAAoC;IAe5C;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;IAiC9B,OAAO,CAAC,sBAAsB;IA4C9B;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAIpB;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAItB;;;;;;OAMG;IACH,OAAO,CAAC,qBAAqB;IAsB7B;;;;;OAKG;IACH,OAAO,CAAC,gDAAgD;IAexD;;;;OAIG;IACH,OAAO,CAAC,kDAAkD;IAmB1D;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAgBzB;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;IA8BjB,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,+BAA+B;IAgDvC;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IA8BzB,OAAO,CAAC,sBAAsB;IAoC9B;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAczB;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAwhFnB,OAAO,CAAC,UAAU;IAclB,cAAc,IAAI,QAAQ,CAAC,OAAO;IAIlC;;;;OAIG;IACH,OAAO,CAAC,UAAU;IA0FlB;;;OAGG;IACH,OAAO,CAAC,UAAU;IAgFlB,UAAU,IAAI,OAAO;IAOrB;;OAEG;IACH,OAAO,CAAC,uBAAuB;CAYhC"}
|
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EACV,aAAa,EACb,2BAA2B,EAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAoB,MAAM,EAAE,MAAM,aAAa,CAAC;AAmCtE,MAAM,WAAW,gBAAgB;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,kCAAkC,CAAC,EAAE,OAAO,CAAC;CAC9C;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,wBAAwB,GAAG,EAAE,CAAC,sBAAsB,GAC1D,OAAO,CAMT;AAED,MAAM,WAAW,OAAO;IACtB,qBAAqB,EAAE,2BAA2B,CAAC;IACnD,qBAAqB,EAAE,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;CAC7D;AAED,qBAAa,SAAS;;IACpB,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;IACpC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAiB;IACvD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IAC3C,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAiB;IAEvD;;;;;OAKG;gBACS,GAAG,EAAE,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAsZ1D,OAAO,CAAC,qBAAqB;IAsB7B,OAAO,CAAC,oCAAoC;IAe5C;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;IAiC9B,OAAO,CAAC,sBAAsB;IA4C9B;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAIpB;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAItB;;;;;;OAMG;IACH,OAAO,CAAC,qBAAqB;IAsB7B;;;;;OAKG;IACH,OAAO,CAAC,gDAAgD;IAexD;;;;OAIG;IACH,OAAO,CAAC,kDAAkD;IAmB1D;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAgBzB;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;IA8BjB,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,+BAA+B;IAgDvC;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IA8BzB,OAAO,CAAC,sBAAsB;IAoC9B;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAczB;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAyhFnB,OAAO,CAAC,UAAU;IAclB,cAAc,IAAI,QAAQ,CAAC,OAAO;IAIlC;;;;OAIG;IACH,OAAO,CAAC,UAAU;IA0FlB;;;OAGG;IACH,OAAO,CAAC,UAAU;IAgFlB,UAAU,IAAI,OAAO;IAOrB;;OAEG;IACH,OAAO,CAAC,uBAAuB;CAYhC"}
|
||||||
|
|
@ -1402,6 +1402,7 @@ class Converter {
|
||||||
parameter = this.convertChild(node.name);
|
parameter = this.convertChild(node.name);
|
||||||
result = this.createNode(node, {
|
result = this.createNode(node, {
|
||||||
type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern,
|
type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern,
|
||||||
|
range: [node.name.getStart(this.ast), node.initializer.end],
|
||||||
decorators: [],
|
decorators: [],
|
||||||
left: parameter,
|
left: parameter,
|
||||||
optional: false,
|
optional: false,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@typescript-eslint/typescript-estree",
|
"name": "@typescript-eslint/typescript-estree",
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
|
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
|
@ -55,8 +55,8 @@
|
||||||
"check-types": "npx nx typecheck"
|
"check-types": "npx nx typecheck"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"@typescript-eslint/visitor-keys": "8.26.1",
|
"@typescript-eslint/visitor-keys": "8.28.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"fast-glob": "^3.3.2",
|
"fast-glob": "^3.3.2",
|
||||||
"is-glob": "^4.0.3",
|
"is-glob": "^4.0.3",
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,66 @@ export interface RuleMetaDataDocs {
|
||||||
*/
|
*/
|
||||||
url?: string;
|
url?: string;
|
||||||
}
|
}
|
||||||
|
export interface ExternalSpecifier {
|
||||||
|
/**
|
||||||
|
* Name of the referenced plugin / rule.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* URL pointing to documentation for the plugin / rule.
|
||||||
|
*/
|
||||||
|
url?: string;
|
||||||
|
}
|
||||||
|
export interface ReplacedByInfo {
|
||||||
|
/**
|
||||||
|
* General message presented to the user, e.g. how to replace the rule
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* URL to more information about this replacement in general
|
||||||
|
*/
|
||||||
|
url?: string;
|
||||||
|
/**
|
||||||
|
* Name should be "eslint" if the replacement is an ESLint core rule. Omit
|
||||||
|
* the property if the replacement is in the same plugin.
|
||||||
|
*/
|
||||||
|
plugin?: ExternalSpecifier;
|
||||||
|
/**
|
||||||
|
* Name and documentation of the replacement rule
|
||||||
|
*/
|
||||||
|
rule?: ExternalSpecifier;
|
||||||
|
}
|
||||||
|
export interface DeprecatedInfo {
|
||||||
|
/**
|
||||||
|
* General message presented to the user, e.g. for the key rule why the rule
|
||||||
|
* is deprecated or for info how to replace the rule.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* URL to more information about this deprecation in general.
|
||||||
|
*/
|
||||||
|
url?: string;
|
||||||
|
/**
|
||||||
|
* An empty array explicitly states that there is no replacement.
|
||||||
|
*/
|
||||||
|
replacedBy?: ReplacedByInfo[];
|
||||||
|
/**
|
||||||
|
* The package version since when the rule is deprecated (should use full
|
||||||
|
* semver without a leading "v").
|
||||||
|
*/
|
||||||
|
deprecatedSince?: string;
|
||||||
|
/**
|
||||||
|
* The estimated version when the rule is removed (probably the next major
|
||||||
|
* version). null means the rule is "frozen" (will be available but will not
|
||||||
|
* be changed).
|
||||||
|
*/
|
||||||
|
availableUntil?: string | null;
|
||||||
|
}
|
||||||
export interface RuleMetaData<MessageIds extends string, PluginDocs = unknown, Options extends readonly unknown[] = []> {
|
export interface RuleMetaData<MessageIds extends string, PluginDocs = unknown, Options extends readonly unknown[] = []> {
|
||||||
/**
|
/**
|
||||||
* True if the rule is deprecated, false otherwise
|
* True if the rule is deprecated, false otherwise
|
||||||
*/
|
*/
|
||||||
deprecated?: boolean;
|
deprecated?: boolean | DeprecatedInfo;
|
||||||
/**
|
/**
|
||||||
* Documentation for the rule
|
* Documentation for the rule
|
||||||
*/
|
*/
|
||||||
|
|
@ -45,6 +100,8 @@ export interface RuleMetaData<MessageIds extends string, PluginDocs = unknown, O
|
||||||
messages: Record<MessageIds, string>;
|
messages: Record<MessageIds, string>;
|
||||||
/**
|
/**
|
||||||
* The name of the rule this rule was replaced by, if it was deprecated.
|
* The name of the rule this rule was replaced by, if it was deprecated.
|
||||||
|
*
|
||||||
|
* @deprecated since eslint 9.21.0, in favor of `RuleMetaData#deprecated.replacedBy`
|
||||||
*/
|
*/
|
||||||
replacedBy?: readonly string[];
|
replacedBy?: readonly string[];
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@typescript-eslint/utils",
|
"name": "@typescript-eslint/utils",
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"description": "Utilities for working with TypeScript + ESLint together",
|
"description": "Utilities for working with TypeScript + ESLint together",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
|
@ -65,9 +65,9 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint-community/eslint-utils": "^4.4.0",
|
"@eslint-community/eslint-utils": "^4.4.0",
|
||||||
"@typescript-eslint/scope-manager": "8.26.1",
|
"@typescript-eslint/scope-manager": "8.28.0",
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"@typescript-eslint/typescript-estree": "8.26.1"
|
"@typescript-eslint/typescript-estree": "8.28.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"eslint": "^8.57.0 || ^9.0.0",
|
"eslint": "^8.57.0 || ^9.0.0",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@typescript-eslint/visitor-keys",
|
"name": "@typescript-eslint/visitor-keys",
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"description": "Visitor keys used to help traverse the TypeScript-ESTree AST",
|
"description": "Visitor keys used to help traverse the TypeScript-ESTree AST",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
"check-types": "npx nx typecheck"
|
"check-types": "npx nx typecheck"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"eslint-visitor-keys": "^4.2.0"
|
"eslint-visitor-keys": "^4.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
||||||
4
node_modules/@typescript-eslint/eslint-plugin/node_modules/ts-api-utils/README.md
generated
vendored
4
node_modules/@typescript-eslint/eslint-plugin/node_modules/ts-api-utils/README.md
generated
vendored
|
|
@ -9,7 +9,7 @@
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<!-- prettier-ignore-start -->
|
<!-- prettier-ignore-start -->
|
||||||
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
||||||
<img alt="All Contributors: 8 👪" src="https://img.shields.io/badge/all_contributors-8_👪-21bb42.svg" />
|
<img alt="All Contributors: 10 👪" src="https://img.shields.io/badge/all_contributors-10_👪-21bb42.svg" />
|
||||||
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
||||||
<!-- prettier-ignore-end -->
|
<!-- prettier-ignore-end -->
|
||||||
<a href="https://github.com/JoshuaKGoldberg/ts-api-utils/blob/main/.github/CODE_OF_CONDUCT.md" target="_blank"><img alt="🤝 Code of Conduct: Kept" src="https://img.shields.io/badge/%F0%9F%A4%9D_code_of_conduct-kept-21bb42" /></a>
|
<a href="https://github.com/JoshuaKGoldberg/ts-api-utils/blob/main/.github/CODE_OF_CONDUCT.md" target="_blank"><img alt="🤝 Code of Conduct: Kept" src="https://img.shields.io/badge/%F0%9F%A4%9D_code_of_conduct-kept-21bb42" /></a>
|
||||||
|
|
@ -67,6 +67,8 @@ Many thanks to [@ajafff](https://github.com/ajafff) for creating the original [`
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/RebeccaStevens"><img src="https://avatars.githubusercontent.com/u/7224206?v=4?s=100" width="100px;" alt="Rebecca Stevens"/><br /><sub><b>Rebecca Stevens</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/ts-api-utils/issues?q=author%3ARebeccaStevens" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Code">💻</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Documentation">📖</a> <a href="#projectManagement-RebeccaStevens" title="Project Management">📆</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Tests">⚠️</a> <a href="#tool-RebeccaStevens" title="Tools">🔧</a> <a href="#infra-RebeccaStevens" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-RebeccaStevens" title="Maintenance">🚧</a> <a href="#ideas-RebeccaStevens" title="Ideas, Planning, & Feedback">🤔</a></td>
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/RebeccaStevens"><img src="https://avatars.githubusercontent.com/u/7224206?v=4?s=100" width="100px;" alt="Rebecca Stevens"/><br /><sub><b>Rebecca Stevens</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/ts-api-utils/issues?q=author%3ARebeccaStevens" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Code">💻</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Documentation">📖</a> <a href="#projectManagement-RebeccaStevens" title="Project Management">📆</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Tests">⚠️</a> <a href="#tool-RebeccaStevens" title="Tools">🔧</a> <a href="#infra-RebeccaStevens" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-RebeccaStevens" title="Maintenance">🚧</a> <a href="#ideas-RebeccaStevens" title="Ideas, Planning, & Feedback">🤔</a></td>
|
||||||
|
<td align="center" valign="top" width="14.28%"><a href="https://twitter.com/ronenamiel"><img src="https://avatars.githubusercontent.com/u/5484230?v=4?s=100" width="100px;" alt="Ronen Amiel"/><br /><sub><b>Ronen Amiel</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=ronami" title="Tests">⚠️</a></td>
|
||||||
|
<td align="center" valign="top" width="14.28%"><a href="https://www.fiskercheung.com/"><img src="https://avatars.githubusercontent.com/u/172584?v=4?s=100" width="100px;" alt="fisker Cheung"/><br /><sub><b>fisker Cheung</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=fisker" title="Code">💻</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
42
node_modules/@typescript-eslint/eslint-plugin/node_modules/ts-api-utils/lib/index.cjs
generated
vendored
42
node_modules/@typescript-eslint/eslint-plugin/node_modules/ts-api-utils/lib/index.cjs
generated
vendored
|
|
@ -1024,9 +1024,10 @@ function isInConstContext(node, typeChecker) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// src/types/utilities.ts
|
// src/types/utilities.ts
|
||||||
function intersectionTypeParts(type) {
|
function intersectionConstituents(type) {
|
||||||
return isIntersectionType(type) ? type.types : [type];
|
return isIntersectionType(type) ? type.types : [type];
|
||||||
}
|
}
|
||||||
|
var intersectionTypeParts = intersectionConstituents;
|
||||||
function isFalsyType(type) {
|
function isFalsyType(type) {
|
||||||
if (isTypeFlagSet(
|
if (isTypeFlagSet(
|
||||||
type,
|
type,
|
||||||
|
|
@ -1046,7 +1047,7 @@ function isFalsyType(type) {
|
||||||
function isPropertyReadonlyInType(type, name, typeChecker) {
|
function isPropertyReadonlyInType(type, name, typeChecker) {
|
||||||
let seenProperty = false;
|
let seenProperty = false;
|
||||||
let seenReadonlySignature = false;
|
let seenReadonlySignature = false;
|
||||||
for (const subType of unionTypeParts(type)) {
|
for (const subType of unionConstituents(type)) {
|
||||||
if (getPropertyOfType(subType, name) === undefined) {
|
if (getPropertyOfType(subType, name) === undefined) {
|
||||||
const index = (isNumericPropertyName(name) ? typeChecker.getIndexInfoOfType(subType, ts9__default.default.IndexKind.Number) : undefined) ?? typeChecker.getIndexInfoOfType(subType, ts9__default.default.IndexKind.String);
|
const index = (isNumericPropertyName(name) ? typeChecker.getIndexInfoOfType(subType, ts9__default.default.IndexKind.Number) : undefined) ?? typeChecker.getIndexInfoOfType(subType, ts9__default.default.IndexKind.String);
|
||||||
if (index?.isReadonly) {
|
if (index?.isReadonly) {
|
||||||
|
|
@ -1064,14 +1065,16 @@ function isPropertyReadonlyInType(type, name, typeChecker) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
function isThenableType(typeChecker, node, type = typeChecker.getTypeAtLocation(node)) {
|
function isThenableType(typeChecker, node, type = typeChecker.getTypeAtLocation(node)) {
|
||||||
for (const typePart of unionTypeParts(typeChecker.getApparentType(type))) {
|
for (const constituent of unionConstituents(
|
||||||
const then = typePart.getProperty("then");
|
typeChecker.getApparentType(type)
|
||||||
|
)) {
|
||||||
|
const then = constituent.getProperty("then");
|
||||||
if (then === undefined) {
|
if (then === undefined) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const thenType = typeChecker.getTypeOfSymbolAtLocation(then, node);
|
const thenType = typeChecker.getTypeOfSymbolAtLocation(then, node);
|
||||||
for (const subTypePart of unionTypeParts(thenType)) {
|
for (const subConstituent of unionConstituents(thenType)) {
|
||||||
for (const signature of subTypePart.getCallSignatures()) {
|
for (const signature of subConstituent.getCallSignatures()) {
|
||||||
if (signature.parameters.length !== 0 && isCallback(typeChecker, signature.parameters[0], node)) {
|
if (signature.parameters.length !== 0 && isCallback(typeChecker, signature.parameters[0], node)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -1085,6 +1088,9 @@ function symbolHasReadonlyDeclaration(symbol, typeChecker) {
|
||||||
(node) => isModifierFlagSet(node, ts9__default.default.ModifierFlags.Readonly) || ts9__default.default.isVariableDeclaration(node) && isNodeFlagSet(node.parent, ts9__default.default.NodeFlags.Const) || ts9__default.default.isCallExpression(node) && isReadonlyAssignmentDeclaration(node, typeChecker) || ts9__default.default.isEnumMember(node) || (ts9__default.default.isPropertyAssignment(node) || ts9__default.default.isShorthandPropertyAssignment(node)) && isInConstContext(node, typeChecker)
|
(node) => isModifierFlagSet(node, ts9__default.default.ModifierFlags.Readonly) || ts9__default.default.isVariableDeclaration(node) && isNodeFlagSet(node.parent, ts9__default.default.NodeFlags.Const) || ts9__default.default.isCallExpression(node) && isReadonlyAssignmentDeclaration(node, typeChecker) || ts9__default.default.isEnumMember(node) || (ts9__default.default.isPropertyAssignment(node) || ts9__default.default.isShorthandPropertyAssignment(node)) && isInConstContext(node, typeChecker)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
function typeConstituents(type) {
|
||||||
|
return isIntersectionType(type) || isUnionType(type) ? type.types : [type];
|
||||||
|
}
|
||||||
function typeIsLiteral(type) {
|
function typeIsLiteral(type) {
|
||||||
if (isTsVersionAtLeast(5, 0)) {
|
if (isTsVersionAtLeast(5, 0)) {
|
||||||
return type.isLiteral();
|
return type.isLiteral();
|
||||||
|
|
@ -1095,12 +1101,11 @@ function typeIsLiteral(type) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function typeParts(type) {
|
var typeParts = typeConstituents;
|
||||||
return isIntersectionType(type) || isUnionType(type) ? type.types : [type];
|
function unionConstituents(type) {
|
||||||
}
|
|
||||||
function unionTypeParts(type) {
|
|
||||||
return isUnionType(type) ? type.types : [type];
|
return isUnionType(type) ? type.types : [type];
|
||||||
}
|
}
|
||||||
|
var unionTypeParts = unionConstituents;
|
||||||
function isCallback(typeChecker, param, node) {
|
function isCallback(typeChecker, param, node) {
|
||||||
let type = typeChecker.getApparentType(
|
let type = typeChecker.getApparentType(
|
||||||
typeChecker.getTypeOfSymbolAtLocation(param, node)
|
typeChecker.getTypeOfSymbolAtLocation(param, node)
|
||||||
|
|
@ -1111,7 +1116,7 @@ function isCallback(typeChecker, param, node) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const subType of unionTypeParts(type)) {
|
for (const subType of unionConstituents(type)) {
|
||||||
if (subType.getCallSignatures().length !== 0) {
|
if (subType.getCallSignatures().length !== 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -1145,17 +1150,17 @@ function isReadonlyPropertyFromMappedType(type, name, typeChecker) {
|
||||||
return modifiersType && isPropertyReadonlyInType(modifiersType, name, typeChecker);
|
return modifiersType && isPropertyReadonlyInType(modifiersType, name, typeChecker);
|
||||||
}
|
}
|
||||||
function isReadonlyPropertyIntersection(type, name, typeChecker) {
|
function isReadonlyPropertyIntersection(type, name, typeChecker) {
|
||||||
const typeParts2 = isIntersectionType(type) ? type.types : [type];
|
const constituents = intersectionConstituents(type);
|
||||||
return typeParts2.some((subType) => {
|
return constituents.some((constituent) => {
|
||||||
const prop = getPropertyOfType(subType, name);
|
const prop = getPropertyOfType(constituent, name);
|
||||||
if (prop === undefined) {
|
if (prop === undefined) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (prop.flags & ts9__default.default.SymbolFlags.Transient) {
|
if (prop.flags & ts9__default.default.SymbolFlags.Transient) {
|
||||||
if (/^(?:[1-9]\d*|0)$/.test(name) && isTupleTypeReference(subType)) {
|
if (/^(?:[1-9]\d*|0)$/.test(name) && isTupleTypeReference(constituent)) {
|
||||||
return subType.target.readonly;
|
return constituent.target.readonly;
|
||||||
}
|
}
|
||||||
switch (isReadonlyPropertyFromMappedType(subType, name, typeChecker)) {
|
switch (isReadonlyPropertyFromMappedType(constituent, name, typeChecker)) {
|
||||||
case false:
|
case false:
|
||||||
return false;
|
return false;
|
||||||
case true:
|
case true:
|
||||||
|
|
@ -2099,6 +2104,7 @@ exports.hasModifiers = hasModifiers;
|
||||||
exports.hasType = hasType;
|
exports.hasType = hasType;
|
||||||
exports.hasTypeArguments = hasTypeArguments;
|
exports.hasTypeArguments = hasTypeArguments;
|
||||||
exports.includesModifier = includesModifier;
|
exports.includesModifier = includesModifier;
|
||||||
|
exports.intersectionConstituents = intersectionConstituents;
|
||||||
exports.intersectionTypeParts = intersectionTypeParts;
|
exports.intersectionTypeParts = intersectionTypeParts;
|
||||||
exports.isAbstractKeyword = isAbstractKeyword;
|
exports.isAbstractKeyword = isAbstractKeyword;
|
||||||
exports.isAccessExpression = isAccessExpression;
|
exports.isAccessExpression = isAccessExpression;
|
||||||
|
|
@ -2269,6 +2275,8 @@ exports.isValidPropertyAccess = isValidPropertyAccess;
|
||||||
exports.isVariableLikeDeclaration = isVariableLikeDeclaration;
|
exports.isVariableLikeDeclaration = isVariableLikeDeclaration;
|
||||||
exports.isVoidKeyword = isVoidKeyword;
|
exports.isVoidKeyword = isVoidKeyword;
|
||||||
exports.symbolHasReadonlyDeclaration = symbolHasReadonlyDeclaration;
|
exports.symbolHasReadonlyDeclaration = symbolHasReadonlyDeclaration;
|
||||||
|
exports.typeConstituents = typeConstituents;
|
||||||
exports.typeIsLiteral = typeIsLiteral;
|
exports.typeIsLiteral = typeIsLiteral;
|
||||||
exports.typeParts = typeParts;
|
exports.typeParts = typeParts;
|
||||||
|
exports.unionConstituents = unionConstituents;
|
||||||
exports.unionTypeParts = unionTypeParts;
|
exports.unionTypeParts = unionTypeParts;
|
||||||
|
|
|
||||||
54
node_modules/@typescript-eslint/eslint-plugin/node_modules/ts-api-utils/lib/index.d.cts
generated
vendored
54
node_modules/@typescript-eslint/eslint-plugin/node_modules/ts-api-utils/lib/index.d.cts
generated
vendored
File diff suppressed because one or more lines are too long
54
node_modules/@typescript-eslint/eslint-plugin/node_modules/ts-api-utils/lib/index.d.ts
generated
vendored
54
node_modules/@typescript-eslint/eslint-plugin/node_modules/ts-api-utils/lib/index.d.ts
generated
vendored
File diff suppressed because one or more lines are too long
41
node_modules/@typescript-eslint/eslint-plugin/node_modules/ts-api-utils/lib/index.js
generated
vendored
41
node_modules/@typescript-eslint/eslint-plugin/node_modules/ts-api-utils/lib/index.js
generated
vendored
|
|
@ -1018,9 +1018,10 @@ function isInConstContext(node, typeChecker) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// src/types/utilities.ts
|
// src/types/utilities.ts
|
||||||
function intersectionTypeParts(type) {
|
function intersectionConstituents(type) {
|
||||||
return isIntersectionType(type) ? type.types : [type];
|
return isIntersectionType(type) ? type.types : [type];
|
||||||
}
|
}
|
||||||
|
var intersectionTypeParts = intersectionConstituents;
|
||||||
function isFalsyType(type) {
|
function isFalsyType(type) {
|
||||||
if (isTypeFlagSet(
|
if (isTypeFlagSet(
|
||||||
type,
|
type,
|
||||||
|
|
@ -1040,7 +1041,7 @@ function isFalsyType(type) {
|
||||||
function isPropertyReadonlyInType(type, name, typeChecker) {
|
function isPropertyReadonlyInType(type, name, typeChecker) {
|
||||||
let seenProperty = false;
|
let seenProperty = false;
|
||||||
let seenReadonlySignature = false;
|
let seenReadonlySignature = false;
|
||||||
for (const subType of unionTypeParts(type)) {
|
for (const subType of unionConstituents(type)) {
|
||||||
if (getPropertyOfType(subType, name) === undefined) {
|
if (getPropertyOfType(subType, name) === undefined) {
|
||||||
const index = (isNumericPropertyName(name) ? typeChecker.getIndexInfoOfType(subType, ts9.IndexKind.Number) : undefined) ?? typeChecker.getIndexInfoOfType(subType, ts9.IndexKind.String);
|
const index = (isNumericPropertyName(name) ? typeChecker.getIndexInfoOfType(subType, ts9.IndexKind.Number) : undefined) ?? typeChecker.getIndexInfoOfType(subType, ts9.IndexKind.String);
|
||||||
if (index?.isReadonly) {
|
if (index?.isReadonly) {
|
||||||
|
|
@ -1058,14 +1059,16 @@ function isPropertyReadonlyInType(type, name, typeChecker) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
function isThenableType(typeChecker, node, type = typeChecker.getTypeAtLocation(node)) {
|
function isThenableType(typeChecker, node, type = typeChecker.getTypeAtLocation(node)) {
|
||||||
for (const typePart of unionTypeParts(typeChecker.getApparentType(type))) {
|
for (const constituent of unionConstituents(
|
||||||
const then = typePart.getProperty("then");
|
typeChecker.getApparentType(type)
|
||||||
|
)) {
|
||||||
|
const then = constituent.getProperty("then");
|
||||||
if (then === undefined) {
|
if (then === undefined) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const thenType = typeChecker.getTypeOfSymbolAtLocation(then, node);
|
const thenType = typeChecker.getTypeOfSymbolAtLocation(then, node);
|
||||||
for (const subTypePart of unionTypeParts(thenType)) {
|
for (const subConstituent of unionConstituents(thenType)) {
|
||||||
for (const signature of subTypePart.getCallSignatures()) {
|
for (const signature of subConstituent.getCallSignatures()) {
|
||||||
if (signature.parameters.length !== 0 && isCallback(typeChecker, signature.parameters[0], node)) {
|
if (signature.parameters.length !== 0 && isCallback(typeChecker, signature.parameters[0], node)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -1079,6 +1082,9 @@ function symbolHasReadonlyDeclaration(symbol, typeChecker) {
|
||||||
(node) => isModifierFlagSet(node, ts9.ModifierFlags.Readonly) || ts9.isVariableDeclaration(node) && isNodeFlagSet(node.parent, ts9.NodeFlags.Const) || ts9.isCallExpression(node) && isReadonlyAssignmentDeclaration(node, typeChecker) || ts9.isEnumMember(node) || (ts9.isPropertyAssignment(node) || ts9.isShorthandPropertyAssignment(node)) && isInConstContext(node, typeChecker)
|
(node) => isModifierFlagSet(node, ts9.ModifierFlags.Readonly) || ts9.isVariableDeclaration(node) && isNodeFlagSet(node.parent, ts9.NodeFlags.Const) || ts9.isCallExpression(node) && isReadonlyAssignmentDeclaration(node, typeChecker) || ts9.isEnumMember(node) || (ts9.isPropertyAssignment(node) || ts9.isShorthandPropertyAssignment(node)) && isInConstContext(node, typeChecker)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
function typeConstituents(type) {
|
||||||
|
return isIntersectionType(type) || isUnionType(type) ? type.types : [type];
|
||||||
|
}
|
||||||
function typeIsLiteral(type) {
|
function typeIsLiteral(type) {
|
||||||
if (isTsVersionAtLeast(5, 0)) {
|
if (isTsVersionAtLeast(5, 0)) {
|
||||||
return type.isLiteral();
|
return type.isLiteral();
|
||||||
|
|
@ -1089,12 +1095,11 @@ function typeIsLiteral(type) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function typeParts(type) {
|
var typeParts = typeConstituents;
|
||||||
return isIntersectionType(type) || isUnionType(type) ? type.types : [type];
|
function unionConstituents(type) {
|
||||||
}
|
|
||||||
function unionTypeParts(type) {
|
|
||||||
return isUnionType(type) ? type.types : [type];
|
return isUnionType(type) ? type.types : [type];
|
||||||
}
|
}
|
||||||
|
var unionTypeParts = unionConstituents;
|
||||||
function isCallback(typeChecker, param, node) {
|
function isCallback(typeChecker, param, node) {
|
||||||
let type = typeChecker.getApparentType(
|
let type = typeChecker.getApparentType(
|
||||||
typeChecker.getTypeOfSymbolAtLocation(param, node)
|
typeChecker.getTypeOfSymbolAtLocation(param, node)
|
||||||
|
|
@ -1105,7 +1110,7 @@ function isCallback(typeChecker, param, node) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const subType of unionTypeParts(type)) {
|
for (const subType of unionConstituents(type)) {
|
||||||
if (subType.getCallSignatures().length !== 0) {
|
if (subType.getCallSignatures().length !== 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -1139,17 +1144,17 @@ function isReadonlyPropertyFromMappedType(type, name, typeChecker) {
|
||||||
return modifiersType && isPropertyReadonlyInType(modifiersType, name, typeChecker);
|
return modifiersType && isPropertyReadonlyInType(modifiersType, name, typeChecker);
|
||||||
}
|
}
|
||||||
function isReadonlyPropertyIntersection(type, name, typeChecker) {
|
function isReadonlyPropertyIntersection(type, name, typeChecker) {
|
||||||
const typeParts2 = isIntersectionType(type) ? type.types : [type];
|
const constituents = intersectionConstituents(type);
|
||||||
return typeParts2.some((subType) => {
|
return constituents.some((constituent) => {
|
||||||
const prop = getPropertyOfType(subType, name);
|
const prop = getPropertyOfType(constituent, name);
|
||||||
if (prop === undefined) {
|
if (prop === undefined) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (prop.flags & ts9.SymbolFlags.Transient) {
|
if (prop.flags & ts9.SymbolFlags.Transient) {
|
||||||
if (/^(?:[1-9]\d*|0)$/.test(name) && isTupleTypeReference(subType)) {
|
if (/^(?:[1-9]\d*|0)$/.test(name) && isTupleTypeReference(constituent)) {
|
||||||
return subType.target.readonly;
|
return constituent.target.readonly;
|
||||||
}
|
}
|
||||||
switch (isReadonlyPropertyFromMappedType(subType, name, typeChecker)) {
|
switch (isReadonlyPropertyFromMappedType(constituent, name, typeChecker)) {
|
||||||
case false:
|
case false:
|
||||||
return false;
|
return false;
|
||||||
case true:
|
case true:
|
||||||
|
|
@ -2075,4 +2080,4 @@ function collectVariableUsage(sourceFile) {
|
||||||
return new UsageWalker().getUsage(sourceFile);
|
return new UsageWalker().getUsage(sourceFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
export { AccessKind, DeclarationDomain, UsageDomain, collectVariableUsage, forEachComment, forEachToken, getAccessKind, getCallSignaturesOfType, getPropertyOfType, getWellKnownSymbolPropertyOfType, hasDecorators, hasExpressionInitializer, hasInitializer, hasJSDoc, hasModifiers, hasType, hasTypeArguments, includesModifier, intersectionTypeParts, isAbstractKeyword, isAccessExpression, isAccessibilityModifier, isAccessorDeclaration, isAccessorKeyword, isAnyKeyword, isArrayBindingElement, isArrayBindingOrAssignmentPattern, isAssertKeyword, isAssertsKeyword, isAssignmentKind, isAssignmentPattern, isAsyncKeyword, isAwaitKeyword, isBigIntKeyword, isBigIntLiteralType, isBindingOrAssignmentElementRestIndicator, isBindingOrAssignmentElementTarget, isBindingOrAssignmentPattern, isBindingPattern, isBlockLike, isBooleanKeyword, isBooleanLiteral, isBooleanLiteralType, isClassLikeDeclaration, isClassMemberModifier, isColonToken, isCompilerOptionEnabled, isConditionalType, isConstAssertionExpression, isConstKeyword, isDeclarationName, isDeclarationWithTypeParameterChildren, isDeclarationWithTypeParameters, isDeclareKeyword, isDefaultKeyword, isDestructuringPattern, isDotToken, isEndOfFileToken, isEntityNameExpression, isEntityNameOrEntityNameExpression, isEnumType, isEqualsGreaterThanToken, isEqualsToken, isEvolvingArrayType, isExclamationToken, isExportKeyword, isFalseKeyword, isFalseLiteral, isFalseLiteralType, isFalsyType, isForInOrOfStatement, isFreshableIntrinsicType, isFreshableType, isFunctionLikeDeclaration, isFunctionScopeBoundary, isImportExpression, isImportKeyword, isInKeyword, isIndexType, isIndexedAccessType, isInstantiableType, isIntersectionType, isIntrinsicAnyType, isIntrinsicBigIntType, isIntrinsicBooleanType, isIntrinsicESSymbolType, isIntrinsicErrorType, isIntrinsicNeverType, isIntrinsicNonPrimitiveType, isIntrinsicNullType, isIntrinsicNumberType, isIntrinsicStringType, isIntrinsicType, isIntrinsicUndefinedType, isIntrinsicUnknownType, isIntrinsicVoidType, isIterationStatement, isJSDocComment, isJSDocNamespaceBody, isJSDocNamespaceDeclaration, isJSDocText, isJSDocTypeReferencingNode, isJsonMinusNumericLiteral, isJsonObjectExpression, isJsxAttributeLike, isJsxAttributeValue, isJsxChild, isJsxTagNameExpression, isJsxTagNamePropertyAccess, isLiteralToken, isLiteralType, isModifierFlagSet, isModuleBody, isModuleName, isModuleReference, isNamedDeclarationWithName, isNamedImportBindings, isNamedImportsOrExports, isNamespaceBody, isNamespaceDeclaration, isNeverKeyword, isNodeFlagSet, isNullKeyword, isNullLiteral, isNumberKeyword, isNumberLiteralType, isNumericOrStringLikeLiteral, isNumericPropertyName, isObjectBindingOrAssignmentElement, isObjectBindingOrAssignmentPattern, isObjectFlagSet, isObjectKeyword, isObjectType, isObjectTypeDeclaration, isOutKeyword, isOverrideKeyword, isParameterPropertyModifier, isPrivateKeyword, isPropertyAccessEntityNameExpression, isPropertyNameLiteral, isPropertyReadonlyInType, isProtectedKeyword, isPseudoLiteralToken, isPublicKeyword, isQuestionDotToken, isQuestionToken, isReadonlyKeyword, isSignatureDeclaration, isStaticKeyword, isStrictCompilerOptionEnabled, isStringKeyword, isStringLiteralType, isStringMappingType, isSubstitutionType, isSuperElementAccessExpression, isSuperExpression, isSuperKeyword, isSuperProperty, isSuperPropertyAccessExpression, isSymbolFlagSet, isSymbolKeyword, isSyntaxList, isTemplateLiteralType, isThenableType, isThisExpression, isThisKeyword, isTransientSymbolLinksFlagSet, isTrueKeyword, isTrueLiteral, isTrueLiteralType, isTupleType, isTupleTypeReference, isTypeFlagSet, isTypeOnlyCompatibleAliasDeclaration, isTypeParameter, isTypeReference, isTypeReferenceType, isTypeVariable, isUndefinedKeyword, isUnionOrIntersectionType, isUnionOrIntersectionTypeNode, isUnionType, isUniqueESSymbolType, isUnknownKeyword, isValidPropertyAccess, isVariableLikeDeclaration, isVoidKeyword, symbolHasReadonlyDeclaration, typeIsLiteral, typeParts, unionTypeParts };
|
export { AccessKind, DeclarationDomain, UsageDomain, collectVariableUsage, forEachComment, forEachToken, getAccessKind, getCallSignaturesOfType, getPropertyOfType, getWellKnownSymbolPropertyOfType, hasDecorators, hasExpressionInitializer, hasInitializer, hasJSDoc, hasModifiers, hasType, hasTypeArguments, includesModifier, intersectionConstituents, intersectionTypeParts, isAbstractKeyword, isAccessExpression, isAccessibilityModifier, isAccessorDeclaration, isAccessorKeyword, isAnyKeyword, isArrayBindingElement, isArrayBindingOrAssignmentPattern, isAssertKeyword, isAssertsKeyword, isAssignmentKind, isAssignmentPattern, isAsyncKeyword, isAwaitKeyword, isBigIntKeyword, isBigIntLiteralType, isBindingOrAssignmentElementRestIndicator, isBindingOrAssignmentElementTarget, isBindingOrAssignmentPattern, isBindingPattern, isBlockLike, isBooleanKeyword, isBooleanLiteral, isBooleanLiteralType, isClassLikeDeclaration, isClassMemberModifier, isColonToken, isCompilerOptionEnabled, isConditionalType, isConstAssertionExpression, isConstKeyword, isDeclarationName, isDeclarationWithTypeParameterChildren, isDeclarationWithTypeParameters, isDeclareKeyword, isDefaultKeyword, isDestructuringPattern, isDotToken, isEndOfFileToken, isEntityNameExpression, isEntityNameOrEntityNameExpression, isEnumType, isEqualsGreaterThanToken, isEqualsToken, isEvolvingArrayType, isExclamationToken, isExportKeyword, isFalseKeyword, isFalseLiteral, isFalseLiteralType, isFalsyType, isForInOrOfStatement, isFreshableIntrinsicType, isFreshableType, isFunctionLikeDeclaration, isFunctionScopeBoundary, isImportExpression, isImportKeyword, isInKeyword, isIndexType, isIndexedAccessType, isInstantiableType, isIntersectionType, isIntrinsicAnyType, isIntrinsicBigIntType, isIntrinsicBooleanType, isIntrinsicESSymbolType, isIntrinsicErrorType, isIntrinsicNeverType, isIntrinsicNonPrimitiveType, isIntrinsicNullType, isIntrinsicNumberType, isIntrinsicStringType, isIntrinsicType, isIntrinsicUndefinedType, isIntrinsicUnknownType, isIntrinsicVoidType, isIterationStatement, isJSDocComment, isJSDocNamespaceBody, isJSDocNamespaceDeclaration, isJSDocText, isJSDocTypeReferencingNode, isJsonMinusNumericLiteral, isJsonObjectExpression, isJsxAttributeLike, isJsxAttributeValue, isJsxChild, isJsxTagNameExpression, isJsxTagNamePropertyAccess, isLiteralToken, isLiteralType, isModifierFlagSet, isModuleBody, isModuleName, isModuleReference, isNamedDeclarationWithName, isNamedImportBindings, isNamedImportsOrExports, isNamespaceBody, isNamespaceDeclaration, isNeverKeyword, isNodeFlagSet, isNullKeyword, isNullLiteral, isNumberKeyword, isNumberLiteralType, isNumericOrStringLikeLiteral, isNumericPropertyName, isObjectBindingOrAssignmentElement, isObjectBindingOrAssignmentPattern, isObjectFlagSet, isObjectKeyword, isObjectType, isObjectTypeDeclaration, isOutKeyword, isOverrideKeyword, isParameterPropertyModifier, isPrivateKeyword, isPropertyAccessEntityNameExpression, isPropertyNameLiteral, isPropertyReadonlyInType, isProtectedKeyword, isPseudoLiteralToken, isPublicKeyword, isQuestionDotToken, isQuestionToken, isReadonlyKeyword, isSignatureDeclaration, isStaticKeyword, isStrictCompilerOptionEnabled, isStringKeyword, isStringLiteralType, isStringMappingType, isSubstitutionType, isSuperElementAccessExpression, isSuperExpression, isSuperKeyword, isSuperProperty, isSuperPropertyAccessExpression, isSymbolFlagSet, isSymbolKeyword, isSyntaxList, isTemplateLiteralType, isThenableType, isThisExpression, isThisKeyword, isTransientSymbolLinksFlagSet, isTrueKeyword, isTrueLiteral, isTrueLiteralType, isTupleType, isTupleTypeReference, isTypeFlagSet, isTypeOnlyCompatibleAliasDeclaration, isTypeParameter, isTypeReference, isTypeReferenceType, isTypeVariable, isUndefinedKeyword, isUnionOrIntersectionType, isUnionOrIntersectionTypeNode, isUnionType, isUniqueESSymbolType, isUnknownKeyword, isValidPropertyAccess, isVariableLikeDeclaration, isVoidKeyword, symbolHasReadonlyDeclaration, typeConstituents, typeIsLiteral, typeParts, unionConstituents, unionTypeParts };
|
||||||
|
|
|
||||||
11
node_modules/@typescript-eslint/eslint-plugin/node_modules/ts-api-utils/package.json
generated
vendored
11
node_modules/@typescript-eslint/eslint-plugin/node_modules/ts-api-utils/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "ts-api-utils",
|
"name": "ts-api-utils",
|
||||||
"version": "2.0.1",
|
"version": "2.1.0",
|
||||||
"description": "Utility functions for working with TypeScript's API. Successor to the wonderful tsutils. 🛠️️",
|
"description": "Utility functions for working with TypeScript's API. Successor to the wonderful tsutils. 🛠️️",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
@ -37,7 +37,6 @@
|
||||||
"lint": "eslint . --max-warnings 0",
|
"lint": "eslint . --max-warnings 0",
|
||||||
"lint:docs": "typedoc --validation --treatValidationWarningsAsErrors",
|
"lint:docs": "typedoc --validation --treatValidationWarningsAsErrors",
|
||||||
"lint:knip": "knip",
|
"lint:knip": "knip",
|
||||||
"lint:knip:production": "knip --production",
|
|
||||||
"lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line",
|
"lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line",
|
||||||
"lint:packages": "pnpm dedupe --check",
|
"lint:packages": "pnpm dedupe --check",
|
||||||
"lint:spelling": "cspell \"**\" \".github/**/*\"",
|
"lint:spelling": "cspell \"**\" \".github/**/*\"",
|
||||||
|
|
@ -72,10 +71,10 @@
|
||||||
"eslint-plugin-yml": "^1.16.0",
|
"eslint-plugin-yml": "^1.16.0",
|
||||||
"husky": "^9.1.7",
|
"husky": "^9.1.7",
|
||||||
"jsonc-eslint-parser": "^2.4.0",
|
"jsonc-eslint-parser": "^2.4.0",
|
||||||
"knip": "^5.43.6",
|
"knip": "^5.46.0",
|
||||||
"lint-staged": "^15.4.3",
|
"lint-staged": "^15.4.3",
|
||||||
"markdownlint": "^0.37.4",
|
"markdownlint": "^0.37.4",
|
||||||
"markdownlint-cli": "^0.43.0",
|
"markdownlint-cli": "^0.44.0",
|
||||||
"prettier": "^3.4.2",
|
"prettier": "^3.4.2",
|
||||||
"prettier-plugin-curly": "^0.3.1",
|
"prettier-plugin-curly": "^0.3.1",
|
||||||
"prettier-plugin-packagejson": "^2.5.8",
|
"prettier-plugin-packagejson": "^2.5.8",
|
||||||
|
|
@ -90,12 +89,12 @@
|
||||||
"typedoc-plugin-mdn-links": "^4.0.10",
|
"typedoc-plugin-mdn-links": "^4.0.10",
|
||||||
"typescript": "^5.7.3",
|
"typescript": "^5.7.3",
|
||||||
"typescript-eslint": "^8.22.0",
|
"typescript-eslint": "^8.22.0",
|
||||||
"vitest": "^2.1.8"
|
"vitest": "^3.0.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"typescript": ">=4.8.4"
|
"typescript": ">=4.8.4"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@9.15.3",
|
"packageManager": "pnpm@9.15.9",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.12"
|
"node": ">=18.12"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
14
node_modules/@typescript-eslint/eslint-plugin/package.json
generated
vendored
14
node_modules/@typescript-eslint/eslint-plugin/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@typescript-eslint/eslint-plugin",
|
"name": "@typescript-eslint/eslint-plugin",
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"description": "TypeScript plugin for ESLint",
|
"description": "TypeScript plugin for ESLint",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
|
@ -62,10 +62,10 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint-community/regexpp": "^4.10.0",
|
"@eslint-community/regexpp": "^4.10.0",
|
||||||
"@typescript-eslint/scope-manager": "8.26.1",
|
"@typescript-eslint/scope-manager": "8.28.0",
|
||||||
"@typescript-eslint/type-utils": "8.26.1",
|
"@typescript-eslint/type-utils": "8.28.0",
|
||||||
"@typescript-eslint/utils": "8.26.1",
|
"@typescript-eslint/utils": "8.28.0",
|
||||||
"@typescript-eslint/visitor-keys": "8.26.1",
|
"@typescript-eslint/visitor-keys": "8.28.0",
|
||||||
"graphemer": "^1.4.0",
|
"graphemer": "^1.4.0",
|
||||||
"ignore": "^5.3.1",
|
"ignore": "^5.3.1",
|
||||||
"natural-compare": "^1.4.0",
|
"natural-compare": "^1.4.0",
|
||||||
|
|
@ -76,8 +76,8 @@
|
||||||
"@types/marked": "^5.0.2",
|
"@types/marked": "^5.0.2",
|
||||||
"@types/mdast": "^4.0.3",
|
"@types/mdast": "^4.0.3",
|
||||||
"@types/natural-compare": "*",
|
"@types/natural-compare": "*",
|
||||||
"@typescript-eslint/rule-schema-to-typescript-types": "8.26.1",
|
"@typescript-eslint/rule-schema-to-typescript-types": "8.28.0",
|
||||||
"@typescript-eslint/rule-tester": "8.26.1",
|
"@typescript-eslint/rule-tester": "8.28.0",
|
||||||
"ajv": "^6.12.6",
|
"ajv": "^6.12.6",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"cross-fetch": "*",
|
"cross-fetch": "*",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@typescript-eslint/scope-manager",
|
"name": "@typescript-eslint/scope-manager",
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"description": "TypeScript scope analyser for ESLint",
|
"description": "TypeScript scope analyser for ESLint",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
|
@ -47,12 +47,12 @@
|
||||||
"check-types": "npx nx typecheck"
|
"check-types": "npx nx typecheck"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"@typescript-eslint/visitor-keys": "8.26.1"
|
"@typescript-eslint/visitor-keys": "8.28.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@jest/types": "29.6.3",
|
"@jest/types": "29.6.3",
|
||||||
"@typescript-eslint/typescript-estree": "8.26.1",
|
"@typescript-eslint/typescript-estree": "8.28.0",
|
||||||
"glob": "*",
|
"glob": "*",
|
||||||
"jest": "29.7.0",
|
"jest": "29.7.0",
|
||||||
"jest-specific-snapshot": "*",
|
"jest-specific-snapshot": "*",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@typescript-eslint/types",
|
"name": "@typescript-eslint/types",
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"description": "Types for the TypeScript-ESTree AST spec",
|
"description": "Types for the TypeScript-ESTree AST spec",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EACV,aAAa,EACb,2BAA2B,EAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAoB,MAAM,EAAE,MAAM,aAAa,CAAC;AAmCtE,MAAM,WAAW,gBAAgB;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,kCAAkC,CAAC,EAAE,OAAO,CAAC;CAC9C;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,wBAAwB,GAAG,EAAE,CAAC,sBAAsB,GAC1D,OAAO,CAMT;AAED,MAAM,WAAW,OAAO;IACtB,qBAAqB,EAAE,2BAA2B,CAAC;IACnD,qBAAqB,EAAE,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;CAC7D;AAED,qBAAa,SAAS;;IACpB,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;IACpC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAiB;IACvD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IAC3C,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAiB;IAEvD;;;;;OAKG;gBACS,GAAG,EAAE,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAsZ1D,OAAO,CAAC,qBAAqB;IAsB7B,OAAO,CAAC,oCAAoC;IAe5C;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;IAiC9B,OAAO,CAAC,sBAAsB;IA4C9B;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAIpB;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAItB;;;;;;OAMG;IACH,OAAO,CAAC,qBAAqB;IAsB7B;;;;;OAKG;IACH,OAAO,CAAC,gDAAgD;IAexD;;;;OAIG;IACH,OAAO,CAAC,kDAAkD;IAmB1D;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAgBzB;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;IA8BjB,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,+BAA+B;IAgDvC;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IA8BzB,OAAO,CAAC,sBAAsB;IAoC9B;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAczB;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAwhFnB,OAAO,CAAC,UAAU;IAclB,cAAc,IAAI,QAAQ,CAAC,OAAO;IAIlC;;;;OAIG;IACH,OAAO,CAAC,UAAU;IA0FlB;;;OAGG;IACH,OAAO,CAAC,UAAU;IAgFlB,UAAU,IAAI,OAAO;IAOrB;;OAEG;IACH,OAAO,CAAC,uBAAuB;CAYhC"}
|
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EACV,aAAa,EACb,2BAA2B,EAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAoB,MAAM,EAAE,MAAM,aAAa,CAAC;AAmCtE,MAAM,WAAW,gBAAgB;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,kCAAkC,CAAC,EAAE,OAAO,CAAC;CAC9C;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,wBAAwB,GAAG,EAAE,CAAC,sBAAsB,GAC1D,OAAO,CAMT;AAED,MAAM,WAAW,OAAO;IACtB,qBAAqB,EAAE,2BAA2B,CAAC;IACnD,qBAAqB,EAAE,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;CAC7D;AAED,qBAAa,SAAS;;IACpB,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;IACpC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAiB;IACvD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IAC3C,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAiB;IAEvD;;;;;OAKG;gBACS,GAAG,EAAE,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAsZ1D,OAAO,CAAC,qBAAqB;IAsB7B,OAAO,CAAC,oCAAoC;IAe5C;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;IAiC9B,OAAO,CAAC,sBAAsB;IA4C9B;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAIpB;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAItB;;;;;;OAMG;IACH,OAAO,CAAC,qBAAqB;IAsB7B;;;;;OAKG;IACH,OAAO,CAAC,gDAAgD;IAexD;;;;OAIG;IACH,OAAO,CAAC,kDAAkD;IAmB1D;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAgBzB;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;IA8BjB,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,+BAA+B;IAgDvC;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IA8BzB,OAAO,CAAC,sBAAsB;IAoC9B;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAczB;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAyhFnB,OAAO,CAAC,UAAU;IAclB,cAAc,IAAI,QAAQ,CAAC,OAAO;IAIlC;;;;OAIG;IACH,OAAO,CAAC,UAAU;IA0FlB;;;OAGG;IACH,OAAO,CAAC,UAAU;IAgFlB,UAAU,IAAI,OAAO;IAOrB;;OAEG;IACH,OAAO,CAAC,uBAAuB;CAYhC"}
|
||||||
|
|
@ -1402,6 +1402,7 @@ class Converter {
|
||||||
parameter = this.convertChild(node.name);
|
parameter = this.convertChild(node.name);
|
||||||
result = this.createNode(node, {
|
result = this.createNode(node, {
|
||||||
type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern,
|
type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern,
|
||||||
|
range: [node.name.getStart(this.ast), node.initializer.end],
|
||||||
decorators: [],
|
decorators: [],
|
||||||
left: parameter,
|
left: parameter,
|
||||||
optional: false,
|
optional: false,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@typescript-eslint/typescript-estree",
|
"name": "@typescript-eslint/typescript-estree",
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
|
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
|
@ -55,8 +55,8 @@
|
||||||
"check-types": "npx nx typecheck"
|
"check-types": "npx nx typecheck"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"@typescript-eslint/visitor-keys": "8.26.1",
|
"@typescript-eslint/visitor-keys": "8.28.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"fast-glob": "^3.3.2",
|
"fast-glob": "^3.3.2",
|
||||||
"is-glob": "^4.0.3",
|
"is-glob": "^4.0.3",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@typescript-eslint/visitor-keys",
|
"name": "@typescript-eslint/visitor-keys",
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"description": "Visitor keys used to help traverse the TypeScript-ESTree AST",
|
"description": "Visitor keys used to help traverse the TypeScript-ESTree AST",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
"check-types": "npx nx typecheck"
|
"check-types": "npx nx typecheck"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"eslint-visitor-keys": "^4.2.0"
|
"eslint-visitor-keys": "^4.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
||||||
4
node_modules/@typescript-eslint/parser/node_modules/ts-api-utils/README.md
generated
vendored
4
node_modules/@typescript-eslint/parser/node_modules/ts-api-utils/README.md
generated
vendored
|
|
@ -9,7 +9,7 @@
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<!-- prettier-ignore-start -->
|
<!-- prettier-ignore-start -->
|
||||||
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
||||||
<img alt="All Contributors: 8 👪" src="https://img.shields.io/badge/all_contributors-8_👪-21bb42.svg" />
|
<img alt="All Contributors: 10 👪" src="https://img.shields.io/badge/all_contributors-10_👪-21bb42.svg" />
|
||||||
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
||||||
<!-- prettier-ignore-end -->
|
<!-- prettier-ignore-end -->
|
||||||
<a href="https://github.com/JoshuaKGoldberg/ts-api-utils/blob/main/.github/CODE_OF_CONDUCT.md" target="_blank"><img alt="🤝 Code of Conduct: Kept" src="https://img.shields.io/badge/%F0%9F%A4%9D_code_of_conduct-kept-21bb42" /></a>
|
<a href="https://github.com/JoshuaKGoldberg/ts-api-utils/blob/main/.github/CODE_OF_CONDUCT.md" target="_blank"><img alt="🤝 Code of Conduct: Kept" src="https://img.shields.io/badge/%F0%9F%A4%9D_code_of_conduct-kept-21bb42" /></a>
|
||||||
|
|
@ -67,6 +67,8 @@ Many thanks to [@ajafff](https://github.com/ajafff) for creating the original [`
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/RebeccaStevens"><img src="https://avatars.githubusercontent.com/u/7224206?v=4?s=100" width="100px;" alt="Rebecca Stevens"/><br /><sub><b>Rebecca Stevens</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/ts-api-utils/issues?q=author%3ARebeccaStevens" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Code">💻</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Documentation">📖</a> <a href="#projectManagement-RebeccaStevens" title="Project Management">📆</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Tests">⚠️</a> <a href="#tool-RebeccaStevens" title="Tools">🔧</a> <a href="#infra-RebeccaStevens" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-RebeccaStevens" title="Maintenance">🚧</a> <a href="#ideas-RebeccaStevens" title="Ideas, Planning, & Feedback">🤔</a></td>
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/RebeccaStevens"><img src="https://avatars.githubusercontent.com/u/7224206?v=4?s=100" width="100px;" alt="Rebecca Stevens"/><br /><sub><b>Rebecca Stevens</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/ts-api-utils/issues?q=author%3ARebeccaStevens" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Code">💻</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Documentation">📖</a> <a href="#projectManagement-RebeccaStevens" title="Project Management">📆</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Tests">⚠️</a> <a href="#tool-RebeccaStevens" title="Tools">🔧</a> <a href="#infra-RebeccaStevens" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-RebeccaStevens" title="Maintenance">🚧</a> <a href="#ideas-RebeccaStevens" title="Ideas, Planning, & Feedback">🤔</a></td>
|
||||||
|
<td align="center" valign="top" width="14.28%"><a href="https://twitter.com/ronenamiel"><img src="https://avatars.githubusercontent.com/u/5484230?v=4?s=100" width="100px;" alt="Ronen Amiel"/><br /><sub><b>Ronen Amiel</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=ronami" title="Tests">⚠️</a></td>
|
||||||
|
<td align="center" valign="top" width="14.28%"><a href="https://www.fiskercheung.com/"><img src="https://avatars.githubusercontent.com/u/172584?v=4?s=100" width="100px;" alt="fisker Cheung"/><br /><sub><b>fisker Cheung</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=fisker" title="Code">💻</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
42
node_modules/@typescript-eslint/parser/node_modules/ts-api-utils/lib/index.cjs
generated
vendored
42
node_modules/@typescript-eslint/parser/node_modules/ts-api-utils/lib/index.cjs
generated
vendored
|
|
@ -1024,9 +1024,10 @@ function isInConstContext(node, typeChecker) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// src/types/utilities.ts
|
// src/types/utilities.ts
|
||||||
function intersectionTypeParts(type) {
|
function intersectionConstituents(type) {
|
||||||
return isIntersectionType(type) ? type.types : [type];
|
return isIntersectionType(type) ? type.types : [type];
|
||||||
}
|
}
|
||||||
|
var intersectionTypeParts = intersectionConstituents;
|
||||||
function isFalsyType(type) {
|
function isFalsyType(type) {
|
||||||
if (isTypeFlagSet(
|
if (isTypeFlagSet(
|
||||||
type,
|
type,
|
||||||
|
|
@ -1046,7 +1047,7 @@ function isFalsyType(type) {
|
||||||
function isPropertyReadonlyInType(type, name, typeChecker) {
|
function isPropertyReadonlyInType(type, name, typeChecker) {
|
||||||
let seenProperty = false;
|
let seenProperty = false;
|
||||||
let seenReadonlySignature = false;
|
let seenReadonlySignature = false;
|
||||||
for (const subType of unionTypeParts(type)) {
|
for (const subType of unionConstituents(type)) {
|
||||||
if (getPropertyOfType(subType, name) === undefined) {
|
if (getPropertyOfType(subType, name) === undefined) {
|
||||||
const index = (isNumericPropertyName(name) ? typeChecker.getIndexInfoOfType(subType, ts9__default.default.IndexKind.Number) : undefined) ?? typeChecker.getIndexInfoOfType(subType, ts9__default.default.IndexKind.String);
|
const index = (isNumericPropertyName(name) ? typeChecker.getIndexInfoOfType(subType, ts9__default.default.IndexKind.Number) : undefined) ?? typeChecker.getIndexInfoOfType(subType, ts9__default.default.IndexKind.String);
|
||||||
if (index?.isReadonly) {
|
if (index?.isReadonly) {
|
||||||
|
|
@ -1064,14 +1065,16 @@ function isPropertyReadonlyInType(type, name, typeChecker) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
function isThenableType(typeChecker, node, type = typeChecker.getTypeAtLocation(node)) {
|
function isThenableType(typeChecker, node, type = typeChecker.getTypeAtLocation(node)) {
|
||||||
for (const typePart of unionTypeParts(typeChecker.getApparentType(type))) {
|
for (const constituent of unionConstituents(
|
||||||
const then = typePart.getProperty("then");
|
typeChecker.getApparentType(type)
|
||||||
|
)) {
|
||||||
|
const then = constituent.getProperty("then");
|
||||||
if (then === undefined) {
|
if (then === undefined) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const thenType = typeChecker.getTypeOfSymbolAtLocation(then, node);
|
const thenType = typeChecker.getTypeOfSymbolAtLocation(then, node);
|
||||||
for (const subTypePart of unionTypeParts(thenType)) {
|
for (const subConstituent of unionConstituents(thenType)) {
|
||||||
for (const signature of subTypePart.getCallSignatures()) {
|
for (const signature of subConstituent.getCallSignatures()) {
|
||||||
if (signature.parameters.length !== 0 && isCallback(typeChecker, signature.parameters[0], node)) {
|
if (signature.parameters.length !== 0 && isCallback(typeChecker, signature.parameters[0], node)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -1085,6 +1088,9 @@ function symbolHasReadonlyDeclaration(symbol, typeChecker) {
|
||||||
(node) => isModifierFlagSet(node, ts9__default.default.ModifierFlags.Readonly) || ts9__default.default.isVariableDeclaration(node) && isNodeFlagSet(node.parent, ts9__default.default.NodeFlags.Const) || ts9__default.default.isCallExpression(node) && isReadonlyAssignmentDeclaration(node, typeChecker) || ts9__default.default.isEnumMember(node) || (ts9__default.default.isPropertyAssignment(node) || ts9__default.default.isShorthandPropertyAssignment(node)) && isInConstContext(node, typeChecker)
|
(node) => isModifierFlagSet(node, ts9__default.default.ModifierFlags.Readonly) || ts9__default.default.isVariableDeclaration(node) && isNodeFlagSet(node.parent, ts9__default.default.NodeFlags.Const) || ts9__default.default.isCallExpression(node) && isReadonlyAssignmentDeclaration(node, typeChecker) || ts9__default.default.isEnumMember(node) || (ts9__default.default.isPropertyAssignment(node) || ts9__default.default.isShorthandPropertyAssignment(node)) && isInConstContext(node, typeChecker)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
function typeConstituents(type) {
|
||||||
|
return isIntersectionType(type) || isUnionType(type) ? type.types : [type];
|
||||||
|
}
|
||||||
function typeIsLiteral(type) {
|
function typeIsLiteral(type) {
|
||||||
if (isTsVersionAtLeast(5, 0)) {
|
if (isTsVersionAtLeast(5, 0)) {
|
||||||
return type.isLiteral();
|
return type.isLiteral();
|
||||||
|
|
@ -1095,12 +1101,11 @@ function typeIsLiteral(type) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function typeParts(type) {
|
var typeParts = typeConstituents;
|
||||||
return isIntersectionType(type) || isUnionType(type) ? type.types : [type];
|
function unionConstituents(type) {
|
||||||
}
|
|
||||||
function unionTypeParts(type) {
|
|
||||||
return isUnionType(type) ? type.types : [type];
|
return isUnionType(type) ? type.types : [type];
|
||||||
}
|
}
|
||||||
|
var unionTypeParts = unionConstituents;
|
||||||
function isCallback(typeChecker, param, node) {
|
function isCallback(typeChecker, param, node) {
|
||||||
let type = typeChecker.getApparentType(
|
let type = typeChecker.getApparentType(
|
||||||
typeChecker.getTypeOfSymbolAtLocation(param, node)
|
typeChecker.getTypeOfSymbolAtLocation(param, node)
|
||||||
|
|
@ -1111,7 +1116,7 @@ function isCallback(typeChecker, param, node) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const subType of unionTypeParts(type)) {
|
for (const subType of unionConstituents(type)) {
|
||||||
if (subType.getCallSignatures().length !== 0) {
|
if (subType.getCallSignatures().length !== 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -1145,17 +1150,17 @@ function isReadonlyPropertyFromMappedType(type, name, typeChecker) {
|
||||||
return modifiersType && isPropertyReadonlyInType(modifiersType, name, typeChecker);
|
return modifiersType && isPropertyReadonlyInType(modifiersType, name, typeChecker);
|
||||||
}
|
}
|
||||||
function isReadonlyPropertyIntersection(type, name, typeChecker) {
|
function isReadonlyPropertyIntersection(type, name, typeChecker) {
|
||||||
const typeParts2 = isIntersectionType(type) ? type.types : [type];
|
const constituents = intersectionConstituents(type);
|
||||||
return typeParts2.some((subType) => {
|
return constituents.some((constituent) => {
|
||||||
const prop = getPropertyOfType(subType, name);
|
const prop = getPropertyOfType(constituent, name);
|
||||||
if (prop === undefined) {
|
if (prop === undefined) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (prop.flags & ts9__default.default.SymbolFlags.Transient) {
|
if (prop.flags & ts9__default.default.SymbolFlags.Transient) {
|
||||||
if (/^(?:[1-9]\d*|0)$/.test(name) && isTupleTypeReference(subType)) {
|
if (/^(?:[1-9]\d*|0)$/.test(name) && isTupleTypeReference(constituent)) {
|
||||||
return subType.target.readonly;
|
return constituent.target.readonly;
|
||||||
}
|
}
|
||||||
switch (isReadonlyPropertyFromMappedType(subType, name, typeChecker)) {
|
switch (isReadonlyPropertyFromMappedType(constituent, name, typeChecker)) {
|
||||||
case false:
|
case false:
|
||||||
return false;
|
return false;
|
||||||
case true:
|
case true:
|
||||||
|
|
@ -2099,6 +2104,7 @@ exports.hasModifiers = hasModifiers;
|
||||||
exports.hasType = hasType;
|
exports.hasType = hasType;
|
||||||
exports.hasTypeArguments = hasTypeArguments;
|
exports.hasTypeArguments = hasTypeArguments;
|
||||||
exports.includesModifier = includesModifier;
|
exports.includesModifier = includesModifier;
|
||||||
|
exports.intersectionConstituents = intersectionConstituents;
|
||||||
exports.intersectionTypeParts = intersectionTypeParts;
|
exports.intersectionTypeParts = intersectionTypeParts;
|
||||||
exports.isAbstractKeyword = isAbstractKeyword;
|
exports.isAbstractKeyword = isAbstractKeyword;
|
||||||
exports.isAccessExpression = isAccessExpression;
|
exports.isAccessExpression = isAccessExpression;
|
||||||
|
|
@ -2269,6 +2275,8 @@ exports.isValidPropertyAccess = isValidPropertyAccess;
|
||||||
exports.isVariableLikeDeclaration = isVariableLikeDeclaration;
|
exports.isVariableLikeDeclaration = isVariableLikeDeclaration;
|
||||||
exports.isVoidKeyword = isVoidKeyword;
|
exports.isVoidKeyword = isVoidKeyword;
|
||||||
exports.symbolHasReadonlyDeclaration = symbolHasReadonlyDeclaration;
|
exports.symbolHasReadonlyDeclaration = symbolHasReadonlyDeclaration;
|
||||||
|
exports.typeConstituents = typeConstituents;
|
||||||
exports.typeIsLiteral = typeIsLiteral;
|
exports.typeIsLiteral = typeIsLiteral;
|
||||||
exports.typeParts = typeParts;
|
exports.typeParts = typeParts;
|
||||||
|
exports.unionConstituents = unionConstituents;
|
||||||
exports.unionTypeParts = unionTypeParts;
|
exports.unionTypeParts = unionTypeParts;
|
||||||
|
|
|
||||||
54
node_modules/@typescript-eslint/parser/node_modules/ts-api-utils/lib/index.d.cts
generated
vendored
54
node_modules/@typescript-eslint/parser/node_modules/ts-api-utils/lib/index.d.cts
generated
vendored
File diff suppressed because one or more lines are too long
54
node_modules/@typescript-eslint/parser/node_modules/ts-api-utils/lib/index.d.ts
generated
vendored
54
node_modules/@typescript-eslint/parser/node_modules/ts-api-utils/lib/index.d.ts
generated
vendored
File diff suppressed because one or more lines are too long
41
node_modules/@typescript-eslint/parser/node_modules/ts-api-utils/lib/index.js
generated
vendored
41
node_modules/@typescript-eslint/parser/node_modules/ts-api-utils/lib/index.js
generated
vendored
|
|
@ -1018,9 +1018,10 @@ function isInConstContext(node, typeChecker) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// src/types/utilities.ts
|
// src/types/utilities.ts
|
||||||
function intersectionTypeParts(type) {
|
function intersectionConstituents(type) {
|
||||||
return isIntersectionType(type) ? type.types : [type];
|
return isIntersectionType(type) ? type.types : [type];
|
||||||
}
|
}
|
||||||
|
var intersectionTypeParts = intersectionConstituents;
|
||||||
function isFalsyType(type) {
|
function isFalsyType(type) {
|
||||||
if (isTypeFlagSet(
|
if (isTypeFlagSet(
|
||||||
type,
|
type,
|
||||||
|
|
@ -1040,7 +1041,7 @@ function isFalsyType(type) {
|
||||||
function isPropertyReadonlyInType(type, name, typeChecker) {
|
function isPropertyReadonlyInType(type, name, typeChecker) {
|
||||||
let seenProperty = false;
|
let seenProperty = false;
|
||||||
let seenReadonlySignature = false;
|
let seenReadonlySignature = false;
|
||||||
for (const subType of unionTypeParts(type)) {
|
for (const subType of unionConstituents(type)) {
|
||||||
if (getPropertyOfType(subType, name) === undefined) {
|
if (getPropertyOfType(subType, name) === undefined) {
|
||||||
const index = (isNumericPropertyName(name) ? typeChecker.getIndexInfoOfType(subType, ts9.IndexKind.Number) : undefined) ?? typeChecker.getIndexInfoOfType(subType, ts9.IndexKind.String);
|
const index = (isNumericPropertyName(name) ? typeChecker.getIndexInfoOfType(subType, ts9.IndexKind.Number) : undefined) ?? typeChecker.getIndexInfoOfType(subType, ts9.IndexKind.String);
|
||||||
if (index?.isReadonly) {
|
if (index?.isReadonly) {
|
||||||
|
|
@ -1058,14 +1059,16 @@ function isPropertyReadonlyInType(type, name, typeChecker) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
function isThenableType(typeChecker, node, type = typeChecker.getTypeAtLocation(node)) {
|
function isThenableType(typeChecker, node, type = typeChecker.getTypeAtLocation(node)) {
|
||||||
for (const typePart of unionTypeParts(typeChecker.getApparentType(type))) {
|
for (const constituent of unionConstituents(
|
||||||
const then = typePart.getProperty("then");
|
typeChecker.getApparentType(type)
|
||||||
|
)) {
|
||||||
|
const then = constituent.getProperty("then");
|
||||||
if (then === undefined) {
|
if (then === undefined) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const thenType = typeChecker.getTypeOfSymbolAtLocation(then, node);
|
const thenType = typeChecker.getTypeOfSymbolAtLocation(then, node);
|
||||||
for (const subTypePart of unionTypeParts(thenType)) {
|
for (const subConstituent of unionConstituents(thenType)) {
|
||||||
for (const signature of subTypePart.getCallSignatures()) {
|
for (const signature of subConstituent.getCallSignatures()) {
|
||||||
if (signature.parameters.length !== 0 && isCallback(typeChecker, signature.parameters[0], node)) {
|
if (signature.parameters.length !== 0 && isCallback(typeChecker, signature.parameters[0], node)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -1079,6 +1082,9 @@ function symbolHasReadonlyDeclaration(symbol, typeChecker) {
|
||||||
(node) => isModifierFlagSet(node, ts9.ModifierFlags.Readonly) || ts9.isVariableDeclaration(node) && isNodeFlagSet(node.parent, ts9.NodeFlags.Const) || ts9.isCallExpression(node) && isReadonlyAssignmentDeclaration(node, typeChecker) || ts9.isEnumMember(node) || (ts9.isPropertyAssignment(node) || ts9.isShorthandPropertyAssignment(node)) && isInConstContext(node, typeChecker)
|
(node) => isModifierFlagSet(node, ts9.ModifierFlags.Readonly) || ts9.isVariableDeclaration(node) && isNodeFlagSet(node.parent, ts9.NodeFlags.Const) || ts9.isCallExpression(node) && isReadonlyAssignmentDeclaration(node, typeChecker) || ts9.isEnumMember(node) || (ts9.isPropertyAssignment(node) || ts9.isShorthandPropertyAssignment(node)) && isInConstContext(node, typeChecker)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
function typeConstituents(type) {
|
||||||
|
return isIntersectionType(type) || isUnionType(type) ? type.types : [type];
|
||||||
|
}
|
||||||
function typeIsLiteral(type) {
|
function typeIsLiteral(type) {
|
||||||
if (isTsVersionAtLeast(5, 0)) {
|
if (isTsVersionAtLeast(5, 0)) {
|
||||||
return type.isLiteral();
|
return type.isLiteral();
|
||||||
|
|
@ -1089,12 +1095,11 @@ function typeIsLiteral(type) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function typeParts(type) {
|
var typeParts = typeConstituents;
|
||||||
return isIntersectionType(type) || isUnionType(type) ? type.types : [type];
|
function unionConstituents(type) {
|
||||||
}
|
|
||||||
function unionTypeParts(type) {
|
|
||||||
return isUnionType(type) ? type.types : [type];
|
return isUnionType(type) ? type.types : [type];
|
||||||
}
|
}
|
||||||
|
var unionTypeParts = unionConstituents;
|
||||||
function isCallback(typeChecker, param, node) {
|
function isCallback(typeChecker, param, node) {
|
||||||
let type = typeChecker.getApparentType(
|
let type = typeChecker.getApparentType(
|
||||||
typeChecker.getTypeOfSymbolAtLocation(param, node)
|
typeChecker.getTypeOfSymbolAtLocation(param, node)
|
||||||
|
|
@ -1105,7 +1110,7 @@ function isCallback(typeChecker, param, node) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const subType of unionTypeParts(type)) {
|
for (const subType of unionConstituents(type)) {
|
||||||
if (subType.getCallSignatures().length !== 0) {
|
if (subType.getCallSignatures().length !== 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -1139,17 +1144,17 @@ function isReadonlyPropertyFromMappedType(type, name, typeChecker) {
|
||||||
return modifiersType && isPropertyReadonlyInType(modifiersType, name, typeChecker);
|
return modifiersType && isPropertyReadonlyInType(modifiersType, name, typeChecker);
|
||||||
}
|
}
|
||||||
function isReadonlyPropertyIntersection(type, name, typeChecker) {
|
function isReadonlyPropertyIntersection(type, name, typeChecker) {
|
||||||
const typeParts2 = isIntersectionType(type) ? type.types : [type];
|
const constituents = intersectionConstituents(type);
|
||||||
return typeParts2.some((subType) => {
|
return constituents.some((constituent) => {
|
||||||
const prop = getPropertyOfType(subType, name);
|
const prop = getPropertyOfType(constituent, name);
|
||||||
if (prop === undefined) {
|
if (prop === undefined) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (prop.flags & ts9.SymbolFlags.Transient) {
|
if (prop.flags & ts9.SymbolFlags.Transient) {
|
||||||
if (/^(?:[1-9]\d*|0)$/.test(name) && isTupleTypeReference(subType)) {
|
if (/^(?:[1-9]\d*|0)$/.test(name) && isTupleTypeReference(constituent)) {
|
||||||
return subType.target.readonly;
|
return constituent.target.readonly;
|
||||||
}
|
}
|
||||||
switch (isReadonlyPropertyFromMappedType(subType, name, typeChecker)) {
|
switch (isReadonlyPropertyFromMappedType(constituent, name, typeChecker)) {
|
||||||
case false:
|
case false:
|
||||||
return false;
|
return false;
|
||||||
case true:
|
case true:
|
||||||
|
|
@ -2075,4 +2080,4 @@ function collectVariableUsage(sourceFile) {
|
||||||
return new UsageWalker().getUsage(sourceFile);
|
return new UsageWalker().getUsage(sourceFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
export { AccessKind, DeclarationDomain, UsageDomain, collectVariableUsage, forEachComment, forEachToken, getAccessKind, getCallSignaturesOfType, getPropertyOfType, getWellKnownSymbolPropertyOfType, hasDecorators, hasExpressionInitializer, hasInitializer, hasJSDoc, hasModifiers, hasType, hasTypeArguments, includesModifier, intersectionTypeParts, isAbstractKeyword, isAccessExpression, isAccessibilityModifier, isAccessorDeclaration, isAccessorKeyword, isAnyKeyword, isArrayBindingElement, isArrayBindingOrAssignmentPattern, isAssertKeyword, isAssertsKeyword, isAssignmentKind, isAssignmentPattern, isAsyncKeyword, isAwaitKeyword, isBigIntKeyword, isBigIntLiteralType, isBindingOrAssignmentElementRestIndicator, isBindingOrAssignmentElementTarget, isBindingOrAssignmentPattern, isBindingPattern, isBlockLike, isBooleanKeyword, isBooleanLiteral, isBooleanLiteralType, isClassLikeDeclaration, isClassMemberModifier, isColonToken, isCompilerOptionEnabled, isConditionalType, isConstAssertionExpression, isConstKeyword, isDeclarationName, isDeclarationWithTypeParameterChildren, isDeclarationWithTypeParameters, isDeclareKeyword, isDefaultKeyword, isDestructuringPattern, isDotToken, isEndOfFileToken, isEntityNameExpression, isEntityNameOrEntityNameExpression, isEnumType, isEqualsGreaterThanToken, isEqualsToken, isEvolvingArrayType, isExclamationToken, isExportKeyword, isFalseKeyword, isFalseLiteral, isFalseLiteralType, isFalsyType, isForInOrOfStatement, isFreshableIntrinsicType, isFreshableType, isFunctionLikeDeclaration, isFunctionScopeBoundary, isImportExpression, isImportKeyword, isInKeyword, isIndexType, isIndexedAccessType, isInstantiableType, isIntersectionType, isIntrinsicAnyType, isIntrinsicBigIntType, isIntrinsicBooleanType, isIntrinsicESSymbolType, isIntrinsicErrorType, isIntrinsicNeverType, isIntrinsicNonPrimitiveType, isIntrinsicNullType, isIntrinsicNumberType, isIntrinsicStringType, isIntrinsicType, isIntrinsicUndefinedType, isIntrinsicUnknownType, isIntrinsicVoidType, isIterationStatement, isJSDocComment, isJSDocNamespaceBody, isJSDocNamespaceDeclaration, isJSDocText, isJSDocTypeReferencingNode, isJsonMinusNumericLiteral, isJsonObjectExpression, isJsxAttributeLike, isJsxAttributeValue, isJsxChild, isJsxTagNameExpression, isJsxTagNamePropertyAccess, isLiteralToken, isLiteralType, isModifierFlagSet, isModuleBody, isModuleName, isModuleReference, isNamedDeclarationWithName, isNamedImportBindings, isNamedImportsOrExports, isNamespaceBody, isNamespaceDeclaration, isNeverKeyword, isNodeFlagSet, isNullKeyword, isNullLiteral, isNumberKeyword, isNumberLiteralType, isNumericOrStringLikeLiteral, isNumericPropertyName, isObjectBindingOrAssignmentElement, isObjectBindingOrAssignmentPattern, isObjectFlagSet, isObjectKeyword, isObjectType, isObjectTypeDeclaration, isOutKeyword, isOverrideKeyword, isParameterPropertyModifier, isPrivateKeyword, isPropertyAccessEntityNameExpression, isPropertyNameLiteral, isPropertyReadonlyInType, isProtectedKeyword, isPseudoLiteralToken, isPublicKeyword, isQuestionDotToken, isQuestionToken, isReadonlyKeyword, isSignatureDeclaration, isStaticKeyword, isStrictCompilerOptionEnabled, isStringKeyword, isStringLiteralType, isStringMappingType, isSubstitutionType, isSuperElementAccessExpression, isSuperExpression, isSuperKeyword, isSuperProperty, isSuperPropertyAccessExpression, isSymbolFlagSet, isSymbolKeyword, isSyntaxList, isTemplateLiteralType, isThenableType, isThisExpression, isThisKeyword, isTransientSymbolLinksFlagSet, isTrueKeyword, isTrueLiteral, isTrueLiteralType, isTupleType, isTupleTypeReference, isTypeFlagSet, isTypeOnlyCompatibleAliasDeclaration, isTypeParameter, isTypeReference, isTypeReferenceType, isTypeVariable, isUndefinedKeyword, isUnionOrIntersectionType, isUnionOrIntersectionTypeNode, isUnionType, isUniqueESSymbolType, isUnknownKeyword, isValidPropertyAccess, isVariableLikeDeclaration, isVoidKeyword, symbolHasReadonlyDeclaration, typeIsLiteral, typeParts, unionTypeParts };
|
export { AccessKind, DeclarationDomain, UsageDomain, collectVariableUsage, forEachComment, forEachToken, getAccessKind, getCallSignaturesOfType, getPropertyOfType, getWellKnownSymbolPropertyOfType, hasDecorators, hasExpressionInitializer, hasInitializer, hasJSDoc, hasModifiers, hasType, hasTypeArguments, includesModifier, intersectionConstituents, intersectionTypeParts, isAbstractKeyword, isAccessExpression, isAccessibilityModifier, isAccessorDeclaration, isAccessorKeyword, isAnyKeyword, isArrayBindingElement, isArrayBindingOrAssignmentPattern, isAssertKeyword, isAssertsKeyword, isAssignmentKind, isAssignmentPattern, isAsyncKeyword, isAwaitKeyword, isBigIntKeyword, isBigIntLiteralType, isBindingOrAssignmentElementRestIndicator, isBindingOrAssignmentElementTarget, isBindingOrAssignmentPattern, isBindingPattern, isBlockLike, isBooleanKeyword, isBooleanLiteral, isBooleanLiteralType, isClassLikeDeclaration, isClassMemberModifier, isColonToken, isCompilerOptionEnabled, isConditionalType, isConstAssertionExpression, isConstKeyword, isDeclarationName, isDeclarationWithTypeParameterChildren, isDeclarationWithTypeParameters, isDeclareKeyword, isDefaultKeyword, isDestructuringPattern, isDotToken, isEndOfFileToken, isEntityNameExpression, isEntityNameOrEntityNameExpression, isEnumType, isEqualsGreaterThanToken, isEqualsToken, isEvolvingArrayType, isExclamationToken, isExportKeyword, isFalseKeyword, isFalseLiteral, isFalseLiteralType, isFalsyType, isForInOrOfStatement, isFreshableIntrinsicType, isFreshableType, isFunctionLikeDeclaration, isFunctionScopeBoundary, isImportExpression, isImportKeyword, isInKeyword, isIndexType, isIndexedAccessType, isInstantiableType, isIntersectionType, isIntrinsicAnyType, isIntrinsicBigIntType, isIntrinsicBooleanType, isIntrinsicESSymbolType, isIntrinsicErrorType, isIntrinsicNeverType, isIntrinsicNonPrimitiveType, isIntrinsicNullType, isIntrinsicNumberType, isIntrinsicStringType, isIntrinsicType, isIntrinsicUndefinedType, isIntrinsicUnknownType, isIntrinsicVoidType, isIterationStatement, isJSDocComment, isJSDocNamespaceBody, isJSDocNamespaceDeclaration, isJSDocText, isJSDocTypeReferencingNode, isJsonMinusNumericLiteral, isJsonObjectExpression, isJsxAttributeLike, isJsxAttributeValue, isJsxChild, isJsxTagNameExpression, isJsxTagNamePropertyAccess, isLiteralToken, isLiteralType, isModifierFlagSet, isModuleBody, isModuleName, isModuleReference, isNamedDeclarationWithName, isNamedImportBindings, isNamedImportsOrExports, isNamespaceBody, isNamespaceDeclaration, isNeverKeyword, isNodeFlagSet, isNullKeyword, isNullLiteral, isNumberKeyword, isNumberLiteralType, isNumericOrStringLikeLiteral, isNumericPropertyName, isObjectBindingOrAssignmentElement, isObjectBindingOrAssignmentPattern, isObjectFlagSet, isObjectKeyword, isObjectType, isObjectTypeDeclaration, isOutKeyword, isOverrideKeyword, isParameterPropertyModifier, isPrivateKeyword, isPropertyAccessEntityNameExpression, isPropertyNameLiteral, isPropertyReadonlyInType, isProtectedKeyword, isPseudoLiteralToken, isPublicKeyword, isQuestionDotToken, isQuestionToken, isReadonlyKeyword, isSignatureDeclaration, isStaticKeyword, isStrictCompilerOptionEnabled, isStringKeyword, isStringLiteralType, isStringMappingType, isSubstitutionType, isSuperElementAccessExpression, isSuperExpression, isSuperKeyword, isSuperProperty, isSuperPropertyAccessExpression, isSymbolFlagSet, isSymbolKeyword, isSyntaxList, isTemplateLiteralType, isThenableType, isThisExpression, isThisKeyword, isTransientSymbolLinksFlagSet, isTrueKeyword, isTrueLiteral, isTrueLiteralType, isTupleType, isTupleTypeReference, isTypeFlagSet, isTypeOnlyCompatibleAliasDeclaration, isTypeParameter, isTypeReference, isTypeReferenceType, isTypeVariable, isUndefinedKeyword, isUnionOrIntersectionType, isUnionOrIntersectionTypeNode, isUnionType, isUniqueESSymbolType, isUnknownKeyword, isValidPropertyAccess, isVariableLikeDeclaration, isVoidKeyword, symbolHasReadonlyDeclaration, typeConstituents, typeIsLiteral, typeParts, unionConstituents, unionTypeParts };
|
||||||
|
|
|
||||||
11
node_modules/@typescript-eslint/parser/node_modules/ts-api-utils/package.json
generated
vendored
11
node_modules/@typescript-eslint/parser/node_modules/ts-api-utils/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "ts-api-utils",
|
"name": "ts-api-utils",
|
||||||
"version": "2.0.1",
|
"version": "2.1.0",
|
||||||
"description": "Utility functions for working with TypeScript's API. Successor to the wonderful tsutils. 🛠️️",
|
"description": "Utility functions for working with TypeScript's API. Successor to the wonderful tsutils. 🛠️️",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
@ -37,7 +37,6 @@
|
||||||
"lint": "eslint . --max-warnings 0",
|
"lint": "eslint . --max-warnings 0",
|
||||||
"lint:docs": "typedoc --validation --treatValidationWarningsAsErrors",
|
"lint:docs": "typedoc --validation --treatValidationWarningsAsErrors",
|
||||||
"lint:knip": "knip",
|
"lint:knip": "knip",
|
||||||
"lint:knip:production": "knip --production",
|
|
||||||
"lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line",
|
"lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line",
|
||||||
"lint:packages": "pnpm dedupe --check",
|
"lint:packages": "pnpm dedupe --check",
|
||||||
"lint:spelling": "cspell \"**\" \".github/**/*\"",
|
"lint:spelling": "cspell \"**\" \".github/**/*\"",
|
||||||
|
|
@ -72,10 +71,10 @@
|
||||||
"eslint-plugin-yml": "^1.16.0",
|
"eslint-plugin-yml": "^1.16.0",
|
||||||
"husky": "^9.1.7",
|
"husky": "^9.1.7",
|
||||||
"jsonc-eslint-parser": "^2.4.0",
|
"jsonc-eslint-parser": "^2.4.0",
|
||||||
"knip": "^5.43.6",
|
"knip": "^5.46.0",
|
||||||
"lint-staged": "^15.4.3",
|
"lint-staged": "^15.4.3",
|
||||||
"markdownlint": "^0.37.4",
|
"markdownlint": "^0.37.4",
|
||||||
"markdownlint-cli": "^0.43.0",
|
"markdownlint-cli": "^0.44.0",
|
||||||
"prettier": "^3.4.2",
|
"prettier": "^3.4.2",
|
||||||
"prettier-plugin-curly": "^0.3.1",
|
"prettier-plugin-curly": "^0.3.1",
|
||||||
"prettier-plugin-packagejson": "^2.5.8",
|
"prettier-plugin-packagejson": "^2.5.8",
|
||||||
|
|
@ -90,12 +89,12 @@
|
||||||
"typedoc-plugin-mdn-links": "^4.0.10",
|
"typedoc-plugin-mdn-links": "^4.0.10",
|
||||||
"typescript": "^5.7.3",
|
"typescript": "^5.7.3",
|
||||||
"typescript-eslint": "^8.22.0",
|
"typescript-eslint": "^8.22.0",
|
||||||
"vitest": "^2.1.8"
|
"vitest": "^3.0.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"typescript": ">=4.8.4"
|
"typescript": ">=4.8.4"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@9.15.3",
|
"packageManager": "pnpm@9.15.9",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.12"
|
"node": ">=18.12"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
10
node_modules/@typescript-eslint/parser/package.json
generated
vendored
10
node_modules/@typescript-eslint/parser/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@typescript-eslint/parser",
|
"name": "@typescript-eslint/parser",
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"description": "An ESLint custom parser which leverages TypeScript ESTree",
|
"description": "An ESLint custom parser which leverages TypeScript ESTree",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
|
@ -54,10 +54,10 @@
|
||||||
"typescript": ">=4.8.4 <5.9.0"
|
"typescript": ">=4.8.4 <5.9.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/scope-manager": "8.26.1",
|
"@typescript-eslint/scope-manager": "8.28.0",
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"@typescript-eslint/typescript-estree": "8.26.1",
|
"@typescript-eslint/typescript-estree": "8.28.0",
|
||||||
"@typescript-eslint/visitor-keys": "8.26.1",
|
"@typescript-eslint/visitor-keys": "8.28.0",
|
||||||
"debug": "^4.3.4"
|
"debug": "^4.3.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@typescript-eslint/scope-manager",
|
"name": "@typescript-eslint/scope-manager",
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"description": "TypeScript scope analyser for ESLint",
|
"description": "TypeScript scope analyser for ESLint",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
|
@ -47,12 +47,12 @@
|
||||||
"check-types": "npx nx typecheck"
|
"check-types": "npx nx typecheck"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"@typescript-eslint/visitor-keys": "8.26.1"
|
"@typescript-eslint/visitor-keys": "8.28.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@jest/types": "29.6.3",
|
"@jest/types": "29.6.3",
|
||||||
"@typescript-eslint/typescript-estree": "8.26.1",
|
"@typescript-eslint/typescript-estree": "8.28.0",
|
||||||
"glob": "*",
|
"glob": "*",
|
||||||
"jest": "29.7.0",
|
"jest": "29.7.0",
|
||||||
"jest-specific-snapshot": "*",
|
"jest-specific-snapshot": "*",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@typescript-eslint/types",
|
"name": "@typescript-eslint/types",
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"description": "Types for the TypeScript-ESTree AST spec",
|
"description": "Types for the TypeScript-ESTree AST spec",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EACV,aAAa,EACb,2BAA2B,EAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAoB,MAAM,EAAE,MAAM,aAAa,CAAC;AAmCtE,MAAM,WAAW,gBAAgB;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,kCAAkC,CAAC,EAAE,OAAO,CAAC;CAC9C;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,wBAAwB,GAAG,EAAE,CAAC,sBAAsB,GAC1D,OAAO,CAMT;AAED,MAAM,WAAW,OAAO;IACtB,qBAAqB,EAAE,2BAA2B,CAAC;IACnD,qBAAqB,EAAE,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;CAC7D;AAED,qBAAa,SAAS;;IACpB,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;IACpC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAiB;IACvD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IAC3C,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAiB;IAEvD;;;;;OAKG;gBACS,GAAG,EAAE,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAsZ1D,OAAO,CAAC,qBAAqB;IAsB7B,OAAO,CAAC,oCAAoC;IAe5C;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;IAiC9B,OAAO,CAAC,sBAAsB;IA4C9B;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAIpB;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAItB;;;;;;OAMG;IACH,OAAO,CAAC,qBAAqB;IAsB7B;;;;;OAKG;IACH,OAAO,CAAC,gDAAgD;IAexD;;;;OAIG;IACH,OAAO,CAAC,kDAAkD;IAmB1D;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAgBzB;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;IA8BjB,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,+BAA+B;IAgDvC;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IA8BzB,OAAO,CAAC,sBAAsB;IAoC9B;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAczB;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAwhFnB,OAAO,CAAC,UAAU;IAclB,cAAc,IAAI,QAAQ,CAAC,OAAO;IAIlC;;;;OAIG;IACH,OAAO,CAAC,UAAU;IA0FlB;;;OAGG;IACH,OAAO,CAAC,UAAU;IAgFlB,UAAU,IAAI,OAAO;IAOrB;;OAEG;IACH,OAAO,CAAC,uBAAuB;CAYhC"}
|
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EACV,aAAa,EACb,2BAA2B,EAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAoB,MAAM,EAAE,MAAM,aAAa,CAAC;AAmCtE,MAAM,WAAW,gBAAgB;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,kCAAkC,CAAC,EAAE,OAAO,CAAC;CAC9C;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,wBAAwB,GAAG,EAAE,CAAC,sBAAsB,GAC1D,OAAO,CAMT;AAED,MAAM,WAAW,OAAO;IACtB,qBAAqB,EAAE,2BAA2B,CAAC;IACnD,qBAAqB,EAAE,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;CAC7D;AAED,qBAAa,SAAS;;IACpB,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAgB;IACpC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAiB;IACvD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IAC3C,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAiB;IAEvD;;;;;OAKG;gBACS,GAAG,EAAE,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAsZ1D,OAAO,CAAC,qBAAqB;IAsB7B,OAAO,CAAC,oCAAoC;IAe5C;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;IAiC9B,OAAO,CAAC,sBAAsB;IA4C9B;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAIpB;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAItB;;;;;;OAMG;IACH,OAAO,CAAC,qBAAqB;IAsB7B;;;;;OAKG;IACH,OAAO,CAAC,gDAAgD;IAexD;;;;OAIG;IACH,OAAO,CAAC,kDAAkD;IAmB1D;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAgBzB;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;IA8BjB,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,+BAA+B;IAgDvC;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IA8BzB,OAAO,CAAC,sBAAsB;IAoC9B;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAczB;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAyhFnB,OAAO,CAAC,UAAU;IAclB,cAAc,IAAI,QAAQ,CAAC,OAAO;IAIlC;;;;OAIG;IACH,OAAO,CAAC,UAAU;IA0FlB;;;OAGG;IACH,OAAO,CAAC,UAAU;IAgFlB,UAAU,IAAI,OAAO;IAOrB;;OAEG;IACH,OAAO,CAAC,uBAAuB;CAYhC"}
|
||||||
|
|
@ -1402,6 +1402,7 @@ class Converter {
|
||||||
parameter = this.convertChild(node.name);
|
parameter = this.convertChild(node.name);
|
||||||
result = this.createNode(node, {
|
result = this.createNode(node, {
|
||||||
type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern,
|
type: ts_estree_1.AST_NODE_TYPES.AssignmentPattern,
|
||||||
|
range: [node.name.getStart(this.ast), node.initializer.end],
|
||||||
decorators: [],
|
decorators: [],
|
||||||
left: parameter,
|
left: parameter,
|
||||||
optional: false,
|
optional: false,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@typescript-eslint/typescript-estree",
|
"name": "@typescript-eslint/typescript-estree",
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
|
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
|
@ -55,8 +55,8 @@
|
||||||
"check-types": "npx nx typecheck"
|
"check-types": "npx nx typecheck"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"@typescript-eslint/visitor-keys": "8.26.1",
|
"@typescript-eslint/visitor-keys": "8.28.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"fast-glob": "^3.3.2",
|
"fast-glob": "^3.3.2",
|
||||||
"is-glob": "^4.0.3",
|
"is-glob": "^4.0.3",
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,66 @@ export interface RuleMetaDataDocs {
|
||||||
*/
|
*/
|
||||||
url?: string;
|
url?: string;
|
||||||
}
|
}
|
||||||
|
export interface ExternalSpecifier {
|
||||||
|
/**
|
||||||
|
* Name of the referenced plugin / rule.
|
||||||
|
*/
|
||||||
|
name?: string;
|
||||||
|
/**
|
||||||
|
* URL pointing to documentation for the plugin / rule.
|
||||||
|
*/
|
||||||
|
url?: string;
|
||||||
|
}
|
||||||
|
export interface ReplacedByInfo {
|
||||||
|
/**
|
||||||
|
* General message presented to the user, e.g. how to replace the rule
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* URL to more information about this replacement in general
|
||||||
|
*/
|
||||||
|
url?: string;
|
||||||
|
/**
|
||||||
|
* Name should be "eslint" if the replacement is an ESLint core rule. Omit
|
||||||
|
* the property if the replacement is in the same plugin.
|
||||||
|
*/
|
||||||
|
plugin?: ExternalSpecifier;
|
||||||
|
/**
|
||||||
|
* Name and documentation of the replacement rule
|
||||||
|
*/
|
||||||
|
rule?: ExternalSpecifier;
|
||||||
|
}
|
||||||
|
export interface DeprecatedInfo {
|
||||||
|
/**
|
||||||
|
* General message presented to the user, e.g. for the key rule why the rule
|
||||||
|
* is deprecated or for info how to replace the rule.
|
||||||
|
*/
|
||||||
|
message?: string;
|
||||||
|
/**
|
||||||
|
* URL to more information about this deprecation in general.
|
||||||
|
*/
|
||||||
|
url?: string;
|
||||||
|
/**
|
||||||
|
* An empty array explicitly states that there is no replacement.
|
||||||
|
*/
|
||||||
|
replacedBy?: ReplacedByInfo[];
|
||||||
|
/**
|
||||||
|
* The package version since when the rule is deprecated (should use full
|
||||||
|
* semver without a leading "v").
|
||||||
|
*/
|
||||||
|
deprecatedSince?: string;
|
||||||
|
/**
|
||||||
|
* The estimated version when the rule is removed (probably the next major
|
||||||
|
* version). null means the rule is "frozen" (will be available but will not
|
||||||
|
* be changed).
|
||||||
|
*/
|
||||||
|
availableUntil?: string | null;
|
||||||
|
}
|
||||||
export interface RuleMetaData<MessageIds extends string, PluginDocs = unknown, Options extends readonly unknown[] = []> {
|
export interface RuleMetaData<MessageIds extends string, PluginDocs = unknown, Options extends readonly unknown[] = []> {
|
||||||
/**
|
/**
|
||||||
* True if the rule is deprecated, false otherwise
|
* True if the rule is deprecated, false otherwise
|
||||||
*/
|
*/
|
||||||
deprecated?: boolean;
|
deprecated?: boolean | DeprecatedInfo;
|
||||||
/**
|
/**
|
||||||
* Documentation for the rule
|
* Documentation for the rule
|
||||||
*/
|
*/
|
||||||
|
|
@ -45,6 +100,8 @@ export interface RuleMetaData<MessageIds extends string, PluginDocs = unknown, O
|
||||||
messages: Record<MessageIds, string>;
|
messages: Record<MessageIds, string>;
|
||||||
/**
|
/**
|
||||||
* The name of the rule this rule was replaced by, if it was deprecated.
|
* The name of the rule this rule was replaced by, if it was deprecated.
|
||||||
|
*
|
||||||
|
* @deprecated since eslint 9.21.0, in favor of `RuleMetaData#deprecated.replacedBy`
|
||||||
*/
|
*/
|
||||||
replacedBy?: readonly string[];
|
replacedBy?: readonly string[];
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@typescript-eslint/utils",
|
"name": "@typescript-eslint/utils",
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"description": "Utilities for working with TypeScript + ESLint together",
|
"description": "Utilities for working with TypeScript + ESLint together",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
|
@ -65,9 +65,9 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint-community/eslint-utils": "^4.4.0",
|
"@eslint-community/eslint-utils": "^4.4.0",
|
||||||
"@typescript-eslint/scope-manager": "8.26.1",
|
"@typescript-eslint/scope-manager": "8.28.0",
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"@typescript-eslint/typescript-estree": "8.26.1"
|
"@typescript-eslint/typescript-estree": "8.28.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"eslint": "^8.57.0 || ^9.0.0",
|
"eslint": "^8.57.0 || ^9.0.0",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@typescript-eslint/visitor-keys",
|
"name": "@typescript-eslint/visitor-keys",
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"description": "Visitor keys used to help traverse the TypeScript-ESTree AST",
|
"description": "Visitor keys used to help traverse the TypeScript-ESTree AST",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
"check-types": "npx nx typecheck"
|
"check-types": "npx nx typecheck"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/types": "8.26.1",
|
"@typescript-eslint/types": "8.28.0",
|
||||||
"eslint-visitor-keys": "^4.2.0"
|
"eslint-visitor-keys": "^4.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
||||||
4
node_modules/@typescript-eslint/type-utils/node_modules/ts-api-utils/README.md
generated
vendored
4
node_modules/@typescript-eslint/type-utils/node_modules/ts-api-utils/README.md
generated
vendored
|
|
@ -9,7 +9,7 @@
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<!-- prettier-ignore-start -->
|
<!-- prettier-ignore-start -->
|
||||||
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
||||||
<img alt="All Contributors: 8 👪" src="https://img.shields.io/badge/all_contributors-8_👪-21bb42.svg" />
|
<img alt="All Contributors: 10 👪" src="https://img.shields.io/badge/all_contributors-10_👪-21bb42.svg" />
|
||||||
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
||||||
<!-- prettier-ignore-end -->
|
<!-- prettier-ignore-end -->
|
||||||
<a href="https://github.com/JoshuaKGoldberg/ts-api-utils/blob/main/.github/CODE_OF_CONDUCT.md" target="_blank"><img alt="🤝 Code of Conduct: Kept" src="https://img.shields.io/badge/%F0%9F%A4%9D_code_of_conduct-kept-21bb42" /></a>
|
<a href="https://github.com/JoshuaKGoldberg/ts-api-utils/blob/main/.github/CODE_OF_CONDUCT.md" target="_blank"><img alt="🤝 Code of Conduct: Kept" src="https://img.shields.io/badge/%F0%9F%A4%9D_code_of_conduct-kept-21bb42" /></a>
|
||||||
|
|
@ -67,6 +67,8 @@ Many thanks to [@ajafff](https://github.com/ajafff) for creating the original [`
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/RebeccaStevens"><img src="https://avatars.githubusercontent.com/u/7224206?v=4?s=100" width="100px;" alt="Rebecca Stevens"/><br /><sub><b>Rebecca Stevens</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/ts-api-utils/issues?q=author%3ARebeccaStevens" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Code">💻</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Documentation">📖</a> <a href="#projectManagement-RebeccaStevens" title="Project Management">📆</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Tests">⚠️</a> <a href="#tool-RebeccaStevens" title="Tools">🔧</a> <a href="#infra-RebeccaStevens" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-RebeccaStevens" title="Maintenance">🚧</a> <a href="#ideas-RebeccaStevens" title="Ideas, Planning, & Feedback">🤔</a></td>
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/RebeccaStevens"><img src="https://avatars.githubusercontent.com/u/7224206?v=4?s=100" width="100px;" alt="Rebecca Stevens"/><br /><sub><b>Rebecca Stevens</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/ts-api-utils/issues?q=author%3ARebeccaStevens" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Code">💻</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Documentation">📖</a> <a href="#projectManagement-RebeccaStevens" title="Project Management">📆</a> <a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=RebeccaStevens" title="Tests">⚠️</a> <a href="#tool-RebeccaStevens" title="Tools">🔧</a> <a href="#infra-RebeccaStevens" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-RebeccaStevens" title="Maintenance">🚧</a> <a href="#ideas-RebeccaStevens" title="Ideas, Planning, & Feedback">🤔</a></td>
|
||||||
|
<td align="center" valign="top" width="14.28%"><a href="https://twitter.com/ronenamiel"><img src="https://avatars.githubusercontent.com/u/5484230?v=4?s=100" width="100px;" alt="Ronen Amiel"/><br /><sub><b>Ronen Amiel</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=ronami" title="Tests">⚠️</a></td>
|
||||||
|
<td align="center" valign="top" width="14.28%"><a href="https://www.fiskercheung.com/"><img src="https://avatars.githubusercontent.com/u/172584?v=4?s=100" width="100px;" alt="fisker Cheung"/><br /><sub><b>fisker Cheung</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/ts-api-utils/commits?author=fisker" title="Code">💻</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
42
node_modules/@typescript-eslint/type-utils/node_modules/ts-api-utils/lib/index.cjs
generated
vendored
42
node_modules/@typescript-eslint/type-utils/node_modules/ts-api-utils/lib/index.cjs
generated
vendored
|
|
@ -1024,9 +1024,10 @@ function isInConstContext(node, typeChecker) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// src/types/utilities.ts
|
// src/types/utilities.ts
|
||||||
function intersectionTypeParts(type) {
|
function intersectionConstituents(type) {
|
||||||
return isIntersectionType(type) ? type.types : [type];
|
return isIntersectionType(type) ? type.types : [type];
|
||||||
}
|
}
|
||||||
|
var intersectionTypeParts = intersectionConstituents;
|
||||||
function isFalsyType(type) {
|
function isFalsyType(type) {
|
||||||
if (isTypeFlagSet(
|
if (isTypeFlagSet(
|
||||||
type,
|
type,
|
||||||
|
|
@ -1046,7 +1047,7 @@ function isFalsyType(type) {
|
||||||
function isPropertyReadonlyInType(type, name, typeChecker) {
|
function isPropertyReadonlyInType(type, name, typeChecker) {
|
||||||
let seenProperty = false;
|
let seenProperty = false;
|
||||||
let seenReadonlySignature = false;
|
let seenReadonlySignature = false;
|
||||||
for (const subType of unionTypeParts(type)) {
|
for (const subType of unionConstituents(type)) {
|
||||||
if (getPropertyOfType(subType, name) === undefined) {
|
if (getPropertyOfType(subType, name) === undefined) {
|
||||||
const index = (isNumericPropertyName(name) ? typeChecker.getIndexInfoOfType(subType, ts9__default.default.IndexKind.Number) : undefined) ?? typeChecker.getIndexInfoOfType(subType, ts9__default.default.IndexKind.String);
|
const index = (isNumericPropertyName(name) ? typeChecker.getIndexInfoOfType(subType, ts9__default.default.IndexKind.Number) : undefined) ?? typeChecker.getIndexInfoOfType(subType, ts9__default.default.IndexKind.String);
|
||||||
if (index?.isReadonly) {
|
if (index?.isReadonly) {
|
||||||
|
|
@ -1064,14 +1065,16 @@ function isPropertyReadonlyInType(type, name, typeChecker) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
function isThenableType(typeChecker, node, type = typeChecker.getTypeAtLocation(node)) {
|
function isThenableType(typeChecker, node, type = typeChecker.getTypeAtLocation(node)) {
|
||||||
for (const typePart of unionTypeParts(typeChecker.getApparentType(type))) {
|
for (const constituent of unionConstituents(
|
||||||
const then = typePart.getProperty("then");
|
typeChecker.getApparentType(type)
|
||||||
|
)) {
|
||||||
|
const then = constituent.getProperty("then");
|
||||||
if (then === undefined) {
|
if (then === undefined) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const thenType = typeChecker.getTypeOfSymbolAtLocation(then, node);
|
const thenType = typeChecker.getTypeOfSymbolAtLocation(then, node);
|
||||||
for (const subTypePart of unionTypeParts(thenType)) {
|
for (const subConstituent of unionConstituents(thenType)) {
|
||||||
for (const signature of subTypePart.getCallSignatures()) {
|
for (const signature of subConstituent.getCallSignatures()) {
|
||||||
if (signature.parameters.length !== 0 && isCallback(typeChecker, signature.parameters[0], node)) {
|
if (signature.parameters.length !== 0 && isCallback(typeChecker, signature.parameters[0], node)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -1085,6 +1088,9 @@ function symbolHasReadonlyDeclaration(symbol, typeChecker) {
|
||||||
(node) => isModifierFlagSet(node, ts9__default.default.ModifierFlags.Readonly) || ts9__default.default.isVariableDeclaration(node) && isNodeFlagSet(node.parent, ts9__default.default.NodeFlags.Const) || ts9__default.default.isCallExpression(node) && isReadonlyAssignmentDeclaration(node, typeChecker) || ts9__default.default.isEnumMember(node) || (ts9__default.default.isPropertyAssignment(node) || ts9__default.default.isShorthandPropertyAssignment(node)) && isInConstContext(node, typeChecker)
|
(node) => isModifierFlagSet(node, ts9__default.default.ModifierFlags.Readonly) || ts9__default.default.isVariableDeclaration(node) && isNodeFlagSet(node.parent, ts9__default.default.NodeFlags.Const) || ts9__default.default.isCallExpression(node) && isReadonlyAssignmentDeclaration(node, typeChecker) || ts9__default.default.isEnumMember(node) || (ts9__default.default.isPropertyAssignment(node) || ts9__default.default.isShorthandPropertyAssignment(node)) && isInConstContext(node, typeChecker)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
function typeConstituents(type) {
|
||||||
|
return isIntersectionType(type) || isUnionType(type) ? type.types : [type];
|
||||||
|
}
|
||||||
function typeIsLiteral(type) {
|
function typeIsLiteral(type) {
|
||||||
if (isTsVersionAtLeast(5, 0)) {
|
if (isTsVersionAtLeast(5, 0)) {
|
||||||
return type.isLiteral();
|
return type.isLiteral();
|
||||||
|
|
@ -1095,12 +1101,11 @@ function typeIsLiteral(type) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function typeParts(type) {
|
var typeParts = typeConstituents;
|
||||||
return isIntersectionType(type) || isUnionType(type) ? type.types : [type];
|
function unionConstituents(type) {
|
||||||
}
|
|
||||||
function unionTypeParts(type) {
|
|
||||||
return isUnionType(type) ? type.types : [type];
|
return isUnionType(type) ? type.types : [type];
|
||||||
}
|
}
|
||||||
|
var unionTypeParts = unionConstituents;
|
||||||
function isCallback(typeChecker, param, node) {
|
function isCallback(typeChecker, param, node) {
|
||||||
let type = typeChecker.getApparentType(
|
let type = typeChecker.getApparentType(
|
||||||
typeChecker.getTypeOfSymbolAtLocation(param, node)
|
typeChecker.getTypeOfSymbolAtLocation(param, node)
|
||||||
|
|
@ -1111,7 +1116,7 @@ function isCallback(typeChecker, param, node) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const subType of unionTypeParts(type)) {
|
for (const subType of unionConstituents(type)) {
|
||||||
if (subType.getCallSignatures().length !== 0) {
|
if (subType.getCallSignatures().length !== 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -1145,17 +1150,17 @@ function isReadonlyPropertyFromMappedType(type, name, typeChecker) {
|
||||||
return modifiersType && isPropertyReadonlyInType(modifiersType, name, typeChecker);
|
return modifiersType && isPropertyReadonlyInType(modifiersType, name, typeChecker);
|
||||||
}
|
}
|
||||||
function isReadonlyPropertyIntersection(type, name, typeChecker) {
|
function isReadonlyPropertyIntersection(type, name, typeChecker) {
|
||||||
const typeParts2 = isIntersectionType(type) ? type.types : [type];
|
const constituents = intersectionConstituents(type);
|
||||||
return typeParts2.some((subType) => {
|
return constituents.some((constituent) => {
|
||||||
const prop = getPropertyOfType(subType, name);
|
const prop = getPropertyOfType(constituent, name);
|
||||||
if (prop === undefined) {
|
if (prop === undefined) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (prop.flags & ts9__default.default.SymbolFlags.Transient) {
|
if (prop.flags & ts9__default.default.SymbolFlags.Transient) {
|
||||||
if (/^(?:[1-9]\d*|0)$/.test(name) && isTupleTypeReference(subType)) {
|
if (/^(?:[1-9]\d*|0)$/.test(name) && isTupleTypeReference(constituent)) {
|
||||||
return subType.target.readonly;
|
return constituent.target.readonly;
|
||||||
}
|
}
|
||||||
switch (isReadonlyPropertyFromMappedType(subType, name, typeChecker)) {
|
switch (isReadonlyPropertyFromMappedType(constituent, name, typeChecker)) {
|
||||||
case false:
|
case false:
|
||||||
return false;
|
return false;
|
||||||
case true:
|
case true:
|
||||||
|
|
@ -2099,6 +2104,7 @@ exports.hasModifiers = hasModifiers;
|
||||||
exports.hasType = hasType;
|
exports.hasType = hasType;
|
||||||
exports.hasTypeArguments = hasTypeArguments;
|
exports.hasTypeArguments = hasTypeArguments;
|
||||||
exports.includesModifier = includesModifier;
|
exports.includesModifier = includesModifier;
|
||||||
|
exports.intersectionConstituents = intersectionConstituents;
|
||||||
exports.intersectionTypeParts = intersectionTypeParts;
|
exports.intersectionTypeParts = intersectionTypeParts;
|
||||||
exports.isAbstractKeyword = isAbstractKeyword;
|
exports.isAbstractKeyword = isAbstractKeyword;
|
||||||
exports.isAccessExpression = isAccessExpression;
|
exports.isAccessExpression = isAccessExpression;
|
||||||
|
|
@ -2269,6 +2275,8 @@ exports.isValidPropertyAccess = isValidPropertyAccess;
|
||||||
exports.isVariableLikeDeclaration = isVariableLikeDeclaration;
|
exports.isVariableLikeDeclaration = isVariableLikeDeclaration;
|
||||||
exports.isVoidKeyword = isVoidKeyword;
|
exports.isVoidKeyword = isVoidKeyword;
|
||||||
exports.symbolHasReadonlyDeclaration = symbolHasReadonlyDeclaration;
|
exports.symbolHasReadonlyDeclaration = symbolHasReadonlyDeclaration;
|
||||||
|
exports.typeConstituents = typeConstituents;
|
||||||
exports.typeIsLiteral = typeIsLiteral;
|
exports.typeIsLiteral = typeIsLiteral;
|
||||||
exports.typeParts = typeParts;
|
exports.typeParts = typeParts;
|
||||||
|
exports.unionConstituents = unionConstituents;
|
||||||
exports.unionTypeParts = unionTypeParts;
|
exports.unionTypeParts = unionTypeParts;
|
||||||
|
|
|
||||||
54
node_modules/@typescript-eslint/type-utils/node_modules/ts-api-utils/lib/index.d.cts
generated
vendored
54
node_modules/@typescript-eslint/type-utils/node_modules/ts-api-utils/lib/index.d.cts
generated
vendored
File diff suppressed because one or more lines are too long
54
node_modules/@typescript-eslint/type-utils/node_modules/ts-api-utils/lib/index.d.ts
generated
vendored
54
node_modules/@typescript-eslint/type-utils/node_modules/ts-api-utils/lib/index.d.ts
generated
vendored
File diff suppressed because one or more lines are too long
41
node_modules/@typescript-eslint/type-utils/node_modules/ts-api-utils/lib/index.js
generated
vendored
41
node_modules/@typescript-eslint/type-utils/node_modules/ts-api-utils/lib/index.js
generated
vendored
|
|
@ -1018,9 +1018,10 @@ function isInConstContext(node, typeChecker) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// src/types/utilities.ts
|
// src/types/utilities.ts
|
||||||
function intersectionTypeParts(type) {
|
function intersectionConstituents(type) {
|
||||||
return isIntersectionType(type) ? type.types : [type];
|
return isIntersectionType(type) ? type.types : [type];
|
||||||
}
|
}
|
||||||
|
var intersectionTypeParts = intersectionConstituents;
|
||||||
function isFalsyType(type) {
|
function isFalsyType(type) {
|
||||||
if (isTypeFlagSet(
|
if (isTypeFlagSet(
|
||||||
type,
|
type,
|
||||||
|
|
@ -1040,7 +1041,7 @@ function isFalsyType(type) {
|
||||||
function isPropertyReadonlyInType(type, name, typeChecker) {
|
function isPropertyReadonlyInType(type, name, typeChecker) {
|
||||||
let seenProperty = false;
|
let seenProperty = false;
|
||||||
let seenReadonlySignature = false;
|
let seenReadonlySignature = false;
|
||||||
for (const subType of unionTypeParts(type)) {
|
for (const subType of unionConstituents(type)) {
|
||||||
if (getPropertyOfType(subType, name) === undefined) {
|
if (getPropertyOfType(subType, name) === undefined) {
|
||||||
const index = (isNumericPropertyName(name) ? typeChecker.getIndexInfoOfType(subType, ts9.IndexKind.Number) : undefined) ?? typeChecker.getIndexInfoOfType(subType, ts9.IndexKind.String);
|
const index = (isNumericPropertyName(name) ? typeChecker.getIndexInfoOfType(subType, ts9.IndexKind.Number) : undefined) ?? typeChecker.getIndexInfoOfType(subType, ts9.IndexKind.String);
|
||||||
if (index?.isReadonly) {
|
if (index?.isReadonly) {
|
||||||
|
|
@ -1058,14 +1059,16 @@ function isPropertyReadonlyInType(type, name, typeChecker) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
function isThenableType(typeChecker, node, type = typeChecker.getTypeAtLocation(node)) {
|
function isThenableType(typeChecker, node, type = typeChecker.getTypeAtLocation(node)) {
|
||||||
for (const typePart of unionTypeParts(typeChecker.getApparentType(type))) {
|
for (const constituent of unionConstituents(
|
||||||
const then = typePart.getProperty("then");
|
typeChecker.getApparentType(type)
|
||||||
|
)) {
|
||||||
|
const then = constituent.getProperty("then");
|
||||||
if (then === undefined) {
|
if (then === undefined) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const thenType = typeChecker.getTypeOfSymbolAtLocation(then, node);
|
const thenType = typeChecker.getTypeOfSymbolAtLocation(then, node);
|
||||||
for (const subTypePart of unionTypeParts(thenType)) {
|
for (const subConstituent of unionConstituents(thenType)) {
|
||||||
for (const signature of subTypePart.getCallSignatures()) {
|
for (const signature of subConstituent.getCallSignatures()) {
|
||||||
if (signature.parameters.length !== 0 && isCallback(typeChecker, signature.parameters[0], node)) {
|
if (signature.parameters.length !== 0 && isCallback(typeChecker, signature.parameters[0], node)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -1079,6 +1082,9 @@ function symbolHasReadonlyDeclaration(symbol, typeChecker) {
|
||||||
(node) => isModifierFlagSet(node, ts9.ModifierFlags.Readonly) || ts9.isVariableDeclaration(node) && isNodeFlagSet(node.parent, ts9.NodeFlags.Const) || ts9.isCallExpression(node) && isReadonlyAssignmentDeclaration(node, typeChecker) || ts9.isEnumMember(node) || (ts9.isPropertyAssignment(node) || ts9.isShorthandPropertyAssignment(node)) && isInConstContext(node, typeChecker)
|
(node) => isModifierFlagSet(node, ts9.ModifierFlags.Readonly) || ts9.isVariableDeclaration(node) && isNodeFlagSet(node.parent, ts9.NodeFlags.Const) || ts9.isCallExpression(node) && isReadonlyAssignmentDeclaration(node, typeChecker) || ts9.isEnumMember(node) || (ts9.isPropertyAssignment(node) || ts9.isShorthandPropertyAssignment(node)) && isInConstContext(node, typeChecker)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
function typeConstituents(type) {
|
||||||
|
return isIntersectionType(type) || isUnionType(type) ? type.types : [type];
|
||||||
|
}
|
||||||
function typeIsLiteral(type) {
|
function typeIsLiteral(type) {
|
||||||
if (isTsVersionAtLeast(5, 0)) {
|
if (isTsVersionAtLeast(5, 0)) {
|
||||||
return type.isLiteral();
|
return type.isLiteral();
|
||||||
|
|
@ -1089,12 +1095,11 @@ function typeIsLiteral(type) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function typeParts(type) {
|
var typeParts = typeConstituents;
|
||||||
return isIntersectionType(type) || isUnionType(type) ? type.types : [type];
|
function unionConstituents(type) {
|
||||||
}
|
|
||||||
function unionTypeParts(type) {
|
|
||||||
return isUnionType(type) ? type.types : [type];
|
return isUnionType(type) ? type.types : [type];
|
||||||
}
|
}
|
||||||
|
var unionTypeParts = unionConstituents;
|
||||||
function isCallback(typeChecker, param, node) {
|
function isCallback(typeChecker, param, node) {
|
||||||
let type = typeChecker.getApparentType(
|
let type = typeChecker.getApparentType(
|
||||||
typeChecker.getTypeOfSymbolAtLocation(param, node)
|
typeChecker.getTypeOfSymbolAtLocation(param, node)
|
||||||
|
|
@ -1105,7 +1110,7 @@ function isCallback(typeChecker, param, node) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (const subType of unionTypeParts(type)) {
|
for (const subType of unionConstituents(type)) {
|
||||||
if (subType.getCallSignatures().length !== 0) {
|
if (subType.getCallSignatures().length !== 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -1139,17 +1144,17 @@ function isReadonlyPropertyFromMappedType(type, name, typeChecker) {
|
||||||
return modifiersType && isPropertyReadonlyInType(modifiersType, name, typeChecker);
|
return modifiersType && isPropertyReadonlyInType(modifiersType, name, typeChecker);
|
||||||
}
|
}
|
||||||
function isReadonlyPropertyIntersection(type, name, typeChecker) {
|
function isReadonlyPropertyIntersection(type, name, typeChecker) {
|
||||||
const typeParts2 = isIntersectionType(type) ? type.types : [type];
|
const constituents = intersectionConstituents(type);
|
||||||
return typeParts2.some((subType) => {
|
return constituents.some((constituent) => {
|
||||||
const prop = getPropertyOfType(subType, name);
|
const prop = getPropertyOfType(constituent, name);
|
||||||
if (prop === undefined) {
|
if (prop === undefined) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (prop.flags & ts9.SymbolFlags.Transient) {
|
if (prop.flags & ts9.SymbolFlags.Transient) {
|
||||||
if (/^(?:[1-9]\d*|0)$/.test(name) && isTupleTypeReference(subType)) {
|
if (/^(?:[1-9]\d*|0)$/.test(name) && isTupleTypeReference(constituent)) {
|
||||||
return subType.target.readonly;
|
return constituent.target.readonly;
|
||||||
}
|
}
|
||||||
switch (isReadonlyPropertyFromMappedType(subType, name, typeChecker)) {
|
switch (isReadonlyPropertyFromMappedType(constituent, name, typeChecker)) {
|
||||||
case false:
|
case false:
|
||||||
return false;
|
return false;
|
||||||
case true:
|
case true:
|
||||||
|
|
@ -2075,4 +2080,4 @@ function collectVariableUsage(sourceFile) {
|
||||||
return new UsageWalker().getUsage(sourceFile);
|
return new UsageWalker().getUsage(sourceFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
export { AccessKind, DeclarationDomain, UsageDomain, collectVariableUsage, forEachComment, forEachToken, getAccessKind, getCallSignaturesOfType, getPropertyOfType, getWellKnownSymbolPropertyOfType, hasDecorators, hasExpressionInitializer, hasInitializer, hasJSDoc, hasModifiers, hasType, hasTypeArguments, includesModifier, intersectionTypeParts, isAbstractKeyword, isAccessExpression, isAccessibilityModifier, isAccessorDeclaration, isAccessorKeyword, isAnyKeyword, isArrayBindingElement, isArrayBindingOrAssignmentPattern, isAssertKeyword, isAssertsKeyword, isAssignmentKind, isAssignmentPattern, isAsyncKeyword, isAwaitKeyword, isBigIntKeyword, isBigIntLiteralType, isBindingOrAssignmentElementRestIndicator, isBindingOrAssignmentElementTarget, isBindingOrAssignmentPattern, isBindingPattern, isBlockLike, isBooleanKeyword, isBooleanLiteral, isBooleanLiteralType, isClassLikeDeclaration, isClassMemberModifier, isColonToken, isCompilerOptionEnabled, isConditionalType, isConstAssertionExpression, isConstKeyword, isDeclarationName, isDeclarationWithTypeParameterChildren, isDeclarationWithTypeParameters, isDeclareKeyword, isDefaultKeyword, isDestructuringPattern, isDotToken, isEndOfFileToken, isEntityNameExpression, isEntityNameOrEntityNameExpression, isEnumType, isEqualsGreaterThanToken, isEqualsToken, isEvolvingArrayType, isExclamationToken, isExportKeyword, isFalseKeyword, isFalseLiteral, isFalseLiteralType, isFalsyType, isForInOrOfStatement, isFreshableIntrinsicType, isFreshableType, isFunctionLikeDeclaration, isFunctionScopeBoundary, isImportExpression, isImportKeyword, isInKeyword, isIndexType, isIndexedAccessType, isInstantiableType, isIntersectionType, isIntrinsicAnyType, isIntrinsicBigIntType, isIntrinsicBooleanType, isIntrinsicESSymbolType, isIntrinsicErrorType, isIntrinsicNeverType, isIntrinsicNonPrimitiveType, isIntrinsicNullType, isIntrinsicNumberType, isIntrinsicStringType, isIntrinsicType, isIntrinsicUndefinedType, isIntrinsicUnknownType, isIntrinsicVoidType, isIterationStatement, isJSDocComment, isJSDocNamespaceBody, isJSDocNamespaceDeclaration, isJSDocText, isJSDocTypeReferencingNode, isJsonMinusNumericLiteral, isJsonObjectExpression, isJsxAttributeLike, isJsxAttributeValue, isJsxChild, isJsxTagNameExpression, isJsxTagNamePropertyAccess, isLiteralToken, isLiteralType, isModifierFlagSet, isModuleBody, isModuleName, isModuleReference, isNamedDeclarationWithName, isNamedImportBindings, isNamedImportsOrExports, isNamespaceBody, isNamespaceDeclaration, isNeverKeyword, isNodeFlagSet, isNullKeyword, isNullLiteral, isNumberKeyword, isNumberLiteralType, isNumericOrStringLikeLiteral, isNumericPropertyName, isObjectBindingOrAssignmentElement, isObjectBindingOrAssignmentPattern, isObjectFlagSet, isObjectKeyword, isObjectType, isObjectTypeDeclaration, isOutKeyword, isOverrideKeyword, isParameterPropertyModifier, isPrivateKeyword, isPropertyAccessEntityNameExpression, isPropertyNameLiteral, isPropertyReadonlyInType, isProtectedKeyword, isPseudoLiteralToken, isPublicKeyword, isQuestionDotToken, isQuestionToken, isReadonlyKeyword, isSignatureDeclaration, isStaticKeyword, isStrictCompilerOptionEnabled, isStringKeyword, isStringLiteralType, isStringMappingType, isSubstitutionType, isSuperElementAccessExpression, isSuperExpression, isSuperKeyword, isSuperProperty, isSuperPropertyAccessExpression, isSymbolFlagSet, isSymbolKeyword, isSyntaxList, isTemplateLiteralType, isThenableType, isThisExpression, isThisKeyword, isTransientSymbolLinksFlagSet, isTrueKeyword, isTrueLiteral, isTrueLiteralType, isTupleType, isTupleTypeReference, isTypeFlagSet, isTypeOnlyCompatibleAliasDeclaration, isTypeParameter, isTypeReference, isTypeReferenceType, isTypeVariable, isUndefinedKeyword, isUnionOrIntersectionType, isUnionOrIntersectionTypeNode, isUnionType, isUniqueESSymbolType, isUnknownKeyword, isValidPropertyAccess, isVariableLikeDeclaration, isVoidKeyword, symbolHasReadonlyDeclaration, typeIsLiteral, typeParts, unionTypeParts };
|
export { AccessKind, DeclarationDomain, UsageDomain, collectVariableUsage, forEachComment, forEachToken, getAccessKind, getCallSignaturesOfType, getPropertyOfType, getWellKnownSymbolPropertyOfType, hasDecorators, hasExpressionInitializer, hasInitializer, hasJSDoc, hasModifiers, hasType, hasTypeArguments, includesModifier, intersectionConstituents, intersectionTypeParts, isAbstractKeyword, isAccessExpression, isAccessibilityModifier, isAccessorDeclaration, isAccessorKeyword, isAnyKeyword, isArrayBindingElement, isArrayBindingOrAssignmentPattern, isAssertKeyword, isAssertsKeyword, isAssignmentKind, isAssignmentPattern, isAsyncKeyword, isAwaitKeyword, isBigIntKeyword, isBigIntLiteralType, isBindingOrAssignmentElementRestIndicator, isBindingOrAssignmentElementTarget, isBindingOrAssignmentPattern, isBindingPattern, isBlockLike, isBooleanKeyword, isBooleanLiteral, isBooleanLiteralType, isClassLikeDeclaration, isClassMemberModifier, isColonToken, isCompilerOptionEnabled, isConditionalType, isConstAssertionExpression, isConstKeyword, isDeclarationName, isDeclarationWithTypeParameterChildren, isDeclarationWithTypeParameters, isDeclareKeyword, isDefaultKeyword, isDestructuringPattern, isDotToken, isEndOfFileToken, isEntityNameExpression, isEntityNameOrEntityNameExpression, isEnumType, isEqualsGreaterThanToken, isEqualsToken, isEvolvingArrayType, isExclamationToken, isExportKeyword, isFalseKeyword, isFalseLiteral, isFalseLiteralType, isFalsyType, isForInOrOfStatement, isFreshableIntrinsicType, isFreshableType, isFunctionLikeDeclaration, isFunctionScopeBoundary, isImportExpression, isImportKeyword, isInKeyword, isIndexType, isIndexedAccessType, isInstantiableType, isIntersectionType, isIntrinsicAnyType, isIntrinsicBigIntType, isIntrinsicBooleanType, isIntrinsicESSymbolType, isIntrinsicErrorType, isIntrinsicNeverType, isIntrinsicNonPrimitiveType, isIntrinsicNullType, isIntrinsicNumberType, isIntrinsicStringType, isIntrinsicType, isIntrinsicUndefinedType, isIntrinsicUnknownType, isIntrinsicVoidType, isIterationStatement, isJSDocComment, isJSDocNamespaceBody, isJSDocNamespaceDeclaration, isJSDocText, isJSDocTypeReferencingNode, isJsonMinusNumericLiteral, isJsonObjectExpression, isJsxAttributeLike, isJsxAttributeValue, isJsxChild, isJsxTagNameExpression, isJsxTagNamePropertyAccess, isLiteralToken, isLiteralType, isModifierFlagSet, isModuleBody, isModuleName, isModuleReference, isNamedDeclarationWithName, isNamedImportBindings, isNamedImportsOrExports, isNamespaceBody, isNamespaceDeclaration, isNeverKeyword, isNodeFlagSet, isNullKeyword, isNullLiteral, isNumberKeyword, isNumberLiteralType, isNumericOrStringLikeLiteral, isNumericPropertyName, isObjectBindingOrAssignmentElement, isObjectBindingOrAssignmentPattern, isObjectFlagSet, isObjectKeyword, isObjectType, isObjectTypeDeclaration, isOutKeyword, isOverrideKeyword, isParameterPropertyModifier, isPrivateKeyword, isPropertyAccessEntityNameExpression, isPropertyNameLiteral, isPropertyReadonlyInType, isProtectedKeyword, isPseudoLiteralToken, isPublicKeyword, isQuestionDotToken, isQuestionToken, isReadonlyKeyword, isSignatureDeclaration, isStaticKeyword, isStrictCompilerOptionEnabled, isStringKeyword, isStringLiteralType, isStringMappingType, isSubstitutionType, isSuperElementAccessExpression, isSuperExpression, isSuperKeyword, isSuperProperty, isSuperPropertyAccessExpression, isSymbolFlagSet, isSymbolKeyword, isSyntaxList, isTemplateLiteralType, isThenableType, isThisExpression, isThisKeyword, isTransientSymbolLinksFlagSet, isTrueKeyword, isTrueLiteral, isTrueLiteralType, isTupleType, isTupleTypeReference, isTypeFlagSet, isTypeOnlyCompatibleAliasDeclaration, isTypeParameter, isTypeReference, isTypeReferenceType, isTypeVariable, isUndefinedKeyword, isUnionOrIntersectionType, isUnionOrIntersectionTypeNode, isUnionType, isUniqueESSymbolType, isUnknownKeyword, isValidPropertyAccess, isVariableLikeDeclaration, isVoidKeyword, symbolHasReadonlyDeclaration, typeConstituents, typeIsLiteral, typeParts, unionConstituents, unionTypeParts };
|
||||||
|
|
|
||||||
11
node_modules/@typescript-eslint/type-utils/node_modules/ts-api-utils/package.json
generated
vendored
11
node_modules/@typescript-eslint/type-utils/node_modules/ts-api-utils/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "ts-api-utils",
|
"name": "ts-api-utils",
|
||||||
"version": "2.0.1",
|
"version": "2.1.0",
|
||||||
"description": "Utility functions for working with TypeScript's API. Successor to the wonderful tsutils. 🛠️️",
|
"description": "Utility functions for working with TypeScript's API. Successor to the wonderful tsutils. 🛠️️",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
@ -37,7 +37,6 @@
|
||||||
"lint": "eslint . --max-warnings 0",
|
"lint": "eslint . --max-warnings 0",
|
||||||
"lint:docs": "typedoc --validation --treatValidationWarningsAsErrors",
|
"lint:docs": "typedoc --validation --treatValidationWarningsAsErrors",
|
||||||
"lint:knip": "knip",
|
"lint:knip": "knip",
|
||||||
"lint:knip:production": "knip --production",
|
|
||||||
"lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line",
|
"lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line",
|
||||||
"lint:packages": "pnpm dedupe --check",
|
"lint:packages": "pnpm dedupe --check",
|
||||||
"lint:spelling": "cspell \"**\" \".github/**/*\"",
|
"lint:spelling": "cspell \"**\" \".github/**/*\"",
|
||||||
|
|
@ -72,10 +71,10 @@
|
||||||
"eslint-plugin-yml": "^1.16.0",
|
"eslint-plugin-yml": "^1.16.0",
|
||||||
"husky": "^9.1.7",
|
"husky": "^9.1.7",
|
||||||
"jsonc-eslint-parser": "^2.4.0",
|
"jsonc-eslint-parser": "^2.4.0",
|
||||||
"knip": "^5.43.6",
|
"knip": "^5.46.0",
|
||||||
"lint-staged": "^15.4.3",
|
"lint-staged": "^15.4.3",
|
||||||
"markdownlint": "^0.37.4",
|
"markdownlint": "^0.37.4",
|
||||||
"markdownlint-cli": "^0.43.0",
|
"markdownlint-cli": "^0.44.0",
|
||||||
"prettier": "^3.4.2",
|
"prettier": "^3.4.2",
|
||||||
"prettier-plugin-curly": "^0.3.1",
|
"prettier-plugin-curly": "^0.3.1",
|
||||||
"prettier-plugin-packagejson": "^2.5.8",
|
"prettier-plugin-packagejson": "^2.5.8",
|
||||||
|
|
@ -90,12 +89,12 @@
|
||||||
"typedoc-plugin-mdn-links": "^4.0.10",
|
"typedoc-plugin-mdn-links": "^4.0.10",
|
||||||
"typescript": "^5.7.3",
|
"typescript": "^5.7.3",
|
||||||
"typescript-eslint": "^8.22.0",
|
"typescript-eslint": "^8.22.0",
|
||||||
"vitest": "^2.1.8"
|
"vitest": "^3.0.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"typescript": ">=4.8.4"
|
"typescript": ">=4.8.4"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@9.15.3",
|
"packageManager": "pnpm@9.15.9",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.12"
|
"node": ">=18.12"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
8
node_modules/@typescript-eslint/type-utils/package.json
generated
vendored
8
node_modules/@typescript-eslint/type-utils/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@typescript-eslint/type-utils",
|
"name": "@typescript-eslint/type-utils",
|
||||||
"version": "8.26.1",
|
"version": "8.28.0",
|
||||||
"description": "Type utilities for working with TypeScript + ESLint together",
|
"description": "Type utilities for working with TypeScript + ESLint together",
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
|
|
@ -47,8 +47,8 @@
|
||||||
"check-types": "npx nx typecheck"
|
"check-types": "npx nx typecheck"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/typescript-estree": "8.26.1",
|
"@typescript-eslint/typescript-estree": "8.28.0",
|
||||||
"@typescript-eslint/utils": "8.26.1",
|
"@typescript-eslint/utils": "8.28.0",
|
||||||
"debug": "^4.3.4",
|
"debug": "^4.3.4",
|
||||||
"ts-api-utils": "^2.0.1"
|
"ts-api-utils": "^2.0.1"
|
||||||
},
|
},
|
||||||
|
|
@ -58,7 +58,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@jest/types": "29.6.3",
|
"@jest/types": "29.6.3",
|
||||||
"@typescript-eslint/parser": "8.26.1",
|
"@typescript-eslint/parser": "8.28.0",
|
||||||
"ajv": "^6.12.6",
|
"ajv": "^6.12.6",
|
||||||
"downlevel-dts": "*",
|
"downlevel-dts": "*",
|
||||||
"jest": "29.7.0",
|
"jest": "29.7.0",
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue