node_modules: update

This commit is contained in:
Dawid Dziurla
2020-11-12 16:31:20 +01:00
parent 345c86e5c4
commit d1b07d9ed7
15 changed files with 52 additions and 91 deletions

View File

@ -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;
}

View File

@ -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;
}