cloudstructs 0.9.37 → 0.9.39

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 (653) hide show
  1. package/.jsii +5 -5
  2. package/assets/slack-app/provider.lambda/index.js +26 -26
  3. package/assets/slack-textract/detect.lambda/index.js +1151 -979
  4. package/assets/ssl-server-test/analyze.lambda/index.js +26 -26
  5. package/lib/codecommit-mirror/index.js +2 -2
  6. package/lib/dmarc/index.js +1 -1
  7. package/lib/ecs-service-roller/index.js +2 -2
  8. package/lib/email-receiver/receiver.js +1 -1
  9. package/lib/mjml-template/index.js +1 -1
  10. package/lib/saml-identity-provider/index.js +2 -2
  11. package/lib/slack-app/manifest.js +1 -1
  12. package/lib/slack-app/slack-app.js +2 -2
  13. package/lib/slack-events/index.js +1 -1
  14. package/lib/slack-textract/index.js +1 -1
  15. package/lib/ssl-server-test/index.js +1 -1
  16. package/lib/state-machine-cr-provider/index.js +1 -1
  17. package/lib/static-website/index.js +1 -1
  18. package/lib/toolkit-cleaner/index.js +1 -1
  19. package/lib/url-shortener/index.js +1 -1
  20. package/node_modules/@babel/runtime/helpers/applyDecs2203.js +1 -1
  21. package/node_modules/@babel/runtime/helpers/applyDecs2203R.js +1 -1
  22. package/node_modules/@babel/runtime/helpers/applyDecs2301.js +1 -1
  23. package/node_modules/@babel/runtime/helpers/applyDecs2311.js +1 -1
  24. package/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +1 -1
  25. package/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js +1 -1
  26. package/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js +1 -1
  27. package/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js +1 -1
  28. package/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +7 -9
  29. package/node_modules/@babel/runtime/helpers/regeneratorDefine.js +7 -9
  30. package/node_modules/@babel/runtime/package.json +1 -1
  31. package/node_modules/@isaacs/cliui/node_modules/ansi-regex/index.js +8 -4
  32. package/node_modules/@isaacs/cliui/node_modules/ansi-regex/package.json +1 -1
  33. package/node_modules/@isaacs/cliui/node_modules/ansi-regex/readme.md +6 -0
  34. package/node_modules/@isaacs/cliui/node_modules/ansi-styles/index.d.ts +12 -12
  35. package/node_modules/@isaacs/cliui/node_modules/ansi-styles/index.js +3 -3
  36. package/node_modules/@isaacs/cliui/node_modules/ansi-styles/package.json +4 -4
  37. package/node_modules/@isaacs/cliui/node_modules/strip-ansi/package.json +3 -1
  38. package/node_modules/@isaacs/cliui/node_modules/strip-ansi/readme.md +5 -9
  39. package/node_modules/@slack/logger/node_modules/@types/node/README.md +2 -2
  40. package/node_modules/@slack/logger/node_modules/@types/node/assert/strict.d.ts +105 -2
  41. package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +119 -95
  42. package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +4 -1
  43. package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +26 -122
  44. package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +178 -18
  45. package/node_modules/@slack/logger/node_modules/@types/node/dns/promises.d.ts +11 -10
  46. package/node_modules/@slack/logger/node_modules/@types/node/dns.d.ts +23 -19
  47. package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +79 -33
  48. package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +48 -29
  49. package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +283 -32
  50. package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +148 -347
  51. package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +55 -21
  52. package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +13 -11
  53. package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +5 -0
  54. package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +7 -2
  55. package/node_modules/@slack/logger/node_modules/@types/node/inspector.d.ts +187 -3932
  56. package/node_modules/@slack/logger/node_modules/@types/node/inspector.generated.d.ts +4052 -0
  57. package/node_modules/@slack/logger/node_modules/@types/node/module.d.ts +25 -0
  58. package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +21 -0
  59. package/node_modules/@slack/logger/node_modules/@types/node/package.json +4 -89
  60. package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +14 -0
  61. package/node_modules/@slack/logger/node_modules/@types/node/repl.d.ts +11 -1
  62. package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +34 -1
  63. package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +4 -0
  64. package/node_modules/@slack/logger/node_modules/@types/node/stream.d.ts +17 -6
  65. package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +122 -24
  66. package/node_modules/@slack/logger/node_modules/@types/node/timers.d.ts +0 -2
  67. package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +32 -0
  68. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/index.d.ts +7 -2
  69. package/node_modules/@slack/logger/node_modules/@types/node/ts5.7/index.d.ts +7 -2
  70. package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +26 -7
  71. package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +17 -6
  72. package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +73 -10
  73. package/node_modules/@slack/logger/node_modules/@types/node/wasi.d.ts +21 -0
  74. package/node_modules/@slack/logger/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  75. package/node_modules/@slack/logger/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  76. package/node_modules/@slack/logger/node_modules/@types/node/{dom-events.d.ts → web-globals/events.d.ts} +49 -51
  77. package/node_modules/@slack/logger/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
  78. package/node_modules/@slack/logger/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  79. package/node_modules/@slack/logger/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  80. package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +96 -50
  81. package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +14 -2
  82. package/node_modules/@slack/logger/node_modules/undici-types/agent.d.ts +4 -4
  83. package/node_modules/@slack/logger/node_modules/undici-types/client-stats.d.ts +15 -0
  84. package/node_modules/@slack/logger/node_modules/undici-types/client.d.ts +6 -5
  85. package/node_modules/@slack/logger/node_modules/undici-types/diagnostics-channel.d.ts +9 -0
  86. package/node_modules/@slack/logger/node_modules/undici-types/dispatcher.d.ts +3 -8
  87. package/node_modules/@slack/logger/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -1
  88. package/node_modules/@slack/logger/node_modules/undici-types/eventsource.d.ts +3 -3
  89. package/node_modules/@slack/logger/node_modules/undici-types/fetch.d.ts +1 -0
  90. package/node_modules/@slack/logger/node_modules/undici-types/h2c-client.d.ts +0 -2
  91. package/node_modules/@slack/logger/node_modules/undici-types/handlers.d.ts +1 -1
  92. package/node_modules/@slack/logger/node_modules/undici-types/index.d.ts +3 -1
  93. package/node_modules/@slack/logger/node_modules/undici-types/mock-agent.d.ts +3 -0
  94. package/node_modules/@slack/logger/node_modules/undici-types/mock-client.d.ts +2 -0
  95. package/node_modules/@slack/logger/node_modules/undici-types/mock-interceptor.d.ts +2 -1
  96. package/node_modules/@slack/logger/node_modules/undici-types/mock-pool.d.ts +2 -0
  97. package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
  98. package/node_modules/@slack/logger/node_modules/undici-types/pool.d.ts +2 -0
  99. package/node_modules/@slack/logger/node_modules/undici-types/proxy-agent.d.ts +1 -0
  100. package/node_modules/@slack/logger/node_modules/undici-types/retry-handler.d.ts +9 -0
  101. package/node_modules/@slack/logger/node_modules/undici-types/snapshot-agent.d.ts +107 -0
  102. package/node_modules/@slack/logger/node_modules/undici-types/webidl.d.ts +29 -15
  103. package/node_modules/@slack/logger/node_modules/undici-types/websocket.d.ts +3 -1
  104. package/node_modules/@slack/types/dist/block-kit/block-elements.d.ts +58 -58
  105. package/node_modules/@slack/types/dist/block-kit/block-elements.js +1 -1
  106. package/node_modules/@slack/types/dist/block-kit/block-elements.js.map +1 -1
  107. package/node_modules/@slack/types/dist/block-kit/blocks.d.ts +49 -29
  108. package/node_modules/@slack/types/dist/block-kit/blocks.d.ts.map +1 -1
  109. package/node_modules/@slack/types/dist/block-kit/composition-objects.d.ts +19 -19
  110. package/node_modules/@slack/types/dist/block-kit/composition-objects.js +1 -1
  111. package/node_modules/@slack/types/dist/block-kit/composition-objects.js.map +1 -1
  112. package/node_modules/@slack/types/dist/block-kit/extensions.d.ts +5 -5
  113. package/node_modules/@slack/types/dist/calls.d.ts +1 -1
  114. package/node_modules/@slack/types/dist/calls.js +2 -2
  115. package/node_modules/@slack/types/dist/calls.js.map +1 -1
  116. package/node_modules/@slack/types/dist/dialog.d.ts +1 -1
  117. package/node_modules/@slack/types/dist/events/index.d.ts +4 -4
  118. package/node_modules/@slack/types/dist/events/index.d.ts.map +1 -1
  119. package/node_modules/@slack/types/dist/events/index.js +1 -1
  120. package/node_modules/@slack/types/dist/events/index.js.map +1 -1
  121. package/node_modules/@slack/types/dist/events/message.d.ts +1 -0
  122. package/node_modules/@slack/types/dist/events/message.d.ts.map +1 -1
  123. package/node_modules/@slack/types/dist/events/team.d.ts +2 -2
  124. package/node_modules/@slack/types/dist/events/team.d.ts.map +1 -1
  125. package/node_modules/@slack/types/dist/index.d.ts +5 -5
  126. package/node_modules/@slack/types/dist/index.d.ts.map +1 -1
  127. package/node_modules/@slack/types/dist/index.js +5 -5
  128. package/node_modules/@slack/types/dist/index.js.map +1 -1
  129. package/node_modules/@slack/types/dist/message-attachments.d.ts +10 -10
  130. package/node_modules/@slack/types/dist/message-metadata.d.ts +2 -2
  131. package/node_modules/@slack/types/dist/views.d.ts +6 -6
  132. package/node_modules/@slack/types/package.json +19 -8
  133. package/node_modules/@slack/web-api/README.md +9 -9
  134. package/node_modules/@slack/web-api/dist/WebClient.d.ts +8 -8
  135. package/node_modules/@slack/web-api/dist/WebClient.d.ts.map +1 -1
  136. package/node_modules/@slack/web-api/dist/WebClient.js +10 -9
  137. package/node_modules/@slack/web-api/dist/WebClient.js.map +1 -1
  138. package/node_modules/@slack/web-api/dist/file-upload.d.ts +2 -2
  139. package/node_modules/@slack/web-api/dist/file-upload.d.ts.map +1 -1
  140. package/node_modules/@slack/web-api/dist/file-upload.js +3 -2
  141. package/node_modules/@slack/web-api/dist/file-upload.js.map +1 -1
  142. package/node_modules/@slack/web-api/dist/index.d.ts +5 -5
  143. package/node_modules/@slack/web-api/dist/index.d.ts.map +1 -1
  144. package/node_modules/@slack/web-api/dist/index.js +10 -9
  145. package/node_modules/@slack/web-api/dist/index.js.map +1 -1
  146. package/node_modules/@slack/web-api/dist/instrument.js +1 -1
  147. package/node_modules/@slack/web-api/dist/instrument.js.map +1 -1
  148. package/node_modules/@slack/web-api/dist/logger.d.ts +1 -1
  149. package/node_modules/@slack/web-api/dist/logger.d.ts.map +1 -1
  150. package/node_modules/@slack/web-api/dist/methods.d.ts +284 -262
  151. package/node_modules/@slack/web-api/dist/methods.d.ts.map +1 -1
  152. package/node_modules/@slack/web-api/dist/methods.js +284 -262
  153. package/node_modules/@slack/web-api/dist/methods.js.map +1 -1
  154. package/node_modules/@slack/web-api/dist/types/request/admin/analytics.d.ts +2 -2
  155. package/node_modules/@slack/web-api/dist/types/request/admin/conversations.d.ts +1 -1
  156. package/node_modules/@slack/web-api/dist/types/request/admin/roles.d.ts +2 -2
  157. package/node_modules/@slack/web-api/dist/types/request/assistant.d.ts +1 -1
  158. package/node_modules/@slack/web-api/dist/types/request/assistant.d.ts.map +1 -1
  159. package/node_modules/@slack/web-api/dist/types/request/calls.d.ts +1 -1
  160. package/node_modules/@slack/web-api/dist/types/request/chat.d.ts +17 -10
  161. package/node_modules/@slack/web-api/dist/types/request/chat.d.ts.map +1 -1
  162. package/node_modules/@slack/web-api/dist/types/request/common.d.ts +1 -1
  163. package/node_modules/@slack/web-api/dist/types/request/files.d.ts +3 -3
  164. package/node_modules/@slack/web-api/dist/types/request/index.d.ts +32 -32
  165. package/node_modules/@slack/web-api/dist/types/request/index.d.ts.map +1 -1
  166. package/node_modules/@slack/web-api/dist/types/request/manifest.d.ts +34 -34
  167. package/node_modules/@slack/web-api/dist/types/request/manifest.d.ts.map +1 -1
  168. package/node_modules/@slack/web-api/dist/types/request/oauth.d.ts +1 -1
  169. package/node_modules/@slack/web-api/dist/types/request/oauth.d.ts.map +1 -1
  170. package/node_modules/@slack/web-api/dist/types/request/reminders.d.ts +1 -1
  171. package/node_modules/@slack/web-api/dist/types/request/rtm.d.ts +1 -1
  172. package/node_modules/@slack/web-api/dist/types/request/search.d.ts +1 -1
  173. package/node_modules/@slack/web-api/dist/types/request/users.d.ts +3 -3
  174. package/node_modules/@slack/web-api/dist/types/request/views.d.ts +2 -2
  175. package/node_modules/@slack/web-api/dist/types/request/views.d.ts.map +1 -1
  176. package/node_modules/@slack/web-api/dist/types/request/workflows.d.ts +40 -0
  177. package/node_modules/@slack/web-api/dist/types/request/workflows.d.ts.map +1 -1
  178. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedAddResponse.d.ts +3 -0
  179. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedAddResponse.d.ts.map +1 -0
  180. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedAddResponse.js +3 -0
  181. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedAddResponse.js.map +1 -0
  182. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedListResponse.d.ts +11 -0
  183. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedListResponse.d.ts.map +1 -0
  184. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedListResponse.js +3 -0
  185. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedListResponse.js.map +1 -0
  186. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedRemoveResponse.d.ts +3 -0
  187. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedRemoveResponse.d.ts.map +1 -0
  188. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedRemoveResponse.js +3 -0
  189. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedRemoveResponse.js.map +1 -0
  190. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedSetResponse.d.ts +3 -0
  191. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedSetResponse.d.ts.map +1 -0
  192. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedSetResponse.js +3 -0
  193. package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedSetResponse.js.map +1 -0
  194. package/node_modules/@slack/web-api/dist/types/response/index.d.ts +12 -8
  195. package/node_modules/@slack/web-api/dist/types/response/index.d.ts.map +1 -1
  196. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +2 -2
  197. package/node_modules/@slack/web-api/node_modules/@types/node/assert/strict.d.ts +105 -2
  198. package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +119 -95
  199. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +4 -1
  200. package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +26 -122
  201. package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +178 -18
  202. package/node_modules/@slack/web-api/node_modules/@types/node/dns/promises.d.ts +11 -10
  203. package/node_modules/@slack/web-api/node_modules/@types/node/dns.d.ts +23 -19
  204. package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +79 -33
  205. package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +48 -29
  206. package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +283 -32
  207. package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +148 -347
  208. package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +55 -21
  209. package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +13 -11
  210. package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +5 -0
  211. package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +7 -2
  212. package/node_modules/@slack/web-api/node_modules/@types/node/inspector.d.ts +187 -3932
  213. package/node_modules/@slack/web-api/node_modules/@types/node/inspector.generated.d.ts +4052 -0
  214. package/node_modules/@slack/web-api/node_modules/@types/node/module.d.ts +25 -0
  215. package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +21 -0
  216. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +4 -89
  217. package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +14 -0
  218. package/node_modules/@slack/web-api/node_modules/@types/node/repl.d.ts +11 -1
  219. package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +34 -1
  220. package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +4 -0
  221. package/node_modules/@slack/web-api/node_modules/@types/node/stream.d.ts +17 -6
  222. package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +122 -24
  223. package/node_modules/@slack/web-api/node_modules/@types/node/timers.d.ts +0 -2
  224. package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +32 -0
  225. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/index.d.ts +7 -2
  226. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.7/index.d.ts +7 -2
  227. package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +26 -7
  228. package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +17 -6
  229. package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +73 -10
  230. package/node_modules/@slack/web-api/node_modules/@types/node/wasi.d.ts +21 -0
  231. package/node_modules/@slack/web-api/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  232. package/node_modules/@slack/web-api/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  233. package/node_modules/{@types/cacheable-request/node_modules/@types/node/dom-events.d.ts → @slack/web-api/node_modules/@types/node/web-globals/events.d.ts} +49 -51
  234. package/node_modules/@slack/web-api/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
  235. package/node_modules/@slack/web-api/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  236. package/node_modules/@slack/web-api/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  237. package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +96 -50
  238. package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +14 -2
  239. package/node_modules/@slack/web-api/node_modules/undici-types/agent.d.ts +4 -4
  240. package/node_modules/@slack/web-api/node_modules/undici-types/client-stats.d.ts +15 -0
  241. package/node_modules/@slack/web-api/node_modules/undici-types/client.d.ts +6 -5
  242. package/node_modules/@slack/web-api/node_modules/undici-types/diagnostics-channel.d.ts +9 -0
  243. package/node_modules/@slack/web-api/node_modules/undici-types/dispatcher.d.ts +3 -8
  244. package/node_modules/@slack/web-api/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -1
  245. package/node_modules/@slack/web-api/node_modules/undici-types/eventsource.d.ts +3 -3
  246. package/node_modules/@slack/web-api/node_modules/undici-types/fetch.d.ts +1 -0
  247. package/node_modules/@slack/web-api/node_modules/undici-types/h2c-client.d.ts +0 -2
  248. package/node_modules/@slack/web-api/node_modules/undici-types/handlers.d.ts +1 -1
  249. package/node_modules/@slack/web-api/node_modules/undici-types/index.d.ts +3 -1
  250. package/node_modules/@slack/web-api/node_modules/undici-types/mock-agent.d.ts +3 -0
  251. package/node_modules/@slack/web-api/node_modules/undici-types/mock-client.d.ts +2 -0
  252. package/node_modules/@slack/web-api/node_modules/undici-types/mock-interceptor.d.ts +2 -1
  253. package/node_modules/@slack/web-api/node_modules/undici-types/mock-pool.d.ts +2 -0
  254. package/node_modules/@slack/web-api/node_modules/undici-types/package.json +1 -1
  255. package/node_modules/@slack/web-api/node_modules/undici-types/pool.d.ts +2 -0
  256. package/node_modules/@slack/web-api/node_modules/undici-types/proxy-agent.d.ts +1 -0
  257. package/node_modules/@slack/web-api/node_modules/undici-types/retry-handler.d.ts +9 -0
  258. package/node_modules/@slack/web-api/node_modules/undici-types/snapshot-agent.d.ts +107 -0
  259. package/node_modules/@slack/web-api/node_modules/undici-types/webidl.d.ts +29 -15
  260. package/node_modules/@slack/web-api/node_modules/undici-types/websocket.d.ts +3 -1
  261. package/node_modules/@slack/web-api/package.json +23 -8
  262. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
  263. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert/strict.d.ts +105 -2
  264. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +119 -95
  265. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +4 -1
  266. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +26 -122
  267. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +178 -18
  268. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +11 -10
  269. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +23 -19
  270. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +79 -33
  271. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +48 -29
  272. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +283 -32
  273. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +148 -347
  274. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +55 -21
  275. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +13 -11
  276. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +5 -0
  277. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +7 -2
  278. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +187 -3932
  279. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.generated.d.ts +4052 -0
  280. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +25 -0
  281. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +21 -0
  282. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +4 -89
  283. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +14 -0
  284. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +11 -1
  285. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +34 -1
  286. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +4 -0
  287. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +17 -6
  288. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +122 -24
  289. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +0 -2
  290. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +32 -0
  291. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/index.d.ts +7 -2
  292. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.7/index.d.ts +7 -2
  293. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +26 -7
  294. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +17 -6
  295. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +73 -10
  296. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +21 -0
  297. package/node_modules/@types/cacheable-request/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  298. package/node_modules/@types/cacheable-request/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  299. package/node_modules/@types/{keyv/node_modules/@types/node/dom-events.d.ts → cacheable-request/node_modules/@types/node/web-globals/events.d.ts} +49 -51
  300. package/node_modules/@types/cacheable-request/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
  301. package/node_modules/@types/cacheable-request/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  302. package/node_modules/@types/cacheable-request/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  303. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +96 -50
  304. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +14 -2
  305. package/node_modules/@types/cacheable-request/node_modules/undici-types/agent.d.ts +4 -4
  306. package/node_modules/@types/cacheable-request/node_modules/undici-types/client-stats.d.ts +15 -0
  307. package/node_modules/@types/cacheable-request/node_modules/undici-types/client.d.ts +6 -5
  308. package/node_modules/@types/cacheable-request/node_modules/undici-types/diagnostics-channel.d.ts +9 -0
  309. package/node_modules/@types/cacheable-request/node_modules/undici-types/dispatcher.d.ts +3 -8
  310. package/node_modules/@types/cacheable-request/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -1
  311. package/node_modules/@types/cacheable-request/node_modules/undici-types/eventsource.d.ts +3 -3
  312. package/node_modules/@types/cacheable-request/node_modules/undici-types/fetch.d.ts +1 -0
  313. package/node_modules/@types/cacheable-request/node_modules/undici-types/h2c-client.d.ts +0 -2
  314. package/node_modules/@types/cacheable-request/node_modules/undici-types/handlers.d.ts +1 -1
  315. package/node_modules/@types/cacheable-request/node_modules/undici-types/index.d.ts +3 -1
  316. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-agent.d.ts +3 -0
  317. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-client.d.ts +2 -0
  318. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-interceptor.d.ts +2 -1
  319. package/node_modules/@types/cacheable-request/node_modules/undici-types/mock-pool.d.ts +2 -0
  320. package/node_modules/@types/cacheable-request/node_modules/undici-types/package.json +1 -1
  321. package/node_modules/@types/cacheable-request/node_modules/undici-types/pool.d.ts +2 -0
  322. package/node_modules/@types/cacheable-request/node_modules/undici-types/proxy-agent.d.ts +1 -0
  323. package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-handler.d.ts +9 -0
  324. package/node_modules/@types/cacheable-request/node_modules/undici-types/snapshot-agent.d.ts +107 -0
  325. package/node_modules/@types/cacheable-request/node_modules/undici-types/webidl.d.ts +29 -15
  326. package/node_modules/@types/cacheable-request/node_modules/undici-types/websocket.d.ts +3 -1
  327. package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
  328. package/node_modules/@types/keyv/node_modules/@types/node/assert/strict.d.ts +105 -2
  329. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +119 -95
  330. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +4 -1
  331. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +26 -122
  332. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +178 -18
  333. package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +11 -10
  334. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +23 -19
  335. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +79 -33
  336. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +48 -29
  337. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +283 -32
  338. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +148 -347
  339. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +55 -21
  340. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +13 -11
  341. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +5 -0
  342. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +7 -2
  343. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +187 -3932
  344. package/node_modules/@types/keyv/node_modules/@types/node/inspector.generated.d.ts +4052 -0
  345. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +25 -0
  346. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +21 -0
  347. package/node_modules/@types/keyv/node_modules/@types/node/package.json +4 -89
  348. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +14 -0
  349. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +11 -1
  350. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +34 -1
  351. package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +4 -0
  352. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +17 -6
  353. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +122 -24
  354. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +0 -2
  355. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +32 -0
  356. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/index.d.ts +7 -2
  357. package/node_modules/@types/keyv/node_modules/@types/node/ts5.7/index.d.ts +7 -2
  358. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +26 -7
  359. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +17 -6
  360. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +73 -10
  361. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +21 -0
  362. package/node_modules/@types/keyv/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  363. package/node_modules/@types/keyv/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  364. package/node_modules/{@slack/web-api/node_modules/@types/node/dom-events.d.ts → @types/keyv/node_modules/@types/node/web-globals/events.d.ts} +49 -51
  365. package/node_modules/@types/keyv/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
  366. package/node_modules/@types/keyv/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  367. package/node_modules/@types/keyv/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  368. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +96 -50
  369. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +14 -2
  370. package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +4 -4
  371. package/node_modules/@types/keyv/node_modules/undici-types/client-stats.d.ts +15 -0
  372. package/node_modules/@types/keyv/node_modules/undici-types/client.d.ts +6 -5
  373. package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +9 -0
  374. package/node_modules/@types/keyv/node_modules/undici-types/dispatcher.d.ts +3 -8
  375. package/node_modules/@types/keyv/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -1
  376. package/node_modules/@types/keyv/node_modules/undici-types/eventsource.d.ts +3 -3
  377. package/node_modules/@types/keyv/node_modules/undici-types/fetch.d.ts +1 -0
  378. package/node_modules/@types/keyv/node_modules/undici-types/h2c-client.d.ts +0 -2
  379. package/node_modules/@types/keyv/node_modules/undici-types/handlers.d.ts +1 -1
  380. package/node_modules/@types/keyv/node_modules/undici-types/index.d.ts +3 -1
  381. package/node_modules/@types/keyv/node_modules/undici-types/mock-agent.d.ts +3 -0
  382. package/node_modules/@types/keyv/node_modules/undici-types/mock-client.d.ts +2 -0
  383. package/node_modules/@types/keyv/node_modules/undici-types/mock-interceptor.d.ts +2 -1
  384. package/node_modules/@types/keyv/node_modules/undici-types/mock-pool.d.ts +2 -0
  385. package/node_modules/@types/keyv/node_modules/undici-types/package.json +1 -1
  386. package/node_modules/@types/keyv/node_modules/undici-types/pool.d.ts +2 -0
  387. package/node_modules/@types/keyv/node_modules/undici-types/proxy-agent.d.ts +1 -0
  388. package/node_modules/@types/keyv/node_modules/undici-types/retry-handler.d.ts +9 -0
  389. package/node_modules/@types/keyv/node_modules/undici-types/snapshot-agent.d.ts +107 -0
  390. package/node_modules/@types/keyv/node_modules/undici-types/webidl.d.ts +29 -15
  391. package/node_modules/@types/keyv/node_modules/undici-types/websocket.d.ts +3 -1
  392. package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
  393. package/node_modules/@types/responselike/node_modules/@types/node/assert/strict.d.ts +105 -2
  394. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +119 -95
  395. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +4 -1
  396. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +26 -122
  397. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +178 -18
  398. package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +11 -10
  399. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +23 -19
  400. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +79 -33
  401. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +48 -29
  402. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +283 -32
  403. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +148 -347
  404. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +55 -21
  405. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +13 -11
  406. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +5 -0
  407. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +7 -2
  408. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +187 -3932
  409. package/node_modules/@types/responselike/node_modules/@types/node/inspector.generated.d.ts +4052 -0
  410. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +25 -0
  411. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +21 -0
  412. package/node_modules/@types/responselike/node_modules/@types/node/package.json +4 -89
  413. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +14 -0
  414. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +11 -1
  415. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +34 -1
  416. package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +4 -0
  417. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +17 -6
  418. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +122 -24
  419. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +0 -2
  420. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +32 -0
  421. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/index.d.ts +7 -2
  422. package/node_modules/@types/responselike/node_modules/@types/node/ts5.7/index.d.ts +7 -2
  423. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +26 -7
  424. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +17 -6
  425. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +73 -10
  426. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +21 -0
  427. package/node_modules/@types/responselike/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  428. package/node_modules/@types/responselike/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  429. package/node_modules/@types/responselike/node_modules/@types/node/web-globals/events.d.ts +97 -0
  430. package/node_modules/@types/responselike/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
  431. package/node_modules/@types/responselike/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  432. package/node_modules/@types/responselike/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  433. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +96 -50
  434. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +14 -2
  435. package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +4 -4
  436. package/node_modules/@types/responselike/node_modules/undici-types/client-stats.d.ts +15 -0
  437. package/node_modules/@types/responselike/node_modules/undici-types/client.d.ts +6 -5
  438. package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +9 -0
  439. package/node_modules/@types/responselike/node_modules/undici-types/dispatcher.d.ts +3 -8
  440. package/node_modules/@types/responselike/node_modules/undici-types/env-http-proxy-agent.d.ts +2 -1
  441. package/node_modules/@types/responselike/node_modules/undici-types/eventsource.d.ts +3 -3
  442. package/node_modules/@types/responselike/node_modules/undici-types/fetch.d.ts +1 -0
  443. package/node_modules/@types/responselike/node_modules/undici-types/h2c-client.d.ts +0 -2
  444. package/node_modules/@types/responselike/node_modules/undici-types/handlers.d.ts +1 -1
  445. package/node_modules/@types/responselike/node_modules/undici-types/index.d.ts +3 -1
  446. package/node_modules/@types/responselike/node_modules/undici-types/mock-agent.d.ts +3 -0
  447. package/node_modules/@types/responselike/node_modules/undici-types/mock-client.d.ts +2 -0
  448. package/node_modules/@types/responselike/node_modules/undici-types/mock-interceptor.d.ts +2 -1
  449. package/node_modules/@types/responselike/node_modules/undici-types/mock-pool.d.ts +2 -0
  450. package/node_modules/@types/responselike/node_modules/undici-types/package.json +1 -1
  451. package/node_modules/@types/responselike/node_modules/undici-types/pool.d.ts +2 -0
  452. package/node_modules/@types/responselike/node_modules/undici-types/proxy-agent.d.ts +1 -0
  453. package/node_modules/@types/responselike/node_modules/undici-types/retry-handler.d.ts +9 -0
  454. package/node_modules/@types/responselike/node_modules/undici-types/snapshot-agent.d.ts +107 -0
  455. package/node_modules/@types/responselike/node_modules/undici-types/webidl.d.ts +29 -15
  456. package/node_modules/@types/responselike/node_modules/undici-types/websocket.d.ts +3 -1
  457. package/node_modules/axios/CHANGELOG.md +75 -0
  458. package/node_modules/axios/README.md +87 -13
  459. package/node_modules/axios/dist/axios.js +392 -292
  460. package/node_modules/axios/dist/axios.js.map +1 -1
  461. package/node_modules/axios/dist/axios.min.js +2 -2
  462. package/node_modules/axios/dist/axios.min.js.map +1 -1
  463. package/node_modules/axios/dist/browser/axios.cjs +329 -219
  464. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  465. package/node_modules/axios/dist/esm/axios.js +329 -219
  466. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  467. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  468. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  469. package/node_modules/axios/dist/node/axios.cjs +420 -219
  470. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  471. package/node_modules/axios/index.d.cts +25 -7
  472. package/node_modules/axios/index.d.ts +13 -4
  473. package/node_modules/axios/lib/adapters/adapters.js +6 -4
  474. package/node_modules/axios/lib/adapters/fetch.js +221 -162
  475. package/node_modules/axios/lib/adapters/http.js +18 -0
  476. package/node_modules/axios/lib/adapters/xhr.js +11 -8
  477. package/node_modules/axios/lib/core/Axios.js +2 -4
  478. package/node_modules/axios/lib/core/AxiosError.js +10 -3
  479. package/node_modules/axios/lib/core/dispatchRequest.js +1 -1
  480. package/node_modules/axios/lib/core/mergeConfig.js +1 -1
  481. package/node_modules/axios/lib/defaults/index.js +1 -1
  482. package/node_modules/axios/lib/env/data.js +1 -1
  483. package/node_modules/axios/lib/helpers/buildURL.js +1 -3
  484. package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +73 -0
  485. package/node_modules/axios/lib/helpers/resolveConfig.js +13 -9
  486. package/node_modules/axios/lib/helpers/throttle.js +1 -1
  487. package/node_modules/axios/lib/helpers/toURLEncodedForm.js +4 -3
  488. package/node_modules/axios/lib/utils.js +40 -2
  489. package/node_modules/axios/package.json +21 -15
  490. package/node_modules/follow-redirects/package.json +1 -1
  491. package/node_modules/form-data/CHANGELOG.md +601 -0
  492. package/node_modules/form-data/{README.md.bak → README.md} +4 -4
  493. package/node_modules/form-data/lib/form_data.js +2 -6
  494. package/node_modules/form-data/package.json +22 -6
  495. package/node_modules/mjml/package.json +8 -9
  496. package/node_modules/mjml-accordion/README.md +2 -1
  497. package/node_modules/mjml-accordion/lib/Accordion.js +3 -5
  498. package/node_modules/mjml-accordion/lib/AccordionElement.js +2 -3
  499. package/node_modules/mjml-accordion/lib/AccordionText.js +2 -3
  500. package/node_modules/mjml-accordion/lib/AccordionTitle.js +4 -3
  501. package/node_modules/mjml-accordion/package.json +4 -5
  502. package/node_modules/mjml-body/README.md +1 -1
  503. package/node_modules/mjml-body/lib/index.js +9 -4
  504. package/node_modules/mjml-body/package.json +4 -5
  505. package/node_modules/mjml-button/lib/index.js +2 -3
  506. package/node_modules/mjml-button/package.json +4 -5
  507. package/node_modules/mjml-carousel/lib/Carousel.js +4 -6
  508. package/node_modules/mjml-carousel/lib/CarouselImage.js +2 -3
  509. package/node_modules/mjml-carousel/package.json +4 -5
  510. package/node_modules/mjml-cli/lib/commands/watchFiles.js +4 -1
  511. package/node_modules/mjml-cli/package.json +7 -8
  512. package/node_modules/mjml-column/lib/index.js +2 -3
  513. package/node_modules/mjml-column/package.json +4 -5
  514. package/node_modules/mjml-core/lib/createComponent.js +12 -9
  515. package/node_modules/mjml-core/lib/index.js +2 -2
  516. package/node_modules/mjml-core/lib/types/boolean.js +2 -3
  517. package/node_modules/mjml-core/lib/types/color.js +2 -3
  518. package/node_modules/mjml-core/lib/types/enum.js +1 -1
  519. package/node_modules/mjml-core/lib/types/integer.js +1 -1
  520. package/node_modules/mjml-core/lib/types/string.js +1 -1
  521. package/node_modules/mjml-core/lib/types/type.js +1 -2
  522. package/node_modules/mjml-core/lib/types/unit.js +1 -1
  523. package/node_modules/mjml-core/package.json +6 -7
  524. package/node_modules/mjml-divider/lib/index.js +2 -3
  525. package/node_modules/mjml-divider/package.json +4 -5
  526. package/node_modules/mjml-group/lib/index.js +2 -3
  527. package/node_modules/mjml-group/package.json +4 -5
  528. package/node_modules/mjml-head/lib/index.js +2 -3
  529. package/node_modules/mjml-head/package.json +4 -5
  530. package/node_modules/mjml-head-attributes/lib/index.js +2 -3
  531. package/node_modules/mjml-head-attributes/package.json +4 -5
  532. package/node_modules/mjml-head-breakpoint/lib/index.js +2 -3
  533. package/node_modules/mjml-head-breakpoint/package.json +4 -5
  534. package/node_modules/mjml-head-font/lib/index.js +2 -3
  535. package/node_modules/mjml-head-font/package.json +4 -5
  536. package/node_modules/mjml-head-html-attributes/lib/index.js +2 -3
  537. package/node_modules/mjml-head-html-attributes/package.json +4 -5
  538. package/node_modules/mjml-head-preview/lib/index.js +2 -3
  539. package/node_modules/mjml-head-preview/package.json +4 -5
  540. package/node_modules/mjml-head-style/lib/index.js +2 -3
  541. package/node_modules/mjml-head-style/package.json +4 -5
  542. package/node_modules/mjml-head-title/lib/index.js +2 -3
  543. package/node_modules/mjml-head-title/package.json +4 -5
  544. package/node_modules/mjml-hero/lib/index.js +3 -5
  545. package/node_modules/mjml-hero/package.json +4 -5
  546. package/node_modules/mjml-image/lib/index.js +3 -5
  547. package/node_modules/mjml-image/package.json +4 -5
  548. package/node_modules/mjml-migrate/package.json +5 -6
  549. package/node_modules/mjml-navbar/lib/Navbar.js +3 -5
  550. package/node_modules/mjml-navbar/lib/NavbarLink.js +2 -3
  551. package/node_modules/mjml-navbar/package.json +4 -5
  552. package/node_modules/mjml-parser-xml/lib/index.js +1 -1
  553. package/node_modules/mjml-parser-xml/package.json +6 -6
  554. package/node_modules/mjml-preset-core/package.json +28 -29
  555. package/node_modules/mjml-raw/lib/index.js +2 -3
  556. package/node_modules/mjml-raw/package.json +4 -5
  557. package/node_modules/mjml-section/lib/index.js +18 -7
  558. package/node_modules/mjml-section/package.json +4 -5
  559. package/node_modules/mjml-social/README.md +1 -0
  560. package/node_modules/mjml-social/lib/Social.js +2 -3
  561. package/node_modules/mjml-social/lib/SocialElement.js +18 -9
  562. package/node_modules/mjml-social/package.json +4 -5
  563. package/node_modules/mjml-spacer/lib/index.js +2 -3
  564. package/node_modules/mjml-spacer/package.json +4 -5
  565. package/node_modules/mjml-table/README.md +1 -1
  566. package/node_modules/mjml-table/lib/index.js +6 -4
  567. package/node_modules/mjml-table/package.json +4 -5
  568. package/node_modules/mjml-text/lib/index.js +2 -3
  569. package/node_modules/mjml-text/package.json +4 -5
  570. package/node_modules/mjml-validator/package.json +3 -3
  571. package/node_modules/mjml-wrapper/lib/index.js +2 -3
  572. package/node_modules/mjml-wrapper/package.json +5 -6
  573. package/package.json +20 -20
  574. package/node_modules/@slack/logger/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
  575. package/node_modules/@slack/logger/node_modules/@types/node/ts5.1/index.d.ts +0 -98
  576. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
  577. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.1/index.d.ts +0 -98
  578. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
  579. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.1/index.d.ts +0 -98
  580. package/node_modules/@types/keyv/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
  581. package/node_modules/@types/keyv/node_modules/@types/node/ts5.1/index.d.ts +0 -98
  582. package/node_modules/@types/responselike/node_modules/@types/node/dom-events.d.ts +0 -99
  583. package/node_modules/@types/responselike/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts +0 -12
  584. package/node_modules/@types/responselike/node_modules/@types/node/ts5.1/index.d.ts +0 -98
  585. package/node_modules/form-data/Readme.md +0 -355
  586. package/node_modules/mjml/LICENSE.md +0 -21
  587. package/node_modules/mjml-accordion/LICENSE.md +0 -21
  588. package/node_modules/mjml-body/LICENSE.md +0 -21
  589. package/node_modules/mjml-button/LICENSE.md +0 -21
  590. package/node_modules/mjml-carousel/LICENSE.md +0 -21
  591. package/node_modules/mjml-cli/LICENSE.md +0 -21
  592. package/node_modules/mjml-cli/lib/helpers/promesify.js +0 -48
  593. package/node_modules/mjml-cli/lib/helpers/timePad.js +0 -18
  594. package/node_modules/mjml-column/LICENSE.md +0 -21
  595. package/node_modules/mjml-core/LICENSE.md +0 -21
  596. package/node_modules/mjml-core/lib/Error.js +0 -86
  597. package/node_modules/mjml-core/lib/MJMLElementsCollection.js +0 -37
  598. package/node_modules/mjml-core/lib/MJMLHead.js +0 -38
  599. package/node_modules/mjml-core/lib/MJMLRenderer.js +0 -275
  600. package/node_modules/mjml-core/lib/configs/defaultContainer.js +0 -15
  601. package/node_modules/mjml-core/lib/configs/defaultStyle.js +0 -6
  602. package/node_modules/mjml-core/lib/configs/listFontsImports.js +0 -21
  603. package/node_modules/mjml-core/lib/decorators/MJMLElement.js +0 -356
  604. package/node_modules/mjml-core/lib/helpers/colors.js +0 -7
  605. package/node_modules/mjml-core/lib/helpers/dom.js +0 -109
  606. package/node_modules/mjml-core/lib/helpers/html.js +0 -9
  607. package/node_modules/mjml-core/lib/helpers/importFonts.js +0 -46
  608. package/node_modules/mjml-core/lib/helpers/index.js +0 -40
  609. package/node_modules/mjml-core/lib/helpers/isBrowser.js +0 -11
  610. package/node_modules/mjml-core/lib/helpers/mjAttribute.js +0 -62
  611. package/node_modules/mjml-core/lib/helpers/mjml.js +0 -46
  612. package/node_modules/mjml-core/lib/helpers/parseAttributes.js +0 -29
  613. package/node_modules/mjml-core/lib/helpers/postRender.js +0 -33
  614. package/node_modules/mjml-core/lib/helpers/removeCDATA.js +0 -19
  615. package/node_modules/mjml-core/lib/helpers/traverseMJML.js +0 -41
  616. package/node_modules/mjml-core/lib/includeExternal.js +0 -92
  617. package/node_modules/mjml-core/lib/parsers/config.js +0 -130
  618. package/node_modules/mjml-core/lib/parsers/document.js +0 -189
  619. package/node_modules/mjml-divider/LICENSE.md +0 -21
  620. package/node_modules/mjml-group/LICENSE.md +0 -21
  621. package/node_modules/mjml-head/LICENSE.md +0 -21
  622. package/node_modules/mjml-head-attributes/LICENSE.md +0 -21
  623. package/node_modules/mjml-head-breakpoint/LICENSE.md +0 -21
  624. package/node_modules/mjml-head-font/LICENSE.md +0 -21
  625. package/node_modules/mjml-head-html-attributes/LICENSE.md +0 -21
  626. package/node_modules/mjml-head-preview/LICENSE.md +0 -21
  627. package/node_modules/mjml-head-style/LICENSE.md +0 -21
  628. package/node_modules/mjml-head-title/LICENSE.md +0 -21
  629. package/node_modules/mjml-hero/LICENSE.md +0 -21
  630. package/node_modules/mjml-image/LICENSE.md +0 -21
  631. package/node_modules/mjml-navbar/LICENSE.md +0 -21
  632. package/node_modules/mjml-navbar/lib/InlineLinks.js +0 -227
  633. package/node_modules/mjml-navbar/lib/Link.js +0 -130
  634. package/node_modules/mjml-parser-xml/lib/helpers/addCDATASection.js +0 -31
  635. package/node_modules/mjml-parser-xml/lib/helpers/parseAttributes.js +0 -37
  636. package/node_modules/mjml-preset-core/LICENSE.md +0 -21
  637. package/node_modules/mjml-raw/LICENSE.md +0 -21
  638. package/node_modules/mjml-section/LICENSE.md +0 -21
  639. package/node_modules/mjml-social/LICENSE.md +0 -21
  640. package/node_modules/mjml-spacer/LICENSE.md +0 -21
  641. package/node_modules/mjml-table/LICENSE.md +0 -21
  642. package/node_modules/mjml-text/LICENSE.md +0 -21
  643. package/node_modules/mjml-validator/lib/rules/index.js +0 -29
  644. package/node_modules/mjml-validator/lib/types/boolean.js +0 -57
  645. package/node_modules/mjml-validator/lib/types/color.js +0 -51
  646. package/node_modules/mjml-validator/lib/types/enum.js +0 -57
  647. package/node_modules/mjml-validator/lib/types/helpers/colors.js +0 -7
  648. package/node_modules/mjml-validator/lib/types/index.js +0 -41
  649. package/node_modules/mjml-validator/lib/types/integer.js +0 -47
  650. package/node_modules/mjml-validator/lib/types/string.js +0 -47
  651. package/node_modules/mjml-validator/lib/types/type.js +0 -93
  652. package/node_modules/mjml-validator/lib/types/unit.js +0 -57
  653. package/node_modules/mjml-wrapper/LICENSE.md +0 -21
@@ -1,4 +1,4 @@
1
- /*! Axios v1.10.0 Copyright (c) 2025 Matt Zabriskie and contributors */
1
+ /*! Axios v1.12.2 Copyright (c) 2025 Matt Zabriskie and contributors */
2
2
  'use strict';
3
3
 
4
4
  const FormData$1 = require('form-data');
@@ -77,7 +77,7 @@ const isUndefined = typeOfTest('undefined');
77
77
  */
78
78
  function isBuffer(val) {
79
79
  return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
80
- && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
80
+ && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
81
81
  }
82
82
 
83
83
  /**
@@ -122,7 +122,7 @@ const isString = typeOfTest('string');
122
122
  * @param {*} val The value to test
123
123
  * @returns {boolean} True if value is a Function, otherwise false
124
124
  */
125
- const isFunction = typeOfTest('function');
125
+ const isFunction$1 = typeOfTest('function');
126
126
 
127
127
  /**
128
128
  * Determine if a value is a Number
@@ -166,6 +166,27 @@ const isPlainObject = (val) => {
166
166
  return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
167
167
  };
168
168
 
169
+ /**
170
+ * Determine if a value is an empty object (safely handles Buffers)
171
+ *
172
+ * @param {*} val The value to test
173
+ *
174
+ * @returns {boolean} True if value is an empty object, otherwise false
175
+ */
176
+ const isEmptyObject = (val) => {
177
+ // Early return for non-objects or Buffers to prevent RangeError
178
+ if (!isObject(val) || isBuffer(val)) {
179
+ return false;
180
+ }
181
+
182
+ try {
183
+ return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
184
+ } catch (e) {
185
+ // Fallback for any other objects that might cause RangeError with Object.keys()
186
+ return false;
187
+ }
188
+ };
189
+
169
190
  /**
170
191
  * Determine if a value is a Date
171
192
  *
@@ -209,7 +230,7 @@ const isFileList = kindOfTest('FileList');
209
230
  *
210
231
  * @returns {boolean} True if value is a Stream, otherwise false
211
232
  */
212
- const isStream = (val) => isObject(val) && isFunction(val.pipe);
233
+ const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
213
234
 
214
235
  /**
215
236
  * Determine if a value is a FormData
@@ -222,10 +243,10 @@ const isFormData = (thing) => {
222
243
  let kind;
223
244
  return thing && (
224
245
  (typeof FormData === 'function' && thing instanceof FormData) || (
225
- isFunction(thing.append) && (
246
+ isFunction$1(thing.append) && (
226
247
  (kind = kindOf(thing)) === 'formdata' ||
227
248
  // detect form-data instance
228
- (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
249
+ (kind === 'object' && isFunction$1(thing.toString) && thing.toString() === '[object FormData]')
229
250
  )
230
251
  )
231
252
  )
@@ -288,6 +309,11 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
288
309
  fn.call(null, obj[i], i, obj);
289
310
  }
290
311
  } else {
312
+ // Buffer check
313
+ if (isBuffer(obj)) {
314
+ return;
315
+ }
316
+
291
317
  // Iterate over object keys
292
318
  const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
293
319
  const len = keys.length;
@@ -301,6 +327,10 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
301
327
  }
302
328
 
303
329
  function findKey(obj, key) {
330
+ if (isBuffer(obj)){
331
+ return null;
332
+ }
333
+
304
334
  key = key.toLowerCase();
305
335
  const keys = Object.keys(obj);
306
336
  let i = keys.length;
@@ -341,7 +371,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
341
371
  * @returns {Object} Result of all merge properties
342
372
  */
343
373
  function merge(/* obj1, obj2, obj3, ... */) {
344
- const {caseless} = isContextDefined(this) && this || {};
374
+ const {caseless, skipUndefined} = isContextDefined(this) && this || {};
345
375
  const result = {};
346
376
  const assignValue = (val, key) => {
347
377
  const targetKey = caseless && findKey(result, key) || key;
@@ -351,7 +381,7 @@ function merge(/* obj1, obj2, obj3, ... */) {
351
381
  result[targetKey] = merge({}, val);
352
382
  } else if (isArray(val)) {
353
383
  result[targetKey] = val.slice();
354
- } else {
384
+ } else if (!skipUndefined || !isUndefined(val)) {
355
385
  result[targetKey] = val;
356
386
  }
357
387
  };
@@ -374,7 +404,7 @@ function merge(/* obj1, obj2, obj3, ... */) {
374
404
  */
375
405
  const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
376
406
  forEach(b, (val, key) => {
377
- if (thisArg && isFunction(val)) {
407
+ if (thisArg && isFunction$1(val)) {
378
408
  a[key] = bind(val, thisArg);
379
409
  } else {
380
410
  a[key] = val;
@@ -590,13 +620,13 @@ const reduceDescriptors = (obj, reducer) => {
590
620
  const freezeMethods = (obj) => {
591
621
  reduceDescriptors(obj, (descriptor, name) => {
592
622
  // skip restricted props in strict mode
593
- if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
623
+ if (isFunction$1(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
594
624
  return false;
595
625
  }
596
626
 
597
627
  const value = obj[name];
598
628
 
599
- if (!isFunction(value)) return;
629
+ if (!isFunction$1(value)) return;
600
630
 
601
631
  descriptor.enumerable = false;
602
632
 
@@ -633,6 +663,8 @@ const toFiniteNumber = (value, defaultValue) => {
633
663
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
634
664
  };
635
665
 
666
+
667
+
636
668
  /**
637
669
  * If the thing is a FormData object, return true, otherwise return false.
638
670
  *
@@ -641,7 +673,7 @@ const toFiniteNumber = (value, defaultValue) => {
641
673
  * @returns {boolean}
642
674
  */
643
675
  function isSpecCompliantForm(thing) {
644
- return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
676
+ return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
645
677
  }
646
678
 
647
679
  const toJSONObject = (obj) => {
@@ -654,6 +686,11 @@ const toJSONObject = (obj) => {
654
686
  return;
655
687
  }
656
688
 
689
+ //Buffer check
690
+ if (isBuffer(source)) {
691
+ return source;
692
+ }
693
+
657
694
  if(!('toJSON' in source)) {
658
695
  stack[i] = source;
659
696
  const target = isArray(source) ? [] : {};
@@ -678,7 +715,7 @@ const toJSONObject = (obj) => {
678
715
  const isAsyncFn = kindOfTest('AsyncFunction');
679
716
 
680
717
  const isThenable = (thing) =>
681
- thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
718
+ thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
682
719
 
683
720
  // original code
684
721
  // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
@@ -702,7 +739,7 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
702
739
  })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
703
740
  })(
704
741
  typeof setImmediate === 'function',
705
- isFunction(_global.postMessage)
742
+ isFunction$1(_global.postMessage)
706
743
  );
707
744
 
708
745
  const asap = typeof queueMicrotask !== 'undefined' ?
@@ -711,7 +748,7 @@ const asap = typeof queueMicrotask !== 'undefined' ?
711
748
  // *********************
712
749
 
713
750
 
714
- const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
751
+ const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
715
752
 
716
753
 
717
754
  const utils$1 = {
@@ -725,6 +762,7 @@ const utils$1 = {
725
762
  isBoolean,
726
763
  isObject,
727
764
  isPlainObject,
765
+ isEmptyObject,
728
766
  isReadableStream,
729
767
  isRequest,
730
768
  isResponse,
@@ -734,7 +772,7 @@ const utils$1 = {
734
772
  isFile,
735
773
  isBlob,
736
774
  isRegExp,
737
- isFunction,
775
+ isFunction: isFunction$1,
738
776
  isStream,
739
777
  isURLSearchParams,
740
778
  isTypedArray,
@@ -860,11 +898,18 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
860
898
  return prop !== 'isAxiosError';
861
899
  });
862
900
 
863
- AxiosError.call(axiosError, error.message, code, config, request, response);
901
+ const msg = error && error.message ? error.message : 'Error';
902
+
903
+ // Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
904
+ const errCode = code == null && error ? error.code : code;
905
+ AxiosError.call(axiosError, msg, errCode, config, request, response);
864
906
 
865
- axiosError.cause = error;
907
+ // Chain the original error on the standard field; non-enumerable to avoid JSON noise
908
+ if (error && axiosError.cause == null) {
909
+ Object.defineProperty(axiosError, 'cause', { value: error, configurable: true });
910
+ }
866
911
 
867
- axiosError.name = error.name;
912
+ axiosError.name = (error && error.name) || 'Error';
868
913
 
869
914
  customProps && Object.assign(axiosError, customProps);
870
915
 
@@ -1152,9 +1197,7 @@ function encode(val) {
1152
1197
  replace(/%3A/gi, ':').
1153
1198
  replace(/%24/g, '$').
1154
1199
  replace(/%2C/gi, ',').
1155
- replace(/%20/g, '+').
1156
- replace(/%5B/gi, '[').
1157
- replace(/%5D/gi, ']');
1200
+ replace(/%20/g, '+');
1158
1201
  }
1159
1202
 
1160
1203
  /**
@@ -1374,7 +1417,7 @@ const platform = {
1374
1417
  };
1375
1418
 
1376
1419
  function toURLEncodedForm(data, options) {
1377
- return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
1420
+ return toFormData(data, new platform.classes.URLSearchParams(), {
1378
1421
  visitor: function(value, key, path, helpers) {
1379
1422
  if (platform.isNode && utils$1.isBuffer(value)) {
1380
1423
  this.append(key, value.toString('base64'));
@@ -1382,8 +1425,9 @@ function toURLEncodedForm(data, options) {
1382
1425
  }
1383
1426
 
1384
1427
  return helpers.defaultVisitor.apply(this, arguments);
1385
- }
1386
- }, options));
1428
+ },
1429
+ ...options
1430
+ });
1387
1431
  }
1388
1432
 
1389
1433
  /**
@@ -1579,7 +1623,7 @@ const defaults = {
1579
1623
  const strictJSONParsing = !silentJSONParsing && JSONRequested;
1580
1624
 
1581
1625
  try {
1582
- return JSON.parse(data);
1626
+ return JSON.parse(data, this.parseReviver);
1583
1627
  } catch (e) {
1584
1628
  if (strictJSONParsing) {
1585
1629
  if (e.name === 'SyntaxError') {
@@ -2106,7 +2150,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
2106
2150
  return requestedURL;
2107
2151
  }
2108
2152
 
2109
- const VERSION = "1.10.0";
2153
+ const VERSION = "1.12.2";
2110
2154
 
2111
2155
  function parseProtocol(url) {
2112
2156
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -2534,7 +2578,7 @@ function throttle(fn, freq) {
2534
2578
  clearTimeout(timer);
2535
2579
  timer = null;
2536
2580
  }
2537
- fn.apply(null, args);
2581
+ fn(...args);
2538
2582
  };
2539
2583
 
2540
2584
  const throttled = (...args) => {
@@ -2599,6 +2643,80 @@ const progressEventDecorator = (total, throttled) => {
2599
2643
 
2600
2644
  const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
2601
2645
 
2646
+ /**
2647
+ * Estimate decoded byte length of a data:// URL *without* allocating large buffers.
2648
+ * - For base64: compute exact decoded size using length and padding;
2649
+ * handle %XX at the character-count level (no string allocation).
2650
+ * - For non-base64: use UTF-8 byteLength of the encoded body as a safe upper bound.
2651
+ *
2652
+ * @param {string} url
2653
+ * @returns {number}
2654
+ */
2655
+ function estimateDataURLDecodedBytes(url) {
2656
+ if (!url || typeof url !== 'string') return 0;
2657
+ if (!url.startsWith('data:')) return 0;
2658
+
2659
+ const comma = url.indexOf(',');
2660
+ if (comma < 0) return 0;
2661
+
2662
+ const meta = url.slice(5, comma);
2663
+ const body = url.slice(comma + 1);
2664
+ const isBase64 = /;base64/i.test(meta);
2665
+
2666
+ if (isBase64) {
2667
+ let effectiveLen = body.length;
2668
+ const len = body.length; // cache length
2669
+
2670
+ for (let i = 0; i < len; i++) {
2671
+ if (body.charCodeAt(i) === 37 /* '%' */ && i + 2 < len) {
2672
+ const a = body.charCodeAt(i + 1);
2673
+ const b = body.charCodeAt(i + 2);
2674
+ const isHex =
2675
+ ((a >= 48 && a <= 57) || (a >= 65 && a <= 70) || (a >= 97 && a <= 102)) &&
2676
+ ((b >= 48 && b <= 57) || (b >= 65 && b <= 70) || (b >= 97 && b <= 102));
2677
+
2678
+ if (isHex) {
2679
+ effectiveLen -= 2;
2680
+ i += 2;
2681
+ }
2682
+ }
2683
+ }
2684
+
2685
+ let pad = 0;
2686
+ let idx = len - 1;
2687
+
2688
+ const tailIsPct3D = (j) =>
2689
+ j >= 2 &&
2690
+ body.charCodeAt(j - 2) === 37 && // '%'
2691
+ body.charCodeAt(j - 1) === 51 && // '3'
2692
+ (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100); // 'D' or 'd'
2693
+
2694
+ if (idx >= 0) {
2695
+ if (body.charCodeAt(idx) === 61 /* '=' */) {
2696
+ pad++;
2697
+ idx--;
2698
+ } else if (tailIsPct3D(idx)) {
2699
+ pad++;
2700
+ idx -= 3;
2701
+ }
2702
+ }
2703
+
2704
+ if (pad === 1 && idx >= 0) {
2705
+ if (body.charCodeAt(idx) === 61 /* '=' */) {
2706
+ pad++;
2707
+ } else if (tailIsPct3D(idx)) {
2708
+ pad++;
2709
+ }
2710
+ }
2711
+
2712
+ const groups = Math.floor(effectiveLen / 4);
2713
+ const bytes = groups * 3 - (pad || 0);
2714
+ return bytes > 0 ? bytes : 0;
2715
+ }
2716
+
2717
+ return Buffer.byteLength(body, 'utf8');
2718
+ }
2719
+
2602
2720
  const zlibOptions = {
2603
2721
  flush: zlib__default["default"].constants.Z_SYNC_FLUSH,
2604
2722
  finishFlush: zlib__default["default"].constants.Z_SYNC_FLUSH
@@ -2619,6 +2737,7 @@ const supportedProtocols = platform.protocols.map(protocol => {
2619
2737
  return protocol + ':';
2620
2738
  });
2621
2739
 
2740
+
2622
2741
  const flushOnFinish = (stream, [throttled, flush]) => {
2623
2742
  stream
2624
2743
  .on('end', flush)
@@ -2627,6 +2746,7 @@ const flushOnFinish = (stream, [throttled, flush]) => {
2627
2746
  return throttled;
2628
2747
  };
2629
2748
 
2749
+
2630
2750
  /**
2631
2751
  * If the proxy or config beforeRedirects functions are defined, call them with the options
2632
2752
  * object.
@@ -2806,6 +2926,21 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
2806
2926
  const protocol = parsed.protocol || supportedProtocols[0];
2807
2927
 
2808
2928
  if (protocol === 'data:') {
2929
+ // Apply the same semantics as HTTP: only enforce if a finite, non-negative cap is set.
2930
+ if (config.maxContentLength > -1) {
2931
+ // Use the exact string passed to fromDataURI (config.url); fall back to fullPath if needed.
2932
+ const dataUrl = String(config.url || fullPath || '');
2933
+ const estimated = estimateDataURLDecodedBytes(dataUrl);
2934
+
2935
+ if (estimated > config.maxContentLength) {
2936
+ return reject(new AxiosError(
2937
+ 'maxContentLength size of ' + config.maxContentLength + ' exceeded',
2938
+ AxiosError.ERR_BAD_RESPONSE,
2939
+ config
2940
+ ));
2941
+ }
2942
+ }
2943
+
2809
2944
  let convertedData;
2810
2945
 
2811
2946
  if (method !== 'GET') {
@@ -3408,7 +3543,7 @@ function mergeConfig(config1, config2) {
3408
3543
  headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
3409
3544
  };
3410
3545
 
3411
- utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
3546
+ utils$1.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
3412
3547
  const merge = mergeMap[prop] || mergeDeepProperties;
3413
3548
  const configValue = merge(config1[prop], config2[prop], prop);
3414
3549
  (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
@@ -3420,7 +3555,7 @@ function mergeConfig(config1, config2) {
3420
3555
  const resolveConfig = (config) => {
3421
3556
  const newConfig = mergeConfig({}, config);
3422
3557
 
3423
- let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
3558
+ let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
3424
3559
 
3425
3560
  newConfig.headers = headers = AxiosHeaders$1.from(headers);
3426
3561
 
@@ -3433,17 +3568,21 @@ const resolveConfig = (config) => {
3433
3568
  );
3434
3569
  }
3435
3570
 
3436
- let contentType;
3437
-
3438
3571
  if (utils$1.isFormData(data)) {
3439
3572
  if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
3440
- headers.setContentType(undefined); // Let the browser set it
3441
- } else if ((contentType = headers.getContentType()) !== false) {
3442
- // fix semicolon duplication issue for ReactNative FormData implementation
3443
- const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];
3444
- headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));
3573
+ headers.setContentType(undefined); // browser handles it
3574
+ } else if (utils$1.isFunction(data.getHeaders)) {
3575
+ // Node.js FormData (like form-data package)
3576
+ const formHeaders = data.getHeaders();
3577
+ // Only set safe headers to avoid overwriting security headers
3578
+ const allowedHeaders = ['content-type', 'content-length'];
3579
+ Object.entries(formHeaders).forEach(([key, val]) => {
3580
+ if (allowedHeaders.includes(key.toLowerCase())) {
3581
+ headers.set(key, val);
3582
+ }
3583
+ });
3445
3584
  }
3446
- }
3585
+ }
3447
3586
 
3448
3587
  // Add xsrf header
3449
3588
  // This is only done if running in a standard browser environment.
@@ -3560,15 +3699,18 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
3560
3699
  };
3561
3700
 
3562
3701
  // Handle low level network errors
3563
- request.onerror = function handleError() {
3564
- // Real errors are hidden from us by the browser
3565
- // onerror should only fire if it's a network error
3566
- reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));
3567
-
3568
- // Clean up request
3569
- request = null;
3702
+ request.onerror = function handleError(event) {
3703
+ // Browsers deliver a ProgressEvent in XHR onerror
3704
+ // (message may be empty; when present, surface it)
3705
+ // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
3706
+ const msg = event && event.message ? event.message : 'Network Error';
3707
+ const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
3708
+ // attach the underlying event for consumers who want details
3709
+ err.event = event || null;
3710
+ reject(err);
3711
+ request = null;
3570
3712
  };
3571
-
3713
+
3572
3714
  // Handle timeout
3573
3715
  request.ontimeout = function handleTimeout() {
3574
3716
  let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
@@ -3784,14 +3926,18 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
3784
3926
  })
3785
3927
  };
3786
3928
 
3787
- const isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';
3788
- const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';
3929
+ const DEFAULT_CHUNK_SIZE = 64 * 1024;
3930
+
3931
+ const {isFunction} = utils$1;
3932
+
3933
+ const globalFetchAPI = (({Request, Response}) => ({
3934
+ Request, Response
3935
+ }))(utils$1.global);
3936
+
3937
+ const {
3938
+ ReadableStream: ReadableStream$1, TextEncoder: TextEncoder$1
3939
+ } = utils$1.global;
3789
3940
 
3790
- // used only inside the fetch adapter
3791
- const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
3792
- ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
3793
- async (str) => new Uint8Array(await new Response(str).arrayBuffer())
3794
- );
3795
3941
 
3796
3942
  const test = (fn, ...args) => {
3797
3943
  try {
@@ -3801,211 +3947,268 @@ const test = (fn, ...args) => {
3801
3947
  }
3802
3948
  };
3803
3949
 
3804
- const supportsRequestStream = isReadableStreamSupported && test(() => {
3805
- let duplexAccessed = false;
3950
+ const factory = (env) => {
3951
+ env = utils$1.merge.call({
3952
+ skipUndefined: true
3953
+ }, globalFetchAPI, env);
3806
3954
 
3807
- const hasContentType = new Request(platform.origin, {
3808
- body: new ReadableStream(),
3809
- method: 'POST',
3810
- get duplex() {
3811
- duplexAccessed = true;
3812
- return 'half';
3813
- },
3814
- }).headers.has('Content-Type');
3955
+ const {fetch: envFetch, Request, Response} = env;
3956
+ const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
3957
+ const isRequestSupported = isFunction(Request);
3958
+ const isResponseSupported = isFunction(Response);
3815
3959
 
3816
- return duplexAccessed && !hasContentType;
3817
- });
3960
+ if (!isFetchSupported) {
3961
+ return false;
3962
+ }
3818
3963
 
3819
- const DEFAULT_CHUNK_SIZE = 64 * 1024;
3964
+ const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
3820
3965
 
3821
- const supportsResponseStream = isReadableStreamSupported &&
3822
- test(() => utils$1.isReadableStream(new Response('').body));
3966
+ const encodeText = isFetchSupported && (typeof TextEncoder$1 === 'function' ?
3967
+ ((encoder) => (str) => encoder.encode(str))(new TextEncoder$1()) :
3968
+ async (str) => new Uint8Array(await new Request(str).arrayBuffer())
3969
+ );
3823
3970
 
3971
+ const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
3972
+ let duplexAccessed = false;
3824
3973
 
3825
- const resolvers = {
3826
- stream: supportsResponseStream && ((res) => res.body)
3827
- };
3974
+ const hasContentType = new Request(platform.origin, {
3975
+ body: new ReadableStream$1(),
3976
+ method: 'POST',
3977
+ get duplex() {
3978
+ duplexAccessed = true;
3979
+ return 'half';
3980
+ },
3981
+ }).headers.has('Content-Type');
3828
3982
 
3829
- isFetchSupported && (((res) => {
3830
- ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
3831
- !resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res) => res[type]() :
3832
- (_, config) => {
3833
- throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
3834
- });
3983
+ return duplexAccessed && !hasContentType;
3835
3984
  });
3836
- })(new Response));
3837
3985
 
3838
- const getBodyLength = async (body) => {
3839
- if (body == null) {
3840
- return 0;
3841
- }
3986
+ const supportsResponseStream = isResponseSupported && isReadableStreamSupported &&
3987
+ test(() => utils$1.isReadableStream(new Response('').body));
3842
3988
 
3843
- if(utils$1.isBlob(body)) {
3844
- return body.size;
3845
- }
3989
+ const resolvers = {
3990
+ stream: supportsResponseStream && ((res) => res.body)
3991
+ };
3846
3992
 
3847
- if(utils$1.isSpecCompliantForm(body)) {
3848
- const _request = new Request(platform.origin, {
3849
- method: 'POST',
3850
- body,
3993
+ isFetchSupported && ((() => {
3994
+ ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
3995
+ !resolvers[type] && (resolvers[type] = (res, config) => {
3996
+ let method = res && res[type];
3997
+
3998
+ if (method) {
3999
+ return method.call(res);
4000
+ }
4001
+
4002
+ throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
4003
+ });
3851
4004
  });
3852
- return (await _request.arrayBuffer()).byteLength;
3853
- }
4005
+ })());
3854
4006
 
3855
- if(utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
3856
- return body.byteLength;
3857
- }
4007
+ const getBodyLength = async (body) => {
4008
+ if (body == null) {
4009
+ return 0;
4010
+ }
3858
4011
 
3859
- if(utils$1.isURLSearchParams(body)) {
3860
- body = body + '';
3861
- }
4012
+ if (utils$1.isBlob(body)) {
4013
+ return body.size;
4014
+ }
3862
4015
 
3863
- if(utils$1.isString(body)) {
3864
- return (await encodeText(body)).byteLength;
3865
- }
3866
- };
4016
+ if (utils$1.isSpecCompliantForm(body)) {
4017
+ const _request = new Request(platform.origin, {
4018
+ method: 'POST',
4019
+ body,
4020
+ });
4021
+ return (await _request.arrayBuffer()).byteLength;
4022
+ }
4023
+
4024
+ if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
4025
+ return body.byteLength;
4026
+ }
3867
4027
 
3868
- const resolveBodyLength = async (headers, body) => {
3869
- const length = utils$1.toFiniteNumber(headers.getContentLength());
4028
+ if (utils$1.isURLSearchParams(body)) {
4029
+ body = body + '';
4030
+ }
3870
4031
 
3871
- return length == null ? getBodyLength(body) : length;
3872
- };
4032
+ if (utils$1.isString(body)) {
4033
+ return (await encodeText(body)).byteLength;
4034
+ }
4035
+ };
4036
+
4037
+ const resolveBodyLength = async (headers, body) => {
4038
+ const length = utils$1.toFiniteNumber(headers.getContentLength());
4039
+
4040
+ return length == null ? getBodyLength(body) : length;
4041
+ };
3873
4042
 
3874
- const fetchAdapter = isFetchSupported && (async (config) => {
3875
- let {
3876
- url,
3877
- method,
3878
- data,
3879
- signal,
3880
- cancelToken,
3881
- timeout,
3882
- onDownloadProgress,
3883
- onUploadProgress,
3884
- responseType,
3885
- headers,
3886
- withCredentials = 'same-origin',
3887
- fetchOptions
3888
- } = resolveConfig(config);
3889
-
3890
- responseType = responseType ? (responseType + '').toLowerCase() : 'text';
3891
-
3892
- let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
3893
-
3894
- let request;
3895
-
3896
- const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
4043
+ return async (config) => {
4044
+ let {
4045
+ url,
4046
+ method,
4047
+ data,
4048
+ signal,
4049
+ cancelToken,
4050
+ timeout,
4051
+ onDownloadProgress,
4052
+ onUploadProgress,
4053
+ responseType,
4054
+ headers,
4055
+ withCredentials = 'same-origin',
4056
+ fetchOptions
4057
+ } = resolveConfig(config);
4058
+
4059
+ let _fetch = envFetch || fetch;
4060
+
4061
+ responseType = responseType ? (responseType + '').toLowerCase() : 'text';
4062
+
4063
+ let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
4064
+
4065
+ let request = null;
4066
+
4067
+ const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
3897
4068
  composedSignal.unsubscribe();
3898
- });
4069
+ });
3899
4070
 
3900
- let requestContentLength;
4071
+ let requestContentLength;
3901
4072
 
3902
- try {
3903
- if (
3904
- onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
3905
- (requestContentLength = await resolveBodyLength(headers, data)) !== 0
3906
- ) {
3907
- let _request = new Request(url, {
3908
- method: 'POST',
3909
- body: data,
3910
- duplex: "half"
3911
- });
4073
+ try {
4074
+ if (
4075
+ onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
4076
+ (requestContentLength = await resolveBodyLength(headers, data)) !== 0
4077
+ ) {
4078
+ let _request = new Request(url, {
4079
+ method: 'POST',
4080
+ body: data,
4081
+ duplex: "half"
4082
+ });
3912
4083
 
3913
- let contentTypeHeader;
4084
+ let contentTypeHeader;
3914
4085
 
3915
- if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
3916
- headers.setContentType(contentTypeHeader);
3917
- }
4086
+ if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
4087
+ headers.setContentType(contentTypeHeader);
4088
+ }
3918
4089
 
3919
- if (_request.body) {
3920
- const [onProgress, flush] = progressEventDecorator(
3921
- requestContentLength,
3922
- progressEventReducer(asyncDecorator(onUploadProgress))
3923
- );
4090
+ if (_request.body) {
4091
+ const [onProgress, flush] = progressEventDecorator(
4092
+ requestContentLength,
4093
+ progressEventReducer(asyncDecorator(onUploadProgress))
4094
+ );
3924
4095
 
3925
- data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
4096
+ data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
4097
+ }
3926
4098
  }
3927
- }
3928
4099
 
3929
- if (!utils$1.isString(withCredentials)) {
3930
- withCredentials = withCredentials ? 'include' : 'omit';
3931
- }
4100
+ if (!utils$1.isString(withCredentials)) {
4101
+ withCredentials = withCredentials ? 'include' : 'omit';
4102
+ }
3932
4103
 
3933
- // Cloudflare Workers throws when credentials are defined
3934
- // see https://github.com/cloudflare/workerd/issues/902
3935
- const isCredentialsSupported = "credentials" in Request.prototype;
3936
- request = new Request(url, {
3937
- ...fetchOptions,
3938
- signal: composedSignal,
3939
- method: method.toUpperCase(),
3940
- headers: headers.normalize().toJSON(),
3941
- body: data,
3942
- duplex: "half",
3943
- credentials: isCredentialsSupported ? withCredentials : undefined
3944
- });
4104
+ // Cloudflare Workers throws when credentials are defined
4105
+ // see https://github.com/cloudflare/workerd/issues/902
4106
+ const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
3945
4107
 
3946
- let response = await fetch(request, fetchOptions);
4108
+ const resolvedOptions = {
4109
+ ...fetchOptions,
4110
+ signal: composedSignal,
4111
+ method: method.toUpperCase(),
4112
+ headers: headers.normalize().toJSON(),
4113
+ body: data,
4114
+ duplex: "half",
4115
+ credentials: isCredentialsSupported ? withCredentials : undefined
4116
+ };
3947
4117
 
3948
- const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
4118
+ request = isRequestSupported && new Request(url, resolvedOptions);
3949
4119
 
3950
- if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
3951
- const options = {};
4120
+ let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
3952
4121
 
3953
- ['status', 'statusText', 'headers'].forEach(prop => {
3954
- options[prop] = response[prop];
3955
- });
4122
+ const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
3956
4123
 
3957
- const responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
4124
+ if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
4125
+ const options = {};
3958
4126
 
3959
- const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
3960
- responseContentLength,
3961
- progressEventReducer(asyncDecorator(onDownloadProgress), true)
3962
- ) || [];
4127
+ ['status', 'statusText', 'headers'].forEach(prop => {
4128
+ options[prop] = response[prop];
4129
+ });
3963
4130
 
3964
- response = new Response(
3965
- trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
3966
- flush && flush();
3967
- unsubscribe && unsubscribe();
3968
- }),
3969
- options
3970
- );
3971
- }
4131
+ const responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
3972
4132
 
3973
- responseType = responseType || 'text';
4133
+ const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
4134
+ responseContentLength,
4135
+ progressEventReducer(asyncDecorator(onDownloadProgress), true)
4136
+ ) || [];
3974
4137
 
3975
- let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || 'text'](response, config);
4138
+ response = new Response(
4139
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
4140
+ flush && flush();
4141
+ unsubscribe && unsubscribe();
4142
+ }),
4143
+ options
4144
+ );
4145
+ }
3976
4146
 
3977
- !isStreamResponse && unsubscribe && unsubscribe();
4147
+ responseType = responseType || 'text';
3978
4148
 
3979
- return await new Promise((resolve, reject) => {
3980
- settle(resolve, reject, {
3981
- data: responseData,
3982
- headers: AxiosHeaders$1.from(response.headers),
3983
- status: response.status,
3984
- statusText: response.statusText,
3985
- config,
3986
- request
3987
- });
3988
- })
3989
- } catch (err) {
3990
- unsubscribe && unsubscribe();
3991
-
3992
- if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
3993
- throw Object.assign(
3994
- new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
3995
- {
3996
- cause: err.cause || err
3997
- }
3998
- )
4149
+ let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || 'text'](response, config);
4150
+
4151
+ !isStreamResponse && unsubscribe && unsubscribe();
4152
+
4153
+ return await new Promise((resolve, reject) => {
4154
+ settle(resolve, reject, {
4155
+ data: responseData,
4156
+ headers: AxiosHeaders$1.from(response.headers),
4157
+ status: response.status,
4158
+ statusText: response.statusText,
4159
+ config,
4160
+ request
4161
+ });
4162
+ })
4163
+ } catch (err) {
4164
+ unsubscribe && unsubscribe();
4165
+
4166
+ if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
4167
+ throw Object.assign(
4168
+ new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
4169
+ {
4170
+ cause: err.cause || err
4171
+ }
4172
+ )
4173
+ }
4174
+
4175
+ throw AxiosError.from(err, err && err.code, config, request);
3999
4176
  }
4177
+ }
4178
+ };
4179
+
4180
+ const seedCache = new Map();
4181
+
4182
+ const getFetch = (config) => {
4183
+ let env = config ? config.env : {};
4184
+ const {fetch, Request, Response} = env;
4185
+ const seeds = [
4186
+ Request, Response, fetch
4187
+ ];
4000
4188
 
4001
- throw AxiosError.from(err, err && err.code, config, request);
4189
+ let len = seeds.length, i = len,
4190
+ seed, target, map = seedCache;
4191
+
4192
+ while (i--) {
4193
+ seed = seeds[i];
4194
+ target = map.get(seed);
4195
+
4196
+ target === undefined && map.set(seed, target = (i ? new Map() : factory(env)));
4197
+
4198
+ map = target;
4002
4199
  }
4003
- });
4200
+
4201
+ return target;
4202
+ };
4203
+
4204
+ getFetch();
4004
4205
 
4005
4206
  const knownAdapters = {
4006
4207
  http: httpAdapter,
4007
4208
  xhr: xhrAdapter,
4008
- fetch: fetchAdapter
4209
+ fetch: {
4210
+ get: getFetch,
4211
+ }
4009
4212
  };
4010
4213
 
4011
4214
  utils$1.forEach(knownAdapters, (fn, value) => {
@@ -4024,7 +4227,7 @@ const renderReason = (reason) => `- ${reason}`;
4024
4227
  const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
4025
4228
 
4026
4229
  const adapters = {
4027
- getAdapter: (adapters) => {
4230
+ getAdapter: (adapters, config) => {
4028
4231
  adapters = utils$1.isArray(adapters) ? adapters : [adapters];
4029
4232
 
4030
4233
  const {length} = adapters;
@@ -4047,7 +4250,7 @@ const adapters = {
4047
4250
  }
4048
4251
  }
4049
4252
 
4050
- if (adapter) {
4253
+ if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
4051
4254
  break;
4052
4255
  }
4053
4256
 
@@ -4115,7 +4318,7 @@ function dispatchRequest(config) {
4115
4318
  config.headers.setContentType('application/x-www-form-urlencoded', false);
4116
4319
  }
4117
4320
 
4118
- const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
4321
+ const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter, config);
4119
4322
 
4120
4323
  return adapter(config).then(function onAdapterResolution(response) {
4121
4324
  throwIfCancellationRequested(config);
@@ -4386,8 +4589,8 @@ class Axios {
4386
4589
 
4387
4590
  if (!synchronousRequestInterceptors) {
4388
4591
  const chain = [dispatchRequest.bind(this), undefined];
4389
- chain.unshift.apply(chain, requestInterceptorChain);
4390
- chain.push.apply(chain, responseInterceptorChain);
4592
+ chain.unshift(...requestInterceptorChain);
4593
+ chain.push(...responseInterceptorChain);
4391
4594
  len = chain.length;
4392
4595
 
4393
4596
  promise = Promise.resolve(config);
@@ -4403,8 +4606,6 @@ class Axios {
4403
4606
 
4404
4607
  let newConfig = config;
4405
4608
 
4406
- i = 0;
4407
-
4408
4609
  while (i < len) {
4409
4610
  const onFulfilled = requestInterceptorChain[i++];
4410
4611
  const onRejected = requestInterceptorChain[i++];