mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2026-05-06 17:30:35 +07:00
node_modules: update (#290)
Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
8
node_modules/nodemailer/lib/json-transport/index.js
generated
vendored
8
node_modules/nodemailer/lib/json-transport/index.js
generated
vendored
@@ -13,7 +13,7 @@ class JSONTransport {
|
||||
constructor(options) {
|
||||
options = options || {};
|
||||
|
||||
this.options = options || {};
|
||||
this.options = options;
|
||||
|
||||
this.name = 'JSONTransport';
|
||||
this.version = packageData.version;
|
||||
@@ -33,10 +33,10 @@ class JSONTransport {
|
||||
// Sendmail strips this header line by itself
|
||||
mail.message.keepBcc = true;
|
||||
|
||||
let envelope = mail.data.envelope || mail.message.getEnvelope();
|
||||
let messageId = mail.message.messageId();
|
||||
const envelope = mail.data.envelope || mail.message.getEnvelope();
|
||||
const messageId = mail.message.messageId();
|
||||
|
||||
let recipients = [].concat(envelope.to || []);
|
||||
const recipients = [].concat(envelope.to || []);
|
||||
if (recipients.length > 3) {
|
||||
recipients.push('...and ' + recipients.splice(2).length + ' more');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user