Comparing version 0.6.3 to 0.6.4
@@ -463,11 +463,18 @@ /* | ||
if (store.save) { | ||
store.save(function (err, data) { | ||
if (err) return next(err); | ||
return store.save(function (err, data) { | ||
if (err) { | ||
return next(err); | ||
} | ||
if (typeof data == 'object' && data !== null) { | ||
memo.push(data); | ||
} | ||
next(null, memo); | ||
}); | ||
} else if (store.saveSync) { | ||
} | ||
else if (store.saveSync) { | ||
memo.push(store.saveSync()); | ||
} | ||
next(null, memo); | ||
@@ -474,0 +481,0 @@ } |
{ | ||
"name": "nconf", | ||
"description": "Hierarchical node.js configuration with files, environment variables, command-line arguments, and atomic object merging.", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"author": "Nodejitsu Inc. <info@nodejitsu.com>", | ||
@@ -6,0 +6,0 @@ "maintainers": [ |
/* | ||
* file-store-test.js: Tests for the nconf File store. | ||
* provider-test.js: Tests for the nconf Provider object. | ||
* | ||
@@ -4,0 +4,0 @@ * (C) 2011, Nodejitsu Inc. |
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
258709
55
2522