Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

config

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

config - npm Package Compare versions

Comparing version 0.4.30 to 0.4.31

7

History.md

@@ -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

22

lib/config.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc