node_modules: update (#259)

Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
Dawid Dziurla
2026-02-05 08:49:11 +01:00
committed by GitHub
parent a4eb4faebc
commit 62a2d05b79
16 changed files with 335 additions and 131 deletions

View File

@@ -3,6 +3,7 @@
const SMTPConnection = require('../smtp-connection');
const assign = require('../shared').assign;
const XOAuth2 = require('../xoauth2');
const errors = require('../errors');
const EventEmitter = require('events');
/**
@@ -121,7 +122,7 @@ class PoolResource extends EventEmitter {
let err = new Error('Unexpected socket close');
if (this.connection && this.connection._socket && this.connection._socket.upgrading) {
// starttls connection errors
err.code = 'ETLS';
err.code = errors.ETLS;
}
callback(err);
}, 1000);
@@ -226,7 +227,7 @@ class PoolResource extends EventEmitter {
let err;
if (this.messages >= this.options.maxMessages) {
err = new Error('Resource exhausted');
err.code = 'EMAXLIMIT';
err.code = errors.EMAXLIMIT;
this.connection.close();
this.emit('error', err);
} else {