oberknecht-utils
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -8,5 +8,9 @@ function date_() { return new Date(new Date().setMinutes(new Date().getMinutes() - new Date().getTimezoneOffset())).toISOString().split("Z")[0].replace("T", " ") }; | ||
if (!global.logs.all) global.logs.all = {}; | ||
if(typeof logmsg === "string") { | ||
global.logs.all[Date.now()] = global.logs[logopt][Date.now()] = [logopt, logmsg?.replace(/\x1b\[[\w;]+m/g, ""), date_()]; | ||
if (typeof logmsg === "string") { | ||
if (global.logs) global.logs.all[Date.now()] = global.logs[logopt][Date.now()] = [logopt, logmsg?.replace(/\x1b\[[\w;]+m/g, ""), date_()]; | ||
}; | ||
if (!logmsg && logopt) { | ||
logmsg = logopt; | ||
logopt = 0; | ||
}; | ||
@@ -13,0 +17,0 @@ const logcolors = { "reset": "0", "bright": "1", "dim": "2", "underscore": "4", "blink": "5", "reverse": "7", "hidden": "8", "fgblack": "30", "fgred": "31", "fggreen": "32", "fgyellow": "33", "fgblue": "34", "fgmagenta": "35", "fgcyan": "36", "fgwhite": "37", "bgblack": "40", "bgred": "41", "bggreen": "42", "bgyellow": "43", "bgblue": "44", "bgmagenta": "45", "bgcyan": "46", "bgwhite": "47" }; |
{ | ||
"name": "oberknecht-utils", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "Utils for oberknecht packages", | ||
@@ -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
39821
438