Comparing version 0.0.13 to 0.0.14
@@ -724,3 +724,4 @@ /* eslint-disable class-methods-use-this */ | ||
} | ||
const isSilly = (!onlyEnv && this.isLevelAllowed('silly')) || [...debugIDs, '*'].some((v) => process.env.DEBUG === v); | ||
const debugEnvs = (process.env.DEBUG || '').split(/[,; ]+/); | ||
const isSilly = (!onlyEnv && this.isLevelAllowed('silly')) || [...debugIDs, '*'].some((v) => debugEnvs.includes(v)); | ||
return (msg) => { | ||
@@ -731,3 +732,6 @@ if (!isSilly) { | ||
if (typeof msg === 'object') { | ||
msg = Object.entries(msg).map(({ name, value }) => `${cC}${name}${cLB}=${cG}${typeof value === 'object' ? JSON.stringify(value) : value}`).join(`${cB}&${cG}`); | ||
msg = Object.entries(msg).map(({ | ||
name, | ||
value | ||
}) => `${cC}${name}${cLB}=${cG}${typeof value === 'object' ? JSON.stringify(value) : value}`).join(`${cB}&${cG}`); | ||
} | ||
@@ -734,0 +738,0 @@ const pfx = `${cM}[${prefix}]${cG}`; |
{ | ||
"name": "af-echo", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "A highly specialized function library", | ||
@@ -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
26535
681