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
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* ==========================================================================
|
|
10
10
|
*
|
|
11
|
-
* Version 4.0.1-beta.
|
|
11
|
+
* Version 4.0.1-beta.41, Sat Jul 01 2023
|
|
12
12
|
*
|
|
13
13
|
* https://dexie.org
|
|
14
14
|
*
|
|
@@ -4644,6 +4644,7 @@
|
|
|
4644
4644
|
if (mode === 'readwrite') {
|
|
4645
4645
|
// Give each transaction a globally unique id.
|
|
4646
4646
|
tx.txid = randomString(16);
|
|
4647
|
+
tx.opCount = 0;
|
|
4647
4648
|
// Introduce the concept of current user that lasts through the entire transaction.
|
|
4648
4649
|
// This is important because the tracked mutations must be connected to the user.
|
|
4649
4650
|
tx.currentUser = currentUserObservable.value;
|
|
@@ -4750,6 +4751,7 @@
|
|
|
4750
4751
|
trans.mutationsAdded = true;
|
|
4751
4752
|
const { txid, currentUser: { userId } } = trans;
|
|
4752
4753
|
const { type } = req;
|
|
4754
|
+
const opNo = ++trans.opCount;
|
|
4753
4755
|
return table.mutate(req).then((res) => {
|
|
4754
4756
|
const { numFailures: hasFailures, failures } = res;
|
|
4755
4757
|
let keys = type === 'delete' ? req.keys : res.results;
|
|
@@ -4764,6 +4766,7 @@
|
|
|
4764
4766
|
? {
|
|
4765
4767
|
type: 'delete',
|
|
4766
4768
|
ts,
|
|
4769
|
+
opNo,
|
|
4767
4770
|
keys,
|
|
4768
4771
|
criteria: req.criteria,
|
|
4769
4772
|
txid,
|
|
@@ -6086,7 +6089,7 @@
|
|
|
6086
6089
|
});
|
|
6087
6090
|
const syncComplete = new rxjs.Subject();
|
|
6088
6091
|
dexie.cloud = {
|
|
6089
|
-
version: '4.0.1-beta.
|
|
6092
|
+
version: '4.0.1-beta.41',
|
|
6090
6093
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
6091
6094
|
schema: null,
|
|
6092
6095
|
get currentUserId() {
|
|
@@ -6347,7 +6350,7 @@
|
|
|
6347
6350
|
});
|
|
6348
6351
|
}
|
|
6349
6352
|
}
|
|
6350
|
-
dexieCloud.version = '4.0.1-beta.
|
|
6353
|
+
dexieCloud.version = '4.0.1-beta.41';
|
|
6351
6354
|
Dexie__default["default"].Cloud = dexieCloud;
|
|
6352
6355
|
|
|
6353
6356
|
exports["default"] = dexieCloud;
|