@arcblock/forge-util
Advanced tools
Comparing version 0.32.0 to 0.32.1
// 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, |
{ | ||
"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" | ||
} |
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
20151
647