cdk-ecr-deployment 3.0.111 → 3.0.113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/.jsii +2 -2
  2. package/lib/index.js +5 -5
  3. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  4. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +1 -1
  5. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +1 -1
  6. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +385 -0
  7. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +14 -381
  8. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +34 -29
  9. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +2 -1
  10. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +2 -2
  11. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +3 -3
  12. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  13. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +5 -5
  14. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +5 -5
  15. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +2 -2
  16. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +2 -2
  17. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +2 -2
  18. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +17 -15
  19. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  20. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +7 -7
  21. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +238 -101
  22. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +17 -23
  23. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +5 -1
  24. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +270 -0
  25. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +3 -3
  26. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +11 -15
  27. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +1 -1
  28. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +9 -2
  29. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +1 -1
  30. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +19 -19
  31. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +1 -1
  32. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +1 -1
  33. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +1 -1
  34. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +9 -9
  35. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +4 -4
  36. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +1 -1
  37. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +17 -17
  38. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +34 -15
  39. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +3 -3
  40. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +86 -3
  41. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +5 -5
  42. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +1 -1
  43. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +5 -5
  44. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +4 -4
  45. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
  46. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  47. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/index.d.ts +94 -0
  48. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +1 -1
  49. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +7 -7
  50. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +44 -44
  51. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +12 -12
  52. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +13 -13
  53. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +1 -1
  54. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +22 -22
  55. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +8 -8
  56. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  57. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +1 -1
  58. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +1 -1
  59. package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +385 -0
  60. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +14 -381
  61. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +34 -29
  62. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +2 -1
  63. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +2 -2
  64. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +3 -3
  65. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  66. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +5 -5
  67. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +5 -5
  68. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +2 -2
  69. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +2 -2
  70. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +2 -2
  71. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +17 -15
  72. package/node_modules/@types/keyv/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  73. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +7 -7
  74. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +238 -101
  75. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +17 -23
  76. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +5 -1
  77. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +270 -0
  78. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +3 -3
  79. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +11 -15
  80. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +1 -1
  81. package/node_modules/@types/keyv/node_modules/@types/node/package.json +9 -2
  82. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +1 -1
  83. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +19 -19
  84. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +1 -1
  85. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +1 -1
  86. package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +1 -1
  87. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +9 -9
  88. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +4 -4
  89. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +1 -1
  90. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +17 -17
  91. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +34 -15
  92. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +3 -3
  93. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +86 -3
  94. package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +5 -5
  95. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +1 -1
  96. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +5 -5
  97. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +4 -4
  98. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
  99. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  100. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/index.d.ts +94 -0
  101. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +1 -1
  102. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +7 -7
  103. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +44 -44
  104. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +12 -12
  105. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +13 -13
  106. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +1 -1
  107. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +22 -22
  108. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +8 -8
  109. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  110. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +1 -1
  111. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +1 -1
  112. package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +385 -0
  113. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +14 -381
  114. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +34 -29
  115. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +2 -1
  116. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +2 -2
  117. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +3 -3
  118. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  119. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +5 -5
  120. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +5 -5
  121. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +2 -2
  122. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +2 -2
  123. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +2 -2
  124. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +17 -15
  125. package/node_modules/@types/responselike/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  126. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +7 -7
  127. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +238 -101
  128. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +17 -23
  129. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +5 -1
  130. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +270 -0
  131. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +3 -3
  132. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +11 -15
  133. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +1 -1
  134. package/node_modules/@types/responselike/node_modules/@types/node/package.json +9 -2
  135. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
  136. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +19 -19
  137. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
  138. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +1 -1
  139. package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +1 -1
  140. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +9 -9
  141. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +4 -4
  142. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +1 -1
  143. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +17 -17
  144. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +34 -15
  145. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +3 -3
  146. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +86 -3
  147. package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +5 -5
  148. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +1 -1
  149. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +5 -5
  150. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +4 -4
  151. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
  152. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  153. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/index.d.ts +94 -0
  154. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +1 -1
  155. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +7 -7
  156. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +44 -44
  157. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +12 -12
  158. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +13 -13
  159. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +1 -1
  160. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +22 -22
  161. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +8 -8
  162. package/package.json +1 -1
@@ -10,7 +10,7 @@ declare module "https" {
10
10
  import { URL } from "node:url";
11
11
  type ServerOptions<
12
12
  Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
13
- Response extends typeof http.ServerResponse = typeof http.ServerResponse,
13
+ Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
14
14
  > = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions<Request, Response>;
15
15
  type RequestOptions =
16
16
  & http.RequestOptions
@@ -34,7 +34,7 @@ declare module "https" {
34
34
  }
35
35
  interface Server<
36
36
  Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
37
- Response extends typeof http.ServerResponse = typeof http.ServerResponse,
37
+ Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
38
38
  > extends http.Server<Request, Response> {}
39
39
  /**
40
40
  * See `http.Server` for more information.
@@ -42,7 +42,7 @@ declare module "https" {
42
42
  */
43
43
  class Server<
44
44
  Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
45
- Response extends typeof http.ServerResponse = typeof http.ServerResponse,
45
+ Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
46
46
  > extends tls.Server {
47
47
  constructor(requestListener?: http.RequestListener<Request, Response>);
48
48
  constructor(
@@ -119,25 +119,19 @@ declare module "https" {
119
119
  emit(
120
120
  event: "checkContinue",
121
121
  req: InstanceType<Request>,
122
- res: InstanceType<Response> & {
123
- req: InstanceType<Request>;
124
- },
122
+ res: InstanceType<Response>,
125
123
  ): boolean;
126
124
  emit(
127
125
  event: "checkExpectation",
128
126
  req: InstanceType<Request>,
129
- res: InstanceType<Response> & {
130
- req: InstanceType<Request>;
131
- },
127
+ res: InstanceType<Response>,
132
128
  ): boolean;
133
129
  emit(event: "clientError", err: Error, socket: Duplex): boolean;
134
130
  emit(event: "connect", req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean;
135
131
  emit(
136
132
  event: "request",
137
133
  req: InstanceType<Request>,
138
- res: InstanceType<Response> & {
139
- req: InstanceType<Request>;
140
- },
134
+ res: InstanceType<Response>,
141
135
  ): boolean;
142
136
  emit(event: "upgrade", req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean;
143
137
  on(event: string, listener: (...args: any[]) => void): this;
@@ -276,8 +270,8 @@ declare module "https" {
276
270
  /**
277
271
  * ```js
278
272
  * // curl -k https://localhost:8000/
279
- * const https = require('node:https');
280
- * const fs = require('node:fs');
273
+ * import https from 'node:https';
274
+ * import fs from 'node:fs';
281
275
  *
282
276
  * const options = {
283
277
  * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
@@ -293,8 +287,8 @@ declare module "https" {
293
287
  * Or
294
288
  *
295
289
  * ```js
296
- * const https = require('node:https');
297
- * const fs = require('node:fs');
290
+ * import https from 'node:https';
291
+ * import fs from 'node:fs';
298
292
  *
299
293
  * const options = {
300
294
  * pfx: fs.readFileSync('test/fixtures/test_cert.pfx'),
@@ -312,11 +306,11 @@ declare module "https" {
312
306
  */
313
307
  function createServer<
314
308
  Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
315
- Response extends typeof http.ServerResponse = typeof http.ServerResponse,
309
+ Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
316
310
  >(requestListener?: http.RequestListener<Request, Response>): Server<Request, Response>;
317
311
  function createServer<
318
312
  Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
319
- Response extends typeof http.ServerResponse = typeof http.ServerResponse,
313
+ Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
320
314
  >(
321
315
  options: ServerOptions<Request, Response>,
322
316
  requestListener?: http.RequestListener<Request, Response>,
@@ -334,7 +328,7 @@ declare module "https" {
334
328
  * upload a file with a POST request, then write to the `ClientRequest` object.
335
329
  *
336
330
  * ```js
337
- * const https = require('node:https');
331
+ * import https from 'node:https';
338
332
  *
339
333
  * const options = {
340
334
  * hostname: 'encrypted.google.com',
@@ -407,9 +401,9 @@ declare module "https" {
407
401
  * Example pinning on certificate fingerprint, or the public key (similar to`pin-sha256`):
408
402
  *
409
403
  * ```js
410
- * const tls = require('node:tls');
411
- * const https = require('node:https');
412
- * const crypto = require('node:crypto');
404
+ * import tls from 'node:tls';
405
+ * import https from 'node:https';
406
+ * import crypto from 'node:crypto';
413
407
  *
414
408
  * function sha256(s) {
415
409
  * return crypto.createHash('sha256').update(s).digest('base64');
@@ -517,7 +511,7 @@ declare module "https" {
517
511
  * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
518
512
  *
519
513
  * ```js
520
- * const https = require('node:https');
514
+ * import https from 'node:https';
521
515
  *
522
516
  * https.get('https://encrypted.google.com/', (res) => {
523
517
  * console.log('statusCode:', res.statusCode);
@@ -22,7 +22,7 @@
22
22
  * IN THE SOFTWARE.
23
23
  */
24
24
 
25
- // NOTE: These definitions support NodeJS and TypeScript 4.9+.
25
+ // NOTE: These definitions support NodeJS and TypeScript 5.7+.
26
26
 
27
27
  // Reference required types from the default lib:
28
28
  /// <reference lib="es2020" />
@@ -30,6 +30,10 @@
30
30
  /// <reference lib="esnext.intl" />
31
31
  /// <reference lib="esnext.bigint" />
32
32
 
33
+ // Definitions specific to TypeScript 4.9 through 5.7+
34
+ /// <reference path="globals.typedarray.d.ts" />
35
+ /// <reference path="buffer.buffer.d.ts" />
36
+
33
37
  // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
34
38
  /// <reference path="assert.d.ts" />
35
39
  /// <reference path="assert/strict.d.ts" />
@@ -1703,6 +1703,110 @@ declare module 'inspector' {
1703
1703
  message: string;
1704
1704
  }
1705
1705
  }
1706
+ namespace Network {
1707
+ /**
1708
+ * Resource type as it was perceived by the rendering engine.
1709
+ */
1710
+ type ResourceType = string;
1711
+ /**
1712
+ * Unique request identifier.
1713
+ */
1714
+ type RequestId = string;
1715
+ /**
1716
+ * UTC time in seconds, counted from January 1, 1970.
1717
+ */
1718
+ type TimeSinceEpoch = number;
1719
+ /**
1720
+ * Monotonically increasing time in seconds since an arbitrary point in the past.
1721
+ */
1722
+ type MonotonicTime = number;
1723
+ /**
1724
+ * HTTP request data.
1725
+ */
1726
+ interface Request {
1727
+ url: string;
1728
+ method: string;
1729
+ headers: Headers;
1730
+ }
1731
+ /**
1732
+ * HTTP response data.
1733
+ */
1734
+ interface Response {
1735
+ url: string;
1736
+ status: number;
1737
+ statusText: string;
1738
+ headers: Headers;
1739
+ }
1740
+ /**
1741
+ * Request / response headers as keys / values of JSON object.
1742
+ */
1743
+ interface Headers {
1744
+ }
1745
+ interface RequestWillBeSentEventDataType {
1746
+ /**
1747
+ * Request identifier.
1748
+ */
1749
+ requestId: RequestId;
1750
+ /**
1751
+ * Request data.
1752
+ */
1753
+ request: Request;
1754
+ /**
1755
+ * Timestamp.
1756
+ */
1757
+ timestamp: MonotonicTime;
1758
+ /**
1759
+ * Timestamp.
1760
+ */
1761
+ wallTime: TimeSinceEpoch;
1762
+ }
1763
+ interface ResponseReceivedEventDataType {
1764
+ /**
1765
+ * Request identifier.
1766
+ */
1767
+ requestId: RequestId;
1768
+ /**
1769
+ * Timestamp.
1770
+ */
1771
+ timestamp: MonotonicTime;
1772
+ /**
1773
+ * Resource type.
1774
+ */
1775
+ type: ResourceType;
1776
+ /**
1777
+ * Response data.
1778
+ */
1779
+ response: Response;
1780
+ }
1781
+ interface LoadingFailedEventDataType {
1782
+ /**
1783
+ * Request identifier.
1784
+ */
1785
+ requestId: RequestId;
1786
+ /**
1787
+ * Timestamp.
1788
+ */
1789
+ timestamp: MonotonicTime;
1790
+ /**
1791
+ * Resource type.
1792
+ */
1793
+ type: ResourceType;
1794
+ /**
1795
+ * Error message.
1796
+ */
1797
+ errorText: string;
1798
+ }
1799
+ interface LoadingFinishedEventDataType {
1800
+ /**
1801
+ * Request identifier.
1802
+ */
1803
+ requestId: RequestId;
1804
+ /**
1805
+ * Timestamp.
1806
+ */
1807
+ timestamp: MonotonicTime;
1808
+ }
1809
+ }
1706
1810
  namespace NodeRuntime {
1707
1811
  interface NotifyWhenWaitingForDisconnectParameterType {
1708
1812
  enabled: boolean;
@@ -2076,6 +2180,14 @@ declare module 'inspector' {
2076
2180
  */
2077
2181
  post(method: 'NodeWorker.detach', params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void;
2078
2182
  post(method: 'NodeWorker.detach', callback?: (err: Error | null) => void): void;
2183
+ /**
2184
+ * Disables network tracking, prevents network events from being sent to the client.
2185
+ */
2186
+ post(method: 'Network.disable', callback?: (err: Error | null) => void): void;
2187
+ /**
2188
+ * Enables network tracking, network events will now be delivered to the client.
2189
+ */
2190
+ post(method: 'Network.enable', callback?: (err: Error | null) => void): void;
2079
2191
  /**
2080
2192
  * Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`.
2081
2193
  */
@@ -2185,6 +2297,16 @@ declare module 'inspector' {
2185
2297
  * (session ID is provided in attachedToWorker notification).
2186
2298
  */
2187
2299
  addListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2300
+ /**
2301
+ * Fired when page is about to send HTTP request.
2302
+ */
2303
+ addListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
2304
+ /**
2305
+ * Fired when HTTP response is available.
2306
+ */
2307
+ addListener(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
2308
+ addListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
2309
+ addListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
2188
2310
  /**
2189
2311
  * This event is fired instead of `Runtime.executionContextDestroyed` when
2190
2312
  * enabled.
@@ -2224,6 +2346,10 @@ declare module 'inspector' {
2224
2346
  emit(event: 'NodeWorker.attachedToWorker', message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
2225
2347
  emit(event: 'NodeWorker.detachedFromWorker', message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
2226
2348
  emit(event: 'NodeWorker.receivedMessageFromWorker', message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
2349
+ emit(event: 'Network.requestWillBeSent', message: InspectorNotification<Network.RequestWillBeSentEventDataType>): boolean;
2350
+ emit(event: 'Network.responseReceived', message: InspectorNotification<Network.ResponseReceivedEventDataType>): boolean;
2351
+ emit(event: 'Network.loadingFailed', message: InspectorNotification<Network.LoadingFailedEventDataType>): boolean;
2352
+ emit(event: 'Network.loadingFinished', message: InspectorNotification<Network.LoadingFinishedEventDataType>): boolean;
2227
2353
  emit(event: 'NodeRuntime.waitingForDisconnect'): boolean;
2228
2354
  emit(event: 'NodeRuntime.waitingForDebugger'): boolean;
2229
2355
  on(event: string, listener: (...args: any[]) => void): this;
@@ -2321,6 +2447,16 @@ declare module 'inspector' {
2321
2447
  * (session ID is provided in attachedToWorker notification).
2322
2448
  */
2323
2449
  on(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2450
+ /**
2451
+ * Fired when page is about to send HTTP request.
2452
+ */
2453
+ on(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
2454
+ /**
2455
+ * Fired when HTTP response is available.
2456
+ */
2457
+ on(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
2458
+ on(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
2459
+ on(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
2324
2460
  /**
2325
2461
  * This event is fired instead of `Runtime.executionContextDestroyed` when
2326
2462
  * enabled.
@@ -2428,6 +2564,16 @@ declare module 'inspector' {
2428
2564
  * (session ID is provided in attachedToWorker notification).
2429
2565
  */
2430
2566
  once(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2567
+ /**
2568
+ * Fired when page is about to send HTTP request.
2569
+ */
2570
+ once(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
2571
+ /**
2572
+ * Fired when HTTP response is available.
2573
+ */
2574
+ once(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
2575
+ once(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
2576
+ once(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
2431
2577
  /**
2432
2578
  * This event is fired instead of `Runtime.executionContextDestroyed` when
2433
2579
  * enabled.
@@ -2535,6 +2681,16 @@ declare module 'inspector' {
2535
2681
  * (session ID is provided in attachedToWorker notification).
2536
2682
  */
2537
2683
  prependListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2684
+ /**
2685
+ * Fired when page is about to send HTTP request.
2686
+ */
2687
+ prependListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
2688
+ /**
2689
+ * Fired when HTTP response is available.
2690
+ */
2691
+ prependListener(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
2692
+ prependListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
2693
+ prependListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
2538
2694
  /**
2539
2695
  * This event is fired instead of `Runtime.executionContextDestroyed` when
2540
2696
  * enabled.
@@ -2642,6 +2798,16 @@ declare module 'inspector' {
2642
2798
  * (session ID is provided in attachedToWorker notification).
2643
2799
  */
2644
2800
  prependOnceListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2801
+ /**
2802
+ * Fired when page is about to send HTTP request.
2803
+ */
2804
+ prependOnceListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
2805
+ /**
2806
+ * Fired when HTTP response is available.
2807
+ */
2808
+ prependOnceListener(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
2809
+ prependOnceListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
2810
+ prependOnceListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
2645
2811
  /**
2646
2812
  * This event is fired instead of `Runtime.executionContextDestroyed` when
2647
2813
  * enabled.
@@ -2737,6 +2903,46 @@ declare module 'inspector' {
2737
2903
  * @since v11.0.0
2738
2904
  */
2739
2905
  const console: InspectorConsole;
2906
+
2907
+ // DevTools protocol event broadcast methods
2908
+ namespace Network {
2909
+ /**
2910
+ * This feature is only available with the `--experimental-network-inspection` flag enabled.
2911
+ *
2912
+ * Broadcasts the `Network.requestWillBeSent` event to connected frontends. This event indicates that
2913
+ * the application is about to send an HTTP request.
2914
+ * @since v22.6.0
2915
+ * @experimental
2916
+ */
2917
+ function requestWillBeSent(params: RequestWillBeSentEventDataType): void;
2918
+ /**
2919
+ * This feature is only available with the `--experimental-network-inspection` flag enabled.
2920
+ *
2921
+ * Broadcasts the `Network.responseReceived` event to connected frontends. This event indicates that
2922
+ * HTTP response is available.
2923
+ * @since v22.6.0
2924
+ * @experimental
2925
+ */
2926
+ function responseReceived(params: ResponseReceivedEventDataType): void;
2927
+ /**
2928
+ * This feature is only available with the `--experimental-network-inspection` flag enabled.
2929
+ *
2930
+ * Broadcasts the `Network.loadingFinished` event to connected frontends. This event indicates that
2931
+ * HTTP request has finished loading.
2932
+ * @since v22.6.0
2933
+ * @experimental
2934
+ */
2935
+ function loadingFinished(params: LoadingFinishedEventDataType): void;
2936
+ /**
2937
+ * This feature is only available with the `--experimental-network-inspection` flag enabled.
2938
+ *
2939
+ * Broadcasts the `Network.loadingFailed` event to connected frontends. This event indicates that
2940
+ * HTTP request has failed to load.
2941
+ * @since v22.7.0
2942
+ * @experimental
2943
+ */
2944
+ function loadingFailed(params: LoadingFailedEventDataType): void;
2945
+ }
2740
2946
  }
2741
2947
 
2742
2948
  /**
@@ -2770,6 +2976,7 @@ declare module 'inspector/promises' {
2770
2976
  HeapProfiler,
2771
2977
  NodeTracing,
2772
2978
  NodeWorker,
2979
+ Network,
2773
2980
  NodeRuntime,
2774
2981
  } from 'inspector';
2775
2982
 
@@ -3087,6 +3294,14 @@ declare module 'inspector/promises' {
3087
3294
  * Detached from the worker with given sessionId.
3088
3295
  */
3089
3296
  post(method: 'NodeWorker.detach', params?: NodeWorker.DetachParameterType): Promise<void>;
3297
+ /**
3298
+ * Disables network tracking, prevents network events from being sent to the client.
3299
+ */
3300
+ post(method: 'Network.disable'): Promise<void>;
3301
+ /**
3302
+ * Enables network tracking, network events will now be delivered to the client.
3303
+ */
3304
+ post(method: 'Network.enable'): Promise<void>;
3090
3305
  /**
3091
3306
  * Enable the NodeRuntime events except by `NodeRuntime.waitingForDisconnect`.
3092
3307
  */
@@ -3195,6 +3410,16 @@ declare module 'inspector/promises' {
3195
3410
  * (session ID is provided in attachedToWorker notification).
3196
3411
  */
3197
3412
  addListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3413
+ /**
3414
+ * Fired when page is about to send HTTP request.
3415
+ */
3416
+ addListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
3417
+ /**
3418
+ * Fired when HTTP response is available.
3419
+ */
3420
+ addListener(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
3421
+ addListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
3422
+ addListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
3198
3423
  /**
3199
3424
  * This event is fired instead of `Runtime.executionContextDestroyed` when
3200
3425
  * enabled.
@@ -3234,6 +3459,10 @@ declare module 'inspector/promises' {
3234
3459
  emit(event: 'NodeWorker.attachedToWorker', message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
3235
3460
  emit(event: 'NodeWorker.detachedFromWorker', message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
3236
3461
  emit(event: 'NodeWorker.receivedMessageFromWorker', message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
3462
+ emit(event: 'Network.requestWillBeSent', message: InspectorNotification<Network.RequestWillBeSentEventDataType>): boolean;
3463
+ emit(event: 'Network.responseReceived', message: InspectorNotification<Network.ResponseReceivedEventDataType>): boolean;
3464
+ emit(event: 'Network.loadingFailed', message: InspectorNotification<Network.LoadingFailedEventDataType>): boolean;
3465
+ emit(event: 'Network.loadingFinished', message: InspectorNotification<Network.LoadingFinishedEventDataType>): boolean;
3237
3466
  emit(event: 'NodeRuntime.waitingForDisconnect'): boolean;
3238
3467
  emit(event: 'NodeRuntime.waitingForDebugger'): boolean;
3239
3468
  on(event: string, listener: (...args: any[]) => void): this;
@@ -3331,6 +3560,16 @@ declare module 'inspector/promises' {
3331
3560
  * (session ID is provided in attachedToWorker notification).
3332
3561
  */
3333
3562
  on(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3563
+ /**
3564
+ * Fired when page is about to send HTTP request.
3565
+ */
3566
+ on(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
3567
+ /**
3568
+ * Fired when HTTP response is available.
3569
+ */
3570
+ on(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
3571
+ on(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
3572
+ on(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
3334
3573
  /**
3335
3574
  * This event is fired instead of `Runtime.executionContextDestroyed` when
3336
3575
  * enabled.
@@ -3438,6 +3677,16 @@ declare module 'inspector/promises' {
3438
3677
  * (session ID is provided in attachedToWorker notification).
3439
3678
  */
3440
3679
  once(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3680
+ /**
3681
+ * Fired when page is about to send HTTP request.
3682
+ */
3683
+ once(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
3684
+ /**
3685
+ * Fired when HTTP response is available.
3686
+ */
3687
+ once(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
3688
+ once(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
3689
+ once(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
3441
3690
  /**
3442
3691
  * This event is fired instead of `Runtime.executionContextDestroyed` when
3443
3692
  * enabled.
@@ -3545,6 +3794,16 @@ declare module 'inspector/promises' {
3545
3794
  * (session ID is provided in attachedToWorker notification).
3546
3795
  */
3547
3796
  prependListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3797
+ /**
3798
+ * Fired when page is about to send HTTP request.
3799
+ */
3800
+ prependListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
3801
+ /**
3802
+ * Fired when HTTP response is available.
3803
+ */
3804
+ prependListener(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
3805
+ prependListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
3806
+ prependListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
3548
3807
  /**
3549
3808
  * This event is fired instead of `Runtime.executionContextDestroyed` when
3550
3809
  * enabled.
@@ -3652,6 +3911,16 @@ declare module 'inspector/promises' {
3652
3911
  * (session ID is provided in attachedToWorker notification).
3653
3912
  */
3654
3913
  prependOnceListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
3914
+ /**
3915
+ * Fired when page is about to send HTTP request.
3916
+ */
3917
+ prependOnceListener(event: 'Network.requestWillBeSent', listener: (message: InspectorNotification<Network.RequestWillBeSentEventDataType>) => void): this;
3918
+ /**
3919
+ * Fired when HTTP response is available.
3920
+ */
3921
+ prependOnceListener(event: 'Network.responseReceived', listener: (message: InspectorNotification<Network.ResponseReceivedEventDataType>) => void): this;
3922
+ prependOnceListener(event: 'Network.loadingFailed', listener: (message: InspectorNotification<Network.LoadingFailedEventDataType>) => void): this;
3923
+ prependOnceListener(event: 'Network.loadingFinished', listener: (message: InspectorNotification<Network.LoadingFinishedEventDataType>) => void): this;
3655
3924
  /**
3656
3925
  * This event is fired instead of `Runtime.executionContextDestroyed` when
3657
3926
  * enabled.
@@ -3682,6 +3951,7 @@ declare module 'inspector/promises' {
3682
3951
  HeapProfiler,
3683
3952
  NodeTracing,
3684
3953
  NodeWorker,
3954
+ Network,
3685
3955
  NodeRuntime,
3686
3956
  };
3687
3957
  }
@@ -12,9 +12,9 @@ declare module "module" {
12
12
  * does not add or remove exported names from the `ES Modules`.
13
13
  *
14
14
  * ```js
15
- * const fs = require('node:fs');
16
- * const assert = require('node:assert');
17
- * const { syncBuiltinESMExports } = require('node:module');
15
+ * import fs from 'node:fs';
16
+ * import assert from 'node:assert';
17
+ * import { syncBuiltinESMExports } from 'node:module';
18
18
  *
19
19
  * fs.readFile = newAPI;
20
20
  *
@@ -8,7 +8,7 @@
8
8
  * It can be accessed using:
9
9
  *
10
10
  * ```js
11
- * const net = require('node:net');
11
+ * import net from 'node:net';
12
12
  * ```
13
13
  * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/net.js)
14
14
  */
@@ -29,6 +29,7 @@ declare module "net" {
29
29
  interface SocketConstructorOpts {
30
30
  fd?: number | undefined;
31
31
  allowHalfOpen?: boolean | undefined;
32
+ onread?: OnReadOpts | undefined;
32
33
  readable?: boolean | undefined;
33
34
  writable?: boolean | undefined;
34
35
  signal?: AbortSignal;
@@ -37,20 +38,15 @@ declare module "net" {
37
38
  buffer: Uint8Array | (() => Uint8Array);
38
39
  /**
39
40
  * This function is called for every chunk of incoming data.
40
- * Two arguments are passed to it: the number of bytes written to buffer and a reference to buffer.
41
- * Return false from this function to implicitly pause() the socket.
41
+ * Two arguments are passed to it: the number of bytes written to `buffer` and a reference to `buffer`.
42
+ * Return `false` from this function to implicitly `pause()` the socket.
42
43
  */
43
- callback(bytesWritten: number, buf: Uint8Array): boolean;
44
- }
45
- interface ConnectOpts {
46
- /**
47
- * If specified, incoming data is stored in a single buffer and passed to the supplied callback when data arrives on the socket.
48
- * Note: this will cause the streaming functionality to not provide any data, however events like 'error', 'end', and 'close' will
49
- * still be emitted as normal and methods like pause() and resume() will also behave as expected.
50
- */
51
- onread?: OnReadOpts | undefined;
44
+ callback(bytesWritten: number, buffer: Uint8Array): boolean;
52
45
  }
53
- interface TcpSocketConnectOpts extends ConnectOpts {
46
+ // TODO: remove empty ConnectOpts placeholder at next major @types/node version.
47
+ /** @deprecated */
48
+ interface ConnectOpts {}
49
+ interface TcpSocketConnectOpts {
54
50
  port: number;
55
51
  host?: string | undefined;
56
52
  localAddress?: string | undefined;
@@ -70,7 +66,7 @@ declare module "net" {
70
66
  */
71
67
  autoSelectFamilyAttemptTimeout?: number | undefined;
72
68
  }
73
- interface IpcSocketConnectOpts extends ConnectOpts {
69
+ interface IpcSocketConnectOpts {
74
70
  path: string;
75
71
  }
76
72
  type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts;
@@ -812,7 +808,7 @@ declare module "net" {
812
808
  * on port 8124:
813
809
  *
814
810
  * ```js
815
- * const net = require('node:net');
811
+ * import net from 'node:net';
816
812
  * const server = net.createServer((c) => {
817
813
  * // 'connection' listener.
818
814
  * console.log('client connected');
@@ -3,7 +3,7 @@
3
3
  * properties. It can be accessed using:
4
4
  *
5
5
  * ```js
6
- * const os = require('node:os');
6
+ * import os from 'node:os';
7
7
  * ```
8
8
  * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/os.js)
9
9
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "22.5.5",
3
+ "version": "22.7.4",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -203,6 +203,13 @@
203
203
  ],
204
204
  "main": "",
205
205
  "types": "index.d.ts",
206
+ "typesVersions": {
207
+ "<=5.6": {
208
+ "*": [
209
+ "ts5.6/*"
210
+ ]
211
+ }
212
+ },
206
213
  "repository": {
207
214
  "type": "git",
208
215
  "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
@@ -212,6 +219,6 @@
212
219
  "dependencies": {
213
220
  "undici-types": "~6.19.2"
214
221
  },
215
- "typesPublisherContentHash": "49c6854801c6eca5f0c4debaa90673195b7385ea09dc082e76a86be2fa20430f",
222
+ "typesPublisherContentHash": "58c8a4b0f59c44e08d89b33eab493f0e44c78851904ecec99425a6357184e01b",
216
223
  "typeScriptVersion": "4.8"
217
224
  }
@@ -11,7 +11,7 @@ declare module "path/win32" {
11
11
  * paths. It can be accessed using:
12
12
  *
13
13
  * ```js
14
- * const path = require('node:path');
14
+ * import path from 'node:path';
15
15
  * ```
16
16
  * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/path.js)
17
17
  */