rate-limit-redis
Advanced tools
Comparing version 4.1.2 to 4.2.0
@@ -122,2 +122,2 @@ import { Store, Options as Options$1, ClientRateLimitInfo, IncrementResponse } from 'express-rate-limit'; | ||
export { Options, RedisReply, SendCommandFn, RedisStore as default }; | ||
export { Options, RedisReply, RedisStore, SendCommandFn, RedisStore as default }; |
{ | ||
"name": "rate-limit-redis", | ||
"version": "4.1.2", | ||
"version": "4.2.0", | ||
"description": "A Redis store for the `express-rate-limit` middleware", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -50,3 +50,3 @@ # <div align="center"> `rate-limit-redis` </div> | ||
**This package requires you to use Node 14 or above.** | ||
**This package requires you to use Node 16 or above.** | ||
@@ -57,3 +57,3 @@ Import it in a CommonJS project (`type: commonjs` or no `type` field in | ||
```ts | ||
const RedisStore = require('rate-limit-redis') | ||
const { RedisStore } = require('rate-limit-redis') | ||
``` | ||
@@ -64,3 +64,3 @@ | ||
```ts | ||
import RedisStore from 'rate-limit-redis' | ||
import { RedisStore } from 'rate-limit-redis' | ||
``` | ||
@@ -73,4 +73,4 @@ | ||
```ts | ||
import rateLimit from 'express-rate-limit' | ||
import RedisStore from 'rate-limit-redis' | ||
import { rateLimit } from 'express-rate-limit' | ||
import { RedisStore } from 'rate-limit-redis' | ||
import { createClient } from 'redis' | ||
@@ -104,4 +104,4 @@ | ||
```ts | ||
import rateLimit from 'express-rate-limit' | ||
import RedisStore from 'rate-limit-redis' | ||
import { rateLimit } from 'express-rate-limit' | ||
import { RedisStore } from 'rate-limit-redis' | ||
import RedisClient from 'ioredis' | ||
@@ -108,0 +108,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35091
472