node_modules: update (#344)

Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
Dawid Dziurlaanddawidd6 authored and GitHub committed 2026-10-10 17:27:57 +02:00
1 parent b099186883
commit 6e88c72525
63 files changed
+2863 -1227

No files matched your search

+20
View File
@@ -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();