From 1c24df3126f980b4928e9186e99f46add89bc7ad Mon Sep 17 00:00:00 2001 From: damccorm Date: Fri, 16 Aug 2019 14:05:26 -0400 Subject: [PATCH] User agent --- lib/installer.js | 2 +- src/installer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/installer.js b/lib/installer.js index 29de9a01..c86924c1 100644 --- a/lib/installer.js +++ b/lib/installer.js @@ -103,7 +103,7 @@ function queryLatestMatch(versionSpec) { } let versions = []; let dataUrl = 'https://nodejs.org/dist/index.json'; - let rest = new restm.RestClient('vsts-node-tool'); + let rest = new restm.RestClient('setup-node'); let nodeVersions = (yield rest.get(dataUrl)).result || []; nodeVersions.forEach((nodeVersion) => { // ensure this version supports your os and platform diff --git a/src/installer.ts b/src/installer.ts index 7433ff3c..0abb1fe0 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -100,7 +100,7 @@ async function queryLatestMatch(versionSpec: string): Promise { let versions: string[] = []; let dataUrl = 'https://nodejs.org/dist/index.json'; - let rest: restm.RestClient = new restm.RestClient('vsts-node-tool'); + let rest: restm.RestClient = new restm.RestClient('setup-node'); let nodeVersions: INodeVersion[] = (await rest.get(dataUrl)).result || []; nodeVersions.forEach((nodeVersion: INodeVersion) => {