@social-mail/social-mail-web-server 1.4.896 → 1.4.897

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.4.896",
3
+ "version": "1.4.897",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -303,7 +303,8 @@ export class EmailLog {
303
303
 
304
304
  @ReadOnlyJsonProperty
305
305
  public get url() {
306
- return apiPath(`/api/emails/logs/${this.logID}/${this.fileName}`);
306
+ const ext = /\.(eml|html)$/i.test(this.fileName) ? "" : ".txt";
307
+ return apiPath(`/api/emails/logs/${this.logID}/${this.fileName}${ext}`);
307
308
  }
308
309
  public set url(v) {
309
310
  // do nothing...