@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.
@@ -10023,7 +10023,8 @@ class TriggerManagerImpl {
10023
10023
  * we need to ensure we can cleanup the created resources.
10024
10024
  * We unfortunately cannot rely on transaction rollback.
10025
10025
  */
10026
- const cleanup = async (context) => {
10026
+ const cleanup = async (options) => {
10027
+ const { context } = options ?? {};
10027
10028
  disposeWarningListener();
10028
10029
  const doCleanup = async (tx) => {
10029
10030
  await this.removeTriggers(tx, triggerIds);
@@ -10119,7 +10120,7 @@ class TriggerManagerImpl {
10119
10120
  }
10120
10121
  catch (error) {
10121
10122
  try {
10122
- await cleanup();
10123
+ await cleanup(setupContext ? { context: setupContext } : undefined);
10123
10124
  }
10124
10125
  catch (cleanupError) {
10125
10126
  throw new AggregateError([error, cleanupError], 'Error during operation and cleanup');