@fkn/lib 0.9.24 → 0.9.25

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 (121) hide show
  1. package/account.cjs +1 -1
  2. package/account.d.ts +7 -3
  3. package/account.js +7 -7
  4. package/api-BCJO3EWi.cjs +3 -0
  5. package/api-CesI0aMl.d.ts +677 -0
  6. package/{api-Jq4OSTp1.js → api-DLvscoll.js} +99 -96
  7. package/api.cjs +1 -0
  8. package/api.d.ts +3 -0
  9. package/api.js +2 -0
  10. package/attach-policy.cjs +1 -0
  11. package/attach-policy.d.ts +35 -0
  12. package/attach-policy.js +43 -0
  13. package/{busy-Bp1E3JPT.js → busy-B189uX--.js} +1 -1
  14. package/cloud/dgram.cjs +1 -1
  15. package/cloud/dgram.js +2 -2
  16. package/cloud/dns.d.ts +1 -1
  17. package/cloud/fetch.cjs +1 -1
  18. package/cloud/fetch.d.ts +1 -1
  19. package/cloud/fetch.js +1 -1
  20. package/cloud/fs/promises.d.ts +7 -6
  21. package/cloud/fs/promises.js +1 -1
  22. package/cloud/fs.cjs +1 -1
  23. package/cloud/fs.d.ts +3 -3
  24. package/cloud/fs.js +10 -9
  25. package/cloud/net.cjs +1 -1
  26. package/cloud/net.d.ts +1 -1
  27. package/cloud/net.js +3 -3
  28. package/cloud-B2ZG-0MF.cjs +1 -0
  29. package/cloud-B7pI3pp1.d.ts +37 -0
  30. package/{cloud-7rfQ2BRH.js → cloud-DolBoNvR.js} +59 -97
  31. package/cloud.cjs +1 -1
  32. package/cloud.d.ts +4 -4
  33. package/cloud.js +4 -4
  34. package/{connect-button-Ds9KpXHe.js → connect-button-CN4ZJwT6.js} +1 -1
  35. package/{connect-button-D8KXSL6s.d.ts → connect-button-DdoEikEd.d.ts} +1 -1
  36. package/contract-D6ksmIm6.d.ts +394 -0
  37. package/contract.cjs +0 -0
  38. package/contract.d.ts +3 -0
  39. package/contract.js +0 -0
  40. package/desktop.js +1 -1
  41. package/dgram.cjs +1 -1
  42. package/dgram.d.ts +6 -47
  43. package/dgram.js +406 -2
  44. package/dns.cjs +1 -1
  45. package/dns.d.ts +1 -3
  46. package/dns.js +2 -2
  47. package/extension-CJUeVRXf.d.ts +361 -0
  48. package/extension-DBazc3ff.cjs +1 -0
  49. package/extension-Dw9gzvei.js +84 -0
  50. package/extension.cjs +1 -1
  51. package/extension.d.ts +3 -3
  52. package/extension.js +3 -3
  53. package/fs/promises.cjs +1 -1
  54. package/fs/promises.d.ts +8 -9
  55. package/fs/promises.js +2 -2
  56. package/fs-DYP7utdw.cjs +1 -0
  57. package/{fs-CUmugp10.d.ts → fs-DlGE0ZNu.d.ts} +20 -21
  58. package/{fs-pOQSZfuf.js → fs-d2ANVBkm.js} +8 -8
  59. package/fs.cjs +1 -1
  60. package/fs.d.ts +2 -2
  61. package/fs.js +1 -1
  62. package/http.cjs +3 -3
  63. package/http.d.ts +4 -6
  64. package/http.js +8 -8
  65. package/{index-CJ0vHTcS.d.ts → index-BQgZVQl7.d.ts} +4 -7
  66. package/{index-DY8WjklJ.d.ts → index-BhO-wymH.d.ts} +15 -293
  67. package/{index-BIZeEsNu.d.ts → index-CGJTVju4.d.ts} +52 -46
  68. package/index.cjs +1 -1
  69. package/index.d.ts +12 -13
  70. package/index.js +61 -59
  71. package/lib-DLM2M3_i.cjs +53 -0
  72. package/{lib-k3lstfa4.js → lib-duLPF_WZ.js} +328 -277
  73. package/messages-DvpKMTsY.d.ts +28 -0
  74. package/messages.cjs +1 -0
  75. package/messages.d.ts +2 -0
  76. package/messages.js +4 -0
  77. package/{net-DaWv81tQ.d.ts → net-DAOcF3Eb.d.ts} +12 -16
  78. package/net.cjs +1 -1
  79. package/net.d.ts +1 -1
  80. package/net.js +318 -3
  81. package/{node-fs-BZCQUmeE.js → node-fs-C9ECR_9H.js} +2 -2
  82. package/opfs/promises.d.ts +7 -8
  83. package/opfs/promises.js +1 -1
  84. package/{opfs-BibrNGF0.js → opfs-D0goLAQW.js} +1 -1
  85. package/opfs.d.ts +24 -26
  86. package/opfs.js +3 -3
  87. package/package.json +27 -2
  88. package/packages.cjs +1 -1
  89. package/packages.d.ts +143 -2
  90. package/packages.js +15 -15
  91. package/{proxy-DmMu2_1z.d.ts → proxy-BubvP9sg.d.ts} +3 -3
  92. package/{proxy-BNdvRifw.cjs → proxy-CefKCs-i.cjs} +1 -1
  93. package/{proxy-CRbkWS4E.js → proxy-KUfE4cEQ.js} +3 -3
  94. package/react.d.ts +3 -7
  95. package/react.js +2 -2
  96. package/{storage-BNjLc1FV.js → storage-BjGr_vC4.js} +5 -5
  97. package/storage-DLB4ciMf.cjs +1 -0
  98. package/utils-BvgGdrgN.cjs +1 -0
  99. package/{utils-DVlbuXmW.js → utils-C-cAd4r4.js} +2 -3
  100. package/wire-Gbo-D74t.d.ts +91 -0
  101. package/wire.cjs +1 -0
  102. package/wire.d.ts +2 -0
  103. package/wire.js +4 -0
  104. package/api-BGYSJVvR.d.ts +0 -789
  105. package/api-C-TpWHAU.cjs +0 -3
  106. package/cloud-BqjwL5KM.cjs +0 -1
  107. package/cloud-DMTkzfcf.d.ts +0 -36
  108. package/dgram-BLN-mfgq.cjs +0 -1
  109. package/dgram-DHQcHefn.js +0 -405
  110. package/extension-B8Y0sUwC.js +0 -78
  111. package/extension-CMPZjuaV.d.ts +0 -16
  112. package/extension-CgSGjcSl.cjs +0 -1
  113. package/fs-BNnozBMU.cjs +0 -1
  114. package/lib-DbiVHPXE.cjs +0 -53
  115. package/lookup-BtwWaCZJ.d.ts +0 -7
  116. package/net-B6RHtWwe.cjs +0 -1
  117. package/net-yBkobZqK.js +0 -317
  118. package/packages-Cn8S-Hkn.d.ts +0 -217
  119. package/storage-qxXFLgTM.d.ts +0 -44
  120. package/storage-xAeRQQiz.cjs +0 -1
  121. package/utils-QfNXtEhb.cjs +0 -1
@@ -0,0 +1,37 @@
1
+ import { t as cloudFetch } from "./proxy-BubvP9sg.js";
2
+ import { i as Frame, r as AttachFrameOptions } from "./index-BhO-wymH.js";
3
+ import { t as dns_d_exports } from "./dns.js";
4
+ import { n as fs_d_exports } from "./fs-DlGE0ZNu.js";
5
+ import { s as net_d_exports } from "./net-DAOcF3Eb.js";
6
+ import { t as dgram_d_exports } from "./dgram.js";
7
+ import { t as http_d_exports } from "./http.js";
8
+ //#region src/cloud/frame.d.ts
9
+ declare const attachFrame: ({ iframe, domains, syncCookies, lockdown }: AttachFrameOptions) => Promise<Frame>;
10
+ //#endregion
11
+ //#region src/quota.d.ts
12
+ type QuotaStatus = {
13
+ /** the user has a paid subscription, throttle never applies */
14
+ premium: boolean;
15
+ /** today's free-tier volume is spent (true even for premium, see `throttled`) */
16
+ overQuota: boolean;
17
+ /** transfers are actually being rate-limited right now (overQuota and not premium) */
18
+ throttled: boolean;
19
+ /** bytes egressed through FKN relays today (per connected account or anonymized IP), saturates at limitBytes:
20
+ * consumption past the free-tier volume is private and never reported */
21
+ usedBytes: number;
22
+ /** free-tier daily volume before throttling kicks in */
23
+ limitBytes: number;
24
+ /** bytes of free-tier volume left today */
25
+ remainingBytes: number;
26
+ /** current effective egress rate cap, bytes per second */
27
+ bytesPerSecond: number;
28
+ /** current effective egress rate cap, bits per second (for display) */
29
+ bitsPerSecond: number;
30
+ };
31
+ declare const quota: () => Promise<QuotaStatus>;
32
+ declare namespace cloud_d_exports {
33
+ export { QuotaStatus, attachFrame, available, dgram_d_exports as dgram, dns_d_exports as dns, cloudFetch as fetch, fs_d_exports as fs, http_d_exports as http, net_d_exports as net, quota };
34
+ }
35
+ declare const available: () => boolean;
36
+ //#endregion
37
+ export { attachFrame as a, quota as i, cloud_d_exports as n, QuotaStatus as r, available as t };
@@ -1,73 +1,35 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { R as t, _ as n, a as r, f as i, m as a, s as o } from "./lib-k3lstfa4.js";
3
- import { i as s, t as c } from "./api-Jq4OSTp1.js";
4
- import { t as l } from "./busy-Bp1E3JPT.js";
5
- import { t as u } from "./proxy-CRbkWS4E.js";
6
- import { t as d } from "./dns.js";
7
- import { t as f } from "./cloud/fs.js";
8
- import { s as p } from "./net-yBkobZqK.js";
9
- import { i as m } from "./dgram-DHQcHefn.js";
10
- import { t as h } from "./http.js";
11
- import { expose as g } from "osra";
12
- //#region node_modules/@mfkn/web-extension/lib/lib/locator-permissions.js
13
- var _ = {
2
+ import { W as t, a as n, d as r, m as i, s as a, u as o } from "./lib-duLPF_WZ.js";
3
+ import { a as s, c } from "./api-DLvscoll.js";
4
+ import { t as l } from "./busy-B189uX--.js";
5
+ import { t as u } from "./proxy-KUfE4cEQ.js";
6
+ import { frameFetchVerdict as d, normalizeDeclaredHosts as f } from "./attach-policy.js";
7
+ import { t as p } from "./dns.js";
8
+ import { t as m } from "./cloud/fs.js";
9
+ import { t as h } from "./net.js";
10
+ import { t as g } from "./dgram.js";
11
+ import { t as _ } from "./http.js";
12
+ import { expose as v } from "osra";
13
+ //#region ../web-extension/lib/lib/locator-permissions.js
14
+ var y = {
14
15
  scope: "frame.fetchRead",
15
16
  category: "network",
16
17
  severity: 3,
17
18
  unsafe: !0,
18
19
  title: "Read your account data on this site",
19
20
  description: "Lets the app read pages and data from this site as you, using the session in the frame."
20
- }, v = {
21
+ }, b = {
21
22
  scope: "frame.fetchWrite",
22
23
  category: "network",
23
24
  severity: 3,
24
25
  unsafe: !0,
25
26
  title: "Change your account data on this site",
26
27
  description: "Lets the app send changes to this site as you, using the session in the frame."
27
- }, y = /* @__PURE__ */ new Set([
28
+ }, x = /* @__PURE__ */ new Set([
28
29
  "GET",
29
30
  "HEAD",
30
31
  "OPTIONS"
31
- ]), b = (e, t) => y.has((t?.method ?? "GET").toUpperCase()) ? _ : v, x = (e) => {
32
- let t = [];
33
- for (let n of e) {
34
- let e = n.trim().toLowerCase();
35
- !e || e.length > 253 || /^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/.test(e) && (t.includes(e) || t.push(e));
36
- }
37
- return t;
38
- }, S = (e, t) => {
39
- if (!e.session) return {
40
- kind: "refuse",
41
- reason: "frame.fetch on the cloud backend needs its own session: attach with syncCookies: false"
42
- };
43
- if (typeof t != "string") return {
44
- kind: "refuse",
45
- reason: "frame.fetch: url must be a string"
46
- };
47
- let n;
48
- try {
49
- n = new URL(t);
50
- } catch {
51
- return {
52
- kind: "refuse",
53
- reason: "frame.fetch on the cloud backend needs an absolute url"
54
- };
55
- }
56
- if (n.protocol !== "https:" && n.protocol !== "http:") return {
57
- kind: "refuse",
58
- reason: "frame.fetch: only http(s) urls are supported"
59
- };
60
- if (!(e.declaredHosts.includes(n.hostname) || e.approvedOrigins.has(n.origin))) return {
61
- kind: "refuse",
62
- reason: "frame.fetch: the target is outside the origins this attachment declared"
63
- };
64
- let r = e.declaredHosts.length ? e.declaredHosts : [n.hostname];
65
- return {
66
- kind: "consent",
67
- targetHost: n.hostname,
68
- promptHosts: r
69
- };
70
- }, C = (e) => e, w = "autoplay; fullscreen; encrypted-media; picture-in-picture; clipboard-read; clipboard-write", T = 2e4, E = 65e3, D = 3e4, O = 5e3, k = /* @__PURE__ */ new Set([]), A = () => "https://fkn.app", j = (e) => !e || e === "about:blank", M = (e) => e ? "" : `incognito-${crypto.randomUUID()}`, N = ({ target: e, session: t, domains: n }) => {
32
+ ]), S = (e, t) => x.has((t?.method ?? "GET").toUpperCase()) ? y : b, C = (e) => e, w = "autoplay; fullscreen; encrypted-media; picture-in-picture; clipboard-read; clipboard-write", T = 2e4, E = 65e3, D = 3e4, O = 5e3, k = /* @__PURE__ */ new Set([]), A = () => "https://fkn.app", j = (e) => !e || e === "about:blank", M = (e) => e ? "" : `incognito-${crypto.randomUUID()}`, N = ({ target: e, session: t, domains: n }) => {
71
33
  let r = new URL("/attach-frame", A());
72
34
  return e && r.searchParams.set("url", e), t && r.searchParams.set("session", t), n.length && r.searchParams.set("domains", n.join(",")), r.href;
73
35
  }, P = (e, t, n) => {
@@ -84,7 +46,7 @@ var _ = {
84
46
  window.removeEventListener("pagehide", n), i.disconnect();
85
47
  };
86
48
  window.addEventListener("pagehide", n, { once: !0 }), r && i.observe(r, { childList: !0 }), e.isConnected || (a(), t());
87
- }, I = () => Object.assign(/* @__PURE__ */ Error("cloud.attachFrame: the attached iframe left the document or was reloaded; attach a fresh iframe"), { name: a }), L = (e, t) => {
49
+ }, I = () => Object.assign(/* @__PURE__ */ Error("cloud.attachFrame: the attached iframe left the document or was reloaded; attach a fresh iframe"), { name: o }), L = (e, t) => {
88
50
  let n = [...e.split(";"), ...t.split(";")].map((e) => e.trim()).filter(Boolean);
89
51
  return [...new Set(n)].join("; ");
90
52
  }, R = [
@@ -106,87 +68,87 @@ var _ = {
106
68
  if (t === null) return;
107
69
  let n = new Set(t.toLowerCase().split(/\s+/).filter(Boolean)), r = ["allow-scripts", "allow-same-origin"].filter((e) => !n.has(e));
108
70
  if (r.length) throw Error(`cloud.attachFrame: the iframe's sandbox attribute must include ${r.join(" and ")} for the render proxy to load`);
109
- }, V = async ({ iframe: e, domains: a = [], syncCookies: s = !0, lockdown: u = !1 }) => {
71
+ }, V = async ({ iframe: e, domains: o = [], syncCookies: c = !0, lockdown: u = !1 }) => {
110
72
  if (typeof window > "u") throw Error("cloud.attachFrame needs a window realm");
111
73
  if (u) throw Error("cloud.attachFrame does not support lockdown; use the extension backend for a sealed frame");
112
74
  if (!e.isConnected) throw Error("cloud.attachFrame: the iframe must be connected to the document before attaching");
113
75
  B(e);
114
- let d = e.getAttribute("src") ?? "", f = (() => {
115
- if (j(d)) return null;
76
+ let p = e.getAttribute("src") ?? "", m = (() => {
77
+ if (j(p)) return null;
116
78
  try {
117
- return new URL(e.src || d, location.href);
79
+ return new URL(e.src || p, location.href);
118
80
  } catch {
119
- throw Error(`cloud.attachFrame: the iframe src is not a valid URL: ${d}`);
81
+ throw Error(`cloud.attachFrame: the iframe src is not a valid URL: ${p}`);
120
82
  }
121
83
  })();
122
- if (f) {
84
+ if (m) {
123
85
  let e = new URL("/attach-frame", A());
124
- if (f.origin === e.origin && f.pathname === e.pathname) throw Error("cloud.attachFrame: this iframe is already attached; navigate with the Frame returned by that attach or use a fresh iframe");
86
+ if (m.origin === e.origin && m.pathname === e.pathname) throw Error("cloud.attachFrame: this iframe is already attached; navigate with the Frame returned by that attach or use a fresh iframe");
125
87
  }
126
- let p = f?.href ?? "";
127
- p && o(p);
128
- let m = p, h = M(s), _ = x(a), v = /* @__PURE__ */ new Set();
88
+ let h = m?.href ?? "";
89
+ h && a(h);
90
+ let g = h, _ = M(c), y = f(o), b = /* @__PURE__ */ new Set();
129
91
  try {
130
- v.add(new URL(p).origin);
92
+ b.add(new URL(h).origin);
131
93
  } catch {}
132
- let y = new AbortController(), R = e.referrerPolicy, V = e.allow;
94
+ let x = new AbortController(), R = e.referrerPolicy, V = e.allow;
133
95
  if (e.referrerPolicy = "origin", e.allow = L(w, e.allow), e.src = N({
134
- target: p,
135
- session: h,
136
- domains: _
96
+ target: h,
97
+ session: _,
98
+ domains: y
137
99
  }), !e.contentWindow) throw Error("cloud.attachFrame: the iframe window is not available");
138
100
  try {
139
- let a = await P(g({}, {
101
+ let a = await P(v({}, {
140
102
  key: "fkn-attach-frame",
141
103
  origin: A(),
142
104
  transport: {
143
105
  receive: window,
144
106
  emit: e.contentWindow
145
107
  },
146
- unregisterSignal: y.signal,
108
+ unregisterSignal: x.signal,
147
109
  revivableModules: C(t)
148
110
  }), T, "cloud.attachFrame: timed out connecting to the render proxy page");
149
- await P(a.ready(), E, "cloud.attachFrame: the render proxy never became ready"), p && z(e), F(e, () => y.abort());
111
+ await P(a.ready(), E, "cloud.attachFrame: the render proxy never became ready"), h && z(e), F(e, () => x.abort());
150
112
  let o = l("attached frame");
151
- y.signal.aborted ? o() : y.signal.addEventListener("abort", o, { once: !0 });
152
- let s = e.contentWindow, u = () => {
153
- if (!(!y.signal.aborted && e.isConnected && e.contentWindow === s)) throw y.abort(), I();
113
+ x.signal.aborted ? o() : x.signal.addEventListener("abort", o, { once: !0 });
114
+ let c = e.contentWindow, u = () => {
115
+ if (!(!x.signal.aborted && e.isConnected && e.contentWindow === c)) throw x.abort(), I();
154
116
  };
155
- return r({
117
+ return n({
156
118
  executor: {
157
- execute: (e, t, n) => k.has(t) ? Promise.reject(i(t, "cloud")) : (u(), a.executeLocator(e, t, n)),
119
+ execute: (e, t, n) => k.has(t) ? Promise.reject(r(t, "cloud")) : (u(), a.executeLocator(e, t, n)),
158
120
  highlight: async () => {}
159
121
  },
160
122
  gate: async (e) => {
161
123
  if (e.operation !== "fetch") return;
162
- let t = S({
163
- session: h,
164
- declaredHosts: _,
165
- approvedOrigins: v
124
+ let t = d({
125
+ session: _,
126
+ declaredHosts: y,
127
+ approvedOrigins: b
166
128
  }, e.args[0]);
167
- if (t.kind === "refuse") throw n(t.reason, "fetch");
168
- if (!await (await c).frameConsent.ensure({
169
- scope: b(e.args[0], e.args[1]).scope,
129
+ if (t.kind === "refuse") throw i(t.reason, "fetch");
130
+ if (!await (await s).frameConsent.ensure({
131
+ scope: S(e.args[0], e.args[1]).scope,
170
132
  hosts: t.promptHosts
171
- })) throw n("frame.fetch: the user did not grant this", "fetch");
133
+ })) throw i("frame.fetch: the user did not grant this", "fetch");
172
134
  },
173
135
  goto: async (t, n = {}) => {
174
136
  let r = new URL(t, location.href).href;
175
137
  u();
176
138
  let { timeoutMs: i } = n;
177
- await P(a.goto(r, n), (i ?? D) + O, "cloud.attachFrame: the render proxy did not answer goto; the frame may have been detached or its page reloaded"), m = r;
139
+ await P(a.goto(r, n), (i ?? D) + O, "cloud.attachFrame: the render proxy did not answer goto; the frame may have been detached or its page reloaded"), g = r;
178
140
  try {
179
- v.add(new URL(r).origin);
141
+ b.add(new URL(r).origin);
180
142
  } catch {}
181
143
  z(e);
182
144
  },
183
- url: () => m
145
+ url: () => g
184
146
  });
185
147
  } catch (t) {
186
- throw y.abort(), e.referrerPolicy = R, e.allow = V, e.src = p || "about:blank", t;
148
+ throw x.abort(), e.referrerPolicy = R, e.allow = V, e.src = h || "about:blank", t;
187
149
  }
188
150
  }, H = () => typeof window < "u" && !0, U = async () => {
189
- let e = await c.then((e) => e.cloud.quota());
151
+ let e = await s.then((e) => e.cloud.quota());
190
152
  return {
191
153
  premium: e.premium,
192
154
  overQuota: e.overQuota,
@@ -200,13 +162,13 @@ var _ = {
200
162
  }, W = /* @__PURE__ */ e({
201
163
  attachFrame: () => V,
202
164
  available: () => G,
203
- dgram: () => m,
204
- dns: () => d,
165
+ dgram: () => g,
166
+ dns: () => p,
205
167
  fetch: () => u,
206
- fs: () => f,
207
- http: () => h,
208
- net: () => p,
168
+ fs: () => m,
169
+ http: () => _,
170
+ net: () => h,
209
171
  quota: () => U
210
- }), G = () => s;
172
+ }), G = () => c;
211
173
  //#endregion
212
174
  export { H as a, V as i, W as n, U as r, G as t };
package/cloud.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./proxy-BNdvRifw.cjs"),t=require("./cloud-BqjwL5KM.cjs"),n=require("./dns.cjs"),r=require("./cloud/fs.cjs"),i=require("./net-B6RHtWwe.cjs"),a=require("./dgram-BLN-mfgq.cjs"),o=require("./http.cjs");exports.attachFrame=t.i,exports.available=t.t,Object.defineProperty(exports,"dgram",{enumerable:!0,get:function(){return a.i}}),Object.defineProperty(exports,"dns",{enumerable:!0,get:function(){return n.t}}),exports.fetch=e.t,Object.defineProperty(exports,"fs",{enumerable:!0,get:function(){return r.t}}),Object.defineProperty(exports,"http",{enumerable:!0,get:function(){return o.t}}),Object.defineProperty(exports,"net",{enumerable:!0,get:function(){return i.s}}),exports.quota=t.r;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./proxy-CefKCs-i.cjs"),t=require("./cloud-B2ZG-0MF.cjs"),n=require("./dns.cjs"),r=require("./cloud/fs.cjs"),i=require("./net.cjs"),a=require("./dgram.cjs"),o=require("./http.cjs");exports.attachFrame=t.i,exports.available=t.t,Object.defineProperty(exports,"dgram",{enumerable:!0,get:function(){return a.t}}),Object.defineProperty(exports,"dns",{enumerable:!0,get:function(){return n.t}}),exports.fetch=e.t,Object.defineProperty(exports,"fs",{enumerable:!0,get:function(){return r.t}}),Object.defineProperty(exports,"http",{enumerable:!0,get:function(){return o.t}}),Object.defineProperty(exports,"net",{enumerable:!0,get:function(){return i.t}}),exports.quota=t.r;
package/cloud.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { t as cloudFetch } from "./proxy-DmMu2_1z.js";
2
- import { a as attachFrame, i as quota, r as QuotaStatus, t as available } from "./cloud-DMTkzfcf.js";
1
+ import { t as cloudFetch } from "./proxy-BubvP9sg.js";
2
+ import { a as attachFrame, i as quota, r as QuotaStatus, t as available } from "./cloud-B7pI3pp1.js";
3
3
  import { t as dns_d_exports } from "./dns.js";
4
- import { n as fs_d_exports } from "./fs-CUmugp10.js";
5
- import { s as net_d_exports } from "./net-DaWv81tQ.js";
4
+ import { n as fs_d_exports } from "./fs-DlGE0ZNu.js";
5
+ import { s as net_d_exports } from "./net-DAOcF3Eb.js";
6
6
  import { t as dgram_d_exports } from "./dgram.js";
7
7
  import { t as http_d_exports } from "./http.js";
8
8
  export { type QuotaStatus, attachFrame, available, dgram_d_exports as dgram, dns_d_exports as dns, cloudFetch as fetch, fs_d_exports as fs, http_d_exports as http, net_d_exports as net, quota };
package/cloud.js CHANGED
@@ -1,8 +1,8 @@
1
- import { t as e } from "./proxy-CRbkWS4E.js";
2
- import { i as t, r as n, t as r } from "./cloud-7rfQ2BRH.js";
1
+ import { t as e } from "./proxy-KUfE4cEQ.js";
2
+ import { i as t, r as n, t as r } from "./cloud-DolBoNvR.js";
3
3
  import { t as i } from "./dns.js";
4
4
  import { t as a } from "./cloud/fs.js";
5
- import { s as o } from "./net-yBkobZqK.js";
6
- import { i as s } from "./dgram-DHQcHefn.js";
5
+ import { t as o } from "./net.js";
6
+ import { t as s } from "./dgram.js";
7
7
  import { t as c } from "./http.js";
8
8
  export { t as attachFrame, r as available, s as dgram, i as dns, e as fetch, a as fs, c as http, o as net, n as quota };
@@ -1,4 +1,4 @@
1
- //#region src/lib/connect-button.ts
1
+ //#region src/connect-button.ts
2
2
  var e = "https://fkn.app", t = (t) => {
3
3
  let n = t ?? (typeof location < "u" ? location.origin : void 0);
4
4
  return n ? `${e}/connect-button?origin=${encodeURIComponent(n)}` : `${e}/connect-button`;
@@ -1,4 +1,4 @@
1
- //#region src/lib/connect-button.d.ts
1
+ //#region src/connect-button.d.ts
2
2
  declare const connectButtonUrl: (origin?: string) => string;
3
3
  //#endregion
4
4
  export { connectButtonUrl as t };