@types/nodemailer 6.4.3 → 6.4.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.
nodemailer/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Nodemailer (https://github.com/nodema
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nodemailer.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 07 Jul 2021 16:31:33 GMT
11
+ * Last updated: Thu, 08 Jul 2021 18:51:33 GMT
12
12
  * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
13
13
  * Global values: none
14
14
 
@@ -25,6 +25,10 @@ declare namespace JSONTransport {
25
25
  messageId: string;
26
26
  /** JSON string */
27
27
  message: string;
28
+ accepted: Array<string | Mail.Address>;
29
+ rejected: Array<string | Mail.Address>;
30
+ pending: Array<string | Mail.Address>;
31
+ response: string;
28
32
  }
29
33
  }
30
34
 
@@ -25,6 +25,9 @@ declare namespace SendmailTransport {
25
25
  envelope: MimeNode.Envelope;
26
26
  messageId: string;
27
27
  response: string;
28
+ accepted: Array<string | Mail.Address>;
29
+ rejected: Array<string | Mail.Address>;
30
+ pending: Array<string | Mail.Address>;
28
31
  }
29
32
  }
30
33
 
@@ -41,7 +44,10 @@ declare class SendmailTransport implements Transport<SendmailTransport.SentMessa
41
44
  constructor(options: SendmailTransport.Options);
42
45
 
43
46
  /** Compiles a mailcomposer message and forwards it to handler that sends it */
44
- send(mail: MailMessage<SendmailTransport.SentMessageInfo>, callback: (err: Error | null, info: SendmailTransport.SentMessageInfo) => void): void;
47
+ send(
48
+ mail: MailMessage<SendmailTransport.SentMessageInfo>,
49
+ callback: (err: Error | null, info: SendmailTransport.SentMessageInfo) => void,
50
+ ): void;
45
51
  }
46
52
 
47
53
  export = SendmailTransport;
@@ -80,6 +80,9 @@ declare namespace SESTransport {
80
80
  /** the Message-ID header value. This value is derived from the response of SES API, so it differs from the Message-ID values used in logging. */
81
81
  messageId: string;
82
82
  response: string;
83
+ accepted: Array<string | Mail.Address>;
84
+ rejected: Array<string | Mail.Address>;
85
+ pending: Array<string | Mail.Address>;
83
86
  }
84
87
  }
85
88
 
@@ -50,6 +50,10 @@ declare namespace SMTPTransport {
50
50
  envelope: MimeNode.Envelope;
51
51
  /** most transports should return the final Message-Id value used with this property */
52
52
  messageId: string;
53
+ accepted: Array<string | Mail.Address>;
54
+ rejected: Array<string | Mail.Address>;
55
+ pending: Array<string | Mail.Address>;
56
+ response: string;
53
57
  }
54
58
  }
55
59
 
@@ -69,10 +73,15 @@ declare class SMTPTransport extends EventEmitter implements Transport<SMTPTransp
69
73
  /** Placeholder function for creating proxy sockets. This method immediatelly returns without a socket */
70
74
  getSocket(options: SMTPTransport.Options, callback: (err: Error | null, socketOptions: object) => void): void;
71
75
 
72
- getAuth(authOpts: SMTPConnection.AuthenticationTypeLogin | SMTPConnection.AuthenticationTypeOAuth2): SMTPTransport.AuthenticationType;
76
+ getAuth(
77
+ authOpts: SMTPConnection.AuthenticationTypeLogin | SMTPConnection.AuthenticationTypeOAuth2,
78
+ ): SMTPTransport.AuthenticationType;
73
79
 
74
80
  /** Sends an e-mail using the selected settings */
75
- send(mail: MailMessage<SMTPTransport.SentMessageInfo>, callback: (err: Error | null, info: SMTPTransport.SentMessageInfo) => void): void;
81
+ send(
82
+ mail: MailMessage<SMTPTransport.SentMessageInfo>,
83
+ callback: (err: Error | null, info: SMTPTransport.SentMessageInfo) => void,
84
+ ): void;
76
85
 
77
86
  /** Verifies SMTP configuration */
78
87
  verify(callback: (err: Error | null, success: true) => void): void;
@@ -29,6 +29,10 @@ declare namespace StreamTransport {
29
29
  messageId: string;
30
30
  /** either stream (default) of buffer depending on the options */
31
31
  message: Buffer | Readable;
32
+ accepted: Array<string | Mail.Address>;
33
+ rejected: Array<string | Mail.Address>;
34
+ pending: Array<string | Mail.Address>;
35
+ response: string;
32
36
  }
33
37
  }
34
38
 
nodemailer/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/nodemailer",
3
- "version": "6.4.3",
3
+ "version": "6.4.4",
4
4
  "description": "TypeScript definitions for Nodemailer",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nodemailer",
6
6
  "license": "MIT",
@@ -32,6 +32,6 @@
32
32
  "dependencies": {
33
33
  "@types/node": "*"
34
34
  },
35
- "typesPublisherContentHash": "9a04e35281c1609ec1cf861766baeafdf0e42e262b2f3cd17b9f4819f9d36b40",
35
+ "typesPublisherContentHash": "aabfa060f1f3a5e90fafe4b0747dd2dc57a19d35f7a2cf9942a0595d5bc067ee",
36
36
  "typeScriptVersion": "3.6"
37
37
  }