cloudstructs 0.9.18 → 0.9.20

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 (432) hide show
  1. package/.jsii +3 -3
  2. package/assets/slack-textract/detect.lambda/index.js +27 -11
  3. package/lib/codecommit-mirror/index.js +2 -2
  4. package/lib/dmarc/index.js +1 -1
  5. package/lib/ecs-service-roller/index.js +2 -2
  6. package/lib/email-receiver/receiver.js +1 -1
  7. package/lib/mjml-template/index.js +1 -1
  8. package/lib/saml-identity-provider/index.js +2 -2
  9. package/lib/slack-app/manifest.js +1 -1
  10. package/lib/slack-app/slack-app.js +2 -2
  11. package/lib/slack-events/index.js +1 -1
  12. package/lib/slack-textract/index.js +1 -1
  13. package/lib/ssl-server-test/index.js +1 -1
  14. package/lib/state-machine-cr-provider/index.js +1 -1
  15. package/lib/static-website/index.js +1 -1
  16. package/lib/toolkit-cleaner/index.js +1 -1
  17. package/lib/url-shortener/index.js +1 -1
  18. package/node_modules/@babel/runtime/helpers/esm/superPropGet.js +4 -4
  19. package/node_modules/@babel/runtime/helpers/esm/superPropSet.js +2 -2
  20. package/node_modules/@babel/runtime/helpers/superPropGet.js +4 -4
  21. package/node_modules/@babel/runtime/helpers/superPropSet.js +2 -2
  22. package/node_modules/@babel/runtime/package.json +1 -1
  23. package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
  24. package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +3 -3
  25. package/node_modules/@slack/logger/node_modules/@types/node/async_hooks.d.ts +1 -1
  26. package/node_modules/@slack/logger/node_modules/@types/node/buffer.buffer.d.ts +385 -0
  27. package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +14 -381
  28. package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +34 -29
  29. package/node_modules/@slack/logger/node_modules/@types/node/cluster.d.ts +2 -1
  30. package/node_modules/@slack/logger/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  31. package/node_modules/@slack/logger/node_modules/@types/node/compatibility/index.d.ts +9 -0
  32. package/node_modules/@slack/logger/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
  33. package/node_modules/@slack/logger/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  34. package/node_modules/@slack/logger/node_modules/@types/node/console.d.ts +2 -2
  35. package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +13 -12
  36. package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  37. package/node_modules/@slack/logger/node_modules/@types/node/dns/promises.d.ts +5 -5
  38. package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +5 -5
  39. package/node_modules/@slack/logger/node_modules/@types/node/domain.d.ts +2 -2
  40. package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +3 -3
  41. package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +17 -6
  42. package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +3 -3
  43. package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +34 -63
  44. package/node_modules/@slack/logger/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  45. package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +44 -7
  46. package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +238 -101
  47. package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +17 -23
  48. package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +11 -9
  49. package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +270 -0
  50. package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +94 -3
  51. package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +17 -15
  52. package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +1 -1
  53. package/node_modules/@slack/logger/node_modules/@types/node/package.json +11 -3
  54. package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +1 -1
  55. package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +43 -19
  56. package/node_modules/@slack/logger/node_modules/@types/node/punycode.d.ts +1 -1
  57. package/node_modules/@slack/logger/node_modules/@types/node/querystring.d.ts +1 -1
  58. package/node_modules/@slack/logger/node_modules/@types/node/readline/promises.d.ts +1 -1
  59. package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +10 -10
  60. package/node_modules/@slack/logger/node_modules/@types/node/repl.d.ts +4 -4
  61. package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +1 -1
  62. package/node_modules/@slack/logger/node_modules/@types/node/stream/promises.d.ts +8 -1
  63. package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +22 -19
  64. package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +36 -17
  65. package/node_modules/@slack/logger/node_modules/@types/node/string_decoder.d.ts +3 -3
  66. package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +103 -8
  67. package/node_modules/@slack/logger/node_modules/@types/node/timers/promises.d.ts +5 -5
  68. package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +1 -1
  69. package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +5 -5
  70. package/node_modules/@slack/logger/node_modules/@types/node/trace_events.d.ts +4 -4
  71. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
  72. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  73. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/index.d.ts +92 -0
  74. package/node_modules/@slack/logger/node_modules/@types/node/tty.d.ts +1 -1
  75. package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +14 -11
  76. package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +59 -54
  77. package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +12 -12
  78. package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +88 -34
  79. package/node_modules/@slack/logger/node_modules/@types/node/wasi.d.ts +1 -1
  80. package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +23 -23
  81. package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +8 -8
  82. package/node_modules/@slack/web-api/dist/WebClient.d.ts +36 -4
  83. package/node_modules/@slack/web-api/dist/WebClient.d.ts.map +1 -1
  84. package/node_modules/@slack/web-api/dist/WebClient.js +23 -10
  85. package/node_modules/@slack/web-api/dist/WebClient.js.map +1 -1
  86. package/node_modules/@slack/web-api/dist/file-upload.d.ts +1 -0
  87. package/node_modules/@slack/web-api/dist/file-upload.d.ts.map +1 -1
  88. package/node_modules/@slack/web-api/dist/methods.d.ts +7 -2
  89. package/node_modules/@slack/web-api/dist/methods.d.ts.map +1 -1
  90. package/node_modules/@slack/web-api/dist/methods.js +5 -0
  91. package/node_modules/@slack/web-api/dist/methods.js.map +1 -1
  92. package/node_modules/@slack/web-api/dist/types/request/conversations.d.ts +15 -3
  93. package/node_modules/@slack/web-api/dist/types/request/conversations.d.ts.map +1 -1
  94. package/node_modules/@slack/web-api/dist/types/request/files.d.ts +1 -0
  95. package/node_modules/@slack/web-api/dist/types/request/files.d.ts.map +1 -1
  96. package/node_modules/@slack/web-api/dist/types/request/index.d.ts +1 -1
  97. package/node_modules/@slack/web-api/dist/types/request/index.d.ts.map +1 -1
  98. package/node_modules/@slack/web-api/dist/types/request/users.d.ts +1 -0
  99. package/node_modules/@slack/web-api/dist/types/request/users.d.ts.map +1 -1
  100. package/node_modules/@slack/web-api/dist/types/response/AdminAppsActivitiesListResponse.d.ts +1 -0
  101. package/node_modules/@slack/web-api/dist/types/response/AdminAppsActivitiesListResponse.d.ts.map +1 -1
  102. package/node_modules/@slack/web-api/dist/types/response/AdminFunctionsListResponse.d.ts +2 -0
  103. package/node_modules/@slack/web-api/dist/types/response/AdminFunctionsListResponse.d.ts.map +1 -1
  104. package/node_modules/@slack/web-api/dist/types/response/AdminUsersListResponse.d.ts +1 -0
  105. package/node_modules/@slack/web-api/dist/types/response/AdminUsersListResponse.d.ts.map +1 -1
  106. package/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.d.ts +77 -0
  107. package/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.d.ts.map +1 -0
  108. package/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.js +11 -0
  109. package/node_modules/@slack/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.js.map +1 -0
  110. package/node_modules/@slack/web-api/dist/types/response/index.d.ts +1 -0
  111. package/node_modules/@slack/web-api/dist/types/response/index.d.ts.map +1 -1
  112. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  113. package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +3 -3
  114. package/node_modules/@slack/web-api/node_modules/@types/node/async_hooks.d.ts +1 -1
  115. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.buffer.d.ts +385 -0
  116. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +14 -381
  117. package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +34 -29
  118. package/node_modules/@slack/web-api/node_modules/@types/node/cluster.d.ts +2 -1
  119. package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  120. package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/index.d.ts +9 -0
  121. package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
  122. package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  123. package/node_modules/@slack/web-api/node_modules/@types/node/console.d.ts +2 -2
  124. package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +13 -12
  125. package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  126. package/node_modules/@slack/web-api/node_modules/@types/node/dns/promises.d.ts +5 -5
  127. package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +5 -5
  128. package/node_modules/@slack/web-api/node_modules/@types/node/domain.d.ts +2 -2
  129. package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +3 -3
  130. package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +17 -6
  131. package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +3 -3
  132. package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +34 -63
  133. package/node_modules/@slack/web-api/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  134. package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +44 -7
  135. package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +238 -101
  136. package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +17 -23
  137. package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +11 -9
  138. package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +270 -0
  139. package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +94 -3
  140. package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +17 -15
  141. package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +1 -1
  142. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +11 -3
  143. package/node_modules/@slack/web-api/node_modules/@types/node/path.d.ts +1 -1
  144. package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +43 -19
  145. package/node_modules/@slack/web-api/node_modules/@types/node/punycode.d.ts +1 -1
  146. package/node_modules/@slack/web-api/node_modules/@types/node/querystring.d.ts +1 -1
  147. package/node_modules/@slack/web-api/node_modules/@types/node/readline/promises.d.ts +1 -1
  148. package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +10 -10
  149. package/node_modules/@slack/web-api/node_modules/@types/node/repl.d.ts +4 -4
  150. package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +1 -1
  151. package/node_modules/@slack/web-api/node_modules/@types/node/stream/promises.d.ts +8 -1
  152. package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +22 -19
  153. package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +36 -17
  154. package/node_modules/@slack/web-api/node_modules/@types/node/string_decoder.d.ts +3 -3
  155. package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +103 -8
  156. package/node_modules/@slack/web-api/node_modules/@types/node/timers/promises.d.ts +5 -5
  157. package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +1 -1
  158. package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +5 -5
  159. package/node_modules/@slack/web-api/node_modules/@types/node/trace_events.d.ts +4 -4
  160. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
  161. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  162. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/index.d.ts +92 -0
  163. package/node_modules/@slack/web-api/node_modules/@types/node/tty.d.ts +1 -1
  164. package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +14 -11
  165. package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +59 -54
  166. package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +12 -12
  167. package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +88 -34
  168. package/node_modules/@slack/web-api/node_modules/@types/node/wasi.d.ts +1 -1
  169. package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +23 -23
  170. package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +8 -8
  171. package/node_modules/@slack/web-api/package.json +1 -1
  172. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  173. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +3 -3
  174. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +1 -1
  175. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +385 -0
  176. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +14 -381
  177. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +34 -29
  178. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +2 -1
  179. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  180. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/index.d.ts +9 -0
  181. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
  182. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  183. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +2 -2
  184. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +13 -12
  185. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  186. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +5 -5
  187. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +5 -5
  188. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +2 -2
  189. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +3 -3
  190. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +17 -6
  191. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +3 -3
  192. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +34 -63
  193. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  194. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +44 -7
  195. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +238 -101
  196. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +17 -23
  197. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +11 -9
  198. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +270 -0
  199. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +94 -3
  200. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +17 -15
  201. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +1 -1
  202. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +11 -3
  203. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +1 -1
  204. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +43 -19
  205. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +1 -1
  206. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +1 -1
  207. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +1 -1
  208. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +10 -10
  209. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +4 -4
  210. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +1 -1
  211. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/promises.d.ts +8 -1
  212. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +22 -19
  213. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +36 -17
  214. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +3 -3
  215. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +103 -8
  216. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +5 -5
  217. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +1 -1
  218. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +5 -5
  219. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +4 -4
  220. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
  221. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  222. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/index.d.ts +92 -0
  223. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +1 -1
  224. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +14 -11
  225. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +59 -54
  226. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +12 -12
  227. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +88 -34
  228. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +1 -1
  229. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +23 -23
  230. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +8 -8
  231. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  232. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +3 -3
  233. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +1 -1
  234. package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +385 -0
  235. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +14 -381
  236. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +34 -29
  237. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +2 -1
  238. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  239. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/index.d.ts +9 -0
  240. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
  241. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  242. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +2 -2
  243. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +13 -12
  244. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  245. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +5 -5
  246. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +5 -5
  247. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +2 -2
  248. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +3 -3
  249. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +17 -6
  250. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +3 -3
  251. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +34 -63
  252. package/node_modules/@types/keyv/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  253. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +44 -7
  254. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +238 -101
  255. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +17 -23
  256. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +11 -9
  257. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +270 -0
  258. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +94 -3
  259. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +17 -15
  260. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +1 -1
  261. package/node_modules/@types/keyv/node_modules/@types/node/package.json +11 -3
  262. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +1 -1
  263. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +43 -19
  264. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +1 -1
  265. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +1 -1
  266. package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +1 -1
  267. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +10 -10
  268. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +4 -4
  269. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +1 -1
  270. package/node_modules/@types/keyv/node_modules/@types/node/stream/promises.d.ts +8 -1
  271. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +22 -19
  272. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +36 -17
  273. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +3 -3
  274. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +103 -8
  275. package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +5 -5
  276. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +1 -1
  277. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +5 -5
  278. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +4 -4
  279. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
  280. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  281. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/index.d.ts +92 -0
  282. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +1 -1
  283. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +14 -11
  284. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +59 -54
  285. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +12 -12
  286. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +88 -34
  287. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +1 -1
  288. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +23 -23
  289. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +8 -8
  290. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  291. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +3 -3
  292. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +1 -1
  293. package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +385 -0
  294. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +14 -381
  295. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +34 -29
  296. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +2 -1
  297. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  298. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/index.d.ts +9 -0
  299. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
  300. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  301. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +2 -2
  302. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +13 -12
  303. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +4 -4
  304. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +5 -5
  305. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +5 -5
  306. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +2 -2
  307. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +3 -3
  308. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +17 -6
  309. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +3 -3
  310. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +34 -63
  311. package/node_modules/@types/responselike/node_modules/@types/node/globals.typedarray.d.ts +21 -0
  312. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +44 -7
  313. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +238 -101
  314. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +17 -23
  315. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +11 -9
  316. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +270 -0
  317. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +94 -3
  318. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +17 -15
  319. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +1 -1
  320. package/node_modules/@types/responselike/node_modules/@types/node/package.json +11 -3
  321. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
  322. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +43 -19
  323. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
  324. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +1 -1
  325. package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +1 -1
  326. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +10 -10
  327. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +4 -4
  328. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +1 -1
  329. package/node_modules/@types/responselike/node_modules/@types/node/stream/promises.d.ts +8 -1
  330. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +22 -19
  331. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +36 -17
  332. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +3 -3
  333. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +103 -8
  334. package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +5 -5
  335. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +1 -1
  336. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +5 -5
  337. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +4 -4
  338. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
  339. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
  340. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/index.d.ts +92 -0
  341. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +1 -1
  342. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +14 -11
  343. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +59 -54
  344. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +12 -12
  345. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +88 -34
  346. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +1 -1
  347. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +23 -23
  348. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +8 -8
  349. package/node_modules/form-data/Readme.md +4 -4
  350. package/node_modules/form-data/lib/form_data.js +1 -1
  351. package/node_modules/form-data/package.json +9 -6
  352. package/node_modules/package-json-from-dist/README.md +21 -6
  353. package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +1 -1
  354. package/node_modules/package-json-from-dist/dist/commonjs/index.js +11 -1
  355. package/node_modules/package-json-from-dist/dist/commonjs/index.js.map +1 -1
  356. package/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +1 -1
  357. package/node_modules/package-json-from-dist/dist/esm/index.js +11 -1
  358. package/node_modules/package-json-from-dist/dist/esm/index.js.map +1 -1
  359. package/node_modules/package-json-from-dist/package.json +2 -2
  360. package/node_modules/parse5/dist/cjs/common/doctype.d.ts +0 -1
  361. package/node_modules/parse5/dist/cjs/common/doctype.js +2 -4
  362. package/node_modules/parse5/dist/cjs/common/error-codes.d.ts +0 -1
  363. package/node_modules/parse5/dist/cjs/common/error-codes.js +1 -2
  364. package/node_modules/parse5/dist/cjs/common/foreign-content.d.ts +0 -1
  365. package/node_modules/parse5/dist/cjs/common/foreign-content.js +7 -9
  366. package/node_modules/parse5/dist/cjs/common/html.d.ts +32 -31
  367. package/node_modules/parse5/dist/cjs/common/html.js +41 -42
  368. package/node_modules/parse5/dist/cjs/common/token.d.ts +0 -1
  369. package/node_modules/parse5/dist/cjs/common/token.js +3 -4
  370. package/node_modules/parse5/dist/cjs/common/unicode.d.ts +1 -8
  371. package/node_modules/parse5/dist/cjs/common/unicode.js +7 -14
  372. package/node_modules/parse5/dist/cjs/index.d.ts +15 -4
  373. package/node_modules/parse5/dist/cjs/index.js +3 -6
  374. package/node_modules/parse5/dist/cjs/parser/formatting-element-list.d.ts +0 -1
  375. package/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +1 -2
  376. package/node_modules/parse5/dist/cjs/parser/index.d.ts +72 -8
  377. package/node_modules/parse5/dist/cjs/parser/index.js +81 -9
  378. package/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +2 -2
  379. package/node_modules/parse5/dist/cjs/parser/open-element-stack.js +95 -87
  380. package/node_modules/parse5/dist/cjs/serializer/index.d.ts +1 -2
  381. package/node_modules/parse5/dist/cjs/serializer/index.js +8 -9
  382. package/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +130 -131
  383. package/node_modules/parse5/dist/cjs/tokenizer/index.js +87 -281
  384. package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.d.ts +3 -4
  385. package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +8 -7
  386. package/node_modules/parse5/dist/cjs/tree-adapters/default.d.ts +0 -1
  387. package/node_modules/parse5/dist/cjs/tree-adapters/default.js +9 -10
  388. package/node_modules/parse5/dist/cjs/tree-adapters/interface.d.ts +7 -2
  389. package/node_modules/parse5/dist/cjs/tree-adapters/interface.js +0 -1
  390. package/node_modules/parse5/dist/common/doctype.d.ts +0 -1
  391. package/node_modules/parse5/dist/common/doctype.js +0 -1
  392. package/node_modules/parse5/dist/common/error-codes.d.ts +0 -1
  393. package/node_modules/parse5/dist/common/error-codes.js +1 -2
  394. package/node_modules/parse5/dist/common/foreign-content.d.ts +0 -1
  395. package/node_modules/parse5/dist/common/foreign-content.js +0 -2
  396. package/node_modules/parse5/dist/common/html.d.ts +32 -31
  397. package/node_modules/parse5/dist/common/html.js +38 -38
  398. package/node_modules/parse5/dist/common/token.d.ts +0 -1
  399. package/node_modules/parse5/dist/common/token.js +1 -2
  400. package/node_modules/parse5/dist/common/unicode.d.ts +1 -8
  401. package/node_modules/parse5/dist/common/unicode.js +1 -8
  402. package/node_modules/parse5/dist/index.d.ts +15 -4
  403. package/node_modules/parse5/dist/index.js +0 -3
  404. package/node_modules/parse5/dist/parser/formatting-element-list.d.ts +0 -1
  405. package/node_modules/parse5/dist/parser/formatting-element-list.js +1 -2
  406. package/node_modules/parse5/dist/parser/index.d.ts +72 -8
  407. package/node_modules/parse5/dist/parser/index.js +82 -10
  408. package/node_modules/parse5/dist/parser/open-element-stack.d.ts +2 -2
  409. package/node_modules/parse5/dist/parser/open-element-stack.js +96 -88
  410. package/node_modules/parse5/dist/serializer/index.d.ts +1 -2
  411. package/node_modules/parse5/dist/serializer/index.js +6 -6
  412. package/node_modules/parse5/dist/tokenizer/index.d.ts +130 -131
  413. package/node_modules/parse5/dist/tokenizer/index.js +88 -282
  414. package/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +3 -4
  415. package/node_modules/parse5/dist/tokenizer/preprocessor.js +8 -7
  416. package/node_modules/parse5/dist/tree-adapters/default.d.ts +0 -1
  417. package/node_modules/parse5/dist/tree-adapters/default.js +9 -10
  418. package/node_modules/parse5/dist/tree-adapters/interface.d.ts +7 -2
  419. package/node_modules/parse5/dist/tree-adapters/interface.js +0 -1
  420. package/node_modules/parse5/package.json +4 -4
  421. package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.d.ts +1 -2
  422. package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.js +11 -12
  423. package/node_modules/parse5-htmlparser2-tree-adapter/dist/index.d.ts +1 -2
  424. package/node_modules/parse5-htmlparser2-tree-adapter/dist/index.js +9 -10
  425. package/node_modules/parse5-htmlparser2-tree-adapter/package.json +7 -6
  426. package/package.json +18 -18
  427. package/node_modules/@slack/logger/node_modules/@types/node/globals.global.d.ts +0 -1
  428. package/node_modules/@slack/web-api/node_modules/@types/node/globals.global.d.ts +0 -1
  429. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.global.d.ts +0 -1
  430. package/node_modules/@types/keyv/node_modules/@types/node/globals.global.d.ts +0 -1
  431. package/node_modules/@types/responselike/node_modules/@types/node/globals.global.d.ts +0 -1
  432. package/node_modules/form-data/README.md.bak +0 -358
@@ -4,7 +4,7 @@
4
4
  * is primarily provided by the {@link spawn} function:
5
5
  *
6
6
  * ```js
7
- * const { spawn } = require('node:child_process');
7
+ * import { spawn } from 'node:child_process';
8
8
  * const ls = spawn('ls', ['-lh', '/usr']);
9
9
  *
10
10
  * ls.stdout.on('data', (data) => {
@@ -109,7 +109,7 @@ declare module "child_process" {
109
109
  * refer to the same value.
110
110
  *
111
111
  * ```js
112
- * const { spawn } = require('node:child_process');
112
+ * import { spawn } from 'node:child_process';
113
113
  *
114
114
  * const subprocess = spawn('ls');
115
115
  *
@@ -152,9 +152,9 @@ declare module "child_process" {
152
152
  * in the array are `null`.
153
153
  *
154
154
  * ```js
155
- * const assert = require('node:assert');
156
- * const fs = require('node:fs');
157
- * const child_process = require('node:child_process');
155
+ * import assert from 'node:assert';
156
+ * import fs from 'node:fs';
157
+ * import child_process from 'node:child_process';
158
158
  *
159
159
  * const subprocess = child_process.spawn('ls', {
160
160
  * stdio: [
@@ -202,7 +202,7 @@ declare module "child_process" {
202
202
  * emitted.
203
203
  *
204
204
  * ```js
205
- * const { spawn } = require('node:child_process');
205
+ * import { spawn } from 'node:child_process';
206
206
  * const grep = spawn('grep', ['ssh']);
207
207
  *
208
208
  * console.log(`Spawned child pid: ${grep.pid}`);
@@ -249,7 +249,7 @@ declare module "child_process" {
249
249
  * returns `true` if [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) succeeds, and `false` otherwise.
250
250
  *
251
251
  * ```js
252
- * const { spawn } = require('node:child_process');
252
+ * import { spawn } from 'node:child_process';
253
253
  * const grep = spawn('grep', ['ssh']);
254
254
  *
255
255
  * grep.on('close', (code, signal) => {
@@ -282,7 +282,7 @@ declare module "child_process" {
282
282
  *
283
283
  * ```js
284
284
  * 'use strict';
285
- * const { spawn } = require('node:child_process');
285
+ * import { spawn } from 'node:child_process';
286
286
  *
287
287
  * const subprocess = spawn(
288
288
  * 'sh',
@@ -320,7 +320,7 @@ declare module "child_process" {
320
320
  * For example, in the parent script:
321
321
  *
322
322
  * ```js
323
- * const cp = require('node:child_process');
323
+ * import cp from 'node:child_process';
324
324
  * const n = cp.fork(`${__dirname}/sub.js`);
325
325
  *
326
326
  * n.on('message', (m) => {
@@ -374,10 +374,12 @@ declare module "child_process" {
374
374
  * a TCP server object to the child process as illustrated in the example below:
375
375
  *
376
376
  * ```js
377
- * const subprocess = require('node:child_process').fork('subprocess.js');
377
+ * import { createServer } from 'node:net';
378
+ * import { fork } from 'node:child_process';
379
+ * const subprocess = fork('subprocess.js');
378
380
  *
379
381
  * // Open up the server object and send the handle.
380
- * const server = require('node:net').createServer();
382
+ * const server = createServer();
381
383
  * server.on('connection', (socket) => {
382
384
  * socket.end('handled by parent');
383
385
  * });
@@ -412,13 +414,14 @@ declare module "child_process" {
412
414
  * handle connections with "normal" or "special" priority:
413
415
  *
414
416
  * ```js
415
- * const { fork } = require('node:child_process');
417
+ * import { createServer } from 'node:net';
418
+ * import { fork } from 'node:child_process';
416
419
  * const normal = fork('subprocess.js', ['normal']);
417
420
  * const special = fork('subprocess.js', ['special']);
418
421
  *
419
422
  * // Open up the server and send sockets to child. Use pauseOnConnect to prevent
420
423
  * // the sockets from being read before they are sent to the child process.
421
- * const server = require('node:net').createServer({ pauseOnConnect: true });
424
+ * const server = createServer({ pauseOnConnect: true });
422
425
  * server.on('connection', (socket) => {
423
426
  *
424
427
  * // If this is special priority...
@@ -490,7 +493,7 @@ declare module "child_process" {
490
493
  * the child and the parent.
491
494
  *
492
495
  * ```js
493
- * const { spawn } = require('node:child_process');
496
+ * import { spawn } from 'node:child_process';
494
497
  *
495
498
  * const subprocess = spawn(process.argv[0], ['child_program.js'], {
496
499
  * detached: true,
@@ -508,7 +511,7 @@ declare module "child_process" {
508
511
  * to wait for the child to exit before exiting itself.
509
512
  *
510
513
  * ```js
511
- * const { spawn } = require('node:child_process');
514
+ * import { spawn } from 'node:child_process';
512
515
  *
513
516
  * const subprocess = spawn(process.argv[0], ['child_program.js'], {
514
517
  * detached: true,
@@ -711,7 +714,7 @@ declare module "child_process" {
711
714
  * exit code:
712
715
  *
713
716
  * ```js
714
- * const { spawn } = require('node:child_process');
717
+ * import { spawn } from 'node:child_process';
715
718
  * const ls = spawn('ls', ['-lh', '/usr']);
716
719
  *
717
720
  * ls.stdout.on('data', (data) => {
@@ -730,7 +733,7 @@ declare module "child_process" {
730
733
  * Example: A very elaborate way to run `ps ax | grep ssh`
731
734
  *
732
735
  * ```js
733
- * const { spawn } = require('node:child_process');
736
+ * import { spawn } from 'node:child_process';
734
737
  * const ps = spawn('ps', ['ax']);
735
738
  * const grep = spawn('grep', ['ssh']);
736
739
  *
@@ -767,7 +770,7 @@ declare module "child_process" {
767
770
  * Example of checking for failed `spawn`:
768
771
  *
769
772
  * ```js
770
- * const { spawn } = require('node:child_process');
773
+ * import { spawn } from 'node:child_process';
771
774
  * const subprocess = spawn('bad_command');
772
775
  *
773
776
  * subprocess.on('error', (err) => {
@@ -785,7 +788,7 @@ declare module "child_process" {
785
788
  * the error passed to the callback will be an `AbortError`:
786
789
  *
787
790
  * ```js
788
- * const { spawn } = require('node:child_process');
791
+ * import { spawn } from 'node:child_process';
789
792
  * const controller = new AbortController();
790
793
  * const { signal } = controller;
791
794
  * const grep = spawn('grep', ['ssh'], { signal });
@@ -906,7 +909,7 @@ declare module "child_process" {
906
909
  * need to be dealt with accordingly:
907
910
  *
908
911
  * ```js
909
- * const { exec } = require('node:child_process');
912
+ * import { exec } from 'node:child_process';
910
913
  *
911
914
  * exec('"/path/to/test file/test.sh" arg1 arg2');
912
915
  * // Double quotes are used so that the space in the path is not interpreted as
@@ -932,7 +935,7 @@ declare module "child_process" {
932
935
  * encoding, `Buffer` objects will be passed to the callback instead.
933
936
  *
934
937
  * ```js
935
- * const { exec } = require('node:child_process');
938
+ * import { exec } from 'node:child_process';
936
939
  * exec('cat *.js missing_file | wc -l', (error, stdout, stderr) => {
937
940
  * if (error) {
938
941
  * console.error(`exec error: ${error}`);
@@ -957,8 +960,9 @@ declare module "child_process" {
957
960
  * callback, but with two additional properties `stdout` and `stderr`.
958
961
  *
959
962
  * ```js
960
- * const util = require('node:util');
961
- * const exec = util.promisify(require('node:child_process').exec);
963
+ * import util from 'node:util';
964
+ * import child_process from 'node:child_process';
965
+ * const exec = util.promisify(child_process.exec);
962
966
  *
963
967
  * async function lsExample() {
964
968
  * const { stdout, stderr } = await exec('ls');
@@ -972,7 +976,7 @@ declare module "child_process" {
972
976
  * the error passed to the callback will be an `AbortError`:
973
977
  *
974
978
  * ```js
975
- * const { exec } = require('node:child_process');
979
+ * import { exec } from 'node:child_process';
976
980
  * const controller = new AbortController();
977
981
  * const { signal } = controller;
978
982
  * const child = exec('grep ssh', { signal }, (error) => {
@@ -1096,7 +1100,7 @@ declare module "child_process" {
1096
1100
  * supported.
1097
1101
  *
1098
1102
  * ```js
1099
- * const { execFile } = require('node:child_process');
1103
+ * import { execFile } from 'node:child_process';
1100
1104
  * const child = execFile('node', ['--version'], (error, stdout, stderr) => {
1101
1105
  * if (error) {
1102
1106
  * throw error;
@@ -1119,8 +1123,9 @@ declare module "child_process" {
1119
1123
  * callback, but with two additional properties `stdout` and `stderr`.
1120
1124
  *
1121
1125
  * ```js
1122
- * const util = require('node:util');
1123
- * const execFile = util.promisify(require('node:child_process').execFile);
1126
+ * import util from 'node:util';
1127
+ * import child_process from 'node:child_process';
1128
+ * const execFile = util.promisify(child_process.execFile);
1124
1129
  * async function getVersion() {
1125
1130
  * const { stdout } = await execFile('node', ['--version']);
1126
1131
  * console.log(stdout);
@@ -1136,7 +1141,7 @@ declare module "child_process" {
1136
1141
  * the error passed to the callback will be an `AbortError`:
1137
1142
  *
1138
1143
  * ```js
1139
- * const { execFile } = require('node:child_process');
1144
+ * import { execFile } from 'node:child_process';
1140
1145
  * const controller = new AbortController();
1141
1146
  * const { signal } = controller;
1142
1147
  * const child = execFile('node', ['--version'], { signal }, (error) => {
@@ -1377,7 +1382,7 @@ declare module "child_process" {
1377
1382
  * console.log(`Hello from ${process.argv[2]}!`);
1378
1383
  * }, 1_000);
1379
1384
  * } else {
1380
- * const { fork } = require('node:child_process');
1385
+ * import { fork } from 'node:child_process';
1381
1386
  * const controller = new AbortController();
1382
1387
  * const { signal } = controller;
1383
1388
  * const child = fork(__filename, ['child'], { signal });
@@ -231,6 +231,8 @@ declare module "cluster" {
231
231
  * the `'disconnect'` event has not been emitted after some time.
232
232
  *
233
233
  * ```js
234
+ * import net from 'node:net';
235
+ *
234
236
  * if (cluster.isPrimary) {
235
237
  * const worker = cluster.fork();
236
238
  * let timeout;
@@ -248,7 +250,6 @@ declare module "cluster" {
248
250
  * });
249
251
  *
250
252
  * } else if (cluster.isWorker) {
251
- * const net = require('node:net');
252
253
  * const server = net.createServer((socket) => {
253
254
  * // Connections never end
254
255
  * });
@@ -0,0 +1,16 @@
1
+ // Polyfills for the explicit resource management types added in TypeScript 5.2.
2
+ // TODO: remove once this package no longer supports TS 5.1, and replace with a
3
+ // <reference> to TypeScript's disposable library in index.d.ts.
4
+
5
+ interface SymbolConstructor {
6
+ readonly dispose: unique symbol;
7
+ readonly asyncDispose: unique symbol;
8
+ }
9
+
10
+ interface Disposable {
11
+ [Symbol.dispose](): void;
12
+ }
13
+
14
+ interface AsyncDisposable {
15
+ [Symbol.asyncDispose](): PromiseLike<void>;
16
+ }
@@ -0,0 +1,9 @@
1
+ // Declaration files in this directory contain types relating to TypeScript library features
2
+ // that are not included in all TypeScript versions supported by DefinitelyTyped, but
3
+ // which can be made backwards-compatible without needing `typesVersions`.
4
+ // If adding declarations to this directory, please specify which versions of TypeScript require them,
5
+ // so that they can be removed when no longer needed.
6
+
7
+ /// <reference path="disposable.d.ts" />
8
+ /// <reference path="indexable.d.ts" />
9
+ /// <reference path="iterators.d.ts" />
@@ -0,0 +1,23 @@
1
+ // Polyfill for ES2022's .at() method on string/array prototypes, added to TypeScript in 4.6.
2
+ // TODO: these methods are not used within @types/node, and should be removed at the next
3
+ // major @types/node version; users should include the es2022 TypeScript libraries
4
+ // if they need these features.
5
+
6
+ interface RelativeIndexable<T> {
7
+ at(index: number): T | undefined;
8
+ }
9
+
10
+ interface String extends RelativeIndexable<string> {}
11
+ interface Array<T> extends RelativeIndexable<T> {}
12
+ interface ReadonlyArray<T> extends RelativeIndexable<T> {}
13
+ interface Int8Array extends RelativeIndexable<number> {}
14
+ interface Uint8Array extends RelativeIndexable<number> {}
15
+ interface Uint8ClampedArray extends RelativeIndexable<number> {}
16
+ interface Int16Array extends RelativeIndexable<number> {}
17
+ interface Uint16Array extends RelativeIndexable<number> {}
18
+ interface Int32Array extends RelativeIndexable<number> {}
19
+ interface Uint32Array extends RelativeIndexable<number> {}
20
+ interface Float32Array extends RelativeIndexable<number> {}
21
+ interface Float64Array extends RelativeIndexable<number> {}
22
+ interface BigInt64Array extends RelativeIndexable<bigint> {}
23
+ interface BigUint64Array extends RelativeIndexable<bigint> {}
@@ -0,0 +1,21 @@
1
+ // Backwards-compatible iterator interfaces, augmented with iterator helper methods by lib.esnext.iterator in TypeScript 5.6.
2
+ // The IterableIterator interface does not contain these methods, which creates assignability issues in places where IteratorObjects
3
+ // are expected (eg. DOM-compatible APIs) if lib.esnext.iterator is loaded.
4
+ // Also ensures that iterators returned by the Node API, which inherit from Iterator.prototype, correctly expose the iterator helper methods
5
+ // if lib.esnext.iterator is loaded.
6
+ // TODO: remove once this package no longer supports TS 5.5, and replace NodeJS.BuiltinIteratorReturn with BuiltinIteratorReturn.
7
+
8
+ // Placeholders for TS <5.6
9
+ interface IteratorObject<T, TReturn, TNext> {}
10
+ interface AsyncIteratorObject<T, TReturn, TNext> {}
11
+
12
+ declare namespace NodeJS {
13
+ // Populate iterator methods for TS <5.6
14
+ interface Iterator<T, TReturn, TNext> extends globalThis.Iterator<T, TReturn, TNext> {}
15
+ interface AsyncIterator<T, TReturn, TNext> extends globalThis.AsyncIterator<T, TReturn, TNext> {}
16
+
17
+ // Polyfill for TS 5.6's instrinsic BuiltinIteratorReturn type, required for DOM-compatible iterators
18
+ type BuiltinIteratorReturn = ReturnType<any[][typeof Symbol.iterator]> extends
19
+ globalThis.Iterator<any, infer TReturn> ? TReturn
20
+ : any;
21
+ }
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * * A `Console` class with methods such as `console.log()`, `console.error()`, and `console.warn()` that can be used to write to any Node.js stream.
8
8
  * * A global `console` instance configured to write to [`process.stdout`](https://nodejs.org/docs/latest-v22.x/api/process.html#processstdout) and
9
- * [`process.stderr`](https://nodejs.org/docs/latest-v22.x/api/process.html#processstderr). The global `console` can be used without calling `require('node:console')`.
9
+ * [`process.stderr`](https://nodejs.org/docs/latest-v22.x/api/process.html#processstderr). The global `console` can be used without importing the `node:console` module.
10
10
  *
11
11
  * _**Warning**_: The global console object's methods are neither consistently
12
12
  * synchronous like the browser APIs they resemble, nor are they consistently
@@ -362,7 +362,7 @@ declare module "node:console" {
362
362
  *
363
363
  * * A `Console` class with methods such as `console.log()`, `console.error()` and `console.warn()` that can be used to write to any Node.js stream.
364
364
  * * A global `console` instance configured to write to [`process.stdout`](https://nodejs.org/docs/latest-v22.x/api/process.html#processstdout) and
365
- * [`process.stderr`](https://nodejs.org/docs/latest-v22.x/api/process.html#processstderr). The global `console` can be used without calling `require('console')`.
365
+ * [`process.stderr`](https://nodejs.org/docs/latest-v22.x/api/process.html#processstderr). The global `console` can be used without importing the `node:console` module.
366
366
  *
367
367
  * _**Warning**_: The global console object's methods are neither consistently
368
368
  * synchronous like the browser APIs they resemble, nor are they consistently
@@ -609,11 +609,6 @@ declare module "crypto" {
609
609
  * @since v11.6.0
610
610
  */
611
611
  asymmetricKeyType?: KeyType | undefined;
612
- /**
613
- * For asymmetric keys, this property represents the size of the embedded key in
614
- * bytes. This property is `undefined` for symmetric keys.
615
- */
616
- asymmetricKeySize?: number | undefined;
617
612
  /**
618
613
  * This property exists only on asymmetric keys. Depending on the type of the key,
619
614
  * this object contains information about the key. None of the information obtained
@@ -2139,7 +2134,10 @@ declare module "crypto" {
2139
2134
  * be passed instead of a public key.
2140
2135
  * @since v0.11.14
2141
2136
  */
2142
- function publicEncrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2137
+ function publicEncrypt(
2138
+ key: RsaPublicKey | RsaPrivateKey | KeyLike,
2139
+ buffer: NodeJS.ArrayBufferView | string,
2140
+ ): Buffer;
2143
2141
  /**
2144
2142
  * Decrypts `buffer` with `key`.`buffer` was previously encrypted using
2145
2143
  * the corresponding private key, for example using {@link privateEncrypt}.
@@ -2151,7 +2149,10 @@ declare module "crypto" {
2151
2149
  * be passed instead of a public key.
2152
2150
  * @since v1.1.0
2153
2151
  */
2154
- function publicDecrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2152
+ function publicDecrypt(
2153
+ key: RsaPublicKey | RsaPrivateKey | KeyLike,
2154
+ buffer: NodeJS.ArrayBufferView | string,
2155
+ ): Buffer;
2155
2156
  /**
2156
2157
  * Decrypts `buffer` with `privateKey`. `buffer` was previously encrypted using
2157
2158
  * the corresponding public key, for example using {@link publicEncrypt}.
@@ -2160,7 +2161,7 @@ declare module "crypto" {
2160
2161
  * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_OAEP_PADDING`.
2161
2162
  * @since v0.11.14
2162
2163
  */
2163
- function privateDecrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2164
+ function privateDecrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView | string): Buffer;
2164
2165
  /**
2165
2166
  * Encrypts `buffer` with `privateKey`. The returned data can be decrypted using
2166
2167
  * the corresponding public key, for example using {@link publicDecrypt}.
@@ -2169,7 +2170,7 @@ declare module "crypto" {
2169
2170
  * object, the `padding` property can be passed. Otherwise, this function uses `RSA_PKCS1_PADDING`.
2170
2171
  * @since v1.1.0
2171
2172
  */
2172
- function privateEncrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer;
2173
+ function privateEncrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView | string): Buffer;
2173
2174
  /**
2174
2175
  * ```js
2175
2176
  * const {
@@ -3316,8 +3317,8 @@ declare module "crypto" {
3316
3317
  * Example:
3317
3318
  *
3318
3319
  * ```js
3319
- * const crypto = require('node:crypto');
3320
- * const { Buffer } = require('node:buffer');
3320
+ * import crypto from 'node:crypto';
3321
+ * import { Buffer } from 'node:buffer';
3321
3322
  *
3322
3323
  * // Hashing a string and return the result as a hex-encoded string.
3323
3324
  * const string = 'Node.js';
@@ -4034,7 +4035,7 @@ declare module "crypto" {
4034
4035
  saltLength: number;
4035
4036
  }
4036
4037
  /**
4037
- * Calling `require('node:crypto').webcrypto` returns an instance of the `Crypto` class.
4038
+ * Importing the `webcrypto` object (`import { webcrypto } from 'node:crypto'`) gives an instance of the `Crypto` class.
4038
4039
  * `Crypto` is a singleton that provides access to the remainder of the crypto API.
4039
4040
  * @since v15.0.0
4040
4041
  */
@@ -540,11 +540,11 @@ declare module "diagnostics_channel" {
540
540
  * @param args Optional arguments to pass to the function
541
541
  * @return The return value of the given function
542
542
  */
543
- traceCallback<Fn extends (this: any, ...args: any) => any>(
543
+ traceCallback<Fn extends (this: any, ...args: any[]) => any>(
544
544
  fn: Fn,
545
- position: number | undefined,
546
- context: ContextType | undefined,
547
- thisArg: any,
545
+ position?: number,
546
+ context?: ContextType,
547
+ thisArg?: any,
548
548
  ...args: Parameters<Fn>
549
549
  ): void;
550
550
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The `dns.promises` API provides an alternative set of asynchronous DNS methods
3
3
  * that return `Promise` objects rather than using callbacks. The API is accessible
4
- * via `require('node:dns').promises` or `require('node:dns/promises')`.
4
+ * via `import { promises as dnsPromises } from 'node:dns'` or `import dnsPromises from 'node:dns/promises'`.
5
5
  * @since v10.6.0
6
6
  */
7
7
  declare module "dns/promises" {
@@ -60,7 +60,7 @@ declare module "dns/promises" {
60
60
  * Example usage:
61
61
  *
62
62
  * ```js
63
- * const dns = require('node:dns');
63
+ * import dns from 'node:dns';
64
64
  * const dnsPromises = dns.promises;
65
65
  * const options = {
66
66
  * family: 6,
@@ -96,7 +96,7 @@ declare module "dns/promises" {
96
96
  * On error, the `Promise` is rejected with an [`Error`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is the error code.
97
97
  *
98
98
  * ```js
99
- * const dnsPromises = require('node:dns').promises;
99
+ * import dnsPromises from 'node:dns';
100
100
  * dnsPromises.lookupService('127.0.0.1', 22).then((result) => {
101
101
  * console.log(result.hostname, result.service);
102
102
  * // Prints: localhost ssh
@@ -394,8 +394,8 @@ declare module "dns/promises" {
394
394
  * other resolvers:
395
395
  *
396
396
  * ```js
397
- * const { Resolver } = require('node:dns').promises;
398
- * const resolver = new Resolver();
397
+ * import { promises } from 'node:dns';
398
+ * const resolver = new promises.Resolver();
399
399
  * resolver.setServers(['4.4.4.4']);
400
400
  *
401
401
  * // This request will use the server at 4.4.4.4, independent of global settings.
@@ -9,7 +9,7 @@
9
9
  * system do, use {@link lookup}.
10
10
  *
11
11
  * ```js
12
- * const dns = require('node:dns');
12
+ * import dns from 'node:dns';
13
13
  *
14
14
  * dns.lookup('example.org', (err, address, family) => {
15
15
  * console.log('address: %j family: IPv%s', address, family);
@@ -23,7 +23,7 @@
23
23
  * DNS queries, bypassing other name-resolution facilities.
24
24
  *
25
25
  * ```js
26
- * const dns = require('node:dns');
26
+ * import dns from 'node:dns';
27
27
  *
28
28
  * dns.resolve4('archive.org', (err, addresses) => {
29
29
  * if (err) throw err;
@@ -139,7 +139,7 @@ declare module "dns" {
139
139
  * Example usage:
140
140
  *
141
141
  * ```js
142
- * const dns = require('node:dns');
142
+ * import dns from 'node:dns';
143
143
  * const options = {
144
144
  * family: 6,
145
145
  * hints: dns.ADDRCONFIG | dns.V4MAPPED,
@@ -199,7 +199,7 @@ declare module "dns" {
199
199
  * where `err.code` is the error code.
200
200
  *
201
201
  * ```js
202
- * const dns = require('node:dns');
202
+ * import dns from 'node:dns';
203
203
  * dns.lookupService('127.0.0.1', 22, (err, hostname, service) => {
204
204
  * console.log(hostname, service);
205
205
  * // Prints: localhost ssh
@@ -787,7 +787,7 @@ declare module "dns" {
787
787
  * other resolvers:
788
788
  *
789
789
  * ```js
790
- * const { Resolver } = require('node:dns');
790
+ * import { Resolver } from 'node:dns';
791
791
  * const resolver = new Resolver();
792
792
  * resolver.setServers(['4.4.4.4']);
793
793
  *
@@ -63,8 +63,8 @@ declare module "domain" {
63
63
  * This is the most basic way to use a domain.
64
64
  *
65
65
  * ```js
66
- * const domain = require('node:domain');
67
- * const fs = require('node:fs');
66
+ * import domain from 'node:domain';
67
+ * import fs from 'node:fs';
68
68
  * const d = domain.create();
69
69
  * d.on('error', (er) => {
70
70
  * console.error('Caught error!', er);
@@ -304,12 +304,12 @@ declare module "events" {
304
304
  emitter: NodeJS.EventEmitter,
305
305
  eventName: string | symbol,
306
306
  options?: StaticEventEmitterIteratorOptions,
307
- ): AsyncIterableIterator<any[]>;
307
+ ): NodeJS.AsyncIterator<any[]>;
308
308
  static on(
309
309
  emitter: EventTarget,
310
310
  eventName: string,
311
311
  options?: StaticEventEmitterIteratorOptions,
312
- ): AsyncIterableIterator<any[]>;
312
+ ): NodeJS.AsyncIterator<any[]>;
313
313
  /**
314
314
  * A class method that returns the number of listeners for the given `eventName` registered on the given `emitter`.
315
315
  *
@@ -396,7 +396,7 @@ declare module "events" {
396
396
  * ```
397
397
  * @since v15.4.0
398
398
  * @param n A non-negative number. The maximum number of listeners per `EventTarget` event.
399
- * @param eventsTargets Zero or more {EventTarget} or {EventEmitter} instances. If none are specified, `n` is set as the default max for all newly created {EventTarget} and {EventEmitter}
399
+ * @param eventTargets Zero or more {EventTarget} or {EventEmitter} instances. If none are specified, `n` is set as the default max for all newly created {EventTarget} and {EventEmitter}
400
400
  * objects.
401
401
  */
402
402
  static setMaxListeners(n?: number, ...eventTargets: Array<EventTarget | NodeJS.EventEmitter>): void;
@@ -238,6 +238,10 @@ declare module "fs/promises" {
238
238
  length?: number | null,
239
239
  position?: number | null,
240
240
  ): Promise<FileReadResult<T>>;
241
+ read<T extends NodeJS.ArrayBufferView = Buffer>(
242
+ buffer: T,
243
+ options?: FileReadOptions<T>,
244
+ ): Promise<FileReadResult<T>>;
241
245
  read<T extends NodeJS.ArrayBufferView = Buffer>(options?: FileReadOptions<T>): Promise<FileReadResult<T>>;
242
246
  /**
243
247
  * Returns a `ReadableStream` that may be used to read the files data.
@@ -429,6 +433,13 @@ declare module "fs/promises" {
429
433
  bytesWritten: number;
430
434
  buffer: TBuffer;
431
435
  }>;
436
+ write<TBuffer extends Uint8Array>(
437
+ buffer: TBuffer,
438
+ options?: { offset?: number; length?: number; position?: number },
439
+ ): Promise<{
440
+ bytesWritten: number;
441
+ buffer: TBuffer;
442
+ }>;
432
443
  write(
433
444
  data: string,
434
445
  position?: number | null,
@@ -932,7 +943,7 @@ declare module "fs/promises" {
932
943
  * The `fsPromises.mkdtemp()` method will append the six randomly selected
933
944
  * characters directly to the `prefix` string. For instance, given a directory `/tmp`, if the intention is to create a temporary directory _within_ `/tmp`, the `prefix` must end with a trailing
934
945
  * platform-specific path separator
935
- * (`require('node:path').sep`).
946
+ * (`import { sep } from 'node:path'`).
936
947
  * @since v10.0.0
937
948
  * @return Fulfills with a string containing the file system path of the newly created temporary directory.
938
949
  */
@@ -1174,7 +1185,7 @@ declare module "fs/promises" {
1174
1185
  * Returns an async iterator that watches for changes on `filename`, where `filename`is either a file or a directory.
1175
1186
  *
1176
1187
  * ```js
1177
- * const { watch } = require('node:fs/promises');
1188
+ * import { watch } from 'node:fs/promises';
1178
1189
  *
1179
1190
  * const ac = new AbortController();
1180
1191
  * const { signal } = ac;
@@ -1245,19 +1256,19 @@ declare module "fs/promises" {
1245
1256
  /**
1246
1257
  * Retrieves the files matching the specified pattern.
1247
1258
  */
1248
- function glob(pattern: string | string[]): AsyncIterableIterator<string>;
1259
+ function glob(pattern: string | string[]): NodeJS.AsyncIterator<string>;
1249
1260
  function glob(
1250
1261
  pattern: string | string[],
1251
1262
  opt: GlobOptionsWithFileTypes,
1252
- ): AsyncIterableIterator<Dirent>;
1263
+ ): NodeJS.AsyncIterator<Dirent>;
1253
1264
  function glob(
1254
1265
  pattern: string | string[],
1255
1266
  opt: GlobOptionsWithoutFileTypes,
1256
- ): AsyncIterableIterator<string>;
1267
+ ): NodeJS.AsyncIterator<string>;
1257
1268
  function glob(
1258
1269
  pattern: string | string[],
1259
1270
  opt: GlobOptions,
1260
- ): AsyncIterableIterator<Dirent> | AsyncIterableIterator<string>;
1271
+ ): NodeJS.AsyncIterator<Dirent | string>;
1261
1272
  }
1262
1273
  declare module "node:fs/promises" {
1263
1274
  export * from "fs/promises";
@@ -284,7 +284,7 @@ declare module "fs" {
284
284
  /**
285
285
  * Asynchronously iterates over the directory via `readdir(3)` until all entries have been read.
286
286
  */
287
- [Symbol.asyncIterator](): AsyncIterableIterator<Dirent>;
287
+ [Symbol.asyncIterator](): NodeJS.AsyncIterator<Dirent>;
288
288
  /**
289
289
  * Asynchronously close the directory's underlying resource handle.
290
290
  * Subsequent reads will result in errors.
@@ -1900,7 +1900,7 @@ declare module "fs" {
1900
1900
  * The `fs.mkdtemp()` method will append the six randomly selected characters
1901
1901
  * directly to the `prefix` string. For instance, given a directory `/tmp`, if the
1902
1902
  * intention is to create a temporary directory _within_`/tmp`, the `prefix`must end with a trailing platform-specific path separator
1903
- * (`require('node:path').sep`).
1903
+ * (`import { sep } from 'node:path'`).
1904
1904
  *
1905
1905
  * ```js
1906
1906
  * import { tmpdir } from 'node:os';
@@ -3156,7 +3156,7 @@ declare module "fs" {
3156
3156
  * stat object:
3157
3157
  *
3158
3158
  * ```js
3159
- * import { watchFile } from 'fs';
3159
+ * import { watchFile } from 'node:fs';
3160
3160
  *
3161
3161
  * watchFile('message.text', (curr, prev) => {
3162
3162
  * console.log(`the current mtime is: ${curr.mtime}`);