@antora/logger
Advanced tools
Comparing version 3.2.0-alpha.2 to 3.2.0-alpha.3
@@ -153,3 +153,3 @@ 'use strict' | ||
}, | ||
ignore: 'hint', | ||
ignore: 'hint,hostname', // ignore hostname in case it's set on an error object | ||
messageFormat: (log, msgKey) => { | ||
@@ -181,3 +181,2 @@ let hint, msg | ||
if (msg === undefined) msg = message | ||
if (message && message === msg) err.message = undefined | ||
if ((stack = err.backtrace)) { | ||
@@ -193,4 +192,5 @@ stack = ['Error', ...stack.slice(1)].join('\n') | ||
if (prettyPrint) { | ||
const { message: _discard, ...flatErr } = prettyPrint(err) | ||
err = Object.assign(flatErr, { type: 'Error' }) | ||
delete (err = Object.assign(prettyPrint(err), { type: 'Error' })).message | ||
} else if (message && message === msg) { | ||
err.message = '' | ||
} | ||
@@ -197,0 +197,0 @@ return [err, msg] |
{ | ||
"name": "@antora/logger", | ||
"version": "3.2.0-alpha.2", | ||
"version": "3.2.0-alpha.3", | ||
"description": "The logger for Antora.", | ||
@@ -23,5 +23,5 @@ "license": "MPL-2.0", | ||
"@antora/expand-path-helper": "~2.0", | ||
"pino": "~8.7", | ||
"pino-pretty": "~9.1", | ||
"sonic-boom": "~3.2" | ||
"pino": "~8.14", | ||
"pino-pretty": "~10.0", | ||
"sonic-boom": "~3.3" | ||
}, | ||
@@ -45,5 +45,5 @@ "engines": { | ||
"test": "_mocha", | ||
"prepublishOnly": "node $npm_config_local_prefix/npm/prepublishOnly.js", | ||
"postpublish": "node $npm_config_local_prefix/npm/postpublish.js" | ||
"prepublishOnly": "npx -y downdoc@latest --prepublish", | ||
"postpublish": "npx -y downdoc@latest --postpublish" | ||
} | ||
} |
@@ -15,2 +15,2 @@ # Antora Logger | ||
Use of this software is granted under the terms of the [Mozilla Public License Version 2.0](https://www.mozilla.org/en-US/MPL/2.0/) (MPL-2.0). | ||
Use of this software is granted under the terms of the [Mozilla Public License Version 2.0](https://www.mozilla.org/en-US/MPL/2.0/) (MPL-2.0). |
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
13107
16
+ Addedpino@8.14.2(transitive)
+ Addedpino-pretty@10.0.1(transitive)
+ Addedsonic-boom@3.3.0(transitive)
- Removedpino@8.7.0(transitive)
- Removedpino-pretty@9.1.1(transitive)
- Removedsonic-boom@3.2.1(transitive)
Updatedpino@~8.14
Updatedpino-pretty@~10.0
Updatedsonic-boom@~3.3