@nestjs-modules/mailer 2.1.2 → 2.1.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`292a0f4`](https://github.com/nest-modules/mailer/commit/292a0f41aa147e7cb508d48a012b6645f8be26f5) Thanks [@juandav](https://github.com/juandav)! - Allow all transport types for additional transports and addTransporter method.
8
+
3
9
  ## 2.1.2
4
10
 
5
11
  ### Patch Changes
@@ -12,7 +12,7 @@ export interface MailerOptions {
12
12
  defaults?: Options;
13
13
  transport?: TransportType;
14
14
  transports?: {
15
- [name: string]: SMTPTransport | SMTPTransport.Options | string;
15
+ [name: string]: TransportType;
16
16
  };
17
17
  template?: {
18
18
  dir?: string;
@@ -1,6 +1,5 @@
1
1
  import { SentMessageInfo } from 'nodemailer';
2
- import * as smtpTransport from 'nodemailer/lib/smtp-transport';
3
- import { MailerOptions } from './interfaces/mailer-options.interface';
2
+ import { MailerOptions, TransportType } from './interfaces/mailer-options.interface';
4
3
  import { MailerTransportFactory as IMailerTransportFactory } from './interfaces/mailer-transport-factory.interface';
5
4
  import { ISendMailOptions } from './interfaces/send-mail-options.interface';
6
5
  export declare class MailerService {
@@ -18,5 +17,5 @@ export declare class MailerService {
18
17
  private verifyTransporter;
19
18
  verifyAllTransporters(): Promise<boolean>;
20
19
  sendMail(sendMailOptions: ISendMailOptions): Promise<SentMessageInfo>;
21
- addTransporter(transporterName: string, config: string | smtpTransport | smtpTransport.Options): string;
20
+ addTransporter(transporterName: string, config: TransportType): string;
22
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs-modules/mailer",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "private": false,
5
5
  "description": "NestJS - a mailer module (@mailer)",
6
6
  "keywords": [