mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-19 20:21:22 +00:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user