@vindral/web-sdk 4.6.0-35-gcb5f7111 → 4.6.0-37-g0178ad7e

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.
@@ -5701,7 +5701,7 @@ var qf = /* @__PURE__ */ new WeakMap(), Jf = /* @__PURE__ */ new WeakMap(), Yf =
5701
5701
  namespace: e,
5702
5702
  params: t
5703
5703
  }, a = af(i);
5704
- if (s(Zf, n).update((e) => e.set(i.namespace.join("/"), a)), yield s(Yf, n).push(i), !(yield Promise.race([a.state.ok(), s(qf, n).closed()]))) throw Error("Session closed");
5704
+ if (s(Zf, n).update((e) => e.set(i.namespace.join("/"), a)), yield s(Yf, n).push(i), !(yield Promise.race([a.state.ok(), s(qf, n).closed().then(() => void 0)]))) throw Error("Session closed");
5705
5705
  } catch (e) {
5706
5706
  throw s(Xf, n).error("Error 'announce'", e), e;
5707
5707
  }
@@ -6046,7 +6046,7 @@ var _p = 2e3, vp = /* @__PURE__ */ new WeakMap(), yp = /* @__PURE__ */ new WeakM
6046
6046
  filterType: t.filterType,
6047
6047
  params: n
6048
6048
  }, [l, u] = sp(s(bp, r), c);
6049
- if (s(yp, r).update((e) => e.set(i, l)), yield s(bp, r).push(c), !(yield Promise.race([l.state.ok(), s(vp, r).closed()]))) throw Error("Session closed");
6049
+ if (s(yp, r).update((e) => e.set(i, l)), yield s(bp, r).push(c), !(yield Promise.race([l.state.ok(), s(vp, r).closed().then(() => void 0)]))) throw Error("Session closed");
6050
6050
  return u.closed().then(() => Promise.race([rn(_p), r.closed()])).then(() => o(Sp, r, Tp).call(r, u.id)).catch(() => o(Sp, r, Tp).call(r, u.id)), u;
6051
6051
  } catch (e) {
6052
6052
  throw s(xp, r).error("Error 'subscribe'", e), e;
@@ -6204,11 +6204,13 @@ function Rp(e) {
6204
6204
  function zp() {
6205
6205
  var e = this;
6206
6206
  return t(function* () {
6207
- return (yield Promise.all([
6207
+ var t;
6208
+ let n = yield Promise.all([
6208
6209
  o(Ip, e, Vp).call(e),
6209
6210
  o(Ip, e, Hp).call(e),
6210
6211
  o(Ip, e, Bp).call(e)
6211
- ])).find((e) => e instanceof Error);
6212
+ ]);
6213
+ return (t = s(Ap, e).resolved) == null ? n.find((e) => e instanceof Error) : t;
6212
6214
  })();
6213
6215
  }
6214
6216
  function Bp() {
@@ -6582,14 +6584,16 @@ function km() {
6582
6584
  typeof window < "u" && typeof window.addEventListener == "function" && (window.addEventListener("beforeunload", i), n.closed.finally(() => {
6583
6585
  window.removeEventListener("beforeunload", i);
6584
6586
  }).catch(() => {})), yield he(Promise.race([n.ready, n.closed.then(() => Promise.reject(/* @__PURE__ */ Error("WebTransport closed")))]), t).catch(r);
6585
- let a = yield he(n.createBidirectionalStream(), t).catch(r), o = Zd.wrapWebTransport(a), s = ef(o, e.role).catch(() => {
6586
- n.close();
6587
+ let a = yield he(n.createBidirectionalStream(), t).catch(r), o = Zd.wrapWebTransport(a), s = ef(o, e.role).catch((e) => {
6588
+ throw Tm.warn("MoQ handshake failed, closing WebTransport", { error: e }), n.close(), e;
6587
6589
  });
6588
6590
  e.handshakePipelining || (yield he(s, t).catch(r)), t != null && t.aborted && r(fe(t));
6589
6591
  let c = new Lp(new Sm(n, o, e.url.toString()), e.authToken);
6590
6592
  return Tm.info("connected", {
6591
6593
  url: e.url,
6592
6594
  transport: "webtransport"
6595
+ }), e.handshakePipelining && s.catch((e) => {
6596
+ c.fail(e);
6593
6597
  }), c;
6594
6598
  }), km.apply(this, arguments);
6595
6599
  }
@@ -12103,7 +12107,7 @@ var Cb = class {
12103
12107
  let e = this.modules.canvasModule instanceof Ny ? !0 : void 0;
12104
12108
  return y({
12105
12109
  uptime: this.uptime,
12106
- version: "4.6.0-35-gcb5f7111",
12110
+ version: "4.6.0-37-g0178ad7e",
12107
12111
  clientId: this.clientId,
12108
12112
  sessionId: this.sessionId,
12109
12113
  channelId: this.channelId,
@@ -1,5 +1,5 @@
1
1
  import { n as e, t } from "./BsfwXDui.js";
2
- import { C as n, D as r, E as i, O as a, S as o, T as s, _ as c, b as l, g as u, h as ee, k as d, m as te, p as ne, t as re, v as ie, w as ae, x as oe, y as se } from "./7u_LZ50w.js";
2
+ import { C as n, D as r, E as i, O as a, S as o, T as s, _ as c, b as l, g as u, h as ee, k as d, m as te, p as ne, t as re, v as ie, w as ae, x as oe, y as se } from "./CRV_1gOM.js";
3
3
  import { t as ce } from "./CuYn2z5X.js";
4
4
  import { i as f, n as p, r as m, t as h } from "./DSw1XhvD.js";
5
5
  import { c as le, n as ue, t as de } from "./D40eQS8l.js";
package/core.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, o, r as s, s as c, t as l, u } from "./7u_LZ50w.js";
1
+ import { a as e, c as t, d as n, f as r, i, l as a, o, r as s, s as c, t as l, u } from "./CRV_1gOM.js";
2
2
  export { s as AUTHENTICATION_EXPIRED_CODE, i as AUTHENTICATION_FAILED_CODE, e as CHANNEL_NOT_FOUND_CODE, o as CHANNEL_NOT_LIVE_CODE, c as CONNECTION_FAILED_AFTER_RETRIES_CODE, t as CONNECTION_FAILED_CODE, a as DISCONNECTED_BY_EDGE, u as INACTIVITY_CODE, n as NO_INCOMING_DATA, l as Vindral, r as VindralError };