Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arbundles

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arbundles - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

14

file/FileDataItem.js

@@ -141,12 +141,5 @@ "use strict";

async rawAnchor() {
let anchorStart = 1027;
const handle = await fs.promises.open(this.filename, "r");
const targetPresentBuffer = await read(handle.fd, Buffer.allocUnsafe(1), 0, 1, 1026).then((r) => r.buffer);
const targetPresent = targetPresentBuffer[0] === 1;
if (targetPresent) {
anchorStart += 32;
}
const anchorPresentBuffer = await read(handle.fd, Buffer.allocUnsafe(1), 0, 1, anchorStart).then((r) => r.buffer);
const anchorPresent = anchorPresentBuffer[0] === 1;
const [anchorPresent, anchorStart] = await this.anchorStart();
if (anchorPresent) {
const handle = await fs.promises.open(this.filename, "r");
const anchorBuffer = await read(handle.fd, Buffer.allocUnsafe(32), 0, 32, anchorStart + 1).then((r) => r.buffer);

@@ -156,3 +149,2 @@ await handle.close();

}
await handle.close();
return Buffer.allocUnsafe(0);

@@ -234,3 +226,3 @@ }

let tagsStart = anchorStart;
tagsStart += anchorPresent ? 32 : 1;
tagsStart += anchorPresent ? 33 : 1;
return tagsStart;

@@ -237,0 +229,0 @@ }

{
"name": "arbundles",
"version": "0.2.2",
"version": "0.2.3",
"description": "Arweave bundling library",

@@ -5,0 +5,0 @@ "author": "Josh Benaron <joshbenaron@gmail.com>",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc