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
  function bind(fn, thisArg) {
3
3
  return function wrap() {
4
4
  return fn.apply(thisArg, arguments);
@@ -50,7 +50,7 @@ const isUndefined = typeOfTest('undefined');
50
50
  */
51
51
  function isBuffer(val) {
52
52
  return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
53
- && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
53
+ && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
54
54
  }
55
55
 
56
56
  /**
@@ -95,7 +95,7 @@ const isString = typeOfTest('string');
95
95
  * @param {*} val The value to test
96
96
  * @returns {boolean} True if value is a Function, otherwise false
97
97
  */
98
- const isFunction = typeOfTest('function');
98
+ const isFunction$1 = typeOfTest('function');
99
99
 
100
100
  /**
101
101
  * Determine if a value is a Number
@@ -139,6 +139,27 @@ const isPlainObject = (val) => {
139
139
  return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
140
140
  };
141
141
 
142
+ /**
143
+ * Determine if a value is an empty object (safely handles Buffers)
144
+ *
145
+ * @param {*} val The value to test
146
+ *
147
+ * @returns {boolean} True if value is an empty object, otherwise false
148
+ */
149
+ const isEmptyObject = (val) => {
150
+ // Early return for non-objects or Buffers to prevent RangeError
151
+ if (!isObject(val) || isBuffer(val)) {
152
+ return false;
153
+ }
154
+
155
+ try {
156
+ return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
157
+ } catch (e) {
158
+ // Fallback for any other objects that might cause RangeError with Object.keys()
159
+ return false;
160
+ }
161
+ };
162
+
142
163
  /**
143
164
  * Determine if a value is a Date
144
165
  *
@@ -182,7 +203,7 @@ const isFileList = kindOfTest('FileList');
182
203
  *
183
204
  * @returns {boolean} True if value is a Stream, otherwise false
184
205
  */
185
- const isStream = (val) => isObject(val) && isFunction(val.pipe);
206
+ const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
186
207
 
187
208
  /**
188
209
  * Determine if a value is a FormData
@@ -195,10 +216,10 @@ const isFormData = (thing) => {
195
216
  let kind;
196
217
  return thing && (
197
218
  (typeof FormData === 'function' && thing instanceof FormData) || (
198
- isFunction(thing.append) && (
219
+ isFunction$1(thing.append) && (
199
220
  (kind = kindOf(thing)) === 'formdata' ||
200
221
  // detect form-data instance
201
- (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
222
+ (kind === 'object' && isFunction$1(thing.toString) && thing.toString() === '[object FormData]')
202
223
  )
203
224
  )
204
225
  )
@@ -261,6 +282,11 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
261
282
  fn.call(null, obj[i], i, obj);
262
283
  }
263
284
  } else {
285
+ // Buffer check
286
+ if (isBuffer(obj)) {
287
+ return;
288
+ }
289
+
264
290
  // Iterate over object keys
265
291
  const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
266
292
  const len = keys.length;
@@ -274,6 +300,10 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
274
300
  }
275
301
 
276
302
  function findKey(obj, key) {
303
+ if (isBuffer(obj)){
304
+ return null;
305
+ }
306
+
277
307
  key = key.toLowerCase();
278
308
  const keys = Object.keys(obj);
279
309
  let i = keys.length;
@@ -314,7 +344,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
314
344
  * @returns {Object} Result of all merge properties
315
345
  */
316
346
  function merge(/* obj1, obj2, obj3, ... */) {
317
- const {caseless} = isContextDefined(this) && this || {};
347
+ const {caseless, skipUndefined} = isContextDefined(this) && this || {};
318
348
  const result = {};
319
349
  const assignValue = (val, key) => {
320
350
  const targetKey = caseless && findKey(result, key) || key;
@@ -324,7 +354,7 @@ function merge(/* obj1, obj2, obj3, ... */) {
324
354
  result[targetKey] = merge({}, val);
325
355
  } else if (isArray(val)) {
326
356
  result[targetKey] = val.slice();
327
- } else {
357
+ } else if (!skipUndefined || !isUndefined(val)) {
328
358
  result[targetKey] = val;
329
359
  }
330
360
  };
@@ -347,7 +377,7 @@ function merge(/* obj1, obj2, obj3, ... */) {
347
377
  */
348
378
  const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
349
379
  forEach(b, (val, key) => {
350
- if (thisArg && isFunction(val)) {
380
+ if (thisArg && isFunction$1(val)) {
351
381
  a[key] = bind(val, thisArg);
352
382
  } else {
353
383
  a[key] = val;
@@ -563,13 +593,13 @@ const reduceDescriptors = (obj, reducer) => {
563
593
  const freezeMethods = (obj) => {
564
594
  reduceDescriptors(obj, (descriptor, name) => {
565
595
  // skip restricted props in strict mode
566
- if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
596
+ if (isFunction$1(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
567
597
  return false;
568
598
  }
569
599
 
570
600
  const value = obj[name];
571
601
 
572
- if (!isFunction(value)) return;
602
+ if (!isFunction$1(value)) return;
573
603
 
574
604
  descriptor.enumerable = false;
575
605
 
@@ -606,6 +636,8 @@ const toFiniteNumber = (value, defaultValue) => {
606
636
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
607
637
  };
608
638
 
639
+
640
+
609
641
  /**
610
642
  * If the thing is a FormData object, return true, otherwise return false.
611
643
  *
@@ -614,7 +646,7 @@ const toFiniteNumber = (value, defaultValue) => {
614
646
  * @returns {boolean}
615
647
  */
616
648
  function isSpecCompliantForm(thing) {
617
- return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
649
+ return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
618
650
  }
619
651
 
620
652
  const toJSONObject = (obj) => {
@@ -627,6 +659,11 @@ const toJSONObject = (obj) => {
627
659
  return;
628
660
  }
629
661
 
662
+ //Buffer check
663
+ if (isBuffer(source)) {
664
+ return source;
665
+ }
666
+
630
667
  if(!('toJSON' in source)) {
631
668
  stack[i] = source;
632
669
  const target = isArray(source) ? [] : {};
@@ -651,7 +688,7 @@ const toJSONObject = (obj) => {
651
688
  const isAsyncFn = kindOfTest('AsyncFunction');
652
689
 
653
690
  const isThenable = (thing) =>
654
- thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
691
+ thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
655
692
 
656
693
  // original code
657
694
  // https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
@@ -675,7 +712,7 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
675
712
  })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
676
713
  })(
677
714
  typeof setImmediate === 'function',
678
- isFunction(_global.postMessage)
715
+ isFunction$1(_global.postMessage)
679
716
  );
680
717
 
681
718
  const asap = typeof queueMicrotask !== 'undefined' ?
@@ -684,7 +721,7 @@ const asap = typeof queueMicrotask !== 'undefined' ?
684
721
  // *********************
685
722
 
686
723
 
687
- const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
724
+ const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
688
725
 
689
726
 
690
727
  const utils$1 = {
@@ -698,6 +735,7 @@ const utils$1 = {
698
735
  isBoolean,
699
736
  isObject,
700
737
  isPlainObject,
738
+ isEmptyObject,
701
739
  isReadableStream,
702
740
  isRequest,
703
741
  isResponse,
@@ -707,7 +745,7 @@ const utils$1 = {
707
745
  isFile,
708
746
  isBlob,
709
747
  isRegExp,
710
- isFunction,
748
+ isFunction: isFunction$1,
711
749
  isStream,
712
750
  isURLSearchParams,
713
751
  isTypedArray,
@@ -833,11 +871,18 @@ AxiosError$1.from = (error, code, config, request, response, customProps) => {
833
871
  return prop !== 'isAxiosError';
834
872
  });
835
873
 
836
- AxiosError$1.call(axiosError, error.message, code, config, request, response);
874
+ const msg = error && error.message ? error.message : 'Error';
837
875
 
838
- axiosError.cause = error;
876
+ // Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
877
+ const errCode = code == null && error ? error.code : code;
878
+ AxiosError$1.call(axiosError, msg, errCode, config, request, response);
839
879
 
840
- axiosError.name = error.name;
880
+ // Chain the original error on the standard field; non-enumerable to avoid JSON noise
881
+ if (error && axiosError.cause == null) {
882
+ Object.defineProperty(axiosError, 'cause', { value: error, configurable: true });
883
+ }
884
+
885
+ axiosError.name = (error && error.name) || 'Error';
841
886
 
842
887
  customProps && Object.assign(axiosError, customProps);
843
888
 
@@ -962,6 +1007,10 @@ function toFormData$1(obj, formData, options) {
962
1007
  return value.toISOString();
963
1008
  }
964
1009
 
1010
+ if (utils$1.isBoolean(value)) {
1011
+ return value.toString();
1012
+ }
1013
+
965
1014
  if (!useBlob && utils$1.isBlob(value)) {
966
1015
  throw new AxiosError$1('Blob is not supported. Use a Buffer instead.');
967
1016
  }
@@ -1124,9 +1173,7 @@ function encode(val) {
1124
1173
  replace(/%3A/gi, ':').
1125
1174
  replace(/%24/g, '$').
1126
1175
  replace(/%2C/gi, ',').
1127
- replace(/%20/g, '+').
1128
- replace(/%5B/gi, '[').
1129
- replace(/%5D/gi, ']');
1176
+ replace(/%20/g, '+');
1130
1177
  }
1131
1178
 
1132
1179
  /**
@@ -1325,7 +1372,7 @@ const platform = {
1325
1372
  };
1326
1373
 
1327
1374
  function toURLEncodedForm(data, options) {
1328
- return toFormData$1(data, new platform.classes.URLSearchParams(), Object.assign({
1375
+ return toFormData$1(data, new platform.classes.URLSearchParams(), {
1329
1376
  visitor: function(value, key, path, helpers) {
1330
1377
  if (platform.isNode && utils$1.isBuffer(value)) {
1331
1378
  this.append(key, value.toString('base64'));
@@ -1333,8 +1380,9 @@ function toURLEncodedForm(data, options) {
1333
1380
  }
1334
1381
 
1335
1382
  return helpers.defaultVisitor.apply(this, arguments);
1336
- }
1337
- }, options));
1383
+ },
1384
+ ...options
1385
+ });
1338
1386
  }
1339
1387
 
1340
1388
  /**
@@ -1530,7 +1578,7 @@ const defaults = {
1530
1578
  const strictJSONParsing = !silentJSONParsing && JSONRequested;
1531
1579
 
1532
1580
  try {
1533
- return JSON.parse(data);
1581
+ return JSON.parse(data, this.parseReviver);
1534
1582
  } catch (e) {
1535
1583
  if (strictJSONParsing) {
1536
1584
  if (e.name === 'SyntaxError') {
@@ -2087,7 +2135,7 @@ function throttle(fn, freq) {
2087
2135
  clearTimeout(timer);
2088
2136
  timer = null;
2089
2137
  }
2090
- fn.apply(null, args);
2138
+ fn(...args);
2091
2139
  };
2092
2140
 
2093
2141
  const throttled = (...args) => {
@@ -2343,7 +2391,7 @@ function mergeConfig$1(config1, config2) {
2343
2391
  headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)
2344
2392
  };
2345
2393
 
2346
- utils$1.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
2394
+ utils$1.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
2347
2395
  const merge = mergeMap[prop] || mergeDeepProperties;
2348
2396
  const configValue = merge(config1[prop], config2[prop], prop);
2349
2397
  (utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
@@ -2355,7 +2403,7 @@ function mergeConfig$1(config1, config2) {
2355
2403
  const resolveConfig = (config) => {
2356
2404
  const newConfig = mergeConfig$1({}, config);
2357
2405
 
2358
- let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
2406
+ let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
2359
2407
 
2360
2408
  newConfig.headers = headers = AxiosHeaders$2.from(headers);
2361
2409
 
@@ -2368,17 +2416,21 @@ const resolveConfig = (config) => {
2368
2416
  );
2369
2417
  }
2370
2418
 
2371
- let contentType;
2372
-
2373
2419
  if (utils$1.isFormData(data)) {
2374
2420
  if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
2375
- headers.setContentType(undefined); // Let the browser set it
2376
- } else if ((contentType = headers.getContentType()) !== false) {
2377
- // fix semicolon duplication issue for ReactNative FormData implementation
2378
- const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];
2379
- headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));
2421
+ headers.setContentType(undefined); // browser handles it
2422
+ } else if (utils$1.isFunction(data.getHeaders)) {
2423
+ // Node.js FormData (like form-data package)
2424
+ const formHeaders = data.getHeaders();
2425
+ // Only set safe headers to avoid overwriting security headers
2426
+ const allowedHeaders = ['content-type', 'content-length'];
2427
+ Object.entries(formHeaders).forEach(([key, val]) => {
2428
+ if (allowedHeaders.includes(key.toLowerCase())) {
2429
+ headers.set(key, val);
2430
+ }
2431
+ });
2380
2432
  }
2381
- }
2433
+ }
2382
2434
 
2383
2435
  // Add xsrf header
2384
2436
  // This is only done if running in a standard browser environment.
@@ -2495,15 +2547,18 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
2495
2547
  };
2496
2548
 
2497
2549
  // Handle low level network errors
2498
- request.onerror = function handleError() {
2499
- // Real errors are hidden from us by the browser
2500
- // onerror should only fire if it's a network error
2501
- reject(new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request));
2502
-
2503
- // Clean up request
2504
- request = null;
2550
+ request.onerror = function handleError(event) {
2551
+ // Browsers deliver a ProgressEvent in XHR onerror
2552
+ // (message may be empty; when present, surface it)
2553
+ // See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
2554
+ const msg = event && event.message ? event.message : 'Network Error';
2555
+ const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config, request);
2556
+ // attach the underlying event for consumers who want details
2557
+ err.event = event || null;
2558
+ reject(err);
2559
+ request = null;
2505
2560
  };
2506
-
2561
+
2507
2562
  // Handle timeout
2508
2563
  request.ontimeout = function handleTimeout() {
2509
2564
  let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
@@ -2719,14 +2774,18 @@ const trackStream = (stream, chunkSize, onProgress, onFinish) => {
2719
2774
  })
2720
2775
  };
2721
2776
 
2722
- const isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';
2723
- const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';
2777
+ const DEFAULT_CHUNK_SIZE = 64 * 1024;
2778
+
2779
+ const {isFunction} = utils$1;
2780
+
2781
+ const globalFetchAPI = (({Request, Response}) => ({
2782
+ Request, Response
2783
+ }))(utils$1.global);
2784
+
2785
+ const {
2786
+ ReadableStream: ReadableStream$1, TextEncoder
2787
+ } = utils$1.global;
2724
2788
 
2725
- // used only inside the fetch adapter
2726
- const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
2727
- ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
2728
- async (str) => new Uint8Array(await new Response(str).arrayBuffer())
2729
- );
2730
2789
 
2731
2790
  const test = (fn, ...args) => {
2732
2791
  try {
@@ -2736,211 +2795,268 @@ const test = (fn, ...args) => {
2736
2795
  }
2737
2796
  };
2738
2797
 
2739
- const supportsRequestStream = isReadableStreamSupported && test(() => {
2740
- let duplexAccessed = false;
2798
+ const factory = (env) => {
2799
+ env = utils$1.merge.call({
2800
+ skipUndefined: true
2801
+ }, globalFetchAPI, env);
2741
2802
 
2742
- const hasContentType = new Request(platform.origin, {
2743
- body: new ReadableStream(),
2744
- method: 'POST',
2745
- get duplex() {
2746
- duplexAccessed = true;
2747
- return 'half';
2748
- },
2749
- }).headers.has('Content-Type');
2803
+ const {fetch: envFetch, Request, Response} = env;
2804
+ const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
2805
+ const isRequestSupported = isFunction(Request);
2806
+ const isResponseSupported = isFunction(Response);
2750
2807
 
2751
- return duplexAccessed && !hasContentType;
2752
- });
2808
+ if (!isFetchSupported) {
2809
+ return false;
2810
+ }
2753
2811
 
2754
- const DEFAULT_CHUNK_SIZE = 64 * 1024;
2812
+ const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
2755
2813
 
2756
- const supportsResponseStream = isReadableStreamSupported &&
2757
- test(() => utils$1.isReadableStream(new Response('').body));
2814
+ const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
2815
+ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
2816
+ async (str) => new Uint8Array(await new Request(str).arrayBuffer())
2817
+ );
2758
2818
 
2819
+ const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
2820
+ let duplexAccessed = false;
2759
2821
 
2760
- const resolvers = {
2761
- stream: supportsResponseStream && ((res) => res.body)
2762
- };
2822
+ const hasContentType = new Request(platform.origin, {
2823
+ body: new ReadableStream$1(),
2824
+ method: 'POST',
2825
+ get duplex() {
2826
+ duplexAccessed = true;
2827
+ return 'half';
2828
+ },
2829
+ }).headers.has('Content-Type');
2763
2830
 
2764
- isFetchSupported && (((res) => {
2765
- ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
2766
- !resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res) => res[type]() :
2767
- (_, config) => {
2768
- throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
2769
- });
2831
+ return duplexAccessed && !hasContentType;
2770
2832
  });
2771
- })(new Response));
2772
2833
 
2773
- const getBodyLength = async (body) => {
2774
- if (body == null) {
2775
- return 0;
2776
- }
2834
+ const supportsResponseStream = isResponseSupported && isReadableStreamSupported &&
2835
+ test(() => utils$1.isReadableStream(new Response('').body));
2777
2836
 
2778
- if(utils$1.isBlob(body)) {
2779
- return body.size;
2780
- }
2837
+ const resolvers = {
2838
+ stream: supportsResponseStream && ((res) => res.body)
2839
+ };
2781
2840
 
2782
- if(utils$1.isSpecCompliantForm(body)) {
2783
- const _request = new Request(platform.origin, {
2784
- method: 'POST',
2785
- body,
2841
+ isFetchSupported && ((() => {
2842
+ ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
2843
+ !resolvers[type] && (resolvers[type] = (res, config) => {
2844
+ let method = res && res[type];
2845
+
2846
+ if (method) {
2847
+ return method.call(res);
2848
+ }
2849
+
2850
+ throw new AxiosError$1(`Response type '${type}' is not supported`, AxiosError$1.ERR_NOT_SUPPORT, config);
2851
+ });
2786
2852
  });
2787
- return (await _request.arrayBuffer()).byteLength;
2788
- }
2853
+ })());
2789
2854
 
2790
- if(utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
2791
- return body.byteLength;
2792
- }
2855
+ const getBodyLength = async (body) => {
2856
+ if (body == null) {
2857
+ return 0;
2858
+ }
2793
2859
 
2794
- if(utils$1.isURLSearchParams(body)) {
2795
- body = body + '';
2796
- }
2860
+ if (utils$1.isBlob(body)) {
2861
+ return body.size;
2862
+ }
2797
2863
 
2798
- if(utils$1.isString(body)) {
2799
- return (await encodeText(body)).byteLength;
2800
- }
2801
- };
2864
+ if (utils$1.isSpecCompliantForm(body)) {
2865
+ const _request = new Request(platform.origin, {
2866
+ method: 'POST',
2867
+ body,
2868
+ });
2869
+ return (await _request.arrayBuffer()).byteLength;
2870
+ }
2802
2871
 
2803
- const resolveBodyLength = async (headers, body) => {
2804
- const length = utils$1.toFiniteNumber(headers.getContentLength());
2872
+ if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
2873
+ return body.byteLength;
2874
+ }
2805
2875
 
2806
- return length == null ? getBodyLength(body) : length;
2807
- };
2876
+ if (utils$1.isURLSearchParams(body)) {
2877
+ body = body + '';
2878
+ }
2879
+
2880
+ if (utils$1.isString(body)) {
2881
+ return (await encodeText(body)).byteLength;
2882
+ }
2883
+ };
2884
+
2885
+ const resolveBodyLength = async (headers, body) => {
2886
+ const length = utils$1.toFiniteNumber(headers.getContentLength());
2887
+
2888
+ return length == null ? getBodyLength(body) : length;
2889
+ };
2808
2890
 
2809
- const fetchAdapter = isFetchSupported && (async (config) => {
2810
- let {
2811
- url,
2812
- method,
2813
- data,
2814
- signal,
2815
- cancelToken,
2816
- timeout,
2817
- onDownloadProgress,
2818
- onUploadProgress,
2819
- responseType,
2820
- headers,
2821
- withCredentials = 'same-origin',
2822
- fetchOptions
2823
- } = resolveConfig(config);
2824
-
2825
- responseType = responseType ? (responseType + '').toLowerCase() : 'text';
2826
-
2827
- let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
2828
-
2829
- let request;
2830
-
2831
- const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
2891
+ return async (config) => {
2892
+ let {
2893
+ url,
2894
+ method,
2895
+ data,
2896
+ signal,
2897
+ cancelToken,
2898
+ timeout,
2899
+ onDownloadProgress,
2900
+ onUploadProgress,
2901
+ responseType,
2902
+ headers,
2903
+ withCredentials = 'same-origin',
2904
+ fetchOptions
2905
+ } = resolveConfig(config);
2906
+
2907
+ let _fetch = envFetch || fetch;
2908
+
2909
+ responseType = responseType ? (responseType + '').toLowerCase() : 'text';
2910
+
2911
+ let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
2912
+
2913
+ let request = null;
2914
+
2915
+ const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
2832
2916
  composedSignal.unsubscribe();
2833
- });
2917
+ });
2834
2918
 
2835
- let requestContentLength;
2919
+ let requestContentLength;
2836
2920
 
2837
- try {
2838
- if (
2839
- onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
2840
- (requestContentLength = await resolveBodyLength(headers, data)) !== 0
2841
- ) {
2842
- let _request = new Request(url, {
2843
- method: 'POST',
2844
- body: data,
2845
- duplex: "half"
2846
- });
2921
+ try {
2922
+ if (
2923
+ onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
2924
+ (requestContentLength = await resolveBodyLength(headers, data)) !== 0
2925
+ ) {
2926
+ let _request = new Request(url, {
2927
+ method: 'POST',
2928
+ body: data,
2929
+ duplex: "half"
2930
+ });
2847
2931
 
2848
- let contentTypeHeader;
2932
+ let contentTypeHeader;
2849
2933
 
2850
- if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
2851
- headers.setContentType(contentTypeHeader);
2852
- }
2934
+ if (utils$1.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
2935
+ headers.setContentType(contentTypeHeader);
2936
+ }
2853
2937
 
2854
- if (_request.body) {
2855
- const [onProgress, flush] = progressEventDecorator(
2856
- requestContentLength,
2857
- progressEventReducer(asyncDecorator(onUploadProgress))
2858
- );
2938
+ if (_request.body) {
2939
+ const [onProgress, flush] = progressEventDecorator(
2940
+ requestContentLength,
2941
+ progressEventReducer(asyncDecorator(onUploadProgress))
2942
+ );
2859
2943
 
2860
- data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
2944
+ data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
2945
+ }
2861
2946
  }
2862
- }
2863
2947
 
2864
- if (!utils$1.isString(withCredentials)) {
2865
- withCredentials = withCredentials ? 'include' : 'omit';
2866
- }
2948
+ if (!utils$1.isString(withCredentials)) {
2949
+ withCredentials = withCredentials ? 'include' : 'omit';
2950
+ }
2867
2951
 
2868
- // Cloudflare Workers throws when credentials are defined
2869
- // see https://github.com/cloudflare/workerd/issues/902
2870
- const isCredentialsSupported = "credentials" in Request.prototype;
2871
- request = new Request(url, {
2872
- ...fetchOptions,
2873
- signal: composedSignal,
2874
- method: method.toUpperCase(),
2875
- headers: headers.normalize().toJSON(),
2876
- body: data,
2877
- duplex: "half",
2878
- credentials: isCredentialsSupported ? withCredentials : undefined
2879
- });
2952
+ // Cloudflare Workers throws when credentials are defined
2953
+ // see https://github.com/cloudflare/workerd/issues/902
2954
+ const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
2880
2955
 
2881
- let response = await fetch(request);
2956
+ const resolvedOptions = {
2957
+ ...fetchOptions,
2958
+ signal: composedSignal,
2959
+ method: method.toUpperCase(),
2960
+ headers: headers.normalize().toJSON(),
2961
+ body: data,
2962
+ duplex: "half",
2963
+ credentials: isCredentialsSupported ? withCredentials : undefined
2964
+ };
2882
2965
 
2883
- const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
2966
+ request = isRequestSupported && new Request(url, resolvedOptions);
2884
2967
 
2885
- if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
2886
- const options = {};
2968
+ let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
2887
2969
 
2888
- ['status', 'statusText', 'headers'].forEach(prop => {
2889
- options[prop] = response[prop];
2890
- });
2970
+ const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
2891
2971
 
2892
- const responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
2972
+ if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
2973
+ const options = {};
2893
2974
 
2894
- const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
2895
- responseContentLength,
2896
- progressEventReducer(asyncDecorator(onDownloadProgress), true)
2897
- ) || [];
2975
+ ['status', 'statusText', 'headers'].forEach(prop => {
2976
+ options[prop] = response[prop];
2977
+ });
2898
2978
 
2899
- response = new Response(
2900
- trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
2901
- flush && flush();
2902
- unsubscribe && unsubscribe();
2903
- }),
2904
- options
2905
- );
2906
- }
2979
+ const responseContentLength = utils$1.toFiniteNumber(response.headers.get('content-length'));
2907
2980
 
2908
- responseType = responseType || 'text';
2981
+ const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
2982
+ responseContentLength,
2983
+ progressEventReducer(asyncDecorator(onDownloadProgress), true)
2984
+ ) || [];
2909
2985
 
2910
- let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || 'text'](response, config);
2986
+ response = new Response(
2987
+ trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
2988
+ flush && flush();
2989
+ unsubscribe && unsubscribe();
2990
+ }),
2991
+ options
2992
+ );
2993
+ }
2911
2994
 
2912
- !isStreamResponse && unsubscribe && unsubscribe();
2995
+ responseType = responseType || 'text';
2913
2996
 
2914
- return await new Promise((resolve, reject) => {
2915
- settle(resolve, reject, {
2916
- data: responseData,
2917
- headers: AxiosHeaders$2.from(response.headers),
2918
- status: response.status,
2919
- statusText: response.statusText,
2920
- config,
2921
- request
2922
- });
2923
- })
2924
- } catch (err) {
2925
- unsubscribe && unsubscribe();
2926
-
2927
- if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
2928
- throw Object.assign(
2929
- new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request),
2930
- {
2931
- cause: err.cause || err
2932
- }
2933
- )
2997
+ let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || 'text'](response, config);
2998
+
2999
+ !isStreamResponse && unsubscribe && unsubscribe();
3000
+
3001
+ return await new Promise((resolve, reject) => {
3002
+ settle(resolve, reject, {
3003
+ data: responseData,
3004
+ headers: AxiosHeaders$2.from(response.headers),
3005
+ status: response.status,
3006
+ statusText: response.statusText,
3007
+ config,
3008
+ request
3009
+ });
3010
+ })
3011
+ } catch (err) {
3012
+ unsubscribe && unsubscribe();
3013
+
3014
+ if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
3015
+ throw Object.assign(
3016
+ new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request),
3017
+ {
3018
+ cause: err.cause || err
3019
+ }
3020
+ )
3021
+ }
3022
+
3023
+ throw AxiosError$1.from(err, err && err.code, config, request);
2934
3024
  }
3025
+ }
3026
+ };
3027
+
3028
+ const seedCache = new Map();
3029
+
3030
+ const getFetch = (config) => {
3031
+ let env = config ? config.env : {};
3032
+ const {fetch, Request, Response} = env;
3033
+ const seeds = [
3034
+ Request, Response, fetch
3035
+ ];
3036
+
3037
+ let len = seeds.length, i = len,
3038
+ seed, target, map = seedCache;
2935
3039
 
2936
- throw AxiosError$1.from(err, err && err.code, config, request);
3040
+ while (i--) {
3041
+ seed = seeds[i];
3042
+ target = map.get(seed);
3043
+
3044
+ target === undefined && map.set(seed, target = (i ? new Map() : factory(env)));
3045
+
3046
+ map = target;
2937
3047
  }
2938
- });
3048
+
3049
+ return target;
3050
+ };
3051
+
3052
+ getFetch();
2939
3053
 
2940
3054
  const knownAdapters = {
2941
3055
  http: httpAdapter,
2942
3056
  xhr: xhrAdapter,
2943
- fetch: fetchAdapter
3057
+ fetch: {
3058
+ get: getFetch,
3059
+ }
2944
3060
  };
2945
3061
 
2946
3062
  utils$1.forEach(knownAdapters, (fn, value) => {
@@ -2959,7 +3075,7 @@ const renderReason = (reason) => `- ${reason}`;
2959
3075
  const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
2960
3076
 
2961
3077
  const adapters = {
2962
- getAdapter: (adapters) => {
3078
+ getAdapter: (adapters, config) => {
2963
3079
  adapters = utils$1.isArray(adapters) ? adapters : [adapters];
2964
3080
 
2965
3081
  const {length} = adapters;
@@ -2982,7 +3098,7 @@ const adapters = {
2982
3098
  }
2983
3099
  }
2984
3100
 
2985
- if (adapter) {
3101
+ if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
2986
3102
  break;
2987
3103
  }
2988
3104
 
@@ -3050,7 +3166,7 @@ function dispatchRequest(config) {
3050
3166
  config.headers.setContentType('application/x-www-form-urlencoded', false);
3051
3167
  }
3052
3168
 
3053
- const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
3169
+ const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter, config);
3054
3170
 
3055
3171
  return adapter(config).then(function onAdapterResolution(response) {
3056
3172
  throwIfCancellationRequested(config);
@@ -3084,7 +3200,7 @@ function dispatchRequest(config) {
3084
3200
  });
3085
3201
  }
3086
3202
 
3087
- const VERSION$1 = "1.9.0";
3203
+ const VERSION$1 = "1.12.2";
3088
3204
 
3089
3205
  const validators$1 = {};
3090
3206
 
@@ -3323,8 +3439,8 @@ class Axios$1 {
3323
3439
 
3324
3440
  if (!synchronousRequestInterceptors) {
3325
3441
  const chain = [dispatchRequest.bind(this), undefined];
3326
- chain.unshift.apply(chain, requestInterceptorChain);
3327
- chain.push.apply(chain, responseInterceptorChain);
3442
+ chain.unshift(...requestInterceptorChain);
3443
+ chain.push(...responseInterceptorChain);
3328
3444
  len = chain.length;
3329
3445
 
3330
3446
  promise = Promise.resolve(config);
@@ -3340,8 +3456,6 @@ class Axios$1 {
3340
3456
 
3341
3457
  let newConfig = config;
3342
3458
 
3343
- i = 0;
3344
-
3345
3459
  while (i < len) {
3346
3460
  const onFulfilled = requestInterceptorChain[i++];
3347
3461
  const onRejected = requestInterceptorChain[i++];