namirasoft-core
Advanced tools
Comparing version 1.3.13 to 1.3.14
@@ -14,2 +14,4 @@ export declare class ConsoleOperation { | ||
static formatInfoColor(message: string): string; | ||
static formatTraceColor(message: string): string; | ||
static formatDebugColor(message: string): string; | ||
static formatSuccessColor(message: string): string; | ||
@@ -20,2 +22,4 @@ static formatWarningColor(message: string): string; | ||
static info(message: string): void; | ||
static trace(message: string): void; | ||
static debug(message: string): void; | ||
static success(message: string): void; | ||
@@ -22,0 +26,0 @@ static warning(message: string): void; |
@@ -11,2 +11,8 @@ "use strict"; | ||
} | ||
static formatTraceColor(message) { | ||
return (this.colors.blue + message + this.colors.reset); | ||
} | ||
static formatDebugColor(message) { | ||
return (this.colors.magenta + message + this.colors.reset); | ||
} | ||
static formatSuccessColor(message) { | ||
@@ -27,2 +33,8 @@ return (this.colors.green + message + this.colors.reset); | ||
} | ||
static trace(message) { | ||
console.trace(ConsoleOperation.formatTraceColor(message)); | ||
} | ||
static debug(message) { | ||
console.debug(ConsoleOperation.formatDebugColor(message)); | ||
} | ||
static success(message) { | ||
@@ -29,0 +41,0 @@ console.info(ConsoleOperation.formatSuccessColor(message)); |
@@ -11,3 +11,3 @@ { | ||
"private": false, | ||
"version": "1.3.13", | ||
"version": "1.3.14", | ||
"main": "./dist/index.js", | ||
@@ -14,0 +14,0 @@ "types": "./dist/index.d.ts", |
@@ -21,2 +21,10 @@ export class ConsoleOperation | ||
} | ||
static formatTraceColor(message: string) | ||
{ | ||
return (this.colors.blue + message + this.colors.reset); | ||
} | ||
static formatDebugColor(message: string) | ||
{ | ||
return (this.colors.magenta + message + this.colors.reset); | ||
} | ||
static formatSuccessColor(message: string) | ||
@@ -42,2 +50,10 @@ { | ||
} | ||
static trace(message: string) | ||
{ | ||
console.trace(ConsoleOperation.formatTraceColor(message)); | ||
} | ||
static debug(message: string) | ||
{ | ||
console.debug(ConsoleOperation.formatDebugColor(message)); | ||
} | ||
static success(message: string) | ||
@@ -44,0 +60,0 @@ { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
302911
3705