node_modules: update (#297)

Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
Dawid Dziurla
2026-06-15 07:32:52 +02:00
committed by GitHub
parent d86d472c50
commit 1369c5b90d
27 changed files with 662 additions and 159 deletions
+9
View File
@@ -2,6 +2,8 @@
const packageData = require('../../package.json');
const shared = require('../shared');
const LeWindows = require('../mime-node/le-windows');
const LeUnix = require('../mime-node/le-unix');
/**
* Generates a Transport object for streaming
@@ -63,6 +65,13 @@ class StreamTransport {
try {
stream = mail.message.createReadStream();
if (this.options.newline) {
// apply the transport-level line ending transform; the message-level
// `newline` option is handled by MimeNode in createReadStream()
const sourceStream = stream;
stream = sourceStream.pipe(this.winbreak ? new LeWindows() : new LeUnix());
sourceStream.once('error', err => stream.emit('error', err));
}
} catch (E) {
this.logger.error(
{