From d209a9ba770a4e939726e80731c08a4bc00c6202 Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Tue, 19 Dec 2023 14:09:34 +0330 Subject: [PATCH] fix(logger): styleScope.replace in createLogger function --- packages/logger/src/logger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/logger/src/logger.ts b/packages/logger/src/logger.ts index 32e94dc..bc22eba 100644 --- a/packages/logger/src/logger.ts +++ b/packages/logger/src/logger.ts @@ -66,7 +66,7 @@ const _sanitizeDomain = (domain: string): string => { */ export const createLogger = (domain: string, devMode = DEV_MODE): AlwatrLogger => { const color = _getNextColor(); - const styleScope = _style.scope.replaceAll('{{color}}', color); + const styleScope = _style.scope.replace('{{color}}', color); domain = _sanitizeDomain(domain); /**