Comparing version 1.1.3 to 1.1.4
@@ -269,12 +269,3 @@ // defaults, types, and shorthands. | ||
// must be IPv4 due to node bug | ||
, "local-address" : Object.keys(os.networkInterfaces()).map(function (nic) { | ||
return os.networkInterfaces()[nic].filter(function (addr) { | ||
return addr.family === "IPv4" | ||
}) | ||
.map(function (addr) { | ||
return addr.address | ||
}) | ||
}).reduce(function (curr, next) { | ||
return curr.concat(next) | ||
}, []) | ||
, "local-address" : getLocalAddresses() | ||
, loglevel : ["silent","win","error","warn","http","info","verbose","silly"] | ||
@@ -331,2 +322,15 @@ , logstream : Stream | ||
function getLocalAddresses() { | ||
Object.keys(os.networkInterfaces()).map(function (nic) { | ||
return os.networkInterfaces()[nic].filter(function (addr) { | ||
return addr.family === "IPv4" | ||
}) | ||
.map(function (addr) { | ||
return addr.address | ||
}) | ||
}).reduce(function (curr, next) { | ||
return curr.concat(next) | ||
}, []).concat(undefined) | ||
} | ||
exports.shorthands = | ||
@@ -333,0 +337,0 @@ { s : ["--loglevel", "silent"] |
@@ -6,2 +6,5 @@ module.exports = loadCAFile | ||
function loadCAFile(cafilePath, cb) { | ||
if (!cafilePath) | ||
return process.nextTick(cb) | ||
fs.readFile(cafilePath, 'utf8', afterCARead.bind(this)) | ||
@@ -8,0 +11,0 @@ |
@@ -432,2 +432,4 @@ | ||
}) | ||
nopt.clean(cl.root, configDefs.types) | ||
} |
{ | ||
"name": "npmconf", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "The config thing npm uses", | ||
@@ -14,3 +14,3 @@ "main": "npmconf.js", | ||
"mkdirp": "~0.3.3", | ||
"nopt": "2 || 3", | ||
"nopt": "~3.0.1", | ||
"once": "~1.3.0", | ||
@@ -17,0 +17,0 @@ "osenv": "^0.1.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41676
1204
Updatednopt@~3.0.1