@wopee-io/wopee.wdio 4.0.0 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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,73 +1,76 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
var bind = require('./helpers/bind');
|
|
4
4
|
|
|
5
5
|
// utils is a library of generic helper functions non-specific to axios
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
const {getPrototypeOf} = Object;
|
|
7
|
+
var toString = Object.prototype.toString;
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
// eslint-disable-next-line func-names
|
|
10
|
+
var kindOf = (function(cache) {
|
|
11
|
+
// eslint-disable-next-line func-names
|
|
12
|
+
return function(thing) {
|
|
13
|
+
var str = toString.call(thing);
|
|
12
14
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
15
|
+
};
|
|
13
16
|
})(Object.create(null));
|
|
14
17
|
|
|
15
|
-
|
|
18
|
+
function kindOfTest(type) {
|
|
16
19
|
type = type.toLowerCase();
|
|
17
|
-
return
|
|
20
|
+
return function isKindOf(thing) {
|
|
21
|
+
return kindOf(thing) === type;
|
|
22
|
+
};
|
|
18
23
|
}
|
|
19
24
|
|
|
20
|
-
const typeOfTest = type => thing => typeof thing === type;
|
|
21
|
-
|
|
22
25
|
/**
|
|
23
26
|
* Determine if a value is an Array
|
|
24
27
|
*
|
|
25
28
|
* @param {Object} val The value to test
|
|
26
|
-
*
|
|
27
29
|
* @returns {boolean} True if value is an Array, otherwise false
|
|
28
30
|
*/
|
|
29
|
-
|
|
31
|
+
function isArray(val) {
|
|
32
|
+
return Array.isArray(val);
|
|
33
|
+
}
|
|
30
34
|
|
|
31
35
|
/**
|
|
32
36
|
* Determine if a value is undefined
|
|
33
37
|
*
|
|
34
|
-
* @param {
|
|
35
|
-
*
|
|
38
|
+
* @param {Object} val The value to test
|
|
36
39
|
* @returns {boolean} True if the value is undefined, otherwise false
|
|
37
40
|
*/
|
|
38
|
-
|
|
41
|
+
function isUndefined(val) {
|
|
42
|
+
return typeof val === 'undefined';
|
|
43
|
+
}
|
|
39
44
|
|
|
40
45
|
/**
|
|
41
46
|
* Determine if a value is a Buffer
|
|
42
47
|
*
|
|
43
|
-
* @param {
|
|
44
|
-
*
|
|
48
|
+
* @param {Object} val The value to test
|
|
45
49
|
* @returns {boolean} True if value is a Buffer, otherwise false
|
|
46
50
|
*/
|
|
47
51
|
function isBuffer(val) {
|
|
48
52
|
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
|
|
49
|
-
&&
|
|
53
|
+
&& typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
/**
|
|
53
57
|
* Determine if a value is an ArrayBuffer
|
|
54
58
|
*
|
|
55
|
-
* @
|
|
56
|
-
*
|
|
59
|
+
* @function
|
|
60
|
+
* @param {Object} val The value to test
|
|
57
61
|
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
|
|
58
62
|
*/
|
|
59
|
-
|
|
63
|
+
var isArrayBuffer = kindOfTest('ArrayBuffer');
|
|
60
64
|
|
|
61
65
|
|
|
62
66
|
/**
|
|
63
67
|
* Determine if a value is a view on an ArrayBuffer
|
|
64
68
|
*
|
|
65
|
-
* @param {
|
|
66
|
-
*
|
|
69
|
+
* @param {Object} val The value to test
|
|
67
70
|
* @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
|
|
68
71
|
*/
|
|
69
72
|
function isArrayBufferView(val) {
|
|
70
|
-
|
|
73
|
+
var result;
|
|
71
74
|
if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
|
|
72
75
|
result = ArrayBuffer.isView(val);
|
|
73
76
|
} else {
|
|
@@ -79,147 +82,163 @@ function isArrayBufferView(val) {
|
|
|
79
82
|
/**
|
|
80
83
|
* Determine if a value is a String
|
|
81
84
|
*
|
|
82
|
-
* @param {
|
|
83
|
-
*
|
|
85
|
+
* @param {Object} val The value to test
|
|
84
86
|
* @returns {boolean} True if value is a String, otherwise false
|
|
85
87
|
*/
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
* Determine if a value is a Function
|
|
90
|
-
*
|
|
91
|
-
* @param {*} val The value to test
|
|
92
|
-
* @returns {boolean} True if value is a Function, otherwise false
|
|
93
|
-
*/
|
|
94
|
-
const isFunction = typeOfTest('function');
|
|
88
|
+
function isString(val) {
|
|
89
|
+
return typeof val === 'string';
|
|
90
|
+
}
|
|
95
91
|
|
|
96
92
|
/**
|
|
97
93
|
* Determine if a value is a Number
|
|
98
94
|
*
|
|
99
|
-
* @param {
|
|
100
|
-
*
|
|
95
|
+
* @param {Object} val The value to test
|
|
101
96
|
* @returns {boolean} True if value is a Number, otherwise false
|
|
102
97
|
*/
|
|
103
|
-
|
|
98
|
+
function isNumber(val) {
|
|
99
|
+
return typeof val === 'number';
|
|
100
|
+
}
|
|
104
101
|
|
|
105
102
|
/**
|
|
106
103
|
* Determine if a value is an Object
|
|
107
104
|
*
|
|
108
|
-
* @param {
|
|
109
|
-
*
|
|
105
|
+
* @param {Object} val The value to test
|
|
110
106
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
111
107
|
*/
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
* Determine if a value is a Boolean
|
|
116
|
-
*
|
|
117
|
-
* @param {*} thing The value to test
|
|
118
|
-
* @returns {boolean} True if value is a Boolean, otherwise false
|
|
119
|
-
*/
|
|
120
|
-
const isBoolean = thing => thing === true || thing === false;
|
|
108
|
+
function isObject(val) {
|
|
109
|
+
return val !== null && typeof val === 'object';
|
|
110
|
+
}
|
|
121
111
|
|
|
122
112
|
/**
|
|
123
113
|
* Determine if a value is a plain Object
|
|
124
114
|
*
|
|
125
|
-
* @param {
|
|
126
|
-
*
|
|
127
|
-
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
115
|
+
* @param {Object} val The value to test
|
|
116
|
+
* @return {boolean} True if value is a plain Object, otherwise false
|
|
128
117
|
*/
|
|
129
|
-
|
|
118
|
+
function isPlainObject(val) {
|
|
130
119
|
if (kindOf(val) !== 'object') {
|
|
131
120
|
return false;
|
|
132
121
|
}
|
|
133
122
|
|
|
134
|
-
|
|
135
|
-
return
|
|
123
|
+
var prototype = Object.getPrototypeOf(val);
|
|
124
|
+
return prototype === null || prototype === Object.prototype;
|
|
136
125
|
}
|
|
137
126
|
|
|
138
127
|
/**
|
|
139
128
|
* Determine if a value is a Date
|
|
140
129
|
*
|
|
141
|
-
* @
|
|
142
|
-
*
|
|
130
|
+
* @function
|
|
131
|
+
* @param {Object} val The value to test
|
|
143
132
|
* @returns {boolean} True if value is a Date, otherwise false
|
|
144
133
|
*/
|
|
145
|
-
|
|
134
|
+
var isDate = kindOfTest('Date');
|
|
146
135
|
|
|
147
136
|
/**
|
|
148
137
|
* Determine if a value is a File
|
|
149
138
|
*
|
|
150
|
-
* @
|
|
151
|
-
*
|
|
139
|
+
* @function
|
|
140
|
+
* @param {Object} val The value to test
|
|
152
141
|
* @returns {boolean} True if value is a File, otherwise false
|
|
153
142
|
*/
|
|
154
|
-
|
|
143
|
+
var isFile = kindOfTest('File');
|
|
155
144
|
|
|
156
145
|
/**
|
|
157
146
|
* Determine if a value is a Blob
|
|
158
147
|
*
|
|
159
|
-
* @
|
|
160
|
-
*
|
|
148
|
+
* @function
|
|
149
|
+
* @param {Object} val The value to test
|
|
161
150
|
* @returns {boolean} True if value is a Blob, otherwise false
|
|
162
151
|
*/
|
|
163
|
-
|
|
152
|
+
var isBlob = kindOfTest('Blob');
|
|
164
153
|
|
|
165
154
|
/**
|
|
166
155
|
* Determine if a value is a FileList
|
|
167
156
|
*
|
|
168
|
-
* @
|
|
169
|
-
*
|
|
157
|
+
* @function
|
|
158
|
+
* @param {Object} val The value to test
|
|
170
159
|
* @returns {boolean} True if value is a File, otherwise false
|
|
171
160
|
*/
|
|
172
|
-
|
|
161
|
+
var isFileList = kindOfTest('FileList');
|
|
173
162
|
|
|
174
163
|
/**
|
|
175
|
-
* Determine if a value is a
|
|
164
|
+
* Determine if a value is a Function
|
|
176
165
|
*
|
|
177
|
-
* @param {
|
|
166
|
+
* @param {Object} val The value to test
|
|
167
|
+
* @returns {boolean} True if value is a Function, otherwise false
|
|
168
|
+
*/
|
|
169
|
+
function isFunction(val) {
|
|
170
|
+
return toString.call(val) === '[object Function]';
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Determine if a value is a Stream
|
|
178
175
|
*
|
|
176
|
+
* @param {Object} val The value to test
|
|
179
177
|
* @returns {boolean} True if value is a Stream, otherwise false
|
|
180
178
|
*/
|
|
181
|
-
|
|
179
|
+
function isStream(val) {
|
|
180
|
+
return isObject(val) && isFunction(val.pipe);
|
|
181
|
+
}
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
184
|
* Determine if a value is a FormData
|
|
185
185
|
*
|
|
186
|
-
* @param {
|
|
187
|
-
*
|
|
186
|
+
* @param {Object} thing The value to test
|
|
188
187
|
* @returns {boolean} True if value is an FormData, otherwise false
|
|
189
188
|
*/
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
function isFormData(thing) {
|
|
190
|
+
var pattern = '[object FormData]';
|
|
192
191
|
return thing && (
|
|
193
|
-
(typeof FormData === 'function' && thing instanceof FormData) ||
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
(kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
|
|
198
|
-
)
|
|
199
|
-
)
|
|
200
|
-
)
|
|
192
|
+
(typeof FormData === 'function' && thing instanceof FormData) ||
|
|
193
|
+
toString.call(thing) === pattern ||
|
|
194
|
+
(isFunction(thing.toString) && thing.toString() === pattern)
|
|
195
|
+
);
|
|
201
196
|
}
|
|
202
197
|
|
|
203
198
|
/**
|
|
204
199
|
* Determine if a value is a URLSearchParams object
|
|
205
|
-
*
|
|
206
|
-
* @param {
|
|
207
|
-
*
|
|
200
|
+
* @function
|
|
201
|
+
* @param {Object} val The value to test
|
|
208
202
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
209
203
|
*/
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);
|
|
204
|
+
var isURLSearchParams = kindOfTest('URLSearchParams');
|
|
213
205
|
|
|
214
206
|
/**
|
|
215
207
|
* Trim excess whitespace off the beginning and end of a string
|
|
216
208
|
*
|
|
217
209
|
* @param {String} str The String to trim
|
|
218
|
-
*
|
|
219
210
|
* @returns {String} The String freed of excess whitespace
|
|
220
211
|
*/
|
|
221
|
-
|
|
222
|
-
str.trim() : str.replace(
|
|
212
|
+
function trim(str) {
|
|
213
|
+
return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Determine if we're running in a standard browser environment
|
|
218
|
+
*
|
|
219
|
+
* This allows axios to run in a web worker, and react-native.
|
|
220
|
+
* Both environments support XMLHttpRequest, but not fully standard globals.
|
|
221
|
+
*
|
|
222
|
+
* web workers:
|
|
223
|
+
* typeof window -> undefined
|
|
224
|
+
* typeof document -> undefined
|
|
225
|
+
*
|
|
226
|
+
* react-native:
|
|
227
|
+
* navigator.product -> 'ReactNative'
|
|
228
|
+
* nativescript
|
|
229
|
+
* navigator.product -> 'NativeScript' or 'NS'
|
|
230
|
+
*/
|
|
231
|
+
function isStandardBrowserEnv() {
|
|
232
|
+
if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
|
|
233
|
+
navigator.product === 'NativeScript' ||
|
|
234
|
+
navigator.product === 'NS')) {
|
|
235
|
+
return false;
|
|
236
|
+
}
|
|
237
|
+
return (
|
|
238
|
+
typeof window !== 'undefined' &&
|
|
239
|
+
typeof document !== 'undefined'
|
|
240
|
+
);
|
|
241
|
+
}
|
|
223
242
|
|
|
224
243
|
/**
|
|
225
244
|
* Iterate over an Array or an Object invoking a function for each item.
|
|
@@ -232,19 +251,13 @@ const trim = (str) => str.trim ?
|
|
|
232
251
|
*
|
|
233
252
|
* @param {Object|Array} obj The object to iterate
|
|
234
253
|
* @param {Function} fn The callback to invoke for each item
|
|
235
|
-
*
|
|
236
|
-
* @param {Boolean} [allOwnKeys = false]
|
|
237
|
-
* @returns {any}
|
|
238
254
|
*/
|
|
239
|
-
function forEach(obj, fn
|
|
255
|
+
function forEach(obj, fn) {
|
|
240
256
|
// Don't bother if no value provided
|
|
241
257
|
if (obj === null || typeof obj === 'undefined') {
|
|
242
258
|
return;
|
|
243
259
|
}
|
|
244
260
|
|
|
245
|
-
let i;
|
|
246
|
-
let l;
|
|
247
|
-
|
|
248
261
|
// Force an array if not already something iterable
|
|
249
262
|
if (typeof obj !== 'object') {
|
|
250
263
|
/*eslint no-param-reassign:0*/
|
|
@@ -253,44 +266,19 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
253
266
|
|
|
254
267
|
if (isArray(obj)) {
|
|
255
268
|
// Iterate over array values
|
|
256
|
-
for (i = 0, l = obj.length; i < l; i++) {
|
|
269
|
+
for (var i = 0, l = obj.length; i < l; i++) {
|
|
257
270
|
fn.call(null, obj[i], i, obj);
|
|
258
271
|
}
|
|
259
272
|
} else {
|
|
260
273
|
// Iterate over object keys
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
for (i = 0; i < len; i++) {
|
|
266
|
-
key = keys[i];
|
|
267
|
-
fn.call(null, obj[key], key, obj);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
function findKey(obj, key) {
|
|
273
|
-
key = key.toLowerCase();
|
|
274
|
-
const keys = Object.keys(obj);
|
|
275
|
-
let i = keys.length;
|
|
276
|
-
let _key;
|
|
277
|
-
while (i-- > 0) {
|
|
278
|
-
_key = keys[i];
|
|
279
|
-
if (key === _key.toLowerCase()) {
|
|
280
|
-
return _key;
|
|
274
|
+
for (var key in obj) {
|
|
275
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
276
|
+
fn.call(null, obj[key], key, obj);
|
|
277
|
+
}
|
|
281
278
|
}
|
|
282
279
|
}
|
|
283
|
-
return null;
|
|
284
280
|
}
|
|
285
281
|
|
|
286
|
-
const _global = (() => {
|
|
287
|
-
/*eslint no-undef:0*/
|
|
288
|
-
if (typeof globalThis !== "undefined") return globalThis;
|
|
289
|
-
return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global)
|
|
290
|
-
})();
|
|
291
|
-
|
|
292
|
-
const isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
293
|
-
|
|
294
282
|
/**
|
|
295
283
|
* Accepts varargs expecting each argument to be an object, then
|
|
296
284
|
* immutably merges the properties of each object and returns result.
|
|
@@ -306,27 +294,24 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
306
294
|
* ```
|
|
307
295
|
*
|
|
308
296
|
* @param {Object} obj1 Object to merge
|
|
309
|
-
*
|
|
310
297
|
* @returns {Object} Result of all merge properties
|
|
311
298
|
*/
|
|
312
299
|
function merge(/* obj1, obj2, obj3, ... */) {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
318
|
-
result[targetKey] = merge(result[targetKey], val);
|
|
300
|
+
var result = {};
|
|
301
|
+
function assignValue(val, key) {
|
|
302
|
+
if (isPlainObject(result[key]) && isPlainObject(val)) {
|
|
303
|
+
result[key] = merge(result[key], val);
|
|
319
304
|
} else if (isPlainObject(val)) {
|
|
320
|
-
result[
|
|
305
|
+
result[key] = merge({}, val);
|
|
321
306
|
} else if (isArray(val)) {
|
|
322
|
-
result[
|
|
307
|
+
result[key] = val.slice();
|
|
323
308
|
} else {
|
|
324
|
-
result[
|
|
309
|
+
result[key] = val;
|
|
325
310
|
}
|
|
326
311
|
}
|
|
327
312
|
|
|
328
|
-
for (
|
|
329
|
-
|
|
313
|
+
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
314
|
+
forEach(arguments[i], assignValue);
|
|
330
315
|
}
|
|
331
316
|
return result;
|
|
332
317
|
}
|
|
@@ -337,18 +322,16 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
337
322
|
* @param {Object} a The object to be extended
|
|
338
323
|
* @param {Object} b The object to copy properties from
|
|
339
324
|
* @param {Object} thisArg The object to bind function to
|
|
340
|
-
*
|
|
341
|
-
* @param {Boolean} [allOwnKeys]
|
|
342
|
-
* @returns {Object} The resulting value of object a
|
|
325
|
+
* @return {Object} The resulting value of object a
|
|
343
326
|
*/
|
|
344
|
-
|
|
345
|
-
forEach(b, (val, key)
|
|
346
|
-
if (thisArg &&
|
|
327
|
+
function extend(a, b, thisArg) {
|
|
328
|
+
forEach(b, function assignValue(val, key) {
|
|
329
|
+
if (thisArg && typeof val === 'function') {
|
|
347
330
|
a[key] = bind(val, thisArg);
|
|
348
331
|
} else {
|
|
349
332
|
a[key] = val;
|
|
350
333
|
}
|
|
351
|
-
}
|
|
334
|
+
});
|
|
352
335
|
return a;
|
|
353
336
|
}
|
|
354
337
|
|
|
@@ -356,10 +339,9 @@ const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
|
356
339
|
* Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
|
|
357
340
|
*
|
|
358
341
|
* @param {string} content with BOM
|
|
359
|
-
*
|
|
360
|
-
* @returns {string} content value without BOM
|
|
342
|
+
* @return {string} content value without BOM
|
|
361
343
|
*/
|
|
362
|
-
|
|
344
|
+
function stripBOM(content) {
|
|
363
345
|
if (content.charCodeAt(0) === 0xFEFF) {
|
|
364
346
|
content = content.slice(1);
|
|
365
347
|
}
|
|
@@ -372,15 +354,11 @@ const stripBOM = (content) => {
|
|
|
372
354
|
* @param {function} superConstructor
|
|
373
355
|
* @param {object} [props]
|
|
374
356
|
* @param {object} [descriptors]
|
|
375
|
-
*
|
|
376
|
-
* @returns {void}
|
|
377
357
|
*/
|
|
378
|
-
|
|
358
|
+
|
|
359
|
+
function inherits(constructor, superConstructor, props, descriptors) {
|
|
379
360
|
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
380
361
|
constructor.prototype.constructor = constructor;
|
|
381
|
-
Object.defineProperty(constructor, 'super', {
|
|
382
|
-
value: superConstructor.prototype
|
|
383
|
-
});
|
|
384
362
|
props && Object.assign(constructor.prototype, props);
|
|
385
363
|
}
|
|
386
364
|
|
|
@@ -388,341 +366,105 @@ const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
|
388
366
|
* Resolve object with deep prototype chain to a flat object
|
|
389
367
|
* @param {Object} sourceObj source object
|
|
390
368
|
* @param {Object} [destObj]
|
|
391
|
-
* @param {Function
|
|
392
|
-
* @param {Function} [propFilter]
|
|
393
|
-
*
|
|
369
|
+
* @param {Function} [filter]
|
|
394
370
|
* @returns {Object}
|
|
395
371
|
*/
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
372
|
+
|
|
373
|
+
function toFlatObject(sourceObj, destObj, filter) {
|
|
374
|
+
var props;
|
|
375
|
+
var i;
|
|
376
|
+
var prop;
|
|
377
|
+
var merged = {};
|
|
401
378
|
|
|
402
379
|
destObj = destObj || {};
|
|
403
|
-
// eslint-disable-next-line no-eq-null,eqeqeq
|
|
404
|
-
if (sourceObj == null) return destObj;
|
|
405
380
|
|
|
406
381
|
do {
|
|
407
382
|
props = Object.getOwnPropertyNames(sourceObj);
|
|
408
383
|
i = props.length;
|
|
409
384
|
while (i-- > 0) {
|
|
410
385
|
prop = props[i];
|
|
411
|
-
if (
|
|
386
|
+
if (!merged[prop]) {
|
|
412
387
|
destObj[prop] = sourceObj[prop];
|
|
413
388
|
merged[prop] = true;
|
|
414
389
|
}
|
|
415
390
|
}
|
|
416
|
-
sourceObj =
|
|
391
|
+
sourceObj = Object.getPrototypeOf(sourceObj);
|
|
417
392
|
} while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
|
|
418
393
|
|
|
419
394
|
return destObj;
|
|
420
395
|
}
|
|
421
396
|
|
|
422
|
-
|
|
423
|
-
*
|
|
424
|
-
*
|
|
397
|
+
/*
|
|
398
|
+
* determines whether a string ends with the characters of a specified string
|
|
425
399
|
* @param {String} str
|
|
426
400
|
* @param {String} searchString
|
|
427
401
|
* @param {Number} [position= 0]
|
|
428
|
-
*
|
|
429
402
|
* @returns {boolean}
|
|
430
403
|
*/
|
|
431
|
-
|
|
404
|
+
function endsWith(str, searchString, position) {
|
|
432
405
|
str = String(str);
|
|
433
406
|
if (position === undefined || position > str.length) {
|
|
434
407
|
position = str.length;
|
|
435
408
|
}
|
|
436
409
|
position -= searchString.length;
|
|
437
|
-
|
|
410
|
+
var lastIndex = str.indexOf(searchString, position);
|
|
438
411
|
return lastIndex !== -1 && lastIndex === position;
|
|
439
412
|
}
|
|
440
413
|
|
|
441
414
|
|
|
442
415
|
/**
|
|
443
|
-
* Returns new array from array like object
|
|
444
|
-
*
|
|
416
|
+
* Returns new array from array like object
|
|
445
417
|
* @param {*} [thing]
|
|
446
|
-
*
|
|
447
|
-
* @returns {?Array}
|
|
418
|
+
* @returns {Array}
|
|
448
419
|
*/
|
|
449
|
-
|
|
420
|
+
function toArray(thing) {
|
|
450
421
|
if (!thing) return null;
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
const arr = new Array(i);
|
|
422
|
+
var i = thing.length;
|
|
423
|
+
if (isUndefined(i)) return null;
|
|
424
|
+
var arr = new Array(i);
|
|
455
425
|
while (i-- > 0) {
|
|
456
426
|
arr[i] = thing[i];
|
|
457
427
|
}
|
|
458
428
|
return arr;
|
|
459
429
|
}
|
|
460
430
|
|
|
461
|
-
/**
|
|
462
|
-
* Checking if the Uint8Array exists and if it does, it returns a function that checks if the
|
|
463
|
-
* thing passed in is an instance of Uint8Array
|
|
464
|
-
*
|
|
465
|
-
* @param {TypedArray}
|
|
466
|
-
*
|
|
467
|
-
* @returns {Array}
|
|
468
|
-
*/
|
|
469
431
|
// eslint-disable-next-line func-names
|
|
470
|
-
|
|
432
|
+
var isTypedArray = (function(TypedArray) {
|
|
471
433
|
// eslint-disable-next-line func-names
|
|
472
|
-
return thing
|
|
434
|
+
return function(thing) {
|
|
473
435
|
return TypedArray && thing instanceof TypedArray;
|
|
474
436
|
};
|
|
475
|
-
})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
const arr = [];
|
|
509
|
-
|
|
510
|
-
while ((matches = regExp.exec(str)) !== null) {
|
|
511
|
-
arr.push(matches);
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
return arr;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
|
|
518
|
-
const isHTMLForm = kindOfTest('HTMLFormElement');
|
|
519
|
-
|
|
520
|
-
const toCamelCase = str => {
|
|
521
|
-
return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,
|
|
522
|
-
function replacer(m, p1, p2) {
|
|
523
|
-
return p1.toUpperCase() + p2;
|
|
524
|
-
}
|
|
525
|
-
);
|
|
526
|
-
};
|
|
527
|
-
|
|
528
|
-
/* Creating a function that will check if an object has a property. */
|
|
529
|
-
const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
|
|
530
|
-
|
|
531
|
-
/**
|
|
532
|
-
* Determine if a value is a RegExp object
|
|
533
|
-
*
|
|
534
|
-
* @param {*} val The value to test
|
|
535
|
-
*
|
|
536
|
-
* @returns {boolean} True if value is a RegExp object, otherwise false
|
|
537
|
-
*/
|
|
538
|
-
const isRegExp = kindOfTest('RegExp');
|
|
539
|
-
|
|
540
|
-
const reduceDescriptors = (obj, reducer) => {
|
|
541
|
-
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
542
|
-
const reducedDescriptors = {};
|
|
543
|
-
|
|
544
|
-
forEach(descriptors, (descriptor, name) => {
|
|
545
|
-
let ret;
|
|
546
|
-
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
|
547
|
-
reducedDescriptors[name] = ret || descriptor;
|
|
548
|
-
}
|
|
549
|
-
});
|
|
550
|
-
|
|
551
|
-
Object.defineProperties(obj, reducedDescriptors);
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
/**
|
|
555
|
-
* Makes all methods read-only
|
|
556
|
-
* @param {Object} obj
|
|
557
|
-
*/
|
|
558
|
-
|
|
559
|
-
const freezeMethods = (obj) => {
|
|
560
|
-
reduceDescriptors(obj, (descriptor, name) => {
|
|
561
|
-
// skip restricted props in strict mode
|
|
562
|
-
if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
|
|
563
|
-
return false;
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
const value = obj[name];
|
|
567
|
-
|
|
568
|
-
if (!isFunction(value)) return;
|
|
569
|
-
|
|
570
|
-
descriptor.enumerable = false;
|
|
571
|
-
|
|
572
|
-
if ('writable' in descriptor) {
|
|
573
|
-
descriptor.writable = false;
|
|
574
|
-
return;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
if (!descriptor.set) {
|
|
578
|
-
descriptor.set = () => {
|
|
579
|
-
throw Error('Can not rewrite read-only method \'' + name + '\'');
|
|
580
|
-
};
|
|
581
|
-
}
|
|
582
|
-
});
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
const toObjectSet = (arrayOrString, delimiter) => {
|
|
586
|
-
const obj = {};
|
|
587
|
-
|
|
588
|
-
const define = (arr) => {
|
|
589
|
-
arr.forEach(value => {
|
|
590
|
-
obj[value] = true;
|
|
591
|
-
});
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
|
|
595
|
-
|
|
596
|
-
return obj;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
const noop = () => {}
|
|
600
|
-
|
|
601
|
-
const toFiniteNumber = (value, defaultValue) => {
|
|
602
|
-
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
const ALPHA = 'abcdefghijklmnopqrstuvwxyz'
|
|
606
|
-
|
|
607
|
-
const DIGIT = '0123456789';
|
|
608
|
-
|
|
609
|
-
const ALPHABET = {
|
|
610
|
-
DIGIT,
|
|
611
|
-
ALPHA,
|
|
612
|
-
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
616
|
-
let str = '';
|
|
617
|
-
const {length} = alphabet;
|
|
618
|
-
while (size--) {
|
|
619
|
-
str += alphabet[Math.random() * length|0]
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
return str;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
/**
|
|
626
|
-
* If the thing is a FormData object, return true, otherwise return false.
|
|
627
|
-
*
|
|
628
|
-
* @param {unknown} thing - The thing to check.
|
|
629
|
-
*
|
|
630
|
-
* @returns {boolean}
|
|
631
|
-
*/
|
|
632
|
-
function isSpecCompliantForm(thing) {
|
|
633
|
-
return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
const toJSONObject = (obj) => {
|
|
637
|
-
const stack = new Array(10);
|
|
638
|
-
|
|
639
|
-
const visit = (source, i) => {
|
|
640
|
-
|
|
641
|
-
if (isObject(source)) {
|
|
642
|
-
if (stack.indexOf(source) >= 0) {
|
|
643
|
-
return;
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
if(!('toJSON' in source)) {
|
|
647
|
-
stack[i] = source;
|
|
648
|
-
const target = isArray(source) ? [] : {};
|
|
649
|
-
|
|
650
|
-
forEach(source, (value, key) => {
|
|
651
|
-
const reducedValue = visit(value, i + 1);
|
|
652
|
-
!isUndefined(reducedValue) && (target[key] = reducedValue);
|
|
653
|
-
});
|
|
654
|
-
|
|
655
|
-
stack[i] = undefined;
|
|
656
|
-
|
|
657
|
-
return target;
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
return source;
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
return visit(obj, 0);
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
const isAsyncFn = kindOfTest('AsyncFunction');
|
|
668
|
-
|
|
669
|
-
const isThenable = (thing) =>
|
|
670
|
-
thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
|
671
|
-
|
|
672
|
-
export default {
|
|
673
|
-
isArray,
|
|
674
|
-
isArrayBuffer,
|
|
675
|
-
isBuffer,
|
|
676
|
-
isFormData,
|
|
677
|
-
isArrayBufferView,
|
|
678
|
-
isString,
|
|
679
|
-
isNumber,
|
|
680
|
-
isBoolean,
|
|
681
|
-
isObject,
|
|
682
|
-
isPlainObject,
|
|
683
|
-
isReadableStream,
|
|
684
|
-
isRequest,
|
|
685
|
-
isResponse,
|
|
686
|
-
isHeaders,
|
|
687
|
-
isUndefined,
|
|
688
|
-
isDate,
|
|
689
|
-
isFile,
|
|
690
|
-
isBlob,
|
|
691
|
-
isRegExp,
|
|
692
|
-
isFunction,
|
|
693
|
-
isStream,
|
|
694
|
-
isURLSearchParams,
|
|
695
|
-
isTypedArray,
|
|
696
|
-
isFileList,
|
|
697
|
-
forEach,
|
|
698
|
-
merge,
|
|
699
|
-
extend,
|
|
700
|
-
trim,
|
|
701
|
-
stripBOM,
|
|
702
|
-
inherits,
|
|
703
|
-
toFlatObject,
|
|
704
|
-
kindOf,
|
|
705
|
-
kindOfTest,
|
|
706
|
-
endsWith,
|
|
707
|
-
toArray,
|
|
708
|
-
forEachEntry,
|
|
709
|
-
matchAll,
|
|
710
|
-
isHTMLForm,
|
|
711
|
-
hasOwnProperty,
|
|
712
|
-
hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection
|
|
713
|
-
reduceDescriptors,
|
|
714
|
-
freezeMethods,
|
|
715
|
-
toObjectSet,
|
|
716
|
-
toCamelCase,
|
|
717
|
-
noop,
|
|
718
|
-
toFiniteNumber,
|
|
719
|
-
findKey,
|
|
720
|
-
global: _global,
|
|
721
|
-
isContextDefined,
|
|
722
|
-
ALPHABET,
|
|
723
|
-
generateString,
|
|
724
|
-
isSpecCompliantForm,
|
|
725
|
-
toJSONObject,
|
|
726
|
-
isAsyncFn,
|
|
727
|
-
isThenable
|
|
437
|
+
})(typeof Uint8Array !== 'undefined' && Object.getPrototypeOf(Uint8Array));
|
|
438
|
+
|
|
439
|
+
module.exports = {
|
|
440
|
+
isArray: isArray,
|
|
441
|
+
isArrayBuffer: isArrayBuffer,
|
|
442
|
+
isBuffer: isBuffer,
|
|
443
|
+
isFormData: isFormData,
|
|
444
|
+
isArrayBufferView: isArrayBufferView,
|
|
445
|
+
isString: isString,
|
|
446
|
+
isNumber: isNumber,
|
|
447
|
+
isObject: isObject,
|
|
448
|
+
isPlainObject: isPlainObject,
|
|
449
|
+
isUndefined: isUndefined,
|
|
450
|
+
isDate: isDate,
|
|
451
|
+
isFile: isFile,
|
|
452
|
+
isBlob: isBlob,
|
|
453
|
+
isFunction: isFunction,
|
|
454
|
+
isStream: isStream,
|
|
455
|
+
isURLSearchParams: isURLSearchParams,
|
|
456
|
+
isStandardBrowserEnv: isStandardBrowserEnv,
|
|
457
|
+
forEach: forEach,
|
|
458
|
+
merge: merge,
|
|
459
|
+
extend: extend,
|
|
460
|
+
trim: trim,
|
|
461
|
+
stripBOM: stripBOM,
|
|
462
|
+
inherits: inherits,
|
|
463
|
+
toFlatObject: toFlatObject,
|
|
464
|
+
kindOf: kindOf,
|
|
465
|
+
kindOfTest: kindOfTest,
|
|
466
|
+
endsWith: endsWith,
|
|
467
|
+
toArray: toArray,
|
|
468
|
+
isTypedArray: isTypedArray,
|
|
469
|
+
isFileList: isFileList
|
|
728
470
|
};
|