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