Commit e660351
fix: validate npm registry response in getNpmPackageVersion
Use `request` with a Zod schema to ensure the response is OK and
contains a valid version string. Previously, a failed fetch could
write a bad state file that blocked retries for 24 hours.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent eb53960 commit e660351
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
52 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
0 commit comments