Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 24, 2026

The userAgent parameter JSDoc claimed the default includes "npm-check-fork version" but only provided Node version and platform info.

Changes

  • Import package.json to access version at runtime
  • Update default User-Agent string to include package version: npm-check-fork/${version} node/${nodeVersion} ${platform} ${arch}

Example output: npm-check-fork/0.1.9 node/v20.20.0 linux x64


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: TheLarkInn <3408176+TheLarkInn@users.noreply.github.com>
Copilot AI changed the title [WIP] Update package-json and throat dependencies based on feedback fix(npm-check-fork): include package version in default User-Agent Jan 24, 2026
Copilot AI requested a review from TheLarkInn January 24, 2026 20:19
@TheLarkInn
Copy link
Member

don't like this change personally I don't want to have to pull the whole package.json for a user agent, lets just pull the other information instead

@TheLarkInn TheLarkInn closed this Jan 25, 2026
@github-project-automation github-project-automation bot moved this from Needs triage to Closed in Bug Triage Jan 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants