Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

color-loggers

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

color-loggers - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

3

lib/index.d.ts

@@ -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);

2

package.json
{
"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('👉');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc