Socket
Socket
Sign inDemoInstall

express-useragent

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-useragent - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

10

lib/express-useragent.js

@@ -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": {

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