mobile-device-detect
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -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; | ||
} |
{ | ||
"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` | |
38459
550
85