From 68a5c3930b9a22deb6c1de45b4b6e0a999263f7d Mon Sep 17 00:00:00 2001 From: Makoto Emura Date: Tue, 9 Jun 2026 23:28:17 -0700 Subject: [PATCH] Update --- .pnp.loader.mjs | 7 +++++-- .yarnrc.yml | 7 +++++++ yarn.lock | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.pnp.loader.mjs b/.pnp.loader.mjs index 2d5a584..15cab03 100644 --- a/.pnp.loader.mjs +++ b/.pnp.loader.mjs @@ -1428,11 +1428,12 @@ class VirtualFS extends ProxiedFS { const URL = Number(process.versions.node.split('.', 1)[0]) < 20 ? URL$1 : globalThis.URL; -const [major, minor] = process.versions.node.split(`.`).map((value) => parseInt(value, 10)); +const [major, minor, patch] = process.versions.node.split(`.`).map((value) => parseInt(value, 10)); const WATCH_MODE_MESSAGE_USES_ARRAYS = major > 19 || major === 19 && minor >= 2 || major === 18 && minor >= 13; const HAS_LAZY_LOADED_TRANSLATORS = major === 20 && minor < 6 || major === 19 && minor >= 3; const SUPPORTS_IMPORT_ATTRIBUTES = major >= 21 || major === 20 && minor >= 10 || major === 18 && minor >= 20; const SUPPORTS_IMPORT_ATTRIBUTES_ONLY = major >= 22; +const HAS_BROKEN_FSTAT_FOR_ZIP_FDS = major === 26 && minor < 1 || major === 25 && minor >= 7 || major === 24 && minor === 15 || major === 22 && (minor > 22 || minor === 22 && patch >= 3); function readPackageScope(checkPath) { const rootSeparatorIndex = checkPath.indexOf(npath.sep); @@ -1549,9 +1550,11 @@ async function load$1(urlString, context, nextLoad) { "watch:import": WATCH_MODE_MESSAGE_USES_ARRAYS ? [pathToSend] : pathToSend }); } + const shouldReadSource = format === `commonjs` && HAS_BROKEN_FSTAT_FOR_ZIP_FDS && filePath.includes(`.zip/`); + const source = format !== `commonjs` || shouldReadSource ? await fs.promises.readFile(filePath, `utf8`) : void 0; return { format, - source: format === `commonjs` ? void 0 : await fs.promises.readFile(filePath, `utf8`), + source, shortCircuit: true }; } diff --git a/.yarnrc.yml b/.yarnrc.yml index 85e88a8..b30676e 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1 +1,8 @@ +approvedGitRepositories: + - "**" + enableGlobalCache: true + +enableScripts: true + +npmMinimalAgeGate: 0 diff --git a/yarn.lock b/yarn.lock index 6a9ed57..120e5ee 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,7 +2,7 @@ # Manual changes might be lost - proceed with caution! __metadata: - version: 8 + version: 10 cacheKey: 10c0 "@cloudflare/kv-asset-handler@npm:0.5.0":