cloudstructs 0.5.4 → 0.5.7

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 (420) hide show
  1. package/.jsii +4 -4
  2. package/assets/slack-app/provider.lambda/index.js +107 -105
  3. package/assets/slack-textract/detect.lambda/index.js +113 -110
  4. package/assets/url-shortener/shortener.lambda/index.js +9 -23
  5. package/lib/codecommit-mirror/index.d.ts +0 -1
  6. package/lib/codecommit-mirror/index.js +5 -6
  7. package/lib/ecs-service-roller/index.d.ts +0 -1
  8. package/lib/ecs-service-roller/index.js +5 -6
  9. package/lib/email-receiver/index.d.ts +0 -1
  10. package/lib/email-receiver/receiver.d.ts +0 -1
  11. package/lib/email-receiver/receiver.js +1 -1
  12. package/lib/email-receiver/s3-function.d.ts +0 -1
  13. package/lib/email-receiver/s3-function.js +2 -2
  14. package/lib/email-receiver/s3.lambda.d.ts +0 -1
  15. package/lib/email-receiver/whitelist-function.d.ts +0 -1
  16. package/lib/email-receiver/whitelist-function.js +2 -2
  17. package/lib/email-receiver/whitelist.lambda.d.ts +0 -1
  18. package/lib/index.d.ts +0 -1
  19. package/lib/saml-identity-provider/index.d.ts +0 -1
  20. package/lib/saml-identity-provider/index.js +4 -5
  21. package/lib/slack-app/index.d.ts +0 -1
  22. package/lib/slack-app/manifest.d.ts +0 -1
  23. package/lib/slack-app/manifest.js +33 -35
  24. package/lib/slack-app/provider-function.d.ts +0 -1
  25. package/lib/slack-app/provider-function.js +2 -2
  26. package/lib/slack-app/provider.d.ts +0 -1
  27. package/lib/slack-app/provider.js +2 -3
  28. package/lib/slack-app/provider.lambda.d.ts +0 -1
  29. package/lib/slack-app/provider.lambda.js +3 -4
  30. package/lib/slack-app/slack-app.d.ts +0 -1
  31. package/lib/slack-app/slack-app.js +4 -5
  32. package/lib/slack-events/events-function.d.ts +0 -1
  33. package/lib/slack-events/events-function.js +2 -2
  34. package/lib/slack-events/events.lambda.d.ts +0 -1
  35. package/lib/slack-events/index.d.ts +0 -1
  36. package/lib/slack-events/index.js +1 -1
  37. package/lib/slack-events/signature.d.ts +0 -1
  38. package/lib/slack-textract/detect-function.d.ts +0 -1
  39. package/lib/slack-textract/detect-function.js +2 -2
  40. package/lib/slack-textract/detect.lambda.d.ts +0 -1
  41. package/lib/slack-textract/index.d.ts +0 -1
  42. package/lib/slack-textract/index.js +1 -1
  43. package/lib/state-machine-cr-provider/index.d.ts +0 -1
  44. package/lib/state-machine-cr-provider/index.js +3 -4
  45. package/lib/state-machine-cr-provider/runtime/http.d.ts +0 -1
  46. package/lib/state-machine-cr-provider/runtime/http.js +3 -4
  47. package/lib/state-machine-cr-provider/runtime/index.d.ts +0 -1
  48. package/lib/state-machine-cr-provider/runtime/index.js +5 -7
  49. package/lib/static-website/index.d.ts +0 -1
  50. package/lib/static-website/index.js +3 -4
  51. package/lib/static-website/origin-request-function.d.ts +0 -1
  52. package/lib/static-website/origin-request-function.js +2 -2
  53. package/lib/static-website/origin-request.edge-lambda.d.ts +0 -1
  54. package/lib/toolkit-cleaner/clean-images-function.d.ts +0 -1
  55. package/lib/toolkit-cleaner/clean-images-function.js +2 -2
  56. package/lib/toolkit-cleaner/clean-images.lambda.d.ts +0 -1
  57. package/lib/toolkit-cleaner/clean-images.lambda.js +3 -4
  58. package/lib/toolkit-cleaner/clean-objects-function.d.ts +0 -1
  59. package/lib/toolkit-cleaner/clean-objects-function.js +2 -2
  60. package/lib/toolkit-cleaner/clean-objects.lambda.d.ts +0 -1
  61. package/lib/toolkit-cleaner/clean-objects.lambda.js +3 -4
  62. package/lib/toolkit-cleaner/extract-template-hashes-function.d.ts +0 -1
  63. package/lib/toolkit-cleaner/extract-template-hashes-function.js +2 -2
  64. package/lib/toolkit-cleaner/extract-template-hashes.lambda.d.ts +0 -1
  65. package/lib/toolkit-cleaner/get-stack-names-function.d.ts +0 -1
  66. package/lib/toolkit-cleaner/get-stack-names-function.js +2 -2
  67. package/lib/toolkit-cleaner/get-stack-names.lambda.d.ts +0 -1
  68. package/lib/toolkit-cleaner/get-stack-names.lambda.js +2 -3
  69. package/lib/toolkit-cleaner/index.d.ts +0 -1
  70. package/lib/toolkit-cleaner/index.js +4 -5
  71. package/lib/url-shortener/index.d.ts +0 -1
  72. package/lib/url-shortener/index.js +4 -5
  73. package/lib/url-shortener/redirect-function.d.ts +0 -1
  74. package/lib/url-shortener/redirect-function.js +2 -2
  75. package/lib/url-shortener/redirect.edge-lambda.d.ts +0 -1
  76. package/lib/url-shortener/redirect.edge-lambda.js +2 -3
  77. package/lib/url-shortener/shortener-function.d.ts +0 -1
  78. package/lib/url-shortener/shortener-function.js +2 -2
  79. package/lib/url-shortener/shortener.lambda.d.ts +0 -1
  80. package/lib/url-shortener/shortener.lambda.js +3 -4
  81. package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
  82. package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +7 -8
  83. package/node_modules/@slack/logger/node_modules/@types/node/async_hooks.d.ts +2 -2
  84. package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +11 -5
  85. package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +6 -3
  86. package/node_modules/@slack/logger/node_modules/@types/node/cluster.d.ts +14 -18
  87. package/node_modules/@slack/logger/node_modules/@types/node/console.d.ts +1 -1
  88. package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +668 -42
  89. package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +2 -2
  90. package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +2 -1
  91. package/node_modules/@slack/logger/node_modules/@types/node/dns/promises.d.ts +2 -2
  92. package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +2 -2
  93. package/node_modules/@slack/logger/node_modules/@types/node/domain.d.ts +3 -2
  94. package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +17 -27
  95. package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +40 -17
  96. package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +33 -44
  97. package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +79 -23
  98. package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +7 -2
  99. package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +11 -1
  100. package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +2 -1
  101. package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +10 -13
  102. package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +27 -7
  103. package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +5 -4
  104. package/node_modules/@slack/logger/node_modules/@types/node/package.json +3 -3
  105. package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +1 -1
  106. package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +16 -2
  107. package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +14 -13
  108. package/node_modules/@slack/logger/node_modules/@types/node/punycode.d.ts +1 -1
  109. package/node_modules/@slack/logger/node_modules/@types/node/querystring.d.ts +1 -1
  110. package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +2 -2
  111. package/node_modules/@slack/logger/node_modules/@types/node/repl.d.ts +2 -2
  112. package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +80 -15
  113. package/node_modules/@slack/logger/node_modules/@types/node/string_decoder.d.ts +1 -1
  114. package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +142 -0
  115. package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +3 -3
  116. package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +18 -10
  117. package/node_modules/@slack/logger/node_modules/@types/node/trace_events.d.ts +11 -1
  118. package/node_modules/@slack/logger/node_modules/@types/node/tty.d.ts +4 -2
  119. package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +25 -19
  120. package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +20 -9
  121. package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +19 -1
  122. package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +5 -3
  123. package/node_modules/@slack/logger/node_modules/@types/node/wasi.d.ts +1 -1
  124. package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +2 -5
  125. package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +1 -1
  126. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  127. package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +7 -8
  128. package/node_modules/@slack/web-api/node_modules/@types/node/async_hooks.d.ts +2 -2
  129. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +11 -5
  130. package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +6 -3
  131. package/node_modules/@slack/web-api/node_modules/@types/node/cluster.d.ts +14 -18
  132. package/node_modules/@slack/web-api/node_modules/@types/node/console.d.ts +1 -1
  133. package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +668 -42
  134. package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +2 -2
  135. package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +2 -1
  136. package/node_modules/@slack/web-api/node_modules/@types/node/dns/promises.d.ts +2 -2
  137. package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +2 -2
  138. package/node_modules/@slack/web-api/node_modules/@types/node/domain.d.ts +3 -2
  139. package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +17 -27
  140. package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +40 -17
  141. package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +33 -44
  142. package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +79 -23
  143. package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +7 -2
  144. package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +11 -1
  145. package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +2 -1
  146. package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +10 -13
  147. package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +27 -7
  148. package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +5 -4
  149. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +3 -3
  150. package/node_modules/@slack/web-api/node_modules/@types/node/path.d.ts +1 -1
  151. package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +16 -2
  152. package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +14 -13
  153. package/node_modules/@slack/web-api/node_modules/@types/node/punycode.d.ts +1 -1
  154. package/node_modules/@slack/web-api/node_modules/@types/node/querystring.d.ts +1 -1
  155. package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +2 -2
  156. package/node_modules/@slack/web-api/node_modules/@types/node/repl.d.ts +2 -2
  157. package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +80 -15
  158. package/node_modules/@slack/web-api/node_modules/@types/node/string_decoder.d.ts +1 -1
  159. package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +142 -0
  160. package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +3 -3
  161. package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +18 -10
  162. package/node_modules/@slack/web-api/node_modules/@types/node/trace_events.d.ts +11 -1
  163. package/node_modules/@slack/web-api/node_modules/@types/node/tty.d.ts +4 -2
  164. package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +25 -19
  165. package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +20 -9
  166. package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +19 -1
  167. package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +5 -3
  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 +2 -5
  170. package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +1 -1
  171. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  172. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +7 -8
  173. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +2 -2
  174. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +11 -5
  175. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +6 -3
  176. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +14 -18
  177. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +1 -1
  178. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +668 -42
  179. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +2 -2
  180. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +2 -1
  181. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +2 -2
  182. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +2 -2
  183. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +3 -2
  184. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +17 -27
  185. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +40 -17
  186. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +33 -44
  187. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +79 -23
  188. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +7 -2
  189. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +11 -1
  190. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +2 -1
  191. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +10 -13
  192. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +27 -7
  193. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +5 -4
  194. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -3
  195. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +1 -1
  196. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +16 -2
  197. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +14 -13
  198. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +1 -1
  199. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +1 -1
  200. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +2 -2
  201. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +2 -2
  202. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +80 -15
  203. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +1 -1
  204. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +142 -0
  205. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +3 -3
  206. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +18 -10
  207. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +11 -1
  208. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +4 -2
  209. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +25 -19
  210. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +20 -9
  211. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +19 -1
  212. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +5 -3
  213. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +1 -1
  214. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +2 -5
  215. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +1 -1
  216. package/node_modules/@types/is-stream/node_modules/@types/node/README.md +1 -1
  217. package/node_modules/@types/is-stream/node_modules/@types/node/assert.d.ts +7 -8
  218. package/node_modules/@types/is-stream/node_modules/@types/node/async_hooks.d.ts +2 -2
  219. package/node_modules/@types/is-stream/node_modules/@types/node/buffer.d.ts +11 -5
  220. package/node_modules/@types/is-stream/node_modules/@types/node/child_process.d.ts +6 -3
  221. package/node_modules/@types/is-stream/node_modules/@types/node/cluster.d.ts +14 -18
  222. package/node_modules/@types/is-stream/node_modules/@types/node/console.d.ts +1 -1
  223. package/node_modules/@types/is-stream/node_modules/@types/node/crypto.d.ts +668 -42
  224. package/node_modules/@types/is-stream/node_modules/@types/node/dgram.d.ts +2 -2
  225. package/node_modules/@types/is-stream/node_modules/@types/node/diagnostics_channel.d.ts +2 -1
  226. package/node_modules/@types/is-stream/node_modules/@types/node/dns/promises.d.ts +2 -2
  227. package/node_modules/@types/is-stream/node_modules/@types/node/dns.d.ts +2 -2
  228. package/node_modules/@types/is-stream/node_modules/@types/node/domain.d.ts +3 -2
  229. package/node_modules/@types/is-stream/node_modules/@types/node/events.d.ts +17 -27
  230. package/node_modules/@types/is-stream/node_modules/@types/node/fs/promises.d.ts +40 -17
  231. package/node_modules/@types/is-stream/node_modules/@types/node/fs.d.ts +33 -44
  232. package/node_modules/@types/is-stream/node_modules/@types/node/http.d.ts +79 -23
  233. package/node_modules/@types/is-stream/node_modules/@types/node/http2.d.ts +7 -2
  234. package/node_modules/@types/is-stream/node_modules/@types/node/https.d.ts +11 -1
  235. package/node_modules/@types/is-stream/node_modules/@types/node/index.d.ts +2 -1
  236. package/node_modules/@types/is-stream/node_modules/@types/node/inspector.d.ts +10 -13
  237. package/node_modules/@types/is-stream/node_modules/@types/node/net.d.ts +27 -7
  238. package/node_modules/@types/is-stream/node_modules/@types/node/os.d.ts +5 -4
  239. package/node_modules/@types/is-stream/node_modules/@types/node/package.json +3 -3
  240. package/node_modules/@types/is-stream/node_modules/@types/node/path.d.ts +1 -1
  241. package/node_modules/@types/is-stream/node_modules/@types/node/perf_hooks.d.ts +16 -2
  242. package/node_modules/@types/is-stream/node_modules/@types/node/process.d.ts +14 -13
  243. package/node_modules/@types/is-stream/node_modules/@types/node/punycode.d.ts +1 -1
  244. package/node_modules/@types/is-stream/node_modules/@types/node/querystring.d.ts +1 -1
  245. package/node_modules/@types/is-stream/node_modules/@types/node/readline.d.ts +2 -2
  246. package/node_modules/@types/is-stream/node_modules/@types/node/repl.d.ts +2 -2
  247. package/node_modules/@types/is-stream/node_modules/@types/node/stream.d.ts +80 -15
  248. package/node_modules/@types/is-stream/node_modules/@types/node/string_decoder.d.ts +1 -1
  249. package/node_modules/@types/is-stream/node_modules/@types/node/test.d.ts +142 -0
  250. package/node_modules/@types/is-stream/node_modules/@types/node/timers.d.ts +3 -3
  251. package/node_modules/@types/is-stream/node_modules/@types/node/tls.d.ts +18 -10
  252. package/node_modules/@types/is-stream/node_modules/@types/node/trace_events.d.ts +11 -1
  253. package/node_modules/@types/is-stream/node_modules/@types/node/tty.d.ts +4 -2
  254. package/node_modules/@types/is-stream/node_modules/@types/node/url.d.ts +25 -19
  255. package/node_modules/@types/is-stream/node_modules/@types/node/util.d.ts +20 -9
  256. package/node_modules/@types/is-stream/node_modules/@types/node/v8.d.ts +19 -1
  257. package/node_modules/@types/is-stream/node_modules/@types/node/vm.d.ts +5 -3
  258. package/node_modules/@types/is-stream/node_modules/@types/node/wasi.d.ts +1 -1
  259. package/node_modules/@types/is-stream/node_modules/@types/node/worker_threads.d.ts +2 -5
  260. package/node_modules/@types/is-stream/node_modules/@types/node/zlib.d.ts +1 -1
  261. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  262. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +7 -8
  263. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +2 -2
  264. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +11 -5
  265. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +6 -3
  266. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +14 -18
  267. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +1 -1
  268. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +668 -42
  269. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +2 -2
  270. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +2 -1
  271. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +2 -2
  272. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +2 -2
  273. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +3 -2
  274. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +17 -27
  275. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +40 -17
  276. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +33 -44
  277. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +79 -23
  278. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +7 -2
  279. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +11 -1
  280. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +2 -1
  281. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +10 -13
  282. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +27 -7
  283. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +5 -4
  284. package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -3
  285. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +1 -1
  286. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +16 -2
  287. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +14 -13
  288. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +1 -1
  289. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +1 -1
  290. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +2 -2
  291. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +2 -2
  292. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +80 -15
  293. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +1 -1
  294. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +142 -0
  295. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +3 -3
  296. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +18 -10
  297. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +11 -1
  298. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +4 -2
  299. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +25 -19
  300. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +20 -9
  301. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +19 -1
  302. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +5 -3
  303. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +1 -1
  304. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +2 -5
  305. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +1 -1
  306. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  307. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +7 -8
  308. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +2 -2
  309. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +11 -5
  310. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +6 -3
  311. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +14 -18
  312. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +1 -1
  313. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +668 -42
  314. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +2 -2
  315. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +2 -1
  316. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +2 -2
  317. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +2 -2
  318. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +3 -2
  319. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +17 -27
  320. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +40 -17
  321. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +33 -44
  322. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +79 -23
  323. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +7 -2
  324. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +11 -1
  325. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +2 -1
  326. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +10 -13
  327. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +27 -7
  328. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +5 -4
  329. package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -3
  330. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
  331. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +16 -2
  332. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +14 -13
  333. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
  334. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +1 -1
  335. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +2 -2
  336. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +2 -2
  337. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +80 -15
  338. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +1 -1
  339. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +142 -0
  340. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +3 -3
  341. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +18 -10
  342. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +11 -1
  343. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +4 -2
  344. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +25 -19
  345. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +20 -9
  346. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +19 -1
  347. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +5 -3
  348. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +1 -1
  349. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +2 -5
  350. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +1 -1
  351. package/node_modules/{get-stream → cacheable-request/node_modules/get-stream}/buffer-stream.js +0 -0
  352. package/node_modules/{get-stream → cacheable-request/node_modules/get-stream}/index.d.ts +0 -0
  353. package/node_modules/{get-stream → cacheable-request/node_modules/get-stream}/index.js +0 -0
  354. package/node_modules/{decompress-response/node_modules/mimic-response → cacheable-request/node_modules/get-stream}/license +0 -0
  355. package/node_modules/{get-stream → cacheable-request/node_modules/get-stream}/package.json +0 -0
  356. package/node_modules/{get-stream → cacheable-request/node_modules/get-stream}/readme.md +0 -0
  357. package/node_modules/clone-response/node_modules/mimic-response/index.js +32 -0
  358. package/node_modules/{get-stream → clone-response/node_modules/mimic-response}/license +1 -1
  359. package/node_modules/clone-response/node_modules/mimic-response/package.json +37 -0
  360. package/node_modules/clone-response/node_modules/mimic-response/readme.md +54 -0
  361. package/node_modules/clone-response/package.json +3 -6
  362. package/node_modules/keyv/README.md +16 -3
  363. package/node_modules/keyv/package.json +6 -8
  364. package/node_modules/keyv/src/index.d.ts +16 -2
  365. package/node_modules/{decompress-response/node_modules/mimic-response → mimic-response}/index.d.ts +0 -0
  366. package/node_modules/mimic-response/index.js +58 -13
  367. package/node_modules/mimic-response/license +1 -1
  368. package/node_modules/mimic-response/package.json +40 -35
  369. package/node_modules/mimic-response/readme.md +33 -9
  370. package/node_modules/responselike/package.json +3 -2
  371. package/package.json +13 -13
  372. package/changelog.md +0 -7
  373. package/lib/codecommit-mirror/index.d.ts.map +0 -1
  374. package/lib/ecs-service-roller/index.d.ts.map +0 -1
  375. package/lib/email-receiver/index.d.ts.map +0 -1
  376. package/lib/email-receiver/receiver.d.ts.map +0 -1
  377. package/lib/email-receiver/s3-function.d.ts.map +0 -1
  378. package/lib/email-receiver/s3.lambda.d.ts.map +0 -1
  379. package/lib/email-receiver/whitelist-function.d.ts.map +0 -1
  380. package/lib/email-receiver/whitelist.lambda.d.ts.map +0 -1
  381. package/lib/index.d.ts.map +0 -1
  382. package/lib/saml-identity-provider/index.d.ts.map +0 -1
  383. package/lib/slack-app/index.d.ts.map +0 -1
  384. package/lib/slack-app/manifest.d.ts.map +0 -1
  385. package/lib/slack-app/provider-function.d.ts.map +0 -1
  386. package/lib/slack-app/provider.d.ts.map +0 -1
  387. package/lib/slack-app/provider.lambda.d.ts.map +0 -1
  388. package/lib/slack-app/slack-app.d.ts.map +0 -1
  389. package/lib/slack-events/events-function.d.ts.map +0 -1
  390. package/lib/slack-events/events.lambda.d.ts.map +0 -1
  391. package/lib/slack-events/index.d.ts.map +0 -1
  392. package/lib/slack-events/signature.d.ts.map +0 -1
  393. package/lib/slack-textract/detect-function.d.ts.map +0 -1
  394. package/lib/slack-textract/detect.lambda.d.ts.map +0 -1
  395. package/lib/slack-textract/index.d.ts.map +0 -1
  396. package/lib/state-machine-cr-provider/index.d.ts.map +0 -1
  397. package/lib/state-machine-cr-provider/runtime/http.d.ts.map +0 -1
  398. package/lib/state-machine-cr-provider/runtime/index.d.ts.map +0 -1
  399. package/lib/static-website/index.d.ts.map +0 -1
  400. package/lib/static-website/origin-request-function.d.ts.map +0 -1
  401. package/lib/static-website/origin-request.edge-lambda.d.ts.map +0 -1
  402. package/lib/toolkit-cleaner/clean-images-function.d.ts.map +0 -1
  403. package/lib/toolkit-cleaner/clean-images.lambda.d.ts.map +0 -1
  404. package/lib/toolkit-cleaner/clean-objects-function.d.ts.map +0 -1
  405. package/lib/toolkit-cleaner/clean-objects.lambda.d.ts.map +0 -1
  406. package/lib/toolkit-cleaner/extract-template-hashes-function.d.ts.map +0 -1
  407. package/lib/toolkit-cleaner/extract-template-hashes.lambda.d.ts.map +0 -1
  408. package/lib/toolkit-cleaner/get-stack-names-function.d.ts.map +0 -1
  409. package/lib/toolkit-cleaner/get-stack-names.lambda.d.ts.map +0 -1
  410. package/lib/toolkit-cleaner/index.d.ts.map +0 -1
  411. package/lib/url-shortener/index.d.ts.map +0 -1
  412. package/lib/url-shortener/redirect-function.d.ts.map +0 -1
  413. package/lib/url-shortener/redirect.edge-lambda.d.ts.map +0 -1
  414. package/lib/url-shortener/shortener-function.d.ts.map +0 -1
  415. package/lib/url-shortener/shortener.lambda.d.ts.map +0 -1
  416. package/node_modules/decompress-response/node_modules/mimic-response/index.js +0 -77
  417. package/node_modules/decompress-response/node_modules/mimic-response/package.json +0 -42
  418. package/node_modules/decompress-response/node_modules/mimic-response/readme.md +0 -78
  419. package/releasetag.txt +0 -1
  420. package/version.txt +0 -1
@@ -24,7 +24,7 @@
24
24
  * made available to developers as a convenience. Fixes or other modifications to
25
25
  * the module must be directed to the [Punycode.js](https://github.com/bestiejs/punycode.js) project.
26
26
  * @deprecated Since v7.0.0 - Deprecated
27
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/punycode.js)
27
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/punycode.js)
28
28
  */
29
29
  declare module 'punycode' {
30
30
  /**
@@ -9,7 +9,7 @@
9
9
  * The `querystring` API is considered Legacy. While it is still maintained,
10
10
  * new code should use the `URLSearchParams` API instead.
11
11
  * @deprecated Legacy
12
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/querystring.js)
12
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/querystring.js)
13
13
  */
14
14
  declare module 'querystring' {
15
15
  interface StringifyOptions {
@@ -17,7 +17,7 @@
17
17
  *
18
18
  * ```js
19
19
  * import * as readline from 'node:readline/promises';
20
- * import { stdin as input, stdout as output } from 'process';
20
+ * import { stdin as input, stdout as output } from 'node:process';
21
21
  *
22
22
  * const rl = readline.createInterface({ input, output });
23
23
  *
@@ -30,7 +30,7 @@
30
30
  *
31
31
  * Once this code is invoked, the Node.js application will not terminate until the`readline.Interface` is closed because the interface waits for data to be
32
32
  * received on the `input` stream.
33
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/readline.js)
33
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/readline.js)
34
34
  */
35
35
  declare module 'readline' {
36
36
  import { Abortable, EventEmitter } from 'node:events';
@@ -6,7 +6,7 @@
6
6
  * ```js
7
7
  * const repl = require('repl');
8
8
  * ```
9
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/repl.js)
9
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/repl.js)
10
10
  */
11
11
  declare module 'repl' {
12
12
  import { Interface, Completer, AsyncCompleter } from 'node:readline';
@@ -277,7 +277,7 @@ declare module 'repl' {
277
277
  * Goodbye!
278
278
  * ```
279
279
  * @since v0.3.0
280
- * @param keyword The command keyword (*without* a leading `.` character).
280
+ * @param keyword The command keyword (_without_ a leading `.` character).
281
281
  * @param cmd The function to invoke when the command is processed.
282
282
  */
283
283
  defineCommand(keyword: string, cmd: REPLCommandAction | REPLCommand): void;
@@ -14,12 +14,13 @@
14
14
  *
15
15
  * The `stream` module is useful for creating new types of stream instances. It is
16
16
  * usually not necessary to use the `stream` module to consume streams.
17
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/stream.js)
17
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/stream.js)
18
18
  */
19
19
  declare module 'stream' {
20
20
  import { EventEmitter, Abortable } from 'node:events';
21
21
  import * as streamPromises from 'node:stream/promises';
22
22
  import * as streamConsumers from 'node:stream/consumers';
23
+ import * as streamWeb from 'node:stream/web';
23
24
  class internal extends EventEmitter {
24
25
  pipe<T extends NodeJS.WritableStream>(
25
26
  destination: T,
@@ -52,11 +53,23 @@ declare module 'stream' {
52
53
  * A utility method for creating Readable Streams out of iterators.
53
54
  */
54
55
  static from(iterable: Iterable<any> | AsyncIterable<any>, options?: ReadableOptions): Readable;
56
+ /**
57
+ * A utility method for creating a `Readable` from a web `ReadableStream`.
58
+ * @since v17.0.0
59
+ * @experimental
60
+ */
61
+ static fromWeb(readableStream: streamWeb.ReadableStream, options?: Pick<ReadableOptions, 'encoding' | 'highWaterMark' | 'objectMode' | 'signal'>): Readable;
55
62
  /**
56
63
  * Returns whether the stream has been read from or cancelled.
57
64
  * @since v16.8.0
58
65
  */
59
66
  static isDisturbed(stream: Readable | NodeJS.ReadableStream): boolean;
67
+ /**
68
+ * A utility method for creating a web `ReadableStream` from a `Readable`.
69
+ * @since v17.0.0
70
+ * @experimental
71
+ */
72
+ static toWeb(streamReadable: Readable): streamWeb.ReadableStream;
60
73
  /**
61
74
  * Returns whether the stream was destroyed or errored before emitting `'end'`.
62
75
  * @since v16.8.0
@@ -110,16 +123,26 @@ declare module 'stream' {
110
123
  readonly readableObjectMode: boolean;
111
124
  /**
112
125
  * Is `true` after `readable.destroy()` has been called.
113
- * @since v8.0.0
126
+ * @since v18.0.0
114
127
  */
115
128
  destroyed: boolean;
129
+ /**
130
+ * Is true after 'close' has been emitted.
131
+ * @since v8.0.0
132
+ */
133
+ readonly closed: boolean;
134
+ /**
135
+ * Returns error if the stream has been destroyed with an error.
136
+ * @since v18.0.0
137
+ */
138
+ readonly errored: Error | null;
116
139
  constructor(opts?: ReadableOptions);
117
140
  _construct?(callback: (error?: Error | null) => void): void;
118
141
  _read(size: number): void;
119
142
  /**
120
- * The `readable.read()` method pulls some data out of the internal buffer and
121
- * returns it. If no data available to be read, `null` is returned. By default,
122
- * the data will be returned as a `Buffer` object unless an encoding has been
143
+ * The `readable.read()` method reads data out of the internal buffer and
144
+ * returns it. If no data is available to be read, `null` is returned. By default,
145
+ * the data is returned as a `Buffer` object unless an encoding has been
123
146
  * specified using the `readable.setEncoding()` method or the stream is operating
124
147
  * in object mode.
125
148
  *
@@ -334,7 +357,7 @@ declare module 'stream' {
334
357
  * let chunk;
335
358
  * while (null !== (chunk = stream.read())) {
336
359
  * const str = decoder.write(chunk);
337
- * if (str.match(/\n\n/)) {
360
+ * if (str.includes('\n\n')) {
338
361
  * // Found the header boundary.
339
362
  * const split = str.split(/\n\n/);
340
363
  * header += split.shift();
@@ -347,10 +370,10 @@ declare module 'stream' {
347
370
  * stream.unshift(buf);
348
371
  * // Now the body of the message can be read from the stream.
349
372
  * callback(null, header, stream);
350
- * } else {
351
- * // Still reading the header.
352
- * header += str;
373
+ * return;
353
374
  * }
375
+ * // Still reading the header.
376
+ * header += str;
354
377
  * }
355
378
  * }
356
379
  * }
@@ -541,6 +564,21 @@ declare module 'stream' {
541
564
  * @since v8.0.0
542
565
  */
543
566
  destroyed: boolean;
567
+ /**
568
+ * Is true after 'close' has been emitted.
569
+ * @since v8.0.0
570
+ */
571
+ readonly closed: boolean;
572
+ /**
573
+ * Returns error if the stream has been destroyed with an error.
574
+ * @since v18.0.0
575
+ */
576
+ readonly errored: Error | null;
577
+ /**
578
+ * Is `true` if the stream's buffer has been full and stream will emit 'drain'.
579
+ * @since v15.2.0, v14.17.0
580
+ */
581
+ readonly writableNeedDrain: boolean;
544
582
  constructor(opts?: WritableOptions);
545
583
  _write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
546
584
  _writev?(
@@ -567,7 +605,7 @@ declare module 'stream' {
567
605
  * While a stream is not draining, calls to `write()` will buffer `chunk`, and
568
606
  * return false. Once all currently buffered chunks are drained (accepted for
569
607
  * delivery by the operating system), the `'drain'` event will be emitted.
570
- * It is recommended that once `write()` returns false, no more chunks be written
608
+ * Once `write()` returns false, do not write more chunks
571
609
  * until the `'drain'` event is emitted. While calling `write()` on a stream that
572
610
  * is not draining is allowed, Node.js will buffer all written chunks until
573
611
  * maximum memory usage occurs, at which point it will abort unconditionally.
@@ -661,8 +699,8 @@ declare module 'stream' {
661
699
  * The `writable.uncork()` method flushes all data buffered since {@link cork} was called.
662
700
  *
663
701
  * When using `writable.cork()` and `writable.uncork()` to manage the buffering
664
- * of writes to a stream, it is recommended that calls to `writable.uncork()` be
665
- * deferred using `process.nextTick()`. Doing so allows batching of all`writable.write()` calls that occur within a given Node.js event loop phase.
702
+ * of writes to a stream, defer calls to `writable.uncork()` using`process.nextTick()`. Doing so allows batching of all`writable.write()` calls that occur within a given Node.js event
703
+ * loop phase.
666
704
  *
667
705
  * ```js
668
706
  * stream.cork();
@@ -807,6 +845,9 @@ declare module 'stream' {
807
845
  readonly writableLength: number;
808
846
  readonly writableObjectMode: boolean;
809
847
  readonly writableCorked: number;
848
+ readonly writableNeedDrain: boolean;
849
+ readonly closed: boolean;
850
+ readonly errored: Error | null;
810
851
  /**
811
852
  * If `false` then the stream will automatically end the writable side when the
812
853
  * readable side ends. Set initially by the `allowHalfOpen` constructor option,
@@ -1106,7 +1147,7 @@ declare module 'stream' {
1106
1147
  * async function run() {
1107
1148
  * await pipeline(
1108
1149
  * fs.createReadStream('lowercase.txt'),
1109
- * async function* (source, signal) {
1150
+ * async function* (source, { signal }) {
1110
1151
  * source.setEncoding('utf8'); // Work with strings rather than `Buffer`s.
1111
1152
  * for await (const chunk of source) {
1112
1153
  * yield await processChunk(chunk, { signal });
@@ -1130,7 +1171,7 @@ declare module 'stream' {
1130
1171
  *
1131
1172
  * async function run() {
1132
1173
  * await pipeline(
1133
- * async function * (signal) {
1174
+ * async function* ({ signal }) {
1134
1175
  * await someLongRunningfn({ signal });
1135
1176
  * yield 'asd';
1136
1177
  * },
@@ -1149,7 +1190,31 @@ declare module 'stream' {
1149
1190
  *
1150
1191
  * `stream.pipeline()` leaves dangling event listeners on the streams
1151
1192
  * after the `callback` has been invoked. In the case of reuse of streams after
1152
- * failure, this can cause event listener leaks and swallowed errors.
1193
+ * failure, this can cause event listener leaks and swallowed errors. If the last
1194
+ * stream is readable, dangling event listeners will be removed so that the last
1195
+ * stream can be consumed later.
1196
+ *
1197
+ * `stream.pipeline()` closes all the streams when an error is raised.
1198
+ * The `IncomingRequest` usage with `pipeline` could lead to an unexpected behavior
1199
+ * once it would destroy the socket without sending the expected response.
1200
+ * See the example below:
1201
+ *
1202
+ * ```js
1203
+ * const fs = require('fs');
1204
+ * const http = require('http');
1205
+ * const { pipeline } = require('stream');
1206
+ *
1207
+ * const server = http.createServer((req, res) => {
1208
+ * const fileStream = fs.createReadStream('./fileNotExist.txt');
1209
+ * pipeline(fileStream, res, (err) => {
1210
+ * if (err) {
1211
+ * console.log(err); // No such file
1212
+ * // this message can't be sent once `pipeline` already destroyed the socket
1213
+ * return res.end('error!!!');
1214
+ * }
1215
+ * });
1216
+ * });
1217
+ * ```
1153
1218
  * @since v10.0.0
1154
1219
  * @param callback Called when the pipeline is fully done.
1155
1220
  */
@@ -36,7 +36,7 @@
36
36
  * decoder.write(Buffer.from([0x82]));
37
37
  * console.log(decoder.end(Buffer.from([0xAC])));
38
38
  * ```
39
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/string_decoder.js)
39
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/string_decoder.js)
40
40
  */
41
41
  declare module 'string_decoder' {
42
42
  class StringDecoder {
@@ -0,0 +1,142 @@
1
+ /**
2
+ * The `node:test` module provides a standalone testing module.
3
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/test.js)
4
+ */
5
+ declare module 'node:test' {
6
+ /**
7
+ * The `test()` function is the value imported from the test module. Each invocation of this
8
+ * function results in the creation of a test point in the TAP output.
9
+ *
10
+ * The {@link TestContext} object passed to the fn argument can be used to perform actions
11
+ * related to the current test. Examples include skipping the test, adding additional TAP
12
+ * diagnostic information, or creating subtests.
13
+ *
14
+ * `test()` returns a {@link Promise} that resolves once the test completes. The return value
15
+ * can usually be discarded for top level tests. However, the return value from subtests should
16
+ * be used to prevent the parent test from finishing first and cancelling the subtest as shown
17
+ * in the following example.
18
+ *
19
+ * ```js
20
+ * test('top level test', async (t) => {
21
+ * // The setTimeout() in the following subtest would cause it to outlive its
22
+ * // parent test if 'await' is removed on the next line. Once the parent test
23
+ * // completes, it will cancel any outstanding subtests.
24
+ * await t.test('longer running subtest', async (t) => {
25
+ * return new Promise((resolve, reject) => {
26
+ * setTimeout(resolve, 1000);
27
+ * });
28
+ * });
29
+ * });
30
+ * ```
31
+ * @since v18.0.0
32
+ * @param name The name of the test, which is displayed when reporting test results.
33
+ * Default: The `name` property of fn, or `'<anonymous>'` if `fn` does not have a name.
34
+ * @param options Configuration options for the test
35
+ * @param fn The function under test. This first argument to this function is a
36
+ * {@link TestContext} object. If the test uses callbacks, the callback function is
37
+ * passed as the second argument. Default: A no-op function.
38
+ * @returns A {@link Promise} resolved with `undefined` once the test completes.
39
+ */
40
+ function test(name?: string, fn?: TestFn): Promise<void>;
41
+ function test(name?: string, options?: TestOptions, fn?: TestFn): Promise<void>;
42
+ function test(options?: TestOptions, fn?: TestFn): Promise<void>;
43
+ function test(fn?: TestFn): Promise<void>;
44
+
45
+ /**
46
+ * The type of a function under test. This first argument to this function is a
47
+ * {@link TestContext} object. If the test uses callbacks, the callback function is passed as
48
+ * the second argument.
49
+ */
50
+ type TestFn = ((t: TestContext, done: (result?: any) => void) => any);
51
+
52
+ /**
53
+ * An instance of `TestContext` is passed to each test function in order to interact with the
54
+ * test runner. However, the `TestContext` constructor is not exposed as part of the API.
55
+ * @since v18.0.0
56
+ */
57
+ interface TestContext {
58
+ /**
59
+ * This function is used to write TAP diagnostics to the output. Any diagnostic information is
60
+ * included at the end of the test's results. This function does not return a value.
61
+ * @param message Message to be displayed as a TAP diagnostic.
62
+ * @since v18.0.0
63
+ */
64
+ diagnostic(message: string): void;
65
+
66
+ /**
67
+ * If `shouldRunOnlyTests` is truthy, the test context will only run tests that have the `only`
68
+ * option set. Otherwise, all tests are run. If Node.js was not started with the `--test-only`
69
+ * command-line option, this function is a no-op.
70
+ * @param shouldRunOnlyTests Whether or not to run `only` tests.
71
+ * @since v18.0.0
72
+ */
73
+ runOnly(shouldRunOnlyTests: boolean): void;
74
+
75
+ /**
76
+ * This function causes the test's output to indicate the test as skipped. If `message` is
77
+ * provided, it is included in the TAP output. Calling `skip()` does not terminate execution of
78
+ * the test function. This function does not return a value.
79
+ * @param message Optional skip message to be displayed in TAP output.
80
+ * @since v18.0.0
81
+ */
82
+ skip(message?: string): void;
83
+
84
+ /**
85
+ * This function adds a `TODO` directive to the test's output. If `message` is provided, it is
86
+ * included in the TAP output. Calling `todo()` does not terminate execution of the test
87
+ * function. This function does not return a value.
88
+ * @param message Optional `TODO` message to be displayed in TAP output.
89
+ * @since v18.0.0
90
+ */
91
+ todo(message?: string): void;
92
+
93
+ /**
94
+ * This function is used to create subtests under the current test. This function behaves in
95
+ * the same fashion as the top level {@link test} function.
96
+ * @since v18.0.0
97
+ * @param name The name of the test, which is displayed when reporting test results.
98
+ * Default: The `name` property of fn, or `'<anonymous>'` if `fn` does not have a name.
99
+ * @param options Configuration options for the test
100
+ * @param fn The function under test. This first argument to this function is a
101
+ * {@link TestContext} object. If the test uses callbacks, the callback function is
102
+ * passed as the second argument. Default: A no-op function.
103
+ * @returns A {@link Promise} resolved with `undefined` once the test completes.
104
+ */
105
+ test: typeof test;
106
+ }
107
+
108
+ interface TestOptions {
109
+ /**
110
+ * The number of tests that can be run at the same time. If unspecified, subtests inherit this
111
+ * value from their parent.
112
+ * @default 1
113
+ */
114
+ concurrency?: number;
115
+
116
+ /**
117
+ * If truthy, and the test context is configured to run `only` tests, then this test will be
118
+ * run. Otherwise, the test is skipped.
119
+ * @default false
120
+ */
121
+ only?: boolean;
122
+
123
+ /**
124
+ * If truthy, the test is skipped. If a string is provided, that string is displayed in the
125
+ * test results as the reason for skipping the test.
126
+ * @default false
127
+ */
128
+ skip?: boolean | string;
129
+
130
+ /**
131
+ * If truthy, the test marked as `TODO`. If a string is provided, that string is displayed in
132
+ * the test results as the reason why the test is `TODO`.
133
+ * @default false
134
+ */
135
+ todo?: boolean | string;
136
+ }
137
+
138
+ export {
139
+ test as default,
140
+ test,
141
+ };
142
+ }
@@ -6,7 +6,7 @@
6
6
  * The timer functions within Node.js implement a similar API as the timers API
7
7
  * provided by Web Browsers but use a different internal implementation that is
8
8
  * built around the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout).
9
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/timers.js)
9
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/timers.js)
10
10
  */
11
11
  declare module 'timers' {
12
12
  import { Abortable } from 'node:events';
@@ -69,7 +69,7 @@ declare module 'timers' {
69
69
  namespace setTimeout {
70
70
  const __promisify__: typeof setTimeoutPromise;
71
71
  }
72
- function clearTimeout(timeoutId: NodeJS.Timeout | undefined): void;
72
+ function clearTimeout(timeoutId: NodeJS.Timeout | string | number | undefined): void;
73
73
  function setInterval<TArgs extends any[]>(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timer;
74
74
  // util.promisify no rest args compability
75
75
  // tslint:disable-next-line void-return
@@ -77,7 +77,7 @@ declare module 'timers' {
77
77
  namespace setInterval {
78
78
  const __promisify__: typeof setIntervalPromise;
79
79
  }
80
- function clearInterval(intervalId: NodeJS.Timeout | undefined): void;
80
+ function clearInterval(intervalId: NodeJS.Timeout | string | number | undefined): void;
81
81
  function setImmediate<TArgs extends any[]>(callback: (...args: TArgs) => void, ...args: TArgs): NodeJS.Immediate;
82
82
  // util.promisify no rest args compability
83
83
  // tslint:disable-next-line void-return
@@ -6,7 +6,7 @@
6
6
  * ```js
7
7
  * const tls = require('tls');
8
8
  * ```
9
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/tls.js)
9
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/tls.js)
10
10
  */
11
11
  declare module 'tls' {
12
12
  import { X509Certificate } from 'node:crypto';
@@ -143,8 +143,8 @@ declare module 'tls' {
143
143
  */
144
144
  constructor(socket: net.Socket, options?: TLSSocketOptions);
145
145
  /**
146
- * Returns `true` if the peer certificate was signed by one of the CAs specified
147
- * when creating the `tls.TLSSocket` instance, otherwise `false`.
146
+ * This property is `true` if the peer certificate was signed by one of the CAs
147
+ * specified when creating the `tls.TLSSocket` instance, otherwise `false`.
148
148
  * @since v0.11.4
149
149
  */
150
150
  authorized: boolean;
@@ -158,7 +158,7 @@ declare module 'tls' {
158
158
  * Always returns `true`. This may be used to distinguish TLS sockets from regular`net.Socket` instances.
159
159
  * @since v0.11.4
160
160
  */
161
- encrypted: boolean;
161
+ encrypted: true;
162
162
  /**
163
163
  * String containing the selected ALPN protocol.
164
164
  * Before a handshake has completed, this value is always null.
@@ -343,9 +343,9 @@ declare module 'tls' {
343
343
  * When enabled, TLS packet trace information is written to `stderr`. This can be
344
344
  * used to debug TLS connection problems.
345
345
  *
346
- * Note: The format of the output is identical to the output of `openssl s_client -trace` or `openssl s_server -trace`. While it is produced by OpenSSL's`SSL_trace()` function, the format is
347
- * undocumented, can change without notice,
348
- * and should not be relied on.
346
+ * The format of the output is identical to the output of`openssl s_client -trace` or `openssl s_server -trace`. While it is produced by
347
+ * OpenSSL's `SSL_trace()` function, the format is undocumented, can change
348
+ * without notice, and should not be relied on.
349
349
  * @since v12.2.0
350
350
  */
351
351
  enableTrace(): void;
@@ -374,7 +374,7 @@ declare module 'tls' {
374
374
  * 128,
375
375
  * 'client finished');
376
376
  *
377
- *
377
+ * /*
378
378
  * Example return value of keyingMaterial:
379
379
  * <Buffer 76 26 af 99 c5 56 8e 42 09 91 ef 9f 93 cb ad 6c 7b 65 f8 53 f1 d8 d9
380
380
  * 12 5a 33 b8 b5 25 df 7b 37 9f e0 e2 4f b8 67 83 a3 2f cd 5d 41 42 4c 91
@@ -814,13 +814,19 @@ declare module 'tls' {
814
814
  * Returns [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object, populating it with `reason`, `host`, and `cert` on
815
815
  * failure. On success, returns [undefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Undefined_type).
816
816
  *
817
- * This function can be overwritten by providing alternative function as part of
818
- * the `options.checkServerIdentity` option passed to `tls.connect()`. The
817
+ * This function is intended to be used in combination with the`checkServerIdentity` option that can be passed to {@link connect} and as
818
+ * such operates on a `certificate object`. For other purposes, consider using `x509.checkHost()` instead.
819
+ *
820
+ * This function can be overwritten by providing an alternative function as the`options.checkServerIdentity` option that is passed to `tls.connect()`. The
819
821
  * overwriting function can call `tls.checkServerIdentity()` of course, to augment
820
822
  * the checks done with additional verification.
821
823
  *
822
824
  * This function is only called if the certificate passed all other checks, such as
823
825
  * being issued by trusted CA (`options.ca`).
826
+ *
827
+ * Earlier versions of Node.js incorrectly accepted certificates for a given`hostname` if a matching `uniformResourceIdentifier` subject alternative name
828
+ * was present (see [CVE-2021-44531](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44531)). Applications that wish to accept`uniformResourceIdentifier` subject alternative names can use
829
+ * a custom`options.checkServerIdentity` function that implements the desired behavior.
824
830
  * @since v0.8.4
825
831
  * @param hostname The host name or IP address to verify the certificate against.
826
832
  * @param cert A `certificate object` representing the peer's certificate.
@@ -973,6 +979,8 @@ declare module 'tls' {
973
979
  * lower-case for historical reasons, but must be uppercased to be used in
974
980
  * the `ciphers` option of {@link createSecureContext}.
975
981
  *
982
+ * Not all supported ciphers are enabled by default. See `Modifying the default TLS cipher suite`.
983
+ *
976
984
  * Cipher names that start with `'tls_'` are for TLSv1.3, all the others are for
977
985
  * TLSv1.2 and below.
978
986
  *
@@ -66,6 +66,16 @@
66
66
  * node --trace-event-categories v8 --trace-event-file-pattern '${pid}-${rotation}.log' server.js
67
67
  * ```
68
68
  *
69
+ * To guarantee that the log file is properly generated after signal events like`SIGINT`, `SIGTERM`, or `SIGBREAK`, make sure to have the appropriate handlers
70
+ * in your code, such as:
71
+ *
72
+ * ```js
73
+ * process.on('SIGINT', function onSigint() {
74
+ * console.info('Received SIGINT.');
75
+ * process.exit(130); // Or applicable exit code depending on OS and signal
76
+ * });
77
+ * ```
78
+ *
69
79
  * The tracing system uses the same time source
70
80
  * as the one used by `process.hrtime()`.
71
81
  * However the trace-event timestamps are expressed in microseconds,
@@ -73,7 +83,7 @@
73
83
  *
74
84
  * The features from this module are not available in `Worker` threads.
75
85
  * @experimental
76
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/trace_events.js)
86
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/trace_events.js)
77
87
  */
78
88
  declare module 'trace_events' {
79
89
  /**
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * In most cases, there should be little to no reason for an application to
24
24
  * manually create instances of the `tty.ReadStream` and `tty.WriteStream`classes.
25
- * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/tty.js)
25
+ * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/tty.js)
26
26
  */
27
27
  declare module 'tty' {
28
28
  import * as net from 'node:net';
@@ -52,7 +52,9 @@ declare module 'tty' {
52
52
  *
53
53
  * When in raw mode, input is always available character-by-character, not
54
54
  * including modifiers. Additionally, all special processing of characters by the
55
- * terminal is disabled, including echoing input characters.Ctrl+C will no longer cause a `SIGINT` when in this mode.
55
+ * terminal is disabled, including echoing input
56
+ * characters. Ctrl+C will no longer cause a `SIGINT` when
57
+ * in this mode.
56
58
  * @since v0.7.7
57
59
  * @param mode If `true`, configures the `tty.ReadStream` to operate as a raw device. If `false`, configures the `tty.ReadStream` to operate in its default mode. The `readStream.isRaw`
58
60
  * property will be set to the resulting mode.