diff --git a/package.json b/package.json index 157d059..2fc6e0f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-cout", - "version": "2023.06.22", + "version": "2023.07.08", "description": "Standard output module for JavaScript / TypeScript", "main": "build/index.js", "types": "build/index.d.ts", diff --git a/src/index.ts b/src/index.ts index 8005307..aa99f9c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -75,25 +75,25 @@ export class cout { }) } - debug(string: string, level?: number) { + debug(string: any, level?: number) { if (this.debugLevel >= (level || 0)) { - this.l(string, "DEBUG") + this.l(String(string), "DEBUG") } } - log(string: string) { - this.l(string, "LOG"); + log(string: any) { + this.l(String(string), "LOG"); } - info(string: string) { - this.l(string, "INFO"); + info(string: any) { + this.l(String(string), "INFO"); } - warn(string: string) { - this.l(string, "WARN"); + warn(string: any) { + this.l(String(string), "WARN"); } - error(string: string) { - this.l(string, "ERROR"); + error(string: any) { + this.l(String(string), "ERROR"); } } \ No newline at end of file