react-native-appwrite 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/sdk.js +1096 -1449
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +1096 -1449
- package/dist/esm/sdk.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +4 -3
- package/src/services/account.ts +90 -184
- package/src/services/avatars.ts +0 -14
- package/src/services/databases.ts +10 -20
- package/src/services/functions.ts +6 -12
- package/src/services/graphql.ts +4 -8
- package/src/services/locale.ts +16 -32
- package/src/services/messaging.ts +4 -8
- package/src/services/storage.ts +9 -25
- package/src/services/teams.ts +26 -52
- package/types/services/account.d.ts +0 -94
- package/types/services/avatars.d.ts +0 -14
- package/types/services/databases.d.ts +0 -10
- package/types/services/functions.d.ts +0 -6
- package/types/services/graphql.d.ts +0 -4
- package/types/services/locale.d.ts +0 -16
- package/types/services/messaging.d.ts +0 -4
- package/types/services/storage.d.ts +0 -16
- package/types/services/teams.d.ts +0 -26
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "react-native-appwrite",
|
|
3
3
|
"homepage": "https://appwrite.io/support",
|
|
4
4
|
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
|
|
5
|
-
"version": "0.7.
|
|
5
|
+
"version": "0.7.1",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "dist/cjs/sdk.js",
|
|
8
8
|
"exports": {
|
package/src/client.ts
CHANGED
|
@@ -114,7 +114,7 @@ class Client {
|
|
|
114
114
|
'x-sdk-name': 'React Native',
|
|
115
115
|
'x-sdk-platform': 'client',
|
|
116
116
|
'x-sdk-language': 'reactnative',
|
|
117
|
-
'x-sdk-version': '0.7.
|
|
117
|
+
'x-sdk-version': '0.7.1',
|
|
118
118
|
'X-Appwrite-Response-Format': '1.6.0',
|
|
119
119
|
};
|
|
120
120
|
|
|
@@ -453,6 +453,7 @@ class Client {
|
|
|
453
453
|
try {
|
|
454
454
|
let data = null;
|
|
455
455
|
const response = await fetch(url.toString(), options);
|
|
456
|
+
const text = await response.text()
|
|
456
457
|
|
|
457
458
|
const warnings = response.headers.get('x-appwrite-warning');
|
|
458
459
|
if (warnings) {
|
|
@@ -463,12 +464,12 @@ class Client {
|
|
|
463
464
|
data = await response.json();
|
|
464
465
|
} else {
|
|
465
466
|
data = {
|
|
466
|
-
message:
|
|
467
|
+
message: text
|
|
467
468
|
};
|
|
468
469
|
}
|
|
469
470
|
|
|
470
471
|
if (400 <= response.status) {
|
|
471
|
-
throw new AppwriteException(data?.message, response.status, data?.type,
|
|
472
|
+
throw new AppwriteException(data?.message, response.status, data?.type, text);
|
|
472
473
|
}
|
|
473
474
|
|
|
474
475
|
const cookieFallback = response.headers.get('X-Fallback-Cookies');
|