@clov-std/elysia-ratelimit 4.0.16 → 4.0.17
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/README.md +1 -1
- package/package.json +55 -55
package/README.md
CHANGED
|
@@ -69,8 +69,8 @@ new Elysia()
|
|
|
69
69
|
By default, counters are kept in memory. Pass a `BunRedisStore` (or any `KvStore` adapter) for persistence across restarts and multi-instance deployments.
|
|
70
70
|
|
|
71
71
|
```ts
|
|
72
|
-
import { BunRedisStore } from '@clov-std/kv-store';
|
|
73
72
|
import { rateLimitPlugin } from '@clov-std/elysia-ratelimit';
|
|
73
|
+
import { BunRedisStore } from '@clov-std/kv-store';
|
|
74
74
|
import { Elysia } from 'elysia';
|
|
75
75
|
|
|
76
76
|
const store = new BunRedisStore('redis://localhost:6379');
|
package/package.json
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
2
|
+
"name": "@clov-std/elysia-ratelimit",
|
|
3
|
+
"version": "4.0.17",
|
|
4
|
+
"description": "Rate limiting plugin for Elysia framework.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"bun",
|
|
7
|
+
"clov",
|
|
8
|
+
"elysia",
|
|
9
|
+
"macro",
|
|
10
|
+
"open-source",
|
|
11
|
+
"plugin",
|
|
12
|
+
"ratelimit",
|
|
13
|
+
"typescript"
|
|
14
|
+
],
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"author": "Clov",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/ClovLabs/std",
|
|
20
|
+
"directory": "packages/elysia-ratelimit"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"type": "module",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"default": "./dist/index.js"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "bun builder.ts",
|
|
34
|
+
"docs": "bunx typedoc --tsconfig tsconfig.build.json",
|
|
35
|
+
"fmt:check": "oxfmt --check",
|
|
36
|
+
"fmt": "oxfmt",
|
|
37
|
+
"lint:fix": "oxlint --type-aware --type-check --fix ./src",
|
|
38
|
+
"lint:github": "oxlint --type-aware --type-check --format=github ./src",
|
|
39
|
+
"lint": "oxlint --type-aware --type-check ./src",
|
|
40
|
+
"test": "bun test --pass-with-no-tests --coverage"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@clov-std/kv-store": "^2.0.3"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@types/bun": "^1.4.2",
|
|
47
|
+
"oxfmt": "0.72.0",
|
|
48
|
+
"oxlint": "1.87.0",
|
|
49
|
+
"oxlint-tsgolint": "7.0.2004",
|
|
50
|
+
"typescript": "^7.0.2"
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"@clov-std/kv-store": "^2.0.3",
|
|
54
|
+
"elysia": "next",
|
|
55
|
+
"typebox": "^1.3.36"
|
|
56
|
+
}
|
|
57
57
|
}
|