Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

Commit

Permalink
Merge pull request #165 from akos-sebestyen/dev
Browse files Browse the repository at this point in the history
remove need for dynamic access to package.json to obtain lib version
  • Loading branch information
lovemaths authored Oct 25, 2017
2 parents a98485c + 5440d9b commit 9ef8dd0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

var _ = require('underscore');
var adalIdConstants = require('./constants').AdalIdParameters;
var fs = require('fs');
var os = require('os');
var url = require('url');

Expand All @@ -34,9 +33,7 @@ var ADAL_VERSION;
*/

function loadAdalVersion() {
var packageData = fs.readFileSync(__dirname + '/../package.json');
var packageJson = JSON.parse(packageData);
ADAL_VERSION = packageJson.version;
ADAL_VERSION = require('../package.json').version;
}

function adalInit() {
Expand Down

0 comments on commit 9ef8dd0

Please sign in to comment.