@cloudflare/realtimekit 1.4.0-staging.2 → 1.4.0-staging.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
@@ -5709,7 +5709,8 @@ class P {
5709
5709
  fetch(this.logsEndpoint, {
5710
5710
  method: "POST",
5711
5711
  headers: {
5712
- "Content-Type": "application/json"
5712
+ "Content-Type": "application/json",
5713
+ Authorization: `Bearer ${e.getValue("authToken")}`
5713
5714
  },
5714
5715
  body: JSON.stringify({
5715
5716
  meetingMetadata: wp(
@@ -15235,15 +15236,25 @@ class l0 {
15235
15236
  }
15236
15237
  vi = new WeakMap();
15237
15238
  class _h {
15238
- constructor(t, e, r) {
15239
+ constructor(t, e, r, i) {
15240
+ /**
15241
+ * The participant authToken passed to `RealtimeKitClient.init()`.
15242
+ * Can be used for troubleshooting.
15243
+ */
15244
+ h(this, "authToken");
15239
15245
  h(this, "logger");
15240
15246
  h(this, "features");
15241
15247
  h(this, "browserSpecs");
15242
15248
  h(this, "callStats");
15243
- this.logger = t, this.features = e, this.browserSpecs = _e, this.callStats = r;
15249
+ this.authToken = t, this.logger = e, this.features = r, this.browserSpecs = _e, this.callStats = i;
15244
15250
  }
15245
15251
  static init(t) {
15246
- return new _h(t.getValue("logger"), new l0(t), t.getValue("callstats"));
15252
+ return new _h(
15253
+ t.getValue("authToken"),
15254
+ t.getValue("logger"),
15255
+ new l0(t),
15256
+ t.getValue("callstats")
15257
+ );
15247
15258
  }
15248
15259
  }
15249
15260
  class Ch {
@@ -25391,7 +25402,8 @@ const vS = (Ag = class {
25391
25402
  flags: s.getValue("flagsmith").getAllFlags(),
25392
25403
  logger: l,
25393
25404
  apiHostnames: GC(s),
25394
- skipConnectivityChecks: p
25405
+ skipConnectivityChecks: p,
25406
+ authToken: s.getValue("authToken")
25395
25407
  }), l.info("Callstats:: initialized");
25396
25408
  } catch (f) {
25397
25409
  l.error("Callstats:: initialization failed", { error: f });
@@ -28251,7 +28263,7 @@ let Qr = (Og = class {
28251
28263
  video: !0
28252
28264
  };
28253
28265
  return n.setValue("options", e), n.setValue("peerId", t), n.setValue("modules", o), n.setValue("sdkName", "web-core"), n.setValue("meetingId", r), n.setValue("apiBase", i.apiBase), n.setValue("baseURI", i.baseURI), n.setValue("userId", i.participantId), n.setValue("organizationId", i.orgId), n.setValue("authToken", e.authToken), n.setValue("overrides", (d = e.overrides) != null ? d : {}), n.setValue("env", jC({ baseURI: i.baseURI })), n.setValue("defaults", c), n.setValue("onError", e.onError || (() => {
28254
- })), n.setValue("cachedUserDetails", Vs(e.cachedUserDetails)), n.setValue("sdkVersion", "1.4.0-staging.2"), (l = e.modules) != null && l.experimentalAudioPlayback && n.setValue("audioPlayback", new PO()), n;
28266
+ })), n.setValue("cachedUserDetails", Vs(e.cachedUserDetails)), n.setValue("sdkVersion", "1.4.0-staging.4"), (l = e.modules) != null && l.experimentalAudioPlayback && n.setValue("audioPlayback", new PO()), n;
28255
28267
  }
28256
28268
  join() {
28257
28269
  return u(this, null, function* () {