nodemailer-smtp-transport
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -55,3 +55,6 @@ 'use strict'; | ||
extends: 'eslint:recommended', | ||
fix: true | ||
fix: true, | ||
globals: { | ||
Promise: false | ||
} | ||
}; |
@@ -177,3 +177,10 @@ 'use strict'; | ||
SMTPTransport.prototype.verify = function (callback) { | ||
var promise; | ||
if (!callback && typeof Promise === 'function') { | ||
promise = new Promise(function (resolve, reject) { | ||
callback = shared.callbackPromise(resolve, reject); | ||
}); | ||
} | ||
this.getSocket(this.options, function (err, socketOptions) { | ||
@@ -246,2 +253,4 @@ if (err) { | ||
}.bind(this)); | ||
return promise; | ||
}; | ||
@@ -248,0 +257,0 @@ |
{ | ||
"name": "nodemailer-smtp-transport", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "SMTP transport for Nodemailer", | ||
@@ -5,0 +5,0 @@ "main": "lib/smtp-transport.js", |
18133
319