mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2026-10-12 02:42:27 +07:00
node_modules: update (#344)
Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
1 parent
b099186883
commit
6e88c72525
63 files changed
+2863
-1227
No files matched your search
+20
@@ -174,6 +174,26 @@ class MailMessage {
|
||||
};
|
||||
setImmediate(() => resolveNext());
|
||||
}
|
||||
/**
|
||||
* Destroys the content streams of the message once sending failed. A stream that was not
|
||||
* read to the end would otherwise keep the file or the socket behind it open
|
||||
*/
|
||||
releaseStreams() {
|
||||
const data = this.data;
|
||||
const values = [data.html, data.text, data.watchHtml, data.amp, data.raw, data.icalEvent];
|
||||
for (const key of ['attachments', 'alternatives']) {
|
||||
if (Array.isArray(data[key])) {
|
||||
values.push(...data[key]);
|
||||
}
|
||||
}
|
||||
for (const value of values) {
|
||||
if (value && typeof value === 'object') {
|
||||
shared.destroyStream(value);
|
||||
shared.destroyStream(value.content);
|
||||
shared.destroyStream(value.raw);
|
||||
}
|
||||
}
|
||||
}
|
||||
normalize(callback) {
|
||||
const envelope = this.message.getEnvelope();
|
||||
const messageId = this.message.messageId();
|
||||
|
||||
Reference in new issue
Block a user