npm lookups read registry errors as not published
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- node.js, typescript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 0
- Fork
- 0
- Merge trung bình
- 15 giờ 51 phút
- Pull request đã merge (30 ngày)
- 21
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của NanoForge-dev/actions
-
bug dependencies
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
NanoForge-dev/actions#137 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
NanoForge-dev/actions#136 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Registry release silently skips manifests with no name and does not name invalid JSON manifestsĐang mởbug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
NanoForge-dev/actions#135 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
NanoForge-dev/actions#134 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
NanoForge-dev/actions#131 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của NanoForge-dev/actions
Issue tương tự
-
Mend: dependency security vulnerability
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 65/100
fdm-monster/fdm-monster#5563 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
be-BOP-io-SA/be-BOP#2849 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
1️⃣ phase/under-investigation flaky/confirmed flaky/needs-decision type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
growilabs/growi#12246 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
🐛 The Rulekeeper - An index run that gives up on the lock ends SucceededCó thể đã có người làm @github-actions đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
SSWConsulting/SSW.Rules#2809 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày