@chainsafe/ssz
Advanced tools
Comparing version 0.16.0 to 0.17.0
@@ -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
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
496484
159
7513
+ Added@chainsafe/as-sha256@0.5.0(transitive)
+ Added@chainsafe/hashtree@1.0.1(transitive)
+ Added@chainsafe/hashtree-darwin-arm64@1.0.1(transitive)
+ Added@chainsafe/hashtree-linux-arm64-gnu@1.0.1(transitive)
+ Added@chainsafe/hashtree-linux-x64-gnu@1.0.1(transitive)
+ Added@chainsafe/persistent-merkle-tree@0.8.0(transitive)
- Removed@chainsafe/as-sha256@0.4.2(transitive)
- Removed@chainsafe/persistent-merkle-tree@0.7.2(transitive)
Updated@chainsafe/as-sha256@0.5.0