From 4231d7e9c61e92b5b7b7c27ede921b148ea0fae3 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sun, 5 May 2024 11:54:59 +0700 Subject: [PATCH] Update logs --- src/modules/patcher.ts | 6 +++--- src/utils/bx-logger.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/patcher.ts b/src/modules/patcher.ts index b02456f..1bd854d 100644 --- a/src/modules/patcher.ts +++ b/src/modules/patcher.ts @@ -593,7 +593,7 @@ export class Patcher { let patchesToCheck: PatchArray; let appliedPatches: PatchArray; - const patchesMap: { [key: string]: PatchArray } = {}; + const patchesMap: Record = {}; for (let id in item[1]) { appliedPatches = []; @@ -637,7 +637,7 @@ export class Patcher { modified = true; str = patchedStr; - BxLogger.info(LOG_TAG, `Applied "${patchName}" patch`); + BxLogger.info(LOG_TAG, `✅ ${patchName}`); appliedPatches.push(patchName); // Remove patch @@ -727,7 +727,7 @@ export class PatcherCache { return PatcherCache.#CACHE[id]; } - static saveToCache(subCache: { [key: string]: PatchArray }) { + static saveToCache(subCache: Record) { for (const id in subCache) { const patchNames = subCache[id]; diff --git a/src/utils/bx-logger.ts b/src/utils/bx-logger.ts index f4ed28d..83da158 100644 --- a/src/utils/bx-logger.ts +++ b/src/utils/bx-logger.ts @@ -20,7 +20,7 @@ export class BxLogger { } static #log(color: TextColor, tag: string, ...args: any) { - console.log('%c' + BxLogger.#PREFIX, 'color:' + color + ';font-weight:bold;', tag, '-', ...args); + console.log(`%c${BxLogger.#PREFIX}`, `color:${color};font-weight:bold;`, tag, '//', ...args); } }