Comparing version 2.1.1 to 2.1.2
@@ -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>" | ||
] | ||
} | ||
} |
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
50150
+ Addedchalk@^4.1.2
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedsupports-color@7.2.0(transitive)
- Removedcolors@^1.1.2
- Removedcolors@1.4.0(transitive)