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

mobile-device-detect

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobile-device-detect - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

13

dist/index.js

@@ -255,3 +255,8 @@ module.exports =

};
var isEdgeType = function isEdgeType() {
return browser.name === EDGE;
};
var isYandexType = function isYandexType() {
return browser.name === YANDEX;
};
var isSafariType = function isSafariType() {

@@ -329,2 +334,4 @@ return browser.name === SAFARI || browser.name === MOBILE_SAFARI;

var getUA = getUseragent();
var isEdge = isEdgeType();
var isYandex = isYandexType();

@@ -393,3 +400,5 @@ var type = checkType(device.type);

engineVersion: engineVersion,
getUA: getUA
getUA: getUA,
isEdge: isEdge,
isYandex: isYandex
};

@@ -396,0 +405,0 @@

@@ -1,8 +0,31 @@

declare module 'mobile-device-detect' {
export const isBrowser: boolean;
export const isMobile: boolean;
export const isTablet: boolean;
export const isSmartTV: boolean;
export const isConsole: boolean;
export const isWearable: boolean;
declare module "mobile-device-detect" {
export const isBrowser: boolean;
export const isMobile: boolean;
export const isTablet: boolean;
export const isSmartTV: boolean;
export const isConsole: boolean;
export const isWearable: boolean;
export const isMobileSafari: boolean;
export const isChromium: boolean;
export const isMobileOnly: boolean;
export const isAndroid: boolean;
export const isWinPhone: boolean;
export const isIOS: boolean;
export const isChrome: boolean;
export const isFirefox: boolean;
export const isSafari: boolean;
export const isOpera: boolean;
export const isIE: boolean;
export const isEdge: boolean;
export const isYandex: boolean;
export const osVersion: string;
export const osName: string;
export const fullBrowserVersion: string;
export const browserVersion: string;
export const browserName: string;
export const mobileVendor: string;
export const mobileModel: string;
export const engineName: string;
export const engineVersion: string;
export const getUA: string;
}

2

package.json
{
"name": "mobile-device-detect",
"version": "0.2.2",
"version": "0.2.3",
"description": "Helpers for handling mobile devices",

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

@@ -19,8 +19,4 @@ ## mobile-device-detect

import any helper to your component, and use it as you needed.
Import any helper to your component, for example, in Vue.js:
For example, in Vue.js:
In script section:
```html

@@ -72,2 +68,3 @@ <script>

| isEdge | bool | returns true if browser is `Edge` |
| isYandex | bool | returns true if browser is `Yandex` |
| isChromium | bool | returns true if browser is `Chromium` |

@@ -74,0 +71,0 @@ | isMobileSafari | bool | returns true if browser is `Mobile Safari` |

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