New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@antora/ui-loader

Package Overview
Dependencies
Maintainers
2
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antora/ui-loader - npm Package Compare versions

Comparing version 3.2.0-alpha.2 to 3.2.0-alpha.3

10

lib/load-ui.js

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

8

package.json
{
"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).
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