update dependencies

This commit is contained in:
Dawid Dziurla
2020-03-24 13:34:13 +01:00
parent 7dcd3223b9
commit fafdc9738d
13 changed files with 125 additions and 41 deletions

View File

@ -420,7 +420,7 @@ class SMTPPool extends EventEmitter {
return true;
}
return queueEntry.requeueAttempts && queueEntry.requeueAttempts < this.options.maxRequeues;
return queueEntry.requeueAttempts < this.options.maxRequeues;
}
_failDeliveryOnConnectionClose(connection) {
@ -613,7 +613,7 @@ class SMTPPool extends EventEmitter {
return;
}
if (auth && connection.allowsAuth) {
if (auth && (connection.allowsAuth || options.forceAuth)) {
connection.login(auth, err => {
if (returned) {
return;

View File

@ -137,7 +137,7 @@ class PoolResource extends EventEmitter {
return;
}
if (this.auth && this.connection.allowsAuth) {
if (this.auth && (this.connection.allowsAuth || options.forceAuth)) {
this.connection.login(this.auth, err => {
if (returned) {
return;