dexie-cloud-addon 4.0.1-rc.1 → 4.0.1-rc.3
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 +8 -3
- 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 +8 -3
- 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 +8 -3
- 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 +8 -3
- 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 +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* ==========================================================================
|
|
10
10
|
*
|
|
11
|
-
* Version 4.0.1-rc.
|
|
11
|
+
* Version 4.0.1-rc.3, Wed Mar 20 2024
|
|
12
12
|
*
|
|
13
13
|
* https://dexie.org
|
|
14
14
|
*
|
|
@@ -5433,6 +5433,11 @@
|
|
|
5433
5433
|
}
|
|
5434
5434
|
return new rxjs.BehaviorSubject([userLogin, syncState]);
|
|
5435
5435
|
}), switchMap(([userLogin, syncState]) => __awaiter(this, void 0, void 0, function* () { return [userLogin, yield computeRealmSetHash(syncState)]; })), distinctUntilChanged(([prevUser, prevHash], [currUser, currHash]) => prevUser === currUser && prevHash === currHash), switchMap(([userLogin, realmSetHash]) => {
|
|
5436
|
+
var _a;
|
|
5437
|
+
if (!((_a = db.cloud.persistedSyncState) === null || _a === void 0 ? void 0 : _a.value)) {
|
|
5438
|
+
// Restart the flow if persistedSyncState is not yet available.
|
|
5439
|
+
return createObservable();
|
|
5440
|
+
}
|
|
5436
5441
|
// Let server end query changes from last entry of same client-ID and forward.
|
|
5437
5442
|
// If no new entries, server won't bother the client. If new entries, server sends only those
|
|
5438
5443
|
// and the baseRev of the last from same client-ID.
|
|
@@ -6288,7 +6293,7 @@
|
|
|
6288
6293
|
const syncComplete = new rxjs.Subject();
|
|
6289
6294
|
dexie.cloud = {
|
|
6290
6295
|
// @ts-ignore
|
|
6291
|
-
version: "4.0.1-rc.
|
|
6296
|
+
version: "4.0.1-rc.3",
|
|
6292
6297
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
6293
6298
|
schema: null,
|
|
6294
6299
|
get currentUserId() {
|
|
@@ -6565,7 +6570,7 @@
|
|
|
6565
6570
|
}
|
|
6566
6571
|
}
|
|
6567
6572
|
// @ts-ignore
|
|
6568
|
-
dexieCloud.version = "4.0.1-rc.
|
|
6573
|
+
dexieCloud.version = "4.0.1-rc.3";
|
|
6569
6574
|
Dexie.Cloud = dexieCloud;
|
|
6570
6575
|
|
|
6571
6576
|
exports.default = dexieCloud;
|