@orpc/experimental-ratelimit 0.0.0-next.a5a8281 → 0.0.0-next.b2d00a3
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 +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<image align="center" src="https://orpc.
|
|
2
|
+
<image align="center" src="https://orpc.dev/logo.webp" width=280 alt="oRPC logo" />
|
|
3
3
|
</div>
|
|
4
4
|
|
|
5
5
|
<h1></h1>
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
|
|
46
46
|
## Documentation
|
|
47
47
|
|
|
48
|
-
You can find the full documentation [here](https://orpc.
|
|
48
|
+
You can find the full documentation [here](https://orpc.dev).
|
|
49
49
|
|
|
50
50
|
## Packages
|
|
51
51
|
|
package/dist/index.d.mts
CHANGED
|
@@ -16,7 +16,7 @@ interface RatelimitHandlerPluginContext {
|
|
|
16
16
|
* Automatically adds HTTP rate-limiting headers (RateLimit-* and Retry-After) to responses
|
|
17
17
|
* when used with middleware created by createRatelimitMiddleware.
|
|
18
18
|
*
|
|
19
|
-
* @see {@link https://orpc.
|
|
19
|
+
* @see {@link https://orpc.dev/docs/helpers/ratelimit#handler-plugin Ratelimit handler plugin}
|
|
20
20
|
*/
|
|
21
21
|
declare class RatelimitHandlerPlugin<T extends Context> implements StandardHandlerPlugin<T> {
|
|
22
22
|
init(options: StandardHandlerOptions<T>): void;
|
|
@@ -57,7 +57,7 @@ interface CreateRatelimitMiddlewareOptions<TInContext extends Context, TInput, T
|
|
|
57
57
|
* Creates a middleware that enforces rate limits in oRPC procedures.
|
|
58
58
|
* Supports per-request deduplication and integrates with the ratelimit handler plugin.
|
|
59
59
|
*
|
|
60
|
-
* @see {@link https://orpc.
|
|
60
|
+
* @see {@link https://orpc.dev/docs/helpers/ratelimit#createratelimitmiddleware Ratelimit middleware}
|
|
61
61
|
*/
|
|
62
62
|
declare function createRatelimitMiddleware<TInContext extends Context, TInput = unknown, TMeta extends Meta = Record<never, never>>({ dedupe, ...options }: CreateRatelimitMiddlewareOptions<TInContext, TInput, TMeta>): Middleware<TInContext, Record<never, never>, TInput, any, any, TMeta>;
|
|
63
63
|
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ interface RatelimitHandlerPluginContext {
|
|
|
16
16
|
* Automatically adds HTTP rate-limiting headers (RateLimit-* and Retry-After) to responses
|
|
17
17
|
* when used with middleware created by createRatelimitMiddleware.
|
|
18
18
|
*
|
|
19
|
-
* @see {@link https://orpc.
|
|
19
|
+
* @see {@link https://orpc.dev/docs/helpers/ratelimit#handler-plugin Ratelimit handler plugin}
|
|
20
20
|
*/
|
|
21
21
|
declare class RatelimitHandlerPlugin<T extends Context> implements StandardHandlerPlugin<T> {
|
|
22
22
|
init(options: StandardHandlerOptions<T>): void;
|
|
@@ -57,7 +57,7 @@ interface CreateRatelimitMiddlewareOptions<TInContext extends Context, TInput, T
|
|
|
57
57
|
* Creates a middleware that enforces rate limits in oRPC procedures.
|
|
58
58
|
* Supports per-request deduplication and integrates with the ratelimit handler plugin.
|
|
59
59
|
*
|
|
60
|
-
* @see {@link https://orpc.
|
|
60
|
+
* @see {@link https://orpc.dev/docs/helpers/ratelimit#createratelimitmiddleware Ratelimit middleware}
|
|
61
61
|
*/
|
|
62
62
|
declare function createRatelimitMiddleware<TInContext extends Context, TInput = unknown, TMeta extends Meta = Record<never, never>>({ dedupe, ...options }: CreateRatelimitMiddlewareOptions<TInContext, TInput, TMeta>): Middleware<TInContext, Record<never, never>, TInput, any, any, TMeta>;
|
|
63
63
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/experimental-ratelimit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-next.
|
|
4
|
+
"version": "0.0.0-next.b2d00a3",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"homepage": "https://orpc.
|
|
6
|
+
"homepage": "https://orpc.dev",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/unnoq/orpc.git",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@orpc/
|
|
56
|
-
"@orpc/shared": "0.0.0-next.
|
|
57
|
-
"@orpc/
|
|
58
|
-
"@orpc/standard-server": "0.0.0-next.
|
|
55
|
+
"@orpc/client": "0.0.0-next.b2d00a3",
|
|
56
|
+
"@orpc/shared": "0.0.0-next.b2d00a3",
|
|
57
|
+
"@orpc/server": "0.0.0-next.b2d00a3",
|
|
58
|
+
"@orpc/standard-server": "0.0.0-next.b2d00a3"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@upstash/ratelimit": "^2.0.7",
|