@budibase/server 2.7.7-alpha.4 → 2.7.7-alpha.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/server",
3
3
  "email": "hi@budibase.com",
4
- "version": "2.7.7-alpha.4",
4
+ "version": "2.7.7-alpha.5",
5
5
  "description": "Budibase Web Server",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -46,12 +46,12 @@
46
46
  "license": "GPL-3.0",
47
47
  "dependencies": {
48
48
  "@apidevtools/swagger-parser": "10.0.3",
49
- "@budibase/backend-core": "2.7.7-alpha.4",
50
- "@budibase/client": "2.7.7-alpha.4",
51
- "@budibase/pro": "2.7.7-alpha.4",
52
- "@budibase/shared-core": "2.7.7-alpha.4",
53
- "@budibase/string-templates": "2.7.7-alpha.4",
54
- "@budibase/types": "2.7.7-alpha.4",
49
+ "@budibase/backend-core": "2.7.7-alpha.5",
50
+ "@budibase/client": "2.7.7-alpha.5",
51
+ "@budibase/pro": "2.7.7-alpha.5",
52
+ "@budibase/shared-core": "2.7.7-alpha.5",
53
+ "@budibase/string-templates": "2.7.7-alpha.5",
54
+ "@budibase/types": "2.7.7-alpha.5",
55
55
  "@bull-board/api": "3.7.0",
56
56
  "@bull-board/koa": "3.9.4",
57
57
  "@elastic/elasticsearch": "7.10.0",
@@ -97,7 +97,7 @@
97
97
  "koa2-ratelimit": "1.1.1",
98
98
  "lodash": "4.17.21",
99
99
  "memorystream": "0.3.1",
100
- "mongodb": "4.9",
100
+ "mongodb": "5.6",
101
101
  "mssql": "6.2.3",
102
102
  "mysql2": "2.3.3",
103
103
  "node-fetch": "2.6.7",
@@ -195,5 +195,5 @@
195
195
  }
196
196
  }
197
197
  },
198
- "gitHead": "a8cf83aeb0c37afa6e3df230a5235c0ae18d98f6"
198
+ "gitHead": "3864187987faae18d05f7a056b7d152c651ca288"
199
199
  }
@@ -351,7 +351,7 @@ const SCHEMA: Integration = getSchema()
351
351
 
352
352
  class MongoIntegration implements IntegrationBase {
353
353
  private config: MongoDBConfig
354
- private client: any
354
+ private client: MongoClient
355
355
 
356
356
  constructor(config: MongoDBConfig) {
357
357
  this.config = config
@@ -372,6 +372,8 @@ class MongoIntegration implements IntegrationBase {
372
372
  response.connected = true
373
373
  } catch (e: any) {
374
374
  response.error = e.message as string
375
+ } finally {
376
+ await this.client.close()
375
377
  }
376
378
  return response
377
379
  }
@@ -380,7 +382,7 @@ class MongoIntegration implements IntegrationBase {
380
382
  return this.client.connect()
381
383
  }
382
384
 
383
- createObjectIds(json: any): object {
385
+ createObjectIds(json: any) {
384
386
  const self = this
385
387
  function interpolateObjectIds(json: any) {
386
388
  for (let field of Object.keys(json)) {