Socket
Socket
Sign inDemoInstall

bowser

Package Overview
Dependencies
0
Maintainers
0
Versions
81
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.4 to 0.0.5

18

bowser.js

@@ -7,2 +7,8 @@ /*!

*/
/*!
* Bowser - a browser detector
* copyright Dustin Diaz 2011
* https://github.com/ded/bowser
* MIT License
*/
!function (context) {

@@ -31,3 +37,3 @@ /**

msie: 1,
version: ua.match(/msie ([\d\.]+);/i)[1]
version: ua.match(/msie (\d+(\.\d+)?);/i)[1]
};

@@ -39,3 +45,3 @@ }

chrome: 1,
version: ua.match(/chrome\/([\d\.]+)/i)[1]
version: ua.match(/chrome\/(\d+(\.\d+)?)/i)[1]
};

@@ -47,3 +53,3 @@ }

safari: 1,
version: ua.match(/version\/([\d\.]+)/i)[1]
version: ua.match(/version\/(\d+(\.\d+)?)/i)[1]
};

@@ -54,3 +60,3 @@ }

opera: 1,
version: ua.match(/version\/([\d\.]+)/i)[1]
version: ua.match(/version\/(\d+(\.\d+)?)/i)[1]
};

@@ -61,3 +67,3 @@ }

gecko: 1,
version: ua.match(/firefox\/([\d\.]+)/i)[1]
version: ua.match(/firefox\/(\d+(\.\d+)?)/i)[1]
};

@@ -98,2 +104,2 @@ if (firefox) {

}(this);
}(this);

@@ -6,3 +6,8 @@ /*!

* MIT License
*//*!
* Bowser - a browser detector
* copyright Dustin Diaz 2011
* https://github.com/ded/bowser
* MIT License
*/
!function(a){function i(){if(c)return{msie:1,version:b.match(/msie ([\d\.]+);/i)[1]};if(d)return{webkit:1,chrome:1,version:b.match(/chrome\/([\d\.]+)/i)[1]};if(e)return{webkit:1,safari:1,version:b.match(/version\/([\d\.]+)/i)[1]};if(f)return{opera:1,version:b.match(/version\/([\d\.]+)/i)[1]};if(h){var a={gecko:1,version:b.match(/firefox\/([\d\.]+)/i)[1]};g&&(a.firefox=1);return a}}var b=navigator.userAgent,c=/msie/i.test(b),d=/chrome/i.test(b),e=/safari/i.test(b)&&!d,f=/opera/i.test(b),g=/firefox/i.test(b),h=/gecko\//i.test(b),j=i();j.msie&&j.version>=6||j.chrome&&j.version>=8||j.firefox&&j.version>=3.6||j.safari&&j.version>=5||j.opera&&j.version>=9.5?j.a=!0:j.msie&&j.version<6||j.chrome&&j.version<8||j.firefox&&j.version<3.6||j.safari&&j.version<5||j.opera&&j.version<9.5?j.c=!0:j.x=!0,typeof module!="undefined"&&module.exports?module.exports.browser=j:a.bowser=j}(this)
!function(a){function i(){if(c)return{msie:1,version:b.match(/msie (\d+(\.\d+)?);/i)[1]};if(d)return{webkit:1,chrome:1,version:b.match(/chrome\/(\d+(\.\d+)?)/i)[1]};if(e)return{webkit:1,safari:1,version:b.match(/version\/(\d+(\.\d+)?)/i)[1]};if(f)return{opera:1,version:b.match(/version\/(\d+(\.\d+)?)/i)[1]};if(h){var a={gecko:1,version:b.match(/firefox\/(\d+(\.\d+)?)/i)[1]};g&&(a.firefox=1);return a}}var b=navigator.userAgent,c=/msie/i.test(b),d=/chrome/i.test(b),e=/safari/i.test(b)&&!d,f=/opera/i.test(b),g=/firefox/i.test(b),h=/gecko\//i.test(b),j=i();j.msie&&j.version>=6||j.chrome&&j.version>=8||j.firefox&&j.version>=3.6||j.safari&&j.version>=5||j.opera&&j.version>=9.5?j.a=!0:j.msie&&j.version<6||j.chrome&&j.version<8||j.firefox&&j.version<3.6||j.safari&&j.version<5||j.opera&&j.version<9.5?j.c=!0:j.x=!0,typeof module!="undefined"&&module.exports?module.exports.browser=j:a.bowser=j}(this)

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

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

@@ -8,0 +8,0 @@ "author": "Dustin Diaz <@ded>",

@@ -0,1 +1,7 @@

/*!
* Bowser - a browser detector
* copyright Dustin Diaz 2011
* https://github.com/ded/bowser
* MIT License
*/
!function (context) {

@@ -24,3 +30,3 @@ /**

msie: 1,
version: ua.match(/msie ([\d\.]+);/i)[1]
version: ua.match(/msie (\d+(\.\d+)?);/i)[1]
};

@@ -32,3 +38,3 @@ }

chrome: 1,
version: ua.match(/chrome\/([\d\.]+)/i)[1]
version: ua.match(/chrome\/(\d+(\.\d+)?)/i)[1]
};

@@ -40,3 +46,3 @@ }

safari: 1,
version: ua.match(/version\/([\d\.]+)/i)[1]
version: ua.match(/version\/(\d+(\.\d+)?)/i)[1]
};

@@ -47,3 +53,3 @@ }

opera: 1,
version: ua.match(/version\/([\d\.]+)/i)[1]
version: ua.match(/version\/(\d+(\.\d+)?)/i)[1]
};

@@ -54,3 +60,3 @@ }

gecko: 1,
version: ua.match(/firefox\/([\d\.]+)/i)[1]
version: ua.match(/firefox\/(\d+(\.\d+)?)/i)[1]
};

@@ -91,2 +97,2 @@ if (firefox) {

}(this);
}(this);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc