@banou/stub 0.0.41 → 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.
- package/build/assets/account-Dqz2amwB.js +1 -0
- package/build/assets/account-uIgK7-D5.js +1 -0
- package/build/assets/api-Dp-2AT3u-DnXkochq.js +3 -0
- package/build/assets/api-rrvhokeg.js +1 -0
- package/build/assets/build-mcPaLDi_.js +1 -0
- package/build/assets/embed-Dq58Zgjw.js +1609 -0
- package/build/assets/index-C09RPTYO.js +2485 -0
- package/build/assets/lib-account-BsgOxvGV.js +2 -0
- package/build/assets/lib-account-DgN_bHrt.js +51 -0
- package/build/assets/{lib-api-CtiKFcK3-lXOtBAbs.js → lib-api-Dp-2AT3u-5287Hymh.js} +576 -555
- package/build/assets/lib-api-kFj1W6Gv.js +2 -0
- package/build/assets/{lib-worker-B4OHmX_j.js → lib-worker-CWFsPxSd.js} +2046 -1785
- package/build/assets/lib-worker-RTWfVDSm.js +2 -0
- package/build/assets/lib-worker-index-QCwdkNNi.js +2485 -0
- package/build/assets/login-window-BippQvfb.js +71 -0
- package/build/assets/main-Dh0CtXj9.js +4253 -0
- package/build/assets/remote-BwnfCi4M.js +1 -0
- package/build/assets/{remote-CVVOdyaq.js → remote-CAlKhZLk.js} +1 -1
- package/build/assets/worker-BuIMw0JP.js +1 -0
- package/build/assets/worker-DOci0z8U.js +1 -0
- package/build/embed.html +6 -6
- package/build/index.html +7 -7
- package/build/index.js +6163 -5672
- package/fkn.json +1 -1
- package/package.json +2 -2
- package/build/assets/account-BgpTCUUd.js +0 -1
- package/build/assets/account-wP7U-PeH.js +0 -1
- package/build/assets/api-Bh_MpFDA.js +0 -1
- package/build/assets/api-CtiKFcK3-DDpRQueA.js +0 -3
- package/build/assets/build-CQLpK1BK.js +0 -1
- package/build/assets/embed-RgFLu0KO.js +0 -1609
- package/build/assets/index-BUq6NMlf.js +0 -2452
- package/build/assets/lib-account-CF0gclnF.js +0 -2
- package/build/assets/lib-account-CnUKCNw7.js +0 -41
- package/build/assets/lib-api-BdPC6S5P.js +0 -2
- package/build/assets/lib-worker-BnZbDGep.js +0 -2
- package/build/assets/lib-worker-index-AIemqYnG.js +0 -2452
- package/build/assets/login-window-DvC5E0QJ.js +0 -71
- package/build/assets/main-zzGENRmk.js +0 -4204
- package/build/assets/remote-VQoP8ehb.js +0 -1
- package/build/assets/worker-BssCNlEj.js +0 -1
- package/build/assets/worker-sQ3j5_iL.js +0 -1
|
@@ -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 { 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-B4OHmX_j.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 };
|