Socket
Socket
Sign inDemoInstall

@chainsafe/ssz

Package Overview
Dependencies
Maintainers
6
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainsafe/ssz - npm Package Compare versions

Comparing version 0.16.0 to 0.17.0

6

lib/util/merkleize.js

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

const index_1 = require("@chainsafe/persistent-merkle-tree/lib/hasher/index");
const zeros_1 = require("./zeros");
const persistent_merkle_tree_1 = require("@chainsafe/persistent-merkle-tree");
/** Dedicated property to cache hashTreeRoot of immutable CompositeType values */

@@ -16,3 +16,3 @@ exports.symbolCachedPermanentRoot = Symbol("ssz_cached_permanent_root");

if (chunks.length == 0) {
return zeros_1.zeroHash(layerCount);
return persistent_merkle_tree_1.zeroHash(layerCount);
}

@@ -28,3 +28,3 @@ let chunkCount = chunks.length;

for (let i = 0; i < padCount; i++) {
chunks[chunkCount + i] = zeros_1.zeroHash(l);
chunks[chunkCount + i] = persistent_merkle_tree_1.zeroHash(l);
}

@@ -31,0 +31,0 @@ for (let i = 0; i < paddedChunkCount; i += 2) {

@@ -7,3 +7,3 @@ {

"homepage": "https://github.com/chainsafe/ssz",
"version": "0.16.0",
"version": "0.17.0",
"main": "lib/index.js",

@@ -16,9 +16,9 @@ "files": [

"scripts": {
"build": "run -T tsc --project tsconfig.build.json",
"build-web": "run -T webpack --mode production --entry ./lib/web.js --output ./dist/ssz.min.js",
"build:docs": "run -T typedoc --exclude src/index.ts,src/web.ts --out docs src",
"build": "tsc --project tsconfig.build.json",
"build-web": "webpack --mode production --entry ./lib/web.js --output ./dist/ssz.min.js",
"build:docs": "typedoc --exclude src/index.ts,src/web.ts --out docs src",
"build:release": "yarn clean && yarn run build && yarn build-web && yarn run build:docs",
"check-types": "run -T tsc --noEmit",
"check-types": "tsc --noEmit",
"clean": "rm -rf lib && rm -rf dist && rm -f tsconfig.tsbuildinfo",
"lint": "run -T eslint --color --ext .ts src/ test/",
"lint": "eslint --color --ext .ts src/ test/",
"lint:fix": "yarn run lint --fix",

@@ -29,9 +29,9 @@ "prepublishOnly": "yarn build",

"benchmark:local": "yarn benchmark --local",
"test:perf": "run -T mocha \"test/perf/**/*.test.ts\"",
"test:unit": "run -T nyc mocha \"test/unit/**/*.test.ts\"",
"test:perf": "mocha \"test/perf/**/*.test.ts\"",
"test:unit": "nyc mocha \"test/unit/**/*.test.ts\"",
"test:spec": "yarn test:spec-generic && yarn test:spec-static",
"test:spec-generic": "run -T mocha \"test/spec/generic/**/*.test.ts\"",
"test:spec-generic": "mocha \"test/spec/generic/**/*.test.ts\"",
"test:spec-static": "yarn test:spec-static-minimal && yarn test:spec-static-mainnet",
"test:spec-static-minimal": "LODESTAR_PRESET=minimal run -T mocha test/spec/ssz_static.test.ts",
"test:spec-static-mainnet": "LODESTAR_PRESET=mainnet run -T mocha test/spec/ssz_static.test.ts",
"test:spec-static-minimal": "LODESTAR_PRESET=minimal mocha test/spec/ssz_static.test.ts",
"test:spec-static-mainnet": "LODESTAR_PRESET=mainnet mocha test/spec/ssz_static.test.ts",
"download-spec-tests": "node -r ts-node/register test/spec/downloadTests.ts"

@@ -41,4 +41,4 @@ },

"dependencies": {
"@chainsafe/as-sha256": "^0.4.2",
"@chainsafe/persistent-merkle-tree": "^0.7.2"
"@chainsafe/as-sha256": "0.5.0",
"@chainsafe/persistent-merkle-tree": "0.8.0"
},

@@ -56,2 +56,2 @@ "devDependencies": {

]
}
}

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