Updated mongodb driver version.

Ylian Saint-Hilaire committed Dec 15, 2022 at 10:54 UTC 6405066f08a57cc97dfd3e212426511f996f5304
2 files changed +3 -2
meshcentral.js
+1 -1
@@ -4002,7 +4002,7 @@ function mainStart() {
4002 if (config.settings.mqtt != null) { modules.push('aedes@0.39.0'); } // Add MQTT Modules
4003 if (config.settings.mysql != null) { modules.push('mysql'); } // Add MySQL.
4004 //if (config.settings.mysql != null) { modules.push('@mysql/xdevapi'); } // Add MySQL, official driver (https://dev.mysql.com/doc/dev/connector-nodejs/8.0/)
4005 - if (config.settings.mongodb != null) { modules.push('mongodb@4.9.1'); modules.push('saslprep'); } // Add MongoDB, official driver.
4005 + if (config.settings.mongodb != null) { modules.push('mongodb@4.12.1'); modules.push('saslprep'); } // Add MongoDB, official driver.
4006 if (config.settings.postgres != null) { modules.push('pg@8.7.1'); modules.push('pgtools@0.3.2'); } // Add Postgres, Postgres driver.
4007 if (config.settings.mariadb != null) { modules.push('mariadb'); } // Add MariaDB, official driver.
4008 if (config.settings.acebase != null) { modules.push('acebase'); } // Add AceBase, official driver.
package.json
+2 -1
@@ -37,6 +37,7 @@
37 "sample-config-advanced.json"
38 ],
39 "dependencies": {
40 + "@yetzt/nedb": "^1.8.0",
41 "archiver": "^5.3.1",
42 "body-parser": "^1.19.0",
43 "cbor": "~5.2.0",
@@ -47,8 +48,8 @@
48 "express-ws": "^4.0.0",
49 "ipcheck": "^0.1.0",
50 "minimist": "^1.2.5",
51 + "mongodb": "^4.12.1",
52 "multiparty": "^4.2.1",
51 - "@yetzt/nedb": "^1.8.0",
53 "node-forge": "^1.0.0",
54 "ws": "^5.2.3",
55 "yauzl": "^2.10.0"