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