When checking package freshness, we hit registry.npmjs.org without a User-Agent header. The npm registry docs recommend including one for programmatic access. Right now it works fine, but without a UA we're more likely to get rate-limited or blocked down the road.
The fix is straightforward — just add a User-Agent header to the fetch call in getNpmPackageAge. Something like karpeslop/1.0.25 would be sufficient.
When checking package freshness, we hit
registry.npmjs.orgwithout a User-Agent header. The npm registry docs recommend including one for programmatic access. Right now it works fine, but without a UA we're more likely to get rate-limited or blocked down the road.The fix is straightforward — just add a
User-Agentheader to thefetchcall ingetNpmPackageAge. Something likekarpeslop/1.0.25would be sufficient.