node_modules: update (#332)

Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
Dawid Dziurlaanddawidd6 authored and GitHub committed 2026-10-01 09:48:38 +02:00
1 parent c1dac70e3a
commit 6bf0a2f26a
95 files changed
+1102 -503

No files matched your search

+8 -6
View File
@@ -462,10 +462,12 @@ class SMTPPool extends node_events_1.EventEmitter {
callback = shared.callbackPromise(resolve, reject);
});
}
// the error paths hand over the error alone
const done = callback;
const auth = new pool_resource_js_1.default(this).auth;
this.getSocket(this.options, (err, socketOptions) => {
if (err) {
return callback(err);
return done(err);
}
let options = this.options;
if (socketOptions && socketOptions.connection) {
@@ -487,14 +489,14 @@ class SMTPPool extends node_events_1.EventEmitter {
}
returned = true;
connection.close();
return callback(err);
return done(err);
});
connection.once('end', () => {
if (returned) {
return;
}
returned = true;
return callback(new Error('Connection closed'));
return done(new Error('Connection closed'));
});
const finalize = () => {
if (returned) {
@@ -502,7 +504,7 @@ class SMTPPool extends node_events_1.EventEmitter {
}
returned = true;
connection.quit();
return callback(null, true);
return done(null, true);
};
connection.connect(() => {
if (returned) {
@@ -516,7 +518,7 @@ class SMTPPool extends node_events_1.EventEmitter {
if (err) {
returned = true;
connection.close();
return callback(err);
return done(err);
}
finalize();
});
@@ -526,7 +528,7 @@ class SMTPPool extends node_events_1.EventEmitter {
err.code = errors.ENOAUTH;
returned = true;
connection.close();
return callback(err);
return done(err);
}
else {
finalize();