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 1.5.0 to 1.7.0

14

lib/browser.js

@@ -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) {

9

lib/crawler.js

@@ -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 @@

2

package.json
{
"name": "woothee",
"version": "1.5.0",
"version": "1.7.0",
"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