Merge branch 'master' into release/10.x
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by John Gee · committed by John Gee · parents 5f3f004, 7a5bd06 · Browse files · 17 files·+882 added−322 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
17 files+882 added−322 removed
- tests:+224 added−52 removed
- other:+658 added−270 removed
Provenance
- Commit
2bdd631- Tree
3eee645- Author
John Gee <john@ruru.gen.nz>- Committer
John Gee <john@ruru.gen.nz>- Parent 1
5f3f004- Parent 2
7a5bd06
17 files changed+882 added−322 removed
added:examples/alias.js+37 added
12345678910111213141516171819202122232425262728293031323334353637#!/usr/bin/env node
// This example shows giving alternative names for a command.
// const { Command } = require('commander'); // (normal include)const { Command } = require('../'); // include commander in git clone of commander repoconst program = new Command();
program .command('exec') .argument('<script>') .alias('ex') .action((script) => { console.log(`execute: ${script}`); });
program .command('print') .argument('<file>') // Multiple aliases is unusual but supported! You can call alias multiple times, // and/or add multiple aliases at once. Only the first alias is displayed in the help. .alias('p') .alias('pr') .aliases(['display', 'show']) .action((file) => { console.log(`print: ${file}`); });
program.parse();
// Try the following:// node alias.js --help// node alias.js exec script// node alias.js ex script// node alias.js print file// node alias.js pr file// node alias.js show fileadded:examples/global-options-added.js+51 added
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051#!/usr/bin/env node
// This example shows a couple of ways to add a "global" option to all of the subcommands.// The first approach is to use a subclass and add the option as the subcommand is created.// The second approach is to loop over the subcommands after they have been created.//// The code in this example assumes there is just one level of subcommands.//// (A different pattern for a "global" option is to add it to the root command, rather// than to the subcommand. See global-options-nested.js.)
// const { Command } = require('commander'); // (normal include)const { Command } = require('../'); // include commander in git clone of commander repo
// Common options can be added when subcommands are created by using a custom subclass.// If the options are unsorted in the help, these will appear first.class MyRootCommand extends Command { createCommand(name) { const cmd = new Command(name); cmd.option('-v, --verbose', 'use verbose logging'); return cmd; }}
const program = new MyRootCommand();
program.command('print') .option('--a4', 'Use A4 sized paper') .action((options) => { console.log('print options: %O', options); });
program.command('serve') .option('-p, --port <number>', 'port number for server') .action((options) => { console.log('serve options: %O', options); });
// Common options can be added manually after setting up program and subcommands.// If the options are unsorted in the help, these will appear last.program.commands.forEach((cmd) => { cmd.option('-d, --debug');});
program.parse();
// Try the following:// node global-options-added.js --help// node global-options-added.js print --help// node global-options-added.js serve --help// node global-options-added.js serve --debug --verboseadded:examples/global-options-nested.js+32 added
1234567891011121314151617181920212223242526272829303132#!/usr/bin/env node
// This example shows global options on the program which affect all the subcommands.// See how to work with global options in the subcommand and display them in the help.//// (A different pattern for a "global" option is to add it to the subcommands, rather// than to the program. See global-options-added.js.)
// const { Command } = require('commander'); // (normal include)const { Command } = require('../'); // include commander in git clone of commander repo
const program = new Command();
program .configureHelp({ showGlobalOptions: true }) .option('-g, --global');
program .command('sub') .option('-l, --local') .action((options, cmd) => { console.log({ opts: cmd.opts(), optsWithGlobals: cmd.optsWithGlobals() }); });
program.parse();
// Try the following:// node global-options-nested.js --global sub --local// node global-options-nested.js sub --helpdeleted:examples/global-options.js-51 removed
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051#!/usr/bin/env node
// This example shows a couple of ways to add a "global" option to all of the subcommands.// The first approach is to use a subclass and add the option as the subcommand is created.// The second approach is to loop over the subcommands after they have been created.//// The code in this example assumes there is just one level of subcommands.//// (A different pattern for a "global" option is to add it to the root command, rather// than to the subcommand. That is not shown here.)
// const { Command } = require('commander'); // (normal include)const { Command } = require('../'); // include commander in git clone of commander repo
// Common options can be added when subcommands are created by using a custom subclass.// If the options are unsorted in the help, these will appear first.class MyRootCommand extends Command { createCommand(name) { const cmd = new Command(name); cmd.option('-v, --verbose', 'use verbose logging'); return cmd; }}
const program = new MyRootCommand();
program.command('print') .option('--a4', 'Use A4 sized paper') .action((options) => { console.log('print options: %O', options); });
program.command('serve') .option('-p, --port <number>', 'port number for server') .action((options) => { console.log('serve options: %O', options); });
// Common options can be added manually after setting up program and subcommands.// If the options are unsorted in the help, these will appear last.program.commands.forEach((cmd) => { cmd.option('-d, --debug');});
program.parse();
// Try the following:// node common-options.js --help// node common-options.js print --help// node common-options.js serve --help// node common-options.js serve --debug --verbosedeleted:examples/optsWithGlobals.js-24 removed
123456789101112131415161718192021222324// const { Command } = require('commander'); // (normal include)const { Command } = require('../'); // include commander in git clone of commander repo
// Show use of .optsWithGlobals(), and compare with .opts().
const program = new Command();
program .option('-g, --global');
program .command('sub') .option('-l, --local') .action((options, cmd) => { console.log({ opts: cmd.opts(), optsWithGlobals: cmd.optsWithGlobals() }); });
program.parse();
// Try the following:// node optsWithGlobals.js --global sub --localmodified:lib/command.js+19 added
813 unmodified lines814 return this._optionValueSources[key];815 }816 817 /**818+ * Get source of option value. See also .optsWithGlobals().819+ * Expected values are default | config | env | cli | implied820+ *821+ * @param {string} key822+ * @return {string}823+ */824+825+ getOptionValueSourceWithGlobals(key) {826+ // global overwrites local, like optsWithGlobals827+ let source;828+ getCommandAndParents(this).forEach((cmd) => {829+ if (cmd.getOptionValueSource(key) !== undefined) {830+ source = cmd.getOptionValueSource(key);831+ }832+ });833+ return source;834+ }835+836+ /**837 * Get user arguments from implied or explicit arguments.838 * Side-effects: set _scriptPath if args included script. Used for default program name, and subcommand searches.839 *840 * @api private1339 unmodified linesmodified:lib/help.js+62 added-7 removed
14 unmodified lines15 constructor() {16 this.helpWidth = undefined;17 this.sortSubcommands = false;18 this.sortOptions = false;19+ this.showGlobalOptions = false;20 }21 22 /**23 * Get an array of the visible subcommands. Includes a placeholder for the implicit help command, if there is one.22 unmodified lines46 return visibleCommands;47 }48 49 /**50+ * Compare options for sort.51+ *52+ * @param {Option} a53+ * @param {Option} b54+ * @returns number55+ */56+ compareOptions(a, b) {57+ const getSortKey = (option) => {58+ // WYSIWYG for order displayed in help. Short used for comparison if present. No special handling for negated.59+ return option.short ? option.short.replace(/^-/, '') : option.long.replace(/^--/, '');60+ };61+ return getSortKey(a).localeCompare(getSortKey(b));62+ }63+64+ /**65 * Get an array of the visible options. Includes a placeholder for the implicit help option, if there is one.66 *67 * @param {Command} cmd68 * @returns {Option[]}15 unmodified lines84 }85 visibleOptions.push(helpOption);86 }87 if (this.sortOptions) {72- const getSortKey = (option) => {73- // WYSIWYG for order displayed in help with short before long, no special handling for negated.74- return option.short ? option.short.replace(/^-/, '') : option.long.replace(/^--/, '');75- };76- visibleOptions.sort((a, b) => {77- return getSortKey(a).localeCompare(getSortKey(b));78- });88+ visibleOptions.sort(this.compareOptions);89 }90 return visibleOptions;91 }92 93 /**94+ * Get an array of the visible global options. (Not including help.)95+ *96+ * @param {Command} cmd97+ * @returns {Option[]}98+ */99+100+ visibleGlobalOptions(cmd) {101+ if (!this.showGlobalOptions) return [];102+103+ const globalOptions = [];104+ for (let parentCmd = cmd.parent; parentCmd; parentCmd = parentCmd.parent) {105+ const visibleOptions = parentCmd.options.filter((option) => !option.hidden);106+ globalOptions.push(...visibleOptions);107+ }108+ if (this.sortOptions) {109+ globalOptions.sort(this.compareOptions);110+ }111+ return globalOptions;112+ }113+114+ /**115 * Get an array of the arguments if any have a description.116 *117 * @param {Command} cmd118 * @returns {Argument[]}80 unmodified lines199 }, 0);200 }201 202 /**203+ * Get the longest global option term length.204+ *205+ * @param {Command} cmd206+ * @param {Help} helper207+ * @returns {number}208+ */209+210+ longestGlobalOptionTermLength(cmd, helper) {211+ return helper.visibleGlobalOptions(cmd).reduce((max, option) => {212+ return Math.max(max, helper.optionTerm(option).length);213+ }, 0);214+ }215+216+ /**217 * Get the longest argument term length.218 *219 * @param {Command} cmd220 * @param {Help} helper164 unmodified lines385 if (optionList.length > 0) {386 output = output.concat(['Options:', formatList(optionList), '']);387 }388 389+ if (this.showGlobalOptions) {390+ const globalOptionList = helper.visibleGlobalOptions(cmd).map((option) => {391+ return formatItem(helper.optionTerm(option), helper.optionDescription(option));392+ });393+ if (globalOptionList.length > 0) {394+ output = output.concat(['Global Options:', formatList(globalOptionList), '']);395+ }396+ }397+398 // Commands399 const commandList = helper.visibleCommands(cmd).map((cmd) => {400 return formatItem(helper.subcommandTerm(cmd), helper.subcommandDescription(cmd));401 });14 unmodified lines416 417 padWidth(cmd, helper) {418 return Math.max(419 helper.longestOptionTermLength(cmd, helper),420+ helper.longestGlobalOptionTermLength(cmd, helper),421 helper.longestSubcommandTermLength(cmd, helper),422 helper.longestArgumentTermLength(cmd, helper)423 );424 }40 unmodified linesmodified:tests/help.padWidth.test.js+13 added
26 unmodified lines2728293031323334353637383940414243444546478 unmodified lines26 unmodified lines const helper = new commander.Help(); expect(helper.padWidth(program, helper)).toEqual(longestThing.length); });
test('when global option term longest return global option length', () => { const longestThing = '--very-long-thing-bigger-than-others'; const program = new commander.Command(); program .argument('<file>', 'desc') .option(longestThing) .configureHelp({ showGlobalOptions: true }); const sub = program .command('sub'); const helper = sub.createHelp(); expect(helper.padWidth(sub, helper)).toEqual(longestThing.length); });
test('when command term longest return command length', () => { const longestThing = 'very-long-thing-bigger-than-others'; const program = new commander.Command(); program8 unmodified linesadded:tests/help.showGlobalOptions.test.js+62 added
1+const commander = require('../');2+3+test('when default configuration then global options hidden', () => {4+ const program = new commander.Command();5+ program6+ .option('--global');7+ const sub = program.command('sub');8+ expect(sub.helpInformation()).not.toContain('global');9+});10+11+test('when showGlobalOptions:true then program options shown', () => {12+ const program = new commander.Command();13+ program14+ .option('--global')15+ .configureHelp({ showGlobalOptions: true });16+ const sub = program.command('sub');17+ expect(sub.helpInformation()).toContain('global');18+});19+20+test('when showGlobalOptions:true and no global options then global options header not shown', () => {21+ const program = new commander.Command();22+ program23+ .configureHelp({ showGlobalOptions: true });24+ const sub = program.command('sub');25+ expect(sub.helpInformation()).not.toContain('Global');26+});27+28+test('when showGlobalOptions:true and nested commands then combined nested options shown program last', () => {29+ const program = new commander.Command();30+ program31+ .option('--global')32+ .configureHelp({ showGlobalOptions: true });33+ const sub1 = program.command('sub1')34+ .option('--sub1');35+ const sub2 = sub1.command('sub2');36+ expect(sub2.helpInformation()).toContain(`Global Options:37+ --sub138+ --global39+`);40+});41+42+test('when showGlobalOptions:true and sortOptions: true then global options sorted', () => {43+ const program = new commander.Command();44+ program45+ .option('-3')46+ .option('-4')47+ .option('-2')48+ .configureHelp({ showGlobalOptions: true, sortOptions: true });49+ const sub1 = program.command('sub1')50+ .option('-6')51+ .option('-1')52+ .option('-5');53+ const sub2 = sub1.command('sub2');54+ expect(sub2.helpInformation()).toContain(`Global Options:55+ -156+ -257+ -358+ -459+ -560+ -661+`);62+});added:tests/help.visibleGlobalOptions.test.js+45 added
1+const commander = require('../');2+3+test('when default configuration then return empty array', () => {4+ const program = new commander.Command();5+ program6+ .option('--global');7+ const sub = program.command('sub');8+ const helper = sub.createHelp();9+ expect(helper.visibleGlobalOptions(program)).toEqual([]);10+});11+12+test('when showGlobalOptions:true then return program options', () => {13+ const program = new commander.Command();14+ program15+ .option('--global')16+ .configureHelp({ showGlobalOptions: true });17+ const sub = program.command('sub');18+ const helper = sub.createHelp();19+ const visibleOptionNames = helper.visibleGlobalOptions(sub).map(option => option.name());20+ expect(visibleOptionNames).toEqual(['global']);21+});22+23+test('when showGlobalOptions:true and program has version then return version', () => {24+ const program = new commander.Command();25+ program26+ .configureHelp({ showGlobalOptions: true })27+ .version('1.2.3');28+ const sub = program.command('sub');29+ const helper = sub.createHelp();30+ const visibleOptionNames = helper.visibleGlobalOptions(sub).map(option => option.name());31+ expect(visibleOptionNames).toEqual(['version']);32+});33+34+test('when showGlobalOptions:true and nested commands then return combined global options', () => {35+ const program = new commander.Command();36+ program37+ .configureHelp({ showGlobalOptions: true })38+ .option('--global');39+ const sub1 = program.command('sub1')40+ .option('--sub1');41+ const sub2 = sub1.command('sub2');42+ const helper = sub2.createHelp();43+ const visibleOptionNames = helper.visibleGlobalOptions(sub2).map(option => option.name());44+ expect(visibleOptionNames).toEqual(['sub1', 'global']);45+});modified:tests/options.optsWithGlobals.test.js+104 added-52 removed
1 const commander = require('../');2 3-test('when variety of options used with program then opts is same as optsWithGlobals', () => {4- const program = new commander.Command();5- program6- .option('-b, --boolean')7- .option('-r, --require-value <value)')8- .option('-f, --float <value>', 'description', parseFloat)9- .option('-d, --default-value <value)', 'description', 'default value')10- .option('-n, --no-something');3+// Testing optsWithGlobals and getOptionValueSourceWithGlobals with focus on globals.4 12- program.parse(['-b', '-r', 'req', '-f', '1e2'], { from: 'user' });13- expect(program.opts()).toEqual(program.optsWithGlobals());14-});5+describe('optsWithGlobals', () => {6+ test('when variety of options used with program then opts is same as optsWithGlobals', () => {7+ const program = new commander.Command();8+ program9+ .option('-b, --boolean')10+ .option('-r, --require-value <value)')11+ .option('-f, --float <value>', 'description', parseFloat)12+ .option('-d, --default-value <value)', 'description', 'default value')13+ .option('-n, --no-something');14 16-test('when options in sub and program then optsWithGlobals includes both', () => {17- const program = new commander.Command();18- let mergedOptions;19- program20- .option('-g, --global <value>');21- program22- .command('sub')23- .option('-l, --local <value)')24- .action((options, cmd) => {25- mergedOptions = cmd.optsWithGlobals();26- });15+ program.parse(['-b', '-r', 'req', '-f', '1e2'], { from: 'user' });16+ expect(program.opts()).toEqual(program.optsWithGlobals());17+ });18 28- program.parse(['-g', 'GGG', 'sub', '-l', 'LLL'], { from: 'user' });29- expect(mergedOptions).toEqual({ global: 'GGG', local: 'LLL' });30-});19+ test('when options in sub and program then optsWithGlobals includes both', () => {20+ const program = new commander.Command();21+ let mergedOptions;22+ program23+ .option('-g, --global <value>');24+ program25+ .command('sub')26+ .option('-l, --local <value)')27+ .action((options, cmd) => {28+ mergedOptions = cmd.optsWithGlobals();29+ });30 32-test('when options in sub and subsub then optsWithGlobals includes both', () => {33- const program = new commander.Command();34- let mergedOptions;35- program36- .command('sub')37- .option('-g, --global <value)')38- .command('subsub')39- .option('-l, --local <value)')40- .action((options, cmd) => {41- mergedOptions = cmd.optsWithGlobals();42- });31+ program.parse(['-g', 'GGG', 'sub', '-l', 'LLL'], { from: 'user' });32+ expect(mergedOptions).toEqual({ global: 'GGG', local: 'LLL' });33+ });34 35+ test('when options in sub and subsub then optsWithGlobals includes both', () => {36+ const program = new commander.Command();37+ let mergedOptions;38+ program39+ .command('sub')40+ .option('-g, --global <value)')41+ .command('subsub')42+ .option('-l, --local <value)')43+ .action((options, cmd) => {44+ mergedOptions = cmd.optsWithGlobals();45+ });46+44- program.parse(['sub', '-g', 'GGG', 'subsub', '-l', 'LLL'], { from: 'user' });45- expect(mergedOptions).toEqual({ global: 'GGG', local: 'LLL' });47+ program.parse(['sub', '-g', 'GGG', 'subsub', '-l', 'LLL'], { from: 'user' });48+ expect(mergedOptions).toEqual({ global: 'GGG', local: 'LLL' });49+ });50+51+ test('when same named option in sub and program then optsWithGlobals includes global', () => {52+ const program = new commander.Command();53+ let mergedOptions;54+ program55+ .option('-c, --common <value>')56+ .enablePositionalOptions();57+ program58+ .command('sub')59+ .option('-c, --common <value)')60+ .action((options, cmd) => {61+ mergedOptions = cmd.optsWithGlobals();62+ });63+64+ program.parse(['-c', 'GGG', 'sub', '-c', 'LLL'], { from: 'user' });65+ expect(mergedOptions).toEqual({ common: 'GGG' });66+ });67 });68 48-test('when same named option in sub and program then optsWithGlobals includes global', () => {49- const program = new commander.Command();50- let mergedOptions;51- program52- .option('-c, --common <value>')53- .enablePositionalOptions();54- program55- .command('sub')56- .option('-c, --common <value)')57- .action((options, cmd) => {58- mergedOptions = cmd.optsWithGlobals();59- });69+describe('getOptionValueSourceWithGlobals', () => {70+ test('when option used with simple command then source is defined', () => {71+ const program = new commander.Command();72+ program73+ .option('-g, --global');74 61- program.parse(['-c', 'GGG', 'sub', '-c', 'LLL'], { from: 'user' });62- expect(mergedOptions).toEqual({ common: 'GGG' });75+ program.parse(['-g'], { from: 'user' });76+ expect(program.getOptionValueSourceWithGlobals('global')).toEqual('cli');77+ });78+79+ test('when option used with program then source is defined', () => {80+ const program = new commander.Command();81+ program82+ .option('-g, --global');83+ const sub = program.command('sub')84+ .option('-l, --local')85+ .action(() => {});86+87+ program.parse(['sub', '-g'], { from: 'user' });88+ expect(sub.getOptionValueSourceWithGlobals('global')).toEqual('cli');89+ });90+91+ test('when option used with subcommand then source is defined', () => {92+ const program = new commander.Command();93+ program94+ .option('-g, --global');95+ const sub = program.command('sub')96+ .option('-l, --local')97+ .action(() => {});98+99+ program.parse(['sub', '-l'], { from: 'user' });100+ expect(sub.getOptionValueSourceWithGlobals('local')).toEqual('cli');101+ });102+103+ test('when same named option in sub and program then source is defined by global', () => {104+ const program = new commander.Command();105+ program106+ .enablePositionalOptions()107+ .option('-c, --common <value>', 'description', 'default value');108+ const sub = program.command('sub')109+ .option('-c, --common <value>')110+ .action(() => {});111+112+ program.parse(['sub', '--common', 'value'], { from: 'user' });113+ expect(sub.getOptionValueSourceWithGlobals('common')).toEqual('default');114+ });115 });modified:typings/index.d.ts+11 added-1 removed
197 unmodified lines198 /** output helpWidth, long lines are wrapped to fit */199 helpWidth?: number;200 sortSubcommands: boolean;201 sortOptions: boolean;202+ showGlobalOptions: boolean;203 204 constructor();205 206 /** Get the command term to show in the list of subcommands. */17 unmodified lines224 /** Get an array of the visible subcommands. Includes a placeholder for the implicit help command, if there is one. */225 visibleCommands(cmd: Command): Command[];226 /** Get an array of the visible options. Includes a placeholder for the implicit help option, if there is one. */227 visibleOptions(cmd: Command): Option[];228+ /** Get an array of the visible global options. (Not including help.) */229+ visibleGlobalOptions(cmd: Command): Option[];230 /** Get an array of the arguments which have descriptions. */231 visibleArguments(cmd: Command): Argument[];232 233 /** Get the longest command term length. */234 longestSubcommandTermLength(cmd: Command, helper: Help): number;235 /** Get the longest option term length. */236 longestOptionTermLength(cmd: Command, helper: Help): number;237+ /** Get the longest global option term length. */238+ longestGlobalOptionTermLength(cmd: Command, helper: Help): number;239 /** Get the longest argument term length. */240 longestArgumentTermLength(cmd: Command, helper: Help): number;241 /** Calculate the pad width from the maximum term length. */242 padWidth(cmd: Command, helper: Help): number;355 unmodified lines598 */599 setOptionValueWithSource(key: string, value: unknown, source: OptionValueSource): this;600 601 /**597- * Retrieve option value source.602+ * Get source of option value.603 */604 getOptionValueSource(key: string): OptionValueSource | undefined;605 606 /**607+ * Get source of option value. See also .optsWithGlobals().608+ */609+ getOptionValueSourceWithGlobals(key: string): OptionValueSource | undefined;610+611+ /**612 * Alter parsing of short flags with optional values.613 *614 * @example615 * ```275 unmodified linesmodified:typings/index.test-d.ts+6 added
173 unmodified lines174 175 // getOptionValueSource176 expectType<commander.OptionValueSource | undefined>(program.getOptionValueSource('example'));177 178+// getOptionValueSourceWithGlobals179+expectType<commander.OptionValueSource | undefined>(program.getOptionValueSourceWithGlobals('example'));180+181 // combineFlagAndOptionalValue182 expectType<commander.Command>(program.combineFlagAndOptionalValue());183 expectType<commander.Command>(program.combineFlagAndOptionalValue(false));184 184 unmodified lines369 370 expectType<number | undefined>(helper.helpWidth);371 expectType<boolean>(helper.sortSubcommands);372 expectType<boolean>(helper.sortOptions);373+expectType<boolean>(helper.showGlobalOptions);374 375 expectType<string>(helper.subcommandTerm(helperCommand));376 expectType<string>(helper.commandUsage(helperCommand));377 expectType<string>(helper.commandDescription(helperCommand));4 unmodified lines382 expectType<string>(helper.argumentDescription(helperArgument));383 384 expectType<commander.Command[]>(helper.visibleCommands(helperCommand));385 expectType<commander.Option[]>(helper.visibleOptions(helperCommand));386+expectType<commander.Option[]>(helper.visibleGlobalOptions(helperCommand));387 expectType<commander.Argument[]>(helper.visibleArguments(helperCommand));388 389 expectType<number>(helper.longestSubcommandTermLength(helperCommand, helper));390 expectType<number>(helper.longestOptionTermLength(helperCommand, helper));391+expectType<number>(helper.longestGlobalOptionTermLength(helperCommand, helper));392 expectType<number>(helper.longestArgumentTermLength(helperCommand, helper));393 expectType<number>(helper.padWidth(helperCommand, helper));394 395 expectType<string>(helper.wrap('a b c', 50, 3));86 unmodified linesmodified:CHANGELOG.md+19 added-8 removed
6 unmodified lines7 8 <!-- markdownlint-disable MD024 -->9 <!-- markdownlint-disable MD004 -->10 11+## [9.5.0] (2023-01-07)12+13+### Added14+15+- `.getOptionValueSourceWithGlobals()` ([#1832])16+- `showGlobalOptions` for `.configureHelp{}` and `Help` ([#1828])17+18 ## [9.4.1] (2022-09-30)19 20 ### Fixed21 77 unmodified lines99 - default value for boolean option only shown in help if true/false ([#1652])100 - use command name as prefix for subcommand stand-alone executable name (with fallback to script name for backwards compatibility) ([#1571])101 - allow absolute path with `executableFile` ([#1571])102 - removed restriction that nested subcommands must specify `executableFile` ([#1571])96-- TypeScript: allow passing readonly string array to `.choices()` [(#1667)]97-- TypeScript: allow passing readonly string array to `.parse()`, `.parseAsync()`, `.aliases()` [(#1669)]103+- TypeScript: allow passing readonly string array to `.choices()` ([#1667])104+- TypeScript: allow passing readonly string array to `.parse()`, `.parseAsync()`, `.aliases()` ([#1669])105 106 ### Fixed107 108 - option with optional argument not supplied on command line now works when option already has a value, whether from default value or from previous arguments ([#1652])1 unmodified line110 ### Removed111 112 - *Breaking:* removed internal fallback to `require.main.filename` when script not known from arguments passed to `.parse()` (can supply details using `.name()`, and `.executableDir()` or `executableFile`) ([#1571])113 107-114 ## [9.0.0-1] (2022-01-15)115 116 (Released in 9.0.0)117 173 unmodified lines291 292 ### Changed293 294 - *Breaking:* options are stored safely by default, not as properties on the command ([#1409])289- - this especially affects accessing options on program, use `program.opts()`290- - revert behaviour with `.storeOptionsAsProperties()`295+ - this especially affects accessing options on program, use `program.opts()`296+ - revert behaviour with `.storeOptionsAsProperties()`297 - *Breaking:* action handlers are passed options and command separately ([#1409])298 - deprecated callback parameter to `.help()` and `.outputHelp()` (removed from README) ([#1296])299 - *Breaking:* errors now displayed using `process.stderr.write()` instead of `console.error()`300 - deprecate `.on('--help')` (removed from README) ([#1296])10 unmodified lines311 312 ### Deleted313 314 - *Breaking:* `.passCommandToAction()` ([#1409])309- - no longer needed as action handler is passed options and command315+ - no longer needed as action handler is passed options and command316 - *Breaking:* "extra arguments" parameter to action handler ([#1409])311- - if being used to detect excess arguments, there is now an error available by setting `.allowExcessArguments(false)`317+ - if being used to detect excess arguments, there is now an error available by setting `.allowExcessArguments(false)`318 319 ### Migration Tips320 321 The biggest change is the parsed option values. Previously the options were stored by default as properties on the command object, and now the options are stored separately.76 unmodified lines398 ## [6.2.1] (2020-12-13)399 400 ### Fixed401 396-- some tests failed if directory path included a space ([1390])402+- some tests failed if directory path included a space ([#1390])403 404 ## [6.2.0] (2020-10-25)405 406 ### Added663 unmodified lines1070 [#1483]: https://github.com/tj/commander.js/pull/14831071 [#1490]: https://github.com/tj/commander.js/pull/14901072 [#1497]: https://github.com/tj/commander.js/pull/14971073 [#1500]: https://github.com/tj/commander.js/pull/15001074+[#1502]: https://github.com/tj/commander.js/pull/15021075 [#1508]: https://github.com/tj/commander.js/pull/15081076 [#1513]: https://github.com/tj/commander.js/pull/15131077 [#1514]: https://github.com/tj/commander.js/pull/15141078 [#1516]: https://github.com/tj/commander.js/pull/151636 unmodified lines1115 [#1763]: https://github.com/tj/commander.js/pull/17631116 [#1767]: https://github.com/tj/commander.js/pull/17671117 [#1794]: https://github.com/tj/commander.js/pull/17941118 [#1795]: https://github.com/tj/commander.js/pull/17951119+[#1832]: https://github.com/tj/commander.js/pull/18321120+[#1828]: https://github.com/tj/commander.js/pull/18281121 1122 <!-- Referenced in 5.x -->1123 [#1]: https://github.com/tj/commander.js/issues/11124 [#432]: https://github.com/tj/commander.js/issues/43232 unmodified lines1157 [#1247]: https://github.com/tj/commander.js/pull/12471158 [#1248]: https://github.com/tj/commander.js/pull/12481159 1160 <!-- Referenced in 4.x -->1161+[#933]: https://github.com/tj/commander.js/pull/9331162 [#1027]: https://github.com/tj/commander.js/pull/10271163 [#1035]: https://github.com/tj/commander.js/pull/10351164 [#1040]: https://github.com/tj/commander.js/pull/10401165 [#1047]: https://github.com/tj/commander.js/pull/104730 unmodified lines1196 [#1026]: https://github.com/tj/commander.js/pull/10261197 [#1028]: https://github.com/tj/commander.js/pull/10281198 1199 [Unreleased]: https://github.com/tj/commander.js/compare/master...develop1200+[9.5.0]: https://github.com/tj/commander.js/compare/v9.4.1...v9.5.01201 [9.4.1]: https://github.com/tj/commander.js/compare/v9.4.0...v9.4.11202 [9.4.0]: https://github.com/tj/commander.js/compare/v9.3.0...v9.4.01203 [9.3.0]: https://github.com/tj/commander.js/compare/v9.2.0...v9.3.01204 [9.2.0]: https://github.com/tj/commander.js/compare/v9.1.0...v9.2.039 unmodified linesmodified:package-lock.json+417 added-178 removed
1 {2 "name": "commander",3- "version": "9.4.1",3+ "version": "9.5.0",4 "lockfileVersion": 2,5 "requires": true,6 "packages": {7 "": {8 "name": "commander",9- "version": "9.4.1",9+ "version": "9.5.0",10 "license": "MIT",11 "devDependencies": {12 "@types/jest": "^29.2.4",13 "@types/node": "^18.11.18",49 unmodified lines63 "node": ">=6.9.0"64 }65 },66 "node_modules/@babel/core": {67- "version": "7.20.7",68- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.20.7.tgz",69- "integrity": "sha512-t1ZjCluspe5DW24bn2Rr1CDb2v9rn/hROtg9a2tmd0+QYf4bsloYfLQzjG4qHPNMhWtKdGC33R5AxGR2Af2cBw==",67+ "version": "7.20.12",68+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.20.12.tgz",69+ "integrity": "sha512-XsMfHovsUYHFMdrIHkZphTN/2Hzzi78R08NuHfDBehym2VsPDL6Zn/JAD/JQdnRvbSsbQc4mVaU1m6JgtTEElg==",70 "dev": true,71 "dependencies": {72 "@ampproject/remapping": "^2.1.0",73 "@babel/code-frame": "^7.18.6",74 "@babel/generator": "^7.20.7",75 "@babel/helper-compilation-targets": "^7.20.7",76- "@babel/helper-module-transforms": "^7.20.7",76+ "@babel/helper-module-transforms": "^7.20.11",77 "@babel/helpers": "^7.20.7",78 "@babel/parser": "^7.20.7",79 "@babel/template": "^7.20.7",80- "@babel/traverse": "^7.20.7",80+ "@babel/traverse": "^7.20.12",81 "@babel/types": "^7.20.7",82 "convert-source-map": "^1.7.0",83 "debug": "^4.1.0",84 "gensync": "^1.0.0-beta.2",85- "json5": "^2.2.1",85+ "json5": "^2.2.2",86 "semver": "^6.3.0"87 },88 "engines": {89 "node": ">=6.9.0"501 unmodified lines591 "node": ">=6.9.0"592 }593 },594 "node_modules/@babel/traverse": {595- "version": "7.20.10",596- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.10.tgz",597- "integrity": "sha512-oSf1juCgymrSez8NI4A2sr4+uB/mFd9MXplYGPEBnfAuWmmyeVcHa6xLPiaRBcXkcb/28bgxmQLTVwFKE1yfsg==",595+ "version": "7.20.12",596+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.12.tgz",597+ "integrity": "sha512-MsIbFN0u+raeja38qboyF8TIT7K0BFzz/Yd/77ta4MsUsmP2RAnidIlwq7d5HFQrH/OZJecGV6B71C4zAgpoSQ==",598 "dev": true,599 "dependencies": {600 "@babel/code-frame": "^7.18.6",601 "@babel/generator": "^7.20.7",39 unmodified lines641 "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==",642 "dev": true643 },644 "node_modules/@eslint/eslintrc": {645- "version": "1.4.0",646- "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.0.tgz",647- "integrity": "sha512-7yfvXy6MWLgWSFsLhz5yH3iQ52St8cdUY6FoGieKkRDVxuxmrNuUetIuu6cmjNWwniUHiWXjxCr5tTXDrbYS5A==",645+ "version": "1.4.1",646+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.1.tgz",647+ "integrity": "sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==",648 "dev": true,649 "dependencies": {650 "ajv": "^6.12.4",651 "debug": "^4.3.2",600 unmodified lines1252 "integrity": "sha512-WulqXMDUTYAXCjZnk6JtIHPigp55cVtDgDrO2gHRwhyJto21+1zbVCtOYB2L1F9w4qCQ0rOGWBnBe0FNTiEJIQ==",1253 "dev": true1254 },1255 "node_modules/@types/graceful-fs": {1256- "version": "4.1.5",1257- "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz",1258- "integrity": "sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==",1256+ "version": "4.1.6",1257+ "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz",1258+ "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==",1259 "dev": true,1260 "dependencies": {1261 "@types/node": "*"1262 }22 unmodified lines1285 "@types/istanbul-lib-report": "*"1286 }1287 },1288 "node_modules/@types/jest": {1289- "version": "29.2.4",1290- "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.2.4.tgz",1291- "integrity": "sha512-PipFB04k2qTRPePduVLTRiPzQfvMeLwUN3Z21hsAKaB/W9IIzgB2pizCL466ftJlcyZqnHoC9ZHpxLGl3fS86A==",1289+ "version": "29.2.5",1290+ "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.2.5.tgz",1291+ "integrity": "sha512-H2cSxkKgVmqNHXP7TC2L/WUorrZu8ZigyRywfVzv6EyBlxj39n4C00hjXYQWsbwqgElaj/CiAeSRmk5GoaKTgw==",1292 "dev": true,1293 "dependencies": {1294 "expect": "^29.0.0",1295 "pretty-format": "^29.0.0"47 unmodified lines1343 "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==",1344 "dev": true1345 },1346 "node_modules/@types/yargs": {1347- "version": "17.0.17",1348- "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.17.tgz",1349- "integrity": "sha512-72bWxFKTK6uwWJAVT+3rF6Jo6RTojiJ27FQo8Rf60AL+VZbzoVPnMFhKsUnbjR8A3BTCYQ7Mv3hnl8T0A+CX9g==",1347+ "version": "17.0.19",1348+ "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.19.tgz",1349+ "integrity": "sha512-cAx3qamwaYX9R0fzOIZAlFpo4A+1uBVCxqpKz9D26uTF4srRXaGTTsikQmaotCtNdbhzyUH7ft6p9ktz9s6UNQ==",1350 "dev": true,1351 "dependencies": {1352 "@types/yargs-parser": "*"1353 }4 unmodified lines1358 "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==",1359 "dev": true1360 },1361 "node_modules/@typescript-eslint/eslint-plugin": {1362- "version": "5.47.1",1363- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.47.1.tgz",1364- "integrity": "sha512-r4RZ2Jl9kcQN7K/dcOT+J7NAimbiis4sSM9spvWimsBvDegMhKLA5vri2jG19PmIPbDjPeWzfUPQ2hjEzA4Nmg==",1362+ "version": "5.48.0",1363+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.48.0.tgz",1364+ "integrity": "sha512-SVLafp0NXpoJY7ut6VFVUU9I+YeFsDzeQwtK0WZ+xbRN3mtxJ08je+6Oi2N89qDn087COdO0u3blKZNv9VetRQ==",1365 "dev": true,1366 "dependencies": {1367- "@typescript-eslint/scope-manager": "5.47.1",1368- "@typescript-eslint/type-utils": "5.47.1",1369- "@typescript-eslint/utils": "5.47.1",1367+ "@typescript-eslint/scope-manager": "5.48.0",1368+ "@typescript-eslint/type-utils": "5.48.0",1369+ "@typescript-eslint/utils": "5.48.0",1370 "debug": "^4.3.4",1371 "ignore": "^5.2.0",1372 "natural-compare-lite": "^1.4.0",1373 "regexpp": "^3.2.0",17 unmodified lines1391 }1392 }1393 },1394 "node_modules/@typescript-eslint/parser": {1395- "version": "5.47.1",1396- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.47.1.tgz",1397- "integrity": "sha512-9Vb+KIv29r6GPu4EboWOnQM7T+UjpjXvjCPhNORlgm40a9Ia9bvaPJswvtae1gip2QEeVeGh6YquqAzEgoRAlw==",1395+ "version": "5.48.0",1396+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.48.0.tgz",1397+ "integrity": "sha512-1mxNA8qfgxX8kBvRDIHEzrRGrKHQfQlbW6iHyfHYS0Q4X1af+S6mkLNtgCOsGVl8+/LUPrqdHMssAemkrQ01qg==",1398 "dev": true,1399 "dependencies": {1400- "@typescript-eslint/scope-manager": "5.47.1",1401- "@typescript-eslint/types": "5.47.1",1402- "@typescript-eslint/typescript-estree": "5.47.1",1400+ "@typescript-eslint/scope-manager": "5.48.0",1401+ "@typescript-eslint/types": "5.48.0",1402+ "@typescript-eslint/typescript-estree": "5.48.0",1403 "debug": "^4.3.4"1404 },1405 "engines": {1406 "node": "^12.22.0 || ^14.17.0 || >=16.0.0"11 unmodified lines1418 }1419 }1420 },1421 "node_modules/@typescript-eslint/scope-manager": {1422- "version": "5.47.1",1423- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.47.1.tgz",1424- "integrity": "sha512-9hsFDsgUwrdOoW1D97Ewog7DYSHaq4WKuNs0LHF9RiCmqB0Z+XRR4Pf7u7u9z/8CciHuJ6yxNws1XznI3ddjEw==",1422+ "version": "5.48.0",1423+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.48.0.tgz",1424+ "integrity": "sha512-0AA4LviDtVtZqlyUQnZMVHydDATpD9SAX/RC5qh6cBd3xmyWvmXYF+WT1oOmxkeMnWDlUVTwdODeucUnjz3gow==",1425 "dev": true,1426 "dependencies": {1427- "@typescript-eslint/types": "5.47.1",1428- "@typescript-eslint/visitor-keys": "5.47.1"1427+ "@typescript-eslint/types": "5.48.0",1428+ "@typescript-eslint/visitor-keys": "5.48.0"1429 },1430 "engines": {1431 "node": "^12.22.0 || ^14.17.0 || >=16.0.0"1432 },2 unmodified lines1435 "url": "https://opencollective.com/typescript-eslint"1436 }1437 },1438 "node_modules/@typescript-eslint/type-utils": {1439- "version": "5.47.1",1440- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.47.1.tgz",1441- "integrity": "sha512-/UKOeo8ee80A7/GJA427oIrBi/Gd4osk/3auBUg4Rn9EahFpevVV1mUK8hjyQD5lHPqX397x6CwOk5WGh1E/1w==",1439+ "version": "5.48.0",1440+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.48.0.tgz",1441+ "integrity": "sha512-vbtPO5sJyFjtHkGlGK4Sthmta0Bbls4Onv0bEqOGm7hP9h8UpRsHJwsrCiWtCUndTRNQO/qe6Ijz9rnT/DB+7g==",1442 "dev": true,1443 "dependencies": {1444- "@typescript-eslint/typescript-estree": "5.47.1",1445- "@typescript-eslint/utils": "5.47.1",1444+ "@typescript-eslint/typescript-estree": "5.48.0",1445+ "@typescript-eslint/utils": "5.48.0",1446 "debug": "^4.3.4",1447 "tsutils": "^3.21.0"1448 },1449 "engines": {12 unmodified lines1462 }1463 }1464 },1465 "node_modules/@typescript-eslint/types": {1466- "version": "5.47.1",1467- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.47.1.tgz",1468- "integrity": "sha512-CmALY9YWXEpwuu6377ybJBZdtSAnzXLSQcxLSqSQSbC7VfpMu/HLVdrnVJj7ycI138EHqocW02LPJErE35cE9A==",1466+ "version": "5.48.0",1467+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.48.0.tgz",1468+ "integrity": "sha512-UTe67B0Ypius0fnEE518NB2N8gGutIlTojeTg4nt0GQvikReVkurqxd2LvYa9q9M5MQ6rtpNyWTBxdscw40Xhw==",1469 "dev": true,1470 "engines": {1471 "node": "^12.22.0 || ^14.17.0 || >=16.0.0"1472 },2 unmodified lines1475 "url": "https://opencollective.com/typescript-eslint"1476 }1477 },1478 "node_modules/@typescript-eslint/typescript-estree": {1479- "version": "5.47.1",1480- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.47.1.tgz",1481- "integrity": "sha512-4+ZhFSuISAvRi2xUszEj0xXbNTHceV9GbH9S8oAD2a/F9SW57aJNQVOCxG8GPfSWH/X4eOPdMEU2jYVuWKEpWA==",1479+ "version": "5.48.0",1480+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.48.0.tgz",1481+ "integrity": "sha512-7pjd94vvIjI1zTz6aq/5wwE/YrfIyEPLtGJmRfyNR9NYIW+rOvzzUv3Cmq2hRKpvt6e9vpvPUQ7puzX7VSmsEw==",1482 "dev": true,1483 "dependencies": {1484- "@typescript-eslint/types": "5.47.1",1485- "@typescript-eslint/visitor-keys": "5.47.1",1484+ "@typescript-eslint/types": "5.48.0",1485+ "@typescript-eslint/visitor-keys": "5.48.0",1486 "debug": "^4.3.4",1487 "globby": "^11.1.0",1488 "is-glob": "^4.0.3",1489 "semver": "^7.3.7",12 unmodified lines1502 }1503 }1504 },1505 "node_modules/@typescript-eslint/utils": {1506- "version": "5.47.1",1507- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.47.1.tgz",1508- "integrity": "sha512-l90SdwqfmkuIVaREZ2ykEfCezepCLxzWMo5gVfcJsJCaT4jHT+QjgSkYhs5BMQmWqE9k3AtIfk4g211z/sTMVw==",1506+ "version": "5.48.0",1507+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.48.0.tgz",1508+ "integrity": "sha512-x2jrMcPaMfsHRRIkL+x96++xdzvrdBCnYRd5QiW5Wgo1OB4kDYPbC1XjWP/TNqlfK93K/lUL92erq5zPLgFScQ==",1509 "dev": true,1510 "dependencies": {1511 "@types/json-schema": "^7.0.9",1512 "@types/semver": "^7.3.12",1513- "@typescript-eslint/scope-manager": "5.47.1",1514- "@typescript-eslint/types": "5.47.1",1515- "@typescript-eslint/typescript-estree": "5.47.1",1513+ "@typescript-eslint/scope-manager": "5.48.0",1514+ "@typescript-eslint/types": "5.48.0",1515+ "@typescript-eslint/typescript-estree": "5.48.0",1516 "eslint-scope": "^5.1.1",1517 "eslint-utils": "^3.0.0",1518 "semver": "^7.3.7"1519 },8 unmodified lines1528 "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"1529 }1530 },1531 "node_modules/@typescript-eslint/visitor-keys": {1532- "version": "5.47.1",1533- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.47.1.tgz",1534- "integrity": "sha512-rF3pmut2JCCjh6BLRhNKdYjULMb1brvoaiWDlHfLNVgmnZ0sBVJrs3SyaKE1XoDDnJuAx/hDQryHYmPUuNq0ig==",1532+ "version": "5.48.0",1533+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.48.0.tgz",1534+ "integrity": "sha512-5motVPz5EgxQ0bHjut3chzBkJ3Z3sheYVcSwS5BpHZpLqSptSmELNtGixmgj65+rIfhvtQTz5i9OP2vtzdDH7Q==",1535 "dev": true,1536 "dependencies": {1537- "@typescript-eslint/types": "5.47.1",1537+ "@typescript-eslint/types": "5.48.0",1538 "eslint-visitor-keys": "^3.3.0"1539 },1540 "engines": {1541 "node": "^12.22.0 || ^14.17.0 || >=16.0.0"164 unmodified lines1706 "engines": {1707 "node": ">=0.10.0"1708 }1709 },1710+ "node_modules/available-typed-arrays": {1711+ "version": "1.0.5",1712+ "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz",1713+ "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==",1714+ "dev": true,1715+ "engines": {1716+ "node": ">= 0.4"1717+ },1718+ "funding": {1719+ "url": "https://github.com/sponsors/ljharb"1720+ }1721+ },1722 "node_modules/babel-jest": {1723 "version": "29.3.1",1724 "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.3.1.tgz",1725 "integrity": "sha512-aard+xnMoxgjwV70t0L6wkW/3HQQtV+O0PEimxKgzNqCJnbYmroPojdP2tqKSOAt8QAKV/uSZU8851M7B5+fcA==",224 unmodified lines1950 "url": "https://github.com/sponsors/sindresorhus"1951 }1952 },1953 "node_modules/caniuse-lite": {1942- "version": "1.0.30001441",1943- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001441.tgz",1944- "integrity": "sha512-OyxRR4Vof59I3yGWXws6i908EtGbMzVUi3ganaZQHmydk1iwDhRnvaPG2WaR0KcqrDFKrxVZHULT396LEPhXfg==",1954+ "version": "1.0.30001442",1955+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001442.tgz",1956+ "integrity": "sha512-239m03Pqy0hwxYPYR5JwOIxRJfLTWtle9FV8zosfV5pHg+/51uD4nxcUlM8+mWWGfwKtt8lJNHnD3cWw9VZ6ow==",1957 "dev": true,1958 "funding": [1959 {1960 "type": "opencollective",30 unmodified lines1991 "node": ">=10"1992 }1993 },1994 "node_modules/ci-info": {1983- "version": "3.7.0",1984- "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.7.0.tgz",1985- "integrity": "sha512-2CpRNYmImPx+RXKLq6jko/L07phmS9I02TyqkcNU20GCF/GgaWvc58hPtjxDX8lPpkdwc9sNh72V9k00S7ezog==",1995+ "version": "3.7.1",1996+ "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.7.1.tgz",1997+ "integrity": "sha512-4jYS4MOAaCIStSRwiuxc4B8MYhIe676yO1sYGzARnjXkWpmzZMMYxY6zu8WYWDhSuth5zhrQ1rhNSibyyvv4/w==",1998 "dev": true,1999+ "funding": [2000+ {2001+ "type": "github",2002+ "url": "https://github.com/sponsors/sibiraj-s"2003+ }2004+ ],2005 "engines": {2006 "node": ">=8"2007 }2008 },240 unmodified lines2249 "is-arrayish": "^0.2.1"2250 }2251 },2252 "node_modules/es-abstract": {2235- "version": "1.20.5",2236- "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.5.tgz",2237- "integrity": "sha512-7h8MM2EQhsCA7pU/Nv78qOXFpD8Rhqd12gYiSJVkrH9+e8VuA8JlPJK/hQjjlLv6pJvx/z1iRFKzYb0XT/RuAQ==",2253+ "version": "1.21.0",2254+ "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.0.tgz",2255+ "integrity": "sha512-GUGtW7eXQay0c+PRq0sGIKSdaBorfVqsCMhGHo4elP7YVqZu9nCZS4UkK4gv71gOWNMra/PaSKD3ao1oWExO0g==",2256 "dev": true,2257 "dependencies": {2258 "call-bind": "^1.0.2",2259+ "es-set-tostringtag": "^2.0.0",2260 "es-to-primitive": "^1.2.1",2261 "function-bind": "^1.1.1",2262 "function.prototype.name": "^1.1.5",2263 "get-intrinsic": "^1.1.3",2264 "get-symbol-description": "^1.0.0",2265+ "globalthis": "^1.0.3",2266 "gopd": "^1.0.1",2267 "has": "^1.0.3",2268 "has-property-descriptors": "^1.0.0",2269+ "has-proto": "^1.0.1",2270 "has-symbols": "^1.0.3",2250- "internal-slot": "^1.0.3",2271+ "internal-slot": "^1.0.4",2272+ "is-array-buffer": "^3.0.0",2273 "is-callable": "^1.2.7",2274 "is-negative-zero": "^2.0.2",2275 "is-regex": "^1.1.4",2276 "is-shared-array-buffer": "^1.0.2",2277 "is-string": "^1.0.7",2278+ "is-typed-array": "^1.1.10",2279 "is-weakref": "^1.0.2",2280 "object-inspect": "^1.12.2",2281 "object-keys": "^1.1.1",2282 "object.assign": "^4.1.4",2283 "regexp.prototype.flags": "^1.4.3",2284 "safe-regex-test": "^1.0.0",2285 "string.prototype.trimend": "^1.0.6",2286 "string.prototype.trimstart": "^1.0.6",2287+ "typed-array-length": "^1.0.4",2264- "unbox-primitive": "^1.0.2"2288+ "unbox-primitive": "^1.0.2",2289+ "which-typed-array": "^1.1.9"2290 },2291 "engines": {2292 "node": ">= 0.4"2293 },2294 "funding": {2295 "url": "https://github.com/sponsors/ljharb"2296 }2297 },2298+ "node_modules/es-set-tostringtag": {2299+ "version": "2.0.1",2300+ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz",2301+ "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==",2302+ "dev": true,2303+ "dependencies": {2304+ "get-intrinsic": "^1.1.3",2305+ "has": "^1.0.3",2306+ "has-tostringtag": "^1.0.0"2307+ },2308+ "engines": {2309+ "node": ">= 0.4"2310+ }2311+ },2312 "node_modules/es-shim-unscopables": {2313 "version": "1.0.0",2314 "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz",2315 "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==",40 unmodified lines2356 "url": "https://github.com/sponsors/sindresorhus"2357 }2358 },2359 "node_modules/eslint": {2321- "version": "8.30.0",2322- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.30.0.tgz",2323- "integrity": "sha512-MGADB39QqYuzEGov+F/qb18r4i7DohCDOfatHaxI2iGlPuC65bwG2gxgO+7DkyL38dRFaRH7RaRAgU6JKL9rMQ==",2360+ "version": "8.31.0",2361+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.31.0.tgz",2362+ "integrity": "sha512-0tQQEVdmPZ1UtUKXjX7EMm9BlgJ08G90IhWh0PKDCb3ZLsgAOHI8fYSIzYVZej92zsgq+ft0FGsxhJ3xo2tbuA==",2363 "dev": true,2364 "dependencies": {2326- "@eslint/eslintrc": "^1.4.0",2365+ "@eslint/eslintrc": "^1.4.1",2366 "@humanwhocodes/config-array": "^0.11.8",2367 "@humanwhocodes/module-importer": "^1.0.1",2368 "@nodelib/fs.walk": "^1.2.8",2369 "ajv": "^6.10.0",250 unmodified lines2620 "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",2621 "dev": true2622 },2623 "node_modules/eslint-plugin-jest": {2585- "version": "27.1.7",2586- "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.1.7.tgz",2587- "integrity": "sha512-0QVzf+og4YI1Qr3UoprkqqhezAZjFffdi62b0IurkCXMqPtRW84/UT4CKsYT80h/D82LA9avjO/80Ou1LdgbaQ==",2624+ "version": "27.2.1",2625+ "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.2.1.tgz",2626+ "integrity": "sha512-l067Uxx7ZT8cO9NJuf+eJHvt6bqJyz2Z29wykyEdz/OtmcELQl2MQGQLX8J94O1cSJWAwUSEvCjwjA7KEK3Hmg==",2627 "dev": true,2628 "dependencies": {2629 "@typescript-eslint/utils": "^5.10.0"2630 },311 unmodified lines2942 "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",2943 "dev": true2944 },2945 "node_modules/fastq": {2907- "version": "1.14.0",2908- "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.14.0.tgz",2909- "integrity": "sha512-eR2D+V9/ExcbF9ls441yIuN6TI2ED1Y2ZcA5BmMtJsOkWOFRJQ0Jt0g1UwqXJJVAb+V+umH5Dfr8oh4EVP7VVg==",2946+ "version": "1.15.0",2947+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz",2948+ "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==",2949 "dev": true,2950 "dependencies": {2951 "reusify": "^1.0.4"2952 }65 unmodified lines3018 "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz",3019 "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==",3020 "dev": true3021 },3022+ "node_modules/for-each": {3023+ "version": "0.3.3",3024+ "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz",3025+ "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==",3026+ "dev": true,3027+ "dependencies": {3028+ "is-callable": "^1.1.3"3029+ }3030+ },3031 "node_modules/fs.realpath": {3032 "version": "1.0.0",3033 "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",3034 "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",161 unmodified lines3196 "funding": {3197 "url": "https://github.com/sponsors/sindresorhus"3198 }3199 },3200+ "node_modules/globalthis": {3201+ "version": "1.0.3",3202+ "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz",3203+ "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==",3204+ "dev": true,3205+ "dependencies": {3206+ "define-properties": "^1.1.3"3207+ },3208+ "engines": {3209+ "node": ">= 0.4"3210+ },3211+ "funding": {3212+ "url": "https://github.com/sponsors/ljharb"3213+ }3214+ },3215 "node_modules/globby": {3216 "version": "11.1.0",3217 "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz",3218 "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",87 unmodified lines3306 "funding": {3307 "url": "https://github.com/sponsors/ljharb"3308 }3309 },3310+ "node_modules/has-proto": {3311+ "version": "1.0.1",3312+ "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz",3313+ "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==",3314+ "dev": true,3315+ "engines": {3316+ "node": ">= 0.4"3317+ },3318+ "funding": {3319+ "url": "https://github.com/sponsors/ljharb"3320+ }3321+ },3322 "node_modules/has-symbols": {3323 "version": "1.0.3",3324 "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",3325 "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",165 unmodified lines3491 "engines": {3492 "node": ">=8"3493 }3494 },3495+ "node_modules/is-array-buffer": {3496+ "version": "3.0.1",3497+ "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.1.tgz",3498+ "integrity": "sha512-ASfLknmY8Xa2XtB4wmbz13Wu202baeA18cJBCeCy0wXUHZF0IPyVEXqKEcd+t2fNSLLL1vC6k7lxZEojNbISXQ==",3499+ "dev": true,3500+ "dependencies": {3501+ "call-bind": "^1.0.2",3502+ "get-intrinsic": "^1.1.3",3503+ "is-typed-array": "^1.1.10"3504+ },3505+ "funding": {3506+ "url": "https://github.com/sponsors/ljharb"3507+ }3508+ },3509 "node_modules/is-arrayish": {3510 "version": "0.2.1",3511 "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",3512 "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==",228 unmodified lines3741 "funding": {3742 "url": "https://github.com/sponsors/ljharb"3743 }3744 },3745+ "node_modules/is-typed-array": {3746+ "version": "1.1.10",3747+ "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz",3748+ "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==",3749+ "dev": true,3750+ "dependencies": {3751+ "available-typed-arrays": "^1.0.5",3752+ "call-bind": "^1.0.2",3753+ "for-each": "^0.3.3",3754+ "gopd": "^1.0.1",3755+ "has-tostringtag": "^1.0.0"3756+ },3757+ "engines": {3758+ "node": ">= 0.4"3759+ },3760+ "funding": {3761+ "url": "https://github.com/sponsors/ljharb"3762+ }3763+ },3764 "node_modules/is-unicode-supported": {3765 "version": "0.1.0",3766 "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",3767 "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",714 unmodified lines4482 "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",4483 "dev": true4484 },4485 "node_modules/json5": {4378- "version": "2.2.2",4379- "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.2.tgz",4380- "integrity": "sha512-46Tk9JiOL2z7ytNQWFLpj99RZkVgeHf87yGQKsIkaPz1qSH9UczKH1rO7K3wgRselo0tYMUNfecYpm/p1vC7tQ==",4486+ "version": "2.2.3",4487+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",4488+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",4489 "dev": true,4490 "bin": {4491 "json5": "lib/cli.js"4492 },1469 unmodified lines5962 "strip-bom": "^3.0.0"5963 }5964 },5965 "node_modules/tsconfig-paths/node_modules/json5": {5858- "version": "1.0.1",5859- "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz",5860- "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==",5966+ "version": "1.0.2",5967+ "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",5968+ "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",5969 "dev": true,5970 "dependencies": {5971 "minimist": "^1.2.0"5972 },83 unmodified lines6056 "funding": {6057 "url": "https://github.com/sponsors/sindresorhus"6058 }6059 },6060+ "node_modules/typed-array-length": {6061+ "version": "1.0.4",6062+ "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz",6063+ "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==",6064+ "dev": true,6065+ "dependencies": {6066+ "call-bind": "^1.0.2",6067+ "for-each": "^0.3.3",6068+ "is-typed-array": "^1.1.9"6069+ },6070+ "funding": {6071+ "url": "https://github.com/sponsors/ljharb"6072+ }6073+ },6074 "node_modules/typescript": {6075 "version": "4.9.4",6076 "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz",6077 "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==",125 unmodified lines6203 "funding": {6204 "url": "https://github.com/sponsors/ljharb"6205 }6206 },6207+ "node_modules/which-typed-array": {6208+ "version": "1.1.9",6209+ "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz",6210+ "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==",6211+ "dev": true,6212+ "dependencies": {6213+ "available-typed-arrays": "^1.0.5",6214+ "call-bind": "^1.0.2",6215+ "for-each": "^0.3.3",6216+ "gopd": "^1.0.1",6217+ "has-tostringtag": "^1.0.0",6218+ "is-typed-array": "^1.1.10"6219+ },6220+ "engines": {6221+ "node": ">= 0.4"6222+ },6223+ "funding": {6224+ "url": "https://github.com/sponsors/ljharb"6225+ }6226+ },6227 "node_modules/word-wrap": {6228 "version": "1.2.3",6229 "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",6230 "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==",119 unmodified lines6350 "integrity": "sha512-sEnuDPpOJR/fcafHMjpcpGN5M2jbUGUHwmuWKM/YdPzeEDJg8bgmbcWQFUfE32MQjti1koACvoPVsDe8Uq+idg==",6351 "dev": true6352 },6353 "@babel/core": {6212- "version": "7.20.7",6213- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.20.7.tgz",6214- "integrity": "sha512-t1ZjCluspe5DW24bn2Rr1CDb2v9rn/hROtg9a2tmd0+QYf4bsloYfLQzjG4qHPNMhWtKdGC33R5AxGR2Af2cBw==",6354+ "version": "7.20.12",6355+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.20.12.tgz",6356+ "integrity": "sha512-XsMfHovsUYHFMdrIHkZphTN/2Hzzi78R08NuHfDBehym2VsPDL6Zn/JAD/JQdnRvbSsbQc4mVaU1m6JgtTEElg==",6357 "dev": true,6358 "requires": {6359 "@ampproject/remapping": "^2.1.0",6360 "@babel/code-frame": "^7.18.6",6361 "@babel/generator": "^7.20.7",6362 "@babel/helper-compilation-targets": "^7.20.7",6221- "@babel/helper-module-transforms": "^7.20.7",6363+ "@babel/helper-module-transforms": "^7.20.11",6364 "@babel/helpers": "^7.20.7",6365 "@babel/parser": "^7.20.7",6366 "@babel/template": "^7.20.7",6225- "@babel/traverse": "^7.20.7",6367+ "@babel/traverse": "^7.20.12",6368 "@babel/types": "^7.20.7",6369 "convert-source-map": "^1.7.0",6370 "debug": "^4.1.0",6371 "gensync": "^1.0.0-beta.2",6230- "json5": "^2.2.1",6372+ "json5": "^2.2.2",6373 "semver": "^6.3.0"6374 },6375 "dependencies": {6376 "convert-source-map": {370 unmodified lines6747 "@babel/types": "^7.20.7"6748 }6749 },6750 "@babel/traverse": {6609- "version": "7.20.10",6610- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.10.tgz",6611- "integrity": "sha512-oSf1juCgymrSez8NI4A2sr4+uB/mFd9MXplYGPEBnfAuWmmyeVcHa6xLPiaRBcXkcb/28bgxmQLTVwFKE1yfsg==",6751+ "version": "7.20.12",6752+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.12.tgz",6753+ "integrity": "sha512-MsIbFN0u+raeja38qboyF8TIT7K0BFzz/Yd/77ta4MsUsmP2RAnidIlwq7d5HFQrH/OZJecGV6B71C4zAgpoSQ==",6754 "dev": true,6755 "requires": {6756 "@babel/code-frame": "^7.18.6",6757 "@babel/generator": "^7.20.7",32 unmodified lines6790 "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==",6791 "dev": true6792 },6793 "@eslint/eslintrc": {6652- "version": "1.4.0",6653- "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.0.tgz",6654- "integrity": "sha512-7yfvXy6MWLgWSFsLhz5yH3iQ52St8cdUY6FoGieKkRDVxuxmrNuUetIuu6cmjNWwniUHiWXjxCr5tTXDrbYS5A==",6794+ "version": "1.4.1",6795+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.1.tgz",6796+ "integrity": "sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==",6797 "dev": true,6798 "requires": {6799 "ajv": "^6.12.4",6800 "debug": "^4.3.2",483 unmodified lines7284 "integrity": "sha512-WulqXMDUTYAXCjZnk6JtIHPigp55cVtDgDrO2gHRwhyJto21+1zbVCtOYB2L1F9w4qCQ0rOGWBnBe0FNTiEJIQ==",7285 "dev": true7286 },7287 "@types/graceful-fs": {7146- "version": "4.1.5",7147- "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz",7148- "integrity": "sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==",7288+ "version": "4.1.6",7289+ "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz",7290+ "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==",7291 "dev": true,7292 "requires": {7293 "@types/node": "*"7294 }22 unmodified lines7317 "@types/istanbul-lib-report": "*"7318 }7319 },7320 "@types/jest": {7179- "version": "29.2.4",7180- "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.2.4.tgz",7181- "integrity": "sha512-PipFB04k2qTRPePduVLTRiPzQfvMeLwUN3Z21hsAKaB/W9IIzgB2pizCL466ftJlcyZqnHoC9ZHpxLGl3fS86A==",7321+ "version": "29.2.5",7322+ "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.2.5.tgz",7323+ "integrity": "sha512-H2cSxkKgVmqNHXP7TC2L/WUorrZu8ZigyRywfVzv6EyBlxj39n4C00hjXYQWsbwqgElaj/CiAeSRmk5GoaKTgw==",7324 "dev": true,7325 "requires": {7326 "expect": "^29.0.0",7327 "pretty-format": "^29.0.0"47 unmodified lines7375 "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==",7376 "dev": true7377 },7378 "@types/yargs": {7237- "version": "17.0.17",7238- "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.17.tgz",7239- "integrity": "sha512-72bWxFKTK6uwWJAVT+3rF6Jo6RTojiJ27FQo8Rf60AL+VZbzoVPnMFhKsUnbjR8A3BTCYQ7Mv3hnl8T0A+CX9g==",7379+ "version": "17.0.19",7380+ "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.19.tgz",7381+ "integrity": "sha512-cAx3qamwaYX9R0fzOIZAlFpo4A+1uBVCxqpKz9D26uTF4srRXaGTTsikQmaotCtNdbhzyUH7ft6p9ktz9s6UNQ==",7382 "dev": true,7383 "requires": {7384 "@types/yargs-parser": "*"7385 }4 unmodified lines7390 "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==",7391 "dev": true7392 },7393 "@typescript-eslint/eslint-plugin": {7252- "version": "5.47.1",7253- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.47.1.tgz",7254- "integrity": "sha512-r4RZ2Jl9kcQN7K/dcOT+J7NAimbiis4sSM9spvWimsBvDegMhKLA5vri2jG19PmIPbDjPeWzfUPQ2hjEzA4Nmg==",7394+ "version": "5.48.0",7395+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.48.0.tgz",7396+ "integrity": "sha512-SVLafp0NXpoJY7ut6VFVUU9I+YeFsDzeQwtK0WZ+xbRN3mtxJ08je+6Oi2N89qDn087COdO0u3blKZNv9VetRQ==",7397 "dev": true,7398 "requires": {7257- "@typescript-eslint/scope-manager": "5.47.1",7258- "@typescript-eslint/type-utils": "5.47.1",7259- "@typescript-eslint/utils": "5.47.1",7399+ "@typescript-eslint/scope-manager": "5.48.0",7400+ "@typescript-eslint/type-utils": "5.48.0",7401+ "@typescript-eslint/utils": "5.48.0",7402 "debug": "^4.3.4",7403 "ignore": "^5.2.0",7404 "natural-compare-lite": "^1.4.0",7405 "regexpp": "^3.2.0",1 unmodified line7407 "tsutils": "^3.21.0"7408 }7409 },7410 "@typescript-eslint/parser": {7269- "version": "5.47.1",7270- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.47.1.tgz",7271- "integrity": "sha512-9Vb+KIv29r6GPu4EboWOnQM7T+UjpjXvjCPhNORlgm40a9Ia9bvaPJswvtae1gip2QEeVeGh6YquqAzEgoRAlw==",7411+ "version": "5.48.0",7412+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.48.0.tgz",7413+ "integrity": "sha512-1mxNA8qfgxX8kBvRDIHEzrRGrKHQfQlbW6iHyfHYS0Q4X1af+S6mkLNtgCOsGVl8+/LUPrqdHMssAemkrQ01qg==",7414 "dev": true,7415 "requires": {7274- "@typescript-eslint/scope-manager": "5.47.1",7275- "@typescript-eslint/types": "5.47.1",7276- "@typescript-eslint/typescript-estree": "5.47.1",7416+ "@typescript-eslint/scope-manager": "5.48.0",7417+ "@typescript-eslint/types": "5.48.0",7418+ "@typescript-eslint/typescript-estree": "5.48.0",7419 "debug": "^4.3.4"7420 }7421 },7422 "@typescript-eslint/scope-manager": {7281- "version": "5.47.1",7282- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.47.1.tgz",7283- "integrity": "sha512-9hsFDsgUwrdOoW1D97Ewog7DYSHaq4WKuNs0LHF9RiCmqB0Z+XRR4Pf7u7u9z/8CciHuJ6yxNws1XznI3ddjEw==",7423+ "version": "5.48.0",7424+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.48.0.tgz",7425+ "integrity": "sha512-0AA4LviDtVtZqlyUQnZMVHydDATpD9SAX/RC5qh6cBd3xmyWvmXYF+WT1oOmxkeMnWDlUVTwdODeucUnjz3gow==",7426 "dev": true,7427 "requires": {7286- "@typescript-eslint/types": "5.47.1",7287- "@typescript-eslint/visitor-keys": "5.47.1"7428+ "@typescript-eslint/types": "5.48.0",7429+ "@typescript-eslint/visitor-keys": "5.48.0"7430 }7431 },7432 "@typescript-eslint/type-utils": {7291- "version": "5.47.1",7292- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.47.1.tgz",7293- "integrity": "sha512-/UKOeo8ee80A7/GJA427oIrBi/Gd4osk/3auBUg4Rn9EahFpevVV1mUK8hjyQD5lHPqX397x6CwOk5WGh1E/1w==",7433+ "version": "5.48.0",7434+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.48.0.tgz",7435+ "integrity": "sha512-vbtPO5sJyFjtHkGlGK4Sthmta0Bbls4Onv0bEqOGm7hP9h8UpRsHJwsrCiWtCUndTRNQO/qe6Ijz9rnT/DB+7g==",7436 "dev": true,7437 "requires": {7296- "@typescript-eslint/typescript-estree": "5.47.1",7297- "@typescript-eslint/utils": "5.47.1",7438+ "@typescript-eslint/typescript-estree": "5.48.0",7439+ "@typescript-eslint/utils": "5.48.0",7440 "debug": "^4.3.4",7441 "tsutils": "^3.21.0"7442 }7443 },7444 "@typescript-eslint/types": {7303- "version": "5.47.1",7304- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.47.1.tgz",7305- "integrity": "sha512-CmALY9YWXEpwuu6377ybJBZdtSAnzXLSQcxLSqSQSbC7VfpMu/HLVdrnVJj7ycI138EHqocW02LPJErE35cE9A==",7445+ "version": "5.48.0",7446+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.48.0.tgz",7447+ "integrity": "sha512-UTe67B0Ypius0fnEE518NB2N8gGutIlTojeTg4nt0GQvikReVkurqxd2LvYa9q9M5MQ6rtpNyWTBxdscw40Xhw==",7448 "dev": true7449 },7450 "@typescript-eslint/typescript-estree": {7309- "version": "5.47.1",7310- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.47.1.tgz",7311- "integrity": "sha512-4+ZhFSuISAvRi2xUszEj0xXbNTHceV9GbH9S8oAD2a/F9SW57aJNQVOCxG8GPfSWH/X4eOPdMEU2jYVuWKEpWA==",7451+ "version": "5.48.0",7452+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.48.0.tgz",7453+ "integrity": "sha512-7pjd94vvIjI1zTz6aq/5wwE/YrfIyEPLtGJmRfyNR9NYIW+rOvzzUv3Cmq2hRKpvt6e9vpvPUQ7puzX7VSmsEw==",7454 "dev": true,7455 "requires": {7314- "@typescript-eslint/types": "5.47.1",7315- "@typescript-eslint/visitor-keys": "5.47.1",7456+ "@typescript-eslint/types": "5.48.0",7457+ "@typescript-eslint/visitor-keys": "5.48.0",7458 "debug": "^4.3.4",7459 "globby": "^11.1.0",7460 "is-glob": "^4.0.3",7461 "semver": "^7.3.7",7462 "tsutils": "^3.21.0"7463 }7464 },7465 "@typescript-eslint/utils": {7324- "version": "5.47.1",7325- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.47.1.tgz",7326- "integrity": "sha512-l90SdwqfmkuIVaREZ2ykEfCezepCLxzWMo5gVfcJsJCaT4jHT+QjgSkYhs5BMQmWqE9k3AtIfk4g211z/sTMVw==",7466+ "version": "5.48.0",7467+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.48.0.tgz",7468+ "integrity": "sha512-x2jrMcPaMfsHRRIkL+x96++xdzvrdBCnYRd5QiW5Wgo1OB4kDYPbC1XjWP/TNqlfK93K/lUL92erq5zPLgFScQ==",7469 "dev": true,7470 "requires": {7471 "@types/json-schema": "^7.0.9",7472 "@types/semver": "^7.3.12",7331- "@typescript-eslint/scope-manager": "5.47.1",7332- "@typescript-eslint/types": "5.47.1",7333- "@typescript-eslint/typescript-estree": "5.47.1",7473+ "@typescript-eslint/scope-manager": "5.48.0",7474+ "@typescript-eslint/types": "5.48.0",7475+ "@typescript-eslint/typescript-estree": "5.48.0",7476 "eslint-scope": "^5.1.1",7477 "eslint-utils": "^3.0.0",7478 "semver": "^7.3.7"7479 }7480 },7481 "@typescript-eslint/visitor-keys": {7340- "version": "5.47.1",7341- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.47.1.tgz",7342- "integrity": "sha512-rF3pmut2JCCjh6BLRhNKdYjULMb1brvoaiWDlHfLNVgmnZ0sBVJrs3SyaKE1XoDDnJuAx/hDQryHYmPUuNq0ig==",7482+ "version": "5.48.0",7483+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.48.0.tgz",7484+ "integrity": "sha512-5motVPz5EgxQ0bHjut3chzBkJ3Z3sheYVcSwS5BpHZpLqSptSmELNtGixmgj65+rIfhvtQTz5i9OP2vtzdDH7Q==",7485 "dev": true,7486 "requires": {7345- "@typescript-eslint/types": "5.47.1",7487+ "@typescript-eslint/types": "5.48.0",7488 "eslint-visitor-keys": "^3.3.0"7489 }7490 },7491 "acorn": {105 unmodified lines7597 "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz",7598 "integrity": "sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA==",7599 "dev": true7600 },7601+ "available-typed-arrays": {7602+ "version": "1.0.5",7603+ "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz",7604+ "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==",7605+ "dev": true7606+ },7607 "babel-jest": {7608 "version": "29.3.1",7609 "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.3.1.tgz",7610 "integrity": "sha512-aard+xnMoxgjwV70t0L6wkW/3HQQtV+O0PEimxKgzNqCJnbYmroPojdP2tqKSOAt8QAKV/uSZU8851M7B5+fcA==",166 unmodified lines7777 "quick-lru": "^4.0.1"7778 }7779 },7780 "caniuse-lite": {7633- "version": "1.0.30001441",7634- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001441.tgz",7635- "integrity": "sha512-OyxRR4Vof59I3yGWXws6i908EtGbMzVUi3ganaZQHmydk1iwDhRnvaPG2WaR0KcqrDFKrxVZHULT396LEPhXfg==",7781+ "version": "1.0.30001442",7782+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001442.tgz",7783+ "integrity": "sha512-239m03Pqy0hwxYPYR5JwOIxRJfLTWtle9FV8zosfV5pHg+/51uD4nxcUlM8+mWWGfwKtt8lJNHnD3cWw9VZ6ow==",7784 "dev": true7785 },7786 "chalk": {7787 "version": "4.1.2",11 unmodified lines7799 "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==",7800 "dev": true7801 },7802 "ci-info": {7655- "version": "3.7.0",7656- "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.7.0.tgz",7657- "integrity": "sha512-2CpRNYmImPx+RXKLq6jko/L07phmS9I02TyqkcNU20GCF/GgaWvc58hPtjxDX8lPpkdwc9sNh72V9k00S7ezog==",7803+ "version": "3.7.1",7804+ "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.7.1.tgz",7805+ "integrity": "sha512-4jYS4MOAaCIStSRwiuxc4B8MYhIe676yO1sYGzARnjXkWpmzZMMYxY6zu8WYWDhSuth5zhrQ1rhNSibyyvv4/w==",7806 "dev": true7807 },7808 "cjs-module-lexer": {7809 "version": "1.2.2",180 unmodified lines7990 "is-arrayish": "^0.2.1"7991 }7992 },7993 "es-abstract": {7846- "version": "1.20.5",7847- "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.5.tgz",7848- "integrity": "sha512-7h8MM2EQhsCA7pU/Nv78qOXFpD8Rhqd12gYiSJVkrH9+e8VuA8JlPJK/hQjjlLv6pJvx/z1iRFKzYb0XT/RuAQ==",7994+ "version": "1.21.0",7995+ "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.0.tgz",7996+ "integrity": "sha512-GUGtW7eXQay0c+PRq0sGIKSdaBorfVqsCMhGHo4elP7YVqZu9nCZS4UkK4gv71gOWNMra/PaSKD3ao1oWExO0g==",7997 "dev": true,7998 "requires": {7999 "call-bind": "^1.0.2",8000+ "es-set-tostringtag": "^2.0.0",8001 "es-to-primitive": "^1.2.1",8002 "function-bind": "^1.1.1",8003 "function.prototype.name": "^1.1.5",8004 "get-intrinsic": "^1.1.3",8005 "get-symbol-description": "^1.0.0",8006+ "globalthis": "^1.0.3",8007 "gopd": "^1.0.1",8008 "has": "^1.0.3",8009 "has-property-descriptors": "^1.0.0",8010+ "has-proto": "^1.0.1",8011 "has-symbols": "^1.0.3",7861- "internal-slot": "^1.0.3",8012+ "internal-slot": "^1.0.4",8013+ "is-array-buffer": "^3.0.0",8014 "is-callable": "^1.2.7",8015 "is-negative-zero": "^2.0.2",8016 "is-regex": "^1.1.4",8017 "is-shared-array-buffer": "^1.0.2",8018 "is-string": "^1.0.7",8019+ "is-typed-array": "^1.1.10",8020 "is-weakref": "^1.0.2",8021 "object-inspect": "^1.12.2",8022 "object-keys": "^1.1.1",8023 "object.assign": "^4.1.4",8024 "regexp.prototype.flags": "^1.4.3",8025 "safe-regex-test": "^1.0.0",8026 "string.prototype.trimend": "^1.0.6",8027 "string.prototype.trimstart": "^1.0.6",8028+ "typed-array-length": "^1.0.4",7875- "unbox-primitive": "^1.0.2"8029+ "unbox-primitive": "^1.0.2",8030+ "which-typed-array": "^1.1.9"8031 }8032 },8033+ "es-set-tostringtag": {8034+ "version": "2.0.1",8035+ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz",8036+ "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==",8037+ "dev": true,8038+ "requires": {8039+ "get-intrinsic": "^1.1.3",8040+ "has": "^1.0.3",8041+ "has-tostringtag": "^1.0.0"8042+ }8043+ },8044 "es-shim-unscopables": {8045 "version": "1.0.0",8046 "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz",8047 "integrity": "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==",25 unmodified lines8073 "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",8074 "dev": true8075 },8076 "eslint": {7911- "version": "8.30.0",7912- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.30.0.tgz",7913- "integrity": "sha512-MGADB39QqYuzEGov+F/qb18r4i7DohCDOfatHaxI2iGlPuC65bwG2gxgO+7DkyL38dRFaRH7RaRAgU6JKL9rMQ==",8077+ "version": "8.31.0",8078+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.31.0.tgz",8079+ "integrity": "sha512-0tQQEVdmPZ1UtUKXjX7EMm9BlgJ08G90IhWh0PKDCb3ZLsgAOHI8fYSIzYVZej92zsgq+ft0FGsxhJ3xo2tbuA==",8080 "dev": true,8081 "requires": {7916- "@eslint/eslintrc": "^1.4.0",8082+ "@eslint/eslintrc": "^1.4.1",8083 "@humanwhocodes/config-array": "^0.11.8",8084 "@humanwhocodes/module-importer": "^1.0.1",8085 "@nodelib/fs.walk": "^1.2.8",8086 "ajv": "^6.10.0",199 unmodified lines8286 }8287 }8288 },8289 "eslint-plugin-jest": {8124- "version": "27.1.7",8125- "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.1.7.tgz",8126- "integrity": "sha512-0QVzf+og4YI1Qr3UoprkqqhezAZjFffdi62b0IurkCXMqPtRW84/UT4CKsYT80h/D82LA9avjO/80Ou1LdgbaQ==",8290+ "version": "27.2.1",8291+ "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.2.1.tgz",8292+ "integrity": "sha512-l067Uxx7ZT8cO9NJuf+eJHvt6bqJyz2Z29wykyEdz/OtmcELQl2MQGQLX8J94O1cSJWAwUSEvCjwjA7KEK3Hmg==",8293 "dev": true,8294 "requires": {8295 "@typescript-eslint/utils": "^5.10.0"8296 }201 unmodified lines8498 "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",8499 "dev": true8500 },8501 "fastq": {8336- "version": "1.14.0",8337- "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.14.0.tgz",8338- "integrity": "sha512-eR2D+V9/ExcbF9ls441yIuN6TI2ED1Y2ZcA5BmMtJsOkWOFRJQ0Jt0g1UwqXJJVAb+V+umH5Dfr8oh4EVP7VVg==",8502+ "version": "1.15.0",8503+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz",8504+ "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==",8505 "dev": true,8506 "requires": {8507 "reusify": "^1.0.4"8508 }50 unmodified lines8559 "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz",8560 "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==",8561 "dev": true8562 },8563+ "for-each": {8564+ "version": "0.3.3",8565+ "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz",8566+ "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==",8567+ "dev": true,8568+ "requires": {8569+ "is-callable": "^1.1.3"8570+ }8571+ },8572 "fs.realpath": {8573 "version": "1.0.0",8574 "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",8575 "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",106 unmodified lines8682 "requires": {8683 "type-fest": "^0.20.2"8684 }8685 },8686+ "globalthis": {8687+ "version": "1.0.3",8688+ "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz",8689+ "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==",8690+ "dev": true,8691+ "requires": {8692+ "define-properties": "^1.1.3"8693+ }8694+ },8695 "globby": {8696 "version": "11.1.0",8697 "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz",8698 "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",63 unmodified lines8762 "requires": {8763 "get-intrinsic": "^1.1.1"8764 }8765 },8766+ "has-proto": {8767+ "version": "1.0.1",8768+ "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz",8769+ "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==",8770+ "dev": true8771+ },8772 "has-symbols": {8773 "version": "1.0.3",8774 "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",8775 "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",116 unmodified lines8892 "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-3.3.0.tgz",8893 "integrity": "sha512-MVBLKUTangM3EfRPFROhmWQQKRDsrgI83J8GS3jXy+OwYqiR2/aoWndYQ5416jLE3uaGgLH7ncme3X9y09gZ3g==",8894 "dev": true8895 },8896+ "is-array-buffer": {8897+ "version": "3.0.1",8898+ "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.1.tgz",8899+ "integrity": "sha512-ASfLknmY8Xa2XtB4wmbz13Wu202baeA18cJBCeCy0wXUHZF0IPyVEXqKEcd+t2fNSLLL1vC6k7lxZEojNbISXQ==",8900+ "dev": true,8901+ "requires": {8902+ "call-bind": "^1.0.2",8903+ "get-intrinsic": "^1.1.3",8904+ "is-typed-array": "^1.1.10"8905+ }8906+ },8907 "is-arrayish": {8908 "version": "0.2.1",8909 "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",8910 "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==",144 unmodified lines9055 "requires": {9056 "has-symbols": "^1.0.2"9057 }9058 },9059+ "is-typed-array": {9060+ "version": "1.1.10",9061+ "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz",9062+ "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==",9063+ "dev": true,9064+ "requires": {9065+ "available-typed-arrays": "^1.0.5",9066+ "call-bind": "^1.0.2",9067+ "for-each": "^0.3.3",9068+ "gopd": "^1.0.1",9069+ "has-tostringtag": "^1.0.0"9070+ }9071+ },9072 "is-unicode-supported": {9073 "version": "0.1.0",9074 "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz",9075 "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==",547 unmodified lines9623 "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",9624 "dev": true9625 },9626 "json5": {9413- "version": "2.2.2",9414- "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.2.tgz",9415- "integrity": "sha512-46Tk9JiOL2z7ytNQWFLpj99RZkVgeHf87yGQKsIkaPz1qSH9UczKH1rO7K3wgRselo0tYMUNfecYpm/p1vC7tQ==",9627+ "version": "2.2.3",9628+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",9629+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",9630 "dev": true9631 },9632 "kind-of": {9633 "version": "6.0.3",1059 unmodified lines10693 "strip-bom": "^3.0.0"10694 },10695 "dependencies": {10696 "json5": {10483- "version": "1.0.1",10484- "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz",10485- "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==",10697+ "version": "1.0.2",10698+ "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",10699+ "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",10700 "dev": true,10701 "requires": {10702 "minimist": "^1.2.0"10703 }55 unmodified lines10759 "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",10760 "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",10761 "dev": true10762 },10763+ "typed-array-length": {10764+ "version": "1.0.4",10765+ "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz",10766+ "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==",10767+ "dev": true,10768+ "requires": {10769+ "call-bind": "^1.0.2",10770+ "for-each": "^0.3.3",10771+ "is-typed-array": "^1.1.9"10772+ }10773+ },10774 "typescript": {10775 "version": "4.9.4",10776 "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz",10777 "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==",89 unmodified lines10867 "is-string": "^1.0.5",10868 "is-symbol": "^1.0.3"10869 }10870 },10871+ "which-typed-array": {10872+ "version": "1.1.9",10873+ "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz",10874+ "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==",10875+ "dev": true,10876+ "requires": {10877+ "available-typed-arrays": "^1.0.5",10878+ "call-bind": "^1.0.2",10879+ "for-each": "^0.3.3",10880+ "gopd": "^1.0.1",10881+ "has-tostringtag": "^1.0.0",10882+ "is-typed-array": "^1.1.10"10883+ }10884+ },10885 "word-wrap": {10886 "version": "1.2.3",10887 "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",10888 "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==",70 unmodified linesmodified:package.json+1 added-1 removed
1 {2 "name": "commander",3- "version": "9.4.1",3+ "version": "9.5.0",4 "description": "the complete solution for node.js command-line programs",5 "keywords": [6 "commander",7 "command",73 unmodified linesmodified:Readme.md+3 added
541 unmodified lines542 Configuration options can be passed with the call to `.command()` and `.addCommand()`. Specifying `hidden: true` will543 remove the command from the generated help output. Specifying `isDefault: true` will run the subcommand if no other544 subcommand is specified ([example](./examples/defaultCommand.js)).545 546+You can add alternative names for a command with `.alias()`. ([example](./examples/alias.js))547+548 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.549 550 ### Command-arguments551 364 unmodified lines916 917 - `helpWidth`: specify the wrap width, useful for unit tests918 - `sortSubcommands`: sort the subcommands alphabetically919 - `sortOptions`: sort the options alphabetically920+- `showGlobalOptions`: show a section with the global options from the parent command(s)921 922 There are methods getting the visible lists of arguments, options, and subcommands. There are methods for formatting the items in the lists, with each item having a _term_ and _description_. Take a look at `.formatHelp()` to see how they are used.923 924 Example file: [configure-help.js](./examples/configure-help.js)205 unmodified lines