Comparing version 0.0.15 to 0.0.16
@@ -722,4 +722,5 @@ /* eslint-disable class-methods-use-this */ | ||
getSilly ({ debugIDs, prefix = 'SILLY', onlyEnv = false }) { | ||
getSilly ({ debugIDs, prefix = 'SILLY', onlyEnv = false, color }) { | ||
const { colorBlue: cB, colorLBlue: cLB, colorCyan: cC, colorGreen: cG, colorMagenta: cM } = this; | ||
const prefixColor = color || cM; | ||
if (debugIDs && typeof debugIDs === 'string') { | ||
@@ -730,3 +731,3 @@ debugIDs = [debugIDs]; | ||
} | ||
const isSilly = this.isSilly({ debugIDs, onlyEnv }) | ||
const isSilly = this.isSilly({ debugIDs, onlyEnv }); | ||
return (msg) => { | ||
@@ -742,3 +743,3 @@ if (!isSilly) { | ||
} | ||
const pfx = `${cM}[${prefix}]${cG}`; | ||
const pfx = `${prefixColor}[${prefix}]${cG}`; | ||
this.info(pfx, msg); | ||
@@ -745,0 +746,0 @@ }; |
{ | ||
"name": "af-echo", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"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
26731
685