Socket
Socket
Sign inDemoInstall

@mysten/bcs

Package Overview
Dependencies
Maintainers
4
Versions
518
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.0.0-experimental-20240106000019 to 0.0.0-experimental-20240106194601

8

CHANGELOG.md
# Change Log
## 0.0.0-experimental-20240106000019
## 0.0.0-experimental-20240106194601
### Patch Changes
- 9ac0a4ec01: Add extensions to all sdk import paths
## 0.10.0
### Minor Changes

@@ -6,0 +12,0 @@

5

dist/cjs/bcs-type.d.ts

@@ -1,3 +0,4 @@

import { BcsReader } from './reader';
import { BcsWriter, BcsWriterOptions } from './writer';
import { BcsReader } from './reader.js';
import type { BcsWriterOptions } from './writer.js';
import { BcsWriter } from './writer.js';
export interface BcsTypeOptions<T, Input = T> {

@@ -4,0 +5,0 @@ name?: string;

@@ -50,8 +50,8 @@ "use strict";

module.exports = __toCommonJS(bcs_type_exports);
var import_b58 = require("./b58");
var import_b64 = require("./b64");
var import_hex = require("./hex");
var import_reader = require("./reader");
var import_uleb = require("./uleb");
var import_writer = require("./writer");
var import_b58 = require("./b58.js");
var import_b64 = require("./b64.js");
var import_hex = require("./hex.js");
var import_reader = require("./reader.js");
var import_uleb = require("./uleb.js");
var import_writer = require("./writer.js");
var _write, _serialize, _schema, _bytes;

@@ -58,0 +58,0 @@ const _BcsType = class {

@@ -1,3 +0,4 @@

import { BcsType, BcsTypeOptions } from './bcs-type.js';
import { GenericPlaceholder, ReplaceBcsGenerics } from './types.js';
import type { BcsTypeOptions } from './bcs-type.js';
import { BcsType } from './bcs-type.js';
import type { GenericPlaceholder, ReplaceBcsGenerics } from './types.js';
export declare const bcs: {

@@ -4,0 +5,0 @@ /**

import { fromB58, toB58 } from './b58.js';
import { fromB64, toB64 } from './b64.js';
import { BcsType, BcsTypeOptions, isSerializedBcs, SerializedBcs } from './bcs-type.js';
import type { BcsTypeOptions } from './bcs-type.js';
import { BcsType, isSerializedBcs, SerializedBcs } from './bcs-type.js';
import { bcs } from './bcs.js';
import { fromHEX, toHEX } from './hex.js';
import { BcsReader } from './reader.js';
import { type InferBcsInput, type InferBcsType } from './types.js';
import type { InferBcsInput, InferBcsType } from './types.js';
import { decodeStr, encodeStr, splitGenericParameters } from './utils.js';
import { BcsWriter, BcsWriterOptions } from './writer.js';
import type { BcsWriterOptions } from './writer.js';
import { BcsWriter } from './writer.js';
export * from './legacy-registry.js';
export { bcs, BcsType, type BcsTypeOptions, SerializedBcs, isSerializedBcs, toB58, fromB58, toB64, fromB64, fromHEX, toHEX, encodeStr, decodeStr, splitGenericParameters, BcsReader, BcsWriter, type BcsWriterOptions, type InferBcsInput, type InferBcsType, };
import { BcsType } from './bcs-type.js';
import { BcsReader } from './reader.js';
import { Encoding } from './types.js';
import { BcsWriter, BcsWriterOptions } from './writer.js';
import type { Encoding } from './types.js';
import type { BcsWriterOptions } from './writer.js';
import { BcsWriter } from './writer.js';
/**

@@ -6,0 +7,0 @@ * Allows for array definitions for names.

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

module.exports = __toCommonJS(reader_exports);
var import_uleb = require("./uleb");
var import_uleb = require("./uleb.js");
class BcsReader {

@@ -27,0 +27,0 @@ /**

@@ -1,2 +0,2 @@

import { type BcsType } from './bcs-type';
import type { BcsType } from './bcs-type.js';
/**

@@ -3,0 +3,0 @@ * Supported encodings.

@@ -1,2 +0,2 @@

import { Encoding } from './types';
import type { Encoding } from './types.js';
/**

@@ -3,0 +3,0 @@ * Encode data with either `hex` or `base64`.

@@ -26,5 +26,5 @@ "use strict";

module.exports = __toCommonJS(utils_exports);
var import_b58 = require("./b58");
var import_b64 = require("./b64");
var import_hex = require("./hex");
var import_b58 = require("./b58.js");
var import_b64 = require("./b64.js");
var import_hex = require("./hex.js");
function encodeStr(data, encoding) {

@@ -31,0 +31,0 @@ switch (encoding) {

@@ -1,2 +0,2 @@

import { Encoding } from './types';
import type { Encoding } from './types.js';
export interface BcsWriterOptions {

@@ -3,0 +3,0 @@ /** The initial size (in bytes) of the buffer tht will be allocated */

@@ -24,4 +24,4 @@ "use strict";

module.exports = __toCommonJS(writer_exports);
var import_uleb = require("./uleb");
var import_utils = require("./utils");
var import_uleb = require("./uleb.js");
var import_utils = require("./utils.js");
class BcsWriter {

@@ -28,0 +28,0 @@ constructor({ size = 1024, maxSize, allocateSize = 1024 } = {}) {

@@ -1,3 +0,4 @@

import { BcsReader } from './reader';
import { BcsWriter, BcsWriterOptions } from './writer';
import { BcsReader } from './reader.js';
import type { BcsWriterOptions } from './writer.js';
import { BcsWriter } from './writer.js';
export interface BcsTypeOptions<T, Input = T> {

@@ -4,0 +5,0 @@ name?: string;

@@ -20,8 +20,8 @@ var __accessCheck = (obj, member, msg) => {

var _write, _serialize, _schema, _bytes;
import { toB58 } from "./b58";
import { toB64 } from "./b64";
import { toHEX } from "./hex";
import { BcsReader } from "./reader";
import { ulebEncode } from "./uleb";
import { BcsWriter } from "./writer";
import { toB58 } from "./b58.js";
import { toB64 } from "./b64.js";
import { toHEX } from "./hex.js";
import { BcsReader } from "./reader.js";
import { ulebEncode } from "./uleb.js";
import { BcsWriter } from "./writer.js";
const _BcsType = class {

@@ -28,0 +28,0 @@ constructor(options) {

@@ -1,3 +0,4 @@

import { BcsType, BcsTypeOptions } from './bcs-type.js';
import { GenericPlaceholder, ReplaceBcsGenerics } from './types.js';
import type { BcsTypeOptions } from './bcs-type.js';
import { BcsType } from './bcs-type.js';
import type { GenericPlaceholder, ReplaceBcsGenerics } from './types.js';
export declare const bcs: {

@@ -4,0 +5,0 @@ /**

import { fromB58, toB58 } from './b58.js';
import { fromB64, toB64 } from './b64.js';
import { BcsType, BcsTypeOptions, isSerializedBcs, SerializedBcs } from './bcs-type.js';
import type { BcsTypeOptions } from './bcs-type.js';
import { BcsType, isSerializedBcs, SerializedBcs } from './bcs-type.js';
import { bcs } from './bcs.js';
import { fromHEX, toHEX } from './hex.js';
import { BcsReader } from './reader.js';
import { type InferBcsInput, type InferBcsType } from './types.js';
import type { InferBcsInput, InferBcsType } from './types.js';
import { decodeStr, encodeStr, splitGenericParameters } from './utils.js';
import { BcsWriter, BcsWriterOptions } from './writer.js';
import type { BcsWriterOptions } from './writer.js';
import { BcsWriter } from './writer.js';
export * from './legacy-registry.js';
export { bcs, BcsType, type BcsTypeOptions, SerializedBcs, isSerializedBcs, toB58, fromB58, toB64, fromB64, fromHEX, toHEX, encodeStr, decodeStr, splitGenericParameters, BcsReader, BcsWriter, type BcsWriterOptions, type InferBcsInput, type InferBcsType, };
import { BcsType } from './bcs-type.js';
import { BcsReader } from './reader.js';
import { Encoding } from './types.js';
import { BcsWriter, BcsWriterOptions } from './writer.js';
import type { Encoding } from './types.js';
import type { BcsWriterOptions } from './writer.js';
import { BcsWriter } from './writer.js';
/**

@@ -6,0 +7,0 @@ * Allows for array definitions for names.

@@ -1,2 +0,2 @@

import { ulebDecode } from "./uleb";
import { ulebDecode } from "./uleb.js";
class BcsReader {

@@ -3,0 +3,0 @@ /**

@@ -1,2 +0,2 @@

import { type BcsType } from './bcs-type';
import type { BcsType } from './bcs-type.js';
/**

@@ -3,0 +3,0 @@ * Supported encodings.

@@ -1,2 +0,2 @@

import { Encoding } from './types';
import type { Encoding } from './types.js';
/**

@@ -3,0 +3,0 @@ * Encode data with either `hex` or `base64`.

@@ -1,4 +0,4 @@

import { fromB58, toB58 } from "./b58";
import { fromB64, toB64 } from "./b64";
import { fromHEX, toHEX } from "./hex";
import { fromB58, toB58 } from "./b58.js";
import { fromB64, toB64 } from "./b64.js";
import { fromHEX, toHEX } from "./hex.js";
function encodeStr(data, encoding) {

@@ -5,0 +5,0 @@ switch (encoding) {

@@ -1,2 +0,2 @@

import { Encoding } from './types';
import type { Encoding } from './types.js';
export interface BcsWriterOptions {

@@ -3,0 +3,0 @@ /** The initial size (in bytes) of the buffer tht will be allocated */

@@ -1,3 +0,3 @@

import { ulebEncode } from "./uleb";
import { encodeStr } from "./utils";
import { ulebEncode } from "./uleb.js";
import { encodeStr } from "./utils.js";
class BcsWriter {

@@ -4,0 +4,0 @@ constructor({ size = 1024, maxSize, allocateSize = 1024 } = {}) {

{
"name": "@mysten/bcs",
"version": "0.0.0-experimental-20240106000019",
"version": "0.0.0-experimental-20240106194601",
"description": "BCS - Canonical Binary Serialization implementation for JavaScript",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
import { toB58 } from './b58';
import { toB64 } from './b64';
import { toHEX } from './hex';
import { BcsReader } from './reader';
import { ulebEncode } from './uleb';
import { BcsWriter, BcsWriterOptions } from './writer';
import { toB58 } from './b58.js';
import { toB64 } from './b64.js';
import { toHEX } from './hex.js';
import { BcsReader } from './reader.js';
import { ulebEncode } from './uleb.js';
import type { BcsWriterOptions } from './writer.js';
import { BcsWriter } from './writer.js';

@@ -11,0 +12,0 @@ export interface BcsTypeOptions<T, Input = T> {

// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
import type { BcsTypeOptions } from './bcs-type.js';
import {
BcsType,
BcsTypeOptions,
bigUIntBcsType,

@@ -14,3 +14,3 @@ dynamicSizeBcsType,

} from './bcs-type.js';
import { GenericPlaceholder, ReplaceBcsGenerics } from './types.js';
import type { GenericPlaceholder, ReplaceBcsGenerics } from './types.js';
import { ulebEncode } from './uleb.js';

@@ -17,0 +17,0 @@

@@ -16,9 +16,11 @@ // Copyright (c) Mysten Labs, Inc.

import { fromB64, toB64 } from './b64.js';
import { BcsType, BcsTypeOptions, isSerializedBcs, SerializedBcs } from './bcs-type.js';
import type { BcsTypeOptions } from './bcs-type.js';
import { BcsType, isSerializedBcs, SerializedBcs } from './bcs-type.js';
import { bcs } from './bcs.js';
import { fromHEX, toHEX } from './hex.js';
import { BcsReader } from './reader.js';
import { type InferBcsInput, type InferBcsType } from './types.js';
import type { InferBcsInput, InferBcsType } from './types.js';
import { decodeStr, encodeStr, splitGenericParameters } from './utils.js';
import { BcsWriter, BcsWriterOptions } from './writer.js';
import type { BcsWriterOptions } from './writer.js';
import { BcsWriter } from './writer.js';

@@ -25,0 +27,0 @@ export * from './legacy-registry.js';

@@ -9,5 +9,6 @@ // Copyright (c) Mysten Labs, Inc.

import { BcsReader } from './reader.js';
import { Encoding } from './types.js';
import type { Encoding } from './types.js';
import { decodeStr, splitGenericParameters } from './utils.js';
import { BcsWriter, BcsWriterOptions } from './writer.js';
import type { BcsWriterOptions } from './writer.js';
import { BcsWriter } from './writer.js';

@@ -14,0 +15,0 @@ /**

// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
import { ulebDecode } from './uleb';
import { ulebDecode } from './uleb.js';

@@ -6,0 +6,0 @@ /**

// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
import { type BcsType } from './bcs-type';
import type { BcsType } from './bcs-type.js';

@@ -6,0 +6,0 @@ /**

// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
import { fromB58, toB58 } from './b58';
import { fromB64, toB64 } from './b64';
import { fromHEX, toHEX } from './hex';
import { Encoding } from './types';
import { fromB58, toB58 } from './b58.js';
import { fromB64, toB64 } from './b64.js';
import { fromHEX, toHEX } from './hex.js';
import type { Encoding } from './types.js';

@@ -9,0 +9,0 @@ /**

// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
import { Encoding } from './types';
import { ulebEncode } from './uleb';
import { encodeStr } from './utils';
import type { Encoding } from './types.js';
import { ulebEncode } from './uleb.js';
import { encodeStr } from './utils.js';

@@ -8,0 +8,0 @@ export interface BcsWriterOptions {

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

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

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

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

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