@lowdefy/connection-mongodb 4.0.0-rc.11 → 4.0.0-rc.13

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.
@@ -14,9 +14,8 @@
14
14
  limitations under the License.
15
15
  */ import { MongoClient } from 'mongodb';
16
16
  async function getCollection({ connection }) {
17
- let client;
18
17
  const { collection, databaseName, databaseUri, options } = connection;
19
- client = new MongoClient(databaseUri, options);
18
+ const client = new MongoClient(databaseUri, options);
20
19
  await client.connect();
21
20
  try {
22
21
  const db = client.db(databaseName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/connection-mongodb",
3
- "version": "4.0.0-rc.11",
3
+ "version": "4.0.0-rc.13",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -42,13 +42,13 @@
42
42
  "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
43
43
  },
44
44
  "dependencies": {
45
- "@lowdefy/helpers": "4.0.0-rc.11",
45
+ "@lowdefy/helpers": "4.0.0-rc.13",
46
46
  "@next-auth/mongodb-adapter": "1.1.3",
47
- "mongodb": "4.13.0",
47
+ "mongodb": "4.17.1",
48
48
  "saslprep": "1.0.3"
49
49
  },
50
50
  "devDependencies": {
51
- "@lowdefy/ajv": "4.0.0-rc.11",
51
+ "@lowdefy/ajv": "4.0.0-rc.13",
52
52
  "@shelf/jest-mongodb": "4.1.7",
53
53
  "@swc/cli": "0.1.62",
54
54
  "@swc/core": "1.3.92",
@@ -63,5 +63,5 @@
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
- "gitHead": "dbc49d3688a6d2f44de25cc3f4bc071627f7ebfa"
66
+ "gitHead": "e0e9a9b4e4e15c899de64d6736fa6e83cf56f8e4"
67
67
  }