@tramvai/module-request-limiter 2.56.2 → 2.59.0

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.
Files changed (2) hide show
  1. package/lib/tokens.d.ts +11 -3
  2. package/package.json +5 -5
package/lib/tokens.d.ts CHANGED
@@ -1,4 +1,12 @@
1
1
  import type { RequestLimiter, RequestLimiterOptions } from './requestLimiter';
2
- export declare const REQUESTS_LIMITER_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<RequestLimiter>;
3
- export declare const REQUESTS_LIMITER_ACTIVATE_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<boolean>;
4
- export declare const REQUESTS_LIMITER_OPTIONS_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<RequestLimiterOptions>;
2
+ export declare const REQUESTS_LIMITER_TOKEN: RequestLimiter & {
3
+ __type?: "base token";
4
+ };
5
+ export declare const REQUESTS_LIMITER_ACTIVATE_TOKEN: (false & {
6
+ __type?: "base token";
7
+ }) | (true & {
8
+ __type?: "base token";
9
+ });
10
+ export declare const REQUESTS_LIMITER_OPTIONS_TOKEN: RequestLimiterOptions & {
11
+ __type?: "base token";
12
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-request-limiter",
3
- "version": "2.56.2",
3
+ "version": "2.59.0",
4
4
  "description": "Enable different rendering modes for pages",
5
5
  "main": "lib/server.js",
6
6
  "module": "lib/server.es.js",
@@ -30,10 +30,10 @@
30
30
  },
31
31
  "devDependencies": {},
32
32
  "peerDependencies": {
33
- "@tinkoff/dippy": "0.8.10",
34
- "@tramvai/core": "2.56.2",
35
- "@tramvai/tokens-common": "2.56.2",
36
- "@tramvai/tokens-server-private": "2.56.2",
33
+ "@tinkoff/dippy": "0.8.11",
34
+ "@tramvai/core": "2.59.0",
35
+ "@tramvai/tokens-common": "2.59.0",
36
+ "@tramvai/tokens-server-private": "2.59.0",
37
37
  "fastify": "^4.6.0",
38
38
  "tslib": "^2.4.0"
39
39
  }