Comparing version 0.4.30 to 0.4.31
@@ -1,4 +0,9 @@ | ||
0.4.30 / 2013-10-12 | ||
0.4.31 / 2013-10-18 | ||
=================== | ||
* Changed getConfigSources to copy array vs. object | ||
0.4.30 / 2013-09-12 | ||
=================== | ||
* More consistent array extension | ||
@@ -5,0 +10,0 @@ * No longer requiring a config directory |
@@ -546,3 +546,3 @@ /*jsl:declare global */ | ||
var t = this; | ||
return t._extendDeep({}, configSources); | ||
return configSources.slice(0); | ||
}; | ||
@@ -722,3 +722,3 @@ | ||
configSources.push({ | ||
name: "$NODE_CONFIG environment variable", | ||
name: "$NODE_CONFIG", | ||
parsed: newStyleEnv, | ||
@@ -738,3 +738,3 @@ }); | ||
configSources.push({ | ||
name: "--NODE_CONFIG command line argument", | ||
name: "--NODE_CONFIG argument", | ||
parsed: cmdLineConfig, | ||
@@ -919,8 +919,10 @@ }); | ||
// Keep track of this configuration source | ||
configSources.push({ | ||
name: fullFilename, | ||
original: fileContent, | ||
parsed: configObject, | ||
}); | ||
// Keep track of this configuration source if it has anything in it | ||
if (JSON.stringify(configObject).length > 2) { | ||
configSources.push({ | ||
name: fullFilename, | ||
original: fileContent, | ||
parsed: configObject, | ||
}); | ||
} | ||
@@ -1358,3 +1360,3 @@ return configObject; | ||
for (var argvIt in cmdLineArgs) { | ||
for (var argvIt = 0; argvIt < cmdLineArgs.length; argvIt++) { | ||
if (cmdLineArgs[argvIt].indexOf(argName) === 0) { | ||
@@ -1361,0 +1363,0 @@ return cmdLineArgs[argvIt].substr(argName.length); |
{ | ||
"name": "config", | ||
"version": "0.4.30", | ||
"version": "0.4.31", | ||
"main": "./lib/config.js", | ||
@@ -13,3 +13,3 @@ "description": "Configuration control for production node deployments", | ||
"devDependencies": { | ||
"js-yaml" : "0.3.x", | ||
"js-yaml" : "2.1.x", | ||
"coffee-script" : ">=1.2.0", | ||
@@ -16,0 +16,0 @@ "vows" : ">=0.5.13" |
@@ -8,11 +8,7 @@ { | ||
}, | ||
"EnvOverride": { | ||
"parm_number_1": "overridden from test", | ||
"parm2": 13 | ||
}, | ||
"watchThisValue": 85935, | ||
"watchThisValue": 10788, | ||
"dynamicArray": [ | ||
59524, | ||
33370 | ||
99287, | ||
72082 | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
809587
2434