dexie-cloud-addon 4.1.0-alpha.17 → 4.1.0-alpha.19

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.
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * ==========================================================================
10
10
  *
11
- * Version 4.1.0-alpha.17, Fri Oct 18 2024
11
+ * Version 4.1.0-alpha.19, Fri Oct 18 2024
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -6576,7 +6576,10 @@
6576
6576
  return keys.length > 0 || criteria
6577
6577
  ? mutsTable
6578
6578
  .mutate({ type: 'add', trans, values: [mut] }) // Log entry
6579
- .then(() => res) // Return original response
6579
+ .then(() => {
6580
+ trans.mutationsAdded = true; // Mark transaction as having added mutations to trigger eager sync
6581
+ return res; // Return original response
6582
+ })
6580
6583
  : res;
6581
6584
  });
6582
6585
  }
@@ -8089,7 +8092,7 @@
8089
8092
  const syncComplete = new rxjs.Subject();
8090
8093
  dexie.cloud = {
8091
8094
  // @ts-ignore
8092
- version: "4.1.0-alpha.17",
8095
+ version: "4.1.0-alpha.19",
8093
8096
  options: Object.assign({}, DEFAULT_OPTIONS),
8094
8097
  schema: null,
8095
8098
  get currentUserId() {
@@ -8391,7 +8394,7 @@
8391
8394
  }
8392
8395
  }
8393
8396
  // @ts-ignore
8394
- dexieCloud.version = "4.1.0-alpha.17";
8397
+ dexieCloud.version = "4.1.0-alpha.19";
8395
8398
  Dexie.Cloud = dexieCloud;
8396
8399
 
8397
8400
  // In case the SW lives for a while, let it reuse already opened connections: