@types/nodemailer 3.1.6 → 3.1.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.
- nodemailer v3.1/LICENSE +0 -0
- nodemailer v3.1/README.md +1 -1
- nodemailer v3.1/index.d.ts +24 -24
- nodemailer v3.1/package.json +5 -4
nodemailer v3.1/LICENSE
CHANGED
|
File without changes
|
nodemailer v3.1/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Nodemailer (https://github.com/andris
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nodemailer/v3.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 12 Sep 2022 22:02:42 GMT
|
|
12
12
|
* Dependencies: [@types/nodemailer-direct-transport](https://npmjs.com/package/@types/nodemailer-direct-transport), [@types/nodemailer-smtp-transport](https://npmjs.com/package/@types/nodemailer-smtp-transport), [@types/nodemailer-ses-transport](https://npmjs.com/package/@types/nodemailer-ses-transport), [@types/node](https://npmjs.com/package/@types/node)
|
|
13
13
|
* Global values: none
|
|
14
14
|
|
nodemailer v3.1/index.d.ts
CHANGED
|
@@ -79,15 +79,15 @@ export interface AttachmentObject {
|
|
|
79
79
|
/**
|
|
80
80
|
* filename to be reported as the name of the attached file, use of unicode is allowed
|
|
81
81
|
*/
|
|
82
|
-
filename?: string;
|
|
82
|
+
filename?: string | undefined;
|
|
83
83
|
/**
|
|
84
84
|
* optional content id for using inline images in HTML message source
|
|
85
85
|
*/
|
|
86
|
-
cid?: string;
|
|
86
|
+
cid?: string | undefined;
|
|
87
87
|
/**
|
|
88
88
|
* Pathname or URL to use streaming
|
|
89
89
|
*/
|
|
90
|
-
path?: string;
|
|
90
|
+
path?: string | undefined;
|
|
91
91
|
/**
|
|
92
92
|
* String, Buffer or a Stream contents for the attachment
|
|
93
93
|
*/
|
|
@@ -95,62 +95,62 @@ export interface AttachmentObject {
|
|
|
95
95
|
/**
|
|
96
96
|
* If set and content is string, then encodes the content to a Buffer using the specified encoding. Example values: base64, hex, 'binary' etc. Useful if you want to use binary attachments in a JSON formatted e-mail object.
|
|
97
97
|
*/
|
|
98
|
-
encoding?: string;
|
|
98
|
+
encoding?: string | undefined;
|
|
99
99
|
/**
|
|
100
100
|
* optional content type for the attachment, if not set will be derived from the filename property
|
|
101
101
|
*/
|
|
102
|
-
contentType?: string;
|
|
102
|
+
contentType?: string | undefined;
|
|
103
103
|
/**
|
|
104
104
|
* optional content disposition type for the attachment, defaults to 'attachment'
|
|
105
105
|
*/
|
|
106
|
-
contentDisposition?: string;
|
|
106
|
+
contentDisposition?: string | undefined;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
export interface SendMailOptions {
|
|
110
110
|
/**
|
|
111
111
|
* The e-mail address of the sender. All e-mail addresses can be plain 'sender@server.com' or formatted 'Sender Name <sender@server.com>', see here for details
|
|
112
112
|
*/
|
|
113
|
-
from?: string;
|
|
113
|
+
from?: string | undefined;
|
|
114
114
|
/**
|
|
115
115
|
* An e-mail address that will appear on the Sender: field
|
|
116
116
|
*/
|
|
117
|
-
sender?: string;
|
|
117
|
+
sender?: string | undefined;
|
|
118
118
|
/**
|
|
119
119
|
* Comma separated list or an array of recipients e-mail addresses that will appear on the To: field
|
|
120
120
|
*/
|
|
121
|
-
to?: string|string[];
|
|
121
|
+
to?: string | string[] | undefined;
|
|
122
122
|
/**
|
|
123
123
|
* Comma separated list or an array of recipients e-mail addresses that will appear on the Cc: field
|
|
124
124
|
*/
|
|
125
|
-
cc?: string|string[];
|
|
125
|
+
cc?: string | string[] | undefined;
|
|
126
126
|
/**
|
|
127
127
|
* Comma separated list or an array of recipients e-mail addresses that will appear on the Bcc: field
|
|
128
128
|
*/
|
|
129
|
-
bcc?: string|string[];
|
|
129
|
+
bcc?: string | string[] | undefined;
|
|
130
130
|
/**
|
|
131
|
-
*
|
|
131
|
+
* Comma separated list or an array of e-mail addresses that will appear on the Reply-To: field
|
|
132
132
|
*/
|
|
133
|
-
replyTo?: string;
|
|
133
|
+
replyTo?: string | string[] | undefined;
|
|
134
134
|
/**
|
|
135
135
|
* The message-id this message is replying
|
|
136
136
|
*/
|
|
137
|
-
inReplyTo?: string;
|
|
137
|
+
inReplyTo?: string | undefined;
|
|
138
138
|
/**
|
|
139
139
|
* Message-id list (an array or space separated string)
|
|
140
140
|
*/
|
|
141
|
-
references?: string|string[];
|
|
141
|
+
references?: string | string[] | undefined;
|
|
142
142
|
/**
|
|
143
143
|
* The subject of the e-mail
|
|
144
144
|
*/
|
|
145
|
-
subject?: string;
|
|
145
|
+
subject?: string | undefined;
|
|
146
146
|
/**
|
|
147
147
|
* The plaintext version of the message as an Unicode string, Buffer, Stream or an object {path: '...'}
|
|
148
148
|
*/
|
|
149
|
-
text?: string|Buffer|NodeJS.ReadableStream|AttachmentObject;
|
|
149
|
+
text?: string|Buffer|NodeJS.ReadableStream|AttachmentObject | undefined;
|
|
150
150
|
/**
|
|
151
151
|
* The HTML version of the message as an Unicode string, Buffer, Stream or an object {path: '...'}
|
|
152
152
|
*/
|
|
153
|
-
html?: string|Buffer|NodeJS.ReadableStream|AttachmentObject;
|
|
153
|
+
html?: string|Buffer|NodeJS.ReadableStream|AttachmentObject | undefined;
|
|
154
154
|
/**
|
|
155
155
|
* An object or array of additional header fields (e.g. {"X-Key-Name": "key value"} or [{key: "X-Key-Name", value: "val1"}, {key: "X-Key-Name", value: "val2"}])
|
|
156
156
|
*/
|
|
@@ -158,23 +158,23 @@ export interface SendMailOptions {
|
|
|
158
158
|
/**
|
|
159
159
|
* An array of attachment objects (see below for details)
|
|
160
160
|
*/
|
|
161
|
-
attachments?: AttachmentObject[];
|
|
161
|
+
attachments?: AttachmentObject[] | undefined;
|
|
162
162
|
/**
|
|
163
163
|
* An array of alternative text contents (in addition to text and html parts) (see below for details)
|
|
164
164
|
*/
|
|
165
|
-
alternatives?: AttachmentObject[];
|
|
165
|
+
alternatives?: AttachmentObject[] | undefined;
|
|
166
166
|
/**
|
|
167
167
|
* optional Message-Id value, random value will be generated if not set
|
|
168
168
|
*/
|
|
169
|
-
messageId?: string;
|
|
169
|
+
messageId?: string | undefined;
|
|
170
170
|
/**
|
|
171
171
|
* optional Date value, current UTC string will be used if not set
|
|
172
172
|
*/
|
|
173
|
-
date?: Date;
|
|
173
|
+
date?: Date | undefined;
|
|
174
174
|
/**
|
|
175
175
|
* optional transfer encoding for the textual parts (defaults to 'quoted-printable')
|
|
176
176
|
*/
|
|
177
|
-
encoding?: string;
|
|
177
|
+
encoding?: string | undefined;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
export interface SentMessageInfo {
|
|
@@ -197,7 +197,7 @@ export interface SentMessageInfo {
|
|
|
197
197
|
/**
|
|
198
198
|
* is an array returned by Direct SMTP transport. Includes recipient addresses that were temporarily rejected together with the server response
|
|
199
199
|
*/
|
|
200
|
-
pending?: string[];
|
|
200
|
+
pending?: string[] | undefined;
|
|
201
201
|
/**
|
|
202
202
|
* is a string returned by SMTP transports and includes the last SMTP response from the server
|
|
203
203
|
*/
|
nodemailer v3.1/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/nodemailer",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.9",
|
|
4
4
|
"description": "TypeScript definitions for Nodemailer",
|
|
5
|
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nodemailer",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"contributors": [
|
|
7
8
|
{
|
|
@@ -23,8 +24,8 @@
|
|
|
23
24
|
"@types/nodemailer-direct-transport": "*",
|
|
24
25
|
"@types/nodemailer-ses-transport": "*",
|
|
25
26
|
"@types/nodemailer-smtp-transport": "*",
|
|
26
|
-
"aws-sdk": "^2.
|
|
27
|
+
"aws-sdk": "^2.814.0"
|
|
27
28
|
},
|
|
28
|
-
"typesPublisherContentHash": "
|
|
29
|
-
"typeScriptVersion": "
|
|
29
|
+
"typesPublisherContentHash": "8f57ae804c99166d5d388d912c723ed4ca5951ab50b4bb93f0112e41b5ccd746",
|
|
30
|
+
"typeScriptVersion": "4.1"
|
|
30
31
|
}
|