diff --git a/package.json b/package.json index f551f62b..a017fd92 100644 --- a/package.json +++ b/package.json @@ -113,7 +113,7 @@ "prepare": "husky", "preinstall": "npx only-allow pnpm" }, - "version": "2.3.22-rc.13", + "version": "2.3.22-rc.14", "pnpm": { "onlyBuiltDependencies": [ "@parcel/watcher", diff --git a/scripts/smoke.ts b/scripts/smoke.ts index d078dbaa..7adac155 100644 --- a/scripts/smoke.ts +++ b/scripts/smoke.ts @@ -44,7 +44,19 @@ async function run() { urls.map(async (url) => { try { const res = await fetch(url, { method: 'HEAD' }); - if (res.status >= 400) broken.push(`${url} (Status: ${res.status})`); + if (res.status >= 400) { + // Diagnostic: check if the raw source is available + const rawUrlMatch = url.match(/[?&]url=([^&]+)/); + if (rawUrlMatch) { + const rawPath = decodeURIComponent(rawUrlMatch[1]); + const baseUrl = new URL(url).origin; + const rawUrl = `${baseUrl}${rawPath}`; + const rawRes = await fetch(rawUrl, { method: 'HEAD' }); + broken.push(`${url} (Status: ${res.status}, Raw Status: ${rawRes.status})`); + } else { + broken.push(`${url} (Status: ${res.status})`); + } + } } catch (e) { broken.push(`${url} (Fetch failed)`); }