@fishjam-cloud/ts-client 0.5.2 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -237,15 +237,13 @@ export class WebRTCEndpoint extends EventEmitter {
|
|
|
237
237
|
onSdpAnswer = async (data) => {
|
|
238
238
|
this.remote.updateMLineIds(data.midToTrackId);
|
|
239
239
|
this.local.updateMLineIds(data.midToTrackId);
|
|
240
|
-
Object.
|
|
241
|
-
.map((
|
|
242
|
-
if (!
|
|
240
|
+
Object.keys(data.midToTrackId)
|
|
241
|
+
.map((mid) => {
|
|
242
|
+
if (!mid)
|
|
243
243
|
throw new Error('TrackId is not defined');
|
|
244
|
-
|
|
245
|
-
throw new Error('TrackId is not a string');
|
|
246
|
-
return trackId;
|
|
244
|
+
return mid;
|
|
247
245
|
})
|
|
248
|
-
.map((
|
|
246
|
+
.map((mid) => this.local.getTrackByMidOrNull(mid))
|
|
249
247
|
.filter((localTrack) => localTrack !== null)
|
|
250
248
|
.forEach((localTrack) => {
|
|
251
249
|
const trackContext = localTrack.trackContext;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fishjam-cloud/ts-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Typescript client library for Fishjam Cloud",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Fishjam Cloud Team",
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
"test": "vitest run tests/**",
|
|
42
42
|
"test:e2e": "NODE_OPTIONS=--dns-result-order=ipv4first playwright test",
|
|
43
43
|
"test:coverage": "vitest run tests/** --coverage",
|
|
44
|
-
"typecheck": "tsc",
|
|
45
44
|
"prepare": "tsc",
|
|
46
45
|
"prepack": "yarn build"
|
|
47
46
|
},
|
|
@@ -65,7 +64,7 @@
|
|
|
65
64
|
"typed-emitter": "^2.1.0",
|
|
66
65
|
"typedoc": "^0.26.6",
|
|
67
66
|
"typedoc-plugin-external-resolver": "^1.0.3",
|
|
68
|
-
"typedoc-plugin-mdn-links": "^3.2.
|
|
67
|
+
"typedoc-plugin-mdn-links": "^3.2.10",
|
|
69
68
|
"typescript": "^5.5.4",
|
|
70
69
|
"vitest": "^2.0.5",
|
|
71
70
|
"zod": "^3.23.6"
|