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.0 to 0.3.1

2

lib/appliance.js

@@ -14,3 +14,3 @@ /* HEADER BEGIN */

else if (ua.indexOf('PlayStation Vita') >= 0) data = dataset.get('PSVita');
else if (ua.indexOf('PLAYSTATION 3;') >= 0) data = dataset.get('PS3');
else if (ua.indexOf('PLAYSTATION 3 ') >= 0 || ua.indexOf('PLAYSTATION 3;') >= 0) data = dataset.get('PS3');

@@ -17,0 +17,0 @@ if (! data)

@@ -50,4 +50,6 @@ /* HEADER BEGIN */

var challengeCrawlers = exports.challengeCrawlers = function(ua, result) {
if (ua.indexOf('Yahoo') >= 0 || ua.indexOf('listing.yahoo.co.jp/support/faq/') >= 0) {
if (ua.indexOf('compatible; Yahoo! Slurp;') >= 0) {
if (ua.indexOf('Yahoo') >= 0
|| ua.indexOf('help.yahoo.co.jp/help/jp/') >= 0
|| ua.indexOf('listing.yahoo.co.jp/support/faq/') >= 0) {
if (ua.indexOf('compatible; Yahoo! Slurp') >= 0) {
updateMap(result, dataset.get('YahooSlurp'));

@@ -60,3 +62,4 @@ return true;

}
if (ua.indexOf('crawler (http://listing.yahoo.co.jp/support/faq/') >= 0) {
if (ua.indexOf('crawler (http://listing.yahoo.co.jp/support/faq/') >= 0
|| ua.indexOf('crawler (http://help.yahoo.co.jp/help/jp/') >= 0) {
updateMap(result, dataset.get('YahooJP'));

@@ -113,2 +116,18 @@ return true;

}
if (ua.indexOf('(www.radian6.com/crawler)') >= 0) {
updateMap(result, dataset.get('radian6'));
return true;
}
if (ua.indexOf('labs.topsy.com/butterfly/') >= 0) {
updateMap(result, dataset.get('topsyButterfly'));
return true;
}
if (ua.indexOf('rogerbot/1.0 (http://www.seomoz.org/dp/rogerbot') >= 0) {
updateMap(result, dataset.get('rogerbot'));
return true;
}
if (ua.indexOf('compatible; AhrefsBot/') >= 0) {
updateMap(result, dataset.get('AhrefsBot'));
return true;
}
if (ua.indexOf('livedoor FeedFetcher') >= 0 || ua.indexOf('Fastladder FeedFetcher') >= 0) {

@@ -127,2 +146,3 @@ updateMap(result, dataset.get('livedoorFeedFetcher'));

if (ua.indexOf('mixi-check') >= 0 ||
ua.indexOf('mixi-crawler') >= 0 ||
ua.indexOf('mixi-news-crawler') >= 0) {

@@ -129,0 +149,0 @@ updateMap(result, dataset.get('mixi'));

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

// GENERATED from dataset.yaml at Mon Nov 26 16:00:35 JST 2012 by tagomoris
// GENERATED from dataset.yaml at Thu Jan 31 19:33:03 JST 2013 by tagomoris
var obj;

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

DATASET[obj.label] = obj;
obj = {label:'topsyButterfly', name:'topsy Butterfly', type:'full'};
obj['vendor'] = '';
obj['category'] = 'crawler';
DATASET[obj.label] = obj;
obj = {label:'rogerbot', name:'SeoMoz rogerbot', type:'full'};
obj['vendor'] = '';
obj['category'] = 'crawler';
DATASET[obj.label] = obj;
obj = {label:'AhrefsBot', name:'ahref AhrefsBot', type:'full'};
obj['vendor'] = '';
obj['category'] = 'crawler';
DATASET[obj.label] = obj;
obj = {label:'radian6', name:'salesforce radian6', type:'full'};
obj['vendor'] = '';
obj['category'] = 'crawler';
DATASET[obj.label] = obj;
obj = {label:'Hatena', name:'Hatena', type:'full'};

@@ -297,0 +313,0 @@ obj['vendor'] = '';

{
"name": "woothee",
"version": "0.3.0",
"version": "0.3.1",
"description": "User-Agent string parser (js implementation)",

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

@@ -5,3 +5,3 @@ (function (){

// GENERATED at Mon Nov 26 16:01:17 JST 2012 by tagomoris
// GENERATED at Thu Jan 31 19:37:42 JST 2013 by tagomoris
var dataset = {};

@@ -46,3 +46,3 @@ (function(){

// GENERATED from dataset.yaml at Mon Nov 26 16:00:35 JST 2012 by tagomoris
// GENERATED from dataset.yaml at Thu Jan 31 19:33:03 JST 2013 by tagomoris
var obj;

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

DATASET[obj.label] = obj;
obj = {label:'topsyButterfly', name:'topsy Butterfly', type:'full'};
obj['vendor'] = '';
obj['category'] = 'crawler';
DATASET[obj.label] = obj;
obj = {label:'rogerbot', name:'SeoMoz rogerbot', type:'full'};
obj['vendor'] = '';
obj['category'] = 'crawler';
DATASET[obj.label] = obj;
obj = {label:'AhrefsBot', name:'ahref AhrefsBot', type:'full'};
obj['vendor'] = '';
obj['category'] = 'crawler';
DATASET[obj.label] = obj;
obj = {label:'radian6', name:'salesforce radian6', type:'full'};
obj['vendor'] = '';
obj['category'] = 'crawler';
DATASET[obj.label] = obj;
obj = {label:'Hatena', name:'Hatena', type:'full'};

@@ -754,4 +770,6 @@ obj['vendor'] = '';

var challengeCrawlers = exports.challengeCrawlers = function(ua, result) {
if (ua.indexOf('Yahoo') >= 0 || ua.indexOf('listing.yahoo.co.jp/support/faq/') >= 0) {
if (ua.indexOf('compatible; Yahoo! Slurp;') >= 0) {
if (ua.indexOf('Yahoo') >= 0
|| ua.indexOf('help.yahoo.co.jp/help/jp/') >= 0
|| ua.indexOf('listing.yahoo.co.jp/support/faq/') >= 0) {
if (ua.indexOf('compatible; Yahoo! Slurp') >= 0) {
updateMap(result, dataset.get('YahooSlurp'));

@@ -764,3 +782,4 @@ return true;

}
if (ua.indexOf('crawler (http://listing.yahoo.co.jp/support/faq/') >= 0) {
if (ua.indexOf('crawler (http://listing.yahoo.co.jp/support/faq/') >= 0
|| ua.indexOf('crawler (http://help.yahoo.co.jp/help/jp/') >= 0) {
updateMap(result, dataset.get('YahooJP'));

@@ -817,2 +836,18 @@ return true;

}
if (ua.indexOf('(www.radian6.com/crawler)') >= 0) {
updateMap(result, dataset.get('radian6'));
return true;
}
if (ua.indexOf('labs.topsy.com/butterfly/') >= 0) {
updateMap(result, dataset.get('topsyButterfly'));
return true;
}
if (ua.indexOf('rogerbot/1.0 (http://www.seomoz.org/dp/rogerbot') >= 0) {
updateMap(result, dataset.get('rogerbot'));
return true;
}
if (ua.indexOf('compatible; AhrefsBot/') >= 0) {
updateMap(result, dataset.get('AhrefsBot'));
return true;
}
if (ua.indexOf('livedoor FeedFetcher') >= 0 || ua.indexOf('Fastladder FeedFetcher') >= 0) {

@@ -831,2 +866,3 @@ updateMap(result, dataset.get('livedoorFeedFetcher'));

if (ua.indexOf('mixi-check') >= 0 ||
ua.indexOf('mixi-crawler') >= 0 ||
ua.indexOf('mixi-news-crawler') >= 0) {

@@ -877,3 +913,3 @@ updateMap(result, dataset.get('mixi'));

else if (ua.indexOf('PlayStation Vita') >= 0) data = dataset.get('PSVita');
else if (ua.indexOf('PLAYSTATION 3;') >= 0) data = dataset.get('PS3');
else if (ua.indexOf('PLAYSTATION 3 ') >= 0 || ua.indexOf('PLAYSTATION 3;') >= 0) data = dataset.get('PS3');

@@ -880,0 +916,0 @@ if (! data)

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