@di-framework/cli-plugin-platform 0.0.1 → 6.0.3
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 +408 -0
- package/dist/actor-protocol.d.ts +4 -0
- package/dist/actor-protocol.js +162 -0
- package/dist/actors.d.ts +31 -0
- package/dist/actors.js +296 -0
- package/dist/args.d.ts +15 -0
- package/dist/args.js +66 -0
- package/dist/assets/http-adapter.js +876 -0
- package/dist/assets/platform/.gitignore.tmpl +6 -0
- package/dist/assets/platform/Pulumi.yaml.tmpl +6 -0
- package/dist/assets/platform/README.md +208 -0
- package/dist/assets/platform/index.ts.tmpl +2 -0
- package/dist/assets/platform/package.json.tmpl +18 -0
- package/dist/assets/platform/tsconfig.json +11 -0
- package/dist/assets/queue-adapter.js +60 -0
- package/dist/assets/sqlite/BUILD-INFO.txt +13 -0
- package/dist/assets/sqlite/SHA256SUMS +2 -0
- package/dist/assets/sqlite/di-framework-sqlite.wasm +0 -0
- package/dist/assets/sqlite/di-framework-sqlite.wit +337 -0
- package/dist/assets/wit/deps/LICENSE.md +8 -0
- package/dist/assets/wit/deps/di-framework-queues/package.wit +18 -0
- package/dist/assets/wit/deps/di-framework-sqlite/package.wit +211 -0
- package/dist/assets/wit/deps/wasi-cli/package.wit +70 -0
- package/dist/assets/wit/deps/wasi-clocks/package.wit +42 -0
- package/dist/assets/wit/deps/wasi-config/package.wit +15 -0
- package/dist/assets/wit/deps/wasi-filesystem/package.wit +184 -0
- package/dist/assets/wit/deps/wasi-http/package.wit +170 -0
- package/dist/assets/wit/deps/wasi-random/package.wit +17 -0
- package/dist/assets/wit/deps/wasi-sockets/package.wit +105 -0
- package/dist/assets/wit/deps/wasi-tls/package.wit +26 -0
- package/dist/assets/wit/deps/wasmcloud-blobstore/package.wit +153 -0
- package/dist/assets/wit/deps/wasmcloud-keyvalue/package.wit +370 -0
- package/dist/assets/wit/deps/wasmcloud-messaging/package.wit +125 -0
- package/dist/assets/wit/deps/wasmcloud-postgres/package.wit +435 -0
- package/dist/assets/wit/deps/wasmcloud-secrets/package.wit +80 -0
- package/dist/async-transform.d.ts +3 -0
- package/dist/async-transform.js +60 -0
- package/dist/bindings.d.ts +34 -0
- package/dist/bindings.js +307 -0
- package/dist/build.d.ts +29 -0
- package/dist/build.js +325 -0
- package/dist/command.d.ts +3 -0
- package/dist/command.js +141 -0
- package/dist/control/auth.d.ts +18 -0
- package/dist/control/auth.js +89 -0
- package/dist/control/cron.d.ts +7 -0
- package/dist/control/cron.js +86 -0
- package/dist/control/index.d.ts +4 -0
- package/dist/control/index.js +4 -0
- package/dist/control/network.d.ts +12 -0
- package/dist/control/network.js +49 -0
- package/dist/control/queues.d.ts +15 -0
- package/dist/control/queues.js +77 -0
- package/dist/cron.d.ts +26 -0
- package/dist/cron.js +239 -0
- package/dist/deploy.d.ts +29 -0
- package/dist/deploy.js +57 -0
- package/dist/deps.d.ts +96 -0
- package/dist/deps.js +303 -0
- package/dist/destroy.d.ts +3 -0
- package/dist/destroy.js +24 -0
- package/dist/dev-runner.d.ts +24 -0
- package/dist/dev-runner.js +83 -0
- package/dist/dev.d.ts +8 -0
- package/dist/dev.js +76 -0
- package/dist/discovery.d.ts +15 -0
- package/dist/discovery.js +182 -0
- package/dist/doctor.d.ts +8 -0
- package/dist/doctor.js +82 -0
- package/dist/guests.d.ts +9 -0
- package/dist/guests.js +56 -0
- package/dist/host-interface.d.ts +29 -0
- package/dist/host-interface.js +142 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +39 -0
- package/dist/kubernetes.d.ts +9 -0
- package/dist/kubernetes.js +17 -0
- package/dist/managed-bindings.d.ts +9 -0
- package/dist/managed-bindings.js +150 -0
- package/dist/manifest.d.ts +36 -0
- package/dist/manifest.js +257 -0
- package/dist/namespace.d.ts +2 -0
- package/dist/namespace.js +4 -0
- package/dist/node-compat/async-hooks.d.ts +29 -0
- package/dist/node-compat/async-hooks.js +80 -0
- package/dist/node-compat/bootstrap.d.ts +1 -0
- package/dist/node-compat/bootstrap.js +9 -0
- package/dist/node-compat/bytes.d.ts +7 -0
- package/dist/node-compat/bytes.js +41 -0
- package/dist/node-compat/crypto-hash.d.ts +27 -0
- package/dist/node-compat/crypto-hash.js +108 -0
- package/dist/node-compat/crypto-subtle.d.ts +59 -0
- package/dist/node-compat/crypto-subtle.js +288 -0
- package/dist/node-compat/crypto.d.ts +136 -0
- package/dist/node-compat/crypto.js +142 -0
- package/dist/node-compat/dgram.d.ts +49 -0
- package/dist/node-compat/dgram.js +197 -0
- package/dist/node-compat/env.d.ts +6 -0
- package/dist/node-compat/env.js +88 -0
- package/dist/node-compat/fetch-runtime.d.ts +80 -0
- package/dist/node-compat/fetch-runtime.js +314 -0
- package/dist/node-compat/fs.d.ts +84 -0
- package/dist/node-compat/fs.js +285 -0
- package/dist/node-compat/http-parser.d.ts +40 -0
- package/dist/node-compat/http-parser.js +185 -0
- package/dist/node-compat/http.d.ts +130 -0
- package/dist/node-compat/http.js +688 -0
- package/dist/node-compat/https.d.ts +28 -0
- package/dist/node-compat/https.js +88 -0
- package/dist/node-compat/module.d.ts +11 -0
- package/dist/node-compat/module.js +35 -0
- package/dist/node-compat/net.d.ts +119 -0
- package/dist/node-compat/net.js +441 -0
- package/dist/node-compat/process.d.ts +25 -0
- package/dist/node-compat/process.js +63 -0
- package/dist/node-compat/runtime-application.d.ts +4 -0
- package/dist/node-compat/runtime-application.js +24 -0
- package/dist/node-compat/seed-virtual.d.ts +6 -0
- package/dist/node-compat/seed-virtual.js +6 -0
- package/dist/node-compat/seed.d.ts +20 -0
- package/dist/node-compat/seed.js +106 -0
- package/dist/node-compat/socket-address.d.ts +35 -0
- package/dist/node-compat/socket-address.js +162 -0
- package/dist/node-compat/timers.d.ts +32 -0
- package/dist/node-compat/timers.js +96 -0
- package/dist/node-compat/tls.d.ts +57 -0
- package/dist/node-compat/tls.js +290 -0
- package/dist/node-compat/wasi-random.d.ts +2 -0
- package/dist/node-compat/wasi-random.js +25 -0
- package/dist/node-compat/wasi-sockets.d.ts +47 -0
- package/dist/node-compat/wasi-sockets.js +134 -0
- package/dist/oci.d.ts +9 -0
- package/dist/oci.js +9 -0
- package/dist/paths.d.ts +7 -0
- package/dist/paths.js +13 -0
- package/dist/platform-init.d.ts +13 -0
- package/dist/platform-init.js +265 -0
- package/dist/platform.d.ts +22 -0
- package/dist/platform.js +170 -0
- package/dist/project.d.ts +39 -0
- package/dist/project.js +130 -0
- package/dist/publish.d.ts +15 -0
- package/dist/publish.js +57 -0
- package/dist/pulumi.d.ts +4 -0
- package/dist/pulumi.js +27 -0
- package/dist/queues-module.d.ts +4 -0
- package/dist/queues-module.js +89 -0
- package/dist/queues.d.ts +16 -0
- package/dist/queues.js +167 -0
- package/dist/registry.d.ts +16 -0
- package/dist/registry.js +27 -0
- package/dist/service.d.ts +162 -0
- package/dist/service.js +678 -0
- package/dist/support.d.ts +14 -0
- package/dist/support.js +37 -0
- package/dist/target.d.ts +18 -0
- package/dist/target.js +45 -0
- package/dist/toml.d.ts +6 -0
- package/dist/toml.js +245 -0
- package/dist/wash-dev.d.ts +18 -0
- package/dist/wash-dev.js +80 -0
- package/dist/wit.d.ts +76 -0
- package/dist/wit.js +248 -0
- package/dist/workload-members.d.ts +12 -0
- package/dist/workload-members.js +136 -0
- package/dist/workload.d.ts +45 -0
- package/dist/workload.js +457 -0
- package/package.json +55 -8
- package/src/index.ts +0 -2
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ClientRequest, Agent as HttpAgent, type RequestOptions as HttpOptions, type IncomingMessage } from './http.js';
|
|
2
|
+
import { type ConnectionOptions, TLSSocket } from './tls.js';
|
|
3
|
+
export type RequestOptions = Omit<HttpOptions, 'agent'> & ConnectionOptions & {
|
|
4
|
+
agent?: Agent | false;
|
|
5
|
+
};
|
|
6
|
+
export declare class Agent extends HttpAgent {
|
|
7
|
+
readonly options: ConnectionOptions;
|
|
8
|
+
readonly protocol = "https:";
|
|
9
|
+
readonly defaultPort = 443;
|
|
10
|
+
constructor(options?: ConnectionOptions);
|
|
11
|
+
createConnection(options: ConnectionOptions, callback?: (error: Error | null, socket: TLSSocket) => void): TLSSocket;
|
|
12
|
+
}
|
|
13
|
+
export declare const globalAgent: Agent;
|
|
14
|
+
export declare function request(urlOrOptions: string | URL | RequestOptions, optionsOrCallback?: RequestOptions | ((res: IncomingMessage) => void), maybeCallback?: (res: IncomingMessage) => void): ClientRequest;
|
|
15
|
+
export declare function get(urlOrOptions: string | URL | RequestOptions, optionsOrCallback?: RequestOptions | ((res: IncomingMessage) => void), callback?: (res: IncomingMessage) => void): ClientRequest;
|
|
16
|
+
export declare class Server {
|
|
17
|
+
constructor(..._args: unknown[]);
|
|
18
|
+
}
|
|
19
|
+
export declare function createServer(..._args: unknown[]): never;
|
|
20
|
+
declare const _default: {
|
|
21
|
+
Agent: typeof Agent;
|
|
22
|
+
globalAgent: Agent;
|
|
23
|
+
request: typeof request;
|
|
24
|
+
get: typeof get;
|
|
25
|
+
Server: typeof Server;
|
|
26
|
+
createServer: typeof createServer;
|
|
27
|
+
};
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { ClientRequest, Agent as HttpAgent, } from './http.js';
|
|
2
|
+
import { connect, TLSSocket, unsupported, validateOptions } from './tls.js';
|
|
3
|
+
export class Agent extends HttpAgent {
|
|
4
|
+
options;
|
|
5
|
+
protocol = 'https:';
|
|
6
|
+
defaultPort = 443;
|
|
7
|
+
constructor(options = {}) {
|
|
8
|
+
super();
|
|
9
|
+
this.options = options;
|
|
10
|
+
validateOptions(options);
|
|
11
|
+
}
|
|
12
|
+
createConnection(options, callback) {
|
|
13
|
+
const socket = connect({ ...this.options, ...options });
|
|
14
|
+
if (callback) {
|
|
15
|
+
const onError = (error) => callback(error, socket);
|
|
16
|
+
socket.once('error', onError);
|
|
17
|
+
socket.once('secureConnect', () => {
|
|
18
|
+
socket.removeListener('error', onError);
|
|
19
|
+
callback(null, socket);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return socket;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export const globalAgent = new Agent();
|
|
26
|
+
export function request(urlOrOptions, optionsOrCallback, maybeCallback) {
|
|
27
|
+
let options;
|
|
28
|
+
const callback = typeof optionsOrCallback === 'function' ? optionsOrCallback : maybeCallback;
|
|
29
|
+
if (typeof urlOrOptions === 'string' || urlOrOptions instanceof URL) {
|
|
30
|
+
const url = new URL(urlOrOptions);
|
|
31
|
+
options = {
|
|
32
|
+
protocol: url.protocol,
|
|
33
|
+
hostname: url.hostname.replace(/^\[|\]$/g, ''),
|
|
34
|
+
port: url.port ? Number(url.port) : 443,
|
|
35
|
+
path: `${url.pathname}${url.search}`,
|
|
36
|
+
};
|
|
37
|
+
if (url.username || url.password) {
|
|
38
|
+
options.headers = {
|
|
39
|
+
authorization: `Basic ${Buffer.from(`${decodeURIComponent(url.username)}:${decodeURIComponent(url.password)}`).toString('base64')}`,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
else
|
|
44
|
+
options = { ...urlOrOptions };
|
|
45
|
+
if (typeof optionsOrCallback === 'object')
|
|
46
|
+
options = { ...options, ...optionsOrCallback };
|
|
47
|
+
if (options.protocol !== undefined && options.protocol !== 'https:') {
|
|
48
|
+
throw Object.assign(new TypeError(`Protocol "${options.protocol}" not supported. Expected "https:"`), { code: 'ERR_INVALID_PROTOCOL' });
|
|
49
|
+
}
|
|
50
|
+
validateOptions(options);
|
|
51
|
+
const agent = options.agent === false ? new Agent() : (options.agent ?? globalAgent);
|
|
52
|
+
const connection = options.createConnection;
|
|
53
|
+
const tlsOptions = {
|
|
54
|
+
...options,
|
|
55
|
+
host: options.hostname ?? options.host ?? 'localhost',
|
|
56
|
+
port: Number(options.port ?? 443),
|
|
57
|
+
};
|
|
58
|
+
const req = new ClientRequest({
|
|
59
|
+
...options,
|
|
60
|
+
protocol: 'https:',
|
|
61
|
+
defaultPort: 443,
|
|
62
|
+
createConnection: () => {
|
|
63
|
+
const socket = connection ? connection(tlsOptions) : agent.createConnection(tlsOptions);
|
|
64
|
+
if (!(socket instanceof TLSSocket)) {
|
|
65
|
+
socket?.destroy();
|
|
66
|
+
return unsupported('HTTPS connection without a TLSSocket');
|
|
67
|
+
}
|
|
68
|
+
return socket;
|
|
69
|
+
},
|
|
70
|
+
}, callback);
|
|
71
|
+
if (options.timeout !== undefined)
|
|
72
|
+
req.once('socket', (socket) => socket.setTimeout(options.timeout, () => req.emit('timeout')));
|
|
73
|
+
return req;
|
|
74
|
+
}
|
|
75
|
+
export function get(urlOrOptions, optionsOrCallback, callback) {
|
|
76
|
+
const req = request(urlOrOptions, optionsOrCallback, callback);
|
|
77
|
+
req.end();
|
|
78
|
+
return req;
|
|
79
|
+
}
|
|
80
|
+
export class Server {
|
|
81
|
+
constructor(..._args) {
|
|
82
|
+
unsupported('HTTPS servers');
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
export function createServer(..._args) {
|
|
86
|
+
return unsupported('HTTPS servers');
|
|
87
|
+
}
|
|
88
|
+
export default { Agent, globalAgent, request, get, Server, createServer };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function createRequire(_filename?: string): {
|
|
2
|
+
(specifier: string): unknown;
|
|
3
|
+
resolve(specifier: string): string;
|
|
4
|
+
cache: Record<string, unknown>;
|
|
5
|
+
};
|
|
6
|
+
export declare const builtinModules: string[];
|
|
7
|
+
declare const _default: {
|
|
8
|
+
builtinModules: string[];
|
|
9
|
+
createRequire: typeof createRequire;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
function moduleNotFound(specifier) {
|
|
2
|
+
const error = new Error(`Cannot find module '${specifier}'`);
|
|
3
|
+
error.code = 'MODULE_NOT_FOUND';
|
|
4
|
+
return error;
|
|
5
|
+
}
|
|
6
|
+
export function createRequire(_filename) {
|
|
7
|
+
const require = ((specifier) => {
|
|
8
|
+
throw moduleNotFound(specifier);
|
|
9
|
+
});
|
|
10
|
+
require.resolve = (specifier) => {
|
|
11
|
+
throw moduleNotFound(specifier);
|
|
12
|
+
};
|
|
13
|
+
require.cache = Object.create(null);
|
|
14
|
+
return require;
|
|
15
|
+
}
|
|
16
|
+
export const builtinModules = [
|
|
17
|
+
'assert',
|
|
18
|
+
'async_hooks',
|
|
19
|
+
'buffer',
|
|
20
|
+
'child_process',
|
|
21
|
+
'crypto',
|
|
22
|
+
'dgram',
|
|
23
|
+
'events',
|
|
24
|
+
'fs',
|
|
25
|
+
'http',
|
|
26
|
+
'module',
|
|
27
|
+
'net',
|
|
28
|
+
'os',
|
|
29
|
+
'path',
|
|
30
|
+
'process',
|
|
31
|
+
'stream',
|
|
32
|
+
'url',
|
|
33
|
+
'util',
|
|
34
|
+
];
|
|
35
|
+
export default { builtinModules, createRequire };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { EventEmitter } from 'node:events';
|
|
2
|
+
import { type IpAddressFamily, type IpSocketAddress, isIP, isIPv4, isIPv6 } from './socket-address.js';
|
|
3
|
+
import { type WasiTcpSocket } from './wasi-sockets.js';
|
|
4
|
+
export { isIP, isIPv4, isIPv6 };
|
|
5
|
+
export type AddressInfo = {
|
|
6
|
+
address: string;
|
|
7
|
+
family: string;
|
|
8
|
+
port: number;
|
|
9
|
+
};
|
|
10
|
+
type ConnectionListener = (socket: Socket) => void;
|
|
11
|
+
type PushStream = {
|
|
12
|
+
iterable: AsyncIterable<Uint8Array>;
|
|
13
|
+
push(chunk: Uint8Array): void;
|
|
14
|
+
close(): void;
|
|
15
|
+
};
|
|
16
|
+
export declare function createPushStream(): PushStream;
|
|
17
|
+
export declare class Socket extends EventEmitter {
|
|
18
|
+
connecting: boolean;
|
|
19
|
+
pending: boolean;
|
|
20
|
+
destroyed: boolean;
|
|
21
|
+
bytesRead: number;
|
|
22
|
+
bytesWritten: number;
|
|
23
|
+
remoteAddress: string;
|
|
24
|
+
remoteFamily: string;
|
|
25
|
+
remotePort: number;
|
|
26
|
+
localAddress: string;
|
|
27
|
+
localPort: number;
|
|
28
|
+
readyState: 'opening' | 'open' | 'readOnly' | 'writeOnly' | 'closed';
|
|
29
|
+
native: WasiTcpSocket | undefined;
|
|
30
|
+
outgoing: PushStream | undefined;
|
|
31
|
+
family: IpAddressFamily;
|
|
32
|
+
buffered: Uint8Array[];
|
|
33
|
+
ioStarted: boolean;
|
|
34
|
+
paused: boolean;
|
|
35
|
+
readableEnded: boolean;
|
|
36
|
+
readableBuffer: Uint8Array[];
|
|
37
|
+
constructor(native?: WasiTcpSocket, family?: IpAddressFamily);
|
|
38
|
+
connect(portOrOptions: number | {
|
|
39
|
+
port: number;
|
|
40
|
+
host?: string;
|
|
41
|
+
family?: number;
|
|
42
|
+
}, hostOrCallback?: string | (() => void), maybeCallback?: () => void): this;
|
|
43
|
+
write(data: string | Uint8Array, encodingOrCallback?: string | ((error?: Error | null) => void), maybeCallback?: (error?: Error | null) => void): boolean;
|
|
44
|
+
end(data?: string | Uint8Array | (() => void), encodingOrCallback?: string | (() => void), maybeCallback?: () => void): this;
|
|
45
|
+
destroy(error?: Error): this;
|
|
46
|
+
get writable(): boolean;
|
|
47
|
+
get readable(): boolean;
|
|
48
|
+
unshift(chunk: string | Uint8Array): boolean;
|
|
49
|
+
pause(): this;
|
|
50
|
+
resume(): this;
|
|
51
|
+
flushReadable(): void;
|
|
52
|
+
address(): AddressInfo | null;
|
|
53
|
+
setNoDelay(_noDelay?: boolean): this;
|
|
54
|
+
setKeepAlive(_enable?: boolean, _initialDelay?: number): this;
|
|
55
|
+
setTimeout(_timeout: number, callback?: () => void): this;
|
|
56
|
+
ref(): this;
|
|
57
|
+
unref(): this;
|
|
58
|
+
connectNative(host: string, port: number): Promise<void>;
|
|
59
|
+
startIo(native: WasiTcpSocket): void;
|
|
60
|
+
pumpReceive(native: WasiTcpSocket): Promise<void>;
|
|
61
|
+
captureLocal(native: WasiTcpSocket): void;
|
|
62
|
+
captureRemote(native: WasiTcpSocket, fallback?: IpSocketAddress): void;
|
|
63
|
+
}
|
|
64
|
+
export declare class Server extends EventEmitter {
|
|
65
|
+
listening: boolean;
|
|
66
|
+
maxConnections: number;
|
|
67
|
+
connectionListener: ConnectionListener | undefined;
|
|
68
|
+
native: WasiTcpSocket | undefined;
|
|
69
|
+
family: IpAddressFamily;
|
|
70
|
+
local: AddressInfo | null;
|
|
71
|
+
closed: boolean;
|
|
72
|
+
constructor(connectionListener?: ConnectionListener);
|
|
73
|
+
listen(portOrOptions?: number | {
|
|
74
|
+
port?: number;
|
|
75
|
+
host?: string;
|
|
76
|
+
}, hostnameOrCallback?: string | (() => void), backlogOrCallback?: number | (() => void), maybeCallback?: () => void): this;
|
|
77
|
+
address(): AddressInfo | null;
|
|
78
|
+
close(callback?: (error?: Error) => void): this;
|
|
79
|
+
ref(): this;
|
|
80
|
+
unref(): this;
|
|
81
|
+
bindResolved(local: IpSocketAddress): void;
|
|
82
|
+
bindAndListen(host: string, port: number): Promise<void>;
|
|
83
|
+
acceptLoop(incoming: AsyncIterable<unknown>): Promise<void>;
|
|
84
|
+
}
|
|
85
|
+
export declare function createServer(options?: {
|
|
86
|
+
allowHalfOpen?: boolean;
|
|
87
|
+
} | ConnectionListener, listener?: ConnectionListener): Server;
|
|
88
|
+
export declare function createConnection(portOrOptions: number | {
|
|
89
|
+
port: number;
|
|
90
|
+
host?: string;
|
|
91
|
+
family?: number;
|
|
92
|
+
}, hostOrCallback?: string | (() => void), maybeCallback?: () => void): Socket;
|
|
93
|
+
export declare const connect: typeof createConnection;
|
|
94
|
+
export declare class SocketAddress {
|
|
95
|
+
address: string;
|
|
96
|
+
family: 'ipv4' | 'ipv6';
|
|
97
|
+
port: number;
|
|
98
|
+
flowlabel: number;
|
|
99
|
+
constructor(options: {
|
|
100
|
+
address: string;
|
|
101
|
+
family?: 'ipv4' | 'ipv6';
|
|
102
|
+
port: number;
|
|
103
|
+
flowlabel?: number;
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
export { Socket as Stream };
|
|
107
|
+
declare const _default: {
|
|
108
|
+
Server: typeof Server;
|
|
109
|
+
Socket: typeof Socket;
|
|
110
|
+
Stream: typeof Socket;
|
|
111
|
+
SocketAddress: typeof SocketAddress;
|
|
112
|
+
createServer: typeof createServer;
|
|
113
|
+
createConnection: typeof createConnection;
|
|
114
|
+
connect: typeof createConnection;
|
|
115
|
+
isIP: typeof isIP;
|
|
116
|
+
isIPv4: typeof isIPv4;
|
|
117
|
+
isIPv6: typeof isIPv6;
|
|
118
|
+
};
|
|
119
|
+
export default _default;
|