cloudstructs 0.9.19 → 0.9.21

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 (252) hide show
  1. package/.jsii +4 -4
  2. package/assets/slack-textract/detect.lambda/index.js +21 -10
  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 +2 -2
  25. package/node_modules/@slack/logger/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  26. package/node_modules/@slack/logger/node_modules/@types/node/compatibility/index.d.ts +9 -0
  27. package/node_modules/@slack/logger/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
  28. package/node_modules/@slack/logger/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  29. package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +10 -9
  30. package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +2 -2
  31. package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +15 -4
  32. package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +1 -1
  33. package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +17 -48
  34. package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +37 -0
  35. package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +8 -10
  36. package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +91 -0
  37. package/node_modules/@slack/logger/node_modules/@types/node/package.json +4 -3
  38. package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +24 -0
  39. package/node_modules/@slack/logger/node_modules/@types/node/readline/promises.d.ts +14 -2
  40. package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +58 -9
  41. package/node_modules/@slack/logger/node_modules/@types/node/stream/promises.d.ts +8 -1
  42. package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +5 -2
  43. package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +2 -2
  44. package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +36 -5
  45. package/node_modules/@slack/logger/node_modules/@types/node/timers/promises.d.ts +1 -1
  46. package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +6 -0
  47. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/index.d.ts +8 -10
  48. package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +7 -4
  49. package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +80 -10
  50. package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +81 -27
  51. package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +1 -1
  52. package/node_modules/@slack/web-api/dist/WebClient.d.ts +36 -4
  53. package/node_modules/@slack/web-api/dist/WebClient.d.ts.map +1 -1
  54. package/node_modules/@slack/web-api/dist/WebClient.js +23 -10
  55. package/node_modules/@slack/web-api/dist/WebClient.js.map +1 -1
  56. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  57. package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +2 -2
  58. package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  59. package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/index.d.ts +9 -0
  60. package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
  61. package/node_modules/@slack/web-api/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  62. package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +10 -9
  63. package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +2 -2
  64. package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +15 -4
  65. package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +1 -1
  66. package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +17 -48
  67. package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +37 -0
  68. package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +8 -10
  69. package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +91 -0
  70. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +4 -3
  71. package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +24 -0
  72. package/node_modules/@slack/web-api/node_modules/@types/node/readline/promises.d.ts +14 -2
  73. package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +58 -9
  74. package/node_modules/@slack/web-api/node_modules/@types/node/stream/promises.d.ts +8 -1
  75. package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +5 -2
  76. package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +2 -2
  77. package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +36 -5
  78. package/node_modules/@slack/web-api/node_modules/@types/node/timers/promises.d.ts +1 -1
  79. package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +6 -0
  80. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/index.d.ts +8 -10
  81. package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +7 -4
  82. package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +80 -10
  83. package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +81 -27
  84. package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +1 -1
  85. package/node_modules/@slack/web-api/package.json +1 -1
  86. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  87. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +2 -2
  88. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  89. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/index.d.ts +9 -0
  90. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
  91. package/node_modules/@types/cacheable-request/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  92. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +10 -9
  93. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +2 -2
  94. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +15 -4
  95. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +1 -1
  96. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +17 -48
  97. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +37 -0
  98. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +8 -10
  99. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +91 -0
  100. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +4 -3
  101. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +24 -0
  102. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +14 -2
  103. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +58 -9
  104. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/promises.d.ts +8 -1
  105. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +5 -2
  106. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +2 -2
  107. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +36 -5
  108. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +1 -1
  109. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +6 -0
  110. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/index.d.ts +8 -10
  111. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +7 -4
  112. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +80 -10
  113. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +81 -27
  114. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +1 -1
  115. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  116. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +2 -2
  117. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  118. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/index.d.ts +9 -0
  119. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
  120. package/node_modules/@types/keyv/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  121. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +10 -9
  122. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +2 -2
  123. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +15 -4
  124. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +1 -1
  125. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +17 -48
  126. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +37 -0
  127. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +8 -10
  128. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +91 -0
  129. package/node_modules/@types/keyv/node_modules/@types/node/package.json +4 -3
  130. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +24 -0
  131. package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +14 -2
  132. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +58 -9
  133. package/node_modules/@types/keyv/node_modules/@types/node/stream/promises.d.ts +8 -1
  134. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +5 -2
  135. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +2 -2
  136. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +36 -5
  137. package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +1 -1
  138. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +6 -0
  139. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/index.d.ts +8 -10
  140. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +7 -4
  141. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +80 -10
  142. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +81 -27
  143. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +1 -1
  144. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  145. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +2 -2
  146. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
  147. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/index.d.ts +9 -0
  148. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/indexable.d.ts +23 -0
  149. package/node_modules/@types/responselike/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  150. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +10 -9
  151. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +2 -2
  152. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +15 -4
  153. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +1 -1
  154. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +17 -48
  155. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +37 -0
  156. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +8 -10
  157. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +91 -0
  158. package/node_modules/@types/responselike/node_modules/@types/node/package.json +4 -3
  159. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +24 -0
  160. package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +14 -2
  161. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +58 -9
  162. package/node_modules/@types/responselike/node_modules/@types/node/stream/promises.d.ts +8 -1
  163. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +5 -2
  164. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +2 -2
  165. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +36 -5
  166. package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +1 -1
  167. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +6 -0
  168. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/index.d.ts +8 -10
  169. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +7 -4
  170. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +80 -10
  171. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +81 -27
  172. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +1 -1
  173. package/node_modules/cross-spawn/README.md +3 -10
  174. package/node_modules/cross-spawn/lib/enoent.js +1 -1
  175. package/node_modules/cross-spawn/lib/util/escape.js +4 -2
  176. package/node_modules/cross-spawn/package.json +1 -1
  177. package/node_modules/form-data/Readme.md +4 -4
  178. package/node_modules/form-data/lib/form_data.js +1 -1
  179. package/node_modules/form-data/package.json +9 -6
  180. package/node_modules/parse5/dist/cjs/common/doctype.d.ts +0 -1
  181. package/node_modules/parse5/dist/cjs/common/doctype.js +2 -4
  182. package/node_modules/parse5/dist/cjs/common/error-codes.d.ts +0 -1
  183. package/node_modules/parse5/dist/cjs/common/error-codes.js +1 -2
  184. package/node_modules/parse5/dist/cjs/common/foreign-content.d.ts +0 -1
  185. package/node_modules/parse5/dist/cjs/common/foreign-content.js +7 -9
  186. package/node_modules/parse5/dist/cjs/common/html.d.ts +32 -31
  187. package/node_modules/parse5/dist/cjs/common/html.js +41 -42
  188. package/node_modules/parse5/dist/cjs/common/token.d.ts +0 -1
  189. package/node_modules/parse5/dist/cjs/common/token.js +3 -4
  190. package/node_modules/parse5/dist/cjs/common/unicode.d.ts +1 -8
  191. package/node_modules/parse5/dist/cjs/common/unicode.js +7 -14
  192. package/node_modules/parse5/dist/cjs/index.d.ts +15 -4
  193. package/node_modules/parse5/dist/cjs/index.js +3 -6
  194. package/node_modules/parse5/dist/cjs/parser/formatting-element-list.d.ts +0 -1
  195. package/node_modules/parse5/dist/cjs/parser/formatting-element-list.js +1 -2
  196. package/node_modules/parse5/dist/cjs/parser/index.d.ts +72 -8
  197. package/node_modules/parse5/dist/cjs/parser/index.js +81 -9
  198. package/node_modules/parse5/dist/cjs/parser/open-element-stack.d.ts +2 -2
  199. package/node_modules/parse5/dist/cjs/parser/open-element-stack.js +95 -87
  200. package/node_modules/parse5/dist/cjs/serializer/index.d.ts +1 -2
  201. package/node_modules/parse5/dist/cjs/serializer/index.js +8 -9
  202. package/node_modules/parse5/dist/cjs/tokenizer/index.d.ts +130 -131
  203. package/node_modules/parse5/dist/cjs/tokenizer/index.js +87 -281
  204. package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.d.ts +3 -4
  205. package/node_modules/parse5/dist/cjs/tokenizer/preprocessor.js +8 -7
  206. package/node_modules/parse5/dist/cjs/tree-adapters/default.d.ts +0 -1
  207. package/node_modules/parse5/dist/cjs/tree-adapters/default.js +9 -10
  208. package/node_modules/parse5/dist/cjs/tree-adapters/interface.d.ts +7 -2
  209. package/node_modules/parse5/dist/cjs/tree-adapters/interface.js +0 -1
  210. package/node_modules/parse5/dist/common/doctype.d.ts +0 -1
  211. package/node_modules/parse5/dist/common/doctype.js +0 -1
  212. package/node_modules/parse5/dist/common/error-codes.d.ts +0 -1
  213. package/node_modules/parse5/dist/common/error-codes.js +1 -2
  214. package/node_modules/parse5/dist/common/foreign-content.d.ts +0 -1
  215. package/node_modules/parse5/dist/common/foreign-content.js +0 -2
  216. package/node_modules/parse5/dist/common/html.d.ts +32 -31
  217. package/node_modules/parse5/dist/common/html.js +38 -38
  218. package/node_modules/parse5/dist/common/token.d.ts +0 -1
  219. package/node_modules/parse5/dist/common/token.js +1 -2
  220. package/node_modules/parse5/dist/common/unicode.d.ts +1 -8
  221. package/node_modules/parse5/dist/common/unicode.js +1 -8
  222. package/node_modules/parse5/dist/index.d.ts +15 -4
  223. package/node_modules/parse5/dist/index.js +0 -3
  224. package/node_modules/parse5/dist/parser/formatting-element-list.d.ts +0 -1
  225. package/node_modules/parse5/dist/parser/formatting-element-list.js +1 -2
  226. package/node_modules/parse5/dist/parser/index.d.ts +72 -8
  227. package/node_modules/parse5/dist/parser/index.js +82 -10
  228. package/node_modules/parse5/dist/parser/open-element-stack.d.ts +2 -2
  229. package/node_modules/parse5/dist/parser/open-element-stack.js +96 -88
  230. package/node_modules/parse5/dist/serializer/index.d.ts +1 -2
  231. package/node_modules/parse5/dist/serializer/index.js +6 -6
  232. package/node_modules/parse5/dist/tokenizer/index.d.ts +130 -131
  233. package/node_modules/parse5/dist/tokenizer/index.js +88 -282
  234. package/node_modules/parse5/dist/tokenizer/preprocessor.d.ts +3 -4
  235. package/node_modules/parse5/dist/tokenizer/preprocessor.js +8 -7
  236. package/node_modules/parse5/dist/tree-adapters/default.d.ts +0 -1
  237. package/node_modules/parse5/dist/tree-adapters/default.js +9 -10
  238. package/node_modules/parse5/dist/tree-adapters/interface.d.ts +7 -2
  239. package/node_modules/parse5/dist/tree-adapters/interface.js +0 -1
  240. package/node_modules/parse5/package.json +4 -4
  241. package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.d.ts +1 -2
  242. package/node_modules/parse5-htmlparser2-tree-adapter/dist/cjs/index.js +11 -12
  243. package/node_modules/parse5-htmlparser2-tree-adapter/dist/index.d.ts +1 -2
  244. package/node_modules/parse5-htmlparser2-tree-adapter/dist/index.js +9 -10
  245. package/node_modules/parse5-htmlparser2-tree-adapter/package.json +7 -6
  246. package/package.json +21 -20
  247. package/node_modules/@slack/logger/node_modules/@types/node/globals.global.d.ts +0 -1
  248. package/node_modules/@slack/web-api/node_modules/@types/node/globals.global.d.ts +0 -1
  249. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.global.d.ts +0 -1
  250. package/node_modules/@types/keyv/node_modules/@types/node/globals.global.d.ts +0 -1
  251. package/node_modules/@types/responselike/node_modules/@types/node/globals.global.d.ts +0 -1
  252. package/node_modules/form-data/README.md.bak +0 -358
@@ -304,7 +304,7 @@ declare module "readline" {
304
304
  prependOnceListener(event: "SIGINT", listener: () => void): this;
305
305
  prependOnceListener(event: "SIGTSTP", listener: () => void): this;
306
306
  prependOnceListener(event: "history", listener: (history: string[]) => void): this;
307
- [Symbol.asyncIterator](): AsyncIterableIterator<string>;
307
+ [Symbol.asyncIterator](): NodeJS.AsyncIterator<string>;
308
308
  }
309
309
  export type ReadLine = Interface; // type forwarded for backwards compatibility
310
310
  export type Completer = (line: string) => CompleterResult;
@@ -314,29 +314,78 @@ declare module "readline" {
314
314
  ) => void;
315
315
  export type CompleterResult = [string[], string];
316
316
  export interface ReadLineOptions {
317
+ /**
318
+ * The [`Readable`](https://nodejs.org/docs/latest-v22.x/api/stream.html#readable-streams) stream to listen to
319
+ */
317
320
  input: NodeJS.ReadableStream;
321
+ /**
322
+ * The [`Writable`](https://nodejs.org/docs/latest-v22.x/api/stream.html#writable-streams) stream to write readline data to.
323
+ */
318
324
  output?: NodeJS.WritableStream | undefined;
325
+ /**
326
+ * An optional function used for Tab autocompletion.
327
+ */
319
328
  completer?: Completer | AsyncCompleter | undefined;
329
+ /**
330
+ * `true` if the `input` and `output` streams should be treated like a TTY,
331
+ * and have ANSI/VT100 escape codes written to it.
332
+ * Default: checking `isTTY` on the `output` stream upon instantiation.
333
+ */
320
334
  terminal?: boolean | undefined;
321
335
  /**
322
- * Initial list of history lines. This option makes sense
323
- * only if `terminal` is set to `true` by the user or by an internal `output`
324
- * check, otherwise the history caching mechanism is not initialized at all.
336
+ * Initial list of history lines.
337
+ * This option makes sense only if `terminal` is set to `true` by the user or by an internal `output` check,
338
+ * otherwise the history caching mechanism is not initialized at all.
325
339
  * @default []
326
340
  */
327
341
  history?: string[] | undefined;
342
+ /**
343
+ * Maximum number of history lines retained.
344
+ * To disable the history set this value to `0`.
345
+ * This option makes sense only if `terminal` is set to `true` by the user or by an internal `output` check,
346
+ * otherwise the history caching mechanism is not initialized at all.
347
+ * @default 30
348
+ */
328
349
  historySize?: number | undefined;
329
- prompt?: string | undefined;
330
- crlfDelay?: number | undefined;
331
350
  /**
332
- * If `true`, when a new input line added
333
- * to the history list duplicates an older one, this removes the older line
334
- * from the list.
351
+ * If `true`, when a new input line added to the history list duplicates an older one,
352
+ * this removes the older line from the list.
335
353
  * @default false
336
354
  */
337
355
  removeHistoryDuplicates?: boolean | undefined;
356
+ /**
357
+ * The prompt string to use.
358
+ * @default "> "
359
+ */
360
+ prompt?: string | undefined;
361
+ /**
362
+ * If the delay between `\r` and `\n` exceeds `crlfDelay` milliseconds,
363
+ * both `\r` and `\n` will be treated as separate end-of-line input.
364
+ * `crlfDelay` will be coerced to a number no less than `100`.
365
+ * It can be set to `Infinity`, in which case
366
+ * `\r` followed by `\n` will always be considered a single newline
367
+ * (which may be reasonable for [reading files](https://nodejs.org/docs/latest-v22.x/api/readline.html#example-read-file-stream-line-by-line) with `\r\n` line delimiter).
368
+ * @default 100
369
+ */
370
+ crlfDelay?: number | undefined;
371
+ /**
372
+ * The duration `readline` will wait for a character
373
+ * (when reading an ambiguous key sequence in milliseconds
374
+ * one that can both form a complete key sequence using the input read so far
375
+ * and can take additional input to complete a longer key sequence).
376
+ * @default 500
377
+ */
338
378
  escapeCodeTimeout?: number | undefined;
379
+ /**
380
+ * The number of spaces a tab is equal to (minimum 1).
381
+ * @default 8
382
+ */
339
383
  tabSize?: number | undefined;
384
+ /**
385
+ * Allows closing the interface using an AbortSignal.
386
+ * Aborting the signal will internally call `close` on the interface.
387
+ */
388
+ signal?: AbortSignal | undefined;
340
389
  }
341
390
  /**
342
391
  * The `readline.createInterface()` method creates a new `readline.Interface` instance.
@@ -1,12 +1,19 @@
1
1
  declare module "stream/promises" {
2
2
  import {
3
- FinishedOptions,
3
+ FinishedOptions as _FinishedOptions,
4
4
  PipelineDestination,
5
5
  PipelineOptions,
6
6
  PipelinePromise,
7
7
  PipelineSource,
8
8
  PipelineTransform,
9
9
  } from "node:stream";
10
+ interface FinishedOptions extends _FinishedOptions {
11
+ /**
12
+ * If true, removes the listeners registered by this function before the promise is fulfilled.
13
+ * @default false
14
+ */
15
+ cleanup?: boolean | undefined;
16
+ }
10
17
  function finished(
11
18
  stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream,
12
19
  options?: FinishedOptions,
@@ -166,6 +166,9 @@ declare module "stream/web" {
166
166
  interface ReadableStreamErrorCallback {
167
167
  (reason: any): void | PromiseLike<void>;
168
168
  }
169
+ interface ReadableStreamAsyncIterator<T> extends NodeJS.AsyncIterator<T, NodeJS.BuiltinIteratorReturn, unknown> {
170
+ [Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
171
+ }
169
172
  /** This Streams API interface represents a readable stream of byte data. */
170
173
  interface ReadableStream<R = any> {
171
174
  readonly locked: boolean;
@@ -176,8 +179,8 @@ declare module "stream/web" {
176
179
  pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
177
180
  pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
178
181
  tee(): [ReadableStream<R>, ReadableStream<R>];
179
- values(options?: { preventCancel?: boolean }): AsyncIterableIterator<R>;
180
- [Symbol.asyncIterator](): AsyncIterableIterator<R>;
182
+ values(options?: { preventCancel?: boolean }): ReadableStreamAsyncIterator<R>;
183
+ [Symbol.asyncIterator](): ReadableStreamAsyncIterator<R>;
181
184
  }
182
185
  const ReadableStream: {
183
186
  prototype: ReadableStream;
@@ -422,7 +422,7 @@ declare module "stream" {
422
422
  * or exiting a `for await...of` iteration using a `break`, `return`, or `throw` will not destroy the stream.
423
423
  * **Default: `true`**.
424
424
  */
425
- iterator(options?: { destroyOnReturn?: boolean }): AsyncIterableIterator<any>;
425
+ iterator(options?: { destroyOnReturn?: boolean }): NodeJS.AsyncIterator<any>;
426
426
  /**
427
427
  * This method allows mapping over the stream. The *fn* function will be called for every chunk in the stream.
428
428
  * If the *fn* function returns a promise - that promise will be `await`ed before being passed to the result stream.
@@ -651,7 +651,7 @@ declare module "stream" {
651
651
  removeListener(event: "readable", listener: () => void): this;
652
652
  removeListener(event: "resume", listener: () => void): this;
653
653
  removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
654
- [Symbol.asyncIterator](): AsyncIterableIterator<any>;
654
+ [Symbol.asyncIterator](): NodeJS.AsyncIterator<any>;
655
655
  /**
656
656
  * Calls `readable.destroy()` with an `AbortError` and returns a promise that fulfills when the stream is finished.
657
657
  * @since v20.4.0
@@ -340,11 +340,22 @@ declare module "node:test" {
340
340
  globPatterns?: readonly string[] | undefined;
341
341
  /**
342
342
  * Sets inspector port of test child process.
343
- * If a nullish value is provided, each process gets its own port,
344
- * incremented from the primary's `process.debugPort`.
343
+ * This can be a number, or a function that takes no arguments and returns a
344
+ * number. If a nullish value is provided, each process gets its own port,
345
+ * incremented from the primary's `process.debugPort`. This option is ignored
346
+ * if the `isolation` option is set to `'none'` as no child processes are
347
+ * spawned.
345
348
  * @default undefined
346
349
  */
347
350
  inspectPort?: number | (() => number) | undefined;
351
+ /**
352
+ * Configures the type of test isolation. If set to
353
+ * `'process'`, each test file is run in a separate child process. If set to
354
+ * `'none'`, all test files run in the current process.
355
+ * @default 'process'
356
+ * @since v22.8.0
357
+ */
358
+ isolation?: "process" | "none" | undefined;
348
359
  /**
349
360
  * If truthy, the test context will only run tests that have the `only` option set
350
361
  */
@@ -1635,9 +1646,10 @@ declare module "node:test" {
1635
1646
  * This function is used to set a custom resolver for the location of the snapshot file used for snapshot testing.
1636
1647
  * By default, the snapshot filename is the same as the entry point filename with `.snapshot` appended.
1637
1648
  * @since v22.3.0
1638
- * @param fn A function which returns a string specifying the location of the snapshot file.
1639
- * The function receives the path of the test file as its only argument.
1640
- * If `process.argv[1]` is not associated with a file (for example in the REPL), the input is undefined.
1649
+ * @param fn A function used to compute the location of the snapshot file.
1650
+ * The function receives the path of the test file as its only argument. If the
1651
+ * test is not associated with a file (for example in the REPL), the input is
1652
+ * undefined. `fn()` must return a string specifying the location of the snapshot file.
1641
1653
  */
1642
1654
  function setResolveSnapshotPath(fn: (path: string | undefined) => string): void;
1643
1655
  }
@@ -1784,6 +1796,25 @@ interface TestCoverage {
1784
1796
  count: number;
1785
1797
  }>;
1786
1798
  }>;
1799
+ /**
1800
+ * An object containing whether or not the coverage for
1801
+ * each coverage type.
1802
+ * @since v22.9.0
1803
+ */
1804
+ thresholds: {
1805
+ /**
1806
+ * The function coverage threshold.
1807
+ */
1808
+ function: number;
1809
+ /**
1810
+ * The branch coverage threshold.
1811
+ */
1812
+ branch: number;
1813
+ /**
1814
+ * The line coverage threshold.
1815
+ */
1816
+ line: number;
1817
+ };
1787
1818
  /**
1788
1819
  * An object containing a summary of coverage for all files.
1789
1820
  */
@@ -80,7 +80,7 @@ declare module "timers/promises" {
80
80
  * @experimental
81
81
  * @param [delay=1] The number of milliseconds to wait before fulfilling the promise.
82
82
  */
83
- wait: (delay?: number, options?: Pick<TimerOptions, "signal">) => Promise<void>;
83
+ wait: (delay?: number, options?: TimerOptions) => Promise<void>;
84
84
  /**
85
85
  * An experimental API defined by the [Scheduling APIs](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html#promise-execution-tracking) draft specification
86
86
  * being developed as a standard Web Platform API.
@@ -809,6 +809,12 @@ declare module "tls" {
809
809
  * This option cannot be used with the `ALPNProtocols` option, and setting both options will throw an error.
810
810
  */
811
811
  ALPNCallback?: ((arg: { servername: string; protocols: string[] }) => string | undefined) | undefined;
812
+ /**
813
+ * Treat intermediate (non-self-signed)
814
+ * certificates in the trust CA certificate list as trusted.
815
+ * @since v22.9.0, v20.18.0
816
+ */
817
+ allowPartialTrustChain?: boolean | undefined;
812
818
  /**
813
819
  * Optionally override the trusted CA certificates. Default is to trust
814
820
  * the well-known CAs curated by Mozilla. Mozilla's CAs are completely
@@ -22,22 +22,22 @@
22
22
  * IN THE SOFTWARE.
23
23
  */
24
24
 
25
- // NOTE: These definitions support NodeJS and TypeScript 4.9 through 5.6.
25
+ // NOTE: These definitions support Node.js and TypeScript 4.9 through 5.6.
26
26
 
27
- // Reference required types from the default lib:
27
+ // Reference required TypeScript libs:
28
28
  /// <reference lib="es2020" />
29
- /// <reference lib="esnext.asynciterable" />
30
- /// <reference lib="esnext.intl" />
31
- /// <reference lib="esnext.bigint" />
32
29
 
33
- // Definitions specific to TypeScript 4.9 through 5.6
30
+ // TypeScript backwards-compatibility definitions:
31
+ /// <reference path="../compatibility/index.d.ts" />
32
+
33
+ // Definitions specific to TypeScript 4.9 through 5.6:
34
34
  /// <reference path="./globals.typedarray.d.ts" />
35
35
  /// <reference path="./buffer.buffer.d.ts" />
36
36
 
37
- // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
37
+ // Definitions for Node.js modules that are not specific to any version of TypeScript:
38
+ /// <reference path="../globals.d.ts" />
38
39
  /// <reference path="../assert.d.ts" />
39
40
  /// <reference path="../assert/strict.d.ts" />
40
- /// <reference path="../globals.d.ts" />
41
41
  /// <reference path="../async_hooks.d.ts" />
42
42
  /// <reference path="../buffer.d.ts" />
43
43
  /// <reference path="../child_process.d.ts" />
@@ -90,5 +90,3 @@
90
90
  /// <reference path="../wasi.d.ts" />
91
91
  /// <reference path="../worker_threads.d.ts" />
92
92
  /// <reference path="../zlib.d.ts" />
93
-
94
- /// <reference path="../globals.global.d.ts" />
@@ -757,6 +757,9 @@ declare module "url" {
757
757
  */
758
758
  toJSON(): string;
759
759
  }
760
+ interface URLSearchParamsIterator<T> extends NodeJS.Iterator<T, NodeJS.BuiltinIteratorReturn, unknown> {
761
+ [Symbol.iterator](): URLSearchParamsIterator<T>;
762
+ }
760
763
  /**
761
764
  * The `URLSearchParams` API provides read and write access to the query of a `URL`. The `URLSearchParams` class can also be used standalone with one of the
762
765
  * four following constructors.
@@ -827,7 +830,7 @@ declare module "url" {
827
830
  *
828
831
  * Alias for `urlSearchParams[@@iterator]()`.
829
832
  */
830
- entries(): IterableIterator<[string, string]>;
833
+ entries(): URLSearchParamsIterator<[string, string]>;
831
834
  /**
832
835
  * Iterates over each name-value pair in the query and invokes the given function.
833
836
  *
@@ -881,7 +884,7 @@ declare module "url" {
881
884
  * // foo
882
885
  * ```
883
886
  */
884
- keys(): IterableIterator<string>;
887
+ keys(): URLSearchParamsIterator<string>;
885
888
  /**
886
889
  * Sets the value in the `URLSearchParams` object associated with `name` to `value`. If there are any pre-existing name-value pairs whose names are `name`,
887
890
  * set the first such pair's value to `value` and remove all others. If not,
@@ -931,8 +934,8 @@ declare module "url" {
931
934
  /**
932
935
  * Returns an ES6 `Iterator` over the values of each name-value pair.
933
936
  */
934
- values(): IterableIterator<string>;
935
- [Symbol.iterator](): IterableIterator<[string, string]>;
937
+ values(): URLSearchParamsIterator<string>;
938
+ [Symbol.iterator](): URLSearchParamsIterator<[string, string]>;
936
939
  }
937
940
  import { URL as _URL, URLSearchParams as _URLSearchParams } from "url";
938
941
  global {
@@ -108,6 +108,25 @@ declare module "util" {
108
108
  export interface InspectOptionsStylized extends InspectOptions {
109
109
  stylize(text: string, styleType: Style): string;
110
110
  }
111
+ export interface StacktraceObject {
112
+ /**
113
+ * Returns the name of the function associated with this stack frame.
114
+ */
115
+ functionName: string;
116
+ /**
117
+ * Returns the name of the resource that contains the script for the
118
+ * function for this StackFrame.
119
+ */
120
+ scriptName: string;
121
+ /**
122
+ * Returns the number, 1-based, of the line for the associate function call.
123
+ */
124
+ lineNumber: number;
125
+ /**
126
+ * Returns the 1-based column offset on the line for the associated function call.
127
+ */
128
+ column: number;
129
+ }
111
130
  /**
112
131
  * The `util.format()` method returns a formatted string using the first argument
113
132
  * as a `printf`-like format string which can contain zero or more format
@@ -166,6 +185,52 @@ declare module "util" {
166
185
  * @since v10.0.0
167
186
  */
168
187
  export function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string;
188
+ /**
189
+ * Returns an array of stacktrace objects containing the stack of
190
+ * the caller function.
191
+ *
192
+ * ```js
193
+ * const util = require('node:util');
194
+ *
195
+ * function exampleFunction() {
196
+ * const callSites = util.getCallSite();
197
+ *
198
+ * console.log('Call Sites:');
199
+ * callSites.forEach((callSite, index) => {
200
+ * console.log(`CallSite ${index + 1}:`);
201
+ * console.log(`Function Name: ${callSite.functionName}`);
202
+ * console.log(`Script Name: ${callSite.scriptName}`);
203
+ * console.log(`Line Number: ${callSite.lineNumber}`);
204
+ * console.log(`Column Number: ${callSite.column}`);
205
+ * });
206
+ * // CallSite 1:
207
+ * // Function Name: exampleFunction
208
+ * // Script Name: /home/example.js
209
+ * // Line Number: 5
210
+ * // Column Number: 26
211
+ *
212
+ * // CallSite 2:
213
+ * // Function Name: anotherFunction
214
+ * // Script Name: /home/example.js
215
+ * // Line Number: 22
216
+ * // Column Number: 3
217
+ *
218
+ * // ...
219
+ * }
220
+ *
221
+ * // A function to simulate another stack layer
222
+ * function anotherFunction() {
223
+ * exampleFunction();
224
+ * }
225
+ *
226
+ * anotherFunction();
227
+ * ```
228
+ * @param frames Number of frames returned in the stacktrace.
229
+ * **Default:** `10`. Allowable range is between 1 and 200.
230
+ * @return An array of stacktrace objects
231
+ * @since v22.9.0
232
+ */
233
+ export function getCallSite(frames?: number): StacktraceObject[];
169
234
  /**
170
235
  * Returns the string name for a numeric error code that comes from a Node.js API.
171
236
  * The mapping between error codes and error names is platform-dependent.
@@ -1517,18 +1582,23 @@ declare module "util" {
1517
1582
  string | boolean
1518
1583
  >;
1519
1584
 
1585
+ type ApplyOptionalModifiers<O extends ParseArgsOptionsConfig, V extends Record<keyof O, unknown>> = (
1586
+ & { -readonly [LongOption in keyof O]?: V[LongOption] }
1587
+ & { [LongOption in keyof O as O[LongOption]["default"] extends {} ? LongOption : never]: V[LongOption] }
1588
+ ) extends infer P ? { [K in keyof P]: P[K] } : never; // resolve intersection to object
1589
+
1520
1590
  type ParsedValues<T extends ParseArgsConfig> =
1521
1591
  & IfDefaultsTrue<T["strict"], unknown, { [longOption: string]: undefined | string | boolean }>
1522
- & (T["options"] extends ParseArgsOptionsConfig ? {
1523
- -readonly [LongOption in keyof T["options"]]:
1524
- // when "default" is not undefined, the value will be present
1525
- | (T["options"][LongOption]["default"] extends {} ? never : undefined)
1526
- | IfDefaultsFalse<
1592
+ & (T["options"] extends ParseArgsOptionsConfig ? ApplyOptionalModifiers<
1593
+ T["options"],
1594
+ {
1595
+ [LongOption in keyof T["options"]]: IfDefaultsFalse<
1527
1596
  T["options"][LongOption]["multiple"],
1528
1597
  Array<ExtractOptionValue<T, T["options"][LongOption]>>,
1529
1598
  ExtractOptionValue<T, T["options"][LongOption]>
1530
1599
  >;
1531
- }
1600
+ }
1601
+ >
1532
1602
  : {});
1533
1603
 
1534
1604
  type ParsedPositionals<T extends ParseArgsConfig> = IfDefaultsTrue<
@@ -1720,7 +1790,7 @@ declare module "util" {
1720
1790
  * Each item of the iterator is a JavaScript `Array`. The first item of the array
1721
1791
  * is the `name`, the second item of the array is the `value`.
1722
1792
  */
1723
- entries(): IterableIterator<[name: string, value: string]>;
1793
+ entries(): NodeJS.Iterator<[name: string, value: string]>;
1724
1794
  /**
1725
1795
  * Returns the value of the first name-value pair whose name is `name`. If there
1726
1796
  * are no such pairs, `null` is returned.
@@ -1746,7 +1816,7 @@ declare module "util" {
1746
1816
  * // bar
1747
1817
  * ```
1748
1818
  */
1749
- keys(): IterableIterator<string>;
1819
+ keys(): NodeJS.Iterator<string>;
1750
1820
  /**
1751
1821
  * Sets the value in the `MIMEParams` object associated with `name` to `value`. If there are any pre-existing name-value pairs whose names are `name`,
1752
1822
  * set the first such pair's value to `value`.
@@ -1765,11 +1835,11 @@ declare module "util" {
1765
1835
  /**
1766
1836
  * Returns an iterator over the values of each name-value pair.
1767
1837
  */
1768
- values(): IterableIterator<string>;
1838
+ values(): NodeJS.Iterator<string>;
1769
1839
  /**
1770
1840
  * Returns an iterator over each of the name-value pairs in the parameters.
1771
1841
  */
1772
- [Symbol.iterator]: typeof MIMEParams.prototype.entries;
1842
+ [Symbol.iterator](): NodeJS.Iterator<[name: string, value: string]>;
1773
1843
  }
1774
1844
  }
1775
1845
  declare module "util/types" {