mirror of
https://gh-proxy.org/https://github.com/softprops/action-gh-release.git
synced 2026-07-19 09:33:02 +08:00
remove node_modules
This commit is contained in:
-15
@@ -1,15 +0,0 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user