New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@polkadot/trie-hash

Package Overview
Dependencies
Maintainers
1
Versions
372
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot/trie-hash - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

encode/.nodoc

1

encode/aux.js

@@ -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);

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