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

arweave

Package Overview
Dependencies
Maintainers
5
Versions
82
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 1.10.20 to 1.10.21

7

node/lib/merkle.js

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

const utils_1 = require("./utils");
const util_1 = require("util");
exports.MAX_CHUNK_SIZE = 256 * 1024;

@@ -114,5 +113,5 @@ exports.MIN_CHUNK_SIZE = 32 * 1024;

async function buildLayers(nodes, level = 0) {
// If there are only 2 nodes left, this is going to be the root node
// If there is only 1 node left, this is going to be the root node
if (nodes.length < 2) {
const root = await hashBranch(nodes[0], nodes[1]);
const root = nodes[0];
// console.log("Root layer", root);

@@ -291,3 +290,3 @@ return root;

]);
const updatedOutput = `${output}\n${(0, util_1.inspect)(Buffer.from(left))},${(0, util_1.inspect)(Buffer.from(right))},${offset} => ${(0, util_1.inspect)(pathHash)}`;
const updatedOutput = `${output}\n${JSON.stringify(Buffer.from(left))},${JSON.stringify(Buffer.from(right))},${offset} => ${JSON.stringify(pathHash)}`;
return debug(remainder, updatedOutput);

@@ -294,0 +293,0 @@ }

{
"name": "arweave",
"version": "1.10.20",
"version": "1.10.21",
"description": "Arweave JS client library",

@@ -19,3 +19,3 @@ "main": "./node/index.js",

"package": "mkdirp node web && ncp dist/node/common/ dist/node/node/ && ncp dist/node/node/ node && ncp dist/web/common/ dist/web/web/ && ncp dist/web/web/ web && npm run clean:dist",
"build": "npm run compile:node && npm run compile:web && npm run package && npm run bundle:web && npm run bundle:web-prod",
"build": "npm run clean && npm run compile:node && npm run compile:web && npm run package && npm run bundle:web && npm run bundle:web-prod",
"clean:dist": "rimraf dist",

@@ -22,0 +22,0 @@ "clean:package": "rimraf node web",

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

const utils_1 = require("./utils");
const util_1 = require("util");
exports.MAX_CHUNK_SIZE = 256 * 1024;

@@ -114,5 +113,5 @@ exports.MIN_CHUNK_SIZE = 32 * 1024;

async function buildLayers(nodes, level = 0) {
// If there are only 2 nodes left, this is going to be the root node
// If there is only 1 node left, this is going to be the root node
if (nodes.length < 2) {
const root = await hashBranch(nodes[0], nodes[1]);
const root = nodes[0];
// console.log("Root layer", root);

@@ -291,3 +290,3 @@ return root;

]);
const updatedOutput = `${output}\n${(0, util_1.inspect)(Buffer.from(left))},${(0, util_1.inspect)(Buffer.from(right))},${offset} => ${(0, util_1.inspect)(pathHash)}`;
const updatedOutput = `${output}\n${JSON.stringify(Buffer.from(left))},${JSON.stringify(Buffer.from(right))},${offset} => ${JSON.stringify(pathHash)}`;
return debug(remainder, updatedOutput);

@@ -294,0 +293,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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