2023.07.08

This commit is contained in:
killerboss 2023-07-08 16:15:00 +02:00
parent da6997f0ab
commit f504f4a612
2 changed files with 11 additions and 11 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "node-cout", "name": "node-cout",
"version": "2023.06.22", "version": "2023.07.08",
"description": "Standard output module for JavaScript / TypeScript", "description": "Standard output module for JavaScript / TypeScript",
"main": "build/index.js", "main": "build/index.js",
"types": "build/index.d.ts", "types": "build/index.d.ts",

View file

@ -75,25 +75,25 @@ export class cout {
}) })
} }
debug(string: string, level?: number) { debug(string: any, level?: number) {
if (this.debugLevel >= (level || 0)) { if (this.debugLevel >= (level || 0)) {
this.l(string, "DEBUG") this.l(String(string), "DEBUG")
} }
} }
log(string: string) { log(string: any) {
this.l(string, "LOG"); this.l(String(string), "LOG");
} }
info(string: string) { info(string: any) {
this.l(string, "INFO"); this.l(String(string), "INFO");
} }
warn(string: string) { warn(string: any) {
this.l(string, "WARN"); this.l(String(string), "WARN");
} }
error(string: string) { error(string: any) {
this.l(string, "ERROR"); this.l(String(string), "ERROR");
} }
} }