node_modules: update (#349)

Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
Dawid Dziurlaanddawidd6 authored and GitHub committed 2026-10-18 15:39:30 +02:00
1 parent 9d0c26ec8b
commit 0a1f5db16c
36 files changed
+1934 -648

No files matched your search

+4 -1
View File
@@ -360,9 +360,12 @@ class Mail extends EventEmitter {
return callback(err);
}
let cidCounter = 0;
// the media type is a bounded token: a quote, whitespace, '>' or '<' ends the
// attribute value and with it the type, so one img tag never scans ahead to a
// ';' that belongs to a later tag, which was quadratic
html = (html || '')
.toString()
.replace(/(<img\b[^<>]{0,1024} src\s{0,20}=[\s"']{0,20})(data:([^;]+);[^"'>\s]+)/gi, (match, prefix, dataUri, mimeType) => {
.replace(/(<img\b[^<>]{0,1024} src\s{0,20}=[\s"']{0,20})(data:([^;"'<>\s]{1,255});[^"'>\s]+)/gi, (match, prefix, dataUri, mimeType) => {
const cid = crypto.randomBytes(10).toString('hex') + '@localhost';
if (!mail.data.attachments) {
mail.data.attachments = [];
+5 -1
View File
@@ -23,7 +23,11 @@ export interface SendMailOptions extends MailComposerOptions {
dsn?: SMTPEnvelopeDsn | undefined;
/** SMTP transports: RFC 8689, send the REQUIRETLS parameter with MAIL FROM */
requireTLSExtensionEnabled?: boolean | undefined;
/** SMTP transports: per-message authentication settings, used instead of the transport level auth */
/**
* SMTP transports: per-message authentication settings, used instead of the transport level auth.
* Only the credential fields are taken from it (type, user, pass, accessToken, refreshToken, expires),
* the token endpoint and client settings stay those of the transport
*/
auth?: SMTPTransportAuthOptions | undefined;
/** SES transport: extra SendEmailCommand parameters merged into the API call */
ses?: SESSendEmailRequest | undefined;
+4 -1
View File
@@ -145,7 +145,10 @@ export default class MailMessage {
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]);
// one at a time, spreading a long enough list into the arguments throws
for (const entry of data[key]) {
values.push(entry);
}
}
}
for (const value of values) {