This repository has been archived on 2026-10-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
webklar-alt/patches/appwrite+22.0.0.patch
T

14 lines
635 B
Diff

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
@@ -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 (value && value._isBigNumber === true) {
if (value.isInteger()) {
const str = value.toFixed();
const bi = BigInt(str);