Comparing version 1.5.0 to 1.7.0
@@ -43,2 +43,4 @@ /* HEADER BEGIN */ | ||
return false; | ||
if (ua.indexOf('Chrome') >= 0 && ua.indexOf('wv') >= 0) | ||
return false; | ||
@@ -127,2 +129,14 @@ var version = dataset.VALUE_UNKNOWN; | ||
// Android(Lollipop and Above) | ||
if (ua.indexOf('Chrome') >= 0 && ua.indexOf('wv') >= 0) { | ||
var vmatch = webviewVersionPattern.exec(ua); | ||
if (vmatch) | ||
version = vmatch[1]; | ||
updateMap(result, dataset.get('Webview')); | ||
updateVersion(result, version); | ||
return true; | ||
} | ||
// iOS | ||
var match = webviewPattern.exec(ua); | ||
@@ -129,0 +143,0 @@ if (match) { |
@@ -99,3 +99,6 @@ /* HEADER BEGIN */ | ||
if (ua.indexOf('Yeti') >= 0) { | ||
if (ua.indexOf('http://help.naver.com/robots') >= 0) { | ||
if (ua.indexOf('http://help.naver.com/robots') >= 0 || | ||
ua.indexOf('http://help.naver.com/support/robots.html') >= 0 || | ||
ua.indexOf('http://naver.me/bot') >= 0) { | ||
updateMap(result, dataset.get('Yeti')); | ||
@@ -176,2 +179,6 @@ return true; | ||
} | ||
if (ua.indexOf('trendictionbot') >= 0) { | ||
updateMap(result, dataset.get('trendictionbot')); | ||
return true; | ||
} | ||
@@ -178,0 +185,0 @@ return false; |
@@ -37,3 +37,3 @@ var KEY_LABEL = exports.KEY_LABEL = 'label', | ||
var DATASET = {}; | ||
// GENERATED from dataset.yaml at Mon Aug 22 20:49:51 JST 2016 by tagomoris | ||
// GENERATED from dataset.yaml at Sat Aug 19 23:46:35 JST 2017 by tell_k | ||
var obj; | ||
@@ -331,2 +331,6 @@ obj = {label:'MSIE', name:'Internet Explorer', type:'browser'}; | ||
DATASET[obj.label] = obj; | ||
obj = {label:'trendictionbot', name:'trendiction', type:'full'}; | ||
obj['vendor'] = ''; | ||
obj['category'] = 'crawler'; | ||
DATASET[obj.label] = obj; | ||
obj = {label:'mixi', name:'mixi', type:'full'}; | ||
@@ -333,0 +337,0 @@ obj['vendor'] = ''; |
@@ -53,2 +53,4 @@ /* HEADER BEGIN */ | ||
data = dataset.get('HTTPLibrary'); version = 'php'; | ||
} else if (ua.indexOf('curl/') >= 0) { | ||
data = dataset.get('HTTPLibrary'); version = 'curl'; | ||
} | ||
@@ -55,0 +57,0 @@ |
{ | ||
"name": "woothee", | ||
"version": "1.5.0", | ||
"version": "1.7.0", | ||
"description": "User-Agent string parser (js implementation)", | ||
@@ -5,0 +5,0 @@ "main": "./release/woothee", |
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
179188
2976