@mysten/bcs
Advanced tools
Comparing version 0.0.0-experimental-20240529040124 to 0.0.0-experimental-20240531193830
# Change Log | ||
## 0.0.0-experimental-20240529040124 | ||
## 0.0.0-experimental-20240531193830 | ||
### Patch Changes | ||
- f1e828f557: Remove undefined from bcs.option output types | ||
## 1.0.0 | ||
### Major Changes | ||
@@ -6,0 +12,0 @@ |
@@ -85,3 +85,3 @@ import type { BcsTypeOptions } from './bcs-type.js'; | ||
*/ | ||
option<T_2, Input_1>(type: BcsType<T_2, Input_1>): BcsType<T_2 | null | undefined, Input_1 | null | undefined>; | ||
option<T_2, Input_1>(type: BcsType<T_2, Input_1>): BcsType<T_2 | null, Input_1 | null | undefined>; | ||
/** | ||
@@ -88,0 +88,0 @@ * Creates a BcsType representing a variable length vector of a given type |
@@ -246,3 +246,3 @@ "use strict"; | ||
output: (value) => { | ||
if ("Some" in value) { | ||
if (value.$kind === "Some") { | ||
return value.Some; | ||
@@ -249,0 +249,0 @@ } |
@@ -85,3 +85,3 @@ import type { BcsTypeOptions } from './bcs-type.js'; | ||
*/ | ||
option<T_2, Input_1>(type: BcsType<T_2, Input_1>): BcsType<T_2 | null | undefined, Input_1 | null | undefined>; | ||
option<T_2, Input_1>(type: BcsType<T_2, Input_1>): BcsType<T_2 | null, Input_1 | null | undefined>; | ||
/** | ||
@@ -88,0 +88,0 @@ * Creates a BcsType representing a variable length vector of a given type |
@@ -231,3 +231,3 @@ import { | ||
output: (value) => { | ||
if ("Some" in value) { | ||
if (value.$kind === "Some") { | ||
return value.Some; | ||
@@ -234,0 +234,0 @@ } |
{ | ||
"name": "@mysten/bcs", | ||
"version": "0.0.0-experimental-20240529040124", | ||
"version": "0.0.0-experimental-20240531193830", | ||
"description": "BCS - Canonical Binary Serialization implementation for JavaScript", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -255,3 +255,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
output: (value) => { | ||
if ('Some' in value) { | ||
if (value.$kind === 'Some') { | ||
return value.Some; | ||
@@ -258,0 +258,0 @@ } |
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
345685