@tramvai/module-request-limiter 2.0.2 → 2.2.3
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/lib/server.es.js +1 -1
- package/lib/server.js +1 -1
- package/lib/tokens.d.ts +3 -3
- package/package.json +4 -4
package/lib/server.es.js
CHANGED
|
@@ -171,7 +171,7 @@ RequestLimiterModule = __decorate([
|
|
|
171
171
|
provide({
|
|
172
172
|
provide: WEB_FASTIFY_APP_LIMITER_TOKEN,
|
|
173
173
|
multi: true,
|
|
174
|
-
useFactory: ({ requestsLimiter, featureEnable
|
|
174
|
+
useFactory: ({ requestsLimiter, featureEnable }) => {
|
|
175
175
|
return async (app) => {
|
|
176
176
|
if (featureEnable !== true) {
|
|
177
177
|
return;
|
package/lib/server.js
CHANGED
|
@@ -180,7 +180,7 @@ exports.RequestLimiterModule = tslib.__decorate([
|
|
|
180
180
|
core.provide({
|
|
181
181
|
provide: tokensServerPrivate.WEB_FASTIFY_APP_LIMITER_TOKEN,
|
|
182
182
|
multi: true,
|
|
183
|
-
useFactory: ({ requestsLimiter, featureEnable
|
|
183
|
+
useFactory: ({ requestsLimiter, featureEnable }) => {
|
|
184
184
|
return async (app) => {
|
|
185
185
|
if (featureEnable !== true) {
|
|
186
186
|
return;
|
package/lib/tokens.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { RequestLimiter, RequestLimiterOptions } from './requestLimiter';
|
|
2
|
-
export declare const REQUESTS_LIMITER_TOKEN: RequestLimiter
|
|
3
|
-
export declare const REQUESTS_LIMITER_ACTIVATE_TOKEN: boolean
|
|
4
|
-
export declare const REQUESTS_LIMITER_OPTIONS_TOKEN: RequestLimiterOptions
|
|
2
|
+
export declare const REQUESTS_LIMITER_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<RequestLimiter>;
|
|
3
|
+
export declare const REQUESTS_LIMITER_ACTIVATE_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<boolean>;
|
|
4
|
+
export declare const REQUESTS_LIMITER_OPTIONS_TOKEN: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<RequestLimiterOptions>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-request-limiter",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.3",
|
|
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
|
},
|
|
31
31
|
"devDependencies": {},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@tinkoff/dippy": "0.7.
|
|
34
|
-
"@tramvai/core": "2.
|
|
35
|
-
"@tramvai/tokens-server-private": "2.
|
|
33
|
+
"@tinkoff/dippy": "0.7.43",
|
|
34
|
+
"@tramvai/core": "2.2.3",
|
|
35
|
+
"@tramvai/tokens-server-private": "2.2.3",
|
|
36
36
|
"fastify": "^3.0.0",
|
|
37
37
|
"tslib": "^2.0.3"
|
|
38
38
|
}
|