cloudstructs 0.9.41 → 0.9.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (349) hide show
  1. package/.jsii +5 -5
  2. package/API.md +209 -13
  3. package/assets/slack-textract/detect.lambda/index.js +276 -88
  4. package/lib/codecommit-mirror/index.js +2 -2
  5. package/lib/dmarc/index.js +1 -1
  6. package/lib/ecs-service-roller/index.js +2 -2
  7. package/lib/email-receiver/receiver.js +1 -1
  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/slack-app.js +2 -2
  12. package/lib/slack-events/index.js +1 -1
  13. package/lib/slack-textract/index.js +1 -1
  14. package/lib/ssl-server-test/index.js +1 -1
  15. package/lib/state-machine-cr-provider/index.js +1 -1
  16. package/lib/static-website/index.js +1 -1
  17. package/lib/toolkit-cleaner/index.js +1 -1
  18. package/lib/url-shortener/index.js +1 -1
  19. package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
  20. package/node_modules/@slack/logger/node_modules/@types/node/assert.d.ts +36 -1
  21. package/node_modules/@slack/logger/node_modules/@types/node/buffer.buffer.d.ts +9 -0
  22. package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +8 -4
  23. package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +50 -33
  24. package/node_modules/@slack/logger/node_modules/@types/node/console.d.ts +3 -2
  25. package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +198 -164
  26. package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +9 -8
  27. package/node_modules/@slack/logger/node_modules/@types/node/fs/promises.d.ts +39 -21
  28. package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +89 -76
  29. package/node_modules/@slack/logger/node_modules/@types/node/globals.typedarray.d.ts +19 -0
  30. package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +52 -22
  31. package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +29 -22
  32. package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +82 -50
  33. package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +7 -6
  34. package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +3 -2
  35. package/node_modules/@slack/logger/node_modules/@types/node/package.json +3 -3
  36. package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +13 -5
  37. package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +221 -7
  38. package/node_modules/@slack/logger/node_modules/@types/node/stream/consumers.d.ts +2 -2
  39. package/node_modules/@slack/logger/node_modules/@types/node/string_decoder.d.ts +2 -2
  40. package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +88 -64
  41. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
  42. package/node_modules/@slack/logger/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
  43. package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +34 -10
  44. package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +11 -2
  45. package/node_modules/@slack/logger/node_modules/@types/node/v8.d.ts +20 -3
  46. package/node_modules/@slack/logger/node_modules/@types/node/vm.d.ts +24 -3
  47. package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +40 -3
  48. package/node_modules/@slack/logger/node_modules/@types/node/zlib.d.ts +25 -24
  49. package/node_modules/@slack/logger/node_modules/undici-types/agent.d.ts +1 -0
  50. package/node_modules/@slack/logger/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
  51. package/node_modules/@slack/logger/node_modules/undici-types/errors.d.ts +5 -15
  52. package/node_modules/@slack/logger/node_modules/undici-types/interceptors.d.ts +5 -0
  53. package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
  54. package/node_modules/@slack/logger/node_modules/undici-types/snapshot-agent.d.ts +5 -3
  55. package/node_modules/@slack/logger/node_modules/undici-types/webidl.d.ts +82 -21
  56. package/node_modules/@slack/types/dist/events/entity-details-requested.d.ts +21 -0
  57. package/node_modules/@slack/types/dist/events/entity-details-requested.d.ts.map +1 -0
  58. package/node_modules/@slack/types/dist/events/entity-details-requested.js +3 -0
  59. package/node_modules/@slack/types/dist/events/entity-details-requested.js.map +1 -0
  60. package/node_modules/@slack/types/dist/events/index.d.ts +2 -1
  61. package/node_modules/@slack/types/dist/events/index.d.ts.map +1 -1
  62. package/node_modules/@slack/types/dist/events/index.js.map +1 -1
  63. package/node_modules/@slack/types/dist/message-metadata.d.ts +246 -1
  64. package/node_modules/@slack/types/dist/message-metadata.d.ts.map +1 -1
  65. package/node_modules/@slack/types/dist/message-metadata.js +21 -0
  66. package/node_modules/@slack/types/dist/message-metadata.js.map +1 -1
  67. package/node_modules/@slack/types/package.json +1 -1
  68. package/node_modules/@slack/web-api/dist/methods.d.ts +9 -2
  69. package/node_modules/@slack/web-api/dist/methods.d.ts.map +1 -1
  70. package/node_modules/@slack/web-api/dist/methods.js +7 -0
  71. package/node_modules/@slack/web-api/dist/methods.js.map +1 -1
  72. package/node_modules/@slack/web-api/dist/types/request/chat.d.ts +37 -9
  73. package/node_modules/@slack/web-api/dist/types/request/chat.d.ts.map +1 -1
  74. package/node_modules/@slack/web-api/dist/types/request/entity.d.ts +46 -0
  75. package/node_modules/@slack/web-api/dist/types/request/entity.d.ts.map +1 -0
  76. package/node_modules/@slack/web-api/dist/types/request/entity.js +3 -0
  77. package/node_modules/@slack/web-api/dist/types/request/entity.js.map +1 -0
  78. package/node_modules/@slack/web-api/dist/types/request/index.d.ts +1 -0
  79. package/node_modules/@slack/web-api/dist/types/request/index.d.ts.map +1 -1
  80. package/node_modules/@slack/web-api/dist/types/request/manifest.d.ts +1 -1
  81. package/node_modules/@slack/web-api/dist/types/request/manifest.d.ts.map +1 -1
  82. package/node_modules/@slack/web-api/dist/types/request/search.d.ts +10 -1
  83. package/node_modules/@slack/web-api/dist/types/request/search.d.ts.map +1 -1
  84. package/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.d.ts +9 -0
  85. package/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.d.ts.map +1 -0
  86. package/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.js +11 -0
  87. package/node_modules/@slack/web-api/dist/types/response/EntityPresentDetailsResponse.js.map +1 -0
  88. package/node_modules/@slack/web-api/dist/types/response/index.d.ts +1 -0
  89. package/node_modules/@slack/web-api/dist/types/response/index.d.ts.map +1 -1
  90. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  91. package/node_modules/@slack/web-api/node_modules/@types/node/assert.d.ts +36 -1
  92. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.buffer.d.ts +9 -0
  93. package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +8 -4
  94. package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +50 -33
  95. package/node_modules/@slack/web-api/node_modules/@types/node/console.d.ts +3 -2
  96. package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +198 -164
  97. package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +9 -8
  98. package/node_modules/@slack/web-api/node_modules/@types/node/fs/promises.d.ts +39 -21
  99. package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +89 -76
  100. package/node_modules/@slack/web-api/node_modules/@types/node/globals.typedarray.d.ts +19 -0
  101. package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +52 -22
  102. package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +29 -22
  103. package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +82 -50
  104. package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +7 -6
  105. package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +3 -2
  106. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +3 -3
  107. package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +13 -5
  108. package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +221 -7
  109. package/node_modules/@slack/web-api/node_modules/@types/node/stream/consumers.d.ts +2 -2
  110. package/node_modules/@slack/web-api/node_modules/@types/node/string_decoder.d.ts +2 -2
  111. package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +88 -64
  112. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
  113. package/node_modules/@slack/web-api/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
  114. package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +34 -10
  115. package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +11 -2
  116. package/node_modules/@slack/web-api/node_modules/@types/node/v8.d.ts +20 -3
  117. package/node_modules/@slack/web-api/node_modules/@types/node/vm.d.ts +24 -3
  118. package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +40 -3
  119. package/node_modules/@slack/web-api/node_modules/@types/node/zlib.d.ts +25 -24
  120. package/node_modules/@slack/web-api/node_modules/undici-types/agent.d.ts +1 -0
  121. package/node_modules/@slack/web-api/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
  122. package/node_modules/@slack/web-api/node_modules/undici-types/errors.d.ts +5 -15
  123. package/node_modules/@slack/web-api/node_modules/undici-types/interceptors.d.ts +5 -0
  124. package/node_modules/@slack/web-api/node_modules/undici-types/package.json +1 -1
  125. package/node_modules/@slack/web-api/node_modules/undici-types/snapshot-agent.d.ts +5 -3
  126. package/node_modules/@slack/web-api/node_modules/undici-types/webidl.d.ts +82 -21
  127. package/node_modules/@slack/web-api/package.json +2 -2
  128. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  129. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +36 -1
  130. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.buffer.d.ts +9 -0
  131. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +8 -4
  132. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +50 -33
  133. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +3 -2
  134. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +198 -164
  135. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +9 -8
  136. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +39 -21
  137. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +89 -76
  138. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.typedarray.d.ts +19 -0
  139. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +52 -22
  140. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +29 -22
  141. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +82 -50
  142. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +7 -6
  143. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +3 -2
  144. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -3
  145. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +13 -5
  146. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +221 -7
  147. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +2 -2
  148. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +2 -2
  149. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +88 -64
  150. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
  151. package/node_modules/@types/cacheable-request/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
  152. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +34 -10
  153. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +11 -2
  154. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +20 -3
  155. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +24 -3
  156. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +40 -3
  157. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +25 -24
  158. package/node_modules/@types/cacheable-request/node_modules/undici-types/agent.d.ts +1 -0
  159. package/node_modules/@types/cacheable-request/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
  160. package/node_modules/@types/cacheable-request/node_modules/undici-types/errors.d.ts +5 -15
  161. package/node_modules/@types/cacheable-request/node_modules/undici-types/interceptors.d.ts +5 -0
  162. package/node_modules/@types/cacheable-request/node_modules/undici-types/package.json +1 -1
  163. package/node_modules/@types/cacheable-request/node_modules/undici-types/snapshot-agent.d.ts +5 -3
  164. package/node_modules/@types/cacheable-request/node_modules/undici-types/webidl.d.ts +82 -21
  165. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  166. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +36 -1
  167. package/node_modules/@types/keyv/node_modules/@types/node/buffer.buffer.d.ts +9 -0
  168. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +8 -4
  169. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +50 -33
  170. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +3 -2
  171. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +198 -164
  172. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +9 -8
  173. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +39 -21
  174. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +89 -76
  175. package/node_modules/@types/keyv/node_modules/@types/node/globals.typedarray.d.ts +19 -0
  176. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +52 -22
  177. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +29 -22
  178. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +82 -50
  179. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +7 -6
  180. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +3 -2
  181. package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -3
  182. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +13 -5
  183. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +221 -7
  184. package/node_modules/@types/keyv/node_modules/@types/node/stream/consumers.d.ts +2 -2
  185. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +2 -2
  186. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +88 -64
  187. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
  188. package/node_modules/@types/keyv/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
  189. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +34 -10
  190. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +11 -2
  191. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +20 -3
  192. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +24 -3
  193. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +40 -3
  194. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +25 -24
  195. package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +1 -0
  196. package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
  197. package/node_modules/@types/keyv/node_modules/undici-types/errors.d.ts +5 -15
  198. package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +5 -0
  199. package/node_modules/@types/keyv/node_modules/undici-types/package.json +1 -1
  200. package/node_modules/@types/keyv/node_modules/undici-types/snapshot-agent.d.ts +5 -3
  201. package/node_modules/@types/keyv/node_modules/undici-types/webidl.d.ts +82 -21
  202. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  203. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +36 -1
  204. package/node_modules/@types/responselike/node_modules/@types/node/buffer.buffer.d.ts +9 -0
  205. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +8 -4
  206. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +50 -33
  207. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +3 -2
  208. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +198 -164
  209. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +9 -8
  210. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +39 -21
  211. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +89 -76
  212. package/node_modules/@types/responselike/node_modules/@types/node/globals.typedarray.d.ts +19 -0
  213. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +52 -22
  214. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +29 -22
  215. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +82 -50
  216. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +7 -6
  217. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +3 -2
  218. package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -3
  219. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +13 -5
  220. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +221 -7
  221. package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +2 -2
  222. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +2 -2
  223. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +88 -64
  224. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
  225. package/node_modules/@types/responselike/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +16 -0
  226. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +34 -10
  227. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +11 -2
  228. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +20 -3
  229. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +24 -3
  230. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +40 -3
  231. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +25 -24
  232. package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +1 -0
  233. package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +0 -1
  234. package/node_modules/@types/responselike/node_modules/undici-types/errors.d.ts +5 -15
  235. package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +5 -0
  236. package/node_modules/@types/responselike/node_modules/undici-types/package.json +1 -1
  237. package/node_modules/@types/responselike/node_modules/undici-types/snapshot-agent.d.ts +5 -3
  238. package/node_modules/@types/responselike/node_modules/undici-types/webidl.d.ts +82 -21
  239. package/node_modules/axios/CHANGELOG.md +410 -346
  240. package/node_modules/axios/README.md +79 -51
  241. package/node_modules/axios/dist/axios.js +121 -46
  242. package/node_modules/axios/dist/axios.js.map +1 -1
  243. package/node_modules/axios/dist/axios.min.js +2 -2
  244. package/node_modules/axios/dist/axios.min.js.map +1 -1
  245. package/node_modules/axios/dist/browser/axios.cjs +126 -57
  246. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  247. package/node_modules/axios/dist/esm/axios.js +126 -57
  248. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  249. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  250. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  251. package/node_modules/axios/dist/node/axios.cjs +351 -97
  252. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  253. package/node_modules/axios/index.d.cts +4 -0
  254. package/node_modules/axios/index.d.ts +4 -0
  255. package/node_modules/axios/lib/adapters/adapters.js +85 -40
  256. package/node_modules/axios/lib/adapters/fetch.js +1 -1
  257. package/node_modules/axios/lib/adapters/http.js +224 -42
  258. package/node_modules/axios/lib/core/InterceptorManager.js +1 -1
  259. package/node_modules/axios/lib/core/mergeConfig.js +4 -4
  260. package/node_modules/axios/lib/env/data.js +1 -1
  261. package/node_modules/axios/lib/helpers/HttpStatusCode.js +6 -0
  262. package/node_modules/axios/lib/helpers/bind.js +7 -0
  263. package/node_modules/axios/lib/helpers/cookies.js +24 -13
  264. package/node_modules/axios/package.json +9 -4
  265. package/node_modules/mjml/LICENSE.md +21 -0
  266. package/node_modules/mjml/package.json +9 -8
  267. package/node_modules/mjml-accordion/LICENSE.md +21 -0
  268. package/node_modules/mjml-accordion/README.md +2 -2
  269. package/node_modules/mjml-accordion/lib/Accordion.js +8 -0
  270. package/node_modules/mjml-accordion/lib/AccordionElement.js +8 -0
  271. package/node_modules/mjml-accordion/lib/AccordionText.js +17 -3
  272. package/node_modules/mjml-accordion/lib/AccordionTitle.js +17 -3
  273. package/node_modules/mjml-accordion/package.json +4 -3
  274. package/node_modules/mjml-body/LICENSE.md +21 -0
  275. package/node_modules/mjml-body/package.json +4 -3
  276. package/node_modules/mjml-button/LICENSE.md +21 -0
  277. package/node_modules/mjml-button/README.md +1 -1
  278. package/node_modules/mjml-button/package.json +4 -3
  279. package/node_modules/mjml-carousel/LICENSE.md +21 -0
  280. package/node_modules/mjml-carousel/README.md +5 -5
  281. package/node_modules/mjml-carousel/lib/Carousel.js +15 -2
  282. package/node_modules/mjml-carousel/lib/CarouselImage.js +8 -1
  283. package/node_modules/mjml-carousel/package.json +4 -3
  284. package/node_modules/mjml-cli/LICENSE.md +21 -0
  285. package/node_modules/mjml-cli/package.json +7 -6
  286. package/node_modules/mjml-column/LICENSE.md +21 -0
  287. package/node_modules/mjml-column/lib/index.js +29 -3
  288. package/node_modules/mjml-column/package.json +4 -3
  289. package/node_modules/mjml-core/LICENSE.md +21 -0
  290. package/node_modules/mjml-core/lib/createComponent.js +4 -2
  291. package/node_modules/mjml-core/lib/index.js +3 -0
  292. package/node_modules/mjml-core/package.json +6 -5
  293. package/node_modules/mjml-divider/LICENSE.md +21 -0
  294. package/node_modules/mjml-divider/package.json +4 -3
  295. package/node_modules/mjml-group/LICENSE.md +21 -0
  296. package/node_modules/mjml-group/README.md +4 -4
  297. package/node_modules/mjml-group/package.json +4 -3
  298. package/node_modules/mjml-head/LICENSE.md +21 -0
  299. package/node_modules/mjml-head/package.json +4 -3
  300. package/node_modules/mjml-head-attributes/LICENSE.md +21 -0
  301. package/node_modules/mjml-head-attributes/package.json +4 -3
  302. package/node_modules/mjml-head-breakpoint/LICENSE.md +21 -0
  303. package/node_modules/mjml-head-breakpoint/package.json +4 -3
  304. package/node_modules/mjml-head-font/LICENSE.md +21 -0
  305. package/node_modules/mjml-head-font/package.json +4 -3
  306. package/node_modules/mjml-head-html-attributes/LICENSE.md +21 -0
  307. package/node_modules/mjml-head-html-attributes/package.json +4 -3
  308. package/node_modules/mjml-head-preview/LICENSE.md +21 -0
  309. package/node_modules/mjml-head-preview/package.json +4 -3
  310. package/node_modules/mjml-head-style/LICENSE.md +21 -0
  311. package/node_modules/mjml-head-style/package.json +4 -3
  312. package/node_modules/mjml-head-title/LICENSE.md +21 -0
  313. package/node_modules/mjml-head-title/package.json +4 -3
  314. package/node_modules/mjml-hero/LICENSE.md +21 -0
  315. package/node_modules/mjml-hero/README.md +4 -4
  316. package/node_modules/mjml-hero/package.json +4 -3
  317. package/node_modules/mjml-image/LICENSE.md +21 -0
  318. package/node_modules/mjml-image/README.md +1 -1
  319. package/node_modules/mjml-image/package.json +4 -3
  320. package/node_modules/mjml-migrate/package.json +5 -4
  321. package/node_modules/mjml-navbar/LICENSE.md +21 -0
  322. package/node_modules/mjml-navbar/README.md +4 -4
  323. package/node_modules/mjml-navbar/lib/Navbar.js +2 -2
  324. package/node_modules/mjml-navbar/package.json +4 -3
  325. package/node_modules/mjml-parser-xml/package.json +4 -4
  326. package/node_modules/mjml-preset-core/LICENSE.md +21 -0
  327. package/node_modules/mjml-preset-core/package.json +28 -27
  328. package/node_modules/mjml-raw/LICENSE.md +21 -0
  329. package/node_modules/mjml-raw/package.json +4 -3
  330. package/node_modules/mjml-section/LICENSE.md +21 -0
  331. package/node_modules/mjml-section/lib/index.js +20 -4
  332. package/node_modules/mjml-section/package.json +4 -3
  333. package/node_modules/mjml-social/LICENSE.md +21 -0
  334. package/node_modules/mjml-social/README.md +1 -1
  335. package/node_modules/mjml-social/lib/SocialElement.js +3 -4
  336. package/node_modules/mjml-social/package.json +4 -3
  337. package/node_modules/mjml-spacer/LICENSE.md +21 -0
  338. package/node_modules/mjml-spacer/package.json +4 -3
  339. package/node_modules/mjml-table/LICENSE.md +21 -0
  340. package/node_modules/mjml-table/lib/index.js +12 -1
  341. package/node_modules/mjml-table/package.json +4 -3
  342. package/node_modules/mjml-text/LICENSE.md +21 -0
  343. package/node_modules/mjml-text/package.json +4 -3
  344. package/node_modules/mjml-validator/package.json +2 -2
  345. package/node_modules/mjml-wrapper/LICENSE.md +21 -0
  346. package/node_modules/mjml-wrapper/README.md +2 -1
  347. package/node_modules/mjml-wrapper/lib/index.js +11 -0
  348. package/node_modules/mjml-wrapper/package.json +5 -4
  349. package/package.json +19 -19
@@ -1,4 +1,4 @@
1
- /*! Axios v1.12.2 Copyright (c) 2025 Matt Zabriskie and contributors */
1
+ /*! Axios v1.13.2 Copyright (c) 2025 Matt Zabriskie and contributors */
2
2
  'use strict';
3
3
 
4
4
  const FormData$1 = require('form-data');
@@ -7,6 +7,7 @@ const url = require('url');
7
7
  const proxyFromEnv = require('proxy-from-env');
8
8
  const http = require('http');
9
9
  const https = require('https');
10
+ const http2 = require('http2');
10
11
  const util = require('util');
11
12
  const followRedirects = require('follow-redirects');
12
13
  const zlib = require('zlib');
@@ -21,11 +22,19 @@ const url__default = /*#__PURE__*/_interopDefaultLegacy(url);
21
22
  const proxyFromEnv__default = /*#__PURE__*/_interopDefaultLegacy(proxyFromEnv);
22
23
  const http__default = /*#__PURE__*/_interopDefaultLegacy(http);
23
24
  const https__default = /*#__PURE__*/_interopDefaultLegacy(https);
25
+ const http2__default = /*#__PURE__*/_interopDefaultLegacy(http2);
24
26
  const util__default = /*#__PURE__*/_interopDefaultLegacy(util);
25
27
  const followRedirects__default = /*#__PURE__*/_interopDefaultLegacy(followRedirects);
26
28
  const zlib__default = /*#__PURE__*/_interopDefaultLegacy(zlib);
27
29
  const stream__default = /*#__PURE__*/_interopDefaultLegacy(stream);
28
30
 
31
+ /**
32
+ * Create a bound version of a function with a specified `this` context
33
+ *
34
+ * @param {Function} fn - The function to bind
35
+ * @param {*} thisArg - The value to be passed as the `this` parameter
36
+ * @returns {Function} A new function that will call the original function with the specified `this` context
37
+ */
29
38
  function bind(fn, thisArg) {
30
39
  return function wrap() {
31
40
  return fn.apply(thisArg, arguments);
@@ -1275,7 +1284,7 @@ class InterceptorManager {
1275
1284
  *
1276
1285
  * @param {Number} id The ID that was returned by `use`
1277
1286
  *
1278
- * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
1287
+ * @returns {void}
1279
1288
  */
1280
1289
  eject(id) {
1281
1290
  if (this.handlers[id]) {
@@ -2150,7 +2159,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
2150
2159
  return requestedURL;
2151
2160
  }
2152
2161
 
2153
- const VERSION = "1.12.2";
2162
+ const VERSION = "1.13.2";
2154
2163
 
2155
2164
  function parseProtocol(url) {
2156
2165
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -2746,6 +2755,101 @@ const flushOnFinish = (stream, [throttled, flush]) => {
2746
2755
  return throttled;
2747
2756
  };
2748
2757
 
2758
+ class Http2Sessions {
2759
+ constructor() {
2760
+ this.sessions = Object.create(null);
2761
+ }
2762
+
2763
+ getSession(authority, options) {
2764
+ options = Object.assign({
2765
+ sessionTimeout: 1000
2766
+ }, options);
2767
+
2768
+ let authoritySessions = this.sessions[authority];
2769
+
2770
+ if (authoritySessions) {
2771
+ let len = authoritySessions.length;
2772
+
2773
+ for (let i = 0; i < len; i++) {
2774
+ const [sessionHandle, sessionOptions] = authoritySessions[i];
2775
+ if (!sessionHandle.destroyed && !sessionHandle.closed && util__default["default"].isDeepStrictEqual(sessionOptions, options)) {
2776
+ return sessionHandle;
2777
+ }
2778
+ }
2779
+ }
2780
+
2781
+ const session = http2__default["default"].connect(authority, options);
2782
+
2783
+ let removed;
2784
+
2785
+ const removeSession = () => {
2786
+ if (removed) {
2787
+ return;
2788
+ }
2789
+
2790
+ removed = true;
2791
+
2792
+ let entries = authoritySessions, len = entries.length, i = len;
2793
+
2794
+ while (i--) {
2795
+ if (entries[i][0] === session) {
2796
+ if (len === 1) {
2797
+ delete this.sessions[authority];
2798
+ } else {
2799
+ entries.splice(i, 1);
2800
+ }
2801
+ return;
2802
+ }
2803
+ }
2804
+ };
2805
+
2806
+ const originalRequestFn = session.request;
2807
+
2808
+ const {sessionTimeout} = options;
2809
+
2810
+ if(sessionTimeout != null) {
2811
+
2812
+ let timer;
2813
+ let streamsCount = 0;
2814
+
2815
+ session.request = function () {
2816
+ const stream = originalRequestFn.apply(this, arguments);
2817
+
2818
+ streamsCount++;
2819
+
2820
+ if (timer) {
2821
+ clearTimeout(timer);
2822
+ timer = null;
2823
+ }
2824
+
2825
+ stream.once('close', () => {
2826
+ if (!--streamsCount) {
2827
+ timer = setTimeout(() => {
2828
+ timer = null;
2829
+ removeSession();
2830
+ }, sessionTimeout);
2831
+ }
2832
+ });
2833
+
2834
+ return stream;
2835
+ };
2836
+ }
2837
+
2838
+ session.once('close', removeSession);
2839
+
2840
+ let entry = [
2841
+ session,
2842
+ options
2843
+ ];
2844
+
2845
+ authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
2846
+
2847
+ return session;
2848
+ }
2849
+ }
2850
+
2851
+ const http2Sessions = new Http2Sessions();
2852
+
2749
2853
 
2750
2854
  /**
2751
2855
  * If the proxy or config beforeRedirects functions are defined, call them with the options
@@ -2858,16 +2962,75 @@ const resolveFamily = ({address, family}) => {
2858
2962
 
2859
2963
  const buildAddressEntry = (address, family) => resolveFamily(utils$1.isObject(address) ? address : {address, family});
2860
2964
 
2965
+ const http2Transport = {
2966
+ request(options, cb) {
2967
+ const authority = options.protocol + '//' + options.hostname + ':' + (options.port || 80);
2968
+
2969
+ const {http2Options, headers} = options;
2970
+
2971
+ const session = http2Sessions.getSession(authority, http2Options);
2972
+
2973
+ const {
2974
+ HTTP2_HEADER_SCHEME,
2975
+ HTTP2_HEADER_METHOD,
2976
+ HTTP2_HEADER_PATH,
2977
+ HTTP2_HEADER_STATUS
2978
+ } = http2__default["default"].constants;
2979
+
2980
+ const http2Headers = {
2981
+ [HTTP2_HEADER_SCHEME]: options.protocol.replace(':', ''),
2982
+ [HTTP2_HEADER_METHOD]: options.method,
2983
+ [HTTP2_HEADER_PATH]: options.path,
2984
+ };
2985
+
2986
+ utils$1.forEach(headers, (header, name) => {
2987
+ name.charAt(0) !== ':' && (http2Headers[name] = header);
2988
+ });
2989
+
2990
+ const req = session.request(http2Headers);
2991
+
2992
+ req.once('response', (responseHeaders) => {
2993
+ const response = req; //duplex
2994
+
2995
+ responseHeaders = Object.assign({}, responseHeaders);
2996
+
2997
+ const status = responseHeaders[HTTP2_HEADER_STATUS];
2998
+
2999
+ delete responseHeaders[HTTP2_HEADER_STATUS];
3000
+
3001
+ response.headers = responseHeaders;
3002
+
3003
+ response.statusCode = +status;
3004
+
3005
+ cb(response);
3006
+ });
3007
+
3008
+ return req;
3009
+ }
3010
+ };
3011
+
2861
3012
  /*eslint consistent-return:0*/
2862
3013
  const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
2863
3014
  return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
2864
- let {data, lookup, family} = config;
3015
+ let {data, lookup, family, httpVersion = 1, http2Options} = config;
2865
3016
  const {responseType, responseEncoding} = config;
2866
3017
  const method = config.method.toUpperCase();
2867
3018
  let isDone;
2868
3019
  let rejected = false;
2869
3020
  let req;
2870
3021
 
3022
+ httpVersion = +httpVersion;
3023
+
3024
+ if (Number.isNaN(httpVersion)) {
3025
+ throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
3026
+ }
3027
+
3028
+ if (httpVersion !== 1 && httpVersion !== 2) {
3029
+ throw TypeError(`Unsupported protocol version '${httpVersion}'`);
3030
+ }
3031
+
3032
+ const isHttp2 = httpVersion === 2;
3033
+
2871
3034
  if (lookup) {
2872
3035
  const _lookup = callbackify$1(lookup, (value) => utils$1.isArray(value) ? value : [value]);
2873
3036
  // hotfix to support opt.all option which is required for node 20.x
@@ -2884,8 +3047,17 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
2884
3047
  };
2885
3048
  }
2886
3049
 
2887
- // temporary internal emitter until the AxiosRequest class will be implemented
2888
- const emitter = new events.EventEmitter();
3050
+ const abortEmitter = new events.EventEmitter();
3051
+
3052
+ function abort(reason) {
3053
+ try {
3054
+ abortEmitter.emit('abort', !reason || reason.type ? new CanceledError(null, config, req) : reason);
3055
+ } catch(err) {
3056
+ console.warn('emit error', err);
3057
+ }
3058
+ }
3059
+
3060
+ abortEmitter.once('abort', reject);
2889
3061
 
2890
3062
  const onFinished = () => {
2891
3063
  if (config.cancelToken) {
@@ -2896,29 +3068,40 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
2896
3068
  config.signal.removeEventListener('abort', abort);
2897
3069
  }
2898
3070
 
2899
- emitter.removeAllListeners();
3071
+ abortEmitter.removeAllListeners();
2900
3072
  };
2901
3073
 
2902
- onDone((value, isRejected) => {
3074
+ if (config.cancelToken || config.signal) {
3075
+ config.cancelToken && config.cancelToken.subscribe(abort);
3076
+ if (config.signal) {
3077
+ config.signal.aborted ? abort() : config.signal.addEventListener('abort', abort);
3078
+ }
3079
+ }
3080
+
3081
+ onDone((response, isRejected) => {
2903
3082
  isDone = true;
3083
+
2904
3084
  if (isRejected) {
2905
3085
  rejected = true;
2906
3086
  onFinished();
3087
+ return;
3088
+ }
3089
+
3090
+ const {data} = response;
3091
+
3092
+ if (data instanceof stream__default["default"].Readable || data instanceof stream__default["default"].Duplex) {
3093
+ const offListeners = stream__default["default"].finished(data, () => {
3094
+ offListeners();
3095
+ onFinished();
3096
+ });
3097
+ } else {
3098
+ onFinished();
2907
3099
  }
2908
3100
  });
2909
3101
 
2910
- function abort(reason) {
2911
- emitter.emit('abort', !reason || reason.type ? new CanceledError(null, config, req) : reason);
2912
- }
2913
3102
 
2914
- emitter.once('abort', reject);
2915
3103
 
2916
- if (config.cancelToken || config.signal) {
2917
- config.cancelToken && config.cancelToken.subscribe(abort);
2918
- if (config.signal) {
2919
- config.signal.aborted ? abort() : config.signal.addEventListener('abort', abort);
2920
- }
2921
- }
3104
+
2922
3105
 
2923
3106
  // Parse url
2924
3107
  const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
@@ -3124,7 +3307,8 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3124
3307
  protocol,
3125
3308
  family,
3126
3309
  beforeRedirect: dispatchBeforeRedirect,
3127
- beforeRedirects: {}
3310
+ beforeRedirects: {},
3311
+ http2Options
3128
3312
  };
3129
3313
 
3130
3314
  // cacheable-lookup integration hotfix
@@ -3141,18 +3325,23 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3141
3325
  let transport;
3142
3326
  const isHttpsRequest = isHttps.test(options.protocol);
3143
3327
  options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
3144
- if (config.transport) {
3145
- transport = config.transport;
3146
- } else if (config.maxRedirects === 0) {
3147
- transport = isHttpsRequest ? https__default["default"] : http__default["default"];
3328
+
3329
+ if (isHttp2) {
3330
+ transport = http2Transport;
3148
3331
  } else {
3149
- if (config.maxRedirects) {
3150
- options.maxRedirects = config.maxRedirects;
3151
- }
3152
- if (config.beforeRedirect) {
3153
- options.beforeRedirects.config = config.beforeRedirect;
3332
+ if (config.transport) {
3333
+ transport = config.transport;
3334
+ } else if (config.maxRedirects === 0) {
3335
+ transport = isHttpsRequest ? https__default["default"] : http__default["default"];
3336
+ } else {
3337
+ if (config.maxRedirects) {
3338
+ options.maxRedirects = config.maxRedirects;
3339
+ }
3340
+ if (config.beforeRedirect) {
3341
+ options.beforeRedirects.config = config.beforeRedirect;
3342
+ }
3343
+ transport = isHttpsRequest ? httpsFollow : httpFollow;
3154
3344
  }
3155
- transport = isHttpsRequest ? httpsFollow : httpFollow;
3156
3345
  }
3157
3346
 
3158
3347
  if (config.maxBodyLength > -1) {
@@ -3172,7 +3361,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3172
3361
 
3173
3362
  const streams = [res];
3174
3363
 
3175
- const responseLength = +res.headers['content-length'];
3364
+ const responseLength = utils$1.toFiniteNumber(res.headers['content-length']);
3176
3365
 
3177
3366
  if (onDownloadProgress || maxDownloadRate) {
3178
3367
  const transformStream = new AxiosTransformStream$1({
@@ -3235,10 +3424,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3235
3424
 
3236
3425
  responseStream = streams.length > 1 ? stream__default["default"].pipeline(streams, utils$1.noop) : streams[0];
3237
3426
 
3238
- const offListeners = stream__default["default"].finished(responseStream, () => {
3239
- offListeners();
3240
- onFinished();
3241
- });
3427
+
3242
3428
 
3243
3429
  const response = {
3244
3430
  status: res.statusCode,
@@ -3264,7 +3450,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3264
3450
  // stream.destroy() emit aborted event before calling reject() on Node.js v16
3265
3451
  rejected = true;
3266
3452
  responseStream.destroy();
3267
- reject(new AxiosError('maxContentLength size of ' + config.maxContentLength + ' exceeded',
3453
+ abort(new AxiosError('maxContentLength size of ' + config.maxContentLength + ' exceeded',
3268
3454
  AxiosError.ERR_BAD_RESPONSE, config, lastRequest));
3269
3455
  }
3270
3456
  });
@@ -3306,7 +3492,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3306
3492
  });
3307
3493
  }
3308
3494
 
3309
- emitter.once('abort', err => {
3495
+ abortEmitter.once('abort', err => {
3310
3496
  if (!responseStream.destroyed) {
3311
3497
  responseStream.emit('error', err);
3312
3498
  responseStream.destroy();
@@ -3314,9 +3500,12 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3314
3500
  });
3315
3501
  });
3316
3502
 
3317
- emitter.once('abort', err => {
3318
- reject(err);
3319
- req.destroy(err);
3503
+ abortEmitter.once('abort', err => {
3504
+ if (req.close) {
3505
+ req.close();
3506
+ } else {
3507
+ req.destroy(err);
3508
+ }
3320
3509
  });
3321
3510
 
3322
3511
  // Handle errors
@@ -3338,7 +3527,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3338
3527
  const timeout = parseInt(config.timeout, 10);
3339
3528
 
3340
3529
  if (Number.isNaN(timeout)) {
3341
- reject(new AxiosError(
3530
+ abort(new AxiosError(
3342
3531
  'error trying to parse `config.timeout` to int',
3343
3532
  AxiosError.ERR_BAD_OPTION_VALUE,
3344
3533
  config,
@@ -3360,14 +3549,16 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3360
3549
  if (config.timeoutErrorMessage) {
3361
3550
  timeoutErrorMessage = config.timeoutErrorMessage;
3362
3551
  }
3363
- reject(new AxiosError(
3552
+ abort(new AxiosError(
3364
3553
  timeoutErrorMessage,
3365
3554
  transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
3366
3555
  config,
3367
3556
  req
3368
3557
  ));
3369
- abort();
3370
3558
  });
3559
+ } else {
3560
+ // explicitly reset the socket timeout value for a possible `keep-alive` request
3561
+ req.setTimeout(0);
3371
3562
  }
3372
3563
 
3373
3564
 
@@ -3393,7 +3584,8 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
3393
3584
 
3394
3585
  data.pipe(req);
3395
3586
  } else {
3396
- req.end(data);
3587
+ data && req.write(data);
3588
+ req.end();
3397
3589
  }
3398
3590
  });
3399
3591
  };
@@ -3415,27 +3607,38 @@ const cookies = platform.hasStandardBrowserEnv ?
3415
3607
 
3416
3608
  // Standard browser envs support document.cookie
3417
3609
  {
3418
- write(name, value, expires, path, domain, secure) {
3419
- const cookie = [name + '=' + encodeURIComponent(value)];
3420
-
3421
- utils$1.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());
3422
-
3423
- utils$1.isString(path) && cookie.push('path=' + path);
3610
+ write(name, value, expires, path, domain, secure, sameSite) {
3611
+ if (typeof document === 'undefined') return;
3424
3612
 
3425
- utils$1.isString(domain) && cookie.push('domain=' + domain);
3613
+ const cookie = [`${name}=${encodeURIComponent(value)}`];
3426
3614
 
3427
- secure === true && cookie.push('secure');
3615
+ if (utils$1.isNumber(expires)) {
3616
+ cookie.push(`expires=${new Date(expires).toUTCString()}`);
3617
+ }
3618
+ if (utils$1.isString(path)) {
3619
+ cookie.push(`path=${path}`);
3620
+ }
3621
+ if (utils$1.isString(domain)) {
3622
+ cookie.push(`domain=${domain}`);
3623
+ }
3624
+ if (secure === true) {
3625
+ cookie.push('secure');
3626
+ }
3627
+ if (utils$1.isString(sameSite)) {
3628
+ cookie.push(`SameSite=${sameSite}`);
3629
+ }
3428
3630
 
3429
3631
  document.cookie = cookie.join('; ');
3430
3632
  },
3431
3633
 
3432
3634
  read(name) {
3433
- const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
3434
- return (match ? decodeURIComponent(match[3]) : null);
3635
+ if (typeof document === 'undefined') return null;
3636
+ const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
3637
+ return match ? decodeURIComponent(match[1]) : null;
3435
3638
  },
3436
3639
 
3437
3640
  remove(name) {
3438
- this.write(name, '', Date.now() - 86400000);
3641
+ this.write(name, '', Date.now() - 86400000, '/');
3439
3642
  }
3440
3643
  }
3441
3644
 
@@ -3478,11 +3681,11 @@ function mergeConfig(config1, config2) {
3478
3681
  }
3479
3682
 
3480
3683
  // eslint-disable-next-line consistent-return
3481
- function mergeDeepProperties(a, b, prop , caseless) {
3684
+ function mergeDeepProperties(a, b, prop, caseless) {
3482
3685
  if (!utils$1.isUndefined(b)) {
3483
- return getMergedValue(a, b, prop , caseless);
3686
+ return getMergedValue(a, b, prop, caseless);
3484
3687
  } else if (!utils$1.isUndefined(a)) {
3485
- return getMergedValue(undefined, a, prop , caseless);
3688
+ return getMergedValue(undefined, a, prop, caseless);
3486
3689
  }
3487
3690
  }
3488
3691
 
@@ -3540,7 +3743,7 @@ function mergeConfig(config1, config2) {
3540
3743
  socketPath: defaultToConfig2,
3541
3744
  responseEncoding: defaultToConfig2,
3542
3745
  validateStatus: mergeDirectKeys,
3543
- headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
3746
+ headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
3544
3747
  };
3545
3748
 
3546
3749
  utils$1.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
@@ -4180,7 +4383,7 @@ const factory = (env) => {
4180
4383
  const seedCache = new Map();
4181
4384
 
4182
4385
  const getFetch = (config) => {
4183
- let env = config ? config.env : {};
4386
+ let env = (config && config.env) || {};
4184
4387
  const {fetch, Request, Response} = env;
4185
4388
  const seeds = [
4186
4389
  Request, Response, fetch
@@ -4203,6 +4406,15 @@ const getFetch = (config) => {
4203
4406
 
4204
4407
  getFetch();
4205
4408
 
4409
+ /**
4410
+ * Known adapters mapping.
4411
+ * Provides environment-specific adapters for Axios:
4412
+ * - `http` for Node.js
4413
+ * - `xhr` for browsers
4414
+ * - `fetch` for fetch API-based requests
4415
+ *
4416
+ * @type {Object<string, Function|Object>}
4417
+ */
4206
4418
  const knownAdapters = {
4207
4419
  http: httpAdapter,
4208
4420
  xhr: xhrAdapter,
@@ -4211,71 +4423,107 @@ const knownAdapters = {
4211
4423
  }
4212
4424
  };
4213
4425
 
4426
+ // Assign adapter names for easier debugging and identification
4214
4427
  utils$1.forEach(knownAdapters, (fn, value) => {
4215
4428
  if (fn) {
4216
4429
  try {
4217
- Object.defineProperty(fn, 'name', {value});
4430
+ Object.defineProperty(fn, 'name', { value });
4218
4431
  } catch (e) {
4219
4432
  // eslint-disable-next-line no-empty
4220
4433
  }
4221
- Object.defineProperty(fn, 'adapterName', {value});
4434
+ Object.defineProperty(fn, 'adapterName', { value });
4222
4435
  }
4223
4436
  });
4224
4437
 
4438
+ /**
4439
+ * Render a rejection reason string for unknown or unsupported adapters
4440
+ *
4441
+ * @param {string} reason
4442
+ * @returns {string}
4443
+ */
4225
4444
  const renderReason = (reason) => `- ${reason}`;
4226
4445
 
4446
+ /**
4447
+ * Check if the adapter is resolved (function, null, or false)
4448
+ *
4449
+ * @param {Function|null|false} adapter
4450
+ * @returns {boolean}
4451
+ */
4227
4452
  const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
4228
4453
 
4229
- const adapters = {
4230
- getAdapter: (adapters, config) => {
4231
- adapters = utils$1.isArray(adapters) ? adapters : [adapters];
4232
-
4233
- const {length} = adapters;
4234
- let nameOrAdapter;
4235
- let adapter;
4454
+ /**
4455
+ * Get the first suitable adapter from the provided list.
4456
+ * Tries each adapter in order until a supported one is found.
4457
+ * Throws an AxiosError if no adapter is suitable.
4458
+ *
4459
+ * @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
4460
+ * @param {Object} config - Axios request configuration
4461
+ * @throws {AxiosError} If no suitable adapter is available
4462
+ * @returns {Function} The resolved adapter function
4463
+ */
4464
+ function getAdapter(adapters, config) {
4465
+ adapters = utils$1.isArray(adapters) ? adapters : [adapters];
4236
4466
 
4237
- const rejectedReasons = {};
4467
+ const { length } = adapters;
4468
+ let nameOrAdapter;
4469
+ let adapter;
4238
4470
 
4239
- for (let i = 0; i < length; i++) {
4240
- nameOrAdapter = adapters[i];
4241
- let id;
4471
+ const rejectedReasons = {};
4242
4472
 
4243
- adapter = nameOrAdapter;
4473
+ for (let i = 0; i < length; i++) {
4474
+ nameOrAdapter = adapters[i];
4475
+ let id;
4244
4476
 
4245
- if (!isResolvedHandle(nameOrAdapter)) {
4246
- adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
4477
+ adapter = nameOrAdapter;
4247
4478
 
4248
- if (adapter === undefined) {
4249
- throw new AxiosError(`Unknown adapter '${id}'`);
4250
- }
4251
- }
4479
+ if (!isResolvedHandle(nameOrAdapter)) {
4480
+ adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
4252
4481
 
4253
- if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
4254
- break;
4482
+ if (adapter === undefined) {
4483
+ throw new AxiosError(`Unknown adapter '${id}'`);
4255
4484
  }
4485
+ }
4256
4486
 
4257
- rejectedReasons[id || '#' + i] = adapter;
4487
+ if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
4488
+ break;
4258
4489
  }
4259
4490
 
4260
- if (!adapter) {
4491
+ rejectedReasons[id || '#' + i] = adapter;
4492
+ }
4261
4493
 
4262
- const reasons = Object.entries(rejectedReasons)
4263
- .map(([id, state]) => `adapter ${id} ` +
4264
- (state === false ? 'is not supported by the environment' : 'is not available in the build')
4265
- );
4494
+ if (!adapter) {
4495
+ const reasons = Object.entries(rejectedReasons)
4496
+ .map(([id, state]) => `adapter ${id} ` +
4497
+ (state === false ? 'is not supported by the environment' : 'is not available in the build')
4498
+ );
4266
4499
 
4267
- let s = length ?
4268
- (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
4269
- 'as no adapter specified';
4500
+ let s = length ?
4501
+ (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
4502
+ 'as no adapter specified';
4270
4503
 
4271
- throw new AxiosError(
4272
- `There is no suitable adapter to dispatch the request ` + s,
4273
- 'ERR_NOT_SUPPORT'
4274
- );
4275
- }
4504
+ throw new AxiosError(
4505
+ `There is no suitable adapter to dispatch the request ` + s,
4506
+ 'ERR_NOT_SUPPORT'
4507
+ );
4508
+ }
4276
4509
 
4277
- return adapter;
4278
- },
4510
+ return adapter;
4511
+ }
4512
+
4513
+ /**
4514
+ * Exports Axios adapters and utility to resolve an adapter
4515
+ */
4516
+ const adapters = {
4517
+ /**
4518
+ * Resolve an adapter from a list of adapter names or functions.
4519
+ * @type {Function}
4520
+ */
4521
+ getAdapter,
4522
+
4523
+ /**
4524
+ * Exposes all known adapters
4525
+ * @type {Object<string, Function|Object>}
4526
+ */
4279
4527
  adapters: knownAdapters
4280
4528
  };
4281
4529
 
@@ -4909,6 +5157,12 @@ const HttpStatusCode = {
4909
5157
  LoopDetected: 508,
4910
5158
  NotExtended: 510,
4911
5159
  NetworkAuthenticationRequired: 511,
5160
+ WebServerIsDown: 521,
5161
+ ConnectionTimedOut: 522,
5162
+ OriginIsUnreachable: 523,
5163
+ TimeoutOccurred: 524,
5164
+ SslHandshakeFailed: 525,
5165
+ InvalidSslCertificate: 526,
4912
5166
  };
4913
5167
 
4914
5168
  Object.entries(HttpStatusCode).forEach(([key, value]) => {