New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

express-range-tracker

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-range-tracker - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

6

index.js

@@ -76,3 +76,3 @@ const defaultStorage = {};

if (typeof onRobotic === "function") {
if (!/^bytes=\d+-\d*(,\d+-\d*)*$/g.test(req.headers.range)) {
if (!/^bytes=-?\d+-?\d*(,-?\d+-?\d*)*$/g.test(req.headers.range)) {
onRobotic(req, "malformed");

@@ -84,2 +84,6 @@ }

}
if (!from || !to) {
onRobotic(req, "negative");
}
}

@@ -86,0 +90,0 @@

2

package.json
{
"name": "express-range-tracker",
"version": "1.0.9",
"version": "1.0.10",
"description": "Detects bots by tracking the timings of range header",

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

@@ -68,2 +68,3 @@ # express-range-tracker

- `absent` - request of content that should have range header but does not exist
- `negative` - negative from or to range detected

@@ -70,0 +71,0 @@ ```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