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

logops

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logops - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

18

lib/formatters.js

@@ -22,3 +22,3 @@ /**

var util = require('util'),
colors = require('colors/safe'),
chalk = require('chalk'),
safeStringify = require('safe-json-stringify'),

@@ -78,15 +78,15 @@ serializeErr = require('serr'),

case 'DEBUG':
str = colors.grey(level);
str = chalk.grey(level);
break;
case 'INFO':
str = colors.blue(level) + ' '; // Pad to 5 chars
str = chalk.blue(level) + ' '; // Pad to 5 chars
break;
case 'WARN':
str = colors.yellow(level) + ' '; // Pad to 5 chars
str = chalk.yellow(level) + ' '; // Pad to 5 chars
break;
case 'ERROR':
str = colors.red(level);
str = chalk.red(level);
break;
case 'FATAL':
str = colors.red.bold(level);
str = chalk.red.bold(level);
break;

@@ -97,5 +97,5 @@ }

if (isErrorLoggingWithoutMessage) {
str += colorize(colors.gray, serializeErr(err).toString(printStack).substr(mainMessage.length));
str += colorize(chalk.gray, serializeErr(err).toString(printStack).substr(mainMessage.length));
} else if (err) {
str += '\n' + colorize(colors.gray, serializeErr(err).toString(printStack));
str += '\n' + colorize(chalk.gray, serializeErr(err).toString(printStack));
}

@@ -105,3 +105,3 @@

str += Object.keys(localContext).length ?
' ' + colorize(colors.gray, util.inspect(localContext)) :
' ' + colorize(chalk.gray, util.inspect(localContext)) :
'';

@@ -108,0 +108,0 @@

{
"name": "logops",
"description": "Simple and performant nodejs JSON logger",
"version": "2.1.1",
"version": "2.1.2",
"homepage": "https://github.com/telefonicaid/logops",

@@ -40,3 +40,3 @@ "license": "Apache-2.0",

"tslint-config-typings": "^0.3.1",
"typescript": "^2.0.3"
"typescript": "^4.5.4"
},

@@ -49,14 +49,7 @@ "keywords": [

"dependencies": {
"colors": "^1.1.2",
"chalk": "^4.1.2",
"lodash": "^4.17.15",
"safe-json-stringify": "^1.2.0",
"serr": "^1.0.1"
},
"contributors": [
"Juan Antonio Hernando Labajo <juanantonio.hernandolabajo@telefonica.com>",
"Guido García Bernardo <guido.garciabernardo@telefonica.com>",
"Germán Toro del Valle <german.torodelvalle@telefonica.com>",
"Daniel Morán Jiménez <daniel.moranjimenez@telefonica.com>",
"Juan de Bravo Diez <juande.bravodiez@telefonica.com>"
]
}
}
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