@fkn/lib 0.9.63 → 0.9.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -0
- package/account-Bm7uIcQo.d.ts +39 -0
- package/account-Uh0-1Cbp.js +22 -0
- package/{account-generation-B0cJrpDx.cjs → account-generation-ACCBzaI-.cjs} +1 -1
- package/{account-generation-u31dhamM.js → account-generation-BKHNe-jL.js} +2 -3
- package/account-m2iCmNui.cjs +1 -0
- package/{account-storage-ZkzqZp3A.js → account-storage-BmCVutNL.js} +4 -5
- package/{account-storage-Co9IvkPr.d.ts → account-storage-UmSfF63A.d.ts} +1 -66
- package/{account-storage-BnohkyMJ.cjs → account-storage-dYWDpqsr.cjs} +1 -1
- package/account.cjs +1 -1
- package/account.d.ts +3 -40
- package/account.js +1 -23
- package/{api-xh6lzApn.d.ts → api-0Yp9uZcV.d.ts} +3 -7
- package/{api-Di2Ff3jS.js → api-DRglK7ft.js} +115 -156
- package/api-DrvhPN56.cjs +3 -0
- package/api.cjs +1 -1
- package/api.d.ts +2 -2
- package/api.js +1 -2
- package/attach-policy.d.ts +0 -4
- package/attach-policy.js +2 -3
- package/broker-frame-CF4-yXtj.cjs +9 -0
- package/broker-frame-vjSpBa8d.js +51 -0
- package/broker-frame.cjs +1 -0
- package/broker-frame.d.ts +12 -0
- package/broker-frame.js +1 -0
- package/{busy-DsMWrSzc.js → busy-C1JPjoZ_.js} +1 -2
- package/cloud/dgram.cjs +1 -1
- package/cloud/dgram.d.ts +1 -1
- package/cloud/dgram.js +1 -2
- package/cloud/dns.cjs +1 -1
- package/cloud/dns.d.ts +2 -2
- package/cloud/dns.js +1 -2
- package/cloud/fetch.cjs +1 -1
- package/cloud/fetch.d.ts +1 -1
- package/cloud/fetch.js +1 -2
- package/cloud/fs/promises.cjs +1 -1
- package/cloud/fs/promises.d.ts +3 -5
- package/cloud/fs/promises.js +2 -3
- package/cloud/fs.cjs +1 -1
- package/cloud/fs.d.ts +4 -4
- package/cloud/fs.js +4 -34
- package/cloud/http.cjs +1 -1
- package/cloud/http.d.ts +1 -1
- package/cloud/http.js +1 -2
- package/cloud/net.cjs +1 -1
- package/cloud/net.d.ts +1 -1
- package/cloud/net.js +3 -3
- package/{cloud-CI7FFRMC.d.ts → cloud-BoH54gaM.d.ts} +7 -11
- package/{cloud-C6rG_aod.js → cloud-C7StNncS.js} +17 -17
- package/cloud-TN0eDUy3.cjs +1 -0
- package/cloud.cjs +1 -1
- package/cloud.d.ts +7 -7
- package/cloud.js +7 -7
- package/connect-button-2FmOM8ai.d.ts +2 -0
- package/{connect-button-DtsN3X1J.js → connect-button-C1wKkIhh.js} +1 -2
- package/{contract-BGMJVvTg.d.ts → contract-0rua6Wsh.d.ts} +11 -6
- package/contract.d.ts +3 -3
- package/contract.js +1 -2
- package/desktop-DOubT4ES.d.ts +57 -0
- package/desktop-vXKU4wEK.cjs +1 -0
- package/desktop-xTT7ciGX.js +50 -0
- package/desktop.cjs +1 -1
- package/desktop.d.ts +2 -58
- package/desktop.js +1 -51
- package/dgram-BBbLokVF.js +397 -0
- package/dgram-BYk-QDHW.d.ts +118 -0
- package/dgram-D9ljiUFh.cjs +1 -0
- package/dgram.cjs +1 -1
- package/dgram.d.ts +2 -119
- package/dgram.js +1 -410
- package/dns-2v96zoEh.cjs +1 -0
- package/dns-DyB4K2oE.d.ts +9 -0
- package/dns-o8DLFjP1.js +5 -0
- package/dns.cjs +1 -1
- package/dns.d.ts +3 -10
- package/dns.js +1 -6
- package/extension-BXBjpypy.cjs +1 -0
- package/{extension-C3_aJX7C.js → extension-D5UMnEmQ.js} +11 -12
- package/{extension-C1bcizcn.d.ts → extension-D98KM8W7.d.ts} +1 -27
- package/extension.cjs +1 -1
- package/extension.d.ts +2 -2
- package/extension.js +2 -2
- package/fs/promises.cjs +1 -1
- package/fs/promises.d.ts +2 -4
- package/fs/promises.js +2 -3
- package/fs--MLHvMW-.cjs +1 -0
- package/fs-BX_ghRy0.cjs +1 -0
- package/fs-BnWXGRik.js +33 -0
- package/{fs-DCJAYoYy.d.ts → fs-ChOYC6VD.d.ts} +3 -4
- package/{fs-DgdN2HPt.js → fs-Cw7CcUhx.js} +17 -41
- package/fs.cjs +1 -1
- package/fs.d.ts +4 -4
- package/fs.js +2 -2
- package/{hosts-t7CKGTRz.js → hosts-HUfgMimI.js} +1 -2
- package/http-BE3UBktN.cjs +9 -0
- package/http-CDhG4bUc.d.ts +187 -0
- package/http-DIDjdm08.js +523 -0
- package/http.cjs +1 -9
- package/http.d.ts +2 -188
- package/http.js +1 -542
- package/index-CUWTpQKP.d.ts +87 -0
- package/{index-BQgZVQl7.d.ts → index-CcVwh9yz.d.ts} +0 -2
- package/{index-C5DdoMGo.d.ts → index-Cu5EcdK0.d.ts} +0 -59
- package/{index-57lTXnoe.d.ts → index-D6GPJ4Ow.d.ts} +29 -26
- package/index.cjs +1 -1
- package/index.d.ts +17 -25
- package/index.js +22 -27
- package/lib-Bs-g5jyp.cjs +53 -0
- package/{lib-BrsqpUkv.js → lib-CtJaID_y.js} +7 -31
- package/{messages-AdPfdoLV.d.ts → messages-B9dOXntM.d.ts} +0 -2
- package/messages.d.ts +1 -1
- package/messages.js +1 -2
- package/net-COkJw8lV.js +286 -0
- package/net-Dk2kqtgE.cjs +1 -0
- package/{net-BpyIeQ8r.d.ts → net-mVAYXs8e.d.ts} +5 -7
- package/net.cjs +1 -1
- package/net.d.ts +1 -1
- package/net.js +3 -323
- package/{node-fs-DY2fO5zd.js → node-fs-B4pY08Kc.js} +3 -10
- package/node-fs-DN0ejGTL.cjs +1 -0
- package/opfs/promises.cjs +1 -1
- package/opfs/promises.d.ts +2 -4
- package/opfs/promises.js +2 -3
- package/{opfs-D0goLAQW.js → opfs-CzCfVam3.js} +2 -3
- package/opfs-D3pYzYRc.js +35 -0
- package/opfs-DuXvTgIl.cjs +1 -0
- package/opfs.cjs +1 -1
- package/opfs.d.ts +3 -88
- package/opfs.js +1 -36
- package/package.json +6 -1
- package/packages-BEadIy_h.d.ts +155 -0
- package/packages-Cws_rcgf.js +346 -0
- package/packages-DT8vPB5_.cjs +1 -0
- package/packages.cjs +1 -1
- package/packages.d.ts +3 -156
- package/packages.js +1 -347
- package/{proxy-tsVhjcl-.js → proxy-BBAQxJmP.js} +13 -13
- package/{proxy-Dz60YyYy.d.ts → proxy-BP40IXYD.d.ts} +2 -4
- package/proxy-DVgGp6A8.cjs +1 -0
- package/react.cjs +1 -1
- package/react.d.ts +16 -4
- package/react.js +96 -7
- package/{relay-choice-BGwXRC5d.js → relay-choice-Bb3oP2gw.js} +1 -2
- package/{relay-choice-5yUPI-tJ.d.ts → relay-choice-DOUttUnL.d.ts} +2 -4
- package/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
- package/rooms-C6mbannC.d.ts +227 -0
- package/rooms-DHFS9cwA.cjs +1 -0
- package/rooms-DP5stTEr.js +300 -0
- package/rooms.cjs +1 -1
- package/rooms.d.ts +3 -228
- package/rooms.js +1 -301
- package/storage-BCjYihUO.cjs +1 -0
- package/storage-BhfImh_2.js +136 -0
- package/storage-DpCLksAa.d.ts +68 -0
- package/storage.cjs +1 -1
- package/storage.d.ts +3 -69
- package/storage.js +1 -137
- package/{utils-Cyq8uJiy.js → utils-DtWP-E9x.js} +1 -2
- package/{wire-Fk5pJaoy.d.ts → wire-DhmLnYEU.d.ts} +0 -2
- package/wire.d.ts +1 -1
- package/wire.js +1 -2
- package/api-BSk3dc_X.cjs +0 -3
- package/cloud-BoiHKoRZ.cjs +0 -1
- package/connect-button-Cp0NS95-.d.ts +0 -4
- package/extension-Crv4aUAm.cjs +0 -1
- package/fs-CjQTj3FA.cjs +0 -1
- package/lib-C_X3WR4G.cjs +0 -53
- package/node-fs-vsWuoMGa.cjs +0 -1
- package/proxy-BA92hkId.cjs +0 -1
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { D as RelayChoice } from "./index-Cu5EcdK0.js";
|
|
2
|
+
import { n as Socket, t as Server$1 } from "./net-mVAYXs8e.js";
|
|
3
|
+
import { Buffer } from "buffer";
|
|
4
|
+
import { Stream } from "stream";
|
|
5
|
+
import { IncomingHttpHeaders, OutgoingHttpHeaders, RequestOptions } from "http";
|
|
6
|
+
declare namespace http_d_exports {
|
|
7
|
+
export { Agent, ClientRequest, ClientRequestArgs, HTTPParser, IncomingMessage, METHODS, ParsedHead, RequestListener, STATUS_CODES, Server, ServerResponse, ServerResponseOptions, _default, createServer, _default as default, get, globalAgent, request };
|
|
8
|
+
}
|
|
9
|
+
declare const METHODS: string[];
|
|
10
|
+
declare const STATUS_CODES: Record<number, string>;
|
|
11
|
+
interface ParsedHead {
|
|
12
|
+
/** request only */
|
|
13
|
+
method?: string;
|
|
14
|
+
/** request only */
|
|
15
|
+
url?: string;
|
|
16
|
+
/** response only */
|
|
17
|
+
statusCode?: number;
|
|
18
|
+
/** response only */
|
|
19
|
+
statusMessage?: string;
|
|
20
|
+
httpVersionMajor: number;
|
|
21
|
+
httpVersionMinor: number;
|
|
22
|
+
httpVersion: string;
|
|
23
|
+
headers: IncomingHttpHeaders;
|
|
24
|
+
rawHeaders: string[];
|
|
25
|
+
}
|
|
26
|
+
interface ParserHandlers {
|
|
27
|
+
onHeaders: (head: ParsedHead) => void;
|
|
28
|
+
onBody: (chunk: Uint8Array) => void;
|
|
29
|
+
onComplete: () => void;
|
|
30
|
+
}
|
|
31
|
+
declare class HTTPParser {
|
|
32
|
+
private readonly mode;
|
|
33
|
+
private readonly handlers;
|
|
34
|
+
private buf;
|
|
35
|
+
private state;
|
|
36
|
+
private framing;
|
|
37
|
+
private bodyRemaining;
|
|
38
|
+
private chunkState;
|
|
39
|
+
skipBody: boolean;
|
|
40
|
+
constructor(mode: 'request' | 'response', handlers: ParserHandlers);
|
|
41
|
+
execute(chunk: Uint8Array): void;
|
|
42
|
+
finish(): void;
|
|
43
|
+
private reset;
|
|
44
|
+
private parseHead;
|
|
45
|
+
private applyVersion;
|
|
46
|
+
private addHeader;
|
|
47
|
+
private setupBody;
|
|
48
|
+
private consumeBody;
|
|
49
|
+
private consumeChunked;
|
|
50
|
+
}
|
|
51
|
+
declare class IncomingMessage extends Stream.Readable {
|
|
52
|
+
httpVersion: string;
|
|
53
|
+
httpVersionMajor: number;
|
|
54
|
+
httpVersionMinor: number;
|
|
55
|
+
headers: IncomingHttpHeaders;
|
|
56
|
+
rawHeaders: string[];
|
|
57
|
+
trailers: Record<string, string>;
|
|
58
|
+
rawTrailers: string[];
|
|
59
|
+
/** request only */
|
|
60
|
+
method?: string;
|
|
61
|
+
/** request only */
|
|
62
|
+
url?: string;
|
|
63
|
+
/** response only */
|
|
64
|
+
statusCode?: number;
|
|
65
|
+
/** response only */
|
|
66
|
+
statusMessage?: string;
|
|
67
|
+
complete: boolean;
|
|
68
|
+
socket: Socket;
|
|
69
|
+
constructor(socket: Socket);
|
|
70
|
+
/** alias retained for Node compatibility */
|
|
71
|
+
get connection(): Socket;
|
|
72
|
+
_applyHead(head: ParsedHead): void;
|
|
73
|
+
_read(): void;
|
|
74
|
+
setTimeout(msecs: number, callback?: () => void): this;
|
|
75
|
+
}
|
|
76
|
+
declare abstract class OutgoingMessage extends Stream.Writable {
|
|
77
|
+
private _headerStore;
|
|
78
|
+
headersSent: boolean;
|
|
79
|
+
chunkedEncoding: boolean;
|
|
80
|
+
finished: boolean;
|
|
81
|
+
protected _bodyWritten: boolean;
|
|
82
|
+
abstract socket: Socket | null;
|
|
83
|
+
setHeader(name: string, value: number | string | readonly string[]): this;
|
|
84
|
+
getHeader(name: string): number | string | string[] | undefined;
|
|
85
|
+
getHeaderNames(): string[];
|
|
86
|
+
getHeaders(): OutgoingHttpHeaders;
|
|
87
|
+
hasHeader(name: string): boolean;
|
|
88
|
+
removeHeader(name: string): void;
|
|
89
|
+
protected _storeHeader(startLine: string): string;
|
|
90
|
+
protected abstract _shouldSendBody(): boolean;
|
|
91
|
+
protected abstract _implicitHeader(): void;
|
|
92
|
+
protected _writeToSocket(data: Buffer, callback: (error?: Error | null) => void): void;
|
|
93
|
+
write(chunk: unknown, encoding?: BufferEncoding | ((error: Error | null | undefined) => void), callback?: (error: Error | null | undefined) => void): boolean;
|
|
94
|
+
_write(chunk: Buffer, _encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
|
95
|
+
_final(callback: (error?: Error | null) => void): void;
|
|
96
|
+
end(chunk?: unknown, encoding?: BufferEncoding | (() => void), callback?: () => void): this;
|
|
97
|
+
protected _headBlock?: string;
|
|
98
|
+
}
|
|
99
|
+
interface ServerResponseOptions {
|
|
100
|
+
req: IncomingMessage;
|
|
101
|
+
}
|
|
102
|
+
declare class ServerResponse extends OutgoingMessage {
|
|
103
|
+
statusCode: number;
|
|
104
|
+
statusMessage?: string;
|
|
105
|
+
private _writeHeadCalled;
|
|
106
|
+
sendDate: boolean;
|
|
107
|
+
req: IncomingMessage;
|
|
108
|
+
socket: Socket | null;
|
|
109
|
+
_keepAlive: boolean;
|
|
110
|
+
constructor(req: IncomingMessage);
|
|
111
|
+
protected _shouldSendBody(): boolean;
|
|
112
|
+
writeHead(statusCode: number, statusMessage?: string | OutgoingHttpHeaders | OutgoingHttpHeaders[keyof OutgoingHttpHeaders][], headers?: OutgoingHttpHeaders): this;
|
|
113
|
+
private _appendHeader;
|
|
114
|
+
protected _implicitHeader(): void;
|
|
115
|
+
writeContinue(): void;
|
|
116
|
+
setTimeout(msecs: number, callback?: () => void): this;
|
|
117
|
+
}
|
|
118
|
+
interface ClientRequestArgs extends RequestOptions {
|
|
119
|
+
host?: string;
|
|
120
|
+
hostname?: string;
|
|
121
|
+
port?: number | string;
|
|
122
|
+
path?: string;
|
|
123
|
+
/** the relays the request's socket may go through (`RelayChoice`); Node ignores it */
|
|
124
|
+
relay?: RelayChoice;
|
|
125
|
+
}
|
|
126
|
+
declare class ClientRequest extends OutgoingMessage {
|
|
127
|
+
method: string;
|
|
128
|
+
path: string;
|
|
129
|
+
host: string;
|
|
130
|
+
protocol: string;
|
|
131
|
+
socket: Socket;
|
|
132
|
+
/** alias retained for Node compatibility */
|
|
133
|
+
get connection(): Socket;
|
|
134
|
+
res: IncomingMessage | null;
|
|
135
|
+
aborted: boolean;
|
|
136
|
+
private _aborted;
|
|
137
|
+
constructor(options: ClientRequestArgs, callback?: (res: IncomingMessage) => void);
|
|
138
|
+
protected _shouldSendBody(): boolean;
|
|
139
|
+
protected _implicitHeader(): void;
|
|
140
|
+
private _attachResponseParser;
|
|
141
|
+
abort(): void;
|
|
142
|
+
destroy(error?: Error): this;
|
|
143
|
+
end(chunk?: unknown, encoding?: unknown, callback?: unknown): this;
|
|
144
|
+
protected _writeToSocket(data: Buffer, callback: (error?: Error | null) => void): void;
|
|
145
|
+
setTimeout(timeout: number, callback?: () => void): this;
|
|
146
|
+
setNoDelay(noDelay?: boolean): void;
|
|
147
|
+
setSocketKeepAlive(enable?: boolean, initialDelay?: number): void;
|
|
148
|
+
}
|
|
149
|
+
type RequestListener = (req: IncomingMessage, res: ServerResponse) => void;
|
|
150
|
+
declare class ServerImpl extends Server$1 {
|
|
151
|
+
constructor(options?: object | RequestListener, requestListener?: RequestListener);
|
|
152
|
+
private _handleConnection;
|
|
153
|
+
}
|
|
154
|
+
declare const Server: typeof ServerImpl;
|
|
155
|
+
type Server = ServerImpl;
|
|
156
|
+
declare class Agent {
|
|
157
|
+
maxSockets: number;
|
|
158
|
+
maxFreeSockets: number;
|
|
159
|
+
keepAlive: boolean;
|
|
160
|
+
options: Record<string, unknown>;
|
|
161
|
+
constructor(options?: Record<string, unknown>);
|
|
162
|
+
getName(options?: {
|
|
163
|
+
host?: string;
|
|
164
|
+
port?: number;
|
|
165
|
+
localAddress?: string;
|
|
166
|
+
}): string;
|
|
167
|
+
destroy(): void;
|
|
168
|
+
}
|
|
169
|
+
declare const globalAgent: Agent;
|
|
170
|
+
declare const request: (...args: [options: string | URL | ClientRequestArgs, callback?: (res: IncomingMessage) => void] | [url: string | URL, options: ClientRequestArgs, callback?: (res: IncomingMessage) => void]) => ClientRequest;
|
|
171
|
+
declare const get: (...args: [options: string | URL | ClientRequestArgs, callback?: (res: IncomingMessage) => void] | [url: string | URL, options: ClientRequestArgs, callback?: (res: IncomingMessage) => void]) => ClientRequest;
|
|
172
|
+
declare const createServer: (options?: object | RequestListener, requestListener?: RequestListener) => Server;
|
|
173
|
+
declare const _default: {
|
|
174
|
+
METHODS: string[];
|
|
175
|
+
STATUS_CODES: Record<number, string>;
|
|
176
|
+
Agent: typeof Agent;
|
|
177
|
+
globalAgent: Agent;
|
|
178
|
+
Server: typeof ServerImpl;
|
|
179
|
+
ServerResponse: typeof ServerResponse;
|
|
180
|
+
IncomingMessage: typeof IncomingMessage;
|
|
181
|
+
ClientRequest: typeof ClientRequest;
|
|
182
|
+
OutgoingMessage: typeof OutgoingMessage;
|
|
183
|
+
createServer: typeof createServer;
|
|
184
|
+
request: typeof request;
|
|
185
|
+
get: typeof get;
|
|
186
|
+
};
|
|
187
|
+
export { http_d_exports as _, IncomingMessage as a, RequestListener as c, ServerResponse as d, ServerResponseOptions as f, globalAgent as g, get as h, HTTPParser as i, STATUS_CODES as l, createServer as m, ClientRequest as n, METHODS as o, _default as p, ClientRequestArgs as r, ParsedHead as s, Agent as t, Server as u, request as v };
|