Comparing version 0.3.3 to 0.3.4-a
@@ -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; |
{ | ||
"name": "woothee", | ||
"version": "0.3.3", | ||
"version": "0.3.4a", | ||
"description": "User-Agent string parser (js implementation)", | ||
@@ -5,0 +5,0 @@ "main": "./release/woothee", |
@@ -5,3 +5,3 @@ (function (){ | ||
// GENERATED at Mon Sep 2 20:00:02 JST 2013 by tagomoris | ||
// GENERATED at Tue Sep 10 15:33:22 JST 2013 by tagomoris | ||
var dataset = {}; | ||
@@ -46,3 +46,3 @@ (function(){ | ||
// 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; | ||
@@ -133,2 +133,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'}; | ||
@@ -560,2 +563,10 @@ obj['category'] = 'smartphone'; | ||
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) | ||
@@ -562,0 +573,0 @@ return false; |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
86113
2305
1