@contrast/agent-bundle 5.46.0 → 5.47.0
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 +1 -1
- package/node_modules/@contrast/agent/README.md +1 -1
- package/node_modules/@contrast/agent/package.json +12 -12
- package/node_modules/@contrast/agentify/package.json +15 -15
- package/node_modules/@contrast/architecture-components/package.json +5 -5
- package/node_modules/@contrast/assess/lib/{session-configuration → configuration-analysis}/common.js +1 -1
- package/node_modules/@contrast/assess/lib/{session-configuration → configuration-analysis}/handlers.js +23 -10
- package/node_modules/@contrast/assess/lib/{session-configuration → configuration-analysis}/index.js +6 -4
- package/node_modules/@contrast/assess/lib/configuration-analysis/install/apollo-server.js +92 -0
- package/node_modules/@contrast/assess/lib/{session-configuration → configuration-analysis}/install/express-session.js +2 -2
- package/node_modules/@contrast/assess/lib/{session-configuration → configuration-analysis}/install/fastify-cookie.js +2 -2
- package/node_modules/@contrast/assess/lib/configuration-analysis/install/graphql-yoga.js +90 -0
- package/node_modules/@contrast/assess/lib/{session-configuration → configuration-analysis}/install/hapi.js +2 -2
- package/node_modules/@contrast/assess/lib/{session-configuration → configuration-analysis}/install/koa.js +3 -3
- package/node_modules/@contrast/assess/lib/dataflow/propagation/install/string/substring.js +1 -1
- package/node_modules/@contrast/assess/lib/dataflow/sources/handler.js +9 -2
- package/node_modules/@contrast/assess/lib/dataflow/sources/index.js +2 -0
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/fastify-websocket.js +63 -0
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/http.js +42 -38
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/koa/index.js +1 -1
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/koa/koa-bodyparsers.js +76 -48
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/koa/koa-multer.js +1 -1
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/koa/koa-routers.js +2 -2
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/koa/{koa2.js → koa.js} +3 -3
- package/node_modules/@contrast/assess/lib/dataflow/sources/install/socket.io.js +80 -0
- package/node_modules/@contrast/assess/lib/index.d.ts +4 -3
- package/node_modules/@contrast/assess/lib/index.js +1 -1
- package/node_modules/@contrast/assess/lib/policy.js +2 -2
- package/node_modules/@contrast/assess/package.json +12 -12
- package/node_modules/@contrast/common/lib/constants.d.ts +12 -4
- package/node_modules/@contrast/common/lib/constants.js +16 -7
- package/node_modules/@contrast/common/lib/types.d.ts +5 -1
- package/node_modules/@contrast/common/package.json +1 -1
- package/node_modules/@contrast/config/lib/common.js +1 -0
- package/node_modules/@contrast/config/lib/options.js +7 -1
- package/node_modules/@contrast/config/package.json +3 -3
- package/node_modules/@contrast/core/package.json +5 -5
- package/node_modules/@contrast/deadzones/package.json +5 -5
- package/node_modules/@contrast/dep-hooks/lib/package-finder.d.ts +2 -2
- package/node_modules/@contrast/dep-hooks/lib/package-finder.js +3 -2
- package/node_modules/@contrast/dep-hooks/package.json +4 -4
- package/node_modules/@contrast/esm-hooks/README.md +2 -2
- package/node_modules/@contrast/esm-hooks/package.json +6 -6
- package/node_modules/@contrast/instrumentation/package.json +5 -5
- package/node_modules/@contrast/library-analysis/lib/install/library-reporting/dep.json +149 -149
- package/node_modules/@contrast/library-analysis/lib/install/library-reporting/index.js +2 -11
- package/node_modules/@contrast/library-analysis/lib/install/library-reporting/utils.js +2 -0
- package/node_modules/@contrast/library-analysis/lib/install/library-usage/index.js +3 -1
- package/node_modules/@contrast/library-analysis/lib/util.js +0 -2
- package/node_modules/@contrast/library-analysis/package.json +4 -4
- package/node_modules/@contrast/logger/package.json +3 -3
- package/node_modules/@contrast/metrics/package.json +6 -6
- package/node_modules/@contrast/patcher/package.json +2 -2
- package/node_modules/@contrast/protect/lib/error-handlers/index.js +1 -1
- package/node_modules/@contrast/protect/lib/error-handlers/install/{koa2.js → koa.js} +4 -4
- package/node_modules/@contrast/protect/lib/index.d.ts +1 -1
- package/node_modules/@contrast/protect/lib/input-analysis/index.js +2 -3
- package/node_modules/@contrast/protect/lib/input-analysis/install/koa-bodyparsers.js +92 -0
- package/node_modules/@contrast/protect/lib/input-analysis/install/{koa2.js → koa.js} +5 -5
- package/node_modules/@contrast/protect/package.json +11 -11
- package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/application-activity/translations.js +6 -10
- package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/routes-observed.js +4 -0
- package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/traces/index.d.ts +1 -1
- package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/traces/index.js +1 -1
- package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/traces/translations.d.ts +1 -1
- package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/traces/translations.js +22 -9
- package/node_modules/@contrast/reporter/lib/reporters/file.js +1 -1
- package/node_modules/@contrast/reporter/package.json +6 -6
- package/node_modules/@contrast/rewriter/package.json +5 -5
- package/node_modules/@contrast/route-coverage/lib/index.d.ts +0 -2
- package/node_modules/@contrast/route-coverage/lib/index.js +10 -1
- package/node_modules/@contrast/route-coverage/lib/install/express/express5.js +16 -1
- package/node_modules/@contrast/route-coverage/lib/install/fastify.js +25 -15
- package/node_modules/@contrast/route-coverage/lib/install/graphql.js +6 -1
- package/node_modules/@contrast/route-coverage/lib/install/koa.js +1 -1
- package/node_modules/@contrast/route-coverage/lib/install/socket.io.js +127 -0
- package/node_modules/@contrast/route-coverage/package.json +8 -8
- package/node_modules/@contrast/scopes/package.json +5 -5
- package/node_modules/@contrast/sec-obs/package.json +9 -9
- package/node_modules/@contrast/sources/lib/index.js +65 -22
- package/node_modules/@contrast/sources/lib/index.test.js +78 -33
- package/node_modules/@contrast/sources/lib/source-info.js +1 -10
- package/node_modules/@contrast/sources/package.json +3 -3
- package/node_modules/@contrast/telemetry/package.json +5 -5
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/assert.d.ts +37 -2
- package/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/node_modules/@types/node/buffer.d.ts +8 -4
- package/node_modules/@types/node/child_process.d.ts +65 -42
- package/node_modules/@types/node/cluster.d.ts +4 -5
- package/node_modules/@types/node/crypto.d.ts +1079 -338
- package/node_modules/@types/node/dgram.d.ts +9 -8
- package/node_modules/@types/node/diagnostics_channel.d.ts +0 -2
- package/node_modules/@types/node/dns.d.ts +1 -1
- package/node_modules/@types/node/events.d.ts +1 -1
- package/node_modules/@types/node/fs/promises.d.ts +39 -21
- package/node_modules/@types/node/fs.d.ts +104 -87
- package/node_modules/@types/node/globals.d.ts +2 -0
- package/node_modules/@types/node/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/node/http.d.ts +66 -27
- package/node_modules/@types/node/http2.d.ts +178 -52
- package/node_modules/@types/node/https.d.ts +91 -62
- package/node_modules/@types/node/index.d.ts +2 -0
- package/node_modules/@types/node/inspector.d.ts +24 -0
- package/node_modules/@types/node/inspector.generated.d.ts +181 -0
- package/node_modules/@types/node/net.d.ts +12 -11
- package/node_modules/@types/node/os.d.ts +14 -3
- package/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/node/perf_hooks.d.ts +6 -8
- package/node_modules/@types/node/process.d.ts +12 -23
- package/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/node_modules/@types/node/sea.d.ts +9 -0
- package/node_modules/@types/node/sqlite.d.ts +119 -10
- package/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/node_modules/@types/node/stream/web.d.ts +6 -55
- package/node_modules/@types/node/stream.d.ts +38 -23
- package/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/node_modules/@types/node/test.d.ts +29 -3
- package/node_modules/@types/node/tls.d.ts +90 -66
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +2 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +2 -0
- package/node_modules/@types/node/url.d.ts +2 -2
- package/node_modules/@types/node/util.d.ts +12 -3
- package/node_modules/@types/node/v8.d.ts +38 -5
- package/node_modules/@types/node/vm.d.ts +169 -88
- package/node_modules/@types/node/wasi.d.ts +1 -1
- package/node_modules/@types/node/web-globals/crypto.d.ts +32 -0
- package/node_modules/@types/node/web-globals/streams.d.ts +22 -0
- package/node_modules/@types/node/worker_threads.d.ts +76 -1
- package/node_modules/@types/node/zlib.d.ts +25 -24
- package/node_modules/axios/CHANGELOG.md +403 -357
- package/node_modules/axios/README.md +80 -49
- package/node_modules/axios/dist/axios.js +121 -46
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +126 -57
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +126 -57
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +346 -97
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +4 -0
- package/node_modules/axios/index.d.ts +4 -0
- package/node_modules/axios/lib/adapters/adapters.js +85 -40
- package/node_modules/axios/lib/adapters/fetch.js +1 -1
- package/node_modules/axios/lib/adapters/http.js +220 -42
- package/node_modules/axios/lib/core/InterceptorManager.js +1 -1
- package/node_modules/axios/lib/core/mergeConfig.js +4 -4
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/HttpStatusCode.js +6 -0
- package/node_modules/axios/lib/helpers/bind.js +7 -0
- package/node_modules/axios/lib/helpers/cookies.js +24 -13
- package/node_modules/axios/package.json +9 -4
- package/node_modules/detect-libc/lib/filesystem.js +1 -1
- package/node_modules/detect-libc/package.json +3 -1
- package/node_modules/node-abi/abi_registry.json +12 -2
- package/node_modules/node-abi/package.json +3 -6
- package/node_modules/semver/classes/range.js +1 -0
- package/node_modules/semver/classes/semver.js +19 -5
- package/node_modules/semver/internal/identifiers.js +4 -0
- package/node_modules/semver/package.json +3 -3
- package/node_modules/undici-types/agent.d.ts +1 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
- package/node_modules/undici-types/errors.d.ts +5 -15
- package/node_modules/undici-types/eventsource.d.ts +6 -1
- package/node_modules/undici-types/index.d.ts +4 -1
- package/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/snapshot-agent.d.ts +5 -3
- package/node_modules/undici-types/webidl.d.ts +82 -21
- package/package.json +3 -3
- package/node_modules/@contrast/protect/lib/input-analysis/install/koa-body5.js +0 -63
- package/node_modules/@contrast/protect/lib/input-analysis/install/koa-bodyparser4.js +0 -64
|
@@ -4,24 +4,22 @@
|
|
|
4
4
|
* @see [source](https://github.com/nodejs/node/blob/v24.x/lib/https.js)
|
|
5
5
|
*/
|
|
6
6
|
declare module "https" {
|
|
7
|
+
import { NonSharedBuffer } from "node:buffer";
|
|
7
8
|
import { Duplex } from "node:stream";
|
|
8
9
|
import * as tls from "node:tls";
|
|
9
10
|
import * as http from "node:http";
|
|
10
11
|
import { URL } from "node:url";
|
|
11
|
-
|
|
12
|
+
interface ServerOptions<
|
|
12
13
|
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
|
13
14
|
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
|
|
14
|
-
>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
rejectUnauthorized?: boolean | undefined; // Defaults to true
|
|
23
|
-
servername?: string | undefined; // SNI TLS Extension
|
|
24
|
-
};
|
|
15
|
+
> extends http.ServerOptions<Request, Response>, tls.TlsOptions {}
|
|
16
|
+
interface RequestOptions extends http.RequestOptions, tls.SecureContextOptions {
|
|
17
|
+
checkServerIdentity?:
|
|
18
|
+
| ((hostname: string, cert: tls.DetailedPeerCertificate) => Error | undefined)
|
|
19
|
+
| undefined;
|
|
20
|
+
rejectUnauthorized?: boolean | undefined; // Defaults to true
|
|
21
|
+
servername?: string | undefined; // SNI TLS Extension
|
|
22
|
+
}
|
|
25
23
|
interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions {
|
|
26
24
|
maxCachedSessions?: number | undefined;
|
|
27
25
|
}
|
|
@@ -66,22 +64,25 @@ declare module "https" {
|
|
|
66
64
|
*/
|
|
67
65
|
closeIdleConnections(): void;
|
|
68
66
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
69
|
-
addListener(event: "keylog", listener: (line:
|
|
67
|
+
addListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
70
68
|
addListener(
|
|
71
69
|
event: "newSession",
|
|
72
|
-
listener: (sessionId:
|
|
70
|
+
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
73
71
|
): this;
|
|
74
72
|
addListener(
|
|
75
73
|
event: "OCSPRequest",
|
|
76
74
|
listener: (
|
|
77
|
-
certificate:
|
|
78
|
-
issuer:
|
|
79
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
75
|
+
certificate: NonSharedBuffer,
|
|
76
|
+
issuer: NonSharedBuffer,
|
|
77
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
80
78
|
) => void,
|
|
81
79
|
): this;
|
|
82
80
|
addListener(
|
|
83
81
|
event: "resumeSession",
|
|
84
|
-
listener: (
|
|
82
|
+
listener: (
|
|
83
|
+
sessionId: NonSharedBuffer,
|
|
84
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
85
|
+
) => void,
|
|
85
86
|
): this;
|
|
86
87
|
addListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
87
88
|
addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
@@ -94,28 +95,32 @@ declare module "https" {
|
|
|
94
95
|
addListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
95
96
|
addListener(
|
|
96
97
|
event: "connect",
|
|
97
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head:
|
|
98
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
98
99
|
): this;
|
|
99
100
|
addListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
100
101
|
addListener(
|
|
101
102
|
event: "upgrade",
|
|
102
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head:
|
|
103
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
103
104
|
): this;
|
|
104
105
|
emit(event: string, ...args: any[]): boolean;
|
|
105
|
-
emit(event: "keylog", line:
|
|
106
|
+
emit(event: "keylog", line: NonSharedBuffer, tlsSocket: tls.TLSSocket): boolean;
|
|
106
107
|
emit(
|
|
107
108
|
event: "newSession",
|
|
108
|
-
sessionId:
|
|
109
|
-
sessionData:
|
|
110
|
-
callback: (
|
|
109
|
+
sessionId: NonSharedBuffer,
|
|
110
|
+
sessionData: NonSharedBuffer,
|
|
111
|
+
callback: () => void,
|
|
111
112
|
): boolean;
|
|
112
113
|
emit(
|
|
113
114
|
event: "OCSPRequest",
|
|
114
|
-
certificate:
|
|
115
|
-
issuer:
|
|
116
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
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,
|
|
117
123
|
): boolean;
|
|
118
|
-
emit(event: "resumeSession", sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean;
|
|
119
124
|
emit(event: "secureConnection", tlsSocket: tls.TLSSocket): boolean;
|
|
120
125
|
emit(event: "tlsClientError", err: Error, tlsSocket: tls.TLSSocket): boolean;
|
|
121
126
|
emit(event: "close"): boolean;
|
|
@@ -133,30 +138,33 @@ declare module "https" {
|
|
|
133
138
|
res: InstanceType<Response>,
|
|
134
139
|
): boolean;
|
|
135
140
|
emit(event: "clientError", err: Error, socket: Duplex): boolean;
|
|
136
|
-
emit(event: "connect", req: InstanceType<Request>, socket: Duplex, head:
|
|
141
|
+
emit(event: "connect", req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer): boolean;
|
|
137
142
|
emit(
|
|
138
143
|
event: "request",
|
|
139
144
|
req: InstanceType<Request>,
|
|
140
145
|
res: InstanceType<Response>,
|
|
141
146
|
): boolean;
|
|
142
|
-
emit(event: "upgrade", req: InstanceType<Request>, socket: Duplex, head:
|
|
147
|
+
emit(event: "upgrade", req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer): boolean;
|
|
143
148
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
144
|
-
on(event: "keylog", listener: (line:
|
|
149
|
+
on(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
145
150
|
on(
|
|
146
151
|
event: "newSession",
|
|
147
|
-
listener: (sessionId:
|
|
152
|
+
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
148
153
|
): this;
|
|
149
154
|
on(
|
|
150
155
|
event: "OCSPRequest",
|
|
151
156
|
listener: (
|
|
152
|
-
certificate:
|
|
153
|
-
issuer:
|
|
154
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
157
|
+
certificate: NonSharedBuffer,
|
|
158
|
+
issuer: NonSharedBuffer,
|
|
159
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
155
160
|
) => void,
|
|
156
161
|
): this;
|
|
157
162
|
on(
|
|
158
163
|
event: "resumeSession",
|
|
159
|
-
listener: (
|
|
164
|
+
listener: (
|
|
165
|
+
sessionId: NonSharedBuffer,
|
|
166
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
167
|
+
) => void,
|
|
160
168
|
): this;
|
|
161
169
|
on(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
162
170
|
on(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
@@ -167,26 +175,35 @@ declare module "https" {
|
|
|
167
175
|
on(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
168
176
|
on(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
169
177
|
on(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
170
|
-
on(
|
|
178
|
+
on(
|
|
179
|
+
event: "connect",
|
|
180
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
181
|
+
): this;
|
|
171
182
|
on(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
172
|
-
on(
|
|
183
|
+
on(
|
|
184
|
+
event: "upgrade",
|
|
185
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
186
|
+
): this;
|
|
173
187
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
174
|
-
once(event: "keylog", listener: (line:
|
|
188
|
+
once(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
175
189
|
once(
|
|
176
190
|
event: "newSession",
|
|
177
|
-
listener: (sessionId:
|
|
191
|
+
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
178
192
|
): this;
|
|
179
193
|
once(
|
|
180
194
|
event: "OCSPRequest",
|
|
181
195
|
listener: (
|
|
182
|
-
certificate:
|
|
183
|
-
issuer:
|
|
184
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
196
|
+
certificate: NonSharedBuffer,
|
|
197
|
+
issuer: NonSharedBuffer,
|
|
198
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
185
199
|
) => void,
|
|
186
200
|
): this;
|
|
187
201
|
once(
|
|
188
202
|
event: "resumeSession",
|
|
189
|
-
listener: (
|
|
203
|
+
listener: (
|
|
204
|
+
sessionId: NonSharedBuffer,
|
|
205
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
206
|
+
) => void,
|
|
190
207
|
): this;
|
|
191
208
|
once(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
192
209
|
once(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
@@ -197,26 +214,35 @@ declare module "https" {
|
|
|
197
214
|
once(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
|
198
215
|
once(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
|
199
216
|
once(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
200
|
-
once(
|
|
217
|
+
once(
|
|
218
|
+
event: "connect",
|
|
219
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
220
|
+
): this;
|
|
201
221
|
once(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
202
|
-
once(
|
|
222
|
+
once(
|
|
223
|
+
event: "upgrade",
|
|
224
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
225
|
+
): this;
|
|
203
226
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
204
|
-
prependListener(event: "keylog", listener: (line:
|
|
227
|
+
prependListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
205
228
|
prependListener(
|
|
206
229
|
event: "newSession",
|
|
207
|
-
listener: (sessionId:
|
|
230
|
+
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
208
231
|
): this;
|
|
209
232
|
prependListener(
|
|
210
233
|
event: "OCSPRequest",
|
|
211
234
|
listener: (
|
|
212
|
-
certificate:
|
|
213
|
-
issuer:
|
|
214
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
235
|
+
certificate: NonSharedBuffer,
|
|
236
|
+
issuer: NonSharedBuffer,
|
|
237
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
215
238
|
) => void,
|
|
216
239
|
): this;
|
|
217
240
|
prependListener(
|
|
218
241
|
event: "resumeSession",
|
|
219
|
-
listener: (
|
|
242
|
+
listener: (
|
|
243
|
+
sessionId: NonSharedBuffer,
|
|
244
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
245
|
+
) => void,
|
|
220
246
|
): this;
|
|
221
247
|
prependListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
222
248
|
prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
@@ -229,30 +255,33 @@ declare module "https" {
|
|
|
229
255
|
prependListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
230
256
|
prependListener(
|
|
231
257
|
event: "connect",
|
|
232
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head:
|
|
258
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
233
259
|
): this;
|
|
234
260
|
prependListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
235
261
|
prependListener(
|
|
236
262
|
event: "upgrade",
|
|
237
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head:
|
|
263
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
238
264
|
): this;
|
|
239
265
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
240
|
-
prependOnceListener(event: "keylog", listener: (line:
|
|
266
|
+
prependOnceListener(event: "keylog", listener: (line: NonSharedBuffer, tlsSocket: tls.TLSSocket) => void): this;
|
|
241
267
|
prependOnceListener(
|
|
242
268
|
event: "newSession",
|
|
243
|
-
listener: (sessionId:
|
|
269
|
+
listener: (sessionId: NonSharedBuffer, sessionData: NonSharedBuffer, callback: () => void) => void,
|
|
244
270
|
): this;
|
|
245
271
|
prependOnceListener(
|
|
246
272
|
event: "OCSPRequest",
|
|
247
273
|
listener: (
|
|
248
|
-
certificate:
|
|
249
|
-
issuer:
|
|
250
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
|
274
|
+
certificate: NonSharedBuffer,
|
|
275
|
+
issuer: NonSharedBuffer,
|
|
276
|
+
callback: (err: Error | null, resp: Buffer | null) => void,
|
|
251
277
|
) => void,
|
|
252
278
|
): this;
|
|
253
279
|
prependOnceListener(
|
|
254
280
|
event: "resumeSession",
|
|
255
|
-
listener: (
|
|
281
|
+
listener: (
|
|
282
|
+
sessionId: NonSharedBuffer,
|
|
283
|
+
callback: (err: Error | null, sessionData: Buffer | null) => void,
|
|
284
|
+
) => void,
|
|
256
285
|
): this;
|
|
257
286
|
prependOnceListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
|
258
287
|
prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
|
@@ -265,12 +294,12 @@ declare module "https" {
|
|
|
265
294
|
prependOnceListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
|
266
295
|
prependOnceListener(
|
|
267
296
|
event: "connect",
|
|
268
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head:
|
|
297
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
269
298
|
): this;
|
|
270
299
|
prependOnceListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
|
271
300
|
prependOnceListener(
|
|
272
301
|
event: "upgrade",
|
|
273
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head:
|
|
302
|
+
listener: (req: InstanceType<Request>, socket: Duplex, head: NonSharedBuffer) => void,
|
|
274
303
|
): this;
|
|
275
304
|
}
|
|
276
305
|
/**
|
|
@@ -39,11 +39,13 @@
|
|
|
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/crypto.d.ts" />
|
|
42
43
|
/// <reference path="web-globals/domexception.d.ts" />
|
|
43
44
|
/// <reference path="web-globals/events.d.ts" />
|
|
44
45
|
/// <reference path="web-globals/fetch.d.ts" />
|
|
45
46
|
/// <reference path="web-globals/navigator.d.ts" />
|
|
46
47
|
/// <reference path="web-globals/storage.d.ts" />
|
|
48
|
+
/// <reference path="web-globals/streams.d.ts" />
|
|
47
49
|
/// <reference path="assert.d.ts" />
|
|
48
50
|
/// <reference path="assert/strict.d.ts" />
|
|
49
51
|
/// <reference path="async_hooks.d.ts" />
|
|
@@ -159,6 +159,30 @@ declare module "inspector" {
|
|
|
159
159
|
* @since v22.7.0
|
|
160
160
|
*/
|
|
161
161
|
function loadingFailed(params: LoadingFailedEventDataType): void;
|
|
162
|
+
/**
|
|
163
|
+
* This feature is only available with the `--experimental-network-inspection` flag enabled.
|
|
164
|
+
*
|
|
165
|
+
* Broadcasts the `Network.webSocketCreated` event to connected frontends. This event indicates that
|
|
166
|
+
* a WebSocket connection has been initiated.
|
|
167
|
+
* @since v24.7.0
|
|
168
|
+
*/
|
|
169
|
+
function webSocketCreated(params: WebSocketCreatedEventDataType): void;
|
|
170
|
+
/**
|
|
171
|
+
* This feature is only available with the `--experimental-network-inspection` flag enabled.
|
|
172
|
+
*
|
|
173
|
+
* Broadcasts the `Network.webSocketHandshakeResponseReceived` event to connected frontends.
|
|
174
|
+
* This event indicates that the WebSocket handshake response has been received.
|
|
175
|
+
* @since v24.7.0
|
|
176
|
+
*/
|
|
177
|
+
function webSocketHandshakeResponseReceived(params: WebSocketHandshakeResponseReceivedEventDataType): void;
|
|
178
|
+
/**
|
|
179
|
+
* This feature is only available with the `--experimental-network-inspection` flag enabled.
|
|
180
|
+
*
|
|
181
|
+
* Broadcasts the `Network.webSocketClosed` event to connected frontends.
|
|
182
|
+
* This event indicates that a WebSocket connection has been closed.
|
|
183
|
+
* @since v24.7.0
|
|
184
|
+
*/
|
|
185
|
+
function webSocketClosed(params: WebSocketClosedEventDataType): void;
|
|
162
186
|
}
|
|
163
187
|
namespace NetworkResources {
|
|
164
188
|
/**
|
|
@@ -1774,6 +1774,23 @@ declare module "inspector" {
|
|
|
1774
1774
|
success: boolean;
|
|
1775
1775
|
stream?: IO.StreamHandle | undefined;
|
|
1776
1776
|
}
|
|
1777
|
+
/**
|
|
1778
|
+
* WebSocket response data.
|
|
1779
|
+
*/
|
|
1780
|
+
interface WebSocketResponse {
|
|
1781
|
+
/**
|
|
1782
|
+
* HTTP response status code.
|
|
1783
|
+
*/
|
|
1784
|
+
status: number;
|
|
1785
|
+
/**
|
|
1786
|
+
* HTTP response status text.
|
|
1787
|
+
*/
|
|
1788
|
+
statusText: string;
|
|
1789
|
+
/**
|
|
1790
|
+
* HTTP response headers.
|
|
1791
|
+
*/
|
|
1792
|
+
headers: Headers;
|
|
1793
|
+
}
|
|
1777
1794
|
interface GetRequestPostDataParameterType {
|
|
1778
1795
|
/**
|
|
1779
1796
|
* Identifier of the network request to get content for.
|
|
@@ -1914,6 +1931,44 @@ declare module "inspector" {
|
|
|
1914
1931
|
*/
|
|
1915
1932
|
data?: string | undefined;
|
|
1916
1933
|
}
|
|
1934
|
+
interface WebSocketCreatedEventDataType {
|
|
1935
|
+
/**
|
|
1936
|
+
* Request identifier.
|
|
1937
|
+
*/
|
|
1938
|
+
requestId: RequestId;
|
|
1939
|
+
/**
|
|
1940
|
+
* WebSocket request URL.
|
|
1941
|
+
*/
|
|
1942
|
+
url: string;
|
|
1943
|
+
/**
|
|
1944
|
+
* Request initiator.
|
|
1945
|
+
*/
|
|
1946
|
+
initiator: Initiator;
|
|
1947
|
+
}
|
|
1948
|
+
interface WebSocketClosedEventDataType {
|
|
1949
|
+
/**
|
|
1950
|
+
* Request identifier.
|
|
1951
|
+
*/
|
|
1952
|
+
requestId: RequestId;
|
|
1953
|
+
/**
|
|
1954
|
+
* Timestamp.
|
|
1955
|
+
*/
|
|
1956
|
+
timestamp: MonotonicTime;
|
|
1957
|
+
}
|
|
1958
|
+
interface WebSocketHandshakeResponseReceivedEventDataType {
|
|
1959
|
+
/**
|
|
1960
|
+
* Request identifier.
|
|
1961
|
+
*/
|
|
1962
|
+
requestId: RequestId;
|
|
1963
|
+
/**
|
|
1964
|
+
* Timestamp.
|
|
1965
|
+
*/
|
|
1966
|
+
timestamp: MonotonicTime;
|
|
1967
|
+
/**
|
|
1968
|
+
* WebSocket response data.
|
|
1969
|
+
*/
|
|
1970
|
+
response: WebSocketResponse;
|
|
1971
|
+
}
|
|
1917
1972
|
}
|
|
1918
1973
|
namespace NodeRuntime {
|
|
1919
1974
|
interface NotifyWhenWaitingForDisconnectParameterType {
|
|
@@ -2483,6 +2538,18 @@ declare module "inspector" {
|
|
|
2483
2538
|
* Fired when data chunk was received over the network.
|
|
2484
2539
|
*/
|
|
2485
2540
|
addListener(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
2541
|
+
/**
|
|
2542
|
+
* Fired upon WebSocket creation.
|
|
2543
|
+
*/
|
|
2544
|
+
addListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
|
|
2545
|
+
/**
|
|
2546
|
+
* Fired when WebSocket is closed.
|
|
2547
|
+
*/
|
|
2548
|
+
addListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
|
|
2549
|
+
/**
|
|
2550
|
+
* Fired when WebSocket handshake response becomes available.
|
|
2551
|
+
*/
|
|
2552
|
+
addListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
|
|
2486
2553
|
/**
|
|
2487
2554
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2488
2555
|
* enabled.
|
|
@@ -2529,6 +2596,9 @@ declare module "inspector" {
|
|
|
2529
2596
|
emit(event: "Network.loadingFailed", message: InspectorNotification<Network.LoadingFailedEventDataType>): boolean;
|
|
2530
2597
|
emit(event: "Network.loadingFinished", message: InspectorNotification<Network.LoadingFinishedEventDataType>): boolean;
|
|
2531
2598
|
emit(event: "Network.dataReceived", message: InspectorNotification<Network.DataReceivedEventDataType>): boolean;
|
|
2599
|
+
emit(event: "Network.webSocketCreated", message: InspectorNotification<Network.WebSocketCreatedEventDataType>): boolean;
|
|
2600
|
+
emit(event: "Network.webSocketClosed", message: InspectorNotification<Network.WebSocketClosedEventDataType>): boolean;
|
|
2601
|
+
emit(event: "Network.webSocketHandshakeResponseReceived", message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>): boolean;
|
|
2532
2602
|
emit(event: "NodeRuntime.waitingForDisconnect"): boolean;
|
|
2533
2603
|
emit(event: "NodeRuntime.waitingForDebugger"): boolean;
|
|
2534
2604
|
emit(event: "Target.targetCreated", message: InspectorNotification<Target.TargetCreatedEventDataType>): boolean;
|
|
@@ -2642,6 +2712,18 @@ declare module "inspector" {
|
|
|
2642
2712
|
* Fired when data chunk was received over the network.
|
|
2643
2713
|
*/
|
|
2644
2714
|
on(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
2715
|
+
/**
|
|
2716
|
+
* Fired upon WebSocket creation.
|
|
2717
|
+
*/
|
|
2718
|
+
on(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
|
|
2719
|
+
/**
|
|
2720
|
+
* Fired when WebSocket is closed.
|
|
2721
|
+
*/
|
|
2722
|
+
on(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
|
|
2723
|
+
/**
|
|
2724
|
+
* Fired when WebSocket handshake response becomes available.
|
|
2725
|
+
*/
|
|
2726
|
+
on(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
|
|
2645
2727
|
/**
|
|
2646
2728
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2647
2729
|
* enabled.
|
|
@@ -2765,6 +2847,18 @@ declare module "inspector" {
|
|
|
2765
2847
|
* Fired when data chunk was received over the network.
|
|
2766
2848
|
*/
|
|
2767
2849
|
once(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
2850
|
+
/**
|
|
2851
|
+
* Fired upon WebSocket creation.
|
|
2852
|
+
*/
|
|
2853
|
+
once(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
|
|
2854
|
+
/**
|
|
2855
|
+
* Fired when WebSocket is closed.
|
|
2856
|
+
*/
|
|
2857
|
+
once(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
|
|
2858
|
+
/**
|
|
2859
|
+
* Fired when WebSocket handshake response becomes available.
|
|
2860
|
+
*/
|
|
2861
|
+
once(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
|
|
2768
2862
|
/**
|
|
2769
2863
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2770
2864
|
* enabled.
|
|
@@ -2888,6 +2982,18 @@ declare module "inspector" {
|
|
|
2888
2982
|
* Fired when data chunk was received over the network.
|
|
2889
2983
|
*/
|
|
2890
2984
|
prependListener(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
2985
|
+
/**
|
|
2986
|
+
* Fired upon WebSocket creation.
|
|
2987
|
+
*/
|
|
2988
|
+
prependListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
|
|
2989
|
+
/**
|
|
2990
|
+
* Fired when WebSocket is closed.
|
|
2991
|
+
*/
|
|
2992
|
+
prependListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
|
|
2993
|
+
/**
|
|
2994
|
+
* Fired when WebSocket handshake response becomes available.
|
|
2995
|
+
*/
|
|
2996
|
+
prependListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
|
|
2891
2997
|
/**
|
|
2892
2998
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
2893
2999
|
* enabled.
|
|
@@ -3011,6 +3117,18 @@ declare module "inspector" {
|
|
|
3011
3117
|
* Fired when data chunk was received over the network.
|
|
3012
3118
|
*/
|
|
3013
3119
|
prependOnceListener(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
3120
|
+
/**
|
|
3121
|
+
* Fired upon WebSocket creation.
|
|
3122
|
+
*/
|
|
3123
|
+
prependOnceListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
|
|
3124
|
+
/**
|
|
3125
|
+
* Fired when WebSocket is closed.
|
|
3126
|
+
*/
|
|
3127
|
+
prependOnceListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
|
|
3128
|
+
/**
|
|
3129
|
+
* Fired when WebSocket handshake response becomes available.
|
|
3130
|
+
*/
|
|
3131
|
+
prependOnceListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
|
|
3014
3132
|
/**
|
|
3015
3133
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
3016
3134
|
* enabled.
|
|
@@ -3506,6 +3624,18 @@ declare module "inspector/promises" {
|
|
|
3506
3624
|
* Fired when data chunk was received over the network.
|
|
3507
3625
|
*/
|
|
3508
3626
|
addListener(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
3627
|
+
/**
|
|
3628
|
+
* Fired upon WebSocket creation.
|
|
3629
|
+
*/
|
|
3630
|
+
addListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
|
|
3631
|
+
/**
|
|
3632
|
+
* Fired when WebSocket is closed.
|
|
3633
|
+
*/
|
|
3634
|
+
addListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
|
|
3635
|
+
/**
|
|
3636
|
+
* Fired when WebSocket handshake response becomes available.
|
|
3637
|
+
*/
|
|
3638
|
+
addListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
|
|
3509
3639
|
/**
|
|
3510
3640
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
3511
3641
|
* enabled.
|
|
@@ -3552,6 +3682,9 @@ declare module "inspector/promises" {
|
|
|
3552
3682
|
emit(event: "Network.loadingFailed", message: InspectorNotification<Network.LoadingFailedEventDataType>): boolean;
|
|
3553
3683
|
emit(event: "Network.loadingFinished", message: InspectorNotification<Network.LoadingFinishedEventDataType>): boolean;
|
|
3554
3684
|
emit(event: "Network.dataReceived", message: InspectorNotification<Network.DataReceivedEventDataType>): boolean;
|
|
3685
|
+
emit(event: "Network.webSocketCreated", message: InspectorNotification<Network.WebSocketCreatedEventDataType>): boolean;
|
|
3686
|
+
emit(event: "Network.webSocketClosed", message: InspectorNotification<Network.WebSocketClosedEventDataType>): boolean;
|
|
3687
|
+
emit(event: "Network.webSocketHandshakeResponseReceived", message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>): boolean;
|
|
3555
3688
|
emit(event: "NodeRuntime.waitingForDisconnect"): boolean;
|
|
3556
3689
|
emit(event: "NodeRuntime.waitingForDebugger"): boolean;
|
|
3557
3690
|
emit(event: "Target.targetCreated", message: InspectorNotification<Target.TargetCreatedEventDataType>): boolean;
|
|
@@ -3665,6 +3798,18 @@ declare module "inspector/promises" {
|
|
|
3665
3798
|
* Fired when data chunk was received over the network.
|
|
3666
3799
|
*/
|
|
3667
3800
|
on(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
3801
|
+
/**
|
|
3802
|
+
* Fired upon WebSocket creation.
|
|
3803
|
+
*/
|
|
3804
|
+
on(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
|
|
3805
|
+
/**
|
|
3806
|
+
* Fired when WebSocket is closed.
|
|
3807
|
+
*/
|
|
3808
|
+
on(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
|
|
3809
|
+
/**
|
|
3810
|
+
* Fired when WebSocket handshake response becomes available.
|
|
3811
|
+
*/
|
|
3812
|
+
on(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
|
|
3668
3813
|
/**
|
|
3669
3814
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
3670
3815
|
* enabled.
|
|
@@ -3788,6 +3933,18 @@ declare module "inspector/promises" {
|
|
|
3788
3933
|
* Fired when data chunk was received over the network.
|
|
3789
3934
|
*/
|
|
3790
3935
|
once(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
3936
|
+
/**
|
|
3937
|
+
* Fired upon WebSocket creation.
|
|
3938
|
+
*/
|
|
3939
|
+
once(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
|
|
3940
|
+
/**
|
|
3941
|
+
* Fired when WebSocket is closed.
|
|
3942
|
+
*/
|
|
3943
|
+
once(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
|
|
3944
|
+
/**
|
|
3945
|
+
* Fired when WebSocket handshake response becomes available.
|
|
3946
|
+
*/
|
|
3947
|
+
once(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
|
|
3791
3948
|
/**
|
|
3792
3949
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
3793
3950
|
* enabled.
|
|
@@ -3911,6 +4068,18 @@ declare module "inspector/promises" {
|
|
|
3911
4068
|
* Fired when data chunk was received over the network.
|
|
3912
4069
|
*/
|
|
3913
4070
|
prependListener(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
4071
|
+
/**
|
|
4072
|
+
* Fired upon WebSocket creation.
|
|
4073
|
+
*/
|
|
4074
|
+
prependListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
|
|
4075
|
+
/**
|
|
4076
|
+
* Fired when WebSocket is closed.
|
|
4077
|
+
*/
|
|
4078
|
+
prependListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
|
|
4079
|
+
/**
|
|
4080
|
+
* Fired when WebSocket handshake response becomes available.
|
|
4081
|
+
*/
|
|
4082
|
+
prependListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
|
|
3914
4083
|
/**
|
|
3915
4084
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
3916
4085
|
* enabled.
|
|
@@ -4034,6 +4203,18 @@ declare module "inspector/promises" {
|
|
|
4034
4203
|
* Fired when data chunk was received over the network.
|
|
4035
4204
|
*/
|
|
4036
4205
|
prependOnceListener(event: "Network.dataReceived", listener: (message: InspectorNotification<Network.DataReceivedEventDataType>) => void): this;
|
|
4206
|
+
/**
|
|
4207
|
+
* Fired upon WebSocket creation.
|
|
4208
|
+
*/
|
|
4209
|
+
prependOnceListener(event: "Network.webSocketCreated", listener: (message: InspectorNotification<Network.WebSocketCreatedEventDataType>) => void): this;
|
|
4210
|
+
/**
|
|
4211
|
+
* Fired when WebSocket is closed.
|
|
4212
|
+
*/
|
|
4213
|
+
prependOnceListener(event: "Network.webSocketClosed", listener: (message: InspectorNotification<Network.WebSocketClosedEventDataType>) => void): this;
|
|
4214
|
+
/**
|
|
4215
|
+
* Fired when WebSocket handshake response becomes available.
|
|
4216
|
+
*/
|
|
4217
|
+
prependOnceListener(event: "Network.webSocketHandshakeResponseReceived", listener: (message: InspectorNotification<Network.WebSocketHandshakeResponseReceivedEventDataType>) => void): this;
|
|
4037
4218
|
/**
|
|
4038
4219
|
* This event is fired instead of `Runtime.executionContextDestroyed` when
|
|
4039
4220
|
* enabled.
|