/
Nspection
/
rules-manager-mcp
Обзор
Документация
Войти
/
Nspection
/
rules-manager-mcp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
dev
node_modules/jose/dist/webapi/lib/validate_algorithms.js
10 строк
356 B
Buglov Evgeny
Первый коммит
27 фев 2026, 21:12
27 фев 2026, 21:12
e51dee3
Код
Авторство
О чём код?
export function validateAlgorithms(option, algorithms) { if (algorithms !== undefined && (!Array.isArray(algorithms) || algorithms.some((s) => typeof s !== 'string'))) { throw new TypeError(`"${option}" option must be an array of strings`); } if (!algorithms) { return undefined; } return new Set(algorithms); }