@budibase/worker 3.2.6 → 3.2.7

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 +6 -6
  2. package/src/index.ts +6 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/worker",
3
3
  "email": "hi@budibase.com",
4
- "version": "3.2.6",
4
+ "version": "3.2.7",
5
5
  "description": "Budibase background service",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -37,10 +37,10 @@
37
37
  "author": "Budibase",
38
38
  "license": "GPL-3.0",
39
39
  "dependencies": {
40
- "@budibase/backend-core": "3.2.6",
41
- "@budibase/pro": "3.2.6",
42
- "@budibase/string-templates": "3.2.6",
43
- "@budibase/types": "3.2.6",
40
+ "@budibase/backend-core": "3.2.7",
41
+ "@budibase/pro": "3.2.7",
42
+ "@budibase/string-templates": "3.2.7",
43
+ "@budibase/types": "3.2.7",
44
44
  "@koa/router": "8.0.8",
45
45
  "@techpass/passport-openidconnect": "0.3.3",
46
46
  "@types/global-agent": "2.1.1",
@@ -107,5 +107,5 @@
107
107
  }
108
108
  }
109
109
  },
110
- "gitHead": "4b9c088e1a3550a500613b3f24a15d046689abe3"
110
+ "gitHead": "fbfab71c1e93d79cf64736a218bf08fddde0ccd0"
111
111
  }
package/src/index.ts CHANGED
@@ -24,6 +24,7 @@ import {
24
24
  db.init()
25
25
  import koaBody from "koa-body"
26
26
  import http from "http"
27
+ import bson from "bson"
27
28
  import api from "./api"
28
29
 
29
30
  const koaSession = require("koa-session")
@@ -99,6 +100,11 @@ export default server.listen(parseInt(env.PORT || "4002"), async () => {
99
100
  startupLog = `${startupLog} - environment: "${env.BUDIBASE_ENVIRONMENT}"`
100
101
  }
101
102
  console.log(startupLog)
103
+
104
+ if (coreEnv.BSON_BUFFER_SIZE) {
105
+ bson.setInternalBufferSize(coreEnv.BSON_BUFFER_SIZE)
106
+ }
107
+
102
108
  await initPro()
103
109
  await redis.clients.init()
104
110
  features.init()