New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

browser-device

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-device - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

lib/getAppType.d.ts

2

lib/isNativeApp.d.ts

@@ -0,1 +1,3 @@

import { setNativeAppRegExp } from './_internal';
export default function isNativeApp(): boolean;
export { setNativeAppRegExp };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var _internal_1 = require("./_internal");
exports.setNativeAppRegExp = _internal_1.setNativeAppRegExp;
var getUa_1 = require("./getUa");

@@ -5,0 +6,0 @@ function isNativeApp() {

2

lib/os.d.ts

@@ -1,1 +0,1 @@

export default function os(): "unknown" | "android" | "ios";
export default function os(): "unknown" | "android" | "ios" | "macos" | "windows" | "linux";

@@ -5,2 +5,5 @@ "use strict";

var isiOS_1 = require("./isiOS");
var isMacOS_1 = require("./isMacOS");
var isWindows_1 = require("./isWindows");
var isLinux_1 = require("./isLinux");
function os() {

@@ -13,2 +16,11 @@ if (isAndroid_1.default()) {

}
else if (isMacOS_1.default()) {
return 'macos';
}
else if (isWindows_1.default()) {
return 'windows';
}
else if (isLinux_1.default()) {
return 'linux';
}
else {

@@ -15,0 +27,0 @@ return 'unknown';

@@ -37,3 +37,3 @@ "use strict";

// iOS 8+ changed UA
if (device.ios && device.osVersion && ua.indexOf('Version/') >= 0) {
if (device.ios && device.osVersion && ua.toLowerCase().indexOf('version/') >= 0) {
if (device.osVersion.split('.')[0] === '10') {

@@ -40,0 +40,0 @@ device.osVersion = ua.toLowerCase().split('version/')[1].split(' ')[0];

{
"name": "browser-device",
"version": "1.1.3",
"version": "1.1.4",
"description": "",

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc