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

mongo-throttle

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongo-throttle - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

3

models/throttle.js

@@ -6,2 +6,3 @@ /**

var mongoose = require('mongoose')
var ipRegex = require('ip-regex')
var Schema = mongoose.Schema

@@ -28,3 +29,3 @@ mongoose.Promise = global.Promise

trim: true,
match: /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/
match: ipRegex()
},

@@ -31,0 +32,0 @@ hits: {

{
"name": "mongo-throttle",
"version": "1.0.5",
"version": "1.0.6",
"description": "Basic IP rate-limiting middleware for Express stored in mongoDB. Use to throttle or limit incoming request rate.",

@@ -5,0 +5,0 @@ "main": "lib/throttler.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