diff --git a/.prettierrc.js b/.prettierrc.js index c8c6a549..468b1e29 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,6 +1,6 @@ module.exports = { semi: true, - trailingComma: 'all', + trailingComma: 'es5', // Trailing commas only where valid in ES5 (objects, arrays, not function arguments). singleQuote: true, printWidth: 120, tabWidth: 4, diff --git a/app/src/htmlInjector.js b/app/src/htmlInjector.js index 1b340af0..65d99db7 100644 --- a/app/src/htmlInjector.js +++ b/app/src/htmlInjector.js @@ -85,7 +85,7 @@ class HtmlInjector { // Replace placeholders with dynamic data (OG, TITLE, etc.) const modifiedHTML = this.cache[filePath].replace( /{{(OG_[A-Z_]+)}}/g, - (_, key) => this.injectData[key] || '', + (_, key) => this.injectData[key] || '' ); if (!res.headersSent) { diff --git a/app/src/logs.js b/app/src/logs.js index 730bacc0..203abcce 100644 --- a/app/src/logs.js +++ b/app/src/logs.js @@ -44,7 +44,7 @@ module.exports = class Logs { console.debug( '[' + this.getDateTime() + '] [' + this.appName + '] ' + msg, util.inspect(op, options), - this.timeElapsedMs, + this.timeElapsedMs ); this.timeStart = Date.now(); } @@ -69,7 +69,7 @@ module.exports = class Logs { info(msg, op = '') { console.info( '[' + this.getDateTime() + '] [' + this.appName + '] ' + colors.green(msg), - util.inspect(op, options), + util.inspect(op, options) ); } @@ -82,7 +82,7 @@ module.exports = class Logs { warn(msg, op = '') { console.info( '[' + this.getDateTime() + '] [' + this.appName + '] ' + colors.yellow(msg), - util.inspect(op, options), + util.inspect(op, options) ); } @@ -95,7 +95,7 @@ module.exports = class Logs { error(msg, op = '') { console.info( '[' + this.getDateTime() + '] [' + this.appName + '] ' + colors.red(msg), - util.inspect(op, options), + util.inspect(op, options) ); } diff --git a/app/src/mattermost.js b/app/src/mattermost.js index 5522ecf0..89f0e03a 100644 --- a/app/src/mattermost.js +++ b/app/src/mattermost.js @@ -94,7 +94,7 @@ class MattermostController { const tokenService = new TokenService( config.token || 'fallback-secret-at-least-32-chars', config.roomTokenExpire || '15m', - config.encryptionKey || 'fallback-encryption-key-32chars', + config.encryptionKey || 'fallback-encryption-key-32chars' ); this.authService = new MattermostAuthService({ @@ -107,7 +107,7 @@ class MattermostController { tokenService, config.server_url, config.api_disabled, - config.security, + config.security ); this.token = config.token; diff --git a/app/src/server.js b/app/src/server.js index ff5709ca..e9754928 100755 --- a/app/src/server.js +++ b/app/src/server.js @@ -45,7 +45,7 @@ dependencies: { * @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.5.13 + * @version 1.5.14 * */ @@ -1064,7 +1064,7 @@ server.listen(port, null, () => { ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝ started... `, - 'font-family:monospace', + 'font-family:monospace' ); // https tunnel diff --git a/package.json b/package.json index 11e92c7e..939c5091 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mirotalk", - "version": "1.5.13", + "version": "1.5.14", "description": "A free WebRTC browser-based video call", "main": "server.js", "scripts": { diff --git a/public/js/brand.js b/public/js/brand.js index a683b63d..3b2d9e42 100644 --- a/public/js/brand.js +++ b/public/js/brand.js @@ -73,7 +73,7 @@ let brand = { }, about: { imageUrl: '../images/mirotalk-logo.gif', - title: 'WebRTC P2P v1.5.13', + title: 'WebRTC P2P v1.5.14', html: `