dexie-cloud-addon 4.0.1-rc.1 → 4.0.1-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/dist/modern/dexie-cloud-addon.js +5 -4
- 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 +5 -4
- 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 +5 -4
- 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 +5 -4
- 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.2, Wed Mar 20 2024
|
|
12
12
|
*
|
|
13
13
|
* https://dexie.org
|
|
14
14
|
*
|
|
@@ -5430,10 +5430,11 @@ function connectWebSocket(db) {
|
|
|
5430
5430
|
}
|
|
5431
5431
|
return new BehaviorSubject([userLogin, syncState]);
|
|
5432
5432
|
}), 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]) => {
|
|
5433
|
+
var _a;
|
|
5433
5434
|
// Let server end query changes from last entry of same client-ID and forward.
|
|
5434
5435
|
// If no new entries, server won't bother the client. If new entries, server sends only those
|
|
5435
5436
|
// and the baseRev of the last from same client-ID.
|
|
5436
|
-
if (userLogin) {
|
|
5437
|
+
if (userLogin && ((_a = db.cloud.persistedSyncState) === null || _a === void 0 ? void 0 : _a.value)) {
|
|
5437
5438
|
return new WSObservable(db.cloud.options.databaseUrl, db.cloud.persistedSyncState.value.serverRevision, realmSetHash, db.cloud.persistedSyncState.value.clientIdentity, messageProducer, db.cloud.webSocketStatus, userLogin.accessToken, userLogin.accessTokenExpiration);
|
|
5438
5439
|
}
|
|
5439
5440
|
else {
|
|
@@ -6285,7 +6286,7 @@ function dexieCloud(dexie) {
|
|
|
6285
6286
|
const syncComplete = new Subject();
|
|
6286
6287
|
dexie.cloud = {
|
|
6287
6288
|
// @ts-ignore
|
|
6288
|
-
version: "4.0.1-rc.
|
|
6289
|
+
version: "4.0.1-rc.2",
|
|
6289
6290
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
6290
6291
|
schema: null,
|
|
6291
6292
|
get currentUserId() {
|
|
@@ -6562,7 +6563,7 @@ function dexieCloud(dexie) {
|
|
|
6562
6563
|
}
|
|
6563
6564
|
}
|
|
6564
6565
|
// @ts-ignore
|
|
6565
|
-
dexieCloud.version = "4.0.1-rc.
|
|
6566
|
+
dexieCloud.version = "4.0.1-rc.2";
|
|
6566
6567
|
Dexie.Cloud = dexieCloud;
|
|
6567
6568
|
|
|
6568
6569
|
export { dexieCloud as default, dexieCloud, getTiedObjectId, getTiedRealmId, resolveText };
|