diff --git a/.pnp.cjs b/.pnp.cjs index 828212a..0915a0e 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -32,7 +32,7 @@ const RAW_RUNTIME_STATE = ["jest", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.7.0"],\ ["ts-jest", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.2.6"],\ ["ts-node", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:10.9.2"],\ - ["typescript", "patch:typescript@npm%3A5.8.2#optional!builtin::version=5.8.2&hash=5786d5"]\ + ["typescript", "patch:typescript@npm%3A5.8.3#optional!builtin::version=5.8.3&hash=5786d5"]\ ],\ "linkType": "SOFT"\ }]\ @@ -1942,7 +1942,7 @@ const RAW_RUNTIME_STATE = ["jest", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.7.0"],\ ["ts-jest", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.2.6"],\ ["ts-node", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:10.9.2"],\ - ["typescript", "patch:typescript@npm%3A5.8.2#optional!builtin::version=5.8.2&hash=5786d5"]\ + ["typescript", "patch:typescript@npm%3A5.8.3#optional!builtin::version=5.8.3&hash=5786d5"]\ ],\ "linkType": "SOFT"\ }]\ @@ -4638,7 +4638,7 @@ const RAW_RUNTIME_STATE = ["lodash.memoize", "npm:4.1.2"],\ ["make-error", "npm:1.3.6"],\ ["semver", "npm:7.7.1"],\ - ["typescript", "patch:typescript@npm%3A5.8.2#optional!builtin::version=5.8.2&hash=5786d5"],\ + ["typescript", "patch:typescript@npm%3A5.8.3#optional!builtin::version=5.8.3&hash=5786d5"],\ ["yargs-parser", "npm:21.1.1"]\ ],\ "packagePeers": [\ @@ -4689,7 +4689,7 @@ const RAW_RUNTIME_STATE = ["create-require", "npm:1.1.1"],\ ["diff", "npm:4.0.2"],\ ["make-error", "npm:1.3.6"],\ - ["typescript", "patch:typescript@npm%3A5.8.2#optional!builtin::version=5.8.2&hash=5786d5"],\ + ["typescript", "patch:typescript@npm%3A5.8.3#optional!builtin::version=5.8.3&hash=5786d5"],\ ["v8-compile-cache-lib", "npm:3.0.1"],\ ["yn", "npm:3.1.1"]\ ],\ @@ -4724,10 +4724,10 @@ const RAW_RUNTIME_STATE = }]\ ]],\ ["typescript", [\ - ["patch:typescript@npm%3A5.8.2#optional!builtin::version=5.8.2&hash=5786d5", {\ - "packageLocation": "../../../../cache/others/berry/cache/typescript-patch-26c53754b1-10c0.zip/node_modules/typescript/",\ + ["patch:typescript@npm%3A5.8.3#optional!builtin::version=5.8.3&hash=5786d5", {\ + "packageLocation": "../../../../cache/others/berry/cache/typescript-patch-f64146f279-10c0.zip/node_modules/typescript/",\ "packageDependencies": [\ - ["typescript", "patch:typescript@npm%3A5.8.2#optional!builtin::version=5.8.2&hash=5786d5"]\ + ["typescript", "patch:typescript@npm%3A5.8.3#optional!builtin::version=5.8.3&hash=5786d5"]\ ],\ "linkType": "HARD"\ }]\ @@ -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..8919adf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3793,22 +3793,22 @@ __metadata: linkType: hard "typescript@npm:^5.6.2": - version: 5.8.2 - resolution: "typescript@npm:5.8.2" + version: 5.8.3 + resolution: "typescript@npm:5.8.3" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10c0/5c4f6fbf1c6389b6928fe7b8fcd5dc73bb2d58cd4e3883f1d774ed5bd83b151cbac6b7ecf11723de56d4676daeba8713894b1e9af56174f2f9780ae7848ec3c6 + checksum: 10c0/5f8bb01196e542e64d44db3d16ee0e4063ce4f3e3966df6005f2588e86d91c03e1fb131c2581baf0fb65ee79669eea6e161cd448178986587e9f6844446dbb48 languageName: node linkType: hard "typescript@patch:typescript@npm%3A^5.6.2#optional!builtin": - version: 5.8.2 - resolution: "typescript@patch:typescript@npm%3A5.8.2#optional!builtin::version=5.8.2&hash=5786d5" + version: 5.8.3 + resolution: "typescript@patch:typescript@npm%3A5.8.3#optional!builtin::version=5.8.3&hash=5786d5" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10c0/5448a08e595cc558ab321e49d4cac64fb43d1fa106584f6ff9a8d8e592111b373a995a1d5c7f3046211c8a37201eb6d0f1566f15cdb7a62a5e3be01d087848e2 + checksum: 10c0/39117e346ff8ebd87ae1510b3a77d5d92dae5a89bde588c747d25da5c146603a99c8ee588c7ef80faaf123d89ed46f6dbd918d534d641083177d5fac38b8a1cb languageName: node linkType: hard