dexie-cloud-addon 4.0.1-beta.40 → 4.0.1-beta.41
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 -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 +5 -2
- 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/types/types/TXExpandos.d.ts +1 -0
- package/dist/umd/dexie-cloud-addon.js +6 -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 +5 -2
- 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
|
@@ -3005,6 +3005,7 @@
|
|
|
3005
3005
|
if (mode === 'readwrite') {
|
|
3006
3006
|
// Give each transaction a globally unique id.
|
|
3007
3007
|
tx.txid = randomString$1(16);
|
|
3008
|
+
tx.opCount = 0;
|
|
3008
3009
|
// Introduce the concept of current user that lasts through the entire transaction.
|
|
3009
3010
|
// This is important because the tracked mutations must be connected to the user.
|
|
3010
3011
|
tx.currentUser = currentUserObservable.value;
|
|
@@ -3111,6 +3112,7 @@
|
|
|
3111
3112
|
trans.mutationsAdded = true;
|
|
3112
3113
|
const { txid, currentUser: { userId } } = trans;
|
|
3113
3114
|
const { type } = req;
|
|
3115
|
+
const opNo = ++trans.opCount;
|
|
3114
3116
|
return table.mutate(req).then((res) => {
|
|
3115
3117
|
const { numFailures: hasFailures, failures } = res;
|
|
3116
3118
|
let keys = type === 'delete' ? req.keys : res.results;
|
|
@@ -3125,6 +3127,7 @@
|
|
|
3125
3127
|
? {
|
|
3126
3128
|
type: 'delete',
|
|
3127
3129
|
ts,
|
|
3130
|
+
opNo,
|
|
3128
3131
|
keys,
|
|
3129
3132
|
criteria: req.criteria,
|
|
3130
3133
|
txid,
|
|
@@ -4440,7 +4443,7 @@
|
|
|
4440
4443
|
});
|
|
4441
4444
|
const syncComplete = new rxjs.Subject();
|
|
4442
4445
|
dexie.cloud = {
|
|
4443
|
-
version: '4.0.1-beta.
|
|
4446
|
+
version: '4.0.1-beta.41',
|
|
4444
4447
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
4445
4448
|
schema: null,
|
|
4446
4449
|
get currentUserId() {
|
|
@@ -4701,7 +4704,7 @@
|
|
|
4701
4704
|
});
|
|
4702
4705
|
}
|
|
4703
4706
|
}
|
|
4704
|
-
dexieCloud.version = '4.0.1-beta.
|
|
4707
|
+
dexieCloud.version = '4.0.1-beta.41';
|
|
4705
4708
|
Dexie__default["default"].Cloud = dexieCloud;
|
|
4706
4709
|
|
|
4707
4710
|
// In case the SW lives for a while, let it reuse already opened connections:
|