Socket
Socket
Sign inDemoInstall

@arcblock/forge-util

Package Overview
Dependencies
Maintainers
2
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.38.5 to 0.38.8

16

lib/index.d.ts

@@ -15,2 +15,4 @@ // Generate by [js2dts@0.3.3](https://github.com/whxaxes/js2dts#readme)

*
* @public
* @static
* @param {buffer|base58|hex|Uint8Array|string} v

@@ -24,2 +26,4 @@ * @returns {Uint8Array}

*
* @public
* @static
* @param {buffer|base58|hex|Uint8Array} v

@@ -33,2 +37,4 @@ * @returns {buffer}

*
* @public
* @static
* @param {buffer|base58|hex|Uint8Array} v

@@ -42,2 +48,4 @@ * @returns {string}

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

@@ -50,2 +58,4 @@ * @returns {buffer}

*
* @public
* @static
* @param {buffer|base58|hex|Uint8Array} v

@@ -60,2 +70,4 @@ * @param {escape} [escape=true]

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

@@ -68,2 +80,4 @@ * @returns {buffer}

*
* @public
* @static
* @returns {string} generated uuid

@@ -75,2 +89,4 @@ */

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

@@ -77,0 +93,0 @@ * @returns {boolean}

22

lib/index.js

@@ -465,9 +465,9 @@ /* eslint-disable no-bitwise */

fraction = new BN(fraction);
let arc = whole.mul(base).add(fraction);
let unit = whole.mul(base).add(fraction);
if (negative) {
arc = arc.mul(negative1);
unit = unit.mul(negative1);
}
return new BN(arc.toString(10), 10);
return new BN(unit.toString(10), 10);
};

@@ -490,2 +490,4 @@

*
* @public
* @static
* @returns {string} generated uuid

@@ -504,2 +506,4 @@ */

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

@@ -515,2 +519,4 @@ * @returns {boolean}

*
* @public
* @static
* @param {buffer|base58|hex|Uint8Array|string} v

@@ -546,2 +552,4 @@ * @returns {Uint8Array}

*
* @public
* @static
* @param {buffer|base58|hex|Uint8Array} v

@@ -558,2 +566,4 @@ * @returns {buffer}

*
* @public
* @static
* @param {buffer|base58|hex|Uint8Array} v

@@ -570,2 +580,4 @@ * @returns {string}

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

@@ -585,2 +597,4 @@ * @returns {buffer}

*
* @public
* @static
* @param {buffer|base58|hex|Uint8Array} v

@@ -599,2 +613,4 @@ * @param {escape} [escape=true]

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

@@ -601,0 +617,0 @@ * @returns {buffer}

4

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

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

},
"gitHead": "3cff060ab51b6868d77d95969f6a91db9cc57414"
"gitHead": "f03c5cd4e07262ef32bfb1793117a8dbdc89b3cf"
}
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