@social-mail/social-mail-client 1.2.58 → 1.2.59

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.
@@ -22046,19 +22046,21 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
22046
22046
  if (content) {
22047
22047
  return email.htmlBody = yield content.text();
22048
22048
  }
22049
- for (let i = 0; i < 3; i++) {
22050
- try {
22051
- const text = yield FetchBuilder.get(email.htmlBodyUrl).responseAsText();
22052
- yield cache.put(cacheKey, new Response(text, {
22053
- headers: {
22054
- "cache-control": "public, max-age=86000"
22055
- }
22056
- }));
22057
- return email.htmlBody = text;
22058
- } catch (error) {
22059
- console.error(error);
22049
+ return yield this.run(() => __awaiter(this, void 0, void 0, function* () {
22050
+ for (let i = 0; i < 3; i++) {
22051
+ try {
22052
+ const text = yield FetchBuilder.get(email.htmlBodyUrl).responseAsText();
22053
+ yield cache.put(cacheKey, new Response(text, {
22054
+ headers: {
22055
+ "cache-control": "public, max-age=86000"
22056
+ }
22057
+ }));
22058
+ return email.htmlBody = text;
22059
+ } catch (error) {
22060
+ console.error(error);
22061
+ }
22060
22062
  }
22061
- }
22063
+ }));
22062
22064
  });
22063
22065
  }
22064
22066
  };