@fkn/lib 0.9.35 → 0.9.37

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 (46) hide show
  1. package/{api-CfmRAze5.d.ts → api-CZI08srV.d.ts} +1 -1
  2. package/api.d.ts +2 -2
  3. package/attach-policy.cjs +1 -1
  4. package/attach-policy.js +1 -1
  5. package/cloud/dns.d.ts +1 -1
  6. package/cloud/fetch.d.ts +1 -1
  7. package/cloud/net.d.ts +1 -1
  8. package/cloud-Beg4iCRU.cjs +1 -0
  9. package/{cloud-DxitkM7z.d.ts → cloud-DCZv4XAf.d.ts} +3 -3
  10. package/cloud-EfyYfgVT.js +476 -0
  11. package/cloud.cjs +1 -1
  12. package/cloud.d.ts +3 -3
  13. package/cloud.js +1 -1
  14. package/{contract-D37GGkou.d.ts → contract-_nWuFitS.d.ts} +58 -3
  15. package/contract.cjs +1 -1
  16. package/contract.d.ts +2 -2
  17. package/contract.js +6 -6
  18. package/dgram.d.ts +2 -2
  19. package/dns.d.ts +1 -1
  20. package/extension-B7jDaJVp.cjs +1 -0
  21. package/{extension-TRYu_aG-.d.ts → extension-CqOhrS15.d.ts} +3 -3
  22. package/extension-sNRjVbET.js +89 -0
  23. package/extension.cjs +1 -1
  24. package/extension.d.ts +3 -3
  25. package/extension.js +3 -3
  26. package/hosts-9dYv63ud.cjs +1 -0
  27. package/{hosts-C4-8lWwz.js → hosts-BzbzOhG8.js} +41 -19
  28. package/http.d.ts +1 -1
  29. package/{index-C_Lqta5o.d.ts → index-BUviSXsX.d.ts} +200 -6
  30. package/index.cjs +1 -1
  31. package/index.d.ts +9 -6
  32. package/index.js +12 -12
  33. package/lib-DYKLnpWs.cjs +53 -0
  34. package/{lib-B-jGWfsv.js → lib-FD1Ssqjt.js} +628 -475
  35. package/{net-0SlODFSM.d.ts → net-eCY_QD4P.d.ts} +2 -2
  36. package/net.d.ts +1 -1
  37. package/package.json +1 -1
  38. package/packages.d.ts +1 -1
  39. package/{proxy-Bmb2wxG1.d.ts → proxy-CrTXoFQK.d.ts} +2 -2
  40. package/rooms.d.ts +1 -1
  41. package/cloud-B9Sd7V1g.js +0 -422
  42. package/cloud-DCWD_0sd.cjs +0 -1
  43. package/extension-DJQ0oYdk.js +0 -89
  44. package/extension-DSrUjoLw.cjs +0 -1
  45. package/hosts-DD4rDeQH.cjs +0 -1
  46. package/lib-Cjd91q7g.cjs +0 -53
@@ -1,4 +1,4 @@
1
- import { B as SelectorPart, f as GotoOptions } from "./index-C_Lqta5o.js";
1
+ import { K as SelectorPart, v as GotoOptions } from "./index-BUviSXsX.js";
2
2
  import { o as TcpSocketOption, v as UdpSocketOption } from "./wire-Gbo-D74t.js";
3
3
  //#region src/contract.d.ts
4
4
  /** The signed-in account, or null when nobody is. */
@@ -86,7 +86,7 @@ type FrameConsentRequest = {
86
86
  scope: FrameFetchScope;
87
87
  hosts: string[];
88
88
  };
89
- /** `'once'` is a critical row answered Allow once, a handoff the middle page takes; `'session'` a row standing for the tab; `false` a refusal. */
89
+ /** `'once'` is a critical row answered Allow once, a handoff the middle page takes; `'session'` a standing row (remembered for a category, kept for the tab for a critical row); `false` a refusal. */
90
90
  type FrameConsentAnswer = 'once' | 'session' | false;
91
91
  /** The osra key of an inline attachment's channel, which `/attach-frame` exposes to the library. */
92
92
  declare const ATTACH_FRAME_KEY = "fkn-attach-frame";
@@ -96,6 +96,50 @@ declare const ATTACH_WINDOW_KEY = "fkn-attach-window";
96
96
  declare const SHELL_CONTROL_KEY = "sdbx-control";
97
97
  /** Posted by a shell that could not start, `{ type, message }`, to the middle page framing it. */
98
98
  declare const SHELL_ATTACH_ERROR = "sdbx-attach-error";
99
+ /**
100
+ * Posted by a middle page to its app for the Frame's listeners (`FrameMessageRelay`), with the page's
101
+ * ports as the transfer list. Only for a document inside the attachment, and a `message` only when the
102
+ * page addressed it to the app's own origin.
103
+ */
104
+ declare const FRAME_MESSAGE = "fkn-frame-message";
105
+ /**
106
+ * Posted by the render proxy shell to its middle page (`ShellFrameMessage`), with the page's ports as
107
+ * the transfer list: what the page posted to an origin not its own, and each document's arrival. The
108
+ * shell does not know the app, so the middle page decides what reaches it.
109
+ */
110
+ declare const SHELL_FRAME_MESSAGE = "sdbx-frame-message";
111
+ /**
112
+ * `origin` is the page's origin as the site knows it, which the shell derives from the browser-set
113
+ * origin of the page's own post, never from anything the page wrote.
114
+ */
115
+ type FrameMessageRelay = {
116
+ type: typeof FRAME_MESSAGE;
117
+ attach: string;
118
+ kind: 'message';
119
+ origin: string;
120
+ data: unknown;
121
+ } | {
122
+ type: typeof FRAME_MESSAGE;
123
+ attach: string;
124
+ kind: 'document';
125
+ origin: string;
126
+ };
127
+ /**
128
+ * `targetOrigin` is the page's own, normalized: what it addressed the message to. `transfer` is what
129
+ * the page moved with it, also the post's transfer list, for the middle page to move on.
130
+ */
131
+ type ShellFrameMessage = {
132
+ type: typeof SHELL_FRAME_MESSAGE;
133
+ kind: 'message';
134
+ origin: string;
135
+ targetOrigin: string;
136
+ data: unknown;
137
+ transfer: Transferable[];
138
+ } | {
139
+ type: typeof SHELL_FRAME_MESSAGE;
140
+ kind: 'document';
141
+ origin: string;
142
+ };
99
143
  /** What an app and its window post to each other, every message carrying the attach id. */
100
144
  declare const ATTACH_WINDOW_MESSAGE: {
101
145
  /** app to window, repeated until the channel connects */
@@ -196,7 +240,18 @@ type MiddleControl = {
196
240
  timeoutMs?: number;
197
241
  }): Promise<void>;
198
242
  executeLocator(parts: SelectorPart[], operation: string, args: unknown[]): Promise<unknown>;
243
+ /**
244
+ * The host of the document the frame holds now, as the render proxy last reported it, and `''`
245
+ * before the first one. A document outside the attachment boundary answers `'#outside'`, which is
246
+ * no hostname: the library refuses on it with its boundary message and never learns where the
247
+ * frame went. The middle page's own gate keeps checking the real host.
248
+ */
199
249
  documentHost?(): Promise<string>;
250
+ /**
251
+ * Present on a middle page that gates `postMessage` and relays the page's messages
252
+ * (`FRAME_MESSAGE`). Absent from one deployed before messaging, which the library refuses by name.
253
+ */
254
+ messaging?(): Promise<true>;
200
255
  };
201
256
  /** What a window's middle page adds to its channel. */
202
257
  type WindowMiddleControl = MiddleControl & {
@@ -744,4 +799,4 @@ type Resolvers = {
744
799
  hideInstallPrompt: () => void;
745
800
  };
746
801
  //#endregion
747
- export { RoomPermissions as $, PackageResult as A, Resolvers as B, IpFamily as C, WindowMiddleControl as Ct, OverlayRect as D, MountDescriptor as E, ProxyFetch as F, RoomEvent as G, RoomCreateOptions as H, ProxyFetchInit as I, RoomMailbox as J, RoomHandle as K, ProxyFetchInput as L, PackagesFail as M, PickOptions as N, OverlayState as O, Placement as P, RoomPermission as Q, Quota as R, InstalledPackage as S, WINDOW_JAR_MODE_TIMEOUT_MS as St, MiddleControl as T, RoomDefaults as U, RoomBacklog as V, RoomEnd as W, RoomMessage as X, RoomMember as Y, RoomOpenOptions as Z, FrameConsentAnswer as _, UdpDatagram as _t, AddressLookupResult as a, SHELL_JAR_UNREACHABLE as at, HiddenSurface as b, WINDOW_HANDSHAKE_TIMEOUT_MS as bt, ConflictChoice as c, ShellGotoOptions as ct, ConnectAvailability as d, StorageQuota as dt, RoomsErrorCode as et, ConnectOptions as f, SurfaceRect as ft, EncryptionState as g, TcpSocketResult as gt, DnsLookup as h, TcpSocketOptions as ht, Account as i, SHELL_JAR_MESSAGE as it, PackagesErrorCode as j, PackageQuery as k, ConflictRequest as l, ShellJarUnreachable as lt, DisplayLevel as m, TcpSocketListenerResult as mt, ATTACH_WINDOW_KEY as n, SHELL_ATTACH_ERROR as nt, AdoptRequest as o, SetOverlayHost as ot, DisplayCause as p, TcpSocketListenerOptions as pt, RoomJoinOptions as q, ATTACH_WINDOW_MESSAGE as r, SHELL_CONTROL_KEY as rt, AdoptState as s, ShellControl as st, ATTACH_FRAME_KEY as t, RoomsFail as tt, ConflictSide as u, StorageEntry as ut, FrameConsentRequest as v, UdpSocketOptions as vt, JAR_ANCHOR_MESSAGE as w, WriteData as wt, InstallOptions as x, WINDOW_HELLO_TIMEOUT_MS as xt, FrameFetchScope as y, UdpSocketResult as yt, Radii as z };
802
+ export { RoomOpenOptions as $, OverlayState as A, Quota as B, InstallOptions as C, UdpSocketResult as Ct, MiddleControl as D, WindowMiddleControl as Dt, JAR_ANCHOR_MESSAGE as E, WINDOW_JAR_MODE_TIMEOUT_MS as Et, PickOptions as F, RoomDefaults as G, Resolvers as H, Placement as I, RoomHandle as J, RoomEnd as K, ProxyFetch as L, PackageResult as M, PackagesErrorCode as N, MountDescriptor as O, WriteData as Ot, PackagesFail as P, RoomMessage as Q, ProxyFetchInit as R, HiddenSurface as S, UdpSocketOptions as St, IpFamily as T, WINDOW_HELLO_TIMEOUT_MS as Tt, RoomBacklog as U, Radii as V, RoomCreateOptions as W, RoomMailbox as X, RoomJoinOptions as Y, RoomMember as Z, FRAME_MESSAGE as _, TcpSocketListenerOptions as _t, AddressLookupResult as a, SHELL_CONTROL_KEY as at, FrameFetchScope as b, TcpSocketResult as bt, ConflictChoice as c, SHELL_JAR_UNREACHABLE as ct, ConnectAvailability as d, ShellFrameMessage as dt, RoomPermission as et, ConnectOptions as f, ShellGotoOptions as ft, EncryptionState as g, SurfaceRect as gt, DnsLookup as h, StorageQuota as ht, Account as i, SHELL_ATTACH_ERROR as it, PackageQuery as j, OverlayRect as k, ConflictRequest as l, SetOverlayHost as lt, DisplayLevel as m, StorageEntry as mt, ATTACH_WINDOW_KEY as n, RoomsErrorCode as nt, AdoptRequest as o, SHELL_FRAME_MESSAGE as ot, DisplayCause as p, ShellJarUnreachable as pt, RoomEvent as q, ATTACH_WINDOW_MESSAGE as r, RoomsFail as rt, AdoptState as s, SHELL_JAR_MESSAGE as st, ATTACH_FRAME_KEY as t, RoomPermissions as tt, ConflictSide as u, ShellControl as ut, FrameConsentAnswer as v, TcpSocketListenerResult as vt, InstalledPackage as w, WINDOW_HANDSHAKE_TIMEOUT_MS as wt, FrameMessageRelay as x, UdpDatagram as xt, FrameConsentRequest as y, TcpSocketOptions as yt, ProxyFetchInput as z };
package/contract.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=`fkn-attach-frame`,t=`fkn-attach-window`,n=`sdbx-control`,r=`sdbx-attach-error`,i={hello:`fkn-attach-window`,refused:`fkn-attach-window-refused`,gone:`fkn-attach-window-gone`,detach:`fkn-attach-window-detach`},a={request:`sdbx-jar-request`,port:`sdbx-jar-port`,mode:`sdbx-jar-mode`},o=[`bad-attach`,`no-storage`,`bad-jar`,`no-parent`,`no-jar-host`,`no-token`,`no-indexeddb`,`failed`],s={hello:`fkn-jar-hello`,ready:`fkn-jar-ready`,port:`fkn-jar-port`,who:`fkn-jar-who`,host:`fkn-jar-host`},c=2e4,l=3e4,u=6e4;exports.ATTACH_FRAME_KEY=e,exports.ATTACH_WINDOW_KEY=t,exports.ATTACH_WINDOW_MESSAGE=i,exports.JAR_ANCHOR_MESSAGE=s,exports.SHELL_ATTACH_ERROR=r,exports.SHELL_CONTROL_KEY=n,exports.SHELL_JAR_MESSAGE=a,exports.SHELL_JAR_UNREACHABLE=o,exports.WINDOW_HANDSHAKE_TIMEOUT_MS=u,exports.WINDOW_HELLO_TIMEOUT_MS=c,exports.WINDOW_JAR_MODE_TIMEOUT_MS=l;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=`fkn-attach-frame`,t=`fkn-attach-window`,n=`sdbx-control`,r=`sdbx-attach-error`,i=`fkn-frame-message`,a=`sdbx-frame-message`,o={hello:`fkn-attach-window`,refused:`fkn-attach-window-refused`,gone:`fkn-attach-window-gone`,detach:`fkn-attach-window-detach`},s={request:`sdbx-jar-request`,port:`sdbx-jar-port`,mode:`sdbx-jar-mode`},c=[`bad-attach`,`no-storage`,`bad-jar`,`no-parent`,`no-jar-host`,`no-token`,`no-indexeddb`,`failed`],l={hello:`fkn-jar-hello`,ready:`fkn-jar-ready`,port:`fkn-jar-port`,who:`fkn-jar-who`,host:`fkn-jar-host`},u=2e4,d=3e4,f=6e4;exports.ATTACH_FRAME_KEY=e,exports.ATTACH_WINDOW_KEY=t,exports.ATTACH_WINDOW_MESSAGE=o,exports.FRAME_MESSAGE=i,exports.JAR_ANCHOR_MESSAGE=l,exports.SHELL_ATTACH_ERROR=r,exports.SHELL_CONTROL_KEY=n,exports.SHELL_FRAME_MESSAGE=a,exports.SHELL_JAR_MESSAGE=s,exports.SHELL_JAR_UNREACHABLE=c,exports.WINDOW_HANDSHAKE_TIMEOUT_MS=f,exports.WINDOW_HELLO_TIMEOUT_MS=u,exports.WINDOW_JAR_MODE_TIMEOUT_MS=d;
package/contract.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { o as TcpSocketOption, v as UdpSocketOption } from "./wire-Gbo-D74t.js";
2
- import { $ as RoomPermissions, A as PackageResult, B as Resolvers, C as IpFamily, Ct as WindowMiddleControl, D as OverlayRect, E as MountDescriptor, F as ProxyFetch, G as RoomEvent, H as RoomCreateOptions, I as ProxyFetchInit, J as RoomMailbox, K as RoomHandle, L as ProxyFetchInput, M as PackagesFail, N as PickOptions, O as OverlayState, P as Placement, Q as RoomPermission, R as Quota, S as InstalledPackage, St as WINDOW_JAR_MODE_TIMEOUT_MS, T as MiddleControl, U as RoomDefaults, V as RoomBacklog, W as RoomEnd, X as RoomMessage, Y as RoomMember, Z as RoomOpenOptions, _ as FrameConsentAnswer, _t as UdpDatagram, a as AddressLookupResult, at as SHELL_JAR_UNREACHABLE, b as HiddenSurface, bt as WINDOW_HANDSHAKE_TIMEOUT_MS, c as ConflictChoice, ct as ShellGotoOptions, d as ConnectAvailability, dt as StorageQuota, et as RoomsErrorCode, f as ConnectOptions, ft as SurfaceRect, g as EncryptionState, gt as TcpSocketResult, h as DnsLookup, ht as TcpSocketOptions, i as Account, it as SHELL_JAR_MESSAGE, j as PackagesErrorCode, k as PackageQuery, l as ConflictRequest, lt as ShellJarUnreachable, m as DisplayLevel, mt as TcpSocketListenerResult, n as ATTACH_WINDOW_KEY, nt as SHELL_ATTACH_ERROR, o as AdoptRequest, ot as SetOverlayHost, p as DisplayCause, pt as TcpSocketListenerOptions, q as RoomJoinOptions, r as ATTACH_WINDOW_MESSAGE, rt as SHELL_CONTROL_KEY, s as AdoptState, st as ShellControl, t as ATTACH_FRAME_KEY, tt as RoomsFail, u as ConflictSide, ut as StorageEntry, v as FrameConsentRequest, vt as UdpSocketOptions, w as JAR_ANCHOR_MESSAGE, wt as WriteData, x as InstallOptions, xt as WINDOW_HELLO_TIMEOUT_MS, y as FrameFetchScope, yt as UdpSocketResult, z as Radii } from "./contract-D37GGkou.js";
3
- export { ATTACH_FRAME_KEY, ATTACH_WINDOW_KEY, ATTACH_WINDOW_MESSAGE, Account, AddressLookupResult, AdoptRequest, AdoptState, ConflictChoice, ConflictRequest, ConflictSide, ConnectAvailability, ConnectOptions, DisplayCause, DisplayLevel, DnsLookup, EncryptionState, FrameConsentAnswer, FrameConsentRequest, FrameFetchScope, HiddenSurface, InstallOptions, InstalledPackage, IpFamily, JAR_ANCHOR_MESSAGE, MiddleControl, MountDescriptor, OverlayRect, OverlayState, PackageQuery, PackageResult, PackagesErrorCode, PackagesFail, PickOptions, Placement, ProxyFetch, ProxyFetchInit, ProxyFetchInput, Quota, Radii, Resolvers, RoomBacklog, RoomCreateOptions, RoomDefaults, RoomEnd, RoomEvent, RoomHandle, RoomJoinOptions, RoomMailbox, RoomMember, RoomMessage, RoomOpenOptions, RoomPermission, RoomPermissions, RoomsErrorCode, RoomsFail, SHELL_ATTACH_ERROR, SHELL_CONTROL_KEY, SHELL_JAR_MESSAGE, SHELL_JAR_UNREACHABLE, SetOverlayHost, ShellControl, ShellGotoOptions, ShellJarUnreachable, StorageEntry, StorageQuota, SurfaceRect, TcpSocketListenerOptions, TcpSocketListenerResult, type TcpSocketOption, TcpSocketOptions, TcpSocketResult, UdpDatagram, type UdpSocketOption, UdpSocketOptions, UdpSocketResult, WINDOW_HANDSHAKE_TIMEOUT_MS, WINDOW_HELLO_TIMEOUT_MS, WINDOW_JAR_MODE_TIMEOUT_MS, WindowMiddleControl, WriteData };
2
+ import { $ as RoomOpenOptions, A as OverlayState, B as Quota, C as InstallOptions, Ct as UdpSocketResult, D as MiddleControl, Dt as WindowMiddleControl, E as JAR_ANCHOR_MESSAGE, Et as WINDOW_JAR_MODE_TIMEOUT_MS, F as PickOptions, G as RoomDefaults, H as Resolvers, I as Placement, J as RoomHandle, K as RoomEnd, L as ProxyFetch, M as PackageResult, N as PackagesErrorCode, O as MountDescriptor, Ot as WriteData, P as PackagesFail, Q as RoomMessage, R as ProxyFetchInit, S as HiddenSurface, St as UdpSocketOptions, T as IpFamily, Tt as WINDOW_HELLO_TIMEOUT_MS, U as RoomBacklog, V as Radii, W as RoomCreateOptions, X as RoomMailbox, Y as RoomJoinOptions, Z as RoomMember, _ as FRAME_MESSAGE, _t as TcpSocketListenerOptions, a as AddressLookupResult, at as SHELL_CONTROL_KEY, b as FrameFetchScope, bt as TcpSocketResult, c as ConflictChoice, ct as SHELL_JAR_UNREACHABLE, d as ConnectAvailability, dt as ShellFrameMessage, et as RoomPermission, f as ConnectOptions, ft as ShellGotoOptions, g as EncryptionState, gt as SurfaceRect, h as DnsLookup, ht as StorageQuota, i as Account, it as SHELL_ATTACH_ERROR, j as PackageQuery, k as OverlayRect, l as ConflictRequest, lt as SetOverlayHost, m as DisplayLevel, mt as StorageEntry, n as ATTACH_WINDOW_KEY, nt as RoomsErrorCode, o as AdoptRequest, ot as SHELL_FRAME_MESSAGE, p as DisplayCause, pt as ShellJarUnreachable, q as RoomEvent, r as ATTACH_WINDOW_MESSAGE, rt as RoomsFail, s as AdoptState, st as SHELL_JAR_MESSAGE, t as ATTACH_FRAME_KEY, tt as RoomPermissions, u as ConflictSide, ut as ShellControl, v as FrameConsentAnswer, vt as TcpSocketListenerResult, w as InstalledPackage, wt as WINDOW_HANDSHAKE_TIMEOUT_MS, x as FrameMessageRelay, xt as UdpDatagram, y as FrameConsentRequest, yt as TcpSocketOptions, z as ProxyFetchInput } from "./contract-_nWuFitS.js";
3
+ export { ATTACH_FRAME_KEY, ATTACH_WINDOW_KEY, ATTACH_WINDOW_MESSAGE, Account, AddressLookupResult, AdoptRequest, AdoptState, ConflictChoice, ConflictRequest, ConflictSide, ConnectAvailability, ConnectOptions, DisplayCause, DisplayLevel, DnsLookup, EncryptionState, FRAME_MESSAGE, FrameConsentAnswer, FrameConsentRequest, FrameFetchScope, FrameMessageRelay, HiddenSurface, InstallOptions, InstalledPackage, IpFamily, JAR_ANCHOR_MESSAGE, MiddleControl, MountDescriptor, OverlayRect, OverlayState, PackageQuery, PackageResult, PackagesErrorCode, PackagesFail, PickOptions, Placement, ProxyFetch, ProxyFetchInit, ProxyFetchInput, Quota, Radii, Resolvers, RoomBacklog, RoomCreateOptions, RoomDefaults, RoomEnd, RoomEvent, RoomHandle, RoomJoinOptions, RoomMailbox, RoomMember, RoomMessage, RoomOpenOptions, RoomPermission, RoomPermissions, RoomsErrorCode, RoomsFail, SHELL_ATTACH_ERROR, SHELL_CONTROL_KEY, SHELL_FRAME_MESSAGE, SHELL_JAR_MESSAGE, SHELL_JAR_UNREACHABLE, SetOverlayHost, ShellControl, ShellFrameMessage, ShellGotoOptions, ShellJarUnreachable, StorageEntry, StorageQuota, SurfaceRect, TcpSocketListenerOptions, TcpSocketListenerResult, type TcpSocketOption, TcpSocketOptions, TcpSocketResult, UdpDatagram, type UdpSocketOption, UdpSocketOptions, UdpSocketResult, WINDOW_HANDSHAKE_TIMEOUT_MS, WINDOW_HELLO_TIMEOUT_MS, WINDOW_JAR_MODE_TIMEOUT_MS, WindowMiddleControl, WriteData };
package/contract.js CHANGED
@@ -1,14 +1,14 @@
1
1
  //#region src/contract.ts
2
- var e = "fkn-attach-frame", t = "fkn-attach-window", n = "sdbx-control", r = "sdbx-attach-error", i = {
2
+ var e = "fkn-attach-frame", t = "fkn-attach-window", n = "sdbx-control", r = "sdbx-attach-error", i = "fkn-frame-message", a = "sdbx-frame-message", o = {
3
3
  hello: "fkn-attach-window",
4
4
  refused: "fkn-attach-window-refused",
5
5
  gone: "fkn-attach-window-gone",
6
6
  detach: "fkn-attach-window-detach"
7
- }, a = {
7
+ }, s = {
8
8
  request: "sdbx-jar-request",
9
9
  port: "sdbx-jar-port",
10
10
  mode: "sdbx-jar-mode"
11
- }, o = [
11
+ }, c = [
12
12
  "bad-attach",
13
13
  "no-storage",
14
14
  "bad-jar",
@@ -17,12 +17,12 @@ var e = "fkn-attach-frame", t = "fkn-attach-window", n = "sdbx-control", r = "sd
17
17
  "no-token",
18
18
  "no-indexeddb",
19
19
  "failed"
20
- ], s = {
20
+ ], l = {
21
21
  hello: "fkn-jar-hello",
22
22
  ready: "fkn-jar-ready",
23
23
  port: "fkn-jar-port",
24
24
  who: "fkn-jar-who",
25
25
  host: "fkn-jar-host"
26
- }, c = 2e4, l = 3e4, u = 6e4;
26
+ }, u = 2e4, d = 3e4, f = 6e4;
27
27
  //#endregion
28
- export { e as ATTACH_FRAME_KEY, t as ATTACH_WINDOW_KEY, i as ATTACH_WINDOW_MESSAGE, s as JAR_ANCHOR_MESSAGE, r as SHELL_ATTACH_ERROR, n as SHELL_CONTROL_KEY, a as SHELL_JAR_MESSAGE, o as SHELL_JAR_UNREACHABLE, u as WINDOW_HANDSHAKE_TIMEOUT_MS, c as WINDOW_HELLO_TIMEOUT_MS, l as WINDOW_JAR_MODE_TIMEOUT_MS };
28
+ export { e as ATTACH_FRAME_KEY, t as ATTACH_WINDOW_KEY, o as ATTACH_WINDOW_MESSAGE, i as FRAME_MESSAGE, l as JAR_ANCHOR_MESSAGE, r as SHELL_ATTACH_ERROR, n as SHELL_CONTROL_KEY, a as SHELL_FRAME_MESSAGE, s as SHELL_JAR_MESSAGE, c as SHELL_JAR_UNREACHABLE, f as WINDOW_HANDSHAKE_TIMEOUT_MS, u as WINDOW_HELLO_TIMEOUT_MS, d as WINDOW_JAR_MODE_TIMEOUT_MS };
package/dgram.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { v as UdpSocketOption } from "./wire-Gbo-D74t.js";
2
- import { B as Resolvers, yt as UdpSocketResult } from "./contract-D37GGkou.js";
3
- import "./api-CfmRAze5.js";
2
+ import { Ct as UdpSocketResult, H as Resolvers } from "./contract-_nWuFitS.js";
3
+ import "./api-CZI08srV.js";
4
4
  import { Buffer } from "buffer";
5
5
  import { AddressInfo } from "net";
6
6
  import { EventEmitter } from "events";
package/dns.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as AddressLookupResult } from "./contract-D37GGkou.js";
1
+ import { a as AddressLookupResult } from "./contract-_nWuFitS.js";
2
2
  declare namespace dns_d_exports {
3
3
  export { AddressLookupResult, lookup };
4
4
  }
@@ -0,0 +1 @@
1
+ const e=require("./rolldown-runtime-BIInC43l.cjs"),t=require("./lib-DYKLnpWs.cjs"),n=require("./api-Djf-XdZ4.cjs"),r=require("./proxy-CYcaW5ew.cjs"),i=require("./desktop.cjs");var a=async e=>{if(typeof window>`u`)return!1;if(t.q())return!0;let r=await n.a,i=null,a=new Promise(e=>{i=()=>{t.q()&&e(!0)},t.K.addEventListener(`statuschange`,i)}),o=r.installPrompt.show(e).then(()=>!1),s=await Promise.race([a,o]);return i&&t.K.removeEventListener(`statuschange`,i),await r.installPrompt.hide().catch(()=>{}),s},o=null;t.Y(()=>(o||=a().then(()=>void 0).finally(()=>{o=null}),o));var s=()=>typeof document<`u`&&t.q(),c=async(e,a)=>{if(n.d(e),a?.credentials===`include`){if(typeof document>`u`)throw Error(`fetch with credentials needs the FKN extension, which only exists in window realms`);return t.I(e,a)}return s()?t.I(e,{...a,credentials:`omit`}):i.available()?i.fetch(e,a):r.t(e,a)},l=e.t({ATTACH_FRAME_EVENT_KEY:()=>t.i,CATEGORIES:()=>t.y,EXTENSION_ABI:()=>3,ExtensionOperationUnsupportedError:()=>t.Q,ExtensionOutdatedError:()=>t.$,FORGEABLE_HEADERS:()=>t.H,FrameWindowBlockedError:()=>t.d,FrameWindowRefusedError:()=>t.f,LOCATOR_DENIED:()=>t.w,LOCATOR_ERROR:()=>t.O,LOCATOR_UNSUPPORTED:()=>t.b,PERMISSION_DENIED:()=>t.t,REQUIRED_EXTENSION_ABI:()=>0,assertAttachableFrameUrl:()=>t.g,assertFetchableUrl:()=>t.F,assertForgeableHeaders:()=>t.U,assertLockdownApplicable:()=>t._,assertOneCookieIdentity:()=>t.W,attachFrame:()=>t.a,attachFramePermission:()=>t.p,available:()=>s,box:()=>t.rt,cookies:()=>t.N,createFrame:()=>t.m,createVideoElementHandle:()=>t.it,events:()=>t.K,extension:()=>t.K,fetch:()=>t.I,fetchCredentialedPermission:()=>t.L,fetchLocalPermission:()=>t.R,fetchPermission:()=>t.z,gotoPermission:()=>t.h,handleRevivableModules:()=>t.nt,hasForgedCookie:()=>t.G,isBlockedFetchUrl:()=>t.B,isBlockedFrameUrl:()=>t.v,isExtensionExposed:()=>t.q,isLocalNetworkUrl:()=>t.V,isLocatorDenied:()=>t.k,isLocatorUnsupported:()=>t.x,isPermissionDenied:()=>t.n,isTerminalError:()=>t.D,isType:()=>t.at,modifyRequestHeadersPermission:()=>t.A,permissions:()=>t.r,promptInstall:()=>a,readCookiePermission:()=>t.P,readExtensionHandshake:()=>t.J,removeRequestHeaderRule:()=>t.j,revive:()=>t.ot,setMissingExtensionHandler:()=>t.Y,setRequestHeaderRule:()=>t.M,supportsOperation:()=>t.tt,type:()=>t.st,waitForExtensionExposure:()=>t.X});Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
@@ -1,4 +1,4 @@
1
- import { A as VideoElementState, B as SelectorPart, C as permissions, D as handleRevivableModules, E as PermissionCategory, F as type, I as Executor, L as Gate, M as createVideoElementHandle, N as isType, O as BoxedVideoElement, P as revive, R as GateTools, S as PermissionRequest, T as CategoryMeta, _ as gotoPermission, a as AttachWindowOptions, b as LegacyPermissionRequest, c as FrameWindowBlockedError, d as FrameWindowRefusedError, f as GotoOptions, g as createFrame, h as attachFramePermission, i as AttachFrameOptions, j as box, k as RemoteVideoElement, l as FrameWindowOptions, m as WindowFrame, n as attachFrame, o as Frame, p as Locator, s as FrameBackend, t as ATTACH_FRAME_EVENT_KEY, u as FrameWindowRefusal, v as CategoryGrant, w as CATEGORIES, x as PermissionGrant, y as CategoryRequest, z as OperationRequest } from "./index-C_Lqta5o.js";
1
+ import { A as CATEGORIES, B as revive, C as gotoPermission, D as PermissionGrant, E as LegacyPermissionRequest, F as RemoteVideoElement, G as OperationRequest, H as Executor, I as VideoElementState, K as SelectorPart, L as box, M as PermissionCategory, N as handleRevivableModules, O as PermissionRequest, P as BoxedVideoElement, R as createVideoElementHandle, S as createFrame, T as CategoryRequest, U as Gate, V as type, W as GateTools, _ as FrameWindowRefusedError, a as AttachWindowOptions, b as WindowFrame, c as FrameBackendEvent, d as FrameEventMap, f as FrameMessageEvent, g as FrameWindowRefusal, h as FrameWindowOptions, i as AttachFrameOptions, j as CategoryMeta, k as permissions, l as FrameDocumentEvent, m as FrameWindowBlockedError, n as attachFrame, o as Frame, p as FramePostMessageOptions, s as FrameBackend, t as ATTACH_FRAME_EVENT_KEY, u as FrameEventListener, v as GotoOptions, w as CategoryGrant, x as attachFramePermission, y as Locator, z as isType } from "./index-BUviSXsX.js";
2
2
  //#region ../frame-locator/lib/errors.d.ts
3
3
  declare const LOCATOR_ERROR = "LocatorError";
4
4
  declare const LOCATOR_UNSUPPORTED = "LocatorUnsupportedError";
@@ -141,7 +141,7 @@ declare const isPermissionDenied: (error: unknown) => boolean;
141
141
  * nothing to do with the protocol (a dependency bump, a store resubmission), and tying the contract
142
142
  * to them would make every release look like a protocol change.
143
143
  */
144
- declare const EXTENSION_ABI = 2;
144
+ declare const EXTENSION_ABI = 3;
145
145
  /**
146
146
  * The oldest extension the page half will talk to. Raise it ONLY when the page half starts depending
147
147
  * on something older extensions cannot do, never merely because `EXTENSION_ABI` moved: an added
@@ -234,7 +234,7 @@ declare const fetch: (input: RequestInfo | URL, init?: RequestInit & {
234
234
  spread?: boolean;
235
235
  }) => Promise<Response>;
236
236
  declare namespace extension_d_exports {
237
- export { ATTACH_FRAME_EVENT_KEY, AttachFrameOptions, AttachWindowOptions, BoxedVideoElement, CATEGORIES, CategoryGrant, CategoryMeta, CategoryRequest, CookieDetails, EXTENSION_ABI, Executor, ExtensionHandshake, ExtensionOperationUnsupportedError, ExtensionOutdatedError, FORGEABLE_HEADERS, FetchInit, Frame, FrameBackend, FrameWindowBlockedError, FrameWindowOptions, FrameWindowRefusal, FrameWindowRefusedError, Gate, GateTools, GotoOptions, HeaderOperation, LOCATOR_DENIED, LOCATOR_ERROR, LOCATOR_UNSUPPORTED, LegacyPermissionRequest, Locator, OperationRequest, PERMISSION_DENIED, PermissionCategory, PermissionDeniedError, PermissionGrant, PermissionRequest, ProxyFetchRequest, REQUIRED_EXTENSION_ABI, RemoteVideoElement, RequestHeaderRule, SelectorPart, SiteCookie, VideoElementState, WindowFrame, assertAttachableFrameUrl, assertFetchableUrl, assertForgeableHeaders, assertLockdownApplicable, assertOneCookieIdentity, attachFrame, attachFramePermission, isExtensionAvailable as available, box, cookies, createFrame, createVideoElementHandle, extension as events, extension, fetch$1 as fetch, fetchCredentialedPermission, fetchLocalPermission, fetchPermission, gotoPermission, handleRevivableModules, hasForgedCookie, isBlockedFetchUrl, isBlockedFrameUrl, isExtensionExposed, isLocalNetworkUrl, isLocatorDenied, isLocatorUnsupported, isPermissionDenied, isTerminalError, isType, modifyRequestHeadersPermission, permissions, promptInstall, readCookiePermission, readExtensionHandshake, removeRequestHeaderRule, revive, setMissingExtensionHandler, setRequestHeaderRule, supportsOperation, type, waitForExtensionExposure };
237
+ export { ATTACH_FRAME_EVENT_KEY, AttachFrameOptions, AttachWindowOptions, BoxedVideoElement, CATEGORIES, CategoryGrant, CategoryMeta, CategoryRequest, CookieDetails, EXTENSION_ABI, Executor, ExtensionHandshake, ExtensionOperationUnsupportedError, ExtensionOutdatedError, FORGEABLE_HEADERS, FetchInit, Frame, FrameBackend, FrameBackendEvent, FrameDocumentEvent, FrameEventListener, FrameEventMap, FrameMessageEvent, FramePostMessageOptions, FrameWindowBlockedError, FrameWindowOptions, FrameWindowRefusal, FrameWindowRefusedError, Gate, GateTools, GotoOptions, HeaderOperation, LOCATOR_DENIED, LOCATOR_ERROR, LOCATOR_UNSUPPORTED, LegacyPermissionRequest, Locator, OperationRequest, PERMISSION_DENIED, PermissionCategory, PermissionDeniedError, PermissionGrant, PermissionRequest, ProxyFetchRequest, REQUIRED_EXTENSION_ABI, RemoteVideoElement, RequestHeaderRule, SelectorPart, SiteCookie, VideoElementState, WindowFrame, assertAttachableFrameUrl, assertFetchableUrl, assertForgeableHeaders, assertLockdownApplicable, assertOneCookieIdentity, attachFrame, attachFramePermission, isExtensionAvailable as available, box, cookies, createFrame, createVideoElementHandle, extension as events, extension, fetch$1 as fetch, fetchCredentialedPermission, fetchLocalPermission, fetchPermission, gotoPermission, handleRevivableModules, hasForgedCookie, isBlockedFetchUrl, isBlockedFrameUrl, isExtensionExposed, isLocalNetworkUrl, isLocatorDenied, isLocatorUnsupported, isPermissionDenied, isTerminalError, isType, modifyRequestHeadersPermission, permissions, promptInstall, readCookiePermission, readExtensionHandshake, removeRequestHeaderRule, revive, setMissingExtensionHandler, setRequestHeaderRule, supportsOperation, type, waitForExtensionExposure };
238
238
  }
239
239
  //#endregion
240
240
  export { readCookiePermission as A, FORGEABLE_HEADERS as B, RequestHeaderRule as C, CookieDetails as D, setRequestHeaderRule as E, fetchCredentialedPermission as F, LOCATOR_ERROR as G, assertOneCookieIdentity as H, fetchLocalPermission as I, isLocatorUnsupported as J, LOCATOR_UNSUPPORTED as K, fetchPermission as L, ProxyFetchRequest as M, assertFetchableUrl as N, SiteCookie as O, fetch$1 as P, isBlockedFetchUrl as R, HeaderOperation as S, removeRequestHeaderRule as T, hasForgedCookie as U, assertForgeableHeaders as V, LOCATOR_DENIED as W, isTerminalError as Y, PermissionDeniedError as _, extension as a, assertLockdownApplicable as b, setMissingExtensionHandler as c, ExtensionHandshake as d, ExtensionOperationUnsupportedError as f, PERMISSION_DENIED as g, supportsOperation as h, promptInstall as i, FetchInit as j, cookies as k, waitForExtensionExposure as l, REQUIRED_EXTENSION_ABI as m, fetch as n, isExtensionExposed as o, ExtensionOutdatedError as p, isLocatorDenied as q, isExtensionAvailable as r, readExtensionHandshake as s, extension_d_exports as t, EXTENSION_ABI as u, isPermissionDenied as v, modifyRequestHeadersPermission as w, isBlockedFrameUrl as x, assertAttachableFrameUrl as y, isLocalNetworkUrl as z };
@@ -0,0 +1,89 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, A as n, B as r, D as i, F as a, G as o, H as s, I as c, J as l, K as u, L as ee, M as te, N as ne, O as d, P as f, Q as p, R as m, U as h, V as g, W as _, X as v, Y as y, _ as b, a as x, at as S, b as C, d as w, f as T, g as E, h as D, i as O, it as k, j as A, k as re, m as j, n as M, nt as N, ot as P, p as F, q as I, r as L, rt as R, st as z, t as B, tt as V, v as H, w as U, x as W, y as G, z as K } from "./lib-FD1Ssqjt.js";
3
+ import { a as q, d as J } from "./api-CtiKFcK3.js";
4
+ import { t as Y } from "./proxy-DDwY3AVG.js";
5
+ import { available as X, fetch as ie } from "./desktop.js";
6
+ //#region src/extension-prompt.ts
7
+ var Z = async (e) => {
8
+ if (typeof window > "u") return !1;
9
+ if (I()) return !0;
10
+ let t = await q, n = null, r = new Promise((e) => {
11
+ n = () => {
12
+ I() && e(!0);
13
+ }, u.addEventListener("statuschange", n);
14
+ }), i = t.installPrompt.show(e).then(() => !1), a = await Promise.race([r, i]);
15
+ return n && u.removeEventListener("statuschange", n), await t.installPrompt.hide().catch(() => {}), a;
16
+ }, Q = null;
17
+ y(() => (Q ||= Z().then(() => void 0).finally(() => {
18
+ Q = null;
19
+ }), Q));
20
+ //#endregion
21
+ //#region src/auto.ts
22
+ var $ = () => typeof document < "u" && I(), ae = async (e, t) => {
23
+ if (J(e), t?.credentials === "include") {
24
+ if (typeof document > "u") throw Error("fetch with credentials needs the FKN extension, which only exists in window realms");
25
+ return c(e, t);
26
+ }
27
+ return $() ? c(e, {
28
+ ...t,
29
+ credentials: "omit"
30
+ }) : X() ? ie(e, t) : Y(e, t);
31
+ }, oe = /* @__PURE__ */ e({
32
+ ATTACH_FRAME_EVENT_KEY: () => O,
33
+ CATEGORIES: () => G,
34
+ EXTENSION_ABI: () => 3,
35
+ ExtensionOperationUnsupportedError: () => p,
36
+ ExtensionOutdatedError: () => t,
37
+ FORGEABLE_HEADERS: () => s,
38
+ FrameWindowBlockedError: () => w,
39
+ FrameWindowRefusedError: () => T,
40
+ LOCATOR_DENIED: () => U,
41
+ LOCATOR_ERROR: () => d,
42
+ LOCATOR_UNSUPPORTED: () => C,
43
+ PERMISSION_DENIED: () => B,
44
+ REQUIRED_EXTENSION_ABI: () => 0,
45
+ assertAttachableFrameUrl: () => E,
46
+ assertFetchableUrl: () => a,
47
+ assertForgeableHeaders: () => h,
48
+ assertLockdownApplicable: () => b,
49
+ assertOneCookieIdentity: () => _,
50
+ attachFrame: () => x,
51
+ attachFramePermission: () => F,
52
+ available: () => $,
53
+ box: () => R,
54
+ cookies: () => ne,
55
+ createFrame: () => j,
56
+ createVideoElementHandle: () => k,
57
+ events: () => u,
58
+ extension: () => u,
59
+ fetch: () => c,
60
+ fetchCredentialedPermission: () => ee,
61
+ fetchLocalPermission: () => m,
62
+ fetchPermission: () => K,
63
+ gotoPermission: () => D,
64
+ handleRevivableModules: () => N,
65
+ hasForgedCookie: () => o,
66
+ isBlockedFetchUrl: () => r,
67
+ isBlockedFrameUrl: () => H,
68
+ isExtensionExposed: () => I,
69
+ isLocalNetworkUrl: () => g,
70
+ isLocatorDenied: () => re,
71
+ isLocatorUnsupported: () => W,
72
+ isPermissionDenied: () => M,
73
+ isTerminalError: () => i,
74
+ isType: () => S,
75
+ modifyRequestHeadersPermission: () => n,
76
+ permissions: () => L,
77
+ promptInstall: () => Z,
78
+ readCookiePermission: () => f,
79
+ readExtensionHandshake: () => l,
80
+ removeRequestHeaderRule: () => A,
81
+ revive: () => P,
82
+ setMissingExtensionHandler: () => y,
83
+ setRequestHeaderRule: () => te,
84
+ supportsOperation: () => V,
85
+ type: () => z,
86
+ waitForExtensionExposure: () => v
87
+ });
88
+ //#endregion
89
+ export { Z as i, ae as n, $ as r, oe as t };
package/extension.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./lib-Cjd91q7g.cjs"),t=require("./extension-DSrUjoLw.cjs");exports.ATTACH_FRAME_EVENT_KEY=e.i,exports.CATEGORIES=e.D,exports.EXTENSION_ABI=e.Y,exports.ExtensionOperationUnsupportedError=e.X,exports.ExtensionOutdatedError=e.Z,exports.FORGEABLE_HEADERS=e.B,exports.FrameWindowBlockedError=e.d,exports.FrameWindowRefusedError=e.f,exports.LOCATOR_DENIED=e.C,exports.LOCATOR_ERROR=e.E,exports.LOCATOR_UNSUPPORTED=e.b,exports.PERMISSION_DENIED=e.t,exports.REQUIRED_EXTENSION_ABI=e.Q,exports.assertAttachableFrameUrl=e.g,exports.assertFetchableUrl=e.N,exports.assertForgeableHeaders=e.V,exports.assertLockdownApplicable=e._,exports.assertOneCookieIdentity=e.H,exports.attachFrame=e.a,exports.attachFramePermission=e.p,exports.available=t.r,exports.box=e.tt,exports.cookies=e.j,exports.createFrame=e.m,exports.createVideoElementHandle=e.nt,exports.events=e.W,exports.extension=e.W,exports.fetch=e.P,exports.fetchCredentialedPermission=e.F,exports.fetchLocalPermission=e.I,exports.fetchPermission=e.L,exports.gotoPermission=e.h,exports.handleRevivableModules=e.et,exports.hasForgedCookie=e.U,exports.isBlockedFetchUrl=e.R,exports.isBlockedFrameUrl=e.v,exports.isExtensionExposed=e.G,exports.isLocalNetworkUrl=e.z,exports.isLocatorDenied=e.y,exports.isLocatorUnsupported=e.S,exports.isPermissionDenied=e.n,exports.isTerminalError=e.T,exports.isType=e.rt,exports.modifyRequestHeadersPermission=e.O,exports.permissions=e.r,exports.promptInstall=t.i,exports.readCookiePermission=e.M,exports.readExtensionHandshake=e.K,exports.removeRequestHeaderRule=e.k,exports.revive=e.it,exports.setMissingExtensionHandler=e.q,exports.setRequestHeaderRule=e.A,exports.supportsOperation=e.$,exports.type=e.at,exports.waitForExtensionExposure=e.J;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./lib-DYKLnpWs.cjs"),t=require("./extension-B7jDaJVp.cjs");exports.ATTACH_FRAME_EVENT_KEY=e.i,exports.CATEGORIES=e.y,exports.EXTENSION_ABI=e.Z,exports.ExtensionOperationUnsupportedError=e.Q,exports.ExtensionOutdatedError=e.$,exports.FORGEABLE_HEADERS=e.H,exports.FrameWindowBlockedError=e.d,exports.FrameWindowRefusedError=e.f,exports.LOCATOR_DENIED=e.w,exports.LOCATOR_ERROR=e.O,exports.LOCATOR_UNSUPPORTED=e.b,exports.PERMISSION_DENIED=e.t,exports.REQUIRED_EXTENSION_ABI=e.et,exports.assertAttachableFrameUrl=e.g,exports.assertFetchableUrl=e.F,exports.assertForgeableHeaders=e.U,exports.assertLockdownApplicable=e._,exports.assertOneCookieIdentity=e.W,exports.attachFrame=e.a,exports.attachFramePermission=e.p,exports.available=t.r,exports.box=e.rt,exports.cookies=e.N,exports.createFrame=e.m,exports.createVideoElementHandle=e.it,exports.events=e.K,exports.extension=e.K,exports.fetch=e.I,exports.fetchCredentialedPermission=e.L,exports.fetchLocalPermission=e.R,exports.fetchPermission=e.z,exports.gotoPermission=e.h,exports.handleRevivableModules=e.nt,exports.hasForgedCookie=e.G,exports.isBlockedFetchUrl=e.B,exports.isBlockedFrameUrl=e.v,exports.isExtensionExposed=e.q,exports.isLocalNetworkUrl=e.V,exports.isLocatorDenied=e.k,exports.isLocatorUnsupported=e.x,exports.isPermissionDenied=e.n,exports.isTerminalError=e.D,exports.isType=e.at,exports.modifyRequestHeadersPermission=e.A,exports.permissions=e.r,exports.promptInstall=t.i,exports.readCookiePermission=e.P,exports.readExtensionHandshake=e.J,exports.removeRequestHeaderRule=e.j,exports.revive=e.ot,exports.setMissingExtensionHandler=e.Y,exports.setRequestHeaderRule=e.M,exports.supportsOperation=e.tt,exports.type=e.st,exports.waitForExtensionExposure=e.X;
package/extension.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { A as VideoElementState, B as SelectorPart, C as permissions, D as handleRevivableModules, E as PermissionCategory, F as type, I as Executor, L as Gate, M as createVideoElementHandle, N as isType, O as BoxedVideoElement, P as revive, R as GateTools, S as PermissionRequest, T as CategoryMeta, _ as gotoPermission, a as AttachWindowOptions, b as LegacyPermissionRequest, c as FrameWindowBlockedError, d as FrameWindowRefusedError, f as GotoOptions, g as createFrame, h as attachFramePermission, i as AttachFrameOptions, j as box, k as RemoteVideoElement, l as FrameWindowOptions, m as WindowFrame, n as attachFrame, o as Frame, p as Locator, s as FrameBackend, t as ATTACH_FRAME_EVENT_KEY, u as FrameWindowRefusal, v as CategoryGrant, w as CATEGORIES, x as PermissionGrant, y as CategoryRequest, z as OperationRequest } from "./index-C_Lqta5o.js";
2
- import { A as readCookiePermission, B as FORGEABLE_HEADERS, C as RequestHeaderRule, D as CookieDetails, E as setRequestHeaderRule, F as fetchCredentialedPermission, G as LOCATOR_ERROR, H as assertOneCookieIdentity, I as fetchLocalPermission, J as isLocatorUnsupported, K as LOCATOR_UNSUPPORTED, L as fetchPermission, M as ProxyFetchRequest, N as assertFetchableUrl, O as SiteCookie, P as fetch, R as isBlockedFetchUrl, S as HeaderOperation, T as removeRequestHeaderRule, U as hasForgedCookie, V as assertForgeableHeaders, W as LOCATOR_DENIED, Y as isTerminalError, _ as PermissionDeniedError, a as extension, b as assertLockdownApplicable, c as setMissingExtensionHandler, d as ExtensionHandshake, f as ExtensionOperationUnsupportedError, g as PERMISSION_DENIED, h as supportsOperation, i as promptInstall, j as FetchInit, k as cookies, l as waitForExtensionExposure, m as REQUIRED_EXTENSION_ABI, o as isExtensionExposed, p as ExtensionOutdatedError, q as isLocatorDenied, r as isExtensionAvailable, s as readExtensionHandshake, u as EXTENSION_ABI, v as isPermissionDenied, w as modifyRequestHeadersPermission, x as isBlockedFrameUrl, y as assertAttachableFrameUrl, z as isLocalNetworkUrl } from "./extension-TRYu_aG-.js";
3
- export { ATTACH_FRAME_EVENT_KEY, AttachFrameOptions, AttachWindowOptions, BoxedVideoElement, CATEGORIES, CategoryGrant, type CategoryMeta, CategoryRequest, CookieDetails, EXTENSION_ABI, type Executor, type ExtensionHandshake, ExtensionOperationUnsupportedError, ExtensionOutdatedError, FORGEABLE_HEADERS, FetchInit, Frame, FrameBackend, FrameWindowBlockedError, FrameWindowOptions, FrameWindowRefusal, FrameWindowRefusedError, type Gate, type GateTools, GotoOptions, HeaderOperation, LOCATOR_DENIED, LOCATOR_ERROR, LOCATOR_UNSUPPORTED, LegacyPermissionRequest, Locator, type OperationRequest, PERMISSION_DENIED, type PermissionCategory, type PermissionDeniedError, PermissionGrant, PermissionRequest, ProxyFetchRequest, REQUIRED_EXTENSION_ABI, RemoteVideoElement, RequestHeaderRule, type SelectorPart, SiteCookie, VideoElementState, WindowFrame, assertAttachableFrameUrl, assertFetchableUrl, assertForgeableHeaders, assertLockdownApplicable, assertOneCookieIdentity, attachFrame, attachFramePermission, isExtensionAvailable as available, box, cookies, createFrame, createVideoElementHandle, extension as events, extension, fetch, fetchCredentialedPermission, fetchLocalPermission, fetchPermission, gotoPermission, handleRevivableModules, hasForgedCookie, isBlockedFetchUrl, isBlockedFrameUrl, isExtensionExposed, isLocalNetworkUrl, isLocatorDenied, isLocatorUnsupported, isPermissionDenied, isTerminalError, isType, modifyRequestHeadersPermission, permissions, promptInstall, readCookiePermission, readExtensionHandshake, removeRequestHeaderRule, revive, setMissingExtensionHandler, setRequestHeaderRule, supportsOperation, type, waitForExtensionExposure };
1
+ import { A as CATEGORIES, B as revive, C as gotoPermission, D as PermissionGrant, E as LegacyPermissionRequest, F as RemoteVideoElement, G as OperationRequest, H as Executor, I as VideoElementState, K as SelectorPart, L as box, M as PermissionCategory, N as handleRevivableModules, O as PermissionRequest, P as BoxedVideoElement, R as createVideoElementHandle, S as createFrame, T as CategoryRequest, U as Gate, V as type, W as GateTools, _ as FrameWindowRefusedError, a as AttachWindowOptions, b as WindowFrame, c as FrameBackendEvent, d as FrameEventMap, f as FrameMessageEvent, g as FrameWindowRefusal, h as FrameWindowOptions, i as AttachFrameOptions, j as CategoryMeta, k as permissions, l as FrameDocumentEvent, m as FrameWindowBlockedError, n as attachFrame, o as Frame, p as FramePostMessageOptions, s as FrameBackend, t as ATTACH_FRAME_EVENT_KEY, u as FrameEventListener, v as GotoOptions, w as CategoryGrant, x as attachFramePermission, y as Locator, z as isType } from "./index-BUviSXsX.js";
2
+ import { A as readCookiePermission, B as FORGEABLE_HEADERS, C as RequestHeaderRule, D as CookieDetails, E as setRequestHeaderRule, F as fetchCredentialedPermission, G as LOCATOR_ERROR, H as assertOneCookieIdentity, I as fetchLocalPermission, J as isLocatorUnsupported, K as LOCATOR_UNSUPPORTED, L as fetchPermission, M as ProxyFetchRequest, N as assertFetchableUrl, O as SiteCookie, P as fetch, R as isBlockedFetchUrl, S as HeaderOperation, T as removeRequestHeaderRule, U as hasForgedCookie, V as assertForgeableHeaders, W as LOCATOR_DENIED, Y as isTerminalError, _ as PermissionDeniedError, a as extension, b as assertLockdownApplicable, c as setMissingExtensionHandler, d as ExtensionHandshake, f as ExtensionOperationUnsupportedError, g as PERMISSION_DENIED, h as supportsOperation, i as promptInstall, j as FetchInit, k as cookies, l as waitForExtensionExposure, m as REQUIRED_EXTENSION_ABI, o as isExtensionExposed, p as ExtensionOutdatedError, q as isLocatorDenied, r as isExtensionAvailable, s as readExtensionHandshake, u as EXTENSION_ABI, v as isPermissionDenied, w as modifyRequestHeadersPermission, x as isBlockedFrameUrl, y as assertAttachableFrameUrl, z as isLocalNetworkUrl } from "./extension-CqOhrS15.js";
3
+ export { ATTACH_FRAME_EVENT_KEY, AttachFrameOptions, AttachWindowOptions, BoxedVideoElement, CATEGORIES, CategoryGrant, type CategoryMeta, CategoryRequest, CookieDetails, EXTENSION_ABI, type Executor, type ExtensionHandshake, ExtensionOperationUnsupportedError, ExtensionOutdatedError, FORGEABLE_HEADERS, FetchInit, Frame, FrameBackend, FrameBackendEvent, FrameDocumentEvent, FrameEventListener, FrameEventMap, FrameMessageEvent, FramePostMessageOptions, FrameWindowBlockedError, FrameWindowOptions, FrameWindowRefusal, FrameWindowRefusedError, type Gate, type GateTools, GotoOptions, HeaderOperation, LOCATOR_DENIED, LOCATOR_ERROR, LOCATOR_UNSUPPORTED, LegacyPermissionRequest, Locator, type OperationRequest, PERMISSION_DENIED, type PermissionCategory, type PermissionDeniedError, PermissionGrant, PermissionRequest, ProxyFetchRequest, REQUIRED_EXTENSION_ABI, RemoteVideoElement, RequestHeaderRule, type SelectorPart, SiteCookie, VideoElementState, WindowFrame, assertAttachableFrameUrl, assertFetchableUrl, assertForgeableHeaders, assertLockdownApplicable, assertOneCookieIdentity, attachFrame, attachFramePermission, isExtensionAvailable as available, box, cookies, createFrame, createVideoElementHandle, extension as events, extension, fetch, fetchCredentialedPermission, fetchLocalPermission, fetchPermission, gotoPermission, handleRevivableModules, hasForgedCookie, isBlockedFetchUrl, isBlockedFrameUrl, isExtensionExposed, isLocalNetworkUrl, isLocatorDenied, isLocatorUnsupported, isPermissionDenied, isTerminalError, isType, modifyRequestHeadersPermission, permissions, promptInstall, readCookiePermission, readExtensionHandshake, removeRequestHeaderRule, revive, setMissingExtensionHandler, setRequestHeaderRule, supportsOperation, type, waitForExtensionExposure };
package/extension.js CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as S, W as C, X as w, Y as T, Z as E, _ as D, a as O, at as k, b as A, d as j, et as M, f as N, g as P, h as F, i as I, it as L, j as R, k as z, m as B, n as V, nt as H, p as U, q as W, r as G, rt as K, t as q, tt as J, v as Y, y as X, z as Z } from "./lib-B-jGWfsv.js";
2
- import { i as Q, r as $ } from "./extension-DJQ0oYdk.js";
3
- export { I as ATTACH_FRAME_EVENT_KEY, i as CATEGORIES, T as EXTENSION_ABI, w as ExtensionOperationUnsupportedError, E as ExtensionOutdatedError, n as FORGEABLE_HEADERS, j as FrameWindowBlockedError, N as FrameWindowRefusedError, r as LOCATOR_DENIED, a as LOCATOR_ERROR, A as LOCATOR_UNSUPPORTED, q as PERMISSION_DENIED, _ as REQUIRED_EXTENSION_ABI, P as assertAttachableFrameUrl, m as assertFetchableUrl, S as assertForgeableHeaders, D as assertLockdownApplicable, c as assertOneCookieIdentity, O as attachFrame, U as attachFramePermission, $ as available, J as box, R as cookies, B as createFrame, H as createVideoElementHandle, C as events, C as extension, g as fetch, o as fetchCredentialedPermission, l as fetchLocalPermission, f as fetchPermission, F as gotoPermission, M as handleRevivableModules, x as hasForgedCookie, v as isBlockedFetchUrl, Y as isBlockedFrameUrl, s as isExtensionExposed, Z as isLocalNetworkUrl, X as isLocatorDenied, y as isLocatorUnsupported, V as isPermissionDenied, b as isTerminalError, K as isType, h as modifyRequestHeadersPermission, G as permissions, Q as promptInstall, p as readCookiePermission, d as readExtensionHandshake, z as removeRequestHeaderRule, L as revive, W as setMissingExtensionHandler, t as setRequestHeaderRule, e as supportsOperation, k as type, u as waitForExtensionExposure };
1
+ import { $ as e, A as t, B as n, D as r, F as i, G as a, H as o, I as s, J as c, K as l, L as u, M as d, N as f, O as p, P as m, Q as h, R as g, U as _, V as v, W as y, X as b, Y as x, Z as S, _ as C, a as w, at as T, b as E, d as D, et as O, f as k, g as A, h as j, i as M, it as N, j as P, k as F, m as I, n as L, nt as R, ot as z, p as B, q as V, r as H, rt as U, st as W, t as G, tt as K, v as q, w as J, x as Y, y as X, z as Z } from "./lib-FD1Ssqjt.js";
2
+ import { i as Q, r as $ } from "./extension-sNRjVbET.js";
3
+ export { M as ATTACH_FRAME_EVENT_KEY, X as CATEGORIES, S as EXTENSION_ABI, h as ExtensionOperationUnsupportedError, e as ExtensionOutdatedError, o as FORGEABLE_HEADERS, D as FrameWindowBlockedError, k as FrameWindowRefusedError, J as LOCATOR_DENIED, p as LOCATOR_ERROR, E as LOCATOR_UNSUPPORTED, G as PERMISSION_DENIED, O as REQUIRED_EXTENSION_ABI, A as assertAttachableFrameUrl, i as assertFetchableUrl, _ as assertForgeableHeaders, C as assertLockdownApplicable, y as assertOneCookieIdentity, w as attachFrame, B as attachFramePermission, $ as available, U as box, f as cookies, I as createFrame, N as createVideoElementHandle, l as events, l as extension, s as fetch, u as fetchCredentialedPermission, g as fetchLocalPermission, Z as fetchPermission, j as gotoPermission, R as handleRevivableModules, a as hasForgedCookie, n as isBlockedFetchUrl, q as isBlockedFrameUrl, V as isExtensionExposed, v as isLocalNetworkUrl, F as isLocatorDenied, Y as isLocatorUnsupported, L as isPermissionDenied, r as isTerminalError, T as isType, t as modifyRequestHeadersPermission, H as permissions, Q as promptInstall, m as readCookiePermission, c as readExtensionHandshake, P as removeRequestHeaderRule, z as revive, x as setMissingExtensionHandler, d as setRequestHeaderRule, K as supportsOperation, W as type, b as waitForExtensionExposure };
@@ -0,0 +1 @@
1
+ var e={scope:`read.text`,category:`storage`,severity:1,chip:`read text`,title:`Read text from the page`,description:`Lets the app see the text shown on this page.`},t={scope:`read.info`,category:`storage`,severity:1,chip:`read details`,title:`Read info from the page`,description:`Lets the app read a detail of a part of the page.`},n={scope:`read.visible`,category:`storage`,severity:0,title:`See what’s visible on the page`,description:`Lets the app check which elements are currently on screen.`},r={scope:`read.check`,category:`storage`,severity:0,title:`Check if something is on the page`,description:`Lets the app test whether a specific element exists.`},i={scope:`read.count`,category:`storage`,severity:0,title:`Count items on the page`,description:`Lets the app count how many matching elements are present.`},a={scope:`act.click`,category:`interaction`,severity:3,chip:`click`,title:`Click on the page`,description:`Lets the app press buttons or links for you.`},o={scope:`act.type`,category:`interaction`,severity:1,chip:`type`,title:`Type into a text field`,description:`Lets the app fill in form fields on your behalf.`},s={scope:`act.hover`,category:`interaction`,severity:1,chip:`hover`,title:`Hover over the page`,description:`Lets the app point at things to reveal menus or tooltips.`},c={scope:`media.video`,category:`interaction`,severity:0,title:`Control video playback`,description:`Lets the app play, pause, seek, and read the video on the page.`},l={scope:`media.appear`,category:`interaction`,severity:0,title:`Change page appearance`,description:`Lets the app restyle parts of the page (safely filtered).`},u={scope:`media.appearU`,category:`evaluation`,severity:2,chip:`unfiltered styles`,unsafe:!0,title:`Change page appearance (unsafe)`,description:`Lets the app restyle the page WITHOUT safety filtering. Could be used to leak data over the network.`},d={scope:`frame.evaluate`,category:`evaluation`,severity:3,chip:`run code`,unsafe:!0,title:`Run the app’s code on this site`,description:`Lets the app run its own script inside this site, with full access to the page and the data it shows.`},f={scope:`frame.message`,category:`evaluation`,severity:3,chip:`message the page`,unsafe:!0,title:`Send messages to this site`,description:`Lets the app send messages and open channels into this site, which its scripts receive as their own.`},p=e=>e?.noSanitize?u:l,m={scope:`frame.fetchRead`,category:`network`,severity:3,chip:`load`,unsafe:!0,title:`Read your account data on this site`,description:`Lets the app read pages and data from this site as you, using the session in the frame.`},h={scope:`frame.fetchWrite`,category:`network`,severity:3,chip:`send`,unsafe:!0,title:`Change your account data on this site`,description:`Lets the app send changes to this site as you, using the session in the frame.`},g=new Set([`GET`,`HEAD`,`OPTIONS`]),_=(e,t)=>g.has((t?.method??`GET`).toUpperCase())?m:h,v={click:a,fill:o,hover:s,textContent:e,getAttribute:t,isVisible:n,count:i,exists:r,videoElement:c,addStyleTag:p,fetch:_,evaluate:d},y={postMessage:f};[e,t,n,r,i,a,o,s,c,l,u,m,h,d,f].map(e=>e.scope);var b={...v,...y},x=(e,t)=>{let n=b[e];return n?(typeof n==`function`?n(...t):n).scope:null},S=(e,t)=>{try{return new URL(e,t)}catch{return}},C=e=>{let t=S(e,`https://s.invalid/`),n=S(e,`http://s.invalid/`);if(!t||!n)return{kind:`invalid`};let r=S(e);return!r||r.href!==t.href||r.href!==n.href?{kind:`relative`}:r.protocol!==`https:`&&r.protocol!==`http:`?{kind:`unsupported`,protocol:r.protocol}:{kind:`absolute`,host:r.hostname,protocol:r.protocol}},w=/^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/,T=/^\[[0-9a-f:.]+\]$/,E=e=>{try{return new URL(`http://${e}/`).hostname}catch{return}},D=(e,{ipv6:t=!1}={})=>{let n=[];for(let r of e){let e=r.trim().toLowerCase();if(!e||e.length>253)continue;let i=w.test(e)?e:t&&T.test(e)?E(e):void 0;i&&!n.includes(i)&&n.push(i)}return n};Object.defineProperty(exports,"_",{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,"d",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"f",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"g",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"h",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"l",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"m",{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"p",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,"u",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"v",{enumerable:!0,get:function(){return e}}),Object.defineProperty(exports,"y",{enumerable:!0,get:function(){return n}});
@@ -72,7 +72,23 @@ var e = {
72
72
  unsafe: !0,
73
73
  title: "Change page appearance (unsafe)",
74
74
  description: "Lets the app restyle the page WITHOUT safety filtering. Could be used to leak data over the network."
75
- }, d = (e) => e?.noSanitize ? u : l, f = {
75
+ }, d = {
76
+ scope: "frame.evaluate",
77
+ category: "evaluation",
78
+ severity: 3,
79
+ chip: "run code",
80
+ unsafe: !0,
81
+ title: "Run the app’s code on this site",
82
+ description: "Lets the app run its own script inside this site, with full access to the page and the data it shows."
83
+ }, f = {
84
+ scope: "frame.message",
85
+ category: "evaluation",
86
+ severity: 3,
87
+ chip: "message the page",
88
+ unsafe: !0,
89
+ title: "Send messages to this site",
90
+ description: "Lets the app send messages and open channels into this site, which its scripts receive as their own."
91
+ }, p = (e) => e?.noSanitize ? u : l, m = {
76
92
  scope: "frame.fetchRead",
77
93
  category: "network",
78
94
  severity: 3,
@@ -80,7 +96,7 @@ var e = {
80
96
  unsafe: !0,
81
97
  title: "Read your account data on this site",
82
98
  description: "Lets the app read pages and data from this site as you, using the session in the frame."
83
- }, p = {
99
+ }, h = {
84
100
  scope: "frame.fetchWrite",
85
101
  category: "network",
86
102
  severity: 3,
@@ -88,11 +104,11 @@ var e = {
88
104
  unsafe: !0,
89
105
  title: "Change your account data on this site",
90
106
  description: "Lets the app send changes to this site as you, using the session in the frame."
91
- }, m = /* @__PURE__ */ new Set([
107
+ }, g = /* @__PURE__ */ new Set([
92
108
  "GET",
93
109
  "HEAD",
94
110
  "OPTIONS"
95
- ]), h = (e, t) => m.has((t?.method ?? "GET").toUpperCase()) ? f : p, g = {
111
+ ]), _ = (e, t) => g.has((t?.method ?? "GET").toUpperCase()) ? m : h, v = {
96
112
  click: a,
97
113
  fill: o,
98
114
  hover: s,
@@ -102,9 +118,10 @@ var e = {
102
118
  count: i,
103
119
  exists: r,
104
120
  videoElement: c,
105
- addStyleTag: d,
106
- fetch: h
107
- };
121
+ addStyleTag: p,
122
+ fetch: _,
123
+ evaluate: d
124
+ }, y = { postMessage: f };
108
125
  [
109
126
  e,
110
127
  t,
@@ -117,22 +134,27 @@ var e = {
117
134
  c,
118
135
  l,
119
136
  u,
120
- f,
121
- p
137
+ m,
138
+ h,
139
+ d,
140
+ f
122
141
  ].map((e) => e.scope);
123
- var _ = g, v = (e, t) => {
124
- let n = _[e];
142
+ var b = {
143
+ ...v,
144
+ ...y
145
+ }, x = (e, t) => {
146
+ let n = b[e];
125
147
  return n ? (typeof n == "function" ? n(...t) : n).scope : null;
126
- }, y = (e, t) => {
148
+ }, S = (e, t) => {
127
149
  try {
128
150
  return new URL(e, t);
129
151
  } catch {
130
152
  return;
131
153
  }
132
- }, b = (e) => {
133
- let t = y(e, "https://s.invalid/"), n = y(e, "http://s.invalid/");
154
+ }, C = (e) => {
155
+ let t = S(e, "https://s.invalid/"), n = S(e, "http://s.invalid/");
134
156
  if (!t || !n) return { kind: "invalid" };
135
- let r = y(e);
157
+ let r = S(e);
136
158
  return !r || r.href !== t.href || r.href !== n.href ? { kind: "relative" } : r.protocol !== "https:" && r.protocol !== "http:" ? {
137
159
  kind: "unsupported",
138
160
  protocol: r.protocol
@@ -141,21 +163,21 @@ var _ = g, v = (e, t) => {
141
163
  host: r.hostname,
142
164
  protocol: r.protocol
143
165
  };
144
- }, x = /^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/, S = /^\[[0-9a-f:.]+\]$/, C = (e) => {
166
+ }, w = /^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/, T = /^\[[0-9a-f:.]+\]$/, E = (e) => {
145
167
  try {
146
168
  return new URL(`http://${e}/`).hostname;
147
169
  } catch {
148
170
  return;
149
171
  }
150
- }, w = (e, { ipv6: t = !1 } = {}) => {
172
+ }, D = (e, { ipv6: t = !1 } = {}) => {
151
173
  let n = [];
152
174
  for (let r of e) {
153
175
  let e = r.trim().toLowerCase();
154
176
  if (!e || e.length > 253) continue;
155
- let i = x.test(e) ? e : t && S.test(e) ? C(e) : void 0;
177
+ let i = w.test(e) ? e : t && T.test(e) ? E(e) : void 0;
156
178
  i && !n.includes(i) && n.push(i);
157
179
  }
158
180
  return n;
159
181
  };
160
182
  //#endregion
161
- export { n as _, l as a, b as c, c as d, v as f, e as g, t as h, o as i, f as l, i as m, a as n, u as o, r as p, s as r, h as s, w as t, p as u };
183
+ export { t as _, l as a, _ as c, h as d, c as f, i as g, r as h, o as i, C as l, x as m, a as n, u as o, f as p, s as r, d as s, D as t, m as u, e as v, n as y };
package/http.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as Socket, t as Server$1 } from "./net-0SlODFSM.js";
1
+ import { n as Socket, t as Server$1 } from "./net-eCY_QD4P.js";
2
2
  import { Buffer } from "buffer";
3
3
  import { Stream } from "stream";
4
4
  import { IncomingHttpHeaders, OutgoingHttpHeaders, RequestOptions } from "http";