@antora/ui-loader 3.1.2 → 3.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/load-ui.js +1 -1
  2. package/package.json +4 -4
package/lib/load-ui.js CHANGED
@@ -175,7 +175,7 @@ function createAgent (url, { httpProxy, httpsProxy, noProxy }) {
175
175
  function downloadBundle (url, to, agent) {
176
176
  return new Promise((resolve, reject) => {
177
177
  get({ url, agent }, (err, response, contents) => {
178
- if (err) reject(err)
178
+ if (err) return reject(err)
179
179
  if (response.statusCode !== 200) {
180
180
  const message = `Response code ${response.statusCode} (${response.statusMessage})`
181
181
  return reject(Object.assign(new Error(message), { name: 'HTTPError' }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antora/ui-loader",
3
- "version": "3.1.2",
3
+ "version": "3.1.4",
4
4
  "description": "Downloads a UI bundle, if necessary, and loads the files into a UI catalog for use in an Antora documentation pipeline.",
5
5
  "license": "MPL-2.0",
6
6
  "author": "OpenDevise Inc. (https://opendevise.com)",
@@ -30,7 +30,7 @@
30
30
  "cache-directory": "~2.0",
31
31
  "glob-stream": "~7.0",
32
32
  "gulp-vinyl-zip": "~2.5",
33
- "hpagent": "~1.1",
33
+ "hpagent": "~1.2",
34
34
  "js-yaml": "~4.1",
35
35
  "picomatch": "~2.3",
36
36
  "should-proxy": "~1.0",
@@ -54,7 +54,7 @@
54
54
  ],
55
55
  "scripts": {
56
56
  "test": "_mocha",
57
- "prepublishOnly": "node $npm_config_local_prefix/npm/prepublishOnly.js",
58
- "postpublish": "node $npm_config_local_prefix/npm/postpublish.js"
57
+ "prepublishOnly": "npx -y downdoc --prepublish",
58
+ "postpublish": "npx -y downdoc --postpublish"
59
59
  }
60
60
  }