appwrite 22.0.0 patch
This commit is contained in:
20
patches/appwrite+22.0.0.patch
Normal file
20
patches/appwrite+22.0.0.patch
Normal file
@@ -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);
|
||||||
Reference in New Issue
Block a user