app-config-chain
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -8,4 +8,4 @@ 'use strict'; | ||
var envConfigPath, defaultConfigPath, cfgDir, | ||
defaultConfig, envConfig; | ||
var envConfigPath, defaultConfigPath, cfgDir, defaultConfig; | ||
var envConfig = {}; | ||
@@ -20,3 +20,2 @@ // figure out where the config files are at | ||
var defaultConfigPath = path.join(cfgDir, 'default'); | ||
@@ -37,9 +36,7 @@ | ||
envConfig = require(envConfigPath); | ||
} else { | ||
envConfig = {}; | ||
} | ||
} catch (err) { | ||
envConfig = {}; // no env specified | ||
throw new Error(err); | ||
} | ||
module.exports = merge(defaultConfig, envConfig); |
{ | ||
"name": "app-config-chain", | ||
"description": "Cascading configuration for web applications", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"homepage": "http://github.com/contra/app-config-chain", | ||
@@ -29,3 +29,6 @@ "repository": "git://github.com/contra/app-config-chain.git", | ||
}, | ||
"license": "MIT" | ||
"license": "MIT", | ||
"files": [ | ||
"index.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
5
5758
4
31