mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-08-17 02:54:39 +07:00
node_modules: update
This commit is contained in:
18
node_modules/nodemailer/lib/smtp-connection/index.js
generated
vendored
18
node_modules/nodemailer/lib/smtp-connection/index.js
generated
vendored
@ -45,10 +45,7 @@ class SMTPConnection extends EventEmitter {
|
||||
constructor(options) {
|
||||
super(options);
|
||||
|
||||
this.id = crypto
|
||||
.randomBytes(8)
|
||||
.toString('base64')
|
||||
.replace(/\W/g, '');
|
||||
this.id = crypto.randomBytes(8).toString('base64').replace(/\W/g, '');
|
||||
this.stage = 'init';
|
||||
|
||||
this.options = options || {};
|
||||
@ -73,10 +70,7 @@ class SMTPConnection extends EventEmitter {
|
||||
|
||||
this.customAuth = new Map();
|
||||
Object.keys(this.options.customAuth || {}).forEach(key => {
|
||||
let mapKey = (key || '')
|
||||
.toString()
|
||||
.trim()
|
||||
.toUpperCase();
|
||||
let mapKey = (key || '').toString().trim().toUpperCase();
|
||||
if (!mapKey) {
|
||||
return;
|
||||
}
|
||||
@ -424,11 +418,7 @@ class SMTPConnection extends EventEmitter {
|
||||
|
||||
this._auth = authData || {};
|
||||
// Select SASL authentication method
|
||||
this._authMethod =
|
||||
(this._auth.method || '')
|
||||
.toString()
|
||||
.trim()
|
||||
.toUpperCase() || false;
|
||||
this._authMethod = (this._auth.method || '').toString().trim().toUpperCase() || false;
|
||||
|
||||
if (!this._authMethod && this._auth.oauth2 && !this._auth.credentials) {
|
||||
this._authMethod = 'XOAUTH2';
|
||||
@ -598,7 +588,7 @@ class SMTPConnection extends EventEmitter {
|
||||
|
||||
// ensure that callback is only called once
|
||||
let returned = false;
|
||||
let callback = function() {
|
||||
let callback = function () {
|
||||
if (returned) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user