@types/nodemailer 7.0.0 → 7.0.2
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:
|
|
11
|
+
* Last updated: Mon, 29 Sep 2025 19:02:13 GMT
|
|
12
12
|
* Dependencies: [@aws-sdk/client-sesv2](https://npmjs.com/package/@aws-sdk/client-sesv2), [@types/node](https://npmjs.com/package/@types/node)
|
|
13
13
|
|
|
14
14
|
# Credits
|
nodemailer/lib/mailer/index.d.ts
CHANGED
|
@@ -155,6 +155,8 @@ declare namespace Mail {
|
|
|
155
155
|
priority?: "high" | "normal" | "low" | undefined;
|
|
156
156
|
/** if set to true then converts data:images in the HTML content of message to embedded attachments */
|
|
157
157
|
attachDataUrls?: boolean | undefined;
|
|
158
|
+
/** if set to false then removes x-mailer header, otherwise replaces the default x-mailer header value **/
|
|
159
|
+
xMailer?: false | string;
|
|
158
160
|
}
|
|
159
161
|
|
|
160
162
|
type PluginFunction<T = any> = (mail: MailMessage<T>, callback: (err?: Error | null) => void) => void;
|
|
@@ -192,7 +194,9 @@ declare class Mail<T = any, DefaultTransportOptions = TransportOptions> extends
|
|
|
192
194
|
mailOptions: Mail.Options & Partial<DefaultTransportOptions>,
|
|
193
195
|
callback: (err: Error | null, info: T) => void,
|
|
194
196
|
): void;
|
|
197
|
+
sendMail(mailOptions: Mail.Options, callback: (err: Error | null, info: T) => void): void;
|
|
195
198
|
sendMail(mailOptions: Mail.Options & Partial<DefaultTransportOptions>): Promise<T>;
|
|
199
|
+
sendMail(mailOptions: Mail.Options): Promise<T>;
|
|
196
200
|
|
|
197
201
|
getVersionString(): string;
|
|
198
202
|
|
nodemailer/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/nodemailer",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.2",
|
|
4
4
|
"description": "TypeScript definitions for nodemailer",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nodemailer",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,6 +34,6 @@
|
|
|
34
34
|
"@types/node": "*"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {},
|
|
37
|
-
"typesPublisherContentHash": "
|
|
37
|
+
"typesPublisherContentHash": "f16b96ef828252b3ffc0396dad6d731eff543651ed32b17e4383a056a8429601",
|
|
38
38
|
"typeScriptVersion": "5.2"
|
|
39
39
|
}
|