cdk-common 2.0.221 → 2.0.224
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/.jsii +3 -3
- package/lib/main.js +1 -1
- package/node_modules/@aws-cdk/assert/package.json +8 -8
- package/node_modules/@aws-cdk/cfnspec/package.json +3 -3
- package/node_modules/@aws-cdk/cfnspec/tsconfig.tsbuildinfo +5 -5
- package/node_modules/@aws-cdk/cloudformation-diff/package.json +5 -5
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/LICENSE +0 -0
- package/node_modules/@types/node/README.md +16 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/assert.d.ts +35 -6
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/async_hooks.d.ts +96 -11
- package/node_modules/@types/node/buffer.d.ts +89 -0
- package/node_modules/@types/node/child_process.d.ts +514 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/cluster.d.ts +43 -38
- package/node_modules/@types/node/console.d.ts +142 -0
- package/node_modules/@types/node/constants.d.ts +18 -0
- package/node_modules/@types/node/crypto.d.ts +1283 -0
- package/node_modules/@types/node/dgram.d.ts +144 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/dns.d.ts +33 -12
- package/node_modules/@types/node/domain.d.ts +27 -0
- package/node_modules/@types/node/events.d.ts +82 -0
- package/node_modules/@types/node/fs/promises.d.ts +569 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/fs.d.ts +736 -757
- package/node_modules/@types/node/globals.d.ts +746 -0
- package/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +492 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/http2.d.ts +289 -186
- package/node_modules/@types/node/https.d.ts +142 -0
- package/node_modules/@types/node/index.d.ts +98 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/inspector.d.ts +1508 -1619
- package/node_modules/@types/node/module.d.ts +56 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/net.d.ts +128 -71
- package/node_modules/@types/node/os.d.ts +242 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/package.json +67 -23
- package/node_modules/@types/node/path.d.ts +168 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/perf_hooks.d.ts +124 -19
- package/node_modules/@types/node/process.d.ts +413 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/punycode.d.ts +11 -1
- package/node_modules/@types/node/querystring.d.ts +31 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/readline.d.ts +55 -24
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/repl.d.ts +40 -22
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/stream.d.ts +103 -57
- package/node_modules/@types/node/string_decoder.d.ts +10 -0
- package/node_modules/@types/node/timers.d.ts +19 -0
- package/node_modules/@types/node/tls.d.ts +784 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/trace_events.d.ts +7 -4
- package/node_modules/@types/node/tty.d.ts +69 -0
- package/node_modules/@types/node/url.d.ts +149 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/util.d.ts +70 -41
- package/node_modules/@types/node/v8.d.ts +190 -0
- package/node_modules/@types/node/vm.d.ts +155 -0
- package/node_modules/@types/node/wasi.d.ts +89 -0
- package/node_modules/@types/node/worker_threads.d.ts +241 -0
- package/node_modules/{@aws-cdk/cloudformation-diff/node_modules/@types → @types}/node/zlib.d.ts +91 -54
- package/package.json +3 -3
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/README.md +0 -16
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/base.d.ts +0 -19
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/buffer.d.ts +0 -16
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/child_process.d.ts +0 -369
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/console.d.ts +0 -3
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/constants.d.ts +0 -449
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/crypto.d.ts +0 -613
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/dgram.d.ts +0 -97
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/domain.d.ts +0 -16
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/events.d.ts +0 -30
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/globals.d.ts +0 -1066
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/http.d.ts +0 -274
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/https.d.ts +0 -51
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/index.d.ts +0 -41
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/module.d.ts +0 -3
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/os.d.ts +0 -254
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/path.d.ts +0 -159
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/process.d.ts +0 -3
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/querystring.d.ts +0 -17
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/string_decoder.d.ts +0 -9
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/timers.d.ts +0 -16
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/tls.d.ts +0 -459
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/ts3.6/assert.d.ts +0 -73
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/ts3.6/base.d.ts +0 -54
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/ts3.6/index.d.ts +0 -6
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/tty.d.ts +0 -17
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/url.d.ts +0 -104
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/v8.d.ts +0 -28
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/vm.d.ts +0 -81
- package/node_modules/@aws-cdk/cloudformation-diff/node_modules/@types/node/worker_threads.d.ts +0 -124
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
declare module "http" {
|
|
2
|
-
import * as events from "events";
|
|
3
|
-
import * as net from "net";
|
|
4
|
-
import * as stream from "stream";
|
|
5
|
-
import { URL } from "url";
|
|
6
|
-
|
|
7
|
-
// incoming headers will never contain number
|
|
8
|
-
interface IncomingHttpHeaders {
|
|
9
|
-
'accept-patch'?: string;
|
|
10
|
-
'accept-ranges'?: string;
|
|
11
|
-
'accept'?: string;
|
|
12
|
-
'access-control-allow-credentials'?: string;
|
|
13
|
-
'access-control-allow-headers'?: string;
|
|
14
|
-
'access-control-allow-methods'?: string;
|
|
15
|
-
'access-control-allow-origin'?: string;
|
|
16
|
-
'access-control-expose-headers'?: string;
|
|
17
|
-
'access-control-max-age'?: string;
|
|
18
|
-
'access-control-request-headers'?: string;
|
|
19
|
-
'access-control-request-method'?: string;
|
|
20
|
-
'age'?: string;
|
|
21
|
-
'allow'?: string;
|
|
22
|
-
'alt-svc'?: string;
|
|
23
|
-
'authorization'?: string;
|
|
24
|
-
'cache-control'?: string;
|
|
25
|
-
'connection'?: string;
|
|
26
|
-
'content-disposition'?: string;
|
|
27
|
-
'content-encoding'?: string;
|
|
28
|
-
'content-language'?: string;
|
|
29
|
-
'content-length'?: string;
|
|
30
|
-
'content-location'?: string;
|
|
31
|
-
'content-range'?: string;
|
|
32
|
-
'content-type'?: string;
|
|
33
|
-
'cookie'?: string;
|
|
34
|
-
'date'?: string;
|
|
35
|
-
'etag'?: string;
|
|
36
|
-
'expect'?: string;
|
|
37
|
-
'expires'?: string;
|
|
38
|
-
'forwarded'?: string;
|
|
39
|
-
'from'?: string;
|
|
40
|
-
'host'?: string;
|
|
41
|
-
'if-match'?: string;
|
|
42
|
-
'if-modified-since'?: string;
|
|
43
|
-
'if-none-match'?: string;
|
|
44
|
-
'if-unmodified-since'?: string;
|
|
45
|
-
'last-modified'?: string;
|
|
46
|
-
'location'?: string;
|
|
47
|
-
'origin'?: string;
|
|
48
|
-
'pragma'?: string;
|
|
49
|
-
'proxy-authenticate'?: string;
|
|
50
|
-
'proxy-authorization'?: string;
|
|
51
|
-
'public-key-pins'?: string;
|
|
52
|
-
'range'?: string;
|
|
53
|
-
'referer'?: string;
|
|
54
|
-
'retry-after'?: string;
|
|
55
|
-
'set-cookie'?: string[];
|
|
56
|
-
'strict-transport-security'?: string;
|
|
57
|
-
'tk'?: string;
|
|
58
|
-
'trailer'?: string;
|
|
59
|
-
'transfer-encoding'?: string;
|
|
60
|
-
'upgrade'?: string;
|
|
61
|
-
'user-agent'?: string;
|
|
62
|
-
'vary'?: string;
|
|
63
|
-
'via'?: string;
|
|
64
|
-
'warning'?: string;
|
|
65
|
-
'www-authenticate'?: string;
|
|
66
|
-
[header: string]: string | string[] | undefined;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// outgoing headers allows numbers (as they are converted internally to strings)
|
|
70
|
-
interface OutgoingHttpHeaders {
|
|
71
|
-
[header: string]: number | string | string[] | undefined;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
interface ClientRequestArgs {
|
|
75
|
-
protocol?: string;
|
|
76
|
-
host?: string;
|
|
77
|
-
hostname?: string;
|
|
78
|
-
family?: number;
|
|
79
|
-
port?: number | string;
|
|
80
|
-
defaultPort?: number | string;
|
|
81
|
-
localAddress?: string;
|
|
82
|
-
socketPath?: string;
|
|
83
|
-
method?: string;
|
|
84
|
-
path?: string;
|
|
85
|
-
headers?: OutgoingHttpHeaders;
|
|
86
|
-
auth?: string;
|
|
87
|
-
agent?: Agent | boolean;
|
|
88
|
-
_defaultAgent?: Agent;
|
|
89
|
-
timeout?: number;
|
|
90
|
-
setHost?: boolean;
|
|
91
|
-
// https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
|
|
92
|
-
createConnection?: (options: ClientRequestArgs, oncreate: (err: Error, socket: net.Socket) => void) => net.Socket;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
interface ServerOptions {
|
|
96
|
-
IncomingMessage?: typeof IncomingMessage;
|
|
97
|
-
ServerResponse?: typeof ServerResponse;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
type RequestListener = (req: IncomingMessage, res: ServerResponse) => void;
|
|
101
|
-
|
|
102
|
-
class Server extends net.Server {
|
|
103
|
-
constructor(requestListener?: RequestListener);
|
|
104
|
-
constructor(options: ServerOptions, requestListener?: RequestListener);
|
|
105
|
-
|
|
106
|
-
setTimeout(msecs?: number, callback?: () => void): this;
|
|
107
|
-
setTimeout(callback: () => void): this;
|
|
108
|
-
/**
|
|
109
|
-
* Limits maximum incoming headers count. If set to 0, no limit will be applied.
|
|
110
|
-
* @default 2000
|
|
111
|
-
* {@link https://nodejs.org/api/http.html#http_server_maxheaderscount}
|
|
112
|
-
*/
|
|
113
|
-
maxHeadersCount: number | null;
|
|
114
|
-
timeout: number;
|
|
115
|
-
/**
|
|
116
|
-
* Limit the amount of time the parser will wait to receive the complete HTTP headers.
|
|
117
|
-
* @default 40000
|
|
118
|
-
* {@link https://nodejs.org/api/http.html#http_server_headerstimeout}
|
|
119
|
-
*/
|
|
120
|
-
headersTimeout: number;
|
|
121
|
-
keepAliveTimeout: number;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// https://github.com/nodejs/node/blob/master/lib/_http_outgoing.js
|
|
125
|
-
class OutgoingMessage extends stream.Writable {
|
|
126
|
-
upgrading: boolean;
|
|
127
|
-
chunkedEncoding: boolean;
|
|
128
|
-
shouldKeepAlive: boolean;
|
|
129
|
-
useChunkedEncodingByDefault: boolean;
|
|
130
|
-
sendDate: boolean;
|
|
131
|
-
finished: boolean;
|
|
132
|
-
headersSent: boolean;
|
|
133
|
-
connection: net.Socket;
|
|
134
|
-
|
|
135
|
-
constructor();
|
|
136
|
-
|
|
137
|
-
setTimeout(msecs: number, callback?: () => void): this;
|
|
138
|
-
setHeader(name: string, value: number | string | ReadonlyArray<string>): void;
|
|
139
|
-
getHeader(name: string): number | string | string[] | undefined;
|
|
140
|
-
getHeaders(): OutgoingHttpHeaders;
|
|
141
|
-
getHeaderNames(): string[];
|
|
142
|
-
hasHeader(name: string): boolean;
|
|
143
|
-
removeHeader(name: string): void;
|
|
144
|
-
addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void;
|
|
145
|
-
flushHeaders(): void;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// https://github.com/nodejs/node/blob/master/lib/_http_server.js#L108-L256
|
|
149
|
-
class ServerResponse extends OutgoingMessage {
|
|
150
|
-
statusCode: number;
|
|
151
|
-
statusMessage: string;
|
|
152
|
-
|
|
153
|
-
constructor(req: IncomingMessage);
|
|
154
|
-
|
|
155
|
-
assignSocket(socket: net.Socket): void;
|
|
156
|
-
detachSocket(socket: net.Socket): void;
|
|
157
|
-
// https://github.com/nodejs/node/blob/master/test/parallel/test-http-write-callbacks.js#L53
|
|
158
|
-
// no args in writeContinue callback
|
|
159
|
-
writeContinue(callback?: () => void): void;
|
|
160
|
-
writeHead(statusCode: number, reasonPhrase?: string, headers?: OutgoingHttpHeaders): void;
|
|
161
|
-
writeHead(statusCode: number, headers?: OutgoingHttpHeaders): void;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
// https://github.com/nodejs/node/blob/v10.23.0/lib/_http_client.js#L65
|
|
165
|
-
class ClientRequest extends OutgoingMessage {
|
|
166
|
-
connection: net.Socket;
|
|
167
|
-
socket: net.Socket;
|
|
168
|
-
aborted: number;
|
|
169
|
-
|
|
170
|
-
constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
|
|
171
|
-
|
|
172
|
-
method: string;
|
|
173
|
-
path: string;
|
|
174
|
-
abort(): void;
|
|
175
|
-
onSocket(socket: net.Socket): void;
|
|
176
|
-
setTimeout(timeout: number, callback?: () => void): this;
|
|
177
|
-
setNoDelay(noDelay?: boolean): void;
|
|
178
|
-
setSocketKeepAlive(enable?: boolean, initialDelay?: number): void;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
class IncomingMessage extends stream.Readable {
|
|
182
|
-
constructor(socket: net.Socket);
|
|
183
|
-
|
|
184
|
-
aborted: boolean;
|
|
185
|
-
httpVersion: string;
|
|
186
|
-
httpVersionMajor: number;
|
|
187
|
-
httpVersionMinor: number;
|
|
188
|
-
connection: net.Socket;
|
|
189
|
-
headers: IncomingHttpHeaders;
|
|
190
|
-
rawHeaders: string[];
|
|
191
|
-
trailers: { [key: string]: string | undefined };
|
|
192
|
-
rawTrailers: string[];
|
|
193
|
-
setTimeout(msecs: number, callback?: () => void): this;
|
|
194
|
-
/**
|
|
195
|
-
* Only valid for request obtained from http.Server.
|
|
196
|
-
*/
|
|
197
|
-
method?: string;
|
|
198
|
-
/**
|
|
199
|
-
* Only valid for request obtained from http.Server.
|
|
200
|
-
*/
|
|
201
|
-
url?: string;
|
|
202
|
-
/**
|
|
203
|
-
* Only valid for response obtained from http.ClientRequest.
|
|
204
|
-
*/
|
|
205
|
-
statusCode?: number;
|
|
206
|
-
/**
|
|
207
|
-
* Only valid for response obtained from http.ClientRequest.
|
|
208
|
-
*/
|
|
209
|
-
statusMessage?: string;
|
|
210
|
-
socket: net.Socket;
|
|
211
|
-
destroy(error?: Error): void;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
interface AgentOptions {
|
|
215
|
-
/**
|
|
216
|
-
* Keep sockets around in a pool to be used by other requests in the future. Default = false
|
|
217
|
-
*/
|
|
218
|
-
keepAlive?: boolean;
|
|
219
|
-
/**
|
|
220
|
-
* When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000.
|
|
221
|
-
* Only relevant if keepAlive is set to true.
|
|
222
|
-
*/
|
|
223
|
-
keepAliveMsecs?: number;
|
|
224
|
-
/**
|
|
225
|
-
* Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity
|
|
226
|
-
*/
|
|
227
|
-
maxSockets?: number;
|
|
228
|
-
/**
|
|
229
|
-
* Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256.
|
|
230
|
-
*/
|
|
231
|
-
maxFreeSockets?: number;
|
|
232
|
-
/**
|
|
233
|
-
* Socket timeout in milliseconds. This will set the timeout after the socket is connected.
|
|
234
|
-
*/
|
|
235
|
-
timeout?: number;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
class Agent {
|
|
239
|
-
maxFreeSockets: number;
|
|
240
|
-
maxSockets: number;
|
|
241
|
-
sockets: any;
|
|
242
|
-
requests: any;
|
|
243
|
-
|
|
244
|
-
constructor(opts?: AgentOptions);
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Destroy any sockets that are currently in use by the agent.
|
|
248
|
-
* It is usually not necessary to do this. However, if you are using an agent with KeepAlive enabled,
|
|
249
|
-
* then it is best to explicitly shut down the agent when you know that it will no longer be used. Otherwise,
|
|
250
|
-
* sockets may hang open for quite a long time before the server terminates them.
|
|
251
|
-
*/
|
|
252
|
-
destroy(): void;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
const METHODS: string[];
|
|
256
|
-
|
|
257
|
-
const STATUS_CODES: {
|
|
258
|
-
[errorCode: number]: string | undefined;
|
|
259
|
-
[errorCode: string]: string | undefined;
|
|
260
|
-
};
|
|
261
|
-
|
|
262
|
-
function createServer(requestListener?: RequestListener): Server;
|
|
263
|
-
function createServer(options: ServerOptions, requestListener?: RequestListener): Server;
|
|
264
|
-
function createClient(port?: number, host?: string): any;
|
|
265
|
-
|
|
266
|
-
// although RequestOptions are passed as ClientRequestArgs to ClientRequest directly,
|
|
267
|
-
// create interface RequestOptions would make the naming more clear to developers
|
|
268
|
-
interface RequestOptions extends ClientRequestArgs { }
|
|
269
|
-
function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
|
|
270
|
-
function request(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;
|
|
271
|
-
function get(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
|
|
272
|
-
function get(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;
|
|
273
|
-
let globalAgent: Agent;
|
|
274
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
declare module "https" {
|
|
2
|
-
import * as tls from "tls";
|
|
3
|
-
import * as events from "events";
|
|
4
|
-
import * as http from "http";
|
|
5
|
-
import { URL } from "url";
|
|
6
|
-
|
|
7
|
-
type ServerOptions = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions;
|
|
8
|
-
|
|
9
|
-
type RequestOptions = http.RequestOptions & tls.SecureContextOptions & {
|
|
10
|
-
rejectUnauthorized?: boolean; // Defaults to true
|
|
11
|
-
servername?: string; // SNI TLS Extension
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions {
|
|
15
|
-
rejectUnauthorized?: boolean;
|
|
16
|
-
maxCachedSessions?: number;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
class Agent extends http.Agent {
|
|
20
|
-
constructor(options?: AgentOptions);
|
|
21
|
-
options: AgentOptions;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
class Server extends tls.Server {
|
|
25
|
-
constructor(options: ServerOptions, requestListener?: http.RequestListener);
|
|
26
|
-
|
|
27
|
-
setTimeout(callback: () => void): this;
|
|
28
|
-
setTimeout(msecs?: number, callback?: () => void): this;
|
|
29
|
-
/**
|
|
30
|
-
* Limits maximum incoming headers count. If set to 0, no limit will be applied.
|
|
31
|
-
* @default 2000
|
|
32
|
-
* {@link https://nodejs.org/api/http.html#http_server_maxheaderscount}
|
|
33
|
-
*/
|
|
34
|
-
maxHeadersCount: number | null;
|
|
35
|
-
timeout: number;
|
|
36
|
-
/**
|
|
37
|
-
* Limit the amount of time the parser will wait to receive the complete HTTP headers.
|
|
38
|
-
* @default 40000
|
|
39
|
-
* {@link https://nodejs.org/api/http.html#http_server_headerstimeout}
|
|
40
|
-
*/
|
|
41
|
-
headersTimeout: number;
|
|
42
|
-
keepAliveTimeout: number;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function createServer(options: ServerOptions, requestListener?: http.RequestListener): Server;
|
|
46
|
-
function request(options: RequestOptions | string | URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
|
|
47
|
-
function request(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
|
|
48
|
-
function get(options: RequestOptions | string | URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
|
|
49
|
-
function get(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest;
|
|
50
|
-
let globalAgent: Agent;
|
|
51
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// Type definitions for Node.js 10.17
|
|
2
|
-
// Project: http://nodejs.org/
|
|
3
|
-
// Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
|
|
4
|
-
// DefinitelyTyped <https://github.com/DefinitelyTyped>
|
|
5
|
-
// Alberto Schiabel <https://github.com/jkomyno>
|
|
6
|
-
// Alvis HT Tang <https://github.com/alvis>
|
|
7
|
-
// Andrew Makarov <https://github.com/r3nya>
|
|
8
|
-
// Chigozirim C. <https://github.com/smac89>
|
|
9
|
-
// Deividas Bakanas <https://github.com/DeividasBakanas>
|
|
10
|
-
// Eugene Y. Q. Shen <https://github.com/eyqs>
|
|
11
|
-
// Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>
|
|
12
|
-
// Hoàng Văn Khải <https://github.com/KSXGitHub>
|
|
13
|
-
// Huw <https://github.com/hoo29>
|
|
14
|
-
// Kelvin Jin <https://github.com/kjin>
|
|
15
|
-
// Klaus Meinhardt <https://github.com/ajafff>
|
|
16
|
-
// Lishude <https://github.com/islishude>
|
|
17
|
-
// Mariusz Wiktorczyk <https://github.com/mwiktorczyk>
|
|
18
|
-
// Mohsen Azimi <https://github.com/mohsen1>
|
|
19
|
-
// Nicolas Even <https://github.com/n-e>
|
|
20
|
-
// Nikita Galkin <https://github.com/galkin>
|
|
21
|
-
// Parambir Singh <https://github.com/parambirs>
|
|
22
|
-
// Sebastian Silbermann <https://github.com/eps1lon>
|
|
23
|
-
// Simon Schick <https://github.com/SimonSchick>
|
|
24
|
-
// Thomas den Hollander <https://github.com/ThomasdenH>
|
|
25
|
-
// Wilco Bakker <https://github.com/WilcoBakker>
|
|
26
|
-
// wwwy3y3 <https://github.com/wwwy3y3>
|
|
27
|
-
// Zane Hannan AU <https://github.com/ZaneHannanAU>
|
|
28
|
-
// Jeremie Rodriguez <https://github.com/jeremiergz>
|
|
29
|
-
// Samuel Ainsworth <https://github.com/samuela>
|
|
30
|
-
// Kyle Uehlein <https://github.com/kuehlein>
|
|
31
|
-
// Thanik Bhongbhibhat <https://github.com/bhongy>
|
|
32
|
-
// Minh Son Nguyen <https://github.com/nguymin4>
|
|
33
|
-
// ExE Boss <https://github.com/ExE-Boss>
|
|
34
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
35
|
-
|
|
36
|
-
// NOTE: These definitions support NodeJS and TypeScript 3.7.
|
|
37
|
-
// This isn't strictly needed since 3.7 has the assert module, but this way we're consistent.
|
|
38
|
-
// Typically type modificatons should be made in base.d.ts instead of here
|
|
39
|
-
|
|
40
|
-
/// <reference path="base.d.ts" />
|
|
41
|
-
/// <reference path="ts3.6/base.d.ts" />
|
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
declare module "os" {
|
|
2
|
-
interface CpuInfo {
|
|
3
|
-
model: string;
|
|
4
|
-
speed: number;
|
|
5
|
-
times: {
|
|
6
|
-
user: number;
|
|
7
|
-
nice: number;
|
|
8
|
-
sys: number;
|
|
9
|
-
idle: number;
|
|
10
|
-
irq: number;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface NetworkInterfaceBase {
|
|
15
|
-
address: string;
|
|
16
|
-
netmask: string;
|
|
17
|
-
mac: string;
|
|
18
|
-
internal: boolean;
|
|
19
|
-
cidr: string | null;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase {
|
|
23
|
-
family: "IPv4";
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase {
|
|
27
|
-
family: "IPv6";
|
|
28
|
-
scopeid: number;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
type NetworkInterfaceInfo = NetworkInterfaceInfoIPv4 | NetworkInterfaceInfoIPv6;
|
|
32
|
-
|
|
33
|
-
function hostname(): string;
|
|
34
|
-
function loadavg(): number[];
|
|
35
|
-
function uptime(): number;
|
|
36
|
-
function freemem(): number;
|
|
37
|
-
function totalmem(): number;
|
|
38
|
-
function cpus(): CpuInfo[];
|
|
39
|
-
function type(): string;
|
|
40
|
-
function release(): string;
|
|
41
|
-
function networkInterfaces(): { [index: string]: NetworkInterfaceInfo[] };
|
|
42
|
-
function homedir(): string;
|
|
43
|
-
function userInfo(options?: { encoding: string }): { username: string, uid: number, gid: number, shell: any, homedir: string };
|
|
44
|
-
const constants: {
|
|
45
|
-
UV_UDP_REUSEADDR: number;
|
|
46
|
-
// signals: { [key in NodeJS.Signals]: number; }; @todo: change after migration to typescript 2.1
|
|
47
|
-
signals: {
|
|
48
|
-
SIGHUP: number;
|
|
49
|
-
SIGINT: number;
|
|
50
|
-
SIGQUIT: number;
|
|
51
|
-
SIGILL: number;
|
|
52
|
-
SIGTRAP: number;
|
|
53
|
-
SIGABRT: number;
|
|
54
|
-
SIGIOT: number;
|
|
55
|
-
SIGBUS: number;
|
|
56
|
-
SIGFPE: number;
|
|
57
|
-
SIGKILL: number;
|
|
58
|
-
SIGUSR1: number;
|
|
59
|
-
SIGSEGV: number;
|
|
60
|
-
SIGUSR2: number;
|
|
61
|
-
SIGPIPE: number;
|
|
62
|
-
SIGALRM: number;
|
|
63
|
-
SIGTERM: number;
|
|
64
|
-
SIGCHLD: number;
|
|
65
|
-
SIGSTKFLT: number;
|
|
66
|
-
SIGCONT: number;
|
|
67
|
-
SIGSTOP: number;
|
|
68
|
-
SIGTSTP: number;
|
|
69
|
-
SIGBREAK: number;
|
|
70
|
-
SIGTTIN: number;
|
|
71
|
-
SIGTTOU: number;
|
|
72
|
-
SIGURG: number;
|
|
73
|
-
SIGXCPU: number;
|
|
74
|
-
SIGXFSZ: number;
|
|
75
|
-
SIGVTALRM: number;
|
|
76
|
-
SIGPROF: number;
|
|
77
|
-
SIGWINCH: number;
|
|
78
|
-
SIGIO: number;
|
|
79
|
-
SIGPOLL: number;
|
|
80
|
-
SIGLOST: number;
|
|
81
|
-
SIGPWR: number;
|
|
82
|
-
SIGINFO: number;
|
|
83
|
-
SIGSYS: number;
|
|
84
|
-
SIGUNUSED: number;
|
|
85
|
-
};
|
|
86
|
-
errno: {
|
|
87
|
-
E2BIG: number;
|
|
88
|
-
EACCES: number;
|
|
89
|
-
EADDRINUSE: number;
|
|
90
|
-
EADDRNOTAVAIL: number;
|
|
91
|
-
EAFNOSUPPORT: number;
|
|
92
|
-
EAGAIN: number;
|
|
93
|
-
EALREADY: number;
|
|
94
|
-
EBADF: number;
|
|
95
|
-
EBADMSG: number;
|
|
96
|
-
EBUSY: number;
|
|
97
|
-
ECANCELED: number;
|
|
98
|
-
ECHILD: number;
|
|
99
|
-
ECONNABORTED: number;
|
|
100
|
-
ECONNREFUSED: number;
|
|
101
|
-
ECONNRESET: number;
|
|
102
|
-
EDEADLK: number;
|
|
103
|
-
EDESTADDRREQ: number;
|
|
104
|
-
EDOM: number;
|
|
105
|
-
EDQUOT: number;
|
|
106
|
-
EEXIST: number;
|
|
107
|
-
EFAULT: number;
|
|
108
|
-
EFBIG: number;
|
|
109
|
-
EHOSTUNREACH: number;
|
|
110
|
-
EIDRM: number;
|
|
111
|
-
EILSEQ: number;
|
|
112
|
-
EINPROGRESS: number;
|
|
113
|
-
EINTR: number;
|
|
114
|
-
EINVAL: number;
|
|
115
|
-
EIO: number;
|
|
116
|
-
EISCONN: number;
|
|
117
|
-
EISDIR: number;
|
|
118
|
-
ELOOP: number;
|
|
119
|
-
EMFILE: number;
|
|
120
|
-
EMLINK: number;
|
|
121
|
-
EMSGSIZE: number;
|
|
122
|
-
EMULTIHOP: number;
|
|
123
|
-
ENAMETOOLONG: number;
|
|
124
|
-
ENETDOWN: number;
|
|
125
|
-
ENETRESET: number;
|
|
126
|
-
ENETUNREACH: number;
|
|
127
|
-
ENFILE: number;
|
|
128
|
-
ENOBUFS: number;
|
|
129
|
-
ENODATA: number;
|
|
130
|
-
ENODEV: number;
|
|
131
|
-
ENOENT: number;
|
|
132
|
-
ENOEXEC: number;
|
|
133
|
-
ENOLCK: number;
|
|
134
|
-
ENOLINK: number;
|
|
135
|
-
ENOMEM: number;
|
|
136
|
-
ENOMSG: number;
|
|
137
|
-
ENOPROTOOPT: number;
|
|
138
|
-
ENOSPC: number;
|
|
139
|
-
ENOSR: number;
|
|
140
|
-
ENOSTR: number;
|
|
141
|
-
ENOSYS: number;
|
|
142
|
-
ENOTCONN: number;
|
|
143
|
-
ENOTDIR: number;
|
|
144
|
-
ENOTEMPTY: number;
|
|
145
|
-
ENOTSOCK: number;
|
|
146
|
-
ENOTSUP: number;
|
|
147
|
-
ENOTTY: number;
|
|
148
|
-
ENXIO: number;
|
|
149
|
-
EOPNOTSUPP: number;
|
|
150
|
-
EOVERFLOW: number;
|
|
151
|
-
EPERM: number;
|
|
152
|
-
EPIPE: number;
|
|
153
|
-
EPROTO: number;
|
|
154
|
-
EPROTONOSUPPORT: number;
|
|
155
|
-
EPROTOTYPE: number;
|
|
156
|
-
ERANGE: number;
|
|
157
|
-
EROFS: number;
|
|
158
|
-
ESPIPE: number;
|
|
159
|
-
ESRCH: number;
|
|
160
|
-
ESTALE: number;
|
|
161
|
-
ETIME: number;
|
|
162
|
-
ETIMEDOUT: number;
|
|
163
|
-
ETXTBSY: number;
|
|
164
|
-
EWOULDBLOCK: number;
|
|
165
|
-
EXDEV: number;
|
|
166
|
-
WSAEINTR: number;
|
|
167
|
-
WSAEBADF: number;
|
|
168
|
-
WSAEACCES: number;
|
|
169
|
-
WSAEFAULT: number;
|
|
170
|
-
WSAEINVAL: number;
|
|
171
|
-
WSAEMFILE: number;
|
|
172
|
-
WSAEWOULDBLOCK: number;
|
|
173
|
-
WSAEINPROGRESS: number;
|
|
174
|
-
WSAEALREADY: number;
|
|
175
|
-
WSAENOTSOCK: number;
|
|
176
|
-
WSAEDESTADDRREQ: number;
|
|
177
|
-
WSAEMSGSIZE: number;
|
|
178
|
-
WSAEPROTOTYPE: number;
|
|
179
|
-
WSAENOPROTOOPT: number;
|
|
180
|
-
WSAEPROTONOSUPPORT: number;
|
|
181
|
-
WSAESOCKTNOSUPPORT: number;
|
|
182
|
-
WSAEOPNOTSUPP: number;
|
|
183
|
-
WSAEPFNOSUPPORT: number;
|
|
184
|
-
WSAEAFNOSUPPORT: number;
|
|
185
|
-
WSAEADDRINUSE: number;
|
|
186
|
-
WSAEADDRNOTAVAIL: number;
|
|
187
|
-
WSAENETDOWN: number;
|
|
188
|
-
WSAENETUNREACH: number;
|
|
189
|
-
WSAENETRESET: number;
|
|
190
|
-
WSAECONNABORTED: number;
|
|
191
|
-
WSAECONNRESET: number;
|
|
192
|
-
WSAENOBUFS: number;
|
|
193
|
-
WSAEISCONN: number;
|
|
194
|
-
WSAENOTCONN: number;
|
|
195
|
-
WSAESHUTDOWN: number;
|
|
196
|
-
WSAETOOMANYREFS: number;
|
|
197
|
-
WSAETIMEDOUT: number;
|
|
198
|
-
WSAECONNREFUSED: number;
|
|
199
|
-
WSAELOOP: number;
|
|
200
|
-
WSAENAMETOOLONG: number;
|
|
201
|
-
WSAEHOSTDOWN: number;
|
|
202
|
-
WSAEHOSTUNREACH: number;
|
|
203
|
-
WSAENOTEMPTY: number;
|
|
204
|
-
WSAEPROCLIM: number;
|
|
205
|
-
WSAEUSERS: number;
|
|
206
|
-
WSAEDQUOT: number;
|
|
207
|
-
WSAESTALE: number;
|
|
208
|
-
WSAEREMOTE: number;
|
|
209
|
-
WSASYSNOTREADY: number;
|
|
210
|
-
WSAVERNOTSUPPORTED: number;
|
|
211
|
-
WSANOTINITIALISED: number;
|
|
212
|
-
WSAEDISCON: number;
|
|
213
|
-
WSAENOMORE: number;
|
|
214
|
-
WSAECANCELLED: number;
|
|
215
|
-
WSAEINVALIDPROCTABLE: number;
|
|
216
|
-
WSAEINVALIDPROVIDER: number;
|
|
217
|
-
WSAEPROVIDERFAILEDINIT: number;
|
|
218
|
-
WSASYSCALLFAILURE: number;
|
|
219
|
-
WSASERVICE_NOT_FOUND: number;
|
|
220
|
-
WSATYPE_NOT_FOUND: number;
|
|
221
|
-
WSA_E_NO_MORE: number;
|
|
222
|
-
WSA_E_CANCELLED: number;
|
|
223
|
-
WSAEREFUSED: number;
|
|
224
|
-
};
|
|
225
|
-
priority: {
|
|
226
|
-
PRIORITY_LOW: number;
|
|
227
|
-
PRIORITY_BELOW_NORMAL: number;
|
|
228
|
-
PRIORITY_NORMAL: number;
|
|
229
|
-
PRIORITY_ABOVE_NORMAL: number;
|
|
230
|
-
PRIORITY_HIGH: number;
|
|
231
|
-
PRIORITY_HIGHEST: number;
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
function arch(): string;
|
|
235
|
-
function platform(): NodeJS.Platform;
|
|
236
|
-
function tmpdir(): string;
|
|
237
|
-
const EOL: string;
|
|
238
|
-
function endianness(): "BE" | "LE";
|
|
239
|
-
/**
|
|
240
|
-
* Gets the priority of a process.
|
|
241
|
-
* Defaults to current process.
|
|
242
|
-
*/
|
|
243
|
-
function getPriority(pid?: number): number;
|
|
244
|
-
/**
|
|
245
|
-
* Sets the priority of the current process.
|
|
246
|
-
* @param priority Must be in range of -20 to 19
|
|
247
|
-
*/
|
|
248
|
-
function setPriority(priority: number): void;
|
|
249
|
-
/**
|
|
250
|
-
* Sets the priority of the process specified process.
|
|
251
|
-
* @param priority Must be in range of -20 to 19
|
|
252
|
-
*/
|
|
253
|
-
function setPriority(pid: number, priority: number): void;
|
|
254
|
-
}
|