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

@ -13,16 +13,11 @@ const packageData = require('../package.json');
const ETHEREAL_API = (process.env.ETHEREAL_API || 'https://api.nodemailer.com').replace(/\/+$/, '');
const ETHEREAL_WEB = (process.env.ETHEREAL_WEB || 'https://ethereal.email').replace(/\/+$/, '');
const ETHEREAL_CACHE = ['true', 'yes', 'y', '1'].includes(
(process.env.ETHEREAL_CACHE || 'yes')
.toString()
.trim()
.toLowerCase()
);
const ETHEREAL_CACHE = ['true', 'yes', 'y', '1'].includes((process.env.ETHEREAL_CACHE || 'yes').toString().trim().toLowerCase());
let testAccount = false;
module.exports.createTransport = function(transporter, defaults) {
module.exports.createTransport = function (transporter, defaults) {
let urlConfig;
let options;
let mailer;
@ -60,7 +55,7 @@ module.exports.createTransport = function(transporter, defaults) {
return mailer;
};
module.exports.createTestAccount = function(apiUrl, callback) {
module.exports.createTestAccount = function (apiUrl, callback) {
let promise;
if (!callback && typeof apiUrl === 'function') {
@ -128,7 +123,7 @@ module.exports.createTestAccount = function(apiUrl, callback) {
return promise;
};
module.exports.getTestMessageUrl = function(info) {
module.exports.getTestMessageUrl = function (info) {
if (!info || !info.response) {
return false;
}