Socket
Socket
Sign inDemoInstall

loggerhythm

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loggerhythm - npm Package Compare versions

Comparing version 3.0.4 to 3.0.5-feature-1

5

dist/amd/loggerhythm.js

@@ -6,2 +6,3 @@ define(["require", "exports", "chalk", "util", "./interfaces"], function (require, exports, chalk_1, util, interfaces_1) {

let stderrWrite = console.log;
let devNullWrite;
const stdPipesAreAvaliable = process !== undefined &&

@@ -30,2 +31,4 @@ process.stdout !== undefined &&

};
devNullWrite = (prefix, message, ...logObjects) => {
};
}

@@ -37,3 +40,3 @@ const namespaceColorBaseHue = 180;

[interfaces_1.LogLevel.INFO]: { colorFunction: chalk_1.default.rgb(0, 143, 219), logFunction: stdoutWrite },
[interfaces_1.LogLevel.VERBOSE]: { colorFunction: chalk_1.default.gray, logFunction: stdoutWrite },
[interfaces_1.LogLevel.VERBOSE]: { colorFunction: chalk_1.default.gray, logFunction: devNullWrite },
};

@@ -40,0 +43,0 @@ const subscribers = [];

@@ -8,2 +8,3 @@ "use strict";

let stderrWrite = console.log;
let devNullWrite;
const stdPipesAreAvaliable = process !== undefined &&

@@ -32,2 +33,4 @@ process.stdout !== undefined &&

};
devNullWrite = (prefix, message, ...logObjects) => {
};
}

@@ -39,3 +42,3 @@ const namespaceColorBaseHue = 180;

[interfaces_1.LogLevel.INFO]: { colorFunction: chalk_1.default.rgb(0, 143, 219), logFunction: stdoutWrite },
[interfaces_1.LogLevel.VERBOSE]: { colorFunction: chalk_1.default.gray, logFunction: stdoutWrite },
[interfaces_1.LogLevel.VERBOSE]: { colorFunction: chalk_1.default.gray, logFunction: devNullWrite },
};

@@ -42,0 +45,0 @@ const subscribers = [];

2

package.json
{
"name": "loggerhythm",
"version": "3.0.4",
"version": "3.0.5-feature-1",
"description": "wrapper for winston to use it like debug with namespaces",

@@ -5,0 +5,0 @@ "publicConfig": {

@@ -9,6 +9,7 @@ import {Chalk, default as chalk} from 'chalk';

let stderrWrite: ILogFunction = console.log;
let devNullWrite: ILogFunction;
const stdPipesAreAvaliable: boolean = process !== undefined &&
process.stdout !== undefined &&
process.stderr !== undefined;
process.stdout !== undefined &&
process.stderr !== undefined;
if (stdPipesAreAvaliable) {

@@ -47,2 +48,6 @@ const inspectOptions: any = {depth: null, colors: true};

};
devNullWrite = (prefix: string, message: string, ...logObjects: Array<any>): void => {
};
}

@@ -55,3 +60,3 @@

[LogLevel.INFO]: {colorFunction: chalk.rgb(0, 143, 219), logFunction: stdoutWrite},
[LogLevel.VERBOSE]: {colorFunction: chalk.gray, logFunction: stdoutWrite},
[LogLevel.VERBOSE]: {colorFunction: chalk.gray, logFunction: devNullWrite},
};

@@ -58,0 +63,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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