@bytecodealliance/preview2-shim 0.0.11 → 0.0.13

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 (37) hide show
  1. package/lib/browser/{cli-base.js → cli.js} +30 -6
  2. package/lib/browser/filesystem.js +16 -2
  3. package/lib/browser/index.js +2 -2
  4. package/lib/nodejs/cli.js +65 -0
  5. package/lib/nodejs/filesystem.js +93 -3
  6. package/lib/nodejs/index.js +2 -2
  7. package/package.json +1 -1
  8. package/lib/nodejs/cli-base.js +0 -99
  9. package/types/exports/wasi-http-incoming-handler.d.ts +0 -7
  10. package/types/imports/environment.d.ts +0 -17
  11. package/types/imports/exit.d.ts +0 -7
  12. package/types/imports/filesystem.d.ts +0 -857
  13. package/types/imports/handler.d.ts +0 -40
  14. package/types/imports/insecure-seed.d.ts +0 -22
  15. package/types/imports/insecure.d.ts +0 -20
  16. package/types/imports/instance-network.d.ts +0 -8
  17. package/types/imports/ip-name-lookup.d.ts +0 -76
  18. package/types/imports/monotonic-clock.d.ts +0 -24
  19. package/types/imports/network.d.ts +0 -212
  20. package/types/imports/outgoing-handler.d.ts +0 -9
  21. package/types/imports/poll.d.ts +0 -41
  22. package/types/imports/preopens.d.ts +0 -12
  23. package/types/imports/random.d.ts +0 -22
  24. package/types/imports/stderr.d.ts +0 -5
  25. package/types/imports/stdin.d.ts +0 -5
  26. package/types/imports/stdout.d.ts +0 -5
  27. package/types/imports/streams.d.ts +0 -180
  28. package/types/imports/tcp-create-socket.d.ts +0 -33
  29. package/types/imports/tcp.d.ts +0 -285
  30. package/types/imports/timezone.d.ts +0 -71
  31. package/types/imports/types.d.ts +0 -119
  32. package/types/imports/udp-create-socket.d.ts +0 -33
  33. package/types/imports/udp.d.ts +0 -219
  34. package/types/imports/wall-clock.d.ts +0 -31
  35. package/types/wasi-command.d.ts +0 -23
  36. package/types/wasi-proxy.d.ts +0 -10
  37. package/types/wasi-reactor.d.ts +0 -23
@@ -1,119 +0,0 @@
1
- export namespace ImportsTypes {
2
- export function dropFields(fields: Fields): void;
3
- export function newFields(entries: [string, string][]): Fields;
4
- export function fieldsGet(fields: Fields, name: string): string[];
5
- export function fieldsSet(fields: Fields, name: string, value: string[]): void;
6
- export function fieldsDelete(fields: Fields, name: string): void;
7
- export function fieldsAppend(fields: Fields, name: string, value: string): void;
8
- export function fieldsEntries(fields: Fields): [string, string][];
9
- export function fieldsClone(fields: Fields): Fields;
10
- export function finishIncomingStream(s: IncomingStream): Trailers | null;
11
- export function finishOutgoingStream(s: OutgoingStream, trailers: Trailers | null): void;
12
- export function dropIncomingRequest(request: IncomingRequest): void;
13
- export function dropOutgoingRequest(request: OutgoingRequest): void;
14
- export function incomingRequestMethod(request: IncomingRequest): Method;
15
- export function incomingRequestPath(request: IncomingRequest): string;
16
- export function incomingRequestQuery(request: IncomingRequest): string;
17
- export function incomingRequestScheme(request: IncomingRequest): Scheme | null;
18
- export function incomingRequestAuthority(request: IncomingRequest): string;
19
- export function incomingRequestHeaders(request: IncomingRequest): Headers;
20
- export function incomingRequestConsume(request: IncomingRequest): IncomingStream;
21
- export function newOutgoingRequest(method: Method, path: string, query: string, scheme: Scheme | null, authority: string, headers: Headers): OutgoingRequest;
22
- export function outgoingRequestWrite(request: OutgoingRequest): OutgoingStream;
23
- export function dropResponseOutparam(response: ResponseOutparam): void;
24
- export function setResponseOutparam(response: Result<OutgoingResponse, Error>): void;
25
- export function dropIncomingResponse(response: IncomingResponse): void;
26
- export function dropOutgoingResponse(response: OutgoingResponse): void;
27
- export function incomingResponseStatus(response: IncomingResponse): StatusCode;
28
- export function incomingResponseHeaders(response: IncomingResponse): Headers;
29
- export function incomingResponseConsume(response: IncomingResponse): IncomingStream;
30
- export function newOutgoingResponse(statusCode: StatusCode, headers: Headers): OutgoingResponse;
31
- export function outgoingResponseWrite(response: OutgoingResponse): OutgoingStream;
32
- export function dropFutureIncomingResponse(f: FutureIncomingResponse): void;
33
- export function futureIncomingResponseGet(f: FutureIncomingResponse): Result<IncomingResponse, Error> | null;
34
- export function listenToFutureIncomingResponse(f: FutureIncomingResponse): Pollable;
35
- }
36
- import type { InputStream } from '../imports/streams';
37
- export { InputStream };
38
- import type { OutputStream } from '../imports/streams';
39
- export { OutputStream };
40
- import type { Pollable } from '../imports/poll';
41
- export { Pollable };
42
- export type StatusCode = number;
43
- export type Scheme = SchemeHttp | SchemeHttps | SchemeOther;
44
- export interface SchemeHttp {
45
- tag: 'HTTP',
46
- }
47
- export interface SchemeHttps {
48
- tag: 'HTTPS',
49
- }
50
- export interface SchemeOther {
51
- tag: 'other',
52
- val: string,
53
- }
54
- export type ResponseOutparam = number;
55
- export interface RequestOptions {
56
- connectTimeoutMs?: number,
57
- firstByteTimeoutMs?: number,
58
- betweenBytesTimeoutMs?: number,
59
- }
60
- export type OutgoingStream = OutputStream;
61
- export type OutgoingResponse = number;
62
- export type OutgoingRequest = number;
63
- export type Method = MethodGet | MethodHead | MethodPost | MethodPut | MethodDelete | MethodConnect | MethodOptions | MethodTrace | MethodPatch | MethodOther;
64
- export interface MethodGet {
65
- tag: 'get',
66
- }
67
- export interface MethodHead {
68
- tag: 'head',
69
- }
70
- export interface MethodPost {
71
- tag: 'post',
72
- }
73
- export interface MethodPut {
74
- tag: 'put',
75
- }
76
- export interface MethodDelete {
77
- tag: 'delete',
78
- }
79
- export interface MethodConnect {
80
- tag: 'connect',
81
- }
82
- export interface MethodOptions {
83
- tag: 'options',
84
- }
85
- export interface MethodTrace {
86
- tag: 'trace',
87
- }
88
- export interface MethodPatch {
89
- tag: 'patch',
90
- }
91
- export interface MethodOther {
92
- tag: 'other',
93
- val: string,
94
- }
95
- export type IncomingStream = InputStream;
96
- export type IncomingResponse = number;
97
- export type IncomingRequest = number;
98
- export type FutureIncomingResponse = number;
99
- export type Fields = number;
100
- export type Trailers = Fields;
101
- export type Headers = Fields;
102
- export type Error = ErrorInvalidUrl | ErrorTimeoutError | ErrorProtocolError | ErrorUnexpectedError;
103
- export interface ErrorInvalidUrl {
104
- tag: 'invalid-url',
105
- val: string,
106
- }
107
- export interface ErrorTimeoutError {
108
- tag: 'timeout-error',
109
- val: string,
110
- }
111
- export interface ErrorProtocolError {
112
- tag: 'protocol-error',
113
- val: string,
114
- }
115
- export interface ErrorUnexpectedError {
116
- tag: 'unexpected-error',
117
- val: string,
118
- }
119
- export type Result<T, E> = { tag: 'ok', val: T } | { tag: 'err', val: E };
@@ -1,33 +0,0 @@
1
- export namespace ImportsUdpCreateSocket {
2
- /**
3
- * Create a new UDP socket.
4
- *
5
- * Similar to `socket(AF_INET or AF_INET6, SOCK_DGRAM, IPPROTO_UDP)` in POSIX.
6
- *
7
- * This function does not require a network capability handle. This is considered to be safe because
8
- * at time of creation, the socket is not bound to any `network` yet. Up to the moment `bind`/`connect` is called,
9
- * the socket is effectively an in-memory configuration object, unable to communicate with the outside world.
10
- *
11
- * All sockets are non-blocking. Use the wasi-poll interface to block on asynchronous operations.
12
- *
13
- * # Typical errors
14
- * - `not-supported`: The host does not support UDP sockets. (EOPNOTSUPP)
15
- * - `address-family-not-supported`: The specified `address-family` is not supported. (EAFNOSUPPORT)
16
- * - `new-socket-limit`: The new socket resource could not be created because of a system limit. (EMFILE, ENFILE)
17
- *
18
- * # References:
19
- * - <https://pubs.opengroup.org/onlinepubs/9699919799/functions/socket.html>
20
- * - <https://man7.org/linux/man-pages/man2/socket.2.html>
21
- * - <https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsasocketw>
22
- * - <https://man.freebsd.org/cgi/man.cgi?query=socket&sektion=2>
23
- */
24
- export function createUdpSocket(addressFamily: IpAddressFamily): UdpSocket;
25
- }
26
- import type { Network } from '../imports/network';
27
- export { Network };
28
- import type { ErrorCode } from '../imports/network';
29
- export { ErrorCode };
30
- import type { IpAddressFamily } from '../imports/network';
31
- export { IpAddressFamily };
32
- import type { UdpSocket } from '../imports/udp';
33
- export { UdpSocket };
@@ -1,219 +0,0 @@
1
- export namespace ImportsUdp {
2
- /**
3
- * Bind the socket to a specific network on the provided IP address and port.
4
- *
5
- * If the IP address is zero (`0.0.0.0` in IPv4, `::` in IPv6), it is left to the implementation to decide which
6
- * network interface(s) to bind to.
7
- * If the TCP/UDP port is zero, the socket will be bound to a random free port.
8
- *
9
- * When a socket is not explicitly bound, the first invocation to connect will implicitly bind the socket.
10
- *
11
- * Unlike in POSIX, this function is async. This enables interactive WASI hosts to inject permission prompts.
12
- *
13
- * # Typical `start` errors
14
- * - `address-family-mismatch`: The `local-address` has the wrong address family. (EINVAL)
15
- * - `already-bound`: The socket is already bound. (EINVAL)
16
- * - `concurrency-conflict`: Another `bind` or `connect` operation is already in progress. (EALREADY)
17
- *
18
- * # Typical `finish` errors
19
- * - `ephemeral-ports-exhausted`: No ephemeral ports available. (EADDRINUSE, ENOBUFS on Windows)
20
- * - `address-in-use`: Address is already in use. (EADDRINUSE)
21
- * - `address-not-bindable`: `local-address` is not an address that the `network` can bind to. (EADDRNOTAVAIL)
22
- * - `not-in-progress`: A `bind` operation is not in progress.
23
- * - `would-block`: Can't finish the operation, it is still in progress. (EWOULDBLOCK, EAGAIN)
24
- *
25
- * # References
26
- * - <https://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html>
27
- * - <https://man7.org/linux/man-pages/man2/bind.2.html>
28
- * - <https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-bind>
29
- * - <https://man.freebsd.org/cgi/man.cgi?query=bind&sektion=2&format=html>
30
- */
31
- export function startBind(this: UdpSocket, network: Network, localAddress: IpSocketAddress): void;
32
- export function finishBind(this: UdpSocket): void;
33
- /**
34
- * Set the destination address.
35
- *
36
- * The local-address is updated based on the best network path to `remote-address`.
37
- *
38
- * When a destination address is set:
39
- * - all receive operations will only return datagrams sent from the provided `remote-address`.
40
- * - the `send` function can only be used to send to this destination.
41
- *
42
- * Note that this function does not generate any network traffic and the peer is not aware of this "connection".
43
- *
44
- * Unlike in POSIX, this function is async. This enables interactive WASI hosts to inject permission prompts.
45
- *
46
- * # Typical `start` errors
47
- * - `address-family-mismatch`: The `remote-address` has the wrong address family. (EAFNOSUPPORT)
48
- * - `invalid-remote-address`: The IP address in `remote-address` is set to INADDR_ANY (`0.0.0.0` / `::`). (EDESTADDRREQ, EADDRNOTAVAIL)
49
- * - `invalid-remote-address`: The port in `remote-address` is set to 0. (EDESTADDRREQ, EADDRNOTAVAIL)
50
- * - `already-attached`: The socket is already bound to a different network. The `network` passed to `connect` must be identical to the one passed to `bind`.
51
- * - `concurrency-conflict`: Another `bind` or `connect` operation is already in progress. (EALREADY)
52
- *
53
- * # Typical `finish` errors
54
- * - `ephemeral-ports-exhausted`: Tried to perform an implicit bind, but there were no ephemeral ports available. (EADDRINUSE, EADDRNOTAVAIL on Linux, EAGAIN on BSD)
55
- * - `not-in-progress`: A `connect` operation is not in progress.
56
- * - `would-block`: Can't finish the operation, it is still in progress. (EWOULDBLOCK, EAGAIN)
57
- *
58
- * # References
59
- * - <https://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html>
60
- * - <https://man7.org/linux/man-pages/man2/connect.2.html>
61
- * - <https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-connect>
62
- * - <https://man.freebsd.org/cgi/man.cgi?connect>
63
- */
64
- export function startConnect(this: UdpSocket, network: Network, remoteAddress: IpSocketAddress): void;
65
- export function finishConnect(this: UdpSocket): void;
66
- /**
67
- * Receive a message.
68
- *
69
- * Returns:
70
- * - The sender address of the datagram
71
- * - The number of bytes read.
72
- *
73
- * # Typical errors
74
- * - `not-bound`: The socket is not bound to any local address. (EINVAL)
75
- * - `remote-unreachable`: The remote address is not reachable. (ECONNREFUSED, ECONNRESET, ENETRESET on Windows, EHOSTUNREACH, EHOSTDOWN, ENETUNREACH, ENETDOWN)
76
- * - `would-block`: There is no pending data available to be read at the moment. (EWOULDBLOCK, EAGAIN)
77
- *
78
- * # References
79
- * - <https://pubs.opengroup.org/onlinepubs/9699919799/functions/recvfrom.html>
80
- * - <https://pubs.opengroup.org/onlinepubs/9699919799/functions/recvmsg.html>
81
- * - <https://man7.org/linux/man-pages/man2/recv.2.html>
82
- * - <https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-recv>
83
- * - <https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-recvfrom>
84
- * - <https://learn.microsoft.com/en-us/previous-versions/windows/desktop/legacy/ms741687(v=vs.85)>
85
- * - <https://man.freebsd.org/cgi/man.cgi?query=recv&sektion=2>
86
- */
87
- export function receive(this: UdpSocket): Datagram;
88
- /**
89
- * Send a message to a specific destination address.
90
- *
91
- * The remote address option is required. To send a message to the "connected" peer,
92
- * call `remote-address` to get their address.
93
- *
94
- * # Typical errors
95
- * - `address-family-mismatch`: The `remote-address` has the wrong address family. (EAFNOSUPPORT)
96
- * - `invalid-remote-address`: The IP address in `remote-address` is set to INADDR_ANY (`0.0.0.0` / `::`). (EDESTADDRREQ, EADDRNOTAVAIL)
97
- * - `invalid-remote-address`: The port in `remote-address` is set to 0. (EDESTADDRREQ, EADDRNOTAVAIL)
98
- * - `already-connected`: The socket is in "connected" mode and the `datagram.remote-address` does not match the address passed to `connect`. (EISCONN)
99
- * - `not-bound`: The socket is not bound to any local address. Unlike POSIX, this function does not perform an implicit bind.
100
- * - `remote-unreachable`: The remote address is not reachable. (ECONNREFUSED, ECONNRESET, ENETRESET on Windows, EHOSTUNREACH, EHOSTDOWN, ENETUNREACH, ENETDOWN)
101
- * - `datagram-too-large`: The datagram is too large. (EMSGSIZE)
102
- * - `would-block`: The send buffer is currently full. (EWOULDBLOCK, EAGAIN)
103
- *
104
- * # References
105
- * - <https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendto.html>
106
- * - <https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendmsg.html>
107
- * - <https://man7.org/linux/man-pages/man2/send.2.html>
108
- * - <https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-send>
109
- * - <https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-sendto>
110
- * - <https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsasendmsg>
111
- * - <https://man.freebsd.org/cgi/man.cgi?query=send&sektion=2>
112
- */
113
- export function send(this: UdpSocket, datagram: Datagram): void;
114
- /**
115
- * Get the current bound address.
116
- *
117
- * # Typical errors
118
- * - `not-bound`: The socket is not bound to any local address.
119
- *
120
- * # References
121
- * - <https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockname.html>
122
- * - <https://man7.org/linux/man-pages/man2/getsockname.2.html>
123
- * - <https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-getsockname>
124
- * - <https://man.freebsd.org/cgi/man.cgi?getsockname>
125
- */
126
- export function localAddress(this: UdpSocket): IpSocketAddress;
127
- /**
128
- * Get the address set with `connect`.
129
- *
130
- * # Typical errors
131
- * - `not-connected`: The socket is not connected to a remote address. (ENOTCONN)
132
- *
133
- * # References
134
- * - <https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpeername.html>
135
- * - <https://man7.org/linux/man-pages/man2/getpeername.2.html>
136
- * - <https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-getpeername>
137
- * - <https://man.freebsd.org/cgi/man.cgi?query=getpeername&sektion=2&n=1>
138
- */
139
- export function remoteAddress(this: UdpSocket): IpSocketAddress;
140
- /**
141
- * Whether this is a IPv4 or IPv6 socket.
142
- *
143
- * Equivalent to the SO_DOMAIN socket option.
144
- */
145
- export function addressFamily(this: UdpSocket): IpAddressFamily;
146
- /**
147
- * Whether IPv4 compatibility (dual-stack) mode is disabled or not.
148
- *
149
- * Equivalent to the IPV6_V6ONLY socket option.
150
- *
151
- * # Typical errors
152
- * - `ipv6-only-operation`: (get/set) `this` socket is an IPv4 socket.
153
- * - `already-bound`: (set) The socket is already bound.
154
- * - `not-supported`: (set) Host does not support dual-stack sockets. (Implementations are not required to.)
155
- * - `concurrency-conflict`: (set) Another `bind` or `connect` operation is already in progress. (EALREADY)
156
- */
157
- export function ipv6Only(this: UdpSocket): boolean;
158
- export function setIpv6Only(this: UdpSocket, value: boolean): void;
159
- /**
160
- * Equivalent to the IP_TTL & IPV6_UNICAST_HOPS socket options.
161
- *
162
- * # Typical errors
163
- * - `concurrency-conflict`: (set) Another `bind` or `connect` operation is already in progress. (EALREADY)
164
- */
165
- export function unicastHopLimit(this: UdpSocket): number;
166
- export function setUnicastHopLimit(this: UdpSocket, value: number): void;
167
- /**
168
- * The kernel buffer space reserved for sends/receives on this socket.
169
- *
170
- * Note #1: an implementation may choose to cap or round the buffer size when setting the value.
171
- * In other words, after setting a value, reading the same setting back may return a different value.
172
- *
173
- * Note #2: there is not necessarily a direct relationship between the kernel buffer size and the bytes of
174
- * actual data to be sent/received by the application, because the kernel might also use the buffer space
175
- * for internal metadata structures.
176
- *
177
- * Fails when this socket is in the Listening state.
178
- *
179
- * Equivalent to the SO_RCVBUF and SO_SNDBUF socket options.
180
- *
181
- * # Typical errors
182
- * - `concurrency-conflict`: (set) Another `bind` or `connect` operation is already in progress. (EALREADY)
183
- */
184
- export function receiveBufferSize(this: UdpSocket): bigint;
185
- export function setReceiveBufferSize(this: UdpSocket, value: bigint): void;
186
- export function sendBufferSize(this: UdpSocket): bigint;
187
- export function setSendBufferSize(this: UdpSocket, value: bigint): void;
188
- /**
189
- * Create a `pollable` which will resolve once the socket is ready for I/O.
190
- *
191
- * Note: this function is here for WASI Preview2 only.
192
- * It's planned to be removed when `future` is natively supported in Preview3.
193
- */
194
- export function subscribe(this: UdpSocket): Pollable;
195
- /**
196
- * Dispose of the specified `udp-socket`, after which it may no longer be used.
197
- *
198
- * Note: this function is scheduled to be removed when Resources are natively supported in Wit.
199
- */
200
- export function dropUdpSocket(this: UdpSocket): void;
201
- }
202
- import type { Pollable } from '../imports/poll';
203
- export { Pollable };
204
- import type { Network } from '../imports/network';
205
- export { Network };
206
- import type { ErrorCode } from '../imports/network';
207
- export { ErrorCode };
208
- import type { IpSocketAddress } from '../imports/network';
209
- export { IpSocketAddress };
210
- import type { IpAddressFamily } from '../imports/network';
211
- export { IpAddressFamily };
212
- /**
213
- * A UDP socket handle.
214
- */
215
- export type UdpSocket = number;
216
- export interface Datagram {
217
- data: Uint8Array,
218
- remoteAddress: IpSocketAddress,
219
- }
@@ -1,31 +0,0 @@
1
- export namespace ImportsWallClock {
2
- /**
3
- * Read the current value of the clock.
4
- *
5
- * This clock is not monotonic, therefore calling this function repeatedly
6
- * will not necessarily produce a sequence of non-decreasing values.
7
- *
8
- * The returned timestamps represent the number of seconds since
9
- * 1970-01-01T00:00:00Z, also known as [POSIX's Seconds Since the Epoch],
10
- * also known as [Unix Time].
11
- *
12
- * The nanoseconds field of the output is always less than 1000000000.
13
- *
14
- * [POSIX's Seconds Since the Epoch]: https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xbd_chap04.html#tag_21_04_16
15
- * [Unix Time]: https://en.wikipedia.org/wiki/Unix_time
16
- */
17
- export function now(): Datetime;
18
- /**
19
- * Query the resolution of the clock.
20
- *
21
- * The nanoseconds field of the output is always less than 1000000000.
22
- */
23
- export function resolution(): Datetime;
24
- }
25
- /**
26
- * A time and date in seconds plus nanoseconds.
27
- */
28
- export interface Datetime {
29
- seconds: bigint,
30
- nanoseconds: number,
31
- }
@@ -1,23 +0,0 @@
1
- import { ImportsEnvironment } from './imports/environment';
2
- import { ImportsExit } from './imports/exit';
3
- import { ImportsPreopens } from './imports/preopens';
4
- import { ImportsStderr } from './imports/stderr';
5
- import { ImportsStdin } from './imports/stdin';
6
- import { ImportsStdout } from './imports/stdout';
7
- import { ImportsMonotonicClock } from './imports/monotonic-clock';
8
- import { ImportsTimezone } from './imports/timezone';
9
- import { ImportsWallClock } from './imports/wall-clock';
10
- import { ImportsFilesystem } from './imports/filesystem';
11
- import { ImportsStreams } from './imports/streams';
12
- import { ImportsPoll } from './imports/poll';
13
- import { ImportsInsecure } from './imports/insecure';
14
- import { ImportsInsecureSeed } from './imports/insecure-seed';
15
- import { ImportsRandom } from './imports/random';
16
- import { ImportsInstanceNetwork } from './imports/instance-network';
17
- import { ImportsIpNameLookup } from './imports/ip-name-lookup';
18
- import { ImportsNetwork } from './imports/network';
19
- import { ImportsTcp } from './imports/tcp';
20
- import { ImportsTcpCreateSocket } from './imports/tcp-create-socket';
21
- import { ImportsUdp } from './imports/udp';
22
- import { ImportsUdpCreateSocket } from './imports/udp-create-socket';
23
- export function run(): void;
@@ -1,10 +0,0 @@
1
- import { ImportsOutgoingHandler } from './imports/outgoing-handler';
2
- import { ImportsTypes } from './imports/types';
3
- import { ImportsStreams } from './imports/streams';
4
- import { ImportsHandler } from './imports/handler';
5
- import { ImportsPoll } from './imports/poll';
6
- import { ImportsInsecure } from './imports/insecure';
7
- import { ImportsInsecureSeed } from './imports/insecure-seed';
8
- import { ImportsRandom } from './imports/random';
9
- import { ExportsWasiHttpIncomingHandler } from './exports/wasi-http-incoming-handler';
10
- export const incomingHandler: typeof ExportsWasiHttpIncomingHandler;
@@ -1,23 +0,0 @@
1
- import { ImportsEnvironment } from './imports/environment';
2
- import { ImportsExit } from './imports/exit';
3
- import { ImportsPreopens } from './imports/preopens';
4
- import { ImportsStderr } from './imports/stderr';
5
- import { ImportsStdin } from './imports/stdin';
6
- import { ImportsStdout } from './imports/stdout';
7
- import { ImportsMonotonicClock } from './imports/monotonic-clock';
8
- import { ImportsTimezone } from './imports/timezone';
9
- import { ImportsWallClock } from './imports/wall-clock';
10
- import { ImportsFilesystem } from './imports/filesystem';
11
- import { ImportsOutgoingHandler } from './imports/outgoing-handler';
12
- import { ImportsTypes } from './imports/types';
13
- import { ImportsStreams } from './imports/streams';
14
- import { ImportsHandler } from './imports/handler';
15
- import { ImportsPoll } from './imports/poll';
16
- import { ImportsRandom } from './imports/random';
17
- import { ImportsInstanceNetwork } from './imports/instance-network';
18
- import { ImportsIpNameLookup } from './imports/ip-name-lookup';
19
- import { ImportsNetwork } from './imports/network';
20
- import { ImportsTcp } from './imports/tcp';
21
- import { ImportsTcpCreateSocket } from './imports/tcp-create-socket';
22
- import { ImportsUdp } from './imports/udp';
23
- import { ImportsUdpCreateSocket } from './imports/udp-create-socket';