@tsed/logger
Advanced tools
Comparing version 6.1.2 to 6.1.3
@@ -38,4 +38,13 @@ "use strict"; | ||
} | ||
isMessage() { | ||
return this.data.length && typeof this.data[0] !== "object"; | ||
} | ||
getData() { | ||
return !this.isMessage() ? this.data[0] : {}; | ||
} | ||
getMessage() { | ||
return this.isMessage() ? this.data : undefined; | ||
} | ||
} | ||
exports.LogEvent = LogEvent; | ||
//# sourceMappingURL=LogEvent.js.map |
@@ -35,3 +35,12 @@ export class LogEvent { | ||
} | ||
isMessage() { | ||
return this.data.length && typeof this.data[0] !== "object"; | ||
} | ||
getData() { | ||
return !this.isMessage() ? this.data[0] : {}; | ||
} | ||
getMessage() { | ||
return this.isMessage() ? this.data : undefined; | ||
} | ||
} | ||
//# sourceMappingURL=LogEvent.js.map |
@@ -26,2 +26,5 @@ import { LogLevel } from "./LogLevel"; | ||
get pid(): any; | ||
isMessage(): boolean | 0; | ||
getData(): any; | ||
getMessage(): any[] | undefined; | ||
} |
{ | ||
"name": "@tsed/logger", | ||
"version": "6.1.2", | ||
"version": "6.1.3", | ||
"description": "A multi channel logger written in TypeScript.", | ||
@@ -5,0 +5,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
255747
3186