Comparing version 0.0.10 to 0.0.11
@@ -147,4 +147,11 @@ | ||
var target = this.sources[where] | ||
if (!target || !(target.path || target.source) || !target.data) | ||
return this.emit('error', new Error('bad save target: '+where)) | ||
if (!target || !(target.path || target.source) || !target.data) { | ||
if (where !== 'builtin') | ||
var er = new Error('bad save target: '+where) | ||
if (cb) { | ||
process.nextTick(cb.bind(null, er)) | ||
return this | ||
} | ||
return this.emit('error', er) | ||
} | ||
@@ -156,2 +163,3 @@ if (target.source) { | ||
}) | ||
if (cb) process.nextTick(cb) | ||
return this | ||
@@ -158,0 +166,0 @@ } |
{ | ||
"name": "npmconf", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"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
27999
832