@maestro-js/mail 1.0.0-alpha.21 → 1.0.0-alpha.22

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/index.d.ts CHANGED
@@ -58,6 +58,7 @@ interface MailDriver {
58
58
  }[];
59
59
  }>;
60
60
  }
61
+ type LoggedMailAttachment = Omit<MailAttachment, 'content'>;
61
62
  type MailLogMessage = ({
62
63
  type: 'event';
63
64
  } & MailEvent) | {
@@ -72,9 +73,8 @@ type MailLogMessage = ({
72
73
  name?: string;
73
74
  email: string;
74
75
  };
75
- attachments: MailAttachment[];
76
+ attachments: LoggedMailAttachment[];
76
77
  subject: string | null;
77
- content: MailContent;
78
78
  headers: MailHeaders;
79
79
  category: string | null;
80
80
  extras: Record<string, string>;
package/dist/index.js CHANGED
@@ -388,10 +388,9 @@ function create(config) {
388
388
  type: "envelope",
389
389
  to: to || { email: message.email },
390
390
  from: typeof envelope.from === "string" ? { email: envelope.from } : envelope.from,
391
- attachments: envelope.attachments ?? [],
391
+ attachments: (envelope.attachments ?? []).map(({ content, ...rest }) => rest),
392
392
  subject: envelope.subject,
393
393
  mailable: mailable2,
394
- content: envelope.content,
395
394
  messageId: message.id,
396
395
  driverName,
397
396
  headers: envelope.headers ?? {},
package/package.json CHANGED
@@ -12,21 +12,21 @@
12
12
  "ics": "^3.8.1",
13
13
  "iso-fns2": "npm:iso-fns@2.0.0-alpha.26",
14
14
  "nodemailer": "^7.0.5",
15
- "@maestro-js/helpers": "1.0.0-alpha.21",
16
- "@maestro-js/service-registry": "1.0.0-alpha.21"
15
+ "@maestro-js/helpers": "1.0.0-alpha.22",
16
+ "@maestro-js/service-registry": "1.0.0-alpha.22"
17
17
  },
18
18
  "peerDependencies": {
19
- "@maestro-js/log": "1.0.0-alpha.21"
19
+ "@maestro-js/log": "1.0.0-alpha.22"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@react-email/render": "0.0.7",
23
23
  "@types/node": "^22.19.11",
24
24
  "@types/nodemailer": "^6.4.17",
25
25
  "@types/react": "^19.0.0",
26
- "@maestro-js/log": "1.0.0-alpha.21",
27
- "@maestro-js/queue": "1.0.0-alpha.21"
26
+ "@maestro-js/log": "1.0.0-alpha.22",
27
+ "@maestro-js/queue": "1.0.0-alpha.22"
28
28
  },
29
- "version": "1.0.0-alpha.21",
29
+ "version": "1.0.0-alpha.22",
30
30
  "publishConfig": {
31
31
  "access": "restricted"
32
32
  },