dexie-cloud-addon 4.0.1-beta.56 → 4.0.1-beta.57
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/modern/dexie-cloud-addon.js +6 -6
- package/dist/modern/dexie-cloud-addon.js.map +1 -1
- package/dist/modern/dexie-cloud-addon.min.js +1 -1
- package/dist/modern/dexie-cloud-addon.min.js.map +1 -1
- package/dist/modern/service-worker.js +6 -6
- package/dist/modern/service-worker.js.map +1 -1
- package/dist/modern/service-worker.min.js +1 -1
- package/dist/modern/service-worker.min.js.map +1 -1
- package/dist/umd/dexie-cloud-addon.js +6 -6
- package/dist/umd/dexie-cloud-addon.js.map +1 -1
- package/dist/umd/dexie-cloud-addon.min.js +1 -1
- package/dist/umd/dexie-cloud-addon.min.js.map +1 -1
- package/dist/umd/service-worker.js +6 -6
- package/dist/umd/service-worker.js.map +1 -1
- package/dist/umd/service-worker.min.js +1 -1
- package/dist/umd/service-worker.min.js.map +1 -1
- package/package.json +2 -2
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* ==========================================================================
|
|
10
10
|
*
|
|
11
|
-
* Version 4.0.1-beta.
|
|
11
|
+
* Version 4.0.1-beta.57, Wed Feb 14 2024
|
|
12
12
|
*
|
|
13
13
|
* https://dexie.org
|
|
14
14
|
*
|
|
@@ -3332,7 +3332,7 @@
|
|
|
3332
3332
|
const res = yield fetch(`${databaseUrl}/sync`, {
|
|
3333
3333
|
method: 'post',
|
|
3334
3334
|
headers,
|
|
3335
|
-
credentials: 'include',
|
|
3335
|
+
credentials: 'include', // For Arr Affinity cookie only, for better Rate-Limit counting only.
|
|
3336
3336
|
body: TSON.stringify(syncRequest),
|
|
3337
3337
|
});
|
|
3338
3338
|
//const contentLength = Number(res.headers.get('content-length'));
|
|
@@ -4290,7 +4290,7 @@
|
|
|
4290
4290
|
if (response.type !== 'otp-sent')
|
|
4291
4291
|
throw new Error(`Unexpected response from ${url}/token`);
|
|
4292
4292
|
const otp = yield promptForOTP(userInteraction, tokenRequest.email);
|
|
4293
|
-
const tokenRequest2 = Object.assign(Object.assign({}, tokenRequest), { otp: otp || '', otp_id: response.otp_id });
|
|
4293
|
+
const tokenRequest2 = Object.assign(Object.assign({}, tokenRequest), { otp: otp || '', otp_id: response.otp_id, public_key });
|
|
4294
4294
|
let res2 = yield fetch(`${url}/token`, {
|
|
4295
4295
|
body: JSON.stringify(tokenRequest2),
|
|
4296
4296
|
method: 'post',
|
|
@@ -5586,7 +5586,7 @@
|
|
|
5586
5586
|
retryPurpose = null;
|
|
5587
5587
|
syncIfPossible(db, cloudOptions, cloudSchema, {
|
|
5588
5588
|
cancelToken,
|
|
5589
|
-
retryImmediatelyOnFetchError: true,
|
|
5589
|
+
retryImmediatelyOnFetchError: true, // workaround for "net::ERR_NETWORK_CHANGED" in chrome.
|
|
5590
5590
|
purpose: combPurpose,
|
|
5591
5591
|
}).catch((e) => {
|
|
5592
5592
|
console.error('error in syncIfPossible()', e);
|
|
@@ -6260,7 +6260,7 @@
|
|
|
6260
6260
|
const syncComplete = new rxjs.Subject();
|
|
6261
6261
|
dexie.cloud = {
|
|
6262
6262
|
// @ts-ignore
|
|
6263
|
-
version: "4.0.1-beta.
|
|
6263
|
+
version: "4.0.1-beta.57",
|
|
6264
6264
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
6265
6265
|
schema: null,
|
|
6266
6266
|
get currentUserId() {
|
|
@@ -6537,7 +6537,7 @@
|
|
|
6537
6537
|
}
|
|
6538
6538
|
}
|
|
6539
6539
|
// @ts-ignore
|
|
6540
|
-
dexieCloud.version = "4.0.1-beta.
|
|
6540
|
+
dexieCloud.version = "4.0.1-beta.57";
|
|
6541
6541
|
Dexie.Cloud = dexieCloud;
|
|
6542
6542
|
|
|
6543
6543
|
// In case the SW lives for a while, let it reuse already opened connections:
|