@nitra/fastify 1.5.1 → 1.5.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.js +1 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nitra/fastify",
3
3
  "description": "Fastify helper",
4
- "version": "1.5.1",
4
+ "version": "1.5.3",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
7
7
  "files": [
@@ -20,7 +20,7 @@
20
20
  "license": "MIT",
21
21
  "dependencies": {
22
22
  "@fastify/sensible": "^5.1.1",
23
- "@nitra/bunyan": "^1.1.5",
23
+ "@nitra/bunyan": "^1.3.0",
24
24
  "fastify": "^4.9.2"
25
25
  }
26
26
  }
package/src/index.js CHANGED
@@ -7,6 +7,7 @@ const port = Number(env.PORT) || 8080
7
7
 
8
8
  export const app = fastify({
9
9
  // logger: isDev,
10
+ bodyLimit: (process.env.BODY_LIMIT_MB || 1) * 1024 * 1024,
10
11
  http2: !!env.K_SERVICE // Запускаємо з http2 якщо в Cloud Run
11
12
  })
12
13