@tramvai/module-server 2.49.3 → 2.49.5
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 +2 -1
- package/lib/server.js +2 -1
- package/package.json +11 -11
package/lib/server.es.js
CHANGED
|
@@ -100,6 +100,7 @@ const errorHandler = (app, { log, beforeError, processError, afterError, }) => {
|
|
|
100
100
|
const webAppFactory = ({ server }) => {
|
|
101
101
|
const app = fastify({
|
|
102
102
|
ignoreTrailingSlash: true,
|
|
103
|
+
bodyLimit: 2097152,
|
|
103
104
|
serverFactory: (handler) => {
|
|
104
105
|
server.on('request', handler);
|
|
105
106
|
return server;
|
|
@@ -121,7 +122,7 @@ const webAppInitCommand = ({ app, logger, commandLineRunner, executionContextMan
|
|
|
121
122
|
await runHandlers(instance, requestMetrics);
|
|
122
123
|
await runHandlers(instance, limiterRequest);
|
|
123
124
|
await app.register(fastifyCookie);
|
|
124
|
-
await app.register(fastifyFormBody
|
|
125
|
+
await app.register(fastifyFormBody);
|
|
125
126
|
await runHandlers(instance, init);
|
|
126
127
|
// break the cycle of event loop to allow server to handle other requests
|
|
127
128
|
// while current on is in processing
|
package/lib/server.js
CHANGED
|
@@ -122,6 +122,7 @@ const errorHandler = (app, { log, beforeError, processError, afterError, }) => {
|
|
|
122
122
|
const webAppFactory = ({ server }) => {
|
|
123
123
|
const app = fastify__default["default"]({
|
|
124
124
|
ignoreTrailingSlash: true,
|
|
125
|
+
bodyLimit: 2097152,
|
|
125
126
|
serverFactory: (handler) => {
|
|
126
127
|
server.on('request', handler);
|
|
127
128
|
return server;
|
|
@@ -143,7 +144,7 @@ const webAppInitCommand = ({ app, logger, commandLineRunner, executionContextMan
|
|
|
143
144
|
await runHandlers(instance, requestMetrics);
|
|
144
145
|
await runHandlers(instance, limiterRequest);
|
|
145
146
|
await app.register(cookie.fastifyCookie);
|
|
146
|
-
await app.register(fastifyFormBody__default["default"]
|
|
147
|
+
await app.register(fastifyFormBody__default["default"]);
|
|
147
148
|
await runHandlers(instance, init);
|
|
148
149
|
// break the cycle of event loop to allow server to handle other requests
|
|
149
150
|
// while current on is in processing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-server",
|
|
3
|
-
"version": "2.49.
|
|
3
|
+
"version": "2.49.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "lib/browser.js",
|
|
6
6
|
"main": "lib/server.js",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"@tinkoff/monkeypatch": "2.0.3",
|
|
27
27
|
"@tinkoff/terminus": "0.1.5",
|
|
28
28
|
"@tinkoff/url": "0.8.4",
|
|
29
|
-
"@tramvai/module-cache-warmup": "2.49.
|
|
30
|
-
"@tramvai/module-metrics": "2.49.
|
|
31
|
-
"@tramvai/papi": "2.49.
|
|
32
|
-
"@tramvai/tokens-server": "2.49.
|
|
33
|
-
"@tramvai/tokens-server-private": "2.49.
|
|
29
|
+
"@tramvai/module-cache-warmup": "2.49.5",
|
|
30
|
+
"@tramvai/module-metrics": "2.49.5",
|
|
31
|
+
"@tramvai/papi": "2.49.5",
|
|
32
|
+
"@tramvai/tokens-server": "2.49.5",
|
|
33
|
+
"@tramvai/tokens-server-private": "2.49.5",
|
|
34
34
|
"fastify": "^4.6.0",
|
|
35
35
|
"@fastify/cookie": "^8.1.0",
|
|
36
36
|
"@fastify/compress": "^6.1.1",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@tinkoff/dippy": "0.8.9",
|
|
43
43
|
"@tinkoff/utils": "^2.1.2",
|
|
44
|
-
"@tramvai/cli": "2.49.
|
|
45
|
-
"@tramvai/core": "2.49.
|
|
46
|
-
"@tramvai/module-common": "2.49.
|
|
47
|
-
"@tramvai/module-environment": "2.49.
|
|
48
|
-
"@tramvai/tokens-common": "2.49.
|
|
44
|
+
"@tramvai/cli": "2.49.5",
|
|
45
|
+
"@tramvai/core": "2.49.5",
|
|
46
|
+
"@tramvai/module-common": "2.49.5",
|
|
47
|
+
"@tramvai/module-environment": "2.49.5",
|
|
48
|
+
"@tramvai/tokens-common": "2.49.5",
|
|
49
49
|
"tslib": "^2.4.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|