mongo-throttle
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
179
16090