appwrite verbindung
auf local und domaene ueber ein plugin
This commit is contained in:
22
patches/json-bigint+1.0.0.patch
Normal file
22
patches/json-bigint+1.0.0.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
diff --git a/node_modules/json-bigint/lib/parse.js b/node_modules/json-bigint/lib/parse.js
|
||||
index bb4e5eb..0ea96e8 100644
|
||||
--- a/node_modules/json-bigint/lib/parse.js
|
||||
+++ b/node_modules/json-bigint/lib/parse.js
|
||||
@@ -206,6 +206,7 @@ var json_parse = function (options) {
|
||||
error('Bad number');
|
||||
} else {
|
||||
if (BigNumber == null) BigNumber = require('bignumber.js');
|
||||
+ if (typeof BigNumber === 'object' && BigNumber && typeof BigNumber.default === 'function') BigNumber = BigNumber.default;
|
||||
//if (number > 9007199254740992 || number < -9007199254740992)
|
||||
// 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
|
||||
--- a/node_modules/json-bigint/lib/stringify.js
|
||||
+++ b/node_modules/json-bigint/lib/stringify.js
|
||||
@@ -1,4 +1,5 @@
|
||||
var BigNumber = require('bignumber.js');
|
||||
+if (typeof BigNumber === 'object' && BigNumber && typeof BigNumber.default === 'function') BigNumber = BigNumber.default;
|
||||
|
||||
/*
|
||||
json2.js
|
||||
Reference in New Issue
Block a user