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.0.0-canary-ed5dc56-20230901063035 to 0.0.0-ckb2023-22b17ec-20230926121058

4

lib/normalizers.js

@@ -105,2 +105,4 @@ "use strict";

return 2;
case "data2":
return 3;
case 0:

@@ -112,2 +114,4 @@ return value;

return value;
case 3:
return value;
default:

@@ -114,0 +118,0 @@ throw new Error(`${debugPath}.hashType has invalid value: ${value}`);

2

lib/validators.js

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

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

@@ -75,0 +75,0 @@ }

{
"name": "@ckb-lumos/toolkit",
"version": "0.0.0-canary-ed5dc56-20230901063035",
"version": "0.0.0-ckb2023-22b17ec-20230926121058",
"description": "JavaScript toolkits used to build dapps for Nervos CKB",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -7,7 +7,7 @@ export type HexString = string;

export type PackedDao = string;
export type Address = string;
export type HexadecimalRange = [Hexadecimal, Hexadecimal];
export interface Header {

@@ -28,3 +28,3 @@ timestamp: HexNumber;

export type HashType = "type" | "data" | "data1";
export type HashType = "type" | "data" | "data1" | "data2";
export interface Script {

@@ -31,0 +31,0 @@ codeHash: Hash;

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