mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2026-02-07 13:01:35 +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-transport/index.js
generated
vendored
5
node_modules/nodemailer/lib/smtp-transport/index.js
generated
vendored
@@ -5,6 +5,7 @@ const SMTPConnection = require('../smtp-connection');
|
||||
const wellKnown = require('../well-known');
|
||||
const shared = require('../shared');
|
||||
const XOAuth2 = require('../xoauth2');
|
||||
const errors = require('../errors');
|
||||
const packageData = require('../../package.json');
|
||||
|
||||
/**
|
||||
@@ -190,7 +191,7 @@ class SMTPTransport extends EventEmitter {
|
||||
let err = new Error('Unexpected socket close');
|
||||
if (connection && connection._socket && connection._socket.upgrading) {
|
||||
// starttls connection errors
|
||||
err.code = 'ETLS';
|
||||
err.code = errors.ETLS;
|
||||
}
|
||||
callback(err);
|
||||
}, 1000);
|
||||
@@ -392,7 +393,7 @@ class SMTPTransport extends EventEmitter {
|
||||
});
|
||||
} else if (!authData && connection.allowsAuth && options.forceAuth) {
|
||||
let err = new Error('Authentication info was not provided');
|
||||
err.code = 'NoAuth';
|
||||
err.code = errors.ENOAUTH;
|
||||
|
||||
returned = true;
|
||||
connection.close();
|
||||
|
||||
Reference in New Issue
Block a user