@cloudflare/realtimekit 1.1.0-staging.20 → 1.1.0-staging.21

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
@@ -9703,15 +9703,8 @@ const TC = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d=
9703
9703
  init(t, e, r) {
9704
9704
  this.tracingEnabled = true, this.initialized = false, this.logsCache = [];
9705
9705
  const i = t.getValue("peerId");
9706
- this.meetingMetadata = e, this.tracingEnabled = r, this.meetingMetadata.peerId = i, this.meetingMetadata.sdkVersion = t.getValue("sdkVersion"), this.meetingMetadata.deviceInfo = Te.getDeviceInfo(), this.meetingMetadata.visitedUrl = !navigator.isReactNative && typeof window != "undefined" && window.location.href, navigator.isReactNative || document.addEventListener(
9707
- "visibilitychange",
9708
- () => {
9709
- this.processCachedLogs.bind(this);
9710
- }
9711
- ), this.logsProcessorTimer = setInterval(
9712
- () => {
9713
- this.processCachedLogs.bind(this);
9714
- },
9706
+ this.meetingMetadata = e, this.tracingEnabled = r, this.meetingMetadata.peerId = i, this.meetingMetadata.sdkVersion = t.getValue("sdkVersion"), this.meetingMetadata.deviceInfo = Te.getDeviceInfo(), this.meetingMetadata.visitedUrl = !navigator.isReactNative && typeof window != "undefined" && window.location.href, this.logsProcessorTimer = setInterval(
9707
+ this.processCachedLogs.bind(this),
9715
9708
  this.logsProcessingInterval
9716
9709
  ), r && (this.initialized = true);
9717
9710
  }
@@ -9810,12 +9803,7 @@ const TC = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d=
9810
9803
  t != null && t.length && this.sendOtelLogsToNewRelic(t);
9811
9804
  }
9812
9805
  destruct() {
9813
- clearInterval(this.logsProcessorTimer), this.processCachedLogs(), navigator.isReactNative || document.removeEventListener(
9814
- "visibilitychange",
9815
- () => {
9816
- this.processCachedLogs.bind(this);
9817
- }
9818
- );
9806
+ clearInterval(this.logsProcessorTimer), this.processCachedLogs();
9819
9807
  }
9820
9808
  };
9821
9809
  let T = Kh;
@@ -30369,7 +30357,7 @@ let si = (Bg = class {
30369
30357
  video: true
30370
30358
  };
30371
30359
  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", (c = e.overrides) != null ? c : {}), n.setValue("env", yC({ baseURI: i.baseURI })), n.setValue("defaults", d), n.setValue("onError", e.onError || (() => {
30372
- })), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "3.1.0-staging.20"), (u = e.modules) != null && u.experimentalAudioPlayback && n.setValue("audioPlayback", new sO()), n;
30360
+ })), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "3.1.0-staging.21"), (u = e.modules) != null && u.experimentalAudioPlayback && n.setValue("audioPlayback", new sO()), n;
30373
30361
  }
30374
30362
  join() {
30375
30363
  return l(this, null, function* () {