Comparing version 1.2.0 to 1.3.0
@@ -48,16 +48,16 @@ // Copyright (c) 2016 Uber Technologies, Inc. | ||
this.configFile = opts.configFile; | ||
if (!this.configFile) { | ||
if (process.env.HOME) { | ||
this.configFile = path.join(process.env.HOME, '.arcrc'); | ||
} else { | ||
var noHomeEnvError = new Error( | ||
'Unable to find $HOME/.arcrc: ' + | ||
'$HOME env variable is not defined.' | ||
); | ||
return cb(noHomeEnvError, null); | ||
} | ||
} | ||
var self = this; | ||
if (!this.api) { | ||
if (!this.configFile) { | ||
if (process.env.HOME) { | ||
this.configFile = path.join(process.env.HOME, '.arcrc'); | ||
} else { | ||
var noHomeEnvError = new Error( | ||
'Unable to find $HOME/.arcrc: ' + | ||
'$HOME env variable is not defined.' | ||
); | ||
return cb(noHomeEnvError, null); | ||
} | ||
} | ||
this.parseConfigFile(function (err) { | ||
@@ -64,0 +64,0 @@ if (err) return cb(err, null); |
{ | ||
"name": "canduit", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Node.js Phabricator Conduit API client", | ||
@@ -5,0 +5,0 @@ "main": "canduit.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10305
8
148