Added auto-install of ua-parser-js.

Ylian Saint-Hilaire committed Aug 14, 2023 at 21:30 UTC adbfa6122ac5de0dc3978dc6749e1cba7890b956
1 file changed +1 -1
meshcentral.js
+1 -1
@@ -3993,7 +3993,7 @@ function mainStart() {
3993 }
3994
3995 // Build the list of required modules
3996 - var modules = ['ws@5.2.3', 'cbor@5.2.0', '@yetzt/nedb', 'https', 'yauzl', 'ipcheck', 'express', 'archiver@5.3.1', 'multiparty', 'node-forge', 'express-ws@4.0.0', 'compression', 'body-parser', 'cookie-session@2.0.0', 'express-handlebars'];
3996 + var modules = ['ws@5.2.3', 'cbor@5.2.0', '@yetzt/nedb', 'https', 'yauzl', 'ipcheck', 'express', 'archiver@5.3.1', 'multiparty', 'node-forge', 'express-ws@4.0.0', 'compression', 'body-parser', 'cookie-session@2.0.0', 'express-handlebars', 'ua-parser-js@1.0.35'];
3997 if (require('os').platform() == 'win32') { modules.push('node-windows@0.1.4'); modules.push('loadavg-windows'); if (sspi == true) { modules.push('node-sspi'); } } // Add Windows modules
3998 if (ldap == true) { modules.push('ldapauth-fork'); }
3999 if (ssh == true) { if (nodeVersion < 11) { addServerWarning('MeshCentral SSH support requires NodeJS 11 or higher.', 1); } else { modules.push('ssh2'); } }