smtp-connection
Advanced tools
Comparing version 3.1.0 to 3.2.0
@@ -407,2 +407,5 @@ 'use strict'; | ||
} | ||
if (this.options.envelopeOnly) { | ||
return callback(null, info); | ||
} | ||
let stream = this._createSendStream((err, str) => { | ||
@@ -421,3 +424,2 @@ if (err) { | ||
} | ||
}); | ||
@@ -1374,2 +1376,17 @@ } | ||
if (this._envelope.rejected.length < this._envelope.to.length) { | ||
if (this.options.envelopeOnly) { | ||
let response = { | ||
accepted: this._envelope.accepted, | ||
rejected: this._envelope.rejected | ||
}; | ||
if (this._envelope.rejectedErrors.length) { | ||
response.rejectedErrors = this._envelope.rejectedErrors; | ||
} | ||
return callback(null, response); | ||
} | ||
this._responseActions.push(str => { | ||
@@ -1376,0 +1393,0 @@ this._actionDATA(str, callback); |
{ | ||
"name": "smtp-connection", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "Connect to SMTP servers", | ||
@@ -5,0 +5,0 @@ "main": "lib/smtp-connection.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74783
1539