nodemailer: version 4.2 (#20754)

This commit is contained in:
Piotr Roszatycki
2017-10-20 17:21:44 +02:00
committed by Andy
parent 2753c44ac1
commit a41f8d2ddd
3 changed files with 7 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
// Type definitions for Nodemailer 4.1
// Type definitions for Nodemailer 4.2
// Project: https://github.com/nodemailer/nodemailer
// Definitions by: Rogier Schouten <https://github.com/rogierschouten>
// Piotr Roszatycki <https://github.com/dex4er>

View File

@@ -88,6 +88,12 @@ declare namespace SMTPConnection {
rejectedErrors?: SMTPError[];
/** the last response received from the server */
response: string;
/** how long was envelope prepared */
envelopeTime: number;
/** how long was send stream prepared */
messageTime: number;
/** how many bytes were streamed */
messageSize: number;
}
interface Options {

View File

@@ -1036,7 +1036,6 @@ namespace smtp_connection_test {
if (err) throw err;
connection.send({ from: 'a@example.com', to: 'b@example.net' }, 'message', (err, info) => {
if (err) throw err;
console.log(info);
connection.reset(() => {
if (err) throw err;
connection.quit();