@cloudflare/realtimekit-react 1.2.0-staging.14 → 1.2.0-staging.16

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.
package/dist/index.es.js CHANGED
@@ -22120,7 +22120,12 @@ const aS = (zg = class {
22120
22120
  })), this.roomSocketHandler.on(
22121
22121
  this.events.peerJoinedBroadcast,
22122
22122
  ({ participant: s }) => {
22123
- this.logger.info("events.peerJoinedBroadcast", { peers: s.peerId }), this.onParticipantMediaJoined(
22123
+ this.logger.info("PEER_INFO:::MEDIA_JOIN", {
22124
+ dyteParticipant: {
22125
+ id: s.peerId,
22126
+ maskedName: [...(s == null ? void 0 : s.displayName) || ""].map((t, e) => e % 2 ? "*" : t).join("")
22127
+ }
22128
+ }), this.logger.info("events.peerJoinedBroadcast", { peers: s.peerId }), this.onParticipantMediaJoined(
22124
22129
  s.peerId,
22125
22130
  s.producerStates,
22126
22131
  s.capabilities
@@ -22446,7 +22451,12 @@ const aS = (zg = class {
22446
22451
  if (!this.mediaJoined || s === this.self.id)
22447
22452
  return;
22448
22453
  const r = this.participants.joined.get(s);
22449
- if (!r) {
22454
+ if (this.logger.info("PEER_INFO:::SOCKET_ON_MEDIA_JOIN", {
22455
+ dyteParticipant: {
22456
+ id: r.id,
22457
+ maskedName: [...(r == null ? void 0 : r.name) || ""].map((i, a) => a % 2 ? "*" : i).join("")
22458
+ }
22459
+ }), !r) {
22450
22460
  this.logger.warn(`Received media.peerJoinedBroadcast for non-existent peer ${s}`);
22451
22461
  return;
22452
22462
  }
@@ -26325,7 +26335,9 @@ class aO {
26325
26335
  consumers: e
26326
26336
  }
26327
26337
  }, i = yield this.recvTransport.sendDataChannelMessage("events", r), { failedConsumers: a } = i;
26328
- return { failedConsumers: a };
26338
+ return t.forEach((o) => {
26339
+ a != null && a.includes(o.id) || o.close(void 0, false);
26340
+ }), { failedConsumers: a };
26329
26341
  });
26330
26342
  }
26331
26343
  switchConsumersToLayer(t, e) {
@@ -30679,7 +30691,7 @@ let ii = (em = class {
30679
30691
  video: true
30680
30692
  };
30681
30693
  return a.setValue("options", e), a.setValue("peerId", t), a.setValue("modules", o), a.setValue("sdkName", "web-core"), a.setValue("meetingId", r), a.setValue("apiBase", i.apiBase), a.setValue("baseURI", i.baseURI), a.setValue("userId", i.participantId), a.setValue("organizationId", i.orgId), a.setValue("authToken", e.authToken), a.setValue("overrides", (d = e.overrides) != null ? d : {}), a.setValue("env", TR({ baseURI: i.baseURI })), a.setValue("defaults", c), a.setValue("onError", e.onError || (() => {
30682
- })), a.setValue("cachedUserDetails", bs(e.cachedUserDetails)), a.setValue("sdkVersion", "3.2.0-staging.14"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new i1()), a;
30694
+ })), a.setValue("cachedUserDetails", bs(e.cachedUserDetails)), a.setValue("sdkVersion", "3.2.0-staging.16"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new i1()), a;
30683
30695
  }
30684
30696
  join() {
30685
30697
  return u(this, null, function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/realtimekit-react",
3
- "version": "1.2.0-staging.14",
3
+ "version": "1.2.0-staging.16",
4
4
  "description": "A real-time video and audio SDK for building custom, collaborative communication experiences.",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.es.js",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "private": false,
22
22
  "dependencies": {
23
- "@cloudflare/realtimekit": "1.2.0-staging.14"
23
+ "@cloudflare/realtimekit": "1.2.0-staging.16"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "react": ">=16.8.6"