@banou/stub 0.0.24 → 0.0.26

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 (44) hide show
  1. package/build/assets/account-BENsgVNM.js +1 -0
  2. package/build/assets/account-DlIk6xHa.js +1 -0
  3. package/build/assets/api-BdTgLphT-N3l6mbjo.js +3 -0
  4. package/build/assets/api-D1AUDaGk.js +1 -0
  5. package/build/assets/build-CQLpK1BK.js +1 -0
  6. package/build/assets/embed-BiH-YCjQ.js +1461 -0
  7. package/build/assets/index-js0hDSG0.js +2126 -0
  8. package/build/assets/lib-Co-0V6DV.js +71 -0
  9. package/build/assets/{lib-account-DncELSPq.js → lib-account-BUymp__o.js} +12 -12
  10. package/build/assets/lib-account-zcRp2Stn.js +2 -0
  11. package/build/assets/{lib-api-BdTgLphT-CAZBNIQ5.js → lib-api-BdTgLphT-DSr8Qbeb.js} +353 -367
  12. package/build/assets/lib-api-MaBk5T3E.js +2 -0
  13. package/build/assets/{lib-rolldown-runtime-B1bRi_D7.js → lib-rolldown-runtime-Cb76FRpK.js} +2 -2
  14. package/build/assets/{lib-worker-0qYIS3eh.js → lib-worker-BGozEgr9.js} +148 -140
  15. package/build/assets/{lib-worker-Cv77f0ZX.js → lib-worker-GYQJyD7j.js} +1 -1
  16. package/build/assets/lib-worker-index-B4F7kvUH.js +2126 -0
  17. package/build/assets/main-BmWUQYUk.js +3844 -0
  18. package/build/assets/main-CSyC6ryz.css +1 -0
  19. package/build/assets/remote-CVVOdyaq.js +1 -0
  20. package/build/assets/remote-VQoP8ehb.js +1 -0
  21. package/build/assets/uri-DvH8-88e.js +1 -0
  22. package/build/assets/{worker-BCl_Bm_R.js → worker-BwFHZ688.js} +1 -1
  23. package/build/assets/{worker-BsQDcd-k.js → worker-CT1T8vTt.js} +1 -1
  24. package/build/embed.html +8 -39
  25. package/build/index.html +9 -9
  26. package/build/index.js +2664 -2655
  27. package/fkn.json +1 -0
  28. package/package.json +9 -6
  29. package/build/assets/account-B0kxAr97.js +0 -1
  30. package/build/assets/account-DjnuxpAV.js +0 -1
  31. package/build/assets/api-BdTgLphT-QGKmIqNg.js +0 -3
  32. package/build/assets/api-DsRXk6Ul.js +0 -1
  33. package/build/assets/build-BuC_lDPE.js +0 -1
  34. package/build/assets/embed-k24RBb_R.js +0 -1461
  35. package/build/assets/index-CPsp3E-B.js +0 -1964
  36. package/build/assets/lib-BqoXHewM.js +0 -71
  37. package/build/assets/lib-account-cGGxEwWz.js +0 -2
  38. package/build/assets/lib-api-Bi9f-0mj.js +0 -2
  39. package/build/assets/lib-worker-index-rcCwnCgE.js +0 -1964
  40. package/build/assets/main-BOObvcfb.js +0 -3844
  41. package/build/assets/main-DZ0Ws1xk.css +0 -1
  42. package/build/assets/remote-CW2xewp5.js +0 -1
  43. package/build/assets/remote-DNcNpuT3.js +0 -1
  44. package/build/assets/uri-BYw9k-7q.js +0 -1
@@ -1,4 +1,4 @@
1
- import { c as e, i as t, t as n } from "./lib-api-BdTgLphT-CAZBNIQ5.js";
1
+ import { i as e, s as t, t as n } from "./lib-api-BdTgLphT-DSr8Qbeb.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 = {};
@@ -12,25 +12,25 @@ var r = Object.defineProperty, i = (e, t) => {
12
12
  login: () => o,
13
13
  logout: () => s,
14
14
  onChange: () => p
15
- }), o = async () => typeof window > "u" ? !1 : (await t).account.login(location.origin).catch(() => !1), s = async () => {
16
- typeof window > "u" || await (await t).account.logout().catch(() => {});
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(() => {});
17
17
  }, c = async () => {
18
18
  if (typeof window > "u") return null;
19
- let e = await t.then((e) => e.account.info()).catch(() => null);
20
- return e ? {
21
- name: e.name,
22
- image: e.image,
23
- premium: e.premium,
24
- premiumUntil: e.premiumUntil ? Date.parse(e.premiumUntil) : null
19
+ let t = await e.then((e) => e.account.info()).catch(() => null);
20
+ return t ? {
21
+ name: t.name,
22
+ image: t.image,
23
+ premium: t.premium,
24
+ premiumUntil: t.premiumUntil ? Date.parse(t.premiumUntil) : null
25
25
  } : null;
26
26
  }, l = /* @__PURE__ */ new Set(), u = () => {
27
27
  for (let e of [...l]) try {
28
28
  e();
29
29
  } catch {}
30
30
  }, d = 0, f = () => {
31
- let t = e();
32
- !t || l.size === 0 || d === t.epoch || (d = t.epoch, Promise.resolve(t.remote.account.onChange(u)).catch(() => {
33
- d === t.epoch && (d = 0);
31
+ let e = t();
32
+ !e || l.size === 0 || d === e.epoch || (d = e.epoch, Promise.resolve(e.remote.account.onChange(u)).catch(() => {
33
+ d === e.epoch && (d = 0);
34
34
  }));
35
35
  };
36
36
  typeof window < "u" && n(f);
@@ -0,0 +1,2 @@
1
+ import { n as e } from "./lib-account-BUymp__o.js";
2
+ export { e as onChange };