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

isbot

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isbot - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

5

index.js
var list = require('./list');
var regex = new RegExp('(' + list.join('|') + ')', 'ig');
var regex = new RegExp('(' + list.join('|') + ')', 'i');
module.exports = function(userAgent) {
regex.lastIndex = 0;
return regex.test(userAgent);

@@ -11,3 +10,3 @@ };

list = list.concat(additionalFilters);
regex = new RegExp('(' + list.join('|') + ')', 'ig');
regex = new RegExp('(' + list.join('|') + ')', 'i');
}

2

package.json
{
"name": "isbot",
"version": "2.2.1",
"version": "2.2.2",
"description": "detects bots/crawlers/spiders via the user agent.",

@@ -5,0 +5,0 @@ "main": "index.js",

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