namirasoft-core
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -1,2 +0,2 @@ | ||
export declare class ConsoleColor { | ||
export declare class ConsoleOperation { | ||
static colors: { | ||
@@ -3,0 +3,0 @@ reset: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ConsoleColor = void 0; | ||
class ConsoleColor { | ||
exports.ConsoleOperation = void 0; | ||
class ConsoleOperation { | ||
static formatLogColor(message) { | ||
@@ -21,19 +21,19 @@ return (this.colors.white + message + this.colors.reset); | ||
static log(message) { | ||
console.log(ConsoleColor.formatLogColor(message)); | ||
console.log(ConsoleOperation.formatLogColor(message)); | ||
} | ||
static info(message) { | ||
console.info(ConsoleColor.formatInfoColor(message)); | ||
console.info(ConsoleOperation.formatInfoColor(message)); | ||
} | ||
static success(message) { | ||
console.info(ConsoleColor.formatSuccessColor(message)); | ||
console.info(ConsoleOperation.formatSuccessColor(message)); | ||
} | ||
static warning(message) { | ||
console.warn(ConsoleColor.formatWarningColor(message)); | ||
console.warn(ConsoleOperation.formatWarningColor(message)); | ||
} | ||
static error(message) { | ||
console.error(ConsoleColor.formatErrorColor(message)); | ||
console.error(ConsoleOperation.formatErrorColor(message)); | ||
} | ||
} | ||
exports.ConsoleColor = ConsoleColor; | ||
ConsoleColor.colors = { | ||
exports.ConsoleOperation = ConsoleOperation; | ||
ConsoleOperation.colors = { | ||
reset: '\x1b[0m', | ||
@@ -40,0 +40,0 @@ red: '\x1b[31m', |
@@ -11,3 +11,3 @@ { | ||
"private": false, | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"main": "./dist/index.js", | ||
@@ -14,0 +14,0 @@ "types": "./dist/index.d.ts", |
@@ -1,2 +0,2 @@ | ||
export class ConsoleColor | ||
export class ConsoleOperation | ||
{ | ||
@@ -35,20 +35,20 @@ public static colors = { | ||
{ | ||
console.log(ConsoleColor.formatLogColor(message)); | ||
console.log(ConsoleOperation.formatLogColor(message)); | ||
} | ||
static info(message: string) | ||
{ | ||
console.info(ConsoleColor.formatInfoColor(message)); | ||
console.info(ConsoleOperation.formatInfoColor(message)); | ||
} | ||
static success(message: string) | ||
{ | ||
console.info(ConsoleColor.formatSuccessColor(message)); | ||
console.info(ConsoleOperation.formatSuccessColor(message)); | ||
} | ||
static warning(message: string) | ||
{ | ||
console.warn(ConsoleColor.formatWarningColor(message)); | ||
console.warn(ConsoleOperation.formatWarningColor(message)); | ||
} | ||
static error(message: string) | ||
{ | ||
console.error(ConsoleColor.formatErrorColor(message)); | ||
console.error(ConsoleOperation.formatErrorColor(message)); | ||
} | ||
} |
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
299811