mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2026-02-07 04:59:55 +07:00
node_modules: update (#259)
Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
5
node_modules/nodemailer/lib/smtp-pool/pool-resource.js
generated
vendored
5
node_modules/nodemailer/lib/smtp-pool/pool-resource.js
generated
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user