@slashid/remix 0.2.22 → 0.2.23

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/main.js CHANGED
@@ -16422,11 +16422,12 @@ function V5({ sdk: e }) {
16422
16422
  const t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
16423
16423
  Zl.PUBLIC_READ_EVENTS.forEach((s) => {
16424
16424
  const c = (d) => {
16425
- if (n.has(s))
16425
+ var f;
16426
+ if (n.has(s) && (f = n.get(s)) != null && f.length)
16426
16427
  return;
16427
16428
  t.has(s) || t.set(s, []);
16428
- const f = t.get(s);
16429
- f && f.push(d);
16429
+ const b = t.get(s);
16430
+ b && b.push(d);
16430
16431
  };
16431
16432
  e.subscribe(s, c), r.set(s, c);
16432
16433
  });
@@ -16436,14 +16437,15 @@ function V5({ sdk: e }) {
16436
16437
  d && d.push(c), t.has(s) && (t.get(s).forEach((f) => c(f)), t.delete(s));
16437
16438
  }
16438
16439
  function a(s, c) {
16439
- if (e.unsubscribe(s, c), !n.has(s))
16440
+ var d;
16441
+ if (e.unsubscribe(s, c), !n.has(s) || !((d = n.get(s)) != null && d.length))
16440
16442
  return;
16441
- const d = n.get(s);
16442
- if (d) {
16443
- const f = d.filter(
16444
- (b) => b !== c
16443
+ const f = n.get(s);
16444
+ if (f) {
16445
+ const b = f.filter(
16446
+ (m) => m !== c
16445
16447
  );
16446
- n.set(s, f);
16448
+ n.set(s, b);
16447
16449
  }
16448
16450
  }
16449
16451
  function i() {