@antora/ui-loader 3.1.12 → 3.1.13

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 +2 -2
  2. package/package.json +1 -1
package/lib/load-ui.js CHANGED
@@ -329,8 +329,8 @@ function srcFs (cwd) {
329
329
  }
330
330
 
331
331
  function srcZip (file, options = {}) {
332
- const result = options.testOnly // is it necessary to close streams in this case, or just sink()?
333
- ? forEach((file_, _, done) => (file_.isStream() ? file_.contents.on('close', done).destroy() : done()))
332
+ const result = options.testOnly
333
+ ? forEach((file_, _, done) => (file_.isStream() ? file_.contents.pipe(through()).on('finish', done) : done()))
334
334
  : through()
335
335
  yauzl[file instanceof Buffer ? 'fromBuffer' : 'open'](file, { lazyEntries: true }, (err, zipFile) => {
336
336
  if (err) return result.emit('error', err)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antora/ui-loader",
3
- "version": "3.1.12",
3
+ "version": "3.1.13",
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)",