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

rolling-rate-limiter

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rolling-rate-limiter - npm Package Compare versions

Comparing version 0.2.9 to 0.2.10

2

lib/index.d.ts

@@ -88,3 +88,3 @@ /// <reference types="node" />

zremrangebyscore(key: string, min: number, max: number): void;
zadd(key: string, score: string, value: string): void;
zadd(key: string, score: string | number, value: string): void;
zrange(key: string, min: number, max: number, withScores: unknown): void;

@@ -91,0 +91,0 @@ expire(key: string, time: number): void;

{
"name": "rolling-rate-limiter",
"version": "0.2.9",
"version": "0.2.10",
"description": "Rate limiter that supports a rolling window, either in-memory or backed by Redis",

@@ -45,17 +45,17 @@ "main": "lib/index.js",

"devDependencies": {
"@types/ioredis": "^4.17.3",
"@types/jest": "^26.0.12",
"@types/node": "^14.6.2",
"@types/redis": "^2.8.26",
"@types/ioredis": "^4.19.2",
"@types/jest": "^26.0.20",
"@types/node": "^14.14.22",
"@types/redis": "^2.8.28",
"@types/uuid": "^8.3.0",
"async": "~3.2.0",
"eslint": "^7.8.0",
"eslint": "^7.18.0",
"eslint-config-peterkhayes": "^4.0.0",
"ioredis": "^4.17.3",
"jest": "^26.4.2",
"ioredis": "^4.19.4",
"jest": "^26.6.3",
"lodash": "^4.17.20",
"redis": "^3.0.2",
"ts-jest": "^26.3.0",
"typescript": "^4.0.2"
"ts-jest": "^26.4.4",
"typescript": "^4.1.3"
}
}

@@ -88,3 +88,3 @@ # Rolling Rate Limiter

To run tests, you will need to have a Redis server running. You can do this by installing Redis, and running `redis-server`. Alternatively, you can run the CI build, which includes tests, by installing [act](https://github.com/nektos/act). This requires Docker to be running.
To run tests, you will need to have a Redis server running. You can do this by installing Redis, and running `redis-server`. Alternatively, you can run the CI build, which includes tests, by installing [act](https://github.com/nektos/act). This requires Docker to be running - on MacOS that means running `Docker.app` from your `Applications` folder.

@@ -91,0 +91,0 @@ ### Testing

@@ -200,3 +200,3 @@ import assert from 'assert';

zremrangebyscore(key: string, min: number, max: number): void;
zadd(key: string, score: string, value: string): void;
zadd(key: string, score: string | number, value: string): void;
zrange(key: string, min: number, max: number, withScores: unknown): void;

@@ -203,0 +203,0 @@ expire(key: string, time: number): void;

Sorry, the diff of this file is not supported yet

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