/
githubmirror
/
act
Обзор
Документация
Войти
/
githubmirror
/
act
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
pkg/runner/testdata/actions/node20/node_modules/universal-user-agent/index.js
13 строк
355 B
Casey Lee
build(deps): bump GitHub Actions to fix Node.js 20 deprecation (#6036)
24 мар 2026, 18:06
Не верифицирован
24 мар 2026, 18:06
10add23
Код
Авторство
О чём код?
export function getUserAgent() { if (typeof navigator === "object" && "userAgent" in navigator) { return navigator.userAgent; } if (typeof process === "object" && process.version !== undefined) { return `Node.js/${process.version.substr(1)} (${process.platform}; ${ process.arch })`; } return "<environment undetectable>"; }