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

@ckb-lumos/toolkit

Package Overview
Dependencies
Maintainers
3
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckb-lumos/toolkit - npm Package Compare versions

Comparing version 0.17.0-rc8 to 0.18.0-rc5

LICENSE

8

lib/normalizers.js

@@ -114,2 +114,5 @@ "use strict";

case "data1":
return 2;
case 0:

@@ -121,2 +124,5 @@ return value;

case 2:
return value;
default:

@@ -245,3 +251,3 @@ throw new Error(`${debugPath}.hash_type has invalid value: ${value}`);

proposals_hash: normalizeRawData(32),
uncles_hash: normalizeRawData(32),
extra_hash: normalizeRawData(32),
dao: normalizeRawData(32)

@@ -248,0 +254,0 @@ });

4

lib/transformers.js

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

proposals_hash: invokeSerializeJson,
uncles_hash: invokeSerializeJson,
extra_hash: invokeSerializeJson,
dao: invokeSerializeJson

@@ -271,3 +271,3 @@ });

proposals_hash: invokeSerializeJson,
uncles_hash: invokeSerializeJson,
extra_hash: invokeSerializeJson,
dao: invokeSerializeJson,

@@ -274,0 +274,0 @@ nonce: invokeSerializeJson

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

if (script.hash_type !== "data" && script.hash_type !== "type") {
if (script.hash_type !== "data" && script.hash_type !== "type" && script.hash_type !== "data1") {
throw new Error(`${debugPath}.hash_type must be either data or type!`);

@@ -206,3 +206,3 @@ }

assertHash(`${debugPath}.proposals_hash`, rawHeader.proposals_hash);
assertHash(`${debugPath}.uncles_hash`, rawHeader.uncles_hash);
assertHash(`${debugPath}.extra_hash`, rawHeader.extra_hash);
assertHash(`${debugPath}.dao`, rawHeader.dao);

@@ -215,3 +215,3 @@ }

} = {}) {
assertObjectWithKeys(debugPath, rawHeader, ["version", "compact_target", "timestamp", "number", "epoch", "parent_hash", "transactions_root", "proposals_hash", "uncles_hash", "dao"], []);
assertObjectWithKeys(debugPath, rawHeader, ["version", "compact_target", "timestamp", "number", "epoch", "parent_hash", "transactions_root", "proposals_hash", "extra_hash", "dao"], []);
assertCommonHeader(debugPath, rawHeader);

@@ -224,3 +224,3 @@ }

} = {}) {
assertObjectWithKeys(debugPath, header, ["version", "compact_target", "timestamp", "number", "epoch", "parent_hash", "transactions_root", "proposals_hash", "uncles_hash", "dao", "nonce"], []);
assertObjectWithKeys(debugPath, header, ["version", "compact_target", "timestamp", "number", "epoch", "parent_hash", "transactions_root", "proposals_hash", "extra_hash", "dao", "nonce"], []);
assertHexString(`${debugPath}.nonce`, header.nonce);

@@ -227,0 +227,0 @@

{
"name": "@ckb-lumos/toolkit",
"version": "0.17.0-rc8",
"version": "0.18.0-rc5",
"description": "JavaScript toolkits used to build dapps for Nervos CKB",

@@ -30,3 +30,3 @@ "main": "lib/index.js",

"lint": "eslint -c ../../.eslintrc.js \"{src,tests}/**/*.js\"",
"update-test-files": "curl -L https://raw.githubusercontent.com/nervosnetwork/ckb/27c36a55e6358fd04153ec3da4638b6e10660da6/util/types/schemas/blockchain.mol -o testfiles/blockchain.mol && moleculec --language - --schema-file testfiles/blockchain.mol --format json > testfiles/blockchain.json && moleculec-es -inputFile testfiles/blockchain.json -outputFile testfiles/blockchain.esm.js && rollup -f umd -i testfiles/blockchain.esm.js -o testfiles/blockchain.umd.js --name Blockchain && rm testfiles/blockchain.mol testfiles/blockchain.json testfiles/blockchain.esm.js"
"update-test-files": "curl -L https://raw.githubusercontent.com/nervosnetwork/ckb/5a7efe7a0b720de79ff3761dc6e8424b8d5b22ea/util/types/schemas/blockchain.mol -o testfiles/blockchain.mol && moleculec --language - --schema-file testfiles/blockchain.mol --format json > testfiles/blockchain.json && moleculec-es -inputFile testfiles/blockchain.json -outputFile testfiles/blockchain.esm.js && rollup -f umd -i testfiles/blockchain.esm.js -o testfiles/blockchain.umd.js --name Blockchain && rm testfiles/blockchain.mol testfiles/blockchain.json testfiles/blockchain.esm.js"
},

@@ -39,3 +39,3 @@ "author": "Xuejie Xiao",

},
"gitHead": "2489e45e67fad85feb01e6a9793bcc150c30b8a3"
"gitHead": "842d5853f8ac8ae6ae74b9c9fa1d99b8aa161b66"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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