fix monogdb-js/saslprep actually needs installing #7265

Signed-off-by: si458 <simonsmith5521@gmail.com>

si458 committed Sep 30, 2025 at 17:45 UTC f2a2676cbb68d3e3f0f4027ecdfc29300ae1a824
2 files changed +2 -2
docker/Dockerfile
+1 -1
@@ -154,7 +154,7 @@ RUN case "$INCLUDE_MONGODB_TOOLS" in \
154 apk add --no-cache mongodb-tools && \
155 cd meshcentral && \
156 echo -e "----------\nPREINSTALLING MONGODB LIBRARIES...\n----------"; \
157 - npm install mongodb@4.17.2;; \
157 + npm install mongodb@4.17.2 @mongodb-js/saslprep@1.3.1;; \
158 false|no|FALSE|NO) \
159 echo "Not including MongoDB Tools.";; \
160 *) \
meshcentral.js
+1 -1
@@ -4337,7 +4337,7 @@ function mainStart() {
4337 if (config.settings.mqtt != null) { modules.push('aedes@0.39.0'); } // Add MQTT Modules
4338 if (config.settings.mysql != null) { modules.push('mysql2@3.11.4'); } // Add MySQL.
4339 //if (config.settings.mysql != null) { modules.push('@mysql/xdevapi@8.0.33'); } // Add MySQL, official driver (https://dev.mysql.com/doc/dev/connector-nodejs/8.0/)
4340 - if (config.settings.mongodb != null) { modules.push('mongodb@4.17.2'); } // Add MongoDB, official driver. 4.17.0 and above now includes saslprep by default https://github.com/mongodb/node-mongodb-native/releases/tag/v4.17.0
4340 + if (config.settings.mongodb != null) { modules.push('mongodb@4.17.2'); modules.push('@mongodb-js/saslprep@1.3.1')} // Add MongoDB, official driver.
4341 if (config.settings.postgres != null) { modules.push('pg@8.14.1') } // Add Postgres, official driver.
4342 if (config.settings.mariadb != null) { modules.push('mariadb@3.4.0'); } // Add MariaDB, official driver.
4343 if (config.settings.acebase != null) { modules.push('acebase@1.29.5'); } // Add AceBase, official driver.