diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..27513d0 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,21 @@ +name: Lint + +on: + push: + branches: [main] + pull_request: + +permissions: + contents: read + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + - uses: pnpm/setup@v2 + - run: pnpm install --frozen-lockfile + - run: pnpm run lint + - run: pnpm test diff --git a/benchmarkFixture.js b/benchmarkFixture.js index 0862b8d..e86de08 100644 --- a/benchmarkFixture.js +++ b/benchmarkFixture.js @@ -1,11 +1,12 @@ 'use strict' -import path from 'path' -import pathKey from 'path-key' -import spawn from "cross-spawn" -import { promises as fs, cpSync } from 'fs' +import { cpSync, promises as fs } from 'node:fs' +import path from 'node:path' +import { fileURLToPath } from 'node:url' + +import spawn from 'cross-spawn' import getFolderSize from 'get-folder-size' +import pathKey from 'path-key' import rimraf from 'rimraf' -import { fileURLToPath } from 'url' import tempy from 'tempy' const DIRNAME = path.dirname(fileURLToPath(import.meta.url)) @@ -17,7 +18,7 @@ const lockfileNameByPM = { npm: 'package-lock.json', pnpm: 'pnpm-lock.yaml', yarn: 'yarn.lock', - bun: 'bun.lock' + bun: 'bun.lock', } export function createEnv (managersDir) { @@ -45,7 +46,7 @@ export function createEnv (managersDir) { // Where tools installed as packages keep theirs — pnpr today. path.join(managersDir, 'node_modules/.bin'), path.dirname(process.execPath), - process.env[pathEnv] + process.env[pathEnv], ].join(path.delimiter) return env } @@ -76,7 +77,7 @@ function cleanLockfile (pm, cwd, env) { rimraf.sync(path.join(cwd, lockfileName)) if (pm.name === 'yarn') { // This ensures yarn berry to install under a nested folder - spawnSyncOrThrow({ name: 'nodetouch', args: [lockfileName] }, { env, cwd, stdio: "inherit" }) + spawnSyncOrThrow({ name: 'nodetouch', args: [lockfileName] }, { env, cwd, stdio: 'inherit' }) } } @@ -88,49 +89,49 @@ function cleanLockfile (pm, cwd, env) { * pull it from npmjs inside a measured run. */ export const UPDATED_DEPENDENCIES = { - "babel-core": "^6.4.0", - "babel-eslint": "^6.1.2", - "babel-loader": "^6.2.1", - "babel-plugin-lodash": "^3.2.11", - "babel-plugin-module-resolver": "^2.2.0", - "babel-plugin-transform-decorators-legacy": "^1.3.4", - "babel-plugin-transform-runtime": "^6.4.3", - "babel-polyfill": "^6.23.0", - "babel-preset-es2015": "^6.3.13", - "babel-preset-react": "^6.3.13", - "babel-preset-react-hmre": "^1.0.1", - "babel-preset-stage-1": "^6.3.13", - "babel-runtime": "^6.3.19", - "clean-webpack-plugin": "^0.1.16", - "core-decorators": "^0.12.3", - "css-loader": "^0.23.1", - "css-mqpacker": "^4.0.0", - "react": "^15.4.1", - "react-addons-css-transition-group": "^15.3.0", - "react-addons-shallow-compare": "^15.3.0", - "react-dnd": "^2.1.4", - "react-dnd-html5-backend": "^2.1.2", - "react-dom": "^15.4.1", - "react-draft-wysiwyg": "^1.6.5", - "react-dropzone": "^3.5.3", - "react-grid-layout": "^0.12.6", - "react-highcharts": "^11.5.0", - "react-hot-loader": "v3.0.0-beta.6", - "react-input-calendar": "^0.3.14", - "react-lazyload": "^2.2.5", - "react-measure": "^1.4.6", - "react-mixin": "^3.0.3", - "react-responsive": "^1.2.5", - "react-responsive-tabs": "^0.5.3", - "react-router": "^4.0.0", - "react-router-dom": "^4.0.0", - "react-select-plus": "^1.0.0-rc", - "react-skylight": "^0.3.0", - "react-sortablejs": "^1.2.1", - "react-tappable": "^0.8.4", - "react-tooltip": "3.11.2", - "react-virtualized": "^7.19.4", - "react-waypoint": "^5.2.0", + 'babel-core': '^6.4.0', + 'babel-eslint': '^6.1.2', + 'babel-loader': '^6.2.1', + 'babel-plugin-lodash': '^3.2.11', + 'babel-plugin-module-resolver': '^2.2.0', + 'babel-plugin-transform-decorators-legacy': '^1.3.4', + 'babel-plugin-transform-runtime': '^6.4.3', + 'babel-polyfill': '^6.23.0', + 'babel-preset-es2015': '^6.3.13', + 'babel-preset-react': '^6.3.13', + 'babel-preset-react-hmre': '^1.0.1', + 'babel-preset-stage-1': '^6.3.13', + 'babel-runtime': '^6.3.19', + 'clean-webpack-plugin': '^0.1.16', + 'core-decorators': '^0.12.3', + 'css-loader': '^0.23.1', + 'css-mqpacker': '^4.0.0', + 'react': '^15.4.1', + 'react-addons-css-transition-group': '^15.3.0', + 'react-addons-shallow-compare': '^15.3.0', + 'react-dnd': '^2.1.4', + 'react-dnd-html5-backend': '^2.1.2', + 'react-dom': '^15.4.1', + 'react-draft-wysiwyg': '^1.6.5', + 'react-dropzone': '^3.5.3', + 'react-grid-layout': '^0.12.6', + 'react-highcharts': '^11.5.0', + 'react-hot-loader': 'v3.0.0-beta.6', + 'react-input-calendar': '^0.3.14', + 'react-lazyload': '^2.2.5', + 'react-measure': '^1.4.6', + 'react-mixin': '^3.0.3', + 'react-responsive': '^1.2.5', + 'react-responsive-tabs': '^0.5.3', + 'react-router': '^4.0.0', + 'react-router-dom': '^4.0.0', + 'react-select-plus': '^1.0.0-rc', + 'react-skylight': '^0.3.0', + 'react-sortablejs': '^1.2.1', + 'react-tappable': '^0.8.4', + 'react-tooltip': '3.11.2', + 'react-virtualized': '^7.19.4', + 'react-waypoint': '^5.2.0', } async function updateDependenciesInPackageJson (cwd) { @@ -262,7 +263,7 @@ function removeInstallOutput (cwd, modules) { } } -export default async function benchmark (pm, fixture, opts) { +export async function benchmark (pm, fixture, opts) { const cwd = path.join(TMP, pm.scenario, fixture) const env = createEnv(opts.managersDir) if (pm.rustEngine) { @@ -348,13 +349,13 @@ export default async function benchmark (pm, fixture, opts) { rimraf.sync(path.join(cwd, 'cache')) cleanLockfile(pm, cwd, env) - console.log(`# first install`) + console.log('# first install') const firstInstall = measureInstall(pm, cwd, env) let repeatInstall if (modules) { - console.log(`# repeat install`) + console.log('# repeat install') repeatInstall = measureInstall(pm, cwd, env) @@ -363,7 +364,7 @@ export default async function benchmark (pm, fixture, opts) { repeatInstall = 0 } - console.log(`# with warm cache and lockfile`) + console.log('# with warm cache and lockfile') const withWarmCacheAndLockfile = measureInstall(pm, cwd, env) @@ -414,7 +415,7 @@ export default async function benchmark (pm, fixture, opts) { } else { withWarmCacheAndModules = withWarmModulesAndLockfile = - withWarmModules = 0 + withWarmModules = 0 size = await getFolderSize.loose(path.join(cwd, 'cache')) } @@ -490,7 +491,7 @@ export default async function benchmark (pm, fixture, opts) { withWarmModulesAndLockfile, withWarmModules, updatedDependencies, - size + size, } } @@ -511,7 +512,7 @@ function measureInstall (cmd, cwd, env) { const startTime = Date.now() console.log(`> ${cmd.name} ${cmd.args.join(' ')}`) - spawnSyncOrThrow(cmd, { env, cwd, stdio: "inherit" }); + spawnSyncOrThrow(cmd, { env, cwd, stdio: 'inherit' }); const endTime = Date.now() diff --git a/benchmarkNodeVersions.js b/benchmarkNodeVersions.js index d6d1f04..0180ac1 100644 --- a/benchmarkNodeVersions.js +++ b/benchmarkNodeVersions.js @@ -1,10 +1,12 @@ 'use strict' -import fs from 'fs' -import path from 'path' -import rimraf from 'rimraf' -import pathKey from 'path-key' +import fs from 'node:fs' +import path from 'node:path' + import spawn from 'cross-spawn' +import pathKey from 'path-key' +import rimraf from 'rimraf' import tempy from 'tempy' + import { createEnv } from './benchmarkFixture.js' const TMP = tempy.directory() @@ -190,7 +192,7 @@ export function readManagerVersion (pm, opts) { return captureShell(runner, 'nvm --version', opts.managersDir, env).trim() } -export default async function benchmarkNodeVersions (pm, opts) { +export async function benchmarkNodeVersions (pm, opts) { const dir = path.join(TMP, pm.scenario) rimraf.sync(dir) fs.mkdirSync(dir, { recursive: true }) @@ -332,5 +334,5 @@ function nvmSourceDir (managersDir) { } function quote (value) { - return `'${value.replace(/'/g, `'\\''`)}'` + return `'${value.replace(/'/g, "'\\''")}'` } diff --git a/benchmarkRegistry.js b/benchmarkRegistry.js index 108886a..e436622 100644 --- a/benchmarkRegistry.js +++ b/benchmarkRegistry.js @@ -1,19 +1,20 @@ 'use strict' -import fs from 'fs' -import path from 'path' -import { fileURLToPath } from 'url' -import cmdsMap from './commandsMap.js' -import { startLatencyProxy, mbpsToBytesPerSec } from './latencyProxy.js' +import fs from 'node:fs' +import path from 'node:path' +import { fileURLToPath } from 'node:url' + +import { cmdsMap } from './commandsMap.js' +import { mbpsToBytesPerSec, startLatencyProxy } from './latencyProxy.js' import { installPnpr, - pnprVersion, - startPnpr, mintToken, + npmRegistryUrl, + pnprVersion, populateCache, - verifyResolverIsUsed, reservePort, - npmRegistryUrl, + startPnpr, tarRegistryUrl, + verifyResolverIsUsed, } from './pnprServer.js' const DIRNAME = path.dirname(fileURLToPath(import.meta.url)) @@ -152,6 +153,7 @@ export async function startBenchmarkRegistry ({ managersDirs, fixtureNames }) { console.log(`# pnpr storage seeded from ${seededStorage} (cache warm-up skipped)`) } else { for (const fixtureName of fixtureNames) { + // eslint-disable-next-line no-await-in-loop -- the fixtures warm one shared registry one after another await populateCache({ pm: withRegistry(cmdsMap.pnpm12, url), managersDir: managersDirs.pnpm12, diff --git a/commandsMap.js b/commandsMap.js index e1f72a6..25d97ac 100644 --- a/commandsMap.js +++ b/commandsMap.js @@ -6,7 +6,7 @@ // Nor does anything here say which of them a reader is shown. Every manager // listed is measured and reported in `benchmarks.json`; pnpm.io draws npm and // the pnpm columns from it, and the rest are measured for our own comparisons. -export default { +export const cmdsMap = { npm: { scenario: 'npm', name: 'npm', @@ -20,7 +20,7 @@ export default { '--legacy-peer-deps', // npm CLI fails on the benchmarks with this option. So, commenting out for now. // '--install-strategy=linked', - ] + ], }, pnpm11: { scenario: 'pnpm11', @@ -34,7 +34,7 @@ export default { '--no-strict-peer-dependencies', '--config.auto-install-peers=false', '--config.resolution-mode=highest', - ] + ], }, pnpm12: { scenario: 'pnpm12', @@ -46,7 +46,7 @@ export default { args: [ 'install', '--ignore-scripts', - ] + ], }, // The two scenarios below are the same pnpm 12 as the row above, measured // under a different linking strategy. Neither changes the command: the @@ -95,14 +95,14 @@ export default { args: [ 'install', '--ignore-scripts', - ] + ], }, yarn: { scenario: 'yarn', name: 'yarn', args: [ - 'install' - ] + 'install', + ], }, bun: { scenario: 'bun', @@ -116,6 +116,6 @@ export default { // scenario that starts without a lockfile. Yarn is opted out of the same // behaviour through `enableImmutableInstalls: false`. '--no-frozen-lockfile', - ] - } + ], + }, } diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..c9c6fbe --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,70 @@ +import eslintConfig, { sizeAndShapeRules } from '@pnpm/eslint-config' +import * as regexpPlugin from 'eslint-plugin-regexp' + +// The shared config is written for the TypeScript sources of the pnpm +// monorepo. This repository is plain JavaScript, so the same rules are applied +// to its .js and .mjs files instead. +const JS_FILES = ['**/*.js', '**/*.mjs'] +const TEST_FILES = ['**/*.test.mjs'] + +// Files whose code still exceeds the size and shape limits. Remove a file +// from this list once it is refactored to pass them. +const PENDING_SIZE_AND_SHAPE_REFACTOR = [ + 'benchmarkFixture.js', + 'benchmarkRegistry.js', + 'index.js', + 'latencyProxy.js', + 'mergeResults.js', + 'pnprServer.js', +] + +function retarget (config) { + if (!config.files) return config + const isTestConfig = config.files.some((pattern) => pattern.includes('test')) + return { ...config, files: isTestConfig ? TEST_FILES : JS_FILES } +} + +export default [ + { + ignores: ['**/fixtures', '**/node_modules', '.claude/**', '.tmp*/**', 'managers/**', 'results/**', 'samples/**', '.pnpr-cache/**'], + }, + ...eslintConfig.map(retarget), + regexpPlugin.configs['flat/recommended'], + { + files: JS_FILES, + rules: { + // JavaScript has no syntax for the types this rule asks for. + '@typescript-eslint/explicit-module-boundary-types': 'off', + // This repository is a set of scripts, not a published package, and + // keeps all of its dependencies in one manifest. + 'import-x/no-extraneous-dependencies': 'off', + }, + }, + { + files: TEST_FILES, + rules: { + // The tests run on node:test, whose test() and describe() return a + // promise that the runner itself awaits. + '@typescript-eslint/no-floating-promises': ['error', { + allowForKnownSafeCalls: [ + { from: 'package', package: 'node:test', name: ['describe', 'it', 'suite', 'test'] }, + ], + }], + }, + }, + { + files: ['eslint.config.mjs'], + rules: { + // ESLint loads its config from the default export. + 'import-x/no-default-export': 'off', + }, + }, + { + files: PENDING_SIZE_AND_SHAPE_REFACTOR, + rules: Object.fromEntries( + Object.keys(sizeAndShapeRules) + .filter((rule) => rule !== 'perfectionist/overly-complex-condition' && rule !== 'perfectionist/overly-long-method-chain') + .map((rule) => [rule, 'off']) + ), + }, +] diff --git a/index.js b/index.js index 90acf48..65f5e03 100644 --- a/index.js +++ b/index.js @@ -1,21 +1,24 @@ 'use strict' -import fs from 'fs' +import fs from 'node:fs' +import path from 'node:path' +import { fileURLToPath } from 'node:url' + import rimraf from 'rimraf' import tempy from 'tempy' -import cmdsMap from './commandsMap.js' -import nodeManagersMap from './nodeManagersMap.js' -import benchmark, { LIMIT_RUNS, readRecordedResults } from './recordBenchmark.js' -import benchmarkNodeVersions, { + +import { + benchmarkNodeVersions, cloneNvm, - readManagerVersion, PRIMARY_NODE_VERSION, + readManagerVersion, SECONDARY_NODE_VERSION, } from './benchmarkNodeVersions.js' -import { startBenchmarkRegistry, ROUND_TRIP_MS, BANDWIDTH_MBPS, RESULTS_SUFFIX } from './benchmarkRegistry.js' +import { BANDWIDTH_MBPS, RESULTS_SUFFIX, ROUND_TRIP_MS, startBenchmarkRegistry } from './benchmarkRegistry.js' +import { cmdsMap } from './commandsMap.js' +import { fixtureNames, fixtures } from './fixtures.js' +import { nodeManagersMap } from './nodeManagersMap.js' +import { LIMIT_RUNS, readRecordedResults, recordBenchmark } from './recordBenchmark.js' import { bootstrapInstaller, provisionPackageManagers } from './setupPackageManagers.js' -import { fixtures, fixtureNames } from './fixtures.js' -import path from 'path' -import { fileURLToPath } from 'url' const DIRNAME = path.dirname(fileURLToPath(import.meta.url)) const TMP = path.join(DIRNAME, '.tmp') @@ -63,7 +66,7 @@ const tests = [ 'withWarmCacheAndLockfile', 'withWarmModulesAndLockfile', 'repeatInstall', - 'updatedDependencies' + 'updatedDependencies', ] // The scenarios the Node.js version managers are measured on. They live in @@ -108,7 +111,8 @@ async function report () { } catch (err) { throw new Error( `Couldn't read the versions a measuring run recorded at ${versionsFile}. ` + - `A reporting run needs it to label the manifest and to find the results. ${err.message}` + `A reporting run needs it to label the manifest and to find the results. ${err.message}`, + { cause: err } ) } // The manifest crosses a job boundary, so it is worth insisting on rather @@ -260,7 +264,7 @@ async function measure () { } } const runFixture = async ({ key, hasNodeModules }, fixtureName) => { - const results = await benchmark(pmCommands[key], fixtureName, { + const results = await recordBenchmark(pmCommands[key], fixtureName, { limitRuns: LIMIT_RUNS, // Filed under a name of their own: these runs are measured against our // own registry over an emulated link, so pooling them with the runs @@ -288,7 +292,7 @@ async function measure () { } const nodeManagers = await collectNodeVersionManagers({ - runManager: (pm) => benchmark(pm, 'node-versions', { + runManager: (pm) => recordBenchmark(pm, 'node-versions', { limitRuns: LIMIT_RUNS, managersDir: managersDirs[pm.scenario], getVersion: readManagerVersion, @@ -322,6 +326,7 @@ async function collectFixtures ({ pmCommands, runFixture }) { if (skipManagers.includes(config.key)) continue packageManagers[config.key] = { version: pmCommands[config.key].version, + // eslint-disable-next-line no-await-in-loop -- measurements run one at a time so they do not compete for the machine results: min(await runFixture(config, name), tests), } } @@ -334,6 +339,7 @@ async function collectFixtures ({ pmCommands, runFixture }) { async function collectNodeVersionManagers ({ runManager, versionOf }) { const managers = {} for (const [key, pm] of Object.entries(nodeManagersMap)) { + // eslint-disable-next-line no-await-in-loop -- measurements run one at a time so they do not compete for the machine const samples = await runManager(pm) managers[key] = { version: versionOf?.(key) ?? pm.version, diff --git a/latencyProxy.js b/latencyProxy.js index 4e108d5..70a50dc 100644 --- a/latencyProxy.js +++ b/latencyProxy.js @@ -1,9 +1,10 @@ 'use strict' -import fs from 'fs' -import net from 'net' -import path from 'path' +import fs from 'node:fs' +import net from 'node:net' +import path from 'node:path' +import { fileURLToPath } from 'node:url' + import spawn from 'cross-spawn' -import { fileURLToPath } from 'url' const DIRNAME = path.dirname(fileURLToPath(import.meta.url)) @@ -132,7 +133,11 @@ function pump (src, dst, profile, link) { }) }) - src.on('end', () => { queue = queue.then(() => { if (!dst.destroyed) dst.end() }).catch(() => {}) }) + src.on('end', () => { + queue = queue.then(() => { + if (!dst.destroyed) dst.end() + }).catch(() => {}) + }) src.on('error', () => dst.destroy()) return { flushed: () => queue } @@ -165,8 +170,12 @@ function listen ({ upstreamPort, roundTripMs, rateLimit, slowStart }) { // held. Waiting for the direction to drain first keeps the destroy doing // what it is for — releasing a connection nobody will finish — which // matters because an install opens a great many of them. - upstream.on('close', () => { toClient.flushed().finally(() => client.destroy()) }) - client.on('close', () => { toUpstream.flushed().finally(() => upstream.destroy()) }) + upstream.on('close', () => { + void toClient.flushed().finally(() => client.destroy()) + }) + client.on('close', () => { + void toUpstream.flushed().finally(() => upstream.destroy()) + }) }) // Accepting a connection can fail without the listener being finished — most // of all by running out of file descriptors, which a proxy is twice as prone @@ -205,7 +214,9 @@ export async function startLatencyProxy ({ upstreamPort, roundTripMs, rateLimit fs.closeSync(logFd) let exit = null - proc.on('exit', (code, signal) => { exit = { code, signal } }) + proc.on('exit', (code, signal) => { + exit = { code, signal } + }) const deadline = Date.now() + 15_000 while (Date.now() < deadline) { @@ -228,12 +239,15 @@ export async function startLatencyProxy ({ upstreamPort, roundTripMs, rateLimit `Everything measured after it would be meaningless. Its log:\n${fs.readFileSync(logPath, 'utf8').slice(-4000)}` ) }, - close: () => { proc.kill() }, + close: () => { + proc.kill() + }, } } if (proc.exitCode !== null) { throw new Error(`The latency proxy exited with code ${proc.exitCode}. ${log}`) } + // eslint-disable-next-line no-await-in-loop -- polling: each check waits for the previous delay await sleep(100) } // A proxy that is alive but never reported a port would otherwise outlive the diff --git a/latencyProxy.test.mjs b/latencyProxy.test.mjs index 74dff05..57b7d38 100644 --- a/latencyProxy.test.mjs +++ b/latencyProxy.test.mjs @@ -14,8 +14,10 @@ import crypto from 'node:crypto' import http from 'node:http' import path from 'node:path' import test from 'node:test' + import tempy from 'tempy' -import { startLatencyProxy, mbpsToBytesPerSec } from './latencyProxy.js' + +import { mbpsToBytesPerSec, startLatencyProxy } from './latencyProxy.js' const BODY = crypto.randomBytes(4 * 1024 * 1024) const DIGEST = crypto.createHash('sha256').update(BODY).digest('hex') @@ -118,9 +120,10 @@ test('responses survive intact over reused and concurrent connections', async () const proxy = await proxyFor(origin.port, { roundTripMs: 20, rateLimit: mbpsToBytesPerSec(200) }) const agent = new http.Agent({ keepAlive: true }) try { - for (let i = 0; i < 10; i++) { + for (let request = 0; request < 10; request++) { + // eslint-disable-next-line no-await-in-loop -- the requests must reuse one keep-alive connection in turn const result = await fetchThrough(proxy.port, '/big', agent) - assert.equal(result.digest, DIGEST, `keep-alive request ${i} came back truncated`) + assert.equal(result.digest, DIGEST, `keep-alive request ${request} came back truncated`) } const concurrent = await Promise.all( Array.from({ length: 8 }, () => fetchThrough(proxy.port, '/big')) diff --git a/mergeResults.js b/mergeResults.js index a40be88..f495f89 100644 --- a/mergeResults.js +++ b/mergeResults.js @@ -1,9 +1,11 @@ 'use strict' -import fs from 'fs' -import path from 'path' -import { fileURLToPath } from 'url' +import fs from 'node:fs' +import path from 'node:path' +import { fileURLToPath } from 'node:url' + import { loadYamlFile } from 'load-yaml-file' import writeYamlFile from 'write-yaml-file' + import { LIMIT_RUNS } from './recordBenchmark.js' const DIRNAME = path.dirname(fileURLToPath(import.meta.url)) @@ -79,15 +81,18 @@ async function main () { for (const runDir of runDirs) { for (const file of resultFiles(path.join(runDir, 'results'))) { if (baselines.has(file)) continue + // eslint-disable-next-line no-await-in-loop -- reads one results file at a time baselines.set(file, (await readSamples(path.join(RESULTS, file))).length) } } let added = 0 for (const [file, baseline] of baselines) { + // eslint-disable-next-line no-await-in-loop -- reads one results file at a time const merged = await readSamples(path.join(RESULTS, file)) const before = merged.length for (const runDir of runDirs) { + // eslint-disable-next-line no-await-in-loop -- reads one results file at a time const samples = await readSamples(path.join(runDir, 'results', file)) // A run that hit `LIMIT_RUNS` added nothing, and slicing gives nothing. // A file no earlier run recorded has no baseline, so all of it is new. @@ -103,6 +108,7 @@ async function main () { // from the same baseline and so can carry it past the cap together — 29 // samples plus one from each run is 32. The oldest go, because the cap is // there to bound how far back a file reaches. + // eslint-disable-next-line no-await-in-loop -- writes one results file at a time await writeYamlFile(path.join(RESULTS, file), merged.slice(-LIMIT_RUNS)) } diff --git a/nodeManagersMap.js b/nodeManagersMap.js index 7138dd4..6aa702a 100644 --- a/nodeManagersMap.js +++ b/nodeManagersMap.js @@ -1,6 +1,6 @@ // Tools compared on installing and switching Node.js versions. // The scenarios themselves live in `benchmarkNodeVersions.js`. -export default { +export const nodeManagersMap = { pnpm12: { scenario: 'pnpm12', name: 'pnpm', diff --git a/package.json b/package.json index 10090ed..fa81af3 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "report": "node ./index.js --report-only", "merge-results": "node ./mergeResults.js", "test": "node --test latencyProxy.test.mjs pnprServer.test.mjs", + "lint": "eslint .", "populate-cache": "node ./populatePnprCache.js" }, "dependencies": { @@ -36,5 +37,13 @@ "version": "^24.0.0", "onFail": "download" } + }, + "devDependencies": { + "@pnpm/eslint-config": "1100.0.2", + "@types/node": "^24.19.2", + "eslint": "^10.13.0", + "eslint-plugin-jest": "^29.17.0", + "eslint-plugin-regexp": "^3.3.1", + "typescript": "6.0.3" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 28ece57..b81805f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -191,12 +191,120 @@ importers: specifier: ^4.2.0 version: 4.2.0 devDependencies: + '@pnpm/eslint-config': + specifier: 1100.0.2 + version: 1100.0.2(@typescript-eslint/utils@8.72.1(eslint@10.13.0)(typescript@6.0.3)) + '@types/node': + specifier: ^24.19.2 + version: 24.19.2 + eslint: + specifier: ^10.13.0 + version: 10.13.0 + eslint-plugin-jest: + specifier: ^29.17.0 + version: 29.17.0(@typescript-eslint/eslint-plugin@8.72.1(@typescript-eslint/parser@8.72.1(eslint@10.13.0)(typescript@6.0.3))(eslint@10.13.0)(typescript@6.0.3))(eslint@10.13.0)(typescript@6.0.3) + eslint-plugin-regexp: + specifier: ^3.3.1 + version: 3.3.1(eslint@10.13.0) node: specifier: runtime:^24.0.0 version: runtime:24.19.0 + typescript: + specifier: 6.0.3 + version: 6.0.3 packages: + '@cacheable/memory@2.2.0': + resolution: {integrity: sha512-CTLKqLItRCEixEAewD3/j9DB3/o96gpTPD4eJ1v+DGOlxZRZncRQkGYqqnAGCscYd6RNeXfGeiuCphsPtqyIfQ==} + + '@cacheable/utils@2.5.0': + resolution: {integrity: sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA==} + + '@emnapi/core@1.10.0': + resolution: {integrity: sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==} + + '@emnapi/runtime@1.10.0': + resolution: {integrity: sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==} + + '@emnapi/wasi-threads@1.2.1': + resolution: {integrity: sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==} + + '@eslint-community/eslint-utils@4.10.1': + resolution: {integrity: sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + + '@eslint-community/regexpp@4.12.2': + resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + + '@eslint/config-array@0.23.5': + resolution: {integrity: sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} + + '@eslint/config-helpers@0.7.0': + resolution: {integrity: sha512-DObd/KKUsU+FaFv4PLxSRenpXfQWmPXXP3pPZ6/K1PCrMu2vQpMDMuQe/BqYeoLcz8ro0bVDF1RxOJgfVEdhUw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} + + '@eslint/core@1.2.1': + resolution: {integrity: sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} + + '@eslint/js@10.0.1': + resolution: {integrity: sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} + peerDependencies: + eslint: ^10.0.0 + peerDependenciesMeta: + eslint: + optional: true + + '@eslint/object-schema@3.0.5': + resolution: {integrity: sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} + + '@eslint/plugin-kit@0.7.3': + resolution: {integrity: sha512-IkO+/KEUvwbVpiURZg+P7zF74z5Jxe0UgJxVni+RtoHQ6IZieXaO02kmadomap/q+l6bc/jdPGGqTjhuZnuz1Q==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} + + '@humanfs/core@0.19.2': + resolution: {integrity: sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==} + engines: {node: '>=18.18.0'} + + '@humanfs/node@0.16.8': + resolution: {integrity: sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==} + engines: {node: '>=18.18.0'} + + '@humanfs/types@0.15.0': + resolution: {integrity: sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==} + engines: {node: '>=18.18.0'} + + '@humanwhocodes/module-importer@1.0.1': + resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} + engines: {node: '>=12.22'} + + '@humanwhocodes/retry@0.4.3': + resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} + engines: {node: '>=18.18'} + + '@keyv/bigmap@1.3.1': + resolution: {integrity: sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ==} + engines: {node: '>= 18'} + peerDependencies: + keyv: ^5.6.0 + + '@keyv/serialize@1.1.1': + resolution: {integrity: sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==} + + '@napi-rs/wasm-runtime@1.2.6': + resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 + '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 + '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -209,16 +317,236 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} + '@pnpm/eslint-config@1100.0.2': + resolution: {integrity: sha512-gKpQ6lUCu2vOKtoK5Ho/engK4NwHlbpxB9C+HFiYHQ1tNzD2jyjkAK5mUdHw2BcioX708d4mmoSSWhm4o4HTTg==} + engines: {node: '>=18.18.0'} + + '@stylistic/eslint-plugin@5.10.0': + resolution: {integrity: sha512-nPK52ZHvot8Ju/0A4ucSX1dcPV2/1clx0kLcH5wDmrE4naKso7TUC/voUyU1O9OTKTrR6MYip6LP0ogEMQ9jPQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^9.0.0 || ^10.0.0 + + '@tybys/wasm-util@0.10.4': + resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==} + + '@types/esrecurse@4.3.1': + resolution: {integrity: sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==} + + '@types/estree@1.0.9': + resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} + + '@types/json-schema@7.0.15': + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + + '@types/node@24.19.2': + resolution: {integrity: sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==} + + '@typescript-eslint/eslint-plugin@8.72.1': + resolution: {integrity: sha512-5CokTWXpmbylfFabsbvHC0CAw3XLaGnoa+nFJX5FR592h/LoZsENUE6p/rg5xvkKrFEXz6pYmgI29AgXc2N3BQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + '@typescript-eslint/parser': ^8.72.1 + eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 + typescript: '>=4.8.4 <6.1.0' + + '@typescript-eslint/parser@8.72.1': + resolution: {integrity: sha512-ZGwZP4OCfyA0AQTpEAMWz+rtX01DRhQWW5hB0ucKDEIX5U7jdmPSaMx94rQfaPAQzIYz2BimOgKOJtjfpRFQ9g==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 + typescript: '>=4.8.4 <6.1.0' + + '@typescript-eslint/project-service@8.72.1': + resolution: {integrity: sha512-fAuVMkwdO/huI8nyo/WKnNKf6Gag93S56Rh3Ts5mGcavwSdaN8tRg1gCeIGX8PF+nzp1BjGfO4gHhGzW1J6jTg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + typescript: '>=4.8.4 <6.1.0' + + '@typescript-eslint/scope-manager@8.72.1': + resolution: {integrity: sha512-lC/t6eMCZZQAAKZEYGL6RDVSuFehpdmMT6h+nJIjIa6oylN/PwDgDVtEIbB7O9xFfZYtZAYLoLlDNWKJhtF+uQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@typescript-eslint/tsconfig-utils@8.72.1': + resolution: {integrity: sha512-e4D5R5vpeAEPBxT2BAzsFQL3sbwyeeeo5+aczgNSRK1V734jE7pTqaGFU+fXapWEQwnZbpFaTn32+Z8DwS6OTg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + typescript: '>=4.8.4 <6.1.0' + + '@typescript-eslint/type-utils@8.72.1': + resolution: {integrity: sha512-iY2wlmyrXJmx4yxUGP3aYCFF3cA/6ShddOKmLU2dx7LnEykbAM8WThlxZEfd1NddqceF6eJmZUayxx9oKIYNlg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 + typescript: '>=4.8.4 <6.1.0' + + '@typescript-eslint/types@8.72.1': + resolution: {integrity: sha512-LmE5IhQet1BWOWEXqBrVtBPsMAOQ6Nzk35d+WLh3mk4EUF33sqlfxjio1MdYeSvKSG5skactKKuixBIKXhL4Rw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@typescript-eslint/typescript-estree@8.72.1': + resolution: {integrity: sha512-DAlUoUV93hIvrtIQLwCbmZQYVZwOMhiHJrOVUUIWicFZaIYjTRqlY3I/NZevfkLmSqkNHRu2qYDcq9lrn16oOQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + typescript: '>=4.8.4 <6.1.0' + + '@typescript-eslint/utils@8.72.1': + resolution: {integrity: sha512-5v5liypurJBFHCBNqh/RjsymAD+VWcE0djuGY/BUqp5fC3Qn+luWDEksjuTtWjPn6i5zQlUtkZCRG/CYG0yCkA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 + typescript: '>=4.8.4 <6.1.0' + + '@typescript-eslint/visitor-keys@8.72.1': + resolution: {integrity: sha512-SB8xqipSzZHUePCCLNeYxqnxq83X61/qzNhjQGbTfjxGZIeOEP7tBgWYX05Tcd6CgE02WdTJnh5b8kMZJ/+bnQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + '@unrs/resolver-binding-android-arm-eabi@1.12.2': + resolution: {integrity: sha512-g5T90pqg1bo/7mytQx6F4iBNC0Wsh9cu+z9veDbFjc7HjpesJFWD7QMS0NGStXM075+7dJPPVvBbpZlnrdpi/w==} + cpu: [arm] + os: [android] + + '@unrs/resolver-binding-android-arm64@1.12.2': + resolution: {integrity: sha512-YGCRZv/9GLhwmz6mYDeTsm/92BAyR28l6c2ReweVW5pWgfsitWLY8upvfRlGdoyD8HjeTHSYJWyZGD4KJA/nFQ==} + cpu: [arm64] + os: [android] + + '@unrs/resolver-binding-darwin-arm64@1.12.2': + resolution: {integrity: sha512-u9DiNT1auQMO20A9SyTuG3wUgQWB9Z7KjAg0uFuCDR1FsAY8A0CG2S6JpHS1xwm/w1G08bjXZDcyOCjv1WAm2w==} + cpu: [arm64] + os: [darwin] + + '@unrs/resolver-binding-darwin-x64@1.12.2': + resolution: {integrity: sha512-f7rPLi/T1HVKZu/u6t87lroib16n8vrSzcyxI7lg4BGO9UF26KhQL44sd9eOUgrTYhvRXtWOIZT5PejdPyJfUA==} + cpu: [x64] + os: [darwin] + + '@unrs/resolver-binding-freebsd-x64@1.12.2': + resolution: {integrity: sha512-BpcOjWCJub6nRZUS2zA20pmLvjtqAtGejETaIyRLiZiQf++cbrjltLA5NN/xaXfqeOBOSlMFbemIl5/S5tljmg==} + cpu: [x64] + os: [freebsd] + + '@unrs/resolver-binding-linux-arm-gnueabihf@1.12.2': + resolution: {integrity: sha512-vZTDvdSISZjJx66OzJqtsOhzifbqRjbmI1Mnu49fQDwog5GtDI4QidRiEAYbZCRj9C8YZEW+3ZjqsyS9GR4k2A==} + cpu: [arm] + os: [linux] + + '@unrs/resolver-binding-linux-arm-musleabihf@1.12.2': + resolution: {integrity: sha512-BiPI+IrIlwcW4nLLMM21+B1dFPzd55yAVgVGrdgDjNef+ch03GdxrcyaIz8X9SsQirh/kCQ7mviyWlMxdh2D7g==} + cpu: [arm] + os: [linux] + + '@unrs/resolver-binding-linux-arm64-gnu@1.12.2': + resolution: {integrity: sha512-zJc0H99FEPoFfSrNpa91HYfxzfAJCr502oxNK1cfdC9hlaFI43RT+JFCann9JUgZmLzzntChHyn13Sgn9ljHNg==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@unrs/resolver-binding-linux-arm64-musl@1.12.2': + resolution: {integrity: sha512-KQ3Lki6l+Pz1k/eBipN41ES+YUK30beLGb9YqcB1O542cyLCNE6GaxrfcY3T6EezmGGk84wb5XyO9loTM9tkcA==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@unrs/resolver-binding-linux-loong64-gnu@1.12.2': + resolution: {integrity: sha512-3SJGEh1DborhG6pyxvhPzCT4bbSIVihsvgJc13P1bHG7KLdNDaF9T3gsTwFc7Jw/5Y5/iWOjkEx7Zy0NvCGX3Q==} + cpu: [loong64] + os: [linux] + libc: [glibc] + + '@unrs/resolver-binding-linux-loong64-musl@1.12.2': + resolution: {integrity: sha512-jiuG/Obbel7uw1PwHNFfrkiKhLAF6mnyZ6aWlOAVN9WqKm8v0OFGnciJIHu8+CMvXLQ8AD51LPzAoUfT21D5Ew==} + cpu: [loong64] + os: [linux] + libc: [musl] + + '@unrs/resolver-binding-linux-ppc64-gnu@1.12.2': + resolution: {integrity: sha512-q7xRvVpmcfeL+LlZg8Pbbo6QaTZwDU5BaGZbwfhkEsXJn3Was8xYfE0RBH266xZt0rM6B7i8xAYIvjthuUIWHg==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@unrs/resolver-binding-linux-riscv64-gnu@1.12.2': + resolution: {integrity: sha512-0CVdx6lcnT3Q9inOH8tsMIOJ6ImndllMjqJHg8RLVdB7Vq4SfkEXl9mCSsVNuNA4MCYycRicCUxPCabVHJRr6A==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@unrs/resolver-binding-linux-riscv64-musl@1.12.2': + resolution: {integrity: sha512-iOwlRo9vnp6R6ohHQS11n0NnfdXx/omhkocmIfaPRpQhKZ+3BDMkkdRVh53qjkFkpPddf+FETA28NwGN7l5l+w==} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@unrs/resolver-binding-linux-s390x-gnu@1.12.2': + resolution: {integrity: sha512-HYJtLfXq94q8iZNFT1lknx258wlkkWhZeUXJRqzKBBUJ00CvZ+N33zgbCqimLjsyw5Va6uUxhVa12mI+kaveEw==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@unrs/resolver-binding-linux-x64-gnu@1.12.2': + resolution: {integrity: sha512-mPsUhunKKDih5O96Y6enDQyHc1SqBPlY1E/SfMWDM3EdJ95Z9CArPeCVwCCqbP45ljvivdEk8Fxn+SIb1rDAJQ==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@unrs/resolver-binding-linux-x64-musl@1.12.2': + resolution: {integrity: sha512-azrt6+5ydLd8Vt210AAFis/lZevSfPw93EJRIJG+xPu4WCJ8K0kppCTpMyLPcKT7H15M4Jnt2tMp5bOvCkRC6A==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@unrs/resolver-binding-openharmony-arm64@1.12.2': + resolution: {integrity: sha512-YZ9hP4O0X9PQb8eO980qmLNGH4zT3I9+SZTdt0Pr0YyuGQhYKoOZkV02VzrzyOZJ5xIJ3UFIenKkUkGg8GjgWQ==} + cpu: [arm64] + os: [openharmony] + + '@unrs/resolver-binding-wasm32-wasi@1.12.2': + resolution: {integrity: sha512-tYFDIkMxSflfEc/h92ZWNsZlHSwgimbNHSO3PL2JWQHfCuC2q316jMyYU9TIWZsFK2bQwyK5VAdYgn8ygPj69A==} + engines: {node: '>=14.0.0'} + cpu: [wasm32] + + '@unrs/resolver-binding-win32-arm64-msvc@1.12.2': + resolution: {integrity: sha512-qzNyg3xL0VPQmCaUh+N5jSitce6k+uCBfMDesWRnlULOZaqUkaJ0ybdT+UqlAWJoQjuqfIU/0Ptx9bteN4D82g==} + cpu: [arm64] + os: [win32] + + '@unrs/resolver-binding-win32-ia32-msvc@1.12.2': + resolution: {integrity: sha512-WD9sY00OfpHVGfsnHZoA8jVT+esS/Bg8z8jzxp5BnDCjjwsuKsPQrzswwpFy4J1AUJbXPRfkpcX0mXrzeXW79g==} + cpu: [ia32] + os: [win32] + + '@unrs/resolver-binding-win32-x64-msvc@1.12.2': + resolution: {integrity: sha512-nAB74NfSNKknqQ1RrYj6uz8FcXEomu/MATJZxh/x+BArzN2U3JbOYC0APYzUIGhVY3m5hRxA8VPNdPBoG8txlA==} + cpu: [x64] + os: [win32] + abbrev@1.1.1: resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==} + acorn-jsx@5.3.2: + resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} + peerDependencies: + acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 + + acorn@8.19.0: + resolution: {integrity: sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==} + engines: {node: '>=0.4.0'} + hasBin: true + aggregate-error@3.1.0: resolution: {integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==} engines: {node: '>=8'} + ajv@6.15.0: + resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==} + argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + argparse@3.0.4: + resolution: {integrity: sha512-fwWK3Zq22l4XJJjx5mcBHGikIk+hJqO+32dPm0Jur7+rtG5x1scOjSfdT9ZKeWHPpsya/l0HHK4tDImBkTrtvA==} + array-union@2.1.0: resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} engines: {node: '>=8'} @@ -226,20 +554,35 @@ packages: balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + balanced-match@4.0.4: + resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} + engines: {node: 18 || 20 || >=22} + brace-expansion@1.1.11: resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} brace-expansion@2.0.1: resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} + brace-expansion@5.0.12: + resolution: {integrity: sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==} + engines: {node: 20 || >=22} + braces@3.0.2: resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} engines: {node: '>=8'} + cacheable@2.5.0: + resolution: {integrity: sha512-60cyAOytib/OzBw1JNSoSV/boK1AtHryDIjvVBk7XbN4ugfkM3+Sry7fEjNgPMGgOjuaZPAp8ruZ0Cxafwyq9g==} + clean-stack@2.2.0: resolution: {integrity: sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==} engines: {node: '>=6'} + comment-parser@1.4.9: + resolution: {integrity: sha512-+2AvZKjJaNq9GQljm3tr0utwrig5BL+jgJGvz5rDpGKNIp+ojcRXWUwBbh/sGIi1QCprR6PsKFakub+w1v+4hQ==} + engines: {node: '>= 12.0.0'} + concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} @@ -247,10 +590,26 @@ packages: resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} engines: {node: '>= 8'} + cross-spawn@7.0.6: + resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} + engines: {node: '>= 8'} + crypto-random-string@4.0.0: resolution: {integrity: sha512-x8dy3RnvYdlUcPOjkEHqozhiwzKNSq7GcPuXFbnyMOCHxX8V3OgIg/pYuabl2sbUPfIJaeAQB7PMOK8DFIdoRA==} engines: {node: '>=12'} + debug@4.4.3: + resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + deep-is@0.1.4: + resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} + del@6.1.1: resolution: {integrity: sha512-ua8BhapfP0JUJKC/zV9yHHDW/rDoDxP4Zhn3AkA6/xT6gY7jYXJiaeyBZznYVujhZZET+UgcbZiQ7sN3WqcImg==} engines: {node: '>=10'} @@ -259,17 +618,186 @@ packages: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} + enhanced-resolve@5.26.0: + resolution: {integrity: sha512-9vhedylFonb2YGogzUKX6+Ja72gOJbN1QHAqdrvqLwhdl/QWbKopzoUC9EbQNVsAns/bx/4uyqalrQAoy1IByw==} + engines: {node: '>=10.13.0'} + + escape-string-regexp@4.0.0: + resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} + engines: {node: '>=10'} + + eslint-compat-utils@0.5.1: + resolution: {integrity: sha512-3z3vFexKIEnjHE3zCMRo6fn/e44U7T1khUjg+Hp0ZQMCigh28rALD0nPFBcGZuiLC5rLZa2ubQHDRln09JfU2Q==} + engines: {node: '>=12'} + peerDependencies: + eslint: '>=6.0.0' + + eslint-import-context@0.1.9: + resolution: {integrity: sha512-K9Hb+yRaGAGUbwjhFNHvSmmkZs9+zbuoe3kFQ4V1wYjrepUFYM2dZAfNtjbbj3qsPfUfsA68Bx/ICWQMi+C8Eg==} + engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} + peerDependencies: + unrs-resolver: ^1.0.0 + peerDependenciesMeta: + unrs-resolver: + optional: true + + eslint-plugin-es-x@7.8.0: + resolution: {integrity: sha512-7Ds8+wAAoV3T+LAKeu39Y5BzXCrGKrcISfgKEqTS4BDN8SFEDQd0S43jiQ8vIa3wUKD07qitZdfzlenSi8/0qQ==} + engines: {node: ^14.18.0 || >=16.0.0} + peerDependencies: + eslint: '>=8' + + eslint-plugin-import-x@4.17.1: + resolution: {integrity: sha512-4cdstYkKCyjumM2Q9NSI03K8D2a9F4Ssz33K2lv2hQa4KmR9jPLwk3uWGtNvclfqBrPGfGuMBwsGMbe6dMRbfg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + '@typescript-eslint/utils': ^8.56.0 + eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 + eslint-import-resolver-node: '*' + peerDependenciesMeta: + '@typescript-eslint/utils': + optional: true + eslint-import-resolver-node: + optional: true + + eslint-plugin-jest@29.17.0: + resolution: {integrity: sha512-6jtpU6MhYKbagkES02TupWAUUooJpZtKg94Ax0b8HhUorv3InSTBU8RRtlSBe0LocOcShXOpyec3PHzPDkJCSg==} + engines: {node: ^20.12.0 || ^22.0.0 || >=24.0.0} + peerDependencies: + '@typescript-eslint/eslint-plugin': ^8.0.0 + eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 + jest: '*' + typescript: '>=4.8.4 <8.0.0' + peerDependenciesMeta: + '@typescript-eslint/eslint-plugin': + optional: true + jest: + optional: true + typescript: + optional: true + + eslint-plugin-n@18.5.0: + resolution: {integrity: sha512-M7uF6MTN/An+AXqvyIbXq7npJIZOkd5eKo8iMMvWrcDVNyZVdA6TF2lw01aKQfCEidRfpnR78GhAjZorlXNHiw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} + peerDependencies: + eslint: '>=8.57.1' + ts-declaration-location: ^1.0.6 + typescript: '>=5.0.0' + peerDependenciesMeta: + ts-declaration-location: + optional: true + typescript: + optional: true + + eslint-plugin-promise@7.3.0: + resolution: {integrity: sha512-6uGiOR0INuujr6PEQmeSSP7GbIMJ/ebEXXiEzb/nOj68LknH5Pxzb/AbZivmr6VE6TkTE8rTjRK9zhKpK6HsRA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 + + eslint-plugin-regexp@3.3.1: + resolution: {integrity: sha512-58bGUci/AaWAo1ETj6Lsnmy6QXwnSyVONRA805828nnqp7vrTwdaQMc02vtowmYB3A5OB3SLr3r5HgmfxX4dLg==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} + peerDependencies: + eslint: '>=9.38.0' + + eslint-plugin-simple-import-sort@14.0.0: + resolution: {integrity: sha512-NUJO0+XFCkk+o5EsAJruTgnfMEpeWrPWeJS15UVF60GgXmqz1BJ9/3hzlvG7lkL8Bubzos5cCLptThbFfPnSMQ==} + peerDependencies: + eslint: '>=5.0.0' + + eslint-scope@9.1.2: + resolution: {integrity: sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} + + eslint-visitor-keys@3.4.3: + resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + + eslint-visitor-keys@4.2.1: + resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + eslint-visitor-keys@5.0.1: + resolution: {integrity: sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} + + eslint@10.13.0: + resolution: {integrity: sha512-UohDjD4zSzEwhf58M3O7vc/ycc8O1I7dNlhtD0WxE8Px8EHNJKtUwzBqrzeGhisRuv2ag4sAYswszCJRgKXYUg==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} + hasBin: true + peerDependencies: + jiti: '*' + peerDependenciesMeta: + jiti: + optional: true + + espree@10.4.0: + resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + + espree@11.2.0: + resolution: {integrity: sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=24} + + esquery@1.7.0: + resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==} + engines: {node: '>=0.10'} + + esrecurse@4.3.0: + resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} + engines: {node: '>=4.0'} + + estraverse@5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} + + esutils@2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + fast-glob@3.3.2: resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} engines: {node: '>=8.6.0'} + fast-json-stable-stringify@2.1.0: + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} + + fast-levenshtein@2.0.6: + resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} + fastq@1.17.1: resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} + fdir@6.5.0: + resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} + engines: {node: '>=12.0.0'} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + file-entry-cache@11.1.5: + resolution: {integrity: sha512-+PFTHITI08JIGhnNpGNI8T8inUpgZfk3GNEqfT9R2zZV2iFXg3CvqzSl/uEhs7TSGujYRELEANyDvS8Fj7+S7Q==} + fill-range@7.0.1: resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} engines: {node: '>=8'} + find-up@5.0.0: + resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} + engines: {node: '>=10'} + + flat-cache@6.1.23: + resolution: {integrity: sha512-f++BY9pTk+983xK1FLzlLpmM0i0z+jHmx3QESGkURMXujQZz1k5wzwX6hjnQ8goaD0B+sYnDK1yZ6MTyZfUaqA==} + + flatted@3.4.4: + resolution: {integrity: sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==} + fs.realpath@1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} @@ -282,10 +810,17 @@ packages: engines: {node: '>=14.13.0'} hasBin: true + get-tsconfig@4.14.3: + resolution: {integrity: sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA==} + glob-parent@5.1.2: resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} + glob-parent@6.0.2: + resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} + engines: {node: '>=10.13.0'} + glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} @@ -293,17 +828,42 @@ packages: resolution: {integrity: sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==} engines: {node: '>=16 || 14 >=14.17'} + globals@15.15.0: + resolution: {integrity: sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==} + engines: {node: '>=18'} + globby@11.1.0: resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} engines: {node: '>=10'} + globrex@0.1.2: + resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==} + graceful-fs@4.2.11: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + hashery@1.5.1: + resolution: {integrity: sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ==} + engines: {node: '>=20'} + + hookified@1.15.1: + resolution: {integrity: sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg==} + + hookified@2.2.0: + resolution: {integrity: sha512-p/LgFzRN5FeoD3DLS6bkUapeye6E4SI6yJs6KetENd18S+FBthqYq2amJUWpt5z0EQwwHemidjY5OqJGEKm5uA==} + ignore@5.3.1: resolution: {integrity: sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==} engines: {node: '>= 4'} + ignore@5.3.2: + resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==} + engines: {node: '>= 4'} + + ignore@7.0.14: + resolution: {integrity: sha512-wCBiZ77u1tuWde6G/nfOtLaCTYcFDU5yCzARzK10y+rLhzYoL7a7yEemcopcc2Mzow7gZOIjnV2ym1NYmdiJOQ==} + engines: {node: '>= 4'} + imurmurhash@0.1.4: resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} engines: {node: '>=0.8.19'} @@ -352,10 +912,35 @@ packages: resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} hasBin: true + js-yaml@5.5.0: + resolution: {integrity: sha512-paNr4LFIFPjeeSmwNYdrb8FafLLG/Cr2Af3GjbsHJ5CxIjH4r0c2emlmRdAtpPAieP1gRVzk6buBbVP5gBMGAg==} + hasBin: true + + jsdoc-type-pratt-parser@9.4.0: + resolution: {integrity: sha512-orXhi2Y06rag47r4SW4JPII6WlUJbp0xe9cIcqLaSbb/8tREcEZSq99Lu3AFfra6PAlMqTYIxV+ZHxl1dFUrWw==} + engines: {node: ^22.22.2 || >=24.15.0} + + json-schema-traverse@0.4.1: + resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} + + json-stable-stringify-without-jsonify@1.0.1: + resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} + + keyv@5.6.0: + resolution: {integrity: sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==} + + levn@0.4.1: + resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} + engines: {node: '>= 0.8.0'} + load-yaml-file@1.0.0: resolution: {integrity: sha512-Xw+A/X4c5R6GWu7ZUQgw1rnbfUr1P/hAZbDTrreo+/fP/YSGgxAKoWe2IcT+bt4RHuyIca6S7SMGcWx+QI3WIw==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + locate-path@6.0.0: + resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} + engines: {node: '>=10'} + lru-cache@10.2.0: resolution: {integrity: sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==} engines: {node: 14 || >=16.14} @@ -368,6 +953,10 @@ packages: resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} engines: {node: '>=8.6'} + minimatch@10.2.6: + resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==} + engines: {node: 18 || 20 || >=22} + minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} @@ -383,6 +972,17 @@ packages: resolution: {integrity: sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==} engines: {node: '>=16 || 14 >=14.17'} + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + napi-postinstall@0.3.7: + resolution: {integrity: sha512-jyU4cU4kVAmy/3qjP+DcoQTNXfINHc+dFw54gGqWC8nu0mpV0kOnk7kff+J+Q18SbX0k3Np8Rm7yFjd3phatNQ==} + engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} + hasBin: true + + natural-compare@1.4.0: + resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} + node@runtime:24.19.0: resolution: type: variations @@ -511,10 +1111,26 @@ packages: once@1.4.0: resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + optionator@0.9.4: + resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} + engines: {node: '>= 0.8.0'} + + p-limit@3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} + engines: {node: '>=10'} + + p-locate@5.0.0: + resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} + engines: {node: '>=10'} + p-map@4.0.0: resolution: {integrity: sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==} engines: {node: '>=10'} + path-exists@4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} + path-is-absolute@1.0.1: resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} engines: {node: '>=0.10.0'} @@ -539,9 +1155,36 @@ packages: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + + prelude-ls@1.2.1: + resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} + engines: {node: '>= 0.8.0'} + + punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} + engines: {node: '>=6'} + + qified@0.10.1: + resolution: {integrity: sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA==} + engines: {node: '>=20'} + queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} + refa@0.12.1: + resolution: {integrity: sha512-J8rn6v4DBb2nnFqkqwy6/NnTYMcgLA+sLr0iIO41qpv0n+ngb7ksag2tMRl0inb1bbO/esUwzW1vbJi7K0sI0g==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + + regexp-ast-analysis@0.7.1: + resolution: {integrity: sha512-sZuz1dYW/ZsfG17WSAG7eS85r5a0dDsvg+7BiiYR5o6lKCAtUrEwdmRmaGF6rwVj3LcmAeYkOWKEPlbPzN3Y3A==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + + resolve-pkg-maps@1.0.0: + resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + reusify@1.0.4: resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} @@ -558,6 +1201,15 @@ packages: run-parallel@1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + scslre@0.3.0: + resolution: {integrity: sha512-3A6sD0WYP7+QrjbfNA2FN3FsOaGGFoekCVgTyypy53gPxhbkCIjtO6YWgdrfM+n/8sI8JeXZOIxsHjMTNxQ4nQ==} + engines: {node: ^14.0.0 || >=16.0.0} + + semver@7.8.5: + resolution: {integrity: sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==} + engines: {node: '>=10'} + hasBin: true + shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} engines: {node: '>=8'} @@ -573,10 +1225,18 @@ packages: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} + stable-hash-x@0.2.0: + resolution: {integrity: sha512-o3yWv49B/o4QZk5ZcsALc6t0+eCelPc44zZsLtCQnZPDwFpDYSWcDnrv2TtMmMbQ7uKo3J0HTURCqckw23czNQ==} + engines: {node: '>=12.0.0'} + strip-bom@5.0.0: resolution: {integrity: sha512-p+byADHF7SzEcVnLvc/r3uognM1hUhObuHXxJcgLCfD194XAkaLbjq3Wzb0N5G2tgIjH0dgT708Z51QxMeu60A==} engines: {node: '>=12'} + tapable@2.3.3: + resolution: {integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==} + engines: {node: '>=6'} + temp-dir@2.0.0: resolution: {integrity: sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==} engines: {node: '>=8'} @@ -585,6 +1245,10 @@ packages: resolution: {integrity: sha512-m+QReZVhpa0Y56fmfoLFRZN4aDFdd3qVd8a9k3RfyTw/1utVYNg+Ar4BY6l4/TlkhYCCJFfhYWt9uy0127buJg==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + tinyglobby@0.2.17: + resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} + engines: {node: '>=12.0.0'} + to-regex-range@5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} @@ -593,6 +1257,19 @@ packages: resolution: {integrity: sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==} hasBin: true + ts-api-utils@2.5.0: + resolution: {integrity: sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==} + engines: {node: '>=18.12'} + peerDependencies: + typescript: '>=4.8.4' + + tslib@2.8.1: + resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + + type-check@0.4.0: + resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} + engines: {node: '>= 0.8.0'} + type-fest@1.4.0: resolution: {integrity: sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==} engines: {node: '>=10'} @@ -604,15 +1281,40 @@ packages: typedarray-to-buffer@3.1.5: resolution: {integrity: sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==} + typescript-eslint@8.72.1: + resolution: {integrity: sha512-3Li9FfPmQp45nxEtFD1ZCrYFI3cYK5kpyNtmm1H7lMagm8u9sy6PTjy3ytwQZs7KNukOyKFHAZ6z6GjYFeaeXw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 || ^10.0.0 + typescript: '>=4.8.4 <6.1.0' + + typescript@6.0.3: + resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} + engines: {node: '>=14.17'} + hasBin: true + + undici-types@7.24.6: + resolution: {integrity: sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==} + unique-string@3.0.0: resolution: {integrity: sha512-VGXBUVwxKMBUznyffQweQABPRRW1vHZAbadFZud4pLFAqRGvv/96vafgjWFqzourzr8YonlQiPgH0YCJfawoGQ==} engines: {node: '>=12'} + unrs-resolver@1.12.2: + resolution: {integrity: sha512-dmlRxBJJayXjqTwC+JtF1HhJmgf3ftQ3YejFcZrf4+KKtJv0qDsK1pjqaaVjG7wJ5NJ6UVP1OqRMQ71Z4C3rxQ==} + + uri-js@4.4.1: + resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} + which@2.0.2: resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} engines: {node: '>= 8'} hasBin: true + word-wrap@1.2.5: + resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==} + engines: {node: '>=0.10.0'} + wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} @@ -623,8 +1325,105 @@ packages: resolution: {integrity: sha512-LwyucHy0uhWqbrOkh9cBluZBeNVxzHjDaE9mwepZG3n3ZlbM4v3ndrFw51zW/NXYFFqP+QWZ72ihtLWTh05e4Q==} engines: {node: '>=10.13'} + yocto-queue@0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} + engines: {node: '>=10'} + snapshots: + '@cacheable/memory@2.2.0': + dependencies: + '@cacheable/utils': 2.5.0 + '@keyv/bigmap': 1.3.1(keyv@5.6.0) + hookified: 1.15.1 + keyv: 5.6.0 + + '@cacheable/utils@2.5.0': + dependencies: + hashery: 1.5.1 + keyv: 5.6.0 + + '@emnapi/core@1.10.0': + dependencies: + '@emnapi/wasi-threads': 1.2.1 + tslib: 2.8.1 + optional: true + + '@emnapi/runtime@1.10.0': + dependencies: + tslib: 2.8.1 + optional: true + + '@emnapi/wasi-threads@1.2.1': + dependencies: + tslib: 2.8.1 + optional: true + + '@eslint-community/eslint-utils@4.10.1(eslint@10.13.0)': + dependencies: + eslint: 10.13.0 + eslint-visitor-keys: 3.4.3 + + '@eslint-community/regexpp@4.12.2': {} + + '@eslint/config-array@0.23.5': + dependencies: + '@eslint/object-schema': 3.0.5 + debug: 4.4.3 + minimatch: 10.2.6 + transitivePeerDependencies: + - supports-color + + '@eslint/config-helpers@0.7.0': + dependencies: + '@eslint/core': 1.2.1 + + '@eslint/core@1.2.1': + dependencies: + '@types/json-schema': 7.0.15 + + '@eslint/js@10.0.1(eslint@10.13.0)': + optionalDependencies: + eslint: 10.13.0 + + '@eslint/object-schema@3.0.5': {} + + '@eslint/plugin-kit@0.7.3': + dependencies: + '@eslint/core': 1.2.1 + levn: 0.4.1 + + '@humanfs/core@0.19.2': + dependencies: + '@humanfs/types': 0.15.0 + + '@humanfs/node@0.16.8': + dependencies: + '@humanfs/core': 0.19.2 + '@humanfs/types': 0.15.0 + '@humanwhocodes/retry': 0.4.3 + + '@humanfs/types@0.15.0': {} + + '@humanwhocodes/module-importer@1.0.1': {} + + '@humanwhocodes/retry@0.4.3': {} + + '@keyv/bigmap@1.3.1(keyv@5.6.0)': + dependencies: + hashery: 1.5.1 + hookified: 1.15.1 + keyv: 5.6.0 + + '@keyv/serialize@1.1.1': {} + + '@napi-rs/wasm-runtime@1.2.6(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0)': + dependencies: + '@emnapi/core': 1.10.0 + '@emnapi/runtime': 1.10.0 + '@tybys/wasm-util': 0.10.4 + optional: true + '@nodelib/fs.scandir@2.1.5': dependencies: '@nodelib/fs.stat': 2.0.5 @@ -637,19 +1436,240 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.17.1 + '@pnpm/eslint-config@1100.0.2(@typescript-eslint/utils@8.72.1(eslint@10.13.0)(typescript@6.0.3))': + dependencies: + '@eslint/js': 10.0.1(eslint@10.13.0) + '@stylistic/eslint-plugin': 5.10.0(eslint@10.13.0) + eslint: 10.13.0 + eslint-plugin-import-x: 4.17.1(@typescript-eslint/utils@8.72.1(eslint@10.13.0)(typescript@6.0.3))(eslint@10.13.0) + eslint-plugin-n: 18.5.0(eslint@10.13.0)(typescript@6.0.3) + eslint-plugin-promise: 7.3.0(eslint@10.13.0) + eslint-plugin-simple-import-sort: 14.0.0(eslint@10.13.0) + typescript: 6.0.3 + typescript-eslint: 8.72.1(eslint@10.13.0)(typescript@6.0.3) + transitivePeerDependencies: + - '@typescript-eslint/utils' + - eslint-import-resolver-node + - jiti + - supports-color + - ts-declaration-location + + '@stylistic/eslint-plugin@5.10.0(eslint@10.13.0)': + dependencies: + '@eslint-community/eslint-utils': 4.10.1(eslint@10.13.0) + '@typescript-eslint/types': 8.72.1 + eslint: 10.13.0 + eslint-visitor-keys: 4.2.1 + espree: 10.4.0 + estraverse: 5.3.0 + picomatch: 4.0.7 + + '@tybys/wasm-util@0.10.4': + dependencies: + tslib: 2.8.1 + optional: true + + '@types/esrecurse@4.3.1': {} + + '@types/estree@1.0.9': {} + + '@types/json-schema@7.0.15': {} + + '@types/node@24.19.2': + dependencies: + undici-types: 7.24.6 + + '@typescript-eslint/eslint-plugin@8.72.1(@typescript-eslint/parser@8.72.1(eslint@10.13.0)(typescript@6.0.3))(eslint@10.13.0)(typescript@6.0.3)': + dependencies: + '@eslint-community/regexpp': 4.12.2 + '@typescript-eslint/parser': 8.72.1(eslint@10.13.0)(typescript@6.0.3) + '@typescript-eslint/scope-manager': 8.72.1 + '@typescript-eslint/type-utils': 8.72.1(eslint@10.13.0)(typescript@6.0.3) + '@typescript-eslint/utils': 8.72.1(eslint@10.13.0)(typescript@6.0.3) + '@typescript-eslint/visitor-keys': 8.72.1 + eslint: 10.13.0 + ignore: 7.0.14 + natural-compare: 1.4.0 + ts-api-utils: 2.5.0(typescript@6.0.3) + typescript: 6.0.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/parser@8.72.1(eslint@10.13.0)(typescript@6.0.3)': + dependencies: + '@typescript-eslint/scope-manager': 8.72.1 + '@typescript-eslint/types': 8.72.1 + '@typescript-eslint/typescript-estree': 8.72.1(typescript@6.0.3) + '@typescript-eslint/visitor-keys': 8.72.1 + debug: 4.4.3 + eslint: 10.13.0 + typescript: 6.0.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/project-service@8.72.1(typescript@6.0.3)': + dependencies: + '@typescript-eslint/tsconfig-utils': 8.72.1(typescript@6.0.3) + '@typescript-eslint/types': 8.72.1 + debug: 4.4.3 + typescript: 6.0.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/scope-manager@8.72.1': + dependencies: + '@typescript-eslint/types': 8.72.1 + '@typescript-eslint/visitor-keys': 8.72.1 + + '@typescript-eslint/tsconfig-utils@8.72.1(typescript@6.0.3)': + dependencies: + typescript: 6.0.3 + + '@typescript-eslint/type-utils@8.72.1(eslint@10.13.0)(typescript@6.0.3)': + dependencies: + '@typescript-eslint/types': 8.72.1 + '@typescript-eslint/typescript-estree': 8.72.1(typescript@6.0.3) + '@typescript-eslint/utils': 8.72.1(eslint@10.13.0)(typescript@6.0.3) + debug: 4.4.3 + eslint: 10.13.0 + ts-api-utils: 2.5.0(typescript@6.0.3) + typescript: 6.0.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/types@8.72.1': {} + + '@typescript-eslint/typescript-estree@8.72.1(typescript@6.0.3)': + dependencies: + '@typescript-eslint/project-service': 8.72.1(typescript@6.0.3) + '@typescript-eslint/tsconfig-utils': 8.72.1(typescript@6.0.3) + '@typescript-eslint/types': 8.72.1 + '@typescript-eslint/visitor-keys': 8.72.1 + debug: 4.4.3 + minimatch: 10.2.6 + semver: 7.8.5 + tinyglobby: 0.2.17 + ts-api-utils: 2.5.0(typescript@6.0.3) + typescript: 6.0.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/utils@8.72.1(eslint@10.13.0)(typescript@6.0.3)': + dependencies: + '@eslint-community/eslint-utils': 4.10.1(eslint@10.13.0) + '@typescript-eslint/scope-manager': 8.72.1 + '@typescript-eslint/types': 8.72.1 + '@typescript-eslint/typescript-estree': 8.72.1(typescript@6.0.3) + eslint: 10.13.0 + typescript: 6.0.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/visitor-keys@8.72.1': + dependencies: + '@typescript-eslint/types': 8.72.1 + eslint-visitor-keys: 5.0.1 + + '@unrs/resolver-binding-android-arm-eabi@1.12.2': + optional: true + + '@unrs/resolver-binding-android-arm64@1.12.2': + optional: true + + '@unrs/resolver-binding-darwin-arm64@1.12.2': + optional: true + + '@unrs/resolver-binding-darwin-x64@1.12.2': + optional: true + + '@unrs/resolver-binding-freebsd-x64@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-arm-gnueabihf@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-arm-musleabihf@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-arm64-gnu@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-arm64-musl@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-loong64-gnu@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-loong64-musl@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-ppc64-gnu@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-riscv64-gnu@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-riscv64-musl@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-s390x-gnu@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-x64-gnu@1.12.2': + optional: true + + '@unrs/resolver-binding-linux-x64-musl@1.12.2': + optional: true + + '@unrs/resolver-binding-openharmony-arm64@1.12.2': + optional: true + + '@unrs/resolver-binding-wasm32-wasi@1.12.2': + dependencies: + '@emnapi/core': 1.10.0 + '@emnapi/runtime': 1.10.0 + '@napi-rs/wasm-runtime': 1.2.6(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0) + optional: true + + '@unrs/resolver-binding-win32-arm64-msvc@1.12.2': + optional: true + + '@unrs/resolver-binding-win32-ia32-msvc@1.12.2': + optional: true + + '@unrs/resolver-binding-win32-x64-msvc@1.12.2': + optional: true + abbrev@1.1.1: {} + acorn-jsx@5.3.2(acorn@8.19.0): + dependencies: + acorn: 8.19.0 + + acorn@8.19.0: {} + aggregate-error@3.1.0: dependencies: clean-stack: 2.2.0 indent-string: 4.0.0 + ajv@6.15.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-json-stable-stringify: 2.1.0 + json-schema-traverse: 0.4.1 + uri-js: 4.4.1 + argparse@2.0.1: {} + argparse@3.0.4: {} + array-union@2.1.0: {} balanced-match@1.0.2: {} + balanced-match@4.0.4: {} + brace-expansion@1.1.11: dependencies: balanced-match: 1.0.2 @@ -659,12 +1679,26 @@ snapshots: dependencies: balanced-match: 1.0.2 + brace-expansion@5.0.12: + dependencies: + balanced-match: 4.0.4 + braces@3.0.2: dependencies: fill-range: 7.0.1 + cacheable@2.5.0: + dependencies: + '@cacheable/memory': 2.2.0 + '@cacheable/utils': 2.5.0 + hookified: 1.15.1 + keyv: 5.6.0 + qified: 0.10.1 + clean-stack@2.2.0: {} + comment-parser@1.4.9: {} + concat-map@0.0.1: {} cross-spawn@7.0.3: @@ -673,10 +1707,22 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 + cross-spawn@7.0.6: + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + crypto-random-string@4.0.0: dependencies: type-fest: 1.4.0 + debug@4.4.3: + dependencies: + ms: 2.1.3 + + deep-is@0.1.4: {} + del@6.1.1: dependencies: globby: 11.1.0 @@ -692,6 +1738,168 @@ snapshots: dependencies: path-type: 4.0.0 + enhanced-resolve@5.26.0: + dependencies: + graceful-fs: 4.2.11 + tapable: 2.3.3 + + escape-string-regexp@4.0.0: {} + + eslint-compat-utils@0.5.1(eslint@10.13.0): + dependencies: + eslint: 10.13.0 + semver: 7.8.5 + + eslint-import-context@0.1.9(unrs-resolver@1.12.2): + dependencies: + get-tsconfig: 4.14.3 + stable-hash-x: 0.2.0 + optionalDependencies: + unrs-resolver: 1.12.2 + + eslint-plugin-es-x@7.8.0(eslint@10.13.0): + dependencies: + '@eslint-community/eslint-utils': 4.10.1(eslint@10.13.0) + '@eslint-community/regexpp': 4.12.2 + eslint: 10.13.0 + eslint-compat-utils: 0.5.1(eslint@10.13.0) + + eslint-plugin-import-x@4.17.1(@typescript-eslint/utils@8.72.1(eslint@10.13.0)(typescript@6.0.3))(eslint@10.13.0): + dependencies: + '@typescript-eslint/types': 8.72.1 + comment-parser: 1.4.9 + debug: 4.4.3 + eslint: 10.13.0 + eslint-import-context: 0.1.9(unrs-resolver@1.12.2) + is-glob: 4.0.3 + minimatch: 10.2.6 + semver: 7.8.5 + stable-hash-x: 0.2.0 + unrs-resolver: 1.12.2 + optionalDependencies: + '@typescript-eslint/utils': 8.72.1(eslint@10.13.0)(typescript@6.0.3) + transitivePeerDependencies: + - supports-color + + eslint-plugin-jest@29.17.0(@typescript-eslint/eslint-plugin@8.72.1(@typescript-eslint/parser@8.72.1(eslint@10.13.0)(typescript@6.0.3))(eslint@10.13.0)(typescript@6.0.3))(eslint@10.13.0)(typescript@6.0.3): + dependencies: + '@typescript-eslint/utils': 8.72.1(eslint@10.13.0)(typescript@6.0.3) + eslint: 10.13.0 + optionalDependencies: + '@typescript-eslint/eslint-plugin': 8.72.1(@typescript-eslint/parser@8.72.1(eslint@10.13.0)(typescript@6.0.3))(eslint@10.13.0)(typescript@6.0.3) + typescript: 6.0.3 + transitivePeerDependencies: + - supports-color + + eslint-plugin-n@18.5.0(eslint@10.13.0)(typescript@6.0.3): + dependencies: + '@eslint-community/eslint-utils': 4.10.1(eslint@10.13.0) + enhanced-resolve: 5.26.0 + eslint: 10.13.0 + eslint-plugin-es-x: 7.8.0(eslint@10.13.0) + get-tsconfig: 4.14.3 + globals: 15.15.0 + globrex: 0.1.2 + ignore: 5.3.2 + js-yaml: 5.5.0 + semver: 7.8.5 + optionalDependencies: + typescript: 6.0.3 + + eslint-plugin-promise@7.3.0(eslint@10.13.0): + dependencies: + '@eslint-community/eslint-utils': 4.10.1(eslint@10.13.0) + eslint: 10.13.0 + + eslint-plugin-regexp@3.3.1(eslint@10.13.0): + dependencies: + '@eslint-community/eslint-utils': 4.10.1(eslint@10.13.0) + '@eslint-community/regexpp': 4.12.2 + comment-parser: 1.4.9 + eslint: 10.13.0 + jsdoc-type-pratt-parser: 9.4.0 + refa: 0.12.1 + regexp-ast-analysis: 0.7.1 + scslre: 0.3.0 + + eslint-plugin-simple-import-sort@14.0.0(eslint@10.13.0): + dependencies: + eslint: 10.13.0 + + eslint-scope@9.1.2: + dependencies: + '@types/esrecurse': 4.3.1 + '@types/estree': 1.0.9 + esrecurse: 4.3.0 + estraverse: 5.3.0 + + eslint-visitor-keys@3.4.3: {} + + eslint-visitor-keys@4.2.1: {} + + eslint-visitor-keys@5.0.1: {} + + eslint@10.13.0: + dependencies: + '@eslint-community/eslint-utils': 4.10.1(eslint@10.13.0) + '@eslint-community/regexpp': 4.12.2 + '@eslint/config-array': 0.23.5 + '@eslint/config-helpers': 0.7.0 + '@eslint/core': 1.2.1 + '@eslint/plugin-kit': 0.7.3 + '@humanfs/node': 0.16.8 + '@humanwhocodes/module-importer': 1.0.1 + '@humanwhocodes/retry': 0.4.3 + '@types/estree': 1.0.9 + ajv: 6.15.0 + cross-spawn: 7.0.6 + debug: 4.4.3 + escape-string-regexp: 4.0.0 + eslint-scope: 9.1.2 + eslint-visitor-keys: 5.0.1 + espree: 11.2.0 + esquery: 1.7.0 + esutils: 2.0.3 + fast-deep-equal: 3.1.3 + file-entry-cache: 11.1.5 + find-up: 5.0.0 + glob-parent: 6.0.2 + ignore: 5.3.1 + imurmurhash: 0.1.4 + is-glob: 4.0.3 + json-stable-stringify-without-jsonify: 1.0.1 + minimatch: 10.2.6 + natural-compare: 1.4.0 + optionator: 0.9.4 + transitivePeerDependencies: + - supports-color + + espree@10.4.0: + dependencies: + acorn: 8.19.0 + acorn-jsx: 5.3.2(acorn@8.19.0) + eslint-visitor-keys: 4.2.1 + + espree@11.2.0: + dependencies: + acorn: 8.19.0 + acorn-jsx: 5.3.2(acorn@8.19.0) + eslint-visitor-keys: 5.0.1 + + esquery@1.7.0: + dependencies: + estraverse: 5.3.0 + + esrecurse@4.3.0: + dependencies: + estraverse: 5.3.0 + + estraverse@5.3.0: {} + + esutils@2.0.3: {} + + fast-deep-equal@3.1.3: {} + fast-glob@3.3.2: dependencies: '@nodelib/fs.stat': 2.0.5 @@ -700,14 +1908,39 @@ snapshots: merge2: 1.4.1 micromatch: 4.0.5 + fast-json-stable-stringify@2.1.0: {} + + fast-levenshtein@2.0.6: {} + fastq@1.17.1: dependencies: reusify: 1.0.4 + fdir@6.5.0(picomatch@4.0.7): + optionalDependencies: + picomatch: 4.0.7 + + file-entry-cache@11.1.5: + dependencies: + flat-cache: 6.1.23 + fill-range@7.0.1: dependencies: to-regex-range: 5.0.1 + find-up@5.0.0: + dependencies: + locate-path: 6.0.0 + path-exists: 4.0.0 + + flat-cache@6.1.23: + dependencies: + cacheable: 2.5.0 + flatted: 3.4.4 + hookified: 1.15.1 + + flatted@3.4.4: {} + fs.realpath@1.0.0: {} gar@1.0.4: {} @@ -716,10 +1949,18 @@ snapshots: dependencies: gar: 1.0.4 + get-tsconfig@4.14.3: + dependencies: + resolve-pkg-maps: 1.0.0 + glob-parent@5.1.2: dependencies: is-glob: 4.0.3 + glob-parent@6.0.2: + dependencies: + is-glob: 4.0.3 + glob@7.2.3: dependencies: fs.realpath: 1.0.0 @@ -736,6 +1977,8 @@ snapshots: minipass: 4.2.8 path-scurry: 1.10.2 + globals@15.15.0: {} + globby@11.1.0: dependencies: array-union: 2.1.0 @@ -745,10 +1988,24 @@ snapshots: merge2: 1.4.1 slash: 3.0.0 + globrex@0.1.2: {} + graceful-fs@4.2.11: {} + hashery@1.5.1: + dependencies: + hookified: 1.15.1 + + hookified@1.15.1: {} + + hookified@2.2.0: {} + ignore@5.3.1: {} + ignore@5.3.2: {} + + ignore@7.0.14: {} + imurmurhash@0.1.4: {} indent-string@4.0.0: {} @@ -782,12 +2039,37 @@ snapshots: dependencies: argparse: 2.0.1 + js-yaml@5.5.0: + dependencies: + argparse: 3.0.4 + + jsdoc-type-pratt-parser@9.4.0: + dependencies: + '@types/estree': 1.0.9 + + json-schema-traverse@0.4.1: {} + + json-stable-stringify-without-jsonify@1.0.1: {} + + keyv@5.6.0: + dependencies: + '@keyv/serialize': 1.1.1 + + levn@0.4.1: + dependencies: + prelude-ls: 1.2.1 + type-check: 0.4.0 + load-yaml-file@1.0.0: dependencies: graceful-fs: 4.2.11 js-yaml: 4.1.0 strip-bom: 5.0.0 + locate-path@6.0.0: + dependencies: + p-locate: 5.0.0 + lru-cache@10.2.0: {} merge2@1.4.1: {} @@ -797,6 +2079,10 @@ snapshots: braces: 3.0.2 picomatch: 2.3.1 + minimatch@10.2.6: + dependencies: + brace-expansion: 5.0.12 + minimatch@3.1.2: dependencies: brace-expansion: 1.1.11 @@ -809,6 +2095,12 @@ snapshots: minipass@7.0.4: {} + ms@2.1.3: {} + + napi-postinstall@0.3.7: {} + + natural-compare@1.4.0: {} + node@runtime:24.19.0: {} nopt@1.0.10: @@ -819,10 +2111,29 @@ snapshots: dependencies: wrappy: 1.0.2 + optionator@0.9.4: + dependencies: + deep-is: 0.1.4 + fast-levenshtein: 2.0.6 + levn: 0.4.1 + prelude-ls: 1.2.1 + type-check: 0.4.0 + word-wrap: 1.2.5 + + p-limit@3.1.0: + dependencies: + yocto-queue: 0.1.0 + + p-locate@5.0.0: + dependencies: + p-limit: 3.1.0 + p-map@4.0.0: dependencies: aggregate-error: 3.1.0 + path-exists@4.0.0: {} + path-is-absolute@1.0.1: {} path-key@3.1.1: {} @@ -838,8 +2149,29 @@ snapshots: picomatch@2.3.1: {} + picomatch@4.0.7: {} + + prelude-ls@1.2.1: {} + + punycode@2.3.1: {} + + qified@0.10.1: + dependencies: + hookified: 2.2.0 + queue-microtask@1.2.3: {} + refa@0.12.1: + dependencies: + '@eslint-community/regexpp': 4.12.2 + + regexp-ast-analysis@0.7.1: + dependencies: + '@eslint-community/regexpp': 4.12.2 + refa: 0.12.1 + + resolve-pkg-maps@1.0.0: {} + reusify@1.0.4: {} rimraf@3.0.2: @@ -854,6 +2186,14 @@ snapshots: dependencies: queue-microtask: 1.2.3 + scslre@0.3.0: + dependencies: + '@eslint-community/regexpp': 4.12.2 + refa: 0.12.1 + regexp-ast-analysis: 0.7.1 + + semver@7.8.5: {} + shebang-command@2.0.0: dependencies: shebang-regex: 3.0.0 @@ -864,8 +2204,12 @@ snapshots: slash@3.0.0: {} + stable-hash-x@0.2.0: {} + strip-bom@5.0.0: {} + tapable@2.3.3: {} + temp-dir@2.0.0: {} tempy@2.0.0: @@ -876,6 +2220,11 @@ snapshots: type-fest: 2.19.0 unique-string: 3.0.0 + tinyglobby@0.2.17: + dependencies: + fdir: 6.5.0(picomatch@4.0.7) + picomatch: 4.0.7 + to-regex-range@5.0.1: dependencies: is-number: 7.0.0 @@ -884,6 +2233,17 @@ snapshots: dependencies: nopt: 1.0.10 + ts-api-utils@2.5.0(typescript@6.0.3): + dependencies: + typescript: 6.0.3 + + tslib@2.8.1: + optional: true + + type-check@0.4.0: + dependencies: + prelude-ls: 1.2.1 + type-fest@1.4.0: {} type-fest@2.19.0: {} @@ -892,14 +2252,62 @@ snapshots: dependencies: is-typedarray: 1.0.0 + typescript-eslint@8.72.1(eslint@10.13.0)(typescript@6.0.3): + dependencies: + '@typescript-eslint/eslint-plugin': 8.72.1(@typescript-eslint/parser@8.72.1(eslint@10.13.0)(typescript@6.0.3))(eslint@10.13.0)(typescript@6.0.3) + '@typescript-eslint/parser': 8.72.1(eslint@10.13.0)(typescript@6.0.3) + '@typescript-eslint/typescript-estree': 8.72.1(typescript@6.0.3) + '@typescript-eslint/utils': 8.72.1(eslint@10.13.0)(typescript@6.0.3) + eslint: 10.13.0 + typescript: 6.0.3 + transitivePeerDependencies: + - supports-color + + typescript@6.0.3: {} + + undici-types@7.24.6: {} + unique-string@3.0.0: dependencies: crypto-random-string: 4.0.0 + unrs-resolver@1.12.2: + dependencies: + napi-postinstall: 0.3.7 + optionalDependencies: + '@unrs/resolver-binding-android-arm-eabi': 1.12.2 + '@unrs/resolver-binding-android-arm64': 1.12.2 + '@unrs/resolver-binding-darwin-arm64': 1.12.2 + '@unrs/resolver-binding-darwin-x64': 1.12.2 + '@unrs/resolver-binding-freebsd-x64': 1.12.2 + '@unrs/resolver-binding-linux-arm-gnueabihf': 1.12.2 + '@unrs/resolver-binding-linux-arm-musleabihf': 1.12.2 + '@unrs/resolver-binding-linux-arm64-gnu': 1.12.2 + '@unrs/resolver-binding-linux-arm64-musl': 1.12.2 + '@unrs/resolver-binding-linux-loong64-gnu': 1.12.2 + '@unrs/resolver-binding-linux-loong64-musl': 1.12.2 + '@unrs/resolver-binding-linux-ppc64-gnu': 1.12.2 + '@unrs/resolver-binding-linux-riscv64-gnu': 1.12.2 + '@unrs/resolver-binding-linux-riscv64-musl': 1.12.2 + '@unrs/resolver-binding-linux-s390x-gnu': 1.12.2 + '@unrs/resolver-binding-linux-x64-gnu': 1.12.2 + '@unrs/resolver-binding-linux-x64-musl': 1.12.2 + '@unrs/resolver-binding-openharmony-arm64': 1.12.2 + '@unrs/resolver-binding-wasm32-wasi': 1.12.2 + '@unrs/resolver-binding-win32-arm64-msvc': 1.12.2 + '@unrs/resolver-binding-win32-ia32-msvc': 1.12.2 + '@unrs/resolver-binding-win32-x64-msvc': 1.12.2 + + uri-js@4.4.1: + dependencies: + punycode: 2.3.1 + which@2.0.2: dependencies: isexe: 2.0.0 + word-wrap@1.2.5: {} + wrappy@1.0.2: {} write-file-atomic@3.0.3: @@ -913,3 +2321,5 @@ snapshots: dependencies: js-yaml: 4.1.0 write-file-atomic: 3.0.3 + + yocto-queue@0.1.0: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..6c750ff --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,2 @@ +allowBuilds: + unrs-resolver: true diff --git a/pnprServer.js b/pnprServer.js index 6a1caea..8cfcb45 100644 --- a/pnprServer.js +++ b/pnprServer.js @@ -1,12 +1,14 @@ 'use strict' -import crypto from 'crypto' -import fs from 'fs' -import http from 'http' -import net from 'net' -import path from 'path' +import crypto from 'node:crypto' +import fs from 'node:fs' +import http from 'node:http' +import net from 'node:net' +import path from 'node:path' + import spawn from 'cross-spawn' import { loadYamlFileSync } from 'load-yaml-file' -import { createEnv, applyPnprServerRegistry, pnpmWorkspaceYaml, UPDATED_DEPENDENCIES } from './benchmarkFixture.js' + +import { applyPnprServerRegistry, createEnv, pnpmWorkspaceYaml, UPDATED_DEPENDENCIES } from './benchmarkFixture.js' /** * Takes a port the operating system says is free. @@ -186,7 +188,9 @@ export async function startPnpr ({ managersDir, dir, port, publicUrl, logLevel = stdio: ['ignore', logFd, logFd], }) fs.closeSync(logFd) - proc.on('error', (err) => { throw err }) + proc.on('error', (err) => { + throw err + }) const readLog = () => { try { @@ -197,7 +201,9 @@ export async function startPnpr ({ managersDir, dir, port, publicUrl, logLevel = } let exit = null - proc.on('exit', (code, signal) => { exit = { code, signal } }) + proc.on('exit', (code, signal) => { + exit = { code, signal } + }) const url = `http://127.0.0.1:${port}` await waitForPnpr(url, proc, readLog) @@ -218,7 +224,9 @@ export async function startPnpr ({ managersDir, dir, port, publicUrl, logLevel = stop: () => { if (exit) return proc.kill() - setTimeout(() => { if (!exit) proc.kill('SIGKILL') }, 2_000).unref() + setTimeout(() => { + if (!exit) proc.kill('SIGKILL') + }, 2_000).unref() }, } } @@ -230,6 +238,7 @@ async function waitForPnpr (url, proc, getStderr) { throw new Error(`pnpr exited with code ${proc.exitCode}. ${getStderr()}`) } try { + // eslint-disable-next-line no-await-in-loop -- polling: each check waits for the previous delay const res = await fetch(`${url}/-/ping`) if (res.ok) { // Something answering is not the same as our server answering. A server @@ -237,6 +246,7 @@ async function waitForPnpr (url, proc, getStderr) { // started here has had time to discover it cannot have the port and // exit, so the reply alone proves nothing — give it long enough to fail // and then insist it is still running. + // eslint-disable-next-line no-await-in-loop -- gives a stale server time to be told apart from ours await new Promise((resolve) => setTimeout(resolve, 500)) if (proc.exitCode !== null) { throw new Error( @@ -250,6 +260,7 @@ async function waitForPnpr (url, proc, getStderr) { if (err.message?.startsWith('pnpr exited')) throw err // Not listening yet. } + // eslint-disable-next-line no-await-in-loop -- polling: each check waits for the previous delay await new Promise((resolve) => setTimeout(resolve, 200)) } throw new Error(`pnpr did not start listening on ${url}. ${getStderr()}`) @@ -409,10 +420,13 @@ export async function warmZstdEncodings ({ storageDir, tarRegistry, packages }) for (let round = 0; round < ZSTD_ROUNDS && missing.length > 0; round++) { let room = 0 for (const pkg of missing) { + // eslint-disable-next-line no-await-in-loop -- throttles to the copies the zstd worker can take if (room === 0) room = ZSTD_IN_FLIGHT - await waitForWorker(variantsDir, ZSTD_IN_FLIGHT - 1) + // eslint-disable-next-line no-await-in-loop -- throttles to the copies the zstd worker can take await drain(`${tarRegistry}${pkg.name}@${pkg.version}`) room-- } + // eslint-disable-next-line no-await-in-loop -- waits for the worker to drain before the next round await waitForWorker(variantsDir, 0) missing = missing.filter((pkg) => !encoded(pkg)) } @@ -459,6 +473,7 @@ async function waitForWorker (variantsDir, max) { if (Date.now() - lastProgress > ZSTD_STALL_MS) { throw new Error(`pnpr's zstd worker finished nothing in ${ZSTD_STALL_MS / 1000}s with ${queued} copies queued under ${variantsDir}`) } + // eslint-disable-next-line no-await-in-loop -- polling: each check waits for the previous delay await new Promise((resolve) => setTimeout(resolve, 250)) const now = countCopies(variantsDir) if (now < queued) lastProgress = Date.now() diff --git a/pnprServer.test.mjs b/pnprServer.test.mjs index 262cb3a..54b5cfd 100644 --- a/pnprServer.test.mjs +++ b/pnprServer.test.mjs @@ -4,8 +4,10 @@ import fs from 'node:fs' import http from 'node:http' import path from 'node:path' import test from 'node:test' + import tempy from 'tempy' import writeYamlFile from 'write-yaml-file' + import { collectLockedPackages, packageSegments, diff --git a/populatePnprCache.js b/populatePnprCache.js index 027b393..b3bc1d0 100644 --- a/populatePnprCache.js +++ b/populatePnprCache.js @@ -1,12 +1,14 @@ 'use strict' -import fs from 'fs' -import path from 'path' +import fs from 'node:fs' +import path from 'node:path' +import { fileURLToPath } from 'node:url' + import tempy from 'tempy' -import { fileURLToPath } from 'url' -import cmdsMap from './commandsMap.js' + +import { cmdsMap } from './commandsMap.js' import { fixtureNames } from './fixtures.js' -import { bootstrapInstaller, provisionPnpm12 } from './setupPackageManagers.js' import { installPnpr, npmRegistryUrl, populateCache, reservePort, startPnpr, tarRegistryUrl } from './pnprServer.js' +import { bootstrapInstaller, provisionPnpm12 } from './setupPackageManagers.js' const DIRNAME = path.dirname(fileURLToPath(import.meta.url)) /** Where the populated storage lands, unless a path is given. */ @@ -54,6 +56,7 @@ async function run () { const server = await startPnpr({ managersDir: managersDirs.pnpr, dir, port }) try { for (const fixtureName of fixtureNames) { + // eslint-disable-next-line no-await-in-loop -- the fixtures warm one shared registry one after another await populateCache({ pm: withRegistry(cmdsMap.pnpm12, npmRegistryUrl(server.url)), managersDir: managersDirs.pnpm, diff --git a/recordBenchmark.js b/recordBenchmark.js index 7b164a0..4a6f242 100644 --- a/recordBenchmark.js +++ b/recordBenchmark.js @@ -1,10 +1,12 @@ 'use strict' +import path from 'node:path' +import { fileURLToPath } from 'node:url' + import spawn from 'cross-spawn' -import benchmark, { createEnv } from './benchmarkFixture.js' -import path from 'path' -import writeYamlFile from 'write-yaml-file' import { loadYamlFile } from 'load-yaml-file' -import { fileURLToPath } from 'url' +import writeYamlFile from 'write-yaml-file' + +import { benchmark, createEnv } from './benchmarkFixture.js' const DIRNAME = path.dirname(fileURLToPath(import.meta.url)) const RESULTS = path.join(DIRNAME, 'results') @@ -14,7 +16,7 @@ const RESULTS = path.join(DIRNAME, 'results') // has to hold the same bound when it folds several runs' samples together. export const LIMIT_RUNS = 30 -export default async function (pm, fixture, opts) { +export async function recordBenchmark (pm, fixture, opts) { opts = opts || {} const limitRuns = opts.limitRuns || Infinity // Sections that don't install a fixture (the Node.js version managers, for @@ -66,7 +68,7 @@ export async function readRecordedResults (pm, fixture, opts = {}) { if (!results?.length) { throw new Error( `No recorded results at ${resultsFile}. A reporting run draws the page from what a ` + - `measuring run recorded; it measures nothing itself.` + 'measuring run recorded; it measures nothing itself.' ) } return results diff --git a/setupPackageManagers.js b/setupPackageManagers.js index 055d672..1b6824d 100644 --- a/setupPackageManagers.js +++ b/setupPackageManagers.js @@ -1,8 +1,9 @@ 'use strict' -import fs from 'fs' -import path from 'path' -import pathKey from 'path-key' +import fs from 'node:fs' +import path from 'node:path' + import spawn from 'cross-spawn' +import pathKey from 'path-key' /** * pnpm 12 installs the other package managers natively: `pnpm add --global` diff --git a/tsconfig.lint.json b/tsconfig.lint.json new file mode 100644 index 0000000..efbc7fe --- /dev/null +++ b/tsconfig.lint.json @@ -0,0 +1,11 @@ +{ + "compilerOptions": { + "allowJs": true, + "checkJs": false, + "noEmit": true, + "module": "nodenext", + "target": "es2022", + "types": ["node"] + }, + "include": ["*.js", "*.mjs"] +}