Fixing error

This commit is contained in:
Fabian Stamm 2020-03-01 15:21:17 +01:00
parent d2da8da690
commit 675ec50139
3 changed files with 248 additions and 2028 deletions

2262
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@hibas123/logging",
"version": "2.1.2",
"version": "2.1.4",
"description": "",
"main": "out/index.js",
"types": "out/index.d.ts",
@ -25,11 +25,11 @@
"readme.md"
],
"devDependencies": {
"concurrently": "^5.0.0",
"nodemon": "^1.19.4",
"typescript": "^3.7.2"
"concurrently": "^5.1.0",
"nodemon": "^2.0.2",
"typescript": "^3.8.3"
},
"dependencies": {
"@hibas123/utils": "^2.1.1"
"@hibas123/utils": "^2.2.3"
}
}

View File

@ -215,7 +215,7 @@ export class LoggingBase {
message.forEach((e, i) => {
let formats: Format[] = [];
if (typeof e !== "string") {
if (typeof e === "object") {
if (e && typeof e === "object") {
if (e[colorSymbol]) {
formats.push({
type: FormatTypes.COLOR,