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

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.13, Thu Oct 17 2024
11
+ * Version 4.1.0-alpha.15, Fri Oct 18 2024
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -8096,7 +8096,7 @@
8096
8096
  const syncComplete = new rxjs.Subject();
8097
8097
  dexie.cloud = {
8098
8098
  // @ts-ignore
8099
- version: "4.1.0-alpha.13",
8099
+ version: "4.1.0-alpha.15",
8100
8100
  options: Object.assign({}, DEFAULT_OPTIONS),
8101
8101
  schema: null,
8102
8102
  get currentUserId() {
@@ -8398,7 +8398,7 @@
8398
8398
  }
8399
8399
  }
8400
8400
  // @ts-ignore
8401
- dexieCloud.version = "4.1.0-alpha.13";
8401
+ dexieCloud.version = "4.1.0-alpha.15";
8402
8402
  Dexie.Cloud = dexieCloud;
8403
8403
 
8404
8404
  const ydocTriggers = {};
@@ -8432,7 +8432,7 @@
8432
8432
  }
8433
8433
  }
8434
8434
  else {
8435
- enqueueTrigger(tblName, primaryKey, trigger);
8435
+ enqueueTrigger(db, tblName, primaryKey, trigger);
8436
8436
  }
8437
8437
  }
8438
8438
  break;
@@ -8455,7 +8455,7 @@
8455
8455
  keySet.addKey(k);
8456
8456
  }
8457
8457
  for (const key of keySet) {
8458
- enqueueTrigger(tblName, key, trigger);
8458
+ enqueueTrigger(db, tblName, key, trigger);
8459
8459
  }
8460
8460
  });
8461
8461
  }
@@ -8486,7 +8486,7 @@
8486
8486
  const Y = $Y(db);
8487
8487
  const yDoc = new Y.Doc();
8488
8488
  for (const update of updates) {
8489
- Y.applyUpdateV2(yDoc, update);
8489
+ Y.applyUpdateV2(yDoc, update.u);
8490
8490
  }
8491
8491
  try {
8492
8492
  yield trigger(yDoc, parentId);
@@ -8497,11 +8497,12 @@
8497
8497
  }
8498
8498
  });
8499
8499
  }
8500
- function enqueueTrigger(updatesTable, parentId, trigger) {
8501
- var _a;
8502
- ((_a = scheduledTriggers[updatesTable]) !== null && _a !== void 0 ? _a : (scheduledTriggers[updatesTable] = [])).push({
8500
+ function enqueueTrigger(db, updatesTable, parentId, trigger) {
8501
+ scheduledTriggers.push({
8502
+ db,
8503
8503
  parentId,
8504
8504
  trigger,
8505
+ updatesTable
8505
8506
  });
8506
8507
  }
8507
8508
  function onTransactionCommitted() {