cdk-common 2.0.1201 → 2.0.1203

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 (217) hide show
  1. package/.jsii +3 -3
  2. package/lib/main.js +1 -1
  3. package/node_modules/@types/concat-stream/node_modules/@types/node/README.md +1 -1
  4. package/node_modules/@types/concat-stream/node_modules/@types/node/assert.d.ts +5 -5
  5. package/node_modules/@types/concat-stream/node_modules/@types/node/async_hooks.d.ts +26 -6
  6. package/node_modules/@types/concat-stream/node_modules/@types/node/buffer.d.ts +1 -2
  7. package/node_modules/@types/concat-stream/node_modules/@types/node/child_process.d.ts +2 -2
  8. package/node_modules/@types/concat-stream/node_modules/@types/node/cluster.d.ts +15 -15
  9. package/node_modules/@types/concat-stream/node_modules/@types/node/console.d.ts +17 -17
  10. package/node_modules/@types/concat-stream/node_modules/@types/node/crypto.d.ts +35 -28
  11. package/node_modules/@types/concat-stream/node_modules/@types/node/dgram.d.ts +1 -1
  12. package/node_modules/@types/concat-stream/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
  13. package/node_modules/@types/concat-stream/node_modules/@types/node/dns.d.ts +16 -16
  14. package/node_modules/@types/concat-stream/node_modules/@types/node/domain.d.ts +1 -1
  15. package/node_modules/@types/concat-stream/node_modules/@types/node/events.d.ts +1 -2
  16. package/node_modules/@types/concat-stream/node_modules/@types/node/fs/promises.d.ts +16 -9
  17. package/node_modules/@types/concat-stream/node_modules/@types/node/fs.d.ts +28 -19
  18. package/node_modules/@types/concat-stream/node_modules/@types/node/globals.d.ts +7 -6
  19. package/node_modules/@types/concat-stream/node_modules/@types/node/globals.typedarray.d.ts +1 -0
  20. package/node_modules/@types/concat-stream/node_modules/@types/node/http.d.ts +2 -2
  21. package/node_modules/@types/concat-stream/node_modules/@types/node/http2.d.ts +6 -3
  22. package/node_modules/@types/concat-stream/node_modules/@types/node/https.d.ts +1 -1
  23. package/node_modules/@types/concat-stream/node_modules/@types/node/index.d.ts +7 -5
  24. package/node_modules/@types/concat-stream/node_modules/@types/node/inspector.d.ts +3 -7
  25. package/node_modules/@types/concat-stream/node_modules/@types/node/module.d.ts +63 -29
  26. package/node_modules/@types/concat-stream/node_modules/@types/node/net.d.ts +2 -5
  27. package/node_modules/@types/concat-stream/node_modules/@types/node/os.d.ts +8 -7
  28. package/node_modules/@types/concat-stream/node_modules/@types/node/package.json +13 -3
  29. package/node_modules/@types/concat-stream/node_modules/@types/node/path.d.ts +1 -1
  30. package/node_modules/@types/concat-stream/node_modules/@types/node/perf_hooks.d.ts +8 -8
  31. package/node_modules/@types/concat-stream/node_modules/@types/node/process.d.ts +21 -11
  32. package/node_modules/@types/concat-stream/node_modules/@types/node/punycode.d.ts +1 -1
  33. package/node_modules/@types/concat-stream/node_modules/@types/node/querystring.d.ts +1 -1
  34. package/node_modules/@types/concat-stream/node_modules/@types/node/readline/promises.d.ts +0 -1
  35. package/node_modules/@types/concat-stream/node_modules/@types/node/readline.d.ts +13 -13
  36. package/node_modules/@types/concat-stream/node_modules/@types/node/repl.d.ts +14 -16
  37. package/node_modules/@types/concat-stream/node_modules/@types/node/sea.d.ts +1 -1
  38. package/node_modules/@types/concat-stream/node_modules/@types/node/sqlite.d.ts +182 -2
  39. package/node_modules/@types/concat-stream/node_modules/@types/node/stream.d.ts +8 -19
  40. package/node_modules/@types/concat-stream/node_modules/@types/node/string_decoder.d.ts +1 -1
  41. package/node_modules/@types/concat-stream/node_modules/@types/node/test.d.ts +53 -15
  42. package/node_modules/@types/concat-stream/node_modules/@types/node/timers/promises.d.ts +1 -1
  43. package/node_modules/@types/concat-stream/node_modules/@types/node/timers.d.ts +1 -1
  44. package/node_modules/@types/concat-stream/node_modules/@types/node/tls.d.ts +2 -48
  45. package/node_modules/@types/concat-stream/node_modules/@types/node/trace_events.d.ts +6 -6
  46. package/node_modules/@types/concat-stream/node_modules/@types/node/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
  47. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.1/index.d.ts +98 -0
  48. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  49. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
  50. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.6/index.d.ts +9 -5
  51. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  52. package/node_modules/@types/concat-stream/node_modules/@types/node/ts5.7/index.d.ts +96 -0
  53. package/node_modules/@types/concat-stream/node_modules/@types/node/tty.d.ts +1 -1
  54. package/node_modules/@types/concat-stream/node_modules/@types/node/url.d.ts +52 -19
  55. package/node_modules/@types/concat-stream/node_modules/@types/node/util.d.ts +16 -295
  56. package/node_modules/@types/concat-stream/node_modules/@types/node/v8.d.ts +29 -32
  57. package/node_modules/@types/concat-stream/node_modules/@types/node/vm.d.ts +17 -10
  58. package/node_modules/@types/concat-stream/node_modules/@types/node/wasi.d.ts +1 -1
  59. package/node_modules/@types/concat-stream/node_modules/@types/node/worker_threads.d.ts +34 -18
  60. package/node_modules/@types/concat-stream/node_modules/@types/node/zlib.d.ts +5 -7
  61. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/agent.d.ts +7 -7
  62. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/api.d.ts +24 -24
  63. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/balanced-pool.d.ts +11 -11
  64. package/node_modules/@types/concat-stream/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  65. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/client.d.ts +12 -13
  66. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/cookies.d.ts +2 -0
  67. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/diagnostics-channel.d.ts +10 -10
  68. package/node_modules/@types/concat-stream/node_modules/undici-types/dispatcher.d.ts +281 -0
  69. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/env-http-proxy-agent.d.ts +2 -2
  70. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/errors.d.ts +69 -47
  71. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/fetch.d.ts +17 -16
  72. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/formdata.d.ts +7 -7
  73. package/node_modules/@types/concat-stream/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  74. package/node_modules/@types/concat-stream/node_modules/undici-types/global-origin.d.ts +7 -0
  75. package/node_modules/@types/concat-stream/node_modules/undici-types/h2c-client.d.ts +75 -0
  76. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/handlers.d.ts +7 -7
  77. package/node_modules/@types/concat-stream/node_modules/undici-types/header.d.ts +160 -0
  78. package/node_modules/@types/concat-stream/node_modules/undici-types/index.d.ts +75 -0
  79. package/node_modules/@types/concat-stream/node_modules/undici-types/interceptors.d.ts +34 -0
  80. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/mock-agent.d.ts +33 -18
  81. package/node_modules/@types/concat-stream/node_modules/undici-types/mock-call-history.d.ts +111 -0
  82. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/mock-client.d.ts +4 -4
  83. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/mock-errors.d.ts +3 -3
  84. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/mock-interceptor.d.ts +19 -19
  85. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/mock-pool.d.ts +4 -4
  86. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/package.json +1 -1
  87. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/patch.d.ts +0 -4
  88. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/pool-stats.d.ts +8 -8
  89. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/pool.d.ts +12 -12
  90. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/proxy-agent.d.ts +4 -4
  91. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/readable.d.ts +18 -15
  92. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/retry-agent.d.ts +1 -1
  93. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/retry-handler.d.ts +10 -10
  94. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/util.d.ts +3 -3
  95. package/node_modules/@types/concat-stream/node_modules/undici-types/utility.d.ts +7 -0
  96. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/webidl.d.ts +44 -6
  97. package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/websocket.d.ts +35 -1
  98. package/node_modules/@types/form-data/node_modules/@types/node/README.md +1 -1
  99. package/node_modules/@types/form-data/node_modules/@types/node/assert.d.ts +5 -5
  100. package/node_modules/@types/form-data/node_modules/@types/node/async_hooks.d.ts +26 -6
  101. package/node_modules/@types/form-data/node_modules/@types/node/buffer.d.ts +1 -2
  102. package/node_modules/@types/form-data/node_modules/@types/node/child_process.d.ts +2 -2
  103. package/node_modules/@types/form-data/node_modules/@types/node/cluster.d.ts +15 -15
  104. package/node_modules/@types/form-data/node_modules/@types/node/console.d.ts +17 -17
  105. package/node_modules/@types/form-data/node_modules/@types/node/crypto.d.ts +35 -28
  106. package/node_modules/@types/form-data/node_modules/@types/node/dgram.d.ts +1 -1
  107. package/node_modules/@types/form-data/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
  108. package/node_modules/@types/form-data/node_modules/@types/node/dns.d.ts +16 -16
  109. package/node_modules/@types/form-data/node_modules/@types/node/domain.d.ts +1 -1
  110. package/node_modules/@types/form-data/node_modules/@types/node/events.d.ts +1 -2
  111. package/node_modules/@types/form-data/node_modules/@types/node/fs/promises.d.ts +16 -9
  112. package/node_modules/@types/form-data/node_modules/@types/node/fs.d.ts +28 -19
  113. package/node_modules/@types/form-data/node_modules/@types/node/globals.d.ts +7 -6
  114. package/node_modules/@types/form-data/node_modules/@types/node/globals.typedarray.d.ts +1 -0
  115. package/node_modules/@types/form-data/node_modules/@types/node/http.d.ts +2 -2
  116. package/node_modules/@types/form-data/node_modules/@types/node/http2.d.ts +6 -3
  117. package/node_modules/@types/form-data/node_modules/@types/node/https.d.ts +1 -1
  118. package/node_modules/@types/form-data/node_modules/@types/node/index.d.ts +7 -5
  119. package/node_modules/@types/form-data/node_modules/@types/node/inspector.d.ts +3 -7
  120. package/node_modules/@types/form-data/node_modules/@types/node/module.d.ts +63 -29
  121. package/node_modules/@types/form-data/node_modules/@types/node/net.d.ts +2 -5
  122. package/node_modules/@types/form-data/node_modules/@types/node/os.d.ts +8 -7
  123. package/node_modules/@types/form-data/node_modules/@types/node/package.json +13 -3
  124. package/node_modules/@types/form-data/node_modules/@types/node/path.d.ts +1 -1
  125. package/node_modules/@types/form-data/node_modules/@types/node/perf_hooks.d.ts +8 -8
  126. package/node_modules/@types/form-data/node_modules/@types/node/process.d.ts +21 -11
  127. package/node_modules/@types/form-data/node_modules/@types/node/punycode.d.ts +1 -1
  128. package/node_modules/@types/form-data/node_modules/@types/node/querystring.d.ts +1 -1
  129. package/node_modules/@types/form-data/node_modules/@types/node/readline/promises.d.ts +0 -1
  130. package/node_modules/@types/form-data/node_modules/@types/node/readline.d.ts +13 -13
  131. package/node_modules/@types/form-data/node_modules/@types/node/repl.d.ts +14 -16
  132. package/node_modules/@types/form-data/node_modules/@types/node/sea.d.ts +1 -1
  133. package/node_modules/@types/form-data/node_modules/@types/node/sqlite.d.ts +182 -2
  134. package/node_modules/@types/form-data/node_modules/@types/node/stream.d.ts +8 -19
  135. package/node_modules/@types/form-data/node_modules/@types/node/string_decoder.d.ts +1 -1
  136. package/node_modules/@types/form-data/node_modules/@types/node/test.d.ts +53 -15
  137. package/node_modules/@types/form-data/node_modules/@types/node/timers/promises.d.ts +1 -1
  138. package/node_modules/@types/form-data/node_modules/@types/node/timers.d.ts +1 -1
  139. package/node_modules/@types/form-data/node_modules/@types/node/tls.d.ts +2 -48
  140. package/node_modules/@types/form-data/node_modules/@types/node/trace_events.d.ts +6 -6
  141. package/node_modules/@types/form-data/node_modules/@types/node/{compatibility → ts5.1/compatibility}/disposable.d.ts +0 -4
  142. package/node_modules/@types/form-data/node_modules/@types/node/ts5.1/index.d.ts +98 -0
  143. package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  144. package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
  145. package/node_modules/@types/form-data/node_modules/@types/node/ts5.6/index.d.ts +9 -5
  146. package/node_modules/@types/form-data/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  147. package/node_modules/@types/form-data/node_modules/@types/node/ts5.7/index.d.ts +96 -0
  148. package/node_modules/@types/form-data/node_modules/@types/node/tty.d.ts +1 -1
  149. package/node_modules/@types/form-data/node_modules/@types/node/url.d.ts +52 -19
  150. package/node_modules/@types/form-data/node_modules/@types/node/util.d.ts +16 -295
  151. package/node_modules/@types/form-data/node_modules/@types/node/v8.d.ts +29 -32
  152. package/node_modules/@types/form-data/node_modules/@types/node/vm.d.ts +17 -10
  153. package/node_modules/@types/form-data/node_modules/@types/node/wasi.d.ts +1 -1
  154. package/node_modules/@types/form-data/node_modules/@types/node/worker_threads.d.ts +34 -18
  155. package/node_modules/@types/form-data/node_modules/@types/node/zlib.d.ts +5 -7
  156. package/node_modules/@types/form-data/node_modules/undici-types/LICENSE +21 -0
  157. package/node_modules/@types/form-data/node_modules/undici-types/README.md +6 -0
  158. package/node_modules/@types/form-data/node_modules/undici-types/agent.d.ts +31 -0
  159. package/node_modules/@types/form-data/node_modules/undici-types/api.d.ts +43 -0
  160. package/node_modules/@types/form-data/node_modules/undici-types/balanced-pool.d.ts +29 -0
  161. package/node_modules/@types/form-data/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  162. package/node_modules/@types/form-data/node_modules/undici-types/cache.d.ts +36 -0
  163. package/node_modules/@types/form-data/node_modules/undici-types/client.d.ts +107 -0
  164. package/node_modules/@types/form-data/node_modules/undici-types/connector.d.ts +34 -0
  165. package/node_modules/@types/form-data/node_modules/undici-types/content-type.d.ts +21 -0
  166. package/node_modules/@types/form-data/node_modules/undici-types/cookies.d.ts +30 -0
  167. package/node_modules/@types/form-data/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
  168. package/node_modules/@types/form-data/node_modules/undici-types/dispatcher.d.ts +281 -0
  169. package/node_modules/@types/form-data/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  170. package/node_modules/@types/form-data/node_modules/undici-types/errors.d.ts +171 -0
  171. package/node_modules/@types/form-data/node_modules/undici-types/eventsource.d.ts +61 -0
  172. package/node_modules/@types/form-data/node_modules/undici-types/fetch.d.ts +210 -0
  173. package/node_modules/@types/form-data/node_modules/undici-types/formdata.d.ts +108 -0
  174. package/node_modules/@types/form-data/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  175. package/node_modules/@types/form-data/node_modules/undici-types/global-origin.d.ts +7 -0
  176. package/node_modules/@types/form-data/node_modules/undici-types/h2c-client.d.ts +75 -0
  177. package/node_modules/@types/form-data/node_modules/undici-types/handlers.d.ts +15 -0
  178. package/node_modules/@types/form-data/node_modules/undici-types/header.d.ts +160 -0
  179. package/node_modules/@types/form-data/node_modules/undici-types/index.d.ts +75 -0
  180. package/node_modules/@types/form-data/node_modules/undici-types/interceptors.d.ts +34 -0
  181. package/node_modules/@types/form-data/node_modules/undici-types/mock-agent.d.ts +65 -0
  182. package/node_modules/@types/form-data/node_modules/undici-types/mock-call-history.d.ts +111 -0
  183. package/node_modules/@types/form-data/node_modules/undici-types/mock-client.d.ts +25 -0
  184. package/node_modules/@types/form-data/node_modules/undici-types/mock-errors.d.ts +12 -0
  185. package/node_modules/@types/form-data/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  186. package/node_modules/@types/form-data/node_modules/undici-types/mock-pool.d.ts +25 -0
  187. package/node_modules/@types/form-data/node_modules/undici-types/package.json +55 -0
  188. package/node_modules/@types/form-data/node_modules/undici-types/patch.d.ts +29 -0
  189. package/node_modules/@types/form-data/node_modules/undici-types/pool-stats.d.ts +19 -0
  190. package/node_modules/@types/form-data/node_modules/undici-types/pool.d.ts +39 -0
  191. package/node_modules/@types/form-data/node_modules/undici-types/proxy-agent.d.ts +28 -0
  192. package/node_modules/@types/form-data/node_modules/undici-types/readable.d.ts +68 -0
  193. package/node_modules/@types/form-data/node_modules/undici-types/retry-agent.d.ts +8 -0
  194. package/node_modules/@types/form-data/node_modules/undici-types/retry-handler.d.ts +116 -0
  195. package/node_modules/@types/form-data/node_modules/undici-types/util.d.ts +18 -0
  196. package/node_modules/@types/form-data/node_modules/undici-types/utility.d.ts +7 -0
  197. package/node_modules/@types/form-data/node_modules/undici-types/webidl.d.ts +266 -0
  198. package/node_modules/@types/form-data/node_modules/undici-types/websocket.d.ts +184 -0
  199. package/package.json +2 -2
  200. package/node_modules/@types/concat-stream/node_modules/@types/node/compatibility/index.d.ts +0 -9
  201. package/node_modules/@types/concat-stream/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  202. package/node_modules/@types/form-data/node_modules/@types/node/compatibility/index.d.ts +0 -9
  203. package/node_modules/@types/form-data/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  204. package/node_modules/undici-types/dispatcher.d.ts +0 -256
  205. package/node_modules/undici-types/file.d.ts +0 -39
  206. package/node_modules/undici-types/filereader.d.ts +0 -54
  207. package/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  208. package/node_modules/undici-types/global-origin.d.ts +0 -7
  209. package/node_modules/undici-types/header.d.ts +0 -4
  210. package/node_modules/undici-types/index.d.ts +0 -71
  211. package/node_modules/undici-types/interceptors.d.ts +0 -17
  212. /package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/LICENSE +0 -0
  213. /package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/README.md +0 -0
  214. /package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/cache.d.ts +0 -0
  215. /package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/connector.d.ts +0 -0
  216. /package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/content-type.d.ts +0 -0
  217. /package/node_modules/{undici-types → @types/concat-stream/node_modules/undici-types}/eventsource.d.ts +0 -0
@@ -7,13 +7,13 @@ export default MockPool
7
7
 
8
8
  /** MockPool extends the Pool API and allows one to mock requests. */
9
9
  declare class MockPool extends Pool implements Interceptable {
10
- constructor(origin: string, options: MockPool.Options);
10
+ constructor (origin: string, options: MockPool.Options)
11
11
  /** Intercepts any matching requests that use the same origin as this mock pool. */
12
- intercept(options: MockInterceptor.Options): MockInterceptor;
12
+ intercept (options: MockInterceptor.Options): MockInterceptor
13
13
  /** Dispatches a mocked request. */
14
- dispatch(options: Dispatcher.DispatchOptions, handlers: Dispatcher.DispatchHandlers): boolean;
14
+ dispatch (options: Dispatcher.DispatchOptions, handlers: Dispatcher.DispatchHandler): boolean
15
15
  /** Closes the mock pool and gracefully waits for enqueued requests to complete. */
16
- close(): Promise<void>;
16
+ close (): Promise<void>
17
17
  }
18
18
 
19
19
  declare namespace MockPool {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undici-types",
3
- "version": "6.21.0",
3
+ "version": "7.8.0",
4
4
  "description": "A stand-alone types package for Undici",
5
5
  "homepage": "https://undici.nodejs.org",
6
6
  "bugs": {
@@ -2,10 +2,6 @@
2
2
 
3
3
  // See https://github.com/nodejs/undici/issues/1740
4
4
 
5
- export type DOMException = typeof globalThis extends { DOMException: infer T }
6
- ? T
7
- : any
8
-
9
5
  export interface EventInit {
10
6
  bubbles?: boolean
11
7
  cancelable?: boolean
@@ -1,19 +1,19 @@
1
- import Pool from "./pool"
1
+ import Pool from './pool'
2
2
 
3
3
  export default PoolStats
4
4
 
5
5
  declare class PoolStats {
6
- constructor(pool: Pool);
6
+ constructor (pool: Pool)
7
7
  /** Number of open socket connections in this pool. */
8
- connected: number;
8
+ connected: number
9
9
  /** Number of open socket connections in this pool that do not have an active request. */
10
- free: number;
10
+ free: number
11
11
  /** Number of pending requests across all clients in this pool. */
12
- pending: number;
12
+ pending: number
13
13
  /** Number of queued requests across all clients in this pool. */
14
- queued: number;
14
+ queued: number
15
15
  /** Number of currently active requests across all clients in this pool. */
16
- running: number;
16
+ running: number
17
17
  /** Number of active, pending, or queued requests across all clients in this pool. */
18
- size: number;
18
+ size: number
19
19
  }
@@ -1,39 +1,39 @@
1
1
  import Client from './client'
2
2
  import TPoolStats from './pool-stats'
3
3
  import { URL } from 'url'
4
- import Dispatcher from "./dispatcher";
4
+ import Dispatcher from './dispatcher'
5
5
 
6
6
  export default Pool
7
7
 
8
- type PoolConnectOptions = Omit<Dispatcher.ConnectOptions, "origin">;
8
+ type PoolConnectOptions = Omit<Dispatcher.ConnectOptions, 'origin'>
9
9
 
10
10
  declare class Pool extends Dispatcher {
11
- constructor(url: string | URL, options?: Pool.Options)
11
+ constructor (url: string | URL, options?: Pool.Options)
12
12
  /** `true` after `pool.close()` has been called. */
13
- closed: boolean;
13
+ closed: boolean
14
14
  /** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */
15
- destroyed: boolean;
15
+ destroyed: boolean
16
16
  /** Aggregate stats for a Pool. */
17
- readonly stats: TPoolStats;
17
+ readonly stats: TPoolStats
18
18
 
19
19
  // Override dispatcher APIs.
20
- override connect(
20
+ override connect (
21
21
  options: PoolConnectOptions
22
- ): Promise<Dispatcher.ConnectData>;
23
- override connect(
22
+ ): Promise<Dispatcher.ConnectData>
23
+ override connect (
24
24
  options: PoolConnectOptions,
25
25
  callback: (err: Error | null, data: Dispatcher.ConnectData) => void
26
- ): void;
26
+ ): void
27
27
  }
28
28
 
29
29
  declare namespace Pool {
30
- export type PoolStats = TPoolStats;
30
+ export type PoolStats = TPoolStats
31
31
  export interface Options extends Client.Options {
32
32
  /** Default: `(origin, opts) => new Client(origin, opts)`. */
33
33
  factory?(origin: URL, opts: object): Dispatcher;
34
34
  /** The max number of clients to create. `null` if no limit. Default `null`. */
35
35
  connections?: number | null;
36
36
 
37
- interceptors?: { Pool?: readonly Dispatcher.DispatchInterceptor[] } & Client.Options["interceptors"]
37
+ interceptors?: { Pool?: readonly Dispatcher.DispatchInterceptor[] } & Client.Options['interceptors']
38
38
  }
39
39
  }
@@ -1,15 +1,15 @@
1
1
  import Agent from './agent'
2
- import buildConnector from './connector';
2
+ import buildConnector from './connector'
3
3
  import Dispatcher from './dispatcher'
4
4
  import { IncomingHttpHeaders } from './header'
5
5
 
6
6
  export default ProxyAgent
7
7
 
8
8
  declare class ProxyAgent extends Dispatcher {
9
- constructor(options: ProxyAgent.Options | string)
9
+ constructor (options: ProxyAgent.Options | string)
10
10
 
11
- dispatch(options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandlers): boolean;
12
- close(): Promise<void>;
11
+ dispatch (options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandler): boolean
12
+ close (): Promise<void>
13
13
  }
14
14
 
15
15
  declare namespace ProxyAgent {
@@ -1,45 +1,47 @@
1
- import { Readable } from "stream";
1
+ import { Readable } from 'stream'
2
2
  import { Blob } from 'buffer'
3
3
 
4
4
  export default BodyReadable
5
5
 
6
6
  declare class BodyReadable extends Readable {
7
- constructor(
8
- resume?: (this: Readable, size: number) => void | null,
9
- abort?: () => void | null,
10
- contentType?: string
11
- )
7
+ constructor (opts: {
8
+ resume: (this: Readable, size: number) => void | null;
9
+ abort: () => void | null;
10
+ contentType?: string;
11
+ contentLength?: number;
12
+ highWaterMark?: number;
13
+ })
12
14
 
13
15
  /** Consumes and returns the body as a string
14
16
  * https://fetch.spec.whatwg.org/#dom-body-text
15
17
  */
16
- text(): Promise<string>
18
+ text (): Promise<string>
17
19
 
18
20
  /** Consumes and returns the body as a JavaScript Object
19
21
  * https://fetch.spec.whatwg.org/#dom-body-json
20
22
  */
21
- json(): Promise<unknown>
23
+ json (): Promise<unknown>
22
24
 
23
25
  /** Consumes and returns the body as a Blob
24
26
  * https://fetch.spec.whatwg.org/#dom-body-blob
25
27
  */
26
- blob(): Promise<Blob>
28
+ blob (): Promise<Blob>
27
29
 
28
30
  /** Consumes and returns the body as an Uint8Array
29
31
  * https://fetch.spec.whatwg.org/#dom-body-bytes
30
32
  */
31
- bytes(): Promise<Uint8Array>
33
+ bytes (): Promise<Uint8Array>
32
34
 
33
35
  /** Consumes and returns the body as an ArrayBuffer
34
36
  * https://fetch.spec.whatwg.org/#dom-body-arraybuffer
35
37
  */
36
- arrayBuffer(): Promise<ArrayBuffer>
38
+ arrayBuffer (): Promise<ArrayBuffer>
37
39
 
38
40
  /** Not implemented
39
41
  *
40
42
  * https://fetch.spec.whatwg.org/#dom-body-formdata
41
43
  */
42
- formData(): Promise<never>
44
+ formData (): Promise<never>
43
45
 
44
46
  /** Returns true if the body is not null and the body has been consumed
45
47
  *
@@ -49,7 +51,7 @@ declare class BodyReadable extends Readable {
49
51
  */
50
52
  readonly bodyUsed: boolean
51
53
 
52
- /**
54
+ /**
53
55
  * If body is null, it should return null as the body
54
56
  *
55
57
  * If body is not null, should return the body as a ReadableStream
@@ -59,7 +61,8 @@ declare class BodyReadable extends Readable {
59
61
  readonly body: never | undefined
60
62
 
61
63
  /** Dumps the response body by reading `limit` number of bytes.
62
- * @param opts.limit Number of bytes to read (optional) - Default: 262144
64
+ * @param opts.limit Number of bytes to read (optional) - Default: 131072
65
+ * @param opts.signal AbortSignal to cancel the operation (optional)
63
66
  */
64
- dump(opts?: { limit: number }): Promise<void>
67
+ dump (opts?: { limit: number; signal?: AbortSignal }): Promise<void>
65
68
  }
@@ -4,5 +4,5 @@ import RetryHandler from './retry-handler'
4
4
  export default RetryAgent
5
5
 
6
6
  declare class RetryAgent extends Dispatcher {
7
- constructor(dispatcher: Dispatcher, options?: RetryHandler.RetryOptions)
7
+ constructor (dispatcher: Dispatcher, options?: RetryHandler.RetryOptions)
8
8
  }
@@ -1,18 +1,18 @@
1
- import Dispatcher from "./dispatcher";
1
+ import Dispatcher from './dispatcher'
2
2
 
3
- export default RetryHandler;
3
+ export default RetryHandler
4
4
 
5
- declare class RetryHandler implements Dispatcher.DispatchHandlers {
6
- constructor(
5
+ declare class RetryHandler implements Dispatcher.DispatchHandler {
6
+ constructor (
7
7
  options: Dispatcher.DispatchOptions & {
8
8
  retryOptions?: RetryHandler.RetryOptions;
9
9
  },
10
10
  retryHandlers: RetryHandler.RetryHandlers
11
- );
11
+ )
12
12
  }
13
13
 
14
14
  declare namespace RetryHandler {
15
- export type RetryState = { counter: number; };
15
+ export type RetryState = { counter: number; }
16
16
 
17
17
  export type RetryContext = {
18
18
  state: RetryState;
@@ -21,7 +21,7 @@ declare namespace RetryHandler {
21
21
  };
22
22
  }
23
23
 
24
- export type OnRetryCallback = (result?: Error | null) => void;
24
+ export type OnRetryCallback = (result?: Error | null) => void
25
25
 
26
26
  export type RetryCallback = (
27
27
  err: Error,
@@ -32,7 +32,7 @@ declare namespace RetryHandler {
32
32
  };
33
33
  },
34
34
  callback: OnRetryCallback
35
- ) => number | null;
35
+ ) => void
36
36
 
37
37
  export interface RetryOptions {
38
38
  /**
@@ -110,7 +110,7 @@ declare namespace RetryHandler {
110
110
  }
111
111
 
112
112
  export interface RetryHandlers {
113
- dispatch: Dispatcher["dispatch"];
114
- handler: Dispatcher.DispatchHandlers;
113
+ dispatch: Dispatcher['dispatch'];
114
+ handler: Dispatcher.DispatchHandler;
115
115
  }
116
116
  }
@@ -3,7 +3,7 @@ export namespace util {
3
3
  * Retrieves a header name and returns its lowercase value.
4
4
  * @param value Header name
5
5
  */
6
- export function headerNameToString(value: string | Buffer): string;
6
+ export function headerNameToString (value: string | Buffer): string
7
7
 
8
8
  /**
9
9
  * Receives a header object and returns the parsed value.
@@ -11,8 +11,8 @@ export namespace util {
11
11
  * @param obj Object to specify a proxy object. Used to assign parsed values.
12
12
  * @returns If `obj` is specified, it is equivalent to `obj`.
13
13
  */
14
- export function parseHeaders(
14
+ export function parseHeaders (
15
15
  headers: (Buffer | string | (Buffer | string)[])[],
16
16
  obj?: Record<string, string | string[]>
17
- ): Record<string, string | string[]>;
17
+ ): Record<string, string | string[]>
18
18
  }
@@ -0,0 +1,7 @@
1
+ type AutocompletePrimitiveBaseType<T> =
2
+ T extends string ? string :
3
+ T extends number ? number :
4
+ T extends boolean ? boolean :
5
+ never
6
+
7
+ export type Autocomplete<T> = T | (AutocompletePrimitiveBaseType<T> & Record<never, never>)
@@ -1,4 +1,5 @@
1
1
  // These types are not exported, and are only used internally
2
+ import * as undici from './index'
2
3
 
3
4
  /**
4
5
  * Take in an unknown value and return one that is of type T
@@ -34,11 +35,24 @@ interface WebidlErrors {
34
35
  }): TypeError
35
36
  }
36
37
 
38
+ interface WebIDLTypes {
39
+ UNDEFINED: 1,
40
+ BOOLEAN: 2,
41
+ STRING: 3,
42
+ SYMBOL: 4,
43
+ NUMBER: 5,
44
+ BIGINT: 6,
45
+ NULL: 7
46
+ OBJECT: 8
47
+ }
48
+
37
49
  interface WebidlUtil {
38
50
  /**
39
51
  * @see https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values
40
52
  */
41
- Type (object: unknown):
53
+ Type (object: unknown): WebIDLTypes[keyof WebIDLTypes]
54
+
55
+ TypeValueToString (o: unknown):
42
56
  | 'Undefined'
43
57
  | 'Boolean'
44
58
  | 'String'
@@ -48,6 +62,8 @@ interface WebidlUtil {
48
62
  | 'Null'
49
63
  | 'Object'
50
64
 
65
+ Types: WebIDLTypes
66
+
51
67
  /**
52
68
  * @see https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
53
69
  */
@@ -68,6 +84,8 @@ interface WebidlUtil {
68
84
  */
69
85
  Stringify (V: any): string
70
86
 
87
+ MakeTypeAssertion <I>(I: I): (arg: any) => arg is I
88
+
71
89
  /**
72
90
  * Mark a value as uncloneable for Node.js.
73
91
  * This is only effective in some newer Node.js versions.
@@ -156,7 +174,7 @@ interface WebidlConverters {
156
174
  ): NodeJS.TypedArray | ArrayBufferLike | DataView
157
175
 
158
176
  ['sequence<ByteString>']: SequenceConverter<string>
159
-
177
+
160
178
  ['sequence<sequence<ByteString>>']: SequenceConverter<string[]>
161
179
 
162
180
  ['record<ByteString, ByteString>']: RecordConverter<string, string>
@@ -164,16 +182,35 @@ interface WebidlConverters {
164
182
  [Key: string]: (...args: any[]) => unknown
165
183
  }
166
184
 
185
+ type IsAssertion<T> = (arg: any) => arg is T
186
+
187
+ interface WebidlIs {
188
+ Request: IsAssertion<undici.Request>
189
+ Response: IsAssertion<undici.Response>
190
+ ReadableStream: IsAssertion<ReadableStream>
191
+ Blob: IsAssertion<Blob>
192
+ URLSearchParams: IsAssertion<URLSearchParams>
193
+ File: IsAssertion<File>
194
+ FormData: IsAssertion<undici.FormData>
195
+ URL: IsAssertion<URL>
196
+ WebSocketError: IsAssertion<undici.WebSocketError>
197
+ AbortSignal: IsAssertion<AbortSignal>
198
+ MessagePort: IsAssertion<MessagePort>
199
+ }
200
+
167
201
  export interface Webidl {
168
202
  errors: WebidlErrors
169
203
  util: WebidlUtil
170
204
  converters: WebidlConverters
205
+ is: WebidlIs
171
206
 
172
207
  /**
173
208
  * @description Performs a brand-check on {@param V} to ensure it is a
174
209
  * {@param cls} object.
175
210
  */
176
- brandCheck <Interface>(V: unknown, cls: Interface, opts?: { strict?: boolean }): asserts V is Interface
211
+ brandCheck <Interface extends new () => unknown>(V: unknown, cls: Interface): asserts V is Interface
212
+
213
+ brandCheckMultiple <Interfaces extends (new () => unknown)[]> (list: Interfaces): (V: any) => asserts V is Interfaces[number]
177
214
 
178
215
  /**
179
216
  * @see https://webidl.spec.whatwg.org/#es-sequence
@@ -196,10 +233,11 @@ export interface Webidl {
196
233
  * Similar to {@link Webidl.brandCheck} but allows skipping the check if third party
197
234
  * interfaces are allowed.
198
235
  */
199
- interfaceConverter <Interface>(cls: Interface): (
236
+ interfaceConverter <Interface>(typeCheck: IsAssertion<Interface>, name: string): (
200
237
  V: unknown,
201
- opts?: { strict: boolean }
202
- ) => asserts V is typeof cls
238
+ prefix: string,
239
+ argument: string
240
+ ) => asserts V is Interface
203
241
 
204
242
  // TODO(@KhafraDev): a type could likely be implemented that can infer the return type
205
243
  // from the converters given?
@@ -1,6 +1,7 @@
1
1
  /// <reference types="node" />
2
2
 
3
3
  import type { Blob } from 'buffer'
4
+ import type { ReadableStream, WritableStream } from 'stream/web'
4
5
  import type { MessagePort } from 'worker_threads'
5
6
  import {
6
7
  EventInit,
@@ -22,7 +23,7 @@ interface WebSocketEventMap {
22
23
 
23
24
  interface WebSocket extends EventTarget {
24
25
  binaryType: BinaryType
25
-
26
+
26
27
  readonly bufferedAmount: number
27
28
  readonly extensions: string
28
29
 
@@ -148,3 +149,36 @@ interface WebSocketInit {
148
149
  dispatcher?: Dispatcher,
149
150
  headers?: HeadersInit
150
151
  }
152
+
153
+ interface WebSocketStreamOptions {
154
+ protocols?: string | string[]
155
+ signal?: AbortSignal
156
+ }
157
+
158
+ interface WebSocketCloseInfo {
159
+ closeCode: number
160
+ reason: string
161
+ }
162
+
163
+ interface WebSocketStream {
164
+ closed: Promise<WebSocketCloseInfo>
165
+ opened: Promise<{
166
+ extensions: string
167
+ protocol: string
168
+ readable: ReadableStream
169
+ writable: WritableStream
170
+ }>
171
+ url: string
172
+ }
173
+
174
+ export declare const WebSocketStream: {
175
+ prototype: WebSocketStream
176
+ new (url: string | URL, options?: WebSocketStreamOptions): WebSocketStream
177
+ }
178
+
179
+ interface WebSocketError extends Event, WebSocketCloseInfo {}
180
+
181
+ export declare const WebSocketError: {
182
+ prototype: WebSocketError
183
+ new (type: string, init?: WebSocketCloseInfo): WebSocketError
184
+ }
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 05 Jun 2025 18:56:28 GMT
11
+ * Last updated: Tue, 10 Jun 2025 02:18:06 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The `node:assert` module provides a set of assertion functions for verifying
3
3
  * invariants.
4
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/assert.js)
4
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/assert.js)
5
5
  */
6
6
  declare module "assert" {
7
7
  /**
@@ -796,7 +796,7 @@ declare module "assert" {
796
796
  * check that the promise is rejected.
797
797
  *
798
798
  * If `asyncFn` is a function and it throws an error synchronously, `assert.rejects()` will return a rejected `Promise` with that error. If the
799
- * function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v22.x/api/errors.html#err_invalid_return_value)
799
+ * function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v24.x/api/errors.html#err_invalid_return_value)
800
800
  * error. In both cases the error handler is skipped.
801
801
  *
802
802
  * Besides the async nature to await the completion behaves identically to {@link throws}.
@@ -866,7 +866,7 @@ declare module "assert" {
866
866
  *
867
867
  * If `asyncFn` is a function and it throws an error synchronously, `assert.doesNotReject()` will return a rejected `Promise` with that error. If
868
868
  * the function does not return a promise, `assert.doesNotReject()` will return a
869
- * rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v22.x/api/errors.html#err_invalid_return_value) error. In both cases
869
+ * rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v24.x/api/errors.html#err_invalid_return_value) error. In both cases
870
870
  * the error handler is skipped.
871
871
  *
872
872
  * Using `assert.doesNotReject()` is actually not useful because there is little
@@ -929,7 +929,7 @@ declare module "assert" {
929
929
  * If the values do not match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
930
930
  * to the value of the `message` parameter. If the `message` parameter is
931
931
  * undefined, a default error message is assigned. If the `message` parameter is an
932
- * instance of an [Error](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
932
+ * instance of an [Error](https://nodejs.org/docs/latest-v24.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
933
933
  * @since v13.6.0, v12.16.0
934
934
  */
935
935
  function match(value: string, regExp: RegExp, message?: string | Error): void;
@@ -952,7 +952,7 @@ declare module "assert" {
952
952
  * If the values do match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
953
953
  * to the value of the `message` parameter. If the `message` parameter is
954
954
  * undefined, a default error message is assigned. If the `message` parameter is an
955
- * instance of an [Error](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
955
+ * instance of an [Error](https://nodejs.org/docs/latest-v24.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
956
956
  * @since v13.6.0, v12.16.0
957
957
  */
958
958
  function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
@@ -2,8 +2,8 @@
2
2
  * We strongly discourage the use of the `async_hooks` API.
3
3
  * Other APIs that can cover most of its use cases include:
4
4
  *
5
- * * [`AsyncLocalStorage`](https://nodejs.org/docs/latest-v22.x/api/async_context.html#class-asynclocalstorage) tracks async context
6
- * * [`process.getActiveResourcesInfo()`](https://nodejs.org/docs/latest-v22.x/api/process.html#processgetactiveresourcesinfo) tracks active resources
5
+ * * [`AsyncLocalStorage`](https://nodejs.org/docs/latest-v24.x/api/async_context.html#class-asynclocalstorage) tracks async context
6
+ * * [`process.getActiveResourcesInfo()`](https://nodejs.org/docs/latest-v24.x/api/process.html#processgetactiveresourcesinfo) tracks active resources
7
7
  *
8
8
  * The `node:async_hooks` module provides an API to track asynchronous resources.
9
9
  * It can be accessed using:
@@ -12,7 +12,7 @@
12
12
  * import async_hooks from 'node:async_hooks';
13
13
  * ```
14
14
  * @experimental
15
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/async_hooks.js)
15
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/async_hooks.js)
16
16
  */
17
17
  declare module "async_hooks" {
18
18
  /**
@@ -44,7 +44,7 @@ declare module "async_hooks" {
44
44
  * ```
45
45
  *
46
46
  * Promise contexts may not get precise `executionAsyncIds` by default.
47
- * See the section on [promise execution tracking](https://nodejs.org/docs/latest-v22.x/api/async_hooks.html#promise-execution-tracking).
47
+ * See the section on [promise execution tracking](https://nodejs.org/docs/latest-v24.x/api/async_hooks.html#promise-execution-tracking).
48
48
  * @since v8.1.0
49
49
  * @return The `asyncId` of the current execution context. Useful to track when something calls.
50
50
  */
@@ -117,7 +117,7 @@ declare module "async_hooks" {
117
117
  * ```
118
118
  *
119
119
  * Promise contexts may not get valid `triggerAsyncId`s by default. See
120
- * the section on [promise execution tracking](https://nodejs.org/docs/latest-v22.x/api/async_hooks.html#promise-execution-tracking).
120
+ * the section on [promise execution tracking](https://nodejs.org/docs/latest-v24.x/api/async_hooks.html#promise-execution-tracking).
121
121
  * @return The ID of the resource responsible for calling the callback that is currently being executed.
122
122
  */
123
123
  function triggerAsyncId(): number;
@@ -320,6 +320,16 @@ declare module "async_hooks" {
320
320
  */
321
321
  triggerAsyncId(): number;
322
322
  }
323
+ interface AsyncLocalStorageOptions {
324
+ /**
325
+ * The default value to be used when no store is provided.
326
+ */
327
+ defaultValue?: any;
328
+ /**
329
+ * A name for the `AsyncLocalStorage` value.
330
+ */
331
+ name?: string | undefined;
332
+ }
323
333
  /**
324
334
  * This class creates stores that stay coherent through asynchronous operations.
325
335
  *
@@ -358,8 +368,8 @@ declare module "async_hooks" {
358
368
  * http.get('http://localhost:8080');
359
369
  * // Prints:
360
370
  * // 0: start
361
- * // 1: start
362
371
  * // 0: finish
372
+ * // 1: start
363
373
  * // 1: finish
364
374
  * ```
365
375
  *
@@ -369,6 +379,11 @@ declare module "async_hooks" {
369
379
  * @since v13.10.0, v12.17.0
370
380
  */
371
381
  class AsyncLocalStorage<T> {
382
+ /**
383
+ * Creates a new instance of `AsyncLocalStorage`. Store is only provided within a
384
+ * `run()` call or after an `enterWith()` call.
385
+ */
386
+ constructor(options?: AsyncLocalStorageOptions);
372
387
  /**
373
388
  * Binds the given function to the current execution context.
374
389
  * @since v19.8.0
@@ -430,6 +445,11 @@ declare module "async_hooks" {
430
445
  * @since v13.10.0, v12.17.0
431
446
  */
432
447
  getStore(): T | undefined;
448
+ /**
449
+ * The name of the `AsyncLocalStorage` instance if provided.
450
+ * @since v24.0.0
451
+ */
452
+ readonly name: string;
433
453
  /**
434
454
  * Runs a function synchronously within a context and returns its
435
455
  * return value. The store is not accessible outside of the callback function.
@@ -46,7 +46,7 @@ type _File = typeof globalThis extends { onmessage: any; File: any } ? {} : impo
46
46
  * // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74].
47
47
  * const buf7 = Buffer.from('tést', 'latin1');
48
48
  * ```
49
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/buffer.js)
49
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/buffer.js)
50
50
  */
51
51
  declare module "buffer" {
52
52
  import { BinaryLike } from "node:crypto";
@@ -118,7 +118,6 @@ declare module "buffer" {
118
118
  * Resolves a `'blob:nodedata:...'` an associated `Blob` object registered using
119
119
  * a prior call to `URL.createObjectURL()`.
120
120
  * @since v16.7.0
121
- * @experimental
122
121
  * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`.
123
122
  */
124
123
  export function resolveObjectURL(id: string): Blob | undefined;
@@ -63,7 +63,7 @@
63
63
  * For certain use cases, such as automating shell scripts, the `synchronous counterparts` may be more convenient. In many cases, however,
64
64
  * the synchronous methods can have significant impact on performance due to
65
65
  * stalling the event loop while spawned processes complete.
66
- * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/child_process.js)
66
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/child_process.js)
67
67
  */
68
68
  declare module "child_process" {
69
69
  import { ObjectEncodingOptions } from "node:fs";
@@ -458,7 +458,7 @@ declare module "child_process" {
458
458
  * as the connection may have been closed during the time it takes to send the
459
459
  * connection to the child.
460
460
  * @since v0.5.9
461
- * @param sendHandle `undefined`, or a [`net.Socket`](https://nodejs.org/docs/latest-v22.x/api/net.html#class-netsocket), [`net.Server`](https://nodejs.org/docs/latest-v22.x/api/net.html#class-netserver), or [`dgram.Socket`](https://nodejs.org/docs/latest-v22.x/api/dgram.html#class-dgramsocket) object.
461
+ * @param sendHandle `undefined`, or a [`net.Socket`](https://nodejs.org/docs/latest-v24.x/api/net.html#class-netsocket), [`net.Server`](https://nodejs.org/docs/latest-v24.x/api/net.html#class-netserver), or [`dgram.Socket`](https://nodejs.org/docs/latest-v24.x/api/dgram.html#class-dgramsocket) object.
462
462
  * @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. `options` supports the following properties:
463
463
  */
464
464
  send(message: Serializable, callback?: (error: Error | null) => void): boolean;