arbundles
Advanced tools
Comparing version 0.5.3 to 0.5.5
{ | ||
"name": "arbundles", | ||
"version": "0.5.3", | ||
"version": "0.5.5", | ||
"description": "Arweave bundling library", | ||
@@ -5,0 +5,0 @@ "author": "Josh Benaron <joshbenaron@gmail.com>", |
@@ -96,4 +96,2 @@ "use strict"; | ||
bytes = bytes.subarray(8); | ||
console.log(bytes.length); | ||
console.log(tagsBytesLength); | ||
bytes = await hasEnough(reader, bytes, tagsBytesLength); | ||
@@ -178,7 +176,9 @@ const tagsBytes = bytes.subarray(0, tagsBytesLength); | ||
return buffer; | ||
const next = (await reader.next()).value; | ||
if (next) | ||
let next = (await reader.next()).value; | ||
while (next) { | ||
buffer = Buffer.concat([buffer, next]); | ||
if (buffer.byteLength >= length) | ||
return buffer; | ||
if (buffer.byteLength >= length) | ||
return buffer; | ||
next = (await reader.next()).value; | ||
} | ||
throw new Error("Bundle stream not valid"); | ||
@@ -185,0 +185,0 @@ } |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
123905