feat: ratelimit

This commit is contained in:
diced
2024-06-01 17:19:16 -07:00
parent 1b6bdd8634
commit 32a295e3f0
8 changed files with 101 additions and 13 deletions

12
pnpm-lock.yaml generated
View File

@@ -20,6 +20,9 @@ importers:
'@fastify/multipart':
specifier: ^8.2.0
version: 8.2.0
'@fastify/rate-limit':
specifier: ^9.1.0
version: 9.1.0
'@fastify/sensible':
specifier: ^5.5.0
version: 5.5.0
@@ -816,6 +819,9 @@ packages:
'@fastify/multipart@8.2.0':
resolution: {integrity: sha512-OZ8nsyyoS2TV7Yeu3ZdrdDGsKUTAbfjrKC9jSxGgT2qdgek+BxpWX31ZubTrWMNZyU5xwk4ox6AvTjAbYWjrWg==}
'@fastify/rate-limit@9.1.0':
resolution: {integrity: sha512-h5dZWCkuZXN0PxwqaFQLxeln8/LNwQwH9popywmDCFdKfgpi4b/HoMH1lluy6P+30CG9yzzpSpwTCIPNB9T1JA==}
'@fastify/sensible@5.5.0':
resolution: {integrity: sha512-D0zpl+nocsRXLceSbc4gasQaO3ZNQR4dy9Uu8Ym0mh8VUdrjpZ4g8Ca9O3pGXbBVOnPIGHUJNTV7Yf9dg/OYdg==}
@@ -5616,6 +5622,12 @@ snapshots:
secure-json-parse: 2.7.0
stream-wormhole: 1.1.0
'@fastify/rate-limit@9.1.0':
dependencies:
'@lukeed/ms': 2.0.2
fastify-plugin: 4.5.1
toad-cache: 3.7.0
'@fastify/sensible@5.5.0':
dependencies:
'@lukeed/ms': 2.0.2