@mysten/bcs
Advanced tools
Comparing version 0.0.0-experimental-20240715213046 to 0.0.0-experimental-20240716041834
# Change Log | ||
## 0.0.0-experimental-20240715213046 | ||
## 0.0.0-experimental-20240716041834 | ||
### Patch Changes | ||
- 7fc464a: Remove unique symbols from types to improve compatability between version | ||
- 0f27a97: Update dependencies | ||
@@ -8,0 +9,0 @@ |
@@ -35,7 +35,5 @@ import { BcsReader } from './reader.js'; | ||
} | ||
declare const SERIALIZED_BCS_BRAND: unique symbol; | ||
export declare function isSerializedBcs(obj: unknown): obj is SerializedBcs<unknown>; | ||
export declare class SerializedBcs<T, Input = T> { | ||
#private; | ||
get [SERIALIZED_BCS_BRAND](): boolean; | ||
constructor(type: BcsType<T, Input>, schema: Uint8Array); | ||
@@ -80,2 +78,1 @@ toBytes(): Uint8Array; | ||
export declare function lazyBcsType<T, Input>(cb: () => BcsType<T, Input>): BcsType<T, Input>; | ||
export {}; |
@@ -35,7 +35,5 @@ import { BcsReader } from './reader.js'; | ||
} | ||
declare const SERIALIZED_BCS_BRAND: unique symbol; | ||
export declare function isSerializedBcs(obj: unknown): obj is SerializedBcs<unknown>; | ||
export declare class SerializedBcs<T, Input = T> { | ||
#private; | ||
get [SERIALIZED_BCS_BRAND](): boolean; | ||
constructor(type: BcsType<T, Input>, schema: Uint8Array); | ||
@@ -80,2 +78,1 @@ toBytes(): Uint8Array; | ||
export declare function lazyBcsType<T, Input>(cb: () => BcsType<T, Input>): BcsType<T, Input>; | ||
export {}; |
{ | ||
"name": "@mysten/bcs", | ||
"version": "0.0.0-experimental-20240715213046", | ||
"version": "0.0.0-experimental-20240716041834", | ||
"description": "BCS - Canonical Binary Serialization implementation for JavaScript", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -105,3 +105,3 @@ // Copyright (c) Mysten Labs, Inc. | ||
const SERIALIZED_BCS_BRAND = Symbol.for('@mysten/serialized-bcs'); | ||
const SERIALIZED_BCS_BRAND = Symbol.for('@mysten/serialized-bcs') as never; | ||
export function isSerializedBcs(obj: unknown): obj is SerializedBcs<unknown> { | ||
@@ -108,0 +108,0 @@ return !!obj && typeof obj === 'object' && (obj as any)[SERIALIZED_BCS_BRAND] === true; |
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
348922
4858