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

@mysten/bcs

Package Overview
Dependencies
Maintainers
7
Versions
520
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 1.0.0 to 1.0.1

6

CHANGELOG.md
# Change Log
## 1.0.1
### Patch Changes
- f1e828f557: Remove undefined from bcs.option output types
## 1.0.0

@@ -4,0 +10,0 @@

2

dist/cjs/bcs.d.ts

@@ -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": "1.0.0",
"version": "1.0.1",
"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

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