@wopee-io/wopee.wdio 4.0.0 → 4.6.0

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 (307) hide show
  1. package/build/adapter/fullPageScreenshotAdapter/default.d.ts +4 -0
  2. package/build/adapter/fullPageScreenshotAdapter/default.d.ts.map +1 -0
  3. package/build/adapter/fullPageScreenshotAdapter/default.js +13 -0
  4. package/build/adapter/fullPageScreenshotAdapter/default.js.map +1 -0
  5. package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.d.ts +1 -9
  6. package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.d.ts.map +1 -1
  7. package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.interface.d.ts +24 -0
  8. package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.interface.d.ts.map +1 -0
  9. package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.interface.js +2 -0
  10. package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.interface.js.map +1 -0
  11. package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.js +8 -18
  12. package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.js.map +1 -1
  13. package/build/adapter/fullPageScreenshotAdapter/swipe.d.ts +4 -0
  14. package/build/adapter/fullPageScreenshotAdapter/swipe.d.ts.map +1 -0
  15. package/build/adapter/fullPageScreenshotAdapter/swipe.js +19 -0
  16. package/build/adapter/fullPageScreenshotAdapter/swipe.js.map +1 -0
  17. package/build/core/domain/valueObjects/track.interface.d.ts +7 -3
  18. package/build/core/domain/valueObjects/track.interface.d.ts.map +1 -1
  19. package/build/core/domain/valueObjects/track.interface.js.map +1 -1
  20. package/build/{port/clientSideOperationPort → core/ports}/clientSideOperationPort.d.ts +1 -1
  21. package/build/core/ports/clientSideOperationPort.d.ts.map +1 -0
  22. package/build/core/ports/clientSideOperationPort.js.map +1 -0
  23. package/build/domain/model/config.interface.d.ts +2 -2
  24. package/build/domain/model/config.interface.d.ts.map +1 -1
  25. package/build/domain/model/config.interface.js.map +1 -1
  26. package/build/domain/model/instances.interface.d.ts +2 -2
  27. package/build/domain/model/instances.interface.d.ts.map +1 -1
  28. package/build/domain/model/instances.interface.js.map +1 -1
  29. package/build/domain/model/screenshotOutput.interface.d.ts +2 -2
  30. package/build/domain/model/screenshotOutput.interface.d.ts.map +1 -1
  31. package/build/domain/model/screenshotOutput.interface.js.map +1 -1
  32. package/build/domain/model/service.interface.d.ts +2 -2
  33. package/build/domain/model/service.interface.d.ts.map +1 -1
  34. package/build/domain/model/service.interface.js.map +1 -1
  35. package/build/domain/service/afterScreenshot.js.map +1 -1
  36. package/build/domain/service/wopeeService.d.ts +5 -5
  37. package/build/domain/service/wopeeService.d.ts.map +1 -1
  38. package/build/domain/service/wopeeService.js +17 -14
  39. package/build/domain/service/wopeeService.js.map +1 -1
  40. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.d.ts.map +1 -0
  41. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.js.map +1 -0
  42. package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.d.ts +1 -1
  43. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.d.ts.map +1 -0
  44. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.js.map +1 -0
  45. package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.d.ts +1 -1
  46. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.d.ts.map +1 -0
  47. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.js.map +1 -0
  48. package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.d.ts +1 -1
  49. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.d.ts.map +1 -0
  50. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.js.map +1 -0
  51. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.d.ts.map +1 -0
  52. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.js.map +1 -0
  53. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.d.ts.map +1 -0
  54. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.js.map +1 -0
  55. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.d.ts.map +1 -0
  56. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.js.map +1 -0
  57. package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.d.ts +4 -4
  58. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.d.ts.map +1 -0
  59. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.js.map +1 -0
  60. package/build/{adapter/driven → infrastructure/adapters}/wdioLoggerAdapter/wdioLoggerAdapter.d.ts +1 -1
  61. package/build/infrastructure/adapters/wdioLoggerAdapter/wdioLoggerAdapter.d.ts.map +1 -0
  62. package/build/{adapter → infrastructure/adapters}/wdioLoggerAdapter/wdioLoggerAdapter.js +1 -1
  63. package/build/infrastructure/adapters/wdioLoggerAdapter/wdioLoggerAdapter.js.map +1 -0
  64. package/build/utils/versionMetadata.js +2 -2
  65. package/docs/mobile_native.md +14 -1
  66. package/node_modules/@autonomous-testing/sdk/.commit.hbs +71 -0
  67. package/node_modules/@autonomous-testing/sdk/.github/workflows/ci_cd.yaml +12 -0
  68. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationScenarioPayload.interface.d.ts +14 -0
  69. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationScenarioPayload.interface.js +10 -0
  70. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationStepPayload.interface.d.ts +32 -0
  71. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationStepPayload.interface.js +16 -0
  72. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationSuitePayload.interface.d.ts +11 -0
  73. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationSuitePayload.interface.js +9 -0
  74. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/index.d.ts +14 -0
  75. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/index.js +16 -0
  76. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationScenario.interface.d.ts +14 -0
  77. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationScenario.interface.js +10 -0
  78. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.d.ts +24 -0
  79. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.js +20 -0
  80. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationSuite.interface.d.ts +14 -0
  81. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationSuite.interface.js +10 -0
  82. package/node_modules/@autonomous-testing/sdk/build/core/domain/index.d.ts +1 -1
  83. package/node_modules/@autonomous-testing/sdk/build/core/domain/index.js +1 -1
  84. package/node_modules/@autonomous-testing/sdk/build/core/index.d.ts +2 -2
  85. package/node_modules/@autonomous-testing/sdk/build/core/index.js +2 -2
  86. package/node_modules/@autonomous-testing/sdk/build/core/ports/api.d.ts +16 -0
  87. package/node_modules/@autonomous-testing/sdk/build/core/ports/api.js +7 -0
  88. package/node_modules/@autonomous-testing/sdk/build/core/ports/index.d.ts +3 -3
  89. package/node_modules/@autonomous-testing/sdk/build/core/ports/index.js +5 -5
  90. package/node_modules/@autonomous-testing/sdk/build/index.d.ts +4 -3
  91. package/node_modules/@autonomous-testing/sdk/build/index.js +5 -3
  92. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.d.ts +19 -0
  93. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.js +123 -0
  94. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.d.ts +9 -0
  95. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.js +144 -0
  96. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/index.d.ts +4 -0
  97. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/index.js +8 -0
  98. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.d.ts +235 -0
  99. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.js +82 -0
  100. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/mutations.d.ts +5 -0
  101. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/{apolloTrackAdapter/apolloTrackAdapterQueries.js → apolloAdapter/mutations.js} +19 -36
  102. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/consoleLogger.d.ts +1 -1
  103. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/index.d.ts +1 -1
  104. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/index.js +2 -2
  105. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/index.d.ts +3 -3
  106. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/index.js +3 -3
  107. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/index.d.ts +1 -1
  108. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/index.js +2 -2
  109. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/noLogger.d.ts +1 -1
  110. package/node_modules/@autonomous-testing/sdk/build/infrastructure/index.d.ts +2 -2
  111. package/node_modules/@autonomous-testing/sdk/build/infrastructure/index.js +2 -2
  112. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloAdapterService.d.ts +4 -0
  113. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloAdapterService.js +12 -0
  114. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloService.interface.d.ts +7 -0
  115. package/node_modules/@autonomous-testing/sdk/build/{core/domain/valueObjects/index.js → infrastructure/services/apolloAdapterService/apolloService.interface.js} +1 -1
  116. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/index.d.ts +4 -0
  117. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/index.js +6 -0
  118. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/index.d.ts +2 -2
  119. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/index.js +2 -2
  120. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.d.ts +16 -2
  121. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.js +12 -0
  122. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerService.d.ts +2 -2
  123. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerService.js +17 -9
  124. package/node_modules/@autonomous-testing/sdk/build/shared/index.d.ts +2 -2
  125. package/node_modules/@autonomous-testing/sdk/build/shared/index.js +2 -2
  126. package/node_modules/@autonomous-testing/sdk/build/shared/metadata/versionMetadata.js +2 -2
  127. package/node_modules/@autonomous-testing/sdk/build/shared/utils/index.d.ts +3 -2
  128. package/node_modules/@autonomous-testing/sdk/build/shared/utils/index.js +4 -3
  129. package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/index.d.ts +3 -0
  130. package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/index.js +7 -0
  131. package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/mergeDicts.d.ts +17 -0
  132. package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/mergeDicts.js +29 -0
  133. package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/index.d.ts +1 -1
  134. package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/index.js +2 -2
  135. package/node_modules/@autonomous-testing/sdk/package.json +5 -8
  136. package/node_modules/@autonomous-testing/sdk/release.config.mjs +55 -0
  137. package/node_modules/axios/CHANGELOG.md +941 -950
  138. package/node_modules/axios/LICENSE +16 -4
  139. package/node_modules/axios/README.md +124 -828
  140. package/node_modules/axios/SECURITY.md +3 -4
  141. package/node_modules/axios/UPGRADE_GUIDE.md +168 -0
  142. package/node_modules/axios/dist/axios.js +2343 -3920
  143. package/node_modules/axios/dist/axios.map +1 -0
  144. package/node_modules/axios/dist/axios.min.js +3 -2
  145. package/node_modules/axios/dist/axios.min.map +1 -0
  146. package/node_modules/axios/index.d.ts +83 -391
  147. package/node_modules/axios/index.js +1 -43
  148. package/node_modules/axios/lib/adapters/http.js +219 -480
  149. package/node_modules/axios/lib/adapters/xhr.js +93 -61
  150. package/node_modules/axios/lib/axios.js +22 -47
  151. package/node_modules/axios/lib/cancel/CancelToken.js +89 -91
  152. package/node_modules/axios/lib/cancel/CanceledError.js +6 -9
  153. package/node_modules/axios/lib/cancel/isCancel.js +2 -2
  154. package/node_modules/axios/lib/core/Axios.js +98 -166
  155. package/node_modules/axios/lib/core/AxiosError.js +9 -23
  156. package/node_modules/axios/lib/core/InterceptorManager.js +45 -62
  157. package/node_modules/axios/lib/core/buildFullPath.js +4 -5
  158. package/node_modules/axios/lib/core/dispatchRequest.js +32 -26
  159. package/node_modules/axios/lib/core/mergeConfig.js +53 -59
  160. package/node_modules/axios/lib/core/settle.js +4 -6
  161. package/node_modules/axios/lib/core/transformData.js +9 -15
  162. package/node_modules/axios/lib/defaults/env/FormData.js +2 -0
  163. package/node_modules/axios/lib/defaults/index.js +57 -72
  164. package/node_modules/axios/lib/defaults/transitional.js +1 -1
  165. package/node_modules/axios/lib/env/data.js +3 -1
  166. package/node_modules/axios/lib/helpers/bind.js +7 -3
  167. package/node_modules/axios/lib/helpers/buildURL.js +33 -26
  168. package/node_modules/axios/lib/helpers/combineURLs.js +3 -4
  169. package/node_modules/axios/lib/helpers/cookies.js +50 -39
  170. package/node_modules/axios/lib/helpers/deprecatedMethod.js +2 -4
  171. package/node_modules/axios/lib/helpers/isAbsoluteURL.js +2 -3
  172. package/node_modules/axios/lib/helpers/isAxiosError.js +3 -4
  173. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +46 -45
  174. package/node_modules/axios/lib/helpers/normalizeHeaderName.js +12 -0
  175. package/node_modules/axios/lib/helpers/null.js +1 -1
  176. package/node_modules/axios/lib/helpers/parseHeaders.js +22 -24
  177. package/node_modules/axios/lib/helpers/parseProtocol.js +3 -3
  178. package/node_modules/axios/lib/helpers/spread.js +2 -3
  179. package/node_modules/axios/lib/helpers/toFormData.js +36 -183
  180. package/node_modules/axios/lib/helpers/validator.js +15 -20
  181. package/node_modules/axios/lib/utils.js +187 -445
  182. package/node_modules/axios/package.json +33 -165
  183. package/node_modules/axios/tsconfig.json +14 -0
  184. package/node_modules/axios/tslint.json +6 -0
  185. package/node_modules/process/.eslintrc +21 -0
  186. package/node_modules/process/LICENSE +22 -0
  187. package/node_modules/process/README.md +26 -0
  188. package/node_modules/process/browser.js +184 -0
  189. package/node_modules/process/index.js +2 -0
  190. package/node_modules/process/package.json +27 -0
  191. package/node_modules/process/test.js +199 -0
  192. package/package.json +2 -2
  193. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.d.ts.map +0 -1
  194. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.js.map +0 -1
  195. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.d.ts.map +0 -1
  196. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.js.map +0 -1
  197. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.d.ts.map +0 -1
  198. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.js.map +0 -1
  199. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.d.ts.map +0 -1
  200. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.js.map +0 -1
  201. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.d.ts.map +0 -1
  202. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.js.map +0 -1
  203. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.d.ts.map +0 -1
  204. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.js.map +0 -1
  205. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.d.ts.map +0 -1
  206. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.js.map +0 -1
  207. package/build/adapter/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.d.ts.map +0 -1
  208. package/build/adapter/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.js.map +0 -1
  209. package/build/adapter/driven/wdioLoggerAdapter/wdioLoggerAdapter.d.ts.map +0 -1
  210. package/build/adapter/driven/wdioLoggerAdapter/wdioLoggerAdapter.js +0 -20
  211. package/build/adapter/driven/wdioLoggerAdapter/wdioLoggerAdapter.js.map +0 -1
  212. package/build/adapter/wdioLoggerAdapter/wdioLoggerAdapter.d.ts +0 -10
  213. package/build/adapter/wdioLoggerAdapter/wdioLoggerAdapter.d.ts.map +0 -1
  214. package/build/adapter/wdioLoggerAdapter/wdioLoggerAdapter.js.map +0 -1
  215. package/build/port/clientSideOperationPort/clientSideOperationPort.d.ts.map +0 -1
  216. package/build/port/clientSideOperationPort/clientSideOperationPort.js.map +0 -1
  217. package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/imageTrackingResult.interface.d.ts +0 -3
  218. package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/imageTrackingResult.interface.js +0 -3
  219. package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/index.d.ts +0 -4
  220. package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/trackPayload.interface.d.ts +0 -3
  221. package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/trackPayload.interface.js +0 -3
  222. package/node_modules/@autonomous-testing/sdk/build/core/ports/imageTracker.d.ts +0 -6
  223. package/node_modules/@autonomous-testing/sdk/build/core/ports/imageTracker.js +0 -7
  224. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.d.ts +0 -39
  225. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.default.d.ts +0 -16
  226. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.default.js +0 -31
  227. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.interface.d.ts +0 -93
  228. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.interface.js +0 -14
  229. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.js +0 -153
  230. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapterQueries.d.ts +0 -5
  231. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapterUtils.d.ts +0 -9
  232. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapterUtils.js +0 -26
  233. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/index.d.ts +0 -7
  234. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/index.js +0 -8
  235. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/apolloTrackAdapterService.d.ts +0 -4
  236. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/apolloTrackAdapterService.interface.d.ts +0 -51
  237. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/apolloTrackAdapterService.interface.js +0 -24
  238. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/apolloTrackAdapterService.js +0 -13
  239. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/index.d.ts +0 -4
  240. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/index.js +0 -6
  241. package/node_modules/axios/MIGRATION_GUIDE.md +0 -3
  242. package/node_modules/axios/dist/axios.js.map +0 -1
  243. package/node_modules/axios/dist/axios.min.js.map +0 -1
  244. package/node_modules/axios/dist/browser/axios.cjs +0 -3638
  245. package/node_modules/axios/dist/browser/axios.cjs.map +0 -1
  246. package/node_modules/axios/dist/esm/axios.js +0 -3661
  247. package/node_modules/axios/dist/esm/axios.js.map +0 -1
  248. package/node_modules/axios/dist/esm/axios.min.js +0 -2
  249. package/node_modules/axios/dist/esm/axios.min.js.map +0 -1
  250. package/node_modules/axios/dist/node/axios.cjs +0 -4705
  251. package/node_modules/axios/dist/node/axios.cjs.map +0 -1
  252. package/node_modules/axios/index.d.cts +0 -545
  253. package/node_modules/axios/lib/adapters/adapters.js +0 -79
  254. package/node_modules/axios/lib/adapters/fetch.js +0 -227
  255. package/node_modules/axios/lib/core/AxiosHeaders.js +0 -302
  256. package/node_modules/axios/lib/env/classes/FormData.js +0 -2
  257. package/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -192
  258. package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -58
  259. package/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -71
  260. package/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -28
  261. package/node_modules/axios/lib/helpers/callbackify.js +0 -16
  262. package/node_modules/axios/lib/helpers/composeSignals.js +0 -46
  263. package/node_modules/axios/lib/helpers/formDataToJSON.js +0 -95
  264. package/node_modules/axios/lib/helpers/formDataToStream.js +0 -111
  265. package/node_modules/axios/lib/helpers/fromDataURI.js +0 -53
  266. package/node_modules/axios/lib/helpers/progressEventReducer.js +0 -32
  267. package/node_modules/axios/lib/helpers/readBlob.js +0 -15
  268. package/node_modules/axios/lib/helpers/resolveConfig.js +0 -57
  269. package/node_modules/axios/lib/helpers/speedometer.js +0 -55
  270. package/node_modules/axios/lib/helpers/throttle.js +0 -35
  271. package/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -18
  272. package/node_modules/axios/lib/helpers/trackStream.js +0 -55
  273. package/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
  274. package/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
  275. package/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -4
  276. package/node_modules/axios/lib/platform/browser/index.js +0 -13
  277. package/node_modules/axios/lib/platform/common/utils.js +0 -50
  278. package/node_modules/axios/lib/platform/index.js +0 -7
  279. package/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
  280. package/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -4
  281. package/node_modules/axios/lib/platform/node/index.js +0 -12
  282. package/node_modules/proxy-from-env/.eslintrc +0 -29
  283. package/node_modules/proxy-from-env/.travis.yml +0 -10
  284. package/node_modules/proxy-from-env/LICENSE +0 -20
  285. package/node_modules/proxy-from-env/README.md +0 -131
  286. package/node_modules/proxy-from-env/index.js +0 -108
  287. package/node_modules/proxy-from-env/package.json +0 -34
  288. package/node_modules/proxy-from-env/test.js +0 -483
  289. /package/build/{port/clientSideOperationPort → core/ports}/clientSideOperationPort.js +0 -0
  290. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.d.ts +0 -0
  291. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.js +0 -0
  292. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.js +0 -0
  293. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.js +0 -0
  294. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.js +0 -0
  295. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.d.ts +0 -0
  296. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.js +0 -0
  297. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.d.ts +0 -0
  298. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.js +0 -0
  299. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.d.ts +0 -0
  300. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.js +0 -0
  301. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.js +0 -0
  302. /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/HISTORY.md +0 -0
  303. /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/LICENSE +0 -0
  304. /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/README.md +0 -0
  305. /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/db.json +0 -0
  306. /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/index.js +0 -0
  307. /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/package.json +0 -0
@@ -1,58 +0,0 @@
1
- 'use strict';
2
-
3
- import toFormData from './toFormData.js';
4
-
5
- /**
6
- * It encodes a string by replacing all characters that are not in the unreserved set with
7
- * their percent-encoded equivalents
8
- *
9
- * @param {string} str - The string to encode.
10
- *
11
- * @returns {string} The encoded string.
12
- */
13
- function encode(str) {
14
- const charMap = {
15
- '!': '%21',
16
- "'": '%27',
17
- '(': '%28',
18
- ')': '%29',
19
- '~': '%7E',
20
- '%20': '+',
21
- '%00': '\x00'
22
- };
23
- return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
24
- return charMap[match];
25
- });
26
- }
27
-
28
- /**
29
- * It takes a params object and converts it to a FormData object
30
- *
31
- * @param {Object<string, any>} params - The parameters to be converted to a FormData object.
32
- * @param {Object<string, any>} options - The options object passed to the Axios constructor.
33
- *
34
- * @returns {void}
35
- */
36
- function AxiosURLSearchParams(params, options) {
37
- this._pairs = [];
38
-
39
- params && toFormData(params, this, options);
40
- }
41
-
42
- const prototype = AxiosURLSearchParams.prototype;
43
-
44
- prototype.append = function append(name, value) {
45
- this._pairs.push([name, value]);
46
- };
47
-
48
- prototype.toString = function toString(encoder) {
49
- const _encode = encoder ? function(value) {
50
- return encoder.call(this, value, encode);
51
- } : encode;
52
-
53
- return this._pairs.map(function each(pair) {
54
- return _encode(pair[0]) + '=' + _encode(pair[1]);
55
- }, '').join('&');
56
- };
57
-
58
- export default AxiosURLSearchParams;
@@ -1,71 +0,0 @@
1
- const HttpStatusCode = {
2
- Continue: 100,
3
- SwitchingProtocols: 101,
4
- Processing: 102,
5
- EarlyHints: 103,
6
- Ok: 200,
7
- Created: 201,
8
- Accepted: 202,
9
- NonAuthoritativeInformation: 203,
10
- NoContent: 204,
11
- ResetContent: 205,
12
- PartialContent: 206,
13
- MultiStatus: 207,
14
- AlreadyReported: 208,
15
- ImUsed: 226,
16
- MultipleChoices: 300,
17
- MovedPermanently: 301,
18
- Found: 302,
19
- SeeOther: 303,
20
- NotModified: 304,
21
- UseProxy: 305,
22
- Unused: 306,
23
- TemporaryRedirect: 307,
24
- PermanentRedirect: 308,
25
- BadRequest: 400,
26
- Unauthorized: 401,
27
- PaymentRequired: 402,
28
- Forbidden: 403,
29
- NotFound: 404,
30
- MethodNotAllowed: 405,
31
- NotAcceptable: 406,
32
- ProxyAuthenticationRequired: 407,
33
- RequestTimeout: 408,
34
- Conflict: 409,
35
- Gone: 410,
36
- LengthRequired: 411,
37
- PreconditionFailed: 412,
38
- PayloadTooLarge: 413,
39
- UriTooLong: 414,
40
- UnsupportedMediaType: 415,
41
- RangeNotSatisfiable: 416,
42
- ExpectationFailed: 417,
43
- ImATeapot: 418,
44
- MisdirectedRequest: 421,
45
- UnprocessableEntity: 422,
46
- Locked: 423,
47
- FailedDependency: 424,
48
- TooEarly: 425,
49
- UpgradeRequired: 426,
50
- PreconditionRequired: 428,
51
- TooManyRequests: 429,
52
- RequestHeaderFieldsTooLarge: 431,
53
- UnavailableForLegalReasons: 451,
54
- InternalServerError: 500,
55
- NotImplemented: 501,
56
- BadGateway: 502,
57
- ServiceUnavailable: 503,
58
- GatewayTimeout: 504,
59
- HttpVersionNotSupported: 505,
60
- VariantAlsoNegotiates: 506,
61
- InsufficientStorage: 507,
62
- LoopDetected: 508,
63
- NotExtended: 510,
64
- NetworkAuthenticationRequired: 511,
65
- };
66
-
67
- Object.entries(HttpStatusCode).forEach(([key, value]) => {
68
- HttpStatusCode[value] = key;
69
- });
70
-
71
- export default HttpStatusCode;
@@ -1,28 +0,0 @@
1
- "use strict";
2
-
3
- import stream from "stream";
4
-
5
- class ZlibHeaderTransformStream extends stream.Transform {
6
- __transform(chunk, encoding, callback) {
7
- this.push(chunk);
8
- callback();
9
- }
10
-
11
- _transform(chunk, encoding, callback) {
12
- if (chunk.length !== 0) {
13
- this._transform = this.__transform;
14
-
15
- // Add Default Compression headers if no zlib headers are present
16
- if (chunk[0] !== 120) { // Hex: 78
17
- const header = Buffer.alloc(2);
18
- header[0] = 120; // Hex: 78
19
- header[1] = 156; // Hex: 9C
20
- this.push(header, encoding);
21
- }
22
- }
23
-
24
- this.__transform(chunk, encoding, callback);
25
- }
26
- }
27
-
28
- export default ZlibHeaderTransformStream;
@@ -1,16 +0,0 @@
1
- import utils from "../utils.js";
2
-
3
- const callbackify = (fn, reducer) => {
4
- return utils.isAsyncFn(fn) ? function (...args) {
5
- const cb = args.pop();
6
- fn.apply(this, args).then((value) => {
7
- try {
8
- reducer ? cb(null, ...reducer(value)) : cb(null, value);
9
- } catch (err) {
10
- cb(err);
11
- }
12
- }, cb);
13
- } : fn;
14
- }
15
-
16
- export default callbackify;
@@ -1,46 +0,0 @@
1
- import CanceledError from "../cancel/CanceledError.js";
2
- import AxiosError from "../core/AxiosError.js";
3
-
4
- const composeSignals = (signals, timeout) => {
5
- let controller = new AbortController();
6
-
7
- let aborted;
8
-
9
- const onabort = function (cancel) {
10
- if (!aborted) {
11
- aborted = true;
12
- unsubscribe();
13
- const err = cancel instanceof Error ? cancel : this.reason;
14
- controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
15
- }
16
- }
17
-
18
- let timer = timeout && setTimeout(() => {
19
- onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT))
20
- }, timeout)
21
-
22
- const unsubscribe = () => {
23
- if (signals) {
24
- timer && clearTimeout(timer);
25
- timer = null;
26
- signals.forEach(signal => {
27
- signal &&
28
- (signal.removeEventListener ? signal.removeEventListener('abort', onabort) : signal.unsubscribe(onabort));
29
- });
30
- signals = null;
31
- }
32
- }
33
-
34
- signals.forEach((signal) => signal && signal.addEventListener && signal.addEventListener('abort', onabort));
35
-
36
- const {signal} = controller;
37
-
38
- signal.unsubscribe = unsubscribe;
39
-
40
- return [signal, () => {
41
- timer && clearTimeout(timer);
42
- timer = null;
43
- }];
44
- }
45
-
46
- export default composeSignals;
@@ -1,95 +0,0 @@
1
- 'use strict';
2
-
3
- import utils from '../utils.js';
4
-
5
- /**
6
- * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
7
- *
8
- * @param {string} name - The name of the property to get.
9
- *
10
- * @returns An array of strings.
11
- */
12
- function parsePropPath(name) {
13
- // foo[x][y][z]
14
- // foo.x.y.z
15
- // foo-x-y-z
16
- // foo x y z
17
- return utils.matchAll(/\w+|\[(\w*)]/g, name).map(match => {
18
- return match[0] === '[]' ? '' : match[1] || match[0];
19
- });
20
- }
21
-
22
- /**
23
- * Convert an array to an object.
24
- *
25
- * @param {Array<any>} arr - The array to convert to an object.
26
- *
27
- * @returns An object with the same keys and values as the array.
28
- */
29
- function arrayToObject(arr) {
30
- const obj = {};
31
- const keys = Object.keys(arr);
32
- let i;
33
- const len = keys.length;
34
- let key;
35
- for (i = 0; i < len; i++) {
36
- key = keys[i];
37
- obj[key] = arr[key];
38
- }
39
- return obj;
40
- }
41
-
42
- /**
43
- * It takes a FormData object and returns a JavaScript object
44
- *
45
- * @param {string} formData The FormData object to convert to JSON.
46
- *
47
- * @returns {Object<string, any> | null} The converted object.
48
- */
49
- function formDataToJSON(formData) {
50
- function buildPath(path, value, target, index) {
51
- let name = path[index++];
52
-
53
- if (name === '__proto__') return true;
54
-
55
- const isNumericKey = Number.isFinite(+name);
56
- const isLast = index >= path.length;
57
- name = !name && utils.isArray(target) ? target.length : name;
58
-
59
- if (isLast) {
60
- if (utils.hasOwnProp(target, name)) {
61
- target[name] = [target[name], value];
62
- } else {
63
- target[name] = value;
64
- }
65
-
66
- return !isNumericKey;
67
- }
68
-
69
- if (!target[name] || !utils.isObject(target[name])) {
70
- target[name] = [];
71
- }
72
-
73
- const result = buildPath(path, value, target[name], index);
74
-
75
- if (result && utils.isArray(target[name])) {
76
- target[name] = arrayToObject(target[name]);
77
- }
78
-
79
- return !isNumericKey;
80
- }
81
-
82
- if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {
83
- const obj = {};
84
-
85
- utils.forEachEntry(formData, (name, value) => {
86
- buildPath(parsePropPath(name), value, obj, 0);
87
- });
88
-
89
- return obj;
90
- }
91
-
92
- return null;
93
- }
94
-
95
- export default formDataToJSON;
@@ -1,111 +0,0 @@
1
- import {TextEncoder} from 'util';
2
- import {Readable} from 'stream';
3
- import utils from "../utils.js";
4
- import readBlob from "./readBlob.js";
5
-
6
- const BOUNDARY_ALPHABET = utils.ALPHABET.ALPHA_DIGIT + '-_';
7
-
8
- const textEncoder = new TextEncoder();
9
-
10
- const CRLF = '\r\n';
11
- const CRLF_BYTES = textEncoder.encode(CRLF);
12
- const CRLF_BYTES_COUNT = 2;
13
-
14
- class FormDataPart {
15
- constructor(name, value) {
16
- const {escapeName} = this.constructor;
17
- const isStringValue = utils.isString(value);
18
-
19
- let headers = `Content-Disposition: form-data; name="${escapeName(name)}"${
20
- !isStringValue && value.name ? `; filename="${escapeName(value.name)}"` : ''
21
- }${CRLF}`;
22
-
23
- if (isStringValue) {
24
- value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
25
- } else {
26
- headers += `Content-Type: ${value.type || "application/octet-stream"}${CRLF}`
27
- }
28
-
29
- this.headers = textEncoder.encode(headers + CRLF);
30
-
31
- this.contentLength = isStringValue ? value.byteLength : value.size;
32
-
33
- this.size = this.headers.byteLength + this.contentLength + CRLF_BYTES_COUNT;
34
-
35
- this.name = name;
36
- this.value = value;
37
- }
38
-
39
- async *encode(){
40
- yield this.headers;
41
-
42
- const {value} = this;
43
-
44
- if(utils.isTypedArray(value)) {
45
- yield value;
46
- } else {
47
- yield* readBlob(value);
48
- }
49
-
50
- yield CRLF_BYTES;
51
- }
52
-
53
- static escapeName(name) {
54
- return String(name).replace(/[\r\n"]/g, (match) => ({
55
- '\r' : '%0D',
56
- '\n' : '%0A',
57
- '"' : '%22',
58
- }[match]));
59
- }
60
- }
61
-
62
- const formDataToStream = (form, headersHandler, options) => {
63
- const {
64
- tag = 'form-data-boundary',
65
- size = 25,
66
- boundary = tag + '-' + utils.generateString(size, BOUNDARY_ALPHABET)
67
- } = options || {};
68
-
69
- if(!utils.isFormData(form)) {
70
- throw TypeError('FormData instance required');
71
- }
72
-
73
- if (boundary.length < 1 || boundary.length > 70) {
74
- throw Error('boundary must be 10-70 characters long')
75
- }
76
-
77
- const boundaryBytes = textEncoder.encode('--' + boundary + CRLF);
78
- const footerBytes = textEncoder.encode('--' + boundary + '--' + CRLF + CRLF);
79
- let contentLength = footerBytes.byteLength;
80
-
81
- const parts = Array.from(form.entries()).map(([name, value]) => {
82
- const part = new FormDataPart(name, value);
83
- contentLength += part.size;
84
- return part;
85
- });
86
-
87
- contentLength += boundaryBytes.byteLength * parts.length;
88
-
89
- contentLength = utils.toFiniteNumber(contentLength);
90
-
91
- const computedHeaders = {
92
- 'Content-Type': `multipart/form-data; boundary=${boundary}`
93
- }
94
-
95
- if (Number.isFinite(contentLength)) {
96
- computedHeaders['Content-Length'] = contentLength;
97
- }
98
-
99
- headersHandler && headersHandler(computedHeaders);
100
-
101
- return Readable.from((async function *() {
102
- for(const part of parts) {
103
- yield boundaryBytes;
104
- yield* part.encode();
105
- }
106
-
107
- yield footerBytes;
108
- })());
109
- };
110
-
111
- export default formDataToStream;
@@ -1,53 +0,0 @@
1
- 'use strict';
2
-
3
- import AxiosError from '../core/AxiosError.js';
4
- import parseProtocol from './parseProtocol.js';
5
- import platform from '../platform/index.js';
6
-
7
- const DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
8
-
9
- /**
10
- * Parse data uri to a Buffer or Blob
11
- *
12
- * @param {String} uri
13
- * @param {?Boolean} asBlob
14
- * @param {?Object} options
15
- * @param {?Function} options.Blob
16
- *
17
- * @returns {Buffer|Blob}
18
- */
19
- export default function fromDataURI(uri, asBlob, options) {
20
- const _Blob = options && options.Blob || platform.classes.Blob;
21
- const protocol = parseProtocol(uri);
22
-
23
- if (asBlob === undefined && _Blob) {
24
- asBlob = true;
25
- }
26
-
27
- if (protocol === 'data') {
28
- uri = protocol.length ? uri.slice(protocol.length + 1) : uri;
29
-
30
- const match = DATA_URL_PATTERN.exec(uri);
31
-
32
- if (!match) {
33
- throw new AxiosError('Invalid URL', AxiosError.ERR_INVALID_URL);
34
- }
35
-
36
- const mime = match[1];
37
- const isBase64 = match[2];
38
- const body = match[3];
39
- const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? 'base64' : 'utf8');
40
-
41
- if (asBlob) {
42
- if (!_Blob) {
43
- throw new AxiosError('Blob is not supported', AxiosError.ERR_NOT_SUPPORT);
44
- }
45
-
46
- return new _Blob([buffer], {type: mime});
47
- }
48
-
49
- return buffer;
50
- }
51
-
52
- throw new AxiosError('Unsupported protocol ' + protocol, AxiosError.ERR_NOT_SUPPORT);
53
- }
@@ -1,32 +0,0 @@
1
- import speedometer from "./speedometer.js";
2
- import throttle from "./throttle.js";
3
-
4
- export default (listener, isDownloadStream, freq = 3) => {
5
- let bytesNotified = 0;
6
- const _speedometer = speedometer(50, 250);
7
-
8
- return throttle(e => {
9
- const loaded = e.loaded;
10
- const total = e.lengthComputable ? e.total : undefined;
11
- const progressBytes = loaded - bytesNotified;
12
- const rate = _speedometer(progressBytes);
13
- const inRange = loaded <= total;
14
-
15
- bytesNotified = loaded;
16
-
17
- const data = {
18
- loaded,
19
- total,
20
- progress: total ? (loaded / total) : undefined,
21
- bytes: progressBytes,
22
- rate: rate ? rate : undefined,
23
- estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
24
- event: e,
25
- lengthComputable: total != null
26
- };
27
-
28
- data[isDownloadStream ? 'download' : 'upload'] = true;
29
-
30
- listener(data);
31
- }, freq);
32
- }
@@ -1,15 +0,0 @@
1
- const {asyncIterator} = Symbol;
2
-
3
- const readBlob = async function* (blob) {
4
- if (blob.stream) {
5
- yield* blob.stream()
6
- } else if (blob.arrayBuffer) {
7
- yield await blob.arrayBuffer()
8
- } else if (blob[asyncIterator]) {
9
- yield* blob[asyncIterator]();
10
- } else {
11
- yield blob;
12
- }
13
- }
14
-
15
- export default readBlob;
@@ -1,57 +0,0 @@
1
- import platform from "../platform/index.js";
2
- import utils from "../utils.js";
3
- import isURLSameOrigin from "./isURLSameOrigin.js";
4
- import cookies from "./cookies.js";
5
- import buildFullPath from "../core/buildFullPath.js";
6
- import mergeConfig from "../core/mergeConfig.js";
7
- import AxiosHeaders from "../core/AxiosHeaders.js";
8
- import buildURL from "./buildURL.js";
9
-
10
- export default (config) => {
11
- const newConfig = mergeConfig({}, config);
12
-
13
- let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
14
-
15
- newConfig.headers = headers = AxiosHeaders.from(headers);
16
-
17
- newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
18
-
19
- // HTTP basic authentication
20
- if (auth) {
21
- headers.set('Authorization', 'Basic ' +
22
- btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))
23
- );
24
- }
25
-
26
- let contentType;
27
-
28
- if (utils.isFormData(data)) {
29
- if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
30
- headers.setContentType(undefined); // Let the browser set it
31
- } else if ((contentType = headers.getContentType()) !== false) {
32
- // fix semicolon duplication issue for ReactNative FormData implementation
33
- const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];
34
- headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));
35
- }
36
- }
37
-
38
- // Add xsrf header
39
- // This is only done if running in a standard browser environment.
40
- // Specifically not if we're in a web worker, or react-native.
41
-
42
- if (platform.hasStandardBrowserEnv) {
43
- withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
44
-
45
- if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(newConfig.url))) {
46
- // Add xsrf header
47
- const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
48
-
49
- if (xsrfValue) {
50
- headers.set(xsrfHeaderName, xsrfValue);
51
- }
52
- }
53
- }
54
-
55
- return newConfig;
56
- }
57
-
@@ -1,55 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * Calculate data maxRate
5
- * @param {Number} [samplesCount= 10]
6
- * @param {Number} [min= 1000]
7
- * @returns {Function}
8
- */
9
- function speedometer(samplesCount, min) {
10
- samplesCount = samplesCount || 10;
11
- const bytes = new Array(samplesCount);
12
- const timestamps = new Array(samplesCount);
13
- let head = 0;
14
- let tail = 0;
15
- let firstSampleTS;
16
-
17
- min = min !== undefined ? min : 1000;
18
-
19
- return function push(chunkLength) {
20
- const now = Date.now();
21
-
22
- const startedAt = timestamps[tail];
23
-
24
- if (!firstSampleTS) {
25
- firstSampleTS = now;
26
- }
27
-
28
- bytes[head] = chunkLength;
29
- timestamps[head] = now;
30
-
31
- let i = tail;
32
- let bytesCount = 0;
33
-
34
- while (i !== head) {
35
- bytesCount += bytes[i++];
36
- i = i % samplesCount;
37
- }
38
-
39
- head = (head + 1) % samplesCount;
40
-
41
- if (head === tail) {
42
- tail = (tail + 1) % samplesCount;
43
- }
44
-
45
- if (now - firstSampleTS < min) {
46
- return;
47
- }
48
-
49
- const passed = startedAt && now - startedAt;
50
-
51
- return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
52
- };
53
- }
54
-
55
- export default speedometer;
@@ -1,35 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * Throttle decorator
5
- * @param {Function} fn
6
- * @param {Number} freq
7
- * @return {Function}
8
- */
9
- function throttle(fn, freq) {
10
- let timestamp = 0;
11
- const threshold = 1000 / freq;
12
- let timer = null;
13
- return function throttled() {
14
- const force = this === true;
15
-
16
- const now = Date.now();
17
- if (force || now - timestamp > threshold) {
18
- if (timer) {
19
- clearTimeout(timer);
20
- timer = null;
21
- }
22
- timestamp = now;
23
- return fn.apply(null, arguments);
24
- }
25
- if (!timer) {
26
- timer = setTimeout(() => {
27
- timer = null;
28
- timestamp = Date.now();
29
- return fn.apply(null, arguments);
30
- }, threshold - (now - timestamp));
31
- }
32
- };
33
- }
34
-
35
- export default throttle;
@@ -1,18 +0,0 @@
1
- 'use strict';
2
-
3
- import utils from '../utils.js';
4
- import toFormData from './toFormData.js';
5
- import platform from '../platform/index.js';
6
-
7
- export default function toURLEncodedForm(data, options) {
8
- return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
9
- visitor: function(value, key, path, helpers) {
10
- if (platform.isNode && utils.isBuffer(value)) {
11
- this.append(key, value.toString('base64'));
12
- return false;
13
- }
14
-
15
- return helpers.defaultVisitor.apply(this, arguments);
16
- }
17
- }, options));
18
- }