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';
@@ -1,18 +1,109 @@
1
1
  # Changelog
2
2
 
3
+ ### 0.21.4 (September 6, 2021)
4
+
5
+ Fixes and Functionality:
6
+ - Fixing JSON transform when data is stringified. Providing backward compatibility and complying to the JSON RFC standard ([#4020](https://github.com/axios/axios/pull/4020))
7
+
8
+ Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
9
+
10
+ - [Jay](mailto:jasonsaayman@gmail.com)
11
+ - [Guillaume Fortaine](https://github.com/gfortaine)
12
+ - [Yusuke Kawasaki](https://github.com/kawanet)
13
+ - [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
14
+
15
+ ### 0.21.3 (September 4, 2021)
16
+
17
+ Fixes and Functionality:
18
+ - Fixing response interceptor not being called when request interceptor is attached ([#4013](https://github.com/axios/axios/pull/4013))
19
+
20
+ Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
21
+
22
+ - [Jay](mailto:jasonsaayman@gmail.com)
23
+ - [Julian Hollmann](https://github.com/nerdbeere)
24
+
25
+ ### 0.21.2 (September 4, 2021)
26
+
27
+ Fixes and Functionality:
28
+
29
+ - Updating axios requests to be delayed by pre-emptive promise creation ([#2702](https://github.com/axios/axios/pull/2702))
30
+ - Adding "synchronous" and "runWhen" options to interceptors api ([#2702](https://github.com/axios/axios/pull/2702))
31
+ - Updating of transformResponse ([#3377](https://github.com/axios/axios/pull/3377))
32
+ - Adding ability to omit User-Agent header ([#3703](https://github.com/axios/axios/pull/3703))
33
+ - Adding multiple JSON improvements ([#3688](https://github.com/axios/axios/pull/3688), [#3763](https://github.com/axios/axios/pull/3763))
34
+ - Fixing quadratic runtime and extra memory usage when setting a maxContentLength ([#3738](https://github.com/axios/axios/pull/3738))
35
+ - Adding parseInt to config.timeout ([#3781](https://github.com/axios/axios/pull/3781))
36
+ - Adding custom return type support to interceptor ([#3783](https://github.com/axios/axios/pull/3783))
37
+ - Adding security fix for ReDoS vulnerability ([#3980](https://github.com/axios/axios/pull/3980))
38
+
39
+ Internal and Tests:
40
+
41
+ - Updating build dev dependancies ([#3401](https://github.com/axios/axios/pull/3401))
42
+ - Fixing builds running on Travis CI ([#3538](https://github.com/axios/axios/pull/3538))
43
+ - Updating follow rediect version ([#3694](https://github.com/axios/axios/pull/3694), [#3771](https://github.com/axios/axios/pull/3771))
44
+ - Updating karma sauce launcher to fix failing sauce tests ([#3712](https://github.com/axios/axios/pull/3712), [#3717](https://github.com/axios/axios/pull/3717))
45
+ - Updating content-type header for application/json to not contain charset field, according do RFC 8259 ([#2154](https://github.com/axios/axios/pull/2154))
46
+ - Fixing tests by bumping karma-sauce-launcher version ([#3813](https://github.com/axios/axios/pull/3813))
47
+ - Changing testing process from Travis CI to GitHub Actions ([#3938](https://github.com/axios/axios/pull/3938))
48
+
49
+ Documentation:
50
+
51
+ - Updating documentation around the use of `AUTH_TOKEN` with multiple domain endpoints ([#3539](https://github.com/axios/axios/pull/3539))
52
+ - Remove duplication of item in changelog ([#3523](https://github.com/axios/axios/pull/3523))
53
+ - Fixing gramatical errors ([#2642](https://github.com/axios/axios/pull/2642))
54
+ - Fixing spelling error ([#3567](https://github.com/axios/axios/pull/3567))
55
+ - Moving gitpod metion ([#2637](https://github.com/axios/axios/pull/2637))
56
+ - Adding new axios documentation website link ([#3681](https://github.com/axios/axios/pull/3681), [#3707](https://github.com/axios/axios/pull/3707))
57
+ - Updating documentation around dispatching requests ([#3772](https://github.com/axios/axios/pull/3772))
58
+ - Adding documentation for the type guard isAxiosError ([#3767](https://github.com/axios/axios/pull/3767))
59
+ - Adding explanation of cancel token ([#3803](https://github.com/axios/axios/pull/3803))
60
+ - Updating CI status badge ([#3953](https://github.com/axios/axios/pull/3953))
61
+ - Fixing errors with JSON documentation ([#3936](https://github.com/axios/axios/pull/3936))
62
+ - Fixing README typo under Request Config ([#3825](https://github.com/axios/axios/pull/3825))
63
+ - Adding axios-multi-api to the ecosystem file ([#3817](https://github.com/axios/axios/pull/3817))
64
+ - Adding SECURITY.md to properly disclose security vulnerabilities ([#3981](https://github.com/axios/axios/pull/3981))
65
+
66
+ Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
67
+
68
+ - [Jay](mailto:jasonsaayman@gmail.com)
69
+ - [Sasha Korotkov](https://github.com/SashaKoro)
70
+ - [Daniel Lopretto](https://github.com/timemachine3030)
71
+ - [Mike Bishop](https://github.com/MikeBishop)
72
+ - [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS)
73
+ - [Mark](https://github.com/bimbiltu)
74
+ - [Philipe Gouveia Paixão](https://github.com/piiih)
75
+ - [hippo](https://github.com/hippo2cat)
76
+ - [ready-research](https://github.com/ready-research)
77
+ - [Xianming Zhong](https://github.com/chinesedfan)
78
+ - [Christopher Chrapka](https://github.com/OJezu)
79
+ - [Brian Anglin](https://github.com/anglinb)
80
+ - [Kohta Ito](https://github.com/koh110)
81
+ - [Ali Clark](https://github.com/aliclark)
82
+ - [caikan](https://github.com/caikan)
83
+ - [Elina Gorshkova](https://github.com/elinagorshkova)
84
+ - [Ryota Ikezawa](https://github.com/paveg)
85
+ - [Nisar Hassan Naqvi](https://github.com/nisarhassan12)
86
+ - [Jake](https://github.com/codemaster138)
87
+ - [TagawaHirotaka](https://github.com/wafuwafu13)
88
+ - [Johannes Jarbratt](https://github.com/johachi)
89
+ - [Mo Sattler](https://github.com/MoSattler)
90
+ - [Sam Carlton](https://github.com/ThatGuySam)
91
+ - [Matt Czapliński](https://github.com/MattCCC)
92
+ - [Ziding Zhang](https://github.com/zidingz)
93
+
3
94
  ### 0.21.1 (December 21, 2020)
4
95
 
5
96
  Fixes and Functionality:
6
97
 
7
- - Hotfix: Prevent SSRF (#3410)
8
- - Protocol not parsed when setting proxy config from env vars (#3070)
9
- - Updating axios in types to be lower case (#2797)
10
- - Adding a type guard for `AxiosError` (#2949)
98
+ - Hotfix: Prevent SSRF ([#3410](https://github.com/axios/axios/pull/3410))
99
+ - Protocol not parsed when setting proxy config from env vars ([#3070](https://github.com/axios/axios/pull/3070))
100
+ - Updating axios in types to be lower case ([#2797](https://github.com/axios/axios/pull/2797))
101
+ - Adding a type guard for `AxiosError` ([#2949](https://github.com/axios/axios/pull/2949))
11
102
 
12
103
  Internal and Tests:
13
104
 
14
- - Remove the skipping of the `socket` http test (#3364)
15
- - Use different socket for Win32 test (#3375)
105
+ - Remove the skipping of the `socket` http test ([#3364](https://github.com/axios/axios/pull/3364))
106
+ - Use different socket for Win32 test ([#3375](https://github.com/axios/axios/pull/3375))
16
107
 
17
108
  Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
18
109
 
@@ -93,7 +184,7 @@ Fixes and Functionality:
93
184
  - Adding test to check if password with non-Latin1 characters pass
94
185
  - Fixing 'Network Error' in react native android ([#1487](https://github.com/axios/axios/pull/1487))
95
186
  There is a bug in react native Android platform when using get method. It will trigger a 'Network Error' when passing the requestData which is an empty string to request.send function. So if the requestData is an empty string we can set it to null as well to fix the bug.
96
- - Fixing Cookie Helper with Asyc Components ([#1105](https://github.com/axios/axios/pull/1105)) ([#1107](https://github.com/axios/axios/pull/1107))
187
+ - Fixing Cookie Helper with Async Components ([#1105](https://github.com/axios/axios/pull/1105)) ([#1107](https://github.com/axios/axios/pull/1107))
97
188
  - Fixing 'progressEvent' type ([#2851](https://github.com/axios/axios/pull/2851))
98
189
  - Fix 'progressEvent' type
99
190
  - Update axios.ts
@@ -305,7 +396,6 @@ Fixes and Functionality:
305
396
  - Fixing set `config.method` after mergeConfig for Axios.prototype.request ([#2383](https://github.com/axios/axios/pull/2383))
306
397
  - Axios create url bug ([#2290](https://github.com/axios/axios/pull/2290))
307
398
  - Do not modify config.url when using a relative baseURL (resolves [#1628](https://github.com/axios/axios/issues/1098)) ([#2391](https://github.com/axios/axios/pull/2391))
308
- - Add typescript HTTP method definition for LINK and UNLINK ([#2444](https://github.com/axios/axios/pull/2444))
309
399
 
310
400
  Internal:
311
401
 
@@ -2,7 +2,8 @@
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/axios.svg?style=flat-square)](https://www.npmjs.org/package/axios)
4
4
  [![CDNJS](https://img.shields.io/cdnjs/v/axios.svg?style=flat-square)](https://cdnjs.com/libraries/axios)
5
- [![build status](https://img.shields.io/travis/axios/axios/master.svg?style=flat-square)](https://travis-ci.org/axios/axios)
5
+ ![Build status](https://github.com/axios/axios/actions/workflows/ci.yml/badge.svg)
6
+ [![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/axios/axios)
6
7
  [![code coverage](https://img.shields.io/coveralls/mzabriskie/axios.svg?style=flat-square)](https://coveralls.io/r/mzabriskie/axios)
7
8
  [![install size](https://packagephobia.now.sh/badge?p=axios)](https://packagephobia.now.sh/result?p=axios)
8
9
  [![npm downloads](https://img.shields.io/npm/dm/axios.svg?style=flat-square)](http://npm-stat.com/charts.html?package=axios)
@@ -10,6 +11,9 @@
10
11
  [![code helpers](https://www.codetriage.com/axios/axios/badges/users.svg)](https://www.codetriage.com/axios/axios)
11
12
 
12
13
  Promise based HTTP client for the browser and node.js
14
+
15
+ > New axios docs website: [click here](https://axios-http.com/)
16
+
13
17
  ## Table of Contents
14
18
 
15
19
  - [Features](#features)
@@ -452,8 +456,21 @@ These are the available config options for making requests. Only the `url` is re
452
456
  // automatically. If set to `true` will also remove the 'content-encoding' header
453
457
  // from the responses objects of all decompressed responses
454
458
  // - Node only (XHR cannot turn off decompression)
455
- decompress: true // default
456
-
459
+ decompress: true, // default
460
+
461
+ // transitional options for backward compatibility that may be removed in the newer versions
462
+ transitional: {
463
+ // silent JSON parsing mode
464
+ // `true` - ignore JSON parsing errors and set response.data to null if parsing failed (old behaviour)
465
+ // `false` - throw SyntaxError if JSON parsing failed (Note: responseType must be set to 'json')
466
+ silentJSONParsing: true, // default value for the current Axios version
467
+
468
+ // try to parse the response string as JSON even if `responseType` is not 'json'
469
+ forcedJSONParsing: true,
470
+
471
+ // throw ETIMEDOUT error instead of generic ECONNABORTED on request timeouts
472
+ clarifyTimeoutError: false,
473
+ }
457
474
  }
458
475
  ```
459
476
 
@@ -510,7 +527,11 @@ You can specify config defaults that will be applied to every request.
510
527
 
511
528
  ```js
512
529
  axios.defaults.baseURL = 'https://api.example.com';
530
+
531
+ // Important: If axios is used with multiple domains, the AUTH_TOKEN will be sent to all of them.
532
+ // See below for an example using Custom instance defaults instead.
513
533
  axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;
534
+
514
535
  axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
515
536
  ```
516
537
 
@@ -585,6 +606,34 @@ const instance = axios.create();
585
606
  instance.interceptors.request.use(function () {/*...*/});
586
607
  ```
587
608
 
609
+ When you add request interceptors, they are presumed to be asynchronous by default. This can cause a delay
610
+ in the execution of your axios request when the main thread is blocked (a promise is created under the hood for
611
+ the interceptor and your request gets put on the bottom of the call stack). If your request interceptors are synchronous you can add a flag
612
+ to the options object that will tell axios to run the code synchronously and avoid any delays in request execution.
613
+
614
+ ```js
615
+ axios.interceptors.request.use(function (config) {
616
+ config.headers.test = 'I am only a header!';
617
+ return config;
618
+ }, null, { synchronous: true });
619
+ ```
620
+
621
+ If you want to execute a particular interceptor based on a runtime check,
622
+ you can add a `runWhen` function to the options object. The interceptor will not be executed **if and only if** the return
623
+ of `runWhen` is `false`. The function will be called with the config
624
+ object (don't forget that you can bind your own arguments to it as well.) This can be handy when you have an
625
+ asynchronous request interceptor that only needs to run at certain times.
626
+
627
+ ```js
628
+ function onGetCall(config) {
629
+ return config.method === 'get';
630
+ }
631
+ axios.interceptors.request.use(function (config) {
632
+ config.headers.test = 'special get headers';
633
+ return config;
634
+ }, null, { runWhen: onGetCall });
635
+ ```
636
+
588
637
  ## Handling Errors
589
638
 
590
639
  ```js
@@ -678,6 +727,7 @@ cancel();
678
727
  ```
679
728
 
680
729
  > Note: you can cancel several requests with the same cancel token.
730
+ > If a cancellation token is already cancelled at the moment of starting an Axios request, then the request is cancelled immediately, without any attempts to make real request.
681
731
 
682
732
  ## Using application/x-www-form-urlencoded format
683
733
 
@@ -777,12 +827,30 @@ axios depends on a native ES6 Promise implementation to be [supported](http://ca
777
827
  If your environment doesn't support ES6 Promises, you can [polyfill](https://github.com/jakearchibald/es6-promise).
778
828
 
779
829
  ## TypeScript
780
- axios includes [TypeScript](http://typescriptlang.org) definitions.
830
+
831
+ axios includes [TypeScript](http://typescriptlang.org) definitions and a type guard for axios errors.
832
+
781
833
  ```typescript
782
- import axios from 'axios';
783
- axios.get('/user?ID=12345');
834
+ let user: User = null;
835
+ try {
836
+ const { data } = await axios.get('/user?ID=12345');
837
+ user = data.userDetails;
838
+ } catch (error) {
839
+ if (axios.isAxiosError(error)) {
840
+ handleAxiosError(error);
841
+ } else {
842
+ handleUnexpectedError(error);
843
+ }
844
+ }
784
845
  ```
785
846
 
847
+ ## Online one-click setup
848
+
849
+ You can use Gitpod an online IDE(which is free for Open Source) for contributing or running the examples online.
850
+
851
+ [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/axios/axios/blob/master/examples/server.js)
852
+
853
+
786
854
  ## Resources
787
855
 
788
856
  * [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
@@ -0,0 +1,5 @@
1
+ # Security Policy
2
+
3
+ ## Reporting a Vulnerability
4
+
5
+ Please report security issues to jasonsaayman@gmail.com