cloudstructs 0.1.39 → 0.2.0

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 (349) hide show
  1. package/.gitattributes +19 -19
  2. package/.jsii +2743 -1551
  3. package/API.md +71 -71
  4. package/README.md +2 -0
  5. package/lib/codecommit-mirror/index.d.ts +6 -6
  6. package/lib/codecommit-mirror/index.js +13 -12
  7. package/lib/ecs-service-roller/index.d.ts +5 -5
  8. package/lib/ecs-service-roller/index.js +10 -9
  9. package/lib/email-receiver/receiver.d.ts +5 -5
  10. package/lib/email-receiver/receiver.js +15 -14
  11. package/lib/saml-identity-provider/index.d.ts +4 -4
  12. package/lib/saml-identity-provider/index.js +10 -9
  13. package/lib/slack-events/index.d.ts +5 -4
  14. package/lib/slack-events/index.js +13 -14
  15. package/lib/slack-textract/index.d.ts +6 -5
  16. package/lib/slack-textract/index.js +12 -11
  17. package/lib/state-machine-cr-provider/index.d.ts +2 -1
  18. package/lib/state-machine-cr-provider/index.js +14 -13
  19. package/lib/static-website/index.d.ts +6 -6
  20. package/lib/static-website/index.js +16 -15
  21. package/lib/url-shortener/index.d.ts +8 -7
  22. package/lib/url-shortener/index.handler.js +2 -1
  23. package/lib/url-shortener/index.js +19 -18
  24. package/node_modules/@sindresorhus/is/dist/index.d.ts +9 -4
  25. package/node_modules/@sindresorhus/is/dist/index.js +9 -0
  26. package/node_modules/@sindresorhus/is/package.json +1 -1
  27. package/node_modules/@sindresorhus/is/readme.md +26 -0
  28. package/node_modules/@slack/logger/node_modules/@types/node/README.md +3 -3
  29. package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +1 -1
  30. package/node_modules/@slack/logger/node_modules/@types/node/async_hooks.d.ts +1 -1
  31. package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +4 -4
  32. package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +31 -20
  33. package/node_modules/@slack/logger/node_modules/@types/node/cluster.d.ts +1 -1
  34. package/node_modules/@slack/logger/node_modules/@types/node/console.d.ts +6 -1
  35. package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +106 -23
  36. package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +10 -10
  37. package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +7 -1
  38. package/node_modules/@slack/logger/node_modules/@types/node/dns/promises.d.ts +12 -1
  39. package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +13 -2
  40. package/node_modules/@slack/logger/node_modules/@types/node/domain.d.ts +1 -1
  41. package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +2 -2
  42. package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +107 -13
  43. package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +107 -46
  44. package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +0 -1
  45. package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +18 -7
  46. package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +2 -2
  47. package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +1 -1
  48. package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +4 -4
  49. package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +9 -2
  50. package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +3 -3
  51. package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +5 -5
  52. package/node_modules/@slack/logger/node_modules/@types/node/package.json +13 -13
  53. package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +1 -1
  54. package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +3 -3
  55. package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +8 -4
  56. package/node_modules/@slack/logger/node_modules/@types/node/punycode.d.ts +3 -3
  57. package/node_modules/@slack/logger/node_modules/@types/node/querystring.d.ts +9 -9
  58. package/node_modules/@slack/logger/node_modules/@types/node/readline.d.ts +2 -1
  59. package/node_modules/@slack/logger/node_modules/@types/node/repl.d.ts +1 -1
  60. package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +385 -0
  61. package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +75 -7
  62. package/node_modules/@slack/logger/node_modules/@types/node/string_decoder.d.ts +1 -1
  63. package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +1 -1
  64. package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +6 -6
  65. package/node_modules/@slack/logger/node_modules/@types/node/trace_events.d.ts +2 -2
  66. package/node_modules/@slack/logger/node_modules/@types/node/tty.d.ts +2 -4
  67. package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +26 -3
  68. package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +49 -11
  69. package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +2 -2
  70. package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +6 -3
  71. package/node_modules/@slack/logger/node_modules/@types/node/wasi.d.ts +9 -4
  72. package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +4 -4
  73. package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +1 -1
  74. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +3 -3
  75. package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +1 -1
  76. package/node_modules/@slack/web-api/node_modules/@types/node/async_hooks.d.ts +1 -1
  77. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +4 -4
  78. package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +31 -20
  79. package/node_modules/@slack/web-api/node_modules/@types/node/cluster.d.ts +1 -1
  80. package/node_modules/@slack/web-api/node_modules/@types/node/console.d.ts +6 -1
  81. package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +106 -23
  82. package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +10 -10
  83. package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +7 -1
  84. package/node_modules/@slack/web-api/node_modules/@types/node/dns/promises.d.ts +12 -1
  85. package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +13 -2
  86. package/node_modules/@slack/web-api/node_modules/@types/node/domain.d.ts +1 -1
  87. package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +2 -2
  88. package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +107 -13
  89. package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +107 -46
  90. package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +0 -1
  91. package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +18 -7
  92. package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +2 -2
  93. package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +1 -1
  94. package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +4 -4
  95. package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +9 -2
  96. package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +3 -3
  97. package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +5 -5
  98. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +13 -13
  99. package/node_modules/@slack/web-api/node_modules/@types/node/path.d.ts +1 -1
  100. package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +3 -3
  101. package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +8 -4
  102. package/node_modules/@slack/web-api/node_modules/@types/node/punycode.d.ts +3 -3
  103. package/node_modules/@slack/web-api/node_modules/@types/node/querystring.d.ts +9 -9
  104. package/node_modules/@slack/web-api/node_modules/@types/node/readline.d.ts +2 -1
  105. package/node_modules/@slack/web-api/node_modules/@types/node/repl.d.ts +1 -1
  106. package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +385 -0
  107. package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +75 -7
  108. package/node_modules/@slack/web-api/node_modules/@types/node/string_decoder.d.ts +1 -1
  109. package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +1 -1
  110. package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +6 -6
  111. package/node_modules/@slack/web-api/node_modules/@types/node/trace_events.d.ts +2 -2
  112. package/node_modules/@slack/web-api/node_modules/@types/node/tty.d.ts +2 -4
  113. package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +26 -3
  114. package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +49 -11
  115. package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +2 -2
  116. package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +6 -3
  117. package/node_modules/@slack/web-api/node_modules/@types/node/wasi.d.ts +9 -4
  118. package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +4 -4
  119. package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +1 -1
  120. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +3 -3
  121. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +1 -1
  122. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +1 -1
  123. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +4 -4
  124. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +31 -20
  125. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +1 -1
  126. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +6 -1
  127. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +106 -23
  128. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +10 -10
  129. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +7 -1
  130. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +12 -1
  131. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +13 -2
  132. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +1 -1
  133. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +2 -2
  134. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +107 -13
  135. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +107 -46
  136. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +0 -1
  137. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +18 -7
  138. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +2 -2
  139. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +1 -1
  140. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +4 -4
  141. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +9 -2
  142. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +3 -3
  143. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +5 -5
  144. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +13 -13
  145. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +1 -1
  146. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +3 -3
  147. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +8 -4
  148. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +3 -3
  149. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +9 -9
  150. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +2 -1
  151. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +1 -1
  152. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +385 -0
  153. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +75 -7
  154. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +1 -1
  155. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +1 -1
  156. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +6 -6
  157. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +2 -2
  158. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +2 -4
  159. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +26 -3
  160. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +49 -11
  161. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +2 -2
  162. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +6 -3
  163. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +9 -4
  164. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +4 -4
  165. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +1 -1
  166. package/node_modules/@types/is-stream/node_modules/@types/node/README.md +3 -3
  167. package/node_modules/@types/is-stream/node_modules/@types/node/assert.d.ts +1 -1
  168. package/node_modules/@types/is-stream/node_modules/@types/node/async_hooks.d.ts +1 -1
  169. package/node_modules/@types/is-stream/node_modules/@types/node/buffer.d.ts +4 -4
  170. package/node_modules/@types/is-stream/node_modules/@types/node/child_process.d.ts +31 -20
  171. package/node_modules/@types/is-stream/node_modules/@types/node/cluster.d.ts +1 -1
  172. package/node_modules/@types/is-stream/node_modules/@types/node/console.d.ts +6 -1
  173. package/node_modules/@types/is-stream/node_modules/@types/node/crypto.d.ts +106 -23
  174. package/node_modules/@types/is-stream/node_modules/@types/node/dgram.d.ts +10 -10
  175. package/node_modules/@types/is-stream/node_modules/@types/node/diagnostics_channel.d.ts +7 -1
  176. package/node_modules/@types/is-stream/node_modules/@types/node/dns/promises.d.ts +12 -1
  177. package/node_modules/@types/is-stream/node_modules/@types/node/dns.d.ts +13 -2
  178. package/node_modules/@types/is-stream/node_modules/@types/node/domain.d.ts +1 -1
  179. package/node_modules/@types/is-stream/node_modules/@types/node/events.d.ts +2 -2
  180. package/node_modules/@types/is-stream/node_modules/@types/node/fs/promises.d.ts +107 -13
  181. package/node_modules/@types/is-stream/node_modules/@types/node/fs.d.ts +107 -46
  182. package/node_modules/@types/is-stream/node_modules/@types/node/globals.d.ts +0 -1
  183. package/node_modules/@types/is-stream/node_modules/@types/node/http.d.ts +18 -7
  184. package/node_modules/@types/is-stream/node_modules/@types/node/http2.d.ts +2 -2
  185. package/node_modules/@types/is-stream/node_modules/@types/node/https.d.ts +1 -1
  186. package/node_modules/@types/is-stream/node_modules/@types/node/index.d.ts +4 -4
  187. package/node_modules/@types/is-stream/node_modules/@types/node/inspector.d.ts +9 -2
  188. package/node_modules/@types/is-stream/node_modules/@types/node/net.d.ts +3 -3
  189. package/node_modules/@types/is-stream/node_modules/@types/node/os.d.ts +5 -5
  190. package/node_modules/@types/is-stream/node_modules/@types/node/package.json +13 -13
  191. package/node_modules/@types/is-stream/node_modules/@types/node/path.d.ts +1 -1
  192. package/node_modules/@types/is-stream/node_modules/@types/node/perf_hooks.d.ts +3 -3
  193. package/node_modules/@types/is-stream/node_modules/@types/node/process.d.ts +8 -4
  194. package/node_modules/@types/is-stream/node_modules/@types/node/punycode.d.ts +3 -3
  195. package/node_modules/@types/is-stream/node_modules/@types/node/querystring.d.ts +9 -9
  196. package/node_modules/@types/is-stream/node_modules/@types/node/readline.d.ts +2 -1
  197. package/node_modules/@types/is-stream/node_modules/@types/node/repl.d.ts +1 -1
  198. package/node_modules/@types/is-stream/node_modules/@types/node/stream/web.d.ts +385 -0
  199. package/node_modules/@types/is-stream/node_modules/@types/node/stream.d.ts +75 -7
  200. package/node_modules/@types/is-stream/node_modules/@types/node/string_decoder.d.ts +1 -1
  201. package/node_modules/@types/is-stream/node_modules/@types/node/timers.d.ts +1 -1
  202. package/node_modules/@types/is-stream/node_modules/@types/node/tls.d.ts +6 -6
  203. package/node_modules/@types/is-stream/node_modules/@types/node/trace_events.d.ts +2 -2
  204. package/node_modules/@types/is-stream/node_modules/@types/node/tty.d.ts +2 -4
  205. package/node_modules/@types/is-stream/node_modules/@types/node/url.d.ts +26 -3
  206. package/node_modules/@types/is-stream/node_modules/@types/node/util.d.ts +49 -11
  207. package/node_modules/@types/is-stream/node_modules/@types/node/v8.d.ts +2 -2
  208. package/node_modules/@types/is-stream/node_modules/@types/node/vm.d.ts +6 -3
  209. package/node_modules/@types/is-stream/node_modules/@types/node/wasi.d.ts +9 -4
  210. package/node_modules/@types/is-stream/node_modules/@types/node/worker_threads.d.ts +4 -4
  211. package/node_modules/@types/is-stream/node_modules/@types/node/zlib.d.ts +1 -1
  212. package/node_modules/@types/keyv/README.md +1 -1
  213. package/node_modules/@types/keyv/index.d.ts +10 -3
  214. package/node_modules/@types/keyv/node_modules/@types/node/README.md +3 -3
  215. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +1 -1
  216. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +1 -1
  217. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +4 -4
  218. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +31 -20
  219. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +1 -1
  220. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +6 -1
  221. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +106 -23
  222. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +10 -10
  223. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +7 -1
  224. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +12 -1
  225. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +13 -2
  226. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +1 -1
  227. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +2 -2
  228. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +107 -13
  229. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +107 -46
  230. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +0 -1
  231. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +18 -7
  232. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +2 -2
  233. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +1 -1
  234. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +4 -4
  235. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +9 -2
  236. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +3 -3
  237. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +5 -5
  238. package/node_modules/@types/keyv/node_modules/@types/node/package.json +13 -13
  239. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +1 -1
  240. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +3 -3
  241. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +8 -4
  242. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +3 -3
  243. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +9 -9
  244. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +2 -1
  245. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +1 -1
  246. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +385 -0
  247. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +75 -7
  248. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +1 -1
  249. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +1 -1
  250. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +6 -6
  251. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +2 -2
  252. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +2 -4
  253. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +26 -3
  254. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +49 -11
  255. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +2 -2
  256. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +6 -3
  257. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +9 -4
  258. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +4 -4
  259. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +1 -1
  260. package/node_modules/@types/keyv/package.json +3 -3
  261. package/node_modules/@types/responselike/node_modules/@types/node/README.md +3 -3
  262. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +1 -1
  263. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +1 -1
  264. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +4 -4
  265. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +31 -20
  266. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +1 -1
  267. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +6 -1
  268. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +106 -23
  269. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +10 -10
  270. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +7 -1
  271. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +12 -1
  272. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +13 -2
  273. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +1 -1
  274. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +2 -2
  275. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +107 -13
  276. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +107 -46
  277. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +0 -1
  278. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +18 -7
  279. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +2 -2
  280. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +1 -1
  281. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +4 -4
  282. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +9 -2
  283. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +3 -3
  284. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +5 -5
  285. package/node_modules/@types/responselike/node_modules/@types/node/package.json +13 -13
  286. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +1 -1
  287. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +3 -3
  288. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +8 -4
  289. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +3 -3
  290. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +9 -9
  291. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +2 -1
  292. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +1 -1
  293. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +385 -0
  294. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +75 -7
  295. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +1 -1
  296. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +1 -1
  297. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +6 -6
  298. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +2 -2
  299. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +2 -4
  300. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +26 -3
  301. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +49 -11
  302. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +2 -2
  303. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +6 -3
  304. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +9 -4
  305. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +4 -4
  306. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +1 -1
  307. package/node_modules/axios/CHANGELOG.md +98 -8
  308. package/node_modules/axios/README.md +74 -6
  309. package/node_modules/axios/SECURITY.md +5 -0
  310. package/node_modules/axios/dist/axios.js +2028 -1591
  311. package/node_modules/axios/dist/axios.map +1 -1
  312. package/node_modules/axios/dist/axios.min.js +2 -2
  313. package/node_modules/axios/dist/axios.min.map +1 -1
  314. package/node_modules/axios/index.d.ts +8 -1
  315. package/node_modules/axios/lib/adapters/http.js +33 -5
  316. package/node_modules/axios/lib/adapters/xhr.js +35 -25
  317. package/node_modules/axios/lib/core/Axios.js +60 -7
  318. package/node_modules/axios/lib/core/InterceptorManager.js +4 -2
  319. package/node_modules/axios/lib/core/README.md +1 -0
  320. package/node_modules/axios/lib/core/dispatchRequest.js +6 -3
  321. package/node_modules/axios/lib/core/transformData.js +3 -1
  322. package/node_modules/axios/lib/defaults.js +43 -7
  323. package/node_modules/axios/lib/helpers/validator.js +105 -0
  324. package/node_modules/axios/lib/utils.js +1 -3
  325. package/node_modules/axios/package.json +19 -21
  326. package/node_modules/follow-redirects/index.js +59 -21
  327. package/node_modules/follow-redirects/package.json +1 -1
  328. package/node_modules/got/dist/source/as-promise/parse-body.d.ts +1 -1
  329. package/node_modules/got/dist/source/as-promise/types.js +2 -0
  330. package/node_modules/got/dist/source/core/index.d.ts +1 -1
  331. package/node_modules/got/dist/source/core/index.js +9 -3
  332. package/node_modules/got/dist/source/types.d.ts +14 -12
  333. package/node_modules/got/package.json +2 -2
  334. package/node_modules/got/readme.md +11 -10
  335. package/node_modules/keyv/LICENSE +1 -1
  336. package/node_modules/keyv/README.md +12 -10
  337. package/node_modules/keyv/package.json +17 -12
  338. package/node_modules/keyv/src/index.js +14 -16
  339. package/node_modules/mime-db/HISTORY.md +13 -0
  340. package/node_modules/mime-db/db.json +54 -0
  341. package/node_modules/mime-db/package.json +7 -7
  342. package/node_modules/mime-types/HISTORY.md +13 -3
  343. package/node_modules/mime-types/package.json +7 -7
  344. package/node_modules/{http2-wrapper/node_modules/quick-lru → quick-lru}/index.d.ts +0 -0
  345. package/node_modules/{http2-wrapper/node_modules/quick-lru → quick-lru}/index.js +0 -0
  346. package/node_modules/{http2-wrapper/node_modules/quick-lru → quick-lru}/license +0 -0
  347. package/node_modules/{http2-wrapper/node_modules/quick-lru → quick-lru}/package.json +0 -0
  348. package/node_modules/{http2-wrapper/node_modules/quick-lru → quick-lru}/readme.md +0 -0
  349. package/package.json +33 -84
@@ -5,7 +5,7 @@
5
5
  * ```js
6
6
  * import url from 'url';
7
7
  * ```
8
- * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/url.js)
8
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/url.js)
9
9
  */
10
10
  declare module 'url' {
11
11
  import { Blob } from 'node:buffer';
@@ -71,6 +71,30 @@ declare module 'url' {
71
71
  function parse(urlString: string, parseQueryString: false | undefined, slashesDenoteHost?: boolean): UrlWithStringQuery;
72
72
  function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
73
73
  function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url;
74
+ /**
75
+ * The URL object has both a `toString()` method and `href` property that return string serializations of the URL.
76
+ * These are not, however, customizable in any way. The `url.format(URL[, options])` method allows for basic
77
+ * customization of the output.
78
+ * Returns a customizable serialization of a URL `String` representation of a `WHATWG URL` object.
79
+ *
80
+ * ```js
81
+ * import url from 'url';
82
+ * const myURL = new URL('https://a:b@測試?abc#foo');
83
+ *
84
+ * console.log(myURL.href);
85
+ * // Prints https://a:b@xn--g6w251d/?abc#foo
86
+ *
87
+ * console.log(myURL.toString());
88
+ * // Prints https://a:b@xn--g6w251d/?abc#foo
89
+ *
90
+ * console.log(url.format(myURL, { fragment: false, unicode: true, auth: false }));
91
+ * // Prints 'https://測試/?abc'
92
+ * ```
93
+ * @since v7.6.0
94
+ * @param urlObject A `WHATWG URL` object
95
+ * @param options
96
+ */
97
+ function format(urlObject: URL, options?: URLFormatOptions): string;
74
98
  /**
75
99
  * The `url.format()` method returns a formatted URL string derived from`urlObject`.
76
100
  *
@@ -134,7 +158,6 @@ declare module 'url' {
134
158
  * @deprecated Legacy: Use the WHATWG URL API instead.
135
159
  * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.
136
160
  */
137
- function format(urlObject: URL, options?: URLFormatOptions): string;
138
161
  function format(urlObject: UrlObject | string): string;
139
162
  /**
140
163
  * The `url.resolve()` method resolves a target URL relative to a base URL in a
@@ -684,7 +707,7 @@ declare module 'url' {
684
707
  * @since v7.5.0, v6.13.0
685
708
  */
686
709
  class URLSearchParams implements Iterable<[string, string]> {
687
- constructor(init?: URLSearchParams | string | NodeJS.Dict<string | ReadonlyArray<string>> | Iterable<[string, string]> | ReadonlyArray<[string, string]>);
710
+ constructor(init?: URLSearchParams | string | Record<string, string | ReadonlyArray<string>> | Iterable<[string, string]> | ReadonlyArray<[string, string]>);
688
711
  /**
689
712
  * Append a new name-value pair to the query string.
690
713
  */
@@ -6,7 +6,7 @@
6
6
  * ```js
7
7
  * const util = require('util');
8
8
  * ```
9
- * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/util.js)
9
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/util.js)
10
10
  */
11
11
  declare module 'util' {
12
12
  import * as types from 'node:util/types';
@@ -113,6 +113,20 @@ declare module 'util' {
113
113
  * @since v10.0.0
114
114
  */
115
115
  export function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string;
116
+ /**
117
+ * Returns the string name for a numeric error code that comes from a Node.js API.
118
+ * The mapping between error codes and error names is platform-dependent.
119
+ * See `Common System Errors` for the names of common errors.
120
+ *
121
+ * ```js
122
+ * fs.access('file/that/does/not/exist', (err) => {
123
+ * const name = util.getSystemErrorName(err.errno);
124
+ * console.error(name); // ENOENT
125
+ * });
126
+ * ```
127
+ * @since v9.7.0
128
+ */
129
+ export function getSystemErrorName(err: number): string;
116
130
  /**
117
131
  * Returns a Map of all system error codes available from the Node.js API.
118
132
  * The mapping between error codes and error names is platform-dependent.
@@ -141,6 +155,13 @@ declare module 'util' {
141
155
  * @deprecated Since v6.0.0 - Use a third party module instead.
142
156
  */
143
157
  export function log(string: string): void;
158
+ /**
159
+ * Returns the `string` after replacing any surrogate code points
160
+ * (or equivalently, any unpaired surrogate code units) with the
161
+ * Unicode "replacement character" U+FFFD.
162
+ * @since v16.8.0
163
+ */
164
+ export function toUSVString(string: string): string;
144
165
  /**
145
166
  * The `util.inspect()` method returns a string representation of `object` that is
146
167
  * intended for debugging. The output of `util.inspect` may change at any time
@@ -245,7 +266,7 @@ declare module 'util' {
245
266
  * The `showHidden` option allows [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) and
246
267
  * [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) entries to be
247
268
  * inspected. If there are more entries than `maxArrayLength`, there is no
248
- * guarantee which entries are displayed. That means retrieving the same[`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) entries twice may
269
+ * guarantee which entries are displayed. That means retrieving the same [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) entries twice may
249
270
  * result in different output. Furthermore, entries
250
271
  * with no remaining strong references may be garbage collected at any time.
251
272
  *
@@ -307,6 +328,9 @@ declare module 'util' {
307
328
  * Allows changing inspect settings from the repl.
308
329
  */
309
330
  let replDefaults: InspectOptions;
331
+ /**
332
+ * That can be used to declare custom inspect functions.
333
+ */
310
334
  const custom: unique symbol;
311
335
  }
312
336
  /**
@@ -513,6 +537,7 @@ declare module 'util' {
513
537
  * @return The logging function
514
538
  */
515
539
  export function debuglog(section: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger;
540
+ export const debug: typeof debuglog;
516
541
  /**
517
542
  * Returns `true` if the given `object` is a `Boolean`. Otherwise, returns `false`.
518
543
  *
@@ -782,6 +807,16 @@ declare module 'util' {
782
807
  * @since v9.0.0
783
808
  */
784
809
  export function isDeepStrictEqual(val1: unknown, val2: unknown): boolean;
810
+ /**
811
+ * Returns `str` with any ANSI escape codes removed.
812
+ *
813
+ * ```js
814
+ * console.log(util.stripVTControlCharacters('\u001B[4mvalue\u001B[0m'));
815
+ * // Prints "value"
816
+ * ```
817
+ * @since v16.11.0
818
+ */
819
+ export function stripVTControlCharacters(str: string): string;
785
820
  /**
786
821
  * Takes an `async` function (or a function that returns a `Promise`) and returns a
787
822
  * function following the error-first callback style, i.e. taking
@@ -954,10 +989,13 @@ declare module 'util' {
954
989
  ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
955
990
  export function promisify(fn: Function): Function;
956
991
  export namespace promisify {
992
+ /**
993
+ * That can be used to declare custom promisified variants of functions.
994
+ */
957
995
  const custom: unique symbol;
958
996
  }
959
997
  /**
960
- * An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/)`TextDecoder` API.
998
+ * An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextDecoder` API.
961
999
  *
962
1000
  * ```js
963
1001
  * const decoder = new TextDecoder('shift_jis');
@@ -1019,7 +1057,7 @@ declare module 'util' {
1019
1057
  }
1020
1058
  export { types };
1021
1059
  /**
1022
- * An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/)`TextEncoder` API. All
1060
+ * An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextEncoder` API. All
1023
1061
  * instances of `TextEncoder` only support UTF-8 encoding.
1024
1062
  *
1025
1063
  * ```js
@@ -1063,8 +1101,8 @@ declare module 'util/types' {
1063
1101
  declare module 'util/types' {
1064
1102
  import { KeyObject, webcrypto } from 'node:crypto';
1065
1103
  /**
1066
- * Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)
1067
- * or[`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance.
1104
+ * Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) or
1105
+ * [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance.
1068
1106
  *
1069
1107
  * See also `util.types.isArrayBuffer()` and `util.types.isSharedArrayBuffer()`.
1070
1108
  *
@@ -1099,9 +1137,9 @@ declare module 'util/types' {
1099
1137
  */
1100
1138
  function isArrayBuffer(object: unknown): object is ArrayBuffer;
1101
1139
  /**
1102
- * Returns `true` if the value is an instance of one of the [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)views, such as typed array
1103
- * objects or [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView). Equivalent
1104
- * to[`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView).
1140
+ * Returns `true` if the value is an instance of one of the [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) views, such as typed
1141
+ * array objects or [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView). Equivalent to
1142
+ * [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView).
1105
1143
  *
1106
1144
  * ```js
1107
1145
  * util.types.isArrayBufferView(new Int8Array()); // true
@@ -1329,7 +1367,7 @@ declare module 'util/types' {
1329
1367
  */
1330
1368
  function isMap<T>(object: T | {}): object is T extends ReadonlyMap<any, any> ? (unknown extends T ? never : ReadonlyMap<any, any>) : Map<unknown, unknown>;
1331
1369
  /**
1332
- * Returns `true` if the value is an iterator returned for a built-in[`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance.
1370
+ * Returns `true` if the value is an iterator returned for a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance.
1333
1371
  *
1334
1372
  * ```js
1335
1373
  * const map = new Map();
@@ -1415,7 +1453,7 @@ declare module 'util/types' {
1415
1453
  */
1416
1454
  function isSet<T>(object: T | {}): object is T extends ReadonlySet<any> ? (unknown extends T ? never : ReadonlySet<any>) : Set<unknown>;
1417
1455
  /**
1418
- * Returns `true` if the value is an iterator returned for a built-in[`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance.
1456
+ * Returns `true` if the value is an iterator returned for a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance.
1419
1457
  *
1420
1458
  * ```js
1421
1459
  * const set = new Set();
@@ -1,10 +1,10 @@
1
1
  /**
2
- * The `v8` module exposes APIs that are specific to the version of [V8](https://developers.google.com/v8/)built into the Node.js binary. It can be accessed using:
2
+ * The `v8` module exposes APIs that are specific to the version of [V8](https://developers.google.com/v8/) built into the Node.js binary. It can be accessed using:
3
3
  *
4
4
  * ```js
5
5
  * const v8 = require('v8');
6
6
  * ```
7
- * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/v8.js)
7
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/v8.js)
8
8
  */
9
9
  declare module 'v8' {
10
10
  import { Readable } from 'node:stream';
@@ -32,7 +32,7 @@
32
32
  *
33
33
  * console.log(x); // 1; y is not defined.
34
34
  * ```
35
- * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/vm.js)
35
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/vm.js)
36
36
  */
37
37
  declare module 'vm' {
38
38
  interface Context extends NodeJS.Dict<any> {}
@@ -267,13 +267,16 @@ declare module 'vm' {
267
267
  * @since v10.6.0
268
268
  */
269
269
  createCachedData(): Buffer;
270
+ /** @deprecated in favor of `script.createCachedData()` */
271
+ cachedDataProduced?: boolean | undefined;
270
272
  cachedDataRejected?: boolean | undefined;
273
+ cachedData?: Buffer | undefined;
271
274
  }
272
275
  /**
273
276
  * If given a `contextObject`, the `vm.createContext()` method will `prepare
274
277
  * that object` so that it can be used in calls to {@link runInContext} or `script.runInContext()`. Inside such scripts,
275
278
  * the `contextObject` will be the global object, retaining all of its existing
276
- * properties but also having the built-in objects and functions any standard[global object](https://es5.github.io/#x15.1) has. Outside of scripts run by the vm module, global variables
279
+ * properties but also having the built-in objects and functions any standard [global object](https://es5.github.io/#x15.1) has. Outside of scripts run by the vm module, global variables
277
280
  * will remain unchanged.
278
281
  *
279
282
  * ```js
@@ -394,7 +397,7 @@ declare module 'vm' {
394
397
  * ```
395
398
  *
396
399
  * Because `vm.runInThisContext()` does not have access to the local scope,`localVar` is unchanged. In contrast,
397
- * [`eval()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval)_does_ have access to the
400
+ * [`eval()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval) _does_ have access to the
398
401
  * local scope, so the value `localVar` is changed. In this way`vm.runInThisContext()` is much like an [indirect `eval()` call](https://es5.github.io/#x10.4.2), e.g.`(0,eval)('code')`.
399
402
  *
400
403
  * ## Example: Running an HTTP server within a VM
@@ -1,9 +1,9 @@
1
1
  /**
2
- * The WASI API provides an implementation of the [WebAssembly System Interface](https://wasi.dev/)specification. WASI gives sandboxed WebAssembly applications access to the
2
+ * The WASI API provides an implementation of the [WebAssembly System Interface](https://wasi.dev/) specification. WASI gives sandboxed WebAssembly applications access to the
3
3
  * underlying operating system via a collection of POSIX-like functions.
4
4
  *
5
5
  * ```js
6
- * import fs from 'fs';
6
+ * import { readFile } from 'fs/promises';
7
7
  * import { WASI } from 'wasi';
8
8
  * import { argv, env } from 'process';
9
9
  *
@@ -14,9 +14,14 @@
14
14
  * '/sandbox': '/some/real/path/that/wasm/can/access'
15
15
  * }
16
16
  * });
17
+ *
18
+ * // Some WASI binaries require:
19
+ * // const importObject = { wasi_unstable: wasi.wasiImport };
17
20
  * const importObject = { wasi_snapshot_preview1: wasi.wasiImport };
18
21
  *
19
- * const wasm = await WebAssembly.compile(fs.readFileSync('./demo.wasm'));
22
+ * const wasm = await WebAssembly.compile(
23
+ * await readFile(new URL('./demo.wasm', import.meta.url))
24
+ * );
20
25
  * const instance = await WebAssembly.instantiate(wasm, importObject);
21
26
  *
22
27
  * wasi.start(instance);
@@ -63,7 +68,7 @@
63
68
  * The `--experimental-wasi-unstable-preview1` CLI argument is needed for this
64
69
  * example to run.
65
70
  * @experimental
66
- * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/wasi.js)
71
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/wasi.js)
67
72
  */
68
73
  declare module 'wasi' {
69
74
  interface WASIOptions {
@@ -49,7 +49,7 @@
49
49
  *
50
50
  * Worker threads inherit non-process-specific options by default. Refer to `Worker constructor options` to know how to customize worker thread options,
51
51
  * specifically `argv` and `execArgv` options.
52
- * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/worker_threads.js)
52
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/worker_threads.js)
53
53
  */
54
54
  declare module 'worker_threads' {
55
55
  import { Blob } from 'node:buffer';
@@ -94,7 +94,7 @@ declare module 'worker_threads' {
94
94
  * asynchronous, two-way communications channel. It can be used to transfer
95
95
  * structured data, memory regions and other `MessagePort`s between different `Worker` s.
96
96
  *
97
- * This implementation matches [browser `MessagePort`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort)s.
97
+ * This implementation matches [browser `MessagePort`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort) s.
98
98
  * @since v10.5.0
99
99
  */
100
100
  class MessagePort extends EventEmitter {
@@ -572,11 +572,11 @@ declare module 'worker_threads' {
572
572
  * takes its place.
573
573
  *
574
574
  * The returned `MessagePort` is an object in the target context and
575
- * inherits from its global `Object` class. Objects passed to the[`port.onmessage()`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage) listener are also created in the
575
+ * inherits from its global `Object` class. Objects passed to the [`port.onmessage()`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage) listener are also created in the
576
576
  * target context
577
577
  * and inherit from its global `Object` class.
578
578
  *
579
- * However, the created `MessagePort` no longer inherits from[`EventTarget`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget), and only
579
+ * However, the created `MessagePort` no longer inherits from [`EventTarget`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget), and only
580
580
  * [`port.onmessage()`](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage) can be used to receive
581
581
  * events using it.
582
582
  * @since v11.13.0
@@ -88,7 +88,7 @@
88
88
  * });
89
89
  * ```
90
90
  * @since v0.5.8
91
- * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/zlib.js)
91
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/zlib.js)
92
92
  */
93
93
  declare module 'zlib' {
94
94
  import * as stream from 'node:stream';
@@ -2,15 +2,15 @@
2
2
  > `npm install --save @types/node`
3
3
 
4
4
  # Summary
5
- This package contains type definitions for Node.js (http://nodejs.org/).
5
+ This package contains type definitions for Node.js (https://nodejs.org/).
6
6
 
7
7
  # Details
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 31 Aug 2021 23:01:31 GMT
11
+ * Last updated: Tue, 07 Dec 2021 06:31:07 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
15
15
  # Credits
16
- These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Jason Kwok](https://github.com/JasonHK), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), and [Linus Unnebäck](https://github.com/LinusU).
16
+ These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Seth Westphal](https://github.com/westy92), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The `assert` module provides a set of assertion functions for verifying
3
3
  * invariants.
4
- * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/assert.js)
4
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/assert.js)
5
5
  */
6
6
  declare module 'assert' {
7
7
  /**
@@ -6,7 +6,7 @@
6
6
  * import async_hooks from 'async_hooks';
7
7
  * ```
8
8
  * @experimental
9
- * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/async_hooks.js)
9
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/async_hooks.js)
10
10
  */
11
11
  declare module 'async_hooks' {
12
12
  /**
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * The `Buffer` class is a subclass of JavaScript's [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) class and
6
6
  * extends it with methods that cover additional use cases. Node.js APIs accept
7
- * plain [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)s wherever `Buffer`s are supported as well.
7
+ * plain [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) s wherever `Buffer`s are supported as well.
8
8
  *
9
9
  * While the `Buffer` class is available within the global scope, it is still
10
10
  * recommended to explicitly reference it via an import or require statement.
@@ -41,7 +41,7 @@
41
41
  * // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74].
42
42
  * const buf7 = Buffer.from('tést', 'latin1');
43
43
  * ```
44
- * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/buffer.js)
44
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/buffer.js)
45
45
  */
46
46
  declare module 'buffer' {
47
47
  import { BinaryLike } from 'node:crypto';
@@ -137,7 +137,7 @@ declare module 'buffer' {
137
137
  */
138
138
  constructor(sources: Array<BinaryLike | Blob>, options?: BlobOptions);
139
139
  /**
140
- * Returns a promise that fulfills with an [&lt;ArrayBuffer&gt;](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of
140
+ * Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of
141
141
  * the `Blob` data.
142
142
  * @since v15.7.0
143
143
  */
@@ -176,7 +176,7 @@ declare module 'buffer' {
176
176
  /**
177
177
  * Raw data is stored in instances of the Buffer class.
178
178
  * A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized.
179
- * Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex'
179
+ * Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex'
180
180
  */
181
181
  interface BufferConstructor {
182
182
  /**
@@ -60,7 +60,7 @@
60
60
  * For certain use cases, such as automating shell scripts, the `synchronous counterparts` may be more convenient. In many cases, however,
61
61
  * the synchronous methods can have significant impact on performance due to
62
62
  * stalling the event loop while spawned processes complete.
63
- * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/child_process.js)
63
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/child_process.js)
64
64
  */
65
65
  declare module 'child_process' {
66
66
  import { ObjectEncodingOptions } from 'node:fs';
@@ -70,6 +70,14 @@ declare module 'child_process' {
70
70
  import { URL } from 'node:url';
71
71
  type Serializable = string | object | number | boolean | bigint;
72
72
  type SendHandle = net.Socket | net.Server;
73
+ /**
74
+ * Instances of the `ChildProcess` represent spawned child processes.
75
+ *
76
+ * Instances of `ChildProcess` are not intended to be created directly. Rather,
77
+ * use the {@link spawn}, {@link exec},{@link execFile}, or {@link fork} methods to create
78
+ * instances of `ChildProcess`.
79
+ * @since v2.2.0
80
+ */
73
81
  class ChildProcess extends EventEmitter {
74
82
  /**
75
83
  * A `Writable Stream` that represents the child process's `stdin`.
@@ -236,8 +244,8 @@ declare module 'child_process' {
236
244
  readonly spawnfile: string;
237
245
  /**
238
246
  * The `subprocess.kill()` method sends a signal to the child process. If no
239
- * argument is given, the process will be sent the `'SIGTERM'` signal. See[`signal(7)`](http://man7.org/linux/man-pages/man7/signal.7.html) for a list of available signals. This function
240
- * returns `true` if[`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) succeeds, and `false` otherwise.
247
+ * argument is given, the process will be sent the `'SIGTERM'` signal. See [`signal(7)`](http://man7.org/linux/man-pages/man7/signal.7.html) for a list of available signals. This function
248
+ * returns `true` if [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) succeeds, and `false` otherwise.
241
249
  *
242
250
  * ```js
243
251
  * const { spawn } = require('child_process');
@@ -781,6 +789,7 @@ declare module 'child_process' {
781
789
  function spawn(command: string, args: ReadonlyArray<string>, options: SpawnOptions): ChildProcess;
782
790
  interface ExecOptions extends CommonOptions {
783
791
  shell?: string | undefined;
792
+ signal?: AbortSignal | undefined;
784
793
  maxBuffer?: number | undefined;
785
794
  killSignal?: NodeJS.Signals | number | undefined;
786
795
  }
@@ -799,7 +808,7 @@ declare module 'child_process' {
799
808
  /**
800
809
  * Spawns a shell then executes the `command` within that shell, buffering any
801
810
  * generated output. The `command` string passed to the exec function is processed
802
- * directly by the shell and special characters (vary based on[shell](https://en.wikipedia.org/wiki/List_of_command-line_interpreters))
811
+ * directly by the shell and special characters (vary based on [shell](https://en.wikipedia.org/wiki/List_of_command-line_interpreters))
803
812
  * need to be dealt with accordingly:
804
813
  *
805
814
  * ```js
@@ -1271,12 +1280,13 @@ declare module 'child_process' {
1271
1280
  * @param args List of string arguments.
1272
1281
  */
1273
1282
  function spawnSync(command: string): SpawnSyncReturns<Buffer>;
1274
- function spawnSync(command: string, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
1275
- function spawnSync(command: string, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
1276
- function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
1277
- function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
1278
- function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
1279
- function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<Buffer>;
1283
+ function spawnSync(command: string, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
1284
+ function spawnSync(command: string, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
1285
+ function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
1286
+ function spawnSync(command: string, args: ReadonlyArray<string>): SpawnSyncReturns<Buffer>;
1287
+ function spawnSync(command: string, args: ReadonlyArray<string>, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns<string>;
1288
+ function spawnSync(command: string, args: ReadonlyArray<string>, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns<Buffer>;
1289
+ function spawnSync(command: string, args?: ReadonlyArray<string>, options?: SpawnSyncOptions): SpawnSyncReturns<string | Buffer>;
1280
1290
  interface CommonExecOptions extends CommonOptions {
1281
1291
  input?: string | NodeJS.ArrayBufferView | undefined;
1282
1292
  stdio?: StdioOptions | undefined;
@@ -1310,9 +1320,9 @@ declare module 'child_process' {
1310
1320
  * @return The stdout from the command.
1311
1321
  */
1312
1322
  function execSync(command: string): Buffer;
1313
- function execSync(command: string, options?: ExecSyncOptionsWithStringEncoding): string;
1314
- function execSync(command: string, options?: ExecSyncOptionsWithBufferEncoding): Buffer;
1315
- function execSync(command: string, options?: ExecSyncOptions): Buffer;
1323
+ function execSync(command: string, options: ExecSyncOptionsWithStringEncoding): string;
1324
+ function execSync(command: string, options: ExecSyncOptionsWithBufferEncoding): Buffer;
1325
+ function execSync(command: string, options?: ExecSyncOptions): string | Buffer;
1316
1326
  interface ExecFileSyncOptions extends CommonExecOptions {
1317
1327
  shell?: boolean | string | undefined;
1318
1328
  }
@@ -1320,7 +1330,7 @@ declare module 'child_process' {
1320
1330
  encoding: BufferEncoding;
1321
1331
  }
1322
1332
  interface ExecFileSyncOptionsWithBufferEncoding extends ExecFileSyncOptions {
1323
- encoding: BufferEncoding; // specify `null`.
1333
+ encoding?: 'buffer' | null; // specify `null`.
1324
1334
  }
1325
1335
  /**
1326
1336
  * The `child_process.execFileSync()` method is generally identical to {@link execFile} with the exception that the method will not
@@ -1343,12 +1353,13 @@ declare module 'child_process' {
1343
1353
  * @return The stdout from the command.
1344
1354
  */
1345
1355
  function execFileSync(file: string): Buffer;
1346
- function execFileSync(file: string, options?: ExecFileSyncOptionsWithStringEncoding): string;
1347
- function execFileSync(file: string, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
1348
- function execFileSync(file: string, options?: ExecFileSyncOptions): Buffer;
1349
- function execFileSync(file: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptionsWithStringEncoding): string;
1350
- function execFileSync(file: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer;
1351
- function execFileSync(file: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): Buffer;
1356
+ function execFileSync(file: string, options: ExecFileSyncOptionsWithStringEncoding): string;
1357
+ function execFileSync(file: string, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
1358
+ function execFileSync(file: string, options?: ExecFileSyncOptions): string | Buffer;
1359
+ function execFileSync(file: string, args: ReadonlyArray<string>): Buffer;
1360
+ function execFileSync(file: string, args: ReadonlyArray<string>, options: ExecFileSyncOptionsWithStringEncoding): string;
1361
+ function execFileSync(file: string, args: ReadonlyArray<string>, options: ExecFileSyncOptionsWithBufferEncoding): Buffer;
1362
+ function execFileSync(file: string, args?: ReadonlyArray<string>, options?: ExecFileSyncOptions): string | Buffer;
1352
1363
  }
1353
1364
  declare module 'node:child_process' {
1354
1365
  export * from 'child_process';
@@ -49,7 +49,7 @@
49
49
  * ```
50
50
  *
51
51
  * On Windows, it is not yet possible to set up a named pipe server in a worker.
52
- * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/cluster.js)
52
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/cluster.js)
53
53
  */
54
54
  declare module 'cluster' {
55
55
  import * as child from 'node:child_process';
@@ -53,7 +53,7 @@
53
53
  * myConsole.warn(`Danger ${name}! Danger!`);
54
54
  * // Prints: Danger Will Robinson! Danger!, to err
55
55
  * ```
56
- * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/console.js)
56
+ * @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/console.js)
57
57
  */
58
58
  declare module 'console' {
59
59
  import console = require('node:console');
@@ -394,6 +394,11 @@ declare module 'node:console' {
394
394
  ignoreErrors?: boolean | undefined;
395
395
  colorMode?: boolean | 'auto' | undefined;
396
396
  inspectOptions?: InspectOptions | undefined;
397
+ /**
398
+ * Set group indentation
399
+ * @default 2
400
+ */
401
+ groupIndentation?: number | undefined;
397
402
  }
398
403
  interface ConsoleConstructor {
399
404
  prototype: Console;