@antora/logger
Advanced tools
Comparing version 3.0.0-rc.2 to 3.0.0-rc.3
@@ -78,3 +78,3 @@ 'use strict' | ||
: (logger = pino(config, destination)) | ||
temperDestination(destination) | ||
if (destination instanceof SonicBoom) moderateDestination(destination) | ||
} | ||
@@ -115,4 +115,3 @@ rootLoggerHolder.set(undefined, addFailOnExitHooks(logger, failureLevel)) | ||
function createPrettyDestination (destination, colorize) { | ||
const end = destination.end | ||
const prettyDestination = pinoPretty({ | ||
return pinoPretty({ | ||
destination, | ||
@@ -158,9 +157,8 @@ colorize, | ||
}) | ||
destination.end = end // workaround; see https://github.com/pinojs/pino-pretty/issues/279 | ||
return prettyDestination | ||
} | ||
function temperDestination (destination) { | ||
if (destination instanceof SonicBoom && !destination.listeners('error').find((l) => l.name === 'filterBrokenPipe')) { | ||
destination.on('error', function disconnectBrokenPipe (err) { | ||
function moderateDestination (dest) { | ||
dest.flushSync = undefined // pino's fatal handler wants to call this, but we do our own flushing | ||
if (dest.fd === standardStreams[dest.fd] && !dest.listeners('error').find((l) => l.name === 'filterBrokenPipe')) { | ||
dest.on('error', function disconnectBrokenPipe (err) { | ||
if (err.code === 'EPIPE') return Object.assign(this, { destroyed: true, write: () => undefined }) | ||
@@ -167,0 +165,0 @@ this.removeListener('error', disconnectBrokenPipe).emit('error', err) |
{ | ||
"name": "@antora/logger", | ||
"version": "3.0.0-rc.2", | ||
"version": "3.0.0-rc.3", | ||
"description": "The logger for Antora.", | ||
@@ -22,4 +22,4 @@ "license": "MPL-2.0", | ||
"@antora/expand-path-helper": "~2.0", | ||
"pino": "~7.5", | ||
"pino-pretty": "~7.2", | ||
"pino": "~7.6", | ||
"pino-pretty": "~7.3", | ||
"sonic-boom": "~2.4" | ||
@@ -42,3 +42,3 @@ }, | ||
], | ||
"gitHead": "b64861391b7e55ea31fcecce4490b9cc02fec1c7" | ||
"gitHead": "f3b3cbb4a08640bbcf55e685929409e20b186634" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
29402
262
1
+ Addedpino@7.6.5(transitive)
+ Addedpino-pretty@7.3.0(transitive)
+ Addedprocess-warning@1.0.0(transitive)
- Removedfastify-warning@0.2.0(transitive)
- Removedget-caller-file@2.0.5(transitive)
- Removedpino@7.5.1(transitive)
- Removedpino-pretty@7.2.0(transitive)
Updatedpino@~7.6
Updatedpino-pretty@~7.3