@polkadot/trie-hash
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -19,3 +19,2 @@ "use strict"; | ||
// of the ISC license. See the LICENSE file for details. | ||
// flowlint-next-line unclear-type:off | ||
function encodeAux(pairs, preLength) { | ||
@@ -22,0 +21,0 @@ const encoded = (0, _index.default)(pairs, preLength); |
@@ -21,3 +21,2 @@ "use strict"; | ||
// of the ISC license. See the LICENSE file for details. | ||
// flowlint-next-line unclear-type:off | ||
function encode(pairs, preLength) { | ||
@@ -24,0 +23,0 @@ if (pairs.length === 0) { |
@@ -27,5 +27,4 @@ "use strict"; | ||
return length; | ||
} // flowlint-next-line unclear-type:off | ||
} | ||
function encodePairs(pairs, preLength) { | ||
@@ -32,0 +31,0 @@ const result = []; |
@@ -17,5 +17,4 @@ "use strict"; | ||
// of the ISC license. See the LICENSE file for details. | ||
// flowlint-next-line unclear-type:off | ||
function encodeShared(pairs, preLength, sharedLength) { | ||
return [(0, _hexPrefix.default)(pairs[0].k.slice(preLength, sharedLength), false), (0, _aux.default)(pairs, sharedLength)]; | ||
} |
@@ -15,5 +15,4 @@ "use strict"; | ||
// of the ISC license. See the LICENSE file for details. | ||
// flowlint-next-line unclear-type:off | ||
function encodeSingle(pair, preLength) { | ||
return [(0, _hexPrefix.default)(pair.k.slice(preLength), true), pair.v]; | ||
} |
{ | ||
"name": "@polkadot/trie-hash", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Creation of triehash values", | ||
@@ -37,6 +37,6 @@ "main": "index.js", | ||
"@babel/runtime": "^7.0.0-beta.47", | ||
"@polkadot/util": "^0.23.1", | ||
"@polkadot/util-crypto": "^0.23.1", | ||
"@polkadot/util-rlp": "^0.23.1" | ||
"@polkadot/util": "^0.24.1", | ||
"@polkadot/util-crypto": "^0.24.1", | ||
"@polkadot/util-rlp": "^0.24.1" | ||
} | ||
} |
@@ -24,2 +24,3 @@ "use strict"; | ||
function asNibbles(bytes) { | ||
// HACK TypeScript gets a little bit confused as to what to apply, hence casting here although the reduces function for both types does exactly the same | ||
return bytes.reduce((result, byte, index) => { | ||
@@ -26,0 +27,0 @@ result.set([byte >> 4, byte & 0b1111], index * 2); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
36624
54
910
1
+ Added@polkadot/util@0.24.9(transitive)
+ Added@polkadot/util-crypto@0.24.9(transitive)
+ Added@polkadot/util-rlp@0.24.9(transitive)
+ Added@types/deasync@0.1.5(transitive)
+ Added@types/ip-regex@2.0.1(transitive)
+ Added@types/xxhashjs@0.1.1(transitive)
- Removed@polkadot/util@0.23.2(transitive)
- Removed@polkadot/util-crypto@0.23.2(transitive)
- Removed@polkadot/util-rlp@0.23.2(transitive)
Updated@polkadot/util@^0.24.1
Updated@polkadot/util-rlp@^0.24.1