🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

arweave

Package Overview
Dependencies
Maintainers
5
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arweave - npm Package Compare versions

Comparing version

to
1.14.0

3

node/lib/crypto/node-driver.js

@@ -81,2 +81,5 @@ "use strict";

hash(data, algorithm = "SHA-256") {
if (typeof data === "string") {
throw new TypeError("Data must be a Uint8Array");
}
return new Promise((resolve, reject) => {

@@ -83,0 +86,0 @@ resolve(crypto

2

package.json
{
"name": "arweave",
"version": "1.13.8",
"version": "1.14.0",
"description": "Arweave JS client library",

@@ -5,0 +5,0 @@ "main": "./node/index.js",

@@ -191,3 +191,3 @@ # Arweave JS

If you don't pass in a `key` argument when creating a transaction, Arweave.js will attempt to use a browser-based wallet extension, such as [ArConnect](https://arconnect.io) or [Finnie](https://koii.network/getFinnie), to sign the transaction.
If you don't pass in a `key` argument when creating a transaction, Arweave.js will attempt to use a browser-based wallet extension, such as [ArConnect](https://arconnect.io) or [Arweave.app](https://arweave.app), to sign the transaction.

@@ -484,3 +484,3 @@ **Modifying a transaction object after signing it will invalidate the signature,** causing it to be rejected by the network if submitted in that state. Transaction prices are based on the size of the data field, so modifying the data field after a transaction has been created isn't recommended as you'll need to manually update the price.

**Update since v1.9.0**
> **Update since v1.9.0**
*Due to how the API has evolved over time and with larger transaction support, the `data` field is no longer _guaranteed_ to be returned from the network as part of the transaction json, therefore, it is not recommended that you use this function for fetching data anymore. You should update your applications to use [`arweave.transactions.getData()`](#get-transaction-data) instead, this will handle small transactions, as well as the reassembling of chunks for larger ones, it can also benefit from gateway optimisations.*

@@ -487,0 +487,0 @@

@@ -58,2 +58,5 @@ "use strict";

hash(data, algorithm = "SHA-256") {
if (typeof data === "string") {
throw new TypeError("Data must be a Uint8Array");
}
return new Promise((resolve, reject) => {

@@ -60,0 +63,0 @@ resolve(crypto

Sorry, the diff of this file is not supported yet