npm lookups read registry errors as not published
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- node.js, typescript
Direzione di ricerca
Read src/lib/registry.ts around isOnNpm and src/prerelease/prerelease-version.ts around fetchDevVersions; compare both with nfRegistryVersions in the same prerelease file. Check existing tests for these lookups and confirm they distinguish 404 from other non-2xx responses. Done means only 404 is treated as absent and other registry errors fail the step.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Issue description
Both npm lookups read an error as "nothing there":
isOnNpm(src/lib/registry.ts#L13-L14) returnsfalsefor any non-2xx answer, including 429 and 5xx;fetchDevVersions(src/prerelease/prerelease-version.ts#L30-L38) returns[]on any error or non-2xx answer.
During an npm outage or a rate limit (traced, not run):
- a release re-run tries to publish a version that is already out and fails;
- an alpha whose committed version isn't on this branch's prefix restarts at
.0, and the publish fails on a taken version; - a beta publishes and silently deprecates nothing.
nfRegistryVersions in the same file already does it right: [] on 404 only, and an error on any other status.
Expected: only a 404 means "not published"; any other status fails the step.
Found by a read-only audit of main at 435a16b (first done at 046494f; no src/ file changed in between), report audits/actions-2026-11-11.md in the workspace repo.
Code sample
export const isOnNpm = async (name: string, version: string): Promise<boolean> =>
(await fetch(`https://registry.npmjs.org/${name}/${version}`)).ok;
Versions
- @nanoforge-dev/actions 3.3.0 (
mainat 435a16b) - Bun 1.3.14
Issue priority
Low (slightly annoying)
I have tested this issue on a development release
435a16b
- Lingua principale
- TypeScript
- Stelle
- 0
- Fork
- 0
- Merge medio
- 15h 51m
- PR unite (30g)
- 21
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NanoForge-dev/actions
-
bug dependencies
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
NanoForge-dev/actions#137 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
NanoForge-dev/actions#136 ·
I maintainer di solito rispondono entro 1 giorno
-
Registry release silently skips manifests with no name and does not name invalid JSON manifestsApertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
NanoForge-dev/actions#135 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
NanoForge-dev/actions#134 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
NanoForge-dev/actions#131 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di NanoForge-dev/actions
Issue simili
-
Mend: dependency security vulnerability
Difficoltà 1/5 1-3 ore Idoneità per principianti 65/100
fdm-monster/fdm-monster#5563 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
be-BOP-io-SA/be-BOP#2849 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
1️⃣ phase/under-investigation flaky/confirmed flaky/needs-decision type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
growilabs/growi#12246 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
🐛 The Rulekeeper - An index run that gives up on the lock ends SucceededForse già presa @github-actions l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
SSWConsulting/SSW.Rules#2809 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno