config-js
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -145,2 +145,3 @@ /*! | ||
have(arguments, {propertyName: 'str', sep: 'opt str'}); | ||
debug('config.get of '+propertyName+', def='+defaultValue+', sep='+sep); | ||
@@ -173,2 +174,3 @@ assert.ok(is.nonEmptyStr(propertyName)); | ||
envStr = process.env[envPropName]; | ||
debug('Propery '+envPropName+' found in environment: '+process.env[envPropName]); | ||
} | ||
@@ -185,2 +187,3 @@ | ||
if (!fromEnv) { | ||
debug('Propery '+envPropName+' gotten from config file: ',(isValid ? currVal : defaultValue)); | ||
return isValid ? currVal : defaultValue; | ||
@@ -187,0 +190,0 @@ } else { |
{ | ||
"name": "config-js", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"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
26539
384
19