Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shopify/browser

Package Overview
Dependencies
Maintainers
24
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/browser - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

7

build/cjs/browser.js

@@ -35,3 +35,3 @@ 'use strict';

get isMobile() {
return MOBILE_DEVICE_TYPES.includes(this.ua.getDevice().type);
return MOBILE_DEVICE_TYPES.includes(this.ua.getDevice().type) || this.isPOSFirstPartyDevice();
}

@@ -106,2 +106,7 @@

this.ua = new uaParserJs.UAParser(userAgent);
} // POS Go is a first party device that is not detected as a mobile device
isPOSFirstPartyDevice() {
return this.ua.getUA().includes('WSC6X') || this.ua.getUA().includes('WTH11');
}

@@ -108,0 +113,0 @@

5

build/ts/browser.d.ts

@@ -14,3 +14,3 @@ export interface Options {

get unknown(): boolean;
get isMobile(): boolean;
get isMobile(): any;
get isDesktop(): boolean;

@@ -31,2 +31,3 @@ get isNativeApp(): any;

constructor({ userAgent, supported }: Options);
isPOSFirstPartyDevice(): any;
}

@@ -42,3 +43,3 @@ export declare function asPlainObject(browser?: Browser): {

version: any;
isMobile: boolean;
isMobile: any;
isNativeApp: any;

@@ -45,0 +46,0 @@ isDesktop: boolean;

{
"name": "@shopify/browser",
"version": "3.2.0",
"version": "3.2.1",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Utilities for extracting browser information from user-agents",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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