Bump actions/github to 2.2.0 to support GHES (#72)

* Bumping actions/github to 2.2.0

* Husky commit correct node modules
This commit is contained in:
PJ Quirk authored and GitHub committed 2020-05-15 09:52:23 -04:00
1 parent 04aa5dbc72
commit c5c9bd0f54
7791 files changed
+2209793 -49064

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
export function getUserAgent() {
try {
return navigator.userAgent;
}
catch (e) {
return "<environment undetectable>";
}
}
+1
View File
@@ -0,0 +1 @@
export { getUserAgent } from "./node";
+12
View File
@@ -0,0 +1,12 @@
import osName from "os-name";
export function getUserAgent() {
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>";
}
return "<environment undetectable>";
}
}