1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-node synced 2025-06-17 09:14:10 +02:00
This commit is contained in:
Danny McCormick 2019-08-06 18:29:44 -04:00
parent fc9ff49b90
commit 5273d0df9c
391 changed files with 79850 additions and 45 deletions

15
node_modules/universal-user-agent/index.js generated vendored Normal file
View file

@ -0,0 +1,15 @@
module.exports = getUserAgentNode
const osName = require('os-name')
function getUserAgentNode () {
try {
return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`
} catch (error) {
if (/wmic os get Caption/.test(error.message)) {
return 'Windows <version undetectable>'
}
throw error
}
}