@maestro-js/mail 1.0.0-alpha.23 → 1.0.0-alpha.4

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,7 +58,6 @@ interface MailDriver {
58
58
  }[];
59
59
  }>;
60
60
  }
61
- type LoggedMailAttachment = Omit<MailAttachment, 'content'>;
62
61
  type MailLogMessage = ({
63
62
  type: 'event';
64
63
  } & MailEvent) | {
@@ -73,8 +72,9 @@ type MailLogMessage = ({
73
72
  name?: string;
74
73
  email: string;
75
74
  };
76
- attachments: LoggedMailAttachment[];
75
+ attachments: MailAttachment[];
77
76
  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,9 +388,10 @@ 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 ?? []).map(({ content, ...rest }) => rest),
391
+ attachments: envelope.attachments ?? [],
392
392
  subject: envelope.subject,
393
393
  mailable: mailable2,
394
+ content: envelope.content,
394
395
  messageId: message.id,
395
396
  driverName,
396
397
  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.23",
16
- "@maestro-js/service-registry": "1.0.0-alpha.23"
15
+ "@maestro-js/service-registry": "1.0.0-alpha.4",
16
+ "@maestro-js/helpers": "1.0.0-alpha.4"
17
17
  },
18
18
  "peerDependencies": {
19
- "@maestro-js/log": "1.0.0-alpha.23"
19
+ "@maestro-js/log": "1.0.0-alpha.4"
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.23",
27
- "@maestro-js/queue": "1.0.0-alpha.23"
26
+ "@maestro-js/log": "1.0.0-alpha.4",
27
+ "@maestro-js/queue": "1.0.0-alpha.4"
28
28
  },
29
- "version": "1.0.0-alpha.23",
29
+ "version": "1.0.0-alpha.4",
30
30
  "publishConfig": {
31
31
  "access": "restricted"
32
32
  },