mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2026-02-01 03:40:30 +07:00
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:
7
node_modules/nodemailer/lib/smtp-connection/index.js
generated
vendored
7
node_modules/nodemailer/lib/smtp-connection/index.js
generated
vendored
@@ -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();
|
||||
|
||||
2
node_modules/nodemailer/lib/smtp-pool/index.js
generated
vendored
2
node_modules/nodemailer/lib/smtp-pool/index.js
generated
vendored
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user