Socket
Socket
Sign inDemoInstall

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.5 to 0.2.6

2

build/ar-data-create.js

@@ -30,3 +30,3 @@ "use strict";

data_length;
const bytes = Buffer.allocUnsafe(length);
const bytes = Buffer.alloc(length);
bytes.set(utils_1.shortTo2ByteArray(signer.signatureType), 0);

@@ -33,0 +33,0 @@ bytes.set(EMPTY_ARRAY, 2);

@@ -51,3 +51,3 @@ /// <reference types="node" />

};
sendToBundler(): Promise<AxiosResponse>;
sendToBundler(bundler?: string): Promise<AxiosResponse>;
static verify(buffer: Buffer): Promise<boolean>;

@@ -54,0 +54,0 @@ private getTagsStart;

@@ -136,3 +136,3 @@ "use strict";

}
async sendToBundler() {
async sendToBundler(bundler) {
const headers = {

@@ -143,3 +143,3 @@ "Content-Type": "application/octet-stream",

throw new Error("You must sign before sending to bundler");
return await axios_1.default.post(`${constants_1.BUNDLER}/tx`, this.getRaw(), {
return await axios_1.default.post(`${bundler ?? constants_1.BUNDLER}/tx`, this.getRaw(), {
headers,

@@ -146,0 +146,0 @@ timeout: 200000,

@@ -76,3 +76,2 @@ "use strict";

tx.addTag("Bundle-Version", "2.0.0");
await arweave.transactions.sign(tx, jwk);
return tx;

@@ -79,0 +78,0 @@ }

{
"name": "arbundles",
"version": "0.2.5",
"version": "0.2.6",
"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