appium-mac2-driver 4.5.0 → 4.5.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 (295) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/build/lib/session-claim-handler.d.ts.map +1 -1
  3. package/build/lib/session-claim-handler.js +1 -2
  4. package/build/lib/session-claim-handler.js.map +1 -1
  5. package/build/lib/wda-mac.d.ts +0 -1
  6. package/build/lib/wda-mac.d.ts.map +1 -1
  7. package/build/lib/wda-mac.js +1 -1
  8. package/lib/session-claim-handler.ts +1 -2
  9. package/lib/wda-mac.ts +1 -2
  10. package/node_modules/@appium/support/build/lib/npm.d.ts.map +1 -1
  11. package/node_modules/@appium/support/build/lib/npm.js +2 -1
  12. package/node_modules/@appium/support/build/lib/npm.js.map +1 -1
  13. package/node_modules/@appium/support/build/lib/util.d.ts.map +1 -1
  14. package/node_modules/@appium/support/build/lib/util.js +13 -1
  15. package/node_modules/@appium/support/build/lib/util.js.map +1 -1
  16. package/node_modules/@appium/support/build/lib/zip.d.ts +2 -1
  17. package/node_modules/@appium/support/build/lib/zip.d.ts.map +1 -1
  18. package/node_modules/@appium/support/build/lib/zip.js +193 -64
  19. package/node_modules/@appium/support/build/lib/zip.js.map +1 -1
  20. package/node_modules/@appium/support/lib/npm.ts +2 -1
  21. package/node_modules/@appium/support/lib/util.ts +13 -1
  22. package/node_modules/@appium/support/lib/zip.ts +231 -71
  23. package/node_modules/@appium/support/node_modules/axios/CHANGELOG.md +1934 -0
  24. package/node_modules/@appium/support/node_modules/axios/LICENSE +7 -0
  25. package/node_modules/@appium/support/node_modules/axios/MIGRATION_GUIDE.md +877 -0
  26. package/node_modules/@appium/support/node_modules/axios/README.md +2851 -0
  27. package/node_modules/@appium/support/node_modules/axios/dist/axios.js +5807 -0
  28. package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js +5 -0
  29. package/node_modules/@appium/support/node_modules/axios/dist/axios.min.js.map +1 -0
  30. package/node_modules/@appium/support/node_modules/axios/dist/browser/axios.cjs +5829 -0
  31. package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.js +5850 -0
  32. package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js +3 -0
  33. package/node_modules/@appium/support/node_modules/axios/dist/esm/axios.min.js.map +1 -0
  34. package/node_modules/@appium/support/node_modules/axios/dist/node/axios.cjs +6808 -0
  35. package/node_modules/@appium/support/node_modules/axios/index.d.cts +766 -0
  36. package/node_modules/@appium/support/node_modules/axios/index.d.ts +787 -0
  37. package/node_modules/@appium/support/node_modules/axios/index.js +45 -0
  38. package/node_modules/@appium/support/node_modules/axios/lib/adapters/README.md +36 -0
  39. package/node_modules/@appium/support/node_modules/axios/lib/adapters/adapters.js +132 -0
  40. package/node_modules/@appium/support/node_modules/axios/lib/adapters/fetch.js +696 -0
  41. package/node_modules/@appium/support/node_modules/axios/lib/adapters/http.js +1490 -0
  42. package/node_modules/@appium/support/node_modules/axios/lib/adapters/xhr.js +277 -0
  43. package/node_modules/@appium/support/node_modules/axios/lib/axios.js +89 -0
  44. package/node_modules/@appium/support/node_modules/axios/lib/cancel/CancelToken.js +135 -0
  45. package/node_modules/@appium/support/node_modules/axios/lib/cancel/CanceledError.js +22 -0
  46. package/node_modules/@appium/support/node_modules/axios/lib/cancel/isCancel.js +5 -0
  47. package/node_modules/@appium/support/node_modules/axios/lib/core/Axios.js +306 -0
  48. package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosError.js +219 -0
  49. package/node_modules/@appium/support/node_modules/axios/lib/core/AxiosHeaders.js +474 -0
  50. package/node_modules/@appium/support/node_modules/axios/lib/core/InterceptorManager.js +171 -0
  51. package/node_modules/@appium/support/node_modules/axios/lib/core/README.md +8 -0
  52. package/node_modules/@appium/support/node_modules/axios/lib/core/buildFullPath.js +76 -0
  53. package/node_modules/@appium/support/node_modules/axios/lib/core/dispatchRequest.js +95 -0
  54. package/node_modules/@appium/support/node_modules/axios/lib/core/mergeConfig.js +174 -0
  55. package/node_modules/@appium/support/node_modules/axios/lib/core/methodList.js +17 -0
  56. package/node_modules/@appium/support/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
  57. package/node_modules/@appium/support/node_modules/axios/lib/core/settle.js +27 -0
  58. package/node_modules/@appium/support/node_modules/axios/lib/core/transformData.js +28 -0
  59. package/node_modules/@appium/support/node_modules/axios/lib/defaults/index.js +178 -0
  60. package/node_modules/@appium/support/node_modules/axios/lib/defaults/transitional.js +10 -0
  61. package/node_modules/@appium/support/node_modules/axios/lib/env/README.md +3 -0
  62. package/node_modules/@appium/support/node_modules/axios/lib/env/classes/FormData.js +2 -0
  63. package/node_modules/@appium/support/node_modules/axios/lib/env/data.js +1 -0
  64. package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosTransformStream.js +156 -0
  65. package/node_modules/@appium/support/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +59 -0
  66. package/node_modules/@appium/support/node_modules/axios/lib/helpers/Http2Sessions.js +121 -0
  67. package/node_modules/@appium/support/node_modules/axios/lib/helpers/HttpStatusCode.js +88 -0
  68. package/node_modules/@appium/support/node_modules/axios/lib/helpers/README.md +7 -0
  69. package/node_modules/@appium/support/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +29 -0
  70. package/node_modules/@appium/support/node_modules/axios/lib/helpers/bind.js +14 -0
  71. package/node_modules/@appium/support/node_modules/axios/lib/helpers/buildURL.js +69 -0
  72. package/node_modules/@appium/support/node_modules/axios/lib/helpers/callbackify.js +18 -0
  73. package/node_modules/@appium/support/node_modules/axios/lib/helpers/combineURLs.js +23 -0
  74. package/node_modules/@appium/support/node_modules/axios/lib/helpers/composeSignals.js +68 -0
  75. package/node_modules/@appium/support/node_modules/axios/lib/helpers/cookies.js +64 -0
  76. package/node_modules/@appium/support/node_modules/axios/lib/helpers/deprecatedMethod.js +31 -0
  77. package/node_modules/@appium/support/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +166 -0
  78. package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToJSON.js +125 -0
  79. package/node_modules/@appium/support/node_modules/axios/lib/helpers/formDataToStream.js +119 -0
  80. package/node_modules/@appium/support/node_modules/axios/lib/helpers/fromDataURI.js +69 -0
  81. package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAbsoluteURL.js +19 -0
  82. package/node_modules/@appium/support/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
  83. package/node_modules/@appium/support/node_modules/axios/lib/helpers/isURLSameOrigin.js +16 -0
  84. package/node_modules/@appium/support/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
  85. package/node_modules/@appium/support/node_modules/axios/lib/helpers/null.js +2 -0
  86. package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseHeaders.js +71 -0
  87. package/node_modules/@appium/support/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
  88. package/node_modules/@appium/support/node_modules/axios/lib/helpers/progressEventReducer.js +54 -0
  89. package/node_modules/@appium/support/node_modules/axios/lib/helpers/readBlob.js +15 -0
  90. package/node_modules/@appium/support/node_modules/axios/lib/helpers/resolveConfig.js +107 -0
  91. package/node_modules/@appium/support/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
  92. package/node_modules/@appium/support/node_modules/axios/lib/helpers/shouldBypassProxy.js +505 -0
  93. package/node_modules/@appium/support/node_modules/axios/lib/helpers/speedometer.js +55 -0
  94. package/node_modules/@appium/support/node_modules/axios/lib/helpers/spread.js +28 -0
  95. package/node_modules/@appium/support/node_modules/axios/lib/helpers/throttle.js +45 -0
  96. package/node_modules/@appium/support/node_modules/axios/lib/helpers/toFormData.js +279 -0
  97. package/node_modules/@appium/support/node_modules/axios/lib/helpers/toURLEncodedForm.js +19 -0
  98. package/node_modules/@appium/support/node_modules/axios/lib/helpers/trackStream.js +89 -0
  99. package/node_modules/@appium/support/node_modules/axios/lib/helpers/validator.js +112 -0
  100. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
  101. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/FormData.js +3 -0
  102. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +4 -0
  103. package/node_modules/@appium/support/node_modules/axios/lib/platform/browser/index.js +13 -0
  104. package/node_modules/@appium/support/node_modules/axios/lib/platform/common/utils.js +52 -0
  105. package/node_modules/@appium/support/node_modules/axios/lib/platform/index.js +7 -0
  106. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
  107. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
  108. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
  109. package/node_modules/@appium/support/node_modules/axios/lib/platform/node/index.js +37 -0
  110. package/node_modules/@appium/support/node_modules/axios/lib/utils.js +1150 -0
  111. package/node_modules/@appium/support/node_modules/axios/package.json +203 -0
  112. package/node_modules/@appium/support/package.json +6 -6
  113. package/node_modules/@appium/types/build/lib/commands/basedriver.d.ts +6 -4
  114. package/node_modules/@appium/types/build/lib/commands/basedriver.d.ts.map +1 -1
  115. package/node_modules/@appium/types/lib/commands/basedriver.ts +4 -4
  116. package/node_modules/@appium/types/package.json +2 -2
  117. package/node_modules/appium-xcode/CHANGELOG.md +7 -0
  118. package/node_modules/appium-xcode/package.json +4 -4
  119. package/node_modules/asyncbox/README.md +43 -0
  120. package/node_modules/asyncbox/build/cjs/lib/asyncfilter.d.ts +9 -0
  121. package/node_modules/asyncbox/build/cjs/lib/asyncfilter.d.ts.map +1 -0
  122. package/node_modules/asyncbox/build/cjs/lib/asyncfilter.js +35 -0
  123. package/node_modules/asyncbox/build/cjs/lib/asyncfilter.js.map +1 -0
  124. package/node_modules/asyncbox/build/cjs/lib/asyncmap.d.ts +9 -0
  125. package/node_modules/asyncbox/build/cjs/lib/asyncmap.d.ts.map +1 -0
  126. package/node_modules/asyncbox/build/cjs/lib/asyncmap.js +23 -0
  127. package/node_modules/asyncbox/build/cjs/lib/asyncmap.js.map +1 -0
  128. package/node_modules/asyncbox/build/cjs/lib/errors.d.ts +9 -0
  129. package/node_modules/asyncbox/build/cjs/lib/errors.d.ts.map +1 -0
  130. package/node_modules/asyncbox/build/cjs/lib/errors.js +20 -0
  131. package/node_modules/asyncbox/build/cjs/lib/errors.js.map +1 -0
  132. package/node_modules/asyncbox/build/cjs/lib/index.d.ts +12 -0
  133. package/node_modules/asyncbox/build/cjs/lib/index.d.ts.map +1 -0
  134. package/node_modules/asyncbox/build/cjs/lib/index.js +24 -0
  135. package/node_modules/asyncbox/build/cjs/lib/index.js.map +1 -0
  136. package/node_modules/asyncbox/build/cjs/lib/limit-function.d.ts +3 -0
  137. package/node_modules/asyncbox/build/cjs/lib/limit-function.d.ts.map +1 -0
  138. package/node_modules/asyncbox/build/cjs/lib/limit-function.js +15 -0
  139. package/node_modules/asyncbox/build/cjs/lib/limit-function.js.map +1 -0
  140. package/node_modules/asyncbox/build/cjs/lib/lock.d.ts +74 -0
  141. package/node_modules/asyncbox/build/cjs/lib/lock.d.ts.map +1 -0
  142. package/node_modules/asyncbox/build/cjs/lib/lock.js +295 -0
  143. package/node_modules/asyncbox/build/cjs/lib/lock.js.map +1 -0
  144. package/node_modules/asyncbox/build/cjs/lib/long-sleep.d.ts +15 -0
  145. package/node_modules/asyncbox/build/cjs/lib/long-sleep.d.ts.map +1 -0
  146. package/node_modules/asyncbox/build/cjs/lib/long-sleep.js +36 -0
  147. package/node_modules/asyncbox/build/cjs/lib/long-sleep.js.map +1 -0
  148. package/node_modules/asyncbox/build/cjs/lib/retry.d.ts +17 -0
  149. package/node_modules/asyncbox/build/cjs/lib/retry.d.ts.map +1 -0
  150. package/node_modules/asyncbox/build/cjs/lib/retry.js +57 -0
  151. package/node_modules/asyncbox/build/cjs/lib/retry.js.map +1 -0
  152. package/node_modules/asyncbox/build/cjs/lib/sleep.d.ts +20 -0
  153. package/node_modules/asyncbox/build/cjs/lib/sleep.d.ts.map +1 -0
  154. package/node_modules/asyncbox/build/cjs/lib/sleep.js +61 -0
  155. package/node_modules/asyncbox/build/cjs/lib/sleep.js.map +1 -0
  156. package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.d.ts +18 -0
  157. package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.d.ts.map +1 -0
  158. package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.js +51 -0
  159. package/node_modules/asyncbox/build/cjs/lib/wait-for-condition.js.map +1 -0
  160. package/node_modules/asyncbox/build/cjs/lib/with-timeout.d.ts +16 -0
  161. package/node_modules/asyncbox/build/cjs/lib/with-timeout.d.ts.map +1 -0
  162. package/node_modules/asyncbox/build/cjs/lib/with-timeout.js +45 -0
  163. package/node_modules/asyncbox/build/cjs/lib/with-timeout.js.map +1 -0
  164. package/node_modules/asyncbox/build/esm/lib/asyncfilter.d.ts +9 -0
  165. package/node_modules/asyncbox/build/esm/lib/asyncfilter.d.ts.map +1 -0
  166. package/node_modules/asyncbox/build/esm/lib/asyncfilter.js +32 -0
  167. package/node_modules/asyncbox/build/esm/lib/asyncfilter.js.map +1 -0
  168. package/node_modules/asyncbox/build/esm/lib/asyncmap.d.ts +9 -0
  169. package/node_modules/asyncbox/build/esm/lib/asyncmap.d.ts.map +1 -0
  170. package/node_modules/asyncbox/build/esm/lib/asyncmap.js +20 -0
  171. package/node_modules/asyncbox/build/esm/lib/asyncmap.js.map +1 -0
  172. package/node_modules/asyncbox/build/esm/lib/errors.d.ts +9 -0
  173. package/node_modules/asyncbox/build/esm/lib/errors.d.ts.map +1 -0
  174. package/node_modules/asyncbox/build/esm/lib/errors.js +15 -0
  175. package/node_modules/asyncbox/build/esm/lib/errors.js.map +1 -0
  176. package/node_modules/asyncbox/build/esm/lib/index.d.ts +12 -0
  177. package/node_modules/asyncbox/build/esm/lib/index.d.ts.map +1 -0
  178. package/node_modules/asyncbox/build/esm/lib/index.js +10 -0
  179. package/node_modules/asyncbox/build/esm/lib/index.js.map +1 -0
  180. package/node_modules/asyncbox/build/esm/lib/limit-function.d.ts +3 -0
  181. package/node_modules/asyncbox/build/esm/lib/limit-function.d.ts.map +1 -0
  182. package/node_modules/asyncbox/build/esm/lib/limit-function.js +12 -0
  183. package/node_modules/asyncbox/build/esm/lib/limit-function.js.map +1 -0
  184. package/node_modules/asyncbox/build/esm/lib/lock.d.ts +74 -0
  185. package/node_modules/asyncbox/build/esm/lib/lock.d.ts.map +1 -0
  186. package/node_modules/asyncbox/build/esm/lib/lock.js +291 -0
  187. package/node_modules/asyncbox/build/esm/lib/lock.js.map +1 -0
  188. package/node_modules/asyncbox/build/esm/lib/long-sleep.d.ts +15 -0
  189. package/node_modules/asyncbox/build/esm/lib/long-sleep.d.ts.map +1 -0
  190. package/node_modules/asyncbox/build/esm/lib/long-sleep.js +33 -0
  191. package/node_modules/asyncbox/build/esm/lib/long-sleep.js.map +1 -0
  192. package/node_modules/asyncbox/build/esm/lib/retry.d.ts +17 -0
  193. package/node_modules/asyncbox/build/esm/lib/retry.d.ts.map +1 -0
  194. package/node_modules/asyncbox/build/esm/lib/retry.js +53 -0
  195. package/node_modules/asyncbox/build/esm/lib/retry.js.map +1 -0
  196. package/node_modules/asyncbox/build/esm/lib/sleep.d.ts +20 -0
  197. package/node_modules/asyncbox/build/esm/lib/sleep.d.ts.map +1 -0
  198. package/node_modules/asyncbox/build/esm/lib/sleep.js +58 -0
  199. package/node_modules/asyncbox/build/esm/lib/sleep.js.map +1 -0
  200. package/node_modules/asyncbox/build/esm/lib/wait-for-condition.d.ts +18 -0
  201. package/node_modules/asyncbox/build/esm/lib/wait-for-condition.d.ts.map +1 -0
  202. package/node_modules/asyncbox/build/esm/lib/wait-for-condition.js +48 -0
  203. package/node_modules/asyncbox/build/esm/lib/wait-for-condition.js.map +1 -0
  204. package/node_modules/asyncbox/build/esm/lib/with-timeout.d.ts +16 -0
  205. package/node_modules/asyncbox/build/esm/lib/with-timeout.d.ts.map +1 -0
  206. package/node_modules/asyncbox/build/esm/lib/with-timeout.js +42 -0
  207. package/node_modules/asyncbox/build/esm/lib/with-timeout.js.map +1 -0
  208. package/node_modules/asyncbox/lib/asyncfilter.ts +38 -0
  209. package/node_modules/asyncbox/lib/asyncmap.ts +29 -0
  210. package/node_modules/asyncbox/lib/errors.ts +15 -0
  211. package/node_modules/asyncbox/lib/index.ts +21 -0
  212. package/node_modules/asyncbox/lib/limit-function.ts +18 -0
  213. package/node_modules/asyncbox/lib/lock.ts +360 -0
  214. package/node_modules/asyncbox/lib/long-sleep.ts +38 -0
  215. package/node_modules/asyncbox/lib/retry.ts +61 -0
  216. package/node_modules/asyncbox/lib/sleep.ts +79 -0
  217. package/node_modules/asyncbox/lib/wait-for-condition.ts +52 -0
  218. package/node_modules/asyncbox/lib/with-timeout.ts +43 -0
  219. package/node_modules/asyncbox/package.json +8 -8
  220. package/node_modules/axios/README.md +41 -106
  221. package/node_modules/axios/dist/axios.js +931 -278
  222. package/node_modules/axios/dist/axios.min.js +2 -2
  223. package/node_modules/axios/dist/axios.min.js.map +1 -1
  224. package/node_modules/axios/dist/browser/axios.cjs +948 -268
  225. package/node_modules/axios/dist/esm/axios.js +948 -268
  226. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  227. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  228. package/node_modules/axios/dist/node/axios.cjs +925 -242
  229. package/node_modules/axios/index.d.cts +20 -1
  230. package/node_modules/axios/index.d.ts +18 -1
  231. package/node_modules/axios/lib/adapters/fetch.js +73 -20
  232. package/node_modules/axios/lib/adapters/http.js +145 -26
  233. package/node_modules/axios/lib/adapters/xhr.js +120 -13
  234. package/node_modules/axios/lib/core/Axios.js +67 -12
  235. package/node_modules/axios/lib/core/AxiosError.js +59 -0
  236. package/node_modules/axios/lib/core/AxiosHeaders.js +17 -4
  237. package/node_modules/axios/lib/core/InterceptorManager.js +13 -2
  238. package/node_modules/axios/lib/core/assertParamsAcyclic.js +49 -0
  239. package/node_modules/axios/lib/core/createMultipartBody.js +37 -0
  240. package/node_modules/axios/lib/core/dispatchRequest.js +20 -0
  241. package/node_modules/axios/lib/core/mergeConfig.js +183 -120
  242. package/node_modules/axios/lib/defaults/transitional.js +1 -0
  243. package/node_modules/axios/lib/env/data.js +1 -1
  244. package/node_modules/axios/lib/helpers/AxiosTransformStream.js +11 -2
  245. package/node_modules/axios/lib/helpers/Http2Sessions.js +2 -1
  246. package/node_modules/axios/lib/helpers/composeSignals.js +6 -3
  247. package/node_modules/axios/lib/helpers/cookies.js +30 -6
  248. package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +34 -7
  249. package/node_modules/axios/lib/helpers/formDataToBlob.js +113 -0
  250. package/node_modules/axios/lib/helpers/formDataToJSON.js +25 -1
  251. package/node_modules/axios/lib/helpers/fromDataURI.js +8 -2
  252. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +4 -9
  253. package/node_modules/axios/lib/helpers/parseHeaders.js +2 -1
  254. package/node_modules/axios/lib/helpers/parseProtocol.js +1 -1
  255. package/node_modules/axios/lib/helpers/resolveConfig.js +16 -3
  256. package/node_modules/axios/lib/helpers/shouldBypassProxy.js +16 -1
  257. package/node_modules/axios/lib/utils.js +61 -10
  258. package/node_modules/axios/package.json +1 -2
  259. package/node_modules/follow-redirects/README.md +27 -1
  260. package/node_modules/follow-redirects/index.js +1 -5
  261. package/node_modules/follow-redirects/package.json +1 -1
  262. package/node_modules/shell-quote/README.md +37 -4
  263. package/node_modules/shell-quote/package.json +10 -6
  264. package/node_modules/shell-quote/parse.d.ts +1 -1
  265. package/node_modules/shell-quote/parse.js +63 -11
  266. package/node_modules/shell-quote/quote.d.ts +2 -1
  267. package/node_modules/shell-quote/quote.js +23 -3
  268. package/node_modules/uuid/package.json +17 -17
  269. package/package.json +4 -6
  270. package/node_modules/async-lock/AUTHORS +0 -21
  271. package/node_modules/async-lock/History.md +0 -132
  272. package/node_modules/async-lock/LICENSE +0 -22
  273. package/node_modules/async-lock/README.md +0 -177
  274. package/node_modules/async-lock/index.js +0 -2
  275. package/node_modules/async-lock/lib/index.js +0 -312
  276. package/node_modules/async-lock/package.json +0 -48
  277. package/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts +0 -103
  278. package/node_modules/asyncbox/build/cjs/lib/asyncbox.d.ts.map +0 -1
  279. package/node_modules/asyncbox/build/cjs/lib/asyncbox.js +0 -311
  280. package/node_modules/asyncbox/build/cjs/lib/asyncbox.js.map +0 -1
  281. package/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts +0 -103
  282. package/node_modules/asyncbox/build/esm/lib/asyncbox.d.ts.map +0 -1
  283. package/node_modules/asyncbox/build/esm/lib/asyncbox.js +0 -298
  284. package/node_modules/asyncbox/build/esm/lib/asyncbox.js.map +0 -1
  285. package/node_modules/asyncbox/lib/asyncbox.ts +0 -382
  286. package/node_modules/shell-quote/.nycrc +0 -14
  287. package/node_modules/shell-quote/eslint.config.mjs +0 -29
  288. package/node_modules/shell-quote/security.md +0 -11
  289. package/node_modules/shell-quote/test/comment.js +0 -16
  290. package/node_modules/shell-quote/test/env.js +0 -52
  291. package/node_modules/shell-quote/test/env_fn.js +0 -21
  292. package/node_modules/shell-quote/test/op.js +0 -102
  293. package/node_modules/shell-quote/test/parse.js +0 -149
  294. package/node_modules/shell-quote/test/quote.js +0 -145
  295. package/node_modules/shell-quote/test/set.js +0 -31
@@ -0,0 +1,306 @@
1
+ 'use strict';
2
+
3
+ import utils from '../utils.js';
4
+ import buildURL from '../helpers/buildURL.js';
5
+ import InterceptorManager from './InterceptorManager.js';
6
+ import dispatchRequest from './dispatchRequest.js';
7
+ import mergeConfig from './mergeConfig.js';
8
+ import buildFullPath from './buildFullPath.js';
9
+ import methodList from './methodList.js';
10
+ import validator from '../helpers/validator.js';
11
+ import AxiosHeaders from './AxiosHeaders.js';
12
+ import transitionalDefaults from '../defaults/transitional.js';
13
+
14
+ const validators = validator.validators;
15
+
16
+ /**
17
+ * Create a new instance of Axios
18
+ *
19
+ * @param {Object} instanceConfig The default config for the instance
20
+ *
21
+ * @return {Axios} A new instance of Axios
22
+ */
23
+ class Axios {
24
+ constructor(instanceConfig) {
25
+ this.defaults = instanceConfig || {};
26
+ this.interceptors = {
27
+ request: new InterceptorManager(),
28
+ response: new InterceptorManager(),
29
+ };
30
+ }
31
+
32
+ /**
33
+ * Dispatch a request
34
+ *
35
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
36
+ * @param {?Object} config
37
+ *
38
+ * @returns {Promise} The Promise to be fulfilled
39
+ */
40
+ async request(configOrUrl, config) {
41
+ try {
42
+ return await this._request(configOrUrl, config);
43
+ } catch (err) {
44
+ if (err instanceof Error) {
45
+ try {
46
+ let dummy = {};
47
+
48
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());
49
+
50
+ const dummyStack = dummy.stack;
51
+ let stack = '';
52
+
53
+ // slice off the Error: ... line
54
+ if (typeof dummyStack === 'string') {
55
+ const firstNewlineIndex = dummyStack.indexOf('\n');
56
+
57
+ stack = firstNewlineIndex === -1 ? '' : dummyStack.slice(firstNewlineIndex + 1);
58
+ }
59
+
60
+ if (!err.stack) {
61
+ err.stack = stack;
62
+ // match without the 2 top stack lines
63
+ } else if (stack) {
64
+ const firstNewlineIndex = stack.indexOf('\n');
65
+ const secondNewlineIndex =
66
+ firstNewlineIndex === -1 ? -1 : stack.indexOf('\n', firstNewlineIndex + 1);
67
+ const stackWithoutTwoTopLines =
68
+ secondNewlineIndex === -1 ? '' : stack.slice(secondNewlineIndex + 1);
69
+
70
+ if (!String(err.stack).endsWith(stackWithoutTwoTopLines)) {
71
+ err.stack += '\n' + stack;
72
+ }
73
+ }
74
+ } catch (e) {
75
+ // Ignore failures from custom stack hooks or un-writable stack properties.
76
+ }
77
+ }
78
+
79
+ throw err;
80
+ }
81
+ }
82
+
83
+ _request(configOrUrl, config) {
84
+ /*eslint no-param-reassign:0*/
85
+ // Allow for axios('example/url'[, config]) a la fetch API
86
+ if (typeof configOrUrl === 'string') {
87
+ config = config || {};
88
+ config.url = configOrUrl;
89
+ } else {
90
+ config = configOrUrl || {};
91
+ }
92
+
93
+ config = mergeConfig(this.defaults, config);
94
+
95
+ const { transitional, paramsSerializer, headers } = config;
96
+
97
+ if (transitional !== undefined) {
98
+ validator.assertOptions(
99
+ transitional,
100
+ {
101
+ silentJSONParsing: validators.transitional(validators.boolean),
102
+ forcedJSONParsing: validators.transitional(validators.boolean),
103
+ clarifyTimeoutError: validators.transitional(validators.boolean),
104
+ legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
105
+ advertiseZstdAcceptEncoding: validators.transitional(validators.boolean),
106
+ validateStatusUndefinedResolves: validators.transitional(validators.boolean),
107
+ },
108
+ false
109
+ );
110
+ }
111
+
112
+ if (paramsSerializer != null) {
113
+ if (utils.isFunction(paramsSerializer)) {
114
+ config.paramsSerializer = {
115
+ serialize: paramsSerializer,
116
+ };
117
+ } else {
118
+ validator.assertOptions(
119
+ paramsSerializer,
120
+ {
121
+ encode: validators.function,
122
+ serialize: validators.function,
123
+ },
124
+ true
125
+ );
126
+ }
127
+ }
128
+
129
+ // Set config.allowAbsoluteUrls
130
+ if (config.allowAbsoluteUrls !== undefined) {
131
+ // do nothing
132
+ } else if (this.defaults.allowAbsoluteUrls !== undefined) {
133
+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
134
+ } else {
135
+ config.allowAbsoluteUrls = true;
136
+ }
137
+
138
+ validator.assertOptions(
139
+ config,
140
+ {
141
+ baseUrl: validators.spelling('baseURL'),
142
+ withXsrfToken: validators.spelling('withXSRFToken'),
143
+ },
144
+ true
145
+ );
146
+
147
+ // Set config.method
148
+ config.method = (
149
+ utils.getSafeProp(config, 'method') ||
150
+ utils.getSafeProp(this.defaults, 'method') ||
151
+ 'get'
152
+ ).toLowerCase();
153
+
154
+ // Flatten headers
155
+ let contextHeaders = headers && utils.merge(headers.common, headers[config.method]);
156
+
157
+ headers &&
158
+ utils.forEach(methodList.concat('common'), (method) => {
159
+ delete headers[method];
160
+ });
161
+
162
+ config.headers = AxiosHeaders.concat(contextHeaders, headers);
163
+
164
+ // filter out skipped interceptors
165
+ const requestInterceptorChain = [];
166
+ let synchronousRequestInterceptors = true;
167
+ this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
168
+ if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
169
+ return;
170
+ }
171
+
172
+ synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
173
+
174
+ const transitional = config.transitional || transitionalDefaults;
175
+ const legacyInterceptorReqResOrdering =
176
+ transitional && transitional.legacyInterceptorReqResOrdering;
177
+
178
+ if (legacyInterceptorReqResOrdering) {
179
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
180
+ } else {
181
+ requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
182
+ }
183
+ });
184
+
185
+ const responseInterceptorChain = [];
186
+ this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
187
+ responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
188
+ });
189
+
190
+ let promise;
191
+ let i = 0;
192
+ let len;
193
+
194
+ if (!synchronousRequestInterceptors) {
195
+ const chain = [dispatchRequest.bind(this), undefined];
196
+ chain.unshift(...requestInterceptorChain);
197
+ chain.push(...responseInterceptorChain);
198
+ len = chain.length;
199
+
200
+ promise = Promise.resolve(config);
201
+
202
+ while (i < len) {
203
+ promise = promise.then(chain[i++], chain[i++]);
204
+ }
205
+
206
+ return promise;
207
+ }
208
+
209
+ len = requestInterceptorChain.length;
210
+
211
+ let newConfig = config;
212
+
213
+ while (i < len) {
214
+ const onFulfilled = requestInterceptorChain[i++];
215
+ const onRejected = requestInterceptorChain[i++];
216
+ try {
217
+ newConfig = onFulfilled ? onFulfilled(newConfig) : newConfig;
218
+ } catch (error) {
219
+ if (!onRejected) {
220
+ promise = Promise.reject(error);
221
+ break;
222
+ }
223
+
224
+ try {
225
+ const rejectedResult = onRejected.call(this, error);
226
+
227
+ if (utils.isThenable(rejectedResult)) {
228
+ promise = Promise.resolve(rejectedResult).then(() =>
229
+ dispatchRequest.call(this, newConfig)
230
+ );
231
+ }
232
+ } catch (rejectedError) {
233
+ promise = Promise.reject(rejectedError);
234
+ }
235
+
236
+ break;
237
+ }
238
+ }
239
+
240
+ if (!promise) {
241
+ try {
242
+ promise = dispatchRequest.call(this, newConfig);
243
+ } catch (error) {
244
+ promise = Promise.reject(error);
245
+ }
246
+ }
247
+
248
+ i = 0;
249
+ len = responseInterceptorChain.length;
250
+
251
+ while (i < len) {
252
+ promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
253
+ }
254
+
255
+ return promise;
256
+ }
257
+
258
+ getUri(config) {
259
+ config = mergeConfig(this.defaults, config);
260
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls, config);
261
+ return buildURL(fullPath, config.params, config.paramsSerializer);
262
+ }
263
+ }
264
+
265
+ // Provide aliases for supported request methods
266
+ utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
267
+ /*eslint func-names:0*/
268
+ Axios.prototype[method] = function (url, config) {
269
+ return this.request(
270
+ mergeConfig(config || {}, {
271
+ method,
272
+ url,
273
+ data: config && utils.hasOwnProp(config, 'data') ? config.data : undefined,
274
+ })
275
+ );
276
+ };
277
+ });
278
+
279
+ utils.forEach(['post', 'put', 'patch', 'query'], function forEachMethodWithData(method) {
280
+ function generateHTTPMethod(isForm) {
281
+ return function httpMethod(url, data, config) {
282
+ return this.request(
283
+ mergeConfig(config || {}, {
284
+ method,
285
+ headers: isForm
286
+ ? {
287
+ 'Content-Type': 'multipart/form-data',
288
+ }
289
+ : {},
290
+ url,
291
+ data,
292
+ })
293
+ );
294
+ };
295
+ }
296
+
297
+ Axios.prototype[method] = generateHTTPMethod();
298
+
299
+ // QUERY is a safe/idempotent read method; multipart form bodies don't fit
300
+ // its semantics, so no queryForm shorthand is generated.
301
+ if (method !== 'query') {
302
+ Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
303
+ }
304
+ });
305
+
306
+ export default Axios;
@@ -0,0 +1,219 @@
1
+ 'use strict';
2
+
3
+ import utils from '../utils.js';
4
+ import AxiosHeaders from './AxiosHeaders.js';
5
+
6
+ export const REDACTED = '[REDACTED ****]';
7
+
8
+ function hasOwnOrPrototypeToJSON(source) {
9
+ if (utils.hasOwnProp(source, 'toJSON')) {
10
+ return true;
11
+ }
12
+
13
+ let prototype = Object.getPrototypeOf(source);
14
+
15
+ while (prototype && prototype !== Object.prototype) {
16
+ if (utils.hasOwnProp(prototype, 'toJSON')) {
17
+ return true;
18
+ }
19
+
20
+ prototype = Object.getPrototypeOf(prototype);
21
+ }
22
+
23
+ return false;
24
+ }
25
+
26
+ // Build a plain-object snapshot of `config` and replace the value of any key
27
+ // (case-insensitive) listed in `redactKeys` with REDACTED. Walks through arrays
28
+ // and AxiosHeaders, and short-circuits on circular references.
29
+ function redactConfig(config, redactKeys) {
30
+ const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
31
+ const seen = [];
32
+
33
+ const visit = (source) => {
34
+ if (source === null || typeof source !== 'object') return source;
35
+ if (utils.isBuffer(source)) return source;
36
+ if (seen.indexOf(source) !== -1) return undefined;
37
+
38
+ if (source instanceof AxiosHeaders) {
39
+ source = source.toJSON();
40
+ }
41
+
42
+ seen.push(source);
43
+
44
+ let result;
45
+ if (utils.isArray(source)) {
46
+ result = [];
47
+ source.forEach((v, i) => {
48
+ const reducedValue = visit(v);
49
+ if (!utils.isUndefined(reducedValue)) {
50
+ result[i] = reducedValue;
51
+ }
52
+ });
53
+ } else {
54
+ if (!utils.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
55
+ seen.pop();
56
+ return source;
57
+ }
58
+
59
+ result = Object.create(null);
60
+ for (const [key, value] of Object.entries(source)) {
61
+ const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit(value);
62
+ if (!utils.isUndefined(reducedValue)) {
63
+ result[key] = reducedValue;
64
+ }
65
+ }
66
+ }
67
+
68
+ seen.pop();
69
+ return result;
70
+ };
71
+
72
+ return visit(config);
73
+ }
74
+
75
+ function stringifySafely(value) {
76
+ try {
77
+ return String(value);
78
+ } catch (err) {
79
+ return '';
80
+ }
81
+ }
82
+
83
+ function aggregateErrorMessage(error) {
84
+ const message = error.errors
85
+ .map((entry) => {
86
+ try {
87
+ return entry && entry.message ? stringifySafely(entry.message) : stringifySafely(entry);
88
+ } catch (err) {
89
+ return '';
90
+ }
91
+ })
92
+ .filter(Boolean)
93
+ .join('; ');
94
+
95
+ return message || error.name || 'AggregateError';
96
+ }
97
+
98
+ class AxiosError extends Error {
99
+ static from(error, code, config, request, response, customProps) {
100
+ // `AggregateError` (thrown by Node on dual-stack/Happy-Eyeballs connection
101
+ // failures) has an empty `message`; its detail lives in `errors[]`. Without
102
+ // this, the wrapped error surfaces with a blank message (see #6721).
103
+ let message = error.message;
104
+ if (!message && utils.isArray(error.errors) && error.errors.length) {
105
+ message = aggregateErrorMessage(error);
106
+ }
107
+
108
+ const axiosError = new AxiosError(message, code || error.code, config, request, response);
109
+ // Match native `Error` `cause` semantics: non-enumerable. The wrapped
110
+ // error often carries circular internals (sockets, requests, agents), so
111
+ // an enumerable `cause` makes structured loggers (pino/winston) and any
112
+ // own-property walk throw "Converting circular structure to JSON".
113
+ // Regression from #6982; see #7205. `__proto__: null` mirrors the
114
+ // `message` descriptor below (prototype-pollution-safe descriptor).
115
+ Object.defineProperty(axiosError, 'cause', {
116
+ __proto__: null,
117
+ value: error,
118
+ writable: true,
119
+ enumerable: false,
120
+ configurable: true,
121
+ });
122
+ axiosError.name = error.name;
123
+
124
+ // Preserve status from the original error if not already set from response
125
+ if (error.status != null && axiosError.status == null) {
126
+ axiosError.status = error.status;
127
+ }
128
+
129
+ customProps && Object.assign(axiosError, customProps);
130
+ return axiosError;
131
+ }
132
+
133
+ /**
134
+ * Create an Error with the specified message, config, error code, request and response.
135
+ *
136
+ * @param {string} message The error message.
137
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
138
+ * @param {Object} [config] The config.
139
+ * @param {Object} [request] The request.
140
+ * @param {Object} [response] The response.
141
+ *
142
+ * @returns {Error} The created error.
143
+ */
144
+ constructor(message, code, config, request, response) {
145
+ super(message);
146
+
147
+ // Make message enumerable to maintain backward compatibility
148
+ // The native Error constructor sets message as non-enumerable,
149
+ // but axios < v1.13.3 had it as enumerable
150
+ Object.defineProperty(this, 'message', {
151
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
152
+ // this data descriptor into an accessor descriptor on the way in.
153
+ __proto__: null,
154
+ value: message,
155
+ enumerable: true,
156
+ writable: true,
157
+ configurable: true,
158
+ });
159
+
160
+ this.name = 'AxiosError';
161
+ this.isAxiosError = true;
162
+ code && (this.code = code);
163
+ config && (this.config = config);
164
+ request && (this.request = request);
165
+ if (response) {
166
+ this.response = response;
167
+ this.status = response.status;
168
+ }
169
+ }
170
+
171
+ toJSON() {
172
+ // Opt-in redaction: when the request config carries a `redact` array, the
173
+ // value of any matching key (case-insensitive, at any depth) is replaced
174
+ // with REDACTED in the serialized snapshot. Undefined or empty leaves the
175
+ // existing serialization behavior unchanged.
176
+ const config = this.config;
177
+ const redactKeys = config && utils.hasOwnProp(config, 'redact') ? config.redact : undefined;
178
+ const serializedConfig =
179
+ utils.isArray(redactKeys) && redactKeys.length > 0
180
+ ? redactConfig(config, redactKeys)
181
+ : utils.toJSONObject(config);
182
+
183
+ return {
184
+ // Standard
185
+ message: this.message,
186
+ name: this.name,
187
+ // Microsoft
188
+ description: this.description,
189
+ number: this.number,
190
+ // Mozilla
191
+ fileName: this.fileName,
192
+ lineNumber: this.lineNumber,
193
+ columnNumber: this.columnNumber,
194
+ stack: this.stack,
195
+ // Axios
196
+ config: serializedConfig,
197
+ code: this.code,
198
+ status: this.status,
199
+ };
200
+ }
201
+ }
202
+
203
+ // This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
204
+ AxiosError.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';
205
+ AxiosError.ERR_BAD_OPTION = 'ERR_BAD_OPTION';
206
+ AxiosError.ECONNABORTED = 'ECONNABORTED';
207
+ AxiosError.ETIMEDOUT = 'ETIMEDOUT';
208
+ AxiosError.ECONNREFUSED = 'ECONNREFUSED';
209
+ AxiosError.ERR_NETWORK = 'ERR_NETWORK';
210
+ AxiosError.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';
211
+ AxiosError.ERR_DEPRECATED = 'ERR_DEPRECATED';
212
+ AxiosError.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';
213
+ AxiosError.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';
214
+ AxiosError.ERR_CANCELED = 'ERR_CANCELED';
215
+ AxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
216
+ AxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';
217
+ AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = 'ERR_FORM_DATA_DEPTH_EXCEEDED';
218
+
219
+ export default AxiosError;