@types/nodemailer 6.4.16 → 6.4.17
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/mime-node/index.d.ts +88 -1
- nodemailer/package.json +4 -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: Tue,
|
|
11
|
+
* Last updated: Tue, 19 Nov 2024 17:02:32 GMT
|
|
12
12
|
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
import { Readable, ReadableOptions, Transform } from "stream";
|
|
4
4
|
|
|
5
5
|
import Mail = require("../mailer");
|
|
6
|
-
import SMTPConnection = require("../smtp-connection");
|
|
7
6
|
|
|
8
7
|
declare namespace MimeNode {
|
|
9
8
|
interface Addresses {
|
|
@@ -25,18 +24,43 @@ declare namespace MimeNode {
|
|
|
25
24
|
interface Options {
|
|
26
25
|
/** root node for this tree */
|
|
27
26
|
rootNode?: MimeNode | undefined;
|
|
27
|
+
|
|
28
28
|
/** immediate parent for this node */
|
|
29
29
|
parentNode?: MimeNode | undefined;
|
|
30
|
+
|
|
30
31
|
/** filename for an attachment node */
|
|
31
32
|
filename?: string | undefined;
|
|
33
|
+
|
|
34
|
+
/** Hostname for default message-id values */
|
|
35
|
+
hostname?: string | undefined;
|
|
36
|
+
|
|
32
37
|
/** shared part of the unique multipart boundary */
|
|
33
38
|
baseBoundary?: string | undefined;
|
|
39
|
+
|
|
34
40
|
/** If true, do not exclude Bcc from the generated headers */
|
|
35
41
|
keepBcc?: boolean | undefined;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* If set to 'win' then uses \r\n,
|
|
45
|
+
* if 'linux' then \n.
|
|
46
|
+
* If not set (or `raw` is used) then newlines are kept as is.
|
|
47
|
+
*/
|
|
48
|
+
newline?: string | undefined;
|
|
49
|
+
|
|
36
50
|
/** either 'Q' (the default) or 'B' */
|
|
37
51
|
textEncoding?: "B" | "Q" | undefined;
|
|
52
|
+
|
|
38
53
|
/** method to normalize header keys for custom caseing */
|
|
39
54
|
normalizeHeaderKey?(key: string): string;
|
|
55
|
+
|
|
56
|
+
/** undocumented */
|
|
57
|
+
boundaryPrefix?: string | undefined;
|
|
58
|
+
|
|
59
|
+
/** Undocumented */
|
|
60
|
+
disableFileAccess?: boolean | undefined;
|
|
61
|
+
|
|
62
|
+
/** Undocumented */
|
|
63
|
+
disableUrlAccess?: boolean | undefined;
|
|
40
64
|
}
|
|
41
65
|
}
|
|
42
66
|
|
|
@@ -132,6 +156,69 @@ declare class MimeNode {
|
|
|
132
156
|
|
|
133
157
|
/** Sets pregenerated content that will be used as the output of this node */
|
|
134
158
|
setRaw(raw: string | Buffer | Readable): this;
|
|
159
|
+
|
|
160
|
+
/** shared part of the unique multipart boundary */
|
|
161
|
+
baseBoundary: string;
|
|
162
|
+
|
|
163
|
+
/** a multipart boundary value */
|
|
164
|
+
boundary?: string | false | undefined;
|
|
165
|
+
|
|
166
|
+
/** Undocumented */
|
|
167
|
+
boundaryPrefix: string;
|
|
168
|
+
|
|
169
|
+
/* An array for possible child nodes */
|
|
170
|
+
childNodes: MimeNode[];
|
|
171
|
+
|
|
172
|
+
/** body content for current node */
|
|
173
|
+
content?: string | Buffer | Readable | undefined;
|
|
174
|
+
|
|
175
|
+
/** Undocumented */
|
|
176
|
+
contentType?: string | undefined;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* If date headers is missing and current node is the root, this value is used instead
|
|
180
|
+
*/
|
|
181
|
+
date: Date;
|
|
182
|
+
|
|
183
|
+
/** Undocumented */
|
|
184
|
+
disableFileAccess: boolean;
|
|
185
|
+
|
|
186
|
+
/** Undocumented */
|
|
187
|
+
disableUrlAccess: boolean;
|
|
188
|
+
|
|
189
|
+
/** filename for an attachment node */
|
|
190
|
+
filename?: string | undefined;
|
|
191
|
+
|
|
192
|
+
/** Hostname for default message-id values */
|
|
193
|
+
hostname?: string | undefined;
|
|
194
|
+
|
|
195
|
+
/** If true, do not exclude Bcc from the generated headers */
|
|
196
|
+
keepBcc: boolean;
|
|
197
|
+
|
|
198
|
+
/** Undocumented */
|
|
199
|
+
multipart?: boolean | undefined;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* If set to 'win' then uses \r\n,
|
|
203
|
+
* if 'linux' then \n.
|
|
204
|
+
* If not set (or `raw` is used) then newlines are kept as is.
|
|
205
|
+
*/
|
|
206
|
+
newline?: string | undefined;
|
|
207
|
+
|
|
208
|
+
/** Undocumented */
|
|
209
|
+
nodeCounter: number;
|
|
210
|
+
|
|
211
|
+
/** method to normalize header keys for custom caseing */
|
|
212
|
+
normalizeHeaderKey?: ((key: string) => string) | undefined;
|
|
213
|
+
|
|
214
|
+
/* Immediate parent for this node (or undefined if not set) */
|
|
215
|
+
parentNode?: MimeNode | undefined;
|
|
216
|
+
|
|
217
|
+
/** root node for this tree */
|
|
218
|
+
rootNode: MimeNode;
|
|
219
|
+
|
|
220
|
+
/** either 'Q' (the default) or 'B' */
|
|
221
|
+
textEncoding: "B" | "Q" | "";
|
|
135
222
|
}
|
|
136
223
|
|
|
137
224
|
export = MimeNode;
|
nodemailer/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/nodemailer",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.17",
|
|
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,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@types/node": "*"
|
|
34
34
|
},
|
|
35
|
-
"
|
|
36
|
-
"
|
|
35
|
+
"peerDependencies": {},
|
|
36
|
+
"typesPublisherContentHash": "c93eda36deb49e226aaabb03b3ab999056957e2220b681e070d58074dc0a53a4",
|
|
37
|
+
"typeScriptVersion": "4.9"
|
|
37
38
|
}
|