@powersync/common 0.0.0-dev-20260311081226 → 0.0.0-dev-20260311103504

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/bundle.mjs CHANGED
@@ -12543,7 +12543,8 @@ class TriggerManagerImpl {
12543
12543
  * we need to ensure we can cleanup the created resources.
12544
12544
  * We unfortunately cannot rely on transaction rollback.
12545
12545
  */
12546
- const cleanup = async (context) => {
12546
+ const cleanup = async (options) => {
12547
+ const { context } = options ?? {};
12547
12548
  disposeWarningListener();
12548
12549
  const doCleanup = async (tx) => {
12549
12550
  await this.removeTriggers(tx, triggerIds);
@@ -12639,7 +12640,7 @@ class TriggerManagerImpl {
12639
12640
  }
12640
12641
  catch (error) {
12641
12642
  try {
12642
- await cleanup();
12643
+ await cleanup(setupContext ? { context: setupContext } : undefined);
12643
12644
  }
12644
12645
  catch (cleanupError) {
12645
12646
  throw new AggregateError([error, cleanupError], 'Error during operation and cleanup');