@cloudflare/realtimekit 2.0.4-staging.4 → 2.0.4

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
@@ -26297,7 +26297,7 @@ function bv(s) {
26297
26297
  return `${s.slice(0, 10)}...${s.slice(-10)}`;
26298
26298
  }
26299
26299
  function YO(s, t) {
26300
- s.startsWith("eyJ") || console.error("Invalid auth token provided. Ensure you are passing a %cparticipant `authToken`%c — not an Org API Key or an incorrectly formatted token.\nYou get the participant token from the Add Participant API: https://docs.realtime.cloudflare.com/api#/operations/add_participant", "font-weight: bold", "font-weight: normal");
26300
+ s.startsWith("eyJ") || console.error("Invalid auth token provided. Ensure you are passing a %cparticipant `authToken`%c — not an Org API Key or an incorrectly formatted token.\nYou get the participant token from the Add Participant API: https://developers.cloudflare.com/api/resources/realtime_kit/subresources/meetings/methods/add_participant", "font-weight: bold", "font-weight: normal");
26301
26301
  try {
26302
26302
  const { meetingId: e, orgId: r, participantId: i } = JSON.parse(atob(s.split(".")[1]));
26303
26303
  if (!e)
@@ -27571,7 +27571,7 @@ let oi = (Rm = class {
27571
27571
  video: !0
27572
27572
  };
27573
27573
  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", AC({ baseURI: i.baseURI })), a.setValue("defaults", c), a.setValue("onError", e.onError || (() => {
27574
- })), a.setValue("cachedUserDetails", Vs(e.cachedUserDetails)), a.setValue("sdkVersion", "2.0.4-staging.4"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new m1()), a;
27574
+ })), a.setValue("cachedUserDetails", Vs(e.cachedUserDetails)), a.setValue("sdkVersion", "2.0.4"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new m1()), a;
27575
27575
  }
27576
27576
  join() {
27577
27577
  return u(this, null, function* () {
package/dist/index.es5.js CHANGED
@@ -27128,7 +27128,7 @@ function mm(s) {
27128
27128
  return "".concat(s.slice(0, 10), "...").concat(s.slice(-10));
27129
27129
  }
27130
27130
  function ND(s, r) {
27131
- s.startsWith("eyJ") || console.error("Invalid auth token provided. Ensure you are passing a %cparticipant `authToken`%c — not an Org API Key or an incorrectly formatted token.\nYou get the participant token from the Add Participant API: https://docs.realtime.cloudflare.com/api#/operations/add_participant", "font-weight: bold", "font-weight: normal");
27131
+ s.startsWith("eyJ") || console.error("Invalid auth token provided. Ensure you are passing a %cparticipant `authToken`%c — not an Org API Key or an incorrectly formatted token.\nYou get the participant token from the Add Participant API: https://developers.cloudflare.com/api/resources/realtime_kit/subresources/meetings/methods/add_participant", "font-weight: bold", "font-weight: normal");
27132
27132
  try {
27133
27133
  var e = JSON.parse(atob(s.split(".")[1])), t = e.meetingId, n = e.orgId, i = e.participantId;
27134
27134
  if (!t)
@@ -28452,7 +28452,7 @@ var gr = /* @__PURE__ */ w("trackMap"), m2 = /* @__PURE__ */ function(s) {
28452
28452
  }, { key: "setupContext", value: function(e, t, n, i) {
28453
28453
  var a, o, c = Aa.createContext(e, t), l = V(V({}, RP), t == null ? void 0 : t.modules), d = t.defaults || { audio: !0, video: !0 };
28454
28454
  return c.setValue("options", t), c.setValue("peerId", e), c.setValue("modules", l), c.setValue("sdkName", "web-core"), c.setValue("meetingId", n), c.setValue("apiBase", i.apiBase), c.setValue("baseURI", i.baseURI), c.setValue("userId", i.participantId), c.setValue("organizationId", i.orgId), c.setValue("authToken", t.authToken), c.setValue("overrides", (a = t.overrides) !== null && a !== void 0 ? a : {}), c.setValue("env", _P({ baseURI: i.baseURI })), c.setValue("defaults", d), c.setValue("onError", t.onError || function() {
28455
- }), c.setValue("cachedUserDetails", di(t.cachedUserDetails)), c.setValue("sdkVersion", "2.0.4-staging.4"), (o = t.modules) !== null && o !== void 0 && o.experimentalAudioPlayback && c.setValue("audioPlayback", new m2()), c;
28455
+ }), c.setValue("cachedUserDetails", di(t.cachedUserDetails)), c.setValue("sdkVersion", "2.0.4"), (o = t.modules) !== null && o !== void 0 && o.experimentalAudioPlayback && c.setValue("audioPlayback", new m2()), c;
28456
28456
  } }]);
28457
28457
  }());
28458
28458
  Yl([dr("0002"), Xi.executeWithLock({ methodName: "meeting.join", lockName: "Client.join", timeout: 3e3 })], Ma.prototype, "join", 1);