@mysten/bcs
Advanced tools
Comparing version 1.2.0 to 1.2.1
# Change Log | ||
## 1.2.1 | ||
### Patch Changes | ||
- 7abd243: Update repo links | ||
## 1.2.0 | ||
@@ -4,0 +10,0 @@ |
export declare const toBase58: (buffer: Uint8Array) => string; | ||
export declare const fromBase58: (str: string) => Uint8Array; | ||
export declare const fromBase58: (str: string) => Uint8Array<ArrayBufferLike>; | ||
/** @deprecated use toBase58 instead */ | ||
export declare const toB58: (buffer: Uint8Array) => string; | ||
/** @deprecated use fromBase58 instead */ | ||
export declare const fromB58: (str: string) => Uint8Array; | ||
export declare const fromB58: (str: string) => Uint8Array<ArrayBufferLike>; |
@@ -38,4 +38,5 @@ import { BcsReader } from './reader.js'; | ||
#private; | ||
[x: number]: boolean; | ||
constructor(type: BcsType<T, Input>, schema: Uint8Array); | ||
toBytes(): Uint8Array; | ||
toBytes(): Uint8Array<ArrayBufferLike>; | ||
toHex(): string; | ||
@@ -42,0 +43,0 @@ toBase64(): string; |
@@ -59,3 +59,3 @@ import type { BcsTypeOptions } from './bcs-type.js'; | ||
*/ | ||
bytes<T extends number>(size: T, options?: BcsTypeOptions<Uint8Array, Iterable<number>>): BcsType<Uint8Array, Iterable<number>>; | ||
bytes<T extends number>(size: T, options?: BcsTypeOptions<Uint8Array, Iterable<number>>): BcsType<Uint8Array<ArrayBufferLike>, Iterable<number>>; | ||
/** | ||
@@ -62,0 +62,0 @@ * Creates a BcsType that can ser/de string values. Strings will be UTF-8 encoded |
@@ -19,4 +19,4 @@ "use strict"; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
var src_exports = {}; | ||
__export(src_exports, { | ||
var index_exports = {}; | ||
__export(index_exports, { | ||
BcsReader: () => import_reader.BcsReader, | ||
@@ -44,3 +44,3 @@ BcsType: () => import_bcs_type.BcsType, | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
module.exports = __toCommonJS(index_exports); | ||
var import_b58 = require("./b58.js"); | ||
@@ -47,0 +47,0 @@ var import_b64 = require("./b64.js"); |
export declare const toBase58: (buffer: Uint8Array) => string; | ||
export declare const fromBase58: (str: string) => Uint8Array; | ||
export declare const fromBase58: (str: string) => Uint8Array<ArrayBufferLike>; | ||
/** @deprecated use toBase58 instead */ | ||
export declare const toB58: (buffer: Uint8Array) => string; | ||
/** @deprecated use fromBase58 instead */ | ||
export declare const fromB58: (str: string) => Uint8Array; | ||
export declare const fromB58: (str: string) => Uint8Array<ArrayBufferLike>; |
@@ -38,4 +38,5 @@ import { BcsReader } from './reader.js'; | ||
#private; | ||
[x: number]: boolean; | ||
constructor(type: BcsType<T, Input>, schema: Uint8Array); | ||
toBytes(): Uint8Array; | ||
toBytes(): Uint8Array<ArrayBufferLike>; | ||
toHex(): string; | ||
@@ -42,0 +43,0 @@ toBase64(): string; |
@@ -59,3 +59,3 @@ import type { BcsTypeOptions } from './bcs-type.js'; | ||
*/ | ||
bytes<T extends number>(size: T, options?: BcsTypeOptions<Uint8Array, Iterable<number>>): BcsType<Uint8Array, Iterable<number>>; | ||
bytes<T extends number>(size: T, options?: BcsTypeOptions<Uint8Array, Iterable<number>>): BcsType<Uint8Array<ArrayBufferLike>, Iterable<number>>; | ||
/** | ||
@@ -62,0 +62,0 @@ * Creates a BcsType that can ser/de string values. Strings will be UTF-8 encoded |
{ | ||
"name": "@mysten/bcs", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "BCS - Canonical Binary Serialization implementation for JavaScript", | ||
@@ -25,3 +25,3 @@ "license": "Apache-2.0", | ||
"type": "git", | ||
"url": "git+https://github.com/mystenlabs/sui.git" | ||
"url": "git+https://github.com/MystenLabs/ts-sdks.git" | ||
}, | ||
@@ -37,3 +37,3 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/mystenlabs/sui/issues" | ||
"url": "https://github.com/MystenLabs/ts-sdks/issues" | ||
}, | ||
@@ -50,8 +50,8 @@ "size-limit": [ | ||
], | ||
"homepage": "https://github.com/mystenlabs/sui#readme", | ||
"homepage": "https://github.com/MystenLabs/ts-sdks#readme", | ||
"devDependencies": { | ||
"@size-limit/preset-small-lib": "^11.1.4", | ||
"size-limit": "^11.1.4", | ||
"typescript": "^5.5.3", | ||
"vitest": "^2.0.1", | ||
"typescript": "^5.7.2", | ||
"vitest": "^2.1.8", | ||
"@mysten/build-scripts": "0.0.0" | ||
@@ -58,0 +58,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4962
350263
84