@appwrite.io/console 0.7.0-rc.1 → 0.7.0-rc.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/README.md +1 -1
- package/dist/cjs/sdk.js +7 -1
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +7 -1
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +7 -1
- package/package.json +1 -1
- package/src/client.ts +8 -1
package/dist/iife/sdk.js
CHANGED
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
'x-sdk-name': 'Console',
|
|
282
282
|
'x-sdk-platform': 'console',
|
|
283
283
|
'x-sdk-language': 'web',
|
|
284
|
-
'x-sdk-version': '0.7.0-rc.
|
|
284
|
+
'x-sdk-version': '0.7.0-rc.2',
|
|
285
285
|
'X-Appwrite-Response-Format': '1.6.0',
|
|
286
286
|
};
|
|
287
287
|
this.realtime = {
|
|
@@ -549,6 +549,12 @@
|
|
|
549
549
|
prepareRequest(method, url, headers = {}, params = {}) {
|
|
550
550
|
method = method.toUpperCase();
|
|
551
551
|
headers = Object.assign({}, this.headers, headers);
|
|
552
|
+
if (typeof window !== 'undefined' && window.localStorage) {
|
|
553
|
+
const cookieFallback = window.localStorage.getItem('cookieFallback');
|
|
554
|
+
if (cookieFallback) {
|
|
555
|
+
headers['X-Fallback-Cookies'] = cookieFallback;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
552
558
|
let options = {
|
|
553
559
|
method,
|
|
554
560
|
headers,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@appwrite.io/console",
|
|
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.0-rc.
|
|
5
|
+
"version": "0.7.0-rc.2",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "dist/cjs/sdk.js",
|
|
8
8
|
"exports": {
|
package/src/client.ts
CHANGED
|
@@ -304,7 +304,7 @@ class Client {
|
|
|
304
304
|
'x-sdk-name': 'Console',
|
|
305
305
|
'x-sdk-platform': 'console',
|
|
306
306
|
'x-sdk-language': 'web',
|
|
307
|
-
'x-sdk-version': '0.7.0-rc.
|
|
307
|
+
'x-sdk-version': '0.7.0-rc.2',
|
|
308
308
|
'X-Appwrite-Response-Format': '1.6.0',
|
|
309
309
|
};
|
|
310
310
|
|
|
@@ -592,6 +592,13 @@ class Client {
|
|
|
592
592
|
|
|
593
593
|
headers = Object.assign({}, this.headers, headers);
|
|
594
594
|
|
|
595
|
+
if (typeof window !== 'undefined' && window.localStorage) {
|
|
596
|
+
const cookieFallback = window.localStorage.getItem('cookieFallback');
|
|
597
|
+
if (cookieFallback) {
|
|
598
|
+
headers['X-Fallback-Cookies'] = cookieFallback;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
|
|
595
602
|
let options: RequestInit = {
|
|
596
603
|
method,
|
|
597
604
|
headers,
|