@banou/stub 0.0.40 → 0.0.42

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 (42) hide show
  1. package/build/assets/account-Dqz2amwB.js +1 -0
  2. package/build/assets/account-uIgK7-D5.js +1 -0
  3. package/build/assets/api-Dp-2AT3u-DnXkochq.js +3 -0
  4. package/build/assets/api-rrvhokeg.js +1 -0
  5. package/build/assets/build-mcPaLDi_.js +1 -0
  6. package/build/assets/embed-Dq58Zgjw.js +1609 -0
  7. package/build/assets/index-C09RPTYO.js +2485 -0
  8. package/build/assets/lib-account-BsgOxvGV.js +2 -0
  9. package/build/assets/lib-account-DgN_bHrt.js +51 -0
  10. package/build/assets/{lib-api-CtiKFcK3-lXOtBAbs.js → lib-api-Dp-2AT3u-5287Hymh.js} +576 -555
  11. package/build/assets/lib-api-kFj1W6Gv.js +2 -0
  12. package/build/assets/{lib-worker-CC8a9TDD.js → lib-worker-CWFsPxSd.js} +2720 -1946
  13. package/build/assets/lib-worker-RTWfVDSm.js +2 -0
  14. package/build/assets/lib-worker-index-QCwdkNNi.js +2485 -0
  15. package/build/assets/login-window-BippQvfb.js +71 -0
  16. package/build/assets/main-Dh0CtXj9.js +4253 -0
  17. package/build/assets/remote-BwnfCi4M.js +1 -0
  18. package/build/assets/{remote-CVVOdyaq.js → remote-CAlKhZLk.js} +1 -1
  19. package/build/assets/worker-BuIMw0JP.js +1 -0
  20. package/build/assets/worker-DOci0z8U.js +1 -0
  21. package/build/embed.html +6 -6
  22. package/build/index.html +7 -7
  23. package/build/index.js +7739 -5577
  24. package/fkn.json +1 -1
  25. package/package.json +2 -2
  26. package/build/assets/account-BgpTCUUd.js +0 -1
  27. package/build/assets/account-wP7U-PeH.js +0 -1
  28. package/build/assets/api-Bh_MpFDA.js +0 -1
  29. package/build/assets/api-CtiKFcK3-DDpRQueA.js +0 -3
  30. package/build/assets/build-CQLpK1BK.js +0 -1
  31. package/build/assets/embed-EZLj05C7.js +0 -1609
  32. package/build/assets/fetch-DAk81ulb.js +0 -71
  33. package/build/assets/index-BYXKnZ5C.js +0 -2380
  34. package/build/assets/lib-account-CF0gclnF.js +0 -2
  35. package/build/assets/lib-account-CnUKCNw7.js +0 -41
  36. package/build/assets/lib-api-BdPC6S5P.js +0 -2
  37. package/build/assets/lib-worker-BijvIwz2.js +0 -2
  38. package/build/assets/lib-worker-index-DN7VOVxv.js +0 -2380
  39. package/build/assets/main-DnKOGs5t.js +0 -4005
  40. package/build/assets/remote-VQoP8ehb.js +0 -1
  41. package/build/assets/worker-B9WbCrpk.js +0 -1
  42. package/build/assets/worker-CdIDYmal.js +0 -1
@@ -1,2 +0,0 @@
1
- import { n as e } from "./lib-account-CnUKCNw7.js";
2
- export { e as onChange };
@@ -1,41 +0,0 @@
1
- import { i as e, s as t, t as n } from "./lib-api-CtiKFcK3-lXOtBAbs.js";
2
- //#region node_modules/@fkn/lib/rolldown-runtime-Dy4uBu1J.js
3
- var r = Object.defineProperty, i = (e, t) => {
4
- let n = {};
5
- for (var i in e) r(n, i, {
6
- get: e[i],
7
- enumerable: !0
8
- });
9
- return t || r(n, Symbol.toStringTag, { value: "Module" }), n;
10
- }, a = /* @__PURE__ */ i({
11
- info: () => c,
12
- login: () => o,
13
- logout: () => s,
14
- onChange: () => p
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
- }, c = async () => {
18
- if (typeof window > "u") return 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
- } : null;
26
- }, l = /* @__PURE__ */ new Set(), u = () => {
27
- for (let e of [...l]) try {
28
- e();
29
- } catch {}
30
- }, d = 0, f = () => {
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
- }));
35
- };
36
- typeof window < "u" && n(f);
37
- var p = async (e) => typeof window > "u" ? () => {} : (l.add(e), f(), () => {
38
- l.delete(e);
39
- });
40
- //#endregion
41
- export { c as a, s as i, p as n, i as o, a as r, o as t };
@@ -1,2 +0,0 @@
1
- import { i as e, t } from "./lib-api-CtiKFcK3-lXOtBAbs.js";
2
- export { e as apiPromise, t as onApiEpoch };
@@ -1,2 +0,0 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./lib-worker-CC8a9TDD.js";
2
- export { d as exportAnswers, o as exportAsks, l as exportStore, i as graphCounts, e as handleRequest, s as registerRemoteSource, u as remotePicker, t as remotePlayer, a as selectRemoteRelease, f as setUserKeys, n as traceAnswer, r as traceGraph, c as unregisterRemoteSource };