@arcblock/forge-util
Advanced tools
Comparing version 0.38.5 to 0.38.8
@@ -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} |
@@ -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} |
{ | ||
"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" | ||
} |
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
21741
734