@antora/ui-loader
Advanced tools
Comparing version 2.3.0-alpha.2 to 2.3.0-beta.1
@@ -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", |
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
15408
390
+ Added@sindresorhus/is@0.14.0(transitive)
+ Added@szmarczak/http-timer@1.1.2(transitive)
+ Addedcacheable-request@6.1.0(transitive)
+ Addedcamelcase-keys@6.2.2(transitive)
+ Addeddecompress-response@3.3.0(transitive)
+ Addedget-stream@4.1.0(transitive)
+ Addedgot@9.6.0(transitive)
+ Addedjson-buffer@3.0.0(transitive)
+ Addedkeyv@3.1.0(transitive)
+ Addedlowercase-keys@1.0.1(transitive)
+ Addednormalize-url@4.5.1(transitive)
+ Addedp-cancelable@1.1.0(transitive)
+ Addedprepend-http@2.0.0(transitive)
+ Addedresponselike@1.0.2(transitive)
+ Addedto-readable-stream@1.0.0(transitive)
+ Addedurl-parse-lax@3.0.0(transitive)
- Removed@sindresorhus/is@1.2.0(transitive)
- Removed@szmarczak/http-timer@3.1.1(transitive)
- Removed@types/cacheable-request@6.0.3(transitive)
- Removed@types/http-cache-semantics@4.0.4(transitive)
- Removed@types/keyv@3.1.4(transitive)
- Removed@types/node@22.10.0(transitive)
- Removed@types/responselike@1.0.3(transitive)
- Removedcacheable-lookup@0.2.2(transitive)
- Removedcacheable-request@7.0.4(transitive)
- Removedcamelcase-keys@6.1.2(transitive)
- Removeddecompress-response@5.0.0(transitive)
- Removedgot@10.0.4(transitive)
- Removedjson-buffer@3.0.1(transitive)
- Removedkeyv@4.5.4(transitive)
- Removedmimic-response@2.1.0(transitive)
- Removednormalize-url@6.1.0(transitive)
- Removedp-cancelable@2.1.1(transitive)
- Removedresponselike@2.0.1(transitive)
- Removedto-readable-stream@2.1.0(transitive)
- Removedtype-fest@0.8.1(transitive)
- Removedundici-types@6.20.0(transitive)
Updatedcamelcase-keys@~6.2
Updatedgot@~9.6