Comparing version 1.0.6 to 1.1.0
@@ -122,2 +122,3 @@ // defaults, types, and shorthands. | ||
, ca: null | ||
, cafile: null | ||
@@ -230,2 +231,3 @@ , cache : cache | ||
, ca: [null, String, Array] | ||
, cafile : path | ||
, cache : path | ||
@@ -232,0 +234,0 @@ , "cache-lock-stale": Number |
@@ -142,12 +142,30 @@ | ||
conf.once('load', function () { | ||
conf.loadExtras(function(er) { | ||
if (er) | ||
return cb(er) | ||
// warn about invalid bits. | ||
validate(conf) | ||
exports.loaded = conf | ||
cb(er, conf) | ||
}) | ||
conf.loadExtras(afterExtras) | ||
}) | ||
} | ||
function afterExtras(er) { | ||
if (er) | ||
return cb(er) | ||
// warn about invalid bits. | ||
validate(conf) | ||
var cafile = conf.get('cafile') | ||
if(cafile) { | ||
return conf.loadCAFile(cafile, finalize) | ||
} | ||
finalize() | ||
} | ||
function finalize(er, cadata) { | ||
if (er) { | ||
return cb(er) | ||
} | ||
exports.loaded = conf | ||
cb(er, conf) | ||
} | ||
} | ||
@@ -177,2 +195,3 @@ | ||
Conf.prototype.loadPrefix = require('./lib/load-prefix.js') | ||
Conf.prototype.loadCAFile = require('./lib/load-cafile.js') | ||
Conf.prototype.loadUid = require('./lib/load-uid.js') | ||
@@ -179,0 +198,0 @@ Conf.prototype.setUser = require('./lib/set-user.js') |
{ | ||
"name": "npmconf", | ||
"version": "1.0.6", | ||
"version": "1.1.0", | ||
"description": "The config thing npm uses", | ||
@@ -5,0 +5,0 @@ "main": "npmconf.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
39838
23
1144
0
40