Added Firebase exception workaround.

Ylian Saint-Hilaire committed Nov 21, 2022 at 13:29 UTC 6ef47df0a7c0009de908e63253045872fbbf1795
2 files changed +6 -2
meshcentral.js
+2 -1
@@ -4060,7 +4060,8 @@ function mainStart() {
4060 if ((typeof config.settings.webpush == 'object') && (typeof config.settings.webpush.email == 'string')) { modules.push('web-push'); }
4061
4062 // Firebase Support
4063 - if (config.firebase != null) { modules.push('node-xcs'); }
4063 + // Avoid 0.1.8 due to bugs: https://github.com/guness/node-xcs/issues/43
4064 + if (config.firebase != null) { modules.push('node-xcs@0.1.7'); }
4065
4066 // Syslog support
4067 if ((require('os').platform() != 'win32') && (config.settings.syslog || config.settings.syslogjson)) { modules.push('modern-syslog'); }
package.json
+4 -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,9 +48,11 @@
48 "express-ws": "^4.0.0",
49 "ipcheck": "^0.1.0",
50 "minimist": "^1.2.5",
51 + "mongodb": "^4.9.1",
52 "multiparty": "^4.2.1",
51 - "@yetzt/nedb": "^1.8.0",
53 "node-forge": "^1.0.0",
54 + "node-xcs": "^0.1.7",
55 + "saslprep": "^1.0.3",
56 "ws": "^5.2.3",
57 "yauzl": "^2.10.0"
58 },