Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mysten/bcs

Package Overview
Dependencies
Maintainers
4
Versions
525
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mysten/bcs - npm Package Compare versions

Comparing version 0.7.1 to 0.7.2

6

./dist/index.js

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

let value2 = BigInt(this.read64());
let result = value2.toString(16) + value1.toString(16).padStart(8, "0");
let result = value2.toString(16) + value1.toString(16).padStart(16, "0");
return BigInt("0x" + result).toString(10);

@@ -194,3 +194,3 @@ }

let value2 = BigInt(this.read128());
let result = value2.toString(16) + value1.toString(16).padStart(16, "0");
let result = value2.toString(16) + value1.toString(16).padStart(32, "0");
return BigInt("0x" + result).toString(10);

@@ -763,3 +763,3 @@ }

);
this.getTypeInterface(innerName)._decodeRaw.call(
return this.getTypeInterface(innerName)._decodeRaw.call(
this,

@@ -766,0 +766,0 @@ reader2,

# Change Log
## 0.7.2
### Patch Changes
- ca5c72815d: Fix a bcs decoding bug for u128 and u256 values
- fdb569464e: Fixes an issue with a top level generic in a nested vector
## 0.7.1

@@ -4,0 +11,0 @@

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

let value2 = BigInt(this.read64());
let result = value2.toString(16) + value1.toString(16).padStart(8, "0");
let result = value2.toString(16) + value1.toString(16).padStart(16, "0");
return BigInt("0x" + result).toString(10);

@@ -194,3 +194,3 @@ }

let value2 = BigInt(this.read128());
let result = value2.toString(16) + value1.toString(16).padStart(16, "0");
let result = value2.toString(16) + value1.toString(16).padStart(32, "0");
return BigInt("0x" + result).toString(10);

@@ -763,3 +763,3 @@ }

);
this.getTypeInterface(innerName)._decodeRaw.call(
return this.getTypeInterface(innerName)._decodeRaw.call(
this,

@@ -766,0 +766,0 @@ reader2,

{
"name": "@mysten/bcs",
"version": "0.7.1",
"version": "0.7.2",
"description": "BCS - Canonical Binary Serialization implementation for JavaScript",

@@ -54,3 +54,3 @@ "license": "Apache-2.0",

"typescript": "^5.0.4",
"vitest": "^0.30.1"
"vitest": "^0.32.0"
},

@@ -57,0 +57,0 @@ "dependencies": {

@@ -32,3 +32,3 @@ # BCS - Binary Canonical Serialization

// deserialization: BCS bytes into Coin
let bytes = bcs
let bcsBytes = bcs
.ser("Coin", {

@@ -35,0 +35,0 @@ id: "0000000000000000000000000000000000000000000000000000000000000001",

@@ -149,3 +149,3 @@ // Copyright (c) Mysten Labs, Inc.

let value2 = BigInt(this.read64());
let result = value2.toString(16) + value1.toString(16).padStart(8, "0");
let result = value2.toString(16) + value1.toString(16).padStart(16, "0");

@@ -161,3 +161,3 @@ return BigInt("0x" + result).toString(10);

let value2 = BigInt(this.read128());
let result = value2.toString(16) + value1.toString(16).padStart(16, "0");
let result = value2.toString(16) + value1.toString(16).padStart(32, "0");

@@ -979,3 +979,4 @@ return BigInt("0x" + result).toString(10);

);
this.getTypeInterface(innerName)._decodeRaw.call(
return this.getTypeInterface(innerName)._decodeRaw.call(
this,

@@ -982,0 +983,0 @@ reader,

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