From e3269518bdec7331a5372ff4c8a25cfcd4135f39 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 7 Feb 2026 09:07:20 +0000 Subject: [PATCH] Fix: json-bigint stringify nutzt _isBigNumber (behebt e.isBigNumber in prepareRequest) --- patches/json-bigint+1.0.0.patch | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/patches/json-bigint+1.0.0.patch b/patches/json-bigint+1.0.0.patch index 79443f3..68adc61 100644 --- a/patches/json-bigint+1.0.0.patch +++ b/patches/json-bigint+1.0.0.patch @@ -11,7 +11,7 @@ index bb4e5eb..0ea96e8 100644 // Bignumber has stricter check: everything with length > 15 digits disallowed if (string.length > 15) diff --git a/node_modules/json-bigint/lib/stringify.js b/node_modules/json-bigint/lib/stringify.js -index 3bd5269..2c9f5b4 100644 +index 3bd5269..ab80d3e 100644 --- a/node_modules/json-bigint/lib/stringify.js +++ b/node_modules/json-bigint/lib/stringify.js @@ -1,4 +1,5 @@ @@ -20,3 +20,12 @@ index 3bd5269..2c9f5b4 100644 /* json2.js +@@ -215,7 +216,7 @@ var JSON = module.exports; + mind = gap, + partial, + value = holder[key], +- isBigNumber = value != null && (value instanceof BigNumber || BigNumber.isBigNumber(value)); ++ isBigNumber = value != null && (value instanceof BigNumber || (value && value._isBigNumber === true)); + + // If the value has a toJSON method, call it to obtain a replacement value. +