mirror of
https://github.com/dawidd6/action-send-mail.git
synced 2026-05-06 17:30:35 +07:00
node_modules: update (#290)
Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
14
node_modules/nodemailer/lib/well-known/index.js
generated
vendored
14
node_modules/nodemailer/lib/well-known/index.js
generated
vendored
@@ -4,16 +4,17 @@ const services = require('./services.json');
|
||||
const normalized = {};
|
||||
|
||||
Object.keys(services).forEach(key => {
|
||||
let service = services[key];
|
||||
const service = services[key];
|
||||
const normalizedService = normalizeService(service);
|
||||
|
||||
normalized[normalizeKey(key)] = normalizeService(service);
|
||||
normalized[normalizeKey(key)] = normalizedService;
|
||||
|
||||
[].concat(service.aliases || []).forEach(alias => {
|
||||
normalized[normalizeKey(alias)] = normalizeService(service);
|
||||
normalized[normalizeKey(alias)] = normalizedService;
|
||||
});
|
||||
|
||||
[].concat(service.domains || []).forEach(domain => {
|
||||
normalized[normalizeKey(domain)] = normalizeService(service);
|
||||
normalized[normalizeKey(domain)] = normalizedService;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -22,11 +23,10 @@ function normalizeKey(key) {
|
||||
}
|
||||
|
||||
function normalizeService(service) {
|
||||
let filter = ['domains', 'aliases'];
|
||||
let response = {};
|
||||
const response = {};
|
||||
|
||||
Object.keys(service).forEach(key => {
|
||||
if (filter.indexOf(key) < 0) {
|
||||
if (!['domains', 'aliases'].includes(key)) {
|
||||
response[key] = service[key];
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user