pino-pretty
Advanced tools
Comparing version 7.0.0 to 7.0.1
'use strict' | ||
const { options: coloretteOptions } = require('colorette') | ||
const { isColorSupported } = require('colorette') | ||
const pump = require('pump') | ||
@@ -32,3 +32,3 @@ const { Transform } = require('readable-stream') | ||
const defaultOptions = { | ||
colorize: coloretteOptions.enabled, | ||
colorize: isColorSupported, | ||
crlf: false, | ||
@@ -35,0 +35,0 @@ errorLikeObjectKeys: ERROR_LIKE_KEYS, |
@@ -18,13 +18,15 @@ 'use strict' | ||
const colorette = require('colorette') | ||
const { createColors } = require('colorette') | ||
const { white, bgRed, red, yellow, green, blue, gray, cyan } = createColors({ useColor: true }) | ||
const colored = { | ||
default: colorette.white, | ||
60: colorette.bgRed, | ||
50: colorette.red, | ||
40: colorette.yellow, | ||
30: colorette.green, | ||
20: colorette.blue, | ||
10: colorette.gray, | ||
message: colorette.cyan, | ||
greyMessage: colorette.gray | ||
default: white, | ||
60: bgRed, | ||
50: red, | ||
40: yellow, | ||
30: green, | ||
20: blue, | ||
10: gray, | ||
message: cyan, | ||
greyMessage: gray | ||
} | ||
@@ -31,0 +33,0 @@ |
{ | ||
"name": "pino-pretty", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"description": "Prettifier for Pino log lines", | ||
@@ -36,7 +36,7 @@ "type": "commonjs", | ||
"args": "^5.0.1", | ||
"colorette": "^1.3.0", | ||
"colorette": "^2.0.0", | ||
"dateformat": "^4.5.1", | ||
"fast-safe-stringify": "^2.0.7", | ||
"joycon": "^3.0.0", | ||
"pino-abstract-transport": "^0.2.0", | ||
"pino-abstract-transport": "^0.3.0", | ||
"pump": "^3.0.0", | ||
@@ -50,4 +50,4 @@ "readable-stream": "^3.6.0", | ||
"devDependencies": { | ||
"@types/node": "^16.0.0", | ||
"pino": "^6.0.0", | ||
"@types/node": "^16.9.2", | ||
"pino": "^6.13.2", | ||
"pre-commit": "^1.2.2", | ||
@@ -57,5 +57,5 @@ "rimraf": "^3.0.2", | ||
"standard": "^16.0.3", | ||
"tap": "^15.0.0", | ||
"tap": "^15.0.9", | ||
"tsd": "^0.17.0", | ||
"typescript": "^4.2.4" | ||
"typescript": "^4.4.3" | ||
}, | ||
@@ -62,0 +62,0 @@ "tsd": { |
@@ -135,3 +135,3 @@ <a id="intro"></a> | ||
{ | ||
colorize: colorette.options.enabled, // --colorize | ||
colorize: colorette.isColorSupported, // --colorize | ||
crlf: false, // --crlf | ||
@@ -154,3 +154,3 @@ errorLikeObjectKeys: ['err', 'error'], // --errorLikeObjectKeys | ||
The `colorize` default follows | ||
[`colorette.options.enabled`](https://github.com/jorgebucaran/colorette#optionsenabled). | ||
[`colorette.isColorSupported`](https://github.com/jorgebucaran/colorette#iscolorsupported). | ||
@@ -157,0 +157,0 @@ `customPrettifiers` option provides the ability to add a custom prettify function |
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
296728
2928
+ Addedcolorette@2.0.20(transitive)
+ Addedpino-abstract-transport@0.3.0(transitive)
- Removedcolorette@1.4.0(transitive)
- Removedpino-abstract-transport@0.2.0(transitive)
Updatedcolorette@^2.0.0