Skip to content

Commit

Permalink
[mirotalkc2c] - replace yamljs (deprecated) with js-yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jun 5, 2024
1 parent 4fd1d91 commit f11fd34
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @license For private project or commercial purposes contact us at: [email protected] or purchase it directly via Code Canyon:
* @license https://codecanyon.net/item/mirotalk-c2c-webrtc-real-time-cam-2-cam-video-conferences-and-screen-sharing/43383005
* @author Miroslav Pejic - [email protected]
* @version 1.1.20
* @version 1.1.21
*/

require('dotenv').config();
Expand All @@ -25,14 +25,15 @@ const checkXSS = require('./xss.js');
const path = require('path');
const ngrok = require('ngrok');
const app = express();
const fs = require('fs');
const logs = require('./logs');
const log = new logs('server');
const isHttps = process.env.HTTPS == 'true';
const port = process.env.PORT || 8080;
const ServerApi = require('./api');
const yamlJS = require('yamljs');
const yaml = require('js-yaml');
const swaggerUi = require('swagger-ui-express');
const swaggerDocument = yamlJS.load(path.join(__dirname + '/api/swagger.yaml'));
const swaggerDocument = yaml.load(fs.readFileSync(path.join(__dirname, '/api/swagger.yaml'), 'utf8'));
const queryJoin = '/join?room=test&name=test';
const queryRoom = '/?room=test';
const packageJson = require('../package.json');
Expand All @@ -43,7 +44,6 @@ const nodemailer = require('./lib/nodemailer');
let server;

if (isHttps) {
const fs = require('fs');
const keyPath = path.join(__dirname, 'ssl/key.pem');
const certPath = path.join(__dirname, 'ssl/cert.pem');

Expand Down
2 changes: 1 addition & 1 deletion frontend/js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @license For private project or commercial purposes contact us at: [email protected] or purchase it directly via Code Canyon:
* @license https://codecanyon.net/item/mirotalk-c2c-webrtc-real-time-cam-2-cam-video-conferences-and-screen-sharing/43383005
* @author Miroslav Pejic - [email protected]
* @version 1.1.20
* @version 1.1.21
*/

const roomId = new URLSearchParams(window.location.search).get('room');
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mirotalkc2c",
"version": "1.1.20",
"version": "1.1.21",
"description": "A free WebRTC Cam-2-Cam browser-based video calls",
"main": "server.js",
"scripts": {
Expand Down Expand Up @@ -42,17 +42,17 @@
"dotenv": "^16.4.5",
"express": "^4.19.2",
"express-openid-connect": "^2.17.1",
"js-yaml": "^4.1.0",
"ngrok": "^5.0.0-beta.2",
"nodemailer": "^6.9.13",
"socket.io": "^4.7.5",
"swagger-ui-express": "5.0.0",
"swagger-ui-express": "5.0.1",
"uuid": "9.0.1",
"xss": "^1.0.15",
"yamljs": "0.3.0"
"xss": "^1.0.15"
},
"devDependencies": {
"node-fetch": "^3.3.2",
"nodemon": "^3.1.0",
"prettier": "3.2.5"
"nodemon": "^3.1.3",
"prettier": "3.3.1"
}
}

0 comments on commit f11fd34

Please sign in to comment.