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

browser-info

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browser-info - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

8

index.js

@@ -40,2 +40,10 @@ /* globals navigator*/

}
if (match[1] === 'MSIE') {
tem = /\brv[ :]+(\d+)/g.exec(ua) || [];
return {
name: 'IEMobile',
version: (tem[1]||''),
os: os
};
}
if (match[1] === 'Chrome') {

@@ -42,0 +50,0 @@ tem = ua.match(/\bOPR\/(\d+)/);

2

package.json
{
"name": "browser-info",
"version": "0.2.0",
"version": "0.3.0",
"description": "Get browser info",

@@ -5,0 +5,0 @@ "author": "Steve Lacy <me@slacy.me> (http://slacy.me)",

@@ -44,2 +44,10 @@ 'use strict';

it('should detect IE mobile', function(done) {
GLOBAL.navigator = {
userAgent: 'Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0)'
};
should(info().name).equal('IEMobile');
done();
});
});
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