Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@antora/ui-loader

Package Overview
Dependencies
Maintainers
2
Versions
86
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 2.3.0-alpha.2 to 2.3.0-beta.1

4

lib/load-ui.js

@@ -136,5 +136,5 @@ 'use strict'

function downloadBundle (url, to) {
return get(url, { resolveBodyOnly: true, responseType: 'buffer' })
return get(url, { encoding: null })
.then(
(body) =>
({ body }) =>
new Promise((resolve, reject) =>

@@ -141,0 +141,0 @@ new ReadableFile(new MemoryFile({ path: ospath.basename(to), contents: body }))

@@ -24,4 +24,3 @@ 'use strict'

const accum = []
for (const entry of this[$files]) {
const candidate = entry[1]
for (const candidate of this[$files].values()) {
if (candidate.type === type) accum.push(candidate)

@@ -39,5 +38,5 @@ }

function generateKey ({ type, path }) {
return `${type}$${path}`
return type + '$' + path
}
module.exports = UiCatalog
{
"name": "@antora/ui-loader",
"version": "2.3.0-alpha.2",
"version": "2.3.0-beta.1",
"description": "Downloads a UI bundle, if necessary, and loads the files into a UI catalog for use in an Antora documentation pipeline.",

@@ -22,5 +22,5 @@ "license": "MPL-2.0",

"cache-directory": "~2.0",
"camelcase-keys": "~6.1",
"camelcase-keys": "~6.2",
"fs-extra": "~8.1",
"got": "~10.0",
"got": "~9.6",
"gulp-vinyl-zip": "~2.2",

@@ -27,0 +27,0 @@ "js-yaml": "~3.13",

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