New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mysten/bcs

Package Overview
Dependencies
Maintainers
7
Versions
537
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-20250206185056 to 0.0.0-experimental-20250226210845

8

CHANGELOG.md
# Change Log
## 0.0.0-experimental-20250206185056
## 0.0.0-experimental-20250226210845
### Minor Changes
- 03975f4: replace bs58 and bech32 packages with @scure/base
## 1.4.0
### Minor Changes
- 95b1ea5: Add bcs.byteVector for parsing a vector<u8> into a Uint8Array

@@ -8,0 +14,0 @@

16

dist/cjs/b58.js
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;

@@ -20,10 +18,2 @@ var __export = (target, all) => {

};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

@@ -38,7 +28,7 @@ var b58_exports = {};

module.exports = __toCommonJS(b58_exports);
var import_bs58 = __toESM(require("bs58"));
const toBase58 = (buffer) => import_bs58.default.encode(buffer);
const fromBase58 = (str) => import_bs58.default.decode(str);
var import_base = require("@scure/base");
const toBase58 = (buffer) => import_base.base58.encode(buffer);
const fromBase58 = (str) => import_base.base58.decode(str);
const toB58 = toBase58;
const fromB58 = fromBase58;
//# sourceMappingURL=b58.js.map

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

import bs58 from "bs58";
const toBase58 = (buffer) => bs58.encode(buffer);
const fromBase58 = (str) => bs58.decode(str);
import { base58 } from "@scure/base";
const toBase58 = (buffer) => base58.encode(buffer);
const fromBase58 = (str) => base58.decode(str);
const toB58 = toBase58;

@@ -5,0 +5,0 @@ const fromB58 = fromBase58;

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

@@ -57,3 +57,3 @@ "license": "Apache-2.0",

"dependencies": {
"bs58": "^6.0.0"
"@scure/base": "^1.2.4"
},

@@ -60,0 +60,0 @@ "scripts": {

// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
import bs58 from 'bs58';
import { base58 } from '@scure/base';
export const toBase58 = (buffer: Uint8Array) => bs58.encode(buffer);
export const fromBase58 = (str: string) => bs58.decode(str);
export const toBase58 = (buffer: Uint8Array) => base58.encode(buffer);
export const fromBase58 = (str: string) => base58.decode(str);

@@ -9,0 +9,0 @@ /** @deprecated use toBase58 instead */

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