@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.
- package/dist/admin/AdminAppIndex.pack.js +14 -12
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.js +14 -12
- package/dist/public/channel/ChannelView.pack.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +1 -1
- package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
- package/dist/services/email/EmailContentDownloader.d.ts.map +1 -1
- package/dist/services/email/EmailContentDownloader.js +14 -12
- package/dist/services/email/EmailContentDownloader.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +14 -12
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/services/email/EmailContentDownloader.ts +16 -14
|
@@ -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
|
-
|
|
22050
|
-
|
|
22051
|
-
|
|
22052
|
-
|
|
22053
|
-
|
|
22054
|
-
|
|
22055
|
-
|
|
22056
|
-
|
|
22057
|
-
|
|
22058
|
-
|
|
22059
|
-
|
|
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
|
};
|