mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-08-11 08:04:38 +07:00
node_modules: update
This commit is contained in:
2
node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js
generated
vendored
2
node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js
generated
vendored
@ -44,7 +44,7 @@ function httpProxyClient(proxyUrl, destinationPort, destinationHost, callback) {
|
||||
// Error harness for initial connection. Once connection is established, the responsibility
|
||||
// to handle errors is passed to whoever uses this socket
|
||||
let finished = false;
|
||||
let tempSocketErr = function(err) {
|
||||
let tempSocketErr = function (err) {
|
||||
if (finished) {
|
||||
return;
|
||||
}
|
||||
|
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