@types/nodemailer 6.4.3 → 6.4.6
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 +1 -1
- nodemailer/lib/{addressparser.d.ts → addressparser/index.d.ts} +0 -0
- nodemailer/lib/{base64.d.ts → base64/index.d.ts} +0 -0
- nodemailer/lib/{json-transport.d.ts → json-transport/index.d.ts} +9 -5
- nodemailer/lib/{mail-composer.d.ts → mail-composer/index.d.ts} +2 -2
- nodemailer/lib/mailer/index.d.ts +2 -2
- nodemailer/lib/{qp.d.ts → qp/index.d.ts} +0 -0
- nodemailer/lib/sendmail-transport/index.d.ts +7 -1
- nodemailer/lib/{ses-transport.d.ts → ses-transport/index.d.ts} +8 -5
- nodemailer/lib/{shared.d.ts → shared/index.d.ts} +1 -1
- nodemailer/lib/{smtp-transport.d.ts → smtp-transport/index.d.ts} +18 -9
- nodemailer/lib/{stream-transport.d.ts → stream-transport/index.d.ts} +9 -5
- nodemailer/lib/{well-known.d.ts → well-known/index.d.ts} +1 -1
- nodemailer/lib/{xoauth2.d.ts → xoauth2/index.d.ts} +1 -1
- nodemailer/package.json +3 -3
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:
|
|
11
|
+
* Last updated: Mon, 12 Sep 2022 22:02:41 GMT
|
|
12
12
|
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
|
|
13
13
|
* Global values: none
|
|
14
14
|
|
|
File without changes
|
|
File without changes
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import { EventEmitter } from 'events';
|
|
4
4
|
|
|
5
|
-
import { Transport, TransportOptions } from '
|
|
5
|
+
import { Transport, TransportOptions } from '../..';
|
|
6
6
|
|
|
7
|
-
import * as shared from '
|
|
7
|
+
import * as shared from '../shared';
|
|
8
8
|
|
|
9
|
-
import Mail = require('
|
|
10
|
-
import MailMessage = require('
|
|
11
|
-
import MimeNode = require('
|
|
9
|
+
import Mail = require('../mailer');
|
|
10
|
+
import MailMessage = require('../mailer/mail-message');
|
|
11
|
+
import MimeNode = require('../mime-node');
|
|
12
12
|
|
|
13
13
|
declare namespace JSONTransport {
|
|
14
14
|
type MailOptions = Mail.Options;
|
|
@@ -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
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { URL } from 'url';
|
|
4
4
|
|
|
5
|
-
import Mail = require('
|
|
6
|
-
import MimeNode = require('
|
|
5
|
+
import Mail = require('../mailer');
|
|
6
|
+
import MimeNode = require('../mime-node');
|
|
7
7
|
|
|
8
8
|
/** Creates the object for composing a MimeNode instance out from the mail options */
|
|
9
9
|
declare class MailComposer {
|
nodemailer/lib/mailer/index.d.ts
CHANGED
|
@@ -104,8 +104,8 @@ declare namespace Mail {
|
|
|
104
104
|
cc?: string | Address | Array<string | Address> | undefined;
|
|
105
105
|
/** Comma separated list or an array of recipients e-mail addresses that will appear on the Bcc: field */
|
|
106
106
|
bcc?: string | Address | Array<string | Address> | undefined;
|
|
107
|
-
/**
|
|
108
|
-
replyTo?: string | Address | undefined;
|
|
107
|
+
/** Comma separated list or an array of e-mail addresses that will appear on the Reply-To: field */
|
|
108
|
+
replyTo?: string | Address | Array<string | Address> | undefined;
|
|
109
109
|
/** The message-id this message is replying */
|
|
110
110
|
inReplyTo?: string | Address | undefined;
|
|
111
111
|
/** Message-id list (an array or space separated string) */
|
|
File without changes
|
|
@@ -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(
|
|
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;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import { EventEmitter } from 'events';
|
|
4
4
|
|
|
5
|
-
import { Transport, TransportOptions } from '
|
|
5
|
+
import { Transport, TransportOptions } from '../..';
|
|
6
6
|
|
|
7
|
-
import * as shared from '
|
|
7
|
+
import * as shared from '../shared';
|
|
8
8
|
|
|
9
|
-
import Mail = require('
|
|
10
|
-
import MailMessage = require('
|
|
11
|
-
import MimeNode = require('
|
|
9
|
+
import Mail = require('../mailer');
|
|
10
|
+
import MailMessage = require('../mailer/mail-message');
|
|
11
|
+
import MimeNode = require('../mime-node');
|
|
12
12
|
|
|
13
13
|
declare namespace SESTransport {
|
|
14
14
|
interface MailOptions extends Mail.Options {
|
|
@@ -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
|
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
import { EventEmitter } from 'events';
|
|
4
4
|
import * as stream from 'stream';
|
|
5
5
|
|
|
6
|
-
import { Transport, TransportOptions } from '
|
|
7
|
-
import * as shared from '
|
|
6
|
+
import { Transport, TransportOptions } from '../..';
|
|
7
|
+
import * as shared from '../shared';
|
|
8
8
|
|
|
9
|
-
import Mail = require('
|
|
10
|
-
import MailMessage = require('
|
|
11
|
-
import MimeNode = require('
|
|
12
|
-
import SMTPConnection = require('
|
|
13
|
-
import XOAuth2 = require('
|
|
9
|
+
import Mail = require('../mailer');
|
|
10
|
+
import MailMessage = require('../mailer/mail-message');
|
|
11
|
+
import MimeNode = require('../mime-node');
|
|
12
|
+
import SMTPConnection = require('../smtp-connection');
|
|
13
|
+
import XOAuth2 = require('../xoauth2');
|
|
14
14
|
|
|
15
15
|
declare namespace SMTPTransport {
|
|
16
16
|
interface AuthenticationTypeCustom extends SMTPConnection.Credentials {
|
|
@@ -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(
|
|
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(
|
|
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;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { EventEmitter } from 'events';
|
|
4
4
|
import { Readable } from 'stream';
|
|
5
5
|
|
|
6
|
-
import { Transport, TransportOptions } from '
|
|
6
|
+
import { Transport, TransportOptions } from '../..';
|
|
7
7
|
|
|
8
|
-
import * as shared from '
|
|
8
|
+
import * as shared from '../shared';
|
|
9
9
|
|
|
10
|
-
import Mail = require('
|
|
11
|
-
import MailMessage = require('
|
|
12
|
-
import MimeNode = require('
|
|
10
|
+
import Mail = require('../mailer');
|
|
11
|
+
import MailMessage = require('../mailer/mail-message');
|
|
12
|
+
import MimeNode = require('../mime-node');
|
|
13
13
|
|
|
14
14
|
declare namespace StreamTransport {
|
|
15
15
|
type MailOptions = Mail.Options;
|
|
@@ -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
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import SMTPConnection = require('
|
|
1
|
+
import SMTPConnection = require('../smtp-connection');
|
|
2
2
|
|
|
3
3
|
/** Resolves SMTP config for given key. Key can be a name (like 'Gmail'), alias (like 'Google Mail') or an email address (like 'test@googlemail.com'). */
|
|
4
4
|
declare function wellKnown(key: string): SMTPConnection.Options | false;
|
nodemailer/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/nodemailer",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.6",
|
|
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": "
|
|
36
|
-
"typeScriptVersion": "
|
|
35
|
+
"typesPublisherContentHash": "1fdc4e33e2d53e25cc0d4ba26a04e1479f04a1a658376a0a08349009bd5b59a4",
|
|
36
|
+
"typeScriptVersion": "4.1"
|
|
37
37
|
}
|