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
|
*
|
|
@@ -2501,7 +2501,7 @@
|
|
|
2501
2501
|
if (response.type !== 'otp-sent')
|
|
2502
2502
|
throw new Error(`Unexpected response from ${url}/token`);
|
|
2503
2503
|
const otp = yield promptForOTP(userInteraction, tokenRequest.email);
|
|
2504
|
-
const tokenRequest2 = Object.assign(Object.assign({}, tokenRequest), { otp: otp || '', otp_id: response.otp_id });
|
|
2504
|
+
const tokenRequest2 = Object.assign(Object.assign({}, tokenRequest), { otp: otp || '', otp_id: response.otp_id, public_key });
|
|
2505
2505
|
let res2 = yield fetch(`${url}/token`, {
|
|
2506
2506
|
body: JSON.stringify(tokenRequest2),
|
|
2507
2507
|
method: 'post',
|
|
@@ -3622,7 +3622,7 @@
|
|
|
3622
3622
|
const res = yield fetch(`${databaseUrl}/sync`, {
|
|
3623
3623
|
method: 'post',
|
|
3624
3624
|
headers,
|
|
3625
|
-
credentials: 'include',
|
|
3625
|
+
credentials: 'include', // For Arr Affinity cookie only, for better Rate-Limit counting only.
|
|
3626
3626
|
body: TSON.stringify(syncRequest),
|
|
3627
3627
|
});
|
|
3628
3628
|
//const contentLength = Number(res.headers.get('content-length'));
|
|
@@ -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);
|
|
@@ -6267,7 +6267,7 @@
|
|
|
6267
6267
|
const syncComplete = new rxjs.Subject();
|
|
6268
6268
|
dexie.cloud = {
|
|
6269
6269
|
// @ts-ignore
|
|
6270
|
-
version: "4.0.1-beta.
|
|
6270
|
+
version: "4.0.1-beta.57",
|
|
6271
6271
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
6272
6272
|
schema: null,
|
|
6273
6273
|
get currentUserId() {
|
|
@@ -6544,7 +6544,7 @@
|
|
|
6544
6544
|
}
|
|
6545
6545
|
}
|
|
6546
6546
|
// @ts-ignore
|
|
6547
|
-
dexieCloud.version = "4.0.1-beta.
|
|
6547
|
+
dexieCloud.version = "4.0.1-beta.57";
|
|
6548
6548
|
Dexie.Cloud = dexieCloud;
|
|
6549
6549
|
|
|
6550
6550
|
exports.default = dexieCloud;
|