From ac40edc4689e6ee5bd323ac4254b5e19a9e8d107 Mon Sep 17 00:00:00 2001 From: Kenso Grimm Date: Sat, 7 Feb 2026 09:35:49 +0100 Subject: [PATCH] appwrite 22.0.0 patch --- patches/appwrite+22.0.0.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 patches/appwrite+22.0.0.patch diff --git a/patches/appwrite+22.0.0.patch b/patches/appwrite+22.0.0.patch new file mode 100644 index 0000000..5da54a9 --- /dev/null +++ b/patches/appwrite+22.0.0.patch @@ -0,0 +1,20 @@ +diff --git a/node_modules/appwrite/dist/esm/sdk.js b/node_modules/appwrite/dist/esm/sdk.js +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 }); + 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.isInteger()) { + const str = value.toFixed(); + const bi = BigInt(str);