@fkn/lib 0.9.39 → 0.9.41

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 (70) hide show
  1. package/account-generation-CSnZiN18.cjs +1 -0
  2. package/account-generation-D7TpIoKt.js +28 -0
  3. package/account.cjs +1 -1
  4. package/account.d.ts +11 -0
  5. package/account.js +5 -17
  6. package/{api-BxXnHxbd.d.ts → api-Cbty0JUM.d.ts} +15 -13
  7. package/api.d.ts +2 -2
  8. package/cloud/dns.d.ts +1 -1
  9. package/cloud/fetch.d.ts +1 -1
  10. package/cloud/fs/promises.d.ts +1 -1
  11. package/cloud/fs.cjs +1 -1
  12. package/cloud/fs.d.ts +4 -4
  13. package/cloud/fs.js +31 -24
  14. package/cloud/net.d.ts +1 -1
  15. package/{cloud-B8QYSmW3.d.ts → cloud-4t1WoEZn.d.ts} +3 -3
  16. package/{cloud-oMACx7NL.js → cloud-BLv19j-W.js} +200 -196
  17. package/cloud-D7aQY4GH.cjs +1 -0
  18. package/cloud.cjs +1 -1
  19. package/cloud.d.ts +4 -4
  20. package/cloud.js +1 -1
  21. package/{contract-sDmsw-9f.d.ts → contract-BRc2ptdC.d.ts} +33 -10
  22. package/contract.d.ts +2 -2
  23. package/dgram.d.ts +2 -2
  24. package/dns.d.ts +1 -1
  25. package/extension-B9v933cT.js +89 -0
  26. package/extension-D2zMdc2f.cjs +1 -0
  27. package/extension.cjs +1 -1
  28. package/extension.js +3 -3
  29. package/fs/promises.cjs +1 -1
  30. package/fs/promises.d.ts +1 -1
  31. package/fs/promises.js +1 -1
  32. package/fs-BTyRnUPI.cjs +1 -0
  33. package/{fs--NhtUyYa.d.ts → fs-D0MMRnHC.d.ts} +8 -4
  34. package/fs-q7Kg51hq.js +513 -0
  35. package/fs.cjs +1 -1
  36. package/fs.d.ts +4 -3
  37. package/fs.js +4 -2
  38. package/http.d.ts +1 -1
  39. package/{index-kuPqkS_-.d.ts → index-D2lvaQDs.d.ts} +28 -38
  40. package/index.cjs +1 -1
  41. package/index.d.ts +3 -3
  42. package/index.js +13 -13
  43. package/{lib-tQKlXzhv.cjs → lib-BfAg9mHD.cjs} +1 -1
  44. package/{lib-BlyFPeSv.js → lib-C4Eeg9eM.js} +2 -2
  45. package/{messages-C66ghz_A.d.ts → messages-CRcziTuC.d.ts} +17 -1
  46. package/messages.cjs +1 -1
  47. package/messages.d.ts +2 -2
  48. package/messages.js +2 -2
  49. package/{net-Qmt9L_7t.d.ts → net-CcEZP6Bb.d.ts} +2 -2
  50. package/net.d.ts +1 -1
  51. package/{node-fs-BZy9bzKd.js → node-fs-CK2wWIYS.js} +140 -137
  52. package/node-fs-nfX7wisL.cjs +1 -0
  53. package/opfs.cjs +1 -1
  54. package/opfs.js +1 -1
  55. package/package.json +1 -1
  56. package/packages.d.ts +1 -1
  57. package/{proxy-CxRQLGNG.d.ts → proxy-D6YtsO1g.d.ts} +2 -2
  58. package/rooms.d.ts +1 -1
  59. package/storage-BS5WMO4f.cjs +1 -0
  60. package/storage-BVr2Rb-d.d.ts +167 -0
  61. package/storage-BWmGrO6a.js +123 -0
  62. package/cloud-BZIJFvPF.cjs +0 -1
  63. package/extension-Bl5ZNj0d.cjs +0 -1
  64. package/extension-ChZyZgAL.js +0 -89
  65. package/fs-CaQFRiIT.cjs +0 -1
  66. package/fs-D3IsGdnN.js +0 -360
  67. package/node-fs-BNTPsX5c.cjs +0 -1
  68. package/storage-BJd-mWHE.cjs +0 -1
  69. package/storage-DSvL-t80.js +0 -67
  70. package/storage-ZrY4Y4L5.d.ts +0 -88
@@ -0,0 +1 @@
1
+ const e=require("./api-jOTOA-5n.cjs");var t=0,n=new Set,r=2e3,i=null,a=e=>{e?.switched!==!1&&(t+=1,i&&=(clearTimeout(i.timer),null));for(let e of[...n])try{e()}catch{}},o=!1,s=0,c=()=>{let t=e.s();t&&s!==t.epoch&&(s=t.epoch,Promise.resolve(t.remote.account.onChange(a)).catch(()=>{s===t.epoch&&(s=0)}))},l=()=>{!o&&e.c&&(o=!0,e.l(c))},u=()=>t,d=e=>(n.add(e),l(),()=>{n.delete(e)}),f=e=>{if(e!==t||i?.generation===e)return;let n=setTimeout(()=>{i?.timer===n&&(i=null,t===e&&a({switched:!0}))},r);i={generation:e,timer:n}};Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return u}});
@@ -0,0 +1,28 @@
1
+ import { c as e, l as t, s as n } from "./api-Dp-2AT3u.js";
2
+ //#region src/account-generation.ts
3
+ var r = 0, i = /* @__PURE__ */ new Set(), a = 2e3, o = null, s = (e) => {
4
+ e?.switched !== !1 && (r += 1, o &&= (clearTimeout(o.timer), null));
5
+ for (let e of [...i]) try {
6
+ e();
7
+ } catch {}
8
+ }, c = !1, l = 0, u = () => {
9
+ let e = n();
10
+ e && l !== e.epoch && (l = e.epoch, Promise.resolve(e.remote.account.onChange(s)).catch(() => {
11
+ l === e.epoch && (l = 0);
12
+ }));
13
+ }, d = () => {
14
+ !c && e && (c = !0, t(u));
15
+ }, f = () => r, p = (e) => (i.add(e), d(), () => {
16
+ i.delete(e);
17
+ }), m = (e) => {
18
+ if (e !== r || o?.generation === e) return;
19
+ let t = setTimeout(() => {
20
+ o?.timer === t && (o = null, r === e && s({ switched: !0 }));
21
+ }, a);
22
+ o = {
23
+ generation: e,
24
+ timer: t
25
+ };
26
+ };
27
+ //#endregion
28
+ export { p as i, d as n, m as r, f as t };
package/account.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BIInC43l.cjs"),t=require("./api-jOTOA-5n.cjs");var n=e.t({info:()=>a,login:()=>r,logout:()=>i,onChange:()=>u}),r=async()=>typeof window>`u`?!1:(await t.a).account.login(location.origin).catch(()=>!1),i=async()=>{typeof window<`u`&&await(await t.a).account.logout().catch(()=>{})},a=async()=>{if(typeof window>`u`)return null;let e=await t.a.then(e=>e.account.info()).catch(()=>null);return e?{name:e.name,image:e.image,premium:e.premium,premiumUntil:e.premiumUntil?Date.parse(e.premiumUntil):null}:null},o=new Set,s=()=>{for(let e of[...o])try{e()}catch{}},c=0,l=()=>{let e=t.s();e&&o.size!==0&&c!==e.epoch&&(c=e.epoch,Promise.resolve(e.remote.account.onChange(s)).catch(()=>{c===e.epoch&&(c=0)}))};typeof window<`u`&&t.l(l);var u=async e=>typeof window>`u`?()=>{}:(o.add(e),l(),()=>{o.delete(e)});exports.info=a,exports.login=r,exports.logout=i,exports.onChange=u,Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return n}});
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-BIInC43l.cjs"),t=require("./api-jOTOA-5n.cjs"),n=require("./account-generation-CSnZiN18.cjs");var r=e.t({info:()=>o,login:()=>i,logout:()=>a,onChange:()=>s}),i=async()=>typeof window>`u`?!1:(await t.a).account.login(location.origin).catch(()=>!1),a=async()=>{typeof window<`u`&&await(await t.a).account.logout().catch(()=>{})},o=async()=>{if(typeof window>`u`)return null;let e=await t.a.then(e=>e.account.info()).catch(()=>null);return e?{name:e.name,image:e.image,premium:e.premium,premiumUntil:e.premiumUntil?Date.parse(e.premiumUntil):null}:null},s=async e=>t.c?n.i(e):()=>{};exports.info=o,exports.login=i,exports.logout=a,exports.onChange=s,Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
package/account.d.ts CHANGED
@@ -14,6 +14,17 @@ export type AccountInfo = {
14
14
  export declare const login: () => Promise<boolean>;
15
15
  export declare const logout: () => Promise<void>;
16
16
  export declare const info: () => Promise<AccountInfo | null>;
17
+ /**
18
+ * Calls `callback` whenever the account this page acts as may have changed: a switch, a sign-in or a
19
+ * sign-out, in this tab or another. It carries no data, so re-read what you need. Works in a window and
20
+ * in a worker bridged with `relayWorker`; resolves to a no-op where there is no FKN transport at all.
21
+ *
22
+ * Storage moves to the new account BEFORE any callback runs. Calls made before this page learned of a
23
+ * switch never land in the new account (they are refused with `StorageAccountChangedError`). Work the
24
+ * app started before the notification and resumes after it is the app's to check: keep a counter this
25
+ * callback bumps, and compare it synchronously right before the storage call, which captures the
26
+ * account in the same synchronous step, so the check and the call are atomic.
27
+ */
17
28
  export declare const onChange: (callback: () => void) => Promise<() => void>;
18
29
  //#endregion
19
30
  export { account_d_exports as t };
package/account.js CHANGED
@@ -1,11 +1,12 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { a as t, l as n, s as r } from "./api-Dp-2AT3u.js";
2
+ import { a as t, c as n } from "./api-Dp-2AT3u.js";
3
+ import { i as r } from "./account-generation-D7TpIoKt.js";
3
4
  //#region src/account.ts
4
5
  var i = /* @__PURE__ */ e({
5
6
  info: () => s,
6
7
  login: () => a,
7
8
  logout: () => o,
8
- onChange: () => f
9
+ onChange: () => c
9
10
  }), a = async () => typeof window > "u" ? !1 : (await t).account.login(location.origin).catch(() => !1), o = async () => {
10
11
  typeof window < "u" && await (await t).account.logout().catch(() => {});
11
12
  }, s = async () => {
@@ -17,19 +18,6 @@ var i = /* @__PURE__ */ e({
17
18
  premium: e.premium,
18
19
  premiumUntil: e.premiumUntil ? Date.parse(e.premiumUntil) : null
19
20
  } : null;
20
- }, c = /* @__PURE__ */ new Set(), l = () => {
21
- for (let e of [...c]) try {
22
- e();
23
- } catch {}
24
- }, u = 0, d = () => {
25
- let e = r();
26
- e && c.size !== 0 && u !== e.epoch && (u = e.epoch, Promise.resolve(e.remote.account.onChange(l)).catch(() => {
27
- u === e.epoch && (u = 0);
28
- }));
29
- };
30
- typeof window < "u" && n(d);
31
- var f = async (e) => typeof window > "u" ? () => {} : (c.add(e), d(), () => {
32
- c.delete(e);
33
- });
21
+ }, c = async (e) => n ? r(e) : () => {};
34
22
  //#endregion
35
- export { s as info, a as login, o as logout, f as onChange, i as t };
23
+ export { s as info, a as login, o as logout, c as onChange, i as t };
@@ -1,5 +1,5 @@
1
1
  import { o as TcpSocketOption, v as UdpSocketOption } from "./wire-Gbo-D74t.js";
2
- import { A as OverlayState, At as WriteData, C as InstallOptions, Ct as UdpDatagram, F as PickOptions, G as RoomClaimOptions, I as Placement, N as PackagesErrorCode, Q as RoomMailbox, R as ProxyFetchInit, T as IpFamily, U as Resolvers, Y as RoomEvent, Z as RoomJoinOptions, c as ConflictChoice, d as ConnectAvailability, f as ConnectOptions, it as RoomsErrorCode, j as PackageQuery, l as ConflictRequest, nt as RoomPermission, o as AdoptRequest, s as AdoptState, tt as RoomOpenOptions, v as FrameConsentAnswer, wt as UdpSocketOptions, xt as TcpSocketOptions, y as FrameConsentRequest, yt as TcpSocketListenerOptions, z as ProxyFetchInput } from "./contract-sDmsw-9f.js";
2
+ import { $ as RoomJoinOptions, B as ProxyFetchInit, Ct as TcpSocketOptions, D as IpFamily, Et as UdpSocketOptions, F as PackagesErrorCode, G as Resolvers, L as PickOptions, M as OverlayState, Mt as WriteData, N as PackageQuery, R as Placement, T as InstallOptions, Tt as UdpDatagram, V as ProxyFetchInput, Z as RoomEvent, a as AccountChange, b as FrameConsentAnswer, c as AdoptRequest, d as ConflictRequest, et as RoomMailbox, it as RoomPermission, l as AdoptState, m as ConnectOptions, o as AccountPinOptions, ot as RoomsErrorCode, p as ConnectAvailability, q as RoomClaimOptions, rt as RoomOpenOptions, u as ConflictChoice, x as FrameConsentRequest, xt as TcpSocketListenerOptions } from "./contract-BRc2ptdC.js";
3
3
  import { Remote } from "osra";
4
4
  //#region src/api-epochs.d.ts
5
5
  type EpochListener<T> = (remote: T, epoch: number) => void;
@@ -69,7 +69,7 @@ declare const onApiEpoch: (listener: EpochListener<{
69
69
  fs: {
70
70
  available: () => Promise<boolean>;
71
71
  availability: () => Promise<ConnectAvailability>;
72
- list: () => Promise<{
72
+ list: (opts?: AccountPinOptions | undefined) => Promise<{
73
73
  path: string;
74
74
  size: number;
75
75
  contentType: string | null;
@@ -83,13 +83,14 @@ declare const onApiEpoch: (listener: EpochListener<{
83
83
  objects: number;
84
84
  maxObjects: number;
85
85
  }>;
86
- readFile: (path: string) => Promise<Uint8Array<ArrayBufferLike>>;
87
- readFileSealed: (path: string) => Promise<{
86
+ readFile: (path: string, opts?: AccountPinOptions | undefined) => Promise<Uint8Array<ArrayBufferLike>>;
87
+ readFileSealed: (path: string, opts?: AccountPinOptions | undefined) => Promise<{
88
88
  bytes: Uint8Array;
89
89
  sealedAt: number | null;
90
90
  }>;
91
- writeFile: (path: string, data: WriteData, contentType: string | null) => Promise<void>;
92
- remove: (path: string) => Promise<void>;
91
+ writeFile: (path: string, data: WriteData, contentType: string | null, opts?: AccountPinOptions | undefined) => Promise<void>;
92
+ remove: (path: string, opts?: AccountPinOptions | undefined) => Promise<void>;
93
+ accountPin: () => Promise<string>;
93
94
  encryption: () => Promise<{
94
95
  unlocked: boolean;
95
96
  enrolled: boolean;
@@ -683,7 +684,7 @@ declare const onApiEpoch: (listener: EpochListener<{
683
684
  } | null>;
684
685
  login: (consumerOrigin: string) => Promise<boolean>;
685
686
  logout: () => Promise<void>;
686
- onChange: (listener: () => void) => Promise<() => Promise<void>>;
687
+ onChange: (listener: (change?: AccountChange) => void) => Promise<() => Promise<void>>;
687
688
  };
688
689
  shell: {
689
690
  updateReady: () => Promise<boolean>;
@@ -785,7 +786,7 @@ declare const currentApiEpoch: () => {
785
786
  fs: {
786
787
  available: () => Promise<boolean>;
787
788
  availability: () => Promise<ConnectAvailability>;
788
- list: () => Promise<{
789
+ list: (opts?: AccountPinOptions | undefined) => Promise<{
789
790
  path: string;
790
791
  size: number;
791
792
  contentType: string | null;
@@ -799,13 +800,14 @@ declare const currentApiEpoch: () => {
799
800
  objects: number;
800
801
  maxObjects: number;
801
802
  }>;
802
- readFile: (path: string) => Promise<Uint8Array<ArrayBufferLike>>;
803
- readFileSealed: (path: string) => Promise<{
803
+ readFile: (path: string, opts?: AccountPinOptions | undefined) => Promise<Uint8Array<ArrayBufferLike>>;
804
+ readFileSealed: (path: string, opts?: AccountPinOptions | undefined) => Promise<{
804
805
  bytes: Uint8Array;
805
806
  sealedAt: number | null;
806
807
  }>;
807
- writeFile: (path: string, data: WriteData, contentType: string | null) => Promise<void>;
808
- remove: (path: string) => Promise<void>;
808
+ writeFile: (path: string, data: WriteData, contentType: string | null, opts?: AccountPinOptions | undefined) => Promise<void>;
809
+ remove: (path: string, opts?: AccountPinOptions | undefined) => Promise<void>;
810
+ accountPin: () => Promise<string>;
809
811
  encryption: () => Promise<{
810
812
  unlocked: boolean;
811
813
  enrolled: boolean;
@@ -1399,7 +1401,7 @@ declare const currentApiEpoch: () => {
1399
1401
  } | null>;
1400
1402
  login: (consumerOrigin: string) => Promise<boolean>;
1401
1403
  logout: () => Promise<void>;
1402
- onChange: (listener: () => void) => Promise<() => Promise<void>>;
1404
+ onChange: (listener: (change?: AccountChange) => void) => Promise<() => Promise<void>>;
1403
1405
  };
1404
1406
  shell: {
1405
1407
  updateReady: () => Promise<boolean>;
package/api.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { U as Resolvers } from "./contract-sDmsw-9f.js";
2
- import { a as apiPromise, c as hasTransport, i as apiLastCall, l as onApiEpoch, n as BrokerUnreachableError, o as apiWithin, r as apiInFlight, s as currentApiEpoch, t as API_DEADLINE_MS } from "./api-BxXnHxbd.js";
1
+ import { G as Resolvers } from "./contract-BRc2ptdC.js";
2
+ import { a as apiPromise, c as hasTransport, i as apiLastCall, l as onApiEpoch, n as BrokerUnreachableError, o as apiWithin, r as apiInFlight, s as currentApiEpoch, t as API_DEADLINE_MS } from "./api-Cbty0JUM.js";
3
3
  export { API_DEADLINE_MS, BrokerUnreachableError, type Resolvers, apiInFlight, apiLastCall, apiPromise, apiWithin, currentApiEpoch, hasTransport, onApiEpoch };
package/cloud/dns.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { a as AddressLookupResult } from "../contract-sDmsw-9f.js";
1
+ import { s as AddressLookupResult } from "../contract-BRc2ptdC.js";
2
2
  import { lookup } from "../dns.js";
3
3
  export { type AddressLookupResult, lookup };
package/cloud/fetch.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as cloudFetch } from "../proxy-CxRQLGNG.js";
1
+ import { t as cloudFetch } from "../proxy-D6YtsO1g.js";
2
2
  export { cloudFetch as fetch };
@@ -1,5 +1,5 @@
1
1
  import { a as WriteData, i as Stats, n as MakeOptions, o as WriteOptions, r as ReadOptions } from "../../index-BQgZVQl7.js";
2
- import "../../fs--NhtUyYa.js";
2
+ import "../../fs-D0MMRnHC.js";
3
3
  //#region src/cloud/fs-promises.d.ts
4
4
  export declare const readFile: (path: import("node:fs").PathLike, options?: ReadOptions) => Promise<Buffer | string>, writeFile: (path: import("node:fs").PathLike, data: WriteData, options?: WriteOptions) => Promise<void>, unlink: (path: import("node:fs").PathLike) => Promise<void>, rename: (from: import("node:fs").PathLike, to: import("node:fs").PathLike) => Promise<void>, readdir: (path: import("node:fs").PathLike) => Promise<string[]>, mkdir: (_path?: import("node:fs").PathLike, _options?: MakeOptions) => Promise<void>, rm: (path: import("node:fs").PathLike, options?: {
5
5
  recursive?: boolean;
package/cloud/fs.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../rolldown-runtime-BIInC43l.cjs"),t=require("../node-fs-BNTPsX5c.cjs"),n=require("../messages.cjs"),r=require("../storage-BJd-mWHE.cjs");var i=e.t({STORAGE_NOT_FOUND:()=>n.STORAGE_NOT_FOUND,StorageLockedError:()=>r.t,StorageNotFoundError:()=>r.n,available:()=>a,encryption:()=>r.i,isNotFound:()=>r.a,mkdir:()=>d,promises:()=>m,quota:()=>r.s,readFile:()=>o,readFileSealed:()=>r.l,readdir:()=>u,rename:()=>l,rm:()=>f,stat:()=>p,unlink:()=>c,unlock:()=>r.f,writeFile:()=>s}),{available:a,readFile:o,writeFile:s,unlink:c,rename:l,readdir:u,mkdir:d,rm:f,stat:p,promises:m}=t.t(r.d,{memfs:!1});exports.STORAGE_NOT_FOUND=n.STORAGE_NOT_FOUND,exports.StorageLockedError=r.t,exports.StorageNotFoundError=r.n,exports.available=a,exports.encryption=r.i,exports.isNotFound=r.a,exports.mkdir=d,exports.promises=m,exports.quota=r.s,exports.readFile=o,exports.readFileSealed=r.l,exports.readdir=u,exports.rename=l,exports.rm=f,exports.stat=p,Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}}),exports.unlink=c,exports.unlock=r.f,exports.writeFile=s;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../rolldown-runtime-BIInC43l.cjs"),t=require("../node-fs-nfX7wisL.cjs"),n=require("../messages.cjs"),r=require("../storage-BS5WMO4f.cjs");var i=e.t({STORAGE_ACCOUNT_CHANGED:()=>n.STORAGE_ACCOUNT_CHANGED,STORAGE_ACCOUNT_PIN_UNSUPPORTED:()=>n.STORAGE_ACCOUNT_PIN_UNSUPPORTED,STORAGE_NOT_FOUND:()=>n.STORAGE_NOT_FOUND,StorageAccountChangedError:()=>r.t,StorageAccountPinUnsupportedError:()=>r.n,StorageLockedError:()=>r.r,StorageNotFoundError:()=>r.i,availability:()=>r.a,available:()=>a,encryption:()=>r.s,isAccountChanged:()=>r.c,isNotFound:()=>r.u,list:()=>h,mkdir:()=>d,promises:()=>m,quota:()=>r.m,readFile:()=>o,readFileSealed:()=>g,readdir:()=>u,rename:()=>l,rm:()=>f,stat:()=>p,unlink:()=>c,unlock:()=>r.y,writeFile:()=>s}),{available:a,readFile:o,writeFile:s,unlink:c,rename:l,readdir:u,mkdir:d,rm:f,stat:p,promises:m}=t.t(r.v,{memfs:!1}),h=()=>r.f(),g=e=>r.g(e);exports.STORAGE_ACCOUNT_CHANGED=n.STORAGE_ACCOUNT_CHANGED,exports.STORAGE_ACCOUNT_PIN_UNSUPPORTED=n.STORAGE_ACCOUNT_PIN_UNSUPPORTED,exports.STORAGE_NOT_FOUND=n.STORAGE_NOT_FOUND,exports.StorageAccountChangedError=r.t,exports.StorageAccountPinUnsupportedError=r.n,exports.StorageLockedError=r.r,exports.StorageNotFoundError=r.i,exports.availability=r.a,exports.available=a,exports.encryption=r.s,exports.isAccountChanged=r.c,exports.isNotFound=r.u,exports.list=h,exports.mkdir=d,exports.promises=m,exports.quota=r.m,exports.readFile=o,exports.readFileSealed=g,exports.readdir=u,exports.rename=l,exports.rm=f,exports.stat=p,Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}}),exports.unlink=c,exports.unlock=r.y,exports.writeFile=s;
package/cloud/fs.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as Stats } from "../index-BQgZVQl7.js";
2
- import { a as StorageNotFoundError, c as isNotFound, f as unlock, i as StorageLockedError, l as quota, n as FileEntry, o as StorageQuota, r as SealedRead, s as encryption, t as EncryptionStatus, u as readFileSealed } from "../storage-ZrY4Y4L5.js";
3
- import { a as STORAGE_NOT_FOUND } from "../messages-C66ghz_A.js";
4
- import { a as readFile, c as rm, d as writeFile, i as promises, l as stat, o as readdir, r as mkdir, s as rename, t as available, u as unlink } from "../fs--NhtUyYa.js";
5
- export { type EncryptionStatus, type FileEntry, STORAGE_NOT_FOUND, type SealedRead, type Stats, StorageLockedError, StorageNotFoundError, type StorageQuota, available, encryption, isNotFound, mkdir, promises, quota, readFile, readFileSealed, readdir, rename, rm, stat, unlink, unlock, writeFile };
2
+ import { _ as unlock, a as StorageAccountChangedError, c as StorageNotFoundError, f as encryption, h as quota, i as SealedRead, l as StorageQuota, m as isNotFound, n as EncryptionStatus, o as StorageAccountPinUnsupportedError, p as isAccountChanged, r as FileEntry, s as StorageLockedError, t as CloudAvailability, u as availability } from "../storage-BVr2Rb-d.js";
3
+ import { c as STORAGE_ACCOUNT_CHANGED, l as STORAGE_ACCOUNT_PIN_UNSUPPORTED, u as STORAGE_NOT_FOUND } from "../messages-CRcziTuC.js";
4
+ import { a as promises, c as readdir, d as stat, f as unlink, i as mkdir, l as rename, o as readFile, p as writeFile, r as list, s as readFileSealed, t as available, u as rm } from "../fs-D0MMRnHC.js";
5
+ export { type CloudAvailability, type EncryptionStatus, type FileEntry, STORAGE_ACCOUNT_CHANGED, STORAGE_ACCOUNT_PIN_UNSUPPORTED, STORAGE_NOT_FOUND, type SealedRead, type Stats, StorageAccountChangedError, StorageAccountPinUnsupportedError, StorageLockedError, StorageNotFoundError, type StorageQuota, availability, available, encryption, isAccountChanged, isNotFound, list, mkdir, promises, quota, readFile, readFileSealed, readdir, rename, rm, stat, unlink, unlock, writeFile };
package/cloud/fs.js CHANGED
@@ -1,27 +1,34 @@
1
1
  import { t as e } from "../rolldown-runtime-Dy4uBu1J.js";
2
- import { t } from "../node-fs-BZy9bzKd.js";
3
- import { STORAGE_NOT_FOUND as n } from "../messages.js";
4
- import { a as r, d as i, f as a, i as o, l as s, n as c, s as l, t as u } from "../storage-DSvL-t80.js";
2
+ import { t } from "../node-fs-CK2wWIYS.js";
3
+ import { STORAGE_ACCOUNT_CHANGED as n, STORAGE_ACCOUNT_PIN_UNSUPPORTED as r, STORAGE_NOT_FOUND as i } from "../messages.js";
4
+ import { a, c as o, f as s, g as c, i as l, m as u, n as d, r as f, s as p, t as m, u as h, v as g, y as _ } from "../storage-BWmGrO6a.js";
5
5
  //#region src/cloud/fs.ts
6
- var d = /* @__PURE__ */ e({
7
- STORAGE_NOT_FOUND: () => n,
8
- StorageLockedError: () => u,
9
- StorageNotFoundError: () => c,
10
- available: () => f,
11
- encryption: () => o,
12
- isNotFound: () => r,
13
- mkdir: () => v,
14
- promises: () => x,
15
- quota: () => l,
16
- readFile: () => p,
17
- readFileSealed: () => s,
18
- readdir: () => _,
19
- rename: () => g,
20
- rm: () => y,
21
- stat: () => b,
22
- unlink: () => h,
23
- unlock: () => a,
24
- writeFile: () => m
25
- }), { available: f, readFile: p, writeFile: m, unlink: h, rename: g, readdir: _, mkdir: v, rm: y, stat: b, promises: x } = t(i, { memfs: !1 });
6
+ var v = /* @__PURE__ */ e({
7
+ STORAGE_ACCOUNT_CHANGED: () => n,
8
+ STORAGE_ACCOUNT_PIN_UNSUPPORTED: () => r,
9
+ STORAGE_NOT_FOUND: () => i,
10
+ StorageAccountChangedError: () => m,
11
+ StorageAccountPinUnsupportedError: () => d,
12
+ StorageLockedError: () => f,
13
+ StorageNotFoundError: () => l,
14
+ availability: () => a,
15
+ available: () => y,
16
+ encryption: () => p,
17
+ isAccountChanged: () => o,
18
+ isNotFound: () => h,
19
+ list: () => k,
20
+ mkdir: () => T,
21
+ promises: () => O,
22
+ quota: () => u,
23
+ readFile: () => b,
24
+ readFileSealed: () => A,
25
+ readdir: () => w,
26
+ rename: () => C,
27
+ rm: () => E,
28
+ stat: () => D,
29
+ unlink: () => S,
30
+ unlock: () => _,
31
+ writeFile: () => x
32
+ }), { available: y, readFile: b, writeFile: x, unlink: S, rename: C, readdir: w, mkdir: T, rm: E, stat: D, promises: O } = t(g, { memfs: !1 }), k = () => s(), A = (e) => c(e);
26
33
  //#endregion
27
- export { n as STORAGE_NOT_FOUND, u as StorageLockedError, c as StorageNotFoundError, f as available, o as encryption, r as isNotFound, v as mkdir, x as promises, l as quota, p as readFile, s as readFileSealed, _ as readdir, g as rename, y as rm, b as stat, d as t, h as unlink, a as unlock, m as writeFile };
34
+ export { n as STORAGE_ACCOUNT_CHANGED, r as STORAGE_ACCOUNT_PIN_UNSUPPORTED, i as STORAGE_NOT_FOUND, m as StorageAccountChangedError, d as StorageAccountPinUnsupportedError, f as StorageLockedError, l as StorageNotFoundError, a as availability, y as available, p as encryption, o as isAccountChanged, h as isNotFound, k as list, T as mkdir, O as promises, u as quota, b as readFile, A as readFileSealed, w as readdir, C as rename, E as rm, D as stat, v as t, S as unlink, _ as unlock, x as writeFile };
package/cloud/net.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as createConnection, c as isIP, i as connect, l as isIPv4, n as Socket, o as createServer, r as _default, t as Server, u as isIPv6 } from "../net-Qmt9L_7t.js";
1
+ import { a as createConnection, c as isIP, i as connect, l as isIPv4, n as Socket, o as createServer, r as _default, t as Server, u as isIPv6 } from "../net-CcEZP6Bb.js";
2
2
  export { Server, Socket, _default, _default as default, connect, createConnection, createServer, isIP, isIPv4, isIPv6 };
@@ -1,8 +1,8 @@
1
1
  import { r as AttachFrameFunction } from "./index-D2CA-NX5.js";
2
- import { t as cloudFetch } from "./proxy-CxRQLGNG.js";
2
+ import { t as cloudFetch } from "./proxy-D6YtsO1g.js";
3
3
  import { t as dns_d_exports } from "./dns.js";
4
- import { n as fs_d_exports } from "./fs--NhtUyYa.js";
5
- import { s as net_d_exports } from "./net-Qmt9L_7t.js";
4
+ import { n as fs_d_exports } from "./fs-D0MMRnHC.js";
5
+ import { s as net_d_exports } from "./net-CcEZP6Bb.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
  //#region src/cloud/frame.d.ts