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

sveltekit-rate-limiter

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sveltekit-rate-limiter - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

2

dist/rateLimiter.d.ts
import type { RequestEvent } from '@sveltejs/kit';
type RateHash = string;
type RateUnit = 'ms' | 's' | 'm' | 'h' | 'd';
type RateUnit = 'ms' | 's' | 'm' | '15m' | '30m' | 'h' | 'd';
type Rate = [number, RateUnit];

@@ -5,0 +5,0 @@ interface RateLimiterStore {

@@ -115,2 +115,6 @@ import crypto from 'crypto';

return 60 * 1000;
if (unit == '15m')
return 15 * 60 * 1000;
if (unit == '30m')
return 30 * 60 * 1000;
if (unit == 'h')

@@ -117,0 +121,0 @@ return 60 * 60 * 1000;

{
"name": "sveltekit-rate-limiter",
"version": "0.1.6",
"version": "0.1.7",
"exports": {

@@ -5,0 +5,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