Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REF] rename discuss-sfu into odoo-sfu #4

Merged
merged 1 commit into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Odoo: Discuss SFU
# Odoo SFU

## Overview

Expand Down Expand Up @@ -132,7 +132,7 @@ The bundle built with the `build` script in [package.json](./package.json) can b
in the client(js) code that implements the call feature like this:

```js
import { SfuClient, SFU_CLIENT_STATE } from "/bundle/discuss_sfu.js";
import { SfuClient, SFU_CLIENT_STATE } from "/bundle/odoo_sfu.js";
const sfu = new SfuClient();
```
`SfuClient` exposes the following API:
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discuss-sfu",
"description": "SFU server for discuss",
"name": "odoo-sfu",
"description": "Odoo's SFU server",
"version": "1.0.0",
"author": "Odoo",
"license": "LGPL-3.0",
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default {
output: [
{
banner: "/* @odoo-module */",
file: "./bundle/discuss_sfu.js",
file: "./bundle/odoo_sfu.js",
format: "es",
outro,
},
Expand All @@ -29,7 +29,7 @@ export default {
}),
license({
thirdParty: {
output: "./bundle/discuss_sfu.licenses.txt",
output: "./bundle/odoo_sfu.licenses.txt",
},
}),
],
Expand Down
2 changes: 1 addition & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const processHandlers = {
};

// ==================== PROCESS ====================
process.name = "discuss_sfu";
process.name = "odoo_sfu";
for (const [signal, handler] of Object.entries(processHandlers)) {
process.on(signal, handler);
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class Logger {
*/
_log(logFn, level, text, color) {
logFn(
`${this._getTimeStamp()}discuss-sfu ${this._colorize(
`${this._getTimeStamp()}odoo-sfu ${this._colorize(
`${level} [${this._name}] - ${text}`,
color
)}`
Expand Down
4 changes: 2 additions & 2 deletions tests/logger.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ describe("Logger", () => {
useColors: false,
});
logger.warn("test");
expect(messages.pop()).toBe("2023-09-15T08:29:00.000Z discuss-sfu :WARN: [test1] - test");
expect(messages.pop()).toBe("2023-09-15T08:29:00.000Z odoo-sfu :WARN: [test1] - test");
const logger2 = new Logger("test2", {
logLevel: "debug",
timestamp: false,
useColors: false,
});
logger2.debug("test");
expect(messages.pop()).toBe("discuss-sfu :DEBUG: [test2] - test");
expect(messages.pop()).toBe("odoo-sfu :DEBUG: [test2] - test");
});
test("logger respects log level", () => {
const logEach = (logger) => {
Expand Down