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

woothee

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

woothee - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

5

lib/dataset.js

@@ -36,3 +36,3 @@ var KEY_LABEL = exports.KEY_LABEL = 'label',

// GENERATED from dataset.yaml at Mon Sep 2 19:53:25 JST 2013 by tagomoris
// GENERATED from dataset.yaml at Tue Sep 10 14:45:26 JST 2013 by tagomoris
var obj;

@@ -123,2 +123,5 @@ obj = {label:'MSIE', name:'Internet Explorer', type:'browser'};

DATASET[obj.label] = obj;
obj = {label:'FirefoxOS', name:'Firefox OS', type:'os'};
obj['category'] = 'smartphone';
DATASET[obj.label] = obj;
obj = {label:'BlackBerry', name:'BlackBerry', type:'os'};

@@ -125,0 +128,0 @@ obj['category'] = 'smartphone';

@@ -81,2 +81,10 @@ /* HEADER BEGIN */

if (result[dataset.KEY_NAME] && result[dataset.KEY_NAME] === dataset.get('Firefox')[dataset.KEY_NAME]) {
// Firefox OS specific pattern
// http://lawrencemandel.com/2012/07/27/decision-made-firefox-os-user-agent-string/
if (/^Mozilla\/[.0-9]+ \(Mobile;(.*;)? rv:[.0-9]+\) Gecko\/[.0-9]+ Firefox\/[.0-9]+$/.exec(ua)) {
data = dataset.get('FirefoxOS');
}
}
if (!data)

@@ -83,0 +91,0 @@ return false;

2

package.json
{
"name": "woothee",
"version": "0.3.3",
"version": "0.3.4",
"description": "User-Agent string parser (js implementation)",

@@ -5,0 +5,0 @@ "main": "./release/woothee",

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