cdk-common 2.0.1351 → 2.0.1353
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 +38 -2
- package/API.md +36 -0
- package/lib/main.js +1 -1
- package/lib/managed-policies.d.ts +7 -1
- package/lib/managed-policies.js +7 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/assert/strict.d.ts +5 -11
- package/node_modules/@types/concat-stream/node_modules/@types/node/assert.d.ts +9 -169
- package/node_modules/@types/concat-stream/node_modules/@types/node/async_hooks.d.ts +8 -8
- package/node_modules/@types/concat-stream/node_modules/@types/node/buffer.buffer.d.ts +1 -7
- package/node_modules/@types/concat-stream/node_modules/@types/node/buffer.d.ts +44 -168
- package/node_modules/@types/concat-stream/node_modules/@types/node/child_process.d.ts +16 -64
- package/node_modules/@types/concat-stream/node_modules/@types/node/cluster.d.ts +240 -332
- package/node_modules/@types/concat-stream/node_modules/@types/node/console.d.ts +49 -351
- package/node_modules/@types/concat-stream/node_modules/@types/node/constants.d.ts +3 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/crypto.d.ts +279 -1631
- package/node_modules/@types/concat-stream/node_modules/@types/node/dgram.d.ts +15 -51
- package/node_modules/@types/concat-stream/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/dns/promises.d.ts +3 -3
- package/node_modules/@types/concat-stream/node_modules/@types/node/dns.d.ts +131 -132
- package/node_modules/@types/concat-stream/node_modules/@types/node/domain.d.ts +13 -17
- package/node_modules/@types/concat-stream/node_modules/@types/node/events.d.ts +869 -791
- package/node_modules/@types/concat-stream/node_modules/@types/node/fs/promises.d.ts +7 -8
- package/node_modules/@types/concat-stream/node_modules/@types/node/fs.d.ts +417 -455
- package/node_modules/@types/concat-stream/node_modules/@types/node/globals.d.ts +6 -26
- package/node_modules/@types/concat-stream/node_modules/@types/node/globals.typedarray.d.ts +60 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/http.d.ts +263 -254
- package/node_modules/@types/concat-stream/node_modules/@types/node/http2.d.ts +528 -804
- package/node_modules/@types/concat-stream/node_modules/@types/node/https.d.ts +59 -239
- package/node_modules/@types/concat-stream/node_modules/@types/node/index.d.ts +15 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/inspector/promises.d.ts +41 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/inspector.d.ts +6 -59
- package/node_modules/@types/concat-stream/node_modules/@types/node/inspector.generated.d.ts +3 -10
- package/node_modules/@types/concat-stream/node_modules/@types/node/module.d.ts +47 -122
- package/node_modules/@types/concat-stream/node_modules/@types/node/net.d.ts +63 -184
- package/node_modules/@types/concat-stream/node_modules/@types/node/os.d.ts +6 -6
- package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/path/posix.d.ts +8 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/path/win32.d.ts +8 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/path.d.ts +120 -133
- package/node_modules/@types/concat-stream/node_modules/@types/node/perf_hooks.d.ts +282 -643
- package/node_modules/@types/concat-stream/node_modules/@types/node/process.d.ts +156 -128
- package/node_modules/@types/concat-stream/node_modules/@types/node/punycode.d.ts +5 -5
- package/node_modules/@types/concat-stream/node_modules/@types/node/querystring.d.ts +4 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/quic.d.ts +910 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/readline/promises.d.ts +3 -3
- package/node_modules/@types/concat-stream/node_modules/@types/node/readline.d.ts +67 -120
- package/node_modules/@types/concat-stream/node_modules/@types/node/repl.d.ts +75 -98
- package/node_modules/@types/concat-stream/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/sqlite.d.ts +2 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/stream/consumers.d.ts +10 -10
- package/node_modules/@types/concat-stream/node_modules/@types/node/stream/promises.d.ts +136 -15
- package/node_modules/@types/concat-stream/node_modules/@types/node/stream/web.d.ts +176 -453
- package/node_modules/@types/concat-stream/node_modules/@types/node/stream.d.ts +555 -478
- package/node_modules/@types/concat-stream/node_modules/@types/node/string_decoder.d.ts +4 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/test/reporters.d.ts +96 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/test.d.ts +80 -180
- package/node_modules/@types/concat-stream/node_modules/@types/node/timers/promises.d.ts +4 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/timers.d.ts +4 -130
- package/node_modules/@types/concat-stream/node_modules/@types/node/tls.d.ts +102 -177
- package/node_modules/@types/concat-stream/node_modules/@types/node/trace_events.d.ts +9 -9
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +1 -7
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/index.d.ts +15 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.7/index.d.ts +15 -1
- package/node_modules/@types/concat-stream/node_modules/@types/node/tty.d.ts +58 -16
- package/node_modules/@types/concat-stream/node_modules/@types/node/url.d.ts +54 -592
- package/node_modules/@types/concat-stream/node_modules/@types/node/util/types.d.ts +558 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/util.d.ts +120 -792
- package/node_modules/@types/concat-stream/node_modules/@types/node/v8.d.ts +32 -5
- package/node_modules/@types/concat-stream/node_modules/@types/node/vm.d.ts +13 -13
- package/node_modules/@types/concat-stream/node_modules/@types/node/wasi.d.ts +4 -4
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/abortcontroller.d.ts +27 -2
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/crypto.d.ts +7 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/events.d.ts +9 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/fetch.d.ts +4 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/streams.d.ts +93 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/node_modules/@types/concat-stream/node_modules/@types/node/worker_threads.d.ts +176 -358
- package/node_modules/@types/concat-stream/node_modules/@types/node/zlib.d.ts +8 -71
- package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/assert/strict.d.ts +5 -11
- package/node_modules/@types/form-data/node_modules/@types/node/assert.d.ts +9 -169
- package/node_modules/@types/form-data/node_modules/@types/node/async_hooks.d.ts +8 -8
- package/node_modules/@types/form-data/node_modules/@types/node/buffer.buffer.d.ts +1 -7
- package/node_modules/@types/form-data/node_modules/@types/node/buffer.d.ts +44 -168
- package/node_modules/@types/form-data/node_modules/@types/node/child_process.d.ts +16 -64
- package/node_modules/@types/form-data/node_modules/@types/node/cluster.d.ts +240 -332
- package/node_modules/@types/form-data/node_modules/@types/node/console.d.ts +49 -351
- package/node_modules/@types/form-data/node_modules/@types/node/constants.d.ts +3 -4
- package/node_modules/@types/form-data/node_modules/@types/node/crypto.d.ts +279 -1631
- package/node_modules/@types/form-data/node_modules/@types/node/dgram.d.ts +15 -51
- package/node_modules/@types/form-data/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
- package/node_modules/@types/form-data/node_modules/@types/node/dns/promises.d.ts +3 -3
- package/node_modules/@types/form-data/node_modules/@types/node/dns.d.ts +131 -132
- package/node_modules/@types/form-data/node_modules/@types/node/domain.d.ts +13 -17
- package/node_modules/@types/form-data/node_modules/@types/node/events.d.ts +869 -791
- package/node_modules/@types/form-data/node_modules/@types/node/fs/promises.d.ts +7 -8
- package/node_modules/@types/form-data/node_modules/@types/node/fs.d.ts +417 -455
- package/node_modules/@types/form-data/node_modules/@types/node/globals.d.ts +6 -26
- package/node_modules/@types/form-data/node_modules/@types/node/globals.typedarray.d.ts +60 -0
- package/node_modules/@types/form-data/node_modules/@types/node/http.d.ts +263 -254
- package/node_modules/@types/form-data/node_modules/@types/node/http2.d.ts +528 -804
- package/node_modules/@types/form-data/node_modules/@types/node/https.d.ts +59 -239
- package/node_modules/@types/form-data/node_modules/@types/node/index.d.ts +15 -1
- package/node_modules/@types/form-data/node_modules/@types/node/inspector/promises.d.ts +41 -0
- package/node_modules/@types/form-data/node_modules/@types/node/inspector.d.ts +6 -59
- package/node_modules/@types/form-data/node_modules/@types/node/inspector.generated.d.ts +3 -10
- package/node_modules/@types/form-data/node_modules/@types/node/module.d.ts +47 -122
- package/node_modules/@types/form-data/node_modules/@types/node/net.d.ts +63 -184
- package/node_modules/@types/form-data/node_modules/@types/node/os.d.ts +6 -6
- package/node_modules/@types/form-data/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/path/posix.d.ts +8 -0
- package/node_modules/@types/form-data/node_modules/@types/node/path/win32.d.ts +8 -0
- package/node_modules/@types/form-data/node_modules/@types/node/path.d.ts +120 -133
- package/node_modules/@types/form-data/node_modules/@types/node/perf_hooks.d.ts +282 -643
- package/node_modules/@types/form-data/node_modules/@types/node/process.d.ts +156 -128
- package/node_modules/@types/form-data/node_modules/@types/node/punycode.d.ts +5 -5
- package/node_modules/@types/form-data/node_modules/@types/node/querystring.d.ts +4 -4
- package/node_modules/@types/form-data/node_modules/@types/node/quic.d.ts +910 -0
- package/node_modules/@types/form-data/node_modules/@types/node/readline/promises.d.ts +3 -3
- package/node_modules/@types/form-data/node_modules/@types/node/readline.d.ts +67 -120
- package/node_modules/@types/form-data/node_modules/@types/node/repl.d.ts +75 -98
- package/node_modules/@types/form-data/node_modules/@types/node/sea.d.ts +1 -1
- package/node_modules/@types/form-data/node_modules/@types/node/sqlite.d.ts +2 -2
- package/node_modules/@types/form-data/node_modules/@types/node/stream/consumers.d.ts +10 -10
- package/node_modules/@types/form-data/node_modules/@types/node/stream/promises.d.ts +136 -15
- package/node_modules/@types/form-data/node_modules/@types/node/stream/web.d.ts +176 -453
- package/node_modules/@types/form-data/node_modules/@types/node/stream.d.ts +555 -478
- package/node_modules/@types/form-data/node_modules/@types/node/string_decoder.d.ts +4 -4
- package/node_modules/@types/form-data/node_modules/@types/node/test/reporters.d.ts +96 -0
- package/node_modules/@types/form-data/node_modules/@types/node/test.d.ts +80 -180
- package/node_modules/@types/form-data/node_modules/@types/node/timers/promises.d.ts +4 -4
- package/node_modules/@types/form-data/node_modules/@types/node/timers.d.ts +4 -130
- package/node_modules/@types/form-data/node_modules/@types/node/tls.d.ts +102 -177
- package/node_modules/@types/form-data/node_modules/@types/node/trace_events.d.ts +9 -9
- package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +1 -7
- package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/index.d.ts +15 -1
- package/node_modules/@types/form-data/node_modules/@types/node/ts5.7/index.d.ts +15 -1
- package/node_modules/@types/form-data/node_modules/@types/node/tty.d.ts +58 -16
- package/node_modules/@types/form-data/node_modules/@types/node/url.d.ts +54 -592
- package/node_modules/@types/form-data/node_modules/@types/node/util/types.d.ts +558 -0
- package/node_modules/@types/form-data/node_modules/@types/node/util.d.ts +120 -792
- package/node_modules/@types/form-data/node_modules/@types/node/v8.d.ts +32 -5
- package/node_modules/@types/form-data/node_modules/@types/node/vm.d.ts +13 -13
- package/node_modules/@types/form-data/node_modules/@types/node/wasi.d.ts +4 -4
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/abortcontroller.d.ts +27 -2
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/crypto.d.ts +7 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/events.d.ts +9 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/fetch.d.ts +4 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/streams.d.ts +93 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/node_modules/@types/form-data/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/node_modules/@types/form-data/node_modules/@types/node/worker_threads.d.ts +176 -358
- package/node_modules/@types/form-data/node_modules/@types/node/zlib.d.ts +8 -71
- package/package.json +4 -4
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a
|
|
3
3
|
* separate module.
|
|
4
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
4
|
+
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/https.js)
|
|
5
5
|
*/
|
|
6
|
-
declare module "https" {
|
|
7
|
-
import
|
|
6
|
+
declare module "node:https" {
|
|
7
|
+
import * as http from "node:http";
|
|
8
8
|
import { Duplex } from "node:stream";
|
|
9
9
|
import * as tls from "node:tls";
|
|
10
|
-
import * as http from "node:http";
|
|
11
10
|
import { URL } from "node:url";
|
|
12
11
|
interface ServerOptions<
|
|
13
12
|
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
@@ -36,10 +35,10 @@ declare module "https" {
|
|
|
36
35
|
): Duplex | null | undefined;
|
|
37
36
|
getName(options?: RequestOptions): string;
|
|
38
37
|
}
|
|
39
|
-
interface
|
|
38
|
+
interface ServerEventMap<
|
|
40
39
|
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
41
40
|
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
|
|
42
|
-
> extends http.
|
|
41
|
+
> extends http.ServerEventMap<Request, Response>, tls.ServerEventMap {}
|
|
43
42
|
/**
|
|
44
43
|
* See `http.Server` for more information.
|
|
45
44
|
* @since v0.3.4
|
|
@@ -63,245 +62,66 @@ declare module "https" {
|
|
|
63
62
|
* @since v18.2.0
|
|
64
63
|
*/
|
|
65
64
|
closeIdleConnections(): void;
|
|
66
|
-
|
|
67
|
-
addListener
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
71
|
-
): this;
|
|
72
|
-
addListener(
|
|
73
|
-
event: "OCSPRequest",
|
|
74
|
-
listener: (
|
|
75
|
-
certificate: NonSharedBuffer,
|
|
76
|
-
issuer: NonSharedBuffer,
|
|
77
|
-
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
78
|
-
) => void,
|
|
79
|
-
): this;
|
|
80
|
-
addListener(
|
|
81
|
-
event: "resumeSession",
|
|
82
|
-
listener: (
|
|
83
|
-
sessionId: NonSharedBuffer,
|
|
84
|
-
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
85
|
-
) => void,
|
|
86
|
-
): this;
|
|
87
|
-
addListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
88
|
-
addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
89
|
-
addListener(event: "close", listener: () => void): this;
|
|
90
|
-
addListener(event: "connection", listener: (socket: Duplex) => void): this;
|
|
91
|
-
addListener(event: "error", listener: (err: Error) => void): this;
|
|
92
|
-
addListener(event: "listening", listener: () => void): this;
|
|
93
|
-
addListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
94
|
-
addListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
95
|
-
addListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
96
|
-
addListener(
|
|
97
|
-
event: "connect",
|
|
98
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
99
|
-
): this;
|
|
100
|
-
addListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
101
|
-
addListener(
|
|
102
|
-
event: "upgrade",
|
|
103
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
104
|
-
): this;
|
|
105
|
-
emit(event: string, ...args: any[]): boolean;
|
|
106
|
-
emit(event: "keylog", line: NonSharedBuffer, tlsSocket: tls.TLSSocket): boolean;
|
|
107
|
-
emit(
|
|
108
|
-
event: "newSession",
|
|
109
|
-
sessionId: NonSharedBuffer,
|
|
110
|
-
sessionData: NonSharedBuffer,
|
|
111
|
-
callback: () => void,
|
|
112
|
-
): boolean;
|
|
113
|
-
emit(
|
|
114
|
-
event: "OCSPRequest",
|
|
115
|
-
certificate: NonSharedBuffer,
|
|
116
|
-
issuer: NonSharedBuffer,
|
|
117
|
-
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
118
|
-
): boolean;
|
|
119
|
-
emit(
|
|
120
|
-
event: "resumeSession",
|
|
121
|
-
sessionId: NonSharedBuffer,
|
|
122
|
-
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
123
|
-
): boolean;
|
|
124
|
-
emit(event: "secureConnection", tlsSocket: tls.TLSSocket): boolean;
|
|
125
|
-
emit(event: "tlsClientError", err: Error, tlsSocket: tls.TLSSocket): boolean;
|
|
126
|
-
emit(event: "close"): boolean;
|
|
127
|
-
emit(event: "connection", socket: Duplex): boolean;
|
|
128
|
-
emit(event: "error", err: Error): boolean;
|
|
129
|
-
emit(event: "listening"): boolean;
|
|
130
|
-
emit(
|
|
131
|
-
event: "checkContinue",
|
|
132
|
-
req: InstanceType<Request>,
|
|
133
|
-
res: InstanceType<Response>,
|
|
134
|
-
): boolean;
|
|
135
|
-
emit(
|
|
136
|
-
event: "checkExpectation",
|
|
137
|
-
req: InstanceType<Request>,
|
|
138
|
-
res: InstanceType<Response>,
|
|
139
|
-
): boolean;
|
|
140
|
-
emit(event: "clientError", err: Error, socket: Duplex): boolean;
|
|
141
|
-
emit(event: "connect", req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer): boolean;
|
|
142
|
-
emit(
|
|
143
|
-
event: "request",
|
|
144
|
-
req: InstanceType<Request>,
|
|
145
|
-
res: InstanceType<Response>,
|
|
146
|
-
): boolean;
|
|
147
|
-
emit(event: "upgrade", req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer): boolean;
|
|
148
|
-
on(event: string, listener: (...args: any[]) => void): this;
|
|
149
|
-
on(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
150
|
-
on(
|
|
151
|
-
event: "newSession",
|
|
152
|
-
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
153
|
-
): this;
|
|
154
|
-
on(
|
|
155
|
-
event: "OCSPRequest",
|
|
156
|
-
listener: (
|
|
157
|
-
certificate: NonSharedBuffer,
|
|
158
|
-
issuer: NonSharedBuffer,
|
|
159
|
-
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
160
|
-
) => void,
|
|
161
|
-
): this;
|
|
162
|
-
on(
|
|
163
|
-
event: "resumeSession",
|
|
164
|
-
listener: (
|
|
165
|
-
sessionId: NonSharedBuffer,
|
|
166
|
-
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
167
|
-
) => void,
|
|
168
|
-
): this;
|
|
169
|
-
on(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
170
|
-
on(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
171
|
-
on(event: "close", listener: () => void): this;
|
|
172
|
-
on(event: "connection", listener: (socket: Duplex) => void): this;
|
|
173
|
-
on(event: "error", listener: (err: Error) => void): this;
|
|
174
|
-
on(event: "listening", listener: () => void): this;
|
|
175
|
-
on(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
176
|
-
on(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
177
|
-
on(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
178
|
-
on(
|
|
179
|
-
event: "connect",
|
|
180
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
181
|
-
): this;
|
|
182
|
-
on(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
183
|
-
on(
|
|
184
|
-
event: "upgrade",
|
|
185
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
65
|
+
// #region InternalEventEmitter
|
|
66
|
+
addListener<E extends keyof ServerEventMap>(
|
|
67
|
+
eventName: E,
|
|
68
|
+
listener: (...args: ServerEventMap<Request, Response>[E]) => void,
|
|
186
69
|
): this;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
70
|
+
addListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
71
|
+
emit<E extends keyof ServerEventMap>(eventName: E, ...args: ServerEventMap<Request, Response>[E]): boolean;
|
|
72
|
+
emit(eventName: string | symbol, ...args: any[]): boolean;
|
|
73
|
+
listenerCount<E extends keyof ServerEventMap>(
|
|
74
|
+
eventName: E,
|
|
75
|
+
listener?: (...args: ServerEventMap<Request, Response>[E]) => void,
|
|
76
|
+
): number;
|
|
77
|
+
listenerCount(eventName: string | symbol, listener?: (...args: any[]) => void): number;
|
|
78
|
+
listeners<E extends keyof ServerEventMap>(
|
|
79
|
+
eventName: E,
|
|
80
|
+
): ((...args: ServerEventMap<Request, Response>[E]) => void)[];
|
|
81
|
+
listeners(eventName: string | symbol): ((...args: any[]) => void)[];
|
|
82
|
+
off<E extends keyof ServerEventMap>(
|
|
83
|
+
eventName: E,
|
|
84
|
+
listener: (...args: ServerEventMap<Request, Response>[E]) => void,
|
|
192
85
|
): this;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
issuer: NonSharedBuffer,
|
|
198
|
-
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
199
|
-
) => void,
|
|
86
|
+
off(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
87
|
+
on<E extends keyof ServerEventMap>(
|
|
88
|
+
eventName: E,
|
|
89
|
+
listener: (...args: ServerEventMap<Request, Response>[E]) => void,
|
|
200
90
|
): this;
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
206
|
-
) => void,
|
|
91
|
+
on(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
92
|
+
once<E extends keyof ServerEventMap>(
|
|
93
|
+
eventName: E,
|
|
94
|
+
listener: (...args: ServerEventMap<Request, Response>[E]) => void,
|
|
207
95
|
): this;
|
|
208
|
-
once(
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
once(event: "error", listener: (err: Error) => void): this;
|
|
213
|
-
once(event: "listening", listener: () => void): this;
|
|
214
|
-
once(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
215
|
-
once(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
216
|
-
once(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
217
|
-
once(
|
|
218
|
-
event: "connect",
|
|
219
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
96
|
+
once(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
97
|
+
prependListener<E extends keyof ServerEventMap>(
|
|
98
|
+
eventName: E,
|
|
99
|
+
listener: (...args: ServerEventMap<Request, Response>[E]) => void,
|
|
220
100
|
): this;
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
listener: (
|
|
101
|
+
prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
102
|
+
prependOnceListener<E extends keyof ServerEventMap>(
|
|
103
|
+
eventName: E,
|
|
104
|
+
listener: (...args: ServerEventMap<Request, Response>[E]) => void,
|
|
225
105
|
): this;
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
238
|
-
) => void,
|
|
239
|
-
): this;
|
|
240
|
-
prependListener(
|
|
241
|
-
event: "resumeSession",
|
|
242
|
-
listener: (
|
|
243
|
-
sessionId: NonSharedBuffer,
|
|
244
|
-
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
245
|
-
) => void,
|
|
246
|
-
): this;
|
|
247
|
-
prependListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
248
|
-
prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
249
|
-
prependListener(event: "close", listener: () => void): this;
|
|
250
|
-
prependListener(event: "connection", listener: (socket: Duplex) => void): this;
|
|
251
|
-
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
252
|
-
prependListener(event: "listening", listener: () => void): this;
|
|
253
|
-
prependListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
254
|
-
prependListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
255
|
-
prependListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
256
|
-
prependListener(
|
|
257
|
-
event: "connect",
|
|
258
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
259
|
-
): this;
|
|
260
|
-
prependListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
261
|
-
prependListener(
|
|
262
|
-
event: "upgrade",
|
|
263
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
264
|
-
): this;
|
|
265
|
-
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
266
|
-
prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
267
|
-
prependOnceListener(
|
|
268
|
-
event: "newSession",
|
|
269
|
-
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
270
|
-
): this;
|
|
271
|
-
prependOnceListener(
|
|
272
|
-
event: "OCSPRequest",
|
|
273
|
-
listener: (
|
|
274
|
-
certificate: NonSharedBuffer,
|
|
275
|
-
issuer: NonSharedBuffer,
|
|
276
|
-
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
277
|
-
) => void,
|
|
278
|
-
): this;
|
|
279
|
-
prependOnceListener(
|
|
280
|
-
event: "resumeSession",
|
|
281
|
-
listener: (
|
|
282
|
-
sessionId: NonSharedBuffer,
|
|
283
|
-
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
284
|
-
) => void,
|
|
285
|
-
): this;
|
|
286
|
-
prependOnceListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
287
|
-
prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
288
|
-
prependOnceListener(event: "close", listener: () => void): this;
|
|
289
|
-
prependOnceListener(event: "connection", listener: (socket: Duplex) => void): this;
|
|
290
|
-
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
291
|
-
prependOnceListener(event: "listening", listener: () => void): this;
|
|
292
|
-
prependOnceListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
293
|
-
prependOnceListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
294
|
-
prependOnceListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
295
|
-
prependOnceListener(
|
|
296
|
-
event: "connect",
|
|
297
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
298
|
-
): this;
|
|
299
|
-
prependOnceListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
300
|
-
prependOnceListener(
|
|
301
|
-
event: "upgrade",
|
|
302
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
106
|
+
prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
107
|
+
rawListeners<E extends keyof ServerEventMap>(
|
|
108
|
+
eventName: E,
|
|
109
|
+
): ((...args: ServerEventMap<Request, Response>[E]) => void)[];
|
|
110
|
+
rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
|
|
111
|
+
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
|
|
112
|
+
removeAllListeners<E extends keyof ServerEventMap>(eventName?: E): this;
|
|
113
|
+
removeAllListeners(eventName?: string | symbol): this;
|
|
114
|
+
removeListener<E extends keyof ServerEventMap>(
|
|
115
|
+
eventName: E,
|
|
116
|
+
listener: (...args: ServerEventMap<Request, Response>[E]) => void,
|
|
303
117
|
): this;
|
|
118
|
+
removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
119
|
+
// #endregion
|
|
304
120
|
}
|
|
121
|
+
interface Server<
|
|
122
|
+
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
123
|
+
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
|
|
124
|
+
> extends http.Server<Request, Response> {}
|
|
305
125
|
/**
|
|
306
126
|
* ```js
|
|
307
127
|
* // curl -k https://localhost:8000/
|
|
@@ -574,6 +394,6 @@ declare module "https" {
|
|
|
574
394
|
): http.ClientRequest;
|
|
575
395
|
let globalAgent: Agent;
|
|
576
396
|
}
|
|
577
|
-
declare module "
|
|
578
|
-
export * from "https";
|
|
397
|
+
declare module "https" {
|
|
398
|
+
export * from "node:https";
|
|
579
399
|
}
|
|
@@ -39,13 +39,21 @@
|
|
|
39
39
|
// Definitions for Node.js modules that are not specific to any version of TypeScript:
|
|
40
40
|
/// <reference path="globals.d.ts" />
|
|
41
41
|
/// <reference path="web-globals/abortcontroller.d.ts" />
|
|
42
|
+
/// <reference path="web-globals/blob.d.ts" />
|
|
43
|
+
/// <reference path="web-globals/console.d.ts" />
|
|
42
44
|
/// <reference path="web-globals/crypto.d.ts" />
|
|
43
45
|
/// <reference path="web-globals/domexception.d.ts" />
|
|
46
|
+
/// <reference path="web-globals/encoding.d.ts" />
|
|
44
47
|
/// <reference path="web-globals/events.d.ts" />
|
|
45
48
|
/// <reference path="web-globals/fetch.d.ts" />
|
|
49
|
+
/// <reference path="web-globals/importmeta.d.ts" />
|
|
50
|
+
/// <reference path="web-globals/messaging.d.ts" />
|
|
46
51
|
/// <reference path="web-globals/navigator.d.ts" />
|
|
52
|
+
/// <reference path="web-globals/performance.d.ts" />
|
|
47
53
|
/// <reference path="web-globals/storage.d.ts" />
|
|
48
54
|
/// <reference path="web-globals/streams.d.ts" />
|
|
55
|
+
/// <reference path="web-globals/timers.d.ts" />
|
|
56
|
+
/// <reference path="web-globals/url.d.ts" />
|
|
49
57
|
/// <reference path="assert.d.ts" />
|
|
50
58
|
/// <reference path="assert/strict.d.ts" />
|
|
51
59
|
/// <reference path="async_hooks.d.ts" />
|
|
@@ -68,25 +76,30 @@
|
|
|
68
76
|
/// <reference path="https.d.ts" />
|
|
69
77
|
/// <reference path="inspector.d.ts" />
|
|
70
78
|
/// <reference path="inspector.generated.d.ts" />
|
|
79
|
+
/// <reference path="inspector/promises.d.ts" />
|
|
71
80
|
/// <reference path="module.d.ts" />
|
|
72
81
|
/// <reference path="net.d.ts" />
|
|
73
82
|
/// <reference path="os.d.ts" />
|
|
74
83
|
/// <reference path="path.d.ts" />
|
|
84
|
+
/// <reference path="path/posix.d.ts" />
|
|
85
|
+
/// <reference path="path/win32.d.ts" />
|
|
75
86
|
/// <reference path="perf_hooks.d.ts" />
|
|
76
87
|
/// <reference path="process.d.ts" />
|
|
77
88
|
/// <reference path="punycode.d.ts" />
|
|
78
89
|
/// <reference path="querystring.d.ts" />
|
|
90
|
+
/// <reference path="quic.d.ts" />
|
|
79
91
|
/// <reference path="readline.d.ts" />
|
|
80
92
|
/// <reference path="readline/promises.d.ts" />
|
|
81
93
|
/// <reference path="repl.d.ts" />
|
|
82
94
|
/// <reference path="sea.d.ts" />
|
|
83
95
|
/// <reference path="sqlite.d.ts" />
|
|
84
96
|
/// <reference path="stream.d.ts" />
|
|
85
|
-
/// <reference path="stream/promises.d.ts" />
|
|
86
97
|
/// <reference path="stream/consumers.d.ts" />
|
|
98
|
+
/// <reference path="stream/promises.d.ts" />
|
|
87
99
|
/// <reference path="stream/web.d.ts" />
|
|
88
100
|
/// <reference path="string_decoder.d.ts" />
|
|
89
101
|
/// <reference path="test.d.ts" />
|
|
102
|
+
/// <reference path="test/reporters.d.ts" />
|
|
90
103
|
/// <reference path="timers.d.ts" />
|
|
91
104
|
/// <reference path="timers/promises.d.ts" />
|
|
92
105
|
/// <reference path="tls.d.ts" />
|
|
@@ -94,6 +107,7 @@
|
|
|
94
107
|
/// <reference path="tty.d.ts" />
|
|
95
108
|
/// <reference path="url.d.ts" />
|
|
96
109
|
/// <reference path="util.d.ts" />
|
|
110
|
+
/// <reference path="util/types.d.ts" />
|
|
97
111
|
/// <reference path="v8.d.ts" />
|
|
98
112
|
/// <reference path="vm.d.ts" />
|
|
99
113
|
/// <reference path="wasi.d.ts" />
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `node:inspector/promises` module provides an API for interacting with the V8
|
|
3
|
+
* inspector.
|
|
4
|
+
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/inspector/promises.js)
|
|
5
|
+
* @since v19.0.0
|
|
6
|
+
*/
|
|
7
|
+
declare module "node:inspector/promises" {
|
|
8
|
+
import { EventEmitter } from "node:events";
|
|
9
|
+
export { close, console, NetworkResources, open, url, waitForDebugger } from "node:inspector";
|
|
10
|
+
/**
|
|
11
|
+
* The `inspector.Session` is used for dispatching messages to the V8 inspector
|
|
12
|
+
* back-end and receiving message responses and notifications.
|
|
13
|
+
* @since v19.0.0
|
|
14
|
+
*/
|
|
15
|
+
export class Session extends EventEmitter {
|
|
16
|
+
/**
|
|
17
|
+
* Create a new instance of the inspector.Session class.
|
|
18
|
+
* The inspector session needs to be connected through `session.connect()` before the messages can be dispatched to the inspector backend.
|
|
19
|
+
*/
|
|
20
|
+
constructor();
|
|
21
|
+
/**
|
|
22
|
+
* Connects a session to the inspector back-end.
|
|
23
|
+
*/
|
|
24
|
+
connect(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Connects a session to the inspector back-end.
|
|
27
|
+
* An exception will be thrown if this API was not called on a Worker thread.
|
|
28
|
+
* @since v12.11.0
|
|
29
|
+
*/
|
|
30
|
+
connectToMainThread(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Immediately close the session. All pending message callbacks will be called with an error.
|
|
33
|
+
* `session.connect()` will need to be called to be able to send messages again.
|
|
34
|
+
* Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints.
|
|
35
|
+
*/
|
|
36
|
+
disconnect(): void;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
declare module "inspector/promises" {
|
|
40
|
+
export * from "node:inspector/promises";
|
|
41
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The `node:inspector` module provides an API for interacting with the V8
|
|
3
3
|
* inspector.
|
|
4
|
-
* @see [source](https://github.com/nodejs/node/blob/
|
|
4
|
+
* @see [source](https://github.com/nodejs/node/blob/v25.x/lib/inspector.js)
|
|
5
5
|
*/
|
|
6
|
-
declare module "inspector" {
|
|
7
|
-
import EventEmitter
|
|
6
|
+
declare module "node:inspector" {
|
|
7
|
+
import { EventEmitter } from "node:events";
|
|
8
8
|
/**
|
|
9
9
|
* The `inspector.Session` is used for dispatching messages to the V8 inspector
|
|
10
10
|
* back-end and receiving message responses and notifications.
|
|
@@ -39,7 +39,7 @@ declare module "inspector" {
|
|
|
39
39
|
* If wait is `true`, will block until a client has connected to the inspect port
|
|
40
40
|
* and flow control has been passed to the debugger client.
|
|
41
41
|
*
|
|
42
|
-
* See the [security warning](https://nodejs.org/docs/latest-
|
|
42
|
+
* See the [security warning](https://nodejs.org/docs/latest-v25.x/api/cli.html#warning-binding-inspector-to-a-public-ipport-combination-is-insecure)
|
|
43
43
|
* regarding the `host` parameter usage.
|
|
44
44
|
* @param port Port to listen on for inspector connections. Defaults to what was specified on the CLI.
|
|
45
45
|
* @param host Host to listen on for inspector connections. Defaults to what was specified on the CLI.
|
|
@@ -219,59 +219,6 @@ declare module "inspector" {
|
|
|
219
219
|
function put(url: string, data: string): void;
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
* The `node:inspector` module provides an API for interacting with the V8
|
|
225
|
-
* inspector.
|
|
226
|
-
*/
|
|
227
|
-
declare module "node:inspector" {
|
|
228
|
-
export * from "inspector";
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* The `node:inspector/promises` module provides an API for interacting with the V8
|
|
233
|
-
* inspector.
|
|
234
|
-
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/inspector/promises.js)
|
|
235
|
-
* @since v19.0.0
|
|
236
|
-
*/
|
|
237
|
-
declare module "inspector/promises" {
|
|
238
|
-
import EventEmitter = require("node:events");
|
|
239
|
-
export { close, console, NetworkResources, open, url, waitForDebugger } from "inspector";
|
|
240
|
-
/**
|
|
241
|
-
* The `inspector.Session` is used for dispatching messages to the V8 inspector
|
|
242
|
-
* back-end and receiving message responses and notifications.
|
|
243
|
-
* @since v19.0.0
|
|
244
|
-
*/
|
|
245
|
-
export class Session extends EventEmitter {
|
|
246
|
-
/**
|
|
247
|
-
* Create a new instance of the inspector.Session class.
|
|
248
|
-
* The inspector session needs to be connected through `session.connect()` before the messages can be dispatched to the inspector backend.
|
|
249
|
-
*/
|
|
250
|
-
constructor();
|
|
251
|
-
/**
|
|
252
|
-
* Connects a session to the inspector back-end.
|
|
253
|
-
*/
|
|
254
|
-
connect(): void;
|
|
255
|
-
/**
|
|
256
|
-
* Connects a session to the inspector back-end.
|
|
257
|
-
* An exception will be thrown if this API was not called on a Worker thread.
|
|
258
|
-
* @since v12.11.0
|
|
259
|
-
*/
|
|
260
|
-
connectToMainThread(): void;
|
|
261
|
-
/**
|
|
262
|
-
* Immediately close the session. All pending message callbacks will be called with an error.
|
|
263
|
-
* `session.connect()` will need to be called to be able to send messages again.
|
|
264
|
-
* Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints.
|
|
265
|
-
*/
|
|
266
|
-
disconnect(): void;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* The `node:inspector/promises` module provides an API for interacting with the V8
|
|
272
|
-
* inspector.
|
|
273
|
-
* @since v19.0.0
|
|
274
|
-
*/
|
|
275
|
-
declare module "node:inspector/promises" {
|
|
276
|
-
export * from "inspector/promises";
|
|
222
|
+
declare module "inspector" {
|
|
223
|
+
export * from "node:inspector";
|
|
277
224
|
}
|
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
// See scripts/generate-inspector/README.md for information on how to update the protocol definitions.
|
|
4
4
|
// Changes to the module itself should be added to the generator template (scripts/generate-inspector/inspector.d.ts.template).
|
|
5
5
|
|
|
6
|
-
declare module "inspector" {
|
|
6
|
+
declare module "node:inspector" {
|
|
7
7
|
interface InspectorNotification<T> {
|
|
8
8
|
method: string;
|
|
9
9
|
params: T;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
11
|
namespace Schema {
|
|
13
12
|
/**
|
|
14
13
|
* Description of the protocol domain.
|
|
@@ -2033,7 +2032,6 @@ declare module "inspector" {
|
|
|
2033
2032
|
eof: boolean;
|
|
2034
2033
|
}
|
|
2035
2034
|
}
|
|
2036
|
-
|
|
2037
2035
|
interface Session {
|
|
2038
2036
|
/**
|
|
2039
2037
|
* Posts a message to the inspector back-end. `callback` will be notified when
|
|
@@ -2428,7 +2426,6 @@ declare module "inspector" {
|
|
|
2428
2426
|
post(method: "IO.read", callback?: (err: Error | null, params: IO.ReadReturnType) => void): void;
|
|
2429
2427
|
post(method: "IO.close", params?: IO.CloseParameterType, callback?: (err: Error | null) => void): void;
|
|
2430
2428
|
post(method: "IO.close", callback?: (err: Error | null) => void): void;
|
|
2431
|
-
|
|
2432
2429
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
2433
2430
|
/**
|
|
2434
2431
|
* Emitted when any notification from the V8 Inspector is received.
|
|
@@ -3145,8 +3142,7 @@ declare module "inspector" {
|
|
|
3145
3142
|
prependOnceListener(event: "Target.attachedToTarget", listener: (message: InspectorNotification<Target.AttachedToTargetEventDataType>) => void): this;
|
|
3146
3143
|
}
|
|
3147
3144
|
}
|
|
3148
|
-
|
|
3149
|
-
declare module "inspector/promises" {
|
|
3145
|
+
declare module "node:inspector/promises" {
|
|
3150
3146
|
export {
|
|
3151
3147
|
Schema,
|
|
3152
3148
|
Runtime,
|
|
@@ -3162,8 +3158,7 @@ declare module "inspector/promises" {
|
|
|
3162
3158
|
IO,
|
|
3163
3159
|
} from 'inspector';
|
|
3164
3160
|
}
|
|
3165
|
-
|
|
3166
|
-
declare module "inspector/promises" {
|
|
3161
|
+
declare module "node:inspector/promises" {
|
|
3167
3162
|
import {
|
|
3168
3163
|
InspectorNotification,
|
|
3169
3164
|
Schema,
|
|
@@ -3179,7 +3174,6 @@ declare module "inspector/promises" {
|
|
|
3179
3174
|
Target,
|
|
3180
3175
|
IO,
|
|
3181
3176
|
} from "inspector";
|
|
3182
|
-
|
|
3183
3177
|
/**
|
|
3184
3178
|
* The `inspector.Session` is used for dispatching messages to the V8 inspector
|
|
3185
3179
|
* back-end and receiving message responses and notifications.
|
|
@@ -3514,7 +3508,6 @@ declare module "inspector/promises" {
|
|
|
3514
3508
|
*/
|
|
3515
3509
|
post(method: "IO.read", params?: IO.ReadParameterType): Promise<IO.ReadReturnType>;
|
|
3516
3510
|
post(method: "IO.close", params?: IO.CloseParameterType): Promise<void>;
|
|
3517
|
-
|
|
3518
3511
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
3519
3512
|
/**
|
|
3520
3513
|
* Emitted when any notification from the V8 Inspector is received.
|