deps: update it-length-prefix, uint8arraylist etc (#1317)

In order to support no-copy operations in streams, update all deps
to support streaming Uint8ArrayLists.
This commit is contained in:
Alex Potsides
2022-08-03 14:15:35 +01:00
committed by GitHub
parent 05e8e7ead9
commit 564f4b8aa7
27 changed files with 69 additions and 58 deletions

View File

@ -28,7 +28,7 @@ export function streamToConsole(stream) {
// Decode length-prefixed data
lp.decode(),
// Turn buffers into strings
(source) => map(source, (buf) => uint8ArrayToString(buf)),
(source) => map(source, (buf) => uint8ArrayToString(buf.subarray())),
// Sink function
async function (source) {
// For each chunk of data