cloudstructs 0.9.13 → 0.9.14

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 (367) hide show
  1. package/.jsii +3 -3
  2. package/assets/slack-textract/detect.lambda/index.js +14 -9
  3. package/lib/codecommit-mirror/index.js +2 -2
  4. package/lib/dmarc/index.js +1 -1
  5. package/lib/ecs-service-roller/index.js +2 -2
  6. package/lib/email-receiver/receiver.js +1 -1
  7. package/lib/email-receiver/whitelist.lambda.js +2 -3
  8. package/lib/mjml-template/index.js +1 -1
  9. package/lib/saml-identity-provider/index.js +2 -2
  10. package/lib/slack-app/manifest.js +1 -1
  11. package/lib/slack-app/provider.lambda.js +2 -3
  12. package/lib/slack-app/slack-app.js +2 -2
  13. package/lib/slack-events/events.lambda.js +2 -3
  14. package/lib/slack-events/index.js +1 -1
  15. package/lib/slack-events/signature.js +2 -3
  16. package/lib/slack-textract/detect.lambda.js +2 -3
  17. package/lib/slack-textract/index.js +1 -1
  18. package/lib/ssl-server-test/analyze.lambda.js +2 -3
  19. package/lib/ssl-server-test/extract-grade.lambda.js +2 -3
  20. package/lib/ssl-server-test/index.js +1 -1
  21. package/lib/state-machine-cr-provider/index.js +1 -1
  22. package/lib/state-machine-cr-provider/runtime/http.js +3 -3
  23. package/lib/state-machine-cr-provider/runtime/index.js +5 -5
  24. package/lib/static-website/index.js +1 -1
  25. package/lib/static-website/origin-request.edge-lambda.js +2 -3
  26. package/lib/toolkit-cleaner/clean-images.lambda.js +2 -3
  27. package/lib/toolkit-cleaner/clean-objects.lambda.js +2 -3
  28. package/lib/toolkit-cleaner/extract-template-hashes.lambda.js +2 -3
  29. package/lib/toolkit-cleaner/get-stack-names.lambda.js +2 -3
  30. package/lib/toolkit-cleaner/index.js +1 -1
  31. package/lib/url-shortener/index.js +1 -1
  32. package/lib/url-shortener/redirect.edge-lambda.js +2 -3
  33. package/lib/url-shortener/shortener.lambda.js +2 -3
  34. package/node_modules/@babel/runtime/helpers/extends.js +2 -2
  35. package/node_modules/@babel/runtime/helpers/get.js +2 -2
  36. package/node_modules/@babel/runtime/helpers/getPrototypeOf.js +2 -2
  37. package/node_modules/@babel/runtime/helpers/setPrototypeOf.js +2 -2
  38. package/node_modules/@babel/runtime/helpers/typeof.js +2 -2
  39. package/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +2 -2
  40. package/node_modules/@babel/runtime/package.json +1 -1
  41. package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
  42. package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +47 -48
  43. package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +13 -0
  44. package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +1 -0
  45. package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
  46. package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +9 -0
  47. package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +35 -0
  48. package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +213 -0
  49. package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +18 -0
  50. package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
  51. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  52. package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +47 -48
  53. package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +13 -0
  54. package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +1 -0
  55. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
  56. package/node_modules/@slack/web-api/node_modules/@types/node/path.d.ts +9 -0
  57. package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +35 -0
  58. package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +213 -0
  59. package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +18 -0
  60. package/node_modules/@slack/web-api/node_modules/undici-types/package.json +1 -1
  61. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  62. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +5 -5
  63. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +5 -5
  64. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +12 -1
  65. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +2 -2
  66. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +15 -15
  67. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +17 -17
  68. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +5 -78
  69. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +1 -1
  70. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
  71. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +18 -17
  72. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +1 -1
  73. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +1 -1
  74. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +19 -0
  75. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +75 -2
  76. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +99 -1
  77. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +15 -2
  78. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +2 -2
  79. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +1 -1
  80. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +1 -0
  81. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +1 -1
  82. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +0 -14
  83. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +1 -1
  84. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +3 -3
  85. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -3
  86. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +10 -1
  87. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +45 -9
  88. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +178 -19
  89. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +1 -1
  90. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +1 -1
  91. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +10 -10
  92. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +12 -12
  93. package/node_modules/@types/cacheable-request/node_modules/@types/node/sea.d.ts +1 -1
  94. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +213 -0
  95. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +9 -9
  96. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +1 -1
  97. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +378 -101
  98. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +1 -1
  99. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +5 -2
  100. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +6 -6
  101. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +1 -1
  102. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +19 -2
  103. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +8 -2
  104. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +2 -2
  105. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +5 -7
  106. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +1 -1
  107. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +19 -1
  108. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +12 -3
  109. package/node_modules/@types/cacheable-request/node_modules/undici-types/LICENSE +21 -0
  110. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/balanced-pool.d.ts +11 -0
  111. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/client.d.ts +12 -1
  112. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/diagnostics-channel.d.ts +1 -2
  113. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/dispatcher.d.ts +18 -4
  114. package/node_modules/@types/cacheable-request/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  115. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/errors.d.ts +21 -0
  116. package/node_modules/@types/cacheable-request/node_modules/undici-types/eventsource.d.ts +63 -0
  117. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/fetch.d.ts +25 -25
  118. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/formdata.d.ts +1 -1
  119. package/node_modules/@types/cacheable-request/node_modules/undici-types/handlers.d.ts +15 -0
  120. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/index.d.ts +10 -2
  121. package/node_modules/@types/cacheable-request/node_modules/undici-types/interceptors.d.ts +15 -0
  122. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-interceptor.d.ts +4 -4
  123. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/package.json +1 -1
  124. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/pool.d.ts +11 -0
  125. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/proxy-agent.d.ts +0 -2
  126. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/readable.d.ts +2 -3
  127. package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-agent.d.ts +8 -0
  128. package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-handler.d.ts +116 -0
  129. package/node_modules/@types/cacheable-request/node_modules/undici-types/util.d.ts +18 -0
  130. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/webidl.d.ts +10 -8
  131. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/websocket.d.ts +22 -1
  132. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  133. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +5 -5
  134. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +5 -5
  135. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +12 -1
  136. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +2 -2
  137. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +15 -15
  138. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +17 -17
  139. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +5 -78
  140. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +1 -1
  141. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
  142. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +18 -17
  143. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +1 -1
  144. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +1 -1
  145. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +19 -0
  146. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +75 -2
  147. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +99 -1
  148. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +15 -2
  149. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +2 -2
  150. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +1 -1
  151. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +1 -0
  152. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +1 -1
  153. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +0 -14
  154. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +1 -1
  155. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +3 -3
  156. package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -3
  157. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +10 -1
  158. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +45 -9
  159. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +178 -19
  160. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +1 -1
  161. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +1 -1
  162. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +10 -10
  163. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +12 -12
  164. package/node_modules/@types/keyv/node_modules/@types/node/sea.d.ts +1 -1
  165. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +213 -0
  166. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +9 -9
  167. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +1 -1
  168. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +378 -101
  169. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +1 -1
  170. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +5 -2
  171. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +6 -6
  172. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +1 -1
  173. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +19 -2
  174. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +8 -2
  175. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +2 -2
  176. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +5 -7
  177. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +1 -1
  178. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +19 -1
  179. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +12 -3
  180. package/node_modules/@types/keyv/node_modules/undici-types/LICENSE +21 -0
  181. package/node_modules/@types/keyv/node_modules/undici-types/README.md +6 -0
  182. package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +31 -0
  183. package/node_modules/@types/keyv/node_modules/undici-types/api.d.ts +43 -0
  184. package/node_modules/@types/keyv/node_modules/undici-types/balanced-pool.d.ts +29 -0
  185. package/node_modules/@types/keyv/node_modules/undici-types/cache.d.ts +36 -0
  186. package/node_modules/@types/keyv/node_modules/undici-types/client.d.ts +108 -0
  187. package/node_modules/@types/keyv/node_modules/undici-types/connector.d.ts +34 -0
  188. package/node_modules/@types/keyv/node_modules/undici-types/content-type.d.ts +21 -0
  189. package/node_modules/@types/keyv/node_modules/undici-types/cookies.d.ts +28 -0
  190. package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
  191. package/node_modules/@types/keyv/node_modules/undici-types/dispatcher.d.ts +255 -0
  192. package/node_modules/@types/keyv/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  193. package/node_modules/@types/keyv/node_modules/undici-types/errors.d.ts +149 -0
  194. package/node_modules/@types/keyv/node_modules/undici-types/eventsource.d.ts +63 -0
  195. package/node_modules/@types/keyv/node_modules/undici-types/fetch.d.ts +209 -0
  196. package/node_modules/@types/keyv/node_modules/undici-types/file.d.ts +39 -0
  197. package/node_modules/@types/keyv/node_modules/undici-types/filereader.d.ts +54 -0
  198. package/node_modules/@types/keyv/node_modules/undici-types/formdata.d.ts +108 -0
  199. package/node_modules/@types/keyv/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  200. package/node_modules/@types/keyv/node_modules/undici-types/global-origin.d.ts +7 -0
  201. package/node_modules/@types/keyv/node_modules/undici-types/handlers.d.ts +15 -0
  202. package/node_modules/@types/keyv/node_modules/undici-types/header.d.ts +4 -0
  203. package/node_modules/@types/keyv/node_modules/undici-types/index.d.ts +71 -0
  204. package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +15 -0
  205. package/node_modules/@types/keyv/node_modules/undici-types/mock-agent.d.ts +50 -0
  206. package/node_modules/@types/keyv/node_modules/undici-types/mock-client.d.ts +25 -0
  207. package/node_modules/@types/keyv/node_modules/undici-types/mock-errors.d.ts +12 -0
  208. package/node_modules/@types/keyv/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  209. package/node_modules/@types/keyv/node_modules/undici-types/mock-pool.d.ts +25 -0
  210. package/node_modules/@types/keyv/node_modules/undici-types/package.json +55 -0
  211. package/node_modules/@types/keyv/node_modules/undici-types/patch.d.ts +71 -0
  212. package/node_modules/@types/keyv/node_modules/undici-types/pool-stats.d.ts +19 -0
  213. package/node_modules/@types/keyv/node_modules/undici-types/pool.d.ts +39 -0
  214. package/node_modules/@types/keyv/node_modules/undici-types/proxy-agent.d.ts +28 -0
  215. package/node_modules/@types/keyv/node_modules/undici-types/readable.d.ts +60 -0
  216. package/node_modules/@types/keyv/node_modules/undici-types/retry-agent.d.ts +8 -0
  217. package/node_modules/@types/keyv/node_modules/undici-types/retry-handler.d.ts +116 -0
  218. package/node_modules/@types/keyv/node_modules/undici-types/util.d.ts +18 -0
  219. package/node_modules/@types/keyv/node_modules/undici-types/webidl.d.ts +222 -0
  220. package/node_modules/@types/keyv/node_modules/undici-types/websocket.d.ts +152 -0
  221. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  222. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +5 -5
  223. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +5 -5
  224. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +12 -1
  225. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +2 -2
  226. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +15 -15
  227. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +17 -17
  228. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +5 -78
  229. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +1 -1
  230. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
  231. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +18 -17
  232. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +1 -1
  233. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +1 -1
  234. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +19 -0
  235. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +75 -2
  236. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +99 -1
  237. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +15 -2
  238. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +2 -2
  239. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +1 -1
  240. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +1 -0
  241. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +1 -1
  242. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +0 -14
  243. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +1 -1
  244. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +3 -3
  245. package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -3
  246. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +10 -1
  247. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +45 -9
  248. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +178 -19
  249. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
  250. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +1 -1
  251. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +10 -10
  252. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +12 -12
  253. package/node_modules/@types/responselike/node_modules/@types/node/sea.d.ts +1 -1
  254. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +213 -0
  255. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +9 -9
  256. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +1 -1
  257. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +378 -101
  258. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +1 -1
  259. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +5 -2
  260. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +6 -6
  261. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +1 -1
  262. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +19 -2
  263. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +8 -2
  264. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +2 -2
  265. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +5 -7
  266. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +1 -1
  267. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +19 -1
  268. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +12 -3
  269. package/node_modules/@types/responselike/node_modules/undici-types/LICENSE +21 -0
  270. package/node_modules/@types/responselike/node_modules/undici-types/README.md +6 -0
  271. package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +31 -0
  272. package/node_modules/@types/responselike/node_modules/undici-types/api.d.ts +43 -0
  273. package/node_modules/@types/responselike/node_modules/undici-types/balanced-pool.d.ts +29 -0
  274. package/node_modules/@types/responselike/node_modules/undici-types/cache.d.ts +36 -0
  275. package/node_modules/@types/responselike/node_modules/undici-types/client.d.ts +108 -0
  276. package/node_modules/@types/responselike/node_modules/undici-types/connector.d.ts +34 -0
  277. package/node_modules/@types/responselike/node_modules/undici-types/content-type.d.ts +21 -0
  278. package/node_modules/@types/responselike/node_modules/undici-types/cookies.d.ts +28 -0
  279. package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
  280. package/node_modules/@types/responselike/node_modules/undici-types/dispatcher.d.ts +255 -0
  281. package/node_modules/@types/responselike/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  282. package/node_modules/@types/responselike/node_modules/undici-types/errors.d.ts +149 -0
  283. package/node_modules/@types/responselike/node_modules/undici-types/eventsource.d.ts +63 -0
  284. package/node_modules/@types/responselike/node_modules/undici-types/fetch.d.ts +209 -0
  285. package/node_modules/@types/responselike/node_modules/undici-types/file.d.ts +39 -0
  286. package/node_modules/@types/responselike/node_modules/undici-types/filereader.d.ts +54 -0
  287. package/node_modules/@types/responselike/node_modules/undici-types/formdata.d.ts +108 -0
  288. package/node_modules/@types/responselike/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  289. package/node_modules/@types/responselike/node_modules/undici-types/global-origin.d.ts +7 -0
  290. package/node_modules/@types/responselike/node_modules/undici-types/handlers.d.ts +15 -0
  291. package/node_modules/@types/responselike/node_modules/undici-types/header.d.ts +4 -0
  292. package/node_modules/@types/responselike/node_modules/undici-types/index.d.ts +71 -0
  293. package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +15 -0
  294. package/node_modules/@types/responselike/node_modules/undici-types/mock-agent.d.ts +50 -0
  295. package/node_modules/@types/responselike/node_modules/undici-types/mock-client.d.ts +25 -0
  296. package/node_modules/@types/responselike/node_modules/undici-types/mock-errors.d.ts +12 -0
  297. package/node_modules/@types/responselike/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  298. package/node_modules/@types/responselike/node_modules/undici-types/mock-pool.d.ts +25 -0
  299. package/node_modules/@types/responselike/node_modules/undici-types/package.json +55 -0
  300. package/node_modules/@types/responselike/node_modules/undici-types/patch.d.ts +71 -0
  301. package/node_modules/@types/responselike/node_modules/undici-types/pool-stats.d.ts +19 -0
  302. package/node_modules/@types/responselike/node_modules/undici-types/pool.d.ts +39 -0
  303. package/node_modules/@types/responselike/node_modules/undici-types/proxy-agent.d.ts +28 -0
  304. package/node_modules/@types/responselike/node_modules/undici-types/readable.d.ts +60 -0
  305. package/node_modules/@types/responselike/node_modules/undici-types/retry-agent.d.ts +8 -0
  306. package/node_modules/@types/responselike/node_modules/undici-types/retry-handler.d.ts +116 -0
  307. package/node_modules/@types/responselike/node_modules/undici-types/util.d.ts +18 -0
  308. package/node_modules/@types/responselike/node_modules/undici-types/webidl.d.ts +222 -0
  309. package/node_modules/@types/responselike/node_modules/undici-types/websocket.d.ts +152 -0
  310. package/node_modules/axios/CHANGELOG.md +16 -0
  311. package/node_modules/axios/README.md +6 -57
  312. package/node_modules/axios/dist/axios.js +29 -22
  313. package/node_modules/axios/dist/axios.js.map +1 -1
  314. package/node_modules/axios/dist/axios.min.js +1 -1
  315. package/node_modules/axios/dist/axios.min.js.map +1 -1
  316. package/node_modules/axios/dist/browser/axios.cjs +17 -10
  317. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  318. package/node_modules/axios/dist/esm/axios.js +17 -10
  319. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  320. package/node_modules/axios/dist/esm/axios.min.js +1 -1
  321. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  322. package/node_modules/axios/dist/node/axios.cjs +18 -11
  323. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  324. package/node_modules/axios/lib/adapters/fetch.js +4 -1
  325. package/node_modules/axios/lib/adapters/http.js +1 -1
  326. package/node_modules/axios/lib/core/AxiosError.js +5 -2
  327. package/node_modules/axios/lib/env/data.js +1 -1
  328. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
  329. package/node_modules/axios/lib/platform/common/utils.js +5 -4
  330. package/node_modules/axios/package.json +1 -1
  331. package/node_modules/foreground-child/dist/commonjs/index.d.ts +4 -2
  332. package/node_modules/foreground-child/dist/commonjs/index.d.ts.map +1 -1
  333. package/node_modules/foreground-child/dist/commonjs/index.js +4 -2
  334. package/node_modules/foreground-child/dist/commonjs/index.js.map +1 -1
  335. package/node_modules/foreground-child/dist/esm/index.d.ts +4 -2
  336. package/node_modules/foreground-child/dist/esm/index.d.ts.map +1 -1
  337. package/node_modules/foreground-child/dist/esm/index.js +4 -2
  338. package/node_modules/foreground-child/dist/esm/index.js.map +1 -1
  339. package/node_modules/foreground-child/package.json +1 -1
  340. package/node_modules/juice/package.json +3 -3
  341. package/node_modules/uglify-js/bin/uglifyjs +6 -3
  342. package/node_modules/uglify-js/lib/compress.js +117 -75
  343. package/node_modules/uglify-js/lib/minify.js +4 -3
  344. package/node_modules/uglify-js/lib/output.js +16 -5
  345. package/node_modules/uglify-js/package.json +1 -1
  346. package/node_modules/uglify-js/tools/node.js +6 -1
  347. package/package.json +18 -18
  348. package/node_modules/undici-types/handlers.d.ts +0 -9
  349. package/node_modules/undici-types/interceptors.d.ts +0 -5
  350. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/README.md +0 -0
  351. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/agent.d.ts +0 -0
  352. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/api.d.ts +0 -0
  353. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/cache.d.ts +0 -0
  354. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/connector.d.ts +0 -0
  355. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/content-type.d.ts +0 -0
  356. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/cookies.d.ts +0 -0
  357. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/file.d.ts +0 -0
  358. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/filereader.d.ts +0 -0
  359. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/global-dispatcher.d.ts +0 -0
  360. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/global-origin.d.ts +0 -0
  361. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/header.d.ts +0 -0
  362. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-agent.d.ts +0 -0
  363. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-client.d.ts +0 -0
  364. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-errors.d.ts +0 -0
  365. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-pool.d.ts +0 -0
  366. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/patch.d.ts +0 -0
  367. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/pool-stats.d.ts +0 -0
@@ -27,12 +27,29 @@ export type BodyInit =
27
27
  | null
28
28
  | string
29
29
 
30
- export interface BodyMixin {
30
+ export class BodyMixin {
31
31
  readonly body: ReadableStream | null
32
32
  readonly bodyUsed: boolean
33
33
 
34
34
  readonly arrayBuffer: () => Promise<ArrayBuffer>
35
35
  readonly blob: () => Promise<Blob>
36
+ /**
37
+ * @deprecated This method is not recommended for parsing multipart/form-data bodies in server environments.
38
+ * It is recommended to use a library such as [@fastify/busboy](https://www.npmjs.com/package/@fastify/busboy) as follows:
39
+ *
40
+ * @example
41
+ * ```js
42
+ * import { Busboy } from '@fastify/busboy'
43
+ * import { Readable } from 'node:stream'
44
+ *
45
+ * const response = await fetch('...')
46
+ * const busboy = new Busboy({ headers: { 'content-type': response.headers.get('content-type') } })
47
+ *
48
+ * // handle events emitted from `busboy`
49
+ *
50
+ * Readable.fromWeb(response.body).pipe(busboy)
51
+ * ```
52
+ */
36
53
  readonly formData: () => Promise<FormData>
37
54
  readonly json: () => Promise<unknown>
38
55
  readonly text: () => Promise<string>
@@ -68,7 +85,7 @@ export declare class Headers implements SpecIterable<[string, string]> {
68
85
  readonly keys: () => SpecIterableIterator<string>
69
86
  readonly values: () => SpecIterableIterator<string>
70
87
  readonly entries: () => SpecIterableIterator<[string, string]>
71
- readonly [Symbol.iterator]: () => SpecIterator<[string, string]>
88
+ readonly [Symbol.iterator]: () => SpecIterableIterator<[string, string]>
72
89
  }
73
90
 
74
91
  export type RequestCache =
@@ -105,10 +122,10 @@ export interface RequestInit {
105
122
  method?: string
106
123
  keepalive?: boolean
107
124
  headers?: HeadersInit
108
- body?: BodyInit
125
+ body?: BodyInit | null
109
126
  redirect?: RequestRedirect
110
127
  integrity?: string
111
- signal?: AbortSignal
128
+ signal?: AbortSignal | null
112
129
  credentials?: RequestCredentials
113
130
  mode?: RequestMode
114
131
  referrer?: string
@@ -135,7 +152,7 @@ export type RequestRedirect = 'error' | 'follow' | 'manual'
135
152
 
136
153
  export type RequestDuplex = 'half'
137
154
 
138
- export declare class Request implements BodyMixin {
155
+ export declare class Request extends BodyMixin {
139
156
  constructor (input: RequestInfo, init?: RequestInit)
140
157
 
141
158
  readonly cache: RequestCache
@@ -146,22 +163,14 @@ export declare class Request implements BodyMixin {
146
163
  readonly method: string
147
164
  readonly mode: RequestMode
148
165
  readonly redirect: RequestRedirect
149
- readonly referrerPolicy: string
166
+ readonly referrer: string
167
+ readonly referrerPolicy: ReferrerPolicy
150
168
  readonly url: string
151
169
 
152
170
  readonly keepalive: boolean
153
171
  readonly signal: AbortSignal
154
172
  readonly duplex: RequestDuplex
155
173
 
156
- readonly body: ReadableStream | null
157
- readonly bodyUsed: boolean
158
-
159
- readonly arrayBuffer: () => Promise<ArrayBuffer>
160
- readonly blob: () => Promise<Blob>
161
- readonly formData: () => Promise<FormData>
162
- readonly json: () => Promise<unknown>
163
- readonly text: () => Promise<string>
164
-
165
174
  readonly clone: () => Request
166
175
  }
167
176
 
@@ -181,7 +190,7 @@ export type ResponseType =
181
190
 
182
191
  export type ResponseRedirectStatus = 301 | 302 | 303 | 307 | 308
183
192
 
184
- export declare class Response implements BodyMixin {
193
+ export declare class Response extends BodyMixin {
185
194
  constructor (body?: BodyInit, init?: ResponseInit)
186
195
 
187
196
  readonly headers: Headers
@@ -192,15 +201,6 @@ export declare class Response implements BodyMixin {
192
201
  readonly url: string
193
202
  readonly redirected: boolean
194
203
 
195
- readonly body: ReadableStream | null
196
- readonly bodyUsed: boolean
197
-
198
- readonly arrayBuffer: () => Promise<ArrayBuffer>
199
- readonly blob: () => Promise<Blob>
200
- readonly formData: () => Promise<FormData>
201
- readonly json: () => Promise<unknown>
202
- readonly text: () => Promise<string>
203
-
204
204
  readonly clone: () => Response
205
205
 
206
206
  static error (): Response
@@ -2,7 +2,7 @@
2
2
  /// <reference types="node" />
3
3
 
4
4
  import { File } from './file'
5
- import { SpecIterator, SpecIterableIterator } from './fetch'
5
+ import { SpecIterableIterator } from './fetch'
6
6
 
7
7
  /**
8
8
  * A `string` or `File` that represents a single value from a set of `FormData` key-value pairs.
@@ -0,0 +1,15 @@
1
+ import Dispatcher from "./dispatcher";
2
+
3
+ export declare class RedirectHandler implements Dispatcher.DispatchHandlers {
4
+ constructor(
5
+ dispatch: Dispatcher,
6
+ maxRedirections: number,
7
+ opts: Dispatcher.DispatchOptions,
8
+ handler: Dispatcher.DispatchHandlers,
9
+ redirectionLimitReached: boolean
10
+ );
11
+ }
12
+
13
+ export declare class DecoratorHandler implements Dispatcher.DispatchHandlers {
14
+ constructor(handler: Dispatcher.DispatchHandlers);
15
+ }
@@ -14,9 +14,15 @@ import MockPool from'./mock-pool'
14
14
  import MockAgent from'./mock-agent'
15
15
  import mockErrors from'./mock-errors'
16
16
  import ProxyAgent from'./proxy-agent'
17
+ import EnvHttpProxyAgent from './env-http-proxy-agent'
18
+ import RetryHandler from'./retry-handler'
19
+ import RetryAgent from'./retry-agent'
17
20
  import { request, pipeline, stream, connect, upgrade } from './api'
21
+ import interceptors from './interceptors'
18
22
 
23
+ export * from './util'
19
24
  export * from './cookies'
25
+ export * from './eventsource'
20
26
  export * from './fetch'
21
27
  export * from './file'
22
28
  export * from './filereader'
@@ -27,7 +33,7 @@ export * from './content-type'
27
33
  export * from './cache'
28
34
  export { Interceptable } from './mock-interceptor'
29
35
 
30
- export { Dispatcher, BalancedPool, Pool, Client, buildConnector, errors, Agent, request, stream, pipeline, connect, upgrade, setGlobalDispatcher, getGlobalDispatcher, setGlobalOrigin, getGlobalOrigin, MockClient, MockPool, MockAgent, mockErrors, ProxyAgent, RedirectHandler, DecoratorHandler }
36
+ export { Dispatcher, BalancedPool, Pool, Client, buildConnector, errors, Agent, request, stream, pipeline, connect, upgrade, setGlobalDispatcher, getGlobalDispatcher, setGlobalOrigin, getGlobalOrigin, interceptors, MockClient, MockPool, MockAgent, mockErrors, ProxyAgent, EnvHttpProxyAgent, RedirectHandler, DecoratorHandler, RetryHandler, RetryAgent }
31
37
  export default Undici
32
38
 
33
39
  declare namespace Undici {
@@ -35,7 +41,8 @@ declare namespace Undici {
35
41
  var Pool: typeof import('./pool').default;
36
42
  var RedirectHandler: typeof import ('./handlers').RedirectHandler
37
43
  var DecoratorHandler: typeof import ('./handlers').DecoratorHandler
38
- var createRedirectInterceptor: typeof import ('./interceptors').createRedirectInterceptor
44
+ var RetryHandler: typeof import ('./retry-handler').default
45
+ var createRedirectInterceptor: typeof import ('./interceptors').default.createRedirectInterceptor
39
46
  var BalancedPool: typeof import('./balanced-pool').default;
40
47
  var Client: typeof import('./client').default;
41
48
  var buildConnector: typeof import('./connector').default;
@@ -60,4 +67,5 @@ declare namespace Undici {
60
67
  var File: typeof import('./file').File;
61
68
  var FileReader: typeof import('./filereader').FileReader;
62
69
  var caches: typeof import('./cache').caches;
70
+ var interceptors: typeof import('./interceptors').default;
63
71
  }
@@ -0,0 +1,15 @@
1
+ import Dispatcher from "./dispatcher";
2
+ import RetryHandler from "./retry-handler";
3
+
4
+ export default Interceptors;
5
+
6
+ declare namespace Interceptors {
7
+ export type DumpInterceptorOpts = { maxSize?: number }
8
+ export type RetryInterceptorOpts = RetryHandler.RetryOptions
9
+ export type RedirectInterceptorOpts = { maxRedirections?: number }
10
+
11
+ export function createRedirectInterceptor(opts: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
12
+ export function dump(opts?: DumpInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
13
+ export function retry(opts?: RetryInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
14
+ export function redirect(opts?: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
15
+ }
@@ -71,11 +71,11 @@ declare namespace MockInterceptor {
71
71
 
72
72
  export interface MockResponseCallbackOptions {
73
73
  path: string;
74
- origin: string;
75
74
  method: string;
76
- body?: BodyInit | Dispatcher.DispatchOptions['body'];
77
- headers: Headers | Record<string, string>;
78
- maxRedirections: number;
75
+ headers?: Headers | Record<string, string>;
76
+ origin?: string;
77
+ body?: BodyInit | Dispatcher.DispatchOptions['body'] | null;
78
+ maxRedirections?: number;
79
79
  }
80
80
 
81
81
  export type MockResponseDataHandler<TData extends object = object> = (
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "undici-types",
3
- "version": "5.26.5",
3
+ "version": "6.19.8",
4
4
  "description": "A stand-alone types package for Undici",
5
5
  "homepage": "https://undici.nodejs.org",
6
6
  "bugs": {
@@ -5,6 +5,8 @@ import Dispatcher from "./dispatcher";
5
5
 
6
6
  export default Pool
7
7
 
8
+ type PoolConnectOptions = Omit<Dispatcher.ConnectOptions, "origin">;
9
+
8
10
  declare class Pool extends Dispatcher {
9
11
  constructor(url: string | URL, options?: Pool.Options)
10
12
  /** `true` after `pool.close()` has been called. */
@@ -13,6 +15,15 @@ declare class Pool extends Dispatcher {
13
15
  destroyed: boolean;
14
16
  /** Aggregate stats for a Pool. */
15
17
  readonly stats: TPoolStats;
18
+
19
+ // Override dispatcher APIs.
20
+ override connect(
21
+ options: PoolConnectOptions
22
+ ): Promise<Dispatcher.ConnectData>;
23
+ override connect(
24
+ options: PoolConnectOptions,
25
+ callback: (err: Error | null, data: Dispatcher.ConnectData) => void
26
+ ): void;
16
27
  }
17
28
 
18
29
  declare namespace Pool {
@@ -1,9 +1,7 @@
1
1
  import Agent from './agent'
2
2
  import buildConnector from './connector';
3
- import Client from './client'
4
3
  import Dispatcher from './dispatcher'
5
4
  import { IncomingHttpHeaders } from './header'
6
- import Pool from './pool'
7
5
 
8
6
  export default ProxyAgent
9
7
 
@@ -44,9 +44,8 @@ declare class BodyReadable extends Readable {
44
44
  */
45
45
  readonly bodyUsed: boolean
46
46
 
47
- /** Throws on node 16.6.0
48
- *
49
- * If body is null, it should return null as the body
47
+ /**
48
+ * If body is null, it should return null as the body
50
49
  *
51
50
  * If body is not null, should return the body as a ReadableStream
52
51
  *
@@ -0,0 +1,8 @@
1
+ import Dispatcher from './dispatcher'
2
+ import RetryHandler from './retry-handler'
3
+
4
+ export default RetryAgent
5
+
6
+ declare class RetryAgent extends Dispatcher {
7
+ constructor(dispatcher: Dispatcher, options?: RetryHandler.RetryOptions)
8
+ }
@@ -0,0 +1,116 @@
1
+ import Dispatcher from "./dispatcher";
2
+
3
+ export default RetryHandler;
4
+
5
+ declare class RetryHandler implements Dispatcher.DispatchHandlers {
6
+ constructor(
7
+ options: Dispatcher.DispatchOptions & {
8
+ retryOptions?: RetryHandler.RetryOptions;
9
+ },
10
+ retryHandlers: RetryHandler.RetryHandlers
11
+ );
12
+ }
13
+
14
+ declare namespace RetryHandler {
15
+ export type RetryState = { counter: number; };
16
+
17
+ export type RetryContext = {
18
+ state: RetryState;
19
+ opts: Dispatcher.DispatchOptions & {
20
+ retryOptions?: RetryHandler.RetryOptions;
21
+ };
22
+ }
23
+
24
+ export type OnRetryCallback = (result?: Error | null) => void;
25
+
26
+ export type RetryCallback = (
27
+ err: Error,
28
+ context: {
29
+ state: RetryState;
30
+ opts: Dispatcher.DispatchOptions & {
31
+ retryOptions?: RetryHandler.RetryOptions;
32
+ };
33
+ },
34
+ callback: OnRetryCallback
35
+ ) => number | null;
36
+
37
+ export interface RetryOptions {
38
+ /**
39
+ * Callback to be invoked on every retry iteration.
40
+ * It receives the error, current state of the retry object and the options object
41
+ * passed when instantiating the retry handler.
42
+ *
43
+ * @type {RetryCallback}
44
+ * @memberof RetryOptions
45
+ */
46
+ retry?: RetryCallback;
47
+ /**
48
+ * Maximum number of retries to allow.
49
+ *
50
+ * @type {number}
51
+ * @memberof RetryOptions
52
+ * @default 5
53
+ */
54
+ maxRetries?: number;
55
+ /**
56
+ * Max number of milliseconds allow between retries
57
+ *
58
+ * @type {number}
59
+ * @memberof RetryOptions
60
+ * @default 30000
61
+ */
62
+ maxTimeout?: number;
63
+ /**
64
+ * Initial number of milliseconds to wait before retrying for the first time.
65
+ *
66
+ * @type {number}
67
+ * @memberof RetryOptions
68
+ * @default 500
69
+ */
70
+ minTimeout?: number;
71
+ /**
72
+ * Factior to multiply the timeout factor between retries.
73
+ *
74
+ * @type {number}
75
+ * @memberof RetryOptions
76
+ * @default 2
77
+ */
78
+ timeoutFactor?: number;
79
+ /**
80
+ * It enables to automatically infer timeout between retries based on the `Retry-After` header.
81
+ *
82
+ * @type {boolean}
83
+ * @memberof RetryOptions
84
+ * @default true
85
+ */
86
+ retryAfter?: boolean;
87
+ /**
88
+ * HTTP methods to retry.
89
+ *
90
+ * @type {Dispatcher.HttpMethod[]}
91
+ * @memberof RetryOptions
92
+ * @default ['GET', 'HEAD', 'OPTIONS', 'PUT', 'DELETE', 'TRACE'],
93
+ */
94
+ methods?: Dispatcher.HttpMethod[];
95
+ /**
96
+ * Error codes to be retried. e.g. `ECONNRESET`, `ENOTFOUND`, `ETIMEDOUT`, `ECONNREFUSED`, etc.
97
+ *
98
+ * @type {string[]}
99
+ * @default ['ECONNRESET','ECONNREFUSED','ENOTFOUND','ENETDOWN','ENETUNREACH','EHOSTDOWN','EHOSTUNREACH','EPIPE']
100
+ */
101
+ errorCodes?: string[];
102
+ /**
103
+ * HTTP status codes to be retried.
104
+ *
105
+ * @type {number[]}
106
+ * @memberof RetryOptions
107
+ * @default [500, 502, 503, 504, 429],
108
+ */
109
+ statusCodes?: number[];
110
+ }
111
+
112
+ export interface RetryHandlers {
113
+ dispatch: Dispatcher["dispatch"];
114
+ handler: Dispatcher.DispatchHandlers;
115
+ }
116
+ }
@@ -0,0 +1,18 @@
1
+ export namespace util {
2
+ /**
3
+ * Retrieves a header name and returns its lowercase value.
4
+ * @param value Header name
5
+ */
6
+ export function headerNameToString(value: string | Buffer): string;
7
+
8
+ /**
9
+ * Receives a header object and returns the parsed value.
10
+ * @param headers Header object
11
+ * @param obj Object to specify a proxy object. Used to assign parsed values.
12
+ * @returns If `obj` is specified, it is equivalent to `obj`.
13
+ */
14
+ export function parseHeaders(
15
+ headers: (Buffer | string | (Buffer | string)[])[],
16
+ obj?: Record<string, string | string[]>
17
+ ): Record<string, string | string[]>;
18
+ }
@@ -5,7 +5,7 @@
5
5
  */
6
6
  type Converter<T> = (object: unknown) => T
7
7
 
8
- type SequenceConverter<T> = (object: unknown) => T[]
8
+ type SequenceConverter<T> = (object: unknown, iterable?: IterableIterator<T>) => T[]
9
9
 
10
10
  type RecordConverter<K extends string, V> = (object: unknown) => Record<K, V>
11
11
 
@@ -62,20 +62,25 @@ interface WebidlUtil {
62
62
  * @see https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
63
63
  */
64
64
  IntegerPart (N: number): number
65
+
66
+ /**
67
+ * Stringifies {@param V}
68
+ */
69
+ Stringify (V: any): string
65
70
  }
66
71
 
67
72
  interface WebidlConverters {
68
73
  /**
69
74
  * @see https://webidl.spec.whatwg.org/#es-DOMString
70
75
  */
71
- DOMString (V: unknown, opts?: {
76
+ DOMString (V: unknown, prefix: string, argument: string, opts?: {
72
77
  legacyNullToEmptyString: boolean
73
78
  }): string
74
79
 
75
80
  /**
76
81
  * @see https://webidl.spec.whatwg.org/#es-ByteString
77
82
  */
78
- ByteString (V: unknown): string
83
+ ByteString (V: unknown, prefix: string, argument: string): string
79
84
 
80
85
  /**
81
86
  * @see https://webidl.spec.whatwg.org/#es-USVString
@@ -199,7 +204,7 @@ export interface Webidl {
199
204
  */
200
205
  dictionaryConverter (converters: {
201
206
  key: string,
202
- defaultValue?: unknown,
207
+ defaultValue?: () => unknown,
203
208
  required?: boolean,
204
209
  converter: (...args: unknown[]) => unknown,
205
210
  allowedValues?: unknown[]
@@ -213,8 +218,5 @@ export interface Webidl {
213
218
  converter: Converter<T>
214
219
  ): (V: unknown) => ReturnType<typeof converter> | null
215
220
 
216
- argumentLengthCheck (args: { length: number }, min: number, context: {
217
- header: string
218
- message?: string
219
- }): void
221
+ argumentLengthCheck (args: { length: number }, min: number, context: string): void
220
222
  }
@@ -17,7 +17,7 @@ export type BinaryType = 'blob' | 'arraybuffer'
17
17
 
18
18
  interface WebSocketEventMap {
19
19
  close: CloseEvent
20
- error: Event
20
+ error: ErrorEvent
21
21
  message: MessageEvent
22
22
  open: Event
23
23
  }
@@ -124,6 +124,27 @@ export declare const MessageEvent: {
124
124
  new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>
125
125
  }
126
126
 
127
+ interface ErrorEventInit extends EventInit {
128
+ message?: string
129
+ filename?: string
130
+ lineno?: number
131
+ colno?: number
132
+ error?: any
133
+ }
134
+
135
+ interface ErrorEvent extends Event {
136
+ readonly message: string
137
+ readonly filename: string
138
+ readonly lineno: number
139
+ readonly colno: number
140
+ readonly error: any
141
+ }
142
+
143
+ export declare const ErrorEvent: {
144
+ prototype: ErrorEvent
145
+ new (type: string, eventInitDict?: ErrorEventInit): ErrorEvent
146
+ }
147
+
127
148
  interface WebSocketInit {
128
149
  protocols?: string | string[],
129
150
  dispatcher?: Dispatcher,
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
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, 23 Jul 2024 18:09:25 GMT
11
+ * Last updated: Wed, 21 Aug 2024 16:09:20 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The `node:assert` module provides a set of assertion functions for verifying
3
3
  * invariants.
4
- * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/assert.js)
4
+ * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/assert.js)
5
5
  */
6
6
  declare module "assert" {
7
7
  /**
@@ -796,7 +796,7 @@ declare module "assert" {
796
796
  * check that the promise is rejected.
797
797
  *
798
798
  * If `asyncFn` is a function and it throws an error synchronously, `assert.rejects()` will return a rejected `Promise` with that error. If the
799
- * function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v20.x/api/errors.html#err_invalid_return_value)
799
+ * function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v22.x/api/errors.html#err_invalid_return_value)
800
800
  * error. In both cases the error handler is skipped.
801
801
  *
802
802
  * Besides the async nature to await the completion behaves identically to {@link throws}.
@@ -866,7 +866,7 @@ declare module "assert" {
866
866
  *
867
867
  * If `asyncFn` is a function and it throws an error synchronously, `assert.doesNotReject()` will return a rejected `Promise` with that error. If
868
868
  * the function does not return a promise, `assert.doesNotReject()` will return a
869
- * rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v20.x/api/errors.html#err_invalid_return_value) error. In both cases
869
+ * rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v22.x/api/errors.html#err_invalid_return_value) error. In both cases
870
870
  * the error handler is skipped.
871
871
  *
872
872
  * Using `assert.doesNotReject()` is actually not useful because there is little
@@ -929,7 +929,7 @@ declare module "assert" {
929
929
  * If the values do not match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
930
930
  * to the value of the `message` parameter. If the `message` parameter is
931
931
  * undefined, a default error message is assigned. If the `message` parameter is an
932
- * instance of an [Error](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
932
+ * instance of an [Error](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
933
933
  * @since v13.6.0, v12.16.0
934
934
  */
935
935
  function match(value: string, regExp: RegExp, message?: string | Error): void;
@@ -952,7 +952,7 @@ declare module "assert" {
952
952
  * If the values do match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
953
953
  * to the value of the `message` parameter. If the `message` parameter is
954
954
  * undefined, a default error message is assigned. If the `message` parameter is an
955
- * instance of an [Error](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
955
+ * instance of an [Error](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
956
956
  * @since v13.6.0, v12.16.0
957
957
  */
958
958
  function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
@@ -2,8 +2,8 @@
2
2
  * We strongly discourage the use of the `async_hooks` API.
3
3
  * Other APIs that can cover most of its use cases include:
4
4
  *
5
- * * [`AsyncLocalStorage`](https://nodejs.org/docs/latest-v20.x/api/async_context.html#class-asynclocalstorage) tracks async context
6
- * * [`process.getActiveResourcesInfo()`](https://nodejs.org/docs/latest-v20.x/api/process.html#processgetactiveresourcesinfo) tracks active resources
5
+ * * [`AsyncLocalStorage`](https://nodejs.org/docs/latest-v22.x/api/async_context.html#class-asynclocalstorage) tracks async context
6
+ * * [`process.getActiveResourcesInfo()`](https://nodejs.org/docs/latest-v22.x/api/process.html#processgetactiveresourcesinfo) tracks active resources
7
7
  *
8
8
  * The `node:async_hooks` module provides an API to track asynchronous resources.
9
9
  * It can be accessed using:
@@ -12,7 +12,7 @@
12
12
  * import async_hooks from 'node:async_hooks';
13
13
  * ```
14
14
  * @experimental
15
- * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/async_hooks.js)
15
+ * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/async_hooks.js)
16
16
  */
17
17
  declare module "async_hooks" {
18
18
  /**
@@ -44,7 +44,7 @@ declare module "async_hooks" {
44
44
  * ```
45
45
  *
46
46
  * Promise contexts may not get precise `executionAsyncIds` by default.
47
- * See the section on [promise execution tracking](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html#promise-execution-tracking).
47
+ * See the section on [promise execution tracking](https://nodejs.org/docs/latest-v22.x/api/async_hooks.html#promise-execution-tracking).
48
48
  * @since v8.1.0
49
49
  * @return The `asyncId` of the current execution context. Useful to track when something calls.
50
50
  */
@@ -117,7 +117,7 @@ declare module "async_hooks" {
117
117
  * ```
118
118
  *
119
119
  * Promise contexts may not get valid `triggerAsyncId`s by default. See
120
- * the section on [promise execution tracking](https://nodejs.org/docs/latest-v20.x/api/async_hooks.html#promise-execution-tracking).
120
+ * the section on [promise execution tracking](https://nodejs.org/docs/latest-v22.x/api/async_hooks.html#promise-execution-tracking).
121
121
  * @return The ID of the resource responsible for calling the callback that is currently being executed.
122
122
  */
123
123
  function triggerAsyncId(): number;
@@ -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/v20.13.1/lib/buffer.js)
44
+ * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/buffer.js)
45
45
  */
46
46
  declare module "buffer" {
47
47
  import { BinaryLike } from "node:crypto";
@@ -170,6 +170,17 @@ declare module "buffer" {
170
170
  * @since v15.7.0, v14.18.0
171
171
  */
172
172
  arrayBuffer(): Promise<ArrayBuffer>;
173
+ /**
174
+ * The `blob.bytes()` method returns the byte of the `Blob` object as a `Promise<Uint8Array>`.
175
+ *
176
+ * ```js
177
+ * const blob = new Blob(['hello']);
178
+ * blob.bytes().then((bytes) => {
179
+ * console.log(bytes); // Outputs: Uint8Array(5) [ 104, 101, 108, 108, 111 ]
180
+ * });
181
+ * ```
182
+ */
183
+ bytes(): Promise<Uint8Array>;
173
184
  /**
174
185
  * Creates and returns a new `Blob` containing a subset of this `Blob` objects
175
186
  * data. The original `Blob` is not altered.
@@ -63,7 +63,7 @@
63
63
  * For certain use cases, such as automating shell scripts, the `synchronous counterparts` may be more convenient. In many cases, however,
64
64
  * the synchronous methods can have significant impact on performance due to
65
65
  * stalling the event loop while spawned processes complete.
66
- * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/child_process.js)
66
+ * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/child_process.js)
67
67
  */
68
68
  declare module "child_process" {
69
69
  import { ObjectEncodingOptions } from "node:fs";
@@ -455,7 +455,7 @@ declare module "child_process" {
455
455
  * as the connection may have been closed during the time it takes to send the
456
456
  * connection to the child.
457
457
  * @since v0.5.9
458
- * @param sendHandle `undefined`, or a [`net.Socket`](https://nodejs.org/docs/latest-v20.x/api/net.html#class-netsocket), [`net.Server`](https://nodejs.org/docs/latest-v20.x/api/net.html#class-netserver), or [`dgram.Socket`](https://nodejs.org/docs/latest-v20.x/api/dgram.html#class-dgramsocket) object.
458
+ * @param sendHandle `undefined`, or a [`net.Socket`](https://nodejs.org/docs/latest-v22.x/api/net.html#class-netsocket), [`net.Server`](https://nodejs.org/docs/latest-v22.x/api/net.html#class-netserver), or [`dgram.Socket`](https://nodejs.org/docs/latest-v22.x/api/dgram.html#class-dgramsocket) object.
459
459
  * @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. `options` supports the following properties:
460
460
  */
461
461
  send(message: Serializable, callback?: (error: Error | null) => void): boolean;