express-useragent
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -7,3 +7,3 @@ /** | ||
* @package express-useragent | ||
* @version 0.1.4 | ||
* @version 0.1.5 | ||
* @copyright Copyright (c) 2009-2011 - All rights reserved. | ||
@@ -17,3 +17,3 @@ * @license MIT License | ||
var UserAgent = function() { | ||
this.version = '0.1.4'; | ||
this.version = '0.1.5'; | ||
this._Versions = { | ||
@@ -53,2 +53,3 @@ Firefox: /firefox\/([\d\w\.\-]+)/i, | ||
this._OS = { | ||
Windows10: /windows nt 10\.0/i, | ||
Windows81: /windows nt 6\.3/i, | ||
@@ -281,2 +282,5 @@ Windows8: /windows nt 6\.2/i, | ||
return 'Windows 8.1'; | ||
case this._OS.Windows10.test(string): | ||
this.Agent.isWindows = true; | ||
return 'Windows 10.0'; | ||
case this._OS.Windows2003.test(string): | ||
@@ -513,3 +517,3 @@ this.Agent.isWindows = true; | ||
var ua = this; | ||
if (/googlebot|gurujibot|yandexbot|slurp|msnbot|bingbot|facebookexternalhit/i.test(ua.Agent.source)) { | ||
if (/googlebot|gurujibot|yandexbot|slurp|msnbot|bingbot|facebookexternalhit|linkedinbot|twitterbot/i.test(ua.Agent.source)) { | ||
ua.Agent.isBot = true; | ||
@@ -516,0 +520,0 @@ } |
{ | ||
"name": "express-useragent", | ||
"description": "ExpressJS/Connect/TrinteJS user-agent middleware exposing", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"homepage": "https://github.com/biggora/express-useragent/", | ||
@@ -6,0 +6,0 @@ "repository": { |
73526
1730