express-useragent
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -513,3 +513,3 @@ /** | ||
var ua = this; | ||
if (/googlebot|gurujibot|yandexbot|slurp|msnbot|bingbot|facebookexternalhit|linkedinbot|twitterbot/i.test(ua.Agent.source)) { | ||
if (/googlebot|baiduspider|gurujibot|yandexbot|slurp|msnbot|bingbot|facebookexternalhit|linkedinbot|twitterbot|slackbot/i.test(ua.Agent.source)) { | ||
ua.Agent.isBot = true; | ||
@@ -519,3 +519,3 @@ } | ||
this.testAndriodTablet = function testAndriodTablet() { | ||
this.testAndroidTablet = function testAndroidTablet() { | ||
var ua = this; | ||
@@ -536,3 +536,3 @@ if (ua.Agent.isAndroid && !/mobile/i.test(ua.Agent.source)) { | ||
ua.testMobile(); | ||
ua.testAndriodTablet(); | ||
ua.testAndroidTablet(); | ||
ua.testTablet(); | ||
@@ -560,3 +560,3 @@ ua.testCompatibilityMode(); | ||
ua.testMobile(); | ||
ua.testAndriodTablet(); | ||
ua.testAndroidTablet(); | ||
ua.testTablet(); | ||
@@ -563,0 +563,0 @@ ua.testCompatibilityMode(); |
{ | ||
"name": "express-useragent", | ||
"description": "ExpressJS/Connect/TrinteJS user-agent middleware exposing", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"homepage": "https://github.com/biggora/express-useragent/", | ||
@@ -56,3 +56,3 @@ "repository": { | ||
"engines": { | ||
"node": ">=0.6" | ||
"node": ">=0.8" | ||
}, | ||
@@ -59,0 +59,0 @@ "dependencies": {}, |
@@ -12,3 +12,3 @@ [![build status](https://secure.travis-ci.org/biggora/express-useragent.png)](http://travis-ci.org/biggora/express-useragent) | ||
$ npm install -g express-useragent | ||
$ npm install express-useragent | ||
@@ -15,0 +15,0 @@ ## Usage overview |
Sorry, the diff of this file is not supported yet
76221
15
1792