@types/nodemailer 6.2.2 → 6.4.0

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
@@ -5,12 +5,12 @@
5
5
  This package contains type definitions for Nodemailer (https://github.com/nodemailer/nodemailer).
6
6
 
7
7
  # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nodemailer
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nodemailer.
9
9
 
10
- Additional Details
11
- * Last updated: Tue, 22 Oct 2019 21:04:39 GMT
12
- * Dependencies: @types/node
10
+ ### Additional Details
11
+ * Last updated: Wed, 18 Dec 2019 16:21:54 GMT
12
+ * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
13
13
  * Global values: none
14
14
 
15
15
  # Credits
16
- These definitions were written by Rogier Schouten <https://github.com/rogierschouten>, Piotr Roszatycki <https://github.com/dex4er>, and Daniel Chao <https://github.com/bioball>.
16
+ These definitions were written by Rogier Schouten (https://github.com/rogierschouten), Piotr Roszatycki (https://github.com/dex4er), and Daniel Chao (https://github.com/bioball).
nodemailer/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for Nodemailer 6.2
1
+ // Type definitions for Nodemailer 6.4
2
2
  // Project: https://github.com/nodemailer/nodemailer, https://nodemailer.com
3
3
  // Definitions by: Rogier Schouten <https://github.com/rogierschouten>
4
4
  // Piotr Roszatycki <https://github.com/dex4er>
@@ -87,8 +87,9 @@ declare class MimeNode {
87
87
  */
88
88
  setContent(content: string | Buffer | Readable): this;
89
89
 
90
- /** Generate the message and return it with a callback */
90
+ /** Generate the message and return it with a callback or promise */
91
91
  build(callback: (err: Error | null, buf: Buffer) => void): void;
92
+ build(): Promise<Buffer>;
92
93
 
93
94
  getTransferEncoding(): string;
94
95
 
nodemailer/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/nodemailer",
3
- "version": "6.2.2",
3
+ "version": "6.4.0",
4
4
  "description": "TypeScript definitions for Nodemailer",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -21,7 +21,7 @@
21
21
  }
22
22
  ],
23
23
  "main": "",
24
- "types": "index",
24
+ "types": "index.d.ts",
25
25
  "repository": {
26
26
  "type": "git",
27
27
  "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
@@ -31,6 +31,6 @@
31
31
  "dependencies": {
32
32
  "@types/node": "*"
33
33
  },
34
- "typesPublisherContentHash": "d5ea47bf1c36d90e65fe0d338b6e367180f9037bf1284dee7504f1552979dcde",
34
+ "typesPublisherContentHash": "0039445f01109c0e68106090b3609cab060c769ad2516b099fdafdb8ca22d4a0",
35
35
  "typeScriptVersion": "3.3"
36
36
  }