Comparing version 0.2.5 to 0.2.6
@@ -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>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90203
1940