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

+8 -2
View File
@@ -104,7 +104,9 @@ class SMTPTransport extends EventEmitter {
* @param callback Callback function
*/
send(mail, callback) {
this.getSocket(this.options, (err, socketOptions) => {
// the proxy handshake, if any, counts against connectionTimeout as well
const connectStartedAt = Date.now();
this.getSocket(Object.assign({}, this.options, { connectStartedAt }), (err, socketOptions) => {
if (err) {
return callback(err);
}
@@ -123,6 +125,7 @@ class SMTPTransport extends EventEmitter {
options = Object.assign(shared.assign(false, options), socketOptions);
}
const connection = new SMTPConnection(options);
connection._connectStartedAt = connectStartedAt;
let perCallAuth;
const cleanupPerCallAuth = () => {
if (perCallAuth && perCallAuth !== this.auth && perCallAuth.oauth2) {
@@ -228,7 +231,9 @@ class SMTPTransport extends EventEmitter {
}
// the error paths hand over the error alone
const done = callback;
this.getSocket(this.options, (err, socketOptions) => {
// the proxy handshake, if any, counts against connectionTimeout as well
const connectStartedAt = Date.now();
this.getSocket(Object.assign({}, this.options, { connectStartedAt }), (err, socketOptions) => {
if (err) {
return done(err);
}
@@ -245,6 +250,7 @@ class SMTPTransport extends EventEmitter {
options = Object.assign(shared.assign(false, options), socketOptions);
}
const connection = new SMTPConnection(options);
connection._connectStartedAt = connectStartedAt;
let returned = false;
let perCallAuth;
const cleanupPerCallAuth = () => {