diff --git a/patches/big-integer+1.6.51.patch b/patches/big-integer+1.6.51.patch new file mode 100644 index 00000000..430c39af --- /dev/null +++ b/patches/big-integer+1.6.51.patch @@ -0,0 +1,15 @@ +diff --git a/node_modules/big-integer/BigInteger.js b/node_modules/big-integer/BigInteger.js +index c4263d5..cae03c7 100644 +--- a/node_modules/big-integer/BigInteger.js ++++ b/node_modules/big-integer/BigInteger.js +@@ -10,6 +10,10 @@ var bigInt = (function (undefined) { + var supportsNativeBigInt = typeof BigInt === "function"; + + function Integer(v, radix, alphabet, caseSensitive) { ++ if (v.toString().includes('0x')) { ++ v = v.substring(2); ++ radix = 16; ++ } + if (typeof v === "undefined") return Integer[0]; + if (typeof radix !== "undefined") return +radix === 10 && !alphabet ? parseValue(v) : parseBase(v, radix, alphabet, caseSensitive); + return parseValue(v);