Run npm ci --ignore-scripts to update dependencies (#254)

* Initial plan

* Run npm ci --ignore-scripts to update dependencies

Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>

* Convert CommonJS to ESM (#255)

* Initial plan

* Convert CommonJS imports to ESM

Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>

* Use node: protocol prefix for built-in modules

Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
Copilot
2026-01-30 13:31:20 +01:00
committed by GitHub
parent 85c1af852f
commit afe9786629
330 changed files with 13024 additions and 14665 deletions

View File

@@ -794,7 +794,12 @@ class SMTPConnection extends EventEmitter {
err = this._formatError(err, type, data, command);
this.logger.error(data, err.message);
const transientCodes = ['ETIMEDOUT', 'ESOCKET', 'ECONNECTION'];
if (transientCodes.includes(err.code)) {
this.logger.warn(data, err.message);
} else {
this.logger.error(data, err.message);
}
this.emit('error', err);
this.close();

View File

@@ -331,7 +331,7 @@ class SMTPPool extends EventEmitter {
// resource is terminated with an error
connection.once('error', err => {
if (err.code !== 'EMAXLIMIT') {
this.logger.error(
this.logger.warn(
{
err,
tnx: 'pool',