@antora/ui-loader
Advanced tools
Comparing version 3.2.0-alpha.2 to 3.2.0-alpha.3
@@ -20,3 +20,3 @@ 'use strict' | ||
const yaml = require('js-yaml') | ||
const vzip = require('gulp-vinyl-zip') | ||
const vzip = require('@vscode/gulp-vinyl-zip') | ||
@@ -179,3 +179,3 @@ const STATIC_FILE_MATCHER_OPTS = { | ||
get({ url, agent }, (err, response, contents) => { | ||
if (err) reject(err) | ||
if (err) return reject(err) | ||
if (response.statusCode !== 200) { | ||
@@ -199,4 +199,6 @@ const message = `Response code ${response.statusCode} (${response.statusMessage})` | ||
const errWrapper = new Error(`${err.summary || 'Failed to download UI bundle'}: ${url}`) | ||
errWrapper.stack += `\nCaused by: ${err.stack || 'unknown'}` | ||
throw errWrapper | ||
if (err.code === 'ECONNRESET' || (err.message || '').toLowerCase() === 'request timed out') { | ||
errWrapper.recoverable = true | ||
} | ||
throw Object.assign(errWrapper, { stack: `${errWrapper.stack}\nCaused by: ${err.stack || 'unknown'}` }) | ||
}) | ||
@@ -203,0 +205,0 @@ } |
{ | ||
"name": "@antora/ui-loader", | ||
"version": "3.2.0-alpha.2", | ||
"version": "3.2.0-alpha.3", | ||
"description": "Downloads a UI bundle, if necessary, and loads the files into a UI catalog for use in an Antora documentation pipeline.", | ||
@@ -29,6 +29,6 @@ "license": "MPL-2.0", | ||
"@antora/expand-path-helper": "~2.0", | ||
"@vscode/gulp-vinyl-zip": "~2.5", | ||
"braces": "~3.0", | ||
"cache-directory": "~2.0", | ||
"glob-stream": "~7.0", | ||
"gulp-vinyl-zip": "~2.5", | ||
"hpagent": "~1.2", | ||
@@ -58,5 +58,5 @@ "js-yaml": "~4.1", | ||
"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" | ||
} | ||
} |
@@ -13,2 +13,2 @@ # Antora UI Loader | ||
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). |
21418
488
14
+ Added@vscode/gulp-vinyl-zip@~2.5
+ Added@vscode/gulp-vinyl-zip@2.5.0(transitive)
- Removedgulp-vinyl-zip@~2.5
- Removedgulp-vinyl-zip@2.5.0(transitive)