@social-mail/social-mail-client 1.9.94 → 1.9.95

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.
@@ -22803,30 +22803,32 @@ System.register(["tslib", "@web-atoms/core/dist/App", "@web-atoms/core/dist/core
22803
22803
  text: Bind.source(file, x => x.source.error)
22804
22804
  }))
22805
22805
  })));
22806
- try {
22807
- const ct = new CancelToken();
22808
- this.registerDisposable({
22809
- dispose: () => {
22810
- ct.cancel();
22806
+ this.app.runAsync(() => __awaiter(this, void 0, void 0, function* () {
22807
+ try {
22808
+ const ct = new CancelToken();
22809
+ this.registerDisposable({
22810
+ dispose: () => {
22811
+ ct.cancel();
22812
+ }
22813
+ });
22814
+ const tasks = this.files.map(x => x.promise);
22815
+ const files = yield Promise.all(tasks);
22816
+ const extra = this.parameters.extra;
22817
+ this.close({
22818
+ files,
22819
+ extra
22820
+ });
22821
+ } catch (error) {
22822
+ if (CancelToken.isCancelled(error)) {
22823
+ this.cancel(error);
22824
+ return;
22811
22825
  }
22812
- });
22813
- const tasks = this.files.map(x => x.promise);
22814
- const files = yield Promise.all(tasks);
22815
- const extra = this.parameters.extra;
22816
- this.close({
22817
- files,
22818
- extra
22819
- });
22820
- } catch (error) {
22821
- if (CancelToken.isCancelled(error)) {
22826
+ yield PopupService.alert({
22827
+ message: error
22828
+ });
22822
22829
  this.cancel(error);
22823
- return;
22824
22830
  }
22825
- yield PopupService.alert({
22826
- message: error
22827
- });
22828
- this.cancel(error);
22829
- }
22831
+ }));
22830
22832
  });
22831
22833
  }
22832
22834
  };