node_modules: update (#290)

Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
Dawid Dziurla
2026-04-28 12:50:45 +02:00
committed by GitHub
parent 63e1562580
commit 42942bc2f8
1077 changed files with 12540 additions and 33773 deletions

View File

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