Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Export type from inner client (#28)
Browse files Browse the repository at this point in the history
* Export type from inner client

* Bump version
  • Loading branch information
kamil-stasiak authored Jan 11, 2024
1 parent e385997 commit 1b4d5ce
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 24 deletions.
2 changes: 1 addition & 1 deletion examples/simple-app/package-lock.json

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

20 changes: 12 additions & 8 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": "@jellyfish-dev/ts-client-sdk",
"version": "0.2.2",
"version": "0.2.3",
"description": "Typescript client library for Jellyfish.",
"license": "Apache-2.0",
"author": "Membrane Team",
Expand Down Expand Up @@ -62,7 +62,7 @@
"typescript": "^4.9.5"
},
"dependencies": {
"@jellyfish-dev/membrane-webrtc-js": "^0.5.3",
"@jellyfish-dev/membrane-webrtc-js": "^0.6.1",
"events": "^3.3.0",
"ts-proto": "^1.165.0",
"typed-emitter": "^2.1.0"
Expand Down
9 changes: 7 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
export * from "./JellyfishClient";
export {

export type {
TrackBandwidthLimit,
SimulcastBandwidthLimit,
BandwidthLimit,
WebRTCEndpointEvents,
TrackContextEvents,
Endpoint,
SimulcastConfig,
TrackContext,
TrackEncoding,
VadStatus,
EncodingReason,
TrackBandwidthLimit,
} from "@jellyfish-dev/membrane-webrtc-js";
4 changes: 2 additions & 2 deletions tests/jellyfish.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ test("connects to Jellyfish Server", async ({ page: firstPage, context }) => {
await Promise.all([assertThatOtherVideoIsPlaying(firstPage), assertThatOtherVideoIsPlaying(secondPage)]);
});

test("properly sees 8 other peers", async ({ page, context }) => {
const pages = [page, ...(await Promise.all([...Array(8)].map(() => context.newPage())))];
test("properly sees 3 other peers", async ({ page, context }) => {
const pages = [page, ...(await Promise.all([...Array(3)].map(() => context.newPage())))];

const roomRequest = await page.request.post("http://localhost:5002/room");
const roomId = (await roomRequest.json()).data.room.id as string;
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@
resolved "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz"
integrity sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==

"@jellyfish-dev/membrane-webrtc-js@^0.5.3":
version "0.5.3"
resolved "https://registry.npmjs.org/@jellyfish-dev/membrane-webrtc-js/-/membrane-webrtc-js-0.5.3.tgz"
integrity sha512-XUmSBToRCfxz5qQDNj3Ql7ZLNuTRJ6LyGZOt7pCL6dlXwrghsRH45KuoibPl28QmcVSEU18jyGeuoKP2XGju3Q==
"@jellyfish-dev/membrane-webrtc-js@^0.6.1":
version "0.6.1"
resolved "https://registry.npmjs.org/@jellyfish-dev/membrane-webrtc-js/-/membrane-webrtc-js-0.6.1.tgz"
integrity sha512-nwJG/1EShrde2yP9Z52N13XiUhCn2Jk6tmO7yvjKLaI8PWsAxQIl5JYyavd06Wx5e2NSv0owDyYgruIJDzDRag==
dependencies:
events "^3.3.0"
typed-emitter "^2.1.0"
uuid "^8.3.2"
uuid "^9.0.1"

"@nodelib/fs.scandir@2.1.5":
version "2.1.5"
Expand Down Expand Up @@ -1718,10 +1718,10 @@ util-deprecate@^1.0.1, util-deprecate@~1.0.1:
resolved "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz"
integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==

uuid@^8.3.2:
version "8.3.2"
resolved "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz"
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
uuid@^9.0.1:
version "9.0.1"
resolved "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz"
integrity sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==

vscode-oniguruma@^1.7.0:
version "1.7.0"
Expand Down

0 comments on commit 1b4d5ce

Please sign in to comment.