Merge from develop (#2482)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by John Gee · committed by GitHub · parent ca14529 · Browse files · 18 files·+562 added−376 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
18 files+562 added−376 removed
- tests:+21 added−0 removed
- other:+541 added−376 removed
Provenance
- Commit
b51c0ea- Tree
3a4c49d- Author
John Gee <john@ruru.gen.nz>- Committer
GitHub <noreply@github.com>- Parent
ca14529
18 files changed+562 added−376 removed
modified:.github/workflows/codeql-analysis.yml+4 added-4 removed
23 unmodified lines2425262728282930313232333435362 unmodified lines394041424343444546475 unmodified lines53545556575723 unmodified lines language: [ 'javascript' ]
steps: - name: Checkout repository uses: actions/checkout@v4 uses: actions/checkout@v6
# Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v3 uses: github/codeql-action/init@v4 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. # By default, queries listed here will override any specified in a config file.2 unmodified lines
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild uses: github/codeql-action/autobuild@v3 uses: github/codeql-action/autobuild@v4
# ℹ️ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl
5 unmodified lines # make bootstrap # make release
- name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 uses: github/codeql-action/analyze@v4modified:.github/workflows/tests.yml+2 added-2 removed
14 unmodified lines151617181919202121222324256 unmodified lines14 unmodified lines node-version: [20.x, 22.x, 24.x] os: [ubuntu-latest, windows-latest, macos-latest]
steps: - uses: actions/checkout@v4 - uses: actions/checkout@v6 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 uses: actions/setup-node@v6 with: cache: 'npm' node-version: ${{ matrix.node-version }} # Use separate run commands so command status handled correctly on Windows6 unmodified linesadded:docs/release-policy.md+16 added
12345678910111213141516# Release Policy
We follow [Semantic Versioning](http://semver.org/spec/v2.0.0.html), and limit breaking changes to major versions.
There are major releases about every six months. We do a major release and bump the minimum required node version when LTS Node.js versions reach end-of-life.
The release notes for major versions highlight breaking changes, and include a section of migration tips for common changes required.The [Changelog](../CHANGELOG.md) lists release notes for all versions.
The current release line gets all updates: features, bug fixes, and security updates. Older maintenance versions get just security updates for 12 months.
| Version | First Release | Release Note | Status | End of Life || ------- | ------------- | - | ------- | ----------- || 14.x | 2025-05-18 | [14.0.0](https://github.com/tj/commander.js/releases/tag/v14.0.0) | current | - || 13.x | 2024-12-30 | [13.0.0](https://github.com/tj/commander.js/releases/tag/v13.0.0) | maintenance | 2026-05-18 || <13 | | | end of life | |modified:examples/split.js+2 added-2 removed
9 unmodified lines1011121314151415169 unmodified linesconst limit = options.first ? 1 : undefined;console.log(program.args[0].split(options.separator, limit));
// Try the following:// node split -s / --fits a/b/c// node split -s / --first a/b/c// node split -s - --fits a-b-c// node split -s - --first a-b-c// node split --separator=, a,b,cmodified:examples/string-util.js+1 added-1 removed
31 unmodified lines323334353636373831 unmodified lines
// Try the following:// node string-util// node string-util help split// node string-util split --separator=/ a/b/c// node string-util split --separator=- a-b-c// node string-util split --first a,b,c// node string-util join a b c dmodified:lib/argument.js+5 added-4 removed
31 unmodified lines32 this._name = name;33 break;34 }35 36- if (this._name.length > 3 && this._name.slice(-3) === '...') {36+ if (this._name.endsWith('...')) {37 this.variadic = true;38 this._name = this._name.slice(0, -3);39 }40 }11 unmodified lines52 /**53 * @package54 */55 56- _concatValue(value, previous) {56+ _collectValue(value, previous) {57 if (previous === this.defaultValue || !Array.isArray(previous)) {58 return [value];59 }60 61- return previous.concat(value);61+ previous.push(value);62+ return previous;63 }64 65 /**66 * Set the default value, and optionally supply the description to be displayed in the help.36 unmodified lines103 `Allowed choices are ${this.argChoices.join(', ')}.`,104 );105 }106 if (this.variadic) {106- return this._concatValue(arg, previous);107+ return this._collectValue(arg, previous);108 }109 return arg;110 };111 return this;39 unmodified linesmodified:lib/command.js+28 added-29 removed
243 unmodified lines244 245 configureOutput(configuration) {246 if (configuration === undefined) return this._outputConfiguration;247 248- this._outputConfiguration = Object.assign(249- {},250- this._outputConfiguration,251- configuration,252- );248+ this._outputConfiguration = {249+ ...this._outputConfiguration,250+ ...configuration,251+ };252 return this;253 }254 255 /**117 unmodified lines373 * @return {Command} `this` command for chaining374 */375 addArgument(argument) {376 const previousArgument = this.registeredArguments.slice(-1)[0];378- if (previousArgument && previousArgument.variadic) {377+ if (previousArgument?.variadic) {378 throw new Error(379 `only the last argument can be variadic '${previousArgument.name()}'`,380 );381 }308 unmodified lines690 const oldValue = this.getOptionValue(name);691 if (val !== null && option.parseArg) {692 val = this._callParseArg(option, val, oldValue, invalidValueMessage);693 } else if (val !== null && option.variadic) {695- val = option._concatValue(val, oldValue);694+ val = option._collectValue(val, oldValue);695 }696 697 // Fill-in appropriate missing values. Long winded but easy to follow.698 if (val == null) {792 unmodified lines1491 */1492 1493 _chainOrCall(promise, fn) {1494 // thenable1496- if (promise && promise.then && typeof promise.then === 'function') {1495+ if (promise?.then && typeof promise.then === 'function') {1496 // already have a promise, chain callback1497 return promise.then(() => fn());1498 }1499 // callback might return a promise122 unmodified lines1622 }1623 promiseChain = this._chainOrCallHooks(promiseChain, 'postAction');1624 return promiseChain;1625 }1627- if (this.parent && this.parent.listenerCount(commandEvent)) {1626+ if (this.parent?.listenerCount(commandEvent)) {1627 checkForUnknownOptions();1628 this._processArguments();1629 this.parent.emit(commandEvent, operands, unknown); // legacy1630 } else if (operands.length) {121 unmodified lines1752 * op --known kkk => [op], []1753 * sub --unknown uuu op => [sub], [--unknown uuu op]1754 * sub -- --unknown uuu op => [sub --unknown uuu op], []1755 *1757- * @param {string[]} argv1756+ * @param {string[]} args1757 * @return {{operands: string[], unknown: string[]}}1758 */1759 1761- parseOptions(argv) {1760+ parseOptions(args) {1761 const operands = []; // operands, not options or values1762 const unknown = []; // first unknown option and remaining unknown args1763 let dest = operands;1765- const args = argv.slice();1764 1765 function maybeOption(arg) {1766 return arg.length > 1 && arg[0] === '-';1767 }1768 1769 const negativeNumberArg = (arg) => {1770 // return false if not a negative number1773- if (!/^-\d*\.?\d+(e[+-]?\d+)?$/.test(arg)) return false;1771+ if (!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(arg)) return false;1772 // negative number is ok unless digit used as an option in command hierarchy1773 return !this._getCommandAndAncestors().some((cmd) =>1774 cmd.options1775 .map((opt) => opt.short)2 unmodified lines1778 };1779 1780 // parse options1781 let activeVariadicOption = null;1784- while (args.length) {1785- const arg = args.shift();1782+ let activeGroup = null; // working through group of short options, like -abc1783+ let i = 0;1784+ while (i < args.length || activeGroup) {1785+ const arg = activeGroup ?? args[i++];1786+ activeGroup = null;1787 1788 // literal1789 if (arg === '--') {1790 if (dest === unknown) dest.push(arg);1790- dest.push(...args);1791+ dest.push(...args.slice(i));1792 break;1793 }1794 1795 if (9 unmodified lines1805 const option = this._findOption(arg);1806 // recognised option, call listener to assign value with possible custom processing1807 if (option) {1808 if (option.required) {1808- const value = args.shift();1809+ const value = args[i++];1810 if (value === undefined) this.optionMissingArgument(option);1811 this.emit(`option:${option.name()}`, value);1812 } else if (option.optional) {1813 let value = null;1814 // historical behaviour is optional value is following arg unless an option1815 if (1815- args.length > 0 &&1816- (!maybeOption(args[0]) || negativeNumberArg(args[0]))1816+ i < args.length &&1817+ (!maybeOption(args[i]) || negativeNumberArg(args[i]))1818 ) {1818- value = args.shift();1819+ value = args[i++];1820 }1821 this.emit(`option:${option.name()}`, value);1822 } else {1823 // boolean flag14 unmodified lines1838 ) {1839 // option with value following in same argument1840 this.emit(`option:${option.name()}`, arg.slice(2));1841 } else {1841- // boolean option, emit and put back remainder of arg for further processing1842+ // boolean option1843 this.emit(`option:${option.name()}`);1843- args.unshift(`-${arg.slice(2)}`);1844+ // remove the processed option and keep processing group1845+ activeGroup = `-${arg.slice(2)}`;1846 }1847 continue;1848 }1849 }28 unmodified lines1878 unknown.length === 01879 ) {1880 if (this._findCommand(arg)) {1881 operands.push(arg);1880- if (args.length > 0) unknown.push(...args);1882+ unknown.push(...args.slice(i));1883 break;1884 } else if (1885 this._getHelpCommand() &&1886 arg === this._getHelpCommand().name()1887 ) {1886- operands.push(arg);1887- if (args.length > 0) operands.push(...args);1888+ operands.push(arg, ...args.slice(i));1889 break;1890 } else if (this._defaultCommandName) {1890- unknown.push(arg);1891- if (args.length > 0) unknown.push(...args);1891+ unknown.push(arg, ...args.slice(i));1892 break;1893 }1894 }1895 1896 // If using passThroughOptions, stop processing options at first command-argument.1897 if (this._passThroughOptions) {1898- dest.push(arg);1899- if (args.length > 0) dest.push(...args);1898+ dest.push(arg, ...args.slice(i));1899 break;1900 }1901 1902 // add arg889 unmodified linesmodified:lib/option.js+4 added-3 removed
160 unmodified lines161 /**162 * @package163 */164 165- _concatValue(value, previous) {165+ _collectValue(value, previous) {166 if (previous === this.defaultValue || !Array.isArray(previous)) {167 return [value];168 }169 170- return previous.concat(value);170+ previous.push(value);171+ return previous;172 }173 174 /**175 * Only allow option value to be one of choices.10 unmodified lines186 `Allowed choices are ${this.argChoices.join(', ')}.`,187 );188 }189 if (this.variadic) {189- return this._concatValue(arg, previous);190+ return this._collectValue(arg, previous);191 }192 return arg;193 };194 return this;186 unmodified linesmodified:tests/argument.variadic.test.js+13 added
102 unmodified lines103 104 program.parse(['one', 'two'], { from: 'user' });105 assert.deepEqual(passedArg, ['one', 'two']);106 });107+108+ test('when variadic has default array then specified value is used instead of default (not appended)', () => {109+ const program = new commander.Command();110+ let passedArg;111+ program112+ .addArgument(new commander.Argument('[value...]').default(['DEFAULT']))113+ .action((value) => {114+ passedArg = value;115+ });116+117+ program.parse(['one', 'two'], { from: 'user' });118+ assert.deepEqual(passedArg, ['one', 'two']);119+ });120 });modified:tests/options.variadic.test.js+8 added
170 unmodified lines171 172 assert.equal(program.options[0].variadic, false);173 });174 });175+176+ test('when option has default array then specified value is used instead of default (not appended)', () => {177+ const program = new commander.Command();178+ program.option('-c,--comma [value...]', 'values', ['default']);179+ program.parse(['--comma', 'CCC'], { from: 'user' });180+181+ assert.deepEqual(program.opts().comma, ['CCC']);182+ });183 });modified:typings/index.d.ts+2 added-2 removed
1042 unmodified lines1043 *1044 */1045 outputHelp(context?: HelpContext): void;1046 /** @deprecated since v7 */1047- outputHelp(cb?: (str: string) => string): void;1047+ outputHelp(cb: (str: string) => string): void;1048 1049 /**1050 * Return command help documentation.1051 */18 unmodified lines1070 * Outputs built-in help, and custom text added using `.addHelpText()`.1071 */1072 help(context?: HelpContext): never;1073 /** @deprecated since v7 */1074- help(cb?: (str: string) => string): never;1074+ help(cb: (str: string) => string): never;1075 1076 /**1077 * Add additional text to be displayed with the built-in help.1078 *35 unmodified linesmodified:CHANGELOG.md+47 added
6 unmodified lines7 8 <!-- markdownlint-disable MD024 -->9 <!-- markdownlint-disable MD004 -->10 11+## [14.0.3] (2026-01-31)12+13+### Added14+15+- Release Policy document ([#2462])16+ 17+### Changes18+19+- old major versions now supported for 12 months instead of just previous major version, to give predictable end-of-life date ([#2462])20+- clarify typing for deprecated callback parameter to `.outputHelp()` ([#2427])21+- simple readability improvements to README ([#2465])22+ 23+## [14.0.2] (2025-10-25)24+25+### Changed26+27+- improve negative number auto-detection test ([#2428])28+- update (dev) dependencies29+30+## [14.0.1] (2025-09-12)31+32+### Fixed33+34+- broken markdown link in README ([#2369])35+36+### Changed37+38+- improve code readability by using optional chaining ([#2394])39+- use more idiomatic code with object spread instead of `Object.assign()` ([#2395])40+- improve code readability using `string.endsWith()` instead of `string.slice()` ([#2396])41+- refactor `.parseOptions()` to process args array in-place ([#2409])42+- change private variadic support routines from `._concatValue()` to `._collectValue()` (change code from `array.concat()` to `array.push()`) ([#2410])43+- update (dev) dependencies44+45 ## [14.0.0] (2025-05-18)46 47 ### Added48 1395 unmodified lines1444 [#2339]: https://github.com/tj/commander.js/pull/23391445 [#2348]: https://github.com/tj/commander.js/pull/23481446 [#2350]: https://github.com/tj/commander.js/pull/23501447 [#2359]: https://github.com/tj/commander.js/pull/23591448+[#2369]: https://github.com/tj/commander.js/pull/23691449+[#2394]: https://github.com/tj/commander.js/pull/23941450+[#2395]: https://github.com/tj/commander.js/pull/23951451+[#2396]: https://github.com/tj/commander.js/pull/23961452+[#2409]: https://github.com/tj/commander.js/pull/24091453+[#2410]: https://github.com/tj/commander.js/pull/24101454+[#2427]: https://github.com/tj/commander.js/pull/24271455+[#2428]: https://github.com/tj/commander.js/pull/24281456+[#2462]: https://github.com/tj/commander.js/pull/24621457+[#2465]: https://github.com/tj/commander.js/pull/24651458 1459 <!-- Referenced in 5.x -->1460 [#1]: https://github.com/tj/commander.js/issues/11461 [#432]: https://github.com/tj/commander.js/issues/43271 unmodified lines1533 [#1026]: https://github.com/tj/commander.js/pull/10261534 [#1028]: https://github.com/tj/commander.js/pull/10281535 1536 [Unreleased]: https://github.com/tj/commander.js/compare/master...develop1537+[14.0.3]: https://github.com/tj/commander.js/compare/v14.0.2...v14.0.31538+[14.0.2]: https://github.com/tj/commander.js/compare/v14.0.1...v14.0.21539+[14.0.1]: https://github.com/tj/commander.js/compare/v14.0.0...v14.0.11540 [14.0.0]: https://github.com/tj/commander.js/compare/v13.1.0...v14.0.01541 [13.1.0]: https://github.com/tj/commander.js/compare/v13.0.0...v13.1.01542 [13.0.0]: https://github.com/tj/commander.js/compare/v12.1.0...v13.0.01543 [13.0.0-0]: https://github.com/tj/commander.js/compare/v12.1.0...v13.0.0-052 unmodified linesmodified:package-lock.json+334 added-247 removed
1 {2 "name": "commander",3- "version": "14.0.0",3+ "version": "14.0.3",4 "lockfileVersion": 3,5 "requires": true,6 "packages": {7 "": {8 "name": "commander",9- "version": "14.0.0",9+ "version": "14.0.3",10 "license": "MIT",11 "devDependencies": {12 "@eslint/js": "^9.4.0",13 "@types/node": "^22.7.4",9 unmodified lines23 "node": ">=20"24 }25 },26 "node_modules/@babel/code-frame": {27- "version": "7.26.2",28- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz",29- "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==",27+ "version": "7.29.0",28+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz",29+ "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==",30 "dev": true,31 "license": "MIT",32 "dependencies": {33- "@babel/helper-validator-identifier": "^7.25.9",33+ "@babel/helper-validator-identifier": "^7.28.5",34 "js-tokens": "^4.0.0",35- "picocolors": "^1.0.0"35+ "picocolors": "^1.1.1"36 },37 "engines": {38 "node": ">=6.9.0"39 }40 },41 "node_modules/@babel/helper-validator-identifier": {42- "version": "7.25.9",43- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz",44- "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==",42+ "version": "7.28.5",43+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",44+ "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",45 "dev": true,46 "license": "MIT",47 "engines": {48 "node": ">=6.9.0"49 }50 },51 "node_modules/@eslint-community/eslint-utils": {52- "version": "4.5.1",53- "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.5.1.tgz",54- "integrity": "sha512-soEIOALTfTK6EjmKMMoLugwaP0rzkad90iIWd1hMO9ARkSAyjfMfkRRhLvD5qH7vvM0Cg72pieUfR6yh6XxC4w==",52+ "version": "4.9.1",53+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz",54+ "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==",55 "dev": true,56 "license": "MIT",57 "dependencies": {58 "eslint-visitor-keys": "^3.4.3"21 unmodified lines80 "url": "https://opencollective.com/eslint"81 }82 },83 "node_modules/@eslint-community/regexpp": {84- "version": "4.12.1",85- "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz",86- "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==",84+ "version": "4.12.2",85+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",86+ "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",87 "dev": true,88 "license": "MIT",89 "engines": {90 "node": "^12.0.0 || ^14.0.0 || >=16.0.0"91 }92 },93 "node_modules/@eslint/config-array": {94- "version": "0.20.0",95- "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.20.0.tgz",96- "integrity": "sha512-fxlS1kkIjx8+vy2SjuCB94q3htSNrufYTXubwiBFeaQHbH6Ipi43gFJq2zCMt6PHhImH3Xmr0NksKDvchWlpQQ==",94+ "version": "0.21.1",95+ "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.1.tgz",96+ "integrity": "sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==",97 "dev": true,98 "license": "Apache-2.0",99 "dependencies": {100- "@eslint/object-schema": "^2.1.6",100+ "@eslint/object-schema": "^2.1.7",101 "debug": "^4.3.1",102 "minimatch": "^3.1.2"103 },104 "engines": {105 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"106 }107 },108 "node_modules/@eslint/config-helpers": {109- "version": "0.2.1",110- "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.2.1.tgz",111- "integrity": "sha512-RI17tsD2frtDu/3dmI7QRrD4bedNKPM08ziRYaC5AhkGrzIAJelm9kJU1TznK+apx6V+cqRz8tfpEeG3oIyjxw==",109+ "version": "0.4.2",110+ "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz",111+ "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==",112 "dev": true,113 "license": "Apache-2.0",114+ "dependencies": {115+ "@eslint/core": "^0.17.0"116+ },117 "engines": {118 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"119 }120 },121 "node_modules/@eslint/core": {119- "version": "0.13.0",120- "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.13.0.tgz",121- "integrity": "sha512-yfkgDw1KR66rkT5A8ci4irzDysN7FRpq3ttJolR88OqQikAWqwA8j5VZyas+vjyBNFIJ7MfybJ9plMILI2UrCw==",122+ "version": "0.17.0",123+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz",124+ "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==",125 "dev": true,126 "license": "Apache-2.0",127 "dependencies": {128 "@types/json-schema": "^7.0.15"2 unmodified lines131 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"132 }133 },134 "node_modules/@eslint/eslintrc": {132- "version": "3.3.1",133- "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz",134- "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==",135+ "version": "3.3.3",136+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.3.tgz",137+ "integrity": "sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==",138 "dev": true,139 "license": "MIT",140 "dependencies": {141 "ajv": "^6.12.4",1 unmodified line143 "espree": "^10.0.1",144 "globals": "^14.0.0",145 "ignore": "^5.2.0",146 "import-fresh": "^3.2.1",144- "js-yaml": "^4.1.0",147+ "js-yaml": "^4.1.1",148 "minimatch": "^3.1.2",149 "strip-json-comments": "^3.1.1"150 },151 "engines": {16 unmodified lines168 "url": "https://github.com/sponsors/sindresorhus"169 }170 },171 "node_modules/@eslint/js": {169- "version": "9.25.1",170- "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.25.1.tgz",171- "integrity": "sha512-dEIwmjntEx8u3Uvv+kr3PDeeArL8Hw07H9kyYxCjnM9pBjfEhk6uLXSchxxzgiwtRhhzVzqmUSDFBOi1TuZ7qg==",172+ "version": "9.39.2",173+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.2.tgz",174+ "integrity": "sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==",175 "dev": true,176 "license": "MIT",177 "engines": {178 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"179+ },180+ "funding": {181+ "url": "https://eslint.org/donate"182 }183 },184 "node_modules/@eslint/object-schema": {179- "version": "2.1.6",180- "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz",181- "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==",185+ "version": "2.1.7",186+ "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz",187+ "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==",188 "dev": true,189 "license": "Apache-2.0",190 "engines": {191 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"192 }193 },194 "node_modules/@eslint/plugin-kit": {189- "version": "0.2.8",190- "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.8.tgz",191- "integrity": "sha512-ZAoA40rNMPwSm+AeHpCq8STiNAwzWLJuP8Xv4CHIc9wv/PSuExjMrmjfYNj682vW0OOiZ1HKxzvjQr9XZIisQA==",195+ "version": "0.4.1",196+ "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz",197+ "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==",198 "dev": true,199 "license": "Apache-2.0",200 "dependencies": {195- "@eslint/core": "^0.13.0",201+ "@eslint/core": "^0.17.0",202 "levn": "^0.4.1"203 },204 "engines": {205 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"9 unmodified lines215 "node": ">=18.18.0"216 }217 },218 "node_modules/@humanfs/node": {213- "version": "0.16.6",214- "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz",215- "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==",219+ "version": "0.16.7",220+ "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz",221+ "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==",222 "dev": true,223 "license": "Apache-2.0",224 "dependencies": {225 "@humanfs/core": "^0.19.1",220- "@humanwhocodes/retry": "^0.3.0"226+ "@humanwhocodes/retry": "^0.4.0"227 },228 "engines": {229 "node": ">=18.18.0"230 }231 },226- "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": {227- "version": "0.3.1",228- "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz",229- "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==",230- "dev": true,231- "license": "Apache-2.0",232- "engines": {233- "node": ">=18.18"234- },235- "funding": {236- "type": "github",237- "url": "https://github.com/sponsors/nzakas"238- }239- },232 "node_modules/@humanwhocodes/module-importer": {233 "version": "1.0.1",234 "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",235 "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",7 unmodified lines243 "url": "https://github.com/sponsors/nzakas"244 }245 },246 "node_modules/@humanwhocodes/retry": {255- "version": "0.4.2",256- "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz",257- "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==",247+ "version": "0.4.3",248+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",249+ "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==",250 "dev": true,251 "license": "Apache-2.0",252 "engines": {253 "node": ">=18.18"54 unmodified lines308 "node": ">= 8"309 }310 },311 "node_modules/@sinclair/typebox": {320- "version": "0.27.8",321- "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz",322- "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==",312+ "version": "0.27.10",313+ "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.10.tgz",314+ "integrity": "sha512-MTBk/3jGLNB2tVxv6uLlFh1iu64iYOQ2PbdOSK3NW8JZsmlaOh2q6sdtKowBhfw8QFLmYNzTW4/oK4uATIi6ZA==",315 "dev": true,316 "license": "MIT"317 },318 "node_modules/@tsd/typescript": {17 unmodified lines336 "@types/json-schema": "*"337 }338 },339 "node_modules/@types/estree": {348- "version": "1.0.7",349- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz",350- "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==",340+ "version": "1.0.8",341+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",342+ "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",343 "dev": true,344 "license": "MIT"345 },346 "node_modules/@types/json-schema": {10 unmodified lines357 "dev": true,358 "license": "MIT"359 },360 "node_modules/@types/node": {369- "version": "22.15.3",370- "resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.3.tgz",371- "integrity": "sha512-lX7HFZeHf4QG/J7tBZqrCAXwz9J5RD56Y6MpP0eJkka8p+K0RY/yBTW7CYFJ4VGCclxqOLKmiGP5juQc6MKgcw==",361+ "version": "22.19.9",362+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.9.tgz",363+ "integrity": "sha512-PD03/U8g1F9T9MI+1OBisaIARhSzeidsUjQaf51fOxrfjeiKN9bLVO06lHuHYjxdnqLWJijJHfqXPSJri2EM2A==",364 "dev": true,365 "license": "MIT",366 "dependencies": {367 "undici-types": "~6.21.0"6 unmodified lines374 "dev": true,375 "license": "MIT"376 },377 "node_modules/@typescript-eslint/eslint-plugin": {386- "version": "8.29.0",387- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.29.0.tgz",388- "integrity": "sha512-PAIpk/U7NIS6H7TEtN45SPGLQaHNgB7wSjsQV/8+KYokAb2T/gloOA/Bee2yd4/yKVhPKe5LlaUGhAZk5zmSaQ==",378+ "version": "8.54.0",379+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.54.0.tgz",380+ "integrity": "sha512-hAAP5io/7csFStuOmR782YmTthKBJ9ND3WVL60hcOjvtGFb+HJxH4O5huAcmcZ9v9G8P+JETiZ/G1B8MALnWZQ==",381 "dev": true,382 "license": "MIT",383 "dependencies": {392- "@eslint-community/regexpp": "^4.10.0",393- "@typescript-eslint/scope-manager": "8.29.0",394- "@typescript-eslint/type-utils": "8.29.0",395- "@typescript-eslint/utils": "8.29.0",396- "@typescript-eslint/visitor-keys": "8.29.0",397- "graphemer": "^1.4.0",398- "ignore": "^5.3.1",384+ "@eslint-community/regexpp": "^4.12.2",385+ "@typescript-eslint/scope-manager": "8.54.0",386+ "@typescript-eslint/type-utils": "8.54.0",387+ "@typescript-eslint/utils": "8.54.0",388+ "@typescript-eslint/visitor-keys": "8.54.0",389+ "ignore": "^7.0.5",390 "natural-compare": "^1.4.0",400- "ts-api-utils": "^2.0.1"391+ "ts-api-utils": "^2.4.0"392 },393 "engines": {394 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"395 },1 unmodified line397 "type": "opencollective",398 "url": "https://opencollective.com/typescript-eslint"399 },400 "peerDependencies": {410- "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0",401+ "@typescript-eslint/parser": "^8.54.0",402 "eslint": "^8.57.0 || ^9.0.0",412- "typescript": ">=4.8.4 <5.9.0"403+ "typescript": ">=4.8.4 <6.0.0"404 }405 },406+ "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": {407+ "version": "7.0.5",408+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz",409+ "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==",410+ "dev": true,411+ "license": "MIT",412+ "engines": {413+ "node": ">= 4"414+ }415+ },416 "node_modules/@typescript-eslint/parser": {416- "version": "8.29.0",417- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.29.0.tgz",418- "integrity": "sha512-8C0+jlNJOwQso2GapCVWWfW/rzaq7Lbme+vGUFKE31djwNncIpgXD7Cd4weEsDdkoZDjH0lwwr3QDQFuyrMg9g==",417+ "version": "8.54.0",418+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.54.0.tgz",419+ "integrity": "sha512-BtE0k6cjwjLZoZixN0t5AKP0kSzlGu7FctRXYuPAm//aaiZhmfq1JwdYpYr1brzEspYyFeF+8XF5j2VK6oalrA==",420 "dev": true,421 "license": "MIT",422 "peer": true,423 "dependencies": {423- "@typescript-eslint/scope-manager": "8.29.0",424- "@typescript-eslint/types": "8.29.0",425- "@typescript-eslint/typescript-estree": "8.29.0",426- "@typescript-eslint/visitor-keys": "8.29.0",427- "debug": "^4.3.4"424+ "@typescript-eslint/scope-manager": "8.54.0",425+ "@typescript-eslint/types": "8.54.0",426+ "@typescript-eslint/typescript-estree": "8.54.0",427+ "@typescript-eslint/visitor-keys": "8.54.0",428+ "debug": "^4.4.3"429 },430 "engines": {431 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"432 },2 unmodified lines435 "url": "https://opencollective.com/typescript-eslint"436 },437 "peerDependencies": {438 "eslint": "^8.57.0 || ^9.0.0",438- "typescript": ">=4.8.4 <5.9.0"439+ "typescript": ">=4.8.4 <6.0.0"440 }441 },442+ "node_modules/@typescript-eslint/project-service": {443+ "version": "8.54.0",444+ "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.54.0.tgz",445+ "integrity": "sha512-YPf+rvJ1s7MyiWM4uTRhE4DvBXrEV+d8oC3P9Y2eT7S+HBS0clybdMIPnhiATi9vZOYDc7OQ1L/i6ga6NFYK/g==",446+ "dev": true,447+ "license": "MIT",448+ "dependencies": {449+ "@typescript-eslint/tsconfig-utils": "^8.54.0",450+ "@typescript-eslint/types": "^8.54.0",451+ "debug": "^4.4.3"452+ },453+ "engines": {454+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"455+ },456+ "funding": {457+ "type": "opencollective",458+ "url": "https://opencollective.com/typescript-eslint"459+ },460+ "peerDependencies": {461+ "typescript": ">=4.8.4 <6.0.0"462+ }463+ },464 "node_modules/@typescript-eslint/scope-manager": {442- "version": "8.29.0",443- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.29.0.tgz",444- "integrity": "sha512-aO1PVsq7Gm+tcghabUpzEnVSFMCU4/nYIgC2GOatJcllvWfnhrgW0ZEbnTxm36QsikmCN1K/6ZgM7fok2I7xNw==",465+ "version": "8.54.0",466+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.54.0.tgz",467+ "integrity": "sha512-27rYVQku26j/PbHYcVfRPonmOlVI6gihHtXFbTdB5sb6qA0wdAQAbyXFVarQ5t4HRojIz64IV90YtsjQSSGlQg==",468 "dev": true,469 "license": "MIT",470 "dependencies": {448- "@typescript-eslint/types": "8.29.0",449- "@typescript-eslint/visitor-keys": "8.29.0"471+ "@typescript-eslint/types": "8.54.0",472+ "@typescript-eslint/visitor-keys": "8.54.0"473 },474 "engines": {475 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"476 },1 unmodified line478 "type": "opencollective",479 "url": "https://opencollective.com/typescript-eslint"480 }481 },482+ "node_modules/@typescript-eslint/tsconfig-utils": {483+ "version": "8.54.0",484+ "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.54.0.tgz",485+ "integrity": "sha512-dRgOyT2hPk/JwxNMZDsIXDgyl9axdJI3ogZ2XWhBPsnZUv+hPesa5iuhdYt2gzwA9t8RE5ytOJ6xB0moV0Ujvw==",486+ "dev": true,487+ "license": "MIT",488+ "engines": {489+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"490+ },491+ "funding": {492+ "type": "opencollective",493+ "url": "https://opencollective.com/typescript-eslint"494+ },495+ "peerDependencies": {496+ "typescript": ">=4.8.4 <6.0.0"497+ }498+ },499 "node_modules/@typescript-eslint/type-utils": {460- "version": "8.29.0",461- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.29.0.tgz",462- "integrity": "sha512-ahaWQ42JAOx+NKEf5++WC/ua17q5l+j1GFrbbpVKzFL/tKVc0aYY8rVSYUpUvt2hUP1YBr7mwXzx+E/DfUWI9Q==",500+ "version": "8.54.0",501+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.54.0.tgz",502+ "integrity": "sha512-hiLguxJWHjjwL6xMBwD903ciAwd7DmK30Y9Axs/etOkftC3ZNN9K44IuRD/EB08amu+Zw6W37x9RecLkOo3pMA==",503 "dev": true,504 "license": "MIT",505 "dependencies": {506+ "@typescript-eslint/types": "8.54.0",466- "@typescript-eslint/typescript-estree": "8.29.0",467- "@typescript-eslint/utils": "8.29.0",468- "debug": "^4.3.4",469- "ts-api-utils": "^2.0.1"507+ "@typescript-eslint/typescript-estree": "8.54.0",508+ "@typescript-eslint/utils": "8.54.0",509+ "debug": "^4.4.3",510+ "ts-api-utils": "^2.4.0"511 },512 "engines": {513 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"514 },2 unmodified lines517 "url": "https://opencollective.com/typescript-eslint"518 },519 "peerDependencies": {520 "eslint": "^8.57.0 || ^9.0.0",480- "typescript": ">=4.8.4 <5.9.0"521+ "typescript": ">=4.8.4 <6.0.0"522 }523 },524 "node_modules/@typescript-eslint/types": {484- "version": "8.29.0",485- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.29.0.tgz",486- "integrity": "sha512-wcJL/+cOXV+RE3gjCyl/V2G877+2faqvlgtso/ZRbTCnZazh0gXhe+7gbAnfubzN2bNsBtZjDvlh7ero8uIbzg==",525+ "version": "8.54.0",526+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.54.0.tgz",527+ "integrity": "sha512-PDUI9R1BVjqu7AUDsRBbKMtwmjWcn4J3le+5LpcFgWULN3LvHC5rkc9gCVxbrsrGmO1jfPybN5s6h4Jy+OnkAA==",528 "dev": true,529 "license": "MIT",530 "engines": {531 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"3 unmodified lines535 "url": "https://opencollective.com/typescript-eslint"536 }537 },538 "node_modules/@typescript-eslint/typescript-estree": {498- "version": "8.29.0",499- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.29.0.tgz",500- "integrity": "sha512-yOfen3jE9ISZR/hHpU/bmNvTtBW1NjRbkSFdZOksL1N+ybPEE7UVGMwqvS6CP022Rp00Sb0tdiIkhSCe6NI8ow==",539+ "version": "8.54.0",540+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.54.0.tgz",541+ "integrity": "sha512-BUwcskRaPvTk6fzVWgDPdUndLjB87KYDrN5EYGetnktoeAvPtO4ONHlAZDnj5VFnUANg0Sjm7j4usBlnoVMHwA==",542 "dev": true,543 "license": "MIT",544 "dependencies": {504- "@typescript-eslint/types": "8.29.0",505- "@typescript-eslint/visitor-keys": "8.29.0",506- "debug": "^4.3.4",507- "fast-glob": "^3.3.2",508- "is-glob": "^4.0.3",509- "minimatch": "^9.0.4",510- "semver": "^7.6.0",511- "ts-api-utils": "^2.0.1"545+ "@typescript-eslint/project-service": "8.54.0",546+ "@typescript-eslint/tsconfig-utils": "8.54.0",547+ "@typescript-eslint/types": "8.54.0",548+ "@typescript-eslint/visitor-keys": "8.54.0",549+ "debug": "^4.4.3",550+ "minimatch": "^9.0.5",551+ "semver": "^7.7.3",552+ "tinyglobby": "^0.2.15",553+ "ts-api-utils": "^2.4.0"554 },555 "engines": {556 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"557 },1 unmodified line559 "type": "opencollective",560 "url": "https://opencollective.com/typescript-eslint"561 },562 "peerDependencies": {521- "typescript": ">=4.8.4 <5.9.0"563+ "typescript": ">=4.8.4 <6.0.0"564 }565 },566 "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {525- "version": "2.0.1",526- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",527- "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",567+ "version": "2.0.2",568+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",569+ "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",570 "dev": true,571 "license": "MIT",572 "dependencies": {573 "balanced-match": "^1.0.0"15 unmodified lines589 "url": "https://github.com/sponsors/isaacs"590 }591 },592 "node_modules/@typescript-eslint/utils": {551- "version": "8.29.0",552- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.29.0.tgz",553- "integrity": "sha512-gX/A0Mz9Bskm8avSWFcK0gP7cZpbY4AIo6B0hWYFCaIsz750oaiWR4Jr2CI+PQhfW1CpcQr9OlfPS+kMFegjXA==",593+ "version": "8.54.0",594+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.54.0.tgz",595+ "integrity": "sha512-9Cnda8GS57AQakvRyG0PTejJNlA2xhvyNtEVIMlDWOOeEyBkYWhGPnfrIAnqxLMTSTo6q8g12XVjjev5l1NvMA==",596 "dev": true,597 "license": "MIT",598 "dependencies": {557- "@eslint-community/eslint-utils": "^4.4.0",558- "@typescript-eslint/scope-manager": "8.29.0",559- "@typescript-eslint/types": "8.29.0",560- "@typescript-eslint/typescript-estree": "8.29.0"599+ "@eslint-community/eslint-utils": "^4.9.1",600+ "@typescript-eslint/scope-manager": "8.54.0",601+ "@typescript-eslint/types": "8.54.0",602+ "@typescript-eslint/typescript-estree": "8.54.0"603 },604 "engines": {605 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"606 },2 unmodified lines609 "url": "https://opencollective.com/typescript-eslint"610 },611 "peerDependencies": {612 "eslint": "^8.57.0 || ^9.0.0",571- "typescript": ">=4.8.4 <5.9.0"613+ "typescript": ">=4.8.4 <6.0.0"614 }615 },616 "node_modules/@typescript-eslint/visitor-keys": {575- "version": "8.29.0",576- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.29.0.tgz",577- "integrity": "sha512-Sne/pVz8ryR03NFK21VpN88dZ2FdQXOlq3VIklbrTYEt8yXtRFr9tvUhqvCeKjqYk5FSim37sHbooT6vzBTZcg==",617+ "version": "8.54.0",618+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.54.0.tgz",619+ "integrity": "sha512-VFlhGSl4opC0bprJiItPQ1RfUhGDIBokcPwaFH4yiBCaNPeld/9VeXbiPO1cLyorQi1G1vL+ecBk1x8o1axORA==",620 "dev": true,621 "license": "MIT",622 "dependencies": {581- "@typescript-eslint/types": "8.29.0",582- "eslint-visitor-keys": "^4.2.0"623+ "@typescript-eslint/types": "8.54.0",624+ "eslint-visitor-keys": "^4.2.1"625 },626 "engines": {627 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"628 },2 unmodified lines631 "url": "https://opencollective.com/typescript-eslint"632 }633 },634 "node_modules/acorn": {593- "version": "8.14.1",594- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz",595- "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==",635+ "version": "8.15.0",636+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",637+ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",638 "dev": true,639 "license": "MIT",640 "peer": true,641 "bin": {106 unmodified lines748 "dev": true,749 "license": "MIT"750 },751 "node_modules/brace-expansion": {710- "version": "1.1.11",711- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",712- "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",752+ "version": "1.1.12",753+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",754+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",755 "dev": true,756 "license": "MIT",757 "dependencies": {758 "balanced-match": "^1.0.0",110 unmodified lines869 "node": ">= 8"870 }871 },872 "node_modules/debug": {831- "version": "4.4.0",832- "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",833- "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",873+ "version": "4.4.3",874+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",875+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",876 "dev": true,877 "license": "MIT",878 "dependencies": {879 "ms": "^2.1.3"81 unmodified lines961 "dev": true,962 "license": "MIT"963 },964 "node_modules/error-ex": {923- "version": "1.3.2",924- "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",925- "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",965+ "version": "1.3.4",966+ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz",967+ "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==",968 "dev": true,969 "license": "MIT",970 "dependencies": {971 "is-arrayish": "^0.2.1"12 unmodified lines984 "url": "https://github.com/sponsors/sindresorhus"985 }986 },987 "node_modules/eslint": {946- "version": "9.25.1",947- "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.25.1.tgz",948- "integrity": "sha512-E6Mtz9oGQWDCpV12319d59n4tx9zOTXSTmc8BLVxBx+G/0RdM5MvEEJLU9c0+aleoePYYgVTOsRblx433qmhWQ==",988+ "version": "9.39.2",989+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.2.tgz",990+ "integrity": "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==",991 "dev": true,992 "license": "MIT",993 "peer": true,994 "dependencies": {953- "@eslint-community/eslint-utils": "^4.2.0",995+ "@eslint-community/eslint-utils": "^4.8.0",996 "@eslint-community/regexpp": "^4.12.1",955- "@eslint/config-array": "^0.20.0",956- "@eslint/config-helpers": "^0.2.1",957- "@eslint/core": "^0.13.0",997+ "@eslint/config-array": "^0.21.1",998+ "@eslint/config-helpers": "^0.4.2",999+ "@eslint/core": "^0.17.0",1000 "@eslint/eslintrc": "^3.3.1",959- "@eslint/js": "9.25.1",960- "@eslint/plugin-kit": "^0.2.8",1001+ "@eslint/js": "9.39.2",1002+ "@eslint/plugin-kit": "^0.4.1",1003 "@humanfs/node": "^0.16.6",1004 "@humanwhocodes/module-importer": "^1.0.1",1005 "@humanwhocodes/retry": "^0.4.2",1006 "@types/estree": "^1.0.6",965- "@types/json-schema": "^7.0.15",1007 "ajv": "^6.12.4",1008 "chalk": "^4.0.0",1009 "cross-spawn": "^7.0.6",1010 "debug": "^4.3.2",1011 "escape-string-regexp": "^4.0.0",971- "eslint-scope": "^8.3.0",972- "eslint-visitor-keys": "^4.2.0",973- "espree": "^10.3.0",1012+ "eslint-scope": "^8.4.0",1013+ "eslint-visitor-keys": "^4.2.1",1014+ "espree": "^10.4.0",1015 "esquery": "^1.5.0",1016 "esutils": "^2.0.2",1017 "fast-deep-equal": "^3.1.3",1018 "file-entry-cache": "^8.0.0",26 unmodified lines1045 }1046 }1047 },1048 "node_modules/eslint-config-prettier": {1008- "version": "10.1.2",1009- "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-10.1.2.tgz",1010- "integrity": "sha512-Epgp/EofAUeEpIdZkW60MHKvPyru1ruQJxPL+WIycnaPApuseK0Zpkrh/FwL9oIpQvIhJwV7ptOy0DWUjTlCiA==",1049+ "version": "10.1.8",1050+ "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-10.1.8.tgz",1051+ "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==",1052 "dev": true,1053 "license": "MIT",1054 "bin": {1055 "eslint-config-prettier": "bin/cli.js"1056 },1057+ "funding": {1058+ "url": "https://opencollective.com/eslint-config-prettier"1059+ },1060 "peerDependencies": {1061 "eslint": ">=7.0.0"1062 }1063 },27 unmodified lines1091 "dev": true,1092 "license": "MIT"1093 },1094 "node_modules/eslint-scope": {1051- "version": "8.3.0",1052- "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz",1053- "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==",1095+ "version": "8.4.0",1096+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz",1097+ "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==",1098 "dev": true,1099 "license": "BSD-2-Clause",1100 "dependencies": {1101 "esrecurse": "^4.3.0",6 unmodified lines1108 "url": "https://opencollective.com/eslint"1109 }1110 },1111 "node_modules/eslint-visitor-keys": {1068- "version": "4.2.0",1069- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz",1070- "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==",1112+ "version": "4.2.1",1113+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",1114+ "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",1115 "dev": true,1116 "license": "Apache-2.0",1117 "engines": {1118 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"2 unmodified lines1121 "url": "https://opencollective.com/eslint"1122 }1123 },1124 "node_modules/espree": {1081- "version": "10.3.0",1082- "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz",1083- "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==",1125+ "version": "10.4.0",1126+ "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz",1127+ "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==",1128 "dev": true,1129 "license": "BSD-2-Clause",1130 "dependencies": {1087- "acorn": "^8.14.0",1131+ "acorn": "^8.15.0",1132 "acorn-jsx": "^5.3.2",1089- "eslint-visitor-keys": "^4.2.0"1133+ "eslint-visitor-keys": "^4.2.1"1134 },1135 "engines": {1136 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"1137 },1 unmodified line1139 "url": "https://opencollective.com/eslint"1140 }1141 },1142 "node_modules/esquery": {1099- "version": "1.6.0",1100- "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz",1101- "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==",1143+ "version": "1.7.0",1144+ "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz",1145+ "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==",1146 "dev": true,1147 "license": "BSD-3-Clause",1148 "dependencies": {1149 "estraverse": "^5.1.0"86 unmodified lines1236 "dev": true,1237 "license": "MIT"1238 },1239 "node_modules/fastq": {1196- "version": "1.19.1",1197- "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz",1198- "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==",1240+ "version": "1.20.1",1241+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz",1242+ "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==",1243 "dev": true,1244 "license": "ISC",1245 "dependencies": {1246 "reusify": "^1.0.4"119 unmodified lines1366 "funding": {1367 "url": "https://github.com/sponsors/sindresorhus"1368 }1369 },1326- "node_modules/graphemer": {1327- "version": "1.4.0",1328- "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",1329- "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",1330- "dev": true,1331- "license": "MIT"1332- },1370 "node_modules/hard-rejection": {1371 "version": "2.1.0",1372 "resolved": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz",1373 "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==",38 unmodified lines1412 "engines": {1413 "node": ">=10"1414 }1415 },1379- "node_modules/hosted-git-info/node_modules/lru-cache": {1380- "version": "6.0.0",1381- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",1382- "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",1383- "dev": true,1384- "license": "ISC",1385- "dependencies": {1386- "yallist": "^4.0.0"1387- },1388- "engines": {1389- "node": ">=10"1390- }1391- },1392- "node_modules/hosted-git-info/node_modules/yallist": {1393- "version": "4.0.0",1394- "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",1395- "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",1396- "dev": true,1397- "license": "ISC"1398- },1416 "node_modules/ignore": {1417 "version": "5.3.2",1418 "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",1419 "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",179 unmodified lines1599 "dev": true,1600 "license": "MIT"1601 },1602 "node_modules/js-yaml": {1586- "version": "4.1.0",1587- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",1588- "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",1603+ "version": "4.1.1",1604+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",1605+ "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",1606 "dev": true,1607 "license": "MIT",1608 "dependencies": {1609 "argparse": "^2.0.1"110 unmodified lines1720 "funding": {1721 "url": "https://github.com/sponsors/sindresorhus"1722 }1723 },1724+ "node_modules/lru-cache": {1725+ "version": "6.0.0",1726+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",1727+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",1728+ "dev": true,1729+ "license": "ISC",1730+ "dependencies": {1731+ "yallist": "^4.0.0"1732+ },1733+ "engines": {1734+ "node": ">=10"1735+ }1736+ },1737 "node_modules/map-obj": {1738 "version": "4.3.0",1739 "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-4.3.0.tgz",1740 "integrity": "sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==",45 unmodified lines1786 "funding": {1787 "url": "https://github.com/sponsors/sindresorhus"1788 }1789 },1760- "node_modules/meow/node_modules/yargs-parser": {1761- "version": "20.2.9",1762- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",1763- "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",1764- "dev": true,1765- "license": "ISC",1766- "engines": {1767- "node": ">=10"1768- }1769- },1790 "node_modules/merge2": {1791 "version": "1.4.1",1792 "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",1793 "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",260 unmodified lines2054 "node": ">= 0.8.0"2055 }2056 },2057 "node_modules/prettier": {2038- "version": "3.5.3",2039- "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz",2040- "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==",2058+ "version": "3.8.1",2059+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.1.tgz",2060+ "integrity": "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==",2061 "dev": true,2062 "license": "MIT",2063 "bin": {2064 "prettier": "bin/prettier.cjs"235 unmodified lines2300 "node": ">=8"2301 }2302 },2303 "node_modules/resolve": {2284- "version": "1.22.10",2285- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz",2286- "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==",2304+ "version": "1.22.11",2305+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz",2306+ "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==",2307 "dev": true,2308 "license": "MIT",2309 "dependencies": {2290- "is-core-module": "^2.16.0",2310+ "is-core-module": "^2.16.1",2311 "path-parse": "^1.0.7",2312 "supports-preserve-symlinks-flag": "^1.0.0"2313 },2314 "bin": {51 unmodified lines2366 "queue-microtask": "^1.2.2"2367 }2368 },2369 "node_modules/semver": {2350- "version": "7.7.1",2351- "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",2352- "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",2370+ "version": "7.7.4",2371+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",2372+ "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",2373 "dev": true,2374 "license": "ISC",2375 "bin": {2376 "semver": "bin/semver.js"64 unmodified lines2441 "spdx-license-ids": "^3.0.0"2442 }2443 },2444 "node_modules/spdx-license-ids": {2425- "version": "3.0.21",2426- "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.21.tgz",2427- "integrity": "sha512-Bvg/8F5XephndSK3JffaRqdT+gyhfqIPwDHpX80tJrF8QQRYMo8sNMeaZ2Dp5+jhwKnUmIOyFFQfHRkjJm5nXg==",2445+ "version": "3.0.22",2446+ "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.22.tgz",2447+ "integrity": "sha512-4PRT4nh1EImPbt2jASOKHX7PB7I+e4IWNLvkKFDxNhJlfjbYlleYQh285Z/3mPTHSAK/AvdMmw5BNNuYH8ShgQ==",2448 "dev": true,2449 "license": "CC0-1.0"2450 },2451 "node_modules/string-width": {89 unmodified lines2541 "funding": {2542 "url": "https://github.com/sponsors/ljharb"2543 }2544 },2545+ "node_modules/tinyglobby": {2546+ "version": "0.2.15",2547+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",2548+ "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",2549+ "dev": true,2550+ "license": "MIT",2551+ "dependencies": {2552+ "fdir": "^6.5.0",2553+ "picomatch": "^4.0.3"2554+ },2555+ "engines": {2556+ "node": ">=12.0.0"2557+ },2558+ "funding": {2559+ "url": "https://github.com/sponsors/SuperchupuDev"2560+ }2561+ },2562+ "node_modules/tinyglobby/node_modules/fdir": {2563+ "version": "6.5.0",2564+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",2565+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",2566+ "dev": true,2567+ "license": "MIT",2568+ "engines": {2569+ "node": ">=12.0.0"2570+ },2571+ "peerDependencies": {2572+ "picomatch": "^3 || ^4"2573+ },2574+ "peerDependenciesMeta": {2575+ "picomatch": {2576+ "optional": true2577+ }2578+ }2579+ },2580+ "node_modules/tinyglobby/node_modules/picomatch": {2581+ "version": "4.0.3",2582+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",2583+ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",2584+ "dev": true,2585+ "license": "MIT",2586+ "peer": true,2587+ "engines": {2588+ "node": ">=12"2589+ },2590+ "funding": {2591+ "url": "https://github.com/sponsors/jonschlinkert"2592+ }2593+ },2594 "node_modules/to-regex-range": {2595 "version": "5.0.1",2596 "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",2597 "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",16 unmodified lines2614 "node": ">=8"2615 }2616 },2617 "node_modules/ts-api-utils": {2549- "version": "2.1.0",2550- "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz",2551- "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==",2618+ "version": "2.4.0",2619+ "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.4.0.tgz",2620+ "integrity": "sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA==",2621 "dev": true,2622 "license": "MIT",2623 "engines": {2624 "node": ">=18.12"50 unmodified lines2675 "url": "https://github.com/sponsors/sindresorhus"2676 }2677 },2678 "node_modules/typescript": {2610- "version": "5.8.3",2611- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz",2612- "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",2679+ "version": "5.9.3",2680+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",2681+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",2682 "dev": true,2683 "license": "Apache-2.0",2684 "peer": true,2685 "bin": {4 unmodified lines2690 "node": ">=14.17"2691 }2692 },2693 "node_modules/typescript-eslint": {2625- "version": "8.29.0",2626- "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.29.0.tgz",2627- "integrity": "sha512-ep9rVd9B4kQsZ7ZnWCVxUE/xDLUUUsRzE0poAeNu+4CkFErLfuvPt/qtm2EpnSyfvsR0S6QzDFSrPCFBwf64fg==",2694+ "version": "8.54.0",2695+ "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.54.0.tgz",2696+ "integrity": "sha512-CKsJ+g53QpsNPqbzUsfKVgd3Lny4yKZ1pP4qN3jdMOg/sisIDLGyDMezycquXLE5JsEU0wp3dGNdzig0/fmSVQ==",2697 "dev": true,2698 "license": "MIT",2699 "dependencies": {2631- "@typescript-eslint/eslint-plugin": "8.29.0",2632- "@typescript-eslint/parser": "8.29.0",2633- "@typescript-eslint/utils": "8.29.0"2700+ "@typescript-eslint/eslint-plugin": "8.54.0",2701+ "@typescript-eslint/parser": "8.54.0",2702+ "@typescript-eslint/typescript-estree": "8.54.0",2703+ "@typescript-eslint/utils": "8.54.0"2704 },2705 "engines": {2706 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"2707 },2 unmodified lines2710 "url": "https://opencollective.com/typescript-eslint"2711 },2712 "peerDependencies": {2713 "eslint": "^8.57.0 || ^9.0.0",2644- "typescript": ">=4.8.4 <5.9.0"2714+ "typescript": ">=4.8.4 <6.0.0"2715 }2716 },2717 "node_modules/undici-types": {2718 "version": "6.21.0",48 unmodified lines2767 "engines": {2768 "node": ">=0.10.0"2769 }2770 },2771+ "node_modules/yallist": {2772+ "version": "4.0.0",2773+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",2774+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",2775+ "dev": true,2776+ "license": "ISC"2777+ },2778+ "node_modules/yargs-parser": {2779+ "version": "20.2.9",2780+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",2781+ "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",2782+ "dev": true,2783+ "license": "ISC",2784+ "engines": {2785+ "node": ">=10"2786+ }2787+ },2788 "node_modules/yocto-queue": {2789 "version": "0.1.0",2790 "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",2791 "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",11 unmodified linesmodified:package-support.json+4 added-1 removed
7 unmodified lines8 "response": {9 "type": "time-permitting"10 },11 "backing": {12- "npm-funding": true12+ "donations": [13+ "https://github.com/sponsors/abetomo",14+ "https://github.com/sponsors/shadowspawn"15+ ]16 }17 }18 ]19 }modified:package.json+1 added-1 removed
1 {2 "name": "commander",3- "version": "14.0.0",3+ "version": "14.0.3",4 "description": "the complete solution for node.js command-line programs",5 "keywords": [6 "commander",7 "command",70 unmodified linesmodified:Readme_zh-CN.md+3 added-3 removed
86 unmodified lines87 console.log(program.args[0].split(options.separator, limit));88 ```89 90 ```console91-$ node split.js -s / --fits a/b/c91+$ node split.js -s - --fits a-b-c92 error: unknown option '--fits'93 (Did you mean --first?)94-$ node split.js -s / --first a/b/c94+$ node split.js -s - --first a-b-c95 [ 'a' ]96 ```97 98 这是一个使用子命令并带有帮助描述的更完整的程序。在多命令程序中,每个命令(或命令的独立可执行文件)都有一个操作处理程序。35 unmodified lines134 --first display just the first substring135 -s, --separator <char> separator character (default: ",")136 -h, --help display help for command137 138-$ node string-util.js split --separator=/ a/b/c138+$ node string-util.js split --separator=- a-b-c139 [ 'a', 'b', 'c' ]140 ```141 142 更多示例可以在 [examples](https://github.com/tj/commander.js/tree/master/examples) 目录中找到。930 unmodified linesmodified:Readme.md+86 added-69 removed
89 unmodified lines90 console.log(program.args[0].split(options.separator, limit));91 ```92 93 ```console94-$ node split.js -s / --fits a/b/c94+$ node split.js -s - --fits a-b-c95 error: unknown option '--fits'96 (Did you mean --first?)97-$ node split.js -s / --first a/b/c97+$ node split.js -s - --first a-b-c98 [ 'a' ]99 ```100 101 Here is a more complete program using a subcommand and with descriptions for the help. In a multi-command program, you have an action handler for each command (or stand-alone executables for the commands).35 unmodified lines137 --first display just the first substring138 -s, --separator <char> separator character (default: ",")139 -h, --help display help for command140 141-$ node string-util.js split --separator=/ a/b/c141+$ node string-util.js split --separator=- a-b-c142 [ 'a', 'b', 'c' ]143 ```144 145 More samples can be found in the [examples](https://github.com/tj/commander.js/tree/master/examples) directory.7 unmodified lines153 // CommonJS (.cjs)154 const { program } = require('commander');155 ```156 157-For larger programs which may use commander in multiple ways, including unit testing, it is better to create a local Command object to use.157+For larger programs which may use commander in multiple ways, including unit testing, it is better to create a local `Command` object to use.158 159 ```js160 // CommonJS (.cjs)161 const { Command } = require('commander');13 unmodified lines175 ```176 177 ## Options178 179-Options are defined with the `.option()` method, also serving as documentation for the options. Each option can have a short flag (single character) and a long name, separated by a comma or space or vertical bar ('|'). To allow a wider range of short-ish flags than just180-single characters, you may also have two long options. Examples:179+Options are defined with the `.option()` method, also serving as documentation for the options. Each option can have a short flag (single character) and a long name, separated by a comma, a space, or a vertical bar (`|`). To allow a wider range of short-ish flags than just single characters, you may also have two long options.180 181 ```js182 program183 .option('-p, --port <number>', 'server port number')2 unmodified lines186 ```187 188 The parsed options can be accessed by calling `.opts()` on a `Command` object, and are passed to the action handler.189 191-Multi-word options such as "--template-engine" are camel-cased, becoming `program.opts().templateEngine` etc.190+Multi-word options like `--template-engine` are normalized to camelCase option names, resulting in properties such as `program.opts().templateEngine`.191 193-An option and its option-argument can be separated by a space, or combined into the same argument. The option-argument can follow the short option directly or follow an `=` for a long option.192+An option and its option-argument can be separated by a space, or combined into the same argument. The option-argument can follow the short option directly, or follow an `=` for a long option.193 194 ```sh195 serve -p 80196 serve -p8046 unmodified lines243 - cheese244 ```245 246 Multiple boolean short options may be combined following the dash, and may be followed by a single short option taking a value.248-For example `-d -s -p cheese` may be written as `-ds -p cheese` or even `-dsp cheese`.247+For example, `-d -s -p cheese` may be written as `-ds -p cheese` or even `-dsp cheese`.248 249 Options with an expected option-argument are greedy and will consume the following argument whatever the value.250 So `--id -xyz` reads `-xyz` as the option-argument.251 22 unmodified lines274 ```275 276 ### Other option types, negatable boolean and boolean|value277 279-You can define a boolean option long name with a leading `no-` to set the option value to false when used.280-Defined alone without a matching positive option, this also makes the option true by default.278+You can define a boolean option long name with a leading `no-` to set the option value to `false` when used.279+Defined alone without a matching positive option, this also makes the option `true` by default.280 281 Example file: [options-negatable.js](./examples/options-negatable.js)282 283 ```js20 unmodified lines304 You ordered a pizza with no sauce and no cheese305 ```306 307 You can specify an option which may be used as a boolean option but may optionally take an option-argument309-(declared with square brackets like `--optional [value]`).308+(declared with square brackets, like `--optional [value]`).309 310 Example file: [options-boolean-or-value.js](./examples/options-boolean-or-value.js)311 312 ```js24 unmodified lines337 For information about possible ambiguous cases, see [options taking varying arguments](./docs/options-in-depth.md).338 339 ### Required option340 342-You may specify a required (mandatory) option using `.requiredOption()`. The option must have a value after parsing, usually specified on the command line, or perhaps from a default value (say from environment). The method is otherwise the same as `.option()` in format, taking flags and description, and optional default value or custom processing.341+You may specify a required (mandatory) option using `.requiredOption()`. The option must have a value after parsing, usually specified on the command line, or perhaps from a default value (e.g., from environment). 342 343+The method is otherwise the same as `.option()` in format, taking flags and description, and optional default value or custom processing.344+345 Example file: [options-required.js](./examples/options-required.js)346 347 ```js348 program11 unmodified lines360 361 You may make an option variadic by appending `...` to the value placeholder when declaring the option. On the command line you362 can then specify multiple option-arguments, and the parsed option value will be an array. The extra arguments363 are read until the first argument starting with a dash. The special argument `--` stops option processing entirely. If a value363-is specified in the same argument as the option then no further values are read.364+is specified in the same argument as the option, then no further values are read.365 366 Example file: [options-variadic.js](./examples/options-variadic.js)367 368 ```js22 unmodified lines391 For information about possible ambiguous cases, see [options taking varying arguments](./docs/options-in-depth.md).392 393 ### Version option394 394-The optional `version` method adds handling for displaying the command version. The default option flags are `-V` and `--version`, and when present the command prints the version number and exits.395+The optional `.version()` method adds handling for displaying the command version. The default option flags are `-V` and `--version`. When used, the command prints the version number and exits.396 397 ```js398 program.version('0.0.1');399 ```2 unmodified lines402 $ ./examples/pizza -V403 0.0.1404 ```405 405-You may change the flags and description by passing additional parameters to the `version` method, using406-the same syntax for flags as the `option` method.406+You may change the flags and description by passing additional parameters to the `.version()` method, using407+the same syntax for flags as the `.option()` method.408 409 ```js410 program.version('0.0.1', '-v, --vers', 'output the current version');411 ```38 unmodified lines450 $ extra --disable-server --port 8000451 error: option '--disable-server' cannot be used with option '-p, --port <number>'452 ```453 453-Specify a required (mandatory) option using the `Option` method `.makeOptionMandatory()`. This matches the `Command` method [.requiredOption()](#required-option).454+Specify a required (mandatory) option using the `Option` method `.makeOptionMandatory()`. This matches the `Command` method [`.requiredOption()`](#required-option).455 456 ### Custom option processing457 458 You may specify a function to do custom processing of option-arguments. The callback function receives two parameters,59 unmodified lines518 ```519 520 ## Commands521 521-You can specify (sub)commands using `.command()` or `.addCommand()`. There are two ways these can be implemented: using an action handler attached to the command, or as a stand-alone executable file (described in more detail later). The subcommands may be nested ([example](./examples/nestedCommands.js)).522+You can specify (sub)commands using `.command()` or `.addCommand()`. There are two ways these can be implemented: using an `.action()` handler attached to the command; or as a stand-alone executable file. (More detail about this later.)523 524+Subcommands may be nested. Example file: [nestedCommands.js](./examples/nestedCommands.js).525+526 In the first parameter to `.command()` you specify the command name. You may append the command-arguments after the command name, or specify them separately using `.argument()`. The arguments may be `<required>` or `[optional]`, and the last argument may also be `variadic...`.527 528 You can use `.addCommand()` to add an already configured subcommand to the program.529 22 unmodified lines552 ```553 554 Configuration options can be passed with the call to `.command()` and `.addCommand()`. Specifying `hidden: true` will555 remove the command from the generated help output. Specifying `isDefault: true` will run the subcommand if no other553-subcommand is specified ([example](./examples/defaultCommand.js)).556+subcommand is specified. (Example file: [defaultCommand.js](./examples/defaultCommand.js).)557 555-You can add alternative names for a command with `.alias()`. ([example](./examples/alias.js))558+You can add alternative names for a command with `.alias()`. (Example file: [alias.js](./examples/alias.js).)559 557-`.command()` automatically copies the inherited settings from the parent command to the newly created subcommand. This is only done during creation, any later setting changes to the parent are not inherited.560+`.command()` automatically copies the inherited settings from the parent command to the newly created subcommand. This is only done during creation; any later setting changes to the parent are not inherited.561 562 For safety, `.addCommand()` does not automatically copy the inherited settings from the parent command. There is a helper routine `.copyInheritedSettings()` for copying the settings when they are wanted.563 564 ### Command-arguments565 566 For subcommands, you can specify the argument syntax in the call to `.command()` (as shown above). This564-is the only method usable for subcommands implemented using a stand-alone executable, but for other subcommands565-you can instead use the following method.567+is the only method usable for subcommands implemented using a stand-alone executable.568 567-To configure a command, you can use `.argument()` to specify each expected command-argument.569+Alternatively, you can instead use the following method. To configure a command, you can use `.argument()` to specify each expected command-argument.570 You supply the argument name and an optional description. The argument may be `<required>` or `[optional]`.571 You can specify a default value for an optional command-argument.572 573 Example file: [argument.js](./examples/argument.js)8 unmodified lines582 console.log('password:', password);583 });584 ```585 584- The last argument of a command can be variadic, and only the last argument. To make an argument variadic you585- append `...` to the argument name. A variadic argument is passed to the action handler as an array. For example:586+The last argument of a command can be variadic, and _only_ the last argument. To make an argument variadic, simply587+append `...` to the argument name.588 589+A variadic argument is passed to the action handler as an array.590+591 ```js592 program593 .version('0.1.0')594 .command('rmdir')67 unmodified lines662 console.log(`Thank-you ${title}${name}`);663 });664 ```665 662-If you prefer, you can work with the command directly and skip declaring the parameters for the action handler. The `this` keyword is set to the running command and can be used from a function expression (but not from an arrow function).666+If you prefer, you can work with the command directly and skip declaring the parameters for the action handler. If you use a function expression (but not an arrow function), the `this` keyword is set to the running command.667 668 Example file: [action-this.js](./examples/action-this.js)669 670 ```js5 unmodified lines676 console.error('Run script %s on port %s', this.args[0], this.opts().port);677 });678 ```679 676-You may supply an `async` action handler, in which case you call `.parseAsync` rather than `.parse`.680+You may supply an `async` action handler, in which case you call `.parseAsync()` rather than `.parse()`.681 682 ```js683 async function run() { /* code goes here */ }684 4 unmodified lines689 await program.parseAsync(process.argv);690 }691 ```692 689-A command's options and arguments on the command line are validated when the command is used. Any unknown options or missing arguments or excess arguments will be reported as an error. You can suppress the unknown option check with `.allowUnknownOption()`. You can suppress the excess arguments check with `.allowExcessArguments()`.693+A command's options and arguments on the command line are validated when the command is used. Any unknown options, missing arguments, or excess arguments will be reported as an error. 694 695+You can suppress the unknown option check with `.allowUnknownOption()`. You can suppress the excess arguments check with `.allowExcessArguments()`.696+697 ### Stand-alone executable (sub)commands698 699 When `.command()` is invoked with a description argument, this tells Commander that you're going to use stand-alone executables for subcommands.694-Commander will search the files in the directory of the entry script for a file with the name combination `command-subcommand`, like `pm-install` or `pm-search` in the example below. The search includes trying common file extensions, like `.js`.700+Commander will search the files in the directory of the entry script for a file with the name combination `command-subcommand` (like `pm-install` or `pm-search` in the example below). The search includes trying common file extensions, like `.js`.701 You may specify a custom name (and path) with the `executableFile` configuration option.702 You may specify a custom search directory for subcommands with `.executableDir()`.703 704 You handle the options for an executable (sub)command in the executable, and don't declare them at the top-level.31 unmodified lines736 }737 });738 ```739 734-The callback hook can be `async`, in which case you call `.parseAsync` rather than `.parse`. You can add multiple hooks per event.740+The callback hook can be `async`, in which case you call `.parseAsync()` rather than `.parse()`. You can add multiple hooks per event.741 742 The supported events are:743 744 | event name | when hook called | callback parameters |745 | :-- | :-- | :-- |746 | `preAction`, `postAction` | before/after action handler for this command and its nested subcommands | `(thisCommand, actionCommand)` |747 | `preSubcommand` | before parsing direct subcommand | `(thisCommand, subcommand)` |748 743-For an overview of the life cycle events see [parsing life cycle and hooks](./docs/parsing-and-hooks.md).749+For an overview of the life cycle events, see [parsing life cycle and hooks](./docs/parsing-and-hooks.md).750 751 ## Automated help752 753 The help information is auto-generated based on the information commander already knows about your program. The default66 unmodified lines820 The positions "beforeAll" and "afterAll" apply to the command and all its subcommands.821 822 The second parameter can be a string, or a function returning a string. The function is passed a context object for your convenience. The properties are:823 818-- error: a boolean for whether the help is being displayed due to a usage error819-- command: the Command which is displaying the help824+- `error`: a boolean for whether the help is being displayed due to a usage error825+- `command`: the `Command` which is displaying the help826 827 ### Display help after errors828 829 The default behaviour for usage errors is to just display a short error message.35 unmodified lines865 ### .name866 867 The command name appears in the help, and is also used for locating stand-alone executable subcommands.868 863-You may specify the program name using `.name()` or in the Command constructor. For the program, Commander will869+You may specify the program name using `.name()` or in the `Command` constructor. For the program, Commander will870 fall back to using the script name from the full arguments passed into `.parse()`. However, the script name varies871 depending on how your program is launched, so you may wish to specify it explicitly.872 873 ```js1 unmodified line875 const pm = new Command('pm');876 ```877 878 Subcommands get a name when specified using `.command()`. If you create the subcommand yourself to use with `.addCommand()`,873-then set the name using `.name()` or in the Command constructor.879+then set the name using `.name()` or in the `Command` constructor.880 881 ### .usage882 883 This allows you to customise the usage description in the first line of the help. Given:25 unmodified lines909 ```910 911 ### .helpOption(flags, description)912 907-By default, every command has a help option. You may change the default help flags and description. Pass false to disable the built-in help option.913+By default, every command has a help option. You may change the default help flags and description. Pass `false` to disable the built-in help option.914 915 ```js916 program917 .helpOption('-e, --HELP', 'read more information');918 ```919 914-(Or use `.addHelpOption()` to add an option you construct yourself.)920+Alternatively, use `.addHelpOption()` to add an option you construct yourself.921 922 ### .helpCommand()923 918-A help command is added by default if your command has subcommands. You can explicitly turn on or off the implicit help command with `.helpCommand(true)` and `.helpCommand(false)`.924+A help command is added by default if your command has subcommands. You can explicitly turn the implicit help command on or off with `.helpCommand(true)` and `.helpCommand(false)`.925 926 You can both turn on and customise the help command by supplying the name and description:927 928 ```js929 program.helpCommand('assist [command]', 'show assistance');930 ```931 926-(Or use `.addHelpCommand()` to add a command you construct yourself.)932+Alternatively, use `.addHelpCommand()` to add a command you construct yourself.933 934 ### Help Groups935 936 The help by default lists options under the the heading `Options:` and commands under `Commands:`. You can create your own groups931-with different headings. The high-level way is to set the desired group heading while adding the options and commands,932-using `.optionsGroup()` and `.commandsGroup()`. The low-level way is using `.helpGroup()` on an individual `Option` or `Command`937+with different headings. 938 939+- The high-level way is to set the desired group heading while adding the options and commands, using `.optionsGroup()` and `.commandsGroup()`. 940+- The low-level way is using `.helpGroup()` on an individual `Option` or `Command`.941+942 Example file: [help-groups.js](./examples/help-groups.js)943 944 ### More configuration945 938-The built-in help is formatted using the Help class.939-You can configure the help by modifying data properties and methods using `.configureHelp()`, or by subclassing Help using `.createHelp()` .946+The built-in help is formatted using the `Help` class.947+You can configure the help by modifying data properties and methods using `.configureHelp()`, or by subclassing `Help` using `.createHelp()` .948 941-Simple properties include `sortSubcommands`, `sortOptions`, and `showGlobalOptions`. You can add color using the style methods like `styleTitle()`.949+Simple properties include `sortSubcommands`, `sortOptions`, and `showGlobalOptions`. You can add color using the style methods like `.styleTitle()`.950 943-For more detail and examples of changing the displayed text, color, and layout see (./docs/help-in-depth.md).951+For more detail and examples of changing the displayed text, color, and layout, see: [Help in Depth](./docs/help-in-depth.md).952 953 ## Custom event listeners954 947-You can execute custom actions by listening to command and option events.955+You can execute custom actions by listening to `command` and `option` events.956 957 ```js958 program.on('option:verbose', function () {959 process.env.VERBOSE = this.opts().verbose;5 unmodified lines965 ### .parse() and .parseAsync()966 967 Call with no parameters to parse `process.argv`. Detects Electron and special node options like `node --eval`. Easy mode!968 961-Or call with an array of strings to parse, and optionally where the user arguments start by specifying where the arguments are `from`:969+Or, call with an array of strings to parse, and optionally where the user arguments start by specifying where the arguments are `from`:970 971 - `'node'`: default, `argv[0]` is the application and `argv[1]` is the script being run, with user arguments after that972 - `'electron'`: `argv[0]` is the application and `argv[1]` varies depending on whether the electron application is packaged973 - `'user'`: just user arguments5 unmodified lines979 program.parse(process.argv); // assume argv[0] is app and argv[1] is script980 program.parse(['--port', '80'], { from: 'user' }); // just user supplied arguments, nothing special about argv[0]981 ```982 975-Use parseAsync instead of parse if any of your action handlers are async.983+Use `.parseAsync()` instead of `.parse()` if any of your action handlers are async.984 985 ### Parsing Configuration986 987 If the default parsing does not suit your needs, there are some behaviours to support other usage patterns.26 unmodified lines1014 1015 By default, the option processing shows an error for an unknown option. To have an unknown option treated as an ordinary command-argument and continue looking for options, use `.allowUnknownOption()`. This lets you mix known and unknown options.1016 1017 By default, the argument processing displays an error for more command-arguments than expected.1010-To suppress the error for excess arguments, use`.allowExcessArguments()`.1018+To suppress the error for excess arguments, use `.allowExcessArguments()`.1019 1020 ### Legacy options as properties1021 1022 Before Commander 7, the option values were stored as properties on the command.1023 This was convenient to code, but the downside was possible clashes with1016-existing properties of `Command`. You can revert to the old behaviour to run unmodified legacy code by using `.storeOptionsAsProperties()`.1024+existing properties of `Command`. 1025 1026+You can revert to the old behaviour to run unmodified legacy code by using `.storeOptionsAsProperties()`.1027+1028 ```js1029 program1030 .storeOptionsAsProperties()1031 .option('-d, --debug')5 unmodified lines1037 ```1038 1039 ### TypeScript1040 1031-extra-typings: There is an optional project to infer extra type information from the option and argument definitions.1041+**extra-typings:** There is an optional project to infer extra type information from the option and argument definitions.1042 This adds strong typing to the options returned by `.opts()` and the parameters to `.action()`.1033-See [commander-js/extra-typings](https://github.com/commander-js/extra-typings) for more.1043+For more, see the repo: [commander-js/extra-typings](https://github.com/commander-js/extra-typings).1044 1035-```1045+```ts1046 import { Command } from '@commander-js/extra-typings';1047 ```1048 1039-ts-node: If you use `ts-node` and stand-alone executable subcommands written as `.ts` files, you need to call your program through node to get the subcommands called correctly. e.g.1049+**ts-node:** If you use `ts-node` and stand-alone executable subcommands written as `.ts` files, you need to call your program through node to get the subcommands called correctly, e.g.:1050 1051 ```sh1052 node -r ts-node/register pm.ts1053 ```6 unmodified lines1060 const { createCommand } = require('commander');1061 const program = createCommand();1062 ```1063 1054-`createCommand` is also a method of the Command object, and creates a new command rather than a subcommand. This gets used internally1064+`createCommand()` is also a method of the `Command` object, and creates a new command rather than a subcommand. This gets used internally1065 when creating subcommands using `.command()`, and you may override it to1056-customise the new subcommand (example file [custom-command-class.js](./examples/custom-command-class.js)).1066+customise the new subcommand. Example file: [custom-command-class.js](./examples/custom-command-class.js).1067 1068 ### Node options such as `--harmony`1069 1070 You can enable `--harmony` option in two ways:1071 1062-- Use `#! /usr/bin/env node --harmony` in the subcommands scripts. (Note Windows does not support this pattern.)1063-- Use the `--harmony` option when call the command, like `node --harmony examples/pm publish`. The `--harmony` option will be preserved when spawning subcommand process.1072+- Use `#! /usr/bin/env node --harmony` in the subcommands scripts. (Note: Windows does not support this pattern.)1073+- Use the `--harmony` option when calling the command, like `node --harmony examples/pm publish`. The `--harmony` option will be preserved when spawning subcommand processes.1074 1075 ### Debugging stand-alone executable subcommands1076 1077 An executable subcommand is launched as a separate child process.1078 1079 If you are using the node inspector for [debugging](https://nodejs.org/en/docs/guides/debugging-getting-started/) executable subcommands using `node --inspect` et al.,1080 the inspector port is incremented by 1 for the spawned subcommand.1081 1072-If you are using VSCode to debug executable subcommands you need to set the `"autoAttachChildProcesses": true` flag in your launch.json configuration.1082+If you are using VSCode to debug executable subcommands you need to set the `"autoAttachChildProcesses": true` flag in your `launch.json` configuration.1083 1084 ### npm run-script1085 1076-By default, when you call your program using run-script, `npm` will parse any options on the command-line and they will not reach your program. Use1086+By default, when you call your program using `run-script`, `npm` will parse any options on the command-line and they will not reach your program. Use1087 `--` to stop the npm option parsing and pass through all the arguments.1088 1079- The synopsis for [npm run-script](https://docs.npmjs.com/cli/v9/commands/npm-run-script) explicitly shows the `--` for this reason:1089+ The synopsis for [`npm run-script`](https://docs.npmjs.com/cli/v9/commands/npm-run-script) explicitly shows the `--` for this reason:1090 1091 ```console1092 npm run-script <command> [-- <args>]1093 ```1 unmodified line1095 ### Display error1096 1097 This routine is available to invoke the Commander error handling for your own error conditions. (See also the next section about exit handling.)1098 1089-As well as the error message, you can optionally specify the `exitCode` (used with `process.exit`)1099+As well as the error message, you can optionally specify the `exitCode` (used with `process.exit()`)1100 and `code` (used with `CommanderError`).1101 1102 ```js1103 program.error('Password must be longer than four characters');1 unmodified line1105 ```1106 1107 ### Override exit and output handling1108 1099-By default, Commander calls `process.exit` when it detects errors, or after displaying the help or version. You can override1109+By default, Commander calls `process.exit()` when it detects errors, or after displaying the help or version. You can override1110 this behaviour and optionally supply a callback. The default override throws a `CommanderError`.1111 1102-The override callback is passed a `CommanderError` with properties `exitCode` number, `code` string, and `message`.1103-Commander expects the callback to terminate the normal program flow, and will call `process.exit` if the callback returns.1104-The normal display of error messages or version or help is not affected by the override which is called after the display.1112+The override callback is passed a `CommanderError` with the properties:1113+- `exitCode`: number1114+- `code`: string 1115+- `message`: string1116 1117+Commander expects the callback to terminate the normal program flow, and will call `process.exit()` if the callback returns.1118+The normal display of error messages or version or help is not affected by the override, which is called after the display.1119+1120 ```js1121 program.exitOverride();1122 1123 try {28 unmodified lines1152 1153 There is more information available about:1154 1155 - [deprecated](./docs/deprecated.md) features still supported for backwards compatibility1156+- [Help in Depth](./docs/help-in-depth.md) configuring help output1157 - [options taking varying arguments](./docs/options-in-depth.md)1158 - [parsing life cycle and hooks](./docs/parsing-and-hooks.md)1159+- [Release Policy](./docs/release-policy.md)1160 1161 ## Support1162 1163 The current version of Commander is fully supported on Long Term Support versions of Node.js, and requires at least v20.1148-(For older versions of Node.js, use an older version of Commander.)1164 1165+Older major versions of Commander receive security updates for 12 months. For more see: [Release Policy](./docs/release-policy.md).1166+1167 The main forum for free and community support is the project [Issues](https://github.com/tj/commander.js/issues) on GitHub.1168 1169 ### Commander for enterprise1170 3 unmodified linesmodified:SECURITY.md+2 added-8 removed
1 # Security Policy2 3-## Supported Versions4-5-Security updates are supported for the current version and the previous major version.6-7-Pull Requests for security issues will be considered for older versions back to 2.x.8-9-## Reporting a Vulnerability10-3 To report a security vulnerability, please use the4 [Tidelift security contact](https://tidelift.com/security).5 Tidelift will coordinate the fix and disclosure.6+7+Please do not report security vulnerabilities through public GitHub issues or pull requests.