@marcopeg/utils
Advanced tools
Comparing version 1.11.2 to 1.11.3
@@ -10,8 +10,3 @@ 'use strict'; | ||
var _require = require('./logger'), | ||
logDebug = _require.logDebug; | ||
// allow to perform module memoization | ||
module.cache = {}; | ||
@@ -27,4 +22,5 @@ | ||
*/ | ||
var init = function init(envVars) { | ||
var init = function init(envVars, debug) { | ||
module.cache.envVars = Object.assign({}, envVars); | ||
module.cache.debug = debug; | ||
}; | ||
@@ -37,3 +33,3 @@ | ||
if (defaultValue) { | ||
logDebug(key + '::default::' + defaultValue); | ||
module.cache.debug && console.log(key + '::default::' + defaultValue); | ||
return defaultValue; | ||
@@ -44,3 +40,3 @@ } | ||
} | ||
logDebug(key + '::' + pool[key]); | ||
module.cache.debug && console.log(key + '::' + pool[key]); | ||
return pool[key]; | ||
@@ -47,0 +43,0 @@ }; |
{ | ||
"name": "@marcopeg/utils", | ||
"version": "1.11.2", | ||
"version": "1.11.3", | ||
"description": "Javascript utils for server and client projects", | ||
@@ -5,0 +5,0 @@ "main": "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
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
23526
0
501