@wopee-io/wopee.wdio 4.0.0 → 4.7.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 (311) 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/index.d.ts +3 -0
  41. package/build/index.d.ts.map +1 -1
  42. package/build/index.js +3 -0
  43. package/build/index.js.map +1 -1
  44. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.d.ts.map +1 -0
  45. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.js.map +1 -0
  46. package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.d.ts +1 -1
  47. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.d.ts.map +1 -0
  48. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.js.map +1 -0
  49. package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.d.ts +1 -1
  50. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.d.ts.map +1 -0
  51. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.js.map +1 -0
  52. package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.d.ts +1 -1
  53. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.d.ts.map +1 -0
  54. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.js.map +1 -0
  55. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.d.ts.map +1 -0
  56. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.js.map +1 -0
  57. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.d.ts.map +1 -0
  58. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.js.map +1 -0
  59. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.d.ts.map +1 -0
  60. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.js.map +1 -0
  61. package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.d.ts +4 -4
  62. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.d.ts.map +1 -0
  63. package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.js.map +1 -0
  64. package/build/{adapter/driven → infrastructure/adapters}/wdioLoggerAdapter/wdioLoggerAdapter.d.ts +1 -1
  65. package/build/infrastructure/adapters/wdioLoggerAdapter/wdioLoggerAdapter.d.ts.map +1 -0
  66. package/build/{adapter → infrastructure/adapters}/wdioLoggerAdapter/wdioLoggerAdapter.js +1 -1
  67. package/build/infrastructure/adapters/wdioLoggerAdapter/wdioLoggerAdapter.js.map +1 -0
  68. package/build/utils/versionMetadata.js +2 -2
  69. package/docs/mobile_native.md +14 -1
  70. package/node_modules/@autonomous-testing/sdk/.commit.hbs +71 -0
  71. package/node_modules/@autonomous-testing/sdk/.github/workflows/ci_cd.yaml +12 -0
  72. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationScenarioPayload.interface.d.ts +14 -0
  73. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationScenarioPayload.interface.js +10 -0
  74. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationStepPayload.interface.d.ts +32 -0
  75. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationStepPayload.interface.js +16 -0
  76. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationSuitePayload.interface.d.ts +11 -0
  77. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationSuitePayload.interface.js +9 -0
  78. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/index.d.ts +14 -0
  79. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/index.js +16 -0
  80. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationScenario.interface.d.ts +14 -0
  81. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationScenario.interface.js +10 -0
  82. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.d.ts +24 -0
  83. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.js +20 -0
  84. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationSuite.interface.d.ts +14 -0
  85. package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationSuite.interface.js +10 -0
  86. package/node_modules/@autonomous-testing/sdk/build/core/domain/index.d.ts +1 -1
  87. package/node_modules/@autonomous-testing/sdk/build/core/domain/index.js +1 -1
  88. package/node_modules/@autonomous-testing/sdk/build/core/index.d.ts +2 -2
  89. package/node_modules/@autonomous-testing/sdk/build/core/index.js +2 -2
  90. package/node_modules/@autonomous-testing/sdk/build/core/ports/api.d.ts +16 -0
  91. package/node_modules/@autonomous-testing/sdk/build/core/ports/api.js +7 -0
  92. package/node_modules/@autonomous-testing/sdk/build/core/ports/index.d.ts +3 -3
  93. package/node_modules/@autonomous-testing/sdk/build/core/ports/index.js +5 -5
  94. package/node_modules/@autonomous-testing/sdk/build/index.d.ts +4 -3
  95. package/node_modules/@autonomous-testing/sdk/build/index.js +5 -3
  96. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.d.ts +19 -0
  97. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.js +123 -0
  98. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.d.ts +9 -0
  99. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.js +144 -0
  100. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/index.d.ts +4 -0
  101. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/index.js +8 -0
  102. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.d.ts +235 -0
  103. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.js +82 -0
  104. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/mutations.d.ts +5 -0
  105. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/{apolloTrackAdapter/apolloTrackAdapterQueries.js → apolloAdapter/mutations.js} +19 -36
  106. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/consoleLogger.d.ts +1 -1
  107. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/index.d.ts +1 -1
  108. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/index.js +2 -2
  109. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/index.d.ts +3 -3
  110. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/index.js +3 -3
  111. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/index.d.ts +1 -1
  112. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/index.js +2 -2
  113. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/noLogger.d.ts +1 -1
  114. package/node_modules/@autonomous-testing/sdk/build/infrastructure/index.d.ts +2 -2
  115. package/node_modules/@autonomous-testing/sdk/build/infrastructure/index.js +2 -2
  116. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloAdapterService.d.ts +4 -0
  117. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloAdapterService.js +12 -0
  118. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloService.interface.d.ts +7 -0
  119. package/node_modules/@autonomous-testing/sdk/build/{core/domain/valueObjects/index.js → infrastructure/services/apolloAdapterService/apolloService.interface.js} +1 -1
  120. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/index.d.ts +4 -0
  121. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/index.js +6 -0
  122. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/index.d.ts +2 -2
  123. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/index.js +2 -2
  124. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.d.ts +16 -2
  125. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.js +12 -0
  126. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerService.d.ts +2 -2
  127. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerService.js +17 -9
  128. package/node_modules/@autonomous-testing/sdk/build/shared/index.d.ts +2 -2
  129. package/node_modules/@autonomous-testing/sdk/build/shared/index.js +2 -2
  130. package/node_modules/@autonomous-testing/sdk/build/shared/metadata/versionMetadata.js +2 -2
  131. package/node_modules/@autonomous-testing/sdk/build/shared/utils/index.d.ts +3 -2
  132. package/node_modules/@autonomous-testing/sdk/build/shared/utils/index.js +4 -3
  133. package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/index.d.ts +3 -0
  134. package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/index.js +7 -0
  135. package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/mergeDicts.d.ts +17 -0
  136. package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/mergeDicts.js +29 -0
  137. package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/index.d.ts +1 -1
  138. package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/index.js +2 -2
  139. package/node_modules/@autonomous-testing/sdk/package.json +5 -8
  140. package/node_modules/@autonomous-testing/sdk/release.config.mjs +55 -0
  141. package/node_modules/axios/CHANGELOG.md +941 -950
  142. package/node_modules/axios/LICENSE +16 -4
  143. package/node_modules/axios/README.md +124 -828
  144. package/node_modules/axios/SECURITY.md +3 -4
  145. package/node_modules/axios/UPGRADE_GUIDE.md +168 -0
  146. package/node_modules/axios/dist/axios.js +2343 -3920
  147. package/node_modules/axios/dist/axios.map +1 -0
  148. package/node_modules/axios/dist/axios.min.js +3 -2
  149. package/node_modules/axios/dist/axios.min.map +1 -0
  150. package/node_modules/axios/index.d.ts +83 -391
  151. package/node_modules/axios/index.js +1 -43
  152. package/node_modules/axios/lib/adapters/http.js +219 -480
  153. package/node_modules/axios/lib/adapters/xhr.js +93 -61
  154. package/node_modules/axios/lib/axios.js +22 -47
  155. package/node_modules/axios/lib/cancel/CancelToken.js +89 -91
  156. package/node_modules/axios/lib/cancel/CanceledError.js +6 -9
  157. package/node_modules/axios/lib/cancel/isCancel.js +2 -2
  158. package/node_modules/axios/lib/core/Axios.js +98 -166
  159. package/node_modules/axios/lib/core/AxiosError.js +9 -23
  160. package/node_modules/axios/lib/core/InterceptorManager.js +45 -62
  161. package/node_modules/axios/lib/core/buildFullPath.js +4 -5
  162. package/node_modules/axios/lib/core/dispatchRequest.js +32 -26
  163. package/node_modules/axios/lib/core/mergeConfig.js +53 -59
  164. package/node_modules/axios/lib/core/settle.js +4 -6
  165. package/node_modules/axios/lib/core/transformData.js +9 -15
  166. package/node_modules/axios/lib/defaults/env/FormData.js +2 -0
  167. package/node_modules/axios/lib/defaults/index.js +57 -72
  168. package/node_modules/axios/lib/defaults/transitional.js +1 -1
  169. package/node_modules/axios/lib/env/data.js +3 -1
  170. package/node_modules/axios/lib/helpers/bind.js +7 -3
  171. package/node_modules/axios/lib/helpers/buildURL.js +33 -26
  172. package/node_modules/axios/lib/helpers/combineURLs.js +3 -4
  173. package/node_modules/axios/lib/helpers/cookies.js +50 -39
  174. package/node_modules/axios/lib/helpers/deprecatedMethod.js +2 -4
  175. package/node_modules/axios/lib/helpers/isAbsoluteURL.js +2 -3
  176. package/node_modules/axios/lib/helpers/isAxiosError.js +3 -4
  177. package/node_modules/axios/lib/helpers/isURLSameOrigin.js +46 -45
  178. package/node_modules/axios/lib/helpers/normalizeHeaderName.js +12 -0
  179. package/node_modules/axios/lib/helpers/null.js +1 -1
  180. package/node_modules/axios/lib/helpers/parseHeaders.js +22 -24
  181. package/node_modules/axios/lib/helpers/parseProtocol.js +3 -3
  182. package/node_modules/axios/lib/helpers/spread.js +2 -3
  183. package/node_modules/axios/lib/helpers/toFormData.js +36 -183
  184. package/node_modules/axios/lib/helpers/validator.js +15 -20
  185. package/node_modules/axios/lib/utils.js +187 -445
  186. package/node_modules/axios/package.json +33 -165
  187. package/node_modules/axios/tsconfig.json +14 -0
  188. package/node_modules/axios/tslint.json +6 -0
  189. package/node_modules/process/.eslintrc +21 -0
  190. package/node_modules/process/LICENSE +22 -0
  191. package/node_modules/process/README.md +26 -0
  192. package/node_modules/process/browser.js +184 -0
  193. package/node_modules/process/index.js +2 -0
  194. package/node_modules/process/package.json +27 -0
  195. package/node_modules/process/test.js +199 -0
  196. package/package.json +2 -2
  197. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.d.ts.map +0 -1
  198. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.js.map +0 -1
  199. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.d.ts.map +0 -1
  200. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.js.map +0 -1
  201. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.d.ts.map +0 -1
  202. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.js.map +0 -1
  203. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.d.ts.map +0 -1
  204. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.js.map +0 -1
  205. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.d.ts.map +0 -1
  206. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.js.map +0 -1
  207. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.d.ts.map +0 -1
  208. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.js.map +0 -1
  209. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.d.ts.map +0 -1
  210. package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.js.map +0 -1
  211. package/build/adapter/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.d.ts.map +0 -1
  212. package/build/adapter/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.js.map +0 -1
  213. package/build/adapter/driven/wdioLoggerAdapter/wdioLoggerAdapter.d.ts.map +0 -1
  214. package/build/adapter/driven/wdioLoggerAdapter/wdioLoggerAdapter.js +0 -20
  215. package/build/adapter/driven/wdioLoggerAdapter/wdioLoggerAdapter.js.map +0 -1
  216. package/build/adapter/wdioLoggerAdapter/wdioLoggerAdapter.d.ts +0 -10
  217. package/build/adapter/wdioLoggerAdapter/wdioLoggerAdapter.d.ts.map +0 -1
  218. package/build/adapter/wdioLoggerAdapter/wdioLoggerAdapter.js.map +0 -1
  219. package/build/port/clientSideOperationPort/clientSideOperationPort.d.ts.map +0 -1
  220. package/build/port/clientSideOperationPort/clientSideOperationPort.js.map +0 -1
  221. package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/imageTrackingResult.interface.d.ts +0 -3
  222. package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/imageTrackingResult.interface.js +0 -3
  223. package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/index.d.ts +0 -4
  224. package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/trackPayload.interface.d.ts +0 -3
  225. package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/trackPayload.interface.js +0 -3
  226. package/node_modules/@autonomous-testing/sdk/build/core/ports/imageTracker.d.ts +0 -6
  227. package/node_modules/@autonomous-testing/sdk/build/core/ports/imageTracker.js +0 -7
  228. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.d.ts +0 -39
  229. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.default.d.ts +0 -16
  230. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.default.js +0 -31
  231. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.interface.d.ts +0 -93
  232. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.interface.js +0 -14
  233. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.js +0 -153
  234. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapterQueries.d.ts +0 -5
  235. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapterUtils.d.ts +0 -9
  236. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapterUtils.js +0 -26
  237. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/index.d.ts +0 -7
  238. package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/index.js +0 -8
  239. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/apolloTrackAdapterService.d.ts +0 -4
  240. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/apolloTrackAdapterService.interface.d.ts +0 -51
  241. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/apolloTrackAdapterService.interface.js +0 -24
  242. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/apolloTrackAdapterService.js +0 -13
  243. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/index.d.ts +0 -4
  244. package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/index.js +0 -6
  245. package/node_modules/axios/MIGRATION_GUIDE.md +0 -3
  246. package/node_modules/axios/dist/axios.js.map +0 -1
  247. package/node_modules/axios/dist/axios.min.js.map +0 -1
  248. package/node_modules/axios/dist/browser/axios.cjs +0 -3638
  249. package/node_modules/axios/dist/browser/axios.cjs.map +0 -1
  250. package/node_modules/axios/dist/esm/axios.js +0 -3661
  251. package/node_modules/axios/dist/esm/axios.js.map +0 -1
  252. package/node_modules/axios/dist/esm/axios.min.js +0 -2
  253. package/node_modules/axios/dist/esm/axios.min.js.map +0 -1
  254. package/node_modules/axios/dist/node/axios.cjs +0 -4705
  255. package/node_modules/axios/dist/node/axios.cjs.map +0 -1
  256. package/node_modules/axios/index.d.cts +0 -545
  257. package/node_modules/axios/lib/adapters/adapters.js +0 -79
  258. package/node_modules/axios/lib/adapters/fetch.js +0 -227
  259. package/node_modules/axios/lib/core/AxiosHeaders.js +0 -302
  260. package/node_modules/axios/lib/env/classes/FormData.js +0 -2
  261. package/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -192
  262. package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -58
  263. package/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -71
  264. package/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -28
  265. package/node_modules/axios/lib/helpers/callbackify.js +0 -16
  266. package/node_modules/axios/lib/helpers/composeSignals.js +0 -46
  267. package/node_modules/axios/lib/helpers/formDataToJSON.js +0 -95
  268. package/node_modules/axios/lib/helpers/formDataToStream.js +0 -111
  269. package/node_modules/axios/lib/helpers/fromDataURI.js +0 -53
  270. package/node_modules/axios/lib/helpers/progressEventReducer.js +0 -32
  271. package/node_modules/axios/lib/helpers/readBlob.js +0 -15
  272. package/node_modules/axios/lib/helpers/resolveConfig.js +0 -57
  273. package/node_modules/axios/lib/helpers/speedometer.js +0 -55
  274. package/node_modules/axios/lib/helpers/throttle.js +0 -35
  275. package/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -18
  276. package/node_modules/axios/lib/helpers/trackStream.js +0 -55
  277. package/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
  278. package/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
  279. package/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -4
  280. package/node_modules/axios/lib/platform/browser/index.js +0 -13
  281. package/node_modules/axios/lib/platform/common/utils.js +0 -50
  282. package/node_modules/axios/lib/platform/index.js +0 -7
  283. package/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
  284. package/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -4
  285. package/node_modules/axios/lib/platform/node/index.js +0 -12
  286. package/node_modules/proxy-from-env/.eslintrc +0 -29
  287. package/node_modules/proxy-from-env/.travis.yml +0 -10
  288. package/node_modules/proxy-from-env/LICENSE +0 -20
  289. package/node_modules/proxy-from-env/README.md +0 -131
  290. package/node_modules/proxy-from-env/index.js +0 -108
  291. package/node_modules/proxy-from-env/package.json +0 -34
  292. package/node_modules/proxy-from-env/test.js +0 -483
  293. /package/build/{port/clientSideOperationPort → core/ports}/clientSideOperationPort.js +0 -0
  294. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.d.ts +0 -0
  295. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.js +0 -0
  296. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.js +0 -0
  297. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.js +0 -0
  298. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.js +0 -0
  299. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.d.ts +0 -0
  300. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.js +0 -0
  301. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.d.ts +0 -0
  302. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.js +0 -0
  303. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.d.ts +0 -0
  304. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.js +0 -0
  305. /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.js +0 -0
  306. /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/HISTORY.md +0 -0
  307. /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/LICENSE +0 -0
  308. /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/README.md +0 -0
  309. /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/db.json +0 -0
  310. /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/index.js +0 -0
  311. /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/package.json +0 -0
@@ -1,55 +0,0 @@
1
-
2
-
3
- export const streamChunk = function* (chunk, chunkSize) {
4
- let len = chunk.byteLength;
5
-
6
- if (!chunkSize || len < chunkSize) {
7
- yield chunk;
8
- return;
9
- }
10
-
11
- let pos = 0;
12
- let end;
13
-
14
- while (pos < len) {
15
- end = pos + chunkSize;
16
- yield chunk.slice(pos, end);
17
- pos = end;
18
- }
19
- }
20
-
21
- export const readBytes = async function* (iterable, chunkSize, encode) {
22
- for await (const chunk of iterable) {
23
- yield* streamChunk(ArrayBuffer.isView(chunk) ? chunk : (await encode(String(chunk))), chunkSize);
24
- }
25
- }
26
-
27
- export const trackStream = (stream, chunkSize, onProgress, onFinish, encode) => {
28
- const iterator = readBytes(stream, chunkSize, encode);
29
-
30
- let bytes = 0;
31
-
32
- return new ReadableStream({
33
- type: 'bytes',
34
-
35
- async pull(controller) {
36
- const {done, value} = await iterator.next();
37
-
38
- if (done) {
39
- controller.close();
40
- onFinish();
41
- return;
42
- }
43
-
44
- let len = value.byteLength;
45
- onProgress && onProgress(bytes += len);
46
- controller.enqueue(new Uint8Array(value));
47
- },
48
- cancel(reason) {
49
- onFinish(reason);
50
- return iterator.return();
51
- }
52
- }, {
53
- highWaterMark: 2
54
- })
55
- }
@@ -1,3 +0,0 @@
1
- 'use strict'
2
-
3
- export default typeof Blob !== 'undefined' ? Blob : null
@@ -1,3 +0,0 @@
1
- 'use strict';
2
-
3
- export default typeof FormData !== 'undefined' ? FormData : null;
@@ -1,4 +0,0 @@
1
- 'use strict';
2
-
3
- import AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';
4
- export default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
@@ -1,13 +0,0 @@
1
- import URLSearchParams from './classes/URLSearchParams.js'
2
- import FormData from './classes/FormData.js'
3
- import Blob from './classes/Blob.js'
4
-
5
- export default {
6
- isBrowser: true,
7
- classes: {
8
- URLSearchParams,
9
- FormData,
10
- Blob
11
- },
12
- protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
13
- };
@@ -1,50 +0,0 @@
1
- const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
2
-
3
- /**
4
- * Determine if we're running in a standard browser environment
5
- *
6
- * This allows axios to run in a web worker, and react-native.
7
- * Both environments support XMLHttpRequest, but not fully standard globals.
8
- *
9
- * web workers:
10
- * typeof window -> undefined
11
- * typeof document -> undefined
12
- *
13
- * react-native:
14
- * navigator.product -> 'ReactNative'
15
- * nativescript
16
- * navigator.product -> 'NativeScript' or 'NS'
17
- *
18
- * @returns {boolean}
19
- */
20
- const hasStandardBrowserEnv = (
21
- (product) => {
22
- return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0
23
- })(typeof navigator !== 'undefined' && navigator.product);
24
-
25
- /**
26
- * Determine if we're running in a standard browser webWorker environment
27
- *
28
- * Although the `isStandardBrowserEnv` method indicates that
29
- * `allows axios to run in a web worker`, the WebWorker will still be
30
- * filtered out due to its judgment standard
31
- * `typeof window !== 'undefined' && typeof document !== 'undefined'`.
32
- * This leads to a problem when axios post `FormData` in webWorker
33
- */
34
- const hasStandardBrowserWebWorkerEnv = (() => {
35
- return (
36
- typeof WorkerGlobalScope !== 'undefined' &&
37
- // eslint-disable-next-line no-undef
38
- self instanceof WorkerGlobalScope &&
39
- typeof self.importScripts === 'function'
40
- );
41
- })();
42
-
43
- const origin = hasBrowserEnv && window.location.href || 'http://localhost';
44
-
45
- export {
46
- hasBrowserEnv,
47
- hasStandardBrowserWebWorkerEnv,
48
- hasStandardBrowserEnv,
49
- origin
50
- }
@@ -1,7 +0,0 @@
1
- import platform from './node/index.js';
2
- import * as utils from './common/utils.js';
3
-
4
- export default {
5
- ...utils,
6
- ...platform
7
- }
@@ -1,3 +0,0 @@
1
- import FormData from 'form-data';
2
-
3
- export default FormData;
@@ -1,4 +0,0 @@
1
- 'use strict';
2
-
3
- import url from 'url';
4
- export default url.URLSearchParams;
@@ -1,12 +0,0 @@
1
- import URLSearchParams from './classes/URLSearchParams.js'
2
- import FormData from './classes/FormData.js'
3
-
4
- export default {
5
- isNode: true,
6
- classes: {
7
- URLSearchParams,
8
- FormData,
9
- Blob: typeof Blob !== 'undefined' && Blob || null
10
- },
11
- protocols: [ 'http', 'https', 'file', 'data' ]
12
- };
@@ -1,29 +0,0 @@
1
- {
2
- "env": {
3
- "node": true
4
- },
5
- "rules": {
6
- "array-bracket-spacing": [2, "never"],
7
- "block-scoped-var": 2,
8
- "brace-style": [2, "1tbs"],
9
- "camelcase": 1,
10
- "computed-property-spacing": [2, "never"],
11
- "curly": 2,
12
- "eol-last": 2,
13
- "eqeqeq": [2, "smart"],
14
- "max-depth": [1, 3],
15
- "max-len": [1, 80],
16
- "max-statements": [1, 15],
17
- "new-cap": 1,
18
- "no-extend-native": 2,
19
- "no-mixed-spaces-and-tabs": 2,
20
- "no-trailing-spaces": 2,
21
- "no-unused-vars": 1,
22
- "no-use-before-define": [2, "nofunc"],
23
- "object-curly-spacing": [2, "never"],
24
- "quotes": [2, "single", "avoid-escape"],
25
- "semi": [2, "always"],
26
- "keyword-spacing": [2, {"before": true, "after": true}],
27
- "space-unary-ops": 2
28
- }
29
- }
@@ -1,10 +0,0 @@
1
- language: node_js
2
- node_js:
3
- - node
4
- - lts/*
5
- script:
6
- - npm run lint
7
- # test-coverage will also run the tests, but does not print helpful output upon test failure.
8
- # So we also run the tests separately.
9
- - npm run test
10
- - npm run test-coverage && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage
@@ -1,20 +0,0 @@
1
- The MIT License
2
-
3
- Copyright (C) 2016-2018 Rob Wu <rob@robwu.nl>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of
6
- this software and associated documentation files (the "Software"), to deal in
7
- the Software without restriction, including without limitation the rights to
8
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9
- of the Software, and to permit persons to whom the Software is furnished to do
10
- so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,131 +0,0 @@
1
- # proxy-from-env
2
-
3
- [![Build Status](https://travis-ci.org/Rob--W/proxy-from-env.svg?branch=master)](https://travis-ci.org/Rob--W/proxy-from-env)
4
- [![Coverage Status](https://coveralls.io/repos/github/Rob--W/proxy-from-env/badge.svg?branch=master)](https://coveralls.io/github/Rob--W/proxy-from-env?branch=master)
5
-
6
- `proxy-from-env` is a Node.js package that exports a function (`getProxyForUrl`)
7
- that takes an input URL (a string or
8
- [`url.parse`](https://nodejs.org/docs/latest/api/url.html#url_url_parsing)'s
9
- return value) and returns the desired proxy URL (also a string) based on
10
- standard proxy environment variables. If no proxy is set, an empty string is
11
- returned.
12
-
13
- It is your responsibility to actually proxy the request using the given URL.
14
-
15
- Installation:
16
-
17
- ```sh
18
- npm install proxy-from-env
19
- ```
20
-
21
- ## Example
22
- This example shows how the data for a URL can be fetched via the
23
- [`http` module](https://nodejs.org/api/http.html), in a proxy-aware way.
24
-
25
- ```javascript
26
- var http = require('http');
27
- var parseUrl = require('url').parse;
28
- var getProxyForUrl = require('proxy-from-env').getProxyForUrl;
29
-
30
- var some_url = 'http://example.com/something';
31
-
32
- // // Example, if there is a proxy server at 10.0.0.1:1234, then setting the
33
- // // http_proxy environment variable causes the request to go through a proxy.
34
- // process.env.http_proxy = 'http://10.0.0.1:1234';
35
- //
36
- // // But if the host to be proxied is listed in NO_PROXY, then the request is
37
- // // not proxied (but a direct request is made).
38
- // process.env.no_proxy = 'example.com';
39
-
40
- var proxy_url = getProxyForUrl(some_url); // <-- Our magic.
41
- if (proxy_url) {
42
- // Should be proxied through proxy_url.
43
- var parsed_some_url = parseUrl(some_url);
44
- var parsed_proxy_url = parseUrl(proxy_url);
45
- // A HTTP proxy is quite simple. It is similar to a normal request, except the
46
- // path is an absolute URL, and the proxied URL's host is put in the header
47
- // instead of the server's actual host.
48
- httpOptions = {
49
- protocol: parsed_proxy_url.protocol,
50
- hostname: parsed_proxy_url.hostname,
51
- port: parsed_proxy_url.port,
52
- path: parsed_some_url.href,
53
- headers: {
54
- Host: parsed_some_url.host, // = host name + optional port.
55
- },
56
- };
57
- } else {
58
- // Direct request.
59
- httpOptions = some_url;
60
- }
61
- http.get(httpOptions, function(res) {
62
- var responses = [];
63
- res.on('data', function(chunk) { responses.push(chunk); });
64
- res.on('end', function() { console.log(responses.join('')); });
65
- });
66
-
67
- ```
68
-
69
- ## Environment variables
70
- The environment variables can be specified in lowercase or uppercase, with the
71
- lowercase name having precedence over the uppercase variant. A variable that is
72
- not set has the same meaning as a variable that is set but has no value.
73
-
74
- ### NO\_PROXY
75
-
76
- `NO_PROXY` is a list of host names (optionally with a port). If the input URL
77
- matches any of the entries in `NO_PROXY`, then the input URL should be fetched
78
- by a direct request (i.e. without a proxy).
79
-
80
- Matching follows the following rules:
81
-
82
- - `NO_PROXY=*` disables all proxies.
83
- - Space and commas may be used to separate the entries in the `NO_PROXY` list.
84
- - If `NO_PROXY` does not contain any entries, then proxies are never disabled.
85
- - If a port is added after the host name, then the ports must match. If the URL
86
- does not have an explicit port name, the protocol's default port is used.
87
- - Generally, the proxy is only disabled if the host name is an exact match for
88
- an entry in the `NO_PROXY` list. The only exceptions are entries that start
89
- with a dot or with a wildcard; then the proxy is disabled if the host name
90
- ends with the entry.
91
-
92
- See `test.js` for examples of what should match and what does not.
93
-
94
- ### \*\_PROXY
95
-
96
- The environment variable used for the proxy depends on the protocol of the URL.
97
- For example, `https://example.com` uses the "https" protocol, and therefore the
98
- proxy to be used is `HTTPS_PROXY` (_NOT_ `HTTP_PROXY`, which is _only_ used for
99
- http:-URLs).
100
-
101
- The library is not limited to http(s), other schemes such as
102
- `FTP_PROXY` (ftp:),
103
- `WSS_PROXY` (wss:),
104
- `WS_PROXY` (ws:)
105
- are also supported.
106
-
107
- If present, `ALL_PROXY` is used as fallback if there is no other match.
108
-
109
-
110
- ## External resources
111
- The exact way of parsing the environment variables is not codified in any
112
- standard. This library is designed to be compatible with formats as expected by
113
- existing software.
114
- The following resources were used to determine the desired behavior:
115
-
116
- - cURL:
117
- https://curl.haxx.se/docs/manpage.html#ENVIRONMENT
118
- https://github.com/curl/curl/blob/4af40b3646d3b09f68e419f7ca866ff395d1f897/lib/url.c#L4446-L4514
119
- https://github.com/curl/curl/blob/4af40b3646d3b09f68e419f7ca866ff395d1f897/lib/url.c#L4608-L4638
120
-
121
- - wget:
122
- https://www.gnu.org/software/wget/manual/wget.html#Proxies
123
- http://git.savannah.gnu.org/cgit/wget.git/tree/src/init.c?id=636a5f9a1c508aa39e35a3a8e9e54520a284d93d#n383
124
- http://git.savannah.gnu.org/cgit/wget.git/tree/src/retr.c?id=93c1517c4071c4288ba5a4b038e7634e4c6b5482#n1278
125
-
126
- - W3:
127
- https://www.w3.org/Daemon/User/Proxies/ProxyClients.html
128
-
129
- - Python's urllib:
130
- https://github.com/python/cpython/blob/936135bb97fe04223aa30ca6e98eac8f3ed6b349/Lib/urllib/request.py#L755-L782
131
- https://github.com/python/cpython/blob/936135bb97fe04223aa30ca6e98eac8f3ed6b349/Lib/urllib/request.py#L2444-L2479
@@ -1,108 +0,0 @@
1
- 'use strict';
2
-
3
- var parseUrl = require('url').parse;
4
-
5
- var DEFAULT_PORTS = {
6
- ftp: 21,
7
- gopher: 70,
8
- http: 80,
9
- https: 443,
10
- ws: 80,
11
- wss: 443,
12
- };
13
-
14
- var stringEndsWith = String.prototype.endsWith || function(s) {
15
- return s.length <= this.length &&
16
- this.indexOf(s, this.length - s.length) !== -1;
17
- };
18
-
19
- /**
20
- * @param {string|object} url - The URL, or the result from url.parse.
21
- * @return {string} The URL of the proxy that should handle the request to the
22
- * given URL. If no proxy is set, this will be an empty string.
23
- */
24
- function getProxyForUrl(url) {
25
- var parsedUrl = typeof url === 'string' ? parseUrl(url) : url || {};
26
- var proto = parsedUrl.protocol;
27
- var hostname = parsedUrl.host;
28
- var port = parsedUrl.port;
29
- if (typeof hostname !== 'string' || !hostname || typeof proto !== 'string') {
30
- return ''; // Don't proxy URLs without a valid scheme or host.
31
- }
32
-
33
- proto = proto.split(':', 1)[0];
34
- // Stripping ports in this way instead of using parsedUrl.hostname to make
35
- // sure that the brackets around IPv6 addresses are kept.
36
- hostname = hostname.replace(/:\d*$/, '');
37
- port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
38
- if (!shouldProxy(hostname, port)) {
39
- return ''; // Don't proxy URLs that match NO_PROXY.
40
- }
41
-
42
- var proxy =
43
- getEnv('npm_config_' + proto + '_proxy') ||
44
- getEnv(proto + '_proxy') ||
45
- getEnv('npm_config_proxy') ||
46
- getEnv('all_proxy');
47
- if (proxy && proxy.indexOf('://') === -1) {
48
- // Missing scheme in proxy, default to the requested URL's scheme.
49
- proxy = proto + '://' + proxy;
50
- }
51
- return proxy;
52
- }
53
-
54
- /**
55
- * Determines whether a given URL should be proxied.
56
- *
57
- * @param {string} hostname - The host name of the URL.
58
- * @param {number} port - The effective port of the URL.
59
- * @returns {boolean} Whether the given URL should be proxied.
60
- * @private
61
- */
62
- function shouldProxy(hostname, port) {
63
- var NO_PROXY =
64
- (getEnv('npm_config_no_proxy') || getEnv('no_proxy')).toLowerCase();
65
- if (!NO_PROXY) {
66
- return true; // Always proxy if NO_PROXY is not set.
67
- }
68
- if (NO_PROXY === '*') {
69
- return false; // Never proxy if wildcard is set.
70
- }
71
-
72
- return NO_PROXY.split(/[,\s]/).every(function(proxy) {
73
- if (!proxy) {
74
- return true; // Skip zero-length hosts.
75
- }
76
- var parsedProxy = proxy.match(/^(.+):(\d+)$/);
77
- var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
78
- var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
79
- if (parsedProxyPort && parsedProxyPort !== port) {
80
- return true; // Skip if ports don't match.
81
- }
82
-
83
- if (!/^[.*]/.test(parsedProxyHostname)) {
84
- // No wildcards, so stop proxying if there is an exact match.
85
- return hostname !== parsedProxyHostname;
86
- }
87
-
88
- if (parsedProxyHostname.charAt(0) === '*') {
89
- // Remove leading wildcard.
90
- parsedProxyHostname = parsedProxyHostname.slice(1);
91
- }
92
- // Stop proxying if the hostname ends with the no_proxy host.
93
- return !stringEndsWith.call(hostname, parsedProxyHostname);
94
- });
95
- }
96
-
97
- /**
98
- * Get the value for an environment variable.
99
- *
100
- * @param {string} key - The name of the environment variable.
101
- * @return {string} The value of the environment variable.
102
- * @private
103
- */
104
- function getEnv(key) {
105
- return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || '';
106
- }
107
-
108
- exports.getProxyForUrl = getProxyForUrl;
@@ -1,34 +0,0 @@
1
- {
2
- "name": "proxy-from-env",
3
- "version": "1.1.0",
4
- "description": "Offers getProxyForUrl to get the proxy URL for a URL, respecting the *_PROXY (e.g. HTTP_PROXY) and NO_PROXY environment variables.",
5
- "main": "index.js",
6
- "scripts": {
7
- "lint": "eslint *.js",
8
- "test": "mocha ./test.js --reporter spec",
9
- "test-coverage": "istanbul cover ./node_modules/.bin/_mocha -- --reporter spec"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/Rob--W/proxy-from-env.git"
14
- },
15
- "keywords": [
16
- "proxy",
17
- "http_proxy",
18
- "https_proxy",
19
- "no_proxy",
20
- "environment"
21
- ],
22
- "author": "Rob Wu <rob@robwu.nl> (https://robwu.nl/)",
23
- "license": "MIT",
24
- "bugs": {
25
- "url": "https://github.com/Rob--W/proxy-from-env/issues"
26
- },
27
- "homepage": "https://github.com/Rob--W/proxy-from-env#readme",
28
- "devDependencies": {
29
- "coveralls": "^3.0.9",
30
- "eslint": "^6.8.0",
31
- "istanbul": "^0.4.5",
32
- "mocha": "^7.1.0"
33
- }
34
- }