Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.6 to 0.1.7

tests/bots.js

8

lib/express-useragent.js

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

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