@travetto/email-nodemailer 5.0.0-rc.8 → 5.0.0-rc.9
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 +2 -2
- package/src/nodemailer.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/email-nodemailer",
|
|
3
|
-
"version": "5.0.0-rc.
|
|
3
|
+
"version": "5.0.0-rc.9",
|
|
4
4
|
"description": "Email transmission module.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"email",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"directory": "module/email-nodemailer"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@travetto/email": "^5.0.0-rc.
|
|
27
|
+
"@travetto/email": "^5.0.0-rc.9",
|
|
28
28
|
"@types/nodemailer": "^6.4.15",
|
|
29
29
|
"nodemailer": "^6.9.14"
|
|
30
30
|
},
|
package/src/nodemailer.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type ses from 'nodemailer/lib/ses-transport';
|
|
|
5
5
|
import type sendmail from 'nodemailer/lib/sendmail-transport';
|
|
6
6
|
|
|
7
7
|
import { MailTransport, EmailOptions, SentEmail } from '@travetto/email';
|
|
8
|
+
import { castTo } from '@travetto/runtime';
|
|
8
9
|
|
|
9
10
|
type Transport = TransportType | json.Options | smtp.Options | ses.Options | sendmail.Options;
|
|
10
11
|
|
|
@@ -49,7 +50,6 @@ export class NodemailerTransport implements MailTransport {
|
|
|
49
50
|
console.error('Unable to send emails', { recipientCount: res.rejected?.length });
|
|
50
51
|
}
|
|
51
52
|
|
|
52
|
-
|
|
53
|
-
return res as S;
|
|
53
|
+
return castTo(res);
|
|
54
54
|
}
|
|
55
55
|
}
|