Skip to content

Commit 9ecc84c

Browse files
author
Danny McCormick
authored
Enable webpack (#313)
1 parent 4477e1b commit 9ecc84c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

api/WebApi.ts

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

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": "8.1.0",
4+
"version": "8.2.0",
55
"main": "./WebApi.js",
66
"types": "./WebApi.d.ts",
77
"scripts": {

0 commit comments

Comments
 (0)