From 064f2eace3318bad0cbe980477a0fbafd7c1d1a6 Mon Sep 17 00:00:00 2001 From: leex Date: Tue, 16 May 2023 10:30:44 +0800 Subject: [PATCH 1/2] Update consola.ts --- src/consola.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/consola.ts b/src/consola.ts index 7e240eb9..28037d22 100644 --- a/src/consola.ts +++ b/src/consola.ts @@ -296,11 +296,10 @@ export class Consola { delete logObj.additional; } - // Normalize type and tag to lowercase + // Normalize type to lowercase logObj.type = ( typeof logObj.type === "string" ? logObj.type.toLowerCase() : "log" ) as LogType; - logObj.tag = typeof logObj.tag === "string" ? logObj.tag.toLowerCase() : ""; // Resolve log /** From 6600d1a31d4696e78be4842d41b5e5f24e8f4e85 Mon Sep 17 00:00:00 2001 From: leex Date: Tue, 16 May 2023 18:00:25 +0800 Subject: [PATCH 2/2] Update consola.ts --- src/consola.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/consola.ts b/src/consola.ts index 28037d22..8b127a0f 100644 --- a/src/consola.ts +++ b/src/consola.ts @@ -300,6 +300,7 @@ export class Consola { logObj.type = ( typeof logObj.type === "string" ? logObj.type.toLowerCase() : "log" ) as LogType; + logObj.tag = typeof logObj.tag === "string" ? logObj.tag : ""; // Resolve log /**