Socket
Socket
Sign inDemoInstall

@arcblock/forge-util

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arcblock/forge-util - npm Package Compare versions

Comparing version 0.32.0 to 0.32.1

43

lib/index.d.ts
// Generate by [js2dts@0.3.3](https://github.com/whxaxes/js2dts#readme)
import { Buffer } from 'node/globals';
/**

@@ -13,7 +12,40 @@ * Validates if a value is an Uint8Array.

declare function isUint8Array(value: any): boolean;
declare function toUint8Array(v: any, autoHex?: boolean): Uint8Array;
declare function toBuffer(v: any, autoHex?: boolean): Buffer;
declare function toBase58(v: any, autoHex?: boolean): any;
declare function fromBase58(v: any): any;
/**
* Convert input to Uint8Array on best effort
*
* @param {buffer|base58|hex|Uint8Array} v
* @param {boolean} [autoHex=false]
* @param {boolean} [enforceStrictHex=false]
* @returns {Uint8Array}
* @throws {Error}
*/
declare function toUint8Array(v: any, autoHex?: boolean, enforceStrictHex?: boolean): Uint8Array;
/**
* Convert input to Buffer on best effort
*
* @param {buffer|base58|hex|Uint8Array} v
* @param {boolean} [autoHex=false]
* @param {boolean} [enforceStrictHex=false]
* @returns {buffer}
* @throws {Error}
*/
declare function toBuffer(v: any, autoHex?: boolean, enforceStrictHex?: boolean): any;
/**
* Convert input to base58btc format on best effort
*
* @param {buffer|base58|hex|Uint8Array} v
* @param {boolean} [autoHex=false]
* @param {boolean} [enforceStrictHex=false]
* @returns {string}
* @throws {Error}
*/
declare function toBase58(v: any, autoHex?: boolean, enforceStrictHex?: boolean): string;
/**
* Decode base58 string
*
* @param {string} v
* @returns {buffer}
*/
declare function fromBase58(v: string): any;
/**
* Generate a random UUID

@@ -34,2 +66,3 @@ *

export interface T100 {
BN: any;
isBN: (object: any) => boolean;

@@ -36,0 +69,0 @@ isBigNumber: (object: any) => boolean;

@@ -600,2 +600,3 @@ /* eslint-disable no-bitwise */

module.exports = {
BN,
isBN,

@@ -602,0 +603,0 @@ isBigNumber,

4

package.json
{
"name": "@arcblock/forge-util",
"version": "0.32.0",
"version": "0.32.1",
"description": "utils shared across mutlipe forge js libs, works in both node.js and browser",

@@ -55,3 +55,3 @@ "keywords": [

},
"gitHead": "9033d7fe2bab087a74a68e0662ce01b72c11bf2b"
"gitHead": "eed40c5af232a87b996cabea1f25587aea3bd623"
}
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