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:
14
node_modules/nodemailer/lib/stream-transport/index.js
generated
vendored
14
node_modules/nodemailer/lib/stream-transport/index.js
generated
vendored
@@ -18,7 +18,7 @@ class StreamTransport {
|
||||
constructor(options) {
|
||||
options = options || {};
|
||||
|
||||
this.options = options || {};
|
||||
this.options = options;
|
||||
|
||||
this.name = 'StreamTransport';
|
||||
this.version = packageData.version;
|
||||
@@ -40,10 +40,10 @@ class StreamTransport {
|
||||
// We probably need this in the output
|
||||
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');
|
||||
}
|
||||
@@ -91,13 +91,13 @@ class StreamTransport {
|
||||
);
|
||||
});
|
||||
return done(null, {
|
||||
envelope: mail.data.envelope || mail.message.getEnvelope(),
|
||||
envelope,
|
||||
messageId,
|
||||
message: stream
|
||||
});
|
||||
}
|
||||
|
||||
let chunks = [];
|
||||
const chunks = [];
|
||||
let chunklen = 0;
|
||||
stream.on('readable', () => {
|
||||
let chunk;
|
||||
@@ -123,7 +123,7 @@ class StreamTransport {
|
||||
|
||||
stream.on('end', () =>
|
||||
done(null, {
|
||||
envelope: mail.data.envelope || mail.message.getEnvelope(),
|
||||
envelope,
|
||||
messageId,
|
||||
message: Buffer.concat(chunks, chunklen)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user