node_modules: upgrade

This commit is contained in:
Dawid Dziurla
2025-06-14 22:45:43 +02:00
parent 3ead51e1f7
commit c2fddd52ad
28 changed files with 220 additions and 237 deletions

View File

@ -45,6 +45,11 @@ module.exports.createTransport = function (transporter, defaults) {
} else if (options.jsonTransport) {
transporter = new JSONTransport(options);
} else if (options.SES) {
if (options.SES.ses && options.SES.aws) {
let error = new Error('Using legacy SES configuration, expecting @aws-sdk/client-sesv2, see https://nodemailer.com/transports/ses/');
error.code = 'LegacyConfig';
throw error;
}
transporter = new SESTransport(options);
} else {
transporter = new SMTPTransport(options);