fastify-rate-limit
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -25,3 +25,3 @@ 'use strict' | ||
: 1000 * 60 | ||
const after = ms(timeWindow) | ||
const after = ms(timeWindow, { long: true }) | ||
@@ -28,0 +28,0 @@ const interval = setInterval(cache.reset.bind(cache), timeWindow) |
{ | ||
"name": "fastify-rate-limit", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A low overhead rate limiter for your routes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -39,3 +39,3 @@ 'use strict' | ||
error: 'Too Many Requests', | ||
message: 'Rate limit exceeded, retry in 1s' | ||
message: 'Rate limit exceeded, retry in 1 second' | ||
}, JSON.parse(res.payload)) | ||
@@ -89,3 +89,3 @@ | ||
error: 'Too Many Requests', | ||
message: 'Rate limit exceeded, retry in 1s' | ||
message: 'Rate limit exceeded, retry in 1 second' | ||
}, JSON.parse(res.payload)) | ||
@@ -92,0 +92,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
8789