@tramvai/module-server 2.49.3 → 2.50.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.
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, { bodyLimit: 2097152 }); // 2mb
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"], { bodyLimit: 2097152 }); // 2mb
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",
3
+ "version": "2.50.0",
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.3",
30
- "@tramvai/module-metrics": "2.49.3",
31
- "@tramvai/papi": "2.49.3",
32
- "@tramvai/tokens-server": "2.49.3",
33
- "@tramvai/tokens-server-private": "2.49.3",
29
+ "@tramvai/module-cache-warmup": "2.50.0",
30
+ "@tramvai/module-metrics": "2.50.0",
31
+ "@tramvai/papi": "2.50.0",
32
+ "@tramvai/tokens-server": "2.50.0",
33
+ "@tramvai/tokens-server-private": "2.50.0",
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.3",
45
- "@tramvai/core": "2.49.3",
46
- "@tramvai/module-common": "2.49.3",
47
- "@tramvai/module-environment": "2.49.3",
48
- "@tramvai/tokens-common": "2.49.3",
44
+ "@tramvai/cli": "2.50.0",
45
+ "@tramvai/core": "2.50.0",
46
+ "@tramvai/module-common": "2.50.0",
47
+ "@tramvai/module-environment": "2.50.0",
48
+ "@tramvai/tokens-common": "2.50.0",
49
49
  "tslib": "^2.4.0"
50
50
  },
51
51
  "devDependencies": {