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

fastify-rate-limit

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-rate-limit - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

index.js

@@ -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 @@

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