Comparing version 0.1.3 to 0.1.5
{ | ||
"name": "date-fns", | ||
"version": "0.1.3", | ||
"version": "0.1.5", | ||
"homepage": "https://github.com/js-fns/sniff-fns", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -72,17 +72,17 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
var sniffFns = { | ||
android: isAndroid, | ||
mobileAndroid: isAndroidMobile, | ||
bb10: isBB, | ||
isAndroid: isAndroid, | ||
isMobileAndroid: isAndroidMobile, | ||
isBb10: isBB, | ||
browser: { | ||
chrome: isChrome, | ||
chromeMobile: isChromeMobile, | ||
firefox: isFF, | ||
opera: isOpera, | ||
safari: isSafari | ||
isChrome: isChrome, | ||
isChromeMobile: isChromeMobile, | ||
isFirefox: isFF, | ||
isOpera: isOpera, | ||
isSafari: isSafari | ||
}, | ||
iPhone: isIphone, | ||
iPad: isIpad, | ||
mac: isMac, | ||
windowsPhone: isWP, | ||
mobile: isMobile | ||
isIphone: isIphone, | ||
isIpad: isIpad, | ||
isMac: isMac, | ||
isWindowsPhone: isWP, | ||
isMobile: isMobile | ||
} | ||
@@ -111,7 +111,7 @@ | ||
var testString = __webpack_require__(14); | ||
var sniffChrome = __webpack_require__(1); | ||
var sniffAndroid = __webpack_require__(3); | ||
var isChrome = __webpack_require__(1); | ||
var isAndroid = __webpack_require__(3); | ||
var isChromeMobile = function(str){ | ||
return (sniffChrome(str) && sniffAndroid(str)) || testString(str, 'CriOS'); | ||
return (isChrome(str) && isAndroid(str)) || testString(str, 'CriOS'); | ||
} | ||
@@ -146,7 +146,7 @@ | ||
var isMobileAndroid = function(str){ | ||
var isAndroidMobile = function(str){ | ||
return sniffAndroid(str) && testString(str, 'mobile'); | ||
} | ||
module.exports = isMobileAndroid; | ||
module.exports = isAndroidMobile; | ||
@@ -280,3 +280,3 @@ | ||
var isMobile = function(str){ | ||
return isAndroidMobile(str) || isIphone(str) || isIpad(str) || isWP(str) || isBB(str); | ||
return isAndroidMobile(str) || isIphone(str) || isWP(str) || isBB(str); | ||
}; | ||
@@ -283,0 +283,0 @@ |
{ | ||
"name": "sniff-fns", | ||
"version": "0.1.3", | ||
"version": "0.1.5", | ||
"author": "Ivan Shornikov <paraboom@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "Browser agent sniffing functions", |
@@ -10,3 +10,2 @@ var isMobile = require('../is_mobile'); | ||
'Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1C25 Safari/419.3', | ||
'Mozilla/5.0 (iPad; CPU OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53', | ||
'Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; rv:11; NOKIA; Lumia 920) like Gecko' | ||
@@ -22,2 +21,3 @@ ]; | ||
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10; rv:33.0) Gecko/20100101 Firefox/33.0', | ||
'Mozilla/5.0 (iPad; CPU OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53', | ||
'Mozilla/5.0 (X11; Linux i586; rv:31.0) Gecko/20100101 Firefox/31.0', | ||
@@ -24,0 +24,0 @@ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.1 Safari/537.36', |
@@ -9,5 +9,5 @@ var testString = require('./test_string'); | ||
var isMobile = function(str){ | ||
return isAndroidMobile(str) || isIphone(str) || isIpad(str) || isWP(str) || isBB(str); | ||
return isAndroidMobile(str) || isIphone(str) || isWP(str) || isBB(str); | ||
}; | ||
module.exports = isMobile; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36694