mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2025-11-26 08:16:46 +07:00
node_modules: update
This commit is contained in:
13
node_modules/nodemailer/lib/nodemailer.js
generated
vendored
13
node_modules/nodemailer/lib/nodemailer.js
generated
vendored
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user