@cloudflare/realtimekit 2.0.2-staging.2 → 2.0.2-staging.3

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
@@ -11961,16 +11961,15 @@ function hf(s) {
11961
11961
  }
11962
11962
  class vu extends Error {
11963
11963
  constructor(e) {
11964
- var t = (...args) => {
11965
- super(...args);
11966
- /** HTTP status code. Present only for HTTP error responses (4xx/5xx). */
11967
- p(this, "status");
11968
- /** Full response from the server. Present only for HTTP error responses. */
11969
- p(this, "response");
11970
- /** Whether the request timed out (AbortController fired before a response arrived). */
11971
- p(this, "isTimeout");
11972
- };
11973
- e instanceof Error ? (t(e.message), this.stack = e.stack, this.isTimeout = e.name === "AbortError") : (t(`Request failed with status ${e.status}`), this.status = e.status, this.response = e, this.isTimeout = !1), this.name = "RequestError";
11964
+ const r = e instanceof Error ? e.message : `Request failed with status ${e.status}`;
11965
+ super(r);
11966
+ /** HTTP status code. Present only for HTTP error responses (4xx/5xx). */
11967
+ p(this, "status");
11968
+ /** Full response from the server. Present only for HTTP error responses. */
11969
+ p(this, "response");
11970
+ /** Whether the request timed out (AbortController fired before a response arrived). */
11971
+ p(this, "isTimeout");
11972
+ e instanceof Error ? (this.stack = e.stack, this.isTimeout = e.name === "AbortError") : (this.status = e.status, this.response = e, this.isTimeout = !1), this.name = "RequestError";
11974
11973
  }
11975
11974
  /** Whether this is an HTTP error response (server responded with 4xx/5xx). */
11976
11975
  get isHttpError() {
@@ -27363,7 +27362,7 @@ let Gr = (Mg = class {
27363
27362
  video: !0
27364
27363
  };
27365
27364
  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", AC({ baseURI: i.baseURI })), n.setValue("defaults", c), n.setValue("onError", e.onError || (() => {
27366
- })), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "2.0.2-staging.2"), (l = e.modules) != null && l.experimentalAudioPlayback && n.setValue("audioPlayback", new cO()), n;
27365
+ })), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "2.0.2-staging.3"), (l = e.modules) != null && l.experimentalAudioPlayback && n.setValue("audioPlayback", new cO()), n;
27367
27366
  }
27368
27367
  join() {
27369
27368
  return u(this, null, function* () {