@mantiq/mail 0.5.22 → 0.5.23

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.5.22",
3
+ "version": "0.5.23",
4
4
  "description": "Transactional email — SMTP, Resend, SendGrid, Mailgun, Postmark, SES, markdown templates",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -23,6 +23,9 @@ import { SesTransport } from './drivers/SesTransport.ts'
23
23
  * await manager.driver('resend').send(message)
24
24
  */
25
25
  export class MailManager {
26
+ /** Hook for observability — called after every mail send. */
27
+ static _onMailSent: ((data: { to: string[]; subject: string; mailer: string; duration: number; queued: boolean }) => void) | null = null
28
+
26
29
  private config: MailConfig
27
30
  private drivers = new Map<string, MailTransport>()
28
31
  private customDrivers = new Map<string, () => MailTransport>()