Comparing version 1.2.0 to 1.3.0
@@ -36,2 +36,3 @@ /* HEADER BEGIN */ | ||
var edgePattern = /Edge\/([.0-9]+)/; | ||
var firefoxiOSPattern = /FxiOS\/([.0-9]+)/; | ||
var chromePattern = /(?:Chrome|CrMo|CriOS)\/([.0-9]+)/; | ||
@@ -54,2 +55,9 @@ var operaBlinkPattern = /OPR\/([.0-9]+)/; | ||
if ((match = firefoxiOSPattern.exec(ua))) { | ||
version = match[1]; | ||
updateMap(result, dataset.get('Firefox')); | ||
updateVersion(result, version); | ||
return true; | ||
} | ||
if ((match = chromePattern.exec(ua))) { | ||
@@ -56,0 +64,0 @@ var matchOpera; |
@@ -37,3 +37,3 @@ var KEY_LABEL = exports.KEY_LABEL = 'label', | ||
var DATASET = {}; | ||
// GENERATED from dataset.yaml at Thu Aug 13 14:22:27 JST 2015 by tagomoris | ||
// GENERATED from dataset.yaml at Tue Dec 22 13:57:12 JST 2015 by tagomoris | ||
var obj; | ||
@@ -40,0 +40,0 @@ obj = {label:'MSIE', name:'Internet Explorer', type:'browser'}; |
{ | ||
"name": "woothee", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "User-Agent string parser (js implementation)", | ||
@@ -5,0 +5,0 @@ "main": "./release/woothee", |
@@ -5,6 +5,6 @@ (function (){ | ||
// GENERATED from dataset.yaml at Thu Aug 13 14:22:28 JST 2015 by tagomoris | ||
// GENERATED from dataset.yaml at Tue Dec 22 13:57:12 JST 2015 by tagomoris | ||
// Snapshot from package.json | ||
var package_info = {"name":"woothee","version":"1.2.0","description":"User-Agent string parser (js implementation)","main":"./release/woothee","devDependencies":{"mocha":">= 1.7.0","chai":">= 1.3.0","js-yaml":">= 1.0.3","should":"~1.2.2"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/woothee/woothee-js"},"author":"tagomoris","license":"Apache v2"}; | ||
var package_info = {"name":"woothee","version":"1.3.0","description":"User-Agent string parser (js implementation)","main":"./release/woothee","devDependencies":{"mocha":">= 1.7.0","chai":">= 1.3.0","js-yaml":">= 1.0.3","should":"~1.2.2"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/woothee/woothee-js"},"author":"tagomoris","license":"Apache v2"}; | ||
@@ -45,3 +45,3 @@ var dataset = {}; | ||
var DATASET = {}; | ||
// GENERATED from dataset.yaml at Thu Aug 13 14:22:27 JST 2015 by tagomoris | ||
// GENERATED from dataset.yaml at Tue Dec 22 13:57:12 JST 2015 by tagomoris | ||
var obj; | ||
@@ -438,2 +438,3 @@ obj = {label:'MSIE', name:'Internet Explorer', type:'browser'}; | ||
var edgePattern = /Edge\/([.0-9]+)/; | ||
var firefoxiOSPattern = /FxiOS\/([.0-9]+)/; | ||
var chromePattern = /(?:Chrome|CrMo|CriOS)\/([.0-9]+)/; | ||
@@ -453,2 +454,8 @@ var operaBlinkPattern = /OPR\/([.0-9]+)/; | ||
} | ||
if ((match = firefoxiOSPattern.exec(ua))) { | ||
version = match[1]; | ||
updateMap(result, dataset.get('Firefox')); | ||
updateVersion(result, version); | ||
return true; | ||
} | ||
if ((match = chromePattern.exec(ua))) { | ||
@@ -455,0 +462,0 @@ var matchOpera; |
@@ -23,2 +23,6 @@ # Project Woothee | ||
* v1.3.0 | ||
* Add Firefox for iOS | ||
* v1.2.1 | ||
* Fix testset bug for BlackBerry 10 | ||
* v1.2.0 | ||
@@ -25,0 +29,0 @@ * Add Microsoft Edge, Webview of mobile phones |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
163744
2902