@tramvai/module-request-limiter 2.120.0 → 2.121.2

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.
@@ -39,6 +39,9 @@ export declare class RequestLimiter {
39
39
  private loop;
40
40
  private run;
41
41
  }
42
- export declare const fastifyRequestsLimiter: import("fastify").FastifyPluginAsync<{
43
- requestsLimiter: RequestLimiter;
44
- }, import("fastify").RawServerDefault, import("fastify").FastifyTypeProviderDefault, import("fastify").FastifyBaseLogger>;
42
+ declare module 'fastify' {
43
+ interface FastifyPluginOptions {
44
+ requestsLimiter: RequestLimiter;
45
+ }
46
+ }
47
+ export declare const fastifyRequestsLimiter: (fastify: import("fastify").FastifyInstance<import("fastify").RawServerDefault, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>, { requestsLimiter }: import("fastify").FastifyPluginOptions) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-request-limiter",
3
- "version": "2.120.0",
3
+ "version": "2.121.2",
4
4
  "description": "Enable different rendering modes for pages",
5
5
  "main": "lib/server.js",
6
6
  "module": "lib/server.es.js",
@@ -30,9 +30,9 @@
30
30
  "devDependencies": {},
31
31
  "peerDependencies": {
32
32
  "@tinkoff/dippy": "0.8.15",
33
- "@tramvai/core": "2.120.0",
34
- "@tramvai/tokens-common": "2.120.0",
35
- "@tramvai/tokens-server-private": "2.120.0",
33
+ "@tramvai/core": "2.121.2",
34
+ "@tramvai/tokens-common": "2.121.2",
35
+ "@tramvai/tokens-server-private": "2.121.2",
36
36
  "fastify": "^4.6.0",
37
37
  "tslib": "^2.4.0"
38
38
  }