Skip to content

Commit cfd9fcb

Browse files
author
Danny McCormick
authored
Revert #313 (#322)
* Dont send version in userAgent * Revert #313
1 parent 3c7622f commit cfd9fcb

4 files changed

Lines changed: 21 additions & 3 deletions

File tree

api/WebApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export class WebApi {
145145
userAgent = `${nodeApiName} (${window.navigator.userAgent})`;
146146
}
147147
} else {
148-
const nodeApiVersion = require('../package.json').version;
148+
const nodeApiVersion: string = JSON.parse(fs.readFileSync(path.resolve(__dirname, 'package.json'), 'utf8')).version;
149149
const osName: string = os.platform();
150150
const osVersion: string = os.release();
151151

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "azure-devops-node-api",
33
"description": "Node client for Azure DevOps and TFS REST APIs",
4-
"version": "9.0.0",
4+
"version": "9.0.1",
55
"main": "./WebApi.js",
66
"types": "./WebApi.d.ts",
77
"scripts": {

test/package-lock.json

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)