@mantiq/mail 0.6.1 → 0.7.1

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": "@mantiq/mail",
3
- "version": "0.6.1",
3
+ "version": "0.7.1",
4
4
  "description": "Transactional email — SMTP, Resend, SendGrid, Mailgun, Postmark, SES, markdown templates",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -59,10 +59,9 @@ export class MailgunTransport implements MailTransport {
59
59
 
60
60
  // Attachments
61
61
  for (const attachment of message.attachments) {
62
- const content = typeof attachment.content === 'string'
63
- ? new Blob([attachment.content], { type: attachment.contentType || 'application/octet-stream' })
64
- : new Blob([attachment.content], { type: attachment.contentType || 'application/octet-stream' })
65
-
62
+ const content = new Blob([attachment.content as any], {
63
+ type: attachment.contentType || 'application/octet-stream',
64
+ })
66
65
  formData.append('attachment', content, attachment.filename)
67
66
  }
68
67