style: run format:apply

This commit is contained in:
2026-01-10 09:08:24 -03:00
parent aed1ee515a
commit bd66e7aa70
+7 -8
View File
@@ -23,9 +23,7 @@ function getCallerFrame(shift: number = 0): NodeJS.CallSite | undefined {
if (!loggedStack) return undefined; if (!loggedStack) return undefined;
if (shift > 0) if (shift > 0) for (let i = 0; i < shift; i++) loggedStack.shift();
for (let i = 0; i < shift; i++)
loggedStack.shift();
return loggedStack[1]; return loggedStack[1];
} }
@@ -34,10 +32,10 @@ function getCallerFrame(shift: number = 0): NodeJS.CallSite | undefined {
logger logger
*/ */
const LOG_TYPES = { const LOG_TYPES = {
Info: "[Info]".green, Info: '[Info]'.green,
Verbose: "[Verbose]".blue, Verbose: '[Verbose]'.blue,
Warning: "[Warning]".yellow, Warning: '[Warning]'.yellow,
Error: "[Error]".red, Error: '[Error]'.red
} as const; } as const;
export class Logger { export class Logger {
@@ -90,7 +88,8 @@ export class Logger {
} }
private getCallerInfo(caller: NodeJS.CallSite): string { private getCallerInfo(caller: NodeJS.CallSite): string {
const functionName = caller.getFunctionName()?.replace(/\[.*\]/, '') || '<anonymous>'; const functionName =
caller.getFunctionName()?.replace(/\[.*\]/, '') || '<anonymous>';
const fileName = caller.getFileName() || 'unknown'; const fileName = caller.getFileName() || 'unknown';
const relativePath = path.relative(process.cwd(), fileName); const relativePath = path.relative(process.cwd(), fileName);