node-red-contrib-tak-registration 0.15.0 → 0.16.1

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 (374) hide show
  1. package/node_modules/@types/node/README.md +2 -2
  2. package/node_modules/@types/node/assert.d.ts +8 -6
  3. package/node_modules/@types/node/async_hooks.d.ts +26 -6
  4. package/node_modules/@types/node/buffer.d.ts +7 -3
  5. package/node_modules/@types/node/child_process.d.ts +28 -124
  6. package/node_modules/@types/node/cluster.d.ts +15 -15
  7. package/node_modules/@types/node/console.d.ts +17 -17
  8. package/node_modules/@types/node/crypto.d.ts +95 -38
  9. package/node_modules/@types/node/dgram.d.ts +1 -1
  10. package/node_modules/@types/node/diagnostics_channel.d.ts +18 -13
  11. package/node_modules/@types/node/dns/promises.d.ts +36 -9
  12. package/node_modules/@types/node/dns.d.ts +89 -36
  13. package/node_modules/@types/node/domain.d.ts +1 -1
  14. package/node_modules/@types/node/events.d.ts +1 -2
  15. package/node_modules/@types/node/fs/promises.d.ts +67 -40
  16. package/node_modules/@types/node/fs.d.ts +88 -52
  17. package/node_modules/@types/node/globals.d.ts +148 -351
  18. package/node_modules/@types/node/globals.typedarray.d.ts +1 -0
  19. package/node_modules/@types/node/http.d.ts +73 -7
  20. package/node_modules/@types/node/http2.d.ts +88 -15
  21. package/node_modules/@types/node/https.d.ts +1 -1
  22. package/node_modules/@types/node/index.d.ts +13 -6
  23. package/node_modules/@types/node/inspector.d.ts +222 -13
  24. package/node_modules/@types/node/module.d.ts +153 -31
  25. package/node_modules/@types/node/net.d.ts +3 -6
  26. package/node_modules/@types/node/os.d.ts +8 -7
  27. package/node_modules/@types/node/package.json +14 -84
  28. package/node_modules/@types/node/path.d.ts +1 -1
  29. package/node_modules/@types/node/perf_hooks.d.ts +24 -10
  30. package/node_modules/@types/node/process.d.ts +21 -11
  31. package/node_modules/@types/node/punycode.d.ts +1 -1
  32. package/node_modules/@types/node/querystring.d.ts +1 -1
  33. package/node_modules/@types/node/readline/promises.d.ts +0 -1
  34. package/node_modules/@types/node/readline.d.ts +13 -13
  35. package/node_modules/@types/node/repl.d.ts +25 -17
  36. package/node_modules/@types/node/sea.d.ts +1 -1
  37. package/node_modules/@types/node/sqlite.d.ts +209 -3
  38. package/node_modules/@types/node/stream/web.d.ts +8 -0
  39. package/node_modules/@types/node/stream.d.ts +30 -24
  40. package/node_modules/@types/node/string_decoder.d.ts +1 -1
  41. package/node_modules/@types/node/test.d.ts +2029 -1975
  42. package/node_modules/@types/node/timers/promises.d.ts +1 -1
  43. package/node_modules/@types/node/timers.d.ts +1 -3
  44. package/node_modules/@types/node/tls.d.ts +2 -48
  45. package/node_modules/@types/node/trace_events.d.ts +6 -6
  46. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  47. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +1 -0
  48. package/node_modules/@types/node/ts5.6/index.d.ts +15 -6
  49. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  50. package/node_modules/@types/node/ts5.7/index.d.ts +101 -0
  51. package/node_modules/@types/node/tty.d.ts +1 -1
  52. package/node_modules/@types/node/url.d.ts +73 -20
  53. package/node_modules/@types/node/util.d.ts +23 -298
  54. package/node_modules/@types/node/v8.d.ts +62 -32
  55. package/node_modules/@types/node/vm.d.ts +132 -24
  56. package/node_modules/@types/node/wasi.d.ts +22 -1
  57. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  58. package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  59. package/node_modules/@types/node/web-globals/events.d.ts +94 -0
  60. package/node_modules/@types/node/web-globals/fetch.d.ts +50 -0
  61. package/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
  62. package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  63. package/node_modules/@types/node/worker_threads.d.ts +85 -26
  64. package/node_modules/@types/node/zlib.d.ts +13 -9
  65. package/node_modules/axios/CHANGELOG.md +99 -0
  66. package/node_modules/axios/README.md +105 -28
  67. package/node_modules/axios/dist/axios.js +395 -292
  68. package/node_modules/axios/dist/axios.js.map +1 -1
  69. package/node_modules/axios/dist/axios.min.js +2 -2
  70. package/node_modules/axios/dist/axios.min.js.map +1 -1
  71. package/node_modules/axios/dist/browser/axios.cjs +333 -219
  72. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  73. package/node_modules/axios/dist/esm/axios.js +333 -219
  74. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  75. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  76. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  77. package/node_modules/axios/dist/node/axios.cjs +424 -219
  78. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  79. package/node_modules/axios/index.d.cts +26 -8
  80. package/node_modules/axios/index.d.ts +14 -5
  81. package/node_modules/axios/lib/adapters/adapters.js +6 -4
  82. package/node_modules/axios/lib/adapters/fetch.js +221 -162
  83. package/node_modules/axios/lib/adapters/http.js +18 -0
  84. package/node_modules/axios/lib/adapters/xhr.js +11 -8
  85. package/node_modules/axios/lib/core/Axios.js +2 -4
  86. package/node_modules/axios/lib/core/AxiosError.js +10 -3
  87. package/node_modules/axios/lib/core/dispatchRequest.js +1 -1
  88. package/node_modules/axios/lib/core/mergeConfig.js +1 -1
  89. package/node_modules/axios/lib/defaults/index.js +1 -1
  90. package/node_modules/axios/lib/env/data.js +1 -1
  91. package/node_modules/axios/lib/helpers/buildURL.js +1 -3
  92. package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +73 -0
  93. package/node_modules/axios/lib/helpers/resolveConfig.js +13 -9
  94. package/node_modules/axios/lib/helpers/throttle.js +1 -1
  95. package/node_modules/axios/lib/helpers/toFormData.js +4 -0
  96. package/node_modules/axios/lib/helpers/toURLEncodedForm.js +4 -3
  97. package/node_modules/axios/lib/utils.js +40 -2
  98. package/node_modules/axios/package.json +30 -15
  99. package/node_modules/bignumber.js/CHANGELOG.md +6 -1
  100. package/node_modules/bignumber.js/README.md +5 -4
  101. package/node_modules/bignumber.js/bignumber.js +2 -2
  102. package/node_modules/bignumber.js/bignumber.mjs +2 -2
  103. package/node_modules/bignumber.js/package.json +1 -1
  104. package/node_modules/fast-xml-parser/CHANGELOG.md +7 -0
  105. package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
  106. package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
  107. package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
  108. package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
  109. package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
  110. package/node_modules/fast-xml-parser/package.json +1 -2
  111. package/node_modules/fast-xml-parser/src/cli/cli.js +4 -0
  112. package/node_modules/fast-xml-parser/src/fxp.d.ts +5 -5
  113. package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +3 -3
  114. package/node_modules/follow-redirects/package.json +1 -1
  115. package/node_modules/form-data/CHANGELOG.md +601 -0
  116. package/node_modules/form-data/{Readme.md → README.md} +34 -37
  117. package/node_modules/form-data/lib/browser.js +3 -1
  118. package/node_modules/form-data/lib/form_data.js +126 -135
  119. package/node_modules/form-data/lib/populate.js +5 -5
  120. package/node_modules/form-data/package.json +24 -16
  121. package/node_modules/protobufjs/dist/light/protobuf.js +8 -7
  122. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
  123. package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
  124. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
  125. package/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
  126. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
  127. package/node_modules/protobufjs/dist/protobuf.js +8 -7
  128. package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  129. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  130. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  131. package/node_modules/protobufjs/ext/descriptor/index.js +179 -69
  132. package/node_modules/protobufjs/google/protobuf/descriptor.json +660 -17
  133. package/node_modules/protobufjs/google/protobuf/descriptor.proto +255 -6
  134. package/node_modules/protobufjs/package.json +1 -1
  135. package/node_modules/protobufjs/src/namespace.js +3 -1
  136. package/node_modules/protobufjs/src/root.js +3 -4
  137. package/node_modules/undici-types/agent.d.ts +11 -7
  138. package/node_modules/undici-types/api.d.ts +24 -24
  139. package/node_modules/undici-types/balanced-pool.d.ts +11 -11
  140. package/node_modules/undici-types/cache-interceptor.d.ts +172 -0
  141. package/node_modules/undici-types/client-stats.d.ts +15 -0
  142. package/node_modules/undici-types/client.d.ts +18 -16
  143. package/node_modules/undici-types/cookies.d.ts +2 -0
  144. package/node_modules/undici-types/diagnostics-channel.d.ts +19 -10
  145. package/node_modules/undici-types/dispatcher.d.ts +119 -93
  146. package/node_modules/undici-types/env-http-proxy-agent.d.ts +4 -3
  147. package/node_modules/undici-types/errors.d.ts +69 -47
  148. package/node_modules/undici-types/eventsource.d.ts +3 -3
  149. package/node_modules/undici-types/fetch.d.ts +18 -16
  150. package/node_modules/undici-types/formdata.d.ts +7 -7
  151. package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
  152. package/node_modules/undici-types/global-origin.d.ts +5 -5
  153. package/node_modules/undici-types/h2c-client.d.ts +75 -0
  154. package/node_modules/undici-types/handlers.d.ts +8 -8
  155. package/node_modules/undici-types/header.d.ts +157 -1
  156. package/node_modules/undici-types/index.d.ts +51 -47
  157. package/node_modules/undici-types/interceptors.d.ts +25 -8
  158. package/node_modules/undici-types/mock-agent.d.ts +36 -18
  159. package/node_modules/undici-types/mock-call-history.d.ts +111 -0
  160. package/node_modules/undici-types/mock-client.d.ts +6 -4
  161. package/node_modules/undici-types/mock-errors.d.ts +3 -3
  162. package/node_modules/undici-types/mock-interceptor.d.ts +21 -19
  163. package/node_modules/undici-types/mock-pool.d.ts +6 -4
  164. package/node_modules/undici-types/package.json +1 -1
  165. package/node_modules/undici-types/patch.d.ts +0 -4
  166. package/node_modules/undici-types/pool-stats.d.ts +8 -8
  167. package/node_modules/undici-types/pool.d.ts +14 -12
  168. package/node_modules/undici-types/proxy-agent.d.ts +5 -4
  169. package/node_modules/undici-types/readable.d.ts +18 -15
  170. package/node_modules/undici-types/retry-agent.d.ts +1 -1
  171. package/node_modules/undici-types/retry-handler.d.ts +19 -10
  172. package/node_modules/undici-types/util.d.ts +3 -3
  173. package/node_modules/undici-types/utility.d.ts +7 -0
  174. package/node_modules/undici-types/webidl.d.ts +50 -8
  175. package/node_modules/undici-types/websocket.d.ts +36 -2
  176. package/node_modules/uuid/README.md +8 -19
  177. package/node_modules/uuid/dist/{esm-browser/uuid-bin.js → uuid-bin.js} +1 -1
  178. package/node_modules/uuid/dist/{esm-browser/v4.js → v4.js} +7 -4
  179. package/node_modules/uuid/{dist/esm → dist-node}/md5.js +1 -1
  180. package/node_modules/uuid/dist-node/native.js +2 -0
  181. package/node_modules/uuid/{dist/esm → dist-node}/rng.js +1 -1
  182. package/node_modules/uuid/{dist/esm → dist-node}/sha1.js +1 -1
  183. package/node_modules/uuid/{dist/esm → dist-node}/uuid-bin.js +1 -1
  184. package/node_modules/uuid/{dist/esm → dist-node}/v4.js +7 -4
  185. package/node_modules/uuid/package.json +28 -41
  186. package/package.json +6 -6
  187. package/tak-registration.bak +557 -0
  188. package/tak-registration.js +14 -12
  189. package/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  190. package/node_modules/@types/node/compatibility/index.d.ts +0 -9
  191. package/node_modules/@types/node/compatibility/indexable.d.ts +0 -23
  192. package/node_modules/@types/node/dom-events.d.ts +0 -124
  193. package/node_modules/undici-types/file.d.ts +0 -39
  194. package/node_modules/undici-types/filereader.d.ts +0 -54
  195. package/node_modules/uuid/dist/cjs/index.d.ts +0 -15
  196. package/node_modules/uuid/dist/cjs/index.js +0 -31
  197. package/node_modules/uuid/dist/cjs/max.d.ts +0 -2
  198. package/node_modules/uuid/dist/cjs/max.js +0 -3
  199. package/node_modules/uuid/dist/cjs/md5.d.ts +0 -4
  200. package/node_modules/uuid/dist/cjs/md5.js +0 -13
  201. package/node_modules/uuid/dist/cjs/native.d.ts +0 -6
  202. package/node_modules/uuid/dist/cjs/native.js +0 -4
  203. package/node_modules/uuid/dist/cjs/nil.d.ts +0 -2
  204. package/node_modules/uuid/dist/cjs/nil.js +0 -3
  205. package/node_modules/uuid/dist/cjs/package.json +0 -1
  206. package/node_modules/uuid/dist/cjs/parse.d.ts +0 -2
  207. package/node_modules/uuid/dist/cjs/parse.js +0 -11
  208. package/node_modules/uuid/dist/cjs/regex.d.ts +0 -2
  209. package/node_modules/uuid/dist/cjs/regex.js +0 -3
  210. package/node_modules/uuid/dist/cjs/rng.d.ts +0 -1
  211. package/node_modules/uuid/dist/cjs/rng.js +0 -13
  212. package/node_modules/uuid/dist/cjs/sha1.d.ts +0 -4
  213. package/node_modules/uuid/dist/cjs/sha1.js +0 -13
  214. package/node_modules/uuid/dist/cjs/stringify.d.ts +0 -3
  215. package/node_modules/uuid/dist/cjs/stringify.js +0 -39
  216. package/node_modules/uuid/dist/cjs/types.d.ts +0 -21
  217. package/node_modules/uuid/dist/cjs/types.js +0 -2
  218. package/node_modules/uuid/dist/cjs/uuid-bin.d.ts +0 -1
  219. package/node_modules/uuid/dist/cjs/uuid-bin.js +0 -72
  220. package/node_modules/uuid/dist/cjs/v1.d.ts +0 -11
  221. package/node_modules/uuid/dist/cjs/v1.js +0 -87
  222. package/node_modules/uuid/dist/cjs/v1ToV6.d.ts +0 -2
  223. package/node_modules/uuid/dist/cjs/v1ToV6.js +0 -13
  224. package/node_modules/uuid/dist/cjs/v3.d.ts +0 -9
  225. package/node_modules/uuid/dist/cjs/v3.js +0 -14
  226. package/node_modules/uuid/dist/cjs/v35.d.ts +0 -7
  227. package/node_modules/uuid/dist/cjs/v35.js +0 -41
  228. package/node_modules/uuid/dist/cjs/v4.d.ts +0 -4
  229. package/node_modules/uuid/dist/cjs/v4.js +0 -29
  230. package/node_modules/uuid/dist/cjs/v5.d.ts +0 -9
  231. package/node_modules/uuid/dist/cjs/v5.js +0 -14
  232. package/node_modules/uuid/dist/cjs/v6.d.ts +0 -4
  233. package/node_modules/uuid/dist/cjs/v6.js +0 -19
  234. package/node_modules/uuid/dist/cjs/v6ToV1.d.ts +0 -2
  235. package/node_modules/uuid/dist/cjs/v6ToV1.js +0 -13
  236. package/node_modules/uuid/dist/cjs/v7.d.ts +0 -9
  237. package/node_modules/uuid/dist/cjs/v7.js +0 -69
  238. package/node_modules/uuid/dist/cjs/validate.d.ts +0 -2
  239. package/node_modules/uuid/dist/cjs/validate.js +0 -7
  240. package/node_modules/uuid/dist/cjs/version.d.ts +0 -2
  241. package/node_modules/uuid/dist/cjs/version.js +0 -10
  242. package/node_modules/uuid/dist/cjs-browser/index.js +0 -31
  243. package/node_modules/uuid/dist/cjs-browser/max.js +0 -3
  244. package/node_modules/uuid/dist/cjs-browser/md5.js +0 -137
  245. package/node_modules/uuid/dist/cjs-browser/native.js +0 -4
  246. package/node_modules/uuid/dist/cjs-browser/nil.js +0 -3
  247. package/node_modules/uuid/dist/cjs-browser/package.json +0 -1
  248. package/node_modules/uuid/dist/cjs-browser/parse.js +0 -11
  249. package/node_modules/uuid/dist/cjs-browser/regex.js +0 -3
  250. package/node_modules/uuid/dist/cjs-browser/rng.js +0 -14
  251. package/node_modules/uuid/dist/cjs-browser/sha1.js +0 -72
  252. package/node_modules/uuid/dist/cjs-browser/stringify.js +0 -39
  253. package/node_modules/uuid/dist/cjs-browser/types.js +0 -2
  254. package/node_modules/uuid/dist/cjs-browser/uuid-bin.js +0 -72
  255. package/node_modules/uuid/dist/cjs-browser/v1.js +0 -87
  256. package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +0 -13
  257. package/node_modules/uuid/dist/cjs-browser/v3.js +0 -14
  258. package/node_modules/uuid/dist/cjs-browser/v35.js +0 -41
  259. package/node_modules/uuid/dist/cjs-browser/v4.js +0 -29
  260. package/node_modules/uuid/dist/cjs-browser/v5.js +0 -14
  261. package/node_modules/uuid/dist/cjs-browser/v6.js +0 -19
  262. package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +0 -13
  263. package/node_modules/uuid/dist/cjs-browser/v7.js +0 -69
  264. package/node_modules/uuid/dist/cjs-browser/validate.js +0 -7
  265. package/node_modules/uuid/dist/cjs-browser/version.js +0 -10
  266. package/node_modules/uuid/dist/esm/index.d.ts +0 -15
  267. package/node_modules/uuid/dist/esm/max.d.ts +0 -2
  268. package/node_modules/uuid/dist/esm/md5.d.ts +0 -4
  269. package/node_modules/uuid/dist/esm/native.d.ts +0 -6
  270. package/node_modules/uuid/dist/esm/native.js +0 -2
  271. package/node_modules/uuid/dist/esm/nil.d.ts +0 -2
  272. package/node_modules/uuid/dist/esm/parse.d.ts +0 -2
  273. package/node_modules/uuid/dist/esm/regex.d.ts +0 -2
  274. package/node_modules/uuid/dist/esm/rng.d.ts +0 -1
  275. package/node_modules/uuid/dist/esm/sha1.d.ts +0 -4
  276. package/node_modules/uuid/dist/esm/stringify.d.ts +0 -3
  277. package/node_modules/uuid/dist/esm/types.d.ts +0 -21
  278. package/node_modules/uuid/dist/esm/uuid-bin.d.ts +0 -1
  279. package/node_modules/uuid/dist/esm/v1.d.ts +0 -11
  280. package/node_modules/uuid/dist/esm/v1ToV6.d.ts +0 -2
  281. package/node_modules/uuid/dist/esm/v3.d.ts +0 -9
  282. package/node_modules/uuid/dist/esm/v35.d.ts +0 -7
  283. package/node_modules/uuid/dist/esm/v4.d.ts +0 -4
  284. package/node_modules/uuid/dist/esm/v5.d.ts +0 -9
  285. package/node_modules/uuid/dist/esm/v6.d.ts +0 -4
  286. package/node_modules/uuid/dist/esm/v6ToV1.d.ts +0 -2
  287. package/node_modules/uuid/dist/esm/v7.d.ts +0 -9
  288. package/node_modules/uuid/dist/esm/validate.d.ts +0 -2
  289. package/node_modules/uuid/dist/esm/version.d.ts +0 -2
  290. package/node_modules/uuid/dist/esm-browser/index.d.ts +0 -15
  291. package/node_modules/uuid/dist/esm-browser/max.d.ts +0 -2
  292. package/node_modules/uuid/dist/esm-browser/md5.d.ts +0 -2
  293. package/node_modules/uuid/dist/esm-browser/native.d.ts +0 -4
  294. package/node_modules/uuid/dist/esm-browser/nil.d.ts +0 -2
  295. package/node_modules/uuid/dist/esm-browser/parse.d.ts +0 -2
  296. package/node_modules/uuid/dist/esm-browser/regex.d.ts +0 -2
  297. package/node_modules/uuid/dist/esm-browser/rng.d.ts +0 -1
  298. package/node_modules/uuid/dist/esm-browser/sha1.d.ts +0 -2
  299. package/node_modules/uuid/dist/esm-browser/stringify.d.ts +0 -3
  300. package/node_modules/uuid/dist/esm-browser/types.d.ts +0 -21
  301. package/node_modules/uuid/dist/esm-browser/uuid-bin.d.ts +0 -1
  302. package/node_modules/uuid/dist/esm-browser/v1.d.ts +0 -11
  303. package/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +0 -2
  304. package/node_modules/uuid/dist/esm-browser/v3.d.ts +0 -9
  305. package/node_modules/uuid/dist/esm-browser/v35.d.ts +0 -7
  306. package/node_modules/uuid/dist/esm-browser/v4.d.ts +0 -4
  307. package/node_modules/uuid/dist/esm-browser/v5.d.ts +0 -9
  308. package/node_modules/uuid/dist/esm-browser/v6.d.ts +0 -4
  309. package/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +0 -2
  310. package/node_modules/uuid/dist/esm-browser/v7.d.ts +0 -9
  311. package/node_modules/uuid/dist/esm-browser/validate.d.ts +0 -2
  312. package/node_modules/uuid/dist/esm-browser/version.d.ts +0 -2
  313. /package/node_modules/uuid/dist/{cjs-browser/index.d.ts → index.d.ts} +0 -0
  314. /package/node_modules/uuid/dist/{esm/index.js → index.js} +0 -0
  315. /package/node_modules/uuid/dist/{cjs-browser/max.d.ts → max.d.ts} +0 -0
  316. /package/node_modules/uuid/dist/{esm/max.js → max.js} +0 -0
  317. /package/node_modules/uuid/dist/{cjs-browser/md5.d.ts → md5.d.ts} +0 -0
  318. /package/node_modules/uuid/dist/{esm-browser/md5.js → md5.js} +0 -0
  319. /package/node_modules/uuid/dist/{cjs-browser/native.d.ts → native.d.ts} +0 -0
  320. /package/node_modules/uuid/dist/{esm-browser/native.js → native.js} +0 -0
  321. /package/node_modules/uuid/dist/{cjs-browser/nil.d.ts → nil.d.ts} +0 -0
  322. /package/node_modules/uuid/dist/{esm/nil.js → nil.js} +0 -0
  323. /package/node_modules/uuid/dist/{cjs-browser/parse.d.ts → parse.d.ts} +0 -0
  324. /package/node_modules/uuid/dist/{esm/parse.js → parse.js} +0 -0
  325. /package/node_modules/uuid/dist/{cjs-browser/regex.d.ts → regex.d.ts} +0 -0
  326. /package/node_modules/uuid/dist/{esm/regex.js → regex.js} +0 -0
  327. /package/node_modules/uuid/dist/{cjs-browser/rng.d.ts → rng.d.ts} +0 -0
  328. /package/node_modules/uuid/dist/{esm-browser/rng.js → rng.js} +0 -0
  329. /package/node_modules/uuid/dist/{cjs-browser/sha1.d.ts → sha1.d.ts} +0 -0
  330. /package/node_modules/uuid/dist/{esm-browser/sha1.js → sha1.js} +0 -0
  331. /package/node_modules/uuid/dist/{cjs-browser/stringify.d.ts → stringify.d.ts} +0 -0
  332. /package/node_modules/uuid/dist/{esm/stringify.js → stringify.js} +0 -0
  333. /package/node_modules/uuid/dist/{cjs-browser/types.d.ts → types.d.ts} +0 -0
  334. /package/node_modules/uuid/dist/{esm/types.js → types.js} +0 -0
  335. /package/node_modules/uuid/dist/{cjs-browser/uuid-bin.d.ts → uuid-bin.d.ts} +0 -0
  336. /package/node_modules/uuid/dist/{cjs-browser/v1.d.ts → v1.d.ts} +0 -0
  337. /package/node_modules/uuid/dist/{esm/v1.js → v1.js} +0 -0
  338. /package/node_modules/uuid/dist/{cjs-browser/v1ToV6.d.ts → v1ToV6.d.ts} +0 -0
  339. /package/node_modules/uuid/dist/{esm/v1ToV6.js → v1ToV6.js} +0 -0
  340. /package/node_modules/uuid/dist/{cjs-browser/v3.d.ts → v3.d.ts} +0 -0
  341. /package/node_modules/uuid/dist/{esm/v3.js → v3.js} +0 -0
  342. /package/node_modules/uuid/dist/{cjs-browser/v35.d.ts → v35.d.ts} +0 -0
  343. /package/node_modules/uuid/dist/{esm/v35.js → v35.js} +0 -0
  344. /package/node_modules/uuid/dist/{cjs-browser/v4.d.ts → v4.d.ts} +0 -0
  345. /package/node_modules/uuid/dist/{cjs-browser/v5.d.ts → v5.d.ts} +0 -0
  346. /package/node_modules/uuid/dist/{esm/v5.js → v5.js} +0 -0
  347. /package/node_modules/uuid/dist/{cjs-browser/v6.d.ts → v6.d.ts} +0 -0
  348. /package/node_modules/uuid/dist/{esm/v6.js → v6.js} +0 -0
  349. /package/node_modules/uuid/dist/{cjs-browser/v6ToV1.d.ts → v6ToV1.d.ts} +0 -0
  350. /package/node_modules/uuid/dist/{esm/v6ToV1.js → v6ToV1.js} +0 -0
  351. /package/node_modules/uuid/dist/{cjs-browser/v7.d.ts → v7.d.ts} +0 -0
  352. /package/node_modules/uuid/dist/{esm/v7.js → v7.js} +0 -0
  353. /package/node_modules/uuid/dist/{cjs-browser/validate.d.ts → validate.d.ts} +0 -0
  354. /package/node_modules/uuid/dist/{esm/validate.js → validate.js} +0 -0
  355. /package/node_modules/uuid/dist/{cjs-browser/version.d.ts → version.d.ts} +0 -0
  356. /package/node_modules/uuid/dist/{esm/version.js → version.js} +0 -0
  357. /package/node_modules/uuid/{dist/esm → dist-node}/bin/uuid +0 -0
  358. /package/node_modules/uuid/{dist/esm-browser → dist-node}/index.js +0 -0
  359. /package/node_modules/uuid/{dist/esm-browser → dist-node}/max.js +0 -0
  360. /package/node_modules/uuid/{dist/esm-browser → dist-node}/nil.js +0 -0
  361. /package/node_modules/uuid/{dist/esm-browser → dist-node}/parse.js +0 -0
  362. /package/node_modules/uuid/{dist/esm-browser → dist-node}/regex.js +0 -0
  363. /package/node_modules/uuid/{dist/esm-browser → dist-node}/stringify.js +0 -0
  364. /package/node_modules/uuid/{dist/esm-browser → dist-node}/types.js +0 -0
  365. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v1.js +0 -0
  366. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v1ToV6.js +0 -0
  367. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v3.js +0 -0
  368. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v35.js +0 -0
  369. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v5.js +0 -0
  370. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v6.js +0 -0
  371. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v6ToV1.js +0 -0
  372. /package/node_modules/uuid/{dist/esm-browser → dist-node}/v7.js +0 -0
  373. /package/node_modules/uuid/{dist/esm-browser → dist-node}/validate.js +0 -0
  374. /package/node_modules/uuid/{dist/esm-browser → dist-node}/version.js +0 -0
@@ -1,4 +1,4 @@
1
- /*! Axios v1.9.0 Copyright (c) 2025 Matt Zabriskie and contributors */
1
+ /*! Axios v1.12.2 Copyright (c) 2025 Matt Zabriskie and contributors */
2
2
  'use strict';
3
3
 
4
4
  const FormData$1 = require('form-data');
@@ -77,7 +77,7 @@ const isUndefined = typeOfTest('undefined');
77
77
  */
78
78
  function isBuffer(val) {
79
79
  return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
80
- && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
80
+ && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
81
81
  }
82
82
 
83
83
  /**
@@ -122,7 +122,7 @@ const isString = typeOfTest('string');
122
122
  * @param {*} val The value to test
123
123
  * @returns {boolean} True if value is a Function, otherwise false
124
124
  */
125
- const isFunction = typeOfTest('function');
125
+ const isFunction$1 = typeOfTest('function');
126
126
 
127
127
  /**
128
128
  * Determine if a value is a Number
@@ -166,6 +166,27 @@ const isPlainObject = (val) => {
166
166
  return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
167
167
  };
168
168
 
169
+ /**
170
+ * Determine if a value is an empty object (safely handles Buffers)
171
+ *
172
+ * @param {*} val The value to test
173
+ *
174
+ * @returns {boolean} True if value is an empty object, otherwise false
175
+ */
176
+ const isEmptyObject = (val) => {
177
+ // Early return for non-objects or Buffers to prevent RangeError
178
+ if (!isObject(val) || isBuffer(val)) {
179
+ return false;
180
+ }
181
+
182
+ try {
183
+ return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
184
+ } catch (e) {
185
+ // Fallback for any other objects that might cause RangeError with Object.keys()
186
+ return false;
187
+ }
188
+ };
189
+
169
190
  /**
170
191
  * Determine if a value is a Date
171
192
  *
@@ -209,7 +230,7 @@ const isFileList = kindOfTest('FileList');
209
230
  *
210
231
  * @returns {boolean} True if value is a Stream, otherwise false
211
232
  */
212
- const isStream = (val) => isObject(val) && isFunction(val.pipe);
233
+ const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
213
234
 
214
235
  /**
215
236
  * Determine if a value is a FormData
@@ -222,10 +243,10 @@ const isFormData = (thing) => {
222
243
  let kind;
223
244
  return thing && (
224
245
  (typeof FormData === 'function' && thing instanceof FormData) || (
225
- isFunction(thing.append) && (
246
+ isFunction$1(thing.append) && (
226
247
  (kind = kindOf(thing)) === 'formdata' ||
227
248
  // detect form-data instance
228
- (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
249
+ (kind === 'object' && isFunction$1(thing.toString) && thing.toString() === '[object FormData]')
229
250
  )
230
251
  )
231
252
  )
@@ -288,6 +309,11 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
288
309
  fn.call(null, obj[i], i, obj);
289
310
  }
290
311
  } else {
312
+ // Buffer check
313
+ if (isBuffer(obj)) {
314
+ return;
315
+ }
316
+
291
317
  // Iterate over object keys
292
318
  const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
293
319
  const len = keys.length;
@@ -301,6 +327,10 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
301
327
  }
302
328
 
303
329
  function findKey(obj, key) {
330
+ if (isBuffer(obj)){
331
+ return null;
332
+ }
333
+
304
334
  key = key.toLowerCase();
305
335
  const keys = Object.keys(obj);
306
336
  let i = keys.length;
@@ -341,7 +371,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
341
371
  * @returns {Object} Result of all merge properties
342
372
  */
343
373
  function merge(/* obj1, obj2, obj3, ... */) {
344
- const {caseless} = isContextDefined(this) && this || {};
374
+ const {caseless, skipUndefined} = isContextDefined(this) && this || {};
345
375
  const result = {};
346
376
  const assignValue = (val, key) => {
347
377
  const targetKey = caseless && findKey(result, key) || key;
@@ -351,7 +381,7 @@ function merge(/* obj1, obj2, obj3, ... */) {
351
381
  result[targetKey] = merge({}, val);
352
382
  } else if (isArray(val)) {
353
383
  result[targetKey] = val.slice();
354
- } else {
384
+ } else if (!skipUndefined || !isUndefined(val)) {
355
385
  result[targetKey] = val;
356
386
  }
357
387
  };
@@ -374,7 +404,7 @@ function merge(/* obj1, obj2, obj3, ... */) {
374
404
  */
375
405
  const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
376
406
  forEach(b, (val, key) => {
377
- if (thisArg && isFunction(val)) {
407
+ if (thisArg && isFunction$1(val)) {
378
408
  a[key] = bind(val, thisArg);
379
409
  } else {
380
410
  a[key] = val;
@@ -590,13 +620,13 @@ const reduceDescriptors = (obj, reducer) => {
590
620
  const freezeMethods = (obj) => {
591
621
  reduceDescriptors(obj, (descriptor, name) => {
592
622
  // skip restricted props in strict mode
593
- if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
623
+ if (isFunction$1(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
594
624
  return false;
595
625
  }
596
626
 
597
627
  const value = obj[name];
598
628
 
599
- if (!isFunction(value)) return;
629
+ if (!isFunction$1(value)) return;
600
630
 
601
631
  descriptor.enumerable = false;
602
632
 
@@ -633,6 +663,8 @@ const toFiniteNumber = (value, defaultValue) => {
633
663
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
634
664
  };
635
665
 
666
+
667
+
636
668
  /**
637
669
  * If the thing is a FormData object, return true, otherwise return false.
638
670
  *
@@ -641,7 +673,7 @@ const toFiniteNumber = (value, defaultValue) => {
641
673
  * @returns {boolean}
642
674
  */
643
675
  function isSpecCompliantForm(thing) {
644
- return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
676
+ return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
645
677
  }
646
678
 
647
679
  const toJSONObject = (obj) => {
@@ -654,6 +686,11 @@ const toJSONObject = (obj) => {
654
686
  return;
655
687
  }
656
688
 
689
+ //Buffer check
690
+ if (isBuffer(source)) {
691
+ return source;
692
+ }
693
+
657
694
  if(!('toJSON' in source)) {
658
695
  stack[i] = source;
659
696
  const target = isArray(source) ? [] : {};
@@ -678,7 +715,7 @@ const toJSONObject = (obj) => {
678
715
  const isAsyncFn = kindOfTest('AsyncFunction');
679
716
 
680
717
  const isThenable = (thing) =>
681
- thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
718
+ thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
682
719
 
683
720
  // original code
684
721
  // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
@@ -702,7 +739,7 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
702
739
  })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
703
740
  })(
704
741
  typeof setImmediate === 'function',
705
- isFunction(_global.postMessage)
742
+ isFunction$1(_global.postMessage)
706
743
  );
707
744
 
708
745
  const asap = typeof queueMicrotask !== 'undefined' ?
@@ -711,7 +748,7 @@ const asap = typeof queueMicrotask !== 'undefined' ?
711
748
  // *********************
712
749
 
713
750
 
714
- const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
751
+ const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
715
752
 
716
753
 
717
754
  const utils$1 = {
@@ -725,6 +762,7 @@ const utils$1 = {
725
762
  isBoolean,
726
763
  isObject,
727
764
  isPlainObject,
765
+ isEmptyObject,
728
766
  isReadableStream,
729
767
  isRequest,
730
768
  isResponse,
@@ -734,7 +772,7 @@ const utils$1 = {
734
772
  isFile,
735
773
  isBlob,
736
774
  isRegExp,
737
- isFunction,
775
+ isFunction: isFunction$1,
738
776
  isStream,
739
777
  isURLSearchParams,
740
778
  isTypedArray,
@@ -860,11 +898,18 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
860
898
  return prop !== 'isAxiosError';
861
899
  });
862
900
 
863
- AxiosError.call(axiosError, error.message, code, config, request, response);
901
+ const msg = error && error.message ? error.message : 'Error';
902
+
903
+ // Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
904
+ const errCode = code == null && error ? error.code : code;
905
+ AxiosError.call(axiosError, msg, errCode, config, request, response);
864
906
 
865
- axiosError.cause = error;
907
+ // Chain the original error on the standard field; non-enumerable to avoid JSON noise
908
+ if (error && axiosError.cause == null) {
909
+ Object.defineProperty(axiosError, 'cause', { value: error, configurable: true });
910
+ }
866
911
 
867
- axiosError.name = error.name;
912
+ axiosError.name = (error && error.name) || 'Error';
868
913
 
869
914
  customProps && Object.assign(axiosError, customProps);
870
915
 
@@ -986,6 +1031,10 @@ function toFormData(obj, formData, options) {
986
1031
  return value.toISOString();
987
1032
  }
988
1033
 
1034
+ if (utils$1.isBoolean(value)) {
1035
+ return value.toString();
1036
+ }
1037
+
989
1038
  if (!useBlob && utils$1.isBlob(value)) {
990
1039
  throw new AxiosError('Blob is not supported. Use a Buffer instead.');
991
1040
  }
@@ -1148,9 +1197,7 @@ function encode(val) {
1148
1197
  replace(/%3A/gi, ':').
1149
1198
  replace(/%24/g, '$').
1150
1199
  replace(/%2C/gi, ',').
1151
- replace(/%20/g, '+').
1152
- replace(/%5B/gi, '[').
1153
- replace(/%5D/gi, ']');
1200
+ replace(/%20/g, '+');
1154
1201
  }
1155
1202
 
1156
1203
  /**
@@ -1370,7 +1417,7 @@ const platform = {
1370
1417
  };
1371
1418
 
1372
1419
  function toURLEncodedForm(data, options) {
1373
- return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
1420
+ return toFormData(data, new platform.classes.URLSearchParams(), {
1374
1421
  visitor: function(value, key, path, helpers) {
1375
1422
  if (platform.isNode && utils$1.isBuffer(value)) {
1376
1423
  this.append(key, value.toString('base64'));
@@ -1378,8 +1425,9 @@ function toURLEncodedForm(data, options) {
1378
1425
  }
1379
1426
 
1380
1427
  return helpers.defaultVisitor.apply(this, arguments);
1381
- }
1382
- }, options));
1428
+ },
1429
+ ...options
1430
+ });
1383
1431
  }
1384
1432
 
1385
1433
  /**
@@ -1575,7 +1623,7 @@ const defaults = {
1575
1623
  const strictJSONParsing = !silentJSONParsing && JSONRequested;
1576
1624
 
1577
1625
  try {
1578
- return JSON.parse(data);
1626
+ return JSON.parse(data, this.parseReviver);
1579
1627
  } catch (e) {
1580
1628
  if (strictJSONParsing) {
1581
1629
  if (e.name === 'SyntaxError') {
@@ -2102,7 +2150,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
2102
2150
  return requestedURL;
2103
2151
  }
2104
2152
 
2105
- const VERSION = "1.9.0";
2153
+ const VERSION = "1.12.2";
2106
2154
 
2107
2155
  function parseProtocol(url) {
2108
2156
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -2530,7 +2578,7 @@ function throttle(fn, freq) {
2530
2578
  clearTimeout(timer);
2531
2579
  timer = null;
2532
2580
  }
2533
- fn.apply(null, args);
2581
+ fn(...args);
2534
2582
  };
2535
2583
 
2536
2584
  const throttled = (...args) => {
@@ -2595,6 +2643,80 @@ const progressEventDecorator = (total, throttled) => {
2595
2643
 
2596
2644
  const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
2597
2645
 
2646
+ /**
2647
+ * Estimate decoded byte length of a data:// URL *without* allocating large buffers.
2648
+ * - For base64: compute exact decoded size using length and padding;
2649
+ * handle %XX at the character-count level (no string allocation).
2650
+ * - For non-base64: use UTF-8 byteLength of the encoded body as a safe upper bound.
2651
+ *
2652
+ * @param {string} url
2653
+ * @returns {number}
2654
+ */
2655
+ function estimateDataURLDecodedBytes(url) {
2656
+ if (!url || typeof url !== 'string') return 0;
2657
+ if (!url.startsWith('data:')) return 0;
2658
+
2659
+ const comma = url.indexOf(',');
2660
+ if (comma < 0) return 0;
2661
+
2662
+ const meta = url.slice(5, comma);
2663
+ const body = url.slice(comma + 1);
2664
+ const isBase64 = /;base64/i.test(meta);
2665
+
2666
+ if (isBase64) {
2667
+ let effectiveLen = body.length;
2668
+ const len = body.length; // cache length
2669
+
2670
+ for (let i = 0; i < len; i++) {
2671
+ if (body.charCodeAt(i) === 37 /* '%' */ && i + 2 < len) {
2672
+ const a = body.charCodeAt(i + 1);
2673
+ const b = body.charCodeAt(i + 2);
2674
+ const isHex =
2675
+ ((a >= 48 && a <= 57) || (a >= 65 && a <= 70) || (a >= 97 && a <= 102)) &&
2676
+ ((b >= 48 && b <= 57) || (b >= 65 && b <= 70) || (b >= 97 && b <= 102));
2677
+
2678
+ if (isHex) {
2679
+ effectiveLen -= 2;
2680
+ i += 2;
2681
+ }
2682
+ }
2683
+ }
2684
+
2685
+ let pad = 0;
2686
+ let idx = len - 1;
2687
+
2688
+ const tailIsPct3D = (j) =>
2689
+ j >= 2 &&
2690
+ body.charCodeAt(j - 2) === 37 && // '%'
2691
+ body.charCodeAt(j - 1) === 51 && // '3'
2692
+ (body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100); // 'D' or 'd'
2693
+
2694
+ if (idx >= 0) {
2695
+ if (body.charCodeAt(idx) === 61 /* '=' */) {
2696
+ pad++;
2697
+ idx--;
2698
+ } else if (tailIsPct3D(idx)) {
2699
+ pad++;
2700
+ idx -= 3;
2701
+ }
2702
+ }
2703
+
2704
+ if (pad === 1 && idx >= 0) {
2705
+ if (body.charCodeAt(idx) === 61 /* '=' */) {
2706
+ pad++;
2707
+ } else if (tailIsPct3D(idx)) {
2708
+ pad++;
2709
+ }
2710
+ }
2711
+
2712
+ const groups = Math.floor(effectiveLen / 4);
2713
+ const bytes = groups * 3 - (pad || 0);
2714
+ return bytes > 0 ? bytes : 0;
2715
+ }
2716
+
2717
+ return Buffer.byteLength(body, 'utf8');
2718
+ }
2719
+
2598
2720
  const zlibOptions = {
2599
2721
  flush: zlib__default["default"].constants.Z_SYNC_FLUSH,
2600
2722
  finishFlush: zlib__default["default"].constants.Z_SYNC_FLUSH
@@ -2615,6 +2737,7 @@ const supportedProtocols = platform.protocols.map(protocol => {
2615
2737
  return protocol + ':';
2616
2738
  });
2617
2739
 
2740
+
2618
2741
  const flushOnFinish = (stream, [throttled, flush]) => {
2619
2742
  stream
2620
2743
  .on('end', flush)
@@ -2623,6 +2746,7 @@ const flushOnFinish = (stream, [throttled, flush]) => {
2623
2746
  return throttled;
2624
2747
  };
2625
2748
 
2749
+
2626
2750
  /**
2627
2751
  * If the proxy or config beforeRedirects functions are defined, call them with the options
2628
2752
  * object.
@@ -2802,6 +2926,21 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
2802
2926
  const protocol = parsed.protocol || supportedProtocols[0];
2803
2927
 
2804
2928
  if (protocol === 'data:') {
2929
+ // Apply the same semantics as HTTP: only enforce if a finite, non-negative cap is set.
2930
+ if (config.maxContentLength > -1) {
2931
+ // Use the exact string passed to fromDataURI (config.url); fall back to fullPath if needed.
2932
+ const dataUrl = String(config.url || fullPath || '');
2933
+ const estimated = estimateDataURLDecodedBytes(dataUrl);
2934
+
2935
+ if (estimated > config.maxContentLength) {
2936
+ return reject(new AxiosError(
2937
+ 'maxContentLength size of ' + config.maxContentLength + ' exceeded',
2938
+ AxiosError.ERR_BAD_RESPONSE,
2939
+ config
2940
+ ));
2941
+ }
2942
+ }
2943
+
2805
2944
  let convertedData;
2806
2945
 
2807
2946
  if (method !== 'GET') {
@@ -3404,7 +3543,7 @@ function mergeConfig(config1, config2) {
3404
3543
  headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
3405
3544
  };
3406
3545
 
3407
- utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
3546
+ utils$1.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
3408
3547
  const merge = mergeMap[prop] || mergeDeepProperties;
3409
3548
  const configValue = merge(config1[prop], config2[prop], prop);
3410
3549
  (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
@@ -3416,7 +3555,7 @@ function mergeConfig(config1, config2) {
3416
3555
  const resolveConfig = (config) => {
3417
3556
  const newConfig = mergeConfig({}, config);
3418
3557
 
3419
- let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
3558
+ let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
3420
3559
 
3421
3560
  newConfig.headers = headers = AxiosHeaders$1.from(headers);
3422
3561
 
@@ -3429,17 +3568,21 @@ const resolveConfig = (config) => {
3429
3568
  );
3430
3569
  }
3431
3570
 
3432
- let contentType;
3433
-
3434
3571
  if (utils$1.isFormData(data)) {
3435
3572
  if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
3436
- headers.setContentType(undefined); // Let the browser set it
3437
- } else if ((contentType = headers.getContentType()) !== false) {
3438
- // fix semicolon duplication issue for ReactNative FormData implementation
3439
- const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];
3440
- headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));
3573
+ headers.setContentType(undefined); // browser handles it
3574
+ } else if (utils$1.isFunction(data.getHeaders)) {
3575
+ // Node.js FormData (like form-data package)
3576
+ const formHeaders = data.getHeaders();
3577
+ // Only set safe headers to avoid overwriting security headers
3578
+ const allowedHeaders = ['content-type', 'content-length'];
3579
+ Object.entries(formHeaders).forEach(([key, val]) => {
3580
+ if (allowedHeaders.includes(key.toLowerCase())) {
3581
+ headers.set(key, val);
3582
+ }
3583
+ });
3441
3584
  }
3442
- }
3585
+ }
3443
3586
 
3444
3587
  // Add xsrf header
3445
3588
  // This is only done if running in a standard browser environment.
@@ -3556,15 +3699,18 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
3556
3699
  };
3557
3700
 
3558
3701
  // Handle low level network errors
3559
- request.onerror = function handleError() {
3560
- // Real errors are hidden from us by the browser
3561
- // onerror should only fire if it's a network error
3562
- reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));
3563
-
3564
- // Clean up request
3565
- request = null;
3702
+ request.onerror = function handleError(event) {
3703
+ // Browsers deliver a ProgressEvent in XHR onerror
3704
+ // (message may be empty; when present, surface it)
3705
+ // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
3706
+ const msg = event && event.message ? event.message : 'Network Error';
3707
+ const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
3708
+ // attach the underlying event for consumers who want details
3709
+ err.event = event || null;
3710
+ reject(err);
3711
+ request = null;
3566
3712
  };
3567
-
3713
+
3568
3714
  // Handle timeout
3569
3715
  request.ontimeout = function handleTimeout() {
3570
3716
  let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
@@ -3780,14 +3926,18 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
3780
3926
  })
3781
3927
  };
3782
3928
 
3783
- const isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';
3784
- const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';
3929
+ const DEFAULT_CHUNK_SIZE = 64 * 1024;
3930
+
3931
+ const {isFunction} = utils$1;
3932
+
3933
+ const globalFetchAPI = (({Request, Response}) => ({
3934
+ Request, Response
3935
+ }))(utils$1.global);
3936
+
3937
+ const {
3938
+ ReadableStream: ReadableStream$1, TextEncoder: TextEncoder$1
3939
+ } = utils$1.global;
3785
3940
 
3786
- // used only inside the fetch adapter
3787
- const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
3788
- ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
3789
- async (str) => new Uint8Array(await new Response(str).arrayBuffer())
3790
- );
3791
3941
 
3792
3942
  const test = (fn, ...args) => {
3793
3943
  try {
@@ -3797,211 +3947,268 @@ const test = (fn, ...args) => {
3797
3947
  }
3798
3948
  };
3799
3949
 
3800
- const supportsRequestStream = isReadableStreamSupported && test(() => {
3801
- let duplexAccessed = false;
3950
+ const factory = (env) => {
3951
+ env = utils$1.merge.call({
3952
+ skipUndefined: true
3953
+ }, globalFetchAPI, env);
3802
3954
 
3803
- const hasContentType = new Request(platform.origin, {
3804
- body: new ReadableStream(),
3805
- method: 'POST',
3806
- get duplex() {
3807
- duplexAccessed = true;
3808
- return 'half';
3809
- },
3810
- }).headers.has('Content-Type');
3955
+ const {fetch: envFetch, Request, Response} = env;
3956
+ const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
3957
+ const isRequestSupported = isFunction(Request);
3958
+ const isResponseSupported = isFunction(Response);
3811
3959
 
3812
- return duplexAccessed && !hasContentType;
3813
- });
3960
+ if (!isFetchSupported) {
3961
+ return false;
3962
+ }
3814
3963
 
3815
- const DEFAULT_CHUNK_SIZE = 64 * 1024;
3964
+ const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
3816
3965
 
3817
- const supportsResponseStream = isReadableStreamSupported &&
3818
- test(() => utils$1.isReadableStream(new Response('').body));
3966
+ const encodeText = isFetchSupported && (typeof TextEncoder$1 === 'function' ?
3967
+ ((encoder) => (str) => encoder.encode(str))(new TextEncoder$1()) :
3968
+ async (str) => new Uint8Array(await new Request(str).arrayBuffer())
3969
+ );
3819
3970
 
3971
+ const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
3972
+ let duplexAccessed = false;
3820
3973
 
3821
- const resolvers = {
3822
- stream: supportsResponseStream && ((res) => res.body)
3823
- };
3974
+ const hasContentType = new Request(platform.origin, {
3975
+ body: new ReadableStream$1(),
3976
+ method: 'POST',
3977
+ get duplex() {
3978
+ duplexAccessed = true;
3979
+ return 'half';
3980
+ },
3981
+ }).headers.has('Content-Type');
3824
3982
 
3825
- isFetchSupported && (((res) => {
3826
- ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
3827
- !resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res) => res[type]() :
3828
- (_, config) => {
3829
- throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
3830
- });
3983
+ return duplexAccessed && !hasContentType;
3831
3984
  });
3832
- })(new Response));
3833
3985
 
3834
- const getBodyLength = async (body) => {
3835
- if (body == null) {
3836
- return 0;
3837
- }
3986
+ const supportsResponseStream = isResponseSupported && isReadableStreamSupported &&
3987
+ test(() => utils$1.isReadableStream(new Response('').body));
3838
3988
 
3839
- if(utils$1.isBlob(body)) {
3840
- return body.size;
3841
- }
3989
+ const resolvers = {
3990
+ stream: supportsResponseStream && ((res) => res.body)
3991
+ };
3842
3992
 
3843
- if(utils$1.isSpecCompliantForm(body)) {
3844
- const _request = new Request(platform.origin, {
3845
- method: 'POST',
3846
- body,
3993
+ isFetchSupported && ((() => {
3994
+ ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
3995
+ !resolvers[type] && (resolvers[type] = (res, config) => {
3996
+ let method = res && res[type];
3997
+
3998
+ if (method) {
3999
+ return method.call(res);
4000
+ }
4001
+
4002
+ throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
4003
+ });
3847
4004
  });
3848
- return (await _request.arrayBuffer()).byteLength;
3849
- }
4005
+ })());
3850
4006
 
3851
- if(utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
3852
- return body.byteLength;
3853
- }
4007
+ const getBodyLength = async (body) => {
4008
+ if (body == null) {
4009
+ return 0;
4010
+ }
3854
4011
 
3855
- if(utils$1.isURLSearchParams(body)) {
3856
- body = body + '';
3857
- }
4012
+ if (utils$1.isBlob(body)) {
4013
+ return body.size;
4014
+ }
3858
4015
 
3859
- if(utils$1.isString(body)) {
3860
- return (await encodeText(body)).byteLength;
3861
- }
3862
- };
4016
+ if (utils$1.isSpecCompliantForm(body)) {
4017
+ const _request = new Request(platform.origin, {
4018
+ method: 'POST',
4019
+ body,
4020
+ });
4021
+ return (await _request.arrayBuffer()).byteLength;
4022
+ }
3863
4023
 
3864
- const resolveBodyLength = async (headers, body) => {
3865
- const length = utils$1.toFiniteNumber(headers.getContentLength());
4024
+ if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
4025
+ return body.byteLength;
4026
+ }
3866
4027
 
3867
- return length == null ? getBodyLength(body) : length;
3868
- };
4028
+ if (utils$1.isURLSearchParams(body)) {
4029
+ body = body + '';
4030
+ }
3869
4031
 
3870
- const fetchAdapter = isFetchSupported && (async (config) => {
3871
- let {
3872
- url,
3873
- method,
3874
- data,
3875
- signal,
3876
- cancelToken,
3877
- timeout,
3878
- onDownloadProgress,
3879
- onUploadProgress,
3880
- responseType,
3881
- headers,
3882
- withCredentials = 'same-origin',
3883
- fetchOptions
3884
- } = resolveConfig(config);
3885
-
3886
- responseType = responseType ? (responseType + '').toLowerCase() : 'text';
3887
-
3888
- let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
3889
-
3890
- let request;
3891
-
3892
- const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
4032
+ if (utils$1.isString(body)) {
4033
+ return (await encodeText(body)).byteLength;
4034
+ }
4035
+ };
4036
+
4037
+ const resolveBodyLength = async (headers, body) => {
4038
+ const length = utils$1.toFiniteNumber(headers.getContentLength());
4039
+
4040
+ return length == null ? getBodyLength(body) : length;
4041
+ };
4042
+
4043
+ return async (config) => {
4044
+ let {
4045
+ url,
4046
+ method,
4047
+ data,
4048
+ signal,
4049
+ cancelToken,
4050
+ timeout,
4051
+ onDownloadProgress,
4052
+ onUploadProgress,
4053
+ responseType,
4054
+ headers,
4055
+ withCredentials = 'same-origin',
4056
+ fetchOptions
4057
+ } = resolveConfig(config);
4058
+
4059
+ let _fetch = envFetch || fetch;
4060
+
4061
+ responseType = responseType ? (responseType + '').toLowerCase() : 'text';
4062
+
4063
+ let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
4064
+
4065
+ let request = null;
4066
+
4067
+ const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
3893
4068
  composedSignal.unsubscribe();
3894
- });
4069
+ });
3895
4070
 
3896
- let requestContentLength;
4071
+ let requestContentLength;
3897
4072
 
3898
- try {
3899
- if (
3900
- onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
3901
- (requestContentLength = await resolveBodyLength(headers, data)) !== 0
3902
- ) {
3903
- let _request = new Request(url, {
3904
- method: 'POST',
3905
- body: data,
3906
- duplex: "half"
3907
- });
4073
+ try {
4074
+ if (
4075
+ onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
4076
+ (requestContentLength = await resolveBodyLength(headers, data)) !== 0
4077
+ ) {
4078
+ let _request = new Request(url, {
4079
+ method: 'POST',
4080
+ body: data,
4081
+ duplex: "half"
4082
+ });
3908
4083
 
3909
- let contentTypeHeader;
4084
+ let contentTypeHeader;
3910
4085
 
3911
- if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
3912
- headers.setContentType(contentTypeHeader);
3913
- }
4086
+ if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
4087
+ headers.setContentType(contentTypeHeader);
4088
+ }
3914
4089
 
3915
- if (_request.body) {
3916
- const [onProgress, flush] = progressEventDecorator(
3917
- requestContentLength,
3918
- progressEventReducer(asyncDecorator(onUploadProgress))
3919
- );
4090
+ if (_request.body) {
4091
+ const [onProgress, flush] = progressEventDecorator(
4092
+ requestContentLength,
4093
+ progressEventReducer(asyncDecorator(onUploadProgress))
4094
+ );
3920
4095
 
3921
- data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
4096
+ data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
4097
+ }
3922
4098
  }
3923
- }
3924
4099
 
3925
- if (!utils$1.isString(withCredentials)) {
3926
- withCredentials = withCredentials ? 'include' : 'omit';
3927
- }
4100
+ if (!utils$1.isString(withCredentials)) {
4101
+ withCredentials = withCredentials ? 'include' : 'omit';
4102
+ }
3928
4103
 
3929
- // Cloudflare Workers throws when credentials are defined
3930
- // see https://github.com/cloudflare/workerd/issues/902
3931
- const isCredentialsSupported = "credentials" in Request.prototype;
3932
- request = new Request(url, {
3933
- ...fetchOptions,
3934
- signal: composedSignal,
3935
- method: method.toUpperCase(),
3936
- headers: headers.normalize().toJSON(),
3937
- body: data,
3938
- duplex: "half",
3939
- credentials: isCredentialsSupported ? withCredentials : undefined
3940
- });
4104
+ // Cloudflare Workers throws when credentials are defined
4105
+ // see https://github.com/cloudflare/workerd/issues/902
4106
+ const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
3941
4107
 
3942
- let response = await fetch(request);
4108
+ const resolvedOptions = {
4109
+ ...fetchOptions,
4110
+ signal: composedSignal,
4111
+ method: method.toUpperCase(),
4112
+ headers: headers.normalize().toJSON(),
4113
+ body: data,
4114
+ duplex: "half",
4115
+ credentials: isCredentialsSupported ? withCredentials : undefined
4116
+ };
3943
4117
 
3944
- const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
4118
+ request = isRequestSupported && new Request(url, resolvedOptions);
3945
4119
 
3946
- if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
3947
- const options = {};
4120
+ let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
3948
4121
 
3949
- ['status', 'statusText', 'headers'].forEach(prop => {
3950
- options[prop] = response[prop];
3951
- });
4122
+ const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
3952
4123
 
3953
- const responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
4124
+ if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
4125
+ const options = {};
3954
4126
 
3955
- const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
3956
- responseContentLength,
3957
- progressEventReducer(asyncDecorator(onDownloadProgress), true)
3958
- ) || [];
4127
+ ['status', 'statusText', 'headers'].forEach(prop => {
4128
+ options[prop] = response[prop];
4129
+ });
3959
4130
 
3960
- response = new Response(
3961
- trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
3962
- flush && flush();
3963
- unsubscribe && unsubscribe();
3964
- }),
3965
- options
3966
- );
3967
- }
4131
+ const responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
3968
4132
 
3969
- responseType = responseType || 'text';
4133
+ const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
4134
+ responseContentLength,
4135
+ progressEventReducer(asyncDecorator(onDownloadProgress), true)
4136
+ ) || [];
3970
4137
 
3971
- let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || 'text'](response, config);
4138
+ response = new Response(
4139
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
4140
+ flush && flush();
4141
+ unsubscribe && unsubscribe();
4142
+ }),
4143
+ options
4144
+ );
4145
+ }
3972
4146
 
3973
- !isStreamResponse && unsubscribe && unsubscribe();
4147
+ responseType = responseType || 'text';
3974
4148
 
3975
- return await new Promise((resolve, reject) => {
3976
- settle(resolve, reject, {
3977
- data: responseData,
3978
- headers: AxiosHeaders$1.from(response.headers),
3979
- status: response.status,
3980
- statusText: response.statusText,
3981
- config,
3982
- request
3983
- });
3984
- })
3985
- } catch (err) {
3986
- unsubscribe && unsubscribe();
3987
-
3988
- if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
3989
- throw Object.assign(
3990
- new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
3991
- {
3992
- cause: err.cause || err
3993
- }
3994
- )
4149
+ let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || 'text'](response, config);
4150
+
4151
+ !isStreamResponse && unsubscribe && unsubscribe();
4152
+
4153
+ return await new Promise((resolve, reject) => {
4154
+ settle(resolve, reject, {
4155
+ data: responseData,
4156
+ headers: AxiosHeaders$1.from(response.headers),
4157
+ status: response.status,
4158
+ statusText: response.statusText,
4159
+ config,
4160
+ request
4161
+ });
4162
+ })
4163
+ } catch (err) {
4164
+ unsubscribe && unsubscribe();
4165
+
4166
+ if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
4167
+ throw Object.assign(
4168
+ new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
4169
+ {
4170
+ cause: err.cause || err
4171
+ }
4172
+ )
4173
+ }
4174
+
4175
+ throw AxiosError.from(err, err && err.code, config, request);
3995
4176
  }
4177
+ }
4178
+ };
4179
+
4180
+ const seedCache = new Map();
4181
+
4182
+ const getFetch = (config) => {
4183
+ let env = config ? config.env : {};
4184
+ const {fetch, Request, Response} = env;
4185
+ const seeds = [
4186
+ Request, Response, fetch
4187
+ ];
3996
4188
 
3997
- throw AxiosError.from(err, err && err.code, config, request);
4189
+ let len = seeds.length, i = len,
4190
+ seed, target, map = seedCache;
4191
+
4192
+ while (i--) {
4193
+ seed = seeds[i];
4194
+ target = map.get(seed);
4195
+
4196
+ target === undefined && map.set(seed, target = (i ? new Map() : factory(env)));
4197
+
4198
+ map = target;
3998
4199
  }
3999
- });
4200
+
4201
+ return target;
4202
+ };
4203
+
4204
+ getFetch();
4000
4205
 
4001
4206
  const knownAdapters = {
4002
4207
  http: httpAdapter,
4003
4208
  xhr: xhrAdapter,
4004
- fetch: fetchAdapter
4209
+ fetch: {
4210
+ get: getFetch,
4211
+ }
4005
4212
  };
4006
4213
 
4007
4214
  utils$1.forEach(knownAdapters, (fn, value) => {
@@ -4020,7 +4227,7 @@ const renderReason = (reason) => `- ${reason}`;
4020
4227
  const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
4021
4228
 
4022
4229
  const adapters = {
4023
- getAdapter: (adapters) => {
4230
+ getAdapter: (adapters, config) => {
4024
4231
  adapters = utils$1.isArray(adapters) ? adapters : [adapters];
4025
4232
 
4026
4233
  const {length} = adapters;
@@ -4043,7 +4250,7 @@ const adapters = {
4043
4250
  }
4044
4251
  }
4045
4252
 
4046
- if (adapter) {
4253
+ if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
4047
4254
  break;
4048
4255
  }
4049
4256
 
@@ -4111,7 +4318,7 @@ function dispatchRequest(config) {
4111
4318
  config.headers.setContentType('application/x-www-form-urlencoded', false);
4112
4319
  }
4113
4320
 
4114
- const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
4321
+ const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter, config);
4115
4322
 
4116
4323
  return adapter(config).then(function onAdapterResolution(response) {
4117
4324
  throwIfCancellationRequested(config);
@@ -4382,8 +4589,8 @@ class Axios {
4382
4589
 
4383
4590
  if (!synchronousRequestInterceptors) {
4384
4591
  const chain = [dispatchRequest.bind(this), undefined];
4385
- chain.unshift.apply(chain, requestInterceptorChain);
4386
- chain.push.apply(chain, responseInterceptorChain);
4592
+ chain.unshift(...requestInterceptorChain);
4593
+ chain.push(...responseInterceptorChain);
4387
4594
  len = chain.length;
4388
4595
 
4389
4596
  promise = Promise.resolve(config);
@@ -4399,8 +4606,6 @@ class Axios {
4399
4606
 
4400
4607
  let newConfig = config;
4401
4608
 
4402
- i = 0;
4403
-
4404
4609
  while (i < len) {
4405
4610
  const onFulfilled = requestInterceptorChain[i++];
4406
4611
  const onRejected = requestInterceptorChain[i++];