From 80c03411ae6ea106950683d4faf6c02471869f47 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 7 Feb 2026 08:47:48 +0000 Subject: [PATCH] Fix: Appwrite-Patch nutzt _isBigNumber statt isBigNumber (behebt 'e.isBigNumber is not a function' im Build) --- patches/appwrite+22.0.0.patch | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/patches/appwrite+22.0.0.patch b/patches/appwrite+22.0.0.patch index 5da54a9..0a73c3a 100644 --- a/patches/appwrite+22.0.0.patch +++ b/patches/appwrite+22.0.0.patch @@ -2,19 +2,12 @@ diff --git a/node_modules/appwrite/dist/esm/sdk.js b/node_modules/appwrite/dist/ index b1fcf3b..4ba8d80 100644 --- a/node_modules/appwrite/dist/esm/sdk.js +++ b/node_modules/appwrite/dist/esm/sdk.js -@@ -1,5 +1,6 @@ - import JSONbigModule from 'json-bigint'; - import BigNumber from 'bignumber.js'; -+const __BN = (BigNumber && typeof BigNumber.default === 'function') ? BigNumber.default : BigNumber; - - /****************************************************************************** - Copyright (c) Microsoft Corporation. -@@ -468,7 +469,7 @@ const JSONbigSerializer = JSONbigModule({ useNativeBigInt: true }); +@@ -466,7 +466,7 @@ const JSONbigSerializer = JSONbigModule({ useNativeBigInt: true }); const MAX_SAFE = BigInt(Number.MAX_SAFE_INTEGER); const MIN_SAFE = BigInt(Number.MIN_SAFE_INTEGER); function reviver(_key, value) { - if (BigNumber.isBigNumber(value)) { -+ if (__BN.isBigNumber(value)) { ++ if (value && value._isBigNumber === true) { if (value.isInteger()) { const str = value.toFixed(); const bi = BigInt(str);