config-js
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -179,5 +179,8 @@ /*! | ||
// invalid value found and no defaukt value, then we throw an error | ||
if (!isValid && typeof defaultValue === 'undefined' && !fromEnv) | ||
throw new Error('No config value found'); | ||
// invalid value found and no default value, then we throw an error | ||
if (!isValid && typeof defaultValue === 'undefined' && !fromEnv) { | ||
debug('Var statuses ','!isValid',!isValid,'typeof defaultValue', | ||
typeof defaultValue, '!fromEnv',!fromEnv); | ||
throw new Error('No config value found for: '+propertyName); | ||
} | ||
@@ -184,0 +187,0 @@ // either return found value or default |
{ | ||
"name": "config-js", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "A simple config module. Support for regions and auto-load when file changes.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
26934
391
19