Socket
Socket
Sign inDemoInstall

uadetect

Package Overview
Dependencies
215
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.1 to 3.1.2

3

dist/appCodeName.js

@@ -16,3 +16,4 @@ let appCodeName = window.navigator.appCodeName;

else {
throw new Error("Unknown appCodeName \(UAD_1601\)"); // throw error;
console.error("Unknown appCodeName \(UAD_1601\)");
return "Unknown";
}

@@ -19,0 +20,0 @@ };

@@ -7,3 +7,4 @@ let appVersion = window.navigator.appVersion;

else {
throw new Error("No app version detected. \(UAD_1801\)");
console.error("No app version detected. \(UAD_1801\)");
return "Unknown";
}

@@ -10,0 +11,0 @@ };

@@ -25,3 +25,4 @@ let ua = navigator.userAgent;

else {
throw new Error("ERR: Browser can not be determined \(UAD_101\)");
console.error("ERR: Browser can not be determined \(UAD_101\)");
"Unknown";
}

@@ -28,0 +29,0 @@ };

@@ -11,3 +11,4 @@ let cookies = navigator.cookieEnabled;

else {
throw new Error("ERR: Cookie status can not be determined \(UAD_201\)");
console.error("ERR: Cookie status can not be determined \(UAD_201\)");
return "ERROR";
}

@@ -14,0 +15,0 @@ };

@@ -17,3 +17,4 @@ let browserDoNotTrack = navigator.doNotTrack;

else {
throw new Error("Unknown doNotTrack value\(UAD_801\)");
console.error("Unknown doNotTrack value\(UAD_801\)");
return "ERROR";
}

@@ -20,0 +21,0 @@ };

@@ -25,3 +25,4 @@ // Finite Device Type

else {
throw new Error("Unknown device type\(UAD_601\)");
console.error("Unknown device type\(UAD_601\)");
return "Unknown";
}

@@ -28,0 +29,0 @@ }

@@ -9,4 +9,2 @@ /*

import { browser, getBrowser } from "./browser";
// Build Number
import { buildNumber, browserSpecificSupportBuildID } from "./buildNumber";
// Code Name

@@ -42,4 +40,2 @@ import { codeName } from "./appCodeName";

import { engine } from './product';
// RAM
import { getRam, browserSpecificSupportRAM, browserRam } from "./ram";
// Version

@@ -51,4 +47,4 @@ import { version } from './appVersion';

// Make the functions accessible
export { DetectScreenOrientation, DetectDeviceType, finiteMobileDeviceType, getCurrentUA, getCookies, getDoNotTrack, getBrowser, getRam, browserSpecificSupportRAM, browserSpecificSupportCores, getMaxTouchPoints, getOS, browserSpecificSupportBuildID };
export { DetectScreenOrientation, DetectDeviceType, finiteMobileDeviceType, getCurrentUA, getCookies, getDoNotTrack, getBrowser, browserSpecificSupportCores, getMaxTouchPoints, getOS, };
// As well as the returns on those functions
export { ORIENTATION_isLandscape, DEVICE_type, DEVICE_finiteType, currentUA, cookieStatus, doNotTrackStatus, browser, browserRam, buildNumber, processorCores, maxTouchPoints, navigatorObject, browserOnlineStatus, PDFviewerStatus, robotStatus, OS, geo, codeName, engine, version };
export { ORIENTATION_isLandscape, DEVICE_type, DEVICE_finiteType, currentUA, cookieStatus, doNotTrackStatus, browser, processorCores, maxTouchPoints, navigatorObject, browserOnlineStatus, PDFviewerStatus, robotStatus, OS, geo, codeName, engine, version };

@@ -17,3 +17,3 @@ import { browser } from "./browser";

if (browser === "IE") {
throw new Error("Not supported on this browser\(UAD_1301\)");
console.error("Not supported on this browser\(UAD_1301\)");
}

@@ -27,3 +27,3 @@ if (browser === "Opera") {

else {
throw new Error("Not supported on this browser\(UAD_1301\)");
console.error("Not supported on this browser\(UAD_1301\)");
}

@@ -30,0 +30,0 @@ };

@@ -24,3 +24,4 @@ const getOS = ({ ua }) => {

else {
throw new Error("Unknown Operating System\(UAD_1101\)");
console.error("Unknown Operating System\(UAD_1101\)");
return "Unknown";
}

@@ -27,0 +28,0 @@ };

@@ -16,3 +16,4 @@ let productID = window.navigator.product;

else {
throw new Error("Unknown engine \(UAD_1702\)"); // throw error;
console.error("Unknown engine \(UAD_1702\)"); // throw error;
return "Other";
}

@@ -19,0 +20,0 @@ };

@@ -11,2 +11,2 @@ let webdriverControlled = navigator.webdriver;

let robotStatus = getBots({ webdriverControlled });
export { robotStatus };
export { robotStatus, webdriverControlled };
{
"name": "uadetect",
"version": "3.1.1",
"version": "3.1.2",
"description": "The dead-simple way of interacting with the navigator API",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc