mongo-throttle
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -11,4 +11,4 @@ { | ||
"mongoose":{ | ||
"uri": false | ||
} | ||
"uri": false | ||
} | ||
} |
@@ -6,3 +6,2 @@ /** | ||
var mongoose = require('mongoose') | ||
var ipRegex = require('ip-regex') | ||
var Schema = mongoose.Schema | ||
@@ -34,4 +33,3 @@ mongoose.Promise = global.Promise | ||
required: true, | ||
trim: true, | ||
match: ipRegex() | ||
trim: true | ||
}, | ||
@@ -38,0 +36,0 @@ hits: { |
{ | ||
"name": "mongo-throttle", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"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", |
@@ -51,2 +51,5 @@ # Mongo Throttle | ||
"message": "Rate Limit reached. Please wait and try again." | ||
}, | ||
"mongoose":{ | ||
"uri": false // Optional Mongo URI connection string | ||
} | ||
@@ -53,0 +56,0 @@ } |
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
16444
108
186