cloudstructs 0.9.13 → 0.9.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (367) hide show
  1. package/.jsii +3 -3
  2. package/assets/slack-textract/detect.lambda/index.js +14 -9
  3. package/lib/codecommit-mirror/index.js +2 -2
  4. package/lib/dmarc/index.js +1 -1
  5. package/lib/ecs-service-roller/index.js +2 -2
  6. package/lib/email-receiver/receiver.js +1 -1
  7. package/lib/email-receiver/whitelist.lambda.js +2 -3
  8. package/lib/mjml-template/index.js +1 -1
  9. package/lib/saml-identity-provider/index.js +2 -2
  10. package/lib/slack-app/manifest.js +1 -1
  11. package/lib/slack-app/provider.lambda.js +2 -3
  12. package/lib/slack-app/slack-app.js +2 -2
  13. package/lib/slack-events/events.lambda.js +2 -3
  14. package/lib/slack-events/index.js +1 -1
  15. package/lib/slack-events/signature.js +2 -3
  16. package/lib/slack-textract/detect.lambda.js +2 -3
  17. package/lib/slack-textract/index.js +1 -1
  18. package/lib/ssl-server-test/analyze.lambda.js +2 -3
  19. package/lib/ssl-server-test/extract-grade.lambda.js +2 -3
  20. package/lib/ssl-server-test/index.js +1 -1
  21. package/lib/state-machine-cr-provider/index.js +1 -1
  22. package/lib/state-machine-cr-provider/runtime/http.js +3 -3
  23. package/lib/state-machine-cr-provider/runtime/index.js +5 -5
  24. package/lib/static-website/index.js +1 -1
  25. package/lib/static-website/origin-request.edge-lambda.js +2 -3
  26. package/lib/toolkit-cleaner/clean-images.lambda.js +2 -3
  27. package/lib/toolkit-cleaner/clean-objects.lambda.js +2 -3
  28. package/lib/toolkit-cleaner/extract-template-hashes.lambda.js +2 -3
  29. package/lib/toolkit-cleaner/get-stack-names.lambda.js +2 -3
  30. package/lib/toolkit-cleaner/index.js +1 -1
  31. package/lib/url-shortener/index.js +1 -1
  32. package/lib/url-shortener/redirect.edge-lambda.js +2 -3
  33. package/lib/url-shortener/shortener.lambda.js +2 -3
  34. package/node_modules/@babel/runtime/helpers/extends.js +2 -2
  35. package/node_modules/@babel/runtime/helpers/get.js +2 -2
  36. package/node_modules/@babel/runtime/helpers/getPrototypeOf.js +2 -2
  37. package/node_modules/@babel/runtime/helpers/setPrototypeOf.js +2 -2
  38. package/node_modules/@babel/runtime/helpers/typeof.js +2 -2
  39. package/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +2 -2
  40. package/node_modules/@babel/runtime/package.json +1 -1
  41. package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
  42. package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +47 -48
  43. package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +13 -0
  44. package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +1 -0
  45. package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
  46. package/node_modules/@slack/logger/node_modules/@types/node/path.d.ts +9 -0
  47. package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +35 -0
  48. package/node_modules/@slack/logger/node_modules/@types/node/sqlite.d.ts +213 -0
  49. package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +18 -0
  50. package/node_modules/@slack/logger/node_modules/undici-types/package.json +1 -1
  51. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
  52. package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +47 -48
  53. package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +13 -0
  54. package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +1 -0
  55. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
  56. package/node_modules/@slack/web-api/node_modules/@types/node/path.d.ts +9 -0
  57. package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +35 -0
  58. package/node_modules/@slack/web-api/node_modules/@types/node/sqlite.d.ts +213 -0
  59. package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +18 -0
  60. package/node_modules/@slack/web-api/node_modules/undici-types/package.json +1 -1
  61. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  62. package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +5 -5
  63. package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +5 -5
  64. package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +12 -1
  65. package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +2 -2
  66. package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +15 -15
  67. package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +17 -17
  68. package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +5 -78
  69. package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +1 -1
  70. package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
  71. package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +18 -17
  72. package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +1 -1
  73. package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +1 -1
  74. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +19 -0
  75. package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +75 -2
  76. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +99 -1
  77. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +15 -2
  78. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +2 -2
  79. package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +1 -1
  80. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +1 -0
  81. package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +1 -1
  82. package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +0 -14
  83. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +1 -1
  84. package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +3 -3
  85. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -3
  86. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +10 -1
  87. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +45 -9
  88. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +178 -19
  89. package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +1 -1
  90. package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +1 -1
  91. package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +10 -10
  92. package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +12 -12
  93. package/node_modules/@types/cacheable-request/node_modules/@types/node/sea.d.ts +1 -1
  94. package/node_modules/@types/cacheable-request/node_modules/@types/node/sqlite.d.ts +213 -0
  95. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +9 -9
  96. package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +1 -1
  97. package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +378 -101
  98. package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +1 -1
  99. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +5 -2
  100. package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +6 -6
  101. package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +1 -1
  102. package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +19 -2
  103. package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +8 -2
  104. package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +2 -2
  105. package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +5 -7
  106. package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +1 -1
  107. package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +19 -1
  108. package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +12 -3
  109. package/node_modules/@types/cacheable-request/node_modules/undici-types/LICENSE +21 -0
  110. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/balanced-pool.d.ts +11 -0
  111. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/client.d.ts +12 -1
  112. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/diagnostics-channel.d.ts +1 -2
  113. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/dispatcher.d.ts +18 -4
  114. package/node_modules/@types/cacheable-request/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  115. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/errors.d.ts +21 -0
  116. package/node_modules/@types/cacheable-request/node_modules/undici-types/eventsource.d.ts +63 -0
  117. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/fetch.d.ts +25 -25
  118. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/formdata.d.ts +1 -1
  119. package/node_modules/@types/cacheable-request/node_modules/undici-types/handlers.d.ts +15 -0
  120. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/index.d.ts +10 -2
  121. package/node_modules/@types/cacheable-request/node_modules/undici-types/interceptors.d.ts +15 -0
  122. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-interceptor.d.ts +4 -4
  123. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/package.json +1 -1
  124. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/pool.d.ts +11 -0
  125. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/proxy-agent.d.ts +0 -2
  126. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/readable.d.ts +2 -3
  127. package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-agent.d.ts +8 -0
  128. package/node_modules/@types/cacheable-request/node_modules/undici-types/retry-handler.d.ts +116 -0
  129. package/node_modules/@types/cacheable-request/node_modules/undici-types/util.d.ts +18 -0
  130. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/webidl.d.ts +10 -8
  131. package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/websocket.d.ts +22 -1
  132. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  133. package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +5 -5
  134. package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +5 -5
  135. package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +12 -1
  136. package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +2 -2
  137. package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +15 -15
  138. package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +17 -17
  139. package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +5 -78
  140. package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +1 -1
  141. package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
  142. package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +18 -17
  143. package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +1 -1
  144. package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +1 -1
  145. package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +19 -0
  146. package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +75 -2
  147. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +99 -1
  148. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +15 -2
  149. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +2 -2
  150. package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +1 -1
  151. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +1 -0
  152. package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +1 -1
  153. package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +0 -14
  154. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +1 -1
  155. package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +3 -3
  156. package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -3
  157. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +10 -1
  158. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +45 -9
  159. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +178 -19
  160. package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +1 -1
  161. package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +1 -1
  162. package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +10 -10
  163. package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +12 -12
  164. package/node_modules/@types/keyv/node_modules/@types/node/sea.d.ts +1 -1
  165. package/node_modules/@types/keyv/node_modules/@types/node/sqlite.d.ts +213 -0
  166. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +9 -9
  167. package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +1 -1
  168. package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +378 -101
  169. package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +1 -1
  170. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +5 -2
  171. package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +6 -6
  172. package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +1 -1
  173. package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +19 -2
  174. package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +8 -2
  175. package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +2 -2
  176. package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +5 -7
  177. package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +1 -1
  178. package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +19 -1
  179. package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +12 -3
  180. package/node_modules/@types/keyv/node_modules/undici-types/LICENSE +21 -0
  181. package/node_modules/@types/keyv/node_modules/undici-types/README.md +6 -0
  182. package/node_modules/@types/keyv/node_modules/undici-types/agent.d.ts +31 -0
  183. package/node_modules/@types/keyv/node_modules/undici-types/api.d.ts +43 -0
  184. package/node_modules/@types/keyv/node_modules/undici-types/balanced-pool.d.ts +29 -0
  185. package/node_modules/@types/keyv/node_modules/undici-types/cache.d.ts +36 -0
  186. package/node_modules/@types/keyv/node_modules/undici-types/client.d.ts +108 -0
  187. package/node_modules/@types/keyv/node_modules/undici-types/connector.d.ts +34 -0
  188. package/node_modules/@types/keyv/node_modules/undici-types/content-type.d.ts +21 -0
  189. package/node_modules/@types/keyv/node_modules/undici-types/cookies.d.ts +28 -0
  190. package/node_modules/@types/keyv/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
  191. package/node_modules/@types/keyv/node_modules/undici-types/dispatcher.d.ts +255 -0
  192. package/node_modules/@types/keyv/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  193. package/node_modules/@types/keyv/node_modules/undici-types/errors.d.ts +149 -0
  194. package/node_modules/@types/keyv/node_modules/undici-types/eventsource.d.ts +63 -0
  195. package/node_modules/@types/keyv/node_modules/undici-types/fetch.d.ts +209 -0
  196. package/node_modules/@types/keyv/node_modules/undici-types/file.d.ts +39 -0
  197. package/node_modules/@types/keyv/node_modules/undici-types/filereader.d.ts +54 -0
  198. package/node_modules/@types/keyv/node_modules/undici-types/formdata.d.ts +108 -0
  199. package/node_modules/@types/keyv/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  200. package/node_modules/@types/keyv/node_modules/undici-types/global-origin.d.ts +7 -0
  201. package/node_modules/@types/keyv/node_modules/undici-types/handlers.d.ts +15 -0
  202. package/node_modules/@types/keyv/node_modules/undici-types/header.d.ts +4 -0
  203. package/node_modules/@types/keyv/node_modules/undici-types/index.d.ts +71 -0
  204. package/node_modules/@types/keyv/node_modules/undici-types/interceptors.d.ts +15 -0
  205. package/node_modules/@types/keyv/node_modules/undici-types/mock-agent.d.ts +50 -0
  206. package/node_modules/@types/keyv/node_modules/undici-types/mock-client.d.ts +25 -0
  207. package/node_modules/@types/keyv/node_modules/undici-types/mock-errors.d.ts +12 -0
  208. package/node_modules/@types/keyv/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  209. package/node_modules/@types/keyv/node_modules/undici-types/mock-pool.d.ts +25 -0
  210. package/node_modules/@types/keyv/node_modules/undici-types/package.json +55 -0
  211. package/node_modules/@types/keyv/node_modules/undici-types/patch.d.ts +71 -0
  212. package/node_modules/@types/keyv/node_modules/undici-types/pool-stats.d.ts +19 -0
  213. package/node_modules/@types/keyv/node_modules/undici-types/pool.d.ts +39 -0
  214. package/node_modules/@types/keyv/node_modules/undici-types/proxy-agent.d.ts +28 -0
  215. package/node_modules/@types/keyv/node_modules/undici-types/readable.d.ts +60 -0
  216. package/node_modules/@types/keyv/node_modules/undici-types/retry-agent.d.ts +8 -0
  217. package/node_modules/@types/keyv/node_modules/undici-types/retry-handler.d.ts +116 -0
  218. package/node_modules/@types/keyv/node_modules/undici-types/util.d.ts +18 -0
  219. package/node_modules/@types/keyv/node_modules/undici-types/webidl.d.ts +222 -0
  220. package/node_modules/@types/keyv/node_modules/undici-types/websocket.d.ts +152 -0
  221. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  222. package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +5 -5
  223. package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +5 -5
  224. package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +12 -1
  225. package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +2 -2
  226. package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +15 -15
  227. package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +17 -17
  228. package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +5 -78
  229. package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +1 -1
  230. package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +1 -1
  231. package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +18 -17
  232. package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +1 -1
  233. package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +1 -1
  234. package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +19 -0
  235. package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +75 -2
  236. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +99 -1
  237. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +15 -2
  238. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +2 -2
  239. package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +1 -1
  240. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +1 -0
  241. package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +1 -1
  242. package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +0 -14
  243. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +1 -1
  244. package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +3 -3
  245. package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -3
  246. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +10 -1
  247. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +45 -9
  248. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +178 -19
  249. package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +1 -1
  250. package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +1 -1
  251. package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +10 -10
  252. package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +12 -12
  253. package/node_modules/@types/responselike/node_modules/@types/node/sea.d.ts +1 -1
  254. package/node_modules/@types/responselike/node_modules/@types/node/sqlite.d.ts +213 -0
  255. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +9 -9
  256. package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +1 -1
  257. package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +378 -101
  258. package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +1 -1
  259. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +5 -2
  260. package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +6 -6
  261. package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +1 -1
  262. package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +19 -2
  263. package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +8 -2
  264. package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +2 -2
  265. package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +5 -7
  266. package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +1 -1
  267. package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +19 -1
  268. package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +12 -3
  269. package/node_modules/@types/responselike/node_modules/undici-types/LICENSE +21 -0
  270. package/node_modules/@types/responselike/node_modules/undici-types/README.md +6 -0
  271. package/node_modules/@types/responselike/node_modules/undici-types/agent.d.ts +31 -0
  272. package/node_modules/@types/responselike/node_modules/undici-types/api.d.ts +43 -0
  273. package/node_modules/@types/responselike/node_modules/undici-types/balanced-pool.d.ts +29 -0
  274. package/node_modules/@types/responselike/node_modules/undici-types/cache.d.ts +36 -0
  275. package/node_modules/@types/responselike/node_modules/undici-types/client.d.ts +108 -0
  276. package/node_modules/@types/responselike/node_modules/undici-types/connector.d.ts +34 -0
  277. package/node_modules/@types/responselike/node_modules/undici-types/content-type.d.ts +21 -0
  278. package/node_modules/@types/responselike/node_modules/undici-types/cookies.d.ts +28 -0
  279. package/node_modules/@types/responselike/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
  280. package/node_modules/@types/responselike/node_modules/undici-types/dispatcher.d.ts +255 -0
  281. package/node_modules/@types/responselike/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  282. package/node_modules/@types/responselike/node_modules/undici-types/errors.d.ts +149 -0
  283. package/node_modules/@types/responselike/node_modules/undici-types/eventsource.d.ts +63 -0
  284. package/node_modules/@types/responselike/node_modules/undici-types/fetch.d.ts +209 -0
  285. package/node_modules/@types/responselike/node_modules/undici-types/file.d.ts +39 -0
  286. package/node_modules/@types/responselike/node_modules/undici-types/filereader.d.ts +54 -0
  287. package/node_modules/@types/responselike/node_modules/undici-types/formdata.d.ts +108 -0
  288. package/node_modules/@types/responselike/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  289. package/node_modules/@types/responselike/node_modules/undici-types/global-origin.d.ts +7 -0
  290. package/node_modules/@types/responselike/node_modules/undici-types/handlers.d.ts +15 -0
  291. package/node_modules/@types/responselike/node_modules/undici-types/header.d.ts +4 -0
  292. package/node_modules/@types/responselike/node_modules/undici-types/index.d.ts +71 -0
  293. package/node_modules/@types/responselike/node_modules/undici-types/interceptors.d.ts +15 -0
  294. package/node_modules/@types/responselike/node_modules/undici-types/mock-agent.d.ts +50 -0
  295. package/node_modules/@types/responselike/node_modules/undici-types/mock-client.d.ts +25 -0
  296. package/node_modules/@types/responselike/node_modules/undici-types/mock-errors.d.ts +12 -0
  297. package/node_modules/@types/responselike/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  298. package/node_modules/@types/responselike/node_modules/undici-types/mock-pool.d.ts +25 -0
  299. package/node_modules/@types/responselike/node_modules/undici-types/package.json +55 -0
  300. package/node_modules/@types/responselike/node_modules/undici-types/patch.d.ts +71 -0
  301. package/node_modules/@types/responselike/node_modules/undici-types/pool-stats.d.ts +19 -0
  302. package/node_modules/@types/responselike/node_modules/undici-types/pool.d.ts +39 -0
  303. package/node_modules/@types/responselike/node_modules/undici-types/proxy-agent.d.ts +28 -0
  304. package/node_modules/@types/responselike/node_modules/undici-types/readable.d.ts +60 -0
  305. package/node_modules/@types/responselike/node_modules/undici-types/retry-agent.d.ts +8 -0
  306. package/node_modules/@types/responselike/node_modules/undici-types/retry-handler.d.ts +116 -0
  307. package/node_modules/@types/responselike/node_modules/undici-types/util.d.ts +18 -0
  308. package/node_modules/@types/responselike/node_modules/undici-types/webidl.d.ts +222 -0
  309. package/node_modules/@types/responselike/node_modules/undici-types/websocket.d.ts +152 -0
  310. package/node_modules/axios/CHANGELOG.md +16 -0
  311. package/node_modules/axios/README.md +6 -57
  312. package/node_modules/axios/dist/axios.js +29 -22
  313. package/node_modules/axios/dist/axios.js.map +1 -1
  314. package/node_modules/axios/dist/axios.min.js +1 -1
  315. package/node_modules/axios/dist/axios.min.js.map +1 -1
  316. package/node_modules/axios/dist/browser/axios.cjs +17 -10
  317. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  318. package/node_modules/axios/dist/esm/axios.js +17 -10
  319. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  320. package/node_modules/axios/dist/esm/axios.min.js +1 -1
  321. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  322. package/node_modules/axios/dist/node/axios.cjs +18 -11
  323. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  324. package/node_modules/axios/lib/adapters/fetch.js +4 -1
  325. package/node_modules/axios/lib/adapters/http.js +1 -1
  326. package/node_modules/axios/lib/core/AxiosError.js +5 -2
  327. package/node_modules/axios/lib/env/data.js +1 -1
  328. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
  329. package/node_modules/axios/lib/platform/common/utils.js +5 -4
  330. package/node_modules/axios/package.json +1 -1
  331. package/node_modules/foreground-child/dist/commonjs/index.d.ts +4 -2
  332. package/node_modules/foreground-child/dist/commonjs/index.d.ts.map +1 -1
  333. package/node_modules/foreground-child/dist/commonjs/index.js +4 -2
  334. package/node_modules/foreground-child/dist/commonjs/index.js.map +1 -1
  335. package/node_modules/foreground-child/dist/esm/index.d.ts +4 -2
  336. package/node_modules/foreground-child/dist/esm/index.d.ts.map +1 -1
  337. package/node_modules/foreground-child/dist/esm/index.js +4 -2
  338. package/node_modules/foreground-child/dist/esm/index.js.map +1 -1
  339. package/node_modules/foreground-child/package.json +1 -1
  340. package/node_modules/juice/package.json +3 -3
  341. package/node_modules/uglify-js/bin/uglifyjs +6 -3
  342. package/node_modules/uglify-js/lib/compress.js +117 -75
  343. package/node_modules/uglify-js/lib/minify.js +4 -3
  344. package/node_modules/uglify-js/lib/output.js +16 -5
  345. package/node_modules/uglify-js/package.json +1 -1
  346. package/node_modules/uglify-js/tools/node.js +6 -1
  347. package/package.json +18 -18
  348. package/node_modules/undici-types/handlers.d.ts +0 -9
  349. package/node_modules/undici-types/interceptors.d.ts +0 -5
  350. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/README.md +0 -0
  351. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/agent.d.ts +0 -0
  352. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/api.d.ts +0 -0
  353. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/cache.d.ts +0 -0
  354. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/connector.d.ts +0 -0
  355. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/content-type.d.ts +0 -0
  356. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/cookies.d.ts +0 -0
  357. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/file.d.ts +0 -0
  358. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/filereader.d.ts +0 -0
  359. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/global-dispatcher.d.ts +0 -0
  360. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/global-origin.d.ts +0 -0
  361. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/header.d.ts +0 -0
  362. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-agent.d.ts +0 -0
  363. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-client.d.ts +0 -0
  364. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-errors.d.ts +0 -0
  365. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/mock-pool.d.ts +0 -0
  366. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/patch.d.ts +0 -0
  367. /package/node_modules/{undici-types → @types/cacheable-request/node_modules/undici-types}/pool-stats.d.ts +0 -0
@@ -0,0 +1,222 @@
1
+ // These types are not exported, and are only used internally
2
+
3
+ /**
4
+ * Take in an unknown value and return one that is of type T
5
+ */
6
+ type Converter<T> = (object: unknown) => T
7
+
8
+ type SequenceConverter<T> = (object: unknown, iterable?: IterableIterator<T>) => T[]
9
+
10
+ type RecordConverter<K extends string, V> = (object: unknown) => Record<K, V>
11
+
12
+ interface ConvertToIntOpts {
13
+ clamp?: boolean
14
+ enforceRange?: boolean
15
+ }
16
+
17
+ interface WebidlErrors {
18
+ exception (opts: { header: string, message: string }): TypeError
19
+ /**
20
+ * @description Throw an error when conversion from one type to another has failed
21
+ */
22
+ conversionFailed (opts: {
23
+ prefix: string
24
+ argument: string
25
+ types: string[]
26
+ }): TypeError
27
+ /**
28
+ * @description Throw an error when an invalid argument is provided
29
+ */
30
+ invalidArgument (opts: {
31
+ prefix: string
32
+ value: string
33
+ type: string
34
+ }): TypeError
35
+ }
36
+
37
+ interface WebidlUtil {
38
+ /**
39
+ * @see https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values
40
+ */
41
+ Type (object: unknown):
42
+ | 'Undefined'
43
+ | 'Boolean'
44
+ | 'String'
45
+ | 'Symbol'
46
+ | 'Number'
47
+ | 'BigInt'
48
+ | 'Null'
49
+ | 'Object'
50
+
51
+ /**
52
+ * @see https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
53
+ */
54
+ ConvertToInt (
55
+ V: unknown,
56
+ bitLength: number,
57
+ signedness: 'signed' | 'unsigned',
58
+ opts?: ConvertToIntOpts
59
+ ): number
60
+
61
+ /**
62
+ * @see https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
63
+ */
64
+ IntegerPart (N: number): number
65
+
66
+ /**
67
+ * Stringifies {@param V}
68
+ */
69
+ Stringify (V: any): string
70
+ }
71
+
72
+ interface WebidlConverters {
73
+ /**
74
+ * @see https://webidl.spec.whatwg.org/#es-DOMString
75
+ */
76
+ DOMString (V: unknown, prefix: string, argument: string, opts?: {
77
+ legacyNullToEmptyString: boolean
78
+ }): string
79
+
80
+ /**
81
+ * @see https://webidl.spec.whatwg.org/#es-ByteString
82
+ */
83
+ ByteString (V: unknown, prefix: string, argument: string): string
84
+
85
+ /**
86
+ * @see https://webidl.spec.whatwg.org/#es-USVString
87
+ */
88
+ USVString (V: unknown): string
89
+
90
+ /**
91
+ * @see https://webidl.spec.whatwg.org/#es-boolean
92
+ */
93
+ boolean (V: unknown): boolean
94
+
95
+ /**
96
+ * @see https://webidl.spec.whatwg.org/#es-any
97
+ */
98
+ any <Value>(V: Value): Value
99
+
100
+ /**
101
+ * @see https://webidl.spec.whatwg.org/#es-long-long
102
+ */
103
+ ['long long'] (V: unknown): number
104
+
105
+ /**
106
+ * @see https://webidl.spec.whatwg.org/#es-unsigned-long-long
107
+ */
108
+ ['unsigned long long'] (V: unknown): number
109
+
110
+ /**
111
+ * @see https://webidl.spec.whatwg.org/#es-unsigned-long
112
+ */
113
+ ['unsigned long'] (V: unknown): number
114
+
115
+ /**
116
+ * @see https://webidl.spec.whatwg.org/#es-unsigned-short
117
+ */
118
+ ['unsigned short'] (V: unknown, opts?: ConvertToIntOpts): number
119
+
120
+ /**
121
+ * @see https://webidl.spec.whatwg.org/#idl-ArrayBuffer
122
+ */
123
+ ArrayBuffer (V: unknown): ArrayBufferLike
124
+ ArrayBuffer (V: unknown, opts: { allowShared: false }): ArrayBuffer
125
+
126
+ /**
127
+ * @see https://webidl.spec.whatwg.org/#es-buffer-source-types
128
+ */
129
+ TypedArray (
130
+ V: unknown,
131
+ TypedArray: NodeJS.TypedArray | ArrayBufferLike
132
+ ): NodeJS.TypedArray | ArrayBufferLike
133
+ TypedArray (
134
+ V: unknown,
135
+ TypedArray: NodeJS.TypedArray | ArrayBufferLike,
136
+ opts?: { allowShared: false }
137
+ ): NodeJS.TypedArray | ArrayBuffer
138
+
139
+ /**
140
+ * @see https://webidl.spec.whatwg.org/#es-buffer-source-types
141
+ */
142
+ DataView (V: unknown, opts?: { allowShared: boolean }): DataView
143
+
144
+ /**
145
+ * @see https://webidl.spec.whatwg.org/#BufferSource
146
+ */
147
+ BufferSource (
148
+ V: unknown,
149
+ opts?: { allowShared: boolean }
150
+ ): NodeJS.TypedArray | ArrayBufferLike | DataView
151
+
152
+ ['sequence<ByteString>']: SequenceConverter<string>
153
+
154
+ ['sequence<sequence<ByteString>>']: SequenceConverter<string[]>
155
+
156
+ ['record<ByteString, ByteString>']: RecordConverter<string, string>
157
+
158
+ [Key: string]: (...args: any[]) => unknown
159
+ }
160
+
161
+ export interface Webidl {
162
+ errors: WebidlErrors
163
+ util: WebidlUtil
164
+ converters: WebidlConverters
165
+
166
+ /**
167
+ * @description Performs a brand-check on {@param V} to ensure it is a
168
+ * {@param cls} object.
169
+ */
170
+ brandCheck <Interface>(V: unknown, cls: Interface, opts?: { strict?: boolean }): asserts V is Interface
171
+
172
+ /**
173
+ * @see https://webidl.spec.whatwg.org/#es-sequence
174
+ * @description Convert a value, V, to a WebIDL sequence type.
175
+ */
176
+ sequenceConverter <Type>(C: Converter<Type>): SequenceConverter<Type>
177
+
178
+ illegalConstructor (): never
179
+
180
+ /**
181
+ * @see https://webidl.spec.whatwg.org/#es-to-record
182
+ * @description Convert a value, V, to a WebIDL record type.
183
+ */
184
+ recordConverter <K extends string, V>(
185
+ keyConverter: Converter<K>,
186
+ valueConverter: Converter<V>
187
+ ): RecordConverter<K, V>
188
+
189
+ /**
190
+ * Similar to {@link Webidl.brandCheck} but allows skipping the check if third party
191
+ * interfaces are allowed.
192
+ */
193
+ interfaceConverter <Interface>(cls: Interface): (
194
+ V: unknown,
195
+ opts?: { strict: boolean }
196
+ ) => asserts V is typeof cls
197
+
198
+ // TODO(@KhafraDev): a type could likely be implemented that can infer the return type
199
+ // from the converters given?
200
+ /**
201
+ * Converts a value, V, to a WebIDL dictionary types. Allows limiting which keys are
202
+ * allowed, values allowed, optional and required keys. Auto converts the value to
203
+ * a type given a converter.
204
+ */
205
+ dictionaryConverter (converters: {
206
+ key: string,
207
+ defaultValue?: () => unknown,
208
+ required?: boolean,
209
+ converter: (...args: unknown[]) => unknown,
210
+ allowedValues?: unknown[]
211
+ }[]): (V: unknown) => Record<string, unknown>
212
+
213
+ /**
214
+ * @see https://webidl.spec.whatwg.org/#idl-nullable-type
215
+ * @description allows a type, V, to be null
216
+ */
217
+ nullableConverter <T>(
218
+ converter: Converter<T>
219
+ ): (V: unknown) => ReturnType<typeof converter> | null
220
+
221
+ argumentLengthCheck (args: { length: number }, min: number, context: string): void
222
+ }
@@ -0,0 +1,152 @@
1
+ /// <reference types="node" />
2
+
3
+ import type { Blob } from 'buffer'
4
+ import type { MessagePort } from 'worker_threads'
5
+ import {
6
+ EventTarget,
7
+ Event,
8
+ EventInit,
9
+ EventListenerOptions,
10
+ AddEventListenerOptions,
11
+ EventListenerOrEventListenerObject
12
+ } from './patch'
13
+ import Dispatcher from './dispatcher'
14
+ import { HeadersInit } from './fetch'
15
+
16
+ export type BinaryType = 'blob' | 'arraybuffer'
17
+
18
+ interface WebSocketEventMap {
19
+ close: CloseEvent
20
+ error: ErrorEvent
21
+ message: MessageEvent
22
+ open: Event
23
+ }
24
+
25
+ interface WebSocket extends EventTarget {
26
+ binaryType: BinaryType
27
+
28
+ readonly bufferedAmount: number
29
+ readonly extensions: string
30
+
31
+ onclose: ((this: WebSocket, ev: WebSocketEventMap['close']) => any) | null
32
+ onerror: ((this: WebSocket, ev: WebSocketEventMap['error']) => any) | null
33
+ onmessage: ((this: WebSocket, ev: WebSocketEventMap['message']) => any) | null
34
+ onopen: ((this: WebSocket, ev: WebSocketEventMap['open']) => any) | null
35
+
36
+ readonly protocol: string
37
+ readonly readyState: number
38
+ readonly url: string
39
+
40
+ close(code?: number, reason?: string): void
41
+ send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void
42
+
43
+ readonly CLOSED: number
44
+ readonly CLOSING: number
45
+ readonly CONNECTING: number
46
+ readonly OPEN: number
47
+
48
+ addEventListener<K extends keyof WebSocketEventMap>(
49
+ type: K,
50
+ listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any,
51
+ options?: boolean | AddEventListenerOptions
52
+ ): void
53
+ addEventListener(
54
+ type: string,
55
+ listener: EventListenerOrEventListenerObject,
56
+ options?: boolean | AddEventListenerOptions
57
+ ): void
58
+ removeEventListener<K extends keyof WebSocketEventMap>(
59
+ type: K,
60
+ listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any,
61
+ options?: boolean | EventListenerOptions
62
+ ): void
63
+ removeEventListener(
64
+ type: string,
65
+ listener: EventListenerOrEventListenerObject,
66
+ options?: boolean | EventListenerOptions
67
+ ): void
68
+ }
69
+
70
+ export declare const WebSocket: {
71
+ prototype: WebSocket
72
+ new (url: string | URL, protocols?: string | string[] | WebSocketInit): WebSocket
73
+ readonly CLOSED: number
74
+ readonly CLOSING: number
75
+ readonly CONNECTING: number
76
+ readonly OPEN: number
77
+ }
78
+
79
+ interface CloseEventInit extends EventInit {
80
+ code?: number
81
+ reason?: string
82
+ wasClean?: boolean
83
+ }
84
+
85
+ interface CloseEvent extends Event {
86
+ readonly code: number
87
+ readonly reason: string
88
+ readonly wasClean: boolean
89
+ }
90
+
91
+ export declare const CloseEvent: {
92
+ prototype: CloseEvent
93
+ new (type: string, eventInitDict?: CloseEventInit): CloseEvent
94
+ }
95
+
96
+ interface MessageEventInit<T = any> extends EventInit {
97
+ data?: T
98
+ lastEventId?: string
99
+ origin?: string
100
+ ports?: (typeof MessagePort)[]
101
+ source?: typeof MessagePort | null
102
+ }
103
+
104
+ interface MessageEvent<T = any> extends Event {
105
+ readonly data: T
106
+ readonly lastEventId: string
107
+ readonly origin: string
108
+ readonly ports: ReadonlyArray<typeof MessagePort>
109
+ readonly source: typeof MessagePort | null
110
+ initMessageEvent(
111
+ type: string,
112
+ bubbles?: boolean,
113
+ cancelable?: boolean,
114
+ data?: any,
115
+ origin?: string,
116
+ lastEventId?: string,
117
+ source?: typeof MessagePort | null,
118
+ ports?: (typeof MessagePort)[]
119
+ ): void;
120
+ }
121
+
122
+ export declare const MessageEvent: {
123
+ prototype: MessageEvent
124
+ new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>
125
+ }
126
+
127
+ interface ErrorEventInit extends EventInit {
128
+ message?: string
129
+ filename?: string
130
+ lineno?: number
131
+ colno?: number
132
+ error?: any
133
+ }
134
+
135
+ interface ErrorEvent extends Event {
136
+ readonly message: string
137
+ readonly filename: string
138
+ readonly lineno: number
139
+ readonly colno: number
140
+ readonly error: any
141
+ }
142
+
143
+ export declare const ErrorEvent: {
144
+ prototype: ErrorEvent
145
+ new (type: string, eventInitDict?: ErrorEventInit): ErrorEvent
146
+ }
147
+
148
+ interface WebSocketInit {
149
+ protocols?: string | string[],
150
+ dispatcher?: Dispatcher,
151
+ headers?: HeadersInit
152
+ }
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.7.5](https://github.com/axios/axios/compare/v1.7.4...v1.7.5) (2024-08-23)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **adapter:** fix undefined reference to hasBrowserEnv ([#6572](https://github.com/axios/axios/issues/6572)) ([7004707](https://github.com/axios/axios/commit/7004707c4180b416341863bd86913fe4fc2f1df1))
9
+ * **core:** add the missed implementation of AxiosError#status property; ([#6573](https://github.com/axios/axios/issues/6573)) ([6700a8a](https://github.com/axios/axios/commit/6700a8adac06942205f6a7a21421ecb36c4e0852))
10
+ * **core:** fix `ReferenceError: navigator is not defined` for custom environments; ([#6567](https://github.com/axios/axios/issues/6567)) ([fed1a4b](https://github.com/axios/axios/commit/fed1a4b2d78ed4a588c84e09d32749ed01dc2794))
11
+ * **fetch:** fix credentials handling in Cloudflare workers ([#6533](https://github.com/axios/axios/issues/6533)) ([550d885](https://github.com/axios/axios/commit/550d885eb90fd156add7b93bbdc54d30d2f9a98d))
12
+
13
+ ### Contributors to this release
14
+
15
+ - <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+187/-83 (#6573 #6567 #6566 #6564 #6563 #6557 #6556 #6555 #6554 #6552 )")
16
+ - <img src="https://avatars.githubusercontent.com/u/2495809?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Antonin Bas](https://github.com/antoninbas "+6/-6 (#6572 )")
17
+ - <img src="https://avatars.githubusercontent.com/u/5406212?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Hans Otto Wirtz](https://github.com/hansottowirtz "+4/-1 (#6533 )")
18
+
3
19
  ## [1.7.4](https://github.com/axios/axios/compare/v1.7.3...v1.7.4) (2024-08-13)
4
20
 
5
21
 
@@ -1,62 +1,11 @@
1
- <h3 align="center">
2
- Platinum sponsors
3
- <br>
4
- </h3>
5
1
 
6
- <div align="center">
7
- <a href="https://runalloy.com?utm_source=github&utm_medium=referral&utm_campaign=121423_axios">
8
- <picture>
9
- <source width="400px" media="(prefers-color-scheme: dark)" srcset="https://github.com/axios/axios/assets/4814473/f6067247-7eba-4069-852a-ab1bb85b1780">
10
- <source width="400px" media="(prefers-color-scheme: light)" srcset="https://github.com/axios/axios/assets/4814473/75c37f4d-36e6-44f5-a068-3edd77c00a10">
11
- <img width="400px" src="https://github.com/axios/axios/assets/4814473/75c37f4d-36e6-44f5-a068-3edd77c00a10" />
12
- </picture>
13
- </a>
14
-
15
- <p align="center">Alloy is the integration development platform that makes it simple and <br>fast for SaaS companies to launch critical user-facing integrations.</p>
16
- <p align="center">
17
- <a href="https://runalloy.com/signup?utm_source=github&utm_medium=referral&utm_campaign=11823_axios"><b>Sign up free</b></a> •
18
- <a href="https://docs.runalloy.com/docs?utm_source=github&utm_medium=referral&utm_campaign=11823_axios"><b>Documentation</b></a>
19
- </p>
20
- <br><br>
21
- </div>
22
-
23
- <h3 align="center">
24
- Gold sponsors
25
- <br><br>
26
- </h3>
27
-
28
- <table border="0">
29
- <td align="center">
30
- <a href="https://stytch.com?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=logo&utm_campaign=axios-http">
31
- <picture>
32
- <source width="200px" media="(prefers-color-scheme: dark)" srcset="https://github.com/axios/axios/assets/4814473/538d715a-13c7-4668-ae7d-37a4548423f4">
33
- <source width="200px" media="(prefers-color-scheme: light)" srcset="https://github.com/axios/axios/assets/4814473/b6a9a7bc-9fb1-4b9b-909f-1b4bee1fd142">
34
- <img width="200px" src="https://github.com/axios/axios/assets/4814473/b6a9a7bc-9fb1-4b9b-909f-1b4bee1fd142" />
35
- </picture>
36
- </a>
37
- <p align="center">API-first authentication, authorization, and fraud prevention</p>
38
- <p align="center">
39
- <a href="https://stytch.com?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=website-link&utm_campaign=axios-http"><b>Website</b></a> •
40
- <a href="https://stytch.com/docs?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=docs-link&utm_campaign=axios-http"><b>Documentation</b></a> • <a href="https://github.com/stytchauth/stytch-node?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=node-sdk&utm_campaign=axios-http"><b>Node.js Backend SDK</b></a>
41
- </p>
42
- </td>
43
- <td align="center">
44
- <a href="https://stytch.com?utm_source=oss-sponsorship&utm_medium=paid_sponsorship&utm_content=logo&utm_campaign=axios-http">
45
- <picture>
46
- <source width="200px" media="(prefers-color-scheme: dark)" srcset="https://github.com/axios/axios/assets/4814473/79f572f3-9d57-488d-80cc-58d674bb98d8">
47
- <source width="200px" media="(prefers-color-scheme: light)" srcset="https://github.com/axios/axios/assets/4814473/18b51893-c4b4-4557-b263-74c2b3de84ab">
48
- <img width="200px" src="https://github.com/axios/axios/assets/4814473/18b51893-c4b4-4557-b263-74c2b3de84ab" />
49
- </picture>
50
- </a>
51
- <p align="center">Drag-and-drop authentication, authorization, and identity management</p>
52
- <p align="center">
53
- <a href="https://www.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship"><b>Website</b></a> •
54
- <a href="https://docs.descope.com/?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship"><b>Documentation</b></a> • <a href="https://www.descope.com/community?utm_source=axios&utm_medium=referral&utm_campaign=axios-oss-sponsorship"><b>Community</b></a>
55
- </p>
56
- </td>
57
- </table>
58
-
2
+ <h3 align="center"> 🥇 Gold sponsors <br> </h3> <table align="center" width="100%"><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://stytch.com/?utm_source&#x3D;oss-sponsorship&amp;utm_medium&#x3D;paid_sponsorship&amp;utm_content&#x3D;website-link&amp;utm_campaign&#x3D;axios-http" style="padding: 10px; display: inline-block"> <picture> <source width="200px" height="38px" media="(prefers-color-scheme: dark)" srcset="/assets/sponsors/stytch_white.png"> <img width="200px" height="38px" src="https://axios-http.com/assets/sponsors/stytch.png" alt="Stytch"/> </picture> </a> <p align="center" title="API-first authentication, authorization, and fraud prevention">API-first authentication, authorization, and fraud prevention</p> <p align="center"> <a href="https://stytch.com/?utm_source&#x3D;oss-sponsorship&amp;utm_medium&#x3D;paid_sponsorship&amp;utm_content&#x3D;website-link&amp;utm_campaign&#x3D;axios-http"><b>Website</b></a> | <a href="https://stytch.com/docs?utm_source&#x3D;oss-sponsorship&amp;utm_medium&#x3D;paid_sponsorship&amp;utm_content&#x3D;docs-link&amp;utm_campaign&#x3D;axios-http"><b>Documentation</b></a> | <a href="https://github.com/stytchauth/stytch-node?utm_source&#x3D;oss-sponsorship&amp;utm_medium&#x3D;paid_sponsorship&amp;utm_content&#x3D;node-sdk&amp;utm_campaign&#x3D;axios-http"><b>Node.js</b></a> </p>
3
+ </td><td align="center" width="33.333333333333336%"> <a href="https://www.principal.com/about-us?utm_source&#x3D;axios&amp;utm_medium&#x3D;sponsorlist&amp;utm_campaign&#x3D;sponsorship" style="padding: 10px; display: inline-block"> <img width="133px" height="43px" src="https://axios-http.com/assets/sponsors/principal.svg" alt="Principal Financial Group"/> </a> <p align="center" title="We’re bound by one common purpose: to give you the financial tools, resources and information you need to live your best life.">We’re bound by one common purpose: to give you the financial tools, resources and information you ne...</p> <p align="center"> </p>
4
+ </td><td align="center" width="33.333333333333336%"> <a href="https://www.descope.com/?utm_source&#x3D;axios&amp;utm_medium&#x3D;referral&amp;utm_campaign&#x3D;axios-oss-sponsorship" style="padding: 10px; display: inline-block"> <picture> <source width="200px" height="52px" media="(prefers-color-scheme: dark)" srcset="/assets/sponsors/descope_white.png"> <img width="200px" height="52px" src="https://axios-http.com/assets/sponsors/descope.png" alt="Descope"/> </picture> </a> <p align="center" title="Hi, we&#x27;re Descope! We are building something in the authentication space for app developers and can’t wait to place it in your hands.">Hi, we&#x27;re Descope! We are building something in the authentication space for app developers and...</p> <p align="center"> <a href="https://www.descope.com/?utm_source&#x3D;axios&amp;utm_medium&#x3D;referral&amp;utm_campaign&#x3D;axios-oss-sponsorship"><b>Website</b></a> | <a href="https://docs.descope.com/?utm_source&#x3D;axios&amp;utm_medium&#x3D;referral&amp;utm_campaign&#x3D;axios-oss-sponsorship"><b>Documentation</b></a> | <a href="https://www.descope.com/community?utm_source&#x3D;axios&amp;utm_medium&#x3D;referral&amp;utm_campaign&#x3D;axios-oss-sponsorship"><b>Community</b></a> </p>
5
+ </td></tr><tr width="33.333333333333336%"><td align="center" width="33.333333333333336%"> <a href="https://route4me.com/?utm_source&#x3D;axios&amp;utm_medium&#x3D;sponsorlist&amp;utm_campaign&#x3D;sponsorship" style="padding: 10px; display: inline-block"> <picture> <source width="200px" height="51px" media="(prefers-color-scheme: dark)" srcset="/assets/sponsors/route4me_white.png"> <img width="200px" height="51px" src="https://axios-http.com/assets/sponsors/route4me.png" alt="Route4Me"/> </picture> </a> <p align="center" title="Best Route Planning And Route Optimization Software">Best Route Planning And Route Optimization Software</p> <p align="center"> <a href="https://route4me.com/platform/route-optimization-software"><b>Explore</b></a> | <a href="https://route4me.com/platform/marketplace/pricing"><b>Free Trial</b></a> | <a href="https://route4me.com/contact"><b>Contact</b></a> </p>
6
+ </td></tr></table>
59
7
 
8
+ <!--<div>marker</div>-->
60
9
  <br><br>
61
10
  <div align="center">
62
11
  <a href="https://axios-http.com"><img src="https://axios-http.com/assets/logo.svg" /></a><br>
@@ -1,4 +1,4 @@
1
- // Axios v1.7.4 Copyright (c) 2024 Matt Zabriskie and contributors
1
+ // Axios v1.7.5 Copyright (c) 2024 Matt Zabriskie and contributors
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -1432,7 +1432,10 @@
1432
1432
  code && (this.code = code);
1433
1433
  config && (this.config = config);
1434
1434
  request && (this.request = request);
1435
- response && (this.response = response);
1435
+ if (response) {
1436
+ this.response = response;
1437
+ this.status = response.status ? response.status : null;
1438
+ }
1436
1439
  }
1437
1440
  utils$1.inherits(AxiosError, Error, {
1438
1441
  toJSON: function toJSON() {
@@ -1451,7 +1454,7 @@
1451
1454
  // Axios
1452
1455
  config: utils$1.toJSONObject(this.config),
1453
1456
  code: this.code,
1454
- status: this.response && this.response.status ? this.response.status : null
1457
+ status: this.status
1455
1458
  };
1456
1459
  }
1457
1460
  });
@@ -1860,6 +1863,7 @@
1860
1863
  };
1861
1864
 
1862
1865
  var hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
1866
+ var _navigator = (typeof navigator === "undefined" ? "undefined" : _typeof(navigator)) === 'object' && navigator || undefined;
1863
1867
 
1864
1868
  /**
1865
1869
  * Determine if we're running in a standard browser environment
@@ -1878,9 +1882,7 @@
1878
1882
  *
1879
1883
  * @returns {boolean}
1880
1884
  */
1881
- var hasStandardBrowserEnv = function (product) {
1882
- return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0;
1883
- }(typeof navigator !== 'undefined' && navigator.product);
1885
+ var hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);
1884
1886
 
1885
1887
  /**
1886
1888
  * Determine if we're running in a standard browser webWorker environment
@@ -1903,6 +1905,7 @@
1903
1905
  hasBrowserEnv: hasBrowserEnv,
1904
1906
  hasStandardBrowserWebWorkerEnv: hasStandardBrowserWebWorkerEnv,
1905
1907
  hasStandardBrowserEnv: hasStandardBrowserEnv,
1908
+ navigator: _navigator,
1906
1909
  origin: origin
1907
1910
  });
1908
1911
 
@@ -2643,7 +2646,7 @@
2643
2646
  // Standard browser envs have full support of the APIs needed to test
2644
2647
  // whether the request URL is of the same origin as current location.
2645
2648
  function standardBrowserEnv() {
2646
- var msie = /(msie|trident)/i.test(navigator.userAgent);
2649
+ var msie = platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent);
2647
2650
  var urlParsingNode = document.createElement('a');
2648
2651
  var originURL;
2649
2652
 
@@ -3445,7 +3448,7 @@
3445
3448
  }();
3446
3449
  var fetchAdapter = isFetchSupported && ( /*#__PURE__*/function () {
3447
3450
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(config) {
3448
- var _resolveConfig, url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, _resolveConfig$withCr, withCredentials, fetchOptions, _ref5, _ref6, composedSignal, stopTimeout, finished, request, onFinish, requestContentLength, _request, contentTypeHeader, _progressEventDecorat, _progressEventDecorat2, onProgress, flush, response, isStreamResponse, options, responseContentLength, _ref7, _ref8, _onProgress, _flush, responseData;
3451
+ var _resolveConfig, url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, _resolveConfig$withCr, withCredentials, fetchOptions, _ref5, _ref6, composedSignal, stopTimeout, finished, request, onFinish, requestContentLength, _request, contentTypeHeader, _progressEventDecorat, _progressEventDecorat2, onProgress, flush, isCredentialsSupported, response, isStreamResponse, options, responseContentLength, _ref7, _ref8, _onProgress, _flush, responseData;
3449
3452
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
3450
3453
  while (1) switch (_context4.prev = _context4.next) {
3451
3454
  case 0:
@@ -3490,17 +3493,21 @@
3490
3493
  if (!utils$1.isString(withCredentials)) {
3491
3494
  withCredentials = withCredentials ? 'include' : 'omit';
3492
3495
  }
3496
+
3497
+ // Cloudflare Workers throws when credentials are defined
3498
+ // see https://github.com/cloudflare/workerd/issues/902
3499
+ isCredentialsSupported = "credentials" in Request.prototype;
3493
3500
  request = new Request(url, _objectSpread2(_objectSpread2({}, fetchOptions), {}, {
3494
3501
  signal: composedSignal,
3495
3502
  method: method.toUpperCase(),
3496
3503
  headers: headers.normalize().toJSON(),
3497
3504
  body: data,
3498
3505
  duplex: "half",
3499
- credentials: withCredentials
3506
+ credentials: isCredentialsSupported ? withCredentials : undefined
3500
3507
  }));
3501
- _context4.next = 19;
3508
+ _context4.next = 20;
3502
3509
  return fetch(request);
3503
- case 19:
3510
+ case 20:
3504
3511
  response = _context4.sent;
3505
3512
  isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
3506
3513
  if (supportsResponseStream && (onDownloadProgress || isStreamResponse)) {
@@ -3516,13 +3523,13 @@
3516
3523
  }, encodeText), options);
3517
3524
  }
3518
3525
  responseType = responseType || 'text';
3519
- _context4.next = 25;
3526
+ _context4.next = 26;
3520
3527
  return resolvers[utils$1.findKey(resolvers, responseType) || 'text'](response, config);
3521
- case 25:
3528
+ case 26:
3522
3529
  responseData = _context4.sent;
3523
3530
  !isStreamResponse && onFinish();
3524
3531
  stopTimeout && stopTimeout();
3525
- _context4.next = 30;
3532
+ _context4.next = 31;
3526
3533
  return new Promise(function (resolve, reject) {
3527
3534
  settle(resolve, reject, {
3528
3535
  data: responseData,
@@ -3533,26 +3540,26 @@
3533
3540
  request: request
3534
3541
  });
3535
3542
  });
3536
- case 30:
3543
+ case 31:
3537
3544
  return _context4.abrupt("return", _context4.sent);
3538
- case 33:
3539
- _context4.prev = 33;
3545
+ case 34:
3546
+ _context4.prev = 34;
3540
3547
  _context4.t2 = _context4["catch"](4);
3541
3548
  onFinish();
3542
3549
  if (!(_context4.t2 && _context4.t2.name === 'TypeError' && /fetch/i.test(_context4.t2.message))) {
3543
- _context4.next = 38;
3550
+ _context4.next = 39;
3544
3551
  break;
3545
3552
  }
3546
3553
  throw Object.assign(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request), {
3547
3554
  cause: _context4.t2.cause || _context4.t2
3548
3555
  });
3549
- case 38:
3550
- throw AxiosError.from(_context4.t2, _context4.t2 && _context4.t2.code, config, request);
3551
3556
  case 39:
3557
+ throw AxiosError.from(_context4.t2, _context4.t2 && _context4.t2.code, config, request);
3558
+ case 40:
3552
3559
  case "end":
3553
3560
  return _context4.stop();
3554
3561
  }
3555
- }, _callee4, null, [[4, 33]]);
3562
+ }, _callee4, null, [[4, 34]]);
3556
3563
  }));
3557
3564
  return function (_x5) {
3558
3565
  return _ref4.apply(this, arguments);
@@ -3676,7 +3683,7 @@
3676
3683
  });
3677
3684
  }
3678
3685
 
3679
- var VERSION = "1.7.4";
3686
+ var VERSION = "1.7.5";
3680
3687
 
3681
3688
  var validators$1 = {};
3682
3689