@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.
|
@@ -15643,7 +15643,8 @@ class TriggerManagerImpl {
|
|
|
15643
15643
|
* we need to ensure we can cleanup the created resources.
|
|
15644
15644
|
* We unfortunately cannot rely on transaction rollback.
|
|
15645
15645
|
*/
|
|
15646
|
-
const cleanup = async (
|
|
15646
|
+
const cleanup = async (options) => {
|
|
15647
|
+
const { context } = options ?? {};
|
|
15647
15648
|
disposeWarningListener();
|
|
15648
15649
|
const doCleanup = async (tx) => {
|
|
15649
15650
|
await this.removeTriggers(tx, triggerIds);
|
|
@@ -15739,7 +15740,7 @@ class TriggerManagerImpl {
|
|
|
15739
15740
|
}
|
|
15740
15741
|
catch (error) {
|
|
15741
15742
|
try {
|
|
15742
|
-
await cleanup();
|
|
15743
|
+
await cleanup(setupContext ? { context: setupContext } : undefined);
|
|
15743
15744
|
}
|
|
15744
15745
|
catch (cleanupError) {
|
|
15745
15746
|
throw new AggregateError([error, cleanupError], 'Error during operation and cleanup');
|