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.20.5 to 0.21.0

36

lib/index.js

@@ -20,2 +20,4 @@ /**

*
* @public
* @static
* @param {String} str the string input value

@@ -36,2 +38,4 @@ * @return {Boolean} a boolean if it is or is not hex prefixed

*
* @public
* @static
* @param {String} str the string value

@@ -51,2 +55,4 @@ * @return {String|Optional} a string by pass if necessary

*
* @public
* @static
* @method isBN

@@ -63,2 +69,4 @@ * @param {Object} object

*
* @public
* @static
* @method isBigNumber

@@ -75,2 +83,4 @@ * @param {Object} object

*
* @public
* @static
* @method toBN

@@ -91,2 +101,4 @@ * @param {Number|String|BN} number, string, HEX string or BN

*
* @public
* @static
* @method utf8ToHex

@@ -128,2 +140,4 @@ * @param {String} str

*
* @public
* @static
* @method hexToUtf8

@@ -167,2 +181,4 @@ * @param {String} hex

*
* @public
* @static
* @method hexToNumber

@@ -183,2 +199,4 @@ * @param {String|Number|BN} value

*
* @public
* @static
* @method hexToNumberString

@@ -197,2 +215,4 @@ * @param {String|Number|BN} value

*
* @public
* @static
* @method numberToHex

@@ -222,2 +242,4 @@ * @param {String|Number|BN} value

*
* @public
* @static
* @method bytesToHex

@@ -243,2 +265,4 @@ * @param {Array} bytes

*
* @public
* @static
* @method hexToBytes

@@ -270,2 +294,4 @@ * @param {String} hex

*
* @public
* @static
* @method toHex

@@ -302,2 +328,4 @@ * @param {String|Number|BN|Object|TypedArray|Buffer} value

*
* @public
* @static
* @method isHexStrict

@@ -314,2 +342,4 @@ * @param {String} hex to be checked

*
* @public
* @static
* @method isHex

@@ -349,2 +379,4 @@ * @param {String} hex to be checked

*
* @public
* @static
* @method fromUintToToken

@@ -392,2 +424,4 @@ * @param {string|number} input

*
* @public
* @static
* @param {string} input

@@ -449,2 +483,4 @@ * @param {number} [decimal=16]

*
* @public
* @static
* @param {*} value - value to validate

@@ -451,0 +487,0 @@ * @returns {Boolean} boolean indicating if a value is an Uint8Array

4

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

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

},
"gitHead": "b8526f942e8a04bcbeb47b0d6e1bd77570a29dd2"
"gitHead": "70d1b0561d18f4a2082d379d836ef44ef7ac5317"
}
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