diff --git a/.pnp.cjs b/.pnp.cjs index 828212a..887d1bf 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -28,7 +28,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./",\ "packageDependencies": [\ ["@types/jest", "npm:29.5.14"],\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["jest", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.7.0"],\ ["ts-jest", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.2.6"],\ ["ts-node", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:10.9.2"],\ @@ -881,7 +881,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["@jest/console", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["chalk", "npm:4.1.2"],\ ["jest-message-util", "npm:29.7.0"],\ ["jest-util", "npm:29.7.0"],\ @@ -907,7 +907,7 @@ const RAW_RUNTIME_STATE = ["@jest/test-result", "npm:29.7.0"],\ ["@jest/transform", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["@types/node-notifier", null],\ ["ansi-escapes", "npm:4.3.2"],\ ["chalk", "npm:4.1.2"],\ @@ -947,7 +947,7 @@ const RAW_RUNTIME_STATE = ["@jest/environment", "npm:29.7.0"],\ ["@jest/fake-timers", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["jest-mock", "npm:29.7.0"]\ ],\ "linkType": "HARD"\ @@ -989,7 +989,7 @@ const RAW_RUNTIME_STATE = ["@jest/fake-timers", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ ["@sinonjs/fake-timers", "npm:10.3.0"],\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["jest-message-util", "npm:29.7.0"],\ ["jest-mock", "npm:29.7.0"],\ ["jest-util", "npm:29.7.0"]\ @@ -1028,7 +1028,7 @@ const RAW_RUNTIME_STATE = ["@jest/transform", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ ["@jridgewell/trace-mapping", "npm:0.3.19"],\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["@types/node-notifier", null],\ ["chalk", "npm:4.1.2"],\ ["collect-v8-coverage", "npm:1.0.2"],\ @@ -1136,7 +1136,7 @@ const RAW_RUNTIME_STATE = ["@jest/schemas", "npm:29.6.3"],\ ["@types/istanbul-lib-coverage", "npm:2.0.4"],\ ["@types/istanbul-reports", "npm:3.0.1"],\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["@types/yargs", "npm:17.0.24"],\ ["chalk", "npm:4.1.2"]\ ],\ @@ -1345,7 +1345,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "../../../../cache/others/berry/cache/@types-graceful-fs-npm-4.1.6-1eadcf742d-10c0.zip/node_modules/@types/graceful-fs/",\ "packageDependencies": [\ ["@types/graceful-fs", "npm:4.1.6"],\ - ["@types/node", "npm:22.13.10"]\ + ["@types/node", "npm:22.13.17"]\ ],\ "linkType": "HARD"\ }]\ @@ -1391,10 +1391,10 @@ const RAW_RUNTIME_STATE = }]\ ]],\ ["@types/node", [\ - ["npm:22.13.10", {\ - "packageLocation": "../../../../cache/others/berry/cache/@types-node-npm-22.13.10-af5336e62b-10c0.zip/node_modules/@types/node/",\ + ["npm:22.13.17", {\ + "packageLocation": "../../../../cache/others/berry/cache/@types-node-npm-22.13.17-888d18fda5-10c0.zip/node_modules/@types/node/",\ "packageDependencies": [\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["undici-types", "npm:6.20.0"]\ ],\ "linkType": "HARD"\ @@ -1938,7 +1938,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["clean-architecture", "workspace:."],\ ["@types/jest", "npm:29.5.14"],\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["jest", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.7.0"],\ ["ts-jest", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.2.6"],\ ["ts-node", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:10.9.2"],\ @@ -2959,7 +2959,7 @@ const RAW_RUNTIME_STATE = ["@jest/expect", "npm:29.7.0"],\ ["@jest/test-result", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["chalk", "npm:4.1.2"],\ ["co", "npm:4.6.0"],\ ["dedent", "virtual:f7679858c638e2e5ade31901dd2b1e5007918fdc7d84fefb11f4200f46ba2e43b9d662fb793507b517bb1e725144e51f6d68f60f9f6100fd52144f042f58f0bc#npm:1.5.1"],\ @@ -3064,7 +3064,7 @@ const RAW_RUNTIME_STATE = ["@babel/core", "npm:7.22.15"],\ ["@jest/test-sequencer", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["@types/ts-node", null],\ ["babel-jest", "virtual:939a7fe9ef9185d9378b96533b42cb7bd61bd3e34d0edd537f69a76537c5748d3b4733d3050f6f18ab17ac63143f81e7f121e602a5d38c959251dc0768083e9b#npm:29.7.0"],\ ["chalk", "npm:4.1.2"],\ @@ -3151,7 +3151,7 @@ const RAW_RUNTIME_STATE = ["@jest/environment", "npm:29.7.0"],\ ["@jest/fake-timers", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["jest-mock", "npm:29.7.0"],\ ["jest-util", "npm:29.7.0"]\ ],\ @@ -3174,7 +3174,7 @@ const RAW_RUNTIME_STATE = ["jest-haste-map", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ ["@types/graceful-fs", "npm:4.1.6"],\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["anymatch", "npm:3.1.3"],\ ["fb-watchman", "npm:2.0.2"],\ ["fsevents", "patch:fsevents@npm%3A2.3.3#optional!builtin::version=2.3.3&hash=df0bf1"],\ @@ -3263,7 +3263,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["jest-mock", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["jest-util", "npm:29.7.0"]\ ],\ "linkType": "HARD"\ @@ -3339,7 +3339,7 @@ const RAW_RUNTIME_STATE = ["@jest/test-result", "npm:29.7.0"],\ ["@jest/transform", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["chalk", "npm:4.1.2"],\ ["emittery", "npm:0.13.1"],\ ["graceful-fs", "npm:4.2.11"],\ @@ -3371,7 +3371,7 @@ const RAW_RUNTIME_STATE = ["@jest/test-result", "npm:29.7.0"],\ ["@jest/transform", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["chalk", "npm:4.1.2"],\ ["cjs-module-lexer", "npm:1.2.3"],\ ["collect-v8-coverage", "npm:1.0.2"],\ @@ -3425,7 +3425,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["jest-util", "npm:29.6.3"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["chalk", "npm:4.1.2"],\ ["ci-info", "npm:3.8.0"],\ ["graceful-fs", "npm:4.2.11"],\ @@ -3438,7 +3438,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["jest-util", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["chalk", "npm:4.1.2"],\ ["ci-info", "npm:3.8.0"],\ ["graceful-fs", "npm:4.2.11"],\ @@ -3469,7 +3469,7 @@ const RAW_RUNTIME_STATE = ["jest-watcher", "npm:29.7.0"],\ ["@jest/test-result", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["ansi-escapes", "npm:4.3.2"],\ ["chalk", "npm:4.1.2"],\ ["emittery", "npm:0.13.1"],\ @@ -3484,7 +3484,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "../../../../cache/others/berry/cache/jest-worker-npm-29.7.0-4d3567fed6-10c0.zip/node_modules/jest-worker/",\ "packageDependencies": [\ ["jest-worker", "npm:29.7.0"],\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["jest-util", "npm:29.7.0"],\ ["merge-stream", "npm:2.0.0"],\ ["supports-color", "npm:8.1.1"]\ @@ -4679,7 +4679,7 @@ const RAW_RUNTIME_STATE = ["@tsconfig/node12", "npm:1.0.11"],\ ["@tsconfig/node14", "npm:1.0.3"],\ ["@tsconfig/node16", "npm:1.0.4"],\ - ["@types/node", "npm:22.13.10"],\ + ["@types/node", "npm:22.13.17"],\ ["@types/swc__core", null],\ ["@types/swc__wasm", null],\ ["@types/typescript", null],\ @@ -5367,7 +5367,7 @@ async function copyImpl(prelayout, postlayout, destinationFs, destination, sourc async function maybeLStat(baseFs, p) { try { return await baseFs.lstatPromise(p); - } catch (e) { + } catch { return null; } } @@ -5626,7 +5626,7 @@ class CustomStatWatcher extends events.EventEmitter { stat() { try { return this.fakeFs.statSync(this.path, { bigint: this.bigint }); - } catch (error) { + } catch { const statInstance = this.bigint ? new BigIntStatsEntry() : new StatEntry(); return clearStats(statInstance); } @@ -5952,7 +5952,7 @@ class FakeFS { let current = Buffer.alloc(0); try { current = await this.readFilePromise(p); - } catch (error) { + } catch { } if (Buffer.compare(current, content) === 0) return; @@ -5962,7 +5962,7 @@ class FakeFS { let current = ``; try { current = await this.readFilePromise(p, `utf8`); - } catch (error) { + } catch { } const normalizedContent = automaticNewlines ? normalizeLineEndings(current, content) : content; if (current === normalizedContent) @@ -5980,7 +5980,7 @@ class FakeFS { let current = Buffer.alloc(0); try { current = this.readFileSync(p); - } catch (error) { + } catch { } if (Buffer.compare(current, content) === 0) return; @@ -5990,7 +5990,7 @@ class FakeFS { let current = ``; try { current = this.readFileSync(p, `utf8`); - } catch (error) { + } catch { } const normalizedContent = automaticNewlines ? normalizeLineEndings(current, content) : content; if (current === normalizedContent) @@ -6030,13 +6030,13 @@ class FakeFS { let pid; try { [pid] = await this.readJsonPromise(lockPath); - } catch (error) { + } catch { return Date.now() - startTime < 500; } try { process.kill(pid, 0); return true; - } catch (error) { + } catch { return false; } }; @@ -6049,7 +6049,7 @@ class FakeFS { try { await this.unlinkPromise(lockPath); continue; - } catch (error2) { + } catch { } } if (Date.now() - startTime < 60 * 1e3) { @@ -6069,7 +6069,7 @@ class FakeFS { try { await this.closePromise(fd); await this.unlinkPromise(lockPath); - } catch (error) { + } catch { } } } @@ -7219,7 +7219,7 @@ class MountFS extends BasePortableFakeFS { let content; try { content = await sourceFs.readFilePromise(sourceP2); - } catch (error) { + } catch { throw Object.assign(new Error(`EINVAL: invalid argument, copyfile '${sourceP2}' -> '${destP2}'`), { code: `EINVAL` }); } await destFs.writeFilePromise(destP2, content); @@ -7251,7 +7251,7 @@ class MountFS extends BasePortableFakeFS { let content; try { content = sourceFs.readFileSync(sourceP2); - } catch (error) { + } catch { throw Object.assign(new Error(`EINVAL: invalid argument, copyfile '${sourceP2}' -> '${destP2}'`), { code: `EINVAL` }); } destFs.writeFileSync(destP2, content); @@ -8166,7 +8166,7 @@ function patchFs(patchedFs, fakeFs) { setupFn(patchedFs, `existsSync`, (p) => { try { return fakeFs.existsSync(p); - } catch (error) { + } catch { return false; } }); @@ -9527,7 +9527,7 @@ class ZipFS extends BasePortableFakeFS { let resolvedP; try { resolvedP = this.resolveFilename(`stat '${p}'`, p, void 0, false); - } catch (error) { + } catch { return false; } if (resolvedP === void 0) @@ -10568,7 +10568,7 @@ Require stack: } else { resolution = originalFindPath.call(require$$0.Module, request, [path], isMain); } - } catch (error) { + } catch { continue; } if (resolution) { @@ -11651,7 +11651,7 @@ function makeApi(runtimeState, opts) { try { candidates.push(unqualifiedPath); stat = opts.fakeFs.statSync(unqualifiedPath); - } catch (error) { + } catch { } if (stat && !stat.isDirectory()) return opts.fakeFs.realpathSync(unqualifiedPath); @@ -11659,7 +11659,7 @@ function makeApi(runtimeState, opts) { let pkgJson; try { pkgJson = JSON.parse(opts.fakeFs.readFileSync(ppath.join(unqualifiedPath, Filename.manifest), `utf8`)); - } catch (error) { + } catch { } let nextUnqualifiedPath; if (pkgJson && pkgJson.main) diff --git a/.pnp.loader.mjs b/.pnp.loader.mjs index e5a5429..b743e03 100644 --- a/.pnp.loader.mjs +++ b/.pnp.loader.mjs @@ -131,7 +131,7 @@ async function copyImpl(prelayout, postlayout, destinationFs, destination, sourc async function maybeLStat(baseFs, p) { try { return await baseFs.lstatPromise(p); - } catch (e) { + } catch { return null; } } @@ -482,7 +482,7 @@ class FakeFS { let current = Buffer.alloc(0); try { current = await this.readFilePromise(p); - } catch (error) { + } catch { } if (Buffer.compare(current, content) === 0) return; @@ -492,7 +492,7 @@ class FakeFS { let current = ``; try { current = await this.readFilePromise(p, `utf8`); - } catch (error) { + } catch { } const normalizedContent = automaticNewlines ? normalizeLineEndings(current, content) : content; if (current === normalizedContent) @@ -510,7 +510,7 @@ class FakeFS { let current = Buffer.alloc(0); try { current = this.readFileSync(p); - } catch (error) { + } catch { } if (Buffer.compare(current, content) === 0) return; @@ -520,7 +520,7 @@ class FakeFS { let current = ``; try { current = this.readFileSync(p, `utf8`); - } catch (error) { + } catch { } const normalizedContent = automaticNewlines ? normalizeLineEndings(current, content) : content; if (current === normalizedContent) @@ -560,13 +560,13 @@ class FakeFS { let pid; try { [pid] = await this.readJsonPromise(lockPath); - } catch (error) { + } catch { return Date.now() - startTime < 500; } try { process.kill(pid, 0); return true; - } catch (error) { + } catch { return false; } }; @@ -579,7 +579,7 @@ class FakeFS { try { await this.unlinkPromise(lockPath); continue; - } catch (error2) { + } catch { } } if (Date.now() - startTime < 60 * 1e3) { @@ -599,7 +599,7 @@ class FakeFS { try { await this.closePromise(fd); await this.unlinkPromise(lockPath); - } catch (error) { + } catch { } } } diff --git a/yarn.lock b/yarn.lock index 816e8b8..6deca72 100644 --- a/yarn.lock +++ b/yarn.lock @@ -904,11 +904,11 @@ __metadata: linkType: hard "@types/node@npm:*, @types/node@npm:^22.7.5": - version: 22.13.10 - resolution: "@types/node@npm:22.13.10" + version: 22.13.17 + resolution: "@types/node@npm:22.13.17" dependencies: undici-types: "npm:~6.20.0" - checksum: 10c0/a3865f9503d6f718002374f7b87efaadfae62faa499c1a33b12c527cfb9fd86f733e1a1b026b80c5a0e4a965701174bc3305595a7d36078aa1abcf09daa5dee9 + checksum: 10c0/77a052fec0fe02f60557e1c5f3f28eb09cd9bee426be88328a94689150a3c0df5b4b6b69fad28157fb34521693dad0b311ecd7f613845d681ff973991310c20e languageName: node linkType: hard