@cirkay-eng/cirkay-components 0.7.2 → 0.7.4

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 (235) hide show
  1. package/dist/base/magic/MagicAPI.d.ts.map +1 -1
  2. package/dist/base/magic/MagicAPI.js +4 -3
  3. package/dist/base/magic/MagicAPI.js.map +1 -1
  4. package/dist/base/n3xus/N3xusAPI.d.ts +8 -5
  5. package/dist/base/n3xus/N3xusAPI.d.ts.map +1 -1
  6. package/dist/base/n3xus/N3xusAPI.js +110 -49
  7. package/dist/base/n3xus/N3xusAPI.js.map +1 -1
  8. package/dist/base/n3xus/types.d.ts +67 -24
  9. package/dist/base/n3xus/types.d.ts.map +1 -1
  10. package/dist/base/n3xus/types.js +1 -0
  11. package/dist/base/n3xus/types.js.map +1 -1
  12. package/dist/components/connected/connected.d.ts +33 -0
  13. package/dist/components/connected/connected.d.ts.map +1 -0
  14. package/dist/components/connected/connected.js +586 -0
  15. package/dist/components/connected/connected.js.map +1 -0
  16. package/dist/components/connected/index.d.ts +8 -0
  17. package/dist/components/connected/index.d.ts.map +1 -0
  18. package/dist/components/connected/index.js +6 -0
  19. package/dist/components/connected/index.js.map +1 -0
  20. package/dist/components/error-screen/error-screen.d.ts +4 -3
  21. package/dist/components/error-screen/error-screen.d.ts.map +1 -1
  22. package/dist/components/error-screen/error-screen.js +6 -11
  23. package/dist/components/error-screen/error-screen.js.map +1 -1
  24. package/dist/components/error-screen/index.d.ts +6 -1
  25. package/dist/components/error-screen/index.d.ts.map +1 -1
  26. package/dist/components/error-screen/index.js +6 -0
  27. package/dist/components/error-screen/index.js.map +1 -0
  28. package/dist/components/fan-pass-claim/fan-pass-claim.d.ts +32 -14
  29. package/dist/components/fan-pass-claim/fan-pass-claim.d.ts.map +1 -1
  30. package/dist/components/fan-pass-claim/fan-pass-claim.js +749 -322
  31. package/dist/components/fan-pass-claim/fan-pass-claim.js.map +1 -1
  32. package/dist/components/fan-pass-claim/index.d.ts +8 -2
  33. package/dist/components/fan-pass-claim/index.d.ts.map +1 -1
  34. package/dist/components/fan-pass-claim/index.js +6 -0
  35. package/dist/components/fan-pass-claim/index.js.map +1 -0
  36. package/dist/components/fan-pass-claim/types.d.ts +7 -0
  37. package/dist/components/fan-pass-claim/types.d.ts.map +1 -1
  38. package/dist/components/fan-pass-claim/types.js +9 -1
  39. package/dist/components/fan-pass-claim/types.js.map +1 -1
  40. package/dist/components/fan-pass-unlock/fan-pass-unlock.d.ts +31 -17
  41. package/dist/components/fan-pass-unlock/fan-pass-unlock.d.ts.map +1 -1
  42. package/dist/components/fan-pass-unlock/fan-pass-unlock.js +539 -198
  43. package/dist/components/fan-pass-unlock/fan-pass-unlock.js.map +1 -1
  44. package/dist/components/fan-pass-unlock/index.d.ts +8 -2
  45. package/dist/components/fan-pass-unlock/index.d.ts.map +1 -1
  46. package/dist/components/fan-pass-unlock/index.js +6 -0
  47. package/dist/components/fan-pass-unlock/index.js.map +1 -0
  48. package/dist/components/frame/frame.d.ts +1 -0
  49. package/dist/components/frame/frame.d.ts.map +1 -1
  50. package/dist/components/frame/frame.js +48 -20
  51. package/dist/components/frame/frame.js.map +1 -1
  52. package/dist/components/frame/index.d.ts +6 -1
  53. package/dist/components/frame/index.d.ts.map +1 -1
  54. package/dist/components/frame/index.js +6 -0
  55. package/dist/components/frame/index.js.map +1 -0
  56. package/dist/components/index.d.ts +4 -3
  57. package/dist/components/index.d.ts.map +1 -1
  58. package/dist/components/index.js +7 -3
  59. package/dist/components/index.js.map +1 -1
  60. package/dist/components/login/index.d.ts +6 -1
  61. package/dist/components/login/index.d.ts.map +1 -1
  62. package/dist/components/login/index.js +6 -0
  63. package/dist/components/login/index.js.map +1 -0
  64. package/dist/components/login/login.d.ts +4 -3
  65. package/dist/components/login/login.d.ts.map +1 -1
  66. package/dist/components/login/login.js +97 -38
  67. package/dist/components/login/login.js.map +1 -1
  68. package/dist/components/login/types.d.ts +4 -0
  69. package/dist/components/login/types.d.ts.map +1 -1
  70. package/dist/components/mobile-pass/index.d.ts +8 -0
  71. package/dist/components/mobile-pass/index.d.ts.map +1 -0
  72. package/dist/components/mobile-pass/index.js +6 -0
  73. package/dist/components/mobile-pass/index.js.map +1 -0
  74. package/dist/components/mobile-pass/mobile-pass.d.ts +20 -0
  75. package/dist/components/mobile-pass/mobile-pass.d.ts.map +1 -0
  76. package/dist/components/mobile-pass/mobile-pass.js +150 -0
  77. package/dist/components/mobile-pass/mobile-pass.js.map +1 -0
  78. package/dist/constants/components.d.ts +1 -1
  79. package/dist/constants/components.d.ts.map +1 -1
  80. package/dist/constants/components.js +1 -1
  81. package/dist/controllers/LoginController.d.ts +33 -5
  82. package/dist/controllers/LoginController.d.ts.map +1 -1
  83. package/dist/controllers/LoginController.js +38 -24
  84. package/dist/controllers/LoginController.js.map +1 -1
  85. package/dist/docs/error-screen/designTokens.d.ts +1 -3
  86. package/dist/docs/error-screen/designTokens.d.ts.map +1 -1
  87. package/dist/docs/fan-pass-claim/designTokens.d.ts.map +1 -1
  88. package/dist/docs/fan-pass-claim/fan-pass-claim.stories.d.ts +1 -1
  89. package/dist/docs/fan-pass-claim/fan-pass-claim.stories.d.ts.map +1 -1
  90. package/dist/docs/fan-pass-unlock/designTokens.d.ts.map +1 -1
  91. package/dist/docs/fan-pass-unlock/fan-pass-unlock.stories.d.ts +1 -1
  92. package/dist/docs/fan-pass-unlock/fan-pass-unlock.stories.d.ts.map +1 -1
  93. package/dist/docs/login/designTokens.d.ts +1 -3
  94. package/dist/docs/login/designTokens.d.ts.map +1 -1
  95. package/dist/docs/login/login.stories.d.ts +1 -1
  96. package/dist/docs/login/login.stories.d.ts.map +1 -1
  97. package/dist/docs/mobile-pass/designTokens.d.ts +3 -0
  98. package/dist/docs/mobile-pass/designTokens.d.ts.map +1 -0
  99. package/dist/docs/mobile-pass/mobile-pass.stories.d.ts +6 -0
  100. package/dist/docs/mobile-pass/mobile-pass.stories.d.ts.map +1 -0
  101. package/dist/events/claim.d.ts +2 -1
  102. package/dist/events/claim.d.ts.map +1 -1
  103. package/dist/events/claim.js.map +1 -1
  104. package/dist/events/login.d.ts +8 -1
  105. package/dist/events/login.d.ts.map +1 -1
  106. package/dist/events/login.js +1 -0
  107. package/dist/events/login.js.map +1 -1
  108. package/dist/events/unlock.d.ts +15 -1
  109. package/dist/events/unlock.d.ts.map +1 -1
  110. package/dist/events/unlock.js +2 -0
  111. package/dist/events/unlock.js.map +1 -1
  112. package/dist/internal/CirkayElement.d.ts.map +1 -1
  113. package/dist/internal/CirkayElement.js +0 -2
  114. package/dist/internal/CirkayElement.js.map +1 -1
  115. package/dist/node_modules/.pnpm/@magic-sdk_provider@28.20.0_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js +10 -0
  116. package/dist/node_modules/.pnpm/@magic-sdk_provider@28.20.0_localforage@1.10.0/node_modules/@magic-sdk/provider/dist/es/index.js.map +1 -0
  117. package/dist/node_modules/.pnpm/@magic-sdk_types@24.18.0/node_modules/@magic-sdk/types/dist/es/index.js +4 -0
  118. package/dist/node_modules/.pnpm/@magic-sdk_types@24.18.0/node_modules/@magic-sdk/types/dist/es/index.js.map +1 -0
  119. package/dist/node_modules/.pnpm/{@rollup_plugin-typescript@12.1.2_rollup@4.29.1_tslib@2.8.1_typescript@5.7.2 → @rollup_plugin-typescript@12.1.2_rollup@4.34.6_tslib@2.8.1_typescript@5.7.3}/node_modules/tslib/tslib.es6.js.map +1 -1
  120. package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.34.8_tslib@2.8.1_typescript@5.7.3/node_modules/tslib/tslib.es6.js +31 -0
  121. package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.2_rollup@4.34.8_tslib@2.8.1_typescript@5.7.3/node_modules/tslib/tslib.es6.js.map +1 -0
  122. package/dist/node_modules/.pnpm/magic-sdk@28.21.1/node_modules/magic-sdk/dist/es/index.js +9 -0
  123. package/dist/node_modules/.pnpm/magic-sdk@28.21.1/node_modules/magic-sdk/dist/es/index.js.map +1 -0
  124. package/dist/utils/helpers.d.ts +26 -2
  125. package/dist/utils/helpers.d.ts.map +1 -1
  126. package/dist/utils/helpers.js +65 -7
  127. package/dist/utils/helpers.js.map +1 -1
  128. package/package.json +21 -16
  129. package/dist/_virtual/_commonjsHelpers.js +0 -6
  130. package/dist/_virtual/_commonjsHelpers.js.map +0 -1
  131. package/dist/_virtual/index.js +0 -8
  132. package/dist/_virtual/index.js.map +0 -1
  133. package/dist/node_modules/.pnpm/axios-rate-limit@1.4.0_axios@1.7.9/node_modules/axios-rate-limit/src/index.js +0 -182
  134. package/dist/node_modules/.pnpm/axios-rate-limit@1.4.0_axios@1.7.9/node_modules/axios-rate-limit/src/index.js.map +0 -1
  135. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/adapters.js +0 -82
  136. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/adapters.js.map +0 -1
  137. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/fetch.js +0 -230
  138. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/fetch.js.map +0 -1
  139. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/xhr.js +0 -200
  140. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/xhr.js.map +0 -1
  141. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/axios.js +0 -87
  142. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/axios.js.map +0 -1
  143. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/CancelToken.js +0 -134
  144. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/CancelToken.js.map +0 -1
  145. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/CanceledError.js +0 -24
  146. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/CanceledError.js.map +0 -1
  147. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/isCancel.js +0 -6
  148. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/cancel/isCancel.js.map +0 -1
  149. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/Axios.js +0 -232
  150. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/Axios.js.map +0 -1
  151. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/AxiosError.js +0 -102
  152. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/AxiosError.js.map +0 -1
  153. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/AxiosHeaders.js +0 -301
  154. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/AxiosHeaders.js.map +0 -1
  155. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/InterceptorManager.js +0 -70
  156. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/InterceptorManager.js.map +0 -1
  157. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/buildFullPath.js +0 -22
  158. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/buildFullPath.js.map +0 -1
  159. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/dispatchRequest.js +0 -82
  160. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/dispatchRequest.js.map +0 -1
  161. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/mergeConfig.js +0 -107
  162. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/mergeConfig.js.map +0 -1
  163. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/settle.js +0 -28
  164. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/settle.js.map +0 -1
  165. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/transformData.js +0 -29
  166. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/core/transformData.js.map +0 -1
  167. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/defaults/index.js +0 -160
  168. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/defaults/index.js.map +0 -1
  169. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/defaults/transitional.js +0 -8
  170. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/defaults/transitional.js.map +0 -1
  171. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/env/data.js +0 -4
  172. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/env/data.js.map +0 -1
  173. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -57
  174. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/AxiosURLSearchParams.js.map +0 -1
  175. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -72
  176. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/HttpStatusCode.js.map +0 -1
  177. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/bind.js +0 -8
  178. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/bind.js.map +0 -1
  179. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/buildURL.js +0 -70
  180. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/buildURL.js.map +0 -1
  181. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/combineURLs.js +0 -16
  182. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/combineURLs.js.map +0 -1
  183. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/composeSignals.js +0 -49
  184. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/composeSignals.js.map +0 -1
  185. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/cookies.js +0 -44
  186. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/cookies.js.map +0 -1
  187. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/formDataToJSON.js +0 -94
  188. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/formDataToJSON.js.map +0 -1
  189. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -16
  190. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isAbsoluteURL.js.map +0 -1
  191. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isAxiosError.js +0 -15
  192. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isAxiosError.js.map +0 -1
  193. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -17
  194. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/isURLSameOrigin.js.map +0 -1
  195. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/null.js +0 -5
  196. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/null.js.map +0 -1
  197. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/parseHeaders.js +0 -56
  198. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/parseHeaders.js.map +0 -1
  199. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
  200. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/parseProtocol.js.map +0 -1
  201. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/progressEventReducer.js +0 -47
  202. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/progressEventReducer.js.map +0 -1
  203. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/resolveConfig.js +0 -59
  204. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/resolveConfig.js.map +0 -1
  205. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/speedometer.js +0 -54
  206. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/speedometer.js.map +0 -1
  207. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/spread.js +0 -29
  208. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/spread.js.map +0 -1
  209. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/throttle.js +0 -45
  210. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/throttle.js.map +0 -1
  211. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/toFormData.js +0 -216
  212. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/toFormData.js.map +0 -1
  213. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -19
  214. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/toURLEncodedForm.js.map +0 -1
  215. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/trackStream.js +0 -89
  216. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/trackStream.js.map +0 -1
  217. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/validator.js +0 -100
  218. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/helpers/validator.js.map +0 -1
  219. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
  220. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/Blob.js.map +0 -1
  221. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
  222. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/FormData.js.map +0 -1
  223. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -6
  224. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js.map +0 -1
  225. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/index.js +0 -16
  226. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/browser/index.js.map +0 -1
  227. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/common/utils.js +0 -46
  228. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/common/utils.js.map +0 -1
  229. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/index.js +0 -10
  230. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/platform/index.js.map +0 -1
  231. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/utils.js +0 -761
  232. package/dist/node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/utils.js.map +0 -1
  233. package/dist/utils/settings.js +0 -7
  234. package/dist/utils/settings.js.map +0 -1
  235. /package/dist/node_modules/.pnpm/{@rollup_plugin-typescript@12.1.2_rollup@4.29.1_tslib@2.8.1_typescript@5.7.2 → @rollup_plugin-typescript@12.1.2_rollup@4.34.6_tslib@2.8.1_typescript@5.7.3}/node_modules/tslib/tslib.es6.js +0 -0
@@ -1,182 +0,0 @@
1
- var src;
2
- var hasRequiredSrc;
3
-
4
- function requireSrc () {
5
- if (hasRequiredSrc) return src;
6
- hasRequiredSrc = 1;
7
- function AxiosRateLimit (axios) {
8
- this.queue = [];
9
- this.timeslotRequests = 0;
10
-
11
- this.interceptors = {
12
- request: null,
13
- response: null
14
- };
15
-
16
- this.handleRequest = this.handleRequest.bind(this);
17
- this.handleResponse = this.handleResponse.bind(this);
18
-
19
- this.enable(axios);
20
- }
21
-
22
- AxiosRateLimit.prototype.getMaxRPS = function () {
23
- var perSeconds = (this.perMilliseconds / 1000);
24
- return this.maxRequests / perSeconds
25
- };
26
-
27
- AxiosRateLimit.prototype.getQueue = function () {
28
- return this.queue
29
- };
30
-
31
- AxiosRateLimit.prototype.setMaxRPS = function (rps) {
32
- this.setRateLimitOptions({
33
- maxRequests: rps,
34
- perMilliseconds: 1000
35
- });
36
- };
37
-
38
- AxiosRateLimit.prototype.setRateLimitOptions = function (options) {
39
- if (options.maxRPS) {
40
- this.setMaxRPS(options.maxRPS);
41
- } else {
42
- this.perMilliseconds = options.perMilliseconds;
43
- this.maxRequests = options.maxRequests;
44
- }
45
- };
46
-
47
- AxiosRateLimit.prototype.enable = function (axios) {
48
- function handleError (error) {
49
- return Promise.reject(error)
50
- }
51
-
52
- this.interceptors.request = axios.interceptors.request.use(
53
- this.handleRequest,
54
- handleError
55
- );
56
- this.interceptors.response = axios.interceptors.response.use(
57
- this.handleResponse,
58
- handleError
59
- );
60
- };
61
-
62
- /*
63
- * from axios library (dispatchRequest.js:11)
64
- * @param config
65
- */
66
- function throwIfCancellationRequested (config) {
67
- if (config.cancelToken) {
68
- config.cancelToken.throwIfRequested();
69
- }
70
- }
71
-
72
- AxiosRateLimit.prototype.handleRequest = function (request) {
73
- return new Promise(function (resolve, reject) {
74
- this.push({
75
- /*
76
- * rejects a cancelled request and returns request has been resolved or not
77
- * @returns {boolean}
78
- */
79
- resolve: function () {
80
- try {
81
- throwIfCancellationRequested(request);
82
- } catch (error) {
83
- reject(error);
84
- return false
85
- }
86
- resolve(request);
87
- return true
88
- }
89
- });
90
- }.bind(this))
91
- };
92
-
93
- AxiosRateLimit.prototype.handleResponse = function (response) {
94
- this.shift();
95
- return response
96
- };
97
-
98
- AxiosRateLimit.prototype.push = function (requestHandler) {
99
- this.queue.push(requestHandler);
100
- this.shiftInitial();
101
- };
102
-
103
- AxiosRateLimit.prototype.shiftInitial = function () {
104
- setTimeout(function () { return this.shift() }.bind(this), 0);
105
- };
106
-
107
- AxiosRateLimit.prototype.shift = function () {
108
- if (!this.queue.length) return
109
- if (this.timeslotRequests === this.maxRequests) {
110
- if (this.timeoutId && typeof this.timeoutId.ref === 'function') {
111
- this.timeoutId.ref();
112
- }
113
-
114
- return
115
- }
116
-
117
- var queued = this.queue.shift();
118
- var resolved = queued.resolve();
119
-
120
- if (this.timeslotRequests === 0) {
121
- this.timeoutId = setTimeout(function () {
122
- this.timeslotRequests = 0;
123
- this.shift();
124
- }.bind(this), this.perMilliseconds);
125
-
126
- if (typeof this.timeoutId.unref === 'function') {
127
- if (this.queue.length === 0) this.timeoutId.unref();
128
- }
129
- }
130
-
131
- if (!resolved) {
132
- this.shift(); // rejected request --> shift another request
133
- return
134
- }
135
-
136
- this.timeslotRequests += 1;
137
- };
138
-
139
- /**
140
- * Apply rate limit to axios instance.
141
- *
142
- * @example
143
- * import axios from 'axios';
144
- * import rateLimit from 'axios-rate-limit';
145
- *
146
- * // sets max 2 requests per 1 second, other will be delayed
147
- * // note maxRPS is a shorthand for perMilliseconds: 1000, and it takes precedence
148
- * // if specified both with maxRequests and perMilliseconds
149
- * const http = rateLimit(axios.create(), { maxRequests: 2, perMilliseconds: 1000, maxRPS: 2 })
150
- * http.getMaxRPS() // 2
151
- * http.get('https://example.com/api/v1/users.json?page=1') // will perform immediately
152
- * http.get('https://example.com/api/v1/users.json?page=2') // will perform immediately
153
- * http.get('https://example.com/api/v1/users.json?page=3') // will perform after 1 second from the first one
154
- * http.setMaxRPS(3)
155
- * http.getMaxRPS() // 3
156
- * http.setRateLimitOptions({ maxRequests: 6, perMilliseconds: 150 }) // same options as constructor
157
- *
158
- * @param {Object} axios axios instance
159
- * @param {Object} options options for rate limit, available for live update
160
- * @param {Number} options.maxRequests max requests to perform concurrently in given amount of time.
161
- * @param {Number} options.perMilliseconds amount of time to limit concurrent requests.
162
- * @returns {Object} axios instance with interceptors added
163
- */
164
- function axiosRateLimit (axios, options) {
165
- var rateLimitInstance = new AxiosRateLimit(axios);
166
- rateLimitInstance.setRateLimitOptions(options);
167
-
168
- axios.getQueue = AxiosRateLimit.prototype.getQueue.bind(rateLimitInstance);
169
- axios.getMaxRPS = AxiosRateLimit.prototype.getMaxRPS.bind(rateLimitInstance);
170
- axios.setMaxRPS = AxiosRateLimit.prototype.setMaxRPS.bind(rateLimitInstance);
171
- axios.setRateLimitOptions = AxiosRateLimit.prototype.setRateLimitOptions
172
- .bind(rateLimitInstance);
173
-
174
- return axios
175
- }
176
-
177
- src = axiosRateLimit;
178
- return src;
179
- }
180
-
181
- export { requireSrc as __require };
182
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../../node_modules/.pnpm/axios-rate-limit@1.4.0_axios@1.7.9/node_modules/axios-rate-limit/src/index.js"],"sourcesContent":["function AxiosRateLimit (axios) {\n this.queue = []\n this.timeslotRequests = 0\n\n this.interceptors = {\n request: null,\n response: null\n }\n\n this.handleRequest = this.handleRequest.bind(this)\n this.handleResponse = this.handleResponse.bind(this)\n\n this.enable(axios)\n}\n\nAxiosRateLimit.prototype.getMaxRPS = function () {\n var perSeconds = (this.perMilliseconds / 1000)\n return this.maxRequests / perSeconds\n}\n\nAxiosRateLimit.prototype.getQueue = function () {\n return this.queue\n}\n\nAxiosRateLimit.prototype.setMaxRPS = function (rps) {\n this.setRateLimitOptions({\n maxRequests: rps,\n perMilliseconds: 1000\n })\n}\n\nAxiosRateLimit.prototype.setRateLimitOptions = function (options) {\n if (options.maxRPS) {\n this.setMaxRPS(options.maxRPS)\n } else {\n this.perMilliseconds = options.perMilliseconds\n this.maxRequests = options.maxRequests\n }\n}\n\nAxiosRateLimit.prototype.enable = function (axios) {\n function handleError (error) {\n return Promise.reject(error)\n }\n\n this.interceptors.request = axios.interceptors.request.use(\n this.handleRequest,\n handleError\n )\n this.interceptors.response = axios.interceptors.response.use(\n this.handleResponse,\n handleError\n )\n}\n\n/*\n * from axios library (dispatchRequest.js:11)\n * @param config\n */\nfunction throwIfCancellationRequested (config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested()\n }\n}\n\nAxiosRateLimit.prototype.handleRequest = function (request) {\n return new Promise(function (resolve, reject) {\n this.push({\n /*\n * rejects a cancelled request and returns request has been resolved or not\n * @returns {boolean}\n */\n resolve: function () {\n try {\n throwIfCancellationRequested(request)\n } catch (error) {\n reject(error)\n return false\n }\n resolve(request)\n return true\n }\n })\n }.bind(this))\n}\n\nAxiosRateLimit.prototype.handleResponse = function (response) {\n this.shift()\n return response\n}\n\nAxiosRateLimit.prototype.push = function (requestHandler) {\n this.queue.push(requestHandler)\n this.shiftInitial()\n}\n\nAxiosRateLimit.prototype.shiftInitial = function () {\n setTimeout(function () { return this.shift() }.bind(this), 0)\n}\n\nAxiosRateLimit.prototype.shift = function () {\n if (!this.queue.length) return\n if (this.timeslotRequests === this.maxRequests) {\n if (this.timeoutId && typeof this.timeoutId.ref === 'function') {\n this.timeoutId.ref()\n }\n\n return\n }\n\n var queued = this.queue.shift()\n var resolved = queued.resolve()\n\n if (this.timeslotRequests === 0) {\n this.timeoutId = setTimeout(function () {\n this.timeslotRequests = 0\n this.shift()\n }.bind(this), this.perMilliseconds)\n\n if (typeof this.timeoutId.unref === 'function') {\n if (this.queue.length === 0) this.timeoutId.unref()\n }\n }\n\n if (!resolved) {\n this.shift() // rejected request --> shift another request\n return\n }\n\n this.timeslotRequests += 1\n}\n\n/**\n * Apply rate limit to axios instance.\n *\n * @example\n * import axios from 'axios';\n * import rateLimit from 'axios-rate-limit';\n *\n * // sets max 2 requests per 1 second, other will be delayed\n * // note maxRPS is a shorthand for perMilliseconds: 1000, and it takes precedence\n * // if specified both with maxRequests and perMilliseconds\n * const http = rateLimit(axios.create(), { maxRequests: 2, perMilliseconds: 1000, maxRPS: 2 })\n* http.getMaxRPS() // 2\n * http.get('https://example.com/api/v1/users.json?page=1') // will perform immediately\n * http.get('https://example.com/api/v1/users.json?page=2') // will perform immediately\n * http.get('https://example.com/api/v1/users.json?page=3') // will perform after 1 second from the first one\n * http.setMaxRPS(3)\n * http.getMaxRPS() // 3\n * http.setRateLimitOptions({ maxRequests: 6, perMilliseconds: 150 }) // same options as constructor\n *\n * @param {Object} axios axios instance\n * @param {Object} options options for rate limit, available for live update\n * @param {Number} options.maxRequests max requests to perform concurrently in given amount of time.\n * @param {Number} options.perMilliseconds amount of time to limit concurrent requests.\n * @returns {Object} axios instance with interceptors added\n */\nfunction axiosRateLimit (axios, options) {\n var rateLimitInstance = new AxiosRateLimit(axios)\n rateLimitInstance.setRateLimitOptions(options)\n\n axios.getQueue = AxiosRateLimit.prototype.getQueue.bind(rateLimitInstance)\n axios.getMaxRPS = AxiosRateLimit.prototype.getMaxRPS.bind(rateLimitInstance)\n axios.setMaxRPS = AxiosRateLimit.prototype.setMaxRPS.bind(rateLimitInstance)\n axios.setRateLimitOptions = AxiosRateLimit.prototype.setRateLimitOptions\n .bind(rateLimitInstance)\n\n return axios\n}\n\nmodule.exports = axiosRateLimit\n"],"names":[],"mappings":";;;;;;CAAA,SAAS,cAAc,EAAE,KAAK,EAAE;GAC9B,IAAI,CAAC,KAAK,GAAG;GACb,IAAI,CAAC,gBAAgB,GAAG;;GAExB,IAAI,CAAC,YAAY,GAAG;KAClB,OAAO,EAAE,IAAI;AACjB,KAAI,QAAQ,EAAE;AACd;;GAEE,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI;GACjD,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI;;AAErD,GAAE,IAAI,CAAC,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AI,CAAC,iBAAiB;AAC7E,GAAE,KAAK,CAAC,mBAAmB,GAAG,cAAc,CAAC,SAAS,CAAC;MAClD,IAAI,CAAC,iBAAiB;;AAE3B,GAAE,OAAO;AACT;;AAEA,CAAA,GAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
@@ -1,82 +0,0 @@
1
- import utils from '../utils.js';
2
- import httpAdapter from '../helpers/null.js';
3
- import xhrAdapter from './xhr.js';
4
- import fetchAdapter from './fetch.js';
5
- import AxiosError from '../core/AxiosError.js';
6
-
7
- const knownAdapters = {
8
- http: httpAdapter,
9
- xhr: xhrAdapter,
10
- fetch: fetchAdapter
11
- };
12
-
13
- utils.forEach(knownAdapters, (fn, value) => {
14
- if (fn) {
15
- try {
16
- Object.defineProperty(fn, 'name', {value});
17
- } catch (e) {
18
- // eslint-disable-next-line no-empty
19
- }
20
- Object.defineProperty(fn, 'adapterName', {value});
21
- }
22
- });
23
-
24
- const renderReason = (reason) => `- ${reason}`;
25
-
26
- const isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;
27
-
28
- var adapters = {
29
- getAdapter: (adapters) => {
30
- adapters = utils.isArray(adapters) ? adapters : [adapters];
31
-
32
- const {length} = adapters;
33
- let nameOrAdapter;
34
- let adapter;
35
-
36
- const rejectedReasons = {};
37
-
38
- for (let i = 0; i < length; i++) {
39
- nameOrAdapter = adapters[i];
40
- let id;
41
-
42
- adapter = nameOrAdapter;
43
-
44
- if (!isResolvedHandle(nameOrAdapter)) {
45
- adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
46
-
47
- if (adapter === undefined) {
48
- throw new AxiosError(`Unknown adapter '${id}'`);
49
- }
50
- }
51
-
52
- if (adapter) {
53
- break;
54
- }
55
-
56
- rejectedReasons[id || '#' + i] = adapter;
57
- }
58
-
59
- if (!adapter) {
60
-
61
- const reasons = Object.entries(rejectedReasons)
62
- .map(([id, state]) => `adapter ${id} ` +
63
- (state === false ? 'is not supported by the environment' : 'is not available in the build')
64
- );
65
-
66
- let s = length ?
67
- (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
68
- 'as no adapter specified';
69
-
70
- throw new AxiosError(
71
- `There is no suitable adapter to dispatch the request ` + s,
72
- 'ERR_NOT_SUPPORT'
73
- );
74
- }
75
-
76
- return adapter;
77
- },
78
- adapters: knownAdapters
79
- };
80
-
81
- export { adapters as default };
82
- //# sourceMappingURL=adapters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"adapters.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/adapters.js"],"sourcesContent":["import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport fetchAdapter from './fetch.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter,\n fetch: fetchAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new AxiosError(\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n"],"names":[],"mappings":";;;;;;AAMA,MAAM,aAAa,GAAG;AACtB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,GAAG,EAAE,UAAU;AACjB,EAAE,KAAK,EAAE;AACT;;AAEA,KAAK,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC,EAAE,EAAE,KAAK,KAAK;AAC5C,EAAE,IAAI,EAAE,EAAE;AACV,IAAI,IAAI;AACR,MAAM,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC;AAChD,KAAK,CAAC,OAAO,CAAC,EAAE;AAChB;AACA;AACA,IAAI,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,aAAa,EAAE,CAAC,KAAK,CAAC,CAAC;AACrD;AACA,CAAC,CAAC;;AAEF,MAAM,YAAY,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;;AAE9C,MAAM,gBAAgB,GAAG,CAAC,OAAO,KAAK,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK;;AAExG,eAAe;AACf,EAAE,UAAU,EAAE,CAAC,QAAQ,KAAK;AAC5B,IAAI,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,QAAQ,GAAG,CAAC,QAAQ,CAAC;;AAE9D,IAAI,MAAM,CAAC,MAAM,CAAC,GAAG,QAAQ;AAC7B,IAAI,IAAI,aAAa;AACrB,IAAI,IAAI,OAA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AAC1B,QAAQ,CAAC,qDAAqD,CAAC,GAAG,CAAC;AACnE,QAAQ;AACR,OAAO;AACP;;AAEA,IAAI,OAAO,OAAO;AAClB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ;;;;","x_google_ignoreList":[0]}
@@ -1,230 +0,0 @@
1
- import platform from '../platform/index.js';
2
- import utils from '../utils.js';
3
- import AxiosError from '../core/AxiosError.js';
4
- import composeSignals from '../helpers/composeSignals.js';
5
- import { trackStream } from '../helpers/trackStream.js';
6
- import AxiosHeaders from '../core/AxiosHeaders.js';
7
- import { progressEventDecorator, progressEventReducer, asyncDecorator } from '../helpers/progressEventReducer.js';
8
- import resolveConfig from '../helpers/resolveConfig.js';
9
- import settle from '../core/settle.js';
10
-
11
- const isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';
12
- const isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';
13
-
14
- // used only inside the fetch adapter
15
- const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?
16
- ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :
17
- async (str) => new Uint8Array(await new Response(str).arrayBuffer())
18
- );
19
-
20
- const test = (fn, ...args) => {
21
- try {
22
- return !!fn(...args);
23
- } catch (e) {
24
- return false
25
- }
26
- };
27
-
28
- const supportsRequestStream = isReadableStreamSupported && test(() => {
29
- let duplexAccessed = false;
30
-
31
- const hasContentType = new Request(platform.origin, {
32
- body: new ReadableStream(),
33
- method: 'POST',
34
- get duplex() {
35
- duplexAccessed = true;
36
- return 'half';
37
- },
38
- }).headers.has('Content-Type');
39
-
40
- return duplexAccessed && !hasContentType;
41
- });
42
-
43
- const DEFAULT_CHUNK_SIZE = 64 * 1024;
44
-
45
- const supportsResponseStream = isReadableStreamSupported &&
46
- test(() => utils.isReadableStream(new Response('').body));
47
-
48
-
49
- const resolvers = {
50
- stream: supportsResponseStream && ((res) => res.body)
51
- };
52
-
53
- isFetchSupported && (((res) => {
54
- ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
55
- !resolvers[type] && (resolvers[type] = utils.isFunction(res[type]) ? (res) => res[type]() :
56
- (_, config) => {
57
- throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
58
- });
59
- });
60
- })(new Response));
61
-
62
- const getBodyLength = async (body) => {
63
- if (body == null) {
64
- return 0;
65
- }
66
-
67
- if(utils.isBlob(body)) {
68
- return body.size;
69
- }
70
-
71
- if(utils.isSpecCompliantForm(body)) {
72
- const _request = new Request(platform.origin, {
73
- method: 'POST',
74
- body,
75
- });
76
- return (await _request.arrayBuffer()).byteLength;
77
- }
78
-
79
- if(utils.isArrayBufferView(body) || utils.isArrayBuffer(body)) {
80
- return body.byteLength;
81
- }
82
-
83
- if(utils.isURLSearchParams(body)) {
84
- body = body + '';
85
- }
86
-
87
- if(utils.isString(body)) {
88
- return (await encodeText(body)).byteLength;
89
- }
90
- };
91
-
92
- const resolveBodyLength = async (headers, body) => {
93
- const length = utils.toFiniteNumber(headers.getContentLength());
94
-
95
- return length == null ? getBodyLength(body) : length;
96
- };
97
-
98
- var fetchAdapter = isFetchSupported && (async (config) => {
99
- let {
100
- url,
101
- method,
102
- data,
103
- signal,
104
- cancelToken,
105
- timeout,
106
- onDownloadProgress,
107
- onUploadProgress,
108
- responseType,
109
- headers,
110
- withCredentials = 'same-origin',
111
- fetchOptions
112
- } = resolveConfig(config);
113
-
114
- responseType = responseType ? (responseType + '').toLowerCase() : 'text';
115
-
116
- let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
117
-
118
- let request;
119
-
120
- const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
121
- composedSignal.unsubscribe();
122
- });
123
-
124
- let requestContentLength;
125
-
126
- try {
127
- if (
128
- onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&
129
- (requestContentLength = await resolveBodyLength(headers, data)) !== 0
130
- ) {
131
- let _request = new Request(url, {
132
- method: 'POST',
133
- body: data,
134
- duplex: "half"
135
- });
136
-
137
- let contentTypeHeader;
138
-
139
- if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
140
- headers.setContentType(contentTypeHeader);
141
- }
142
-
143
- if (_request.body) {
144
- const [onProgress, flush] = progressEventDecorator(
145
- requestContentLength,
146
- progressEventReducer(asyncDecorator(onUploadProgress))
147
- );
148
-
149
- data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
150
- }
151
- }
152
-
153
- if (!utils.isString(withCredentials)) {
154
- withCredentials = withCredentials ? 'include' : 'omit';
155
- }
156
-
157
- // Cloudflare Workers throws when credentials are defined
158
- // see https://github.com/cloudflare/workerd/issues/902
159
- const isCredentialsSupported = "credentials" in Request.prototype;
160
- request = new Request(url, {
161
- ...fetchOptions,
162
- signal: composedSignal,
163
- method: method.toUpperCase(),
164
- headers: headers.normalize().toJSON(),
165
- body: data,
166
- duplex: "half",
167
- credentials: isCredentialsSupported ? withCredentials : undefined
168
- });
169
-
170
- let response = await fetch(request);
171
-
172
- const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
173
-
174
- if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
175
- const options = {};
176
-
177
- ['status', 'statusText', 'headers'].forEach(prop => {
178
- options[prop] = response[prop];
179
- });
180
-
181
- const responseContentLength = utils.toFiniteNumber(response.headers.get('content-length'));
182
-
183
- const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
184
- responseContentLength,
185
- progressEventReducer(asyncDecorator(onDownloadProgress), true)
186
- ) || [];
187
-
188
- response = new Response(
189
- trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
190
- flush && flush();
191
- unsubscribe && unsubscribe();
192
- }),
193
- options
194
- );
195
- }
196
-
197
- responseType = responseType || 'text';
198
-
199
- let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config);
200
-
201
- !isStreamResponse && unsubscribe && unsubscribe();
202
-
203
- return await new Promise((resolve, reject) => {
204
- settle(resolve, reject, {
205
- data: responseData,
206
- headers: AxiosHeaders.from(response.headers),
207
- status: response.status,
208
- statusText: response.statusText,
209
- config,
210
- request
211
- });
212
- })
213
- } catch (err) {
214
- unsubscribe && unsubscribe();
215
-
216
- if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {
217
- throw Object.assign(
218
- new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
219
- {
220
- cause: err.cause || err
221
- }
222
- )
223
- }
224
-
225
- throw AxiosError.from(err, err && err.code, config, request);
226
- }
227
- });
228
-
229
- export { fetchAdapter as default };
230
- //# sourceMappingURL=fetch.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch.js","sources":["../../../../../../../../../../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/adapters/fetch.js"],"sourcesContent":["import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport composeSignals from \"../helpers/composeSignals.js\";\nimport {trackStream} from \"../helpers/trackStream.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport {progressEventReducer, progressEventDecorator, asyncDecorator} from \"../helpers/progressEventReducer.js\";\nimport resolveConfig from \"../helpers/resolveConfig.js\";\nimport settle from \"../core/settle.js\";\n\nconst isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';\nconst isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';\n\n// used only inside the fetch adapter\nconst encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?\n ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :\n async (str) => new Uint8Array(await new Response(str).arrayBuffer())\n);\n\nconst test = (fn, ...args) => {\n try {\n return !!fn(...args);\n } catch (e) {\n return false\n }\n}\n\nconst supportsRequestStream = isReadableStreamSupported && test(() => {\n let duplexAccessed = false;\n\n const hasContentType = new Request(platform.origin, {\n body: new ReadableStream(),\n method: 'POST',\n get duplex() {\n duplexAccessed = true;\n return 'half';\n },\n }).headers.has('Content-Type');\n\n return duplexAccessed && !hasContentType;\n});\n\nconst DEFAULT_CHUNK_SIZE = 64 * 1024;\n\nconst supportsResponseStream = isReadableStreamSupported &&\n test(() => utils.isReadableStream(new Response('').body));\n\n\nconst resolvers = {\n stream: supportsResponseStream && ((res) => res.body)\n};\n\nisFetchSupported && (((res) => {\n ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {\n !resolvers[type] && (resolvers[type] = utils.isFunction(res[type]) ? (res) => res[type]() :\n (_, config) => {\n throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);\n })\n });\n})(new Response));\n\nconst getBodyLength = async (body) => {\n if (body == null) {\n return 0;\n }\n\n if(utils.isBlob(body)) {\n return body.size;\n }\n\n if(utils.isSpecCompliantForm(body)) {\n const _request = new Request(platform.origin, {\n method: 'POST',\n body,\n });\n return (await _request.arrayBuffer()).byteLength;\n }\n\n if(utils.isArrayBufferView(body) || utils.isArrayBuffer(body)) {\n return body.byteLength;\n }\n\n if(utils.isURLSearchParams(body)) {\n body = body + '';\n }\n\n if(utils.isString(body)) {\n return (await encodeText(body)).byteLength;\n }\n}\n\nconst resolveBodyLength = async (headers, body) => {\n const length = utils.toFiniteNumber(headers.getContentLength());\n\n return length == null ? getBodyLength(body) : length;\n}\n\nexport default isFetchSupported && (async (config) => {\n let {\n url,\n method,\n data,\n signal,\n cancelToken,\n timeout,\n onDownloadProgress,\n onUploadProgress,\n responseType,\n headers,\n withCredentials = 'same-origin',\n fetchOptions\n } = resolveConfig(config);\n\n responseType = responseType ? (responseType + '').toLowerCase() : 'text';\n\n let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);\n\n let request;\n\n const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {\n composedSignal.unsubscribe();\n });\n\n let requestContentLength;\n\n try {\n if (\n onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&\n (requestContentLength = await resolveBodyLength(headers, data)) !== 0\n ) {\n let _request = new Request(url, {\n method: 'POST',\n body: data,\n duplex: \"half\"\n });\n\n let contentTypeHeader;\n\n if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {\n headers.setContentType(contentTypeHeader)\n }\n\n if (_request.body) {\n const [onProgress, flush] = progressEventDecorator(\n requestContentLength,\n progressEventReducer(asyncDecorator(onUploadProgress))\n );\n\n data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);\n }\n }\n\n if (!utils.isString(withCredentials)) {\n withCredentials = withCredentials ? 'include' : 'omit';\n }\n\n // Cloudflare Workers throws when credentials are defined\n // see https://github.com/cloudflare/workerd/issues/902\n const isCredentialsSupported = \"credentials\" in Request.prototype;\n request = new Request(url, {\n ...fetchOptions,\n signal: composedSignal,\n method: method.toUpperCase(),\n headers: headers.normalize().toJSON(),\n body: data,\n duplex: \"half\",\n credentials: isCredentialsSupported ? withCredentials : undefined\n });\n\n let response = await fetch(request);\n\n const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');\n\n if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {\n const options = {};\n\n ['status', 'statusText', 'headers'].forEach(prop => {\n options[prop] = response[prop];\n });\n\n const responseContentLength = utils.toFiniteNumber(response.headers.get('content-length'));\n\n const [onProgress, flush] = onDownloadProgress && progressEventDecorator(\n responseContentLength,\n progressEventReducer(asyncDecorator(onDownloadProgress), true)\n ) || [];\n\n response = new Response(\n trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {\n flush && flush();\n unsubscribe && unsubscribe();\n }),\n options\n );\n }\n\n responseType = responseType || 'text';\n\n let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config);\n\n !isStreamResponse && unsubscribe && unsubscribe();\n\n return await new Promise((resolve, reject) => {\n settle(resolve, reject, {\n data: responseData,\n headers: AxiosHeaders.from(response.headers),\n status: response.status,\n statusText: response.statusText,\n config,\n request\n })\n })\n } catch (err) {\n unsubscribe && unsubscribe();\n\n if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {\n throw Object.assign(\n new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),\n {\n cause: err.cause || err\n }\n )\n }\n\n throw AxiosError.from(err, err && err.code, config, request);\n }\n});\n\n\n"],"names":[],"mappings":";;;;;;;;;;AAUA,MAAM,gBAAgB,GAAG,OAAO,KAAK,KAAK,UAAU,IAAI,OAAO,OAAO,KAAK,UAAU,IAAI,OAAO,QAAQ,KAAK,UAAU;AACvH,MAAM,yBAAyB,GAAG,gBAAgB,IAAI,OAAO,cAAc,KAAK,UAAU;;AAE1F;AACA,MAAM,UAAU,GAAG,gBAAgB,KAAK,OAAO,WAAW,KAAK,UAAU;AACzE,IAAI,CAAC,CAAC,OAAO,KAAK,CAAC,GAAG,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,IAAI,WAAW,EAAE,CAAC;AAClE,IAAI,OAAO,GAAG,KAAK,IAAI,UAAU,CAAC,MAAM,IAAI,QAAQ,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE;AACvE,CAAC;;AAED,MAAM,IAAI,GAAG,CAAC,EAAE,EAAE,GAAG,IAAI,KAAK;AAC9B,EAAE,IAAI;AACN,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;AACxB,GAAG,CAAC,OAAO,CAAC,EAAE;AACd,IAAI,OAAO;AACX;AACA;;AAEA,MAAM,qBAAqB,GAAG,yBAAyB,IAAI,IAAI,CAAC,MAAM;AACtE,EAAE,IAAI,cAAc,GAAG,KAAK;;AAE5B,EAAE,MAAM,cAAc,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC,MAAM,EAAE;AACtD,IAAI,IAAI,EAAE,IAAI,cAAc,EAAE;AAC9B,IAAI,MAAM,EAAE,MAAM;AAClB,IAAI,IAAI,MAAM,GAAG;AACjB,MAAM,cAAc,GAAG,IAAI;AAC3B,MAAM,O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