@antora/content-aggregator
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -15,14 +15,8 @@ 'use strict' | ||
const buffers = [] | ||
let offset = 0 | ||
let size = 0 | ||
let totalLength = 0 | ||
for await (const chunk of data) { | ||
buffers.push(chunk) | ||
size += chunk.byteLength | ||
totalLength += chunk.byteLength | ||
} | ||
data = new Uint8Array(size) | ||
for (const buffer of buffers) { | ||
data.set(buffer, offset) | ||
offset += buffer.byteLength | ||
} | ||
return Buffer.from(data.buffer) | ||
return Buffer.concat(buffers, totalLength) | ||
} | ||
@@ -29,0 +23,0 @@ |
{ | ||
"name": "@antora/content-aggregator", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Fetches and aggregates content from distributed sources for use in an Antora documentation pipeline.", | ||
@@ -19,5 +19,2 @@ "license": "MPL-2.0", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"test": "_mocha" | ||
}, | ||
"dependencies": { | ||
@@ -56,3 +53,7 @@ "@antora/expand-path-helper": "~2.0", | ||
], | ||
"gitHead": "e8e6f6ba33b1ab3f796907b5a256893a64844cd1" | ||
"scripts": { | ||
"test": "_mocha", | ||
"prepublishOnly": "node $npm_config_local_prefix/npm/prepublishOnly.js", | ||
"postpublish": "node $npm_config_local_prefix/npm/postpublish.js" | ||
} | ||
} |
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
62529
15
1419