@powersync/web 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.
|
@@ -17027,7 +17027,8 @@ class TriggerManagerImpl {
|
|
|
17027
17027
|
* we need to ensure we can cleanup the created resources.
|
|
17028
17028
|
* We unfortunately cannot rely on transaction rollback.
|
|
17029
17029
|
*/
|
|
17030
|
-
const cleanup = async (
|
|
17030
|
+
const cleanup = async (options) => {
|
|
17031
|
+
const { context } = options ?? {};
|
|
17031
17032
|
disposeWarningListener();
|
|
17032
17033
|
const doCleanup = async (tx) => {
|
|
17033
17034
|
await this.removeTriggers(tx, triggerIds);
|
|
@@ -17123,7 +17124,7 @@ class TriggerManagerImpl {
|
|
|
17123
17124
|
}
|
|
17124
17125
|
catch (error) {
|
|
17125
17126
|
try {
|
|
17126
|
-
await cleanup();
|
|
17127
|
+
await cleanup(setupContext ? { context: setupContext } : undefined);
|
|
17127
17128
|
}
|
|
17128
17129
|
catch (cleanupError) {
|
|
17129
17130
|
throw new AggregateError([error, cleanupError], 'Error during operation and cleanup');
|