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