Comparing version 0.0.14 to 0.0.15
@@ -717,2 +717,7 @@ /* eslint-disable class-methods-use-this */ | ||
isSilly ({ debugIDs, onlyEnv = false }) { | ||
const debugEnvs = (process.env.DEBUG || '').split(/[,; ]+/); | ||
return (!onlyEnv && this.isLevelAllowed('silly')) || [...debugIDs, '*'].some((v) => debugEnvs.includes(v)); | ||
} | ||
getSilly ({ debugIDs, prefix = 'SILLY', onlyEnv = false }) { | ||
@@ -725,4 +730,3 @@ const { colorBlue: cB, colorLBlue: cLB, colorCyan: cC, colorGreen: cG, colorMagenta: cM } = this; | ||
} | ||
const debugEnvs = (process.env.DEBUG || '').split(/[,; ]+/); | ||
const isSilly = (!onlyEnv && this.isLevelAllowed('silly')) || [...debugIDs, '*'].some((v) => debugEnvs.includes(v)); | ||
const isSilly = this.isSilly({ debugIDs, onlyEnv }) | ||
return (msg) => { | ||
@@ -729,0 +733,0 @@ if (!isSilly) { |
{ | ||
"name": "af-echo", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"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
26643
684