upgrade dependencies and fix compatibility issues

This commit is contained in:
2025-03-17 14:32:58 +01:00
parent 1484d051a1
commit 9a18e4bffa
4 changed files with 1070 additions and 446 deletions

View File

@@ -24,11 +24,11 @@ export function rateLimit(
const windowStart = now - config.windowMs
// Clean expired entries
for (const [key, data] of cache.entries()) {
Array.from(cache.entries()).forEach(([key, data]) => {
if (data.resetTime < now) {
cache.delete(key)
}
}
})
let data = cache.get(identifier)