build(deps): commit production deps

This commit is contained in:
marocchino 2019-11-21 09:59:42 +09:00
parent cb9470fc12
commit e4492afca8
No known key found for this signature in database
GPG key ID: AFF521DBDB122570
450 changed files with 123635 additions and 2 deletions

View file

@ -0,0 +1,3 @@
export function getUserAgent() {
return navigator.userAgent;
}

View file

@ -0,0 +1 @@
export { getUserAgent } from "./node";

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>";
}
throw error;
}
}