mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2026-05-20 18:15:53 +00:00
build(deps): commit production deps
This commit is contained in:
parent
cb9470fc12
commit
e4492afca8
450 changed files with 123635 additions and 2 deletions
15
node_modules/universal-user-agent/index.js
generated
vendored
Normal file
15
node_modules/universal-user-agent/index.js
generated
vendored
Normal 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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue