dexie-cloud-addon 4.1.0-alpha.15 → 4.1.0-alpha.16

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.15, Fri Oct 18 2024
11
+ * Version 4.1.0-alpha.16, Fri Oct 18 2024
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -8093,7 +8093,7 @@ function dexieCloud(dexie) {
8093
8093
  const syncComplete = new Subject();
8094
8094
  dexie.cloud = {
8095
8095
  // @ts-ignore
8096
- version: "4.1.0-alpha.15",
8096
+ version: "4.1.0-alpha.16",
8097
8097
  options: Object.assign({}, DEFAULT_OPTIONS),
8098
8098
  schema: null,
8099
8099
  get currentUserId() {
@@ -8395,7 +8395,7 @@ function dexieCloud(dexie) {
8395
8395
  }
8396
8396
  }
8397
8397
  // @ts-ignore
8398
- dexieCloud.version = "4.1.0-alpha.15";
8398
+ dexieCloud.version = "4.1.0-alpha.16";
8399
8399
  Dexie.Cloud = dexieCloud;
8400
8400
 
8401
8401
  const ydocTriggers = {};
@@ -8451,8 +8451,8 @@ const createMiddleware = (db) => ({
8451
8451
  for (const { k } of updates) {
8452
8452
  keySet.addKey(k);
8453
8453
  }
8454
- for (const key of keySet) {
8455
- enqueueTrigger(db, tblName, key, trigger);
8454
+ for (const interval of keySet) {
8455
+ enqueueTrigger(db, tblName, interval.from, trigger);
8456
8456
  }
8457
8457
  });
8458
8458
  }
@@ -8497,9 +8497,9 @@ function executeTriggers(triggersToRun) {
8497
8497
  function enqueueTrigger(db, updatesTable, parentId, trigger) {
8498
8498
  scheduledTriggers.push({
8499
8499
  db,
8500
+ updatesTable,
8500
8501
  parentId,
8501
8502
  trigger,
8502
- updatesTable
8503
8503
  });
8504
8504
  }
8505
8505
  function onTransactionCommitted() {