dexie-cloud-addon 4.0.1-beta.41 → 4.0.1-beta.42
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 +7 -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 +6 -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 +7 -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 +6 -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
|
@@ -329,7 +329,10 @@ function listClientChanges(mutationTables, db, { since = {}, limit = Infinity }
|
|
|
329
329
|
}));
|
|
330
330
|
})));
|
|
331
331
|
// Sort by time to get a true order of the operations (between tables)
|
|
332
|
-
const sorted = flatten(allMutsOnTables).sort((a, b) => a.mut.
|
|
332
|
+
const sorted = flatten(allMutsOnTables).sort((a, b) => a.mut.txid === b.mut.txid
|
|
333
|
+
? a.mut.opNo - b.mut.opNo // Within same transaction, sort by opNo
|
|
334
|
+
: a.mut.ts - b.mut.ts // Different transactions - sort by timestamp when mutation resolved
|
|
335
|
+
);
|
|
333
336
|
const result = [];
|
|
334
337
|
let currentEntry = null;
|
|
335
338
|
let currentTxid = null;
|
|
@@ -4437,7 +4440,7 @@ function dexieCloud(dexie) {
|
|
|
4437
4440
|
});
|
|
4438
4441
|
const syncComplete = new Subject();
|
|
4439
4442
|
dexie.cloud = {
|
|
4440
|
-
version: '4.0.1-beta.
|
|
4443
|
+
version: '4.0.1-beta.42',
|
|
4441
4444
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
4442
4445
|
schema: null,
|
|
4443
4446
|
get currentUserId() {
|
|
@@ -4698,7 +4701,7 @@ function dexieCloud(dexie) {
|
|
|
4698
4701
|
});
|
|
4699
4702
|
}
|
|
4700
4703
|
}
|
|
4701
|
-
dexieCloud.version = '4.0.1-beta.
|
|
4704
|
+
dexieCloud.version = '4.0.1-beta.42';
|
|
4702
4705
|
Dexie.Cloud = dexieCloud;
|
|
4703
4706
|
|
|
4704
4707
|
// In case the SW lives for a while, let it reuse already opened connections:
|