From 149884fe3ef59f959430a1c73e01a4ea3294baef Mon Sep 17 00:00:00 2001 From: Snyk bot Date: Sat, 3 Sep 2022 11:22:42 +0200 Subject: [PATCH] refactor: upgrade mongodb from 4.6.0 to 4.7.0 (#8083) --- package-lock.json | 12 ++++++------ package.json | 2 +- spec/GridFSBucketStorageAdapter.spec.js | 2 +- spec/MongoStorageAdapter.spec.js | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0a170131..2447bdd6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2440,9 +2440,9 @@ "integrity": "sha512-XAahCdThVuCFDQLT7R7Pk/vqeObFNL3YqRyFZg+AqAP/W1/w3xHaIxuW7WszQqTbIBOPRcItYJIou3i/mppu3Q==" }, "@types/whatwg-url": { - "version": "8.2.1", - "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.1.tgz", - "integrity": "sha512-2YubE1sjj5ifxievI5Ge1sckb9k/Er66HyR2c+3+I6VDUUg1TLPdYYTEbQ+DjRkS4nTxMJhgWfSfMRD2sl2EYQ==", + "version": "8.2.2", + "resolved": "https://registry.npmjs.org/@types/whatwg-url/-/whatwg-url-8.2.2.tgz", + "integrity": "sha512-FtQu10RWgn3D9U4aazdwIE2yzphmTJREDqNdODHrbrZmmMqI0vMheC/6NE/J1Yveaj8H+ela+YwWTjq5PGmuhA==", "requires": { "@types/node": "*", "@types/webidl-conversions": "*" @@ -9808,9 +9808,9 @@ "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==" }, "mongodb": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.6.0.tgz", - "integrity": "sha512-1gsxVXmjFTPJ+CkMG9olE4bcVsyY8lBJN9m5B5vj+LZ7wkBqq3PO8RVmNX9GwCBOBz1KV0zM00vPviUearSv7A==", + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-4.7.0.tgz", + "integrity": "sha512-HhVar6hsUeMAVlIbwQwWtV36iyjKd9qdhY+s4wcU8K6TOj4Q331iiMy+FoPuxEntDIijTYWivwFJkLv8q/ZgvA==", "requires": { "bson": "^4.6.3", "denque": "^2.0.1", diff --git a/package.json b/package.json index 2b556e0d..aa1c8987 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "lodash": "4.17.21", "lru-cache": "7.12.0", "mime": "3.0.0", - "mongodb": "4.6.0", + "mongodb": "4.7.0", "mustache": "4.2.0", "parse": "3.4.2", "pg-monitor": "1.4.1", diff --git a/spec/GridFSBucketStorageAdapter.spec.js b/spec/GridFSBucketStorageAdapter.spec.js index 7ffdced2..419bfdb9 100644 --- a/spec/GridFSBucketStorageAdapter.spec.js +++ b/spec/GridFSBucketStorageAdapter.spec.js @@ -438,7 +438,7 @@ describe_only_db('mongo')('GridFSBucket', () => { await db.admin().serverStatus(); expect(false).toBe(true); } catch (e) { - expect(e.message).toEqual('MongoClient must be connected to perform this operation'); + expect(e.message).toEqual('Client must be connected before running operations'); } }); }); diff --git a/spec/MongoStorageAdapter.spec.js b/spec/MongoStorageAdapter.spec.js index 130971a5..68c56da1 100644 --- a/spec/MongoStorageAdapter.spec.js +++ b/spec/MongoStorageAdapter.spec.js @@ -283,7 +283,7 @@ describe_only_db('mongo')('MongoStorageAdapter', () => { await adapter.database.admin().serverStatus(); expect(false).toBe(true); } catch (e) { - expect(e.message).toEqual('MongoClient must be connected to perform this operation'); + expect(e.message).toEqual('Client must be connected before running operations'); } });