@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.
- package/build/adapter/fullPageScreenshotAdapter/default.d.ts +4 -0
- package/build/adapter/fullPageScreenshotAdapter/default.d.ts.map +1 -0
- package/build/adapter/fullPageScreenshotAdapter/default.js +13 -0
- package/build/adapter/fullPageScreenshotAdapter/default.js.map +1 -0
- package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.d.ts +1 -9
- package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.d.ts.map +1 -1
- package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.interface.d.ts +24 -0
- package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.interface.d.ts.map +1 -0
- package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.interface.js +2 -0
- package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.interface.js.map +1 -0
- package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.js +8 -18
- package/build/adapter/fullPageScreenshotAdapter/fullPageScreenshotAdapter.js.map +1 -1
- package/build/adapter/fullPageScreenshotAdapter/swipe.d.ts +4 -0
- package/build/adapter/fullPageScreenshotAdapter/swipe.d.ts.map +1 -0
- package/build/adapter/fullPageScreenshotAdapter/swipe.js +19 -0
- package/build/adapter/fullPageScreenshotAdapter/swipe.js.map +1 -0
- package/build/core/domain/valueObjects/track.interface.d.ts +7 -3
- package/build/core/domain/valueObjects/track.interface.d.ts.map +1 -1
- package/build/core/domain/valueObjects/track.interface.js.map +1 -1
- package/build/{port/clientSideOperationPort → core/ports}/clientSideOperationPort.d.ts +1 -1
- package/build/core/ports/clientSideOperationPort.d.ts.map +1 -0
- package/build/core/ports/clientSideOperationPort.js.map +1 -0
- package/build/domain/model/config.interface.d.ts +2 -2
- package/build/domain/model/config.interface.d.ts.map +1 -1
- package/build/domain/model/config.interface.js.map +1 -1
- package/build/domain/model/instances.interface.d.ts +2 -2
- package/build/domain/model/instances.interface.d.ts.map +1 -1
- package/build/domain/model/instances.interface.js.map +1 -1
- package/build/domain/model/screenshotOutput.interface.d.ts +2 -2
- package/build/domain/model/screenshotOutput.interface.d.ts.map +1 -1
- package/build/domain/model/screenshotOutput.interface.js.map +1 -1
- package/build/domain/model/service.interface.d.ts +2 -2
- package/build/domain/model/service.interface.d.ts.map +1 -1
- package/build/domain/model/service.interface.js.map +1 -1
- package/build/domain/service/afterScreenshot.js.map +1 -1
- package/build/domain/service/wopeeService.d.ts +5 -5
- package/build/domain/service/wopeeService.d.ts.map +1 -1
- package/build/domain/service/wopeeService.js +17 -14
- package/build/domain/service/wopeeService.js.map +1 -1
- package/build/index.d.ts +3 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +3 -0
- package/build/index.js.map +1 -1
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.d.ts.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.js.map +1 -0
- package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.d.ts +1 -1
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.d.ts.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.js.map +1 -0
- package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.d.ts +1 -1
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.d.ts.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.js.map +1 -0
- package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.d.ts +1 -1
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.d.ts.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.js.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.d.ts.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.js.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.d.ts.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.js.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.d.ts.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.js.map +1 -0
- package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.d.ts +4 -4
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.d.ts.map +1 -0
- package/build/infrastructure/adapters/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.js.map +1 -0
- package/build/{adapter/driven → infrastructure/adapters}/wdioLoggerAdapter/wdioLoggerAdapter.d.ts +1 -1
- package/build/infrastructure/adapters/wdioLoggerAdapter/wdioLoggerAdapter.d.ts.map +1 -0
- package/build/{adapter → infrastructure/adapters}/wdioLoggerAdapter/wdioLoggerAdapter.js +1 -1
- package/build/infrastructure/adapters/wdioLoggerAdapter/wdioLoggerAdapter.js.map +1 -0
- package/build/utils/versionMetadata.js +2 -2
- package/docs/mobile_native.md +14 -1
- package/node_modules/@autonomous-testing/sdk/.commit.hbs +71 -0
- package/node_modules/@autonomous-testing/sdk/.github/workflows/ci_cd.yaml +12 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationScenarioPayload.interface.d.ts +14 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationScenarioPayload.interface.js +10 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationStepPayload.interface.d.ts +32 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationStepPayload.interface.js +16 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationSuitePayload.interface.d.ts +11 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/createIntegrationSuitePayload.interface.js +9 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/index.d.ts +14 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/index.js +16 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationScenario.interface.d.ts +14 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationScenario.interface.js +10 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.d.ts +24 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationStep.interface.js +20 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationSuite.interface.d.ts +14 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/integrationSuite.interface.js +10 -0
- package/node_modules/@autonomous-testing/sdk/build/core/domain/index.d.ts +1 -1
- package/node_modules/@autonomous-testing/sdk/build/core/domain/index.js +1 -1
- package/node_modules/@autonomous-testing/sdk/build/core/index.d.ts +2 -2
- package/node_modules/@autonomous-testing/sdk/build/core/index.js +2 -2
- package/node_modules/@autonomous-testing/sdk/build/core/ports/api.d.ts +16 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/api.js +7 -0
- package/node_modules/@autonomous-testing/sdk/build/core/ports/index.d.ts +3 -3
- package/node_modules/@autonomous-testing/sdk/build/core/ports/index.js +5 -5
- package/node_modules/@autonomous-testing/sdk/build/index.d.ts +4 -3
- package/node_modules/@autonomous-testing/sdk/build/index.js +5 -3
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.d.ts +19 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.js +123 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.d.ts +9 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.js +144 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/index.js +8 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.d.ts +235 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.js +82 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/mutations.d.ts +5 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/{apolloTrackAdapter/apolloTrackAdapterQueries.js → apolloAdapter/mutations.js} +19 -36
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/consoleLogger.d.ts +1 -1
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/index.d.ts +1 -1
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/consoleLogger/index.js +2 -2
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/index.d.ts +3 -3
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/index.js +3 -3
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/index.d.ts +1 -1
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/index.js +2 -2
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/noLogger/noLogger.d.ts +1 -1
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/index.d.ts +2 -2
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/index.js +2 -2
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloAdapterService.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloAdapterService.js +12 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloService.interface.d.ts +7 -0
- package/node_modules/@autonomous-testing/sdk/build/{core/domain/valueObjects/index.js → infrastructure/services/apolloAdapterService/apolloService.interface.js} +1 -1
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/index.d.ts +4 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/index.js +6 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/index.d.ts +2 -2
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/index.js +2 -2
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.d.ts +16 -2
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerOptions.interface.js +12 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerService.d.ts +2 -2
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/loggerService/loggerService.js +17 -9
- package/node_modules/@autonomous-testing/sdk/build/shared/index.d.ts +2 -2
- package/node_modules/@autonomous-testing/sdk/build/shared/index.js +2 -2
- package/node_modules/@autonomous-testing/sdk/build/shared/metadata/versionMetadata.js +2 -2
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/index.d.ts +3 -2
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/index.js +4 -3
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/index.d.ts +3 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/index.js +7 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/mergeDicts.d.ts +17 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/mergeDicts/mergeDicts.js +29 -0
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/index.d.ts +1 -1
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/zodHelper/index.js +2 -2
- package/node_modules/@autonomous-testing/sdk/package.json +5 -8
- package/node_modules/@autonomous-testing/sdk/release.config.mjs +55 -0
- package/node_modules/axios/CHANGELOG.md +941 -950
- package/node_modules/axios/LICENSE +16 -4
- package/node_modules/axios/README.md +124 -828
- package/node_modules/axios/SECURITY.md +3 -4
- package/node_modules/axios/UPGRADE_GUIDE.md +168 -0
- package/node_modules/axios/dist/axios.js +2343 -3920
- package/node_modules/axios/dist/axios.map +1 -0
- package/node_modules/axios/dist/axios.min.js +3 -2
- package/node_modules/axios/dist/axios.min.map +1 -0
- package/node_modules/axios/index.d.ts +83 -391
- package/node_modules/axios/index.js +1 -43
- package/node_modules/axios/lib/adapters/http.js +219 -480
- package/node_modules/axios/lib/adapters/xhr.js +93 -61
- package/node_modules/axios/lib/axios.js +22 -47
- package/node_modules/axios/lib/cancel/CancelToken.js +89 -91
- package/node_modules/axios/lib/cancel/CanceledError.js +6 -9
- package/node_modules/axios/lib/cancel/isCancel.js +2 -2
- package/node_modules/axios/lib/core/Axios.js +98 -166
- package/node_modules/axios/lib/core/AxiosError.js +9 -23
- package/node_modules/axios/lib/core/InterceptorManager.js +45 -62
- package/node_modules/axios/lib/core/buildFullPath.js +4 -5
- package/node_modules/axios/lib/core/dispatchRequest.js +32 -26
- package/node_modules/axios/lib/core/mergeConfig.js +53 -59
- package/node_modules/axios/lib/core/settle.js +4 -6
- package/node_modules/axios/lib/core/transformData.js +9 -15
- package/node_modules/axios/lib/defaults/env/FormData.js +2 -0
- package/node_modules/axios/lib/defaults/index.js +57 -72
- package/node_modules/axios/lib/defaults/transitional.js +1 -1
- package/node_modules/axios/lib/env/data.js +3 -1
- package/node_modules/axios/lib/helpers/bind.js +7 -3
- package/node_modules/axios/lib/helpers/buildURL.js +33 -26
- package/node_modules/axios/lib/helpers/combineURLs.js +3 -4
- package/node_modules/axios/lib/helpers/cookies.js +50 -39
- package/node_modules/axios/lib/helpers/deprecatedMethod.js +2 -4
- package/node_modules/axios/lib/helpers/isAbsoluteURL.js +2 -3
- package/node_modules/axios/lib/helpers/isAxiosError.js +3 -4
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +46 -45
- package/node_modules/axios/lib/helpers/normalizeHeaderName.js +12 -0
- package/node_modules/axios/lib/helpers/null.js +1 -1
- package/node_modules/axios/lib/helpers/parseHeaders.js +22 -24
- package/node_modules/axios/lib/helpers/parseProtocol.js +3 -3
- package/node_modules/axios/lib/helpers/spread.js +2 -3
- package/node_modules/axios/lib/helpers/toFormData.js +36 -183
- package/node_modules/axios/lib/helpers/validator.js +15 -20
- package/node_modules/axios/lib/utils.js +187 -445
- package/node_modules/axios/package.json +33 -165
- package/node_modules/axios/tsconfig.json +14 -0
- package/node_modules/axios/tslint.json +6 -0
- package/node_modules/process/.eslintrc +21 -0
- package/node_modules/process/LICENSE +22 -0
- package/node_modules/process/README.md +26 -0
- package/node_modules/process/browser.js +184 -0
- package/node_modules/process/index.js +2 -0
- package/node_modules/process/package.json +27 -0
- package/node_modules/process/test.js +199 -0
- package/package.json +2 -2
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.d.ts.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.js.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.d.ts.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.js.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.d.ts.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.js.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.d.ts.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.js.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.d.ts.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.js.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.d.ts.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.js.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.d.ts.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.js.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.d.ts.map +0 -1
- package/build/adapter/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.js.map +0 -1
- package/build/adapter/driven/wdioLoggerAdapter/wdioLoggerAdapter.d.ts.map +0 -1
- package/build/adapter/driven/wdioLoggerAdapter/wdioLoggerAdapter.js +0 -20
- package/build/adapter/driven/wdioLoggerAdapter/wdioLoggerAdapter.js.map +0 -1
- package/build/adapter/wdioLoggerAdapter/wdioLoggerAdapter.d.ts +0 -10
- package/build/adapter/wdioLoggerAdapter/wdioLoggerAdapter.d.ts.map +0 -1
- package/build/adapter/wdioLoggerAdapter/wdioLoggerAdapter.js.map +0 -1
- package/build/port/clientSideOperationPort/clientSideOperationPort.d.ts.map +0 -1
- package/build/port/clientSideOperationPort/clientSideOperationPort.js.map +0 -1
- package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/imageTrackingResult.interface.d.ts +0 -3
- package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/imageTrackingResult.interface.js +0 -3
- package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/index.d.ts +0 -4
- package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/trackPayload.interface.d.ts +0 -3
- package/node_modules/@autonomous-testing/sdk/build/core/domain/valueObjects/trackPayload.interface.js +0 -3
- package/node_modules/@autonomous-testing/sdk/build/core/ports/imageTracker.d.ts +0 -6
- package/node_modules/@autonomous-testing/sdk/build/core/ports/imageTracker.js +0 -7
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.d.ts +0 -39
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.default.d.ts +0 -16
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.default.js +0 -31
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.interface.d.ts +0 -93
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.interface.js +0 -14
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapter.js +0 -153
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapterQueries.d.ts +0 -5
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapterUtils.d.ts +0 -9
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/apolloTrackAdapterUtils.js +0 -26
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/index.d.ts +0 -7
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloTrackAdapter/index.js +0 -8
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/apolloTrackAdapterService.d.ts +0 -4
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/apolloTrackAdapterService.interface.d.ts +0 -51
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/apolloTrackAdapterService.interface.js +0 -24
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/apolloTrackAdapterService.js +0 -13
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/index.d.ts +0 -4
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloTrackAdapterService/index.js +0 -6
- package/node_modules/axios/MIGRATION_GUIDE.md +0 -3
- package/node_modules/axios/dist/axios.js.map +0 -1
- package/node_modules/axios/dist/axios.min.js.map +0 -1
- package/node_modules/axios/dist/browser/axios.cjs +0 -3638
- package/node_modules/axios/dist/browser/axios.cjs.map +0 -1
- package/node_modules/axios/dist/esm/axios.js +0 -3661
- package/node_modules/axios/dist/esm/axios.js.map +0 -1
- package/node_modules/axios/dist/esm/axios.min.js +0 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +0 -1
- package/node_modules/axios/dist/node/axios.cjs +0 -4705
- package/node_modules/axios/dist/node/axios.cjs.map +0 -1
- package/node_modules/axios/index.d.cts +0 -545
- package/node_modules/axios/lib/adapters/adapters.js +0 -79
- package/node_modules/axios/lib/adapters/fetch.js +0 -227
- package/node_modules/axios/lib/core/AxiosHeaders.js +0 -302
- package/node_modules/axios/lib/env/classes/FormData.js +0 -2
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +0 -192
- package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -58
- package/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -71
- package/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +0 -28
- package/node_modules/axios/lib/helpers/callbackify.js +0 -16
- package/node_modules/axios/lib/helpers/composeSignals.js +0 -46
- package/node_modules/axios/lib/helpers/formDataToJSON.js +0 -95
- package/node_modules/axios/lib/helpers/formDataToStream.js +0 -111
- package/node_modules/axios/lib/helpers/fromDataURI.js +0 -53
- package/node_modules/axios/lib/helpers/progressEventReducer.js +0 -32
- package/node_modules/axios/lib/helpers/readBlob.js +0 -15
- package/node_modules/axios/lib/helpers/resolveConfig.js +0 -57
- package/node_modules/axios/lib/helpers/speedometer.js +0 -55
- package/node_modules/axios/lib/helpers/throttle.js +0 -35
- package/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -18
- package/node_modules/axios/lib/helpers/trackStream.js +0 -55
- package/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -3
- package/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -3
- package/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -4
- package/node_modules/axios/lib/platform/browser/index.js +0 -13
- package/node_modules/axios/lib/platform/common/utils.js +0 -50
- package/node_modules/axios/lib/platform/index.js +0 -7
- package/node_modules/axios/lib/platform/node/classes/FormData.js +0 -3
- package/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +0 -4
- package/node_modules/axios/lib/platform/node/index.js +0 -12
- package/node_modules/proxy-from-env/.eslintrc +0 -29
- package/node_modules/proxy-from-env/.travis.yml +0 -10
- package/node_modules/proxy-from-env/LICENSE +0 -20
- package/node_modules/proxy-from-env/README.md +0 -131
- package/node_modules/proxy-from-env/index.js +0 -108
- package/node_modules/proxy-from-env/package.json +0 -34
- package/node_modules/proxy-from-env/test.js +0 -483
- /package/build/{port/clientSideOperationPort → core/ports}/clientSideOperationPort.js +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.d.ts +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getDocumentScrollHeight.js +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopDom.js +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getElementPositionTopWindow.js +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/getScreenDimensions.js +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.d.ts +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/screenDimensions.interfaces.js +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.d.ts +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/scrollElementIntoView.js +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.d.ts +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/clientSideScripts/scrollToPosition.js +0 -0
- /package/build/{adapter → infrastructure/adapters}/desktopBrowserClientOperationAdapter/desktopBrowserClientOperationAdapter.js +0 -0
- /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/HISTORY.md +0 -0
- /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/LICENSE +0 -0
- /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/README.md +0 -0
- /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/db.json +0 -0
- /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/index.js +0 -0
- /package/node_modules/{mime-db → mime-types/node_modules/mime-db}/package.json +0 -0
|
@@ -1,204 +1,136 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const validators = validator.validators;
|
|
13
|
-
|
|
3
|
+
var utils = require('./../utils');
|
|
4
|
+
var buildURL = require('../helpers/buildURL');
|
|
5
|
+
var InterceptorManager = require('./InterceptorManager');
|
|
6
|
+
var dispatchRequest = require('./dispatchRequest');
|
|
7
|
+
var mergeConfig = require('./mergeConfig');
|
|
8
|
+
var buildFullPath = require('./buildFullPath');
|
|
9
|
+
var validator = require('../helpers/validator');
|
|
10
|
+
|
|
11
|
+
var validators = validator.validators;
|
|
14
12
|
/**
|
|
15
13
|
* Create a new instance of Axios
|
|
16
14
|
*
|
|
17
15
|
* @param {Object} instanceConfig The default config for the instance
|
|
18
|
-
*
|
|
19
|
-
* @return {Axios} A new instance of Axios
|
|
20
16
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
17
|
+
function Axios(instanceConfig) {
|
|
18
|
+
this.defaults = instanceConfig;
|
|
19
|
+
this.interceptors = {
|
|
20
|
+
request: new InterceptorManager(),
|
|
21
|
+
response: new InterceptorManager()
|
|
22
|
+
};
|
|
23
|
+
}
|
|
29
24
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
let dummy;
|
|
44
|
-
|
|
45
|
-
Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());
|
|
46
|
-
|
|
47
|
-
// slice off the Error: ... line
|
|
48
|
-
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
|
|
49
|
-
try {
|
|
50
|
-
if (!err.stack) {
|
|
51
|
-
err.stack = stack;
|
|
52
|
-
// match without the 2 top stack lines
|
|
53
|
-
} else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) {
|
|
54
|
-
err.stack += '\n' + stack
|
|
55
|
-
}
|
|
56
|
-
} catch (e) {
|
|
57
|
-
// ignore the case where "stack" is an un-writable property
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
throw err;
|
|
62
|
-
}
|
|
25
|
+
/**
|
|
26
|
+
* Dispatch a request
|
|
27
|
+
*
|
|
28
|
+
* @param {Object} config The config specific for this request (merged with this.defaults)
|
|
29
|
+
*/
|
|
30
|
+
Axios.prototype.request = function request(configOrUrl, config) {
|
|
31
|
+
/*eslint no-param-reassign:0*/
|
|
32
|
+
// Allow for axios('example/url'[, config]) a la fetch API
|
|
33
|
+
if (typeof configOrUrl === 'string') {
|
|
34
|
+
config = config || {};
|
|
35
|
+
config.url = configOrUrl;
|
|
36
|
+
} else {
|
|
37
|
+
config = configOrUrl || {};
|
|
63
38
|
}
|
|
64
39
|
|
|
65
|
-
|
|
66
|
-
/*eslint no-param-reassign:0*/
|
|
67
|
-
// Allow for axios('example/url'[, config]) a la fetch API
|
|
68
|
-
if (typeof configOrUrl === 'string') {
|
|
69
|
-
config = config || {};
|
|
70
|
-
config.url = configOrUrl;
|
|
71
|
-
} else {
|
|
72
|
-
config = configOrUrl || {};
|
|
73
|
-
}
|
|
40
|
+
config = mergeConfig(this.defaults, config);
|
|
74
41
|
|
|
75
|
-
|
|
42
|
+
// Set config.method
|
|
43
|
+
if (config.method) {
|
|
44
|
+
config.method = config.method.toLowerCase();
|
|
45
|
+
} else if (this.defaults.method) {
|
|
46
|
+
config.method = this.defaults.method.toLowerCase();
|
|
47
|
+
} else {
|
|
48
|
+
config.method = 'get';
|
|
49
|
+
}
|
|
76
50
|
|
|
77
|
-
|
|
51
|
+
var transitional = config.transitional;
|
|
78
52
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
53
|
+
if (transitional !== undefined) {
|
|
54
|
+
validator.assertOptions(transitional, {
|
|
55
|
+
silentJSONParsing: validators.transitional(validators.boolean),
|
|
56
|
+
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
57
|
+
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
58
|
+
}, false);
|
|
59
|
+
}
|
|
86
60
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
validator.assertOptions(paramsSerializer, {
|
|
94
|
-
encode: validators.function,
|
|
95
|
-
serialize: validators.function
|
|
96
|
-
}, true);
|
|
97
|
-
}
|
|
61
|
+
// filter out skipped interceptors
|
|
62
|
+
var requestInterceptorChain = [];
|
|
63
|
+
var synchronousRequestInterceptors = true;
|
|
64
|
+
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
65
|
+
if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
|
|
66
|
+
return;
|
|
98
67
|
}
|
|
99
68
|
|
|
100
|
-
|
|
101
|
-
config.method = (config.method || this.defaults.method || 'get').toLowerCase();
|
|
102
|
-
|
|
103
|
-
// Flatten headers
|
|
104
|
-
let contextHeaders = headers && utils.merge(
|
|
105
|
-
headers.common,
|
|
106
|
-
headers[config.method]
|
|
107
|
-
);
|
|
108
|
-
|
|
109
|
-
headers && utils.forEach(
|
|
110
|
-
['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
|
|
111
|
-
(method) => {
|
|
112
|
-
delete headers[method];
|
|
113
|
-
}
|
|
114
|
-
);
|
|
69
|
+
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
115
70
|
|
|
116
|
-
|
|
71
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
72
|
+
});
|
|
117
73
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
74
|
+
var responseInterceptorChain = [];
|
|
75
|
+
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
76
|
+
responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
77
|
+
});
|
|
125
78
|
|
|
126
|
-
|
|
79
|
+
var promise;
|
|
127
80
|
|
|
128
|
-
|
|
129
|
-
|
|
81
|
+
if (!synchronousRequestInterceptors) {
|
|
82
|
+
var chain = [dispatchRequest, undefined];
|
|
130
83
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
134
|
-
});
|
|
84
|
+
Array.prototype.unshift.apply(chain, requestInterceptorChain);
|
|
85
|
+
chain = chain.concat(responseInterceptorChain);
|
|
135
86
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
if (!synchronousRequestInterceptors) {
|
|
141
|
-
const chain = [dispatchRequest.bind(this), undefined];
|
|
142
|
-
chain.unshift.apply(chain, requestInterceptorChain);
|
|
143
|
-
chain.push.apply(chain, responseInterceptorChain);
|
|
144
|
-
len = chain.length;
|
|
145
|
-
|
|
146
|
-
promise = Promise.resolve(config);
|
|
147
|
-
|
|
148
|
-
while (i < len) {
|
|
149
|
-
promise = promise.then(chain[i++], chain[i++]);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
return promise;
|
|
87
|
+
promise = Promise.resolve(config);
|
|
88
|
+
while (chain.length) {
|
|
89
|
+
promise = promise.then(chain.shift(), chain.shift());
|
|
153
90
|
}
|
|
154
91
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
let newConfig = config;
|
|
158
|
-
|
|
159
|
-
i = 0;
|
|
92
|
+
return promise;
|
|
93
|
+
}
|
|
160
94
|
|
|
161
|
-
while (i < len) {
|
|
162
|
-
const onFulfilled = requestInterceptorChain[i++];
|
|
163
|
-
const onRejected = requestInterceptorChain[i++];
|
|
164
|
-
try {
|
|
165
|
-
newConfig = onFulfilled(newConfig);
|
|
166
|
-
} catch (error) {
|
|
167
|
-
onRejected.call(this, error);
|
|
168
|
-
break;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
95
|
|
|
96
|
+
var newConfig = config;
|
|
97
|
+
while (requestInterceptorChain.length) {
|
|
98
|
+
var onFulfilled = requestInterceptorChain.shift();
|
|
99
|
+
var onRejected = requestInterceptorChain.shift();
|
|
172
100
|
try {
|
|
173
|
-
|
|
101
|
+
newConfig = onFulfilled(newConfig);
|
|
174
102
|
} catch (error) {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
i = 0;
|
|
179
|
-
len = responseInterceptorChain.length;
|
|
180
|
-
|
|
181
|
-
while (i < len) {
|
|
182
|
-
promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
|
|
103
|
+
onRejected(error);
|
|
104
|
+
break;
|
|
183
105
|
}
|
|
106
|
+
}
|
|
184
107
|
|
|
185
|
-
|
|
108
|
+
try {
|
|
109
|
+
promise = dispatchRequest(newConfig);
|
|
110
|
+
} catch (error) {
|
|
111
|
+
return Promise.reject(error);
|
|
186
112
|
}
|
|
187
113
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
191
|
-
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
114
|
+
while (responseInterceptorChain.length) {
|
|
115
|
+
promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
|
|
192
116
|
}
|
|
193
|
-
|
|
117
|
+
|
|
118
|
+
return promise;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
Axios.prototype.getUri = function getUri(config) {
|
|
122
|
+
config = mergeConfig(this.defaults, config);
|
|
123
|
+
var fullPath = buildFullPath(config.baseURL, config.url);
|
|
124
|
+
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
125
|
+
};
|
|
194
126
|
|
|
195
127
|
// Provide aliases for supported request methods
|
|
196
128
|
utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
|
|
197
129
|
/*eslint func-names:0*/
|
|
198
130
|
Axios.prototype[method] = function(url, config) {
|
|
199
131
|
return this.request(mergeConfig(config || {}, {
|
|
200
|
-
method,
|
|
201
|
-
url,
|
|
132
|
+
method: method,
|
|
133
|
+
url: url,
|
|
202
134
|
data: (config || {}).data
|
|
203
135
|
}));
|
|
204
136
|
};
|
|
@@ -210,12 +142,12 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
210
142
|
function generateHTTPMethod(isForm) {
|
|
211
143
|
return function httpMethod(url, data, config) {
|
|
212
144
|
return this.request(mergeConfig(config || {}, {
|
|
213
|
-
method,
|
|
145
|
+
method: method,
|
|
214
146
|
headers: isForm ? {
|
|
215
147
|
'Content-Type': 'multipart/form-data'
|
|
216
148
|
} : {},
|
|
217
|
-
url,
|
|
218
|
-
data
|
|
149
|
+
url: url,
|
|
150
|
+
data: data
|
|
219
151
|
}));
|
|
220
152
|
};
|
|
221
153
|
}
|
|
@@ -225,4 +157,4 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
225
157
|
Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
|
|
226
158
|
});
|
|
227
159
|
|
|
228
|
-
|
|
160
|
+
module.exports = Axios;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
var utils = require('../utils');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Create an Error with the specified message, config, error code, request and response.
|
|
@@ -10,18 +10,10 @@ import utils from '../utils.js';
|
|
|
10
10
|
* @param {Object} [config] The config.
|
|
11
11
|
* @param {Object} [request] The request.
|
|
12
12
|
* @param {Object} [response] The response.
|
|
13
|
-
*
|
|
14
13
|
* @returns {Error} The created error.
|
|
15
14
|
*/
|
|
16
15
|
function AxiosError(message, code, config, request, response) {
|
|
17
16
|
Error.call(this);
|
|
18
|
-
|
|
19
|
-
if (Error.captureStackTrace) {
|
|
20
|
-
Error.captureStackTrace(this, this.constructor);
|
|
21
|
-
} else {
|
|
22
|
-
this.stack = (new Error()).stack;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
17
|
this.message = message;
|
|
26
18
|
this.name = 'AxiosError';
|
|
27
19
|
code && (this.code = code);
|
|
@@ -45,15 +37,15 @@ utils.inherits(AxiosError, Error, {
|
|
|
45
37
|
columnNumber: this.columnNumber,
|
|
46
38
|
stack: this.stack,
|
|
47
39
|
// Axios
|
|
48
|
-
config:
|
|
40
|
+
config: this.config,
|
|
49
41
|
code: this.code,
|
|
50
42
|
status: this.response && this.response.status ? this.response.status : null
|
|
51
43
|
};
|
|
52
44
|
}
|
|
53
45
|
});
|
|
54
46
|
|
|
55
|
-
|
|
56
|
-
|
|
47
|
+
var prototype = AxiosError.prototype;
|
|
48
|
+
var descriptors = {};
|
|
57
49
|
|
|
58
50
|
[
|
|
59
51
|
'ERR_BAD_OPTION_VALUE',
|
|
@@ -65,11 +57,9 @@ const descriptors = {};
|
|
|
65
57
|
'ERR_DEPRECATED',
|
|
66
58
|
'ERR_BAD_RESPONSE',
|
|
67
59
|
'ERR_BAD_REQUEST',
|
|
68
|
-
'ERR_CANCELED'
|
|
69
|
-
'ERR_NOT_SUPPORT',
|
|
70
|
-
'ERR_INVALID_URL'
|
|
60
|
+
'ERR_CANCELED'
|
|
71
61
|
// eslint-disable-next-line func-names
|
|
72
|
-
].forEach(code
|
|
62
|
+
].forEach(function(code) {
|
|
73
63
|
descriptors[code] = {value: code};
|
|
74
64
|
});
|
|
75
65
|
|
|
@@ -77,19 +67,15 @@ Object.defineProperties(AxiosError, descriptors);
|
|
|
77
67
|
Object.defineProperty(prototype, 'isAxiosError', {value: true});
|
|
78
68
|
|
|
79
69
|
// eslint-disable-next-line func-names
|
|
80
|
-
AxiosError.from = (error, code, config, request, response, customProps)
|
|
81
|
-
|
|
70
|
+
AxiosError.from = function(error, code, config, request, response, customProps) {
|
|
71
|
+
var axiosError = Object.create(prototype);
|
|
82
72
|
|
|
83
73
|
utils.toFlatObject(error, axiosError, function filter(obj) {
|
|
84
74
|
return obj !== Error.prototype;
|
|
85
|
-
}, prop => {
|
|
86
|
-
return prop !== 'isAxiosError';
|
|
87
75
|
});
|
|
88
76
|
|
|
89
77
|
AxiosError.call(axiosError, error.message, code, config, request, response);
|
|
90
78
|
|
|
91
|
-
axiosError.cause = error;
|
|
92
|
-
|
|
93
79
|
axiosError.name = error.name;
|
|
94
80
|
|
|
95
81
|
customProps && Object.assign(axiosError, customProps);
|
|
@@ -97,4 +83,4 @@ AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
|
97
83
|
return axiosError;
|
|
98
84
|
};
|
|
99
85
|
|
|
100
|
-
|
|
86
|
+
module.exports = AxiosError;
|
|
@@ -1,71 +1,54 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
var utils = require('./../utils');
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
5
|
+
function InterceptorManager() {
|
|
6
|
+
this.handlers = [];
|
|
7
|
+
}
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Add a new interceptor to the stack
|
|
11
|
+
*
|
|
12
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
13
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
14
|
+
*
|
|
15
|
+
* @return {Number} An ID used to remove interceptor later
|
|
16
|
+
*/
|
|
17
|
+
InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
|
|
18
|
+
this.handlers.push({
|
|
19
|
+
fulfilled: fulfilled,
|
|
20
|
+
rejected: rejected,
|
|
21
|
+
synchronous: options ? options.synchronous : false,
|
|
22
|
+
runWhen: options ? options.runWhen : null
|
|
23
|
+
});
|
|
24
|
+
return this.handlers.length - 1;
|
|
25
|
+
};
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
if (this.handlers[id]) {
|
|
37
|
-
this.handlers[id] = null;
|
|
38
|
-
}
|
|
27
|
+
/**
|
|
28
|
+
* Remove an interceptor from the stack
|
|
29
|
+
*
|
|
30
|
+
* @param {Number} id The ID that was returned by `use`
|
|
31
|
+
*/
|
|
32
|
+
InterceptorManager.prototype.eject = function eject(id) {
|
|
33
|
+
if (this.handlers[id]) {
|
|
34
|
+
this.handlers[id] = null;
|
|
39
35
|
}
|
|
36
|
+
};
|
|
40
37
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Iterate over all the registered interceptors
|
|
40
|
+
*
|
|
41
|
+
* This method is particularly useful for skipping over any
|
|
42
|
+
* interceptors that may have become `null` calling `eject`.
|
|
43
|
+
*
|
|
44
|
+
* @param {Function} fn The function to call for each interceptor
|
|
45
|
+
*/
|
|
46
|
+
InterceptorManager.prototype.forEach = function forEach(fn) {
|
|
47
|
+
utils.forEach(this.handlers, function forEachHandler(h) {
|
|
48
|
+
if (h !== null) {
|
|
49
|
+
fn(h);
|
|
49
50
|
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Iterate over all the registered interceptors
|
|
54
|
-
*
|
|
55
|
-
* This method is particularly useful for skipping over any
|
|
56
|
-
* interceptors that may have become `null` calling `eject`.
|
|
57
|
-
*
|
|
58
|
-
* @param {Function} fn The function to call for each interceptor
|
|
59
|
-
*
|
|
60
|
-
* @returns {void}
|
|
61
|
-
*/
|
|
62
|
-
forEach(fn) {
|
|
63
|
-
utils.forEach(this.handlers, function forEachHandler(h) {
|
|
64
|
-
if (h !== null) {
|
|
65
|
-
fn(h);
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
}
|
|
51
|
+
});
|
|
52
|
+
};
|
|
70
53
|
|
|
71
|
-
|
|
54
|
+
module.exports = InterceptorManager;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
var isAbsoluteURL = require('../helpers/isAbsoluteURL');
|
|
4
|
+
var combineURLs = require('../helpers/combineURLs');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Creates a new URL by combining the baseURL with the requestedURL,
|
|
@@ -10,12 +10,11 @@ import combineURLs from '../helpers/combineURLs.js';
|
|
|
10
10
|
*
|
|
11
11
|
* @param {string} baseURL The base URL
|
|
12
12
|
* @param {string} requestedURL Absolute or relative URL to combine
|
|
13
|
-
*
|
|
14
13
|
* @returns {string} The combined full path
|
|
15
14
|
*/
|
|
16
|
-
|
|
15
|
+
module.exports = function buildFullPath(baseURL, requestedURL) {
|
|
17
16
|
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
|
18
17
|
return combineURLs(baseURL, requestedURL);
|
|
19
18
|
}
|
|
20
19
|
return requestedURL;
|
|
21
|
-
}
|
|
20
|
+
};
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import adapters from "../adapters/adapters.js";
|
|
3
|
+
var utils = require('./../utils');
|
|
4
|
+
var transformData = require('./transformData');
|
|
5
|
+
var isCancel = require('../cancel/isCancel');
|
|
6
|
+
var defaults = require('../defaults');
|
|
7
|
+
var CanceledError = require('../cancel/CanceledError');
|
|
9
8
|
|
|
10
9
|
/**
|
|
11
10
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
12
|
-
*
|
|
13
|
-
* @param {Object} config The config that is to be used for the request
|
|
14
|
-
*
|
|
15
|
-
* @returns {void}
|
|
16
11
|
*/
|
|
17
12
|
function throwIfCancellationRequested(config) {
|
|
18
13
|
if (config.cancelToken) {
|
|
@@ -20,7 +15,7 @@ function throwIfCancellationRequested(config) {
|
|
|
20
15
|
}
|
|
21
16
|
|
|
22
17
|
if (config.signal && config.signal.aborted) {
|
|
23
|
-
throw new CanceledError(
|
|
18
|
+
throw new CanceledError();
|
|
24
19
|
}
|
|
25
20
|
}
|
|
26
21
|
|
|
@@ -28,25 +23,37 @@ function throwIfCancellationRequested(config) {
|
|
|
28
23
|
* Dispatch a request to the server using the configured adapter.
|
|
29
24
|
*
|
|
30
25
|
* @param {object} config The config that is to be used for the request
|
|
31
|
-
*
|
|
32
26
|
* @returns {Promise} The Promise to be fulfilled
|
|
33
27
|
*/
|
|
34
|
-
|
|
28
|
+
module.exports = function dispatchRequest(config) {
|
|
35
29
|
throwIfCancellationRequested(config);
|
|
36
30
|
|
|
37
|
-
|
|
31
|
+
// Ensure headers exist
|
|
32
|
+
config.headers = config.headers || {};
|
|
38
33
|
|
|
39
34
|
// Transform request data
|
|
40
35
|
config.data = transformData.call(
|
|
41
36
|
config,
|
|
37
|
+
config.data,
|
|
38
|
+
config.headers,
|
|
42
39
|
config.transformRequest
|
|
43
40
|
);
|
|
44
41
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
// Flatten headers
|
|
43
|
+
config.headers = utils.merge(
|
|
44
|
+
config.headers.common || {},
|
|
45
|
+
config.headers[config.method] || {},
|
|
46
|
+
config.headers
|
|
47
|
+
);
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
utils.forEach(
|
|
50
|
+
['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
|
|
51
|
+
function cleanHeaderConfig(method) {
|
|
52
|
+
delete config.headers[method];
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
var adapter = config.adapter || defaults.adapter;
|
|
50
57
|
|
|
51
58
|
return adapter(config).then(function onAdapterResolution(response) {
|
|
52
59
|
throwIfCancellationRequested(config);
|
|
@@ -54,12 +61,11 @@ export default function dispatchRequest(config) {
|
|
|
54
61
|
// Transform response data
|
|
55
62
|
response.data = transformData.call(
|
|
56
63
|
config,
|
|
57
|
-
|
|
58
|
-
response
|
|
64
|
+
response.data,
|
|
65
|
+
response.headers,
|
|
66
|
+
config.transformResponse
|
|
59
67
|
);
|
|
60
68
|
|
|
61
|
-
response.headers = AxiosHeaders.from(response.headers);
|
|
62
|
-
|
|
63
69
|
return response;
|
|
64
70
|
}, function onAdapterRejection(reason) {
|
|
65
71
|
if (!isCancel(reason)) {
|
|
@@ -69,13 +75,13 @@ export default function dispatchRequest(config) {
|
|
|
69
75
|
if (reason && reason.response) {
|
|
70
76
|
reason.response.data = transformData.call(
|
|
71
77
|
config,
|
|
72
|
-
|
|
73
|
-
reason.response
|
|
78
|
+
reason.response.data,
|
|
79
|
+
reason.response.headers,
|
|
80
|
+
config.transformResponse
|
|
74
81
|
);
|
|
75
|
-
reason.response.headers = AxiosHeaders.from(reason.response.headers);
|
|
76
82
|
}
|
|
77
83
|
}
|
|
78
84
|
|
|
79
85
|
return Promise.reject(reason);
|
|
80
86
|
});
|
|
81
|
-
}
|
|
87
|
+
};
|