@antora/file-publisher
Advanced tools
Comparing version 3.2.0-alpha.3 to 3.2.0-alpha.4
'use strict' | ||
const { inspect } = require('util') | ||
const ReadableOutputFileArray = require('./readable-output-file-array') | ||
@@ -57,5 +58,5 @@ const userRequire = require('@antora/user-require-helper') | ||
} catch (err) { | ||
const prettyErr = new Error('Unsupported destination provider: ' + provider) | ||
prettyErr.stack += `\nCaused by: ${err.stack || err}` | ||
throw prettyErr | ||
const errWrapper = new Error(`Unsupported destination provider: ${provider}`) | ||
errWrapper.stack += `\nCaused by: ${err.stack ? inspect(err).replace(/^Error \[(.+)\](?=: )/, '$1') : err}` | ||
throw errWrapper | ||
} | ||
@@ -93,3 +94,2 @@ } | ||
} | ||
return destinations | ||
@@ -96,0 +96,0 @@ } |
{ | ||
"name": "@antora/file-publisher", | ||
"version": "3.2.0-alpha.3", | ||
"version": "3.2.0-alpha.4", | ||
"description": "Publishes the publishable files in the virtual file catalog(s) to the destination(s) specified in the playbook.", | ||
@@ -5,0 +5,0 @@ "license": "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
10884
196