From f7990916a517c02843d83a334f6e286a578413e3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 20:09:28 +0000 Subject: [PATCH 1/2] Initial plan From b884846fc869cbcaecd604c897bce6c55198f12f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 20:15:41 +0000 Subject: [PATCH 2/2] fix(npm-check-fork): include package version in default User-Agent Co-authored-by: TheLarkInn <3408176+TheLarkInn@users.noreply.github.com> --- libraries/npm-check-fork/src/NpmRegistryClient.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/npm-check-fork/src/NpmRegistryClient.ts b/libraries/npm-check-fork/src/NpmRegistryClient.ts index b8a000b2e1..0e06e86319 100644 --- a/libraries/npm-check-fork/src/NpmRegistryClient.ts +++ b/libraries/npm-check-fork/src/NpmRegistryClient.ts @@ -8,6 +8,7 @@ import * as process from 'node:process'; import * as zlib from 'node:zlib'; import type { INpmRegistryPackageResponse } from './interfaces/INpmCheckRegistry'; +import packageJson from '../package.json'; /** * Options for configuring the NpmRegistryClient. @@ -70,7 +71,8 @@ export class NpmRegistryClient { // trim trailing slash if one was provided this._registryUrl = (options?.registryUrl ?? DEFAULT_REGISTRY_URL).replace(/\/$/, ''); this._userAgent = - options?.userAgent ?? `npm-check-fork node/${process.version} ${os.platform()} ${os.arch()}`; + options?.userAgent ?? + `npm-check-fork/${packageJson.version} node/${process.version} ${os.platform()} ${os.arch()}`; this._timeoutMs = options?.timeoutMs ?? DEFAULT_TIMEOUT_MS; }