loggerhythm
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -1,2 +0,2 @@ | ||
define(["require", "exports", "chalk", "util", "./interfaces"], function (require, exports, chalk, util, interfaces_1) { | ||
define(["require", "exports", "chalk", "util", "./interfaces"], function (require, exports, chalk_1, util, interfaces_1) { | ||
"use strict"; | ||
@@ -30,8 +30,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
} | ||
const namespaceColorFunction = chalk.cyan; | ||
const namespaceColorFunction = chalk_1.default.cyan; | ||
const logSettings = { | ||
[interfaces_1.LogLevel.ERROR]: { colorFunction: chalk.red, logFunction: stderrWrite }, | ||
[interfaces_1.LogLevel.WARN]: { colorFunction: chalk.yellow, logFunction: stdoutWrite }, | ||
[interfaces_1.LogLevel.INFO]: { colorFunction: chalk.blue, logFunction: stdoutWrite }, | ||
[interfaces_1.LogLevel.VERBOSE]: { colorFunction: chalk.gray, logFunction: stdoutWrite }, | ||
[interfaces_1.LogLevel.ERROR]: { colorFunction: chalk_1.default.red, logFunction: stderrWrite }, | ||
[interfaces_1.LogLevel.WARN]: { colorFunction: chalk_1.default.yellow, logFunction: stdoutWrite }, | ||
[interfaces_1.LogLevel.INFO]: { colorFunction: chalk_1.default.blue, logFunction: stdoutWrite }, | ||
[interfaces_1.LogLevel.VERBOSE]: { colorFunction: chalk_1.default.gray, logFunction: stdoutWrite }, | ||
}; | ||
@@ -38,0 +38,0 @@ const subscribers = []; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const chalk = require("chalk"); | ||
const chalk_1 = require("chalk"); | ||
const util = require("util"); | ||
@@ -32,8 +32,8 @@ const interfaces_1 = require("./interfaces"); | ||
} | ||
const namespaceColorFunction = chalk.cyan; | ||
const namespaceColorFunction = chalk_1.default.cyan; | ||
const logSettings = { | ||
[interfaces_1.LogLevel.ERROR]: { colorFunction: chalk.red, logFunction: stderrWrite }, | ||
[interfaces_1.LogLevel.WARN]: { colorFunction: chalk.yellow, logFunction: stdoutWrite }, | ||
[interfaces_1.LogLevel.INFO]: { colorFunction: chalk.blue, logFunction: stdoutWrite }, | ||
[interfaces_1.LogLevel.VERBOSE]: { colorFunction: chalk.gray, logFunction: stdoutWrite }, | ||
[interfaces_1.LogLevel.ERROR]: { colorFunction: chalk_1.default.red, logFunction: stderrWrite }, | ||
[interfaces_1.LogLevel.WARN]: { colorFunction: chalk_1.default.yellow, logFunction: stdoutWrite }, | ||
[interfaces_1.LogLevel.INFO]: { colorFunction: chalk_1.default.blue, logFunction: stdoutWrite }, | ||
[interfaces_1.LogLevel.VERBOSE]: { colorFunction: chalk_1.default.gray, logFunction: stdoutWrite }, | ||
}; | ||
@@ -40,0 +40,0 @@ const subscribers = []; |
@@ -1,3 +0,2 @@ | ||
/// <reference types="chalk" /> | ||
import * as chalk from 'chalk'; | ||
import { Chalk } from 'chalk'; | ||
export declare enum LogLevel { | ||
@@ -20,5 +19,5 @@ ERROR = "error", | ||
[loglevel: string]: { | ||
colorFunction: chalk.ChalkChain; | ||
colorFunction: Chalk; | ||
logFunction: ILogFunction; | ||
}; | ||
} |
{ | ||
"name": "loggerhythm", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "wrapper for winston to use it like debug with namespaces", | ||
@@ -48,3 +48,2 @@ "publicConfig": { | ||
"devDependencies": { | ||
"@types/chalk": "^0.4.31", | ||
"benchmark": "^2.1.4", | ||
@@ -51,0 +50,0 @@ "gulp": "^3.9.1", |
@@ -1,2 +0,2 @@ | ||
import * as chalk from 'chalk'; | ||
import {Chalk, default as chalk} from 'chalk'; | ||
@@ -24,4 +24,4 @@ export enum LogLevel { | ||
[loglevel: string]: { | ||
colorFunction: chalk.ChalkChain, logFunction: ILogFunction, | ||
colorFunction: Chalk, logFunction: ILogFunction, | ||
}; | ||
} |
@@ -1,2 +0,2 @@ | ||
import * as chalk from 'chalk'; | ||
import {Chalk, default as chalk} from 'chalk'; | ||
import * as util from 'util'; | ||
@@ -48,3 +48,3 @@ | ||
const namespaceColorFunction: chalk.ChalkChain = chalk.cyan; | ||
const namespaceColorFunction: Chalk = chalk.cyan; | ||
const logSettings: ILogSettings = { | ||
@@ -51,0 +51,0 @@ [LogLevel.ERROR]: {colorFunction: chalk.red, logFunction: stderrWrite}, |
Sorry, the diff of this file is not supported yet
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
30674
10
406