@railgun-community/engine
Advanced tools
Comparing version 6.2.21 to 6.2.22
export declare const minBigInt: (a: bigint, b: bigint) => bigint; | ||
export declare const stringToBigInt: (str: string) => bigint; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.minBigInt = void 0; | ||
exports.stringToBigInt = exports.minBigInt = void 0; | ||
const bytes_1 = require("./bytes"); | ||
const minBigInt = (a, b) => (a < b ? a : b); | ||
exports.minBigInt = minBigInt; | ||
const stringToBigInt = (str) => { | ||
const decimalPattern = /^[-+]?(\d+(\.\d*)?|\.\d+)$/; | ||
const isDecimalStr = decimalPattern.test(str); | ||
if (isDecimalStr) { | ||
return BigInt(str); | ||
} | ||
return (0, bytes_1.hexToBigInt)(str); | ||
}; | ||
exports.stringToBigInt = stringToBigInt; | ||
//# sourceMappingURL=bigint.js.map |
{ | ||
"name": "@railgun-community/engine", | ||
"version": "6.2.21", | ||
"version": "6.2.22", | ||
"description": "Wallet framework for RAILGUN smart contracts and private balances on Ethereum and more.", | ||
@@ -5,0 +5,0 @@ "author": "RAILGUN Contributors", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
2746948
51993