refactor: upgrade mongodb from 4.6.0 to 4.7.0 (#8083)

This commit is contained in:
Snyk bot
2022-09-03 11:22:42 +02:00
committed by GitHub
parent f821dfd02a
commit 149884fe3e
4 changed files with 9 additions and 9 deletions

12
package-lock.json generated
View File

@@ -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",

View File

@@ -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",

View File

@@ -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');
}
});
});

View File

@@ -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');
}
});