@banou/stub 0.0.26 → 0.0.28

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.
Files changed (29) hide show
  1. package/build/assets/{account-BENsgVNM.js → account-BgpTCUUd.js} +1 -1
  2. package/build/assets/account-wP7U-PeH.js +1 -0
  3. package/build/assets/api-Bh_MpFDA.js +1 -0
  4. package/build/assets/{api-BdTgLphT-N3l6mbjo.js → api-CtiKFcK3-DDpRQueA.js} +1 -1
  5. package/build/assets/embed-D1NjTTmf.js +1460 -0
  6. package/build/assets/{index-js0hDSG0.js → index-D_Wk5pTR.js} +1 -1
  7. package/build/assets/lib-Bh4uJuOl.js +71 -0
  8. package/build/assets/lib-account-CF0gclnF.js +2 -0
  9. package/build/assets/{lib-account-BUymp__o.js → lib-account-CnUKCNw7.js} +3 -3
  10. package/build/assets/lib-api-BdPC6S5P.js +2 -0
  11. package/build/assets/{lib-api-BdTgLphT-DSr8Qbeb.js → lib-api-CtiKFcK3-lXOtBAbs.js} +1 -1
  12. package/build/assets/{lib-worker-BGozEgr9.js → lib-worker-B0U91WaG.js} +1119 -919
  13. package/build/assets/{lib-worker-GYQJyD7j.js → lib-worker-DcW0whIQ.js} +1 -1
  14. package/build/assets/{lib-worker-index-B4F7kvUH.js → lib-worker-index-Bs3gK32M.js} +1 -1
  15. package/build/assets/{main-BmWUQYUk.js → main-Byw7ajt7.js} +6 -6
  16. package/build/assets/{worker-CT1T8vTt.js → worker-BSvE4KIZ.js} +1 -1
  17. package/build/assets/worker-rHao32l9.js +1 -0
  18. package/build/embed.html +8 -8
  19. package/build/index.html +5 -5
  20. package/build/index.js +12 -10
  21. package/fkn.json +1 -1
  22. package/package.json +2 -2
  23. package/build/assets/account-DlIk6xHa.js +0 -1
  24. package/build/assets/api-D1AUDaGk.js +0 -1
  25. package/build/assets/embed-BiH-YCjQ.js +0 -1461
  26. package/build/assets/lib-Co-0V6DV.js +0 -71
  27. package/build/assets/lib-account-zcRp2Stn.js +0 -2
  28. package/build/assets/lib-api-MaBk5T3E.js +0 -2
  29. package/build/assets/worker-BwFHZ688.js +0 -1
@@ -0,0 +1,2 @@
1
+ import { n as e } from "./lib-account-CnUKCNw7.js";
2
+ export { e as onChange };
@@ -1,4 +1,4 @@
1
- import { i as e, s as t, t as n } from "./lib-api-BdTgLphT-DSr8Qbeb.js";
1
+ import { i as e, s as t, t as n } from "./lib-api-CtiKFcK3-lXOtBAbs.js";
2
2
  //#region node_modules/@fkn/lib/rolldown-runtime-Dy4uBu1J.js
3
3
  var r = Object.defineProperty, i = (e, t) => {
4
4
  let n = {};
@@ -13,7 +13,7 @@ var r = Object.defineProperty, i = (e, t) => {
13
13
  logout: () => s,
14
14
  onChange: () => p
15
15
  }), o = async () => typeof window > "u" ? !1 : (await e).account.login(location.origin).catch(() => !1), s = async () => {
16
- typeof window > "u" || await (await e).account.logout().catch(() => {});
16
+ typeof window < "u" && await (await e).account.logout().catch(() => {});
17
17
  }, c = async () => {
18
18
  if (typeof window > "u") return null;
19
19
  let t = await e.then((e) => e.account.info()).catch(() => null);
@@ -29,7 +29,7 @@ var r = Object.defineProperty, i = (e, t) => {
29
29
  } catch {}
30
30
  }, d = 0, f = () => {
31
31
  let e = t();
32
- !e || l.size === 0 || d === e.epoch || (d = e.epoch, Promise.resolve(e.remote.account.onChange(u)).catch(() => {
32
+ e && l.size !== 0 && d !== e.epoch && (d = e.epoch, Promise.resolve(e.remote.account.onChange(u)).catch(() => {
33
33
  d === e.epoch && (d = 0);
34
34
  }));
35
35
  };
@@ -0,0 +1,2 @@
1
+ import { i as e, t } from "./lib-api-CtiKFcK3-lXOtBAbs.js";
2
+ export { e as apiPromise, t as onApiEpoch };
@@ -1976,7 +1976,7 @@ var e = Object.defineProperty, t = (t, n) => {
1976
1976
  let e = Ai(X), t = Ui(Gi, e);
1977
1977
  t && Fi(X, t, e);
1978
1978
  }, Ji = (e) => {
1979
- typeof ResizeObserver > "u" || (Ki ??= new ResizeObserver(qi), Ki.disconnect(), Ki.observe(e));
1979
+ typeof ResizeObserver < "u" && (Ki ??= new ResizeObserver(qi), Ki.disconnect(), Ki.observe(e));
1980
1980
  }, Yi = (e) => {
1981
1981
  hi(e), Fi(e, {
1982
1982
  modal: !1,