@moq/watch 0.1.1 → 0.2.0

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.
@@ -8108,7 +8108,7 @@ class Lc {
8108
8108
  class nu {
8109
8109
  connection;
8110
8110
  enabled;
8111
- path;
8111
+ name;
8112
8112
  status = new h("offline");
8113
8113
  reload;
8114
8114
  #n = new h(void 0);
@@ -8119,7 +8119,7 @@ class nu {
8119
8119
  #e = new h(!1);
8120
8120
  signals = new C();
8121
8121
  constructor(n) {
8122
- this.connection = h.from(n?.connection), this.path = h.from(n?.path), this.enabled = h.from(n?.enabled ?? !1), this.reload = h.from(n?.reload ?? !1), this.signals.run(this.#t.bind(this)), this.signals.run(this.#s.bind(this)), this.signals.run(this.#i.bind(this));
8122
+ this.connection = h.from(n?.connection), this.name = h.from(n?.name), this.enabled = h.from(n?.enabled ?? !1), this.reload = h.from(n?.reload ?? !1), this.signals.run(this.#t.bind(this)), this.signals.run(this.#s.bind(this)), this.signals.run(this.#i.bind(this));
8123
8123
  }
8124
8124
  #t(n) {
8125
8125
  if (!n.get(this.enabled)) return;
@@ -8129,7 +8129,7 @@ class nu {
8129
8129
  }
8130
8130
  const s = n.get(this.connection);
8131
8131
  if (!s) return;
8132
- const i = n.get(this.path);
8132
+ const i = n.get(this.name);
8133
8133
  if (i === void 0) return;
8134
8134
  const o = s.announced(i);
8135
8135
  n.cleanup(() => o.close()), n.spawn(async () => {
@@ -8147,7 +8147,7 @@ class nu {
8147
8147
  #s(n) {
8148
8148
  const t = n.getAll([this.enabled, this.#e, this.connection]);
8149
8149
  if (!t) return;
8150
- const [r, s, i] = t, o = n.get(this.path);
8150
+ const [r, s, i] = t, o = n.get(this.name);
8151
8151
  if (o === void 0) return;
8152
8152
  const a = i.consume(o);
8153
8153
  n.cleanup(() => a.close()), n.set(this.#n, a);
@@ -8165,10 +8165,10 @@ class nu {
8165
8165
  for (; ; ) {
8166
8166
  const t = await Ua(n);
8167
8167
  if (!t) break;
8168
- console.debug("received catalog", this.path.peek(), t), this.#r.set(t), this.status.set("live");
8168
+ console.debug("received catalog", this.name.peek(), t), this.#r.set(t), this.status.set("live");
8169
8169
  }
8170
8170
  } catch (t) {
8171
- console.warn("error fetching catalog", this.path.peek(), t);
8171
+ console.warn("error fetching catalog", this.name.peek(), t);
8172
8172
  } finally {
8173
8173
  this.#r.set(void 0), this.status.set("offline");
8174
8174
  }
@@ -8196,4 +8196,4 @@ export {
8196
8196
  Kc as m,
8197
8197
  At as t
8198
8198
  };
8199
- //# sourceMappingURL=broadcast-BFfLDq15.js.map
8199
+ //# sourceMappingURL=broadcast-DhcOJtcZ.js.map