From acf3b2fdcc4b72267cfe24daae7aed73cd83a0f5 Mon Sep 17 00:00:00 2001 From: escapedcat Date: Fri, 4 Aug 2023 10:17:19 +0800 Subject: [PATCH] chore: deps and prettier v3 changes (#3632) --- @commitlint/cli/src/cli.test.ts | 52 +- @commitlint/cli/src/cli.ts | 18 +- @commitlint/config-conventional/package.json | 2 +- @commitlint/config-lerna-scopes/package.json | 2 +- @commitlint/config-pnpm-scopes/package.json | 2 +- .../config-validator/src/formatErrors.ts | 4 +- .../config-validator/src/validate.test.ts | 2 +- @commitlint/config-validator/src/validate.ts | 6 +- @commitlint/cz-commitlint/package.json | 2 +- @commitlint/cz-commitlint/src/Process.test.ts | 8 +- @commitlint/cz-commitlint/src/Process.ts | 2 +- .../cz-commitlint/src/Question.test.ts | 24 +- @commitlint/cz-commitlint/src/Question.ts | 8 +- @commitlint/cz-commitlint/src/SectionBody.ts | 2 +- .../cz-commitlint/src/SectionFooter.test.ts | 30 +- .../cz-commitlint/src/SectionFooter.ts | 10 +- .../cz-commitlint/src/SectionHeader.test.ts | 6 +- .../cz-commitlint/src/SectionHeader.ts | 6 +- .../services/getRuleQuestionConfig.test.ts | 6 +- .../src/services/getRuleQuestionConfig.ts | 2 +- .../cz-commitlint/src/store/prompts.test.ts | 6 +- .../cz-commitlint/src/store/prompts.ts | 2 +- .../cz-commitlint/src/store/rules.test.ts | 2 +- .../src/utils/leading-blank-fn.ts | 2 +- .../cz-commitlint/src/utils/rules.test.ts | 6 +- @commitlint/cz-commitlint/src/utils/rules.ts | 10 +- @commitlint/ensure/src/case.test.ts | 28 +- @commitlint/ensure/src/case.ts | 2 +- .../ensure/src/max-line-length.test.ts | 4 +- @commitlint/execute-rule/src/index.ts | 2 +- @commitlint/format/src/format.test.ts | 24 +- @commitlint/format/src/format.ts | 8 +- @commitlint/is-ignored/package.json | 4 +- @commitlint/is-ignored/src/defaults.ts | 2 +- @commitlint/is-ignored/src/is-ignored.test.ts | 28 +- @commitlint/is-ignored/src/is-ignored.ts | 6 +- @commitlint/lint/src/lint.test.ts | 22 +- @commitlint/lint/src/lint.ts | 42 +- @commitlint/load/package.json | 4 +- @commitlint/load/src/load.test.ts | 28 +- @commitlint/load/src/load.ts | 6 +- @commitlint/load/src/utils/load-config.ts | 2 +- .../load/src/utils/load-parser-opts.ts | 6 +- .../load/src/utils/load-plugin.test.ts | 20 +- @commitlint/load/src/utils/load-plugin.ts | 6 +- @commitlint/load/src/utils/plugin-naming.ts | 6 +- @commitlint/message/src/index.test.ts | 2 +- @commitlint/parse/package.json | 4 +- @commitlint/parse/src/index.ts | 2 +- @commitlint/prompt/src/input.test.ts | 4 +- @commitlint/prompt/src/input.ts | 2 +- .../prompt/src/inquirer/InputCustomPrompt.ts | 6 +- .../prompt/src/library/get-forced-case-fn.ts | 2 +- .../src/library/get-forced-leading-fn.ts | 2 +- @commitlint/prompt/src/library/get-prompt.ts | 4 +- @commitlint/prompt/src/library/meta.ts | 2 +- @commitlint/prompt/src/library/utils.test.ts | 14 +- @commitlint/prompt/src/library/utils.ts | 14 +- @commitlint/read/src/get-edit-commit.ts | 2 +- @commitlint/read/src/get-edit-file-path.ts | 2 +- @commitlint/read/src/get-history-commits.ts | 2 +- @commitlint/read/src/read.ts | 2 +- @commitlint/read/src/stream-to-promise.ts | 2 +- @commitlint/resolve-extends/src/index.test.ts | 2 +- @commitlint/resolve-extends/src/index.ts | 12 +- @commitlint/rules/package.json | 2 +- @commitlint/rules/src/body-case.ts | 2 +- @commitlint/rules/src/body-full-stop.ts | 2 +- @commitlint/rules/src/body-max-length.ts | 2 +- @commitlint/rules/src/body-max-line-length.ts | 2 +- @commitlint/rules/src/body-min-length.ts | 2 +- .../rules/src/footer-leading-blank.test.ts | 2 +- @commitlint/rules/src/footer-max-length.ts | 2 +- .../rules/src/footer-max-line-length.ts | 2 +- @commitlint/rules/src/footer-min-length.ts | 2 +- @commitlint/rules/src/header-case.test.ts | 2 +- @commitlint/rules/src/header-case.ts | 2 +- @commitlint/rules/src/header-full-stop.ts | 2 +- @commitlint/rules/src/header-max-length.ts | 2 +- @commitlint/rules/src/header-min-length.ts | 2 +- @commitlint/rules/src/index.test.ts | 2 +- @commitlint/rules/src/scope-case.ts | 4 +- @commitlint/rules/src/scope-enum.ts | 2 +- @commitlint/rules/src/scope-max-length.ts | 2 +- @commitlint/rules/src/scope-min-length.ts | 2 +- @commitlint/rules/src/signed-off-by.test.ts | 8 +- @commitlint/rules/src/signed-off-by.ts | 4 +- @commitlint/rules/src/subject-case.test.ts | 30 +- @commitlint/rules/src/subject-case.ts | 2 +- .../rules/src/subject-full-stop.test.ts | 14 +- @commitlint/rules/src/subject-full-stop.ts | 2 +- @commitlint/rules/src/subject-max-length.ts | 2 +- @commitlint/rules/src/subject-min-length.ts | 2 +- @commitlint/rules/src/trailer-exists.test.ts | 16 +- @commitlint/rules/src/trailer-exists.ts | 2 +- @commitlint/rules/src/type-case.ts | 2 +- @commitlint/rules/src/type-enum.ts | 2 +- @commitlint/rules/src/type-max-length.ts | 2 +- @commitlint/rules/src/type-min-length.ts | 2 +- @commitlint/travis-cli/src/cli.test.ts | 16 +- @commitlint/travis-cli/src/cli.ts | 4 +- @commitlint/types/src/format.ts | 2 +- @commitlint/types/src/parse.ts | 2 +- @commitlint/types/src/rules.ts | 4 +- @packages/test-environment/package.json | 2 +- @packages/test/src/git.ts | 2 +- @packages/test/src/npm.ts | 8 +- docs/guides-local-setup.md | 3 +- docs/reference-api.md | 22 +- docs/reference-configuration.md | 2 +- docs/reference-rules.md | 66 +- package.json | 20 +- yarn.lock | 1278 +++++++++++------ 113 files changed, 1250 insertions(+), 867 deletions(-) diff --git a/@commitlint/cli/src/cli.test.ts b/@commitlint/cli/src/cli.test.ts index 55acc263a9..129e25c49d 100644 --- a/@commitlint/cli/src/cli.test.ts +++ b/@commitlint/cli/src/cli.test.ts @@ -69,7 +69,7 @@ test('should produce help for problems', async () => { const cwd = await gitBootstrap('fixtures/default'); const actual = await cli([], {cwd})('foo: bar'); expect(actual.stdout).toContain( - 'Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint' + 'Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint', ); expect(actual.exitCode).toBe(1); }); @@ -78,10 +78,10 @@ test('should produce help for problems with correct helpurl', async () => { const cwd = await gitBootstrap('fixtures/default'); const actual = await cli( ['-H https://github.com/conventional-changelog/commitlint/#testhelpurl'], - {cwd} + {cwd}, )('foo: bar'); expect(actual.stdout).toContain( - 'Get help: https://github.com/conventional-changelog/commitlint/#testhelpurl' + 'Get help: https://github.com/conventional-changelog/commitlint/#testhelpurl', ); expect(actual.exitCode).toBe(1); }); @@ -152,7 +152,7 @@ test('should work with husky commitmsg hook and git commit', async () => { const commit = await execa( 'git', ['commit', '-m', '"test: this should work"'], - {cwd} + {cwd}, ); expect(commit).toBeTruthy(); @@ -168,7 +168,7 @@ test('should work with husky commitmsg hook in sub packages', async () => { const commit = await execa( 'git', ['commit', '-m', '"test: this should work"'], - {cwd} + {cwd}, ); expect(commit).toBeTruthy(); }); @@ -177,7 +177,7 @@ test('should work with husky via commitlint -e $GIT_PARAMS', async () => { const cwd = await gitBootstrap('fixtures/husky/integration'); await writePkg( {husky: {hooks: {'commit-msg': `'${bin}' -e $GIT_PARAMS`}}}, - {cwd} + {cwd}, ); // await execa('npm', ['install'], {cwd}); // npm install is failing on windows machines @@ -185,7 +185,7 @@ test('should work with husky via commitlint -e $GIT_PARAMS', async () => { const commit = await execa( 'git', ['commit', '-m', '"test: this should work"'], - {cwd} + {cwd}, ); expect(commit).toBeTruthy(); }); @@ -194,7 +194,7 @@ test('should work with husky via commitlint -e %GIT_PARAMS%', async () => { const cwd = await gitBootstrap('fixtures/husky/integration'); await writePkg( {husky: {hooks: {'commit-msg': `'${bin}' -e %GIT_PARAMS%`}}}, - {cwd} + {cwd}, ); // await execa('npm', ['install'], {cwd}); // npm install is failing on windows machines @@ -202,7 +202,7 @@ test('should work with husky via commitlint -e %GIT_PARAMS%', async () => { const commit = await execa( 'git', ['commit', '-m', '"test: this should work"'], - {cwd} + {cwd}, ); expect(commit).toBeTruthy(); }); @@ -211,7 +211,7 @@ test('should work with husky via commitlint -e $HUSKY_GIT_PARAMS', async () => { const cwd = await gitBootstrap('fixtures/husky/integration'); await writePkg( {husky: {hooks: {'commit-msg': `'${bin}' -e $HUSKY_GIT_PARAMS`}}}, - {cwd} + {cwd}, ); // await execa('npm', ['install'], {cwd}); // npm install is failing on windows machines @@ -219,7 +219,7 @@ test('should work with husky via commitlint -e $HUSKY_GIT_PARAMS', async () => { const commit = await execa( 'git', ['commit', '-m', '"test: this should work"'], - {cwd} + {cwd}, ); expect(commit).toBeTruthy(); }); @@ -228,7 +228,7 @@ test('should work with husky via commitlint -e %HUSKY_GIT_PARAMS%', async () => const cwd = await gitBootstrap('fixtures/husky/integration'); await writePkg( {husky: {hooks: {'commit-msg': `'${bin}' -e %HUSKY_GIT_PARAMS%`}}}, - {cwd} + {cwd}, ); // await execa('npm', ['install'], {cwd}); // npm install is failing on windows machines @@ -236,7 +236,7 @@ test('should work with husky via commitlint -e %HUSKY_GIT_PARAMS%', async () => const commit = await execa( 'git', ['commit', '-m', '"test: this should work"'], - {cwd} + {cwd}, ); expect(commit).toBeTruthy(); }); @@ -255,7 +255,7 @@ test('should allow reading of environment variables for edit file, failing if in const cwd = await gitBootstrap('fixtures/simple'); await fs.writeFile( path.join(cwd, 'commit-msg-file'), - 'foo: bar\n\nFoo bar bizz buzz.\n\nCloses #123.' + 'foo: bar\n\nFoo bar bizz buzz.\n\nCloses #123.', ); const actual = await cli(['--env', 'variable'], { cwd, @@ -267,7 +267,7 @@ test('should allow reading of environment variables for edit file, failing if in test('should pick up parser preset and fail accordingly', async () => { const cwd = await gitBootstrap('fixtures/parser-preset'); const actual = await cli(['--parser-preset', './parser-preset'], {cwd})( - 'type(scope): subject' + 'type(scope): subject', ); expect(actual.exitCode).toBe(1); expect(actual.stdout).toContain('may not be empty'); @@ -276,7 +276,7 @@ test('should pick up parser preset and fail accordingly', async () => { test('should pick up parser preset and succeed accordingly', async () => { const cwd = await gitBootstrap('fixtures/parser-preset'); const actual = await cli(['--parser-preset', './parser-preset'], {cwd})( - '----type(scope): subject' + '----type(scope): subject', ); expect(actual.exitCode).toBe(0); }); @@ -322,7 +322,7 @@ test('should handle --amend with signoff', async () => { await execa( 'git', ['commit', '-m', '"test: this should work"', '--signoff'], - {cwd} + {cwd}, ); const commit = await execa('git', ['commit', '--amend', '--no-edit'], {cwd}); @@ -342,7 +342,7 @@ test("it doesn't use parserOpts.commentChar when using edit mode", async () => { const cwd = await gitBootstrap('fixtures/comment-char'); await fs.writeFile( path.join(cwd, '.git', 'COMMIT_EDITMSG'), - 'header: foo\n\n$body\n' + 'header: foo\n\n$body\n', ); const actual = await cli(['--edit', '.git/COMMIT_EDITMSG'], {cwd})(); @@ -355,7 +355,7 @@ test('it uses core.commentChar git config when using edit mode', async () => { await execa('git', ['config', '--local', 'core.commentChar', '$'], {cwd}); await fs.writeFile( path.join(cwd, '.git', 'COMMIT_EDITMSG'), - 'header: foo\n\n$body\n' + 'header: foo\n\n$body\n', ); const actual = await cli(['--edit', '.git/COMMIT_EDITMSG'], {cwd})(); @@ -367,7 +367,7 @@ test('it falls back to # for core.commentChar when using edit mode', async () => const cwd = await gitBootstrap('fixtures/comment-char'); await fs.writeFile( path.join(cwd, '.git', 'COMMIT_EDITMSG'), - 'header: foo\n\n#body\n' + 'header: foo\n\n#body\n', ); const actual = await cli(['--edit', '.git/COMMIT_EDITMSG'], {cwd})(); @@ -408,7 +408,7 @@ test('should fail for invalid formatters from configuration', async () => { const actual = await cli([], {cwd})('foo: bar'); expect(actual.stderr).toContain( - 'Using format custom-formatter, but cannot find the module' + 'Using format custom-formatter, but cannot find the module', ); expect(actual.stdout).toEqual(''); expect(actual.exitCode).toBe(1); @@ -449,7 +449,7 @@ test('should fail for invalid formatters from flags', async () => { const actual = await cli(['--format', 'through-flag'], {cwd})('foo: bar'); expect(actual.stderr).toContain( - 'Using format through-flag, but cannot find the module' + 'Using format through-flag, but cannot find the module', ); expect(actual.stdout).toEqual(''); expect(actual.exitCode).toBe(1); @@ -458,11 +458,11 @@ test('should fail for invalid formatters from flags', async () => { test('should work with absolute formatter path', async () => { const formatterPath = path.resolve( __dirname, - '../fixtures/custom-formatter/formatters/custom.js' + '../fixtures/custom-formatter/formatters/custom.js', ); const cwd = await gitBootstrap('fixtures/custom-formatter'); const actual = await cli(['--format', formatterPath], {cwd})( - 'test: this should work' + 'test: this should work', ); expect(actual.stdout).toContain('custom-formatter-ok'); @@ -472,10 +472,10 @@ test('should work with absolute formatter path', async () => { test('should work with relative formatter path', async () => { const cwd = path.resolve( await gitBootstrap('fixtures/custom-formatter'), - './formatters' + './formatters', ); const actual = await cli(['--format', './custom.js'], {cwd})( - 'test: this should work' + 'test: this should work', ); expect(actual.stdout).toContain('custom-formatter-ok'); diff --git a/@commitlint/cli/src/cli.ts b/@commitlint/cli/src/cli.ts index f4e1c025ae..2bcb2da73e 100644 --- a/@commitlint/cli/src/cli.ts +++ b/@commitlint/cli/src/cli.ts @@ -120,14 +120,14 @@ const cli = yargs .version( 'version', 'display version information', - `${pkg.name}@${pkg.version}` + `${pkg.name}@${pkg.version}`, ) .alias('v', 'version') .help('help') .alias('h', 'help') .usage(`${pkg.name}@${pkg.version} - ${pkg.description}\n`) .usage( - `[input] reads from stdin if --edit, --env, --from and --to are omitted` + `[input] reads from stdin if --edit, --env, --from and --to are omitted`, ) .strict(); @@ -204,7 +204,7 @@ async function main(args: MainArgs): Promise { if (messages.length === 0 && !checkFromRepository(flags)) { const err = new CliError( '[input] is required: supply via stdin, or --env or --edit or --from and --to', - pkg.name + pkg.name, ); yargs.showHelp('log'); console.log(err.message); @@ -249,7 +249,7 @@ async function main(args: MainArgs): Promise { if (!execaError.failed || execaError.exitCode !== 1) { console.warn( 'Could not determine core.commentChar git configuration', - e + e, ); } opts.parserOpts.commentChar = gitDefaultCommentChar; @@ -257,7 +257,7 @@ async function main(args: MainArgs): Promise { } const results = await Promise.all( - messages.map((message) => lint(message, loaded.rules, opts)) + messages.map((message) => lint(message, loaded.rules, opts)), ); if (Object.keys(loaded.rules).length === 0) { @@ -305,7 +305,7 @@ async function main(args: MainArgs): Promise { errorCount: 0, warningCount: 0, results: [], - } + }, ); const helpUrl = flags['help-url']?.trim() || loaded.helpUrl; @@ -361,7 +361,7 @@ function getEditValue(flags: CliFlags) { if (flags.env) { if (!(flags.env in process.env)) { throw new Error( - `Received '${flags.env}' as value for -E | --env, but environment variable '${flags.env}' is not available globally` + `Received '${flags.env}' as value for -E | --env, but environment variable '${flags.env}' is not available globally`, ); } return process.env[flags.env]; @@ -395,7 +395,7 @@ function getEditValue(flags: CliFlags) { return process.env.HUSKY_GIT_PARAMS; } throw new Error( - `Received ${edit} as value for -e | --edit, but GIT_PARAMS or HUSKY_GIT_PARAMS are not available globally.` + `Received ${edit} as value for -e | --edit, but GIT_PARAMS or HUSKY_GIT_PARAMS are not available globally.`, ); } return edit; @@ -403,7 +403,7 @@ function getEditValue(flags: CliFlags) { function getSeed(flags: CliFlags): UserConfig { const n = (flags.extends || []).filter( - (i): i is string => typeof i === 'string' + (i): i is string => typeof i === 'string', ); return n.length > 0 ? {extends: n, parserPreset: flags['parser-preset']} diff --git a/@commitlint/config-conventional/package.json b/@commitlint/config-conventional/package.json index 7792e53dd9..5f141292de 100644 --- a/@commitlint/config-conventional/package.json +++ b/@commitlint/config-conventional/package.json @@ -37,7 +37,7 @@ "@commitlint/utils": "^17.4.0" }, "dependencies": { - "conventional-changelog-conventionalcommits": "^5.0.0" + "conventional-changelog-conventionalcommits": "^6.1.0" }, "gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc" } diff --git a/@commitlint/config-lerna-scopes/package.json b/@commitlint/config-lerna-scopes/package.json index 73bf37afc2..9960dd14a2 100644 --- a/@commitlint/config-lerna-scopes/package.json +++ b/@commitlint/config-lerna-scopes/package.json @@ -41,7 +41,7 @@ "@lerna/project": "^6.0.0", "glob": "^8.0.3", "import-from": "4.0.0", - "semver": "7.5.2" + "semver": "7.5.4" }, "devDependencies": { "@commitlint/test": "^17.4.2", diff --git a/@commitlint/config-pnpm-scopes/package.json b/@commitlint/config-pnpm-scopes/package.json index 083ee46cfd..886873d8ed 100644 --- a/@commitlint/config-pnpm-scopes/package.json +++ b/@commitlint/config-pnpm-scopes/package.json @@ -31,7 +31,7 @@ }, "dependencies": { "@pnpm/read-project-manifest": "^4.1.4", - "fast-glob": "^3.2.12", + "fast-glob": "^3.3.1", "read-yaml-file": "^2.1.0" }, "devDependencies": { diff --git a/@commitlint/config-validator/src/formatErrors.ts b/@commitlint/config-validator/src/formatErrors.ts index 9c9943d11f..d9086fd076 100644 --- a/@commitlint/config-validator/src/formatErrors.ts +++ b/@commitlint/config-validator/src/formatErrors.ts @@ -32,12 +32,12 @@ export function formatErrors(errors: ErrorObject[]): string { : error.instancePath) || 'Config'; if (error.keyword === 'typeof') { return `"${field}" should be a ${error.schema}. Value: ${JSON.stringify( - error.data + error.data, )}`; } return `"${field}" ${error.message}. Value: ${JSON.stringify( - error.data + error.data, )}`; }) .map((message) => `\t- ${message}.\n`) diff --git a/@commitlint/config-validator/src/validate.test.ts b/@commitlint/config-validator/src/validate.test.ts index 93203951ae..bfe9fa7ede 100644 --- a/@commitlint/config-validator/src/validate.test.ts +++ b/@commitlint/config-validator/src/validate.test.ts @@ -61,7 +61,7 @@ describe('validation should pass for', () => { describe('validation should fail for', () => { test.each(Object.entries(invalidSchemas))('%s', (file, config) => { expect(() => - validateConfig(`${file}.js`, config) + validateConfig(`${file}.js`, config), ).toThrowErrorMatchingSnapshot(); }); }); diff --git a/@commitlint/config-validator/src/validate.ts b/@commitlint/config-validator/src/validate.ts index 256e2ffe2b..714a845e96 100644 --- a/@commitlint/config-validator/src/validate.ts +++ b/@commitlint/config-validator/src/validate.ts @@ -15,7 +15,7 @@ const TYPE_OF = [ export function validateConfig( source: string, - config: unknown + config: unknown, ): asserts config is UserConfig { const ajv = new Ajv({ meta: false, @@ -40,8 +40,8 @@ export function validateConfig( if (!isValid && validate.errors && validate.errors.length) { throw new Error( `Commitlint configuration in ${source} is invalid:\n${formatErrors( - validate.errors - )}` + validate.errors, + )}`, ); } } diff --git a/@commitlint/cz-commitlint/package.json b/@commitlint/cz-commitlint/package.json index d4370fbe9f..ab8eb86cee 100644 --- a/@commitlint/cz-commitlint/package.json +++ b/@commitlint/cz-commitlint/package.json @@ -42,7 +42,7 @@ "@commitlint/types": "^17.4.4", "chalk": "^4.1.0", "lodash.isplainobject": "^4.0.6", - "word-wrap": "^1.2.3" + "word-wrap": "^1.2.5" }, "peerDependencies": { "commitizen": "^4.0.3", diff --git a/@commitlint/cz-commitlint/src/Process.test.ts b/@commitlint/cz-commitlint/src/Process.test.ts index 323ea4f189..5d640468b9 100644 --- a/@commitlint/cz-commitlint/src/Process.test.ts +++ b/@commitlint/cz-commitlint/src/Process.test.ts @@ -215,9 +215,9 @@ describe('conventional-changlog', () => { return process(rules as any, prompts, InquirerFactory(answers) as any).then( (commitMessage) => { expect(commitMessage).toBe( - 'refactor(prompt): refactor prompt based on inquirer\n\ninspired by commitizen/cz-conventional-changelog\n\nBREAKING CHANGE: refactor types\nhttps://github.com/conventional-changelog/commitlint/issues/94' + 'refactor(prompt): refactor prompt based on inquirer\n\ninspired by commitizen/cz-conventional-changelog\n\nBREAKING CHANGE: refactor types\nhttps://github.com/conventional-changelog/commitlint/issues/94', ); - } + }, ); }); @@ -234,10 +234,10 @@ describe('conventional-changlog', () => { return process(rules as any, prompts, InquirerFactory(answers) as any).then( () => { expect(mockShowValidation).toHaveBeenCalledWith( - 'subject can not be empty' + 'subject can not be empty', ); expect(mockShowTitle).toHaveBeenCalledTimes(3); - } + }, ); }); }); diff --git a/@commitlint/cz-commitlint/src/Process.ts b/@commitlint/cz-commitlint/src/Process.ts index f1ec42d36f..86b3455df8 100644 --- a/@commitlint/cz-commitlint/src/Process.ts +++ b/@commitlint/cz-commitlint/src/Process.ts @@ -18,7 +18,7 @@ import {setRules} from './store/rules'; export default async function ( rules: QualifiedRules, prompts: UserPromptConfig, - inquirer: Inquirer + inquirer: Inquirer, ): Promise { setRules(rules); setPromptConfig(prompts); diff --git a/@commitlint/cz-commitlint/src/Question.test.ts b/@commitlint/cz-commitlint/src/Question.test.ts index 18516eda48..157e900897 100644 --- a/@commitlint/cz-commitlint/src/Question.test.ts +++ b/@commitlint/cz-commitlint/src/Question.test.ts @@ -26,7 +26,7 @@ describe('name', () => { () => new Question('' as any, { ...QUESTION_CONFIG, - }) + }), ).toThrow(); expect( @@ -37,8 +37,8 @@ describe('name', () => { } as any, { ...QUESTION_CONFIG, - } - ) + }, + ), ).toThrow(); }); @@ -46,7 +46,7 @@ describe('name', () => { expect( new Question('test' as any, { ...QUESTION_CONFIG, - }).question + }).question, ).toHaveProperty('name', 'test'); }); }); @@ -128,7 +128,7 @@ describe('message', () => { }).question; expect(question).toHaveProperty('message', expect.any(Function)); expect((question.message as any)()).toBe( - 'please input (press enter to skip):\n' + 'please input (press enter to skip):\n', ); }); @@ -158,7 +158,7 @@ describe('message', () => { } as any).question; expect(question).toHaveProperty('message', expect.any(Function)); expect((question.message as any)()).toBe( - 'please input: 10 chars at least\n' + 'please input: 10 chars at least\n', ); }); @@ -171,7 +171,7 @@ describe('message', () => { } as any).question; expect(question).toHaveProperty('message', expect.any(Function)); expect((question.message as any)()).toBe( - 'please input (press enter to skip): 10 chars at least, upper 80 chars\n' + 'please input (press enter to skip): 10 chars at least, upper 80 chars\n', ); }); @@ -306,7 +306,7 @@ describe('transformer', () => { }).question; expect( - (question as InputQuestionOptions)?.transformer?.('xxxx', {}, {}) + (question as InputQuestionOptions)?.transformer?.('xxxx', {}, {}), ).toBe('Xxxx!'); }); @@ -317,7 +317,7 @@ describe('transformer', () => { }).question; expect( - (question as InputQuestionOptions)?.transformer?.('xxx', {}, {}) + (question as InputQuestionOptions)?.transformer?.('xxx', {}, {}), ).toEqual(chalk.green(`(3) xxx`)); question = new Question('body', { @@ -326,7 +326,7 @@ describe('transformer', () => { }).question; expect( - (question as InputQuestionOptions)?.transformer?.('xxx', {}, {}) + (question as InputQuestionOptions)?.transformer?.('xxx', {}, {}), ).toEqual(chalk.green(`(3) xxx`)); }); @@ -337,7 +337,7 @@ describe('transformer', () => { }).question; expect( - (question as InputQuestionOptions)?.transformer?.('xxxxxx', {}, {}) + (question as InputQuestionOptions)?.transformer?.('xxxxxx', {}, {}), ).toEqual(chalk.red(`(6) xxxxxx`)); question = new Question('body', { @@ -346,7 +346,7 @@ describe('transformer', () => { }).question; expect( - (question as InputQuestionOptions)?.transformer?.('x', {}, {}) + (question as InputQuestionOptions)?.transformer?.('x', {}, {}), ).toEqual(chalk.red(`(1) x`)); }); }); diff --git a/@commitlint/cz-commitlint/src/Question.ts b/@commitlint/cz-commitlint/src/Question.ts index 5ed72223a4..136d5ffa1c 100644 --- a/@commitlint/cz-commitlint/src/Question.ts +++ b/@commitlint/cz-commitlint/src/Question.ts @@ -48,7 +48,7 @@ export default class Question { minLength, multipleValueDelimiters, multipleSelectDefaultDelimiter, - }: QuestionConfig + }: QuestionConfig, ) { if (!name || typeof name !== 'string') throw new Error('Question: name is required'); @@ -163,7 +163,7 @@ export default class Question { new RegExp(`[^${this.multipleValueDelimiters.source}]+`, 'g'), (segment) => { return casedSegments[segments.indexOf(segment)]; - } + }, ); } else { toCased = this.caseFn(input); @@ -192,12 +192,12 @@ export default class Question { const messages = []; if (this.minLength > 0 && this.getMessage('min')) { messages.push( - this.getMessage('min').replace(/%d/g, this.minLength + '') + this.getMessage('min').replace(/%d/g, this.minLength + ''), ); } if (this.maxLength < Infinity && this.getMessage('max')) { messages.push( - this.getMessage('max').replace(/%d/g, this.maxLength + '') + this.getMessage('max').replace(/%d/g, this.maxLength + ''), ); } diff --git a/@commitlint/cz-commitlint/src/SectionBody.ts b/@commitlint/cz-commitlint/src/SectionBody.ts index d5f00a3e18..92d9e7f4ed 100644 --- a/@commitlint/cz-commitlint/src/SectionBody.ts +++ b/@commitlint/cz-commitlint/src/SectionBody.ts @@ -29,7 +29,7 @@ export function combineCommitMessage(answers: Answers): string { trim: true, indent: '', }) - : commitBody.trim() + : commitBody.trim(), ); } else { return ''; diff --git a/@commitlint/cz-commitlint/src/SectionFooter.test.ts b/@commitlint/cz-commitlint/src/SectionFooter.test.ts index 06752401d5..8846f870be 100644 --- a/@commitlint/cz-commitlint/src/SectionFooter.test.ts +++ b/@commitlint/cz-commitlint/src/SectionFooter.test.ts @@ -68,12 +68,12 @@ describe('getQuestions', () => { expect( (questions[1].when as any)({ isBreaking: false, - }) + }), ).toBe(false); expect( (questions[1].when as any)({ isBreaking: true, - }) + }), ).toBe(true); }); @@ -95,20 +95,20 @@ describe('getQuestions', () => { expect( (questions[1].when as any)({ isBreaking: true, - }) + }), ).toBe(true); expect( (questions[1].when as any)({ isBreaking: true, body: 'xxx', - }) + }), ).toBe(false); expect( (questions[1].when as any)({ isBreaking: false, - }) + }), ).toBe(false); }); @@ -146,12 +146,12 @@ describe('getQuestions', () => { expect( (questions[1].when as any)({ isIssueAffected: false, - }) + }), ).toBe(false); expect( (questions[1].when as any)({ isIssueAffected: true, - }) + }), ).toBe(true); }); @@ -176,21 +176,21 @@ describe('getQuestions', () => { expect( (questions[1].when as any)({ isIssueAffected: true, - }) + }), ).toBe(true); expect( (questions[1].when as any)({ isIssueAffected: true, body: 'xxx', - }) + }), ).toBe(false); expect( (questions[1].when as any)({ isIssueAffected: false, breaking: 'xxxxx', - }) + }), ).toBe(false); }); }); @@ -215,7 +215,7 @@ describe('combineCommitMessage', () => { footer: 'Other footer information.', }); expect(commitMessage).toBe( - 'BREAKING CHANGE: xxxxxx\nhttps://github.com/conventional-changelog/commitlint/issues/2507\nOther footer information.' + 'BREAKING CHANGE: xxxxxx\nhttps://github.com/conventional-changelog/commitlint/issues/2507\nOther footer information.', ); }); @@ -230,7 +230,7 @@ describe('combineCommitMessage', () => { footer: 'Other footer information.', }); expect(commitMessage).toBe( - 'BREAKING\nCHANGE:\nxxxxxx\nhttps://github.com/conventional-changelog/commitlint/issues/2507\nOther\nfooter\ninformation.' + 'BREAKING\nCHANGE:\nxxxxxx\nhttps://github.com/conventional-changelog/commitlint/issues/2507\nOther\nfooter\ninformation.', ); }); @@ -246,7 +246,7 @@ describe('combineCommitMessage', () => { footer: 'Other footer information.', }); expect(commitMessage).toBe( - '\nBREAKING\nCHANGE:\nxxxxxx\nhttps://github.com/conventional-changelog/commitlint/issues/2507\nOther\nfooter\ninformation.' + '\nBREAKING\nCHANGE:\nxxxxxx\nhttps://github.com/conventional-changelog/commitlint/issues/2507\nOther\nfooter\ninformation.', ); }); @@ -257,7 +257,7 @@ describe('combineCommitMessage', () => { footer: 'Other footer information.', }); expect(commitMessage).toBe( - 'https://github.com/conventional-changelog/commitlint/issues/2507\nOther footer information.' + 'https://github.com/conventional-changelog/commitlint/issues/2507\nOther footer information.', ); }); @@ -308,7 +308,7 @@ describe('FooterQuestion', () => { (lastQuestion.message as any)(answers); expect(lastQuestion?.validate?.(''.padEnd(10, 'z'), answers)).toBe( - 'footer: footer over limit 11' + 'footer: footer over limit 11', ); }); }); diff --git a/@commitlint/cz-commitlint/src/SectionFooter.ts b/@commitlint/cz-commitlint/src/SectionFooter.ts index de184cd07f..5548982e9f 100644 --- a/@commitlint/cz-commitlint/src/SectionFooter.ts +++ b/@commitlint/cz-commitlint/src/SectionFooter.ts @@ -15,7 +15,7 @@ export class FooterQuestion extends Question { name: PromptName, questionConfig: QuestionConfig, footerMaxLength?: number, - footerMinLength?: number + footerMinLength?: number, ) { super(name, questionConfig); this.footerMaxLength = footerMaxLength ?? Infinity; @@ -115,7 +115,7 @@ export function getQuestions(): Array { name, questionConfigs, footerMaxLength, - footerMinLength + footerMinLength, ); return instance.question; @@ -142,7 +142,7 @@ export function combineCommitMessage(answers: Answers): string { trim: true, indent: '', }) - : message.trim() + : message.trim(), ); } @@ -154,7 +154,7 @@ export function combineCommitMessage(answers: Answers): string { trim: true, indent: '', }) - : issues.trim() + : issues.trim(), ); } @@ -166,7 +166,7 @@ export function combineCommitMessage(answers: Answers): string { trim: true, indent: '', }) - : footer + : footer, ); } diff --git a/@commitlint/cz-commitlint/src/SectionHeader.test.ts b/@commitlint/cz-commitlint/src/SectionHeader.test.ts index 6b370b956a..6db148ab03 100644 --- a/@commitlint/cz-commitlint/src/SectionHeader.test.ts +++ b/@commitlint/cz-commitlint/src/SectionHeader.test.ts @@ -51,7 +51,7 @@ describe('getQuestionConfig', () => { expect(config).toEqual( expect.objectContaining({ multipleValueDelimiters: /\/|\\|,/g, - }) + }), ); }); @@ -66,7 +66,7 @@ describe('getQuestionConfig', () => { expect(config).toEqual( expect.objectContaining({ multipleSelectDefaultDelimiter: '/', - }) + }), ); }); @@ -148,7 +148,7 @@ describe('HeaderQuestion', () => { const lastQuestion = questions[2]; (lastQuestion.message as any)(answers); expect(lastQuestion?.validate?.(''.padEnd(10, 'z'), answers)).toBe( - 'subject: subject over limit 6' + 'subject: subject over limit 6', ); }); }); diff --git a/@commitlint/cz-commitlint/src/SectionHeader.ts b/@commitlint/cz-commitlint/src/SectionHeader.ts index c3483cc79d..507bd2b990 100644 --- a/@commitlint/cz-commitlint/src/SectionHeader.ts +++ b/@commitlint/cz-commitlint/src/SectionHeader.ts @@ -11,7 +11,7 @@ export class HeaderQuestion extends Question { name: PromptName, questionConfig: QuestionConfig, headerMaxLength?: number, - headerMinLength?: number + headerMinLength?: number, ) { super(name, questionConfig); this.headerMaxLength = headerMaxLength ?? Infinity; @@ -54,7 +54,7 @@ export function getQuestions(): Array { name, questionConfig, headerRuleQuestionConfig.maxLength, - headerRuleQuestionConfig.minLength + headerRuleQuestionConfig.minLength, ); questions.push(instance.question); } @@ -63,7 +63,7 @@ export function getQuestions(): Array { } export function getQuestionConfig( - name: RuleField + name: RuleField, ): ReturnType { const questionConfig = getRuleQuestionConfig(name); diff --git a/@commitlint/cz-commitlint/src/services/getRuleQuestionConfig.test.ts b/@commitlint/cz-commitlint/src/services/getRuleQuestionConfig.test.ts index 6518b58483..e39da56024 100644 --- a/@commitlint/cz-commitlint/src/services/getRuleQuestionConfig.test.ts +++ b/@commitlint/cz-commitlint/src/services/getRuleQuestionConfig.test.ts @@ -204,21 +204,21 @@ describe('enum list', () => { expect(enumList).toEqual([ { name: expect.stringMatching( - new RegExp(`^cli:[\\s]{${LONGEST - 4 + 4}}Test CLI$`) + new RegExp(`^cli:[\\s]{${LONGEST - 4 + 4}}Test CLI$`), ), value: 'cli', short: 'cli', }, { name: expect.stringMatching( - new RegExp(`^core:[\\s]{${LONGEST - 5 + 4}}Test CORE$`) + new RegExp(`^core:[\\s]{${LONGEST - 5 + 4}}Test CORE$`), ), value: 'core', short: 'core', }, { name: expect.stringMatching( - new RegExp(`^${longestItem}:[\\s]{${-1 + 4}}Test$`) + new RegExp(`^${longestItem}:[\\s]{${-1 + 4}}Test$`), ), value: longestItem, short: longestItem, diff --git a/@commitlint/cz-commitlint/src/services/getRuleQuestionConfig.ts b/@commitlint/cz-commitlint/src/services/getRuleQuestionConfig.ts index 8edbef8b16..f906eced15 100644 --- a/@commitlint/cz-commitlint/src/services/getRuleQuestionConfig.ts +++ b/@commitlint/cz-commitlint/src/services/getRuleQuestionConfig.ts @@ -39,7 +39,7 @@ export default function (rulePrefix: RuleField): QuestionConfig | null { if (enumDescriptions) { const enumNames = Object.keys(enumDescriptions); const longest = Math.max( - ...enumRuleList.map((enumName) => enumName.length) + ...enumRuleList.map((enumName) => enumName.length), ); // TODO emoji + title enumList = enumRuleList diff --git a/@commitlint/cz-commitlint/src/store/prompts.test.ts b/@commitlint/cz-commitlint/src/store/prompts.test.ts index e02741c9f9..8adcdec4a5 100644 --- a/@commitlint/cz-commitlint/src/store/prompts.test.ts +++ b/@commitlint/cz-commitlint/src/store/prompts.test.ts @@ -53,10 +53,10 @@ describe('setPromptConfig', () => { setPromptConfig(promptConfig); expect(getPromptMessages()['emptyWarning']).toBe( - promptConfig.messages.emptyWarning + promptConfig.messages.emptyWarning, ); expect(getPromptMessages()['lowerLimitWarning']).toBe( - initialMessages['lowerLimitWarning'] + initialMessages['lowerLimitWarning'], ); }); @@ -73,7 +73,7 @@ describe('setPromptConfig', () => { setPromptConfig(promptConfig as any); expect(getPromptMessages()['emptyWarning']).toBe( - promptConfig.messages.emptyWarning + promptConfig.messages.emptyWarning, ); expect(getPromptMessages()['min']).toBe(initialMessages['min']); }); diff --git a/@commitlint/cz-commitlint/src/store/prompts.ts b/@commitlint/cz-commitlint/src/store/prompts.ts index 2a5dd84485..14d59a955b 100644 --- a/@commitlint/cz-commitlint/src/store/prompts.ts +++ b/@commitlint/cz-commitlint/src/store/prompts.ts @@ -32,7 +32,7 @@ export function setPromptConfig(newPromptConfig: UserPromptConfig): void { !/^\/|\\|,$/.test(settings['scopeEnumSeparator']) ) { console.log( - `prompt.settings.scopeEnumSeparator must be one of ',', '\\', '/'.` + `prompt.settings.scopeEnumSeparator must be one of ',', '\\', '/'.`, ); process.exit(1); } diff --git a/@commitlint/cz-commitlint/src/store/rules.test.ts b/@commitlint/cz-commitlint/src/store/rules.test.ts index 1d12a9e851..c8c42ef2e3 100644 --- a/@commitlint/cz-commitlint/src/store/rules.test.ts +++ b/@commitlint/cz-commitlint/src/store/rules.test.ts @@ -19,7 +19,7 @@ describe('getRule', () => { expect(getRule('body', 'max-length')).toBe(rules['body-max-length']); expect(getRule('footer', 'max-line-length')).toBe( - rules['footer-max-line-length'] + rules['footer-max-line-length'], ); expect(getRule('subject', 'empty')).toBe(rules['subject-empty']); }); diff --git a/@commitlint/cz-commitlint/src/utils/leading-blank-fn.ts b/@commitlint/cz-commitlint/src/utils/leading-blank-fn.ts index e12c571276..5f52a4aa62 100644 --- a/@commitlint/cz-commitlint/src/utils/leading-blank-fn.ts +++ b/@commitlint/cz-commitlint/src/utils/leading-blank-fn.ts @@ -7,7 +7,7 @@ import {ruleIsActive, ruleIsNotApplicable} from './rules'; * @return transform function applying the leading */ export default function getLeadingBlankFn( - rule?: Rule + rule?: Rule, ): (input: string) => string { if (!rule || !ruleIsActive(rule)) { return (input: string): string => input; diff --git a/@commitlint/cz-commitlint/src/utils/rules.test.ts b/@commitlint/cz-commitlint/src/utils/rules.test.ts index 880551a531..27999e9c5b 100644 --- a/@commitlint/cz-commitlint/src/utils/rules.test.ts +++ b/@commitlint/cz-commitlint/src/utils/rules.test.ts @@ -16,7 +16,7 @@ test('ruleIsDisabled', () => { expect(ruleIsDisabled([RuleConfigSeverity.Disabled, 'always'])).toBe(true); expect(ruleIsDisabled([RuleConfigSeverity.Error] as any)).toBe(false); expect(ruleIsDisabled([RuleConfigSeverity.Error, 'always'] as any)).toBe( - false + false, ); }); @@ -41,14 +41,14 @@ test('ruleIsNotApplicable', () => { expect(ruleIsNotApplicable([RuleConfigSeverity.Error, 'never'])).toBe(true); expect(ruleIsNotApplicable([RuleConfigSeverity.Warning, 'never'])).toBe(true); expect(ruleIsNotApplicable([RuleConfigSeverity.Disabled, 'never'])).toBe( - true + true, ); expect(ruleIsNotApplicable(undefined as any)).toBe(false); expect(ruleIsNotApplicable('' as any)).toBe(false); expect(ruleIsNotApplicable([RuleConfigSeverity.Error] as any)).toBe(false); expect(ruleIsNotApplicable([RuleConfigSeverity.Error, 'always'])).toBe(false); expect(ruleIsNotApplicable([RuleConfigSeverity.Error, 'always', 100])).toBe( - false + false, ); }); diff --git a/@commitlint/cz-commitlint/src/utils/rules.ts b/@commitlint/cz-commitlint/src/utils/rules.ts index b9758e2184..d2c2e6fe4c 100644 --- a/@commitlint/cz-commitlint/src/utils/rules.ts +++ b/@commitlint/cz-commitlint/src/utils/rules.ts @@ -2,7 +2,7 @@ import {RuleConfigSeverity} from '@commitlint/types'; import {Rule} from '../types'; export function ruleIsDisabled( - rule: Rule + rule: Rule, ): rule is Readonly<[RuleConfigSeverity.Disabled]> { if (rule && Array.isArray(rule) && rule[0] === RuleConfigSeverity.Disabled) { return true; @@ -16,7 +16,7 @@ export function ruleIsDisabled( * @return if the rule definition is active */ export function ruleIsActive( - rule: T + rule: T, ): rule is Exclude> { if (rule && Array.isArray(rule)) { return rule[0] > RuleConfigSeverity.Disabled; @@ -30,7 +30,7 @@ export function ruleIsActive( * @return if the rule definition is applicable */ export function ruleIsApplicable( - rule: Rule + rule: Rule, ): rule is | Readonly<[RuleConfigSeverity, 'always']> | Readonly<[RuleConfigSeverity, 'always', unknown]> { @@ -46,7 +46,7 @@ export function ruleIsApplicable( * @return if the rule definition is applicable */ export function ruleIsNotApplicable( - rule: Rule + rule: Rule, ): rule is | Readonly<[RuleConfigSeverity, 'never']> | Readonly<[RuleConfigSeverity, 'never', unknown]> { @@ -57,7 +57,7 @@ export function ruleIsNotApplicable( } export function enumRuleIsActive( - rule: Rule + rule: Rule, ): rule is Readonly< [RuleConfigSeverity.Warning | RuleConfigSeverity.Error, 'always', string[]] > { diff --git a/@commitlint/ensure/src/case.test.ts b/@commitlint/ensure/src/case.test.ts index 532916dcec..5a800da60e 100644 --- a/@commitlint/ensure/src/case.test.ts +++ b/@commitlint/ensure/src/case.test.ts @@ -163,7 +163,7 @@ test('true for `Any_CASE_iN_back-quotes` on start-case', () => { test('true for lowercase `Any_CASE_iN_back-quotes` lowercase on lowercase', () => { const actual = ensure( 'lowercase `Any_CASE_iN_back-quotes` lowercase', - 'lowercase' + 'lowercase', ); expect(actual).toBe(true); }); @@ -171,7 +171,7 @@ test('true for lowercase `Any_CASE_iN_back-quotes` lowercase on lowercase', () = test('false for UPPERCASE `Any_CASE_iN_back-quotes` UPPERCASE on lowercase', () => { const actual = ensure( 'UPPERCASE `Any_CASE_iN_back-quotes` UPPERCASE', - 'lowercase' + 'lowercase', ); expect(actual).toBe(false); }); @@ -179,7 +179,7 @@ test('false for UPPERCASE `Any_CASE_iN_back-quotes` UPPERCASE on lowercase', () test('true for UPPERCASE `Any_CASE_iN_back-quotes` UPPERCASE on uppercase', () => { const actual = ensure( 'UPPERCASE `Any_CASE_iN_back-quotes` UPPERCASE', - 'uppercase' + 'uppercase', ); expect(actual).toBe(true); }); @@ -187,7 +187,7 @@ test('true for UPPERCASE `Any_CASE_iN_back-quotes` UPPERCASE on uppercase', () = test('false for lowercase `Any_CASE_iN_back-quotes` lowercase on uppercase', () => { const actual = ensure( 'lowercase `Any_CASE_iN_back-quotes` lowercase', - 'uppercase' + 'uppercase', ); expect(actual).toBe(false); }); @@ -200,7 +200,7 @@ test('true for fooBar`Any_CASE_iN_back-quotes`fooBar on camel-case', () => { test('false for Foo Bar`Any_CASE_iN_back-quotes` Foo Bar on camel-case', () => { const actual = ensure( 'Foo Bar`Any_CASE_iN_back-quotes` Foo Bar', - 'camel-case' + 'camel-case', ); expect(actual).toBe(false); }); @@ -208,7 +208,7 @@ test('false for Foo Bar`Any_CASE_iN_back-quotes` Foo Bar on camel-case', () => { test('true for foo-bar`Any_CASE_iN_back-quotes`foo-bar on kebab-case', () => { const actual = ensure( 'foo-bar`Any_CASE_iN_back-quotes`foo-bar', - 'kebab-case' + 'kebab-case', ); expect(actual).toBe(true); }); @@ -216,7 +216,7 @@ test('true for foo-bar`Any_CASE_iN_back-quotes`foo-bar on kebab-case', () => { test('false for Foo Bar `Any_CASE_iN_back-quotes` Foo Bar on kebab-case', () => { const actual = ensure( 'Foo Bar `Any_CASE_iN_back-quotes` Foo Bar', - 'kebab-case' + 'kebab-case', ); expect(actual).toBe(false); }); @@ -224,7 +224,7 @@ test('false for Foo Bar `Any_CASE_iN_back-quotes` Foo Bar on kebab-case', () => test('true for foo_bar`Any_CASE_iN_back-quotes`foo_bar on snake-case', () => { const actual = ensure( 'foo_bar`Any_CASE_iN_back-quotes`foo_bar', - 'snake-case' + 'snake-case', ); expect(actual).toBe(true); }); @@ -232,7 +232,7 @@ test('true for foo_bar`Any_CASE_iN_back-quotes`foo_bar on snake-case', () => { test('false for Foo Bar `Any_CASE_iN_back-quotes` Foo Bar on snake-case', () => { const actual = ensure( 'Foo Bar `Any_CASE_iN_back-quotes` Foo Bar', - 'snake-case' + 'snake-case', ); expect(actual).toBe(false); }); @@ -240,7 +240,7 @@ test('false for Foo Bar `Any_CASE_iN_back-quotes` Foo Bar on snake-case', () => test('true for PascalCase`Any_CASE_iN_back-quotes`PascalCase on pascal-case', () => { const actual = ensure( 'PascalCase`Any_CASE_iN_back-quotes`PascalCase', - 'pascal-case' + 'pascal-case', ); expect(actual).toBe(true); }); @@ -248,7 +248,7 @@ test('true for PascalCase`Any_CASE_iN_back-quotes`PascalCase on pascal-case', () test('false for Foo Bar `Any_CASE_iN_back-quotes` Foo Bar on pascal-case', () => { const actual = ensure( 'Foo Bar `Any_CASE_iN_back-quotes` Foo Bar', - 'pascal-case' + 'pascal-case', ); expect(actual).toBe(false); }); @@ -256,7 +256,7 @@ test('false for Foo Bar `Any_CASE_iN_back-quotes` Foo Bar on pascal-case', () => test('true for Foo Bar`Any_CASE_iN_back-quotes` Foo Bar on start-case', () => { const actual = ensure( 'Foo Bar `Any_CASE_iN_back-quotes`Foo Bar', - 'start-case' + 'start-case', ); expect(actual).toBe(true); }); @@ -264,7 +264,7 @@ test('true for Foo Bar`Any_CASE_iN_back-quotes` Foo Bar on start-case', () => { test('false for foo_bar`Any_CASE_iN_back-quotes`foo_bar on start-case', () => { const actual = ensure( 'foo_bar`Any_CASE_iN_back-quotes`foo_bar', - 'start-case' + 'start-case', ); expect(actual).toBe(false); }); @@ -272,7 +272,7 @@ test('false for foo_bar`Any_CASE_iN_back-quotes`foo_bar on start-case', () => { test('true for lowercase `Any_CASE_iN_back-quotes` `Any_CASE_iN_back-quotes` lowercase on lowercase', () => { const actual = ensure( 'lowercase `Any_CASE_iN_back-quotes` `Any_CASE_iN_back-quotes` lowercase', - 'lowercase' + 'lowercase', ); expect(actual).toBe(true); }); diff --git a/@commitlint/ensure/src/case.ts b/@commitlint/ensure/src/case.ts index fcd8b35827..3e0ee9c5ea 100644 --- a/@commitlint/ensure/src/case.ts +++ b/@commitlint/ensure/src/case.ts @@ -5,7 +5,7 @@ export default ensureCase; function ensureCase( raw: string = '', - target: TargetCaseType = 'lowercase' + target: TargetCaseType = 'lowercase', ): boolean { // We delete any content together with quotes because he can contains proper names (example `refactor: `Eslint` configuration`). // We need trim string because content with quotes can be at the beginning or end of a line diff --git a/@commitlint/ensure/src/max-line-length.test.ts b/@commitlint/ensure/src/max-line-length.test.ts index b852599660..d2feb18809 100644 --- a/@commitlint/ensure/src/max-line-length.test.ts +++ b/@commitlint/ensure/src/max-line-length.test.ts @@ -30,7 +30,7 @@ test('false for ab/\nab/\nab 1', () => { `ab ab ab`, - 2 + 2, ); expect(actual).toBe(true); @@ -41,7 +41,7 @@ test('true for ab/\nab/\nab 2', () => { `ab ab ab`, - 2 + 2, ); expect(actual).toBe(true); diff --git a/@commitlint/execute-rule/src/index.ts b/@commitlint/execute-rule/src/index.ts index 47029f4b89..98cfe479ee 100644 --- a/@commitlint/execute-rule/src/index.ts +++ b/@commitlint/execute-rule/src/index.ts @@ -7,7 +7,7 @@ type ExecutedRule = readonly [string, T]; export default execute; export async function execute( - rule?: Rule + rule?: Rule, ): Promise | null> { if (!Array.isArray(rule)) { return null; diff --git a/@commitlint/format/src/format.test.ts b/@commitlint/format/src/format.test.ts index eea046405e..007fd1acfa 100644 --- a/@commitlint/format/src/format.test.ts +++ b/@commitlint/format/src/format.test.ts @@ -27,7 +27,7 @@ test('returns empty summary if verbose', () => { }, { verbose: true, - } + }, ); expect(actual).toContain('0 problems, 0 warnings'); @@ -117,7 +117,7 @@ test('uses signs as configured', () => { }, ], }, - options + options, ); const actualWarning = format( @@ -134,7 +134,7 @@ test('uses signs as configured', () => { }, ], }, - options + options, ); expect(actualError).toContain('ERR'); @@ -196,11 +196,11 @@ test('format result prints help for errors', () => { }, { helpUrl: 'https://example.com', - } + }, ); expect(actual).toEqual( - expect.arrayContaining([expect.stringContaining('Get help:')]) + expect.arrayContaining([expect.stringContaining('Get help:')]), ); }); @@ -217,11 +217,11 @@ test('format result prints help for warnings', () => { }, { helpUrl: 'https://example.com', - } + }, ); expect(actual).toEqual( - expect.arrayContaining([expect.stringContaining('Get help:')]) + expect.arrayContaining([expect.stringContaining('Get help:')]), ); }); @@ -240,11 +240,11 @@ test('format result help cotains options.helpUrl', () => { }, { helpUrl, - } + }, ); expect(actual).toEqual( - expect.arrayContaining([expect.stringContaining(helpUrl)]) + expect.arrayContaining([expect.stringContaining(helpUrl)]), ); }); @@ -254,7 +254,7 @@ test('format result omits help for empty problems', () => { }); expect(actual).not.toEqual( - expect.arrayContaining([expect.stringContaining('Get help:')]) + expect.arrayContaining([expect.stringContaining('Get help:')]), ); }); @@ -271,10 +271,10 @@ test('format result should not contain `Get help` prefix if helpUrl is not provi }, { helpUrl: '', - } + }, ); expect(actual).not.toEqual( - expect.arrayContaining([expect.stringContaining('Get help:')]) + expect.arrayContaining([expect.stringContaining('Get help:')]), ); }); diff --git a/@commitlint/format/src/format.ts b/@commitlint/format/src/format.ts index e3fa2dd266..b6ea687c1d 100644 --- a/@commitlint/format/src/format.ts +++ b/@commitlint/format/src/format.ts @@ -12,7 +12,7 @@ const DEFAULT_COLORS = ['white', 'yellow', 'red'] as const; export function format( report: FormattableReport = {}, - options: FormatOptions = {} + options: FormatOptions = {}, ): string { const {results = []} = report; const fi = (result: FormattableResult & WithInput) => @@ -24,14 +24,14 @@ export function format( .map((result) => [...fi(result), ...fr(result)]) .reduce( (acc, item) => (Array.isArray(item) ? [...acc, ...item] : [...acc, item]), - [] + [], ) .join('\n'); } function formatInput( result: FormattableResult & WithInput, - options: FormatOptions = {} + options: FormatOptions = {}, ): string[] { const {color: enabled = true} = options; const {errors = [], warnings = [], input = ''} = result; @@ -54,7 +54,7 @@ function formatInput( export function formatResult( result: FormattableResult = {}, - options: FormatOptions = {} + options: FormatOptions = {}, ): string[] { const { signs = DEFAULT_SIGNS, diff --git a/@commitlint/is-ignored/package.json b/@commitlint/is-ignored/package.json index 99c5edb8a7..7a557897ff 100644 --- a/@commitlint/is-ignored/package.json +++ b/@commitlint/is-ignored/package.json @@ -38,11 +38,11 @@ "@commitlint/parse": "^17.6.7", "@commitlint/test": "^17.4.2", "@commitlint/utils": "^17.4.0", - "@types/semver": "7.3.13" + "@types/semver": "7.5.0" }, "dependencies": { "@commitlint/types": "^17.4.4", - "semver": "7.5.2" + "semver": "7.5.4" }, "gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc" } diff --git a/@commitlint/is-ignored/src/defaults.ts b/@commitlint/is-ignored/src/defaults.ts index 31d419e52b..cbbb327621 100644 --- a/@commitlint/is-ignored/src/defaults.ts +++ b/@commitlint/is-ignored/src/defaults.ts @@ -16,7 +16,7 @@ const test = (r: RegExp): ((c: string) => boolean) => r.test.bind(r); export const wildcards: Matcher[] = [ test( - /^((Merge pull request)|(Merge (.*?) into (.*?)|(Merge branch (.*?)))(?:\r?\n)*$)/m + /^((Merge pull request)|(Merge (.*?) into (.*?)|(Merge branch (.*?)))(?:\r?\n)*$)/m, ), test(/^(Merge tag (.*?))(?:\r?\n)*$/m), test(/^(R|r)evert (.*)/), diff --git a/@commitlint/is-ignored/src/is-ignored.test.ts b/@commitlint/is-ignored/src/is-ignored.test.ts index 833ab04c49..d4a359af49 100644 --- a/@commitlint/is-ignored/src/is-ignored.test.ts +++ b/@commitlint/is-ignored/src/is-ignored.test.ts @@ -30,7 +30,7 @@ const AMENDED_VERSION_MESSAGES = VERSION_MESSAGES.reduce( ...AMENDMENTS.map((amendment) => `${message}\n\n${amendment}`), ]; }, - [] + [], ); test('should return false when called without arguments', () => { @@ -66,7 +66,7 @@ test('should return true for merged PRs', () => { test('should return true for branch merges with newline characters and more characters after it', () => { expect(isIgnored("Merge branch 'ctrom-YarnBuild'\n ")).toBe(true); expect(isIgnored("Merge branch 'ctrom-YarnBuild'\r\n # some comment")).toBe( - true + true, ); }); @@ -93,13 +93,13 @@ test('should return true for tag merges with newline characters and more charact test('should return true for revert commits', () => { expect( isIgnored( - `Revert "docs: add recipe for linting of all commits in a PR (#36)"\n\nThis reverts commit 1e69d542c16c2a32acfd139e32efa07a45f19111.` - ) + `Revert "docs: add recipe for linting of all commits in a PR (#36)"\n\nThis reverts commit 1e69d542c16c2a32acfd139e32efa07a45f19111.`, + ), ).toBe(true); expect( isIgnored( - `revert "docs: add recipe for linting of all commits in a PR (#36)"\n\nThis reverts commit 1e69d542c16c2a32acfd139e32efa07a45f19111.` - ) + `revert "docs: add recipe for linting of all commits in a PR (#36)"\n\nThis reverts commit 1e69d542c16c2a32acfd139e32efa07a45f19111.`, + ), ).toBe(true); }); @@ -109,16 +109,16 @@ test('should ignore npm semver commits', () => { test('should ignore npm semver commits with chore', () => { VERSION_MESSAGES.forEach((message) => - expect(isIgnored(`chore: ${message}`)).toBe(true) + expect(isIgnored(`chore: ${message}`)).toBe(true), ); VERSION_MESSAGES.forEach((message) => - expect(isIgnored(`chore(release): ${message}`)).toBe(true) + expect(isIgnored(`chore(release): ${message}`)).toBe(true), ); }); test('should ignore npm semver commits with footers', () => { AMENDED_VERSION_MESSAGES.forEach((message) => - expect(isIgnored(message)).toBe(true) + expect(isIgnored(message)).toBe(true), ); }); @@ -132,10 +132,10 @@ test('should return true squash commits', () => { test('should return true for bitbucket merge commits', () => { expect( - isIgnored('Merged in feature/facebook-friends-sync (pull request #8)') + isIgnored('Merged in feature/facebook-friends-sync (pull request #8)'), ).toBe(true); expect( - isIgnored('Merged develop into feature/component-form-select-card') + isIgnored('Merged develop into feature/component-form-select-card'), ).toBe(true); expect(isIgnored('Automatic merge')).toBe(true); }); @@ -161,7 +161,7 @@ test('should return false for ignored message if defaults is false', () => { expect( isIgnored('Auto-merged develop into master', { defaults: false, - }) + }), ).toBe(false); }); @@ -169,7 +169,7 @@ test('should return false for ignored message if custom ignores and defaults is expect( isIgnored('Auto-merged develop into master', { defaults: false, - }) + }), ).toBe(false); }); @@ -187,7 +187,7 @@ test('should return true for custom ignores as function', () => { expect( isIgnored(ignoredString, { ignores: [(c) => c === ignoredString], - }) + }), ).toBe(true); }); diff --git a/@commitlint/is-ignored/src/is-ignored.ts b/@commitlint/is-ignored/src/is-ignored.ts index 716b45b9d0..17b588e1d1 100644 --- a/@commitlint/is-ignored/src/is-ignored.ts +++ b/@commitlint/is-ignored/src/is-ignored.ts @@ -3,13 +3,13 @@ import {IsIgnoredOptions} from '@commitlint/types'; export default function isIgnored( commit: string = '', - opts: IsIgnoredOptions = {} + opts: IsIgnoredOptions = {}, ): boolean { const ignores = typeof opts.ignores === 'undefined' ? [] : opts.ignores; if (!Array.isArray(ignores)) { throw new Error( - `ignores must be of type array, received ${ignores} of type ${typeof ignores}` + `ignores must be of type array, received ${ignores} of type ${typeof ignores}`, ); } @@ -19,7 +19,7 @@ export default function isIgnored( throw new Error( `ignores must be array of type function, received items of type: ${invalids .map((i) => typeof i) - .join(', ')}` + .join(', ')}`, ); } diff --git a/@commitlint/lint/src/lint.test.ts b/@commitlint/lint/src/lint.test.ts index ea94b0b9c4..90e6e230f1 100644 --- a/@commitlint/lint/src/lint.test.ts +++ b/@commitlint/lint/src/lint.test.ts @@ -48,7 +48,7 @@ test('negative on ignored message, disabled ignored messages and broken rule', a }, { defaultIgnores: false, - } + }, ); expect(actual.valid).toBe(false); }); @@ -62,7 +62,7 @@ test('positive on custom ignored message and broken rule', async () => { }, { ignores: [(c) => c === ignoredMessage], - } + }, ); expect(actual.valid).toBe(true); expect(actual.input).toBe(ignoredMessage); @@ -79,7 +79,7 @@ test('positive on stub message and opts', async () => { parserOpts: { headerPattern: /^(\w*)(?:\((.*)\))?-(.*)$/, }, - } + }, ); expect(actual.valid).toBe(true); }); @@ -134,7 +134,7 @@ test('throws for rule with out of range level', async () => { await expect(error).rejects.toThrow('rule type-enum must be between 0 and 2'); await expect(error).rejects.toThrow( - 'rule header-max-length must be between 0 and 2' + 'rule header-max-length must be between 0 and 2', ); }); @@ -156,7 +156,7 @@ test('throws for rule with out of range condition', async () => { await expect(error).rejects.toThrow('type-enum must be "always" or "never"'); await expect(error).rejects.toThrow( - 'header-max-length must be "always" or "never"' + 'header-max-length must be "always" or "never"', ); }); @@ -186,7 +186,7 @@ test('succeds for custom issue prefix', async () => { parserOpts: { issuePrefixes: ['REF-'], }, - } + }, ); expect(report.valid).toBe(true); @@ -202,7 +202,7 @@ test('fails for custom issue prefix', async () => { parserOpts: { issuePrefixes: ['REF-'], }, - } + }, ); expect(report.valid).toBe(false); @@ -222,7 +222,7 @@ test('fails for custom plugin rule', async () => { }, }, }, - } + }, ); expect(report.valid).toBe(false); @@ -242,7 +242,7 @@ test('passes for custom plugin rule', async () => { }, }, }, - } + }, ); expect(report.valid).toBe(true); @@ -281,7 +281,7 @@ test('returns original message with commit header, body and footer, parsing comm parserOpts: { commentChar: '#', }, - } + }, ); expect(report.input).toBe(expected); @@ -301,7 +301,7 @@ test('passes for async rule', async () => { }, }, }, - } + }, ); expect(report.valid).toBe(true); diff --git a/@commitlint/lint/src/lint.ts b/@commitlint/lint/src/lint.ts index 4c4ffd3905..5dcd651e6d 100644 --- a/@commitlint/lint/src/lint.ts +++ b/@commitlint/lint/src/lint.ts @@ -17,7 +17,7 @@ import { export default async function lint( message: string, rawRulesConfig?: QualifiedRules, - rawOpts?: LintOptions + rawOpts?: LintOptions, ): Promise { const opts = rawOpts ? rawOpts @@ -57,14 +57,14 @@ export default async function lint( } const allRules: Map> = new Map( - Object.entries(defaultRules) + Object.entries(defaultRules), ); if (opts.plugins) { Object.values(opts.plugins).forEach((plugin) => { if (plugin.rules) { Object.keys(plugin.rules).forEach((ruleKey) => - allRules.set(ruleKey, plugin.rules[ruleKey]) + allRules.set(ruleKey, plugin.rules[ruleKey]), ); } }); @@ -72,15 +72,15 @@ export default async function lint( // Find invalid rules configs const missing = Object.keys(rulesConfig).filter( - (name) => typeof allRules.get(name) !== 'function' + (name) => typeof allRules.get(name) !== 'function', ); if (missing.length > 0) { const names = [...allRules.keys()]; throw new RangeError( `Found invalid rule names: ${missing.join( - ', ' - )}. Supported rule names are: ${names.join(', ')}` + ', ', + )}. Supported rule names are: ${names.join(', ')}`, ); } @@ -89,8 +89,8 @@ export default async function lint( if (!Array.isArray(config)) { return new Error( `config for rule ${name} must be array, received ${util.inspect( - config - )} of type ${typeof config}` + config, + )} of type ${typeof config}`, ); } @@ -105,40 +105,40 @@ export default async function lint( if (typeof level !== 'number' || isNaN(level)) { return new Error( `level for rule ${name} must be number, received ${util.inspect( - level - )} of type ${typeof level}` + level, + )} of type ${typeof level}`, ); } if (config.length < 2 || config.length > 3) { return new Error( `config for rule ${name} must be 2 or 3 items long, received ${util.inspect( - config - )} of length ${config.length}` + config, + )} of length ${config.length}`, ); } if (level < 0 || level > 2) { return new RangeError( `level for rule ${name} must be between 0 and 2, received ${util.inspect( - level - )}` + level, + )}`, ); } if (typeof when !== 'string') { return new Error( `condition for rule ${name} must be string, received ${util.inspect( - when - )} of type ${typeof when}` + when, + )} of type ${typeof when}`, ); } if (when !== 'never' && when !== 'always') { return new Error( `condition for rule ${name} must be "always" or "never", received ${util.inspect( - when - )}` + when, + )}`, ); } @@ -176,14 +176,14 @@ export default async function lint( }); const results = (await Promise.all(pendingResults)).filter( - (result): result is LintRuleOutcome => result !== null + (result): result is LintRuleOutcome => result !== null, ); const errors = results.filter( - (result) => result.level === 2 && !result.valid + (result) => result.level === 2 && !result.valid, ); const warnings = results.filter( - (result) => result.level === 1 && !result.valid + (result) => result.level === 1 && !result.valid, ); const valid = errors.length === 0; diff --git a/@commitlint/load/package.json b/@commitlint/load/package.json index a59c348ec7..a209abed74 100644 --- a/@commitlint/load/package.json +++ b/@commitlint/load/package.json @@ -40,7 +40,7 @@ "@types/lodash.isplainobject": "^4.0.7", "@types/lodash.merge": "^4.6.7", "@types/lodash.uniq": "^4.5.7", - "conventional-changelog-atom": "^2.0.8", + "conventional-changelog-atom": "^3.0.0", "execa": "^5.0.0" }, "dependencies": { @@ -48,7 +48,7 @@ "@commitlint/execute-rule": "^17.4.0", "@commitlint/resolve-extends": "^17.6.7", "@commitlint/types": "^17.4.4", - "@types/node": "*", + "@types/node": "20.4.7", "chalk": "^4.1.0", "cosmiconfig": "^8.0.0", "cosmiconfig-typescript-loader": "^4.0.0", diff --git a/@commitlint/load/src/load.test.ts b/@commitlint/load/src/load.test.ts index a2ec33d1b0..0ea9bafc0d 100644 --- a/@commitlint/load/src/load.test.ts +++ b/@commitlint/load/src/load.test.ts @@ -97,7 +97,7 @@ test('plugins should be loaded from local', async () => { test: expect.any(Function), }, }, - }) + }), ); }); @@ -133,7 +133,7 @@ test('local plugins should be loaded from shareable configs', async () => { 'is-positive': expect.any(Function), }, }, - }) + }), ); }); @@ -141,7 +141,7 @@ test('uses seed with parserPreset', async () => { const cwd = await gitBootstrap('fixtures/parser-preset'); const {parserPreset: actual} = await load( {parserPreset: './conventional-changelog-custom'}, - {cwd} + {cwd}, ); expect(actual).toBeDefined(); @@ -426,11 +426,11 @@ test('resolves parser preset from conventional commits', async () => { expect(actual.parserPreset).toBeDefined(); expect(actual.parserPreset!.name).toBe( - 'conventional-changelog-conventionalcommits' + 'conventional-changelog-conventionalcommits', ); expect(typeof actual.parserPreset!.parserOpts).toBe('object'); expect((actual.parserPreset!.parserOpts as any).headerPattern).toEqual( - /^(\w*)(?:\((.*)\))?!?: (.*)$/ + /^(\w*)(?:\((.*)\))?!?: (.*)$/, ); }); @@ -442,16 +442,16 @@ test('resolves parser preset from conventional angular', async () => { expect(actual.parserPreset!.name).toBe('conventional-changelog-angular'); expect(typeof actual.parserPreset!.parserOpts).toBe('object'); expect((actual.parserPreset!.parserOpts as any).headerPattern).toEqual( - /^(\w*)(?:\((.*)\))?: (.*)$/ + /^(\w*)(?:\((.*)\))?: (.*)$/, ); }); test('recursive resolves parser preset from conventional atom', async () => { const cwd = await gitBootstrap( - 'fixtures/recursive-parser-preset-conventional-atom' + 'fixtures/recursive-parser-preset-conventional-atom', ); await npm.installModules( - path.resolve(cwd, 'first-extended', 'second-extended') + path.resolve(cwd, 'first-extended', 'second-extended'), ); const actual = await load({}, {cwd}); @@ -460,23 +460,23 @@ test('recursive resolves parser preset from conventional atom', async () => { expect(actual.parserPreset!.name).toBe('conventional-changelog-atom'); expect(typeof actual.parserPreset!.parserOpts).toBe('object'); expect((actual.parserPreset!.parserOpts as any).headerPattern).toEqual( - /^(:.*?:) (.*)$/ + /^(:.*?:) (.*)$/, ); }); test('resolves parser preset from conventional commits without factory support', async () => { const cwd = await npmBootstrap( - 'fixtures/parser-preset-conventional-without-factory' + 'fixtures/parser-preset-conventional-without-factory', ); const actual = await load({}, {cwd}); expect(actual.parserPreset).toBeDefined(); expect(actual.parserPreset!.name).toBe( - 'conventional-changelog-conventionalcommits' + 'conventional-changelog-conventionalcommits', ); expect(typeof actual.parserPreset!.parserOpts).toBe('object'); expect((actual.parserPreset!.parserOpts as any).headerPattern).toEqual( - /^(\w*)(?:\((.*)\))?!?: (.*)$/ + /^(\w*)(?:\((.*)\))?!?: (.*)$/, ); }); @@ -485,7 +485,7 @@ test('helpUrl should be loaded from the shareable config', async () => { const actual = await load({}, {cwd}); expect(actual.helpUrl).toStrictEqual( - 'https://github.com/conventional-changelog/commitlint' + 'https://github.com/conventional-changelog/commitlint', ); }); @@ -494,6 +494,6 @@ test('default helpUrl should be loaded if not provided in shareable configs', as const actual = await load({}, {cwd}); expect(actual.helpUrl).toStrictEqual( - 'https://github.com/conventional-changelog/commitlint/#what-is-commitlint' + 'https://github.com/conventional-changelog/commitlint/#what-is-commitlint', ); }); diff --git a/@commitlint/load/src/load.ts b/@commitlint/load/src/load.ts index 4c927fdc2f..7f03e6248b 100644 --- a/@commitlint/load/src/load.ts +++ b/@commitlint/load/src/load.ts @@ -19,7 +19,7 @@ import loadPlugin from './utils/load-plugin'; export default async function load( seed: UserConfig = {}, - options: LoadOptions = {} + options: LoadOptions = {}, ): Promise { const cwd = typeof options.cwd === 'undefined' ? process.cwd() : options.cwd; const loaded = await loadConfig(cwd, options.file); @@ -38,7 +38,7 @@ export default async function load( rules: {}, }, config, - seed + seed, ); // Resolve parserPreset key @@ -76,7 +76,7 @@ export default async function load( const rules = ( await Promise.all( - Object.entries(extended.rules || {}).map((entry) => executeRule(entry)) + Object.entries(extended.rules || {}).map((entry) => executeRule(entry)), ) ).reduce((registry, item) => { // type of `item` can be null, but Object.entries always returns key pair diff --git a/@commitlint/load/src/utils/load-config.ts b/@commitlint/load/src/utils/load-config.ts index f34ca1c580..c5dad119bd 100644 --- a/@commitlint/load/src/utils/load-config.ts +++ b/@commitlint/load/src/utils/load-config.ts @@ -10,7 +10,7 @@ export interface LoadConfigResult { export async function loadConfig( cwd: string, - configPath?: string + configPath?: string, ): Promise { const moduleName = 'commitlint'; const tsLoader = TypeScriptLoader(); diff --git a/@commitlint/load/src/utils/load-parser-opts.ts b/@commitlint/load/src/utils/load-parser-opts.ts index 11bcdcb119..61376d997f 100644 --- a/@commitlint/load/src/utils/load-parser-opts.ts +++ b/@commitlint/load/src/utils/load-parser-opts.ts @@ -7,10 +7,10 @@ function isObjectLike(obj: unknown): obj is Record { } function isParserOptsFunction( - obj: T + obj: T, ): obj is T & { parserOpts: ( - cb: (_: never, parserOpts: Record) => unknown + cb: (_: never, parserOpts: Record) => unknown, ) => Record | undefined; } { return typeof obj.parserOpts === 'function'; @@ -21,7 +21,7 @@ export async function loadParserOpts( | string | Awaitable | (() => Awaitable) - | undefined + | undefined, ): Promise { if (typeof pendingParser === 'function') { return loadParserOpts(pendingParser()); diff --git a/@commitlint/load/src/utils/load-plugin.test.ts b/@commitlint/load/src/utils/load-plugin.test.ts index 7c78d87f2f..c2f63aa50a 100644 --- a/@commitlint/load/src/utils/load-plugin.test.ts +++ b/@commitlint/load/src/utils/load-plugin.test.ts @@ -17,7 +17,7 @@ jest.mock( }; return {rules: {rule}}; }, - {virtual: true} + {virtual: true}, ); jest.mock( @@ -28,7 +28,7 @@ jest.mock( }; return {rules: {syncRule}}; }, - {virtual: true} + {virtual: true}, ); jest.mock( @@ -39,7 +39,7 @@ jest.mock( }; return {rules: {asyncRule}}; }, - {virtual: true} + {virtual: true}, ); test('should load a plugin when referenced by short name', () => { @@ -69,36 +69,36 @@ test('should load a plugin with an async rule', () => { test('should throw an error when a plugin has whitespace', () => { expect(() => loadPlugin({}, 'whitespace ')).toThrow( - "Whitespace found in plugin name 'whitespace '" + "Whitespace found in plugin name 'whitespace '", ); expect(() => loadPlugin({}, 'whitespace\t')).toThrow( - 'Whitespace found in plugin name' + 'Whitespace found in plugin name', ); expect(() => loadPlugin({}, 'whitespace\n')).toThrow( - 'Whitespace found in plugin name' + 'Whitespace found in plugin name', ); expect(() => loadPlugin({}, 'whitespace\r')).toThrow( - 'Whitespace found in plugin name' + 'Whitespace found in plugin name', ); }); test("should throw an error when a plugin doesn't exist", () => { expect(() => loadPlugin({}, 'nonexistentplugin')).toThrow( - 'Failed to load plugin' + 'Failed to load plugin', ); }); test('should load a scoped plugin when referenced by short name', () => { const plugins = loadPlugin({}, '@scope/example'); expect(plugins['@scope/example']).toBe( - require('@scope/commitlint-plugin-example') + require('@scope/commitlint-plugin-example'), ); }); test('should load a scoped plugin when referenced by long name', () => { const plugins = loadPlugin({}, '@scope/commitlint-plugin-example'); expect(plugins['@scope/example']).toBe( - require('@scope/commitlint-plugin-example') + require('@scope/commitlint-plugin-example'), ); }); diff --git a/@commitlint/load/src/utils/load-plugin.ts b/@commitlint/load/src/utils/load-plugin.ts index f76a19e39d..00b0f121c2 100644 --- a/@commitlint/load/src/utils/load-plugin.ts +++ b/@commitlint/load/src/utils/load-plugin.ts @@ -7,7 +7,7 @@ import {PluginRecords} from '@commitlint/types'; export default function loadPlugin( plugins: PluginRecords, pluginName: string, - debug: boolean = false + debug: boolean = false, ): PluginRecords { const longName = normalizePackageName(pluginName); const shortName = getShorthandName(longName); @@ -61,8 +61,8 @@ export default function loadPlugin( console.log( chalk.blue( - `Loaded plugin ${pluginName} (${loadedPluginAndVersion}) (from ${resolvedPath})` - ) + `Loaded plugin ${pluginName} (${loadedPluginAndVersion}) (from ${resolvedPath})`, + ), ); } diff --git a/@commitlint/load/src/utils/plugin-naming.ts b/@commitlint/load/src/utils/plugin-naming.ts index ecf42784b4..5aafe59650 100644 --- a/@commitlint/load/src/utils/plugin-naming.ts +++ b/@commitlint/load/src/utils/plugin-naming.ts @@ -38,14 +38,14 @@ export function normalizePackageName(name: string) { */ const scopedPackageShortcutRegex = new RegExp( `^(@[^/]+)(?:/(?:${prefix})?)?$`, - 'u' + 'u', ), scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, 'u'); if (scopedPackageShortcutRegex.test(normalizedName)) { normalizedName = normalizedName.replace( scopedPackageShortcutRegex, - `$1/${prefix}` + `$1/${prefix}`, ); } else if (!scopedPackageNameRegex.test(normalizedName.split('/')[1])) { /** @@ -54,7 +54,7 @@ export function normalizePackageName(name: string) { */ normalizedName = normalizedName.replace( /^@([^/]+)\/(.*)$/u, - `@$1/${prefix}-$2` + `@$1/${prefix}-$2`, ); } } else if (normalizedName.indexOf(`${prefix}-`) !== 0) { diff --git a/@commitlint/message/src/index.test.ts b/@commitlint/message/src/index.test.ts index 04c74201fa..f7379262af 100644 --- a/@commitlint/message/src/index.test.ts +++ b/@commitlint/message/src/index.test.ts @@ -10,6 +10,6 @@ test('should return an empty string for empty input array', () => { test('should filter falsy values', () => { expect(message([null, 'some', undefined, 'message', null])).toBe( - 'some message' + 'some message', ); }); diff --git a/@commitlint/parse/package.json b/@commitlint/parse/package.json index 1e384eb956..5b62d4fbeb 100644 --- a/@commitlint/parse/package.json +++ b/@commitlint/parse/package.json @@ -40,8 +40,8 @@ }, "dependencies": { "@commitlint/types": "^17.4.4", - "conventional-changelog-angular": "^5.0.11", - "conventional-commits-parser": "^3.2.2" + "conventional-changelog-angular": "^6.0.0", + "conventional-commits-parser": "^4.0.0" }, "gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc" } diff --git a/@commitlint/parse/src/index.ts b/@commitlint/parse/src/index.ts index 52b3ac17a8..506e14f33c 100644 --- a/@commitlint/parse/src/index.ts +++ b/@commitlint/parse/src/index.ts @@ -6,7 +6,7 @@ const defaultChangelogOpts = require('conventional-changelog-angular'); export async function parse( message: string, parser: Parser = sync, - parserOpts?: ParserOptions + parserOpts?: ParserOptions, ): Promise { const defaultOpts = (await defaultChangelogOpts).parserOpts; const opts = { diff --git a/@commitlint/prompt/src/input.test.ts b/@commitlint/prompt/src/input.test.ts index cde2a5efb2..df951b5708 100644 --- a/@commitlint/prompt/src/input.test.ts +++ b/@commitlint/prompt/src/input.test.ts @@ -10,7 +10,7 @@ jest.mock( }, { virtual: true, - } + }, ); test('should work with all fields filled', async () => { @@ -56,7 +56,7 @@ test('should fail without type', async () => { expect(message).toEqual(''); expect(console.error).toHaveBeenCalledTimes(1); expect(console.error).toHaveBeenLastCalledWith( - new Error(`⚠ ${chalk.bold('type')} may not be empty.`) + new Error(`⚠ ${chalk.bold('type')} may not be empty.`), ); spy.mockRestore(); }); diff --git a/@commitlint/prompt/src/input.ts b/@commitlint/prompt/src/input.ts index 702c04608f..a0c3cd4bc6 100644 --- a/@commitlint/prompt/src/input.ts +++ b/@commitlint/prompt/src/input.ts @@ -21,7 +21,7 @@ export async function input(prompter: PromptModule): Promise { const headerParts = ['type', 'scope', 'subject']; const headerLengthRule = getRules('header', rules).find( - getHasName('max-length') + getHasName('max-length'), ); const maxLength = getMaxLength(headerLengthRule); diff --git a/@commitlint/prompt/src/inquirer/InputCustomPrompt.ts b/@commitlint/prompt/src/inquirer/InputCustomPrompt.ts index 7ad5700d81..ca65f8e2df 100644 --- a/@commitlint/prompt/src/inquirer/InputCustomPrompt.ts +++ b/@commitlint/prompt/src/inquirer/InputCustomPrompt.ts @@ -16,7 +16,7 @@ interface KeyDescriptor { } export default class InputCustomPrompt< - TQuestion extends InputCustomOptions = InputCustomOptions + TQuestion extends InputCustomOptions = InputCustomOptions, > extends InputPrompt { private lineSubscription: Subscription; private readonly tabCompletion: string[]; @@ -24,7 +24,7 @@ export default class InputCustomPrompt< constructor( question: TQuestion, readLine: ReadlineInterface, - answers: Answers + answers: Answers, ) { super(question, readLine, answers); @@ -38,7 +38,7 @@ export default class InputCustomPrompt< const events = observe(this.rl); this.lineSubscription = events.keypress.subscribe( - this.onKeyPress2.bind(this) + this.onKeyPress2.bind(this), ); this.tabCompletion = (this.opt.tabCompletion || []) .map((item) => item.value) diff --git a/@commitlint/prompt/src/library/get-forced-case-fn.ts b/@commitlint/prompt/src/library/get-forced-case-fn.ts index 2fb39c607c..23ffdd0a39 100644 --- a/@commitlint/prompt/src/library/get-forced-case-fn.ts +++ b/@commitlint/prompt/src/library/get-forced-case-fn.ts @@ -9,7 +9,7 @@ import type {TargetCaseType} from '@commitlint/types'; * @return transform function applying the enforced case */ export default function getForcedCaseFn( - rule?: RuleEntry + rule?: RuleEntry, ): (input: string) => string { const noop = (input: string) => input; diff --git a/@commitlint/prompt/src/library/get-forced-leading-fn.ts b/@commitlint/prompt/src/library/get-forced-leading-fn.ts index 8a37906609..7356b2ce37 100644 --- a/@commitlint/prompt/src/library/get-forced-leading-fn.ts +++ b/@commitlint/prompt/src/library/get-forced-leading-fn.ts @@ -7,7 +7,7 @@ import {ruleIsActive, ruleIsNotApplicable} from './utils'; * @return transform function applying the leading */ export default function getForcedLeadingFn( - rule?: RuleEntry + rule?: RuleEntry, ): (input: string) => string { if (!rule || !ruleIsActive(rule)) { return (input: string): string => input; diff --git a/@commitlint/prompt/src/library/get-prompt.ts b/@commitlint/prompt/src/library/get-prompt.ts index abaf4ce82b..ecb33798e4 100644 --- a/@commitlint/prompt/src/library/get-prompt.ts +++ b/@commitlint/prompt/src/library/get-prompt.ts @@ -28,7 +28,7 @@ const EOL = '\n'; export default function getPrompt( type: ResultPart, rules: RuleEntry[] = [], - settings: InputSetting = {} + settings: InputSetting = {}, ): InputCustomOptions | null { const emptyRule = rules.filter(getHasName('empty')).find(ruleIsActive); @@ -42,7 +42,7 @@ export default function getPrompt( const forceCaseFn = getForcedCaseFn(rules.find(getHasName('case'))); const forceLeadingBlankFn = getForcedLeadingFn( - rules.find(getHasName('leading-blank')) + rules.find(getHasName('leading-blank')), ); const maxLengthRule = rules.find(getHasName('max-length')); diff --git a/@commitlint/prompt/src/library/meta.ts b/@commitlint/prompt/src/library/meta.ts index 61c9a412eb..dd0f294d49 100644 --- a/@commitlint/prompt/src/library/meta.ts +++ b/@commitlint/prompt/src/library/meta.ts @@ -13,6 +13,6 @@ export default function meta(settings: Record): string { const [name, value] = item; return typeof value === 'boolean' ? `[${name}]` : `[${name}=${value}]`; }) - .join(' ') + .join(' '), ); } diff --git a/@commitlint/prompt/src/library/utils.test.ts b/@commitlint/prompt/src/library/utils.test.ts index 3d69313456..10ae36b10e 100644 --- a/@commitlint/prompt/src/library/utils.test.ts +++ b/@commitlint/prompt/src/library/utils.test.ts @@ -44,29 +44,29 @@ test('getRuleName', () => { test('ruleIsActive', () => { expect(ruleIsActive(['', [RuleConfigSeverity.Error, 'always', 100]])).toBe( - true + true, ); expect(ruleIsActive(['', [RuleConfigSeverity.Warning, 'never', 100]])).toBe( - true + true, ); expect(ruleIsActive(['', [RuleConfigSeverity.Disabled, 'always', 100]])).toBe( - false + false, ); expect(ruleIsActive(['', [RuleConfigSeverity.Error]] as any)).toBe(true); }); test('getMaxLength', () => { expect(getMaxLength(['', [RuleConfigSeverity.Error, 'always', 100]])).toBe( - 100 + 100, ); expect(getMaxLength(['', [RuleConfigSeverity.Warning, 'never', 100]])).toBe( - Infinity + Infinity, ); expect(getMaxLength(['', [RuleConfigSeverity.Disabled, 'always', 100]])).toBe( - Infinity + Infinity, ); expect(getMaxLength(['', [RuleConfigSeverity.Error, 100]] as any)).toBe( - Infinity + Infinity, ); const rules: any = { diff --git a/@commitlint/prompt/src/library/utils.ts b/@commitlint/prompt/src/library/utils.ts index 089bd1b800..bff355329a 100644 --- a/@commitlint/prompt/src/library/utils.ts +++ b/@commitlint/prompt/src/library/utils.ts @@ -27,7 +27,7 @@ export function getRulePrefix(id: string): string | null { */ export function getHasName(name: string) { return ( - rule: RuleEntry + rule: RuleEntry, ): rule is Exclude => getRuleName(rule[0]) === name; } @@ -37,7 +37,7 @@ export function getHasName(name: string) { * @return if the rule definition is active */ export function ruleIsActive( - rule: T + rule: T, ): rule is Exclude]> { const [, value] = rule; if (value && Array.isArray(value)) { @@ -52,7 +52,7 @@ export function ruleIsActive( * @return if the rule definition is applicable */ export function ruleIsApplicable( - rule: RuleEntry + rule: RuleEntry, ): rule is | [string, Readonly<[RuleConfigSeverity, 'always']>] | [string, Readonly<[RuleConfigSeverity, 'always', unknown]>] { @@ -69,7 +69,7 @@ export function ruleIsApplicable( * @return if the rule definition is applicable */ export function ruleIsNotApplicable( - rule: RuleEntry + rule: RuleEntry, ): rule is | [string, Readonly<[RuleConfigSeverity, 'never']>] | [string, Readonly<[RuleConfigSeverity, 'never', unknown]>] { @@ -81,12 +81,12 @@ export function ruleIsNotApplicable( } export function enumRuleIsActive( - rule: RuleEntry + rule: RuleEntry, ): rule is [ string, Readonly< [RuleConfigSeverity.Warning | RuleConfigSeverity.Error, 'always', string[]] - > + >, ] { return ( ruleIsActive(rule) && @@ -104,7 +104,7 @@ export function enumRuleIsActive( */ export function getRules(prefix: string, rules: QualifiedRules): RuleEntry[] { return Object.entries(rules).filter( - (rule): rule is RuleEntry => getRulePrefix(rule[0]) === prefix + (rule): rule is RuleEntry => getRulePrefix(rule[0]) === prefix, ); } diff --git a/@commitlint/read/src/get-edit-commit.ts b/@commitlint/read/src/get-edit-commit.ts index 81041db926..246f6e3d74 100644 --- a/@commitlint/read/src/get-edit-commit.ts +++ b/@commitlint/read/src/get-edit-commit.ts @@ -5,7 +5,7 @@ import {getEditFilePath} from './get-edit-file-path'; // Get recently edited commit message export async function getEditCommit( cwd?: string, - edit?: boolean | string + edit?: boolean | string, ): Promise { const top = await toplevel(cwd); diff --git a/@commitlint/read/src/get-edit-file-path.ts b/@commitlint/read/src/get-edit-file-path.ts index d90ac6b7b3..3e3836ea41 100644 --- a/@commitlint/read/src/get-edit-file-path.ts +++ b/@commitlint/read/src/get-edit-file-path.ts @@ -5,7 +5,7 @@ import fs from 'fs-extra'; // Get path to recently edited commit message file export async function getEditFilePath( top: string, - edit?: boolean | string + edit?: boolean | string, ): Promise { if (typeof edit === 'string') { return path.resolve(top, edit); diff --git a/@commitlint/read/src/get-history-commits.ts b/@commitlint/read/src/get-history-commits.ts index 21616b466f..31189c19d3 100644 --- a/@commitlint/read/src/get-history-commits.ts +++ b/@commitlint/read/src/get-history-commits.ts @@ -4,7 +4,7 @@ import {streamToPromise} from './stream-to-promise'; // Get commit messages from history export async function getHistoryCommits( options: gitRawCommits.GitOptions, - opts: {cwd?: string} = {} + opts: {cwd?: string} = {}, ): Promise { return streamToPromise(gitRawCommits(options, {cwd: opts.cwd})); } diff --git a/@commitlint/read/src/read.ts b/@commitlint/read/src/read.ts index 5985bf4463..0beb1ed06f 100644 --- a/@commitlint/read/src/read.ts +++ b/@commitlint/read/src/read.ts @@ -13,7 +13,7 @@ interface GetCommitMessageOptions { // Get commit messages export default async function getCommitMessages( - settings: GetCommitMessageOptions + settings: GetCommitMessageOptions, ): Promise { const {cwd, from, to, edit, gitLogArgs} = settings; diff --git a/@commitlint/read/src/stream-to-promise.ts b/@commitlint/read/src/stream-to-promise.ts index afa8c63446..4c076ec8f9 100644 --- a/@commitlint/read/src/stream-to-promise.ts +++ b/@commitlint/read/src/stream-to-promise.ts @@ -6,6 +6,6 @@ export function streamToPromise(stream: Readable): Promise { stream .on('data', (chunk) => data.push(chunk.toString('utf-8'))) .on('error', reject) - .on('end', () => resolve(data)) + .on('end', () => resolve(data)), ); } diff --git a/@commitlint/resolve-extends/src/index.test.ts b/@commitlint/resolve-extends/src/index.test.ts index 3e553ca165..e5ece04f85 100644 --- a/@commitlint/resolve-extends/src/index.test.ts +++ b/@commitlint/resolve-extends/src/index.test.ts @@ -26,7 +26,7 @@ test('falls back to global install', async () => { test('fails for missing extends', async () => { expect(() => resolveExtends({extends: ['@commitlint/foo-bar']})).toThrow( - /Cannot find module "@commitlint\/foo-bar" from/ + /Cannot find module "@commitlint\/foo-bar" from/, ); }); diff --git a/@commitlint/resolve-extends/src/index.ts b/@commitlint/resolve-extends/src/index.ts index 8f1c9b6770..873d63d71d 100644 --- a/@commitlint/resolve-extends/src/index.ts +++ b/@commitlint/resolve-extends/src/index.ts @@ -19,7 +19,7 @@ export interface ResolveExtendsContext { export default function resolveExtends( config: UserConfig = {}, - context: ResolveExtendsContext = {} + context: ResolveExtendsContext = {}, ): UserConfig { const {extends: e} = config; const extended = loadExtends(config, context); @@ -35,13 +35,13 @@ export default function resolveExtends( return srcValue; } }), - e ? {extends: e} : {} + e ? {extends: e} : {}, ); } function loadExtends( config: UserConfig = {}, - context: ResolveExtendsContext = {} + context: ResolveExtendsContext = {}, ): UserConfig[] { const {extends: e} = config; const ext = e ? (Array.isArray(e) ? e : [e]) : []; @@ -93,7 +93,7 @@ function getId(raw: string = '', prefix: string = ''): string { function resolveConfig( raw: string, - context: ResolveExtendsContext = {} + context: ResolveExtendsContext = {}, ): string { const resolve = context.resolve || resolveId; const id = getId(raw, context.prefix); @@ -104,7 +104,7 @@ function resolveConfig( const legacy = getId(raw, 'conventional-changelog-lint-config'); const resolved = resolve(legacy, context); console.warn( - `Resolving ${raw} to legacy config ${legacy}. To silence this warning raise an issue at 'npm repo ${legacy}' to rename to ${id}.` + `Resolving ${raw} to legacy config ${legacy}. To silence this warning raise an issue at 'npm repo ${legacy}' to rename to ${id}.`, ); return resolved; } @@ -112,7 +112,7 @@ function resolveConfig( function resolveId( id: string, - context: {cwd?: string; resolveGlobal?: (id: string) => string | void} = {} + context: {cwd?: string; resolveGlobal?: (id: string) => string | void} = {}, ): string { const cwd = context.cwd || process.cwd(); const localPath = resolveFromSilent(cwd, id); diff --git a/@commitlint/rules/package.json b/@commitlint/rules/package.json index 4672be3131..4b592887ed 100644 --- a/@commitlint/rules/package.json +++ b/@commitlint/rules/package.json @@ -38,7 +38,7 @@ "@commitlint/parse": "^17.6.7", "@commitlint/test": "^17.4.2", "@commitlint/utils": "^17.4.0", - "conventional-changelog-angular": "5.0.13", + "conventional-changelog-angular": "6.0.0", "glob": "^8.0.3" }, "dependencies": { diff --git a/@commitlint/rules/src/body-case.ts b/@commitlint/rules/src/body-case.ts index 6c0291c22d..b840d8cfee 100644 --- a/@commitlint/rules/src/body-case.ts +++ b/@commitlint/rules/src/body-case.ts @@ -7,7 +7,7 @@ const negated = (when?: string) => when === 'never'; export const bodyCase: SyncRule = ( parsed, when = 'always', - value = [] + value = [], ) => { const {body} = parsed; diff --git a/@commitlint/rules/src/body-full-stop.ts b/@commitlint/rules/src/body-full-stop.ts index 61d79ec7c8..f0607f6e7c 100644 --- a/@commitlint/rules/src/body-full-stop.ts +++ b/@commitlint/rules/src/body-full-stop.ts @@ -4,7 +4,7 @@ import {SyncRule} from '@commitlint/types'; export const bodyFullStop: SyncRule = ( parsed, when = 'always', - value = '.' + value = '.', ) => { const input = parsed.body; diff --git a/@commitlint/rules/src/body-max-length.ts b/@commitlint/rules/src/body-max-length.ts index 9121129056..632f254869 100644 --- a/@commitlint/rules/src/body-max-length.ts +++ b/@commitlint/rules/src/body-max-length.ts @@ -4,7 +4,7 @@ import {SyncRule} from '@commitlint/types'; export const bodyMaxLength: SyncRule = ( parsed, _when = undefined, - value = 0 + value = 0, ) => { const input = parsed.body; diff --git a/@commitlint/rules/src/body-max-line-length.ts b/@commitlint/rules/src/body-max-line-length.ts index 5e937ef7e9..35e53b98ff 100644 --- a/@commitlint/rules/src/body-max-line-length.ts +++ b/@commitlint/rules/src/body-max-line-length.ts @@ -4,7 +4,7 @@ import {SyncRule} from '@commitlint/types'; export const bodyMaxLineLength: SyncRule = ( parsed, _when = undefined, - value = 0 + value = 0, ) => { const input = parsed.body; diff --git a/@commitlint/rules/src/body-min-length.ts b/@commitlint/rules/src/body-min-length.ts index f769e1a4a9..aec4612499 100644 --- a/@commitlint/rules/src/body-min-length.ts +++ b/@commitlint/rules/src/body-min-length.ts @@ -4,7 +4,7 @@ import {SyncRule} from '@commitlint/types'; export const bodyMinLength: SyncRule = ( parsed, _when = undefined, - value = 0 + value = 0, ) => { if (!parsed.body) { return [true]; diff --git a/@commitlint/rules/src/footer-leading-blank.test.ts b/@commitlint/rules/src/footer-leading-blank.test.ts index dcfd0430ba..1b6ee82adf 100644 --- a/@commitlint/rules/src/footer-leading-blank.test.ts +++ b/@commitlint/rules/src/footer-leading-blank.test.ts @@ -165,7 +165,7 @@ test('with double blank line before footer and double line in body should succee test('with body containing comments should succeed for "always"', async () => { const [actual] = footerLeadingBlank( await parsed.withBodyWithComment, - 'always' + 'always', ); const expected = true; expect(actual).toEqual(expected); diff --git a/@commitlint/rules/src/footer-max-length.ts b/@commitlint/rules/src/footer-max-length.ts index 43520ae546..88e9d255ca 100644 --- a/@commitlint/rules/src/footer-max-length.ts +++ b/@commitlint/rules/src/footer-max-length.ts @@ -4,7 +4,7 @@ import {SyncRule} from '@commitlint/types'; export const footerMaxLength: SyncRule = ( parsed, _when = undefined, - value = 0 + value = 0, ) => { const input = parsed.footer; diff --git a/@commitlint/rules/src/footer-max-line-length.ts b/@commitlint/rules/src/footer-max-line-length.ts index 34aea097dd..338e343831 100644 --- a/@commitlint/rules/src/footer-max-line-length.ts +++ b/@commitlint/rules/src/footer-max-line-length.ts @@ -4,7 +4,7 @@ import {SyncRule} from '@commitlint/types'; export const footerMaxLineLength: SyncRule = ( parsed, _when = undefined, - value = 0 + value = 0, ) => { const input = parsed.footer; diff --git a/@commitlint/rules/src/footer-min-length.ts b/@commitlint/rules/src/footer-min-length.ts index 9959cb788c..f4420b2f52 100644 --- a/@commitlint/rules/src/footer-min-length.ts +++ b/@commitlint/rules/src/footer-min-length.ts @@ -4,7 +4,7 @@ import {SyncRule} from '@commitlint/types'; export const footerMinLength: SyncRule = ( parsed, _when = undefined, - value = 0 + value = 0, ) => { if (!parsed.footer) { return [true]; diff --git a/@commitlint/rules/src/header-case.test.ts b/@commitlint/rules/src/header-case.test.ts index 49fcde9dbb..824d107a5e 100644 --- a/@commitlint/rules/src/header-case.test.ts +++ b/@commitlint/rules/src/header-case.test.ts @@ -227,7 +227,7 @@ test('should use expected message with "always"', async () => { const [, message] = headerCase( await parsed.uppercase, 'always', - 'lower-case' + 'lower-case', ); expect(message).toContain('must be lower-case'); }); diff --git a/@commitlint/rules/src/header-case.ts b/@commitlint/rules/src/header-case.ts index cb907c9e40..73d53c953a 100644 --- a/@commitlint/rules/src/header-case.ts +++ b/@commitlint/rules/src/header-case.ts @@ -7,7 +7,7 @@ const negated = (when?: string) => when === 'never'; export const headerCase: SyncRule = ( parsed, when = 'always', - value = [] + value = [], ) => { const {header} = parsed; diff --git a/@commitlint/rules/src/header-full-stop.ts b/@commitlint/rules/src/header-full-stop.ts index 3b2880a9c9..052ce6ccd2 100644 --- a/@commitlint/rules/src/header-full-stop.ts +++ b/@commitlint/rules/src/header-full-stop.ts @@ -4,7 +4,7 @@ import {SyncRule} from '@commitlint/types'; export const headerFullStop: SyncRule = ( parsed, when = 'always', - value = '.' + value = '.', ) => { const {header} = parsed; const negated = when === 'never'; diff --git a/@commitlint/rules/src/header-max-length.ts b/@commitlint/rules/src/header-max-length.ts index 64855e6615..dbb4744c9b 100644 --- a/@commitlint/rules/src/header-max-length.ts +++ b/@commitlint/rules/src/header-max-length.ts @@ -4,7 +4,7 @@ import {SyncRule} from '@commitlint/types'; export const headerMaxLength: SyncRule = ( parsed, _when = undefined, - value = 0 + value = 0, ) => { return [ maxLength(parsed.header, value), diff --git a/@commitlint/rules/src/header-min-length.ts b/@commitlint/rules/src/header-min-length.ts index cc84ef56e7..3a71d3add7 100644 --- a/@commitlint/rules/src/header-min-length.ts +++ b/@commitlint/rules/src/header-min-length.ts @@ -4,7 +4,7 @@ import {SyncRule} from '@commitlint/types'; export const headerMinLength: SyncRule = ( parsed, _when = undefined, - value = 0 + value = 0, ) => { return [ minLength(parsed.header, value), diff --git a/@commitlint/rules/src/index.test.ts b/@commitlint/rules/src/index.test.ts index e31802ebd8..09f6dad0c0 100644 --- a/@commitlint/rules/src/index.test.ts +++ b/@commitlint/rules/src/index.test.ts @@ -17,7 +17,7 @@ test('rules export functions', () => { test('all rules are present in documentation', () => { const file = fs.readFileSync( path.join(__dirname, '../../../docs/reference-rules.md'), - 'utf-8' + 'utf-8', ); const results = file .split(/(\n|\r)/) diff --git a/@commitlint/rules/src/scope-case.ts b/@commitlint/rules/src/scope-case.ts index 9bac0d3db2..f5177e631e 100644 --- a/@commitlint/rules/src/scope-case.ts +++ b/@commitlint/rules/src/scope-case.ts @@ -7,7 +7,7 @@ const negated = (when?: string) => when === 'never'; export const scopeCase: SyncRule = ( parsed, when = 'always', - value = [] + value = [], ) => { const {scope} = parsed; @@ -32,7 +32,7 @@ export const scopeCase: SyncRule = ( const result = checks.some((check) => { const r = scopeSegments.every( - (segment) => delimiters.test(segment) || ensureCase(segment, check.case) + (segment) => delimiters.test(segment) || ensureCase(segment, check.case), ); return negated(check.when) ? !r : r; diff --git a/@commitlint/rules/src/scope-enum.ts b/@commitlint/rules/src/scope-enum.ts index e368df5a6a..9fc36a9726 100644 --- a/@commitlint/rules/src/scope-enum.ts +++ b/@commitlint/rules/src/scope-enum.ts @@ -5,7 +5,7 @@ import {SyncRule} from '@commitlint/types'; export const scopeEnum: SyncRule = ( parsed, when = 'always', - value = [] + value = [], ) => { if (!parsed.scope) { return [true, '']; diff --git a/@commitlint/rules/src/scope-max-length.ts b/@commitlint/rules/src/scope-max-length.ts index 917d548f91..de0174273e 100644 --- a/@commitlint/rules/src/scope-max-length.ts +++ b/@commitlint/rules/src/scope-max-length.ts @@ -4,7 +4,7 @@ import {SyncRule} from '@commitlint/types'; export const scopeMaxLength: SyncRule = ( parsed, _when = undefined, - value = 0 + value = 0, ) => { const input = parsed.scope; diff --git a/@commitlint/rules/src/scope-min-length.ts b/@commitlint/rules/src/scope-min-length.ts index 55a69da3e9..bcbac327ef 100644 --- a/@commitlint/rules/src/scope-min-length.ts +++ b/@commitlint/rules/src/scope-min-length.ts @@ -4,7 +4,7 @@ import {SyncRule} from '@commitlint/types'; export const scopeMinLength: SyncRule = ( parsed, _when = undefined, - value = 0 + value = 0, ) => { const input = parsed.scope; if (!input) { diff --git a/@commitlint/rules/src/signed-off-by.test.ts b/@commitlint/rules/src/signed-off-by.test.ts index 29fc665501..d5f1d9ebb6 100644 --- a/@commitlint/rules/src/signed-off-by.test.ts +++ b/@commitlint/rules/src/signed-off-by.test.ts @@ -55,7 +55,7 @@ test('without against "always signed-off-by" should fail', async () => { const [actual] = signedOffBy( await parsed.without, 'always', - 'Signed-off-by:' + 'Signed-off-by:', ); const expected = false; expect(actual).toEqual(expected); @@ -71,7 +71,7 @@ test('trailing comments should be ignored', async () => { const [actual] = signedOffBy( await parsed.withSignoffAndComments, 'always', - 'Signed-off-by:' + 'Signed-off-by:', ); const expected = true; expect(actual).toEqual(expected); @@ -81,7 +81,7 @@ test('inSubject against "always signed-off-by" should fail', async () => { const [actual] = signedOffBy( await parsed.inSubject, 'always', - 'Signed-off-by:' + 'Signed-off-by:', ); const expected = false; expect(actual).toEqual(expected); @@ -91,7 +91,7 @@ test('inSubject against "never signed-off-by" should succeed', async () => { const [actual] = signedOffBy( await parsed.inSubject, 'never', - 'Signed-off-by:' + 'Signed-off-by:', ); const expected = true; expect(actual).toEqual(expected); diff --git a/@commitlint/rules/src/signed-off-by.ts b/@commitlint/rules/src/signed-off-by.ts index 674a206197..db7ed341a6 100644 --- a/@commitlint/rules/src/signed-off-by.ts +++ b/@commitlint/rules/src/signed-off-by.ts @@ -5,14 +5,14 @@ import {SyncRule} from '@commitlint/types'; export const signedOffBy: SyncRule = ( parsed, when = 'always', - value = '' + value = '', ) => { const lines = toLines(parsed.raw).filter( (ln) => // skip comments !ln.startsWith('#') && // ignore empty lines - Boolean(ln) + Boolean(ln), ); const last = lines[lines.length - 1]; diff --git a/@commitlint/rules/src/subject-case.test.ts b/@commitlint/rules/src/subject-case.test.ts index d7054f3a0f..224f9d8644 100644 --- a/@commitlint/rules/src/subject-case.test.ts +++ b/@commitlint/rules/src/subject-case.test.ts @@ -87,7 +87,7 @@ test('with lowercase unicode subject should fail for "always uppercase"', async const [actual] = subjectCase( await parsed.lowercase_unicode, 'always', - 'upper-case' + 'upper-case', ); const expected = false; expect(actual).toEqual(expected); @@ -151,7 +151,7 @@ test('with uppercase unicode subject should fail for "always lowercase"', async const [actual] = subjectCase( await parsed.uppercase_unicode, 'always', - 'lower-case' + 'lower-case', ); const expected = false; expect(actual).toEqual(expected); @@ -197,7 +197,7 @@ test('with camelcase unicode subject should fail for "always sentencecase"', asy const [actual] = subjectCase( await parsed.camelcase_unicode, 'always', - 'sentence-case' + 'sentence-case', ); const expected = false; expect(actual).toEqual(expected); @@ -207,7 +207,7 @@ test('with kebabcase unicode subject should fail for "always camelcase"', async const [actual] = subjectCase( await parsed.kebabcase_unicode, 'always', - 'camel-case' + 'camel-case', ); const expected = false; expect(actual).toEqual(expected); @@ -229,7 +229,7 @@ test('with pascalcase subject should succeed for "always pascalcase"', async () const [actual] = subjectCase( await parsed.pascalcase, 'always', - 'pascal-case' + 'pascal-case', ); const expected = true; expect(actual).toEqual(expected); @@ -257,7 +257,7 @@ test('with pascalcase unicode subject should fail for "always uppercase"', async const [actual] = subjectCase( await parsed.pascalcase_unicode, 'always', - 'upper-case' + 'upper-case', ); const expected = false; expect(actual).toEqual(expected); @@ -303,7 +303,7 @@ test('with snakecase unicode subject should fail for "never lowercase"', async ( const [actual] = subjectCase( await parsed.snakecase_unicode, 'never', - 'lower-case' + 'lower-case', ); const expected = false; expect(actual).toEqual(expected); @@ -355,7 +355,7 @@ test('with startcase unicode subject should fail for "always pascalcase"', async const [actual] = subjectCase( await parsed.startcase_unicode, 'always', - 'pascal-case' + 'pascal-case', ); const expected = false; expect(actual).toEqual(expected); @@ -365,7 +365,7 @@ test('with sentencecase subject should succeed for "always sentence-case"', asyn const [actual] = subjectCase( await parsed.sentencecase, 'always', - 'sentence-case' + 'sentence-case', ); const expected = true; expect(actual).toEqual(expected); @@ -375,7 +375,7 @@ test('with sentencecase subject should fail for "never sentencecase"', async () const [actual] = subjectCase( await parsed.sentencecase, 'never', - 'sentence-case' + 'sentence-case', ); const expected = false; expect(actual).toEqual(expected); @@ -385,7 +385,7 @@ test('with sentencecase subject should fail for "always pascalcase"', async () = const [actual] = subjectCase( await parsed.sentencecase, 'always', - 'pascal-case' + 'pascal-case', ); const expected = false; expect(actual).toEqual(expected); @@ -395,7 +395,7 @@ test('with sentencecase subject should succeed for "never camelcase"', async () const [actual] = subjectCase( await parsed.sentencecase, 'never', - 'camel-case' + 'camel-case', ); const expected = true; expect(actual).toEqual(expected); @@ -405,7 +405,7 @@ test('with sentencecase unicode subject should fail for "always camelcase"', asy const [actual] = subjectCase( await parsed.sentencecase_unicode, 'always', - 'camel-case' + 'camel-case', ); const expected = false; expect(actual).toEqual(expected); @@ -415,7 +415,7 @@ test('should use expected message with "always"', async () => { const [, message] = subjectCase( await parsed.uppercase, 'always', - 'lower-case' + 'lower-case', ); expect(message).toContain('must be lower-case'); }); @@ -424,7 +424,7 @@ test('should use expected message with "never"', async () => { const [, message] = subjectCase( await parsed.uppercase, 'never', - 'upper-case' + 'upper-case', ); expect(message).toContain('must not be upper-case'); }); diff --git a/@commitlint/rules/src/subject-case.ts b/@commitlint/rules/src/subject-case.ts index 13e7de850a..3c3d3fe682 100644 --- a/@commitlint/rules/src/subject-case.ts +++ b/@commitlint/rules/src/subject-case.ts @@ -24,7 +24,7 @@ const negated = (when?: string) => when === 'never'; export const subjectCase: SyncRule = ( parsed, when = 'always', - value = [] + value = [], ) => { const {subject} = parsed; diff --git a/@commitlint/rules/src/subject-full-stop.test.ts b/@commitlint/rules/src/subject-full-stop.test.ts index 734b4644ad..0f17fa4cf2 100644 --- a/@commitlint/rules/src/subject-full-stop.test.ts +++ b/@commitlint/rules/src/subject-full-stop.test.ts @@ -6,7 +6,7 @@ const messages = { with: `test: subject.\n`, without: `test: subject\n`, standardScopeWith: `type(scope): subject.\n`, - nonStandardScopeWith: "type.scope: subject.\n" + nonStandardScopeWith: 'type.scope: subject.\n', }; const parsed = { @@ -54,13 +54,21 @@ test('without against "never ." should succeed', async () => { }); test('commit message title with standard scope and full-stop against "never ." should fail', async () => { - const [actual] = subjectFullStop(await parsed.standardScopeWith, 'never', '.'); + const [actual] = subjectFullStop( + await parsed.standardScopeWith, + 'never', + '.', + ); const expected = false; expect(actual).toEqual(expected); }); test('commit message title with non standard scope and full-stop against "never ." should fail', async () => { - const [actual] = subjectFullStop(await parsed.nonStandardScopeWith, 'never', '.'); + const [actual] = subjectFullStop( + await parsed.nonStandardScopeWith, + 'never', + '.', + ); const expected = false; expect(actual).toEqual(expected); }); diff --git a/@commitlint/rules/src/subject-full-stop.ts b/@commitlint/rules/src/subject-full-stop.ts index c00161f5ab..040d78ed38 100644 --- a/@commitlint/rules/src/subject-full-stop.ts +++ b/@commitlint/rules/src/subject-full-stop.ts @@ -4,7 +4,7 @@ import {SyncRule} from '@commitlint/types'; export const subjectFullStop: SyncRule = ( parsed, when = 'always', - value = '.' + value = '.', ) => { const colonIndex = parsed.header.indexOf(':'); if (colonIndex > 0 && colonIndex === parsed.header.length - 1) { diff --git a/@commitlint/rules/src/subject-max-length.ts b/@commitlint/rules/src/subject-max-length.ts index 86d27ed60c..f07d331afa 100644 --- a/@commitlint/rules/src/subject-max-length.ts +++ b/@commitlint/rules/src/subject-max-length.ts @@ -4,7 +4,7 @@ import {SyncRule} from '@commitlint/types'; export const subjectMaxLength: SyncRule = ( parsed, _when = undefined, - value = 0 + value = 0, ) => { const input = parsed.subject; diff --git a/@commitlint/rules/src/subject-min-length.ts b/@commitlint/rules/src/subject-min-length.ts index 98310a4fb3..c92e6c81d0 100644 --- a/@commitlint/rules/src/subject-min-length.ts +++ b/@commitlint/rules/src/subject-min-length.ts @@ -4,7 +4,7 @@ import {SyncRule} from '@commitlint/types'; export const subjectMinLength: SyncRule = ( parsed, _when = undefined, - value = 0 + value = 0, ) => { const input = parsed.subject; if (!input) { diff --git a/@commitlint/rules/src/trailer-exists.test.ts b/@commitlint/rules/src/trailer-exists.test.ts index f97ab83be1..8773501f58 100644 --- a/@commitlint/rules/src/trailer-exists.test.ts +++ b/@commitlint/rules/src/trailer-exists.test.ts @@ -33,7 +33,7 @@ test('empty against "always trailer-exists" should fail', async () => { const [actual] = trailerExists( await parsed.empty, 'always', - 'Signed-off-by:' + 'Signed-off-by:', ); const expected = false; @@ -62,7 +62,7 @@ test('without against "always trailer-exists" should fail', async () => { const [actual] = trailerExists( await parsed.without, 'always', - 'Signed-off-by:' + 'Signed-off-by:', ); const expected = false; @@ -73,7 +73,7 @@ test('without against "never trailer-exists" should succeed', async () => { const [actual] = trailerExists( await parsed.without, 'never', - 'Signed-off-by:' + 'Signed-off-by:', ); const expected = true; @@ -84,7 +84,7 @@ test('comments and other trailers should be ignored', async () => { const [actual] = trailerExists( await parsed.withSignoffAndNoise, 'always', - 'Signed-off-by:' + 'Signed-off-by:', ); const expected = true; @@ -95,7 +95,7 @@ test('inSubject against "always trailer-exists" should fail', async () => { const [actual] = trailerExists( await parsed.inSubject, 'always', - 'Signed-off-by:' + 'Signed-off-by:', ); const expected = false; @@ -106,7 +106,7 @@ test('inSubject against "never trailer-exists" should succeed', async () => { const [actual] = trailerExists( await parsed.inSubject, 'never', - 'Signed-off-by:' + 'Signed-off-by:', ); const expected = true; @@ -117,7 +117,7 @@ test('inBody against "always trailer-exists" should fail', async () => { const [actual] = trailerExists( await parsed.inBody, 'always', - 'Signed-off-by:' + 'Signed-off-by:', ); const expected = false; @@ -128,7 +128,7 @@ test('inBody against "never trailer-exists" should succeed', async () => { const [actual] = trailerExists( await parsed.inBody, 'never', - 'Signed-off-by:' + 'Signed-off-by:', ); const expected = true; diff --git a/@commitlint/rules/src/trailer-exists.ts b/@commitlint/rules/src/trailer-exists.ts index 2b78da87a8..b4d1bd4253 100644 --- a/@commitlint/rules/src/trailer-exists.ts +++ b/@commitlint/rules/src/trailer-exists.ts @@ -6,7 +6,7 @@ import {SyncRule} from '@commitlint/types'; export const trailerExists: SyncRule = ( parsed, when = 'always', - value = '' + value = '', ) => { const trailers = execa.sync('git', ['interpret-trailers', '--parse'], { input: parsed.raw, diff --git a/@commitlint/rules/src/type-case.ts b/@commitlint/rules/src/type-case.ts index 71aa2fafdc..f4ae1da019 100644 --- a/@commitlint/rules/src/type-case.ts +++ b/@commitlint/rules/src/type-case.ts @@ -7,7 +7,7 @@ const negated = (when?: string) => when === 'never'; export const typeCase: SyncRule = ( parsed, when = 'always', - value = [] + value = [], ) => { const {type} = parsed; diff --git a/@commitlint/rules/src/type-enum.ts b/@commitlint/rules/src/type-enum.ts index c4a8f9aa18..4e509c1edb 100644 --- a/@commitlint/rules/src/type-enum.ts +++ b/@commitlint/rules/src/type-enum.ts @@ -5,7 +5,7 @@ import {SyncRule} from '@commitlint/types'; export const typeEnum: SyncRule = ( parsed, when = 'always', - value = [] + value = [], ) => { const {type: input} = parsed; diff --git a/@commitlint/rules/src/type-max-length.ts b/@commitlint/rules/src/type-max-length.ts index 1e4d27766f..016af9cde8 100644 --- a/@commitlint/rules/src/type-max-length.ts +++ b/@commitlint/rules/src/type-max-length.ts @@ -4,7 +4,7 @@ import {SyncRule} from '@commitlint/types'; export const typeMaxLength: SyncRule = ( parsed, _when = undefined, - value = 0 + value = 0, ) => { const input = parsed.type; diff --git a/@commitlint/rules/src/type-min-length.ts b/@commitlint/rules/src/type-min-length.ts index f7ff3ea38b..c05370003a 100644 --- a/@commitlint/rules/src/type-min-length.ts +++ b/@commitlint/rules/src/type-min-length.ts @@ -4,7 +4,7 @@ import {SyncRule} from '@commitlint/types'; export const typeMinLength: SyncRule = ( parsed, _when = undefined, - value = 0 + value = 0, ) => { const input = parsed.type; if (!input) { diff --git a/@commitlint/travis-cli/src/cli.test.ts b/@commitlint/travis-cli/src/cli.test.ts index cd7d7704d1..83f507487f 100644 --- a/@commitlint/travis-cli/src/cli.test.ts +++ b/@commitlint/travis-cli/src/cli.test.ts @@ -29,7 +29,7 @@ const cli = async (config: execa.Options = {}, args: string[] = []) => { throw new Error([err.stdout, err.stderr].join('\n')); } else { throw new Error( - `An unknown error occured while running '${bin} ${args.join(' ')}'` + `An unknown error occured while running '${bin} ${args.join(' ')}'`, ); } } @@ -42,7 +42,7 @@ test('should throw when not on travis ci', async () => { }; await expect(cli({env})).rejects.toThrow( - '@commitlint/travis-cli is intended to be used on Travis CI' + '@commitlint/travis-cli is intended to be used on Travis CI', ); }); @@ -53,7 +53,7 @@ test('should throw when on travis ci, but env vars are missing', async () => { }; await expect(cli({env})).rejects.toThrow( - 'TRAVIS_COMMIT, TRAVIS_COMMIT_RANGE, TRAVIS_EVENT_TYPE, TRAVIS_REPO_SLUG, TRAVIS_PULL_REQUEST_SLUG' + 'TRAVIS_COMMIT, TRAVIS_COMMIT_RANGE, TRAVIS_EVENT_TYPE, TRAVIS_REPO_SLUG, TRAVIS_PULL_REQUEST_SLUG', ); }); @@ -62,7 +62,7 @@ test('should call git with expected args', async () => { 'https://github.com/conventional-changelog/commitlint.git', ['--depth=10'], __dirname, - TRAVIS_COMMITLINT_GIT_BIN + TRAVIS_COMMITLINT_GIT_BIN, ); const result = await cli({ @@ -84,7 +84,7 @@ test('should call git with expected args on pull_request', async () => { 'https://github.com/conventional-changelog/commitlint.git', ['--depth=10'], __dirname, - TRAVIS_COMMITLINT_GIT_BIN + TRAVIS_COMMITLINT_GIT_BIN, ); const result = await cli({ @@ -112,7 +112,7 @@ test('should call git with extra expected args on pull_request', async () => { 'https://github.com/conventional-changelog/commitlint.git', ['--depth=10'], __dirname, - TRAVIS_COMMITLINT_GIT_BIN + TRAVIS_COMMITLINT_GIT_BIN, ); const result = await cli( @@ -120,7 +120,7 @@ test('should call git with extra expected args on pull_request', async () => { cwd, env: {...validBaseEnv, TRAVIS_EVENT_TYPE: 'pull_request'}, }, - ['--config', './config/commitlint.config.js'] + ['--config', './config/commitlint.config.js'], ); const invocations = await getInvocations(result.stdout); expect(invocations.length).toBe(3); @@ -151,6 +151,6 @@ function getInvocations(stdout: string): string[][] { .split(',') .map((fragment) => fragment.trim()) .map((fragment) => fragment.substring(1, fragment.length - 1)) - .filter(Boolean) + .filter(Boolean), ); } diff --git a/@commitlint/travis-cli/src/cli.ts b/@commitlint/travis-cli/src/cli.ts index 22ccea6c87..f5ce70c476 100644 --- a/@commitlint/travis-cli/src/cli.ts +++ b/@commitlint/travis-cli/src/cli.ts @@ -97,7 +97,7 @@ async function stash() { function validate() { if (process.env.CI !== 'true' || process.env.TRAVIS !== 'true') { throw new Error( - `@commitlint/travis-cli is intended to be used on Travis CI` + `@commitlint/travis-cli is intended to be used on Travis CI`, ); } @@ -106,7 +106,7 @@ function validate() { if (missing.length > 0) { const stanza = missing.length > 1 ? 'they were not' : 'it was not'; throw new Error( - `Expected ${missing.join(', ')} to be defined globally, ${stanza}.` + `Expected ${missing.join(', ')} to be defined globally, ${stanza}.`, ); } } diff --git a/@commitlint/types/src/format.ts b/@commitlint/types/src/format.ts index 7180cb3b82..cee98cbbad 100644 --- a/@commitlint/types/src/format.ts +++ b/@commitlint/types/src/format.ts @@ -4,7 +4,7 @@ import {RuleConfigSeverity} from './rules'; export type Formatter = ( report: FormattableReport, - options: FormatOptions + options: FormatOptions, ) => string; export interface FormattableProblem { diff --git a/@commitlint/types/src/parse.ts b/@commitlint/types/src/parse.ts index 3eb026247e..99f4447249 100644 --- a/@commitlint/types/src/parse.ts +++ b/@commitlint/types/src/parse.ts @@ -29,7 +29,7 @@ export interface CommitReference { export type Parser = ( message: string, - options: ParserOptions + options: ParserOptions, ) => Omit; export interface ParserOptions { diff --git a/@commitlint/types/src/rules.ts b/@commitlint/types/src/rules.ts index d0df4d0402..60f13c4563 100644 --- a/@commitlint/types/src/rules.ts +++ b/@commitlint/types/src/rules.ts @@ -17,7 +17,7 @@ export type RuleType = 'async' | 'sync' | 'either'; export type BaseRule = ( parsed: Commit, when?: RuleConfigCondition, - value?: Value + value?: Value, ) => Type extends 'either' ? RuleOutcome | Promise : Type extends 'async' @@ -70,7 +70,7 @@ export type QualifiedRuleConfig = export type RuleConfig< V = RuleConfigQuality.Qualified, - T = void + T = void, > = V extends RuleConfigQuality.Qualified ? RuleConfigTuple : QualifiedRuleConfig; diff --git a/@packages/test-environment/package.json b/@packages/test-environment/package.json index 5798d1e183..922fad74af 100644 --- a/@packages/test-environment/package.json +++ b/@packages/test-environment/package.json @@ -29,7 +29,7 @@ "license": "MIT", "dependencies": { "@types/tmp": "^0.2.0", - "jest-environment-node": "^29.0.1", + "jest-environment-node": "^29.6.2", "tmp": "0.2.1" }, "gitHead": "71f0194f33943954a8dac1c458be47e5049717cd" diff --git a/@packages/test/src/git.ts b/@packages/test/src/git.ts index e0ba9f7dbd..6f09c5b8a4 100644 --- a/@packages/test/src/git.ts +++ b/@packages/test/src/git.ts @@ -13,7 +13,7 @@ export async function clone( source: string, args: string[], directory?: string, - gitCommand = 'git' + gitCommand = 'git', ) { const cwd = await fix.bootstrap(undefined, directory); diff --git a/@packages/test/src/npm.ts b/@packages/test/src/npm.ts index 5e7da3a4ee..ac93516535 100644 --- a/@packages/test/src/npm.ts +++ b/@packages/test/src/npm.ts @@ -10,7 +10,7 @@ export async function installModules(cwd: string) { if (await fs.pathExists(manifestPath)) { const {dependencies = {}, devDependencies = {}} = await fs.readJson( - manifestPath + manifestPath, ); const deps = Object.keys({...dependencies, ...devDependencies}); await Promise.all( @@ -32,7 +32,7 @@ export async function installModules(cwd: string) { await fs.mkdirp(path.join(targetPath, '..')); await fs.symlink(sourcePath, targetPath); - }) + }), ); } } @@ -45,7 +45,7 @@ export async function bootstrap(fixture: string, directory?: string) { function findParentPath( parentPath: string, - dirname: string + dirname: string, ): string | undefined { const rawFragments = parentPath.split(path.sep); @@ -61,7 +61,7 @@ function findParentPath( return {fragments, matched}; }, - {fragments: rawFragments, matched: false} + {fragments: rawFragments, matched: false}, ); return matched ? fragments.join(path.sep) : undefined; diff --git a/docs/guides-local-setup.md b/docs/guides-local-setup.md index 2814c2b15e..f5c16e228f 100644 --- a/docs/guides-local-setup.md +++ b/docs/guides-local-setup.md @@ -43,7 +43,8 @@ yarn husky install npx husky add .husky/commit-msg 'npx --no -- commitlint --edit ${1}' ``` -**Or use installed package instead** +**Or use installed package instead** + ``` npm pkg set scripts.commitlint="commitlint --edit" npx husky add .husky/commit-msg 'npm run commitlint ${1}' diff --git a/docs/reference-api.md b/docs/reference-api.md index 794ceb3315..c73d1521d6 100644 --- a/docs/reference-api.md +++ b/docs/reference-api.md @@ -104,7 +104,7 @@ format( }, { color: false, - } + }, ); /* => [ '✖ This will show up red as it has level 2 [some-error]', @@ -258,12 +258,12 @@ load({extends: ['./package']}).then((config) => console.log(config)); // => { extends: ['./package', './package-b'], rules: {} } load({parserPreset: './parser-preset.js'}).then((config) => - console.log(config) + console.log(config), ); // => { extends: [], rules: {}, parserPreset: {name: './parser-preset.js', path: './parser-preset.js', opts: {}}} load({}, {file: '.commitlintrc.yml', cwd: process.cwd()}).then((config) => - console.log(config) + console.log(config), ); // => { extends: [], rules: { 'body-leading-blank': [ 1, 'always' ] }, formatter: '@commitlint/format', plugins: {} } ``` @@ -305,7 +305,7 @@ read({edit: true}).then((messages) => console.log(messages)); // => ['I did something\n\n'] read({edit: './git/GITGUI_EDITMESSAGE'}).then((messages) => - console.log(messages) + console.log(messages), ); // => ['I did something via git gui\n\n'] @@ -369,12 +369,12 @@ lint('foo: bar').then((report) => console.log(report)); // => { valid: true, errors: [], warnings: [] } lint('foo: bar', {'type-enum': [1, 'always', ['foo']]}).then((report) => - console.log(report) + console.log(report), ); // => { valid: true, errors: [], warnings: [] } lint('foo: bar', {'type-enum': [1, 'always', ['bar']]}).then((report) => - console.log(report) + console.log(report), ); /* => { valid: true, @@ -394,7 +394,7 @@ const opts = { }; lint('foo-bar', {'type-enum': [2, 'always', ['foo']]}, opts).then((report) => - console.log(report) + console.log(report), ); // => { valid: true, errors: [], warnings: [] } ``` @@ -414,8 +414,8 @@ load(CONFIG) lint( 'foo: bar', opts.rules, - opts.parserPreset ? {parserOpts: opts.parserPreset.parserOpts} : {} - ) + opts.parserPreset ? {parserOpts: opts.parserPreset.parserOpts} : {}, + ), ) .then((report) => console.log(report)); /* => @@ -442,7 +442,7 @@ const RULES = { const check = (commit) => lint(commit, RULES); read({to: 'HEAD', from: 'HEAD~2'}).then((commits) => - Promise.all(commits.map(check)) + Promise.all(commits.map(check)), ); ``` @@ -459,7 +459,7 @@ Promise.all([load(), read({from: 'HEAD~1'})]) return lint( commit, rules, - parserPreset ? {parserOpts: parserPreset.parserOpts} : {} + parserPreset ? {parserOpts: parserPreset.parserOpts} : {}, ); }) .then((report) => console.log(JSON.stringify(result.valid))); diff --git a/docs/reference-configuration.md b/docs/reference-configuration.md index b21ae52b05..2e1cf90f88 100644 --- a/docs/reference-configuration.md +++ b/docs/reference-configuration.md @@ -72,7 +72,7 @@ module.exports = Configuration; ```ts import type {UserConfig} from '@commitlint/types'; -import { RuleConfigSeverity } from "@commitlint/types"; +import {RuleConfigSeverity} from '@commitlint/types'; const Configuration: UserConfig = { /* diff --git a/docs/reference-rules.md b/docs/reference-rules.md index ff3708c2d0..d65592346e 100644 --- a/docs/reference-rules.md +++ b/docs/reference-rules.md @@ -106,15 +106,15 @@ Infinity ```js [ - 'lower-case', // default - 'upper-case', // UPPERCASE - 'camel-case', // camelCase - 'kebab-case', // kebab-case - 'pascal-case', // PascalCase + 'lower-case', // default + 'upper-case', // UPPERCASE + 'camel-case', // camelCase + 'kebab-case', // kebab-case + 'pascal-case', // PascalCase 'sentence-case', // Sentence case - 'snake-case', // snake_case - 'start-case' // Start Case -] + 'snake-case', // snake_case + 'start-case', // Start Case +]; ``` #### footer-leading-blank @@ -171,15 +171,15 @@ Infinity ```js [ - 'lower-case', // default - 'upper-case', // UPPERCASE - 'camel-case', // camelCase - 'kebab-case', // kebab-case - 'pascal-case', // PascalCase + 'lower-case', // default + 'upper-case', // UPPERCASE + 'camel-case', // camelCase + 'kebab-case', // kebab-case + 'pascal-case', // PascalCase 'sentence-case', // Sentence case - 'snake-case', // snake_case - 'start-case' // Start Case -] + 'snake-case', // snake_case + 'start-case', // Start Case +]; ``` #### header-full-stop @@ -240,15 +240,15 @@ Infinity ```js [ - 'lower-case', // default - 'upper-case', // UPPERCASE - 'camel-case', // camelCase - 'kebab-case', // kebab-case - 'pascal-case', // PascalCase + 'lower-case', // default + 'upper-case', // UPPERCASE + 'camel-case', // camelCase + 'kebab-case', // kebab-case + 'pascal-case', // PascalCase 'sentence-case', // Sentence case - 'snake-case', // snake_case - 'start-case' // Start Case -] + 'snake-case', // snake_case + 'start-case', // Start Case +]; ``` #### scope-empty @@ -283,7 +283,7 @@ Infinity - **value** ```js -['sentence-case', 'start-case', 'pascal-case', 'upper-case'] +['sentence-case', 'start-case', 'pascal-case', 'upper-case']; ``` - **possible values** @@ -347,7 +347,7 @@ Infinity - **rule**: `always` - **value** ```js - ['feat', 'fix', 'docs', 'style', 'refactor', 'test', 'revert'] + ['feat', 'fix', 'docs', 'style', 'refactor', 'test', 'revert']; ``` #### type-case @@ -362,14 +362,14 @@ Infinity ```js [ - 'lower-case', // default - 'upper-case', // UPPERCASE - 'camel-case', // camelCase - 'kebab-case', // kebab-case - 'pascal-case', // PascalCase + 'lower-case', // default + 'upper-case', // UPPERCASE + 'camel-case', // camelCase + 'kebab-case', // kebab-case + 'pascal-case', // PascalCase 'sentence-case', // Sentence case - 'snake-case', // snake_case - 'start-case' // Start Case + 'snake-case', // snake_case + 'start-case', // Start Case ]; ``` diff --git a/package.json b/package.json index 7abf321bcf..4553e0c56d 100644 --- a/package.json +++ b/package.json @@ -84,23 +84,23 @@ }, "devDependencies": { "@lerna/project": "^6.0.0", - "@swc/core": "^1.2.207", - "@swc/jest": "^0.2.21", - "@types/jest": "^29.0.0", + "@swc/core": "^1.3.74", + "@swc/jest": "^0.2.27", + "@types/jest": "^29.5.3", "@types/node": "^14.0.0", "@typescript-eslint/eslint-plugin": "^5.0.0", "@typescript-eslint/parser": "^5.0.0", "cross-env": "^7.0.3", "docsify-cli": "^4.4.3", - "eslint": "^8.0.0", - "eslint-config-prettier": "^8.0.0", - "eslint-plugin-import": "^2.20.1", - "eslint-plugin-jest": "^27.0.0", + "eslint": "^8.46.0", + "eslint-config-prettier": "^8.10.0", + "eslint-plugin-import": "^2.28.0", + "eslint-plugin-jest": "^27.2.3", "husky": "^8.0.0", - "jest": "^29.0.1", + "jest": "^29.6.2", "lerna": "^6.0.0", - "lint-staged": "13.2.2", - "prettier": "^2.0.5", + "lint-staged": "13.2.3", + "prettier": "^3.0.1", "typescript": "^5.0.2" } } diff --git a/yarn.lock b/yarn.lock index 77c89ab715..f98d08b21f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,11 @@ # yarn lockfile v1 +"@aashutoshrathi/word-wrap@^1.2.3": + version "1.2.6" + resolved "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz#bd9154aec9983f77b3a034ecaa015c2e4201f6cf" + integrity sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA== + "@ampproject/remapping@^2.2.0": version "2.2.1" resolved "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz#99e8e11851128b8702cd57c33684f1d0f260b630" @@ -281,7 +286,7 @@ "@babel/parser" "^7.20.7" "@babel/types" "^7.20.7" -"@babel/traverse@^7.21.0", "@babel/traverse@^7.21.2", "@babel/traverse@^7.21.4", "@babel/traverse@^7.7.2": +"@babel/traverse@^7.21.0", "@babel/traverse@^7.21.2", "@babel/traverse@^7.21.4": version "7.21.4" resolved "https://registry.npmjs.org/@babel/traverse/-/traverse-7.21.4.tgz#a836aca7b116634e97a6ed99976236b3282c9d36" integrity sha512-eyKrRHKdyZxqDm+fV1iqL9UAHMoIg0nDaGqfIOd8rKH17m5snv7Gn4qgjBoFfLz9APvjFU/ICT00NVCv1Epp8Q== @@ -330,14 +335,19 @@ resolved "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.5.1.tgz#cdd35dce4fa1a89a4fd42b1599eb35b3af408884" integrity sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ== -"@eslint/eslintrc@^2.0.3": - version "2.0.3" - resolved "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.0.3.tgz#4910db5505f4d503f27774bf356e3704818a0331" - integrity sha512-+5gy6OQfk+xx3q0d6jGZZC3f3KzAkXc/IanVxd1is/VIIziRqqt3ongQz0FiTUXqTk0c7aDB3OaFuKnuSoJicQ== +"@eslint-community/regexpp@^4.6.1": + version "4.6.2" + resolved "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.6.2.tgz#1816b5f6948029c5eaacb0703b850ee0cb37d8f8" + integrity sha512-pPTNuaAG3QMH+buKyBIGJs3g/S5y0caxw0ygM3YyE6yJFySwiGGSzA+mM3KJ8QQvzeLh3blwgSonkFjgQdxzMw== + +"@eslint/eslintrc@^2.1.1": + version "2.1.1" + resolved "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.1.tgz#18d635e24ad35f7276e8a49d135c7d3ca6a46f93" + integrity sha512-9t7ZA7NGGK8ckelF0PQCfcxIUzs1Md5rrO6U/c+FIQNanea5UZC0wqKXH4vHBccmu4ZJgZ2idtPeW7+Q2npOEA== dependencies: ajv "^6.12.4" debug "^4.3.2" - espree "^9.5.2" + espree "^9.6.0" globals "^13.19.0" ignore "^5.2.0" import-fresh "^3.2.1" @@ -345,10 +355,10 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" -"@eslint/js@8.43.0": - version "8.43.0" - resolved "https://registry.npmjs.org/@eslint/js/-/js-8.43.0.tgz#559ca3d9ddbd6bf907ad524320a0d14b85586af0" - integrity sha512-s2UHCoiXfxMvmfzqoN+vrQ84ahUSYde9qNO1MdxmoEhyHWsfmwOpFlwYV+ePJEVc7gFnATGUi376WowX1N7tFg== +"@eslint/js@^8.46.0": + version "8.46.0" + resolved "https://registry.npmjs.org/@eslint/js/-/js-8.46.0.tgz#3f7802972e8b6fe3f88ed1aabc74ec596c456db6" + integrity sha512-a8TLtmPi8xzPkCbp/OGFUo5yhRkHM2Ko9kOWP4znJr0WAhWyThaw3PnwX4vOTWOAMsV2uRt32PPDcEz63esSaA== "@gar/promisify@^1.1.3": version "1.1.3" @@ -405,28 +415,28 @@ resolved "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== -"@jest/console@^29.5.0": - version "29.5.0" - resolved "https://registry.npmjs.org/@jest/console/-/console-29.5.0.tgz#593a6c5c0d3f75689835f1b3b4688c4f8544cb57" - integrity sha512-NEpkObxPwyw/XxZVLPmAGKE89IQRp4puc6IQRPru6JKd1M3fW9v1xM1AnzIJE65hbCkzQAdnL8P47e9hzhiYLQ== +"@jest/console@^29.6.2": + version "29.6.2" + resolved "https://registry.npmjs.org/@jest/console/-/console-29.6.2.tgz#bf1d4101347c23e07c029a1b1ae07d550f5cc541" + integrity sha512-0N0yZof5hi44HAR2pPS+ikJ3nzKNoZdVu8FffRf3wy47I7Dm7etk/3KetMdRUqzVd16V4O2m2ISpNTbnIuqy1w== dependencies: - "@jest/types" "^29.5.0" + "@jest/types" "^29.6.1" "@types/node" "*" chalk "^4.0.0" - jest-message-util "^29.5.0" - jest-util "^29.5.0" + jest-message-util "^29.6.2" + jest-util "^29.6.2" slash "^3.0.0" -"@jest/core@^29.5.0": - version "29.5.0" - resolved "https://registry.npmjs.org/@jest/core/-/core-29.5.0.tgz#76674b96904484e8214614d17261cc491e5f1f03" - integrity sha512-28UzQc7ulUrOQw1IsN/kv1QES3q2kkbl/wGslyhAclqZ/8cMdB5M68BffkIdSJgKBUt50d3hbwJ92XESlE7LiQ== +"@jest/core@^29.6.2": + version "29.6.2" + resolved "https://registry.npmjs.org/@jest/core/-/core-29.6.2.tgz#6f2d1dbe8aa0265fcd4fb8082ae1952f148209c8" + integrity sha512-Oj+5B+sDMiMWLhPFF+4/DvHOf+U10rgvCLGPHP8Xlsy/7QxS51aU/eBngudHlJXnaWD5EohAgJ4js+T6pa+zOg== dependencies: - "@jest/console" "^29.5.0" - "@jest/reporters" "^29.5.0" - "@jest/test-result" "^29.5.0" - "@jest/transform" "^29.5.0" - "@jest/types" "^29.5.0" + "@jest/console" "^29.6.2" + "@jest/reporters" "^29.6.2" + "@jest/test-result" "^29.6.2" + "@jest/transform" "^29.6.2" + "@jest/types" "^29.6.1" "@types/node" "*" ansi-escapes "^4.2.1" chalk "^4.0.0" @@ -434,20 +444,20 @@ exit "^0.1.2" graceful-fs "^4.2.9" jest-changed-files "^29.5.0" - jest-config "^29.5.0" - jest-haste-map "^29.5.0" - jest-message-util "^29.5.0" + jest-config "^29.6.2" + jest-haste-map "^29.6.2" + jest-message-util "^29.6.2" jest-regex-util "^29.4.3" - jest-resolve "^29.5.0" - jest-resolve-dependencies "^29.5.0" - jest-runner "^29.5.0" - jest-runtime "^29.5.0" - jest-snapshot "^29.5.0" - jest-util "^29.5.0" - jest-validate "^29.5.0" - jest-watcher "^29.5.0" + jest-resolve "^29.6.2" + jest-resolve-dependencies "^29.6.2" + jest-runner "^29.6.2" + jest-runtime "^29.6.2" + jest-snapshot "^29.6.2" + jest-util "^29.6.2" + jest-validate "^29.6.2" + jest-watcher "^29.6.2" micromatch "^4.0.4" - pretty-format "^29.5.0" + pretty-format "^29.6.2" slash "^3.0.0" strip-ansi "^6.0.0" @@ -458,15 +468,15 @@ dependencies: "@jest/types" "^27.5.1" -"@jest/environment@^29.5.0": - version "29.5.0" - resolved "https://registry.npmjs.org/@jest/environment/-/environment-29.5.0.tgz#9152d56317c1fdb1af389c46640ba74ef0bb4c65" - integrity sha512-5FXw2+wD29YU1d4I2htpRX7jYnAyTRjP2CsXQdo9SAM8g3ifxWPSV0HnClSn71xwctr0U3oZIIH+dtbfmnbXVQ== +"@jest/environment@^29.6.2": + version "29.6.2" + resolved "https://registry.npmjs.org/@jest/environment/-/environment-29.6.2.tgz#794c0f769d85e7553439d107d3f43186dc6874a9" + integrity sha512-AEcW43C7huGd/vogTddNNTDRpO6vQ2zaQNrttvWV18ArBx9Z56h7BIsXkNFJVOO4/kblWEQz30ckw0+L3izc+Q== dependencies: - "@jest/fake-timers" "^29.5.0" - "@jest/types" "^29.5.0" + "@jest/fake-timers" "^29.6.2" + "@jest/types" "^29.6.1" "@types/node" "*" - jest-mock "^29.5.0" + jest-mock "^29.6.2" "@jest/expect-utils@^29.5.0": version "29.5.0" @@ -475,47 +485,54 @@ dependencies: jest-get-type "^29.4.3" -"@jest/expect@^29.5.0": - version "29.5.0" - resolved "https://registry.npmjs.org/@jest/expect/-/expect-29.5.0.tgz#80952f5316b23c483fbca4363ce822af79c38fba" - integrity sha512-PueDR2HGihN3ciUNGr4uelropW7rqUfTiOn+8u0leg/42UhblPxHkfoh0Ruu3I9Y1962P3u2DY4+h7GVTSVU6g== +"@jest/expect-utils@^29.6.2": + version "29.6.2" + resolved "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.6.2.tgz#1b97f290d0185d264dd9fdec7567a14a38a90534" + integrity sha512-6zIhM8go3RV2IG4aIZaZbxwpOzz3ZiM23oxAlkquOIole+G6TrbeXnykxWYlqF7kz2HlBjdKtca20x9atkEQYg== dependencies: - expect "^29.5.0" - jest-snapshot "^29.5.0" + jest-get-type "^29.4.3" -"@jest/fake-timers@^29.5.0": - version "29.5.0" - resolved "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.5.0.tgz#d4d09ec3286b3d90c60bdcd66ed28d35f1b4dc2c" - integrity sha512-9ARvuAAQcBwDAqOnglWq2zwNIRUDtk/SCkp/ToGEhFv5r86K21l+VEs0qNTaXtyiY0lEePl3kylijSYJQqdbDg== +"@jest/expect@^29.6.2": + version "29.6.2" + resolved "https://registry.npmjs.org/@jest/expect/-/expect-29.6.2.tgz#5a2ad58bb345165d9ce0a1845bbf873c480a4b28" + integrity sha512-m6DrEJxVKjkELTVAztTLyS/7C92Y2b0VYqmDROYKLLALHn8T/04yPs70NADUYPrV3ruI+H3J0iUIuhkjp7vkfg== dependencies: - "@jest/types" "^29.5.0" + expect "^29.6.2" + jest-snapshot "^29.6.2" + +"@jest/fake-timers@^29.6.2": + version "29.6.2" + resolved "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.6.2.tgz#fe9d43c5e4b1b901168fe6f46f861b3e652a2df4" + integrity sha512-euZDmIlWjm1Z0lJ1D0f7a0/y5Kh/koLFMUBE5SUYWrmy8oNhJpbTBDAP6CxKnadcMLDoDf4waRYCe35cH6G6PA== + dependencies: + "@jest/types" "^29.6.1" "@sinonjs/fake-timers" "^10.0.2" "@types/node" "*" - jest-message-util "^29.5.0" - jest-mock "^29.5.0" - jest-util "^29.5.0" + jest-message-util "^29.6.2" + jest-mock "^29.6.2" + jest-util "^29.6.2" -"@jest/globals@^29.5.0": - version "29.5.0" - resolved "https://registry.npmjs.org/@jest/globals/-/globals-29.5.0.tgz#6166c0bfc374c58268677539d0c181f9c1833298" - integrity sha512-S02y0qMWGihdzNbUiqSAiKSpSozSuHX5UYc7QbnHP+D9Lyw8DgGGCinrN9uSuHPeKgSSzvPom2q1nAtBvUsvPQ== +"@jest/globals@^29.6.2": + version "29.6.2" + resolved "https://registry.npmjs.org/@jest/globals/-/globals-29.6.2.tgz#74af81b9249122cc46f1eb25793617eec69bf21a" + integrity sha512-cjuJmNDjs6aMijCmSa1g2TNG4Lby/AeU7/02VtpW+SLcZXzOLK2GpN2nLqcFjmhy3B3AoPeQVx7BnyOf681bAw== dependencies: - "@jest/environment" "^29.5.0" - "@jest/expect" "^29.5.0" - "@jest/types" "^29.5.0" - jest-mock "^29.5.0" + "@jest/environment" "^29.6.2" + "@jest/expect" "^29.6.2" + "@jest/types" "^29.6.1" + jest-mock "^29.6.2" -"@jest/reporters@^29.5.0": - version "29.5.0" - resolved "https://registry.npmjs.org/@jest/reporters/-/reporters-29.5.0.tgz#985dfd91290cd78ddae4914ba7921bcbabe8ac9b" - integrity sha512-D05STXqj/M8bP9hQNSICtPqz97u7ffGzZu+9XLucXhkOFBqKcXe04JLZOgIekOxdb73MAoBUFnqvf7MCpKk5OA== +"@jest/reporters@^29.6.2": + version "29.6.2" + resolved "https://registry.npmjs.org/@jest/reporters/-/reporters-29.6.2.tgz#524afe1d76da33d31309c2c4a2c8062d0c48780a" + integrity sha512-sWtijrvIav8LgfJZlrGCdN0nP2EWbakglJY49J1Y5QihcQLfy7ovyxxjJBRXMNltgt4uPtEcFmIMbVshEDfFWw== dependencies: "@bcoe/v8-coverage" "^0.2.3" - "@jest/console" "^29.5.0" - "@jest/test-result" "^29.5.0" - "@jest/transform" "^29.5.0" - "@jest/types" "^29.5.0" - "@jridgewell/trace-mapping" "^0.3.15" + "@jest/console" "^29.6.2" + "@jest/test-result" "^29.6.2" + "@jest/transform" "^29.6.2" + "@jest/types" "^29.6.1" + "@jridgewell/trace-mapping" "^0.3.18" "@types/node" "*" chalk "^4.0.0" collect-v8-coverage "^1.0.0" @@ -527,9 +544,9 @@ istanbul-lib-report "^3.0.0" istanbul-lib-source-maps "^4.0.0" istanbul-reports "^3.1.3" - jest-message-util "^29.5.0" - jest-util "^29.5.0" - jest-worker "^29.5.0" + jest-message-util "^29.6.2" + jest-util "^29.6.2" + jest-worker "^29.6.2" slash "^3.0.0" string-length "^4.0.1" strip-ansi "^6.0.0" @@ -542,51 +559,58 @@ dependencies: "@sinclair/typebox" "^0.25.16" -"@jest/source-map@^29.4.3": - version "29.4.3" - resolved "https://registry.npmjs.org/@jest/source-map/-/source-map-29.4.3.tgz#ff8d05cbfff875d4a791ab679b4333df47951d20" - integrity sha512-qyt/mb6rLyd9j1jUts4EQncvS6Yy3PM9HghnNv86QBlV+zdL2inCdK1tuVlL+J+lpiw2BI67qXOrX3UurBqQ1w== +"@jest/schemas@^29.6.0": + version "29.6.0" + resolved "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.0.tgz#0f4cb2c8e3dca80c135507ba5635a4fd755b0040" + integrity sha512-rxLjXyJBTL4LQeJW3aKo0M/+GkCOXsO+8i9Iu7eDb6KwtP65ayoDsitrdPBtujxQ88k4wI2FNYfa6TOGwSn6cQ== dependencies: - "@jridgewell/trace-mapping" "^0.3.15" + "@sinclair/typebox" "^0.27.8" + +"@jest/source-map@^29.6.0": + version "29.6.0" + resolved "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.0.tgz#bd34a05b5737cb1a99d43e1957020ac8e5b9ddb1" + integrity sha512-oA+I2SHHQGxDCZpbrsCQSoMLb3Bz547JnM+jUr9qEbuw0vQlWZfpPS7CO9J7XiwKicEz9OFn/IYoLkkiUD7bzA== + dependencies: + "@jridgewell/trace-mapping" "^0.3.18" callsites "^3.0.0" graceful-fs "^4.2.9" -"@jest/test-result@^29.5.0": - version "29.5.0" - resolved "https://registry.npmjs.org/@jest/test-result/-/test-result-29.5.0.tgz#7c856a6ca84f45cc36926a4e9c6b57f1973f1408" - integrity sha512-fGl4rfitnbfLsrfx1uUpDEESS7zM8JdgZgOCQuxQvL1Sn/I6ijeAVQWGfXI9zb1i9Mzo495cIpVZhA0yr60PkQ== +"@jest/test-result@^29.6.2": + version "29.6.2" + resolved "https://registry.npmjs.org/@jest/test-result/-/test-result-29.6.2.tgz#fdd11583cd1608e4db3114e8f0cce277bf7a32ed" + integrity sha512-3VKFXzcV42EYhMCsJQURptSqnyjqCGbtLuX5Xxb6Pm6gUf1wIRIl+mandIRGJyWKgNKYF9cnstti6Ls5ekduqw== dependencies: - "@jest/console" "^29.5.0" - "@jest/types" "^29.5.0" + "@jest/console" "^29.6.2" + "@jest/types" "^29.6.1" "@types/istanbul-lib-coverage" "^2.0.0" collect-v8-coverage "^1.0.0" -"@jest/test-sequencer@^29.5.0": - version "29.5.0" - resolved "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.5.0.tgz#34d7d82d3081abd523dbddc038a3ddcb9f6d3cc4" - integrity sha512-yPafQEcKjkSfDXyvtgiV4pevSeyuA6MQr6ZIdVkWJly9vkqjnFfcfhRQqpD5whjoU8EORki752xQmjaqoFjzMQ== +"@jest/test-sequencer@^29.6.2": + version "29.6.2" + resolved "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.6.2.tgz#585eff07a68dd75225a7eacf319780cb9f6b9bf4" + integrity sha512-GVYi6PfPwVejO7slw6IDO0qKVum5jtrJ3KoLGbgBWyr2qr4GaxFV6su+ZAjdTX75Sr1DkMFRk09r2ZVa+wtCGw== dependencies: - "@jest/test-result" "^29.5.0" + "@jest/test-result" "^29.6.2" graceful-fs "^4.2.9" - jest-haste-map "^29.5.0" + jest-haste-map "^29.6.2" slash "^3.0.0" -"@jest/transform@^29.5.0": - version "29.5.0" - resolved "https://registry.npmjs.org/@jest/transform/-/transform-29.5.0.tgz#cf9c872d0965f0cbd32f1458aa44a2b1988b00f9" - integrity sha512-8vbeZWqLJOvHaDfeMuoHITGKSz5qWc9u04lnWrQE3VyuSw604PzQM824ZeX9XSjUCeDiE3GuxZe5UKa8J61NQw== +"@jest/transform@^29.6.2": + version "29.6.2" + resolved "https://registry.npmjs.org/@jest/transform/-/transform-29.6.2.tgz#522901ebbb211af08835bc3bcdf765ab778094e3" + integrity sha512-ZqCqEISr58Ce3U+buNFJYUktLJZOggfyvR+bZMaiV1e8B1SIvJbwZMrYz3gx/KAPn9EXmOmN+uB08yLCjWkQQg== dependencies: "@babel/core" "^7.11.6" - "@jest/types" "^29.5.0" - "@jridgewell/trace-mapping" "^0.3.15" + "@jest/types" "^29.6.1" + "@jridgewell/trace-mapping" "^0.3.18" babel-plugin-istanbul "^6.1.1" chalk "^4.0.0" convert-source-map "^2.0.0" fast-json-stable-stringify "^2.1.0" graceful-fs "^4.2.9" - jest-haste-map "^29.5.0" + jest-haste-map "^29.6.2" jest-regex-util "^29.4.3" - jest-util "^29.5.0" + jest-util "^29.6.2" micromatch "^4.0.4" pirates "^4.0.4" slash "^3.0.0" @@ -615,6 +639,18 @@ "@types/yargs" "^17.0.8" chalk "^4.0.0" +"@jest/types@^29.6.1": + version "29.6.1" + resolved "https://registry.npmjs.org/@jest/types/-/types-29.6.1.tgz#ae79080278acff0a6af5eb49d063385aaa897bf2" + integrity sha512-tPKQNMPuXgvdOn2/Lg9HNfUvjYVGolt04Hp03f5hAk878uwOLikN+JzeLY0HcVgKgFl9Hs3EIqpu3WX27XNhnw== + dependencies: + "@jest/schemas" "^29.6.0" + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^3.0.0" + "@types/node" "*" + "@types/yargs" "^17.0.8" + chalk "^4.0.0" + "@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2": version "0.3.3" resolved "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz#7e02e6eb5df901aaedb08514203b096614024098" @@ -652,7 +688,7 @@ "@jridgewell/resolve-uri" "^3.0.3" "@jridgewell/sourcemap-codec" "^1.4.10" -"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.15", "@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.9": +"@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.9": version "0.3.18" resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz#25783b2086daf6ff1dcb53c9249ae480e4dd4cd6" integrity sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA== @@ -1712,6 +1748,11 @@ resolved "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.25.24.tgz#8c7688559979f7079aacaf31aa881c3aa410b718" integrity sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ== +"@sinclair/typebox@^0.27.8": + version "0.27.8" + resolved "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e" + integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA== + "@sindresorhus/is@^0.14.0": version "0.14.0" resolved "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea" @@ -1731,76 +1772,76 @@ dependencies: "@sinonjs/commons" "^2.0.0" -"@swc/core-darwin-arm64@1.3.56": - version "1.3.56" - resolved "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.56.tgz#a846f7fdbc274aa7d299568031dde025d44a3b4c" - integrity sha512-DZcu7BzDaLEdWHabz9DRTP0yEBLqkrWmskFcD5BX0lGAvoIvE4duMnAqi5F2B3X7630QioHRCYFoRw2WkeE3Cw== - -"@swc/core-darwin-x64@1.3.56": - version "1.3.56" - resolved "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.56.tgz#793865f14f07f5eff6a6e6764aa6c766983fa007" - integrity sha512-VH5saqYFasdRXJy6RAT+MXm0+IjkMZvOkohJwUei+oA65cKJofQwrJ1jZro8yOJFYvUSI3jgNRGsdBkmo/4hMw== - -"@swc/core-linux-arm-gnueabihf@1.3.56": - version "1.3.56" - resolved "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.56.tgz#6942e9a4f6086da66d995c46c2ab2b0f7fa86a1d" - integrity sha512-LWwPo6NnJkH01+ukqvkoNIOpMdw+Zundm4vBeicwyVrkP+mC3kwVfi03TUFpQUz3kRKdw/QEnxGTj+MouCPbtw== - -"@swc/core-linux-arm64-gnu@1.3.56": - version "1.3.56" - resolved "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.56.tgz#21c3f8083c2d0a8028a07bf42cdd2a345e5108e9" - integrity sha512-GzsUy/4egJ4cMlxbM+Ub7AMi5CKAc+pxBxrh8MUPQbyStW8jGgnQsJouTnGy0LHawtdEnsCOl6PcO6OgvktXuQ== - -"@swc/core-linux-arm64-musl@1.3.56": - version "1.3.56" - resolved "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.56.tgz#87c9781f0814bca65074f357e5cfdcdd7fb09845" - integrity sha512-9gxL09BIiAv8zY0DjfnFf19bo8+P4T9tdhzPwcm+1yPJcY5yr1+YFWLNFzz01agtOj6VlZ2/wUJTaOfdjjtc+A== - -"@swc/core-linux-x64-gnu@1.3.56": - version "1.3.56" - resolved "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.56.tgz#55edae77d1c6a2b6230abbc79bccd175cb7c2208" - integrity sha512-n0ORNknl50vMRkll3BDO1E4WOqY6iISlPV1ZQCRLWQ6YQ2q8/WAryBxc2OAybcGHBUFkxyACpJukeU1QZ/9tNw== - -"@swc/core-linux-x64-musl@1.3.56": - version "1.3.56" - resolved "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.56.tgz#45bf5a6611350bcbe3bdd1eac6f5fcfe69502137" - integrity sha512-r+D34WLAOAlJtfw1gaVWpHRwCncU9nzW9i7w9kSw4HpWYnHJOz54jLGSEmNsrhdTCz1VK2ar+V2ktFUsrlGlDA== - -"@swc/core-win32-arm64-msvc@1.3.56": - version "1.3.56" - resolved "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.56.tgz#28853170b9e4f57a793d617aab75ef4b9c4b8a7f" - integrity sha512-29Yt75Is6X24z3x8h/xZC1HnDPkPpyLH9mDQiM6Cuc0I9mVr1XSriPEUB2N/awf5IE4SA8c+3IVq1DtKWbkJIw== - -"@swc/core-win32-ia32-msvc@1.3.56": - version "1.3.56" - resolved "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.56.tgz#dfa120fece0741c6ccc24885d4c155c9593a956e" - integrity sha512-mplp0zbYDrcHtfvkniXlXdB04e2qIjz2Gq/XHKr4Rnc6xVORJjjXF91IemXKpavx2oZYJws+LNJL7UFQ8jyCdQ== - -"@swc/core-win32-x64-msvc@1.3.56": - version "1.3.56" - resolved "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.56.tgz#23b601b9afcdc435e2e4d66767ac5fa6bb50d640" - integrity sha512-zp8MBnrw/bjdLenO/ifYzHrImSjKunqL0C2IF4LXYNRfcbYFh2NwobsVQMZ20IT0474lKRdlP8Oxdt+bHuXrzA== - -"@swc/core@^1.2.207": - version "1.3.56" - resolved "https://registry.npmjs.org/@swc/core/-/core-1.3.56.tgz#b12e98bc9ef39dc6092e71ea922f8073f7bec50f" - integrity sha512-yz/EeXT+PMZucUNrYceRUaTfuNS4IIu5EDZSOlvCEvm4jAmZi7CYH1B/kvzEzoAOzr7zkQiDPNJftcQXLkjbjA== +"@swc/core-darwin-arm64@1.3.74": + version "1.3.74" + resolved "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.74.tgz#5ec6f504fb8cd74fd5133080f6cc670327a867cd" + integrity sha512-2rMV4QxM583jXcREfo0MhV3Oj5pgRSfSh/kVrB1twL2rQxOrbzkAPT/8flmygdVoL4f2F7o1EY5lKlYxEBiIKQ== + +"@swc/core-darwin-x64@1.3.74": + version "1.3.74" + resolved "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.74.tgz#5da7bdc4ad0fb3b4375d9c1039672ae8f61efaeb" + integrity sha512-KKEGE1wXneYXe15fWDRM8/oekd/Q4yAuccA0vWY/7i6nOSPqWYcSDR0nRtR030ltDxWt0rk/eCTmNkrOWrKs3A== + +"@swc/core-linux-arm-gnueabihf@1.3.74": + version "1.3.74" + resolved "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.74.tgz#52d818692aaaf9138e1175956271cae8107c1096" + integrity sha512-HehH5DR6r/5fIVu7tu8ZqgrHkhSCQNewf1ztFQJgcmaQWn+H4AJERBjwkjosqh4TvUJucZv8vyRTvrFeBXaCSA== + +"@swc/core-linux-arm64-gnu@1.3.74": + version "1.3.74" + resolved "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.74.tgz#b230ba8623edb3c4b9ceffaf9aced8bf7a9fc829" + integrity sha512-+xkbCRz/wczgdknoV4NwYxbRI2dD7x/qkIFcVM2buzLCq8oWLweuV8+aL4pRqu0qDh7ZSb1jcaVTUIsySCJznA== + +"@swc/core-linux-arm64-musl@1.3.74": + version "1.3.74" + resolved "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.74.tgz#05ff0f3046aba1dd9d2d8793c10cd4a21a46fd7f" + integrity sha512-maKFZSCD3tQznzPV7T3V+TtiWZFEFM8YrnSS5fQNNb+K9J65sL+170uTb3M7H4cFkG+9Sm5k5yCrCIutlvV48g== + +"@swc/core-linux-x64-gnu@1.3.74": + version "1.3.74" + resolved "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.74.tgz#a98d9a984d47404aa2de478dd3cd33dbd195bba2" + integrity sha512-LEXpcShF6DLTWJSiBhMSYZkLQ27UvaQ24fCFhoIV/R3dhYaUpHmIyLPPBNC82T03lB3ONUFVwrRw6fxDJ/f00A== + +"@swc/core-linux-x64-musl@1.3.74": + version "1.3.74" + resolved "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.74.tgz#95e04431eba994b4fae23c578ad1ba73fb72c21d" + integrity sha512-sxsFctbFMZEFmDE7CmYljG0dMumH8XBTwwtGr8s6z0fYAzXBGNq2AFPcmEh2np9rPWkt7pE1m0ByESD+dMkbxQ== + +"@swc/core-win32-arm64-msvc@1.3.74": + version "1.3.74" + resolved "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.74.tgz#62cb708094a8902a307fba6eea08682dbccd472d" + integrity sha512-F7hY9/BjFCozA4YPFYFH5FGCyWwa44vIXHqG66F5cDwXDGFn8ZtBsYIsiPfUYcx0AeAo1ojnVWKPxokZhYNYqA== + +"@swc/core-win32-ia32-msvc@1.3.74": + version "1.3.74" + resolved "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.74.tgz#fe5a2d8bbddb609e554e0d8d678093973096330c" + integrity sha512-qBAsiD1AlIdqED6wy3UNRHyAys9pWMUidX0LJ6mj24r/vfrzzTBAUrLJe5m7bzE+F1Rgi001avYJeEW1DLEJ+Q== + +"@swc/core-win32-x64-msvc@1.3.74": + version "1.3.74" + resolved "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.74.tgz#4fd459c7264d4c97d1b2965ed6aa86b1725ce38b" + integrity sha512-S3YAvvLprTnPRwQuy9Dkwubb5SRLpVK3JJsqYDbGfgj8PGQyKHZcVJ5X3nfFsoWLy3j9B/3Os2nawprRSzeC5A== + +"@swc/core@^1.3.74": + version "1.3.74" + resolved "https://registry.npmjs.org/@swc/core/-/core-1.3.74.tgz#b1d1a3c46ca32b7f10d970c8a209d2913c9de251" + integrity sha512-P+MIExOTdWlfq8Heb1/NhBAke6UTckd4cRDuJoFcFMGBRvgoCMNWhnfP3FRRXPLI7GGg27dRZS+xHiqYyQmSrA== optionalDependencies: - "@swc/core-darwin-arm64" "1.3.56" - "@swc/core-darwin-x64" "1.3.56" - "@swc/core-linux-arm-gnueabihf" "1.3.56" - "@swc/core-linux-arm64-gnu" "1.3.56" - "@swc/core-linux-arm64-musl" "1.3.56" - "@swc/core-linux-x64-gnu" "1.3.56" - "@swc/core-linux-x64-musl" "1.3.56" - "@swc/core-win32-arm64-msvc" "1.3.56" - "@swc/core-win32-ia32-msvc" "1.3.56" - "@swc/core-win32-x64-msvc" "1.3.56" - -"@swc/jest@^0.2.21": - version "0.2.26" - resolved "https://registry.npmjs.org/@swc/jest/-/jest-0.2.26.tgz#6ef2d6d31869e3aaddc132603bc21f2e4c57cc5d" - integrity sha512-7lAi7q7ShTO3E5Gt1Xqf3pIhRbERxR1DUxvtVa9WKzIB+HGQ7wZP5sYx86zqnaEoKKGhmOoZ7gyW0IRu8Br5+A== + "@swc/core-darwin-arm64" "1.3.74" + "@swc/core-darwin-x64" "1.3.74" + "@swc/core-linux-arm-gnueabihf" "1.3.74" + "@swc/core-linux-arm64-gnu" "1.3.74" + "@swc/core-linux-arm64-musl" "1.3.74" + "@swc/core-linux-x64-gnu" "1.3.74" + "@swc/core-linux-x64-musl" "1.3.74" + "@swc/core-win32-arm64-msvc" "1.3.74" + "@swc/core-win32-ia32-msvc" "1.3.74" + "@swc/core-win32-x64-msvc" "1.3.74" + +"@swc/jest@^0.2.27": + version "0.2.27" + resolved "https://registry.npmjs.org/@swc/jest/-/jest-0.2.27.tgz#f6cbd0b6f95cf689c3344c63fc379fa680cdbf52" + integrity sha512-Xt8EJ6Wy0NYVL8KDPcDMsuUSzyV2UAByamyy28x2iDZCJw2eVz3acedCGBYxxlPR/DNr6QbA35OSymuXhC9QVA== dependencies: "@jest/create-cache-key-function" "^27.4.2" jsonc-parser "^3.2.0" @@ -1927,10 +1968,10 @@ dependencies: "@types/istanbul-lib-report" "*" -"@types/jest@^29.0.0": - version "29.5.2" - resolved "https://registry.npmjs.org/@types/jest/-/jest-29.5.2.tgz#86b4afc86e3a8f3005b297ed8a72494f89e6395b" - integrity sha512-mSoZVJF5YzGVCk+FsDxzDuH7s+SCkzrgKZzf0Z0T2WudhBUPoF6ktoTPC4R0ZoCPCV5xUvuU6ias5NvxcBcMMg== +"@types/jest@^29.5.3": + version "29.5.3" + resolved "https://registry.npmjs.org/@types/jest/-/jest-29.5.3.tgz#7a35dc0044ffb8b56325c6802a4781a626b05777" + integrity sha512-1Nq7YrO/vJE/FYnqYyw0FS8LdrjExSgIiHyKg7xPpn+yi8Q4huZryKnkJatN1ZRH89Kw2v33/8ZMB7DuZeSLlA== dependencies: expect "^29.0.0" pretty-format "^29.0.0" @@ -2042,6 +2083,11 @@ resolved "https://registry.npmjs.org/@types/node/-/node-20.3.1.tgz#e8a83f1aa8b649377bb1fb5d7bac5cb90e784dfe" integrity sha512-EhcH/wvidPy1WeML3TtYFGR83UzjxeWRen9V402T8aUGYsCHOmfoisV3ZSg03gAFIbLq8TnWOJ0f4cALtnSEUg== +"@types/node@20.4.7": + version "20.4.7" + resolved "https://registry.npmjs.org/@types/node/-/node-20.4.7.tgz#74d323a93f1391a63477b27b9aec56669c98b2ab" + integrity sha512-bUBrPjEry2QUTsnuEjzjbS7voGWCc30W0qzgMf90GPeDGFRakvrz47ju+oqDAKCXLUCe39u57/ORMl/O/04/9g== + "@types/node@^14.0.0": version "14.18.51" resolved "https://registry.npmjs.org/@types/node/-/node-14.18.51.tgz#cb90935b89c641201c3d07a595c3e22d1cfaa417" @@ -2057,17 +2103,7 @@ resolved "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0" integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== -"@types/prettier@^2.1.5": - version "2.7.2" - resolved "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.2.tgz#6c2324641cc4ba050a8c710b2b251b377581fbf0" - integrity sha512-KufADq8uQqo1pYKVIYzfKbJfBAc0sOeXqGbFaSpv8MRmC/zXgowNZmFcbngndGk922QDmOASEXUZCaY48gs4cg== - -"@types/semver@7.3.13": - version "7.3.13" - resolved "https://registry.npmjs.org/@types/semver/-/semver-7.3.13.tgz#da4bfd73f49bd541d28920ab0e2bf0ee80f71c91" - integrity sha512-21cFJr9z3g5dW8B0CVI9g2O9beqaThGQ6ZFBqHfwhzLDKUxaqTIy3vnfah/UPkfOiF2pLq+tGz+W8RyCskuslw== - -"@types/semver@^7.3.12": +"@types/semver@7.5.0", "@types/semver@^7.3.12": version "7.5.0" resolved "https://registry.npmjs.org/@types/semver/-/semver-7.5.0.tgz#591c1ce3a702c45ee15f47a42ade72c2fd78978a" integrity sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw== @@ -2212,7 +2248,7 @@ dependencies: argparse "^2.0.1" -JSONStream@^1.0.4: +JSONStream@^1.0.4, JSONStream@^1.3.5: version "1.3.5" resolved "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0" integrity sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ== @@ -2240,10 +2276,10 @@ acorn@^8.4.1: resolved "https://registry.npmjs.org/acorn/-/acorn-8.7.1.tgz#0197122c843d1bf6d0a5e83220a788f278f63c30" integrity sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A== -acorn@^8.8.0: - version "8.9.0" - resolved "https://registry.npmjs.org/acorn/-/acorn-8.9.0.tgz#78a16e3b2bcc198c10822786fa6679e245db5b59" - integrity sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ== +acorn@^8.9.0: + version "8.10.0" + resolved "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz#8be5b3907a67221a81ab23c7889c4c5526b62ec5" + integrity sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw== add-stream@^1.0.0: version "1.0.0" @@ -2274,7 +2310,7 @@ aggregate-error@^3.0.0: clean-stack "^2.0.0" indent-string "^4.0.0" -ajv@^6.10.0, ajv@^6.12.4: +ajv@^6.12.4: version "6.12.6" resolved "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== @@ -2417,6 +2453,14 @@ argparse@^2.0.1: resolved "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== +array-buffer-byte-length@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz#fabe8bc193fea865f317fe7807085ee0dee5aead" + integrity sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A== + dependencies: + call-bind "^1.0.2" + is-array-buffer "^3.0.1" + array-differ@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/array-differ/-/array-differ-3.0.0.tgz#3cbb3d0f316810eafcc47624734237d6aee4ae6b" @@ -2443,6 +2487,17 @@ array-union@^2.1.0: resolved "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== +array.prototype.findlastindex@^1.2.2: + version "1.2.2" + resolved "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.2.tgz#bc229aef98f6bd0533a2bc61ff95209875526c9b" + integrity sha512-tb5thFFlUcp7NdNF6/MpDk/1r/4awWG1FIz3YqDf+/zJSTezBb+/5WViH41obXULHVpDzoiCLpJ/ZO9YbJMsdw== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + es-shim-unscopables "^1.0.0" + get-intrinsic "^1.1.3" + array.prototype.flat@^1.3.1: version "1.3.1" resolved "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz#ffc6576a7ca3efc2f46a143b9d1dda9b4b3cf5e2" @@ -2463,6 +2518,18 @@ array.prototype.flatmap@^1.3.1: es-abstract "^1.20.4" es-shim-unscopables "^1.0.0" +arraybuffer.prototype.slice@^1.0.1: + version "1.0.1" + resolved "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.1.tgz#9b5ea3868a6eebc30273da577eb888381c0044bb" + integrity sha512-09x0ZWFEjj4WD8PDbykUwo3t9arLn8NIzmmYEJFpYekOAQjpkGSyrQhNoRTcwwcFRu+ycWF78QZ63oWTqSjBcw== + dependencies: + array-buffer-byte-length "^1.0.0" + call-bind "^1.0.2" + define-properties "^1.2.0" + get-intrinsic "^1.2.1" + is-array-buffer "^3.0.2" + is-shared-array-buffer "^1.0.2" + arrify@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" @@ -2512,12 +2579,12 @@ axios@^1.0.0: form-data "^4.0.0" proxy-from-env "^1.1.0" -babel-jest@^29.5.0: - version "29.5.0" - resolved "https://registry.npmjs.org/babel-jest/-/babel-jest-29.5.0.tgz#3fe3ddb109198e78b1c88f9ebdecd5e4fc2f50a5" - integrity sha512-mA4eCDh5mSo2EcA9xQjVTpmbbNk32Zb3Q3QFQsNhaK56Q+yoXowzFodLux30HRgyOho5rsQ6B0P9QpMkvvnJ0Q== +babel-jest@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/babel-jest/-/babel-jest-29.6.2.tgz#cada0a59e07f5acaeb11cbae7e3ba92aec9c1126" + integrity sha512-BYCzImLos6J3BH/+HvUCHG1dTf2MzmAB4jaVxHV+29RZLjR29XuYTmsf2sdDwkrb+FczkGo3kOhE7ga6sI0P4A== dependencies: - "@jest/transform" "^29.5.0" + "@jest/transform" "^29.6.2" "@types/babel__core" "^7.1.14" babel-plugin-istanbul "^6.1.1" babel-preset-jest "^29.5.0" @@ -3146,7 +3213,14 @@ console-control-strings@^1.1.0: resolved "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" integrity sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ== -conventional-changelog-angular@5.0.13, conventional-changelog-angular@^5.0.11, conventional-changelog-angular@^5.0.12: +conventional-changelog-angular@6.0.0, conventional-changelog-angular@^6.0.0: + version "6.0.0" + resolved "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-6.0.0.tgz#a9a9494c28b7165889144fd5b91573c4aa9ca541" + integrity sha512-6qLgrBF4gueoC7AFVHu51nHL9pF9FRjXrH+ceVf7WmAfH3gs+gEYOkvxhjMPjZu57I4AGUGoNTY8V7Hrgf1uqg== + dependencies: + compare-func "^2.0.0" + +conventional-changelog-angular@^5.0.12: version "5.0.13" resolved "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.13.tgz#896885d63b914a70d4934b59d2fe7bde1832b28c" integrity sha512-i/gipMxs7s8L/QeuavPF2hLnJgH6pEZAttySB6aiQLWcX3puWDL3ACVmvBhJGxnAy52Qc15ua26BufY6KpmrVA== @@ -3154,21 +3228,17 @@ conventional-changelog-angular@5.0.13, conventional-changelog-angular@^5.0.11, c compare-func "^2.0.0" q "^1.5.1" -conventional-changelog-atom@^2.0.8: - version "2.0.8" - resolved "https://registry.npmjs.org/conventional-changelog-atom/-/conventional-changelog-atom-2.0.8.tgz#a759ec61c22d1c1196925fca88fe3ae89fd7d8de" - integrity sha512-xo6v46icsFTK3bb7dY/8m2qvc8sZemRgdqLb/bjpBsH2UyOS8rKNTgcb5025Hri6IpANPApbXMg15QLb1LJpBw== - dependencies: - q "^1.5.1" +conventional-changelog-atom@^3.0.0: + version "3.0.0" + resolved "https://registry.npmjs.org/conventional-changelog-atom/-/conventional-changelog-atom-3.0.0.tgz#32de463a29db773de15382c96acda47930d3d24d" + integrity sha512-pnN5bWpH+iTUWU3FaYdw5lJmfWeqSyrUkG+wyHBI9tC1dLNnHkbAOg1SzTQ7zBqiFrfo55h40VsGXWMdopwc5g== -conventional-changelog-conventionalcommits@^5.0.0: - version "5.0.0" - resolved "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-5.0.0.tgz#41bdce54eb65a848a4a3ffdca93e92fa22b64a86" - integrity sha512-lCDbA+ZqVFQGUj7h9QBKoIpLhl8iihkO0nCTyRNzuXtcd7ubODpYB04IFy31JloiJgG0Uovu8ot8oxRzn7Nwtw== +conventional-changelog-conventionalcommits@^6.1.0: + version "6.1.0" + resolved "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-6.1.0.tgz#3bad05f4eea64e423d3d90fc50c17d2c8cf17652" + integrity sha512-3cS3GEtR78zTfMzk0AizXKKIdN4OvSh7ibNz6/DPbhWWQu7LqE/8+/GqSodV+sywUR2gpJAdP/1JFf4XtN7Zpw== dependencies: compare-func "^2.0.0" - lodash "^4.17.15" - q "^1.5.1" conventional-changelog-core@^4.2.4: version "4.2.4" @@ -3223,7 +3293,7 @@ conventional-commits-filter@^2.0.7: lodash.ismatch "^4.4.0" modify-values "^1.0.0" -conventional-commits-parser@^3.2.0, conventional-commits-parser@^3.2.2: +conventional-commits-parser@^3.2.0: version "3.2.4" resolved "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.2.4.tgz#a7d3b77758a202a9b2293d2112a8d8052c740972" integrity sha512-nK7sAtfi+QXbxHCYfhpZsfRtaitZLIA6889kFIouLvz6repszQDgxBu7wf2WbU+Dco7sAnNCJYERCwt54WPC2Q== @@ -3235,6 +3305,16 @@ conventional-commits-parser@^3.2.0, conventional-commits-parser@^3.2.2: split2 "^3.0.0" through2 "^4.0.0" +conventional-commits-parser@^4.0.0: + version "4.0.0" + resolved "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-4.0.0.tgz#02ae1178a381304839bce7cea9da5f1b549ae505" + integrity sha512-WRv5j1FsVM5FISJkoYMR6tPk07fkKT0UodruX4je86V4owk451yjXAKzKAPOs9l7y59E2viHUS9eQ+dfUA9NSg== + dependencies: + JSONStream "^1.3.5" + is-text-path "^1.0.1" + meow "^8.1.2" + split2 "^3.2.2" + conventional-recommended-bump@^6.1.0: version "6.1.0" resolved "https://registry.npmjs.org/conventional-recommended-bump/-/conventional-recommended-bump-6.1.0.tgz#cfa623285d1de554012f2ffde70d9c8a22231f55" @@ -3401,6 +3481,11 @@ dedent@0.7.0, dedent@^0.7.0: resolved "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" integrity sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA== +dedent@^1.0.0: + version "1.5.1" + resolved "https://registry.npmjs.org/dedent/-/dedent-1.5.1.tgz#4f3fc94c8b711e9bb2800d185cd6ad20f2a90aff" + integrity sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg== + deep-extend@^0.6.0: version "0.6.0" resolved "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" @@ -3441,6 +3526,14 @@ define-properties@^1.1.3, define-properties@^1.1.4: has-property-descriptors "^1.0.0" object-keys "^1.1.1" +define-properties@^1.2.0: + version "1.2.0" + resolved "https://registry.npmjs.org/define-properties/-/define-properties-1.2.0.tgz#52988570670c9eacedd8064f4a990f2405849bd5" + integrity sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA== + dependencies: + has-property-descriptors "^1.0.0" + object-keys "^1.1.1" + delayed-stream@~1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" @@ -3726,6 +3819,51 @@ es-abstract@^1.19.0, es-abstract@^1.20.4: unbox-primitive "^1.0.2" which-typed-array "^1.1.9" +es-abstract@^1.21.2: + version "1.22.1" + resolved "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.1.tgz#8b4e5fc5cefd7f1660f0f8e1a52900dfbc9d9ccc" + integrity sha512-ioRRcXMO6OFyRpyzV3kE1IIBd4WG5/kltnzdxSCqoP8CMGs/Li+M1uF5o7lOkZVFjDs+NLesthnF66Pg/0q0Lw== + dependencies: + array-buffer-byte-length "^1.0.0" + arraybuffer.prototype.slice "^1.0.1" + available-typed-arrays "^1.0.5" + call-bind "^1.0.2" + es-set-tostringtag "^2.0.1" + es-to-primitive "^1.2.1" + function.prototype.name "^1.1.5" + get-intrinsic "^1.2.1" + get-symbol-description "^1.0.0" + globalthis "^1.0.3" + gopd "^1.0.1" + has "^1.0.3" + has-property-descriptors "^1.0.0" + has-proto "^1.0.1" + has-symbols "^1.0.3" + internal-slot "^1.0.5" + is-array-buffer "^3.0.2" + is-callable "^1.2.7" + is-negative-zero "^2.0.2" + is-regex "^1.1.4" + is-shared-array-buffer "^1.0.2" + is-string "^1.0.7" + is-typed-array "^1.1.10" + is-weakref "^1.0.2" + object-inspect "^1.12.3" + object-keys "^1.1.1" + object.assign "^4.1.4" + regexp.prototype.flags "^1.5.0" + safe-array-concat "^1.0.0" + safe-regex-test "^1.0.0" + string.prototype.trim "^1.2.7" + string.prototype.trimend "^1.0.6" + string.prototype.trimstart "^1.0.6" + typed-array-buffer "^1.0.0" + typed-array-byte-length "^1.0.0" + typed-array-byte-offset "^1.0.0" + typed-array-length "^1.0.4" + unbox-primitive "^1.0.2" + which-typed-array "^1.1.10" + es-set-tostringtag@^2.0.1: version "2.0.1" resolved "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz#338d502f6f674301d710b80c8592de8a15f09cd8" @@ -3781,10 +3919,10 @@ escape-string-regexp@^4.0.0: resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== -eslint-config-prettier@^8.0.0: - version "8.8.0" - resolved "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz#bfda738d412adc917fd7b038857110efe98c9348" - integrity sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA== +eslint-config-prettier@^8.10.0: + version "8.10.0" + resolved "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz#3a06a662130807e2502fc3ff8b4143d8a0658e11" + integrity sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg== eslint-import-resolver-node@^0.3.7: version "0.3.7" @@ -3795,38 +3933,41 @@ eslint-import-resolver-node@^0.3.7: is-core-module "^2.11.0" resolve "^1.22.1" -eslint-module-utils@^2.7.4: - version "2.7.4" - resolved "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz#4f3e41116aaf13a20792261e61d3a2e7e0583974" - integrity sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA== +eslint-module-utils@^2.8.0: + version "2.8.0" + resolved "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz#e439fee65fc33f6bba630ff621efc38ec0375c49" + integrity sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw== dependencies: debug "^3.2.7" -eslint-plugin-import@^2.20.1: - version "2.27.5" - resolved "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz#876a6d03f52608a3e5bb439c2550588e51dd6c65" - integrity sha512-LmEt3GVofgiGuiE+ORpnvP+kAm3h6MLZJ4Q5HCyHADofsb4VzXFsRiWj3c0OFiV+3DWFh0qg3v9gcPlfc3zRow== +eslint-plugin-import@^2.28.0: + version "2.28.0" + resolved "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.28.0.tgz#8d66d6925117b06c4018d491ae84469eb3cb1005" + integrity sha512-B8s/n+ZluN7sxj9eUf7/pRFERX0r5bnFA2dCaLHy2ZeaQEAz0k+ZZkFWRFHJAqxfxQDx6KLv9LeIki7cFdwW+Q== dependencies: array-includes "^3.1.6" + array.prototype.findlastindex "^1.2.2" array.prototype.flat "^1.3.1" array.prototype.flatmap "^1.3.1" debug "^3.2.7" doctrine "^2.1.0" eslint-import-resolver-node "^0.3.7" - eslint-module-utils "^2.7.4" + eslint-module-utils "^2.8.0" has "^1.0.3" - is-core-module "^2.11.0" + is-core-module "^2.12.1" is-glob "^4.0.3" minimatch "^3.1.2" + object.fromentries "^2.0.6" + object.groupby "^1.0.0" object.values "^1.1.6" - resolve "^1.22.1" - semver "^6.3.0" - tsconfig-paths "^3.14.1" + resolve "^1.22.3" + semver "^6.3.1" + tsconfig-paths "^3.14.2" -eslint-plugin-jest@^27.0.0: - version "27.2.2" - resolved "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.2.2.tgz#be4ded5f91905d9ec89aa8968d39c71f3b072c0c" - integrity sha512-euzbp06F934Z7UDl5ZUaRPLAc9MKjh0rMPERrHT7UhlCEwgb25kBj37TvMgWeHZVkR5I9CayswrpoaqZU1RImw== +eslint-plugin-jest@^27.2.3: + version "27.2.3" + resolved "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.2.3.tgz#6f8a4bb2ca82c0c5d481d1b3be256ab001f5a3ec" + integrity sha512-sRLlSCpICzWuje66Gl9zvdF6mwD5X86I4u55hJyFBsxYOsBCmT5+kSUjf+fkFWVMMgpzNEupjW8WzUqi83hJAQ== dependencies: "@typescript-eslint/utils" "^5.10.0" @@ -3838,10 +3979,10 @@ eslint-scope@^5.1.1: esrecurse "^4.3.0" estraverse "^4.1.1" -eslint-scope@^7.2.0: - version "7.2.0" - resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.0.tgz#f21ebdafda02352f103634b96dd47d9f81ca117b" - integrity sha512-DYj5deGlHBfMt15J7rdtyKNq/Nqlv5KfU4iodrQ019XESsRnwXH9KAE0y3cwtUHDo2ob7CypAnCqefh6vioWRw== +eslint-scope@^7.2.2: + version "7.2.2" + resolved "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz#deb4f92563390f32006894af62a22dba1c46423f" + integrity sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg== dependencies: esrecurse "^4.3.0" estraverse "^5.2.0" @@ -3851,27 +3992,32 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1: resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz#c22c48f48942d08ca824cc526211ae400478a994" integrity sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA== -eslint@^8.0.0: - version "8.43.0" - resolved "https://registry.npmjs.org/eslint/-/eslint-8.43.0.tgz#3e8c6066a57097adfd9d390b8fc93075f257a094" - integrity sha512-aaCpf2JqqKesMFGgmRPessmVKjcGXqdlAYLLC3THM8t5nBRZRQ+st5WM/hoJXkdioEXLLbXgclUpM0TXo5HX5Q== +eslint-visitor-keys@^3.4.2: + version "3.4.2" + resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.2.tgz#8c2095440eca8c933bedcadf16fefa44dbe9ba5f" + integrity sha512-8drBzUEyZ2llkpCA67iYrgEssKDUu68V8ChqqOfFupIaG/LCVPUT+CoGJpT77zJprs4T/W7p07LP7zAIMuweVw== + +eslint@^8.46.0: + version "8.46.0" + resolved "https://registry.npmjs.org/eslint/-/eslint-8.46.0.tgz#a06a0ff6974e53e643acc42d1dcf2e7f797b3552" + integrity sha512-cIO74PvbW0qU8e0mIvk5IV3ToWdCq5FYG6gWPHHkx6gNdjlbAYvtfHmlCMXxjcoVaIdwy/IAt3+mDkZkfvb2Dg== dependencies: "@eslint-community/eslint-utils" "^4.2.0" - "@eslint-community/regexpp" "^4.4.0" - "@eslint/eslintrc" "^2.0.3" - "@eslint/js" "8.43.0" + "@eslint-community/regexpp" "^4.6.1" + "@eslint/eslintrc" "^2.1.1" + "@eslint/js" "^8.46.0" "@humanwhocodes/config-array" "^0.11.10" "@humanwhocodes/module-importer" "^1.0.1" "@nodelib/fs.walk" "^1.2.8" - ajv "^6.10.0" + ajv "^6.12.4" chalk "^4.0.0" cross-spawn "^7.0.2" debug "^4.3.2" doctrine "^3.0.0" escape-string-regexp "^4.0.0" - eslint-scope "^7.2.0" - eslint-visitor-keys "^3.4.1" - espree "^9.5.2" + eslint-scope "^7.2.2" + eslint-visitor-keys "^3.4.2" + espree "^9.6.1" esquery "^1.4.2" esutils "^2.0.2" fast-deep-equal "^3.1.3" @@ -3881,7 +4027,6 @@ eslint@^8.0.0: globals "^13.19.0" graphemer "^1.4.0" ignore "^5.2.0" - import-fresh "^3.0.0" imurmurhash "^0.1.4" is-glob "^4.0.0" is-path-inside "^3.0.3" @@ -3891,17 +4036,16 @@ eslint@^8.0.0: lodash.merge "^4.6.2" minimatch "^3.1.2" natural-compare "^1.4.0" - optionator "^0.9.1" + optionator "^0.9.3" strip-ansi "^6.0.1" - strip-json-comments "^3.1.0" text-table "^0.2.0" -espree@^9.5.2: - version "9.5.2" - resolved "https://registry.npmjs.org/espree/-/espree-9.5.2.tgz#e994e7dc33a082a7a82dceaf12883a829353215b" - integrity sha512-7OASN1Wma5fum5SrNhFMAMJxOUAbhyfQ8dQ//PJaJbNw0URTPWqIghHWt1MmAANKhHZIYOHruW4Kw4ruUWOdGw== +espree@^9.6.0, espree@^9.6.1: + version "9.6.1" + resolved "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz#a2a17b8e434690a5432f2f8018ce71d331a48c6f" + integrity sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ== dependencies: - acorn "^8.8.0" + acorn "^8.9.0" acorn-jsx "^5.3.2" eslint-visitor-keys "^3.4.1" @@ -3998,7 +4142,7 @@ expand-tilde@^2.0.0, expand-tilde@^2.0.2: dependencies: homedir-polyfill "^1.0.1" -expect@^29.0.0, expect@^29.5.0: +expect@^29.0.0: version "29.5.0" resolved "https://registry.npmjs.org/expect/-/expect-29.5.0.tgz#68c0509156cb2a0adb8865d413b137eeaae682f7" integrity sha512-yM7xqUrCO2JdpFo4XpM82t+PJBFybdqoQuJLDGeDX2ij8NZzqRHyu3Hp188/JX7SWqud+7t4MUdvcgGBICMHZg== @@ -4009,6 +4153,18 @@ expect@^29.0.0, expect@^29.5.0: jest-message-util "^29.5.0" jest-util "^29.5.0" +expect@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/expect/-/expect-29.6.2.tgz#7b08e83eba18ddc4a2cf62b5f2d1918f5cd84521" + integrity sha512-iAErsLxJ8C+S02QbLAwgSGSezLQK+XXRDt8IuFXFpwCNw2ECmzZSmjKcCaFVp5VRMk+WAvz6h6jokzEzBFZEuA== + dependencies: + "@jest/expect-utils" "^29.6.2" + "@types/node" "*" + jest-get-type "^29.4.3" + jest-matcher-utils "^29.6.2" + jest-message-util "^29.6.2" + jest-util "^29.6.2" + external-editor@^3.0.3: version "3.1.0" resolved "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz#cb03f740befae03ea4d283caed2741a83f335495" @@ -4034,7 +4190,7 @@ fast-glob@3.2.7: merge2 "^1.3.0" micromatch "^4.0.4" -fast-glob@^3.2.12, fast-glob@^3.2.9: +fast-glob@^3.2.9: version "3.2.12" resolved "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz#7f39ec99c2e6ab030337142da9e0c18f37afae80" integrity sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w== @@ -4045,6 +4201,17 @@ fast-glob@^3.2.12, fast-glob@^3.2.9: merge2 "^1.3.0" micromatch "^4.0.4" +fast-glob@^3.3.1: + version "3.3.1" + resolved "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz#784b4e897340f3dbbef17413b3f11acf03c874c4" + integrity sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + fast-json-stable-stringify@^2.0.0, fast-json-stable-stringify@^2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" @@ -4282,7 +4449,7 @@ function.prototype.name@^1.1.5: es-abstract "^1.19.0" functions-have-names "^1.2.2" -functions-have-names@^1.2.2: +functions-have-names@^1.2.2, functions-have-names@^1.2.3: version "1.2.3" resolved "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== @@ -4320,6 +4487,16 @@ get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3: has "^1.0.3" has-symbols "^1.0.3" +get-intrinsic@^1.2.0, get-intrinsic@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz#d295644fed4505fc9cde952c37ee12b477a83d82" + integrity sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw== + dependencies: + function-bind "^1.1.1" + has "^1.0.3" + has-proto "^1.0.1" + has-symbols "^1.0.3" + get-package-type@^0.1.0: version "0.1.0" resolved "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" @@ -4904,6 +5081,15 @@ internal-slot@^1.0.4: has "^1.0.3" side-channel "^1.0.4" +internal-slot@^1.0.5: + version "1.0.5" + resolved "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz#f2a2ee21f668f8627a4667f309dc0f4fb6674986" + integrity sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ== + dependencies: + get-intrinsic "^1.2.0" + has "^1.0.3" + side-channel "^1.0.4" + ip@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz#4cf4ab182fee2314c75ede1276f8c80b479936da" @@ -4918,6 +5104,15 @@ is-array-buffer@^3.0.1: get-intrinsic "^1.1.3" is-typed-array "^1.1.10" +is-array-buffer@^3.0.2: + version "3.0.2" + resolved "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz#f2653ced8412081638ecb0ebbd0c41c6e0aecbbe" + integrity sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.2.0" + is-typed-array "^1.1.10" + is-arrayish@^0.2.1: version "0.2.1" resolved "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" @@ -4964,6 +5159,13 @@ is-core-module@^2.11.0, is-core-module@^2.5.0, is-core-module@^2.8.1: dependencies: has "^1.0.3" +is-core-module@^2.12.0, is-core-module@^2.12.1: + version "2.12.1" + resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz#0c0b6885b6f80011c71541ce15c8d66cf5a4f9fd" + integrity sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg== + dependencies: + has "^1.0.3" + is-core-module@^2.9.0: version "2.12.0" resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.0.tgz#36ad62f6f73c8253fd6472517a12483cf03e7ec4" @@ -5195,6 +5397,11 @@ is-yarn-global@^0.3.0: resolved "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz#d502d3382590ea3004893746754c89139973e232" integrity sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw== +isarray@^2.0.5: + version "2.0.5" + resolved "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723" + integrity sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw== + isarray@~1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" @@ -5270,75 +5477,75 @@ jest-changed-files@^29.5.0: execa "^5.0.0" p-limit "^3.1.0" -jest-circus@^29.5.0: - version "29.5.0" - resolved "https://registry.npmjs.org/jest-circus/-/jest-circus-29.5.0.tgz#b5926989449e75bff0d59944bae083c9d7fb7317" - integrity sha512-gq/ongqeQKAplVxqJmbeUOJJKkW3dDNPY8PjhJ5G0lBRvu0e3EWGxGy5cI4LAGA7gV2UHCtWBI4EMXK8c9nQKA== +jest-circus@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest-circus/-/jest-circus-29.6.2.tgz#1e6ffca60151ac66cad63fce34f443f6b5bb4258" + integrity sha512-G9mN+KOYIUe2sB9kpJkO9Bk18J4dTDArNFPwoZ7WKHKel55eKIS/u2bLthxgojwlf9NLCVQfgzM/WsOVvoC6Fw== dependencies: - "@jest/environment" "^29.5.0" - "@jest/expect" "^29.5.0" - "@jest/test-result" "^29.5.0" - "@jest/types" "^29.5.0" + "@jest/environment" "^29.6.2" + "@jest/expect" "^29.6.2" + "@jest/test-result" "^29.6.2" + "@jest/types" "^29.6.1" "@types/node" "*" chalk "^4.0.0" co "^4.6.0" - dedent "^0.7.0" + dedent "^1.0.0" is-generator-fn "^2.0.0" - jest-each "^29.5.0" - jest-matcher-utils "^29.5.0" - jest-message-util "^29.5.0" - jest-runtime "^29.5.0" - jest-snapshot "^29.5.0" - jest-util "^29.5.0" + jest-each "^29.6.2" + jest-matcher-utils "^29.6.2" + jest-message-util "^29.6.2" + jest-runtime "^29.6.2" + jest-snapshot "^29.6.2" + jest-util "^29.6.2" p-limit "^3.1.0" - pretty-format "^29.5.0" + pretty-format "^29.6.2" pure-rand "^6.0.0" slash "^3.0.0" stack-utils "^2.0.3" -jest-cli@^29.5.0: - version "29.5.0" - resolved "https://registry.npmjs.org/jest-cli/-/jest-cli-29.5.0.tgz#b34c20a6d35968f3ee47a7437ff8e53e086b4a67" - integrity sha512-L1KcP1l4HtfwdxXNFCL5bmUbLQiKrakMUriBEcc1Vfz6gx31ORKdreuWvmQVBit+1ss9NNR3yxjwfwzZNdQXJw== +jest-cli@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest-cli/-/jest-cli-29.6.2.tgz#edb381763398d1a292cd1b636a98bfa5644b8fda" + integrity sha512-TT6O247v6dCEX2UGHGyflMpxhnrL0DNqP2fRTKYm3nJJpCTfXX3GCMQPGFjXDoj0i5/Blp3jriKXFgdfmbYB6Q== dependencies: - "@jest/core" "^29.5.0" - "@jest/test-result" "^29.5.0" - "@jest/types" "^29.5.0" + "@jest/core" "^29.6.2" + "@jest/test-result" "^29.6.2" + "@jest/types" "^29.6.1" chalk "^4.0.0" exit "^0.1.2" graceful-fs "^4.2.9" import-local "^3.0.2" - jest-config "^29.5.0" - jest-util "^29.5.0" - jest-validate "^29.5.0" + jest-config "^29.6.2" + jest-util "^29.6.2" + jest-validate "^29.6.2" prompts "^2.0.1" yargs "^17.3.1" -jest-config@^29.5.0: - version "29.5.0" - resolved "https://registry.npmjs.org/jest-config/-/jest-config-29.5.0.tgz#3cc972faec8c8aaea9ae158c694541b79f3748da" - integrity sha512-kvDUKBnNJPNBmFFOhDbm59iu1Fii1Q6SxyhXfvylq3UTHbg6o7j/g8k2dZyXWLvfdKB1vAPxNZnMgtKJcmu3kA== +jest-config@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest-config/-/jest-config-29.6.2.tgz#c68723f06b31ca5e63030686e604727d406cd7c3" + integrity sha512-VxwFOC8gkiJbuodG9CPtMRjBUNZEHxwfQXmIudSTzFWxaci3Qub1ddTRbFNQlD/zUeaifLndh/eDccFX4wCMQw== dependencies: "@babel/core" "^7.11.6" - "@jest/test-sequencer" "^29.5.0" - "@jest/types" "^29.5.0" - babel-jest "^29.5.0" + "@jest/test-sequencer" "^29.6.2" + "@jest/types" "^29.6.1" + babel-jest "^29.6.2" chalk "^4.0.0" ci-info "^3.2.0" deepmerge "^4.2.2" glob "^7.1.3" graceful-fs "^4.2.9" - jest-circus "^29.5.0" - jest-environment-node "^29.5.0" + jest-circus "^29.6.2" + jest-environment-node "^29.6.2" jest-get-type "^29.4.3" jest-regex-util "^29.4.3" - jest-resolve "^29.5.0" - jest-runner "^29.5.0" - jest-util "^29.5.0" - jest-validate "^29.5.0" + jest-resolve "^29.6.2" + jest-runner "^29.6.2" + jest-util "^29.6.2" + jest-validate "^29.6.2" micromatch "^4.0.4" parse-json "^5.2.0" - pretty-format "^29.5.0" + pretty-format "^29.6.2" slash "^3.0.0" strip-json-comments "^3.1.1" @@ -5352,6 +5559,16 @@ jest-diff@^29.5.0: jest-get-type "^29.4.3" pretty-format "^29.5.0" +jest-diff@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.2.tgz#c36001e5543e82a0805051d3ceac32e6825c1c46" + integrity sha512-t+ST7CB9GX5F2xKwhwCf0TAR17uNDiaPTZnVymP9lw0lssa9vG+AFyDZoeIHStU3WowFFwT+ky+er0WVl2yGhA== + dependencies: + chalk "^4.0.0" + diff-sequences "^29.4.3" + jest-get-type "^29.4.3" + pretty-format "^29.6.2" + jest-docblock@^29.4.3: version "29.4.3" resolved "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.4.3.tgz#90505aa89514a1c7dceeac1123df79e414636ea8" @@ -5359,60 +5576,60 @@ jest-docblock@^29.4.3: dependencies: detect-newline "^3.0.0" -jest-each@^29.5.0: - version "29.5.0" - resolved "https://registry.npmjs.org/jest-each/-/jest-each-29.5.0.tgz#fc6e7014f83eac68e22b7195598de8554c2e5c06" - integrity sha512-HM5kIJ1BTnVt+DQZ2ALp3rzXEl+g726csObrW/jpEGl+CDSSQpOJJX2KE/vEg8cxcMXdyEPu6U4QX5eruQv5hA== +jest-each@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest-each/-/jest-each-29.6.2.tgz#c9e4b340bcbe838c73adf46b76817b15712d02ce" + integrity sha512-MsrsqA0Ia99cIpABBc3izS1ZYoYfhIy0NNWqPSE0YXbQjwchyt6B1HD2khzyPe1WiJA7hbxXy77ZoUQxn8UlSw== dependencies: - "@jest/types" "^29.5.0" + "@jest/types" "^29.6.1" chalk "^4.0.0" jest-get-type "^29.4.3" - jest-util "^29.5.0" - pretty-format "^29.5.0" + jest-util "^29.6.2" + pretty-format "^29.6.2" -jest-environment-node@^29.0.1, jest-environment-node@^29.5.0: - version "29.5.0" - resolved "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.5.0.tgz#f17219d0f0cc0e68e0727c58b792c040e332c967" - integrity sha512-ExxuIK/+yQ+6PRGaHkKewYtg6hto2uGCgvKdb2nfJfKXgZ17DfXjvbZ+jA1Qt9A8EQSfPnt5FKIfnOO3u1h9qw== +jest-environment-node@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.6.2.tgz#a9ea2cabff39b08eca14ccb32c8ceb924c8bb1ad" + integrity sha512-YGdFeZ3T9a+/612c5mTQIllvWkddPbYcN2v95ZH24oWMbGA4GGS2XdIF92QMhUhvrjjuQWYgUGW2zawOyH63MQ== dependencies: - "@jest/environment" "^29.5.0" - "@jest/fake-timers" "^29.5.0" - "@jest/types" "^29.5.0" + "@jest/environment" "^29.6.2" + "@jest/fake-timers" "^29.6.2" + "@jest/types" "^29.6.1" "@types/node" "*" - jest-mock "^29.5.0" - jest-util "^29.5.0" + jest-mock "^29.6.2" + jest-util "^29.6.2" jest-get-type@^29.4.3: version "29.4.3" resolved "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz#1ab7a5207c995161100b5187159ca82dd48b3dd5" integrity sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg== -jest-haste-map@^29.5.0: - version "29.5.0" - resolved "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.5.0.tgz#69bd67dc9012d6e2723f20a945099e972b2e94de" - integrity sha512-IspOPnnBro8YfVYSw6yDRKh/TiCdRngjxeacCps1cQ9cgVN6+10JUcuJ1EabrgYLOATsIAigxA0rLR9x/YlrSA== +jest-haste-map@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.6.2.tgz#298c25ea5255cfad8b723179d4295cf3a50a70d1" + integrity sha512-+51XleTDAAysvU8rT6AnS1ZJ+WHVNqhj1k6nTvN2PYP+HjU3kqlaKQ1Lnw3NYW3bm2r8vq82X0Z1nDDHZMzHVA== dependencies: - "@jest/types" "^29.5.0" + "@jest/types" "^29.6.1" "@types/graceful-fs" "^4.1.3" "@types/node" "*" anymatch "^3.0.3" fb-watchman "^2.0.0" graceful-fs "^4.2.9" jest-regex-util "^29.4.3" - jest-util "^29.5.0" - jest-worker "^29.5.0" + jest-util "^29.6.2" + jest-worker "^29.6.2" micromatch "^4.0.4" walker "^1.0.8" optionalDependencies: fsevents "^2.3.2" -jest-leak-detector@^29.5.0: - version "29.5.0" - resolved "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.5.0.tgz#cf4bdea9615c72bac4a3a7ba7e7930f9c0610c8c" - integrity sha512-u9YdeeVnghBUtpN5mVxjID7KbkKE1QU4f6uUwuxiY0vYRi9BUCLKlPEZfDGR67ofdFmDz9oPAy2G92Ujrntmow== +jest-leak-detector@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.6.2.tgz#e2b307fee78cab091c37858a98c7e1d73cdf5b38" + integrity sha512-aNqYhfp5uYEO3tdWMb2bfWv6f0b4I0LOxVRpnRLAeque2uqOVVMLh6khnTcE2qJ5wAKop0HcreM1btoysD6bPQ== dependencies: jest-get-type "^29.4.3" - pretty-format "^29.5.0" + pretty-format "^29.6.2" jest-matcher-utils@^29.5.0: version "29.5.0" @@ -5424,6 +5641,16 @@ jest-matcher-utils@^29.5.0: jest-get-type "^29.4.3" pretty-format "^29.5.0" +jest-matcher-utils@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.6.2.tgz#39de0be2baca7a64eacb27291f0bd834fea3a535" + integrity sha512-4LiAk3hSSobtomeIAzFTe+N8kL6z0JtF3n6I4fg29iIW7tt99R7ZcIFW34QkX+DuVrf+CUe6wuVOpm7ZKFJzZQ== + dependencies: + chalk "^4.0.0" + jest-diff "^29.6.2" + jest-get-type "^29.4.3" + pretty-format "^29.6.2" + jest-message-util@^29.5.0: version "29.5.0" resolved "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.5.0.tgz#1f776cac3aca332ab8dd2e3b41625435085c900e" @@ -5439,14 +5666,29 @@ jest-message-util@^29.5.0: slash "^3.0.0" stack-utils "^2.0.3" -jest-mock@^29.5.0: - version "29.5.0" - resolved "https://registry.npmjs.org/jest-mock/-/jest-mock-29.5.0.tgz#26e2172bcc71d8b0195081ff1f146ac7e1518aed" - integrity sha512-GqOzvdWDE4fAV2bWQLQCkujxYWL7RxjCnj71b5VhDAGOevB3qj3Ovg26A5NI84ZpODxyzaozXLOh2NCgkbvyaw== +jest-message-util@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.6.2.tgz#af7adc2209c552f3f5ae31e77cf0a261f23dc2bb" + integrity sha512-vnIGYEjoPSuRqV8W9t+Wow95SDp6KPX2Uf7EoeG9G99J2OVh7OSwpS4B6J0NfpEIpfkBNHlBZpA2rblEuEFhZQ== dependencies: - "@jest/types" "^29.5.0" + "@babel/code-frame" "^7.12.13" + "@jest/types" "^29.6.1" + "@types/stack-utils" "^2.0.0" + chalk "^4.0.0" + graceful-fs "^4.2.9" + micromatch "^4.0.4" + pretty-format "^29.6.2" + slash "^3.0.0" + stack-utils "^2.0.3" + +jest-mock@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest-mock/-/jest-mock-29.6.2.tgz#ef9c9b4d38c34a2ad61010a021866dad41ce5e00" + integrity sha512-hoSv3lb3byzdKfwqCuT6uTscan471GUECqgNYykg6ob0yiAw3zYc7OrPnI9Qv8Wwoa4lC7AZ9hyS4AiIx5U2zg== + dependencies: + "@jest/types" "^29.6.1" "@types/node" "*" - jest-util "^29.5.0" + jest-util "^29.6.2" jest-pnp-resolver@^1.2.2: version "1.2.3" @@ -5458,112 +5700,109 @@ jest-regex-util@^29.4.3: resolved "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.4.3.tgz#a42616141e0cae052cfa32c169945d00c0aa0bb8" integrity sha512-O4FglZaMmWXbGHSQInfXewIsd1LMn9p3ZXB/6r4FOkyhX2/iP/soMG98jGvk/A3HAN78+5VWcBGO0BJAPRh4kg== -jest-resolve-dependencies@^29.5.0: - version "29.5.0" - resolved "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.5.0.tgz#f0ea29955996f49788bf70996052aa98e7befee4" - integrity sha512-sjV3GFr0hDJMBpYeUuGduP+YeCRbd7S/ck6IvL3kQ9cpySYKqcqhdLLC2rFwrcL7tz5vYibomBrsFYWkIGGjOg== +jest-resolve-dependencies@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.6.2.tgz#36435269b6672c256bcc85fb384872c134cc4cf2" + integrity sha512-LGqjDWxg2fuQQm7ypDxduLu/m4+4Lb4gczc13v51VMZbVP5tSBILqVx8qfWcsdP8f0G7aIqByIALDB0R93yL+w== dependencies: jest-regex-util "^29.4.3" - jest-snapshot "^29.5.0" + jest-snapshot "^29.6.2" -jest-resolve@^29.5.0: - version "29.5.0" - resolved "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.5.0.tgz#b053cc95ad1d5f6327f0ac8aae9f98795475ecdc" - integrity sha512-1TzxJ37FQq7J10jPtQjcc+MkCkE3GBpBecsSUWJ0qZNJpmg6m0D9/7II03yJulm3H/fvVjgqLh/k2eYg+ui52w== +jest-resolve@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.6.2.tgz#f18405fe4b50159b7b6d85e81f6a524d22afb838" + integrity sha512-G/iQUvZWI5e3SMFssc4ug4dH0aZiZpsDq9o1PtXTV1210Ztyb2+w+ZgQkB3iOiC5SmAEzJBOHWz6Hvrd+QnNPw== dependencies: chalk "^4.0.0" graceful-fs "^4.2.9" - jest-haste-map "^29.5.0" + jest-haste-map "^29.6.2" jest-pnp-resolver "^1.2.2" - jest-util "^29.5.0" - jest-validate "^29.5.0" + jest-util "^29.6.2" + jest-validate "^29.6.2" resolve "^1.20.0" resolve.exports "^2.0.0" slash "^3.0.0" -jest-runner@^29.5.0: - version "29.5.0" - resolved "https://registry.npmjs.org/jest-runner/-/jest-runner-29.5.0.tgz#6a57c282eb0ef749778d444c1d758c6a7693b6f8" - integrity sha512-m7b6ypERhFghJsslMLhydaXBiLf7+jXy8FwGRHO3BGV1mcQpPbwiqiKUR2zU2NJuNeMenJmlFZCsIqzJCTeGLQ== +jest-runner@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest-runner/-/jest-runner-29.6.2.tgz#89e8e32a8fef24781a7c4c49cd1cb6358ac7fc01" + integrity sha512-wXOT/a0EspYgfMiYHxwGLPCZfC0c38MivAlb2lMEAlwHINKemrttu1uSbcGbfDV31sFaPWnWJPmb2qXM8pqZ4w== dependencies: - "@jest/console" "^29.5.0" - "@jest/environment" "^29.5.0" - "@jest/test-result" "^29.5.0" - "@jest/transform" "^29.5.0" - "@jest/types" "^29.5.0" + "@jest/console" "^29.6.2" + "@jest/environment" "^29.6.2" + "@jest/test-result" "^29.6.2" + "@jest/transform" "^29.6.2" + "@jest/types" "^29.6.1" "@types/node" "*" chalk "^4.0.0" emittery "^0.13.1" graceful-fs "^4.2.9" jest-docblock "^29.4.3" - jest-environment-node "^29.5.0" - jest-haste-map "^29.5.0" - jest-leak-detector "^29.5.0" - jest-message-util "^29.5.0" - jest-resolve "^29.5.0" - jest-runtime "^29.5.0" - jest-util "^29.5.0" - jest-watcher "^29.5.0" - jest-worker "^29.5.0" + jest-environment-node "^29.6.2" + jest-haste-map "^29.6.2" + jest-leak-detector "^29.6.2" + jest-message-util "^29.6.2" + jest-resolve "^29.6.2" + jest-runtime "^29.6.2" + jest-util "^29.6.2" + jest-watcher "^29.6.2" + jest-worker "^29.6.2" p-limit "^3.1.0" source-map-support "0.5.13" -jest-runtime@^29.5.0: - version "29.5.0" - resolved "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.5.0.tgz#c83f943ee0c1da7eb91fa181b0811ebd59b03420" - integrity sha512-1Hr6Hh7bAgXQP+pln3homOiEZtCDZFqwmle7Ew2j8OlbkIu6uE3Y/etJQG8MLQs3Zy90xrp2C0BRrtPHG4zryw== - dependencies: - "@jest/environment" "^29.5.0" - "@jest/fake-timers" "^29.5.0" - "@jest/globals" "^29.5.0" - "@jest/source-map" "^29.4.3" - "@jest/test-result" "^29.5.0" - "@jest/transform" "^29.5.0" - "@jest/types" "^29.5.0" +jest-runtime@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.6.2.tgz#692f25e387f982e89ab83270e684a9786248e545" + integrity sha512-2X9dqK768KufGJyIeLmIzToDmsN0m7Iek8QNxRSI/2+iPFYHF0jTwlO3ftn7gdKd98G/VQw9XJCk77rbTGZnJg== + dependencies: + "@jest/environment" "^29.6.2" + "@jest/fake-timers" "^29.6.2" + "@jest/globals" "^29.6.2" + "@jest/source-map" "^29.6.0" + "@jest/test-result" "^29.6.2" + "@jest/transform" "^29.6.2" + "@jest/types" "^29.6.1" "@types/node" "*" chalk "^4.0.0" cjs-module-lexer "^1.0.0" collect-v8-coverage "^1.0.0" glob "^7.1.3" graceful-fs "^4.2.9" - jest-haste-map "^29.5.0" - jest-message-util "^29.5.0" - jest-mock "^29.5.0" + jest-haste-map "^29.6.2" + jest-message-util "^29.6.2" + jest-mock "^29.6.2" jest-regex-util "^29.4.3" - jest-resolve "^29.5.0" - jest-snapshot "^29.5.0" - jest-util "^29.5.0" + jest-resolve "^29.6.2" + jest-snapshot "^29.6.2" + jest-util "^29.6.2" slash "^3.0.0" strip-bom "^4.0.0" -jest-snapshot@^29.5.0: - version "29.5.0" - resolved "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.5.0.tgz#c9c1ce0331e5b63cd444e2f95a55a73b84b1e8ce" - integrity sha512-x7Wolra5V0tt3wRs3/ts3S6ciSQVypgGQlJpz2rsdQYoUKxMxPNaoHMGJN6qAuPJqS+2iQ1ZUn5kl7HCyls84g== +jest-snapshot@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.6.2.tgz#9b431b561a83f2bdfe041e1cab8a6becdb01af9c" + integrity sha512-1OdjqvqmRdGNvWXr/YZHuyhh5DeaLp1p/F8Tht/MrMw4Kr1Uu/j4lRG+iKl1DAqUJDWxtQBMk41Lnf/JETYBRA== dependencies: "@babel/core" "^7.11.6" "@babel/generator" "^7.7.2" "@babel/plugin-syntax-jsx" "^7.7.2" "@babel/plugin-syntax-typescript" "^7.7.2" - "@babel/traverse" "^7.7.2" "@babel/types" "^7.3.3" - "@jest/expect-utils" "^29.5.0" - "@jest/transform" "^29.5.0" - "@jest/types" "^29.5.0" - "@types/babel__traverse" "^7.0.6" - "@types/prettier" "^2.1.5" + "@jest/expect-utils" "^29.6.2" + "@jest/transform" "^29.6.2" + "@jest/types" "^29.6.1" babel-preset-current-node-syntax "^1.0.0" chalk "^4.0.0" - expect "^29.5.0" + expect "^29.6.2" graceful-fs "^4.2.9" - jest-diff "^29.5.0" + jest-diff "^29.6.2" jest-get-type "^29.4.3" - jest-matcher-utils "^29.5.0" - jest-message-util "^29.5.0" - jest-util "^29.5.0" + jest-matcher-utils "^29.6.2" + jest-message-util "^29.6.2" + jest-util "^29.6.2" natural-compare "^1.4.0" - pretty-format "^29.5.0" - semver "^7.3.5" + pretty-format "^29.6.2" + semver "^7.5.3" jest-util@^29.5.0: version "29.5.0" @@ -5577,51 +5816,63 @@ jest-util@^29.5.0: graceful-fs "^4.2.9" picomatch "^2.2.3" -jest-validate@^29.5.0: - version "29.5.0" - resolved "https://registry.npmjs.org/jest-validate/-/jest-validate-29.5.0.tgz#8e5a8f36178d40e47138dc00866a5f3bd9916ffc" - integrity sha512-pC26etNIi+y3HV8A+tUGr/lph9B18GnzSRAkPaaZJIE1eFdiYm6/CewuiJQ8/RlfHd1u/8Ioi8/sJ+CmbA+zAQ== +jest-util@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest-util/-/jest-util-29.6.2.tgz#8a052df8fff2eebe446769fd88814521a517664d" + integrity sha512-3eX1qb6L88lJNCFlEADKOkjpXJQyZRiavX1INZ4tRnrBVr2COd3RgcTLyUiEXMNBlDU/cgYq6taUS0fExrWW4w== dependencies: - "@jest/types" "^29.5.0" + "@jest/types" "^29.6.1" + "@types/node" "*" + chalk "^4.0.0" + ci-info "^3.2.0" + graceful-fs "^4.2.9" + picomatch "^2.2.3" + +jest-validate@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest-validate/-/jest-validate-29.6.2.tgz#25d972af35b2415b83b1373baf1a47bb266c1082" + integrity sha512-vGz0yMN5fUFRRbpJDPwxMpgSXW1LDKROHfBopAvDcmD6s+B/s8WJrwi+4bfH4SdInBA5C3P3BI19dBtKzx1Arg== + dependencies: + "@jest/types" "^29.6.1" camelcase "^6.2.0" chalk "^4.0.0" jest-get-type "^29.4.3" leven "^3.1.0" - pretty-format "^29.5.0" + pretty-format "^29.6.2" -jest-watcher@^29.5.0: - version "29.5.0" - resolved "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.5.0.tgz#cf7f0f949828ba65ddbbb45c743a382a4d911363" - integrity sha512-KmTojKcapuqYrKDpRwfqcQ3zjMlwu27SYext9pt4GlF5FUgB+7XE1mcCnSm6a4uUpFyQIkb6ZhzZvHl+jiBCiA== +jest-watcher@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.6.2.tgz#77c224674f0620d9f6643c4cfca186d8893ca088" + integrity sha512-GZitlqkMkhkefjfN/p3SJjrDaxPflqxEAv3/ik10OirZqJGYH5rPiIsgVcfof0Tdqg3shQGdEIxDBx+B4tuLzA== dependencies: - "@jest/test-result" "^29.5.0" - "@jest/types" "^29.5.0" + "@jest/test-result" "^29.6.2" + "@jest/types" "^29.6.1" "@types/node" "*" ansi-escapes "^4.2.1" chalk "^4.0.0" emittery "^0.13.1" - jest-util "^29.5.0" + jest-util "^29.6.2" string-length "^4.0.1" -jest-worker@^29.5.0: - version "29.5.0" - resolved "https://registry.npmjs.org/jest-worker/-/jest-worker-29.5.0.tgz#bdaefb06811bd3384d93f009755014d8acb4615d" - integrity sha512-NcrQnevGoSp4b5kg+akIpthoAFHxPBcb5P6mYPY0fUNT+sSvmtu6jlkEle3anczUKIKEbMxFimk9oTP/tpIPgA== +jest-worker@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest-worker/-/jest-worker-29.6.2.tgz#682fbc4b6856ad0aa122a5403c6d048b83f3fb44" + integrity sha512-l3ccBOabTdkng8I/ORCkADz4eSMKejTYv1vB/Z83UiubqhC1oQ5Li6dWCyqOIvSifGjUBxuvxvlm6KGK2DtuAQ== dependencies: "@types/node" "*" - jest-util "^29.5.0" + jest-util "^29.6.2" merge-stream "^2.0.0" supports-color "^8.0.0" -jest@^29.0.1: - version "29.5.0" - resolved "https://registry.npmjs.org/jest/-/jest-29.5.0.tgz#f75157622f5ce7ad53028f2f8888ab53e1f1f24e" - integrity sha512-juMg3he2uru1QoXX078zTa7pO85QyB9xajZc6bU+d9yEGwrKX6+vGmJQ3UdVZsvTEUARIdObzH68QItim6OSSQ== +jest@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/jest/-/jest-29.6.2.tgz#3bd55b9fd46a161b2edbdf5f1d1bd0d1eab76c42" + integrity sha512-8eQg2mqFbaP7CwfsTpCxQ+sHzw1WuNWL5UUvjnWP4hx2riGz9fPSzYOaU5q8/GqWn1TfgZIVTqYJygbGbWAANg== dependencies: - "@jest/core" "^29.5.0" - "@jest/types" "^29.5.0" + "@jest/core" "^29.6.2" + "@jest/types" "^29.6.1" import-local "^3.0.2" - jest-cli "^29.5.0" + jest-cli "^29.6.2" js-tokens@^4.0.0: version "4.0.0" @@ -5688,7 +5939,7 @@ json-stringify-safe@^5.0.1: resolved "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== -json5@^1.0.1: +json5@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz#63d98d60f21b313b77c4d6da18bfa69d80e1d593" integrity sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA== @@ -5852,10 +6103,10 @@ lines-and-columns@~2.0.3: resolved "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-2.0.3.tgz#b2f0badedb556b747020ab8ea7f0373e22efac1b" integrity sha512-cNOjgCnLB+FnvWWtyRTzmB3POJ+cXxTA81LoW7u8JdmhfXzriropYwpjShnz1QLLWsQwY7nIxoDmcPTwphDK9w== -lint-staged@13.2.2: - version "13.2.2" - resolved "https://registry.npmjs.org/lint-staged/-/lint-staged-13.2.2.tgz#5e711d3139c234f73402177be2f8dd312e6508ca" - integrity sha512-71gSwXKy649VrSU09s10uAT0rWCcY3aewhMaHyl2N84oBk4Xs9HgxvUp3AYu+bNsK4NrOYYxvSgg7FyGJ+jGcA== +lint-staged@13.2.3: + version "13.2.3" + resolved "https://registry.npmjs.org/lint-staged/-/lint-staged-13.2.3.tgz#f899aad6c093473467e9c9e316e3c2d8a28f87a7" + integrity sha512-zVVEXLuQIhr1Y7R7YAWx4TZLdvuzk7DnmrsTNL0fax6Z3jrpFcas+vKbzxhhvp6TA55m1SQuWkpzI1qbfDZbAg== dependencies: chalk "5.2.0" cli-truncate "^3.1.0" @@ -6128,7 +6379,7 @@ medium-zoom@^1.0.6: resolved "https://registry.npmjs.org/medium-zoom/-/medium-zoom-1.0.6.tgz#9247f21ca9313d8bbe9420aca153a410df08d027" integrity sha512-UdiUWfvz9fZMg1pzf4dcuqA0W079o0mpqbTnOz5ip4VGYX96QjmbM+OgOU/0uOzAytxC0Ny4z+VcYQnhdifimg== -meow@^8.0.0: +meow@^8.0.0, meow@^8.1.2: version "8.1.2" resolved "https://registry.npmjs.org/meow/-/meow-8.1.2.tgz#bcbe45bda0ee1729d350c03cffc8395a36c4e897" integrity sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q== @@ -6694,6 +6945,25 @@ object.assign@^4.1.4: has-symbols "^1.0.3" object-keys "^1.1.1" +object.fromentries@^2.0.6: + version "2.0.6" + resolved "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.6.tgz#cdb04da08c539cffa912dcd368b886e0904bfa73" + integrity sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + +object.groupby@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.0.tgz#cb29259cf90f37e7bac6437686c1ea8c916d12a9" + integrity sha512-70MWG6NfRH9GnbZOikuhPPYzpUpof9iW2J9E4dW7FXTqPNb6rllE6u39SKwwiNh8lCwX3DDb5OgcKGiEBrTTyw== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.21.2" + get-intrinsic "^1.2.1" + object.values@^1.1.6: version "1.1.6" resolved "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz#4abbaa71eba47d63589d402856f908243eea9b1d" @@ -6759,17 +7029,17 @@ opencollective-postinstall@^2.0.2: resolved "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz#7a0fff978f6dbfa4d006238fbac98ed4198c3259" integrity sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q== -optionator@^0.9.1: - version "0.9.1" - resolved "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499" - integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw== +optionator@^0.9.3: + version "0.9.3" + resolved "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz#007397d44ed1872fdc6ed31360190f81814e2c64" + integrity sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg== dependencies: + "@aashutoshrathi/word-wrap" "^1.2.3" deep-is "^0.1.3" fast-levenshtein "^2.0.6" levn "^0.4.1" prelude-ls "^1.2.1" type-check "^0.4.0" - word-wrap "^1.2.3" "opts@>= 1.2.0": version "2.0.2" @@ -7115,10 +7385,10 @@ prepend-http@^2.0.0: resolved "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897" integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc= -prettier@^2.0.5: - version "2.8.8" - resolved "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" - integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== +prettier@^3.0.1: + version "3.0.1" + resolved "https://registry.npmjs.org/prettier/-/prettier-3.0.1.tgz#65271fc9320ce4913c57747a70ce635b30beaa40" + integrity sha512-fcOWSnnpCrovBsmFZIGIy9UqK2FaI7Hqax+DIO0A9UxeVoY4iweyaFjS5TavZN97Hfehph0nhsZnjlVKzEQSrQ== pretty-format@^29.0.0, pretty-format@^29.5.0: version "29.5.0" @@ -7129,6 +7399,15 @@ pretty-format@^29.0.0, pretty-format@^29.5.0: ansi-styles "^5.0.0" react-is "^18.0.0" +pretty-format@^29.6.2: + version "29.6.2" + resolved "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.2.tgz#3d5829261a8a4d89d8b9769064b29c50ed486a47" + integrity sha512-1q0oC8eRveTg5nnBEWMXAU2qpv65Gnuf2eCQzSjxpWFkPaPARwqZZDGuNE0zPAZfTCHzIk3A8dIjwlQKKLphyg== + dependencies: + "@jest/schemas" "^29.6.0" + ansi-styles "^5.0.0" + react-is "^18.0.0" + prismjs@^1.23.0: version "1.27.0" resolved "https://registry.npmjs.org/prismjs/-/prismjs-1.27.0.tgz#bb6ee3138a0b438a3653dd4d6ce0cc6510a45057" @@ -7397,6 +7676,15 @@ regexp.prototype.flags@^1.4.3: define-properties "^1.1.3" functions-have-names "^1.2.2" +regexp.prototype.flags@^1.5.0: + version "1.5.0" + resolved "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.0.tgz#fe7ce25e7e4cca8db37b6634c8a2c7009199b9cb" + integrity sha512-0SutC3pNudRKgquxGoRGIz946MZVHqbNfPjBdxeOhBrdgDKlRoXmYLQN9xRbrR09ZXWeGAdPuif7egofn6v5LA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + functions-have-names "^1.2.3" + registry-auth-token@^4.0.0: version "4.2.1" resolved "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.1.tgz#6d7b4006441918972ccd5fedcd41dc322c79b250" @@ -7493,6 +7781,15 @@ resolve@^1.20.0: path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" +resolve@^1.22.3: + version "1.22.3" + resolved "https://registry.npmjs.org/resolve/-/resolve-1.22.3.tgz#4b4055349ffb962600972da1fdc33c46a4eb3283" + integrity sha512-P8ur/gp/AmbEzjr729bZnLjXK5Z+4P0zhIJgBgzqRih7hL7BOukHGtSTA3ACMY467GRFz3duQsi0bDZdR7DKdw== + dependencies: + is-core-module "^2.12.0" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" + responselike@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7" @@ -7571,6 +7868,16 @@ rxjs@^7.5.5, rxjs@^7.8.0: dependencies: tslib "^2.1.0" +safe-array-concat@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.0.tgz#2064223cba3c08d2ee05148eedbc563cd6d84060" + integrity sha512-9dVEFruWIsnie89yym+xWTAYASdpw3CJV7Li/6zBewGf9z2i1j31rP6jnY0pHEO4QZh6N0K11bFjWmdR8UGdPQ== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.2.0" + has-symbols "^1.0.3" + isarray "^2.0.5" + safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" @@ -7614,10 +7921,10 @@ semver@7.3.4: dependencies: lru-cache "^6.0.0" -semver@7.5.2, semver@^7.0.0, semver@^7.1.1, semver@^7.3.4, semver@^7.3.5: - version "7.5.2" - resolved "https://registry.npmjs.org/semver/-/semver-7.5.2.tgz#5b851e66d1be07c1cdaf37dfc856f543325a2beb" - integrity sha512-SoftuTROv/cRjCze/scjGyiDtcUyxw1rgYQSZY7XTmtR5hX+dm76iDbTH8TkLPHCQmlbQVSSbNZCPM2hb0knnQ== +semver@7.5.4, semver@^7.5.3: + version "7.5.4" + resolved "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" + integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== dependencies: lru-cache "^6.0.0" @@ -7626,6 +7933,18 @@ semver@^6.0.0, semver@^6.2.0, semver@^6.3.0: resolved "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== +semver@^6.3.1: + version "6.3.1" + resolved "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" + integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== + +semver@^7.0.0, semver@^7.1.1, semver@^7.3.4, semver@^7.3.5: + version "7.5.2" + resolved "https://registry.npmjs.org/semver/-/semver-7.5.2.tgz#5b851e66d1be07c1cdaf37dfc856f543325a2beb" + integrity sha512-SoftuTROv/cRjCze/scjGyiDtcUyxw1rgYQSZY7XTmtR5hX+dm76iDbTH8TkLPHCQmlbQVSSbNZCPM2hb0knnQ== + dependencies: + lru-cache "^6.0.0" + semver@^7.3.7: version "7.5.3" resolved "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz#161ce8c2c6b4b3bdca6caadc9fa3317a4c4fe88e" @@ -7816,7 +8135,7 @@ spdx-license-ids@^3.0.0: resolved "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.12.tgz#69077835abe2710b65f03969898b6637b505a779" integrity sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA== -split2@^3.0.0: +split2@^3.0.0, split2@^3.2.2: version "3.2.2" resolved "https://registry.npmjs.org/split2/-/split2-3.2.2.tgz#bf2cf2a37d838312c249c89206fd7a17dd12365f" integrity sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg== @@ -7893,6 +8212,15 @@ string-width@^5.0.0: is-fullwidth-code-point "^4.0.0" strip-ansi "^7.0.1" +string.prototype.trim@^1.2.7: + version "1.2.7" + resolved "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz#a68352740859f6893f14ce3ef1bb3037f7a90533" + integrity sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + string.prototype.trimend@^1.0.6: version "1.0.6" resolved "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz#c4a27fa026d979d79c04f17397f250a462944533" @@ -7992,7 +8320,7 @@ strip-indent@^3.0.0: dependencies: min-indent "^1.0.0" -strip-json-comments@3.1.1, strip-json-comments@^3.0.1, strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: +strip-json-comments@3.1.1, strip-json-comments@^3.0.1, strip-json-comments@^3.1.1: version "3.1.1" resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== @@ -8215,13 +8543,13 @@ ts-node@^10.8.1: v8-compile-cache-lib "^3.0.1" yn "3.1.1" -tsconfig-paths@^3.14.1: - version "3.14.1" - resolved "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz#ba0734599e8ea36c862798e920bcf163277b137a" - integrity sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ== +tsconfig-paths@^3.14.2: + version "3.14.2" + resolved "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz#6e32f1f79412decd261f92d633a9dc1cfa99f088" + integrity sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g== dependencies: "@types/json5" "^0.0.29" - json5 "^1.0.1" + json5 "^1.0.2" minimist "^1.2.6" strip-bom "^3.0.0" @@ -8313,6 +8641,36 @@ type-fest@^2.0.0: resolved "https://registry.npmjs.org/type-fest/-/type-fest-2.0.0.tgz#e9daf5615e89f6d430f34117f88f4ee2cd5a2725" integrity sha512-BoEUnckjP9oiudy3KxlGdudtBAdJQ74Wp7dYwVPkUzBn+cVHOsBXh2zD2jLyqgbuJ1KMNriczZCI7lTBA94dFg== +typed-array-buffer@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz#18de3e7ed7974b0a729d3feecb94338d1472cd60" + integrity sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.2.1" + is-typed-array "^1.1.10" + +typed-array-byte-length@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz#d787a24a995711611fb2b87a4052799517b230d0" + integrity sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA== + dependencies: + call-bind "^1.0.2" + for-each "^0.3.3" + has-proto "^1.0.1" + is-typed-array "^1.1.10" + +typed-array-byte-offset@^1.0.0: + version "1.0.0" + resolved "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz#cbbe89b51fdef9cd6aaf07ad4707340abbc4ea0b" + integrity sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg== + dependencies: + available-typed-arrays "^1.0.5" + call-bind "^1.0.2" + for-each "^0.3.3" + has-proto "^1.0.1" + is-typed-array "^1.1.10" + typed-array-length@^1.0.4: version "1.0.4" resolved "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz#89d83785e5c4098bec72e08b319651f0eac9c1bb" @@ -8550,6 +8908,17 @@ which-module@^2.0.0: resolved "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= +which-typed-array@^1.1.10: + version "1.1.11" + resolved "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.11.tgz#99d691f23c72aab6768680805a271b69761ed61a" + integrity sha512-qe9UWWpkeG5yzZ0tNYxDmd7vo58HDBc39mZ0xWWpolAGADdFOzkfamWLDxkOWcvHQKVmdTyQdLD4NOfjLWTKew== + dependencies: + available-typed-arrays "^1.0.5" + call-bind "^1.0.2" + for-each "^0.3.3" + gopd "^1.0.1" + has-tostringtag "^1.0.0" + which-typed-array@^1.1.9: version "1.1.9" resolved "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz#307cf898025848cf995e795e8423c7f337efbde6" @@ -8590,11 +8959,16 @@ widest-line@^3.1.0: dependencies: string-width "^4.0.0" -word-wrap@^1.0.3, word-wrap@^1.2.3: +word-wrap@^1.0.3: version "1.2.4" resolved "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.4.tgz#cb4b50ec9aca570abd1f52f33cd45b6c61739a9f" integrity sha512-2V81OA4ugVo5pRo46hAoD2ivUJx8jXmWXfUkY4KFNw0hEptvN0QfH3K4nHiwzGeKl5rFKedV48QVoqYavy4YpA== +word-wrap@^1.2.5: + version "1.2.5" + resolved "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34" + integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== + wordwrap@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"