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

@antora/logger

Package Overview
Dependencies
Maintainers
2
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antora/logger - npm Package Compare versions

Comparing version 3.0.0-rc.2 to 3.0.0-rc.3

14

lib/logger.js

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