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

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.3 to 3.0.4-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

dist/interfaces.d.ts

@@ -6,3 +6,3 @@ import { Chalk } from 'chalk';

INFO = "info",
VERBOSE = "verbose",
VERBOSE = "verbose"
}

@@ -9,0 +9,0 @@ export interface ILogFunction {

@@ -17,3 +17,3 @@ import { ILoggerhythmHook, ILoggerSubscription } from './interfaces';

verbose(message: string, ...logObjects: Array<any>): void;
private _log(logLevel, message, ...logObjects);
private _log;
}
{
"name": "loggerhythm",
"version": "3.0.3",
"version": "3.0.4-feature-1",
"description": "wrapper for winston to use it like debug with namespaces",

@@ -28,2 +28,6 @@ "publicConfig": {

{
"name": "Christian Werner",
"email": "christian.werner@5Minds.de"
},
{
"name": "Martin Moellenbeck",

@@ -49,13 +53,14 @@ "email": "martin.moellenbeck@5Minds.de"

"devDependencies": {
"@types/node": "^10.0.0",
"benchmark": "^2.1.4",
"gulp": "^3.9.1",
"gulptraum": "^2.2.2",
"gulptraum-typescript": "^1.3.3",
"mocha": "^3.0.2",
"should": "^11.1.0",
"gulp": "^4.0.0",
"gulptraum": "^3.1.0",
"gulptraum-typescript": "^3.0.0",
"mocha": "^5.2.0",
"should": "^13.2.3",
"tsconfig": "^7.0.0",
"tslint": "^5.7.0",
"tslint-eslint-config-5minds": "^1.0.2",
"typescript": "^2.5.2"
"typescript": "^3.3.0"
}
}

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