@travetto/email-nodemailer 5.0.0-rc.7 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/email-nodemailer",
3
- "version": "5.0.0-rc.7",
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.7",
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
- // eslint-disable-next-line @typescript-eslint/consistent-type-assertions
53
- return res as S;
53
+ return castTo(res);
54
54
  }
55
55
  }