Comparing version 1.10.20 to 1.10.21
@@ -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
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
1282797
14408