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

Updated dependencies #103

Merged
merged 1 commit into from
Jan 31, 2024
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ dist
.env.production.local

.npmrc
.nx
1 change: 1 addition & 0 deletions example/local-multi-web-client/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const buildOptions: esbuild.BuildOptions = {
},
bundle: true,
write: true,
metafile: true,
sourcemap: "linked",
outdir: "./build/",
assetNames: "[dir]/[name]-[hash]",
Expand Down
2 changes: 1 addition & 1 deletion example/local-multi-web-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@mml-io/3d-web-text-chat": "^0.11.0",
"@mml-io/3d-web-user-networking": "^0.11.0",
"@mml-io/3d-web-voice-chat": "^0.11.0",
"mml-web-runner": "0.11.2",
"mml-web-runner": "0.11.3",
"three": "0.153.0"
},
"devDependencies": {
Expand Down
4 changes: 3 additions & 1 deletion example/local-multi-web-client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"noEmit": true,
"baseUrl": "."
"baseUrl": ".",
"incremental": true,
"skipLibCheck": true
},
"include": ["src/**/*", "test/**/*", "./build.ts"],
"exclude": ["**/build/*", "types-src"]
Expand Down
1 change: 1 addition & 0 deletions example/server/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const buildOptions: esbuild.BuildOptions = {
entryPoints: ["src/index.ts"],
outdir: "./build",
bundle: true,
metafile: true,
format: "esm",
packages: "external",
sourcemap: true,
Expand Down
18 changes: 9 additions & 9 deletions example/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lint-fix": "eslint \"./{src,test}/**/*.{js,jsx,ts,tsx}\" --fix"
},
"dependencies": {
"@dolbyio/dolbyio-rest-apis-client": "4.0.0",
"@dolbyio/dolbyio-rest-apis-client": "4.1.0",
"@example/web-client": "^0.11.0",
"@mml-io/3d-web-text-chat": "^0.11.0",
"@mml-io/3d-web-user-networking": "^0.11.0",
Expand All @@ -25,15 +25,15 @@
"express": "4.18.2",
"express-ws": "5.0.2",
"http-proxy": "^1.18.1",
"networked-dom-server": "0.11.2",
"ws": "8.13.0"
"networked-dom-server": "0.11.3",
"ws": "8.16.0"
},
"devDependencies": {
"@types/cors": "2.8.14",
"@types/express": "^4.17.17",
"@types/express-ws": "^3.0.1",
"@types/http-proxy": "^1.17.11",
"@types/node": "^20.5.9",
"nodemon": "^3.0.1"
"@types/cors": "2.8.17",
"@types/express": "^4.17.21",
"@types/express-ws": "^3.0.4",
"@types/http-proxy": "^1.17.14",
"@types/node": "^20.11.13",
"nodemon": "^3.0.3"
}
}
8 changes: 4 additions & 4 deletions example/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import path from "path";
import url from "url";

import dolbyio from "@dolbyio/dolbyio-rest-apis-client";
import JwtToken from "@dolbyio/dolbyio-rest-apis-client/dist/types/jwtToken";
import * as jwtToken from "@dolbyio/dolbyio-rest-apis-client/dist/types/jwtToken";
import { ChatNetworkingServer } from "@mml-io/3d-web-text-chat";
import { UserNetworkingServer } from "@mml-io/3d-web-user-networking";
import cors from "cors";
Expand All @@ -26,9 +26,9 @@ app.enable("trust proxy");

const DOLBY_APP_KEY = process.env.DOLBY_APP_KEY ?? "";
const DOLBY_APP_SECRET = process.env.DOLBY_APP_SECRET ?? "";
let apiTokenPromise: Promise<JwtToken>;
let apiTokenPromise: Promise<jwtToken.JwtToken>;

const fetchApiToken = (): Promise<JwtToken> => {
const fetchApiToken = (): Promise<jwtToken.JwtToken> => {
if (DOLBY_APP_KEY && DOLBY_APP_SECRET) {
const apiAccessToken = dolbyio.authentication.getApiAccessToken(
DOLBY_APP_KEY,
Expand All @@ -41,7 +41,7 @@ const fetchApiToken = (): Promise<JwtToken> => {
throw new Error("Audio service not configured");
};

const fetchAccessToken = (apiToken: JwtToken, id: string) => {
const fetchAccessToken = (apiToken: jwtToken.JwtToken, id: string) => {
const accessToken = dolbyio.communications.authentication.getClientAccessTokenV2({
accessToken: apiToken,
externalId: id,
Expand Down
4 changes: 3 additions & 1 deletion example/server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"resolveJsonModule": true,
"downlevelIteration": true,
"noEmit": true,
"baseUrl": "."
"baseUrl": ".",
"incremental": true,
"skipLibCheck": true
},
"include": ["src/**/*", "test/**/*", "./build.ts"],
"exclude": ["**/build/*", "types-src"]
Expand Down
1 change: 1 addition & 0 deletions example/web-avatar-client/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const buildOptions: esbuild.BuildOptions = {
},
bundle: true,
write: true,
metafile: true,
sourcemap: true,
outdir: "./build/",
assetNames: "[dir]/[name]-[hash]",
Expand Down
4 changes: 3 additions & 1 deletion example/web-avatar-client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"noEmit": true,
"baseUrl": "."
"baseUrl": ".",
"incremental": true,
"skipLibCheck": true
},
"include": ["src/**/*", "test/**/*", "./build.ts"],
"exclude": ["**/build/*", "types-src"]
Expand Down
1 change: 1 addition & 0 deletions example/web-client/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const buildOptions: esbuild.BuildOptions = {
},
bundle: true,
write: true,
metafile: true,
sourcemap: "linked",
outdir: "./build/",
assetNames: "[dir]/[name]-[hash]",
Expand Down
4 changes: 3 additions & 1 deletion example/web-client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"noEmit": true,
"baseUrl": "."
"baseUrl": ".",
"incremental": true,
"skipLibCheck": true
},
"include": ["src/**/*", "test/**/*", "./build.ts"],
"exclude": ["**/build/*", "types-src"]
Expand Down
Loading
Loading