@cloudflare/realtimekit 1.2.0-staging.14 → 1.2.0-staging.15

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.d.ts CHANGED
@@ -5683,6 +5683,7 @@ type LogData$2 = {
5683
5683
  };
5684
5684
  dyteParticipant?: {
5685
5685
  id: string;
5686
+ maskedName?: string;
5686
5687
  };
5687
5688
  actions?: {
5688
5689
  disableAllAudio?: {
package/dist/index.es.js CHANGED
@@ -22113,7 +22113,12 @@ const aS = (zg = class {
22113
22113
  })), this.roomSocketHandler.on(
22114
22114
  this.events.peerJoinedBroadcast,
22115
22115
  ({ participant: s }) => {
22116
- this.logger.info("events.peerJoinedBroadcast", { peers: s.peerId }), this.onParticipantMediaJoined(
22116
+ this.logger.info("PEER_INFO:::MEDIA_JOIN", {
22117
+ dyteParticipant: {
22118
+ id: s.peerId,
22119
+ maskedName: [...(s == null ? void 0 : s.displayName) || ""].map((t, e) => e % 2 ? "*" : t).join("")
22120
+ }
22121
+ }), this.logger.info("events.peerJoinedBroadcast", { peers: s.peerId }), this.onParticipantMediaJoined(
22117
22122
  s.peerId,
22118
22123
  s.producerStates,
22119
22124
  s.capabilities
@@ -22439,7 +22444,12 @@ const aS = (zg = class {
22439
22444
  if (!this.mediaJoined || s === this.self.id)
22440
22445
  return;
22441
22446
  const r = this.participants.joined.get(s);
22442
- if (!r) {
22447
+ if (this.logger.info("PEER_INFO:::SOCKET_ON_MEDIA_JOIN", {
22448
+ dyteParticipant: {
22449
+ id: r.id,
22450
+ maskedName: [...(r == null ? void 0 : r.name) || ""].map((i, a) => a % 2 ? "*" : i).join("")
22451
+ }
22452
+ }), !r) {
22443
22453
  this.logger.warn(`Received media.peerJoinedBroadcast for non-existent peer ${s}`);
22444
22454
  return;
22445
22455
  }
@@ -30672,7 +30682,7 @@ let ii = (em = class {
30672
30682
  video: true
30673
30683
  };
30674
30684
  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 || (() => {
30675
- })), 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;
30685
+ })), a.setValue("cachedUserDetails", bs(e.cachedUserDetails)), a.setValue("sdkVersion", "3.2.0-staging.15"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new i1()), a;
30676
30686
  }
30677
30687
  join() {
30678
30688
  return u(this, null, function* () {