color-loggers
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -19,2 +19,5 @@ type Prefix = string | (() => string); | ||
} | ||
export declare class Yellow extends Color { | ||
constructor(prefix?: Prefix); | ||
} | ||
export declare class Black extends Color { | ||
@@ -21,0 +24,0 @@ constructor(prefix?: Prefix); |
@@ -18,3 +18,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.White = exports.Black = exports.Red = exports.Green = exports.Blue = exports.Color = void 0; | ||
exports.White = exports.Black = exports.Yellow = exports.Red = exports.Green = exports.Blue = exports.Color = void 0; | ||
var styles_1 = require("./styles"); | ||
@@ -70,2 +70,11 @@ var Color = /** @class */ (function () { | ||
exports.Red = Red; | ||
var Yellow = /** @class */ (function (_super) { | ||
__extends(Yellow, _super); | ||
function Yellow(prefix) { | ||
if (prefix === void 0) { prefix = '[Warn]:'; } | ||
return _super.call(this, styles_1.default.FgYellow, prefix) || this; | ||
} | ||
return Yellow; | ||
}(Color)); | ||
exports.Yellow = Yellow; | ||
var Black = /** @class */ (function (_super) { | ||
@@ -72,0 +81,0 @@ __extends(Black, _super); |
{ | ||
"name": "color-loggers", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -48,2 +48,8 @@ import Styles from './styles'; | ||
export class Yellow extends Color { | ||
public constructor(prefix: Prefix = '[Warn]:') { | ||
super(Styles.FgYellow, prefix); | ||
} | ||
} | ||
export class Black extends Color { | ||
@@ -50,0 +56,0 @@ public constructor(prefix: Prefix = '') { |
@@ -1,2 +0,2 @@ | ||
import { Blue, Green, Red, Color } from './index'; | ||
import { Blue, Green, Red, Color, Yellow } from './index'; | ||
import Styles from './styles'; | ||
@@ -7,2 +7,3 @@ | ||
const error = new Red(); | ||
const warn = new Yellow(); | ||
@@ -12,2 +13,3 @@ info.log('This is an information.'); | ||
error.log('Something is wrong!'); | ||
warn.log('Be careful!'); | ||
@@ -14,0 +16,0 @@ const info2 = new Blue('👉'); |
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
55696
303