@avijs/security 0.7.0 → 1.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rate-limit.d.ts +2 -2
- package/package.json +2 -2
- package/src/rate-limit.ts +2 -2
package/dist/rate-limit.d.ts
CHANGED
|
@@ -34,8 +34,8 @@ export interface RateLimiter extends RequestHook {
|
|
|
34
34
|
export declare function rateLimit(options: RateLimitOptions): RateLimiter;
|
|
35
35
|
export interface MemoryStoreOptions {
|
|
36
36
|
/**
|
|
37
|
-
* Most keys tracked at once. When full, the
|
|
38
|
-
* cannot use unbounded memory. Default: 100 000.
|
|
37
|
+
* Most keys tracked at once. When full, the least recently used key is dropped, so a flood of
|
|
38
|
+
* new clients cannot use unbounded memory. Default: 100 000.
|
|
39
39
|
*/
|
|
40
40
|
maxKeys?: number;
|
|
41
41
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avijs/security",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-rc.1",
|
|
4
4
|
"description": "CORS and security headers for Avi.js.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"avi",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@avijs/http": "0.
|
|
45
|
+
"@avijs/http": "1.0.0-rc.1"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"typecheck": "tsc -p tsconfig.json"
|
package/src/rate-limit.ts
CHANGED
|
@@ -95,8 +95,8 @@ export function rateLimit(options: RateLimitOptions): RateLimiter {
|
|
|
95
95
|
|
|
96
96
|
export interface MemoryStoreOptions {
|
|
97
97
|
/**
|
|
98
|
-
* Most keys tracked at once. When full, the
|
|
99
|
-
* cannot use unbounded memory. Default: 100 000.
|
|
98
|
+
* Most keys tracked at once. When full, the least recently used key is dropped, so a flood of
|
|
99
|
+
* new clients cannot use unbounded memory. Default: 100 000.
|
|
100
100
|
*/
|
|
101
101
|
maxKeys?: number;
|
|
102
102
|
}
|