Comparing version 0.0.7 to 0.0.8
@@ -27,10 +27,12 @@ /* | ||
if (obj['#include'] !== undefined) { | ||
// Figure out the target filename. | ||
var dirname = path.dirname(currentFile), | ||
newFilename = path.resolve(dirname, obj['#include']); | ||
obj = cjson.extend( | ||
true, | ||
loadFile(newFilename, loadedFiles), | ||
obj | ||
); | ||
Array.isArray(obj['#include']) ? obj['#include'] : [obj['#include']].reverse().forEach(function (include) { | ||
// Figure out the target filename. | ||
var dirname = path.dirname(currentFile), | ||
newFilename = path.resolve(dirname, include); | ||
obj = cjson.extend( | ||
true, | ||
loadFile(newFilename, loadedFiles), | ||
obj | ||
); | ||
}); | ||
delete obj['#include']; | ||
@@ -37,0 +39,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "Configuration", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
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
8455
132