react-native-appwrite 0.9.1 → 0.9.2
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 +4 -2
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +4 -2
- package/dist/esm/sdk.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +5 -2
package/dist/cjs/sdk.js
CHANGED
|
@@ -100,7 +100,7 @@ class Client {
|
|
|
100
100
|
'x-sdk-name': 'React Native',
|
|
101
101
|
'x-sdk-platform': 'client',
|
|
102
102
|
'x-sdk-language': 'reactnative',
|
|
103
|
-
'x-sdk-version': '0.9.
|
|
103
|
+
'x-sdk-version': '0.9.2',
|
|
104
104
|
'X-Appwrite-Response-Format': '1.7.0',
|
|
105
105
|
};
|
|
106
106
|
this.realtime = {
|
|
@@ -400,8 +400,10 @@ class Client {
|
|
|
400
400
|
let options = {
|
|
401
401
|
method,
|
|
402
402
|
headers,
|
|
403
|
-
credentials: 'include'
|
|
404
403
|
};
|
|
404
|
+
if (headers['X-Appwrite-Dev-Key'] === undefined) {
|
|
405
|
+
options.credentials = 'include';
|
|
406
|
+
}
|
|
405
407
|
if (method === 'GET') {
|
|
406
408
|
for (const [key, value] of Object.entries(Service.flatten(params))) {
|
|
407
409
|
url.searchParams.append(key, value);
|