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

bowser

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bowser - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

22

bowser.js

@@ -19,2 +19,3 @@ /*!

* iPhone: "Mozilla/5.0 (iPhone Simulator; U; CPU iPhone OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5"
* iPad: "Mozilla/5.0 (iPad; U; CPU OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5",
* Android: "Mozilla/5.0 (Linux; U; Android 2.3.4; en-us; T-Mobile G2 Build/GRJ22) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"

@@ -29,2 +30,3 @@ */

, iphone = /iphone/i.test(ua)
, ipad = /ipad/i.test(ua)
, android = /android/i.test(ua)

@@ -51,4 +53,12 @@ , opera = /opera/i.test(ua)

, mobile: t
, ios: t
, version: ua.match(webkitVersion)[1]
}
if (ipad) return {
webkit: t
, ipad: t
, mobile: t
, ios: t
, version: ua.match(webkitVersion)[1]
}
if (android) return {

@@ -85,6 +95,6 @@ webkit: t

if ((bowser.msie && bowser.version >= 6) ||
(bowser.chrome && bowser.version >= 8) ||
(bowser.firefox && bowser.version >= 3.6) ||
(bowser.chrome && bowser.version >= 10) ||
(bowser.firefox && bowser.version >= 4.0) ||
(bowser.safari && bowser.version >= 5) ||
(bowser.opera && bowser.version >= 9.5)) {
(bowser.opera && bowser.version >= 10.0)) {
bowser.a = t;

@@ -94,6 +104,6 @@ }

else if ((bowser.msie && bowser.version < 6) ||
(bowser.chrome && bowser.version < 8) ||
(bowser.firefox && bowser.version < 3.6) ||
(bowser.chrome && bowser.version < 10) ||
(bowser.firefox && bowser.version < 4.0) ||
(bowser.safari && bowser.version < 5) ||
(bowser.opera && bowser.version < 9.5)) {
(bowser.opera && bowser.version < 10.0)) {
bowser.c = t

@@ -100,0 +110,0 @@ } else bowser.x = t

@@ -6,2 +6,2 @@ /*!

*/
!function(a,b){typeof define=="function"?define(b):typeof module!="undefined"&&module.exports?module.exports.browser=b():this[a]=b()}("bowser",function(){function l(){if(c)return{msie:b,version:a.match(/msie (\d+(\.\d+)?);/i)[1]};if(d)return{webkit:b,chrome:b,version:a.match(/chrome\/(\d+(\.\d+)?)/i)[1]};if(f)return{webkit:b,iphone:b,mobile:b,version:a.match(k)[1]};if(g)return{webkit:b,android:b,mobile:b,version:a.match(k)[1]};if(e)return{webkit:b,safari:b,version:a.match(k)[1]};if(h)return{opera:b,version:a.match(k)[1]};if(j){var l={gecko:b,version:a.match(/firefox\/(\d+(\.\d+)?)/i)[1]};return i&&(l.firefox=b),l}}var a=navigator.userAgent,b=!0,c=/msie/i.test(a),d=/chrome/i.test(a),e=/safari/i.test(a)&&!d,f=/iphone/i.test(a),g=/android/i.test(a),h=/opera/i.test(a),i=/firefox/i.test(a),j=/gecko\//i.test(a),k=/version\/(\d+(\.\d+)?)/i,m=l();return m.msie&&m.version>=6||m.chrome&&m.version>=8||m.firefox&&m.version>=3.6||m.safari&&m.version>=5||m.opera&&m.version>=9.5?m.a=b:m.msie&&m.version<6||m.chrome&&m.version<8||m.firefox&&m.version<3.6||m.safari&&m.version<5||m.opera&&m.version<9.5?m.c=b:m.x=b,m})
!function(a,b){typeof define=="function"?define(b):typeof module!="undefined"&&module.exports?module.exports.browser=b():this[a]=b()}("bowser",function(){function m(){if(c)return{msie:b,version:a.match(/msie (\d+(\.\d+)?);/i)[1]};if(d)return{webkit:b,chrome:b,version:a.match(/chrome\/(\d+(\.\d+)?)/i)[1]};if(f)return{webkit:b,iphone:b,mobile:b,ios:b,version:a.match(l)[1]};if(g)return{webkit:b,ipad:b,mobile:b,ios:b,version:a.match(l)[1]};if(h)return{webkit:b,android:b,mobile:b,version:a.match(l)[1]};if(e)return{webkit:b,safari:b,version:a.match(l)[1]};if(i)return{opera:b,version:a.match(l)[1]};if(k){var m={gecko:b,version:a.match(/firefox\/(\d+(\.\d+)?)/i)[1]};return j&&(m.firefox=b),m}}var a=navigator.userAgent,b=!0,c=/msie/i.test(a),d=/chrome/i.test(a),e=/safari/i.test(a)&&!d,f=/iphone/i.test(a),g=/ipad/i.test(a),h=/android/i.test(a),i=/opera/i.test(a),j=/firefox/i.test(a),k=/gecko\//i.test(a),l=/version\/(\d+(\.\d+)?)/i,n=m();return n.msie&&n.version>=6||n.chrome&&n.version>=10||n.firefox&&n.version>=4||n.safari&&n.version>=5||n.opera&&n.version>=10?n.a=b:n.msie&&n.version<6||n.chrome&&n.version<10||n.firefox&&n.version<4||n.safari&&n.version<5||n.opera&&n.version<10?n.c=b:n.x=b,n})

@@ -5,3 +5,3 @@ {

, "keywords": ["ender", "browser", "sniff", "detection"]
, "version": "0.0.7"
, "version": "0.0.8"
, "homepage": "https://github.com/ded/bowser"

@@ -8,0 +8,0 @@ , "author": "Dustin Diaz <dustin@dustindiaz.com> (http://dustindiaz.com)"

@@ -14,2 +14,3 @@ !function (name, definition) {

* iPhone: "Mozilla/5.0 (iPhone Simulator; U; CPU iPhone OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5"
* iPad: "Mozilla/5.0 (iPad; U; CPU OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5",
* Android: "Mozilla/5.0 (Linux; U; Android 2.3.4; en-us; T-Mobile G2 Build/GRJ22) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"

@@ -24,2 +25,3 @@ */

, iphone = /iphone/i.test(ua)
, ipad = /ipad/i.test(ua)
, android = /android/i.test(ua)

@@ -46,4 +48,12 @@ , opera = /opera/i.test(ua)

, mobile: t
, ios: t
, version: ua.match(webkitVersion)[1]
}
if (ipad) return {
webkit: t
, ipad: t
, mobile: t
, ios: t
, version: ua.match(webkitVersion)[1]
}
if (android) return {

@@ -80,6 +90,6 @@ webkit: t

if ((bowser.msie && bowser.version >= 6) ||
(bowser.chrome && bowser.version >= 8) ||
(bowser.firefox && bowser.version >= 3.6) ||
(bowser.chrome && bowser.version >= 10) ||
(bowser.firefox && bowser.version >= 4.0) ||
(bowser.safari && bowser.version >= 5) ||
(bowser.opera && bowser.version >= 9.5)) {
(bowser.opera && bowser.version >= 10.0)) {
bowser.a = t;

@@ -89,6 +99,6 @@ }

else if ((bowser.msie && bowser.version < 6) ||
(bowser.chrome && bowser.version < 8) ||
(bowser.firefox && bowser.version < 3.6) ||
(bowser.chrome && bowser.version < 10) ||
(bowser.firefox && bowser.version < 4.0) ||
(bowser.safari && bowser.version < 5) ||
(bowser.opera && bowser.version < 9.5)) {
(bowser.opera && bowser.version < 10.0)) {
bowser.c = t

@@ -95,0 +105,0 @@ } else bowser.x = t

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