Bump version to 1.2.0 in package.json, package-lock.json, and federation.js
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "redlight",
|
"name": "redlight",
|
||||||
"version": "1.1.0",
|
"version": "1.2.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "redlight",
|
"name": "redlight",
|
||||||
"version": "1.1.0",
|
"version": "1.2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.7.0",
|
"axios": "^1.7.0",
|
||||||
"bcryptjs": "^2.4.3",
|
"bcryptjs": "^2.4.3",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "redlight",
|
"name": "redlight",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.1.0",
|
"version": "1.2.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "concurrently -n client,server -c blue,green \"vite\" \"node --watch server/index.js\"",
|
"dev": "concurrently -n client,server -c blue,green \"vite\" \"node --watch server/index.js\"",
|
||||||
|
|||||||
@@ -70,12 +70,22 @@ async function apiCall(apiCallName, params = {}, xmlBody = null) {
|
|||||||
const tokens = [];
|
const tokens = [];
|
||||||
tokens.push(`time=${formatUTC(new Date())}`);
|
tokens.push(`time=${formatUTC(new Date())}`);
|
||||||
tokens.push(`method=${xmlBody ? 'POST' : 'GET'}`);
|
tokens.push(`method=${xmlBody ? 'POST' : 'GET'}`);
|
||||||
tokens.push(`path=${apiCallName}`);
|
// include standard BBB api base path
|
||||||
|
let apiBasePath = '/bigbluebutton/api';
|
||||||
|
try {
|
||||||
|
const u = new URL(BBB_URL);
|
||||||
|
apiBasePath = (u.pathname || '/bigbluebutton/api').replace(/\/$/, '');
|
||||||
|
} catch (e) {
|
||||||
|
// keep default
|
||||||
|
}
|
||||||
|
// ensure single slash separation
|
||||||
|
const fullPath = `${apiBasePath}/${apiCallName}`.replace(/\/\/+/, '/');
|
||||||
|
tokens.push(`path=${fullPath}`);
|
||||||
tokens.push(`format=xml`);
|
tokens.push(`format=xml`);
|
||||||
tokens.push(`status=${response.status}`);
|
tokens.push(`status=${response.status}`);
|
||||||
tokens.push(`duration=${(duration).toFixed(2)}`);
|
tokens.push(`duration=${(duration).toFixed(2)}`);
|
||||||
const bbbCode = result && result.response && result.response.returncode ? result.response.returncode : '-';
|
const returnCode = result && result.response && result.response.returncode ? result.response.returncode : '-';
|
||||||
tokens.push(`bbb_returncode=${bbbCode}`);
|
tokens.push(`returncode=${returnCode}`);
|
||||||
const safeParams = sanitizeParams(params);
|
const safeParams = sanitizeParams(params);
|
||||||
tokens.push(`params=${safeParams}`);
|
tokens.push(`params=${safeParams}`);
|
||||||
console.info(tokens.join(' '));
|
console.info(tokens.join(' '));
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export function wellKnownHandler(req, res) {
|
|||||||
federation_api: '/api/federation',
|
federation_api: '/api/federation',
|
||||||
public_key: getPublicKey(),
|
public_key: getPublicKey(),
|
||||||
software: 'Redlight',
|
software: 'Redlight',
|
||||||
version: '1.1.0',
|
version: '1.2.0',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user