diff --git a/package.json b/package.json index 101bf815cf0..2c339bdb850 100644 --- a/package.json +++ b/package.json @@ -112,7 +112,7 @@ "eslint": "^9.2.0", "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-jest": "^28.5.0", - "eslint-plugin-n": "^17.4.0", + "eslint-plugin-n": "^17.5.1", "eslint-plugin-simple-import-sort": "^12.1.0", "eslint-plugin-unicorn": "^52.0.0", "inject-markdown": "^3.0.0", diff --git a/packages/cspell-eslint-plugin/package.json b/packages/cspell-eslint-plugin/package.json index 778dfc10995..6366f973ce6 100644 --- a/packages/cspell-eslint-plugin/package.json +++ b/packages/cspell-eslint-plugin/package.json @@ -81,10 +81,10 @@ "@typescript-eslint/parser": "^7.8.0", "@typescript-eslint/types": "^7.8.0", "eslint": "^9.2.0", - "eslint-plugin-n": "^17.4.0", + "eslint-plugin-n": "^17.5.1", "eslint-plugin-react": "^7.34.1", "eslint-plugin-simple-import-sort": "^12.1.0", - "globals": "^15.1.0", + "globals": "^15.2.0", "mocha": "^10.4.0", "ts-json-schema-generator": "^2.1.1", "typescript": "^5.4.5", diff --git a/packages/cspell-eslint-plugin/src/plugin/cspell-eslint-plugin.cts b/packages/cspell-eslint-plugin/src/plugin/cspell-eslint-plugin.cts index 84cf977124e..21d07b716fe 100644 --- a/packages/cspell-eslint-plugin/src/plugin/cspell-eslint-plugin.cts +++ b/packages/cspell-eslint-plugin/src/plugin/cspell-eslint-plugin.cts @@ -15,6 +15,7 @@ const optionsSchema = JSON.parse(readFileSync(pathJoin(__dirname, '../../assets/ const schema = optionsSchema as unknown as Rule.RuleMetaData['schema']; +// eslint-disable-next-line n/no-missing-require const spellCheck = createSyncFn(require.resolve('../worker/worker.mjs'), 30_000); interface ExtendedSuggestion { diff --git a/packages/cspell-io/src/node/file/_fetch.ts b/packages/cspell-io/src/node/file/_fetch.ts index b851fd58e54..1a525d9cc27 100644 --- a/packages/cspell-io/src/node/file/_fetch.ts +++ b/packages/cspell-io/src/node/file/_fetch.ts @@ -1,2 +1,3 @@ +/* eslint-disable n/no-unsupported-features/node-builtins */ /** alias of global.fetch, useful for mocking */ export const _fetch = global.fetch; diff --git a/packages/cspell-io/src/node/file/fetch.test.ts b/packages/cspell-io/src/node/file/fetch.test.ts index afa37d7f8c3..ede761c421f 100644 --- a/packages/cspell-io/src/node/file/fetch.test.ts +++ b/packages/cspell-io/src/node/file/fetch.test.ts @@ -10,6 +10,7 @@ describe('fetch', () => { 'fetch url', async () => { const url = new URL('https://example.com/'); + // eslint-disable-next-line n/no-unsupported-features/node-builtins const response = await fetch(url); expect(response.ok).toBe(true); expect(await response.text()).toMatch('Example Domain'); diff --git a/packages/cspell-io/src/node/file/fetch.ts b/packages/cspell-io/src/node/file/fetch.ts index 1033e0b4ac7..5b7e901d048 100644 --- a/packages/cspell-io/src/node/file/fetch.ts +++ b/packages/cspell-io/src/node/file/fetch.ts @@ -1,6 +1,7 @@ import { _fetch as fetch } from './_fetch.js'; import { FetchUrlError, toFetchUrlError } from './FetchError.js'; +// eslint-disable-next-line n/no-unsupported-features/node-builtins export async function fetchHead(request: string | URL): Promise { const url = toURL(request); try { diff --git a/packages/cspell-tools/package.json b/packages/cspell-tools/package.json index bd3ca7a746f..d03f4a5cd84 100644 --- a/packages/cspell-tools/package.json +++ b/packages/cspell-tools/package.json @@ -55,7 +55,7 @@ "cosmiconfig": "9.0.0", "cspell-trie-lib": "workspace:*", "gensequence": "^7.0.0", - "glob": "^10.3.12", + "glob": "^10.3.14", "hunspell-reader": "workspace:*", "yaml": "^2.4.2" }, diff --git a/packages/cspell/package.json b/packages/cspell/package.json index 63b88bf45ee..b6b0f216690 100644 --- a/packages/cspell/package.json +++ b/packages/cspell/package.json @@ -97,7 +97,7 @@ "fast-json-stable-stringify": "^2.1.0", "file-entry-cache": "^8.0.0", "get-stdin": "^9.0.0", - "semver": "^7.6.0", + "semver": "^7.6.1", "strip-ansi": "^7.1.0", "vscode-uri": "^3.0.8" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7446448da14..8b37c8986eb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -69,8 +69,8 @@ importers: specifier: ^28.5.0 version: 28.5.0(eslint@9.2.0)(jest@29.7.0)(typescript@5.4.5) eslint-plugin-n: - specifier: ^17.4.0 - version: 17.4.0(eslint@9.2.0) + specifier: ^17.5.1 + version: 17.5.1(eslint@9.2.0) eslint-plugin-simple-import-sort: specifier: ^12.1.0 version: 12.1.0(eslint@9.2.0) @@ -241,8 +241,8 @@ importers: specifier: ^9.0.0 version: 9.0.0 semver: - specifier: ^7.6.0 - version: 7.6.0 + specifier: ^7.6.1 + version: 7.6.1 strip-ansi: specifier: ^7.1.0 version: 7.1.0 @@ -508,8 +508,8 @@ importers: specifier: ^9.2.0 version: 9.2.0 eslint-plugin-n: - specifier: ^17.4.0 - version: 17.4.0(eslint@9.2.0) + specifier: ^17.5.1 + version: 17.5.1(eslint@9.2.0) eslint-plugin-react: specifier: ^7.34.1 version: 7.34.1(eslint@9.2.0) @@ -517,8 +517,8 @@ importers: specifier: ^12.1.0 version: 12.1.0(eslint@9.2.0) globals: - specifier: ^15.1.0 - version: 15.1.0 + specifier: ^15.2.0 + version: 15.2.0 mocha: specifier: ^10.4.0 version: 10.4.0 @@ -726,8 +726,8 @@ importers: specifier: ^7.0.0 version: 7.0.0 glob: - specifier: ^10.3.12 - version: 10.3.12 + specifier: ^10.3.14 + version: 10.3.14 hunspell-reader: specifier: workspace:* version: link:../hunspell-reader @@ -830,8 +830,8 @@ importers: version: 2.1.1 devDependencies: esbuild: - specifier: ^0.20.2 - version: 0.20.2 + specifier: ^0.21.1 + version: 0.21.1 test-fixtures/issues/issue-5034: devDependencies: @@ -889,8 +889,8 @@ importers: specifier: 8.57.0 version: 8.57.0 eslint-plugin-n: - specifier: ^17.4.0 - version: 17.4.0(eslint@8.57.0) + specifier: ^17.5.1 + version: 17.5.1(eslint@8.57.0) eslint-plugin-simple-import-sort: specifier: ^12.1.0 version: 12.1.0(eslint@8.57.0) @@ -914,8 +914,8 @@ importers: specifier: ^9.2.0 version: 9.2.0 eslint-plugin-n: - specifier: ^17.4.0 - version: 17.4.0(eslint@9.2.0) + specifier: ^17.5.1 + version: 17.5.1(eslint@9.2.0) typescript-eslint: specifier: ^7.8.0 version: 7.8.0(eslint@9.2.0)(typescript@5.4.5) @@ -952,8 +952,8 @@ importers: specifier: workspace:* version: link:../../../../packages/cspell-lib esbuild: - specifier: ^0.20.2 - version: 0.20.2 + specifier: ^0.21.1 + version: 0.21.1 test-packages/cspell-lib/test-cspell-lib-esm: dependencies: @@ -1104,8 +1104,8 @@ importers: version: link:../../../../packages/cspell devDependencies: esbuild: - specifier: ^0.20.2 - version: 0.20.2 + specifier: ^0.21.1 + version: 0.21.1 test-packages/cspell/test-cspell-esm-reporter: dependencies: @@ -1182,8 +1182,8 @@ importers: version: 1.1.1 devDependencies: esbuild: - specifier: ^0.20.2 - version: 0.20.2 + specifier: ^0.21.1 + version: 0.21.1 website: dependencies: @@ -2958,7 +2958,7 @@ packages: react-router-config: 5.1.1(react-router@5.3.4)(react@18.3.1) react-router-dom: 5.3.4(react@18.3.1) rtl-detect: 1.1.2 - semver: 7.6.0 + semver: 7.6.1 serve-handler: 6.1.5 shelljs: 0.8.5 terser-webpack-plugin: 5.3.10(webpack@5.91.0) @@ -3056,7 +3056,7 @@ packages: react-router-config: 5.1.1(react-router@5.3.4)(react@18.3.1) react-router-dom: 5.3.4(react@18.3.1) rtl-detect: 1.1.2 - semver: 7.6.0 + semver: 7.6.1 serve-handler: 6.1.5 shelljs: 0.8.5 terser-webpack-plugin: 5.3.10(webpack@5.91.0) @@ -3903,6 +3903,15 @@ packages: dev: true optional: true + /@esbuild/aix-ppc64@0.21.1: + resolution: {integrity: sha512-O7yppwipkXvnEPjzkSXJRk2g4bS8sUx9p9oXHq9MU/U7lxUzZVsnFZMDTmeeX9bfQxrFcvOacl/ENgOh0WP9pA==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [aix] + requiresBuild: true + dev: true + optional: true + /@esbuild/android-arm64@0.20.2: resolution: {integrity: sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg==} engines: {node: '>=12'} @@ -3912,6 +3921,15 @@ packages: dev: true optional: true + /@esbuild/android-arm64@0.21.1: + resolution: {integrity: sha512-jXhccq6es+onw7x8MxoFnm820mz7sGa9J14kLADclmiEUH4fyj+FjR6t0M93RgtlI/awHWhtF0Wgfhqgf9gDZA==} + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true + dev: true + optional: true + /@esbuild/android-arm@0.20.2: resolution: {integrity: sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w==} engines: {node: '>=12'} @@ -3921,6 +3939,15 @@ packages: dev: true optional: true + /@esbuild/android-arm@0.21.1: + resolution: {integrity: sha512-hh3jKWikdnTtHCglDAeVO3Oyh8MaH8xZUaWMiCCvJ9/c3NtPqZq+CACOlGTxhddypXhl+8B45SeceYBfB/e8Ow==} + engines: {node: '>=12'} + cpu: [arm] + os: [android] + requiresBuild: true + dev: true + optional: true + /@esbuild/android-x64@0.20.2: resolution: {integrity: sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg==} engines: {node: '>=12'} @@ -3930,6 +3957,15 @@ packages: dev: true optional: true + /@esbuild/android-x64@0.21.1: + resolution: {integrity: sha512-NPObtlBh4jQHE01gJeucqEhdoD/4ya2owSIS8lZYS58aR0x7oZo9lB2lVFxgTANSa5MGCBeoQtr+yA9oKCGPvA==} + engines: {node: '>=12'} + cpu: [x64] + os: [android] + requiresBuild: true + dev: true + optional: true + /@esbuild/darwin-arm64@0.20.2: resolution: {integrity: sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==} engines: {node: '>=12'} @@ -3939,6 +3975,15 @@ packages: dev: true optional: true + /@esbuild/darwin-arm64@0.21.1: + resolution: {integrity: sha512-BLT7TDzqsVlQRmJfO/FirzKlzmDpBWwmCUlyggfzUwg1cAxVxeA4O6b1XkMInlxISdfPAOunV9zXjvh5x99Heg==} + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + /@esbuild/darwin-x64@0.20.2: resolution: {integrity: sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==} engines: {node: '>=12'} @@ -3948,6 +3993,15 @@ packages: dev: true optional: true + /@esbuild/darwin-x64@0.21.1: + resolution: {integrity: sha512-D3h3wBQmeS/vp93O4B+SWsXB8HvRDwMyhTNhBd8yMbh5wN/2pPWRW5o/hM3EKgk9bdKd9594lMGoTCTiglQGRQ==} + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + /@esbuild/freebsd-arm64@0.20.2: resolution: {integrity: sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw==} engines: {node: '>=12'} @@ -3957,6 +4011,15 @@ packages: dev: true optional: true + /@esbuild/freebsd-arm64@0.21.1: + resolution: {integrity: sha512-/uVdqqpNKXIxT6TyS/oSK4XE4xWOqp6fh4B5tgAwozkyWdylcX+W4YF2v6SKsL4wCQ5h1bnaSNjWPXG/2hp8AQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + /@esbuild/freebsd-x64@0.20.2: resolution: {integrity: sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw==} engines: {node: '>=12'} @@ -3966,6 +4029,15 @@ packages: dev: true optional: true + /@esbuild/freebsd-x64@0.21.1: + resolution: {integrity: sha512-paAkKN1n1jJitw+dAoR27TdCzxRl1FOEITx3h201R6NoXUojpMzgMLdkXVgCvaCSCqwYkeGLoe9UVNRDKSvQgw==} + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + /@esbuild/linux-arm64@0.20.2: resolution: {integrity: sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==} engines: {node: '>=12'} @@ -3975,6 +4047,15 @@ packages: dev: true optional: true + /@esbuild/linux-arm64@0.21.1: + resolution: {integrity: sha512-G65d08YoH00TL7Xg4LaL3gLV21bpoAhQ+r31NUu013YB7KK0fyXIt05VbsJtpqh/6wWxoLJZOvQHYnodRrnbUQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@esbuild/linux-arm@0.20.2: resolution: {integrity: sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg==} engines: {node: '>=12'} @@ -3984,6 +4065,15 @@ packages: dev: true optional: true + /@esbuild/linux-arm@0.21.1: + resolution: {integrity: sha512-tRHnxWJnvNnDpNVnsyDhr1DIQZUfCXlHSCDohbXFqmg9W4kKR7g8LmA3kzcwbuxbRMKeit8ladnCabU5f2traA==} + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@esbuild/linux-ia32@0.20.2: resolution: {integrity: sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig==} engines: {node: '>=12'} @@ -3993,6 +4083,15 @@ packages: dev: true optional: true + /@esbuild/linux-ia32@0.21.1: + resolution: {integrity: sha512-tt/54LqNNAqCz++QhxoqB9+XqdsaZOtFD/srEhHYwBd3ZUOepmR1Eeot8bS+Q7BiEvy9vvKbtpHf+r6q8hF5UA==} + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@esbuild/linux-loong64@0.20.2: resolution: {integrity: sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ==} engines: {node: '>=12'} @@ -4002,6 +4101,15 @@ packages: dev: true optional: true + /@esbuild/linux-loong64@0.21.1: + resolution: {integrity: sha512-MhNalK6r0nZD0q8VzUBPwheHzXPr9wronqmZrewLfP7ui9Fv1tdPmg6e7A8lmg0ziQCziSDHxh3cyRt4YMhGnQ==} + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@esbuild/linux-mips64el@0.20.2: resolution: {integrity: sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA==} engines: {node: '>=12'} @@ -4011,6 +4119,15 @@ packages: dev: true optional: true + /@esbuild/linux-mips64el@0.21.1: + resolution: {integrity: sha512-YCKVY7Zen5rwZV+nZczOhFmHaeIxR4Zn3jcmNH53LbgF6IKRwmrMywqDrg4SiSNApEefkAbPSIzN39FC8VsxPg==} + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@esbuild/linux-ppc64@0.20.2: resolution: {integrity: sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg==} engines: {node: '>=12'} @@ -4020,6 +4137,15 @@ packages: dev: true optional: true + /@esbuild/linux-ppc64@0.21.1: + resolution: {integrity: sha512-bw7bcQ+270IOzDV4mcsKAnDtAFqKO0jVv3IgRSd8iM0ac3L8amvCrujRVt1ajBTJcpDaFhIX+lCNRKteoDSLig==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@esbuild/linux-riscv64@0.20.2: resolution: {integrity: sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg==} engines: {node: '>=12'} @@ -4029,6 +4155,15 @@ packages: dev: true optional: true + /@esbuild/linux-riscv64@0.21.1: + resolution: {integrity: sha512-ARmDRNkcOGOm1AqUBSwRVDfDeD9hGYRfkudP2QdoonBz1ucWVnfBPfy7H4JPI14eYtZruRSczJxyu7SRYDVOcg==} + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@esbuild/linux-s390x@0.20.2: resolution: {integrity: sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ==} engines: {node: '>=12'} @@ -4038,6 +4173,15 @@ packages: dev: true optional: true + /@esbuild/linux-s390x@0.21.1: + resolution: {integrity: sha512-o73TcUNMuoTZlhwFdsgr8SfQtmMV58sbgq6gQq9G1xUiYnHMTmJbwq65RzMx89l0iya69lR4bxBgtWiiOyDQZA==} + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@esbuild/linux-x64@0.20.2: resolution: {integrity: sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==} engines: {node: '>=12'} @@ -4047,6 +4191,15 @@ packages: dev: true optional: true + /@esbuild/linux-x64@0.21.1: + resolution: {integrity: sha512-da4/1mBJwwgJkbj4fMH7SOXq2zapgTo0LKXX1VUZ0Dxr+e8N0WbS80nSZ5+zf3lvpf8qxrkZdqkOqFfm57gXwA==} + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + /@esbuild/netbsd-x64@0.20.2: resolution: {integrity: sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ==} engines: {node: '>=12'} @@ -4056,6 +4209,15 @@ packages: dev: true optional: true + /@esbuild/netbsd-x64@0.21.1: + resolution: {integrity: sha512-CPWs0HTFe5woTJN5eKPvgraUoRHrCtzlYIAv9wBC+FAyagBSaf+UdZrjwYyTGnwPGkThV4OCI7XibZOnPvONVw==} + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + dev: true + optional: true + /@esbuild/openbsd-x64@0.20.2: resolution: {integrity: sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ==} engines: {node: '>=12'} @@ -4065,6 +4227,15 @@ packages: dev: true optional: true + /@esbuild/openbsd-x64@0.21.1: + resolution: {integrity: sha512-xxhTm5QtzNLc24R0hEkcH+zCx/o49AsdFZ0Cy5zSd/5tOj4X2g3/2AJB625NoadUuc4A8B3TenLJoYdWYOYCew==} + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + dev: true + optional: true + /@esbuild/sunos-x64@0.20.2: resolution: {integrity: sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w==} engines: {node: '>=12'} @@ -4074,6 +4245,15 @@ packages: dev: true optional: true + /@esbuild/sunos-x64@0.21.1: + resolution: {integrity: sha512-CWibXszpWys1pYmbr9UiKAkX6x+Sxw8HWtw1dRESK1dLW5fFJ6rMDVw0o8MbadusvVQx1a8xuOxnHXT941Hp1A==} + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true + dev: true + optional: true + /@esbuild/win32-arm64@0.20.2: resolution: {integrity: sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ==} engines: {node: '>=12'} @@ -4083,6 +4263,15 @@ packages: dev: true optional: true + /@esbuild/win32-arm64@0.21.1: + resolution: {integrity: sha512-jb5B4k+xkytGbGUS4T+Z89cQJ9DJ4lozGRSV+hhfmCPpfJ3880O31Q1srPCimm+V6UCbnigqD10EgDNgjvjerQ==} + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + /@esbuild/win32-ia32@0.20.2: resolution: {integrity: sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ==} engines: {node: '>=12'} @@ -4092,6 +4281,15 @@ packages: dev: true optional: true + /@esbuild/win32-ia32@0.21.1: + resolution: {integrity: sha512-PgyFvjJhXqHn1uxPhyN1wZ6dIomKjiLUQh1LjFvjiV1JmnkZ/oMPrfeEAZg5R/1ftz4LZWZr02kefNIQ5SKREQ==} + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + /@esbuild/win32-x64@0.20.2: resolution: {integrity: sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ==} engines: {node: '>=12'} @@ -4101,6 +4299,15 @@ packages: dev: true optional: true + /@esbuild/win32-x64@0.21.1: + resolution: {integrity: sha512-W9NttRZQR5ehAiqHGDnvfDaGmQOm6Fi4vSlce8mjM75x//XKuVAByohlEX6N17yZnVXxQFuh4fDRunP8ca6bfA==} + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + /@eslint-community/eslint-utils@4.4.0(eslint@8.57.0): resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -4606,7 +4813,7 @@ packages: p-map: 7.0.2 p-queue: 8.0.1 resolve-from: 5.0.0 - semver: 7.6.0 + semver: 7.6.1 slash: 5.1.0 strong-log-transformer: 2.1.0 write-file-atomic: 5.0.1 @@ -4645,7 +4852,7 @@ packages: chalk: 5.3.0 columnify: 1.6.0 fs-extra: 11.2.0 - glob: 10.3.12 + glob: 10.3.14 has-unicode: 2.0.1 libnpmaccess: 8.0.5 libnpmpublish: 9.0.7 @@ -4659,7 +4866,7 @@ packages: pacote: 17.0.7 pify: 6.1.0 read-package-json: 7.0.1 - semver: 7.6.0 + semver: 7.6.1 ssri: 10.0.6 tar: 6.2.1 temp-dir: 3.0.0 @@ -4705,7 +4912,7 @@ packages: p-pipe: 4.0.0 p-reduce: 3.0.0 pify: 6.1.0 - semver: 7.6.0 + semver: 7.6.1 slash: 5.1.0 temp-dir: 3.0.0 uuid: 9.0.1 @@ -4803,7 +5010,7 @@ packages: resolution: {integrity: sha512-7kZUAaLscfgbwBQRbvdMYaZOWyMEcPTH/tJjnyAWJ/dvvs9Ef+CERx/qJb9GExJpl1qipaDGn7KqHnFGGixd0w==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - semver: 7.6.0 + semver: 7.6.1 dev: true /@npmcli/git@5.0.7: @@ -4816,7 +5023,7 @@ packages: proc-log: 4.2.0 promise-inflight: 1.0.1 promise-retry: 2.0.1 - semver: 7.6.0 + semver: 7.6.1 which: 4.0.0 transitivePeerDependencies: - bluebird @@ -4841,12 +5048,12 @@ packages: engines: {node: ^16.14.0 || >=18.0.0} dependencies: '@npmcli/git': 5.0.7 - glob: 10.3.12 + glob: 10.3.14 hosted-git-info: 7.0.2 json-parse-even-better-errors: 3.0.2 normalize-package-data: 6.0.1 proc-log: 4.2.0 - semver: 7.6.0 + semver: 7.6.1 transitivePeerDependencies: - bluebird dev: true @@ -5930,7 +6137,7 @@ packages: graphemer: 1.4.0 ignore: 5.3.1 natural-compare: 1.4.0 - semver: 7.6.0 + semver: 7.6.1 ts-api-utils: 1.3.0(typescript@5.4.5) typescript: 5.4.5 transitivePeerDependencies: @@ -5959,7 +6166,7 @@ packages: graphemer: 1.4.0 ignore: 5.3.1 natural-compare: 1.4.0 - semver: 7.6.0 + semver: 7.6.1 ts-api-utils: 1.3.0(typescript@5.4.5) typescript: 5.4.5 transitivePeerDependencies: @@ -6076,7 +6283,7 @@ packages: globby: 11.1.0 is-glob: 4.0.3 minimatch: 9.0.4 - semver: 7.6.0 + semver: 7.6.1 ts-api-utils: 1.3.0(typescript@5.4.5) typescript: 5.4.5 transitivePeerDependencies: @@ -6096,7 +6303,7 @@ packages: '@typescript-eslint/types': 7.8.0 '@typescript-eslint/typescript-estree': 7.8.0(typescript@5.4.5) eslint: 8.57.0 - semver: 7.6.0 + semver: 7.6.1 transitivePeerDependencies: - supports-color - typescript @@ -6115,7 +6322,7 @@ packages: '@typescript-eslint/types': 7.8.0 '@typescript-eslint/typescript-estree': 7.8.0(typescript@5.4.5) eslint: 9.2.0 - semver: 7.6.0 + semver: 7.6.1 transitivePeerDependencies: - supports-color - typescript @@ -7001,7 +7208,7 @@ packages: /builtins@5.1.0: resolution: {integrity: sha512-SW9lzGTLvWTP1AY8xeAMZimqDrIaSdLQUcVr9DMef51niJ022Ri87SwRRKYm4A6iHfkPaiVUu/Duw2Wc4J7kKg==} dependencies: - semver: 7.6.0 + semver: 7.6.1 dev: true /byte-size@8.1.1: @@ -7028,7 +7235,7 @@ packages: dependencies: '@npmcli/fs': 3.1.0 fs-minipass: 3.0.3 - glob: 10.3.12 + glob: 10.3.14 lru-cache: 10.2.2 minipass: 7.1.0 minipass-collect: 2.0.1 @@ -7594,7 +7801,7 @@ packages: handlebars: 4.7.8 json-stringify-safe: 5.0.1 meow: 12.1.1 - semver: 7.6.0 + semver: 7.6.1 split2: 4.2.0 dev: true @@ -7792,7 +7999,7 @@ packages: postcss-modules-scope: 3.2.0(postcss@8.4.38) postcss-modules-values: 4.0.0(postcss@8.4.38) postcss-value-parser: 4.2.0 - semver: 7.6.0 + semver: 7.6.1 webpack: 5.91.0(webpack-cli@5.1.4) /css-minimizer-webpack-plugin@5.0.1(clean-css@5.3.3)(webpack@5.91.0): @@ -8364,6 +8571,14 @@ packages: graceful-fs: 4.2.11 tapable: 2.2.1 + /enhanced-resolve@5.16.1: + resolution: {integrity: sha512-4U5pNsuDl0EhuZpq46M5xPslstkviJuhrdobaRDBk2Jy2KO37FDAJl4lb2KlNabxT0m4MTK2UHNrsAcphE8nyw==} + engines: {node: '>=10.13.0'} + dependencies: + graceful-fs: 4.2.11 + tapable: 2.2.1 + dev: true + /enquirer@2.4.1: resolution: {integrity: sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==} engines: {node: '>=8.6'} @@ -8553,6 +8768,37 @@ packages: '@esbuild/win32-x64': 0.20.2 dev: true + /esbuild@0.21.1: + resolution: {integrity: sha512-GPqx+FX7mdqulCeQ4TsGZQ3djBJkx5k7zBGtqt9ycVlWNg8llJ4RO9n2vciu8BN2zAEs6lPbPl0asZsAh7oWzg==} + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + optionalDependencies: + '@esbuild/aix-ppc64': 0.21.1 + '@esbuild/android-arm': 0.21.1 + '@esbuild/android-arm64': 0.21.1 + '@esbuild/android-x64': 0.21.1 + '@esbuild/darwin-arm64': 0.21.1 + '@esbuild/darwin-x64': 0.21.1 + '@esbuild/freebsd-arm64': 0.21.1 + '@esbuild/freebsd-x64': 0.21.1 + '@esbuild/linux-arm': 0.21.1 + '@esbuild/linux-arm64': 0.21.1 + '@esbuild/linux-ia32': 0.21.1 + '@esbuild/linux-loong64': 0.21.1 + '@esbuild/linux-mips64el': 0.21.1 + '@esbuild/linux-ppc64': 0.21.1 + '@esbuild/linux-riscv64': 0.21.1 + '@esbuild/linux-s390x': 0.21.1 + '@esbuild/linux-x64': 0.21.1 + '@esbuild/netbsd-x64': 0.21.1 + '@esbuild/openbsd-x64': 0.21.1 + '@esbuild/sunos-x64': 0.21.1 + '@esbuild/win32-arm64': 0.21.1 + '@esbuild/win32-ia32': 0.21.1 + '@esbuild/win32-x64': 0.21.1 + dev: true + /escalade@3.1.2: resolution: {integrity: sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==} engines: {node: '>=6'} @@ -8588,7 +8834,7 @@ packages: eslint: '>=6.0.0' dependencies: eslint: 8.57.0 - semver: 7.6.0 + semver: 7.6.1 dev: true /eslint-compat-utils@0.5.0(eslint@9.2.0): @@ -8598,7 +8844,7 @@ packages: eslint: '>=6.0.0' dependencies: eslint: 9.2.0 - semver: 7.6.0 + semver: 7.6.1 dev: true /eslint-import-resolver-node@0.3.9: @@ -8744,38 +8990,38 @@ packages: - typescript dev: true - /eslint-plugin-n@17.4.0(eslint@8.57.0): - resolution: {integrity: sha512-RtgGgNpYxECwE9dFr+D66RtbN0B8r/fY6ZF8EVsmK2YnZxE8/n9LNQhgnkL9z37UFZjYVmvMuC32qu7fQBsLVQ==} + /eslint-plugin-n@17.5.1(eslint@8.57.0): + resolution: {integrity: sha512-+E242KoY16xtwqqBRgSsDCrZ3K40jg3Np9fOgQyakcHaqymK3bnxYB1F1oe8Ksts8TDDViROFgraoLzbWhfHVw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: '>=8.23.0' dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - enhanced-resolve: 5.16.0 + enhanced-resolve: 5.16.1 eslint: 8.57.0 eslint-plugin-es-x: 7.6.0(eslint@8.57.0) - get-tsconfig: 4.7.3 - globals: 15.1.0 + get-tsconfig: 4.7.4 + globals: 15.2.0 ignore: 5.3.1 minimatch: 9.0.4 - semver: 7.6.0 + semver: 7.6.1 dev: true - /eslint-plugin-n@17.4.0(eslint@9.2.0): - resolution: {integrity: sha512-RtgGgNpYxECwE9dFr+D66RtbN0B8r/fY6ZF8EVsmK2YnZxE8/n9LNQhgnkL9z37UFZjYVmvMuC32qu7fQBsLVQ==} + /eslint-plugin-n@17.5.1(eslint@9.2.0): + resolution: {integrity: sha512-+E242KoY16xtwqqBRgSsDCrZ3K40jg3Np9fOgQyakcHaqymK3bnxYB1F1oe8Ksts8TDDViROFgraoLzbWhfHVw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: '>=8.23.0' dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@9.2.0) - enhanced-resolve: 5.16.0 + enhanced-resolve: 5.16.1 eslint: 9.2.0 eslint-plugin-es-x: 7.6.0(eslint@9.2.0) - get-tsconfig: 4.7.3 - globals: 15.1.0 + get-tsconfig: 4.7.4 + globals: 15.2.0 ignore: 5.3.1 minimatch: 9.0.4 - semver: 7.6.0 + semver: 7.6.1 dev: true /eslint-plugin-react@7.34.1(eslint@9.2.0): @@ -8842,7 +9088,7 @@ packages: read-pkg-up: 7.0.1 regexp-tree: 0.1.27 regjsparser: 0.10.0 - semver: 7.6.0 + semver: 7.6.1 strip-indent: 3.0.0 transitivePeerDependencies: - supports-color @@ -8934,7 +9180,7 @@ packages: optionator: 0.9.4 progress: 2.0.3 regexpp: 3.2.0 - semver: 7.6.0 + semver: 7.6.1 strip-ansi: 6.0.1 strip-json-comments: 3.1.1 table: 6.8.2 @@ -9506,7 +9752,7 @@ packages: memfs: 3.5.3 minimatch: 3.1.2 schema-utils: 2.7.0 - semver: 7.6.0 + semver: 7.6.1 tapable: 1.1.3 typescript: 5.4.5 webpack: 5.91.0(webpack-cli@5.1.4) @@ -9698,6 +9944,12 @@ packages: resolve-pkg-maps: 1.0.0 dev: true + /get-tsconfig@4.7.4: + resolution: {integrity: sha512-ofbkKj+0pjXjhejr007J/fLf+sW+8H7K5GCm+msC8q3IpvgjobpyPqSRFemNyIMxklC0zeJpi7VDFna19FacvQ==} + dependencies: + resolve-pkg-maps: 1.0.0 + dev: true + /git-raw-commits@4.0.0: resolution: {integrity: sha512-ICsMM1Wk8xSGMowkOmPrzo2Fgmfo4bMHLNX6ytHjajRJUqvHOw/TFapQ+QG75c3X/tTDDhOSRPGC52dDbNM8FQ==} engines: {node: '>=16'} @@ -9714,7 +9966,7 @@ packages: hasBin: true dependencies: meow: 12.1.1 - semver: 7.6.0 + semver: 7.6.1 dev: true /git-up@7.0.0: @@ -9759,6 +10011,17 @@ packages: minipass: 7.1.0 path-scurry: 1.10.2 + /glob@10.3.14: + resolution: {integrity: sha512-4fkAqu93xe9Mk7le9v0y3VrPDqLKHarNi2s4Pv7f2yOvfhWfhc7hRPHC/JyqMqb8B/Dt/eGS4n7ykwf3fOsl8g==} + engines: {node: '>=16 || 14 >=14.17'} + hasBin: true + dependencies: + foreground-child: 3.1.1 + jackspeak: 2.3.6 + minimatch: 9.0.4 + minipass: 7.1.1 + path-scurry: 1.11.0 + /glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} dependencies: @@ -9822,8 +10085,8 @@ packages: resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} engines: {node: '>=18'} - /globals@15.1.0: - resolution: {integrity: sha512-926gJqg+4mkxwYKiFvoomM4J0kWESfk3qfTvRL2/oc/tK/eTDBbrfcKnSa2KtfdxB5onoL7D3A3qIHQFpd4+UA==} + /globals@15.2.0: + resolution: {integrity: sha512-FQ5YwCHZM3nCmtb5FzEWwdUc9K5d3V/w9mzcz8iGD1gC/aOTHc6PouYu0kkKipNJqHAT7m51sqzQjEjIP+cK0A==} engines: {node: '>=18'} dev: true @@ -10926,7 +11189,7 @@ packages: '@babel/parser': 7.24.5 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.2 - semver: 7.6.0 + semver: 7.6.1 transitivePeerDependencies: - supports-color dev: true @@ -11376,7 +11639,7 @@ packages: jest-util: 29.7.0 natural-compare: 1.4.0 pretty-format: 29.7.0 - semver: 7.6.0 + semver: 7.6.1 transitivePeerDependencies: - supports-color dev: true @@ -11633,7 +11896,7 @@ packages: npm-package-arg: 11.0.2 npm-registry-fetch: 17.0.1 proc-log: 4.2.0 - semver: 7.6.0 + semver: 7.6.1 sigstore: 2.3.0 ssri: 10.0.6 transitivePeerDependencies: @@ -11786,12 +12049,6 @@ packages: dependencies: yallist: 3.1.1 - /lru-cache@6.0.0: - resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} - engines: {node: '>=10'} - dependencies: - yallist: 4.0.0 - /lunr@2.3.9: resolution: {integrity: sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==} dev: false @@ -11821,7 +12078,7 @@ packages: resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==} engines: {node: '>=10'} dependencies: - semver: 7.6.0 + semver: 7.6.1 dev: true /make-error@1.3.6: @@ -12608,6 +12865,10 @@ packages: resolution: {integrity: sha512-oGZRv2OT1lO2UF1zUcwdTb3wqUwI0kBGTgt/T7OdSj6M6N5m3o5uPf0AIW6lVxGGoiWUR7e2AwTE+xiwK8WQig==} engines: {node: '>=16 || 14 >=14.17'} + /minipass@7.1.1: + resolution: {integrity: sha512-UZ7eQ+h8ywIRAW1hIEl2AqdwzJucU/Kp59+8kkZeSvafXhZjul247BvIJjEVFVeON6d7lM46XX1HXCduKAS8VA==} + engines: {node: '>=16 || 14 >=14.17'} + /minizlib@2.1.2: resolution: {integrity: sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==} engines: {node: '>= 8'} @@ -12745,12 +13006,12 @@ packages: dependencies: env-paths: 2.2.1 exponential-backoff: 3.1.1 - glob: 10.3.12 + glob: 10.3.14 graceful-fs: 4.2.11 make-fetch-happen: 13.0.1 nopt: 7.2.1 proc-log: 3.0.0 - semver: 7.6.0 + semver: 7.6.1 tar: 6.2.1 which: 4.0.0 transitivePeerDependencies: @@ -12794,7 +13055,7 @@ packages: dependencies: hosted-git-info: 7.0.2 is-core-module: 2.13.1 - semver: 7.6.0 + semver: 7.6.1 validate-npm-package-license: 3.0.4 dev: true @@ -12828,7 +13089,7 @@ packages: resolution: {integrity: sha512-W29RiK/xtpCGqn6f3ixfRYGk+zRyr+Ew9F2E20BfXxT5/euLdA/Nm7fO7OeTGuAmTs30cpgInyJ0cYe708YTZw==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} dependencies: - semver: 7.6.0 + semver: 7.6.1 dev: true /npm-normalize-package-bin@2.0.0: @@ -12847,7 +13108,7 @@ packages: dependencies: hosted-git-info: 7.0.2 proc-log: 4.2.0 - semver: 7.6.0 + semver: 7.6.1 validate-npm-package-name: 5.0.0 dev: true @@ -12876,7 +13137,7 @@ packages: npm-install-checks: 6.3.0 npm-normalize-package-bin: 3.0.1 npm-package-arg: 11.0.2 - semver: 7.6.0 + semver: 7.6.1 dev: true /npm-registry-fetch@16.2.1: @@ -13255,7 +13516,7 @@ packages: got: 12.6.1 registry-auth-token: 5.0.2 registry-url: 6.0.1 - semver: 7.6.0 + semver: 7.6.1 /pacote@17.0.7: resolution: {integrity: sha512-sgvnoUMlkv9xHwDUKjKQFXVyUi8dtJGKp3vg6sYy+TxbDic5RjZCHF3ygv0EJgNRZ2GfRONjlKPUfokJ9lDpwQ==} @@ -13419,6 +13680,13 @@ packages: lru-cache: 10.2.2 minipass: 7.1.0 + /path-scurry@1.11.0: + resolution: {integrity: sha512-LNHTaVkzaYaLGlO+0u3rQTz7QrHTFOuKyba9JMTQutkmtNew8dw8wOD7mTU/5fCPZzCWpfW0XnQKzY61P0aTaw==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + lru-cache: 10.2.2 + minipass: 7.1.1 + /path-to-regexp@0.1.7: resolution: {integrity: sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==} @@ -13601,7 +13869,7 @@ packages: cosmiconfig: 8.3.6(typescript@5.4.5) jiti: 1.21.0 postcss: 8.4.38 - semver: 7.6.0 + semver: 7.6.1 webpack: 5.91.0(webpack-cli@5.1.4) transitivePeerDependencies: - typescript @@ -14243,7 +14511,7 @@ packages: resolution: {integrity: sha512-8PcDiZ8DXUjLf687Ol4BR8Bpm2umR7vhoZOzNRt+uxD9GpBh/K+CAAALVIiYFknmvlmyg7hM7BSNUXPaCCqd0Q==} engines: {node: ^16.14.0 || >=18.0.0} dependencies: - glob: 10.3.12 + glob: 10.3.14 json-parse-even-better-errors: 3.0.2 normalize-package-data: 6.0.1 npm-normalize-package-bin: 3.0.1 @@ -14814,7 +15082,7 @@ packages: resolution: {integrity: sha512-0Ju4+6A8iOnpL/Thra7dZsSlOHYAHIeMxfhWQRI1/VLcT3WDBZKKtQt/QkBOsiIN9ZpuvHE6cGZ0x4glCMmfiA==} engines: {node: '>=12'} dependencies: - semver: 7.6.0 + semver: 7.6.1 /semver@5.7.2: resolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==} @@ -14825,12 +15093,10 @@ packages: resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} hasBin: true - /semver@7.6.0: - resolution: {integrity: sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==} + /semver@7.6.1: + resolution: {integrity: sha512-f/vbBsu+fOiYt+lmwZV0rVwJScl46HppnOA1ZvIuBWKOTlllpyJ3bfVax76/OrhCH38dyxoDIA8K7uB963IYgA==} engines: {node: '>=10'} hasBin: true - dependencies: - lru-cache: 6.0.0 /send@0.18.0: resolution: {integrity: sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==} @@ -15701,7 +15967,7 @@ packages: json5: 2.2.3 lodash.memoize: 4.1.2 make-error: 1.3.6 - semver: 7.6.0 + semver: 7.6.1 typescript: 5.4.5 yargs-parser: 21.1.1 dev: true @@ -15729,7 +15995,7 @@ packages: chalk: 4.1.2 enhanced-resolve: 5.16.0 micromatch: 4.0.5 - semver: 7.6.0 + semver: 7.6.1 source-map: 0.7.4 typescript: 5.4.5 webpack: 5.91.0(webpack-cli@5.1.4) @@ -16142,7 +16408,7 @@ packages: is-yarn-global: 0.4.1 latest-version: 7.0.0 pupa: 3.1.0 - semver: 7.6.0 + semver: 7.6.1 semver-diff: 4.0.0 xdg-basedir: 5.1.0 @@ -16871,6 +17137,7 @@ packages: /yallist@4.0.0: resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} + dev: true /yaml@1.10.2: resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==} diff --git a/scripts/package.json b/scripts/package.json index 812689b7aa8..bdabd1a225f 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -20,7 +20,7 @@ "node": ">=18.0" }, "devDependencies": { - "esbuild": "^0.20.2" + "esbuild": "^0.21.1" }, "dependencies": { "globby": "^14.0.1", diff --git a/test-packages/cspell-eslint-plugin/test-cspell-eslint-plugin-v8/package.json b/test-packages/cspell-eslint-plugin/test-cspell-eslint-plugin-v8/package.json index 52478930304..2b76252960f 100644 --- a/test-packages/cspell-eslint-plugin/test-cspell-eslint-plugin-v8/package.json +++ b/test-packages/cspell-eslint-plugin/test-cspell-eslint-plugin-v8/package.json @@ -20,7 +20,7 @@ "@eslint/js": "^8.57.0", "@types/react": "^18.3.1", "eslint": "8.57.0", - "eslint-plugin-n": "^17.4.0", + "eslint-plugin-n": "^17.5.1", "eslint-plugin-simple-import-sort": "^12.1.0", "typescript-eslint": "^7.8.0" }, diff --git a/test-packages/cspell-eslint-plugin/test-cspell-eslint-plugin-v9/package.json b/test-packages/cspell-eslint-plugin/test-cspell-eslint-plugin-v9/package.json index ab082d1fd6f..8e8d4afefa0 100644 --- a/test-packages/cspell-eslint-plugin/test-cspell-eslint-plugin-v9/package.json +++ b/test-packages/cspell-eslint-plugin/test-cspell-eslint-plugin-v9/package.json @@ -18,7 +18,7 @@ "@cspell/eslint-plugin": "workspace:*", "@types/react": "^18.3.1", "eslint": "^9.2.0", - "eslint-plugin-n": "^17.4.0", + "eslint-plugin-n": "^17.5.1", "typescript-eslint": "^7.8.0" }, "dependencies": { diff --git a/test-packages/cspell-lib/test-cspell-esbuild-cjs/source/package.json b/test-packages/cspell-lib/test-cspell-esbuild-cjs/source/package.json index e68193e0857..bf506827444 100644 --- a/test-packages/cspell-lib/test-cspell-esbuild-cjs/source/package.json +++ b/test-packages/cspell-lib/test-cspell-esbuild-cjs/source/package.json @@ -17,7 +17,7 @@ "license": "MIT", "devDependencies": { "cspell-lib": "workspace:*", - "esbuild": "^0.20.2" + "esbuild": "^0.21.1" }, "engines": { "node": ">=18" diff --git a/test-packages/cspell/test-cspell-esbuild-cjs/source/package.json b/test-packages/cspell/test-cspell-esbuild-cjs/source/package.json index 3f76c253b7f..4a79a787125 100644 --- a/test-packages/cspell/test-cspell-esbuild-cjs/source/package.json +++ b/test-packages/cspell/test-cspell-esbuild-cjs/source/package.json @@ -19,7 +19,7 @@ "cspell": "workspace:*" }, "devDependencies": { - "esbuild": "^0.20.2" + "esbuild": "^0.21.1" }, "engines": { "node": ">=18" diff --git a/tools/perf-chart/lib/app.cjs b/tools/perf-chart/lib/app.cjs index b8e0f90cb20..b12a56c5ef6 100644 --- a/tools/perf-chart/lib/app.cjs +++ b/tools/perf-chart/lib/app.cjs @@ -258,8 +258,7 @@ var require_help = __commonJS({ * @returns {Option[]} */ visibleGlobalOptions(cmd) { - if (!this.showGlobalOptions) - return []; + if (!this.showGlobalOptions) return []; const globalOptions = []; for (let ancestorCmd = cmd.parent; ancestorCmd; ancestorCmd = ancestorCmd.parent) { const visibleOptions = ancestorCmd.options.filter((option) => !option.hidden); @@ -541,11 +540,9 @@ var require_help = __commonJS({ wrap(str, width, indent, minColumnWidth = 40) { const indents = " \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF"; const manualIndent = new RegExp(`[\\n][${indents}]+`); - if (str.match(manualIndent)) - return str; + if (str.match(manualIndent)) return str; const columnWidth = width - indent; - if (columnWidth < minColumnWidth) - return str; + if (columnWidth < minColumnWidth) return str; const leadingStr = str.slice(0, indent); const columnText = str.slice(indent).replace("\r\n", "\n"); const indentString = " ".repeat(indent); @@ -555,8 +552,7 @@ var require_help = __commonJS({ |.{1,${columnWidth - 1}}([${breaks}]|$)|[^${breaks}]+?([${breaks}]|$)`, "g"); const lines = columnText.match(regex) || []; return leadingStr + lines.map((line, i) => { - if (line === "\n") - return ""; + if (line === "\n") return ""; return (i > 0 ? indentString : "") + line.trimEnd(); }).join("\n"); } @@ -806,8 +802,7 @@ var require_option = __commonJS({ */ valueFromOption(value, option) { const optionKey = option.attributeName(); - if (!this.dualOptions.has(optionKey)) - return true; + if (!this.dualOptions.has(optionKey)) return true; const preset = this.negativeOptions.get(optionKey).presetArg; const negativeValue = preset !== void 0 ? preset : false; return option.negate === (negativeValue === value); @@ -822,8 +817,7 @@ var require_option = __commonJS({ let shortFlag; let longFlag; const flagParts = flags.split(/[ |,]+/); - if (flagParts.length > 1 && !/^[[<]/.test(flagParts[1])) - shortFlag = flagParts.shift(); + if (flagParts.length > 1 && !/^[[<]/.test(flagParts[1])) shortFlag = flagParts.shift(); longFlag = flagParts.shift(); if (!shortFlag && /^-[^-]$/.test(longFlag)) { shortFlag = longFlag; @@ -841,8 +835,7 @@ var require_suggestSimilar = __commonJS({ "../../node_modules/.pnpm/commander@12.0.0/node_modules/commander/lib/suggestSimilar.js"(exports2) { var maxDistance = 3; function editDistance(a, b) { - if (Math.abs(a.length - b.length) > maxDistance) - return Math.max(a.length, b.length); + if (Math.abs(a.length - b.length) > maxDistance) return Math.max(a.length, b.length); const d = []; for (let i = 0; i <= a.length; i++) { d[i] = [i]; @@ -874,8 +867,7 @@ var require_suggestSimilar = __commonJS({ return d[a.length][b.length]; } function suggestSimilar(word, candidates) { - if (!candidates || candidates.length === 0) - return ""; + if (!candidates || candidates.length === 0) return ""; candidates = Array.from(new Set(candidates)); const searchingOptions = word.startsWith("--"); if (searchingOptions) { @@ -886,8 +878,7 @@ var require_suggestSimilar = __commonJS({ let bestDistance = maxDistance; const minSimilarity = 0.4; candidates.forEach((candidate) => { - if (candidate.length <= 1) - return; + if (candidate.length <= 1) return; const distance = editDistance(word, candidate); const length = Math.max(word.length, candidate.length); const similarity = (length - distance) / length; @@ -1054,17 +1045,14 @@ var require_command = __commonJS({ cmd.description(desc); cmd._executableHandler = true; } - if (opts.isDefault) - this._defaultCommandName = cmd._name; + if (opts.isDefault) this._defaultCommandName = cmd._name; cmd._hidden = !!(opts.noHelp || opts.hidden); cmd._executableFile = opts.executableFile || null; - if (args) - cmd.arguments(args); + if (args) cmd.arguments(args); this._registerCommand(cmd); cmd.parent = this; cmd.copyInheritedSettings(this); - if (desc) - return this; + if (desc) return this; return cmd; } /** @@ -1096,8 +1084,7 @@ var require_command = __commonJS({ * @return {(Command|Object)} `this` command for chaining, or stored configuration */ configureHelp(configuration) { - if (configuration === void 0) - return this._helpConfiguration; + if (configuration === void 0) return this._helpConfiguration; this._helpConfiguration = configuration; return this; } @@ -1120,8 +1107,7 @@ var require_command = __commonJS({ * @return {(Command|Object)} `this` command for chaining, or stored configuration */ configureOutput(configuration) { - if (configuration === void 0) - return this._outputConfiguration; + if (configuration === void 0) return this._outputConfiguration; Object.assign(this._outputConfiguration, configuration); return this; } @@ -1132,8 +1118,7 @@ var require_command = __commonJS({ * @return {Command} `this` command for chaining */ showHelpAfterError(displayHelp = true) { - if (typeof displayHelp !== "string") - displayHelp = !!displayHelp; + if (typeof displayHelp !== "string") displayHelp = !!displayHelp; this._showHelpAfterError = displayHelp; return this; } @@ -1162,10 +1147,8 @@ var require_command = __commonJS({ - specify the name in Command constructor or using .name()`); } opts = opts || {}; - if (opts.isDefault) - this._defaultCommandName = cmd._name; - if (opts.noHelp || opts.hidden) - cmd._hidden = true; + if (opts.isDefault) this._defaultCommandName = cmd._name; + if (opts.noHelp || opts.hidden) cmd._hidden = true; this._registerCommand(cmd); cmd.parent = this; cmd._checkForBrokenPassThrough(); @@ -1266,10 +1249,8 @@ var require_command = __commonJS({ const helpDescription = description ?? "display help for command"; const helpCommand = this.createCommand(helpName); helpCommand.helpOption(false); - if (helpArgs) - helpCommand.arguments(helpArgs); - if (helpDescription) - helpCommand.description(helpDescription); + if (helpArgs) helpCommand.arguments(helpArgs); + if (helpDescription) helpCommand.description(helpDescription); this._addImplicitHelpCommand = true; this._helpCommand = helpCommand; return this; @@ -1760,8 +1741,7 @@ Expecting one of '${allowedValues.join("', '")}'`); default: throw new Error(`unexpected parse option { from: '${parseOptions.from}' }`); } - if (!this._name && this._scriptPath) - this.nameFromFilename(this._scriptPath); + if (!this._name && this._scriptPath) this.nameFromFilename(this._scriptPath); this._name = this._name || "program"; return userArgs; } @@ -1820,13 +1800,10 @@ Expecting one of '${allowedValues.join("', '")}'`); const sourceExt = [".js", ".ts", ".tsx", ".mjs", ".cjs"]; function findFile(baseDir, baseName) { const localBin = path.resolve(baseDir, baseName); - if (fs2.existsSync(localBin)) - return localBin; - if (sourceExt.includes(path.extname(baseName))) - return void 0; + if (fs2.existsSync(localBin)) return localBin; + if (sourceExt.includes(path.extname(baseName))) return void 0; const foundExt = sourceExt.find((ext) => fs2.existsSync(`${localBin}${ext}`)); - if (foundExt) - return `${localBin}${foundExt}`; + if (foundExt) return `${localBin}${foundExt}`; return void 0; } this._checkForMissingMandatoryOptions(); @@ -1912,8 +1889,7 @@ Expecting one of '${allowedValues.join("', '")}'`); */ _dispatchSubcommand(commandName, operands, unknown) { const subCommand = this._findCommand(commandName); - if (!subCommand) - this.help({ error: true }); + if (!subCommand) this.help({ error: true }); let promiseChain; promiseChain = this._chainOrCallSubCommandHook(promiseChain, subCommand, "preSubcommand"); promiseChain = this._chainOrCall(promiseChain, () => { @@ -2137,8 +2113,7 @@ Expecting one of '${allowedValues.join("', '")}'`); * @private */ _findCommand(name) { - if (!name) - return void 0; + if (!name) return void 0; return this.commands.find((cmd) => cmd._name === name || cmd._aliases.includes(name)); } /** @@ -2231,8 +2206,7 @@ Expecting one of '${allowedValues.join("', '")}'`); while (args.length) { const arg = args.shift(); if (arg === "--") { - if (dest === unknown) - dest.push(arg); + if (dest === unknown) dest.push(arg); dest.push(...args); break; } @@ -2246,8 +2220,7 @@ Expecting one of '${allowedValues.join("', '")}'`); if (option) { if (option.required) { const value = args.shift(); - if (value === void 0) - this.optionMissingArgument(option); + if (value === void 0) this.optionMissingArgument(option); this.emit(`option:${option.name()}`, value); } else if (option.optional) { let value = null; @@ -2288,25 +2261,21 @@ Expecting one of '${allowedValues.join("', '")}'`); if ((this._enablePositionalOptions || this._passThroughOptions) && operands.length === 0 && unknown.length === 0) { if (this._findCommand(arg)) { operands.push(arg); - if (args.length > 0) - unknown.push(...args); + if (args.length > 0) unknown.push(...args); break; } else if (this._getHelpCommand() && arg === this._getHelpCommand().name()) { operands.push(arg); - if (args.length > 0) - operands.push(...args); + if (args.length > 0) operands.push(...args); break; } else if (this._defaultCommandName) { unknown.push(arg); - if (args.length > 0) - unknown.push(...args); + if (args.length > 0) unknown.push(...args); break; } } if (this._passThroughOptions) { dest.push(arg); - if (args.length > 0) - dest.push(...args); + if (args.length > 0) dest.push(...args); break; } dest.push(arg); @@ -2467,8 +2436,7 @@ Expecting one of '${allowedValues.join("', '")}'`); * @private */ unknownOption(flag) { - if (this._allowUnknownOption) - return; + if (this._allowUnknownOption) return; let suggestion = ""; if (flag.startsWith("--") && this._showSuggestionAfterError) { let candidateFlags = []; @@ -2490,8 +2458,7 @@ Expecting one of '${allowedValues.join("', '")}'`); * @private */ _excessArguments(receivedArgs) { - if (this._allowExcessArguments) - return; + if (this._allowExcessArguments) return; const expected = this.registeredArguments.length; const s2 = expected === 1 ? "" : "s"; const forSubcommand = this.parent ? ` for '${this.name()}'` : ""; @@ -2510,8 +2477,7 @@ Expecting one of '${allowedValues.join("', '")}'`); const candidateNames = []; this.createHelp().visibleCommands(this).forEach((command) => { candidateNames.push(command.name()); - if (command.alias()) - candidateNames.push(command.alias()); + if (command.alias()) candidateNames.push(command.alias()); }); suggestion = suggestSimilar(unknownName, candidateNames); } @@ -2531,8 +2497,7 @@ Expecting one of '${allowedValues.join("', '")}'`); * @return {(this | string | undefined)} `this` command for chaining, or version string if no arguments */ version(str, flags, description) { - if (str === void 0) - return this._version; + if (str === void 0) return this._version; this._version = str; flags = flags || "-V, --version"; description = description || "output the version number"; @@ -2554,8 +2519,7 @@ Expecting one of '${allowedValues.join("', '")}'`); * @return {(string|Command)} */ description(str, argsDescription) { - if (str === void 0 && argsDescription === void 0) - return this._description; + if (str === void 0 && argsDescription === void 0) return this._description; this._description = str; if (argsDescription) { this._argsDescription = argsDescription; @@ -2569,8 +2533,7 @@ Expecting one of '${allowedValues.join("', '")}'`); * @return {(string|Command)} */ summary(str) { - if (str === void 0) - return this._summary; + if (str === void 0) return this._summary; this._summary = str; return this; } @@ -2583,14 +2546,12 @@ Expecting one of '${allowedValues.join("', '")}'`); * @return {(string|Command)} */ alias(alias) { - if (alias === void 0) - return this._aliases[0]; + if (alias === void 0) return this._aliases[0]; let command = this; if (this.commands.length !== 0 && this.commands[this.commands.length - 1]._executableHandler) { command = this.commands[this.commands.length - 1]; } - if (alias === command._name) - throw new Error("Command alias can't be the same as its name"); + if (alias === command._name) throw new Error("Command alias can't be the same as its name"); const matchingCommand = this.parent?._findCommand(alias); if (matchingCommand) { const existingCmd = [matchingCommand.name()].concat(matchingCommand.aliases()).join("|"); @@ -2608,8 +2569,7 @@ Expecting one of '${allowedValues.join("', '")}'`); * @return {(string[]|Command)} */ aliases(aliases) { - if (aliases === void 0) - return this._aliases; + if (aliases === void 0) return this._aliases; aliases.forEach((alias) => this.alias(alias)); return this; } @@ -2621,8 +2581,7 @@ Expecting one of '${allowedValues.join("', '")}'`); */ usage(str) { if (str === void 0) { - if (this._usage) - return this._usage; + if (this._usage) return this._usage; const args = this.registeredArguments.map((arg) => { return humanReadableArgName(arg); }); @@ -2642,8 +2601,7 @@ Expecting one of '${allowedValues.join("', '")}'`); * @return {(string|Command)} */ name(str) { - if (str === void 0) - return this._name; + if (str === void 0) return this._name; this._name = str; return this; } @@ -2675,8 +2633,7 @@ Expecting one of '${allowedValues.join("', '")}'`); * @return {(string|null|Command)} */ executableDir(path2) { - if (path2 === void 0) - return this._executableDir; + if (path2 === void 0) return this._executableDir; this._executableDir = path2; return this; } @@ -2928,8 +2885,7 @@ var import_node_fs = require("node:fs"); // ../../node_modules/.pnpm/csv-parse@5.5.5/node_modules/csv-parse/lib/api/CsvError.js var CsvError = class _CsvError extends Error { constructor(code, message, options, ...contexts) { - if (Array.isArray(message)) - message = message.join(" ").trim(); + if (Array.isArray(message)) message = message.join(" ").trim(); super(message); if (Error.captureStackTrace !== void 0) { Error.captureStackTrace(this, _CsvError); @@ -3206,8 +3162,7 @@ var normalize_options = function(opts) { ], options); } const delimiter_json = JSON.stringify(options.delimiter); - if (!Array.isArray(options.delimiter)) - options.delimiter = [options.delimiter]; + if (!Array.isArray(options.delimiter)) options.delimiter = [options.delimiter]; if (options.delimiter.length === 0) { throw new CsvError("CSV_INVALID_OPTION_DELIMITER", [ "Invalid option delimiter:", @@ -3529,8 +3484,7 @@ var transform = function(original_options = {}) { options, state: init_state(options), __needMoreData: function(i, bufLen, end) { - if (end) - return false; + if (end) return false; const { encoding, escape, quote } = this.options; const { quoting, needMoreDataSize, recordDelimiterMaxLength } = this.state; const numOfCharLeft = bufLen - i - 1; @@ -3658,8 +3612,7 @@ var transform = function(original_options = {}) { "(if activated) or comment" ], this.options, this.__infoField()) ); - if (err !== void 0) - return err; + if (err !== void 0) return err; } else { this.state.quoting = false; this.state.wasQuoting = true; @@ -3680,8 +3633,7 @@ var transform = function(original_options = {}) { field: this.state.field }) ); - if (err !== void 0) - return err; + if (err !== void 0) return err; } } else { this.state.quoting = true; @@ -3711,12 +3663,10 @@ var transform = function(original_options = {}) { } this.info.bytes = this.state.bufBytesStart + pos; const errField = this.__onField(); - if (errField !== void 0) - return errField; + if (errField !== void 0) return errField; this.info.bytes = this.state.bufBytesStart + pos + recordDelimiterLength; const errRecord = this.__onRecord(push); - if (errRecord !== void 0) - return errRecord; + if (errRecord !== void 0) return errRecord; if (to !== -1 && this.info.records >= to) { this.state.stop = true; close(); @@ -3741,8 +3691,7 @@ var transform = function(original_options = {}) { if (delimiterLength !== 0) { this.info.bytes = this.state.bufBytesStart + pos; const errField = this.__onField(); - if (errField !== void 0) - return errField; + if (errField !== void 0) return errField; pos += delimiterLength - 1; continue; } @@ -3787,17 +3736,14 @@ var transform = function(original_options = {}) { `the parsing is finished with an opening quote at line ${this.info.lines}` ], this.options, this.__infoField()) ); - if (err !== void 0) - return err; + if (err !== void 0) return err; } else { if (this.state.wasQuoting === true || this.state.record.length !== 0 || this.state.field.length !== 0) { this.info.bytes = this.state.bufBytesStart + pos; const errField = this.__onField(); - if (errField !== void 0) - return errField; + if (errField !== void 0) return errField; const errRecord = this.__onRecord(push); - if (errRecord !== void 0) - return errRecord; + if (errRecord !== void 0) return errRecord; } else if (this.state.wasRowDelimiter === true) { this.info.empty_lines++; } else if (this.state.commenting === true) { @@ -3850,8 +3796,7 @@ var transform = function(original_options = {}) { this.state.error = err; } else { const finalErr = this.__error(err); - if (finalErr) - return finalErr; + if (finalErr) return finalErr; } } if (skip_records_with_empty_values === true && isRecordEmpty(record)) { @@ -3869,8 +3814,7 @@ var transform = function(original_options = {}) { if (columns !== false) { const obj = {}; for (let i = 0, l = record.length; i < l; i++) { - if (columns[i] === void 0 || columns[i].disabled) - continue; + if (columns[i] === void 0 || columns[i].disabled) continue; if (group_columns_by_name === true && obj[columns[i].name] !== void 0) { if (Array.isArray(obj[columns[i].name])) { obj[columns[i].name] = obj[columns[i].name].concat(record[i]); @@ -3974,8 +3918,7 @@ var transform = function(original_options = {}) { } if (cast === true) { const [err, f] = this.__cast(field); - if (err !== void 0) - return err; + if (err !== void 0) return err; field = f; } this.state.record.push(field); @@ -4030,15 +3973,13 @@ var transform = function(original_options = {}) { __isCharTrimable: function(buf, pos) { const isTrim = (buf2, pos2) => { const { timchars } = this.state; - loop1: - for (let i = 0; i < timchars.length; i++) { - const timchar = timchars[i]; - for (let j = 0; j < timchar.length; j++) { - if (timchar[j] !== buf2[pos2 + j]) - continue loop1; - } - return timchar.length; + loop1: for (let i = 0; i < timchars.length; i++) { + const timchar = timchars[i]; + for (let j = 0; j < timchar.length; j++) { + if (timchar[j] !== buf2[pos2 + j]) continue loop1; } + return timchar.length; + } return 0; }; return isTrim(buf, pos); @@ -4053,12 +3994,10 @@ var transform = function(original_options = {}) { return value - parseFloat(value) + 1 >= 0; }, __compareBytes: function(sourceBuf, targetBuf, targetPos, firstByte) { - if (sourceBuf[0] !== firstByte) - return 0; + if (sourceBuf[0] !== firstByte) return 0; const sourceLength = sourceBuf.length; for (let i = 1; i < sourceLength; i++) { - if (sourceBuf[i] !== targetBuf[targetPos + i]) - return 0; + if (sourceBuf[i] !== targetBuf[targetPos + i]) return 0; } return sourceLength; }, @@ -4069,42 +4008,38 @@ var transform = function(original_options = {}) { } else if (ignore_last_delimiters !== false && typeof ignore_last_delimiters === "number" && this.state.record.length === ignore_last_delimiters - 1) { return 0; } - loop1: - for (let i = 0; i < delimiter.length; i++) { - const del = delimiter[i]; - if (del[0] === chr) { - for (let j = 1; j < del.length; j++) { - if (del[j] !== buf[pos + j]) - continue loop1; - } - return del.length; + loop1: for (let i = 0; i < delimiter.length; i++) { + const del = delimiter[i]; + if (del[0] === chr) { + for (let j = 1; j < del.length; j++) { + if (del[j] !== buf[pos + j]) continue loop1; } + return del.length; } + } return 0; }, __isRecordDelimiter: function(chr, buf, pos) { const { record_delimiter } = this.options; const recordDelimiterLength = record_delimiter.length; - loop1: - for (let i = 0; i < recordDelimiterLength; i++) { - const rd = record_delimiter[i]; - const rdLength = rd.length; - if (rd[0] !== chr) { - continue; - } - for (let j = 1; j < rdLength; j++) { - if (rd[j] !== buf[pos + j]) { - continue loop1; - } + loop1: for (let i = 0; i < recordDelimiterLength; i++) { + const rd = record_delimiter[i]; + const rdLength = rd.length; + if (rd[0] !== chr) { + continue; + } + for (let j = 1; j < rdLength; j++) { + if (rd[j] !== buf[pos + j]) { + continue loop1; } - return rd.length; } + return rd.length; + } return 0; }, __isEscape: function(buf, pos, chr) { const { escape } = this.options; - if (escape === null) - return false; + if (escape === null) return false; const l = escape.length; if (escape[0] === chr) { for (let i = 0; i < l; i++) { @@ -4118,8 +4053,7 @@ var transform = function(original_options = {}) { }, __isQuote: function(buf, pos) { const { quote } = this.options; - if (quote === null) - return false; + if (quote === null) return false; const l = quote.length; for (let i = 0; i < l; i++) { if (quote[i] !== buf[pos + i]) { @@ -4136,18 +4070,17 @@ var transform = function(original_options = {}) { Buffer.from("\n", encoding), Buffer.from("\r", encoding) ]; - loop: - for (let i = 0; i < rds.length; i++) { - const l = rds[i].length; - for (let j = 0; j < l; j++) { - if (rds[i][j] !== buf[pos + j]) { - continue loop; - } + loop: for (let i = 0; i < rds.length; i++) { + const l = rds[i].length; + for (let j = 0; j < l; j++) { + if (rds[i][j] !== buf[pos + j]) { + continue loop; } - this.options.record_delimiter.push(rds[i]); - this.state.recordDelimiterMaxLength = rds[i].length; - return rds[i].length; } + this.options.record_delimiter.push(rds[i]); + this.state.recordDelimiterMaxLength = rds[i].length; + return rds[i].length; + } return 0; }, __error: function(msg) { @@ -4208,11 +4141,9 @@ var parse = function(data, opts = {}) { const close = () => { }; const err1 = parser.parse(data, false, push, close); - if (err1 !== void 0) - throw err1; + if (err1 !== void 0) throw err1; const err2 = parser.parse(void 0, true, push, close); - if (err2 !== void 0) - throw err2; + if (err2 !== void 0) throw err2; return records; }; @@ -4324,10 +4255,8 @@ function calcStats(data) { const values = data.map((d) => d.elapsedMs).map((v) => v || 1); const trend = values.slice(-20); const point = values.pop(); - if (point === void 0) - return emptyStats; - if (values.length === 0) - return { point, avg: point, min: point, max: point, sum: point, count: 1, sd: 0, trend }; + if (point === void 0) return emptyStats; + if (values.length === 0) return { point, avg: point, min: point, max: point, sum: point, count: 1, sd: 0, trend }; const sum = values.reduce((a, b) => a + b, 0); const avg = sum / (values.length || 1); const min = Math.min(...values); diff --git a/tools/perf-chart/package.json b/tools/perf-chart/package.json index ba58379724b..f184be2beb7 100644 --- a/tools/perf-chart/package.json +++ b/tools/perf-chart/package.json @@ -31,6 +31,6 @@ "bin.js" ], "devDependencies": { - "esbuild": "^0.20.2" + "esbuild": "^0.21.1" } }