Skip to content

npm registry fetches should send a User-Agent header #17

@CodeDeficient

Description

@CodeDeficient

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions